From 14997aeedc752b6f02bca6088be06603243f9140 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Mon, 14 Aug 2023 16:50:37 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90QQYUN-5687=E3=80=91=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E9=80=89=E6=8B=A9=EF=BC=8C=E6=8F=90=E7=A4=BA=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E5=8F=88=E6=9D=A5=E4=B8=80=E4=B8=AA=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=20=E3=80=90issues/657=E3=80=91=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8=E5=8D=A1=E6=AD=BB=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Table/src/hooks/useCustomSelection.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/Table/src/hooks/useCustomSelection.tsx b/src/components/Table/src/hooks/useCustomSelection.tsx index 3d36da6..f39466f 100644 --- a/src/components/Table/src/hooks/useCustomSelection.tsx +++ b/src/components/Table/src/hooks/useCustomSelection.tsx @@ -234,7 +234,9 @@ export function useCustomSelection( } else { setTimeout(() => { emitChange(); - resolve(); + // update-begin--author:liaozhiyang---date:20230811---for:【QQYUN-5687】批量选择,提示成功后,又来一个提示 + setTimeout(() =>resolve(), 0); + // update-end--author:liaozhiyang---date:20230811---for:【QQYUN-5687】批量选择,提示成功后,又来一个提示 }, 500); } }, 300); @@ -411,8 +413,12 @@ export function useCustomSelection( const found = allSelectedRows.find((item) => getRecordKey(item) === key); found && trueSelectedRows.push(found); }); - selectedRows.value = trueSelectedRows; - emitChange(); + // update-begin--author:liaozhiyang---date:20230811---for:【issues/657】浏览器卡死问题 + if (trueSelectedRows.length) { + selectedRows.value = trueSelectedRows; + emitChange(); + } + // update-end--author:liaozhiyang---date:20230811---for:【issues/657】】浏览器卡死问题 } function getSelectRows() {