Browse Source

fix: table auto height (#5101)

pull/5105/head
Netfan 1 year ago
committed by GitHub
parent
commit
4a20156f3d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      packages/effects/common-ui/src/components/page/page.vue

4
packages/effects/common-ui/src/components/page/page.vue

@ -39,9 +39,7 @@ const footerRef = useTemplateRef<HTMLDivElement>('footerRef');
const contentStyle = computed<StyleValue>(() => {
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',
};
}

Loading…
Cancel
Save