From c7031fb291c9a05400255d155e9c6a706a455e30 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 10 Nov 2017 09:56:46 -0600 Subject: [PATCH] [new feature] Tab support vue-router (#305) * fix: Tabbar icon line-height * [new feature] progress add showPivot prop * [new feature] TabItem support vue-router --- docs/examples-docs/en-US/tabbar.md | 3 +++ docs/examples-docs/zh-CN/tabbar.md | 3 +++ packages/cell/index.vue | 14 ++++---------- packages/mixins/router-link.js | 22 ++++++++++++++++++++++ packages/tabbar-item/index.vue | 4 ++++ 5 files changed, 36 insertions(+), 10 deletions(-) create mode 100644 packages/mixins/router-link.js diff --git a/docs/examples-docs/en-US/tabbar.md b/docs/examples-docs/en-US/tabbar.md index f0f4f6f01..4894d7270 100644 --- a/docs/examples-docs/en-US/tabbar.md +++ b/docs/examples-docs/en-US/tabbar.md @@ -97,3 +97,6 @@ export default { | icon | Icon name | `String` | - | Names from Icon Component | | dot | Whether to show red dot | `Boolean` | - | - | | info | Info message | `String` | - | - | +| 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` | - | diff --git a/docs/examples-docs/zh-CN/tabbar.md b/docs/examples-docs/zh-CN/tabbar.md index 355afc6ab..0a680de40 100644 --- a/docs/examples-docs/zh-CN/tabbar.md +++ b/docs/examples-docs/zh-CN/tabbar.md @@ -109,3 +109,6 @@ export default { | icon | 图标名称 | `String` | - | Icon 组件中可用的类型 | | dot | 是否显示小红点 | `Boolean` | - | - | | info | 图标右上角提示信息 | `String` | - | - | +| url | 跳转链接 | `String` | - | - | +| to | 路由跳转对象,同 `vue-router` 的 to | `String | Object` | - | - | +| replace | 跳转时是否替换当前 history | `String` | `false` | - | diff --git a/packages/cell/index.vue b/packages/cell/index.vue index 980387969..a3418d893 100644 --- a/packages/cell/index.vue +++ b/packages/cell/index.vue @@ -30,36 +30,30 @@