@dcloudio/uni-app-x 0.7.60 → 0.7.61

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.
Files changed (107) hide show
  1. package/package.json +2 -2
  2. package/types/app.d.ts +14 -7
  3. package/types/native/IUniElement.d.ts +1 -1
  4. package/types/native/UniCustomElement.d.ts +2 -2
  5. package/types/native/UniInputChangeEvent.d.ts +31 -0
  6. package/types/native/UniPage.d.ts +10 -2
  7. package/types/native/global.d.ts +12 -0
  8. package/types/native/index.d.ts +1 -0
  9. package/types/uni/uts-plugin-api/global.d.ts +1 -0
  10. package/types/uni/uts-plugin-api/index.d.ts +1 -0
  11. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +77 -433
  12. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +2 -0
  13. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +16 -0
  14. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +8 -0
  15. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +561 -131
  16. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +17 -34
  17. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +4 -8
  18. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +1 -2
  19. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +5 -0
  20. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +8 -4
  21. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +3 -1
  22. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +29 -58
  23. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +36 -72
  24. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +3 -1
  25. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +1 -1
  26. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +9 -7
  27. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +8 -7
  28. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +4 -4
  29. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +84 -0
  30. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +47 -0
  31. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +1 -1
  32. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/global.d.ts +38 -0
  33. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/index.d.ts +19 -0
  34. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +1783 -107
  35. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +13 -18
  36. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +68 -208
  37. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +2 -4
  38. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +105 -107
  39. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/global.d.ts +4 -0
  40. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/index.d.ts +2 -0
  41. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +359 -66
  42. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/global.d.ts +16 -0
  43. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/index.d.ts +8 -0
  44. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +40 -0
  45. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +10 -15
  46. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +86 -94
  47. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +25 -26
  48. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +30 -60
  49. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +32 -64
  50. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +298 -4
  51. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +4 -0
  52. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +2 -0
  53. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +347 -10
  54. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +3 -1
  55. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +3 -1
  56. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +25 -33
  57. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +0 -2
  58. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +0 -1
  59. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +21 -33
  60. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1 -0
  61. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +23 -46
  62. package/types/uni/uts-plugin-biz/global.d.ts +11 -0
  63. package/types/uni/uts-plugin-biz/index.d.ts +11 -0
  64. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +60 -3
  65. package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +6 -0
  66. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/global.d.ts +52 -0
  67. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/index.d.ts +25 -0
  68. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +445 -0
  69. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/global.d.ts +48 -0
  70. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/index.d.ts +23 -0
  71. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +138 -0
  72. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +28 -12
  73. package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/global.d.ts +8 -0
  74. package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/index.d.ts +4 -0
  75. package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/interface.d.ts +0 -0
  76. package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/global.d.ts +8 -0
  77. package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/index.d.ts +4 -0
  78. package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/interface.d.ts +0 -0
  79. package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/global.d.ts +8 -0
  80. package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/index.d.ts +4 -0
  81. package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/interface.d.ts +0 -0
  82. package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/global.d.ts +8 -0
  83. package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/index.d.ts +4 -0
  84. package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/interface.d.ts +0 -0
  85. package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/global.d.ts +8 -0
  86. package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/index.d.ts +4 -0
  87. package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/interface.d.ts +0 -0
  88. package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/global.d.ts +8 -0
  89. package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/index.d.ts +4 -0
  90. package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/interface.d.ts +0 -0
  91. package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/global.d.ts +8 -0
  92. package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/index.d.ts +4 -0
  93. package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/interface.d.ts +0 -0
  94. package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/global.d.ts +18 -0
  95. package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/index.d.ts +9 -0
  96. package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/interface.d.ts +45 -0
  97. package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/global.d.ts +8 -0
  98. package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/index.d.ts +4 -0
  99. package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/interface.d.ts +0 -0
  100. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +7 -2
  101. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +37 -44
  102. package/types/uni/uts-plugin-extend/global.d.ts +0 -2
  103. package/types/uni/uts-plugin-extend/index.d.ts +0 -2
  104. package/types/vue/LifeCycle.d.ts +723 -1
  105. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +0 -14
  106. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +0 -1
  107. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +0 -1670
@@ -16,30 +16,681 @@ type OnLastPageBackPress = () => void
16
16
  export function onLastPageBackPress(hook: OnLastPageBackPress, target?: ComponentInternalInstance | null): void
17
17
  type OnExit = () => void
18
18
  export function onExit(hook: OnExit, target?: ComponentInternalInstance | null): void
19
- // type OnLoadOptions = Map<string, string>;
19
+ type OnLoadOptions = UTSJSONObject;
20
20
  type OnLoad = (options: OnLoadOptions) => void
21
+ /**
22
+ * 生命周期回调 监听页面加载
23
+ *
24
+ * 页面加载时触发。一个页面只会调用一次,可以在 onLoad 的参数中获取打开当前页面路径中的参数。
25
+ * @param query 打开当前页面路径中的参数
26
+ *
27
+ * @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
28
+ * @uniPlatform {
29
+ * "app": {
30
+ * "android": {
31
+ * "osVer": "5.0",
32
+ * "uniVer": "√",
33
+ * "unixVer": "3.9"
34
+ * },
35
+ * "ios": {
36
+ * "osVer": "10.0",
37
+ * "uniVer": "√",
38
+ * "unixVer": "4.11"
39
+ * },
40
+ * "harmony": {
41
+ * "osVer": "3.0",
42
+ * "uniVer": "4.23",
43
+ * "unixVer": "4.61"
44
+ * }
45
+ * },
46
+ * "mp": {
47
+ * "weixin": {
48
+ * "hostVer": "√",
49
+ * "uniVer": "√",
50
+ * "unixVer": "4.41"
51
+ * },
52
+ * "alipay": {
53
+ * "hostVer": "√",
54
+ * "uniVer": "√",
55
+ * "unixVer": "x"
56
+ * },
57
+ * "baidu": {
58
+ * "hostVer": "√",
59
+ * "uniVer": "√",
60
+ * "unixVer": "x"
61
+ * },
62
+ * "toutiao": {
63
+ * "hostVer": "√",
64
+ * "uniVer": "√",
65
+ * "unixVer": "x"
66
+ * },
67
+ * "lark": {
68
+ * "hostVer": "√",
69
+ * "uniVer": "√",
70
+ * "unixVer": "x"
71
+ * },
72
+ * "qq": {
73
+ * "hostVer": "√",
74
+ * "uniVer": "√",
75
+ * "unixVer": "x"
76
+ * },
77
+ * "kuaishou": {
78
+ * "hostVer": "√",
79
+ * "uniVer": "√",
80
+ * "unixVer": "x"
81
+ * },
82
+ * "jd": {
83
+ * "hostVer": "√",
84
+ * "uniVer": "√",
85
+ * "unixVer": "x"
86
+ * }
87
+ * },
88
+ * "web": {
89
+ * "uniVer": "√",
90
+ * "unixVer": "4.0"
91
+ * }
92
+ *}
93
+ */
21
94
  export function onLoad(hook: OnLoad, target?: ComponentInternalInstance | null): void
22
95
  type OnPageShow = () => void
96
+ /**
97
+ * 生命周期回调 监听页面显示
98
+ *
99
+ * 页面显示/切入前台时触发。
100
+ *
101
+ * @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
102
+ * @uniPlatform {
103
+ * "app": {
104
+ * "android": {
105
+ * "osVer": "5.0",
106
+ * "uniVer": "√",
107
+ * "unixVer": "3.9"
108
+ * },
109
+ * "ios": {
110
+ * "osVer": "10.0",
111
+ * "uniVer": "√",
112
+ * "unixVer": "4.11"
113
+ * },
114
+ * "harmony": {
115
+ * "osVer": "3.0",
116
+ * "uniVer": "4.23",
117
+ * "unixVer": "4.61"
118
+ * }
119
+ * },
120
+ * "mp": {
121
+ * "weixin": {
122
+ * "hostVer": "√",
123
+ * "uniVer": "√",
124
+ * "unixVer": "4.41"
125
+ * },
126
+ * "alipay": {
127
+ * "hostVer": "√",
128
+ * "uniVer": "√",
129
+ * "unixVer": "x"
130
+ * },
131
+ * "baidu": {
132
+ * "hostVer": "√",
133
+ * "uniVer": "√",
134
+ * "unixVer": "x"
135
+ * },
136
+ * "toutiao": {
137
+ * "hostVer": "√",
138
+ * "uniVer": "√",
139
+ * "unixVer": "x"
140
+ * },
141
+ * "lark": {
142
+ * "hostVer": "√",
143
+ * "uniVer": "√",
144
+ * "unixVer": "x"
145
+ * },
146
+ * "qq": {
147
+ * "hostVer": "√",
148
+ * "uniVer": "√",
149
+ * "unixVer": "x"
150
+ * },
151
+ * "kuaishou": {
152
+ * "hostVer": "√",
153
+ * "uniVer": "√",
154
+ * "unixVer": "x"
155
+ * },
156
+ * "jd": {
157
+ * "hostVer": "√",
158
+ * "uniVer": "√",
159
+ * "unixVer": "x"
160
+ * }
161
+ * },
162
+ * "web": {
163
+ * "uniVer": "√",
164
+ * "unixVer": "4.0"
165
+ * }
166
+ *}
167
+ */
23
168
  export function onPageShow(hook: OnPageShow, target?: ComponentInternalInstance | null): void
24
169
  type OnPageHide = () => void
170
+ /**
171
+ * 生命周期回调 监听页面隐藏
172
+ *
173
+ * 页面隐藏/切入后台时触发。 如 `navigateTo` 或底部 `tab` 切换到其他页面,应用切入后台等。
174
+ *
175
+ * @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
176
+ * @uniPlatform {
177
+ * "app": {
178
+ * "android": {
179
+ * "osVer": "5.0",
180
+ * "uniVer": "√",
181
+ * "unixVer": "3.9"
182
+ * },
183
+ * "ios": {
184
+ * "osVer": "10.0",
185
+ * "uniVer": "√",
186
+ * "unixVer": "4.11"
187
+ * },
188
+ * "harmony": {
189
+ * "osVer": "3.0",
190
+ * "uniVer": "4.23",
191
+ * "unixVer": "4.61"
192
+ * }
193
+ * },
194
+ * "mp": {
195
+ * "weixin": {
196
+ * "hostVer": "√",
197
+ * "uniVer": "√",
198
+ * "unixVer": "4.41"
199
+ * },
200
+ * "alipay": {
201
+ * "hostVer": "√",
202
+ * "uniVer": "√",
203
+ * "unixVer": "x"
204
+ * },
205
+ * "baidu": {
206
+ * "hostVer": "√",
207
+ * "uniVer": "√",
208
+ * "unixVer": "x"
209
+ * },
210
+ * "toutiao": {
211
+ * "hostVer": "√",
212
+ * "uniVer": "√",
213
+ * "unixVer": "x"
214
+ * },
215
+ * "lark": {
216
+ * "hostVer": "√",
217
+ * "uniVer": "√",
218
+ * "unixVer": "x"
219
+ * },
220
+ * "qq": {
221
+ * "hostVer": "√",
222
+ * "uniVer": "√",
223
+ * "unixVer": "x"
224
+ * },
225
+ * "kuaishou": {
226
+ * "hostVer": "√",
227
+ * "uniVer": "√",
228
+ * "unixVer": "x"
229
+ * },
230
+ * "jd": {
231
+ * "hostVer": "√",
232
+ * "uniVer": "√",
233
+ * "unixVer": "x"
234
+ * }
235
+ * },
236
+ * "web": {
237
+ * "uniVer": "√",
238
+ * "unixVer": "4.0"
239
+ * }
240
+ *}
241
+ */
25
242
  export function onPageHide(hook: OnPageHide, target?: ComponentInternalInstance | null): void
26
243
  type OnReady = () => void
244
+ /**
245
+ * 生命周期回调 监听页面初次渲染完成
246
+ *
247
+ * 页面初次渲染完成时触发。一个页面只会调用一次,代表页面已经准备妥当,可以和视图层进行交互。
248
+ *
249
+ * @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
250
+ * @uniPlatform {
251
+ * "app": {
252
+ * "android": {
253
+ * "osVer": "5.0",
254
+ * "uniVer": "√",
255
+ * "unixVer": "3.9"
256
+ * },
257
+ * "ios": {
258
+ * "osVer": "10.0",
259
+ * "uniVer": "√",
260
+ * "unixVer": "4.11"
261
+ * },
262
+ * "harmony": {
263
+ * "osVer": "3.0",
264
+ * "uniVer": "4.23",
265
+ * "unixVer": "4.61"
266
+ * }
267
+ * },
268
+ * "mp": {
269
+ * "weixin": {
270
+ * "hostVer": "√",
271
+ * "uniVer": "√",
272
+ * "unixVer": "4.41"
273
+ * },
274
+ * "alipay": {
275
+ * "hostVer": "√",
276
+ * "uniVer": "√",
277
+ * "unixVer": "x"
278
+ * },
279
+ * "baidu": {
280
+ * "hostVer": "√",
281
+ * "uniVer": "√",
282
+ * "unixVer": "x"
283
+ * },
284
+ * "toutiao": {
285
+ * "hostVer": "√",
286
+ * "uniVer": "√",
287
+ * "unixVer": "x"
288
+ * },
289
+ * "lark": {
290
+ * "hostVer": "√",
291
+ * "uniVer": "√",
292
+ * "unixVer": "x"
293
+ * },
294
+ * "qq": {
295
+ * "hostVer": "√",
296
+ * "uniVer": "√",
297
+ * "unixVer": "x"
298
+ * },
299
+ * "kuaishou": {
300
+ * "hostVer": "√",
301
+ * "uniVer": "√",
302
+ * "unixVer": "x"
303
+ * },
304
+ * "jd": {
305
+ * "hostVer": "√",
306
+ * "uniVer": "√",
307
+ * "unixVer": "x"
308
+ * }
309
+ * },
310
+ * "web": {
311
+ * "uniVer": "√",
312
+ * "unixVer": "4.0"
313
+ * }
314
+ *}
315
+ */
27
316
  export function onReady(hook: OnReady, target?: ComponentInternalInstance | null): void
28
317
  type OnUnload = () => void
318
+ /**
319
+ * 生命周期回调 监听页面卸载
320
+ *
321
+ * 页面卸载时触发。如 `redirectTo` 或 `navigateBack` 到其他页面时。
322
+ *
323
+ * @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
324
+ * @uniPlatform {
325
+ * "app": {
326
+ * "android": {
327
+ * "osVer": "5.0",
328
+ * "uniVer": "√",
329
+ * "unixVer": "3.9"
330
+ * },
331
+ * "ios": {
332
+ * "osVer": "10.0",
333
+ * "uniVer": "√",
334
+ * "unixVer": "4.11"
335
+ * },
336
+ * "harmony": {
337
+ * "osVer": "3.0",
338
+ * "uniVer": "4.23",
339
+ * "unixVer": "4.61"
340
+ * }
341
+ * },
342
+ * "mp": {
343
+ * "weixin": {
344
+ * "hostVer": "√",
345
+ * "uniVer": "√",
346
+ * "unixVer": "4.41"
347
+ * },
348
+ * "alipay": {
349
+ * "hostVer": "√",
350
+ * "uniVer": "√",
351
+ * "unixVer": "x"
352
+ * },
353
+ * "baidu": {
354
+ * "hostVer": "√",
355
+ * "uniVer": "√",
356
+ * "unixVer": "x"
357
+ * },
358
+ * "toutiao": {
359
+ * "hostVer": "√",
360
+ * "uniVer": "√",
361
+ * "unixVer": "x"
362
+ * },
363
+ * "lark": {
364
+ * "hostVer": "√",
365
+ * "uniVer": "√",
366
+ * "unixVer": "x"
367
+ * },
368
+ * "qq": {
369
+ * "hostVer": "√",
370
+ * "uniVer": "√",
371
+ * "unixVer": "x"
372
+ * },
373
+ * "kuaishou": {
374
+ * "hostVer": "√",
375
+ * "uniVer": "√",
376
+ * "unixVer": "x"
377
+ * },
378
+ * "jd": {
379
+ * "hostVer": "√",
380
+ * "uniVer": "√",
381
+ * "unixVer": "x"
382
+ * }
383
+ * },
384
+ * "web": {
385
+ * "uniVer": "√",
386
+ * "unixVer": "4.0"
387
+ * }
388
+ *}
389
+ */
29
390
  export function onUnload(hook: OnUnload, target?: ComponentInternalInstance | null): void
30
391
  type OnPullDownRefresh = () => void
392
+ /**
393
+ * 监听用户下拉动作
394
+ * - 需要在 `pages.json` 的页面配置中开启 `enablePullDownRefresh` 。
395
+ * - 可以通过 `uni.startPullDownRefresh` 触发下拉刷新,调用后触发下拉刷新动画,效果与用户手动下拉刷新一致。
396
+ * - 当处理完数据刷新后,`uni.stopPullDownRefresh` 可以停止当前页面的下拉刷新。
397
+ *
398
+ * @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
399
+ * @uniPlatform {
400
+ * "app": {
401
+ * "android": {
402
+ * "osVer": "5.0",
403
+ * "uniVer": "√",
404
+ * "unixVer": "3.9"
405
+ * },
406
+ * "ios": {
407
+ * "osVer": "10.0",
408
+ * "uniVer": "√",
409
+ * "unixVer": "4.11"
410
+ * },
411
+ * "harmony": {
412
+ * "osVer": "3.0",
413
+ * "uniVer": "4.23",
414
+ * "unixVer": "4.61"
415
+ * }
416
+ * },
417
+ * "mp": {
418
+ * "weixin": {
419
+ * "hostVer": "√",
420
+ * "uniVer": "√",
421
+ * "unixVer": "4.41"
422
+ * },
423
+ * "alipay": {
424
+ * "hostVer": "√",
425
+ * "uniVer": "√",
426
+ * "unixVer": "x"
427
+ * },
428
+ * "baidu": {
429
+ * "hostVer": "√",
430
+ * "uniVer": "√",
431
+ * "unixVer": "x"
432
+ * },
433
+ * "toutiao": {
434
+ * "hostVer": "√",
435
+ * "uniVer": "√",
436
+ * "unixVer": "x"
437
+ * },
438
+ * "lark": {
439
+ * "hostVer": "√",
440
+ * "uniVer": "√",
441
+ * "unixVer": "x"
442
+ * },
443
+ * "qq": {
444
+ * "hostVer": "√",
445
+ * "uniVer": "√",
446
+ * "unixVer": "x"
447
+ * },
448
+ * "kuaishou": {
449
+ * "hostVer": "√",
450
+ * "uniVer": "√",
451
+ * "unixVer": "x"
452
+ * },
453
+ * "jd": {
454
+ * "hostVer": "√",
455
+ * "uniVer": "√",
456
+ * "unixVer": "x"
457
+ * }
458
+ * },
459
+ * "web": {
460
+ * "uniVer": "√",
461
+ * "unixVer": "4.0"
462
+ * }
463
+ *}
464
+ */
31
465
  export function onPullDownRefresh(hook: OnPullDownRefresh, target?: ComponentInternalInstance | null): void
32
466
  // type OnPageScrollOptions = {
33
467
  // scrollTop: number;
34
468
  // };
35
469
  type OnPageScroll = (options: OnPageScrollOptions) => void
470
+ /**
471
+ * 页面滚动触发事件的处理函数
472
+ *
473
+ * 监听用户滑动页面事件。
474
+ * @param options 页面滚动参数
475
+ *
476
+ * @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
477
+ * @uniPlatform {
478
+ * "app": {
479
+ * "android": {
480
+ * "osVer": "5.0",
481
+ * "uniVer": "√",
482
+ * "unixVer": "3.9"
483
+ * },
484
+ * "ios": {
485
+ * "osVer": "10.0",
486
+ * "uniVer": "√",
487
+ * "unixVer": "4.13"
488
+ * },
489
+ * "harmony": {
490
+ * "osVer": "3.0",
491
+ * "uniVer": "4.23",
492
+ * "unixVer": "4.61"
493
+ * }
494
+ * },
495
+ * "mp": {
496
+ * "weixin": {
497
+ * "hostVer": "√",
498
+ * "uniVer": "√",
499
+ * "unixVer": "4.41"
500
+ * },
501
+ * "alipay": {
502
+ * "hostVer": "√",
503
+ * "uniVer": "√",
504
+ * "unixVer": "x"
505
+ * },
506
+ * "baidu": {
507
+ * "hostVer": "√",
508
+ * "uniVer": "√",
509
+ * "unixVer": "x"
510
+ * },
511
+ * "toutiao": {
512
+ * "hostVer": "√",
513
+ * "uniVer": "√",
514
+ * "unixVer": "x"
515
+ * },
516
+ * "lark": {
517
+ * "hostVer": "√",
518
+ * "uniVer": "√",
519
+ * "unixVer": "x"
520
+ * },
521
+ * "qq": {
522
+ * "hostVer": "√",
523
+ * "uniVer": "√",
524
+ * "unixVer": "x"
525
+ * },
526
+ * "kuaishou": {
527
+ * "hostVer": "√",
528
+ * "uniVer": "√",
529
+ * "unixVer": "x"
530
+ * },
531
+ * "jd": {
532
+ * "hostVer": "√",
533
+ * "uniVer": "√",
534
+ * "unixVer": "x"
535
+ * }
536
+ * },
537
+ * "web": {
538
+ * "uniVer": "√",
539
+ * "unixVer": "4.0"
540
+ * }
541
+ *}
542
+ */
36
543
  export function onPageScroll(hook: OnPageScroll, target?: ComponentInternalInstance | null): void
37
544
  type OnReachBottom = () => void
545
+ /**
546
+ * 页面上拉触底事件的处理函数
547
+ * - 可以在 `pages.json` 的页面配置中设置触发距离 `onReachBottomDistance` 。
548
+ * - 在触发距离内滑动期间,本事件只会被触发一次。
549
+ *
550
+ * @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
551
+ * @uniPlatform {
552
+ * "app": {
553
+ * "android": {
554
+ * "osVer": "5.0",
555
+ * "uniVer": "√",
556
+ * "unixVer": "3.9"
557
+ * },
558
+ * "ios": {
559
+ * "osVer": "10.0",
560
+ * "uniVer": "√",
561
+ * "unixVer": "4.11"
562
+ * },
563
+ * "harmony": {
564
+ * "osVer": "3.0",
565
+ * "uniVer": "4.23",
566
+ * "unixVer": "4.61"
567
+ * }
568
+ * },
569
+ * "mp": {
570
+ * "weixin": {
571
+ * "hostVer": "√",
572
+ * "uniVer": "√",
573
+ * "unixVer": "4.41"
574
+ * },
575
+ * "alipay": {
576
+ * "hostVer": "√",
577
+ * "uniVer": "√",
578
+ * "unixVer": "x"
579
+ * },
580
+ * "baidu": {
581
+ * "hostVer": "√",
582
+ * "uniVer": "√",
583
+ * "unixVer": "x"
584
+ * },
585
+ * "toutiao": {
586
+ * "hostVer": "√",
587
+ * "uniVer": "√",
588
+ * "unixVer": "x"
589
+ * },
590
+ * "lark": {
591
+ * "hostVer": "√",
592
+ * "uniVer": "√",
593
+ * "unixVer": "x"
594
+ * },
595
+ * "qq": {
596
+ * "hostVer": "√",
597
+ * "uniVer": "√",
598
+ * "unixVer": "x"
599
+ * },
600
+ * "kuaishou": {
601
+ * "hostVer": "√",
602
+ * "uniVer": "√",
603
+ * "unixVer": "x"
604
+ * },
605
+ * "jd": {
606
+ * "hostVer": "√",
607
+ * "uniVer": "√",
608
+ * "unixVer": "x"
609
+ * }
610
+ * },
611
+ * "web": {
612
+ * "uniVer": "√",
613
+ * "unixVer": "4.0"
614
+ * }
615
+ *}
616
+ */
38
617
  export function onReachBottom(hook: OnReachBottom, target?: ComponentInternalInstance | null): void
39
618
  // type OnBackPressOptions = {
40
619
  // from: 'backbutton' | 'navigateBack';
41
620
  // };
42
621
  type OnBackPress = (options: OnBackPressOptions) => boolean | null
622
+ /**
623
+ * 监听页面返回
624
+ * @param options tab 点击参数
625
+ * @return 返回 `true` 时阻止页面返回
626
+ *
627
+ * @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
628
+ * @uniPlatform {
629
+ * "app": {
630
+ * "android": {
631
+ * "osVer": "5.0",
632
+ * "uniVer": "√",
633
+ * "unixVer": "3.9"
634
+ * },
635
+ * "ios": {
636
+ * "osVer": "10.0",
637
+ * "uniVer": "√",
638
+ * "unixVer": "4.11"
639
+ * },
640
+ * "harmony": {
641
+ * "osVer": "3.0",
642
+ * "uniVer": "4.23",
643
+ * "unixVer": "4.61"
644
+ * }
645
+ * },
646
+ * "mp": {
647
+ * "weixin": {
648
+ * "hostVer": "x",
649
+ * "uniVer": "x",
650
+ * "unixVer": "4.41"
651
+ * },
652
+ * "alipay": {
653
+ * "hostVer": "√",
654
+ * "uniVer": "√",
655
+ * "unixVer": "x"
656
+ * },
657
+ * "baidu": {
658
+ * "hostVer": "x",
659
+ * "uniVer": "x",
660
+ * "unixVer": "x"
661
+ * },
662
+ * "toutiao": {
663
+ * "hostVer": "x",
664
+ * "uniVer": "x",
665
+ * "unixVer": "x"
666
+ * },
667
+ * "lark": {
668
+ * "hostVer": "x",
669
+ * "uniVer": "x",
670
+ * "unixVer": "x"
671
+ * },
672
+ * "qq": {
673
+ * "hostVer": "x",
674
+ * "uniVer": "x",
675
+ * "unixVer": "x"
676
+ * },
677
+ * "kuaishou": {
678
+ * "hostVer": "x",
679
+ * "uniVer": "x",
680
+ * "unixVer": "x"
681
+ * },
682
+ * "jd": {
683
+ * "hostVer": "x",
684
+ * "uniVer": "x",
685
+ * "unixVer": "x"
686
+ * }
687
+ * },
688
+ * "web": {
689
+ * "uniVer": "√",
690
+ * "unixVer": "4.0"
691
+ * }
692
+ *}
693
+ */
43
694
  export function onBackPress(hook: OnBackPress, target?: ComponentInternalInstance | null): void
44
695
  // type OnResizeSize = {
45
696
  // screenHeight: number;
@@ -52,4 +703,75 @@ export function onBackPress(hook: OnBackPress, target?: ComponentInternalInstanc
52
703
  // size: OnResizeSize;
53
704
  // };
54
705
  type OnResize = (options: OnResizeOptions) => void
706
+ /**
707
+ * 页面尺寸改变时触发
708
+ * @param options 页面滚动参数
709
+ *
710
+ * @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
711
+ * @uniPlatform {
712
+ * "app": {
713
+ * "android": {
714
+ * "osVer": "5.0",
715
+ * "uniVer": "√",
716
+ * "unixVer": "3.9"
717
+ * },
718
+ * "ios": {
719
+ * "osVer": "10.0",
720
+ * "uniVer": "√",
721
+ * "unixVer": "4.11"
722
+ * },
723
+ * "harmony": {
724
+ * "osVer": "3.0",
725
+ * "uniVer": "4.23",
726
+ * "unixVer": "4.61"
727
+ * }
728
+ * },
729
+ * "mp": {
730
+ * "weixin": {
731
+ * "hostVer": "√",
732
+ * "uniVer": "√",
733
+ * "unixVer": "4.41"
734
+ * },
735
+ * "alipay": {
736
+ * "hostVer": "x",
737
+ * "uniVer": "x",
738
+ * "unixVer": "x"
739
+ * },
740
+ * "baidu": {
741
+ * "hostVer": "x",
742
+ * "uniVer": "x",
743
+ * "unixVer": "x"
744
+ * },
745
+ * "toutiao": {
746
+ * "hostVer": "x",
747
+ * "uniVer": "x",
748
+ * "unixVer": "x"
749
+ * },
750
+ * "lark": {
751
+ * "hostVer": "x",
752
+ * "uniVer": "x",
753
+ * "unixVer": "x"
754
+ * },
755
+ * "qq": {
756
+ * "hostVer": "x",
757
+ * "uniVer": "x",
758
+ * "unixVer": "x"
759
+ * },
760
+ * "kuaishou": {
761
+ * "hostVer": "√",
762
+ * "uniVer": "√",
763
+ * "unixVer": "x"
764
+ * },
765
+ * "jd": {
766
+ * "hostVer": "x",
767
+ * "uniVer": "x",
768
+ * "unixVer": "x"
769
+ * }
770
+ * },
771
+ * "web": {
772
+ * "uniVer": "√",
773
+ * "unixVer": "4.0"
774
+ * }
775
+ *}
776
+ */
55
777
  export function onResize(hook: OnResize, target?: ComponentInternalInstance | null): void