docs: update numeric type
This commit is contained in:
+5
-5
@@ -193,13 +193,13 @@ In scrollspy mode, the list of content will be tiled
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| v-model | Index of active tab | *string \| number* | `0` |
|
||||
| v-model | Index of active tab | *number \| string* | `0` |
|
||||
| type | Can be set to `line` `card` | *string* | `line` |
|
||||
| color | Tab color | *string* | `#ee0a24` |
|
||||
| duration | Toggle tab's animation time | *number* | `0.3` | - |
|
||||
| background | Background color | *string* | `white` |
|
||||
| line-width | Width of tab line | *string \| number* | Width of active tab |
|
||||
| line-height | Height of tab line | *string \| number* | `3px` |
|
||||
| line-width | Width of tab line | *number \| string* | Width of active tab |
|
||||
| line-height | Height of tab line | *number \| string* | `3px` |
|
||||
| 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` |
|
||||
@@ -219,8 +219,8 @@ In scrollspy mode, the list of content will be tiled
|
||||
| title | Title | *string* | - |
|
||||
| disabled | Whether to disable tab | *boolean* | `false` |
|
||||
| dot `v2.3.0` | Whether to show red dot on the title | *boolean* | `false` |
|
||||
| info `v2.3.0` | Content of the badge on the title | *string \| number* | - |
|
||||
| name `v2.0.6` | Identifier | *string \| number* | Index of tab |
|
||||
| info `v2.3.0` | Content of the badge on the title | *number \| string* | - |
|
||||
| name `v2.0.6` | Identifier | *number \| string* | Index of tab |
|
||||
| url `v2.2.1` | Link | *string* | - |
|
||||
| to `v2.2.1` | Target route of the link, same as to of vue-router | *string \| object* | - |
|
||||
| replace `v2.2.1` | If true, the navigation will not leave a history record | *boolean* | `false` |
|
||||
|
||||
@@ -197,13 +197,13 @@ export default {
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|------|------|------|------|
|
||||
| v-model | 绑定当前选中标签的标识符 | *string \| number* | `0` |
|
||||
| v-model | 绑定当前选中标签的标识符 | *number \| string* | `0` |
|
||||
| type | 样式风格类型,可选值为`card` | *string* | `line` |
|
||||
| color | 标签主题色 | *string* | `#ee0a24` |
|
||||
| duration | 动画时间,单位秒 | *number* | `0.3` |
|
||||
| background | 标签栏背景色 | *string* | `white` |
|
||||
| line-width | 底部条宽度,默认单位 px | *string \| number* | `auto` |
|
||||
| line-height | 底部条高度,默认单位 px | *string \| number* | `3px` |
|
||||
| line-width | 底部条宽度,默认单位 px | *number \| string* | `auto` |
|
||||
| line-height | 底部条高度,默认单位 px | *number \| string* | `3px` |
|
||||
| animated | 是否开启切换标签内容时的转场动画 | *boolean* | `false` |
|
||||
| border | 是否显示标签栏外边框,仅在`type="line"`时有效 | *boolean* | `true` |
|
||||
| ellipsis | 是否省略过长的标题文字 | *boolean* | `true` |
|
||||
@@ -223,8 +223,8 @@ export default {
|
||||
| title | 标题 | *string* | - |
|
||||
| disabled | 是否禁用标签 | *boolean* | `false` |
|
||||
| dot `v2.3.0` | 是否在标题右上角显示小红点 | *boolean* | `false` |
|
||||
| info `v2.3.0` | 标题右上角徽标的内容 | *string \| number* | - |
|
||||
| name `v2.0.6` | 标签名称,作为匹配的标识符 | *string \| number* | 标签的索引值 |
|
||||
| info `v2.3.0` | 标题右上角徽标的内容 | *number \| string* | - |
|
||||
| name `v2.0.6` | 标签名称,作为匹配的标识符 | *number \| string* | 标签的索引值 |
|
||||
| url `v2.2.1` | 点击后跳转的链接地址 | *string* | - |
|
||||
| to `v2.2.1` | 点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to) | *string \| object* | - |
|
||||
| replace `v2.2.1` | 是否在跳转时替换当前页面历史 | *boolean* | `false` |
|
||||
|
||||
Reference in New Issue
Block a user