mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-10-28 03:25:02 +08:00
fix: fix default behavior for notMerge, close #691
This commit is contained in:
@ -232,8 +232,11 @@ export default defineComponent({
|
||||
if (!chart.value) {
|
||||
init();
|
||||
} else {
|
||||
console.log(`notMerge: ${option !== oldOption}`);
|
||||
chart.value.setOption(option, {
|
||||
notMerge: option.value !== oldOption?.value,
|
||||
// mutating `option` will lead to `notMerge: false` and
|
||||
// replacing it with new reference will lead to `notMerge: true`
|
||||
notMerge: option !== oldOption,
|
||||
...realUpdateOptions.value
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user