npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tanzhenxing/zx-steps

v1.0.5

Published

基于 Element Plus Steps 组件设计的 uni-app 步骤条组件

Readme

zx-steps 步骤条组件

基于 Element Plus Steps 组件设计的 uni-app 步骤条组件,支持 H5、小程序和 App,不依赖浏览器特有的 DOM。

特性

  • ✅ 基础步骤导航
  • ✅ 多种显示方向(水平/垂直)
  • ✅ 居中对齐
  • ✅ 带描述文案
  • ✅ 带图标的步骤
  • ✅ 简洁风格
  • ✅ 多种状态(等待/处理中/完成/错误/成功)
  • ✅ 自定义间距
  • ✅ 可定制主题
  • ✅ 支持插槽自定义
  • ✅ 跨端兼容

安装方法

将组件复制到项目的 components 目录中即可使用。

基础用法

<template>
  <zx-steps :active="active" finish-status="success">
    <zx-step title="步骤 1"></zx-step>
    <zx-step title="步骤 2"></zx-step>
    <zx-step title="步骤 3"></zx-step>
  </zx-steps>
  <button @click="next">下一步</button>
</template>

<script setup>
import { ref } from 'vue';
import ZxSteps from '@/components/zx-steps/zx-steps.vue';
import ZxStep from '@/components/zx-steps/zx-step.vue';

const active = ref(0);

const next = () => {
  active.value = (active.value + 1) % 4;
};
</script>

含状态的步骤条

<template>
  <zx-steps :active="1" :space="200" finish-status="success">
    <zx-step title="已完成"></zx-step>
    <zx-step title="处理中"></zx-step>
    <zx-step title="步骤 3"></zx-step>
  </zx-steps>
</template>

居中的步骤条

<template>
  <zx-steps :active="2" align-center>
    <zx-step title="步骤 1" description="这是一段描述文字"></zx-step>
    <zx-step title="步骤 2" description="这是一段描述文字"></zx-step>
    <zx-step title="步骤 3" description="这是一段描述文字"></zx-step>
  </zx-steps>
</template>

带描述的步骤条

<template>
  <zx-steps :active="1">
    <zx-step title="步骤 1" description="这里是步骤 1 的详细描述"></zx-step>
    <zx-step title="步骤 2" description="这里是步骤 2 的详细描述"></zx-step>
    <zx-step title="步骤 3" description="这里是步骤 3 的详细描述"></zx-step>
  </zx-steps>
</template>

带图标的步骤条

<template>
  <zx-steps :active="1">
    <zx-step title="步骤 1" icon="✏️"></zx-step>
    <zx-step title="步骤 2" icon="⬆️"></zx-step>
    <zx-step title="步骤 3" icon="🖼️"></zx-step>
  </zx-steps>
</template>

垂直的步骤条

<template>
  <view style="height: 300px;">
    <zx-steps direction="vertical" :active="active">
      <zx-step title="步骤 1" description="这是一段描述文字"></zx-step>
      <zx-step title="步骤 2" description="这是一段描述文字"></zx-step>
      <zx-step title="步骤 3" description="这是一段描述文字"></zx-step>
    </zx-steps>
  </view>
</template>

简洁风格的步骤条

<template>
  <zx-steps :active="1" simple>
    <zx-step title="步骤 1"></zx-step>
    <zx-step title="步骤 2"></zx-step>
    <zx-step title="步骤 3"></zx-step>
  </zx-steps>
</template>

API

ZxSteps Props

| 属性名 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | active | 设置当前激活步骤 | Number | 0 | | direction | 显示方向,可选值为 horizontal 或 vertical | String | horizontal | | space | 每个 step 的间距,支持百分比或像素值 | String/Number | - | | process-status | 设置当前步骤的状态,可选值为 wait/process/finish/error/success | String | process | | finish-status | 设置结束步骤的状态,可选值为 wait/process/finish/error/success | String | finish | | align-center | 进行居中对齐 | Boolean | false | | simple | 是否应用简洁风格 | Boolean | false |

ZxSteps Slots

| 插槽名 | 说明 | | --- | --- | | default | 步骤组件(ZxStep) |

ZxStep Props

| 属性名 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | title | 标题 | String | - | | description | 描述文案 | String | - | | icon | 自定义图标 | String | - | | status | 设置当前步骤的状态,可选值为 wait/process/finish/error/success | String | - |

ZxStep Slots

| 插槽名 | 说明 | | --- | --- | | icon | 自定义图标 | | title | 自定义标题 | | description | 自定义描述文案 |

注意事项

  1. 步骤条至少需要包含 2 个 zx-step 子组件
  2. active 属性从 0 开始计数
  3. 简洁模式下,align-center、description、direction、space 属性均无效
  4. 如需定制主题颜色,可修改组件样式中的相关颜色变量