vue 3.2.35 → 3.2.36
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.esm-browser.js +13 -6
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.global.js +13 -6
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +5 -6
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.global.js +5 -6
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +6 -6
package/dist/vue.esm-browser.js
CHANGED
|
@@ -9265,7 +9265,7 @@ function isMemoSame(cached, memo) {
|
|
|
9265
9265
|
}
|
|
9266
9266
|
|
|
9267
9267
|
// Core API ------------------------------------------------------------------
|
|
9268
|
-
const version = "3.2.
|
|
9268
|
+
const version = "3.2.36";
|
|
9269
9269
|
/**
|
|
9270
9270
|
* SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
|
|
9271
9271
|
* @internal
|
|
@@ -9576,7 +9576,7 @@ const [_getNow, skipTimestampCheck] = /*#__PURE__*/ (() => {
|
|
|
9576
9576
|
// if the low-res timestamp which is bigger than the event timestamp
|
|
9577
9577
|
// (which is evaluated AFTER) it means the event is using a hi-res timestamp,
|
|
9578
9578
|
// and we need to use the hi-res version for event listeners as well.
|
|
9579
|
-
_getNow =
|
|
9579
|
+
_getNow = performance.now.bind(performance);
|
|
9580
9580
|
}
|
|
9581
9581
|
// #3485: Firefox <= 53 has incorrect Event.timeStamp implementation
|
|
9582
9582
|
// and does not fire microtasks in between event propagation, so safe to exclude.
|
|
@@ -10106,9 +10106,8 @@ function resolveTransitionProps(rawProps) {
|
|
|
10106
10106
|
removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
|
|
10107
10107
|
done && done();
|
|
10108
10108
|
};
|
|
10109
|
-
let isLeaving = false;
|
|
10110
10109
|
const finishLeave = (el, done) => {
|
|
10111
|
-
|
|
10110
|
+
el._isLeaving = false;
|
|
10112
10111
|
removeTransitionClass(el, leaveFromClass);
|
|
10113
10112
|
removeTransitionClass(el, leaveToClass);
|
|
10114
10113
|
removeTransitionClass(el, leaveActiveClass);
|
|
@@ -10142,14 +10141,14 @@ function resolveTransitionProps(rawProps) {
|
|
|
10142
10141
|
onEnter: makeEnterHook(false),
|
|
10143
10142
|
onAppear: makeEnterHook(true),
|
|
10144
10143
|
onLeave(el, done) {
|
|
10145
|
-
|
|
10144
|
+
el._isLeaving = true;
|
|
10146
10145
|
const resolve = () => finishLeave(el, done);
|
|
10147
10146
|
addTransitionClass(el, leaveFromClass);
|
|
10148
10147
|
// force reflow so *-leave-from classes immediately take effect (#2593)
|
|
10149
10148
|
forceReflow();
|
|
10150
10149
|
addTransitionClass(el, leaveActiveClass);
|
|
10151
10150
|
nextFrame(() => {
|
|
10152
|
-
if (!
|
|
10151
|
+
if (!el._isLeaving) {
|
|
10153
10152
|
// cancelled
|
|
10154
10153
|
return;
|
|
10155
10154
|
}
|
|
@@ -12704,6 +12703,14 @@ function getConstantType(node, context) {
|
|
|
12704
12703
|
// static then they don't need to be blocks since there will be no
|
|
12705
12704
|
// nested updates.
|
|
12706
12705
|
if (codegenNode.isBlock) {
|
|
12706
|
+
// except set custom directives.
|
|
12707
|
+
for (let i = 0; i < node.props.length; i++) {
|
|
12708
|
+
const p = node.props[i];
|
|
12709
|
+
if (p.type === 7 /* DIRECTIVE */) {
|
|
12710
|
+
constantCache.set(node, 0 /* NOT_CONSTANT */);
|
|
12711
|
+
return 0 /* NOT_CONSTANT */;
|
|
12712
|
+
}
|
|
12713
|
+
}
|
|
12707
12714
|
context.removeHelper(OPEN_BLOCK);
|
|
12708
12715
|
context.removeHelper(getVNodeBlockHelper(context.inSSR, codegenNode.isComponent));
|
|
12709
12716
|
codegenNode.isBlock = false;
|