Skip to content

Commit 37209e2

Browse files
authored
Merge pull request #21293 from apache/fix/markRaw-in-vue
fix(core): mark echarts instance object as raw in Vue
2 parents 7985f20 + 17b6c77 commit 37209e2

File tree

2 files changed

+328
-0
lines changed

2 files changed

+328
-0
lines changed

src/core/echarts.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,9 @@ class ECharts extends Eventful<ECEventDefinition> {
437437

438438
opts = opts || {};
439439

440+
// mark the echarts instance as raw in Vue 3 to prevent the object being converted to be a proxy.
441+
(this as any).__v_skip = true;
442+
440443
this._dom = dom;
441444

442445
let defaultRenderer = 'canvas';

test/echarts-in-vue.html

Lines changed: 325 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)