V count down

A count down component implement by vuejs

Version: 1.2.0 Updated: 10/21/2016

By: lakb248 License: ISC

Downloads Last 30 Days: 169

Install

npm i v-count-down
yarn add v-count-down

Repository: https://github.com/lakb248/v-count-down

CDNs

bundle.run: https://bundle.run/v-count-down

jsDelivr: https://cdn.jsdelivr.net/npm/v-count-down

unpkg: https://unpkg.com/v-count-down

v-count-down

Build Status codecov

A count down component implement by vuejs

Demo

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 = require('v-count-down');

new Vue({
    components: {
        'vue-count-down': VueCountDown
    },
    template: '<vue-count-down duration="100000"></vue-count-down>'
});

ES6

import VueCountDown from 'v-count-down';

new Vue({
    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

License

MIT

Categories: Vue js