# Steps 步骤条 - 图1 Wuss-weapp

首页

组件库

快速上手

GitHub

首页

组件库

快速上手

GitHub

基础组件

  • 布局

  • 导航

  • 操作反馈

  • 表单

  • 其他

# Steps 步骤条

# 使用指南

在 page.json 中引入组件

  1. "usingComponents": {
  2. "w-steps": "wuss-weapp/w-steps/index",
  3. }

# 视频演示

# 代码演示

  1. <w-pane title="Steps" desc="步骤条" />
  2. <w-pane desc="Default" />
  3. <w-steps
  4. bindcomplete="complete"
  5. current="{{ current }}"
  6. steps="{{ steps }}"
  7. />
  8. <w-button bind:onClick="setCurrent" size="small" type="info">下一步</w-button>
  9. <w-pane desc="vertical" />
  10. <w-steps
  11. current="{{ current }}"
  12. steps="{{ steps }}"
  13. direction="vertical"
  14. />
  15. <w-pane desc="error" />
  16. <w-steps current="2" steps="{{ steps2 }}" />
  17. <w-pane desc="dot" />
  18. <w-steps current="2" type="dot" steps="{{ steps2 }}" />

# API

# Attribute 属性

属性 说明 类型 默认值
steps 步骤数组 array -
type 类型数组型 number 点状型 dot string -
direction 横向和竖向'vertical'|'horizontal' string -
current 指定当前步骤,从 0 开始记数。 number undefined

# Event 事件

事件名 说明 参数

# Slot 插槽

名称 说明

# Class 自定义类名

类名 说明
wuss-class 根节点样式类

Edit this page

Avatar 头像 Countdown 倒计时