fix: drawer props wrapStyle no work #1481

pull/1489/head
wangxueliang 2019-11-30 10:52:15 +08:00
parent d757ac68e2
commit 024698d5c1
1 changed files with 2 additions and 2 deletions

View File

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