Skip to content

Commit f9d8177

Browse files
committed
docs: update Router README
1 parent 7ddaf39 commit f9d8177

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/router/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838

3939
| 参数 | 说明 | 类型 | 默认值 |
4040
| -------- | ----------------------------------------- | ------- | ------ |
41-
| hidden | 控制路由是否显示在 sidebar | boolean | falase |
41+
| hidden | 控制路由是否显示在 sidebar | boolean | false |
4242
| redirect | 重定向地址, 访问这个路由时,自定进行重定向 | string | - |
43-
| name | 路由名称, 建议设置,且不能重名 | string | - |
43+
| name | 路由名称, 必须设置,且不能重名 | string | - |
4444
| meta | 路由元信息(路由附带扩展信息) | object | {} |
45-
45+
| alwaysShow | 强制菜单显示为Item而不是SubItem(配合 meta.hidden) | boolean | - |
4646

4747

4848
`{ Meta }` 路由元信息对象
@@ -52,6 +52,7 @@
5252
| title | 路由标题, 用于显示面包屑, 页面标题 *推荐设置 | string | - |
5353
| icon | 路由在 menu 上显示的图标 | string | - |
5454
| keepAlive | 缓存该路由 | boolean | false |
55+
| hidden | 配合`alwaysShow`使用,用于隐藏菜单时,提供递归到父菜单显示 选中菜单项_(可参考 个人页 配置方式)_ | boolean | false |
5556
| hiddenHeaderContent | *特殊 隐藏 [PageHeader](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/layout/PageHeader.vue#L14) 组件中的页面带的 面包屑和页面标题栏 | boolean | false |
5657
| permission | 与项目提供的权限拦截匹配的权限,如果不匹配,则会被禁止访问该路由页面 | array | [] |
5758

0 commit comments

Comments
 (0)