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
+17 -9
View File
@@ -206,6 +206,23 @@ In swipeable mode, you can switch tabs with swipe gestrue in the content
| to | Target route of the link, same as to of vue-router | *string \| object* | - | 2.2.1 |
| replace | If true, the navigation will not leave a history record | *boolean* | `false` | 2.2.1 |
### Tabs Events
| Event | Description | Arguments |
|------|------|------|
| click | Triggered when click tab | namename of current tabtitle: tab title |
| change | Triggered when active tab changed | namename of current tabtitle: tab title |
| disabled | Triggered when click disabled tab | namename of current tab, title: tab title |
| scroll | Triggered when tab scroll in sticky mode | object: { scrollTop, isFixed } |
### Tabs Methods
Use ref to get Tabs instance and call instance methods
| Name | Description | Attribute | Return value |
|------|------|------|------|
| resize | Resize Tabs when container element resized | - | void |
### Tabs Slots
| Name | Description |
@@ -219,12 +236,3 @@ In swipeable mode, you can switch tabs with swipe gestrue in the content
|------|------|
| default | Content of tab |
| title | Custom tab title |
### Tabs Events
| Event | Description | Arguments |
|------|------|------|
| click | Triggered when click tab | namename of current tabtitle: tab title |
| change | Triggered when active tab changed | namename of current tabtitle: tab title |
| disabled | Triggered when click disabled tab | namename of current tab, title: tab title |
| scroll | Triggered when tab scroll in sticky mode | object: { scrollTop, isFixed } |