feat(Tabs): add resize method (#5071)

This commit is contained in:
neverland
2019-11-21 17:18:38 +08:00
committed by GitHub
parent 659eb3eefc
commit a1a93ba11b
5 changed files with 43 additions and 22 deletions
+2 -2
View File
@@ -156,12 +156,12 @@ export default {
### Swipe Methods
Use ref to get swipe instance and call instance methods
Use 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 |
| resize | Resize Swipe when container element resized | - | void |
### swipeTo Options
+1 -1
View File
@@ -162,7 +162,7 @@ export default {
### Swipe 方法
通过 ref 可以获取到 swipe 实例并调用实例方法
通过 ref 可以获取到 Swipe 实例并调用实例方法
| 方法名 | 说明 | 参数 | 返回值 |
|------|------|------|------|