@vue/runtime-dom 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/runtime-dom.cjs.js +17 -2
- package/dist/runtime-dom.cjs.prod.js +17 -2
- package/dist/runtime-dom.esm-browser.js +40 -9
- package/dist/runtime-dom.esm-browser.prod.js +3 -3
- package/dist/runtime-dom.esm-bundler.js +17 -2
- package/dist/runtime-dom.global.js +40 -9
- 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.5.
|
|
2
|
+
* @vue/runtime-dom v3.5.33
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -467,7 +467,19 @@ function patchStyle(el, prev, next) {
|
|
|
467
467
|
if (key === "display") {
|
|
468
468
|
hasControlledDisplay = true;
|
|
469
469
|
}
|
|
470
|
-
|
|
470
|
+
const value = next[key];
|
|
471
|
+
if (value != null) {
|
|
472
|
+
if (!shouldPreserveTextareaResizeStyle(
|
|
473
|
+
el,
|
|
474
|
+
key,
|
|
475
|
+
!shared.isString(prev) && prev ? prev[key] : void 0,
|
|
476
|
+
value
|
|
477
|
+
)) {
|
|
478
|
+
setStyle(style, key, value);
|
|
479
|
+
}
|
|
480
|
+
} else {
|
|
481
|
+
setStyle(style, key, "");
|
|
482
|
+
}
|
|
471
483
|
}
|
|
472
484
|
} else {
|
|
473
485
|
if (isCssString) {
|
|
@@ -540,6 +552,9 @@ function autoPrefix(style, rawName) {
|
|
|
540
552
|
}
|
|
541
553
|
return rawName;
|
|
542
554
|
}
|
|
555
|
+
function shouldPreserveTextareaResizeStyle(el, key, prev, next) {
|
|
556
|
+
return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && shared.isString(next) && prev === next;
|
|
557
|
+
}
|
|
543
558
|
|
|
544
559
|
const xlinkNS = "http://www.w3.org/1999/xlink";
|
|
545
560
|
function patchAttr(el, key, value, isSVG, instance, isBoolean = shared.isSpecialBooleanAttr(key)) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.
|
|
2
|
+
* @vue/runtime-dom v3.5.33
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -463,7 +463,19 @@ function patchStyle(el, prev, next) {
|
|
|
463
463
|
if (key === "display") {
|
|
464
464
|
hasControlledDisplay = true;
|
|
465
465
|
}
|
|
466
|
-
|
|
466
|
+
const value = next[key];
|
|
467
|
+
if (value != null) {
|
|
468
|
+
if (!shouldPreserveTextareaResizeStyle(
|
|
469
|
+
el,
|
|
470
|
+
key,
|
|
471
|
+
!shared.isString(prev) && prev ? prev[key] : void 0,
|
|
472
|
+
value
|
|
473
|
+
)) {
|
|
474
|
+
setStyle(style, key, value);
|
|
475
|
+
}
|
|
476
|
+
} else {
|
|
477
|
+
setStyle(style, key, "");
|
|
478
|
+
}
|
|
467
479
|
}
|
|
468
480
|
} else {
|
|
469
481
|
if (isCssString) {
|
|
@@ -528,6 +540,9 @@ function autoPrefix(style, rawName) {
|
|
|
528
540
|
}
|
|
529
541
|
return rawName;
|
|
530
542
|
}
|
|
543
|
+
function shouldPreserveTextareaResizeStyle(el, key, prev, next) {
|
|
544
|
+
return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && shared.isString(next) && prev === next;
|
|
545
|
+
}
|
|
531
546
|
|
|
532
547
|
const xlinkNS = "http://www.w3.org/1999/xlink";
|
|
533
548
|
function patchAttr(el, key, value, isSVG, instance, isBoolean = shared.isSpecialBooleanAttr(key)) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.
|
|
2
|
+
* @vue/runtime-dom 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)) {
|