feat(ImagePreview): support local registration (#6031)

This commit is contained in:
neverland
2020-04-11 10:57:44 +08:00
committed by GitHub
parent baefc6b212
commit 456fc99017
7 changed files with 62 additions and 11 deletions
+8 -2
View File
@@ -41,7 +41,10 @@ After setting the `closeable` attribute, the close icon will be displayed in the
```js
ImagePreview({
images: ['https://img.yzcdn.cn/1.jpg', 'https://img.yzcdn.cn/2.jpg'],
images: [
'https://img.yzcdn.cn/vant/apple-1.jpg',
'https://img.yzcdn.cn/vant/apple-2.jpg',
],
closeable: true,
});
```
@@ -76,7 +79,10 @@ export default {
return {
show: false,
index: 0,
images: ['https://img.yzcdn.cn/1.jpg', 'https://img.yzcdn.cn/2.jpg'],
images: [
'https://img.yzcdn.cn/vant/apple-1.jpg',
'https://img.yzcdn.cn/vant/apple-2.jpg',
],
};
},