Steps
Install
Usage
Basic Usage
Custom Style
Vertical Steps
API
Steps Props
| Attribute |
Description |
Type |
Default |
| active |
Active step |
number | string |
0 |
| direction |
Can be set to vertical |
string |
horizontal |
| active-color |
Active step color |
string |
#07c160 |
inactive-color v2.9.1 |
Inactive step color |
string |
#969799 |
| active-icon |
Active icon name |
string |
checked |
| inactive-icon |
Inactive icon name |
string |
- |
finish-icon v2.12.7 |
Finish icon name |
string |
- |
icon-prefix v2.12.15 |
Icon className prefix |
string |
van-icon |
| center |
Whether to center content when direction is vertical |
boolean |
false |
Step Slots
| Name |
Description |
| active-icon |
Custom active icon |
| inactive-icon |
Custom inactive icon |
finish-icon v2.12.7 |
Custom finish icon |
Steps Events
| Event |
Description |
Arguments |
click-step v2.5.9 |
Emitted when a step's title or icon is clicked |
index: number |
Less Variables
How to use: Custom Theme.
| Name |
Default Value |
Description |
| @step-text-color |
@gray-6 |
- |
| @step-active-color |
@green |
- |
| @step-process-text-color |
@text-color |
- |
| @step-font-size |
@font-size-md |
- |
| @step-line-color |
@border-color |
- |
| @step-finish-line-color |
@green |
- |
| @step-finish-text-color |
@text-color |
- |
| @step-icon-size |
12px |
- |
| @step-circle-size |
5px |
- |
| @step-circle-color |
@gray-6 |
- |
| @step-horizontal-title-font-size |
@font-size-sm |
- |
| @steps-background-color |
@white |
- |