修改代码

This commit is contained in:
lVAL 2020-10-23 17:54:16 +08:00
parent b081587002
commit a7764ce7c4

View File

@ -394,7 +394,9 @@ export default {
const option = this.myChart.getOption();
const model = this.target.model;
const graph = option.graphic[0].elements.find(el => { return ['area'].includes(el.subType) && el.model.areaNo == model.areaNo; });
if (graph) {
graph.style.fill = 'rgb(255,0,0, 0.6)';
}
this.myChart.setOption({graphic: option.graphic});
}
},
@ -403,7 +405,9 @@ export default {
const option = this.myChart.getOption();
const model = this.target.model;
const graph = option.graphic[0].elements.find(el => { return ['area'].includes(el.subType) && el.model.areaNo == model.areaNo; });
if (graph) {
graph.style.fill = 'rgb(255,0,0, 0.3)';
}
this.myChart.setOption({graphic: option.graphic});
}
},