[new feature] Swipe: add immediate option of swipeTo method (#3821)

This commit is contained in:
neverland
2019-07-11 16:09:20 +08:00
committed by GitHub
parent 734c3259d8
commit 3c9dc4edfe
6 changed files with 52 additions and 14 deletions
+7 -1
View File
@@ -156,7 +156,13 @@ Use ref to get swipe instance and call instance methods
| Name | Attribute | Return value | Description |
|------|------|------|------|
| swipeTo | index: target index | void | Swipe to target index |
| swipeTo | index: target index, options: Options | void | Swipe to target index |
### swipeTo Options
| Name | Description | Type |
|------|------|------|
| immediate | Whether to skip animation | `boolean` |
### Swipe Slots