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

vue3-step

v1.1.8

Published

Two-dimensional step bar component based on vue3(基于vue3的二维步骤条组件)

Downloads

49

Readme

vue3-step

CocoaPods CocoaPods

这是一个二维步骤条, 每个大步骤下面有复数个小步骤 demo

项目地址

  • github : https://github.com/sugdove/vue3-step

  • github 项目启动: 1.yarn install 2.yarn serve

依赖

  • Vue 3.0.0+

安装方式

npm install vue3-step

全局引入方式

//前置配置
import { createApp } from 'vue'
import App from './App.vue'
//全局引入
import Vue3Step from 'vue3-step'
import 'vue3-step/lib/vue3Step.css' // 引入样式
const app = createApp(App)
app.use(Vue3Step).mount('#app') //使用方式:<Vue3Step></Vue3Step>

局部引入方式

//局部引入
import { Vue3Step } from 'vue3-step'
import 'vue3-step/lib/vue3Step.css' // 引入样式
export default {
  template: '<Vue3Step/>',
  components: { Vue3Step },
}

示例

<template>
  <Vue3Step
    :step="state.step"
    :stepOption="state.stepOption"
    @handleCheck="handleCheck"
    @handleDetails="handleDetails"
    @handleStep="handleStep"
  >
  </Vue3Step>
</template>

<script>
import { reactive, defineComponent } from 'vue'
export default defineComponent({
  name: 'App',
  setup() {
    const state = reactive({
      step: '1-1',
      // status:0 未检查, 1 通过, 2 待完善 3. 未通过
      stepOption: [
        [
          { label: 'step1-1', status: 0 },
          { label: 'step1-2', status: 0 },
        ],
        [
          { label: 'step2-1', status: 0 },
          { label: 'step2-2', status: 0 },
          { label: 'step2-3', status: 0 },
        ],
      ],
    })
    const handleCheck = () => {
      state.step = '1-2'
      state.stepOption[0][0].status = 1
    }
    const handleDetails = (item) => {
      console.log(item)
    }
    const handleStep = (index) => {
      state.step = `${index + 1}-1`
      console.log(index)
    }
    return {
      state,
      handleCheck,
      handleDetails,
      handleStep,
    }
  },
})
</script>

在示例中我使用了 es6(es2015)语法,你可能需要引入 babel-polyfill 才能正常运行,或者你也可以用 es5 的写法

参数

  • step

    • 参数 String ${n}-${m}

    当前在第 n 大步里的第 m 小步

  • stepOption

    • 参数 Array 二维数组 标识步骤条的整体信息,其中 label 为步骤文案,status 为步骤状态, 0-未检查 1-检查通过 2-建议完善 3-未通过

事件

  • handleCheck()

    • 参数:无

    点击启动检查时的钩子函数

  • handleDetails( item, index, index2 )

    • 参数 Object:

    点击某一详情的钩子函数 item 为改 step 对象, index 为 stepOptions 下标, index2 为 stepOptions 二维下标

  • handleStep( index )

    • 参数 index:

    点击某一大步骤的钩子函数 index 为二维数组第一层下标

联系方式

欢迎大家关注我做的网站: http://www.githubs.cloud/

如果对您有帮助, 欢迎 star

有任何问题请发 Issues 或者邮箱联系我-.- 谢谢!