JSPM

vue-count-component

1.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q31072F
  • License MIT

A count-to component of vue

Package Exports

  • vue-count-component

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-count-component) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vue-count-componet

A count-to component of vue

Use Setup

# install dependencies
npm install vue-count-component -S

# use
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 or demo