vue 3.4.23 → 3.4.24
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 +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.esm-browser.js +43 -39
- package/dist/vue.esm-browser.prod.js +4 -4
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +43 -39
- package/dist/vue.global.prod.js +4 -4
- package/dist/vue.runtime.esm-browser.js +28 -25
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +28 -25
- package/dist/vue.runtime.global.prod.js +4 -4
- package/package.json +6 -6
package/dist/vue.cjs.js
CHANGED
package/dist/vue.cjs.prod.js
CHANGED
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.4.
|
|
2
|
+
* vue v3.4.24
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2421,21 +2421,21 @@ function renderComponentRoot(instance) {
|
|
|
2421
2421
|
vnode,
|
|
2422
2422
|
proxy,
|
|
2423
2423
|
withProxy,
|
|
2424
|
-
props,
|
|
2425
2424
|
propsOptions: [propsOptions],
|
|
2426
2425
|
slots,
|
|
2427
2426
|
attrs,
|
|
2428
2427
|
emit,
|
|
2429
2428
|
render,
|
|
2430
2429
|
renderCache,
|
|
2430
|
+
props,
|
|
2431
2431
|
data,
|
|
2432
2432
|
setupState,
|
|
2433
2433
|
ctx,
|
|
2434
2434
|
inheritAttrs
|
|
2435
2435
|
} = instance;
|
|
2436
|
+
const prev = setCurrentRenderingInstance(instance);
|
|
2436
2437
|
let result;
|
|
2437
2438
|
let fallthroughAttrs;
|
|
2438
|
-
const prev = setCurrentRenderingInstance(instance);
|
|
2439
2439
|
{
|
|
2440
2440
|
accessedAttrs = false;
|
|
2441
2441
|
}
|
|
@@ -2457,7 +2457,7 @@ function renderComponentRoot(instance) {
|
|
|
2457
2457
|
thisProxy,
|
|
2458
2458
|
proxyToUse,
|
|
2459
2459
|
renderCache,
|
|
2460
|
-
props,
|
|
2460
|
+
true ? shallowReadonly(props) : props,
|
|
2461
2461
|
setupState,
|
|
2462
2462
|
data,
|
|
2463
2463
|
ctx
|
|
@@ -2471,7 +2471,7 @@ function renderComponentRoot(instance) {
|
|
|
2471
2471
|
}
|
|
2472
2472
|
result = normalizeVNode(
|
|
2473
2473
|
render2.length > 1 ? render2(
|
|
2474
|
-
props,
|
|
2474
|
+
true ? shallowReadonly(props) : props,
|
|
2475
2475
|
true ? {
|
|
2476
2476
|
get attrs() {
|
|
2477
2477
|
markAttrsAccessed();
|
|
@@ -2481,9 +2481,8 @@ function renderComponentRoot(instance) {
|
|
|
2481
2481
|
emit
|
|
2482
2482
|
} : { attrs, slots, emit }
|
|
2483
2483
|
) : render2(
|
|
2484
|
-
props,
|
|
2484
|
+
true ? shallowReadonly(props) : props,
|
|
2485
2485
|
null
|
|
2486
|
-
/* we know it doesn't need it */
|
|
2487
2486
|
)
|
|
2488
2487
|
);
|
|
2489
2488
|
fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
|
|
@@ -3950,11 +3949,19 @@ function emptyPlaceholder(vnode) {
|
|
|
3950
3949
|
}
|
|
3951
3950
|
}
|
|
3952
3951
|
function getKeepAliveChild(vnode) {
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3952
|
+
if (!isKeepAlive(vnode)) {
|
|
3953
|
+
return vnode;
|
|
3954
|
+
}
|
|
3955
|
+
if (vnode.component) {
|
|
3956
|
+
return vnode.component.subTree;
|
|
3957
|
+
}
|
|
3958
|
+
const { shapeFlag, children } = vnode;
|
|
3959
|
+
if (shapeFlag & 16) {
|
|
3960
|
+
return children[0];
|
|
3961
|
+
}
|
|
3962
|
+
if (shapeFlag & 32 && isFunction(children.default)) {
|
|
3963
|
+
return children.default();
|
|
3964
|
+
}
|
|
3958
3965
|
}
|
|
3959
3966
|
function setTransitionHooks(vnode, hooks) {
|
|
3960
3967
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
@@ -6006,21 +6013,17 @@ const normalizeVNodeSlots = (instance, children) => {
|
|
|
6006
6013
|
instance.slots.default = () => normalized;
|
|
6007
6014
|
};
|
|
6008
6015
|
const initSlots = (instance, children) => {
|
|
6016
|
+
const slots = instance.slots = createInternalObject();
|
|
6009
6017
|
if (instance.vnode.shapeFlag & 32) {
|
|
6010
6018
|
const type = children._;
|
|
6011
6019
|
if (type) {
|
|
6012
|
-
|
|
6013
|
-
def(
|
|
6020
|
+
extend(slots, children);
|
|
6021
|
+
def(slots, "_", type);
|
|
6014
6022
|
} else {
|
|
6015
|
-
normalizeObjectSlots(
|
|
6016
|
-
children,
|
|
6017
|
-
instance.slots = createInternalObject());
|
|
6018
|
-
}
|
|
6019
|
-
} else {
|
|
6020
|
-
instance.slots = createInternalObject();
|
|
6021
|
-
if (children) {
|
|
6022
|
-
normalizeVNodeSlots(instance, children);
|
|
6023
|
+
normalizeObjectSlots(children, slots);
|
|
6023
6024
|
}
|
|
6025
|
+
} else if (children) {
|
|
6026
|
+
normalizeVNodeSlots(instance, children);
|
|
6024
6027
|
}
|
|
6025
6028
|
};
|
|
6026
6029
|
const updateSlots = (instance, children, optimized) => {
|
|
@@ -9614,7 +9617,7 @@ function isMemoSame(cached, memo) {
|
|
|
9614
9617
|
return true;
|
|
9615
9618
|
}
|
|
9616
9619
|
|
|
9617
|
-
const version = "3.4.
|
|
9620
|
+
const version = "3.4.24";
|
|
9618
9621
|
const warn = warn$1 ;
|
|
9619
9622
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9620
9623
|
const devtools = devtools$1 ;
|
|
@@ -9810,8 +9813,8 @@ function resolveTransitionProps(rawProps) {
|
|
|
9810
9813
|
el._isLeaving = true;
|
|
9811
9814
|
const resolve = () => finishLeave(el, done);
|
|
9812
9815
|
addTransitionClass(el, leaveFromClass);
|
|
9813
|
-
forceReflow();
|
|
9814
9816
|
addTransitionClass(el, leaveActiveClass);
|
|
9817
|
+
forceReflow();
|
|
9815
9818
|
nextFrame(() => {
|
|
9816
9819
|
if (!el._isLeaving) {
|
|
9817
9820
|
return;
|
|
@@ -13694,6 +13697,7 @@ function createTransformContext(root, {
|
|
|
13694
13697
|
vOnce: 0
|
|
13695
13698
|
},
|
|
13696
13699
|
parent: null,
|
|
13700
|
+
grandParent: null,
|
|
13697
13701
|
currentNode: root,
|
|
13698
13702
|
childIndex: 0,
|
|
13699
13703
|
inVOnce: false,
|
|
@@ -13834,6 +13838,7 @@ function traverseChildren(parent, context) {
|
|
|
13834
13838
|
const child = parent.children[i];
|
|
13835
13839
|
if (isString(child))
|
|
13836
13840
|
continue;
|
|
13841
|
+
context.grandParent = context.parent;
|
|
13837
13842
|
context.parent = parent;
|
|
13838
13843
|
context.childIndex = i;
|
|
13839
13844
|
context.onNodeRemoved = nodeRemoved;
|
|
@@ -15393,6 +15398,16 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
|
|
|
15393
15398
|
if (arg)
|
|
15394
15399
|
mergeArgs.push(arg);
|
|
15395
15400
|
};
|
|
15401
|
+
const pushRefVForMarker = () => {
|
|
15402
|
+
if (context.scopes.vFor > 0) {
|
|
15403
|
+
properties.push(
|
|
15404
|
+
createObjectProperty(
|
|
15405
|
+
createSimpleExpression("ref_for", true),
|
|
15406
|
+
createSimpleExpression("true")
|
|
15407
|
+
)
|
|
15408
|
+
);
|
|
15409
|
+
}
|
|
15410
|
+
};
|
|
15396
15411
|
const analyzePatchFlag = ({ key, value }) => {
|
|
15397
15412
|
if (isStaticExp(key)) {
|
|
15398
15413
|
const name = key.content;
|
|
@@ -15436,14 +15451,7 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
|
|
|
15436
15451
|
let isStatic = true;
|
|
15437
15452
|
if (name === "ref") {
|
|
15438
15453
|
hasRef = true;
|
|
15439
|
-
|
|
15440
|
-
properties.push(
|
|
15441
|
-
createObjectProperty(
|
|
15442
|
-
createSimpleExpression("ref_for", true),
|
|
15443
|
-
createSimpleExpression("true")
|
|
15444
|
-
)
|
|
15445
|
-
);
|
|
15446
|
-
}
|
|
15454
|
+
pushRefVForMarker();
|
|
15447
15455
|
}
|
|
15448
15456
|
if (name === "is" && (isComponentTag(tag) || value && value.content.startsWith("vue:") || false)) {
|
|
15449
15457
|
continue;
|
|
@@ -15487,18 +15495,14 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
|
|
|
15487
15495
|
) {
|
|
15488
15496
|
shouldUseBlock = true;
|
|
15489
15497
|
}
|
|
15490
|
-
if (isVBind && isStaticArgOf(arg, "ref")
|
|
15491
|
-
|
|
15492
|
-
createObjectProperty(
|
|
15493
|
-
createSimpleExpression("ref_for", true),
|
|
15494
|
-
createSimpleExpression("true")
|
|
15495
|
-
)
|
|
15496
|
-
);
|
|
15498
|
+
if (isVBind && isStaticArgOf(arg, "ref")) {
|
|
15499
|
+
pushRefVForMarker();
|
|
15497
15500
|
}
|
|
15498
15501
|
if (!arg && (isVBind || isVOn)) {
|
|
15499
15502
|
hasDynamicKeys = true;
|
|
15500
15503
|
if (exp) {
|
|
15501
15504
|
if (isVBind) {
|
|
15505
|
+
pushRefVForMarker();
|
|
15502
15506
|
pushMergeArg();
|
|
15503
15507
|
mergeArgs.push(exp);
|
|
15504
15508
|
} else {
|