docs: add version tip in en docs (#4262)

This commit is contained in:
neverland
2019-08-27 19:56:30 +08:00
committed by GitHub
parent 8ee0bef715
commit 959efb0ce6
88 changed files with 865 additions and 864 deletions
+24 -24
View File
@@ -174,33 +174,33 @@ In swipeable mode, you can switch tabs with swipe gestrue in the content
### Tabs Props
| 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` |
| Attribute | Description | Type | Default | Version |
|------|------|------|------|------|
| 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` |
| Attribute | Description | Type | Default | Version |
|------|------|------|------|------|
| name | Identifier | `string | number` | Index of tab | - |
| title | Title | `string` | - | - |
| disabled | Whether to disable tab | `boolean` | `false` | - |
### Tabs Slots
+1 -1
View File
@@ -192,7 +192,7 @@ export default {
| swipe-threshold | 滚动阈值,标签数量超过多少个可滚动 | `number` | `4` | - |
| offset-top | 粘性定位布局下与顶部的最小距离,单位 px | `number` | `0` | - |
| animated | 是否开启切换标签内容时的转场动画 | `boolean` | `false` | - |
| border | 是否显示标签栏外边框,仅在`type="line"`时有效 | `boolean` | `true` | 2.0.0 |
| border | 是否显示标签栏外边框,仅在`type="line"`时有效 | `boolean` | `true` | - |
| ellipsis | 是否省略过长的标题文字 | `boolean` | `true` | - |
| sticky | 是否使用粘性定位布局 | `boolean` | `false` | - |
| swipeable | 是否开启手势滑动切换 | `boolean` | `false` | - |