@dcloudio/uni-app
Advanced tools
Comparing version 3.0.0-alpha-3021020211012005 to 3.0.0-alpha-3021020211025001
@@ -21,2 +21,4 @@ 'use strict'; | ||
const ON_UNHANDLE_REJECTION = 'onUnhandledRejection'; | ||
//Page | ||
const ON_LOAD = 'onLoad'; | ||
const ON_READY = 'onReady'; | ||
@@ -122,3 +124,4 @@ const ON_UNLOAD = 'onUnload'; | ||
const onUnhandledRejection = /*#__PURE__*/ createHook(ON_UNHANDLE_REJECTION); | ||
// 小程序如果想在 setup 的 props 传递页面参数,需要定义 props,故同时暴露 onLoad 吧 | ||
const onLoad = /*#__PURE__*/ createHook(ON_LOAD); | ||
const onReady = /*#__PURE__*/ createHook(ON_READY); | ||
@@ -147,2 +150,3 @@ const onUnload = /*#__PURE__*/ createHook(ON_UNLOAD); | ||
exports.onLaunch = onLaunch; | ||
exports.onLoad = onLoad; | ||
exports.onNavigationBarButtonTap = onNavigationBarButtonTap; | ||
@@ -149,0 +153,0 @@ exports.onNavigationBarSearchInputChanged = onNavigationBarSearchInputChanged; |
@@ -17,2 +17,4 @@ import { ComponentInternalInstance } from 'vue'; | ||
export declare const onLoad: (hook: () => any, target?: ComponentInternalInstance | null) => any; | ||
export declare const onNavigationBarButtonTap: (hook: () => any, target?: ComponentInternalInstance | null) => any; | ||
@@ -19,0 +21,0 @@ |
@@ -18,2 +18,4 @@ import { shallowRef, ref, getCurrentInstance, isInSSRComponentSetup, injectHook } from 'vue'; | ||
const ON_UNHANDLE_REJECTION = 'onUnhandledRejection'; | ||
//Page | ||
const ON_LOAD = 'onLoad'; | ||
const ON_READY = 'onReady'; | ||
@@ -91,3 +93,4 @@ const ON_UNLOAD = 'onUnload'; | ||
const onUnhandledRejection = /*#__PURE__*/ createHook(ON_UNHANDLE_REJECTION); | ||
// 小程序如果想在 setup 的 props 传递页面参数,需要定义 props,故同时暴露 onLoad 吧 | ||
const onLoad = /*#__PURE__*/ createHook(ON_LOAD); | ||
const onReady = /*#__PURE__*/ createHook(ON_READY); | ||
@@ -110,2 +113,2 @@ const onUnload = /*#__PURE__*/ createHook(ON_UNLOAD); | ||
export { getSsrGlobalData, onAddToFavorites, onBackPress, onError, onHide, onLaunch, onNavigationBarButtonTap, onNavigationBarSearchInputChanged, onNavigationBarSearchInputClicked, onNavigationBarSearchInputConfirmed, onNavigationBarSearchInputFocusChanged, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, resolveEasycom, shallowSsrRef, ssrRef }; | ||
export { getSsrGlobalData, onAddToFavorites, onBackPress, onError, onHide, onLaunch, onLoad, onNavigationBarButtonTap, onNavigationBarSearchInputChanged, onNavigationBarSearchInputClicked, onNavigationBarSearchInputConfirmed, onNavigationBarSearchInputFocusChanged, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, resolveEasycom, shallowSsrRef, ssrRef }; |
{ | ||
"name": "@dcloudio/uni-app", | ||
"version": "3.0.0-alpha-3021020211012005", | ||
"version": "3.0.0-alpha-3021020211025001", | ||
"description": "@dcloudio/uni-app", | ||
@@ -21,3 +21,3 @@ "main": "./dist/uni-app.cjs.js", | ||
}, | ||
"gitHead": "b68ad612a4426795673cd892f5f4a6af6bf16f20" | ||
"gitHead": "82942fec16ba25d46f0f42675bab4a2ccdc53bda" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27375
302
2