安装
npm install --save vue-count-to
引入
import CountTo from 'vue-count-to'
使用
<count-to :start-val="0" :end-val="redBookCount" :duration="4000" class="card-panel-num" />
使用例子
<template>
<count-to :start-val="0" :end-val="schoolsCount" :duration="4000" class="card-panel-num" />
</template>
<script>
import CountTo from 'vue-count-to'
export default {
}
</script>
<style scoped lang="scss">
</style>