Files
mes-ui-d2/static/md/组件 - 数字动画.md
李杨 65ec820e68 no message
Former-commit-id: 28ec2beb0befdc6a796458fbcc1a0c3786fb8d62
Former-commit-id: 82768e538a271a2354616cd01f84fd73631a62b2
Former-commit-id: 450e74928f5d6bdba20e01ce57bebdfde0d512a1
2018-03-21 20:29:50 +08:00

784 B

参数

参数名 介绍 必选 值类型 可选值 默认值
start 起始值 Number 0
end 结束值 Number 0
decimals 小数位数 Number 0
duration 持续时间 Number 2
options 设置项 Object 空对象
callback 回调函数 Function 空函数

示例

// 基本使用方法
<CountUp :end="100"></CountUp>

// 设置始末值
<CountUp :start="14" :end="100"></CountUp>

// 设置动画时间
<CountUp :end="100" :decimals="2"></CountUp>

组件会在页面上渲染 <span> 标签

组件根据 countUp.js 封装,options 参数详见原始插件文档