MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / mounted

Function mounted

public/iframe/lib/js/mixinsComponents.js:369–372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

367 }
368 },
369 mounted() {
370 this.myChart = echarts.init(document.getElementById(this.id), null, { renderer: 'canvas' }) // 外面获取 因为改变尺寸图表要resize
371 vm.initChart(this.myChart, this.chartOption, this.option, this.id, item)
372 },
373 beforeDestroy() {
374 this.myChart.clear()
375 },

Callers

nothing calls this directly

Calls 1

setTimeoutFunction · 0.85

Tested by

no test coverage detected