@vue/runtime-dom 3.4.22 → 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/runtime-dom.cjs.js +2 -2
- package/dist/runtime-dom.cjs.prod.js +2 -2
- package/dist/runtime-dom.esm-browser.js +36 -30
- package/dist/runtime-dom.esm-browser.prod.js +5 -5
- package/dist/runtime-dom.esm-bundler.js +2 -2
- package/dist/runtime-dom.global.js +36 -30
- package/dist/runtime-dom.global.prod.js +5 -5
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.4.
|
|
2
|
+
* @vue/runtime-dom v3.4.24
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -10,7 +10,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
10
10
|
// @__NO_SIDE_EFFECTS__
|
|
11
11
|
function makeMap(str, expectsLowerCase) {
|
|
12
12
|
const set = new Set(str.split(","));
|
|
13
|
-
return
|
|
13
|
+
return (val) => set.has(val);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
const EMPTY_OBJ = Object.freeze({}) ;
|
|
@@ -2359,21 +2359,21 @@ getter: `, this.getter);
|
|
|
2359
2359
|
vnode,
|
|
2360
2360
|
proxy,
|
|
2361
2361
|
withProxy,
|
|
2362
|
-
props,
|
|
2363
2362
|
propsOptions: [propsOptions],
|
|
2364
2363
|
slots,
|
|
2365
2364
|
attrs,
|
|
2366
2365
|
emit,
|
|
2367
2366
|
render,
|
|
2368
2367
|
renderCache,
|
|
2368
|
+
props,
|
|
2369
2369
|
data,
|
|
2370
2370
|
setupState,
|
|
2371
2371
|
ctx,
|
|
2372
2372
|
inheritAttrs
|
|
2373
2373
|
} = instance;
|
|
2374
|
+
const prev = setCurrentRenderingInstance(instance);
|
|
2374
2375
|
let result;
|
|
2375
2376
|
let fallthroughAttrs;
|
|
2376
|
-
const prev = setCurrentRenderingInstance(instance);
|
|
2377
2377
|
{
|
|
2378
2378
|
accessedAttrs = false;
|
|
2379
2379
|
}
|
|
@@ -2395,7 +2395,7 @@ getter: `, this.getter);
|
|
|
2395
2395
|
thisProxy,
|
|
2396
2396
|
proxyToUse,
|
|
2397
2397
|
renderCache,
|
|
2398
|
-
props,
|
|
2398
|
+
true ? shallowReadonly(props) : props,
|
|
2399
2399
|
setupState,
|
|
2400
2400
|
data,
|
|
2401
2401
|
ctx
|
|
@@ -2409,7 +2409,7 @@ getter: `, this.getter);
|
|
|
2409
2409
|
}
|
|
2410
2410
|
result = normalizeVNode(
|
|
2411
2411
|
render2.length > 1 ? render2(
|
|
2412
|
-
props,
|
|
2412
|
+
true ? shallowReadonly(props) : props,
|
|
2413
2413
|
true ? {
|
|
2414
2414
|
get attrs() {
|
|
2415
2415
|
markAttrsAccessed();
|
|
@@ -2419,9 +2419,8 @@ getter: `, this.getter);
|
|
|
2419
2419
|
emit
|
|
2420
2420
|
} : { attrs, slots, emit }
|
|
2421
2421
|
) : render2(
|
|
2422
|
-
props,
|
|
2422
|
+
true ? shallowReadonly(props) : props,
|
|
2423
2423
|
null
|
|
2424
|
-
/* we know it doesn't need it */
|
|
2425
2424
|
)
|
|
2426
2425
|
);
|
|
2427
2426
|
fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
|
|
@@ -3882,11 +3881,19 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3882
3881
|
}
|
|
3883
3882
|
}
|
|
3884
3883
|
function getKeepAliveChild(vnode) {
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3884
|
+
if (!isKeepAlive(vnode)) {
|
|
3885
|
+
return vnode;
|
|
3886
|
+
}
|
|
3887
|
+
if (vnode.component) {
|
|
3888
|
+
return vnode.component.subTree;
|
|
3889
|
+
}
|
|
3890
|
+
const { shapeFlag, children } = vnode;
|
|
3891
|
+
if (shapeFlag & 16) {
|
|
3892
|
+
return children[0];
|
|
3893
|
+
}
|
|
3894
|
+
if (shapeFlag & 32 && isFunction(children.default)) {
|
|
3895
|
+
return children.default();
|
|
3896
|
+
}
|
|
3890
3897
|
}
|
|
3891
3898
|
function setTransitionHooks(vnode, hooks) {
|
|
3892
3899
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
@@ -4560,7 +4567,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
4560
4567
|
let cssModule, globalProperties;
|
|
4561
4568
|
if (publicGetter) {
|
|
4562
4569
|
if (key === "$attrs") {
|
|
4563
|
-
track(instance, "get",
|
|
4570
|
+
track(instance.attrs, "get", "");
|
|
4564
4571
|
markAttrsAccessed();
|
|
4565
4572
|
} else if (key === "$slots") {
|
|
4566
4573
|
track(instance, "get", key);
|
|
@@ -5485,10 +5492,13 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
5485
5492
|
return !!(currentInstance || currentRenderingInstance || currentApp);
|
|
5486
5493
|
}
|
|
5487
5494
|
|
|
5488
|
-
const
|
|
5495
|
+
const internalObjectProto = /* @__PURE__ */ Object.create(null);
|
|
5496
|
+
const createInternalObject = () => Object.create(internalObjectProto);
|
|
5497
|
+
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
5498
|
+
|
|
5489
5499
|
function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
5490
5500
|
const props = {};
|
|
5491
|
-
const attrs =
|
|
5501
|
+
const attrs = createInternalObject();
|
|
5492
5502
|
instance.propsDefaults = /* @__PURE__ */ Object.create(null);
|
|
5493
5503
|
setFullProps(instance, rawProps, props, attrs);
|
|
5494
5504
|
for (const key in instance.propsOptions[0]) {
|
|
@@ -5935,21 +5945,17 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
5935
5945
|
instance.slots.default = () => normalized;
|
|
5936
5946
|
};
|
|
5937
5947
|
const initSlots = (instance, children) => {
|
|
5948
|
+
const slots = instance.slots = createInternalObject();
|
|
5938
5949
|
if (instance.vnode.shapeFlag & 32) {
|
|
5939
5950
|
const type = children._;
|
|
5940
5951
|
if (type) {
|
|
5941
|
-
|
|
5942
|
-
def(
|
|
5952
|
+
extend(slots, children);
|
|
5953
|
+
def(slots, "_", type);
|
|
5943
5954
|
} else {
|
|
5944
|
-
normalizeObjectSlots(
|
|
5945
|
-
children,
|
|
5946
|
-
instance.slots = {});
|
|
5947
|
-
}
|
|
5948
|
-
} else {
|
|
5949
|
-
instance.slots = {};
|
|
5950
|
-
if (children) {
|
|
5951
|
-
normalizeVNodeSlots(instance, children);
|
|
5955
|
+
normalizeObjectSlots(children, slots);
|
|
5952
5956
|
}
|
|
5957
|
+
} else if (children) {
|
|
5958
|
+
normalizeVNodeSlots(instance, children);
|
|
5953
5959
|
}
|
|
5954
5960
|
};
|
|
5955
5961
|
const updateSlots = (instance, children, optimized) => {
|
|
@@ -8689,7 +8695,7 @@ Component that was made reactive: `,
|
|
|
8689
8695
|
function guardReactiveProps(props) {
|
|
8690
8696
|
if (!props)
|
|
8691
8697
|
return null;
|
|
8692
|
-
return isProxy(props) ||
|
|
8698
|
+
return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
8693
8699
|
}
|
|
8694
8700
|
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
8695
8701
|
const { props, ref, patchFlag, children } = vnode;
|
|
@@ -8794,7 +8800,7 @@ Component that was made reactive: `,
|
|
|
8794
8800
|
} else {
|
|
8795
8801
|
type = 32;
|
|
8796
8802
|
const slotFlag = children._;
|
|
8797
|
-
if (!slotFlag) {
|
|
8803
|
+
if (!slotFlag && !isInternalObject(children)) {
|
|
8798
8804
|
children._ctx = currentRenderingInstance;
|
|
8799
8805
|
} else if (slotFlag === 3 && currentRenderingInstance) {
|
|
8800
8806
|
if (currentRenderingInstance.slots._ === 1) {
|
|
@@ -9543,7 +9549,7 @@ Component that was made reactive: `,
|
|
|
9543
9549
|
return true;
|
|
9544
9550
|
}
|
|
9545
9551
|
|
|
9546
|
-
const version = "3.4.
|
|
9552
|
+
const version = "3.4.24";
|
|
9547
9553
|
const warn = warn$1 ;
|
|
9548
9554
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9549
9555
|
const devtools = devtools$1 ;
|
|
@@ -9739,8 +9745,8 @@ Component that was made reactive: `,
|
|
|
9739
9745
|
el._isLeaving = true;
|
|
9740
9746
|
const resolve = () => finishLeave(el, done);
|
|
9741
9747
|
addTransitionClass(el, leaveFromClass);
|
|
9742
|
-
forceReflow();
|
|
9743
9748
|
addTransitionClass(el, leaveActiveClass);
|
|
9749
|
+
forceReflow();
|
|
9744
9750
|
nextFrame(() => {
|
|
9745
9751
|
if (!el._isLeaving) {
|
|
9746
9752
|
return;
|