Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianzhuanghu
ant-design-pro-vue
Commits
79972472
Unverified
Commit
79972472
authored
Feb 25, 2019
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: router coustom Icon
parent
4e198ac1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
README.md
src/router/README.md
+2
-2
No files found.
src/router/README.md
View file @
79972472
...
...
@@ -50,13 +50,13 @@
| 参数 | 说明 | 类型 | 默认值 |
| ------------------- | ------------------------------------------------------------ | ------- | ------ |
| title | 路由标题, 用于显示面包屑, 页面标题
*
推荐设置 | string | - |
| icon | 路由在 menu 上显示的图标 |
string
| - |
| icon | 路由在 menu 上显示的图标 |
[
string,svg
]
| - |
| keepAlive | 缓存该路由 | boolean | false |
| hidden | 配合
`alwaysShow`
使用,用于隐藏菜单时,提供递归到父菜单显示 选中菜单项_(可参考 个人页 配置方式)_ | boolean | false |
| hiddenHeaderContent |
*
特殊 隐藏
[
PageHeader
](
https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/layout/PageHeader.vue#L14
)
组件中的页面带的 面包屑和页面标题栏 | boolean | false |
| permission | 与项目提供的权限拦截匹配的权限,如果不匹配,则会被禁止访问该路由页面 | array |
[
] |
> 路由自定义 `Icon` 请引入自定义 `svg` Icon 文件,然后传递给路由的 `meta.icon` 参数即可
路由例子
----
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment