一、vue-count-to是什么?

vue-count-to是一个无依赖、轻量级的vue组件。详情请查看链接

二、vue-count-to如何使用?

  • 安装
npm install vue-count-to
  • exapmle
<template>
  <countTo :startVal='startVal' :endVal='endVal' :duration='3000'></countTo>
</template>

<script>
  import countTo from 'vue-count-to';
  export default {
    components: { countTo },
    data () {
      return {
        startVal: 0,
        endVal: 2017
      }
    }
  }
</script>

三、vue-count-to配置

vue-count-to数字滚动插件

更多demo

 

相关文章:

  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2018-05-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2021-06-03
  • 2022-02-11
  • 2022-12-23
相关资源
相似解决方案