mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
docs: type highlight (#4264)
This commit is contained in:
@@ -141,14 +141,14 @@ export default {
|
||||
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| v-model | Identifier of current tab | `string | number` | `0` | - |
|
||||
| fixed | Whether to fixed bottom | `boolean` | `true` | - |
|
||||
| border | Whether to show border | `boolean` | `true` | - |
|
||||
| z-index | Z-index | `number` | `1` | - |
|
||||
| active-color | Color of active tab item | `string` | `#1989fa` | - |
|
||||
| inactive-color | Color of inactive tab item | `string` | `#7d7e80` | - |
|
||||
| route | Whether to enable route mode | `boolean` | `false` | - |
|
||||
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation, to enable those features use `viewport-fit=cover` in the `viewport` meta tag | `boolean` | `false` | - |
|
||||
| v-model | Identifier of current tab | *string \| number* | `0` | - |
|
||||
| fixed | Whether to fixed bottom | *boolean* | `true` | - |
|
||||
| border | Whether to show border | *boolean* | `true` | - |
|
||||
| z-index | Z-index | *number* | `1` | - |
|
||||
| active-color | Color of active tab item | *string* | `#1989fa` | - |
|
||||
| inactive-color | Color of inactive tab item | *string* | `#7d7e80` | - |
|
||||
| route | Whether to enable route mode | *boolean* | `false` | - |
|
||||
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation, to enable those features use `viewport-fit=cover` in the `viewport` meta tag | *boolean* | `false` | - |
|
||||
|
||||
### Tabbar Events
|
||||
|
||||
@@ -160,13 +160,13 @@ export default {
|
||||
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| name | Identifier | `string | number` | Item index | - |
|
||||
| icon | Icon name | `string` | - | - |
|
||||
| dot | Whether to show red dot | `boolean` | - | - |
|
||||
| info | Info message | `string | number` | - | - |
|
||||
| url | Link | `string` | - | - |
|
||||
| to | Target route of the link, same as to of vue-router | `string | object` | - | - |
|
||||
| replace | If true, the navigation will not leave a history record | `boolean` | `false` | - |
|
||||
| name | Identifier | *string \| number* | Item index | - |
|
||||
| icon | Icon name | *string* | - | - |
|
||||
| dot | Whether to show red dot | *boolean* | - | - |
|
||||
| info | Info message | *string \| number* | - | - |
|
||||
| url | Link | *string* | - | - |
|
||||
| to | Target route of the link, same as to of vue-router | *string \| object* | - | - |
|
||||
| replace | If true, the navigation will not leave a history record | *boolean* | `false` | - |
|
||||
|
||||
### TabbarItem Slots
|
||||
|
||||
|
@@ -147,14 +147,14 @@ export default {
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| v-model | 当前选中标签的名称或索引值 | `string | number` | `0` | - |
|
||||
| fixed | 是否固定在底部 | `boolean` | `true` | - |
|
||||
| border | 是否显示外边框 | `boolean` | `true` | - |
|
||||
| z-index | 元素 z-index | `number` | `1` | - |
|
||||
| active-color | 选中标签的颜色 | `string` | `#1989fa` | - |
|
||||
| inactive-color | 未选中标签的颜色 | `string` | `#7d7e80` | - |
|
||||
| route | 是否开启路由模式 | `boolean` | `false` | - |
|
||||
| safe-area-inset-bottom | 是否开启 iPhone X 底部安全区适配,需要在 `viewport` meta 标签中设置 `viewport-fit=cover` | `boolean` | `false` | - |
|
||||
| v-model | 当前选中标签的名称或索引值 | *string \| number* | `0` | - |
|
||||
| fixed | 是否固定在底部 | *boolean* | `true` | - |
|
||||
| border | 是否显示外边框 | *boolean* | `true` | - |
|
||||
| z-index | 元素 z-index | *number* | `1` | - |
|
||||
| active-color | 选中标签的颜色 | *string* | `#1989fa` | - |
|
||||
| inactive-color | 未选中标签的颜色 | *string* | `#7d7e80` | - |
|
||||
| route | 是否开启路由模式 | *boolean* | `false` | - |
|
||||
| safe-area-inset-bottom | 是否开启 iPhone X 底部安全区适配,需要在 `viewport` meta 标签中设置 `viewport-fit=cover` | *boolean* | `false` | - |
|
||||
|
||||
### Tabbar Events
|
||||
|
||||
@@ -166,13 +166,13 @@ export default {
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| name | 标签名称,作为匹配的标识符 | `string | number` | 当前标签的索引值 | - |
|
||||
| icon | 图标名称或图片链接,可选值见 Icon 组件| `string` | - | - |
|
||||
| dot | 是否显示小红点 | `boolean` | - | - |
|
||||
| info | 图标右上角提示信息 | `string | number` | - | - |
|
||||
| url | 跳转链接 | `string` | - | - |
|
||||
| to | 路由跳转对象,同 vue-router 的 to 属性 | `string | object` | - | - |
|
||||
| replace | 跳转时是否替换当前页面历史 | `boolean` | `false` | - |
|
||||
| name | 标签名称,作为匹配的标识符 | *string \| number* | 当前标签的索引值 | - |
|
||||
| icon | 图标名称或图片链接,可选值见 Icon 组件| *string* | - | - |
|
||||
| dot | 是否显示小红点 | *boolean* | - | - |
|
||||
| info | 图标右上角提示信息 | *string \| number* | - | - |
|
||||
| url | 跳转链接 | *string* | - | - |
|
||||
| to | 路由跳转对象,同 vue-router 的 to 属性 | *string \| object* | - | - |
|
||||
| replace | 跳转时是否替换当前页面历史 | *boolean* | `false` | - |
|
||||
|
||||
### TabbarItem Slots
|
||||
|
||||
|
Reference in New Issue
Block a user