From 87243b212d401d40a9a01cd31272aa1a95baa506 Mon Sep 17 00:00:00 2001 From: fks-xuxinyue <2822784518@qq.com> Date: Tue, 3 Sep 2024 17:04:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/component/table/table.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/component/table/table.vue b/lib/component/table/table.vue index 7f76ad6..8315fa9 100644 --- a/lib/component/table/table.vue +++ b/lib/component/table/table.vue @@ -340,6 +340,9 @@ onChange: (selectedRowKeys: never[], selectedRows: never[]) => { tableState.selectedRowKeys = selectedRowKeys; tableState.selectedRows = selectedRows; + if ('radio' === rowSelection.type) { + rowSelection.selectedRowKeys = selectedRowKeys; + } }, }, isFunction(rowSelection) ? rowSelection(tableState) : rowSelection,