inleft
2022-08-02 70097d968795fcc872095c42f7b7bba618baaaf9
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 | -|