vue 进度条 插件_基于vue的级联进度条插件

vue 进度条 插件

延进步 (yan-progress)

This is a cascading progress bar plugin based on vue.

这是一个基于vue的级联进度栏插件。

yan-progress

安装 (Install)

$ yarn add yan-progress

快速启动 (Qucik start)

App.vue

应用程序

<template>
    <div>
        <yan-progress :total="100" :done="60" :modify="30" />
    </div>
</template>

index.js

index.js

import Vue from 'vue';
import YanProgress from 'yan-progress';
import App from './App.vue';

Vue.use(YanProgress);

new Vue({
  el: '#app',
  render: h => h(App)
});

(Example)

Check this file in index.html

index.html检查此文件

API (API)

paramsdescriptiontypedefault
totalThe total of progressnumber
doneThe number of donenumber
modifyThe number of modified base on donenumber
tipCustom Style (Array contains 3 items, in turn: uncomplete, done, and modified, each item configuration as shown in iTipConfig below)iTipConfig
参数 描述 类型 默认
总进度 -
做完了 完成次数 -
修改 修改完成数量 -
小费 自定义样式(数组包含3个项目,依次为:未完成,已完成和已修改,每个项目配置如下面的iTipConfig中所示) iTipConfig -

iTipConfig

iTipConfig

paramsdescriptiontypememo
textThe tooltip text ('X'is a placeholder)stringThe color type same with CSS
fillStyleThe background color of progress barstringThe color type same with CSS
参数 描述 类型 备忘录
文本 工具提示文字(“ X”是占位符) 颜色类型与CSS相同
fillStyle 进度条的背景色 颜色类型与CSS相同

翻译自: https://vuejsexamples.com/a-cascading-progress-bar-plugin-based-on-vue/

vue 进度条 插件

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值