We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
通过 ES 模块 import
vue-echarts:6.6.1
最新的vue-echarts生成的dom
echarts_instance 这个属性在 内部的DIV元素上而不是在 x-vue-echarts这个元素上,导致 getInstanceByDom 方法无法通过 x-vue-echarts 拿到chat实例。这与之前版本的表现不同
none
The text was updated successfully, but these errors were encountered:
Vue-ECharts 并不对外保证自身的 DOM 结构,所以这并不是一个 bug。你是用 getInstanceByDom 的场景是什么?
getInstanceByDom
Sorry, something went wrong.
@Justineo 通过实例的 getOption 方法来获取配置。之前逻辑类似于 getInstanceByDom(document.querySelector('x-vue-echarts')).getOption() 6.6.1之后得修改成 getInstanceByDom(document.querySelector('x-vue-echarts').firstChild).getOption() 了
getInstanceByDom(document.querySelector('x-vue-echarts')).getOption()
getInstanceByDom(document.querySelector('x-vue-echarts').firstChild).getOption()
你可以用 ref 获取组件实例,上面有 getOption 方法。
getOption
No branches or pull requests
请确认
您是如何将 Vue-ECharts 引入项目的?
通过 ES 模块 import
版本信息
问题详情
最新的vue-echarts生成的dom
echarts_instance 这个属性在 内部的DIV元素上而不是在 x-vue-echarts这个元素上,导致 getInstanceByDom 方法无法通过 x-vue-echarts 拿到chat实例。这与之前版本的表现不同
问题复现
none
The text was updated successfully, but these errors were encountered: