@dcloudio/uni-app-x 0.7.13 → 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/app.d.ts +5 -6
- package/types/index.d.ts +1 -1
- package/types/native/CanvasRenderingContext2D.d.ts +378 -0
- package/types/native/IUniElement.d.ts +40 -12
- package/types/native/Path2D.d.ts +74 -0
- package/types/native/UniApp.d.ts +17 -1
- package/types/native/UniCanvasElement.d.ts +9 -0
- package/types/native/UniEvent.d.ts +30 -0
- package/types/native/UniNativePage.d.ts +31 -1
- package/types/native/UniPageManager.d.ts +4 -1
- package/types/native/UniProvider.d.ts +14 -0
- package/types/native/UniResizeObserver.d.ts +10 -10
- package/types/native/UniScrollEvent.d.ts +1 -1
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +24 -2
- package/types/native/UniSwiperChangeEvent.d.ts +24 -2
- package/types/native/UniSwiperTransitionEvent.d.ts +2 -2
- package/types/native/UniWebViewErrorEvent.d.ts +3 -3
- package/types/native/UniWebViewLoadEvent.d.ts +2 -2
- package/types/native/UniWebViewLoadingEvent.d.ts +2 -2
- package/types/native/UniWebViewMessageEvent.d.ts +1 -1
- package/types/native/global.d.ts +40 -9
- package/types/native/index.d.ts +4 -0
- package/types/page.d.ts +85 -0
- package/types/shim-uts-basic.d.ts +4495 -0
- package/types/uni/env/index.d.ts +21 -0
- package/types/uni/global.d.ts +1 -0
- package/types/uni/index.d.ts +2 -1
- package/types/uni/uts-plugin-api/global.d.ts +14 -2
- package/types/uni/uts-plugin-api/index.d.ts +14 -2
- 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 +30 -2
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +12 -3
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +6 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +64 -8
- 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 +111 -27
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +465 -45
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +651 -115
- 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 +12 -5
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +11 -5
- 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 +176 -72
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1728 -59
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +123 -16
- 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-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -0
- 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 +459 -67
- 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 +909 -101
- 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 +26 -16
- 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 +251 -42
- 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 +114 -45
- 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 +167 -7
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +516 -0
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +320 -83
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +4 -4
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +2 -2
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +48 -39
- 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 -394
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +19 -15
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +132 -15
- package/types/uni/uts-plugin-extend/README.md +3 -0
- package/types/uni/uts-plugin-extend/global.d.ts +13 -0
- package/types/uni/uts-plugin-extend/index.d.ts +13 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -0
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -0
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -0
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -0
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -0
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -0
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +486 -0
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -0
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -0
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -0
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -0
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -0
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -0
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -0
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -0
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -0
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -0
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -0
- package/types/uni-cloud/index.d.ts +4 -0
- package/types/uni-cloud/interface.d.ts +163 -20
- package/types/vue/CheckboxGroupChangeEvent.d.ts +10 -13
- package/types/vue/LifeCycle.d.ts +32 -32
- package/types/vue/PickerViewChangeEvent.d.ts +10 -13
- package/types/vue/ProgressActiveendEvent.d.ts +9 -11
- package/types/vue/RadioGroupChangeEvent.d.ts +10 -13
- package/types/vue/SliderChangeEvent.d.ts +9 -10
- package/types/vue/SwitchChangeEvent.d.ts +11 -13
- package/types/vue/UniCloudDBElement.d.ts +72 -75
- package/types/vue/UniFormElement.d.ts +17 -19
- package/types/vue/UniNavigatorElement.d.ts +1 -2
- package/types/vue/global.d.ts +190 -0
- package/types/vue/index.d.ts +10 -11
- package/types/vue-global/index.d.ts +1 -0
- 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 -643
|
@@ -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
|
|
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": {
|
|
@@ -27,8 +29,13 @@ export interface Uni {
|
|
|
27
29
|
* "ios": {
|
|
28
30
|
* "osVer": "9.0",
|
|
29
31
|
* "uniVer": "√",
|
|
30
|
-
* "unixVer": "
|
|
31
|
-
* }
|
|
32
|
+
* "unixVer": "4.18"
|
|
33
|
+
* },
|
|
34
|
+
* "harmony": {
|
|
35
|
+
* "osVer": "x",
|
|
36
|
+
* "uniVer": "x",
|
|
37
|
+
* "unixVer": "x"
|
|
38
|
+
* }
|
|
32
39
|
* },
|
|
33
40
|
* "web": {
|
|
34
41
|
* "uniVer": "x",
|
|
@@ -40,15 +47,18 @@ export interface Uni {
|
|
|
40
47
|
}
|
|
41
48
|
/**
|
|
42
49
|
* 错误码
|
|
43
|
-
* -
|
|
44
|
-
* -
|
|
45
|
-
* -
|
|
46
|
-
* -
|
|
47
|
-
* -
|
|
48
|
-
* -
|
|
49
|
-
* -
|
|
50
|
+
* - 700600 正在处理中,支付结果未知(有可能已经支付成功),请查询商家订单列表中订单的支付状态
|
|
51
|
+
* - 701100 订单支付失败。
|
|
52
|
+
* - 701110 重复请求。
|
|
53
|
+
* - 700601 用户中途取消。
|
|
54
|
+
* - 700602 网络连接出错。
|
|
55
|
+
* - 700603 支付结果未知(有可能已经支付成功),请查询商家订单列表中订单的支付状态。
|
|
56
|
+
* - 700000 其它支付错误。
|
|
57
|
+
* - 700604 微信没有安装。
|
|
58
|
+
* - 700800 没有配置对应的URL Scheme。
|
|
59
|
+
* - 700801 没有配置对应的universal Link。
|
|
50
60
|
*/
|
|
51
|
-
export type RequestPaymentErrorCode =
|
|
61
|
+
export type RequestPaymentErrorCode = 700600 | 701100 | 701110 | 700601 | 700602 | 700603 | 700000 | 700604 | 700800 | 700801;
|
|
52
62
|
|
|
53
63
|
export type RequestPayment = (options : RequestPaymentOptions) => void;
|
|
54
64
|
export type RequestPaymentSuccess = {
|
|
@@ -83,4 +93,4 @@ export type RequestPaymentOptions = {
|
|
|
83
93
|
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
84
94
|
*/
|
|
85
95
|
complete ?: RequestPaymentCompleteCallback | null
|
|
86
|
-
};
|
|
96
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export interface UniPaymentAlipayProvider extends UniPaymentProvider{}
|