Skip to content

Steps 步骤条

引导用户按照流程完成任务的导航条,支持水平、垂直、点状和导航四种样式。

基础用法

填写信息
填写基本用户信息
2
验证身份
手机号或邮箱验证
3
完成注册
注册成功

步骤类型

步骤一
步骤二
步骤三
步骤四
步骤一
2
步骤二
3
步骤三
4
步骤四

垂直方向

已完成
2
进行中
出错了
4
等待中

API

Props

属性类型默认值说明
currentnumber0当前步骤索引
itemsStepItem[]步骤数据(必填)
directionStepsDirection'horizontal'方向:horizontal | vertical
typeStepsType'default'样式:default | dot | navigation
sizeStepsSize'md'尺寸:sm | md
statusStepStatus'process'当前步骤的状态
onChange(index) => void点击步骤回调
classNamestring自定义 class
styleobject自定义样式

StepItem

字段类型说明
titlestring步骤标题(必填)
descriptionstring步骤描述
statusStepStatus单独覆盖此步骤状态
disabledboolean禁用点击

类型

ts
type StepStatus = "wait" | "process" | "finish" | "error";
type StepsDirection = "horizontal" | "vertical";
type StepsType = "default" | "dot" | "navigation";
type StepsSize = "sm" | "md";

AUI Vue Components — Built with Vue 3 & VitePress