Unverified 提交 f818bb9a 作者: ztw2010 提交者: GitHub

fix(useTableScroll): query paginationel every time to get the correct height (#355)

上级 257aaa32
......@@ -91,9 +91,7 @@ export function useTableScroll(
// Pager height
let paginationHeight = 2;
if (!isBoolean(pagination)) {
if (!paginationEl) {
paginationEl = tableEl.querySelector('.ant-pagination') as HTMLElement;
}
paginationEl = tableEl.querySelector('.ant-pagination') as HTMLElement;
if (paginationEl) {
const offsetHeight = paginationEl.offsetHeight;
paginationHeight += offsetHeight || 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论