1.0.6 • Published 7 years ago

vue-count v1.0.6

Weekly downloads
26
License
-
Repository
-
Last release
7 years ago

vue-count

a plugin of count for Vue.js

Installation

  • <script> Include

    Just 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 required

    Number

    The number of minimum value

  • max required

    Number

    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

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago