Commit 2761a3ba authored by 陈帅's avatar 陈帅

fix #2261 remove onCollapse in Sider

parent fea90487
...@@ -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}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment