新增封装echarts

This commit is contained in:
ldz
2020-10-19 10:48:42 +08:00
parent 3b6679388a
commit 3060b6b1e8
3 changed files with 558 additions and 0 deletions
+6
View File
@@ -12,6 +12,12 @@ export default {
created() {
window.addEventListener('resize', this[resizeChartMethod], false);
},
activated() {
// 防止keep-alive之后图表变形
if (this.chart) {
this.chart.resize()
}
},
beforeDestroy() {
window.removeEventListener('reisze', this[resizeChartMethod]);
},