-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vue-echart instance doesn't have off function #788
Comments
目前事件都是以声明式的方式绑定的( |
事件绑定了方法fn,那个方法fn.bind(this),this是一个很大的对象。组件销毁时,事件没法off掉,导致内存泄漏。 |
组件销毁时 ECharts 实例和 Vue 实例都销毁了,你有可以复现问题的代码么?并且确认一下,这个问题仅在 vue-echarts 中出现而仅使用 ECharts 本身无法复现么? |
如果是 ECharts 本身的问题,我们就不在这个项目中处理了。如果有疑问,可以在确认原生 ECharts 中没有此问题后,创建一个新 issue 并给出问题复现。 |
不是方法没有off的问题。应该是vue和echart还有pinia组合的问题。将传给图表的ref数据转为普通数据后问题解决,升级Vue3.3至3.4也可以解决😂。 |
请确认
您是如何将 Vue-ECharts 引入项目的?
通过 ES 模块 import
版本信息
问题详情
通过chart实例无法获取到off方法,导致事件无法解绑
问题复现
/
The text was updated successfully, but these errors were encountered: