Steps

Guide the user to complete tasks in accordance with the process. Its steps can be set according to the actual application scenario and the number of the steps can't be less than 2.

Basic usage

Simple step bar.

Set active attribute with Number type, which indicates the index of steps and starts from 0. You can set space attribute when the width of the step needs to be fixed which accepts Number type. The unit of the space attribute is px. If not set, it is responsive. Setting the finish-status attribute can change the state of the steps that have been completed.

0
Step 1
0
Step 2
0
Step 3

Step bar that contains status

Shows the status of the step for each step.

Use title attribute to set the name of the step, or override the attribute by using a named slot. We have listed all the slot names for you at the end of this page.

0
Done
0
Processing
0
Step 3

Center

Title and description can be centered.

0
Step 1
Some description
0
Step 2
Some description
0
Step 3
Some description

Step bar with description

There is description for each step.

0
Step 1
Some description
0
Step 2
Some description
0
Step 3
Some description

Step bar with icon

A variety of custom icons can be used in the step bar.

The icon is set by the icon property. The types of icons can be found in the document for the Icon component. In addition, you can customize the icon through a named slot.

Step 1
Step 2
Step 3

Vertical step bar

Vertical step bars.

You only need to set the direction attribute to vertical in the el-steps element.

0
Step 1
0
Step 2
0
Step 3

Simple step bar

Simple step bars, where align-center, description, direction and space will be ignored.

Step 1
Step 2
Step 3
Step 1
Step 2
Step 3

Steps API

Steps Attributes

NameDescriptionTypeDefault
spacethe spacing of each step, will be responsive if omitted. Supports percentage.number / string''
directiondisplay directionenumhorizontal
activecurrent activation stepnumber0
process-statusstatus of current stepenumprocess
finish-statusstatus of end stepenumfinish
align-centercenter title and descriptionboolean
simplewhether to apply simple themeboolean

Steps Slots

NameDescriptionSubtags
defaultcustomize default contentStep

Step API

Step Attributes

NameDescriptionTypeDefault
titlestep titlestring''
descriptionstep descriptionstring''
iconstep custom icon. Icons can be passed via named slot as wellstring / Component
statuscurrent status. It will be automatically set by Steps if not configured.enum''

Step Slots

NameDescription
iconcustom icon
titlestep title
descriptionstep description

Source

ComponentStyleDocs

Contributors