@vue/runtime-dom 3.6.0-beta.12 → 3.6.0-beta.14
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/runtime-dom.cjs.js +16 -12
- package/dist/runtime-dom.cjs.prod.js +16 -12
- package/dist/runtime-dom.esm-browser.js +106 -66
- package/dist/runtime-dom.esm-browser.prod.js +3 -3
- package/dist/runtime-dom.esm-bundler.js +16 -12
- package/dist/runtime-dom.global.js +106 -66
- package/dist/runtime-dom.global.prod.js +3 -3
- package/package.json +4 -4
package/dist/runtime-dom.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.6.0-beta.
|
|
2
|
+
* @vue/runtime-dom v3.6.0-beta.14
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -522,7 +522,21 @@ function createInvoker(initialValue, instance) {
|
|
|
522
522
|
const invoker = (e) => {
|
|
523
523
|
if (!e._vts) e._vts = Date.now();
|
|
524
524
|
else if (e._vts <= invoker.attached) return;
|
|
525
|
-
|
|
525
|
+
const value = invoker.value;
|
|
526
|
+
if ((0, _vue_shared.isArray)(value)) {
|
|
527
|
+
const originalStop = e.stopImmediatePropagation;
|
|
528
|
+
e.stopImmediatePropagation = () => {
|
|
529
|
+
originalStop.call(e);
|
|
530
|
+
e._stopped = true;
|
|
531
|
+
};
|
|
532
|
+
const handlers = value.slice();
|
|
533
|
+
const args = [e];
|
|
534
|
+
for (let i = 0; i < handlers.length; i++) {
|
|
535
|
+
if (e._stopped) break;
|
|
536
|
+
const handler = handlers[i];
|
|
537
|
+
if (handler) (0, _vue_runtime_core.callWithAsyncErrorHandling)(handler, instance, 5, args);
|
|
538
|
+
}
|
|
539
|
+
} else (0, _vue_runtime_core.callWithAsyncErrorHandling)(value, instance, 5, [e]);
|
|
526
540
|
};
|
|
527
541
|
invoker.value = initialValue;
|
|
528
542
|
invoker.attached = getNow();
|
|
@@ -533,16 +547,6 @@ function sanitizeEventValue(value, propName) {
|
|
|
533
547
|
(0, _vue_runtime_core.warn)(`Wrong type passed as event handler to ${propName} - did you forget @ or : in front of your prop?\nExpected function or array of functions, received type ${typeof value}.`);
|
|
534
548
|
return _vue_shared.NOOP;
|
|
535
549
|
}
|
|
536
|
-
function patchStopImmediatePropagation(e, value) {
|
|
537
|
-
if ((0, _vue_shared.isArray)(value)) {
|
|
538
|
-
const originalStop = e.stopImmediatePropagation;
|
|
539
|
-
e.stopImmediatePropagation = () => {
|
|
540
|
-
originalStop.call(e);
|
|
541
|
-
e._stopped = true;
|
|
542
|
-
};
|
|
543
|
-
return value.map((fn) => (e) => !e._stopped && fn && fn(e));
|
|
544
|
-
} else return value;
|
|
545
|
-
}
|
|
546
550
|
//#endregion
|
|
547
551
|
//#region packages/runtime-dom/src/patchProp.ts
|
|
548
552
|
const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.6.0-beta.
|
|
2
|
+
* @vue/runtime-dom v3.6.0-beta.14
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -514,22 +514,26 @@ function createInvoker(initialValue, instance) {
|
|
|
514
514
|
const invoker = (e) => {
|
|
515
515
|
if (!e._vts) e._vts = Date.now();
|
|
516
516
|
else if (e._vts <= invoker.attached) return;
|
|
517
|
-
|
|
517
|
+
const value = invoker.value;
|
|
518
|
+
if ((0, _vue_shared.isArray)(value)) {
|
|
519
|
+
const originalStop = e.stopImmediatePropagation;
|
|
520
|
+
e.stopImmediatePropagation = () => {
|
|
521
|
+
originalStop.call(e);
|
|
522
|
+
e._stopped = true;
|
|
523
|
+
};
|
|
524
|
+
const handlers = value.slice();
|
|
525
|
+
const args = [e];
|
|
526
|
+
for (let i = 0; i < handlers.length; i++) {
|
|
527
|
+
if (e._stopped) break;
|
|
528
|
+
const handler = handlers[i];
|
|
529
|
+
if (handler) (0, _vue_runtime_core.callWithAsyncErrorHandling)(handler, instance, 5, args);
|
|
530
|
+
}
|
|
531
|
+
} else (0, _vue_runtime_core.callWithAsyncErrorHandling)(value, instance, 5, [e]);
|
|
518
532
|
};
|
|
519
533
|
invoker.value = initialValue;
|
|
520
534
|
invoker.attached = getNow();
|
|
521
535
|
return invoker;
|
|
522
536
|
}
|
|
523
|
-
function patchStopImmediatePropagation(e, value) {
|
|
524
|
-
if ((0, _vue_shared.isArray)(value)) {
|
|
525
|
-
const originalStop = e.stopImmediatePropagation;
|
|
526
|
-
e.stopImmediatePropagation = () => {
|
|
527
|
-
originalStop.call(e);
|
|
528
|
-
e._stopped = true;
|
|
529
|
-
};
|
|
530
|
-
return value.map((fn) => (e) => !e._stopped && fn && fn(e));
|
|
531
|
-
} else return value;
|
|
532
|
-
}
|
|
533
537
|
//#endregion
|
|
534
538
|
//#region packages/runtime-dom/src/patchProp.ts
|
|
535
539
|
const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.6.0-beta.
|
|
2
|
+
* @vue/runtime-dom v3.6.0-beta.14
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1222,9 +1222,6 @@ function targetTypeMap(rawType) {
|
|
|
1222
1222
|
default: return 0;
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
|
-
function getTargetType(value) {
|
|
1226
|
-
return value["__v_skip"] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value));
|
|
1227
|
-
}
|
|
1228
1225
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1229
1226
|
function reactive(target) {
|
|
1230
1227
|
if (/* @__PURE__ */ isReadonly(target)) return target;
|
|
@@ -1337,10 +1334,11 @@ function createReactiveObject(target, isReadonly, baseHandlers, collectionHandle
|
|
|
1337
1334
|
return target;
|
|
1338
1335
|
}
|
|
1339
1336
|
if (target["__v_raw"] && !(isReadonly && target["__v_isReactive"])) return target;
|
|
1340
|
-
|
|
1341
|
-
if (targetType === 0) return target;
|
|
1337
|
+
if (target["__v_skip"] || !Object.isExtensible(target)) return target;
|
|
1342
1338
|
const existingProxy = proxyMap.get(target);
|
|
1343
1339
|
if (existingProxy) return existingProxy;
|
|
1340
|
+
const targetType = targetTypeMap(toRawType(target));
|
|
1341
|
+
if (targetType === 0) return target;
|
|
1344
1342
|
const proxy = new Proxy(target, targetType === 2 ? collectionHandlers : baseHandlers);
|
|
1345
1343
|
proxyMap.set(target, proxy);
|
|
1346
1344
|
return proxy;
|
|
@@ -2590,6 +2588,7 @@ function flushJobs(seen) {
|
|
|
2590
2588
|
}
|
|
2591
2589
|
flushIndex = 0;
|
|
2592
2590
|
jobsLength = 0;
|
|
2591
|
+
jobs.length = 0;
|
|
2593
2592
|
flushPostFlushCbs(seen);
|
|
2594
2593
|
currentFlushPromise = null;
|
|
2595
2594
|
if (jobsLength || postJobs.length) flushJobs(seen);
|
|
@@ -2647,6 +2646,14 @@ function createRecord(id, initialDef) {
|
|
|
2647
2646
|
function normalizeClassComponent(component) {
|
|
2648
2647
|
return isClassComponent(component) ? component.__vccOpts : component;
|
|
2649
2648
|
}
|
|
2649
|
+
function hasDirtyAncestor(instance, dirtyInstances) {
|
|
2650
|
+
let parent = instance.parent;
|
|
2651
|
+
while (parent) {
|
|
2652
|
+
if (dirtyInstances.has(parent)) return true;
|
|
2653
|
+
parent = parent.parent;
|
|
2654
|
+
}
|
|
2655
|
+
return false;
|
|
2656
|
+
}
|
|
2650
2657
|
function rerender(id, newRender) {
|
|
2651
2658
|
const record = map.get(id);
|
|
2652
2659
|
if (!record) return;
|
|
@@ -2678,42 +2685,69 @@ function reload(id, newComp) {
|
|
|
2678
2685
|
const isVapor = record.initialDef.__vapor;
|
|
2679
2686
|
updateComponentDef(record.initialDef, newComp);
|
|
2680
2687
|
const instances = [...record.instances];
|
|
2681
|
-
if (isVapor && newComp.__vapor && !instances.some((i) => i.ceReload)) {
|
|
2688
|
+
if (isVapor && newComp.__vapor && !instances.some((instance) => instance.parent && !instance.parent.vapor) && !instances.some((i) => i.ceReload)) {
|
|
2682
2689
|
for (const instance of instances) if (instance.root && instance.root.ce && instance !== instance.root) instance.root.ce._removeChildStyle(instance.type);
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
const
|
|
2686
|
-
let dirtyInstances = hmrDirtyComponents.get(oldComp);
|
|
2687
|
-
if (!dirtyInstances) {
|
|
2688
|
-
if (oldComp !== record.initialDef) updateComponentDef(oldComp, newComp);
|
|
2689
|
-
hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set());
|
|
2690
|
-
}
|
|
2691
|
-
dirtyInstances.add(instance);
|
|
2692
|
-
hmrDirtyComponentsMode.set(oldComp, !!isVapor);
|
|
2693
|
-
instance.appContext.propsCache.delete(instance.type);
|
|
2694
|
-
instance.appContext.emitsCache.delete(instance.type);
|
|
2695
|
-
instance.appContext.optionsCache.delete(instance.type);
|
|
2696
|
-
if (instance.ceReload) {
|
|
2697
|
-
dirtyInstances.add(instance);
|
|
2698
|
-
instance.ceReload(newComp.styles);
|
|
2699
|
-
dirtyInstances.delete(instance);
|
|
2700
|
-
} else if (instance.parent) queueJob(() => {
|
|
2701
|
-
isHmrUpdating = true;
|
|
2690
|
+
const dirtyInstances = new Set(instances);
|
|
2691
|
+
const rerenderedParents = /* @__PURE__ */ new Set();
|
|
2692
|
+
for (const instance of instances) {
|
|
2702
2693
|
const parent = instance.parent;
|
|
2703
|
-
if (parent
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2694
|
+
if (parent) {
|
|
2695
|
+
if (!hasDirtyAncestor(instance, dirtyInstances) && !rerenderedParents.has(parent)) {
|
|
2696
|
+
rerenderedParents.add(parent);
|
|
2697
|
+
parent.hmrRerender();
|
|
2698
|
+
}
|
|
2699
|
+
} else instance.hmrReload(newComp);
|
|
2700
|
+
}
|
|
2701
|
+
} else {
|
|
2702
|
+
const parentUpdates = /* @__PURE__ */ new Map();
|
|
2703
|
+
const dirtyInstanceSet = new Set(instances);
|
|
2704
|
+
for (const instance of instances) {
|
|
2705
|
+
const oldComp = normalizeClassComponent(instance.type);
|
|
2706
|
+
let dirtyInstances = hmrDirtyComponents.get(oldComp);
|
|
2707
|
+
if (!dirtyInstances) {
|
|
2708
|
+
if (oldComp !== record.initialDef) updateComponentDef(oldComp, newComp);
|
|
2709
|
+
hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set());
|
|
2707
2710
|
}
|
|
2708
|
-
|
|
2709
|
-
|
|
2711
|
+
dirtyInstances.add(instance);
|
|
2712
|
+
hmrDirtyComponentsMode.set(oldComp, !!isVapor);
|
|
2713
|
+
instance.appContext.propsCache.delete(instance.type);
|
|
2714
|
+
instance.appContext.emitsCache.delete(instance.type);
|
|
2715
|
+
instance.appContext.optionsCache.delete(instance.type);
|
|
2716
|
+
if (instance.ceReload) {
|
|
2717
|
+
dirtyInstances.add(instance);
|
|
2718
|
+
instance.ceReload(newComp.styles);
|
|
2719
|
+
dirtyInstances.delete(instance);
|
|
2720
|
+
} else if (instance.parent) {
|
|
2721
|
+
const parent = instance.parent;
|
|
2722
|
+
if (!hasDirtyAncestor(instance, dirtyInstanceSet)) {
|
|
2723
|
+
let updates = parentUpdates.get(parent);
|
|
2724
|
+
if (!updates) parentUpdates.set(parent, updates = []);
|
|
2725
|
+
updates.push([instance, dirtyInstances]);
|
|
2726
|
+
}
|
|
2727
|
+
} else if (instance.appContext.reload) instance.appContext.reload();
|
|
2728
|
+
else if (typeof window !== "undefined") window.location.reload();
|
|
2729
|
+
else console.warn("[HMR] Root or manually mounted instance modified. Full reload required.");
|
|
2730
|
+
if (instance.root.ce && instance !== instance.root) instance.root.ce._removeChildStyle(oldComp);
|
|
2731
|
+
}
|
|
2732
|
+
parentUpdates.forEach((updates, parent) => {
|
|
2733
|
+
queueJob(() => {
|
|
2734
|
+
isHmrUpdating = true;
|
|
2735
|
+
if (parent.vapor) parent.hmrRerender();
|
|
2736
|
+
else {
|
|
2737
|
+
const i = parent;
|
|
2738
|
+
if (!(i.effect.flags & 1024)) {
|
|
2739
|
+
i.renderCache = [];
|
|
2740
|
+
i.effect.run();
|
|
2741
|
+
}
|
|
2742
|
+
}
|
|
2743
|
+
nextTick(() => {
|
|
2744
|
+
isHmrUpdating = false;
|
|
2745
|
+
});
|
|
2746
|
+
updates.forEach(([instance, dirtyInstances]) => {
|
|
2747
|
+
dirtyInstances.delete(instance);
|
|
2748
|
+
});
|
|
2710
2749
|
});
|
|
2711
|
-
dirtyInstances.delete(instance);
|
|
2712
2750
|
});
|
|
2713
|
-
else if (instance.appContext.reload) instance.appContext.reload();
|
|
2714
|
-
else if (typeof window !== "undefined") window.location.reload();
|
|
2715
|
-
else console.warn("[HMR] Root or manually mounted instance modified. Full reload required.");
|
|
2716
|
-
if (instance.root.ce && instance !== instance.root) instance.root.ce._removeChildStyle(oldComp);
|
|
2717
2751
|
}
|
|
2718
2752
|
queuePostFlushCb(() => {
|
|
2719
2753
|
hmrDirtyComponents.clear();
|
|
@@ -3159,17 +3193,16 @@ const TeleportImpl = {
|
|
|
3159
3193
|
},
|
|
3160
3194
|
remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
|
|
3161
3195
|
const { shapeFlag, children, anchor, targetStart, targetAnchor, props } = vnode;
|
|
3162
|
-
|
|
3196
|
+
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
3163
3197
|
const pendingMount = pendingMounts.get(vnode);
|
|
3164
3198
|
if (pendingMount) {
|
|
3165
3199
|
pendingMount.flags |= 4;
|
|
3166
3200
|
pendingMounts.delete(vnode);
|
|
3167
|
-
shouldRemove = false;
|
|
3168
3201
|
}
|
|
3169
3202
|
if (targetStart) hostRemove(targetStart);
|
|
3170
3203
|
if (targetAnchor) hostRemove(targetAnchor);
|
|
3171
3204
|
doRemove && hostRemove(anchor);
|
|
3172
|
-
if (shapeFlag & 16) for (let i = 0; i < children.length; i++) {
|
|
3205
|
+
if (!pendingMount && shapeFlag & 16) for (let i = 0; i < children.length; i++) {
|
|
3173
3206
|
const child = children[i];
|
|
3174
3207
|
unmount(child, parentComponent, parentSuspense, shouldRemove, !!child.dynamicChildren);
|
|
3175
3208
|
}
|
|
@@ -3821,15 +3854,11 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3821
3854
|
}
|
|
3822
3855
|
if (shapeFlag & 16 && !(props && (props.innerHTML || props.textContent))) {
|
|
3823
3856
|
let next = hydrateChildren(el.firstChild, vnode, el, parentComponent, parentSuspense, slotScopeIds, optimized);
|
|
3824
|
-
|
|
3857
|
+
if (next && !isMismatchAllowed(el, 1)) {
|
|
3858
|
+
warn$1(`Hydration children mismatch on`, el, `\nServer rendered element contains more child nodes than client vdom.`);
|
|
3859
|
+
logMismatchError();
|
|
3860
|
+
}
|
|
3825
3861
|
while (next) {
|
|
3826
|
-
if (!isMismatchAllowed(el, 1)) {
|
|
3827
|
-
if (!hasWarned) {
|
|
3828
|
-
warn$1(`Hydration children mismatch on`, el, `\nServer rendered element contains more child nodes than client vdom.`);
|
|
3829
|
-
hasWarned = true;
|
|
3830
|
-
}
|
|
3831
|
-
logMismatchError();
|
|
3832
|
-
}
|
|
3833
3862
|
const cur = next;
|
|
3834
3863
|
next = next.nextSibling;
|
|
3835
3864
|
remove(cur);
|
|
@@ -3868,7 +3897,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3868
3897
|
optimized = optimized || !!parentVNode.dynamicChildren;
|
|
3869
3898
|
const children = parentVNode.children;
|
|
3870
3899
|
const l = children.length;
|
|
3871
|
-
let
|
|
3900
|
+
let hasCheckedMismatch = false;
|
|
3872
3901
|
for (let i = 0; i < l; i++) {
|
|
3873
3902
|
const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]);
|
|
3874
3903
|
const isText = vnode.type === Text;
|
|
@@ -3882,12 +3911,12 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3882
3911
|
node = hydrateNode(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
|
|
3883
3912
|
} else if (isText && !vnode.children) insert(vnode.el = createText(""), container);
|
|
3884
3913
|
else {
|
|
3885
|
-
if (!
|
|
3886
|
-
|
|
3914
|
+
if (!hasCheckedMismatch) {
|
|
3915
|
+
hasCheckedMismatch = true;
|
|
3916
|
+
if (!isMismatchAllowed(container, 1)) {
|
|
3887
3917
|
warn$1(`Hydration children mismatch on`, container, `\nServer rendered element contains fewer child nodes than client vdom.`);
|
|
3888
|
-
|
|
3918
|
+
logMismatchError();
|
|
3889
3919
|
}
|
|
3890
|
-
logMismatchError();
|
|
3891
3920
|
}
|
|
3892
3921
|
patch(null, vnode, container, null, parentComponent, parentSuspense, getContainerType(container), slotScopeIds);
|
|
3893
3922
|
}
|
|
@@ -4670,6 +4699,7 @@ function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
|
4670
4699
|
slot: vaporSlot,
|
|
4671
4700
|
fallback
|
|
4672
4701
|
};
|
|
4702
|
+
if (!noSlotted && ret.scopeId) ret.slotScopeIds = [ret.scopeId + "-s"];
|
|
4673
4703
|
return ret;
|
|
4674
4704
|
}
|
|
4675
4705
|
if (currentRenderingInstance && (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce)) {
|
|
@@ -6900,8 +6930,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6900
6930
|
else hostInsert(el, container, anchor);
|
|
6901
6931
|
};
|
|
6902
6932
|
const performLeave = () => {
|
|
6933
|
+
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
6903
6934
|
if (el._isLeaving) el[leaveCbKey](true);
|
|
6904
|
-
|
|
6935
|
+
if (transition.persisted && !wasLeaving) remove();
|
|
6936
|
+
else leave(el, () => {
|
|
6905
6937
|
remove();
|
|
6906
6938
|
afterLeave && afterLeave();
|
|
6907
6939
|
});
|
|
@@ -7122,6 +7154,10 @@ function invalidateMount(hooks) {
|
|
|
7122
7154
|
if (hooks) for (let i = 0; i < hooks.length; i++) hooks[i].flags |= 4;
|
|
7123
7155
|
}
|
|
7124
7156
|
function performTransitionEnter(el, transition, insert, parentSuspense, force = false) {
|
|
7157
|
+
if (force && transition.persisted && !el[leaveCbKey]) {
|
|
7158
|
+
insert();
|
|
7159
|
+
return;
|
|
7160
|
+
}
|
|
7125
7161
|
if (force || needTransition(parentSuspense, transition)) {
|
|
7126
7162
|
transition.beforeEnter(el);
|
|
7127
7163
|
insert();
|
|
@@ -8368,7 +8404,7 @@ function isMemoSame(cached, memo) {
|
|
|
8368
8404
|
}
|
|
8369
8405
|
//#endregion
|
|
8370
8406
|
//#region packages/runtime-core/src/index.ts
|
|
8371
|
-
const version = "3.6.0-beta.
|
|
8407
|
+
const version = "3.6.0-beta.14";
|
|
8372
8408
|
const warn = warn$1;
|
|
8373
8409
|
/**
|
|
8374
8410
|
* Runtime error messages. Only exposed in dev or esm builds.
|
|
@@ -8976,7 +9012,21 @@ function createInvoker(initialValue, instance) {
|
|
|
8976
9012
|
const invoker = (e) => {
|
|
8977
9013
|
if (!e._vts) e._vts = Date.now();
|
|
8978
9014
|
else if (e._vts <= invoker.attached) return;
|
|
8979
|
-
|
|
9015
|
+
const value = invoker.value;
|
|
9016
|
+
if (isArray(value)) {
|
|
9017
|
+
const originalStop = e.stopImmediatePropagation;
|
|
9018
|
+
e.stopImmediatePropagation = () => {
|
|
9019
|
+
originalStop.call(e);
|
|
9020
|
+
e._stopped = true;
|
|
9021
|
+
};
|
|
9022
|
+
const handlers = value.slice();
|
|
9023
|
+
const args = [e];
|
|
9024
|
+
for (let i = 0; i < handlers.length; i++) {
|
|
9025
|
+
if (e._stopped) break;
|
|
9026
|
+
const handler = handlers[i];
|
|
9027
|
+
if (handler) callWithAsyncErrorHandling(handler, instance, 5, args);
|
|
9028
|
+
}
|
|
9029
|
+
} else callWithAsyncErrorHandling(value, instance, 5, [e]);
|
|
8980
9030
|
};
|
|
8981
9031
|
invoker.value = initialValue;
|
|
8982
9032
|
invoker.attached = getNow();
|
|
@@ -8987,16 +9037,6 @@ function sanitizeEventValue(value, propName) {
|
|
|
8987
9037
|
warn(`Wrong type passed as event handler to ${propName} - did you forget @ or : in front of your prop?\nExpected function or array of functions, received type ${typeof value}.`);
|
|
8988
9038
|
return NOOP;
|
|
8989
9039
|
}
|
|
8990
|
-
function patchStopImmediatePropagation(e, value) {
|
|
8991
|
-
if (isArray(value)) {
|
|
8992
|
-
const originalStop = e.stopImmediatePropagation;
|
|
8993
|
-
e.stopImmediatePropagation = () => {
|
|
8994
|
-
originalStop.call(e);
|
|
8995
|
-
e._stopped = true;
|
|
8996
|
-
};
|
|
8997
|
-
return value.map((fn) => (e) => !e._stopped && fn && fn(e));
|
|
8998
|
-
} else return value;
|
|
8999
|
-
}
|
|
9000
9040
|
//#endregion
|
|
9001
9041
|
//#region packages/runtime-dom/src/patchProp.ts
|
|
9002
9042
|
const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => {
|