@vue/runtime-dom 3.2.35 → 3.2.38
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 +7 -7
- package/dist/runtime-dom.cjs.prod.js +7 -7
- package/dist/runtime-dom.esm-browser.js +404 -372
- package/dist/runtime-dom.esm-browser.prod.js +1 -1
- package/dist/runtime-dom.esm-bundler.js +9 -9
- package/dist/runtime-dom.global.js +404 -372
- package/dist/runtime-dom.global.prod.js +1 -1
- package/package.json +3 -3
package/dist/runtime-dom.cjs.js
CHANGED
|
@@ -301,7 +301,7 @@ const [_getNow, skipTimestampCheck] = /*#__PURE__*/ (() => {
|
|
|
301
301
|
// if the low-res timestamp which is bigger than the event timestamp
|
|
302
302
|
// (which is evaluated AFTER) it means the event is using a hi-res timestamp,
|
|
303
303
|
// and we need to use the hi-res version for event listeners as well.
|
|
304
|
-
_getNow =
|
|
304
|
+
_getNow = performance.now.bind(performance);
|
|
305
305
|
}
|
|
306
306
|
// #3485: Firefox <= 53 has incorrect Event.timeStamp implementation
|
|
307
307
|
// and does not fire microtasks in between event propagation, so safe to exclude.
|
|
@@ -357,7 +357,8 @@ function parseName(name) {
|
|
|
357
357
|
options[m[0].toLowerCase()] = true;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
|
|
360
|
+
const event = name[2] === ':' ? name.slice(3) : shared.hyphenate(name.slice(2));
|
|
361
|
+
return [event, options];
|
|
361
362
|
}
|
|
362
363
|
function createInvoker(initialValue, instance) {
|
|
363
364
|
const invoker = (e) => {
|
|
@@ -369,7 +370,7 @@ function createInvoker(initialValue, instance) {
|
|
|
369
370
|
// AFTER it was attached.
|
|
370
371
|
const timeStamp = e.timeStamp || _getNow();
|
|
371
372
|
if (skipTimestampCheck || timeStamp >= invoker.attached - 1) {
|
|
372
|
-
runtimeCore.callWithAsyncErrorHandling(patchStopImmediatePropagation(e, invoker.value), instance, 5 /* NATIVE_EVENT_HANDLER */, [e]);
|
|
373
|
+
runtimeCore.callWithAsyncErrorHandling(patchStopImmediatePropagation(e, invoker.value), instance, 5 /* ErrorCodes.NATIVE_EVENT_HANDLER */, [e]);
|
|
373
374
|
}
|
|
374
375
|
};
|
|
375
376
|
invoker.value = initialValue;
|
|
@@ -781,9 +782,8 @@ function resolveTransitionProps(rawProps) {
|
|
|
781
782
|
removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
|
|
782
783
|
done && done();
|
|
783
784
|
};
|
|
784
|
-
let isLeaving = false;
|
|
785
785
|
const finishLeave = (el, done) => {
|
|
786
|
-
|
|
786
|
+
el._isLeaving = false;
|
|
787
787
|
removeTransitionClass(el, leaveFromClass);
|
|
788
788
|
removeTransitionClass(el, leaveToClass);
|
|
789
789
|
removeTransitionClass(el, leaveActiveClass);
|
|
@@ -817,14 +817,14 @@ function resolveTransitionProps(rawProps) {
|
|
|
817
817
|
onEnter: makeEnterHook(false),
|
|
818
818
|
onAppear: makeEnterHook(true),
|
|
819
819
|
onLeave(el, done) {
|
|
820
|
-
|
|
820
|
+
el._isLeaving = true;
|
|
821
821
|
const resolve = () => finishLeave(el, done);
|
|
822
822
|
addTransitionClass(el, leaveFromClass);
|
|
823
823
|
// force reflow so *-leave-from classes immediately take effect (#2593)
|
|
824
824
|
forceReflow();
|
|
825
825
|
addTransitionClass(el, leaveActiveClass);
|
|
826
826
|
nextFrame(() => {
|
|
827
|
-
if (!
|
|
827
|
+
if (!el._isLeaving) {
|
|
828
828
|
// cancelled
|
|
829
829
|
return;
|
|
830
830
|
}
|
|
@@ -297,7 +297,7 @@ const [_getNow, skipTimestampCheck] = /*#__PURE__*/ (() => {
|
|
|
297
297
|
// if the low-res timestamp which is bigger than the event timestamp
|
|
298
298
|
// (which is evaluated AFTER) it means the event is using a hi-res timestamp,
|
|
299
299
|
// and we need to use the hi-res version for event listeners as well.
|
|
300
|
-
_getNow =
|
|
300
|
+
_getNow = performance.now.bind(performance);
|
|
301
301
|
}
|
|
302
302
|
// #3485: Firefox <= 53 has incorrect Event.timeStamp implementation
|
|
303
303
|
// and does not fire microtasks in between event propagation, so safe to exclude.
|
|
@@ -353,7 +353,8 @@ function parseName(name) {
|
|
|
353
353
|
options[m[0].toLowerCase()] = true;
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
|
|
356
|
+
const event = name[2] === ':' ? name.slice(3) : shared.hyphenate(name.slice(2));
|
|
357
|
+
return [event, options];
|
|
357
358
|
}
|
|
358
359
|
function createInvoker(initialValue, instance) {
|
|
359
360
|
const invoker = (e) => {
|
|
@@ -365,7 +366,7 @@ function createInvoker(initialValue, instance) {
|
|
|
365
366
|
// AFTER it was attached.
|
|
366
367
|
const timeStamp = e.timeStamp || _getNow();
|
|
367
368
|
if (skipTimestampCheck || timeStamp >= invoker.attached - 1) {
|
|
368
|
-
runtimeCore.callWithAsyncErrorHandling(patchStopImmediatePropagation(e, invoker.value), instance, 5 /* NATIVE_EVENT_HANDLER */, [e]);
|
|
369
|
+
runtimeCore.callWithAsyncErrorHandling(patchStopImmediatePropagation(e, invoker.value), instance, 5 /* ErrorCodes.NATIVE_EVENT_HANDLER */, [e]);
|
|
369
370
|
}
|
|
370
371
|
};
|
|
371
372
|
invoker.value = initialValue;
|
|
@@ -748,9 +749,8 @@ function resolveTransitionProps(rawProps) {
|
|
|
748
749
|
removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
|
|
749
750
|
done && done();
|
|
750
751
|
};
|
|
751
|
-
let isLeaving = false;
|
|
752
752
|
const finishLeave = (el, done) => {
|
|
753
|
-
|
|
753
|
+
el._isLeaving = false;
|
|
754
754
|
removeTransitionClass(el, leaveFromClass);
|
|
755
755
|
removeTransitionClass(el, leaveToClass);
|
|
756
756
|
removeTransitionClass(el, leaveActiveClass);
|
|
@@ -784,14 +784,14 @@ function resolveTransitionProps(rawProps) {
|
|
|
784
784
|
onEnter: makeEnterHook(false),
|
|
785
785
|
onAppear: makeEnterHook(true),
|
|
786
786
|
onLeave(el, done) {
|
|
787
|
-
|
|
787
|
+
el._isLeaving = true;
|
|
788
788
|
const resolve = () => finishLeave(el, done);
|
|
789
789
|
addTransitionClass(el, leaveFromClass);
|
|
790
790
|
// force reflow so *-leave-from classes immediately take effect (#2593)
|
|
791
791
|
forceReflow();
|
|
792
792
|
addTransitionClass(el, leaveActiveClass);
|
|
793
793
|
nextFrame(() => {
|
|
794
|
-
if (!
|
|
794
|
+
if (!el._isLeaving) {
|
|
795
795
|
// cancelled
|
|
796
796
|
return;
|
|
797
797
|
}
|