@vue/compat 3.4.21 → 3.4.23
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 +211 -127
- package/dist/vue.cjs.prod.js +178 -119
- package/dist/vue.esm-browser.js +209 -127
- package/dist/vue.esm-browser.prod.js +6 -5
- package/dist/vue.esm-bundler.js +217 -137
- package/dist/vue.global.js +209 -127
- package/dist/vue.global.prod.js +7 -6
- package/dist/vue.runtime.esm-browser.js +186 -124
- package/dist/vue.runtime.esm-browser.prod.js +6 -5
- package/dist/vue.runtime.esm-bundler.js +194 -134
- package/dist/vue.runtime.global.js +186 -124
- package/dist/vue.runtime.global.prod.js +7 -6
- package/package.json +4 -4
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.23
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
7
|
+
// @__NO_SIDE_EFFECTS__
|
|
6
8
|
function makeMap(str, expectsLowerCase) {
|
|
7
9
|
const set = new Set(str.split(","));
|
|
8
10
|
return expectsLowerCase ? (val) => set.has(val.toLowerCase()) : (val) => set.has(val);
|
|
@@ -289,7 +291,11 @@ const replacer = (_key, val) => {
|
|
|
289
291
|
};
|
|
290
292
|
const stringifySymbol = (v, i = "") => {
|
|
291
293
|
var _a;
|
|
292
|
-
return
|
|
294
|
+
return (
|
|
295
|
+
// Symbol.description in es2019+ so we need to cast here to pass
|
|
296
|
+
// the lib: es2016 check
|
|
297
|
+
isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v
|
|
298
|
+
);
|
|
293
299
|
};
|
|
294
300
|
|
|
295
301
|
function warn$2(msg, ...args) {
|
|
@@ -725,6 +731,8 @@ function createArrayInstrumentations() {
|
|
|
725
731
|
return instrumentations;
|
|
726
732
|
}
|
|
727
733
|
function hasOwnProperty(key) {
|
|
734
|
+
if (!isSymbol(key))
|
|
735
|
+
key = String(key);
|
|
728
736
|
const obj = toRaw(this);
|
|
729
737
|
track(obj, "has", key);
|
|
730
738
|
return obj.hasOwnProperty(key);
|
|
@@ -1077,23 +1085,16 @@ function createInstrumentations() {
|
|
|
1077
1085
|
clear: createReadonlyMethod("clear"),
|
|
1078
1086
|
forEach: createForEach(true, true)
|
|
1079
1087
|
};
|
|
1080
|
-
const iteratorMethods = [
|
|
1088
|
+
const iteratorMethods = [
|
|
1089
|
+
"keys",
|
|
1090
|
+
"values",
|
|
1091
|
+
"entries",
|
|
1092
|
+
Symbol.iterator
|
|
1093
|
+
];
|
|
1081
1094
|
iteratorMethods.forEach((method) => {
|
|
1082
|
-
mutableInstrumentations2[method] = createIterableMethod(
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
false
|
|
1086
|
-
);
|
|
1087
|
-
readonlyInstrumentations2[method] = createIterableMethod(
|
|
1088
|
-
method,
|
|
1089
|
-
true,
|
|
1090
|
-
false
|
|
1091
|
-
);
|
|
1092
|
-
shallowInstrumentations2[method] = createIterableMethod(
|
|
1093
|
-
method,
|
|
1094
|
-
false,
|
|
1095
|
-
true
|
|
1096
|
-
);
|
|
1095
|
+
mutableInstrumentations2[method] = createIterableMethod(method, false, false);
|
|
1096
|
+
readonlyInstrumentations2[method] = createIterableMethod(method, true, false);
|
|
1097
|
+
shallowInstrumentations2[method] = createIterableMethod(method, false, true);
|
|
1097
1098
|
shallowReadonlyInstrumentations2[method] = createIterableMethod(
|
|
1098
1099
|
method,
|
|
1099
1100
|
true,
|
|
@@ -1250,7 +1251,7 @@ function isShallow(value) {
|
|
|
1250
1251
|
return !!(value && value["__v_isShallow"]);
|
|
1251
1252
|
}
|
|
1252
1253
|
function isProxy(value) {
|
|
1253
|
-
return
|
|
1254
|
+
return value ? !!value["__v_raw"] : false;
|
|
1254
1255
|
}
|
|
1255
1256
|
function toRaw(observed) {
|
|
1256
1257
|
const raw = observed && observed["__v_raw"];
|
|
@@ -1714,11 +1715,17 @@ function callWithAsyncErrorHandling(fn, instance, type, args) {
|
|
|
1714
1715
|
}
|
|
1715
1716
|
return res;
|
|
1716
1717
|
}
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1718
|
+
if (isArray(fn)) {
|
|
1719
|
+
const values = [];
|
|
1720
|
+
for (let i = 0; i < fn.length; i++) {
|
|
1721
|
+
values.push(callWithAsyncErrorHandling(fn[i], instance, type, args));
|
|
1722
|
+
}
|
|
1723
|
+
return values;
|
|
1724
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
1725
|
+
warn$1(
|
|
1726
|
+
`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof fn}`
|
|
1727
|
+
);
|
|
1720
1728
|
}
|
|
1721
|
-
return values;
|
|
1722
1729
|
}
|
|
1723
1730
|
function handleError(err, instance, type, throwInDev = true) {
|
|
1724
1731
|
const contextVNode = instance ? instance.vnode : null;
|
|
@@ -1739,12 +1746,14 @@ function handleError(err, instance, type, throwInDev = true) {
|
|
|
1739
1746
|
}
|
|
1740
1747
|
const appErrorHandler = instance.appContext.config.errorHandler;
|
|
1741
1748
|
if (appErrorHandler) {
|
|
1749
|
+
pauseTracking();
|
|
1742
1750
|
callWithErrorHandling(
|
|
1743
1751
|
appErrorHandler,
|
|
1744
1752
|
null,
|
|
1745
1753
|
10,
|
|
1746
1754
|
[err, exposedInstance, errorInfo]
|
|
1747
1755
|
);
|
|
1756
|
+
resetTracking();
|
|
1748
1757
|
return;
|
|
1749
1758
|
}
|
|
1750
1759
|
}
|
|
@@ -2122,6 +2131,8 @@ const devtoolsComponentRemoved = (component) => {
|
|
|
2122
2131
|
_devtoolsComponentRemoved(component);
|
|
2123
2132
|
}
|
|
2124
2133
|
};
|
|
2134
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
2135
|
+
// @__NO_SIDE_EFFECTS__
|
|
2125
2136
|
function createDevtoolsComponentHook(hook) {
|
|
2126
2137
|
return (component) => {
|
|
2127
2138
|
emit$2(
|
|
@@ -4805,7 +4816,7 @@ const KeepAliveImpl = {
|
|
|
4805
4816
|
return () => {
|
|
4806
4817
|
pendingCacheKey = null;
|
|
4807
4818
|
if (!slots.default) {
|
|
4808
|
-
return null;
|
|
4819
|
+
return current = null;
|
|
4809
4820
|
}
|
|
4810
4821
|
const children = slots.default();
|
|
4811
4822
|
const rawVNode = children[0];
|
|
@@ -5536,47 +5547,74 @@ function installCompatInstanceProperties(map) {
|
|
|
5536
5547
|
$once: (i) => once.bind(null, i),
|
|
5537
5548
|
$off: (i) => off.bind(null, i),
|
|
5538
5549
|
$children: getCompatChildren,
|
|
5539
|
-
$listeners: getCompatListeners
|
|
5550
|
+
$listeners: getCompatListeners,
|
|
5551
|
+
// inject additional properties into $options for compat
|
|
5552
|
+
// e.g. vuex needs this.$options.parent
|
|
5553
|
+
$options: (i) => {
|
|
5554
|
+
if (!isCompatEnabled("PRIVATE_APIS", i)) {
|
|
5555
|
+
return resolveMergedOptions(i);
|
|
5556
|
+
}
|
|
5557
|
+
if (i.resolvedOptions) {
|
|
5558
|
+
return i.resolvedOptions;
|
|
5559
|
+
}
|
|
5560
|
+
const res = i.resolvedOptions = extend({}, resolveMergedOptions(i));
|
|
5561
|
+
Object.defineProperties(res, {
|
|
5562
|
+
parent: {
|
|
5563
|
+
get() {
|
|
5564
|
+
warnDeprecation("PRIVATE_APIS", i, "$options.parent");
|
|
5565
|
+
return i.proxy.$parent;
|
|
5566
|
+
}
|
|
5567
|
+
},
|
|
5568
|
+
propsData: {
|
|
5569
|
+
get() {
|
|
5570
|
+
warnDeprecation(
|
|
5571
|
+
"PRIVATE_APIS",
|
|
5572
|
+
i,
|
|
5573
|
+
"$options.propsData"
|
|
5574
|
+
);
|
|
5575
|
+
return i.vnode.props;
|
|
5576
|
+
}
|
|
5577
|
+
}
|
|
5578
|
+
});
|
|
5579
|
+
return res;
|
|
5580
|
+
}
|
|
5540
5581
|
});
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
_d: () => legacyBindDynamicKeys,
|
|
5578
|
-
_p: () => legacyPrependModifier
|
|
5579
|
-
});
|
|
5582
|
+
const privateAPIs = {
|
|
5583
|
+
// needed by many libs / render fns
|
|
5584
|
+
$vnode: (i) => i.vnode,
|
|
5585
|
+
// some private properties that are likely accessed...
|
|
5586
|
+
_self: (i) => i.proxy,
|
|
5587
|
+
_uid: (i) => i.uid,
|
|
5588
|
+
_data: (i) => i.data,
|
|
5589
|
+
_isMounted: (i) => i.isMounted,
|
|
5590
|
+
_isDestroyed: (i) => i.isUnmounted,
|
|
5591
|
+
// v2 render helpers
|
|
5592
|
+
$createElement: () => compatH,
|
|
5593
|
+
_c: () => compatH,
|
|
5594
|
+
_o: () => legacyMarkOnce,
|
|
5595
|
+
_n: () => looseToNumber,
|
|
5596
|
+
_s: () => toDisplayString,
|
|
5597
|
+
_l: () => renderList,
|
|
5598
|
+
_t: (i) => legacyRenderSlot.bind(null, i),
|
|
5599
|
+
_q: () => looseEqual,
|
|
5600
|
+
_i: () => looseIndexOf,
|
|
5601
|
+
_m: (i) => legacyRenderStatic.bind(null, i),
|
|
5602
|
+
_f: () => resolveFilter$1,
|
|
5603
|
+
_k: (i) => legacyCheckKeyCodes.bind(null, i),
|
|
5604
|
+
_b: () => legacyBindObjectProps,
|
|
5605
|
+
_v: () => createTextVNode,
|
|
5606
|
+
_e: () => createCommentVNode,
|
|
5607
|
+
_u: () => legacyresolveScopedSlots,
|
|
5608
|
+
_g: () => legacyBindObjectListeners,
|
|
5609
|
+
_d: () => legacyBindDynamicKeys,
|
|
5610
|
+
_p: () => legacyPrependModifier
|
|
5611
|
+
};
|
|
5612
|
+
for (const key in privateAPIs) {
|
|
5613
|
+
map[key] = (i) => {
|
|
5614
|
+
if (isCompatEnabled("PRIVATE_APIS", i)) {
|
|
5615
|
+
return privateAPIs[key](i);
|
|
5616
|
+
}
|
|
5617
|
+
};
|
|
5580
5618
|
}
|
|
5581
5619
|
}
|
|
5582
5620
|
|
|
@@ -5617,6 +5655,9 @@ const isReservedPrefix = (key) => key === "_" || key === "$";
|
|
|
5617
5655
|
const hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn(state, key);
|
|
5618
5656
|
const PublicInstanceProxyHandlers = {
|
|
5619
5657
|
get({ _: instance }, key) {
|
|
5658
|
+
if (key === "__v_skip") {
|
|
5659
|
+
return true;
|
|
5660
|
+
}
|
|
5620
5661
|
const { ctx, setupState, data, props, accessCache, type, appContext } = instance;
|
|
5621
5662
|
if (!!(process.env.NODE_ENV !== "production") && key === "__isVue") {
|
|
5622
5663
|
return true;
|
|
@@ -5659,7 +5700,7 @@ const PublicInstanceProxyHandlers = {
|
|
|
5659
5700
|
let cssModule, globalProperties;
|
|
5660
5701
|
if (publicGetter) {
|
|
5661
5702
|
if (key === "$attrs") {
|
|
5662
|
-
track(instance, "get",
|
|
5703
|
+
track(instance.attrs, "get", "");
|
|
5663
5704
|
!!(process.env.NODE_ENV !== "production") && markAttrsAccessed();
|
|
5664
5705
|
} else if (!!(process.env.NODE_ENV !== "production") && key === "$slots") {
|
|
5665
5706
|
track(instance, "get", key);
|
|
@@ -6473,7 +6514,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6473
6514
|
return vm;
|
|
6474
6515
|
}
|
|
6475
6516
|
}
|
|
6476
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6517
|
+
Vue.version = `2.6.14-compat:${"3.4.23"}`;
|
|
6477
6518
|
Vue.config = singletonApp.config;
|
|
6478
6519
|
Vue.use = (p, ...options) => {
|
|
6479
6520
|
if (p && isFunction(p.install)) {
|
|
@@ -6668,15 +6709,14 @@ function applySingletonPrototype(app, Ctor) {
|
|
|
6668
6709
|
app.config.globalProperties = Object.create(Ctor.prototype);
|
|
6669
6710
|
}
|
|
6670
6711
|
let hasPrototypeAugmentations = false;
|
|
6671
|
-
const
|
|
6672
|
-
for (const key in descriptors) {
|
|
6712
|
+
for (const key of Object.getOwnPropertyNames(Ctor.prototype)) {
|
|
6673
6713
|
if (key !== "constructor") {
|
|
6674
6714
|
hasPrototypeAugmentations = true;
|
|
6675
6715
|
if (enabled) {
|
|
6676
6716
|
Object.defineProperty(
|
|
6677
6717
|
app.config.globalProperties,
|
|
6678
6718
|
key,
|
|
6679
|
-
|
|
6719
|
+
Object.getOwnPropertyDescriptor(Ctor.prototype, key)
|
|
6680
6720
|
);
|
|
6681
6721
|
}
|
|
6682
6722
|
}
|
|
@@ -7114,10 +7154,13 @@ function shouldSkipAttr(key, instance) {
|
|
|
7114
7154
|
return false;
|
|
7115
7155
|
}
|
|
7116
7156
|
|
|
7157
|
+
const internalObjectProto = /* @__PURE__ */ Object.create(null);
|
|
7158
|
+
const createInternalObject = () => Object.create(internalObjectProto);
|
|
7159
|
+
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
7160
|
+
|
|
7117
7161
|
function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
7118
7162
|
const props = {};
|
|
7119
|
-
const attrs =
|
|
7120
|
-
def(attrs, InternalObjectKey, 1);
|
|
7163
|
+
const attrs = createInternalObject();
|
|
7121
7164
|
instance.propsDefaults = /* @__PURE__ */ Object.create(null);
|
|
7122
7165
|
setFullProps(instance, rawProps, props, attrs);
|
|
7123
7166
|
for (const key in instance.propsOptions[0]) {
|
|
@@ -7239,7 +7282,7 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
|
|
|
7239
7282
|
}
|
|
7240
7283
|
}
|
|
7241
7284
|
if (hasAttrsChanged) {
|
|
7242
|
-
trigger(instance, "set", "
|
|
7285
|
+
trigger(instance.attrs, "set", "");
|
|
7243
7286
|
}
|
|
7244
7287
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
7245
7288
|
validateProps(rawProps || {}, props, instance);
|
|
@@ -7597,21 +7640,20 @@ const initSlots = (instance, children) => {
|
|
|
7597
7640
|
const type = children._;
|
|
7598
7641
|
if (type) {
|
|
7599
7642
|
instance.slots = toRaw(children);
|
|
7600
|
-
def(
|
|
7643
|
+
def(instance.slots, "_", type);
|
|
7601
7644
|
} else {
|
|
7602
7645
|
normalizeObjectSlots(
|
|
7603
7646
|
children,
|
|
7604
|
-
instance.slots =
|
|
7647
|
+
instance.slots = createInternalObject(),
|
|
7605
7648
|
instance
|
|
7606
7649
|
);
|
|
7607
7650
|
}
|
|
7608
7651
|
} else {
|
|
7609
|
-
instance.slots =
|
|
7652
|
+
instance.slots = createInternalObject();
|
|
7610
7653
|
if (children) {
|
|
7611
7654
|
normalizeVNodeSlots(instance, children);
|
|
7612
7655
|
}
|
|
7613
7656
|
}
|
|
7614
|
-
def(instance.slots, InternalObjectKey, 1);
|
|
7615
7657
|
};
|
|
7616
7658
|
const updateSlots = (instance, children, optimized) => {
|
|
7617
7659
|
const { vnode, slots } = instance;
|
|
@@ -7783,6 +7825,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7783
7825
|
}
|
|
7784
7826
|
};
|
|
7785
7827
|
const hydrateNode = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => {
|
|
7828
|
+
optimized = optimized || !!vnode.dynamicChildren;
|
|
7786
7829
|
const isFragmentStart = isComment(node) && node.data === "[";
|
|
7787
7830
|
const onMismatch = () => handleMismatch(
|
|
7788
7831
|
node,
|
|
@@ -8028,9 +8071,9 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
8028
8071
|
}
|
|
8029
8072
|
}
|
|
8030
8073
|
if (props) {
|
|
8031
|
-
if (!!(process.env.NODE_ENV !== "production") || forcePatch || !optimized || patchFlag & (16 | 32)) {
|
|
8074
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ || forcePatch || !optimized || patchFlag & (16 | 32)) {
|
|
8032
8075
|
for (const key in props) {
|
|
8033
|
-
if (!!(process.env.NODE_ENV !== "production") && propHasMismatch(el, key, props[key], vnode, parentComponent)) {
|
|
8076
|
+
if ((!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && propHasMismatch(el, key, props[key], vnode, parentComponent)) {
|
|
8034
8077
|
hasMismatch = true;
|
|
8035
8078
|
}
|
|
8036
8079
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
@@ -10350,7 +10393,6 @@ const createVNodeWithArgsTransform = (...args) => {
|
|
|
10350
10393
|
...vnodeArgsTransformer ? vnodeArgsTransformer(args, currentRenderingInstance) : args
|
|
10351
10394
|
);
|
|
10352
10395
|
};
|
|
10353
|
-
const InternalObjectKey = `__vInternal`;
|
|
10354
10396
|
const normalizeKey = ({ key }) => key != null ? key : null;
|
|
10355
10397
|
const normalizeRef = ({
|
|
10356
10398
|
ref,
|
|
@@ -10490,7 +10532,7 @@ Component that was made reactive: `,
|
|
|
10490
10532
|
function guardReactiveProps(props) {
|
|
10491
10533
|
if (!props)
|
|
10492
10534
|
return null;
|
|
10493
|
-
return isProxy(props) ||
|
|
10535
|
+
return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
10494
10536
|
}
|
|
10495
10537
|
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
10496
10538
|
const { props, ref, patchFlag, children } = vnode;
|
|
@@ -10598,7 +10640,7 @@ function normalizeChildren(vnode, children) {
|
|
|
10598
10640
|
} else {
|
|
10599
10641
|
type = 32;
|
|
10600
10642
|
const slotFlag = children._;
|
|
10601
|
-
if (!slotFlag && !(
|
|
10643
|
+
if (!slotFlag && !isInternalObject(children)) {
|
|
10602
10644
|
children._ctx = currentRenderingInstance;
|
|
10603
10645
|
} else if (slotFlag === 3 && currentRenderingInstance) {
|
|
10604
10646
|
if (currentRenderingInstance.slots._ === 1) {
|
|
@@ -10836,7 +10878,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
10836
10878
|
}
|
|
10837
10879
|
}
|
|
10838
10880
|
instance.accessCache = /* @__PURE__ */ Object.create(null);
|
|
10839
|
-
instance.proxy =
|
|
10881
|
+
instance.proxy = new Proxy(instance.ctx, PublicInstanceProxyHandlers);
|
|
10840
10882
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10841
10883
|
exposePropsOnRenderContext(instance);
|
|
10842
10884
|
}
|
|
@@ -10982,31 +11024,26 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
10982
11024
|
}
|
|
10983
11025
|
}
|
|
10984
11026
|
}
|
|
10985
|
-
|
|
10986
|
-
|
|
10987
|
-
|
|
10988
|
-
|
|
10989
|
-
|
|
10990
|
-
|
|
10991
|
-
|
|
10992
|
-
|
|
10993
|
-
|
|
10994
|
-
|
|
10995
|
-
|
|
10996
|
-
|
|
10997
|
-
|
|
10998
|
-
|
|
10999
|
-
|
|
11000
|
-
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11005
|
-
return target[key];
|
|
11006
|
-
}
|
|
11007
|
-
}
|
|
11008
|
-
));
|
|
11009
|
-
}
|
|
11027
|
+
const attrsProxyHandlers = !!(process.env.NODE_ENV !== "production") ? {
|
|
11028
|
+
get(target, key) {
|
|
11029
|
+
markAttrsAccessed();
|
|
11030
|
+
track(target, "get", "");
|
|
11031
|
+
return target[key];
|
|
11032
|
+
},
|
|
11033
|
+
set() {
|
|
11034
|
+
warn$1(`setupContext.attrs is readonly.`);
|
|
11035
|
+
return false;
|
|
11036
|
+
},
|
|
11037
|
+
deleteProperty() {
|
|
11038
|
+
warn$1(`setupContext.attrs is readonly.`);
|
|
11039
|
+
return false;
|
|
11040
|
+
}
|
|
11041
|
+
} : {
|
|
11042
|
+
get(target, key) {
|
|
11043
|
+
track(target, "get", "");
|
|
11044
|
+
return target[key];
|
|
11045
|
+
}
|
|
11046
|
+
};
|
|
11010
11047
|
function getSlotsProxy(instance) {
|
|
11011
11048
|
return instance.slotsProxy || (instance.slotsProxy = new Proxy(instance.slots, {
|
|
11012
11049
|
get(target, key) {
|
|
@@ -11040,9 +11077,10 @@ function createSetupContext(instance) {
|
|
|
11040
11077
|
instance.exposed = exposed || {};
|
|
11041
11078
|
};
|
|
11042
11079
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
11080
|
+
let attrsProxy;
|
|
11043
11081
|
return Object.freeze({
|
|
11044
11082
|
get attrs() {
|
|
11045
|
-
return
|
|
11083
|
+
return attrsProxy || (attrsProxy = new Proxy(instance.attrs, attrsProxyHandlers));
|
|
11046
11084
|
},
|
|
11047
11085
|
get slots() {
|
|
11048
11086
|
return getSlotsProxy(instance);
|
|
@@ -11054,9 +11092,7 @@ function createSetupContext(instance) {
|
|
|
11054
11092
|
});
|
|
11055
11093
|
} else {
|
|
11056
11094
|
return {
|
|
11057
|
-
|
|
11058
|
-
return getAttrsProxy(instance);
|
|
11059
|
-
},
|
|
11095
|
+
attrs: new Proxy(instance.attrs, attrsProxyHandlers),
|
|
11060
11096
|
slots: instance.slots,
|
|
11061
11097
|
emit: instance.emit,
|
|
11062
11098
|
expose
|
|
@@ -11396,7 +11432,7 @@ function isMemoSame(cached, memo) {
|
|
|
11396
11432
|
return true;
|
|
11397
11433
|
}
|
|
11398
11434
|
|
|
11399
|
-
const version = "3.4.
|
|
11435
|
+
const version = "3.4.23";
|
|
11400
11436
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11401
11437
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11402
11438
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -11881,8 +11917,8 @@ function useCssVars(getter) {
|
|
|
11881
11917
|
setVarsOnVNode(instance.subTree, vars);
|
|
11882
11918
|
updateTeleports(vars);
|
|
11883
11919
|
};
|
|
11884
|
-
watchPostEffect(setVars);
|
|
11885
11920
|
onMounted(() => {
|
|
11921
|
+
watchPostEffect(setVars);
|
|
11886
11922
|
const ob = new MutationObserver(setVars);
|
|
11887
11923
|
ob.observe(instance.subTree.el.parentNode, { childList: true });
|
|
11888
11924
|
onUnmounted(() => ob.disconnect());
|
|
@@ -12148,11 +12184,14 @@ function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
|
12148
12184
|
const invokers = el[veiKey] || (el[veiKey] = {});
|
|
12149
12185
|
const existingInvoker = invokers[rawName];
|
|
12150
12186
|
if (nextValue && existingInvoker) {
|
|
12151
|
-
existingInvoker.value = nextValue;
|
|
12187
|
+
existingInvoker.value = !!(process.env.NODE_ENV !== "production") ? sanitizeEventValue(nextValue, rawName) : nextValue;
|
|
12152
12188
|
} else {
|
|
12153
12189
|
const [name, options] = parseName(rawName);
|
|
12154
12190
|
if (nextValue) {
|
|
12155
|
-
const invoker = invokers[rawName] = createInvoker(
|
|
12191
|
+
const invoker = invokers[rawName] = createInvoker(
|
|
12192
|
+
!!(process.env.NODE_ENV !== "production") ? sanitizeEventValue(nextValue, rawName) : nextValue,
|
|
12193
|
+
instance
|
|
12194
|
+
);
|
|
12156
12195
|
addEventListener(el, name, invoker, options);
|
|
12157
12196
|
} else if (existingInvoker) {
|
|
12158
12197
|
removeEventListener(el, name, existingInvoker, options);
|
|
@@ -12195,6 +12234,16 @@ function createInvoker(initialValue, instance) {
|
|
|
12195
12234
|
invoker.attached = getNow();
|
|
12196
12235
|
return invoker;
|
|
12197
12236
|
}
|
|
12237
|
+
function sanitizeEventValue(value, propName) {
|
|
12238
|
+
if (isFunction(value) || isArray(value)) {
|
|
12239
|
+
return value;
|
|
12240
|
+
}
|
|
12241
|
+
warn(
|
|
12242
|
+
`Wrong type passed as event handler to ${propName} - did you forget @ or : in front of your prop?
|
|
12243
|
+
Expected function or array of functions, received type ${typeof value}.`
|
|
12244
|
+
);
|
|
12245
|
+
return NOOP;
|
|
12246
|
+
}
|
|
12198
12247
|
function patchStopImmediatePropagation(e, value) {
|
|
12199
12248
|
if (isArray(value)) {
|
|
12200
12249
|
const originalStop = e.stopImmediatePropagation;
|
|
@@ -12202,7 +12251,9 @@ function patchStopImmediatePropagation(e, value) {
|
|
|
12202
12251
|
originalStop.call(e);
|
|
12203
12252
|
e._stopped = true;
|
|
12204
12253
|
};
|
|
12205
|
-
return value.map(
|
|
12254
|
+
return value.map(
|
|
12255
|
+
(fn) => (e2) => !e2._stopped && fn && fn(e2)
|
|
12256
|
+
);
|
|
12206
12257
|
} else {
|
|
12207
12258
|
return value;
|
|
12208
12259
|
}
|
|
@@ -12403,7 +12454,7 @@ class VueElement extends BaseClass {
|
|
|
12403
12454
|
}
|
|
12404
12455
|
}
|
|
12405
12456
|
_setAttr(key) {
|
|
12406
|
-
let value = this.getAttribute(key);
|
|
12457
|
+
let value = this.hasAttribute(key) ? this.getAttribute(key) : void 0;
|
|
12407
12458
|
const camelKey = camelize(key);
|
|
12408
12459
|
if (this._numberProps && this._numberProps[camelKey]) {
|
|
12409
12460
|
value = toNumber(value);
|
|
@@ -12575,7 +12626,28 @@ const TransitionGroupImpl = {
|
|
|
12575
12626
|
)) {
|
|
12576
12627
|
tag = "span";
|
|
12577
12628
|
}
|
|
12578
|
-
prevChildren =
|
|
12629
|
+
prevChildren = [];
|
|
12630
|
+
if (children) {
|
|
12631
|
+
for (let i = 0; i < children.length; i++) {
|
|
12632
|
+
const child = children[i];
|
|
12633
|
+
if (child.el && child.el instanceof Element) {
|
|
12634
|
+
prevChildren.push(child);
|
|
12635
|
+
setTransitionHooks(
|
|
12636
|
+
child,
|
|
12637
|
+
resolveTransitionHooks(
|
|
12638
|
+
child,
|
|
12639
|
+
cssTransitionProps,
|
|
12640
|
+
state,
|
|
12641
|
+
instance
|
|
12642
|
+
)
|
|
12643
|
+
);
|
|
12644
|
+
positionMap.set(
|
|
12645
|
+
child,
|
|
12646
|
+
child.el.getBoundingClientRect()
|
|
12647
|
+
);
|
|
12648
|
+
}
|
|
12649
|
+
}
|
|
12650
|
+
}
|
|
12579
12651
|
children = slots.default ? getTransitionRawChildren(slots.default()) : [];
|
|
12580
12652
|
for (let i = 0; i < children.length; i++) {
|
|
12581
12653
|
const child = children[i];
|
|
@@ -12588,16 +12660,6 @@ const TransitionGroupImpl = {
|
|
|
12588
12660
|
warn(`<TransitionGroup> children must be keyed.`);
|
|
12589
12661
|
}
|
|
12590
12662
|
}
|
|
12591
|
-
if (prevChildren) {
|
|
12592
|
-
for (let i = 0; i < prevChildren.length; i++) {
|
|
12593
|
-
const child = prevChildren[i];
|
|
12594
|
-
setTransitionHooks(
|
|
12595
|
-
child,
|
|
12596
|
-
resolveTransitionHooks(child, cssTransitionProps, state, instance)
|
|
12597
|
-
);
|
|
12598
|
-
positionMap.set(child, child.el.getBoundingClientRect());
|
|
12599
|
-
}
|
|
12600
|
-
}
|
|
12601
12663
|
return createVNode(tag, null, children);
|
|
12602
12664
|
};
|
|
12603
12665
|
}
|
|
@@ -12699,7 +12761,7 @@ const vModelText = {
|
|
|
12699
12761
|
el[assignKey] = getModelAssigner(vnode);
|
|
12700
12762
|
if (el.composing)
|
|
12701
12763
|
return;
|
|
12702
|
-
const elValue = number || el.type === "number" ? looseToNumber(el.value) : el.value;
|
|
12764
|
+
const elValue = (number || el.type === "number") && !/^0\d/.test(el.value) ? looseToNumber(el.value) : el.value;
|
|
12703
12765
|
const newValue = value == null ? "" : value;
|
|
12704
12766
|
if (elValue === newValue) {
|
|
12705
12767
|
return;
|
|
@@ -12802,14 +12864,14 @@ const vModelSelect = {
|
|
|
12802
12864
|
// set value in mounted & updated because <select> relies on its children
|
|
12803
12865
|
// <option>s.
|
|
12804
12866
|
mounted(el, { value, modifiers: { number } }) {
|
|
12805
|
-
setSelected(el, value
|
|
12867
|
+
setSelected(el, value);
|
|
12806
12868
|
},
|
|
12807
12869
|
beforeUpdate(el, _binding, vnode) {
|
|
12808
12870
|
el[assignKey] = getModelAssigner(vnode);
|
|
12809
12871
|
},
|
|
12810
12872
|
updated(el, { value, modifiers: { number } }) {
|
|
12811
12873
|
if (!el._assigning) {
|
|
12812
|
-
setSelected(el, value
|
|
12874
|
+
setSelected(el, value);
|
|
12813
12875
|
}
|
|
12814
12876
|
}
|
|
12815
12877
|
};
|
|
@@ -12829,9 +12891,7 @@ function setSelected(el, value, number) {
|
|
|
12829
12891
|
if (isArrayValue) {
|
|
12830
12892
|
const optionType = typeof optionValue;
|
|
12831
12893
|
if (optionType === "string" || optionType === "number") {
|
|
12832
|
-
option.selected = value.
|
|
12833
|
-
number ? looseToNumber(optionValue) : optionValue
|
|
12834
|
-
);
|
|
12894
|
+
option.selected = value.some((v) => String(v) === String(optionValue));
|
|
12835
12895
|
} else {
|
|
12836
12896
|
option.selected = looseIndexOf(value, optionValue) > -1;
|
|
12837
12897
|
}
|