@vue/compat 3.6.0-beta.3 → 3.6.0-beta.4
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 +56 -36
- package/dist/vue.cjs.prod.js +56 -36
- package/dist/vue.esm-browser.js +68 -41
- package/dist/vue.esm-browser.prod.js +3 -3
- package/dist/vue.esm-bundler.js +73 -42
- package/dist/vue.global.js +68 -41
- package/dist/vue.global.prod.js +3 -3
- package/dist/vue.runtime.esm-browser.js +68 -41
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +73 -42
- package/dist/vue.runtime.global.js +68 -41
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +2 -2
package/dist/vue.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.6.0-beta.
|
|
2
|
+
* @vue/compat v3.6.0-beta.4
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1373,20 +1373,20 @@ function createIterableMethod(method, isReadonly2, isShallow2) {
|
|
|
1373
1373
|
"iterate",
|
|
1374
1374
|
isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY
|
|
1375
1375
|
);
|
|
1376
|
-
return
|
|
1377
|
-
// iterator
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
done
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1376
|
+
return extend(
|
|
1377
|
+
// inheriting all iterator properties
|
|
1378
|
+
Object.create(innerIterator),
|
|
1379
|
+
{
|
|
1380
|
+
// iterator protocol
|
|
1381
|
+
next() {
|
|
1382
|
+
const { value, done } = innerIterator.next();
|
|
1383
|
+
return done ? { value, done } : {
|
|
1384
|
+
value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
|
|
1385
|
+
done
|
|
1386
|
+
};
|
|
1387
|
+
}
|
|
1388
1388
|
}
|
|
1389
|
-
|
|
1389
|
+
);
|
|
1390
1390
|
};
|
|
1391
1391
|
}
|
|
1392
1392
|
function createReadonlyMethod(type) {
|
|
@@ -1600,8 +1600,9 @@ function targetTypeMap(rawType) {
|
|
|
1600
1600
|
function getTargetType(value) {
|
|
1601
1601
|
return value["__v_skip"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(toRawType(value));
|
|
1602
1602
|
}
|
|
1603
|
+
// @__NO_SIDE_EFFECTS__
|
|
1603
1604
|
function reactive(target) {
|
|
1604
|
-
if (isReadonly(target)) {
|
|
1605
|
+
if (/* @__PURE__ */ isReadonly(target)) {
|
|
1605
1606
|
return target;
|
|
1606
1607
|
}
|
|
1607
1608
|
return createReactiveObject(
|
|
@@ -1612,6 +1613,7 @@ function reactive(target) {
|
|
|
1612
1613
|
reactiveMap
|
|
1613
1614
|
);
|
|
1614
1615
|
}
|
|
1616
|
+
// @__NO_SIDE_EFFECTS__
|
|
1615
1617
|
function shallowReactive(target) {
|
|
1616
1618
|
return createReactiveObject(
|
|
1617
1619
|
target,
|
|
@@ -1621,6 +1623,7 @@ function shallowReactive(target) {
|
|
|
1621
1623
|
shallowReactiveMap
|
|
1622
1624
|
);
|
|
1623
1625
|
}
|
|
1626
|
+
// @__NO_SIDE_EFFECTS__
|
|
1624
1627
|
function readonly(target) {
|
|
1625
1628
|
return createReactiveObject(
|
|
1626
1629
|
target,
|
|
@@ -1630,6 +1633,7 @@ function readonly(target) {
|
|
|
1630
1633
|
readonlyMap
|
|
1631
1634
|
);
|
|
1632
1635
|
}
|
|
1636
|
+
// @__NO_SIDE_EFFECTS__
|
|
1633
1637
|
function shallowReadonly(target) {
|
|
1634
1638
|
return createReactiveObject(
|
|
1635
1639
|
target,
|
|
@@ -1668,24 +1672,29 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
|
|
|
1668
1672
|
proxyMap.set(target, proxy);
|
|
1669
1673
|
return proxy;
|
|
1670
1674
|
}
|
|
1675
|
+
// @__NO_SIDE_EFFECTS__
|
|
1671
1676
|
function isReactive(value) {
|
|
1672
|
-
if (isReadonly(value)) {
|
|
1673
|
-
return isReactive(value["__v_raw"]);
|
|
1677
|
+
if (/* @__PURE__ */ isReadonly(value)) {
|
|
1678
|
+
return /* @__PURE__ */ isReactive(value["__v_raw"]);
|
|
1674
1679
|
}
|
|
1675
1680
|
return !!(value && value["__v_isReactive"]);
|
|
1676
1681
|
}
|
|
1682
|
+
// @__NO_SIDE_EFFECTS__
|
|
1677
1683
|
function isReadonly(value) {
|
|
1678
1684
|
return !!(value && value["__v_isReadonly"]);
|
|
1679
1685
|
}
|
|
1686
|
+
// @__NO_SIDE_EFFECTS__
|
|
1680
1687
|
function isShallow(value) {
|
|
1681
1688
|
return !!(value && value["__v_isShallow"]);
|
|
1682
1689
|
}
|
|
1690
|
+
// @__NO_SIDE_EFFECTS__
|
|
1683
1691
|
function isProxy(value) {
|
|
1684
1692
|
return value ? !!value["__v_raw"] : false;
|
|
1685
1693
|
}
|
|
1694
|
+
// @__NO_SIDE_EFFECTS__
|
|
1686
1695
|
function toRaw(observed) {
|
|
1687
1696
|
const raw = observed && observed["__v_raw"];
|
|
1688
|
-
return raw ? toRaw(raw) : observed;
|
|
1697
|
+
return raw ? /* @__PURE__ */ toRaw(raw) : observed;
|
|
1689
1698
|
}
|
|
1690
1699
|
function markRaw(value) {
|
|
1691
1700
|
if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) {
|
|
@@ -1693,20 +1702,23 @@ function markRaw(value) {
|
|
|
1693
1702
|
}
|
|
1694
1703
|
return value;
|
|
1695
1704
|
}
|
|
1696
|
-
const toReactive = (value) => isObject(value) ? reactive(value) : value;
|
|
1697
|
-
const toReadonly = (value) => isObject(value) ? readonly(value) : value;
|
|
1705
|
+
const toReactive = (value) => isObject(value) ? /* @__PURE__ */ reactive(value) : value;
|
|
1706
|
+
const toReadonly = (value) => isObject(value) ? /* @__PURE__ */ readonly(value) : value;
|
|
1698
1707
|
|
|
1708
|
+
// @__NO_SIDE_EFFECTS__
|
|
1699
1709
|
function isRef(r) {
|
|
1700
1710
|
return r ? r["__v_isRef"] === true : false;
|
|
1701
1711
|
}
|
|
1712
|
+
// @__NO_SIDE_EFFECTS__
|
|
1702
1713
|
function ref(value) {
|
|
1703
1714
|
return createRef(value, toReactive);
|
|
1704
1715
|
}
|
|
1716
|
+
// @__NO_SIDE_EFFECTS__
|
|
1705
1717
|
function shallowRef(value) {
|
|
1706
1718
|
return createRef(value);
|
|
1707
1719
|
}
|
|
1708
1720
|
function createRef(rawValue, wrap) {
|
|
1709
|
-
if (isRef(rawValue)) {
|
|
1721
|
+
if (/* @__PURE__ */ isRef(rawValue)) {
|
|
1710
1722
|
return rawValue;
|
|
1711
1723
|
}
|
|
1712
1724
|
return new RefImpl(rawValue, wrap);
|
|
@@ -1801,7 +1813,7 @@ function trackRef(dep) {
|
|
|
1801
1813
|
}
|
|
1802
1814
|
}
|
|
1803
1815
|
function unref(ref2) {
|
|
1804
|
-
return isRef(ref2) ? ref2.value : ref2;
|
|
1816
|
+
return /* @__PURE__ */ isRef(ref2) ? ref2.value : ref2;
|
|
1805
1817
|
}
|
|
1806
1818
|
function toValue(source) {
|
|
1807
1819
|
return isFunction(source) ? source() : unref(source);
|
|
@@ -1810,7 +1822,7 @@ const shallowUnwrapHandlers = {
|
|
|
1810
1822
|
get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
|
|
1811
1823
|
set: (target, key, value, receiver) => {
|
|
1812
1824
|
const oldValue = target[key];
|
|
1813
|
-
if (isRef(oldValue) &&
|
|
1825
|
+
if (/* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) {
|
|
1814
1826
|
oldValue.value = value;
|
|
1815
1827
|
return true;
|
|
1816
1828
|
} else {
|
|
@@ -1848,6 +1860,7 @@ class CustomRefImpl {
|
|
|
1848
1860
|
function customRef(factory) {
|
|
1849
1861
|
return new CustomRefImpl(factory);
|
|
1850
1862
|
}
|
|
1863
|
+
// @__NO_SIDE_EFFECTS__
|
|
1851
1864
|
function toRefs(object) {
|
|
1852
1865
|
const ret = isArray(object) ? new Array(object.length) : {};
|
|
1853
1866
|
for (const key in object) {
|
|
@@ -1880,9 +1893,9 @@ class ObjectRefImpl {
|
|
|
1880
1893
|
return this._value = val === void 0 ? this._defaultValue : val;
|
|
1881
1894
|
}
|
|
1882
1895
|
set value(newVal) {
|
|
1883
|
-
if (this._shallow && isRef(this._raw[this._key])) {
|
|
1896
|
+
if (this._shallow && /* @__PURE__ */ isRef(this._raw[this._key])) {
|
|
1884
1897
|
const nestedRef = this._object[this._key];
|
|
1885
|
-
if (isRef(nestedRef)) {
|
|
1898
|
+
if (/* @__PURE__ */ isRef(nestedRef)) {
|
|
1886
1899
|
nestedRef.value = newVal;
|
|
1887
1900
|
return;
|
|
1888
1901
|
}
|
|
@@ -1904,15 +1917,16 @@ class GetterRefImpl {
|
|
|
1904
1917
|
return this._value = this._getter();
|
|
1905
1918
|
}
|
|
1906
1919
|
}
|
|
1920
|
+
// @__NO_SIDE_EFFECTS__
|
|
1907
1921
|
function toRef(source, key, defaultValue) {
|
|
1908
|
-
if (isRef(source)) {
|
|
1922
|
+
if (/* @__PURE__ */ isRef(source)) {
|
|
1909
1923
|
return source;
|
|
1910
1924
|
} else if (isFunction(source)) {
|
|
1911
1925
|
return new GetterRefImpl(source);
|
|
1912
1926
|
} else if (isObject(source) && arguments.length > 1) {
|
|
1913
1927
|
return propertyToRef(source, key, defaultValue);
|
|
1914
1928
|
} else {
|
|
1915
|
-
return ref(source);
|
|
1929
|
+
return /* @__PURE__ */ ref(source);
|
|
1916
1930
|
}
|
|
1917
1931
|
}
|
|
1918
1932
|
function propertyToRef(source, key, defaultValue) {
|
|
@@ -2278,6 +2292,7 @@ class ComputedRefImpl {
|
|
|
2278
2292
|
{
|
|
2279
2293
|
setupOnTrigger(ComputedRefImpl);
|
|
2280
2294
|
}
|
|
2295
|
+
// @__NO_SIDE_EFFECTS__
|
|
2281
2296
|
function computed$1(getterOrOptions, debugOptions, isSSR = false) {
|
|
2282
2297
|
let getter;
|
|
2283
2298
|
let setter;
|
|
@@ -5240,7 +5255,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
5240
5255
|
logMismatchError();
|
|
5241
5256
|
}
|
|
5242
5257
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
5243
|
-
key[0] === "." || isCustomElement) {
|
|
5258
|
+
key[0] === "." || isCustomElement && !isReservedProp(key)) {
|
|
5244
5259
|
patchProp(el, key, null, props[key], void 0, parentComponent);
|
|
5245
5260
|
}
|
|
5246
5261
|
}
|
|
@@ -7894,7 +7909,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7894
7909
|
return vm;
|
|
7895
7910
|
}
|
|
7896
7911
|
}
|
|
7897
|
-
Vue.version = `2.6.14-compat:${"3.6.0-beta.
|
|
7912
|
+
Vue.version = `2.6.14-compat:${"3.6.0-beta.4"}`;
|
|
7898
7913
|
Vue.config = singletonApp.config;
|
|
7899
7914
|
Vue.use = (plugin, ...options) => {
|
|
7900
7915
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9953,7 +9968,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9953
9968
|
optimized
|
|
9954
9969
|
);
|
|
9955
9970
|
} else {
|
|
9956
|
-
const customElement =
|
|
9971
|
+
const customElement = n1.el && n1.el._isVueCE ? n1.el : null;
|
|
9957
9972
|
try {
|
|
9958
9973
|
if (customElement) {
|
|
9959
9974
|
customElement._beginPatch();
|
|
@@ -10490,7 +10505,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10490
10505
|
if (!instance.isMounted) {
|
|
10491
10506
|
let vnodeHook;
|
|
10492
10507
|
const { el, props } = initialVNode;
|
|
10493
|
-
const { bm,
|
|
10508
|
+
const { bm, parent, root, type } = instance;
|
|
10494
10509
|
const isAsyncWrapperVNode = isAsyncWrapper(initialVNode);
|
|
10495
10510
|
toggleRecurse(instance, false);
|
|
10496
10511
|
if (bm) {
|
|
@@ -10536,8 +10551,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10536
10551
|
hydrateSubTree();
|
|
10537
10552
|
}
|
|
10538
10553
|
} else {
|
|
10539
|
-
if (root.ce &&
|
|
10540
|
-
root.ce._def.shadowRoot !== false) {
|
|
10554
|
+
if (root.ce && root.ce._hasShadowRoot()) {
|
|
10541
10555
|
root.ce._injectChildStyle(type);
|
|
10542
10556
|
}
|
|
10543
10557
|
{
|
|
@@ -10564,8 +10578,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10564
10578
|
}
|
|
10565
10579
|
initialVNode.el = subTree.el;
|
|
10566
10580
|
}
|
|
10567
|
-
if (m) {
|
|
10568
|
-
queuePostRenderEffect(m, void 0, parentSuspense);
|
|
10581
|
+
if (instance.m) {
|
|
10582
|
+
queuePostRenderEffect(instance.m, void 0, parentSuspense);
|
|
10569
10583
|
}
|
|
10570
10584
|
if (!isAsyncWrapperVNode && (vnodeHook = props && props.onVnodeMounted)) {
|
|
10571
10585
|
const scopedInitialVNode = initialVNode;
|
|
@@ -13251,7 +13265,7 @@ function isMemoSame(cached, memo) {
|
|
|
13251
13265
|
return true;
|
|
13252
13266
|
}
|
|
13253
13267
|
|
|
13254
|
-
const version = "3.6.0-beta.
|
|
13268
|
+
const version = "3.6.0-beta.4";
|
|
13255
13269
|
const warn = warn$1 ;
|
|
13256
13270
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
13257
13271
|
const devtools = devtools$1 ;
|
|
@@ -14505,6 +14519,12 @@ class VueElementBase extends BaseClass {
|
|
|
14505
14519
|
this._update();
|
|
14506
14520
|
}
|
|
14507
14521
|
}
|
|
14522
|
+
/**
|
|
14523
|
+
* @internal
|
|
14524
|
+
*/
|
|
14525
|
+
_hasShadowRoot() {
|
|
14526
|
+
return this._def.shadowRoot !== false;
|
|
14527
|
+
}
|
|
14508
14528
|
/**
|
|
14509
14529
|
* @internal
|
|
14510
14530
|
*/
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.6.0-beta.
|
|
2
|
+
* @vue/compat v3.6.0-beta.4
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1176,20 +1176,20 @@ function createIterableMethod(method, isReadonly2, isShallow2) {
|
|
|
1176
1176
|
"iterate",
|
|
1177
1177
|
isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY
|
|
1178
1178
|
);
|
|
1179
|
-
return
|
|
1180
|
-
// iterator
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
done
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1179
|
+
return extend(
|
|
1180
|
+
// inheriting all iterator properties
|
|
1181
|
+
Object.create(innerIterator),
|
|
1182
|
+
{
|
|
1183
|
+
// iterator protocol
|
|
1184
|
+
next() {
|
|
1185
|
+
const { value, done } = innerIterator.next();
|
|
1186
|
+
return done ? { value, done } : {
|
|
1187
|
+
value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
|
|
1188
|
+
done
|
|
1189
|
+
};
|
|
1190
|
+
}
|
|
1191
1191
|
}
|
|
1192
|
-
|
|
1192
|
+
);
|
|
1193
1193
|
};
|
|
1194
1194
|
}
|
|
1195
1195
|
function createReadonlyMethod(type) {
|
|
@@ -1380,8 +1380,9 @@ function targetTypeMap(rawType) {
|
|
|
1380
1380
|
function getTargetType(value) {
|
|
1381
1381
|
return value["__v_skip"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(toRawType(value));
|
|
1382
1382
|
}
|
|
1383
|
+
// @__NO_SIDE_EFFECTS__
|
|
1383
1384
|
function reactive(target) {
|
|
1384
|
-
if (isReadonly(target)) {
|
|
1385
|
+
if (/* @__PURE__ */ isReadonly(target)) {
|
|
1385
1386
|
return target;
|
|
1386
1387
|
}
|
|
1387
1388
|
return createReactiveObject(
|
|
@@ -1392,6 +1393,7 @@ function reactive(target) {
|
|
|
1392
1393
|
reactiveMap
|
|
1393
1394
|
);
|
|
1394
1395
|
}
|
|
1396
|
+
// @__NO_SIDE_EFFECTS__
|
|
1395
1397
|
function shallowReactive(target) {
|
|
1396
1398
|
return createReactiveObject(
|
|
1397
1399
|
target,
|
|
@@ -1401,6 +1403,7 @@ function shallowReactive(target) {
|
|
|
1401
1403
|
shallowReactiveMap
|
|
1402
1404
|
);
|
|
1403
1405
|
}
|
|
1406
|
+
// @__NO_SIDE_EFFECTS__
|
|
1404
1407
|
function readonly(target) {
|
|
1405
1408
|
return createReactiveObject(
|
|
1406
1409
|
target,
|
|
@@ -1410,6 +1413,7 @@ function readonly(target) {
|
|
|
1410
1413
|
readonlyMap
|
|
1411
1414
|
);
|
|
1412
1415
|
}
|
|
1416
|
+
// @__NO_SIDE_EFFECTS__
|
|
1413
1417
|
function shallowReadonly$1(target) {
|
|
1414
1418
|
return createReactiveObject(
|
|
1415
1419
|
target,
|
|
@@ -1441,24 +1445,29 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
|
|
|
1441
1445
|
proxyMap.set(target, proxy);
|
|
1442
1446
|
return proxy;
|
|
1443
1447
|
}
|
|
1448
|
+
// @__NO_SIDE_EFFECTS__
|
|
1444
1449
|
function isReactive(value) {
|
|
1445
|
-
if (isReadonly(value)) {
|
|
1446
|
-
return isReactive(value["__v_raw"]);
|
|
1450
|
+
if (/* @__PURE__ */ isReadonly(value)) {
|
|
1451
|
+
return /* @__PURE__ */ isReactive(value["__v_raw"]);
|
|
1447
1452
|
}
|
|
1448
1453
|
return !!(value && value["__v_isReactive"]);
|
|
1449
1454
|
}
|
|
1455
|
+
// @__NO_SIDE_EFFECTS__
|
|
1450
1456
|
function isReadonly(value) {
|
|
1451
1457
|
return !!(value && value["__v_isReadonly"]);
|
|
1452
1458
|
}
|
|
1459
|
+
// @__NO_SIDE_EFFECTS__
|
|
1453
1460
|
function isShallow(value) {
|
|
1454
1461
|
return !!(value && value["__v_isShallow"]);
|
|
1455
1462
|
}
|
|
1463
|
+
// @__NO_SIDE_EFFECTS__
|
|
1456
1464
|
function isProxy(value) {
|
|
1457
1465
|
return value ? !!value["__v_raw"] : false;
|
|
1458
1466
|
}
|
|
1467
|
+
// @__NO_SIDE_EFFECTS__
|
|
1459
1468
|
function toRaw(observed) {
|
|
1460
1469
|
const raw = observed && observed["__v_raw"];
|
|
1461
|
-
return raw ? toRaw(raw) : observed;
|
|
1470
|
+
return raw ? /* @__PURE__ */ toRaw(raw) : observed;
|
|
1462
1471
|
}
|
|
1463
1472
|
function markRaw(value) {
|
|
1464
1473
|
if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) {
|
|
@@ -1466,20 +1475,23 @@ function markRaw(value) {
|
|
|
1466
1475
|
}
|
|
1467
1476
|
return value;
|
|
1468
1477
|
}
|
|
1469
|
-
const toReactive = (value) => isObject(value) ? reactive(value) : value;
|
|
1470
|
-
const toReadonly = (value) => isObject(value) ? readonly(value) : value;
|
|
1478
|
+
const toReactive = (value) => isObject(value) ? /* @__PURE__ */ reactive(value) : value;
|
|
1479
|
+
const toReadonly = (value) => isObject(value) ? /* @__PURE__ */ readonly(value) : value;
|
|
1471
1480
|
|
|
1481
|
+
// @__NO_SIDE_EFFECTS__
|
|
1472
1482
|
function isRef(r) {
|
|
1473
1483
|
return r ? r["__v_isRef"] === true : false;
|
|
1474
1484
|
}
|
|
1485
|
+
// @__NO_SIDE_EFFECTS__
|
|
1475
1486
|
function ref(value) {
|
|
1476
1487
|
return createRef(value, toReactive);
|
|
1477
1488
|
}
|
|
1489
|
+
// @__NO_SIDE_EFFECTS__
|
|
1478
1490
|
function shallowRef(value) {
|
|
1479
1491
|
return createRef(value);
|
|
1480
1492
|
}
|
|
1481
1493
|
function createRef(rawValue, wrap) {
|
|
1482
|
-
if (isRef(rawValue)) {
|
|
1494
|
+
if (/* @__PURE__ */ isRef(rawValue)) {
|
|
1483
1495
|
return rawValue;
|
|
1484
1496
|
}
|
|
1485
1497
|
return new RefImpl(rawValue, wrap);
|
|
@@ -1555,7 +1567,7 @@ function trackRef(dep) {
|
|
|
1555
1567
|
}
|
|
1556
1568
|
}
|
|
1557
1569
|
function unref(ref2) {
|
|
1558
|
-
return isRef(ref2) ? ref2.value : ref2;
|
|
1570
|
+
return /* @__PURE__ */ isRef(ref2) ? ref2.value : ref2;
|
|
1559
1571
|
}
|
|
1560
1572
|
function toValue(source) {
|
|
1561
1573
|
return isFunction(source) ? source() : unref(source);
|
|
@@ -1564,7 +1576,7 @@ const shallowUnwrapHandlers = {
|
|
|
1564
1576
|
get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
|
|
1565
1577
|
set: (target, key, value, receiver) => {
|
|
1566
1578
|
const oldValue = target[key];
|
|
1567
|
-
if (isRef(oldValue) &&
|
|
1579
|
+
if (/* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) {
|
|
1568
1580
|
oldValue.value = value;
|
|
1569
1581
|
return true;
|
|
1570
1582
|
} else {
|
|
@@ -1602,6 +1614,7 @@ class CustomRefImpl {
|
|
|
1602
1614
|
function customRef(factory) {
|
|
1603
1615
|
return new CustomRefImpl(factory);
|
|
1604
1616
|
}
|
|
1617
|
+
// @__NO_SIDE_EFFECTS__
|
|
1605
1618
|
function toRefs(object) {
|
|
1606
1619
|
const ret = isArray(object) ? new Array(object.length) : {};
|
|
1607
1620
|
for (const key in object) {
|
|
@@ -1634,9 +1647,9 @@ class ObjectRefImpl {
|
|
|
1634
1647
|
return this._value = val === void 0 ? this._defaultValue : val;
|
|
1635
1648
|
}
|
|
1636
1649
|
set value(newVal) {
|
|
1637
|
-
if (this._shallow && isRef(this._raw[this._key])) {
|
|
1650
|
+
if (this._shallow && /* @__PURE__ */ isRef(this._raw[this._key])) {
|
|
1638
1651
|
const nestedRef = this._object[this._key];
|
|
1639
|
-
if (isRef(nestedRef)) {
|
|
1652
|
+
if (/* @__PURE__ */ isRef(nestedRef)) {
|
|
1640
1653
|
nestedRef.value = newVal;
|
|
1641
1654
|
return;
|
|
1642
1655
|
}
|
|
@@ -1658,15 +1671,16 @@ class GetterRefImpl {
|
|
|
1658
1671
|
return this._value = this._getter();
|
|
1659
1672
|
}
|
|
1660
1673
|
}
|
|
1674
|
+
// @__NO_SIDE_EFFECTS__
|
|
1661
1675
|
function toRef(source, key, defaultValue) {
|
|
1662
|
-
if (isRef(source)) {
|
|
1676
|
+
if (/* @__PURE__ */ isRef(source)) {
|
|
1663
1677
|
return source;
|
|
1664
1678
|
} else if (isFunction(source)) {
|
|
1665
1679
|
return new GetterRefImpl(source);
|
|
1666
1680
|
} else if (isObject(source) && arguments.length > 1) {
|
|
1667
1681
|
return propertyToRef(source, key, defaultValue);
|
|
1668
1682
|
} else {
|
|
1669
|
-
return ref(source);
|
|
1683
|
+
return /* @__PURE__ */ ref(source);
|
|
1670
1684
|
}
|
|
1671
1685
|
}
|
|
1672
1686
|
function propertyToRef(source, key, defaultValue) {
|
|
@@ -2013,6 +2027,7 @@ class ComputedRefImpl {
|
|
|
2013
2027
|
}
|
|
2014
2028
|
}
|
|
2015
2029
|
}
|
|
2030
|
+
// @__NO_SIDE_EFFECTS__
|
|
2016
2031
|
function computed$1(getterOrOptions, debugOptions, isSSR = false) {
|
|
2017
2032
|
let getter;
|
|
2018
2033
|
let setter;
|
|
@@ -4227,7 +4242,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4227
4242
|
const isCustomElement = el.tagName.includes("-");
|
|
4228
4243
|
for (const key in props) {
|
|
4229
4244
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
4230
|
-
key[0] === "." || isCustomElement) {
|
|
4245
|
+
key[0] === "." || isCustomElement && !isReservedProp(key)) {
|
|
4231
4246
|
patchProp(el, key, null, props[key], void 0, parentComponent);
|
|
4232
4247
|
}
|
|
4233
4248
|
}
|
|
@@ -6432,7 +6447,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6432
6447
|
return vm;
|
|
6433
6448
|
}
|
|
6434
6449
|
}
|
|
6435
|
-
Vue.version = `2.6.14-compat:${"3.6.0-beta.
|
|
6450
|
+
Vue.version = `2.6.14-compat:${"3.6.0-beta.4"}`;
|
|
6436
6451
|
Vue.config = singletonApp.config;
|
|
6437
6452
|
Vue.use = (plugin, ...options) => {
|
|
6438
6453
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -8017,7 +8032,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8017
8032
|
optimized
|
|
8018
8033
|
);
|
|
8019
8034
|
} else {
|
|
8020
|
-
const customElement =
|
|
8035
|
+
const customElement = n1.el && n1.el._isVueCE ? n1.el : null;
|
|
8021
8036
|
try {
|
|
8022
8037
|
if (customElement) {
|
|
8023
8038
|
customElement._beginPatch();
|
|
@@ -8508,7 +8523,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8508
8523
|
if (!instance.isMounted) {
|
|
8509
8524
|
let vnodeHook;
|
|
8510
8525
|
const { el, props } = initialVNode;
|
|
8511
|
-
const { bm,
|
|
8526
|
+
const { bm, parent, root, type } = instance;
|
|
8512
8527
|
const isAsyncWrapperVNode = isAsyncWrapper(initialVNode);
|
|
8513
8528
|
toggleRecurse(instance, false);
|
|
8514
8529
|
if (bm) {
|
|
@@ -8542,8 +8557,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8542
8557
|
hydrateSubTree();
|
|
8543
8558
|
}
|
|
8544
8559
|
} else {
|
|
8545
|
-
if (root.ce &&
|
|
8546
|
-
root.ce._def.shadowRoot !== false) {
|
|
8560
|
+
if (root.ce && root.ce._hasShadowRoot()) {
|
|
8547
8561
|
root.ce._injectChildStyle(type);
|
|
8548
8562
|
}
|
|
8549
8563
|
const subTree = instance.subTree = renderComponentRoot(instance);
|
|
@@ -8558,8 +8572,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8558
8572
|
);
|
|
8559
8573
|
initialVNode.el = subTree.el;
|
|
8560
8574
|
}
|
|
8561
|
-
if (m) {
|
|
8562
|
-
queuePostRenderEffect(m, void 0, parentSuspense);
|
|
8575
|
+
if (instance.m) {
|
|
8576
|
+
queuePostRenderEffect(instance.m, void 0, parentSuspense);
|
|
8563
8577
|
}
|
|
8564
8578
|
if (!isAsyncWrapperVNode && (vnodeHook = props && props.onVnodeMounted)) {
|
|
8565
8579
|
const scopedInitialVNode = initialVNode;
|
|
@@ -10815,7 +10829,7 @@ function isMemoSame(cached, memo) {
|
|
|
10815
10829
|
return true;
|
|
10816
10830
|
}
|
|
10817
10831
|
|
|
10818
|
-
const version = "3.6.0-beta.
|
|
10832
|
+
const version = "3.6.0-beta.4";
|
|
10819
10833
|
const warn$1 = NOOP;
|
|
10820
10834
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10821
10835
|
const devtools = void 0;
|
|
@@ -12003,6 +12017,12 @@ class VueElementBase extends BaseClass {
|
|
|
12003
12017
|
this._update();
|
|
12004
12018
|
}
|
|
12005
12019
|
}
|
|
12020
|
+
/**
|
|
12021
|
+
* @internal
|
|
12022
|
+
*/
|
|
12023
|
+
_hasShadowRoot() {
|
|
12024
|
+
return this._def.shadowRoot !== false;
|
|
12025
|
+
}
|
|
12006
12026
|
/**
|
|
12007
12027
|
* @internal
|
|
12008
12028
|
*/
|