0.0.3 • Published 8 years ago
vue-countdown2 v0.0.3
vue-countdown
Install
npm install vue-countdown2 -S
yarn add vue-countdown2QuickStart
require('vue-countdown2/dist/vue-countdown.css');
// in ES6 modules
import { countdown } from 'vue-countdown2';
// in CommonJS
const { countdown } = require('vue-countdown2');
// in Global variable
const { countdown } = VueCountdown;
Vue.component('c-countdown',countdown);<c-countdown :starttime="startTime" :endtime="endTime" :second="true"></c-countdown>Params
props
starttime: the count down startTime,type Number,unit is millisecondendtime: the count down entTime,type Number,unit is millisecondsecond: type Boolean,whether to show seconds
Preview
