@vue/compat 3.5.1 → 3.5.3
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 +80 -51
- package/dist/vue.cjs.prod.js +70 -44
- package/dist/vue.esm-browser.js +80 -51
- package/dist/vue.esm-browser.prod.js +3 -3
- package/dist/vue.esm-bundler.js +80 -51
- package/dist/vue.global.js +77 -50
- package/dist/vue.global.prod.js +4 -4
- package/dist/vue.runtime.esm-browser.js +68 -42
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +68 -42
- package/dist/vue.runtime.global.js +65 -41
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +2 -2
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.3
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -711,7 +711,7 @@ function refreshComputed(computed) {
|
|
|
711
711
|
shouldTrack = true;
|
|
712
712
|
try {
|
|
713
713
|
prepareDeps(computed);
|
|
714
|
-
const value = computed.fn();
|
|
714
|
+
const value = computed.fn(computed._value);
|
|
715
715
|
if (dep.version === 0 || hasChanged(value, computed._value)) {
|
|
716
716
|
computed._value = value;
|
|
717
717
|
dep.version++;
|
|
@@ -820,7 +820,7 @@ class Dep {
|
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
822
|
track(debugInfo) {
|
|
823
|
-
if (!activeSub || !shouldTrack) {
|
|
823
|
+
if (!activeSub || !shouldTrack || activeSub === this.computed) {
|
|
824
824
|
return;
|
|
825
825
|
}
|
|
826
826
|
let link = this.activeLink;
|
|
@@ -1843,7 +1843,7 @@ function toValue(source) {
|
|
|
1843
1843
|
return isFunction(source) ? source() : unref(source);
|
|
1844
1844
|
}
|
|
1845
1845
|
const shallowUnwrapHandlers = {
|
|
1846
|
-
get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),
|
|
1846
|
+
get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
|
|
1847
1847
|
set: (target, key, value, receiver) => {
|
|
1848
1848
|
const oldValue = target[key];
|
|
1849
1849
|
if (isRef(oldValue) && !isRef(value)) {
|
|
@@ -2550,9 +2550,7 @@ function queueJob(job) {
|
|
|
2550
2550
|
} else {
|
|
2551
2551
|
queue.splice(findInsertionIndex(jobId), 0, job);
|
|
2552
2552
|
}
|
|
2553
|
-
|
|
2554
|
-
job.flags |= 1;
|
|
2555
|
-
}
|
|
2553
|
+
job.flags |= 1;
|
|
2556
2554
|
queueFlush();
|
|
2557
2555
|
}
|
|
2558
2556
|
}
|
|
@@ -2568,9 +2566,7 @@ function queuePostFlushCb(cb) {
|
|
|
2568
2566
|
activePostFlushCbs.splice(postFlushIndex + 1, 0, cb);
|
|
2569
2567
|
} else if (!(cb.flags & 1)) {
|
|
2570
2568
|
pendingPostFlushCbs.push(cb);
|
|
2571
|
-
|
|
2572
|
-
cb.flags |= 1;
|
|
2573
|
-
}
|
|
2569
|
+
cb.flags |= 1;
|
|
2574
2570
|
}
|
|
2575
2571
|
} else {
|
|
2576
2572
|
pendingPostFlushCbs.push(...cb);
|
|
@@ -2592,6 +2588,9 @@ function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
|
2592
2588
|
}
|
|
2593
2589
|
queue.splice(i, 1);
|
|
2594
2590
|
i--;
|
|
2591
|
+
if (cb.flags & 4) {
|
|
2592
|
+
cb.flags &= ~1;
|
|
2593
|
+
}
|
|
2595
2594
|
cb();
|
|
2596
2595
|
cb.flags &= ~1;
|
|
2597
2596
|
}
|
|
@@ -2616,6 +2615,9 @@ function flushPostFlushCbs(seen) {
|
|
|
2616
2615
|
if (!!(process.env.NODE_ENV !== "production") && checkRecursiveUpdates(seen, cb)) {
|
|
2617
2616
|
continue;
|
|
2618
2617
|
}
|
|
2618
|
+
if (cb.flags & 4) {
|
|
2619
|
+
cb.flags &= ~1;
|
|
2620
|
+
}
|
|
2619
2621
|
if (!(cb.flags & 8)) cb();
|
|
2620
2622
|
cb.flags &= ~1;
|
|
2621
2623
|
}
|
|
@@ -2638,6 +2640,9 @@ function flushJobs(seen) {
|
|
|
2638
2640
|
if (!!(process.env.NODE_ENV !== "production") && check(job)) {
|
|
2639
2641
|
continue;
|
|
2640
2642
|
}
|
|
2643
|
+
if (job.flags & 4) {
|
|
2644
|
+
job.flags &= ~1;
|
|
2645
|
+
}
|
|
2641
2646
|
callWithErrorHandling(
|
|
2642
2647
|
job,
|
|
2643
2648
|
job.i,
|
|
@@ -2647,6 +2652,12 @@ function flushJobs(seen) {
|
|
|
2647
2652
|
}
|
|
2648
2653
|
}
|
|
2649
2654
|
} finally {
|
|
2655
|
+
for (; flushIndex < queue.length; flushIndex++) {
|
|
2656
|
+
const job = queue[flushIndex];
|
|
2657
|
+
if (job) {
|
|
2658
|
+
job.flags &= ~1;
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2650
2661
|
flushIndex = 0;
|
|
2651
2662
|
queue.length = 0;
|
|
2652
2663
|
flushPostFlushCbs(seen);
|
|
@@ -3934,6 +3945,7 @@ const BaseTransitionImpl = {
|
|
|
3934
3945
|
if (!(instance.job.flags & 8)) {
|
|
3935
3946
|
instance.update();
|
|
3936
3947
|
}
|
|
3948
|
+
delete leavingHooks.afterLeave;
|
|
3937
3949
|
};
|
|
3938
3950
|
return emptyPlaceholder(child);
|
|
3939
3951
|
} else if (mode === "in-out" && innerChild.type !== Comment) {
|
|
@@ -4160,6 +4172,7 @@ function getInnerChild$1(vnode) {
|
|
|
4160
4172
|
}
|
|
4161
4173
|
function setTransitionHooks(vnode, hooks) {
|
|
4162
4174
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
4175
|
+
vnode.transition = hooks;
|
|
4163
4176
|
setTransitionHooks(vnode.component.subTree, hooks);
|
|
4164
4177
|
} else if (vnode.shapeFlag & 128) {
|
|
4165
4178
|
vnode.ssContent.transition = hooks.clone(vnode.ssContent);
|
|
@@ -4204,7 +4217,7 @@ function defineComponent(options, extraOptions) {
|
|
|
4204
4217
|
function useId() {
|
|
4205
4218
|
const i = getCurrentInstance();
|
|
4206
4219
|
if (i) {
|
|
4207
|
-
return (i.appContext.config.idPrefix || "v") + "
|
|
4220
|
+
return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
|
|
4208
4221
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
4209
4222
|
warn$1(
|
|
4210
4223
|
`useId() is called when there is no active component instance to be associated with.`
|
|
@@ -4215,6 +4228,34 @@ function markAsyncBoundary(instance) {
|
|
|
4215
4228
|
instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
|
|
4216
4229
|
}
|
|
4217
4230
|
|
|
4231
|
+
const knownTemplateRefs = /* @__PURE__ */ new WeakSet();
|
|
4232
|
+
function useTemplateRef(key) {
|
|
4233
|
+
const i = getCurrentInstance();
|
|
4234
|
+
const r = shallowRef(null);
|
|
4235
|
+
if (i) {
|
|
4236
|
+
const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
|
|
4237
|
+
let desc;
|
|
4238
|
+
if (!!(process.env.NODE_ENV !== "production") && (desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) {
|
|
4239
|
+
warn$1(`useTemplateRef('${key}') already exists.`);
|
|
4240
|
+
} else {
|
|
4241
|
+
Object.defineProperty(refs, key, {
|
|
4242
|
+
enumerable: true,
|
|
4243
|
+
get: () => r.value,
|
|
4244
|
+
set: (val) => r.value = val
|
|
4245
|
+
});
|
|
4246
|
+
}
|
|
4247
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
4248
|
+
warn$1(
|
|
4249
|
+
`useTemplateRef() is called when there is no active component instance to be associated with.`
|
|
4250
|
+
);
|
|
4251
|
+
}
|
|
4252
|
+
const ret = !!(process.env.NODE_ENV !== "production") ? readonly(r) : r;
|
|
4253
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
4254
|
+
knownTemplateRefs.add(ret);
|
|
4255
|
+
}
|
|
4256
|
+
return ret;
|
|
4257
|
+
}
|
|
4258
|
+
|
|
4218
4259
|
function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
4219
4260
|
if (isArray(rawRef)) {
|
|
4220
4261
|
rawRef.forEach(
|
|
@@ -4243,7 +4284,13 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4243
4284
|
const oldRef = oldRawRef && oldRawRef.r;
|
|
4244
4285
|
const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
4245
4286
|
const setupState = owner.setupState;
|
|
4246
|
-
const
|
|
4287
|
+
const rawSetupState = toRaw(setupState);
|
|
4288
|
+
const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => {
|
|
4289
|
+
if (!!(process.env.NODE_ENV !== "production") && knownTemplateRefs.has(rawSetupState[key])) {
|
|
4290
|
+
return false;
|
|
4291
|
+
}
|
|
4292
|
+
return hasOwn(rawSetupState, key);
|
|
4293
|
+
};
|
|
4247
4294
|
if (oldRef != null && oldRef !== ref) {
|
|
4248
4295
|
if (isString(oldRef)) {
|
|
4249
4296
|
refs[oldRef] = null;
|
|
@@ -5311,7 +5358,7 @@ const KeepAliveImpl = {
|
|
|
5311
5358
|
return () => {
|
|
5312
5359
|
pendingCacheKey = null;
|
|
5313
5360
|
if (!slots.default) {
|
|
5314
|
-
return null;
|
|
5361
|
+
return current = null;
|
|
5315
5362
|
}
|
|
5316
5363
|
const children = slots.default();
|
|
5317
5364
|
const rawVNode = children[0];
|
|
@@ -7088,7 +7135,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7088
7135
|
return vm;
|
|
7089
7136
|
}
|
|
7090
7137
|
}
|
|
7091
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7138
|
+
Vue.version = `2.6.14-compat:${"3.5.3"}`;
|
|
7092
7139
|
Vue.config = singletonApp.config;
|
|
7093
7140
|
Vue.use = (plugin, ...options) => {
|
|
7094
7141
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9033,7 +9080,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9033
9080
|
endMeasure(instance, `hydrate`);
|
|
9034
9081
|
}
|
|
9035
9082
|
};
|
|
9036
|
-
if (isAsyncWrapperVNode) {
|
|
9083
|
+
if (isAsyncWrapperVNode && type.__asyncHydrate) {
|
|
9037
9084
|
type.__asyncHydrate(
|
|
9038
9085
|
el,
|
|
9039
9086
|
instance,
|
|
@@ -10382,7 +10429,7 @@ function renderComponentRoot(instance) {
|
|
|
10382
10429
|
`Component inside <Transition> renders non-element root node that cannot be animated.`
|
|
10383
10430
|
);
|
|
10384
10431
|
}
|
|
10385
|
-
root
|
|
10432
|
+
setTransitionHooks(root, vnode.transition);
|
|
10386
10433
|
}
|
|
10387
10434
|
if (!!(process.env.NODE_ENV !== "production") && setRoot) {
|
|
10388
10435
|
setRoot(root);
|
|
@@ -10876,7 +10923,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
10876
10923
|
};
|
|
10877
10924
|
}
|
|
10878
10925
|
if (activeBranch) {
|
|
10879
|
-
if (parentNode(activeBranch.el)
|
|
10926
|
+
if (parentNode(activeBranch.el) === container2) {
|
|
10880
10927
|
anchor = next(activeBranch);
|
|
10881
10928
|
}
|
|
10882
10929
|
unmount(activeBranch, parentComponent2, suspense, true);
|
|
@@ -12030,29 +12077,6 @@ const computed = (getterOrOptions, debugOptions) => {
|
|
|
12030
12077
|
return c;
|
|
12031
12078
|
};
|
|
12032
12079
|
|
|
12033
|
-
function useTemplateRef(key) {
|
|
12034
|
-
const i = getCurrentInstance();
|
|
12035
|
-
const r = shallowRef(null);
|
|
12036
|
-
if (i) {
|
|
12037
|
-
const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
|
|
12038
|
-
let desc;
|
|
12039
|
-
if (!!(process.env.NODE_ENV !== "production") && (desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) {
|
|
12040
|
-
warn$1(`useTemplateRef('${key}') already exists.`);
|
|
12041
|
-
} else {
|
|
12042
|
-
Object.defineProperty(refs, key, {
|
|
12043
|
-
enumerable: true,
|
|
12044
|
-
get: () => r.value,
|
|
12045
|
-
set: (val) => r.value = val
|
|
12046
|
-
});
|
|
12047
|
-
}
|
|
12048
|
-
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
12049
|
-
warn$1(
|
|
12050
|
-
`useTemplateRef() is called when there is no active component instance to be associated with.`
|
|
12051
|
-
);
|
|
12052
|
-
}
|
|
12053
|
-
return !!(process.env.NODE_ENV !== "production") ? readonly(r) : r;
|
|
12054
|
-
}
|
|
12055
|
-
|
|
12056
12080
|
function h(type, propsOrChildren, children) {
|
|
12057
12081
|
const l = arguments.length;
|
|
12058
12082
|
if (l === 2) {
|
|
@@ -12278,7 +12302,7 @@ function isMemoSame(cached, memo) {
|
|
|
12278
12302
|
return true;
|
|
12279
12303
|
}
|
|
12280
12304
|
|
|
12281
|
-
const version = "3.5.
|
|
12305
|
+
const version = "3.5.3";
|
|
12282
12306
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
12283
12307
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12284
12308
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -12291,7 +12315,9 @@ const _ssrUtils = {
|
|
|
12291
12315
|
isVNode: isVNode,
|
|
12292
12316
|
normalizeVNode,
|
|
12293
12317
|
getComponentPublicInstance,
|
|
12294
|
-
ensureValidVNode
|
|
12318
|
+
ensureValidVNode,
|
|
12319
|
+
pushWarningContext,
|
|
12320
|
+
popWarningContext
|
|
12295
12321
|
};
|
|
12296
12322
|
const ssrUtils = _ssrUtils ;
|
|
12297
12323
|
const resolveFilter = resolveFilter$1 ;
|
|
@@ -16062,7 +16088,7 @@ const tokenizer = new Tokenizer(stack, {
|
|
|
16062
16088
|
rawName: raw,
|
|
16063
16089
|
exp: void 0,
|
|
16064
16090
|
arg: void 0,
|
|
16065
|
-
modifiers: raw === "." ? ["prop"] : [],
|
|
16091
|
+
modifiers: raw === "." ? [createSimpleExpression("prop")] : [],
|
|
16066
16092
|
loc: getLoc(start)
|
|
16067
16093
|
};
|
|
16068
16094
|
if (name === "pre") {
|
|
@@ -16105,7 +16131,8 @@ const tokenizer = new Tokenizer(stack, {
|
|
|
16105
16131
|
setLocEnd(arg.loc, end);
|
|
16106
16132
|
}
|
|
16107
16133
|
} else {
|
|
16108
|
-
|
|
16134
|
+
const exp = createSimpleExpression(mod, true, getLoc(start, end));
|
|
16135
|
+
currentProp.modifiers.push(exp);
|
|
16109
16136
|
}
|
|
16110
16137
|
},
|
|
16111
16138
|
onattribdata(start, end) {
|
|
@@ -16168,7 +16195,9 @@ const tokenizer = new Tokenizer(stack, {
|
|
|
16168
16195
|
currentProp.forParseResult = parseForExpression(currentProp.exp);
|
|
16169
16196
|
}
|
|
16170
16197
|
let syncIndex = -1;
|
|
16171
|
-
if (currentProp.name === "bind" && (syncIndex = currentProp.modifiers.
|
|
16198
|
+
if (currentProp.name === "bind" && (syncIndex = currentProp.modifiers.findIndex(
|
|
16199
|
+
(mod) => mod.content === "sync"
|
|
16200
|
+
)) > -1 && checkCompatEnabled(
|
|
16172
16201
|
"COMPILER_V_BIND_SYNC",
|
|
16173
16202
|
currentOptions,
|
|
16174
16203
|
currentProp.loc,
|
|
@@ -18158,7 +18187,7 @@ const transformBind = (dir, _node, context) => {
|
|
|
18158
18187
|
} else if (!arg.isStatic) {
|
|
18159
18188
|
arg.content = `${arg.content} || ""`;
|
|
18160
18189
|
}
|
|
18161
|
-
if (modifiers.
|
|
18190
|
+
if (modifiers.some((mod) => mod.content === "camel")) {
|
|
18162
18191
|
if (arg.type === 4) {
|
|
18163
18192
|
if (arg.isStatic) {
|
|
18164
18193
|
arg.content = camelize(arg.content);
|
|
@@ -18171,10 +18200,10 @@ const transformBind = (dir, _node, context) => {
|
|
|
18171
18200
|
}
|
|
18172
18201
|
}
|
|
18173
18202
|
if (!context.inSSR) {
|
|
18174
|
-
if (modifiers.
|
|
18203
|
+
if (modifiers.some((mod) => mod.content === "prop")) {
|
|
18175
18204
|
injectPrefix(arg, ".");
|
|
18176
18205
|
}
|
|
18177
|
-
if (modifiers.
|
|
18206
|
+
if (modifiers.some((mod) => mod.content === "attr")) {
|
|
18178
18207
|
injectPrefix(arg, "^");
|
|
18179
18208
|
}
|
|
18180
18209
|
}
|
|
@@ -18987,7 +19016,7 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
|
|
|
18987
19016
|
}
|
|
18988
19017
|
continue;
|
|
18989
19018
|
}
|
|
18990
|
-
if (isVBind && modifiers.
|
|
19019
|
+
if (isVBind && modifiers.some((mod) => mod.content === "prop")) {
|
|
18991
19020
|
patchFlag |= 32;
|
|
18992
19021
|
}
|
|
18993
19022
|
const directiveTransform = context.directiveTransforms[name];
|
|
@@ -19501,7 +19530,7 @@ const transformModel$1 = (dir, node, context) => {
|
|
|
19501
19530
|
createObjectProperty(eventName, assignmentExp)
|
|
19502
19531
|
];
|
|
19503
19532
|
if (dir.modifiers.length && node.tagType === 1) {
|
|
19504
|
-
const modifiers = dir.modifiers.map((m) => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`).join(`, `);
|
|
19533
|
+
const modifiers = dir.modifiers.map((m) => m.content).map((m) => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`).join(`, `);
|
|
19505
19534
|
const modifiersKey = arg ? isStaticExp(arg) ? `${arg.content}Modifiers` : createCompoundExpression([arg, ' + "Modifiers"']) : `modelModifiers`;
|
|
19506
19535
|
props.push(
|
|
19507
19536
|
createObjectProperty(
|
|
@@ -20050,7 +20079,7 @@ const resolveModifiers = (key, modifiers, context, loc) => {
|
|
|
20050
20079
|
const nonKeyModifiers = [];
|
|
20051
20080
|
const eventOptionModifiers = [];
|
|
20052
20081
|
for (let i = 0; i < modifiers.length; i++) {
|
|
20053
|
-
const modifier = modifiers[i];
|
|
20082
|
+
const modifier = modifiers[i].content;
|
|
20054
20083
|
if (modifier === "native" && checkCompatEnabled(
|
|
20055
20084
|
"COMPILER_V_ON_NATIVE",
|
|
20056
20085
|
context,
|
package/dist/vue.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.3
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -714,7 +714,7 @@ var Vue = (function () {
|
|
|
714
714
|
shouldTrack = true;
|
|
715
715
|
try {
|
|
716
716
|
prepareDeps(computed);
|
|
717
|
-
const value = computed.fn();
|
|
717
|
+
const value = computed.fn(computed._value);
|
|
718
718
|
if (dep.version === 0 || hasChanged(value, computed._value)) {
|
|
719
719
|
computed._value = value;
|
|
720
720
|
dep.version++;
|
|
@@ -823,7 +823,7 @@ var Vue = (function () {
|
|
|
823
823
|
}
|
|
824
824
|
}
|
|
825
825
|
track(debugInfo) {
|
|
826
|
-
if (!activeSub || !shouldTrack) {
|
|
826
|
+
if (!activeSub || !shouldTrack || activeSub === this.computed) {
|
|
827
827
|
return;
|
|
828
828
|
}
|
|
829
829
|
let link = this.activeLink;
|
|
@@ -1836,7 +1836,7 @@ var Vue = (function () {
|
|
|
1836
1836
|
return isFunction(source) ? source() : unref(source);
|
|
1837
1837
|
}
|
|
1838
1838
|
const shallowUnwrapHandlers = {
|
|
1839
|
-
get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),
|
|
1839
|
+
get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
|
|
1840
1840
|
set: (target, key, value, receiver) => {
|
|
1841
1841
|
const oldValue = target[key];
|
|
1842
1842
|
if (isRef(oldValue) && !isRef(value)) {
|
|
@@ -2538,9 +2538,7 @@ var Vue = (function () {
|
|
|
2538
2538
|
} else {
|
|
2539
2539
|
queue.splice(findInsertionIndex(jobId), 0, job);
|
|
2540
2540
|
}
|
|
2541
|
-
|
|
2542
|
-
job.flags |= 1;
|
|
2543
|
-
}
|
|
2541
|
+
job.flags |= 1;
|
|
2544
2542
|
queueFlush();
|
|
2545
2543
|
}
|
|
2546
2544
|
}
|
|
@@ -2556,9 +2554,7 @@ var Vue = (function () {
|
|
|
2556
2554
|
activePostFlushCbs.splice(postFlushIndex + 1, 0, cb);
|
|
2557
2555
|
} else if (!(cb.flags & 1)) {
|
|
2558
2556
|
pendingPostFlushCbs.push(cb);
|
|
2559
|
-
|
|
2560
|
-
cb.flags |= 1;
|
|
2561
|
-
}
|
|
2557
|
+
cb.flags |= 1;
|
|
2562
2558
|
}
|
|
2563
2559
|
} else {
|
|
2564
2560
|
pendingPostFlushCbs.push(...cb);
|
|
@@ -2580,6 +2576,9 @@ var Vue = (function () {
|
|
|
2580
2576
|
}
|
|
2581
2577
|
queue.splice(i, 1);
|
|
2582
2578
|
i--;
|
|
2579
|
+
if (cb.flags & 4) {
|
|
2580
|
+
cb.flags &= ~1;
|
|
2581
|
+
}
|
|
2583
2582
|
cb();
|
|
2584
2583
|
cb.flags &= ~1;
|
|
2585
2584
|
}
|
|
@@ -2604,6 +2603,9 @@ var Vue = (function () {
|
|
|
2604
2603
|
if (checkRecursiveUpdates(seen, cb)) {
|
|
2605
2604
|
continue;
|
|
2606
2605
|
}
|
|
2606
|
+
if (cb.flags & 4) {
|
|
2607
|
+
cb.flags &= ~1;
|
|
2608
|
+
}
|
|
2607
2609
|
if (!(cb.flags & 8)) cb();
|
|
2608
2610
|
cb.flags &= ~1;
|
|
2609
2611
|
}
|
|
@@ -2626,6 +2628,9 @@ var Vue = (function () {
|
|
|
2626
2628
|
if (check(job)) {
|
|
2627
2629
|
continue;
|
|
2628
2630
|
}
|
|
2631
|
+
if (job.flags & 4) {
|
|
2632
|
+
job.flags &= ~1;
|
|
2633
|
+
}
|
|
2629
2634
|
callWithErrorHandling(
|
|
2630
2635
|
job,
|
|
2631
2636
|
job.i,
|
|
@@ -2635,6 +2640,12 @@ var Vue = (function () {
|
|
|
2635
2640
|
}
|
|
2636
2641
|
}
|
|
2637
2642
|
} finally {
|
|
2643
|
+
for (; flushIndex < queue.length; flushIndex++) {
|
|
2644
|
+
const job = queue[flushIndex];
|
|
2645
|
+
if (job) {
|
|
2646
|
+
job.flags &= ~1;
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2638
2649
|
flushIndex = 0;
|
|
2639
2650
|
queue.length = 0;
|
|
2640
2651
|
flushPostFlushCbs(seen);
|
|
@@ -3919,6 +3930,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3919
3930
|
if (!(instance.job.flags & 8)) {
|
|
3920
3931
|
instance.update();
|
|
3921
3932
|
}
|
|
3933
|
+
delete leavingHooks.afterLeave;
|
|
3922
3934
|
};
|
|
3923
3935
|
return emptyPlaceholder(child);
|
|
3924
3936
|
} else if (mode === "in-out" && innerChild.type !== Comment) {
|
|
@@ -4144,6 +4156,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4144
4156
|
}
|
|
4145
4157
|
function setTransitionHooks(vnode, hooks) {
|
|
4146
4158
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
4159
|
+
vnode.transition = hooks;
|
|
4147
4160
|
setTransitionHooks(vnode.component.subTree, hooks);
|
|
4148
4161
|
} else if (vnode.shapeFlag & 128) {
|
|
4149
4162
|
vnode.ssContent.transition = hooks.clone(vnode.ssContent);
|
|
@@ -4188,7 +4201,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4188
4201
|
function useId() {
|
|
4189
4202
|
const i = getCurrentInstance();
|
|
4190
4203
|
if (i) {
|
|
4191
|
-
return (i.appContext.config.idPrefix || "v") + "
|
|
4204
|
+
return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
|
|
4192
4205
|
} else {
|
|
4193
4206
|
warn$1(
|
|
4194
4207
|
`useId() is called when there is no active component instance to be associated with.`
|
|
@@ -4199,6 +4212,34 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4199
4212
|
instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
|
|
4200
4213
|
}
|
|
4201
4214
|
|
|
4215
|
+
const knownTemplateRefs = /* @__PURE__ */ new WeakSet();
|
|
4216
|
+
function useTemplateRef(key) {
|
|
4217
|
+
const i = getCurrentInstance();
|
|
4218
|
+
const r = shallowRef(null);
|
|
4219
|
+
if (i) {
|
|
4220
|
+
const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
|
|
4221
|
+
let desc;
|
|
4222
|
+
if ((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) {
|
|
4223
|
+
warn$1(`useTemplateRef('${key}') already exists.`);
|
|
4224
|
+
} else {
|
|
4225
|
+
Object.defineProperty(refs, key, {
|
|
4226
|
+
enumerable: true,
|
|
4227
|
+
get: () => r.value,
|
|
4228
|
+
set: (val) => r.value = val
|
|
4229
|
+
});
|
|
4230
|
+
}
|
|
4231
|
+
} else {
|
|
4232
|
+
warn$1(
|
|
4233
|
+
`useTemplateRef() is called when there is no active component instance to be associated with.`
|
|
4234
|
+
);
|
|
4235
|
+
}
|
|
4236
|
+
const ret = readonly(r) ;
|
|
4237
|
+
{
|
|
4238
|
+
knownTemplateRefs.add(ret);
|
|
4239
|
+
}
|
|
4240
|
+
return ret;
|
|
4241
|
+
}
|
|
4242
|
+
|
|
4202
4243
|
function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
4203
4244
|
if (isArray(rawRef)) {
|
|
4204
4245
|
rawRef.forEach(
|
|
@@ -4227,7 +4268,13 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4227
4268
|
const oldRef = oldRawRef && oldRawRef.r;
|
|
4228
4269
|
const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
4229
4270
|
const setupState = owner.setupState;
|
|
4230
|
-
const
|
|
4271
|
+
const rawSetupState = toRaw(setupState);
|
|
4272
|
+
const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => {
|
|
4273
|
+
if (knownTemplateRefs.has(rawSetupState[key])) {
|
|
4274
|
+
return false;
|
|
4275
|
+
}
|
|
4276
|
+
return hasOwn(rawSetupState, key);
|
|
4277
|
+
};
|
|
4231
4278
|
if (oldRef != null && oldRef !== ref) {
|
|
4232
4279
|
if (isString(oldRef)) {
|
|
4233
4280
|
refs[oldRef] = null;
|
|
@@ -5278,7 +5325,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5278
5325
|
return () => {
|
|
5279
5326
|
pendingCacheKey = null;
|
|
5280
5327
|
if (!slots.default) {
|
|
5281
|
-
return null;
|
|
5328
|
+
return current = null;
|
|
5282
5329
|
}
|
|
5283
5330
|
const children = slots.default();
|
|
5284
5331
|
const rawVNode = children[0];
|
|
@@ -7050,7 +7097,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
7050
7097
|
return vm;
|
|
7051
7098
|
}
|
|
7052
7099
|
}
|
|
7053
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7100
|
+
Vue.version = `2.6.14-compat:${"3.5.3"}`;
|
|
7054
7101
|
Vue.config = singletonApp.config;
|
|
7055
7102
|
Vue.use = (plugin, ...options) => {
|
|
7056
7103
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -8955,7 +9002,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8955
9002
|
endMeasure(instance, `hydrate`);
|
|
8956
9003
|
}
|
|
8957
9004
|
};
|
|
8958
|
-
if (isAsyncWrapperVNode) {
|
|
9005
|
+
if (isAsyncWrapperVNode && type.__asyncHydrate) {
|
|
8959
9006
|
type.__asyncHydrate(
|
|
8960
9007
|
el,
|
|
8961
9008
|
instance,
|
|
@@ -10282,7 +10329,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
10282
10329
|
`Component inside <Transition> renders non-element root node that cannot be animated.`
|
|
10283
10330
|
);
|
|
10284
10331
|
}
|
|
10285
|
-
root
|
|
10332
|
+
setTransitionHooks(root, vnode.transition);
|
|
10286
10333
|
}
|
|
10287
10334
|
if (setRoot) {
|
|
10288
10335
|
setRoot(root);
|
|
@@ -10776,7 +10823,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
10776
10823
|
};
|
|
10777
10824
|
}
|
|
10778
10825
|
if (activeBranch) {
|
|
10779
|
-
if (parentNode(activeBranch.el)
|
|
10826
|
+
if (parentNode(activeBranch.el) === container2) {
|
|
10780
10827
|
anchor = next(activeBranch);
|
|
10781
10828
|
}
|
|
10782
10829
|
unmount(activeBranch, parentComponent2, suspense, true);
|
|
@@ -11902,29 +11949,6 @@ Component that was made reactive: `,
|
|
|
11902
11949
|
return c;
|
|
11903
11950
|
};
|
|
11904
11951
|
|
|
11905
|
-
function useTemplateRef(key) {
|
|
11906
|
-
const i = getCurrentInstance();
|
|
11907
|
-
const r = shallowRef(null);
|
|
11908
|
-
if (i) {
|
|
11909
|
-
const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
|
|
11910
|
-
let desc;
|
|
11911
|
-
if ((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) {
|
|
11912
|
-
warn$1(`useTemplateRef('${key}') already exists.`);
|
|
11913
|
-
} else {
|
|
11914
|
-
Object.defineProperty(refs, key, {
|
|
11915
|
-
enumerable: true,
|
|
11916
|
-
get: () => r.value,
|
|
11917
|
-
set: (val) => r.value = val
|
|
11918
|
-
});
|
|
11919
|
-
}
|
|
11920
|
-
} else {
|
|
11921
|
-
warn$1(
|
|
11922
|
-
`useTemplateRef() is called when there is no active component instance to be associated with.`
|
|
11923
|
-
);
|
|
11924
|
-
}
|
|
11925
|
-
return readonly(r) ;
|
|
11926
|
-
}
|
|
11927
|
-
|
|
11928
11952
|
function h(type, propsOrChildren, children) {
|
|
11929
11953
|
const l = arguments.length;
|
|
11930
11954
|
if (l === 2) {
|
|
@@ -12150,7 +12174,7 @@ Component that was made reactive: `,
|
|
|
12150
12174
|
return true;
|
|
12151
12175
|
}
|
|
12152
12176
|
|
|
12153
|
-
const version = "3.5.
|
|
12177
|
+
const version = "3.5.3";
|
|
12154
12178
|
const warn = warn$1 ;
|
|
12155
12179
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12156
12180
|
const devtools = devtools$1 ;
|
|
@@ -15870,7 +15894,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
15870
15894
|
rawName: raw,
|
|
15871
15895
|
exp: void 0,
|
|
15872
15896
|
arg: void 0,
|
|
15873
|
-
modifiers: raw === "." ? ["prop"] : [],
|
|
15897
|
+
modifiers: raw === "." ? [createSimpleExpression("prop")] : [],
|
|
15874
15898
|
loc: getLoc(start)
|
|
15875
15899
|
};
|
|
15876
15900
|
if (name === "pre") {
|
|
@@ -15913,7 +15937,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
15913
15937
|
setLocEnd(arg.loc, end);
|
|
15914
15938
|
}
|
|
15915
15939
|
} else {
|
|
15916
|
-
|
|
15940
|
+
const exp = createSimpleExpression(mod, true, getLoc(start, end));
|
|
15941
|
+
currentProp.modifiers.push(exp);
|
|
15917
15942
|
}
|
|
15918
15943
|
},
|
|
15919
15944
|
onattribdata(start, end) {
|
|
@@ -15976,7 +16001,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
15976
16001
|
currentProp.forParseResult = parseForExpression(currentProp.exp);
|
|
15977
16002
|
}
|
|
15978
16003
|
let syncIndex = -1;
|
|
15979
|
-
if (currentProp.name === "bind" && (syncIndex = currentProp.modifiers.
|
|
16004
|
+
if (currentProp.name === "bind" && (syncIndex = currentProp.modifiers.findIndex(
|
|
16005
|
+
(mod) => mod.content === "sync"
|
|
16006
|
+
)) > -1 && checkCompatEnabled(
|
|
15980
16007
|
"COMPILER_V_BIND_SYNC",
|
|
15981
16008
|
currentOptions,
|
|
15982
16009
|
currentProp.loc,
|
|
@@ -17963,7 +17990,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
17963
17990
|
} else if (!arg.isStatic) {
|
|
17964
17991
|
arg.content = `${arg.content} || ""`;
|
|
17965
17992
|
}
|
|
17966
|
-
if (modifiers.
|
|
17993
|
+
if (modifiers.some((mod) => mod.content === "camel")) {
|
|
17967
17994
|
if (arg.type === 4) {
|
|
17968
17995
|
if (arg.isStatic) {
|
|
17969
17996
|
arg.content = camelize(arg.content);
|
|
@@ -17976,10 +18003,10 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
17976
18003
|
}
|
|
17977
18004
|
}
|
|
17978
18005
|
if (!context.inSSR) {
|
|
17979
|
-
if (modifiers.
|
|
18006
|
+
if (modifiers.some((mod) => mod.content === "prop")) {
|
|
17980
18007
|
injectPrefix(arg, ".");
|
|
17981
18008
|
}
|
|
17982
|
-
if (modifiers.
|
|
18009
|
+
if (modifiers.some((mod) => mod.content === "attr")) {
|
|
17983
18010
|
injectPrefix(arg, "^");
|
|
17984
18011
|
}
|
|
17985
18012
|
}
|
|
@@ -18792,7 +18819,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
18792
18819
|
}
|
|
18793
18820
|
continue;
|
|
18794
18821
|
}
|
|
18795
|
-
if (isVBind && modifiers.
|
|
18822
|
+
if (isVBind && modifiers.some((mod) => mod.content === "prop")) {
|
|
18796
18823
|
patchFlag |= 32;
|
|
18797
18824
|
}
|
|
18798
18825
|
const directiveTransform = context.directiveTransforms[name];
|
|
@@ -19306,7 +19333,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
19306
19333
|
createObjectProperty(eventName, assignmentExp)
|
|
19307
19334
|
];
|
|
19308
19335
|
if (dir.modifiers.length && node.tagType === 1) {
|
|
19309
|
-
const modifiers = dir.modifiers.map((m) => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`).join(`, `);
|
|
19336
|
+
const modifiers = dir.modifiers.map((m) => m.content).map((m) => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`).join(`, `);
|
|
19310
19337
|
const modifiersKey = arg ? isStaticExp(arg) ? `${arg.content}Modifiers` : createCompoundExpression([arg, ' + "Modifiers"']) : `modelModifiers`;
|
|
19311
19338
|
props.push(
|
|
19312
19339
|
createObjectProperty(
|
|
@@ -19855,7 +19882,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
19855
19882
|
const nonKeyModifiers = [];
|
|
19856
19883
|
const eventOptionModifiers = [];
|
|
19857
19884
|
for (let i = 0; i < modifiers.length; i++) {
|
|
19858
|
-
const modifier = modifiers[i];
|
|
19885
|
+
const modifier = modifiers[i].content;
|
|
19859
19886
|
if (modifier === "native" && checkCompatEnabled(
|
|
19860
19887
|
"COMPILER_V_ON_NATIVE",
|
|
19861
19888
|
context,
|