Skip to content

Commit 7aa9edc

Browse files
committed
fix: update should always have notMerge: true
1 parent 157a66b commit 7aa9edc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ECharts.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ export default defineComponent({
8686
const realInitOptions = computed(
8787
() => props.initOptions || unref(defaultInitOptions) || {}
8888
);
89-
const realUpdateOptions = computed(
90-
() => props.updateOptions || unref(defaultUpdateOptions) || {}
91-
);
89+
const realUpdateOptions = computed(() => ({
90+
...(props.updateOptions || unref(defaultUpdateOptions) || {}),
91+
notMerge: true
92+
}));
9293
const nonEventAttrs = computed(() => omitOn(attrs));
9394

9495
function init(option?: Option) {

0 commit comments

Comments
 (0)