From e4e72887bafaacd69bf15f3ea99826d0012062bc Mon Sep 17 00:00:00 2001 From: Mr9eng <47270026+Mr9eng@users.noreply.github.com> Date: Tue, 9 Aug 2022 15:41:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=91=E5=BD=A2=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E7=88=B6=E7=BA=A7=E9=80=89=E6=8B=A9=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=88=A0=E9=99=A4=E6=8C=89=E9=92=AE=E8=BF=98=E8=83=BD?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=AD=90=E8=8A=82=E7=82=B9=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82=20(#110)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Crud/crud.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Crud/crud.js b/src/components/Crud/crud.js index ae36765..b5bd398 100644 --- a/src/components/Crud/crud.js +++ b/src/components/Crud/crud.js @@ -480,6 +480,7 @@ function CRUD(options) { toggleRowSelection(selection, data) { if (data.children) { data.children.forEach(val => { + selection.splice(selection.findIndex(item => this.getDataId(item) === this.getDataId(val)), 1) crud.getTable().toggleRowSelection(val, false) if (val.children) { crud.toggleRowSelection(selection, val)