CountDown 倒计时
Display · Display component
Countdown states.
On-demand import
wbbb-ui/components/count-downBasic Usage
<script setup lang="ts">
import { WbbbCountDown } from 'wbbb-ui/components/count-down'
import 'wbbb-ui/styles/count-down'
</script>
<template>
<WbbbCountDown />
</template>States and Interaction
All listed states can be operated and verified in the live Playground preview.
DefaultContent
API Reference
Props
| Property | Description | Type | Default | Required |
|---|---|---|---|---|
autoStart | Starts timing automatically after mount. | boolean | true | No |
format | Sets the output display format. | string | 'HH:mm:ss' | No |
time | Sets the remaining time or target time value. | number | 0 | No |
Events
changefinish
Slots
None
Two-way binding
Does not support v-model.
Platform Notes
Build verification: H5, App Vue, WeChat Mini Program, Alipay Mini Program, and Douyin Mini Program.
Runtime differences: H5 supports keyboard focus and reduced motion. Mini Programs provide equivalent touch interaction; verify upload, date selection, and overlays on target platforms.
Usage note: Use Playground to verify further state combinations and cross-platform behavior.
