You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.6 KiB
46 lines
1.6 KiB
9 years ago
|
---
|
||
|
category: Components
|
||
|
chinese: 步骤条
|
||
9 years ago
|
type: Navigation
|
||
9 years ago
|
cols: 1
|
||
|
english: Steps
|
||
|
---
|
||
10 years ago
|
|
||
10 years ago
|
引导用户按照流程完成任务的导航条。
|
||
10 years ago
|
|
||
|
## 何时使用
|
||
|
|
||
10 years ago
|
当任务复杂或者存在先后关系时,将其分解成一系列步骤,从而简化任务。
|
||
10 years ago
|
|
||
|
## API
|
||
|
|
||
9 years ago
|
```jsx
|
||
|
<Steps>
|
||
9 years ago
|
<Step title="第一步" />
|
||
|
<Step title="第二步" />
|
||
|
<Step title="第三步" />
|
||
9 years ago
|
</Steps>
|
||
|
```
|
||
|
|
||
10 years ago
|
### Steps
|
||
|
|
||
9 years ago
|
整体步骤条。
|
||
10 years ago
|
|
||
9 years ago
|
| 参数 | 说明 | 类型 | 默认值 |
|
||
9 years ago
|
|----------|------------------------------------------|-------------|-------|
|
||
8 years ago
|
| current | 指定当前步骤,从 0 开始记数。在子 Step 元素中,可以通过 `status` 属性覆盖状态 | Number | 0 |
|
||
|
| status | 指定当前步骤的状态,可选 `wait` `process` `finish` `error` | String | process |
|
||
|
| size | 指定大小,目前支持普通(`default`)和迷你(`small`)| String | default |
|
||
|
| direction | 指定步骤条方向。目前支持水平(`horizontal`)和竖直(`vertical`)两种方向 | String | horizontal |
|
||
10 years ago
|
|
||
|
### Steps.Step
|
||
|
|
||
9 years ago
|
步骤条内的每一个步骤。
|
||
10 years ago
|
|
||
9 years ago
|
| 参数 | 说明 | 类型 | 默认值 |
|
||
|
|----------|-----------------------------------------|------------|-------|
|
||
8 years ago
|
| status | 指定状态。当不配置该属性时,会使用 Steps 的 `current` 来自动指定状态。可选:`wait` `process` `finish` `error` | String | wait |
|
||
9 years ago
|
| title | 标题 | React.Element | - |
|
||
|
| description | 步骤的详情描述,可选 | React.Element | - |
|
||
|
| icon | 步骤图标,可选 | React.Element | - |
|