inleft
2022-02-09 9bcb19959eeb9da9bde2561e7278f6d0a55eb151
commit | author | age
9bcb19 1 # CountDown 倒计时
I 2
3 倒计时组件。
4
5
6
7 引用方式:
8
9 ```javascript
10 import CountDown from '@/components/CountDown/CountDown'
11
12 export default {
13     components: {
14         CountDown
15     }
16 }
17 ```
18
19
20
21 ## 代码演示  [demo](https://pro.loacg.com/test/home)
22
23 ```html
24 <count-down :target="new Date().getTime() + 3000000" :on-end="onEndHandle" />
25 ```
26
27
28
29 ## API
30
31 | 参数      | 说明                                      | 类型         | 默认值 |
32 |----------|------------------------------------------|-------------|-------|
33 | target | 目标时间 | Date | - |
34 | onEnd |  倒计时结束回调 | funtion | -|