diff --git a/src/core/echarts.ts b/src/core/echarts.ts index b37012ae37..89f810088b 100644 --- a/src/core/echarts.ts +++ b/src/core/echarts.ts @@ -437,6 +437,9 @@ class ECharts extends Eventful { opts = opts || {}; + // mark the echarts instance as raw in Vue 3 to prevent the object being converted to be a proxy. + (this as any).__v_skip = true; + this._dom = dom; let defaultRenderer = 'canvas'; diff --git a/test/echarts-in-vue.html b/test/echarts-in-vue.html new file mode 100644 index 0000000000..0f0b49eaf4 --- /dev/null +++ b/test/echarts-in-vue.html @@ -0,0 +1,325 @@ + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + +