Browse Source

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

pull/7025/head
Konv Suu 1 year ago committed by GitHub
parent
commit
664711373c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      components/drawer/index.tsx

8
components/drawer/index.tsx

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