docs: fix grammar errors (#7594)
This commit is contained in:
@@ -118,9 +118,9 @@ export default {
|
||||
| showIndicators | Whether to show indicators | _boolean_ | `false` |
|
||||
| loop | Whether to enable loop | _boolean_ | `true` |
|
||||
| swipeDuration | Animation duration (ms) | _number \| string_ | `500` |
|
||||
| onClose | Triggered when close | _Function_ | - |
|
||||
| onChange | Triggered when current image change | _Function_ | - |
|
||||
| onScale | Triggered when current image scale | _Function_ | - |
|
||||
| onClose | Emitted when ImagePreview is closed | _Function_ | - |
|
||||
| onChange | Emitted when current image changed | _Function_ | - |
|
||||
| onScale | Emitted when scaling current image | _Function_ | - |
|
||||
| closeOnPopstate | Whether to close when popstate | _boolean_ | `true` |
|
||||
| asyncClose | Whether to enable async close | _boolean_ | `false` |
|
||||
| className | Custom className | _any_ | - |
|
||||
@@ -155,10 +155,10 @@ export default {
|
||||
|
||||
| Event | Description | Parameters |
|
||||
| --- | --- | --- |
|
||||
| close | Triggered when close | { index, url } |
|
||||
| closed `v2.5.6` | Triggered after closed | - |
|
||||
| change | Triggered when current image change | index: index of current image |
|
||||
| scale `v2.5.0` | Triggered when current image scale | { index: index of current image, scale: scale of current image} |
|
||||
| close | Emitted when closing ImagePreview | { index, url } |
|
||||
| closed `v2.5.6` | Emitted when ImagePreview is closed | - |
|
||||
| change | Emitted when current image changed | index: index of current image |
|
||||
| scale `v2.5.0` | Emitted when scaling current image | { index: index of current image, scale: scale of current image} |
|
||||
| swipeTo `2.9.0` | Swipe to target index | index: target index, options: Options | - |
|
||||
|
||||
### Slots
|
||||
|
||||
Reference in New Issue
Block a user