From 2eeec7fe3ee07a839e19ff6135ba47ada9ec8aa9 Mon Sep 17 00:00:00 2001 From: Apple <> Date: Wed, 17 Aug 2022 18:03:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A1=A8=E6=A0=BC=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E7=A6=81=E7=94=A8=E8=A1=8C=EF=BC=8C=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=85=A8=E9=80=89=E6=8E=A7=E4=BB=B6=E4=B8=8D=E5=8B=BE?= =?UTF-8?q?=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/gird/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/gird/main.js b/src/components/gird/main.js index d739ea73..86e7af24 100644 --- a/src/components/gird/main.js +++ b/src/components/gird/main.js @@ -176,9 +176,9 @@ export default class menu extends React.Component { this.setState({ allChecked: e.target.checked }) - + let tableData = _.map(this.state.tableData, (item) => { - return (item.checked = e.target.checked) + return (item.checked = e.target.checked&&!item.disabled) }) this.setState({ tableData: this.state.tableData