@dcloudio/uni-app-x 0.7.62 → 0.7.63
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/package.json +1 -1
- package/types/app.d.ts +36 -1
- package/types/dom2/UniCSSProperty.d.ts +446 -0
- package/types/dom2/UniCSSType.d.ts +72 -0
- package/types/dom2/UniCommon.d.ts +40 -0
- package/types/dom2/UniCustomViewElement.d.ts +12 -0
- package/types/dom2/UniElement.d.ts +354 -0
- package/types/dom2/UniElementType.d.ts +37 -0
- package/types/dom2/UniImageElement.d.ts +102 -0
- package/types/dom2/UniNativeBaseView.d.ts +178 -0
- package/types/dom2/UniNativeCustomView.d.ts +13 -0
- package/types/dom2/UniNativeDefines.d.ts +435 -0
- package/types/dom2/UniNativeImageView.d.ts +34 -0
- package/types/dom2/UniNativeScrollView.d.ts +42 -0
- package/types/dom2/UniNativeTextView.d.ts +25 -0
- package/types/dom2/UniNativeView.d.ts +51 -0
- package/types/dom2/UniNativeViewType.d.ts +22 -0
- package/types/dom2/UniPage.d.ts +55 -0
- package/types/dom2/UniScrollViewElement.d.ts +13 -0
- package/types/dom2/UniTextElement.d.ts +20 -0
- package/types/dom2/UniTextLayout.d.ts +386 -0
- package/types/dom2/UniViewElement.d.ts +57 -0
- package/types/dom2/global.d.ts +189 -0
- package/types/dom2/index.d.ts +40 -0
- package/types/dom2/sharedData.d.ts +227 -0
- package/types/index.d.ts +2 -1
- package/types/native/DOMRect.d.ts +2 -1
- package/types/native/DrawableContext.d.ts +1665 -1661
- package/types/native/IUniElement.d.ts +3514 -2877
- package/types/native/SnapshotOptions.d.ts +2 -2
- package/types/native/UniAnimation.d.ts +11 -10
- package/types/native/UniEvent.d.ts +108 -3
- package/types/native/UniPage.d.ts +891 -887
- package/types/native/UniTextElement.d.ts +37 -0
- package/types/native/UniTextLayout.d.ts +387 -0
- package/types/native/UniVideoElement.d.ts +20 -17
- package/types/native/Worker.d.ts +19 -0
- package/types/native/global.d.ts +28 -68
- package/types/native/index.d.ts +18 -1
- package/types/page.d.ts +1862 -599
- package/types/uni/uts-plugin-api/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/interface.d.ts +524 -0
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +985 -76
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +79 -55
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +77 -53
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +458 -407
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +420 -0
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +80 -80
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/global.d.ts +12 -4
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/index.d.ts +6 -2
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +713 -91
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +3 -1
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +71 -1
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/global.d.ts +56 -0
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/index.d.ts +27 -0
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +842 -0
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +63 -42
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +1007 -314
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +1727 -10
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +235 -30
- package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +17 -17
- package/uts-plugin.d.ts +11 -0
package/types/page.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path='./common.d.ts' />
|
|
2
|
-
import { UniDialogPage, UniNormalPage, UniPage } from "./native/
|
|
2
|
+
import { UniDialogPage, UniNormalPage, UniPage } from "./native/index"
|
|
3
3
|
|
|
4
4
|
interface CustomShareContent {
|
|
5
5
|
/**
|
|
@@ -135,111 +135,6 @@ interface ShareTimelineContent {
|
|
|
135
135
|
interface OnResizeSize {
|
|
136
136
|
/**
|
|
137
137
|
* 新的屏幕高度
|
|
138
|
-
*/
|
|
139
|
-
screenHeight: number
|
|
140
|
-
/**
|
|
141
|
-
* 新的屏幕宽度
|
|
142
|
-
*/
|
|
143
|
-
screenWidth: number
|
|
144
|
-
/**
|
|
145
|
-
* 新的显示区域高度
|
|
146
|
-
*/
|
|
147
|
-
windowHeight: number
|
|
148
|
-
/**
|
|
149
|
-
* 新的显示区域宽度
|
|
150
|
-
*/
|
|
151
|
-
windowWidth: number
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
interface OnShareAppMessageOption {
|
|
155
|
-
/**
|
|
156
|
-
* 转发事件来源。
|
|
157
|
-
* 可选值:
|
|
158
|
-
* - `button`:页面内转发按钮;
|
|
159
|
-
* - `menu`:右上角转发菜单。
|
|
160
|
-
*/
|
|
161
|
-
from: "button" | "menu"
|
|
162
|
-
/**
|
|
163
|
-
* 如果 `from` 值是 `button`,则 `target` 是触发这次转发事件的 `button`,否则为 `undefined`
|
|
164
|
-
*/
|
|
165
|
-
target: any
|
|
166
|
-
/**
|
|
167
|
-
* 页面中包含 `<web-view>` 组件时,返回当前 `<web-view>` 的 url
|
|
168
|
-
*/
|
|
169
|
-
webViewUrl?: string
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
interface OnAddToFavoritesOption {
|
|
173
|
-
/**
|
|
174
|
-
* 转发事件来源。
|
|
175
|
-
* 可选值:
|
|
176
|
-
* - `button`:页面内转发按钮;
|
|
177
|
-
* - `menu`:右上角转发菜单。
|
|
178
|
-
*/
|
|
179
|
-
from: "button" | "menu"
|
|
180
|
-
/**
|
|
181
|
-
* 页面中包含 `<web-view>` 组件时,返回当前 `<web-view>` 的 url
|
|
182
|
-
*/
|
|
183
|
-
webviewUrl: string
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
interface CustomFavoritesContent {
|
|
187
|
-
/**
|
|
188
|
-
* 自定义标题,默认值:页面标题或账号名称
|
|
189
|
-
*/
|
|
190
|
-
title?: string
|
|
191
|
-
/**
|
|
192
|
-
* 自定义 query 字段
|
|
193
|
-
*/
|
|
194
|
-
path?: string
|
|
195
|
-
/**
|
|
196
|
-
* 自定义图片,显示图片长宽比为 1:1
|
|
197
|
-
*/
|
|
198
|
-
imageUrl?: string
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
interface OnNavigationBarButtonTapOption {
|
|
202
|
-
/**
|
|
203
|
-
* 原生标题栏按钮数组的下标
|
|
204
|
-
*/
|
|
205
|
-
index: number
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Construct a type with a set of properties K of type T
|
|
210
|
-
*/
|
|
211
|
-
type Record<K extends keyof any, T> = {
|
|
212
|
-
[P in K]: T
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
type NativeMap<K extends string, V> = Map<K, V> & Record<K, V>
|
|
216
|
-
|
|
217
|
-
interface NavigationBarSearchInputEvent {
|
|
218
|
-
/**
|
|
219
|
-
* 搜索输入框输入内容
|
|
220
|
-
*/
|
|
221
|
-
text: string
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
interface PageInstanceBaseProps<D extends AnyObject = any> {
|
|
225
|
-
/**
|
|
226
|
-
* 到当前页面的路径,类型为 `String`
|
|
227
|
-
*/
|
|
228
|
-
route?: string
|
|
229
|
-
/**
|
|
230
|
-
* 当前页面的 Vue 实例
|
|
231
|
-
*/
|
|
232
|
-
$vm?: any
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> extends PageInstanceBaseProps<D> {
|
|
236
|
-
/**
|
|
237
|
-
* 生命周期回调 监听页面加载
|
|
238
|
-
*
|
|
239
|
-
* 页面加载时触发。一个页面只会调用一次,可以在 onLoad 的参数中获取打开当前页面路径中的参数。
|
|
240
|
-
* @param query 打开当前页面路径中的参数
|
|
241
|
-
*
|
|
242
|
-
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
243
138
|
* @uniPlatform {
|
|
244
139
|
* "app": {
|
|
245
140
|
* "android": {
|
|
@@ -265,28 +160,28 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
265
160
|
* "unixVer": "4.41"
|
|
266
161
|
* },
|
|
267
162
|
* "alipay": {
|
|
268
|
-
* "hostVer": "
|
|
269
|
-
* "uniVer": "
|
|
163
|
+
* "hostVer": "x",
|
|
164
|
+
* "uniVer": "x",
|
|
270
165
|
* "unixVer": "x"
|
|
271
166
|
* },
|
|
272
167
|
* "baidu": {
|
|
273
|
-
* "hostVer": "
|
|
274
|
-
* "uniVer": "
|
|
168
|
+
* "hostVer": "x",
|
|
169
|
+
* "uniVer": "x",
|
|
275
170
|
* "unixVer": "x"
|
|
276
171
|
* },
|
|
277
172
|
* "toutiao": {
|
|
278
|
-
* "hostVer": "
|
|
279
|
-
* "uniVer": "
|
|
173
|
+
* "hostVer": "x",
|
|
174
|
+
* "uniVer": "x",
|
|
280
175
|
* "unixVer": "x"
|
|
281
176
|
* },
|
|
282
177
|
* "lark": {
|
|
283
|
-
* "hostVer": "
|
|
284
|
-
* "uniVer": "
|
|
178
|
+
* "hostVer": "x",
|
|
179
|
+
* "uniVer": "x",
|
|
285
180
|
* "unixVer": "x"
|
|
286
181
|
* },
|
|
287
182
|
* "qq": {
|
|
288
|
-
* "hostVer": "
|
|
289
|
-
* "uniVer": "
|
|
183
|
+
* "hostVer": "x",
|
|
184
|
+
* "uniVer": "x",
|
|
290
185
|
* "unixVer": "x"
|
|
291
186
|
* },
|
|
292
187
|
* "kuaishou": {
|
|
@@ -295,8 +190,8 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
295
190
|
* "unixVer": "x"
|
|
296
191
|
* },
|
|
297
192
|
* "jd": {
|
|
298
|
-
* "hostVer": "
|
|
299
|
-
* "uniVer": "
|
|
193
|
+
* "hostVer": "x",
|
|
194
|
+
* "uniVer": "x",
|
|
300
195
|
* "unixVer": "x"
|
|
301
196
|
* }
|
|
302
197
|
* },
|
|
@@ -306,13 +201,9 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
306
201
|
* }
|
|
307
202
|
*}
|
|
308
203
|
*/
|
|
309
|
-
|
|
204
|
+
screenHeight: number
|
|
310
205
|
/**
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
* 页面显示/切入前台时触发。
|
|
314
|
-
*
|
|
315
|
-
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
206
|
+
* 新的屏幕宽度
|
|
316
207
|
* @uniPlatform {
|
|
317
208
|
* "app": {
|
|
318
209
|
* "android": {
|
|
@@ -338,28 +229,28 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
338
229
|
* "unixVer": "4.41"
|
|
339
230
|
* },
|
|
340
231
|
* "alipay": {
|
|
341
|
-
* "hostVer": "
|
|
342
|
-
* "uniVer": "
|
|
232
|
+
* "hostVer": "x",
|
|
233
|
+
* "uniVer": "x",
|
|
343
234
|
* "unixVer": "x"
|
|
344
235
|
* },
|
|
345
236
|
* "baidu": {
|
|
346
|
-
* "hostVer": "
|
|
347
|
-
* "uniVer": "
|
|
237
|
+
* "hostVer": "x",
|
|
238
|
+
* "uniVer": "x",
|
|
348
239
|
* "unixVer": "x"
|
|
349
240
|
* },
|
|
350
241
|
* "toutiao": {
|
|
351
|
-
* "hostVer": "
|
|
352
|
-
* "uniVer": "
|
|
242
|
+
* "hostVer": "x",
|
|
243
|
+
* "uniVer": "x",
|
|
353
244
|
* "unixVer": "x"
|
|
354
245
|
* },
|
|
355
246
|
* "lark": {
|
|
356
|
-
* "hostVer": "
|
|
357
|
-
* "uniVer": "
|
|
247
|
+
* "hostVer": "x",
|
|
248
|
+
* "uniVer": "x",
|
|
358
249
|
* "unixVer": "x"
|
|
359
250
|
* },
|
|
360
251
|
* "qq": {
|
|
361
|
-
* "hostVer": "
|
|
362
|
-
* "uniVer": "
|
|
252
|
+
* "hostVer": "x",
|
|
253
|
+
* "uniVer": "x",
|
|
363
254
|
* "unixVer": "x"
|
|
364
255
|
* },
|
|
365
256
|
* "kuaishou": {
|
|
@@ -368,8 +259,8 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
368
259
|
* "unixVer": "x"
|
|
369
260
|
* },
|
|
370
261
|
* "jd": {
|
|
371
|
-
* "hostVer": "
|
|
372
|
-
* "uniVer": "
|
|
262
|
+
* "hostVer": "x",
|
|
263
|
+
* "uniVer": "x",
|
|
373
264
|
* "unixVer": "x"
|
|
374
265
|
* }
|
|
375
266
|
* },
|
|
@@ -379,13 +270,9 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
379
270
|
* }
|
|
380
271
|
*}
|
|
381
272
|
*/
|
|
382
|
-
|
|
273
|
+
screenWidth: number
|
|
383
274
|
/**
|
|
384
|
-
*
|
|
385
|
-
*
|
|
386
|
-
* 页面初次渲染完成时触发。一个页面只会调用一次,代表页面已经准备妥当,可以和视图层进行交互。
|
|
387
|
-
*
|
|
388
|
-
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
275
|
+
* 新的显示区域高度
|
|
389
276
|
* @uniPlatform {
|
|
390
277
|
* "app": {
|
|
391
278
|
* "android": {
|
|
@@ -411,28 +298,28 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
411
298
|
* "unixVer": "4.41"
|
|
412
299
|
* },
|
|
413
300
|
* "alipay": {
|
|
414
|
-
* "hostVer": "
|
|
415
|
-
* "uniVer": "
|
|
301
|
+
* "hostVer": "x",
|
|
302
|
+
* "uniVer": "x",
|
|
416
303
|
* "unixVer": "x"
|
|
417
304
|
* },
|
|
418
305
|
* "baidu": {
|
|
419
|
-
* "hostVer": "
|
|
420
|
-
* "uniVer": "
|
|
306
|
+
* "hostVer": "x",
|
|
307
|
+
* "uniVer": "x",
|
|
421
308
|
* "unixVer": "x"
|
|
422
309
|
* },
|
|
423
310
|
* "toutiao": {
|
|
424
|
-
* "hostVer": "
|
|
425
|
-
* "uniVer": "
|
|
311
|
+
* "hostVer": "x",
|
|
312
|
+
* "uniVer": "x",
|
|
426
313
|
* "unixVer": "x"
|
|
427
314
|
* },
|
|
428
315
|
* "lark": {
|
|
429
|
-
* "hostVer": "
|
|
430
|
-
* "uniVer": "
|
|
316
|
+
* "hostVer": "x",
|
|
317
|
+
* "uniVer": "x",
|
|
431
318
|
* "unixVer": "x"
|
|
432
319
|
* },
|
|
433
320
|
* "qq": {
|
|
434
|
-
* "hostVer": "
|
|
435
|
-
* "uniVer": "
|
|
321
|
+
* "hostVer": "x",
|
|
322
|
+
* "uniVer": "x",
|
|
436
323
|
* "unixVer": "x"
|
|
437
324
|
* },
|
|
438
325
|
* "kuaishou": {
|
|
@@ -441,8 +328,8 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
441
328
|
* "unixVer": "x"
|
|
442
329
|
* },
|
|
443
330
|
* "jd": {
|
|
444
|
-
* "hostVer": "
|
|
445
|
-
* "uniVer": "
|
|
331
|
+
* "hostVer": "x",
|
|
332
|
+
* "uniVer": "x",
|
|
446
333
|
* "unixVer": "x"
|
|
447
334
|
* }
|
|
448
335
|
* },
|
|
@@ -452,13 +339,9 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
452
339
|
* }
|
|
453
340
|
*}
|
|
454
341
|
*/
|
|
455
|
-
|
|
342
|
+
windowHeight: number
|
|
456
343
|
/**
|
|
457
|
-
*
|
|
458
|
-
*
|
|
459
|
-
* 页面隐藏/切入后台时触发。 如 `navigateTo` 或底部 `tab` 切换到其他页面,应用切入后台等。
|
|
460
|
-
*
|
|
461
|
-
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
344
|
+
* 新的显示区域宽度
|
|
462
345
|
* @uniPlatform {
|
|
463
346
|
* "app": {
|
|
464
347
|
* "android": {
|
|
@@ -484,28 +367,28 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
484
367
|
* "unixVer": "4.41"
|
|
485
368
|
* },
|
|
486
369
|
* "alipay": {
|
|
487
|
-
* "hostVer": "
|
|
488
|
-
* "uniVer": "
|
|
370
|
+
* "hostVer": "x",
|
|
371
|
+
* "uniVer": "x",
|
|
489
372
|
* "unixVer": "x"
|
|
490
373
|
* },
|
|
491
374
|
* "baidu": {
|
|
492
|
-
* "hostVer": "
|
|
493
|
-
* "uniVer": "
|
|
375
|
+
* "hostVer": "x",
|
|
376
|
+
* "uniVer": "x",
|
|
494
377
|
* "unixVer": "x"
|
|
495
378
|
* },
|
|
496
379
|
* "toutiao": {
|
|
497
|
-
* "hostVer": "
|
|
498
|
-
* "uniVer": "
|
|
380
|
+
* "hostVer": "x",
|
|
381
|
+
* "uniVer": "x",
|
|
499
382
|
* "unixVer": "x"
|
|
500
383
|
* },
|
|
501
384
|
* "lark": {
|
|
502
|
-
* "hostVer": "
|
|
503
|
-
* "uniVer": "
|
|
385
|
+
* "hostVer": "x",
|
|
386
|
+
* "uniVer": "x",
|
|
504
387
|
* "unixVer": "x"
|
|
505
388
|
* },
|
|
506
389
|
* "qq": {
|
|
507
|
-
* "hostVer": "
|
|
508
|
-
* "uniVer": "
|
|
390
|
+
* "hostVer": "x",
|
|
391
|
+
* "uniVer": "x",
|
|
509
392
|
* "unixVer": "x"
|
|
510
393
|
* },
|
|
511
394
|
* "kuaishou": {
|
|
@@ -514,8 +397,8 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
514
397
|
* "unixVer": "x"
|
|
515
398
|
* },
|
|
516
399
|
* "jd": {
|
|
517
|
-
* "hostVer": "
|
|
518
|
-
* "uniVer": "
|
|
400
|
+
* "hostVer": "x",
|
|
401
|
+
* "uniVer": "x",
|
|
519
402
|
* "unixVer": "x"
|
|
520
403
|
* }
|
|
521
404
|
* },
|
|
@@ -525,70 +408,185 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
525
408
|
* }
|
|
526
409
|
*}
|
|
527
410
|
*/
|
|
528
|
-
|
|
411
|
+
windowWidth: number
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
interface OnShareAppMessageOption {
|
|
529
415
|
/**
|
|
530
|
-
*
|
|
531
|
-
*
|
|
532
|
-
*
|
|
533
|
-
*
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
*
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
*
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
*
|
|
549
|
-
*
|
|
550
|
-
*
|
|
551
|
-
*
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
*
|
|
416
|
+
* 转发事件来源。
|
|
417
|
+
* 可选值:
|
|
418
|
+
* - `button`:页面内转发按钮;
|
|
419
|
+
* - `menu`:右上角转发菜单。
|
|
420
|
+
*/
|
|
421
|
+
from: "button" | "menu"
|
|
422
|
+
/**
|
|
423
|
+
* 如果 `from` 值是 `button`,则 `target` 是触发这次转发事件的 `button`,否则为 `undefined`
|
|
424
|
+
*/
|
|
425
|
+
target: any
|
|
426
|
+
/**
|
|
427
|
+
* 页面中包含 `<web-view>` 组件时,返回当前 `<web-view>` 的 url
|
|
428
|
+
*/
|
|
429
|
+
webViewUrl?: string
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
interface OnAddToFavoritesOption {
|
|
433
|
+
/**
|
|
434
|
+
* 转发事件来源。
|
|
435
|
+
* 可选值:
|
|
436
|
+
* - `button`:页面内转发按钮;
|
|
437
|
+
* - `menu`:右上角转发菜单。
|
|
438
|
+
*/
|
|
439
|
+
from: "button" | "menu"
|
|
440
|
+
/**
|
|
441
|
+
* 页面中包含 `<web-view>` 组件时,返回当前 `<web-view>` 的 url
|
|
442
|
+
*/
|
|
443
|
+
webviewUrl: string
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
interface CustomFavoritesContent {
|
|
447
|
+
/**
|
|
448
|
+
* 自定义标题,默认值:页面标题或账号名称
|
|
449
|
+
*/
|
|
450
|
+
title?: string
|
|
451
|
+
/**
|
|
452
|
+
* 自定义 query 字段
|
|
453
|
+
*/
|
|
454
|
+
path?: string
|
|
455
|
+
/**
|
|
456
|
+
* 自定义图片,显示图片长宽比为 1:1
|
|
457
|
+
*/
|
|
458
|
+
imageUrl?: string
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* 原生标题栏按钮点击回调参数
|
|
463
|
+
*
|
|
464
|
+
* @uniPlatform {
|
|
465
|
+
* "app": {
|
|
466
|
+
* "android": {
|
|
467
|
+
* "osVer": "5.0",
|
|
468
|
+
* "uniVer": "√",
|
|
469
|
+
* "unixVer": "x"
|
|
470
|
+
* },
|
|
471
|
+
* "ios": {
|
|
472
|
+
* "osVer": "10.0",
|
|
473
|
+
* "uniVer": "√",
|
|
474
|
+
* "unixVer": "x"
|
|
475
|
+
* },
|
|
476
|
+
* "harmony": {
|
|
477
|
+
* "osVer": "3.0",
|
|
478
|
+
* "uniVer": "4.23",
|
|
479
|
+
* "unixVer": "4.61"
|
|
480
|
+
* }
|
|
481
|
+
* },
|
|
482
|
+
* "mp": {
|
|
483
|
+
* "weixin": {
|
|
484
|
+
* "hostVer": "x",
|
|
485
|
+
* "uniVer": "x",
|
|
486
|
+
* "unixVer": "x"
|
|
487
|
+
* },
|
|
488
|
+
* "alipay": {
|
|
489
|
+
* "hostVer": "x",
|
|
490
|
+
* "uniVer": "x",
|
|
491
|
+
* "unixVer": "x"
|
|
492
|
+
* },
|
|
493
|
+
* "baidu": {
|
|
494
|
+
* "hostVer": "x",
|
|
495
|
+
* "uniVer": "x",
|
|
496
|
+
* "unixVer": "x"
|
|
497
|
+
* },
|
|
498
|
+
* "toutiao": {
|
|
499
|
+
* "hostVer": "x",
|
|
500
|
+
* "uniVer": "x",
|
|
501
|
+
* "unixVer": "x"
|
|
502
|
+
* },
|
|
503
|
+
* "lark": {
|
|
504
|
+
* "hostVer": "x",
|
|
505
|
+
* "uniVer": "x",
|
|
506
|
+
* "unixVer": "x"
|
|
507
|
+
* },
|
|
508
|
+
* "qq": {
|
|
509
|
+
* "hostVer": "x",
|
|
510
|
+
* "uniVer": "x",
|
|
511
|
+
* "unixVer": "x"
|
|
512
|
+
* },
|
|
513
|
+
* "kuaishou": {
|
|
514
|
+
* "hostVer": "x",
|
|
515
|
+
* "uniVer": "x",
|
|
516
|
+
* "unixVer": "x"
|
|
517
|
+
* },
|
|
518
|
+
* "jd": {
|
|
519
|
+
* "hostVer": "x",
|
|
520
|
+
* "uniVer": "x",
|
|
521
|
+
* "unixVer": "x"
|
|
522
|
+
* }
|
|
523
|
+
* },
|
|
524
|
+
* "web": {
|
|
525
|
+
* "uniVer": "√",
|
|
526
|
+
* "unixVer": "4.0"
|
|
527
|
+
* }
|
|
528
|
+
*}
|
|
529
|
+
*/
|
|
530
|
+
interface OnNavigationBarButtonTapOption {
|
|
531
|
+
/**
|
|
532
|
+
* 原生标题栏按钮数组的下标
|
|
533
|
+
* @uniPlatform {
|
|
534
|
+
* "app": {
|
|
535
|
+
* "android": {
|
|
536
|
+
* "osVer": "5.0",
|
|
556
537
|
* "uniVer": "√",
|
|
557
|
-
* "unixVer": "
|
|
538
|
+
* "unixVer": "x"
|
|
539
|
+
* },
|
|
540
|
+
* "ios": {
|
|
541
|
+
* "osVer": "10.0",
|
|
542
|
+
* "uniVer": "√",
|
|
543
|
+
* "unixVer": "x"
|
|
544
|
+
* },
|
|
545
|
+
* "harmony": {
|
|
546
|
+
* "osVer": "3.0",
|
|
547
|
+
* "uniVer": "4.23",
|
|
548
|
+
* "unixVer": "4.61"
|
|
549
|
+
* }
|
|
550
|
+
* },
|
|
551
|
+
* "mp": {
|
|
552
|
+
* "weixin": {
|
|
553
|
+
* "hostVer": "x",
|
|
554
|
+
* "uniVer": "x",
|
|
555
|
+
* "unixVer": "x"
|
|
558
556
|
* },
|
|
559
557
|
* "alipay": {
|
|
560
|
-
* "hostVer": "
|
|
561
|
-
* "uniVer": "
|
|
558
|
+
* "hostVer": "x",
|
|
559
|
+
* "uniVer": "x",
|
|
562
560
|
* "unixVer": "x"
|
|
563
561
|
* },
|
|
564
562
|
* "baidu": {
|
|
565
|
-
* "hostVer": "
|
|
566
|
-
* "uniVer": "
|
|
563
|
+
* "hostVer": "x",
|
|
564
|
+
* "uniVer": "x",
|
|
567
565
|
* "unixVer": "x"
|
|
568
566
|
* },
|
|
569
567
|
* "toutiao": {
|
|
570
|
-
* "hostVer": "
|
|
571
|
-
* "uniVer": "
|
|
568
|
+
* "hostVer": "x",
|
|
569
|
+
* "uniVer": "x",
|
|
572
570
|
* "unixVer": "x"
|
|
573
571
|
* },
|
|
574
572
|
* "lark": {
|
|
575
|
-
* "hostVer": "
|
|
576
|
-
* "uniVer": "
|
|
573
|
+
* "hostVer": "x",
|
|
574
|
+
* "uniVer": "x",
|
|
577
575
|
* "unixVer": "x"
|
|
578
576
|
* },
|
|
579
577
|
* "qq": {
|
|
580
|
-
* "hostVer": "
|
|
581
|
-
* "uniVer": "
|
|
578
|
+
* "hostVer": "x",
|
|
579
|
+
* "uniVer": "x",
|
|
582
580
|
* "unixVer": "x"
|
|
583
581
|
* },
|
|
584
582
|
* "kuaishou": {
|
|
585
|
-
* "hostVer": "
|
|
586
|
-
* "uniVer": "
|
|
583
|
+
* "hostVer": "x",
|
|
584
|
+
* "uniVer": "x",
|
|
587
585
|
* "unixVer": "x"
|
|
588
586
|
* },
|
|
589
587
|
* "jd": {
|
|
590
|
-
* "hostVer": "
|
|
591
|
-
* "uniVer": "
|
|
588
|
+
* "hostVer": "x",
|
|
589
|
+
* "uniVer": "x",
|
|
592
590
|
* "unixVer": "x"
|
|
593
591
|
* }
|
|
594
592
|
* },
|
|
@@ -598,25 +596,102 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
598
596
|
* }
|
|
599
597
|
*}
|
|
600
598
|
*/
|
|
601
|
-
|
|
599
|
+
index: number
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Construct a type with a set of properties K of type T
|
|
604
|
+
*/
|
|
605
|
+
type Record<K extends keyof any, T> = {
|
|
606
|
+
[P in K]: T
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
type NativeMap<K extends string, V> = Map<K, V> & Record<K, V>
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* 监听原生标题栏搜索输入框搜索回调参数
|
|
614
|
+
*
|
|
615
|
+
* @uniPlatform {
|
|
616
|
+
* "app": {
|
|
617
|
+
* "android": {
|
|
618
|
+
* "osVer": "5.0",
|
|
619
|
+
* "uniVer": "√",
|
|
620
|
+
* "unixVer": "x"
|
|
621
|
+
* },
|
|
622
|
+
* "ios": {
|
|
623
|
+
* "osVer": "10.0",
|
|
624
|
+
* "uniVer": "√",
|
|
625
|
+
* "unixVer": "x"
|
|
626
|
+
* },
|
|
627
|
+
* "harmony": {
|
|
628
|
+
* "osVer": "3.0",
|
|
629
|
+
* "uniVer": "4.23",
|
|
630
|
+
* "unixVer": "4.61"
|
|
631
|
+
* }
|
|
632
|
+
* },
|
|
633
|
+
* "mp": {
|
|
634
|
+
* "weixin": {
|
|
635
|
+
* "hostVer": "x",
|
|
636
|
+
* "uniVer": "x",
|
|
637
|
+
* "unixVer": "x"
|
|
638
|
+
* },
|
|
639
|
+
* "alipay": {
|
|
640
|
+
* "hostVer": "x",
|
|
641
|
+
* "uniVer": "x",
|
|
642
|
+
* "unixVer": "x"
|
|
643
|
+
* },
|
|
644
|
+
* "baidu": {
|
|
645
|
+
* "hostVer": "x",
|
|
646
|
+
* "uniVer": "x",
|
|
647
|
+
* "unixVer": "x"
|
|
648
|
+
* },
|
|
649
|
+
* "toutiao": {
|
|
650
|
+
* "hostVer": "x",
|
|
651
|
+
* "uniVer": "x",
|
|
652
|
+
* "unixVer": "x"
|
|
653
|
+
* },
|
|
654
|
+
* "lark": {
|
|
655
|
+
* "hostVer": "x",
|
|
656
|
+
* "uniVer": "x",
|
|
657
|
+
* "unixVer": "x"
|
|
658
|
+
* },
|
|
659
|
+
* "qq": {
|
|
660
|
+
* "hostVer": "x",
|
|
661
|
+
* "uniVer": "x",
|
|
662
|
+
* "unixVer": "x"
|
|
663
|
+
* },
|
|
664
|
+
* "kuaishou": {
|
|
665
|
+
* "hostVer": "x",
|
|
666
|
+
* "uniVer": "x",
|
|
667
|
+
* "unixVer": "x"
|
|
668
|
+
* },
|
|
669
|
+
* "jd": {
|
|
670
|
+
* "hostVer": "x",
|
|
671
|
+
* "uniVer": "x",
|
|
672
|
+
* "unixVer": "x"
|
|
673
|
+
* }
|
|
674
|
+
* },
|
|
675
|
+
* "web": {
|
|
676
|
+
* "uniVer": "√",
|
|
677
|
+
* "unixVer": "4.0"
|
|
678
|
+
* }
|
|
679
|
+
*}
|
|
680
|
+
*/
|
|
681
|
+
interface NavigationBarSearchInputEvent {
|
|
602
682
|
/**
|
|
603
|
-
*
|
|
604
|
-
* - 需要在 `pages.json` 的页面配置中开启 `enablePullDownRefresh` 。
|
|
605
|
-
* - 可以通过 `uni.startPullDownRefresh` 触发下拉刷新,调用后触发下拉刷新动画,效果与用户手动下拉刷新一致。
|
|
606
|
-
* - 当处理完数据刷新后,`uni.stopPullDownRefresh` 可以停止当前页面的下拉刷新。
|
|
607
|
-
*
|
|
608
|
-
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
683
|
+
* 搜索输入框输入内容
|
|
609
684
|
* @uniPlatform {
|
|
610
685
|
* "app": {
|
|
611
686
|
* "android": {
|
|
612
687
|
* "osVer": "5.0",
|
|
613
688
|
* "uniVer": "√",
|
|
614
|
-
* "unixVer": "
|
|
689
|
+
* "unixVer": "x"
|
|
615
690
|
* },
|
|
616
691
|
* "ios": {
|
|
617
692
|
* "osVer": "10.0",
|
|
618
693
|
* "uniVer": "√",
|
|
619
|
-
* "unixVer": "
|
|
694
|
+
* "unixVer": "x"
|
|
620
695
|
* },
|
|
621
696
|
* "harmony": {
|
|
622
697
|
* "osVer": "3.0",
|
|
@@ -626,43 +701,43 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
626
701
|
* },
|
|
627
702
|
* "mp": {
|
|
628
703
|
* "weixin": {
|
|
629
|
-
* "hostVer": "
|
|
630
|
-
* "uniVer": "
|
|
631
|
-
* "unixVer": "
|
|
704
|
+
* "hostVer": "x",
|
|
705
|
+
* "uniVer": "x",
|
|
706
|
+
* "unixVer": "x"
|
|
632
707
|
* },
|
|
633
708
|
* "alipay": {
|
|
634
|
-
* "hostVer": "
|
|
635
|
-
* "uniVer": "
|
|
709
|
+
* "hostVer": "x",
|
|
710
|
+
* "uniVer": "x",
|
|
636
711
|
* "unixVer": "x"
|
|
637
712
|
* },
|
|
638
713
|
* "baidu": {
|
|
639
|
-
* "hostVer": "
|
|
640
|
-
* "uniVer": "
|
|
714
|
+
* "hostVer": "x",
|
|
715
|
+
* "uniVer": "x",
|
|
641
716
|
* "unixVer": "x"
|
|
642
717
|
* },
|
|
643
718
|
* "toutiao": {
|
|
644
|
-
* "hostVer": "
|
|
645
|
-
* "uniVer": "
|
|
719
|
+
* "hostVer": "x",
|
|
720
|
+
* "uniVer": "x",
|
|
646
721
|
* "unixVer": "x"
|
|
647
722
|
* },
|
|
648
723
|
* "lark": {
|
|
649
|
-
* "hostVer": "
|
|
650
|
-
* "uniVer": "
|
|
724
|
+
* "hostVer": "x",
|
|
725
|
+
* "uniVer": "x",
|
|
651
726
|
* "unixVer": "x"
|
|
652
727
|
* },
|
|
653
728
|
* "qq": {
|
|
654
|
-
* "hostVer": "
|
|
655
|
-
* "uniVer": "
|
|
729
|
+
* "hostVer": "x",
|
|
730
|
+
* "uniVer": "x",
|
|
656
731
|
* "unixVer": "x"
|
|
657
732
|
* },
|
|
658
733
|
* "kuaishou": {
|
|
659
|
-
* "hostVer": "
|
|
660
|
-
* "uniVer": "
|
|
734
|
+
* "hostVer": "x",
|
|
735
|
+
* "uniVer": "x",
|
|
661
736
|
* "unixVer": "x"
|
|
662
737
|
* },
|
|
663
738
|
* "jd": {
|
|
664
|
-
* "hostVer": "
|
|
665
|
-
* "uniVer": "
|
|
739
|
+
* "hostVer": "x",
|
|
740
|
+
* "uniVer": "x",
|
|
666
741
|
* "unixVer": "x"
|
|
667
742
|
* }
|
|
668
743
|
* },
|
|
@@ -672,11 +747,26 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
672
747
|
* }
|
|
673
748
|
*}
|
|
674
749
|
*/
|
|
675
|
-
|
|
750
|
+
text: string
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
interface PageInstanceBaseProps<D extends AnyObject = any> {
|
|
676
754
|
/**
|
|
677
|
-
*
|
|
678
|
-
|
|
679
|
-
|
|
755
|
+
* 到当前页面的路径,类型为 `String`
|
|
756
|
+
*/
|
|
757
|
+
route?: string
|
|
758
|
+
/**
|
|
759
|
+
* 当前页面的 Vue 实例
|
|
760
|
+
*/
|
|
761
|
+
$vm?: any
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> extends PageInstanceBaseProps<D> {
|
|
765
|
+
/**
|
|
766
|
+
* 生命周期回调 监听页面加载
|
|
767
|
+
*
|
|
768
|
+
* 页面加载时触发。一个页面只会调用一次,可以在 onLoad 的参数中获取打开当前页面路径中的参数。
|
|
769
|
+
* @param query 打开当前页面路径中的参数
|
|
680
770
|
*
|
|
681
771
|
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
682
772
|
* @uniPlatform {
|
|
@@ -745,12 +835,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
745
835
|
* }
|
|
746
836
|
*}
|
|
747
837
|
*/
|
|
748
|
-
|
|
838
|
+
onLoad?(query: OnLoadOptions): void
|
|
749
839
|
/**
|
|
750
|
-
*
|
|
840
|
+
* 生命周期回调 监听页面显示
|
|
751
841
|
*
|
|
752
|
-
*
|
|
753
|
-
* @param options 页面滚动参数
|
|
842
|
+
* 页面显示/切入前台时触发。
|
|
754
843
|
*
|
|
755
844
|
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
756
845
|
* @uniPlatform {
|
|
@@ -763,7 +852,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
763
852
|
* "ios": {
|
|
764
853
|
* "osVer": "10.0",
|
|
765
854
|
* "uniVer": "√",
|
|
766
|
-
* "unixVer": "4.
|
|
855
|
+
* "unixVer": "4.11"
|
|
767
856
|
* },
|
|
768
857
|
* "harmony": {
|
|
769
858
|
* "osVer": "3.0",
|
|
@@ -819,10 +908,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
819
908
|
* }
|
|
820
909
|
*}
|
|
821
910
|
*/
|
|
822
|
-
|
|
911
|
+
onShow?(): void
|
|
823
912
|
/**
|
|
824
|
-
*
|
|
825
|
-
*
|
|
913
|
+
* 生命周期回调 监听页面初次渲染完成
|
|
914
|
+
*
|
|
915
|
+
* 页面初次渲染完成时触发。一个页面只会调用一次,代表页面已经准备妥当,可以和视图层进行交互。
|
|
826
916
|
*
|
|
827
917
|
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
828
918
|
* @uniPlatform {
|
|
@@ -850,28 +940,28 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
850
940
|
* "unixVer": "4.41"
|
|
851
941
|
* },
|
|
852
942
|
* "alipay": {
|
|
853
|
-
* "hostVer": "
|
|
854
|
-
* "uniVer": "
|
|
943
|
+
* "hostVer": "√",
|
|
944
|
+
* "uniVer": "√",
|
|
855
945
|
* "unixVer": "x"
|
|
856
946
|
* },
|
|
857
947
|
* "baidu": {
|
|
858
|
-
* "hostVer": "
|
|
859
|
-
* "uniVer": "
|
|
948
|
+
* "hostVer": "√",
|
|
949
|
+
* "uniVer": "√",
|
|
860
950
|
* "unixVer": "x"
|
|
861
951
|
* },
|
|
862
952
|
* "toutiao": {
|
|
863
|
-
* "hostVer": "
|
|
864
|
-
* "uniVer": "
|
|
953
|
+
* "hostVer": "√",
|
|
954
|
+
* "uniVer": "√",
|
|
865
955
|
* "unixVer": "x"
|
|
866
956
|
* },
|
|
867
957
|
* "lark": {
|
|
868
|
-
* "hostVer": "
|
|
869
|
-
* "uniVer": "
|
|
958
|
+
* "hostVer": "√",
|
|
959
|
+
* "uniVer": "√",
|
|
870
960
|
* "unixVer": "x"
|
|
871
961
|
* },
|
|
872
962
|
* "qq": {
|
|
873
|
-
* "hostVer": "
|
|
874
|
-
* "uniVer": "
|
|
963
|
+
* "hostVer": "√",
|
|
964
|
+
* "uniVer": "√",
|
|
875
965
|
* "unixVer": "x"
|
|
876
966
|
* },
|
|
877
967
|
* "kuaishou": {
|
|
@@ -880,8 +970,8 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
880
970
|
* "unixVer": "x"
|
|
881
971
|
* },
|
|
882
972
|
* "jd": {
|
|
883
|
-
* "hostVer": "
|
|
884
|
-
* "uniVer": "
|
|
973
|
+
* "hostVer": "√",
|
|
974
|
+
* "uniVer": "√",
|
|
885
975
|
* "unixVer": "x"
|
|
886
976
|
* }
|
|
887
977
|
* },
|
|
@@ -891,11 +981,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
891
981
|
* }
|
|
892
982
|
*}
|
|
893
983
|
*/
|
|
894
|
-
|
|
984
|
+
onReady?(): void
|
|
895
985
|
/**
|
|
896
|
-
*
|
|
897
|
-
*
|
|
898
|
-
*
|
|
986
|
+
* 生命周期回调 监听页面隐藏
|
|
987
|
+
*
|
|
988
|
+
* 页面隐藏/切入后台时触发。 如 `navigateTo` 或底部 `tab` 切换到其他页面,应用切入后台等。
|
|
899
989
|
*
|
|
900
990
|
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
901
991
|
* @uniPlatform {
|
|
@@ -918,8 +1008,8 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
918
1008
|
* },
|
|
919
1009
|
* "mp": {
|
|
920
1010
|
* "weixin": {
|
|
921
|
-
* "hostVer": "
|
|
922
|
-
* "uniVer": "
|
|
1011
|
+
* "hostVer": "√",
|
|
1012
|
+
* "uniVer": "√",
|
|
923
1013
|
* "unixVer": "4.41"
|
|
924
1014
|
* },
|
|
925
1015
|
* "alipay": {
|
|
@@ -928,33 +1018,33 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
928
1018
|
* "unixVer": "x"
|
|
929
1019
|
* },
|
|
930
1020
|
* "baidu": {
|
|
931
|
-
* "hostVer": "
|
|
932
|
-
* "uniVer": "
|
|
1021
|
+
* "hostVer": "√",
|
|
1022
|
+
* "uniVer": "√",
|
|
933
1023
|
* "unixVer": "x"
|
|
934
1024
|
* },
|
|
935
1025
|
* "toutiao": {
|
|
936
|
-
* "hostVer": "
|
|
937
|
-
* "uniVer": "
|
|
1026
|
+
* "hostVer": "√",
|
|
1027
|
+
* "uniVer": "√",
|
|
938
1028
|
* "unixVer": "x"
|
|
939
1029
|
* },
|
|
940
1030
|
* "lark": {
|
|
941
|
-
* "hostVer": "
|
|
942
|
-
* "uniVer": "
|
|
1031
|
+
* "hostVer": "√",
|
|
1032
|
+
* "uniVer": "√",
|
|
943
1033
|
* "unixVer": "x"
|
|
944
1034
|
* },
|
|
945
1035
|
* "qq": {
|
|
946
|
-
* "hostVer": "
|
|
947
|
-
* "uniVer": "
|
|
1036
|
+
* "hostVer": "√",
|
|
1037
|
+
* "uniVer": "√",
|
|
948
1038
|
* "unixVer": "x"
|
|
949
1039
|
* },
|
|
950
1040
|
* "kuaishou": {
|
|
951
|
-
* "hostVer": "
|
|
952
|
-
* "uniVer": "
|
|
1041
|
+
* "hostVer": "√",
|
|
1042
|
+
* "uniVer": "√",
|
|
953
1043
|
* "unixVer": "x"
|
|
954
1044
|
* },
|
|
955
1045
|
* "jd": {
|
|
956
|
-
* "hostVer": "
|
|
957
|
-
* "uniVer": "
|
|
1046
|
+
* "hostVer": "√",
|
|
1047
|
+
* "uniVer": "√",
|
|
958
1048
|
* "unixVer": "x"
|
|
959
1049
|
* }
|
|
960
1050
|
* },
|
|
@@ -964,25 +1054,24 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
964
1054
|
* }
|
|
965
1055
|
*}
|
|
966
1056
|
*/
|
|
967
|
-
|
|
1057
|
+
onHide?(): void
|
|
968
1058
|
/**
|
|
969
|
-
* 生命周期回调
|
|
1059
|
+
* 生命周期回调 监听页面卸载
|
|
970
1060
|
*
|
|
971
|
-
*
|
|
972
|
-
* @param query 打开当前页面路径中的参数
|
|
1061
|
+
* 页面卸载时触发。如 `redirectTo` 或 `navigateBack` 到其他页面时。
|
|
973
1062
|
*
|
|
974
1063
|
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
975
1064
|
* @uniPlatform {
|
|
976
1065
|
* "app": {
|
|
977
1066
|
* "android": {
|
|
978
|
-
* "osVer": "
|
|
979
|
-
* "uniVer": "
|
|
980
|
-
* "unixVer": "
|
|
1067
|
+
* "osVer": "5.0",
|
|
1068
|
+
* "uniVer": "√",
|
|
1069
|
+
* "unixVer": "3.9"
|
|
981
1070
|
* },
|
|
982
1071
|
* "ios": {
|
|
983
|
-
* "osVer": "
|
|
984
|
-
* "uniVer": "
|
|
985
|
-
* "unixVer": "
|
|
1072
|
+
* "osVer": "10.0",
|
|
1073
|
+
* "uniVer": "√",
|
|
1074
|
+
* "unixVer": "4.11"
|
|
986
1075
|
* },
|
|
987
1076
|
* "harmony": {
|
|
988
1077
|
* "osVer": "3.0",
|
|
@@ -992,72 +1081,71 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
992
1081
|
* },
|
|
993
1082
|
* "mp": {
|
|
994
1083
|
* "weixin": {
|
|
995
|
-
* "hostVer": "
|
|
996
|
-
* "uniVer": "
|
|
997
|
-
* "unixVer": "
|
|
1084
|
+
* "hostVer": "√",
|
|
1085
|
+
* "uniVer": "√",
|
|
1086
|
+
* "unixVer": "4.41"
|
|
998
1087
|
* },
|
|
999
1088
|
* "alipay": {
|
|
1000
|
-
* "hostVer": "
|
|
1001
|
-
* "uniVer": "
|
|
1089
|
+
* "hostVer": "√",
|
|
1090
|
+
* "uniVer": "√",
|
|
1002
1091
|
* "unixVer": "x"
|
|
1003
1092
|
* },
|
|
1004
1093
|
* "baidu": {
|
|
1005
|
-
* "hostVer": "
|
|
1006
|
-
* "uniVer": "
|
|
1094
|
+
* "hostVer": "√",
|
|
1095
|
+
* "uniVer": "√",
|
|
1007
1096
|
* "unixVer": "x"
|
|
1008
1097
|
* },
|
|
1009
1098
|
* "toutiao": {
|
|
1010
|
-
* "hostVer": "
|
|
1011
|
-
* "uniVer": "
|
|
1099
|
+
* "hostVer": "√",
|
|
1100
|
+
* "uniVer": "√",
|
|
1012
1101
|
* "unixVer": "x"
|
|
1013
1102
|
* },
|
|
1014
1103
|
* "lark": {
|
|
1015
|
-
* "hostVer": "
|
|
1016
|
-
* "uniVer": "
|
|
1104
|
+
* "hostVer": "√",
|
|
1105
|
+
* "uniVer": "√",
|
|
1017
1106
|
* "unixVer": "x"
|
|
1018
1107
|
* },
|
|
1019
1108
|
* "qq": {
|
|
1020
|
-
* "hostVer": "
|
|
1021
|
-
* "uniVer": "
|
|
1109
|
+
* "hostVer": "√",
|
|
1110
|
+
* "uniVer": "√",
|
|
1022
1111
|
* "unixVer": "x"
|
|
1023
1112
|
* },
|
|
1024
1113
|
* "kuaishou": {
|
|
1025
|
-
* "hostVer": "
|
|
1026
|
-
* "uniVer": "
|
|
1114
|
+
* "hostVer": "√",
|
|
1115
|
+
* "uniVer": "√",
|
|
1027
1116
|
* "unixVer": "x"
|
|
1028
1117
|
* },
|
|
1029
1118
|
* "jd": {
|
|
1030
|
-
* "hostVer": "
|
|
1031
|
-
* "uniVer": "
|
|
1119
|
+
* "hostVer": "√",
|
|
1120
|
+
* "uniVer": "√",
|
|
1032
1121
|
* "unixVer": "x"
|
|
1033
1122
|
* }
|
|
1034
1123
|
* },
|
|
1035
1124
|
* "web": {
|
|
1036
|
-
* "uniVer": "
|
|
1037
|
-
* "unixVer": "
|
|
1125
|
+
* "uniVer": "√",
|
|
1126
|
+
* "unixVer": "4.0"
|
|
1038
1127
|
* }
|
|
1039
1128
|
*}
|
|
1040
1129
|
*/
|
|
1041
|
-
|
|
1130
|
+
onUnload?(): void
|
|
1042
1131
|
/**
|
|
1043
|
-
*
|
|
1044
|
-
*
|
|
1045
|
-
*
|
|
1046
|
-
*
|
|
1047
|
-
* @return 转发内容
|
|
1132
|
+
* 监听用户下拉动作
|
|
1133
|
+
* - 需要在 `pages.json` 的页面配置中开启 `enablePullDownRefresh` 。
|
|
1134
|
+
* - 可以通过 `uni.startPullDownRefresh` 触发下拉刷新,调用后触发下拉刷新动画,效果与用户手动下拉刷新一致。
|
|
1135
|
+
* - 当处理完数据刷新后,`uni.stopPullDownRefresh` 可以停止当前页面的下拉刷新。
|
|
1048
1136
|
*
|
|
1049
1137
|
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1050
1138
|
* @uniPlatform {
|
|
1051
1139
|
* "app": {
|
|
1052
1140
|
* "android": {
|
|
1053
|
-
* "osVer": "
|
|
1054
|
-
* "uniVer": "
|
|
1055
|
-
* "unixVer": "
|
|
1141
|
+
* "osVer": "5.0",
|
|
1142
|
+
* "uniVer": "√",
|
|
1143
|
+
* "unixVer": "3.9"
|
|
1056
1144
|
* },
|
|
1057
1145
|
* "ios": {
|
|
1058
|
-
* "osVer": "
|
|
1059
|
-
* "uniVer": "
|
|
1060
|
-
* "unixVer": "
|
|
1146
|
+
* "osVer": "10.0",
|
|
1147
|
+
* "uniVer": "√",
|
|
1148
|
+
* "unixVer": "4.11"
|
|
1061
1149
|
* },
|
|
1062
1150
|
* "harmony": {
|
|
1063
1151
|
* "osVer": "3.0",
|
|
@@ -1077,8 +1165,8 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1077
1165
|
* "unixVer": "x"
|
|
1078
1166
|
* },
|
|
1079
1167
|
* "baidu": {
|
|
1080
|
-
* "hostVer": "
|
|
1081
|
-
* "uniVer": "
|
|
1168
|
+
* "hostVer": "√",
|
|
1169
|
+
* "uniVer": "√",
|
|
1082
1170
|
* "unixVer": "x"
|
|
1083
1171
|
* },
|
|
1084
1172
|
* "toutiao": {
|
|
@@ -1108,29 +1196,29 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1108
1196
|
* }
|
|
1109
1197
|
* },
|
|
1110
1198
|
* "web": {
|
|
1111
|
-
* "uniVer": "
|
|
1112
|
-
* "unixVer": "
|
|
1199
|
+
* "uniVer": "√",
|
|
1200
|
+
* "unixVer": "4.0"
|
|
1113
1201
|
* }
|
|
1114
1202
|
*}
|
|
1115
1203
|
*/
|
|
1116
|
-
|
|
1204
|
+
onPullDownRefresh?(): void
|
|
1117
1205
|
/**
|
|
1118
|
-
*
|
|
1119
|
-
*
|
|
1120
|
-
*
|
|
1206
|
+
* 页面上拉触底事件的处理函数
|
|
1207
|
+
* - 可以在 `pages.json` 的页面配置中设置触发距离 `onReachBottomDistance` 。
|
|
1208
|
+
* - 在触发距离内滑动期间,本事件只会被触发一次。
|
|
1121
1209
|
*
|
|
1122
1210
|
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1123
1211
|
* @uniPlatform {
|
|
1124
1212
|
* "app": {
|
|
1125
1213
|
* "android": {
|
|
1126
|
-
* "osVer": "
|
|
1127
|
-
* "uniVer": "
|
|
1128
|
-
* "unixVer": "
|
|
1214
|
+
* "osVer": "5.0",
|
|
1215
|
+
* "uniVer": "√",
|
|
1216
|
+
* "unixVer": "3.9"
|
|
1129
1217
|
* },
|
|
1130
1218
|
* "ios": {
|
|
1131
|
-
* "osVer": "
|
|
1132
|
-
* "uniVer": "
|
|
1133
|
-
* "unixVer": "
|
|
1219
|
+
* "osVer": "10.0",
|
|
1220
|
+
* "uniVer": "√",
|
|
1221
|
+
* "unixVer": "4.11"
|
|
1134
1222
|
* },
|
|
1135
1223
|
* "harmony": {
|
|
1136
1224
|
* "osVer": "3.0",
|
|
@@ -1141,69 +1229,70 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1141
1229
|
* "mp": {
|
|
1142
1230
|
* "weixin": {
|
|
1143
1231
|
* "hostVer": "√",
|
|
1144
|
-
* "uniVer": "
|
|
1232
|
+
* "uniVer": "√",
|
|
1145
1233
|
* "unixVer": "4.41"
|
|
1146
1234
|
* },
|
|
1147
1235
|
* "alipay": {
|
|
1148
|
-
* "hostVer": "
|
|
1149
|
-
* "uniVer": "
|
|
1236
|
+
* "hostVer": "√",
|
|
1237
|
+
* "uniVer": "√",
|
|
1150
1238
|
* "unixVer": "x"
|
|
1151
1239
|
* },
|
|
1152
1240
|
* "baidu": {
|
|
1153
|
-
* "hostVer": "
|
|
1154
|
-
* "uniVer": "
|
|
1241
|
+
* "hostVer": "√",
|
|
1242
|
+
* "uniVer": "√",
|
|
1155
1243
|
* "unixVer": "x"
|
|
1156
1244
|
* },
|
|
1157
1245
|
* "toutiao": {
|
|
1158
|
-
* "hostVer": "
|
|
1159
|
-
* "uniVer": "
|
|
1246
|
+
* "hostVer": "√",
|
|
1247
|
+
* "uniVer": "√",
|
|
1160
1248
|
* "unixVer": "x"
|
|
1161
1249
|
* },
|
|
1162
1250
|
* "lark": {
|
|
1163
|
-
* "hostVer": "
|
|
1164
|
-
* "uniVer": "
|
|
1251
|
+
* "hostVer": "√",
|
|
1252
|
+
* "uniVer": "√",
|
|
1165
1253
|
* "unixVer": "x"
|
|
1166
1254
|
* },
|
|
1167
1255
|
* "qq": {
|
|
1168
|
-
* "hostVer": "
|
|
1169
|
-
* "uniVer": "
|
|
1256
|
+
* "hostVer": "√",
|
|
1257
|
+
* "uniVer": "√",
|
|
1170
1258
|
* "unixVer": "x"
|
|
1171
1259
|
* },
|
|
1172
1260
|
* "kuaishou": {
|
|
1173
|
-
* "hostVer": "
|
|
1174
|
-
* "uniVer": "
|
|
1261
|
+
* "hostVer": "√",
|
|
1262
|
+
* "uniVer": "√",
|
|
1175
1263
|
* "unixVer": "x"
|
|
1176
1264
|
* },
|
|
1177
1265
|
* "jd": {
|
|
1178
|
-
* "hostVer": "
|
|
1179
|
-
* "uniVer": "
|
|
1266
|
+
* "hostVer": "√",
|
|
1267
|
+
* "uniVer": "√",
|
|
1180
1268
|
* "unixVer": "x"
|
|
1181
1269
|
* }
|
|
1182
1270
|
* },
|
|
1183
1271
|
* "web": {
|
|
1184
|
-
* "uniVer": "
|
|
1185
|
-
* "unixVer": "
|
|
1272
|
+
* "uniVer": "√",
|
|
1273
|
+
* "unixVer": "4.0"
|
|
1186
1274
|
* }
|
|
1187
1275
|
*}
|
|
1188
1276
|
*/
|
|
1189
|
-
|
|
1277
|
+
onReachBottom?(): void
|
|
1190
1278
|
/**
|
|
1191
|
-
*
|
|
1279
|
+
* 页面滚动触发事件的处理函数
|
|
1192
1280
|
*
|
|
1193
|
-
*
|
|
1281
|
+
* 监听用户滑动页面事件。
|
|
1282
|
+
* @param options 页面滚动参数
|
|
1194
1283
|
*
|
|
1195
1284
|
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1196
1285
|
* @uniPlatform {
|
|
1197
1286
|
* "app": {
|
|
1198
1287
|
* "android": {
|
|
1199
|
-
* "osVer": "
|
|
1200
|
-
* "uniVer": "
|
|
1201
|
-
* "unixVer": "
|
|
1288
|
+
* "osVer": "5.0",
|
|
1289
|
+
* "uniVer": "√",
|
|
1290
|
+
* "unixVer": "3.9"
|
|
1202
1291
|
* },
|
|
1203
1292
|
* "ios": {
|
|
1204
|
-
* "osVer": "
|
|
1205
|
-
* "uniVer": "
|
|
1206
|
-
* "unixVer": "
|
|
1293
|
+
* "osVer": "10.0",
|
|
1294
|
+
* "uniVer": "√",
|
|
1295
|
+
* "unixVer": "4.13"
|
|
1207
1296
|
* },
|
|
1208
1297
|
* "harmony": {
|
|
1209
1298
|
* "osVer": "3.0",
|
|
@@ -1214,55 +1303,55 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1214
1303
|
* "mp": {
|
|
1215
1304
|
* "weixin": {
|
|
1216
1305
|
* "hostVer": "√",
|
|
1217
|
-
* "uniVer": "
|
|
1306
|
+
* "uniVer": "√",
|
|
1218
1307
|
* "unixVer": "4.41"
|
|
1219
1308
|
* },
|
|
1220
1309
|
* "alipay": {
|
|
1221
|
-
* "hostVer": "
|
|
1222
|
-
* "uniVer": "
|
|
1310
|
+
* "hostVer": "√",
|
|
1311
|
+
* "uniVer": "√",
|
|
1223
1312
|
* "unixVer": "x"
|
|
1224
1313
|
* },
|
|
1225
1314
|
* "baidu": {
|
|
1226
|
-
* "hostVer": "
|
|
1227
|
-
* "uniVer": "
|
|
1315
|
+
* "hostVer": "√",
|
|
1316
|
+
* "uniVer": "√",
|
|
1228
1317
|
* "unixVer": "x"
|
|
1229
1318
|
* },
|
|
1230
1319
|
* "toutiao": {
|
|
1231
|
-
* "hostVer": "
|
|
1232
|
-
* "uniVer": "
|
|
1320
|
+
* "hostVer": "√",
|
|
1321
|
+
* "uniVer": "√",
|
|
1233
1322
|
* "unixVer": "x"
|
|
1234
1323
|
* },
|
|
1235
1324
|
* "lark": {
|
|
1236
|
-
* "hostVer": "
|
|
1237
|
-
* "uniVer": "
|
|
1325
|
+
* "hostVer": "√",
|
|
1326
|
+
* "uniVer": "√",
|
|
1238
1327
|
* "unixVer": "x"
|
|
1239
1328
|
* },
|
|
1240
1329
|
* "qq": {
|
|
1241
1330
|
* "hostVer": "√",
|
|
1242
|
-
* "uniVer": "
|
|
1331
|
+
* "uniVer": "√",
|
|
1243
1332
|
* "unixVer": "x"
|
|
1244
1333
|
* },
|
|
1245
1334
|
* "kuaishou": {
|
|
1246
|
-
* "hostVer": "
|
|
1247
|
-
* "uniVer": "
|
|
1335
|
+
* "hostVer": "√",
|
|
1336
|
+
* "uniVer": "√",
|
|
1248
1337
|
* "unixVer": "x"
|
|
1249
1338
|
* },
|
|
1250
1339
|
* "jd": {
|
|
1251
|
-
* "hostVer": "
|
|
1252
|
-
* "uniVer": "
|
|
1340
|
+
* "hostVer": "√",
|
|
1341
|
+
* "uniVer": "√",
|
|
1253
1342
|
* "unixVer": "x"
|
|
1254
1343
|
* }
|
|
1255
1344
|
* },
|
|
1256
1345
|
* "web": {
|
|
1257
|
-
* "uniVer": "
|
|
1258
|
-
* "unixVer": "
|
|
1346
|
+
* "uniVer": "√",
|
|
1347
|
+
* "unixVer": "4.0"
|
|
1259
1348
|
* }
|
|
1260
1349
|
*}
|
|
1261
1350
|
*/
|
|
1262
|
-
|
|
1351
|
+
onPageScroll?(options: OnPageScrollOptions): void
|
|
1263
1352
|
/**
|
|
1264
|
-
*
|
|
1265
|
-
* @param options
|
|
1353
|
+
* 页面尺寸改变时触发
|
|
1354
|
+
* @param options 页面尺寸改变时回调参数
|
|
1266
1355
|
*
|
|
1267
1356
|
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1268
1357
|
* @uniPlatform {
|
|
@@ -1270,12 +1359,12 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1270
1359
|
* "android": {
|
|
1271
1360
|
* "osVer": "5.0",
|
|
1272
1361
|
* "uniVer": "√",
|
|
1273
|
-
* "unixVer": "
|
|
1362
|
+
* "unixVer": "3.9"
|
|
1274
1363
|
* },
|
|
1275
1364
|
* "ios": {
|
|
1276
1365
|
* "osVer": "10.0",
|
|
1277
1366
|
* "uniVer": "√",
|
|
1278
|
-
* "unixVer": "
|
|
1367
|
+
* "unixVer": "4.11"
|
|
1279
1368
|
* },
|
|
1280
1369
|
* "harmony": {
|
|
1281
1370
|
* "osVer": "3.0",
|
|
@@ -1290,13 +1379,13 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1290
1379
|
* "unixVer": "4.41"
|
|
1291
1380
|
* },
|
|
1292
1381
|
* "alipay": {
|
|
1293
|
-
* "hostVer": "
|
|
1294
|
-
* "uniVer": "
|
|
1382
|
+
* "hostVer": "x",
|
|
1383
|
+
* "uniVer": "x",
|
|
1295
1384
|
* "unixVer": "x"
|
|
1296
1385
|
* },
|
|
1297
1386
|
* "baidu": {
|
|
1298
|
-
* "hostVer": "
|
|
1299
|
-
* "uniVer": "
|
|
1387
|
+
* "hostVer": "x",
|
|
1388
|
+
* "uniVer": "x",
|
|
1300
1389
|
* "unixVer": "x"
|
|
1301
1390
|
* },
|
|
1302
1391
|
* "toutiao": {
|
|
@@ -1310,8 +1399,8 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1310
1399
|
* "unixVer": "x"
|
|
1311
1400
|
* },
|
|
1312
1401
|
* "qq": {
|
|
1313
|
-
* "hostVer": "
|
|
1314
|
-
* "uniVer": "
|
|
1402
|
+
* "hostVer": "x",
|
|
1403
|
+
* "uniVer": "x",
|
|
1315
1404
|
* "unixVer": "x"
|
|
1316
1405
|
* },
|
|
1317
1406
|
* "kuaishou": {
|
|
@@ -1320,8 +1409,8 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1320
1409
|
* "unixVer": "x"
|
|
1321
1410
|
* },
|
|
1322
1411
|
* "jd": {
|
|
1323
|
-
* "hostVer": "
|
|
1324
|
-
* "uniVer": "
|
|
1412
|
+
* "hostVer": "x",
|
|
1413
|
+
* "uniVer": "x",
|
|
1325
1414
|
* "unixVer": "x"
|
|
1326
1415
|
* }
|
|
1327
1416
|
* },
|
|
@@ -1331,10 +1420,11 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1331
1420
|
* }
|
|
1332
1421
|
*}
|
|
1333
1422
|
*/
|
|
1334
|
-
|
|
1423
|
+
onResize?(options: OnResizeOptions): void
|
|
1335
1424
|
/**
|
|
1336
|
-
*
|
|
1425
|
+
* 监听页面返回
|
|
1337
1426
|
* @param options tab 点击参数
|
|
1427
|
+
* @return 返回 `true` 时阻止页面返回
|
|
1338
1428
|
*
|
|
1339
1429
|
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1340
1430
|
* @uniPlatform {
|
|
@@ -1342,12 +1432,12 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1342
1432
|
* "android": {
|
|
1343
1433
|
* "osVer": "5.0",
|
|
1344
1434
|
* "uniVer": "√",
|
|
1345
|
-
* "unixVer": "
|
|
1435
|
+
* "unixVer": "3.9"
|
|
1346
1436
|
* },
|
|
1347
1437
|
* "ios": {
|
|
1348
1438
|
* "osVer": "10.0",
|
|
1349
1439
|
* "uniVer": "√",
|
|
1350
|
-
* "unixVer": "
|
|
1440
|
+
* "unixVer": "4.11"
|
|
1351
1441
|
* },
|
|
1352
1442
|
* "harmony": {
|
|
1353
1443
|
* "osVer": "3.0",
|
|
@@ -1362,8 +1452,8 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1362
1452
|
* "unixVer": "x"
|
|
1363
1453
|
* },
|
|
1364
1454
|
* "alipay": {
|
|
1365
|
-
* "hostVer": "
|
|
1366
|
-
* "uniVer": "
|
|
1455
|
+
* "hostVer": "√",
|
|
1456
|
+
* "uniVer": "√",
|
|
1367
1457
|
* "unixVer": "x"
|
|
1368
1458
|
* },
|
|
1369
1459
|
* "baidu": {
|
|
@@ -1403,21 +1493,24 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1403
1493
|
* }
|
|
1404
1494
|
*}
|
|
1405
1495
|
*/
|
|
1406
|
-
|
|
1496
|
+
onBackPress?(options: OnBackPressOptions): boolean | null
|
|
1407
1497
|
/**
|
|
1408
|
-
*
|
|
1498
|
+
* 生命周期回调 监听页面初始化
|
|
1499
|
+
*
|
|
1500
|
+
* 页面初始化时触发。一个页面只会调用一次,可以在 onInit 的参数中获取打开当前页面路径中的参数。
|
|
1501
|
+
* @param query 打开当前页面路径中的参数
|
|
1409
1502
|
*
|
|
1410
1503
|
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1411
1504
|
* @uniPlatform {
|
|
1412
1505
|
* "app": {
|
|
1413
1506
|
* "android": {
|
|
1414
|
-
* "osVer": "
|
|
1415
|
-
* "uniVer": "
|
|
1507
|
+
* "osVer": "x",
|
|
1508
|
+
* "uniVer": "x",
|
|
1416
1509
|
* "unixVer": "x"
|
|
1417
1510
|
* },
|
|
1418
1511
|
* "ios": {
|
|
1419
|
-
* "osVer": "
|
|
1420
|
-
* "uniVer": "
|
|
1512
|
+
* "osVer": "x",
|
|
1513
|
+
* "uniVer": "x",
|
|
1421
1514
|
* "unixVer": "x"
|
|
1422
1515
|
* },
|
|
1423
1516
|
* "harmony": {
|
|
@@ -1438,8 +1531,8 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1438
1531
|
* "unixVer": "x"
|
|
1439
1532
|
* },
|
|
1440
1533
|
* "baidu": {
|
|
1441
|
-
* "hostVer": "
|
|
1442
|
-
* "uniVer": "
|
|
1534
|
+
* "hostVer": ">=3.160.12",
|
|
1535
|
+
* "uniVer": ">=3.1.0",
|
|
1443
1536
|
* "unixVer": "x"
|
|
1444
1537
|
* },
|
|
1445
1538
|
* "toutiao": {
|
|
@@ -1469,26 +1562,30 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1469
1562
|
* }
|
|
1470
1563
|
* },
|
|
1471
1564
|
* "web": {
|
|
1472
|
-
* "uniVer": "
|
|
1473
|
-
* "unixVer": "
|
|
1565
|
+
* "uniVer": "x",
|
|
1566
|
+
* "unixVer": "x"
|
|
1474
1567
|
* }
|
|
1475
1568
|
*}
|
|
1476
1569
|
*/
|
|
1477
|
-
|
|
1570
|
+
onInit?(query?: AnyObject): void
|
|
1478
1571
|
/**
|
|
1479
|
-
*
|
|
1572
|
+
* 用户点击右上角转发
|
|
1573
|
+
*
|
|
1574
|
+
* 监听用户点击页面内转发按钮(`<button>` 组件 `open-type="share"`)或右上角菜单“转发”按钮的行为,并自定义转发内容。
|
|
1575
|
+
* @param options 分享发起来源参数
|
|
1576
|
+
* @return 转发内容
|
|
1480
1577
|
*
|
|
1481
1578
|
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1482
1579
|
* @uniPlatform {
|
|
1483
1580
|
* "app": {
|
|
1484
1581
|
* "android": {
|
|
1485
|
-
* "osVer": "
|
|
1486
|
-
* "uniVer": "
|
|
1582
|
+
* "osVer": "x",
|
|
1583
|
+
* "uniVer": "x",
|
|
1487
1584
|
* "unixVer": "x"
|
|
1488
1585
|
* },
|
|
1489
1586
|
* "ios": {
|
|
1490
|
-
* "osVer": "
|
|
1491
|
-
* "uniVer": "
|
|
1587
|
+
* "osVer": "x",
|
|
1588
|
+
* "uniVer": "x",
|
|
1492
1589
|
* "unixVer": "x"
|
|
1493
1590
|
* },
|
|
1494
1591
|
* "harmony": {
|
|
@@ -1499,13 +1596,13 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1499
1596
|
* },
|
|
1500
1597
|
* "mp": {
|
|
1501
1598
|
* "weixin": {
|
|
1502
|
-
* "hostVer": "
|
|
1503
|
-
* "uniVer": "
|
|
1504
|
-
* "unixVer": "
|
|
1599
|
+
* "hostVer": "√",
|
|
1600
|
+
* "uniVer": "√",
|
|
1601
|
+
* "unixVer": "4.41"
|
|
1505
1602
|
* },
|
|
1506
1603
|
* "alipay": {
|
|
1507
|
-
* "hostVer": "
|
|
1508
|
-
* "uniVer": "
|
|
1604
|
+
* "hostVer": "√",
|
|
1605
|
+
* "uniVer": "√",
|
|
1509
1606
|
* "unixVer": "x"
|
|
1510
1607
|
* },
|
|
1511
1608
|
* "baidu": {
|
|
@@ -1514,52 +1611,54 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1514
1611
|
* "unixVer": "x"
|
|
1515
1612
|
* },
|
|
1516
1613
|
* "toutiao": {
|
|
1517
|
-
* "hostVer": "
|
|
1518
|
-
* "uniVer": "
|
|
1614
|
+
* "hostVer": "√",
|
|
1615
|
+
* "uniVer": "√",
|
|
1519
1616
|
* "unixVer": "x"
|
|
1520
1617
|
* },
|
|
1521
1618
|
* "lark": {
|
|
1522
|
-
* "hostVer": "
|
|
1523
|
-
* "uniVer": "
|
|
1619
|
+
* "hostVer": "√",
|
|
1620
|
+
* "uniVer": "√",
|
|
1524
1621
|
* "unixVer": "x"
|
|
1525
1622
|
* },
|
|
1526
1623
|
* "qq": {
|
|
1527
|
-
* "hostVer": "
|
|
1528
|
-
* "uniVer": "
|
|
1624
|
+
* "hostVer": "√",
|
|
1625
|
+
* "uniVer": "√",
|
|
1529
1626
|
* "unixVer": "x"
|
|
1530
1627
|
* },
|
|
1531
1628
|
* "kuaishou": {
|
|
1532
|
-
* "hostVer": "
|
|
1533
|
-
* "uniVer": "
|
|
1629
|
+
* "hostVer": "√",
|
|
1630
|
+
* "uniVer": "√",
|
|
1534
1631
|
* "unixVer": "x"
|
|
1535
1632
|
* },
|
|
1536
1633
|
* "jd": {
|
|
1537
|
-
* "hostVer": "
|
|
1538
|
-
* "uniVer": "
|
|
1634
|
+
* "hostVer": "√",
|
|
1635
|
+
* "uniVer": "√",
|
|
1539
1636
|
* "unixVer": "x"
|
|
1540
1637
|
* }
|
|
1541
1638
|
* },
|
|
1542
1639
|
* "web": {
|
|
1543
|
-
* "uniVer": "
|
|
1544
|
-
* "unixVer": "
|
|
1640
|
+
* "uniVer": "x",
|
|
1641
|
+
* "unixVer": "x"
|
|
1545
1642
|
* }
|
|
1546
1643
|
*}
|
|
1547
1644
|
*/
|
|
1548
|
-
|
|
1645
|
+
onShareAppMessage?(options: OnShareAppMessageOption): CustomShareContent | Promise<Omit<CustomShareContent, "promise">>
|
|
1549
1646
|
/**
|
|
1550
|
-
*
|
|
1647
|
+
* 用户点击右上角转发到朋友圈
|
|
1648
|
+
*
|
|
1649
|
+
* 监听右上角菜单“分享到朋友圈”按钮的行为,并自定义发享内容。
|
|
1551
1650
|
*
|
|
1552
1651
|
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1553
1652
|
* @uniPlatform {
|
|
1554
1653
|
* "app": {
|
|
1555
1654
|
* "android": {
|
|
1556
|
-
* "osVer": "
|
|
1557
|
-
* "uniVer": "
|
|
1655
|
+
* "osVer": "x",
|
|
1656
|
+
* "uniVer": "x",
|
|
1558
1657
|
* "unixVer": "x"
|
|
1559
1658
|
* },
|
|
1560
1659
|
* "ios": {
|
|
1561
|
-
* "osVer": "
|
|
1562
|
-
* "uniVer": "
|
|
1660
|
+
* "osVer": "x",
|
|
1661
|
+
* "uniVer": "x",
|
|
1563
1662
|
* "unixVer": "x"
|
|
1564
1663
|
* },
|
|
1565
1664
|
* "harmony": {
|
|
@@ -1570,9 +1669,9 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1570
1669
|
* },
|
|
1571
1670
|
* "mp": {
|
|
1572
1671
|
* "weixin": {
|
|
1573
|
-
* "hostVer": "
|
|
1574
|
-
* "uniVer": "
|
|
1575
|
-
* "unixVer": "
|
|
1672
|
+
* "hostVer": "√",
|
|
1673
|
+
* "uniVer": ">=2.8.1",
|
|
1674
|
+
* "unixVer": "4.41"
|
|
1576
1675
|
* },
|
|
1577
1676
|
* "alipay": {
|
|
1578
1677
|
* "hostVer": "x",
|
|
@@ -1611,146 +1710,40 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1611
1710
|
* }
|
|
1612
1711
|
* },
|
|
1613
1712
|
* "web": {
|
|
1614
|
-
* "uniVer": "√",
|
|
1615
|
-
* "unixVer": "4.0"
|
|
1616
|
-
* }
|
|
1617
|
-
*}
|
|
1618
|
-
*/
|
|
1619
|
-
onNavigationBarSearchInputClicked?(): void
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
interface Page {
|
|
1623
|
-
/**
|
|
1624
|
-
* 页面的路由地址
|
|
1625
|
-
*/
|
|
1626
|
-
route: string
|
|
1627
|
-
/**
|
|
1628
|
-
* 页面的路由参数信息,目前web端options类型为Object,后续可能会调整
|
|
1629
|
-
*/
|
|
1630
|
-
options: UTSJSONObject
|
|
1631
|
-
/**
|
|
1632
|
-
* 原生页面对象
|
|
1633
|
-
* @internal
|
|
1634
|
-
* @uniPlatform {
|
|
1635
|
-
* "app": {
|
|
1636
|
-
* "android": {
|
|
1637
|
-
* "osVer": "5.0",
|
|
1638
|
-
* "uniVer": "x",
|
|
1639
|
-
* "unixVer": "4.13"
|
|
1640
|
-
* },
|
|
1641
|
-
* "ios": {
|
|
1642
|
-
* "osVer": "12.0",
|
|
1643
1713
|
* "uniVer": "x",
|
|
1644
|
-
* "unixVer": "
|
|
1645
|
-
* },
|
|
1646
|
-
* "harmony": {
|
|
1647
|
-
* "osVer": "3.0",
|
|
1648
|
-
* "uniVer": "x",
|
|
1649
|
-
* "unixVer": "4.61"
|
|
1650
|
-
* }
|
|
1714
|
+
* "unixVer": "x"
|
|
1651
1715
|
* }
|
|
1652
|
-
*
|
|
1716
|
+
*}
|
|
1653
1717
|
*/
|
|
1654
|
-
|
|
1718
|
+
onShareTimeline?(): ShareTimelineContent
|
|
1655
1719
|
/**
|
|
1656
|
-
*
|
|
1657
|
-
*
|
|
1658
|
-
*
|
|
1720
|
+
* 用户点击右上角收藏
|
|
1721
|
+
*
|
|
1722
|
+
* 监听用户点击右上角菜单“收藏”按钮的行为,并自定义收藏内容。
|
|
1723
|
+
*
|
|
1724
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1659
1725
|
* @uniPlatform {
|
|
1660
1726
|
* "app": {
|
|
1661
1727
|
* "android": {
|
|
1662
|
-
*
|
|
1663
|
-
*
|
|
1664
|
-
*
|
|
1665
|
-
*
|
|
1666
|
-
*
|
|
1667
|
-
*
|
|
1668
|
-
*
|
|
1669
|
-
*
|
|
1670
|
-
*
|
|
1728
|
+
* "osVer": "x",
|
|
1729
|
+
* "uniVer": "x",
|
|
1730
|
+
* "unixVer": "x"
|
|
1731
|
+
* },
|
|
1732
|
+
* "ios": {
|
|
1733
|
+
* "osVer": "x",
|
|
1734
|
+
* "uniVer": "x",
|
|
1735
|
+
* "unixVer": "x"
|
|
1736
|
+
* },
|
|
1671
1737
|
* "harmony": {
|
|
1672
1738
|
* "osVer": "3.0",
|
|
1673
|
-
* "uniVer": "
|
|
1739
|
+
* "uniVer": "4.23",
|
|
1674
1740
|
* "unixVer": "4.61"
|
|
1675
1741
|
* }
|
|
1676
1742
|
* },
|
|
1677
|
-
* "web": {
|
|
1678
|
-
* "uniVer": "x",
|
|
1679
|
-
* "unixVer": "4.13"
|
|
1680
|
-
* }
|
|
1681
|
-
* }
|
|
1682
|
-
*/
|
|
1683
|
-
$getPageStyle(): UTSJSONObject
|
|
1684
|
-
/**
|
|
1685
|
-
* 设置当前页面样式 \
|
|
1686
|
-
* 包含 pages.json 页面下的 style 节点和根节点 globalStyle 支持的属性,详情见下面的PageStyle
|
|
1687
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#setPageStyle
|
|
1688
|
-
* @uniPlatform {
|
|
1689
|
-
* "app": {
|
|
1690
|
-
* "android": {
|
|
1691
|
-
* "osVer": "5.0",
|
|
1692
|
-
* "uniVer": "x",
|
|
1693
|
-
* "unixVer": "4.13"
|
|
1694
|
-
* },
|
|
1695
|
-
* "ios": {
|
|
1696
|
-
* "osVer": "12.0",
|
|
1697
|
-
* "uniVer": "x",
|
|
1698
|
-
* "unixVer": "4.13"
|
|
1699
|
-
* },
|
|
1700
|
-
* "harmony": {
|
|
1701
|
-
* "osVer": "3.0",
|
|
1702
|
-
* "uniVer": "x",
|
|
1703
|
-
* "unixVer": "4.61"
|
|
1704
|
-
* }
|
|
1705
|
-
* },
|
|
1706
|
-
* "web": {
|
|
1707
|
-
* "uniVer": "x",
|
|
1708
|
-
* "unixVer": "4.13"
|
|
1709
|
-
* }
|
|
1710
|
-
* }
|
|
1711
|
-
*/
|
|
1712
|
-
$setPageStyle(style: UTSJSONObject): void
|
|
1713
|
-
}
|
|
1714
|
-
|
|
1715
|
-
type PageOrigin = Page
|
|
1716
|
-
|
|
1717
|
-
export { UniPage }
|
|
1718
|
-
type UniPageOrigin = UniPage
|
|
1719
|
-
|
|
1720
|
-
export { UniNormalPage }
|
|
1721
|
-
|
|
1722
|
-
export { UniDialogPage }
|
|
1723
|
-
|
|
1724
|
-
declare global {
|
|
1725
|
-
/**
|
|
1726
|
-
* `getCurrentPages()` 函数用于获取当前页面栈的实例,以数组形式按栈的顺序给出,数组中的元素为页面实例,第一个元素为首页,最后一个元素为当前页面。
|
|
1727
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getcurrentpages
|
|
1728
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getcurrentpages
|
|
1729
|
-
* @tutorial_uni-app https://uniapp.dcloud.net.cn/tutorial/page.html#getcurrentpages
|
|
1730
|
-
* @uniPlatform {
|
|
1731
|
-
* "app": {
|
|
1732
|
-
* "android": {
|
|
1733
|
-
* "osVer": "5.0",
|
|
1734
|
-
* "uniVer": "√",
|
|
1735
|
-
* "unixVer": "3.9"
|
|
1736
|
-
* },
|
|
1737
|
-
* "ios": {
|
|
1738
|
-
* "osVer": "12.0",
|
|
1739
|
-
* "uniVer": "√",
|
|
1740
|
-
* "unixVer": "4.11",
|
|
1741
|
-
* "unixUtsPlugin": "4.31"
|
|
1742
|
-
*
|
|
1743
|
-
* },
|
|
1744
|
-
* "harmony": {
|
|
1745
|
-
* "osVer": "x",
|
|
1746
|
-
* "uniVer": "x",
|
|
1747
|
-
* "unixVer": "4.61"
|
|
1748
|
-
* }
|
|
1749
|
-
* },
|
|
1750
1743
|
* "mp": {
|
|
1751
1744
|
* "weixin": {
|
|
1752
|
-
* "hostVer": "
|
|
1753
|
-
* "uniVer": "
|
|
1745
|
+
* "hostVer": "√",
|
|
1746
|
+
* "uniVer": ">=2.8.1",
|
|
1754
1747
|
* "unixVer": "4.41"
|
|
1755
1748
|
* },
|
|
1756
1749
|
* "alipay": {
|
|
@@ -1774,8 +1767,8 @@ declare global {
|
|
|
1774
1767
|
* "unixVer": "x"
|
|
1775
1768
|
* },
|
|
1776
1769
|
* "qq": {
|
|
1777
|
-
* "hostVer": "
|
|
1778
|
-
* "uniVer": "
|
|
1770
|
+
* "hostVer": "√",
|
|
1771
|
+
* "uniVer": ">=2.8.1",
|
|
1779
1772
|
* "unixVer": "x"
|
|
1780
1773
|
* },
|
|
1781
1774
|
* "kuaishou": {
|
|
@@ -1790,60 +1783,1330 @@ declare global {
|
|
|
1790
1783
|
* }
|
|
1791
1784
|
* },
|
|
1792
1785
|
* "web": {
|
|
1793
|
-
*
|
|
1794
|
-
*
|
|
1786
|
+
* "uniVer": "x",
|
|
1787
|
+
* "unixVer": "x"
|
|
1795
1788
|
* }
|
|
1796
|
-
*
|
|
1789
|
+
*}
|
|
1797
1790
|
*/
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1791
|
+
onAddToFavorites?(options: OnAddToFavoritesOption): CustomFavoritesContent
|
|
1792
|
+
/**
|
|
1793
|
+
* 当前是 tab 页时,点击 tab 时触发
|
|
1794
|
+
* @param options tab 点击参数
|
|
1795
|
+
*
|
|
1796
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1797
|
+
* @uniPlatform {
|
|
1798
|
+
* "app": {
|
|
1799
|
+
* "android": {
|
|
1800
|
+
* "osVer": "5.0",
|
|
1801
|
+
* "uniVer": "√",
|
|
1802
|
+
* "unixVer": "x"
|
|
1803
|
+
* },
|
|
1804
|
+
* "ios": {
|
|
1805
|
+
* "osVer": "10.0",
|
|
1806
|
+
* "uniVer": "√",
|
|
1807
|
+
* "unixVer": "x"
|
|
1808
|
+
* },
|
|
1809
|
+
* "harmony": {
|
|
1810
|
+
* "osVer": "3.0",
|
|
1811
|
+
* "uniVer": "4.23",
|
|
1812
|
+
* "unixVer": "4.61"
|
|
1813
|
+
* }
|
|
1814
|
+
* },
|
|
1815
|
+
* "mp": {
|
|
1816
|
+
* "weixin": {
|
|
1817
|
+
* "hostVer": "√",
|
|
1818
|
+
* "uniVer": "√",
|
|
1819
|
+
* "unixVer": "4.41"
|
|
1820
|
+
* },
|
|
1821
|
+
* "alipay": {
|
|
1822
|
+
* "hostVer": "√",
|
|
1823
|
+
* "uniVer": "√",
|
|
1824
|
+
* "unixVer": "x"
|
|
1825
|
+
* },
|
|
1826
|
+
* "baidu": {
|
|
1827
|
+
* "hostVer": "√",
|
|
1828
|
+
* "uniVer": "√",
|
|
1829
|
+
* "unixVer": "x"
|
|
1830
|
+
* },
|
|
1831
|
+
* "toutiao": {
|
|
1832
|
+
* "hostVer": "x",
|
|
1833
|
+
* "uniVer": "x",
|
|
1834
|
+
* "unixVer": "x"
|
|
1835
|
+
* },
|
|
1836
|
+
* "lark": {
|
|
1837
|
+
* "hostVer": "x",
|
|
1838
|
+
* "uniVer": "x",
|
|
1839
|
+
* "unixVer": "x"
|
|
1840
|
+
* },
|
|
1841
|
+
* "qq": {
|
|
1842
|
+
* "hostVer": "√",
|
|
1843
|
+
* "uniVer": "√",
|
|
1844
|
+
* "unixVer": "x"
|
|
1845
|
+
* },
|
|
1846
|
+
* "kuaishou": {
|
|
1847
|
+
* "hostVer": "√",
|
|
1848
|
+
* "uniVer": "√",
|
|
1849
|
+
* "unixVer": "x"
|
|
1850
|
+
* },
|
|
1851
|
+
* "jd": {
|
|
1852
|
+
* "hostVer": "√",
|
|
1853
|
+
* "uniVer": "√",
|
|
1854
|
+
* "unixVer": "x"
|
|
1855
|
+
* }
|
|
1856
|
+
* },
|
|
1857
|
+
* "web": {
|
|
1858
|
+
* "uniVer": "√",
|
|
1859
|
+
* "unixVer": "4.0"
|
|
1860
|
+
* }
|
|
1861
|
+
*}
|
|
1862
|
+
*/
|
|
1863
|
+
onTabItemTap?(options: OnTabItemTapOption): void
|
|
1864
|
+
/**
|
|
1865
|
+
* 监听原生标题栏按钮点击事件
|
|
1866
|
+
* @param options 监听原生标题栏按钮点击事件的参数
|
|
1867
|
+
*
|
|
1868
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1869
|
+
* @uniPlatform {
|
|
1870
|
+
* "app": {
|
|
1871
|
+
* "android": {
|
|
1872
|
+
* "osVer": "5.0",
|
|
1873
|
+
* "uniVer": "√",
|
|
1874
|
+
* "unixVer": "x"
|
|
1875
|
+
* },
|
|
1876
|
+
* "ios": {
|
|
1877
|
+
* "osVer": "10.0",
|
|
1878
|
+
* "uniVer": "√",
|
|
1879
|
+
* "unixVer": "x"
|
|
1880
|
+
* },
|
|
1881
|
+
* "harmony": {
|
|
1882
|
+
* "osVer": "3.0",
|
|
1883
|
+
* "uniVer": "4.23",
|
|
1884
|
+
* "unixVer": "4.61"
|
|
1885
|
+
* }
|
|
1886
|
+
* },
|
|
1887
|
+
* "mp": {
|
|
1888
|
+
* "weixin": {
|
|
1889
|
+
* "hostVer": "x",
|
|
1890
|
+
* "uniVer": "x",
|
|
1891
|
+
* "unixVer": "x"
|
|
1892
|
+
* },
|
|
1893
|
+
* "alipay": {
|
|
1894
|
+
* "hostVer": "x",
|
|
1895
|
+
* "uniVer": "x",
|
|
1896
|
+
* "unixVer": "x"
|
|
1897
|
+
* },
|
|
1898
|
+
* "baidu": {
|
|
1899
|
+
* "hostVer": "x",
|
|
1900
|
+
* "uniVer": "x",
|
|
1901
|
+
* "unixVer": "x"
|
|
1902
|
+
* },
|
|
1903
|
+
* "toutiao": {
|
|
1904
|
+
* "hostVer": "x",
|
|
1905
|
+
* "uniVer": "x",
|
|
1906
|
+
* "unixVer": "x"
|
|
1907
|
+
* },
|
|
1908
|
+
* "lark": {
|
|
1909
|
+
* "hostVer": "x",
|
|
1910
|
+
* "uniVer": "x",
|
|
1911
|
+
* "unixVer": "x"
|
|
1912
|
+
* },
|
|
1913
|
+
* "qq": {
|
|
1914
|
+
* "hostVer": "x",
|
|
1915
|
+
* "uniVer": "x",
|
|
1916
|
+
* "unixVer": "x"
|
|
1917
|
+
* },
|
|
1918
|
+
* "kuaishou": {
|
|
1919
|
+
* "hostVer": "x",
|
|
1920
|
+
* "uniVer": "x",
|
|
1921
|
+
* "unixVer": "x"
|
|
1922
|
+
* },
|
|
1923
|
+
* "jd": {
|
|
1924
|
+
* "hostVer": "x",
|
|
1925
|
+
* "uniVer": "x",
|
|
1926
|
+
* "unixVer": "x"
|
|
1927
|
+
* }
|
|
1928
|
+
* },
|
|
1929
|
+
* "web": {
|
|
1930
|
+
* "uniVer": "√",
|
|
1931
|
+
* "unixVer": "4.0"
|
|
1932
|
+
* }
|
|
1933
|
+
*}
|
|
1934
|
+
*/
|
|
1935
|
+
onNavigationBarButtonTap?(options: OnNavigationBarButtonTapOption): void
|
|
1936
|
+
/**
|
|
1937
|
+
* 监听原生标题栏搜索输入框输入内容变化事件
|
|
1938
|
+
*
|
|
1939
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
1940
|
+
* @uniPlatform {
|
|
1941
|
+
* "app": {
|
|
1942
|
+
* "android": {
|
|
1943
|
+
* "osVer": "5.0",
|
|
1944
|
+
* "uniVer": "√",
|
|
1945
|
+
* "unixVer": "x"
|
|
1946
|
+
* },
|
|
1947
|
+
* "ios": {
|
|
1948
|
+
* "osVer": "10.0",
|
|
1949
|
+
* "uniVer": "√",
|
|
1950
|
+
* "unixVer": "x"
|
|
1951
|
+
* },
|
|
1952
|
+
* "harmony": {
|
|
1953
|
+
* "osVer": "3.0",
|
|
1954
|
+
* "uniVer": "4.23",
|
|
1955
|
+
* "unixVer": "4.61"
|
|
1956
|
+
* }
|
|
1957
|
+
* },
|
|
1958
|
+
* "mp": {
|
|
1959
|
+
* "weixin": {
|
|
1960
|
+
* "hostVer": "x",
|
|
1961
|
+
* "uniVer": "x",
|
|
1962
|
+
* "unixVer": "x"
|
|
1963
|
+
* },
|
|
1964
|
+
* "alipay": {
|
|
1965
|
+
* "hostVer": "x",
|
|
1966
|
+
* "uniVer": "x",
|
|
1967
|
+
* "unixVer": "x"
|
|
1968
|
+
* },
|
|
1969
|
+
* "baidu": {
|
|
1970
|
+
* "hostVer": "x",
|
|
1971
|
+
* "uniVer": "x",
|
|
1972
|
+
* "unixVer": "x"
|
|
1973
|
+
* },
|
|
1974
|
+
* "toutiao": {
|
|
1975
|
+
* "hostVer": "x",
|
|
1976
|
+
* "uniVer": "x",
|
|
1977
|
+
* "unixVer": "x"
|
|
1978
|
+
* },
|
|
1979
|
+
* "lark": {
|
|
1980
|
+
* "hostVer": "x",
|
|
1981
|
+
* "uniVer": "x",
|
|
1982
|
+
* "unixVer": "x"
|
|
1983
|
+
* },
|
|
1984
|
+
* "qq": {
|
|
1985
|
+
* "hostVer": "x",
|
|
1986
|
+
* "uniVer": "x",
|
|
1987
|
+
* "unixVer": "x"
|
|
1988
|
+
* },
|
|
1989
|
+
* "kuaishou": {
|
|
1990
|
+
* "hostVer": "x",
|
|
1991
|
+
* "uniVer": "x",
|
|
1992
|
+
* "unixVer": "x"
|
|
1993
|
+
* },
|
|
1994
|
+
* "jd": {
|
|
1995
|
+
* "hostVer": "x",
|
|
1996
|
+
* "uniVer": "x",
|
|
1997
|
+
* "unixVer": "x"
|
|
1998
|
+
* }
|
|
1999
|
+
* },
|
|
2000
|
+
* "web": {
|
|
2001
|
+
* "uniVer": "√",
|
|
2002
|
+
* "unixVer": "4.0"
|
|
2003
|
+
* }
|
|
2004
|
+
*}
|
|
2005
|
+
*/
|
|
2006
|
+
onNavigationBarSearchInputChanged?(event: NavigationBarSearchInputEvent): void
|
|
2007
|
+
/**
|
|
2008
|
+
* 监听原生标题栏搜索输入框搜索事件,用户点击软键盘上的“搜索”按钮时触发。
|
|
2009
|
+
*
|
|
2010
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
2011
|
+
* @uniPlatform {
|
|
2012
|
+
* "app": {
|
|
2013
|
+
* "android": {
|
|
2014
|
+
* "osVer": "5.0",
|
|
2015
|
+
* "uniVer": "√",
|
|
2016
|
+
* "unixVer": "x"
|
|
2017
|
+
* },
|
|
2018
|
+
* "ios": {
|
|
2019
|
+
* "osVer": "10.0",
|
|
2020
|
+
* "uniVer": "√",
|
|
2021
|
+
* "unixVer": "x"
|
|
2022
|
+
* },
|
|
2023
|
+
* "harmony": {
|
|
2024
|
+
* "osVer": "3.0",
|
|
2025
|
+
* "uniVer": "4.23",
|
|
2026
|
+
* "unixVer": "4.61"
|
|
2027
|
+
* }
|
|
2028
|
+
* },
|
|
2029
|
+
* "mp": {
|
|
2030
|
+
* "weixin": {
|
|
2031
|
+
* "hostVer": "x",
|
|
2032
|
+
* "uniVer": "x",
|
|
2033
|
+
* "unixVer": "x"
|
|
2034
|
+
* },
|
|
2035
|
+
* "alipay": {
|
|
2036
|
+
* "hostVer": "x",
|
|
2037
|
+
* "uniVer": "x",
|
|
2038
|
+
* "unixVer": "x"
|
|
2039
|
+
* },
|
|
2040
|
+
* "baidu": {
|
|
2041
|
+
* "hostVer": "x",
|
|
2042
|
+
* "uniVer": "x",
|
|
2043
|
+
* "unixVer": "x"
|
|
2044
|
+
* },
|
|
2045
|
+
* "toutiao": {
|
|
2046
|
+
* "hostVer": "x",
|
|
2047
|
+
* "uniVer": "x",
|
|
2048
|
+
* "unixVer": "x"
|
|
2049
|
+
* },
|
|
2050
|
+
* "lark": {
|
|
2051
|
+
* "hostVer": "x",
|
|
2052
|
+
* "uniVer": "x",
|
|
2053
|
+
* "unixVer": "x"
|
|
2054
|
+
* },
|
|
2055
|
+
* "qq": {
|
|
2056
|
+
* "hostVer": "x",
|
|
2057
|
+
* "uniVer": "x",
|
|
2058
|
+
* "unixVer": "x"
|
|
2059
|
+
* },
|
|
2060
|
+
* "kuaishou": {
|
|
2061
|
+
* "hostVer": "x",
|
|
2062
|
+
* "uniVer": "x",
|
|
2063
|
+
* "unixVer": "x"
|
|
2064
|
+
* },
|
|
2065
|
+
* "jd": {
|
|
2066
|
+
* "hostVer": "x",
|
|
2067
|
+
* "uniVer": "x",
|
|
2068
|
+
* "unixVer": "x"
|
|
2069
|
+
* }
|
|
2070
|
+
* },
|
|
2071
|
+
* "web": {
|
|
2072
|
+
* "uniVer": "√",
|
|
2073
|
+
* "unixVer": "4.0"
|
|
2074
|
+
* }
|
|
2075
|
+
*}
|
|
2076
|
+
*/
|
|
2077
|
+
onNavigationBarSearchInputConfirmed?(event: NavigationBarSearchInputEvent): void
|
|
2078
|
+
/**
|
|
2079
|
+
* 监听原生标题栏搜索输入框点击事件
|
|
2080
|
+
*
|
|
2081
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
2082
|
+
* @uniPlatform {
|
|
2083
|
+
* "app": {
|
|
2084
|
+
* "android": {
|
|
2085
|
+
* "osVer": "5.0",
|
|
2086
|
+
* "uniVer": "√",
|
|
2087
|
+
* "unixVer": "x"
|
|
2088
|
+
* },
|
|
2089
|
+
* "ios": {
|
|
2090
|
+
* "osVer": "10.0",
|
|
2091
|
+
* "uniVer": "√",
|
|
2092
|
+
* "unixVer": "x"
|
|
2093
|
+
* },
|
|
2094
|
+
* "harmony": {
|
|
2095
|
+
* "osVer": "3.0",
|
|
2096
|
+
* "uniVer": "4.23",
|
|
2097
|
+
* "unixVer": "4.61"
|
|
2098
|
+
* }
|
|
2099
|
+
* },
|
|
2100
|
+
* "mp": {
|
|
2101
|
+
* "weixin": {
|
|
2102
|
+
* "hostVer": "x",
|
|
2103
|
+
* "uniVer": "x",
|
|
2104
|
+
* "unixVer": "x"
|
|
2105
|
+
* },
|
|
2106
|
+
* "alipay": {
|
|
2107
|
+
* "hostVer": "x",
|
|
2108
|
+
* "uniVer": "x",
|
|
2109
|
+
* "unixVer": "x"
|
|
2110
|
+
* },
|
|
2111
|
+
* "baidu": {
|
|
2112
|
+
* "hostVer": "x",
|
|
2113
|
+
* "uniVer": "x",
|
|
2114
|
+
* "unixVer": "x"
|
|
2115
|
+
* },
|
|
2116
|
+
* "toutiao": {
|
|
2117
|
+
* "hostVer": "x",
|
|
2118
|
+
* "uniVer": "x",
|
|
2119
|
+
* "unixVer": "x"
|
|
2120
|
+
* },
|
|
2121
|
+
* "lark": {
|
|
2122
|
+
* "hostVer": "x",
|
|
2123
|
+
* "uniVer": "x",
|
|
2124
|
+
* "unixVer": "x"
|
|
2125
|
+
* },
|
|
2126
|
+
* "qq": {
|
|
2127
|
+
* "hostVer": "x",
|
|
2128
|
+
* "uniVer": "x",
|
|
2129
|
+
* "unixVer": "x"
|
|
2130
|
+
* },
|
|
2131
|
+
* "kuaishou": {
|
|
2132
|
+
* "hostVer": "x",
|
|
2133
|
+
* "uniVer": "x",
|
|
2134
|
+
* "unixVer": "x"
|
|
2135
|
+
* },
|
|
2136
|
+
* "jd": {
|
|
2137
|
+
* "hostVer": "x",
|
|
2138
|
+
* "uniVer": "x",
|
|
2139
|
+
* "unixVer": "x"
|
|
2140
|
+
* }
|
|
2141
|
+
* },
|
|
2142
|
+
* "web": {
|
|
2143
|
+
* "uniVer": "√",
|
|
2144
|
+
* "unixVer": "4.0"
|
|
2145
|
+
* }
|
|
2146
|
+
*}
|
|
2147
|
+
*/
|
|
2148
|
+
onNavigationBarSearchInputClicked?(): void
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
interface Page {
|
|
2152
|
+
/**
|
|
2153
|
+
* 页面的路由地址
|
|
2154
|
+
*/
|
|
2155
|
+
route: string
|
|
2156
|
+
/**
|
|
2157
|
+
* 页面的路由参数信息,目前web端options类型为Object,后续可能会调整
|
|
2158
|
+
*/
|
|
2159
|
+
options: UTSJSONObject
|
|
2160
|
+
/**
|
|
2161
|
+
* 原生页面对象
|
|
2162
|
+
* @internal
|
|
2163
|
+
* @uniPlatform {
|
|
2164
|
+
* "app": {
|
|
2165
|
+
* "android": {
|
|
2166
|
+
* "osVer": "5.0",
|
|
2167
|
+
* "uniVer": "x",
|
|
2168
|
+
* "unixVer": "4.13"
|
|
2169
|
+
* },
|
|
2170
|
+
* "ios": {
|
|
2171
|
+
* "osVer": "12.0",
|
|
2172
|
+
* "uniVer": "x",
|
|
2173
|
+
* "unixVer": "4.13"
|
|
2174
|
+
* },
|
|
2175
|
+
* "harmony": {
|
|
2176
|
+
* "osVer": "3.0",
|
|
2177
|
+
* "uniVer": "x",
|
|
2178
|
+
* "unixVer": "4.61"
|
|
2179
|
+
* }
|
|
2180
|
+
* }
|
|
2181
|
+
* }
|
|
2182
|
+
*/
|
|
2183
|
+
$nativePage: IPage | null
|
|
2184
|
+
/**
|
|
2185
|
+
* 获取当前页面样式 \
|
|
2186
|
+
* 包含 pages.json 页面下的 style 节点和根节点 globalStyle 支持的属性,详情见下面的PageStyle
|
|
2187
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getPageStyle
|
|
2188
|
+
* @uniPlatform {
|
|
2189
|
+
* "app": {
|
|
2190
|
+
* "android": {
|
|
2191
|
+
* "osVer": "5.0",
|
|
2192
|
+
* "uniVer": "x",
|
|
2193
|
+
* "unixVer": "4.13"
|
|
2194
|
+
* },
|
|
2195
|
+
* "ios": {
|
|
2196
|
+
* "osVer": "12.0",
|
|
2197
|
+
* "uniVer": "x",
|
|
2198
|
+
* "unixVer": "4.13"
|
|
2199
|
+
* },
|
|
2200
|
+
* "harmony": {
|
|
2201
|
+
* "osVer": "3.0",
|
|
2202
|
+
* "uniVer": "x",
|
|
2203
|
+
* "unixVer": "4.61"
|
|
2204
|
+
* }
|
|
2205
|
+
* },
|
|
2206
|
+
* "web": {
|
|
2207
|
+
* "uniVer": "x",
|
|
2208
|
+
* "unixVer": "4.13"
|
|
2209
|
+
* }
|
|
2210
|
+
* }
|
|
2211
|
+
*/
|
|
2212
|
+
$getPageStyle(): UTSJSONObject
|
|
2213
|
+
/**
|
|
2214
|
+
* 设置当前页面样式 \
|
|
2215
|
+
* 包含 pages.json 页面下的 style 节点和根节点 globalStyle 支持的属性,详情见下面的PageStyle
|
|
2216
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#setPageStyle
|
|
2217
|
+
* @uniPlatform {
|
|
2218
|
+
* "app": {
|
|
2219
|
+
* "android": {
|
|
2220
|
+
* "osVer": "5.0",
|
|
2221
|
+
* "uniVer": "x",
|
|
2222
|
+
* "unixVer": "4.13"
|
|
2223
|
+
* },
|
|
2224
|
+
* "ios": {
|
|
2225
|
+
* "osVer": "12.0",
|
|
2226
|
+
* "uniVer": "x",
|
|
2227
|
+
* "unixVer": "4.13"
|
|
2228
|
+
* },
|
|
2229
|
+
* "harmony": {
|
|
2230
|
+
* "osVer": "3.0",
|
|
2231
|
+
* "uniVer": "x",
|
|
2232
|
+
* "unixVer": "4.61"
|
|
2233
|
+
* }
|
|
2234
|
+
* },
|
|
2235
|
+
* "web": {
|
|
2236
|
+
* "uniVer": "x",
|
|
2237
|
+
* "unixVer": "4.13"
|
|
2238
|
+
* }
|
|
2239
|
+
* }
|
|
2240
|
+
*/
|
|
2241
|
+
$setPageStyle(style: UTSJSONObject): void
|
|
2242
|
+
}
|
|
2243
|
+
|
|
2244
|
+
type PageOrigin = Page
|
|
2245
|
+
|
|
2246
|
+
export { UniPage }
|
|
2247
|
+
type UniPageOrigin = UniPage
|
|
2248
|
+
|
|
2249
|
+
export { UniNormalPage }
|
|
2250
|
+
|
|
2251
|
+
export { UniDialogPage }
|
|
2252
|
+
|
|
2253
|
+
declare global {
|
|
2254
|
+
/**
|
|
2255
|
+
* `getCurrentPages()` 函数用于获取当前页面栈的实例,以数组形式按栈的顺序给出,数组中的元素为页面实例,第一个元素为首页,最后一个元素为当前页面。
|
|
2256
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getcurrentpages
|
|
2257
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getcurrentpages
|
|
2258
|
+
* @tutorial_uni-app https://uniapp.dcloud.net.cn/tutorial/page.html#getcurrentpages
|
|
2259
|
+
* @uniPlatform {
|
|
2260
|
+
* "app": {
|
|
2261
|
+
* "android": {
|
|
2262
|
+
* "osVer": "5.0",
|
|
2263
|
+
* "uniVer": "√",
|
|
2264
|
+
* "unixVer": "3.9"
|
|
2265
|
+
* },
|
|
2266
|
+
* "ios": {
|
|
2267
|
+
* "osVer": "12.0",
|
|
2268
|
+
* "uniVer": "√",
|
|
2269
|
+
* "unixVer": "4.11",
|
|
2270
|
+
* "unixUtsPlugin": "4.31"
|
|
2271
|
+
*
|
|
2272
|
+
* },
|
|
2273
|
+
* "harmony": {
|
|
2274
|
+
* "osVer": "x",
|
|
2275
|
+
* "uniVer": "x",
|
|
2276
|
+
* "unixVer": "4.61"
|
|
2277
|
+
* }
|
|
2278
|
+
* },
|
|
2279
|
+
* "mp": {
|
|
2280
|
+
* "weixin": {
|
|
2281
|
+
* "hostVer": "x",
|
|
2282
|
+
* "uniVer": "x",
|
|
2283
|
+
* "unixVer": "4.41"
|
|
2284
|
+
* },
|
|
2285
|
+
* "alipay": {
|
|
2286
|
+
* "hostVer": "x",
|
|
2287
|
+
* "uniVer": "x",
|
|
2288
|
+
* "unixVer": "x"
|
|
2289
|
+
* },
|
|
2290
|
+
* "baidu": {
|
|
2291
|
+
* "hostVer": "x",
|
|
2292
|
+
* "uniVer": "x",
|
|
2293
|
+
* "unixVer": "x"
|
|
2294
|
+
* },
|
|
2295
|
+
* "toutiao": {
|
|
2296
|
+
* "hostVer": "x",
|
|
2297
|
+
* "uniVer": "x",
|
|
2298
|
+
* "unixVer": "x"
|
|
2299
|
+
* },
|
|
2300
|
+
* "lark": {
|
|
2301
|
+
* "hostVer": "x",
|
|
2302
|
+
* "uniVer": "x",
|
|
2303
|
+
* "unixVer": "x"
|
|
2304
|
+
* },
|
|
2305
|
+
* "qq": {
|
|
2306
|
+
* "hostVer": "x",
|
|
2307
|
+
* "uniVer": "x",
|
|
2308
|
+
* "unixVer": "x"
|
|
2309
|
+
* },
|
|
2310
|
+
* "kuaishou": {
|
|
2311
|
+
* "hostVer": "x",
|
|
2312
|
+
* "uniVer": "x",
|
|
2313
|
+
* "unixVer": "x"
|
|
2314
|
+
* },
|
|
2315
|
+
* "jd": {
|
|
2316
|
+
* "hostVer": "x",
|
|
2317
|
+
* "uniVer": "x",
|
|
2318
|
+
* "unixVer": "x"
|
|
2319
|
+
* }
|
|
2320
|
+
* },
|
|
2321
|
+
* "web": {
|
|
2322
|
+
* "uniVer": "√",
|
|
2323
|
+
* "unixVer": "4.0"
|
|
2324
|
+
* }
|
|
2325
|
+
* }
|
|
2326
|
+
*/
|
|
2327
|
+
const getCurrentPages: () => UniPage[]
|
|
2328
|
+
interface OnLoadOptions {
|
|
2329
|
+
[key: string]: string | null
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
/**
|
|
2333
|
+
* 监听页面返回回调参数
|
|
2334
|
+
*
|
|
2335
|
+
* @uniPlatform {
|
|
2336
|
+
* "app": {
|
|
2337
|
+
* "android": {
|
|
2338
|
+
* "osVer": "5.0",
|
|
2339
|
+
* "uniVer": "√",
|
|
2340
|
+
* "unixVer": "3.9"
|
|
2341
|
+
* },
|
|
2342
|
+
* "ios": {
|
|
2343
|
+
* "osVer": "10.0",
|
|
2344
|
+
* "uniVer": "√",
|
|
2345
|
+
* "unixVer": "4.11"
|
|
2346
|
+
* },
|
|
2347
|
+
* "harmony": {
|
|
2348
|
+
* "osVer": "3.0",
|
|
2349
|
+
* "uniVer": "4.23",
|
|
2350
|
+
* "unixVer": "4.61"
|
|
2351
|
+
* }
|
|
2352
|
+
* },
|
|
2353
|
+
* "mp": {
|
|
2354
|
+
* "weixin": {
|
|
2355
|
+
* "hostVer": "x",
|
|
2356
|
+
* "uniVer": "x",
|
|
2357
|
+
* "unixVer": "x"
|
|
2358
|
+
* },
|
|
2359
|
+
* "alipay": {
|
|
2360
|
+
* "hostVer": "√",
|
|
2361
|
+
* "uniVer": "√",
|
|
2362
|
+
* "unixVer": "x"
|
|
2363
|
+
* },
|
|
2364
|
+
* "baidu": {
|
|
2365
|
+
* "hostVer": "x",
|
|
2366
|
+
* "uniVer": "x",
|
|
2367
|
+
* "unixVer": "x"
|
|
2368
|
+
* },
|
|
2369
|
+
* "toutiao": {
|
|
2370
|
+
* "hostVer": "x",
|
|
2371
|
+
* "uniVer": "x",
|
|
2372
|
+
* "unixVer": "x"
|
|
2373
|
+
* },
|
|
2374
|
+
* "lark": {
|
|
2375
|
+
* "hostVer": "x",
|
|
2376
|
+
* "uniVer": "x",
|
|
2377
|
+
* "unixVer": "x"
|
|
2378
|
+
* },
|
|
2379
|
+
* "qq": {
|
|
2380
|
+
* "hostVer": "x",
|
|
2381
|
+
* "uniVer": "x",
|
|
2382
|
+
* "unixVer": "x"
|
|
2383
|
+
* },
|
|
2384
|
+
* "kuaishou": {
|
|
2385
|
+
* "hostVer": "x",
|
|
2386
|
+
* "uniVer": "x",
|
|
2387
|
+
* "unixVer": "x"
|
|
2388
|
+
* },
|
|
2389
|
+
* "jd": {
|
|
2390
|
+
* "hostVer": "x",
|
|
2391
|
+
* "uniVer": "x",
|
|
2392
|
+
* "unixVer": "x"
|
|
2393
|
+
* }
|
|
2394
|
+
* },
|
|
2395
|
+
* "web": {
|
|
2396
|
+
* "uniVer": "√",
|
|
2397
|
+
* "unixVer": "4.0"
|
|
2398
|
+
* }
|
|
2399
|
+
*}
|
|
2400
|
+
*/
|
|
2401
|
+
interface OnBackPressOptions {
|
|
2402
|
+
/**
|
|
2403
|
+
* - backbutton 顶部导航栏左边的返回按钮或 Android 实体返回键
|
|
2404
|
+
* - navigateBack 返回 API,即 uni.navigateBack()
|
|
2405
|
+
* @uniPlatform {
|
|
2406
|
+
* "app": {
|
|
2407
|
+
* "android": {
|
|
2408
|
+
* "osVer": "5.0",
|
|
2409
|
+
* "uniVer": "√",
|
|
2410
|
+
* "unixVer": "3.9"
|
|
2411
|
+
* },
|
|
2412
|
+
* "ios": {
|
|
2413
|
+
* "osVer": "10.0",
|
|
2414
|
+
* "uniVer": "√",
|
|
2415
|
+
* "unixVer": "4.11"
|
|
2416
|
+
* },
|
|
2417
|
+
* "harmony": {
|
|
2418
|
+
* "osVer": "3.0",
|
|
2419
|
+
* "uniVer": "4.23",
|
|
2420
|
+
* "unixVer": "4.61"
|
|
2421
|
+
* }
|
|
2422
|
+
* },
|
|
2423
|
+
* "mp": {
|
|
2424
|
+
* "weixin": {
|
|
2425
|
+
* "hostVer": "x",
|
|
2426
|
+
* "uniVer": "x",
|
|
2427
|
+
* "unixVer": "x"
|
|
2428
|
+
* },
|
|
2429
|
+
* "alipay": {
|
|
2430
|
+
* "hostVer": "√",
|
|
2431
|
+
* "uniVer": "√",
|
|
2432
|
+
* "unixVer": "x"
|
|
2433
|
+
* },
|
|
2434
|
+
* "baidu": {
|
|
2435
|
+
* "hostVer": "x",
|
|
2436
|
+
* "uniVer": "x",
|
|
2437
|
+
* "unixVer": "x"
|
|
2438
|
+
* },
|
|
2439
|
+
* "toutiao": {
|
|
2440
|
+
* "hostVer": "x",
|
|
2441
|
+
* "uniVer": "x",
|
|
2442
|
+
* "unixVer": "x"
|
|
2443
|
+
* },
|
|
2444
|
+
* "lark": {
|
|
2445
|
+
* "hostVer": "x",
|
|
2446
|
+
* "uniVer": "x",
|
|
2447
|
+
* "unixVer": "x"
|
|
2448
|
+
* },
|
|
2449
|
+
* "qq": {
|
|
2450
|
+
* "hostVer": "x",
|
|
2451
|
+
* "uniVer": "x",
|
|
2452
|
+
* "unixVer": "x"
|
|
2453
|
+
* },
|
|
2454
|
+
* "kuaishou": {
|
|
2455
|
+
* "hostVer": "x",
|
|
2456
|
+
* "uniVer": "x",
|
|
2457
|
+
* "unixVer": "x"
|
|
2458
|
+
* },
|
|
2459
|
+
* "jd": {
|
|
2460
|
+
* "hostVer": "x",
|
|
2461
|
+
* "uniVer": "x",
|
|
2462
|
+
* "unixVer": "x"
|
|
2463
|
+
* }
|
|
2464
|
+
* },
|
|
2465
|
+
* "web": {
|
|
2466
|
+
* "uniVer": "√",
|
|
2467
|
+
* "unixVer": "4.0"
|
|
2468
|
+
* }
|
|
2469
|
+
*}
|
|
2470
|
+
*/
|
|
2471
|
+
from: "backbutton" | "navigateBack"
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
/**
|
|
2475
|
+
* 页面滚动参数
|
|
2476
|
+
* @uniPlatform {
|
|
2477
|
+
* "app": {
|
|
2478
|
+
* "android": {
|
|
2479
|
+
* "osVer": "5.0",
|
|
2480
|
+
* "uniVer": "√",
|
|
2481
|
+
* "unixVer": "3.9"
|
|
2482
|
+
* },
|
|
2483
|
+
* "ios": {
|
|
2484
|
+
* "osVer": "10.0",
|
|
2485
|
+
* "uniVer": "√",
|
|
2486
|
+
* "unixVer": "4.13"
|
|
2487
|
+
* },
|
|
2488
|
+
* "harmony": {
|
|
2489
|
+
* "osVer": "3.0",
|
|
2490
|
+
* "uniVer": "4.23",
|
|
2491
|
+
* "unixVer": "4.61"
|
|
2492
|
+
* }
|
|
2493
|
+
* },
|
|
2494
|
+
* "mp": {
|
|
2495
|
+
* "weixin": {
|
|
2496
|
+
* "hostVer": "√",
|
|
2497
|
+
* "uniVer": "√",
|
|
2498
|
+
* "unixVer": "4.41"
|
|
2499
|
+
* },
|
|
2500
|
+
* "alipay": {
|
|
2501
|
+
* "hostVer": "√",
|
|
2502
|
+
* "uniVer": "√",
|
|
2503
|
+
* "unixVer": "x"
|
|
2504
|
+
* },
|
|
2505
|
+
* "baidu": {
|
|
2506
|
+
* "hostVer": "√",
|
|
2507
|
+
* "uniVer": "√",
|
|
2508
|
+
* "unixVer": "x"
|
|
2509
|
+
* },
|
|
2510
|
+
* "toutiao": {
|
|
2511
|
+
* "hostVer": "√",
|
|
2512
|
+
* "uniVer": "√",
|
|
2513
|
+
* "unixVer": "x"
|
|
2514
|
+
* },
|
|
2515
|
+
* "lark": {
|
|
2516
|
+
* "hostVer": "√",
|
|
2517
|
+
* "uniVer": "√",
|
|
2518
|
+
* "unixVer": "x"
|
|
2519
|
+
* },
|
|
2520
|
+
* "qq": {
|
|
2521
|
+
* "hostVer": "√",
|
|
2522
|
+
* "uniVer": "√",
|
|
2523
|
+
* "unixVer": "x"
|
|
2524
|
+
* },
|
|
2525
|
+
* "kuaishou": {
|
|
2526
|
+
* "hostVer": "√",
|
|
2527
|
+
* "uniVer": "√",
|
|
2528
|
+
* "unixVer": "x"
|
|
2529
|
+
* },
|
|
2530
|
+
* "jd": {
|
|
2531
|
+
* "hostVer": "√",
|
|
2532
|
+
* "uniVer": "√",
|
|
2533
|
+
* "unixVer": "x"
|
|
2534
|
+
* }
|
|
2535
|
+
* },
|
|
2536
|
+
* "web": {
|
|
2537
|
+
* "uniVer": "√",
|
|
2538
|
+
* "unixVer": "4.0"
|
|
2539
|
+
* }
|
|
2540
|
+
*}
|
|
2541
|
+
*/
|
|
2542
|
+
interface OnPageScrollOptions {
|
|
2543
|
+
/**
|
|
2544
|
+
* 页面在垂直方向已滚动的距离(单位 px)
|
|
2545
|
+
* @uniPlatform {
|
|
2546
|
+
* "app": {
|
|
2547
|
+
* "android": {
|
|
2548
|
+
* "osVer": "5.0",
|
|
2549
|
+
* "uniVer": "√",
|
|
2550
|
+
* "unixVer": "3.9"
|
|
2551
|
+
* },
|
|
2552
|
+
* "ios": {
|
|
2553
|
+
* "osVer": "10.0",
|
|
2554
|
+
* "uniVer": "√",
|
|
2555
|
+
* "unixVer": "4.13"
|
|
2556
|
+
* },
|
|
2557
|
+
* "harmony": {
|
|
2558
|
+
* "osVer": "3.0",
|
|
2559
|
+
* "uniVer": "4.23",
|
|
2560
|
+
* "unixVer": "4.61"
|
|
2561
|
+
* }
|
|
2562
|
+
* },
|
|
2563
|
+
* "mp": {
|
|
2564
|
+
* "weixin": {
|
|
2565
|
+
* "hostVer": "√",
|
|
2566
|
+
* "uniVer": "√",
|
|
2567
|
+
* "unixVer": "4.41"
|
|
2568
|
+
* },
|
|
2569
|
+
* "alipay": {
|
|
2570
|
+
* "hostVer": "√",
|
|
2571
|
+
* "uniVer": "√",
|
|
2572
|
+
* "unixVer": "x"
|
|
2573
|
+
* },
|
|
2574
|
+
* "baidu": {
|
|
2575
|
+
* "hostVer": "√",
|
|
2576
|
+
* "uniVer": "√",
|
|
2577
|
+
* "unixVer": "x"
|
|
2578
|
+
* },
|
|
2579
|
+
* "toutiao": {
|
|
2580
|
+
* "hostVer": "√",
|
|
2581
|
+
* "uniVer": "√",
|
|
2582
|
+
* "unixVer": "x"
|
|
2583
|
+
* },
|
|
2584
|
+
* "lark": {
|
|
2585
|
+
* "hostVer": "√",
|
|
2586
|
+
* "uniVer": "√",
|
|
2587
|
+
* "unixVer": "x"
|
|
2588
|
+
* },
|
|
2589
|
+
* "qq": {
|
|
2590
|
+
* "hostVer": "√",
|
|
2591
|
+
* "uniVer": "√",
|
|
2592
|
+
* "unixVer": "x"
|
|
2593
|
+
* },
|
|
2594
|
+
* "kuaishou": {
|
|
2595
|
+
* "hostVer": "√",
|
|
2596
|
+
* "uniVer": "√",
|
|
2597
|
+
* "unixVer": "x"
|
|
2598
|
+
* },
|
|
2599
|
+
* "jd": {
|
|
2600
|
+
* "hostVer": "√",
|
|
2601
|
+
* "uniVer": "√",
|
|
2602
|
+
* "unixVer": "x"
|
|
2603
|
+
* }
|
|
2604
|
+
* },
|
|
2605
|
+
* "web": {
|
|
2606
|
+
* "uniVer": "√",
|
|
2607
|
+
* "unixVer": "4.0"
|
|
2608
|
+
* }
|
|
2609
|
+
*}
|
|
2610
|
+
*/
|
|
2611
|
+
scrollTop: number
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
/**
|
|
2615
|
+
* 监听 tab 点击回调参数
|
|
2616
|
+
* @param options 监听 tab 点击回调参数
|
|
2617
|
+
*
|
|
2618
|
+
* @tutorial [https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle](https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle)
|
|
2619
|
+
* @uniPlatform {
|
|
2620
|
+
* "app": {
|
|
2621
|
+
* "android": {
|
|
2622
|
+
* "osVer": "5.0",
|
|
2623
|
+
* "uniVer": "√",
|
|
2624
|
+
* "unixVer": "x"
|
|
2625
|
+
* },
|
|
2626
|
+
* "ios": {
|
|
2627
|
+
* "osVer": "10.0",
|
|
2628
|
+
* "uniVer": "√",
|
|
2629
|
+
* "unixVer": "x"
|
|
2630
|
+
* },
|
|
2631
|
+
* "harmony": {
|
|
2632
|
+
* "osVer": "3.0",
|
|
2633
|
+
* "uniVer": "4.23",
|
|
2634
|
+
* "unixVer": "4.61"
|
|
2635
|
+
* }
|
|
2636
|
+
* },
|
|
2637
|
+
* "mp": {
|
|
2638
|
+
* "weixin": {
|
|
2639
|
+
* "hostVer": "√",
|
|
2640
|
+
* "uniVer": "√",
|
|
2641
|
+
* "unixVer": "4.41"
|
|
2642
|
+
* },
|
|
2643
|
+
* "alipay": {
|
|
2644
|
+
* "hostVer": "√",
|
|
2645
|
+
* "uniVer": "√",
|
|
2646
|
+
* "unixVer": "x"
|
|
2647
|
+
* },
|
|
2648
|
+
* "baidu": {
|
|
2649
|
+
* "hostVer": "√",
|
|
2650
|
+
* "uniVer": "√",
|
|
2651
|
+
* "unixVer": "x"
|
|
2652
|
+
* },
|
|
2653
|
+
* "toutiao": {
|
|
2654
|
+
* "hostVer": "x",
|
|
2655
|
+
* "uniVer": "x",
|
|
2656
|
+
* "unixVer": "x"
|
|
2657
|
+
* },
|
|
2658
|
+
* "lark": {
|
|
2659
|
+
* "hostVer": "x",
|
|
2660
|
+
* "uniVer": "x",
|
|
2661
|
+
* "unixVer": "x"
|
|
2662
|
+
* },
|
|
2663
|
+
* "qq": {
|
|
2664
|
+
* "hostVer": "√",
|
|
2665
|
+
* "uniVer": "√",
|
|
2666
|
+
* "unixVer": "x"
|
|
2667
|
+
* },
|
|
2668
|
+
* "kuaishou": {
|
|
2669
|
+
* "hostVer": "√",
|
|
2670
|
+
* "uniVer": "√",
|
|
2671
|
+
* "unixVer": "x"
|
|
2672
|
+
* },
|
|
2673
|
+
* "jd": {
|
|
2674
|
+
* "hostVer": "√",
|
|
2675
|
+
* "uniVer": "√",
|
|
2676
|
+
* "unixVer": "x"
|
|
2677
|
+
* }
|
|
2678
|
+
* },
|
|
2679
|
+
* "web": {
|
|
2680
|
+
* "uniVer": "√",
|
|
2681
|
+
* "unixVer": "4.0"
|
|
2682
|
+
* }
|
|
2683
|
+
*}
|
|
2684
|
+
*/
|
|
2685
|
+
interface OnTabItemTapOption {
|
|
2686
|
+
/**
|
|
2687
|
+
* 被点击 tabItem 的序号,从0开始
|
|
2688
|
+
* @uniPlatform {
|
|
2689
|
+
* "app": {
|
|
2690
|
+
* "android": {
|
|
2691
|
+
* "osVer": "5.0",
|
|
2692
|
+
* "uniVer": "√",
|
|
2693
|
+
* "unixVer": "x"
|
|
2694
|
+
* },
|
|
2695
|
+
* "ios": {
|
|
2696
|
+
* "osVer": "10.0",
|
|
2697
|
+
* "uniVer": "√",
|
|
2698
|
+
* "unixVer": "x"
|
|
2699
|
+
* },
|
|
2700
|
+
* "harmony": {
|
|
2701
|
+
* "osVer": "3.0",
|
|
2702
|
+
* "uniVer": "4.23",
|
|
2703
|
+
* "unixVer": "4.61"
|
|
2704
|
+
* }
|
|
2705
|
+
* },
|
|
2706
|
+
* "mp": {
|
|
2707
|
+
* "weixin": {
|
|
2708
|
+
* "hostVer": "√",
|
|
2709
|
+
* "uniVer": "√",
|
|
2710
|
+
* "unixVer": "4.41"
|
|
2711
|
+
* },
|
|
2712
|
+
* "alipay": {
|
|
2713
|
+
* "hostVer": "√",
|
|
2714
|
+
* "uniVer": "√",
|
|
2715
|
+
* "unixVer": "x"
|
|
2716
|
+
* },
|
|
2717
|
+
* "baidu": {
|
|
2718
|
+
* "hostVer": "√",
|
|
2719
|
+
* "uniVer": "√",
|
|
2720
|
+
* "unixVer": "x"
|
|
2721
|
+
* },
|
|
2722
|
+
* "toutiao": {
|
|
2723
|
+
* "hostVer": "x",
|
|
2724
|
+
* "uniVer": "x",
|
|
2725
|
+
* "unixVer": "x"
|
|
2726
|
+
* },
|
|
2727
|
+
* "lark": {
|
|
2728
|
+
* "hostVer": "x",
|
|
2729
|
+
* "uniVer": "x",
|
|
2730
|
+
* "unixVer": "x"
|
|
2731
|
+
* },
|
|
2732
|
+
* "qq": {
|
|
2733
|
+
* "hostVer": "√",
|
|
2734
|
+
* "uniVer": "√",
|
|
2735
|
+
* "unixVer": "x"
|
|
2736
|
+
* },
|
|
2737
|
+
* "kuaishou": {
|
|
2738
|
+
* "hostVer": "√",
|
|
2739
|
+
* "uniVer": "√",
|
|
2740
|
+
* "unixVer": "x"
|
|
2741
|
+
* },
|
|
2742
|
+
* "jd": {
|
|
2743
|
+
* "hostVer": "√",
|
|
2744
|
+
* "uniVer": "√",
|
|
2745
|
+
* "unixVer": "x"
|
|
2746
|
+
* }
|
|
2747
|
+
* },
|
|
2748
|
+
* "web": {
|
|
2749
|
+
* "uniVer": "√",
|
|
2750
|
+
* "unixVer": "4.0"
|
|
2751
|
+
* }
|
|
2752
|
+
*}
|
|
2753
|
+
*/
|
|
2754
|
+
index: number
|
|
2755
|
+
/**
|
|
2756
|
+
* 被点击 tabItem 的页面路径
|
|
2757
|
+
* @uniPlatform {
|
|
2758
|
+
* "app": {
|
|
2759
|
+
* "android": {
|
|
2760
|
+
* "osVer": "5.0",
|
|
2761
|
+
* "uniVer": "√",
|
|
2762
|
+
* "unixVer": "x"
|
|
2763
|
+
* },
|
|
2764
|
+
* "ios": {
|
|
2765
|
+
* "osVer": "10.0",
|
|
2766
|
+
* "uniVer": "√",
|
|
2767
|
+
* "unixVer": "x"
|
|
2768
|
+
* },
|
|
2769
|
+
* "harmony": {
|
|
2770
|
+
* "osVer": "3.0",
|
|
2771
|
+
* "uniVer": "4.23",
|
|
2772
|
+
* "unixVer": "4.61"
|
|
2773
|
+
* }
|
|
2774
|
+
* },
|
|
2775
|
+
* "mp": {
|
|
2776
|
+
* "weixin": {
|
|
2777
|
+
* "hostVer": "√",
|
|
2778
|
+
* "uniVer": "√",
|
|
2779
|
+
* "unixVer": "4.41"
|
|
2780
|
+
* },
|
|
2781
|
+
* "alipay": {
|
|
2782
|
+
* "hostVer": "√",
|
|
2783
|
+
* "uniVer": "√",
|
|
2784
|
+
* "unixVer": "x"
|
|
2785
|
+
* },
|
|
2786
|
+
* "baidu": {
|
|
2787
|
+
* "hostVer": "√",
|
|
2788
|
+
* "uniVer": "√",
|
|
2789
|
+
* "unixVer": "x"
|
|
2790
|
+
* },
|
|
2791
|
+
* "toutiao": {
|
|
2792
|
+
* "hostVer": "x",
|
|
2793
|
+
* "uniVer": "x",
|
|
2794
|
+
* "unixVer": "x"
|
|
2795
|
+
* },
|
|
2796
|
+
* "lark": {
|
|
2797
|
+
* "hostVer": "x",
|
|
2798
|
+
* "uniVer": "x",
|
|
2799
|
+
* "unixVer": "x"
|
|
2800
|
+
* },
|
|
2801
|
+
* "qq": {
|
|
2802
|
+
* "hostVer": "√",
|
|
2803
|
+
* "uniVer": "√",
|
|
2804
|
+
* "unixVer": "x"
|
|
2805
|
+
* },
|
|
2806
|
+
* "kuaishou": {
|
|
2807
|
+
* "hostVer": "√",
|
|
2808
|
+
* "uniVer": "√",
|
|
2809
|
+
* "unixVer": "x"
|
|
2810
|
+
* },
|
|
2811
|
+
* "jd": {
|
|
2812
|
+
* "hostVer": "√",
|
|
2813
|
+
* "uniVer": "√",
|
|
2814
|
+
* "unixVer": "x"
|
|
2815
|
+
* }
|
|
2816
|
+
* },
|
|
2817
|
+
* "web": {
|
|
2818
|
+
* "uniVer": "√",
|
|
2819
|
+
* "unixVer": "4.0"
|
|
2820
|
+
* }
|
|
2821
|
+
*}
|
|
1824
2822
|
*/
|
|
1825
2823
|
pagePath: string
|
|
1826
2824
|
/**
|
|
1827
2825
|
* 被点击 tabItem 的按钮文字
|
|
2826
|
+
* @uniPlatform {
|
|
2827
|
+
* "app": {
|
|
2828
|
+
* "android": {
|
|
2829
|
+
* "osVer": "5.0",
|
|
2830
|
+
* "uniVer": "√",
|
|
2831
|
+
* "unixVer": "x"
|
|
2832
|
+
* },
|
|
2833
|
+
* "ios": {
|
|
2834
|
+
* "osVer": "10.0",
|
|
2835
|
+
* "uniVer": "√",
|
|
2836
|
+
* "unixVer": "x"
|
|
2837
|
+
* },
|
|
2838
|
+
* "harmony": {
|
|
2839
|
+
* "osVer": "3.0",
|
|
2840
|
+
* "uniVer": "4.23",
|
|
2841
|
+
* "unixVer": "4.61"
|
|
2842
|
+
* }
|
|
2843
|
+
* },
|
|
2844
|
+
* "mp": {
|
|
2845
|
+
* "weixin": {
|
|
2846
|
+
* "hostVer": "√",
|
|
2847
|
+
* "uniVer": "√",
|
|
2848
|
+
* "unixVer": "4.41"
|
|
2849
|
+
* },
|
|
2850
|
+
* "alipay": {
|
|
2851
|
+
* "hostVer": "√",
|
|
2852
|
+
* "uniVer": "√",
|
|
2853
|
+
* "unixVer": "x"
|
|
2854
|
+
* },
|
|
2855
|
+
* "baidu": {
|
|
2856
|
+
* "hostVer": "√",
|
|
2857
|
+
* "uniVer": "√",
|
|
2858
|
+
* "unixVer": "x"
|
|
2859
|
+
* },
|
|
2860
|
+
* "toutiao": {
|
|
2861
|
+
* "hostVer": "x",
|
|
2862
|
+
* "uniVer": "x",
|
|
2863
|
+
* "unixVer": "x"
|
|
2864
|
+
* },
|
|
2865
|
+
* "lark": {
|
|
2866
|
+
* "hostVer": "x",
|
|
2867
|
+
* "uniVer": "x",
|
|
2868
|
+
* "unixVer": "x"
|
|
2869
|
+
* },
|
|
2870
|
+
* "qq": {
|
|
2871
|
+
* "hostVer": "√",
|
|
2872
|
+
* "uniVer": "√",
|
|
2873
|
+
* "unixVer": "x"
|
|
2874
|
+
* },
|
|
2875
|
+
* "kuaishou": {
|
|
2876
|
+
* "hostVer": "√",
|
|
2877
|
+
* "uniVer": "√",
|
|
2878
|
+
* "unixVer": "x"
|
|
2879
|
+
* },
|
|
2880
|
+
* "jd": {
|
|
2881
|
+
* "hostVer": "√",
|
|
2882
|
+
* "uniVer": "√",
|
|
2883
|
+
* "unixVer": "x"
|
|
2884
|
+
* }
|
|
2885
|
+
* },
|
|
2886
|
+
* "web": {
|
|
2887
|
+
* "uniVer": "√",
|
|
2888
|
+
* "unixVer": "4.0"
|
|
2889
|
+
* }
|
|
2890
|
+
*}
|
|
1828
2891
|
*/
|
|
1829
2892
|
text: string
|
|
1830
2893
|
}
|
|
1831
2894
|
|
|
2895
|
+
/**
|
|
2896
|
+
* 页面尺寸改变时回调参数
|
|
2897
|
+
*
|
|
2898
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/page.html#lifecycle
|
|
2899
|
+
* @uniPlatform {
|
|
2900
|
+
* "app": {
|
|
2901
|
+
* "android": {
|
|
2902
|
+
* "osVer": "5.0",
|
|
2903
|
+
* "uniVer": "√",
|
|
2904
|
+
* "unixVer": "3.9"
|
|
2905
|
+
* },
|
|
2906
|
+
* "ios": {
|
|
2907
|
+
* "osVer": "10.0",
|
|
2908
|
+
* "uniVer": "√",
|
|
2909
|
+
* "unixVer": "4.11"
|
|
2910
|
+
* },
|
|
2911
|
+
* "harmony": {
|
|
2912
|
+
* "osVer": "3.0",
|
|
2913
|
+
* "uniVer": "4.23",
|
|
2914
|
+
* "unixVer": "4.61"
|
|
2915
|
+
* }
|
|
2916
|
+
* },
|
|
2917
|
+
* "mp": {
|
|
2918
|
+
* "weixin": {
|
|
2919
|
+
* "hostVer": "√",
|
|
2920
|
+
* "uniVer": "√",
|
|
2921
|
+
* "unixVer": "4.41"
|
|
2922
|
+
* },
|
|
2923
|
+
* "alipay": {
|
|
2924
|
+
* "hostVer": "x",
|
|
2925
|
+
* "uniVer": "x",
|
|
2926
|
+
* "unixVer": "x"
|
|
2927
|
+
* },
|
|
2928
|
+
* "baidu": {
|
|
2929
|
+
* "hostVer": "x",
|
|
2930
|
+
* "uniVer": "x",
|
|
2931
|
+
* "unixVer": "x"
|
|
2932
|
+
* },
|
|
2933
|
+
* "toutiao": {
|
|
2934
|
+
* "hostVer": "x",
|
|
2935
|
+
* "uniVer": "x",
|
|
2936
|
+
* "unixVer": "x"
|
|
2937
|
+
* },
|
|
2938
|
+
* "lark": {
|
|
2939
|
+
* "hostVer": "x",
|
|
2940
|
+
* "uniVer": "x",
|
|
2941
|
+
* "unixVer": "x"
|
|
2942
|
+
* },
|
|
2943
|
+
* "qq": {
|
|
2944
|
+
* "hostVer": "x",
|
|
2945
|
+
* "uniVer": "x",
|
|
2946
|
+
* "unixVer": "x"
|
|
2947
|
+
* },
|
|
2948
|
+
* "kuaishou": {
|
|
2949
|
+
* "hostVer": "√",
|
|
2950
|
+
* "uniVer": "√",
|
|
2951
|
+
* "unixVer": "x"
|
|
2952
|
+
* },
|
|
2953
|
+
* "jd": {
|
|
2954
|
+
* "hostVer": "x",
|
|
2955
|
+
* "uniVer": "x",
|
|
2956
|
+
* "unixVer": "x"
|
|
2957
|
+
* }
|
|
2958
|
+
* },
|
|
2959
|
+
* "web": {
|
|
2960
|
+
* "uniVer": "√",
|
|
2961
|
+
* "unixVer": "4.0"
|
|
2962
|
+
* }
|
|
2963
|
+
*}
|
|
2964
|
+
*/
|
|
1832
2965
|
interface OnResizeOptions {
|
|
1833
2966
|
/**
|
|
1834
2967
|
* 屏幕方向
|
|
2968
|
+
* @uniPlatform {
|
|
2969
|
+
* "app": {
|
|
2970
|
+
* "android": {
|
|
2971
|
+
* "osVer": "5.0",
|
|
2972
|
+
* "uniVer": "√",
|
|
2973
|
+
* "unixVer": "3.9"
|
|
2974
|
+
* },
|
|
2975
|
+
* "ios": {
|
|
2976
|
+
* "osVer": "10.0",
|
|
2977
|
+
* "uniVer": "√",
|
|
2978
|
+
* "unixVer": "4.11"
|
|
2979
|
+
* },
|
|
2980
|
+
* "harmony": {
|
|
2981
|
+
* "osVer": "3.0",
|
|
2982
|
+
* "uniVer": "4.23",
|
|
2983
|
+
* "unixVer": "4.61"
|
|
2984
|
+
* }
|
|
2985
|
+
* },
|
|
2986
|
+
* "mp": {
|
|
2987
|
+
* "weixin": {
|
|
2988
|
+
* "hostVer": "√",
|
|
2989
|
+
* "uniVer": "√",
|
|
2990
|
+
* "unixVer": "4.41"
|
|
2991
|
+
* },
|
|
2992
|
+
* "alipay": {
|
|
2993
|
+
* "hostVer": "x",
|
|
2994
|
+
* "uniVer": "x",
|
|
2995
|
+
* "unixVer": "x"
|
|
2996
|
+
* },
|
|
2997
|
+
* "baidu": {
|
|
2998
|
+
* "hostVer": "x",
|
|
2999
|
+
* "uniVer": "x",
|
|
3000
|
+
* "unixVer": "x"
|
|
3001
|
+
* },
|
|
3002
|
+
* "toutiao": {
|
|
3003
|
+
* "hostVer": "x",
|
|
3004
|
+
* "uniVer": "x",
|
|
3005
|
+
* "unixVer": "x"
|
|
3006
|
+
* },
|
|
3007
|
+
* "lark": {
|
|
3008
|
+
* "hostVer": "x",
|
|
3009
|
+
* "uniVer": "x",
|
|
3010
|
+
* "unixVer": "x"
|
|
3011
|
+
* },
|
|
3012
|
+
* "qq": {
|
|
3013
|
+
* "hostVer": "x",
|
|
3014
|
+
* "uniVer": "x",
|
|
3015
|
+
* "unixVer": "x"
|
|
3016
|
+
* },
|
|
3017
|
+
* "kuaishou": {
|
|
3018
|
+
* "hostVer": "√",
|
|
3019
|
+
* "uniVer": "√",
|
|
3020
|
+
* "unixVer": "x"
|
|
3021
|
+
* },
|
|
3022
|
+
* "jd": {
|
|
3023
|
+
* "hostVer": "x",
|
|
3024
|
+
* "uniVer": "x",
|
|
3025
|
+
* "unixVer": "x"
|
|
3026
|
+
* }
|
|
3027
|
+
* },
|
|
3028
|
+
* "web": {
|
|
3029
|
+
* "uniVer": "√",
|
|
3030
|
+
* "unixVer": "4.0"
|
|
3031
|
+
* }
|
|
3032
|
+
*}
|
|
1835
3033
|
*/
|
|
1836
3034
|
deviceOrientation: string
|
|
1837
3035
|
/**
|
|
1838
3036
|
* 新的显示区域尺寸
|
|
3037
|
+
* @uniPlatform {
|
|
3038
|
+
* "app": {
|
|
3039
|
+
* "android": {
|
|
3040
|
+
* "osVer": "5.0",
|
|
3041
|
+
* "uniVer": "√",
|
|
3042
|
+
* "unixVer": "3.9"
|
|
3043
|
+
* },
|
|
3044
|
+
* "ios": {
|
|
3045
|
+
* "osVer": "10.0",
|
|
3046
|
+
* "uniVer": "√",
|
|
3047
|
+
* "unixVer": "4.11"
|
|
3048
|
+
* },
|
|
3049
|
+
* "harmony": {
|
|
3050
|
+
* "osVer": "3.0",
|
|
3051
|
+
* "uniVer": "4.23",
|
|
3052
|
+
* "unixVer": "4.61"
|
|
3053
|
+
* }
|
|
3054
|
+
* },
|
|
3055
|
+
* "mp": {
|
|
3056
|
+
* "weixin": {
|
|
3057
|
+
* "hostVer": "√",
|
|
3058
|
+
* "uniVer": "√",
|
|
3059
|
+
* "unixVer": "4.41"
|
|
3060
|
+
* },
|
|
3061
|
+
* "alipay": {
|
|
3062
|
+
* "hostVer": "x",
|
|
3063
|
+
* "uniVer": "x",
|
|
3064
|
+
* "unixVer": "x"
|
|
3065
|
+
* },
|
|
3066
|
+
* "baidu": {
|
|
3067
|
+
* "hostVer": "x",
|
|
3068
|
+
* "uniVer": "x",
|
|
3069
|
+
* "unixVer": "x"
|
|
3070
|
+
* },
|
|
3071
|
+
* "toutiao": {
|
|
3072
|
+
* "hostVer": "x",
|
|
3073
|
+
* "uniVer": "x",
|
|
3074
|
+
* "unixVer": "x"
|
|
3075
|
+
* },
|
|
3076
|
+
* "lark": {
|
|
3077
|
+
* "hostVer": "x",
|
|
3078
|
+
* "uniVer": "x",
|
|
3079
|
+
* "unixVer": "x"
|
|
3080
|
+
* },
|
|
3081
|
+
* "qq": {
|
|
3082
|
+
* "hostVer": "x",
|
|
3083
|
+
* "uniVer": "x",
|
|
3084
|
+
* "unixVer": "x"
|
|
3085
|
+
* },
|
|
3086
|
+
* "kuaishou": {
|
|
3087
|
+
* "hostVer": "√",
|
|
3088
|
+
* "uniVer": "√",
|
|
3089
|
+
* "unixVer": "x"
|
|
3090
|
+
* },
|
|
3091
|
+
* "jd": {
|
|
3092
|
+
* "hostVer": "x",
|
|
3093
|
+
* "uniVer": "x",
|
|
3094
|
+
* "unixVer": "x"
|
|
3095
|
+
* }
|
|
3096
|
+
* },
|
|
3097
|
+
* "web": {
|
|
3098
|
+
* "uniVer": "√",
|
|
3099
|
+
* "unixVer": "4.0"
|
|
3100
|
+
* }
|
|
3101
|
+
*}
|
|
1839
3102
|
*/
|
|
1840
3103
|
size: OnResizeSize
|
|
1841
3104
|
}
|
|
1842
3105
|
|
|
1843
3106
|
type Page = PageOrigin
|
|
1844
|
-
type UniPage = UniPageOrigin
|
|
3107
|
+
// type UniPage = UniPageOrigin
|
|
1845
3108
|
}
|
|
1846
3109
|
|
|
1847
3110
|
declare module "@vue/runtime-core" {
|
|
1848
|
-
interface ComponentCustomOptions extends PageInstance {}
|
|
3111
|
+
interface ComponentCustomOptions extends PageInstance { }
|
|
1849
3112
|
}
|