问题产生:先渲染dom 后渲染数据
解决方法:
1 可以延时渲染
2 监听resize事件
that = this;
window.addEventListener('resize', () => {
that.echartsA.resize();
});
window.removeEventListener('resize', that.echartsA.resize());
标签:渲染,外部,echartsA,window,div,echarts,resize
From: https://www.cnblogs.com/tangshidedabenniao/p/17514104.html