@dcloudio/uni-app-x 0.7.11 → 0.7.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/.prettierrc +5 -0
  2. package/package.json +2 -2
  3. package/types/native/IUniElement.d.ts +30 -47
  4. package/types/native/UniApp.d.ts +17 -4
  5. package/types/native/UniDocument.d.ts +52 -4
  6. package/types/native/UniNativePage.d.ts +59 -34
  7. package/types/native/UniNestedPreScrollEvent.d.ts +45 -46
  8. package/types/native/UniTabsElement.d.ts +51 -21
  9. package/types/native/UniTextElement.d.ts +18 -1
  10. package/types/uni/global.d.ts +0 -1
  11. package/types/uni/index.d.ts +0 -1
  12. package/types/uni/uts-plugin-api/global.d.ts +12 -0
  13. package/types/uni/uts-plugin-api/index.d.ts +12 -0
  14. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +412 -0
  15. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +36 -6
  16. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +277 -0
  17. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +41 -14
  18. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +17 -17
  19. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +15 -15
  20. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +2 -2
  21. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +73 -0
  22. package/types/uni/{core/lib/lifecycle → uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk}/global.d.ts +2 -0
  23. package/types/uni/{core/lib/lifecycle → uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk}/index.d.ts +1 -0
  24. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +39 -0
  25. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +1 -1
  26. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +157 -0
  27. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +9 -9
  28. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
  29. package/types/uni/{core/lib/base/interceptor → uts-plugin-api/lib/uni-interceptor/utssdk}/global.d.ts +0 -2
  30. package/types/uni/{core/lib/base/interceptor → uts-plugin-api/lib/uni-interceptor/utssdk}/index.d.ts +0 -1
  31. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +152 -0
  32. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +557 -0
  33. package/types/uni/{core/lib/ui/set-navigation-bar-color → uts-plugin-api/lib/uni-navigationBar/utssdk}/global.d.ts +20 -4
  34. package/types/uni/{core/lib/ui/set-navigation-bar-title → uts-plugin-api/lib/uni-navigationBar/utssdk}/index.d.ts +10 -2
  35. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +794 -0
  36. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +10 -0
  37. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +5 -0
  38. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +107 -39
  39. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +20 -20
  40. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
  41. package/types/uni/{core/lib/ui/page-scroll-to → uts-plugin-api/lib/uni-pageScrollTo/utssdk}/global.d.ts +2 -4
  42. package/types/uni/{core/lib/ui/page-scroll-to → uts-plugin-api/lib/uni-pageScrollTo/utssdk}/index.d.ts +1 -2
  43. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +143 -0
  44. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +1 -1
  45. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +45 -45
  46. package/types/uni/{core/lib/ui/pull-down-refresh → uts-plugin-api/lib/uni-pullDownRefresh/utssdk}/global.d.ts +2 -4
  47. package/types/uni/{core/lib/ui/pull-down-refresh → uts-plugin-api/lib/uni-pullDownRefresh/utssdk}/index.d.ts +1 -2
  48. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +174 -0
  49. package/types/uni/{core/lib/route → uts-plugin-api/lib/uni-route/utssdk}/global.d.ts +0 -10
  50. package/types/uni/{core/lib/route → uts-plugin-api/lib/uni-route/utssdk}/index.d.ts +0 -5
  51. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2020 -0
  52. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +2 -2
  53. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +21 -21
  54. package/types/uni/{core/lib/ui/tab-bar → uts-plugin-api/lib/uni-tabBar/utssdk}/global.d.ts +4 -2
  55. package/types/uni/{core/lib/ui/tab-bar → uts-plugin-api/lib/uni-tabBar/utssdk}/index.d.ts +2 -1
  56. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +926 -0
  57. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +26 -26
  58. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +59 -9
  59. package/types/uni/core/global.d.ts +0 -13
  60. package/types/uni/core/index.d.ts +0 -13
  61. package/types/uni/core/lib/base/event/interface.d.ts +0 -277
  62. package/types/uni/core/lib/base/interceptor/interface.d.ts +0 -150
  63. package/types/uni/core/lib/interface.d.ts +0 -28
  64. package/types/uni/core/lib/lifecycle/interface.d.ts +0 -37
  65. package/types/uni/core/lib/performance/interface.d.ts +0 -157
  66. package/types/uni/core/lib/route/interface.d.ts +0 -2031
  67. package/types/uni/core/lib/ui/create-selector-query/interface.d.ts +0 -412
  68. package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +0 -73
  69. package/types/uni/core/lib/ui/load-font-face/interface.d.ts +0 -560
  70. package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +0 -145
  71. package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +0 -176
  72. package/types/uni/core/lib/ui/set-navigation-bar-color/index.d.ts +0 -13
  73. package/types/uni/core/lib/ui/set-navigation-bar-color/interface.d.ts +0 -431
  74. package/types/uni/core/lib/ui/set-navigation-bar-title/global.d.ts +0 -28
  75. package/types/uni/core/lib/ui/set-navigation-bar-title/interface.d.ts +0 -368
  76. package/types/uni/core/lib/ui/tab-bar/interface.d.ts +0 -928
  77. package/types/uni/{core/lib/ui/create-selector-query → uts-plugin-api/lib/uni-createSelectorQuery/utssdk}/global.d.ts +0 -0
  78. package/types/uni/{core/lib/ui/create-selector-query → uts-plugin-api/lib/uni-createSelectorQuery/utssdk}/index.d.ts +0 -0
  79. package/types/uni/{core/lib/base/event → uts-plugin-api/lib/uni-event/utssdk}/global.d.ts +0 -0
  80. package/types/uni/{core/lib/base/event → uts-plugin-api/lib/uni-event/utssdk}/index.d.ts +0 -0
  81. package/types/uni/{core/lib/ui/get-element-by-id → uts-plugin-api/lib/uni-getElementById/utssdk}/global.d.ts +0 -0
  82. package/types/uni/{core/lib/ui/get-element-by-id → uts-plugin-api/lib/uni-getElementById/utssdk}/index.d.ts +0 -0
  83. package/types/uni/{core/lib/performance → uts-plugin-api/lib/uni-getPerformance/utssdk}/global.d.ts +0 -0
  84. package/types/uni/{core/lib/performance → uts-plugin-api/lib/uni-getPerformance/utssdk}/index.d.ts +0 -0
  85. package/types/uni/{core/lib/ui/load-font-face → uts-plugin-api/lib/uni-loadFontFace/utssdk}/global.d.ts +2 -2
  86. package/types/uni/{core/lib/ui/load-font-face → uts-plugin-api/lib/uni-loadFontFace/utssdk}/index.d.ts +1 -1
@@ -1,2031 +0,0 @@
1
- import { AsyncApiSuccessResult } from '../interface'
2
-
3
- /**
4
- * 路由错误码
5
- * - 4: 框架内部异常
6
- */
7
- export type RouteErrorCode = 4
8
-
9
- export interface NavigateBackError extends IUniError {
10
- errCode: RouteErrorCode
11
- }
12
-
13
- export interface NavigateToError extends IUniError {
14
- errCode: RouteErrorCode
15
- }
16
-
17
- export interface RedirectToError extends IUniError {
18
- errCode: RouteErrorCode
19
- }
20
-
21
- export interface ReLaunchError extends IUniError {
22
- errCode: RouteErrorCode
23
- }
24
-
25
- export interface SwitchTabError extends IUniError {
26
- errCode: RouteErrorCode
27
- }
28
-
29
- /**
30
- *
31
- * @tutorial http://uniapp.dcloud.io/api/router.html#event-channel
32
- */
33
- export type EventChannel = {}
34
- export type NavigateToSuccess = AsyncApiSuccessResult
35
- type NavigateToSuccessCallback = (result: NavigateToSuccess) => void
36
- export type NavigateToFail = NavigateToError
37
-
38
- type NavigateToFailCallback = (result: NavigateToFail) => void
39
- export type NavigateToComplete = AsyncApiResult
40
- type NavigateToCompleteCallback = (result: NavigateToComplete) => void
41
- export type NavigateToOptions = {
42
- /**
43
- * 需要跳转的应用内非 tabBar 的页面的路径 , 路径后可以带参数
44
- * @uniPlatform {
45
- * "app": {
46
- * "android": {
47
- * "osVer": "5.0",
48
- * "uniVer": "√",
49
- * "unixVer": "√"
50
- * },
51
- * "ios": {
52
- * "osVer": "10.0",
53
- * "uniVer": "√",
54
- * "unixVer": "4.05"
55
- * }
56
- * },
57
- * "mp": {
58
- * "weixin": {
59
- * "hostVer": "√",
60
- * "uniVer": "√",
61
- * "unixVer": "x"
62
- * },
63
- * "alipay": {
64
- * "hostVer": "√",
65
- * "uniVer": "√",
66
- * "unixVer": "x"
67
- * },
68
- * "baidu": {
69
- * "hostVer": "√",
70
- * "uniVer": "√",
71
- * "unixVer": "x"
72
- * },
73
- * "toutiao": {
74
- * "hostVer": "√",
75
- * "uniVer": "√",
76
- * "unixVer": "x"
77
- * },
78
- * "lark": {
79
- * "hostVer": "√",
80
- * "uniVer": "√",
81
- * "unixVer": "x"
82
- * },
83
- * "qq": {
84
- * "hostVer": "√",
85
- * "uniVer": "√",
86
- * "unixVer": "x"
87
- * },
88
- * "kuaishou": {
89
- * "hostVer": "√",
90
- * "uniVer": "√",
91
- * "unixVer": "x"
92
- * },
93
- * "jd": {
94
- * "hostVer": "√",
95
- * "uniVer": "√",
96
- * "unixVer": "x"
97
- * }
98
- * },
99
- * "web": {
100
- * "uniVer": "√",
101
- * "unixVer": "4.0"
102
- * }
103
- * }
104
- */
105
- url: string | string.PageURIString
106
- /**
107
- * 窗口显示的动画类型
108
- * - auto: 自动选择动画效果
109
- * - none: 无动画效果
110
- * - slide-in-right: 从右侧横向滑动效果
111
- * - slide-in-left: 左侧横向滑动效果
112
- * - slide-in-top: 从上侧竖向滑动效果
113
- * - slide-in-bottom: 从下侧竖向滑动效果
114
- * - fade-in: 从透明到不透明逐渐显示效果
115
- * - zoom-out: 从小到大逐渐放大显示效果
116
- * - zoom-fade-out: 从小到大逐渐放大并且从透明到不透明逐渐显示效果
117
- * - pop-in: 从右侧平移入栈动画效果
118
- * - UnionType => 'auto' | 'none' | 'slide-in-right' | 'slide-in-left' | 'slide-in-top' | 'slide-in-bottom' | 'fade-in' | 'zoom-out' | 'zoom-fade-out' | 'pop-in'
119
- * @uniPlatform {
120
- * "app": {
121
- * "android": {
122
- * "osVer": "5.0",
123
- * "uniVer": "√",
124
- * "unixVer": "x"
125
- * },
126
- * "ios": {
127
- * "osVer": "10.0",
128
- * "uniVer": "√",
129
- * "unixVer": "x"
130
- * }
131
- * },
132
- * "mp": {
133
- * "weixin": {
134
- * "hostVer": "√",
135
- * "uniVer": "√",
136
- * "unixVer": "x"
137
- * },
138
- * "alipay": {
139
- * "hostVer": "√",
140
- * "uniVer": "√",
141
- * "unixVer": "x"
142
- * },
143
- * "baidu": {
144
- * "hostVer": "√",
145
- * "uniVer": "√",
146
- * "unixVer": "x"
147
- * },
148
- * "toutiao": {
149
- * "hostVer": "√",
150
- * "uniVer": "√",
151
- * "unixVer": "x"
152
- * },
153
- * "lark": {
154
- * "hostVer": "√",
155
- * "uniVer": "√",
156
- * "unixVer": "x"
157
- * },
158
- * "qq": {
159
- * "hostVer": "√",
160
- * "uniVer": "√",
161
- * "unixVer": "x"
162
- * },
163
- * "kuaishou": {
164
- * "hostVer": "√",
165
- * "uniVer": "√",
166
- * "unixVer": "x"
167
- * },
168
- * "jd": {
169
- * "hostVer": "√",
170
- * "uniVer": "√",
171
- * "unixVer": "x"
172
- * }
173
- * },
174
- * "web": {
175
- * "uniVer": "√",
176
- * "unixVer": "4.0"
177
- * }
178
- * }
179
- */
180
- animationType?: string | null
181
- /**
182
- * 窗口显示动画的持续时间,单位为 ms
183
- * @uniPlatform {
184
- * "app": {
185
- * "android": {
186
- * "osVer": "5.0",
187
- * "uniVer": "√",
188
- * "unixVer": "x"
189
- * },
190
- * "ios": {
191
- * "osVer": "10.0",
192
- * "uniVer": "√",
193
- * "unixVer": "x"
194
- * }
195
- * },
196
- * "mp": {
197
- * "weixin": {
198
- * "hostVer": "√",
199
- * "uniVer": "√",
200
- * "unixVer": "x"
201
- * },
202
- * "alipay": {
203
- * "hostVer": "√",
204
- * "uniVer": "√",
205
- * "unixVer": "x"
206
- * },
207
- * "baidu": {
208
- * "hostVer": "√",
209
- * "uniVer": "√",
210
- * "unixVer": "x"
211
- * },
212
- * "toutiao": {
213
- * "hostVer": "√",
214
- * "uniVer": "√",
215
- * "unixVer": "x"
216
- * },
217
- * "lark": {
218
- * "hostVer": "√",
219
- * "uniVer": "√",
220
- * "unixVer": "x"
221
- * },
222
- * "qq": {
223
- * "hostVer": "√",
224
- * "uniVer": "√",
225
- * "unixVer": "x"
226
- * },
227
- * "kuaishou": {
228
- * "hostVer": "√",
229
- * "uniVer": "√",
230
- * "unixVer": "x"
231
- * },
232
- * "jd": {
233
- * "hostVer": "√",
234
- * "uniVer": "√",
235
- * "unixVer": "x"
236
- * }
237
- * },
238
- * "web": {
239
- * "uniVer": "√",
240
- * "unixVer": "4.0"
241
- * }
242
- * }
243
- */
244
- animationDuration?: number | null
245
- /**
246
- * 页面间通信接口,用于监听被打开页面发送到当前页面的数据
247
- * @uniPlatform {
248
- * "app": {
249
- * "android": {
250
- * "osVer": "5.0",
251
- * "uniVer": "√",
252
- * "unixVer": "x"
253
- * },
254
- * "ios": {
255
- * "osVer": "10.0",
256
- * "uniVer": "√",
257
- * "unixVer": "x"
258
- * }
259
- * },
260
- * "mp": {
261
- * "weixin": {
262
- * "hostVer": "√",
263
- * "uniVer": "√",
264
- * "unixVer": "x"
265
- * },
266
- * "alipay": {
267
- * "hostVer": "√",
268
- * "uniVer": "√",
269
- * "unixVer": "x"
270
- * },
271
- * "baidu": {
272
- * "hostVer": "√",
273
- * "uniVer": "√",
274
- * "unixVer": "x"
275
- * },
276
- * "toutiao": {
277
- * "hostVer": "√",
278
- * "uniVer": "√",
279
- * "unixVer": "x"
280
- * },
281
- * "lark": {
282
- * "hostVer": "√",
283
- * "uniVer": "√",
284
- * "unixVer": "x"
285
- * },
286
- * "qq": {
287
- * "hostVer": "√",
288
- * "uniVer": "√",
289
- * "unixVer": "x"
290
- * },
291
- * "kuaishou": {
292
- * "hostVer": "√",
293
- * "uniVer": "√",
294
- * "unixVer": "x"
295
- * },
296
- * "jd": {
297
- * "hostVer": "√",
298
- * "uniVer": "√",
299
- * "unixVer": "x"
300
- * }
301
- * },
302
- * "web": {
303
- * "uniVer": "√",
304
- * "unixVer": "4.0"
305
- * }
306
- * }
307
- */
308
- events?: any | null
309
- /**
310
- * 接口调用成功的回调函数
311
- * @uniPlatform {
312
- * "app": {
313
- * "android": {
314
- * "osVer": "5.0",
315
- * "uniVer": "√",
316
- * "unixVer": "√"
317
- * },
318
- * "ios": {
319
- * "osVer": "10.0",
320
- * "uniVer": "√",
321
- * "unixVer": "4.05"
322
- * }
323
- * },
324
- * "mp": {
325
- * "weixin": {
326
- * "hostVer": "√",
327
- * "uniVer": "√",
328
- * "unixVer": "x"
329
- * },
330
- * "alipay": {
331
- * "hostVer": "√",
332
- * "uniVer": "√",
333
- * "unixVer": "x"
334
- * },
335
- * "baidu": {
336
- * "hostVer": "√",
337
- * "uniVer": "√",
338
- * "unixVer": "x"
339
- * },
340
- * "toutiao": {
341
- * "hostVer": "√",
342
- * "uniVer": "√",
343
- * "unixVer": "x"
344
- * },
345
- * "lark": {
346
- * "hostVer": "√",
347
- * "uniVer": "√",
348
- * "unixVer": "x"
349
- * },
350
- * "qq": {
351
- * "hostVer": "√",
352
- * "uniVer": "√",
353
- * "unixVer": "x"
354
- * },
355
- * "kuaishou": {
356
- * "hostVer": "√",
357
- * "uniVer": "√",
358
- * "unixVer": "x"
359
- * },
360
- * "jd": {
361
- * "hostVer": "√",
362
- * "uniVer": "√",
363
- * "unixVer": "x"
364
- * }
365
- * },
366
- * "web": {
367
- * "uniVer": "√",
368
- * "unixVer": "4.0"
369
- * }
370
- * }
371
- */
372
- success?: NavigateToSuccessCallback | null
373
- /**
374
- * 接口调用失败的回调函数
375
- * @uniPlatform {
376
- * "app": {
377
- * "android": {
378
- * "osVer": "5.0",
379
- * "uniVer": "√",
380
- * "unixVer": "√"
381
- * },
382
- * "ios": {
383
- * "osVer": "10.0",
384
- * "uniVer": "√",
385
- * "unixVer": "4.05"
386
- * }
387
- * },
388
- * "mp": {
389
- * "weixin": {
390
- * "hostVer": "√",
391
- * "uniVer": "√",
392
- * "unixVer": "x"
393
- * },
394
- * "alipay": {
395
- * "hostVer": "√",
396
- * "uniVer": "√",
397
- * "unixVer": "x"
398
- * },
399
- * "baidu": {
400
- * "hostVer": "√",
401
- * "uniVer": "√",
402
- * "unixVer": "x"
403
- * },
404
- * "toutiao": {
405
- * "hostVer": "√",
406
- * "uniVer": "√",
407
- * "unixVer": "x"
408
- * },
409
- * "lark": {
410
- * "hostVer": "√",
411
- * "uniVer": "√",
412
- * "unixVer": "x"
413
- * },
414
- * "qq": {
415
- * "hostVer": "√",
416
- * "uniVer": "√",
417
- * "unixVer": "x"
418
- * },
419
- * "kuaishou": {
420
- * "hostVer": "√",
421
- * "uniVer": "√",
422
- * "unixVer": "x"
423
- * },
424
- * "jd": {
425
- * "hostVer": "√",
426
- * "uniVer": "√",
427
- * "unixVer": "x"
428
- * }
429
- * },
430
- * "web": {
431
- * "uniVer": "√",
432
- * "unixVer": "4.0"
433
- * }
434
- * }
435
- */
436
- fail?: NavigateToFailCallback | null
437
- /**
438
- * 接口调用结束的回调函数(调用成功、失败都会执行)
439
- * @uniPlatform {
440
- * "app": {
441
- * "android": {
442
- * "osVer": "5.0",
443
- * "uniVer": "√",
444
- * "unixVer": "√"
445
- * },
446
- * "ios": {
447
- * "osVer": "10.0",
448
- * "uniVer": "√",
449
- * "unixVer": "4.05"
450
- * }
451
- * },
452
- * "mp": {
453
- * "weixin": {
454
- * "hostVer": "√",
455
- * "uniVer": "√",
456
- * "unixVer": "x"
457
- * },
458
- * "alipay": {
459
- * "hostVer": "√",
460
- * "uniVer": "√",
461
- * "unixVer": "x"
462
- * },
463
- * "baidu": {
464
- * "hostVer": "√",
465
- * "uniVer": "√",
466
- * "unixVer": "x"
467
- * },
468
- * "toutiao": {
469
- * "hostVer": "√",
470
- * "uniVer": "√",
471
- * "unixVer": "x"
472
- * },
473
- * "lark": {
474
- * "hostVer": "√",
475
- * "uniVer": "√",
476
- * "unixVer": "x"
477
- * },
478
- * "qq": {
479
- * "hostVer": "√",
480
- * "uniVer": "√",
481
- * "unixVer": "x"
482
- * },
483
- * "kuaishou": {
484
- * "hostVer": "√",
485
- * "uniVer": "√",
486
- * "unixVer": "x"
487
- * },
488
- * "jd": {
489
- * "hostVer": "√",
490
- * "uniVer": "√",
491
- * "unixVer": "x"
492
- * }
493
- * },
494
- * "web": {
495
- * "uniVer": "√",
496
- * "unixVer": "4.0"
497
- * }
498
- * }
499
- */
500
- complete?: NavigateToCompleteCallback | null
501
- }
502
- export type RedirectToSuccess = AsyncApiSuccessResult
503
- type RedirectToSuccessCallback = (result: AsyncApiSuccessResult) => void
504
- export type RedirectToFail = RedirectToError
505
- type RedirectToFailCallback = (result: RedirectToFail) => void
506
- export type RedirectToComplete = AsyncApiResult
507
- type RedirectToCompleteCallback = (result: RedirectToComplete) => void
508
- export type RedirectToOptions = {
509
- /**
510
- * 需要跳转的应用内非 tabBar 的页面的路径 , 路径后可以带参数
511
- * @uniPlatform {
512
- * "app": {
513
- * "android": {
514
- * "osVer": "5.0",
515
- * "uniVer": "√",
516
- * "unixVer": "√"
517
- * },
518
- * "ios": {
519
- * "osVer": "10.0",
520
- * "uniVer": "√",
521
- * "unixVer": "4.05"
522
- * }
523
- * },
524
- * "mp": {
525
- * "weixin": {
526
- * "hostVer": "√",
527
- * "uniVer": "√",
528
- * "unixVer": "x"
529
- * },
530
- * "alipay": {
531
- * "hostVer": "√",
532
- * "uniVer": "√",
533
- * "unixVer": "x"
534
- * },
535
- * "baidu": {
536
- * "hostVer": "√",
537
- * "uniVer": "√",
538
- * "unixVer": "x"
539
- * },
540
- * "toutiao": {
541
- * "hostVer": "√",
542
- * "uniVer": "√",
543
- * "unixVer": "x"
544
- * },
545
- * "lark": {
546
- * "hostVer": "√",
547
- * "uniVer": "√",
548
- * "unixVer": "x"
549
- * },
550
- * "qq": {
551
- * "hostVer": "√",
552
- * "uniVer": "√",
553
- * "unixVer": "x"
554
- * },
555
- * "kuaishou": {
556
- * "hostVer": "√",
557
- * "uniVer": "√",
558
- * "unixVer": "x"
559
- * },
560
- * "jd": {
561
- * "hostVer": "√",
562
- * "uniVer": "√",
563
- * "unixVer": "x"
564
- * }
565
- * },
566
- * "web": {
567
- * "uniVer": "√",
568
- * "unixVer": "4.0"
569
- * }
570
- * }
571
- */
572
- url: string | string.PageURIString
573
- /**
574
- * 接口调用成功的回调函数
575
- * @uniPlatform {
576
- * "app": {
577
- * "android": {
578
- * "osVer": "5.0",
579
- * "uniVer": "√",
580
- * "unixVer": "√"
581
- * },
582
- * "ios": {
583
- * "osVer": "10.0",
584
- * "uniVer": "√",
585
- * "unixVer": "4.05"
586
- * }
587
- * },
588
- * "mp": {
589
- * "weixin": {
590
- * "hostVer": "√",
591
- * "uniVer": "√",
592
- * "unixVer": "x"
593
- * },
594
- * "alipay": {
595
- * "hostVer": "√",
596
- * "uniVer": "√",
597
- * "unixVer": "x"
598
- * },
599
- * "baidu": {
600
- * "hostVer": "√",
601
- * "uniVer": "√",
602
- * "unixVer": "x"
603
- * },
604
- * "toutiao": {
605
- * "hostVer": "√",
606
- * "uniVer": "√",
607
- * "unixVer": "x"
608
- * },
609
- * "lark": {
610
- * "hostVer": "√",
611
- * "uniVer": "√",
612
- * "unixVer": "x"
613
- * },
614
- * "qq": {
615
- * "hostVer": "√",
616
- * "uniVer": "√",
617
- * "unixVer": "x"
618
- * },
619
- * "kuaishou": {
620
- * "hostVer": "√",
621
- * "uniVer": "√",
622
- * "unixVer": "x"
623
- * },
624
- * "jd": {
625
- * "hostVer": "√",
626
- * "uniVer": "√",
627
- * "unixVer": "x"
628
- * }
629
- * },
630
- * "web": {
631
- * "uniVer": "√",
632
- * "unixVer": "4.0"
633
- * }
634
- * }
635
- */
636
- success?: RedirectToSuccessCallback | null
637
- /**
638
- * 接口调用失败的回调函数
639
- * @uniPlatform {
640
- * "app": {
641
- * "android": {
642
- * "osVer": "5.0",
643
- * "uniVer": "√",
644
- * "unixVer": "√"
645
- * },
646
- * "ios": {
647
- * "osVer": "10.0",
648
- * "uniVer": "√",
649
- * "unixVer": "4.05"
650
- * }
651
- * },
652
- * "mp": {
653
- * "weixin": {
654
- * "hostVer": "√",
655
- * "uniVer": "√",
656
- * "unixVer": "x"
657
- * },
658
- * "alipay": {
659
- * "hostVer": "√",
660
- * "uniVer": "√",
661
- * "unixVer": "x"
662
- * },
663
- * "baidu": {
664
- * "hostVer": "√",
665
- * "uniVer": "√",
666
- * "unixVer": "x"
667
- * },
668
- * "toutiao": {
669
- * "hostVer": "√",
670
- * "uniVer": "√",
671
- * "unixVer": "x"
672
- * },
673
- * "lark": {
674
- * "hostVer": "√",
675
- * "uniVer": "√",
676
- * "unixVer": "x"
677
- * },
678
- * "qq": {
679
- * "hostVer": "√",
680
- * "uniVer": "√",
681
- * "unixVer": "x"
682
- * },
683
- * "kuaishou": {
684
- * "hostVer": "√",
685
- * "uniVer": "√",
686
- * "unixVer": "x"
687
- * },
688
- * "jd": {
689
- * "hostVer": "√",
690
- * "uniVer": "√",
691
- * "unixVer": "x"
692
- * }
693
- * },
694
- * "web": {
695
- * "uniVer": "√",
696
- * "unixVer": "4.0"
697
- * }
698
- * }
699
- */
700
- fail?: RedirectToFailCallback | null
701
- /**
702
- * 接口调用结束的回调函数(调用成功、失败都会执行)
703
- * @uniPlatform {
704
- * "app": {
705
- * "android": {
706
- * "osVer": "5.0",
707
- * "uniVer": "√",
708
- * "unixVer": "√"
709
- * },
710
- * "ios": {
711
- * "osVer": "10.0",
712
- * "uniVer": "√",
713
- * "unixVer": "4.05"
714
- * }
715
- * },
716
- * "mp": {
717
- * "weixin": {
718
- * "hostVer": "√",
719
- * "uniVer": "√",
720
- * "unixVer": "x"
721
- * },
722
- * "alipay": {
723
- * "hostVer": "√",
724
- * "uniVer": "√",
725
- * "unixVer": "x"
726
- * },
727
- * "baidu": {
728
- * "hostVer": "√",
729
- * "uniVer": "√",
730
- * "unixVer": "x"
731
- * },
732
- * "toutiao": {
733
- * "hostVer": "√",
734
- * "uniVer": "√",
735
- * "unixVer": "x"
736
- * },
737
- * "lark": {
738
- * "hostVer": "√",
739
- * "uniVer": "√",
740
- * "unixVer": "x"
741
- * },
742
- * "qq": {
743
- * "hostVer": "√",
744
- * "uniVer": "√",
745
- * "unixVer": "x"
746
- * },
747
- * "kuaishou": {
748
- * "hostVer": "√",
749
- * "uniVer": "√",
750
- * "unixVer": "x"
751
- * },
752
- * "jd": {
753
- * "hostVer": "√",
754
- * "uniVer": "√",
755
- * "unixVer": "x"
756
- * }
757
- * },
758
- * "web": {
759
- * "uniVer": "√",
760
- * "unixVer": "4.0"
761
- * }
762
- * }
763
- */
764
- complete?: RedirectToCompleteCallback | null
765
- }
766
- export type ReLaunchSuccess = AsyncApiSuccessResult
767
- type ReLaunchSuccessCallback = (result: ReLaunchSuccess) => void
768
- export type ReLaunchFail = ReLaunchError
769
- type ReLaunchFailCallback = (result: ReLaunchFail) => void
770
- export type ReLaunchComplete = AsyncApiResult
771
- type ReLaunchCompleteCallback = (result: ReLaunchComplete) => void
772
- export type ReLaunchOptions = {
773
- /**
774
- * 需要跳转的应用内页面路径 , 路径后可以带参数。参数与路径之间使用?分隔,参数键与参数值用=相连,不同参数用&分隔;如 'path?key=value&key2=value2',如果跳转的页面路径是 tabBar 页面则不能带参数
775
- * @uniPlatform {
776
- * "app": {
777
- * "android": {
778
- * "osVer": "5.0",
779
- * "uniVer": "√",
780
- * "unixVer": "√"
781
- * },
782
- * "ios": {
783
- * "osVer": "10.0",
784
- * "uniVer": "√",
785
- * "unixVer": "4.05"
786
- * }
787
- * },
788
- * "mp": {
789
- * "weixin": {
790
- * "hostVer": "√",
791
- * "uniVer": "√",
792
- * "unixVer": "x"
793
- * },
794
- * "alipay": {
795
- * "hostVer": "√",
796
- * "uniVer": "√",
797
- * "unixVer": "x"
798
- * },
799
- * "baidu": {
800
- * "hostVer": "√",
801
- * "uniVer": "√",
802
- * "unixVer": "x"
803
- * },
804
- * "toutiao": {
805
- * "hostVer": "√",
806
- * "uniVer": "√",
807
- * "unixVer": "x"
808
- * },
809
- * "lark": {
810
- * "hostVer": "√",
811
- * "uniVer": "√",
812
- * "unixVer": "x"
813
- * },
814
- * "qq": {
815
- * "hostVer": "√",
816
- * "uniVer": "√",
817
- * "unixVer": "x"
818
- * },
819
- * "kuaishou": {
820
- * "hostVer": "√",
821
- * "uniVer": "√",
822
- * "unixVer": "x"
823
- * },
824
- * "jd": {
825
- * "hostVer": "√",
826
- * "uniVer": "√",
827
- * "unixVer": "x"
828
- * }
829
- * },
830
- * "web": {
831
- * "uniVer": "√",
832
- * "unixVer": "4.0"
833
- * }
834
- * }
835
- */
836
- url: string | string.PageURIString
837
- /**
838
- * 接口调用成功的回调函数
839
- * @uniPlatform {
840
- * "app": {
841
- * "android": {
842
- * "osVer": "5.0",
843
- * "uniVer": "√",
844
- * "unixVer": "√"
845
- * },
846
- * "ios": {
847
- * "osVer": "10.0",
848
- * "uniVer": "√",
849
- * "unixVer": "4.05"
850
- * }
851
- * },
852
- * "mp": {
853
- * "weixin": {
854
- * "hostVer": "√",
855
- * "uniVer": "√",
856
- * "unixVer": "x"
857
- * },
858
- * "alipay": {
859
- * "hostVer": "√",
860
- * "uniVer": "√",
861
- * "unixVer": "x"
862
- * },
863
- * "baidu": {
864
- * "hostVer": "√",
865
- * "uniVer": "√",
866
- * "unixVer": "x"
867
- * },
868
- * "toutiao": {
869
- * "hostVer": "√",
870
- * "uniVer": "√",
871
- * "unixVer": "x"
872
- * },
873
- * "lark": {
874
- * "hostVer": "√",
875
- * "uniVer": "√",
876
- * "unixVer": "x"
877
- * },
878
- * "qq": {
879
- * "hostVer": "√",
880
- * "uniVer": "√",
881
- * "unixVer": "x"
882
- * },
883
- * "kuaishou": {
884
- * "hostVer": "√",
885
- * "uniVer": "√",
886
- * "unixVer": "x"
887
- * },
888
- * "jd": {
889
- * "hostVer": "√",
890
- * "uniVer": "√",
891
- * "unixVer": "x"
892
- * }
893
- * },
894
- * "web": {
895
- * "uniVer": "√",
896
- * "unixVer": "4.0"
897
- * }
898
- * }
899
- */
900
- success?: ReLaunchSuccessCallback | null
901
- /**
902
- * 接口调用失败的回调函数
903
- * @uniPlatform {
904
- * "app": {
905
- * "android": {
906
- * "osVer": "5.0",
907
- * "uniVer": "√",
908
- * "unixVer": "√"
909
- * },
910
- * "ios": {
911
- * "osVer": "10.0",
912
- * "uniVer": "√",
913
- * "unixVer": "4.05"
914
- * }
915
- * },
916
- * "mp": {
917
- * "weixin": {
918
- * "hostVer": "√",
919
- * "uniVer": "√",
920
- * "unixVer": "x"
921
- * },
922
- * "alipay": {
923
- * "hostVer": "√",
924
- * "uniVer": "√",
925
- * "unixVer": "x"
926
- * },
927
- * "baidu": {
928
- * "hostVer": "√",
929
- * "uniVer": "√",
930
- * "unixVer": "x"
931
- * },
932
- * "toutiao": {
933
- * "hostVer": "√",
934
- * "uniVer": "√",
935
- * "unixVer": "x"
936
- * },
937
- * "lark": {
938
- * "hostVer": "√",
939
- * "uniVer": "√",
940
- * "unixVer": "x"
941
- * },
942
- * "qq": {
943
- * "hostVer": "√",
944
- * "uniVer": "√",
945
- * "unixVer": "x"
946
- * },
947
- * "kuaishou": {
948
- * "hostVer": "√",
949
- * "uniVer": "√",
950
- * "unixVer": "x"
951
- * },
952
- * "jd": {
953
- * "hostVer": "√",
954
- * "uniVer": "√",
955
- * "unixVer": "x"
956
- * }
957
- * },
958
- * "web": {
959
- * "uniVer": "√",
960
- * "unixVer": "4.0"
961
- * }
962
- * }
963
- */
964
- fail?: ReLaunchFailCallback | null
965
- /**
966
- * 接口调用结束的回调函数(调用成功、失败都会执行)
967
- * @uniPlatform {
968
- * "app": {
969
- * "android": {
970
- * "osVer": "5.0",
971
- * "uniVer": "√",
972
- * "unixVer": "√"
973
- * },
974
- * "ios": {
975
- * "osVer": "10.0",
976
- * "uniVer": "√",
977
- * "unixVer": "4.05"
978
- * }
979
- * },
980
- * "mp": {
981
- * "weixin": {
982
- * "hostVer": "√",
983
- * "uniVer": "√",
984
- * "unixVer": "x"
985
- * },
986
- * "alipay": {
987
- * "hostVer": "√",
988
- * "uniVer": "√",
989
- * "unixVer": "x"
990
- * },
991
- * "baidu": {
992
- * "hostVer": "√",
993
- * "uniVer": "√",
994
- * "unixVer": "x"
995
- * },
996
- * "toutiao": {
997
- * "hostVer": "√",
998
- * "uniVer": "√",
999
- * "unixVer": "x"
1000
- * },
1001
- * "lark": {
1002
- * "hostVer": "√",
1003
- * "uniVer": "√",
1004
- * "unixVer": "x"
1005
- * },
1006
- * "qq": {
1007
- * "hostVer": "√",
1008
- * "uniVer": "√",
1009
- * "unixVer": "x"
1010
- * },
1011
- * "kuaishou": {
1012
- * "hostVer": "√",
1013
- * "uniVer": "√",
1014
- * "unixVer": "x"
1015
- * },
1016
- * "jd": {
1017
- * "hostVer": "√",
1018
- * "uniVer": "√",
1019
- * "unixVer": "x"
1020
- * }
1021
- * },
1022
- * "web": {
1023
- * "uniVer": "√",
1024
- * "unixVer": "4.0"
1025
- * }
1026
- * }
1027
- */
1028
- complete?: ReLaunchCompleteCallback | null
1029
- }
1030
- export type SwitchTabSuccess = AsyncApiSuccessResult
1031
- export type SwitchTabSuccessCallback = (result: SwitchTabSuccess) => void
1032
- export type SwitchTabFail = SwitchTabError
1033
- export type SwitchTabFailCallback = (result: SwitchTabFail) => void
1034
- export type SwitchTabComplete = AsyncApiResult
1035
- export type SwitchTabCompleteCallback = (result: SwitchTabComplete) => void
1036
- export type SwitchTabOptions = {
1037
- /**
1038
- * 需要跳转的 tabBar 页面的路径,路径后不能带参数
1039
- * @uniPlatform {
1040
- * "app": {
1041
- * "android": {
1042
- * "osVer": "5.0",
1043
- * "uniVer": "√",
1044
- * "unixVer": "√"
1045
- * },
1046
- * "ios": {
1047
- * "osVer": "10.0",
1048
- * "uniVer": "√",
1049
- * "unixVer": "4.05"
1050
- * }
1051
- * },
1052
- * "mp": {
1053
- * "weixin": {
1054
- * "hostVer": "√",
1055
- * "uniVer": "√",
1056
- * "unixVer": "x"
1057
- * },
1058
- * "alipay": {
1059
- * "hostVer": "√",
1060
- * "uniVer": "√",
1061
- * "unixVer": "x"
1062
- * },
1063
- * "baidu": {
1064
- * "hostVer": "√",
1065
- * "uniVer": "√",
1066
- * "unixVer": "x"
1067
- * },
1068
- * "toutiao": {
1069
- * "hostVer": "√",
1070
- * "uniVer": "√",
1071
- * "unixVer": "x"
1072
- * },
1073
- * "lark": {
1074
- * "hostVer": "√",
1075
- * "uniVer": "√",
1076
- * "unixVer": "x"
1077
- * },
1078
- * "qq": {
1079
- * "hostVer": "√",
1080
- * "uniVer": "√",
1081
- * "unixVer": "x"
1082
- * },
1083
- * "kuaishou": {
1084
- * "hostVer": "√",
1085
- * "uniVer": "√",
1086
- * "unixVer": "x"
1087
- * },
1088
- * "jd": {
1089
- * "hostVer": "√",
1090
- * "uniVer": "√",
1091
- * "unixVer": "x"
1092
- * }
1093
- * },
1094
- * "web": {
1095
- * "uniVer": "√",
1096
- * "unixVer": "4.0"
1097
- * }
1098
- * }
1099
- */
1100
- url: string | string.PageURIString
1101
- /**
1102
- * 接口调用成功的回调函数
1103
- * @uniPlatform {
1104
- * "app": {
1105
- * "android": {
1106
- * "osVer": "5.0",
1107
- * "uniVer": "√",
1108
- * "unixVer": "√"
1109
- * },
1110
- * "ios": {
1111
- * "osVer": "10.0",
1112
- * "uniVer": "√",
1113
- * "unixVer": "4.05"
1114
- * }
1115
- * },
1116
- * "mp": {
1117
- * "weixin": {
1118
- * "hostVer": "√",
1119
- * "uniVer": "√",
1120
- * "unixVer": "x"
1121
- * },
1122
- * "alipay": {
1123
- * "hostVer": "√",
1124
- * "uniVer": "√",
1125
- * "unixVer": "x"
1126
- * },
1127
- * "baidu": {
1128
- * "hostVer": "√",
1129
- * "uniVer": "√",
1130
- * "unixVer": "x"
1131
- * },
1132
- * "toutiao": {
1133
- * "hostVer": "√",
1134
- * "uniVer": "√",
1135
- * "unixVer": "x"
1136
- * },
1137
- * "lark": {
1138
- * "hostVer": "√",
1139
- * "uniVer": "√",
1140
- * "unixVer": "x"
1141
- * },
1142
- * "qq": {
1143
- * "hostVer": "√",
1144
- * "uniVer": "√",
1145
- * "unixVer": "x"
1146
- * },
1147
- * "kuaishou": {
1148
- * "hostVer": "√",
1149
- * "uniVer": "√",
1150
- * "unixVer": "x"
1151
- * },
1152
- * "jd": {
1153
- * "hostVer": "√",
1154
- * "uniVer": "√",
1155
- * "unixVer": "x"
1156
- * }
1157
- * },
1158
- * "web": {
1159
- * "uniVer": "√",
1160
- * "unixVer": "4.0"
1161
- * }
1162
- * }
1163
- */
1164
- success?: SwitchTabSuccessCallback | null
1165
- /**
1166
- * 接口调用失败的回调函数
1167
- * @uniPlatform {
1168
- * "app": {
1169
- * "android": {
1170
- * "osVer": "5.0",
1171
- * "uniVer": "√",
1172
- * "unixVer": "√"
1173
- * },
1174
- * "ios": {
1175
- * "osVer": "10.0",
1176
- * "uniVer": "√",
1177
- * "unixVer": "4.05"
1178
- * }
1179
- * },
1180
- * "mp": {
1181
- * "weixin": {
1182
- * "hostVer": "√",
1183
- * "uniVer": "√",
1184
- * "unixVer": "x"
1185
- * },
1186
- * "alipay": {
1187
- * "hostVer": "√",
1188
- * "uniVer": "√",
1189
- * "unixVer": "x"
1190
- * },
1191
- * "baidu": {
1192
- * "hostVer": "√",
1193
- * "uniVer": "√",
1194
- * "unixVer": "x"
1195
- * },
1196
- * "toutiao": {
1197
- * "hostVer": "√",
1198
- * "uniVer": "√",
1199
- * "unixVer": "x"
1200
- * },
1201
- * "lark": {
1202
- * "hostVer": "√",
1203
- * "uniVer": "√",
1204
- * "unixVer": "x"
1205
- * },
1206
- * "qq": {
1207
- * "hostVer": "√",
1208
- * "uniVer": "√",
1209
- * "unixVer": "x"
1210
- * },
1211
- * "kuaishou": {
1212
- * "hostVer": "√",
1213
- * "uniVer": "√",
1214
- * "unixVer": "x"
1215
- * },
1216
- * "jd": {
1217
- * "hostVer": "√",
1218
- * "uniVer": "√",
1219
- * "unixVer": "x"
1220
- * }
1221
- * },
1222
- * "web": {
1223
- * "uniVer": "√",
1224
- * "unixVer": "4.0"
1225
- * }
1226
- * }
1227
- */
1228
- fail?: SwitchTabFailCallback | null
1229
- /**
1230
- * 接口调用结束的回调函数(调用成功、失败都会执行)
1231
- * @uniPlatform {
1232
- * "app": {
1233
- * "android": {
1234
- * "osVer": "5.0",
1235
- * "uniVer": "√",
1236
- * "unixVer": "√"
1237
- * },
1238
- * "ios": {
1239
- * "osVer": "10.0",
1240
- * "uniVer": "√",
1241
- * "unixVer": "4.05"
1242
- * }
1243
- * },
1244
- * "mp": {
1245
- * "weixin": {
1246
- * "hostVer": "√",
1247
- * "uniVer": "√",
1248
- * "unixVer": "x"
1249
- * },
1250
- * "alipay": {
1251
- * "hostVer": "√",
1252
- * "uniVer": "√",
1253
- * "unixVer": "x"
1254
- * },
1255
- * "baidu": {
1256
- * "hostVer": "√",
1257
- * "uniVer": "√",
1258
- * "unixVer": "x"
1259
- * },
1260
- * "toutiao": {
1261
- * "hostVer": "√",
1262
- * "uniVer": "√",
1263
- * "unixVer": "x"
1264
- * },
1265
- * "lark": {
1266
- * "hostVer": "√",
1267
- * "uniVer": "√",
1268
- * "unixVer": "x"
1269
- * },
1270
- * "qq": {
1271
- * "hostVer": "√",
1272
- * "uniVer": "√",
1273
- * "unixVer": "x"
1274
- * },
1275
- * "kuaishou": {
1276
- * "hostVer": "√",
1277
- * "uniVer": "√",
1278
- * "unixVer": "x"
1279
- * },
1280
- * "jd": {
1281
- * "hostVer": "√",
1282
- * "uniVer": "√",
1283
- * "unixVer": "x"
1284
- * }
1285
- * },
1286
- * "web": {
1287
- * "uniVer": "√",
1288
- * "unixVer": "4.0"
1289
- * }
1290
- * }
1291
- */
1292
- complete?: SwitchTabCompleteCallback | null
1293
- }
1294
- export type NavigateBackSuccess = AsyncApiSuccessResult
1295
- type NavigateBackSuccessCallback = (result: NavigateBackSuccess) => void
1296
- export type NavigateBackFail = NavigateBackError
1297
- type NavigateBackFailCallback = (result: NavigateBackFail) => void
1298
- export type NavigateBackComplete = AsyncApiResult
1299
- type NavigateBackCompleteCallback = (result: NavigateBackComplete) => void
1300
- export type NavigateBackOptions = {
1301
- /**
1302
- * 返回的页面数,如果 delta 大于现有页面数,则返回到首页
1303
- * @uniPlatform {
1304
- * "app": {
1305
- * "android": {
1306
- * "osVer": "5.0",
1307
- * "uniVer": "√",
1308
- * "unixVer": "√"
1309
- * },
1310
- * "ios": {
1311
- * "osVer": "10.0",
1312
- * "uniVer": "√",
1313
- * "unixVer": "4.05"
1314
- * }
1315
- * },
1316
- * "mp": {
1317
- * "weixin": {
1318
- * "hostVer": "√",
1319
- * "uniVer": "√",
1320
- * "unixVer": "x"
1321
- * },
1322
- * "alipay": {
1323
- * "hostVer": "√",
1324
- * "uniVer": "√",
1325
- * "unixVer": "x"
1326
- * },
1327
- * "baidu": {
1328
- * "hostVer": "√",
1329
- * "uniVer": "√",
1330
- * "unixVer": "x"
1331
- * },
1332
- * "toutiao": {
1333
- * "hostVer": "√",
1334
- * "uniVer": "√",
1335
- * "unixVer": "x"
1336
- * },
1337
- * "lark": {
1338
- * "hostVer": "√",
1339
- * "uniVer": "√",
1340
- * "unixVer": "x"
1341
- * },
1342
- * "qq": {
1343
- * "hostVer": "√",
1344
- * "uniVer": "√",
1345
- * "unixVer": "x"
1346
- * },
1347
- * "kuaishou": {
1348
- * "hostVer": "√",
1349
- * "uniVer": "√",
1350
- * "unixVer": "x"
1351
- * },
1352
- * "jd": {
1353
- * "hostVer": "√",
1354
- * "uniVer": "√",
1355
- * "unixVer": "x"
1356
- * }
1357
- * },
1358
- * "web": {
1359
- * "uniVer": "√",
1360
- * "unixVer": "4.0"
1361
- * }
1362
- * }
1363
- */
1364
- delta?: number | null
1365
- /**
1366
- * 窗口关闭的动画类型
1367
- * - auto: 自动选择动画效果
1368
- * - none: 无动画效果
1369
- * - slide-out-right: 横向向右侧滑出屏幕动画
1370
- * - slide-out-left: 横向向左侧滑出屏幕动画
1371
- * - slide-out-top: 竖向向上侧滑出屏幕动画
1372
- * - slide-out-bottom: 竖向向下侧滑出屏幕动画
1373
- * - fade-out: 从不透明到透明逐渐隐藏动画
1374
- * - zoom-in: 从大逐渐缩小关闭动画
1375
- * - zoom-fade-in: 从大逐渐缩小并且从不透明到透明逐渐隐藏关闭动画
1376
- * - pop-out: 从右侧平移出栈动画效果
1377
- * - UnionType => 'auto' | 'none' | 'slide-out-right' | 'slide-out-left' | 'slide-out-top' | 'slide-out-bottom' | 'fade-out' | 'zoom-in' | 'zoom-fade-in' | 'pop-out'
1378
- * @uniPlatform {
1379
- * "app": {
1380
- * "android": {
1381
- * "osVer": "5.0",
1382
- * "uniVer": "√",
1383
- * "unixVer": "x"
1384
- * },
1385
- * "ios": {
1386
- * "osVer": "10.0",
1387
- * "uniVer": "√",
1388
- * "unixVer": "x"
1389
- * }
1390
- * },
1391
- * "mp": {
1392
- * "weixin": {
1393
- * "hostVer": "√",
1394
- * "uniVer": "√",
1395
- * "unixVer": "x"
1396
- * },
1397
- * "alipay": {
1398
- * "hostVer": "√",
1399
- * "uniVer": "√",
1400
- * "unixVer": "x"
1401
- * },
1402
- * "baidu": {
1403
- * "hostVer": "√",
1404
- * "uniVer": "√",
1405
- * "unixVer": "x"
1406
- * },
1407
- * "toutiao": {
1408
- * "hostVer": "√",
1409
- * "uniVer": "√",
1410
- * "unixVer": "x"
1411
- * },
1412
- * "lark": {
1413
- * "hostVer": "√",
1414
- * "uniVer": "√",
1415
- * "unixVer": "x"
1416
- * },
1417
- * "qq": {
1418
- * "hostVer": "√",
1419
- * "uniVer": "√",
1420
- * "unixVer": "x"
1421
- * },
1422
- * "kuaishou": {
1423
- * "hostVer": "√",
1424
- * "uniVer": "√",
1425
- * "unixVer": "x"
1426
- * },
1427
- * "jd": {
1428
- * "hostVer": "√",
1429
- * "uniVer": "√",
1430
- * "unixVer": "x"
1431
- * }
1432
- * },
1433
- * "web": {
1434
- * "uniVer": "√",
1435
- * "unixVer": "4.0"
1436
- * }
1437
- * }
1438
- */
1439
- animationType?: string | null
1440
- /**
1441
- * 窗口关闭动画的持续时间,单位为 ms
1442
- * @uniPlatform {
1443
- * "app": {
1444
- * "android": {
1445
- * "osVer": "5.0",
1446
- * "uniVer": "√",
1447
- * "unixVer": "x"
1448
- * },
1449
- * "ios": {
1450
- * "osVer": "10.0",
1451
- * "uniVer": "√",
1452
- * "unixVer": "x"
1453
- * }
1454
- * },
1455
- * "mp": {
1456
- * "weixin": {
1457
- * "hostVer": "√",
1458
- * "uniVer": "√",
1459
- * "unixVer": "x"
1460
- * },
1461
- * "alipay": {
1462
- * "hostVer": "√",
1463
- * "uniVer": "√",
1464
- * "unixVer": "x"
1465
- * },
1466
- * "baidu": {
1467
- * "hostVer": "√",
1468
- * "uniVer": "√",
1469
- * "unixVer": "x"
1470
- * },
1471
- * "toutiao": {
1472
- * "hostVer": "√",
1473
- * "uniVer": "√",
1474
- * "unixVer": "x"
1475
- * },
1476
- * "lark": {
1477
- * "hostVer": "√",
1478
- * "uniVer": "√",
1479
- * "unixVer": "x"
1480
- * },
1481
- * "qq": {
1482
- * "hostVer": "√",
1483
- * "uniVer": "√",
1484
- * "unixVer": "x"
1485
- * },
1486
- * "kuaishou": {
1487
- * "hostVer": "√",
1488
- * "uniVer": "√",
1489
- * "unixVer": "x"
1490
- * },
1491
- * "jd": {
1492
- * "hostVer": "√",
1493
- * "uniVer": "√",
1494
- * "unixVer": "x"
1495
- * }
1496
- * },
1497
- * "web": {
1498
- * "uniVer": "√",
1499
- * "unixVer": "4.0"
1500
- * }
1501
- * }
1502
- */
1503
- animationDuration?: number | null
1504
- /**
1505
- * 接口调用成功的回调函数
1506
- * @uniPlatform {
1507
- * "app": {
1508
- * "android": {
1509
- * "osVer": "5.0",
1510
- * "uniVer": "√",
1511
- * "unixVer": "√"
1512
- * },
1513
- * "ios": {
1514
- * "osVer": "10.0",
1515
- * "uniVer": "√",
1516
- * "unixVer": "x"
1517
- * }
1518
- * },
1519
- * "mp": {
1520
- * "weixin": {
1521
- * "hostVer": "√",
1522
- * "uniVer": "√",
1523
- * "unixVer": "x"
1524
- * },
1525
- * "alipay": {
1526
- * "hostVer": "√",
1527
- * "uniVer": "√",
1528
- * "unixVer": "x"
1529
- * },
1530
- * "baidu": {
1531
- * "hostVer": "√",
1532
- * "uniVer": "√",
1533
- * "unixVer": "x"
1534
- * },
1535
- * "toutiao": {
1536
- * "hostVer": "√",
1537
- * "uniVer": "√",
1538
- * "unixVer": "x"
1539
- * },
1540
- * "lark": {
1541
- * "hostVer": "√",
1542
- * "uniVer": "√",
1543
- * "unixVer": "x"
1544
- * },
1545
- * "qq": {
1546
- * "hostVer": "√",
1547
- * "uniVer": "√",
1548
- * "unixVer": "x"
1549
- * },
1550
- * "kuaishou": {
1551
- * "hostVer": "√",
1552
- * "uniVer": "√",
1553
- * "unixVer": "x"
1554
- * },
1555
- * "jd": {
1556
- * "hostVer": "√",
1557
- * "uniVer": "√",
1558
- * "unixVer": "x"
1559
- * }
1560
- * },
1561
- * "web": {
1562
- * "uniVer": "√",
1563
- * "unixVer": "4.0"
1564
- * }
1565
- * }
1566
- */
1567
- success?: NavigateBackSuccessCallback | null
1568
- /**
1569
- * 接口调用失败的回调函数
1570
- * @uniPlatform {
1571
- * "app": {
1572
- * "android": {
1573
- * "osVer": "5.0",
1574
- * "uniVer": "√",
1575
- * "unixVer": "√"
1576
- * },
1577
- * "ios": {
1578
- * "osVer": "10.0",
1579
- * "uniVer": "√",
1580
- * "unixVer": "4.05"
1581
- * }
1582
- * },
1583
- * "mp": {
1584
- * "weixin": {
1585
- * "hostVer": "√",
1586
- * "uniVer": "√",
1587
- * "unixVer": "x"
1588
- * },
1589
- * "alipay": {
1590
- * "hostVer": "√",
1591
- * "uniVer": "√",
1592
- * "unixVer": "x"
1593
- * },
1594
- * "baidu": {
1595
- * "hostVer": "√",
1596
- * "uniVer": "√",
1597
- * "unixVer": "x"
1598
- * },
1599
- * "toutiao": {
1600
- * "hostVer": "√",
1601
- * "uniVer": "√",
1602
- * "unixVer": "x"
1603
- * },
1604
- * "lark": {
1605
- * "hostVer": "√",
1606
- * "uniVer": "√",
1607
- * "unixVer": "x"
1608
- * },
1609
- * "qq": {
1610
- * "hostVer": "√",
1611
- * "uniVer": "√",
1612
- * "unixVer": "x"
1613
- * },
1614
- * "kuaishou": {
1615
- * "hostVer": "√",
1616
- * "uniVer": "√",
1617
- * "unixVer": "x"
1618
- * },
1619
- * "jd": {
1620
- * "hostVer": "√",
1621
- * "uniVer": "√",
1622
- * "unixVer": "x"
1623
- * }
1624
- * },
1625
- * "web": {
1626
- * "uniVer": "√",
1627
- * "unixVer": "4.0"
1628
- * }
1629
- * }
1630
- */
1631
- fail?: NavigateBackFailCallback | null
1632
- /**
1633
- * 接口调用结束的回调函数(调用成功、失败都会执行)
1634
- * @uniPlatform {
1635
- * "app": {
1636
- * "android": {
1637
- * "osVer": "5.0",
1638
- * "uniVer": "√",
1639
- * "unixVer": "√"
1640
- * },
1641
- * "ios": {
1642
- * "osVer": "10.0",
1643
- * "uniVer": "√",
1644
- * "unixVer": "4.05"
1645
- * }
1646
- * },
1647
- * "mp": {
1648
- * "weixin": {
1649
- * "hostVer": "√",
1650
- * "uniVer": "√",
1651
- * "unixVer": "x"
1652
- * },
1653
- * "alipay": {
1654
- * "hostVer": "√",
1655
- * "uniVer": "√",
1656
- * "unixVer": "x"
1657
- * },
1658
- * "baidu": {
1659
- * "hostVer": "√",
1660
- * "uniVer": "√",
1661
- * "unixVer": "x"
1662
- * },
1663
- * "toutiao": {
1664
- * "hostVer": "√",
1665
- * "uniVer": "√",
1666
- * "unixVer": "x"
1667
- * },
1668
- * "lark": {
1669
- * "hostVer": "√",
1670
- * "uniVer": "√",
1671
- * "unixVer": "x"
1672
- * },
1673
- * "qq": {
1674
- * "hostVer": "√",
1675
- * "uniVer": "√",
1676
- * "unixVer": "x"
1677
- * },
1678
- * "kuaishou": {
1679
- * "hostVer": "√",
1680
- * "uniVer": "√",
1681
- * "unixVer": "x"
1682
- * },
1683
- * "jd": {
1684
- * "hostVer": "√",
1685
- * "uniVer": "√",
1686
- * "unixVer": "x"
1687
- * }
1688
- * },
1689
- * "web": {
1690
- * "uniVer": "√",
1691
- * "unixVer": "4.0"
1692
- * }
1693
- * }
1694
- */
1695
- complete?: NavigateBackCompleteCallback | null
1696
- }
1697
-
1698
- export interface Uni {
1699
- /**
1700
- * 保留当前页面,跳转到应用内的某个页面
1701
- *
1702
- * @tutorial http://uniapp.dcloud.io/api/router?id=navigateto
1703
- * @uniPlatform {
1704
- * "app": {
1705
- * "android": {
1706
- * "osVer": "5.0",
1707
- * "uniVer": "√",
1708
- * "unixVer": "√"
1709
- * },
1710
- * "ios": {
1711
- * "osVer": "10.0",
1712
- * "uniVer": "√",
1713
- * "unixVer": "4.05"
1714
- * }
1715
- * },
1716
- * "mp": {
1717
- * "weixin": {
1718
- * "hostVer": "√",
1719
- * "uniVer": "√",
1720
- * "unixVer": "x"
1721
- * },
1722
- * "alipay": {
1723
- * "hostVer": "√",
1724
- * "uniVer": "√",
1725
- * "unixVer": "x"
1726
- * },
1727
- * "baidu": {
1728
- * "hostVer": "√",
1729
- * "uniVer": "√",
1730
- * "unixVer": "x"
1731
- * },
1732
- * "toutiao": {
1733
- * "hostVer": "√",
1734
- * "uniVer": "√",
1735
- * "unixVer": "x"
1736
- * },
1737
- * "lark": {
1738
- * "hostVer": "√",
1739
- * "uniVer": "√",
1740
- * "unixVer": "x"
1741
- * },
1742
- * "qq": {
1743
- * "hostVer": "√",
1744
- * "uniVer": "√",
1745
- * "unixVer": "x"
1746
- * },
1747
- * "kuaishou": {
1748
- * "hostVer": "√",
1749
- * "uniVer": "√",
1750
- * "unixVer": "x"
1751
- * },
1752
- * "jd": {
1753
- * "hostVer": "√",
1754
- * "uniVer": "√",
1755
- * "unixVer": "x"
1756
- * }
1757
- * },
1758
- * "web": {
1759
- * "uniVer": "√",
1760
- * "unixVer": "4.0"
1761
- * }
1762
- * }
1763
- */
1764
- navigateTo(options: NavigateToOptions): Promise<NavigateToSuccess> | null
1765
- /**
1766
- * 关闭当前页面,跳转到应用内的某个页面
1767
- *
1768
- * @tutorial http://uniapp.dcloud.io/api/router?id=redirectto
1769
- * @uniPlatform {
1770
- * "app": {
1771
- * "android": {
1772
- * "osVer": "5.0",
1773
- * "uniVer": "√",
1774
- * "unixVer": "√"
1775
- * },
1776
- * "ios": {
1777
- * "osVer": "10.0",
1778
- * "uniVer": "√",
1779
- * "unixVer": "4.05"
1780
- * }
1781
- * },
1782
- * "mp": {
1783
- * "weixin": {
1784
- * "hostVer": "√",
1785
- * "uniVer": "√",
1786
- * "unixVer": "x"
1787
- * },
1788
- * "alipay": {
1789
- * "hostVer": "√",
1790
- * "uniVer": "√",
1791
- * "unixVer": "x"
1792
- * },
1793
- * "baidu": {
1794
- * "hostVer": "√",
1795
- * "uniVer": "√",
1796
- * "unixVer": "x"
1797
- * },
1798
- * "toutiao": {
1799
- * "hostVer": "√",
1800
- * "uniVer": "√",
1801
- * "unixVer": "x"
1802
- * },
1803
- * "lark": {
1804
- * "hostVer": "√",
1805
- * "uniVer": "√",
1806
- * "unixVer": "x"
1807
- * },
1808
- * "qq": {
1809
- * "hostVer": "√",
1810
- * "uniVer": "√",
1811
- * "unixVer": "x"
1812
- * },
1813
- * "kuaishou": {
1814
- * "hostVer": "√",
1815
- * "uniVer": "√",
1816
- * "unixVer": "x"
1817
- * },
1818
- * "jd": {
1819
- * "hostVer": "√",
1820
- * "uniVer": "√",
1821
- * "unixVer": "x"
1822
- * }
1823
- * },
1824
- * "web": {
1825
- * "uniVer": "√",
1826
- * "unixVer": "4.0"
1827
- * }
1828
- * }
1829
- */
1830
- redirectTo(options: RedirectToOptions): Promise<RedirectToSuccess> | null
1831
- /**
1832
- * 关闭所有页面,打开到应用内的某个页面
1833
- *
1834
- * @tutorial http://uniapp.dcloud.io/api/router?id=relaunch
1835
- * @uniPlatform {
1836
- * "app": {
1837
- * "android": {
1838
- * "osVer": "5.0",
1839
- * "uniVer": "√",
1840
- * "unixVer": "√"
1841
- * },
1842
- * "ios": {
1843
- * "osVer": "10.0",
1844
- * "uniVer": "√",
1845
- * "unixVer": "4.05"
1846
- * }
1847
- * },
1848
- * "mp": {
1849
- * "weixin": {
1850
- * "hostVer": "√",
1851
- * "uniVer": "√",
1852
- * "unixVer": "x"
1853
- * },
1854
- * "alipay": {
1855
- * "hostVer": "√",
1856
- * "uniVer": "√",
1857
- * "unixVer": "x"
1858
- * },
1859
- * "baidu": {
1860
- * "hostVer": "√",
1861
- * "uniVer": "√",
1862
- * "unixVer": "x"
1863
- * },
1864
- * "toutiao": {
1865
- * "hostVer": "√",
1866
- * "uniVer": "√",
1867
- * "unixVer": "x"
1868
- * },
1869
- * "lark": {
1870
- * "hostVer": "√",
1871
- * "uniVer": "√",
1872
- * "unixVer": "x"
1873
- * },
1874
- * "qq": {
1875
- * "hostVer": "√",
1876
- * "uniVer": "√",
1877
- * "unixVer": "x"
1878
- * },
1879
- * "kuaishou": {
1880
- * "hostVer": "√",
1881
- * "uniVer": "√",
1882
- * "unixVer": "x"
1883
- * },
1884
- * "jd": {
1885
- * "hostVer": "√",
1886
- * "uniVer": "√",
1887
- * "unixVer": "x"
1888
- * }
1889
- * },
1890
- * "web": {
1891
- * "uniVer": "√",
1892
- * "unixVer": "4.0"
1893
- * }
1894
- * }
1895
- */
1896
- reLaunch(options: ReLaunchOptions): Promise<ReLaunchSuccess> | null
1897
- /**
1898
- * 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面
1899
- *
1900
- * @tutorial http://uniapp.dcloud.io/api/router?id=switchtab
1901
- * @uniPlatform {
1902
- * "app": {
1903
- * "android": {
1904
- * "osVer": "5.0",
1905
- * "uniVer": "√",
1906
- * "unixVer": "√"
1907
- * },
1908
- * "ios": {
1909
- * "osVer": "10.0",
1910
- * "uniVer": "√",
1911
- * "unixVer": "4.05"
1912
- * }
1913
- * },
1914
- * "mp": {
1915
- * "weixin": {
1916
- * "hostVer": "√",
1917
- * "uniVer": "√",
1918
- * "unixVer": "x"
1919
- * },
1920
- * "alipay": {
1921
- * "hostVer": "√",
1922
- * "uniVer": "√",
1923
- * "unixVer": "x"
1924
- * },
1925
- * "baidu": {
1926
- * "hostVer": "√",
1927
- * "uniVer": "√",
1928
- * "unixVer": "x"
1929
- * },
1930
- * "toutiao": {
1931
- * "hostVer": "√",
1932
- * "uniVer": "√",
1933
- * "unixVer": "x"
1934
- * },
1935
- * "lark": {
1936
- * "hostVer": "√",
1937
- * "uniVer": "√",
1938
- * "unixVer": "x"
1939
- * },
1940
- * "qq": {
1941
- * "hostVer": "√",
1942
- * "uniVer": "√",
1943
- * "unixVer": "x"
1944
- * },
1945
- * "kuaishou": {
1946
- * "hostVer": "√",
1947
- * "uniVer": "√",
1948
- * "unixVer": "x"
1949
- * },
1950
- * "jd": {
1951
- * "hostVer": "√",
1952
- * "uniVer": "√",
1953
- * "unixVer": "x"
1954
- * }
1955
- * },
1956
- * "web": {
1957
- * "uniVer": "√",
1958
- * "unixVer": "4.0"
1959
- * }
1960
- * }
1961
- */
1962
- switchTab(options: SwitchTabOptions): Promise<SwitchTabSuccess> | null
1963
- /**
1964
- * 关闭当前页面,返回上一页面或多级页面
1965
- *
1966
- * @tutorial http://uniapp.dcloud.io/api/router?id=navigateback
1967
- * @uniPlatform {
1968
- * "app": {
1969
- * "android": {
1970
- * "osVer": "5.0",
1971
- * "uniVer": "√",
1972
- * "unixVer": "√"
1973
- * },
1974
- * "ios": {
1975
- * "osVer": "10.0",
1976
- * "uniVer": "√",
1977
- * "unixVer": "4.05"
1978
- * }
1979
- * },
1980
- * "mp": {
1981
- * "weixin": {
1982
- * "hostVer": "√",
1983
- * "uniVer": "√",
1984
- * "unixVer": "x"
1985
- * },
1986
- * "alipay": {
1987
- * "hostVer": "√",
1988
- * "uniVer": "√",
1989
- * "unixVer": "x"
1990
- * },
1991
- * "baidu": {
1992
- * "hostVer": "√",
1993
- * "uniVer": "√",
1994
- * "unixVer": "x"
1995
- * },
1996
- * "toutiao": {
1997
- * "hostVer": "√",
1998
- * "uniVer": "√",
1999
- * "unixVer": "x"
2000
- * },
2001
- * "lark": {
2002
- * "hostVer": "√",
2003
- * "uniVer": "√",
2004
- * "unixVer": "x"
2005
- * },
2006
- * "qq": {
2007
- * "hostVer": "√",
2008
- * "uniVer": "√",
2009
- * "unixVer": "x"
2010
- * },
2011
- * "kuaishou": {
2012
- * "hostVer": "√",
2013
- * "uniVer": "√",
2014
- * "unixVer": "x"
2015
- * },
2016
- * "jd": {
2017
- * "hostVer": "√",
2018
- * "uniVer": "√",
2019
- * "unixVer": "x"
2020
- * }
2021
- * },
2022
- * "web": {
2023
- * "uniVer": "√",
2024
- * "unixVer": "4.0"
2025
- * }
2026
- * }
2027
- */
2028
- navigateBack(
2029
- options?: NavigateBackOptions | null
2030
- ): Promise<NavigateBackSuccess> | null
2031
- }