diff --git a/src/components/Table/src/hooks/useTableScroll.ts b/src/components/Table/src/hooks/useTableScroll.ts index f99f6aba..eb01544e 100644 --- a/src/components/Table/src/hooks/useTableScroll.ts +++ b/src/components/Table/src/hooks/useTableScroll.ts @@ -77,7 +77,7 @@ export function useTableScroll(refProps: ComputedRef, tableElRe if (el) { headerHeight = (el as HTMLElement).offsetHeight; } - const tHeight = + tableHeightRef.value = bottomIncludeBody - (resizeHeightOffset || 0) - paddingHeight - @@ -86,7 +86,8 @@ export function useTableScroll(refProps: ComputedRef, tableElRe footerHeight - headerHeight; useTimeout(() => { - tableHeightRef.value = tHeight > maxHeight! ? (maxHeight as number) : tableHeightRef.value; + tableHeightRef.value = + tableHeightRef.value! > maxHeight! ? (maxHeight as number) : tableHeightRef.value; cb && cb(); }, 0); }