Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MuGuiLin
uni-app
提交
0e4efe70
U
uni-app
项目概览
MuGuiLin
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0e4efe70
编写于
4月 13, 2022
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: build
上级
2a8712c6
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
62 addition
and
28 deletion
+62
-28
packages/uni-app/dist/uni-app.cjs.js
packages/uni-app/dist/uni-app.cjs.js
+5
-0
packages/uni-app/dist/uni-app.d.ts
packages/uni-app/dist/uni-app.d.ts
+35
-24
packages/uni-app/dist/uni-app.es.js
packages/uni-app/dist/uni-app.es.js
+5
-2
packages/uni-shared/dist/uni-shared.cjs.js
packages/uni-shared/dist/uni-shared.cjs.js
+7
-0
packages/uni-shared/dist/uni-shared.d.ts
packages/uni-shared/dist/uni-shared.d.ts
+3
-1
packages/uni-shared/dist/uni-shared.es.js
packages/uni-shared/dist/uni-shared.es.js
+7
-1
未找到文件。
packages/uni-app/dist/uni-app.cjs.js
浏览文件 @
0e4efe70
...
...
@@ -102,6 +102,7 @@ const onPageNotFound =
/*#__PURE__*/
createHook
(
uniShared
.
ON_PAGE_NOT_FOUND
);
const
onUnhandledRejection
=
/*#__PURE__*/
createHook
(
uniShared
.
ON_UNHANDLE_REJECTION
);
const
onInit
=
/*#__PURE__*/
createHook
(
uniShared
.
ON_INIT
);
// 小程序如果想在 setup 的 props 传递页面参数,需要定义 props,故同时暴露 onLoad 吧
const
onLoad
=
/*#__PURE__*/
createHook
(
uniShared
.
ON_LOAD
);
const
onReady
=
/*#__PURE__*/
createHook
(
uniShared
.
ON_READY
);
...
...
@@ -115,6 +116,8 @@ const onTabItemTap =
/*#__PURE__*/
createHook
(
uniShared
.
ON_TAB_ITEM_TAP
);
const
onReachBottom
=
/*#__PURE__*/
createHook
(
uniShared
.
ON_REACH_BOTTOM
);
const
onPullDownRefresh
=
/*#__PURE__*/
createHook
(
uniShared
.
ON_PULL_DOWN_REFRESH
);
const
onSaveExitState
=
/*#__PURE__*/
createHook
(
uniShared
.
ON_SAVE_EXIT_STATE
);
const
onShareTimeline
=
/*#__PURE__*/
createHook
(
uniShared
.
ON_SHARE_TIMELINE
);
const
onAddToFavorites
=
...
...
@@ -137,6 +140,7 @@ exports.onAddToFavorites = onAddToFavorites;
exports
.
onBackPress
=
onBackPress
;
exports
.
onError
=
onError
;
exports
.
onHide
=
onHide
;
exports
.
onInit
=
onInit
;
exports
.
onLaunch
=
onLaunch
;
exports
.
onLoad
=
onLoad
;
exports
.
onNavigationBarButtonTap
=
onNavigationBarButtonTap
;
...
...
@@ -150,6 +154,7 @@ exports.onPullDownRefresh = onPullDownRefresh;
exports
.
onReachBottom
=
onReachBottom
;
exports
.
onReady
=
onReady
;
exports
.
onResize
=
onResize
;
exports
.
onSaveExitState
=
onSaveExitState
;
exports
.
onShareAppMessage
=
onShareAppMessage
;
exports
.
onShareTimeline
=
onShareTimeline
;
exports
.
onShow
=
onShow
;
...
...
packages/uni-app/dist/uni-app.d.ts
浏览文件 @
0e4efe70
...
...
@@ -59,91 +59,97 @@ declare interface NavigationBarSearchInputFocusChanged {
focus
:
boolean
;
}
export
declare
const
onAddToFavorites
:
(
hook
:
onAddToFavoritesHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onAddToFavorites
:
(
hook
:
onAddToFavoritesHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onAddToFavoritesHook
=
(
options
:
AddToFavoritesOption
)
=>
AddToFavoritesContent
|
void
;
declare
type
onAppShowHook
=
(
options
:
LaunchShowOption
)
=>
void
;
export
declare
const
onBackPress
:
(
hook
:
onBackPressHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onBackPress
:
(
hook
:
onBackPressHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onBackPressHook
=
(
options
:
BackPressOption
)
=>
boolean
|
void
;
export
declare
const
onError
:
(
hook
:
onErrorHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onError
:
(
hook
:
onErrorHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onErrorHook
=
(
error
:
string
)
=>
void
;
export
declare
const
onHide
:
(
hook
:
()
=>
any
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onHide
:
(
hook
:
()
=>
any
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
export
declare
const
onLaunch
:
(
hook
:
onLaunchHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onInit
:
(
hook
:
onLoadHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
export
declare
const
onLaunch
:
(
hook
:
onLaunchHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onLaunchHook
=
(
options
:
LaunchOption
)
=>
void
;
export
declare
const
onLoad
:
(
hook
:
onLoadHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onLoad
:
(
hook
:
onLoadHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onLoadHook
=
(
query
:
Record
<
string
,
string
|
undefined
>
)
=>
void
;
export
declare
const
onNavigationBarButtonTap
:
(
hook
:
onNavigationBarButtonTapHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onNavigationBarButtonTap
:
(
hook
:
onNavigationBarButtonTapHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onNavigationBarButtonTapHook
=
(
options
:
NavigationBarButtonTapOption
)
=>
void
;
export
declare
const
onNavigationBarSearchInputChanged
:
(
hook
:
onNavigationBarSearchInputChangedHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onNavigationBarSearchInputChanged
:
(
hook
:
onNavigationBarSearchInputChangedHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onNavigationBarSearchInputChangedHook
=
(
options
:
NavigationBarSearchInputChangedOption
)
=>
void
;
export
declare
const
onNavigationBarSearchInputClicked
:
(
hook
:
()
=>
any
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onNavigationBarSearchInputClicked
:
(
hook
:
()
=>
any
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
export
declare
const
onNavigationBarSearchInputConfirmed
:
(
hook
:
onNavigationBarSearchInputConfirmedHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onNavigationBarSearchInputConfirmed
:
(
hook
:
onNavigationBarSearchInputConfirmedHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onNavigationBarSearchInputConfirmedHook
=
(
options
:
NavigationBarSearchInputConfirmedOption
)
=>
void
;
export
declare
const
onNavigationBarSearchInputFocusChanged
:
(
hook
:
onNavigationBarSearchInputFocusChangedHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onNavigationBarSearchInputFocusChanged
:
(
hook
:
onNavigationBarSearchInputFocusChangedHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onNavigationBarSearchInputFocusChangedHook
=
(
options
:
NavigationBarSearchInputFocusChanged
)
=>
void
;
export
declare
const
onPageNotFound
:
(
hook
:
onPageNotFoundHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onPageNotFound
:
(
hook
:
onPageNotFoundHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onPageNotFoundHook
=
(
options
:
PageNotFoundOption
)
=>
void
;
export
declare
const
onPageScroll
:
(
hook
:
onPageScrollHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onPageScroll
:
(
hook
:
onPageScrollHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onPageScrollHook
=
(
options
:
PageScrollOption
)
=>
void
;
declare
type
onPageShowHook
=
()
=>
void
;
export
declare
const
onPullDownRefresh
:
(
hook
:
()
=>
any
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onPullDownRefresh
:
(
hook
:
()
=>
any
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
export
declare
const
onReachBottom
:
(
hook
:
()
=>
any
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onReachBottom
:
(
hook
:
()
=>
any
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
export
declare
const
onReady
:
(
hook
:
()
=>
any
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onReady
:
(
hook
:
()
=>
any
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
export
declare
const
onResize
:
(
hook
:
onResizeHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onResize
:
(
hook
:
onResizeHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onResizeHook
=
(
options
:
ResizeOption
)
=>
void
;
export
declare
const
onShareAppMessage
:
(
hook
:
onShareAppMessageHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onSaveExitState
:
(
hook
:
onSaveExitStateHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onSaveExitStateHook
=
()
=>
SaveExitState
;
export
declare
const
onShareAppMessage
:
(
hook
:
onShareAppMessageHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onShareAppMessageHook
=
(
options
:
ShareAppMessageOption
)
=>
CustomShareAppMessage
|
void
;
export
declare
const
onShareTimeline
:
(
hook
:
onShareTimelineHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onShareTimeline
:
(
hook
:
onShareTimelineHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onShareTimelineHook
=
()
=>
CustomShareTimeline
|
void
;
export
declare
const
onShow
:
(
hook
:
onAppShowHook
|
onPageShowHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onShow
:
(
hook
:
onAppShowHook
|
onPageShowHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
export
declare
const
onTabItemTap
:
(
hook
:
onTabItemTapHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onTabItemTap
:
(
hook
:
onTabItemTapHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onTabItemTapHook
=
(
options
:
TabItemTapOption
)
=>
void
;
export
declare
const
onThemeChange
:
(
hook
:
onThemeChangeHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onThemeChange
:
(
hook
:
onThemeChangeHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onThemeChangeHook
=
(
options
:
ThemeChangeOption
)
=>
void
;
export
declare
const
onUnhandledRejection
:
(
hook
:
onUnhandledRejectionHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onUnhandledRejection
:
(
hook
:
onUnhandledRejectionHook
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
type
onUnhandledRejectionHook
=
(
options
:
UnhandledRejectionOption
)
=>
void
;
export
declare
const
onUnload
:
(
hook
:
()
=>
any
,
target
?:
ComponentInternalInstance
|
null
)
=>
any
;
export
declare
const
onUnload
:
(
hook
:
()
=>
any
,
target
?:
ComponentInternalInstance
|
null
)
=>
void
;
declare
interface
PageNotFoundOption
{
path
:
string
;
...
...
@@ -171,6 +177,11 @@ declare interface ResizeOption {
export
declare
function
resolveEasycom
(
component
:
unknown
,
easycom
:
unknown
):
unknown
;
declare
interface
SaveExitState
{
data
:
any
;
expireTimeStamp
:
number
;
}
export
declare
const
shallowSsrRef
:
SSRRef
;
declare
interface
ShareAppMessageOption
{
...
...
packages/uni-app/dist/uni-app.es.js
浏览文件 @
0e4efe70
import
{
shallowRef
,
ref
,
getCurrentInstance
,
isInSSRComponentSetup
,
injectHook
}
from
'
vue
'
;
import
{
hasOwn
,
isString
}
from
'
@vue/shared
'
;
import
{
sanitise
,
UNI_SSR_DATA
,
UNI_SSR_GLOBAL_DATA
,
UNI_SSR
,
ON_SHOW
,
ON_HIDE
,
ON_LAUNCH
,
ON_ERROR
,
ON_THEME_CHANGE
,
ON_PAGE_NOT_FOUND
,
ON_UNHANDLE_REJECTION
,
ON_
LOAD
,
ON_READY
,
ON_UNLOAD
,
ON_RESIZE
,
ON_BACK_PRESS
,
ON_PAGE_SCROLL
,
ON_TAB_ITEM_TAP
,
ON_REACH_BOTTOM
,
ON_PULL_DOWN_REFRESH
,
ON_SHARE_TIMELINE
,
ON_ADD_TO_FAVORITES
,
ON_SHARE_APP_MESSAGE
,
ON_NAVIGATION_BAR_BUTTON_TAP
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED
,
ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED
}
from
'
@dcloudio/uni-shared
'
;
import
{
sanitise
,
UNI_SSR_DATA
,
UNI_SSR_GLOBAL_DATA
,
UNI_SSR
,
ON_SHOW
,
ON_HIDE
,
ON_LAUNCH
,
ON_ERROR
,
ON_THEME_CHANGE
,
ON_PAGE_NOT_FOUND
,
ON_UNHANDLE_REJECTION
,
ON_
INIT
,
ON_LOAD
,
ON_READY
,
ON_UNLOAD
,
ON_RESIZE
,
ON_BACK_PRESS
,
ON_PAGE_SCROLL
,
ON_TAB_ITEM_TAP
,
ON_REACH_BOTTOM
,
ON_PULL_DOWN_REFRESH
,
ON_SAVE_EXIT_STATE
,
ON_SHARE_TIMELINE
,
ON_ADD_TO_FAVORITES
,
ON_SHARE_APP_MESSAGE
,
ON_NAVIGATION_BAR_BUTTON_TAP
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED
,
ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED
}
from
'
@dcloudio/uni-shared
'
;
function
getSSRDataType
()
{
return
getCurrentInstance
()
?
UNI_SSR_DATA
:
UNI_SSR_GLOBAL_DATA
;
...
...
@@ -70,6 +70,7 @@ const onPageNotFound =
/*#__PURE__*/
createHook
(
ON_PAGE_NOT_FOUND
);
const
onUnhandledRejection
=
/*#__PURE__*/
createHook
(
ON_UNHANDLE_REJECTION
);
const
onInit
=
/*#__PURE__*/
createHook
(
ON_INIT
);
// 小程序如果想在 setup 的 props 传递页面参数,需要定义 props,故同时暴露 onLoad 吧
const
onLoad
=
/*#__PURE__*/
createHook
(
ON_LOAD
);
const
onReady
=
/*#__PURE__*/
createHook
(
ON_READY
);
...
...
@@ -83,6 +84,8 @@ const onTabItemTap =
/*#__PURE__*/
createHook
(
ON_TAB_ITEM_TAP
);
const
onReachBottom
=
/*#__PURE__*/
createHook
(
ON_REACH_BOTTOM
);
const
onPullDownRefresh
=
/*#__PURE__*/
createHook
(
ON_PULL_DOWN_REFRESH
);
const
onSaveExitState
=
/*#__PURE__*/
createHook
(
ON_SAVE_EXIT_STATE
);
const
onShareTimeline
=
/*#__PURE__*/
createHook
(
ON_SHARE_TIMELINE
);
const
onAddToFavorites
=
...
...
@@ -99,4 +102,4 @@ const onNavigationBarSearchInputConfirmed =
const
onNavigationBarSearchInputFocusChanged
=
/*#__PURE__*/
createHook
(
ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED
);
export
{
getCurrentSubNVue
,
getSsrGlobalData
,
onAddToFavorites
,
onBackPress
,
onError
,
onHide
,
on
Launch
,
onLoad
,
onNavigationBarButtonTap
,
onNavigationBarSearchInputChanged
,
onNavigationBarSearchInputClicked
,
onNavigationBarSearchInputConfirmed
,
onNavigationBarSearchInputFocusChanged
,
onPageNotFound
,
onPageScroll
,
onPullDownRefresh
,
onReachBottom
,
onReady
,
onResiz
e
,
onShareAppMessage
,
onShareTimeline
,
onShow
,
onTabItemTap
,
onThemeChange
,
onUnhandledRejection
,
onUnload
,
requireNativePlugin
,
resolveEasycom
,
shallowSsrRef
,
ssrRef
};
export
{
getCurrentSubNVue
,
getSsrGlobalData
,
onAddToFavorites
,
onBackPress
,
onError
,
onHide
,
on
Init
,
onLaunch
,
onLoad
,
onNavigationBarButtonTap
,
onNavigationBarSearchInputChanged
,
onNavigationBarSearchInputClicked
,
onNavigationBarSearchInputConfirmed
,
onNavigationBarSearchInputFocusChanged
,
onPageNotFound
,
onPageScroll
,
onPullDownRefresh
,
onReachBottom
,
onReady
,
onResize
,
onSaveExitStat
e
,
onShareAppMessage
,
onShareTimeline
,
onShow
,
onTabItemTap
,
onThemeChange
,
onUnhandledRejection
,
onUnload
,
requireNativePlugin
,
resolveEasycom
,
shallowSsrRef
,
ssrRef
};
packages/uni-shared/dist/uni-shared.cjs.js
浏览文件 @
0e4efe70
...
...
@@ -233,6 +233,8 @@ const ON_READY = 'onReady';
const
ON_UNLOAD
=
'
onUnload
'
;
// 百度特有
const
ON_INIT
=
'
onInit
'
;
// 微信特有
const
ON_SAVE_EXIT_STATE
=
'
onSaveExitState
'
;
const
ON_RESIZE
=
'
onResize
'
;
const
ON_BACK_PRESS
=
'
onBackPress
'
;
const
ON_PAGE_SCROLL
=
'
onPageScroll
'
;
...
...
@@ -1263,6 +1265,7 @@ class EventChannel {
}
const
PAGE_HOOKS
=
[
ON_INIT
,
ON_LOAD
,
ON_SHOW
,
ON_HIDE
,
...
...
@@ -1275,6 +1278,7 @@ const PAGE_HOOKS = [
ON_SHARE_TIMELINE
,
ON_SHARE_APP_MESSAGE
,
ON_ADD_TO_FAVORITES
,
ON_SAVE_EXIT_STATE
,
ON_NAVIGATION_BAR_BUTTON_TAP
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED
,
...
...
@@ -1296,6 +1300,7 @@ const UniLifecycleHooks = [
ON_THEME_CHANGE
,
ON_PAGE_NOT_FOUND
,
ON_UNHANDLE_REJECTION
,
ON_INIT
,
ON_LOAD
,
ON_READY
,
ON_UNLOAD
,
...
...
@@ -1308,6 +1313,7 @@ const UniLifecycleHooks = [
ON_SHARE_TIMELINE
,
ON_ADD_TO_FAVORITES
,
ON_SHARE_APP_MESSAGE
,
ON_SAVE_EXIT_STATE
,
ON_NAVIGATION_BAR_BUTTON_TAP
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED
,
...
...
@@ -1460,6 +1466,7 @@ exports.ON_REACH_BOTTOM = ON_REACH_BOTTOM;
exports
.
ON_REACH_BOTTOM_DISTANCE
=
ON_REACH_BOTTOM_DISTANCE
;
exports
.
ON_READY
=
ON_READY
;
exports
.
ON_RESIZE
=
ON_RESIZE
;
exports
.
ON_SAVE_EXIT_STATE
=
ON_SAVE_EXIT_STATE
;
exports
.
ON_SHARE_APP_MESSAGE
=
ON_SHARE_APP_MESSAGE
;
exports
.
ON_SHARE_TIMELINE
=
ON_SHARE_TIMELINE
;
exports
.
ON_SHOW
=
ON_SHOW
;
...
...
packages/uni-shared/dist/uni-shared.d.ts
浏览文件 @
0e4efe70
...
...
@@ -473,6 +473,8 @@ export declare const ON_READY = "onReady";
export
declare
const
ON_RESIZE
=
"
onResize
"
;
export
declare
const
ON_SAVE_EXIT_STATE
=
"
onSaveExitState
"
;
export
declare
const
ON_SHARE_APP_MESSAGE
=
"
onShareAppMessage
"
;
export
declare
const
ON_SHARE_TIMELINE
=
"
onShareTimeline
"
;
...
...
@@ -733,7 +735,7 @@ export declare class UniInputElement extends UniElement {
set
value
(
val
:
string
|
number
);
}
export
declare
const
UniLifecycleHooks
:
readonly
[
"
onShow
"
,
"
onHide
"
,
"
onLaunch
"
,
"
onError
"
,
"
onThemeChange
"
,
"
onPageNotFound
"
,
"
onUnhandledRejection
"
,
"
on
Load
"
,
"
onReady
"
,
"
onUnload
"
,
"
onResize
"
,
"
onBackPress
"
,
"
onPageScroll
"
,
"
onTabItemTap
"
,
"
onReachBottom
"
,
"
onPullDownRefresh
"
,
"
onShareTimeline
"
,
"
onAddToFavorites
"
,
"
onShareAppMessag
e
"
,
"
onNavigationBarButtonTap
"
,
"
onNavigationBarSearchInputClicked
"
,
"
onNavigationBarSearchInputChanged
"
,
"
onNavigationBarSearchInputConfirmed
"
,
"
onNavigationBarSearchInputFocusChanged
"
];
export
declare
const
UniLifecycleHooks
:
readonly
[
"
onShow
"
,
"
onHide
"
,
"
onLaunch
"
,
"
onError
"
,
"
onThemeChange
"
,
"
onPageNotFound
"
,
"
onUnhandledRejection
"
,
"
on
Init
"
,
"
onLoad
"
,
"
onReady
"
,
"
onUnload
"
,
"
onResize
"
,
"
onBackPress
"
,
"
onPageScroll
"
,
"
onTabItemTap
"
,
"
onReachBottom
"
,
"
onPullDownRefresh
"
,
"
onShareTimeline
"
,
"
onAddToFavorites
"
,
"
onShareAppMessage
"
,
"
onSaveExitStat
e
"
,
"
onNavigationBarButtonTap
"
,
"
onNavigationBarSearchInputClicked
"
,
"
onNavigationBarSearchInputChanged
"
,
"
onNavigationBarSearchInputConfirmed
"
,
"
onNavigationBarSearchInputFocusChanged
"
];
export
declare
class
UniNode
extends
UniEventTarget
{
nodeId
?:
number
;
...
...
packages/uni-shared/dist/uni-shared.es.js
浏览文件 @
0e4efe70
...
...
@@ -229,6 +229,8 @@ const ON_READY = 'onReady';
const
ON_UNLOAD
=
'
onUnload
'
;
// 百度特有
const
ON_INIT
=
'
onInit
'
;
// 微信特有
const
ON_SAVE_EXIT_STATE
=
'
onSaveExitState
'
;
const
ON_RESIZE
=
'
onResize
'
;
const
ON_BACK_PRESS
=
'
onBackPress
'
;
const
ON_PAGE_SCROLL
=
'
onPageScroll
'
;
...
...
@@ -1259,6 +1261,7 @@ class EventChannel {
}
const
PAGE_HOOKS
=
[
ON_INIT
,
ON_LOAD
,
ON_SHOW
,
ON_HIDE
,
...
...
@@ -1271,6 +1274,7 @@ const PAGE_HOOKS = [
ON_SHARE_TIMELINE
,
ON_SHARE_APP_MESSAGE
,
ON_ADD_TO_FAVORITES
,
ON_SAVE_EXIT_STATE
,
ON_NAVIGATION_BAR_BUTTON_TAP
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED
,
...
...
@@ -1292,6 +1296,7 @@ const UniLifecycleHooks = [
ON_THEME_CHANGE
,
ON_PAGE_NOT_FOUND
,
ON_UNHANDLE_REJECTION
,
ON_INIT
,
ON_LOAD
,
ON_READY
,
ON_UNLOAD
,
...
...
@@ -1304,6 +1309,7 @@ const UniLifecycleHooks = [
ON_SHARE_TIMELINE
,
ON_ADD_TO_FAVORITES
,
ON_SHARE_APP_MESSAGE
,
ON_SAVE_EXIT_STATE
,
ON_NAVIGATION_BAR_BUTTON_TAP
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED
,
...
...
@@ -1392,4 +1398,4 @@ function getEnvLocale() {
return
(
lang
&&
lang
.
replace
(
/
[
.:
]
.*/
,
''
))
||
'
en
'
;
}
export
{
ACTION_TYPE_ADD_EVENT
,
ACTION_TYPE_ADD_WXS_EVENT
,
ACTION_TYPE_CREATE
,
ACTION_TYPE_EVENT
,
ACTION_TYPE_INSERT
,
ACTION_TYPE_PAGE_CREATE
,
ACTION_TYPE_PAGE_CREATED
,
ACTION_TYPE_PAGE_SCROLL
,
ACTION_TYPE_REMOVE
,
ACTION_TYPE_REMOVE_ATTRIBUTE
,
ACTION_TYPE_REMOVE_EVENT
,
ACTION_TYPE_SET_ATTRIBUTE
,
ACTION_TYPE_SET_TEXT
,
ATTR_CHANGE_PREFIX
,
ATTR_CLASS
,
ATTR_INNER_HTML
,
ATTR_STYLE
,
ATTR_TEXT_CONTENT
,
ATTR_V_OWNER_ID
,
ATTR_V_RENDERJS
,
ATTR_V_SHOW
,
BACKGROUND_COLOR
,
BUILT_IN_TAGS
,
BUILT_IN_TAG_NAMES
,
COMPONENT_NAME_PREFIX
,
COMPONENT_PREFIX
,
COMPONENT_SELECTOR_PREFIX
,
DATA_RE
,
E$1
as
Emitter
,
EventChannel
,
EventModifierFlags
,
I18N_JSON_DELIMITERS
,
JSON_PROTOCOL
,
LINEFEED
,
MINI_PROGRAM_PAGE_RUNTIME_HOOKS
,
NAVBAR_HEIGHT
,
NODE_TYPE_COMMENT
,
NODE_TYPE_ELEMENT
,
NODE_TYPE_PAGE
,
NODE_TYPE_TEXT
,
NVUE_BUILT_IN_TAGS
,
NVUE_U_BUILT_IN_TAGS
,
ON_ADD_TO_FAVORITES
,
ON_APP_ENTER_BACKGROUND
,
ON_APP_ENTER_FOREGROUND
,
ON_BACK_PRESS
,
ON_ERROR
,
ON_HIDE
,
ON_INIT
,
ON_KEYBOARD_HEIGHT_CHANGE
,
ON_LAUNCH
,
ON_LOAD
,
ON_NAVIGATION_BAR_BUTTON_TAP
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED
,
ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED
,
ON_PAGE_NOT_FOUND
,
ON_PAGE_SCROLL
,
ON_PULL_DOWN_REFRESH
,
ON_REACH_BOTTOM
,
ON_REACH_BOTTOM_DISTANCE
,
ON_READY
,
ON_RESIZE
,
ON_SHARE_APP_MESSAGE
,
ON_SHARE_TIMELINE
,
ON_SHOW
,
ON_TAB_ITEM_TAP
,
ON_THEME_CHANGE
,
ON_UNHANDLE_REJECTION
,
ON_UNLOAD
,
ON_WEB_INVOKE_APP_SERVICE
,
ON_WXS_INVOKE_CALL_METHOD
,
PLUS_RE
,
PRIMARY_COLOR
,
RENDERJS_MODULES
,
RESPONSIVE_MIN_WIDTH
,
SCHEME_RE
,
SELECTED_COLOR
,
SLOT_DEFAULT_NAME
,
TABBAR_HEIGHT
,
TAGS
,
UNI_SSR
,
UNI_SSR_DATA
,
UNI_SSR_GLOBAL_DATA
,
UNI_SSR_STORE
,
UNI_SSR_TITLE
,
UNI_STORAGE_LOCALE
,
UniBaseNode
,
UniCommentNode
,
UniElement
,
UniEvent
,
UniInputElement
,
UniLifecycleHooks
,
UniNode
,
UniTextAreaElement
,
UniTextNode
,
WEB_INVOKE_APPSERVICE
,
WXS_MODULES
,
WXS_PROTOCOL
,
addFont
,
addLeadingSlash
,
cache
,
cacheStringFunction
,
callOptions
,
createIsCustomElement
,
createRpx2Unit
,
createUniEvent
,
customizeEvent
,
debounce
,
decode
,
decodedQuery
,
defaultMiniProgramRpx2Unit
,
defaultNVueRpx2Unit
,
defaultRpx2Unit
,
dynamicSlotName
,
forcePatchProp
,
formatAppLog
,
formatDateTime
,
formatH5Log
,
formatLog
,
getCustomDataset
,
getEnvLocale
,
getLen
,
getValueByDataPath
,
initCustomDatasetOnce
,
invokeArrayFns
,
invokeCreateVueAppHook
,
isAppNVueNativeTag
,
isAppNativeTag
,
isBuiltInComponent
,
isComponentInternalInstance
,
isComponentTag
,
isH5CustomElement
,
isH5NativeTag
,
isMiniProgramNativeTag
,
isRootHook
,
isRootImmediateHook
,
normalizeDataset
,
normalizeEventType
,
normalizeTarget
,
onCreateVueApp
,
once
,
parseEventName
,
parseNVueDataset
,
parseQuery
,
parseUrl
,
passive
,
plusReady
,
removeLeadingSlash
,
resolveComponentInstance
,
resolveOwnerEl
,
resolveOwnerVm
,
sanitise
,
scrollTo
,
stringifyQuery
,
updateElementStyle
};
export
{
ACTION_TYPE_ADD_EVENT
,
ACTION_TYPE_ADD_WXS_EVENT
,
ACTION_TYPE_CREATE
,
ACTION_TYPE_EVENT
,
ACTION_TYPE_INSERT
,
ACTION_TYPE_PAGE_CREATE
,
ACTION_TYPE_PAGE_CREATED
,
ACTION_TYPE_PAGE_SCROLL
,
ACTION_TYPE_REMOVE
,
ACTION_TYPE_REMOVE_ATTRIBUTE
,
ACTION_TYPE_REMOVE_EVENT
,
ACTION_TYPE_SET_ATTRIBUTE
,
ACTION_TYPE_SET_TEXT
,
ATTR_CHANGE_PREFIX
,
ATTR_CLASS
,
ATTR_INNER_HTML
,
ATTR_STYLE
,
ATTR_TEXT_CONTENT
,
ATTR_V_OWNER_ID
,
ATTR_V_RENDERJS
,
ATTR_V_SHOW
,
BACKGROUND_COLOR
,
BUILT_IN_TAGS
,
BUILT_IN_TAG_NAMES
,
COMPONENT_NAME_PREFIX
,
COMPONENT_PREFIX
,
COMPONENT_SELECTOR_PREFIX
,
DATA_RE
,
E$1
as
Emitter
,
EventChannel
,
EventModifierFlags
,
I18N_JSON_DELIMITERS
,
JSON_PROTOCOL
,
LINEFEED
,
MINI_PROGRAM_PAGE_RUNTIME_HOOKS
,
NAVBAR_HEIGHT
,
NODE_TYPE_COMMENT
,
NODE_TYPE_ELEMENT
,
NODE_TYPE_PAGE
,
NODE_TYPE_TEXT
,
NVUE_BUILT_IN_TAGS
,
NVUE_U_BUILT_IN_TAGS
,
ON_ADD_TO_FAVORITES
,
ON_APP_ENTER_BACKGROUND
,
ON_APP_ENTER_FOREGROUND
,
ON_BACK_PRESS
,
ON_ERROR
,
ON_HIDE
,
ON_INIT
,
ON_KEYBOARD_HEIGHT_CHANGE
,
ON_LAUNCH
,
ON_LOAD
,
ON_NAVIGATION_BAR_BUTTON_TAP
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED
,
ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED
,
ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED
,
ON_PAGE_NOT_FOUND
,
ON_PAGE_SCROLL
,
ON_PULL_DOWN_REFRESH
,
ON_REACH_BOTTOM
,
ON_REACH_BOTTOM_DISTANCE
,
ON_READY
,
ON_RESIZE
,
ON_S
AVE_EXIT_STATE
,
ON_S
HARE_APP_MESSAGE
,
ON_SHARE_TIMELINE
,
ON_SHOW
,
ON_TAB_ITEM_TAP
,
ON_THEME_CHANGE
,
ON_UNHANDLE_REJECTION
,
ON_UNLOAD
,
ON_WEB_INVOKE_APP_SERVICE
,
ON_WXS_INVOKE_CALL_METHOD
,
PLUS_RE
,
PRIMARY_COLOR
,
RENDERJS_MODULES
,
RESPONSIVE_MIN_WIDTH
,
SCHEME_RE
,
SELECTED_COLOR
,
SLOT_DEFAULT_NAME
,
TABBAR_HEIGHT
,
TAGS
,
UNI_SSR
,
UNI_SSR_DATA
,
UNI_SSR_GLOBAL_DATA
,
UNI_SSR_STORE
,
UNI_SSR_TITLE
,
UNI_STORAGE_LOCALE
,
UniBaseNode
,
UniCommentNode
,
UniElement
,
UniEvent
,
UniInputElement
,
UniLifecycleHooks
,
UniNode
,
UniTextAreaElement
,
UniTextNode
,
WEB_INVOKE_APPSERVICE
,
WXS_MODULES
,
WXS_PROTOCOL
,
addFont
,
addLeadingSlash
,
cache
,
cacheStringFunction
,
callOptions
,
createIsCustomElement
,
createRpx2Unit
,
createUniEvent
,
customizeEvent
,
debounce
,
decode
,
decodedQuery
,
defaultMiniProgramRpx2Unit
,
defaultNVueRpx2Unit
,
defaultRpx2Unit
,
dynamicSlotName
,
forcePatchProp
,
formatAppLog
,
formatDateTime
,
formatH5Log
,
formatLog
,
getCustomDataset
,
getEnvLocale
,
getLen
,
getValueByDataPath
,
initCustomDatasetOnce
,
invokeArrayFns
,
invokeCreateVueAppHook
,
isAppNVueNativeTag
,
isAppNativeTag
,
isBuiltInComponent
,
isComponentInternalInstance
,
isComponentTag
,
isH5CustomElement
,
isH5NativeTag
,
isMiniProgramNativeTag
,
isRootHook
,
isRootImmediateHook
,
normalizeDataset
,
normalizeEventType
,
normalizeTarget
,
onCreateVueApp
,
once
,
parseEventName
,
parseNVueDataset
,
parseQuery
,
parseUrl
,
passive
,
plusReady
,
removeLeadingSlash
,
resolveComponentInstance
,
resolveOwnerEl
,
resolveOwnerVm
,
sanitise
,
scrollTo
,
stringifyQuery
,
updateElementStyle
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录