@cabloy/vue-runtime-core 3.4.27 → 3.4.28
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 +24 -26
- package/dist/runtime-core.cjs.prod.js +24 -26
- package/dist/runtime-core.d.ts +3 -2
- package/dist/runtime-core.esm-bundler.js +24 -26
- package/package.json +3 -3
package/dist/runtime-core.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @cabloy/vue-runtime-core v3.4.
|
|
2
|
+
* @cabloy/vue-runtime-core v3.4.26
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -906,7 +906,7 @@ function renderComponentRoot(instance) {
|
|
|
906
906
|
true ? {
|
|
907
907
|
get attrs() {
|
|
908
908
|
markAttrsAccessed();
|
|
909
|
-
return attrs;
|
|
909
|
+
return reactivity.shallowReadonly(attrs);
|
|
910
910
|
},
|
|
911
911
|
slots,
|
|
912
912
|
emit
|
|
@@ -939,7 +939,7 @@ function renderComponentRoot(instance) {
|
|
|
939
939
|
propsOptions
|
|
940
940
|
);
|
|
941
941
|
}
|
|
942
|
-
root = cloneVNode(root, fallthroughAttrs);
|
|
942
|
+
root = cloneVNode(root, fallthroughAttrs, false, true);
|
|
943
943
|
} else if (!accessedAttrs && root.type !== Comment) {
|
|
944
944
|
const allAttrs = Object.keys(attrs);
|
|
945
945
|
const eventAttrs = [];
|
|
@@ -973,7 +973,7 @@ function renderComponentRoot(instance) {
|
|
|
973
973
|
`Runtime directive used on component with non-element root node. The directives will not function as intended.`
|
|
974
974
|
);
|
|
975
975
|
}
|
|
976
|
-
root = cloneVNode(root);
|
|
976
|
+
root = cloneVNode(root, null, false, true);
|
|
977
977
|
root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
978
978
|
}
|
|
979
979
|
if (vnode.transition) {
|
|
@@ -1464,7 +1464,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
1464
1464
|
let parentSuspenseId;
|
|
1465
1465
|
const isSuspensible = isVNodeSuspensible(vnode);
|
|
1466
1466
|
if (isSuspensible) {
|
|
1467
|
-
if (parentSuspense
|
|
1467
|
+
if (parentSuspense && parentSuspense.pendingBranch) {
|
|
1468
1468
|
parentSuspenseId = parentSuspense.pendingId;
|
|
1469
1469
|
parentSuspense.deps++;
|
|
1470
1470
|
}
|
|
@@ -1776,8 +1776,8 @@ function setActiveBranch(suspense, branch) {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
}
|
|
1778
1778
|
function isVNodeSuspensible(vnode) {
|
|
1779
|
-
|
|
1780
|
-
return
|
|
1779
|
+
const suspensible = vnode.props && vnode.props.suspensible;
|
|
1780
|
+
return suspensible != null && suspensible !== false;
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
1783
1783
|
const ssrContextKey = Symbol.for("v-scx");
|
|
@@ -2031,34 +2031,29 @@ function createPathGetter(ctx, path) {
|
|
|
2031
2031
|
return cur;
|
|
2032
2032
|
};
|
|
2033
2033
|
}
|
|
2034
|
-
function traverse(value, depth
|
|
2035
|
-
if (!shared.isObject(value) || value["__v_skip"]) {
|
|
2034
|
+
function traverse(value, depth = Infinity, seen) {
|
|
2035
|
+
if (depth <= 0 || !shared.isObject(value) || value["__v_skip"]) {
|
|
2036
2036
|
return value;
|
|
2037
2037
|
}
|
|
2038
|
-
if (depth && depth > 0) {
|
|
2039
|
-
if (currentDepth >= depth) {
|
|
2040
|
-
return value;
|
|
2041
|
-
}
|
|
2042
|
-
currentDepth++;
|
|
2043
|
-
}
|
|
2044
2038
|
seen = seen || /* @__PURE__ */ new Set();
|
|
2045
2039
|
if (seen.has(value)) {
|
|
2046
2040
|
return value;
|
|
2047
2041
|
}
|
|
2048
2042
|
seen.add(value);
|
|
2043
|
+
depth--;
|
|
2049
2044
|
if (reactivity.isRef(value)) {
|
|
2050
|
-
traverse(value.value, depth,
|
|
2045
|
+
traverse(value.value, depth, seen);
|
|
2051
2046
|
} else if (shared.isArray(value)) {
|
|
2052
2047
|
for (let i = 0; i < value.length; i++) {
|
|
2053
|
-
traverse(value[i], depth,
|
|
2048
|
+
traverse(value[i], depth, seen);
|
|
2054
2049
|
}
|
|
2055
2050
|
} else if (shared.isSet(value) || shared.isMap(value)) {
|
|
2056
2051
|
value.forEach((v) => {
|
|
2057
|
-
traverse(v, depth,
|
|
2052
|
+
traverse(v, depth, seen);
|
|
2058
2053
|
});
|
|
2059
2054
|
} else if (shared.isPlainObject(value)) {
|
|
2060
2055
|
for (const key in value) {
|
|
2061
|
-
traverse(value[key], depth,
|
|
2056
|
+
traverse(value[key], depth, seen);
|
|
2062
2057
|
}
|
|
2063
2058
|
}
|
|
2064
2059
|
return value;
|
|
@@ -2216,7 +2211,7 @@ const BaseTransitionImpl = {
|
|
|
2216
2211
|
instance
|
|
2217
2212
|
);
|
|
2218
2213
|
setTransitionHooks(oldInnerChild, leavingHooks);
|
|
2219
|
-
if (mode === "out-in") {
|
|
2214
|
+
if (mode === "out-in" && innerChild.type !== Comment) {
|
|
2220
2215
|
state.isLeaving = true;
|
|
2221
2216
|
leavingHooks.afterLeave = () => {
|
|
2222
2217
|
state.isLeaving = false;
|
|
@@ -2737,7 +2732,7 @@ const KeepAliveImpl = {
|
|
|
2737
2732
|
return () => {
|
|
2738
2733
|
pendingCacheKey = null;
|
|
2739
2734
|
if (!slots.default) {
|
|
2740
|
-
return
|
|
2735
|
+
return null;
|
|
2741
2736
|
}
|
|
2742
2737
|
const children = slots.default();
|
|
2743
2738
|
const rawVNode = children[0];
|
|
@@ -4478,7 +4473,7 @@ const initSlots = (instance, children) => {
|
|
|
4478
4473
|
const type = children._;
|
|
4479
4474
|
if (type) {
|
|
4480
4475
|
shared.extend(slots, children);
|
|
4481
|
-
shared.def(slots, "_", type);
|
|
4476
|
+
shared.def(slots, "_", type, true);
|
|
4482
4477
|
} else {
|
|
4483
4478
|
normalizeObjectSlots(children, slots);
|
|
4484
4479
|
}
|
|
@@ -7225,8 +7220,8 @@ function guardReactiveProps(props) {
|
|
|
7225
7220
|
return null;
|
|
7226
7221
|
return reactivity.isProxy(props) || isInternalObject(props) ? shared.extend({}, props) : props;
|
|
7227
7222
|
}
|
|
7228
|
-
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
7229
|
-
const { props, ref, patchFlag, children } = vnode;
|
|
7223
|
+
function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
|
|
7224
|
+
const { props, ref, patchFlag, children, transition } = vnode;
|
|
7230
7225
|
const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
|
|
7231
7226
|
const cloned = {
|
|
7232
7227
|
__v_isVNode: true,
|
|
@@ -7256,7 +7251,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
|
7256
7251
|
dynamicChildren: vnode.dynamicChildren,
|
|
7257
7252
|
appContext: vnode.appContext,
|
|
7258
7253
|
dirs: vnode.dirs,
|
|
7259
|
-
transition
|
|
7254
|
+
transition,
|
|
7260
7255
|
// These should technically only be non-null on mounted VNodes. However,
|
|
7261
7256
|
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
7262
7257
|
// them since them being non-null during a mount doesn't affect the logic as
|
|
@@ -7270,6 +7265,9 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
|
7270
7265
|
ctx: vnode.ctx,
|
|
7271
7266
|
ce: vnode.ce
|
|
7272
7267
|
};
|
|
7268
|
+
if (transition && cloneTransition) {
|
|
7269
|
+
cloned.transition = transition.clone(cloned);
|
|
7270
|
+
}
|
|
7273
7271
|
return cloned;
|
|
7274
7272
|
}
|
|
7275
7273
|
function deepCloneVNode(vnode) {
|
|
@@ -8094,7 +8092,7 @@ function isMemoSame(cached, memo) {
|
|
|
8094
8092
|
return true;
|
|
8095
8093
|
}
|
|
8096
8094
|
|
|
8097
|
-
const version = "3.4.
|
|
8095
|
+
const version = "3.4.26";
|
|
8098
8096
|
const warn = warn$1 ;
|
|
8099
8097
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8100
8098
|
const devtools = devtools$1 ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @cabloy/vue-runtime-core v3.4.
|
|
2
|
+
* @cabloy/vue-runtime-core v3.4.26
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -470,7 +470,7 @@ function renderComponentRoot(instance) {
|
|
|
470
470
|
false ? {
|
|
471
471
|
get attrs() {
|
|
472
472
|
markAttrsAccessed();
|
|
473
|
-
return attrs;
|
|
473
|
+
return shallowReadonly(attrs);
|
|
474
474
|
},
|
|
475
475
|
slots,
|
|
476
476
|
emit
|
|
@@ -499,12 +499,12 @@ function renderComponentRoot(instance) {
|
|
|
499
499
|
propsOptions
|
|
500
500
|
);
|
|
501
501
|
}
|
|
502
|
-
root = cloneVNode(root, fallthroughAttrs);
|
|
502
|
+
root = cloneVNode(root, fallthroughAttrs, false, true);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
if (vnode.dirs) {
|
|
507
|
-
root = cloneVNode(root);
|
|
507
|
+
root = cloneVNode(root, null, false, true);
|
|
508
508
|
root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
509
509
|
}
|
|
510
510
|
if (vnode.transition) {
|
|
@@ -940,7 +940,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
940
940
|
let parentSuspenseId;
|
|
941
941
|
const isSuspensible = isVNodeSuspensible(vnode);
|
|
942
942
|
if (isSuspensible) {
|
|
943
|
-
if (parentSuspense
|
|
943
|
+
if (parentSuspense && parentSuspense.pendingBranch) {
|
|
944
944
|
parentSuspenseId = parentSuspense.pendingId;
|
|
945
945
|
parentSuspense.deps++;
|
|
946
946
|
}
|
|
@@ -1228,8 +1228,8 @@ function setActiveBranch(suspense, branch) {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
1230
|
function isVNodeSuspensible(vnode) {
|
|
1231
|
-
|
|
1232
|
-
return
|
|
1231
|
+
const suspensible = vnode.props && vnode.props.suspensible;
|
|
1232
|
+
return suspensible != null && suspensible !== false;
|
|
1233
1233
|
}
|
|
1234
1234
|
|
|
1235
1235
|
const ssrContextKey = Symbol.for("v-scx");
|
|
@@ -1437,34 +1437,29 @@ function createPathGetter(ctx, path) {
|
|
|
1437
1437
|
return cur;
|
|
1438
1438
|
};
|
|
1439
1439
|
}
|
|
1440
|
-
function traverse(value, depth
|
|
1441
|
-
if (!shared.isObject(value) || value["__v_skip"]) {
|
|
1440
|
+
function traverse(value, depth = Infinity, seen) {
|
|
1441
|
+
if (depth <= 0 || !shared.isObject(value) || value["__v_skip"]) {
|
|
1442
1442
|
return value;
|
|
1443
1443
|
}
|
|
1444
|
-
if (depth && depth > 0) {
|
|
1445
|
-
if (currentDepth >= depth) {
|
|
1446
|
-
return value;
|
|
1447
|
-
}
|
|
1448
|
-
currentDepth++;
|
|
1449
|
-
}
|
|
1450
1444
|
seen = seen || /* @__PURE__ */ new Set();
|
|
1451
1445
|
if (seen.has(value)) {
|
|
1452
1446
|
return value;
|
|
1453
1447
|
}
|
|
1454
1448
|
seen.add(value);
|
|
1449
|
+
depth--;
|
|
1455
1450
|
if (reactivity.isRef(value)) {
|
|
1456
|
-
traverse(value.value, depth,
|
|
1451
|
+
traverse(value.value, depth, seen);
|
|
1457
1452
|
} else if (shared.isArray(value)) {
|
|
1458
1453
|
for (let i = 0; i < value.length; i++) {
|
|
1459
|
-
traverse(value[i], depth,
|
|
1454
|
+
traverse(value[i], depth, seen);
|
|
1460
1455
|
}
|
|
1461
1456
|
} else if (shared.isSet(value) || shared.isMap(value)) {
|
|
1462
1457
|
value.forEach((v) => {
|
|
1463
|
-
traverse(v, depth,
|
|
1458
|
+
traverse(v, depth, seen);
|
|
1464
1459
|
});
|
|
1465
1460
|
} else if (shared.isPlainObject(value)) {
|
|
1466
1461
|
for (const key in value) {
|
|
1467
|
-
traverse(value[key], depth,
|
|
1462
|
+
traverse(value[key], depth, seen);
|
|
1468
1463
|
}
|
|
1469
1464
|
}
|
|
1470
1465
|
return value;
|
|
@@ -1606,7 +1601,7 @@ const BaseTransitionImpl = {
|
|
|
1606
1601
|
instance
|
|
1607
1602
|
);
|
|
1608
1603
|
setTransitionHooks(oldInnerChild, leavingHooks);
|
|
1609
|
-
if (mode === "out-in") {
|
|
1604
|
+
if (mode === "out-in" && innerChild.type !== Comment) {
|
|
1610
1605
|
state.isLeaving = true;
|
|
1611
1606
|
leavingHooks.afterLeave = () => {
|
|
1612
1607
|
state.isLeaving = false;
|
|
@@ -2107,7 +2102,7 @@ const KeepAliveImpl = {
|
|
|
2107
2102
|
return () => {
|
|
2108
2103
|
pendingCacheKey = null;
|
|
2109
2104
|
if (!slots.default) {
|
|
2110
|
-
return
|
|
2105
|
+
return null;
|
|
2111
2106
|
}
|
|
2112
2107
|
const children = slots.default();
|
|
2113
2108
|
const rawVNode = children[0];
|
|
@@ -3401,7 +3396,7 @@ const initSlots = (instance, children) => {
|
|
|
3401
3396
|
const type = children._;
|
|
3402
3397
|
if (type) {
|
|
3403
3398
|
shared.extend(slots, children);
|
|
3404
|
-
shared.def(slots, "_", type);
|
|
3399
|
+
shared.def(slots, "_", type, true);
|
|
3405
3400
|
} else {
|
|
3406
3401
|
normalizeObjectSlots(children, slots);
|
|
3407
3402
|
}
|
|
@@ -5740,8 +5735,8 @@ function guardReactiveProps(props) {
|
|
|
5740
5735
|
return null;
|
|
5741
5736
|
return reactivity.isProxy(props) || isInternalObject(props) ? shared.extend({}, props) : props;
|
|
5742
5737
|
}
|
|
5743
|
-
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
5744
|
-
const { props, ref, patchFlag, children } = vnode;
|
|
5738
|
+
function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
|
|
5739
|
+
const { props, ref, patchFlag, children, transition } = vnode;
|
|
5745
5740
|
const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
|
|
5746
5741
|
const cloned = {
|
|
5747
5742
|
__v_isVNode: true,
|
|
@@ -5771,7 +5766,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
|
5771
5766
|
dynamicChildren: vnode.dynamicChildren,
|
|
5772
5767
|
appContext: vnode.appContext,
|
|
5773
5768
|
dirs: vnode.dirs,
|
|
5774
|
-
transition
|
|
5769
|
+
transition,
|
|
5775
5770
|
// These should technically only be non-null on mounted VNodes. However,
|
|
5776
5771
|
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
5777
5772
|
// them since them being non-null during a mount doesn't affect the logic as
|
|
@@ -5785,6 +5780,9 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
|
5785
5780
|
ctx: vnode.ctx,
|
|
5786
5781
|
ce: vnode.ce
|
|
5787
5782
|
};
|
|
5783
|
+
if (transition && cloneTransition) {
|
|
5784
|
+
cloned.transition = transition.clone(cloned);
|
|
5785
|
+
}
|
|
5788
5786
|
return cloned;
|
|
5789
5787
|
}
|
|
5790
5788
|
function createTextVNode(text = " ", flag = 0) {
|
|
@@ -6280,7 +6278,7 @@ function isMemoSame(cached, memo) {
|
|
|
6280
6278
|
return true;
|
|
6281
6279
|
}
|
|
6282
6280
|
|
|
6283
|
-
const version = "3.4.
|
|
6281
|
+
const version = "3.4.26";
|
|
6284
6282
|
const warn$1 = shared.NOOP;
|
|
6285
6283
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6286
6284
|
const devtools = void 0;
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -1000,7 +1000,7 @@ export declare function createBaseVNode(type: VNodeTypes | ClassComponent | type
|
|
|
1000
1000
|
export declare const createVNode: typeof _createVNode;
|
|
1001
1001
|
declare function _createVNode(type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null, isBlockNode?: boolean): VNode;
|
|
1002
1002
|
export declare function guardReactiveProps(props: (Data & VNodeProps) | null): (Data & VNodeProps) | null;
|
|
1003
|
-
export declare function cloneVNode<T, U>(vnode: VNode<T, U>, extraProps?: (Data & VNodeProps) | null, mergeRef?: boolean): VNode<T, U>;
|
|
1003
|
+
export declare function cloneVNode<T, U>(vnode: VNode<T, U>, extraProps?: (Data & VNodeProps) | null, mergeRef?: boolean, cloneTransition?: boolean): VNode<T, U>;
|
|
1004
1004
|
/**
|
|
1005
1005
|
* @private
|
|
1006
1006
|
*/
|
|
@@ -1604,7 +1604,8 @@ export type CompatVue = Pick<App, 'version' | 'component' | 'directive'> & {
|
|
|
1604
1604
|
version: string;
|
|
1605
1605
|
config: AppConfig & LegacyConfig;
|
|
1606
1606
|
nextTick: typeof nextTick;
|
|
1607
|
-
use(plugin: Plugin
|
|
1607
|
+
use<Options extends unknown[]>(plugin: Plugin<Options>, ...options: Options): CompatVue;
|
|
1608
|
+
use<Options>(plugin: Plugin<Options>, options: Options): CompatVue;
|
|
1608
1609
|
mixin(mixin: ComponentOptions): CompatVue;
|
|
1609
1610
|
component(name: string): Component | undefined;
|
|
1610
1611
|
component(name: string, component: Component): CompatVue;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @cabloy/vue-runtime-core v3.4.
|
|
2
|
+
* @cabloy/vue-runtime-core v3.4.26
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -908,7 +908,7 @@ function renderComponentRoot(instance) {
|
|
|
908
908
|
!!(process.env.NODE_ENV !== "production") ? {
|
|
909
909
|
get attrs() {
|
|
910
910
|
markAttrsAccessed();
|
|
911
|
-
return attrs;
|
|
911
|
+
return shallowReadonly(attrs);
|
|
912
912
|
},
|
|
913
913
|
slots,
|
|
914
914
|
emit
|
|
@@ -941,7 +941,7 @@ function renderComponentRoot(instance) {
|
|
|
941
941
|
propsOptions
|
|
942
942
|
);
|
|
943
943
|
}
|
|
944
|
-
root = cloneVNode(root, fallthroughAttrs);
|
|
944
|
+
root = cloneVNode(root, fallthroughAttrs, false, true);
|
|
945
945
|
} else if (!!(process.env.NODE_ENV !== "production") && !accessedAttrs && root.type !== Comment) {
|
|
946
946
|
const allAttrs = Object.keys(attrs);
|
|
947
947
|
const eventAttrs = [];
|
|
@@ -975,7 +975,7 @@ function renderComponentRoot(instance) {
|
|
|
975
975
|
`Runtime directive used on component with non-element root node. The directives will not function as intended.`
|
|
976
976
|
);
|
|
977
977
|
}
|
|
978
|
-
root = cloneVNode(root);
|
|
978
|
+
root = cloneVNode(root, null, false, true);
|
|
979
979
|
root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
980
980
|
}
|
|
981
981
|
if (vnode.transition) {
|
|
@@ -1466,7 +1466,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
1466
1466
|
let parentSuspenseId;
|
|
1467
1467
|
const isSuspensible = isVNodeSuspensible(vnode);
|
|
1468
1468
|
if (isSuspensible) {
|
|
1469
|
-
if (parentSuspense
|
|
1469
|
+
if (parentSuspense && parentSuspense.pendingBranch) {
|
|
1470
1470
|
parentSuspenseId = parentSuspense.pendingId;
|
|
1471
1471
|
parentSuspense.deps++;
|
|
1472
1472
|
}
|
|
@@ -1778,8 +1778,8 @@ function setActiveBranch(suspense, branch) {
|
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
1780
|
function isVNodeSuspensible(vnode) {
|
|
1781
|
-
|
|
1782
|
-
return
|
|
1781
|
+
const suspensible = vnode.props && vnode.props.suspensible;
|
|
1782
|
+
return suspensible != null && suspensible !== false;
|
|
1783
1783
|
}
|
|
1784
1784
|
|
|
1785
1785
|
const ssrContextKey = Symbol.for("v-scx");
|
|
@@ -2033,34 +2033,29 @@ function createPathGetter(ctx, path) {
|
|
|
2033
2033
|
return cur;
|
|
2034
2034
|
};
|
|
2035
2035
|
}
|
|
2036
|
-
function traverse(value, depth
|
|
2037
|
-
if (!isObject(value) || value["__v_skip"]) {
|
|
2036
|
+
function traverse(value, depth = Infinity, seen) {
|
|
2037
|
+
if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
|
|
2038
2038
|
return value;
|
|
2039
2039
|
}
|
|
2040
|
-
if (depth && depth > 0) {
|
|
2041
|
-
if (currentDepth >= depth) {
|
|
2042
|
-
return value;
|
|
2043
|
-
}
|
|
2044
|
-
currentDepth++;
|
|
2045
|
-
}
|
|
2046
2040
|
seen = seen || /* @__PURE__ */ new Set();
|
|
2047
2041
|
if (seen.has(value)) {
|
|
2048
2042
|
return value;
|
|
2049
2043
|
}
|
|
2050
2044
|
seen.add(value);
|
|
2045
|
+
depth--;
|
|
2051
2046
|
if (isRef(value)) {
|
|
2052
|
-
traverse(value.value, depth,
|
|
2047
|
+
traverse(value.value, depth, seen);
|
|
2053
2048
|
} else if (isArray(value)) {
|
|
2054
2049
|
for (let i = 0; i < value.length; i++) {
|
|
2055
|
-
traverse(value[i], depth,
|
|
2050
|
+
traverse(value[i], depth, seen);
|
|
2056
2051
|
}
|
|
2057
2052
|
} else if (isSet(value) || isMap(value)) {
|
|
2058
2053
|
value.forEach((v) => {
|
|
2059
|
-
traverse(v, depth,
|
|
2054
|
+
traverse(v, depth, seen);
|
|
2060
2055
|
});
|
|
2061
2056
|
} else if (isPlainObject(value)) {
|
|
2062
2057
|
for (const key in value) {
|
|
2063
|
-
traverse(value[key], depth,
|
|
2058
|
+
traverse(value[key], depth, seen);
|
|
2064
2059
|
}
|
|
2065
2060
|
}
|
|
2066
2061
|
return value;
|
|
@@ -2220,7 +2215,7 @@ const BaseTransitionImpl = {
|
|
|
2220
2215
|
instance
|
|
2221
2216
|
);
|
|
2222
2217
|
setTransitionHooks(oldInnerChild, leavingHooks);
|
|
2223
|
-
if (mode === "out-in") {
|
|
2218
|
+
if (mode === "out-in" && innerChild.type !== Comment) {
|
|
2224
2219
|
state.isLeaving = true;
|
|
2225
2220
|
leavingHooks.afterLeave = () => {
|
|
2226
2221
|
state.isLeaving = false;
|
|
@@ -2741,7 +2736,7 @@ const KeepAliveImpl = {
|
|
|
2741
2736
|
return () => {
|
|
2742
2737
|
pendingCacheKey = null;
|
|
2743
2738
|
if (!slots.default) {
|
|
2744
|
-
return
|
|
2739
|
+
return null;
|
|
2745
2740
|
}
|
|
2746
2741
|
const children = slots.default();
|
|
2747
2742
|
const rawVNode = children[0];
|
|
@@ -4486,7 +4481,7 @@ const initSlots = (instance, children) => {
|
|
|
4486
4481
|
const type = children._;
|
|
4487
4482
|
if (type) {
|
|
4488
4483
|
extend(slots, children);
|
|
4489
|
-
def(slots, "_", type);
|
|
4484
|
+
def(slots, "_", type, true);
|
|
4490
4485
|
} else {
|
|
4491
4486
|
normalizeObjectSlots(children, slots);
|
|
4492
4487
|
}
|
|
@@ -7281,8 +7276,8 @@ function guardReactiveProps(props) {
|
|
|
7281
7276
|
return null;
|
|
7282
7277
|
return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
7283
7278
|
}
|
|
7284
|
-
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
7285
|
-
const { props, ref, patchFlag, children } = vnode;
|
|
7279
|
+
function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
|
|
7280
|
+
const { props, ref, patchFlag, children, transition } = vnode;
|
|
7286
7281
|
const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
|
|
7287
7282
|
const cloned = {
|
|
7288
7283
|
__v_isVNode: true,
|
|
@@ -7312,7 +7307,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
|
7312
7307
|
dynamicChildren: vnode.dynamicChildren,
|
|
7313
7308
|
appContext: vnode.appContext,
|
|
7314
7309
|
dirs: vnode.dirs,
|
|
7315
|
-
transition
|
|
7310
|
+
transition,
|
|
7316
7311
|
// These should technically only be non-null on mounted VNodes. However,
|
|
7317
7312
|
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
7318
7313
|
// them since them being non-null during a mount doesn't affect the logic as
|
|
@@ -7326,6 +7321,9 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
|
7326
7321
|
ctx: vnode.ctx,
|
|
7327
7322
|
ce: vnode.ce
|
|
7328
7323
|
};
|
|
7324
|
+
if (transition && cloneTransition) {
|
|
7325
|
+
cloned.transition = transition.clone(cloned);
|
|
7326
|
+
}
|
|
7329
7327
|
return cloned;
|
|
7330
7328
|
}
|
|
7331
7329
|
function deepCloneVNode(vnode) {
|
|
@@ -8164,7 +8162,7 @@ function isMemoSame(cached, memo) {
|
|
|
8164
8162
|
return true;
|
|
8165
8163
|
}
|
|
8166
8164
|
|
|
8167
|
-
const version = "3.4.
|
|
8165
|
+
const version = "3.4.26";
|
|
8168
8166
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8169
8167
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8170
8168
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabloy/vue-runtime-core",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.28",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@vue/shared": "3.4.
|
|
50
|
-
"@vue/reactivity": "3.4.
|
|
49
|
+
"@vue/shared": "3.4.26",
|
|
50
|
+
"@vue/reactivity": "3.4.26"
|
|
51
51
|
}
|
|
52
52
|
}
|