diff --git a/components/drawer/index.tsx b/components/drawer/index.tsx index 89ed320f3a..ae90ab9fa2 100644 --- a/components/drawer/index.tsx +++ b/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) => {