@vue/compat 3.5.34 → 3.5.35
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 +75 -68
- package/dist/vue.cjs.prod.js +70 -55
- package/dist/vue.esm-browser.js +71 -56
- package/dist/vue.esm-browser.prod.js +4 -4
- package/dist/vue.esm-bundler.js +72 -57
- package/dist/vue.global.js +71 -56
- package/dist/vue.global.prod.js +4 -4
- package/dist/vue.runtime.esm-browser.js +70 -55
- package/dist/vue.runtime.esm-browser.prod.js +4 -4
- package/dist/vue.runtime.esm-bundler.js +71 -56
- package/dist/vue.runtime.global.js +70 -55
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +2 -2
package/dist/vue.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.35
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1798,9 +1798,6 @@ function targetTypeMap(rawType) {
|
|
|
1798
1798
|
return 0 /* INVALID */;
|
|
1799
1799
|
}
|
|
1800
1800
|
}
|
|
1801
|
-
function getTargetType(value) {
|
|
1802
|
-
return value["__v_skip"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(toRawType(value));
|
|
1803
|
-
}
|
|
1804
1801
|
// @__NO_SIDE_EFFECTS__
|
|
1805
1802
|
function reactive(target) {
|
|
1806
1803
|
if (/* @__PURE__ */ isReadonly(target)) {
|
|
@@ -1858,14 +1855,17 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
|
|
|
1858
1855
|
if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
|
|
1859
1856
|
return target;
|
|
1860
1857
|
}
|
|
1861
|
-
|
|
1862
|
-
if (targetType === 0 /* INVALID */) {
|
|
1858
|
+
if (target["__v_skip"] || !Object.isExtensible(target)) {
|
|
1863
1859
|
return target;
|
|
1864
1860
|
}
|
|
1865
1861
|
const existingProxy = proxyMap.get(target);
|
|
1866
1862
|
if (existingProxy) {
|
|
1867
1863
|
return existingProxy;
|
|
1868
1864
|
}
|
|
1865
|
+
const targetType = targetTypeMap(toRawType(target));
|
|
1866
|
+
if (targetType === 0 /* INVALID */) {
|
|
1867
|
+
return target;
|
|
1868
|
+
}
|
|
1869
1869
|
const proxy = new Proxy(
|
|
1870
1870
|
target,
|
|
1871
1871
|
targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
|
|
@@ -4017,19 +4017,18 @@ const TeleportImpl = {
|
|
|
4017
4017
|
target,
|
|
4018
4018
|
props
|
|
4019
4019
|
} = vnode;
|
|
4020
|
-
|
|
4020
|
+
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
4021
4021
|
const pendingMount = pendingMounts.get(vnode);
|
|
4022
4022
|
if (pendingMount) {
|
|
4023
4023
|
pendingMount.flags |= 8;
|
|
4024
4024
|
pendingMounts.delete(vnode);
|
|
4025
|
-
shouldRemove = false;
|
|
4026
4025
|
}
|
|
4027
4026
|
if (target) {
|
|
4028
4027
|
hostRemove(targetStart);
|
|
4029
4028
|
hostRemove(targetAnchor);
|
|
4030
4029
|
}
|
|
4031
4030
|
doRemove && hostRemove(anchor);
|
|
4032
|
-
if (shapeFlag & 16) {
|
|
4031
|
+
if (!pendingMount && shapeFlag & 16) {
|
|
4033
4032
|
for (let i = 0; i < children.length; i++) {
|
|
4034
4033
|
const child = children[i];
|
|
4035
4034
|
unmount(
|
|
@@ -5000,20 +4999,16 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
5000
4999
|
slotScopeIds,
|
|
5001
5000
|
optimized
|
|
5002
5001
|
);
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
`Hydration children mismatch on`,
|
|
5009
|
-
el,
|
|
5010
|
-
`
|
|
5002
|
+
if (next && !isMismatchAllowed(el, 1 /* CHILDREN */)) {
|
|
5003
|
+
warn$1(
|
|
5004
|
+
`Hydration children mismatch on`,
|
|
5005
|
+
el,
|
|
5006
|
+
`
|
|
5011
5007
|
Server rendered element contains more child nodes than client vdom.`
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
}
|
|
5008
|
+
);
|
|
5009
|
+
logMismatchError();
|
|
5010
|
+
}
|
|
5011
|
+
while (next) {
|
|
5017
5012
|
const cur = next;
|
|
5018
5013
|
next = next.nextSibling;
|
|
5019
5014
|
remove(cur);
|
|
@@ -5076,7 +5071,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
5076
5071
|
optimized = optimized || !!parentVNode.dynamicChildren;
|
|
5077
5072
|
const children = parentVNode.children;
|
|
5078
5073
|
const l = children.length;
|
|
5079
|
-
let
|
|
5074
|
+
let hasCheckedMismatch = false;
|
|
5080
5075
|
for (let i = 0; i < l; i++) {
|
|
5081
5076
|
const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]);
|
|
5082
5077
|
const isText = vnode.type === Text;
|
|
@@ -5104,17 +5099,17 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
5104
5099
|
} else if (isText && !vnode.children) {
|
|
5105
5100
|
insert(vnode.el = createText(""), container);
|
|
5106
5101
|
} else {
|
|
5107
|
-
if (!
|
|
5108
|
-
|
|
5102
|
+
if (!hasCheckedMismatch) {
|
|
5103
|
+
hasCheckedMismatch = true;
|
|
5104
|
+
if (!isMismatchAllowed(container, 1 /* CHILDREN */)) {
|
|
5109
5105
|
warn$1(
|
|
5110
5106
|
`Hydration children mismatch on`,
|
|
5111
5107
|
container,
|
|
5112
5108
|
`
|
|
5113
5109
|
Server rendered element contains fewer child nodes than client vdom.`
|
|
5114
5110
|
);
|
|
5115
|
-
|
|
5111
|
+
logMismatchError();
|
|
5116
5112
|
}
|
|
5117
|
-
logMismatchError();
|
|
5118
5113
|
}
|
|
5119
5114
|
patch(
|
|
5120
5115
|
null,
|
|
@@ -7597,7 +7592,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7597
7592
|
return vm;
|
|
7598
7593
|
}
|
|
7599
7594
|
}
|
|
7600
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7595
|
+
Vue.version = `2.6.14-compat:${"3.5.35"}`;
|
|
7601
7596
|
Vue.config = singletonApp.config;
|
|
7602
7597
|
Vue.use = (plugin, ...options) => {
|
|
7603
7598
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -10603,9 +10598,13 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10603
10598
|
const needTransition2 = moveType !== 2 && shapeFlag & 1 && transition;
|
|
10604
10599
|
if (needTransition2) {
|
|
10605
10600
|
if (moveType === 0) {
|
|
10606
|
-
transition.
|
|
10607
|
-
|
|
10608
|
-
|
|
10601
|
+
if (transition.persisted && !el[leaveCbKey]) {
|
|
10602
|
+
hostInsert(el, container, anchor);
|
|
10603
|
+
} else {
|
|
10604
|
+
transition.beforeEnter(el);
|
|
10605
|
+
hostInsert(el, container, anchor);
|
|
10606
|
+
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
|
|
10607
|
+
}
|
|
10609
10608
|
} else {
|
|
10610
10609
|
const { leave, delayLeave, afterLeave } = transition;
|
|
10611
10610
|
const remove2 = () => {
|
|
@@ -10616,16 +10615,21 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10616
10615
|
}
|
|
10617
10616
|
};
|
|
10618
10617
|
const performLeave = () => {
|
|
10618
|
+
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
10619
10619
|
if (el._isLeaving) {
|
|
10620
10620
|
el[leaveCbKey](
|
|
10621
10621
|
true
|
|
10622
10622
|
/* cancelled */
|
|
10623
10623
|
);
|
|
10624
10624
|
}
|
|
10625
|
-
|
|
10625
|
+
if (transition.persisted && !wasLeaving) {
|
|
10626
10626
|
remove2();
|
|
10627
|
-
|
|
10628
|
-
|
|
10627
|
+
} else {
|
|
10628
|
+
leave(el, () => {
|
|
10629
|
+
remove2();
|
|
10630
|
+
afterLeave && afterLeave();
|
|
10631
|
+
});
|
|
10632
|
+
}
|
|
10629
10633
|
};
|
|
10630
10634
|
if (delayLeave) {
|
|
10631
10635
|
delayLeave(el, remove2, performLeave);
|
|
@@ -12720,7 +12724,7 @@ function isMemoSame(cached, memo) {
|
|
|
12720
12724
|
return true;
|
|
12721
12725
|
}
|
|
12722
12726
|
|
|
12723
|
-
const version = "3.5.
|
|
12727
|
+
const version = "3.5.35";
|
|
12724
12728
|
const warn = warn$1 ;
|
|
12725
12729
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12726
12730
|
const devtools = devtools$1 ;
|
|
@@ -13497,12 +13501,37 @@ function createInvoker(initialValue, instance) {
|
|
|
13497
13501
|
} else if (e._vts <= invoker.attached) {
|
|
13498
13502
|
return;
|
|
13499
13503
|
}
|
|
13500
|
-
|
|
13501
|
-
|
|
13502
|
-
|
|
13503
|
-
|
|
13504
|
-
|
|
13505
|
-
|
|
13504
|
+
const value = invoker.value;
|
|
13505
|
+
if (isArray(value)) {
|
|
13506
|
+
const originalStop = e.stopImmediatePropagation;
|
|
13507
|
+
e.stopImmediatePropagation = () => {
|
|
13508
|
+
originalStop.call(e);
|
|
13509
|
+
e._stopped = true;
|
|
13510
|
+
};
|
|
13511
|
+
const handlers = value.slice();
|
|
13512
|
+
const args = [e];
|
|
13513
|
+
for (let i = 0; i < handlers.length; i++) {
|
|
13514
|
+
if (e._stopped) {
|
|
13515
|
+
break;
|
|
13516
|
+
}
|
|
13517
|
+
const handler = handlers[i];
|
|
13518
|
+
if (handler) {
|
|
13519
|
+
callWithAsyncErrorHandling(
|
|
13520
|
+
handler,
|
|
13521
|
+
instance,
|
|
13522
|
+
5,
|
|
13523
|
+
args
|
|
13524
|
+
);
|
|
13525
|
+
}
|
|
13526
|
+
}
|
|
13527
|
+
} else {
|
|
13528
|
+
callWithAsyncErrorHandling(
|
|
13529
|
+
value,
|
|
13530
|
+
instance,
|
|
13531
|
+
5,
|
|
13532
|
+
[e]
|
|
13533
|
+
);
|
|
13534
|
+
}
|
|
13506
13535
|
};
|
|
13507
13536
|
invoker.value = initialValue;
|
|
13508
13537
|
invoker.attached = getNow();
|
|
@@ -13518,20 +13547,6 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13518
13547
|
);
|
|
13519
13548
|
return NOOP;
|
|
13520
13549
|
}
|
|
13521
|
-
function patchStopImmediatePropagation(e, value) {
|
|
13522
|
-
if (isArray(value)) {
|
|
13523
|
-
const originalStop = e.stopImmediatePropagation;
|
|
13524
|
-
e.stopImmediatePropagation = () => {
|
|
13525
|
-
originalStop.call(e);
|
|
13526
|
-
e._stopped = true;
|
|
13527
|
-
};
|
|
13528
|
-
return value.map(
|
|
13529
|
-
(fn) => (e2) => !e2._stopped && fn && fn(e2)
|
|
13530
|
-
);
|
|
13531
|
-
} else {
|
|
13532
|
-
return value;
|
|
13533
|
-
}
|
|
13534
|
-
}
|
|
13535
13550
|
|
|
13536
13551
|
const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
|
|
13537
13552
|
key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
|
|
@@ -19577,24 +19592,16 @@ const transformFor = createStructuralDirectiveTransform(
|
|
|
19577
19592
|
const keyProp = findProp(node, `key`, false, true);
|
|
19578
19593
|
const isDirKey = keyProp && keyProp.type === 7;
|
|
19579
19594
|
let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
|
|
19580
|
-
|
|
19581
|
-
|
|
19582
|
-
|
|
19583
|
-
keyExp,
|
|
19584
|
-
context
|
|
19585
|
-
);
|
|
19586
|
-
}
|
|
19587
|
-
}
|
|
19588
|
-
const keyProperty = keyProp && keyExp ? createObjectProperty(`key`, keyExp) : null;
|
|
19589
|
-
if (isTemplate) {
|
|
19590
|
-
if (memo) {
|
|
19595
|
+
const keyProperty = keyExp ? createObjectProperty(`key`, keyExp) : null;
|
|
19596
|
+
{
|
|
19597
|
+
if (isTemplate && memo) {
|
|
19591
19598
|
memo.exp = processExpression(
|
|
19592
19599
|
memo.exp,
|
|
19593
19600
|
context
|
|
19594
19601
|
);
|
|
19595
19602
|
}
|
|
19596
|
-
if (
|
|
19597
|
-
keyProperty.value = processExpression(
|
|
19603
|
+
if ((isTemplate || memo) && keyProperty && isDirKey) {
|
|
19604
|
+
keyExp = keyProp.exp = keyProperty.value = processExpression(
|
|
19598
19605
|
keyProperty.value,
|
|
19599
19606
|
context
|
|
19600
19607
|
);
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.35
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1602,9 +1602,6 @@ function targetTypeMap(rawType) {
|
|
|
1602
1602
|
return 0 /* INVALID */;
|
|
1603
1603
|
}
|
|
1604
1604
|
}
|
|
1605
|
-
function getTargetType(value) {
|
|
1606
|
-
return value["__v_skip"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(toRawType(value));
|
|
1607
|
-
}
|
|
1608
1605
|
// @__NO_SIDE_EFFECTS__
|
|
1609
1606
|
function reactive(target) {
|
|
1610
1607
|
if (/* @__PURE__ */ isReadonly(target)) {
|
|
@@ -1655,14 +1652,17 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
|
|
|
1655
1652
|
if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
|
|
1656
1653
|
return target;
|
|
1657
1654
|
}
|
|
1658
|
-
|
|
1659
|
-
if (targetType === 0 /* INVALID */) {
|
|
1655
|
+
if (target["__v_skip"] || !Object.isExtensible(target)) {
|
|
1660
1656
|
return target;
|
|
1661
1657
|
}
|
|
1662
1658
|
const existingProxy = proxyMap.get(target);
|
|
1663
1659
|
if (existingProxy) {
|
|
1664
1660
|
return existingProxy;
|
|
1665
1661
|
}
|
|
1662
|
+
const targetType = targetTypeMap(toRawType(target));
|
|
1663
|
+
if (targetType === 0 /* INVALID */) {
|
|
1664
|
+
return target;
|
|
1665
|
+
}
|
|
1666
1666
|
const proxy = new Proxy(
|
|
1667
1667
|
target,
|
|
1668
1668
|
targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
|
|
@@ -3049,19 +3049,18 @@ const TeleportImpl = {
|
|
|
3049
3049
|
target,
|
|
3050
3050
|
props
|
|
3051
3051
|
} = vnode;
|
|
3052
|
-
|
|
3052
|
+
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
3053
3053
|
const pendingMount = pendingMounts.get(vnode);
|
|
3054
3054
|
if (pendingMount) {
|
|
3055
3055
|
pendingMount.flags |= 8;
|
|
3056
3056
|
pendingMounts.delete(vnode);
|
|
3057
|
-
shouldRemove = false;
|
|
3058
3057
|
}
|
|
3059
3058
|
if (target) {
|
|
3060
3059
|
hostRemove(targetStart);
|
|
3061
3060
|
hostRemove(targetAnchor);
|
|
3062
3061
|
}
|
|
3063
3062
|
doRemove && hostRemove(anchor);
|
|
3064
|
-
if (shapeFlag & 16) {
|
|
3063
|
+
if (!pendingMount && shapeFlag & 16) {
|
|
3065
3064
|
for (let i = 0; i < children.length; i++) {
|
|
3066
3065
|
const child = children[i];
|
|
3067
3066
|
unmount(
|
|
@@ -3967,10 +3966,10 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3967
3966
|
slotScopeIds,
|
|
3968
3967
|
optimized
|
|
3969
3968
|
);
|
|
3969
|
+
if (next && !isMismatchAllowed(el, 1 /* CHILDREN */)) {
|
|
3970
|
+
logMismatchError();
|
|
3971
|
+
}
|
|
3970
3972
|
while (next) {
|
|
3971
|
-
if (!isMismatchAllowed(el, 1 /* CHILDREN */)) {
|
|
3972
|
-
logMismatchError();
|
|
3973
|
-
}
|
|
3974
3973
|
const cur = next;
|
|
3975
3974
|
next = next.nextSibling;
|
|
3976
3975
|
remove(cur);
|
|
@@ -4032,6 +4031,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4032
4031
|
optimized = optimized || !!parentVNode.dynamicChildren;
|
|
4033
4032
|
const children = parentVNode.children;
|
|
4034
4033
|
const l = children.length;
|
|
4034
|
+
let hasCheckedMismatch = false;
|
|
4035
4035
|
for (let i = 0; i < l; i++) {
|
|
4036
4036
|
const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]);
|
|
4037
4037
|
const isText = vnode.type === Text;
|
|
@@ -4059,8 +4059,11 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4059
4059
|
} else if (isText && !vnode.children) {
|
|
4060
4060
|
insert(vnode.el = createText(""), container);
|
|
4061
4061
|
} else {
|
|
4062
|
-
if (!
|
|
4063
|
-
|
|
4062
|
+
if (!hasCheckedMismatch) {
|
|
4063
|
+
hasCheckedMismatch = true;
|
|
4064
|
+
if (!isMismatchAllowed(container, 1 /* CHILDREN */)) {
|
|
4065
|
+
logMismatchError();
|
|
4066
|
+
}
|
|
4064
4067
|
}
|
|
4065
4068
|
patch(
|
|
4066
4069
|
null,
|
|
@@ -6108,7 +6111,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6108
6111
|
return vm;
|
|
6109
6112
|
}
|
|
6110
6113
|
}
|
|
6111
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
6114
|
+
Vue.version = `2.6.14-compat:${"3.5.35"}`;
|
|
6112
6115
|
Vue.config = singletonApp.config;
|
|
6113
6116
|
Vue.use = (plugin, ...options) => {
|
|
6114
6117
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -8535,9 +8538,13 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8535
8538
|
const needTransition2 = moveType !== 2 && shapeFlag & 1 && transition;
|
|
8536
8539
|
if (needTransition2) {
|
|
8537
8540
|
if (moveType === 0) {
|
|
8538
|
-
transition.
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
+
if (transition.persisted && !el[leaveCbKey]) {
|
|
8542
|
+
hostInsert(el, container, anchor);
|
|
8543
|
+
} else {
|
|
8544
|
+
transition.beforeEnter(el);
|
|
8545
|
+
hostInsert(el, container, anchor);
|
|
8546
|
+
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
|
|
8547
|
+
}
|
|
8541
8548
|
} else {
|
|
8542
8549
|
const { leave, delayLeave, afterLeave } = transition;
|
|
8543
8550
|
const remove2 = () => {
|
|
@@ -8548,16 +8555,21 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8548
8555
|
}
|
|
8549
8556
|
};
|
|
8550
8557
|
const performLeave = () => {
|
|
8558
|
+
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
8551
8559
|
if (el._isLeaving) {
|
|
8552
8560
|
el[leaveCbKey](
|
|
8553
8561
|
true
|
|
8554
8562
|
/* cancelled */
|
|
8555
8563
|
);
|
|
8556
8564
|
}
|
|
8557
|
-
|
|
8565
|
+
if (transition.persisted && !wasLeaving) {
|
|
8558
8566
|
remove2();
|
|
8559
|
-
|
|
8560
|
-
|
|
8567
|
+
} else {
|
|
8568
|
+
leave(el, () => {
|
|
8569
|
+
remove2();
|
|
8570
|
+
afterLeave && afterLeave();
|
|
8571
|
+
});
|
|
8572
|
+
}
|
|
8561
8573
|
};
|
|
8562
8574
|
if (delayLeave) {
|
|
8563
8575
|
delayLeave(el, remove2, performLeave);
|
|
@@ -10246,7 +10258,7 @@ function isMemoSame(cached, memo) {
|
|
|
10246
10258
|
return true;
|
|
10247
10259
|
}
|
|
10248
10260
|
|
|
10249
|
-
const version = "3.5.
|
|
10261
|
+
const version = "3.5.35";
|
|
10250
10262
|
const warn$1 = NOOP;
|
|
10251
10263
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10252
10264
|
const devtools = void 0;
|
|
@@ -11000,31 +11012,42 @@ function createInvoker(initialValue, instance) {
|
|
|
11000
11012
|
} else if (e._vts <= invoker.attached) {
|
|
11001
11013
|
return;
|
|
11002
11014
|
}
|
|
11003
|
-
|
|
11004
|
-
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11015
|
+
const value = invoker.value;
|
|
11016
|
+
if (isArray(value)) {
|
|
11017
|
+
const originalStop = e.stopImmediatePropagation;
|
|
11018
|
+
e.stopImmediatePropagation = () => {
|
|
11019
|
+
originalStop.call(e);
|
|
11020
|
+
e._stopped = true;
|
|
11021
|
+
};
|
|
11022
|
+
const handlers = value.slice();
|
|
11023
|
+
const args = [e];
|
|
11024
|
+
for (let i = 0; i < handlers.length; i++) {
|
|
11025
|
+
if (e._stopped) {
|
|
11026
|
+
break;
|
|
11027
|
+
}
|
|
11028
|
+
const handler = handlers[i];
|
|
11029
|
+
if (handler) {
|
|
11030
|
+
callWithAsyncErrorHandling(
|
|
11031
|
+
handler,
|
|
11032
|
+
instance,
|
|
11033
|
+
5,
|
|
11034
|
+
args
|
|
11035
|
+
);
|
|
11036
|
+
}
|
|
11037
|
+
}
|
|
11038
|
+
} else {
|
|
11039
|
+
callWithAsyncErrorHandling(
|
|
11040
|
+
value,
|
|
11041
|
+
instance,
|
|
11042
|
+
5,
|
|
11043
|
+
[e]
|
|
11044
|
+
);
|
|
11045
|
+
}
|
|
11009
11046
|
};
|
|
11010
11047
|
invoker.value = initialValue;
|
|
11011
11048
|
invoker.attached = getNow();
|
|
11012
11049
|
return invoker;
|
|
11013
11050
|
}
|
|
11014
|
-
function patchStopImmediatePropagation(e, value) {
|
|
11015
|
-
if (isArray(value)) {
|
|
11016
|
-
const originalStop = e.stopImmediatePropagation;
|
|
11017
|
-
e.stopImmediatePropagation = () => {
|
|
11018
|
-
originalStop.call(e);
|
|
11019
|
-
e._stopped = true;
|
|
11020
|
-
};
|
|
11021
|
-
return value.map(
|
|
11022
|
-
(fn) => (e2) => !e2._stopped && fn && fn(e2)
|
|
11023
|
-
);
|
|
11024
|
-
} else {
|
|
11025
|
-
return value;
|
|
11026
|
-
}
|
|
11027
|
-
}
|
|
11028
11051
|
|
|
11029
11052
|
const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
|
|
11030
11053
|
key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
|
|
@@ -16792,24 +16815,16 @@ const transformFor = createStructuralDirectiveTransform(
|
|
|
16792
16815
|
const keyProp = findProp(node, `key`, false, true);
|
|
16793
16816
|
const isDirKey = keyProp && keyProp.type === 7;
|
|
16794
16817
|
let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
|
|
16795
|
-
|
|
16796
|
-
|
|
16797
|
-
|
|
16798
|
-
keyExp,
|
|
16799
|
-
context
|
|
16800
|
-
);
|
|
16801
|
-
}
|
|
16802
|
-
}
|
|
16803
|
-
const keyProperty = keyProp && keyExp ? createObjectProperty(`key`, keyExp) : null;
|
|
16804
|
-
if (isTemplate) {
|
|
16805
|
-
if (memo) {
|
|
16818
|
+
const keyProperty = keyExp ? createObjectProperty(`key`, keyExp) : null;
|
|
16819
|
+
{
|
|
16820
|
+
if (isTemplate && memo) {
|
|
16806
16821
|
memo.exp = processExpression(
|
|
16807
16822
|
memo.exp,
|
|
16808
16823
|
context
|
|
16809
16824
|
);
|
|
16810
16825
|
}
|
|
16811
|
-
if (
|
|
16812
|
-
keyProperty.value = processExpression(
|
|
16826
|
+
if ((isTemplate || memo) && keyProperty && isDirKey) {
|
|
16827
|
+
keyExp = keyProp.exp = keyProperty.value = processExpression(
|
|
16813
16828
|
keyProperty.value,
|
|
16814
16829
|
context
|
|
16815
16830
|
);
|