Skip to content

Commit

Permalink
perf!: properties will now be shallowly merged
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Sep 6, 2024
1 parent eb76007 commit 0e340a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { debounce } from 'lodash-es'
import { JSONEditor, Mode } from 'vanilla-jsoneditor'
import { computed, defineComponent, getCurrentInstance, h, isVue3, onMounted, onUnmounted, ref, unref, watch, watchEffect } from 'vue-demi'
import type { App, Plugin, PropType } from 'vue-demi'
import { conclude, resolveConfig } from 'vue-global-config'
import type { App, Plugin, PropType } from 'vue-demi'
import { PascalCasedName as name } from '../package.json'

type SFCWithInstall<T> = T & Plugin
Expand Down Expand Up @@ -170,6 +170,7 @@ const JsonEditorVue = defineComponent({
{
camelizeObjectKeys: true,
mergeFunction,
mergeObject: 'shallow',
type: Object,
},
)
Expand Down Expand Up @@ -240,6 +241,7 @@ const JsonEditorVue = defineComponent({
? conclude([newAttrs, defaultFunctionAttrs], {
camelizeObjectKeys: true,
mergeFunction,
mergeObject: 'shallow',
type: Object,
})
: newAttrs,
Expand Down

0 comments on commit 0e340a7

Please sign in to comment.