Parcourir la source

fix(@vben/common-ui): add page footer's height to calc contentstyle (#6422)

someone-cool il y a 2 mois
Parent
commit
1f63aed64c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      packages/effects/common-ui/src/components/page/page.vue

+ 1 - 1
packages/effects/common-ui/src/components/page/page.vue

@@ -25,7 +25,7 @@ const footerRef = useTemplateRef<HTMLDivElement>('footerRef');
 const contentStyle = computed<StyleValue>(() => {
   if (autoContentHeight) {
     return {
-      height: `calc(var(${CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT}) - ${headerHeight.value}px - ${typeof heightOffset === 'number' ? `${heightOffset}px` : heightOffset})`,
+      height: `calc(var(${CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT}) - ${headerHeight.value}px - ${typeof heightOffset === 'number' ? `${heightOffset}px` : heightOffset}) - ${footerHeight.value}px`,
       overflowY: shouldAutoHeight.value ? 'auto' : 'unset',
     };
   }