@vue/compat 3.5.11 → 3.5.12
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 +204 -235
- package/dist/vue.cjs.prod.js +180 -221
- package/dist/vue.esm-browser.js +203 -234
- package/dist/vue.esm-browser.prod.js +6 -6
- package/dist/vue.esm-bundler.js +203 -234
- package/dist/vue.global.js +194 -230
- package/dist/vue.global.prod.js +6 -6
- package/dist/vue.runtime.esm-browser.js +199 -233
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +199 -233
- package/dist/vue.runtime.global.js +190 -229
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +2 -2
package/dist/vue.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.12
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -766,16 +766,16 @@ var Vue = (function () {
|
|
|
766
766
|
nextSub.prevSub = prevSub;
|
|
767
767
|
link.nextSub = void 0;
|
|
768
768
|
}
|
|
769
|
-
if (dep.subs === link) {
|
|
770
|
-
dep.subs = prevSub;
|
|
771
|
-
}
|
|
772
769
|
if (dep.subsHead === link) {
|
|
773
770
|
dep.subsHead = nextSub;
|
|
774
771
|
}
|
|
775
|
-
if (
|
|
776
|
-
dep.
|
|
777
|
-
|
|
778
|
-
|
|
772
|
+
if (dep.subs === link) {
|
|
773
|
+
dep.subs = prevSub;
|
|
774
|
+
if (!prevSub && dep.computed) {
|
|
775
|
+
dep.computed.flags &= ~4;
|
|
776
|
+
for (let l = dep.computed.deps; l; l = l.nextDep) {
|
|
777
|
+
removeSub(l, true);
|
|
778
|
+
}
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
781
|
if (!soft && !--dep.sc && dep.map) {
|
|
@@ -1035,7 +1035,7 @@ var Vue = (function () {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
});
|
|
1037
1037
|
} else {
|
|
1038
|
-
if (key !== void 0) {
|
|
1038
|
+
if (key !== void 0 || depsMap.has(void 0)) {
|
|
1039
1039
|
run(depsMap.get(key));
|
|
1040
1040
|
}
|
|
1041
1041
|
if (isArrayIndex) {
|
|
@@ -1410,117 +1410,6 @@ var Vue = (function () {
|
|
|
1410
1410
|
|
|
1411
1411
|
const toShallow = (value) => value;
|
|
1412
1412
|
const getProto = (v) => Reflect.getPrototypeOf(v);
|
|
1413
|
-
function get(target, key, isReadonly2 = false, isShallow2 = false) {
|
|
1414
|
-
target = target["__v_raw"];
|
|
1415
|
-
const rawTarget = toRaw(target);
|
|
1416
|
-
const rawKey = toRaw(key);
|
|
1417
|
-
if (!isReadonly2) {
|
|
1418
|
-
if (hasChanged(key, rawKey)) {
|
|
1419
|
-
track(rawTarget, "get", key);
|
|
1420
|
-
}
|
|
1421
|
-
track(rawTarget, "get", rawKey);
|
|
1422
|
-
}
|
|
1423
|
-
const { has: has2 } = getProto(rawTarget);
|
|
1424
|
-
const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
|
|
1425
|
-
if (has2.call(rawTarget, key)) {
|
|
1426
|
-
return wrap(target.get(key));
|
|
1427
|
-
} else if (has2.call(rawTarget, rawKey)) {
|
|
1428
|
-
return wrap(target.get(rawKey));
|
|
1429
|
-
} else if (target !== rawTarget) {
|
|
1430
|
-
target.get(key);
|
|
1431
|
-
}
|
|
1432
|
-
}
|
|
1433
|
-
function has(key, isReadonly2 = false) {
|
|
1434
|
-
const target = this["__v_raw"];
|
|
1435
|
-
const rawTarget = toRaw(target);
|
|
1436
|
-
const rawKey = toRaw(key);
|
|
1437
|
-
if (!isReadonly2) {
|
|
1438
|
-
if (hasChanged(key, rawKey)) {
|
|
1439
|
-
track(rawTarget, "has", key);
|
|
1440
|
-
}
|
|
1441
|
-
track(rawTarget, "has", rawKey);
|
|
1442
|
-
}
|
|
1443
|
-
return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
|
|
1444
|
-
}
|
|
1445
|
-
function size(target, isReadonly2 = false) {
|
|
1446
|
-
target = target["__v_raw"];
|
|
1447
|
-
!isReadonly2 && track(toRaw(target), "iterate", ITERATE_KEY);
|
|
1448
|
-
return Reflect.get(target, "size", target);
|
|
1449
|
-
}
|
|
1450
|
-
function add(value, _isShallow = false) {
|
|
1451
|
-
if (!_isShallow && !isShallow(value) && !isReadonly(value)) {
|
|
1452
|
-
value = toRaw(value);
|
|
1453
|
-
}
|
|
1454
|
-
const target = toRaw(this);
|
|
1455
|
-
const proto = getProto(target);
|
|
1456
|
-
const hadKey = proto.has.call(target, value);
|
|
1457
|
-
if (!hadKey) {
|
|
1458
|
-
target.add(value);
|
|
1459
|
-
trigger(target, "add", value, value);
|
|
1460
|
-
}
|
|
1461
|
-
return this;
|
|
1462
|
-
}
|
|
1463
|
-
function set(key, value, _isShallow = false) {
|
|
1464
|
-
if (!_isShallow && !isShallow(value) && !isReadonly(value)) {
|
|
1465
|
-
value = toRaw(value);
|
|
1466
|
-
}
|
|
1467
|
-
const target = toRaw(this);
|
|
1468
|
-
const { has: has2, get: get2 } = getProto(target);
|
|
1469
|
-
let hadKey = has2.call(target, key);
|
|
1470
|
-
if (!hadKey) {
|
|
1471
|
-
key = toRaw(key);
|
|
1472
|
-
hadKey = has2.call(target, key);
|
|
1473
|
-
} else {
|
|
1474
|
-
checkIdentityKeys(target, has2, key);
|
|
1475
|
-
}
|
|
1476
|
-
const oldValue = get2.call(target, key);
|
|
1477
|
-
target.set(key, value);
|
|
1478
|
-
if (!hadKey) {
|
|
1479
|
-
trigger(target, "add", key, value);
|
|
1480
|
-
} else if (hasChanged(value, oldValue)) {
|
|
1481
|
-
trigger(target, "set", key, value, oldValue);
|
|
1482
|
-
}
|
|
1483
|
-
return this;
|
|
1484
|
-
}
|
|
1485
|
-
function deleteEntry(key) {
|
|
1486
|
-
const target = toRaw(this);
|
|
1487
|
-
const { has: has2, get: get2 } = getProto(target);
|
|
1488
|
-
let hadKey = has2.call(target, key);
|
|
1489
|
-
if (!hadKey) {
|
|
1490
|
-
key = toRaw(key);
|
|
1491
|
-
hadKey = has2.call(target, key);
|
|
1492
|
-
} else {
|
|
1493
|
-
checkIdentityKeys(target, has2, key);
|
|
1494
|
-
}
|
|
1495
|
-
const oldValue = get2 ? get2.call(target, key) : void 0;
|
|
1496
|
-
const result = target.delete(key);
|
|
1497
|
-
if (hadKey) {
|
|
1498
|
-
trigger(target, "delete", key, void 0, oldValue);
|
|
1499
|
-
}
|
|
1500
|
-
return result;
|
|
1501
|
-
}
|
|
1502
|
-
function clear() {
|
|
1503
|
-
const target = toRaw(this);
|
|
1504
|
-
const hadItems = target.size !== 0;
|
|
1505
|
-
const oldTarget = isMap(target) ? new Map(target) : new Set(target) ;
|
|
1506
|
-
const result = target.clear();
|
|
1507
|
-
if (hadItems) {
|
|
1508
|
-
trigger(target, "clear", void 0, void 0, oldTarget);
|
|
1509
|
-
}
|
|
1510
|
-
return result;
|
|
1511
|
-
}
|
|
1512
|
-
function createForEach(isReadonly2, isShallow2) {
|
|
1513
|
-
return function forEach(callback, thisArg) {
|
|
1514
|
-
const observed = this;
|
|
1515
|
-
const target = observed["__v_raw"];
|
|
1516
|
-
const rawTarget = toRaw(target);
|
|
1517
|
-
const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
|
|
1518
|
-
!isReadonly2 && track(rawTarget, "iterate", ITERATE_KEY);
|
|
1519
|
-
return target.forEach((value, key) => {
|
|
1520
|
-
return callback.call(thisArg, wrap(value), wrap(key), observed);
|
|
1521
|
-
});
|
|
1522
|
-
};
|
|
1523
|
-
}
|
|
1524
1413
|
function createIterableMethod(method, isReadonly2, isShallow2) {
|
|
1525
1414
|
return function(...args) {
|
|
1526
1415
|
const target = this["__v_raw"];
|
|
@@ -1563,71 +1452,134 @@ var Vue = (function () {
|
|
|
1563
1452
|
return type === "delete" ? false : type === "clear" ? void 0 : this;
|
|
1564
1453
|
};
|
|
1565
1454
|
}
|
|
1566
|
-
function createInstrumentations() {
|
|
1567
|
-
const
|
|
1568
|
-
get(key) {
|
|
1569
|
-
return get(this, key);
|
|
1570
|
-
},
|
|
1571
|
-
get size() {
|
|
1572
|
-
return size(this);
|
|
1573
|
-
},
|
|
1574
|
-
has,
|
|
1575
|
-
add,
|
|
1576
|
-
set,
|
|
1577
|
-
delete: deleteEntry,
|
|
1578
|
-
clear,
|
|
1579
|
-
forEach: createForEach(false, false)
|
|
1580
|
-
};
|
|
1581
|
-
const shallowInstrumentations2 = {
|
|
1455
|
+
function createInstrumentations(readonly, shallow) {
|
|
1456
|
+
const instrumentations = {
|
|
1582
1457
|
get(key) {
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
return get(this, key, true);
|
|
1602
|
-
},
|
|
1603
|
-
get size() {
|
|
1604
|
-
return size(this, true);
|
|
1605
|
-
},
|
|
1606
|
-
has(key) {
|
|
1607
|
-
return has.call(this, key, true);
|
|
1608
|
-
},
|
|
1609
|
-
add: createReadonlyMethod("add"),
|
|
1610
|
-
set: createReadonlyMethod("set"),
|
|
1611
|
-
delete: createReadonlyMethod("delete"),
|
|
1612
|
-
clear: createReadonlyMethod("clear"),
|
|
1613
|
-
forEach: createForEach(true, false)
|
|
1614
|
-
};
|
|
1615
|
-
const shallowReadonlyInstrumentations2 = {
|
|
1616
|
-
get(key) {
|
|
1617
|
-
return get(this, key, true, true);
|
|
1458
|
+
const target = this["__v_raw"];
|
|
1459
|
+
const rawTarget = toRaw(target);
|
|
1460
|
+
const rawKey = toRaw(key);
|
|
1461
|
+
if (!readonly) {
|
|
1462
|
+
if (hasChanged(key, rawKey)) {
|
|
1463
|
+
track(rawTarget, "get", key);
|
|
1464
|
+
}
|
|
1465
|
+
track(rawTarget, "get", rawKey);
|
|
1466
|
+
}
|
|
1467
|
+
const { has } = getProto(rawTarget);
|
|
1468
|
+
const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
|
|
1469
|
+
if (has.call(rawTarget, key)) {
|
|
1470
|
+
return wrap(target.get(key));
|
|
1471
|
+
} else if (has.call(rawTarget, rawKey)) {
|
|
1472
|
+
return wrap(target.get(rawKey));
|
|
1473
|
+
} else if (target !== rawTarget) {
|
|
1474
|
+
target.get(key);
|
|
1475
|
+
}
|
|
1618
1476
|
},
|
|
1619
1477
|
get size() {
|
|
1620
|
-
|
|
1478
|
+
const target = this["__v_raw"];
|
|
1479
|
+
!readonly && track(toRaw(target), "iterate", ITERATE_KEY);
|
|
1480
|
+
return Reflect.get(target, "size", target);
|
|
1621
1481
|
},
|
|
1622
1482
|
has(key) {
|
|
1623
|
-
|
|
1483
|
+
const target = this["__v_raw"];
|
|
1484
|
+
const rawTarget = toRaw(target);
|
|
1485
|
+
const rawKey = toRaw(key);
|
|
1486
|
+
if (!readonly) {
|
|
1487
|
+
if (hasChanged(key, rawKey)) {
|
|
1488
|
+
track(rawTarget, "has", key);
|
|
1489
|
+
}
|
|
1490
|
+
track(rawTarget, "has", rawKey);
|
|
1491
|
+
}
|
|
1492
|
+
return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
|
|
1624
1493
|
},
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1494
|
+
forEach(callback, thisArg) {
|
|
1495
|
+
const observed = this;
|
|
1496
|
+
const target = observed["__v_raw"];
|
|
1497
|
+
const rawTarget = toRaw(target);
|
|
1498
|
+
const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
|
|
1499
|
+
!readonly && track(rawTarget, "iterate", ITERATE_KEY);
|
|
1500
|
+
return target.forEach((value, key) => {
|
|
1501
|
+
return callback.call(thisArg, wrap(value), wrap(key), observed);
|
|
1502
|
+
});
|
|
1503
|
+
}
|
|
1630
1504
|
};
|
|
1505
|
+
extend(
|
|
1506
|
+
instrumentations,
|
|
1507
|
+
readonly ? {
|
|
1508
|
+
add: createReadonlyMethod("add"),
|
|
1509
|
+
set: createReadonlyMethod("set"),
|
|
1510
|
+
delete: createReadonlyMethod("delete"),
|
|
1511
|
+
clear: createReadonlyMethod("clear")
|
|
1512
|
+
} : {
|
|
1513
|
+
add(value) {
|
|
1514
|
+
if (!shallow && !isShallow(value) && !isReadonly(value)) {
|
|
1515
|
+
value = toRaw(value);
|
|
1516
|
+
}
|
|
1517
|
+
const target = toRaw(this);
|
|
1518
|
+
const proto = getProto(target);
|
|
1519
|
+
const hadKey = proto.has.call(target, value);
|
|
1520
|
+
if (!hadKey) {
|
|
1521
|
+
target.add(value);
|
|
1522
|
+
trigger(target, "add", value, value);
|
|
1523
|
+
}
|
|
1524
|
+
return this;
|
|
1525
|
+
},
|
|
1526
|
+
set(key, value) {
|
|
1527
|
+
if (!shallow && !isShallow(value) && !isReadonly(value)) {
|
|
1528
|
+
value = toRaw(value);
|
|
1529
|
+
}
|
|
1530
|
+
const target = toRaw(this);
|
|
1531
|
+
const { has, get } = getProto(target);
|
|
1532
|
+
let hadKey = has.call(target, key);
|
|
1533
|
+
if (!hadKey) {
|
|
1534
|
+
key = toRaw(key);
|
|
1535
|
+
hadKey = has.call(target, key);
|
|
1536
|
+
} else {
|
|
1537
|
+
checkIdentityKeys(target, has, key);
|
|
1538
|
+
}
|
|
1539
|
+
const oldValue = get.call(target, key);
|
|
1540
|
+
target.set(key, value);
|
|
1541
|
+
if (!hadKey) {
|
|
1542
|
+
trigger(target, "add", key, value);
|
|
1543
|
+
} else if (hasChanged(value, oldValue)) {
|
|
1544
|
+
trigger(target, "set", key, value, oldValue);
|
|
1545
|
+
}
|
|
1546
|
+
return this;
|
|
1547
|
+
},
|
|
1548
|
+
delete(key) {
|
|
1549
|
+
const target = toRaw(this);
|
|
1550
|
+
const { has, get } = getProto(target);
|
|
1551
|
+
let hadKey = has.call(target, key);
|
|
1552
|
+
if (!hadKey) {
|
|
1553
|
+
key = toRaw(key);
|
|
1554
|
+
hadKey = has.call(target, key);
|
|
1555
|
+
} else {
|
|
1556
|
+
checkIdentityKeys(target, has, key);
|
|
1557
|
+
}
|
|
1558
|
+
const oldValue = get ? get.call(target, key) : void 0;
|
|
1559
|
+
const result = target.delete(key);
|
|
1560
|
+
if (hadKey) {
|
|
1561
|
+
trigger(target, "delete", key, void 0, oldValue);
|
|
1562
|
+
}
|
|
1563
|
+
return result;
|
|
1564
|
+
},
|
|
1565
|
+
clear() {
|
|
1566
|
+
const target = toRaw(this);
|
|
1567
|
+
const hadItems = target.size !== 0;
|
|
1568
|
+
const oldTarget = isMap(target) ? new Map(target) : new Set(target) ;
|
|
1569
|
+
const result = target.clear();
|
|
1570
|
+
if (hadItems) {
|
|
1571
|
+
trigger(
|
|
1572
|
+
target,
|
|
1573
|
+
"clear",
|
|
1574
|
+
void 0,
|
|
1575
|
+
void 0,
|
|
1576
|
+
oldTarget
|
|
1577
|
+
);
|
|
1578
|
+
}
|
|
1579
|
+
return result;
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
);
|
|
1631
1583
|
const iteratorMethods = [
|
|
1632
1584
|
"keys",
|
|
1633
1585
|
"values",
|
|
@@ -1635,30 +1587,12 @@ var Vue = (function () {
|
|
|
1635
1587
|
Symbol.iterator
|
|
1636
1588
|
];
|
|
1637
1589
|
iteratorMethods.forEach((method) => {
|
|
1638
|
-
|
|
1639
|
-
readonlyInstrumentations2[method] = createIterableMethod(method, true, false);
|
|
1640
|
-
shallowInstrumentations2[method] = createIterableMethod(method, false, true);
|
|
1641
|
-
shallowReadonlyInstrumentations2[method] = createIterableMethod(
|
|
1642
|
-
method,
|
|
1643
|
-
true,
|
|
1644
|
-
true
|
|
1645
|
-
);
|
|
1590
|
+
instrumentations[method] = createIterableMethod(method, readonly, shallow);
|
|
1646
1591
|
});
|
|
1647
|
-
return
|
|
1648
|
-
mutableInstrumentations2,
|
|
1649
|
-
readonlyInstrumentations2,
|
|
1650
|
-
shallowInstrumentations2,
|
|
1651
|
-
shallowReadonlyInstrumentations2
|
|
1652
|
-
];
|
|
1592
|
+
return instrumentations;
|
|
1653
1593
|
}
|
|
1654
|
-
const [
|
|
1655
|
-
mutableInstrumentations,
|
|
1656
|
-
readonlyInstrumentations,
|
|
1657
|
-
shallowInstrumentations,
|
|
1658
|
-
shallowReadonlyInstrumentations
|
|
1659
|
-
] = /* @__PURE__ */ createInstrumentations();
|
|
1660
1594
|
function createInstrumentationGetter(isReadonly2, shallow) {
|
|
1661
|
-
const instrumentations =
|
|
1595
|
+
const instrumentations = createInstrumentations(isReadonly2, shallow);
|
|
1662
1596
|
return (target, key, receiver) => {
|
|
1663
1597
|
if (key === "__v_isReactive") {
|
|
1664
1598
|
return !isReadonly2;
|
|
@@ -1686,9 +1620,9 @@ var Vue = (function () {
|
|
|
1686
1620
|
const shallowReadonlyCollectionHandlers = {
|
|
1687
1621
|
get: /* @__PURE__ */ createInstrumentationGetter(true, true)
|
|
1688
1622
|
};
|
|
1689
|
-
function checkIdentityKeys(target,
|
|
1623
|
+
function checkIdentityKeys(target, has, key) {
|
|
1690
1624
|
const rawKey = toRaw(key);
|
|
1691
|
-
if (rawKey !== key &&
|
|
1625
|
+
if (rawKey !== key && has.call(target, rawKey)) {
|
|
1692
1626
|
const type = toRawType(target);
|
|
1693
1627
|
warn$2(
|
|
1694
1628
|
`Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
|
|
@@ -3642,7 +3576,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3642
3576
|
}
|
|
3643
3577
|
if (!disabled) {
|
|
3644
3578
|
mount(target, targetAnchor);
|
|
3645
|
-
updateCssVars(n2);
|
|
3579
|
+
updateCssVars(n2, false);
|
|
3646
3580
|
}
|
|
3647
3581
|
} else if (!disabled) {
|
|
3648
3582
|
warn$1(
|
|
@@ -3654,7 +3588,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3654
3588
|
};
|
|
3655
3589
|
if (disabled) {
|
|
3656
3590
|
mount(container, mainAnchor);
|
|
3657
|
-
updateCssVars(n2);
|
|
3591
|
+
updateCssVars(n2, true);
|
|
3658
3592
|
}
|
|
3659
3593
|
if (isTeleportDeferred(n2.props)) {
|
|
3660
3594
|
queuePostRenderEffect(mountToTarget, parentSuspense);
|
|
@@ -3744,7 +3678,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3744
3678
|
);
|
|
3745
3679
|
}
|
|
3746
3680
|
}
|
|
3747
|
-
updateCssVars(n2);
|
|
3681
|
+
updateCssVars(n2, disabled);
|
|
3748
3682
|
}
|
|
3749
3683
|
},
|
|
3750
3684
|
remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
|
|
@@ -3812,9 +3746,10 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3812
3746
|
querySelector
|
|
3813
3747
|
);
|
|
3814
3748
|
if (target) {
|
|
3749
|
+
const disabled = isTeleportDisabled(vnode.props);
|
|
3815
3750
|
const targetNode = target._lpa || target.firstChild;
|
|
3816
3751
|
if (vnode.shapeFlag & 16) {
|
|
3817
|
-
if (
|
|
3752
|
+
if (disabled) {
|
|
3818
3753
|
vnode.anchor = hydrateChildren(
|
|
3819
3754
|
nextSibling(node),
|
|
3820
3755
|
vnode,
|
|
@@ -3855,16 +3790,23 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3855
3790
|
);
|
|
3856
3791
|
}
|
|
3857
3792
|
}
|
|
3858
|
-
updateCssVars(vnode);
|
|
3793
|
+
updateCssVars(vnode, disabled);
|
|
3859
3794
|
}
|
|
3860
3795
|
return vnode.anchor && nextSibling(vnode.anchor);
|
|
3861
3796
|
}
|
|
3862
3797
|
const Teleport = TeleportImpl;
|
|
3863
|
-
function updateCssVars(vnode) {
|
|
3798
|
+
function updateCssVars(vnode, isDisabled) {
|
|
3864
3799
|
const ctx = vnode.ctx;
|
|
3865
3800
|
if (ctx && ctx.ut) {
|
|
3866
|
-
let node
|
|
3867
|
-
|
|
3801
|
+
let node, anchor;
|
|
3802
|
+
if (isDisabled) {
|
|
3803
|
+
node = vnode.el;
|
|
3804
|
+
anchor = vnode.anchor;
|
|
3805
|
+
} else {
|
|
3806
|
+
node = vnode.targetStart;
|
|
3807
|
+
anchor = vnode.targetAnchor;
|
|
3808
|
+
}
|
|
3809
|
+
while (node && node !== anchor) {
|
|
3868
3810
|
if (node.nodeType === 1) node.setAttribute("data-v-owner", ctx.uid);
|
|
3869
3811
|
node = node.nextSibling;
|
|
3870
3812
|
}
|
|
@@ -4317,8 +4259,15 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4317
4259
|
const setupState = owner.setupState;
|
|
4318
4260
|
const rawSetupState = toRaw(setupState);
|
|
4319
4261
|
const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => {
|
|
4320
|
-
|
|
4321
|
-
|
|
4262
|
+
{
|
|
4263
|
+
if (hasOwn(rawSetupState, key) && !isRef(rawSetupState[key])) {
|
|
4264
|
+
warn$1(
|
|
4265
|
+
`Template ref "${key}" used on a non-ref value. It will not work in the production build.`
|
|
4266
|
+
);
|
|
4267
|
+
}
|
|
4268
|
+
if (knownTemplateRefs.has(rawSetupState[key])) {
|
|
4269
|
+
return false;
|
|
4270
|
+
}
|
|
4322
4271
|
}
|
|
4323
4272
|
return hasOwn(rawSetupState, key);
|
|
4324
4273
|
};
|
|
@@ -4615,7 +4564,11 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4615
4564
|
}
|
|
4616
4565
|
let needCallTransitionHooks = false;
|
|
4617
4566
|
if (isTemplateNode(el)) {
|
|
4618
|
-
needCallTransitionHooks = needTransition(
|
|
4567
|
+
needCallTransitionHooks = needTransition(
|
|
4568
|
+
null,
|
|
4569
|
+
// no need check parentSuspense in hydration
|
|
4570
|
+
transition
|
|
4571
|
+
) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
|
|
4619
4572
|
const content = el.content.firstChild;
|
|
4620
4573
|
if (needCallTransitionHooks) {
|
|
4621
4574
|
transition.beforeEnter(content);
|
|
@@ -5008,6 +4961,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5008
4961
|
}
|
|
5009
4962
|
}
|
|
5010
4963
|
|
|
4964
|
+
const requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));
|
|
4965
|
+
const cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
|
|
5011
4966
|
const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
|
|
5012
4967
|
const id = requestIdleCallback(hydrate, { timeout });
|
|
5013
4968
|
return () => cancelIdleCallback(id);
|
|
@@ -5995,12 +5950,13 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5995
5950
|
}
|
|
5996
5951
|
openBlock();
|
|
5997
5952
|
const validSlotContent = slot && ensureValidVNode(slot(props));
|
|
5953
|
+
const slotKey = props.key || // slot content array of a dynamic conditional slot may have a branch
|
|
5954
|
+
// key attached in the `createSlots` helper, respect that
|
|
5955
|
+
validSlotContent && validSlotContent.key;
|
|
5998
5956
|
const rendered = createBlock(
|
|
5999
5957
|
Fragment,
|
|
6000
5958
|
{
|
|
6001
|
-
key: (
|
|
6002
|
-
// key attached in the `createSlots` helper, respect that
|
|
6003
|
-
validSlotContent && validSlotContent.key || `_${name}`) + // #7256 force differentiate fallback content from actual content
|
|
5959
|
+
key: (slotKey && !isSymbol(slotKey) ? slotKey : `_${name}`) + // #7256 force differentiate fallback content from actual content
|
|
6004
5960
|
(!validSlotContent && fallback ? "_fb" : "")
|
|
6005
5961
|
},
|
|
6006
5962
|
validSlotContent || (fallback ? fallback() : []),
|
|
@@ -7166,7 +7122,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
7166
7122
|
return vm;
|
|
7167
7123
|
}
|
|
7168
7124
|
}
|
|
7169
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7125
|
+
Vue.version = `2.6.14-compat:${"3.5.12"}`;
|
|
7170
7126
|
Vue.config = singletonApp.config;
|
|
7171
7127
|
Vue.use = (plugin, ...options) => {
|
|
7172
7128
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -8154,6 +8110,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8154
8110
|
function validateProps(rawProps, props, instance) {
|
|
8155
8111
|
const resolvedValues = toRaw(props);
|
|
8156
8112
|
const options = instance.propsOptions[0];
|
|
8113
|
+
const camelizePropsKey = Object.keys(rawProps).map((key) => camelize(key));
|
|
8157
8114
|
for (const key in options) {
|
|
8158
8115
|
let opt = options[key];
|
|
8159
8116
|
if (opt == null) continue;
|
|
@@ -8162,7 +8119,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8162
8119
|
resolvedValues[key],
|
|
8163
8120
|
opt,
|
|
8164
8121
|
shallowReadonly(resolvedValues) ,
|
|
8165
|
-
!
|
|
8122
|
+
!camelizePropsKey.includes(key)
|
|
8166
8123
|
);
|
|
8167
8124
|
}
|
|
8168
8125
|
}
|
|
@@ -10034,19 +9991,19 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
10034
9991
|
warn$1(`useModel() called without active instance.`);
|
|
10035
9992
|
return ref();
|
|
10036
9993
|
}
|
|
10037
|
-
|
|
9994
|
+
const camelizedName = camelize(name);
|
|
9995
|
+
if (!i.propsOptions[0][camelizedName]) {
|
|
10038
9996
|
warn$1(`useModel() called with prop "${name}" which is not declared.`);
|
|
10039
9997
|
return ref();
|
|
10040
9998
|
}
|
|
10041
|
-
const camelizedName = camelize(name);
|
|
10042
9999
|
const hyphenatedName = hyphenate(name);
|
|
10043
|
-
const modifiers = getModelModifiers(props,
|
|
10000
|
+
const modifiers = getModelModifiers(props, camelizedName);
|
|
10044
10001
|
const res = customRef((track, trigger) => {
|
|
10045
10002
|
let localValue;
|
|
10046
10003
|
let prevSetValue = EMPTY_OBJ;
|
|
10047
10004
|
let prevEmittedValue;
|
|
10048
10005
|
watchSyncEffect(() => {
|
|
10049
|
-
const propValue = props[
|
|
10006
|
+
const propValue = props[camelizedName];
|
|
10050
10007
|
if (hasChanged(localValue, propValue)) {
|
|
10051
10008
|
localValue = propValue;
|
|
10052
10009
|
trigger();
|
|
@@ -11756,9 +11713,9 @@ Component that was made reactive: `,
|
|
|
11756
11713
|
}
|
|
11757
11714
|
const { setup } = Component;
|
|
11758
11715
|
if (setup) {
|
|
11716
|
+
pauseTracking();
|
|
11759
11717
|
const setupContext = instance.setupContext = setup.length > 1 ? createSetupContext(instance) : null;
|
|
11760
11718
|
const reset = setCurrentInstance(instance);
|
|
11761
|
-
pauseTracking();
|
|
11762
11719
|
const setupResult = callWithErrorHandling(
|
|
11763
11720
|
setup,
|
|
11764
11721
|
instance,
|
|
@@ -11768,10 +11725,13 @@ Component that was made reactive: `,
|
|
|
11768
11725
|
setupContext
|
|
11769
11726
|
]
|
|
11770
11727
|
);
|
|
11728
|
+
const isAsyncSetup = isPromise(setupResult);
|
|
11771
11729
|
resetTracking();
|
|
11772
11730
|
reset();
|
|
11773
|
-
if (
|
|
11774
|
-
|
|
11731
|
+
if ((isAsyncSetup || instance.sp) && !isAsyncWrapper(instance)) {
|
|
11732
|
+
markAsyncBoundary(instance);
|
|
11733
|
+
}
|
|
11734
|
+
if (isAsyncSetup) {
|
|
11775
11735
|
setupResult.then(unsetCurrentInstance, unsetCurrentInstance);
|
|
11776
11736
|
if (isSSR) {
|
|
11777
11737
|
return setupResult.then((resolvedResult) => {
|
|
@@ -12244,7 +12204,7 @@ Component that was made reactive: `,
|
|
|
12244
12204
|
return true;
|
|
12245
12205
|
}
|
|
12246
12206
|
|
|
12247
|
-
const version = "3.5.
|
|
12207
|
+
const version = "3.5.12";
|
|
12248
12208
|
const warn = warn$1 ;
|
|
12249
12209
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12250
12210
|
const devtools = devtools$1 ;
|
|
@@ -12930,7 +12890,7 @@ Component that was made reactive: `,
|
|
|
12930
12890
|
return false;
|
|
12931
12891
|
}
|
|
12932
12892
|
|
|
12933
|
-
function patchDOMProp(el, key, value, parentComponent) {
|
|
12893
|
+
function patchDOMProp(el, key, value, parentComponent, attrName) {
|
|
12934
12894
|
if (key === "innerHTML" || key === "textContent") {
|
|
12935
12895
|
if (value != null) {
|
|
12936
12896
|
el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value;
|
|
@@ -12994,7 +12954,7 @@ Component that was made reactive: `,
|
|
|
12994
12954
|
);
|
|
12995
12955
|
}
|
|
12996
12956
|
}
|
|
12997
|
-
needRemove && el.removeAttribute(key);
|
|
12957
|
+
needRemove && el.removeAttribute(attrName || key);
|
|
12998
12958
|
}
|
|
12999
12959
|
|
|
13000
12960
|
function addEventListener(el, event, handler, options) {
|
|
@@ -13104,7 +13064,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13104
13064
|
// #11081 force set props for possible async custom element
|
|
13105
13065
|
el._isVueCE && (/[A-Z]/.test(key) || !isString(nextValue))
|
|
13106
13066
|
) {
|
|
13107
|
-
patchDOMProp(el, camelize(key), nextValue, parentComponent);
|
|
13067
|
+
patchDOMProp(el, camelize(key), nextValue, parentComponent, key);
|
|
13108
13068
|
} else {
|
|
13109
13069
|
if (key === "true-value") {
|
|
13110
13070
|
el._trueValue = nextValue;
|
|
@@ -13819,7 +13779,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13819
13779
|
setChecked(el, binding, vnode);
|
|
13820
13780
|
}
|
|
13821
13781
|
};
|
|
13822
|
-
function setChecked(el, { value }, vnode) {
|
|
13782
|
+
function setChecked(el, { value, oldValue }, vnode) {
|
|
13823
13783
|
el._modelValue = value;
|
|
13824
13784
|
let checked;
|
|
13825
13785
|
if (isArray(value)) {
|
|
@@ -13827,6 +13787,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13827
13787
|
} else if (isSet(value)) {
|
|
13828
13788
|
checked = value.has(vnode.props.value);
|
|
13829
13789
|
} else {
|
|
13790
|
+
if (value === oldValue) return;
|
|
13830
13791
|
checked = looseEqual(value, getCheckboxValue(el, true));
|
|
13831
13792
|
}
|
|
13832
13793
|
if (el.checked !== checked) {
|
|
@@ -16495,6 +16456,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
16495
16456
|
source: end == null ? end : getSlice(start, end)
|
|
16496
16457
|
};
|
|
16497
16458
|
}
|
|
16459
|
+
function cloneLoc(loc) {
|
|
16460
|
+
return getLoc(loc.start.offset, loc.end.offset);
|
|
16461
|
+
}
|
|
16498
16462
|
function setLocEnd(loc, end) {
|
|
16499
16463
|
loc.end = tokenizer.getPos(end);
|
|
16500
16464
|
loc.source = getSlice(loc.start.offset, end);
|
|
@@ -17853,7 +17817,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
17853
17817
|
const branch = createIfBranch(node, dir);
|
|
17854
17818
|
const ifNode = {
|
|
17855
17819
|
type: 9,
|
|
17856
|
-
loc: node.loc,
|
|
17820
|
+
loc: cloneLoc(node.loc),
|
|
17857
17821
|
branches: [branch]
|
|
17858
17822
|
};
|
|
17859
17823
|
context.replaceNode(ifNode);
|