@vue/compat 3.3.9 → 3.3.10
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 +33 -17
- package/dist/vue.cjs.prod.js +30 -14
- package/dist/vue.esm-browser.js +29 -17
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +29 -17
- package/dist/vue.global.js +29 -17
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +26 -17
- package/dist/vue.runtime.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.esm-bundler.js +26 -17
- package/dist/vue.runtime.global.js +26 -17
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +3 -3
|
@@ -12,8 +12,8 @@ const EMPTY_ARR = Object.freeze([]) ;
|
|
|
12
12
|
const NOOP = () => {
|
|
13
13
|
};
|
|
14
14
|
const NO = () => false;
|
|
15
|
-
const
|
|
16
|
-
|
|
15
|
+
const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
|
|
16
|
+
(key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
|
|
17
17
|
const isModelListener = (key) => key.startsWith("onUpdate:");
|
|
18
18
|
const extend = Object.assign;
|
|
19
19
|
const remove = (arr, el) => {
|
|
@@ -3307,7 +3307,12 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3307
3307
|
if (delayEnter) {
|
|
3308
3308
|
activeBranch.transition.afterLeave = () => {
|
|
3309
3309
|
if (pendingId === suspense.pendingId) {
|
|
3310
|
-
move(
|
|
3310
|
+
move(
|
|
3311
|
+
pendingBranch,
|
|
3312
|
+
container2,
|
|
3313
|
+
next(activeBranch),
|
|
3314
|
+
0
|
|
3315
|
+
);
|
|
3311
3316
|
queuePostFlushCb(effects);
|
|
3312
3317
|
}
|
|
3313
3318
|
};
|
|
@@ -3354,7 +3359,6 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3354
3359
|
}
|
|
3355
3360
|
const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, isSVG: isSVG2 } = suspense;
|
|
3356
3361
|
triggerEvent(vnode2, "onFallback");
|
|
3357
|
-
const anchor2 = next(activeBranch);
|
|
3358
3362
|
const mountFallback = () => {
|
|
3359
3363
|
if (!suspense.isInFallback) {
|
|
3360
3364
|
return;
|
|
@@ -3363,7 +3367,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3363
3367
|
null,
|
|
3364
3368
|
fallbackVNode,
|
|
3365
3369
|
container2,
|
|
3366
|
-
|
|
3370
|
+
next(activeBranch),
|
|
3367
3371
|
parentComponent2,
|
|
3368
3372
|
null,
|
|
3369
3373
|
// fallback tree will not have suspense context
|
|
@@ -6204,7 +6208,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6204
6208
|
return vm;
|
|
6205
6209
|
}
|
|
6206
6210
|
}
|
|
6207
|
-
Vue.version = `2.6.14-compat:${"3.3.
|
|
6211
|
+
Vue.version = `2.6.14-compat:${"3.3.10"}`;
|
|
6208
6212
|
Vue.config = singletonApp.config;
|
|
6209
6213
|
Vue.use = (p, ...options) => {
|
|
6210
6214
|
if (p && isFunction(p.install)) {
|
|
@@ -10601,9 +10605,9 @@ function initCustomFormatter() {
|
|
|
10601
10605
|
return;
|
|
10602
10606
|
}
|
|
10603
10607
|
const vueStyle = { style: "color:#3ba776" };
|
|
10604
|
-
const numberStyle = { style: "color:#
|
|
10605
|
-
const stringStyle = { style: "color:#
|
|
10606
|
-
const keywordStyle = { style: "color:#
|
|
10608
|
+
const numberStyle = { style: "color:#1677ff" };
|
|
10609
|
+
const stringStyle = { style: "color:#f5222d" };
|
|
10610
|
+
const keywordStyle = { style: "color:#eb2f96" };
|
|
10607
10611
|
const formatter = {
|
|
10608
10612
|
header(obj) {
|
|
10609
10613
|
if (!isObject(obj)) {
|
|
@@ -10797,7 +10801,7 @@ function isMemoSame(cached, memo) {
|
|
|
10797
10801
|
return true;
|
|
10798
10802
|
}
|
|
10799
10803
|
|
|
10800
|
-
const version = "3.3.
|
|
10804
|
+
const version = "3.3.10";
|
|
10801
10805
|
const ssrUtils = null;
|
|
10802
10806
|
const resolveFilter = resolveFilter$1 ;
|
|
10803
10807
|
const _compatUtils = {
|
|
@@ -11496,7 +11500,8 @@ function patchStopImmediatePropagation(e, value) {
|
|
|
11496
11500
|
}
|
|
11497
11501
|
}
|
|
11498
11502
|
|
|
11499
|
-
const
|
|
11503
|
+
const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
|
|
11504
|
+
key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
|
|
11500
11505
|
const patchProp = (el, key, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => {
|
|
11501
11506
|
if (key === "class") {
|
|
11502
11507
|
patchClass(el, nextValue, isSVG);
|
|
@@ -11530,7 +11535,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
11530
11535
|
if (key === "innerHTML" || key === "textContent") {
|
|
11531
11536
|
return true;
|
|
11532
11537
|
}
|
|
11533
|
-
if (key in el &&
|
|
11538
|
+
if (key in el && isNativeOn(key) && isFunction(value)) {
|
|
11534
11539
|
return true;
|
|
11535
11540
|
}
|
|
11536
11541
|
return false;
|
|
@@ -11547,7 +11552,11 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
11547
11552
|
if (key === "type" && el.tagName === "TEXTAREA") {
|
|
11548
11553
|
return false;
|
|
11549
11554
|
}
|
|
11550
|
-
if (
|
|
11555
|
+
if (key === "width" || key === "height") {
|
|
11556
|
+
const tag = el.tagName;
|
|
11557
|
+
return !(tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE");
|
|
11558
|
+
}
|
|
11559
|
+
if (isNativeOn(key) && isString(value)) {
|
|
11551
11560
|
return false;
|
|
11552
11561
|
}
|
|
11553
11562
|
return key in el;
|
|
@@ -12237,14 +12246,14 @@ const modifierGuards = {
|
|
|
12237
12246
|
exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
|
|
12238
12247
|
};
|
|
12239
12248
|
const withModifiers = (fn, modifiers) => {
|
|
12240
|
-
return (event, ...args) => {
|
|
12249
|
+
return fn._withMods || (fn._withMods = (event, ...args) => {
|
|
12241
12250
|
for (let i = 0; i < modifiers.length; i++) {
|
|
12242
12251
|
const guard = modifierGuards[modifiers[i]];
|
|
12243
12252
|
if (guard && guard(event, modifiers))
|
|
12244
12253
|
return;
|
|
12245
12254
|
}
|
|
12246
12255
|
return fn(event, ...args);
|
|
12247
|
-
};
|
|
12256
|
+
});
|
|
12248
12257
|
};
|
|
12249
12258
|
const keyNames = {
|
|
12250
12259
|
esc: "escape",
|
|
@@ -12272,7 +12281,7 @@ const withKeys = (fn, modifiers) => {
|
|
|
12272
12281
|
);
|
|
12273
12282
|
}
|
|
12274
12283
|
}
|
|
12275
|
-
return (event) => {
|
|
12284
|
+
return fn._withKeys || (fn._withKeys = (event) => {
|
|
12276
12285
|
if (!("key" in event)) {
|
|
12277
12286
|
return;
|
|
12278
12287
|
}
|
|
@@ -12300,7 +12309,7 @@ const withKeys = (fn, modifiers) => {
|
|
|
12300
12309
|
}
|
|
12301
12310
|
}
|
|
12302
12311
|
}
|
|
12303
|
-
};
|
|
12312
|
+
});
|
|
12304
12313
|
};
|
|
12305
12314
|
|
|
12306
12315
|
const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
|