From 14a1225a21c16bee0861327154be01451bee4fae Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Thu, 3 Sep 2020 18:29:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A1=A8=E6=A0=BC=E5=85=A8?= =?UTF-8?q?=E9=80=89=E5=8F=8D=E9=80=89=E4=B8=8D=E5=90=8C=E6=AD=A5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Table/TableContent.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderers/Table/TableContent.tsx b/src/renderers/Table/TableContent.tsx index 8ebd8116d..d807d3d66 100644 --- a/src/renderers/Table/TableContent.tsx +++ b/src/renderers/Table/TableContent.tsx @@ -55,7 +55,11 @@ export class TableContent extends React.Component { const rows = props.rows; this.reaction = reaction( - () => `${rows.map(item => item.id).join(',')}`, + () => + `${rows.map(item => item.id).join(',')}${rows + .filter(item => item.checked) + .map(item => item.id) + .join(',')}`, () => this.forceUpdate(), { onError: () => this.reaction!()