[Doc] use ts-style type

This commit is contained in:
陈嘉涵
2019-07-11 20:35:41 +08:00
parent 32f19c5561
commit 019c75506a
120 changed files with 1288 additions and 1288 deletions
+21 -21
View File
@@ -175,31 +175,31 @@ In swipeable mode, you can switch tabs with swipe gestrue in the content
| Attribute | Description | Type | Default |
|------|------|------|------|
| v-model | Index of active tab | `String | Number` | `0` |
| type | Can be set to `line` `card` | `String` | `line` |
| duration | Toggle tab's animation time | `Number` | `0.3` | - |
| background | Background color | `String` | `white` |
| line-width | Width of tab line | `Number | String` | Width of active tab |
| line-height | Height of tab line | `Number | String` | `3px` |
| color | Tab color | `String` | `#f44` |
| title-active-color | Title active color | `String` | - |
| title-inactive-color | Title inactive color | `String` | - |
| swipe-threshold | Set swipe tabs threshold | `Number` | `4` | - |
| offset-top | Offset top when use sticky mode | `Number` | `0` |
| animated | Whether to change tabs with animation | `Boolean` | `false` |
| border | Whether to show border when `type="line"` | `Boolean` | `true` |
| ellipsis | Whether to ellipsis too long title | `Boolean` | `true` |
| sticky | Whether to use sticky mode | `Boolean` | `false` |
| swipeable | Whether to switch tabs with swipe gestrue in the content | `Boolean` | `false` |
| lazy-render | Whether to enable tab content lazy render | `Boolean` | `true` |
| v-model | Index of active tab | `string | number` | `0` |
| type | Can be set to `line` `card` | `string` | `line` |
| duration | Toggle tab's animation time | `number` | `0.3` | - |
| background | Background color | `string` | `white` |
| line-width | Width of tab line | `number | string` | Width of active tab |
| line-height | Height of tab line | `number | string` | `3px` |
| color | Tab color | `string` | `#f44` |
| title-active-color | Title active color | `string` | - |
| title-inactive-color | Title inactive color | `string` | - |
| swipe-threshold | Set swipe tabs threshold | `number` | `4` | - |
| offset-top | Offset top when use sticky mode | `number` | `0` |
| animated | Whether to change tabs with animation | `boolean` | `false` |
| border | Whether to show border when `type="line"` | `boolean` | `true` |
| ellipsis | Whether to ellipsis too long title | `boolean` | `true` |
| sticky | Whether to use sticky mode | `boolean` | `false` |
| swipeable | Whether to switch tabs with swipe gestrue in the content | `boolean` | `false` |
| lazy-render | Whether to enable tab content lazy render | `boolean` | `true` |
### Tab Props
| Attribute | Description | Type | Default |
|------|------|------|------|
| name | Identifier | `String | Number` | Index of tab |
| title | Title | `String` | - |
| disabled | Whether to disable tab | `Boolean` | `false` |
| name | Identifier | `string | number` | Index of tab |
| title | Title | `string` | - |
| disabled | Whether to disable tab | `boolean` | `false` |
### Tabs Slots
@@ -222,4 +222,4 @@ In swipeable mode, you can switch tabs with swipe gestrue in the content
| 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 } |
| scroll | Triggered when tab scroll in sticky mode | object: { scrollTop, isFixed } |