We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e44c9df commit 6304a1bCopy full SHA for 6304a1b
src/ECharts.ts
@@ -281,7 +281,11 @@ export default defineComponent({
281
};
282
},
283
render() {
284
- const attrs = { ...this.nonEventAttrs };
+ // Vue 3 and Vue 2 have different vnode props format:
285
+ // See https://v3-migration.vuejs.org/breaking-changes/render-function-api.html#vnode-props-format
286
+ const attrs = (
287
+ Vue2 ? { attrs: this.nonEventAttrs } : { ...this.nonEventAttrs }
288
+ ) as any;
289
attrs.ref = "root";
290
attrs.class = attrs.class ? ["echarts"].concat(attrs.class) : "echarts";
291
return h(TAG_NAME, attrs);
0 commit comments