getContainer={false}

dev_hss
hjm 5 years ago
parent 637ce6ac2f
commit ca54fb2e78

@ -131,6 +131,7 @@ class VNCContainer extends Component {
.vncDrawer .rc-tree {
padding: 16px;
max-width: 220px;
color: #CBCBCB;
}
.vncDrawer .ant-drawer-wrapper-body {

@ -50,7 +50,7 @@ class SecondDrawer extends React.Component {
// 180 不知道为什么会偏移 180px
return (
<Drawer
// mask={!this.state.visible}
mask={!this.state.visible}
title=" "
width={this.state.childrenDrawer ? secondDrawerWidth + firstDrawerWidth - 180 : firstDrawerWidth}
closable={false}
@ -58,6 +58,7 @@ class SecondDrawer extends React.Component {
visible={this.state.visible}
maskClosable={maskClosable}
className={firstDrawerClassName}
getContainer={false}
>
{/* <button type="primary" onClick={this.showSecondDrawer}>
Two-level drawer

Loading…
Cancel
Save