From e687fa784fdd196d63c0a21a42ba243929bbe47a Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Wed, 23 Aug 2023 21:15:39 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90QQYUN-6283=E3=80=91=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E6=B8=85=E7=A9=BA=EF=BC=8CrowSelect=E9=87=8C?= =?UTF-8?q?=E9=9D=A2=E7=9A=84selectedRowKeys=E6=B2=A1=E7=BD=AE=E7=A9=BA?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Table/src/hooks/useCustomSelection.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Table/src/hooks/useCustomSelection.tsx b/src/components/Table/src/hooks/useCustomSelection.tsx index f39466f..28656bd 100644 --- a/src/components/Table/src/hooks/useCustomSelection.tsx +++ b/src/components/Table/src/hooks/useCustomSelection.tsx @@ -413,12 +413,14 @@ export function useCustomSelection( const found = allSelectedRows.find((item) => getRecordKey(item) === key); found && trueSelectedRows.push(found); }); + // update-begin--author:liaozhiyang---date:20230823---for:【QQYUN-6283】点击表格清空,rowSelect里面的selectedRowKeys没置空。 // update-begin--author:liaozhiyang---date:20230811---for:【issues/657】浏览器卡死问题 - if (trueSelectedRows.length) { + if (trueSelectedRows.length || !rowKeys.length) { selectedRows.value = trueSelectedRows; emitChange(); } // update-end--author:liaozhiyang---date:20230811---for:【issues/657】】浏览器卡死问题 + // update-end--author:liaozhiyang---date:20230823---for:【QQYUN-6283】点击表格清空,rowSelect里面的selectedRowKeys没置空。 } function getSelectRows() {