vue线性渐变_Vue线性进度条

vue线性渐变

k进度 (k-progress)

A Vue plugin, linear progress bar.

Vue插件,线性进度条。

📦安装 (📦 Install)

npm install -S k-progress
# or
yarn add k-progress

🔨开始开始 (🔨 Begin Start)

// main.js
import KProgress from 'k-progress';
Vue.component('k-progress', KProgress);

s属性 (📔 Attributes)

AttributeTypeDefaultOptionalexplain
percentNumber00-100Percent (Required)
line-heightNumber6Progress bar height
typeStringlineline / lumpProgress bar type
statusStringsuccess / warning / errorProgress bar status
colorString / Array / FunctionProgress bar color; When using Array, the limit is 6; When using Function, the argument is percent
color-flowBooleanfalseWhether to enable color flow
flow-secondNumber51-6The time required for the flow, that is, the smaller the time, the faster the speed
bg-colorString#ebeef5Color codeProgress bar background color
borderBooleantrueWhether arc
show-textBooleantrueWhether to show progress bar text
formatFunctionCustom text display, parameter is percent
cut-widthNumber1lump width
cut-colorString#ebeef5Color codelump color
activeBooleanfalseWhether to enable dynamic effects
active-colorStringDynamic effect color
属性 类型 默认 可选的 说明
百分 0 0-100 百分比(必填)
行高 6 进度条高度
类型 line line / lump 进度条类型
状态 success / warning / error 进度栏状态
颜色 字符串/数组/函数 进度条颜色; 使用Array ,限制为6; 使用Function ,参数为percent
色流 布尔型 false 是否启用色彩流
流量秒 5 1-6 流程所需的时间,即时间越短,速度越快
背景色 #ebeef5 色标 进度栏背景色
边境 布尔型 true 是否圆弧
显示文字 布尔型 true 是否显示进度条文字
格式 功能 自定义文本显示,参数为percent
裁切宽度 1个 lump
切色 #ebeef5 色标 lump
活性 布尔型 false 是否启用动态效果
活性色 动态效果色

翻译自: https://vuejsexamples.com/a-vue-linear-progress-bar/

vue线性渐变

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值