Skip to content

Commit 6647113

Browse files
authored
fix(drawer): wrapper style pass to drawer content (#6983)
1 parent 21d85ea commit 6647113

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

components/drawer/index.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,13 @@ const Drawer = defineComponent({
285285
});
286286

287287
const wrapperStyle = computed(() => {
288-
const { zIndex } = props;
288+
const { zIndex, contentWrapperStyle } = props;
289289
const val = offsetStyle.value;
290-
return [{ zIndex, transform: sPush.value ? pushTransform.value : undefined }, val];
290+
return [
291+
{ zIndex, transform: sPush.value ? pushTransform.value : undefined },
292+
{ ...contentWrapperStyle },
293+
val,
294+
];
291295
});
292296

293297
const renderHeader = (prefixCls: string) => {

0 commit comments

Comments
 (0)