Skip to content
大纲

动态数字

示例

0
0

代码

html
<div >
  <countTo :endVal="99999999"></countTo>
  <br/>
  <countTo :endVal="99999999" :duration="100000"></countTo>
</div>
js
<script setup>
  import { countTo } from "jstar-comp-lib"
</script>

参数

参数说明类型默认值
startVal开始滚动数值number0
endVal结束滚动数值number0
duration滚动时间,单位msnumber0
decimals精确度,数值几位就是几位小数number0
style滚动数字样式object0
unit单位string-
color单独组件颜色设置color滚动数字颜色,unitColor单位颜色object0

贡献名单

jstar

jstar

创建者

Released under the MIT License.