[转]vue element中如何在弹出框中获取dom元素来使用echarts

https://www.jianshu.com/p/e72bb870b4ed
1、在dialog中使用open方法
2、在定时函数setTimeout中执行方法

//  dialog的open方法
openChargeRate() {
  const _self = this;
  setTimeout(() => {
    //  执行echarts画图方法
    _self.drawLine();
  }, 0);
}

你可能感兴趣的:([转]vue element中如何在弹出框中获取dom元素来使用echarts)