vue.js 步骤条

步态指示符 (vue-step-indicator)

A Simple step indicator for Vue.js.

Vue.js的简单步骤指示器。

安装 (Install)

yarn add vue-step-indicator

CDN: UNPKG | jsDelivr(available as window.StepIndicator)

CDN: UNPKG | jsDelivr (可作为window.StepIndicator )

用法 (Usage)

<template>
  <step-indicator :current="1" :total="3"></step-indicator>
</template>

<script>
import StepIndicator from 'vue-step-indicator'

export default {
  components: {
    StepIndicator
  }
}
</script>

<style src="vue-step-indicator/dist/vue-step-indicator.css"></style>

API (API)

道具 (Props)

Prop Type Default Description
current number (Required) Index of current step
total number (Required) Total steps
currentColor string 'rgb(68, 0, 204)' Color of current step
defaultColor string 'rgb(130, 140, 153)' Default color of each step
handleClick function Triggered when an indicator is clicked
Struts 类型 默认 描述
当前 (需要) 当前步骤的索引
(需要) 总步数
currentColor 'rgb(68, 0, 204)' 当前步骤的颜色
defaultColor 'rgb(130, 140, 153)' 每个步骤的默认颜色
handleClick 功能 单击指标时触发

翻译自: https://vuejsexamples.com/simple-step-indicator-for-vue-js/

vue.js 步骤条

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐