vue 数字滚动的插件 vue-count-to

 <countTo :startVal="startVal" :endVal="endVal" :duration="3000"></countTo>               // duration 数字滚动的快慢 

import countTo from 'vue-count-to'

 components: {
    countTo
  },
data() {
    return {
       startVal: 0,   //数字滚动的起点
       endVal: 2019,  //数字滚动的终点
    }
}     

 

posted @ 2020-04-23 11:01  纯白棒球帽  阅读(664)  评论(0编辑  收藏  举报