mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-05-21 13:59:15 +08:00
docs: 添加Steps
组件step
配置项说明 (#4911)
This commit is contained in:
parent
dca337e6b3
commit
449dd77022
@ -121,6 +121,7 @@ Page({
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
| --- | --- | --- | --- |
|
||||
| active | 当前步骤 | _number_ | 0 |
|
||||
| steps | 步骤配置集合,见下面配置项 | _Step 配置项数组_ | `[]` |
|
||||
| direction | 显示方向,可选值为 `horizontal` `vertical` | _string_ | `horizontal` |
|
||||
| active-color | 激活状态颜色 | _string_ | `#07c160` |
|
||||
| inactive-color | 未激活状态颜色 | _string_ | `#969799` |
|
||||
@ -139,3 +140,12 @@ Page({
|
||||
| ------------ | -------------- |
|
||||
| custom-class | 根节点样式类 |
|
||||
| desc-class | 描述信息样式类 |
|
||||
|
||||
### Step 配置项
|
||||
|
||||
| 键名 | 说明 | 类型 |
|
||||
| ------------ | -------------------------------------------------------- | -------- |
|
||||
| text | 当前步骤名称 | _string_ |
|
||||
| desc | 当前步骤描述信息 | _string_ |
|
||||
| activeIcon | 当前步骤激活状态底部图标 | _string_ |
|
||||
| inactiveIcon | 当前步骤未激活状态底部图标,可选值见 [Icon 组件](#/icon) | _string_ |
|
||||
|
Loading…
x
Reference in New Issue
Block a user