1.0.1 • Published 7 years ago

vue-countdown-2 v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

A countdown component for Vue 2.0+

Demo here

Install

npm install --save vue-countdown-2

Usage

<template>
    <vue-countdown-2 deadline="2018/05/29"></vue-countdown-2>
</template>

<script>
import VueCountdown2 from 'vue-countdown-2';

export default {
  components: {
    VueCountdown2
  }
}
</script>

<!-- Output -->
<time>1年 1月 3天 5小时 28分 24秒</time>

Custom Format

<vue-countdown-2 deadline="2018/05/29" format="%h hours %m minutes %s seconds"></vue-countdown-2>

<!-- Output -->
<time>82928 hours 27 minutes 46 seconds</time>