vue-count-component
Advanced tools
+1
-1
| { | ||
| "name": "vue-count-component", | ||
| "description": " A count-to component of vue", | ||
| "version": "1.0.4", | ||
| "version": "1.0.5", | ||
| "author": "xiaopingbuxiao", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
+17
-13
| # vue-count-componet | ||
| > A count-to component of vue.js | ||
| > A count-to component of vue | ||
| ## Build Setup | ||
| ## Use Setup | ||
@@ -11,19 +11,23 @@ ``` bash | ||
| # use | ||
| import countComponent from 'vue-count-component' | ||
| main.js | ||
| import CountComponent from 'vue-count-component' | ||
| Vue.use(CountComponent) | ||
| everyone.vue | ||
| import CountComponent from 'vue-count-component' | ||
| components:{ | ||
| CountComponent | ||
| } | ||
| <count-component :startVal='0' :endVal='2018'/></count-component> | ||
| ``` | ||
| * startVal = 起始值 the value you want to begin at | ||
| * endVal = 结束值 the value you want to arrive at | ||
| * decimals = 小数点后保留位数 (optional) number of decimal places in number, default 0 | ||
| * duration = 时间 (optional) duration in seconds, default 2 | ||
| * options = see [countUp.js](https://github.com/inorganik/countUp.js#readme) or [demo](http://inorganik.github.io/countUp.js/) | ||
| * startVal = the value you want to begin at | ||
| * endVal = the value you want to arrive at | ||
| * decimals = (optional) number of decimal places in number, default 0 | ||
| * duration = (optional) duration in seconds, default 2 | ||
| * options = see [countUp.js](https://github.com/inorganik/countUp.js#readme) and [demo](http://inorganik.github.io/countUp.js/) | ||
| ``` | ||
50358
0.35%33
13.79%