GithubHelp home page GithubHelp logo

Comments (5)

Justineo avatar Justineo commented on July 30, 2024

目前事件都是以声明式的方式绑定的(v-on),所以目前没有提供 on / off 方法。你的实际场景是什么?

from vue-echarts.

tustzdm avatar tustzdm commented on July 30, 2024

目前事件都是以声明式的方式绑定的(v-on),所以目前没有提供 on / off 方法。你的实际场景是什么?

事件绑定了方法fn,那个方法fn.bind(this),this是一个很大的对象。组件销毁时,事件没法off掉,导致内存泄漏。
我倒是找到了ref.value.chart.off方法,但是好像也没有完全解绑掉事件,dispose里面也不会解绑事件吗?

from vue-echarts.

Justineo avatar Justineo commented on July 30, 2024

组件销毁时 ECharts 实例和 Vue 实例都销毁了,你有可以复现问题的代码么?并且确认一下,这个问题仅在 vue-echarts 中出现而仅使用 ECharts 本身无法复现么?

from vue-echarts.

Justineo avatar Justineo commented on July 30, 2024

如果是 ECharts 本身的问题,我们就不在这个项目中处理了。如果有疑问,可以在确认原生 ECharts 中没有此问题后,创建一个新 issue 并给出问题复现。

from vue-echarts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.