@dcloudio/uni-app-x 0.7.12 → 0.7.13
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/.prettierrc +5 -5
- package/README.md +1 -1
- package/index.d.ts +1 -1
- package/options.d.ts +9 -9
- package/package.json +27 -27
- package/types/app.d.ts +843 -843
- package/types/index.d.ts +7 -7
- package/types/native/AsyncApiResult.d.ts +7 -7
- package/types/native/CSSStyleDeclaration.d.ts +25 -25
- package/types/native/DOMRect.d.ts +56 -56
- package/types/native/DrawableContext.d.ts +162 -162
- package/types/native/INavigationBar.d.ts +22 -22
- package/types/native/IUniElement.d.ts +760 -760
- package/types/native/IUniError.d.ts +20 -20
- package/types/native/IUniForm.d.ts +9 -9
- package/types/native/NativeLoadFontFaceOptions.d.ts +11 -11
- package/types/native/NodeData.d.ts +22 -22
- package/types/native/PageNode.d.ts +6 -6
- package/types/native/SnapshotOptions.d.ts +63 -63
- package/types/native/SourceError.d.ts +46 -46
- package/types/native/UTSAndroidHookProxy.d.ts +14 -14
- package/types/native/UniAggregateError.d.ts +19 -19
- package/types/native/UniApp.d.ts +79 -79
- package/types/native/UniCallbackWrapper.d.ts +7 -7
- package/types/native/UniCustomEvent.d.ts +24 -24
- package/types/native/UniDocument.d.ts +83 -83
- package/types/native/UniElement.d.ts +74 -74
- package/types/native/UniError.d.ts +70 -70
- package/types/native/UniEvent.d.ts +62 -62
- package/types/native/UniFormControl.d.ts +8 -8
- package/types/native/UniFormControlElement.d.ts +14 -14
- package/types/native/UniImageErrorEvent.d.ts +33 -33
- package/types/native/UniImageLoadEvent.d.ts +37 -37
- package/types/native/UniInputBlurEvent.d.ts +36 -36
- package/types/native/UniInputConfirmEvent.d.ts +30 -30
- package/types/native/UniInputEvent.d.ts +38 -38
- package/types/native/UniInputFocusEvent.d.ts +53 -48
- package/types/native/UniNativePage.d.ts +219 -181
- package/types/native/UniNestedPreScrollEvent.d.ts +45 -45
- package/types/native/UniPageEvent.d.ts +10 -10
- package/types/native/UniPageManager.d.ts +17 -17
- package/types/native/UniPageScrollEvent.d.ts +13 -13
- package/types/native/UniPointerEvent.d.ts +74 -74
- package/types/native/UniRefresherEvent.d.ts +18 -18
- package/types/native/UniResizeEvent.d.ts +34 -34
- package/types/native/UniResizeObserver.d.ts +184 -0
- package/types/native/UniRichTextItemClickEvent.d.ts +41 -41
- package/types/native/UniScrollEvent.d.ts +42 -42
- package/types/native/UniScrollToLowerEvent.d.ts +23 -23
- package/types/native/UniScrollToUpperEvent.d.ts +23 -23
- package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
- package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +22 -22
- package/types/native/UniSwiperChangeEvent.d.ts +22 -22
- package/types/native/UniSwiperTransitionEvent.d.ts +24 -24
- package/types/native/UniTabTapEvent.d.ts +18 -18
- package/types/native/UniTabsElement.d.ts +59 -59
- package/types/native/UniTextElement.d.ts +34 -34
- package/types/native/UniTextareaFocusEvent.d.ts +54 -49
- package/types/native/UniTouchEvent.d.ts +64 -64
- package/types/native/UniVideoElement.d.ts +70 -70
- package/types/native/UniWebViewDownloadEvent.d.ts +52 -52
- package/types/native/UniWebViewElement.d.ts +10 -10
- package/types/native/UniWebViewErrorEvent.d.ts +59 -47
- package/types/native/UniWebViewLoadEvent.d.ts +41 -36
- package/types/native/UniWebViewLoadingEvent.d.ts +41 -36
- package/types/native/UniWebViewMessageEvent.d.ts +36 -36
- package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
- package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
- package/types/native/WebViewStyles.d.ts +20 -20
- package/types/native/global.d.ts +530 -519
- package/types/native/index.d.ts +66 -65
- package/types/native-global/index.d.ts +1 -1
- package/types/page.d.ts +1593 -1593
- package/types/process.d.ts +5 -5
- package/types/uni/base/index.d.ts +3 -3
- package/types/uni/env/index.d.ts +64 -64
- package/types/uni/global.d.ts +5 -5
- package/types/uni/index.d.ts +2 -2
- package/types/uni/uts-plugin-api/global.d.ts +35 -35
- package/types/uni/uts-plugin-api/index.d.ts +35 -35
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +43 -43
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +412 -412
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +129 -129
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +16 -16
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +7 -7
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +277 -277
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +82 -82
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +136 -66
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +67 -32
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +1784 -450
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +113 -109
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +398 -350
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +73 -73
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +39 -39
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +9 -9
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +151 -151
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +157 -157
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +84 -88
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +30 -30
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +14 -14
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +26 -26
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +152 -152
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +26 -26
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +557 -557
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +158 -158
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +78 -78
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +926 -906
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +44 -44
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +21 -21
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +794 -794
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +78 -78
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +38 -38
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +4 -3
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +72 -72
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +35 -35
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +30 -13
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +143 -143
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -30
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -14
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +2 -1
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +74 -74
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +36 -36
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +26 -26
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +174 -174
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2020 -2020
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +33 -33
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +531 -531
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +132 -132
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +65 -65
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +926 -926
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +52 -52
- package/types/uni/uts-plugin-biz/global.d.ts +4 -4
- package/types/uni/uts-plugin-biz/index.d.ts +4 -4
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +36 -36
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +17 -17
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +132 -132
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +141 -141
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +56 -56
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +27 -27
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +46 -46
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +22 -22
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +203 -203
- package/types/uni/uts-plugin-component/global.d.ts +1 -1
- package/types/uni/uts-plugin-component/index.d.ts +1 -1
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +64 -64
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +31 -31
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +404 -404
- package/types/uni-cloud/index.d.ts +59 -59
- package/types/uni-cloud/interface.d.ts +848 -801
- package/types/uni-cloud/unicloud-db/index.d.ts +81 -0
- package/types/uni-cloud/unicloud-db/index.ts +313 -313
- package/types/uni-global/index.d.ts +1 -1
- package/types/vue/CheckboxGroupChangeEvent.d.ts +36 -36
- package/types/vue/LifeCycle.d.ts +55 -55
- package/types/vue/PickerViewChangeEvent.d.ts +36 -36
- package/types/vue/ProgressActiveendEvent.d.ts +30 -30
- package/types/vue/RadioGroupChangeEvent.d.ts +36 -36
- package/types/vue/SliderChangeEvent.d.ts +32 -32
- package/types/vue/SwitchChangeEvent.d.ts +30 -30
- package/types/vue/UniCanvasElement.d.ts +270 -270
- package/types/vue/UniCloudDBElement.d.ts +215 -215
- package/types/vue/UniFormElement.d.ts +51 -51
- package/types/vue/UniNavigatorElement.d.ts +7 -7
- package/types/vue/index.d.ts +11 -11
- package/uts-plugin.d.ts +27 -26
|
@@ -1,926 +1,926 @@
|
|
|
1
|
-
export type SetTabBarBadgeSuccess = AsyncApiSuccessResult
|
|
2
|
-
export type SetTabBarBadgeSuccessCallback = (
|
|
3
|
-
result: SetTabBarBadgeSuccess,
|
|
4
|
-
) => void
|
|
5
|
-
/**
|
|
6
|
-
* 错误码
|
|
7
|
-
* - 100: TabBar 不存在
|
|
8
|
-
* - 200: 参数错误
|
|
9
|
-
*/
|
|
10
|
-
export type SetTabBarErrorCode = 100 | 200
|
|
11
|
-
export interface SetTabBarFail extends IUniError {
|
|
12
|
-
errCode: SetTabBarErrorCode
|
|
13
|
-
}
|
|
14
|
-
export type SetTabBarBadgeFail = SetTabBarFail
|
|
15
|
-
export type SetTabBarBadgeFailCallback = (result: SetTabBarBadgeFail) => void
|
|
16
|
-
export type SetTabBarBadgeComplete = AsyncApiResult
|
|
17
|
-
export type SetTabBarBadgeCompleteCallback = (
|
|
18
|
-
result: SetTabBarBadgeComplete,
|
|
19
|
-
) => void
|
|
20
|
-
export type SetTabBarBadgeOptions = {
|
|
21
|
-
/**
|
|
22
|
-
* tabBar的哪一项,从左边算起,索引从0开始
|
|
23
|
-
*/
|
|
24
|
-
index: number
|
|
25
|
-
/**
|
|
26
|
-
* 显示的文本,不超过 3 个半角字符
|
|
27
|
-
*/
|
|
28
|
-
text: string
|
|
29
|
-
/**
|
|
30
|
-
* 接口调用成功的回调函数
|
|
31
|
-
*/
|
|
32
|
-
success?: SetTabBarBadgeSuccessCallback
|
|
33
|
-
/**
|
|
34
|
-
* 接口调用失败的回调函数
|
|
35
|
-
*/
|
|
36
|
-
fail?: SetTabBarBadgeFailCallback
|
|
37
|
-
/**
|
|
38
|
-
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
39
|
-
*/
|
|
40
|
-
complete?: SetTabBarBadgeCompleteCallback
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export type RemoveTabBarBadgeSuccess = AsyncApiSuccessResult
|
|
44
|
-
export type RemoveTabBarBadgeSuccessCallback = (
|
|
45
|
-
result: RemoveTabBarBadgeSuccess,
|
|
46
|
-
) => void
|
|
47
|
-
export type RemoveTabBarBadgeFail = SetTabBarFail
|
|
48
|
-
export type RemoveTabBarBadgeFailCallback = (
|
|
49
|
-
result: RemoveTabBarBadgeFail,
|
|
50
|
-
) => void
|
|
51
|
-
export type RemoveTabBarBadgeComplete = AsyncApiResult
|
|
52
|
-
export type RemoveTabBarBadgeCompleteCallback = (
|
|
53
|
-
result: RemoveTabBarBadgeComplete,
|
|
54
|
-
) => void
|
|
55
|
-
export type RemoveTabBarBadgeOptions = {
|
|
56
|
-
/**
|
|
57
|
-
* tabBar的哪一项,从左边算起,索引从0开始
|
|
58
|
-
*/
|
|
59
|
-
index: number
|
|
60
|
-
/**
|
|
61
|
-
* 接口调用成功的回调函数
|
|
62
|
-
*/
|
|
63
|
-
success?: RemoveTabBarBadgeSuccessCallback
|
|
64
|
-
/**
|
|
65
|
-
* 接口调用失败的回调函数
|
|
66
|
-
*/
|
|
67
|
-
fail?: RemoveTabBarBadgeFailCallback
|
|
68
|
-
/**
|
|
69
|
-
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
70
|
-
*/
|
|
71
|
-
complete?: RemoveTabBarBadgeCompleteCallback
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export type SetTabBarItemSuccess = AsyncApiSuccessResult
|
|
75
|
-
export type SetTabBarItemSuccessCallback = (
|
|
76
|
-
result: SetTabBarItemSuccess,
|
|
77
|
-
) => void
|
|
78
|
-
export type SetTabBarItemFail = SetTabBarFail
|
|
79
|
-
export type SetTabBarItemFailCallback = (result: SetTabBarItemFail) => void
|
|
80
|
-
export type SetTabBarItemComplete = AsyncApiResult
|
|
81
|
-
export type SetTabBarItemCompleteCallback = (
|
|
82
|
-
result: SetTabBarItemComplete,
|
|
83
|
-
) => void
|
|
84
|
-
export type SetTabBarItemIconFontOptions = {
|
|
85
|
-
/**
|
|
86
|
-
* 字库 Unicode 码
|
|
87
|
-
*/
|
|
88
|
-
text: string
|
|
89
|
-
/**
|
|
90
|
-
* 选中后字库 Unicode 码
|
|
91
|
-
*/
|
|
92
|
-
selectedText: string
|
|
93
|
-
/**
|
|
94
|
-
* 字体图标字号(px)
|
|
95
|
-
*/
|
|
96
|
-
fontSize?: string
|
|
97
|
-
/**
|
|
98
|
-
* 字体图标颜色
|
|
99
|
-
*/
|
|
100
|
-
color?: string
|
|
101
|
-
/**
|
|
102
|
-
* 字体图标选中颜色
|
|
103
|
-
*/
|
|
104
|
-
selectedColor?: string
|
|
105
|
-
}
|
|
106
|
-
export type SetTabBarItemOptions = {
|
|
107
|
-
/**
|
|
108
|
-
* tabBar 的哪一项,从左边算起,索引从0开始
|
|
109
|
-
*/
|
|
110
|
-
index: number
|
|
111
|
-
/**
|
|
112
|
-
* tab 上按钮文字
|
|
113
|
-
*/
|
|
114
|
-
text?: string
|
|
115
|
-
/**
|
|
116
|
-
* 图片路径
|
|
117
|
-
*/
|
|
118
|
-
iconPath?: string
|
|
119
|
-
/**
|
|
120
|
-
* 选中时的图片路径
|
|
121
|
-
*/
|
|
122
|
-
selectedIconPath?: string
|
|
123
|
-
/**
|
|
124
|
-
* 页面绝对路径
|
|
125
|
-
*/
|
|
126
|
-
pagePath?: string
|
|
127
|
-
/**
|
|
128
|
-
* 字体图标,优先级高于 iconPath
|
|
129
|
-
*/
|
|
130
|
-
iconfont?: SetTabBarItemIconFontOptions
|
|
131
|
-
/**
|
|
132
|
-
* tab 是否显示
|
|
133
|
-
*/
|
|
134
|
-
visible?: boolean
|
|
135
|
-
/**
|
|
136
|
-
* 接口调用成功的回调函数
|
|
137
|
-
*/
|
|
138
|
-
success?: SetTabBarItemSuccessCallback
|
|
139
|
-
/**
|
|
140
|
-
* 接口调用失败的回调函数
|
|
141
|
-
*/
|
|
142
|
-
fail?: SetTabBarItemFailCallback
|
|
143
|
-
/**
|
|
144
|
-
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
145
|
-
*/
|
|
146
|
-
complete?: SetTabBarItemCompleteCallback
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export type MidButtonIconFont = {
|
|
150
|
-
/**
|
|
151
|
-
* 字库 Unicode 码
|
|
152
|
-
*/
|
|
153
|
-
text?: string
|
|
154
|
-
/**
|
|
155
|
-
* 选中后字库 Unicode 码
|
|
156
|
-
*/
|
|
157
|
-
selectedText?: string
|
|
158
|
-
/**
|
|
159
|
-
* 字体图标字号(px)
|
|
160
|
-
*/
|
|
161
|
-
fontSize?: string
|
|
162
|
-
/**
|
|
163
|
-
* 字体图标颜色
|
|
164
|
-
*/
|
|
165
|
-
color?: string
|
|
166
|
-
/**
|
|
167
|
-
* 字体图标选中颜色
|
|
168
|
-
*/
|
|
169
|
-
selectedColor?: string
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export type MidButtonOptions = {
|
|
173
|
-
/**
|
|
174
|
-
* 中间按钮的宽度,tabBar 其它项为减去此宽度后平分,默认值为与其它项平分宽度。默认 80px
|
|
175
|
-
*/
|
|
176
|
-
width?: string
|
|
177
|
-
/**
|
|
178
|
-
* 中间按钮的高度,可以大于 tabBar 高度,达到中间凸起的效果。默认 50px
|
|
179
|
-
*/
|
|
180
|
-
height?: string
|
|
181
|
-
/**
|
|
182
|
-
* 中间按钮的文字
|
|
183
|
-
*/
|
|
184
|
-
text?: string
|
|
185
|
-
/**
|
|
186
|
-
* 中间按钮的图片路径
|
|
187
|
-
*/
|
|
188
|
-
iconPath?: string
|
|
189
|
-
/**
|
|
190
|
-
* 图片宽度(高度等比例缩放)。默认 24px
|
|
191
|
-
*/
|
|
192
|
-
iconWidth?: string
|
|
193
|
-
/**
|
|
194
|
-
* 中间按钮的背景图片路径
|
|
195
|
-
*/
|
|
196
|
-
backgroundImage?: string
|
|
197
|
-
/**
|
|
198
|
-
* 字体图标,优先级高于 iconPath
|
|
199
|
-
*/
|
|
200
|
-
iconfont?: MidButtonIconFont
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export type SetTabBarStyleSuccess = AsyncApiSuccessResult
|
|
204
|
-
export type SetTabBarStyleSuccessCallback = (
|
|
205
|
-
result: SetTabBarStyleSuccess,
|
|
206
|
-
) => void
|
|
207
|
-
export type SetTabBarStyleFail = SetTabBarFail
|
|
208
|
-
export type SetTabBarStyleFailCallback = (result: SetTabBarStyleFail) => void
|
|
209
|
-
export type SetTabBarStyleComplete = AsyncApiResult
|
|
210
|
-
export type SetTabBarStyleCompleteCallback = (
|
|
211
|
-
result: SetTabBarStyleComplete,
|
|
212
|
-
) => void
|
|
213
|
-
export type SetTabBarStyleOptions = {
|
|
214
|
-
/**
|
|
215
|
-
* tab 上的文字默认颜色
|
|
216
|
-
*/
|
|
217
|
-
color?: string | string.ColorString
|
|
218
|
-
/**
|
|
219
|
-
* tab 上的文字选中时的颜色
|
|
220
|
-
*/
|
|
221
|
-
selectedColor?: string | string.ColorString
|
|
222
|
-
/**
|
|
223
|
-
* tab 的背景色
|
|
224
|
-
*/
|
|
225
|
-
backgroundColor?: string | string.ColorString
|
|
226
|
-
/**
|
|
227
|
-
* 图片背景
|
|
228
|
-
*/
|
|
229
|
-
backgroundImage?: string
|
|
230
|
-
/**
|
|
231
|
-
* 背景图平铺方式
|
|
232
|
-
* - repeat: 背景图片在垂直方向和水平方向平铺
|
|
233
|
-
* - repeat-x: 背景图片在水平方向平铺,垂直方向拉伸
|
|
234
|
-
* - repeat-y: 背景图片在垂直方向平铺,水平方向拉伸
|
|
235
|
-
* - no-repeat: 背景图片在垂直方向和水平方向都拉伸
|
|
236
|
-
*/
|
|
237
|
-
backgroundRepeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'
|
|
238
|
-
/**
|
|
239
|
-
* tabbar上边框的颜色
|
|
240
|
-
*/
|
|
241
|
-
borderStyle?: string
|
|
242
|
-
/**
|
|
243
|
-
* tabbar 中间按钮 仅在 list 项为偶数时有效
|
|
244
|
-
* @internal
|
|
245
|
-
*/
|
|
246
|
-
midButton?: MidButtonOptions
|
|
247
|
-
/**
|
|
248
|
-
* 接口调用成功的回调函数
|
|
249
|
-
*/
|
|
250
|
-
success?: SetTabBarStyleSuccessCallback
|
|
251
|
-
/**
|
|
252
|
-
* 接口调用失败的回调函数
|
|
253
|
-
*/
|
|
254
|
-
fail?: SetTabBarStyleFailCallback
|
|
255
|
-
/**
|
|
256
|
-
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
257
|
-
*/
|
|
258
|
-
complete?: SetTabBarStyleCompleteCallback
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
export type HideTabBarSuccess = AsyncApiSuccessResult
|
|
262
|
-
export type HideTabBarSuccessCallback = (result: HideTabBarSuccess) => void
|
|
263
|
-
export type HideTabBarFail = SetTabBarFail
|
|
264
|
-
export type HideTabBarFailCallback = (result: HideTabBarFail) => void
|
|
265
|
-
export type HideTabBarComplete = AsyncApiResult
|
|
266
|
-
export type HideTabBarCompleteCallback = (result: HideTabBarComplete) => void
|
|
267
|
-
export type HideTabBarOptions = {
|
|
268
|
-
/**
|
|
269
|
-
* 是否需要动画效果
|
|
270
|
-
*/
|
|
271
|
-
animation?: boolean
|
|
272
|
-
/**
|
|
273
|
-
* 接口调用成功的回调函数
|
|
274
|
-
*/
|
|
275
|
-
success?: HideTabBarSuccessCallback
|
|
276
|
-
/**
|
|
277
|
-
* 接口调用失败的回调函数
|
|
278
|
-
*/
|
|
279
|
-
fail?: HideTabBarFailCallback
|
|
280
|
-
/**
|
|
281
|
-
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
282
|
-
*/
|
|
283
|
-
complete?: HideTabBarCompleteCallback
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
export type ShowTabBarSuccess = AsyncApiSuccessResult
|
|
287
|
-
export type ShowTabBarSuccessCallback = (result: ShowTabBarSuccess) => void
|
|
288
|
-
export type ShowTabBarFail = SetTabBarFail
|
|
289
|
-
export type ShowTabBarFailCallback = (result: ShowTabBarFail) => void
|
|
290
|
-
export type ShowTabBarComplete = AsyncApiResult
|
|
291
|
-
export type ShowTabBarCompleteCallback = (result: ShowTabBarComplete) => void
|
|
292
|
-
export type ShowTabBarOptions = {
|
|
293
|
-
/**
|
|
294
|
-
* 是否需要动画效果
|
|
295
|
-
*/
|
|
296
|
-
animation?: boolean
|
|
297
|
-
/**
|
|
298
|
-
* 接口调用成功的回调函数
|
|
299
|
-
*/
|
|
300
|
-
success?: ShowTabBarSuccessCallback
|
|
301
|
-
/**
|
|
302
|
-
* 接口调用失败的回调函数
|
|
303
|
-
*/
|
|
304
|
-
fail?: ShowTabBarFailCallback
|
|
305
|
-
/**
|
|
306
|
-
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
307
|
-
*/
|
|
308
|
-
complete?: ShowTabBarCompleteCallback
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
export type ShowTabBarRedDotSuccess = AsyncApiSuccessResult
|
|
312
|
-
export type ShowTabBarRedDotSuccessCallback = (
|
|
313
|
-
result: ShowTabBarRedDotSuccess,
|
|
314
|
-
) => void
|
|
315
|
-
export type ShowTabBarRedDotFail = SetTabBarFail
|
|
316
|
-
export type ShowTabBarRedDotFailCallback = (
|
|
317
|
-
result: ShowTabBarRedDotFail,
|
|
318
|
-
) => void
|
|
319
|
-
export type ShowTabBarRedDotComplete = AsyncApiResult
|
|
320
|
-
export type ShowTabBarRedDotCompleteCallback = (
|
|
321
|
-
result: ShowTabBarRedDotComplete,
|
|
322
|
-
) => void
|
|
323
|
-
export type ShowTabBarRedDotOptions = {
|
|
324
|
-
/**
|
|
325
|
-
* tabBar的哪一项,从左边算起,索引从0开始
|
|
326
|
-
*/
|
|
327
|
-
index: number
|
|
328
|
-
/**
|
|
329
|
-
* 接口调用成功的回调函数
|
|
330
|
-
*/
|
|
331
|
-
success?: ShowTabBarRedDotSuccessCallback
|
|
332
|
-
/**
|
|
333
|
-
* 接口调用失败的回调函数
|
|
334
|
-
*/
|
|
335
|
-
fail?: ShowTabBarRedDotFailCallback
|
|
336
|
-
/**
|
|
337
|
-
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
338
|
-
*/
|
|
339
|
-
complete?: ShowTabBarRedDotCompleteCallback
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
export type HideTabBarRedDotSuccess = AsyncApiSuccessResult
|
|
343
|
-
export type HideTabBarRedDotSuccessCallback = (
|
|
344
|
-
result: HideTabBarRedDotSuccess,
|
|
345
|
-
) => void
|
|
346
|
-
export type HideTabBarRedDotFail = SetTabBarFail
|
|
347
|
-
export type HideTabBarRedDotFailCallback = (
|
|
348
|
-
result: HideTabBarRedDotFail,
|
|
349
|
-
) => void
|
|
350
|
-
export type HideTabBarRedDotComplete = AsyncApiResult
|
|
351
|
-
export type HideTabBarRedDotCompleteCallback = (
|
|
352
|
-
result: HideTabBarRedDotComplete,
|
|
353
|
-
) => void
|
|
354
|
-
export type HideTabBarRedDotOptions = {
|
|
355
|
-
/**
|
|
356
|
-
* tabBar的哪一项,从左边算起,索引从0开始
|
|
357
|
-
*/
|
|
358
|
-
index: number
|
|
359
|
-
/**
|
|
360
|
-
* 接口调用成功的回调函数
|
|
361
|
-
*/
|
|
362
|
-
success?: HideTabBarRedDotSuccessCallback
|
|
363
|
-
/**
|
|
364
|
-
* 接口调用失败的回调函数
|
|
365
|
-
*/
|
|
366
|
-
fail?: HideTabBarRedDotFailCallback
|
|
367
|
-
/**
|
|
368
|
-
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
369
|
-
*/
|
|
370
|
-
complete?: HideTabBarRedDotCompleteCallback
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
export type OnTabBarMidButtonTapCallback = () => void
|
|
374
|
-
|
|
375
|
-
export interface Uni {
|
|
376
|
-
/**
|
|
377
|
-
* 为 tabBar 某一项的右上角添加文本
|
|
378
|
-
*
|
|
379
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbarbadge
|
|
380
|
-
* @uniPlatform {
|
|
381
|
-
* "app": {
|
|
382
|
-
* "android": {
|
|
383
|
-
* "osVer": "5.0",
|
|
384
|
-
* "uniVer": "√",
|
|
385
|
-
* "unixVer": "3.91"
|
|
386
|
-
* },
|
|
387
|
-
* "ios": {
|
|
388
|
-
* "osVer": "12.0",
|
|
389
|
-
* "uniVer": "√",
|
|
390
|
-
* "unixVer": "4.11"
|
|
391
|
-
* }
|
|
392
|
-
* },
|
|
393
|
-
* "mp": {
|
|
394
|
-
* "weixin": {
|
|
395
|
-
* "hostVer": "√",
|
|
396
|
-
* "uniVer": "√",
|
|
397
|
-
* "unixVer": "x"
|
|
398
|
-
* },
|
|
399
|
-
* "alipay": {
|
|
400
|
-
* "hostVer": "√",
|
|
401
|
-
* "uniVer": "√",
|
|
402
|
-
* "unixVer": "x"
|
|
403
|
-
* },
|
|
404
|
-
* "baidu": {
|
|
405
|
-
* "hostVer": "√",
|
|
406
|
-
* "uniVer": "√",
|
|
407
|
-
* "unixVer": "x"
|
|
408
|
-
* },
|
|
409
|
-
* "toutiao": {
|
|
410
|
-
* "hostVer": "√",
|
|
411
|
-
* "uniVer": "√",
|
|
412
|
-
* "unixVer": "x"
|
|
413
|
-
* },
|
|
414
|
-
* "lark": {
|
|
415
|
-
* "hostVer": "√",
|
|
416
|
-
* "uniVer": "√",
|
|
417
|
-
* "unixVer": "x"
|
|
418
|
-
* },
|
|
419
|
-
* "qq": {
|
|
420
|
-
* "hostVer": "√",
|
|
421
|
-
* "uniVer": "√",
|
|
422
|
-
* "unixVer": "x"
|
|
423
|
-
* },
|
|
424
|
-
* "kuaishou": {
|
|
425
|
-
* "hostVer": "√",
|
|
426
|
-
* "uniVer": "√",
|
|
427
|
-
* "unixVer": "x"
|
|
428
|
-
* },
|
|
429
|
-
* "jd": {
|
|
430
|
-
* "hostVer": "√",
|
|
431
|
-
* "uniVer": "√",
|
|
432
|
-
* "unixVer": "x"
|
|
433
|
-
* }
|
|
434
|
-
* },
|
|
435
|
-
* "web": {
|
|
436
|
-
* "uniVer": "√",
|
|
437
|
-
* "unixVer": "4.0"
|
|
438
|
-
* }
|
|
439
|
-
* }
|
|
440
|
-
*/
|
|
441
|
-
setTabBarBadge(
|
|
442
|
-
options: SetTabBarBadgeOptions,
|
|
443
|
-
): Promise<SetTabBarBadgeSuccess> | null
|
|
444
|
-
/**
|
|
445
|
-
* 移除 tabBar 某一项右上角的文本
|
|
446
|
-
*
|
|
447
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#removetabbarbadge
|
|
448
|
-
* @uniPlatform {
|
|
449
|
-
* "app": {
|
|
450
|
-
* "android": {
|
|
451
|
-
* "osVer": "5.0",
|
|
452
|
-
* "uniVer": "√",
|
|
453
|
-
* "unixVer": "3.91"
|
|
454
|
-
* },
|
|
455
|
-
* "ios": {
|
|
456
|
-
* "osVer": "12.0",
|
|
457
|
-
* "uniVer": "√",
|
|
458
|
-
* "unixVer": "4.11"
|
|
459
|
-
* }
|
|
460
|
-
* },
|
|
461
|
-
* "mp": {
|
|
462
|
-
* "weixin": {
|
|
463
|
-
* "hostVer": "√",
|
|
464
|
-
* "uniVer": "√",
|
|
465
|
-
* "unixVer": "x"
|
|
466
|
-
* },
|
|
467
|
-
* "alipay": {
|
|
468
|
-
* "hostVer": "√",
|
|
469
|
-
* "uniVer": "√",
|
|
470
|
-
* "unixVer": "x"
|
|
471
|
-
* },
|
|
472
|
-
* "baidu": {
|
|
473
|
-
* "hostVer": "√",
|
|
474
|
-
* "uniVer": "√",
|
|
475
|
-
* "unixVer": "x"
|
|
476
|
-
* },
|
|
477
|
-
* "toutiao": {
|
|
478
|
-
* "hostVer": "√",
|
|
479
|
-
* "uniVer": "√",
|
|
480
|
-
* "unixVer": "x"
|
|
481
|
-
* },
|
|
482
|
-
* "lark": {
|
|
483
|
-
* "hostVer": "√",
|
|
484
|
-
* "uniVer": "√",
|
|
485
|
-
* "unixVer": "x"
|
|
486
|
-
* },
|
|
487
|
-
* "qq": {
|
|
488
|
-
* "hostVer": "√",
|
|
489
|
-
* "uniVer": "√",
|
|
490
|
-
* "unixVer": "x"
|
|
491
|
-
* },
|
|
492
|
-
* "kuaishou": {
|
|
493
|
-
* "hostVer": "√",
|
|
494
|
-
* "uniVer": "√",
|
|
495
|
-
* "unixVer": "x"
|
|
496
|
-
* },
|
|
497
|
-
* "jd": {
|
|
498
|
-
* "hostVer": "√",
|
|
499
|
-
* "uniVer": "√",
|
|
500
|
-
* "unixVer": "x"
|
|
501
|
-
* }
|
|
502
|
-
* },
|
|
503
|
-
* "web": {
|
|
504
|
-
* "uniVer": "√",
|
|
505
|
-
* "unixVer": "4.0"
|
|
506
|
-
* }
|
|
507
|
-
* }
|
|
508
|
-
*/
|
|
509
|
-
removeTabBarBadge(
|
|
510
|
-
options: RemoveTabBarBadgeOptions,
|
|
511
|
-
): Promise<RemoveTabBarBadgeSuccess> | null
|
|
512
|
-
/**
|
|
513
|
-
* 动态设置 tabBar 某一项的内容
|
|
514
|
-
*
|
|
515
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbaritem
|
|
516
|
-
* @uniPlatform {
|
|
517
|
-
* "app": {
|
|
518
|
-
* "android": {
|
|
519
|
-
* "osVer": "5.0",
|
|
520
|
-
* "uniVer": "√",
|
|
521
|
-
* "unixVer": "3.91"
|
|
522
|
-
* },
|
|
523
|
-
* "ios": {
|
|
524
|
-
* "osVer": "12.0",
|
|
525
|
-
* "uniVer": "√",
|
|
526
|
-
* "unixVer": "4.11"
|
|
527
|
-
* }
|
|
528
|
-
* },
|
|
529
|
-
* "mp": {
|
|
530
|
-
* "weixin": {
|
|
531
|
-
* "hostVer": "√",
|
|
532
|
-
* "uniVer": "√",
|
|
533
|
-
* "unixVer": "x"
|
|
534
|
-
* },
|
|
535
|
-
* "alipay": {
|
|
536
|
-
* "hostVer": "√",
|
|
537
|
-
* "uniVer": "√",
|
|
538
|
-
* "unixVer": "x"
|
|
539
|
-
* },
|
|
540
|
-
* "baidu": {
|
|
541
|
-
* "hostVer": "√",
|
|
542
|
-
* "uniVer": "√",
|
|
543
|
-
* "unixVer": "x"
|
|
544
|
-
* },
|
|
545
|
-
* "toutiao": {
|
|
546
|
-
* "hostVer": "√",
|
|
547
|
-
* "uniVer": "√",
|
|
548
|
-
* "unixVer": "x"
|
|
549
|
-
* },
|
|
550
|
-
* "lark": {
|
|
551
|
-
* "hostVer": "√",
|
|
552
|
-
* "uniVer": "√",
|
|
553
|
-
* "unixVer": "x"
|
|
554
|
-
* },
|
|
555
|
-
* "qq": {
|
|
556
|
-
* "hostVer": "√",
|
|
557
|
-
* "uniVer": "√",
|
|
558
|
-
* "unixVer": "x"
|
|
559
|
-
* },
|
|
560
|
-
* "kuaishou": {
|
|
561
|
-
* "hostVer": "√",
|
|
562
|
-
* "uniVer": "√",
|
|
563
|
-
* "unixVer": "x"
|
|
564
|
-
* },
|
|
565
|
-
* "jd": {
|
|
566
|
-
* "hostVer": "√",
|
|
567
|
-
* "uniVer": "√",
|
|
568
|
-
* "unixVer": "x"
|
|
569
|
-
* }
|
|
570
|
-
* },
|
|
571
|
-
* "web": {
|
|
572
|
-
* "uniVer": "√",
|
|
573
|
-
* "unixVer": "4.0"
|
|
574
|
-
* }
|
|
575
|
-
* }
|
|
576
|
-
*/
|
|
577
|
-
setTabBarItem(
|
|
578
|
-
options: SetTabBarItemOptions,
|
|
579
|
-
): Promise<SetTabBarItemSuccess> | null
|
|
580
|
-
/**
|
|
581
|
-
* 动态设置 tabBar 的整体样式
|
|
582
|
-
*
|
|
583
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbarstyle
|
|
584
|
-
* @uniPlatform {
|
|
585
|
-
* "app": {
|
|
586
|
-
* "android": {
|
|
587
|
-
* "osVer": "5.0",
|
|
588
|
-
* "uniVer": "√",
|
|
589
|
-
* "unixVer": "3.91"
|
|
590
|
-
* },
|
|
591
|
-
* "ios": {
|
|
592
|
-
* "osVer": "12.0",
|
|
593
|
-
* "uniVer": "√",
|
|
594
|
-
* "unixVer": "4.11"
|
|
595
|
-
* }
|
|
596
|
-
* },
|
|
597
|
-
* "mp": {
|
|
598
|
-
* "weixin": {
|
|
599
|
-
* "hostVer": "√",
|
|
600
|
-
* "uniVer": "√",
|
|
601
|
-
* "unixVer": "x"
|
|
602
|
-
* },
|
|
603
|
-
* "alipay": {
|
|
604
|
-
* "hostVer": "√",
|
|
605
|
-
* "uniVer": "√",
|
|
606
|
-
* "unixVer": "x"
|
|
607
|
-
* },
|
|
608
|
-
* "baidu": {
|
|
609
|
-
* "hostVer": "√",
|
|
610
|
-
* "uniVer": "√",
|
|
611
|
-
* "unixVer": "x"
|
|
612
|
-
* },
|
|
613
|
-
* "toutiao": {
|
|
614
|
-
* "hostVer": "√",
|
|
615
|
-
* "uniVer": "√",
|
|
616
|
-
* "unixVer": "x"
|
|
617
|
-
* },
|
|
618
|
-
* "lark": {
|
|
619
|
-
* "hostVer": "√",
|
|
620
|
-
* "uniVer": "√",
|
|
621
|
-
* "unixVer": "x"
|
|
622
|
-
* },
|
|
623
|
-
* "qq": {
|
|
624
|
-
* "hostVer": "√",
|
|
625
|
-
* "uniVer": "√",
|
|
626
|
-
* "unixVer": "x"
|
|
627
|
-
* },
|
|
628
|
-
* "kuaishou": {
|
|
629
|
-
* "hostVer": "√",
|
|
630
|
-
* "uniVer": "√",
|
|
631
|
-
* "unixVer": "x"
|
|
632
|
-
* },
|
|
633
|
-
* "jd": {
|
|
634
|
-
* "hostVer": "√",
|
|
635
|
-
* "uniVer": "√",
|
|
636
|
-
* "unixVer": "x"
|
|
637
|
-
* }
|
|
638
|
-
* },
|
|
639
|
-
* "web": {
|
|
640
|
-
* "uniVer": "√",
|
|
641
|
-
* "unixVer": "4.0"
|
|
642
|
-
* }
|
|
643
|
-
* }
|
|
644
|
-
*/
|
|
645
|
-
setTabBarStyle(
|
|
646
|
-
options: SetTabBarStyleOptions,
|
|
647
|
-
): Promise<SetTabBarStyleSuccess> | null
|
|
648
|
-
/**
|
|
649
|
-
* 隐藏 tabBar
|
|
650
|
-
*
|
|
651
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#hidetabbar
|
|
652
|
-
* @uniPlatform {
|
|
653
|
-
* "app": {
|
|
654
|
-
* "android": {
|
|
655
|
-
* "osVer": "5.0",
|
|
656
|
-
* "uniVer": "√",
|
|
657
|
-
* "unixVer": "3.91"
|
|
658
|
-
* },
|
|
659
|
-
* "ios": {
|
|
660
|
-
* "osVer": "12.0",
|
|
661
|
-
* "uniVer": "√",
|
|
662
|
-
* "unixVer": "4.11"
|
|
663
|
-
* }
|
|
664
|
-
* },
|
|
665
|
-
* "mp": {
|
|
666
|
-
* "weixin": {
|
|
667
|
-
* "hostVer": "√",
|
|
668
|
-
* "uniVer": "√",
|
|
669
|
-
* "unixVer": "x"
|
|
670
|
-
* },
|
|
671
|
-
* "alipay": {
|
|
672
|
-
* "hostVer": "√",
|
|
673
|
-
* "uniVer": "√",
|
|
674
|
-
* "unixVer": "x"
|
|
675
|
-
* },
|
|
676
|
-
* "baidu": {
|
|
677
|
-
* "hostVer": "√",
|
|
678
|
-
* "uniVer": "√",
|
|
679
|
-
* "unixVer": "x"
|
|
680
|
-
* },
|
|
681
|
-
* "toutiao": {
|
|
682
|
-
* "hostVer": "√",
|
|
683
|
-
* "uniVer": "√",
|
|
684
|
-
* "unixVer": "x"
|
|
685
|
-
* },
|
|
686
|
-
* "lark": {
|
|
687
|
-
* "hostVer": "√",
|
|
688
|
-
* "uniVer": "√",
|
|
689
|
-
* "unixVer": "x"
|
|
690
|
-
* },
|
|
691
|
-
* "qq": {
|
|
692
|
-
* "hostVer": "√",
|
|
693
|
-
* "uniVer": "√",
|
|
694
|
-
* "unixVer": "x"
|
|
695
|
-
* },
|
|
696
|
-
* "kuaishou": {
|
|
697
|
-
* "hostVer": "√",
|
|
698
|
-
* "uniVer": "√",
|
|
699
|
-
* "unixVer": "x"
|
|
700
|
-
* },
|
|
701
|
-
* "jd": {
|
|
702
|
-
* "hostVer": "√",
|
|
703
|
-
* "uniVer": "√",
|
|
704
|
-
* "unixVer": "x"
|
|
705
|
-
* }
|
|
706
|
-
* },
|
|
707
|
-
* "web": {
|
|
708
|
-
* "uniVer": "√",
|
|
709
|
-
* "unixVer": "4.0"
|
|
710
|
-
* }
|
|
711
|
-
* }
|
|
712
|
-
*/
|
|
713
|
-
hideTabBar(
|
|
714
|
-
options?: HideTabBarOptions | null,
|
|
715
|
-
): Promise<HideTabBarSuccess> | null
|
|
716
|
-
/**
|
|
717
|
-
* 显示 tabBar
|
|
718
|
-
*
|
|
719
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#showtabbar
|
|
720
|
-
* @uniPlatform {
|
|
721
|
-
* "app": {
|
|
722
|
-
* "android": {
|
|
723
|
-
* "osVer": "5.0",
|
|
724
|
-
* "uniVer": "√",
|
|
725
|
-
* "unixVer": "3.91"
|
|
726
|
-
* },
|
|
727
|
-
* "ios": {
|
|
728
|
-
* "osVer": "12.0",
|
|
729
|
-
* "uniVer": "√",
|
|
730
|
-
* "unixVer": "4.11"
|
|
731
|
-
* }
|
|
732
|
-
* },
|
|
733
|
-
* "mp": {
|
|
734
|
-
* "weixin": {
|
|
735
|
-
* "hostVer": "√",
|
|
736
|
-
* "uniVer": "√",
|
|
737
|
-
* "unixVer": "x"
|
|
738
|
-
* },
|
|
739
|
-
* "alipay": {
|
|
740
|
-
* "hostVer": "√",
|
|
741
|
-
* "uniVer": "√",
|
|
742
|
-
* "unixVer": "x"
|
|
743
|
-
* },
|
|
744
|
-
* "baidu": {
|
|
745
|
-
* "hostVer": "√",
|
|
746
|
-
* "uniVer": "√",
|
|
747
|
-
* "unixVer": "x"
|
|
748
|
-
* },
|
|
749
|
-
* "toutiao": {
|
|
750
|
-
* "hostVer": "√",
|
|
751
|
-
* "uniVer": "√",
|
|
752
|
-
* "unixVer": "x"
|
|
753
|
-
* },
|
|
754
|
-
* "lark": {
|
|
755
|
-
* "hostVer": "√",
|
|
756
|
-
* "uniVer": "√",
|
|
757
|
-
* "unixVer": "x"
|
|
758
|
-
* },
|
|
759
|
-
* "qq": {
|
|
760
|
-
* "hostVer": "√",
|
|
761
|
-
* "uniVer": "√",
|
|
762
|
-
* "unixVer": "x"
|
|
763
|
-
* },
|
|
764
|
-
* "kuaishou": {
|
|
765
|
-
* "hostVer": "√",
|
|
766
|
-
* "uniVer": "√",
|
|
767
|
-
* "unixVer": "x"
|
|
768
|
-
* },
|
|
769
|
-
* "jd": {
|
|
770
|
-
* "hostVer": "√",
|
|
771
|
-
* "uniVer": "√",
|
|
772
|
-
* "unixVer": "x"
|
|
773
|
-
* }
|
|
774
|
-
* },
|
|
775
|
-
* "web": {
|
|
776
|
-
* "uniVer": "√",
|
|
777
|
-
* "unixVer": "4.0"
|
|
778
|
-
* }
|
|
779
|
-
* }
|
|
780
|
-
*/
|
|
781
|
-
showTabBar(
|
|
782
|
-
options?: ShowTabBarOptions | null,
|
|
783
|
-
): Promise<ShowTabBarSuccess> | null
|
|
784
|
-
/**
|
|
785
|
-
* 显示 tabBar 某一项的右上角的红点
|
|
786
|
-
*
|
|
787
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#showtabbarreddot
|
|
788
|
-
* @uniPlatform {
|
|
789
|
-
* "app": {
|
|
790
|
-
* "android": {
|
|
791
|
-
* "osVer": "5.0",
|
|
792
|
-
* "uniVer": "√",
|
|
793
|
-
* "unixVer": "3.91"
|
|
794
|
-
* },
|
|
795
|
-
* "ios": {
|
|
796
|
-
* "osVer": "12.0",
|
|
797
|
-
* "uniVer": "√",
|
|
798
|
-
* "unixVer": "4.11"
|
|
799
|
-
* }
|
|
800
|
-
* },
|
|
801
|
-
* "mp": {
|
|
802
|
-
* "weixin": {
|
|
803
|
-
* "hostVer": "√",
|
|
804
|
-
* "uniVer": "√",
|
|
805
|
-
* "unixVer": "x"
|
|
806
|
-
* },
|
|
807
|
-
* "alipay": {
|
|
808
|
-
* "hostVer": "√",
|
|
809
|
-
* "uniVer": "√",
|
|
810
|
-
* "unixVer": "x"
|
|
811
|
-
* },
|
|
812
|
-
* "baidu": {
|
|
813
|
-
* "hostVer": "√",
|
|
814
|
-
* "uniVer": "√",
|
|
815
|
-
* "unixVer": "x"
|
|
816
|
-
* },
|
|
817
|
-
* "toutiao": {
|
|
818
|
-
* "hostVer": "√",
|
|
819
|
-
* "uniVer": "√",
|
|
820
|
-
* "unixVer": "x"
|
|
821
|
-
* },
|
|
822
|
-
* "lark": {
|
|
823
|
-
* "hostVer": "√",
|
|
824
|
-
* "uniVer": "√",
|
|
825
|
-
* "unixVer": "x"
|
|
826
|
-
* },
|
|
827
|
-
* "qq": {
|
|
828
|
-
* "hostVer": "√",
|
|
829
|
-
* "uniVer": "√",
|
|
830
|
-
* "unixVer": "x"
|
|
831
|
-
* },
|
|
832
|
-
* "kuaishou": {
|
|
833
|
-
* "hostVer": "√",
|
|
834
|
-
* "uniVer": "√",
|
|
835
|
-
* "unixVer": "x"
|
|
836
|
-
* },
|
|
837
|
-
* "jd": {
|
|
838
|
-
* "hostVer": "√",
|
|
839
|
-
* "uniVer": "√",
|
|
840
|
-
* "unixVer": "x"
|
|
841
|
-
* }
|
|
842
|
-
* },
|
|
843
|
-
* "web": {
|
|
844
|
-
* "uniVer": "√",
|
|
845
|
-
* "unixVer": "4.0"
|
|
846
|
-
* }
|
|
847
|
-
* }
|
|
848
|
-
*/
|
|
849
|
-
showTabBarRedDot(
|
|
850
|
-
options: ShowTabBarRedDotOptions,
|
|
851
|
-
): Promise<ShowTabBarRedDotSuccess> | null
|
|
852
|
-
/**
|
|
853
|
-
* 隐藏 tabBar 某一项的右上角的红点
|
|
854
|
-
*
|
|
855
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#hidetabbarreddot
|
|
856
|
-
* @uniPlatform {
|
|
857
|
-
* "app": {
|
|
858
|
-
* "android": {
|
|
859
|
-
* "osVer": "5.0",
|
|
860
|
-
* "uniVer": "√",
|
|
861
|
-
* "unixVer": "3.91"
|
|
862
|
-
* },
|
|
863
|
-
* "ios": {
|
|
864
|
-
* "osVer": "12.0",
|
|
865
|
-
* "uniVer": "√",
|
|
866
|
-
* "unixVer": "4.11"
|
|
867
|
-
* }
|
|
868
|
-
* },
|
|
869
|
-
* "mp": {
|
|
870
|
-
* "weixin": {
|
|
871
|
-
* "hostVer": "√",
|
|
872
|
-
* "uniVer": "√",
|
|
873
|
-
* "unixVer": "x"
|
|
874
|
-
* },
|
|
875
|
-
* "alipay": {
|
|
876
|
-
* "hostVer": "√",
|
|
877
|
-
* "uniVer": "√",
|
|
878
|
-
* "unixVer": "x"
|
|
879
|
-
* },
|
|
880
|
-
* "baidu": {
|
|
881
|
-
* "hostVer": "√",
|
|
882
|
-
* "uniVer": "√",
|
|
883
|
-
* "unixVer": "x"
|
|
884
|
-
* },
|
|
885
|
-
* "toutiao": {
|
|
886
|
-
* "hostVer": "√",
|
|
887
|
-
* "uniVer": "√",
|
|
888
|
-
* "unixVer": "x"
|
|
889
|
-
* },
|
|
890
|
-
* "lark": {
|
|
891
|
-
* "hostVer": "√",
|
|
892
|
-
* "uniVer": "√",
|
|
893
|
-
* "unixVer": "x"
|
|
894
|
-
* },
|
|
895
|
-
* "qq": {
|
|
896
|
-
* "hostVer": "√",
|
|
897
|
-
* "uniVer": "√",
|
|
898
|
-
* "unixVer": "x"
|
|
899
|
-
* },
|
|
900
|
-
* "kuaishou": {
|
|
901
|
-
* "hostVer": "√",
|
|
902
|
-
* "uniVer": "√",
|
|
903
|
-
* "unixVer": "x"
|
|
904
|
-
* },
|
|
905
|
-
* "jd": {
|
|
906
|
-
* "hostVer": "√",
|
|
907
|
-
* "uniVer": "√",
|
|
908
|
-
* "unixVer": "x"
|
|
909
|
-
* }
|
|
910
|
-
* },
|
|
911
|
-
* "web": {
|
|
912
|
-
* "uniVer": "√",
|
|
913
|
-
* "unixVer": "4.0"
|
|
914
|
-
* }
|
|
915
|
-
* }
|
|
916
|
-
*/
|
|
917
|
-
hideTabBarRedDot(
|
|
918
|
-
options: HideTabBarRedDotOptions,
|
|
919
|
-
): Promise<HideTabBarRedDotSuccess> | null
|
|
920
|
-
// /**
|
|
921
|
-
// * 监听中间按钮的点击事件
|
|
922
|
-
// *
|
|
923
|
-
// * @tutorial https://doc.dcloud.net.cn/uni-app-x/tabbar?id=ontabbarmidbuttontap
|
|
924
|
-
// */
|
|
925
|
-
// onTabBarMidButtonTap(options: OnTabBarMidButtonTapCallback): void
|
|
926
|
-
}
|
|
1
|
+
export type SetTabBarBadgeSuccess = AsyncApiSuccessResult
|
|
2
|
+
export type SetTabBarBadgeSuccessCallback = (
|
|
3
|
+
result: SetTabBarBadgeSuccess,
|
|
4
|
+
) => void
|
|
5
|
+
/**
|
|
6
|
+
* 错误码
|
|
7
|
+
* - 100: TabBar 不存在
|
|
8
|
+
* - 200: 参数错误
|
|
9
|
+
*/
|
|
10
|
+
export type SetTabBarErrorCode = 100 | 200
|
|
11
|
+
export interface SetTabBarFail extends IUniError {
|
|
12
|
+
errCode: SetTabBarErrorCode
|
|
13
|
+
}
|
|
14
|
+
export type SetTabBarBadgeFail = SetTabBarFail
|
|
15
|
+
export type SetTabBarBadgeFailCallback = (result: SetTabBarBadgeFail) => void
|
|
16
|
+
export type SetTabBarBadgeComplete = AsyncApiResult
|
|
17
|
+
export type SetTabBarBadgeCompleteCallback = (
|
|
18
|
+
result: SetTabBarBadgeComplete,
|
|
19
|
+
) => void
|
|
20
|
+
export type SetTabBarBadgeOptions = {
|
|
21
|
+
/**
|
|
22
|
+
* tabBar的哪一项,从左边算起,索引从0开始
|
|
23
|
+
*/
|
|
24
|
+
index: number
|
|
25
|
+
/**
|
|
26
|
+
* 显示的文本,不超过 3 个半角字符
|
|
27
|
+
*/
|
|
28
|
+
text: string
|
|
29
|
+
/**
|
|
30
|
+
* 接口调用成功的回调函数
|
|
31
|
+
*/
|
|
32
|
+
success?: SetTabBarBadgeSuccessCallback
|
|
33
|
+
/**
|
|
34
|
+
* 接口调用失败的回调函数
|
|
35
|
+
*/
|
|
36
|
+
fail?: SetTabBarBadgeFailCallback
|
|
37
|
+
/**
|
|
38
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
39
|
+
*/
|
|
40
|
+
complete?: SetTabBarBadgeCompleteCallback
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type RemoveTabBarBadgeSuccess = AsyncApiSuccessResult
|
|
44
|
+
export type RemoveTabBarBadgeSuccessCallback = (
|
|
45
|
+
result: RemoveTabBarBadgeSuccess,
|
|
46
|
+
) => void
|
|
47
|
+
export type RemoveTabBarBadgeFail = SetTabBarFail
|
|
48
|
+
export type RemoveTabBarBadgeFailCallback = (
|
|
49
|
+
result: RemoveTabBarBadgeFail,
|
|
50
|
+
) => void
|
|
51
|
+
export type RemoveTabBarBadgeComplete = AsyncApiResult
|
|
52
|
+
export type RemoveTabBarBadgeCompleteCallback = (
|
|
53
|
+
result: RemoveTabBarBadgeComplete,
|
|
54
|
+
) => void
|
|
55
|
+
export type RemoveTabBarBadgeOptions = {
|
|
56
|
+
/**
|
|
57
|
+
* tabBar的哪一项,从左边算起,索引从0开始
|
|
58
|
+
*/
|
|
59
|
+
index: number
|
|
60
|
+
/**
|
|
61
|
+
* 接口调用成功的回调函数
|
|
62
|
+
*/
|
|
63
|
+
success?: RemoveTabBarBadgeSuccessCallback
|
|
64
|
+
/**
|
|
65
|
+
* 接口调用失败的回调函数
|
|
66
|
+
*/
|
|
67
|
+
fail?: RemoveTabBarBadgeFailCallback
|
|
68
|
+
/**
|
|
69
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
70
|
+
*/
|
|
71
|
+
complete?: RemoveTabBarBadgeCompleteCallback
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type SetTabBarItemSuccess = AsyncApiSuccessResult
|
|
75
|
+
export type SetTabBarItemSuccessCallback = (
|
|
76
|
+
result: SetTabBarItemSuccess,
|
|
77
|
+
) => void
|
|
78
|
+
export type SetTabBarItemFail = SetTabBarFail
|
|
79
|
+
export type SetTabBarItemFailCallback = (result: SetTabBarItemFail) => void
|
|
80
|
+
export type SetTabBarItemComplete = AsyncApiResult
|
|
81
|
+
export type SetTabBarItemCompleteCallback = (
|
|
82
|
+
result: SetTabBarItemComplete,
|
|
83
|
+
) => void
|
|
84
|
+
export type SetTabBarItemIconFontOptions = {
|
|
85
|
+
/**
|
|
86
|
+
* 字库 Unicode 码
|
|
87
|
+
*/
|
|
88
|
+
text: string
|
|
89
|
+
/**
|
|
90
|
+
* 选中后字库 Unicode 码
|
|
91
|
+
*/
|
|
92
|
+
selectedText: string
|
|
93
|
+
/**
|
|
94
|
+
* 字体图标字号(px)
|
|
95
|
+
*/
|
|
96
|
+
fontSize?: string
|
|
97
|
+
/**
|
|
98
|
+
* 字体图标颜色
|
|
99
|
+
*/
|
|
100
|
+
color?: string
|
|
101
|
+
/**
|
|
102
|
+
* 字体图标选中颜色
|
|
103
|
+
*/
|
|
104
|
+
selectedColor?: string
|
|
105
|
+
}
|
|
106
|
+
export type SetTabBarItemOptions = {
|
|
107
|
+
/**
|
|
108
|
+
* tabBar 的哪一项,从左边算起,索引从0开始
|
|
109
|
+
*/
|
|
110
|
+
index: number
|
|
111
|
+
/**
|
|
112
|
+
* tab 上按钮文字
|
|
113
|
+
*/
|
|
114
|
+
text?: string
|
|
115
|
+
/**
|
|
116
|
+
* 图片路径
|
|
117
|
+
*/
|
|
118
|
+
iconPath?: string
|
|
119
|
+
/**
|
|
120
|
+
* 选中时的图片路径
|
|
121
|
+
*/
|
|
122
|
+
selectedIconPath?: string
|
|
123
|
+
/**
|
|
124
|
+
* 页面绝对路径
|
|
125
|
+
*/
|
|
126
|
+
pagePath?: string
|
|
127
|
+
/**
|
|
128
|
+
* 字体图标,优先级高于 iconPath
|
|
129
|
+
*/
|
|
130
|
+
iconfont?: SetTabBarItemIconFontOptions
|
|
131
|
+
/**
|
|
132
|
+
* tab 是否显示
|
|
133
|
+
*/
|
|
134
|
+
visible?: boolean
|
|
135
|
+
/**
|
|
136
|
+
* 接口调用成功的回调函数
|
|
137
|
+
*/
|
|
138
|
+
success?: SetTabBarItemSuccessCallback
|
|
139
|
+
/**
|
|
140
|
+
* 接口调用失败的回调函数
|
|
141
|
+
*/
|
|
142
|
+
fail?: SetTabBarItemFailCallback
|
|
143
|
+
/**
|
|
144
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
145
|
+
*/
|
|
146
|
+
complete?: SetTabBarItemCompleteCallback
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type MidButtonIconFont = {
|
|
150
|
+
/**
|
|
151
|
+
* 字库 Unicode 码
|
|
152
|
+
*/
|
|
153
|
+
text?: string
|
|
154
|
+
/**
|
|
155
|
+
* 选中后字库 Unicode 码
|
|
156
|
+
*/
|
|
157
|
+
selectedText?: string
|
|
158
|
+
/**
|
|
159
|
+
* 字体图标字号(px)
|
|
160
|
+
*/
|
|
161
|
+
fontSize?: string
|
|
162
|
+
/**
|
|
163
|
+
* 字体图标颜色
|
|
164
|
+
*/
|
|
165
|
+
color?: string
|
|
166
|
+
/**
|
|
167
|
+
* 字体图标选中颜色
|
|
168
|
+
*/
|
|
169
|
+
selectedColor?: string
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export type MidButtonOptions = {
|
|
173
|
+
/**
|
|
174
|
+
* 中间按钮的宽度,tabBar 其它项为减去此宽度后平分,默认值为与其它项平分宽度。默认 80px
|
|
175
|
+
*/
|
|
176
|
+
width?: string
|
|
177
|
+
/**
|
|
178
|
+
* 中间按钮的高度,可以大于 tabBar 高度,达到中间凸起的效果。默认 50px
|
|
179
|
+
*/
|
|
180
|
+
height?: string
|
|
181
|
+
/**
|
|
182
|
+
* 中间按钮的文字
|
|
183
|
+
*/
|
|
184
|
+
text?: string
|
|
185
|
+
/**
|
|
186
|
+
* 中间按钮的图片路径
|
|
187
|
+
*/
|
|
188
|
+
iconPath?: string
|
|
189
|
+
/**
|
|
190
|
+
* 图片宽度(高度等比例缩放)。默认 24px
|
|
191
|
+
*/
|
|
192
|
+
iconWidth?: string
|
|
193
|
+
/**
|
|
194
|
+
* 中间按钮的背景图片路径
|
|
195
|
+
*/
|
|
196
|
+
backgroundImage?: string
|
|
197
|
+
/**
|
|
198
|
+
* 字体图标,优先级高于 iconPath
|
|
199
|
+
*/
|
|
200
|
+
iconfont?: MidButtonIconFont
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export type SetTabBarStyleSuccess = AsyncApiSuccessResult
|
|
204
|
+
export type SetTabBarStyleSuccessCallback = (
|
|
205
|
+
result: SetTabBarStyleSuccess,
|
|
206
|
+
) => void
|
|
207
|
+
export type SetTabBarStyleFail = SetTabBarFail
|
|
208
|
+
export type SetTabBarStyleFailCallback = (result: SetTabBarStyleFail) => void
|
|
209
|
+
export type SetTabBarStyleComplete = AsyncApiResult
|
|
210
|
+
export type SetTabBarStyleCompleteCallback = (
|
|
211
|
+
result: SetTabBarStyleComplete,
|
|
212
|
+
) => void
|
|
213
|
+
export type SetTabBarStyleOptions = {
|
|
214
|
+
/**
|
|
215
|
+
* tab 上的文字默认颜色
|
|
216
|
+
*/
|
|
217
|
+
color?: string | string.ColorString
|
|
218
|
+
/**
|
|
219
|
+
* tab 上的文字选中时的颜色
|
|
220
|
+
*/
|
|
221
|
+
selectedColor?: string | string.ColorString
|
|
222
|
+
/**
|
|
223
|
+
* tab 的背景色
|
|
224
|
+
*/
|
|
225
|
+
backgroundColor?: string | string.ColorString
|
|
226
|
+
/**
|
|
227
|
+
* 图片背景
|
|
228
|
+
*/
|
|
229
|
+
backgroundImage?: string
|
|
230
|
+
/**
|
|
231
|
+
* 背景图平铺方式
|
|
232
|
+
* - repeat: 背景图片在垂直方向和水平方向平铺
|
|
233
|
+
* - repeat-x: 背景图片在水平方向平铺,垂直方向拉伸
|
|
234
|
+
* - repeat-y: 背景图片在垂直方向平铺,水平方向拉伸
|
|
235
|
+
* - no-repeat: 背景图片在垂直方向和水平方向都拉伸
|
|
236
|
+
*/
|
|
237
|
+
backgroundRepeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'
|
|
238
|
+
/**
|
|
239
|
+
* tabbar上边框的颜色
|
|
240
|
+
*/
|
|
241
|
+
borderStyle?: string
|
|
242
|
+
/**
|
|
243
|
+
* tabbar 中间按钮 仅在 list 项为偶数时有效
|
|
244
|
+
* @internal
|
|
245
|
+
*/
|
|
246
|
+
midButton?: MidButtonOptions
|
|
247
|
+
/**
|
|
248
|
+
* 接口调用成功的回调函数
|
|
249
|
+
*/
|
|
250
|
+
success?: SetTabBarStyleSuccessCallback
|
|
251
|
+
/**
|
|
252
|
+
* 接口调用失败的回调函数
|
|
253
|
+
*/
|
|
254
|
+
fail?: SetTabBarStyleFailCallback
|
|
255
|
+
/**
|
|
256
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
257
|
+
*/
|
|
258
|
+
complete?: SetTabBarStyleCompleteCallback
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export type HideTabBarSuccess = AsyncApiSuccessResult
|
|
262
|
+
export type HideTabBarSuccessCallback = (result: HideTabBarSuccess) => void
|
|
263
|
+
export type HideTabBarFail = SetTabBarFail
|
|
264
|
+
export type HideTabBarFailCallback = (result: HideTabBarFail) => void
|
|
265
|
+
export type HideTabBarComplete = AsyncApiResult
|
|
266
|
+
export type HideTabBarCompleteCallback = (result: HideTabBarComplete) => void
|
|
267
|
+
export type HideTabBarOptions = {
|
|
268
|
+
/**
|
|
269
|
+
* 是否需要动画效果
|
|
270
|
+
*/
|
|
271
|
+
animation?: boolean
|
|
272
|
+
/**
|
|
273
|
+
* 接口调用成功的回调函数
|
|
274
|
+
*/
|
|
275
|
+
success?: HideTabBarSuccessCallback
|
|
276
|
+
/**
|
|
277
|
+
* 接口调用失败的回调函数
|
|
278
|
+
*/
|
|
279
|
+
fail?: HideTabBarFailCallback
|
|
280
|
+
/**
|
|
281
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
282
|
+
*/
|
|
283
|
+
complete?: HideTabBarCompleteCallback
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export type ShowTabBarSuccess = AsyncApiSuccessResult
|
|
287
|
+
export type ShowTabBarSuccessCallback = (result: ShowTabBarSuccess) => void
|
|
288
|
+
export type ShowTabBarFail = SetTabBarFail
|
|
289
|
+
export type ShowTabBarFailCallback = (result: ShowTabBarFail) => void
|
|
290
|
+
export type ShowTabBarComplete = AsyncApiResult
|
|
291
|
+
export type ShowTabBarCompleteCallback = (result: ShowTabBarComplete) => void
|
|
292
|
+
export type ShowTabBarOptions = {
|
|
293
|
+
/**
|
|
294
|
+
* 是否需要动画效果
|
|
295
|
+
*/
|
|
296
|
+
animation?: boolean
|
|
297
|
+
/**
|
|
298
|
+
* 接口调用成功的回调函数
|
|
299
|
+
*/
|
|
300
|
+
success?: ShowTabBarSuccessCallback
|
|
301
|
+
/**
|
|
302
|
+
* 接口调用失败的回调函数
|
|
303
|
+
*/
|
|
304
|
+
fail?: ShowTabBarFailCallback
|
|
305
|
+
/**
|
|
306
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
307
|
+
*/
|
|
308
|
+
complete?: ShowTabBarCompleteCallback
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export type ShowTabBarRedDotSuccess = AsyncApiSuccessResult
|
|
312
|
+
export type ShowTabBarRedDotSuccessCallback = (
|
|
313
|
+
result: ShowTabBarRedDotSuccess,
|
|
314
|
+
) => void
|
|
315
|
+
export type ShowTabBarRedDotFail = SetTabBarFail
|
|
316
|
+
export type ShowTabBarRedDotFailCallback = (
|
|
317
|
+
result: ShowTabBarRedDotFail,
|
|
318
|
+
) => void
|
|
319
|
+
export type ShowTabBarRedDotComplete = AsyncApiResult
|
|
320
|
+
export type ShowTabBarRedDotCompleteCallback = (
|
|
321
|
+
result: ShowTabBarRedDotComplete,
|
|
322
|
+
) => void
|
|
323
|
+
export type ShowTabBarRedDotOptions = {
|
|
324
|
+
/**
|
|
325
|
+
* tabBar的哪一项,从左边算起,索引从0开始
|
|
326
|
+
*/
|
|
327
|
+
index: number
|
|
328
|
+
/**
|
|
329
|
+
* 接口调用成功的回调函数
|
|
330
|
+
*/
|
|
331
|
+
success?: ShowTabBarRedDotSuccessCallback
|
|
332
|
+
/**
|
|
333
|
+
* 接口调用失败的回调函数
|
|
334
|
+
*/
|
|
335
|
+
fail?: ShowTabBarRedDotFailCallback
|
|
336
|
+
/**
|
|
337
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
338
|
+
*/
|
|
339
|
+
complete?: ShowTabBarRedDotCompleteCallback
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export type HideTabBarRedDotSuccess = AsyncApiSuccessResult
|
|
343
|
+
export type HideTabBarRedDotSuccessCallback = (
|
|
344
|
+
result: HideTabBarRedDotSuccess,
|
|
345
|
+
) => void
|
|
346
|
+
export type HideTabBarRedDotFail = SetTabBarFail
|
|
347
|
+
export type HideTabBarRedDotFailCallback = (
|
|
348
|
+
result: HideTabBarRedDotFail,
|
|
349
|
+
) => void
|
|
350
|
+
export type HideTabBarRedDotComplete = AsyncApiResult
|
|
351
|
+
export type HideTabBarRedDotCompleteCallback = (
|
|
352
|
+
result: HideTabBarRedDotComplete,
|
|
353
|
+
) => void
|
|
354
|
+
export type HideTabBarRedDotOptions = {
|
|
355
|
+
/**
|
|
356
|
+
* tabBar的哪一项,从左边算起,索引从0开始
|
|
357
|
+
*/
|
|
358
|
+
index: number
|
|
359
|
+
/**
|
|
360
|
+
* 接口调用成功的回调函数
|
|
361
|
+
*/
|
|
362
|
+
success?: HideTabBarRedDotSuccessCallback
|
|
363
|
+
/**
|
|
364
|
+
* 接口调用失败的回调函数
|
|
365
|
+
*/
|
|
366
|
+
fail?: HideTabBarRedDotFailCallback
|
|
367
|
+
/**
|
|
368
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
369
|
+
*/
|
|
370
|
+
complete?: HideTabBarRedDotCompleteCallback
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export type OnTabBarMidButtonTapCallback = () => void
|
|
374
|
+
|
|
375
|
+
export interface Uni {
|
|
376
|
+
/**
|
|
377
|
+
* 为 tabBar 某一项的右上角添加文本
|
|
378
|
+
*
|
|
379
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbarbadge
|
|
380
|
+
* @uniPlatform {
|
|
381
|
+
* "app": {
|
|
382
|
+
* "android": {
|
|
383
|
+
* "osVer": "5.0",
|
|
384
|
+
* "uniVer": "√",
|
|
385
|
+
* "unixVer": "3.91"
|
|
386
|
+
* },
|
|
387
|
+
* "ios": {
|
|
388
|
+
* "osVer": "12.0",
|
|
389
|
+
* "uniVer": "√",
|
|
390
|
+
* "unixVer": "4.11"
|
|
391
|
+
* }
|
|
392
|
+
* },
|
|
393
|
+
* "mp": {
|
|
394
|
+
* "weixin": {
|
|
395
|
+
* "hostVer": "√",
|
|
396
|
+
* "uniVer": "√",
|
|
397
|
+
* "unixVer": "x"
|
|
398
|
+
* },
|
|
399
|
+
* "alipay": {
|
|
400
|
+
* "hostVer": "√",
|
|
401
|
+
* "uniVer": "√",
|
|
402
|
+
* "unixVer": "x"
|
|
403
|
+
* },
|
|
404
|
+
* "baidu": {
|
|
405
|
+
* "hostVer": "√",
|
|
406
|
+
* "uniVer": "√",
|
|
407
|
+
* "unixVer": "x"
|
|
408
|
+
* },
|
|
409
|
+
* "toutiao": {
|
|
410
|
+
* "hostVer": "√",
|
|
411
|
+
* "uniVer": "√",
|
|
412
|
+
* "unixVer": "x"
|
|
413
|
+
* },
|
|
414
|
+
* "lark": {
|
|
415
|
+
* "hostVer": "√",
|
|
416
|
+
* "uniVer": "√",
|
|
417
|
+
* "unixVer": "x"
|
|
418
|
+
* },
|
|
419
|
+
* "qq": {
|
|
420
|
+
* "hostVer": "√",
|
|
421
|
+
* "uniVer": "√",
|
|
422
|
+
* "unixVer": "x"
|
|
423
|
+
* },
|
|
424
|
+
* "kuaishou": {
|
|
425
|
+
* "hostVer": "√",
|
|
426
|
+
* "uniVer": "√",
|
|
427
|
+
* "unixVer": "x"
|
|
428
|
+
* },
|
|
429
|
+
* "jd": {
|
|
430
|
+
* "hostVer": "√",
|
|
431
|
+
* "uniVer": "√",
|
|
432
|
+
* "unixVer": "x"
|
|
433
|
+
* }
|
|
434
|
+
* },
|
|
435
|
+
* "web": {
|
|
436
|
+
* "uniVer": "√",
|
|
437
|
+
* "unixVer": "4.0"
|
|
438
|
+
* }
|
|
439
|
+
* }
|
|
440
|
+
*/
|
|
441
|
+
setTabBarBadge(
|
|
442
|
+
options: SetTabBarBadgeOptions,
|
|
443
|
+
): Promise<SetTabBarBadgeSuccess> | null
|
|
444
|
+
/**
|
|
445
|
+
* 移除 tabBar 某一项右上角的文本
|
|
446
|
+
*
|
|
447
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#removetabbarbadge
|
|
448
|
+
* @uniPlatform {
|
|
449
|
+
* "app": {
|
|
450
|
+
* "android": {
|
|
451
|
+
* "osVer": "5.0",
|
|
452
|
+
* "uniVer": "√",
|
|
453
|
+
* "unixVer": "3.91"
|
|
454
|
+
* },
|
|
455
|
+
* "ios": {
|
|
456
|
+
* "osVer": "12.0",
|
|
457
|
+
* "uniVer": "√",
|
|
458
|
+
* "unixVer": "4.11"
|
|
459
|
+
* }
|
|
460
|
+
* },
|
|
461
|
+
* "mp": {
|
|
462
|
+
* "weixin": {
|
|
463
|
+
* "hostVer": "√",
|
|
464
|
+
* "uniVer": "√",
|
|
465
|
+
* "unixVer": "x"
|
|
466
|
+
* },
|
|
467
|
+
* "alipay": {
|
|
468
|
+
* "hostVer": "√",
|
|
469
|
+
* "uniVer": "√",
|
|
470
|
+
* "unixVer": "x"
|
|
471
|
+
* },
|
|
472
|
+
* "baidu": {
|
|
473
|
+
* "hostVer": "√",
|
|
474
|
+
* "uniVer": "√",
|
|
475
|
+
* "unixVer": "x"
|
|
476
|
+
* },
|
|
477
|
+
* "toutiao": {
|
|
478
|
+
* "hostVer": "√",
|
|
479
|
+
* "uniVer": "√",
|
|
480
|
+
* "unixVer": "x"
|
|
481
|
+
* },
|
|
482
|
+
* "lark": {
|
|
483
|
+
* "hostVer": "√",
|
|
484
|
+
* "uniVer": "√",
|
|
485
|
+
* "unixVer": "x"
|
|
486
|
+
* },
|
|
487
|
+
* "qq": {
|
|
488
|
+
* "hostVer": "√",
|
|
489
|
+
* "uniVer": "√",
|
|
490
|
+
* "unixVer": "x"
|
|
491
|
+
* },
|
|
492
|
+
* "kuaishou": {
|
|
493
|
+
* "hostVer": "√",
|
|
494
|
+
* "uniVer": "√",
|
|
495
|
+
* "unixVer": "x"
|
|
496
|
+
* },
|
|
497
|
+
* "jd": {
|
|
498
|
+
* "hostVer": "√",
|
|
499
|
+
* "uniVer": "√",
|
|
500
|
+
* "unixVer": "x"
|
|
501
|
+
* }
|
|
502
|
+
* },
|
|
503
|
+
* "web": {
|
|
504
|
+
* "uniVer": "√",
|
|
505
|
+
* "unixVer": "4.0"
|
|
506
|
+
* }
|
|
507
|
+
* }
|
|
508
|
+
*/
|
|
509
|
+
removeTabBarBadge(
|
|
510
|
+
options: RemoveTabBarBadgeOptions,
|
|
511
|
+
): Promise<RemoveTabBarBadgeSuccess> | null
|
|
512
|
+
/**
|
|
513
|
+
* 动态设置 tabBar 某一项的内容
|
|
514
|
+
*
|
|
515
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbaritem
|
|
516
|
+
* @uniPlatform {
|
|
517
|
+
* "app": {
|
|
518
|
+
* "android": {
|
|
519
|
+
* "osVer": "5.0",
|
|
520
|
+
* "uniVer": "√",
|
|
521
|
+
* "unixVer": "3.91"
|
|
522
|
+
* },
|
|
523
|
+
* "ios": {
|
|
524
|
+
* "osVer": "12.0",
|
|
525
|
+
* "uniVer": "√",
|
|
526
|
+
* "unixVer": "4.11"
|
|
527
|
+
* }
|
|
528
|
+
* },
|
|
529
|
+
* "mp": {
|
|
530
|
+
* "weixin": {
|
|
531
|
+
* "hostVer": "√",
|
|
532
|
+
* "uniVer": "√",
|
|
533
|
+
* "unixVer": "x"
|
|
534
|
+
* },
|
|
535
|
+
* "alipay": {
|
|
536
|
+
* "hostVer": "√",
|
|
537
|
+
* "uniVer": "√",
|
|
538
|
+
* "unixVer": "x"
|
|
539
|
+
* },
|
|
540
|
+
* "baidu": {
|
|
541
|
+
* "hostVer": "√",
|
|
542
|
+
* "uniVer": "√",
|
|
543
|
+
* "unixVer": "x"
|
|
544
|
+
* },
|
|
545
|
+
* "toutiao": {
|
|
546
|
+
* "hostVer": "√",
|
|
547
|
+
* "uniVer": "√",
|
|
548
|
+
* "unixVer": "x"
|
|
549
|
+
* },
|
|
550
|
+
* "lark": {
|
|
551
|
+
* "hostVer": "√",
|
|
552
|
+
* "uniVer": "√",
|
|
553
|
+
* "unixVer": "x"
|
|
554
|
+
* },
|
|
555
|
+
* "qq": {
|
|
556
|
+
* "hostVer": "√",
|
|
557
|
+
* "uniVer": "√",
|
|
558
|
+
* "unixVer": "x"
|
|
559
|
+
* },
|
|
560
|
+
* "kuaishou": {
|
|
561
|
+
* "hostVer": "√",
|
|
562
|
+
* "uniVer": "√",
|
|
563
|
+
* "unixVer": "x"
|
|
564
|
+
* },
|
|
565
|
+
* "jd": {
|
|
566
|
+
* "hostVer": "√",
|
|
567
|
+
* "uniVer": "√",
|
|
568
|
+
* "unixVer": "x"
|
|
569
|
+
* }
|
|
570
|
+
* },
|
|
571
|
+
* "web": {
|
|
572
|
+
* "uniVer": "√",
|
|
573
|
+
* "unixVer": "4.0"
|
|
574
|
+
* }
|
|
575
|
+
* }
|
|
576
|
+
*/
|
|
577
|
+
setTabBarItem(
|
|
578
|
+
options: SetTabBarItemOptions,
|
|
579
|
+
): Promise<SetTabBarItemSuccess> | null
|
|
580
|
+
/**
|
|
581
|
+
* 动态设置 tabBar 的整体样式
|
|
582
|
+
*
|
|
583
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbarstyle
|
|
584
|
+
* @uniPlatform {
|
|
585
|
+
* "app": {
|
|
586
|
+
* "android": {
|
|
587
|
+
* "osVer": "5.0",
|
|
588
|
+
* "uniVer": "√",
|
|
589
|
+
* "unixVer": "3.91"
|
|
590
|
+
* },
|
|
591
|
+
* "ios": {
|
|
592
|
+
* "osVer": "12.0",
|
|
593
|
+
* "uniVer": "√",
|
|
594
|
+
* "unixVer": "4.11"
|
|
595
|
+
* }
|
|
596
|
+
* },
|
|
597
|
+
* "mp": {
|
|
598
|
+
* "weixin": {
|
|
599
|
+
* "hostVer": "√",
|
|
600
|
+
* "uniVer": "√",
|
|
601
|
+
* "unixVer": "x"
|
|
602
|
+
* },
|
|
603
|
+
* "alipay": {
|
|
604
|
+
* "hostVer": "√",
|
|
605
|
+
* "uniVer": "√",
|
|
606
|
+
* "unixVer": "x"
|
|
607
|
+
* },
|
|
608
|
+
* "baidu": {
|
|
609
|
+
* "hostVer": "√",
|
|
610
|
+
* "uniVer": "√",
|
|
611
|
+
* "unixVer": "x"
|
|
612
|
+
* },
|
|
613
|
+
* "toutiao": {
|
|
614
|
+
* "hostVer": "√",
|
|
615
|
+
* "uniVer": "√",
|
|
616
|
+
* "unixVer": "x"
|
|
617
|
+
* },
|
|
618
|
+
* "lark": {
|
|
619
|
+
* "hostVer": "√",
|
|
620
|
+
* "uniVer": "√",
|
|
621
|
+
* "unixVer": "x"
|
|
622
|
+
* },
|
|
623
|
+
* "qq": {
|
|
624
|
+
* "hostVer": "√",
|
|
625
|
+
* "uniVer": "√",
|
|
626
|
+
* "unixVer": "x"
|
|
627
|
+
* },
|
|
628
|
+
* "kuaishou": {
|
|
629
|
+
* "hostVer": "√",
|
|
630
|
+
* "uniVer": "√",
|
|
631
|
+
* "unixVer": "x"
|
|
632
|
+
* },
|
|
633
|
+
* "jd": {
|
|
634
|
+
* "hostVer": "√",
|
|
635
|
+
* "uniVer": "√",
|
|
636
|
+
* "unixVer": "x"
|
|
637
|
+
* }
|
|
638
|
+
* },
|
|
639
|
+
* "web": {
|
|
640
|
+
* "uniVer": "√",
|
|
641
|
+
* "unixVer": "4.0"
|
|
642
|
+
* }
|
|
643
|
+
* }
|
|
644
|
+
*/
|
|
645
|
+
setTabBarStyle(
|
|
646
|
+
options: SetTabBarStyleOptions,
|
|
647
|
+
): Promise<SetTabBarStyleSuccess> | null
|
|
648
|
+
/**
|
|
649
|
+
* 隐藏 tabBar
|
|
650
|
+
*
|
|
651
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#hidetabbar
|
|
652
|
+
* @uniPlatform {
|
|
653
|
+
* "app": {
|
|
654
|
+
* "android": {
|
|
655
|
+
* "osVer": "5.0",
|
|
656
|
+
* "uniVer": "√",
|
|
657
|
+
* "unixVer": "3.91"
|
|
658
|
+
* },
|
|
659
|
+
* "ios": {
|
|
660
|
+
* "osVer": "12.0",
|
|
661
|
+
* "uniVer": "√",
|
|
662
|
+
* "unixVer": "4.11"
|
|
663
|
+
* }
|
|
664
|
+
* },
|
|
665
|
+
* "mp": {
|
|
666
|
+
* "weixin": {
|
|
667
|
+
* "hostVer": "√",
|
|
668
|
+
* "uniVer": "√",
|
|
669
|
+
* "unixVer": "x"
|
|
670
|
+
* },
|
|
671
|
+
* "alipay": {
|
|
672
|
+
* "hostVer": "√",
|
|
673
|
+
* "uniVer": "√",
|
|
674
|
+
* "unixVer": "x"
|
|
675
|
+
* },
|
|
676
|
+
* "baidu": {
|
|
677
|
+
* "hostVer": "√",
|
|
678
|
+
* "uniVer": "√",
|
|
679
|
+
* "unixVer": "x"
|
|
680
|
+
* },
|
|
681
|
+
* "toutiao": {
|
|
682
|
+
* "hostVer": "√",
|
|
683
|
+
* "uniVer": "√",
|
|
684
|
+
* "unixVer": "x"
|
|
685
|
+
* },
|
|
686
|
+
* "lark": {
|
|
687
|
+
* "hostVer": "√",
|
|
688
|
+
* "uniVer": "√",
|
|
689
|
+
* "unixVer": "x"
|
|
690
|
+
* },
|
|
691
|
+
* "qq": {
|
|
692
|
+
* "hostVer": "√",
|
|
693
|
+
* "uniVer": "√",
|
|
694
|
+
* "unixVer": "x"
|
|
695
|
+
* },
|
|
696
|
+
* "kuaishou": {
|
|
697
|
+
* "hostVer": "√",
|
|
698
|
+
* "uniVer": "√",
|
|
699
|
+
* "unixVer": "x"
|
|
700
|
+
* },
|
|
701
|
+
* "jd": {
|
|
702
|
+
* "hostVer": "√",
|
|
703
|
+
* "uniVer": "√",
|
|
704
|
+
* "unixVer": "x"
|
|
705
|
+
* }
|
|
706
|
+
* },
|
|
707
|
+
* "web": {
|
|
708
|
+
* "uniVer": "√",
|
|
709
|
+
* "unixVer": "4.0"
|
|
710
|
+
* }
|
|
711
|
+
* }
|
|
712
|
+
*/
|
|
713
|
+
hideTabBar(
|
|
714
|
+
options?: HideTabBarOptions | null,
|
|
715
|
+
): Promise<HideTabBarSuccess> | null
|
|
716
|
+
/**
|
|
717
|
+
* 显示 tabBar
|
|
718
|
+
*
|
|
719
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#showtabbar
|
|
720
|
+
* @uniPlatform {
|
|
721
|
+
* "app": {
|
|
722
|
+
* "android": {
|
|
723
|
+
* "osVer": "5.0",
|
|
724
|
+
* "uniVer": "√",
|
|
725
|
+
* "unixVer": "3.91"
|
|
726
|
+
* },
|
|
727
|
+
* "ios": {
|
|
728
|
+
* "osVer": "12.0",
|
|
729
|
+
* "uniVer": "√",
|
|
730
|
+
* "unixVer": "4.11"
|
|
731
|
+
* }
|
|
732
|
+
* },
|
|
733
|
+
* "mp": {
|
|
734
|
+
* "weixin": {
|
|
735
|
+
* "hostVer": "√",
|
|
736
|
+
* "uniVer": "√",
|
|
737
|
+
* "unixVer": "x"
|
|
738
|
+
* },
|
|
739
|
+
* "alipay": {
|
|
740
|
+
* "hostVer": "√",
|
|
741
|
+
* "uniVer": "√",
|
|
742
|
+
* "unixVer": "x"
|
|
743
|
+
* },
|
|
744
|
+
* "baidu": {
|
|
745
|
+
* "hostVer": "√",
|
|
746
|
+
* "uniVer": "√",
|
|
747
|
+
* "unixVer": "x"
|
|
748
|
+
* },
|
|
749
|
+
* "toutiao": {
|
|
750
|
+
* "hostVer": "√",
|
|
751
|
+
* "uniVer": "√",
|
|
752
|
+
* "unixVer": "x"
|
|
753
|
+
* },
|
|
754
|
+
* "lark": {
|
|
755
|
+
* "hostVer": "√",
|
|
756
|
+
* "uniVer": "√",
|
|
757
|
+
* "unixVer": "x"
|
|
758
|
+
* },
|
|
759
|
+
* "qq": {
|
|
760
|
+
* "hostVer": "√",
|
|
761
|
+
* "uniVer": "√",
|
|
762
|
+
* "unixVer": "x"
|
|
763
|
+
* },
|
|
764
|
+
* "kuaishou": {
|
|
765
|
+
* "hostVer": "√",
|
|
766
|
+
* "uniVer": "√",
|
|
767
|
+
* "unixVer": "x"
|
|
768
|
+
* },
|
|
769
|
+
* "jd": {
|
|
770
|
+
* "hostVer": "√",
|
|
771
|
+
* "uniVer": "√",
|
|
772
|
+
* "unixVer": "x"
|
|
773
|
+
* }
|
|
774
|
+
* },
|
|
775
|
+
* "web": {
|
|
776
|
+
* "uniVer": "√",
|
|
777
|
+
* "unixVer": "4.0"
|
|
778
|
+
* }
|
|
779
|
+
* }
|
|
780
|
+
*/
|
|
781
|
+
showTabBar(
|
|
782
|
+
options?: ShowTabBarOptions | null,
|
|
783
|
+
): Promise<ShowTabBarSuccess> | null
|
|
784
|
+
/**
|
|
785
|
+
* 显示 tabBar 某一项的右上角的红点
|
|
786
|
+
*
|
|
787
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#showtabbarreddot
|
|
788
|
+
* @uniPlatform {
|
|
789
|
+
* "app": {
|
|
790
|
+
* "android": {
|
|
791
|
+
* "osVer": "5.0",
|
|
792
|
+
* "uniVer": "√",
|
|
793
|
+
* "unixVer": "3.91"
|
|
794
|
+
* },
|
|
795
|
+
* "ios": {
|
|
796
|
+
* "osVer": "12.0",
|
|
797
|
+
* "uniVer": "√",
|
|
798
|
+
* "unixVer": "4.11"
|
|
799
|
+
* }
|
|
800
|
+
* },
|
|
801
|
+
* "mp": {
|
|
802
|
+
* "weixin": {
|
|
803
|
+
* "hostVer": "√",
|
|
804
|
+
* "uniVer": "√",
|
|
805
|
+
* "unixVer": "x"
|
|
806
|
+
* },
|
|
807
|
+
* "alipay": {
|
|
808
|
+
* "hostVer": "√",
|
|
809
|
+
* "uniVer": "√",
|
|
810
|
+
* "unixVer": "x"
|
|
811
|
+
* },
|
|
812
|
+
* "baidu": {
|
|
813
|
+
* "hostVer": "√",
|
|
814
|
+
* "uniVer": "√",
|
|
815
|
+
* "unixVer": "x"
|
|
816
|
+
* },
|
|
817
|
+
* "toutiao": {
|
|
818
|
+
* "hostVer": "√",
|
|
819
|
+
* "uniVer": "√",
|
|
820
|
+
* "unixVer": "x"
|
|
821
|
+
* },
|
|
822
|
+
* "lark": {
|
|
823
|
+
* "hostVer": "√",
|
|
824
|
+
* "uniVer": "√",
|
|
825
|
+
* "unixVer": "x"
|
|
826
|
+
* },
|
|
827
|
+
* "qq": {
|
|
828
|
+
* "hostVer": "√",
|
|
829
|
+
* "uniVer": "√",
|
|
830
|
+
* "unixVer": "x"
|
|
831
|
+
* },
|
|
832
|
+
* "kuaishou": {
|
|
833
|
+
* "hostVer": "√",
|
|
834
|
+
* "uniVer": "√",
|
|
835
|
+
* "unixVer": "x"
|
|
836
|
+
* },
|
|
837
|
+
* "jd": {
|
|
838
|
+
* "hostVer": "√",
|
|
839
|
+
* "uniVer": "√",
|
|
840
|
+
* "unixVer": "x"
|
|
841
|
+
* }
|
|
842
|
+
* },
|
|
843
|
+
* "web": {
|
|
844
|
+
* "uniVer": "√",
|
|
845
|
+
* "unixVer": "4.0"
|
|
846
|
+
* }
|
|
847
|
+
* }
|
|
848
|
+
*/
|
|
849
|
+
showTabBarRedDot(
|
|
850
|
+
options: ShowTabBarRedDotOptions,
|
|
851
|
+
): Promise<ShowTabBarRedDotSuccess> | null
|
|
852
|
+
/**
|
|
853
|
+
* 隐藏 tabBar 某一项的右上角的红点
|
|
854
|
+
*
|
|
855
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#hidetabbarreddot
|
|
856
|
+
* @uniPlatform {
|
|
857
|
+
* "app": {
|
|
858
|
+
* "android": {
|
|
859
|
+
* "osVer": "5.0",
|
|
860
|
+
* "uniVer": "√",
|
|
861
|
+
* "unixVer": "3.91"
|
|
862
|
+
* },
|
|
863
|
+
* "ios": {
|
|
864
|
+
* "osVer": "12.0",
|
|
865
|
+
* "uniVer": "√",
|
|
866
|
+
* "unixVer": "4.11"
|
|
867
|
+
* }
|
|
868
|
+
* },
|
|
869
|
+
* "mp": {
|
|
870
|
+
* "weixin": {
|
|
871
|
+
* "hostVer": "√",
|
|
872
|
+
* "uniVer": "√",
|
|
873
|
+
* "unixVer": "x"
|
|
874
|
+
* },
|
|
875
|
+
* "alipay": {
|
|
876
|
+
* "hostVer": "√",
|
|
877
|
+
* "uniVer": "√",
|
|
878
|
+
* "unixVer": "x"
|
|
879
|
+
* },
|
|
880
|
+
* "baidu": {
|
|
881
|
+
* "hostVer": "√",
|
|
882
|
+
* "uniVer": "√",
|
|
883
|
+
* "unixVer": "x"
|
|
884
|
+
* },
|
|
885
|
+
* "toutiao": {
|
|
886
|
+
* "hostVer": "√",
|
|
887
|
+
* "uniVer": "√",
|
|
888
|
+
* "unixVer": "x"
|
|
889
|
+
* },
|
|
890
|
+
* "lark": {
|
|
891
|
+
* "hostVer": "√",
|
|
892
|
+
* "uniVer": "√",
|
|
893
|
+
* "unixVer": "x"
|
|
894
|
+
* },
|
|
895
|
+
* "qq": {
|
|
896
|
+
* "hostVer": "√",
|
|
897
|
+
* "uniVer": "√",
|
|
898
|
+
* "unixVer": "x"
|
|
899
|
+
* },
|
|
900
|
+
* "kuaishou": {
|
|
901
|
+
* "hostVer": "√",
|
|
902
|
+
* "uniVer": "√",
|
|
903
|
+
* "unixVer": "x"
|
|
904
|
+
* },
|
|
905
|
+
* "jd": {
|
|
906
|
+
* "hostVer": "√",
|
|
907
|
+
* "uniVer": "√",
|
|
908
|
+
* "unixVer": "x"
|
|
909
|
+
* }
|
|
910
|
+
* },
|
|
911
|
+
* "web": {
|
|
912
|
+
* "uniVer": "√",
|
|
913
|
+
* "unixVer": "4.0"
|
|
914
|
+
* }
|
|
915
|
+
* }
|
|
916
|
+
*/
|
|
917
|
+
hideTabBarRedDot(
|
|
918
|
+
options: HideTabBarRedDotOptions,
|
|
919
|
+
): Promise<HideTabBarRedDotSuccess> | null
|
|
920
|
+
// /**
|
|
921
|
+
// * 监听中间按钮的点击事件
|
|
922
|
+
// *
|
|
923
|
+
// * @tutorial https://doc.dcloud.net.cn/uni-app-x/tabbar?id=ontabbarmidbuttontap
|
|
924
|
+
// */
|
|
925
|
+
// onTabBarMidButtonTap(options: OnTabBarMidButtonTapCallback): void
|
|
926
|
+
}
|