项目作者: KABBOUCHI

项目描述 :
https://kabbouchi.github.io/date-countdown-component
高级语言: Vue
项目地址: git://github.com/KABBOUCHI/date-countdown-component.git
创建时间: 2018-11-07T08:53:52Z
项目社区:https://github.com/KABBOUCHI/date-countdown-component

开源协议:

下载


date-countdown-component

Project setup

  1. yarn install

Compiles and minifies for production

  1. yarn run build

Usage

Default

  1. <date-countdown until="2018-11-08"></date-countdown>

Custom template

  1. <date-countdown until="2018-11-08">
  2. <template slot id="finished">
  3. <h4>Now Expired</h4>
  4. </template>
  5. <template slot id="main">
  6. <div>
  7. <span>
  8. <span data-days></span> Days,
  9. </span>
  10. <span>
  11. <span data-hours></span> Hours,
  12. </span>
  13. <span>
  14. <span data-minutes></span> Minutes,
  15. </span>
  16. <span>
  17. <span data-seconds></span> Seconds,
  18. </span>
  19. <span>
  20. <span data-milliseconds></span> Milliseconds
  21. </span>
  22. </div>
  23. </template>
  24. </date-countdown>