wevu 6.17.8 → 6.18.0
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/base-BxKbbKVO.mjs +1 -0
- package/dist/computed-Xoi9XEUx.mjs +1 -0
- package/dist/dev/{base-ii6cqKIl.mjs → base-CYkvI7w8.mjs} +2 -2
- package/dist/dev/{base-ii6cqKIl.mjs.map → base-CYkvI7w8.mjs.map} +1 -1
- package/dist/dev/computed-BxRsUJgi.mjs +128 -0
- package/dist/dev/computed-BxRsUJgi.mjs.map +1 -0
- package/dist/dev/index.mjs +9 -9
- package/dist/dev/internal-reactivity.mjs +5 -5
- package/dist/dev/internal-runtime.mjs +3 -3
- package/dist/dev/internal-template.mjs +1 -1
- package/dist/dev/{ref-Bxwe2Kfo.mjs → ref-DRZC3Kc5.mjs} +6 -202
- package/dist/dev/ref-DRZC3Kc5.mjs.map +1 -0
- package/dist/dev/{router-D6H7HviN.mjs → router-BD-ovqV2.mjs} +69 -5
- package/dist/dev/router-BD-ovqV2.mjs.map +1 -0
- package/dist/dev/router.mjs +36 -13
- package/dist/dev/router.mjs.map +1 -1
- package/dist/dev/{store-7lzhCASj.mjs → store-HNsiQJ4d.mjs} +14 -10
- package/dist/dev/store-HNsiQJ4d.mjs.map +1 -0
- package/dist/dev/store.mjs +1 -1
- package/dist/dev/{template-DLHZbQ3E.mjs → template-n_iVr0ey.mjs} +2 -2
- package/dist/dev/{template-DLHZbQ3E.mjs.map → template-n_iVr0ey.mjs.map} +1 -1
- package/dist/dev/{templateRef-C4hJDc4O.mjs → templateRef-DuFamxmB.mjs} +108 -16
- package/dist/dev/templateRef-DuFamxmB.mjs.map +1 -0
- package/dist/dev/{toRefs-BVrN7XKZ.mjs → toRefs-D06VmFK2.mjs} +2 -2
- package/dist/dev/{toRefs-BVrN7XKZ.mjs.map → toRefs-D06VmFK2.mjs.map} +1 -1
- package/dist/dev/vue-demi.mjs +9 -9
- package/dist/dev/{watch-B46crqgs.mjs → watch-jrgL5ald.mjs} +121 -4
- package/dist/dev/watch-jrgL5ald.mjs.map +1 -0
- package/dist/fetch.d.mts +0 -1
- package/dist/{index-C6Jyiw-u.d.mts → index-CCET_bCY.d.mts} +3 -4
- package/dist/{index-HS9xxiUI.d.mts → index-Dg1-jV9L.d.mts} +17 -17
- package/dist/index.d.mts +5 -4
- package/dist/index.mjs +1 -1
- package/dist/internal-reactivity.d.mts +2 -1
- package/dist/internal-reactivity.mjs +1 -1
- package/dist/internal-runtime.d.mts +1 -1
- package/dist/internal-runtime.mjs +1 -1
- package/dist/internal-template.mjs +1 -1
- package/dist/jsx-runtime.d.mts +1 -2
- package/dist/ref-D37CknuD.mjs +1 -0
- package/dist/router-DLOOLAqv.mjs +1 -0
- package/dist/router.d.mts +1 -2
- package/dist/router.mjs +1 -1
- package/dist/store-eHrHBQiv.mjs +1 -0
- package/dist/store.d.mts +1 -1
- package/dist/store.mjs +1 -1
- package/dist/{template-CFhlojaH.mjs → template-CNzlwH-E.mjs} +1 -1
- package/dist/templateRef-C4R74tUR.mjs +1 -0
- package/dist/{toRefs-COgMIEoC.mjs → toRefs-CoytPyo0.mjs} +1 -1
- package/dist/traverse-B4Ez44Gd.d.mts +108 -0
- package/dist/vue-demi.d.mts +5 -6
- package/dist/vue-demi.mjs +1 -1
- package/dist/{vue-types-xMdYZRuG.d.mts → vue-types-B3N60cGV.d.mts} +13 -121
- package/dist/watch-Bbd-gmEg.mjs +1 -0
- package/dist/{weappIntrinsicElements-BjaNcUW3.d.mts → weappIntrinsicElements-BgDtC53_.d.mts} +1 -1
- package/package.json +2 -2
- package/dist/base-D-o2Hv6z.mjs +0 -1
- package/dist/computed-DdPJb4_M.mjs +0 -1
- package/dist/dev/computed-4hT2jDra.mjs +0 -48
- package/dist/dev/computed-4hT2jDra.mjs.map +0 -1
- package/dist/dev/ref-Bxwe2Kfo.mjs.map +0 -1
- package/dist/dev/router-D6H7HviN.mjs.map +0 -1
- package/dist/dev/store-7lzhCASj.mjs.map +0 -1
- package/dist/dev/templateRef-C4hJDc4O.mjs.map +0 -1
- package/dist/dev/watch-B46crqgs.mjs.map +0 -1
- package/dist/ref-CRwjgX_d.mjs +0 -1
- package/dist/router-BiJKkvy7.mjs +0 -1
- package/dist/store-B9C0AuaO.mjs +0 -1
- package/dist/templateRef-DPHQBy6k.mjs +0 -1
- package/dist/watch-6_s3_f8q.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as isReactive, n as isRef, t as customRef } from "./ref-
|
|
1
|
+
import { l as isReactive, n as isRef, t as customRef } from "./ref-DRZC3Kc5.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/reactivity/toRefs.ts
|
|
4
4
|
function toRef(object, key, defaultValue) {
|
|
@@ -39,4 +39,4 @@ function toRefs(object) {
|
|
|
39
39
|
|
|
40
40
|
//#endregion
|
|
41
41
|
export { toRefs as n, toRef as t };
|
|
42
|
-
//# sourceMappingURL=toRefs-
|
|
42
|
+
//# sourceMappingURL=toRefs-D06VmFK2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toRefs-
|
|
1
|
+
{"version":3,"file":"toRefs-D06VmFK2.mjs","names":[],"sources":["../../src/reactivity/toRefs.ts"],"sourcesContent":["import type { Ref } from './ref'\nimport { isReactive } from './reactive'\nimport { customRef, isRef } from './ref'\n\n/**\n * 为源响应式对象的单个属性创建 ref,可读可写并与原属性保持同步。\n *\n * @param object 源响应式对象\n * @param key 属性名\n * @returns 指向该属性的 ref\n *\n * @example\n * ```ts\n * const state = reactive({ foo: 1 })\n * const fooRef = toRef(state, 'foo')\n *\n * fooRef.value++\n * console.log(state.foo) // 2\n * ```\n */\nexport function toRef<T extends object, K extends keyof T>(\n object: T,\n key: K,\n): ToRef<T[K]>\nexport function toRef<T extends object, K extends keyof T>(\n object: T,\n key: K,\n defaultValue: T[K],\n): ToRef<T[K]>\nexport function toRef<T extends object, K extends keyof T>(\n object: T,\n key: K,\n defaultValue?: T[K],\n): ToRef<T[K]> {\n const value = object[key]\n\n if (isRef(value)) {\n return value as ToRef<T[K]>\n }\n\n return customRef<T[K]>((track, trigger) => ({\n get() {\n track()\n return object[key]\n },\n set(newValue) {\n ;(object as any)[key] = newValue\n trigger()\n },\n }), defaultValue) as ToRef<T[K]>\n}\n\n/**\n * 将一个响应式对象转换成“同结构的普通对象”,其中每个字段都是指向原对象对应属性的 ref。\n *\n * @param object 待转换的响应式对象\n * @returns 包含若干 ref 的普通对象\n *\n * @example\n * ```ts\n * const state = reactive({ foo: 1, bar: 2 })\n * const stateAsRefs = toRefs(state)\n *\n * stateAsRefs.foo.value++ // 2\n * state.foo // 2\n * ```\n */\nexport function toRefs<T extends object>(object: T): ToRefs<T> {\n if (!isReactive(object)) {\n // eslint-disable-next-line no-console -- 保持与 Vue 类似的非响应式输入警告\n console.warn('toRefs() 需要响应式对象,但收到的是普通对象。')\n }\n\n const result: any = Array.isArray(object) ? Array.from({ length: object.length }) : {}\n\n for (const key in object) {\n result[key] = toRef(object, key)\n }\n\n return result\n}\n\n/**\n * toRefs 返回值的类型辅助\n */\ntype ToRef<T> = T extends Ref<any> ? T : Ref<T>\n\nexport type ToRefs<T extends object> = {\n [K in keyof T]: ToRef<T[K]>\n}\n"],"mappings":";;;AA6BA,SAAgB,MACd,QACA,KACA,cACa;CACb,MAAM,QAAQ,OAAO;CAErB,IAAI,MAAM,KAAK,GACb,OAAO;CAGT,OAAO,WAAiB,OAAO,aAAa;EAC1C,MAAM;GACJ,MAAM;GACN,OAAO,OAAO;EAChB;EACA,IAAI,UAAU;GACX,AAAC,OAAe,OAAO;GACxB,QAAQ;EACV;CACF,IAAI,YAAY;AAClB;;;;;;;;;;;;;;;;AAiBA,SAAgB,OAAyB,QAAsB;CAC7D,IAAI,CAAC,WAAW,MAAM,GAEpB,QAAQ,KAAK,6BAA6B;CAG5C,MAAM,SAAc,MAAM,QAAQ,MAAM,IAAI,MAAM,KAAK,EAAE,QAAQ,OAAO,OAAO,CAAC,IAAI,CAAC;CAErF,KAAK,MAAM,OAAO,QAChB,OAAO,OAAO,MAAM,QAAQ,GAAG;CAGjC,OAAO;AACT"}
|
package/dist/dev/vue-demi.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as __reExport, t as __exportAll } from "./rolldown-runtime-BUUfjzRC.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as toRefs, t as toRef } from "./toRefs-
|
|
7
|
-
import { $ as
|
|
8
|
-
import { $ as version, A as registerPageLayoutBridge, B as mountRuntimeInstance, C as useElementIntersectionObserver, D as defineComponent, E as createWevuScopedSlotComponent, F as unregisterRuntimeLayoutHosts, G as setPageLayout, H as teardownRuntimeInstance, I as useLayoutBridge, J as usePageLayout, K as syncRuntimePageLayoutState, L as useLayoutHosts, M as resolveLayoutBridge, N as resolveLayoutHost, O as createApp, P as unregisterPageLayoutBridge, Q as markNoSetData, R as waitForLayoutHost, S as useIntersectionObserver, T as createWevuComponent, U as runSetupFunction, V as setRuntimeSetDataVisibility, W as resolveRuntimePageLayoutName, X as setWevuDefaults, Y as resetWevuDefaults, Z as isNoSetData, _ as usePageScrollThrottle, a as useModel, at as onDeactivated, b as useNavigationBarMetrics, c as useSlots, ct as onServerPrefetch, d as useUpdatePerformanceListener, et as callUpdateHooks, f as useBoundingClientRect, g as useAsyncPullDownRefresh, h as useSelectorQuery, i as useChangeModel, it as onBeforeUpdate, j as registerRuntimeLayoutHosts, k as registerComponent, l as defineAppSetup, lt as onUnmounted, m as useSelectorFields, n as mergeModels, nt as onBeforeMount, o as useAttrs, ot as onErrorCaptured, p as useScrollOffset, q as syncRuntimePageLayoutStateFromRuntime, r as useBindModel, rt as onBeforeUnmount, s as useNativeInstance, st as onMounted, t as useTemplateRef, tt as onActivated, u as use, ut as onUpdated, v as getCurrentPageStackSnapshot, w as useDisposables, x as usePageStack, y as getNavigationBarMetrics, z as registerApp } from "./templateRef-
|
|
9
|
-
import { n as normalizeStyle, r as resolvePropValue, t as normalizeClass } from "./template-
|
|
10
|
-
import { n as defineStore, r as createStore, t as storeToRefs } from "./store-
|
|
2
|
+
import { a as getDeepWatchStrategy, c as isShallowRef, d as isShallowReactive, f as shallowReactive, i as watchSyncEffect, l as shallowRef, n as watchEffect, o as setDeepWatchStrategy, p as nextTick, r as watchPostEffect, s as traverse, t as watch, u as triggerRef } from "./watch-jrgL5ald.mjs";
|
|
3
|
+
import { A as removeMutationRecorder, F as getCurrentScope, I as onScopeDispose, L as startBatch, M as effect, N as effectScope, P as endBatch, R as stop, a as toValue, c as isRaw, d as reactive, i as ref, j as batch, k as addMutationRecorder, l as isReactive, n as isRef, o as unref, s as getReactiveVersion, t as customRef, u as markRaw, v as toRaw } from "./ref-DRZC3Kc5.mjs";
|
|
4
|
+
import { i as touchReactive, r as prelinkReactiveTree, t as computed } from "./computed-BxRsUJgi.mjs";
|
|
5
|
+
import { S as shallowReadonly, b as isReadonly, c as getCurrentSetupContext, d as setCurrentSetupContext, n as callHookList, r as callHookReturn, s as getCurrentInstance, u as setCurrentInstance, x as readonly, y as isProxy } from "./base-CYkvI7w8.mjs";
|
|
6
|
+
import { n as toRefs, t as toRef } from "./toRefs-D06VmFK2.mjs";
|
|
7
|
+
import { $ as onShow, B as onLoad, F as onAttached, G as onPullDownRefresh, H as onMoved, I as onDetached, J as onResize, K as onReachBottom, L as onError, N as setGlobalProvidedValue, P as onAddToFavorites, Q as onShareTimeline, R as onHide, U as onPageNotFound, V as onMemoryWarning, W as onPageScroll, X as onSaveExitState, Y as onRouteDone, Z as onShareAppMessage, _ as hasInjectionContext, b as provide, et as onTabItemTap, n as useNativeRouter, nt as onUnhandledRejection, q as onReady, rt as onUnload, t as useNativePageRouter, tt as onThemeChange, v as inject, x as provideGlobal, y as injectGlobal, z as onLaunch } from "./router-BD-ovqV2.mjs";
|
|
8
|
+
import { $ as version, A as registerPageLayoutBridge, B as mountRuntimeInstance, C as useElementIntersectionObserver, D as defineComponent, E as createWevuScopedSlotComponent, F as unregisterRuntimeLayoutHosts, G as setPageLayout, H as teardownRuntimeInstance, I as useLayoutBridge, J as usePageLayout, K as syncRuntimePageLayoutState, L as useLayoutHosts, M as resolveLayoutBridge, N as resolveLayoutHost, O as createApp, P as unregisterPageLayoutBridge, Q as markNoSetData, R as waitForLayoutHost, S as useIntersectionObserver, T as createWevuComponent, U as runSetupFunction, V as setRuntimeSetDataVisibility, W as resolveRuntimePageLayoutName, X as setWevuDefaults, Y as resetWevuDefaults, Z as isNoSetData, _ as usePageScrollThrottle, a as useModel, at as onDeactivated, b as useNavigationBarMetrics, c as useSlots, ct as onServerPrefetch, d as useUpdatePerformanceListener, et as callUpdateHooks, f as useBoundingClientRect, g as useAsyncPullDownRefresh, h as useSelectorQuery, i as useChangeModel, it as onBeforeUpdate, j as registerRuntimeLayoutHosts, k as registerComponent, l as defineAppSetup, lt as onUnmounted, m as useSelectorFields, n as mergeModels, nt as onBeforeMount, o as useAttrs, ot as onErrorCaptured, p as useScrollOffset, q as syncRuntimePageLayoutStateFromRuntime, r as useBindModel, rt as onBeforeUnmount, s as useNativeInstance, st as onMounted, t as useTemplateRef, tt as onActivated, u as use, ut as onUpdated, v as getCurrentPageStackSnapshot, w as useDisposables, x as usePageStack, y as getNavigationBarMetrics, z as registerApp } from "./templateRef-DuFamxmB.mjs";
|
|
9
|
+
import { n as normalizeStyle, r as resolvePropValue, t as normalizeClass } from "./template-n_iVr0ey.mjs";
|
|
10
|
+
import { n as defineStore, r as createStore, t as storeToRefs } from "./store-HNsiQJ4d.mjs";
|
|
11
11
|
import "./index.mjs";
|
|
12
12
|
|
|
13
13
|
export * from "@wevu/web-apis"
|
|
@@ -1,6 +1,123 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { B as trigger, E as rawVersionMap, I as onScopeDispose, M as effect, R as stop, V as triggerEffects, _ as isObject, f as rawMap, g as hasOwn, h as getTargetType, l as isReactive, m as VERSION_KEY, n as isRef, p as shallowReactiveMap, t as customRef, v as toRaw, y as bumpRawVersion, z as track } from "./ref-DRZC3Kc5.mjs";
|
|
2
|
+
import { i as touchReactive } from "./computed-BxRsUJgi.mjs";
|
|
3
|
+
import { s as getCurrentInstance, u as setCurrentInstance } from "./base-CYkvI7w8.mjs";
|
|
3
4
|
|
|
5
|
+
//#region src/scheduler.ts
|
|
6
|
+
const resolvedPromise = Promise.resolve();
|
|
7
|
+
const jobQueue = /* @__PURE__ */ new Set();
|
|
8
|
+
const deferredJobQueue = /* @__PURE__ */ new Set();
|
|
9
|
+
let isFlushing = false;
|
|
10
|
+
let isFlushPending = false;
|
|
11
|
+
let flushedJobs;
|
|
12
|
+
function flushJobs() {
|
|
13
|
+
isFlushPending = false;
|
|
14
|
+
isFlushing = true;
|
|
15
|
+
flushedJobs = /* @__PURE__ */ new Set();
|
|
16
|
+
try {
|
|
17
|
+
jobQueue.forEach((job) => {
|
|
18
|
+
flushedJobs === null || flushedJobs === void 0 || flushedJobs.add(job);
|
|
19
|
+
job();
|
|
20
|
+
});
|
|
21
|
+
} finally {
|
|
22
|
+
jobQueue.clear();
|
|
23
|
+
flushedJobs = void 0;
|
|
24
|
+
isFlushing = false;
|
|
25
|
+
if (deferredJobQueue.size) {
|
|
26
|
+
deferredJobQueue.forEach((job) => jobQueue.add(job));
|
|
27
|
+
deferredJobQueue.clear();
|
|
28
|
+
if (!isFlushPending) {
|
|
29
|
+
isFlushPending = true;
|
|
30
|
+
resolvedPromise.then(flushJobs);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function queueJob(job) {
|
|
36
|
+
if (isFlushing && (flushedJobs === null || flushedJobs === void 0 ? void 0 : flushedJobs.has(job))) {
|
|
37
|
+
deferredJobQueue.add(job);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
jobQueue.add(job);
|
|
41
|
+
if (!isFlushing && !isFlushPending) {
|
|
42
|
+
isFlushPending = true;
|
|
43
|
+
resolvedPromise.then(flushJobs);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function nextTick(fn) {
|
|
47
|
+
return fn ? resolvedPromise.then(fn) : resolvedPromise;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/reactivity/reactive/shallow.ts
|
|
52
|
+
const shallowHandlers = {
|
|
53
|
+
get(target, key, receiver) {
|
|
54
|
+
if (key === "__r_isReactive") return true;
|
|
55
|
+
if (key === "__r_raw") return target;
|
|
56
|
+
const res = Reflect.get(target, key, receiver);
|
|
57
|
+
track(target, key);
|
|
58
|
+
return res;
|
|
59
|
+
},
|
|
60
|
+
set(target, key, value, receiver) {
|
|
61
|
+
const oldValue = Reflect.get(target, key, receiver);
|
|
62
|
+
const result = Reflect.set(target, key, value, receiver);
|
|
63
|
+
if (!Object.is(oldValue, value)) {
|
|
64
|
+
trigger(target, key);
|
|
65
|
+
trigger(target, VERSION_KEY);
|
|
66
|
+
bumpRawVersion(target);
|
|
67
|
+
}
|
|
68
|
+
return result;
|
|
69
|
+
},
|
|
70
|
+
deleteProperty(target, key) {
|
|
71
|
+
const hadKey = hasOwn(target, key);
|
|
72
|
+
const result = Reflect.deleteProperty(target, key);
|
|
73
|
+
if (hadKey && result) {
|
|
74
|
+
trigger(target, key);
|
|
75
|
+
trigger(target, VERSION_KEY);
|
|
76
|
+
bumpRawVersion(target);
|
|
77
|
+
}
|
|
78
|
+
return result;
|
|
79
|
+
},
|
|
80
|
+
ownKeys(target) {
|
|
81
|
+
track(target, Symbol.iterator);
|
|
82
|
+
track(target, VERSION_KEY);
|
|
83
|
+
return Reflect.ownKeys(target);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* 创建一个浅层响应式代理:仅跟踪第一层属性变更,不深度递归嵌套对象。
|
|
88
|
+
*
|
|
89
|
+
* @param target 待转换的对象
|
|
90
|
+
* @returns 浅层响应式代理
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```ts
|
|
94
|
+
* const state = shallowReactive({ nested: { count: 0 } })
|
|
95
|
+
*
|
|
96
|
+
* state.nested.count++ // 不会触发 effect(嵌套对象未深度代理)
|
|
97
|
+
* state.nested = { count: 1 } // 会触发 effect(顶层属性变更)
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
function shallowReactive(target) {
|
|
101
|
+
if (!isObject(target)) return target;
|
|
102
|
+
if (target["__r_isReactive"]) return target;
|
|
103
|
+
const existingProxy = shallowReactiveMap.get(target);
|
|
104
|
+
if (existingProxy) return existingProxy;
|
|
105
|
+
if (getTargetType(target) === 0) return target;
|
|
106
|
+
const proxy = new Proxy(target, shallowHandlers);
|
|
107
|
+
shallowReactiveMap.set(target, proxy);
|
|
108
|
+
rawMap.set(proxy, target);
|
|
109
|
+
if (!rawVersionMap.has(target)) rawVersionMap.set(target, 0);
|
|
110
|
+
return proxy;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* 判断一个值是否为 shallowReactive 创建的浅层响应式对象
|
|
114
|
+
*/
|
|
115
|
+
function isShallowReactive(value) {
|
|
116
|
+
const raw = toRaw(value);
|
|
117
|
+
return shallowReactiveMap.has(raw);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
//#endregion
|
|
4
121
|
//#region src/reactivity/shallowRef.ts
|
|
5
122
|
/**
|
|
6
123
|
* 创建一个“浅层” ref:它只在 .value 被整体替换时触发依赖,不会对内部对象做深层响应式处理。
|
|
@@ -324,5 +441,5 @@ function watchSyncEffect(effectFn, options = {}) {
|
|
|
324
441
|
}
|
|
325
442
|
|
|
326
443
|
//#endregion
|
|
327
|
-
export { getDeepWatchStrategy as a, isShallowRef as c, watchSyncEffect as i, shallowRef as l, watchEffect as n, setDeepWatchStrategy as o, watchPostEffect as r, traverse as s, watch as t, triggerRef as u };
|
|
328
|
-
//# sourceMappingURL=watch-
|
|
444
|
+
export { getDeepWatchStrategy as a, isShallowRef as c, isShallowReactive as d, shallowReactive as f, watchSyncEffect as i, shallowRef as l, queueJob as m, watchEffect as n, setDeepWatchStrategy as o, nextTick as p, watchPostEffect as r, traverse as s, watch as t, triggerRef as u };
|
|
445
|
+
//# sourceMappingURL=watch-jrgL5ald.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watch-jrgL5ald.mjs","names":[],"sources":["../../src/scheduler.ts","../../src/reactivity/reactive/shallow.ts","../../src/reactivity/shallowRef.ts","../../src/reactivity/traverse.ts","../../src/reactivity/watch/types.ts","../../src/reactivity/watch/helpers.ts","../../src/reactivity/watch.ts"],"sourcesContent":["const resolvedPromise: Promise<void> = Promise.resolve()\n\ntype Job = () => void\n\nconst jobQueue = new Set<Job>()\nconst deferredJobQueue = new Set<Job>()\nlet isFlushing = false\nlet isFlushPending = false\nlet flushedJobs: Set<Job> | undefined\n\nfunction flushJobs() {\n isFlushPending = false\n isFlushing = true\n flushedJobs = new Set()\n try {\n jobQueue.forEach((job) => {\n flushedJobs?.add(job)\n job()\n })\n }\n finally {\n jobQueue.clear()\n flushedJobs = undefined\n isFlushing = false\n if (deferredJobQueue.size) {\n deferredJobQueue.forEach(job => jobQueue.add(job))\n deferredJobQueue.clear()\n if (!isFlushPending) {\n isFlushPending = true\n resolvedPromise.then(flushJobs)\n }\n }\n }\n}\n\nexport function queueJob(job: Job) {\n if (isFlushing && flushedJobs?.has(job)) {\n deferredJobQueue.add(job)\n return\n }\n jobQueue.add(job)\n if (!isFlushing && !isFlushPending) {\n isFlushPending = true\n resolvedPromise.then(flushJobs)\n }\n}\n\nexport function nextTick<T>(fn?: () => T): Promise<T> {\n return fn ? resolvedPromise.then(fn) : (resolvedPromise as unknown as Promise<T>)\n}\n","import { track, trigger } from '../core'\nimport { bumpRawVersion, rawVersionMap } from './patchState'\nimport { getTargetType, hasOwn, isObject, ReactiveFlags, TargetType, toRaw, VERSION_KEY } from './shared'\nimport { rawMap, shallowReactiveMap } from './state'\n\nconst shallowHandlers: ProxyHandler<any> = {\n get(target, key, receiver) {\n if (key === ReactiveFlags.IS_REACTIVE) {\n return true\n }\n if (key === ReactiveFlags.RAW) {\n return target\n }\n const res = Reflect.get(target, key, receiver)\n track(target, key)\n // 浅层模式:不对嵌套对象做自动响应式转换\n return res\n },\n set(target, key, value, receiver) {\n const oldValue = Reflect.get(target, key, receiver)\n const result = Reflect.set(target, key, value, receiver)\n if (!Object.is(oldValue, value)) {\n trigger(target, key)\n // 浅层同样维护通用版本号\n trigger(target, VERSION_KEY)\n bumpRawVersion(target)\n }\n return result\n },\n deleteProperty(target, key) {\n const hadKey = hasOwn(target, key)\n const result = Reflect.deleteProperty(target, key)\n if (hadKey && result) {\n trigger(target, key)\n // 删除时也同步通用版本号\n trigger(target, VERSION_KEY)\n bumpRawVersion(target)\n }\n return result\n },\n ownKeys(target) {\n track(target, Symbol.iterator)\n // 遍历时订阅通用版本号\n track(target, VERSION_KEY)\n return Reflect.ownKeys(target)\n },\n}\n\n/**\n * 创建一个浅层响应式代理:仅跟踪第一层属性变更,不深度递归嵌套对象。\n *\n * @param target 待转换的对象\n * @returns 浅层响应式代理\n *\n * @example\n * ```ts\n * const state = shallowReactive({ nested: { count: 0 } })\n *\n * state.nested.count++ // 不会触发 effect(嵌套对象未深度代理)\n * state.nested = { count: 1 } // 会触发 effect(顶层属性变更)\n * ```\n */\nexport function shallowReactive<T extends object>(target: T): T {\n if (!isObject(target)) {\n return target\n }\n if ((target as any)[ReactiveFlags.IS_REACTIVE]) {\n return target\n }\n const existingProxy = shallowReactiveMap.get(target)\n if (existingProxy) {\n return existingProxy\n }\n if (getTargetType(target) === TargetType.INVALID) {\n return target\n }\n const proxy = new Proxy(target, shallowHandlers)\n shallowReactiveMap.set(target, proxy)\n rawMap.set(proxy, target)\n if (!rawVersionMap.has(target)) {\n rawVersionMap.set(target, 0)\n }\n // 浅层响应式不初始化根映射,避免误导深度版本追踪\n return proxy\n}\n\n/**\n * 判断一个值是否为 shallowReactive 创建的浅层响应式对象\n */\nexport function isShallowReactive(value: unknown): boolean {\n const raw = toRaw(value as any)\n return shallowReactiveMap.has(raw)\n}\n","import type { Ref } from './ref'\nimport { triggerEffects } from './core'\nimport { customRef, isRef } from './ref'\n\nexport function shallowRef<T>(value: T): Ref<T>\nexport function shallowRef<T>(value: T, defaultValue: T): Ref<T>\n/**\n * 创建一个“浅层” ref:它只在 .value 被整体替换时触发依赖,不会对内部对象做深层响应式处理。\n *\n * @param value 初始值\n * @param defaultValue 传递给 customRef 的默认值,可用于兜底\n * @returns 仅跟踪自身 .value 变更的浅层 ref\n *\n * @example\n * ```ts\n * const state = shallowRef({ count: 0 })\n * state.value = { count: 1 } // 会触发依赖\n * state.value.count++ // 不会触发依赖(内部属性未被深度代理)\n * ```\n */\nexport function shallowRef<T>(value: T, defaultValue?: T): Ref<T> {\n return customRef<T>(\n (track, trigger) => ({\n get() {\n track()\n return value\n },\n set(newValue: T) {\n if (Object.is(value, newValue)) {\n return\n }\n value = newValue\n trigger()\n },\n }),\n defaultValue,\n ) as Ref<T>\n}\n\n/**\n * 判断传入值是否为浅层 ref。\n *\n * @param r 待判断的值\n * @returns 若为浅层 ref 则返回 true\n */\nexport function isShallowRef(r: any): r is Ref<any> {\n // 目前凡是用 customRef 创建的 ref 都视为“浅层”,因为不会递归包装内部属性\n return isRef(r) && typeof r.value !== 'function'\n}\n\n/**\n * 主动触发一次浅层 ref 的更新(无需深度比较)。\n *\n * @param ref 需要触发的 ref\n */\nexport function triggerRef<T>(ref: Ref<T>) {\n // 若未来有专用 trigger 机制可替换,此处作为兼容 API 的占位实现\n if (isRef(ref)) {\n const dep = (ref as any).dep\n if (dep) {\n triggerEffects(dep)\n return\n }\n // 通过重新赋值自身触发依赖\n const value = ref.value\n ref.value = value\n }\n}\n","import { isObject, isReactive, toRaw } from './reactive'\nimport { ReactiveFlags } from './reactive/shared'\nimport { isRef } from './ref'\n\n/**\n * 深度遍历工具(框架内部依赖收集使用)。\n * @internal\n */\nexport function traverse(value: any, depth: number = Infinity, seen = new Map<object, number>()): any {\n if (depth <= 0 || !isObject(value)) {\n return value\n }\n if (isRef(value)) {\n traverse(value.value, depth - 1, seen)\n return value\n }\n if ((value as any)[ReactiveFlags.SKIP]) {\n return value\n }\n const existingDepth = seen.get(value)\n if (existingDepth !== undefined && existingDepth >= depth) {\n return value\n }\n seen.set(value, depth)\n const nextDepth = depth - 1\n if (Array.isArray(value)) {\n value.forEach(item => traverse(item, nextDepth, seen))\n return value\n }\n if (value instanceof Map) {\n value.forEach(item => traverse(item, nextDepth, seen))\n return value\n }\n if (value instanceof Set) {\n value.forEach(item => traverse(item, nextDepth, seen))\n return value\n }\n const target = isReactive(value) && depth !== Infinity ? toRaw(value) : value\n for (const key in target as any) {\n traverse((value as any)[key], nextDepth, seen)\n }\n return value\n}\n","import type { ComputedRef } from '../computed'\nimport type { Ref } from '../ref'\n\nexport type OnCleanup = (cleanupFn: () => void) => void\nexport type WatchEffect = (onCleanup: OnCleanup) => void\nexport type WatchSource<T = any> = Ref<T> | ComputedRef<T> | (() => T)\nexport type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onCleanup: OnCleanup) => void\nexport type WatchScheduler = (job: () => void, isFirstRun: boolean) => void\nexport type MaybeUndefined<T, Immediate> = Immediate extends true ? T | undefined : T\nexport type MultiWatchSources = (WatchSource<unknown> | object)[]\nexport type MapSources<T, Immediate> = {\n [K in keyof T]: T[K] extends WatchSource<infer V>\n ? MaybeUndefined<V, Immediate>\n : T[K] extends object\n ? MaybeUndefined<T[K], Immediate>\n : never\n}\nexport type WatchSourceValue<S> = S extends WatchSource<infer V>\n ? V\n : S extends object\n ? S\n : never\nexport type WatchSources<T = any>\n = | WatchSource<T>\n | ReadonlyArray<WatchSource<unknown> | object>\n | (T extends object ? T : never)\ntype IsTuple<T extends ReadonlyArray<any>> = number extends T['length'] ? false : true\nexport type WatchMultiSources<T extends ReadonlyArray<WatchSource<unknown> | object>> = IsTuple<T> extends true\n ? { [K in keyof T]: WatchSourceValue<T[K]> }\n : Array<WatchSourceValue<T[number]>>\n\nexport interface WatchEffectOptions {\n flush?: 'pre' | 'post' | 'sync'\n}\n\nexport interface WatchOptions<Immediate extends boolean = false> extends WatchEffectOptions {\n immediate?: Immediate\n deep?: boolean | number\n once?: boolean\n scheduler?: WatchScheduler\n}\n\nexport interface WatchStopHandle {\n (): void\n stop: () => void\n pause: () => void\n resume: () => void\n}\n\nexport type DeepWatchStrategy = 'version' | 'traverse'\n\nlet __deepWatchStrategy: DeepWatchStrategy = 'version'\n\n/**\n * 设置深度 watch 内部策略(测试/框架内部使用)。\n * @internal\n */\nexport function setDeepWatchStrategy(strategy: DeepWatchStrategy) {\n __deepWatchStrategy = strategy\n}\n\n/**\n * 获取深度 watch 内部策略(测试/框架内部使用)。\n * @internal\n */\nexport function getDeepWatchStrategy(): DeepWatchStrategy {\n return __deepWatchStrategy\n}\n","import type { Ref } from '../ref'\nimport type { WatchScheduler, WatchSource, WatchSources } from './types'\nimport { nextTick } from '../../scheduler'\nimport { queueJob } from '../core'\nimport { isReactive, touchReactive } from '../reactive'\nimport { isRef } from '../ref'\nimport { traverse } from '../traverse'\nimport { getDeepWatchStrategy } from './types'\n\ninterface WatchGetterContext {\n getter: () => any\n isMultiSource: boolean\n isReactiveSource: boolean\n}\n\nfunction resolveWatchSource(item: WatchSource<any> | object) {\n if (typeof item === 'function') {\n return (item as () => any)()\n }\n if (isRef(item)) {\n return (item as Ref<any>).value\n }\n if (isReactive(item)) {\n return item\n }\n throw new Error('无效的 watch 源')\n}\n\nexport function createWatchGetter(source: WatchSources<any>): WatchGetterContext {\n const isReactiveSource = isReactive(source)\n const isMultiSource = Array.isArray(source) && !isReactiveSource\n let getter: () => any\n\n if (isMultiSource) {\n const sources = source as ReadonlyArray<WatchSource<any> | object>\n getter = () => sources.map(item => resolveWatchSource(item))\n }\n else if (typeof source === 'function') {\n getter = source as () => any\n }\n else if (isRef(source)) {\n getter = () => (source as Ref<any>).value\n }\n else if (isReactiveSource) {\n getter = () => source as any\n }\n else {\n throw new Error('无效的 watch 源')\n }\n\n return {\n getter,\n isMultiSource,\n isReactiveSource,\n }\n}\n\nexport function applyDeepWatchGetter(\n getter: () => any,\n source: WatchSources<any>,\n isMultiSource: boolean,\n isReactiveSource: boolean,\n deepOption: boolean | number | undefined,\n) {\n const deepDefault = isMultiSource\n ? (source as ReadonlyArray<WatchSource<any> | object>).some(item => isReactive(item))\n : isReactiveSource\n const deep = deepOption ?? deepDefault\n const shouldDeep = deep === true || typeof deep === 'number'\n if (!shouldDeep) {\n return getter\n }\n const depth = typeof deep === 'number' ? deep : (deep ? Infinity : 0)\n return () => {\n const value = getter()\n const strategy = getDeepWatchStrategy()\n if (isMultiSource && Array.isArray(value)) {\n return value.map((item) => {\n if (strategy === 'version' && isReactive(item)) {\n touchReactive(item as any)\n return item\n }\n return traverse(item, depth)\n })\n }\n if (strategy === 'version' && isReactive(value)) {\n touchReactive(value as any)\n return value\n }\n return traverse(value, depth)\n }\n}\n\nexport function dispatchScheduledJob(\n job: () => void,\n flush: 'pre' | 'post' | 'sync',\n isFirstRun: boolean,\n scheduler?: WatchScheduler,\n) {\n if (scheduler) {\n scheduler(job, isFirstRun)\n return\n }\n if (flush === 'sync') {\n job()\n return\n }\n if (flush === 'post') {\n nextTick(() => queueJob(job))\n return\n }\n if (isFirstRun) {\n job()\n }\n else {\n queueJob(job)\n }\n}\n","import type { ReactiveEffect } from './core'\nimport type {\n MapSources,\n MaybeUndefined,\n MultiWatchSources,\n OnCleanup,\n WatchCallback,\n WatchEffect,\n WatchEffectOptions,\n WatchOptions,\n WatchSource,\n WatchSources,\n WatchStopHandle,\n} from './watch/types'\nimport { getCurrentInstance, setCurrentInstance } from '../runtime/hooks'\nimport { effect, onScopeDispose, stop } from './core'\nimport { applyDeepWatchGetter, createWatchGetter, dispatchScheduledJob } from './watch/helpers'\n\nexport type {\n DeepWatchStrategy,\n MapSources,\n MaybeUndefined,\n MultiWatchSources,\n OnCleanup,\n WatchCallback,\n WatchEffect,\n WatchEffectOptions,\n WatchMultiSources,\n WatchOptions,\n WatchScheduler,\n WatchSource,\n WatchSources,\n WatchSourceValue,\n WatchStopHandle,\n} from './watch/types'\nexport { getDeepWatchStrategy, setDeepWatchStrategy } from './watch/types'\n\nexport function watch<T, Immediate extends Readonly<boolean> = false>(\n source: WatchSource<T>,\n cb: WatchCallback<T, MaybeUndefined<T, Immediate>>,\n options?: WatchOptions<Immediate>,\n): WatchStopHandle\nexport function watch<T extends object, Immediate extends Readonly<boolean> = false>(\n source: T extends ReadonlyArray<any> ? never : T,\n cb: WatchCallback<T, MaybeUndefined<T, Immediate>>,\n options?: WatchOptions<Immediate>,\n): WatchStopHandle\nexport function watch<T extends Readonly<MultiWatchSources>, Immediate extends Readonly<boolean> = false>(\n source: readonly [...T] | T,\n cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>,\n options?: WatchOptions<Immediate>,\n): WatchStopHandle\nexport function watch<T extends MultiWatchSources, Immediate extends Readonly<boolean> = false>(\n source: [...T],\n cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>,\n options?: WatchOptions<Immediate>,\n): WatchStopHandle\nexport function watch(\n source: WatchSources<any>,\n cb: WatchCallback,\n options: WatchOptions = {},\n): WatchStopHandle {\n const ownerInstance = getCurrentInstance()\n const watchGetterContext = createWatchGetter(source)\n const getter = applyDeepWatchGetter(\n watchGetterContext.getter,\n source,\n watchGetterContext.isMultiSource,\n watchGetterContext.isReactiveSource,\n options.deep,\n )\n\n let cleanup: (() => void) | undefined\n const onCleanup: OnCleanup = (fn) => {\n cleanup = fn\n }\n\n let oldValue: any\n let runner: ReactiveEffect<any>\n let paused = false\n let pauseToken = 0\n let scheduledToken = pauseToken\n let stopHandle: WatchStopHandle\n const cbWithOnce: WatchCallback = options.once\n ? (value, oldVal, cleanupRegister) => {\n cb(value, oldVal, cleanupRegister)\n stopHandle()\n }\n : cb\n const flush = options.flush ?? 'pre'\n\n const runJob = (token: number) => {\n if (!runner.active || paused || token !== pauseToken) {\n return\n }\n const newValue = runner()\n cleanup?.()\n const previousInstance = getCurrentInstance()\n setCurrentInstance(ownerInstance)\n try {\n cbWithOnce(newValue, oldValue, onCleanup)\n }\n finally {\n setCurrentInstance(previousInstance)\n }\n oldValue = newValue\n }\n const scheduledJob = () => runJob(scheduledToken)\n\n const scheduleJob = (isFirstRun: boolean) => {\n scheduledToken = pauseToken\n dispatchScheduledJob(scheduledJob, flush, isFirstRun, options.scheduler)\n }\n\n runner = effect(() => getter(), {\n scheduler: () => {\n if (paused) {\n return\n }\n scheduleJob(false)\n },\n lazy: true,\n })\n\n const doStop = () => {\n cleanup?.()\n cleanup = undefined\n stop(runner)\n }\n stopHandle = doStop as WatchStopHandle\n stopHandle.stop = doStop\n stopHandle.pause = () => {\n if (!paused) {\n paused = true\n pauseToken += 1\n }\n }\n stopHandle.resume = () => {\n if (!paused || !runner.active) {\n return\n }\n paused = false\n oldValue = runner()\n }\n\n if (options.immediate) {\n runJob(pauseToken)\n }\n else {\n oldValue = runner()\n }\n onScopeDispose(stopHandle)\n return stopHandle\n}\n\n/**\n * watchEffect 注册一个响应式副作用,可选清理函数。\n * 副作用会立即执行,并在依赖变化时重新运行。\n */\nexport function watchEffect(\n effectFn: WatchEffect,\n options: WatchEffectOptions = {},\n): WatchStopHandle {\n const ownerInstance = getCurrentInstance()\n let cleanup: (() => void) | undefined\n const onCleanup: OnCleanup = (fn) => {\n cleanup = fn\n }\n let runner: ReactiveEffect\n let paused = false\n let pauseToken = 0\n let scheduledToken = pauseToken\n const flush = options.flush ?? 'pre'\n\n const runJob = (token: number) => {\n if (!runner.active || paused || token !== pauseToken) {\n return\n }\n runner()\n }\n const scheduledJob = () => runJob(scheduledToken)\n\n const scheduleJob = (isFirstRun: boolean) => {\n scheduledToken = pauseToken\n dispatchScheduledJob(scheduledJob, flush, isFirstRun)\n }\n\n runner = effect(\n () => {\n cleanup?.()\n cleanup = undefined\n const previousInstance = getCurrentInstance()\n setCurrentInstance(ownerInstance)\n try {\n effectFn(onCleanup)\n }\n finally {\n setCurrentInstance(previousInstance)\n }\n },\n {\n lazy: true,\n scheduler: () => {\n if (paused) {\n return\n }\n scheduleJob(false)\n },\n },\n )\n scheduleJob(true)\n\n const doStop = () => {\n cleanup?.()\n cleanup = undefined\n stop(runner)\n }\n const stopHandle = doStop as WatchStopHandle\n stopHandle.stop = doStop\n stopHandle.pause = () => {\n if (!paused) {\n paused = true\n pauseToken += 1\n }\n }\n stopHandle.resume = () => {\n if (!paused || !runner.active) {\n return\n }\n paused = false\n scheduleJob(true)\n }\n onScopeDispose(stopHandle)\n return stopHandle\n}\n\n/**\n * 以后置刷新的方式运行副作用,与 Vue 的 `watchPostEffect()` 兼容。\n */\nexport function watchPostEffect(\n effectFn: WatchEffect,\n options: Omit<WatchEffectOptions, 'flush'> = {},\n): WatchStopHandle {\n return watchEffect(effectFn, {\n ...options,\n flush: 'post',\n })\n}\n\n/**\n * 以同步刷新的方式运行副作用,与 Vue 的 `watchSyncEffect()` 兼容。\n */\nexport function watchSyncEffect(\n effectFn: WatchEffect,\n options: Omit<WatchEffectOptions, 'flush'> = {},\n): WatchStopHandle {\n return watchEffect(effectFn, {\n ...options,\n flush: 'sync',\n })\n}\n"],"mappings":"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"}
|
package/dist/fetch.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { WeapiMiniProgramRequestMethod } from "@wevu/api";
|
|
2
2
|
import { RequestGlobalsFetchInit as WevuFetchInit, fetch } from "@wevu/web-apis/fetch";
|
|
3
|
-
|
|
4
3
|
//#region src/fetch.d.ts
|
|
5
4
|
type WevuFetchInput = Parameters<typeof import('@wevu/web-apis/fetch').fetch>[0];
|
|
6
5
|
type MiniProgramRequestMethod = WeapiMiniProgramRequestMethod;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { wt as Ref } from "./vue-types-B3N60cGV.mjs";
|
|
3
2
|
//#region src/store/types.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* @description Store 变更类型
|
|
@@ -59,7 +58,7 @@ type GetterTree<S extends Record<string, any>> = Record<string, (state: S) => an
|
|
|
59
58
|
/**
|
|
60
59
|
* @description 从 Getter 定义中推导返回类型
|
|
61
60
|
*/
|
|
62
|
-
type StoreGetters<G extends GetterTree<any>> = { [K in keyof G]: G[K] extends ((...args: any[]) => infer R) ? R : never };
|
|
61
|
+
type StoreGetters<G extends GetterTree<any>> = { [K in keyof G]: G[K] extends ((...args: any[]) => infer R) ? R : never; };
|
|
63
62
|
/**
|
|
64
63
|
* @description defineStore(options) 的配置类型
|
|
65
64
|
*/
|
|
@@ -103,7 +102,7 @@ declare function createStore(): StoreManager;
|
|
|
103
102
|
/**
|
|
104
103
|
* @description storeToRefs 返回类型推导
|
|
105
104
|
*/
|
|
106
|
-
type StoreToRefsResult<T extends Record<string, any>> = { [K in keyof T]: T[K] extends ((...args: any[]) => any) ? T[K] : T[K] extends Ref<infer V> ? Ref<V> : Ref<T[K]
|
|
105
|
+
type StoreToRefsResult<T extends Record<string, any>> = { [K in keyof T]: T[K] extends ((...args: any[]) => any) ? T[K] : T[K] extends Ref<infer V> ? Ref<V> : Ref<T[K]>; };
|
|
107
106
|
/**
|
|
108
107
|
* @description 将 store 状态转换为 Ref
|
|
109
108
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as MiniProgramCSSProperties, c as MiniProgramIntrinsicEventHandler, d as WeappIntrinsicElementBaseAttributes, f as WeappIntrinsicEventHandler, i as WeappIntrinsicElements, l as WeappCSSProperties, n as MiniProgramIntrinsicElements, o as MiniProgramDatasetAttributes, r as WeappHtmlAliasIntrinsicElements, s as MiniProgramIntrinsicElementBaseAttributes, t as MiniProgramHtmlAliasIntrinsicElements, u as WeappDatasetAttributes } from "./weappIntrinsicElements-
|
|
2
|
-
import { $ as
|
|
1
|
+
import { a as MiniProgramCSSProperties, c as MiniProgramIntrinsicEventHandler, d as WeappIntrinsicElementBaseAttributes, f as WeappIntrinsicEventHandler, i as WeappIntrinsicElements, l as WeappCSSProperties, n as MiniProgramIntrinsicElements, o as MiniProgramDatasetAttributes, r as WeappHtmlAliasIntrinsicElements, s as MiniProgramIntrinsicElementBaseAttributes, t as MiniProgramHtmlAliasIntrinsicElements, u as WeappDatasetAttributes } from "./weappIntrinsicElements-BgDtC53_.mjs";
|
|
2
|
+
import { $ as triggerRef, $n as AlipayMiniProgramHostNamespace, $t as NativeTypeHint, A as watchPostEffect, An as HostMiniProgramIntersectionObserverOptions, At as unref, B as WatchOptions, Bn as HostMiniProgramPageTrivialInstance, C as ExtractMethods, Cn as HostMiniProgramComponentMethodOption, Ct as MaybeRefOrGetter, D as ModelBindingPayload, Dn as HostMiniProgramComponentTrivialInstance, Dt as isRef, E as ModelBindingOptions, En as HostMiniProgramComponentShortProperty, Et as customRef, F as OnCleanup, Fn as HostMiniProgramNodesRefFields, G as WatchStopHandle, Gn as HostMiniProgramScrollOffsetResult, Gt as ExtractPropTypes$1, H as WatchSource, Hn as HostMiniProgramRedirectToOption, Ht as WevuTypedRouterRouteMap, I as WatchCallback, In as HostMiniProgramPageLifetime, J as ToRefs, Jn as HostMiniProgramSwitchTabOption, Jt as InferNativeProps, K as getDeepWatchStrategy, Kn as HostMiniProgramSelectorQuery, Kt as ExtractPublicPropTypes, L as WatchEffect, Ln as HostMiniProgramPageNotFoundOptions, M as MapSources, Mn as HostMiniProgramMemoryWarningResult, Mt as MiniProgramRouterReLaunchOption, N as MaybeUndefined, Nn as HostMiniProgramNavigateToOption, Nt as MiniProgramRouterRedirectToOption, O as watch, On as HostMiniProgramComponentTrivialOption, Ot as ref, P as MultiWatchSources, Pn as HostMiniProgramNodesRef, Pt as MiniProgramRouterSwitchTabOption, Q as shallowRef, Qn as HostMiniProgramUnhandledRejectionResult, Qt as NativePropsOptions, R as WatchEffectOptions, Rn as HostMiniProgramPageResizeOption, S as ExtractComputed, Sn as HostMiniProgramComponentInstance, St as MaybeRef, T as ModelBinding, Tn as HostMiniProgramComponentPropertyValue, Tt as ShallowRef, U as WatchSourceValue, Un as HostMiniProgramRouter, Ut as ComponentPropsOptions, V as WatchScheduler, Vn as HostMiniProgramReLaunchOption, W as WatchSources, Wn as HostMiniProgramSaveExitState, Wt as ExtractDefaultPropTypes, X as toRefs, Xn as HostMiniProgramThemeChangeResult, Xt as InferProps, Y as toRef, Yn as HostMiniProgramTabItemTapOption, Yt as InferPropType, Z as isShallowRef, Zn as HostMiniProgramTriggerEventOptions, Zt as NativePropType, _ as RuntimeApp, _n as HostMiniProgramBoundingClientRectResult, _r as WechatMiniProgramHostNamespace, _t as WritableComputedRef, a as NativeComponent, an as MiniProgramAppOptions, ar as MiniProgramHostNamespace, at as batch, b as ComponentPublicInstance, bn as HostMiniProgramComponentBehaviorOptions, bt as CustomRefOptions, c as ShallowUnwrapRef, cn as MiniProgramComponentOptions, cr as MiniProgramHostSourceRegistry, ct as endBatch, d as SetupContext, dn as MiniProgramInstance, dr as MiniProgramPlatformHostSourceRegistry, dt as startBatch, en as NativeTypedProperty, er as AlipayMiniProgramHostSourceContract, et as isProxy, f as SetupContextNativeInstance, fn as MiniProgramPageLifetimes, fr as MiniProgramRuntimeHostNamespaceBySource, ft as stop, g as InternalRuntimeStateFields, gn as HostMiniProgramBehaviorIdentifier, gr as TtMiniProgramHostSourceContract, gt as WritableComputedOptions, h as InternalRuntimeState, hn as HostMiniProgramAppTrivialInstance, hr as TtMiniProgramHostNamespace, ht as ComputedSetter, i as DefineComponent, in as MiniProgramAdapter, ir as DouyinMiniProgramHostSourceContract, it as EffectScope, j as watchSyncEffect, jn as HostMiniProgramLaunchOptions, jt as MiniProgramRouterNavigateToOption, k as watchEffect, kn as HostMiniProgramIntersectionObserver, kt as toValue, l as VNode, ln as MiniProgramComponentPropertyValue, lr as MiniProgramPlatformHostNamespaceBySource, lt as getCurrentScope, m as AppConfig, mn as HostMiniProgramAppOptions, mr as MiniProgramRuntimeHostSourceRegistry, mt as ComputedRef, n as ComponentCustomProps, nn as PropOptions, nr as DefaultMiniProgramHostSourceContract, nt as readonly, o as ObjectDirective, on as MiniProgramBehaviorIdentifier, or as MiniProgramHostNamespaceBySource, ot as effect, p as SetupFunction, pn as HostMiniProgramAddToFavoritesOption, pr as MiniProgramRuntimeHostSourceName, pt as ComputedGetter, q as setDeepWatchStrategy, qn as HostMiniProgramShareAppMessageOption, qt as InferNativePropType, r as ComponentOptionsMixin, rn as PropType, rr as DouyinMiniProgramHostNamespace, rt as shallowReadonly, s as PublicProps, sn as MiniProgramComponentInstance, sr as MiniProgramHostSourceName, st as effectScope, t as AllowedComponentProps, tn as PropConstructor, tr as DefaultMiniProgramHostNamespace, tt as isReadonly, u as VNodeProps, un as MiniProgramComponentRawOptions, ur as MiniProgramPlatformHostSourceName, ut as onScopeDispose, v as RuntimeInstance, vn as HostMiniProgramComponentAllFullProperty, vr as WechatMiniProgramHostSourceContract, vt as computed, w as MethodDefinitions, wn as HostMiniProgramComponentPropertyOption, wt as Ref, x as ComputedDefinitions, xn as HostMiniProgramComponentEmptyArray, xt as CustomRefSource, y as WevuPlugin, yn as HostMiniProgramComponentAllProperty, yt as CustomRefFactory, z as WatchMultiSources, zn as HostMiniProgramPageScrollOption, zt as SetupContextRouter } from "./vue-types-B3N60cGV.mjs";
|
|
3
|
+
import { _ as removeMutationRecorder, a as markRaw, c as isShallowReactive, d as prelinkReactiveTree, f as touchReactive, g as addMutationRecorder, h as MutationRecord, i as isReactive, l as shallowReactive, m as MutationOp, n as getReactiveVersion, o as reactive, p as MutationKind, r as isRaw, s as toRaw, t as traverse, u as PrelinkReactiveTreeOptions, v as nextTick } from "./traverse-B4Ez44Gd.mjs";
|
|
3
4
|
import { n as normalizeStyle, r as resolvePropValue, t as normalizeClass } from "./template-DE8e5dj_.mjs";
|
|
4
|
-
import { a as ActionContext, c as MutationType, d as SubscriptionCallback, i as defineStore, l as StoreManager, n as storeToRefs, o as ActionSubscriber, r as createStore, s as DefineStoreOptions, t as StoreToRefsResult, u as StoreSubscribeOptions } from "./index-
|
|
5
|
-
|
|
5
|
+
import { a as ActionContext, c as MutationType, d as SubscriptionCallback, i as defineStore, l as StoreManager, n as storeToRefs, o as ActionSubscriber, r as createStore, s as DefineStoreOptions, t as StoreToRefsResult, u as StoreSubscribeOptions } from "./index-CCET_bCY.mjs";
|
|
6
6
|
//#region src/runtime/types/setData.d.ts
|
|
7
7
|
interface SetDataSnapshotOptions {
|
|
8
8
|
/**
|
|
@@ -366,7 +366,7 @@ interface TemplateRefValue {
|
|
|
366
366
|
type MiniProgramTemplateRefValue = TemplateRefValue;
|
|
367
367
|
//#endregion
|
|
368
368
|
//#region src/runtime/templateRefTypes.d.ts
|
|
369
|
-
type MiniProgramTemplateRefElements = { [K in keyof MiniProgramIntrinsicElements]: TemplateRefValue };
|
|
369
|
+
type MiniProgramTemplateRefElements = { [K in keyof MiniProgramIntrinsicElements]: TemplateRefValue; };
|
|
370
370
|
declare global {
|
|
371
371
|
interface HTMLElementTagNameMap extends MiniProgramTemplateRefElements {}
|
|
372
372
|
}
|
|
@@ -771,7 +771,7 @@ type ResolveTypedPageLayoutProps<Name extends string> = Name extends keyof WevuP
|
|
|
771
771
|
type PageLayoutNamedState = { [Name in ResolveTypedPageLayoutName]: {
|
|
772
772
|
name: Name;
|
|
773
773
|
props: ResolveTypedPageLayoutProps<Name>;
|
|
774
|
-
} }[ResolveTypedPageLayoutName];
|
|
774
|
+
}; }[ResolveTypedPageLayoutName];
|
|
775
775
|
type PageLayoutState = PageLayoutNamedState | {
|
|
776
776
|
name: false;
|
|
777
777
|
props: Record<string, any>;
|
|
@@ -1072,29 +1072,29 @@ declare function useTemplateRef<K extends keyof TemplateRefs>(name: K): Template
|
|
|
1072
1072
|
declare function useTemplateRef<T = unknown>(name: string): TemplateRef<T>;
|
|
1073
1073
|
//#endregion
|
|
1074
1074
|
//#region src/macros/shared.d.ts
|
|
1075
|
-
type Prettify<T> = { [K in keyof T]: T[K] } & {};
|
|
1075
|
+
type Prettify<T> = { [K in keyof T]: T[K]; } & {};
|
|
1076
1076
|
type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
|
|
1077
1077
|
type ComponentObjectPropsOptions = ComponentPropsOptions;
|
|
1078
1078
|
type ExtractPropTypes<P extends ComponentObjectPropsOptions> = InferProps<P>;
|
|
1079
|
-
type DefineProps<T, BKeys extends keyof T> = Readonly<T> & { readonly [K in BKeys]-?: boolean };
|
|
1079
|
+
type DefineProps<T, BKeys extends keyof T> = Readonly<T> & { readonly [K in BKeys]-?: boolean; };
|
|
1080
1080
|
type BooleanKey<T, K extends keyof T = keyof T> = K extends any ? T[K] extends boolean | undefined ? T[K] extends never | undefined ? never : K : never : never;
|
|
1081
|
-
type DefinePropsFromArray<PropNames extends string = string> = Prettify<Readonly<{ [key in PropNames]?: any }>>;
|
|
1081
|
+
type DefinePropsFromArray<PropNames extends string = string> = Prettify<Readonly<{ [key in PropNames]?: any; }>>;
|
|
1082
1082
|
type DefinePropsFromOptions<PP extends ComponentObjectPropsOptions = ComponentObjectPropsOptions> = Prettify<Readonly<ExtractPropTypes<PP>>>;
|
|
1083
1083
|
type NotUndefined<T> = T extends undefined ? never : T;
|
|
1084
|
-
type MappedOmit<T, K extends keyof any> = { [P in keyof T as P extends K ? never : P]: T[P] };
|
|
1085
|
-
type InferDefaults<T> = { [K in keyof T]?: InferDefault<T, T[K]
|
|
1084
|
+
type MappedOmit<T, K extends keyof any> = { [P in keyof T as P extends K ? never : P]: T[P]; };
|
|
1085
|
+
type InferDefaults<T> = { [K in keyof T]?: InferDefault<T, T[K]>; };
|
|
1086
1086
|
type NativeType = null | undefined | number | string | boolean | symbol | ((...args: any[]) => any);
|
|
1087
1087
|
type InferDefault<P, T> = ((props: P) => T & {}) | (T extends NativeType ? T : never);
|
|
1088
|
-
type PropsWithDefaults<T, Defaults extends InferDefaults<T>, BKeys extends keyof T> = T extends unknown ? Readonly<MappedOmit<T, keyof Defaults>> & { readonly [K in keyof Defaults as K extends keyof T ? K : never]-?: K extends keyof T ? Defaults[K] extends undefined ? IfAny<Defaults[K], NotUndefined<T[K]>, T[K]> : NotUndefined<T[K]> : never } & { readonly [K in BKeys]-?: K extends keyof Defaults ? Defaults[K] extends undefined ? boolean | undefined : boolean : boolean } : never;
|
|
1088
|
+
type PropsWithDefaults<T, Defaults extends InferDefaults<T>, BKeys extends keyof T> = T extends unknown ? Readonly<MappedOmit<T, keyof Defaults>> & { readonly [K in keyof Defaults as K extends keyof T ? K : never]-?: K extends keyof T ? Defaults[K] extends undefined ? IfAny<Defaults[K], NotUndefined<T[K]>, T[K]> : NotUndefined<T[K]> : never; } & { readonly [K in BKeys]-?: K extends keyof Defaults ? Defaults[K] extends undefined ? boolean | undefined : boolean : boolean; } : never;
|
|
1089
1089
|
type UnionToIntersection<U> = (U extends any ? (arg: U) => any : never) extends ((arg: infer I) => any) ? I : never;
|
|
1090
1090
|
type ScriptSetupTriggerEventOptions = HostMiniProgramTriggerEventOptions;
|
|
1091
1091
|
type EmitArgsWithTriggerEventOptions<Args extends any[]> = Args extends [] ? [] | [detail: undefined, options: ScriptSetupTriggerEventOptions] : Args | [...args: Args, options: ScriptSetupTriggerEventOptions];
|
|
1092
1092
|
type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null>;
|
|
1093
1093
|
type EmitsOptions = ObjectEmitsOptions | string[];
|
|
1094
|
-
type EmitFn<Options = ObjectEmitsOptions, Event extends keyof Options = keyof Options> = Options extends Array<infer V> ? (event: V, ...args: any[]) => void : {} extends Options ? (event: string, ...args: any[]) => void : UnionToIntersection<{ [K in Event]: Options[K] extends ((...args: infer Args) => any) ? (event: K, ...args: EmitArgsWithTriggerEventOptions<Args>) => void : Options[K] extends any[] ? (event: K, ...args: EmitArgsWithTriggerEventOptions<Options[K]>) => void : (event: K, ...args: any[]) => void }[Event]>;
|
|
1094
|
+
type EmitFn<Options = ObjectEmitsOptions, Event extends keyof Options = keyof Options> = Options extends Array<infer V> ? (event: V, ...args: any[]) => void : {} extends Options ? (event: string, ...args: any[]) => void : UnionToIntersection<{ [K in Event]: Options[K] extends ((...args: infer Args) => any) ? (event: K, ...args: EmitArgsWithTriggerEventOptions<Args>) => void : Options[K] extends any[] ? (event: K, ...args: EmitArgsWithTriggerEventOptions<Options[K]>) => void : (event: K, ...args: any[]) => void; }[Event]>;
|
|
1095
1095
|
type ComponentTypeEmits = ((...args: any[]) => any) | Record<string, any>;
|
|
1096
1096
|
type RecordToUnion<T extends Record<string, any>> = T[keyof T];
|
|
1097
|
-
type ShortEmits<T extends Record<string, any>> = UnionToIntersection<RecordToUnion<{ [K in keyof T]: (evt: K, ...args: EmitArgsWithTriggerEventOptions<T[K]>) => void }>>;
|
|
1097
|
+
type ShortEmits<T extends Record<string, any>> = UnionToIntersection<RecordToUnion<{ [K in keyof T]: (evt: K, ...args: EmitArgsWithTriggerEventOptions<T[K]>) => void; }>>;
|
|
1098
1098
|
type ScriptSetupNativePropertyOption = HostMiniProgramComponentPropertyOption;
|
|
1099
1099
|
type ScriptSetupNativeMethodOption = HostMiniProgramComponentMethodOption;
|
|
1100
1100
|
type ScriptSetupNativeBehaviorOption = HostMiniProgramComponentEmptyArray;
|
|
@@ -1102,10 +1102,10 @@ type ScriptSetupNativeInstance<D extends object, P extends ScriptSetupNativeProp
|
|
|
1102
1102
|
type ScriptSetupObservedProperty<TProperty extends HostMiniProgramComponentAllFullProperty, TInstance> = Omit<TProperty, 'observer'> & {
|
|
1103
1103
|
observer?: string | ((this: TInstance, newVal: MiniProgramComponentPropertyValue<TProperty>, oldVal: MiniProgramComponentPropertyValue<TProperty>, changedPath: Array<string | number>) => void);
|
|
1104
1104
|
};
|
|
1105
|
-
type ScriptSetupPropertyObserver<TProperty extends HostMiniProgramComponentAllProperty, TInstance> = TProperty extends infer TCurrent extends HostMiniProgramComponentAllFullProperty ? ScriptSetupObservedProperty<TCurrent, TInstance> : TProperty;
|
|
1106
|
-
type ScriptSetupNativeProperties<D extends object, P extends ScriptSetupNativePropertyOption, M extends ScriptSetupNativeMethodOption> = { [K in keyof P]: ScriptSetupPropertyObserver<P[K], ScriptSetupNativeInstance<D, P, M
|
|
1105
|
+
type ScriptSetupPropertyObserver<TProperty extends HostMiniProgramComponentAllProperty, TInstance> = TProperty extends (infer TCurrent extends HostMiniProgramComponentAllFullProperty) ? ScriptSetupObservedProperty<TCurrent, TInstance> : TProperty;
|
|
1106
|
+
type ScriptSetupNativeProperties<D extends object, P extends ScriptSetupNativePropertyOption, M extends ScriptSetupNativeMethodOption> = { [K in keyof P]: ScriptSetupPropertyObserver<P[K], ScriptSetupNativeInstance<D, P, M>>; };
|
|
1107
1107
|
type ScriptSetupNativeMethods<D extends object, P extends ScriptSetupNativePropertyOption, M extends ScriptSetupNativeMethodOption> = M & ThisType<ScriptSetupNativeInstance<D, P, M>>;
|
|
1108
|
-
type RemoveIndexSignature<T> = { [K in keyof T as string extends K ? never : number extends K ? never : symbol extends K ? never : K]: T[K] };
|
|
1108
|
+
type RemoveIndexSignature<T> = { [K in keyof T as string extends K ? never : number extends K ? never : symbol extends K ? never : K]: T[K]; };
|
|
1109
1109
|
type ScriptSetupDefineOptions<D extends object = Record<string, any>, C extends ComputedDefinitions = ComputedDefinitions, M extends MethodDefinitions = MethodDefinitions, P extends ScriptSetupNativePropertyOption = ScriptSetupNativePropertyOption> = Omit<RemoveIndexSignature<DefineComponentOptions<ComponentPropsOptions, D, C, M>>, 'props' | 'options' | 'data' | 'methods'> & {
|
|
1110
1110
|
/**
|
|
1111
1111
|
* props 必须通过 defineProps() 声明。
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { a as MiniProgramCSSProperties, c as MiniProgramIntrinsicEventHandler, d as WeappIntrinsicElementBaseAttributes, f as WeappIntrinsicEventHandler, i as WeappIntrinsicElements, l as WeappCSSProperties, n as MiniProgramIntrinsicElements, o as MiniProgramDatasetAttributes, r as WeappHtmlAliasIntrinsicElements, s as MiniProgramIntrinsicElementBaseAttributes, t as MiniProgramHtmlAliasIntrinsicElements, u as WeappDatasetAttributes } from "./weappIntrinsicElements-
|
|
2
|
-
import { $ as
|
|
3
|
-
import {
|
|
1
|
+
import { a as MiniProgramCSSProperties, c as MiniProgramIntrinsicEventHandler, d as WeappIntrinsicElementBaseAttributes, f as WeappIntrinsicEventHandler, i as WeappIntrinsicElements, l as WeappCSSProperties, n as MiniProgramIntrinsicElements, o as MiniProgramDatasetAttributes, r as WeappHtmlAliasIntrinsicElements, s as MiniProgramIntrinsicElementBaseAttributes, t as MiniProgramHtmlAliasIntrinsicElements, u as WeappDatasetAttributes } from "./weappIntrinsicElements-BgDtC53_.mjs";
|
|
2
|
+
import { $ as triggerRef, $n as AlipayMiniProgramHostNamespace, $t as NativeTypeHint, A as watchPostEffect, An as HostMiniProgramIntersectionObserverOptions, At as unref, B as WatchOptions, Bn as HostMiniProgramPageTrivialInstance, C as ExtractMethods, Cn as HostMiniProgramComponentMethodOption, Ct as MaybeRefOrGetter, D as ModelBindingPayload, Dn as HostMiniProgramComponentTrivialInstance, Dt as isRef, E as ModelBindingOptions, En as HostMiniProgramComponentShortProperty, Et as customRef, F as OnCleanup, Fn as HostMiniProgramNodesRefFields, G as WatchStopHandle, Gn as HostMiniProgramScrollOffsetResult, Gt as ExtractPropTypes, H as WatchSource, Hn as HostMiniProgramRedirectToOption, Ht as WevuTypedRouterRouteMap, I as WatchCallback, In as HostMiniProgramPageLifetime, J as ToRefs, Jn as HostMiniProgramSwitchTabOption, Jt as InferNativeProps, K as getDeepWatchStrategy, Kn as HostMiniProgramSelectorQuery, Kt as ExtractPublicPropTypes, L as WatchEffect, Ln as HostMiniProgramPageNotFoundOptions, M as MapSources, Mn as HostMiniProgramMemoryWarningResult, Mt as MiniProgramRouterReLaunchOption, N as MaybeUndefined, Nn as HostMiniProgramNavigateToOption, Nt as MiniProgramRouterRedirectToOption, O as watch, On as HostMiniProgramComponentTrivialOption, Ot as ref, P as MultiWatchSources, Pn as HostMiniProgramNodesRef, Pt as MiniProgramRouterSwitchTabOption, Q as shallowRef, Qn as HostMiniProgramUnhandledRejectionResult, Qt as NativePropsOptions, R as WatchEffectOptions, Rn as HostMiniProgramPageResizeOption, S as ExtractComputed, Sn as HostMiniProgramComponentInstance, St as MaybeRef, T as ModelBinding, Tn as HostMiniProgramComponentPropertyValue, Tt as ShallowRef, U as WatchSourceValue, Un as HostMiniProgramRouter, Ut as ComponentPropsOptions, V as WatchScheduler, Vn as HostMiniProgramReLaunchOption, W as WatchSources, Wn as HostMiniProgramSaveExitState, Wt as ExtractDefaultPropTypes, X as toRefs, Xn as HostMiniProgramThemeChangeResult, Xt as InferProps, Y as toRef, Yn as HostMiniProgramTabItemTapOption, Yt as InferPropType, Z as isShallowRef, Zn as HostMiniProgramTriggerEventOptions, Zt as NativePropType, _ as RuntimeApp, _n as HostMiniProgramBoundingClientRectResult, _r as WechatMiniProgramHostNamespace, _t as WritableComputedRef, a as NativeComponent, an as MiniProgramAppOptions, ar as MiniProgramHostNamespace, at as batch, b as ComponentPublicInstance, bn as HostMiniProgramComponentBehaviorOptions, bt as CustomRefOptions, c as ShallowUnwrapRef, cn as MiniProgramComponentOptions, cr as MiniProgramHostSourceRegistry, ct as endBatch, d as SetupContext, dn as MiniProgramInstance, dr as MiniProgramPlatformHostSourceRegistry, dt as startBatch, en as NativeTypedProperty, er as AlipayMiniProgramHostSourceContract, et as isProxy, f as SetupContextNativeInstance, fn as MiniProgramPageLifetimes, fr as MiniProgramRuntimeHostNamespaceBySource, ft as stop, g as InternalRuntimeStateFields, gn as HostMiniProgramBehaviorIdentifier, gr as TtMiniProgramHostSourceContract, gt as WritableComputedOptions, h as InternalRuntimeState, hn as HostMiniProgramAppTrivialInstance, hr as TtMiniProgramHostNamespace, ht as ComputedSetter, i as DefineComponent, in as MiniProgramAdapter, ir as DouyinMiniProgramHostSourceContract, it as EffectScope, j as watchSyncEffect, jn as HostMiniProgramLaunchOptions, jt as MiniProgramRouterNavigateToOption, k as watchEffect, kn as HostMiniProgramIntersectionObserver, kt as toValue, l as VNode, ln as MiniProgramComponentPropertyValue, lr as MiniProgramPlatformHostNamespaceBySource, lt as getCurrentScope, m as AppConfig, mn as HostMiniProgramAppOptions, mr as MiniProgramRuntimeHostSourceRegistry, mt as ComputedRef, n as ComponentCustomProps, nn as PropOptions, nr as DefaultMiniProgramHostSourceContract, nt as readonly, o as ObjectDirective, on as MiniProgramBehaviorIdentifier, or as MiniProgramHostNamespaceBySource, ot as effect, p as SetupFunction, pn as HostMiniProgramAddToFavoritesOption, pr as MiniProgramRuntimeHostSourceName, pt as ComputedGetter, q as setDeepWatchStrategy, qn as HostMiniProgramShareAppMessageOption, qt as InferNativePropType, r as ComponentOptionsMixin, rn as PropType, rr as DouyinMiniProgramHostNamespace, rt as shallowReadonly, s as PublicProps, sn as MiniProgramComponentInstance, sr as MiniProgramHostSourceName, st as effectScope, t as AllowedComponentProps, tn as PropConstructor, tr as DefaultMiniProgramHostNamespace, tt as isReadonly, u as VNodeProps, un as MiniProgramComponentRawOptions, ur as MiniProgramPlatformHostSourceName, ut as onScopeDispose, v as RuntimeInstance, vn as HostMiniProgramComponentAllFullProperty, vr as WechatMiniProgramHostSourceContract, vt as computed, w as MethodDefinitions, wn as HostMiniProgramComponentPropertyOption, wt as Ref, x as ComputedDefinitions, xn as HostMiniProgramComponentEmptyArray, xt as CustomRefSource, y as WevuPlugin, yn as HostMiniProgramComponentAllProperty, yt as CustomRefFactory, z as WatchMultiSources, zn as HostMiniProgramPageScrollOption, zt as SetupContextRouter } from "./vue-types-B3N60cGV.mjs";
|
|
3
|
+
import { _ as removeMutationRecorder, a as markRaw, c as isShallowReactive, d as prelinkReactiveTree, f as touchReactive, g as addMutationRecorder, h as MutationRecord, i as isReactive, l as shallowReactive, m as MutationOp, n as getReactiveVersion, o as reactive, p as MutationKind, r as isRaw, s as toRaw, t as traverse, u as PrelinkReactiveTreeOptions, v as nextTick } from "./traverse-B4Ez44Gd.mjs";
|
|
4
|
+
import { $ as registerApp, $n as GlobalComponents, $t as onUpdated, A as useSlots, An as ElementIntersectionObserverCallback, At as LayoutHostBinding, B as UseBoundingClientRectOptions, Bn as DefineComponentTypePropsOptions, Bt as UseIntersectionObserverOptions, C as UseModelOptions, Cn as onUnload, Ct as getCurrentPageStackSnapshot, D as useModel, Dn as getCurrentSetupContext, Dt as isNoSetData, E as useChangeModel, En as getCurrentInstance, Et as usePageStack, F as UseUpdatePerformanceListenerStopHandle, Fn as DisposableLike, Ft as unregisterPageLayoutBridge, G as useScrollOffset, Gn as WevuDefinedComponent, Gt as onBeforeMount, H as UseSelectorFieldsOptions, Hn as SetupContextWithTypeProps, Ht as useIntersectionObserver, I as useUpdatePerformanceListener, In as DisposableMethodName, It as unregisterRuntimeLayoutHosts, J as runSetupFunction, Jn as defineComponent, Jt as onDeactivated, K as useSelectorFields, Kn as createWevuComponent, Kt as onBeforeUnmount, L as UseAllBoundingClientRectOptions, Ln as DisposableObject, Lt as useLayoutBridge, M as use, Mn as UseElementIntersectionObserverReturn, Mt as registerRuntimeLayoutHosts, N as UpdatePerformanceListener, Nn as useElementIntersectionObserver, Nt as resolveLayoutBridge, O as useAttrs, On as setCurrentInstance, Ot as markNoSetData, P as UpdatePerformanceListenerResult, Pn as DisposableBag, Pt as resolveLayoutHost, Q as registerComponent, Qn as createApp, Qt as onUnmounted, R as UseAllScrollOffsetOptions, Rn as useDisposables, Rt as useLayoutHosts, S as ModelModifiers, Sn as onUnhandledRejection, St as UsePageStackOptions, T as useBindModel, Tn as callHookReturn, Tt as useNavigationBarMetrics, U as UseSelectorQueryOptions, Un as SetupFunctionWithTypeProps, Ut as callUpdateHooks, V as UseScrollOffsetOptions, Vn as DefineComponentWithTypeProps, Vt as UseIntersectionObserverResult, W as useBoundingClientRect, Wn as WevuComponentConstructor, Wt as onActivated, X as setRuntimeSetDataVisibility, Xn as resetWevuDefaults, Xt as onMounted, Y as mountRuntimeInstance, Yn as WevuDefaults, Yt as onErrorCaptured, Z as teardownRuntimeInstance, Zn as setWevuDefaults, Zt as onServerPrefetch, _ as EmitsOptions, _n as onShareAppMessage, _t as syncRuntimePageLayoutStateFromRuntime, a as PageLayoutMeta, an as onLaunch, ar as WevuGlobalDirectives, at as injectGlobal, b as useNativePageRouter, bn as onTabItemTap, bt as PageStackSnapshot, c as defineExpose, cn as onMoved, cr as DefineAppOptions, ct as setGlobalProvidedValue, d as definePageMeta, dn as onPullDownRefresh, dr as SetDataDebugInfo, dt as usePageScrollThrottle, en as onAddToFavorites, er as GlobalDirectives, et as PullDownRefreshHandler, f as defineProps, fn as onReachBottom, fr as SetDataSnapshotOptions, ft as PageLayoutState, g as EmitFn, gn as onSaveExitState, gt as syncRuntimePageLayoutState, h as ComponentTypeEmits, hn as onRouteDone, ht as setPageLayout, i as ModelRef, in as onHide, ir as WevuGlobalComponents, it as inject, j as defineAppSetup, jn as UseElementIntersectionObserverOptions, jt as registerPageLayoutBridge, k as useNativeInstance, kn as setCurrentSetupContext, kt as LayoutBridgeInstance, l as defineModel, ln as onPageNotFound, lr as DefineComponentOptions, lt as UsePageScrollThrottleOptions, m as withDefaults, mn as onResize, mt as resolveRuntimePageLayoutName, n as DefineModelModifiers, nn as onDetached, nr as TemplateRefValue, nt as useAsyncPullDownRefresh, o as PageMeta, on as onLoad, or as CreateAppOptions, ot as provide, p as defineSlots, pn as onReady, pt as WevuPageLayoutMap, q as useSelectorQuery, qn as createWevuScopedSlotComponent, qt as onBeforeUpdate, r as DefineModelTransformOptions, rn as onError, rr as TemplateRefs, rt as hasInjectionContext, s as defineEmits, sn as onMemoryWarning, sr as DataOption, st as provideGlobal, t as version, tn as onAttached, tr as MiniProgramTemplateRefValue, tt as UseAsyncPullDownRefreshOptions, u as defineOptions, un as onPageScroll, ur as PageFeatures, ut as UsePageScrollThrottleStopHandle, v as TemplateRef, vn as onShareTimeline, vt as usePageLayout, w as mergeModels, wn as callHookList, wt as getNavigationBarMetrics, x as useNativeRouter, xn as onThemeChange, xt as UseNavigationBarMetricsOptions, y as useTemplateRef, yn as onShow, yt as NavigationBarMetrics, z as UseAllSelectorFieldsOptions, zn as ComponentDefinition, zt as waitForLayoutHost } from "./index-Dg1-jV9L.mjs";
|
|
4
5
|
import { n as normalizeStyle, r as resolvePropValue, t as normalizeClass } from "./template-DE8e5dj_.mjs";
|
|
5
|
-
import { a as ActionContext, c as MutationType, d as SubscriptionCallback, i as defineStore, l as StoreManager, n as storeToRefs, o as ActionSubscriber, r as createStore, s as DefineStoreOptions, t as StoreToRefsResult, u as StoreSubscribeOptions } from "./index-
|
|
6
|
+
import { a as ActionContext, c as MutationType, d as SubscriptionCallback, i as defineStore, l as StoreManager, n as storeToRefs, o as ActionSubscriber, r as createStore, s as DefineStoreOptions, t as StoreToRefsResult, u as StoreSubscribeOptions } from "./index-CCET_bCY.mjs";
|
|
6
7
|
export * from "@wevu/web-apis";
|
|
7
8
|
export { type ActionContext, type ActionSubscriber, type AlipayMiniProgramHostNamespace, type AlipayMiniProgramHostSourceContract, type AllowedComponentProps, type AppConfig, type ComponentCustomProps, ComponentDefinition, type ComponentOptionsMixin, type ComponentPropsOptions, type ComponentPublicInstance, type ComponentTypeEmits, type ComputedDefinitions, type ComputedGetter, type ComputedRef, type ComputedSetter, type CreateAppOptions, type CustomRefFactory, type CustomRefOptions, type CustomRefSource, type DataOption, type DefaultMiniProgramHostNamespace, type DefaultMiniProgramHostSourceContract, type DefineAppOptions, type DefineComponent, type DefineComponentOptions, DefineComponentTypePropsOptions, DefineComponentWithTypeProps, DefineModelModifiers, DefineModelTransformOptions, type DefineStoreOptions, DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, type DouyinMiniProgramHostNamespace, type DouyinMiniProgramHostSourceContract, type EffectScope, ElementIntersectionObserverCallback, type EmitFn, type EmitsOptions, type ExtractComputed, type ExtractDefaultPropTypes, type ExtractMethods, type ExtractPropTypes, type ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, type HostMiniProgramAddToFavoritesOption, type HostMiniProgramAddToFavoritesOption as MiniProgramAddToFavoritesOption, type HostMiniProgramAppOptions, type HostMiniProgramAppTrivialInstance, type HostMiniProgramBehaviorIdentifier, type HostMiniProgramBoundingClientRectResult, type HostMiniProgramBoundingClientRectResult as MiniProgramBoundingClientRectResult, type HostMiniProgramComponentAllFullProperty, type HostMiniProgramComponentAllFullProperty as MiniProgramComponentAllFullProperty, type HostMiniProgramComponentAllProperty, type HostMiniProgramComponentAllProperty as MiniProgramComponentAllProperty, type HostMiniProgramComponentBehaviorOptions, type HostMiniProgramComponentBehaviorOptions as MiniProgramComponentBehaviorOptions, type HostMiniProgramComponentEmptyArray, type HostMiniProgramComponentEmptyArray as MiniProgramComponentEmptyArray, type HostMiniProgramComponentInstance, type HostMiniProgramComponentMethodOption, type HostMiniProgramComponentMethodOption as MiniProgramComponentMethodOption, type HostMiniProgramComponentPropertyOption, type HostMiniProgramComponentPropertyOption as MiniProgramComponentPropertyOption, type HostMiniProgramComponentPropertyValue, type HostMiniProgramComponentShortProperty, type HostMiniProgramComponentShortProperty as MiniProgramComponentShortProperty, type HostMiniProgramComponentTrivialInstance, type HostMiniProgramComponentTrivialOption, type HostMiniProgramIntersectionObserver, type HostMiniProgramIntersectionObserver as MiniProgramIntersectionObserver, type HostMiniProgramIntersectionObserverOptions, type HostMiniProgramIntersectionObserverOptions as MiniProgramIntersectionObserverOptions, type HostMiniProgramLaunchOptions, type HostMiniProgramLaunchOptions as MiniProgramLaunchOptions, type HostMiniProgramMemoryWarningResult, type HostMiniProgramMemoryWarningResult as MiniProgramMemoryWarningResult, type HostMiniProgramNavigateToOption, type HostMiniProgramNavigateToOption as MiniProgramNavigateToOption, type HostMiniProgramNodesRef, type HostMiniProgramNodesRef as MiniProgramNodesRef, type HostMiniProgramNodesRefFields, type HostMiniProgramNodesRefFields as MiniProgramNodesRefFields, type HostMiniProgramPageLifetime, type HostMiniProgramPageLifetime as MiniProgramPageLifetime, type HostMiniProgramPageNotFoundOptions, type HostMiniProgramPageNotFoundOptions as MiniProgramPageNotFoundOptions, type HostMiniProgramPageResizeOption, type HostMiniProgramPageResizeOption as MiniProgramPageResizeOption, type HostMiniProgramPageScrollOption, type HostMiniProgramPageScrollOption as MiniProgramPageScrollOption, type HostMiniProgramPageTrivialInstance, type HostMiniProgramReLaunchOption, type HostMiniProgramReLaunchOption as MiniProgramReLaunchOption, type HostMiniProgramRedirectToOption, type HostMiniProgramRedirectToOption as MiniProgramRedirectToOption, type HostMiniProgramRouter, type HostMiniProgramRouter as MiniProgramRouter, type HostMiniProgramSaveExitState, type HostMiniProgramSaveExitState as MiniProgramSaveExitState, type HostMiniProgramScrollOffsetResult, type HostMiniProgramScrollOffsetResult as MiniProgramScrollOffsetResult, type HostMiniProgramSelectorQuery, type HostMiniProgramSelectorQuery as MiniProgramSelectorQuery, type HostMiniProgramShareAppMessageOption, type HostMiniProgramShareAppMessageOption as MiniProgramShareAppMessageOption, type HostMiniProgramSwitchTabOption, type HostMiniProgramSwitchTabOption as MiniProgramSwitchTabOption, type HostMiniProgramTabItemTapOption, type HostMiniProgramTabItemTapOption as MiniProgramTabItemTapOption, type HostMiniProgramThemeChangeResult, type HostMiniProgramThemeChangeResult as MiniProgramThemeChangeResult, type HostMiniProgramTriggerEventOptions, type HostMiniProgramTriggerEventOptions as TriggerEventOptions, type HostMiniProgramUnhandledRejectionResult, type HostMiniProgramUnhandledRejectionResult as MiniProgramUnhandledRejectionResult, type InferNativePropType, type InferNativeProps, type InferPropType, type InferProps, type InternalRuntimeState, type InternalRuntimeStateFields, LayoutBridgeInstance, LayoutHostBinding, type MapSources, type MaybeRef, type MaybeRefOrGetter, type MaybeUndefined, type MethodDefinitions, type MiniProgramAdapter, type MiniProgramAppOptions, type MiniProgramBehaviorIdentifier, type MiniProgramCSSProperties, type MiniProgramComponentInstance, type MiniProgramComponentOptions, type MiniProgramComponentPropertyValue, type MiniProgramComponentRawOptions, type MiniProgramDatasetAttributes, type MiniProgramHostNamespace, type MiniProgramHostNamespaceBySource, type MiniProgramHostSourceName, type MiniProgramHostSourceRegistry, type MiniProgramHtmlAliasIntrinsicElements, type MiniProgramInstance, type MiniProgramIntrinsicElementBaseAttributes, type MiniProgramIntrinsicElements, type MiniProgramIntrinsicEventHandler, type MiniProgramPageLifetimes, type MiniProgramPlatformHostNamespaceBySource, type MiniProgramPlatformHostSourceName, type MiniProgramPlatformHostSourceRegistry, type MiniProgramRouterNavigateToOption, type MiniProgramRouterReLaunchOption, type MiniProgramRouterRedirectToOption, type MiniProgramRouterSwitchTabOption, type MiniProgramRuntimeHostNamespaceBySource, type MiniProgramRuntimeHostSourceName, type MiniProgramRuntimeHostSourceRegistry, MiniProgramTemplateRefValue, type ModelBinding, type ModelBindingOptions, type ModelBindingPayload, type ModelModifiers, ModelRef, type MultiWatchSources, type MutationKind, type MutationOp, type MutationRecord, type MutationType, type NativeComponent, type NativePropType, type NativePropsOptions, type NativeTypeHint, type NativeTypedProperty, NavigationBarMetrics, type ObjectDirective, type OnCleanup, type PageFeatures, PageLayoutMeta, PageLayoutState, PageMeta, PageStackSnapshot, type PrelinkReactiveTreeOptions, type PropConstructor, type PropOptions, type PropType, type PublicProps, PullDownRefreshHandler, type Ref, type RuntimeApp, type RuntimeInstance, type SetDataDebugInfo, type SetDataSnapshotOptions, type SetupContext, type SetupContextNativeInstance, type SetupContextRouter, SetupContextWithTypeProps, type SetupFunction, SetupFunctionWithTypeProps, type ShallowRef, type ShallowUnwrapRef, type StoreManager, type StoreSubscribeOptions, type StoreToRefsResult, type SubscriptionCallback, type TemplateRef, TemplateRefValue, TemplateRefs, type ToRefs, type TtMiniProgramHostNamespace, type TtMiniProgramHostSourceContract, UpdatePerformanceListener, UpdatePerformanceListenerResult, UseAllBoundingClientRectOptions, UseAllScrollOffsetOptions, UseAllSelectorFieldsOptions, UseAsyncPullDownRefreshOptions, UseBoundingClientRectOptions, UseElementIntersectionObserverOptions, UseElementIntersectionObserverReturn, UseIntersectionObserverOptions, UseIntersectionObserverResult, type UseModelOptions, UseNavigationBarMetricsOptions, UsePageScrollThrottleOptions, UsePageScrollThrottleStopHandle, UsePageStackOptions, UseScrollOffsetOptions, UseSelectorFieldsOptions, UseSelectorQueryOptions, UseUpdatePerformanceListenerStopHandle, type VNode, type VNodeProps, type WatchCallback, type WatchEffect, type WatchEffectOptions, type WatchMultiSources, type WatchOptions, type WatchScheduler, type WatchSource, type WatchSourceValue, type WatchSources, type WatchStopHandle, type WeappCSSProperties, type WeappDatasetAttributes, type WeappHtmlAliasIntrinsicElements, type WeappIntrinsicElementBaseAttributes, type WeappIntrinsicElements, type WeappIntrinsicEventHandler, type WechatMiniProgramHostNamespace, type WechatMiniProgramHostSourceContract, WevuComponentConstructor, type WevuDefaults, WevuDefinedComponent, WevuGlobalComponents, WevuGlobalDirectives, WevuPageLayoutMap, type WevuPlugin, type WevuTypedRouterRouteMap, type WritableComputedOptions, type WritableComputedRef, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineAppSetup, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, definePageMeta, defineProps, defineSlots, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentPageStackSnapshot, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, getNavigationBarMetrics, getReactiveVersion, hasInjectionContext, inject, injectGlobal, isNoSetData, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, markNoSetData, markRaw, mergeModels, mountRuntimeInstance, nextTick, normalizeClass, normalizeStyle, onActivated, onAddToFavorites, onAttached, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onDetached, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMemoryWarning, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onScopeDispose, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, prelinkReactiveTree, provide, provideGlobal, reactive, readonly, ref, registerApp, registerComponent, registerPageLayoutBridge, registerRuntimeLayoutHosts, removeMutationRecorder, resetWevuDefaults, resolveLayoutBridge, resolveLayoutHost, resolvePropValue, resolveRuntimePageLayoutName, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setDeepWatchStrategy, setGlobalProvidedValue, setPageLayout, setRuntimeSetDataVisibility, setWevuDefaults, shallowReactive, shallowReadonly, shallowRef, startBatch, stop, storeToRefs, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, teardownRuntimeInstance, toRaw, toRef, toRefs, toValue, touchReactive, traverse, triggerRef, unref, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, use, useAsyncPullDownRefresh, useAttrs, useBindModel, useBoundingClientRect, useChangeModel, useDisposables, useElementIntersectionObserver, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, useNavigationBarMetrics, usePageLayout, usePageScrollThrottle, usePageStack, useScrollOffset, useSelectorFields, useSelectorQuery, useSlots, useTemplateRef, useUpdatePerformanceListener, version, waitForLayoutHost, watch, watchEffect, watchPostEffect, watchSyncEffect, withDefaults };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./rolldown-runtime-CenpyGzJ.mjs";import{
|
|
1
|
+
import"./rolldown-runtime-CenpyGzJ.mjs";import{a as e,c as t,d as n,f as r,i,l as a,n as o,o as s,p as c,r as l,s as u,t as d,u as f}from"./watch-Bbd-gmEg.mjs";import{A as p,F as m,I as h,L as g,M as _,N as v,P as y,R as b,a as x,c as S,d as C,i as w,j as T,k as E,l as D,n as O,o as k,s as A,t as j,u as M,v as N}from"./ref-D37CknuD.mjs";import{i as P,r as F,t as I}from"./computed-Xoi9XEUx.mjs";import{S as L,b as R,c as z,d as B,n as V,r as H,s as U,u as W,x as G,y as K}from"./base-BxKbbKVO.mjs";import{n as q,t as J}from"./toRefs-CoytPyo0.mjs";import{$ as Y,B as X,F as Z,G as Q,H as $,I as ee,J as te,K as ne,L as re,N as ie,P as ae,Q as oe,R as se,U as ce,V as le,W as ue,X as de,Y as fe,Z as pe,_ as me,b as he,et as ge,n as _e,nt as ve,q as ye,rt as be,t as xe,tt as Se,v as Ce,x as we,y as Te,z as Ee}from"./router-DLOOLAqv.mjs";import{$ as De,A as Oe,B as ke,C as Ae,D as je,E as Me,F as Ne,G as Pe,H as Fe,I as Ie,J as Le,K as Re,L as ze,M as Be,N as Ve,O as He,P as Ue,Q as We,R as Ge,S as Ke,T as qe,U as Je,V as Ye,W as Xe,X as Ze,Y as Qe,Z as $e,_ as et,a as tt,at as nt,b as rt,c as it,ct as at,d as ot,et as st,f as ct,g as lt,h as ut,i as dt,it as ft,j as pt,k as mt,l as ht,lt as gt,m as _t,n as vt,nt as yt,o as bt,ot as xt,p as St,q as Ct,r as wt,rt as Tt,s as Et,st as Dt,t as Ot,tt as kt,u as At,ut as jt,v as Mt,w as Nt,x as Pt,y as Ft,z as It}from"./templateRef-C4R74tUR.mjs";import{n as Lt,r as Rt,t as zt}from"./template-CNzlwH-E.mjs";import{n as Bt,r as Vt,t as Ht}from"./store-eHrHBQiv.mjs";export*from"@wevu/web-apis";export{E as addMutationRecorder,T as batch,V as callHookList,H as callHookReturn,st as callUpdateHooks,I as computed,He as createApp,Vt as createStore,qe as createWevuComponent,Me as createWevuScopedSlotComponent,j as customRef,ht as defineAppSetup,je as defineComponent,Bt as defineStore,_ as effect,v as effectScope,y as endBatch,U as getCurrentInstance,Mt as getCurrentPageStackSnapshot,m as getCurrentScope,z as getCurrentSetupContext,e as getDeepWatchStrategy,Ft as getNavigationBarMetrics,A as getReactiveVersion,me as hasInjectionContext,Ce as inject,Te as injectGlobal,$e as isNoSetData,K as isProxy,S as isRaw,D as isReactive,R as isReadonly,O as isRef,n as isShallowReactive,t as isShallowRef,We as markNoSetData,M as markRaw,vt as mergeModels,ke as mountRuntimeInstance,c as nextTick,zt as normalizeClass,Lt as normalizeStyle,kt as onActivated,ae as onAddToFavorites,Z as onAttached,yt as onBeforeMount,Tt as onBeforeUnmount,ft as onBeforeUpdate,nt as onDeactivated,ee as onDetached,re as onError,xt as onErrorCaptured,se as onHide,Ee as onLaunch,X as onLoad,le as onMemoryWarning,Dt as onMounted,$ as onMoved,ce as onPageNotFound,ue as onPageScroll,Q as onPullDownRefresh,ne as onReachBottom,ye as onReady,te as onResize,fe as onRouteDone,de as onSaveExitState,h as onScopeDispose,at as onServerPrefetch,pe as onShareAppMessage,oe as onShareTimeline,Y as onShow,ge as onTabItemTap,Se as onThemeChange,ve as onUnhandledRejection,be as onUnload,gt as onUnmounted,jt as onUpdated,F as prelinkReactiveTree,he as provide,we as provideGlobal,C as reactive,G as readonly,w as ref,It as registerApp,mt as registerComponent,Oe as registerPageLayoutBridge,pt as registerRuntimeLayoutHosts,p as removeMutationRecorder,Qe as resetWevuDefaults,Be as resolveLayoutBridge,Ve as resolveLayoutHost,Rt as resolvePropValue,Xe as resolveRuntimePageLayoutName,Je as runSetupFunction,W as setCurrentInstance,B as setCurrentSetupContext,s as setDeepWatchStrategy,ie as setGlobalProvidedValue,Pe as setPageLayout,Ye as setRuntimeSetDataVisibility,Ze as setWevuDefaults,r as shallowReactive,L as shallowReadonly,a as shallowRef,g as startBatch,b as stop,Ht as storeToRefs,Re as syncRuntimePageLayoutState,Ct as syncRuntimePageLayoutStateFromRuntime,Fe as teardownRuntimeInstance,N as toRaw,J as toRef,q as toRefs,x as toValue,P as touchReactive,u as traverse,f as triggerRef,k as unref,Ue as unregisterPageLayoutBridge,Ne as unregisterRuntimeLayoutHosts,At as use,lt as useAsyncPullDownRefresh,bt as useAttrs,wt as useBindModel,ct as useBoundingClientRect,dt as useChangeModel,Nt as useDisposables,Ae as useElementIntersectionObserver,Ke as useIntersectionObserver,Ie as useLayoutBridge,ze as useLayoutHosts,tt as useModel,Et as useNativeInstance,xe as useNativePageRouter,_e as useNativeRouter,rt as useNavigationBarMetrics,Le as usePageLayout,et as usePageScrollThrottle,Pt as usePageStack,St as useScrollOffset,_t as useSelectorFields,ut as useSelectorQuery,it as useSlots,Ot as useTemplateRef,ot as useUpdatePerformanceListener,De as version,Ge as waitForLayoutHost,d as watch,o as watchEffect,l as watchPostEffect,i as watchSyncEffect};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as triggerRef, A as watchPostEffect, At as unref, B as WatchOptions, Ct as MaybeRefOrGetter, Dt as isRef, Et as customRef, F as OnCleanup, G as WatchStopHandle, H as WatchSource, I as WatchCallback, J as ToRefs, K as getDeepWatchStrategy, L as WatchEffect, M as MapSources, N as MaybeUndefined, O as watch, Ot as ref, P as MultiWatchSources, Q as shallowRef, R as WatchEffectOptions, St as MaybeRef, Tt as ShallowRef, U as WatchSourceValue, V as WatchScheduler, W as WatchSources, X as toRefs, Y as toRef, Z as isShallowRef, _t as WritableComputedRef, at as batch, bt as CustomRefOptions, ct as endBatch, dt as startBatch, et as isProxy, ft as stop, gt as WritableComputedOptions, ht as ComputedSetter, it as EffectScope, j as watchSyncEffect, k as watchEffect, kt as toValue, lt as getCurrentScope, mt as ComputedRef, nt as readonly, ot as effect, pt as ComputedGetter, q as setDeepWatchStrategy, rt as shallowReadonly, st as effectScope, tt as isReadonly, ut as onScopeDispose, vt as computed, wt as Ref, xt as CustomRefSource, yt as CustomRefFactory, z as WatchMultiSources } from "./vue-types-B3N60cGV.mjs";
|
|
2
|
+
import { _ as removeMutationRecorder, a as markRaw, c as isShallowReactive, d as prelinkReactiveTree, f as touchReactive, g as addMutationRecorder, h as MutationRecord, i as isReactive, l as shallowReactive, m as MutationOp, n as getReactiveVersion, o as reactive, p as MutationKind, r as isRaw, s as toRaw, t as traverse, u as PrelinkReactiveTreeOptions, v as nextTick } from "./traverse-B4Ez44Gd.mjs";
|
|
2
3
|
export { type ComputedGetter, type ComputedRef, type ComputedSetter, type CustomRefFactory, type CustomRefOptions, type CustomRefSource, type EffectScope, type MapSources, type MaybeRef, type MaybeRefOrGetter, type MaybeUndefined, type MultiWatchSources, type MutationKind, type MutationOp, type MutationRecord, type OnCleanup, type PrelinkReactiveTreeOptions, type Ref, type ShallowRef, type ToRefs, type WatchCallback, type WatchEffect, type WatchEffectOptions, type WatchMultiSources, type WatchOptions, type WatchScheduler, type WatchSource, type WatchSourceValue, type WatchSources, type WatchStopHandle, type WritableComputedOptions, type WritableComputedRef, addMutationRecorder, batch, computed, customRef, effect, effectScope, endBatch, getCurrentScope, getDeepWatchStrategy, getReactiveVersion, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, markRaw, nextTick, onScopeDispose, prelinkReactiveTree, reactive, readonly, ref, removeMutationRecorder, setDeepWatchStrategy, shallowReactive, shallowReadonly, shallowRef, startBatch, stop, toRaw, toRef, toRefs, toValue, touchReactive, traverse, triggerRef, unref, watch, watchEffect, watchPostEffect, watchSyncEffect };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as e,c as t,d as n,f as r,i,l as a,n as o,o as s,p as c,r as l,s as u,t as d,u as f}from"./watch-Bbd-gmEg.mjs";import{A as p,F as m,I as h,L as g,M as _,N as v,P as y,R as b,a as x,c as S,d as C,i as w,j as T,k as E,l as D,n as O,o as k,s as A,t as j,u as M,v as N}from"./ref-D37CknuD.mjs";import{i as P,r as F,t as I}from"./computed-Xoi9XEUx.mjs";import{S as L,b as R,x as z,y as B}from"./base-BxKbbKVO.mjs";import{n as V,t as H}from"./toRefs-CoytPyo0.mjs";export{E as addMutationRecorder,T as batch,I as computed,j as customRef,_ as effect,v as effectScope,y as endBatch,m as getCurrentScope,e as getDeepWatchStrategy,A as getReactiveVersion,B as isProxy,S as isRaw,D as isReactive,R as isReadonly,O as isRef,n as isShallowReactive,t as isShallowRef,M as markRaw,c as nextTick,h as onScopeDispose,F as prelinkReactiveTree,C as reactive,z as readonly,w as ref,p as removeMutationRecorder,s as setDeepWatchStrategy,r as shallowReactive,L as shallowReadonly,a as shallowRef,g as startBatch,b as stop,N as toRaw,H as toRef,V as toRefs,x as toValue,P as touchReactive,u as traverse,f as triggerRef,k as unref,d as watch,o as watchEffect,l as watchPostEffect,i as watchSyncEffect};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as registerApp, $t as onUpdated, A as useSlots, Cn as onUnload, Ct as getCurrentPageStackSnapshot, D as useModel, Dn as getCurrentSetupContext, Dt as isNoSetData, E as useChangeModel, En as getCurrentInstance, Et as usePageStack, G as useScrollOffset, Gt as onBeforeMount, Ht as useIntersectionObserver, I as useUpdatePerformanceListener, J as runSetupFunction, Jn as defineComponent, Jt as onDeactivated, K as useSelectorFields, Kn as createWevuComponent, Kt as onBeforeUnmount, Lt as useLayoutBridge, M as use, Nn as useElementIntersectionObserver, Nt as resolveLayoutBridge, O as useAttrs, On as setCurrentInstance, Ot as markNoSetData, Pt as resolveLayoutHost, Q as registerComponent, Qn as createApp, Qt as onUnmounted, Rn as useDisposables, Rt as useLayoutHosts, Sn as onUnhandledRejection, T as useBindModel, Tn as callHookReturn, Tt as useNavigationBarMetrics, W as useBoundingClientRect, Wt as onActivated, X as setRuntimeSetDataVisibility, Xn as resetWevuDefaults, Xt as onMounted, Y as mountRuntimeInstance, Yt as onErrorCaptured, Z as teardownRuntimeInstance, Zn as setWevuDefaults, Zt as onServerPrefetch, _n as onShareAppMessage, _t as syncRuntimePageLayoutStateFromRuntime, an as onLaunch, at as injectGlobal, b as useNativePageRouter, bn as onTabItemTap, cn as onMoved, ct as setGlobalProvidedValue, dn as onPullDownRefresh, dt as usePageScrollThrottle, en as onAddToFavorites, fn as onReachBottom, gn as onSaveExitState, gt as syncRuntimePageLayoutState, hn as onRouteDone, ht as setPageLayout, in as onHide, it as inject, j as defineAppSetup, k as useNativeInstance, kn as setCurrentSetupContext, ln as onPageNotFound, mn as onResize, mt as resolveRuntimePageLayoutName, nn as onDetached, nt as useAsyncPullDownRefresh, on as onLoad, ot as provide, pn as onReady, q as useSelectorQuery, qn as createWevuScopedSlotComponent, qt as onBeforeUpdate, rn as onError, rt as hasInjectionContext, sn as onMemoryWarning, st as provideGlobal, t as version, tn as onAttached, un as onPageScroll, vn as onShareTimeline, vt as usePageLayout, w as mergeModels, wn as callHookList, wt as getNavigationBarMetrics, x as useNativeRouter, xn as onThemeChange, y as useTemplateRef, yn as onShow, zt as waitForLayoutHost } from "./index-
|
|
1
|
+
import { $ as registerApp, $t as onUpdated, A as useSlots, Cn as onUnload, Ct as getCurrentPageStackSnapshot, D as useModel, Dn as getCurrentSetupContext, Dt as isNoSetData, E as useChangeModel, En as getCurrentInstance, Et as usePageStack, G as useScrollOffset, Gt as onBeforeMount, Ht as useIntersectionObserver, I as useUpdatePerformanceListener, J as runSetupFunction, Jn as defineComponent, Jt as onDeactivated, K as useSelectorFields, Kn as createWevuComponent, Kt as onBeforeUnmount, Lt as useLayoutBridge, M as use, Nn as useElementIntersectionObserver, Nt as resolveLayoutBridge, O as useAttrs, On as setCurrentInstance, Ot as markNoSetData, Pt as resolveLayoutHost, Q as registerComponent, Qn as createApp, Qt as onUnmounted, Rn as useDisposables, Rt as useLayoutHosts, Sn as onUnhandledRejection, T as useBindModel, Tn as callHookReturn, Tt as useNavigationBarMetrics, W as useBoundingClientRect, Wt as onActivated, X as setRuntimeSetDataVisibility, Xn as resetWevuDefaults, Xt as onMounted, Y as mountRuntimeInstance, Yt as onErrorCaptured, Z as teardownRuntimeInstance, Zn as setWevuDefaults, Zt as onServerPrefetch, _n as onShareAppMessage, _t as syncRuntimePageLayoutStateFromRuntime, an as onLaunch, at as injectGlobal, b as useNativePageRouter, bn as onTabItemTap, cn as onMoved, ct as setGlobalProvidedValue, dn as onPullDownRefresh, dt as usePageScrollThrottle, en as onAddToFavorites, fn as onReachBottom, gn as onSaveExitState, gt as syncRuntimePageLayoutState, hn as onRouteDone, ht as setPageLayout, in as onHide, it as inject, j as defineAppSetup, k as useNativeInstance, kn as setCurrentSetupContext, ln as onPageNotFound, mn as onResize, mt as resolveRuntimePageLayoutName, nn as onDetached, nt as useAsyncPullDownRefresh, on as onLoad, ot as provide, pn as onReady, q as useSelectorQuery, qn as createWevuScopedSlotComponent, qt as onBeforeUpdate, rn as onError, rt as hasInjectionContext, sn as onMemoryWarning, st as provideGlobal, t as version, tn as onAttached, un as onPageScroll, vn as onShareTimeline, vt as usePageLayout, w as mergeModels, wn as callHookList, wt as getNavigationBarMetrics, x as useNativeRouter, xn as onThemeChange, y as useTemplateRef, yn as onShow, zt as waitForLayoutHost } from "./index-Dg1-jV9L.mjs";
|
|
2
2
|
export { callHookList, callHookReturn, createApp, createWevuComponent, createWevuScopedSlotComponent, defineAppSetup, defineComponent, getCurrentInstance, getCurrentPageStackSnapshot, getCurrentSetupContext, getNavigationBarMetrics, hasInjectionContext, inject, injectGlobal, isNoSetData, markNoSetData, mergeModels, mountRuntimeInstance, onActivated, onAddToFavorites, onAttached, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onDetached, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMemoryWarning, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, provide, provideGlobal, registerApp, registerComponent, resetWevuDefaults, resolveLayoutBridge, resolveLayoutHost, resolveRuntimePageLayoutName, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setGlobalProvidedValue, setPageLayout, setRuntimeSetDataVisibility, setWevuDefaults, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, teardownRuntimeInstance, use, useAsyncPullDownRefresh, useAttrs, useBindModel, useBoundingClientRect, useChangeModel, useDisposables, useElementIntersectionObserver, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, useNavigationBarMetrics, usePageLayout, usePageScrollThrottle, usePageStack, useScrollOffset, useSelectorFields, useSelectorQuery, useSlots, useTemplateRef, useUpdatePerformanceListener, version, waitForLayoutHost };
|