Step
Loop a series of steps to show current project process
Basic Usage
Combine er-step with er-step-item, and you'll get a step component. You can set the current step by activeIndex property . You also can change the mode or size by set the property.
1
开始
活动详情
1
下单
浏览
1
审核
后台审核
1
流程结束
流程结束
Step bar with icon
A variety of custom icons can be used in the step bar.
开始
下单
过程
支付
结束
送达
Vertical step bar
To change the display mode to vertical or horizontal, you can set the mode property. The default mode is horizontal.
1
开始
活动详情
1
下单
浏览
1
审核
后台审核
1
流程结束
流程结束
Sizes
1
开始
活动详情
1
下单
浏览
1
审核
后台审核
1
流程结束
流程结束
1
开始
活动详情
1
下单
浏览
1
审核
后台审核
1
流程结束
流程结束
1
开始
活动详情
1
下单
浏览
1
审核
后台审核
1
流程结束
流程结束
Step API
Step Attributes
| Name | Description | Type | Default |
|---|---|---|---|
| mode | display direction | 'vertical' | 'horizontal' | horizontal |
| active-index | current activation step | number | -1 |
| size | button size | 'large' | 'default' | 'small' | default |
Step Methods
| Name | Description | Parameters |
|---|---|---|
| getActiveIndex | get current active Step index | 'activeIndex: number' |
StepItem API
StepItem Attributes
| Name | Description | Type | Default |
|---|---|---|---|
| title | step title | string | '' |
| desc | step description | string | '' |
StepItem Slots
| Name | Description |
|---|---|
| icon | custom icon |