From a520a2babf9b185f7a19bc438909bf730f899f10 Mon Sep 17 00:00:00 2001 From: sss15 Date: Fri, 18 Sep 2015 12:15:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=BD=E5=BA=A6=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2.1.0/demo/index.html | 4 ++-- 2.1.0/index.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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