[improvement] ImagePreview: add onClose params (#2197)

This commit is contained in:
neverland
2018-12-01 09:03:35 +08:00
committed by GitHub
parent d14f9cb5dc
commit 1b1e5caa19
7 changed files with 41 additions and 11 deletions
+7
View File
@@ -55,3 +55,10 @@ setTimeout(() => {
| showIndicators | Whether to show indicators | `Boolean` | `false` |
| loop | Whether to enable loop | `Boolean` | `true` |
| onClose | Close callback | `Function` | - |
### onClose Parematers
| Attribute | Description | Type |
|------|------|------|
| url | Url of current image | `Number` |
| index | Index of current image | `String` |