Skip to content

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

NameDescriptionTypeDefault
modedisplay direction'vertical' | 'horizontal'horizontal
active-indexcurrent activation stepnumber-1
sizebutton size'large' | 'default' | 'small'default

Step Methods

NameDescriptionParameters
getActiveIndexget current active Step index'activeIndex: number'

StepItem API

StepItem Attributes

NameDescriptionTypeDefault
titlestep titlestring''
descstep descriptionstring''

StepItem Slots

NameDescription
iconcustom icon

Released under the MIT License.