mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
parent
1c02a65593
commit
1ac6b5782d
@ -196,25 +196,20 @@ export default class Drawer extends React.Component<DrawerProps, IDrawerState> {
|
||||
>
|
||||
{header}
|
||||
{closer}
|
||||
<div className={`${prefixCls}-body`} style={this.props.style}>
|
||||
{this.props.children}
|
||||
</div>
|
||||
<div className={`${prefixCls}-body`}>{this.props.children}</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
getRcDrawerStyle = () => {
|
||||
const { zIndex, placement, maskStyle } = this.props;
|
||||
return this.state.push
|
||||
? {
|
||||
...maskStyle,
|
||||
zIndex,
|
||||
transform: this.getPushTransform(placement),
|
||||
}
|
||||
: {
|
||||
...maskStyle,
|
||||
zIndex,
|
||||
};
|
||||
const { zIndex, placement, maskStyle, style } = this.props;
|
||||
const { push } = this.state;
|
||||
return {
|
||||
...maskStyle,
|
||||
zIndex,
|
||||
transform: push ? this.getPushTransform(placement) : undefined,
|
||||
style,
|
||||
};
|
||||
};
|
||||
|
||||
// render Provider for Multi-level drawe
|
||||
|
Loading…
Reference in New Issue
Block a user