Commit a2368883 authored by 陈帅's avatar 陈帅

use drawer repalce rc-drawer

parent 8b2b78e6
......@@ -13,6 +13,7 @@
"function-parentheses-newline-inside": null,
"function-max-empty-lines": null,
"function-whitespace-after": null,
"no-missing-end-of-source-newline": null,
"number-leading-zero": null,
"number-no-trailing-zeros": null,
"rule-empty-line-before": null,
......
import 'rc-drawer/assets/index.css';
import React from 'react';
import DrawerMenu from 'rc-drawer';
import { Drawer } from 'antd';
import SiderMenu from './SiderMenu';
const SiderMenuWrapper = props => {
const { isMobile, collapsed } = props;
return isMobile ? (
<DrawerMenu
getContainer={null}
level={null}
handleChild={<i className="drawer-handle-icon" />}
onHandleClick={() => {
props.onCollapse(!collapsed);
<Drawer
visible={!collapsed}
placement="left"
style={{
padding: 0,
}}
open={!collapsed}
onMaskClick={() => {
onClose={() => {
props.onCollapse(true);
}}
>
<SiderMenu {...props} collapsed={isMobile ? false : collapsed} />
</DrawerMenu>
</Drawer>
) : (
<SiderMenu {...props} />
);
......
......@@ -295,7 +295,7 @@ export default class TableList extends PureComponent {
</Col>
</Row>
<div style={{ overflow: 'hidden' }}>
<span style={{ float: 'right', marginBottom: 24 }}>
<div style={{ float: 'right', marginBottom: 24 }}>
<Button type="primary" htmlType="submit">
查询
</Button>
......@@ -305,7 +305,7 @@ export default class TableList extends PureComponent {
<a style={{ marginLeft: 8 }} onClick={this.toggleForm}>
收起 <Icon type="up" />
</a>
</span>
</div>
</div>
</Form>
);
......
......@@ -30,6 +30,7 @@
}
}
.submitButtons {
display: block;
white-space: nowrap;
margin-bottom: 24px;
}
......
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