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
@@ -163,10 +163,10 @@ export default {
### Slots
| Name | Description |
| ----- | -------------------------------------------- |
| index | Custom index |
| cover | Custom content that covers the image preview |
| Name | Description | SlotProps |
| --- | --- | --- |
| index | Custom index | { index: index of current image } |
| cover | Custom content that covers the image preview | - |
### onClose Parematers