diff --git a/2.1.0/demo/index.html b/2.1.0/demo/index.html index ce14cc1..9196108 100644 --- a/2.1.0/demo/index.html +++ b/2.1.0/demo/index.html @@ -7,7 +7,7 @@ @@ -60,7 +60,7 @@

示例3:监听激活后、改变颜色后事件

] }); } - S.use('node,kg/stepbar/2.1.0/index,kg/stepbar/2.1.0/stepbar.css', function (S,Node,Stepbar) { + S.use('node,../index,kg/stepbar/2.1.0/stepbar.css', function (S,Node,Stepbar) { var $ = Node.all; //示例1 var step1 = new Stepbar('#steps-demo-1'); diff --git a/2.1.0/index.js b/2.1.0/index.js index 791c04e..ac75f4b 100644 --- a/2.1.0/index.js +++ b/2.1.0/index.js @@ -114,7 +114,8 @@ KISSY.add(function (S,Node, Base) { var ret = containerWidth % itemLen; width = Number( (containerWidth - ret) / itemLen); } - $steps.width(width); + for(var i = 0;i