@dcloudio/uni-app-x 0.7.55 → 0.7.57

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 (65) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +6 -6
  3. package/types/native/CanvasRenderingContext2D.d.ts +6 -1
  4. package/types/native/IUniElement.d.ts +6 -4
  5. package/types/native/IUniNativeViewElement.d.ts +140 -11
  6. package/types/native/Path2D.d.ts +75 -21
  7. package/types/native/UniCustomElement.d.ts +24 -0
  8. package/types/native/UniFormControlElement.d.ts +1 -1
  9. package/types/native/UniPage.d.ts +77 -38
  10. package/types/native/global.d.ts +4 -0
  11. package/types/native/index.d.ts +1 -0
  12. package/types/uni/env/index.d.ts +65 -9
  13. package/types/uni/uni-camera.d.ts +12 -1
  14. package/types/uni/uts-plugin-api/global.d.ts +4 -4
  15. package/types/uni/uts-plugin-api/index.d.ts +4 -4
  16. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +1 -1
  17. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +2 -2
  18. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +4 -4
  19. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +76 -4
  20. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +43 -1
  21. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +60 -8
  22. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +76 -1
  23. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +2 -2
  24. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +2 -2
  25. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +132 -38
  26. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +43 -1
  27. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -0
  28. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +11 -0
  29. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +505 -38
  30. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +0 -4
  31. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/global.d.ts +26 -0
  32. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/index.d.ts +12 -0
  33. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +1770 -0
  34. package/types/uni/uts-plugin-api/lib/uni-location-system/utssdk/global.d.ts +10 -0
  35. package/types/uni/uts-plugin-api/lib/uni-location-system/utssdk/index.d.ts +5 -0
  36. package/types/uni/uts-plugin-api/lib/uni-location-system/utssdk/interface.d.ts +9 -0
  37. package/types/uni/uts-plugin-api/lib/uni-location-tencent/utssdk/global.d.ts +10 -0
  38. package/types/uni/uts-plugin-api/lib/uni-location-tencent/utssdk/index.d.ts +5 -0
  39. package/types/uni/uts-plugin-api/lib/uni-location-tencent/utssdk/interface.d.ts +9 -0
  40. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1804 -1762
  41. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +49 -5
  42. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +41 -11
  43. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/global.d.ts +0 -2
  44. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/index.d.ts +0 -1
  45. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +0 -76
  46. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +1 -1
  47. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/global.d.ts +16 -0
  48. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/index.d.ts +7 -0
  49. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +1349 -0
  50. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +20 -20
  51. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2 -2
  52. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +51 -22
  53. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +1 -1
  54. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +15 -0
  55. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +379 -18
  56. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +4 -0
  57. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +2 -0
  58. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +225 -174
  59. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +5 -0
  60. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +2 -2
  61. package/types/uni-cloud/interface.d.ts +13 -13
  62. package/types/vue/PickerChangeEvent.d.ts +32 -0
  63. package/types/vue/PickerColumnChangeEvent.d.ts +33 -0
  64. package/types/vue/global.d.ts +40 -0
  65. package/types/vue/index.d.ts +2 -0
@@ -1,10 +1,10 @@
1
- /**
2
- * uni.hideKeyboard成功回调参数
3
- */
4
- export type HideKeyboardSuccess = {}
5
-
6
- export type HideKeyboardFail = {}
7
- /**
1
+ /**
2
+ * uni.hideKeyboard成功回调参数
3
+ */
4
+ export type HideKeyboardSuccess = {}
5
+
6
+ export type HideKeyboardFail = {}
7
+ /**
8
8
  * uni.hideKeyboard成功回调函数定义
9
9
  * @uniPlatform {
10
10
  * "mp": {
@@ -50,9 +50,9 @@ export type HideKeyboardFail = {}
50
50
  * }
51
51
  * }
52
52
  * }
53
- */
54
- export type HideKeyboardSuccessCallback = (res: HideKeyboardSuccess) => void
55
- /**
53
+ */
54
+ export type HideKeyboardSuccessCallback = (res : HideKeyboardSuccess) => void
55
+ /**
56
56
  * uni.hideKeyboard失败回调函数定义
57
57
  * @uniPlatform {
58
58
  * "mp": {
@@ -98,9 +98,9 @@ export type HideKeyboardSuccessCallback = (res: HideKeyboardSuccess) => void
98
98
  * }
99
99
  * }
100
100
  * }
101
- */
102
- export type HideKeyboardFailCallback = (res: HideKeyboardFail) => void
103
- /**
101
+ */
102
+ export type HideKeyboardFailCallback = (res : HideKeyboardFail) => void
103
+ /**
104
104
  * uni.hideKeyboard完成回调函数定义
105
105
  * @uniPlatform {
106
106
  * "mp": {
@@ -146,15 +146,211 @@ export type HideKeyboardFailCallback = (res: HideKeyboardFail) => void
146
146
  * }
147
147
  * }
148
148
  * }
149
- */
150
- export type HideKeyboardCompleteCallback = (res: any) => void
149
+ */
150
+ export type HideKeyboardCompleteCallback = (res : any) => void
151
+
152
+ /**
153
+ * uni.hideKeyboard参数定义
154
+ */
155
+ export type HideKeyboardOptions = {
156
+ /**
157
+ * 接口调用成功的回调函数
158
+ * @uniPlatform {
159
+ * "mp": {
160
+ * "weixin": {
161
+ * "hostVer": "√",
162
+ * "uniVer": "√",
163
+ * "unixVer": "4.41"
164
+ * },
165
+ * "alipay": {
166
+ * "hostVer": "-",
167
+ * "uniVer": "-",
168
+ * "unixVer": "-"
169
+ * },
170
+ * "baidu": {
171
+ * "hostVer": "-",
172
+ * "uniVer": "-",
173
+ * "unixVer": "-"
174
+ * },
175
+ * "toutiao": {
176
+ * "hostVer": "-",
177
+ * "uniVer": "-",
178
+ * "unixVer": "-"
179
+ * },
180
+ * "lark": {
181
+ * "hostVer": "-",
182
+ * "uniVer": "-",
183
+ * "unixVer": "-"
184
+ * },
185
+ * "qq": {
186
+ * "hostVer": "-",
187
+ * "uniVer": "-",
188
+ * "unixVer": "-"
189
+ * },
190
+ * "kuaishou": {
191
+ * "hostVer": "-",
192
+ * "uniVer": "-",
193
+ * "unixVer": "-"
194
+ * },
195
+ * "jd": {
196
+ * "hostVer": "-",
197
+ * "uniVer": "-",
198
+ * "unixVer": "-"
199
+ * }
200
+ * }
201
+ * }
202
+ */
203
+ success ?: HideKeyboardSuccessCallback | null,
204
+ /**
205
+ * 接口调用失败的回调函数
206
+ * @uniPlatform {
207
+ * "mp": {
208
+ * "weixin": {
209
+ * "hostVer": "√",
210
+ * "uniVer": "√",
211
+ * "unixVer": "4.41"
212
+ * },
213
+ * "alipay": {
214
+ * "hostVer": "-",
215
+ * "uniVer": "-",
216
+ * "unixVer": "-"
217
+ * },
218
+ * "baidu": {
219
+ * "hostVer": "-",
220
+ * "uniVer": "-",
221
+ * "unixVer": "-"
222
+ * },
223
+ * "toutiao": {
224
+ * "hostVer": "-",
225
+ * "uniVer": "-",
226
+ * "unixVer": "-"
227
+ * },
228
+ * "lark": {
229
+ * "hostVer": "-",
230
+ * "uniVer": "-",
231
+ * "unixVer": "-"
232
+ * },
233
+ * "qq": {
234
+ * "hostVer": "-",
235
+ * "uniVer": "-",
236
+ * "unixVer": "-"
237
+ * },
238
+ * "kuaishou": {
239
+ * "hostVer": "-",
240
+ * "uniVer": "-",
241
+ * "unixVer": "-"
242
+ * },
243
+ * "jd": {
244
+ * "hostVer": "-",
245
+ * "uniVer": "-",
246
+ * "unixVer": "-"
247
+ * }
248
+ * }
249
+ * }
250
+ */
251
+ fail ?: HideKeyboardFailCallback | null,
252
+ /**
253
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
254
+ * @uniPlatform {
255
+ * "mp": {
256
+ * "weixin": {
257
+ * "hostVer": "√",
258
+ * "uniVer": "√",
259
+ * "unixVer": "4.41"
260
+ * },
261
+ * "alipay": {
262
+ * "hostVer": "-",
263
+ * "uniVer": "-",
264
+ * "unixVer": "-"
265
+ * },
266
+ * "baidu": {
267
+ * "hostVer": "-",
268
+ * "uniVer": "-",
269
+ * "unixVer": "-"
270
+ * },
271
+ * "toutiao": {
272
+ * "hostVer": "-",
273
+ * "uniVer": "-",
274
+ * "unixVer": "-"
275
+ * },
276
+ * "lark": {
277
+ * "hostVer": "-",
278
+ * "uniVer": "-",
279
+ * "unixVer": "-"
280
+ * },
281
+ * "qq": {
282
+ * "hostVer": "-",
283
+ * "uniVer": "-",
284
+ * "unixVer": "-"
285
+ * },
286
+ * "kuaishou": {
287
+ * "hostVer": "-",
288
+ * "uniVer": "-",
289
+ * "unixVer": "-"
290
+ * },
291
+ * "jd": {
292
+ * "hostVer": "-",
293
+ * "uniVer": "-",
294
+ * "unixVer": "-"
295
+ * }
296
+ * }
297
+ * }
298
+ */
299
+ complete ?: HideKeyboardCompleteCallback | null
300
+ }
151
301
 
152
- /**
153
- * uni.hideKeyboard参数定义
302
+ /**
303
+ * uni.onKeyboardHeightChange参数定义
304
+ * @uniPlatform {
305
+ * "mp": {
306
+ * "weixin": {
307
+ * "hostVer": "√",
308
+ * "uniVer": "√",
309
+ * "unixVer": "4.41"
310
+ * },
311
+ * "alipay": {
312
+ * "hostVer": "-",
313
+ * "uniVer": "-",
314
+ * "unixVer": "-"
315
+ * },
316
+ * "baidu": {
317
+ * "hostVer": "-",
318
+ * "uniVer": "-",
319
+ * "unixVer": "-"
320
+ * },
321
+ * "toutiao": {
322
+ * "hostVer": "-",
323
+ * "uniVer": "-",
324
+ * "unixVer": "-"
325
+ * },
326
+ * "lark": {
327
+ * "hostVer": "-",
328
+ * "uniVer": "-",
329
+ * "unixVer": "-"
330
+ * },
331
+ * "qq": {
332
+ * "hostVer": "-",
333
+ * "uniVer": "-",
334
+ * "unixVer": "-"
335
+ * },
336
+ * "kuaishou": {
337
+ * "hostVer": "-",
338
+ * "uniVer": "-",
339
+ * "unixVer": "-"
340
+ * },
341
+ * "jd": {
342
+ * "hostVer": "-",
343
+ * "uniVer": "-",
344
+ * "unixVer": "-"
345
+ * }
346
+ * }
347
+ * }
154
348
  */
155
- export type HideKeyboardOptions = {
156
- /**
157
- * 接口调用成功的回调函数
349
+ export type OnKeyboardHeightChangeCallback = (res : OnKeyboardHeightChangeCallbackResult) => void
350
+
351
+ export type OnKeyboardHeightChangeCallbackResult = {
352
+ /**
353
+ * 键盘高度
158
354
  * @uniPlatform {
159
355
  * "mp": {
160
356
  * "weixin": {
@@ -200,9 +396,12 @@ export type HideKeyboardOptions = {
200
396
  * }
201
397
  * }
202
398
  */
203
- success?: HideKeyboardSuccessCallback | null,
204
- /**
205
- * 接口调用失败的回调函数
399
+ height : number
400
+ }
401
+
402
+ export type GetSelectedTextRangeOptions = {
403
+ /**
404
+ * 接口调用成功的回调函数
206
405
  * @uniPlatform {
207
406
  * "mp": {
208
407
  * "weixin": {
@@ -247,10 +446,10 @@ export type HideKeyboardOptions = {
247
446
  * }
248
447
  * }
249
448
  * }
250
- */
251
- fail?: HideKeyboardFailCallback | null,
252
- /**
253
- * 接口调用结束的回调函数(调用成功、失败都会执行)
449
+ */
450
+ success ?: GetSelectedTextRangeSuccessCallback | null,
451
+ /**
452
+ * 接口调用失败的回调函数
254
453
  * @uniPlatform {
255
454
  * "mp": {
256
455
  * "weixin": {
@@ -295,16 +494,107 @@ export type HideKeyboardOptions = {
295
494
  * }
296
495
  * }
297
496
  * }
298
- */
299
- complete?: HideKeyboardCompleteCallback | null
497
+ */
498
+ fail ?: GetSelectedTextRangeFailCallback | null,
499
+ /**
500
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
501
+ * @uniPlatform {
502
+ * "mp": {
503
+ * "weixin": {
504
+ * "hostVer": "√",
505
+ * "uniVer": "√",
506
+ * "unixVer": "4.41"
507
+ * },
508
+ * "alipay": {
509
+ * "hostVer": "-",
510
+ * "uniVer": "-",
511
+ * "unixVer": "-"
512
+ * },
513
+ * "baidu": {
514
+ * "hostVer": "-",
515
+ * "uniVer": "-",
516
+ * "unixVer": "-"
517
+ * },
518
+ * "toutiao": {
519
+ * "hostVer": "-",
520
+ * "uniVer": "-",
521
+ * "unixVer": "-"
522
+ * },
523
+ * "lark": {
524
+ * "hostVer": "-",
525
+ * "uniVer": "-",
526
+ * "unixVer": "-"
527
+ * },
528
+ * "qq": {
529
+ * "hostVer": "-",
530
+ * "uniVer": "-",
531
+ * "unixVer": "-"
532
+ * },
533
+ * "kuaishou": {
534
+ * "hostVer": "-",
535
+ * "uniVer": "-",
536
+ * "unixVer": "-"
537
+ * },
538
+ * "jd": {
539
+ * "hostVer": "-",
540
+ * "uniVer": "-",
541
+ * "unixVer": "-"
542
+ * }
543
+ * }
544
+ * }
545
+ */
546
+ complete ?: GetSelectedTextRangeCompleteCallback | null
300
547
  }
301
548
 
549
+ export type GetSelectedTextRangeSuccessCallback = (res : GetSelectedTextRangeSuccess) => void
550
+
551
+ export type GetSelectedTextRangeFailCallback = (res : GetSelectedTextRangeFail) => void
552
+
553
+ export type GetSelectedTextRangeCompleteCallback = (res : any) => void
302
554
 
303
- export interface Uni {
304
- /**
305
- * 隐藏键盘
306
- * @uniPlatform {
555
+ export type GetSelectedTextRangeSuccess = {
556
+ /**
557
+ * 输入框光标起始位置
558
+ * @uniPlatform {
559
+ * "app": {
560
+ * "ios": {
561
+ * "osVer": "12.0",
562
+ * "uniVer": "√",
563
+ * "unixVer": "4.61"
564
+ * }
565
+ * }
566
+ * }
567
+ */
568
+ start : number,
569
+ /**
570
+ * 输入框光标结束位置
571
+ * @uniPlatform {
572
+ * "app": {
573
+ * "ios": {
574
+ * "osVer": "12.0",
575
+ * "uniVer": "√",
576
+ * "unixVer": "4.61"
577
+ * }
578
+ * }
579
+ * }
580
+ */
581
+ end : number
582
+ }
583
+
584
+ export type GetSelectedTextRangeFail = {
585
+
586
+ }
587
+
588
+ export interface Uni {
589
+ /**
590
+ * 隐藏键盘
591
+ * @uniPlatform {
307
592
  * "app": {
593
+ * "ios": {
594
+ * "osVer": "12.0",
595
+ * "uniVer": "√",
596
+ * "unixVer": "4.61"
597
+ * },
308
598
  * "harmony": {
309
599
  * "osVer": "3.0",
310
600
  * "uniVer": "4.23",
@@ -357,11 +647,188 @@ export interface Uni {
357
647
  * "uniVer": "√",
358
648
  * "unixVer": "4.0"
359
649
  * }
360
- * }
361
- * @uniVueVersion 2,3 //支持的vue版本
650
+ * }
651
+ * @uniVueVersion 2,3 //支持的vue版本
362
652
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/keyboard/wx.hideKeyboard.html
653
+ */
654
+ hideKeyboard(options ?: HideKeyboardOptions | null) : void;
655
+
656
+ /**
657
+ * 监听键盘高度变化事件
658
+ * @uniPlatform {
659
+ * "app": {
660
+ * "ios": {
661
+ * "osVer": "12.0",
662
+ * "uniVer": "√",
663
+ * "unixVer": "4.61"
664
+ * }
665
+ * },
666
+ * "mp": {
667
+ * "weixin": {
668
+ * "hostVer": "2.7.0",
669
+ * "uniVer": "√",
670
+ * "unixVer": "4.41"
671
+ * },
672
+ * "alipay": {
673
+ * "hostVer": "-",
674
+ * "uniVer": "-",
675
+ * "unixVer": "-"
676
+ * },
677
+ * "baidu": {
678
+ * "hostVer": "-",
679
+ * "uniVer": "-",
680
+ * "unixVer": "-"
681
+ * },
682
+ * "toutiao": {
683
+ * "hostVer": "-",
684
+ * "uniVer": "-",
685
+ * "unixVer": "-"
686
+ * },
687
+ * "lark": {
688
+ * "hostVer": "-",
689
+ * "uniVer": "-",
690
+ * "unixVer": "-"
691
+ * },
692
+ * "qq": {
693
+ * "hostVer": "-",
694
+ * "uniVer": "-",
695
+ * "unixVer": "-"
696
+ * },
697
+ * "kuaishou": {
698
+ * "hostVer": "-",
699
+ * "uniVer": "-",
700
+ * "unixVer": "-"
701
+ * },
702
+ * "jd": {
703
+ * "hostVer": "-",
704
+ * "uniVer": "-",
705
+ * "unixVer": "-"
706
+ * }
707
+ * }
708
+ * }
709
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/keyboard/wx.onKeyboardHeightChange.html
363
710
  */
364
- hideKeyboard(options?: HideKeyboardOptions | null): void;
365
- }
711
+ onKeyboardHeightChange(callback: OnKeyboardHeightChangeCallback): number
712
+
713
+ /**
714
+ * 移除键盘高度变化事件的监听函数
715
+ * @uniPlatform {
716
+ * "app": {
717
+ * "ios": {
718
+ * "osVer": "12.0",
719
+ * "uniVer": "√",
720
+ * "unixVer": "4.61"
721
+ * }
722
+ * },
723
+ * "mp": {
724
+ * "weixin": {
725
+ * "hostVer": "2.9.2",
726
+ * "uniVer": "√",
727
+ * "unixVer": "4.41"
728
+ * },
729
+ * "alipay": {
730
+ * "hostVer": "-",
731
+ * "uniVer": "-",
732
+ * "unixVer": "-"
733
+ * },
734
+ * "baidu": {
735
+ * "hostVer": "-",
736
+ * "uniVer": "-",
737
+ * "unixVer": "-"
738
+ * },
739
+ * "toutiao": {
740
+ * "hostVer": "-",
741
+ * "uniVer": "-",
742
+ * "unixVer": "-"
743
+ * },
744
+ * "lark": {
745
+ * "hostVer": "-",
746
+ * "uniVer": "-",
747
+ * "unixVer": "-"
748
+ * },
749
+ * "qq": {
750
+ * "hostVer": "-",
751
+ * "uniVer": "-",
752
+ * "unixVer": "-"
753
+ * },
754
+ * "kuaishou": {
755
+ * "hostVer": "-",
756
+ * "uniVer": "-",
757
+ * "unixVer": "-"
758
+ * },
759
+ * "jd": {
760
+ * "hostVer": "-",
761
+ * "uniVer": "-",
762
+ * "unixVer": "-"
763
+ * }
764
+ * }
765
+ * }
766
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/keyboard/wx.offKeyboardHeightChange.html
767
+ */
768
+ offKeyboardHeightChange(id ?: number | null): void
769
+
770
+ /**
771
+ * 获取输入框的光标位置(只有在focus的时候调用此接口才有效)
772
+ * @uniPlatform {
773
+ * "app": {
774
+ * "ios": {
775
+ * "osVer": "12.0",
776
+ * "uniVer": "√",
777
+ * "unixVer": "4.61"
778
+ * }
779
+ * },
780
+ * "mp": {
781
+ * "weixin": {
782
+ * "hostVer": "2.7.0",
783
+ * "uniVer": "√",
784
+ * "unixVer": "4.41"
785
+ * },
786
+ * "alipay": {
787
+ * "hostVer": "-",
788
+ * "uniVer": "-",
789
+ * "unixVer": "-"
790
+ * },
791
+ * "baidu": {
792
+ * "hostVer": "-",
793
+ * "uniVer": "-",
794
+ * "unixVer": "-"
795
+ * },
796
+ * "toutiao": {
797
+ * "hostVer": "-",
798
+ * "uniVer": "-",
799
+ * "unixVer": "-"
800
+ * },
801
+ * "lark": {
802
+ * "hostVer": "-",
803
+ * "uniVer": "-",
804
+ * "unixVer": "-"
805
+ * },
806
+ * "qq": {
807
+ * "hostVer": "-",
808
+ * "uniVer": "-",
809
+ * "unixVer": "-"
810
+ * },
811
+ * "kuaishou": {
812
+ * "hostVer": "-",
813
+ * "uniVer": "-",
814
+ * "unixVer": "-"
815
+ * },
816
+ * "jd": {
817
+ * "hostVer": "-",
818
+ * "uniVer": "-",
819
+ * "unixVer": "-"
820
+ * }
821
+ * }
822
+ * }
823
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/keyboard/wx.getSelectedTextRange.html
824
+ */
825
+ getSelectedTextRange(options : GetSelectedTextRangeOptions): void
826
+ }
827
+
828
+ export type HideKeyboard = (options ?: HideKeyboardOptions | null) => void;
829
+
830
+ export type OnKeyboardHeightChange = (callback: OnKeyboardHeightChangeCallback) => number;
831
+
832
+ export type OffKeyboardHeightChange = (id ?: number | null) => void;
366
833
 
367
- export type HideKeyboard = (options?: HideKeyboardOptions | null) => void;
834
+ export type GetSelectedTextRange = (options : GetSelectedTextRangeOptions) => void;
@@ -605,10 +605,6 @@ export interface Uni {
605
605
  /**
606
606
  * 动态加载网络字体
607
607
  *
608
- * `鸿蒙注意事项`
609
- * 1. base64 格式字体是通过转换成 buffer 保存在磁盘上并引入实现的,因此页面上过多的使用 base64 可能会有性能问题
610
- * 2. 鸿蒙字体都是全局生效的
611
- *
612
608
  * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/font.html#loadfontface
613
609
  * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/load-font-face.html
614
610
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/load-font-face.html
@@ -0,0 +1,26 @@
1
+ // 本文件为自动构建生成
2
+ import {
3
+ GetLocationFailImpl as GetLocationFailImplOrigin,
4
+ UniLocationProvider as UniLocationProviderOrigin,
5
+ UniLocationProvider as UniLocationProviderOrigin,
6
+ LocationErrorCode as LocationErrorCodeOrigin,
7
+ IGetLocationFail as IGetLocationFailOrigin,
8
+ GetLocationFail as GetLocationFailOrigin,
9
+ GetLocation as GetLocationOrigin,
10
+ GetLocationSuccess as GetLocationSuccessOrigin,
11
+ GetLocationOptions as GetLocationOptionsOrigin,
12
+ Uni as UniOrigin
13
+ } from './interface'
14
+
15
+ declare global {
16
+ type GetLocationFailImpl = GetLocationFailImplOrigin
17
+ type UniLocationProvider = UniLocationProviderOrigin
18
+ type UniLocationProvider = UniLocationProviderOrigin
19
+ type LocationErrorCode = LocationErrorCodeOrigin
20
+ type IGetLocationFail = IGetLocationFailOrigin
21
+ type GetLocationFail = GetLocationFailOrigin
22
+ type GetLocation = GetLocationOrigin
23
+ type GetLocationSuccess = GetLocationSuccessOrigin
24
+ type GetLocationOptions = GetLocationOptionsOrigin
25
+ interface Uni extends UniOrigin { }
26
+ }
@@ -0,0 +1,12 @@
1
+ // 本文件为自动构建生成
2
+ export {
3
+ GetLocationFailImpl,
4
+ UniLocationProvider,
5
+ UniLocationProvider,
6
+ LocationErrorCode,
7
+ IGetLocationFail,
8
+ GetLocationFail,
9
+ GetLocation,
10
+ GetLocationSuccess,
11
+ GetLocationOptions,
12
+ } from './interface'