0.0.3 • Published 6 years ago

vue-countdown2 v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

vue-countdown

Install

npm install vue-countdown2 -S

yarn add vue-countdown2

QuickStart

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 millisecond
  • endtime: the count down entTime,type Number,unit is millisecond
  • second: type Boolean,whether to show seconds

Preview

countdown image

0.0.3

6 years ago

0.0.2

7 years ago