vue 3.4.23 → 3.4.25
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 +46 -40
- package/dist/vue.esm-browser.prod.js +4 -4
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +46 -40
- package/dist/vue.global.prod.js +4 -4
- package/dist/vue.runtime.esm-browser.js +31 -26
- 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 +31 -26
- package/dist/vue.runtime.global.prod.js +4 -4
- package/package.json +6 -6
package/dist/vue.esm-bundler.js
CHANGED
package/dist/vue.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.4.
|
|
2
|
+
* vue v3.4.25
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2424,21 +2424,21 @@ getter: `, this.getter);
|
|
|
2424
2424
|
vnode,
|
|
2425
2425
|
proxy,
|
|
2426
2426
|
withProxy,
|
|
2427
|
-
props,
|
|
2428
2427
|
propsOptions: [propsOptions],
|
|
2429
2428
|
slots,
|
|
2430
2429
|
attrs,
|
|
2431
2430
|
emit,
|
|
2432
2431
|
render,
|
|
2433
2432
|
renderCache,
|
|
2433
|
+
props,
|
|
2434
2434
|
data,
|
|
2435
2435
|
setupState,
|
|
2436
2436
|
ctx,
|
|
2437
2437
|
inheritAttrs
|
|
2438
2438
|
} = instance;
|
|
2439
|
+
const prev = setCurrentRenderingInstance(instance);
|
|
2439
2440
|
let result;
|
|
2440
2441
|
let fallthroughAttrs;
|
|
2441
|
-
const prev = setCurrentRenderingInstance(instance);
|
|
2442
2442
|
{
|
|
2443
2443
|
accessedAttrs = false;
|
|
2444
2444
|
}
|
|
@@ -2460,7 +2460,7 @@ getter: `, this.getter);
|
|
|
2460
2460
|
thisProxy,
|
|
2461
2461
|
proxyToUse,
|
|
2462
2462
|
renderCache,
|
|
2463
|
-
props,
|
|
2463
|
+
true ? shallowReadonly(props) : props,
|
|
2464
2464
|
setupState,
|
|
2465
2465
|
data,
|
|
2466
2466
|
ctx
|
|
@@ -2474,7 +2474,7 @@ getter: `, this.getter);
|
|
|
2474
2474
|
}
|
|
2475
2475
|
result = normalizeVNode(
|
|
2476
2476
|
render2.length > 1 ? render2(
|
|
2477
|
-
props,
|
|
2477
|
+
true ? shallowReadonly(props) : props,
|
|
2478
2478
|
true ? {
|
|
2479
2479
|
get attrs() {
|
|
2480
2480
|
markAttrsAccessed();
|
|
@@ -2484,9 +2484,8 @@ getter: `, this.getter);
|
|
|
2484
2484
|
emit
|
|
2485
2485
|
} : { attrs, slots, emit }
|
|
2486
2486
|
) : render2(
|
|
2487
|
-
props,
|
|
2487
|
+
true ? shallowReadonly(props) : props,
|
|
2488
2488
|
null
|
|
2489
|
-
/* we know it doesn't need it */
|
|
2490
2489
|
)
|
|
2491
2490
|
);
|
|
2492
2491
|
fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
|
|
@@ -3947,11 +3946,21 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3947
3946
|
}
|
|
3948
3947
|
}
|
|
3949
3948
|
function getKeepAliveChild(vnode) {
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3949
|
+
if (!isKeepAlive(vnode)) {
|
|
3950
|
+
return vnode;
|
|
3951
|
+
}
|
|
3952
|
+
if (vnode.component) {
|
|
3953
|
+
return vnode.component.subTree;
|
|
3954
|
+
}
|
|
3955
|
+
const { shapeFlag, children } = vnode;
|
|
3956
|
+
if (children) {
|
|
3957
|
+
if (shapeFlag & 16) {
|
|
3958
|
+
return children[0];
|
|
3959
|
+
}
|
|
3960
|
+
if (shapeFlag & 32 && isFunction(children.default)) {
|
|
3961
|
+
return children.default();
|
|
3962
|
+
}
|
|
3963
|
+
}
|
|
3955
3964
|
}
|
|
3956
3965
|
function setTransitionHooks(vnode, hooks) {
|
|
3957
3966
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
@@ -5550,7 +5559,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
5550
5559
|
return !!(currentInstance || currentRenderingInstance || currentApp);
|
|
5551
5560
|
}
|
|
5552
5561
|
|
|
5553
|
-
const internalObjectProto =
|
|
5562
|
+
const internalObjectProto = {};
|
|
5554
5563
|
const createInternalObject = () => Object.create(internalObjectProto);
|
|
5555
5564
|
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
5556
5565
|
|
|
@@ -6003,21 +6012,17 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6003
6012
|
instance.slots.default = () => normalized;
|
|
6004
6013
|
};
|
|
6005
6014
|
const initSlots = (instance, children) => {
|
|
6015
|
+
const slots = instance.slots = createInternalObject();
|
|
6006
6016
|
if (instance.vnode.shapeFlag & 32) {
|
|
6007
6017
|
const type = children._;
|
|
6008
6018
|
if (type) {
|
|
6009
|
-
|
|
6010
|
-
def(
|
|
6019
|
+
extend(slots, children);
|
|
6020
|
+
def(slots, "_", type);
|
|
6011
6021
|
} else {
|
|
6012
|
-
normalizeObjectSlots(
|
|
6013
|
-
children,
|
|
6014
|
-
instance.slots = createInternalObject());
|
|
6015
|
-
}
|
|
6016
|
-
} else {
|
|
6017
|
-
instance.slots = createInternalObject();
|
|
6018
|
-
if (children) {
|
|
6019
|
-
normalizeVNodeSlots(instance, children);
|
|
6022
|
+
normalizeObjectSlots(children, slots);
|
|
6020
6023
|
}
|
|
6024
|
+
} else if (children) {
|
|
6025
|
+
normalizeVNodeSlots(instance, children);
|
|
6021
6026
|
}
|
|
6022
6027
|
};
|
|
6023
6028
|
const updateSlots = (instance, children, optimized) => {
|
|
@@ -9611,7 +9616,7 @@ Component that was made reactive: `,
|
|
|
9611
9616
|
return true;
|
|
9612
9617
|
}
|
|
9613
9618
|
|
|
9614
|
-
const version = "3.4.
|
|
9619
|
+
const version = "3.4.25";
|
|
9615
9620
|
const warn = warn$1 ;
|
|
9616
9621
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9617
9622
|
const devtools = devtools$1 ;
|
|
@@ -9807,8 +9812,8 @@ Component that was made reactive: `,
|
|
|
9807
9812
|
el._isLeaving = true;
|
|
9808
9813
|
const resolve = () => finishLeave(el, done);
|
|
9809
9814
|
addTransitionClass(el, leaveFromClass);
|
|
9810
|
-
forceReflow();
|
|
9811
9815
|
addTransitionClass(el, leaveActiveClass);
|
|
9816
|
+
forceReflow();
|
|
9812
9817
|
nextFrame(() => {
|
|
9813
9818
|
if (!el._isLeaving) {
|
|
9814
9819
|
return;
|
|
@@ -13517,6 +13522,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
13517
13522
|
vOnce: 0
|
|
13518
13523
|
},
|
|
13519
13524
|
parent: null,
|
|
13525
|
+
grandParent: null,
|
|
13520
13526
|
currentNode: root,
|
|
13521
13527
|
childIndex: 0,
|
|
13522
13528
|
inVOnce: false,
|
|
@@ -13657,6 +13663,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
13657
13663
|
const child = parent.children[i];
|
|
13658
13664
|
if (isString(child))
|
|
13659
13665
|
continue;
|
|
13666
|
+
context.grandParent = context.parent;
|
|
13660
13667
|
context.parent = parent;
|
|
13661
13668
|
context.childIndex = i;
|
|
13662
13669
|
context.onNodeRemoved = nodeRemoved;
|
|
@@ -15216,6 +15223,16 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
15216
15223
|
if (arg)
|
|
15217
15224
|
mergeArgs.push(arg);
|
|
15218
15225
|
};
|
|
15226
|
+
const pushRefVForMarker = () => {
|
|
15227
|
+
if (context.scopes.vFor > 0) {
|
|
15228
|
+
properties.push(
|
|
15229
|
+
createObjectProperty(
|
|
15230
|
+
createSimpleExpression("ref_for", true),
|
|
15231
|
+
createSimpleExpression("true")
|
|
15232
|
+
)
|
|
15233
|
+
);
|
|
15234
|
+
}
|
|
15235
|
+
};
|
|
15219
15236
|
const analyzePatchFlag = ({ key, value }) => {
|
|
15220
15237
|
if (isStaticExp(key)) {
|
|
15221
15238
|
const name = key.content;
|
|
@@ -15259,14 +15276,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
15259
15276
|
let isStatic = true;
|
|
15260
15277
|
if (name === "ref") {
|
|
15261
15278
|
hasRef = true;
|
|
15262
|
-
|
|
15263
|
-
properties.push(
|
|
15264
|
-
createObjectProperty(
|
|
15265
|
-
createSimpleExpression("ref_for", true),
|
|
15266
|
-
createSimpleExpression("true")
|
|
15267
|
-
)
|
|
15268
|
-
);
|
|
15269
|
-
}
|
|
15279
|
+
pushRefVForMarker();
|
|
15270
15280
|
}
|
|
15271
15281
|
if (name === "is" && (isComponentTag(tag) || value && value.content.startsWith("vue:") || false)) {
|
|
15272
15282
|
continue;
|
|
@@ -15310,18 +15320,14 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
15310
15320
|
) {
|
|
15311
15321
|
shouldUseBlock = true;
|
|
15312
15322
|
}
|
|
15313
|
-
if (isVBind && isStaticArgOf(arg, "ref")
|
|
15314
|
-
|
|
15315
|
-
createObjectProperty(
|
|
15316
|
-
createSimpleExpression("ref_for", true),
|
|
15317
|
-
createSimpleExpression("true")
|
|
15318
|
-
)
|
|
15319
|
-
);
|
|
15323
|
+
if (isVBind && isStaticArgOf(arg, "ref")) {
|
|
15324
|
+
pushRefVForMarker();
|
|
15320
15325
|
}
|
|
15321
15326
|
if (!arg && (isVBind || isVOn)) {
|
|
15322
15327
|
hasDynamicKeys = true;
|
|
15323
15328
|
if (exp) {
|
|
15324
15329
|
if (isVBind) {
|
|
15330
|
+
pushRefVForMarker();
|
|
15325
15331
|
pushMergeArg();
|
|
15326
15332
|
mergeArgs.push(exp);
|
|
15327
15333
|
} else {
|