docs(ImagePreview): fix swipeTo method (#7595)

This commit is contained in:
neverland
2020-11-20 20:43:54 +08:00
committed by GitHub
parent a3b9e67d36
commit 5298e597a6
2 changed files with 15 additions and 1 deletions
+7
View File
@@ -159,6 +159,13 @@ export default {
| 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} |
### Methods
Use [ref](https://vuejs.org/v2/api/#ref) to get ImagePreview instance and call instance methods.
| Name | Description | Attribute | Return value |
| --- | --- | --- | --- |
| swipeTo `2.9.0` | Swipe to target index | index: target index, options: Options | - |
### Slots