From 83f49ce487d93d0dc33f126aaa39bca0ba5dce5c Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Mon, 21 Dec 2020 16:28:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=93=E5=B2=94=E7=81=B0=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/Switch/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/jmapNew/shape/Switch/index.js b/src/jmapNew/shape/Switch/index.js index ab34b4001..c78835b3a 100644 --- a/src/jmapNew/shape/Switch/index.js +++ b/src/jmapNew/shape/Switch/index.js @@ -512,7 +512,11 @@ export default class Switch extends Group { section.hide(); } } - + setAshShow() { + this.shapeModelA.setColor('#7F7F7F'); + this.shapeModelB.setColor('#7F7F7F'); + this.shapeModelC.setColor('#7F7F7F'); + } setState(model) { if (!this.isShowShape) return; this.recover(); @@ -545,6 +549,7 @@ export default class Switch extends Group { sectionB && sectionB.instance && sectionB.instance.setState(sectionB); } } + model.noStatus && this.setAshShow(); } getBoundingRect() {