@vue/compat 3.4.10 → 3.4.12
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 +14 -6
- package/dist/vue.cjs.prod.js +5 -5
- package/dist/vue.esm-browser.js +13 -5
- package/dist/vue.esm-browser.prod.js +3 -3
- package/dist/vue.esm-bundler.js +13 -5
- package/dist/vue.global.js +13 -5
- package/dist/vue.global.prod.js +3 -3
- package/dist/vue.runtime.esm-browser.js +13 -5
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +13 -5
- package/dist/vue.runtime.global.js +13 -5
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.12
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2981,9 +2981,11 @@ function renderComponentRoot(instance) {
|
|
|
2981
2981
|
const getChildRoot = (vnode) => {
|
|
2982
2982
|
const rawChildren = vnode.children;
|
|
2983
2983
|
const dynamicChildren = vnode.dynamicChildren;
|
|
2984
|
-
const childRoot = filterSingleRoot(rawChildren);
|
|
2984
|
+
const childRoot = filterSingleRoot(rawChildren, false);
|
|
2985
2985
|
if (!childRoot) {
|
|
2986
2986
|
return [vnode, void 0];
|
|
2987
|
+
} else if (childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) {
|
|
2988
|
+
return getChildRoot(childRoot);
|
|
2987
2989
|
}
|
|
2988
2990
|
const index = rawChildren.indexOf(childRoot);
|
|
2989
2991
|
const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;
|
|
@@ -2999,7 +3001,7 @@ const getChildRoot = (vnode) => {
|
|
|
2999
3001
|
};
|
|
3000
3002
|
return [normalizeVNode(childRoot), setRoot];
|
|
3001
3003
|
};
|
|
3002
|
-
function filterSingleRoot(children) {
|
|
3004
|
+
function filterSingleRoot(children, recurse = true) {
|
|
3003
3005
|
let singleRoot;
|
|
3004
3006
|
for (let i = 0; i < children.length; i++) {
|
|
3005
3007
|
const child = children[i];
|
|
@@ -3009,6 +3011,9 @@ function filterSingleRoot(children) {
|
|
|
3009
3011
|
return;
|
|
3010
3012
|
} else {
|
|
3011
3013
|
singleRoot = child;
|
|
3014
|
+
if (recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) {
|
|
3015
|
+
return filterSingleRoot(singleRoot.children);
|
|
3016
|
+
}
|
|
3012
3017
|
}
|
|
3013
3018
|
}
|
|
3014
3019
|
} else {
|
|
@@ -6415,7 +6420,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6415
6420
|
return vm;
|
|
6416
6421
|
}
|
|
6417
6422
|
}
|
|
6418
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6423
|
+
Vue.version = `2.6.14-compat:${"3.4.12"}`;
|
|
6419
6424
|
Vue.config = singletonApp.config;
|
|
6420
6425
|
Vue.use = (p, ...options) => {
|
|
6421
6426
|
if (p && isFunction(p.install)) {
|
|
@@ -8165,6 +8170,9 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
8165
8170
|
if (isBooleanAttr(key)) {
|
|
8166
8171
|
actual = el.hasAttribute(key);
|
|
8167
8172
|
expected = includeBooleanAttr(clientValue);
|
|
8173
|
+
} else if (clientValue == null) {
|
|
8174
|
+
actual = el.hasAttribute(key);
|
|
8175
|
+
expected = false;
|
|
8168
8176
|
} else {
|
|
8169
8177
|
if (el.hasAttribute(key)) {
|
|
8170
8178
|
actual = el.getAttribute(key);
|
|
@@ -11227,7 +11235,7 @@ function isMemoSame(cached, memo) {
|
|
|
11227
11235
|
return true;
|
|
11228
11236
|
}
|
|
11229
11237
|
|
|
11230
|
-
const version = "3.4.
|
|
11238
|
+
const version = "3.4.12";
|
|
11231
11239
|
const warn = warn$1 ;
|
|
11232
11240
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11233
11241
|
const devtools = devtools$1 ;
|