@dcloudio/uni-app-x 0.7.14 → 0.7.15
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/options.d.ts +1 -1
- package/package.json +1 -1
- package/types/native/CSSStyleDeclaration.d.ts +0 -72
- package/types/native/CanvasRenderingContext2D.d.ts +378 -0
- package/types/native/DOMRect.d.ts +0 -180
- package/types/native/DrawableContext.d.ts +161 -628
- package/types/native/IUniElement.d.ts +335 -1919
- package/types/native/Path2D.d.ts +74 -0
- package/types/native/SnapshotOptions.d.ts +1 -0
- package/types/native/UniCanvasElement.d.ts +9 -0
- package/types/native/UniNativePage.d.ts +27 -1
- package/types/native/UniPageManager.d.ts +4 -1
- package/types/native/UniResizeObserver.d.ts +9 -99
- package/types/native/UniScrollEvent.d.ts +1 -1
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -1
- package/types/native/UniSwiperChangeEvent.d.ts +1 -1
- package/types/native/global.d.ts +21 -0
- package/types/native/index.d.ts +3 -0
- package/types/shim-uts-basic.d.ts +4495 -0
- package/types/uni/env/index.d.ts +21 -0
- package/types/uni/uts-plugin-api/global.d.ts +12 -1
- package/types/uni/uts-plugin-api/index.d.ts +12 -1
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -0
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -0
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -0
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +20 -3
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +19 -8
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +13 -6
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +28 -0
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -1
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +8 -1
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +20 -17
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +26 -18
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +201 -64
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +180 -59
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +7 -1
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +10 -1
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +173 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +2 -14
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -6
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -151
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +10 -3
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +7 -1
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +113 -23
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +500 -149
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +123 -112
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +9 -6
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +18 -2
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -0
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +8 -1
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/global.d.ts +9 -6
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/index.d.ts +4 -2
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/interface.d.ts +40 -61
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +312 -58
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +34 -5
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +280 -92
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +20 -15
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -0
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +16 -6
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +17 -10
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +120 -42
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +16 -1
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +241 -32
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +7 -2
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -0
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +112 -43
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +16 -0
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +78 -1
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +199 -149
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +170 -83
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +11 -7
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +33 -15
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +777 -568
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +10 -6
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +132 -15
- package/types/uni/uts-plugin-extend/global.d.ts +0 -1
- package/types/uni/uts-plugin-extend/index.d.ts +0 -3
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
- package/types/uni-cloud/interface.d.ts +57 -3
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +0 -78
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +0 -38
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +0 -642
- package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/global.d.ts +0 -21
- package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/index.d.ts +0 -9
- package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/interface.d.ts +0 -119
- package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/global.d.ts +0 -21
- package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/index.d.ts +0 -9
- package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/interface.d.ts +0 -122
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* uni.scanCode成功回调参数
|
|
3
|
+
*/
|
|
4
|
+
export type ScanCodeSuccess = {
|
|
5
|
+
result: string,
|
|
6
|
+
scanType: ScanCodeSupportedTypes
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type ScanCodeFail = {}
|
|
10
|
+
/**
|
|
11
|
+
* uni.scanCode成功回调函数定义
|
|
12
|
+
*/
|
|
13
|
+
export type ScanCodeSuccessCallback = (res: ScanCodeSuccess) => void
|
|
14
|
+
/**
|
|
15
|
+
* uni.scanCode失败回调函数定义
|
|
16
|
+
*/
|
|
17
|
+
export type ScanCodeFailCallback = (res: ScanCodeFail) => void
|
|
18
|
+
/**
|
|
19
|
+
* uni.scanCode完成回调函数定义
|
|
20
|
+
*/
|
|
21
|
+
export type ScanCodeCompleteCallback = (res: any) => void
|
|
22
|
+
|
|
23
|
+
export type ScanCodeSupportedTypes = 'barCode' | 'qrCode' | 'datamatrix' | 'pdf417'
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* uni.scanCode参数定义
|
|
27
|
+
*/
|
|
28
|
+
export type ScanCodeOptions = {
|
|
29
|
+
/**
|
|
30
|
+
* 是否只能从相机扫码,不允许从相册选择图片
|
|
31
|
+
*/
|
|
32
|
+
onlyFromCamera?: boolean | null,
|
|
33
|
+
/**
|
|
34
|
+
* 扫码类型
|
|
35
|
+
*/
|
|
36
|
+
scanType?: ScanCodeSupportedTypes[] | null,
|
|
37
|
+
/**
|
|
38
|
+
* 接口调用成功的回调函数
|
|
39
|
+
*/
|
|
40
|
+
success?: ScanCodeSuccessCallback | null,
|
|
41
|
+
/**
|
|
42
|
+
* 接口调用失败的回调函数
|
|
43
|
+
*/
|
|
44
|
+
fail?: ScanCodeFailCallback | null,
|
|
45
|
+
/**
|
|
46
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
47
|
+
*/
|
|
48
|
+
complete?: ScanCodeCompleteCallback | null
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
export interface Uni {
|
|
53
|
+
/**
|
|
54
|
+
* 扫码
|
|
55
|
+
* @uniPlatform {
|
|
56
|
+
* "app": {
|
|
57
|
+
* "harmony": {
|
|
58
|
+
* "osVer": "3.0",
|
|
59
|
+
* "uniVer": "4.23",
|
|
60
|
+
* "unixVer": "x"
|
|
61
|
+
* }
|
|
62
|
+
* },
|
|
63
|
+
* "web": {
|
|
64
|
+
* "uniVer": "x",
|
|
65
|
+
* "unixVer": "x"
|
|
66
|
+
* }
|
|
67
|
+
* }
|
|
68
|
+
* @uniVueVersion 2,3 //支持的vue版本
|
|
69
|
+
*/
|
|
70
|
+
scanCode(options?: ScanCodeOptions | null): void;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type ScanCode = (options?: ScanCodeOptions | null) => void;
|
|
@@ -244,10 +244,12 @@ export type ClearStorageSync = () => void
|
|
|
244
244
|
export interface Uni {
|
|
245
245
|
/**
|
|
246
246
|
* uni.setStorage函数定义
|
|
247
|
-
* 将数据存储在本地storage存储中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个异步接口。
|
|
248
|
-
*
|
|
249
|
-
* @param {SetStorageOptions} options
|
|
250
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/storage/storage.html#setstorage
|
|
247
|
+
* 将数据存储在本地storage存储中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个异步接口。
|
|
248
|
+
*
|
|
249
|
+
* @param {SetStorageOptions} options
|
|
250
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#setstorage
|
|
251
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#setstorage
|
|
252
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#setstorage
|
|
251
253
|
* @uniPlatform {
|
|
252
254
|
* "app": {
|
|
253
255
|
* "android": {
|
|
@@ -259,7 +261,12 @@ export interface Uni {
|
|
|
259
261
|
* "osVer": "12.0",
|
|
260
262
|
* "uniVer": "2.0.3",
|
|
261
263
|
* "unixVer": "4.11"
|
|
262
|
-
* }
|
|
264
|
+
* },
|
|
265
|
+
* "harmony": {
|
|
266
|
+
* "osVer": "3.0",
|
|
267
|
+
* "uniVer": "4.23",
|
|
268
|
+
* "unixVer": "x"
|
|
269
|
+
* }
|
|
263
270
|
* },
|
|
264
271
|
* "web": {
|
|
265
272
|
* "uniVer": "√",
|
|
@@ -273,10 +280,12 @@ export interface Uni {
|
|
|
273
280
|
/**
|
|
274
281
|
* uni.setStorageSync函数定义
|
|
275
282
|
* 将 data 存储在本地storage存储中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个同步接口。
|
|
276
|
-
*
|
|
283
|
+
*
|
|
277
284
|
* @param {string} key 本地storage存储中的指定的 key
|
|
278
285
|
* @param {any} data 需要存储的内容,只支持能通过 JSON.stringify 序列化的对象
|
|
279
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/storage/storage.html#setstoragesync
|
|
286
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#setstoragesync
|
|
287
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#setstoragesync
|
|
288
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#setstoragesync
|
|
280
289
|
* @uniPlatform {
|
|
281
290
|
* "app": {
|
|
282
291
|
* "android": {
|
|
@@ -288,7 +297,12 @@ export interface Uni {
|
|
|
288
297
|
* "osVer": "12.0",
|
|
289
298
|
* "uniVer": "2.0.3",
|
|
290
299
|
* "unixVer": "4.11"
|
|
291
|
-
* }
|
|
300
|
+
* },
|
|
301
|
+
* "harmony": {
|
|
302
|
+
* "osVer": "3.0",
|
|
303
|
+
* "uniVer": "4.23",
|
|
304
|
+
* "unixVer": "x"
|
|
305
|
+
* }
|
|
292
306
|
* },
|
|
293
307
|
* "web": {
|
|
294
308
|
* "uniVer": "√",
|
|
@@ -302,9 +316,11 @@ export interface Uni {
|
|
|
302
316
|
/**
|
|
303
317
|
* uni.getStorage函数定义
|
|
304
318
|
* 从本地存储中异步获取指定 key 对应的内容。
|
|
305
|
-
*
|
|
306
|
-
* @param {GetStorageOptions} options
|
|
307
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/storage/storage.html#getstorage
|
|
319
|
+
*
|
|
320
|
+
* @param {GetStorageOptions} options
|
|
321
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#getstorage
|
|
322
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#getstorage
|
|
323
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#getstorage
|
|
308
324
|
* @uniPlatform {
|
|
309
325
|
* "app": {
|
|
310
326
|
* "android": {
|
|
@@ -316,7 +332,12 @@ export interface Uni {
|
|
|
316
332
|
* "osVer": "12.0",
|
|
317
333
|
* "uniVer": "2.0.3",
|
|
318
334
|
* "unixVer": "4.11"
|
|
319
|
-
* }
|
|
335
|
+
* },
|
|
336
|
+
* "harmony": {
|
|
337
|
+
* "osVer": "3.0",
|
|
338
|
+
* "uniVer": "4.23",
|
|
339
|
+
* "unixVer": "x"
|
|
340
|
+
* }
|
|
320
341
|
* },
|
|
321
342
|
* "web": {
|
|
322
343
|
* "uniVer": "√",
|
|
@@ -330,9 +351,11 @@ export interface Uni {
|
|
|
330
351
|
/**
|
|
331
352
|
* uni.getStorageSync函数定义
|
|
332
353
|
* 从本地存储中同步获取指定 key 对应的内容。
|
|
333
|
-
*
|
|
354
|
+
*
|
|
334
355
|
* @param {string} key 本地存储中的指定的 key
|
|
335
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/storage/storage.html#getstoragesync
|
|
356
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#getstoragesync
|
|
357
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#getstoragesync
|
|
358
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#getstoragesync
|
|
336
359
|
* @uniPlatform {
|
|
337
360
|
* "app": {
|
|
338
361
|
* "android": {
|
|
@@ -344,7 +367,12 @@ export interface Uni {
|
|
|
344
367
|
* "osVer": "12.0",
|
|
345
368
|
* "uniVer": "2.0.3",
|
|
346
369
|
* "unixVer": "4.11"
|
|
347
|
-
* }
|
|
370
|
+
* },
|
|
371
|
+
* "harmony": {
|
|
372
|
+
* "osVer": "3.0",
|
|
373
|
+
* "uniVer": "4.23",
|
|
374
|
+
* "unixVer": "x"
|
|
375
|
+
* }
|
|
348
376
|
* },
|
|
349
377
|
* "web": {
|
|
350
378
|
* "uniVer": "√",
|
|
@@ -358,9 +386,11 @@ export interface Uni {
|
|
|
358
386
|
/**
|
|
359
387
|
* uni.getStorageInfo函数定义
|
|
360
388
|
* 异步获取当前 storage 的相关信息。
|
|
361
|
-
*
|
|
362
|
-
* @param {GetStorageInfoOptions} options
|
|
363
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/storage/storage.html#getstorageinfo
|
|
389
|
+
*
|
|
390
|
+
* @param {GetStorageInfoOptions} options
|
|
391
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#getstorageinfo
|
|
392
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#getstorageinfo
|
|
393
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#getstorageinfo
|
|
364
394
|
* @uniPlatform {
|
|
365
395
|
* "app": {
|
|
366
396
|
* "android": {
|
|
@@ -372,7 +402,12 @@ export interface Uni {
|
|
|
372
402
|
* "osVer": "12.0",
|
|
373
403
|
* "uniVer": "2.0.3",
|
|
374
404
|
* "unixVer": "4.11"
|
|
375
|
-
* }
|
|
405
|
+
* },
|
|
406
|
+
* "harmony": {
|
|
407
|
+
* "osVer": "3.0",
|
|
408
|
+
* "uniVer": "4.23",
|
|
409
|
+
* "unixVer": "x"
|
|
410
|
+
* }
|
|
376
411
|
* },
|
|
377
412
|
* "web": {
|
|
378
413
|
* "uniVer": "√",
|
|
@@ -386,10 +421,11 @@ export interface Uni {
|
|
|
386
421
|
/**
|
|
387
422
|
* uni.getStorageInfoSync函数定义
|
|
388
423
|
* 同步获取当前 storage 的相关信息。
|
|
389
|
-
*
|
|
390
|
-
*
|
|
391
|
-
* @tutorial https://
|
|
392
|
-
*
|
|
424
|
+
*
|
|
425
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#getstorageinfosync
|
|
426
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#getstorageinfosync
|
|
427
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#getstorageinfosync
|
|
428
|
+
*
|
|
393
429
|
* @uniPlatform {
|
|
394
430
|
* "app": {
|
|
395
431
|
* "android": {
|
|
@@ -401,7 +437,12 @@ export interface Uni {
|
|
|
401
437
|
* "osVer": "12.0",
|
|
402
438
|
* "uniVer": "2.0.3",
|
|
403
439
|
* "unixVer": "4.11"
|
|
404
|
-
* }
|
|
440
|
+
* },
|
|
441
|
+
* "harmony": {
|
|
442
|
+
* "osVer": "3.0",
|
|
443
|
+
* "uniVer": "4.23",
|
|
444
|
+
* "unixVer": "x"
|
|
445
|
+
* }
|
|
405
446
|
* },
|
|
406
447
|
* "web": {
|
|
407
448
|
* "uniVer": "√",
|
|
@@ -415,11 +456,13 @@ export interface Uni {
|
|
|
415
456
|
/**
|
|
416
457
|
* uni.removeStorage函数定义
|
|
417
458
|
* 从本地存储中异步移除指定 key。
|
|
418
|
-
*
|
|
419
|
-
* @param {RemoveStorageOptions} options
|
|
420
|
-
*
|
|
421
|
-
* @tutorial
|
|
422
|
-
*
|
|
459
|
+
*
|
|
460
|
+
* @param {RemoveStorageOptions} options
|
|
461
|
+
*
|
|
462
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#removestorage
|
|
463
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#removestorage
|
|
464
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#removestorage
|
|
465
|
+
*
|
|
423
466
|
* @uniPlatform {
|
|
424
467
|
* "app": {
|
|
425
468
|
* "android": {
|
|
@@ -431,7 +474,12 @@ export interface Uni {
|
|
|
431
474
|
* "osVer": "12.0",
|
|
432
475
|
* "uniVer": "2.0.3",
|
|
433
476
|
* "unixVer": "4.11"
|
|
434
|
-
* }
|
|
477
|
+
* },
|
|
478
|
+
* "harmony": {
|
|
479
|
+
* "osVer": "3.0",
|
|
480
|
+
* "uniVer": "4.23",
|
|
481
|
+
* "unixVer": "x"
|
|
482
|
+
* }
|
|
435
483
|
* },
|
|
436
484
|
* "web": {
|
|
437
485
|
* "uniVer": "√",
|
|
@@ -445,11 +493,13 @@ export interface Uni {
|
|
|
445
493
|
/**
|
|
446
494
|
* uni.removeStorageSync函数定义
|
|
447
495
|
* 从本地存储中同步移除指定 key。
|
|
448
|
-
*
|
|
496
|
+
*
|
|
449
497
|
* @param {string} key 本地存储中的指定的 key
|
|
450
|
-
*
|
|
451
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/storage/storage.html#removestoragesync
|
|
452
|
-
*
|
|
498
|
+
*
|
|
499
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#removestoragesync
|
|
500
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#removestoragesync
|
|
501
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#removestoragesync
|
|
502
|
+
*
|
|
453
503
|
* @uniPlatform {
|
|
454
504
|
* "app": {
|
|
455
505
|
* "android": {
|
|
@@ -461,7 +511,12 @@ export interface Uni {
|
|
|
461
511
|
* "osVer": "12.0",
|
|
462
512
|
* "uniVer": "2.0.3",
|
|
463
513
|
* "unixVer": "4.11"
|
|
464
|
-
* }
|
|
514
|
+
* },
|
|
515
|
+
* "harmony": {
|
|
516
|
+
* "osVer": "3.0",
|
|
517
|
+
* "uniVer": "4.23",
|
|
518
|
+
* "unixVer": "x"
|
|
519
|
+
* }
|
|
465
520
|
* },
|
|
466
521
|
* "web": {
|
|
467
522
|
* "uniVer": "√",
|
|
@@ -475,9 +530,11 @@ export interface Uni {
|
|
|
475
530
|
/**
|
|
476
531
|
* uni.clearStorage函数定义
|
|
477
532
|
* 清除本地数据存储。
|
|
478
|
-
*
|
|
479
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/storage/storage.html#clearstorage
|
|
480
|
-
*
|
|
533
|
+
*
|
|
534
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#clearstorage
|
|
535
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#clearstorage
|
|
536
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#clearstorage
|
|
537
|
+
*
|
|
481
538
|
* @uniPlatform {
|
|
482
539
|
* "app": {
|
|
483
540
|
* "android": {
|
|
@@ -489,7 +546,12 @@ export interface Uni {
|
|
|
489
546
|
* "osVer": "12.0",
|
|
490
547
|
* "uniVer": "2.0.3",
|
|
491
548
|
* "unixVer": "4.11"
|
|
492
|
-
* }
|
|
549
|
+
* },
|
|
550
|
+
* "harmony": {
|
|
551
|
+
* "osVer": "3.0",
|
|
552
|
+
* "uniVer": "4.23",
|
|
553
|
+
* "unixVer": "x"
|
|
554
|
+
* }
|
|
493
555
|
* },
|
|
494
556
|
* "web": {
|
|
495
557
|
* "uniVer": "√",
|
|
@@ -503,9 +565,11 @@ export interface Uni {
|
|
|
503
565
|
/**
|
|
504
566
|
* uni.clearStorageSync函数定义
|
|
505
567
|
* 清除本地数据存储。
|
|
506
|
-
*
|
|
507
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/storage/storage.html#clearstoragesync
|
|
508
|
-
*
|
|
568
|
+
*
|
|
569
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#clearstoragesync
|
|
570
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#clearstoragesync
|
|
571
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#clearstoragesync
|
|
572
|
+
*
|
|
509
573
|
* @uniPlatform {
|
|
510
574
|
* "app": {
|
|
511
575
|
* "android": {
|
|
@@ -517,7 +581,12 @@ export interface Uni {
|
|
|
517
581
|
* "osVer": "12.0",
|
|
518
582
|
* "uniVer": "2.0.3",
|
|
519
583
|
* "unixVer": "4.11"
|
|
520
|
-
* }
|
|
584
|
+
* },
|
|
585
|
+
* "harmony": {
|
|
586
|
+
* "osVer": "3.0",
|
|
587
|
+
* "uniVer": "4.23",
|
|
588
|
+
* "unixVer": "x"
|
|
589
|
+
* }
|
|
521
590
|
* },
|
|
522
591
|
* "web": {
|
|
523
592
|
* "uniVer": "√",
|
|
@@ -62,6 +62,14 @@ import {
|
|
|
62
62
|
HideTabBarRedDotCompleteCallback as HideTabBarRedDotCompleteCallbackOrigin,
|
|
63
63
|
HideTabBarRedDotOptions as HideTabBarRedDotOptionsOrigin,
|
|
64
64
|
OnTabBarMidButtonTapCallback as OnTabBarMidButtonTapCallbackOrigin,
|
|
65
|
+
SetTabBarBadge as SetTabBarBadgeOrigin,
|
|
66
|
+
RemoveTabBarBadge as RemoveTabBarBadgeOrigin,
|
|
67
|
+
SetTabBarItem as SetTabBarItemOrigin,
|
|
68
|
+
SetTabBarStyle as SetTabBarStyleOrigin,
|
|
69
|
+
ShowTabBar as ShowTabBarOrigin,
|
|
70
|
+
HideTabBar as HideTabBarOrigin,
|
|
71
|
+
ShowTabBarRedDot as ShowTabBarRedDotOrigin,
|
|
72
|
+
HideTabBarRedDot as HideTabBarRedDotOrigin,
|
|
65
73
|
Uni as UniOrigin
|
|
66
74
|
} from './interface'
|
|
67
75
|
|
|
@@ -128,5 +136,13 @@ declare global {
|
|
|
128
136
|
type HideTabBarRedDotCompleteCallback = HideTabBarRedDotCompleteCallbackOrigin
|
|
129
137
|
type HideTabBarRedDotOptions = HideTabBarRedDotOptionsOrigin
|
|
130
138
|
type OnTabBarMidButtonTapCallback = OnTabBarMidButtonTapCallbackOrigin
|
|
139
|
+
type SetTabBarBadge = SetTabBarBadgeOrigin
|
|
140
|
+
type RemoveTabBarBadge = RemoveTabBarBadgeOrigin
|
|
141
|
+
type SetTabBarItem = SetTabBarItemOrigin
|
|
142
|
+
type SetTabBarStyle = SetTabBarStyleOrigin
|
|
143
|
+
type ShowTabBar = ShowTabBarOrigin
|
|
144
|
+
type HideTabBar = HideTabBarOrigin
|
|
145
|
+
type ShowTabBarRedDot = ShowTabBarRedDotOrigin
|
|
146
|
+
type HideTabBarRedDot = HideTabBarRedDotOrigin
|
|
131
147
|
interface Uni extends UniOrigin { }
|
|
132
148
|
}
|
|
@@ -62,4 +62,12 @@ export {
|
|
|
62
62
|
HideTabBarRedDotCompleteCallback,
|
|
63
63
|
HideTabBarRedDotOptions,
|
|
64
64
|
OnTabBarMidButtonTapCallback,
|
|
65
|
+
SetTabBarBadge,
|
|
66
|
+
RemoveTabBarBadge,
|
|
67
|
+
SetTabBarItem,
|
|
68
|
+
SetTabBarStyle,
|
|
69
|
+
ShowTabBar,
|
|
70
|
+
HideTabBar,
|
|
71
|
+
ShowTabBarRedDot,
|
|
72
|
+
HideTabBarRedDot,
|
|
65
73
|
} from './interface'
|
|
@@ -249,6 +249,11 @@ export type SetTabBarStyleOptions = {
|
|
|
249
249
|
* "osVer": "12.0",
|
|
250
250
|
* "uniVer": "x",
|
|
251
251
|
* "unixVer": "4.23"
|
|
252
|
+
* },
|
|
253
|
+
* "harmony": {
|
|
254
|
+
* "osVer": "3.0",
|
|
255
|
+
* "uniVer": "4.23",
|
|
256
|
+
* "unixVer": "x"
|
|
252
257
|
* }
|
|
253
258
|
* },
|
|
254
259
|
* "web": {
|
|
@@ -395,10 +400,22 @@ export type HideTabBarRedDotOptions = {
|
|
|
395
400
|
|
|
396
401
|
export type OnTabBarMidButtonTapCallback = () => void
|
|
397
402
|
|
|
403
|
+
|
|
404
|
+
export type SetTabBarBadge = (options: SetTabBarBadgeOptions) => void
|
|
405
|
+
export type RemoveTabBarBadge = (options: RemoveTabBarBadgeOptions) => void
|
|
406
|
+
export type SetTabBarItem = (options: SetTabBarItemOptions) => void
|
|
407
|
+
export type SetTabBarStyle = (options: SetTabBarStyleOptions) => void
|
|
408
|
+
export type ShowTabBar = (options?: ShowTabBarOptions | null) => void
|
|
409
|
+
export type HideTabBar = (options?: HideTabBarOptions | null) => void
|
|
410
|
+
export type ShowTabBarRedDot = (options: ShowTabBarRedDotOptions) => void
|
|
411
|
+
export type HideTabBarRedDot = (options: HideTabBarRedDotOptions) => void
|
|
412
|
+
|
|
398
413
|
export interface Uni {
|
|
399
414
|
/**
|
|
400
415
|
* 为 tabBar 某一项的右上角添加文本
|
|
401
416
|
*
|
|
417
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/tabbar.html#settabbarbadge
|
|
418
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbarbadge
|
|
402
419
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbarbadge
|
|
403
420
|
* @uniPlatform {
|
|
404
421
|
* "app": {
|
|
@@ -411,6 +428,11 @@ export interface Uni {
|
|
|
411
428
|
* "osVer": "12.0",
|
|
412
429
|
* "uniVer": "√",
|
|
413
430
|
* "unixVer": "4.11"
|
|
431
|
+
* },
|
|
432
|
+
* "harmony": {
|
|
433
|
+
* "osVer": "3.0",
|
|
434
|
+
* "uniVer": "4.23",
|
|
435
|
+
* "unixVer": "x"
|
|
414
436
|
* }
|
|
415
437
|
* },
|
|
416
438
|
* "mp": {
|
|
@@ -467,6 +489,8 @@ export interface Uni {
|
|
|
467
489
|
/**
|
|
468
490
|
* 移除 tabBar 某一项右上角的文本
|
|
469
491
|
*
|
|
492
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/tabbar.html#removetabbarbadge
|
|
493
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#removetabbarbadge
|
|
470
494
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#removetabbarbadge
|
|
471
495
|
* @uniPlatform {
|
|
472
496
|
* "app": {
|
|
@@ -479,6 +503,11 @@ export interface Uni {
|
|
|
479
503
|
* "osVer": "12.0",
|
|
480
504
|
* "uniVer": "√",
|
|
481
505
|
* "unixVer": "4.11"
|
|
506
|
+
* },
|
|
507
|
+
* "harmony": {
|
|
508
|
+
* "osVer": "3.0",
|
|
509
|
+
* "uniVer": "4.23",
|
|
510
|
+
* "unixVer": "x"
|
|
482
511
|
* }
|
|
483
512
|
* },
|
|
484
513
|
* "mp": {
|
|
@@ -535,6 +564,8 @@ export interface Uni {
|
|
|
535
564
|
/**
|
|
536
565
|
* 动态设置 tabBar 某一项的内容
|
|
537
566
|
*
|
|
567
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/tabbar.html#settabbaritem
|
|
568
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbaritem
|
|
538
569
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbaritem
|
|
539
570
|
* @uniPlatform {
|
|
540
571
|
* "app": {
|
|
@@ -547,6 +578,11 @@ export interface Uni {
|
|
|
547
578
|
* "osVer": "12.0",
|
|
548
579
|
* "uniVer": "√",
|
|
549
580
|
* "unixVer": "4.11"
|
|
581
|
+
* },
|
|
582
|
+
* "harmony": {
|
|
583
|
+
* "osVer": "3.0",
|
|
584
|
+
* "uniVer": "4.23",
|
|
585
|
+
* "unixVer": "x"
|
|
550
586
|
* }
|
|
551
587
|
* },
|
|
552
588
|
* "mp": {
|
|
@@ -603,6 +639,8 @@ export interface Uni {
|
|
|
603
639
|
/**
|
|
604
640
|
* 动态设置 tabBar 的整体样式
|
|
605
641
|
*
|
|
642
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/tabbar.html#settabbarstyle
|
|
643
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbarstyle
|
|
606
644
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbarstyle
|
|
607
645
|
* @uniPlatform {
|
|
608
646
|
* "app": {
|
|
@@ -615,6 +653,11 @@ export interface Uni {
|
|
|
615
653
|
* "osVer": "12.0",
|
|
616
654
|
* "uniVer": "√",
|
|
617
655
|
* "unixVer": "4.11"
|
|
656
|
+
* },
|
|
657
|
+
* "harmony": {
|
|
658
|
+
* "osVer": "3.0",
|
|
659
|
+
* "uniVer": "4.23",
|
|
660
|
+
* "unixVer": "x"
|
|
618
661
|
* }
|
|
619
662
|
* },
|
|
620
663
|
* "mp": {
|
|
@@ -671,6 +714,8 @@ export interface Uni {
|
|
|
671
714
|
/**
|
|
672
715
|
* 隐藏 tabBar
|
|
673
716
|
*
|
|
717
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/tabbar.html#hidetabbar
|
|
718
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#hidetabbar
|
|
674
719
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#hidetabbar
|
|
675
720
|
* @uniPlatform {
|
|
676
721
|
* "app": {
|
|
@@ -683,6 +728,11 @@ export interface Uni {
|
|
|
683
728
|
* "osVer": "12.0",
|
|
684
729
|
* "uniVer": "√",
|
|
685
730
|
* "unixVer": "4.11"
|
|
731
|
+
* },
|
|
732
|
+
* "harmony": {
|
|
733
|
+
* "osVer": "3.0",
|
|
734
|
+
* "uniVer": "4.23",
|
|
735
|
+
* "unixVer": "x"
|
|
686
736
|
* }
|
|
687
737
|
* },
|
|
688
738
|
* "mp": {
|
|
@@ -739,6 +789,8 @@ export interface Uni {
|
|
|
739
789
|
/**
|
|
740
790
|
* 显示 tabBar
|
|
741
791
|
*
|
|
792
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/tabbar.html#showtabbar
|
|
793
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#showtabbar
|
|
742
794
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#showtabbar
|
|
743
795
|
* @uniPlatform {
|
|
744
796
|
* "app": {
|
|
@@ -751,6 +803,11 @@ export interface Uni {
|
|
|
751
803
|
* "osVer": "12.0",
|
|
752
804
|
* "uniVer": "√",
|
|
753
805
|
* "unixVer": "4.11"
|
|
806
|
+
* },
|
|
807
|
+
* "harmony": {
|
|
808
|
+
* "osVer": "3.0",
|
|
809
|
+
* "uniVer": "4.23",
|
|
810
|
+
* "unixVer": "x"
|
|
754
811
|
* }
|
|
755
812
|
* },
|
|
756
813
|
* "mp": {
|
|
@@ -807,6 +864,8 @@ export interface Uni {
|
|
|
807
864
|
/**
|
|
808
865
|
* 显示 tabBar 某一项的右上角的红点
|
|
809
866
|
*
|
|
867
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/tabbar.html#showtabbarreddot
|
|
868
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#showtabbarreddot
|
|
810
869
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#showtabbarreddot
|
|
811
870
|
* @uniPlatform {
|
|
812
871
|
* "app": {
|
|
@@ -819,6 +878,11 @@ export interface Uni {
|
|
|
819
878
|
* "osVer": "12.0",
|
|
820
879
|
* "uniVer": "√",
|
|
821
880
|
* "unixVer": "4.11"
|
|
881
|
+
* },
|
|
882
|
+
* "harmony": {
|
|
883
|
+
* "osVer": "3.0",
|
|
884
|
+
* "uniVer": "4.23",
|
|
885
|
+
* "unixVer": "x"
|
|
822
886
|
* }
|
|
823
887
|
* },
|
|
824
888
|
* "mp": {
|
|
@@ -875,6 +939,8 @@ export interface Uni {
|
|
|
875
939
|
/**
|
|
876
940
|
* 隐藏 tabBar 某一项的右上角的红点
|
|
877
941
|
*
|
|
942
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/tabbar.html#hidetabbarreddot
|
|
943
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#hidetabbarreddot
|
|
878
944
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#hidetabbarreddot
|
|
879
945
|
* @uniPlatform {
|
|
880
946
|
* "app": {
|
|
@@ -887,6 +953,11 @@ export interface Uni {
|
|
|
887
953
|
* "osVer": "12.0",
|
|
888
954
|
* "uniVer": "√",
|
|
889
955
|
* "unixVer": "4.11"
|
|
956
|
+
* },
|
|
957
|
+
* "harmony": {
|
|
958
|
+
* "osVer": "3.0",
|
|
959
|
+
* "uniVer": "4.23",
|
|
960
|
+
* "unixVer": "x"
|
|
890
961
|
* }
|
|
891
962
|
* },
|
|
892
963
|
* "mp": {
|
|
@@ -942,7 +1013,8 @@ export interface Uni {
|
|
|
942
1013
|
): Promise<HideTabBarRedDotSuccess> | null
|
|
943
1014
|
/**
|
|
944
1015
|
* 监听中间按钮的点击事件
|
|
945
|
-
*
|
|
1016
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/tabbar.html#ontabbarmidbuttontap
|
|
1017
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/on-tab-bar-mid-button-tap.html
|
|
946
1018
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/on-tab-bar-mid-button-tap.html
|
|
947
1019
|
* @uniPlatform {
|
|
948
1020
|
* "app": {
|
|
@@ -955,6 +1027,11 @@ export interface Uni {
|
|
|
955
1027
|
* "osVer": "12.0",
|
|
956
1028
|
* "uniVer": "√",
|
|
957
1029
|
* "unixVer": "x"
|
|
1030
|
+
* },
|
|
1031
|
+
* "harmony": {
|
|
1032
|
+
* "osVer": "x",
|
|
1033
|
+
* "uniVer": "x",
|
|
1034
|
+
* "unixVer": "x"
|
|
958
1035
|
* }
|
|
959
1036
|
* },
|
|
960
1037
|
* "mp": {
|