调整车站颜色,功能栏宽度判断
This commit is contained in:
parent
ac43981c7d
commit
6ca803d06d
@ -358,9 +358,9 @@ export default class Station extends Group {
|
|||||||
this.centerControl && this.centerControl.setColor(this.style.Station.StationControl.lamp.greenColor);
|
this.centerControl && this.centerControl.setColor(this.style.Station.StationControl.lamp.greenColor);
|
||||||
this.centerControl && this.centerControl.setTextColor(this.style.Station.StationControl.lamp.greenColor); // 文字颜色
|
this.centerControl && this.centerControl.setTextColor(this.style.Station.StationControl.lamp.greenColor); // 文字颜色
|
||||||
if (this.style.Station.StationControl.disPlayNone) {
|
if (this.style.Station.StationControl.disPlayNone) {
|
||||||
this.stationText && this.stationText.setStyle('textFill', 'green');
|
this.stationText && this.stationText.setStyle('textFill', '#1fdc1f');
|
||||||
if (this.model.subheadDisplay) { // 副标题
|
if (this.model.subheadDisplay) { // 副标题
|
||||||
this.subheadText && this.subheadText.setStyle('textFill', 'green');
|
this.subheadText && this.subheadText.setStyle('textFill', '#1fdc1f');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -221,6 +221,7 @@ export default {
|
|||||||
},
|
},
|
||||||
'$store.state.app.windowSizeCount': function() {
|
'$store.state.app.windowSizeCount': function() {
|
||||||
this.setWindowSize();
|
this.setWindowSize();
|
||||||
|
this.setPosition();
|
||||||
},
|
},
|
||||||
$route() {
|
$route() {
|
||||||
this.initLoadData();
|
this.initLoadData();
|
||||||
@ -506,8 +507,8 @@ export default {
|
|||||||
if (menuTool) {
|
if (menuTool) {
|
||||||
this.offset = (menuTool.offsetHeight || 0) + 15;
|
this.offset = (menuTool.offsetHeight || 0) + 15;
|
||||||
}
|
}
|
||||||
const buttonWidth = this.width - 1200;
|
const buttonWidth = this.width - 1200; // B box widht
|
||||||
if (menuBottom && buttonWidth < 550) {
|
if (menuBottom && buttonWidth < 780) {
|
||||||
this.offsetBottom = (menuBottom.offsetHeight || 0) + 15;
|
this.offsetBottom = (menuBottom.offsetHeight || 0) + 15;
|
||||||
}
|
}
|
||||||
if (menuButtonsBox) {
|
if (menuButtonsBox) {
|
||||||
|
@ -211,6 +211,7 @@ export default {
|
|||||||
},
|
},
|
||||||
'$store.state.app.windowSizeCount': function() { // 窗口变化
|
'$store.state.app.windowSizeCount': function() { // 窗口变化
|
||||||
this.setWindowSize();
|
this.setWindowSize();
|
||||||
|
this.setPosition();
|
||||||
},
|
},
|
||||||
$route() {
|
$route() {
|
||||||
this.initLoadData();
|
this.initLoadData();
|
||||||
@ -262,7 +263,7 @@ export default {
|
|||||||
this.offset = (menuTool.offsetHeight || 0) + 15;
|
this.offset = (menuTool.offsetHeight || 0) + 15;
|
||||||
}
|
}
|
||||||
const buttonWidth = this.width - 1200;
|
const buttonWidth = this.width - 1200;
|
||||||
if (menuBottom && buttonWidth < 550) {
|
if (menuBottom && buttonWidth < 780) {
|
||||||
this.offsetBottom = (menuBottom.offsetHeight || 0) + 15;
|
this.offsetBottom = (menuBottom.offsetHeight || 0) + 15;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user