数字动画组件
示例位置
src/views/demo/pages/comp/count-to/index.vue
组件位置
src/views/demo/components/CountTo
使用说明
- prefix: string 前缀 例如:prefix="$"
- suffix: string 后缀 例如:suffix="$"
- color: string 颜色 例如: :color="'#409EFF'" :color="'red'" :color="'rgb(0,238,0)'"
- separator: string 分隔符 例如: separator="-"
- startVal: number 起始数字
- endVal: number 结束数字
- duration: number 从起始数字到结束数字耗时