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(
() => props.initOptions || unref(defaultInitOptions) || {}
);
const realUpdateOptions = computed(
() => props.updateOptions || unref(defaultUpdateOptions) || {}
);
const realUpdateOptions = computed(() => ({
...(props.updateOptions || unref(defaultUpdateOptions) || {}),
notMerge: true
}));
const nonEventAttrs = computed(() => omitOn(attrs));
function init(option?: Option) {