更新记录

1.0.0(2026-07-22) 下载此版本

  • 新增 横向和纵向步骤条
  • 新增 标题和描述的选中、未选中样式
  • 新增 选中、未选中节点插槽
  • 新增 连接线类型配置
  • 新增 横向文字上下布局和纵向文字左右布局

平台兼容性

uni-app(5.15)

Vue2 Vue3 Chrome Safari app-vue app-nvue Android iOS 鸿蒙
- - - - - -
微信小程序 支付宝小程序 抖音小程序 百度小程序 快手小程序 京东小程序 鸿蒙元服务 QQ小程序 飞书小程序 小红书小程序 快应用-华为 快应用-联盟
- - - - - - - - - - -

wrc-steps 自定义步骤条

wrc-steps 是一个支持横向和纵向布局的步骤条组件,可分别设置标题和描述样式,也可以通过插槽自定义节点。

基础用法

<wrc-steps
    :options="steps"
    :active="1"
    direction="row"
    text-position="bottom"
    line-type="dashed"
/>

属性

属性 类型 默认值 说明
options Array [] 步骤数据,格式为 [{ title: '标题', desc: '描述' }]
active Number 0 当前步骤下标
direction String row 排列方向,支持 rowcolumn
text-position String top 横向支持 top/bottom,纵向支持 left/right
active-color String #2979FF 激活节点和连接线的默认颜色
deactive-color String #B7BDC6 未激活节点和连接线的默认颜色
active-text-style Object {} 选中标题样式
deactive-text-style Object {} 未选中标题样式
active-desc-style Object {} 选中描述样式
deactive-desc-style Object {} 未选中描述样式
active-icon String checkbox-filled 默认选中节点图标
line-type String solid 连接线类型,支持 none/solid/dotted/dashed

样式对象为空时,组件会保留标题和描述的默认字号、行高及对齐方式。样式对象中传入的字段会覆盖对应默认样式。

自定义文字样式

<wrc-steps
    :options="steps"
    :active="1"
    :active-text-style="{
        color: '#0259D7',
        fontSize: '30rpx',
        fontWeight: '600'
    }"
    :deactive-text-style="{
        color: '#999999',
        fontSize: '26rpx'
    }"
    :active-desc-style="{
        color: '#0259D7',
        fontSize: '24rpx'
    }"
    :deactive-desc-style="{
        color: '#B7BDC6',
        fontSize: '22rpx'
    }"
/>

自定义节点

<wrc-steps :options="steps" :active="1">
    <template #active-node="{ index }">
        <view class="active-node">{{ index + 1 }}</view>
    </template>

    <template #inactive-node="{ index, completed }">
        <view :class="completed ? 'completed-node' : 'inactive-node'">
            {{ index + 1 }}
        </view>
    </template>
</wrc-steps>

active-node 提供 itemindexinactive-node 提供 itemindexcompleted

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

暂无用户评论。