From d0a7e67138a714d0b522daeb3c611cf297555842 Mon Sep 17 00:00:00 2001 From: whyour Date: Thu, 21 Oct 2021 19:13:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtable=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/index.ts b/src/utils/index.ts index 57a0ed9c..7a02c898 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -181,8 +181,8 @@ export function getTableScroll({ id, }: { extraHeight?: number; id?: string } = {}) { if (typeof extraHeight == 'undefined') { - // 默认底部分页64 + 边距10 - extraHeight = 167; + // 47 + 40 + 10 + 24 + extraHeight = 127; } let tHeader = null; if (id) { @@ -192,7 +192,7 @@ export function getTableScroll({ .getElementsByClassName('ant-table-thead')[0] : null; } else { - tHeader = document.querySelector('.ant-pro-grid-content'); + tHeader = document.querySelector('.ant-table-wrapper'); } //表格内容距离顶部的距离