@cabloy/vue-runtime-core 3.5.38 → 3.5.40
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/runtime-core.cjs.js
CHANGED
|
@@ -2018,7 +2018,10 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
2018
2018
|
}
|
|
2019
2019
|
}
|
|
2020
2020
|
if (shared.isFunction(ref)) {
|
|
2021
|
-
|
|
2021
|
+
const ignore = vnode.shapeFlag & 4 && vnode.component && vnode.component.type.inheritAttrs === false;
|
|
2022
|
+
if (!ignore) {
|
|
2023
|
+
callWithErrorHandling(ref, owner, 12, [value, refs]);
|
|
2024
|
+
}
|
|
2022
2025
|
} else {
|
|
2023
2026
|
const _isString = shared.isString(ref);
|
|
2024
2027
|
const _isRef = reactivity.isRef(ref);
|
|
@@ -5222,13 +5225,15 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5222
5225
|
}
|
|
5223
5226
|
};
|
|
5224
5227
|
const updateComponent = (n1, n2, optimized) => {
|
|
5228
|
+
let needUpdate;
|
|
5225
5229
|
if (n2.component !== n1.component) {
|
|
5226
5230
|
if (n1.component.zovaHostProviders !== n2.zovaHostProviders) {
|
|
5227
5231
|
n1.component.zovaHostProviders = n2.zovaHostProviders;
|
|
5232
|
+
needUpdate = true;
|
|
5228
5233
|
}
|
|
5229
5234
|
}
|
|
5230
5235
|
const instance = n2.component = n1.component;
|
|
5231
|
-
if (shouldUpdateComponent(n1, n2, optimized)) {
|
|
5236
|
+
if (needUpdate || shouldUpdateComponent(n1, n2, optimized)) {
|
|
5232
5237
|
if (instance.asyncDep && !instance.asyncResolved) {
|
|
5233
5238
|
{
|
|
5234
5239
|
pushWarningContext(n2);
|
|
@@ -1530,7 +1530,10 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
1532
1532
|
if (shared.isFunction(ref)) {
|
|
1533
|
-
|
|
1533
|
+
const ignore = vnode.shapeFlag & 4 && vnode.component && vnode.component.type.inheritAttrs === false;
|
|
1534
|
+
if (!ignore) {
|
|
1535
|
+
callWithErrorHandling(ref, owner, 12, [value, refs]);
|
|
1536
|
+
}
|
|
1534
1537
|
} else {
|
|
1535
1538
|
const _isString = shared.isString(ref);
|
|
1536
1539
|
const _isRef = reactivity.isRef(ref);
|
|
@@ -4006,13 +4009,15 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4006
4009
|
}
|
|
4007
4010
|
};
|
|
4008
4011
|
const updateComponent = (n1, n2, optimized) => {
|
|
4012
|
+
let needUpdate;
|
|
4009
4013
|
if (n2.component !== n1.component) {
|
|
4010
4014
|
if (n1.component.zovaHostProviders !== n2.zovaHostProviders) {
|
|
4011
4015
|
n1.component.zovaHostProviders = n2.zovaHostProviders;
|
|
4016
|
+
needUpdate = true;
|
|
4012
4017
|
}
|
|
4013
4018
|
}
|
|
4014
4019
|
const instance = n2.component = n1.component;
|
|
4015
|
-
if (shouldUpdateComponent(n1, n2, optimized)) {
|
|
4020
|
+
if (needUpdate || shouldUpdateComponent(n1, n2, optimized)) {
|
|
4016
4021
|
if (instance.asyncDep && !instance.asyncResolved) {
|
|
4017
4022
|
updateComponentPreRender(instance, n2, optimized);
|
|
4018
4023
|
return;
|
|
@@ -2022,7 +2022,10 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
2022
2022
|
}
|
|
2023
2023
|
}
|
|
2024
2024
|
if (isFunction(ref)) {
|
|
2025
|
-
|
|
2025
|
+
const ignore = vnode.shapeFlag & 4 && vnode.component && vnode.component.type.inheritAttrs === false;
|
|
2026
|
+
if (!ignore) {
|
|
2027
|
+
callWithErrorHandling(ref, owner, 12, [value, refs]);
|
|
2028
|
+
}
|
|
2026
2029
|
} else {
|
|
2027
2030
|
const _isString = isString(ref);
|
|
2028
2031
|
const _isRef = isRef(ref);
|
|
@@ -5279,13 +5282,15 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5279
5282
|
}
|
|
5280
5283
|
};
|
|
5281
5284
|
const updateComponent = (n1, n2, optimized) => {
|
|
5285
|
+
let needUpdate;
|
|
5282
5286
|
if (n2.component !== n1.component) {
|
|
5283
5287
|
if (n1.component.zovaHostProviders !== n2.zovaHostProviders) {
|
|
5284
5288
|
n1.component.zovaHostProviders = n2.zovaHostProviders;
|
|
5289
|
+
needUpdate = true;
|
|
5285
5290
|
}
|
|
5286
5291
|
}
|
|
5287
5292
|
const instance = n2.component = n1.component;
|
|
5288
|
-
if (shouldUpdateComponent(n1, n2, optimized)) {
|
|
5293
|
+
if (needUpdate || shouldUpdateComponent(n1, n2, optimized)) {
|
|
5289
5294
|
if (instance.asyncDep && !instance.asyncResolved) {
|
|
5290
5295
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
5291
5296
|
pushWarningContext(n2);
|