From a10346a67a9f8ae59d523ca445c9ca9929ecd4cd Mon Sep 17 00:00:00 2001 From: bubble <389565230@qq.com> Date: Fri, 4 Mar 2022 10:22:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E5=8F=AF=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=88=BF=E5=B1=8B=E5=8F=AF=E5=85=A8=E9=80=89=E5=8F=8D?= =?UTF-8?q?=E9=80=89=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BuildingTable/core/select-manager.js | 8 ++++++-- src/components/BuildingTable/style/common.scss | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/BuildingTable/core/select-manager.js b/src/components/BuildingTable/core/select-manager.js index 8cd9a5f..be92329 100644 --- a/src/components/BuildingTable/core/select-manager.js +++ b/src/components/BuildingTable/core/select-manager.js @@ -85,7 +85,9 @@ export default class SelectionManager { if (this.disabled) return this.query.queryHousesByUnit(unitInfo).forEach(house => { - this.setHouseCell(house, selected) + if (house.isEnabled) { + this.setHouseCell(house, selected) + } }) this.raiseEvent() } @@ -95,7 +97,9 @@ export default class SelectionManager { if (this.disabled) return this.query.queryHousesByLayer(layerInfo, unitInfo).forEach(house => { - this.setHouseCell(house, selected) + if (house.isEnabled) { + this.setHouseCell(house, selected) + } }) this.raiseEvent() } diff --git a/src/components/BuildingTable/style/common.scss b/src/components/BuildingTable/style/common.scss index 9e0d9da..be24b39 100644 --- a/src/components/BuildingTable/style/common.scss +++ b/src/components/BuildingTable/style/common.scss @@ -4,7 +4,7 @@ .bt-checkbox__input { margin-right: 2px; - &[disabled="disabled"] { + &[disabled] { cursor: not-allowed; } }