fix: update should always have notMerge: true

This commit is contained in:
Justineo
2022-01-14 18:58:54 +08:00
parent 157a66b75f
commit 7aa9edca96

View File

@ -86,9 +86,10 @@ export default defineComponent({
const realInitOptions = computed( const realInitOptions = computed(
() => props.initOptions || unref(defaultInitOptions) || {} () => props.initOptions || unref(defaultInitOptions) || {}
); );
const realUpdateOptions = computed( const realUpdateOptions = computed(() => ({
() => props.updateOptions || unref(defaultUpdateOptions) || {} ...(props.updateOptions || unref(defaultUpdateOptions) || {}),
); notMerge: true
}));
const nonEventAttrs = computed(() => omitOn(attrs)); const nonEventAttrs = computed(() => omitOn(attrs));
function init(option?: Option) { function init(option?: Option) {