Skip to content

Commit 0e340a7

Browse files
committed
perf!: properties will now be shallowly merged
1 parent eb76007 commit 0e340a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { debounce } from 'lodash-es'
22
import { JSONEditor, Mode } from 'vanilla-jsoneditor'
33
import { computed, defineComponent, getCurrentInstance, h, isVue3, onMounted, onUnmounted, ref, unref, watch, watchEffect } from 'vue-demi'
4-
import type { App, Plugin, PropType } from 'vue-demi'
54
import { conclude, resolveConfig } from 'vue-global-config'
5+
import type { App, Plugin, PropType } from 'vue-demi'
66
import { PascalCasedName as name } from '../package.json'
77

88
type SFCWithInstall<T> = T & Plugin
@@ -170,6 +170,7 @@ const JsonEditorVue = defineComponent({
170170
{
171171
camelizeObjectKeys: true,
172172
mergeFunction,
173+
mergeObject: 'shallow',
173174
type: Object,
174175
},
175176
)
@@ -240,6 +241,7 @@ const JsonEditorVue = defineComponent({
240241
? conclude([newAttrs, defaultFunctionAttrs], {
241242
camelizeObjectKeys: true,
242243
mergeFunction,
244+
mergeObject: 'shallow',
243245
type: Object,
244246
})
245247
: newAttrs,

0 commit comments

Comments
 (0)