vue 3.5.32 → 3.5.33
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 +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.esm-browser.js +40 -9
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +40 -9
- package/dist/vue.global.prod.js +7 -7
- package/dist/vue.runtime.esm-browser.js +40 -9
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +40 -9
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.5.
|
|
2
|
+
* vue v3.5.33
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -427,7 +427,18 @@ class EffectScope {
|
|
|
427
427
|
*/
|
|
428
428
|
off() {
|
|
429
429
|
if (this._on > 0 && --this._on === 0) {
|
|
430
|
-
activeEffectScope
|
|
430
|
+
if (activeEffectScope === this) {
|
|
431
|
+
activeEffectScope = this.prevScope;
|
|
432
|
+
} else {
|
|
433
|
+
let current = activeEffectScope;
|
|
434
|
+
while (current) {
|
|
435
|
+
if (current.prevScope === this) {
|
|
436
|
+
current.prevScope = this.prevScope;
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
current = current.prevScope;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
431
442
|
this.prevScope = void 0;
|
|
432
443
|
}
|
|
433
444
|
}
|
|
@@ -3227,7 +3238,7 @@ const TeleportImpl = {
|
|
|
3227
3238
|
mc: mountChildren,
|
|
3228
3239
|
pc: patchChildren,
|
|
3229
3240
|
pbc: patchBlockChildren,
|
|
3230
|
-
o: { insert, querySelector, createText, createComment }
|
|
3241
|
+
o: { insert, querySelector, createText, createComment, parentNode }
|
|
3231
3242
|
} = internals;
|
|
3232
3243
|
const disabled = isTeleportDisabled(n2.props);
|
|
3233
3244
|
let { dynamicChildren } = n2;
|
|
@@ -3275,7 +3286,8 @@ const TeleportImpl = {
|
|
|
3275
3286
|
if (pendingMounts.get(vnode) !== mountJob) return;
|
|
3276
3287
|
pendingMounts.delete(vnode);
|
|
3277
3288
|
if (isTeleportDisabled(vnode.props)) {
|
|
3278
|
-
|
|
3289
|
+
const mountContainer = parentNode(vnode.el) || container;
|
|
3290
|
+
mount(vnode, mountContainer, vnode.anchor);
|
|
3279
3291
|
updateCssVars(vnode, true);
|
|
3280
3292
|
}
|
|
3281
3293
|
mountToTarget(vnode);
|
|
@@ -3437,7 +3449,7 @@ function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }
|
|
|
3437
3449
|
if (isReorder) {
|
|
3438
3450
|
insert(el, container, parentAnchor);
|
|
3439
3451
|
}
|
|
3440
|
-
if (!isReorder || isTeleportDisabled(props)) {
|
|
3452
|
+
if (!pendingMounts.has(vnode) && (!isReorder || isTeleportDisabled(props))) {
|
|
3441
3453
|
if (shapeFlag & 16) {
|
|
3442
3454
|
for (let i = 0; i < children.length; i++) {
|
|
3443
3455
|
move(
|
|
@@ -3611,10 +3623,14 @@ const BaseTransitionImpl = {
|
|
|
3611
3623
|
const state = useTransitionState();
|
|
3612
3624
|
return () => {
|
|
3613
3625
|
const children = slots.default && getTransitionRawChildren(slots.default(), true);
|
|
3614
|
-
|
|
3626
|
+
const child = children && children.length ? findNonCommentChild(children) : (
|
|
3627
|
+
// Keep explicit default-slot conditionals on the same transition path
|
|
3628
|
+
// as regular v-if branches, which render a comment placeholder.
|
|
3629
|
+
instance.subTree ? createCommentVNode() : void 0
|
|
3630
|
+
);
|
|
3631
|
+
if (!child) {
|
|
3615
3632
|
return;
|
|
3616
3633
|
}
|
|
3617
|
-
const child = findNonCommentChild(children);
|
|
3618
3634
|
const rawProps = toRaw(props);
|
|
3619
3635
|
const { mode } = rawProps;
|
|
3620
3636
|
if (mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
|
|
@@ -10794,7 +10810,7 @@ function isMemoSame(cached, memo) {
|
|
|
10794
10810
|
return true;
|
|
10795
10811
|
}
|
|
10796
10812
|
|
|
10797
|
-
const version = "3.5.
|
|
10813
|
+
const version = "3.5.33";
|
|
10798
10814
|
const warn = warn$1 ;
|
|
10799
10815
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10800
10816
|
const devtools = devtools$1 ;
|
|
@@ -11341,7 +11357,19 @@ function patchStyle(el, prev, next) {
|
|
|
11341
11357
|
if (key === "display") {
|
|
11342
11358
|
hasControlledDisplay = true;
|
|
11343
11359
|
}
|
|
11344
|
-
|
|
11360
|
+
const value = next[key];
|
|
11361
|
+
if (value != null) {
|
|
11362
|
+
if (!shouldPreserveTextareaResizeStyle(
|
|
11363
|
+
el,
|
|
11364
|
+
key,
|
|
11365
|
+
!isString(prev) && prev ? prev[key] : void 0,
|
|
11366
|
+
value
|
|
11367
|
+
)) {
|
|
11368
|
+
setStyle(style, key, value);
|
|
11369
|
+
}
|
|
11370
|
+
} else {
|
|
11371
|
+
setStyle(style, key, "");
|
|
11372
|
+
}
|
|
11345
11373
|
}
|
|
11346
11374
|
} else {
|
|
11347
11375
|
if (isCssString) {
|
|
@@ -11414,6 +11442,9 @@ function autoPrefix(style, rawName) {
|
|
|
11414
11442
|
}
|
|
11415
11443
|
return rawName;
|
|
11416
11444
|
}
|
|
11445
|
+
function shouldPreserveTextareaResizeStyle(el, key, prev, next) {
|
|
11446
|
+
return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && isString(next) && prev === next;
|
|
11447
|
+
}
|
|
11417
11448
|
|
|
11418
11449
|
const xlinkNS = "http://www.w3.org/1999/xlink";
|
|
11419
11450
|
function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) {
|