# uni-countdown ## Instructions 组件名:uni-countdown 代码块: uCountDown 点击下载&安装 ### Syntax - 使用 ``(或 ``,当需要包裹子节点时)。 - 遇到平台差异时,建议使用条件编译(`#ifdef / #endif`)显式处理。 #### Properties | 属性名 | 类型 | 默认值 | 说明 | | --- | --- | --- | --- | | backgroundColor | String | #FFFFFF | 背景色 | | color | String | #000000 | 文字颜色 | | splitorColor | String | #000000 | 分割符号颜色 | | day | Number | 0 | 天数 | | hour | Number | 0 | 小时 | | minute | Number | 0 | 分钟 | | second | Number | 0 | 秒 | | showDay | Boolean | true | 是否显示天数 | | showHour | Boolean | true | 是否显示小时 | | showMinute | Boolean | true | 是否显示分钟 | | showColon | Boolean | true | 是否以冒号为分隔符 | | start | Boolean | true | 是否初始化组件后就开始倒计时 | #### Events | 事件称名 | 说明 | 返回值 | | --- | --- | --- | | @timeup | 倒计时时间到触发事件 | - | #### Platform Compatibility See official docs for platform support table: `https://uniapp.dcloud.net.cn/component/uniui/uni-countdown.html` ### Examples ### Example (Example 1) ```vue ``` ### Example (Example 2) ```html ``` ### Example (Example 3) ```vue ``` ### Example (Example 4) ```vue ``` ### Example (Example 5) ```vue ``` Reference: - [Official Documentation](https://uniapp.dcloud.net.cn/component/uniui/uni-countdown.html) - [Plugin Marketplace](https://ext.dcloud.net.cn/plugin?name=countdown) - [Local Example](examples/uni-ui/uni-countdown.vue)