docs(Swipe): add api version tip (#5091)

This commit is contained in:
neverland
2019-11-25 08:27:40 +08:00
committed by GitHub
parent 4c1e77cc37
commit 9b01cac23f
2 changed files with 29 additions and 29 deletions
+15 -15
View File
@@ -144,34 +144,34 @@ export default {
### Swipe Events
| Event | Description | Arguments |
|------|------|------|
| change | Triggered when current swipe change | index: index of current swipe |
| Event | Description | Arguments | Version |
|------|------|------|------|
| change | Triggered when current swipe change | index: index of current swipe | - |
### SwipeItem Events
| Event | Description | Arguments |
|------|------|------|
| click | Triggered when clicked | event: Event |
| Event | Description | Arguments | Version |
|------|------|------|------|
| click | Triggered when clicked | event: Event | - |
### Swipe Methods
Use [ref](https://vuejs.org/v2/api/#ref) to get Swipe instance and call instance methods
| Name | Description | Attribute | Return value |
|------|------|------|------|
| swipeTo | Swipe to target index | index: target index, options: Options | void |
| resize | Resize Swipe when container element resized | - | void |
| Name | Description | Attribute | Return value | Version |
|------|------|------|------|------|
| swipeTo | Swipe to target index | index: target index, options: Options | void | - |
| resize | Resize Swipe when container element resized | - | void | 2.2.14 |
### swipeTo Options
| Name | Description | Type |
|------|------|------|
|------|------|------|------|
| immediate | Whether to skip animation | *boolean* |
### Swipe Slots
| Name | Description |
|------|------|
| default | Content |
| indicator | Custom indicator |
| Name | Description | Version |
|------|------|------|
| default | Content | - |
| indicator | Custom indicator | - |