wevu 7.4.0 → 7.6.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/README.md +2 -0
- package/dist/config/defaults.d.mts +44 -0
- package/dist/config/pageFeatures.d.mts +51 -0
- package/dist/config.d.mts +4 -0
- package/dist/config.mjs +1 -0
- package/dist/dev/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/defineProperty.mjs +1 -1
- package/dist/dev/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/toPrimitive.mjs +1 -1
- package/dist/dev/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/toPropertyKey.mjs +1 -1
- package/dist/dev/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/typeof.mjs +1 -1
- package/dist/dev/package.mjs +1 -1
- package/dist/dev/reactivity/computed.mjs.map +1 -1
- package/dist/dev/reactivity/core.mjs +1 -1
- package/dist/dev/reactivity/ref.mjs +1 -1
- package/dist/dev/reactivity/ref.mjs.map +1 -1
- package/dist/dev/runtime/app/diagnostics.mjs +5 -1
- package/dist/dev/runtime/app/diagnostics.mjs.map +1 -1
- package/dist/dev/runtime/app/mount.mjs +8 -3
- package/dist/dev/runtime/app/mount.mjs.map +1 -1
- package/dist/dev/runtime/app/setData/commitTracker.mjs +39 -4
- package/dist/dev/runtime/app/setData/commitTracker.mjs.map +1 -1
- package/dist/dev/runtime/app/setData/observation.mjs +109 -0
- package/dist/dev/runtime/app/setData/observation.mjs.map +1 -0
- package/dist/dev/runtime/app/setData/scheduler.mjs +12 -1
- package/dist/dev/runtime/app/setData/scheduler.mjs.map +1 -1
- package/dist/dev/runtime/app/setDataOptions.mjs +1 -0
- package/dist/dev/runtime/app/setDataOptions.mjs.map +1 -1
- package/dist/dev/runtime/define/initialComputed.mjs +13 -12
- package/dist/dev/runtime/define/initialComputed.mjs.map +1 -1
- package/dist/dev/runtime/define/props.mjs +5 -1
- package/dist/dev/runtime/define/props.mjs.map +1 -1
- package/dist/dev/runtime/define/scopedSlotOptions.mjs +2 -1
- package/dist/dev/runtime/define/scopedSlotOptions.mjs.map +1 -1
- package/dist/dev/runtime/define/setupResult.mjs +3 -5
- package/dist/dev/runtime/define/setupResult.mjs.map +1 -1
- package/dist/dev/runtime/define.mjs +3 -8
- package/dist/dev/runtime/define.mjs.map +1 -1
- package/dist/dev/runtime/features/scopedSlots.mjs.map +1 -1
- package/dist/dev/runtime/pageLayout.mjs.map +1 -1
- package/dist/dev/runtime/register/component/hmrRegistration.mjs +15 -0
- package/dist/dev/runtime/register/component/hmrRegistration.mjs.map +1 -0
- package/dist/dev/runtime/register/component/props.mjs +15 -5
- package/dist/dev/runtime/register/component/props.mjs.map +1 -1
- package/dist/dev/runtime/register/component/registerDefinition.mjs +30 -18
- package/dist/dev/runtime/register/component/registerDefinition.mjs.map +1 -1
- package/dist/dev/runtime/register/component.mjs +23 -12
- package/dist/dev/runtime/register/component.mjs.map +1 -1
- package/dist/dev/runtime/register/runtimeInstance/methodBridge.mjs +14 -7
- package/dist/dev/runtime/register/runtimeInstance/methodBridge.mjs.map +1 -1
- package/dist/dev/runtime/register/runtimeInstance/nativeDeclaration.mjs +78 -0
- package/dist/dev/runtime/register/runtimeInstance/nativeDeclaration.mjs.map +1 -0
- package/dist/dev/runtime/register/runtimeInstance/provideContext.mjs +52 -8
- package/dist/dev/runtime/register/runtimeInstance/provideContext.mjs.map +1 -1
- package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs +2 -25
- package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs.map +1 -1
- package/dist/dev/runtime/register/runtimeInstance/utils.mjs.map +1 -1
- package/dist/dev/runtime/register/runtimeInstance.mjs +69 -29
- package/dist/dev/runtime/register/runtimeInstance.mjs.map +1 -1
- package/dist/dev/runtime/register/watch.mjs +1 -3
- package/dist/dev/runtime/register/watch.mjs.map +1 -1
- package/dist/fetch.mjs +1 -1
- package/dist/index.d.mts +13 -8
- package/dist/internal-reactivity.d.mts +2 -1
- package/dist/internal-template.mjs +1 -1
- package/dist/jsx-runtime.d.mts +2 -1
- package/dist/macros/shared.d.mts +3 -2
- package/dist/macros.d.mts +3 -10
- package/dist/package.mjs +1 -1
- package/dist/reactivity/asyncDerivation.d.mts +2 -1
- package/dist/reactivity/computed.d.mts +3 -7
- package/dist/reactivity/core.mjs +1 -1
- package/dist/reactivity/index.d.mts +2 -1
- package/dist/reactivity/reactive/mutation.d.mts +2 -1
- package/dist/reactivity/reactive/patch.mjs +1 -1
- package/dist/reactivity/reactive/patchState.mjs +1 -1
- package/dist/reactivity/ref.d.mts +1 -1
- package/dist/reactivity/ref.mjs +1 -1
- package/dist/reactivity/toRefs.d.mts +2 -1
- package/dist/reactivity/watch/helpers.mjs +1 -1
- package/dist/reactivity/watch/types.d.mts +2 -1
- package/dist/router/initialNavigation.mjs +1 -1
- package/dist/router/types.d.mts +2 -1
- package/dist/router/useRoute.mjs +1 -1
- package/dist/routerInternal/matching.mjs +1 -1
- package/dist/routerInternal/params.mjs +1 -1
- package/dist/routerInternal/path.mjs +1 -1
- package/dist/routerInternal/query.mjs +1 -1
- package/dist/routerInternal/records.mjs +1 -1
- package/dist/runtime/app/context.mjs +1 -1
- package/dist/runtime/app/diagnostics.mjs +1 -1
- package/dist/runtime/app/mount.mjs +1 -1
- package/dist/runtime/app/setData/commitTracker.d.mts +2 -1
- package/dist/runtime/app/setData/commitTracker.mjs +1 -1
- package/dist/runtime/app/setData/observation.d.mts +13 -0
- package/dist/runtime/app/setData/observation.mjs +1 -0
- package/dist/runtime/app/setData/scheduler.d.mts +1 -0
- package/dist/runtime/app/setData/scheduler.mjs +1 -1
- package/dist/runtime/app/setDataOptions.mjs +1 -1
- package/dist/runtime/app.d.mts +1 -1
- package/dist/runtime/capabilities.d.mts +2 -2
- package/dist/runtime/define/initialComputed.mjs +1 -1
- package/dist/runtime/define/props.mjs +1 -1
- package/dist/runtime/define/scopedSlotOptions.mjs +1 -1
- package/dist/runtime/define/setupResult.mjs +1 -1
- package/dist/runtime/define.d.mts +5 -3
- package/dist/runtime/define.mjs +1 -1
- package/dist/runtime/diff.mjs +1 -1
- package/dist/runtime/features/publicLayout.d.mts +2 -1
- package/dist/runtime/features/publicLayout.mjs +1 -1
- package/dist/runtime/features/scopedSlots.d.mts +3 -2
- package/dist/runtime/index.d.mts +7 -4
- package/dist/runtime/jsxIsland.mjs +1 -1
- package/dist/runtime/pageLayout.d.mts +3 -2
- package/dist/runtime/pageLayout.mjs +1 -1
- package/dist/runtime/pageScroll.mjs +1 -1
- package/dist/runtime/register/app.d.mts +1 -1
- package/dist/runtime/register/component/alipayRegistration.mjs +1 -1
- package/dist/runtime/register/component/hmrRegistration.mjs +1 -0
- package/dist/runtime/register/component/lifecycle.mjs +1 -1
- package/dist/runtime/register/component/props.mjs +1 -1
- package/dist/runtime/register/component/registerDefinition.mjs +1 -1
- package/dist/runtime/register/component/registerNativeDefinition.mjs +1 -1
- package/dist/runtime/register/component.d.mts +1 -1
- package/dist/runtime/register/component.mjs +1 -1
- package/dist/runtime/register/inline.d.mts +2 -1
- package/dist/runtime/register/runtimeInstance/methodBridge.mjs +1 -1
- package/dist/runtime/register/runtimeInstance/nativeDeclaration.mjs +1 -0
- package/dist/runtime/register/runtimeInstance/provideContext.mjs +1 -1
- package/dist/runtime/register/runtimeInstance/setupPhase.mjs +1 -1
- package/dist/runtime/register/runtimeInstance.d.mts +11 -6
- package/dist/runtime/register/runtimeInstance.mjs +1 -1
- package/dist/runtime/register/setup.d.mts +2 -1
- package/dist/runtime/register/watch.d.mts +2 -1
- package/dist/runtime/register/watch.mjs +1 -1
- package/dist/runtime/setupTracking.mjs +1 -1
- package/dist/runtime/templateRefTypes.d.mts +3 -5
- package/dist/runtime/templateRefs.mjs +1 -1
- package/dist/runtime/types/core.d.mts +3 -7
- package/dist/runtime/types/miniprogramHostSources.d.mts +1 -0
- package/dist/runtime/types/options.d.mts +6 -52
- package/dist/runtime/types/props/propTypes.d.mts +2 -1
- package/dist/runtime/types/props/router.d.mts +2 -1
- package/dist/runtime/types/props/setup.d.mts +2 -1
- package/dist/runtime/types/runtime.d.mts +3 -1
- package/dist/runtime/types/setData.d.mts +30 -0
- package/dist/runtime/types.d.mts +5 -3
- package/dist/runtime/uniAppHost.d.mts +2 -1
- package/dist/runtime/vueCompat/model.d.mts +3 -2
- package/dist/runtime/vueCompat/router.d.mts +2 -1
- package/dist/scheduler.mjs +1 -1
- package/dist/store/storeToRefs.d.mts +2 -1
- package/dist/store/types.d.mts +4 -3
- package/dist/types/definitions.d.mts +7 -0
- package/dist/types/pageLayout.d.mts +4 -0
- package/dist/types/pageMeta.d.mts +10 -0
- package/dist/types/reactivity.d.mts +13 -0
- package/dist/types.d.mts +5 -0
- package/dist/types.mjs +1 -0
- package/dist/vue-demi.d.mts +13 -7
- package/dist/vue-types.d.mts +3 -4
- package/dist/web-apis.mjs +1 -1
- package/package.json +23 -13
- package/dist/dev/api/vitest/setup.d.mts +0 -1
- package/dist/dev/api/vitest.d.mts +0 -1
- package/dist/dev/api.d.mts +0 -1
- package/dist/dev/compiler.d.mts +0 -1
- package/dist/dev/fetch.d.mts +0 -9
- package/dist/dev/index.d.mts +0 -72
- package/dist/dev/internal-reactivity.d.mts +0 -18
- package/dist/dev/internal-runtime.d.mts +0 -45
- package/dist/dev/internal-template.d.mts +0 -2
- package/dist/dev/jsxTypes.d.mts +0 -9
- package/dist/dev/macros/shared.d.mts +0 -83
- package/dist/dev/macros.d.mts +0 -71
- package/dist/dev/reactivity/asyncDerivation.d.mts +0 -41
- package/dist/dev/reactivity/computed.d.mts +0 -25
- package/dist/dev/reactivity/core.d.mts +0 -35
- package/dist/dev/reactivity/index.d.mts +0 -16
- package/dist/dev/reactivity/reactive/mutation.d.mts +0 -21
- package/dist/dev/reactivity/reactive/patch.d.mts +0 -18
- package/dist/dev/reactivity/reactive/shallow.d.mts +0 -22
- package/dist/dev/reactivity/reactive/shared.d.mts +0 -4
- package/dist/dev/reactivity/reactive.d.mts +0 -42
- package/dist/dev/reactivity/readonly.d.mts +0 -27
- package/dist/dev/reactivity/ref.d.mts +0 -27
- package/dist/dev/reactivity/shallowRef.d.mts +0 -19
- package/dist/dev/reactivity/toRefs.d.mts +0 -43
- package/dist/dev/reactivity/traverse.d.mts +0 -8
- package/dist/dev/reactivity/watch/types.d.mts +0 -43
- package/dist/dev/reactivity/watch.d.mts +0 -22
- package/dist/dev/router/auto-routes.d.mts +0 -8
- package/dist/dev/router/createRouter.d.mts +0 -9
- package/dist/dev/router/navigationCore.d.mts +0 -7
- package/dist/dev/router/resolve.d.mts +0 -7
- package/dist/dev/router/routeSync.d.mts +0 -2
- package/dist/dev/router/scrollRestoration/adapters.d.mts +0 -8
- package/dist/dev/router/scrollRestoration/controller.d.mts +0 -8
- package/dist/dev/router/scrollRestoration/host.d.mts +0 -3
- package/dist/dev/router/scrollRestoration/index.d.mts +0 -9
- package/dist/dev/router/scrollRestoration/types.d.mts +0 -61
- package/dist/dev/router/types.d.mts +0 -267
- package/dist/dev/router/useRoute.d.mts +0 -20
- package/dist/dev/router/useRouter.d.mts +0 -9
- package/dist/dev/router.d.mts +0 -30
- package/dist/dev/routerInternal/location.d.mts +0 -2
- package/dist/dev/routerInternal/matching.d.mts +0 -2
- package/dist/dev/routerInternal/params.d.mts +0 -2
- package/dist/dev/routerInternal/query.d.mts +0 -7
- package/dist/dev/routerInternal/records.d.mts +0 -2
- package/dist/dev/routerInternal/recordsWarnings.d.mts +0 -2
- package/dist/dev/routerInternal/shared.d.mts +0 -9
- package/dist/dev/routerInternal/snapshots.d.mts +0 -2
- package/dist/dev/routerInternal/types.d.mts +0 -9
- package/dist/dev/runtime/app/pending.d.mts +0 -10
- package/dist/dev/runtime/app/setData/commitTracker.d.mts +0 -13
- package/dist/dev/runtime/app/setData/scheduler.d.mts +0 -51
- package/dist/dev/runtime/app.d.mts +0 -8
- package/dist/dev/runtime/capabilities.d.mts +0 -78
- package/dist/dev/runtime/css.d.mts +0 -14
- package/dist/dev/runtime/defaults.d.mts +0 -12
- package/dist/dev/runtime/define.d.mts +0 -118
- package/dist/dev/runtime/disposables.d.mts +0 -31
- package/dist/dev/runtime/elementIntersectionObserver.d.mts +0 -26
- package/dist/dev/runtime/features/inlineEvents.d.mts +0 -7
- package/dist/dev/runtime/features/jsxIslands.d.mts +0 -7
- package/dist/dev/runtime/features/layout.d.mts +0 -7
- package/dist/dev/runtime/features/patchStrategy.d.mts +0 -7
- package/dist/dev/runtime/features/publicLayout.d.mts +0 -24
- package/dist/dev/runtime/features/scopedSlots.d.mts +0 -23
- package/dist/dev/runtime/features/setDataHighFrequencyWarning.d.mts +0 -7
- package/dist/dev/runtime/features/templateRefs.d.mts +0 -7
- package/dist/dev/runtime/hooks/base.d.mts +0 -27
- package/dist/dev/runtime/hooks/register.d.mts +0 -30
- package/dist/dev/runtime/hooks/vue.d.mts +0 -52
- package/dist/dev/runtime/hooks.d.mts +0 -4
- package/dist/dev/runtime/index.d.mts +0 -46
- package/dist/dev/runtime/intersectionObserver.d.mts +0 -14
- package/dist/dev/runtime/jsxIsland.d.mts +0 -37
- package/dist/dev/runtime/layoutBridge.d.mts +0 -55
- package/dist/dev/runtime/noSetData.d.mts +0 -5
- package/dist/dev/runtime/pageEnvironment.d.mts +0 -50
- package/dist/dev/runtime/pageLayout.d.mts +0 -25
- package/dist/dev/runtime/pageScroll.d.mts +0 -29
- package/dist/dev/runtime/provide.d.mts +0 -60
- package/dist/dev/runtime/provideStore.d.mts +0 -7
- package/dist/dev/runtime/publicRuntime.d.mts +0 -22
- package/dist/dev/runtime/pullDownRefresh.d.mts +0 -12
- package/dist/dev/runtime/register/app.d.mts +0 -14
- package/dist/dev/runtime/register/component.d.mts +0 -17
- package/dist/dev/runtime/register/inline.d.mts +0 -15
- package/dist/dev/runtime/register/runtimeInstance.d.mts +0 -26
- package/dist/dev/runtime/register/setup.d.mts +0 -11
- package/dist/dev/runtime/register/watch.d.mts +0 -12
- package/dist/dev/runtime/register.d.mts +0 -5
- package/dist/dev/runtime/selectorQuery.d.mts +0 -54
- package/dist/dev/runtime/template.d.mts +0 -6
- package/dist/dev/runtime/templateRefTypes.d.mts +0 -12
- package/dist/dev/runtime/types/core.d.mts +0 -35
- package/dist/dev/runtime/types/miniprogram.d.mts +0 -84
- package/dist/dev/runtime/types/miniprogramHost.d.mts +0 -45
- package/dist/dev/runtime/types/miniprogramHostSources.d.mts +0 -112
- package/dist/dev/runtime/types/options.d.mts +0 -138
- package/dist/dev/runtime/types/props/propTypes.d.mts +0 -79
- package/dist/dev/runtime/types/props/router.d.mts +0 -51
- package/dist/dev/runtime/types/props/setup.d.mts +0 -96
- package/dist/dev/runtime/types/props.d.mts +0 -4
- package/dist/dev/runtime/types/runtime.d.mts +0 -59
- package/dist/dev/runtime/types/setData.d.mts +0 -237
- package/dist/dev/runtime/types.d.mts +0 -29
- package/dist/dev/runtime/uniAppHost.d.mts +0 -8
- package/dist/dev/runtime/updatePerformance.d.mts +0 -13
- package/dist/dev/runtime/use.d.mts +0 -13
- package/dist/dev/runtime/vueCompat/context.d.mts +0 -8
- package/dist/dev/runtime/vueCompat/model.d.mts +0 -30
- package/dist/dev/runtime/vueCompat/router.d.mts +0 -29
- package/dist/dev/runtime/vueCompat/templateRef.d.mts +0 -9
- package/dist/dev/runtime/vueCompat.d.mts +0 -5
- package/dist/dev/scheduler.d.mts +0 -4
- package/dist/dev/store/define.d.mts +0 -8
- package/dist/dev/store/manager.d.mts +0 -16
- package/dist/dev/store/storeToRefs.d.mts +0 -11
- package/dist/dev/store/types.d.mts +0 -106
- package/dist/dev/store.d.mts +0 -5
- package/dist/dev/version.d.mts +0 -4
- package/dist/dev/vue-augment.d.mts +0 -8
- package/dist/dev/vue-demi.d.mts +0 -87
- package/dist/dev/vue-types.d.mts +0 -19
- package/dist/dev/web-apis.d.mts +0 -3
- /package/dist/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/defineProperty.mjs +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/toPrimitive.mjs +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/toPropertyKey.mjs +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/typeof.mjs +0 -0
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { InternalRuntimeState } from "../types/runtime.mjs";
|
|
2
|
-
import "../types.mjs";
|
|
3
|
-
//#region src/runtime/hooks/vue.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Vue 3 对齐:组件/页面已挂载,映射小程序 onReady
|
|
6
|
-
*/
|
|
7
|
-
export declare function onMounted(handler: () => void): void;
|
|
8
|
-
/**
|
|
9
|
-
* Vue 3 对齐:组件/页面更新后触发。
|
|
10
|
-
* 小程序没有专用 update 生命周期,这里在每次 setData 完成后调用。
|
|
11
|
-
*/
|
|
12
|
-
export declare function onUpdated(handler: () => void): void;
|
|
13
|
-
/**
|
|
14
|
-
* Vue 3 对齐:在卸载清理前触发,保持实例上下文和暴露方法可用。
|
|
15
|
-
*/
|
|
16
|
-
export declare function onBeforeUnmount(handler: () => void): void;
|
|
17
|
-
/**
|
|
18
|
-
* Vue 3 对齐:组件/页面卸载;映射到页面 onUnload 或组件 detached
|
|
19
|
-
*/
|
|
20
|
-
export declare function onUnmounted(handler: () => void): void;
|
|
21
|
-
/**
|
|
22
|
-
* Vue 3 对齐:挂载前;setup 时同步触发以模拟 beforeMount 语义
|
|
23
|
-
*/
|
|
24
|
-
export declare function onBeforeMount(handler: () => void): void;
|
|
25
|
-
/**
|
|
26
|
-
* Vue 3 对齐:更新前;在每次 setData 前触发
|
|
27
|
-
*/
|
|
28
|
-
export declare function onBeforeUpdate(handler: () => void): void;
|
|
29
|
-
/**
|
|
30
|
-
* Vue 3 对齐:错误捕获;映射到小程序 onError
|
|
31
|
-
*/
|
|
32
|
-
export declare function onErrorCaptured(handler: (err: any, instance: any, info: string) => void): void;
|
|
33
|
-
/**
|
|
34
|
-
* Vue 3 对齐:组件激活;映射到小程序 onShow
|
|
35
|
-
*/
|
|
36
|
-
export declare function onActivated(handler: () => void): void;
|
|
37
|
-
/**
|
|
38
|
-
* Vue 3 对齐:组件失活;映射到小程序 onHide
|
|
39
|
-
*/
|
|
40
|
-
export declare function onDeactivated(handler: () => void): void;
|
|
41
|
-
/**
|
|
42
|
-
* Vue 3 对齐:服务端渲染前置钩子。
|
|
43
|
-
* 小程序无此场景,保留空实现以保持 API 兼容。
|
|
44
|
-
*/
|
|
45
|
-
export declare function onServerPrefetch(_handler: () => void): void;
|
|
46
|
-
/**
|
|
47
|
-
* 派发更新阶段钩子(框架内部调度入口)。
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
50
|
-
export declare function callUpdateHooks(target: InternalRuntimeState, phase: 'before' | 'after'): void;
|
|
51
|
-
//#endregion
|
|
52
|
-
//# sourceMappingURL=vue.d.mts.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { callHookList, callHookReturn, getCurrentInstance, getCurrentSetupContext, setCurrentInstance, setCurrentSetupContext } from "./hooks/base.mjs";
|
|
2
|
-
import { onAddToFavorites, onAttached, onDetached, onError, onHide, onLaunch, onLoad, onMemoryWarning, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload } from "./hooks/register.mjs";
|
|
3
|
-
import { callUpdateHooks, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onServerPrefetch, onUnmounted, onUpdated } from "./hooks/vue.mjs";
|
|
4
|
-
export { callHookList, callHookReturn, callUpdateHooks, getCurrentInstance, getCurrentSetupContext, onActivated, onAddToFavorites, onAttached, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onDetached, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMemoryWarning, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, setCurrentInstance, setCurrentSetupContext };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { AlipayMiniProgramHostNamespace, AlipayMiniProgramHostSourceContract, DefaultMiniProgramHostNamespace, DefaultMiniProgramHostSourceContract, DouyinMiniProgramHostNamespace, DouyinMiniProgramHostSourceContract, MiniProgramHostNamespace, MiniProgramHostNamespaceBySource, MiniProgramHostSourceName, MiniProgramHostSourceRegistry, MiniProgramPlatformHostNamespaceBySource, MiniProgramPlatformHostSourceName, MiniProgramPlatformHostSourceRegistry, MiniProgramRuntimeHostNamespaceBySource, MiniProgramRuntimeHostSourceName, MiniProgramRuntimeHostSourceRegistry, TtMiniProgramHostNamespace, TtMiniProgramHostSourceContract, WechatMiniProgramHostNamespace, WechatMiniProgramHostSourceContract } from "./types/miniprogramHostSources.mjs";
|
|
2
|
-
import { HostMiniProgramAddToFavoritesOption, HostMiniProgramAppOptions, HostMiniProgramAppTrivialInstance, HostMiniProgramBehaviorIdentifier, HostMiniProgramBoundingClientRectResult, HostMiniProgramComponentAllFullProperty, HostMiniProgramComponentAllProperty, HostMiniProgramComponentBehaviorOptions, HostMiniProgramComponentEmptyArray, HostMiniProgramComponentInstance, HostMiniProgramComponentMethodOption, HostMiniProgramComponentPropertyOption, HostMiniProgramComponentPropertyValue, HostMiniProgramComponentShortProperty, HostMiniProgramComponentTrivialInstance, HostMiniProgramComponentTrivialOption, HostMiniProgramIntersectionObserver, HostMiniProgramIntersectionObserverOptions, HostMiniProgramLaunchOptions, HostMiniProgramMemoryWarningResult, HostMiniProgramNavigateToOption, HostMiniProgramNodesRef, HostMiniProgramNodesRefFields, HostMiniProgramPageLifetime, HostMiniProgramPageNotFoundOptions, HostMiniProgramPageResizeOption, HostMiniProgramPageScrollOption, HostMiniProgramPageTrivialInstance, HostMiniProgramReLaunchOption, HostMiniProgramRedirectToOption, HostMiniProgramRouter, HostMiniProgramSaveExitState, HostMiniProgramScrollOffsetResult, HostMiniProgramSelectorQuery, HostMiniProgramShareAppMessageOption, HostMiniProgramSwitchTabOption, HostMiniProgramTabItemTapOption, HostMiniProgramThemeChangeResult, HostMiniProgramTriggerEventOptions, HostMiniProgramUnhandledRejectionResult } from "./types/miniprogramHost.mjs";
|
|
3
|
-
import { MiniProgramAdapter, MiniProgramAppOptions, MiniProgramBehaviorIdentifier, MiniProgramComponentInstance, MiniProgramComponentOptions, MiniProgramComponentPropertyValue, MiniProgramComponentRawOptions, MiniProgramInstance, MiniProgramPageLifetimes } from "./types/miniprogram.mjs";
|
|
4
|
-
import { ComponentPropsOptions, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InferNativePropType, InferNativeProps, InferPropType, InferProps, NativePropType, NativePropsOptions, NativeTypeHint, NativeTypedProperty, PropConstructor, PropOptions, PropType } from "./types/props/propTypes.mjs";
|
|
5
|
-
import { MiniProgramRouterNavigateToOption, MiniProgramRouterReLaunchOption, MiniProgramRouterRedirectToOption, MiniProgramRouterSwitchTabOption, SetupContextRouter, WevuTypedRouterRouteMap } from "./types/props/router.mjs";
|
|
6
|
-
import { ComponentPublicInstance, ComputedDefinitions, ExtractComputed, ExtractMethods, MethodDefinitions, ModelBinding, ModelBindingOptions, ModelBindingPayload } from "./types/core.mjs";
|
|
7
|
-
import { AppConfig, InternalRuntimeState, InternalRuntimeStateFields, RuntimeApp, RuntimeInstance, WevuPlugin } from "./types/runtime.mjs";
|
|
8
|
-
import { SetupContext, SetupContextIntersectionObserver, SetupContextIntersectionObserverOptions, SetupContextNativeInstance, SetupContextSelectorQuery, SetupFunction } from "./types/props/setup.mjs";
|
|
9
|
-
import { AllowedComponentProps, ComponentCustomProps, ComponentOptionsMixin, DefineComponent, NativeComponent, ObjectDirective, PublicProps, ShallowUnwrapRef, VNode, VNodeProps } from "../vue-types.mjs";
|
|
10
|
-
import { SetDataBindingDiagnostic, SetDataDebugInfo, SetDataSnapshotOptions } from "./types/setData.mjs";
|
|
11
|
-
import { CreateAppOptions, DataOption, DefineAppOptions, DefineComponentOptions, PageFeatures } from "./types/options.mjs";
|
|
12
|
-
import { GlobalComponents, GlobalDirectives, MiniProgramTemplateRefValue, TemplateRefValue, TemplateRefs, WevuGlobalComponents, WevuGlobalDirectives } from "./types.mjs";
|
|
13
|
-
import { useCssModule } from "./css.mjs";
|
|
14
|
-
import { WevuDefaults, resetWevuDefaults } from "./defaults.mjs";
|
|
15
|
-
import { ComponentDefinition, DefineComponentTypePropsOptions, DefineComponentWithTypeProps, SetupContextWithTypeProps, SetupFunctionWithTypeProps, WevuComponentConstructor, WevuDefinedComponent } from "./define.mjs";
|
|
16
|
-
import { DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, useDisposables } from "./disposables.mjs";
|
|
17
|
-
import { ElementIntersectionObserverCallback, UseElementIntersectionObserverOptions, UseElementIntersectionObserverReturn, useElementIntersectionObserver } from "./elementIntersectionObserver.mjs";
|
|
18
|
-
import { PageLayoutState, WevuPageLayoutMap } from "./pageLayout.mjs";
|
|
19
|
-
import { LayoutHostBinding } from "./capabilities.mjs";
|
|
20
|
-
import { LayoutBridgeInstance } from "./layoutBridge.mjs";
|
|
21
|
-
import { registerPageLayoutBridge, registerRuntimeLayoutHosts, resolveLayoutBridge, resolveLayoutHost, resolveRuntimePageLayoutName, setPageLayout, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, useLayoutBridge, useLayoutHosts, usePageLayout, waitForLayoutHost } from "./features/publicLayout.mjs";
|
|
22
|
-
import { callHookList, callHookReturn, getCurrentInstance, getCurrentSetupContext, setCurrentInstance, setCurrentSetupContext } from "./hooks/base.mjs";
|
|
23
|
-
import { onAddToFavorites, onAttached, onDetached, onError, onHide, onLaunch, onLoad, onMemoryWarning, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload } from "./hooks/register.mjs";
|
|
24
|
-
import { callUpdateHooks, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onServerPrefetch, onUnmounted, onUpdated } from "./hooks/vue.mjs";
|
|
25
|
-
import "./hooks.mjs";
|
|
26
|
-
import { UseIntersectionObserverOptions, UseIntersectionObserverResult, useIntersectionObserver } from "./intersectionObserver.mjs";
|
|
27
|
-
import { isNoSetData, markNoSetData } from "./noSetData.mjs";
|
|
28
|
-
import { NavigationBarMetrics, PageStackSnapshot, UseNavigationBarMetricsOptions, UsePageStackOptions, getCurrentPageStackSnapshot, getNavigationBarMetrics, useNavigationBarMetrics, usePageStack } from "./pageEnvironment.mjs";
|
|
29
|
-
import { UsePageScrollThrottleOptions, UsePageScrollThrottleStopHandle, usePageScrollThrottle } from "./pageScroll.mjs";
|
|
30
|
-
import { setGlobalProvidedValue } from "./provideStore.mjs";
|
|
31
|
-
import { hasInjectionContext, inject, injectGlobal, provide, provideGlobal } from "./provide.mjs";
|
|
32
|
-
import { setRuntimeSetDataVisibility, teardownRuntimeInstance } from "./register/runtimeInstance.mjs";
|
|
33
|
-
import { runSetupFunction } from "./register/setup.mjs";
|
|
34
|
-
import "./register.mjs";
|
|
35
|
-
import { createApp, createWevuComponent, createWevuScopedSlotComponent, defineComponent, mountRuntimeInstance, registerApp, registerComponent, setWevuDefaults } from "./publicRuntime.mjs";
|
|
36
|
-
import { PullDownRefreshHandler, UseAsyncPullDownRefreshOptions, useAsyncPullDownRefresh } from "./pullDownRefresh.mjs";
|
|
37
|
-
import { UseAllBoundingClientRectOptions, UseAllScrollOffsetOptions, UseAllSelectorFieldsOptions, UseBoundingClientRectOptions, UseScrollOffsetOptions, UseSelectorFieldsOptions, UseSelectorQueryOptions, useBoundingClientRect, useScrollOffset, useSelectorFields, useSelectorQuery } from "./selectorQuery.mjs";
|
|
38
|
-
import { normalizeClass, normalizeStyle, resolvePropValue } from "./template.mjs";
|
|
39
|
-
import { UpdatePerformanceListener, UpdatePerformanceListenerResult, UseUpdatePerformanceListenerStopHandle, useUpdatePerformanceListener } from "./updatePerformance.mjs";
|
|
40
|
-
import { defineAppSetup, use } from "./use.mjs";
|
|
41
|
-
import { useAttrs, useNativeInstance, useSlots } from "./vueCompat/context.mjs";
|
|
42
|
-
import { ModelModifiers, UseModelOptions, mergeModels, useBindModel, useChangeModel, useModel } from "./vueCompat/model.mjs";
|
|
43
|
-
import { useNativePageRouter, useNativeRouter } from "./vueCompat/router.mjs";
|
|
44
|
-
import { TemplateRef, useTemplateRef } from "./vueCompat/templateRef.mjs";
|
|
45
|
-
import "./vueCompat.mjs";
|
|
46
|
-
export { type AlipayMiniProgramHostNamespace, type AlipayMiniProgramHostSourceContract, type AllowedComponentProps, type AppConfig, type ComponentCustomProps, type ComponentDefinition, type ComponentOptionsMixin, type ComponentPropsOptions, type ComponentPublicInstance, type ComputedDefinitions, type CreateAppOptions, type DataOption, type DefaultMiniProgramHostNamespace, type DefaultMiniProgramHostSourceContract, type DefineAppOptions, type DefineComponent, type DefineComponentOptions, type DefineComponentTypePropsOptions, type DefineComponentWithTypeProps, DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, type DouyinMiniProgramHostNamespace, type DouyinMiniProgramHostSourceContract, ElementIntersectionObserverCallback, type ExtractComputed, type ExtractDefaultPropTypes, type ExtractMethods, type ExtractPropTypes, type ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, type HostMiniProgramAddToFavoritesOption, type HostMiniProgramAppOptions, type HostMiniProgramAppTrivialInstance, type HostMiniProgramBehaviorIdentifier, type HostMiniProgramBoundingClientRectResult, type HostMiniProgramComponentAllFullProperty, type HostMiniProgramComponentAllProperty, type HostMiniProgramComponentBehaviorOptions, type HostMiniProgramComponentEmptyArray, type HostMiniProgramComponentInstance, type HostMiniProgramComponentMethodOption, type HostMiniProgramComponentPropertyOption, type HostMiniProgramComponentPropertyValue, type HostMiniProgramComponentShortProperty, type HostMiniProgramComponentTrivialInstance, type HostMiniProgramComponentTrivialOption, type HostMiniProgramIntersectionObserver, type HostMiniProgramIntersectionObserverOptions, type HostMiniProgramLaunchOptions, type HostMiniProgramMemoryWarningResult, type HostMiniProgramNavigateToOption, type HostMiniProgramNodesRef, type HostMiniProgramNodesRefFields, type HostMiniProgramPageLifetime, type HostMiniProgramPageNotFoundOptions, type HostMiniProgramPageResizeOption, type HostMiniProgramPageScrollOption, type HostMiniProgramPageTrivialInstance, type HostMiniProgramReLaunchOption, type HostMiniProgramRedirectToOption, type HostMiniProgramRouter, type HostMiniProgramSaveExitState, type HostMiniProgramScrollOffsetResult, type HostMiniProgramSelectorQuery, type HostMiniProgramShareAppMessageOption, type HostMiniProgramSwitchTabOption, type HostMiniProgramTabItemTapOption, type HostMiniProgramThemeChangeResult, type HostMiniProgramTriggerEventOptions, type HostMiniProgramUnhandledRejectionResult, type InferNativePropType, type InferNativeProps, type InferPropType, type InferProps, type InternalRuntimeState, type InternalRuntimeStateFields, type LayoutBridgeInstance, type LayoutHostBinding, type MethodDefinitions, type MiniProgramAdapter, type HostMiniProgramAddToFavoritesOption as MiniProgramAddToFavoritesOption, type MiniProgramAppOptions, type MiniProgramBehaviorIdentifier, type HostMiniProgramBoundingClientRectResult as MiniProgramBoundingClientRectResult, type HostMiniProgramComponentAllFullProperty as MiniProgramComponentAllFullProperty, type HostMiniProgramComponentAllProperty as MiniProgramComponentAllProperty, type HostMiniProgramComponentBehaviorOptions as MiniProgramComponentBehaviorOptions, type HostMiniProgramComponentEmptyArray as MiniProgramComponentEmptyArray, type MiniProgramComponentInstance, type HostMiniProgramComponentMethodOption as MiniProgramComponentMethodOption, type MiniProgramComponentOptions, type HostMiniProgramComponentPropertyOption as MiniProgramComponentPropertyOption, type MiniProgramComponentPropertyValue, type MiniProgramComponentRawOptions, type HostMiniProgramComponentShortProperty as MiniProgramComponentShortProperty, type MiniProgramHostNamespace, type MiniProgramHostNamespaceBySource, type MiniProgramHostSourceName, type MiniProgramHostSourceRegistry, type MiniProgramInstance, type HostMiniProgramIntersectionObserver as MiniProgramIntersectionObserver, type HostMiniProgramIntersectionObserverOptions as MiniProgramIntersectionObserverOptions, type HostMiniProgramLaunchOptions as MiniProgramLaunchOptions, type HostMiniProgramMemoryWarningResult as MiniProgramMemoryWarningResult, type HostMiniProgramNavigateToOption as MiniProgramNavigateToOption, type HostMiniProgramNodesRef as MiniProgramNodesRef, type HostMiniProgramNodesRefFields as MiniProgramNodesRefFields, type HostMiniProgramPageLifetime as MiniProgramPageLifetime, type MiniProgramPageLifetimes, type HostMiniProgramPageNotFoundOptions as MiniProgramPageNotFoundOptions, type HostMiniProgramPageResizeOption as MiniProgramPageResizeOption, type HostMiniProgramPageScrollOption as MiniProgramPageScrollOption, type MiniProgramPlatformHostNamespaceBySource, type MiniProgramPlatformHostSourceName, type MiniProgramPlatformHostSourceRegistry, type HostMiniProgramReLaunchOption as MiniProgramReLaunchOption, type HostMiniProgramRedirectToOption as MiniProgramRedirectToOption, type HostMiniProgramRouter as MiniProgramRouter, type MiniProgramRouterNavigateToOption, type MiniProgramRouterReLaunchOption, type MiniProgramRouterRedirectToOption, type MiniProgramRouterSwitchTabOption, type MiniProgramRuntimeHostNamespaceBySource, type MiniProgramRuntimeHostSourceName, type MiniProgramRuntimeHostSourceRegistry, type HostMiniProgramSaveExitState as MiniProgramSaveExitState, type HostMiniProgramScrollOffsetResult as MiniProgramScrollOffsetResult, type HostMiniProgramSelectorQuery as MiniProgramSelectorQuery, type HostMiniProgramShareAppMessageOption as MiniProgramShareAppMessageOption, type HostMiniProgramSwitchTabOption as MiniProgramSwitchTabOption, type HostMiniProgramTabItemTapOption as MiniProgramTabItemTapOption, MiniProgramTemplateRefValue, type HostMiniProgramThemeChangeResult as MiniProgramThemeChangeResult, type HostMiniProgramUnhandledRejectionResult as MiniProgramUnhandledRejectionResult, type ModelBinding, type ModelBindingOptions, type ModelBindingPayload, type ModelModifiers, type NativeComponent, type NativePropType, type NativePropsOptions, type NativeTypeHint, type NativeTypedProperty, NavigationBarMetrics, type ObjectDirective, type PageFeatures, type PageLayoutState, PageStackSnapshot, type PropConstructor, type PropOptions, type PropType, type PublicProps, PullDownRefreshHandler, type RuntimeApp, type RuntimeInstance, type SetDataBindingDiagnostic, type SetDataDebugInfo, type SetDataSnapshotOptions, type SetupContext, type SetupContextIntersectionObserver, type SetupContextIntersectionObserverOptions, type SetupContextNativeInstance, type SetupContextRouter, type SetupContextSelectorQuery, type SetupContextWithTypeProps, type SetupFunction, type SetupFunctionWithTypeProps, type ShallowUnwrapRef, type TemplateRef, TemplateRefValue, TemplateRefs, type HostMiniProgramTriggerEventOptions as TriggerEventOptions, 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 WechatMiniProgramHostNamespace, type WechatMiniProgramHostSourceContract, type WevuComponentConstructor, type WevuDefaults, type WevuDefinedComponent, WevuGlobalComponents, WevuGlobalDirectives, type WevuPageLayoutMap, type WevuPlugin, type WevuTypedRouterRouteMap, callHookList, callHookReturn, callUpdateHooks, createApp, createWevuComponent, createWevuScopedSlotComponent, defineAppSetup, defineComponent, getCurrentInstance, getCurrentPageStackSnapshot, getCurrentSetupContext, getNavigationBarMetrics, hasInjectionContext, inject, injectGlobal, isNoSetData, markNoSetData, mergeModels, mountRuntimeInstance, 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, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, provide, provideGlobal, registerApp, registerComponent, registerPageLayoutBridge, registerRuntimeLayoutHosts, resetWevuDefaults, resolveLayoutBridge, resolveLayoutHost, resolvePropValue, resolveRuntimePageLayoutName, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setGlobalProvidedValue, setPageLayout, setRuntimeSetDataVisibility, setWevuDefaults, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, teardownRuntimeInstance, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, use, useAsyncPullDownRefresh, useAttrs, useBindModel, useBoundingClientRect, useChangeModel, useCssModule, useDisposables, useElementIntersectionObserver, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, useNavigationBarMetrics, usePageLayout, usePageScrollThrottle, usePageStack, useScrollOffset, useSelectorFields, useSelectorQuery, useSlots, useTemplateRef, useUpdatePerformanceListener, waitForLayoutHost };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HostMiniProgramIntersectionObserver, HostMiniProgramIntersectionObserverOptions } from "./types/miniprogramHost.mjs";
|
|
2
|
-
import "./types.mjs";
|
|
3
|
-
//#region src/runtime/intersectionObserver.d.ts
|
|
4
|
-
export type UseIntersectionObserverOptions = HostMiniProgramIntersectionObserverOptions;
|
|
5
|
-
export type UseIntersectionObserverResult = HostMiniProgramIntersectionObserver;
|
|
6
|
-
/**
|
|
7
|
-
* 在 setup 中创建 IntersectionObserver,并在卸载时自动断开。
|
|
8
|
-
*
|
|
9
|
-
* - 优先使用 `ctx.instance.createIntersectionObserver(options)`。
|
|
10
|
-
* - 不可用时回退到宿主全局对象的 `createIntersectionObserver(...)`。
|
|
11
|
-
*/
|
|
12
|
-
export declare function useIntersectionObserver(options?: UseIntersectionObserverOptions): UseIntersectionObserverResult;
|
|
13
|
-
//#endregion
|
|
14
|
-
//# sourceMappingURL=intersectionObserver.d.mts.map
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { WevuJsxVNode } from "../jsxTypes.mjs";
|
|
2
|
-
//#region src/runtime/jsxIsland.d.ts
|
|
3
|
-
export declare const Fragment: unique symbol;
|
|
4
|
-
export interface WevuJsxIslandNode {
|
|
5
|
-
children?: WevuJsxIslandNode[];
|
|
6
|
-
events?: Record<string, string>;
|
|
7
|
-
kind: 'element' | 'fragment' | 'text';
|
|
8
|
-
props?: Record<string, any>;
|
|
9
|
-
tag?: string;
|
|
10
|
-
text?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface WevuJsxIslandAdapters {
|
|
13
|
-
normalizeClass: (value: unknown) => string;
|
|
14
|
-
normalizeStyle: (value: unknown) => string;
|
|
15
|
-
}
|
|
16
|
-
export declare function createVNode(type: unknown, props?: Record<string, any> | null, children?: unknown): WevuJsxVNode;
|
|
17
|
-
export declare function createTextVNode(text: unknown): WevuJsxVNode;
|
|
18
|
-
export declare function isVNode(value: unknown): value is WevuJsxVNode;
|
|
19
|
-
export declare function mergeProps(...sources: Array<Record<string, any> | null | undefined>): Record<string, any>;
|
|
20
|
-
export declare function transformOn(events: Record<string, unknown>): Record<string, unknown>;
|
|
21
|
-
export declare function resolveComponent(name: string): string;
|
|
22
|
-
export declare const vShow = "show";
|
|
23
|
-
export declare const vModelText = "model-text";
|
|
24
|
-
export declare const vModelCheckbox = "model-checkbox";
|
|
25
|
-
export declare const vModelRadio = "model-radio";
|
|
26
|
-
export declare const vModelSelect = "model-select";
|
|
27
|
-
export declare function withDirectives(vnode: WevuJsxVNode, directives: unknown[]): {
|
|
28
|
-
props: {
|
|
29
|
-
[x: string]: unknown;
|
|
30
|
-
};
|
|
31
|
-
children?: unknown;
|
|
32
|
-
type: unknown;
|
|
33
|
-
};
|
|
34
|
-
export declare function resolveDirective(name: string): string;
|
|
35
|
-
export declare function normalizeJsxIsland(this: any, value: unknown, islandId: string, adapters: WevuJsxIslandAdapters): WevuJsxIslandNode | null;
|
|
36
|
-
//#endregion
|
|
37
|
-
//# sourceMappingURL=jsxIsland.d.mts.map
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { LayoutHostBinding } from "./capabilities.mjs";
|
|
2
|
-
//#region src/runtime/layoutBridge.d.ts
|
|
3
|
-
type LayoutBridgeContext = Record<string, any>;
|
|
4
|
-
type LayoutBridgeComponentResolver = (selector: string) => any;
|
|
5
|
-
type LayoutHostMap = Record<string, unknown>;
|
|
6
|
-
export type LayoutBridgeInstance<T = LayoutBridgeContext> = T & {
|
|
7
|
-
selectComponent?: LayoutBridgeComponentResolver;
|
|
8
|
-
};
|
|
9
|
-
interface LayoutHostResolveOptions<T = any> {
|
|
10
|
-
context?: T;
|
|
11
|
-
fallbackContext?: T;
|
|
12
|
-
interval?: number;
|
|
13
|
-
retries?: number;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* 为当前页面注册 layout bridge,使页面或子组件可消费 layout 内部能力。
|
|
17
|
-
*/
|
|
18
|
-
export declare function registerPageLayoutBridge(selectors: string | string[], context?: LayoutBridgeContext): boolean;
|
|
19
|
-
/**
|
|
20
|
-
* 移除当前页面的 layout bridge 注册。
|
|
21
|
-
*/
|
|
22
|
-
export declare function unregisterPageLayoutBridge(selectors: string | string[], context?: LayoutBridgeContext): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* 解析当前页面已注册的 layout bridge,找不到时回退到传入上下文。
|
|
25
|
-
*/
|
|
26
|
-
export declare function resolveLayoutBridge<T = any>(selector: string, fallbackContext?: T): LayoutBridgeInstance<T> | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* 解析当前页面 layout 内通过指定 key 暴露的宿主实例。
|
|
29
|
-
*/
|
|
30
|
-
export declare function resolveLayoutHost<T = any, C = any>(key: string, options?: LayoutHostResolveOptions<C>): NonNullable<T> | null;
|
|
31
|
-
/**
|
|
32
|
-
* 等待当前页面 layout 宿主实例可用,适合页面初次进入时的异步宿主解析。
|
|
33
|
-
*/
|
|
34
|
-
export declare function waitForLayoutHost<T = any, C = any>(key: string, options?: LayoutHostResolveOptions<C>): Promise<T | null>;
|
|
35
|
-
/**
|
|
36
|
-
* 在 layout 生命周期内暴露 bridge,使页面或子组件可访问 layout 内部实例。
|
|
37
|
-
*/
|
|
38
|
-
export declare function useLayoutBridge(selectors: string | string[], options?: {
|
|
39
|
-
resolveComponent?: LayoutBridgeComponentResolver;
|
|
40
|
-
}): void;
|
|
41
|
-
/**
|
|
42
|
-
* 使用编译期注入的宿主绑定信息,直接从当前 layout 运行时实例解析子组件宿主并注册 bridge。
|
|
43
|
-
*/
|
|
44
|
-
export declare function registerRuntimeLayoutHosts(bindings: readonly LayoutHostBinding[], context?: LayoutBridgeContext): any;
|
|
45
|
-
/**
|
|
46
|
-
* 移除运行时自动注册的 layout 宿主 bridge。
|
|
47
|
-
*/
|
|
48
|
-
export declare function unregisterRuntimeLayoutHosts(bindings: readonly LayoutHostBinding[], context?: LayoutBridgeContext): boolean;
|
|
49
|
-
/**
|
|
50
|
-
* 使用 key -> 宿主实例的映射批量暴露 layout 内部宿主,适合 toast/dialog 等共享反馈节点。
|
|
51
|
-
*/
|
|
52
|
-
export declare function useLayoutHosts(hosts: LayoutHostMap): void;
|
|
53
|
-
//#endregion
|
|
54
|
-
export type { LayoutHostBinding };
|
|
55
|
-
//# sourceMappingURL=layoutBridge.d.mts.map
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Ref } from "../reactivity/ref.mjs";
|
|
2
|
-
import { ComputedRef } from "../reactivity/computed.mjs";
|
|
3
|
-
import "../index.mjs";
|
|
4
|
-
//#region src/runtime/pageEnvironment.d.ts
|
|
5
|
-
export interface PageStackSnapshot {
|
|
6
|
-
canGoBack: boolean;
|
|
7
|
-
currentRoute: string;
|
|
8
|
-
stackLength: number;
|
|
9
|
-
}
|
|
10
|
-
export interface UsePageStackOptions {
|
|
11
|
-
autoRefresh?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface NavigationBarMetrics {
|
|
14
|
-
navigationBarHeight: number;
|
|
15
|
-
navigationHeight: number;
|
|
16
|
-
statusBarHeight: number;
|
|
17
|
-
}
|
|
18
|
-
export interface UseNavigationBarMetricsOptions {
|
|
19
|
-
autoRefresh?: boolean;
|
|
20
|
-
defaultNavigationBarHeight?: number;
|
|
21
|
-
defaultStatusBarHeight?: number;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* 获取当前小程序页面栈的稳定快照。
|
|
25
|
-
*/
|
|
26
|
-
export declare function getCurrentPageStackSnapshot(): PageStackSnapshot;
|
|
27
|
-
/**
|
|
28
|
-
* 在 setup 中跟踪当前小程序页面栈状态。
|
|
29
|
-
*/
|
|
30
|
-
export declare function usePageStack(options?: UsePageStackOptions): {
|
|
31
|
-
canGoBack: ComputedRef<boolean>;
|
|
32
|
-
currentRoute: Ref<string, string>;
|
|
33
|
-
refresh: () => void;
|
|
34
|
-
stackLength: Ref<number, number>;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* 计算自定义导航栏所需的状态栏和胶囊占位高度。
|
|
38
|
-
*/
|
|
39
|
-
export declare function getNavigationBarMetrics(options?: Omit<UseNavigationBarMetricsOptions, 'autoRefresh'>): NavigationBarMetrics;
|
|
40
|
-
/**
|
|
41
|
-
* 在 setup 中跟踪自定义导航栏尺寸。
|
|
42
|
-
*/
|
|
43
|
-
export declare function useNavigationBarMetrics(options?: UseNavigationBarMetricsOptions): {
|
|
44
|
-
navigationBarHeight: Ref<number, number>;
|
|
45
|
-
navigationHeight: ComputedRef<number>;
|
|
46
|
-
refresh: () => void;
|
|
47
|
-
statusBarHeight: Ref<number, number>;
|
|
48
|
-
};
|
|
49
|
-
//#endregion
|
|
50
|
-
//# sourceMappingURL=pageEnvironment.d.mts.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
//#region src/runtime/pageLayout.d.ts
|
|
2
|
-
type PageLayoutProps = object;
|
|
3
|
-
export interface WevuPageLayoutMap {}
|
|
4
|
-
type ResolveTypedPageLayoutName = keyof WevuPageLayoutMap extends never ? string : Extract<keyof WevuPageLayoutMap, string>;
|
|
5
|
-
type ResolveTypedPageLayoutProps<Name extends string> = Name extends keyof WevuPageLayoutMap ? WevuPageLayoutMap[Name] : PageLayoutProps;
|
|
6
|
-
type PageLayoutNamedState = { [Name in ResolveTypedPageLayoutName]: {
|
|
7
|
-
name: Name;
|
|
8
|
-
props: ResolveTypedPageLayoutProps<Name>;
|
|
9
|
-
}; }[ResolveTypedPageLayoutName];
|
|
10
|
-
export type PageLayoutState = PageLayoutNamedState | {
|
|
11
|
-
name: false;
|
|
12
|
-
props: Record<string, any>;
|
|
13
|
-
} | {
|
|
14
|
-
name: undefined;
|
|
15
|
-
props: Record<string, any>;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* 获取当前页面 layout 状态。
|
|
19
|
-
*/
|
|
20
|
-
export declare function usePageLayout(): Readonly<PageLayoutState>;
|
|
21
|
-
export declare function syncRuntimePageLayoutState(target: Record<string, any>, layout: string | false, props: PageLayoutProps): void;
|
|
22
|
-
export declare function syncRuntimePageLayoutStateFromRuntime(target: Record<string, any>): void;
|
|
23
|
-
export declare function resolveRuntimePageLayoutName(layout: string | false): string;
|
|
24
|
-
//#endregion
|
|
25
|
-
//# sourceMappingURL=pageLayout.d.mts.map
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { HostMiniProgramPageScrollOption } from "./types/miniprogramHost.mjs";
|
|
2
|
-
import "./types.mjs";
|
|
3
|
-
//#region src/runtime/pageScroll.d.ts
|
|
4
|
-
export interface UsePageScrollThrottleOptions {
|
|
5
|
-
/**
|
|
6
|
-
* 节流间隔(毫秒),默认 80ms。
|
|
7
|
-
*/
|
|
8
|
-
interval?: number;
|
|
9
|
-
/**
|
|
10
|
-
* 是否在窗口起始边缘立即触发,默认 true。
|
|
11
|
-
*/
|
|
12
|
-
leading?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* 是否在窗口结束边缘补一次回调,默认 true。
|
|
15
|
-
*/
|
|
16
|
-
trailing?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* 持续滚动时的最大等待时间(毫秒)。
|
|
19
|
-
* 当 trailing 为 false 时,可用于兜底触发一次回调。
|
|
20
|
-
*/
|
|
21
|
-
maxWait?: number;
|
|
22
|
-
}
|
|
23
|
-
export type UsePageScrollThrottleStopHandle = () => void;
|
|
24
|
-
/**
|
|
25
|
-
* 在 setup 中注册节流后的 onPageScroll 监听,并在卸载时自动清理。
|
|
26
|
-
*/
|
|
27
|
-
export declare function usePageScrollThrottle(handler: (opt: HostMiniProgramPageScrollOption) => void, options?: UsePageScrollThrottleOptions): UsePageScrollThrottleStopHandle;
|
|
28
|
-
//#endregion
|
|
29
|
-
//# sourceMappingURL=pageScroll.d.mts.map
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { setGlobalProvidedValue } from "./provideStore.mjs";
|
|
2
|
-
//#region src/runtime/provide.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* 判断当前是否存在可用的注入上下文。
|
|
5
|
-
*
|
|
6
|
-
* wevu 的依赖注入上下文来自同步 `setup()` 阶段的当前实例。
|
|
7
|
-
*/
|
|
8
|
-
export declare function hasInjectionContext(): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* 在组件上下文中向后代注入值(与 Vue 3 行为兼容),若没有当前实例则回落到全局存储。
|
|
11
|
-
*
|
|
12
|
-
* @param key 注入键,可为字符串、Symbol 或对象
|
|
13
|
-
* @param value 提供的值
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* defineComponent({
|
|
18
|
-
* setup() {
|
|
19
|
-
* provide(TOKEN_KEY, { data: 'value' })
|
|
20
|
-
* }
|
|
21
|
-
* })
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export declare function provide<T>(key: any, value: T): void;
|
|
25
|
-
/**
|
|
26
|
-
* 从祖先组件(或全局存储)读取提供的值。
|
|
27
|
-
*
|
|
28
|
-
* @param key 注入键,需与 provide 使用的键保持一致
|
|
29
|
-
* @param defaultValue 未找到提供者时的默认值
|
|
30
|
-
* @returns 匹配到的值或默认值
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```ts
|
|
34
|
-
* defineComponent({
|
|
35
|
-
* setup() {
|
|
36
|
-
* const data = inject(TOKEN_KEY)
|
|
37
|
-
* const value = inject('key', 'default')
|
|
38
|
-
* }
|
|
39
|
-
* })
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
export declare function inject<T>(key: any, defaultValue: T): T;
|
|
43
|
-
export declare function inject<T>(key: any): T | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* 全局注入值,适用于历史兼容场景。
|
|
46
|
-
*
|
|
47
|
-
* @deprecated 已弃用,仅用于兼容/过渡。推荐优先使用 `provide()`,
|
|
48
|
-
* 在无实例上下文时 `provide()` 会自动回落到全局存储。
|
|
49
|
-
*/
|
|
50
|
-
export declare function provideGlobal<T>(key: any, value: T): void;
|
|
51
|
-
/**
|
|
52
|
-
* 从全局存储读取值,适用于历史兼容场景。
|
|
53
|
-
*
|
|
54
|
-
* @deprecated 已弃用,仅用于兼容/过渡。推荐优先使用 `inject()`,
|
|
55
|
-
* 在无实例上下文时 `inject()` 会自动从全局存储读取。
|
|
56
|
-
*/
|
|
57
|
-
export declare function injectGlobal<T>(key: any, defaultValue?: T): T;
|
|
58
|
-
//#endregion
|
|
59
|
-
export { setGlobalProvidedValue };
|
|
60
|
-
//# sourceMappingURL=provide.d.mts.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { setWevuDefaults as setWevuDefaults$1 } from "./defaults.mjs";
|
|
2
|
-
import { createWevuComponent as createWevuComponent$1, defineComponent as defineComponent$1 } from "./define.mjs";
|
|
3
|
-
import { CreateWevuScopedSlotComponentOptions } from "./features/scopedSlots.mjs";
|
|
4
|
-
import { createApp as createApp$1 } from "./app.mjs";
|
|
5
|
-
import { registerApp as registerApp$1 } from "./register/app.mjs";
|
|
6
|
-
import { registerComponent as registerComponent$1 } from "./register/component.mjs";
|
|
7
|
-
import { mountRuntimeInstance as mountRuntimeInstance$1 } from "./register/runtimeInstance.mjs";
|
|
8
|
-
import "./register.mjs";
|
|
9
|
-
//#region src/runtime/publicRuntime.d.ts
|
|
10
|
-
export declare const createApp: typeof createApp$1;
|
|
11
|
-
export declare const defineComponent: typeof defineComponent$1;
|
|
12
|
-
export declare const createWevuComponent: typeof createWevuComponent$1;
|
|
13
|
-
export declare const registerApp: typeof registerApp$1;
|
|
14
|
-
export declare const registerComponent: typeof registerComponent$1;
|
|
15
|
-
export declare const mountRuntimeInstance: typeof mountRuntimeInstance$1;
|
|
16
|
-
export declare const setWevuDefaults: typeof setWevuDefaults$1;
|
|
17
|
-
/**
|
|
18
|
-
* 创建公开入口的作用域插槽组件,并保留历史上的完整能力行为。
|
|
19
|
-
*/
|
|
20
|
-
export declare function createWevuScopedSlotComponent(overrides?: CreateWevuScopedSlotComponentOptions): void;
|
|
21
|
-
//#endregion
|
|
22
|
-
//# sourceMappingURL=publicRuntime.d.mts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//#region src/runtime/pullDownRefresh.d.ts
|
|
2
|
-
export type PullDownRefreshHandler = () => void | Promise<void>;
|
|
3
|
-
export interface UseAsyncPullDownRefreshOptions {
|
|
4
|
-
onError?: (error: unknown) => void | Promise<void>;
|
|
5
|
-
stopPullDownRefresh?: () => unknown | Promise<unknown>;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* 注册下拉刷新回调,并在回调结束后自动停止宿主下拉刷新状态。
|
|
9
|
-
*/
|
|
10
|
-
export declare function useAsyncPullDownRefresh(refresh: PullDownRefreshHandler, options?: UseAsyncPullDownRefreshOptions): void;
|
|
11
|
-
//#endregion
|
|
12
|
-
//# sourceMappingURL=pullDownRefresh.d.mts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { MiniProgramAppOptions } from "../types/miniprogram.mjs";
|
|
2
|
-
import { ComputedDefinitions, MethodDefinitions } from "../types/core.mjs";
|
|
3
|
-
import { RuntimeApp } from "../types/runtime.mjs";
|
|
4
|
-
import { DefineAppOptions } from "../types/options.mjs";
|
|
5
|
-
import "../types.mjs";
|
|
6
|
-
import { WatchMap } from "./watch.mjs";
|
|
7
|
-
//#region src/runtime/register/app.d.ts
|
|
8
|
-
/**
|
|
9
|
-
* 注册 App 入口(框架内部使用)。
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
export declare function registerApp<D extends object, C extends ComputedDefinitions, M extends MethodDefinitions>(runtimeApp: RuntimeApp<D, C, M>, methods: MethodDefinitions, watch: WatchMap | undefined, setup: DefineAppOptions<D, C, M>['setup'], mpOptions: MiniProgramAppOptions): void;
|
|
13
|
-
//#endregion
|
|
14
|
-
//# sourceMappingURL=app.d.mts.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { MiniProgramComponentRawOptions } from "../types/miniprogram.mjs";
|
|
2
|
-
import { ComponentPropsOptions } from "../types/props/propTypes.mjs";
|
|
3
|
-
import { ComputedDefinitions, MethodDefinitions } from "../types/core.mjs";
|
|
4
|
-
import { RuntimeApp } from "../types/runtime.mjs";
|
|
5
|
-
import { DefineComponentOptions } from "../types/options.mjs";
|
|
6
|
-
import "../types.mjs";
|
|
7
|
-
import { WatchMap } from "./watch.mjs";
|
|
8
|
-
//#region src/runtime/register/component.d.ts
|
|
9
|
-
/**
|
|
10
|
-
* 注册组件入口(框架内部使用)。
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
export declare function registerComponent<D extends object, C extends ComputedDefinitions, M extends MethodDefinitions>(runtimeApp: RuntimeApp<D, C, M>, methods: MethodDefinitions, watch: WatchMap | undefined, setup: DefineComponentOptions<ComponentPropsOptions, D, C, M>['setup'], mpOptions: MiniProgramComponentRawOptions, options?: {
|
|
14
|
-
registerNative?: boolean;
|
|
15
|
-
}): any;
|
|
16
|
-
//#endregion
|
|
17
|
-
//# sourceMappingURL=component.d.mts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
//#region src/runtime/register/inline.d.ts
|
|
2
|
-
export interface InlineExpressionEntry {
|
|
3
|
-
keys: string[];
|
|
4
|
-
indexKeys?: string[];
|
|
5
|
-
scopeResolvers?: Array<InlineExpressionScopeResolver | ((ctx: any, scope: Record<string, any>, event: any) => any) | undefined>;
|
|
6
|
-
fn: (ctx: any, scope: Record<string, any>, event: any) => any;
|
|
7
|
-
}
|
|
8
|
-
interface InlineExpressionScopeResolver {
|
|
9
|
-
type: 'for-item';
|
|
10
|
-
path: string;
|
|
11
|
-
indexKey: string;
|
|
12
|
-
}
|
|
13
|
-
export type InlineExpressionMap = Record<string, InlineExpressionEntry>;
|
|
14
|
-
//#endregion
|
|
15
|
-
//# sourceMappingURL=inline.d.mts.map
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsOptions } from "../types/props/propTypes.mjs";
|
|
2
|
-
import { ComputedDefinitions, MethodDefinitions } from "../types/core.mjs";
|
|
3
|
-
import { InternalRuntimeState, RuntimeApp, RuntimeInstance } from "../types/runtime.mjs";
|
|
4
|
-
import { DefineAppOptions, DefineComponentOptions } from "../types/options.mjs";
|
|
5
|
-
import "../types.mjs";
|
|
6
|
-
import { WatchMap } from "./watch.mjs";
|
|
7
|
-
//#region src/runtime/register/runtimeInstance.d.ts
|
|
8
|
-
type RuntimeSetupFunction<D extends object, C extends ComputedDefinitions, M extends MethodDefinitions> = DefineComponentOptions<ComponentPropsOptions, D, C, M>['setup'] | DefineAppOptions<D, C, M>['setup'];
|
|
9
|
-
/**
|
|
10
|
-
* 挂载运行时实例(框架内部注册流程使用)。
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
export declare function mountRuntimeInstance<D extends object, C extends ComputedDefinitions, M extends MethodDefinitions>(target: InternalRuntimeState, runtimeApp: RuntimeApp<D, C, M>, watchMap: WatchMap | undefined, setup?: RuntimeSetupFunction<D, C, M>, options?: {
|
|
14
|
-
deferSetData?: boolean;
|
|
15
|
-
snapshotOmitKeys?: string[];
|
|
16
|
-
}): RuntimeInstance<D, C, M>;
|
|
17
|
-
export declare function setRuntimeSetDataVisibility(target: InternalRuntimeState, visible: boolean): void;
|
|
18
|
-
/**
|
|
19
|
-
* 卸载运行时实例(框架内部注册流程使用)。
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
export declare function teardownRuntimeInstance(target: InternalRuntimeState, options?: {
|
|
23
|
-
skipHooks?: boolean;
|
|
24
|
-
}): void;
|
|
25
|
-
//#endregion
|
|
26
|
-
//# sourceMappingURL=runtimeInstance.d.mts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region src/runtime/register/setup.d.ts
|
|
2
|
-
type SetupRunner = {
|
|
3
|
-
bivarianceHack: (props: Record<string, any>, ctx: any) => any;
|
|
4
|
-
}['bivarianceHack'];
|
|
5
|
-
/**
|
|
6
|
-
* 执行 setup 函数并注入运行时上下文(框架内部使用)。
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export declare function runSetupFunction(setup: SetupRunner | undefined, props: Record<string, any>, context: any): unknown;
|
|
10
|
-
//#endregion
|
|
11
|
-
//# sourceMappingURL=setup.d.mts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "../../reactivity/index.mjs";
|
|
2
|
-
import "../types.mjs";
|
|
3
|
-
//#region src/runtime/register/watch.d.ts
|
|
4
|
-
type WatchHandler = (this: any, value: any, oldValue: any) => void;
|
|
5
|
-
export type WatchDescriptor = WatchHandler | string | {
|
|
6
|
-
handler: WatchHandler | string;
|
|
7
|
-
immediate?: boolean;
|
|
8
|
-
deep?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export type WatchMap = Record<string, WatchDescriptor>;
|
|
11
|
-
//#endregion
|
|
12
|
-
//# sourceMappingURL=watch.d.mts.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { registerApp } from "./register/app.mjs";
|
|
2
|
-
import { registerComponent } from "./register/component.mjs";
|
|
3
|
-
import { mountRuntimeInstance, setRuntimeSetDataVisibility, teardownRuntimeInstance } from "./register/runtimeInstance.mjs";
|
|
4
|
-
import { runSetupFunction } from "./register/setup.mjs";
|
|
5
|
-
export { mountRuntimeInstance, registerApp, registerComponent, runSetupFunction, setRuntimeSetDataVisibility, teardownRuntimeInstance };
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { HostMiniProgramBoundingClientRectResult, HostMiniProgramNodesRefFields, HostMiniProgramScrollOffsetResult, HostMiniProgramSelectorQuery } from "./types/miniprogramHost.mjs";
|
|
2
|
-
import { InternalRuntimeState } from "./types/runtime.mjs";
|
|
3
|
-
import "./types.mjs";
|
|
4
|
-
//#region src/runtime/selectorQuery.d.ts
|
|
5
|
-
export interface UseSelectorQueryOptions {
|
|
6
|
-
context?: InternalRuntimeState | null;
|
|
7
|
-
}
|
|
8
|
-
export interface UseBoundingClientRectOptions extends UseSelectorQueryOptions {
|
|
9
|
-
all?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface UseSelectorFieldsOptions extends UseSelectorQueryOptions {
|
|
12
|
-
all?: boolean;
|
|
13
|
-
fields: HostMiniProgramNodesRefFields;
|
|
14
|
-
}
|
|
15
|
-
export interface UseScrollOffsetOptions extends UseSelectorQueryOptions {
|
|
16
|
-
all?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface UseAllBoundingClientRectOptions extends UseSelectorQueryOptions {
|
|
19
|
-
all: true;
|
|
20
|
-
}
|
|
21
|
-
export interface UseAllSelectorFieldsOptions extends UseSelectorQueryOptions {
|
|
22
|
-
all: true;
|
|
23
|
-
fields: HostMiniProgramNodesRefFields;
|
|
24
|
-
}
|
|
25
|
-
export interface UseAllScrollOffsetOptions extends UseSelectorQueryOptions {
|
|
26
|
-
all: true;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* 创建绑定当前小程序实例的选择器查询工厂。
|
|
30
|
-
*/
|
|
31
|
-
export declare function useSelectorQuery(options?: UseSelectorQueryOptions): () => HostMiniProgramSelectorQuery | null;
|
|
32
|
-
/**
|
|
33
|
-
* 创建绑定当前小程序实例的节点布局查询函数。
|
|
34
|
-
*/
|
|
35
|
-
export declare function useBoundingClientRect(options?: UseBoundingClientRectOptions & {
|
|
36
|
-
all?: false;
|
|
37
|
-
}): (selector: string) => Promise<HostMiniProgramBoundingClientRectResult | null>;
|
|
38
|
-
export declare function useBoundingClientRect(options: UseAllBoundingClientRectOptions): (selector: string) => Promise<HostMiniProgramBoundingClientRectResult[] | null>;
|
|
39
|
-
/**
|
|
40
|
-
* 创建绑定当前小程序实例的节点字段查询函数。
|
|
41
|
-
*/
|
|
42
|
-
export declare function useSelectorFields(options: UseSelectorFieldsOptions & {
|
|
43
|
-
all?: false;
|
|
44
|
-
}): (selector: string) => Promise<Record<string, any> | null>;
|
|
45
|
-
export declare function useSelectorFields(options: UseAllSelectorFieldsOptions): (selector: string) => Promise<Array<Record<string, any>> | null>;
|
|
46
|
-
/**
|
|
47
|
-
* 创建绑定当前小程序实例的滚动位置查询函数。
|
|
48
|
-
*/
|
|
49
|
-
export declare function useScrollOffset(options?: UseScrollOffsetOptions & {
|
|
50
|
-
all?: false;
|
|
51
|
-
}): (selector: string) => Promise<HostMiniProgramScrollOffsetResult | null>;
|
|
52
|
-
export declare function useScrollOffset(options: UseAllScrollOffsetOptions): (selector: string) => Promise<HostMiniProgramScrollOffsetResult[] | null>;
|
|
53
|
-
//#endregion
|
|
54
|
-
//# sourceMappingURL=selectorQuery.d.mts.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
//#region src/runtime/template.d.ts
|
|
2
|
-
export declare function normalizeStyle(value: any): string;
|
|
3
|
-
export declare function normalizeClass(value: any): string;
|
|
4
|
-
export declare function resolvePropValue(target: any, key: string, fallback: any, preferProps?: boolean): any;
|
|
5
|
-
//#endregion
|
|
6
|
-
//# sourceMappingURL=template.d.mts.map
|