From db3d7f28bfc1425ce6489e778794ff81a1c29a83 Mon Sep 17 00:00:00 2001 From: nrz Date: Tue, 29 May 2018 22:21:18 +0800 Subject: [PATCH] =?UTF-8?q?[bug=20fix]=20Steps=20=E4=BF=AE=E5=A4=8D2?= =?UTF-8?q?=E6=AD=A5=E6=A0=B7=E5=BC=8F=20&&=20=E4=BC=98=E5=8C=96=E6=96=87?= =?UTF-8?q?=E6=A1=A3=20(#274)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/pages/steps/index.js | 28 ++++++++++++++++++++++++++++ example/pages/steps/index.wxml | 13 ++++++++++++- packages/steps/wxss/step.pcss | 1 + 3 files changed, 41 insertions(+), 1 deletion(-) diff --git a/example/pages/steps/index.js b/example/pages/steps/index.js index 2a393c0c..724f5dc1 100644 --- a/example/pages/steps/index.js +++ b/example/pages/steps/index.js @@ -58,6 +58,34 @@ Page({ text: '步骤三', desc: '10.03' } + ], + steps4: [ + { + current: true, + done: false, + text: '步骤一', + desc: '10.01' + }, + { + done: false, + current: false, + text: '步骤二', + desc: '10.02' + } + ], + steps5: [ + { + done: true, + current: false, + text: '步骤一', + desc: '10.01' + }, + { + done: false, + current: true, + text: '步骤二', + desc: '10.02' + } ] }, diff --git a/example/pages/steps/index.wxml b/example/pages/steps/index.wxml index 05983324..49dad535 100644 --- a/example/pages/steps/index.wxml +++ b/example/pages/steps/index.wxml @@ -1,5 +1,5 @@ - + @@ -13,6 +13,17 @@ + + + + + + + + + + + diff --git a/packages/steps/wxss/step.pcss b/packages/steps/wxss/step.pcss index cdfe0a35..1398120d 100644 --- a/packages/steps/wxss/step.pcss +++ b/packages/steps/wxss/step.pcss @@ -15,6 +15,7 @@ float: left; padding-bottom: 25px; color: #b1b1b1; + width: 100%; } .zan-steps--steps .zan-steps__title {