logoNamu Design

⌘ K
  • 设计
  • 研发
  • 组件
  • 博客
  • 资源
  • 国内镜像
1.0.0
  • 组件总览
  • 通用
    • Button按钮
    • FloatButton悬浮按钮New
    • Icon图标
    • Typography排版
  • 布局
    • Divider分割线
    • Grid栅格
    • Layout布局
    • Space间距
  • 导航
    • Anchor锚点
    • Breadcrumb面包屑
    • Dropdown下拉菜单
    • Menu导航菜单
    • Pagination分页
    • Steps步骤条
  • 数据录入
    • AutoComplete自动完成
    • Cascader级联选择
    • Checkbox多选框
    • ColorPicker颜色选择器New
    • DatePicker日期选择框
    • Form表单
    • Input输入框
    • InputNumber数字输入框
    • Mentions提及
    • Radio单选框
    • Rate评分
    • Select选择器
    • Slider滑动输入条
    • Switch开关
    • TimePicker时间选择框
    • Transfer穿梭框
    • TreeSelect树选择
    • Upload上传
  • 数据展示
    • Avatar头像
    • Badge徽标数
    • Calendar日历
    • Card卡片
    • Carousel走马灯
    • Collapse折叠面板
    • Descriptions描述列表
    • Empty空状态
    • Image图片
    • List列表
    • Popover气泡卡片
    • QRCode二维码New
    • Segmented分段控制器
    • Statistic统计数值
    • Table表格
    • Tabs标签页
    • Tag标签
    • Timeline时间轴
    • Tooltip文字提示
    • Tour漫游式引导New
    • Tree树形控件
  • 反馈
    • Alert警告提示
    • Drawer抽屉
    • Message全局提示
    • Modal对话框
    • Notification通知提醒框
    • Popconfirm气泡确认框
    • Progress进度条
    • Result结果
    • Skeleton骨架屏
    • Spin加载中
    • Watermark水印New
  • 其他
    • Affix固钉
    • App包裹组件New
    • ConfigProvider全局化配置
何时使用
代码演示
基本用法
迷你版
带图标的步骤条
步骤切换
竖直方向的步骤条
竖直方向的小型步骤条
步骤运行错误
点状步骤条
自定义点状步骤条
可点击
导航步骤
带有进度的步骤
标签放置位置
内联步骤
API
Steps
type="inline"
StepItem
Design Token

Steps
步骤条

  • Pagination分页AutoComplete自动完成

    相关资源

    Namu Design Charts
    Namu Design Pro
    Namu Design Pro Components
    Namu Design Mobile
    Namu Design Mini
    Namu Design Landing-首页模板集
    Scaffolds-脚手架市场
    Umi-React 应用开发框架
    dumi-组件/文档研发工具
    qiankun-微前端框架
    ahooks-React Hooks 库
    Ant Motion-设计动效
    国内镜像站点 🇨🇳

    社区

    Awesome Namu Design
    Medium
    Twitter
    yuqueNamu Design 语雀专栏
    Namu Design 知乎专栏
    体验科技专栏
    seeconfSEE Conf-蚂蚁体验科技大会
    加入我们

    帮助

    GitHub
    更新日志
    常见问题
    报告 Bug
    议题
    讨论区
    StackOverflow
    SegmentFault

    Ant XTech更多产品

    yuque语雀-构建你的数字花园
    AntVAntV-数据可视化解决方案
    EggEgg-企业级 Node.js 框架
    kitchenKitchen-Sketch 工具集
    xtech蚂蚁体验科技
    主题编辑器
    Made with ❤ by
    蚂蚁集团和 Namu Design 开源社区

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

    何时使用

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

    代码演示

    Finished
    This is a description.
    2
    In Progress
    Left 00:00:08
    This is a description.
    3
    Waiting
    This is a description.
    基本用法

    简单的步骤条。

    expand codeexpand code
    Finished
    2
    In Progress
    3
    Waiting
    迷你版

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

    expand codeexpand code
    Login
    Verification
    Pay
    Done
    带图标的步骤条

    通过设置 items 的 icon 属性,可以启用自定义图标。

    expand codeexpand code
    1
    First
    2
    Second
    3
    Last
    First-content
    步骤切换

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

    expand codeexpand code
    Finished
    This is a description.
    2
    In Progress
    This is a description.
    3
    Waiting
    This is a description.
    竖直方向的步骤条

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

    expand codeexpand code
    Finished
    This is a description.
    2
    In Progress
    This is a description.
    3
    Waiting
    This is a description.
    竖直方向的小型步骤条

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

    expand codeexpand code
    Finished
    This is a description
    In Process
    This is a description
    3
    Waiting
    This is a description
    步骤运行错误

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

    expand codeexpand code
    Finished
    This is a description.
    In Progress
    This is a description.
    Waiting
    This is a description.
    Finished
    This is a description. This is a description.
    Finished
    This is a description. This is a description.
    In Progress
    This is a description. This is a description.
    Waiting
    This is a description.
    Waiting
    This is a description.
    点状步骤条

    包含步骤点的进度条。

    expand codeexpand 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 codeexpand code
    1
    Step 1
    This is a description.
    2
    Step 2
    This is a description.
    3
    Step 3
    This is a description.
    1
    Step 1
    This is a description.
    2
    Step 2
    This is a description.
    3
    Step 3
    This is a description.
    可点击

    设置 onChange 后,Steps 变为可点击状态。

    expand codeexpand code
    Step 1
    00:00:05
    This is a description.
    2
    Step 2
    00:01:02
    This is a description.
    3
    Step 3
    waiting for longlong time
    This is a description.
    Step 1
    2
    Step 2
    3
    Step 3
    4
    Step 4
    finish 1
    finish 2
    3
    current process
    4
    wait
    导航步骤

    导航类型的步骤条。

    expand codeexpand code
    Finished
    This is a description.
    2
    In Progress
    Left 00:00:08
    This is a description.
    3
    Waiting
    This is a description.
    带有进度的步骤

    带有进度的步骤。

    expand codeexpand code
    Finished
    This is a description.
    2
    In Progress
    This is a description.
    3
    Waiting
    This is a description.

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

    Finished
    This is a description.
    2
    In Progress
    This is a description.
    3
    Waiting
    This is a description.
    标签放置位置

    修改标签放置位置为 vertical。

    expand codeexpand code
    • Namu Design Title 1

      Namu Design, a design language for background applications, is refined by Ant UED Team
      Step 1
      This is a Step 1.
      Step 2
      This is a Step 2.
      Step 3
      This is a Step 3.
    • Namu Design Title 2

      Namu Design, a design language for background applications, is refined by Ant UED Team
      Step 1
      This is a Step 1.
      Step 2
      This is a Step 2.
      Step 3
      This is a Step 3.
    • Namu Design Title 3

      Namu Design, a design language for background applications, is refined by Ant UED Team
      Step 1
      This is a Step 1.
      Step 2
      This is a Step 2.
      Step 3
      This is a Step 3.
    • Namu Design Title 4

      Namu Design, a design language for background applications, is refined by Ant UED Team
      Step 1
      This is a Step 1.
      Step 2
      This is a Step 2.
      Step 3
      This is a Step 3.
    内联步骤

    内联类型的步骤条,适用于列表内容场景中展示对象所在流程、当前状态的情况。

    expand codeexpand code

    API

    通用属性参考:通用属性

    Steps

    整体步骤条。

    参数说明类型默认值版本
    className步骤条类名string-
    current指定当前步骤,从 0 开始记数。在子 Step 元素中,可以通过 status 属性覆盖状态number0
    direction指定步骤条方向。目前支持水平(horizontal)和竖直(vertical)两种方向stringhorizontal
    initial起始序号,从 0 开始记数number0
    labelPlacement指定标签放置位置,默认水平放图标右侧,可选 vertical 放图标下方stringhorizontal
    percent当前 process 步骤显示的进度条进度(只对基本类型的 Steps 生效)number-4.5.0
    progressDot点状步骤条,可以设置为一个 function,labelPlacement 将强制为 verticalboolean | (iconDot, {index, status, title, description}) => ReactNodefalse
    responsive当屏幕宽度小于 532px 时自动变为垂直模式booleantrue
    size指定大小,目前支持普通(default)和迷你(small)stringdefault
    status指定当前步骤的状态,可选 wait process finish errorstringprocess
    type步骤条类型,可选 default navigation inlinestringdefaultinline: 5.0
    onChange点击切换步骤时触发(current) => void-
    items配置选项卡内容StepItem[]4.24.0

    type="inline"

    参数说明类型默认值版本
    className步骤条类名string-
    current指定当前步骤,从 0 开始记数。在子 Step 元素中,可以通过 status 属性覆盖状态number0
    initial起始序号,从 0 开始记数number0
    status指定当前步骤的状态,可选 wait process finish errorstringprocess
    onChange点击切换步骤时触发(current) => void-
    items配置选项卡内容,不支持 icon subtitleStepItem[]4.24.0

    StepItem

    步骤条内的每一个步骤。

    参数说明类型默认值版本
    description步骤的详情描述,可选ReactNode-
    disabled禁用点击booleanfalse
    icon步骤图标的类型,可选ReactNode-
    status指定状态。当不配置该属性时,会使用 Steps 的 current 来自动指定状态。可选:wait process finish errorstringwait
    subTitle子标题ReactNode-
    title标题ReactNode-

    Design Token

    组件 Token

    全局 Token