vue-num-flip
v1.0.1
Published
数字翻页动画,Vue对象下全局调用
Downloads
26
Readme
vue-num-flip
数字翻页效果,vue对象下全局调用
main.js中调用
import vueNumFlip from 'vue-num-flip'
Vue.use(vueNumFlip)
可以在App.vue页面的template的页面中调用
<vueNumFlip numTitle="当前园区游客" nid="s3" :totalNum=sucNum />
可配置的属性
- flipTime:(可选),动画翻页的时间间隔
- numTitle:(必选),数据的标题
- nid:(必选),渲染出数字样式的id,不能相同
- totalNum:(必选),初始化的数字