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

fix #2261 remove onCollapse in Sider

parent fea90487
......@@ -87,7 +87,7 @@ export default class SiderMenu extends PureComponent {
};
render() {
const { logo, collapsed, onCollapse, fixSiderbar, theme } = this.props;
const { logo, collapsed, fixSiderbar, theme } = this.props;
const { openKeys } = this.state;
const defaultProps = collapsed ? {} : { openKeys };
......@@ -95,14 +95,12 @@ export default class SiderMenu extends PureComponent {
[styles.fixSiderbar]: fixSiderbar,
[styles.light]: theme === 'light',
});
return (
<Sider
trigger={null}
collapsible
collapsed={collapsed}
breakpoint="lg"
onCollapse={onCollapse}
width={256}
theme={theme}
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