CountDown 倒计时请使用手机扫码体验

基础用法

  1. html
    <nut-countdown
  2. :endTime="end"
  3. >
  4. </nut-countdown>

显示天

  1. html
    <nut-countdown
  2. :endTime="end"
  3. showDays
  4. >
  5. </nut-countdown>

以服务端的时间为准

  1. html
    <nut-countdown
  2. :startTime="serverTime"
  3. :endTime="end"
  4. showDays
  5. >
  6. </nut-countdown>

显示为 天时分秒

  1. html
    <nut-countdown
  2. showDays
  3. showPlainText
  4. :endTime="end"
  5. >
  6. </nut-countdown>

控制开始和暂停的倒计时

  1. html
    <nut-countdown
  2. :endTime="end"
  3. :paused="paused"
  4. >
  5. </nut-countdown>

Prop

字段说明类型默认值
startTime开始时间String, NumberDate.now()
endTime结束时间String, NumberDate.now()
showDays是否显示天Booleanfalse
showPlainText显示为纯文本Booleanfalse
paused是否暂停Booleanfalse
interval间隔时间Number1000