提交 ddc3786b 编写于 作者: V vben

fix: fix table auto height

上级 b8353fe1
......@@ -77,7 +77,7 @@ export function useTableScroll(refProps: ComputedRef<BasicTableProps>, 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<BasicTableProps>, 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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册