From 4a20156f3db7a4f56ad5369f4467f842d11d225a Mon Sep 17 00:00:00 2001 From: Netfan Date: Wed, 11 Dec 2024 13:46:52 +0800 Subject: [PATCH] fix: table auto height (#5101) --- packages/effects/common-ui/src/components/page/page.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/effects/common-ui/src/components/page/page.vue b/packages/effects/common-ui/src/components/page/page.vue index 65560d4e..90e00080 100644 --- a/packages/effects/common-ui/src/components/page/page.vue +++ b/packages/effects/common-ui/src/components/page/page.vue @@ -39,9 +39,7 @@ const footerRef = useTemplateRef('footerRef'); const contentStyle = computed(() => { if (autoContentHeight) { return { - height: shouldAutoHeight.value - ? `calc(var(${CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT}) - ${headerHeight.value}px)` - : '0', + height: `calc(var(${CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT}) - ${headerHeight.value}px)`, overflowY: shouldAutoHeight.value ? 'auto' : 'unset', }; }