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 {
...
@@ -111,7 +111,7 @@ class SettingDrawer extends PureComponent {
render
()
{
render
()
{
const
{
setting
}
=
this
.
props
;
const
{
setting
}
=
this
.
props
;
const
{
collapse
,
silder
Theme
,
primaryColor
,
layout
,
colorWeak
}
=
setting
;
const
{
collapse
,
nav
Theme
,
primaryColor
,
layout
,
colorWeak
}
=
setting
;
return
(
return
(
<
Drawer
<
Drawer
visible
=
{
collapse
}
visible
=
{
collapse
}
...
@@ -157,8 +157,8 @@ class SettingDrawer extends PureComponent {
...
@@ -157,8 +157,8 @@ class SettingDrawer extends PureComponent {
url
:
'
https://gw.alipayobjects.com/zos/rmsportal/jpRkZQMyYRryryPNtyIC.svg
'
,
url
:
'
https://gw.alipayobjects.com/zos/rmsportal/jpRkZQMyYRryryPNtyIC.svg
'
,
},
},
]}
]}
value
=
{
silder
Theme
}
value
=
{
nav
Theme
}
onChange
=
{
value
=>
this
.
changeSetting
(
'
silder
Theme
'
,
value
)}
onChange
=
{
value
=>
this
.
changeSetting
(
'
nav
Theme
'
,
value
)}
/
>
/
>
<
/Body
>
<
/Body
>
...
...
src/defaultSetting.js
View file @
07e3f632
module
.
exports
=
{
module
.
exports
=
{
collapse
:
false
,
collapse
:
false
,
silder
Theme
:
'
dark
'
,
nav
Theme
:
'
dark
'
,
primaryColor
:
'
#1890FF
'
,
primaryColor
:
'
#1890FF
'
,
layout
:
'
sidemenu
'
,
layout
:
'
sidemenu
'
,
grid
:
'
Fluid
'
,
grid
:
'
Fluid
'
,
...
...
src/layouts/BasicLayout.js
View file @
07e3f632
...
@@ -217,7 +217,7 @@ class BasicLayout extends React.PureComponent {
...
@@ -217,7 +217,7 @@ class BasicLayout extends React.PureComponent {
render
()
{
render
()
{
const
{
const
{
silder
Theme
,
nav
Theme
,
layout
:
PropsLayout
,
layout
:
PropsLayout
,
children
,
children
,
location
:
{
pathname
},
location
:
{
pathname
},
...
@@ -231,7 +231,7 @@ class BasicLayout extends React.PureComponent {
...
@@ -231,7 +231,7 @@ class BasicLayout extends React.PureComponent {
<
SiderMenu
<
SiderMenu
logo
=
{
logo
}
logo
=
{
logo
}
Authorized
=
{
Authorized
}
Authorized
=
{
Authorized
}
theme
=
{
silder
Theme
}
theme
=
{
nav
Theme
}
onCollapse
=
{
this
.
handleMenuCollapse
}
onCollapse
=
{
this
.
handleMenuCollapse
}
menuData
=
{
menuData
}
menuData
=
{
menuData
}
{...
this
.
props
}
{...
this
.
props
}
...
...
src/layouts/Header.js
View file @
07e3f632
...
@@ -106,7 +106,7 @@ class HeaderView extends PureComponent {
...
@@ -106,7 +106,7 @@ class HeaderView extends PureComponent {
render
()
{
render
()
{
const
{
isMobile
,
handleMenuCollapse
,
setting
}
=
this
.
props
;
const
{
isMobile
,
handleMenuCollapse
,
setting
}
=
this
.
props
;
const
{
silder
Theme
,
layout
,
fixedHeader
}
=
setting
;
const
{
nav
Theme
,
layout
,
fixedHeader
}
=
setting
;
const
{
visible
}
=
this
.
state
;
const
{
visible
}
=
this
.
state
;
const
isTop
=
layout
===
'
topmenu
'
;
const
isTop
=
layout
===
'
topmenu
'
;
const
HeaderDom
=
visible
?
(
const
HeaderDom
=
visible
?
(
...
@@ -116,7 +116,7 @@ class HeaderView extends PureComponent {
...
@@ -116,7 +116,7 @@ class HeaderView extends PureComponent {
>
>
{
isTop
&&
!
isMobile
?
(
{
isTop
&&
!
isMobile
?
(
<
TopNavHeader
<
TopNavHeader
theme
=
{
silder
Theme
}
theme
=
{
nav
Theme
}
mode
=
"
horizontal
"
mode
=
"
horizontal
"
Authorized
=
{
Authorized
}
Authorized
=
{
Authorized
}
onCollapse
=
{
handleMenuCollapse
}
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