@vue/runtime-dom 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/runtime-dom.cjs.js +2 -2
- package/dist/runtime-dom.cjs.prod.js +2 -2
- package/dist/runtime-dom.esm-browser.js +31 -26
- package/dist/runtime-dom.esm-browser.prod.js +3 -3
- package/dist/runtime-dom.esm-bundler.js +2 -2
- package/dist/runtime-dom.global.js +31 -26
- package/dist/runtime-dom.global.prod.js +4 -4
- package/package.json +3 -3
package/dist/runtime-dom.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.4.
|
|
2
|
+
* @vue/runtime-dom v3.4.25
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -196,8 +196,8 @@ function resolveTransitionProps(rawProps) {
|
|
|
196
196
|
el._isLeaving = true;
|
|
197
197
|
const resolve = () => finishLeave(el, done);
|
|
198
198
|
addTransitionClass(el, leaveFromClass);
|
|
199
|
-
forceReflow();
|
|
200
199
|
addTransitionClass(el, leaveActiveClass);
|
|
200
|
+
forceReflow();
|
|
201
201
|
nextFrame(() => {
|
|
202
202
|
if (!el._isLeaving) {
|
|
203
203
|
return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.4.
|
|
2
|
+
* @vue/runtime-dom v3.4.25
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -196,8 +196,8 @@ function resolveTransitionProps(rawProps) {
|
|
|
196
196
|
el._isLeaving = true;
|
|
197
197
|
const resolve = () => finishLeave(el, done);
|
|
198
198
|
addTransitionClass(el, leaveFromClass);
|
|
199
|
-
forceReflow();
|
|
200
199
|
addTransitionClass(el, leaveActiveClass);
|
|
200
|
+
forceReflow();
|
|
201
201
|
nextFrame(() => {
|
|
202
202
|
if (!el._isLeaving) {
|
|
203
203
|
return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.4.
|
|
2
|
+
* @vue/runtime-dom v3.4.25
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// @__NO_SIDE_EFFECTS__
|
|
8
8
|
function makeMap(str, expectsLowerCase) {
|
|
9
9
|
const set = new Set(str.split(","));
|
|
10
|
-
return
|
|
10
|
+
return (val) => set.has(val);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
const EMPTY_OBJ = Object.freeze({}) ;
|
|
@@ -2356,21 +2356,21 @@ function renderComponentRoot(instance) {
|
|
|
2356
2356
|
vnode,
|
|
2357
2357
|
proxy,
|
|
2358
2358
|
withProxy,
|
|
2359
|
-
props,
|
|
2360
2359
|
propsOptions: [propsOptions],
|
|
2361
2360
|
slots,
|
|
2362
2361
|
attrs,
|
|
2363
2362
|
emit,
|
|
2364
2363
|
render,
|
|
2365
2364
|
renderCache,
|
|
2365
|
+
props,
|
|
2366
2366
|
data,
|
|
2367
2367
|
setupState,
|
|
2368
2368
|
ctx,
|
|
2369
2369
|
inheritAttrs
|
|
2370
2370
|
} = instance;
|
|
2371
|
+
const prev = setCurrentRenderingInstance(instance);
|
|
2371
2372
|
let result;
|
|
2372
2373
|
let fallthroughAttrs;
|
|
2373
|
-
const prev = setCurrentRenderingInstance(instance);
|
|
2374
2374
|
{
|
|
2375
2375
|
accessedAttrs = false;
|
|
2376
2376
|
}
|
|
@@ -2392,7 +2392,7 @@ function renderComponentRoot(instance) {
|
|
|
2392
2392
|
thisProxy,
|
|
2393
2393
|
proxyToUse,
|
|
2394
2394
|
renderCache,
|
|
2395
|
-
props,
|
|
2395
|
+
true ? shallowReadonly(props) : props,
|
|
2396
2396
|
setupState,
|
|
2397
2397
|
data,
|
|
2398
2398
|
ctx
|
|
@@ -2406,7 +2406,7 @@ function renderComponentRoot(instance) {
|
|
|
2406
2406
|
}
|
|
2407
2407
|
result = normalizeVNode(
|
|
2408
2408
|
render2.length > 1 ? render2(
|
|
2409
|
-
props,
|
|
2409
|
+
true ? shallowReadonly(props) : props,
|
|
2410
2410
|
true ? {
|
|
2411
2411
|
get attrs() {
|
|
2412
2412
|
markAttrsAccessed();
|
|
@@ -2416,9 +2416,8 @@ function renderComponentRoot(instance) {
|
|
|
2416
2416
|
emit
|
|
2417
2417
|
} : { attrs, slots, emit }
|
|
2418
2418
|
) : render2(
|
|
2419
|
-
props,
|
|
2419
|
+
true ? shallowReadonly(props) : props,
|
|
2420
2420
|
null
|
|
2421
|
-
/* we know it doesn't need it */
|
|
2422
2421
|
)
|
|
2423
2422
|
);
|
|
2424
2423
|
fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
|
|
@@ -3885,11 +3884,21 @@ function emptyPlaceholder(vnode) {
|
|
|
3885
3884
|
}
|
|
3886
3885
|
}
|
|
3887
3886
|
function getKeepAliveChild(vnode) {
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3887
|
+
if (!isKeepAlive(vnode)) {
|
|
3888
|
+
return vnode;
|
|
3889
|
+
}
|
|
3890
|
+
if (vnode.component) {
|
|
3891
|
+
return vnode.component.subTree;
|
|
3892
|
+
}
|
|
3893
|
+
const { shapeFlag, children } = vnode;
|
|
3894
|
+
if (children) {
|
|
3895
|
+
if (shapeFlag & 16) {
|
|
3896
|
+
return children[0];
|
|
3897
|
+
}
|
|
3898
|
+
if (shapeFlag & 32 && isFunction(children.default)) {
|
|
3899
|
+
return children.default();
|
|
3900
|
+
}
|
|
3901
|
+
}
|
|
3893
3902
|
}
|
|
3894
3903
|
function setTransitionHooks(vnode, hooks) {
|
|
3895
3904
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
@@ -5488,7 +5497,7 @@ function hasInjectionContext() {
|
|
|
5488
5497
|
return !!(currentInstance || currentRenderingInstance || currentApp);
|
|
5489
5498
|
}
|
|
5490
5499
|
|
|
5491
|
-
const internalObjectProto =
|
|
5500
|
+
const internalObjectProto = {};
|
|
5492
5501
|
const createInternalObject = () => Object.create(internalObjectProto);
|
|
5493
5502
|
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
5494
5503
|
|
|
@@ -5941,21 +5950,17 @@ const normalizeVNodeSlots = (instance, children) => {
|
|
|
5941
5950
|
instance.slots.default = () => normalized;
|
|
5942
5951
|
};
|
|
5943
5952
|
const initSlots = (instance, children) => {
|
|
5953
|
+
const slots = instance.slots = createInternalObject();
|
|
5944
5954
|
if (instance.vnode.shapeFlag & 32) {
|
|
5945
5955
|
const type = children._;
|
|
5946
5956
|
if (type) {
|
|
5947
|
-
|
|
5948
|
-
def(
|
|
5957
|
+
extend(slots, children);
|
|
5958
|
+
def(slots, "_", type);
|
|
5949
5959
|
} else {
|
|
5950
|
-
normalizeObjectSlots(
|
|
5951
|
-
children,
|
|
5952
|
-
instance.slots = createInternalObject());
|
|
5953
|
-
}
|
|
5954
|
-
} else {
|
|
5955
|
-
instance.slots = createInternalObject();
|
|
5956
|
-
if (children) {
|
|
5957
|
-
normalizeVNodeSlots(instance, children);
|
|
5960
|
+
normalizeObjectSlots(children, slots);
|
|
5958
5961
|
}
|
|
5962
|
+
} else if (children) {
|
|
5963
|
+
normalizeVNodeSlots(instance, children);
|
|
5959
5964
|
}
|
|
5960
5965
|
};
|
|
5961
5966
|
const updateSlots = (instance, children, optimized) => {
|
|
@@ -9549,7 +9554,7 @@ function isMemoSame(cached, memo) {
|
|
|
9549
9554
|
return true;
|
|
9550
9555
|
}
|
|
9551
9556
|
|
|
9552
|
-
const version = "3.4.
|
|
9557
|
+
const version = "3.4.25";
|
|
9553
9558
|
const warn = warn$1 ;
|
|
9554
9559
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9555
9560
|
const devtools = devtools$1 ;
|
|
@@ -9745,8 +9750,8 @@ function resolveTransitionProps(rawProps) {
|
|
|
9745
9750
|
el._isLeaving = true;
|
|
9746
9751
|
const resolve = () => finishLeave(el, done);
|
|
9747
9752
|
addTransitionClass(el, leaveFromClass);
|
|
9748
|
-
forceReflow();
|
|
9749
9753
|
addTransitionClass(el, leaveActiveClass);
|
|
9754
|
+
forceReflow();
|
|
9750
9755
|
nextFrame(() => {
|
|
9751
9756
|
if (!el._isLeaving) {
|
|
9752
9757
|
return;
|