mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
fix: Enable maskStyle on Drawer
This commit is contained in:
parent
690df6307c
commit
f13cbd9a32
@ -200,13 +200,17 @@ export default class Drawer extends React.Component<DrawerProps, IDrawerState> {
|
||||
}
|
||||
|
||||
getRcDrawerStyle = () => {
|
||||
const { zIndex, placement } = this.props;
|
||||
const { zIndex, placement, maskStyle } = this.props;
|
||||
return this.state.push
|
||||
? {
|
||||
...maskStyle,
|
||||
zIndex,
|
||||
transform: this.getPushTransform(placement),
|
||||
}
|
||||
: { zIndex };
|
||||
: {
|
||||
...maskStyle,
|
||||
zIndex,
|
||||
};
|
||||
}
|
||||
|
||||
// render Provider for Multi-level drawe
|
||||
|
Loading…
Reference in New Issue
Block a user