From c92d9dbee64b9e222cc51b3fbabf020632d2fd26 Mon Sep 17 00:00:00 2001 From: zhangwenshuai Date: Tue, 23 Feb 2021 11:09:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E7=BB=84=E6=89=80?= =?UTF-8?q?=E4=BC=A0=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/apolloTable/component/Cell.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/apolloTable/component/Cell.tsx b/components/apolloTable/component/Cell.tsx index 6d6438e..f6b4c9b 100644 --- a/components/apolloTable/component/Cell.tsx +++ b/components/apolloTable/component/Cell.tsx @@ -190,7 +190,12 @@ const Cell = (props: CellProps) => { }); data = data.concat(selectIds); } - onChange(data); + const result:any[] = []; + data.map(id=>{ + let item=dataSource.find(temp=>temp.id===id); + result.push(item); + }); + onChange(result); } }; // 切换当前分组展开/收起 -- 2.21.0