table列表增加radio禁用功能

pull/824/head
zhangdaiscott 2023-10-18 16:55:20 +08:00
parent 838bd19c88
commit 0f113be77c
1 changed files with 9 additions and 0 deletions

View File

@ -60,6 +60,15 @@ export function useCustomRow(
const isRadio = rowSelection.type === 'radio';
if (isRadio) {
// update-begin--author:liaozhiyang---date:20231016---for【QQYUN-6794】table列表增加radio禁用功能
const rowSelection = propsRef.value.rowSelection;
if (rowSelection.getCheckboxProps) {
const result = rowSelection.getCheckboxProps(record);
if (result.disabled) {
return;
}
}
// update-end--author:liaozhiyang---date:20231016---for【QQYUN-6794】table列表增加radio禁用功能
if (!keys.includes(key)) {
if (keys.length) {
clearSelectedRowKeys();