Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
07e3f632
Commit
07e3f632
authored
Sep 01, 2018
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo, silderTheme => navTheme
parent
1f63d13d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
src/components/SettingDrawer/index.js
src/components/SettingDrawer/index.js
+3
-3
src/defaultSetting.js
src/defaultSetting.js
+1
-1
src/layouts/BasicLayout.js
src/layouts/BasicLayout.js
+2
-2
src/layouts/Header.js
src/layouts/Header.js
+2
-2
No files found.
src/components/SettingDrawer/index.js
View file @
07e3f632
...
...
@@ -111,7 +111,7 @@ class SettingDrawer extends PureComponent {
render
()
{
const
{
setting
}
=
this
.
props
;
const
{
collapse
,
silder
Theme
,
primaryColor
,
layout
,
colorWeak
}
=
setting
;
const
{
collapse
,
nav
Theme
,
primaryColor
,
layout
,
colorWeak
}
=
setting
;
return
(
<
Drawer
visible
=
{
collapse
}
...
...
@@ -157,8 +157,8 @@ class SettingDrawer extends PureComponent {
url
:
'
https://gw.alipayobjects.com/zos/rmsportal/jpRkZQMyYRryryPNtyIC.svg
'
,
},
]}
value
=
{
silder
Theme
}
onChange
=
{
value
=>
this
.
changeSetting
(
'
silder
Theme
'
,
value
)}
value
=
{
nav
Theme
}
onChange
=
{
value
=>
this
.
changeSetting
(
'
nav
Theme
'
,
value
)}
/
>
<
/Body
>
...
...
src/defaultSetting.js
View file @
07e3f632
module
.
exports
=
{
collapse
:
false
,
silder
Theme
:
'
dark
'
,
nav
Theme
:
'
dark
'
,
primaryColor
:
'
#1890FF
'
,
layout
:
'
sidemenu
'
,
grid
:
'
Fluid
'
,
...
...
src/layouts/BasicLayout.js
View file @
07e3f632
...
...
@@ -217,7 +217,7 @@ class BasicLayout extends React.PureComponent {
render
()
{
const
{
silder
Theme
,
nav
Theme
,
layout
:
PropsLayout
,
children
,
location
:
{
pathname
},
...
...
@@ -231,7 +231,7 @@ class BasicLayout extends React.PureComponent {
<
SiderMenu
logo
=
{
logo
}
Authorized
=
{
Authorized
}
theme
=
{
silder
Theme
}
theme
=
{
nav
Theme
}
onCollapse
=
{
this
.
handleMenuCollapse
}
menuData
=
{
menuData
}
{...
this
.
props
}
...
...
src/layouts/Header.js
View file @
07e3f632
...
...
@@ -106,7 +106,7 @@ class HeaderView extends PureComponent {
render
()
{
const
{
isMobile
,
handleMenuCollapse
,
setting
}
=
this
.
props
;
const
{
silder
Theme
,
layout
,
fixedHeader
}
=
setting
;
const
{
nav
Theme
,
layout
,
fixedHeader
}
=
setting
;
const
{
visible
}
=
this
.
state
;
const
isTop
=
layout
===
'
topmenu
'
;
const
HeaderDom
=
visible
?
(
...
...
@@ -116,7 +116,7 @@ class HeaderView extends PureComponent {
>
{
isTop
&&
!
isMobile
?
(
<
TopNavHeader
theme
=
{
silder
Theme
}
theme
=
{
nav
Theme
}
mode
=
"
horizontal
"
Authorized
=
{
Authorized
}
onCollapse
=
{
handleMenuCollapse
}
...
...
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