From a0510903d216beebf9430571d9d9468d23feecf8 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Fri, 22 Sep 2023 21:27:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E8=A1=A8=E5=8D=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=AD=97=E6=AE=B5=E8=BF=87=E5=A4=9A=E6=97=B6,?= =?UTF-8?q?=E5=88=97=E5=A4=B4=E5=92=8C=E6=95=B0=E6=8D=AE=E5=AF=B9=E4=B8=8D?= =?UTF-8?q?=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Table/src/hooks/useTableScroll.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/Table/src/hooks/useTableScroll.ts b/src/components/Table/src/hooks/useTableScroll.ts index d9bb192..c465386 100644 --- a/src/components/Table/src/hooks/useTableScroll.ts +++ b/src/components/Table/src/hooks/useTableScroll.ts @@ -88,7 +88,7 @@ export function useTableScroll( bodyEl!.style.height = 'unset'; - if (!unref(getCanResize) || tableData.length === 0) return; + if (!unref(getCanResize) || ( !tableData || tableData.length === 0)) return; await nextTick(); //Add a delay to get the correct bottomIncludeBody paginationHeight footerHeight headerHeight @@ -150,10 +150,11 @@ export function useTableScroll( const getScrollX = computed(() => { let width = 0; - if (unref(rowSelectionRef)) { - width += 60; - } - + // update-begin--author:liaozhiyang---date:20230922---for:【QQYUN-6391】在线表单列表字段过多时,列头和数据对不齐 + // if (unref(rowSelectionRef)) { + // width += 60; + // } + // update-end--author:liaozhiyang---date:20230922---for:【QQYUN-6391】在线表单列表字段过多时,列头和数据对不齐 // TODO props ?? 0; const NORMAL_WIDTH = 150;