@vue/compat 3.4.33 → 3.4.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue.cjs.js +6 -6
- package/dist/vue.cjs.prod.js +6 -6
- package/dist/vue.esm-browser.js +6 -6
- package/dist/vue.esm-browser.prod.js +2 -2
- package/dist/vue.esm-bundler.js +6 -6
- package/dist/vue.global.js +6 -6
- package/dist/vue.global.prod.js +2 -2
- package/dist/vue.runtime.esm-browser.js +6 -6
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +6 -6
- package/dist/vue.runtime.global.js +6 -6
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.34
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -5179,7 +5179,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5179
5179
|
return vm;
|
|
5180
5180
|
}
|
|
5181
5181
|
}
|
|
5182
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
5182
|
+
Vue.version = `2.6.14-compat:${"3.4.34"}`;
|
|
5183
5183
|
Vue.config = singletonApp.config;
|
|
5184
5184
|
Vue.use = (plugin, ...options) => {
|
|
5185
5185
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9153,7 +9153,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
9153
9153
|
const modifiers = getModelModifiers(props, name);
|
|
9154
9154
|
const res = customRef((track, trigger) => {
|
|
9155
9155
|
let localValue;
|
|
9156
|
-
let prevSetValue;
|
|
9156
|
+
let prevSetValue = EMPTY_OBJ;
|
|
9157
9157
|
let prevEmittedValue;
|
|
9158
9158
|
watchSyncEffect(() => {
|
|
9159
9159
|
const propValue = props[name];
|
|
@@ -9168,7 +9168,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
9168
9168
|
return options.get ? options.get(localValue) : localValue;
|
|
9169
9169
|
},
|
|
9170
9170
|
set(value) {
|
|
9171
|
-
if (!hasChanged(value, localValue)) {
|
|
9171
|
+
if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
|
|
9172
9172
|
return;
|
|
9173
9173
|
}
|
|
9174
9174
|
const rawProps = i.vnode.props;
|
|
@@ -9179,7 +9179,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
9179
9179
|
}
|
|
9180
9180
|
const emittedValue = options.set ? options.set(value) : value;
|
|
9181
9181
|
i.emit(`update:${name}`, emittedValue);
|
|
9182
|
-
if (value
|
|
9182
|
+
if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
|
|
9183
9183
|
trigger();
|
|
9184
9184
|
}
|
|
9185
9185
|
prevSetValue = value;
|
|
@@ -11350,7 +11350,7 @@ function isMemoSame(cached, memo) {
|
|
|
11350
11350
|
return true;
|
|
11351
11351
|
}
|
|
11352
11352
|
|
|
11353
|
-
const version = "3.4.
|
|
11353
|
+
const version = "3.4.34";
|
|
11354
11354
|
const warn = warn$1 ;
|
|
11355
11355
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11356
11356
|
const devtools = devtools$1 ;
|