fix(drawer): wrapper style pass to drawer content (#6983)

pull/7025/head
Konv Suu 1 year ago committed by GitHub
parent 21d85ea82c
commit 664711373c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -285,9 +285,13 @@ const Drawer = defineComponent({
});
const wrapperStyle = computed(() => {
const { zIndex } = props;
const { zIndex, contentWrapperStyle } = props;
const val = offsetStyle.value;
return [{ zIndex, transform: sPush.value ? pushTransform.value : undefined }, val];
return [
{ zIndex, transform: sPush.value ? pushTransform.value : undefined },
{ ...contentWrapperStyle },
val,
];
});
const renderHeader = (prefixCls: string) => {

Loading…
Cancel
Save