feat(ImagePreview): some props can be string

This commit is contained in:
陈嘉涵
2020-02-01 09:43:59 +08:00
parent e81a90fe35
commit 43e9df1550
4 changed files with 24 additions and 29 deletions
+1 -6
View File
@@ -22,12 +22,7 @@
<van-button type="primary" @click="componentCall">
{{ $t('componentCall') }}
</van-button>
<van-image-preview
v-model="show"
:images="images"
:swipe-duration="300"
@change="onChange"
>
<van-image-preview v-model="show" :images="images" @change="onChange">
<template #index>{{ $t('index', index) }}</template>
</van-image-preview>
</demo-block>