fix:修改问题

1 调整窗口大小后,echarts图表不能正常显示
This commit is contained in:
hyx
2020-05-18 17:28:51 +08:00
parent fb1e901083
commit 12b09cfa5f

View File

@@ -78,7 +78,7 @@
-->
</div>
<div class="line-area" ref="lineChartArea" :id="'lineChartArea'+chartIndex" v-show="firstShow"></div>
<div class="line-area" ref="lineChartArea" :id="'lineChartArea'+chartIndex" v-show="firstShow" style="width:100%;"></div>
<div class="legend-container" id="legendArea" ref="legendArea" v-show="firstShow" v-scrollBar:legend>
<div v-for="(item, index) in legendList" :title="item.alias?item.alias:item.name" @click="clickLegend(item.name,index)" class="legend-item" :class="{'ft-gr':isGrey[index]}" :key="'legend_' + item.name+'_'+index">
@@ -934,6 +934,10 @@
self.firstShow = true; // 展示操作按键
}, 100)
window.addEventListener('resize', function () {
self.echartStore.resize();
});
this.echartStore.on('magictypechanged', function (params) {
self.isStackArea = !self.isStackArea;
if(self.isStackArea){