@dcloudio/uni-app-x 0.7.4 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/app.d.ts +9 -9
- package/types/native/CSSStyleDeclaration.d.ts +4 -2
- package/types/native/IUniElement.d.ts +26 -4
- package/types/native/UniApp.d.ts +2 -2
- package/types/native/UniCustomEvent.d.ts +25 -0
- package/types/native/UniElement.d.ts +6 -3
- package/types/native/{Event.d.ts → UniEvent.d.ts} +18 -4
- package/types/native/UniForm.d.ts +8 -0
- package/types/native/UniImageErrorEvent.d.ts +16 -0
- package/types/native/UniImageLoadEvent.d.ts +20 -0
- package/types/native/UniInputBlurEvent.d.ts +20 -0
- package/types/native/UniInputConfirmEvent.d.ts +16 -0
- package/types/native/{InputEvent.d.ts → UniInputEvent.d.ts} +6 -3
- package/types/native/{TextareaFocusEvent.d.ts → UniInputFocusEvent.d.ts} +6 -3
- package/types/native/UniInputKeyboardHeightChangeEvent.d.ts +20 -0
- package/types/native/{NestedPreScrollEvent.d.ts → UniNestedPreScrollEvent.d.ts} +26 -22
- package/types/native/UniPage.d.ts +4 -4
- package/types/native/UniPageEvent.d.ts +11 -0
- package/types/native/UniPageScrollEvent.d.ts +14 -0
- package/types/native/{PointerEvent.d.ts → UniPointerEvent.d.ts} +11 -4
- package/types/native/UniRefresherEvent.d.ts +14 -0
- package/types/native/{ResizeEvent.d.ts → UniResizeEvent.d.ts} +6 -3
- package/types/native/{RichTextItemClickEvent.d.ts → UniRichTextItemClickEvent.d.ts} +5 -2
- package/types/native/{ScrollEvent.d.ts → UniScrollEvent.d.ts} +6 -3
- package/types/native/UniScrollToLowerEvent.d.ts +16 -0
- package/types/native/UniScrollToUpperEvent.d.ts +16 -0
- package/types/native/{StartNestedScrollEvent.d.ts → UniStartNestedScrollEvent.d.ts} +6 -3
- package/types/native/{StopNestedScrollEvent.d.ts → UniStopNestedScrollEvent.d.ts} +5 -2
- package/types/native/{SwiperAnimationFinishEvent.d.ts → UniSwiperAnimationFinishEvent.d.ts} +5 -2
- package/types/native/{SwiperChangeEvent.d.ts → UniSwiperChangeEvent.d.ts} +5 -2
- package/types/native/{SwiperTransitionEvent.d.ts → UniSwiperTransitionEvent.d.ts} +5 -2
- package/types/native/{TabTapEvent.d.ts → UniTabTapEvent.d.ts} +6 -3
- package/types/native/UniTextElement.d.ts +3 -0
- package/types/native/UniTextareaBlurEvent.d.ts +20 -0
- package/types/native/{InputFocusEvent.d.ts → UniTextareaFocusEvent.d.ts} +7 -3
- package/types/native/UniTextareaLineChangeEvent.d.ts +24 -0
- package/types/native/{TouchEvent.d.ts → UniTouchEvent.d.ts} +13 -6
- package/types/native/UniVideoElement.d.ts +5 -5
- package/types/native/{WebViewDownloadEvent.d.ts → UniWebViewDownloadEvent.d.ts} +10 -4
- package/types/native/{WebViewErrorEvent.d.ts → UniWebViewErrorEvent.d.ts} +10 -4
- package/types/native/UniWebViewLoadEvent.d.ts +27 -0
- package/types/native/UniWebViewLoadingEvent.d.ts +28 -0
- package/types/native/UniWebViewMessageEvent.d.ts +27 -0
- package/types/native/UniWebViewServiceMessageEvent.d.ts +1 -1
- package/types/native/global.d.ts +238 -111
- package/types/native/index.d.ts +35 -34
- package/types/page.d.ts +19 -19
- package/types/uni/core/lib/base/event/interface.d.ts +244 -4
- package/types/uni/core/lib/base/interceptor/interface.d.ts +2 -2
- package/types/uni/core/lib/lifecycle/interface.d.ts +26 -1
- package/types/uni/core/lib/performance/interface.d.ts +26 -1
- package/types/uni/core/lib/route/interface.d.ts +30 -30
- package/types/uni/core/lib/ui/create-selector-query/interface.d.ts +73 -73
- package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +2 -2
- package/types/uni/core/lib/ui/load-font-face/interface.d.ts +9 -9
- package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +37 -37
- package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +122 -2
- package/types/uni/core/lib/ui/set-navigation-bar-color/interface.d.ts +7 -7
- package/types/uni/core/lib/ui/set-navigation-bar-title/interface.d.ts +6 -6
- package/types/uni/core/lib/ui/tab-bar/interface.d.ts +489 -9
- package/types/uni/uts-plugin-api/global.d.ts +2 -1
- package/types/uni/uts-plugin-api/index.d.ts +2 -1
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -0
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +44 -0
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +11 -7
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -2
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +22 -18
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +8 -4
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +33 -29
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +7 -3
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +18 -14
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +106 -94
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +6 -2
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +11 -3
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +176 -152
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +66 -18
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +51 -11
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +238 -186
- package/types/uni/uts-plugin-biz/global.d.ts +1 -1
- package/types/uni/uts-plugin-biz/index.d.ts +1 -1
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +17 -18
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +26 -4
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +13 -2
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +93 -32
- package/types/vue/CheckboxGroupChangeEvent.d.ts +9 -2
- package/types/vue/LifeCycle.d.ts +3 -3
- package/types/vue/PickerViewChangeEvent.d.ts +9 -2
- package/types/vue/ProgressActiveendEvent.d.ts +9 -2
- package/types/vue/RadioGroupChangeEvent.d.ts +9 -2
- package/types/vue/SliderChangeEvent.d.ts +9 -2
- package/types/vue/SwitchChangeEvent.d.ts +9 -2
- package/types/vue/UniFormElement.d.ts +18 -4
- package/uts-plugin.d.ts +6 -6
- package/types/native/CustomEvent.d.ts +0 -18
- package/types/native/ImageErrorEvent.d.ts +0 -13
- package/types/native/ImageLoadEvent.d.ts +0 -17
- package/types/native/InputBlurEvent.d.ts +0 -17
- package/types/native/InputConfirmEvent.d.ts +0 -13
- package/types/native/InputKeyboardHeightChangeEvent.d.ts +0 -17
- package/types/native/PageEvent.d.ts +0 -8
- package/types/native/PageScrollEvent.d.ts +0 -11
- package/types/native/RefresherEvent.d.ts +0 -10
- package/types/native/ScrollToLowerEvent.d.ts +0 -13
- package/types/native/ScrollToUpperEvent.d.ts +0 -13
- package/types/native/TextareaBlurEvent.d.ts +0 -17
- package/types/native/TextareaLineChangeEvent.d.ts +0 -21
- package/types/native/WebViewLoadedEvent.d.ts +0 -21
- package/types/native/WebViewLoadingEvent.d.ts +0 -22
- package/types/native/WebViewMessageEvent.d.ts +0 -21
|
@@ -378,7 +378,67 @@ export interface Uni {
|
|
|
378
378
|
/**
|
|
379
379
|
* 为 tabBar 某一项的右上角添加文本
|
|
380
380
|
*
|
|
381
|
-
* @tutorial
|
|
381
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbarbadge
|
|
382
|
+
* @uniPlatform {
|
|
383
|
+
* "app": {
|
|
384
|
+
* "android": {
|
|
385
|
+
* "osVer": "5.0",
|
|
386
|
+
* "uniVer": "√",
|
|
387
|
+
* "unixVer": "3.91"
|
|
388
|
+
* },
|
|
389
|
+
* "ios": {
|
|
390
|
+
* "osVer": "10.0",
|
|
391
|
+
* "uniVer": "√",
|
|
392
|
+
* "unixVer": "x"
|
|
393
|
+
* }
|
|
394
|
+
* },
|
|
395
|
+
* "mp": {
|
|
396
|
+
* "weixin": {
|
|
397
|
+
* "hostVer": "√",
|
|
398
|
+
* "uniVer": "√",
|
|
399
|
+
* "unixVer": "x"
|
|
400
|
+
* },
|
|
401
|
+
* "alipay": {
|
|
402
|
+
* "hostVer": "√",
|
|
403
|
+
* "uniVer": "√",
|
|
404
|
+
* "unixVer": "x"
|
|
405
|
+
* },
|
|
406
|
+
* "baidu": {
|
|
407
|
+
* "hostVer": "√",
|
|
408
|
+
* "uniVer": "√",
|
|
409
|
+
* "unixVer": "x"
|
|
410
|
+
* },
|
|
411
|
+
* "toutiao": {
|
|
412
|
+
* "hostVer": "√",
|
|
413
|
+
* "uniVer": "√",
|
|
414
|
+
* "unixVer": "x"
|
|
415
|
+
* },
|
|
416
|
+
* "lark": {
|
|
417
|
+
* "hostVer": "√",
|
|
418
|
+
* "uniVer": "√",
|
|
419
|
+
* "unixVer": "x"
|
|
420
|
+
* },
|
|
421
|
+
* "qq": {
|
|
422
|
+
* "hostVer": "√",
|
|
423
|
+
* "uniVer": "√",
|
|
424
|
+
* "unixVer": "x"
|
|
425
|
+
* },
|
|
426
|
+
* "kuaishou": {
|
|
427
|
+
* "hostVer": "√",
|
|
428
|
+
* "uniVer": "√",
|
|
429
|
+
* "unixVer": "x"
|
|
430
|
+
* },
|
|
431
|
+
* "jd": {
|
|
432
|
+
* "hostVer": "√",
|
|
433
|
+
* "uniVer": "√",
|
|
434
|
+
* "unixVer": "x"
|
|
435
|
+
* }
|
|
436
|
+
* },
|
|
437
|
+
* "web": {
|
|
438
|
+
* "uniVer": "√",
|
|
439
|
+
* "unixVer": "4.0"
|
|
440
|
+
* }
|
|
441
|
+
* }
|
|
382
442
|
*/
|
|
383
443
|
setTabBarBadge(
|
|
384
444
|
options: SetTabBarBadgeOptions
|
|
@@ -386,7 +446,67 @@ export interface Uni {
|
|
|
386
446
|
/**
|
|
387
447
|
* 移除 tabBar 某一项右上角的文本
|
|
388
448
|
*
|
|
389
|
-
* @tutorial
|
|
449
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#removetabbarbadge
|
|
450
|
+
* @uniPlatform {
|
|
451
|
+
* "app": {
|
|
452
|
+
* "android": {
|
|
453
|
+
* "osVer": "5.0",
|
|
454
|
+
* "uniVer": "√",
|
|
455
|
+
* "unixVer": "3.91"
|
|
456
|
+
* },
|
|
457
|
+
* "ios": {
|
|
458
|
+
* "osVer": "10.0",
|
|
459
|
+
* "uniVer": "√",
|
|
460
|
+
* "unixVer": "x"
|
|
461
|
+
* }
|
|
462
|
+
* },
|
|
463
|
+
* "mp": {
|
|
464
|
+
* "weixin": {
|
|
465
|
+
* "hostVer": "√",
|
|
466
|
+
* "uniVer": "√",
|
|
467
|
+
* "unixVer": "x"
|
|
468
|
+
* },
|
|
469
|
+
* "alipay": {
|
|
470
|
+
* "hostVer": "√",
|
|
471
|
+
* "uniVer": "√",
|
|
472
|
+
* "unixVer": "x"
|
|
473
|
+
* },
|
|
474
|
+
* "baidu": {
|
|
475
|
+
* "hostVer": "√",
|
|
476
|
+
* "uniVer": "√",
|
|
477
|
+
* "unixVer": "x"
|
|
478
|
+
* },
|
|
479
|
+
* "toutiao": {
|
|
480
|
+
* "hostVer": "√",
|
|
481
|
+
* "uniVer": "√",
|
|
482
|
+
* "unixVer": "x"
|
|
483
|
+
* },
|
|
484
|
+
* "lark": {
|
|
485
|
+
* "hostVer": "√",
|
|
486
|
+
* "uniVer": "√",
|
|
487
|
+
* "unixVer": "x"
|
|
488
|
+
* },
|
|
489
|
+
* "qq": {
|
|
490
|
+
* "hostVer": "√",
|
|
491
|
+
* "uniVer": "√",
|
|
492
|
+
* "unixVer": "x"
|
|
493
|
+
* },
|
|
494
|
+
* "kuaishou": {
|
|
495
|
+
* "hostVer": "√",
|
|
496
|
+
* "uniVer": "√",
|
|
497
|
+
* "unixVer": "x"
|
|
498
|
+
* },
|
|
499
|
+
* "jd": {
|
|
500
|
+
* "hostVer": "√",
|
|
501
|
+
* "uniVer": "√",
|
|
502
|
+
* "unixVer": "x"
|
|
503
|
+
* }
|
|
504
|
+
* },
|
|
505
|
+
* "web": {
|
|
506
|
+
* "uniVer": "√",
|
|
507
|
+
* "unixVer": "4.0"
|
|
508
|
+
* }
|
|
509
|
+
* }
|
|
390
510
|
*/
|
|
391
511
|
removeTabBarBadge(
|
|
392
512
|
options: RemoveTabBarBadgeOptions
|
|
@@ -394,7 +514,67 @@ export interface Uni {
|
|
|
394
514
|
/**
|
|
395
515
|
* 动态设置 tabBar 某一项的内容
|
|
396
516
|
*
|
|
397
|
-
* @tutorial
|
|
517
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbaritem
|
|
518
|
+
* @uniPlatform {
|
|
519
|
+
* "app": {
|
|
520
|
+
* "android": {
|
|
521
|
+
* "osVer": "5.0",
|
|
522
|
+
* "uniVer": "√",
|
|
523
|
+
* "unixVer": "3.91"
|
|
524
|
+
* },
|
|
525
|
+
* "ios": {
|
|
526
|
+
* "osVer": "10.0",
|
|
527
|
+
* "uniVer": "√",
|
|
528
|
+
* "unixVer": "x"
|
|
529
|
+
* }
|
|
530
|
+
* },
|
|
531
|
+
* "mp": {
|
|
532
|
+
* "weixin": {
|
|
533
|
+
* "hostVer": "√",
|
|
534
|
+
* "uniVer": "√",
|
|
535
|
+
* "unixVer": "x"
|
|
536
|
+
* },
|
|
537
|
+
* "alipay": {
|
|
538
|
+
* "hostVer": "√",
|
|
539
|
+
* "uniVer": "√",
|
|
540
|
+
* "unixVer": "x"
|
|
541
|
+
* },
|
|
542
|
+
* "baidu": {
|
|
543
|
+
* "hostVer": "√",
|
|
544
|
+
* "uniVer": "√",
|
|
545
|
+
* "unixVer": "x"
|
|
546
|
+
* },
|
|
547
|
+
* "toutiao": {
|
|
548
|
+
* "hostVer": "√",
|
|
549
|
+
* "uniVer": "√",
|
|
550
|
+
* "unixVer": "x"
|
|
551
|
+
* },
|
|
552
|
+
* "lark": {
|
|
553
|
+
* "hostVer": "√",
|
|
554
|
+
* "uniVer": "√",
|
|
555
|
+
* "unixVer": "x"
|
|
556
|
+
* },
|
|
557
|
+
* "qq": {
|
|
558
|
+
* "hostVer": "√",
|
|
559
|
+
* "uniVer": "√",
|
|
560
|
+
* "unixVer": "x"
|
|
561
|
+
* },
|
|
562
|
+
* "kuaishou": {
|
|
563
|
+
* "hostVer": "√",
|
|
564
|
+
* "uniVer": "√",
|
|
565
|
+
* "unixVer": "x"
|
|
566
|
+
* },
|
|
567
|
+
* "jd": {
|
|
568
|
+
* "hostVer": "√",
|
|
569
|
+
* "uniVer": "√",
|
|
570
|
+
* "unixVer": "x"
|
|
571
|
+
* }
|
|
572
|
+
* },
|
|
573
|
+
* "web": {
|
|
574
|
+
* "uniVer": "√",
|
|
575
|
+
* "unixVer": "4.0"
|
|
576
|
+
* }
|
|
577
|
+
* }
|
|
398
578
|
*/
|
|
399
579
|
setTabBarItem(
|
|
400
580
|
options: SetTabBarItemOptions
|
|
@@ -402,7 +582,67 @@ export interface Uni {
|
|
|
402
582
|
/**
|
|
403
583
|
* 动态设置 tabBar 的整体样式
|
|
404
584
|
*
|
|
405
|
-
* @tutorial
|
|
585
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbarstyle
|
|
586
|
+
* @uniPlatform {
|
|
587
|
+
* "app": {
|
|
588
|
+
* "android": {
|
|
589
|
+
* "osVer": "5.0",
|
|
590
|
+
* "uniVer": "√",
|
|
591
|
+
* "unixVer": "3.91"
|
|
592
|
+
* },
|
|
593
|
+
* "ios": {
|
|
594
|
+
* "osVer": "10.0",
|
|
595
|
+
* "uniVer": "√",
|
|
596
|
+
* "unixVer": "x"
|
|
597
|
+
* }
|
|
598
|
+
* },
|
|
599
|
+
* "mp": {
|
|
600
|
+
* "weixin": {
|
|
601
|
+
* "hostVer": "√",
|
|
602
|
+
* "uniVer": "√",
|
|
603
|
+
* "unixVer": "x"
|
|
604
|
+
* },
|
|
605
|
+
* "alipay": {
|
|
606
|
+
* "hostVer": "√",
|
|
607
|
+
* "uniVer": "√",
|
|
608
|
+
* "unixVer": "x"
|
|
609
|
+
* },
|
|
610
|
+
* "baidu": {
|
|
611
|
+
* "hostVer": "√",
|
|
612
|
+
* "uniVer": "√",
|
|
613
|
+
* "unixVer": "x"
|
|
614
|
+
* },
|
|
615
|
+
* "toutiao": {
|
|
616
|
+
* "hostVer": "√",
|
|
617
|
+
* "uniVer": "√",
|
|
618
|
+
* "unixVer": "x"
|
|
619
|
+
* },
|
|
620
|
+
* "lark": {
|
|
621
|
+
* "hostVer": "√",
|
|
622
|
+
* "uniVer": "√",
|
|
623
|
+
* "unixVer": "x"
|
|
624
|
+
* },
|
|
625
|
+
* "qq": {
|
|
626
|
+
* "hostVer": "√",
|
|
627
|
+
* "uniVer": "√",
|
|
628
|
+
* "unixVer": "x"
|
|
629
|
+
* },
|
|
630
|
+
* "kuaishou": {
|
|
631
|
+
* "hostVer": "√",
|
|
632
|
+
* "uniVer": "√",
|
|
633
|
+
* "unixVer": "x"
|
|
634
|
+
* },
|
|
635
|
+
* "jd": {
|
|
636
|
+
* "hostVer": "√",
|
|
637
|
+
* "uniVer": "√",
|
|
638
|
+
* "unixVer": "x"
|
|
639
|
+
* }
|
|
640
|
+
* },
|
|
641
|
+
* "web": {
|
|
642
|
+
* "uniVer": "√",
|
|
643
|
+
* "unixVer": "4.0"
|
|
644
|
+
* }
|
|
645
|
+
* }
|
|
406
646
|
*/
|
|
407
647
|
setTabBarStyle(
|
|
408
648
|
options: SetTabBarStyleOptions
|
|
@@ -410,7 +650,67 @@ export interface Uni {
|
|
|
410
650
|
/**
|
|
411
651
|
* 隐藏 tabBar
|
|
412
652
|
*
|
|
413
|
-
* @tutorial
|
|
653
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#hidetabbar
|
|
654
|
+
* @uniPlatform {
|
|
655
|
+
* "app": {
|
|
656
|
+
* "android": {
|
|
657
|
+
* "osVer": "5.0",
|
|
658
|
+
* "uniVer": "√",
|
|
659
|
+
* "unixVer": "3.91"
|
|
660
|
+
* },
|
|
661
|
+
* "ios": {
|
|
662
|
+
* "osVer": "10.0",
|
|
663
|
+
* "uniVer": "√",
|
|
664
|
+
* "unixVer": "x"
|
|
665
|
+
* }
|
|
666
|
+
* },
|
|
667
|
+
* "mp": {
|
|
668
|
+
* "weixin": {
|
|
669
|
+
* "hostVer": "√",
|
|
670
|
+
* "uniVer": "√",
|
|
671
|
+
* "unixVer": "x"
|
|
672
|
+
* },
|
|
673
|
+
* "alipay": {
|
|
674
|
+
* "hostVer": "√",
|
|
675
|
+
* "uniVer": "√",
|
|
676
|
+
* "unixVer": "x"
|
|
677
|
+
* },
|
|
678
|
+
* "baidu": {
|
|
679
|
+
* "hostVer": "√",
|
|
680
|
+
* "uniVer": "√",
|
|
681
|
+
* "unixVer": "x"
|
|
682
|
+
* },
|
|
683
|
+
* "toutiao": {
|
|
684
|
+
* "hostVer": "√",
|
|
685
|
+
* "uniVer": "√",
|
|
686
|
+
* "unixVer": "x"
|
|
687
|
+
* },
|
|
688
|
+
* "lark": {
|
|
689
|
+
* "hostVer": "√",
|
|
690
|
+
* "uniVer": "√",
|
|
691
|
+
* "unixVer": "x"
|
|
692
|
+
* },
|
|
693
|
+
* "qq": {
|
|
694
|
+
* "hostVer": "√",
|
|
695
|
+
* "uniVer": "√",
|
|
696
|
+
* "unixVer": "x"
|
|
697
|
+
* },
|
|
698
|
+
* "kuaishou": {
|
|
699
|
+
* "hostVer": "√",
|
|
700
|
+
* "uniVer": "√",
|
|
701
|
+
* "unixVer": "x"
|
|
702
|
+
* },
|
|
703
|
+
* "jd": {
|
|
704
|
+
* "hostVer": "√",
|
|
705
|
+
* "uniVer": "√",
|
|
706
|
+
* "unixVer": "x"
|
|
707
|
+
* }
|
|
708
|
+
* },
|
|
709
|
+
* "web": {
|
|
710
|
+
* "uniVer": "√",
|
|
711
|
+
* "unixVer": "4.0"
|
|
712
|
+
* }
|
|
713
|
+
* }
|
|
414
714
|
*/
|
|
415
715
|
hideTabBar(
|
|
416
716
|
options?: HideTabBarOptions | null
|
|
@@ -418,7 +718,67 @@ export interface Uni {
|
|
|
418
718
|
/**
|
|
419
719
|
* 显示 tabBar
|
|
420
720
|
*
|
|
421
|
-
* @tutorial
|
|
721
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#showtabbar
|
|
722
|
+
* @uniPlatform {
|
|
723
|
+
* "app": {
|
|
724
|
+
* "android": {
|
|
725
|
+
* "osVer": "5.0",
|
|
726
|
+
* "uniVer": "√",
|
|
727
|
+
* "unixVer": "3.91"
|
|
728
|
+
* },
|
|
729
|
+
* "ios": {
|
|
730
|
+
* "osVer": "10.0",
|
|
731
|
+
* "uniVer": "√",
|
|
732
|
+
* "unixVer": "x"
|
|
733
|
+
* }
|
|
734
|
+
* },
|
|
735
|
+
* "mp": {
|
|
736
|
+
* "weixin": {
|
|
737
|
+
* "hostVer": "√",
|
|
738
|
+
* "uniVer": "√",
|
|
739
|
+
* "unixVer": "x"
|
|
740
|
+
* },
|
|
741
|
+
* "alipay": {
|
|
742
|
+
* "hostVer": "√",
|
|
743
|
+
* "uniVer": "√",
|
|
744
|
+
* "unixVer": "x"
|
|
745
|
+
* },
|
|
746
|
+
* "baidu": {
|
|
747
|
+
* "hostVer": "√",
|
|
748
|
+
* "uniVer": "√",
|
|
749
|
+
* "unixVer": "x"
|
|
750
|
+
* },
|
|
751
|
+
* "toutiao": {
|
|
752
|
+
* "hostVer": "√",
|
|
753
|
+
* "uniVer": "√",
|
|
754
|
+
* "unixVer": "x"
|
|
755
|
+
* },
|
|
756
|
+
* "lark": {
|
|
757
|
+
* "hostVer": "√",
|
|
758
|
+
* "uniVer": "√",
|
|
759
|
+
* "unixVer": "x"
|
|
760
|
+
* },
|
|
761
|
+
* "qq": {
|
|
762
|
+
* "hostVer": "√",
|
|
763
|
+
* "uniVer": "√",
|
|
764
|
+
* "unixVer": "x"
|
|
765
|
+
* },
|
|
766
|
+
* "kuaishou": {
|
|
767
|
+
* "hostVer": "√",
|
|
768
|
+
* "uniVer": "√",
|
|
769
|
+
* "unixVer": "x"
|
|
770
|
+
* },
|
|
771
|
+
* "jd": {
|
|
772
|
+
* "hostVer": "√",
|
|
773
|
+
* "uniVer": "√",
|
|
774
|
+
* "unixVer": "x"
|
|
775
|
+
* }
|
|
776
|
+
* },
|
|
777
|
+
* "web": {
|
|
778
|
+
* "uniVer": "√",
|
|
779
|
+
* "unixVer": "4.0"
|
|
780
|
+
* }
|
|
781
|
+
* }
|
|
422
782
|
*/
|
|
423
783
|
showTabBar(
|
|
424
784
|
options?: ShowTabBarOptions | null
|
|
@@ -426,7 +786,67 @@ export interface Uni {
|
|
|
426
786
|
/**
|
|
427
787
|
* 显示 tabBar 某一项的右上角的红点
|
|
428
788
|
*
|
|
429
|
-
* @tutorial
|
|
789
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#showtabbarreddot
|
|
790
|
+
* @uniPlatform {
|
|
791
|
+
* "app": {
|
|
792
|
+
* "android": {
|
|
793
|
+
* "osVer": "5.0",
|
|
794
|
+
* "uniVer": "√",
|
|
795
|
+
* "unixVer": "3.91"
|
|
796
|
+
* },
|
|
797
|
+
* "ios": {
|
|
798
|
+
* "osVer": "10.0",
|
|
799
|
+
* "uniVer": "√",
|
|
800
|
+
* "unixVer": "x"
|
|
801
|
+
* }
|
|
802
|
+
* },
|
|
803
|
+
* "mp": {
|
|
804
|
+
* "weixin": {
|
|
805
|
+
* "hostVer": "√",
|
|
806
|
+
* "uniVer": "√",
|
|
807
|
+
* "unixVer": "x"
|
|
808
|
+
* },
|
|
809
|
+
* "alipay": {
|
|
810
|
+
* "hostVer": "√",
|
|
811
|
+
* "uniVer": "√",
|
|
812
|
+
* "unixVer": "x"
|
|
813
|
+
* },
|
|
814
|
+
* "baidu": {
|
|
815
|
+
* "hostVer": "√",
|
|
816
|
+
* "uniVer": "√",
|
|
817
|
+
* "unixVer": "x"
|
|
818
|
+
* },
|
|
819
|
+
* "toutiao": {
|
|
820
|
+
* "hostVer": "√",
|
|
821
|
+
* "uniVer": "√",
|
|
822
|
+
* "unixVer": "x"
|
|
823
|
+
* },
|
|
824
|
+
* "lark": {
|
|
825
|
+
* "hostVer": "√",
|
|
826
|
+
* "uniVer": "√",
|
|
827
|
+
* "unixVer": "x"
|
|
828
|
+
* },
|
|
829
|
+
* "qq": {
|
|
830
|
+
* "hostVer": "√",
|
|
831
|
+
* "uniVer": "√",
|
|
832
|
+
* "unixVer": "x"
|
|
833
|
+
* },
|
|
834
|
+
* "kuaishou": {
|
|
835
|
+
* "hostVer": "√",
|
|
836
|
+
* "uniVer": "√",
|
|
837
|
+
* "unixVer": "x"
|
|
838
|
+
* },
|
|
839
|
+
* "jd": {
|
|
840
|
+
* "hostVer": "√",
|
|
841
|
+
* "uniVer": "√",
|
|
842
|
+
* "unixVer": "x"
|
|
843
|
+
* }
|
|
844
|
+
* },
|
|
845
|
+
* "web": {
|
|
846
|
+
* "uniVer": "√",
|
|
847
|
+
* "unixVer": "4.0"
|
|
848
|
+
* }
|
|
849
|
+
* }
|
|
430
850
|
*/
|
|
431
851
|
showTabBarRedDot(
|
|
432
852
|
options: ShowTabBarRedDotOptions
|
|
@@ -434,7 +854,67 @@ export interface Uni {
|
|
|
434
854
|
/**
|
|
435
855
|
* 隐藏 tabBar 某一项的右上角的红点
|
|
436
856
|
*
|
|
437
|
-
* @tutorial
|
|
857
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#hidetabbarreddot
|
|
858
|
+
* @uniPlatform {
|
|
859
|
+
* "app": {
|
|
860
|
+
* "android": {
|
|
861
|
+
* "osVer": "5.0",
|
|
862
|
+
* "uniVer": "√",
|
|
863
|
+
* "unixVer": "3.91"
|
|
864
|
+
* },
|
|
865
|
+
* "ios": {
|
|
866
|
+
* "osVer": "10.0",
|
|
867
|
+
* "uniVer": "√",
|
|
868
|
+
* "unixVer": "x"
|
|
869
|
+
* }
|
|
870
|
+
* },
|
|
871
|
+
* "mp": {
|
|
872
|
+
* "weixin": {
|
|
873
|
+
* "hostVer": "√",
|
|
874
|
+
* "uniVer": "√",
|
|
875
|
+
* "unixVer": "x"
|
|
876
|
+
* },
|
|
877
|
+
* "alipay": {
|
|
878
|
+
* "hostVer": "√",
|
|
879
|
+
* "uniVer": "√",
|
|
880
|
+
* "unixVer": "x"
|
|
881
|
+
* },
|
|
882
|
+
* "baidu": {
|
|
883
|
+
* "hostVer": "√",
|
|
884
|
+
* "uniVer": "√",
|
|
885
|
+
* "unixVer": "x"
|
|
886
|
+
* },
|
|
887
|
+
* "toutiao": {
|
|
888
|
+
* "hostVer": "√",
|
|
889
|
+
* "uniVer": "√",
|
|
890
|
+
* "unixVer": "x"
|
|
891
|
+
* },
|
|
892
|
+
* "lark": {
|
|
893
|
+
* "hostVer": "√",
|
|
894
|
+
* "uniVer": "√",
|
|
895
|
+
* "unixVer": "x"
|
|
896
|
+
* },
|
|
897
|
+
* "qq": {
|
|
898
|
+
* "hostVer": "√",
|
|
899
|
+
* "uniVer": "√",
|
|
900
|
+
* "unixVer": "x"
|
|
901
|
+
* },
|
|
902
|
+
* "kuaishou": {
|
|
903
|
+
* "hostVer": "√",
|
|
904
|
+
* "uniVer": "√",
|
|
905
|
+
* "unixVer": "x"
|
|
906
|
+
* },
|
|
907
|
+
* "jd": {
|
|
908
|
+
* "hostVer": "√",
|
|
909
|
+
* "uniVer": "√",
|
|
910
|
+
* "unixVer": "x"
|
|
911
|
+
* }
|
|
912
|
+
* },
|
|
913
|
+
* "web": {
|
|
914
|
+
* "uniVer": "√",
|
|
915
|
+
* "unixVer": "4.0"
|
|
916
|
+
* }
|
|
917
|
+
* }
|
|
438
918
|
*/
|
|
439
919
|
hideTabBarRedDot(
|
|
440
920
|
options: HideTabBarRedDotOptions
|
|
@@ -442,7 +922,7 @@ export interface Uni {
|
|
|
442
922
|
// /**
|
|
443
923
|
// * 监听中间按钮的点击事件
|
|
444
924
|
// *
|
|
445
|
-
// * @tutorial
|
|
925
|
+
// * @tutorial https://doc.dcloud.net.cn/uni-app-x/tabbar?id=ontabbarmidbuttontap
|
|
446
926
|
// */
|
|
447
927
|
// onTabBarMidButtonTap(options: OnTabBarMidButtonTapCallback): void
|
|
448
928
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference path='./lib/uni-websocket/utssdk/global.d.ts' />
|
|
2
1
|
/// <reference path='./lib/uni-storage/utssdk/global.d.ts' />
|
|
2
|
+
/// <reference path='./lib/uni-websocket/utssdk/global.d.ts' />
|
|
3
3
|
/// <reference path='./lib/uni-prompt/utssdk/global.d.ts' />
|
|
4
4
|
/// <reference path='./lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts' />
|
|
5
5
|
/// <reference path='./lib/uni-network/utssdk/global.d.ts' />
|
|
@@ -16,4 +16,5 @@
|
|
|
16
16
|
/// <reference path='./lib/uni-fileSystemManager/utssdk/global.d.ts' />
|
|
17
17
|
/// <reference path='./lib/uni-exit/utssdk/global.d.ts' />
|
|
18
18
|
/// <reference path='./lib/uni-createWebviewContext/utssdk/global.d.ts' />
|
|
19
|
+
/// <reference path='./lib/uni-createRequestPermissionListener/utssdk/global.d.ts' />
|
|
19
20
|
/// <reference path='./lib/uni-network/utssdk/app-ios/global.d.ts' />
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './lib/uni-websocket/utssdk'
|
|
2
1
|
export * from './lib/uni-storage/utssdk'
|
|
2
|
+
export * from './lib/uni-websocket/utssdk'
|
|
3
3
|
export * from './lib/uni-prompt/utssdk'
|
|
4
4
|
export * from './lib/uni-openAppAuthorizeSetting/utssdk'
|
|
5
5
|
export * from './lib/uni-network/utssdk'
|
|
@@ -16,4 +16,5 @@ export * from './lib/uni-getAccessibilityInfo/utssdk'
|
|
|
16
16
|
export * from './lib/uni-fileSystemManager/utssdk'
|
|
17
17
|
export * from './lib/uni-exit/utssdk'
|
|
18
18
|
export * from './lib/uni-createWebviewContext/utssdk'
|
|
19
|
+
export * from './lib/uni-createRequestPermissionListener/utssdk'
|
|
19
20
|
export * from './lib/uni-network/utssdk/app-ios'
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
RequestPermissionListenerRequestCallback as RequestPermissionListenerRequestCallbackOrigin,
|
|
4
|
+
RequestPermissionListenerConfirmCallback as RequestPermissionListenerConfirmCallbackOrigin,
|
|
5
|
+
RequestPermissionListenerCompleteCallback as RequestPermissionListenerCompleteCallbackOrigin,
|
|
6
|
+
RequestPermissionListener as RequestPermissionListenerOrigin,
|
|
7
|
+
CreateRequestPermissionListener as CreateRequestPermissionListenerOrigin,
|
|
8
|
+
Uni as UniOrigin
|
|
9
|
+
} from './interface'
|
|
10
|
+
|
|
11
|
+
declare global {
|
|
12
|
+
type RequestPermissionListenerRequestCallback = RequestPermissionListenerRequestCallbackOrigin
|
|
13
|
+
type RequestPermissionListenerConfirmCallback = RequestPermissionListenerConfirmCallbackOrigin
|
|
14
|
+
type RequestPermissionListenerCompleteCallback = RequestPermissionListenerCompleteCallbackOrigin
|
|
15
|
+
type RequestPermissionListener = RequestPermissionListenerOrigin
|
|
16
|
+
type CreateRequestPermissionListener = CreateRequestPermissionListenerOrigin
|
|
17
|
+
interface Uni extends UniOrigin { }
|
|
18
|
+
}
|
package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type RequestPermissionListenerRequestCallback = (permissions : Array<string>) => void
|
|
2
|
+
export type RequestPermissionListenerConfirmCallback = (permissions : Array<string>) => void
|
|
3
|
+
export type RequestPermissionListenerCompleteCallback = (permissions : Array<string>) => void
|
|
4
|
+
|
|
5
|
+
export interface RequestPermissionListener {
|
|
6
|
+
/**
|
|
7
|
+
* 监听申请系统权限
|
|
8
|
+
* @param {RequestPermissionListenerRequestCallback} callback 申请系统权限回调,permissions为触发权限申请的所有权限
|
|
9
|
+
*/
|
|
10
|
+
onRequest(callback : RequestPermissionListenerRequestCallback) : void
|
|
11
|
+
/**
|
|
12
|
+
* 监听弹出系统权限授权框
|
|
13
|
+
* @param {RequestPermissionListenerConfirmCallback} callback 弹出系统权限授权框回调,permissions为触发弹出权限授权框的所有权限
|
|
14
|
+
*/
|
|
15
|
+
onConfirm(callback : RequestPermissionListenerConfirmCallback) : void
|
|
16
|
+
/**
|
|
17
|
+
* 监听权限申请完成
|
|
18
|
+
* @param {RequestPermissionListenerCompleteCallback} callback 权限申请完成回调,permissions为申请完成的所有权限
|
|
19
|
+
*/
|
|
20
|
+
onComplete(callback : RequestPermissionListenerCompleteCallback) : void
|
|
21
|
+
/**
|
|
22
|
+
* 取消所有监听
|
|
23
|
+
*/
|
|
24
|
+
stop() : void
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type CreateRequestPermissionListener = () => RequestPermissionListener
|
|
28
|
+
|
|
29
|
+
export interface Uni {
|
|
30
|
+
/**
|
|
31
|
+
* 创建一个监听权限申请的对象。
|
|
32
|
+
* @description 创建一个监听权限申请的对象。
|
|
33
|
+
* @uniPlatform {
|
|
34
|
+
* "app": {
|
|
35
|
+
* "android": {
|
|
36
|
+
* "osVer": "5.0",
|
|
37
|
+
* "uniVer": "4.0+",
|
|
38
|
+
* "unixVer": "4.0+"
|
|
39
|
+
* }
|
|
40
|
+
* }
|
|
41
|
+
* }
|
|
42
|
+
*/
|
|
43
|
+
createRequestPermissionListener : CreateRequestPermissionListener
|
|
44
|
+
}
|