wevu 6.16.0 → 6.16.2
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/README.md +8 -0
- package/dist/api.mjs +1 -2
- package/dist/chunk-CbfVNrr-.mjs +1 -0
- package/dist/compiler.mjs +1 -2
- package/dist/dev/api.mjs +3 -0
- package/dist/dev/compiler.mjs +3 -0
- package/dist/dev/fetch.mjs +3 -0
- package/dist/dev/index.mjs +8 -0
- package/dist/dev/jsx-runtime.mjs +1 -0
- package/dist/{ref-DuEgaxvT.mjs → dev/ref-BTTXccLL.mjs} +15 -0
- package/dist/dev/ref-BTTXccLL.mjs.map +1 -0
- package/dist/{router-Ck6g5XK5.mjs → dev/router-BZZnIx32.mjs} +14 -1
- package/dist/dev/router-BZZnIx32.mjs.map +1 -0
- package/dist/dev/router.mjs +1267 -0
- package/dist/dev/router.mjs.map +1 -0
- package/dist/{src-mHDyn6h5.mjs → dev/src-DcTVnwpE.mjs} +112 -6
- package/dist/dev/src-DcTVnwpE.mjs.map +1 -0
- package/dist/{store-BhbWIoTi.mjs → dev/store-Dr0zE_9B.mjs} +13 -1
- package/dist/dev/store-Dr0zE_9B.mjs.map +1 -0
- package/dist/dev/store.mjs +3 -0
- package/dist/dev/vue-demi.mjs +173 -0
- package/dist/dev/vue-demi.mjs.map +1 -0
- package/dist/dev/web-apis.mjs +5 -0
- package/dist/fetch.mjs +1 -2
- package/dist/index.mjs +1 -6
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/ref-Bs--7iY3.mjs +1 -0
- package/dist/router-BtpVtHM4.mjs +1 -0
- package/dist/router.mjs +1 -1248
- package/dist/src-BFQLJ5K7.mjs +1 -0
- package/dist/store-B63-EIon.mjs +1 -0
- package/dist/store.mjs +1 -2
- package/dist/vue-demi.mjs +1 -24
- package/dist/web-apis.mjs +1 -3
- package/package.json +74 -2
- package/dist/chunk-D1SwGrFN.mjs +0 -27
|
@@ -1,9 +1,44 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import { $ as pushHook, E as onDetached, J as assertInSetup, P as onPageScroll, Q as getCurrentSetupContext, S as setRuntimeAppProvidedValue, T as onAttached, X as callHookReturn, Y as callHookList, Z as getCurrentInstance, at as getMiniProgramGlobalObject, b as attachRuntimeProvideContext, et as setCurrentInstance, it as getCurrentMiniProgramRuntimeCapabilities, nt as getCurrentMiniProgramHostConfig, ot as getScopedSlotHostGlobalObject, q as onUnload, rt as getCurrentMiniProgramPages, st as supportsCurrentMiniProgramRuntimeCapability, tt as setCurrentSetupContext, ut as readonly, x as ensureRuntimeAppProvides, y as attachRuntimeLayoutProvideContext } from "./router-Ck6g5XK5.mjs";
|
|
1
|
+
import { A as track, C as effect, D as onScopeDispose, E as getCurrentScope, M as triggerEffects, N as nextTick, O as startBatch, P as queueJob, 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, j as trigger, k as stop, l as isReactive, m as clearPatchIndices, n as isRef, o as unref, p as shallowReactive, r as markAsRef, s as getReactiveVersion, t as customRef, u as markRaw, v as isObject$1, w as effectScope, x as removeMutationRecorder, y as toRaw } from "./ref-BTTXccLL.mjs";
|
|
2
|
+
import { i as computed, n as defineStore, r as createStore, t as storeToRefs } from "./store-Dr0zE_9B.mjs";
|
|
3
|
+
import { $ as pushHook, A as onLoad, B as onSaveExitState, C as setGlobalProvidedValue, D as onError, E as onDetached, F as onPullDownRefresh, G as onThemeChange, H as onShareTimeline, I as onReachBottom, J as assertInSetup, K as onUnhandledRejection, L as onReady, M as onMoved, N as onPageNotFound, O as onHide, P as onPageScroll, Q as getCurrentSetupContext, R as onResize, S as setRuntimeAppProvidedValue, T as onAttached, U as onShow, V as onShareAppMessage, W as onTabItemTap, X as callHookReturn, Y as callHookList, Z as getCurrentInstance, _ as provide, at as getMiniProgramGlobalObject, b as attachRuntimeProvideContext, ct as isProxy, dt as shallowReadonly, et as setCurrentInstance, g as injectGlobal, h as inject, it as getCurrentMiniProgramRuntimeCapabilities, j as onMemoryWarning, k as onLaunch, lt as isReadonly, m as hasInjectionContext, n as useNativeRouter, nt as getCurrentMiniProgramHostConfig, ot as getScopedSlotHostGlobalObject, q as onUnload, rt as getCurrentMiniProgramPages, st as supportsCurrentMiniProgramRuntimeCapability, t as useNativePageRouter, tt as setCurrentSetupContext, ut as readonly, v as provideGlobal, w as onAddToFavorites, x as ensureRuntimeAppProvides, y as attachRuntimeLayoutProvideContext, z as onRouteDone } from "./router-BZZnIx32.mjs";
|
|
5
4
|
import { WEVU_ATTRS_KEY, WEVU_EFFECT_SCOPE_KEY, WEVU_EXPOSED_KEY, WEVU_HOOKS_KEY, WEVU_INLINE_HANDLER, WEVU_INLINE_MAP_KEY, WEVU_IS_APP_INSTANCE_KEY, WEVU_LAYOUT_BRIDGE_PAGE_KEYS, WEVU_LAYOUT_HOST_BRIDGE_KEY, WEVU_MODEL_HANDLER, WEVU_NATIVE_INSTANCE_KEY, WEVU_ON_BEFORE_UPDATE_HOOK, WEVU_ON_LOAD_CALLED_KEY, WEVU_ON_UPDATED_HOOK, WEVU_OWNER_HANDLER, WEVU_PAGE_LAYOUT_NAME_KEY, WEVU_PAGE_LAYOUT_NONE, WEVU_PAGE_LAYOUT_PROPS_KEY, WEVU_PAGE_LAYOUT_SETTER_KEY, WEVU_PAGE_SCROLL_HOOK_DEPTH_KEY, WEVU_PARENT_INSTANCE_KEY, WEVU_PENDING_PROP_VALUES_KEY, WEVU_PROPS_KEY, WEVU_PROP_KEYS_KEY, WEVU_PUBLIC_RUNTIME_KEY, WEVU_READY_CALLED_KEY, WEVU_RESERVED_METHOD_PREFIX, WEVU_ROUTE_DONE_CALLED_KEY, WEVU_ROUTE_DONE_IN_TICK_KEY, WEVU_RUNTIME_APP_KEY, WEVU_RUNTIME_KEY, WEVU_SCOPED_SLOT_CREATOR_KEY, WEVU_SETUP_CONTEXT_INSTANCE_KEY, WEVU_SLOT_NAMES_PROP, WEVU_SLOT_OWNER_ID_KEY, WEVU_SLOT_OWNER_ID_PROP, WEVU_SLOT_OWNER_KEY, WEVU_SLOT_PROPS_DATA_KEY, WEVU_SLOT_PROPS_KEY, WEVU_SLOT_SCOPE_KEY, WEVU_TEMPLATE_REFS_CALLBACKS_KEY, WEVU_TEMPLATE_REFS_KEY, WEVU_TEMPLATE_REFS_PENDING_KEY, WEVU_TEMPLATE_REF_MAP_KEY, WEVU_WATCH_STOPS_KEY } from "@weapp-core/constants";
|
|
6
5
|
import { resolveMiniProgramPageKeys } from "@weapp-core/shared";
|
|
6
|
+
|
|
7
|
+
//#region \0rolldown/runtime.js
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
11
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
+
var __exportAll = (all, no_symbols) => {
|
|
13
|
+
let target = {};
|
|
14
|
+
for (var name in all) {
|
|
15
|
+
__defProp(target, name, {
|
|
16
|
+
get: all[name],
|
|
17
|
+
enumerable: true
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
if (!no_symbols) {
|
|
21
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
22
|
+
}
|
|
23
|
+
return target;
|
|
24
|
+
};
|
|
25
|
+
var __copyProps = (to, from, except, desc) => {
|
|
26
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
27
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
28
|
+
key = keys[i];
|
|
29
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
30
|
+
__defProp(to, key, {
|
|
31
|
+
get: ((k) => from[k]).bind(null, key),
|
|
32
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return to;
|
|
38
|
+
};
|
|
39
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
7
42
|
//#region src/reactivity/shallowRef.ts
|
|
8
43
|
/**
|
|
9
44
|
* 创建一个“浅层” ref:它只在 .value 被整体替换时触发依赖,不会对内部对象做深层响应式处理。
|
|
@@ -56,6 +91,7 @@ function triggerRef(ref) {
|
|
|
56
91
|
ref.value = ref.value;
|
|
57
92
|
}
|
|
58
93
|
}
|
|
94
|
+
|
|
59
95
|
//#endregion
|
|
60
96
|
//#region src/reactivity/toRefs.ts
|
|
61
97
|
function toRef(object, key, defaultValue) {
|
|
@@ -93,6 +129,7 @@ function toRefs(object) {
|
|
|
93
129
|
for (const key in object) result[key] = toRef(object, key);
|
|
94
130
|
return result;
|
|
95
131
|
}
|
|
132
|
+
|
|
96
133
|
//#endregion
|
|
97
134
|
//#region src/reactivity/traverse.ts
|
|
98
135
|
/**
|
|
@@ -126,6 +163,7 @@ function traverse(value, depth = Infinity, seen = /* @__PURE__ */ new Map()) {
|
|
|
126
163
|
for (const key in target) traverse(value[key], nextDepth, seen);
|
|
127
164
|
return value;
|
|
128
165
|
}
|
|
166
|
+
|
|
129
167
|
//#endregion
|
|
130
168
|
//#region src/runtime/hooks/vue.ts
|
|
131
169
|
/**
|
|
@@ -201,6 +239,7 @@ function onServerPrefetch(_handler) {
|
|
|
201
239
|
function callUpdateHooks(target, phase) {
|
|
202
240
|
callHookList(target, phase === "before" ? WEVU_ON_BEFORE_UPDATE_HOOK : WEVU_ON_UPDATED_HOOK);
|
|
203
241
|
}
|
|
242
|
+
|
|
204
243
|
//#endregion
|
|
205
244
|
//#region src/reactivity/watch/types.ts
|
|
206
245
|
let __deepWatchStrategy = "version";
|
|
@@ -218,6 +257,7 @@ function setDeepWatchStrategy(strategy) {
|
|
|
218
257
|
function getDeepWatchStrategy() {
|
|
219
258
|
return __deepWatchStrategy;
|
|
220
259
|
}
|
|
260
|
+
|
|
221
261
|
//#endregion
|
|
222
262
|
//#region src/reactivity/watch/helpers.ts
|
|
223
263
|
function resolveWatchSource(item) {
|
|
@@ -281,6 +321,7 @@ function dispatchScheduledJob(job, flush, isFirstRun, scheduler) {
|
|
|
281
321
|
if (isFirstRun) job();
|
|
282
322
|
else queueJob(job);
|
|
283
323
|
}
|
|
324
|
+
|
|
284
325
|
//#endregion
|
|
285
326
|
//#region src/reactivity/watch.ts
|
|
286
327
|
function watch(source, cb, options = {}) {
|
|
@@ -433,9 +474,15 @@ function watchSyncEffect(effectFn, options = {}) {
|
|
|
433
474
|
flush: "sync"
|
|
434
475
|
});
|
|
435
476
|
}
|
|
477
|
+
|
|
478
|
+
//#endregion
|
|
479
|
+
//#region package.json
|
|
480
|
+
var version$1 = "6.16.2";
|
|
481
|
+
|
|
436
482
|
//#endregion
|
|
437
483
|
//#region src/version.ts
|
|
438
|
-
const version =
|
|
484
|
+
const version = version$1;
|
|
485
|
+
|
|
439
486
|
//#endregion
|
|
440
487
|
//#region src/utils.ts
|
|
441
488
|
function capitalize(str) {
|
|
@@ -446,6 +493,7 @@ function toPathSegments(path) {
|
|
|
446
493
|
if (!path) return [];
|
|
447
494
|
return path.split(".").map((segment) => segment.trim()).filter(Boolean);
|
|
448
495
|
}
|
|
496
|
+
|
|
449
497
|
//#endregion
|
|
450
498
|
//#region src/runtime/internal.ts
|
|
451
499
|
function setComputedValue(setters, key, value) {
|
|
@@ -461,6 +509,7 @@ function parseModelEventValue(event) {
|
|
|
461
509
|
}
|
|
462
510
|
return event;
|
|
463
511
|
}
|
|
512
|
+
|
|
464
513
|
//#endregion
|
|
465
514
|
//#region src/runtime/bindModel.ts
|
|
466
515
|
function setWithSegments(target, segments, value) {
|
|
@@ -543,6 +592,7 @@ function createBindModel(publicInstance, state, computedRefs, computedSetters) {
|
|
|
543
592
|
};
|
|
544
593
|
return bindModel;
|
|
545
594
|
}
|
|
595
|
+
|
|
546
596
|
//#endregion
|
|
547
597
|
//#region src/runtime/setupTracking.ts
|
|
548
598
|
function isPlainObject$2(value) {
|
|
@@ -594,6 +644,7 @@ function touchSetupBinding(value, seen = /* @__PURE__ */ new WeakSet()) {
|
|
|
594
644
|
seen.add(value);
|
|
595
645
|
getTrackableChildren(value).forEach((item) => touchSetupBinding(item, seen));
|
|
596
646
|
}
|
|
647
|
+
|
|
597
648
|
//#endregion
|
|
598
649
|
//#region src/runtime/nativeBridge.ts
|
|
599
650
|
const NATIVE_BRIDGE_MARKER = "__wevu_native_bridge__";
|
|
@@ -612,6 +663,7 @@ function markNativeBridgeMethod(method) {
|
|
|
612
663
|
function isNativeBridgeMethod(method) {
|
|
613
664
|
return typeof method === "function" && Boolean(method[NATIVE_BRIDGE_MARKER]);
|
|
614
665
|
}
|
|
666
|
+
|
|
615
667
|
//#endregion
|
|
616
668
|
//#region src/runtime/app/computed.ts
|
|
617
669
|
function createComputedAccessors(options) {
|
|
@@ -674,6 +726,7 @@ function createComputedAccessors(options) {
|
|
|
674
726
|
})
|
|
675
727
|
};
|
|
676
728
|
}
|
|
729
|
+
|
|
677
730
|
//#endregion
|
|
678
731
|
//#region src/runtime/app/context.ts
|
|
679
732
|
function createRuntimeContext(options) {
|
|
@@ -827,6 +880,7 @@ function createRuntimeContext(options) {
|
|
|
827
880
|
}
|
|
828
881
|
};
|
|
829
882
|
}
|
|
883
|
+
|
|
830
884
|
//#endregion
|
|
831
885
|
//#region src/runtime/app/diagnostics.ts
|
|
832
886
|
function isFallbackReason(reason) {
|
|
@@ -855,6 +909,7 @@ function createDiagnosticsLogger(mode) {
|
|
|
855
909
|
console.info(message);
|
|
856
910
|
};
|
|
857
911
|
}
|
|
912
|
+
|
|
858
913
|
//#endregion
|
|
859
914
|
//#region src/runtime/noSetData.ts
|
|
860
915
|
const NO_SETDATA = Symbol("wevu.noSetData");
|
|
@@ -870,6 +925,7 @@ function markNoSetData(value) {
|
|
|
870
925
|
function isNoSetData(value) {
|
|
871
926
|
return typeof value === "object" && value !== null && value[NO_SETDATA] === true;
|
|
872
927
|
}
|
|
928
|
+
|
|
873
929
|
//#endregion
|
|
874
930
|
//#region src/runtime/diff.ts
|
|
875
931
|
function isPlainObject$1(value) {
|
|
@@ -1023,6 +1079,7 @@ function diffSnapshots(prev, next, options) {
|
|
|
1023
1079
|
}
|
|
1024
1080
|
return diff;
|
|
1025
1081
|
}
|
|
1082
|
+
|
|
1026
1083
|
//#endregion
|
|
1027
1084
|
//#region src/runtime/app/setData/payload.ts
|
|
1028
1085
|
function collapsePayload(input) {
|
|
@@ -1179,6 +1236,7 @@ function mergeSiblingPayload(options) {
|
|
|
1179
1236
|
merged
|
|
1180
1237
|
};
|
|
1181
1238
|
}
|
|
1239
|
+
|
|
1182
1240
|
//#endregion
|
|
1183
1241
|
//#region src/runtime/app/setData/snapshot.ts
|
|
1184
1242
|
function isPlainObjectLike(value) {
|
|
@@ -1278,6 +1336,7 @@ function collectSnapshot(options) {
|
|
|
1278
1336
|
}
|
|
1279
1337
|
return out;
|
|
1280
1338
|
}
|
|
1339
|
+
|
|
1281
1340
|
//#endregion
|
|
1282
1341
|
//#region src/runtime/app/setData/patchScheduler.ts
|
|
1283
1342
|
function runPatchUpdate(options) {
|
|
@@ -1423,6 +1482,7 @@ function runPatchUpdate(options) {
|
|
|
1423
1482
|
payloadKeys: Object.keys(collapsedPayload).length
|
|
1424
1483
|
});
|
|
1425
1484
|
}
|
|
1485
|
+
|
|
1426
1486
|
//#endregion
|
|
1427
1487
|
//#region src/runtime/app/setData/scheduler.ts
|
|
1428
1488
|
function createSetDataScheduler(options) {
|
|
@@ -1658,6 +1718,7 @@ function createSetDataScheduler(options) {
|
|
|
1658
1718
|
getLatestSnapshot: () => latestSnapshot
|
|
1659
1719
|
};
|
|
1660
1720
|
}
|
|
1721
|
+
|
|
1661
1722
|
//#endregion
|
|
1662
1723
|
//#region src/runtime/app/setDataOptions.ts
|
|
1663
1724
|
function resolveSetDataOptions(setDataOptions) {
|
|
@@ -1717,6 +1778,7 @@ function resolveSetDataOptions(setDataOptions) {
|
|
|
1717
1778
|
shouldIncludeKey
|
|
1718
1779
|
};
|
|
1719
1780
|
}
|
|
1781
|
+
|
|
1720
1782
|
//#endregion
|
|
1721
1783
|
//#region src/runtime/app/mount.ts
|
|
1722
1784
|
function createWatchStopHandle(cleanup, baseHandle) {
|
|
@@ -1920,6 +1982,7 @@ function createRuntimeMount(options) {
|
|
|
1920
1982
|
return runtimeInstance;
|
|
1921
1983
|
};
|
|
1922
1984
|
}
|
|
1985
|
+
|
|
1923
1986
|
//#endregion
|
|
1924
1987
|
//#region src/runtime/defaults.ts
|
|
1925
1988
|
const INTERNAL_DEFAULTS_SCOPE_KEY = "__wevuDefaultsScope";
|
|
@@ -1978,6 +2041,7 @@ function applyWevuAppDefaults(options) {
|
|
|
1978
2041
|
function applyWevuComponentDefaults(options) {
|
|
1979
2042
|
return mergeWithDefaults(currentDefaults.component, options);
|
|
1980
2043
|
}
|
|
2044
|
+
|
|
1981
2045
|
//#endregion
|
|
1982
2046
|
//#region src/runtime/register/inline.ts
|
|
1983
2047
|
const AMP_RE$1 = /&/g;
|
|
@@ -2117,6 +2181,7 @@ function runInlineExpression(ctx, expr, event, inlineMap) {
|
|
|
2117
2181
|
const handler = ctx === null || ctx === void 0 ? void 0 : ctx[handlerName];
|
|
2118
2182
|
if (typeof handler === "function") return handler.apply(ctx, resolvedArgs);
|
|
2119
2183
|
}
|
|
2184
|
+
|
|
2120
2185
|
//#endregion
|
|
2121
2186
|
//#region src/runtime/register/component/lifecycle/platform.ts
|
|
2122
2187
|
let miniProgramGlobalPatched = false;
|
|
@@ -2204,6 +2269,7 @@ function ensurePageShareMenus(options) {
|
|
|
2204
2269
|
break;
|
|
2205
2270
|
} catch (_unused) {}
|
|
2206
2271
|
}
|
|
2272
|
+
|
|
2207
2273
|
//#endregion
|
|
2208
2274
|
//#region src/runtime/pageLayout.ts
|
|
2209
2275
|
function resolveCurrentPageInstance$1() {
|
|
@@ -2264,6 +2330,7 @@ function setPageLayout(layout, props) {
|
|
|
2264
2330
|
function resolveRuntimePageLayoutName(layout) {
|
|
2265
2331
|
return layout === false ? WEVU_PAGE_LAYOUT_NONE : layout;
|
|
2266
2332
|
}
|
|
2333
|
+
|
|
2267
2334
|
//#endregion
|
|
2268
2335
|
//#region src/runtime/scopedSlots.ts
|
|
2269
2336
|
const ownerStore = /* @__PURE__ */ new Map();
|
|
@@ -2330,6 +2397,7 @@ function attachOwnerSnapshot(target, runtime, ownerId) {
|
|
|
2330
2397
|
if (propsSource && typeof propsSource === "object") for (const [key, value] of Object.entries(propsSource)) snapshot[key] = value;
|
|
2331
2398
|
updateOwnerSnapshot(ownerId, snapshot, runtime.proxy);
|
|
2332
2399
|
}
|
|
2400
|
+
|
|
2333
2401
|
//#endregion
|
|
2334
2402
|
//#region src/runtime/templateRefs/helpers.ts
|
|
2335
2403
|
function isComponentRef(binding) {
|
|
@@ -2550,6 +2618,7 @@ function buildTemplateRefValue(target, binding, result) {
|
|
|
2550
2618
|
if (!result) return null;
|
|
2551
2619
|
return createTemplateRefWrapper(target, binding.selector, { multiple: false });
|
|
2552
2620
|
}
|
|
2621
|
+
|
|
2553
2622
|
//#endregion
|
|
2554
2623
|
//#region src/runtime/templateRefs.ts
|
|
2555
2624
|
function updateTemplateRefs(target, onResolved) {
|
|
@@ -2704,6 +2773,7 @@ function clearTemplateRefs(target) {
|
|
|
2704
2773
|
}
|
|
2705
2774
|
for (const key of Object.keys(refsContainer)) if (!nextNames.has(key)) delete refsContainer[key];
|
|
2706
2775
|
}
|
|
2776
|
+
|
|
2707
2777
|
//#endregion
|
|
2708
2778
|
//#region src/runtime/register/runtimeInstance/setupContext.ts
|
|
2709
2779
|
const setupInstanceMethodNames = [
|
|
@@ -2908,6 +2978,7 @@ function ensureSetupContextInstance(target, runtime) {
|
|
|
2908
2978
|
}
|
|
2909
2979
|
return setupInstance;
|
|
2910
2980
|
}
|
|
2981
|
+
|
|
2911
2982
|
//#endregion
|
|
2912
2983
|
//#region src/runtime/register/runtimeInstance/methodBridge.ts
|
|
2913
2984
|
function bridgeRuntimeMethodsToTarget(target, runtime) {
|
|
@@ -2924,6 +2995,7 @@ function bridgeRuntimeMethodsToTarget(target, runtime) {
|
|
|
2924
2995
|
}
|
|
2925
2996
|
} catch (_unused) {}
|
|
2926
2997
|
}
|
|
2998
|
+
|
|
2927
2999
|
//#endregion
|
|
2928
3000
|
//#region src/runtime/layoutComponentMatcher.ts
|
|
2929
3001
|
const DEFAULT_LAYOUT_COMPONENT_PATH_PREFIX = "layouts/";
|
|
@@ -2932,6 +3004,7 @@ function isRuntimeLayoutComponentTarget(target) {
|
|
|
2932
3004
|
const componentPath = target.is;
|
|
2933
3005
|
return typeof componentPath === "string" && runtimeLayoutComponentMatcher(componentPath, target);
|
|
2934
3006
|
}
|
|
3007
|
+
|
|
2935
3008
|
//#endregion
|
|
2936
3009
|
//#region src/runtime/register/runtimeInstance/provideContext.ts
|
|
2937
3010
|
function resolveRuntimeParentInstance(target) {
|
|
@@ -2956,6 +3029,7 @@ function attachRuntimeProvideParentContext(target, runtimeApp) {
|
|
|
2956
3029
|
attachRuntimeProvideContext(target, runtimeApp, resolveRuntimeParentInstance(target));
|
|
2957
3030
|
attachRuntimeLayoutParentContext(target);
|
|
2958
3031
|
}
|
|
3032
|
+
|
|
2959
3033
|
//#endregion
|
|
2960
3034
|
//#region src/runtime/register/setup.ts
|
|
2961
3035
|
function runSetupFunction(setup, props, context) {
|
|
@@ -2974,6 +3048,7 @@ function runSetupFunction(setup, props, context) {
|
|
|
2974
3048
|
runtime: runtimeContext
|
|
2975
3049
|
});
|
|
2976
3050
|
}
|
|
3051
|
+
|
|
2977
3052
|
//#endregion
|
|
2978
3053
|
//#region src/runtime/register/runtimeInstance/setupPhase.ts
|
|
2979
3054
|
function runRuntimeSetupPhase(options) {
|
|
@@ -3109,6 +3184,7 @@ function runRuntimeSetupPhase(options) {
|
|
|
3109
3184
|
setCurrentInstance(void 0);
|
|
3110
3185
|
}
|
|
3111
3186
|
}
|
|
3187
|
+
|
|
3112
3188
|
//#endregion
|
|
3113
3189
|
//#region src/runtime/register/runtimeInstance/utils.ts
|
|
3114
3190
|
function attachRuntimeProxyProps(state, props) {
|
|
@@ -3192,6 +3268,7 @@ function syncRuntimeProps(props, mpProperties) {
|
|
|
3192
3268
|
} catch (_unused6) {}
|
|
3193
3269
|
for (const [key, value] of Object.entries(mpProperties)) props[key] = value;
|
|
3194
3270
|
}
|
|
3271
|
+
|
|
3195
3272
|
//#endregion
|
|
3196
3273
|
//#region src/runtime/register/setDataFrequencyWarning.ts
|
|
3197
3274
|
function isObject(value) {
|
|
@@ -3282,6 +3359,7 @@ function createSetDataHighFrequencyWarningMonitor(options) {
|
|
|
3282
3359
|
logger(`[wevu:setData] 检测到高频 setData 调用:${callTimes.length} 次/${resolved.sampleWindowMs}ms(${options.targetLabel})。建议合并更新或降低调用频率。`);
|
|
3283
3360
|
};
|
|
3284
3361
|
}
|
|
3362
|
+
|
|
3285
3363
|
//#endregion
|
|
3286
3364
|
//#region src/runtime/register/watch.ts
|
|
3287
3365
|
function normalizeWatchDescriptor(descriptor, runtime, instance) {
|
|
@@ -3333,6 +3411,7 @@ function registerWatches(runtime, watchMap, instance) {
|
|
|
3333
3411
|
}
|
|
3334
3412
|
return stops;
|
|
3335
3413
|
}
|
|
3414
|
+
|
|
3336
3415
|
//#endregion
|
|
3337
3416
|
//#region src/runtime/register/runtimeInstance.ts
|
|
3338
3417
|
function attachPageLayoutSetter(target) {
|
|
@@ -3543,6 +3622,7 @@ function teardownRuntimeInstance(target) {
|
|
|
3543
3622
|
delete target.__wevu;
|
|
3544
3623
|
if (WEVU_PUBLIC_RUNTIME_KEY in target) delete target[WEVU_PUBLIC_RUNTIME_KEY];
|
|
3545
3624
|
}
|
|
3625
|
+
|
|
3546
3626
|
//#endregion
|
|
3547
3627
|
//#region src/runtime/register/app.ts
|
|
3548
3628
|
const APP_GLOBAL_LISTENER_STORE_KEY = "__wevuAppGlobalListeners";
|
|
@@ -3693,6 +3773,7 @@ function registerApp(runtimeApp, methods, watch, setup, mpOptions) {
|
|
|
3693
3773
|
}
|
|
3694
3774
|
App(appOptions);
|
|
3695
3775
|
}
|
|
3776
|
+
|
|
3696
3777
|
//#endregion
|
|
3697
3778
|
//#region src/runtime/register/component/features.ts
|
|
3698
3779
|
function resolveComponentFeatures(options) {
|
|
@@ -3733,6 +3814,7 @@ function resolveComponentFeatures(options) {
|
|
|
3733
3814
|
effectiveOnAddToFavorites: typeof userOnAddToFavorites === "function" ? userOnAddToFavorites : (() => ({}))
|
|
3734
3815
|
};
|
|
3735
3816
|
}
|
|
3817
|
+
|
|
3736
3818
|
//#endregion
|
|
3737
3819
|
//#region src/runtime/register/component/lifecycle/optionalHooks.ts
|
|
3738
3820
|
function attachOptionalPageLifecycleHooks(pageLifecycleHooks, options) {
|
|
@@ -3790,6 +3872,7 @@ function attachOptionalPageLifecycleHooks(pageLifecycleHooks, options) {
|
|
|
3790
3872
|
return effectiveOnAddToFavorites.apply(this, args);
|
|
3791
3873
|
};
|
|
3792
3874
|
}
|
|
3875
|
+
|
|
3793
3876
|
//#endregion
|
|
3794
3877
|
//#region src/runtime/register/component/lifecycle.ts
|
|
3795
3878
|
function createPageLifecycleHooks(options) {
|
|
@@ -3886,6 +3969,7 @@ function createPageLifecycleHooks(options) {
|
|
|
3886
3969
|
});
|
|
3887
3970
|
return pageLifecycleHooks;
|
|
3888
3971
|
}
|
|
3972
|
+
|
|
3889
3973
|
//#endregion
|
|
3890
3974
|
//#region src/runtime/register/component/methods.ts
|
|
3891
3975
|
function createComponentMethods(options) {
|
|
@@ -3959,6 +4043,7 @@ function createComponentMethods(options) {
|
|
|
3959
4043
|
}
|
|
3960
4044
|
return { finalMethods };
|
|
3961
4045
|
}
|
|
4046
|
+
|
|
3962
4047
|
//#endregion
|
|
3963
4048
|
//#region src/runtime/register/component/options.ts
|
|
3964
4049
|
function cloneInstanceFieldValue(value, cache = /* @__PURE__ */ new WeakMap()) {
|
|
@@ -4127,6 +4212,7 @@ function prepareComponentOptions(mpOptions) {
|
|
|
4127
4212
|
applyExtraInstanceFields
|
|
4128
4213
|
};
|
|
4129
4214
|
}
|
|
4215
|
+
|
|
4130
4216
|
//#endregion
|
|
4131
4217
|
//#region src/runtime/register/snapshot.ts
|
|
4132
4218
|
function refreshOwnerSnapshotFromInstance(instance) {
|
|
@@ -4139,6 +4225,7 @@ function refreshOwnerSnapshotFromInstance(instance) {
|
|
|
4139
4225
|
if (propsSource && typeof propsSource === "object") for (const [key, value] of Object.entries(propsSource)) snapshot[key] = value;
|
|
4140
4226
|
updateOwnerSnapshot(ownerId, snapshot, runtime.proxy);
|
|
4141
4227
|
}
|
|
4228
|
+
|
|
4142
4229
|
//#endregion
|
|
4143
4230
|
//#region src/runtime/register/component/props.ts
|
|
4144
4231
|
function createPropsSync(options) {
|
|
@@ -4245,6 +4332,7 @@ function createPropsSync(options) {
|
|
|
4245
4332
|
finalObservers
|
|
4246
4333
|
};
|
|
4247
4334
|
}
|
|
4335
|
+
|
|
4248
4336
|
//#endregion
|
|
4249
4337
|
//#region src/runtime/layoutBridge.ts
|
|
4250
4338
|
const pageLayoutBridges = /* @__PURE__ */ new Map();
|
|
@@ -4448,6 +4536,7 @@ function useLayoutHosts(hosts) {
|
|
|
4448
4536
|
return resolveHostEntry(hosts[key]);
|
|
4449
4537
|
} });
|
|
4450
4538
|
}
|
|
4539
|
+
|
|
4451
4540
|
//#endregion
|
|
4452
4541
|
//#region src/runtime/register/component/registerDefinition.ts
|
|
4453
4542
|
function registerComponentDefinition(options) {
|
|
@@ -4623,6 +4712,7 @@ function registerComponentDefinition(options) {
|
|
|
4623
4712
|
options: finalOptions
|
|
4624
4713
|
});
|
|
4625
4714
|
}
|
|
4715
|
+
|
|
4626
4716
|
//#endregion
|
|
4627
4717
|
//#region src/runtime/register/component.ts
|
|
4628
4718
|
/**
|
|
@@ -4735,6 +4825,7 @@ function registerComponent(runtimeApp, methods, watch, setup, mpOptions) {
|
|
|
4735
4825
|
getRuntimeOwnerLabel
|
|
4736
4826
|
});
|
|
4737
4827
|
}
|
|
4828
|
+
|
|
4738
4829
|
//#endregion
|
|
4739
4830
|
//#region src/runtime/app.ts
|
|
4740
4831
|
function createApp(options) {
|
|
@@ -4805,6 +4896,7 @@ function createApp(options) {
|
|
|
4805
4896
|
}
|
|
4806
4897
|
return runtimeApp;
|
|
4807
4898
|
}
|
|
4899
|
+
|
|
4808
4900
|
//#endregion
|
|
4809
4901
|
//#region src/runtime/define/props.ts
|
|
4810
4902
|
const ALLOW_NULL_PROP_INPUT_KEY = "__wevu_allowNullPropInput";
|
|
@@ -4980,6 +5072,7 @@ function normalizeProps(baseOptions, props, explicitProperties) {
|
|
|
4980
5072
|
properties: attachInternalProps(properties)
|
|
4981
5073
|
};
|
|
4982
5074
|
}
|
|
5075
|
+
|
|
4983
5076
|
//#endregion
|
|
4984
5077
|
//#region src/runtime/define/scopedSlotOptions.ts
|
|
4985
5078
|
const AMP_RE = /&/g;
|
|
@@ -5101,6 +5194,7 @@ function createScopedSlotOptions(overrides) {
|
|
|
5101
5194
|
};
|
|
5102
5195
|
return baseOptions;
|
|
5103
5196
|
}
|
|
5197
|
+
|
|
5104
5198
|
//#endregion
|
|
5105
5199
|
//#region src/runtime/define/setupResult.ts
|
|
5106
5200
|
function isPlainObject(value) {
|
|
@@ -5189,6 +5283,7 @@ function applySetupResult(runtime, target, result) {
|
|
|
5189
5283
|
}
|
|
5190
5284
|
}
|
|
5191
5285
|
}
|
|
5286
|
+
|
|
5192
5287
|
//#endregion
|
|
5193
5288
|
//#region src/runtime/define.ts
|
|
5194
5289
|
let scopedSlotCreator;
|
|
@@ -5258,6 +5353,7 @@ function createWevuScopedSlotComponent(overrides) {
|
|
|
5258
5353
|
}
|
|
5259
5354
|
scopedSlotCreator = createWevuScopedSlotComponent;
|
|
5260
5355
|
ensureScopedSlotComponentGlobal();
|
|
5356
|
+
|
|
5261
5357
|
//#endregion
|
|
5262
5358
|
//#region src/runtime/disposables.ts
|
|
5263
5359
|
const DISPOSABLE_METHODS = [
|
|
@@ -5333,6 +5429,7 @@ function useDisposables() {
|
|
|
5333
5429
|
setInterval: bagSetInterval
|
|
5334
5430
|
};
|
|
5335
5431
|
}
|
|
5432
|
+
|
|
5336
5433
|
//#endregion
|
|
5337
5434
|
//#region src/runtime/intersectionObserver.ts
|
|
5338
5435
|
function createObserverFromInstance(instance, options) {
|
|
@@ -5372,6 +5469,7 @@ function useIntersectionObserver(options = {}) {
|
|
|
5372
5469
|
onDetached(disconnect);
|
|
5373
5470
|
return observer;
|
|
5374
5471
|
}
|
|
5472
|
+
|
|
5375
5473
|
//#endregion
|
|
5376
5474
|
//#region src/runtime/pageScroll.ts
|
|
5377
5475
|
function resolvePositiveInterval(interval) {
|
|
@@ -5476,6 +5574,7 @@ function usePageScrollThrottle(handler, options = {}) {
|
|
|
5476
5574
|
onDetached(stop);
|
|
5477
5575
|
return stop;
|
|
5478
5576
|
}
|
|
5577
|
+
|
|
5479
5578
|
//#endregion
|
|
5480
5579
|
//#region src/runtime/template.ts
|
|
5481
5580
|
const hyphenateRE = /\B([A-Z])/g;
|
|
@@ -5540,6 +5639,7 @@ function normalizeClass(value) {
|
|
|
5540
5639
|
}
|
|
5541
5640
|
return res;
|
|
5542
5641
|
}
|
|
5642
|
+
|
|
5543
5643
|
//#endregion
|
|
5544
5644
|
//#region src/runtime/updatePerformance.ts
|
|
5545
5645
|
function resolveUpdatePerformanceSetter(instance) {
|
|
@@ -5575,6 +5675,7 @@ function useUpdatePerformanceListener(listener) {
|
|
|
5575
5675
|
onDetached(stop);
|
|
5576
5676
|
return stop;
|
|
5577
5677
|
}
|
|
5678
|
+
|
|
5578
5679
|
//#endregion
|
|
5579
5680
|
//#region src/runtime/use.ts
|
|
5580
5681
|
function resolveCurrentRuntimeApp() {
|
|
@@ -5594,6 +5695,7 @@ function defineAppSetup(setup) {
|
|
|
5594
5695
|
function use(plugin, ...options) {
|
|
5595
5696
|
return resolveCurrentRuntimeApp().use(plugin, ...options);
|
|
5596
5697
|
}
|
|
5698
|
+
|
|
5597
5699
|
//#endregion
|
|
5598
5700
|
//#region src/runtime/vueCompat/context.ts
|
|
5599
5701
|
const EMPTY_SETUP_SLOTS = Object.freeze(Object.create(null));
|
|
@@ -5614,6 +5716,7 @@ function useNativeInstance() {
|
|
|
5614
5716
|
if (!(ctx === null || ctx === void 0 ? void 0 : ctx.instance)) throw new Error("useNativeInstance() 必须在 setup() 的同步阶段调用");
|
|
5615
5717
|
return ctx.instance;
|
|
5616
5718
|
}
|
|
5719
|
+
|
|
5617
5720
|
//#endregion
|
|
5618
5721
|
//#region src/runtime/vueCompat/model.ts
|
|
5619
5722
|
const EMPTY_MODEL_MODIFIERS = Object.freeze(Object.create(null));
|
|
@@ -5715,6 +5818,7 @@ function mergeModels(a, b) {
|
|
|
5715
5818
|
};
|
|
5716
5819
|
return b;
|
|
5717
5820
|
}
|
|
5821
|
+
|
|
5718
5822
|
//#endregion
|
|
5719
5823
|
//#region src/runtime/vueCompat/templateRef.ts
|
|
5720
5824
|
function ensureTemplateRefMap(target) {
|
|
@@ -5745,5 +5849,7 @@ function useTemplateRef(name) {
|
|
|
5745
5849
|
map.set(normalized, target);
|
|
5746
5850
|
return target;
|
|
5747
5851
|
}
|
|
5852
|
+
|
|
5748
5853
|
//#endregion
|
|
5749
|
-
export { onBeforeMount as $, registerApp as A, resetWevuDefaults as B, resolveLayoutBridge as C, useLayoutBridge as D, unregisterRuntimeLayoutHosts as E, resolveRuntimePageLayoutName as F, watch as G, isNoSetData as H, setPageLayout as I, watchSyncEffect as J, watchEffect as K, syncRuntimePageLayoutState as L, setRuntimeSetDataVisibility as M, teardownRuntimeInstance as N, useLayoutHosts as O, runSetupFunction as P, onActivated as Q, syncRuntimePageLayoutStateFromRuntime as R, registerRuntimeLayoutHosts as S, unregisterPageLayoutBridge as T, markNoSetData as U, setWevuDefaults as V, version as W, setDeepWatchStrategy as X, getDeepWatchStrategy as Y, callUpdateHooks as Z, createWevuScopedSlotComponent as _, useAttrs as a, onServerPrefetch as at, registerComponent as b, defineAppSetup as c, traverse as ct, normalizeClass as d, isShallowRef as dt, onBeforeUnmount as et, normalizeStyle as f, shallowRef as ft, createWevuComponent as g, useDisposables as h, useModel as i, onMounted as it, mountRuntimeInstance as j, waitForLayoutHost as k, use as l, toRef as lt, useIntersectionObserver as m, mergeModels as n, onDeactivated as nt, useNativeInstance as o, onUnmounted as ot, usePageScrollThrottle as p, triggerRef as pt, watchPostEffect as q, useBindModel as r, onErrorCaptured as rt, useSlots as s, onUpdated as st, useTemplateRef as t, onBeforeUpdate as tt, useUpdatePerformanceListener as u, toRefs as ut, defineComponent as v, resolveLayoutHost as w, registerPageLayoutBridge as x, createApp as y, usePageLayout as z };
|
|
5854
|
+
export { onBeforeMount as $, registerApp as A, resetWevuDefaults as B, resolveLayoutBridge as C, useLayoutBridge as D, unregisterRuntimeLayoutHosts as E, resolveRuntimePageLayoutName as F, watch as G, isNoSetData as H, setPageLayout as I, watchSyncEffect as J, watchEffect as K, syncRuntimePageLayoutState as L, setRuntimeSetDataVisibility as M, teardownRuntimeInstance as N, useLayoutHosts as O, runSetupFunction as P, onActivated as Q, syncRuntimePageLayoutStateFromRuntime as R, registerRuntimeLayoutHosts as S, unregisterPageLayoutBridge as T, markNoSetData as U, setWevuDefaults as V, version as W, setDeepWatchStrategy as X, getDeepWatchStrategy as Y, callUpdateHooks as Z, createWevuScopedSlotComponent as _, useAttrs as a, onServerPrefetch as at, registerComponent as b, defineAppSetup as c, traverse as ct, normalizeClass as d, isShallowRef as dt, onBeforeUnmount as et, normalizeStyle as f, shallowRef as ft, createWevuComponent as g, useDisposables as h, __reExport as ht, useModel as i, onMounted as it, mountRuntimeInstance as j, waitForLayoutHost as k, use as l, toRef as lt, useIntersectionObserver as m, __exportAll as mt, mergeModels as n, onDeactivated as nt, useNativeInstance as o, onUnmounted as ot, usePageScrollThrottle as p, triggerRef as pt, watchPostEffect as q, useBindModel as r, onErrorCaptured as rt, useSlots as s, onUpdated as st, useTemplateRef as t, onBeforeUpdate as tt, useUpdatePerformanceListener as u, toRefs as ut, defineComponent as v, resolveLayoutHost as w, registerPageLayoutBridge as x, createApp as y, usePageLayout as z };
|
|
5855
|
+
//# sourceMappingURL=src-DcTVnwpE.mjs.map
|