@cabloy/vue-runtime-core 3.4.32 → 3.4.33
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @cabloy/vue-runtime-core v3.4.
|
|
2
|
+
* @cabloy/vue-runtime-core v3.4.31
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1230,7 +1230,6 @@ const SuspenseImpl = {
|
|
|
1230
1230
|
}
|
|
1231
1231
|
},
|
|
1232
1232
|
hydrate: hydrateSuspense,
|
|
1233
|
-
create: createSuspenseBoundary,
|
|
1234
1233
|
normalize: normalizeSuspenseChildren
|
|
1235
1234
|
};
|
|
1236
1235
|
const Suspense = SuspenseImpl ;
|
|
@@ -1809,7 +1808,7 @@ const createHook = (lifecycle) => (hook, target = currentInstance) => {
|
|
|
1809
1808
|
if (!isInSSRComponentSetup || lifecycle === "sp") {
|
|
1810
1809
|
injectHook(lifecycle, (...args) => hook(...args), target);
|
|
1811
1810
|
}
|
|
1812
|
-
if (lifecycle === "m" &&
|
|
1811
|
+
if (lifecycle === "m" && target && target.isMounted) {
|
|
1813
1812
|
hook();
|
|
1814
1813
|
}
|
|
1815
1814
|
};
|
|
@@ -3791,18 +3790,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3791
3790
|
let domType = node.nodeType;
|
|
3792
3791
|
vnode.el = node;
|
|
3793
3792
|
{
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
value: vnode,
|
|
3797
|
-
enumerable: false
|
|
3798
|
-
});
|
|
3799
|
-
}
|
|
3800
|
-
if (!("__vueParentComponent" in node)) {
|
|
3801
|
-
Object.defineProperty(node, "__vueParentComponent", {
|
|
3802
|
-
value: parentComponent,
|
|
3803
|
-
enumerable: false
|
|
3804
|
-
});
|
|
3805
|
-
}
|
|
3793
|
+
shared.def(node, "__vnode", vnode, true);
|
|
3794
|
+
shared.def(node, "__vueParentComponent", parentComponent, true);
|
|
3806
3795
|
}
|
|
3807
3796
|
if (patchFlag === -2) {
|
|
3808
3797
|
optimized = false;
|
|
@@ -4025,7 +4014,9 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4025
4014
|
if (props) {
|
|
4026
4015
|
{
|
|
4027
4016
|
for (const key in props) {
|
|
4028
|
-
if (
|
|
4017
|
+
if (// #11189 skip if this node has directives that have created hooks
|
|
4018
|
+
// as it could have mutated the DOM in any possible way
|
|
4019
|
+
!(dirs && dirs.some((d) => d.dir.created)) && propHasMismatch(el, key, props[key], vnode, parentComponent)) {
|
|
4029
4020
|
logMismatchError();
|
|
4030
4021
|
}
|
|
4031
4022
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || shared.isOn(key) && !shared.isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
@@ -4200,7 +4191,6 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4200
4191
|
return [hydrate, hydrateNode];
|
|
4201
4192
|
}
|
|
4202
4193
|
function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
4203
|
-
var _a;
|
|
4204
4194
|
let mismatchType;
|
|
4205
4195
|
let mismatchKey;
|
|
4206
4196
|
let actual;
|
|
@@ -4223,13 +4213,8 @@ function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
|
4223
4213
|
}
|
|
4224
4214
|
}
|
|
4225
4215
|
}
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
(root == null ? void 0 : root.type) === Fragment && root.children.includes(vnode)) {
|
|
4229
|
-
const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
|
|
4230
|
-
for (const key2 in cssVars) {
|
|
4231
|
-
expectedMap.set(`--${key2}`, String(cssVars[key2]));
|
|
4232
|
-
}
|
|
4216
|
+
if (instance) {
|
|
4217
|
+
resolveCssVars(instance, vnode, expectedMap);
|
|
4233
4218
|
}
|
|
4234
4219
|
if (!isMapEqual(actualMap, expectedMap)) {
|
|
4235
4220
|
mismatchType = mismatchKey = "style";
|
|
@@ -4289,8 +4274,8 @@ function toStyleMap(str) {
|
|
|
4289
4274
|
const styleMap = /* @__PURE__ */ new Map();
|
|
4290
4275
|
for (const item of str.split(";")) {
|
|
4291
4276
|
let [key, value] = item.split(":");
|
|
4292
|
-
key = key
|
|
4293
|
-
value = value
|
|
4277
|
+
key = key.trim();
|
|
4278
|
+
value = value && value.trim();
|
|
4294
4279
|
if (key && value) {
|
|
4295
4280
|
styleMap.set(key, value);
|
|
4296
4281
|
}
|
|
@@ -4308,6 +4293,18 @@ function isMapEqual(a, b) {
|
|
|
4308
4293
|
}
|
|
4309
4294
|
return true;
|
|
4310
4295
|
}
|
|
4296
|
+
function resolveCssVars(instance, vnode, expectedMap) {
|
|
4297
|
+
const root = instance.subTree;
|
|
4298
|
+
if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {
|
|
4299
|
+
const cssVars = instance.getCssVars();
|
|
4300
|
+
for (const key in cssVars) {
|
|
4301
|
+
expectedMap.set(`--${key}`, String(cssVars[key]));
|
|
4302
|
+
}
|
|
4303
|
+
}
|
|
4304
|
+
if (vnode === root && instance.parent) {
|
|
4305
|
+
resolveCssVars(instance.parent, instance.vnode, expectedMap);
|
|
4306
|
+
}
|
|
4307
|
+
}
|
|
4311
4308
|
|
|
4312
4309
|
let supported;
|
|
4313
4310
|
let perf;
|
|
@@ -4625,14 +4622,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4625
4622
|
}
|
|
4626
4623
|
}
|
|
4627
4624
|
{
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
enumerable: false
|
|
4631
|
-
});
|
|
4632
|
-
Object.defineProperty(el, "__vueParentComponent", {
|
|
4633
|
-
value: parentComponent,
|
|
4634
|
-
enumerable: false
|
|
4635
|
-
});
|
|
4625
|
+
shared.def(el, "__vnode", vnode, true);
|
|
4626
|
+
shared.def(el, "__vueParentComponent", parentComponent, true);
|
|
4636
4627
|
}
|
|
4637
4628
|
if (dirs) {
|
|
4638
4629
|
invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
|
|
@@ -4694,6 +4685,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4694
4685
|
};
|
|
4695
4686
|
const patchElement = (n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
|
|
4696
4687
|
const el = n2.el = n1.el;
|
|
4688
|
+
{
|
|
4689
|
+
el.__vnode = n2;
|
|
4690
|
+
}
|
|
4697
4691
|
let { patchFlag, dynamicChildren, dirs } = n2;
|
|
4698
4692
|
patchFlag |= n1.patchFlag & 16;
|
|
4699
4693
|
const oldProps = n1.props || shared.EMPTY_OBJ;
|
|
@@ -5588,6 +5582,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5588
5582
|
dirs,
|
|
5589
5583
|
memoIndex
|
|
5590
5584
|
} = vnode;
|
|
5585
|
+
if (patchFlag === -2) {
|
|
5586
|
+
optimized = false;
|
|
5587
|
+
}
|
|
5591
5588
|
if (ref != null) {
|
|
5592
5589
|
setRef(ref, null, parentSuspense, vnode, true);
|
|
5593
5590
|
}
|
|
@@ -5619,7 +5616,6 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5619
5616
|
vnode,
|
|
5620
5617
|
parentComponent,
|
|
5621
5618
|
parentSuspense,
|
|
5622
|
-
optimized,
|
|
5623
5619
|
internals,
|
|
5624
5620
|
doRemove
|
|
5625
5621
|
);
|
|
@@ -6921,7 +6917,7 @@ const TeleportImpl = {
|
|
|
6921
6917
|
}
|
|
6922
6918
|
updateCssVars(n2);
|
|
6923
6919
|
},
|
|
6924
|
-
remove(vnode, parentComponent, parentSuspense,
|
|
6920
|
+
remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
|
|
6925
6921
|
const { shapeFlag, children, anchor, targetAnchor, target, props } = vnode;
|
|
6926
6922
|
if (target) {
|
|
6927
6923
|
hostRemove(targetAnchor);
|
|
@@ -8107,7 +8103,7 @@ function isMemoSame(cached, memo) {
|
|
|
8107
8103
|
return true;
|
|
8108
8104
|
}
|
|
8109
8105
|
|
|
8110
|
-
const version = "3.4.
|
|
8106
|
+
const version = "3.4.31";
|
|
8111
8107
|
const warn = warn$1 ;
|
|
8112
8108
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8113
8109
|
const devtools = devtools$1 ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @cabloy/vue-runtime-core v3.4.
|
|
2
|
+
* @cabloy/vue-runtime-core v3.4.31
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -709,7 +709,6 @@ const SuspenseImpl = {
|
|
|
709
709
|
}
|
|
710
710
|
},
|
|
711
711
|
hydrate: hydrateSuspense,
|
|
712
|
-
create: createSuspenseBoundary,
|
|
713
712
|
normalize: normalizeSuspenseChildren
|
|
714
713
|
};
|
|
715
714
|
const Suspense = SuspenseImpl ;
|
|
@@ -1252,7 +1251,7 @@ const createHook = (lifecycle) => (hook, target = currentInstance) => {
|
|
|
1252
1251
|
if (!isInSSRComponentSetup || lifecycle === "sp") {
|
|
1253
1252
|
injectHook(lifecycle, (...args) => hook(...args), target);
|
|
1254
1253
|
}
|
|
1255
|
-
if (lifecycle === "m" &&
|
|
1254
|
+
if (lifecycle === "m" && target && target.isMounted) {
|
|
1256
1255
|
hook();
|
|
1257
1256
|
}
|
|
1258
1257
|
};
|
|
@@ -4238,6 +4237,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4238
4237
|
dirs,
|
|
4239
4238
|
memoIndex
|
|
4240
4239
|
} = vnode;
|
|
4240
|
+
if (patchFlag === -2) {
|
|
4241
|
+
optimized = false;
|
|
4242
|
+
}
|
|
4241
4243
|
if (ref != null) {
|
|
4242
4244
|
setRef(ref, null, parentSuspense, vnode, true);
|
|
4243
4245
|
}
|
|
@@ -4269,7 +4271,6 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4269
4271
|
vnode,
|
|
4270
4272
|
parentComponent,
|
|
4271
4273
|
parentSuspense,
|
|
4272
|
-
optimized,
|
|
4273
4274
|
internals,
|
|
4274
4275
|
doRemove
|
|
4275
4276
|
);
|
|
@@ -5460,7 +5461,7 @@ const TeleportImpl = {
|
|
|
5460
5461
|
}
|
|
5461
5462
|
updateCssVars(n2);
|
|
5462
5463
|
},
|
|
5463
|
-
remove(vnode, parentComponent, parentSuspense,
|
|
5464
|
+
remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
|
|
5464
5465
|
const { shapeFlag, children, anchor, targetAnchor, target, props } = vnode;
|
|
5465
5466
|
if (target) {
|
|
5466
5467
|
hostRemove(targetAnchor);
|
|
@@ -6290,7 +6291,7 @@ function isMemoSame(cached, memo) {
|
|
|
6290
6291
|
return true;
|
|
6291
6292
|
}
|
|
6292
6293
|
|
|
6293
|
-
const version = "3.4.
|
|
6294
|
+
const version = "3.4.31";
|
|
6294
6295
|
const warn$1 = shared.NOOP;
|
|
6295
6296
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6296
6297
|
const devtools = void 0;
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -165,7 +165,6 @@ declare const SuspenseImpl: {
|
|
|
165
165
|
__isSuspense: boolean;
|
|
166
166
|
process(n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals): void;
|
|
167
167
|
hydrate: typeof hydrateSuspense;
|
|
168
|
-
create: typeof createSuspenseBoundary;
|
|
169
168
|
normalize: typeof normalizeSuspenseChildren;
|
|
170
169
|
};
|
|
171
170
|
export declare const Suspense: {
|
|
@@ -201,7 +200,6 @@ export interface SuspenseBoundary {
|
|
|
201
200
|
registerDep(instance: ComponentInternalInstance, setupRenderEffect: SetupRenderEffectFn, optimized: boolean): void;
|
|
202
201
|
unmount(parentSuspense: SuspenseBoundary | null, doRemove?: boolean): void;
|
|
203
202
|
}
|
|
204
|
-
declare function createSuspenseBoundary(vnode: VNode, parentSuspense: SuspenseBoundary | null, parentComponent: ComponentInternalInstance | null, container: RendererElement, hiddenContainer: RendererElement, anchor: RendererNode | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals, isHydrating?: boolean): SuspenseBoundary;
|
|
205
203
|
declare function hydrateSuspense(node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals, hydrateNode: (node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
|
|
206
204
|
declare function normalizeSuspenseChildren(vnode: VNode): void;
|
|
207
205
|
|
|
@@ -840,7 +838,7 @@ declare const TeleportImpl: {
|
|
|
840
838
|
name: string;
|
|
841
839
|
__isTeleport: boolean;
|
|
842
840
|
process(n1: TeleportVNode | null, n2: TeleportVNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, internals: RendererInternals): void;
|
|
843
|
-
remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null,
|
|
841
|
+
remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, { um: unmount, o: { remove: hostRemove } }: RendererInternals, doRemove: boolean): void;
|
|
844
842
|
move: typeof moveTeleport;
|
|
845
843
|
hydrate: typeof hydrateTeleport;
|
|
846
844
|
};
|
|
@@ -1022,7 +1020,7 @@ type Data = Record<string, unknown>;
|
|
|
1022
1020
|
* the usage of `InstanceType<typeof Comp>` which only works for
|
|
1023
1021
|
* constructor-based component definition types.
|
|
1024
1022
|
*
|
|
1025
|
-
*
|
|
1023
|
+
* @example
|
|
1026
1024
|
* ```ts
|
|
1027
1025
|
* const MyComp = { ... }
|
|
1028
1026
|
* declare const instance: ComponentInstance<typeof MyComp>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @cabloy/vue-runtime-core v3.4.
|
|
2
|
+
* @cabloy/vue-runtime-core v3.4.31
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1231,7 +1231,6 @@ const SuspenseImpl = {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
},
|
|
1233
1233
|
hydrate: hydrateSuspense,
|
|
1234
|
-
create: createSuspenseBoundary,
|
|
1235
1234
|
normalize: normalizeSuspenseChildren
|
|
1236
1235
|
};
|
|
1237
1236
|
const Suspense = SuspenseImpl ;
|
|
@@ -1810,7 +1809,7 @@ const createHook = (lifecycle) => (hook, target = currentInstance) => {
|
|
|
1810
1809
|
if (!isInSSRComponentSetup || lifecycle === "sp") {
|
|
1811
1810
|
injectHook(lifecycle, (...args) => hook(...args), target);
|
|
1812
1811
|
}
|
|
1813
|
-
if (lifecycle === "m" &&
|
|
1812
|
+
if (lifecycle === "m" && target && target.isMounted) {
|
|
1814
1813
|
hook();
|
|
1815
1814
|
}
|
|
1816
1815
|
};
|
|
@@ -3796,18 +3795,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3796
3795
|
let domType = node.nodeType;
|
|
3797
3796
|
vnode.el = node;
|
|
3798
3797
|
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
value: vnode,
|
|
3802
|
-
enumerable: false
|
|
3803
|
-
});
|
|
3804
|
-
}
|
|
3805
|
-
if (!("__vueParentComponent" in node)) {
|
|
3806
|
-
Object.defineProperty(node, "__vueParentComponent", {
|
|
3807
|
-
value: parentComponent,
|
|
3808
|
-
enumerable: false
|
|
3809
|
-
});
|
|
3810
|
-
}
|
|
3798
|
+
def(node, "__vnode", vnode, true);
|
|
3799
|
+
def(node, "__vueParentComponent", parentComponent, true);
|
|
3811
3800
|
}
|
|
3812
3801
|
if (patchFlag === -2) {
|
|
3813
3802
|
optimized = false;
|
|
@@ -4030,7 +4019,9 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4030
4019
|
if (props) {
|
|
4031
4020
|
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ || forcePatch || !optimized || patchFlag & (16 | 32)) {
|
|
4032
4021
|
for (const key in props) {
|
|
4033
|
-
if ((!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) &&
|
|
4022
|
+
if ((!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && // #11189 skip if this node has directives that have created hooks
|
|
4023
|
+
// as it could have mutated the DOM in any possible way
|
|
4024
|
+
!(dirs && dirs.some((d) => d.dir.created)) && propHasMismatch(el, key, props[key], vnode, parentComponent)) {
|
|
4034
4025
|
logMismatchError();
|
|
4035
4026
|
}
|
|
4036
4027
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
@@ -4215,7 +4206,6 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4215
4206
|
return [hydrate, hydrateNode];
|
|
4216
4207
|
}
|
|
4217
4208
|
function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
4218
|
-
var _a;
|
|
4219
4209
|
let mismatchType;
|
|
4220
4210
|
let mismatchKey;
|
|
4221
4211
|
let actual;
|
|
@@ -4238,13 +4228,8 @@ function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
|
4238
4228
|
}
|
|
4239
4229
|
}
|
|
4240
4230
|
}
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
(root == null ? void 0 : root.type) === Fragment && root.children.includes(vnode)) {
|
|
4244
|
-
const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
|
|
4245
|
-
for (const key2 in cssVars) {
|
|
4246
|
-
expectedMap.set(`--${key2}`, String(cssVars[key2]));
|
|
4247
|
-
}
|
|
4231
|
+
if (instance) {
|
|
4232
|
+
resolveCssVars(instance, vnode, expectedMap);
|
|
4248
4233
|
}
|
|
4249
4234
|
if (!isMapEqual(actualMap, expectedMap)) {
|
|
4250
4235
|
mismatchType = mismatchKey = "style";
|
|
@@ -4304,8 +4289,8 @@ function toStyleMap(str) {
|
|
|
4304
4289
|
const styleMap = /* @__PURE__ */ new Map();
|
|
4305
4290
|
for (const item of str.split(";")) {
|
|
4306
4291
|
let [key, value] = item.split(":");
|
|
4307
|
-
key = key
|
|
4308
|
-
value = value
|
|
4292
|
+
key = key.trim();
|
|
4293
|
+
value = value && value.trim();
|
|
4309
4294
|
if (key && value) {
|
|
4310
4295
|
styleMap.set(key, value);
|
|
4311
4296
|
}
|
|
@@ -4323,6 +4308,18 @@ function isMapEqual(a, b) {
|
|
|
4323
4308
|
}
|
|
4324
4309
|
return true;
|
|
4325
4310
|
}
|
|
4311
|
+
function resolveCssVars(instance, vnode, expectedMap) {
|
|
4312
|
+
const root = instance.subTree;
|
|
4313
|
+
if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {
|
|
4314
|
+
const cssVars = instance.getCssVars();
|
|
4315
|
+
for (const key in cssVars) {
|
|
4316
|
+
expectedMap.set(`--${key}`, String(cssVars[key]));
|
|
4317
|
+
}
|
|
4318
|
+
}
|
|
4319
|
+
if (vnode === root && instance.parent) {
|
|
4320
|
+
resolveCssVars(instance.parent, instance.vnode, expectedMap);
|
|
4321
|
+
}
|
|
4322
|
+
}
|
|
4326
4323
|
|
|
4327
4324
|
let supported;
|
|
4328
4325
|
let perf;
|
|
@@ -4667,14 +4664,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4667
4664
|
}
|
|
4668
4665
|
}
|
|
4669
4666
|
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
enumerable: false
|
|
4673
|
-
});
|
|
4674
|
-
Object.defineProperty(el, "__vueParentComponent", {
|
|
4675
|
-
value: parentComponent,
|
|
4676
|
-
enumerable: false
|
|
4677
|
-
});
|
|
4667
|
+
def(el, "__vnode", vnode, true);
|
|
4668
|
+
def(el, "__vueParentComponent", parentComponent, true);
|
|
4678
4669
|
}
|
|
4679
4670
|
if (dirs) {
|
|
4680
4671
|
invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
|
|
@@ -4736,6 +4727,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4736
4727
|
};
|
|
4737
4728
|
const patchElement = (n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
|
|
4738
4729
|
const el = n2.el = n1.el;
|
|
4730
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
4731
|
+
el.__vnode = n2;
|
|
4732
|
+
}
|
|
4739
4733
|
let { patchFlag, dynamicChildren, dirs } = n2;
|
|
4740
4734
|
patchFlag |= n1.patchFlag & 16;
|
|
4741
4735
|
const oldProps = n1.props || EMPTY_OBJ;
|
|
@@ -5641,6 +5635,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5641
5635
|
dirs,
|
|
5642
5636
|
memoIndex
|
|
5643
5637
|
} = vnode;
|
|
5638
|
+
if (patchFlag === -2) {
|
|
5639
|
+
optimized = false;
|
|
5640
|
+
}
|
|
5644
5641
|
if (ref != null) {
|
|
5645
5642
|
setRef(ref, null, parentSuspense, vnode, true);
|
|
5646
5643
|
}
|
|
@@ -5672,7 +5669,6 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5672
5669
|
vnode,
|
|
5673
5670
|
parentComponent,
|
|
5674
5671
|
parentSuspense,
|
|
5675
|
-
optimized,
|
|
5676
5672
|
internals,
|
|
5677
5673
|
doRemove
|
|
5678
5674
|
);
|
|
@@ -6975,7 +6971,7 @@ const TeleportImpl = {
|
|
|
6975
6971
|
}
|
|
6976
6972
|
updateCssVars(n2);
|
|
6977
6973
|
},
|
|
6978
|
-
remove(vnode, parentComponent, parentSuspense,
|
|
6974
|
+
remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
|
|
6979
6975
|
const { shapeFlag, children, anchor, targetAnchor, target, props } = vnode;
|
|
6980
6976
|
if (target) {
|
|
6981
6977
|
hostRemove(targetAnchor);
|
|
@@ -8175,7 +8171,7 @@ function isMemoSame(cached, memo) {
|
|
|
8175
8171
|
return true;
|
|
8176
8172
|
}
|
|
8177
8173
|
|
|
8178
|
-
const version = "3.4.
|
|
8174
|
+
const version = "3.4.31";
|
|
8179
8175
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8180
8176
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8181
8177
|
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.33",
|
|
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.31",
|
|
50
|
+
"@vue/reactivity": "npm:@cabloy/vue-reactivity@3.4.33"
|
|
51
51
|
}
|
|
52
52
|
}
|