Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ant-design-pro
Project
Project
Details
Activity
Releases
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thiago Borges
ant-design-pro
Commits
9a3d41cc
Commit
9a3d41cc
authored
Sep 05, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change menu icons
parent
6efdab5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
28 deletions
+7
-28
nav.js
src/common/nav.js
+7
-28
No files found.
src/common/nav.js
View file @
9a3d41cc
...
@@ -44,60 +44,52 @@ function userAdapter(userData) {
...
@@ -44,60 +44,52 @@ function userAdapter(userData) {
export
const
user
=
[{
export
const
user
=
[{
name
:
'帐户'
,
name
:
'帐户'
,
icon
:
'
setting
'
,
icon
:
'
user
'
,
path
:
'user'
,
path
:
'user'
,
children
:
[{
children
:
[{
name
:
'登录'
,
name
:
'登录'
,
path
:
'login'
,
path
:
'login'
,
component
:
Login
,
component
:
Login
,
icon
:
'setting'
,
},
{
},
{
name
:
'注册'
,
name
:
'注册'
,
path
:
'register'
,
path
:
'register'
,
component
:
Register
,
component
:
Register
,
icon
:
'setting'
,
},
{
},
{
name
:
'注册结果'
,
name
:
'注册结果'
,
path
:
'register-result'
,
path
:
'register-result'
,
component
:
RegisterResult
,
component
:
RegisterResult
,
icon
:
'setting'
,
}],
}],
}];
}];
export
const
menus
=
[{
export
const
menus
=
[{
name
:
'Dashboard'
,
name
:
'Dashboard'
,
icon
:
'
setting
'
,
icon
:
'
dashboard
'
,
path
:
'dashboard'
,
path
:
'dashboard'
,
children
:
[{
children
:
[{
name
:
'分析页'
,
name
:
'分析页'
,
path
:
'analysis'
,
path
:
'analysis'
,
component
:
Analysis
,
component
:
Analysis
,
icon
:
'setting'
,
},
{
},
{
name
:
'监控页'
,
name
:
'监控页'
,
path
:
'monitor'
,
path
:
'monitor'
,
component
:
Monitor
,
component
:
Monitor
,
icon
:
'setting'
,
},
{
},
{
name
:
'工作台'
,
name
:
'工作台'
,
path
:
'workplace'
,
path
:
'workplace'
,
component
:
Workplace
,
component
:
Workplace
,
icon
:
'setting'
,
}],
}],
},
{
},
{
name
:
'表单页'
,
name
:
'表单页'
,
path
:
'form'
,
path
:
'form'
,
icon
:
'
setting
'
,
icon
:
'
form
'
,
children
:
[{
children
:
[{
name
:
'基础表单'
,
name
:
'基础表单'
,
path
:
'basic-form'
,
path
:
'basic-form'
,
component
:
BasicForm
,
component
:
BasicForm
,
icon
:
'setting'
,
},
{
},
{
name
:
'分步表单'
,
name
:
'分步表单'
,
path
:
'step-form'
,
path
:
'step-form'
,
component
:
StepForm
,
component
:
StepForm
,
icon
:
'setting'
,
children
:
[{
children
:
[{
path
:
'confirm'
,
path
:
'confirm'
,
component
:
Step2
,
component
:
Step2
,
...
@@ -109,86 +101,73 @@ export const menus = [{
...
@@ -109,86 +101,73 @@ export const menus = [{
name
:
'高级表单'
,
name
:
'高级表单'
,
path
:
'advanced-form'
,
path
:
'advanced-form'
,
component
:
AdvancedForm
,
component
:
AdvancedForm
,
icon
:
'setting'
,
}],
}],
},
{
},
{
name
:
'列表页'
,
name
:
'列表页'
,
path
:
'list'
,
path
:
'list'
,
icon
:
'
setting
'
,
icon
:
'
table
'
,
children
:
[{
children
:
[{
name
:
'标准表格(表格查询)'
,
name
:
'标准表格(表格查询)'
,
path
:
'table-list'
,
path
:
'table-list'
,
component
:
TableList
,
component
:
TableList
,
icon
:
'setting'
,
},
{
},
{
name
:
'标准列表'
,
name
:
'标准列表'
,
path
:
'basic-list'
,
path
:
'basic-list'
,
component
:
BasicList
,
component
:
BasicList
,
icon
:
'setting'
,
},
{
},
{
name
:
'卡片列表'
,
name
:
'卡片列表'
,
path
:
'card-list'
,
path
:
'card-list'
,
component
:
CardList
,
component
:
CardList
,
icon
:
'setting'
,
},
{
},
{
name
:
'卡片列表(封面)'
,
name
:
'卡片列表(封面)'
,
path
:
'cover-card-list'
,
path
:
'cover-card-list'
,
component
:
CoverCardList
,
component
:
CoverCardList
,
icon
:
'setting'
,
},
{
},
{
name
:
'带筛选卡片列表'
,
name
:
'带筛选卡片列表'
,
path
:
'filter-card-list'
,
path
:
'filter-card-list'
,
component
:
FilterCardList
,
component
:
FilterCardList
,
icon
:
'setting'
,
},
{
},
{
name
:
'搜索列表'
,
name
:
'搜索列表'
,
path
:
'search'
,
path
:
'search'
,
component
:
SearchList
,
component
:
SearchList
,
icon
:
'setting'
,
}],
}],
},
{
},
{
name
:
'详情页'
,
name
:
'详情页'
,
path
:
'profile'
,
path
:
'profile'
,
component
:
Profile
,
component
:
Profile
,
icon
:
'
setting
'
,
icon
:
'
profile
'
,
},
{
},
{
name
:
'结果'
,
name
:
'结果'
,
path
:
'result'
,
path
:
'result'
,
icon
:
'
setting
'
,
icon
:
'
check-circle-o
'
,
children
:
[{
children
:
[{
name
:
'成功'
,
name
:
'成功'
,
path
:
'success'
,
path
:
'success'
,
component
:
Success
,
component
:
Success
,
icon
:
'setting'
,
},
{
},
{
name
:
'失败'
,
name
:
'失败'
,
path
:
'fail'
,
path
:
'fail'
,
component
:
Error
,
component
:
Error
,
icon
:
'setting'
,
}],
}],
},
{
},
{
name
:
'错误'
,
name
:
'错误'
,
path
:
'error'
,
path
:
'error'
,
icon
:
'
sett
ing'
,
icon
:
'
warn
ing'
,
children
:
[{
children
:
[{
name
:
'403'
,
name
:
'403'
,
path
:
'403'
,
path
:
'403'
,
component
:
Exception403
,
component
:
Exception403
,
icon
:
'setting'
,
},
{
},
{
name
:
'404'
,
name
:
'404'
,
path
:
'404'
,
path
:
'404'
,
component
:
Exception404
,
component
:
Exception404
,
icon
:
'setting'
,
},
{
},
{
name
:
'500'
,
name
:
'500'
,
path
:
'500'
,
path
:
'500'
,
component
:
Exception500
,
component
:
Exception500
,
icon
:
'setting'
,
}],
}],
},
userAdapter
(
JSON
.
parse
(
JSON
.
stringify
(
user
[
0
])))];
},
userAdapter
(
JSON
.
parse
(
JSON
.
stringify
(
user
[
0
])))];
export
default
[{
export
default
[{
component
:
BasicLayout
,
component
:
BasicLayout
,
name
:
'首页'
,
name
:
'首页'
,
...
...
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