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
+1 -5
View File
@@ -54,11 +54,7 @@ setTimeout(() => {
### Component Call
```html
<van-image-preview
v-model="show"
:images="images"
@change="onChange"
>
<van-image-preview v-model="show" :images="images" @change="onChange">
<template v-slot:index>Page: {{ index }}</template>
</van-image-preview>
```
+1 -5
View File
@@ -64,11 +64,7 @@ setTimeout(() => {
如果需要在图片预览内嵌入组件或其他自定义内容,可以使用组件调用的方式,调用前需要通过 `Vue.use` 注册组件
```html
<van-image-preview
v-model="show"
:images="images"
@change="onChange"
>
<van-image-preview v-model="show" :images="images" @change="onChange">
<template v-slot:index>第{{ index }}页</template>
</van-image-preview>
```