wevu 6.13.3 → 6.14.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/{index-BvyrZ_XI.d.mts → index-DEjNYYT6.d.mts} +5 -3
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.d.mts +1 -1
- package/dist/{src-ZnVfksSk.mjs → src-BaaW1GlH.mjs} +69 -23
- package/dist/vue-demi.d.mts +3 -2
- package/dist/vue-demi.mjs +1 -1
- package/dist/{weappIntrinsicElements-BogJZUKk.d.mts → weappIntrinsicElements-BWrmJql8.d.mts} +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as WeappIntrinsicElements } from "./weappIntrinsicElements-
|
|
1
|
+
import { t as WeappIntrinsicElements } from "./weappIntrinsicElements-BWrmJql8.mjs";
|
|
2
2
|
import { B as ComponentPropsOptions, C as ComputedRef, N as Ref, P as ShallowRef, S as ComputedGetter, T as WritableComputedOptions, q as InferProps, y as ShallowUnwrapRef } from "./index-BPZxNlC8.mjs";
|
|
3
3
|
import { a as SetupContextRouter } from "./router-DW4Yf9Yj.mjs";
|
|
4
4
|
|
|
@@ -1408,12 +1408,14 @@ type NativeType = null | undefined | number | string | boolean | symbol | ((...a
|
|
|
1408
1408
|
type InferDefault<P, T> = ((props: P) => T & {}) | (T extends NativeType ? T : never);
|
|
1409
1409
|
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;
|
|
1410
1410
|
type UnionToIntersection<U> = (U extends any ? (arg: U) => any : never) extends ((arg: infer I) => any) ? I : never;
|
|
1411
|
+
type ScriptSetupTriggerEventOptions = WechatMiniprogram.Component.TriggerEventOption;
|
|
1412
|
+
type EmitArgsWithTriggerEventOptions<Args extends any[]> = Args extends [] ? [] | [detail: undefined, options: ScriptSetupTriggerEventOptions] : Args | [...args: Args, options: ScriptSetupTriggerEventOptions];
|
|
1411
1413
|
type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null>;
|
|
1412
1414
|
type EmitsOptions = ObjectEmitsOptions | string[];
|
|
1413
|
-
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: Args) => void : Options[K] extends any[] ? (event: K, ...args: Options[K]) => void : (event: K, ...args: any[]) => void }[Event]>;
|
|
1415
|
+
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]>;
|
|
1414
1416
|
type ComponentTypeEmits = ((...args: any[]) => any) | Record<string, any>;
|
|
1415
1417
|
type RecordToUnion<T extends Record<string, any>> = T[keyof T];
|
|
1416
|
-
type ShortEmits<T extends Record<string, any>> = UnionToIntersection<RecordToUnion<{ [K in keyof T]: (evt: K, ...args: T[K]) => void }>>;
|
|
1418
|
+
type ShortEmits<T extends Record<string, any>> = UnionToIntersection<RecordToUnion<{ [K in keyof T]: (evt: K, ...args: EmitArgsWithTriggerEventOptions<T[K]>) => void }>>;
|
|
1417
1419
|
type ScriptSetupNativePropertyOption = WechatMiniprogram.Component.PropertyOption;
|
|
1418
1420
|
type ScriptSetupNativeMethodOption = WechatMiniprogram.Component.MethodOption;
|
|
1419
1421
|
type ScriptSetupNativeBehaviorOption = WechatMiniprogram.Component.IEmptyArray;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { n as WeappIntrinsicElementBaseAttributes, r as WeappIntrinsicEventHandler } from "./weappIntrinsicElements-BWrmJql8.mjs";
|
|
1
2
|
import { $ as PropOptions, A as CustomRefSource, B as ComponentPropsOptions, C as ComputedRef, D as computed, E as WritableComputedRef, F as customRef, G as InferNativeProps, H as ExtractPropTypes, I as isRef, J as NativePropType, K as InferPropType, L as ref, M as MaybeRefOrGetter, N as Ref, O as CustomRefFactory, P as ShallowRef, Q as PropConstructor, R as toValue, S as ComputedGetter, T as WritableComputedOptions, U as ExtractPublicPropTypes, V as ExtractDefaultPropTypes, W as InferNativePropType, X as NativeTypeHint, Y as NativePropsOptions, Z as NativeTypedProperty, _ as ObjectDirective, a as ActionContext, b as VNode, c as MutationType, d as SubscriptionCallback, et as PropType, f as AllowedComponentProps, g as NativeComponent, h as DefineComponent, i as defineStore, j as MaybeRef, k as CustomRefOptions, l as StoreManager, m as ComponentOptionsMixin, n as storeToRefs, o as ActionSubscriber, p as ComponentCustomProps, q as InferProps, r as createStore, s as DefineStoreOptions, t as StoreToRefsResult, u as StoreSubscribeOptions, v as PublicProps, w as ComputedSetter, x as VNodeProps, y as ShallowUnwrapRef, z as unref } from "./index-BPZxNlC8.mjs";
|
|
2
3
|
import { a as SetupContextRouter, c as WevuTypedRouterRouteMap } from "./router-DW4Yf9Yj.mjs";
|
|
3
|
-
import { $ as WevuPageLayoutMap, $n as MiniProgramInstance, $r as MutationOp, $t as onUnhandledRejection, A as use, An as WevuGlobalDirectives, Ar as traverse, At as onUpdated, B as teardownRuntimeInstance, Bn as SetupFunction, Br as shallowReadonly, Bt as onPageNotFound, C as UseModelOptions, Cn as setWevuDefaults, Cr as WatchScheduler, Ct as onBeforeUnmount, D as useAttrs, Dn as TemplateRefValue, Dr as WatchStopHandle, Dt as onMounted, E as useModel, En as GlobalDirectives, Er as WatchSources, Et as onErrorCaptured, F as normalizeClass, Fn as PageFeatures, Fr as shallowRef, Ft as onHide, G as injectGlobal, Gn as RuntimeInstance, Gr as reactive, Gt as onResize, H as registerApp, Hn as InternalRuntimeState, Hr as isRaw, Ht as onPullDownRefresh, I as normalizeStyle, In as SetDataDebugInfo, Ir as triggerRef, It as onLaunch, J as setGlobalProvidedValue, Jn as MiniProgramAppOptions, Jr as shallowReactive, Jt as onShareAppMessage, K as provide, Kn as WevuPlugin, Kr as toRaw, Kt as onRouteDone, L as runSetupFunction, Ln as SetDataSnapshotOptions, Lr as isProxy, Lt as onLoad, M as UpdatePerformanceListenerResult, Mn as DataOption, Mr as toRef, Mt as onAttached, N as UseUpdatePerformanceListenerStopHandle, Nn as DefineAppOptions, Nr as toRefs, Nt as onDetached, O as useNativeInstance, On as TemplateRefs, Or as getDeepWatchStrategy, Ot as onServerPrefetch, P as useUpdatePerformanceListener, Pn as DefineComponentOptions, Pr as isShallowRef, Pt as onError, Q as PageLayoutState, Qn as MiniProgramComponentRawOptions, Qr as MutationKind, Qt as onThemeChange, R as mountRuntimeInstance, Rn as SetupContext, Rr as isReadonly, Rt as onMemoryWarning, S as ModelModifiers, Sn as resetWevuDefaults, Sr as WatchOptions, St as onBeforeMount, T as useBindModel, Tn as GlobalComponents, Tr as WatchSourceValue, Tt as onDeactivated, U as hasInjectionContext, Un as InternalRuntimeStateFields, Ur as isReactive, Ut as onReachBottom, V as registerComponent, Vn as AppConfig, Vr as getReactiveVersion, Vt as onPageScroll, W as inject, Wn as RuntimeApp, Wr as markRaw, Wt as onReady, X as UsePageScrollThrottleStopHandle, Xn as MiniProgramComponentBehaviorOptions, Xr as prelinkReactiveTree, Xt as onShow, Y as UsePageScrollThrottleOptions, Yn as MiniProgramBehaviorIdentifier, Yr as PrelinkReactiveTreeOptions, Yt as onShareTimeline, Z as usePageScrollThrottle, Zn as MiniProgramComponentOptions, Zr as touchReactive, Zt as onTabItemTap, _ as EmitsOptions, _n as WevuComponentConstructor, _r as OnCleanup, _t as UseIntersectionObserverOptions, a as PageLayoutMeta, ai as effect, an as setCurrentInstance, ar as ExtractMethods, at as isNoSetData, b as useNativePageRouter, bn as defineComponent, br as WatchEffectOptions, bt as callUpdateHooks, c as defineExpose, ci as getCurrentScope, cn as DisposableLike, cr as ModelBindingOptions, ct as registerPageLayoutBridge, d as definePageMeta, di as stop, dn as useDisposables, dr as watchEffect, dt as resolveLayoutHost, ei as MutationRecord, en as onUnload, er as MiniProgramPageLifetimes, et as resolveRuntimePageLayoutName, f as defineProps, fi as nextTick, fn as ComponentDefinition, fr as watchPostEffect, ft as unregisterPageLayoutBridge, g as EmitFn, gn as SetupFunctionWithTypeProps, gr as MultiWatchSources, gt as waitForLayoutHost, h as ComponentTypeEmits, hn as SetupContextWithTypeProps, hr as MaybeUndefined, ht as useLayoutHosts, i as ModelRef, ii as batch, in as getCurrentSetupContext, ir as ExtractComputed, it as usePageLayout, j as UpdatePerformanceListener, jn as CreateAppOptions, jr as ToRefs, jt as onAddToFavorites, k as useSlots, kn as WevuGlobalComponents, kr as setDeepWatchStrategy, kt as onUnmounted, l as defineModel, li as onScopeDispose, ln as DisposableMethodName, lr as ModelBindingPayload, lt as registerRuntimeLayoutHosts, m as withDefaults, mn as DefineComponentWithTypeProps, mr as MapSources, mt as useLayoutBridge, n as DefineModelModifiers, ni as removeMutationRecorder, nn as callHookReturn, nr as ComponentPublicInstance, nt as syncRuntimePageLayoutState, o as PageMeta, oi as effectScope, on as setCurrentSetupContext, or as MethodDefinitions, ot as markNoSetData, p as defineSlots, pn as DefineComponentTypePropsOptions, pr as watchSyncEffect, pt as unregisterRuntimeLayoutHosts, q as provideGlobal, qn as MiniProgramAdapter, qr as isShallowReactive, qt as onSaveExitState, r as DefineModelTransformOptions, ri as EffectScope, rn as getCurrentInstance, rr as ComputedDefinitions, rt as syncRuntimePageLayoutStateFromRuntime, s as defineEmits, si as endBatch, sn as DisposableBag, sr as ModelBinding, st as LayoutHostBinding, t as version, ti as addMutationRecorder, tn as callHookList, tr as TriggerEventOptions, tt as setPageLayout, u as defineOptions, ui as startBatch, un as DisposableObject, ur as watch, ut as resolveLayoutBridge, v as TemplateRef, vn as createWevuComponent, vr as WatchCallback, vt as UseIntersectionObserverResult, w as mergeModels, wn as createApp, wr as WatchSource, wt as onBeforeUpdate, x as useNativeRouter, xn as WevuDefaults, xr as WatchMultiSources, xt as onActivated, y as useTemplateRef, yn as createWevuScopedSlotComponent, yr as WatchEffect, yt as useIntersectionObserver, z as setRuntimeSetDataVisibility, zn as SetupContextNativeInstance, zr as readonly, zt as onMoved } from "./index-
|
|
4
|
-
export { ActionContext, ActionSubscriber, AllowedComponentProps, AppConfig, ComponentCustomProps, ComponentDefinition, ComponentOptionsMixin, ComponentPropsOptions, ComponentPublicInstance, ComponentTypeEmits, ComputedDefinitions, ComputedGetter, ComputedRef, ComputedSetter, CreateAppOptions, CustomRefFactory, CustomRefOptions, CustomRefSource, DataOption, DefineAppOptions, DefineComponent, DefineComponentOptions, DefineComponentTypePropsOptions, DefineComponentWithTypeProps, DefineModelModifiers, DefineModelTransformOptions, DefineStoreOptions, DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, EffectScope, EmitFn, EmitsOptions, ExtractComputed, ExtractDefaultPropTypes, ExtractMethods, ExtractPropTypes, ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, InferNativePropType, InferNativeProps, InferPropType, InferProps, InternalRuntimeState, InternalRuntimeStateFields, LayoutHostBinding, MapSources, MaybeRef, MaybeRefOrGetter, MaybeUndefined, MethodDefinitions, MiniProgramAdapter, MiniProgramAppOptions, MiniProgramBehaviorIdentifier, MiniProgramComponentBehaviorOptions, MiniProgramComponentOptions, MiniProgramComponentRawOptions, MiniProgramInstance, MiniProgramPageLifetimes, ModelBinding, ModelBindingOptions, ModelBindingPayload, ModelModifiers, ModelRef, MultiWatchSources, MutationKind, MutationOp, MutationRecord, MutationType, NativeComponent, NativePropType, NativePropsOptions, NativeTypeHint, NativeTypedProperty, ObjectDirective, OnCleanup, PageFeatures, PageLayoutMeta, PageLayoutState, PageMeta, PrelinkReactiveTreeOptions, PropConstructor, PropOptions, PropType, PublicProps, Ref, RuntimeApp, RuntimeInstance, SetDataDebugInfo, SetDataSnapshotOptions, SetupContext, SetupContextNativeInstance, SetupContextRouter, SetupContextWithTypeProps, SetupFunction, SetupFunctionWithTypeProps, ShallowRef, ShallowUnwrapRef, StoreManager, StoreSubscribeOptions, StoreToRefsResult, SubscriptionCallback, TemplateRef, TemplateRefValue, TemplateRefs, ToRefs, TriggerEventOptions, UpdatePerformanceListener, UpdatePerformanceListenerResult, UseIntersectionObserverOptions, UseIntersectionObserverResult, UseModelOptions, UsePageScrollThrottleOptions, UsePageScrollThrottleStopHandle, UseUpdatePerformanceListenerStopHandle, VNode, VNodeProps, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, WevuComponentConstructor, WevuDefaults, WevuGlobalComponents, WevuGlobalDirectives, WevuPageLayoutMap, WevuPlugin, WevuTypedRouterRouteMap, WritableComputedOptions, WritableComputedRef, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, definePageMeta, defineProps, defineSlots, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, 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, 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, useAttrs, useBindModel, useDisposables, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, usePageLayout, usePageScrollThrottle, useSlots, useTemplateRef, useUpdatePerformanceListener, version, waitForLayoutHost, watch, watchEffect, watchPostEffect, watchSyncEffect, withDefaults };
|
|
4
|
+
import { $ as WevuPageLayoutMap, $n as MiniProgramInstance, $r as MutationOp, $t as onUnhandledRejection, A as use, An as WevuGlobalDirectives, Ar as traverse, At as onUpdated, B as teardownRuntimeInstance, Bn as SetupFunction, Br as shallowReadonly, Bt as onPageNotFound, C as UseModelOptions, Cn as setWevuDefaults, Cr as WatchScheduler, Ct as onBeforeUnmount, D as useAttrs, Dn as TemplateRefValue, Dr as WatchStopHandle, Dt as onMounted, E as useModel, En as GlobalDirectives, Er as WatchSources, Et as onErrorCaptured, F as normalizeClass, Fn as PageFeatures, Fr as shallowRef, Ft as onHide, G as injectGlobal, Gn as RuntimeInstance, Gr as reactive, Gt as onResize, H as registerApp, Hn as InternalRuntimeState, Hr as isRaw, Ht as onPullDownRefresh, I as normalizeStyle, In as SetDataDebugInfo, Ir as triggerRef, It as onLaunch, J as setGlobalProvidedValue, Jn as MiniProgramAppOptions, Jr as shallowReactive, Jt as onShareAppMessage, K as provide, Kn as WevuPlugin, Kr as toRaw, Kt as onRouteDone, L as runSetupFunction, Ln as SetDataSnapshotOptions, Lr as isProxy, Lt as onLoad, M as UpdatePerformanceListenerResult, Mn as DataOption, Mr as toRef, Mt as onAttached, N as UseUpdatePerformanceListenerStopHandle, Nn as DefineAppOptions, Nr as toRefs, Nt as onDetached, O as useNativeInstance, On as TemplateRefs, Or as getDeepWatchStrategy, Ot as onServerPrefetch, P as useUpdatePerformanceListener, Pn as DefineComponentOptions, Pr as isShallowRef, Pt as onError, Q as PageLayoutState, Qn as MiniProgramComponentRawOptions, Qr as MutationKind, Qt as onThemeChange, R as mountRuntimeInstance, Rn as SetupContext, Rr as isReadonly, Rt as onMemoryWarning, S as ModelModifiers, Sn as resetWevuDefaults, Sr as WatchOptions, St as onBeforeMount, T as useBindModel, Tn as GlobalComponents, Tr as WatchSourceValue, Tt as onDeactivated, U as hasInjectionContext, Un as InternalRuntimeStateFields, Ur as isReactive, Ut as onReachBottom, V as registerComponent, Vn as AppConfig, Vr as getReactiveVersion, Vt as onPageScroll, W as inject, Wn as RuntimeApp, Wr as markRaw, Wt as onReady, X as UsePageScrollThrottleStopHandle, Xn as MiniProgramComponentBehaviorOptions, Xr as prelinkReactiveTree, Xt as onShow, Y as UsePageScrollThrottleOptions, Yn as MiniProgramBehaviorIdentifier, Yr as PrelinkReactiveTreeOptions, Yt as onShareTimeline, Z as usePageScrollThrottle, Zn as MiniProgramComponentOptions, Zr as touchReactive, Zt as onTabItemTap, _ as EmitsOptions, _n as WevuComponentConstructor, _r as OnCleanup, _t as UseIntersectionObserverOptions, a as PageLayoutMeta, ai as effect, an as setCurrentInstance, ar as ExtractMethods, at as isNoSetData, b as useNativePageRouter, bn as defineComponent, br as WatchEffectOptions, bt as callUpdateHooks, c as defineExpose, ci as getCurrentScope, cn as DisposableLike, cr as ModelBindingOptions, ct as registerPageLayoutBridge, d as definePageMeta, di as stop, dn as useDisposables, dr as watchEffect, dt as resolveLayoutHost, ei as MutationRecord, en as onUnload, er as MiniProgramPageLifetimes, et as resolveRuntimePageLayoutName, f as defineProps, fi as nextTick, fn as ComponentDefinition, fr as watchPostEffect, ft as unregisterPageLayoutBridge, g as EmitFn, gn as SetupFunctionWithTypeProps, gr as MultiWatchSources, gt as waitForLayoutHost, h as ComponentTypeEmits, hn as SetupContextWithTypeProps, hr as MaybeUndefined, ht as useLayoutHosts, i as ModelRef, ii as batch, in as getCurrentSetupContext, ir as ExtractComputed, it as usePageLayout, j as UpdatePerformanceListener, jn as CreateAppOptions, jr as ToRefs, jt as onAddToFavorites, k as useSlots, kn as WevuGlobalComponents, kr as setDeepWatchStrategy, kt as onUnmounted, l as defineModel, li as onScopeDispose, ln as DisposableMethodName, lr as ModelBindingPayload, lt as registerRuntimeLayoutHosts, m as withDefaults, mn as DefineComponentWithTypeProps, mr as MapSources, mt as useLayoutBridge, n as DefineModelModifiers, ni as removeMutationRecorder, nn as callHookReturn, nr as ComponentPublicInstance, nt as syncRuntimePageLayoutState, o as PageMeta, oi as effectScope, on as setCurrentSetupContext, or as MethodDefinitions, ot as markNoSetData, p as defineSlots, pn as DefineComponentTypePropsOptions, pr as watchSyncEffect, pt as unregisterRuntimeLayoutHosts, q as provideGlobal, qn as MiniProgramAdapter, qr as isShallowReactive, qt as onSaveExitState, r as DefineModelTransformOptions, ri as EffectScope, rn as getCurrentInstance, rr as ComputedDefinitions, rt as syncRuntimePageLayoutStateFromRuntime, s as defineEmits, si as endBatch, sn as DisposableBag, sr as ModelBinding, st as LayoutHostBinding, t as version, ti as addMutationRecorder, tn as callHookList, tr as TriggerEventOptions, tt as setPageLayout, u as defineOptions, ui as startBatch, un as DisposableObject, ur as watch, ut as resolveLayoutBridge, v as TemplateRef, vn as createWevuComponent, vr as WatchCallback, vt as UseIntersectionObserverResult, w as mergeModels, wn as createApp, wr as WatchSource, wt as onBeforeUpdate, x as useNativeRouter, xn as WevuDefaults, xr as WatchMultiSources, xt as onActivated, y as useTemplateRef, yn as createWevuScopedSlotComponent, yr as WatchEffect, yt as useIntersectionObserver, z as setRuntimeSetDataVisibility, zn as SetupContextNativeInstance, zr as readonly, zt as onMoved } from "./index-DEjNYYT6.mjs";
|
|
5
|
+
export { ActionContext, ActionSubscriber, AllowedComponentProps, AppConfig, ComponentCustomProps, ComponentDefinition, ComponentOptionsMixin, ComponentPropsOptions, ComponentPublicInstance, ComponentTypeEmits, ComputedDefinitions, ComputedGetter, ComputedRef, ComputedSetter, CreateAppOptions, CustomRefFactory, CustomRefOptions, CustomRefSource, DataOption, DefineAppOptions, DefineComponent, DefineComponentOptions, DefineComponentTypePropsOptions, DefineComponentWithTypeProps, DefineModelModifiers, DefineModelTransformOptions, DefineStoreOptions, DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, EffectScope, EmitFn, EmitsOptions, ExtractComputed, ExtractDefaultPropTypes, ExtractMethods, ExtractPropTypes, ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, InferNativePropType, InferNativeProps, InferPropType, InferProps, InternalRuntimeState, InternalRuntimeStateFields, LayoutHostBinding, MapSources, MaybeRef, MaybeRefOrGetter, MaybeUndefined, MethodDefinitions, MiniProgramAdapter, MiniProgramAppOptions, MiniProgramBehaviorIdentifier, MiniProgramComponentBehaviorOptions, MiniProgramComponentOptions, MiniProgramComponentRawOptions, MiniProgramInstance, MiniProgramPageLifetimes, ModelBinding, ModelBindingOptions, ModelBindingPayload, ModelModifiers, ModelRef, MultiWatchSources, MutationKind, MutationOp, MutationRecord, MutationType, NativeComponent, NativePropType, NativePropsOptions, NativeTypeHint, NativeTypedProperty, ObjectDirective, OnCleanup, PageFeatures, PageLayoutMeta, PageLayoutState, PageMeta, PrelinkReactiveTreeOptions, PropConstructor, PropOptions, PropType, PublicProps, Ref, RuntimeApp, RuntimeInstance, SetDataDebugInfo, SetDataSnapshotOptions, SetupContext, SetupContextNativeInstance, SetupContextRouter, SetupContextWithTypeProps, SetupFunction, SetupFunctionWithTypeProps, ShallowRef, ShallowUnwrapRef, StoreManager, StoreSubscribeOptions, StoreToRefsResult, SubscriptionCallback, TemplateRef, TemplateRefValue, TemplateRefs, ToRefs, TriggerEventOptions, UpdatePerformanceListener, UpdatePerformanceListenerResult, UseIntersectionObserverOptions, UseIntersectionObserverResult, UseModelOptions, UsePageScrollThrottleOptions, UsePageScrollThrottleStopHandle, UseUpdatePerformanceListenerStopHandle, VNode, VNodeProps, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, WeappIntrinsicElementBaseAttributes, WeappIntrinsicEventHandler, WevuComponentConstructor, WevuDefaults, WevuGlobalComponents, WevuGlobalDirectives, WevuPageLayoutMap, WevuPlugin, WevuTypedRouterRouteMap, WritableComputedOptions, WritableComputedRef, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, definePageMeta, defineProps, defineSlots, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, 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, 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, useAttrs, useBindModel, useDisposables, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, usePageLayout, usePageScrollThrottle, useSlots, useTemplateRef, useUpdatePerformanceListener, version, waitForLayoutHost, watch, watchEffect, watchPostEffect, watchSyncEffect, withDefaults };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
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-DvvlGmiL.mjs";
|
|
2
2
|
import { i as computed, n as defineStore, r as createStore, t as storeToRefs } from "./store-C-Eil5IU.mjs";
|
|
3
3
|
import { A as onThemeChange, B as setCurrentSetupContext, C as onResize, D as onShareTimeline, E as onShareAppMessage, F as callHookReturn, G as readonly, I as getCurrentInstance, K as shallowReadonly, L as getCurrentSetupContext, M as onUnload, O as onShow, P as callHookList, S as onReady, T as onSaveExitState, U as isProxy, W as isReadonly, _ as onMoved, a as injectGlobal, b as onPullDownRefresh, c as setGlobalProvidedValue, d as onDetached, f as onError, g as onMemoryWarning, h as onLoad, i as inject, j as onUnhandledRejection, k as onTabItemTap, l as onAddToFavorites, m as onLaunch, n as useNativeRouter, o as provide, p as onHide, r as hasInjectionContext, s as provideGlobal, t as useNativePageRouter, u as onAttached, v as onPageNotFound, w as onRouteDone, x as onReachBottom, y as onPageScroll, z as setCurrentInstance } from "./router-BeMj67ue.mjs";
|
|
4
|
-
import { $ as onBeforeMount, A as registerApp, B as resetWevuDefaults, C as resolveLayoutBridge, D as useLayoutBridge, E as unregisterRuntimeLayoutHosts, F as resolveRuntimePageLayoutName, G as watch, H as isNoSetData, I as setPageLayout, J as watchSyncEffect, K as watchEffect, L as syncRuntimePageLayoutState, M as setRuntimeSetDataVisibility, N as teardownRuntimeInstance, O as useLayoutHosts, P as runSetupFunction, Q as onActivated, R as syncRuntimePageLayoutStateFromRuntime, S as registerRuntimeLayoutHosts, T as unregisterPageLayoutBridge, U as markNoSetData, V as setWevuDefaults, W as version, X as setDeepWatchStrategy, Y as getDeepWatchStrategy, Z as callUpdateHooks, _ as createWevuScopedSlotComponent, a as useAttrs, at as onServerPrefetch, b as registerComponent, c as defineAppSetup, ct as traverse, d as normalizeClass, dt as isShallowRef, et as onBeforeUnmount, f as normalizeStyle, ft as shallowRef, g as createWevuComponent, h as useDisposables, i as useModel, it as onMounted, j as mountRuntimeInstance, k as waitForLayoutHost, l as use, lt as toRef, m as useIntersectionObserver, n as mergeModels, nt as onDeactivated, o as useNativeInstance, ot as onUnmounted, p as usePageScrollThrottle, pt as triggerRef, q as watchPostEffect, r as useBindModel, rt as onErrorCaptured, s as useSlots, st as onUpdated, t as useTemplateRef, tt as onBeforeUpdate, u as useUpdatePerformanceListener, ut as toRefs, v as defineComponent, w as resolveLayoutHost, x as registerPageLayoutBridge, y as createApp, z as usePageLayout } from "./src-
|
|
4
|
+
import { $ as onBeforeMount, A as registerApp, B as resetWevuDefaults, C as resolveLayoutBridge, D as useLayoutBridge, E as unregisterRuntimeLayoutHosts, F as resolveRuntimePageLayoutName, G as watch, H as isNoSetData, I as setPageLayout, J as watchSyncEffect, K as watchEffect, L as syncRuntimePageLayoutState, M as setRuntimeSetDataVisibility, N as teardownRuntimeInstance, O as useLayoutHosts, P as runSetupFunction, Q as onActivated, R as syncRuntimePageLayoutStateFromRuntime, S as registerRuntimeLayoutHosts, T as unregisterPageLayoutBridge, U as markNoSetData, V as setWevuDefaults, W as version, X as setDeepWatchStrategy, Y as getDeepWatchStrategy, Z as callUpdateHooks, _ as createWevuScopedSlotComponent, a as useAttrs, at as onServerPrefetch, b as registerComponent, c as defineAppSetup, ct as traverse, d as normalizeClass, dt as isShallowRef, et as onBeforeUnmount, f as normalizeStyle, ft as shallowRef, g as createWevuComponent, h as useDisposables, i as useModel, it as onMounted, j as mountRuntimeInstance, k as waitForLayoutHost, l as use, lt as toRef, m as useIntersectionObserver, n as mergeModels, nt as onDeactivated, o as useNativeInstance, ot as onUnmounted, p as usePageScrollThrottle, pt as triggerRef, q as watchPostEffect, r as useBindModel, rt as onErrorCaptured, s as useSlots, st as onUpdated, t as useTemplateRef, tt as onBeforeUpdate, u as useUpdatePerformanceListener, ut as toRefs, v as defineComponent, w as resolveLayoutHost, x as registerPageLayoutBridge, y as createApp, z as usePageLayout } from "./src-BaaW1GlH.mjs";
|
|
5
5
|
export { addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineAppSetup, defineComponent, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, 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, 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, useAttrs, useBindModel, useDisposables, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, usePageLayout, usePageScrollThrottle, useSlots, useTemplateRef, useUpdatePerformanceListener, version, waitForLayoutHost, watch, watchEffect, watchPostEffect, watchSyncEffect };
|
package/dist/jsx-runtime.d.mts
CHANGED
|
@@ -431,7 +431,7 @@ function watchSyncEffect(effectFn, options = {}) {
|
|
|
431
431
|
}
|
|
432
432
|
//#endregion
|
|
433
433
|
//#region src/version.ts
|
|
434
|
-
const version = "6.
|
|
434
|
+
const version = "6.14.0";
|
|
435
435
|
//#endregion
|
|
436
436
|
//#region src/utils.ts
|
|
437
437
|
function capitalize(str) {
|
|
@@ -2017,8 +2017,8 @@ function shouldUseDetailPayload(dataset, event) {
|
|
|
2017
2017
|
}
|
|
2018
2018
|
function resolveInlineEventArg(event, dataset) {
|
|
2019
2019
|
if (!shouldUseDetailPayload(dataset, event)) return event;
|
|
2020
|
-
if (!event || typeof event !== "object" || !("detail" in event)) return
|
|
2021
|
-
return event.detail
|
|
2020
|
+
if (!event || typeof event !== "object" || !("detail" in event)) return;
|
|
2021
|
+
return event.detail;
|
|
2022
2022
|
}
|
|
2023
2023
|
function getByPath(target, path) {
|
|
2024
2024
|
if (!path) return;
|
|
@@ -3422,6 +3422,7 @@ function teardownRuntimeInstance(target) {
|
|
|
3422
3422
|
}
|
|
3423
3423
|
//#endregion
|
|
3424
3424
|
//#region src/runtime/register/app.ts
|
|
3425
|
+
const APP_GLOBAL_LISTENER_STORE_KEY = "__wevuAppGlobalListeners";
|
|
3425
3426
|
const MEMORY_WARNING_LISTENER_KEY = "__wevuOnMemoryWarningListener";
|
|
3426
3427
|
function bindMemoryWarningListener(target) {
|
|
3427
3428
|
const hooks = target.__wevuHooks;
|
|
@@ -3444,6 +3445,57 @@ function bindMemoryWarningListener(target) {
|
|
|
3444
3445
|
target[MEMORY_WARNING_LISTENER_KEY] = listener;
|
|
3445
3446
|
onMemoryWarning(listener);
|
|
3446
3447
|
}
|
|
3448
|
+
function bindAppGlobalListener(target, options) {
|
|
3449
|
+
var _ref, _ref$APP_GLOBAL_LISTE;
|
|
3450
|
+
const { hookName, onApiName, offApiName, userHandler } = options;
|
|
3451
|
+
const hooks = target.__wevuHooks;
|
|
3452
|
+
const hasHook = Boolean(hooks === null || hooks === void 0 ? void 0 : hooks[hookName]);
|
|
3453
|
+
const wxGlobal = getMiniProgramGlobalObject();
|
|
3454
|
+
const onApi = wxGlobal === null || wxGlobal === void 0 ? void 0 : wxGlobal[onApiName];
|
|
3455
|
+
const offApi = wxGlobal === null || wxGlobal === void 0 ? void 0 : wxGlobal[offApiName];
|
|
3456
|
+
const store = (_ref$APP_GLOBAL_LISTE = (_ref = target)[APP_GLOBAL_LISTENER_STORE_KEY]) !== null && _ref$APP_GLOBAL_LISTE !== void 0 ? _ref$APP_GLOBAL_LISTE : _ref[APP_GLOBAL_LISTENER_STORE_KEY] = Object.create(null);
|
|
3457
|
+
const existing = store[hookName];
|
|
3458
|
+
if (typeof existing === "function" && typeof offApi === "function") try {
|
|
3459
|
+
offApi(existing);
|
|
3460
|
+
} catch (_unused2) {}
|
|
3461
|
+
if (!hasHook && typeof userHandler !== "function") {
|
|
3462
|
+
delete store[hookName];
|
|
3463
|
+
return;
|
|
3464
|
+
}
|
|
3465
|
+
const dispatch = (...args) => {
|
|
3466
|
+
callHookList(target, hookName, args);
|
|
3467
|
+
if (typeof userHandler === "function") userHandler.apply(target, args);
|
|
3468
|
+
};
|
|
3469
|
+
target[hookName] = dispatch;
|
|
3470
|
+
store[hookName] = dispatch;
|
|
3471
|
+
if (typeof onApi === "function") onApi(dispatch);
|
|
3472
|
+
}
|
|
3473
|
+
function bindAppGlobalListeners(target, handlers) {
|
|
3474
|
+
bindAppGlobalListener(target, {
|
|
3475
|
+
hookName: "onError",
|
|
3476
|
+
onApiName: "onError",
|
|
3477
|
+
offApiName: "offError",
|
|
3478
|
+
userHandler: handlers.onError
|
|
3479
|
+
});
|
|
3480
|
+
bindAppGlobalListener(target, {
|
|
3481
|
+
hookName: "onPageNotFound",
|
|
3482
|
+
onApiName: "onPageNotFound",
|
|
3483
|
+
offApiName: "offPageNotFound",
|
|
3484
|
+
userHandler: handlers.onPageNotFound
|
|
3485
|
+
});
|
|
3486
|
+
bindAppGlobalListener(target, {
|
|
3487
|
+
hookName: "onUnhandledRejection",
|
|
3488
|
+
onApiName: "onUnhandledRejection",
|
|
3489
|
+
offApiName: "offUnhandledRejection",
|
|
3490
|
+
userHandler: handlers.onUnhandledRejection
|
|
3491
|
+
});
|
|
3492
|
+
bindAppGlobalListener(target, {
|
|
3493
|
+
hookName: "onThemeChange",
|
|
3494
|
+
onApiName: "onThemeChange",
|
|
3495
|
+
offApiName: "offThemeChange",
|
|
3496
|
+
userHandler: handlers.onThemeChange
|
|
3497
|
+
});
|
|
3498
|
+
}
|
|
3447
3499
|
/**
|
|
3448
3500
|
* 注册 App 入口(框架内部使用)。
|
|
3449
3501
|
* @internal
|
|
@@ -3460,10 +3512,20 @@ function registerApp(runtimeApp, methods, watch, setup, mpOptions) {
|
|
|
3460
3512
|
return runInlineExpression((_runtime$proxy = runtime === null || runtime === void 0 ? void 0 : runtime.proxy) !== null && _runtime$proxy !== void 0 ? _runtime$proxy : this, void 0, event, runtime === null || runtime === void 0 || (_runtime$methods = runtime.methods) === null || _runtime$methods === void 0 ? void 0 : _runtime$methods.__weapp_vite_inline_map);
|
|
3461
3513
|
};
|
|
3462
3514
|
const userOnLaunch = appOptions.onLaunch;
|
|
3515
|
+
const userOnError = appOptions.onError;
|
|
3516
|
+
const userOnPageNotFound = appOptions.onPageNotFound;
|
|
3517
|
+
const userOnUnhandledRejection = appOptions.onUnhandledRejection;
|
|
3518
|
+
const userOnThemeChange = appOptions.onThemeChange;
|
|
3463
3519
|
appOptions.onLaunch = function onLaunch(...args) {
|
|
3464
3520
|
this.__wevuIsAppInstance = true;
|
|
3465
3521
|
mountRuntimeInstance(this, runtimeApp, watch, setup);
|
|
3466
3522
|
bindMemoryWarningListener(this);
|
|
3523
|
+
bindAppGlobalListeners(this, {
|
|
3524
|
+
onError: userOnError,
|
|
3525
|
+
onPageNotFound: userOnPageNotFound,
|
|
3526
|
+
onUnhandledRejection: userOnUnhandledRejection,
|
|
3527
|
+
onThemeChange: userOnThemeChange
|
|
3528
|
+
});
|
|
3467
3529
|
callHookList(this, "onLaunch", args);
|
|
3468
3530
|
if (typeof userOnLaunch === "function") userOnLaunch.apply(this, args);
|
|
3469
3531
|
};
|
|
@@ -3477,26 +3539,10 @@ function registerApp(runtimeApp, methods, watch, setup, mpOptions) {
|
|
|
3477
3539
|
callHookList(this, "onHide", args);
|
|
3478
3540
|
if (typeof userOnHide === "function") userOnHide.apply(this, args);
|
|
3479
3541
|
};
|
|
3480
|
-
|
|
3481
|
-
appOptions.
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
};
|
|
3485
|
-
const userOnPageNotFound = appOptions.onPageNotFound;
|
|
3486
|
-
appOptions.onPageNotFound = function onPageNotFound(...args) {
|
|
3487
|
-
callHookList(this, "onPageNotFound", args);
|
|
3488
|
-
if (typeof userOnPageNotFound === "function") userOnPageNotFound.apply(this, args);
|
|
3489
|
-
};
|
|
3490
|
-
const userOnUnhandledRejection = appOptions.onUnhandledRejection;
|
|
3491
|
-
appOptions.onUnhandledRejection = function onUnhandledRejection(...args) {
|
|
3492
|
-
callHookList(this, "onUnhandledRejection", args);
|
|
3493
|
-
if (typeof userOnUnhandledRejection === "function") userOnUnhandledRejection.apply(this, args);
|
|
3494
|
-
};
|
|
3495
|
-
const userOnThemeChange = appOptions.onThemeChange;
|
|
3496
|
-
appOptions.onThemeChange = function onThemeChange(...args) {
|
|
3497
|
-
callHookList(this, "onThemeChange", args);
|
|
3498
|
-
if (typeof userOnThemeChange === "function") userOnThemeChange.apply(this, args);
|
|
3499
|
-
};
|
|
3542
|
+
delete appOptions.onError;
|
|
3543
|
+
delete appOptions.onPageNotFound;
|
|
3544
|
+
delete appOptions.onUnhandledRejection;
|
|
3545
|
+
delete appOptions.onThemeChange;
|
|
3500
3546
|
for (const methodName of methodNames) {
|
|
3501
3547
|
const userMethod = appOptions[methodName];
|
|
3502
3548
|
appOptions[methodName] = function runtimeMethod(...args) {
|
package/dist/vue-demi.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { n as WeappIntrinsicElementBaseAttributes, r as WeappIntrinsicEventHandler } from "./weappIntrinsicElements-BWrmJql8.mjs";
|
|
1
2
|
import { $ as PropOptions, A as CustomRefSource, B as ComponentPropsOptions, C as ComputedRef, D as computed, E as WritableComputedRef, F as customRef, G as InferNativeProps, H as ExtractPropTypes, I as isRef, J as NativePropType, K as InferPropType, L as ref, M as MaybeRefOrGetter, N as Ref, O as CustomRefFactory, P as ShallowRef, Q as PropConstructor, R as toValue, S as ComputedGetter, T as WritableComputedOptions, U as ExtractPublicPropTypes, V as ExtractDefaultPropTypes, W as InferNativePropType, X as NativeTypeHint, Y as NativePropsOptions, Z as NativeTypedProperty, _ as ObjectDirective, a as ActionContext, b as VNode, c as MutationType, d as SubscriptionCallback, et as PropType, f as AllowedComponentProps, g as NativeComponent, h as DefineComponent, i as defineStore, j as MaybeRef, k as CustomRefOptions, l as StoreManager, m as ComponentOptionsMixin, n as storeToRefs, o as ActionSubscriber, p as ComponentCustomProps, q as InferProps, r as createStore, s as DefineStoreOptions, t as StoreToRefsResult, u as StoreSubscribeOptions, v as PublicProps, w as ComputedSetter, x as VNodeProps, y as ShallowUnwrapRef, z as unref } from "./index-BPZxNlC8.mjs";
|
|
2
3
|
import { a as SetupContextRouter, c as WevuTypedRouterRouteMap } from "./router-DW4Yf9Yj.mjs";
|
|
3
|
-
import { $ as WevuPageLayoutMap, $n as MiniProgramInstance, $r as MutationOp, $t as onUnhandledRejection, A as use, An as WevuGlobalDirectives, Ar as traverse, At as onUpdated, B as teardownRuntimeInstance, Bn as SetupFunction, Br as shallowReadonly, Bt as onPageNotFound, C as UseModelOptions, Cn as setWevuDefaults, Cr as WatchScheduler, Ct as onBeforeUnmount, D as useAttrs, Dn as TemplateRefValue, Dr as WatchStopHandle, Dt as onMounted, E as useModel, En as GlobalDirectives, Er as WatchSources, Et as onErrorCaptured, F as normalizeClass, Fn as PageFeatures, Fr as shallowRef, Ft as onHide, G as injectGlobal, Gn as RuntimeInstance, Gr as reactive, Gt as onResize, H as registerApp, Hn as InternalRuntimeState, Hr as isRaw, Ht as onPullDownRefresh, I as normalizeStyle, In as SetDataDebugInfo, Ir as triggerRef, It as onLaunch, J as setGlobalProvidedValue, Jn as MiniProgramAppOptions, Jr as shallowReactive, Jt as onShareAppMessage, K as provide, Kn as WevuPlugin, Kr as toRaw, Kt as onRouteDone, L as runSetupFunction, Ln as SetDataSnapshotOptions, Lr as isProxy, Lt as onLoad, M as UpdatePerformanceListenerResult, Mn as DataOption, Mr as toRef, Mt as onAttached, N as UseUpdatePerformanceListenerStopHandle, Nn as DefineAppOptions, Nr as toRefs, Nt as onDetached, O as useNativeInstance, On as TemplateRefs, Or as getDeepWatchStrategy, Ot as onServerPrefetch, P as useUpdatePerformanceListener, Pn as DefineComponentOptions, Pr as isShallowRef, Pt as onError, Q as PageLayoutState, Qn as MiniProgramComponentRawOptions, Qr as MutationKind, Qt as onThemeChange, R as mountRuntimeInstance, Rn as SetupContext, Rr as isReadonly, Rt as onMemoryWarning, S as ModelModifiers, Sn as resetWevuDefaults, Sr as WatchOptions, St as onBeforeMount, T as useBindModel, Tn as GlobalComponents, Tr as WatchSourceValue, Tt as onDeactivated, U as hasInjectionContext, Un as InternalRuntimeStateFields, Ur as isReactive, Ut as onReachBottom, V as registerComponent, Vn as AppConfig, Vr as getReactiveVersion, Vt as onPageScroll, W as inject, Wn as RuntimeApp, Wr as markRaw, Wt as onReady, X as UsePageScrollThrottleStopHandle, Xn as MiniProgramComponentBehaviorOptions, Xr as prelinkReactiveTree, Xt as onShow, Y as UsePageScrollThrottleOptions, Yn as MiniProgramBehaviorIdentifier, Yr as PrelinkReactiveTreeOptions, Yt as onShareTimeline, Z as usePageScrollThrottle, Zn as MiniProgramComponentOptions, Zr as touchReactive, Zt as onTabItemTap, _ as EmitsOptions, _n as WevuComponentConstructor, _r as OnCleanup, _t as UseIntersectionObserverOptions, a as PageLayoutMeta, ai as effect, an as setCurrentInstance, ar as ExtractMethods, at as isNoSetData, b as useNativePageRouter, bn as defineComponent, br as WatchEffectOptions, bt as callUpdateHooks, c as defineExpose, ci as getCurrentScope, cn as DisposableLike, cr as ModelBindingOptions, ct as registerPageLayoutBridge, d as definePageMeta, di as stop, dn as useDisposables, dr as watchEffect, dt as resolveLayoutHost, ei as MutationRecord, en as onUnload, er as MiniProgramPageLifetimes, et as resolveRuntimePageLayoutName, f as defineProps, fi as nextTick, fn as ComponentDefinition, fr as watchPostEffect, ft as unregisterPageLayoutBridge, g as EmitFn, gn as SetupFunctionWithTypeProps, gr as MultiWatchSources, gt as waitForLayoutHost, h as ComponentTypeEmits, hn as SetupContextWithTypeProps, hr as MaybeUndefined, ht as useLayoutHosts, i as ModelRef, ii as batch, in as getCurrentSetupContext, ir as ExtractComputed, it as usePageLayout, j as UpdatePerformanceListener, jn as CreateAppOptions, jr as ToRefs, jt as onAddToFavorites, k as useSlots, kn as WevuGlobalComponents, kr as setDeepWatchStrategy, kt as onUnmounted, l as defineModel, li as onScopeDispose, ln as DisposableMethodName, lr as ModelBindingPayload, lt as registerRuntimeLayoutHosts, m as withDefaults, mn as DefineComponentWithTypeProps, mr as MapSources, mt as useLayoutBridge, n as DefineModelModifiers, ni as removeMutationRecorder, nn as callHookReturn, nr as ComponentPublicInstance, nt as syncRuntimePageLayoutState, o as PageMeta, oi as effectScope, on as setCurrentSetupContext, or as MethodDefinitions, ot as markNoSetData, p as defineSlots, pn as DefineComponentTypePropsOptions, pr as watchSyncEffect, pt as unregisterRuntimeLayoutHosts, q as provideGlobal, qn as MiniProgramAdapter, qr as isShallowReactive, qt as onSaveExitState, r as DefineModelTransformOptions, ri as EffectScope, rn as getCurrentInstance, rr as ComputedDefinitions, rt as syncRuntimePageLayoutStateFromRuntime, s as defineEmits, si as endBatch, sn as DisposableBag, sr as ModelBinding, st as LayoutHostBinding, t as version, ti as addMutationRecorder, tn as callHookList, tr as TriggerEventOptions, tt as setPageLayout, u as defineOptions, ui as startBatch, un as DisposableObject, ur as watch, ut as resolveLayoutBridge, v as TemplateRef, vn as createWevuComponent, vr as WatchCallback, vt as UseIntersectionObserverResult, w as mergeModels, wn as createApp, wr as WatchSource, wt as onBeforeUpdate, x as useNativeRouter, xn as WevuDefaults, xr as WatchMultiSources, xt as onActivated, y as useTemplateRef, yn as createWevuScopedSlotComponent, yr as WatchEffect, yt as useIntersectionObserver, z as setRuntimeSetDataVisibility, zn as SetupContextNativeInstance, zr as readonly, zt as onMoved } from "./index-
|
|
4
|
+
import { $ as WevuPageLayoutMap, $n as MiniProgramInstance, $r as MutationOp, $t as onUnhandledRejection, A as use, An as WevuGlobalDirectives, Ar as traverse, At as onUpdated, B as teardownRuntimeInstance, Bn as SetupFunction, Br as shallowReadonly, Bt as onPageNotFound, C as UseModelOptions, Cn as setWevuDefaults, Cr as WatchScheduler, Ct as onBeforeUnmount, D as useAttrs, Dn as TemplateRefValue, Dr as WatchStopHandle, Dt as onMounted, E as useModel, En as GlobalDirectives, Er as WatchSources, Et as onErrorCaptured, F as normalizeClass, Fn as PageFeatures, Fr as shallowRef, Ft as onHide, G as injectGlobal, Gn as RuntimeInstance, Gr as reactive, Gt as onResize, H as registerApp, Hn as InternalRuntimeState, Hr as isRaw, Ht as onPullDownRefresh, I as normalizeStyle, In as SetDataDebugInfo, Ir as triggerRef, It as onLaunch, J as setGlobalProvidedValue, Jn as MiniProgramAppOptions, Jr as shallowReactive, Jt as onShareAppMessage, K as provide, Kn as WevuPlugin, Kr as toRaw, Kt as onRouteDone, L as runSetupFunction, Ln as SetDataSnapshotOptions, Lr as isProxy, Lt as onLoad, M as UpdatePerformanceListenerResult, Mn as DataOption, Mr as toRef, Mt as onAttached, N as UseUpdatePerformanceListenerStopHandle, Nn as DefineAppOptions, Nr as toRefs, Nt as onDetached, O as useNativeInstance, On as TemplateRefs, Or as getDeepWatchStrategy, Ot as onServerPrefetch, P as useUpdatePerformanceListener, Pn as DefineComponentOptions, Pr as isShallowRef, Pt as onError, Q as PageLayoutState, Qn as MiniProgramComponentRawOptions, Qr as MutationKind, Qt as onThemeChange, R as mountRuntimeInstance, Rn as SetupContext, Rr as isReadonly, Rt as onMemoryWarning, S as ModelModifiers, Sn as resetWevuDefaults, Sr as WatchOptions, St as onBeforeMount, T as useBindModel, Tn as GlobalComponents, Tr as WatchSourceValue, Tt as onDeactivated, U as hasInjectionContext, Un as InternalRuntimeStateFields, Ur as isReactive, Ut as onReachBottom, V as registerComponent, Vn as AppConfig, Vr as getReactiveVersion, Vt as onPageScroll, W as inject, Wn as RuntimeApp, Wr as markRaw, Wt as onReady, X as UsePageScrollThrottleStopHandle, Xn as MiniProgramComponentBehaviorOptions, Xr as prelinkReactiveTree, Xt as onShow, Y as UsePageScrollThrottleOptions, Yn as MiniProgramBehaviorIdentifier, Yr as PrelinkReactiveTreeOptions, Yt as onShareTimeline, Z as usePageScrollThrottle, Zn as MiniProgramComponentOptions, Zr as touchReactive, Zt as onTabItemTap, _ as EmitsOptions, _n as WevuComponentConstructor, _r as OnCleanup, _t as UseIntersectionObserverOptions, a as PageLayoutMeta, ai as effect, an as setCurrentInstance, ar as ExtractMethods, at as isNoSetData, b as useNativePageRouter, bn as defineComponent, br as WatchEffectOptions, bt as callUpdateHooks, c as defineExpose, ci as getCurrentScope, cn as DisposableLike, cr as ModelBindingOptions, ct as registerPageLayoutBridge, d as definePageMeta, di as stop, dn as useDisposables, dr as watchEffect, dt as resolveLayoutHost, ei as MutationRecord, en as onUnload, er as MiniProgramPageLifetimes, et as resolveRuntimePageLayoutName, f as defineProps, fi as nextTick, fn as ComponentDefinition, fr as watchPostEffect, ft as unregisterPageLayoutBridge, g as EmitFn, gn as SetupFunctionWithTypeProps, gr as MultiWatchSources, gt as waitForLayoutHost, h as ComponentTypeEmits, hn as SetupContextWithTypeProps, hr as MaybeUndefined, ht as useLayoutHosts, i as ModelRef, ii as batch, in as getCurrentSetupContext, ir as ExtractComputed, it as usePageLayout, j as UpdatePerformanceListener, jn as CreateAppOptions, jr as ToRefs, jt as onAddToFavorites, k as useSlots, kn as WevuGlobalComponents, kr as setDeepWatchStrategy, kt as onUnmounted, l as defineModel, li as onScopeDispose, ln as DisposableMethodName, lr as ModelBindingPayload, lt as registerRuntimeLayoutHosts, m as withDefaults, mn as DefineComponentWithTypeProps, mr as MapSources, mt as useLayoutBridge, n as DefineModelModifiers, ni as removeMutationRecorder, nn as callHookReturn, nr as ComponentPublicInstance, nt as syncRuntimePageLayoutState, o as PageMeta, oi as effectScope, on as setCurrentSetupContext, or as MethodDefinitions, ot as markNoSetData, p as defineSlots, pn as DefineComponentTypePropsOptions, pr as watchSyncEffect, pt as unregisterRuntimeLayoutHosts, q as provideGlobal, qn as MiniProgramAdapter, qr as isShallowReactive, qt as onSaveExitState, r as DefineModelTransformOptions, ri as EffectScope, rn as getCurrentInstance, rr as ComputedDefinitions, rt as syncRuntimePageLayoutStateFromRuntime, s as defineEmits, si as endBatch, sn as DisposableBag, sr as ModelBinding, st as LayoutHostBinding, t as version, ti as addMutationRecorder, tn as callHookList, tr as TriggerEventOptions, tt as setPageLayout, u as defineOptions, ui as startBatch, un as DisposableObject, ur as watch, ut as resolveLayoutBridge, v as TemplateRef, vn as createWevuComponent, vr as WatchCallback, vt as UseIntersectionObserverResult, w as mergeModels, wn as createApp, wr as WatchSource, wt as onBeforeUpdate, x as useNativeRouter, xn as WevuDefaults, xr as WatchMultiSources, xt as onActivated, y as useTemplateRef, yn as createWevuScopedSlotComponent, yr as WatchEffect, yt as useIntersectionObserver, z as setRuntimeSetDataVisibility, zn as SetupContextNativeInstance, zr as readonly, zt as onMoved } from "./index-DEjNYYT6.mjs";
|
|
4
5
|
|
|
5
6
|
//#region src/vue-demi.d.ts
|
|
6
7
|
/**
|
|
@@ -20,4 +21,4 @@ declare const Vue2: undefined;
|
|
|
20
21
|
*/
|
|
21
22
|
declare function install(): void;
|
|
22
23
|
//#endregion
|
|
23
|
-
export { ActionContext, ActionSubscriber, AllowedComponentProps, AppConfig, ComponentCustomProps, ComponentDefinition, ComponentOptionsMixin, ComponentPropsOptions, ComponentPublicInstance, ComponentTypeEmits, ComputedDefinitions, ComputedGetter, ComputedRef, ComputedSetter, CreateAppOptions, CustomRefFactory, CustomRefOptions, CustomRefSource, DataOption, DefineAppOptions, DefineComponent, DefineComponentOptions, DefineComponentTypePropsOptions, DefineComponentWithTypeProps, DefineModelModifiers, DefineModelTransformOptions, DefineStoreOptions, DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, EffectScope, EmitFn, EmitsOptions, ExtractComputed, ExtractDefaultPropTypes, ExtractMethods, ExtractPropTypes, ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, InferNativePropType, InferNativeProps, InferPropType, InferProps, InternalRuntimeState, InternalRuntimeStateFields, LayoutHostBinding, MapSources, MaybeRef, MaybeRefOrGetter, MaybeUndefined, MethodDefinitions, MiniProgramAdapter, MiniProgramAppOptions, MiniProgramBehaviorIdentifier, MiniProgramComponentBehaviorOptions, MiniProgramComponentOptions, MiniProgramComponentRawOptions, MiniProgramInstance, MiniProgramPageLifetimes, ModelBinding, ModelBindingOptions, ModelBindingPayload, ModelModifiers, ModelRef, MultiWatchSources, MutationKind, MutationOp, MutationRecord, MutationType, NativeComponent, NativePropType, NativePropsOptions, NativeTypeHint, NativeTypedProperty, ObjectDirective, OnCleanup, PageFeatures, PageLayoutMeta, PageLayoutState, PageMeta, PrelinkReactiveTreeOptions, PropConstructor, PropOptions, PropType, PublicProps, Ref, RuntimeApp, RuntimeInstance, SetDataDebugInfo, SetDataSnapshotOptions, SetupContext, SetupContextNativeInstance, SetupContextRouter, SetupContextWithTypeProps, SetupFunction, SetupFunctionWithTypeProps, ShallowRef, ShallowUnwrapRef, StoreManager, StoreSubscribeOptions, StoreToRefsResult, SubscriptionCallback, TemplateRef, TemplateRefValue, TemplateRefs, ToRefs, TriggerEventOptions, UpdatePerformanceListener, UpdatePerformanceListenerResult, UseIntersectionObserverOptions, UseIntersectionObserverResult, UseModelOptions, UsePageScrollThrottleOptions, UsePageScrollThrottleStopHandle, UseUpdatePerformanceListenerStopHandle, VNode, VNodeProps, Vue2, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, WevuComponentConstructor, WevuDefaults, WevuGlobalComponents, WevuGlobalDirectives, WevuPageLayoutMap, WevuPlugin, WevuTypedRouterRouteMap, WritableComputedOptions, WritableComputedRef, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, definePageMeta, defineProps, defineSlots, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, getReactiveVersion, hasInjectionContext, inject, injectGlobal, install, isNoSetData, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, isVue2, isVue3, 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, 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, useAttrs, useBindModel, useDisposables, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, usePageLayout, usePageScrollThrottle, useSlots, useTemplateRef, useUpdatePerformanceListener, version, waitForLayoutHost, watch, watchEffect, watchPostEffect, watchSyncEffect, withDefaults };
|
|
24
|
+
export { ActionContext, ActionSubscriber, AllowedComponentProps, AppConfig, ComponentCustomProps, ComponentDefinition, ComponentOptionsMixin, ComponentPropsOptions, ComponentPublicInstance, ComponentTypeEmits, ComputedDefinitions, ComputedGetter, ComputedRef, ComputedSetter, CreateAppOptions, CustomRefFactory, CustomRefOptions, CustomRefSource, DataOption, DefineAppOptions, DefineComponent, DefineComponentOptions, DefineComponentTypePropsOptions, DefineComponentWithTypeProps, DefineModelModifiers, DefineModelTransformOptions, DefineStoreOptions, DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, EffectScope, EmitFn, EmitsOptions, ExtractComputed, ExtractDefaultPropTypes, ExtractMethods, ExtractPropTypes, ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, InferNativePropType, InferNativeProps, InferPropType, InferProps, InternalRuntimeState, InternalRuntimeStateFields, LayoutHostBinding, MapSources, MaybeRef, MaybeRefOrGetter, MaybeUndefined, MethodDefinitions, MiniProgramAdapter, MiniProgramAppOptions, MiniProgramBehaviorIdentifier, MiniProgramComponentBehaviorOptions, MiniProgramComponentOptions, MiniProgramComponentRawOptions, MiniProgramInstance, MiniProgramPageLifetimes, ModelBinding, ModelBindingOptions, ModelBindingPayload, ModelModifiers, ModelRef, MultiWatchSources, MutationKind, MutationOp, MutationRecord, MutationType, NativeComponent, NativePropType, NativePropsOptions, NativeTypeHint, NativeTypedProperty, ObjectDirective, OnCleanup, PageFeatures, PageLayoutMeta, PageLayoutState, PageMeta, PrelinkReactiveTreeOptions, PropConstructor, PropOptions, PropType, PublicProps, Ref, RuntimeApp, RuntimeInstance, SetDataDebugInfo, SetDataSnapshotOptions, SetupContext, SetupContextNativeInstance, SetupContextRouter, SetupContextWithTypeProps, SetupFunction, SetupFunctionWithTypeProps, ShallowRef, ShallowUnwrapRef, StoreManager, StoreSubscribeOptions, StoreToRefsResult, SubscriptionCallback, TemplateRef, TemplateRefValue, TemplateRefs, ToRefs, TriggerEventOptions, UpdatePerformanceListener, UpdatePerformanceListenerResult, UseIntersectionObserverOptions, UseIntersectionObserverResult, UseModelOptions, UsePageScrollThrottleOptions, UsePageScrollThrottleStopHandle, UseUpdatePerformanceListenerStopHandle, VNode, VNodeProps, Vue2, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, WeappIntrinsicElementBaseAttributes, WeappIntrinsicEventHandler, WevuComponentConstructor, WevuDefaults, WevuGlobalComponents, WevuGlobalDirectives, WevuPageLayoutMap, WevuPlugin, WevuTypedRouterRouteMap, WritableComputedOptions, WritableComputedRef, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, definePageMeta, defineProps, defineSlots, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, getReactiveVersion, hasInjectionContext, inject, injectGlobal, install, isNoSetData, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, isVue2, isVue3, 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, 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, useAttrs, useBindModel, useDisposables, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, usePageLayout, usePageScrollThrottle, useSlots, useTemplateRef, useUpdatePerformanceListener, version, waitForLayoutHost, watch, watchEffect, watchPostEffect, watchSyncEffect, withDefaults };
|
package/dist/vue-demi.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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-DvvlGmiL.mjs";
|
|
2
2
|
import { i as computed, n as defineStore, r as createStore, t as storeToRefs } from "./store-C-Eil5IU.mjs";
|
|
3
3
|
import { A as onThemeChange, B as setCurrentSetupContext, C as onResize, D as onShareTimeline, E as onShareAppMessage, F as callHookReturn, G as readonly, I as getCurrentInstance, K as shallowReadonly, L as getCurrentSetupContext, M as onUnload, O as onShow, P as callHookList, S as onReady, T as onSaveExitState, U as isProxy, W as isReadonly, _ as onMoved, a as injectGlobal, b as onPullDownRefresh, c as setGlobalProvidedValue, d as onDetached, f as onError, g as onMemoryWarning, h as onLoad, i as inject, j as onUnhandledRejection, k as onTabItemTap, l as onAddToFavorites, m as onLaunch, n as useNativeRouter, o as provide, p as onHide, r as hasInjectionContext, s as provideGlobal, t as useNativePageRouter, u as onAttached, v as onPageNotFound, w as onRouteDone, x as onReachBottom, y as onPageScroll, z as setCurrentInstance } from "./router-BeMj67ue.mjs";
|
|
4
|
-
import { $ as onBeforeMount, A as registerApp, B as resetWevuDefaults, C as resolveLayoutBridge, D as useLayoutBridge, E as unregisterRuntimeLayoutHosts, F as resolveRuntimePageLayoutName, G as watch, H as isNoSetData, I as setPageLayout, J as watchSyncEffect, K as watchEffect, L as syncRuntimePageLayoutState, M as setRuntimeSetDataVisibility, N as teardownRuntimeInstance, O as useLayoutHosts, P as runSetupFunction, Q as onActivated, R as syncRuntimePageLayoutStateFromRuntime, S as registerRuntimeLayoutHosts, T as unregisterPageLayoutBridge, U as markNoSetData, V as setWevuDefaults, W as version, X as setDeepWatchStrategy, Y as getDeepWatchStrategy, Z as callUpdateHooks, _ as createWevuScopedSlotComponent, a as useAttrs, at as onServerPrefetch, b as registerComponent, c as defineAppSetup, ct as traverse, d as normalizeClass, dt as isShallowRef, et as onBeforeUnmount, f as normalizeStyle, ft as shallowRef, g as createWevuComponent, h as useDisposables, i as useModel, it as onMounted, j as mountRuntimeInstance, k as waitForLayoutHost, l as use, lt as toRef, m as useIntersectionObserver, n as mergeModels, nt as onDeactivated, o as useNativeInstance, ot as onUnmounted, p as usePageScrollThrottle, pt as triggerRef, q as watchPostEffect, r as useBindModel, rt as onErrorCaptured, s as useSlots, st as onUpdated, t as useTemplateRef, tt as onBeforeUpdate, u as useUpdatePerformanceListener, ut as toRefs, v as defineComponent, w as resolveLayoutHost, x as registerPageLayoutBridge, y as createApp, z as usePageLayout } from "./src-
|
|
4
|
+
import { $ as onBeforeMount, A as registerApp, B as resetWevuDefaults, C as resolveLayoutBridge, D as useLayoutBridge, E as unregisterRuntimeLayoutHosts, F as resolveRuntimePageLayoutName, G as watch, H as isNoSetData, I as setPageLayout, J as watchSyncEffect, K as watchEffect, L as syncRuntimePageLayoutState, M as setRuntimeSetDataVisibility, N as teardownRuntimeInstance, O as useLayoutHosts, P as runSetupFunction, Q as onActivated, R as syncRuntimePageLayoutStateFromRuntime, S as registerRuntimeLayoutHosts, T as unregisterPageLayoutBridge, U as markNoSetData, V as setWevuDefaults, W as version, X as setDeepWatchStrategy, Y as getDeepWatchStrategy, Z as callUpdateHooks, _ as createWevuScopedSlotComponent, a as useAttrs, at as onServerPrefetch, b as registerComponent, c as defineAppSetup, ct as traverse, d as normalizeClass, dt as isShallowRef, et as onBeforeUnmount, f as normalizeStyle, ft as shallowRef, g as createWevuComponent, h as useDisposables, i as useModel, it as onMounted, j as mountRuntimeInstance, k as waitForLayoutHost, l as use, lt as toRef, m as useIntersectionObserver, n as mergeModels, nt as onDeactivated, o as useNativeInstance, ot as onUnmounted, p as usePageScrollThrottle, pt as triggerRef, q as watchPostEffect, r as useBindModel, rt as onErrorCaptured, s as useSlots, st as onUpdated, t as useTemplateRef, tt as onBeforeUpdate, u as useUpdatePerformanceListener, ut as toRefs, v as defineComponent, w as resolveLayoutHost, x as registerPageLayoutBridge, y as createApp, z as usePageLayout } from "./src-BaaW1GlH.mjs";
|
|
5
5
|
//#region src/vue-demi.ts
|
|
6
6
|
/**
|
|
7
7
|
* 标记当前兼容层运行在 Vue 3 风格分支。
|
package/dist/{weappIntrinsicElements-BogJZUKk.d.mts → weappIntrinsicElements-BWrmJql8.d.mts}
RENAMED
|
@@ -1211,4 +1211,4 @@ interface WeappIntrinsicElements {
|
|
|
1211
1211
|
'web-view': WeappIntrinsicElementWebView;
|
|
1212
1212
|
}
|
|
1213
1213
|
//#endregion
|
|
1214
|
-
export { WeappIntrinsicElements as t };
|
|
1214
|
+
export { WeappIntrinsicElementBaseAttributes as n, WeappIntrinsicEventHandler as r, WeappIntrinsicElements as t };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wevu",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.14.0",
|
|
5
5
|
"description": "Vue 3 风格的小程序运行时,包含响应式、diff+setData 与轻量状态管理",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -102,8 +102,8 @@
|
|
|
102
102
|
},
|
|
103
103
|
"dependencies": {
|
|
104
104
|
"vue": "^3.5.32",
|
|
105
|
-
"@wevu/
|
|
106
|
-
"@wevu/
|
|
105
|
+
"@wevu/api": "0.2.3",
|
|
106
|
+
"@wevu/compiler": "6.14.0"
|
|
107
107
|
},
|
|
108
108
|
"scripts": {
|
|
109
109
|
"dev": "tsdown -w",
|