ibp盘 圆形指示灯 调整

This commit is contained in:
joylink_cuiweidong 2019-09-06 10:55:34 +08:00
parent 20acc0e667
commit d05a6583df

View File

@ -36,13 +36,13 @@ export default class CircularLamp extends Group {
} }
setCircularLampColor(color) { setCircularLampColor(color) {
this.lamp.setStyle('fill', color); this.lamp.setStyle({fill: color});
} }
setStatus(model) { setStatus(model) {
if (model.switch === 'on') { if (model.switch === 'on') {
this.setCircularLampColor('fill', '#D8FCF2'); this.setCircularLampColor('#D8FCF2');
} else { } else {
this.setCircularLampColor('fill', '#332C22'); this.setCircularLampColor('#332C22');
} }
} }
setModel(dx, dy) { setModel(dx, dy) {