fix: drawer props wrapStyle no work #1481
parent
d757ac68e2
commit
024698d5c1
|
@ -142,7 +142,7 @@ const Drawer = {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
this.destroyClose = false;
|
this.destroyClose = false;
|
||||||
const { placement, bodyStyle } = this.$props;
|
const { placement, bodyStyle, wrapStyle } = this.$props;
|
||||||
|
|
||||||
const containerStyle =
|
const containerStyle =
|
||||||
placement === 'left' || placement === 'right'
|
placement === 'left' || placement === 'right'
|
||||||
|
@ -162,7 +162,7 @@ const Drawer = {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
class={`${prefixCls}-wrapper-body`}
|
class={`${prefixCls}-wrapper-body`}
|
||||||
style={containerStyle}
|
style={{...containerStyle, ...wrapStyle}}
|
||||||
onTransitionend={this.onDestroyTransitionEnd}
|
onTransitionend={this.onDestroyTransitionEnd}
|
||||||
>
|
>
|
||||||
{this.renderHeader(prefixCls)}
|
{this.renderHeader(prefixCls)}
|
||||||
|
|
Loading…
Reference in New Issue