fix: Enable maskStyle on Drawer

This commit is contained in:
huangyan.py 2018-09-07 13:31:13 +08:00 committed by 偏右
parent 690df6307c
commit f13cbd9a32

View File

@ -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