docs: 添加Steps组件step配置项说明 (#4911)

This commit is contained in:
Fansy 2022-05-02 10:43:05 +08:00 committed by GitHub
parent dca337e6b3
commit 449dd77022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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_ |