feat(ImagePreview): passing current index to index slot (#7552)

This commit is contained in:
neverland
2020-11-14 08:56:46 +08:00
committed by GitHub
parent 24e8e82f34
commit 29dbd66c80
3 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -205,10 +205,10 @@ export default {
通过组件调用 `ImagePreview` 时,支持以下插槽:
| 名称 | 说明 |
| ----- | ------------------------------ |
| index | 自定义页码内容 |
| cover | 自定义覆盖在图片预览上方的内容 |
| 名称 | 说明 | 参数 |
| ----- | ------------------------------ | ------------------------- |
| index | 自定义页码内容 | { index: 当前图片的索引 } |
| cover | 自定义覆盖在图片预览上方的内容 | - |
### onClose 回调参数