mirror of
https://github.com/javaLuo/vue-flip-down.git
synced 2025-04-06 03:58:09 +08:00
Update README.md
This commit is contained in:
parent
11bd22a50f
commit
dd8eeafedb
31
README.md
31
README.md
@ -1 +1,32 @@
|
|||||||
# vue-flip-down
|
# vue-flip-down
|
||||||
|
---
|
||||||
|
[](https://www.npmjs.com/package/vue-flip-down)
|
||||||
|
|
||||||
|
这是一个简单的翻页倒计时vue组件,项目中有用到,所以提取了一下。
|
||||||
|
|
||||||
|
### 安装
|
||||||
|
```
|
||||||
|
npm install vue-flip-down --save
|
||||||
|
或
|
||||||
|
yarn add vue-flip-down
|
||||||
|
```
|
||||||
|
|
||||||
|
### 使用
|
||||||
|
```
|
||||||
|
import FlipDown from 'vue-flip-down';
|
||||||
|
|
||||||
|
<FlipDown
|
||||||
|
:endDate="1540212399971"
|
||||||
|
>
|
||||||
|
```
|
||||||
|
|
||||||
|
### 参数
|
||||||
|
|
||||||
|
|名称|类型|默认值|描述|
|
||||||
|
|----|----|----|----|
|
||||||
|
|endDate|Date/Number|0|结束的时间,即倒计时会从当前时间一直到endDate停止,可以是一个日期对象,也可以是毫秒数|
|
||||||
|
|type|Number|4|要怎么显示倒计时:4-日时分秒,3-时分秒,2-分秒,1-秒|
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
### End
|
||||||
|
Loading…
x
Reference in New Issue
Block a user