Skip to content
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

echarts实例不应声明为响应式对象 #61

Closed
non-one opened this issue Sep 23, 2022 · 1 comment
Closed

echarts实例不应声明为响应式对象 #61

non-one opened this issue Sep 23, 2022 · 1 comment

Comments

@non-one
Copy link

non-one commented Sep 23, 2022

在组件views/dashboard/dataVisualize中,index.vue中使用

const dataScreen: ChartProps = reactive({
	chart1: null,
	chart2: null
});

来保留初始化后的echarts对象,但是根据echarts issue中的描述,不建议声明为响应式对象(apache/echarts#17619 (comment))
自己在使用过程中也遇到tooltip组件异常的情况,简单的解决办法是将reactive删去。

@HalseySpicy
Copy link
Owner

谢谢老哥建议,已更改😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants