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
2761a3ba
Commit
2761a3ba
authored
Sep 11, 2018
by
ιεΈ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #2261 remove onCollapse in Sider
parent
fea90487
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/components/SiderMenu/SliderMenu.js
src/components/SiderMenu/SliderMenu.js
+1
-3
No files found.
src/components/SiderMenu/SliderMenu.js
View file @
2761a3ba
...
@@ -87,7 +87,7 @@ export default class SiderMenu extends PureComponent {
...
@@ -87,7 +87,7 @@ export default class SiderMenu extends PureComponent {
};
};
render
()
{
render
()
{
const
{
logo
,
collapsed
,
onCollapse
,
fixSiderbar
,
theme
}
=
this
.
props
;
const
{
logo
,
collapsed
,
fixSiderbar
,
theme
}
=
this
.
props
;
const
{
openKeys
}
=
this
.
state
;
const
{
openKeys
}
=
this
.
state
;
const
defaultProps
=
collapsed
?
{}
:
{
openKeys
};
const
defaultProps
=
collapsed
?
{}
:
{
openKeys
};
...
@@ -95,14 +95,12 @@ export default class SiderMenu extends PureComponent {
...
@@ -95,14 +95,12 @@ export default class SiderMenu extends PureComponent {
[
styles
.
fixSiderbar
]:
fixSiderbar
,
[
styles
.
fixSiderbar
]:
fixSiderbar
,
[
styles
.
light
]:
theme
===
'
light
'
,
[
styles
.
light
]:
theme
===
'
light
'
,
});
});
return
(
return
(
<
Sider
<
Sider
trigger
=
{
null
}
trigger
=
{
null
}
collapsible
collapsible
collapsed
=
{
collapsed
}
collapsed
=
{
collapsed
}
breakpoint
=
"
lg
"
breakpoint
=
"
lg
"
onCollapse
=
{
onCollapse
}
width
=
{
256
}
width
=
{
256
}
theme
=
{
theme
}
theme
=
{
theme
}
className
=
{
siderClassName
}
className
=
{
siderClassName
}
...
...
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