【QQYUN-6283】点击表格清空,rowSelect里面的selectedRowKeys没置空。

pull/755/head
zhangdaiscott 2023-08-23 21:15:39 +08:00
parent 14997aeedc
commit e687fa784f
1 changed files with 3 additions and 1 deletions

View File

@ -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<T = Recordable>() {