diff --git a/docs/demos/views/tabbar.vue b/docs/demos/views/tabbar.vue index 33b55c3b7..353ac6a45 100644 --- a/docs/demos/views/tabbar.vue +++ b/docs/demos/views/tabbar.vue @@ -13,7 +13,9 @@ {{ $t('custom') }} - + {{ $t('tab') }} {{ $t('tab') }} diff --git a/docs/markdown/en-US/tabbar.md b/docs/markdown/en-US/tabbar.md index 16cea6418..5b2df10dc 100644 --- a/docs/markdown/en-US/tabbar.md +++ b/docs/markdown/en-US/tabbar.md @@ -38,7 +38,9 @@ Use `icon` slot to custom icon Custom - + Tab Tab @@ -81,3 +83,9 @@ export default { | 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 | `String` | `false` | - | + +### TabbarItem Slot + +| Name | Description | Scope | +|-----------|-----------|-----------| +| icon | Custom icon | active | diff --git a/docs/markdown/zh-CN/tabbar.md b/docs/markdown/zh-CN/tabbar.md index e32c9779e..8ad226703 100644 --- a/docs/markdown/zh-CN/tabbar.md +++ b/docs/markdown/zh-CN/tabbar.md @@ -41,7 +41,9 @@ export default { 自定义 - + 标签 标签 @@ -85,3 +87,9 @@ export default { | url | 跳转链接 | `String` | - | - | | to | 路由跳转对象,同 `vue-router` 的 to | `String | Object` | - | - | | replace | 跳转时是否替换当前 history | `String` | `false` | - | + +### TabbarItem Slot + +| Name | 描述 | Scope | +|-----------|-----------|-----------| +| icon | 自定义icon | active | diff --git a/packages/tabbar-item/index.vue b/packages/tabbar-item/index.vue index d6f968c62..3fa5bd510 100644 --- a/packages/tabbar-item/index.vue +++ b/packages/tabbar-item/index.vue @@ -1,13 +1,13 @@