1.0.6 • Published 7 years ago
vue-count v1.0.6
vue-count
a plugin of count for Vue.js
Installation
<script>
IncludeJust include
vue-count.js
after Vue itself.With Modules
npm install --save-dev vue-count
// ES6 // use Vue.use() import Vue from 'vue' import VueCount from 'vue-count' Vue.use(VueCount) // or use component import VueCount from 'vue-count' component: { VueCount }
Component Properties
min
requiredNumber
The number of minimum value
max
requiredNumber
The number of max value
options
Object
duration
Number
Default:
2
The count duration (unit for seconds)
reverse
Boolean
Default:
false
The number from min to max or from max to min
decimal
Number
Default:
0
The places of how many decimal to keep
'useGroup'
Boolean
Default:
false
Whether to use group