diff --git a/example/pages/steps/index.js b/example/pages/steps/index.js
index 3ac017f8..024d3a31 100644
--- a/example/pages/steps/index.js
+++ b/example/pages/steps/index.js
@@ -2,7 +2,7 @@ import Page from '../../common/page';
Page({
data: {
- active: 0,
+ active: 1,
steps: [
{
text: '步骤一',
diff --git a/example/pages/steps/index.wxml b/example/pages/steps/index.wxml
index 3b03fbb0..cae95837 100644
--- a/example/pages/steps/index.wxml
+++ b/example/pages/steps/index.wxml
@@ -8,6 +8,15 @@
下一步
+
+
+
+
+```
+
### 竖向步骤条
可以通过设置`direction`属性来改变步骤条的显示方式
@@ -65,6 +77,7 @@ Page({
| active | 当前步骤 | *number* | 0 |
| direction | 显示方向,可选值为 `horizontal` `vertical` | *string* | `horizontal` |
| active-color | 激活状态颜色 | *string* | `#07c160` |
+| active-icon | 激活状态底部图标,可选值见 Icon 组件 | *string* | `checked` |
### 外部样式类
diff --git a/packages/steps/index.ts b/packages/steps/index.ts
index 3152bc8c..97205679 100644
--- a/packages/steps/index.ts
+++ b/packages/steps/index.ts
@@ -13,6 +13,10 @@ VantComponent({
activeColor: {
type: String,
value: GREEN
+ },
+ activeIcon: {
+ type: String,
+ value: 'checked'
}
}
});
diff --git a/packages/steps/index.wxml b/packages/steps/index.wxml
index 508705d6..d0d0d01f 100644
--- a/packages/steps/index.wxml
+++ b/packages/steps/index.wxml
@@ -13,7 +13,7 @@
-
+