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
-4
View File
@@ -21,7 +21,6 @@ The `confirm` event will be triggered after the date selection is completed
```html
<van-cell title="Select Single Date" :value="date" @click="show = true" />
<van-calendar v-model="show" @confirm="onConfirm" />
```
@@ -33,7 +32,6 @@ export default {
show: false
};
},
methods: {
formatDate(date) {
return `${date.getMonth() + 1}/${date.getDate()}`;
@@ -52,7 +50,6 @@ You can select a date range after setting `type` to` range`. In range mode, the
```html
<van-cell title="Select Date Range" :value="date" @click="show = true" />
<van-calendar v-model="show" type="range" @confirm="onConfirm" />
```
@@ -64,7 +61,6 @@ export default {
show: false
};
},
methods: {
formatDate(date) {
return `${date.getMonth() + 1}/${date.getDate()}`;
-4
View File
@@ -21,7 +21,6 @@ Vue.use(Calendar);
```html
<van-cell title="选择单个日期" :value="date" @click="show = true" />
<van-calendar v-model="show" @confirm="onConfirm" />
```
@@ -33,7 +32,6 @@ export default {
show: false
};
},
methods: {
formatDate(date) {
return `${date.getMonth() + 1}/${date.getDate()}`;
@@ -52,7 +50,6 @@ export default {
```html
<van-cell title="选择日期区间" :value="date" @click="show = true" />
<van-calendar v-model="show" type="range" @confirm="onConfirm" />
```
@@ -64,7 +61,6 @@ export default {
show: false
};
},
methods: {
formatDate(date) {
return `${date.getMonth() + 1}/${date.getDate()}`;