@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
|
@@ -2,25 +2,30 @@ export interface Uni {
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* openAppAuthorizeSetting()
|
|
5
|
-
* @description
|
|
5
|
+
* @description
|
|
6
6
|
* 跳转系统授权管理页
|
|
7
7
|
* @param {OpenAppAuthorizeSettingOptions} options
|
|
8
8
|
* @return {void}
|
|
9
9
|
* @tutorial http://uniapp.dcloud.io/api/system/openappauthorizesetting
|
|
10
|
-
* @uniPlatform
|
|
11
|
-
* {
|
|
12
|
-
* "app": {
|
|
13
|
-
* "android": {
|
|
14
|
-
* "osVer": "4.4",
|
|
15
|
-
* "uniVer": "√",
|
|
16
|
-
* "unixVer": "3.9+"
|
|
17
|
-
* },
|
|
18
|
-
* "ios": {
|
|
19
|
-
* "osVer": "12.0",
|
|
20
|
-
* "uniVer": "√",
|
|
21
|
-
* "unixVer": "4.11"
|
|
22
|
-
* }
|
|
23
|
-
|
|
10
|
+
* @uniPlatform
|
|
11
|
+
* {
|
|
12
|
+
* "app": {
|
|
13
|
+
* "android": {
|
|
14
|
+
* "osVer": "4.4",
|
|
15
|
+
* "uniVer": "√",
|
|
16
|
+
* "unixVer": "3.9+"
|
|
17
|
+
* },
|
|
18
|
+
* "ios": {
|
|
19
|
+
* "osVer": "12.0",
|
|
20
|
+
* "uniVer": "√",
|
|
21
|
+
* "unixVer": "4.11"
|
|
22
|
+
* },
|
|
23
|
+
* "harmony": {
|
|
24
|
+
* "osVer": "3.0",
|
|
25
|
+
* "uniVer": "4.23",
|
|
26
|
+
* "unixVer": "x"
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
24
29
|
* }
|
|
25
30
|
* @example
|
|
26
31
|
```typescript
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
OpenDocumentSuccess as OpenDocumentSuccessOrigin,
|
|
4
|
+
OpenDocumentFail as OpenDocumentFailOrigin,
|
|
5
|
+
OpenDocumentSuccessCallback as OpenDocumentSuccessCallbackOrigin,
|
|
6
|
+
OpenDocumentFailCallback as OpenDocumentFailCallbackOrigin,
|
|
7
|
+
OpenDocumentCompleteCallback as OpenDocumentCompleteCallbackOrigin,
|
|
8
|
+
OpenDocumentSupportedTypes as OpenDocumentSupportedTypesOrigin,
|
|
9
|
+
OpenDocumentOptions as OpenDocumentOptionsOrigin,
|
|
10
|
+
OpenDocument as OpenDocumentOrigin,
|
|
11
|
+
Uni as UniOrigin
|
|
12
|
+
} from './interface'
|
|
13
|
+
|
|
14
|
+
declare global {
|
|
15
|
+
type OpenDocumentSuccess = OpenDocumentSuccessOrigin
|
|
16
|
+
type OpenDocumentFail = OpenDocumentFailOrigin
|
|
17
|
+
type OpenDocumentSuccessCallback = OpenDocumentSuccessCallbackOrigin
|
|
18
|
+
type OpenDocumentFailCallback = OpenDocumentFailCallbackOrigin
|
|
19
|
+
type OpenDocumentCompleteCallback = OpenDocumentCompleteCallbackOrigin
|
|
20
|
+
type OpenDocumentSupportedTypes = OpenDocumentSupportedTypesOrigin
|
|
21
|
+
type OpenDocumentOptions = OpenDocumentOptionsOrigin
|
|
22
|
+
type OpenDocument = OpenDocumentOrigin
|
|
23
|
+
interface Uni extends UniOrigin { }
|
|
24
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* uni.openDocument成功回调参数
|
|
3
|
+
*/
|
|
4
|
+
export type OpenDocumentSuccess = {}
|
|
5
|
+
|
|
6
|
+
export type OpenDocumentFail = {}
|
|
7
|
+
/**
|
|
8
|
+
* uni.openDocument成功回调函数定义
|
|
9
|
+
*/
|
|
10
|
+
export type OpenDocumentSuccessCallback = (res: OpenDocumentSuccess) => void
|
|
11
|
+
/**
|
|
12
|
+
* uni.openDocument失败回调函数定义
|
|
13
|
+
*/
|
|
14
|
+
export type OpenDocumentFailCallback = (res: OpenDocumentFail) => void
|
|
15
|
+
/**
|
|
16
|
+
* uni.openDocument完成回调函数定义
|
|
17
|
+
*/
|
|
18
|
+
export type OpenDocumentCompleteCallback = (res: any) => void
|
|
19
|
+
|
|
20
|
+
export type OpenDocumentSupportedTypes = 'doc' | 'xls' | 'ppt' | 'pdf' | 'docx' | 'xlsx' | 'pptx'
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* uni.openDocument参数定义
|
|
24
|
+
*/
|
|
25
|
+
export type OpenDocumentOptions = {
|
|
26
|
+
/**
|
|
27
|
+
* 文件路径,仅支持本地路径
|
|
28
|
+
*/
|
|
29
|
+
filePath: string,
|
|
30
|
+
/**
|
|
31
|
+
* 文件类型,指定文件类型打开文件,有效值 doc, xls, ppt, pdf, docx, xlsx, pptx
|
|
32
|
+
*/
|
|
33
|
+
fileType?: OpenDocumentSupportedTypes | null,
|
|
34
|
+
/**
|
|
35
|
+
* 接口调用成功的回调函数
|
|
36
|
+
*/
|
|
37
|
+
success?: OpenDocumentSuccessCallback | null,
|
|
38
|
+
/**
|
|
39
|
+
* 接口调用失败的回调函数
|
|
40
|
+
*/
|
|
41
|
+
fail?: OpenDocumentFailCallback | null,
|
|
42
|
+
/**
|
|
43
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
44
|
+
*/
|
|
45
|
+
complete?: OpenDocumentCompleteCallback | null
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
export interface Uni {
|
|
50
|
+
/**
|
|
51
|
+
* 打开文档
|
|
52
|
+
* @uniPlatform {
|
|
53
|
+
* "app": {
|
|
54
|
+
* "harmony": {
|
|
55
|
+
* "osVer": "3.0",
|
|
56
|
+
* "uniVer": "4.23",
|
|
57
|
+
* "unixVer": "x"
|
|
58
|
+
* }
|
|
59
|
+
* },
|
|
60
|
+
* "web": {
|
|
61
|
+
* "uniVer": "x",
|
|
62
|
+
* "unixVer": "x"
|
|
63
|
+
* }
|
|
64
|
+
* }
|
|
65
|
+
* @uniVueVersion 2,3 //支持的vue版本
|
|
66
|
+
*/
|
|
67
|
+
openDocument(options?: OpenDocumentOptions | null): void;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type OpenDocument = (options?: OpenDocumentOptions | null) => void;
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
PageScrollToComplete as PageScrollToCompleteOrigin,
|
|
9
9
|
PageScrollToCompleteCallback as PageScrollToCompleteCallbackOrigin,
|
|
10
10
|
PageScrollToOptions as PageScrollToOptionsOrigin,
|
|
11
|
+
PageScrollTo as PageScrollToOrigin,
|
|
11
12
|
Uni as UniOrigin
|
|
12
13
|
} from './interface'
|
|
13
14
|
|
|
@@ -20,5 +21,6 @@ declare global {
|
|
|
20
21
|
type PageScrollToComplete = PageScrollToCompleteOrigin
|
|
21
22
|
type PageScrollToCompleteCallback = PageScrollToCompleteCallbackOrigin
|
|
22
23
|
type PageScrollToOptions = PageScrollToOptionsOrigin
|
|
24
|
+
type PageScrollTo = PageScrollToOrigin
|
|
23
25
|
interface Uni extends UniOrigin { }
|
|
24
26
|
}
|
|
@@ -37,7 +37,12 @@ export type PageScrollToOptions = {
|
|
|
37
37
|
* "osVer": "12.0",
|
|
38
38
|
* "uniVer": "x",
|
|
39
39
|
* "unixVer": "4.11"
|
|
40
|
-
* }
|
|
40
|
+
* },
|
|
41
|
+
* "harmony": {
|
|
42
|
+
* "osVer": "3.0",
|
|
43
|
+
* "uniVer": "4.23",
|
|
44
|
+
* "unixVer": "x"
|
|
45
|
+
* }
|
|
41
46
|
* },
|
|
42
47
|
* "mp": {
|
|
43
48
|
* "weixin": {
|
|
@@ -70,12 +75,14 @@ export type PageScrollToOptions = {
|
|
|
70
75
|
*/
|
|
71
76
|
complete?: PageScrollToCompleteCallback | null
|
|
72
77
|
}
|
|
73
|
-
|
|
78
|
+
export type PageScrollTo = ( options: PageScrollToOptions ) => Promise<PageScrollToSuccess> | null
|
|
74
79
|
export interface Uni {
|
|
75
80
|
/**
|
|
76
81
|
* 将页面滚动到目标位置
|
|
77
82
|
*
|
|
78
|
-
* @tutorial https://
|
|
83
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/scroll.html#pagescrollto
|
|
84
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/page-scroll-to.html#pagescrollto
|
|
85
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/page-scroll-to.html#pagescrollto
|
|
79
86
|
* @uniPlatform {
|
|
80
87
|
* "app": {
|
|
81
88
|
* "android": {
|
|
@@ -87,6 +94,11 @@ export interface Uni {
|
|
|
87
94
|
* "osVer": "12.0",
|
|
88
95
|
* "uniVer": "√",
|
|
89
96
|
* "unixVer": "4.11"
|
|
97
|
+
* },
|
|
98
|
+
* "harmony": {
|
|
99
|
+
* "osVer": "3.0",
|
|
100
|
+
* "uniVer": "4.23",
|
|
101
|
+
* "unixVer": "x"
|
|
90
102
|
* }
|
|
91
103
|
* },
|
|
92
104
|
* "mp": {
|
|
@@ -137,7 +149,5 @@ export interface Uni {
|
|
|
137
149
|
* }
|
|
138
150
|
* }
|
|
139
151
|
*/
|
|
140
|
-
pageScrollTo
|
|
141
|
-
options: PageScrollToOptions,
|
|
142
|
-
): Promise<PageScrollToSuccess> | null
|
|
152
|
+
pageScrollTo: PageScrollTo
|
|
143
153
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RequestPaymentFailImpl as RequestPaymentFailImplement } from './unierror.uts'
|
|
2
|
-
|
|
3
|
-
export type RequestPaymentFailImpl = RequestPaymentFailImplement
|
|
4
|
-
export interface UniPaymentProvider extends Uni{}
|
|
1
|
+
import { RequestPaymentFailImpl as RequestPaymentFailImplement } from './unierror.uts'
|
|
2
|
+
|
|
3
|
+
export type RequestPaymentFailImpl = RequestPaymentFailImplement
|
|
4
|
+
export interface UniPaymentProvider extends Uni{}
|
|
5
5
|
export interface Uni {
|
|
6
6
|
/**
|
|
7
7
|
* @description 请求支付
|
|
@@ -16,7 +16,9 @@ export interface Uni {
|
|
|
16
16
|
* }
|
|
17
17
|
* });
|
|
18
18
|
* ```
|
|
19
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/plugins/payment.html
|
|
19
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/plugins/payment.html#requestpayment
|
|
20
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/request-payment.html#requestpayment
|
|
21
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/request-payment.html#requestpayment
|
|
20
22
|
* @uniPlatform {
|
|
21
23
|
* "app": {
|
|
22
24
|
* "android": {
|
|
@@ -28,7 +30,12 @@ export interface Uni {
|
|
|
28
30
|
* "osVer": "9.0",
|
|
29
31
|
* "uniVer": "√",
|
|
30
32
|
* "unixVer": "4.18"
|
|
31
|
-
* }
|
|
33
|
+
* },
|
|
34
|
+
* "harmony": {
|
|
35
|
+
* "osVer": "x",
|
|
36
|
+
* "uniVer": "x",
|
|
37
|
+
* "unixVer": "x"
|
|
38
|
+
* }
|
|
32
39
|
* },
|
|
33
40
|
* "web": {
|
|
34
41
|
* "uniVer": "x",
|
|
@@ -46,9 +53,9 @@ export interface Uni {
|
|
|
46
53
|
* - 700601 用户中途取消。
|
|
47
54
|
* - 700602 网络连接出错。
|
|
48
55
|
* - 700603 支付结果未知(有可能已经支付成功),请查询商家订单列表中订单的支付状态。
|
|
49
|
-
* - 700000 其它支付错误。
|
|
50
|
-
* - 700604 微信没有安装。
|
|
51
|
-
* - 700800 没有配置对应的URL Scheme。
|
|
56
|
+
* - 700000 其它支付错误。
|
|
57
|
+
* - 700604 微信没有安装。
|
|
58
|
+
* - 700800 没有配置对应的URL Scheme。
|
|
52
59
|
* - 700801 没有配置对应的universal Link。
|
|
53
60
|
*/
|
|
54
61
|
export type RequestPaymentErrorCode = 700600 | 701100 | 701110 | 700601 | 700602 | 700603 | 700000 | 700604 | 700800 | 700801;
|
|
@@ -86,4 +93,4 @@ export type RequestPaymentOptions = {
|
|
|
86
93
|
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
87
94
|
*/
|
|
88
95
|
complete ?: RequestPaymentCompleteCallback | null
|
|
89
|
-
};
|
|
96
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export interface UniPaymentAlipayProvider extends UniPaymentProvider{}
|
|
@@ -80,10 +80,12 @@ export type ShowToastOptions = {
|
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* uni.showToast函数定义
|
|
83
|
-
* 弹出toast
|
|
84
|
-
*
|
|
85
|
-
* @param {ShowToastOptions} options
|
|
86
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/ui/prompt.html#showtoast
|
|
83
|
+
* 弹出toast
|
|
84
|
+
*
|
|
85
|
+
* @param {ShowToastOptions} options
|
|
86
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showtoast
|
|
87
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showtoast
|
|
88
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showtoast
|
|
87
89
|
* @uniPlatform {
|
|
88
90
|
* "app": {
|
|
89
91
|
* "android": {
|
|
@@ -95,7 +97,12 @@ export type ShowToastOptions = {
|
|
|
95
97
|
* "osVer": "12.0",
|
|
96
98
|
* "uniVer": "√",
|
|
97
99
|
* "unixVer": "4.11"
|
|
98
|
-
* }
|
|
100
|
+
* },
|
|
101
|
+
* "harmony": {
|
|
102
|
+
* "osVer": "3.0",
|
|
103
|
+
* "uniVer": "4.23",
|
|
104
|
+
* "unixVer": "x"
|
|
105
|
+
* }
|
|
99
106
|
* },
|
|
100
107
|
* "web": {
|
|
101
108
|
* "uniVer": "√",
|
|
@@ -108,8 +115,9 @@ export type ShowToast = (options: ShowToastOptions) => void
|
|
|
108
115
|
/**
|
|
109
116
|
* uni.hideToast函数定义
|
|
110
117
|
* 隐藏toast
|
|
111
|
-
*
|
|
112
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/ui/prompt.html#hidetoast
|
|
118
|
+
*
|
|
119
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#hidetoast
|
|
120
|
+
* @tutorial-uni-app https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hidetoast
|
|
113
121
|
* @uniPlatform {
|
|
114
122
|
* "app": {
|
|
115
123
|
* "android": {
|
|
@@ -121,7 +129,12 @@ export type ShowToast = (options: ShowToastOptions) => void
|
|
|
121
129
|
* "osVer": "12.0",
|
|
122
130
|
* "uniVer": "√",
|
|
123
131
|
* "unixVer": "4.11"
|
|
124
|
-
* }
|
|
132
|
+
* },
|
|
133
|
+
* "harmony": {
|
|
134
|
+
* "osVer": "3.0",
|
|
135
|
+
* "uniVer": "4.23",
|
|
136
|
+
* "unixVer": "x"
|
|
137
|
+
* }
|
|
125
138
|
* },
|
|
126
139
|
* "web": {
|
|
127
140
|
* "uniVer": "√",
|
|
@@ -185,9 +198,11 @@ export type ShowLoadingOptions = {
|
|
|
185
198
|
/**
|
|
186
199
|
* uni.showLoading函数定义
|
|
187
200
|
* 弹出loading
|
|
188
|
-
*
|
|
189
|
-
* @param {ShowLoadingOptions} options
|
|
190
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/ui/prompt.html#showloading
|
|
201
|
+
*
|
|
202
|
+
* @param {ShowLoadingOptions} options
|
|
203
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showloading
|
|
204
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showloading
|
|
205
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showloading
|
|
191
206
|
* @uniPlatform {
|
|
192
207
|
* "app": {
|
|
193
208
|
* "android": {
|
|
@@ -199,7 +214,12 @@ export type ShowLoadingOptions = {
|
|
|
199
214
|
* "osVer": "12.0",
|
|
200
215
|
* "uniVer": "√",
|
|
201
216
|
* "unixVer": "4.11"
|
|
202
|
-
* }
|
|
217
|
+
* },
|
|
218
|
+
* "harmony": {
|
|
219
|
+
* "osVer": "3.0",
|
|
220
|
+
* "uniVer": "4.23",
|
|
221
|
+
* "unixVer": "x"
|
|
222
|
+
* }
|
|
203
223
|
* },
|
|
204
224
|
* "web": {
|
|
205
225
|
* "uniVer": "√",
|
|
@@ -212,8 +232,9 @@ export type ShowLoading = (options: ShowLoadingOptions) => void
|
|
|
212
232
|
/**
|
|
213
233
|
* uni.hideLoading函数定义
|
|
214
234
|
* 隐藏loading
|
|
215
|
-
*
|
|
216
|
-
* @tutorial https://
|
|
235
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#hideloading
|
|
236
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hideloading
|
|
237
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hideloading
|
|
217
238
|
* @uniPlatform {
|
|
218
239
|
* "app": {
|
|
219
240
|
* "android": {
|
|
@@ -225,14 +246,19 @@ export type ShowLoading = (options: ShowLoadingOptions) => void
|
|
|
225
246
|
* "osVer": "12.0",
|
|
226
247
|
* "uniVer": "√",
|
|
227
248
|
* "unixVer": "4.11"
|
|
228
|
-
* }
|
|
249
|
+
* },
|
|
250
|
+
* "harmony": {
|
|
251
|
+
* "osVer": "3.0",
|
|
252
|
+
* "uniVer": "4.23",
|
|
253
|
+
* "unixVer": "x"
|
|
254
|
+
* }
|
|
229
255
|
* },
|
|
230
256
|
* "web": {
|
|
231
257
|
* "uniVer": "√",
|
|
232
258
|
* "unixVer": "4.0"
|
|
233
259
|
* }
|
|
234
260
|
* }
|
|
235
|
-
*
|
|
261
|
+
*
|
|
236
262
|
*/
|
|
237
263
|
export type HideLoading = () => void
|
|
238
264
|
|
|
@@ -329,11 +355,13 @@ export type ShowModalOptions = {
|
|
|
329
355
|
|
|
330
356
|
/**
|
|
331
357
|
* uni.showModal 函数定义
|
|
332
|
-
*
|
|
358
|
+
*
|
|
333
359
|
* 弹出modal
|
|
334
|
-
*
|
|
335
|
-
* @param {ShowModalOptions} options
|
|
336
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/ui/prompt.html#showmodal
|
|
360
|
+
*
|
|
361
|
+
* @param {ShowModalOptions} options
|
|
362
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showmodal
|
|
363
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showmodal
|
|
364
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showmodal
|
|
337
365
|
* @uniPlatform {
|
|
338
366
|
* "app": {
|
|
339
367
|
* "android": {
|
|
@@ -345,7 +373,12 @@ export type ShowModalOptions = {
|
|
|
345
373
|
* "osVer": "12.0",
|
|
346
374
|
* "uniVer": "√",
|
|
347
375
|
* "unixVer": "4.11"
|
|
348
|
-
* }
|
|
376
|
+
* },
|
|
377
|
+
* "harmony": {
|
|
378
|
+
* "osVer": "3.0",
|
|
379
|
+
* "uniVer": "4.23",
|
|
380
|
+
* "unixVer": "x"
|
|
381
|
+
* }
|
|
349
382
|
* },
|
|
350
383
|
* "web": {
|
|
351
384
|
* "uniVer": "√",
|
|
@@ -442,11 +475,13 @@ export type ShowActionSheetOptions = {
|
|
|
442
475
|
|
|
443
476
|
/**
|
|
444
477
|
* uni.showActionSheet函数定义
|
|
445
|
-
*
|
|
478
|
+
*
|
|
446
479
|
* 弹出actionSheet
|
|
447
|
-
*
|
|
448
|
-
* @param {ShowActionSheetOptions} options
|
|
449
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/ui/prompt.html#showactionsheet
|
|
480
|
+
*
|
|
481
|
+
* @param {ShowActionSheetOptions} options
|
|
482
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showactionsheet
|
|
483
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showactionsheet
|
|
484
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showactionsheet
|
|
450
485
|
* @uniPlatform {
|
|
451
486
|
* "app": {
|
|
452
487
|
* "android": {
|
|
@@ -458,7 +493,12 @@ export type ShowActionSheetOptions = {
|
|
|
458
493
|
* "osVer": "12.0",
|
|
459
494
|
* "uniVer": "√",
|
|
460
495
|
* "unixVer": "4.11"
|
|
461
|
-
* }
|
|
496
|
+
* },
|
|
497
|
+
* "harmony": {
|
|
498
|
+
* "osVer": "3.0",
|
|
499
|
+
* "uniVer": "4.23",
|
|
500
|
+
* "unixVer": "x"
|
|
501
|
+
* }
|
|
462
502
|
* },
|
|
463
503
|
* "web": {
|
|
464
504
|
* "uniVer": "√",
|
|
@@ -472,7 +512,6 @@ export type ShowActionSheet = (options: ShowActionSheetOptions) => void
|
|
|
472
512
|
export interface Uni {
|
|
473
513
|
/**
|
|
474
514
|
* @description 显示消息提示框
|
|
475
|
-
* @param {ShowToastOptions} option
|
|
476
515
|
* @example
|
|
477
516
|
* ```typescript
|
|
478
517
|
* uni.showToast({
|
|
@@ -483,7 +522,9 @@ export interface Uni {
|
|
|
483
522
|
* @remark
|
|
484
523
|
* - showLoading 和 showToast 同时只能显示一个
|
|
485
524
|
* - showToast 应与 hideToast 配对使用
|
|
486
|
-
|
|
525
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showtoast
|
|
526
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showtoast
|
|
527
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showtoast
|
|
487
528
|
* @uniPlatform {
|
|
488
529
|
* "app": {
|
|
489
530
|
* "android": {
|
|
@@ -495,7 +536,12 @@ export interface Uni {
|
|
|
495
536
|
* "osVer": "12.0",
|
|
496
537
|
* "uniVer": "√",
|
|
497
538
|
* "unixVer": "4.11"
|
|
498
|
-
* }
|
|
539
|
+
* },
|
|
540
|
+
* "harmony": {
|
|
541
|
+
* "osVer": "3.0",
|
|
542
|
+
* "uniVer": "4.23",
|
|
543
|
+
* "unixVer": "x"
|
|
544
|
+
* }
|
|
499
545
|
* },
|
|
500
546
|
* "web": {
|
|
501
547
|
* "uniVer": "√",
|
|
@@ -510,7 +556,9 @@ export interface Uni {
|
|
|
510
556
|
* ```typescript
|
|
511
557
|
* uni.hideToast();
|
|
512
558
|
* ```
|
|
513
|
-
|
|
559
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#hidetoast
|
|
560
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hidetoast
|
|
561
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hidetoast
|
|
514
562
|
* @uniPlatform {
|
|
515
563
|
* "app": {
|
|
516
564
|
* "android": {
|
|
@@ -522,7 +570,12 @@ export interface Uni {
|
|
|
522
570
|
* "osVer": "12.0",
|
|
523
571
|
* "uniVer": "√",
|
|
524
572
|
* "unixVer": "4.11"
|
|
525
|
-
* }
|
|
573
|
+
* },
|
|
574
|
+
* "harmony": {
|
|
575
|
+
* "osVer": "3.0",
|
|
576
|
+
* "uniVer": "4.23",
|
|
577
|
+
* "unixVer": "x"
|
|
578
|
+
* }
|
|
526
579
|
* },
|
|
527
580
|
* "web": {
|
|
528
581
|
* "uniVer": "√",
|
|
@@ -533,7 +586,6 @@ export interface Uni {
|
|
|
533
586
|
hideToast(): void,
|
|
534
587
|
/**
|
|
535
588
|
* @description 显示 loading 提示框, 需主动调用 uni.hideLoading 才能关闭提示框。
|
|
536
|
-
* @param {ShowLoadingOptions} option
|
|
537
589
|
* @example
|
|
538
590
|
* ```typescript
|
|
539
591
|
* uni.showLoading({
|
|
@@ -543,7 +595,9 @@ export interface Uni {
|
|
|
543
595
|
* @remark
|
|
544
596
|
* - showLoading 和 showToast 同时只能显示一个
|
|
545
597
|
* - showToast 应与 hideToast 配对使用
|
|
546
|
-
|
|
598
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showloading
|
|
599
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showloading
|
|
600
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showloading
|
|
547
601
|
* @uniPlatform {
|
|
548
602
|
* "app": {
|
|
549
603
|
* "android": {
|
|
@@ -555,7 +609,12 @@ export interface Uni {
|
|
|
555
609
|
* "osVer": "12.0",
|
|
556
610
|
* "uniVer": "√",
|
|
557
611
|
* "unixVer": "4.11"
|
|
558
|
-
* }
|
|
612
|
+
* },
|
|
613
|
+
* "harmony": {
|
|
614
|
+
* "osVer": "3.0",
|
|
615
|
+
* "uniVer": "4.23",
|
|
616
|
+
* "unixVer": "x"
|
|
617
|
+
* }
|
|
559
618
|
* },
|
|
560
619
|
* "web": {
|
|
561
620
|
* "uniVer": "√",
|
|
@@ -577,7 +636,9 @@ export interface Uni {
|
|
|
577
636
|
* }, 2000);
|
|
578
637
|
*
|
|
579
638
|
* ```
|
|
580
|
-
|
|
639
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#hideloading
|
|
640
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hideloading
|
|
641
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hideloading
|
|
581
642
|
* @uniPlatform {
|
|
582
643
|
* "app": {
|
|
583
644
|
* "android": {
|
|
@@ -589,7 +650,12 @@ export interface Uni {
|
|
|
589
650
|
* "osVer": "12.0",
|
|
590
651
|
* "uniVer": "√",
|
|
591
652
|
* "unixVer": "4.11"
|
|
592
|
-
* }
|
|
653
|
+
* },
|
|
654
|
+
* "harmony": {
|
|
655
|
+
* "osVer": "3.0",
|
|
656
|
+
* "uniVer": "4.23",
|
|
657
|
+
* "unixVer": "x"
|
|
658
|
+
* }
|
|
593
659
|
* },
|
|
594
660
|
* "web": {
|
|
595
661
|
* "uniVer": "√",
|
|
@@ -600,7 +666,6 @@ export interface Uni {
|
|
|
600
666
|
hideLoading():void,
|
|
601
667
|
/**
|
|
602
668
|
* @description 显示模态弹窗,可以只有一个确定按钮,也可以同时有确定和取消按钮。类似于一个API整合了 html 中:alert、confirm。
|
|
603
|
-
* @param {ShowModalOptions} option
|
|
604
669
|
* @example
|
|
605
670
|
* ```typescript
|
|
606
671
|
* uni.showModal({
|
|
@@ -617,7 +682,9 @@ export interface Uni {
|
|
|
617
682
|
*
|
|
618
683
|
*
|
|
619
684
|
* ```
|
|
620
|
-
|
|
685
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showmodal
|
|
686
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showmodal
|
|
687
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showmodal
|
|
621
688
|
* @uniPlatform {
|
|
622
689
|
* "app": {
|
|
623
690
|
* "android": {
|
|
@@ -629,7 +696,12 @@ export interface Uni {
|
|
|
629
696
|
* "osVer": "12.0",
|
|
630
697
|
* "uniVer": "√",
|
|
631
698
|
* "unixVer": "4.11"
|
|
632
|
-
* }
|
|
699
|
+
* },
|
|
700
|
+
* "harmony": {
|
|
701
|
+
* "osVer": "3.0",
|
|
702
|
+
* "uniVer": "4.23",
|
|
703
|
+
* "unixVer": "x"
|
|
704
|
+
* }
|
|
633
705
|
* },
|
|
634
706
|
* "web": {
|
|
635
707
|
* "uniVer": "√",
|
|
@@ -640,7 +712,6 @@ export interface Uni {
|
|
|
640
712
|
showModal(options: ShowModalOptions) : void,
|
|
641
713
|
/**
|
|
642
714
|
* @description 从底部向上弹出操作菜单
|
|
643
|
-
* @param {ShowActionSheetOptions} option
|
|
644
715
|
* @example
|
|
645
716
|
* ```typescript
|
|
646
717
|
* uni.showActionSheet({
|
|
@@ -653,7 +724,9 @@ export interface Uni {
|
|
|
653
724
|
* }
|
|
654
725
|
* });
|
|
655
726
|
* ```
|
|
656
|
-
|
|
727
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showactionsheet
|
|
728
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showactionsheet
|
|
729
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showactionsheet
|
|
657
730
|
* @uniPlatform {
|
|
658
731
|
* "app": {
|
|
659
732
|
* "android": {
|
|
@@ -665,7 +738,12 @@ export interface Uni {
|
|
|
665
738
|
* "osVer": "12.0",
|
|
666
739
|
* "uniVer": "√",
|
|
667
740
|
* "unixVer": "4.11"
|
|
668
|
-
* }
|
|
741
|
+
* },
|
|
742
|
+
* "harmony": {
|
|
743
|
+
* "osVer": "3.0",
|
|
744
|
+
* "uniVer": "4.23",
|
|
745
|
+
* "unixVer": "x"
|
|
746
|
+
* }
|
|
669
747
|
* },
|
|
670
748
|
* "web": {
|
|
671
749
|
* "uniVer": "√",
|