Steps

引导用户按照流程完成任务的导航条。

何时使用

当任务复杂或者存在先后关系时,将其分解成一系列步骤,从而简化任务。

代码演示

Finished
This is a description.
2
In Progress
This is a description.
3
Waiting
This is a description.

基本用法

简单的步骤条。

expand code expand code

Finished
2
In Progress
3
Waiting

迷你版

迷你版的步骤条,通过设置 <Steps size="small"> 启用。

expand code expand code

Login
Verification
Pay
Done

带图标的步骤条

通过设置 Steps.Stepicon 属性,可以启用自定义图标。

expand code expand code

1
First
2
Second
3
Last
First-content

步骤切换

通常配合内容及按钮使用,表示一个流程的处理进度。

expand code expand code

Finished
This is a description.
2
In Progress
This is a description.
3
Waiting
This is a description.

竖直方向的步骤条

简单的竖直方向的步骤条。

expand code expand code

Finished
This is a description.
2
In Progress
This is a description.
3
Waiting
This is a description.

竖直方向的小型步骤条

简单的竖直方向的小型步骤条。

expand code expand code

Finished
This is a description.
In Progress
This is a description.
3
Waiting
This is a description.

步骤运行错误

使用 Steps 的 status 属性来指定当前步骤的状态。

expand code expand code

Finished
This is a description.
In Progress
This is a description.
Waiting
This is a description.

点状步骤条

包含步骤点的进度条。

expand code expand code

Finished
You can hover on the dot.
In Progress
You can hover on the dot.
Waiting
You can hover on the dot.
Waiting
You can hover on the dot.

自定义点状步骤条

为点状步骤条增加自定义展示。

expand code expand code

Steps

整体步骤条。

参数 说明 类型 默认值
current 指定当前步骤,从 0 开始记数。在子 Step 元素中,可以通过 status 属性覆盖状态 number 0
direction 指定步骤条方向。目前支持水平(horizontal)和竖直(vertical)两种方向 string horizontal
labelPlacement 指定标签放置位置,默认水平放图标右侧,可选vertical放图标下方 string horizontal
progressDot 点状步骤条,可以设置为一个 作用域插槽,labelPlacement 将强制为vertical Boolean or slot="progressDot" slot-scope="{index, status, title, description, prefixCls})" false
size 指定大小,目前支持普通(default)和迷你(small string default
status 指定当前步骤的状态,可选 wait process finish error string process
initial 起始序号,从 0 开始记数 number 0

Steps.Step

步骤条内的每一个步骤。

参数 说明 类型 默认值
description 步骤的详情描述,可选 string|slot -
icon 步骤图标的类型,可选 string|slot -
status 指定状态。当不配置该属性时,会使用 Steps 的 current 来自动指定状态。可选:wait process finish error string wait
title 标题 string|slot -
  Pagination 分页AutoComplete 自动完成