FIX scecharts 在特殊情况下 resize()失效

This commit is contained in:
sakuya 2021-05-14 20:06:40 +08:00
parent 75ec169e44
commit d09955b803
1 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,7 @@
import T from './echarts-theme-T.js';
echarts.registerTheme('T', T);
const unwarp = (obj) => obj && (obj.__v_raw || obj.valueOf() || obj);
export default {
...echarts,
name: "scEcharts",
@ -35,6 +35,11 @@
return this.option || {};
}
},
activated(){
this.$nextTick(() => {
this.myChart.resize()
})
},
mounted(){
this.draw();
},