vue-countdown2

0.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i vue-countdown2

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

338 kB

Total Files

18

Last publish

Collaborators

  • ygtzz