wevu 1.0.0-alpha.5 → 1.0.1
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.cjs +38 -18
- package/dist/index.d.cts +6 -4
- package/dist/index.d.mts +6 -4
- package/dist/index.mjs +35 -16
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -913,17 +913,21 @@ function callHookReturn(target, name, args = []) {
|
|
|
913
913
|
return out;
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
|
-
function
|
|
917
|
-
if (!__currentInstance) throw new Error("
|
|
918
|
-
pushHook(__currentInstance, "
|
|
916
|
+
function onLaunch(handler) {
|
|
917
|
+
if (!__currentInstance) throw new Error("onLaunch() must be called synchronously inside setup()");
|
|
918
|
+
pushHook(__currentInstance, "onLaunch", handler);
|
|
919
919
|
}
|
|
920
|
-
function
|
|
921
|
-
if (!__currentInstance) throw new Error("
|
|
922
|
-
pushHook(__currentInstance, "
|
|
920
|
+
function onPageNotFound(handler) {
|
|
921
|
+
if (!__currentInstance) throw new Error("onPageNotFound() must be called synchronously inside setup()");
|
|
922
|
+
pushHook(__currentInstance, "onPageNotFound", handler);
|
|
923
923
|
}
|
|
924
|
-
function
|
|
925
|
-
if (!__currentInstance) throw new Error("
|
|
926
|
-
pushHook(__currentInstance, "
|
|
924
|
+
function onUnhandledRejection(handler) {
|
|
925
|
+
if (!__currentInstance) throw new Error("onUnhandledRejection() must be called synchronously inside setup()");
|
|
926
|
+
pushHook(__currentInstance, "onUnhandledRejection", handler);
|
|
927
|
+
}
|
|
928
|
+
function onThemeChange(handler) {
|
|
929
|
+
if (!__currentInstance) throw new Error("onThemeChange() must be called synchronously inside setup()");
|
|
930
|
+
pushHook(__currentInstance, "onThemeChange", handler);
|
|
927
931
|
}
|
|
928
932
|
function onShow(handler) {
|
|
929
933
|
if (!__currentInstance) throw new Error("onShow() must be called synchronously inside setup()");
|
|
@@ -1042,7 +1046,7 @@ function onBeforeUpdate(handler) {
|
|
|
1042
1046
|
*/
|
|
1043
1047
|
function onErrorCaptured(handler) {
|
|
1044
1048
|
if (!__currentInstance) throw new Error("onErrorCaptured() must be called synchronously inside setup()");
|
|
1045
|
-
pushHook(__currentInstance, "
|
|
1049
|
+
pushHook(__currentInstance, "onError", (err) => handler(err, __currentInstance, ""));
|
|
1046
1050
|
}
|
|
1047
1051
|
/**
|
|
1048
1052
|
* Vue 3 对齐:组件激活;映射到小程序 onShow
|
|
@@ -1300,26 +1304,41 @@ function registerApp(runtimeApp, methods, watch$1, setup, mpOptions) {
|
|
|
1300
1304
|
return runInlineExpression(this.__wevu?.proxy ?? this, expr, event);
|
|
1301
1305
|
};
|
|
1302
1306
|
const userOnLaunch = appOptions.onLaunch;
|
|
1303
|
-
appOptions.onLaunch = function onLaunch(...args) {
|
|
1307
|
+
appOptions.onLaunch = function onLaunch$1(...args) {
|
|
1304
1308
|
mountRuntimeInstance(this, runtimeApp, watch$1, setup);
|
|
1305
|
-
callHookList(this, "
|
|
1309
|
+
callHookList(this, "onLaunch", args);
|
|
1306
1310
|
if (typeof userOnLaunch === "function") userOnLaunch.apply(this, args);
|
|
1307
1311
|
};
|
|
1308
1312
|
const userOnShow = appOptions.onShow;
|
|
1309
1313
|
appOptions.onShow = function onShow$1(...args) {
|
|
1310
|
-
callHookList(this, "
|
|
1314
|
+
callHookList(this, "onShow", args);
|
|
1311
1315
|
if (typeof userOnShow === "function") userOnShow.apply(this, args);
|
|
1312
1316
|
};
|
|
1313
1317
|
const userOnHide = appOptions.onHide;
|
|
1314
1318
|
appOptions.onHide = function onHide$1(...args) {
|
|
1315
|
-
callHookList(this, "
|
|
1319
|
+
callHookList(this, "onHide", args);
|
|
1316
1320
|
if (typeof userOnHide === "function") userOnHide.apply(this, args);
|
|
1317
1321
|
};
|
|
1318
1322
|
const userOnError = appOptions.onError;
|
|
1319
1323
|
appOptions.onError = function onError$1(...args) {
|
|
1320
|
-
callHookList(this, "
|
|
1324
|
+
callHookList(this, "onError", args);
|
|
1321
1325
|
if (typeof userOnError === "function") userOnError.apply(this, args);
|
|
1322
1326
|
};
|
|
1327
|
+
const userOnPageNotFound = appOptions.onPageNotFound;
|
|
1328
|
+
appOptions.onPageNotFound = function onPageNotFound$1(...args) {
|
|
1329
|
+
callHookList(this, "onPageNotFound", args);
|
|
1330
|
+
if (typeof userOnPageNotFound === "function") userOnPageNotFound.apply(this, args);
|
|
1331
|
+
};
|
|
1332
|
+
const userOnUnhandledRejection = appOptions.onUnhandledRejection;
|
|
1333
|
+
appOptions.onUnhandledRejection = function onUnhandledRejection$1(...args) {
|
|
1334
|
+
callHookList(this, "onUnhandledRejection", args);
|
|
1335
|
+
if (typeof userOnUnhandledRejection === "function") userOnUnhandledRejection.apply(this, args);
|
|
1336
|
+
};
|
|
1337
|
+
const userOnThemeChange = appOptions.onThemeChange;
|
|
1338
|
+
appOptions.onThemeChange = function onThemeChange$1(...args) {
|
|
1339
|
+
callHookList(this, "onThemeChange", args);
|
|
1340
|
+
if (typeof userOnThemeChange === "function") userOnThemeChange.apply(this, args);
|
|
1341
|
+
};
|
|
1323
1342
|
for (const methodName of methodNames) {
|
|
1324
1343
|
const userMethod = appOptions[methodName];
|
|
1325
1344
|
appOptions[methodName] = function runtimeMethod(...args) {
|
|
@@ -2328,9 +2347,6 @@ exports.mountRuntimeInstance = mountRuntimeInstance;
|
|
|
2328
2347
|
exports.nextTick = nextTick;
|
|
2329
2348
|
exports.onActivated = onActivated;
|
|
2330
2349
|
exports.onAddToFavorites = onAddToFavorites;
|
|
2331
|
-
exports.onAppError = onAppError;
|
|
2332
|
-
exports.onAppHide = onAppHide;
|
|
2333
|
-
exports.onAppShow = onAppShow;
|
|
2334
2350
|
exports.onBeforeMount = onBeforeMount;
|
|
2335
2351
|
exports.onBeforeUnmount = onBeforeUnmount;
|
|
2336
2352
|
exports.onBeforeUpdate = onBeforeUpdate;
|
|
@@ -2338,9 +2354,11 @@ exports.onDeactivated = onDeactivated;
|
|
|
2338
2354
|
exports.onError = onError;
|
|
2339
2355
|
exports.onErrorCaptured = onErrorCaptured;
|
|
2340
2356
|
exports.onHide = onHide;
|
|
2357
|
+
exports.onLaunch = onLaunch;
|
|
2341
2358
|
exports.onLoad = onLoad;
|
|
2342
2359
|
exports.onMounted = onMounted;
|
|
2343
2360
|
exports.onMoved = onMoved;
|
|
2361
|
+
exports.onPageNotFound = onPageNotFound;
|
|
2344
2362
|
exports.onPageScroll = onPageScroll;
|
|
2345
2363
|
exports.onPullDownRefresh = onPullDownRefresh;
|
|
2346
2364
|
exports.onReachBottom = onReachBottom;
|
|
@@ -2354,6 +2372,8 @@ exports.onShareAppMessage = onShareAppMessage;
|
|
|
2354
2372
|
exports.onShareTimeline = onShareTimeline;
|
|
2355
2373
|
exports.onShow = onShow;
|
|
2356
2374
|
exports.onTabItemTap = onTabItemTap;
|
|
2375
|
+
exports.onThemeChange = onThemeChange;
|
|
2376
|
+
exports.onUnhandledRejection = onUnhandledRejection;
|
|
2357
2377
|
exports.onUnload = onUnload;
|
|
2358
2378
|
exports.onUnmounted = onUnmounted;
|
|
2359
2379
|
exports.onUpdated = onUpdated;
|
package/dist/index.d.cts
CHANGED
|
@@ -592,10 +592,12 @@ declare function getCurrentSetupContext<T$1 = any>(): T$1 | undefined;
|
|
|
592
592
|
declare function setCurrentSetupContext(ctx: any | undefined): void;
|
|
593
593
|
declare function callHookList(target: InternalRuntimeState, name: string, args?: any[]): void;
|
|
594
594
|
declare function callHookReturn(target: InternalRuntimeState, name: string, args?: any[]): any;
|
|
595
|
-
declare function
|
|
596
|
-
declare function
|
|
597
|
-
declare function
|
|
595
|
+
declare function onLaunch(handler: (options: WechatMiniprogram.App.LaunchShowOption) => void): void;
|
|
596
|
+
declare function onPageNotFound(handler: (options: WechatMiniprogram.App.PageNotFoundOption) => void): void;
|
|
597
|
+
declare function onUnhandledRejection(handler: WechatMiniprogram.OnUnhandledRejectionCallback): void;
|
|
598
|
+
declare function onThemeChange(handler: WechatMiniprogram.OnThemeChangeCallback): void;
|
|
598
599
|
declare function onShow(handler: () => void): void;
|
|
600
|
+
declare function onShow(handler: (options: WechatMiniprogram.App.LaunchShowOption) => void): void;
|
|
599
601
|
declare function onLoad(handler: WechatMiniprogram.Page.ILifetime['onLoad']): void;
|
|
600
602
|
declare function onHide(handler: () => void): void;
|
|
601
603
|
declare function onUnload(handler: () => void): void;
|
|
@@ -792,4 +794,4 @@ declare function createStore(): StoreManager;
|
|
|
792
794
|
type StoreToRefsResult<T$1 extends Record<string, any>> = { [K in keyof T$1]: T$1[K] extends ((...args: any[]) => any) ? T$1[K] : T$1[K] extends Ref<infer V> ? Ref<V> : Ref<T$1[K]> };
|
|
793
795
|
declare function storeToRefs<T$1 extends Record<string, any>>(store: T$1): StoreToRefsResult<T$1>;
|
|
794
796
|
//#endregion
|
|
795
|
-
export { ActionSubscriber, AppConfig, ComponentDefinition, ComponentPropsOptions, ComponentPublicInstance, ComputedDefinitions, ComputedGetter, ComputedRef, ComputedSetter, CreateAppOptions, DefineAppOptions, DefineComponentOptions, DefineStoreOptions, EffectScope, ExtractComputed, ExtractMethods, InferPropType, InferProps, InternalRuntimeState, InternalRuntimeStateFields, MethodDefinitions, MiniProgramAdapter, MiniProgramAppOptions, MiniProgramBehaviorIdentifier, MiniProgramComponentBehaviorOptions, MiniProgramComponentOptions, MiniProgramComponentRawOptions, MiniProgramInstance, MiniProgramPageLifetimes, ModelBinding, ModelBindingOptions, MutationType, PageFeatures, PropConstructor, PropOptions, PropType, Ref, RuntimeApp, RuntimeInstance, SetupContext, SetupFunction, StoreManager, SubscriptionCallback, ToRefs, TriggerEventOptions, WatchOptions, WatchStopHandle, WevuPlugin, WritableComputedOptions, WritableComputedRef, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, defineComponent, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, inject, injectGlobal, isRaw, isReactive, isRef, isShallowReactive, isShallowRef, markRaw, mergeModels, mountRuntimeInstance, nextTick, onActivated, onAddToFavorites,
|
|
797
|
+
export { ActionSubscriber, AppConfig, ComponentDefinition, ComponentPropsOptions, ComponentPublicInstance, ComputedDefinitions, ComputedGetter, ComputedRef, ComputedSetter, CreateAppOptions, DefineAppOptions, DefineComponentOptions, DefineStoreOptions, EffectScope, ExtractComputed, ExtractMethods, InferPropType, InferProps, InternalRuntimeState, InternalRuntimeStateFields, MethodDefinitions, MiniProgramAdapter, MiniProgramAppOptions, MiniProgramBehaviorIdentifier, MiniProgramComponentBehaviorOptions, MiniProgramComponentOptions, MiniProgramComponentRawOptions, MiniProgramInstance, MiniProgramPageLifetimes, ModelBinding, ModelBindingOptions, MutationType, PageFeatures, PropConstructor, PropOptions, PropType, Ref, RuntimeApp, RuntimeInstance, SetupContext, SetupFunction, StoreManager, SubscriptionCallback, ToRefs, TriggerEventOptions, WatchOptions, WatchStopHandle, WevuPlugin, WritableComputedOptions, WritableComputedRef, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, defineComponent, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, inject, injectGlobal, isRaw, isReactive, isRef, isShallowReactive, isShallowRef, markRaw, mergeModels, mountRuntimeInstance, nextTick, onActivated, onAddToFavorites, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onScopeDispose, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, provide, provideGlobal, reactive, readonly, ref, registerApp, registerComponent, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setDeepWatchStrategy, shallowReactive, shallowRef, startBatch, stop, storeToRefs, teardownRuntimeInstance, toRaw, toRef, toRefs, touchReactive, traverse, triggerRef, unref, useAttrs, useModel, useSlots, watch, watchEffect };
|
package/dist/index.d.mts
CHANGED
|
@@ -592,10 +592,12 @@ declare function getCurrentSetupContext<T$1 = any>(): T$1 | undefined;
|
|
|
592
592
|
declare function setCurrentSetupContext(ctx: any | undefined): void;
|
|
593
593
|
declare function callHookList(target: InternalRuntimeState, name: string, args?: any[]): void;
|
|
594
594
|
declare function callHookReturn(target: InternalRuntimeState, name: string, args?: any[]): any;
|
|
595
|
-
declare function
|
|
596
|
-
declare function
|
|
597
|
-
declare function
|
|
595
|
+
declare function onLaunch(handler: (options: WechatMiniprogram.App.LaunchShowOption) => void): void;
|
|
596
|
+
declare function onPageNotFound(handler: (options: WechatMiniprogram.App.PageNotFoundOption) => void): void;
|
|
597
|
+
declare function onUnhandledRejection(handler: WechatMiniprogram.OnUnhandledRejectionCallback): void;
|
|
598
|
+
declare function onThemeChange(handler: WechatMiniprogram.OnThemeChangeCallback): void;
|
|
598
599
|
declare function onShow(handler: () => void): void;
|
|
600
|
+
declare function onShow(handler: (options: WechatMiniprogram.App.LaunchShowOption) => void): void;
|
|
599
601
|
declare function onLoad(handler: WechatMiniprogram.Page.ILifetime['onLoad']): void;
|
|
600
602
|
declare function onHide(handler: () => void): void;
|
|
601
603
|
declare function onUnload(handler: () => void): void;
|
|
@@ -792,4 +794,4 @@ declare function createStore(): StoreManager;
|
|
|
792
794
|
type StoreToRefsResult<T$1 extends Record<string, any>> = { [K in keyof T$1]: T$1[K] extends ((...args: any[]) => any) ? T$1[K] : T$1[K] extends Ref<infer V> ? Ref<V> : Ref<T$1[K]> };
|
|
793
795
|
declare function storeToRefs<T$1 extends Record<string, any>>(store: T$1): StoreToRefsResult<T$1>;
|
|
794
796
|
//#endregion
|
|
795
|
-
export { ActionSubscriber, AppConfig, ComponentDefinition, ComponentPropsOptions, ComponentPublicInstance, ComputedDefinitions, ComputedGetter, ComputedRef, ComputedSetter, CreateAppOptions, DefineAppOptions, DefineComponentOptions, DefineStoreOptions, EffectScope, ExtractComputed, ExtractMethods, InferPropType, InferProps, InternalRuntimeState, InternalRuntimeStateFields, MethodDefinitions, MiniProgramAdapter, MiniProgramAppOptions, MiniProgramBehaviorIdentifier, MiniProgramComponentBehaviorOptions, MiniProgramComponentOptions, MiniProgramComponentRawOptions, MiniProgramInstance, MiniProgramPageLifetimes, ModelBinding, ModelBindingOptions, MutationType, PageFeatures, PropConstructor, PropOptions, PropType, Ref, RuntimeApp, RuntimeInstance, SetupContext, SetupFunction, StoreManager, SubscriptionCallback, ToRefs, TriggerEventOptions, WatchOptions, WatchStopHandle, WevuPlugin, WritableComputedOptions, WritableComputedRef, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, defineComponent, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, inject, injectGlobal, isRaw, isReactive, isRef, isShallowReactive, isShallowRef, markRaw, mergeModels, mountRuntimeInstance, nextTick, onActivated, onAddToFavorites,
|
|
797
|
+
export { ActionSubscriber, AppConfig, ComponentDefinition, ComponentPropsOptions, ComponentPublicInstance, ComputedDefinitions, ComputedGetter, ComputedRef, ComputedSetter, CreateAppOptions, DefineAppOptions, DefineComponentOptions, DefineStoreOptions, EffectScope, ExtractComputed, ExtractMethods, InferPropType, InferProps, InternalRuntimeState, InternalRuntimeStateFields, MethodDefinitions, MiniProgramAdapter, MiniProgramAppOptions, MiniProgramBehaviorIdentifier, MiniProgramComponentBehaviorOptions, MiniProgramComponentOptions, MiniProgramComponentRawOptions, MiniProgramInstance, MiniProgramPageLifetimes, ModelBinding, ModelBindingOptions, MutationType, PageFeatures, PropConstructor, PropOptions, PropType, Ref, RuntimeApp, RuntimeInstance, SetupContext, SetupFunction, StoreManager, SubscriptionCallback, ToRefs, TriggerEventOptions, WatchOptions, WatchStopHandle, WevuPlugin, WritableComputedOptions, WritableComputedRef, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, defineComponent, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, inject, injectGlobal, isRaw, isReactive, isRef, isShallowReactive, isShallowRef, markRaw, mergeModels, mountRuntimeInstance, nextTick, onActivated, onAddToFavorites, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onScopeDispose, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, provide, provideGlobal, reactive, readonly, ref, registerApp, registerComponent, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setDeepWatchStrategy, shallowReactive, shallowRef, startBatch, stop, storeToRefs, teardownRuntimeInstance, toRaw, toRef, toRefs, touchReactive, traverse, triggerRef, unref, useAttrs, useModel, useSlots, watch, watchEffect };
|
package/dist/index.mjs
CHANGED
|
@@ -912,17 +912,21 @@ function callHookReturn(target, name, args = []) {
|
|
|
912
912
|
return out;
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
|
-
function
|
|
916
|
-
if (!__currentInstance) throw new Error("
|
|
917
|
-
pushHook(__currentInstance, "
|
|
915
|
+
function onLaunch(handler) {
|
|
916
|
+
if (!__currentInstance) throw new Error("onLaunch() must be called synchronously inside setup()");
|
|
917
|
+
pushHook(__currentInstance, "onLaunch", handler);
|
|
918
918
|
}
|
|
919
|
-
function
|
|
920
|
-
if (!__currentInstance) throw new Error("
|
|
921
|
-
pushHook(__currentInstance, "
|
|
919
|
+
function onPageNotFound(handler) {
|
|
920
|
+
if (!__currentInstance) throw new Error("onPageNotFound() must be called synchronously inside setup()");
|
|
921
|
+
pushHook(__currentInstance, "onPageNotFound", handler);
|
|
922
922
|
}
|
|
923
|
-
function
|
|
924
|
-
if (!__currentInstance) throw new Error("
|
|
925
|
-
pushHook(__currentInstance, "
|
|
923
|
+
function onUnhandledRejection(handler) {
|
|
924
|
+
if (!__currentInstance) throw new Error("onUnhandledRejection() must be called synchronously inside setup()");
|
|
925
|
+
pushHook(__currentInstance, "onUnhandledRejection", handler);
|
|
926
|
+
}
|
|
927
|
+
function onThemeChange(handler) {
|
|
928
|
+
if (!__currentInstance) throw new Error("onThemeChange() must be called synchronously inside setup()");
|
|
929
|
+
pushHook(__currentInstance, "onThemeChange", handler);
|
|
926
930
|
}
|
|
927
931
|
function onShow(handler) {
|
|
928
932
|
if (!__currentInstance) throw new Error("onShow() must be called synchronously inside setup()");
|
|
@@ -1041,7 +1045,7 @@ function onBeforeUpdate(handler) {
|
|
|
1041
1045
|
*/
|
|
1042
1046
|
function onErrorCaptured(handler) {
|
|
1043
1047
|
if (!__currentInstance) throw new Error("onErrorCaptured() must be called synchronously inside setup()");
|
|
1044
|
-
pushHook(__currentInstance, "
|
|
1048
|
+
pushHook(__currentInstance, "onError", (err) => handler(err, __currentInstance, ""));
|
|
1045
1049
|
}
|
|
1046
1050
|
/**
|
|
1047
1051
|
* Vue 3 对齐:组件激活;映射到小程序 onShow
|
|
@@ -1299,26 +1303,41 @@ function registerApp(runtimeApp, methods, watch$1, setup, mpOptions) {
|
|
|
1299
1303
|
return runInlineExpression(this.__wevu?.proxy ?? this, expr, event);
|
|
1300
1304
|
};
|
|
1301
1305
|
const userOnLaunch = appOptions.onLaunch;
|
|
1302
|
-
appOptions.onLaunch = function onLaunch(...args) {
|
|
1306
|
+
appOptions.onLaunch = function onLaunch$1(...args) {
|
|
1303
1307
|
mountRuntimeInstance(this, runtimeApp, watch$1, setup);
|
|
1304
|
-
callHookList(this, "
|
|
1308
|
+
callHookList(this, "onLaunch", args);
|
|
1305
1309
|
if (typeof userOnLaunch === "function") userOnLaunch.apply(this, args);
|
|
1306
1310
|
};
|
|
1307
1311
|
const userOnShow = appOptions.onShow;
|
|
1308
1312
|
appOptions.onShow = function onShow$1(...args) {
|
|
1309
|
-
callHookList(this, "
|
|
1313
|
+
callHookList(this, "onShow", args);
|
|
1310
1314
|
if (typeof userOnShow === "function") userOnShow.apply(this, args);
|
|
1311
1315
|
};
|
|
1312
1316
|
const userOnHide = appOptions.onHide;
|
|
1313
1317
|
appOptions.onHide = function onHide$1(...args) {
|
|
1314
|
-
callHookList(this, "
|
|
1318
|
+
callHookList(this, "onHide", args);
|
|
1315
1319
|
if (typeof userOnHide === "function") userOnHide.apply(this, args);
|
|
1316
1320
|
};
|
|
1317
1321
|
const userOnError = appOptions.onError;
|
|
1318
1322
|
appOptions.onError = function onError$1(...args) {
|
|
1319
|
-
callHookList(this, "
|
|
1323
|
+
callHookList(this, "onError", args);
|
|
1320
1324
|
if (typeof userOnError === "function") userOnError.apply(this, args);
|
|
1321
1325
|
};
|
|
1326
|
+
const userOnPageNotFound = appOptions.onPageNotFound;
|
|
1327
|
+
appOptions.onPageNotFound = function onPageNotFound$1(...args) {
|
|
1328
|
+
callHookList(this, "onPageNotFound", args);
|
|
1329
|
+
if (typeof userOnPageNotFound === "function") userOnPageNotFound.apply(this, args);
|
|
1330
|
+
};
|
|
1331
|
+
const userOnUnhandledRejection = appOptions.onUnhandledRejection;
|
|
1332
|
+
appOptions.onUnhandledRejection = function onUnhandledRejection$1(...args) {
|
|
1333
|
+
callHookList(this, "onUnhandledRejection", args);
|
|
1334
|
+
if (typeof userOnUnhandledRejection === "function") userOnUnhandledRejection.apply(this, args);
|
|
1335
|
+
};
|
|
1336
|
+
const userOnThemeChange = appOptions.onThemeChange;
|
|
1337
|
+
appOptions.onThemeChange = function onThemeChange$1(...args) {
|
|
1338
|
+
callHookList(this, "onThemeChange", args);
|
|
1339
|
+
if (typeof userOnThemeChange === "function") userOnThemeChange.apply(this, args);
|
|
1340
|
+
};
|
|
1322
1341
|
for (const methodName of methodNames) {
|
|
1323
1342
|
const userMethod = appOptions[methodName];
|
|
1324
1343
|
appOptions[methodName] = function runtimeMethod(...args) {
|
|
@@ -2297,4 +2316,4 @@ function storeToRefs(store) {
|
|
|
2297
2316
|
}
|
|
2298
2317
|
|
|
2299
2318
|
//#endregion
|
|
2300
|
-
export { batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, defineComponent, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, inject, injectGlobal, isRaw, isReactive, isRef, isShallowReactive, isShallowRef, markRaw, mergeModels, mountRuntimeInstance, nextTick, onActivated, onAddToFavorites,
|
|
2319
|
+
export { batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, defineComponent, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, inject, injectGlobal, isRaw, isReactive, isRef, isShallowReactive, isShallowRef, markRaw, mergeModels, mountRuntimeInstance, nextTick, onActivated, onAddToFavorites, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onScopeDispose, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, provide, provideGlobal, reactive, readonly, ref, registerApp, registerComponent, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setDeepWatchStrategy, shallowReactive, shallowRef, startBatch, stop, storeToRefs, teardownRuntimeInstance, toRaw, toRef, toRefs, touchReactive, traverse, triggerRef, unref, useAttrs, useModel, useSlots, watch, watchEffect };
|