Skip to content

Commit 92d395b

Browse files
committed
update readme
1 parent 12f52d7 commit 92d395b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ export default {
2727
## API
2828
Attribute | Description | Type | example
2929
----|---|---|---
30-
comp(required)|A array contains all router components|Array|[{name: 'comp1', component: foo, label: tabName}, {name: 'comp2', component: bar, label: tabName1}]
30+
comp(required)|A array contains all router components|Array|[{name: 'comp1', component: foo}, {name: 'comp2', component: bar}]
3131
defalut-index(optional)|index of default component to dispaly, default to 0|Number| 1
32-
> note the `name` attribute in comp must same as the name in route,that is,you must identify a route with a name,see [Named Routes](https://router.vuejs.org/en/essentials/named-routes.html#) or you can pass the `path` attribute to it.`label` is the text in tab
32+
> note the `name` attribute in comp must same as the name in route,that is,you must identify a route with a name,see [Named Routes](https://router.vuejs.org/en/essentials/named-routes.html#) or you can pass the `path` attribute to it.
3333
---
3434
中文版本:
3535

3636
属性 | 描述 | 类型 | 例子
3737
----|---|---|---
38-
comp(必需)|包含所有路由组件的数组|Array|[{name: 'comp1', component: foo, label: tabName}, {name: 'comp2', component: bar, label: tabName1}]
38+
comp(必需)|包含所有路由组件的数组|Array|[{name: 'comp1', component: foo}, {name: 'comp2', component: bar}]
3939
defalut-index(可选)|默认要跳转的路由索引,从0开始|Number| 1
40-
> comp属性中的name属性的值必须和路由name属性的值相同,也就是说,你必须给你的路由组件命名。相关信息[命名路由](https://router.vuejs.org/zh-cn/essentials/named-routes.html#),或者你也可以传`path`参数进去。`label`属性则为tab显示的文本。
40+
> comp属性中的name属性的值必须和路由name属性的值相同,也就是说,你必须给你的路由组件命名。相关信息[命名路由](https://router.vuejs.org/zh-cn/essentials/named-routes.html#),或者你也可以传`path`参数进去。
41+
##

0 commit comments

Comments
 (0)