Skip to content

Commit 024698d

Browse files
committed
fix: drawer props wrapStyle no work #1481
1 parent d757ac6 commit 024698d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/drawer/index.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const Drawer = {
142142
return null;
143143
}
144144
this.destroyClose = false;
145-
const { placement, bodyStyle } = this.$props;
145+
const { placement, bodyStyle, wrapStyle } = this.$props;
146146

147147
const containerStyle =
148148
placement === 'left' || placement === 'right'
@@ -162,7 +162,7 @@ const Drawer = {
162162
return (
163163
<div
164164
class={`${prefixCls}-wrapper-body`}
165-
style={containerStyle}
165+
style={{...containerStyle, ...wrapStyle}}
166166
onTransitionend={this.onDestroyTransitionEnd}
167167
>
168168
{this.renderHeader(prefixCls)}

0 commit comments

Comments
 (0)