document.getElementById('news-shopPagechart').style.height = this.heightpx2+'px'; //heightpx2定义在data中,用于动态设置高度

let shopCharts = this.$echarts.init(
document.getElementById("news-shopPagechart")
);

shopCharts.resize();//直接加这句即可

shopCharts.setOption({...})

 

相关文章:

  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2021-10-04
  • 2021-09-05
  • 2022-12-23
猜你喜欢
  • 2021-08-02
  • 2021-07-23
  • 2021-10-19
  • 2021-09-25
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
相关资源
相似解决方案