Skip to content

Steps 步骤条

Steps 步骤条打开
9:41
/pages/steps/index

介绍

weui-steps 用于展示流程进度,支持纵向、横向、居中横向和主色横向样式。

基础用法

vue
<weui-steps
  :items="[
    { title: '步骤一', desc: '描述内容', status: 'success' },
    { title: '步骤二', desc: '描述内容' }
  ]"
/>

横向步骤

vue
<weui-steps type="horizonal" :items="items" />

Props

属性说明类型默认值
items步骤数组,支持 { title, desc, status, success, icon, iconPrev }array[]
type类型,可选 verticalhorizonalhorizonal-primaryhorizonal-centerstring'vertical'
hideContent是否隐藏步骤文案booleanfalse
title默认标题string'标题'
desc默认描述string'描述内容详情'

Slots

插槽名说明
default自定义完整步骤结构

Events

暂无。

Released under the MIT License.