From 0f113be77ce8fbd9836c3e02104cc3acc1292d90 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Wed, 18 Oct 2023 16:55:20 +0800 Subject: [PATCH] =?UTF-8?q?table=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0radio?= =?UTF-8?q?=E7=A6=81=E7=94=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Table/src/hooks/useCustomRow.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/components/Table/src/hooks/useCustomRow.ts b/src/components/Table/src/hooks/useCustomRow.ts index d7230f4..e4cdd88 100644 --- a/src/components/Table/src/hooks/useCustomRow.ts +++ b/src/components/Table/src/hooks/useCustomRow.ts @@ -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();