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
d61aaf8f
Commit
d61aaf8f
authored
Sep 01, 2018
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove collapse from defaultSettings
parent
d1308e4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
src/components/SettingDrawer/index.js
src/components/SettingDrawer/index.js
+8
-3
src/defaultSettings.js
src/defaultSettings.js
+0
-1
No files found.
src/components/SettingDrawer/index.js
View file @
d61aaf8f
...
...
@@ -21,6 +21,10 @@ const Body = ({ children, title, style }) => (
@
connect
(({
setting
})
=>
({
setting
}))
class
SettingDrawer
extends
PureComponent
{
state
=
{
collapse
:
false
,
};
getLayOutSetting
=
()
=>
{
const
{
setting
:
{
grid
,
fixedHeader
,
layout
,
autoHideHeader
,
fixSiderbar
},
...
...
@@ -98,13 +102,14 @@ class SettingDrawer extends PureComponent {
};
togglerContent
=
()
=>
{
const
{
setting
}
=
this
.
props
;
this
.
changeSetting
(
'
collapse
'
,
!
setting
.
collapse
);
const
{
collapse
}
=
this
.
state
;
this
.
setState
({
collapse
:
!
collapse
}
);
};
render
()
{
const
{
setting
}
=
this
.
props
;
const
{
collapse
,
navTheme
,
primaryColor
,
layout
,
colorWeak
}
=
setting
;
const
{
navTheme
,
primaryColor
,
layout
,
colorWeak
}
=
setting
;
const
{
collapse
}
=
this
.
state
;
return
(
<
Drawer
visible
=
{
collapse
}
...
...
src/defaultSettings.js
View file @
d61aaf8f
module
.
exports
=
{
collapse
:
false
,
navTheme
:
'
dark
'
,
primaryColor
:
'
#1890FF
'
,
layout
:
'
sidemenu
'
,
...
...
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