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:
Davont 2025-07-28 14:13:28 +08:00 committed by GitHub
parent 4487170e58
commit 984b5e13ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -579,6 +579,8 @@ export default {
this.afterSetOptionOnce && this.afterSetOptionOnce(this.integrateChart.echartsIns)
},
beforeUnmount() {
this.integrateChart = null
if (this.integrateChart.uninstall) this.integrateChart.uninstall()
this.watchToPropsEchartOptions.forEach((unwatch) => {
unwatch && unwatch()
})