@vue/compat 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.cjs.js +74 -75
- package/dist/vue.cjs.prod.js +64 -65
- package/dist/vue.esm-browser.js +72 -73
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +72 -73
- package/dist/vue.global.js +72 -73
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +72 -73
- package/dist/vue.runtime.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.esm-bundler.js +72 -73
- package/dist/vue.runtime.global.js +72 -73
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +2 -2
package/dist/vue.cjs.js
CHANGED
|
@@ -3055,6 +3055,65 @@ function updateHOCHostEl({ vnode, parent }, el) {
|
|
|
3055
3055
|
}
|
|
3056
3056
|
}
|
|
3057
3057
|
|
|
3058
|
+
const COMPONENTS = "components";
|
|
3059
|
+
const DIRECTIVES = "directives";
|
|
3060
|
+
const FILTERS = "filters";
|
|
3061
|
+
function resolveComponent(name, maybeSelfReference) {
|
|
3062
|
+
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
3063
|
+
}
|
|
3064
|
+
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
3065
|
+
function resolveDynamicComponent(component) {
|
|
3066
|
+
if (isString(component)) {
|
|
3067
|
+
return resolveAsset(COMPONENTS, component, false) || component;
|
|
3068
|
+
} else {
|
|
3069
|
+
return component || NULL_DYNAMIC_COMPONENT;
|
|
3070
|
+
}
|
|
3071
|
+
}
|
|
3072
|
+
function resolveDirective(name) {
|
|
3073
|
+
return resolveAsset(DIRECTIVES, name);
|
|
3074
|
+
}
|
|
3075
|
+
function resolveFilter$1(name) {
|
|
3076
|
+
return resolveAsset(FILTERS, name);
|
|
3077
|
+
}
|
|
3078
|
+
function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
|
|
3079
|
+
const instance = currentRenderingInstance || currentInstance;
|
|
3080
|
+
if (instance) {
|
|
3081
|
+
const Component = instance.type;
|
|
3082
|
+
if (type === COMPONENTS) {
|
|
3083
|
+
const selfName = getComponentName(
|
|
3084
|
+
Component,
|
|
3085
|
+
false
|
|
3086
|
+
/* do not include inferred name to avoid breaking existing code */
|
|
3087
|
+
);
|
|
3088
|
+
if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {
|
|
3089
|
+
return Component;
|
|
3090
|
+
}
|
|
3091
|
+
}
|
|
3092
|
+
const res = (
|
|
3093
|
+
// local registration
|
|
3094
|
+
// check instance[type] first which is resolved for options API
|
|
3095
|
+
resolve(instance[type] || Component[type], name) || // global registration
|
|
3096
|
+
resolve(instance.appContext[type], name)
|
|
3097
|
+
);
|
|
3098
|
+
if (!res && maybeSelfReference) {
|
|
3099
|
+
return Component;
|
|
3100
|
+
}
|
|
3101
|
+
if (warnMissing && !res) {
|
|
3102
|
+
const extra = type === COMPONENTS ? `
|
|
3103
|
+
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;
|
|
3104
|
+
warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
3105
|
+
}
|
|
3106
|
+
return res;
|
|
3107
|
+
} else {
|
|
3108
|
+
warn(
|
|
3109
|
+
`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
|
|
3110
|
+
);
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3113
|
+
function resolve(registry, name) {
|
|
3114
|
+
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
|
|
3115
|
+
}
|
|
3116
|
+
|
|
3058
3117
|
const isSuspense = (type) => type.__isSuspense;
|
|
3059
3118
|
const SuspenseImpl = {
|
|
3060
3119
|
name: "Suspense",
|
|
@@ -3589,7 +3648,7 @@ function normalizeSuspenseSlot(s) {
|
|
|
3589
3648
|
}
|
|
3590
3649
|
if (isArray(s)) {
|
|
3591
3650
|
const singleChild = filterSingleRoot(s);
|
|
3592
|
-
if (!singleChild) {
|
|
3651
|
+
if (!singleChild && s.filter((child) => child !== NULL_DYNAMIC_COMPONENT).length > 0) {
|
|
3593
3652
|
warn(`<Suspense> slots expect a single root node.`);
|
|
3594
3653
|
}
|
|
3595
3654
|
s = singleChild;
|
|
@@ -4793,65 +4852,6 @@ function getCompatListeners(instance) {
|
|
|
4793
4852
|
return listeners;
|
|
4794
4853
|
}
|
|
4795
4854
|
|
|
4796
|
-
const COMPONENTS = "components";
|
|
4797
|
-
const DIRECTIVES = "directives";
|
|
4798
|
-
const FILTERS = "filters";
|
|
4799
|
-
function resolveComponent(name, maybeSelfReference) {
|
|
4800
|
-
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
4801
|
-
}
|
|
4802
|
-
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
4803
|
-
function resolveDynamicComponent(component) {
|
|
4804
|
-
if (isString(component)) {
|
|
4805
|
-
return resolveAsset(COMPONENTS, component, false) || component;
|
|
4806
|
-
} else {
|
|
4807
|
-
return component || NULL_DYNAMIC_COMPONENT;
|
|
4808
|
-
}
|
|
4809
|
-
}
|
|
4810
|
-
function resolveDirective(name) {
|
|
4811
|
-
return resolveAsset(DIRECTIVES, name);
|
|
4812
|
-
}
|
|
4813
|
-
function resolveFilter$1(name) {
|
|
4814
|
-
return resolveAsset(FILTERS, name);
|
|
4815
|
-
}
|
|
4816
|
-
function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
|
|
4817
|
-
const instance = currentRenderingInstance || currentInstance;
|
|
4818
|
-
if (instance) {
|
|
4819
|
-
const Component = instance.type;
|
|
4820
|
-
if (type === COMPONENTS) {
|
|
4821
|
-
const selfName = getComponentName(
|
|
4822
|
-
Component,
|
|
4823
|
-
false
|
|
4824
|
-
/* do not include inferred name to avoid breaking existing code */
|
|
4825
|
-
);
|
|
4826
|
-
if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {
|
|
4827
|
-
return Component;
|
|
4828
|
-
}
|
|
4829
|
-
}
|
|
4830
|
-
const res = (
|
|
4831
|
-
// local registration
|
|
4832
|
-
// check instance[type] first which is resolved for options API
|
|
4833
|
-
resolve(instance[type] || Component[type], name) || // global registration
|
|
4834
|
-
resolve(instance.appContext[type], name)
|
|
4835
|
-
);
|
|
4836
|
-
if (!res && maybeSelfReference) {
|
|
4837
|
-
return Component;
|
|
4838
|
-
}
|
|
4839
|
-
if (warnMissing && !res) {
|
|
4840
|
-
const extra = type === COMPONENTS ? `
|
|
4841
|
-
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;
|
|
4842
|
-
warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
4843
|
-
}
|
|
4844
|
-
return res;
|
|
4845
|
-
} else {
|
|
4846
|
-
warn(
|
|
4847
|
-
`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
|
|
4848
|
-
);
|
|
4849
|
-
}
|
|
4850
|
-
}
|
|
4851
|
-
function resolve(registry, name) {
|
|
4852
|
-
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
|
|
4853
|
-
}
|
|
4854
|
-
|
|
4855
4855
|
function convertLegacyRenderFn(instance) {
|
|
4856
4856
|
const Component2 = instance.type;
|
|
4857
4857
|
const render = Component2.render;
|
|
@@ -6354,7 +6354,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6354
6354
|
return vm;
|
|
6355
6355
|
}
|
|
6356
6356
|
}
|
|
6357
|
-
Vue.version = `2.6.14-compat:${"3.3.
|
|
6357
|
+
Vue.version = `2.6.14-compat:${"3.3.8"}`;
|
|
6358
6358
|
Vue.config = singletonApp.config;
|
|
6359
6359
|
Vue.use = (p, ...options) => {
|
|
6360
6360
|
if (p && isFunction(p.install)) {
|
|
@@ -7683,15 +7683,15 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7683
7683
|
}
|
|
7684
7684
|
break;
|
|
7685
7685
|
case Comment:
|
|
7686
|
-
if (
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7686
|
+
if (isTemplateNode(node)) {
|
|
7687
|
+
nextNode = nextSibling(node);
|
|
7688
|
+
replaceNode(
|
|
7689
|
+
vnode.el = node.content.firstChild,
|
|
7690
|
+
node,
|
|
7691
|
+
parentComponent
|
|
7692
|
+
);
|
|
7693
|
+
} else if (domType !== 8 /* COMMENT */ || isFragmentStart) {
|
|
7694
|
+
nextNode = onMismatch();
|
|
7695
7695
|
} else {
|
|
7696
7696
|
nextNode = nextSibling(node);
|
|
7697
7697
|
}
|
|
@@ -8035,8 +8035,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
8035
8035
|
let parent = parentComponent;
|
|
8036
8036
|
while (parent) {
|
|
8037
8037
|
if (parent.vnode.el === oldNode) {
|
|
8038
|
-
parent.vnode.el = newNode;
|
|
8039
|
-
parent.subTree.el = newNode;
|
|
8038
|
+
parent.vnode.el = parent.subTree.el = newNode;
|
|
8040
8039
|
}
|
|
8041
8040
|
parent = parent.parent;
|
|
8042
8041
|
}
|
|
@@ -10941,7 +10940,7 @@ function isMemoSame(cached, memo) {
|
|
|
10941
10940
|
return true;
|
|
10942
10941
|
}
|
|
10943
10942
|
|
|
10944
|
-
const version = "3.3.
|
|
10943
|
+
const version = "3.3.8";
|
|
10945
10944
|
const _ssrUtils = {
|
|
10946
10945
|
createComponentInstance,
|
|
10947
10946
|
setupComponent,
|
|
@@ -15804,8 +15803,8 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
|
|
|
15804
15803
|
const isScopeVarReference = context.identifiers[rawExp];
|
|
15805
15804
|
const isAllowedGlobal = isGloballyAllowed(rawExp);
|
|
15806
15805
|
const isLiteral = isLiteralWhitelisted(rawExp);
|
|
15807
|
-
if (!asParams && !isScopeVarReference && !
|
|
15808
|
-
if (isConst(bindingMetadata[
|
|
15806
|
+
if (!asParams && !isScopeVarReference && !isLiteral && (!isAllowedGlobal || bindingMetadata[rawExp])) {
|
|
15807
|
+
if (isConst(bindingMetadata[rawExp])) {
|
|
15809
15808
|
node.constType = 1;
|
|
15810
15809
|
}
|
|
15811
15810
|
node.content = rewriteIdentifier(rawExp);
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -2149,6 +2149,56 @@ function updateHOCHostEl({ vnode, parent }, el) {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
2151
|
|
|
2152
|
+
const COMPONENTS = "components";
|
|
2153
|
+
const DIRECTIVES = "directives";
|
|
2154
|
+
const FILTERS = "filters";
|
|
2155
|
+
function resolveComponent(name, maybeSelfReference) {
|
|
2156
|
+
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
2157
|
+
}
|
|
2158
|
+
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
2159
|
+
function resolveDynamicComponent(component) {
|
|
2160
|
+
if (isString(component)) {
|
|
2161
|
+
return resolveAsset(COMPONENTS, component, false) || component;
|
|
2162
|
+
} else {
|
|
2163
|
+
return component || NULL_DYNAMIC_COMPONENT;
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
function resolveDirective(name) {
|
|
2167
|
+
return resolveAsset(DIRECTIVES, name);
|
|
2168
|
+
}
|
|
2169
|
+
function resolveFilter$1(name) {
|
|
2170
|
+
return resolveAsset(FILTERS, name);
|
|
2171
|
+
}
|
|
2172
|
+
function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
|
|
2173
|
+
const instance = currentRenderingInstance || currentInstance;
|
|
2174
|
+
if (instance) {
|
|
2175
|
+
const Component = instance.type;
|
|
2176
|
+
if (type === COMPONENTS) {
|
|
2177
|
+
const selfName = getComponentName(
|
|
2178
|
+
Component,
|
|
2179
|
+
false
|
|
2180
|
+
/* do not include inferred name to avoid breaking existing code */
|
|
2181
|
+
);
|
|
2182
|
+
if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {
|
|
2183
|
+
return Component;
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2186
|
+
const res = (
|
|
2187
|
+
// local registration
|
|
2188
|
+
// check instance[type] first which is resolved for options API
|
|
2189
|
+
resolve(instance[type] || Component[type], name) || // global registration
|
|
2190
|
+
resolve(instance.appContext[type], name)
|
|
2191
|
+
);
|
|
2192
|
+
if (!res && maybeSelfReference) {
|
|
2193
|
+
return Component;
|
|
2194
|
+
}
|
|
2195
|
+
return res;
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
function resolve(registry, name) {
|
|
2199
|
+
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
|
|
2200
|
+
}
|
|
2201
|
+
|
|
2152
2202
|
const isSuspense = (type) => type.__isSuspense;
|
|
2153
2203
|
const SuspenseImpl = {
|
|
2154
2204
|
name: "Suspense",
|
|
@@ -3784,56 +3834,6 @@ function getCompatListeners(instance) {
|
|
|
3784
3834
|
return listeners;
|
|
3785
3835
|
}
|
|
3786
3836
|
|
|
3787
|
-
const COMPONENTS = "components";
|
|
3788
|
-
const DIRECTIVES = "directives";
|
|
3789
|
-
const FILTERS = "filters";
|
|
3790
|
-
function resolveComponent(name, maybeSelfReference) {
|
|
3791
|
-
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
3792
|
-
}
|
|
3793
|
-
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
3794
|
-
function resolveDynamicComponent(component) {
|
|
3795
|
-
if (isString(component)) {
|
|
3796
|
-
return resolveAsset(COMPONENTS, component, false) || component;
|
|
3797
|
-
} else {
|
|
3798
|
-
return component || NULL_DYNAMIC_COMPONENT;
|
|
3799
|
-
}
|
|
3800
|
-
}
|
|
3801
|
-
function resolveDirective(name) {
|
|
3802
|
-
return resolveAsset(DIRECTIVES, name);
|
|
3803
|
-
}
|
|
3804
|
-
function resolveFilter$1(name) {
|
|
3805
|
-
return resolveAsset(FILTERS, name);
|
|
3806
|
-
}
|
|
3807
|
-
function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
|
|
3808
|
-
const instance = currentRenderingInstance || currentInstance;
|
|
3809
|
-
if (instance) {
|
|
3810
|
-
const Component = instance.type;
|
|
3811
|
-
if (type === COMPONENTS) {
|
|
3812
|
-
const selfName = getComponentName(
|
|
3813
|
-
Component,
|
|
3814
|
-
false
|
|
3815
|
-
/* do not include inferred name to avoid breaking existing code */
|
|
3816
|
-
);
|
|
3817
|
-
if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {
|
|
3818
|
-
return Component;
|
|
3819
|
-
}
|
|
3820
|
-
}
|
|
3821
|
-
const res = (
|
|
3822
|
-
// local registration
|
|
3823
|
-
// check instance[type] first which is resolved for options API
|
|
3824
|
-
resolve(instance[type] || Component[type], name) || // global registration
|
|
3825
|
-
resolve(instance.appContext[type], name)
|
|
3826
|
-
);
|
|
3827
|
-
if (!res && maybeSelfReference) {
|
|
3828
|
-
return Component;
|
|
3829
|
-
}
|
|
3830
|
-
return res;
|
|
3831
|
-
}
|
|
3832
|
-
}
|
|
3833
|
-
function resolve(registry, name) {
|
|
3834
|
-
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
|
|
3835
|
-
}
|
|
3836
|
-
|
|
3837
3837
|
function convertLegacyRenderFn(instance) {
|
|
3838
3838
|
const Component2 = instance.type;
|
|
3839
3839
|
const render = Component2.render;
|
|
@@ -5072,7 +5072,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5072
5072
|
return vm;
|
|
5073
5073
|
}
|
|
5074
5074
|
}
|
|
5075
|
-
Vue.version = `2.6.14-compat:${"3.3.
|
|
5075
|
+
Vue.version = `2.6.14-compat:${"3.3.8"}`;
|
|
5076
5076
|
Vue.config = singletonApp.config;
|
|
5077
5077
|
Vue.use = (p, ...options) => {
|
|
5078
5078
|
if (p && isFunction(p.install)) {
|
|
@@ -6124,15 +6124,15 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
6124
6124
|
}
|
|
6125
6125
|
break;
|
|
6126
6126
|
case Comment:
|
|
6127
|
-
if (
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6127
|
+
if (isTemplateNode(node)) {
|
|
6128
|
+
nextNode = nextSibling(node);
|
|
6129
|
+
replaceNode(
|
|
6130
|
+
vnode.el = node.content.firstChild,
|
|
6131
|
+
node,
|
|
6132
|
+
parentComponent
|
|
6133
|
+
);
|
|
6134
|
+
} else if (domType !== 8 /* COMMENT */ || isFragmentStart) {
|
|
6135
|
+
nextNode = onMismatch();
|
|
6136
6136
|
} else {
|
|
6137
6137
|
nextNode = nextSibling(node);
|
|
6138
6138
|
}
|
|
@@ -6446,8 +6446,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
6446
6446
|
let parent = parentComponent;
|
|
6447
6447
|
while (parent) {
|
|
6448
6448
|
if (parent.vnode.el === oldNode) {
|
|
6449
|
-
parent.vnode.el = newNode;
|
|
6450
|
-
parent.subTree.el = newNode;
|
|
6449
|
+
parent.vnode.el = parent.subTree.el = newNode;
|
|
6451
6450
|
}
|
|
6452
6451
|
parent = parent.parent;
|
|
6453
6452
|
}
|
|
@@ -8800,7 +8799,7 @@ function isMemoSame(cached, memo) {
|
|
|
8800
8799
|
return true;
|
|
8801
8800
|
}
|
|
8802
8801
|
|
|
8803
|
-
const version = "3.3.
|
|
8802
|
+
const version = "3.3.8";
|
|
8804
8803
|
const _ssrUtils = {
|
|
8805
8804
|
createComponentInstance,
|
|
8806
8805
|
setupComponent,
|
|
@@ -13416,8 +13415,8 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
|
|
|
13416
13415
|
const isScopeVarReference = context.identifiers[rawExp];
|
|
13417
13416
|
const isAllowedGlobal = isGloballyAllowed(rawExp);
|
|
13418
13417
|
const isLiteral = isLiteralWhitelisted(rawExp);
|
|
13419
|
-
if (!asParams && !isScopeVarReference && !
|
|
13420
|
-
if (isConst(bindingMetadata[
|
|
13418
|
+
if (!asParams && !isScopeVarReference && !isLiteral && (!isAllowedGlobal || bindingMetadata[rawExp])) {
|
|
13419
|
+
if (isConst(bindingMetadata[rawExp])) {
|
|
13421
13420
|
node.constType = 1;
|
|
13422
13421
|
}
|
|
13423
13422
|
node.content = rewriteIdentifier(rawExp);
|
package/dist/vue.esm-browser.js
CHANGED
|
@@ -2982,6 +2982,65 @@ function updateHOCHostEl({ vnode, parent }, el) {
|
|
|
2982
2982
|
}
|
|
2983
2983
|
}
|
|
2984
2984
|
|
|
2985
|
+
const COMPONENTS = "components";
|
|
2986
|
+
const DIRECTIVES = "directives";
|
|
2987
|
+
const FILTERS = "filters";
|
|
2988
|
+
function resolveComponent(name, maybeSelfReference) {
|
|
2989
|
+
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
2990
|
+
}
|
|
2991
|
+
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
2992
|
+
function resolveDynamicComponent(component) {
|
|
2993
|
+
if (isString(component)) {
|
|
2994
|
+
return resolveAsset(COMPONENTS, component, false) || component;
|
|
2995
|
+
} else {
|
|
2996
|
+
return component || NULL_DYNAMIC_COMPONENT;
|
|
2997
|
+
}
|
|
2998
|
+
}
|
|
2999
|
+
function resolveDirective(name) {
|
|
3000
|
+
return resolveAsset(DIRECTIVES, name);
|
|
3001
|
+
}
|
|
3002
|
+
function resolveFilter$1(name) {
|
|
3003
|
+
return resolveAsset(FILTERS, name);
|
|
3004
|
+
}
|
|
3005
|
+
function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
|
|
3006
|
+
const instance = currentRenderingInstance || currentInstance;
|
|
3007
|
+
if (instance) {
|
|
3008
|
+
const Component = instance.type;
|
|
3009
|
+
if (type === COMPONENTS) {
|
|
3010
|
+
const selfName = getComponentName(
|
|
3011
|
+
Component,
|
|
3012
|
+
false
|
|
3013
|
+
/* do not include inferred name to avoid breaking existing code */
|
|
3014
|
+
);
|
|
3015
|
+
if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {
|
|
3016
|
+
return Component;
|
|
3017
|
+
}
|
|
3018
|
+
}
|
|
3019
|
+
const res = (
|
|
3020
|
+
// local registration
|
|
3021
|
+
// check instance[type] first which is resolved for options API
|
|
3022
|
+
resolve(instance[type] || Component[type], name) || // global registration
|
|
3023
|
+
resolve(instance.appContext[type], name)
|
|
3024
|
+
);
|
|
3025
|
+
if (!res && maybeSelfReference) {
|
|
3026
|
+
return Component;
|
|
3027
|
+
}
|
|
3028
|
+
if (warnMissing && !res) {
|
|
3029
|
+
const extra = type === COMPONENTS ? `
|
|
3030
|
+
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;
|
|
3031
|
+
warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
3032
|
+
}
|
|
3033
|
+
return res;
|
|
3034
|
+
} else {
|
|
3035
|
+
warn(
|
|
3036
|
+
`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
|
|
3037
|
+
);
|
|
3038
|
+
}
|
|
3039
|
+
}
|
|
3040
|
+
function resolve(registry, name) {
|
|
3041
|
+
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
|
|
3042
|
+
}
|
|
3043
|
+
|
|
2985
3044
|
const isSuspense = (type) => type.__isSuspense;
|
|
2986
3045
|
const SuspenseImpl = {
|
|
2987
3046
|
name: "Suspense",
|
|
@@ -3516,7 +3575,7 @@ function normalizeSuspenseSlot(s) {
|
|
|
3516
3575
|
}
|
|
3517
3576
|
if (isArray(s)) {
|
|
3518
3577
|
const singleChild = filterSingleRoot(s);
|
|
3519
|
-
if (!singleChild) {
|
|
3578
|
+
if (!singleChild && s.filter((child) => child !== NULL_DYNAMIC_COMPONENT).length > 0) {
|
|
3520
3579
|
warn(`<Suspense> slots expect a single root node.`);
|
|
3521
3580
|
}
|
|
3522
3581
|
s = singleChild;
|
|
@@ -4693,65 +4752,6 @@ function getCompatListeners(instance) {
|
|
|
4693
4752
|
return listeners;
|
|
4694
4753
|
}
|
|
4695
4754
|
|
|
4696
|
-
const COMPONENTS = "components";
|
|
4697
|
-
const DIRECTIVES = "directives";
|
|
4698
|
-
const FILTERS = "filters";
|
|
4699
|
-
function resolveComponent(name, maybeSelfReference) {
|
|
4700
|
-
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
4701
|
-
}
|
|
4702
|
-
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
4703
|
-
function resolveDynamicComponent(component) {
|
|
4704
|
-
if (isString(component)) {
|
|
4705
|
-
return resolveAsset(COMPONENTS, component, false) || component;
|
|
4706
|
-
} else {
|
|
4707
|
-
return component || NULL_DYNAMIC_COMPONENT;
|
|
4708
|
-
}
|
|
4709
|
-
}
|
|
4710
|
-
function resolveDirective(name) {
|
|
4711
|
-
return resolveAsset(DIRECTIVES, name);
|
|
4712
|
-
}
|
|
4713
|
-
function resolveFilter$1(name) {
|
|
4714
|
-
return resolveAsset(FILTERS, name);
|
|
4715
|
-
}
|
|
4716
|
-
function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
|
|
4717
|
-
const instance = currentRenderingInstance || currentInstance;
|
|
4718
|
-
if (instance) {
|
|
4719
|
-
const Component = instance.type;
|
|
4720
|
-
if (type === COMPONENTS) {
|
|
4721
|
-
const selfName = getComponentName(
|
|
4722
|
-
Component,
|
|
4723
|
-
false
|
|
4724
|
-
/* do not include inferred name to avoid breaking existing code */
|
|
4725
|
-
);
|
|
4726
|
-
if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {
|
|
4727
|
-
return Component;
|
|
4728
|
-
}
|
|
4729
|
-
}
|
|
4730
|
-
const res = (
|
|
4731
|
-
// local registration
|
|
4732
|
-
// check instance[type] first which is resolved for options API
|
|
4733
|
-
resolve(instance[type] || Component[type], name) || // global registration
|
|
4734
|
-
resolve(instance.appContext[type], name)
|
|
4735
|
-
);
|
|
4736
|
-
if (!res && maybeSelfReference) {
|
|
4737
|
-
return Component;
|
|
4738
|
-
}
|
|
4739
|
-
if (warnMissing && !res) {
|
|
4740
|
-
const extra = type === COMPONENTS ? `
|
|
4741
|
-
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;
|
|
4742
|
-
warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
4743
|
-
}
|
|
4744
|
-
return res;
|
|
4745
|
-
} else {
|
|
4746
|
-
warn(
|
|
4747
|
-
`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
|
|
4748
|
-
);
|
|
4749
|
-
}
|
|
4750
|
-
}
|
|
4751
|
-
function resolve(registry, name) {
|
|
4752
|
-
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
|
|
4753
|
-
}
|
|
4754
|
-
|
|
4755
4755
|
function convertLegacyRenderFn(instance) {
|
|
4756
4756
|
const Component2 = instance.type;
|
|
4757
4757
|
const render = Component2.render;
|
|
@@ -6254,7 +6254,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6254
6254
|
return vm;
|
|
6255
6255
|
}
|
|
6256
6256
|
}
|
|
6257
|
-
Vue.version = `2.6.14-compat:${"3.3.
|
|
6257
|
+
Vue.version = `2.6.14-compat:${"3.3.8"}`;
|
|
6258
6258
|
Vue.config = singletonApp.config;
|
|
6259
6259
|
Vue.use = (p, ...options) => {
|
|
6260
6260
|
if (p && isFunction(p.install)) {
|
|
@@ -7583,15 +7583,15 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7583
7583
|
}
|
|
7584
7584
|
break;
|
|
7585
7585
|
case Comment:
|
|
7586
|
-
if (
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7586
|
+
if (isTemplateNode(node)) {
|
|
7587
|
+
nextNode = nextSibling(node);
|
|
7588
|
+
replaceNode(
|
|
7589
|
+
vnode.el = node.content.firstChild,
|
|
7590
|
+
node,
|
|
7591
|
+
parentComponent
|
|
7592
|
+
);
|
|
7593
|
+
} else if (domType !== 8 /* COMMENT */ || isFragmentStart) {
|
|
7594
|
+
nextNode = onMismatch();
|
|
7595
7595
|
} else {
|
|
7596
7596
|
nextNode = nextSibling(node);
|
|
7597
7597
|
}
|
|
@@ -7935,8 +7935,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7935
7935
|
let parent = parentComponent;
|
|
7936
7936
|
while (parent) {
|
|
7937
7937
|
if (parent.vnode.el === oldNode) {
|
|
7938
|
-
parent.vnode.el = newNode;
|
|
7939
|
-
parent.subTree.el = newNode;
|
|
7938
|
+
parent.vnode.el = parent.subTree.el = newNode;
|
|
7940
7939
|
}
|
|
7941
7940
|
parent = parent.parent;
|
|
7942
7941
|
}
|
|
@@ -10829,7 +10828,7 @@ function isMemoSame(cached, memo) {
|
|
|
10829
10828
|
return true;
|
|
10830
10829
|
}
|
|
10831
10830
|
|
|
10832
|
-
const version = "3.3.
|
|
10831
|
+
const version = "3.3.8";
|
|
10833
10832
|
const ssrUtils = null;
|
|
10834
10833
|
const resolveFilter = resolveFilter$1 ;
|
|
10835
10834
|
const _compatUtils = {
|