@dcloudio/uni-app-x 0.7.39 → 0.7.41

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 (104) hide show
  1. package/package.json +9 -7
  2. package/types/UniPage.d.ts +168 -22
  3. package/types/app.d.ts +178 -174
  4. package/types/native/CSSStyleDeclaration.d.ts +16 -2
  5. package/types/native/DOMRect.d.ts +430 -10
  6. package/types/native/DrawableContext.d.ts +1137 -45
  7. package/types/native/IUniElement.d.ts +1875 -93
  8. package/types/native/UniNativePage.d.ts +94 -0
  9. package/types/native/UniResizeObserver.d.ts +215 -5
  10. package/types/native/UniSafeArea.d.ts +185 -0
  11. package/types/native/UniVideoElement.d.ts +432 -0
  12. package/types/native/global.d.ts +7 -0
  13. package/types/native/index.d.ts +1 -0
  14. package/types/uni/uni-map-tencent-map.d.ts +12 -8
  15. package/types/uni/uts-plugin-api/global.d.ts +62 -61
  16. package/types/uni/uts-plugin-api/index.d.ts +62 -61
  17. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -0
  18. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -0
  19. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +278 -0
  20. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1600 -59
  21. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +64 -63
  22. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +0 -2
  23. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +0 -1
  24. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1150 -186
  25. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +64 -63
  26. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +550 -550
  27. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +69 -72
  28. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +533 -135
  29. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1508 -77
  30. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +423 -63
  31. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +284 -63
  32. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +2 -9
  33. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +1 -1
  34. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +62 -62
  35. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +31 -31
  36. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +57 -57
  37. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +312 -110
  38. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +62 -62
  39. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +472 -72
  40. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +126 -78
  41. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +317 -66
  42. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +570 -63
  43. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +570 -63
  44. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +110 -66
  45. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +595 -177
  46. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +284 -63
  47. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +45 -1
  48. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1387 -182
  49. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +67 -67
  50. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +318 -53
  51. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +162 -63
  52. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +241 -64
  53. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +6 -0
  54. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +3 -0
  55. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +4089 -659
  56. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +460 -252
  57. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +2345 -213
  58. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1205 -149
  59. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +339 -33
  60. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +457 -53
  61. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +328 -63
  62. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +317 -66
  63. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +120 -71
  64. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2157 -437
  65. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +260 -126
  66. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +467 -315
  67. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +553 -53
  68. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1608 -630
  69. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +2492 -504
  70. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +176 -130
  71. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +704 -58
  72. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1230 -454
  73. package/types/uni/uts-plugin-biz/global.d.ts +6 -5
  74. package/types/uni/uts-plugin-biz/index.d.ts +6 -5
  75. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +406 -123
  76. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +4 -0
  77. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +2 -0
  78. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +60 -47
  79. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +71 -71
  80. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +3 -3
  81. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -0
  82. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -0
  83. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/interface.d.ts +204 -0
  84. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +42 -38
  85. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +21 -19
  86. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +502 -255
  87. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -0
  88. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -0
  89. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -0
  90. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +48 -48
  91. package/types/uni/uts-plugin-extend/global.d.ts +0 -4
  92. package/types/uni/uts-plugin-extend/index.d.ts +0 -4
  93. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +825 -273
  94. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4399 -339
  95. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1000 -268
  96. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +1 -1
  97. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  98. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1495 -384
  99. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +222 -132
  100. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +923 -67
  101. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +2 -2
  102. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -7
  103. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -1
  104. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -716
@@ -4,19 +4,298 @@
4
4
  export type ScanCodeSuccess = {
5
5
  result: string,
6
6
  scanType: string
7
+ /**
8
+ * 所扫码的字符集
9
+ *
10
+ * @uniPlatform {
11
+ * "mp": {
12
+ * "weixin": {
13
+ * "hostVer": "√",
14
+ * "uniVer": "√",
15
+ * "unixVer": "4.41"
16
+ * },
17
+ * "alipay": {
18
+ * "hostVer": "-",
19
+ * "uniVer": "-",
20
+ * "unixVer": "-"
21
+ * },
22
+ * "baidu": {
23
+ * "hostVer": "-",
24
+ * "uniVer": "-",
25
+ * "unixVer": "-"
26
+ * },
27
+ * "toutiao": {
28
+ * "hostVer": "-",
29
+ * "uniVer": "-",
30
+ * "unixVer": "-"
31
+ * },
32
+ * "lark": {
33
+ * "hostVer": "-",
34
+ * "uniVer": "-",
35
+ * "unixVer": "-"
36
+ * },
37
+ * "qq": {
38
+ * "hostVer": "-",
39
+ * "uniVer": "-",
40
+ * "unixVer": "-"
41
+ * },
42
+ * "kuaishou": {
43
+ * "hostVer": "-",
44
+ * "uniVer": "-",
45
+ * "unixVer": "-"
46
+ * },
47
+ * "jd": {
48
+ * "hostVer": "-",
49
+ * "uniVer": "-",
50
+ * "unixVer": "-"
51
+ * }
52
+ * }
53
+ * }
54
+ */
55
+ charSet?: string | null;
56
+ /**
57
+ * 当所扫的码为当前小程序二维码时,会返回此字段,内容为二维码携带的 path
58
+ *
59
+ * @uniPlatform {
60
+ * "mp": {
61
+ * "weixin": {
62
+ * "hostVer": "√",
63
+ * "uniVer": "√",
64
+ * "unixVer": "4.41"
65
+ * },
66
+ * "alipay": {
67
+ * "hostVer": "-",
68
+ * "uniVer": "-",
69
+ * "unixVer": "-"
70
+ * },
71
+ * "baidu": {
72
+ * "hostVer": "-",
73
+ * "uniVer": "-",
74
+ * "unixVer": "-"
75
+ * },
76
+ * "toutiao": {
77
+ * "hostVer": "-",
78
+ * "uniVer": "-",
79
+ * "unixVer": "-"
80
+ * },
81
+ * "lark": {
82
+ * "hostVer": "-",
83
+ * "uniVer": "-",
84
+ * "unixVer": "-"
85
+ * },
86
+ * "qq": {
87
+ * "hostVer": "-",
88
+ * "uniVer": "-",
89
+ * "unixVer": "-"
90
+ * },
91
+ * "kuaishou": {
92
+ * "hostVer": "-",
93
+ * "uniVer": "-",
94
+ * "unixVer": "-"
95
+ * },
96
+ * "jd": {
97
+ * "hostVer": "-",
98
+ * "uniVer": "-",
99
+ * "unixVer": "-"
100
+ * }
101
+ * }
102
+ * }
103
+ */
104
+ path?: string | null;
105
+ /**
106
+ * 原始数据,base64编码
107
+ *
108
+ * @uniPlatform {
109
+ * "mp": {
110
+ * "weixin": {
111
+ * "hostVer": "√",
112
+ * "uniVer": "√",
113
+ * "unixVer": "4.41"
114
+ * },
115
+ * "alipay": {
116
+ * "hostVer": "-",
117
+ * "uniVer": "-",
118
+ * "unixVer": "-"
119
+ * },
120
+ * "baidu": {
121
+ * "hostVer": "-",
122
+ * "uniVer": "-",
123
+ * "unixVer": "-"
124
+ * },
125
+ * "toutiao": {
126
+ * "hostVer": "-",
127
+ * "uniVer": "-",
128
+ * "unixVer": "-"
129
+ * },
130
+ * "lark": {
131
+ * "hostVer": "-",
132
+ * "uniVer": "-",
133
+ * "unixVer": "-"
134
+ * },
135
+ * "qq": {
136
+ * "hostVer": "-",
137
+ * "uniVer": "-",
138
+ * "unixVer": "-"
139
+ * },
140
+ * "kuaishou": {
141
+ * "hostVer": "-",
142
+ * "uniVer": "-",
143
+ * "unixVer": "-"
144
+ * },
145
+ * "jd": {
146
+ * "hostVer": "-",
147
+ * "uniVer": "-",
148
+ * "unixVer": "-"
149
+ * }
150
+ * }
151
+ * }
152
+ */
153
+ rawData?: string | null;
7
154
  }
8
155
 
9
156
  export type ScanCodeFail = {}
10
157
  /**
11
158
  * uni.scanCode成功回调函数定义
159
+ * @uniPlatform {
160
+ * "mp": {
161
+ * "weixin": {
162
+ * "hostVer": "√",
163
+ * "uniVer": "√",
164
+ * "unixVer": "4.41"
165
+ * },
166
+ * "alipay": {
167
+ * "hostVer": "-",
168
+ * "uniVer": "-",
169
+ * "unixVer": "-"
170
+ * },
171
+ * "baidu": {
172
+ * "hostVer": "-",
173
+ * "uniVer": "-",
174
+ * "unixVer": "-"
175
+ * },
176
+ * "toutiao": {
177
+ * "hostVer": "-",
178
+ * "uniVer": "-",
179
+ * "unixVer": "-"
180
+ * },
181
+ * "lark": {
182
+ * "hostVer": "-",
183
+ * "uniVer": "-",
184
+ * "unixVer": "-"
185
+ * },
186
+ * "qq": {
187
+ * "hostVer": "-",
188
+ * "uniVer": "-",
189
+ * "unixVer": "-"
190
+ * },
191
+ * "kuaishou": {
192
+ * "hostVer": "-",
193
+ * "uniVer": "-",
194
+ * "unixVer": "-"
195
+ * },
196
+ * "jd": {
197
+ * "hostVer": "-",
198
+ * "uniVer": "-",
199
+ * "unixVer": "-"
200
+ * }
201
+ * }
202
+ * }
12
203
  */
13
204
  export type ScanCodeSuccessCallback = (res: ScanCodeSuccess) => void
14
205
  /**
15
206
  * uni.scanCode失败回调函数定义
207
+ * @uniPlatform {
208
+ * "mp": {
209
+ * "weixin": {
210
+ * "hostVer": "√",
211
+ * "uniVer": "√",
212
+ * "unixVer": "4.41"
213
+ * },
214
+ * "alipay": {
215
+ * "hostVer": "-",
216
+ * "uniVer": "-",
217
+ * "unixVer": "-"
218
+ * },
219
+ * "baidu": {
220
+ * "hostVer": "-",
221
+ * "uniVer": "-",
222
+ * "unixVer": "-"
223
+ * },
224
+ * "toutiao": {
225
+ * "hostVer": "-",
226
+ * "uniVer": "-",
227
+ * "unixVer": "-"
228
+ * },
229
+ * "lark": {
230
+ * "hostVer": "-",
231
+ * "uniVer": "-",
232
+ * "unixVer": "-"
233
+ * },
234
+ * "qq": {
235
+ * "hostVer": "-",
236
+ * "uniVer": "-",
237
+ * "unixVer": "-"
238
+ * },
239
+ * "kuaishou": {
240
+ * "hostVer": "-",
241
+ * "uniVer": "-",
242
+ * "unixVer": "-"
243
+ * },
244
+ * "jd": {
245
+ * "hostVer": "-",
246
+ * "uniVer": "-",
247
+ * "unixVer": "-"
248
+ * }
249
+ * }
250
+ * }
16
251
  */
17
252
  export type ScanCodeFailCallback = (res: ScanCodeFail) => void
18
253
  /**
19
254
  * uni.scanCode完成回调函数定义
255
+ * @uniPlatform {
256
+ * "mp": {
257
+ * "weixin": {
258
+ * "hostVer": "√",
259
+ * "uniVer": "√",
260
+ * "unixVer": "4.41"
261
+ * },
262
+ * "alipay": {
263
+ * "hostVer": "-",
264
+ * "uniVer": "-",
265
+ * "unixVer": "-"
266
+ * },
267
+ * "baidu": {
268
+ * "hostVer": "-",
269
+ * "uniVer": "-",
270
+ * "unixVer": "-"
271
+ * },
272
+ * "toutiao": {
273
+ * "hostVer": "-",
274
+ * "uniVer": "-",
275
+ * "unixVer": "-"
276
+ * },
277
+ * "lark": {
278
+ * "hostVer": "-",
279
+ * "uniVer": "-",
280
+ * "unixVer": "-"
281
+ * },
282
+ * "qq": {
283
+ * "hostVer": "-",
284
+ * "uniVer": "-",
285
+ * "unixVer": "-"
286
+ * },
287
+ * "kuaishou": {
288
+ * "hostVer": "-",
289
+ * "uniVer": "-",
290
+ * "unixVer": "-"
291
+ * },
292
+ * "jd": {
293
+ * "hostVer": "-",
294
+ * "uniVer": "-",
295
+ * "unixVer": "-"
296
+ * }
297
+ * }
298
+ * }
20
299
  */
21
300
  export type ScanCodeCompleteCallback = (res: any) => void
22
301
 
@@ -28,22 +307,242 @@ export type ScanCodeSupportedTypes = 'barCode' | 'qrCode' | 'datamatrix' | 'pdf4
28
307
  export type ScanCodeOptions = {
29
308
  /**
30
309
  * 是否只能从相机扫码,不允许从相册选择图片
310
+ * @uniPlatform {
311
+ * "mp": {
312
+ * "weixin": {
313
+ * "hostVer": "√",
314
+ * "uniVer": "√",
315
+ * "unixVer": "4.41"
316
+ * },
317
+ * "alipay": {
318
+ * "hostVer": "-",
319
+ * "uniVer": "-",
320
+ * "unixVer": "-"
321
+ * },
322
+ * "baidu": {
323
+ * "hostVer": "-",
324
+ * "uniVer": "-",
325
+ * "unixVer": "-"
326
+ * },
327
+ * "toutiao": {
328
+ * "hostVer": "-",
329
+ * "uniVer": "-",
330
+ * "unixVer": "-"
331
+ * },
332
+ * "lark": {
333
+ * "hostVer": "-",
334
+ * "uniVer": "-",
335
+ * "unixVer": "-"
336
+ * },
337
+ * "qq": {
338
+ * "hostVer": "-",
339
+ * "uniVer": "-",
340
+ * "unixVer": "-"
341
+ * },
342
+ * "kuaishou": {
343
+ * "hostVer": "-",
344
+ * "uniVer": "-",
345
+ * "unixVer": "-"
346
+ * },
347
+ * "jd": {
348
+ * "hostVer": "-",
349
+ * "uniVer": "-",
350
+ * "unixVer": "-"
351
+ * }
352
+ * }
353
+ * }
31
354
  */
32
355
  onlyFromCamera?: boolean | null,
33
356
  /**
34
357
  * 扫码类型
358
+ * @uniPlatform {
359
+ * "mp": {
360
+ * "weixin": {
361
+ * "hostVer": "√",
362
+ * "uniVer": "√",
363
+ * "unixVer": "4.41"
364
+ * },
365
+ * "alipay": {
366
+ * "hostVer": "-",
367
+ * "uniVer": "-",
368
+ * "unixVer": "-"
369
+ * },
370
+ * "baidu": {
371
+ * "hostVer": "-",
372
+ * "uniVer": "-",
373
+ * "unixVer": "-"
374
+ * },
375
+ * "toutiao": {
376
+ * "hostVer": "-",
377
+ * "uniVer": "-",
378
+ * "unixVer": "-"
379
+ * },
380
+ * "lark": {
381
+ * "hostVer": "-",
382
+ * "uniVer": "-",
383
+ * "unixVer": "-"
384
+ * },
385
+ * "qq": {
386
+ * "hostVer": "-",
387
+ * "uniVer": "-",
388
+ * "unixVer": "-"
389
+ * },
390
+ * "kuaishou": {
391
+ * "hostVer": "-",
392
+ * "uniVer": "-",
393
+ * "unixVer": "-"
394
+ * },
395
+ * "jd": {
396
+ * "hostVer": "-",
397
+ * "uniVer": "-",
398
+ * "unixVer": "-"
399
+ * }
400
+ * }
401
+ * }
35
402
  */
36
403
  scanType?: ScanCodeSupportedTypes[] | null,
37
404
  /**
38
405
  * 接口调用成功的回调函数
406
+ * @uniPlatform {
407
+ * "mp": {
408
+ * "weixin": {
409
+ * "hostVer": "√",
410
+ * "uniVer": "√",
411
+ * "unixVer": "4.41"
412
+ * },
413
+ * "alipay": {
414
+ * "hostVer": "-",
415
+ * "uniVer": "-",
416
+ * "unixVer": "-"
417
+ * },
418
+ * "baidu": {
419
+ * "hostVer": "-",
420
+ * "uniVer": "-",
421
+ * "unixVer": "-"
422
+ * },
423
+ * "toutiao": {
424
+ * "hostVer": "-",
425
+ * "uniVer": "-",
426
+ * "unixVer": "-"
427
+ * },
428
+ * "lark": {
429
+ * "hostVer": "-",
430
+ * "uniVer": "-",
431
+ * "unixVer": "-"
432
+ * },
433
+ * "qq": {
434
+ * "hostVer": "-",
435
+ * "uniVer": "-",
436
+ * "unixVer": "-"
437
+ * },
438
+ * "kuaishou": {
439
+ * "hostVer": "-",
440
+ * "uniVer": "-",
441
+ * "unixVer": "-"
442
+ * },
443
+ * "jd": {
444
+ * "hostVer": "-",
445
+ * "uniVer": "-",
446
+ * "unixVer": "-"
447
+ * }
448
+ * }
449
+ * }
39
450
  */
40
451
  success?: ScanCodeSuccessCallback | null,
41
452
  /**
42
453
  * 接口调用失败的回调函数
454
+ * @uniPlatform {
455
+ * "mp": {
456
+ * "weixin": {
457
+ * "hostVer": "√",
458
+ * "uniVer": "√",
459
+ * "unixVer": "4.41"
460
+ * },
461
+ * "alipay": {
462
+ * "hostVer": "-",
463
+ * "uniVer": "-",
464
+ * "unixVer": "-"
465
+ * },
466
+ * "baidu": {
467
+ * "hostVer": "-",
468
+ * "uniVer": "-",
469
+ * "unixVer": "-"
470
+ * },
471
+ * "toutiao": {
472
+ * "hostVer": "-",
473
+ * "uniVer": "-",
474
+ * "unixVer": "-"
475
+ * },
476
+ * "lark": {
477
+ * "hostVer": "-",
478
+ * "uniVer": "-",
479
+ * "unixVer": "-"
480
+ * },
481
+ * "qq": {
482
+ * "hostVer": "-",
483
+ * "uniVer": "-",
484
+ * "unixVer": "-"
485
+ * },
486
+ * "kuaishou": {
487
+ * "hostVer": "-",
488
+ * "uniVer": "-",
489
+ * "unixVer": "-"
490
+ * },
491
+ * "jd": {
492
+ * "hostVer": "-",
493
+ * "uniVer": "-",
494
+ * "unixVer": "-"
495
+ * }
496
+ * }
497
+ * }
43
498
  */
44
499
  fail?: ScanCodeFailCallback | null,
45
500
  /**
46
501
  * 接口调用结束的回调函数(调用成功、失败都会执行)
502
+ * @uniPlatform {
503
+ * "mp": {
504
+ * "weixin": {
505
+ * "hostVer": "√",
506
+ * "uniVer": "√",
507
+ * "unixVer": "4.41"
508
+ * },
509
+ * "alipay": {
510
+ * "hostVer": "-",
511
+ * "uniVer": "-",
512
+ * "unixVer": "-"
513
+ * },
514
+ * "baidu": {
515
+ * "hostVer": "-",
516
+ * "uniVer": "-",
517
+ * "unixVer": "-"
518
+ * },
519
+ * "toutiao": {
520
+ * "hostVer": "-",
521
+ * "uniVer": "-",
522
+ * "unixVer": "-"
523
+ * },
524
+ * "lark": {
525
+ * "hostVer": "-",
526
+ * "uniVer": "-",
527
+ * "unixVer": "-"
528
+ * },
529
+ * "qq": {
530
+ * "hostVer": "-",
531
+ * "uniVer": "-",
532
+ * "unixVer": "-"
533
+ * },
534
+ * "kuaishou": {
535
+ * "hostVer": "-",
536
+ * "uniVer": "-",
537
+ * "unixVer": "-"
538
+ * },
539
+ * "jd": {
540
+ * "hostVer": "-",
541
+ * "uniVer": "-",
542
+ * "unixVer": "-"
543
+ * }
544
+ * }
545
+ * }
47
546
  */
48
547
  complete?: ScanCodeCompleteCallback | null
49
548
  }
@@ -53,61 +552,62 @@ export interface Uni {
53
552
  /**
54
553
  * 扫码
55
554
  * @uniPlatform {
56
- * "app": {
57
- * "harmony": {
58
- * "osVer": "3.0",
59
- * "uniVer": "4.23",
60
- * "unixVer": "x"
61
- * }
62
- * },
63
- * "mp": {
64
- * "weixin": {
65
- * "hostVer": "",
66
- * "uniVer": "√",
67
- * "unixVer": "4.41"
68
- * },
69
- * "alipay": {
70
- * "hostVer": "√",
71
- * "uniVer": "√",
72
- * "unixVer": "x"
73
- * },
74
- * "baidu": {
75
- * "hostVer": "√",
76
- * "uniVer": "√",
77
- * "unixVer": "x"
78
- * },
79
- * "toutiao": {
80
- * "hostVer": "√",
81
- * "uniVer": "√",
82
- * "unixVer": "x"
83
- * },
84
- * "lark": {
85
- * "hostVer": "√",
86
- * "uniVer": "√",
87
- * "unixVer": "x"
88
- * },
89
- * "qq": {
90
- * "hostVer": "√",
91
- * "uniVer": "√",
92
- * "unixVer": "x"
93
- * },
94
- * "kuaishou": {
95
- * "hostVer": "√",
96
- * "uniVer": "√",
97
- * "unixVer": "x"
98
- * },
99
- * "jd": {
100
- * "hostVer": "√",
101
- * "uniVer": "√",
102
- * "unixVer": "x"
103
- * }
104
- * },
105
- * "web": {
106
- * "uniVer": "x",
107
- * "unixVer": "x"
108
- * }
555
+ * "app": {
556
+ * "harmony": {
557
+ * "osVer": "3.0",
558
+ * "uniVer": "4.23",
559
+ * "unixVer": "x"
560
+ * }
561
+ * },
562
+ * "mp": {
563
+ * "weixin": {
564
+ * "hostVer": "1.0.0",
565
+ * "uniVer": "√",
566
+ * "unixVer": "4.41"
567
+ * },
568
+ * "alipay": {
569
+ * "hostVer": "√",
570
+ * "uniVer": "√",
571
+ * "unixVer": "x"
572
+ * },
573
+ * "baidu": {
574
+ * "hostVer": "√",
575
+ * "uniVer": "√",
576
+ * "unixVer": "x"
577
+ * },
578
+ * "toutiao": {
579
+ * "hostVer": "√",
580
+ * "uniVer": "√",
581
+ * "unixVer": "x"
582
+ * },
583
+ * "lark": {
584
+ * "hostVer": "√",
585
+ * "uniVer": "√",
586
+ * "unixVer": "x"
587
+ * },
588
+ * "qq": {
589
+ * "hostVer": "√",
590
+ * "uniVer": "√",
591
+ * "unixVer": "x"
592
+ * },
593
+ * "kuaishou": {
594
+ * "hostVer": "√",
595
+ * "uniVer": "√",
596
+ * "unixVer": "x"
597
+ * },
598
+ * "jd": {
599
+ * "hostVer": "√",
600
+ * "uniVer": "√",
601
+ * "unixVer": "x"
602
+ * }
603
+ * },
604
+ * "web": {
605
+ * "uniVer": "x",
606
+ * "unixVer": "x"
607
+ * }
109
608
  * }
110
609
  * @uniVueVersion 2,3 //支持的vue版本
610
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/scan/wx.scanCode.html
111
611
  */
112
612
  scanCode(options?: ScanCodeOptions | null): void;
113
613
  }