JSPM

  • Created
  • Published
  • Downloads 226
  • Score
    100M100P100Q89012F
  • License MIT

Number Rolling Counter

Package Exports

  • vue-roller

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-roller) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vue-roller

License Version

Vue Rolling Count & Vue Rolling String

Demo

http://andy-0414.github.io/vue-roller

GET STARTED

npm

npm i vue-roller

Vue

import Roller from "vue-roller";

export default {
    components:{
        Roller
    }
}
...

Vue-typescript

import Roller from "vue-roller";

@Component({
    components: { Roller }
})
...

Options

text

<Roller text="1234">

display text

required

transition

<Roller transition="1">

transition speed

default = 0.5

isNumberFormat

<Roller isNumberFormat="true">

numberFormat (comma)

default - false

charList

<Roller :charList="['a', 'b', 'c']">

roll char list

default - ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]