docs: make document more compact

This commit is contained in:
陈嘉涵
2020-01-19 19:52:46 +08:00
parent bb53c3c758
commit 3a4107ef49
40 changed files with 56 additions and 162 deletions
+2 -9
View File
@@ -30,20 +30,13 @@ export default {
### Custom Format
```html
<van-count-down
:time="time"
format="DD Day, HH:mm:ss"
/>
<van-count-down :time="time" format="DD Day, HH:mm:ss" />
```
### Millisecond
```html
<van-count-down
millisecond
:time="time"
format="HH:mm:ss:SS"
/>
<van-count-down millisecond :time="time" format="HH:mm:ss:SS" />
```
### Custom Style
+2 -9
View File
@@ -34,10 +34,7 @@ export default {
通过`format`属性设置倒计时文本的内容
```html
<van-count-down
:time="time"
format="DD 天 HH 时 mm 分 ss 秒"
/>
<van-count-down :time="time" format="DD 天 HH 时 mm 分 ss 秒" />
```
### 毫秒级渲染
@@ -45,11 +42,7 @@ export default {
倒计时默认每秒渲染一次,设置`millisecond`属性可以开启毫秒级渲染
```html
<van-count-down
millisecond
:time="time"
format="HH:mm:ss:SS"
/>
<van-count-down millisecond :time="time" format="HH:mm:ss:SS" />
```
### 自定义样式