fix(chart): fix chart bug, resolve memory leakage issues (#3610)
* fix: 【Charts】update charts snapshots * fix: 修复图表height为100%时的高度问题 * fix: 优化图表extend逻辑 * fix: 修复图表extend失效问题 * fix: 删除注释 * fix: 新增图表echartOption变量,以便用户获取echart配置 * fix: 修复playground百度地图案例错误问题 * fix: 修复图表option复杂变量失效问题 * fix: 修改高德百度地图案例注释 * fix: chart-core添加cloneDeep引入 * fix: 修改chart组件getFormatted函数判断逻辑 * fix: 更新chart-core包版本为3.17.1 * fix: 修复箱型图data为空数组时的报错问题 * fix: 添加图标属性逻辑的深拷贝 * fix: 删除注释文件 * fix: 修改图表打包 * fix: 图表打包指令修改 * fix: huiCharts打包替换为Chart * fix: 新增图表解绑,解决内存泄漏问题
This commit is contained in:
parent
4487170e58
commit
984b5e13ce
|
@ -579,6 +579,8 @@ export default {
|
||||||
this.afterSetOptionOnce && this.afterSetOptionOnce(this.integrateChart.echartsIns)
|
this.afterSetOptionOnce && this.afterSetOptionOnce(this.integrateChart.echartsIns)
|
||||||
},
|
},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
|
this.integrateChart = null
|
||||||
|
if (this.integrateChart.uninstall) this.integrateChart.uninstall()
|
||||||
this.watchToPropsEchartOptions.forEach((unwatch) => {
|
this.watchToPropsEchartOptions.forEach((unwatch) => {
|
||||||
unwatch && unwatch()
|
unwatch && unwatch()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue