ibp盘 圆形指示灯 调整
This commit is contained in:
parent
20acc0e667
commit
d05a6583df
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user