vue 3.3.7 → 3.3.8
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.esm-browser.js +67 -68
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.global.js +67 -68
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +67 -68
- package/dist/vue.runtime.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.global.js +67 -68
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +6 -6
package/dist/vue.esm-browser.js
CHANGED
|
@@ -2509,6 +2509,61 @@ function updateHOCHostEl({ vnode, parent }, el) {
|
|
|
2509
2509
|
}
|
|
2510
2510
|
}
|
|
2511
2511
|
|
|
2512
|
+
const COMPONENTS = "components";
|
|
2513
|
+
const DIRECTIVES = "directives";
|
|
2514
|
+
function resolveComponent(name, maybeSelfReference) {
|
|
2515
|
+
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
2516
|
+
}
|
|
2517
|
+
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
2518
|
+
function resolveDynamicComponent(component) {
|
|
2519
|
+
if (isString(component)) {
|
|
2520
|
+
return resolveAsset(COMPONENTS, component, false) || component;
|
|
2521
|
+
} else {
|
|
2522
|
+
return component || NULL_DYNAMIC_COMPONENT;
|
|
2523
|
+
}
|
|
2524
|
+
}
|
|
2525
|
+
function resolveDirective(name) {
|
|
2526
|
+
return resolveAsset(DIRECTIVES, name);
|
|
2527
|
+
}
|
|
2528
|
+
function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
|
|
2529
|
+
const instance = currentRenderingInstance || currentInstance;
|
|
2530
|
+
if (instance) {
|
|
2531
|
+
const Component = instance.type;
|
|
2532
|
+
if (type === COMPONENTS) {
|
|
2533
|
+
const selfName = getComponentName(
|
|
2534
|
+
Component,
|
|
2535
|
+
false
|
|
2536
|
+
/* do not include inferred name to avoid breaking existing code */
|
|
2537
|
+
);
|
|
2538
|
+
if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {
|
|
2539
|
+
return Component;
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
const res = (
|
|
2543
|
+
// local registration
|
|
2544
|
+
// check instance[type] first which is resolved for options API
|
|
2545
|
+
resolve(instance[type] || Component[type], name) || // global registration
|
|
2546
|
+
resolve(instance.appContext[type], name)
|
|
2547
|
+
);
|
|
2548
|
+
if (!res && maybeSelfReference) {
|
|
2549
|
+
return Component;
|
|
2550
|
+
}
|
|
2551
|
+
if (warnMissing && !res) {
|
|
2552
|
+
const extra = type === COMPONENTS ? `
|
|
2553
|
+
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;
|
|
2554
|
+
warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
2555
|
+
}
|
|
2556
|
+
return res;
|
|
2557
|
+
} else {
|
|
2558
|
+
warn(
|
|
2559
|
+
`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
|
|
2560
|
+
);
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2563
|
+
function resolve(registry, name) {
|
|
2564
|
+
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2512
2567
|
const isSuspense = (type) => type.__isSuspense;
|
|
2513
2568
|
const SuspenseImpl = {
|
|
2514
2569
|
name: "Suspense",
|
|
@@ -3043,7 +3098,7 @@ function normalizeSuspenseSlot(s) {
|
|
|
3043
3098
|
}
|
|
3044
3099
|
if (isArray(s)) {
|
|
3045
3100
|
const singleChild = filterSingleRoot(s);
|
|
3046
|
-
if (!singleChild) {
|
|
3101
|
+
if (!singleChild && s.filter((child) => child !== NULL_DYNAMIC_COMPONENT).length > 0) {
|
|
3047
3102
|
warn(`<Suspense> slots expect a single root node.`);
|
|
3048
3103
|
}
|
|
3049
3104
|
s = singleChild;
|
|
@@ -4128,61 +4183,6 @@ function onErrorCaptured(hook, target = currentInstance) {
|
|
|
4128
4183
|
injectHook("ec", hook, target);
|
|
4129
4184
|
}
|
|
4130
4185
|
|
|
4131
|
-
const COMPONENTS = "components";
|
|
4132
|
-
const DIRECTIVES = "directives";
|
|
4133
|
-
function resolveComponent(name, maybeSelfReference) {
|
|
4134
|
-
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
4135
|
-
}
|
|
4136
|
-
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
4137
|
-
function resolveDynamicComponent(component) {
|
|
4138
|
-
if (isString(component)) {
|
|
4139
|
-
return resolveAsset(COMPONENTS, component, false) || component;
|
|
4140
|
-
} else {
|
|
4141
|
-
return component || NULL_DYNAMIC_COMPONENT;
|
|
4142
|
-
}
|
|
4143
|
-
}
|
|
4144
|
-
function resolveDirective(name) {
|
|
4145
|
-
return resolveAsset(DIRECTIVES, name);
|
|
4146
|
-
}
|
|
4147
|
-
function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
|
|
4148
|
-
const instance = currentRenderingInstance || currentInstance;
|
|
4149
|
-
if (instance) {
|
|
4150
|
-
const Component = instance.type;
|
|
4151
|
-
if (type === COMPONENTS) {
|
|
4152
|
-
const selfName = getComponentName(
|
|
4153
|
-
Component,
|
|
4154
|
-
false
|
|
4155
|
-
/* do not include inferred name to avoid breaking existing code */
|
|
4156
|
-
);
|
|
4157
|
-
if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {
|
|
4158
|
-
return Component;
|
|
4159
|
-
}
|
|
4160
|
-
}
|
|
4161
|
-
const res = (
|
|
4162
|
-
// local registration
|
|
4163
|
-
// check instance[type] first which is resolved for options API
|
|
4164
|
-
resolve(instance[type] || Component[type], name) || // global registration
|
|
4165
|
-
resolve(instance.appContext[type], name)
|
|
4166
|
-
);
|
|
4167
|
-
if (!res && maybeSelfReference) {
|
|
4168
|
-
return Component;
|
|
4169
|
-
}
|
|
4170
|
-
if (warnMissing && !res) {
|
|
4171
|
-
const extra = type === COMPONENTS ? `
|
|
4172
|
-
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;
|
|
4173
|
-
warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
4174
|
-
}
|
|
4175
|
-
return res;
|
|
4176
|
-
} else {
|
|
4177
|
-
warn(
|
|
4178
|
-
`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
|
|
4179
|
-
);
|
|
4180
|
-
}
|
|
4181
|
-
}
|
|
4182
|
-
function resolve(registry, name) {
|
|
4183
|
-
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
|
|
4184
|
-
}
|
|
4185
|
-
|
|
4186
4186
|
function renderList(source, renderItem, cache, index) {
|
|
4187
4187
|
let ret;
|
|
4188
4188
|
const cached = cache && cache[index];
|
|
@@ -5998,15 +5998,15 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
5998
5998
|
}
|
|
5999
5999
|
break;
|
|
6000
6000
|
case Comment:
|
|
6001
|
-
if (
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6001
|
+
if (isTemplateNode(node)) {
|
|
6002
|
+
nextNode = nextSibling(node);
|
|
6003
|
+
replaceNode(
|
|
6004
|
+
vnode.el = node.content.firstChild,
|
|
6005
|
+
node,
|
|
6006
|
+
parentComponent
|
|
6007
|
+
);
|
|
6008
|
+
} else if (domType !== 8 /* COMMENT */ || isFragmentStart) {
|
|
6009
|
+
nextNode = onMismatch();
|
|
6010
6010
|
} else {
|
|
6011
6011
|
nextNode = nextSibling(node);
|
|
6012
6012
|
}
|
|
@@ -6350,8 +6350,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
6350
6350
|
let parent = parentComponent;
|
|
6351
6351
|
while (parent) {
|
|
6352
6352
|
if (parent.vnode.el === oldNode) {
|
|
6353
|
-
parent.vnode.el = newNode;
|
|
6354
|
-
parent.subTree.el = newNode;
|
|
6353
|
+
parent.vnode.el = parent.subTree.el = newNode;
|
|
6355
6354
|
}
|
|
6356
6355
|
parent = parent.parent;
|
|
6357
6356
|
}
|
|
@@ -9137,7 +9136,7 @@ function isMemoSame(cached, memo) {
|
|
|
9137
9136
|
return true;
|
|
9138
9137
|
}
|
|
9139
9138
|
|
|
9140
|
-
const version = "3.3.
|
|
9139
|
+
const version = "3.3.8";
|
|
9141
9140
|
const ssrUtils = null;
|
|
9142
9141
|
const resolveFilter = null;
|
|
9143
9142
|
const compatUtils = null;
|