Comments (5)
目前事件都是以声明式的方式绑定的(v-on
),所以目前没有提供 on
/ off
方法。你的实际场景是什么?
from vue-echarts.
目前事件都是以声明式的方式绑定的(
v-on
),所以目前没有提供on
/off
方法。你的实际场景是什么?
事件绑定了方法fn,那个方法fn.bind(this),this是一个很大的对象。组件销毁时,事件没法off掉,导致内存泄漏。
我倒是找到了ref.value.chart.off方法,但是好像也没有完全解绑掉事件,dispose里面也不会解绑事件吗?
from vue-echarts.
组件销毁时 ECharts 实例和 Vue 实例都销毁了,你有可以复现问题的代码么?并且确认一下,这个问题仅在 vue-echarts 中出现而仅使用 ECharts 本身无法复现么?
from vue-echarts.
如果是 ECharts 本身的问题,我们就不在这个项目中处理了。如果有疑问,可以在确认原生 ECharts 中没有此问题后,创建一个新 issue 并给出问题复现。
from vue-echarts.
如果是 ECharts 本身的问题,我们就不在这个项目中处理了。如果有疑问,可以在确认原生 ECharts 中没有此问题后,创建一个新 issue 并给出问题复现。
不是方法没有off的问题。应该是vue和echart还有pinia组合的问题。将传给图表的ref数据转为普通数据后问题解决,升级Vue3.3至3.4也可以解决😂。
from vue-echarts.
Related Issues (20)
- 路由缓存时,切换Tab页面,ECHARTS不显示 HOT 3
- 安装报错 Invalid response body while trying to fetch https://registry.npmjs.org/resize-detector: Cannot read properties of null (reading 'pickAlgorithm') HOT 2
- `npm i echarts vue-echarts` not installing for vue3 project HOT 1
- build后无法获取echart的实例 HOT 13
- 使用dataset数据集多纬度时报错 HOT 3
- 示例代码显示内容空白 HOT 3
- use autoresize;When the height changes decreases, the chart is abnormal HOT 2
- v6.7.3 Hides Charts HOT 2
- 1
- geoMap中的@click事件绑定无效 HOT 1
- ChartProps autoresize type incorrect
- nuxt3 vue-echarts从6.7.3升级到7.0.1报错 HOT 5
- Click event not fired in TS project
- 类型错误 HOT 3
- 支持数据集吗? HOT 1
- 从6.7.3升级到7.0.1后,页面原有样式将被限制加载 HOT 14
- 异步 `registerMap` 报错 HOT 3
- Vue provide(THEME_KEY, 'dark') 會打亂CSS HOT 8
- ChartProps autoresize type still incorrect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-echarts.