wevu 6.16.30 → 6.16.31
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/dev/index.mjs +1 -1
- package/dist/dev/{src-B6draUWz.mjs → src-QNC0LVvV.mjs} +38 -14
- package/dist/dev/src-QNC0LVvV.mjs.map +1 -0
- package/dist/dev/vue-demi.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src-BtONVPDv.mjs +1 -0
- package/dist/vue-demi.mjs +1 -1
- package/package.json +2 -2
- package/dist/dev/src-B6draUWz.mjs.map +0 -1
- package/dist/src-DswUAmfF.mjs +0 -1
package/dist/dev/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as setWevuDefaults, A as defineComponent, B as useLayoutHosts, C as useNavigationBarMetrics, Ct as isShallowRef, D as useDisposables, E as useElementIntersectionObserver, F as resolveLayoutBridge, G as teardownRuntimeInstance, H as registerApp, I as resolveLayoutHost, J as setPageLayout, K as runSetupFunction, L as unregisterPageLayoutBridge, M as registerComponent, N as registerPageLayoutBridge, O as createWevuComponent, P as registerRuntimeLayoutHosts, Q as resetWevuDefaults, R as unregisterRuntimeLayoutHosts, S as getNavigationBarMetrics, St as toRefs, T as useIntersectionObserver, Tt as triggerRef, U as mountRuntimeInstance, V as waitForLayoutHost, W as setRuntimeSetDataVisibility, X as syncRuntimePageLayoutStateFromRuntime, Y as syncRuntimePageLayoutState, Z as usePageLayout, _ as useSelectorFields, _t as onServerPrefetch, a as useModel, at as watchPostEffect, b as usePageScrollThrottle, bt as traverse, c as useSlots, ct as setDeepWatchStrategy, d as useUpdatePerformanceListener, dt as onBeforeMount, et as isNoSetData, f as normalizeClass, ft as onBeforeUnmount, g as useScrollOffset, gt as onMounted, h as useBoundingClientRect, ht as onErrorCaptured, i as useChangeModel, it as watchEffect, j as createApp, k as createWevuScopedSlotComponent, l as defineAppSetup, lt as callUpdateHooks, m as resolvePropValue, mt as onDeactivated, n as mergeModels, nt as version, o as useAttrs, ot as watchSyncEffect, p as normalizeStyle, pt as onBeforeUpdate, q as resolveRuntimePageLayoutName, r as useBindModel, rt as watch, s as useNativeInstance, st as getDeepWatchStrategy, t as useTemplateRef, tt as markNoSetData, u as use, ut as onActivated, v as useSelectorQuery, vt as onUnmounted, w as usePageStack, wt as shallowRef, x as getCurrentPageStackSnapshot, xt as toRef, y as useAsyncPullDownRefresh, yt as onUpdated, z as useLayoutBridge } from "./src-
|
|
1
|
+
import { $ as setWevuDefaults, A as defineComponent, B as useLayoutHosts, C as useNavigationBarMetrics, Ct as isShallowRef, D as useDisposables, E as useElementIntersectionObserver, F as resolveLayoutBridge, G as teardownRuntimeInstance, H as registerApp, I as resolveLayoutHost, J as setPageLayout, K as runSetupFunction, L as unregisterPageLayoutBridge, M as registerComponent, N as registerPageLayoutBridge, O as createWevuComponent, P as registerRuntimeLayoutHosts, Q as resetWevuDefaults, R as unregisterRuntimeLayoutHosts, S as getNavigationBarMetrics, St as toRefs, T as useIntersectionObserver, Tt as triggerRef, U as mountRuntimeInstance, V as waitForLayoutHost, W as setRuntimeSetDataVisibility, X as syncRuntimePageLayoutStateFromRuntime, Y as syncRuntimePageLayoutState, Z as usePageLayout, _ as useSelectorFields, _t as onServerPrefetch, a as useModel, at as watchPostEffect, b as usePageScrollThrottle, bt as traverse, c as useSlots, ct as setDeepWatchStrategy, d as useUpdatePerformanceListener, dt as onBeforeMount, et as isNoSetData, f as normalizeClass, ft as onBeforeUnmount, g as useScrollOffset, gt as onMounted, h as useBoundingClientRect, ht as onErrorCaptured, i as useChangeModel, it as watchEffect, j as createApp, k as createWevuScopedSlotComponent, l as defineAppSetup, lt as callUpdateHooks, m as resolvePropValue, mt as onDeactivated, n as mergeModels, nt as version, o as useAttrs, ot as watchSyncEffect, p as normalizeStyle, pt as onBeforeUpdate, q as resolveRuntimePageLayoutName, r as useBindModel, rt as watch, s as useNativeInstance, st as getDeepWatchStrategy, t as useTemplateRef, tt as markNoSetData, u as use, ut as onActivated, v as useSelectorQuery, vt as onUnmounted, w as usePageStack, wt as shallowRef, x as getCurrentPageStackSnapshot, xt as toRef, y as useAsyncPullDownRefresh, yt as onUpdated, z as useLayoutBridge } from "./src-QNC0LVvV.mjs";
|
|
2
2
|
import { C as effect, D as onScopeDispose, E as getCurrentScope, N as nextTick, O as startBatch, S as batch, T as endBatch, a as toValue, b as addMutationRecorder, c as isRaw, d as reactive, f as isShallowReactive, g as touchReactive, h as prelinkReactiveTree, i as ref, k as stop, l as isReactive, n as isRef, o as unref, p as shallowReactive, s as getReactiveVersion, t as customRef, u as markRaw, w as effectScope, x as removeMutationRecorder, y as toRaw } from "./ref-BoBfMdVt.mjs";
|
|
3
3
|
import { i as computed, n as defineStore, r as createStore, t as storeToRefs } from "./store-eNxaNZbj.mjs";
|
|
4
4
|
import { $ as onUnhandledRejection, A as setGlobalProvidedValue, B as onPageNotFound, F as onHide, G as onResize, H as onPullDownRefresh, I as onLaunch, J as onShareAppMessage, K as onRouteDone, L as onLoad, M as onAttached, N as onDetached, P as onError, Q as onThemeChange, R as onMemoryWarning, U as onReachBottom, V as onPageScroll, W as onReady, X as onShow, Y as onShareTimeline, Z as onTabItemTap, _ as provide, _t as readonly, at as getCurrentSetupContext, ct as setCurrentSetupContext, et as onUnload, g as injectGlobal, gt as isReadonly, h as inject, ht as isProxy, it as getCurrentInstance, j as onAddToFavorites, m as hasInjectionContext, n as useNativeRouter, nt as callHookList, q as onSaveExitState, rt as callHookReturn, st as setCurrentInstance, t as useNativePageRouter, v as provideGlobal, vt as shallowReadonly, z as onMoved } from "./router-ByTtgUmi.mjs";
|
|
@@ -478,7 +478,7 @@ function watchSyncEffect(effectFn, options = {}) {
|
|
|
478
478
|
|
|
479
479
|
//#endregion
|
|
480
480
|
//#region package.json
|
|
481
|
-
var version$1 = "6.16.
|
|
481
|
+
var version$1 = "6.16.31";
|
|
482
482
|
|
|
483
483
|
//#endregion
|
|
484
484
|
//#region src/version.ts
|
|
@@ -967,7 +967,7 @@ function isPlainObject$1(value) {
|
|
|
967
967
|
const proto = Object.getPrototypeOf(value);
|
|
968
968
|
return proto === null || proto === Object.prototype;
|
|
969
969
|
}
|
|
970
|
-
function toPlainInternal(value, seen, visiting, cache, depth, budget, includeFunctions, functionPathSet, currentPath) {
|
|
970
|
+
function toPlainInternal(value, seen, visiting, cache, cacheEligibility, depth, budget, includeFunctions, functionPathSet, currentPath) {
|
|
971
971
|
const unwrapped = unref(value);
|
|
972
972
|
if (typeof unwrapped === "bigint") {
|
|
973
973
|
const asNumber = Number(unwrapped);
|
|
@@ -977,8 +977,15 @@ function toPlainInternal(value, seen, visiting, cache, depth, budget, includeFun
|
|
|
977
977
|
if (typeof unwrapped === "function") return includeFunctions || (functionPathSet === null || functionPathSet === void 0 ? void 0 : functionPathSet.has(currentPath)) ? unwrapped : void 0;
|
|
978
978
|
if (typeof unwrapped !== "object" || unwrapped === null) return unwrapped;
|
|
979
979
|
if (isNoSetData(unwrapped)) return;
|
|
980
|
-
const
|
|
981
|
-
const
|
|
980
|
+
const reactiveValue = isReactive(unwrapped);
|
|
981
|
+
const raw = reactiveValue ? toRaw(unwrapped) : unwrapped;
|
|
982
|
+
let canUseCache = Boolean(cache) && reactiveValue;
|
|
983
|
+
if (cache && !canUseCache) {
|
|
984
|
+
const cachedEligibility = cacheEligibility === null || cacheEligibility === void 0 ? void 0 : cacheEligibility.get(raw);
|
|
985
|
+
canUseCache = cachedEligibility !== null && cachedEligibility !== void 0 ? cachedEligibility : !hasTrackableSetupBinding(raw);
|
|
986
|
+
cacheEligibility === null || cacheEligibility === void 0 || cacheEligibility.set(raw, canUseCache);
|
|
987
|
+
}
|
|
988
|
+
const cacheRef = canUseCache ? cache : void 0;
|
|
982
989
|
if (depth <= 0 || budget.keys <= 0) return raw;
|
|
983
990
|
if (cacheRef) {
|
|
984
991
|
const version = getReactiveVersion(raw);
|
|
@@ -994,7 +1001,7 @@ function toPlainInternal(value, seen, visiting, cache, depth, budget, includeFun
|
|
|
994
1001
|
seen.set(raw, entries);
|
|
995
1002
|
visiting.add(raw);
|
|
996
1003
|
raw.forEach((mapValue, mapKey) => {
|
|
997
|
-
entries.push([toPlainInternal(mapKey, seen, visiting, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""), toPlainInternal(mapValue, seen, visiting, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, "")]);
|
|
1004
|
+
entries.push([toPlainInternal(mapKey, seen, visiting, void 0, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""), toPlainInternal(mapValue, seen, visiting, void 0, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, "")]);
|
|
998
1005
|
});
|
|
999
1006
|
visiting.delete(raw);
|
|
1000
1007
|
return entries;
|
|
@@ -1004,7 +1011,7 @@ function toPlainInternal(value, seen, visiting, cache, depth, budget, includeFun
|
|
|
1004
1011
|
seen.set(raw, values);
|
|
1005
1012
|
visiting.add(raw);
|
|
1006
1013
|
raw.forEach((setValue) => {
|
|
1007
|
-
values.push(toPlainInternal(setValue, seen, visiting, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""));
|
|
1014
|
+
values.push(toPlainInternal(setValue, seen, visiting, void 0, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""));
|
|
1008
1015
|
});
|
|
1009
1016
|
visiting.delete(raw);
|
|
1010
1017
|
return values;
|
|
@@ -1016,7 +1023,7 @@ function toPlainInternal(value, seen, visiting, cache, depth, budget, includeFun
|
|
|
1016
1023
|
if (typeof view[Symbol.iterator] === "function") {
|
|
1017
1024
|
const values = [...view];
|
|
1018
1025
|
seen.set(raw, values);
|
|
1019
|
-
return values.map((item) => toPlainInternal(item, seen, visiting, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""));
|
|
1026
|
+
return values.map((item) => toPlainInternal(item, seen, visiting, void 0, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""));
|
|
1020
1027
|
}
|
|
1021
1028
|
const bytes = [...new Uint8Array(view.buffer, view.byteOffset, view.byteLength)];
|
|
1022
1029
|
seen.set(raw, bytes);
|
|
@@ -1034,7 +1041,7 @@ function toPlainInternal(value, seen, visiting, cache, depth, budget, includeFun
|
|
|
1034
1041
|
const nextDepth = depth - 1;
|
|
1035
1042
|
for (let index = 0; index < raw.length; index += 1) {
|
|
1036
1043
|
const childPath = currentPath ? `${currentPath}.${index}` : String(index);
|
|
1037
|
-
const next = toPlainInternal(raw[index], seen, visiting, cache, nextDepth, budget, includeFunctions, functionPathSet, childPath);
|
|
1044
|
+
const next = toPlainInternal(raw[index], seen, visiting, cache, cacheEligibility, nextDepth, budget, includeFunctions, functionPathSet, childPath);
|
|
1038
1045
|
arr[index] = next === void 0 ? null : next;
|
|
1039
1046
|
}
|
|
1040
1047
|
visiting.delete(raw);
|
|
@@ -1052,7 +1059,7 @@ function toPlainInternal(value, seen, visiting, cache, depth, budget, includeFun
|
|
|
1052
1059
|
budget.keys -= 1;
|
|
1053
1060
|
if (budget.keys <= 0) break;
|
|
1054
1061
|
const childPath = currentPath ? `${currentPath}.${key}` : key;
|
|
1055
|
-
const next = toPlainInternal(raw[key], seen, visiting, cache, nextDepth, budget, includeFunctions, functionPathSet, childPath);
|
|
1062
|
+
const next = toPlainInternal(raw[key], seen, visiting, cache, cacheEligibility, nextDepth, budget, includeFunctions, functionPathSet, childPath);
|
|
1056
1063
|
if (next !== void 0) output[key] = next;
|
|
1057
1064
|
}
|
|
1058
1065
|
visiting.delete(raw);
|
|
@@ -1067,7 +1074,7 @@ function toPlain(value, seen = /* @__PURE__ */ new WeakMap(), options) {
|
|
|
1067
1074
|
const depth = (_options$_depth = options === null || options === void 0 ? void 0 : options._depth) !== null && _options$_depth !== void 0 ? _options$_depth : typeof (options === null || options === void 0 ? void 0 : options.maxDepth) === "number" ? Math.max(0, Math.floor(options.maxDepth)) : Number.POSITIVE_INFINITY;
|
|
1068
1075
|
const budget = (_options$_budget = options === null || options === void 0 ? void 0 : options._budget) !== null && _options$_budget !== void 0 ? _options$_budget : typeof (options === null || options === void 0 ? void 0 : options.maxKeys) === "number" ? { keys: Math.max(0, Math.floor(options.maxKeys)) } : { keys: Number.POSITIVE_INFINITY };
|
|
1069
1076
|
const functionPathSet = Array.isArray(options === null || options === void 0 ? void 0 : options.functionPaths) && options.functionPaths.length ? new Set(options.functionPaths) : void 0;
|
|
1070
|
-
return toPlainInternal(value, seen, /* @__PURE__ */ new WeakSet(), options === null || options === void 0 ? void 0 : options.cache, depth, budget, Boolean(options === null || options === void 0 ? void 0 : options.includeFunctions), functionPathSet, (_options$_path = options === null || options === void 0 ? void 0 : options._path) !== null && _options$_path !== void 0 ? _options$_path : "");
|
|
1077
|
+
return toPlainInternal(value, seen, /* @__PURE__ */ new WeakSet(), options === null || options === void 0 ? void 0 : options.cache, options === null || options === void 0 ? void 0 : options.cacheEligibility, depth, budget, Boolean(options === null || options === void 0 ? void 0 : options.includeFunctions), functionPathSet, (_options$_path = options === null || options === void 0 ? void 0 : options._path) !== null && _options$_path !== void 0 ? _options$_path : "");
|
|
1071
1078
|
}
|
|
1072
1079
|
function isArrayEqual(a, b, compare) {
|
|
1073
1080
|
if (a.length !== b.length) return false;
|
|
@@ -1357,7 +1364,7 @@ function applySnapshotUpdate(snapshot, path, value, op, options) {
|
|
|
1357
1364
|
else current[leaf] = cloneValue ? cloneSnapshotValue(value) : value;
|
|
1358
1365
|
}
|
|
1359
1366
|
function collectSnapshot(options) {
|
|
1360
|
-
const { state, setupState, computedRefs, includeComputed, shouldIncludeKey, plainCache, toPlainMaxDepth, toPlainMaxKeys, includeFunctions = false, functionPaths = [] } = options;
|
|
1367
|
+
const { state, setupState, computedRefs, includeComputed, shouldIncludeKey, plainCache, plainCacheEligibility, toPlainMaxDepth, toPlainMaxKeys, includeFunctions = false, functionPaths = [] } = options;
|
|
1361
1368
|
const seen = /* @__PURE__ */ new WeakMap();
|
|
1362
1369
|
const out = {};
|
|
1363
1370
|
const budget = Number.isFinite(toPlainMaxKeys) ? { keys: toPlainMaxKeys } : void 0;
|
|
@@ -1370,6 +1377,7 @@ function collectSnapshot(options) {
|
|
|
1370
1377
|
if (!shouldIncludeKey(key)) continue;
|
|
1371
1378
|
out[key] = toPlain(rawState[key], seen, {
|
|
1372
1379
|
cache: plainCache,
|
|
1380
|
+
cacheEligibility: plainCacheEligibility,
|
|
1373
1381
|
maxDepth: toPlainMaxDepth,
|
|
1374
1382
|
includeFunctions,
|
|
1375
1383
|
functionPaths,
|
|
@@ -1381,6 +1389,7 @@ function collectSnapshot(options) {
|
|
|
1381
1389
|
if (!shouldIncludeKey(key)) continue;
|
|
1382
1390
|
out[key] = toPlain(rawSetupState[key], seen, {
|
|
1383
1391
|
cache: plainCache,
|
|
1392
|
+
cacheEligibility: plainCacheEligibility,
|
|
1384
1393
|
maxDepth: toPlainMaxDepth,
|
|
1385
1394
|
includeFunctions,
|
|
1386
1395
|
functionPaths,
|
|
@@ -1392,6 +1401,7 @@ function collectSnapshot(options) {
|
|
|
1392
1401
|
if (!shouldIncludeKey(key)) continue;
|
|
1393
1402
|
out[key] = toPlain(computedRefs[key].value, seen, {
|
|
1394
1403
|
cache: plainCache,
|
|
1404
|
+
cacheEligibility: plainCacheEligibility,
|
|
1395
1405
|
maxDepth: toPlainMaxDepth,
|
|
1396
1406
|
includeFunctions,
|
|
1397
1407
|
functionPaths,
|
|
@@ -1405,7 +1415,7 @@ function collectSnapshot(options) {
|
|
|
1405
1415
|
//#endregion
|
|
1406
1416
|
//#region src/runtime/app/setData/patchScheduler.ts
|
|
1407
1417
|
function runPatchUpdate(options) {
|
|
1408
|
-
const { state, computedRefs, dirtyComputedKeys, includeComputed, computedCompare, computedCompareMaxDepth, computedCompareMaxKeys, currentAdapter, shouldIncludeKey, maxPatchKeys, maxPayloadBytes, mergeSiblingThreshold, mergeSiblingMaxInflationRatio, mergeSiblingMaxParentBytes, mergeSiblingSkipArray, elevateTopKeyThreshold, toPlainMaxDepth, toPlainMaxKeys, includeFunctions = false, functionPaths, plainCache, pendingPatches, fallbackTopKeys, latestSnapshot, latestComputedSnapshot, needsFullSnapshot, emitDebug, runDiffUpdate } = options;
|
|
1418
|
+
const { state, computedRefs, dirtyComputedKeys, includeComputed, computedCompare, computedCompareMaxDepth, computedCompareMaxKeys, currentAdapter, shouldIncludeKey, maxPatchKeys, maxPayloadBytes, mergeSiblingThreshold, mergeSiblingMaxInflationRatio, mergeSiblingMaxParentBytes, mergeSiblingSkipArray, elevateTopKeyThreshold, toPlainMaxDepth, toPlainMaxKeys, includeFunctions = false, functionPaths, plainCache, plainCacheEligibility, pendingPatches, fallbackTopKeys, latestSnapshot, latestComputedSnapshot, needsFullSnapshot, emitDebug, runDiffUpdate } = options;
|
|
1409
1419
|
if (pendingPatches.size > maxPatchKeys) {
|
|
1410
1420
|
needsFullSnapshot.value = true;
|
|
1411
1421
|
const pendingCount = pendingPatches.size;
|
|
@@ -1452,6 +1462,7 @@ function runPatchUpdate(options) {
|
|
|
1452
1462
|
if (plainByPath.has(path)) return plainByPath.get(path);
|
|
1453
1463
|
const value = normalizeSetDataValue(toPlain(getStateValueByPath(path), seen, {
|
|
1454
1464
|
cache: plainCache,
|
|
1465
|
+
cacheEligibility: plainCacheEligibility,
|
|
1455
1466
|
maxDepth: toPlainMaxDepth,
|
|
1456
1467
|
maxKeys: toPlainMaxKeys,
|
|
1457
1468
|
includeFunctions,
|
|
@@ -1489,6 +1500,7 @@ function runPatchUpdate(options) {
|
|
|
1489
1500
|
if (!shouldIncludeKey(key)) continue;
|
|
1490
1501
|
const nextValue = toPlain(computedRefs[key].value, seen, {
|
|
1491
1502
|
cache: plainCache,
|
|
1503
|
+
cacheEligibility: plainCacheEligibility,
|
|
1492
1504
|
maxDepth: toPlainMaxDepth,
|
|
1493
1505
|
maxKeys: toPlainMaxKeys,
|
|
1494
1506
|
includeFunctions,
|
|
@@ -1559,6 +1571,7 @@ function runPatchUpdate(options) {
|
|
|
1559
1571
|
function createSetDataScheduler(options) {
|
|
1560
1572
|
const { state, setupState, snapshotOmitKeys, computedRefs, dirtyComputedKeys, includeComputed, setDataStrategy, computedCompare, computedCompareMaxDepth, computedCompareMaxKeys, currentAdapter, shouldIncludeKey, maxPatchKeys, maxPayloadBytes, mergeSiblingThreshold, mergeSiblingMaxInflationRatio, mergeSiblingMaxParentBytes, mergeSiblingSkipArray, elevateTopKeyThreshold, toPlainMaxDepth, toPlainMaxKeys, includeFunctions = false, functionPaths, debug, debugWhen, debugSampleRate, runTracker, isMounted, initialSnapshot } = options;
|
|
1561
1573
|
const plainCache = /* @__PURE__ */ new WeakMap();
|
|
1574
|
+
const plainCacheEligibility = /* @__PURE__ */ new WeakMap();
|
|
1562
1575
|
let latestSnapshot = {};
|
|
1563
1576
|
let latestComputedSnapshot = Object.create(null);
|
|
1564
1577
|
const latestStateTokens = Object.create(null);
|
|
@@ -1589,6 +1602,7 @@ function createSetDataScheduler(options) {
|
|
|
1589
1602
|
const candidate = isRef(value) ? value.value : value;
|
|
1590
1603
|
if (candidate == null || typeof candidate !== "object") return candidate;
|
|
1591
1604
|
if (!isReactive(candidate) && hasTrackableSetupBinding(candidate)) return { snapshot: toPlain(candidate, /* @__PURE__ */ new WeakMap(), {
|
|
1605
|
+
cacheEligibility: plainCacheEligibility,
|
|
1592
1606
|
maxDepth: toPlainMaxDepth,
|
|
1593
1607
|
maxKeys: toPlainMaxKeys,
|
|
1594
1608
|
includeFunctions,
|
|
@@ -1656,6 +1670,7 @@ function createSetDataScheduler(options) {
|
|
|
1656
1670
|
includeComputed,
|
|
1657
1671
|
shouldIncludeKey: shouldIncludeSnapshotKey,
|
|
1658
1672
|
plainCache,
|
|
1673
|
+
plainCacheEligibility,
|
|
1659
1674
|
toPlainMaxDepth,
|
|
1660
1675
|
toPlainMaxKeys,
|
|
1661
1676
|
includeFunctions,
|
|
@@ -1679,6 +1694,7 @@ function createSetDataScheduler(options) {
|
|
|
1679
1694
|
if (previousToken && token && typeof previousToken === "object" && typeof token === "object" && hasOwn(previousToken, "raw") && hasOwn(token, "raw") && Array.isArray(previousToken.raw) && Array.isArray(token.raw) && previousToken.raw !== token.raw) replacedTopLevelKeys.add(key);
|
|
1680
1695
|
if (!isSameToken(previousToken, token) || !hasOwn(latestSnapshot, key)) nextSnapshot[key] = toPlain(source[key], seen, {
|
|
1681
1696
|
cache: plainCache,
|
|
1697
|
+
cacheEligibility: plainCacheEligibility,
|
|
1682
1698
|
maxDepth: toPlainMaxDepth,
|
|
1683
1699
|
maxKeys: toPlainMaxKeys,
|
|
1684
1700
|
includeFunctions,
|
|
@@ -1705,6 +1721,7 @@ function createSetDataScheduler(options) {
|
|
|
1705
1721
|
const token = createValueToken(value);
|
|
1706
1722
|
if (!isSameToken(latestComputedTokens[key], token) || !hasOwn(latestSnapshot, key)) nextSnapshot[key] = toPlain(value, seen, {
|
|
1707
1723
|
cache: plainCache,
|
|
1724
|
+
cacheEligibility: plainCacheEligibility,
|
|
1708
1725
|
maxDepth: toPlainMaxDepth,
|
|
1709
1726
|
maxKeys: toPlainMaxKeys,
|
|
1710
1727
|
includeFunctions,
|
|
@@ -1806,6 +1823,7 @@ function createSetDataScheduler(options) {
|
|
|
1806
1823
|
includeFunctions,
|
|
1807
1824
|
functionPaths,
|
|
1808
1825
|
plainCache,
|
|
1826
|
+
plainCacheEligibility,
|
|
1809
1827
|
pendingPatches,
|
|
1810
1828
|
fallbackTopKeys,
|
|
1811
1829
|
latestSnapshot,
|
|
@@ -5196,6 +5214,9 @@ function resolveComputedGetter(definition) {
|
|
|
5196
5214
|
const getter = definition === null || definition === void 0 ? void 0 : definition.get;
|
|
5197
5215
|
return typeof getter === "function" ? getter : void 0;
|
|
5198
5216
|
}
|
|
5217
|
+
function isCompilerGeneratedTemplateComputedKey(key) {
|
|
5218
|
+
return key.startsWith("__wv_bind_") || key.startsWith("__wv_cls_") || key.startsWith("__wv_style_");
|
|
5219
|
+
}
|
|
5199
5220
|
function resolveInitialComputedData(options) {
|
|
5200
5221
|
const { data, computed, setData } = options;
|
|
5201
5222
|
const computedKeys = computed ? Object.keys(computed) : [];
|
|
@@ -5256,7 +5277,10 @@ function resolveInitialComputedData(options) {
|
|
|
5256
5277
|
return Reflect.has(target, key) || typeof key === "string" && Boolean(computed && hasOwn(computed, key));
|
|
5257
5278
|
}
|
|
5258
5279
|
});
|
|
5259
|
-
for (const key of computedKeys)
|
|
5280
|
+
for (const key of computedKeys) {
|
|
5281
|
+
if (isCompilerGeneratedTemplateComputedKey(key)) continue;
|
|
5282
|
+
resolveComputedValue(key);
|
|
5283
|
+
}
|
|
5260
5284
|
return Object.keys(resolved).length ? resolved : void 0;
|
|
5261
5285
|
}
|
|
5262
5286
|
function resolveNativeInitialData(data, computed, setData) {
|
|
@@ -6602,4 +6626,4 @@ function useTemplateRef(name) {
|
|
|
6602
6626
|
|
|
6603
6627
|
//#endregion
|
|
6604
6628
|
export { setWevuDefaults as $, defineComponent as A, useLayoutHosts as B, useNavigationBarMetrics as C, isShallowRef as Ct, useDisposables as D, __reExport as Dt, useElementIntersectionObserver as E, __exportAll as Et, resolveLayoutBridge as F, teardownRuntimeInstance as G, registerApp as H, resolveLayoutHost as I, setPageLayout as J, runSetupFunction as K, unregisterPageLayoutBridge as L, registerComponent as M, registerPageLayoutBridge as N, createWevuComponent as O, registerRuntimeLayoutHosts as P, resetWevuDefaults as Q, unregisterRuntimeLayoutHosts as R, getNavigationBarMetrics as S, toRefs as St, useIntersectionObserver as T, triggerRef as Tt, mountRuntimeInstance as U, waitForLayoutHost as V, setRuntimeSetDataVisibility as W, syncRuntimePageLayoutStateFromRuntime as X, syncRuntimePageLayoutState as Y, usePageLayout as Z, useSelectorFields as _, onServerPrefetch as _t, useModel as a, watchPostEffect as at, usePageScrollThrottle as b, traverse as bt, useSlots as c, setDeepWatchStrategy as ct, useUpdatePerformanceListener as d, onBeforeMount as dt, isNoSetData as et, normalizeClass as f, onBeforeUnmount as ft, useScrollOffset as g, onMounted as gt, useBoundingClientRect as h, onErrorCaptured as ht, useChangeModel as i, watchEffect as it, createApp as j, createWevuScopedSlotComponent as k, defineAppSetup as l, callUpdateHooks as lt, resolvePropValue as m, onDeactivated as mt, mergeModels as n, version as nt, useAttrs as o, watchSyncEffect as ot, normalizeStyle as p, onBeforeUpdate as pt, resolveRuntimePageLayoutName as q, useBindModel as r, watch as rt, useNativeInstance as s, getDeepWatchStrategy as st, useTemplateRef as t, markNoSetData as tt, use as u, onActivated as ut, useSelectorQuery as v, onUnmounted as vt, usePageStack as w, shallowRef as wt, getCurrentPageStackSnapshot as x, toRef as xt, useAsyncPullDownRefresh as y, onUpdated as yt, useLayoutBridge as z };
|
|
6605
|
-
//# sourceMappingURL=src-
|
|
6629
|
+
//# sourceMappingURL=src-QNC0LVvV.mjs.map
|