[new feature] ImagePreview: add onChange option (#3630)

This commit is contained in:
neverland
2019-06-25 15:49:17 +08:00
committed by GitHub
parent 045c75669b
commit fbd751a641
7 changed files with 64 additions and 13 deletions
+2 -1
View File
@@ -94,7 +94,8 @@ export default {
| showIndex | Whether to show index | `Boolean` | `true` |
| showIndicators | Whether to show indicators | `Boolean` | `false` |
| loop | Whether to enable loop | `Boolean` | `true` |
| onClose | Close callback | `Function` | - |
| onClose | Triggered when close | `Function` | - |
| onChange | Triggered when current image change | `Function` | - |
| closeOnPopstate | Whether to close when popstate | `Boolean` | `false` |
| asyncClose | Whether to enable async close | `Boolean` | `false` |
| className | Custom className | `String | Array | Object` | - |