v-count-down
A count down component implement by vuejs
Demo
Usage
Install
npm install v-count-down --save
And, if you are using vue 2.0
npm install v-count-down@next --save
CommonJS
var VueCountDown = ; components: 'vue-count-down': VueCountDown template: '<vue-count-down duration="100000"></vue-count-down>';
ES6
; components: 'vue-count-down': VueCountDown template: '<vue-count-down duration="100000"></vue-count-down>'
Props
Property | Description |
---|---|
duration | the duration of the count down |
endTime | the end time of the count down |
onTimeOut | timeout handler of the count down |