Commit 85ca3167 authored by jim's avatar jim

change rc-drawer-menu to rc-drawer

parent 318152e3
{ {
"editor.formatOnSave": true "editor.formatOnSave": false
} }
import React, { PureComponent } from 'react'; import React, { PureComponent } from 'react';
import { Select, message, List, Switch, Divider, Icon } from 'antd'; import { Select, message, List, Switch, Divider, Icon } from 'antd';
import DrawerMenu from 'rc-drawer-menu'; import DrawerMenu from 'rc-drawer';
import { connect } from 'dva'; import { connect } from 'dva';
import styles from './index.less'; import styles from './index.less';
import ThemeColor from './ThemeColor'; import ThemeColor from './ThemeColor';
......
import 'rc-drawer-menu/assets/index.css'; import 'rc-drawer/assets/index.css';
import React from 'react'; import React from 'react';
import DrawerMenu from 'rc-drawer-menu'; import DrawerMenu from 'rc-drawer';
import SiderMenu from './SiderMenu'; import SiderMenu from './SiderMenu';
/** /**
...@@ -24,7 +24,7 @@ const SiderMenuWrapper = props => ...@@ -24,7 +24,7 @@ const SiderMenuWrapper = props =>
<DrawerMenu <DrawerMenu
parent={null} parent={null}
level={null} level={null}
iconChild={null} handleChild={null}
open={!props.collapsed} open={!props.collapsed}
onMaskClick={() => { onMaskClick={() => {
props.onCollapse(true); props.onCollapse(true);
......
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