Skip to content

Latest commit

History

History

wxc-countdown

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

wxc-countdown

Countdown

聽聽聽聽

Code Example

<template>
  <wxc-countdown tpl="{d}:{h}:{m}:{s}" :time="TIME"></wxc-countdown>
</template>
<script>
    import { WxcCountdown } from 'weex-ui'
    export default {
      components: { WxcCountdown },
      data: () => ({
        TIME: new Date().getTime() + 86400000 + ''
      })
    }
</script>

More details can be found in here

API

Prop Type Required Default Description
time Number Y 1501200000000 Final timestamp
interval Number N 1000 interval
tpl String N {h}:{m}:{s} template
onComplete Function N ()=>() callback when completed
timeWrapStyle Object N - wrap style
timeBoxStyle Object N - number box style
dotBoxStyle Object N - symbol box style
timeTextStyle Object N - number text style
dotTextStyle Object N - symbol text style