wevu 6.16.30 → 6.16.32

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.
Files changed (55) hide show
  1. package/dist/base-D-o2Hv6z.mjs +1 -0
  2. package/dist/computed-DdPJb4_M.mjs +1 -0
  3. package/dist/dev/base-CoF39as1.mjs +302 -0
  4. package/dist/dev/base-CoF39as1.mjs.map +1 -0
  5. package/dist/dev/computed-DBCuiNOA.mjs +48 -0
  6. package/dist/dev/computed-DBCuiNOA.mjs.map +1 -0
  7. package/dist/dev/index.mjs +9 -3
  8. package/dist/dev/internal-reactivity.mjs +7 -0
  9. package/dist/dev/internal-runtime.mjs +5 -0
  10. package/dist/dev/internal-template.mjs +3 -0
  11. package/dist/dev/{router-ByTtgUmi.mjs → router-C_io1Bpp.mjs} +4 -301
  12. package/dist/dev/router-C_io1Bpp.mjs.map +1 -0
  13. package/dist/dev/router.mjs +2 -1
  14. package/dist/dev/router.mjs.map +1 -1
  15. package/dist/dev/src-DAWKf0w2.mjs +46 -0
  16. package/dist/dev/{store-eNxaNZbj.mjs → store-BWZEkK8F.mjs} +4 -47
  17. package/dist/dev/store-BWZEkK8F.mjs.map +1 -0
  18. package/dist/dev/store.mjs +1 -1
  19. package/dist/dev/template-BeuoC58i.mjs +91 -0
  20. package/dist/dev/template-BeuoC58i.mjs.map +1 -0
  21. package/dist/dev/{src-B6draUWz.mjs → templateRef-Cl4FZO1Q.mjs} +106 -528
  22. package/dist/dev/templateRef-Cl4FZO1Q.mjs.map +1 -0
  23. package/dist/dev/toRefs-DrE7KHlW.mjs +42 -0
  24. package/dist/dev/toRefs-DrE7KHlW.mjs.map +1 -0
  25. package/dist/dev/vue-demi.mjs +9 -3
  26. package/dist/dev/vue-demi.mjs.map +1 -1
  27. package/dist/dev/watch-CqXsBjp3.mjs +328 -0
  28. package/dist/dev/watch-CqXsBjp3.mjs.map +1 -0
  29. package/dist/{index-DuNbWb3x.d.mts → index-CgXlVT9g.d.mts} +2 -6
  30. package/dist/index.d.mts +2 -1
  31. package/dist/index.mjs +1 -1
  32. package/dist/internal-reactivity.d.mts +2 -0
  33. package/dist/internal-reactivity.mjs +1 -0
  34. package/dist/internal-runtime.d.mts +2 -0
  35. package/dist/internal-runtime.mjs +1 -0
  36. package/dist/internal-template.d.mts +2 -0
  37. package/dist/internal-template.mjs +1 -0
  38. package/dist/router-BiJKkvy7.mjs +1 -0
  39. package/dist/router.mjs +1 -1
  40. package/dist/store-B9C0AuaO.mjs +1 -0
  41. package/dist/store.mjs +1 -1
  42. package/dist/template-CFhlojaH.mjs +1 -0
  43. package/dist/template-DE8e5dj_.d.mts +6 -0
  44. package/dist/templateRef-QWFf20h8.mjs +1 -0
  45. package/dist/toRefs-COgMIEoC.mjs +1 -0
  46. package/dist/vue-demi.d.mts +2 -1
  47. package/dist/vue-demi.mjs +1 -1
  48. package/dist/watch-6_s3_f8q.mjs +1 -0
  49. package/package.json +47 -2
  50. package/dist/dev/router-ByTtgUmi.mjs.map +0 -1
  51. package/dist/dev/src-B6draUWz.mjs.map +0 -1
  52. package/dist/dev/store-eNxaNZbj.mjs.map +0 -1
  53. package/dist/router-C1IObdgc.mjs +0 -1
  54. package/dist/src-DswUAmfF.mjs +0 -1
  55. package/dist/store-CNXa5BsN.mjs +0 -1
@@ -0,0 +1,42 @@
1
+ import { l as isReactive, n as isRef, t as customRef } from "./ref-BoBfMdVt.mjs";
2
+
3
+ //#region src/reactivity/toRefs.ts
4
+ function toRef(object, key, defaultValue) {
5
+ const value = object[key];
6
+ if (isRef(value)) return value;
7
+ return customRef((track, trigger) => ({
8
+ get() {
9
+ track();
10
+ return object[key];
11
+ },
12
+ set(newValue) {
13
+ object[key] = newValue;
14
+ trigger();
15
+ }
16
+ }), defaultValue);
17
+ }
18
+ /**
19
+ * 将一个响应式对象转换成“同结构的普通对象”,其中每个字段都是指向原对象对应属性的 ref。
20
+ *
21
+ * @param object 待转换的响应式对象
22
+ * @returns 包含若干 ref 的普通对象
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const state = reactive({ foo: 1, bar: 2 })
27
+ * const stateAsRefs = toRefs(state)
28
+ *
29
+ * stateAsRefs.foo.value++ // 2
30
+ * state.foo // 2
31
+ * ```
32
+ */
33
+ function toRefs(object) {
34
+ if (!isReactive(object)) console.warn("toRefs() 需要响应式对象,但收到的是普通对象。");
35
+ const result = Array.isArray(object) ? Array.from({ length: object.length }) : {};
36
+ for (const key in object) result[key] = toRef(object, key);
37
+ return result;
38
+ }
39
+
40
+ //#endregion
41
+ export { toRefs as n, toRef as t };
42
+ //# sourceMappingURL=toRefs-DrE7KHlW.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toRefs-DrE7KHlW.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"}
@@ -1,7 +1,13 @@
1
- import { $ as setWevuDefaults, A as defineComponent, B as useLayoutHosts, C as useNavigationBarMetrics, Ct as isShallowRef, D as useDisposables, Dt as __reExport, E as useElementIntersectionObserver, Et as __exportAll, F as resolveLayoutBridge, G as teardownRuntimeInstance, H as registerApp, I as resolveLayoutHost, J as setPageLayout, K as runSetupFunction, L as unregisterPageLayoutBridge, M as registerComponent, N as registerPageLayoutBridge, O as createWevuComponent, P as registerRuntimeLayoutHosts, Q as resetWevuDefaults, R as unregisterRuntimeLayoutHosts, S as getNavigationBarMetrics, St as toRefs, T as useIntersectionObserver, Tt as triggerRef, U as mountRuntimeInstance, V as waitForLayoutHost, W as setRuntimeSetDataVisibility, X as syncRuntimePageLayoutStateFromRuntime, Y as syncRuntimePageLayoutState, Z as usePageLayout, _ as useSelectorFields, _t as onServerPrefetch, a as useModel, at as watchPostEffect, b as usePageScrollThrottle, bt as traverse, c as useSlots, ct as setDeepWatchStrategy, d as useUpdatePerformanceListener, dt as onBeforeMount, et as isNoSetData, f as normalizeClass, ft as onBeforeUnmount, g as useScrollOffset, gt as onMounted, h as useBoundingClientRect, ht as onErrorCaptured, i as useChangeModel, it as watchEffect, j as createApp, k as createWevuScopedSlotComponent, l as defineAppSetup, lt as callUpdateHooks, m as resolvePropValue, mt as onDeactivated, n as mergeModels, nt as version, o as useAttrs, ot as watchSyncEffect, p as normalizeStyle, pt as onBeforeUpdate, q as resolveRuntimePageLayoutName, r as useBindModel, rt as watch, s as useNativeInstance, st as getDeepWatchStrategy, t as useTemplateRef, tt as markNoSetData, u as use, ut as onActivated, v as useSelectorQuery, vt as onUnmounted, w as usePageStack, wt as shallowRef, x as getCurrentPageStackSnapshot, xt as toRef, y as useAsyncPullDownRefresh, yt as onUpdated, z as useLayoutBridge } from "./src-B6draUWz.mjs";
1
+ import { n as __reExport, t as __exportAll } from "./src-DAWKf0w2.mjs";
2
2
  import { C as effect, D as onScopeDispose, E as getCurrentScope, N as nextTick, O as startBatch, S as batch, T as endBatch, a as toValue, b as addMutationRecorder, c as isRaw, d as reactive, f as isShallowReactive, g as touchReactive, h as prelinkReactiveTree, i as ref, k as stop, l as isReactive, n as isRef, o as unref, p as shallowReactive, s as getReactiveVersion, t as customRef, u as markRaw, w as effectScope, x as removeMutationRecorder, y as toRaw } from "./ref-BoBfMdVt.mjs";
3
- import { i as computed, n as defineStore, r as createStore, t as storeToRefs } from "./store-eNxaNZbj.mjs";
4
- import { $ as onUnhandledRejection, A as setGlobalProvidedValue, B as onPageNotFound, F as onHide, G as onResize, H as onPullDownRefresh, I as onLaunch, J as onShareAppMessage, K as onRouteDone, L as onLoad, M as onAttached, N as onDetached, P as onError, Q as onThemeChange, R as onMemoryWarning, U as onReachBottom, V as onPageScroll, W as onReady, X as onShow, Y as onShareTimeline, Z as onTabItemTap, _ as provide, _t as readonly, at as getCurrentSetupContext, ct as setCurrentSetupContext, et as onUnload, g as injectGlobal, gt as isReadonly, h as inject, ht as isProxy, it as getCurrentInstance, j as onAddToFavorites, m as hasInjectionContext, n as useNativeRouter, nt as callHookList, q as onSaveExitState, rt as callHookReturn, st as setCurrentInstance, t as useNativePageRouter, v as provideGlobal, vt as shallowReadonly, z as onMoved } from "./router-ByTtgUmi.mjs";
3
+ import { t as computed } from "./computed-DBCuiNOA.mjs";
4
+ 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-CoF39as1.mjs";
5
+ import { a as getDeepWatchStrategy, c as isShallowRef, i as watchSyncEffect, l as shallowRef, n as watchEffect, o as setDeepWatchStrategy, r as watchPostEffect, s as traverse, t as watch, u as triggerRef } from "./watch-CqXsBjp3.mjs";
6
+ import { n as toRefs, t as toRef } from "./toRefs-DrE7KHlW.mjs";
7
+ import { $ as onUnhandledRejection, A as setGlobalProvidedValue, B as onPageNotFound, F as onHide, G as onResize, H as onPullDownRefresh, I as onLaunch, J as onShareAppMessage, K as onRouteDone, L as onLoad, M as onAttached, N as onDetached, P as onError, Q as onThemeChange, R as onMemoryWarning, U as onReachBottom, V as onPageScroll, W as onReady, X as onShow, Y as onShareTimeline, Z as onTabItemTap, _ as provide, et as onUnload, g as injectGlobal, h as inject, j as onAddToFavorites, m as hasInjectionContext, n as useNativeRouter, q as onSaveExitState, t as useNativePageRouter, v as provideGlobal, z as onMoved } from "./router-C_io1Bpp.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-Cl4FZO1Q.mjs";
9
+ import { n as normalizeStyle, r as resolvePropValue, t as normalizeClass } from "./template-BeuoC58i.mjs";
10
+ import { n as defineStore, r as createStore, t as storeToRefs } from "./store-BWZEkK8F.mjs";
5
11
 
6
12
  export * from "@wevu/web-apis"
7
13
 
@@ -1 +1 @@
1
- {"version":3,"file":"vue-demi.mjs","names":[],"sources":["../../src/vue-demi.ts"],"sourcesContent":["export * from './index'\nexport { version } from './version'\n\n/**\n * 标记当前兼容层运行在 Vue 3 风格分支。\n */\nexport const isVue2 = false\n\n/**\n * 标记当前兼容层运行在 Vue 3 风格分支。\n */\nexport const isVue3 = true\n\n/**\n * 与 `vue-demi` 保持一致,Vue 3 分支下不暴露 Vue 2 构造器。\n */\nexport const Vue2 = undefined\n\n/**\n * Vue 3 分支的 `vue-demi.install()` 为 no-op,这里保持同样语义。\n */\nexport function install() {}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,MAAa,SAAS;;;;AAKtB,MAAa,SAAS;;;;AAKtB,MAAa,OAAO;;;;AAKpB,SAAgB,UAAU,CAAC"}
1
+ {"version":3,"file":"vue-demi.mjs","names":[],"sources":["../../src/vue-demi.ts"],"sourcesContent":["export * from './index'\nexport { version } from './version'\n\n/**\n * 标记当前兼容层运行在 Vue 3 风格分支。\n */\nexport const isVue2 = false\n\n/**\n * 标记当前兼容层运行在 Vue 3 风格分支。\n */\nexport const isVue3 = true\n\n/**\n * 与 `vue-demi` 保持一致,Vue 3 分支下不暴露 Vue 2 构造器。\n */\nexport const Vue2 = undefined\n\n/**\n * Vue 3 分支的 `vue-demi.install()` 为 no-op,这里保持同样语义。\n */\nexport function install() {}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,MAAa,SAAS;;;;AAKtB,MAAa,SAAS;;;;AAKtB,MAAa,OAAO;;;;AAKpB,SAAgB,UAAU,CAAC"}
@@ -0,0 +1,328 @@
1
+ import { C as effect, D as onScopeDispose, M as triggerEffects, N as nextTick, P as queueJob, g as touchReactive, k as stop, l as isReactive, n as isRef, t as customRef, v as isObject, y as toRaw } from "./ref-BoBfMdVt.mjs";
2
+ import { s as getCurrentInstance, u as setCurrentInstance } from "./base-CoF39as1.mjs";
3
+
4
+ //#region src/reactivity/shallowRef.ts
5
+ /**
6
+ * 创建一个“浅层” ref:它只在 .value 被整体替换时触发依赖,不会对内部对象做深层响应式处理。
7
+ *
8
+ * @param value 初始值
9
+ * @param defaultValue 传递给 customRef 的默认值,可用于兜底
10
+ * @returns 仅跟踪自身 .value 变更的浅层 ref
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const state = shallowRef({ count: 0 })
15
+ * state.value = { count: 1 } // 会触发依赖
16
+ * state.value.count++ // 不会触发依赖(内部属性未被深度代理)
17
+ * ```
18
+ */
19
+ function shallowRef(value, defaultValue) {
20
+ return customRef((track, trigger) => ({
21
+ get() {
22
+ track();
23
+ return value;
24
+ },
25
+ set(newValue) {
26
+ if (Object.is(value, newValue)) return;
27
+ value = newValue;
28
+ trigger();
29
+ }
30
+ }), defaultValue);
31
+ }
32
+ /**
33
+ * 判断传入值是否为浅层 ref。
34
+ *
35
+ * @param r 待判断的值
36
+ * @returns 若为浅层 ref 则返回 true
37
+ */
38
+ function isShallowRef(r) {
39
+ return isRef(r) && typeof r.value !== "function";
40
+ }
41
+ /**
42
+ * 主动触发一次浅层 ref 的更新(无需深度比较)。
43
+ *
44
+ * @param ref 需要触发的 ref
45
+ */
46
+ function triggerRef(ref) {
47
+ if (isRef(ref)) {
48
+ const dep = ref.dep;
49
+ if (dep) {
50
+ triggerEffects(dep);
51
+ return;
52
+ }
53
+ ref.value = ref.value;
54
+ }
55
+ }
56
+
57
+ //#endregion
58
+ //#region src/reactivity/traverse.ts
59
+ /**
60
+ * 深度遍历工具(框架内部依赖收集使用)。
61
+ * @internal
62
+ */
63
+ function traverse(value, depth = Infinity, seen = /* @__PURE__ */ new Map()) {
64
+ if (depth <= 0 || !isObject(value)) return value;
65
+ if (isRef(value)) {
66
+ traverse(value.value, depth - 1, seen);
67
+ return value;
68
+ }
69
+ if (value["__r_skip"]) return value;
70
+ const existingDepth = seen.get(value);
71
+ if (existingDepth !== void 0 && existingDepth >= depth) return value;
72
+ seen.set(value, depth);
73
+ const nextDepth = depth - 1;
74
+ if (Array.isArray(value)) {
75
+ value.forEach((item) => traverse(item, nextDepth, seen));
76
+ return value;
77
+ }
78
+ if (value instanceof Map) {
79
+ value.forEach((item) => traverse(item, nextDepth, seen));
80
+ return value;
81
+ }
82
+ if (value instanceof Set) {
83
+ value.forEach((item) => traverse(item, nextDepth, seen));
84
+ return value;
85
+ }
86
+ const target = isReactive(value) && depth !== Infinity ? toRaw(value) : value;
87
+ for (const key in target) traverse(value[key], nextDepth, seen);
88
+ return value;
89
+ }
90
+
91
+ //#endregion
92
+ //#region src/reactivity/watch/types.ts
93
+ let __deepWatchStrategy = "version";
94
+ /**
95
+ * 设置深度 watch 内部策略(测试/框架内部使用)。
96
+ * @internal
97
+ */
98
+ function setDeepWatchStrategy(strategy) {
99
+ __deepWatchStrategy = strategy;
100
+ }
101
+ /**
102
+ * 获取深度 watch 内部策略(测试/框架内部使用)。
103
+ * @internal
104
+ */
105
+ function getDeepWatchStrategy() {
106
+ return __deepWatchStrategy;
107
+ }
108
+
109
+ //#endregion
110
+ //#region src/reactivity/watch/helpers.ts
111
+ function resolveWatchSource(item) {
112
+ if (typeof item === "function") return item();
113
+ if (isRef(item)) return item.value;
114
+ if (isReactive(item)) return item;
115
+ throw new Error("无效的 watch 源");
116
+ }
117
+ function createWatchGetter(source) {
118
+ const isReactiveSource = isReactive(source);
119
+ const isMultiSource = Array.isArray(source) && !isReactiveSource;
120
+ let getter;
121
+ if (isMultiSource) {
122
+ const sources = source;
123
+ getter = () => sources.map((item) => resolveWatchSource(item));
124
+ } else if (typeof source === "function") getter = source;
125
+ else if (isRef(source)) getter = () => source.value;
126
+ else if (isReactiveSource) getter = () => source;
127
+ else throw new Error("无效的 watch 源");
128
+ return {
129
+ getter,
130
+ isMultiSource,
131
+ isReactiveSource
132
+ };
133
+ }
134
+ function applyDeepWatchGetter(getter, source, isMultiSource, isReactiveSource, deepOption) {
135
+ const deepDefault = isMultiSource ? source.some((item) => isReactive(item)) : isReactiveSource;
136
+ const deep = deepOption !== null && deepOption !== void 0 ? deepOption : deepDefault;
137
+ if (!(deep === true || typeof deep === "number")) return getter;
138
+ const depth = typeof deep === "number" ? deep : deep ? Infinity : 0;
139
+ return () => {
140
+ const value = getter();
141
+ const strategy = getDeepWatchStrategy();
142
+ if (isMultiSource && Array.isArray(value)) return value.map((item) => {
143
+ if (strategy === "version" && isReactive(item)) {
144
+ touchReactive(item);
145
+ return item;
146
+ }
147
+ return traverse(item, depth);
148
+ });
149
+ if (strategy === "version" && isReactive(value)) {
150
+ touchReactive(value);
151
+ return value;
152
+ }
153
+ return traverse(value, depth);
154
+ };
155
+ }
156
+ function dispatchScheduledJob(job, flush, isFirstRun, scheduler) {
157
+ if (scheduler) {
158
+ scheduler(job, isFirstRun);
159
+ return;
160
+ }
161
+ if (flush === "sync") {
162
+ job();
163
+ return;
164
+ }
165
+ if (flush === "post") {
166
+ nextTick(() => queueJob(job));
167
+ return;
168
+ }
169
+ if (isFirstRun) job();
170
+ else queueJob(job);
171
+ }
172
+
173
+ //#endregion
174
+ //#region src/reactivity/watch.ts
175
+ function watch(source, cb, options = {}) {
176
+ var _options$flush;
177
+ const ownerInstance = getCurrentInstance();
178
+ const watchGetterContext = createWatchGetter(source);
179
+ const getter = applyDeepWatchGetter(watchGetterContext.getter, source, watchGetterContext.isMultiSource, watchGetterContext.isReactiveSource, options.deep);
180
+ let cleanup;
181
+ const onCleanup = (fn) => {
182
+ cleanup = fn;
183
+ };
184
+ let oldValue;
185
+ let runner;
186
+ let paused = false;
187
+ let pauseToken = 0;
188
+ let scheduledToken = pauseToken;
189
+ let stopHandle;
190
+ const cbWithOnce = options.once ? (value, oldVal, cleanupRegister) => {
191
+ cb(value, oldVal, cleanupRegister);
192
+ stopHandle();
193
+ } : cb;
194
+ const flush = (_options$flush = options.flush) !== null && _options$flush !== void 0 ? _options$flush : "pre";
195
+ const runJob = (token) => {
196
+ if (!runner.active || paused || token !== pauseToken) return;
197
+ const newValue = runner();
198
+ cleanup === null || cleanup === void 0 || cleanup();
199
+ const previousInstance = getCurrentInstance();
200
+ setCurrentInstance(ownerInstance);
201
+ try {
202
+ cbWithOnce(newValue, oldValue, onCleanup);
203
+ } finally {
204
+ setCurrentInstance(previousInstance);
205
+ }
206
+ oldValue = newValue;
207
+ };
208
+ const scheduledJob = () => runJob(scheduledToken);
209
+ const scheduleJob = (isFirstRun) => {
210
+ scheduledToken = pauseToken;
211
+ dispatchScheduledJob(scheduledJob, flush, isFirstRun, options.scheduler);
212
+ };
213
+ runner = effect(() => getter(), {
214
+ scheduler: () => {
215
+ if (paused) return;
216
+ scheduleJob(false);
217
+ },
218
+ lazy: true
219
+ });
220
+ const doStop = () => {
221
+ cleanup === null || cleanup === void 0 || cleanup();
222
+ cleanup = void 0;
223
+ stop(runner);
224
+ };
225
+ stopHandle = doStop;
226
+ stopHandle.stop = doStop;
227
+ stopHandle.pause = () => {
228
+ if (!paused) {
229
+ paused = true;
230
+ pauseToken += 1;
231
+ }
232
+ };
233
+ stopHandle.resume = () => {
234
+ if (!paused || !runner.active) return;
235
+ paused = false;
236
+ oldValue = runner();
237
+ };
238
+ if (options.immediate) runJob(pauseToken);
239
+ else oldValue = runner();
240
+ onScopeDispose(stopHandle);
241
+ return stopHandle;
242
+ }
243
+ /**
244
+ * watchEffect 注册一个响应式副作用,可选清理函数。
245
+ * 副作用会立即执行,并在依赖变化时重新运行。
246
+ */
247
+ function watchEffect(effectFn, options = {}) {
248
+ var _options$flush2;
249
+ const ownerInstance = getCurrentInstance();
250
+ let cleanup;
251
+ const onCleanup = (fn) => {
252
+ cleanup = fn;
253
+ };
254
+ let runner;
255
+ let paused = false;
256
+ let pauseToken = 0;
257
+ let scheduledToken = pauseToken;
258
+ const flush = (_options$flush2 = options.flush) !== null && _options$flush2 !== void 0 ? _options$flush2 : "pre";
259
+ const runJob = (token) => {
260
+ if (!runner.active || paused || token !== pauseToken) return;
261
+ runner();
262
+ };
263
+ const scheduledJob = () => runJob(scheduledToken);
264
+ const scheduleJob = (isFirstRun) => {
265
+ scheduledToken = pauseToken;
266
+ dispatchScheduledJob(scheduledJob, flush, isFirstRun);
267
+ };
268
+ runner = effect(() => {
269
+ cleanup === null || cleanup === void 0 || cleanup();
270
+ cleanup = void 0;
271
+ const previousInstance = getCurrentInstance();
272
+ setCurrentInstance(ownerInstance);
273
+ try {
274
+ effectFn(onCleanup);
275
+ } finally {
276
+ setCurrentInstance(previousInstance);
277
+ }
278
+ }, {
279
+ lazy: true,
280
+ scheduler: () => {
281
+ if (paused) return;
282
+ scheduleJob(false);
283
+ }
284
+ });
285
+ scheduleJob(true);
286
+ const doStop = () => {
287
+ cleanup === null || cleanup === void 0 || cleanup();
288
+ cleanup = void 0;
289
+ stop(runner);
290
+ };
291
+ const stopHandle = doStop;
292
+ stopHandle.stop = doStop;
293
+ stopHandle.pause = () => {
294
+ if (!paused) {
295
+ paused = true;
296
+ pauseToken += 1;
297
+ }
298
+ };
299
+ stopHandle.resume = () => {
300
+ if (!paused || !runner.active) return;
301
+ paused = false;
302
+ scheduleJob(true);
303
+ };
304
+ onScopeDispose(stopHandle);
305
+ return stopHandle;
306
+ }
307
+ /**
308
+ * 以后置刷新的方式运行副作用,与 Vue 的 `watchPostEffect()` 兼容。
309
+ */
310
+ function watchPostEffect(effectFn, options = {}) {
311
+ return watchEffect(effectFn, {
312
+ ...options,
313
+ flush: "post"
314
+ });
315
+ }
316
+ /**
317
+ * 以同步刷新的方式运行副作用,与 Vue 的 `watchSyncEffect()` 兼容。
318
+ */
319
+ function watchSyncEffect(effectFn, options = {}) {
320
+ return watchEffect(effectFn, {
321
+ ...options,
322
+ flush: "sync"
323
+ });
324
+ }
325
+
326
+ //#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-CqXsBjp3.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watch-CqXsBjp3.mjs","names":[],"sources":["../../src/reactivity/shallowRef.ts","../../src/reactivity/traverse.ts","../../src/reactivity/watch/types.ts","../../src/reactivity/watch/helpers.ts","../../src/reactivity/watch.ts"],"sourcesContent":["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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"}
@@ -1,5 +1,6 @@
1
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-BjaNcUW3.mjs";
2
2
  import { $ as shallowRef, $n as HostMiniProgramNodesRefFields, A as watchPostEffect, An as MiniProgramPageLifetimes, Ar as MiniProgramRuntimeHostNamespaceBySource, At as nextTick, B as WatchOptions, Bn as HostMiniProgramComponentInstance, Bt as MaybeRef, C as ExtractMethods, Cn as MiniProgramAppOptions, Cr as MiniProgramHostNamespace, Ct as effect, D as ModelBindingPayload, Dn as MiniProgramComponentPropertyValue, Dr as MiniProgramPlatformHostNamespaceBySource, Dt as onScopeDispose, E as ModelBindingOptions, En as MiniProgramComponentOptions, Er as MiniProgramHostSourceRegistry, Et as getCurrentScope, F as OnCleanup, Fn as HostMiniProgramBoundingClientRectResult, Fr as WechatMiniProgramHostNamespace, Ft as WritableComputedRef, G as WatchStopHandle, Gn as HostMiniProgramComponentTrivialInstance, Gt as isRef, H as WatchSource, Hn as HostMiniProgramComponentPropertyOption, Ht as Ref, I as WatchCallback, In as HostMiniProgramComponentAllFullProperty, Ir as WechatMiniProgramHostSourceContract, It as computed, J as traverse, Jn as HostMiniProgramIntersectionObserverOptions, Jt as unref, K as getDeepWatchStrategy, Kn as HostMiniProgramComponentTrivialOption, Kt as ref, L as WatchEffect, Ln as HostMiniProgramComponentAllProperty, Lt as CustomRefFactory, M as MapSources, Mn as HostMiniProgramAppOptions, Mr as MiniProgramRuntimeHostSourceRegistry, Mt as ComputedRef, N as MaybeUndefined, Nn as HostMiniProgramAppTrivialInstance, Nr as TtMiniProgramHostNamespace, Nt as ComputedSetter, O as watch, On as MiniProgramComponentRawOptions, Or as MiniProgramPlatformHostSourceName, Ot as startBatch, P as MultiWatchSources, Pn as HostMiniProgramBehaviorIdentifier, Pr as TtMiniProgramHostSourceContract, Pt as WritableComputedOptions, Q as isShallowRef, Qn as HostMiniProgramNodesRef, Qt as MiniProgramRouterSwitchTabOption, R as WatchEffectOptions, Rn as HostMiniProgramComponentBehaviorOptions, Rt as CustomRefOptions, S as ExtractComputed, Sn as MiniProgramAdapter, Sr as DouyinMiniProgramHostSourceContract, St as batch, T as ModelBinding, Tn as MiniProgramComponentInstance, Tr as MiniProgramHostSourceName, Tt as endBatch, U as WatchSourceValue, Un as HostMiniProgramComponentPropertyValue, Ut as ShallowRef, V as WatchScheduler, Vn as HostMiniProgramComponentMethodOption, Vt as MaybeRefOrGetter, W as WatchSources, Wn as HostMiniProgramComponentShortProperty, Wt as customRef, X as toRef, Xn as HostMiniProgramMemoryWarningResult, Xt as MiniProgramRouterReLaunchOption, Y as ToRefs, Yn as HostMiniProgramLaunchOptions, Yt as MiniProgramRouterNavigateToOption, Z as toRefs, Zn as HostMiniProgramNavigateToOption, Zt as MiniProgramRouterRedirectToOption, _ as RuntimeApp, _n as NativeTypeHint, _r as AlipayMiniProgramHostNamespace, _t as MutationOp, a as NativeComponent, ar as HostMiniProgramReLaunchOption, at as getReactiveVersion, b as ComponentPublicInstance, bn as PropOptions, br as DefaultMiniProgramHostSourceContract, bt as removeMutationRecorder, c as ShallowUnwrapRef, cn as ExtractDefaultPropTypes, cr as HostMiniProgramSaveExitState, ct as markRaw, d as SetupContext, dn as InferNativePropType, dr as HostMiniProgramShareAppMessageOption, dt as isShallowReactive, er as HostMiniProgramPageLifetime, et as triggerRef, f as SetupContextNativeInstance, fn as InferNativeProps, fr as HostMiniProgramSwitchTabOption, ft as shallowReactive, g as InternalRuntimeStateFields, gn as NativePropsOptions, gr as HostMiniProgramUnhandledRejectionResult, gt as MutationKind, h as InternalRuntimeState, hn as NativePropType, hr as HostMiniProgramTriggerEventOptions, ht as touchReactive, i as DefineComponent, ir as HostMiniProgramPageTrivialInstance, it as shallowReadonly, j as watchSyncEffect, jn as HostMiniProgramAddToFavoritesOption, jr as MiniProgramRuntimeHostSourceName, jt as ComputedGetter, k as watchEffect, kn as MiniProgramInstance, kr as MiniProgramPlatformHostSourceRegistry, kt as stop, l as VNode, ln as ExtractPropTypes$1, lr as HostMiniProgramScrollOffsetResult, lt as reactive, m as AppConfig, mn as InferProps, mr as HostMiniProgramThemeChangeResult, mt as prelinkReactiveTree, n as ComponentCustomProps, nr as HostMiniProgramPageResizeOption, nt as isReadonly, o as ObjectDirective, on as WevuTypedRouterRouteMap, or as HostMiniProgramRedirectToOption, ot as isRaw, p as SetupFunction, pn as InferPropType, pr as HostMiniProgramTabItemTapOption, pt as PrelinkReactiveTreeOptions, q as setDeepWatchStrategy, qn as HostMiniProgramIntersectionObserver, qt as toValue, r as ComponentOptionsMixin, rn as SetupContextRouter, rr as HostMiniProgramPageScrollOption, rt as readonly, s as PublicProps, sn as ComponentPropsOptions, sr as HostMiniProgramRouter, st as isReactive, t as AllowedComponentProps, tr as HostMiniProgramPageNotFoundOptions, tt as isProxy, u as VNodeProps, un as ExtractPublicPropTypes, ur as HostMiniProgramSelectorQuery, ut as toRaw, v as RuntimeInstance, vn as NativeTypedProperty, vr as AlipayMiniProgramHostSourceContract, vt as MutationRecord, w as MethodDefinitions, wn as MiniProgramBehaviorIdentifier, wr as MiniProgramHostNamespaceBySource, wt as effectScope, x as ComputedDefinitions, xn as PropType, xr as DouyinMiniProgramHostNamespace, xt as EffectScope, y as WevuPlugin, yn as PropConstructor, yr as DefaultMiniProgramHostNamespace, yt as addMutationRecorder, z as WatchMultiSources, zn as HostMiniProgramComponentEmptyArray, zt as CustomRefSource } from "./vue-types-xMdYZRuG.mjs";
3
+ import { n as normalizeStyle, r as resolvePropValue, t as normalizeClass } from "./template-DE8e5dj_.mjs";
3
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-C6Jyiw-u.mjs";
4
5
 
5
6
  //#region src/runtime/types/setData.d.ts
@@ -957,11 +958,6 @@ declare function useScrollOffset(options?: UseScrollOffsetOptions & {
957
958
  }): (selector: string) => Promise<HostMiniProgramScrollOffsetResult | null>;
958
959
  declare function useScrollOffset(options: UseAllScrollOffsetOptions): (selector: string) => Promise<HostMiniProgramScrollOffsetResult[] | null>;
959
960
  //#endregion
960
- //#region src/runtime/template.d.ts
961
- declare function normalizeStyle(value: any): string;
962
- declare function normalizeClass(value: any): string;
963
- declare function resolvePropValue(target: any, key: string, fallback: any, preferProps?: boolean): any;
964
- //#endregion
965
961
  //#region src/runtime/updatePerformance.d.ts
966
962
  type UpdatePerformanceListenerResult = Record<string, any>;
967
963
  type UpdatePerformanceListener = (result: UpdatePerformanceListenerResult) => void;
@@ -1183,4 +1179,4 @@ declare function defineModel<T = any, M extends PropertyKey = string, G = T, S =
1183
1179
  //#region src/version.d.ts
1184
1180
  declare const version: string;
1185
1181
  //#endregion
1186
- export { setRuntimeSetDataVisibility as $, resetWevuDefaults as $n, onMounted as $t, useSlots as A, getCurrentSetupContext as An, isNoSetData as At, UseAllBoundingClientRectOptions as B, DisposableObject as Bn, useLayoutBridge as Bt, UseModelOptions as C, onTabItemTap as Cn, PageStackSnapshot as Ct, useModel as D, callHookList as Dn, getNavigationBarMetrics as Dt, useChangeModel as E, onUnload as En, getCurrentPageStackSnapshot as Et, UseUpdatePerformanceListenerStopHandle as F, UseElementIntersectionObserverReturn as Fn, registerRuntimeLayoutHosts as Ft, UseSelectorFieldsOptions as G, SetupContextWithTypeProps as Gn, useIntersectionObserver as Gt, UseAllSelectorFieldsOptions as H, ComponentDefinition as Hn, waitForLayoutHost as Ht, useUpdatePerformanceListener as I, useElementIntersectionObserver as In, resolveLayoutBridge as It, useScrollOffset as J, WevuDefinedComponent as Jn, onBeforeMount as Jt, UseSelectorQueryOptions as K, SetupFunctionWithTypeProps as Kn, callUpdateHooks as Kt, normalizeClass as L, DisposableBag as Ln, resolveLayoutHost as Lt, use as M, setCurrentSetupContext as Mn, LayoutBridgeInstance as Mt, UpdatePerformanceListener as N, ElementIntersectionObserverCallback as Nn, LayoutHostBinding as Nt, useAttrs as O, callHookReturn as On, useNavigationBarMetrics as Ot, UpdatePerformanceListenerResult as P, UseElementIntersectionObserverOptions as Pn, registerPageLayoutBridge as Pt, mountRuntimeInstance as Q, WevuDefaults as Qn, onErrorCaptured as Qt, normalizeStyle as R, DisposableLike as Rn, unregisterPageLayoutBridge as Rt, ModelModifiers as S, onShow as Sn, NavigationBarMetrics as St, useBindModel as T, onUnhandledRejection as Tn, UsePageStackOptions as Tt, UseBoundingClientRectOptions as U, DefineComponentTypePropsOptions as Un, UseIntersectionObserverOptions as Ut, UseAllScrollOffsetOptions as V, useDisposables as Vn, useLayoutHosts as Vt, UseScrollOffsetOptions as W, DefineComponentWithTypeProps as Wn, UseIntersectionObserverResult as Wt, useSelectorQuery as X, createWevuScopedSlotComponent as Xn, onBeforeUpdate as Xt, useSelectorFields as Y, createWevuComponent as Yn, onBeforeUnmount as Yt, runSetupFunction as Z, defineComponent as Zn, onDeactivated as Zt, EmitsOptions as _, onResize as _n, resolveRuntimePageLayoutName as _t, PageLayoutMeta as a, onDetached as an, TemplateRefValue as ar, useAsyncPullDownRefresh as at, useNativePageRouter as b, onShareAppMessage as bn, syncRuntimePageLayoutStateFromRuntime as bt, defineExpose as c, onLaunch as cn, WevuGlobalDirectives as cr, injectGlobal as ct, definePageMeta as d, onMoved as dn, DefineAppOptions as dr, setGlobalProvidedValue as dt, onServerPrefetch as en, setWevuDefaults as er, teardownRuntimeInstance as et, defineProps as f, onPageNotFound as fn, DefineComponentOptions as fr, UsePageScrollThrottleOptions as ft, EmitFn as g, onReady as gn, WevuPageLayoutMap as gt, ComponentTypeEmits as h, onReachBottom as hn, SetDataSnapshotOptions as hr, PageLayoutState as ht, ModelRef as i, onAttached as in, MiniProgramTemplateRefValue as ir, UseAsyncPullDownRefreshOptions as it, defineAppSetup as j, setCurrentInstance as jn, markNoSetData as jt, useNativeInstance as k, getCurrentInstance as kn, usePageStack as kt, defineModel as l, onLoad as ln, CreateAppOptions as lr, provide as lt, withDefaults as m, onPullDownRefresh as mn, SetDataDebugInfo as mr, usePageScrollThrottle as mt, DefineModelModifiers as n, onUpdated as nn, GlobalComponents as nr, registerApp as nt, PageMeta as o, onError as on, TemplateRefs as or, hasInjectionContext as ot, defineSlots as p, onPageScroll as pn, PageFeatures as pr, UsePageScrollThrottleStopHandle as pt, useBoundingClientRect as q, WevuComponentConstructor as qn, onActivated as qt, DefineModelTransformOptions as r, onAddToFavorites as rn, GlobalDirectives as rr, PullDownRefreshHandler as rt, defineEmits as s, onHide as sn, WevuGlobalComponents as sr, inject as st, version as t, onUnmounted as tn, createApp as tr, registerComponent as tt, defineOptions as u, onMemoryWarning as un, DataOption as ur, provideGlobal as ut, TemplateRef as v, onRouteDone as vn, setPageLayout as vt, mergeModels as w, onThemeChange as wn, UseNavigationBarMetricsOptions as wt, useNativeRouter as x, onShareTimeline as xn, usePageLayout as xt, useTemplateRef as y, onSaveExitState as yn, syncRuntimePageLayoutState as yt, resolvePropValue as z, DisposableMethodName as zn, unregisterRuntimeLayoutHosts as zt };
1182
+ export { registerApp as $, GlobalComponents as $n, onUpdated as $t, useSlots as A, ElementIntersectionObserverCallback as An, LayoutHostBinding as At, UseBoundingClientRectOptions as B, DefineComponentTypePropsOptions as Bn, UseIntersectionObserverOptions as Bt, UseModelOptions as C, onUnload as Cn, getCurrentPageStackSnapshot as Ct, useModel as D, getCurrentSetupContext as Dn, isNoSetData as Dt, useChangeModel as E, getCurrentInstance as En, usePageStack as Et, UseUpdatePerformanceListenerStopHandle as F, DisposableLike as Fn, unregisterPageLayoutBridge as Ft, useScrollOffset as G, WevuDefinedComponent as Gn, onBeforeMount as Gt, UseSelectorFieldsOptions as H, SetupContextWithTypeProps as Hn, useIntersectionObserver as Ht, useUpdatePerformanceListener as I, DisposableMethodName as In, unregisterRuntimeLayoutHosts as It, runSetupFunction as J, defineComponent as Jn, onDeactivated as Jt, useSelectorFields as K, createWevuComponent as Kn, onBeforeUnmount as Kt, UseAllBoundingClientRectOptions as L, DisposableObject as Ln, useLayoutBridge as Lt, use as M, UseElementIntersectionObserverReturn as Mn, registerRuntimeLayoutHosts as Mt, UpdatePerformanceListener as N, useElementIntersectionObserver as Nn, resolveLayoutBridge as Nt, useAttrs as O, setCurrentInstance as On, markNoSetData as Ot, UpdatePerformanceListenerResult as P, DisposableBag as Pn, resolveLayoutHost as Pt, registerComponent as Q, createApp as Qn, onUnmounted as Qt, UseAllScrollOffsetOptions as R, useDisposables as Rn, useLayoutHosts as Rt, ModelModifiers as S, onUnhandledRejection as Sn, UsePageStackOptions as St, useBindModel as T, callHookReturn as Tn, useNavigationBarMetrics as Tt, UseSelectorQueryOptions as U, SetupFunctionWithTypeProps as Un, callUpdateHooks as Ut, UseScrollOffsetOptions as V, DefineComponentWithTypeProps as Vn, UseIntersectionObserverResult as Vt, useBoundingClientRect as W, WevuComponentConstructor as Wn, onActivated as Wt, setRuntimeSetDataVisibility as X, resetWevuDefaults as Xn, onMounted as Xt, mountRuntimeInstance as Y, WevuDefaults as Yn, onErrorCaptured as Yt, teardownRuntimeInstance as Z, setWevuDefaults as Zn, onServerPrefetch as Zt, EmitsOptions as _, onShareAppMessage as _n, syncRuntimePageLayoutStateFromRuntime as _t, PageLayoutMeta as a, onLaunch as an, WevuGlobalDirectives as ar, injectGlobal as at, useNativePageRouter as b, onTabItemTap as bn, PageStackSnapshot as bt, defineExpose as c, onMoved as cn, DefineAppOptions as cr, setGlobalProvidedValue as ct, definePageMeta as d, onPullDownRefresh as dn, SetDataDebugInfo as dr, usePageScrollThrottle as dt, onAddToFavorites as en, GlobalDirectives as er, PullDownRefreshHandler as et, defineProps as f, onReachBottom as fn, SetDataSnapshotOptions as fr, PageLayoutState as ft, EmitFn as g, onSaveExitState as gn, syncRuntimePageLayoutState as gt, ComponentTypeEmits as h, onRouteDone as hn, setPageLayout as ht, ModelRef as i, onHide as in, WevuGlobalComponents as ir, inject as it, defineAppSetup as j, UseElementIntersectionObserverOptions as jn, registerPageLayoutBridge as jt, useNativeInstance as k, setCurrentSetupContext as kn, LayoutBridgeInstance as kt, defineModel as l, onPageNotFound as ln, DefineComponentOptions as lr, UsePageScrollThrottleOptions as lt, withDefaults as m, onResize as mn, resolveRuntimePageLayoutName as mt, DefineModelModifiers as n, onDetached as nn, TemplateRefValue as nr, useAsyncPullDownRefresh as nt, PageMeta as o, onLoad as on, CreateAppOptions as or, provide as ot, defineSlots as p, onReady as pn, WevuPageLayoutMap as pt, useSelectorQuery as q, createWevuScopedSlotComponent as qn, onBeforeUpdate as qt, DefineModelTransformOptions as r, onError as rn, TemplateRefs as rr, hasInjectionContext as rt, defineEmits as s, onMemoryWarning as sn, DataOption as sr, provideGlobal as st, version as t, onAttached as tn, MiniProgramTemplateRefValue as tr, UseAsyncPullDownRefreshOptions as tt, defineOptions as u, onPageScroll as un, PageFeatures as ur, UsePageScrollThrottleStopHandle as ut, TemplateRef as v, onShareTimeline as vn, usePageLayout as vt, mergeModels as w, callHookList as wn, getNavigationBarMetrics as wt, useNativeRouter as x, onThemeChange as xn, UseNavigationBarMetricsOptions as xt, useTemplateRef as y, onShow as yn, NavigationBarMetrics as yt, UseAllSelectorFieldsOptions as z, ComponentDefinition as zn, waitForLayoutHost as zt };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,7 @@
1
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-BjaNcUW3.mjs";
2
2
  import { $ as shallowRef, $n as HostMiniProgramNodesRefFields, A as watchPostEffect, An as MiniProgramPageLifetimes, Ar as MiniProgramRuntimeHostNamespaceBySource, At as nextTick, B as WatchOptions, Bn as HostMiniProgramComponentInstance, Bt as MaybeRef, C as ExtractMethods, Cn as MiniProgramAppOptions, Cr as MiniProgramHostNamespace, Ct as effect, D as ModelBindingPayload, Dn as MiniProgramComponentPropertyValue, Dr as MiniProgramPlatformHostNamespaceBySource, Dt as onScopeDispose, E as ModelBindingOptions, En as MiniProgramComponentOptions, Er as MiniProgramHostSourceRegistry, Et as getCurrentScope, F as OnCleanup, Fn as HostMiniProgramBoundingClientRectResult, Fr as WechatMiniProgramHostNamespace, Ft as WritableComputedRef, G as WatchStopHandle, Gn as HostMiniProgramComponentTrivialInstance, Gt as isRef, H as WatchSource, Hn as HostMiniProgramComponentPropertyOption, Ht as Ref, I as WatchCallback, In as HostMiniProgramComponentAllFullProperty, Ir as WechatMiniProgramHostSourceContract, It as computed, J as traverse, Jn as HostMiniProgramIntersectionObserverOptions, Jt as unref, K as getDeepWatchStrategy, Kn as HostMiniProgramComponentTrivialOption, Kt as ref, L as WatchEffect, Ln as HostMiniProgramComponentAllProperty, Lt as CustomRefFactory, M as MapSources, Mn as HostMiniProgramAppOptions, Mr as MiniProgramRuntimeHostSourceRegistry, Mt as ComputedRef, N as MaybeUndefined, Nn as HostMiniProgramAppTrivialInstance, Nr as TtMiniProgramHostNamespace, Nt as ComputedSetter, O as watch, On as MiniProgramComponentRawOptions, Or as MiniProgramPlatformHostSourceName, Ot as startBatch, P as MultiWatchSources, Pn as HostMiniProgramBehaviorIdentifier, Pr as TtMiniProgramHostSourceContract, Pt as WritableComputedOptions, Q as isShallowRef, Qn as HostMiniProgramNodesRef, Qt as MiniProgramRouterSwitchTabOption, R as WatchEffectOptions, Rn as HostMiniProgramComponentBehaviorOptions, Rt as CustomRefOptions, S as ExtractComputed, Sn as MiniProgramAdapter, Sr as DouyinMiniProgramHostSourceContract, St as batch, T as ModelBinding, Tn as MiniProgramComponentInstance, Tr as MiniProgramHostSourceName, Tt as endBatch, U as WatchSourceValue, Un as HostMiniProgramComponentPropertyValue, Ut as ShallowRef, V as WatchScheduler, Vn as HostMiniProgramComponentMethodOption, Vt as MaybeRefOrGetter, W as WatchSources, Wn as HostMiniProgramComponentShortProperty, Wt as customRef, X as toRef, Xn as HostMiniProgramMemoryWarningResult, Xt as MiniProgramRouterReLaunchOption, Y as ToRefs, Yn as HostMiniProgramLaunchOptions, Yt as MiniProgramRouterNavigateToOption, Z as toRefs, Zn as HostMiniProgramNavigateToOption, Zt as MiniProgramRouterRedirectToOption, _ as RuntimeApp, _n as NativeTypeHint, _r as AlipayMiniProgramHostNamespace, _t as MutationOp, a as NativeComponent, ar as HostMiniProgramReLaunchOption, at as getReactiveVersion, b as ComponentPublicInstance, bn as PropOptions, br as DefaultMiniProgramHostSourceContract, bt as removeMutationRecorder, c as ShallowUnwrapRef, cn as ExtractDefaultPropTypes, cr as HostMiniProgramSaveExitState, ct as markRaw, d as SetupContext, dn as InferNativePropType, dr as HostMiniProgramShareAppMessageOption, dt as isShallowReactive, er as HostMiniProgramPageLifetime, et as triggerRef, f as SetupContextNativeInstance, fn as InferNativeProps, fr as HostMiniProgramSwitchTabOption, ft as shallowReactive, g as InternalRuntimeStateFields, gn as NativePropsOptions, gr as HostMiniProgramUnhandledRejectionResult, gt as MutationKind, h as InternalRuntimeState, hn as NativePropType, hr as HostMiniProgramTriggerEventOptions, ht as touchReactive, i as DefineComponent, ir as HostMiniProgramPageTrivialInstance, it as shallowReadonly, j as watchSyncEffect, jn as HostMiniProgramAddToFavoritesOption, jr as MiniProgramRuntimeHostSourceName, jt as ComputedGetter, k as watchEffect, kn as MiniProgramInstance, kr as MiniProgramPlatformHostSourceRegistry, kt as stop, l as VNode, ln as ExtractPropTypes, lr as HostMiniProgramScrollOffsetResult, lt as reactive, m as AppConfig, mn as InferProps, mr as HostMiniProgramThemeChangeResult, mt as prelinkReactiveTree, n as ComponentCustomProps, nr as HostMiniProgramPageResizeOption, nt as isReadonly, o as ObjectDirective, on as WevuTypedRouterRouteMap, or as HostMiniProgramRedirectToOption, ot as isRaw, p as SetupFunction, pn as InferPropType, pr as HostMiniProgramTabItemTapOption, pt as PrelinkReactiveTreeOptions, q as setDeepWatchStrategy, qn as HostMiniProgramIntersectionObserver, qt as toValue, r as ComponentOptionsMixin, rn as SetupContextRouter, rr as HostMiniProgramPageScrollOption, rt as readonly, s as PublicProps, sn as ComponentPropsOptions, sr as HostMiniProgramRouter, st as isReactive, t as AllowedComponentProps, tr as HostMiniProgramPageNotFoundOptions, tt as isProxy, u as VNodeProps, un as ExtractPublicPropTypes, ur as HostMiniProgramSelectorQuery, ut as toRaw, v as RuntimeInstance, vn as NativeTypedProperty, vr as AlipayMiniProgramHostSourceContract, vt as MutationRecord, w as MethodDefinitions, wn as MiniProgramBehaviorIdentifier, wr as MiniProgramHostNamespaceBySource, wt as effectScope, x as ComputedDefinitions, xn as PropType, xr as DouyinMiniProgramHostNamespace, xt as EffectScope, y as WevuPlugin, yn as PropConstructor, yr as DefaultMiniProgramHostNamespace, yt as addMutationRecorder, z as WatchMultiSources, zn as HostMiniProgramComponentEmptyArray, zt as CustomRefSource } from "./vue-types-xMdYZRuG.mjs";
3
- import { $ as setRuntimeSetDataVisibility, $n as resetWevuDefaults, $t as onMounted, A as useSlots, An as getCurrentSetupContext, At as isNoSetData, B as UseAllBoundingClientRectOptions, Bn as DisposableObject, Bt as useLayoutBridge, C as UseModelOptions, Cn as onTabItemTap, Ct as PageStackSnapshot, D as useModel, Dn as callHookList, Dt as getNavigationBarMetrics, E as useChangeModel, En as onUnload, Et as getCurrentPageStackSnapshot, F as UseUpdatePerformanceListenerStopHandle, Fn as UseElementIntersectionObserverReturn, Ft as registerRuntimeLayoutHosts, G as UseSelectorFieldsOptions, Gn as SetupContextWithTypeProps, Gt as useIntersectionObserver, H as UseAllSelectorFieldsOptions, Hn as ComponentDefinition, Ht as waitForLayoutHost, I as useUpdatePerformanceListener, In as useElementIntersectionObserver, It as resolveLayoutBridge, J as useScrollOffset, Jn as WevuDefinedComponent, Jt as onBeforeMount, K as UseSelectorQueryOptions, Kn as SetupFunctionWithTypeProps, Kt as callUpdateHooks, L as normalizeClass, Ln as DisposableBag, Lt as resolveLayoutHost, M as use, Mn as setCurrentSetupContext, Mt as LayoutBridgeInstance, N as UpdatePerformanceListener, Nn as ElementIntersectionObserverCallback, Nt as LayoutHostBinding, O as useAttrs, On as callHookReturn, Ot as useNavigationBarMetrics, P as UpdatePerformanceListenerResult, Pn as UseElementIntersectionObserverOptions, Pt as registerPageLayoutBridge, Q as mountRuntimeInstance, Qn as WevuDefaults, Qt as onErrorCaptured, R as normalizeStyle, Rn as DisposableLike, Rt as unregisterPageLayoutBridge, S as ModelModifiers, Sn as onShow, St as NavigationBarMetrics, T as useBindModel, Tn as onUnhandledRejection, Tt as UsePageStackOptions, U as UseBoundingClientRectOptions, Un as DefineComponentTypePropsOptions, Ut as UseIntersectionObserverOptions, V as UseAllScrollOffsetOptions, Vn as useDisposables, Vt as useLayoutHosts, W as UseScrollOffsetOptions, Wn as DefineComponentWithTypeProps, Wt as UseIntersectionObserverResult, X as useSelectorQuery, Xn as createWevuScopedSlotComponent, Xt as onBeforeUpdate, Y as useSelectorFields, Yn as createWevuComponent, Yt as onBeforeUnmount, Z as runSetupFunction, Zn as defineComponent, Zt as onDeactivated, _ as EmitsOptions, _n as onResize, _t as resolveRuntimePageLayoutName, a as PageLayoutMeta, an as onDetached, ar as TemplateRefValue, at as useAsyncPullDownRefresh, b as useNativePageRouter, bn as onShareAppMessage, bt as syncRuntimePageLayoutStateFromRuntime, c as defineExpose, cn as onLaunch, cr as WevuGlobalDirectives, ct as injectGlobal, d as definePageMeta, dn as onMoved, dr as DefineAppOptions, dt as setGlobalProvidedValue, en as onServerPrefetch, er as setWevuDefaults, et as teardownRuntimeInstance, f as defineProps, fn as onPageNotFound, fr as DefineComponentOptions, ft as UsePageScrollThrottleOptions, g as EmitFn, gn as onReady, gt as WevuPageLayoutMap, h as ComponentTypeEmits, hn as onReachBottom, hr as SetDataSnapshotOptions, ht as PageLayoutState, i as ModelRef, in as onAttached, ir as MiniProgramTemplateRefValue, it as UseAsyncPullDownRefreshOptions, j as defineAppSetup, jn as setCurrentInstance, jt as markNoSetData, k as useNativeInstance, kn as getCurrentInstance, kt as usePageStack, l as defineModel, ln as onLoad, lr as CreateAppOptions, lt as provide, m as withDefaults, mn as onPullDownRefresh, mr as SetDataDebugInfo, mt as usePageScrollThrottle, n as DefineModelModifiers, nn as onUpdated, nr as GlobalComponents, nt as registerApp, o as PageMeta, on as onError, or as TemplateRefs, ot as hasInjectionContext, p as defineSlots, pn as onPageScroll, pr as PageFeatures, pt as UsePageScrollThrottleStopHandle, q as useBoundingClientRect, qn as WevuComponentConstructor, qt as onActivated, r as DefineModelTransformOptions, rn as onAddToFavorites, rr as GlobalDirectives, rt as PullDownRefreshHandler, s as defineEmits, sn as onHide, sr as WevuGlobalComponents, st as inject, t as version, tn as onUnmounted, tr as createApp, tt as registerComponent, u as defineOptions, un as onMemoryWarning, ur as DataOption, ut as provideGlobal, v as TemplateRef, vn as onRouteDone, vt as setPageLayout, w as mergeModels, wn as onThemeChange, wt as UseNavigationBarMetricsOptions, x as useNativeRouter, xn as onShareTimeline, xt as usePageLayout, y as useTemplateRef, yn as onSaveExitState, yt as syncRuntimePageLayoutState, z as resolvePropValue, zn as DisposableMethodName, zt as unregisterRuntimeLayoutHosts } from "./index-DuNbWb3x.mjs";
3
+ 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-CgXlVT9g.mjs";
4
+ import { n as normalizeStyle, r as resolvePropValue, t as normalizeClass } from "./template-DE8e5dj_.mjs";
4
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-C6Jyiw-u.mjs";
5
6
  export * from "@wevu/web-apis";
6
7
  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{C as e,D as t,E as n,N as r,O as i,S as a,T as o,a as s,b as c,c as l,d as u,f as d,g as f,h as p,i as m,k as h,l as g,n as _,o as v,p as y,s as b,t as x,u as S,w as C,x as w,y as T}from"./ref-CRwjgX_d.mjs";import{i as E,n as D,r as O,t as k}from"./store-CNXa5BsN.mjs";import{$ as A,A as j,B as M,F as N,G as P,H as F,I,J as L,K as R,L as z,M as B,N as V,P as H,Q as U,R as W,U as G,V as K,W as q,X as J,Y,Z as X,_ as Z,_t as Q,at as $,ct as ee,et as te,g as ne,gt as re,h as ie,ht as ae,it as oe,j as se,m as ce,n as le,nt as ue,q as de,rt as fe,st as pe,t as me,v as he,vt as ge,z as _e}from"./router-C1IObdgc.mjs";import{$ as ve,A as ye,B as be,C as xe,Ct as Se,D as Ce,E as we,F as Te,G as Ee,H as De,I as Oe,J as ke,K as Ae,L as je,M as Me,N as Ne,O as Pe,P as Fe,Q as Ie,R as Le,S as Re,St as ze,T as Be,Tt as Ve,U as He,V as Ue,W as We,X as Ge,Y as Ke,Z as qe,_ as Je,_t as Ye,a as Xe,at as Ze,b as Qe,bt as $e,c as et,ct as tt,d as nt,dt as rt,et as it,f as at,ft as ot,g as st,gt as ct,h as lt,ht as ut,i as dt,it as ft,j as pt,k as mt,l as ht,lt as gt,m as _t,mt as vt,n as yt,nt as bt,o as xt,ot as St,p as Ct,pt as wt,q as Tt,r as Et,rt as Dt,s as Ot,st as kt,t as At,tt as jt,u as Mt,ut as Nt,v as Pt,vt as Ft,w as It,wt as Lt,x as Rt,xt as zt,y as Bt,yt as Vt,z as Ht}from"./src-DswUAmfF.mjs";export*from"@wevu/web-apis";export{c as addMutationRecorder,a as batch,ue as callHookList,fe as callHookReturn,gt as callUpdateHooks,E as computed,pt as createApp,O as createStore,Pe as createWevuComponent,mt as createWevuScopedSlotComponent,x as customRef,ht as defineAppSetup,ye as defineComponent,D as defineStore,e as effect,C as effectScope,o as endBatch,oe as getCurrentInstance,Rt as getCurrentPageStackSnapshot,n as getCurrentScope,$ as getCurrentSetupContext,kt as getDeepWatchStrategy,Re as getNavigationBarMetrics,b as getReactiveVersion,ce as hasInjectionContext,ie as inject,ne as injectGlobal,it as isNoSetData,ae as isProxy,l as isRaw,g as isReactive,re as isReadonly,_ as isRef,d as isShallowReactive,Se as isShallowRef,jt as markNoSetData,S as markRaw,yt as mergeModels,He as mountRuntimeInstance,r as nextTick,at as normalizeClass,Ct as normalizeStyle,Nt as onActivated,se as onAddToFavorites,B as onAttached,rt as onBeforeMount,ot as onBeforeUnmount,wt as onBeforeUpdate,vt as onDeactivated,V as onDetached,H as onError,ut as onErrorCaptured,N as onHide,I as onLaunch,z as onLoad,W as onMemoryWarning,ct as onMounted,_e as onMoved,M as onPageNotFound,K as onPageScroll,F as onPullDownRefresh,G as onReachBottom,q as onReady,P as onResize,R as onRouteDone,de as onSaveExitState,t as onScopeDispose,Ye as onServerPrefetch,L as onShareAppMessage,Y as onShareTimeline,J as onShow,X as onTabItemTap,U as onThemeChange,A as onUnhandledRejection,te as onUnload,Ft as onUnmounted,Vt as onUpdated,p as prelinkReactiveTree,Z as provide,he as provideGlobal,u as reactive,Q as readonly,m as ref,De as registerApp,Me as registerComponent,Ne as registerPageLayoutBridge,Fe as registerRuntimeLayoutHosts,w as removeMutationRecorder,Ie as resetWevuDefaults,Te as resolveLayoutBridge,Oe as resolveLayoutHost,_t as resolvePropValue,Tt as resolveRuntimePageLayoutName,Ae as runSetupFunction,pe as setCurrentInstance,ee as setCurrentSetupContext,tt as setDeepWatchStrategy,j as setGlobalProvidedValue,ke as setPageLayout,We as setRuntimeSetDataVisibility,ve as setWevuDefaults,y as shallowReactive,ge as shallowReadonly,Lt as shallowRef,i as startBatch,h as stop,k as storeToRefs,Ke as syncRuntimePageLayoutState,Ge as syncRuntimePageLayoutStateFromRuntime,Ee as teardownRuntimeInstance,T as toRaw,zt as toRef,ze as toRefs,s as toValue,f as touchReactive,$e as traverse,Ve as triggerRef,v as unref,je as unregisterPageLayoutBridge,Le as unregisterRuntimeLayoutHosts,Mt as use,Bt as useAsyncPullDownRefresh,xt as useAttrs,Et as useBindModel,lt as useBoundingClientRect,dt as useChangeModel,Ce as useDisposables,we as useElementIntersectionObserver,Be as useIntersectionObserver,Ht as useLayoutBridge,be as useLayoutHosts,Xe as useModel,Ot as useNativeInstance,me as useNativePageRouter,le as useNativeRouter,xe as useNavigationBarMetrics,qe as usePageLayout,Qe as usePageScrollThrottle,It as usePageStack,st as useScrollOffset,Je as useSelectorFields,Pt as useSelectorQuery,et as useSlots,At as useTemplateRef,nt as useUpdatePerformanceListener,bt as version,Ue as waitForLayoutHost,Dt as watch,ft as watchEffect,Ze as watchPostEffect,St as watchSyncEffect};
1
+ import"./chunk-CenpyGzJ.mjs";import{C as e,D as t,E as n,N as r,O as i,S as a,T as o,a as s,b as c,c as l,d as u,f as d,g as f,h as p,i as m,k as h,l as g,n as _,o as v,p as y,s as b,t as x,u as S,w as C,x as w,y as T}from"./ref-CRwjgX_d.mjs";import{t as E}from"./computed-DdPJb4_M.mjs";import{S as D,b as O,c as k,d as A,n as j,r as M,s as N,u as P,x as F,y as I}from"./base-D-o2Hv6z.mjs";import{a as L,c as R,i as z,l as B,n as V,o as H,r as U,s as W,t as G,u as K}from"./watch-6_s3_f8q.mjs";import{n as q,t as J}from"./toRefs-COgMIEoC.mjs";import{$ as Y,A as X,B as Z,F as Q,G as $,H as ee,I as te,J as ne,K as re,L as ie,M as ae,N as oe,P as se,Q as ce,R as le,U as ue,V as de,W as fe,X as pe,Y as me,Z as he,_ as ge,et as _e,g as ve,h as ye,j as be,m as xe,n as Se,q as Ce,t as we,v as Te,z as Ee}from"./router-BiJKkvy7.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-QWFf20h8.mjs";import{n as Lt,r as Rt,t as zt}from"./template-CFhlojaH.mjs";import{n as Bt,r as Vt,t as Ht}from"./store-B9C0AuaO.mjs";export*from"@wevu/web-apis";export{c as addMutationRecorder,a as batch,j as callHookList,M as callHookReturn,st as callUpdateHooks,E as computed,He as createApp,Vt as createStore,qe as createWevuComponent,Me as createWevuScopedSlotComponent,x as customRef,ht as defineAppSetup,je as defineComponent,Bt as defineStore,e as effect,C as effectScope,o as endBatch,N as getCurrentInstance,Mt as getCurrentPageStackSnapshot,n as getCurrentScope,k as getCurrentSetupContext,L as getDeepWatchStrategy,Ft as getNavigationBarMetrics,b as getReactiveVersion,xe as hasInjectionContext,ye as inject,ve as injectGlobal,$e as isNoSetData,I as isProxy,l as isRaw,g as isReactive,O as isReadonly,_ as isRef,d as isShallowReactive,R as isShallowRef,We as markNoSetData,S as markRaw,vt as mergeModels,ke as mountRuntimeInstance,r as nextTick,zt as normalizeClass,Lt as normalizeStyle,kt as onActivated,be as onAddToFavorites,ae as onAttached,yt as onBeforeMount,Tt as onBeforeUnmount,ft as onBeforeUpdate,nt as onDeactivated,oe as onDetached,se as onError,xt as onErrorCaptured,Q as onHide,te as onLaunch,ie as onLoad,le as onMemoryWarning,Dt as onMounted,Ee as onMoved,Z as onPageNotFound,de as onPageScroll,ee as onPullDownRefresh,ue as onReachBottom,fe as onReady,$ as onResize,re as onRouteDone,Ce as onSaveExitState,t as onScopeDispose,at as onServerPrefetch,ne as onShareAppMessage,me as onShareTimeline,pe as onShow,he as onTabItemTap,ce as onThemeChange,Y as onUnhandledRejection,_e as onUnload,gt as onUnmounted,jt as onUpdated,p as prelinkReactiveTree,ge as provide,Te as provideGlobal,u as reactive,F as readonly,m as ref,It as registerApp,mt as registerComponent,Oe as registerPageLayoutBridge,pt as registerRuntimeLayoutHosts,w as removeMutationRecorder,Qe as resetWevuDefaults,Be as resolveLayoutBridge,Ve as resolveLayoutHost,Rt as resolvePropValue,Xe as resolveRuntimePageLayoutName,Je as runSetupFunction,P as setCurrentInstance,A as setCurrentSetupContext,H as setDeepWatchStrategy,X as setGlobalProvidedValue,Pe as setPageLayout,Ye as setRuntimeSetDataVisibility,Ze as setWevuDefaults,y as shallowReactive,D as shallowReadonly,B as shallowRef,i as startBatch,h as stop,Ht as storeToRefs,Re as syncRuntimePageLayoutState,Ct as syncRuntimePageLayoutStateFromRuntime,Fe as teardownRuntimeInstance,T as toRaw,J as toRef,q as toRefs,s as toValue,f as touchReactive,W as traverse,K as triggerRef,v 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,we as useNativePageRouter,Se 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,G as watch,V as watchEffect,U as watchPostEffect,z as watchSyncEffect};