@dcloudio/uni-app-x 0.7.58 → 0.7.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -2
- package/types/index.d.ts +1 -0
- package/types/native/CSSStyleDeclaration.d.ts +31 -6
- package/types/native/DOMRect.d.ts +60 -10
- package/types/native/IUniElement.d.ts +459 -0
- package/types/native/UniElement.d.ts +3 -2
- package/types/native/UniPage.d.ts +2 -2
- package/types/native/UniWebViewContentHeightChangeEvent.d.ts +31 -0
- package/types/native/UniWebViewElement.d.ts +3 -1
- package/types/native/global.d.ts +8 -0
- package/types/native/index.d.ts +1 -0
- package/types/uni/env/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +554 -0
- package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +224 -0
- package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +77 -0
- package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +365 -0
- package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +77 -0
- package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +972 -0
- package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +410 -0
- package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +459 -0
- package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +203 -0
- package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +2613 -0
- package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +152 -0
- package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +61 -0
- package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +548 -0
- package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +137 -0
- package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +1380 -0
- package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +76 -0
- package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +338 -0
- package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +102 -0
- package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +384 -0
- package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +5316 -0
- package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +35 -0
- package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +616 -0
- package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +2157 -0
- package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +895 -0
- package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +1755 -0
- package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +82 -0
- package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +295 -0
- package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +299 -0
- package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +1764 -0
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +1 -0
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +1 -0
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +736 -0
- package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +274 -0
- package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +198 -0
- package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +634 -0
- package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +980 -0
- package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +5550 -0
- package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +501 -0
- package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +83 -0
- package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +169 -0
- package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +102 -0
- package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +580 -0
- package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +100 -0
- package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +2980 -0
- package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +190 -0
- package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +1002 -0
- package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +3620 -0
- package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +1592 -0
- package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +1 -0
- package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +254 -0
- package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +112 -0
- package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +153 -0
- package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +833 -0
- package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +1 -0
- package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +1 -0
- package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +3 -0
- package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +518 -0
- package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +560 -0
- package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +2607 -0
- package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +189 -0
- package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +710 -0
- package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +2695 -0
- package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +80 -0
- package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +130 -0
- package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +719 -0
- package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +277 -0
- package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +1020 -0
- package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +1148 -0
- package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +1059 -0
- package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +1660 -0
- package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +1941 -0
- package/types/uni/uts-plugin-api/global.d.ts +3 -0
- package/types/uni/uts-plugin-api/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +16 -6
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +45 -0
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +238 -233
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +28 -1
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +0 -9
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +67 -239
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +24 -4
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +293 -179
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +118 -78
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3932 -3514
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +778 -290
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +2254 -1281
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +36 -0
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +180 -0
- package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +126 -67
- package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +726 -0
- package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +89 -0
- package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +212 -0
- package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +2359 -0
- package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +960 -0
- package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +204 -0
- package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +730 -0
- package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +221 -0
- package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +935 -0
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -0
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +203 -1
- package/types/uni-cloud/interface.d.ts +229 -0
- package/types/vite.d.ts +269 -0
|
@@ -1,10 +1,371 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* uni.openDocument成功回调参数
|
|
3
|
-
*/
|
|
4
|
-
export type OpenDocumentSuccess = {}
|
|
5
|
-
|
|
6
|
-
export type OpenDocumentFail =
|
|
7
|
-
|
|
1
|
+
/**
|
|
2
|
+
* uni.openDocument成功回调参数
|
|
3
|
+
*/
|
|
4
|
+
export type OpenDocumentSuccess = {}
|
|
5
|
+
|
|
6
|
+
export type OpenDocumentFail = IOpenDocumentError;
|
|
7
|
+
|
|
8
|
+
export type OpenDocumentErrorCode =
|
|
9
|
+
/**
|
|
10
|
+
* 路径无效
|
|
11
|
+
* @uniPlatform {
|
|
12
|
+
* "app": {
|
|
13
|
+
* "android": {
|
|
14
|
+
* "osVer": "5.0",
|
|
15
|
+
* "uniVer": "x",
|
|
16
|
+
* "unixVer": "4.64",
|
|
17
|
+
* "unixUtsPlugin": "4.64"
|
|
18
|
+
* },
|
|
19
|
+
* "ios": {
|
|
20
|
+
* "osVer": "12.0",
|
|
21
|
+
* "uniVer": "x",
|
|
22
|
+
* "unixVer": "4.64",
|
|
23
|
+
* "unixUtsPlugin": "4.64"
|
|
24
|
+
* },
|
|
25
|
+
* "harmony": {
|
|
26
|
+
* "osVer": "5.0.0",
|
|
27
|
+
* "uniVer": "4.64",
|
|
28
|
+
* "unixVer": "4.64"
|
|
29
|
+
* }
|
|
30
|
+
* },
|
|
31
|
+
* "web": {
|
|
32
|
+
* "uniVer": "x",
|
|
33
|
+
* "unixVer": "x"
|
|
34
|
+
* },
|
|
35
|
+
* "mp":{
|
|
36
|
+
* "weixin": {
|
|
37
|
+
* "hostVer": "√",
|
|
38
|
+
* "uniVer": "√",
|
|
39
|
+
* "unixVer": "4.41"
|
|
40
|
+
* },
|
|
41
|
+
* "alipay": {
|
|
42
|
+
* "hostVer": "x",
|
|
43
|
+
* "uniVer": "x",
|
|
44
|
+
* "unixVer": "x"
|
|
45
|
+
* },
|
|
46
|
+
* "baidu": {
|
|
47
|
+
* "hostVer": "√",
|
|
48
|
+
* "uniVer": "√",
|
|
49
|
+
* "unixVer": "x"
|
|
50
|
+
* },
|
|
51
|
+
* "toutiao": {
|
|
52
|
+
* "hostVer": "x",
|
|
53
|
+
* "uniVer": "x",
|
|
54
|
+
* "unixVer": "x"
|
|
55
|
+
* },
|
|
56
|
+
* "lark": {
|
|
57
|
+
* "hostVer": "x",
|
|
58
|
+
* "uniVer": "x",
|
|
59
|
+
* "unixVer": "x"
|
|
60
|
+
* },
|
|
61
|
+
* "qq": {
|
|
62
|
+
* "hostVer": "√",
|
|
63
|
+
* "uniVer": "√",
|
|
64
|
+
* "unixVer": "x"
|
|
65
|
+
* },
|
|
66
|
+
* "kuaishou": {
|
|
67
|
+
* "hostVer": "√",
|
|
68
|
+
* "uniVer": "√",
|
|
69
|
+
* "unixVer": "x"
|
|
70
|
+
* },
|
|
71
|
+
* "jd": {
|
|
72
|
+
* "hostVer": "x",
|
|
73
|
+
* "uniVer": "x",
|
|
74
|
+
* "unixVer": "x"
|
|
75
|
+
* }
|
|
76
|
+
* }
|
|
77
|
+
* }
|
|
78
|
+
*/
|
|
79
|
+
1300601 |
|
|
80
|
+
/**
|
|
81
|
+
* 文件不存在
|
|
82
|
+
* @uniPlatform {
|
|
83
|
+
* "app": {
|
|
84
|
+
* "android": {
|
|
85
|
+
* "osVer": "5.0",
|
|
86
|
+
* "uniVer": "x",
|
|
87
|
+
* "unixVer": "4.64",
|
|
88
|
+
* "unixUtsPlugin": "4.64"
|
|
89
|
+
* },
|
|
90
|
+
* "ios": {
|
|
91
|
+
* "osVer": "12.0",
|
|
92
|
+
* "uniVer": "x",
|
|
93
|
+
* "unixVer": "4.64",
|
|
94
|
+
* "unixUtsPlugin": "4.64"
|
|
95
|
+
* },
|
|
96
|
+
* "harmony": {
|
|
97
|
+
* "osVer": "5.0.0",
|
|
98
|
+
* "uniVer": "4.64",
|
|
99
|
+
* "unixVer": "4.64"
|
|
100
|
+
* }
|
|
101
|
+
* },
|
|
102
|
+
* "web": {
|
|
103
|
+
* "uniVer": "x",
|
|
104
|
+
* "unixVer": "x"
|
|
105
|
+
* },
|
|
106
|
+
* "mp":{
|
|
107
|
+
* "weixin": {
|
|
108
|
+
* "hostVer": "√",
|
|
109
|
+
* "uniVer": "√",
|
|
110
|
+
* "unixVer": "4.41"
|
|
111
|
+
* },
|
|
112
|
+
* "alipay": {
|
|
113
|
+
* "hostVer": "x",
|
|
114
|
+
* "uniVer": "x",
|
|
115
|
+
* "unixVer": "x"
|
|
116
|
+
* },
|
|
117
|
+
* "baidu": {
|
|
118
|
+
* "hostVer": "√",
|
|
119
|
+
* "uniVer": "√",
|
|
120
|
+
* "unixVer": "x"
|
|
121
|
+
* },
|
|
122
|
+
* "toutiao": {
|
|
123
|
+
* "hostVer": "x",
|
|
124
|
+
* "uniVer": "x",
|
|
125
|
+
* "unixVer": "x"
|
|
126
|
+
* },
|
|
127
|
+
* "lark": {
|
|
128
|
+
* "hostVer": "x",
|
|
129
|
+
* "uniVer": "x",
|
|
130
|
+
* "unixVer": "x"
|
|
131
|
+
* },
|
|
132
|
+
* "qq": {
|
|
133
|
+
* "hostVer": "√",
|
|
134
|
+
* "uniVer": "√",
|
|
135
|
+
* "unixVer": "x"
|
|
136
|
+
* },
|
|
137
|
+
* "kuaishou": {
|
|
138
|
+
* "hostVer": "√",
|
|
139
|
+
* "uniVer": "√",
|
|
140
|
+
* "unixVer": "x"
|
|
141
|
+
* },
|
|
142
|
+
* "jd": {
|
|
143
|
+
* "hostVer": "x",
|
|
144
|
+
* "uniVer": "x",
|
|
145
|
+
* "unixVer": "x"
|
|
146
|
+
* }
|
|
147
|
+
* }
|
|
148
|
+
* }
|
|
149
|
+
*/
|
|
150
|
+
1300602 |
|
|
151
|
+
/**
|
|
152
|
+
* 不支持该文件类型
|
|
153
|
+
* @uniPlatform {
|
|
154
|
+
* "app": {
|
|
155
|
+
* "android": {
|
|
156
|
+
* "osVer": "5.0",
|
|
157
|
+
* "uniVer": "x",
|
|
158
|
+
* "unixVer": "4.64",
|
|
159
|
+
* "unixUtsPlugin": "4.64"
|
|
160
|
+
* },
|
|
161
|
+
* "ios": {
|
|
162
|
+
* "osVer": "12.0",
|
|
163
|
+
* "uniVer": "x",
|
|
164
|
+
* "unixVer": "4.64",
|
|
165
|
+
* "unixUtsPlugin": "4.64"
|
|
166
|
+
* },
|
|
167
|
+
* "harmony": {
|
|
168
|
+
* "osVer": "5.0.0",
|
|
169
|
+
* "uniVer": "4.64",
|
|
170
|
+
* "unixVer": "4.64"
|
|
171
|
+
* }
|
|
172
|
+
* },
|
|
173
|
+
* "web": {
|
|
174
|
+
* "uniVer": "x",
|
|
175
|
+
* "unixVer": "x"
|
|
176
|
+
* },
|
|
177
|
+
* "mp":{
|
|
178
|
+
* "weixin": {
|
|
179
|
+
* "hostVer": "√",
|
|
180
|
+
* "uniVer": "√",
|
|
181
|
+
* "unixVer": "4.41"
|
|
182
|
+
* },
|
|
183
|
+
* "alipay": {
|
|
184
|
+
* "hostVer": "x",
|
|
185
|
+
* "uniVer": "x",
|
|
186
|
+
* "unixVer": "x"
|
|
187
|
+
* },
|
|
188
|
+
* "baidu": {
|
|
189
|
+
* "hostVer": "√",
|
|
190
|
+
* "uniVer": "√",
|
|
191
|
+
* "unixVer": "x"
|
|
192
|
+
* },
|
|
193
|
+
* "toutiao": {
|
|
194
|
+
* "hostVer": "x",
|
|
195
|
+
* "uniVer": "x",
|
|
196
|
+
* "unixVer": "x"
|
|
197
|
+
* },
|
|
198
|
+
* "lark": {
|
|
199
|
+
* "hostVer": "x",
|
|
200
|
+
* "uniVer": "x",
|
|
201
|
+
* "unixVer": "x"
|
|
202
|
+
* },
|
|
203
|
+
* "qq": {
|
|
204
|
+
* "hostVer": "√",
|
|
205
|
+
* "uniVer": "√",
|
|
206
|
+
* "unixVer": "x"
|
|
207
|
+
* },
|
|
208
|
+
* "kuaishou": {
|
|
209
|
+
* "hostVer": "√",
|
|
210
|
+
* "uniVer": "√",
|
|
211
|
+
* "unixVer": "x"
|
|
212
|
+
* },
|
|
213
|
+
* "jd": {
|
|
214
|
+
* "hostVer": "x",
|
|
215
|
+
* "uniVer": "x",
|
|
216
|
+
* "unixVer": "x"
|
|
217
|
+
* }
|
|
218
|
+
* }
|
|
219
|
+
* }
|
|
220
|
+
*/
|
|
221
|
+
1300603 |
|
|
222
|
+
/**
|
|
223
|
+
* 其他未知错误
|
|
224
|
+
* @uniPlatform {
|
|
225
|
+
* "app": {
|
|
226
|
+
* "android": {
|
|
227
|
+
* "osVer": "5.0",
|
|
228
|
+
* "uniVer": "x",
|
|
229
|
+
* "unixVer": "4.64",
|
|
230
|
+
* "unixUtsPlugin": "4.64"
|
|
231
|
+
* },
|
|
232
|
+
* "ios": {
|
|
233
|
+
* "osVer": "12.0",
|
|
234
|
+
* "uniVer": "x",
|
|
235
|
+
* "unixVer": "4.64",
|
|
236
|
+
* "unixUtsPlugin": "4.64"
|
|
237
|
+
* },
|
|
238
|
+
* "harmony": {
|
|
239
|
+
* "osVer": "5.0.0",
|
|
240
|
+
* "uniVer": "4.64",
|
|
241
|
+
* "unixVer": "4.64"
|
|
242
|
+
* }
|
|
243
|
+
* },
|
|
244
|
+
* "web": {
|
|
245
|
+
* "uniVer": "x",
|
|
246
|
+
* "unixVer": "x"
|
|
247
|
+
* },
|
|
248
|
+
* "mp":{
|
|
249
|
+
* "weixin": {
|
|
250
|
+
* "hostVer": "√",
|
|
251
|
+
* "uniVer": "√",
|
|
252
|
+
* "unixVer": "4.41"
|
|
253
|
+
* },
|
|
254
|
+
* "alipay": {
|
|
255
|
+
* "hostVer": "x",
|
|
256
|
+
* "uniVer": "x",
|
|
257
|
+
* "unixVer": "x"
|
|
258
|
+
* },
|
|
259
|
+
* "baidu": {
|
|
260
|
+
* "hostVer": "√",
|
|
261
|
+
* "uniVer": "√",
|
|
262
|
+
* "unixVer": "x"
|
|
263
|
+
* },
|
|
264
|
+
* "toutiao": {
|
|
265
|
+
* "hostVer": "x",
|
|
266
|
+
* "uniVer": "x",
|
|
267
|
+
* "unixVer": "x"
|
|
268
|
+
* },
|
|
269
|
+
* "lark": {
|
|
270
|
+
* "hostVer": "x",
|
|
271
|
+
* "uniVer": "x",
|
|
272
|
+
* "unixVer": "x"
|
|
273
|
+
* },
|
|
274
|
+
* "qq": {
|
|
275
|
+
* "hostVer": "√",
|
|
276
|
+
* "uniVer": "√",
|
|
277
|
+
* "unixVer": "x"
|
|
278
|
+
* },
|
|
279
|
+
* "kuaishou": {
|
|
280
|
+
* "hostVer": "√",
|
|
281
|
+
* "uniVer": "√",
|
|
282
|
+
* "unixVer": "x"
|
|
283
|
+
* },
|
|
284
|
+
* "jd": {
|
|
285
|
+
* "hostVer": "x",
|
|
286
|
+
* "uniVer": "x",
|
|
287
|
+
* "unixVer": "x"
|
|
288
|
+
* }
|
|
289
|
+
* }
|
|
290
|
+
* }
|
|
291
|
+
*/
|
|
292
|
+
1300604 ;
|
|
293
|
+
|
|
294
|
+
export interface IOpenDocumentError extends IUniError {
|
|
295
|
+
/**
|
|
296
|
+
* 错误码
|
|
297
|
+
* @uniPlatform {
|
|
298
|
+
* "app": {
|
|
299
|
+
* "android": {
|
|
300
|
+
* "osVer": "5.0",
|
|
301
|
+
* "uniVer": "x",
|
|
302
|
+
* "unixVer": "4.64",
|
|
303
|
+
* "unixUtsPlugin": "4.64"
|
|
304
|
+
* },
|
|
305
|
+
* "ios": {
|
|
306
|
+
* "osVer": "12.0",
|
|
307
|
+
* "uniVer": "x",
|
|
308
|
+
* "unixVer": "4.64",
|
|
309
|
+
* "unixUtsPlugin": "4.64"
|
|
310
|
+
* },
|
|
311
|
+
* "harmony": {
|
|
312
|
+
* "osVer": "5.0.0",
|
|
313
|
+
* "uniVer": "4.31",
|
|
314
|
+
* "unixVer": "4.61"
|
|
315
|
+
* }
|
|
316
|
+
* },
|
|
317
|
+
* "web": {
|
|
318
|
+
* "uniVer": "x",
|
|
319
|
+
* "unixVer": "x"
|
|
320
|
+
* },
|
|
321
|
+
* "mp":{
|
|
322
|
+
* "weixin": {
|
|
323
|
+
* "hostVer": "√",
|
|
324
|
+
* "uniVer": "√",
|
|
325
|
+
* "unixVer": "4.41"
|
|
326
|
+
* },
|
|
327
|
+
* "alipay": {
|
|
328
|
+
* "hostVer": "x",
|
|
329
|
+
* "uniVer": "x",
|
|
330
|
+
* "unixVer": "x"
|
|
331
|
+
* },
|
|
332
|
+
* "baidu": {
|
|
333
|
+
* "hostVer": "√",
|
|
334
|
+
* "uniVer": "√",
|
|
335
|
+
* "unixVer": "x"
|
|
336
|
+
* },
|
|
337
|
+
* "toutiao": {
|
|
338
|
+
* "hostVer": "x",
|
|
339
|
+
* "uniVer": "x",
|
|
340
|
+
* "unixVer": "x"
|
|
341
|
+
* },
|
|
342
|
+
* "lark": {
|
|
343
|
+
* "hostVer": "x",
|
|
344
|
+
* "uniVer": "x",
|
|
345
|
+
* "unixVer": "x"
|
|
346
|
+
* },
|
|
347
|
+
* "qq": {
|
|
348
|
+
* "hostVer": "√",
|
|
349
|
+
* "uniVer": "√",
|
|
350
|
+
* "unixVer": "x"
|
|
351
|
+
* },
|
|
352
|
+
* "kuaishou": {
|
|
353
|
+
* "hostVer": "√",
|
|
354
|
+
* "uniVer": "√",
|
|
355
|
+
* "unixVer": "x"
|
|
356
|
+
* },
|
|
357
|
+
* "jd": {
|
|
358
|
+
* "hostVer": "x",
|
|
359
|
+
* "uniVer": "x",
|
|
360
|
+
* "unixVer": "x"
|
|
361
|
+
* }
|
|
362
|
+
* }
|
|
363
|
+
* }
|
|
364
|
+
*/
|
|
365
|
+
errCode : OpenDocumentErrorCode;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/**
|
|
8
369
|
* uni.openDocument成功回调函数定义
|
|
9
370
|
* @uniPlatform {
|
|
10
371
|
* "mp": {
|
|
@@ -50,9 +411,9 @@ export type OpenDocumentFail = {}
|
|
|
50
411
|
* }
|
|
51
412
|
* }
|
|
52
413
|
* }
|
|
53
|
-
*/
|
|
54
|
-
export type OpenDocumentSuccessCallback = (res: OpenDocumentSuccess) => void
|
|
55
|
-
/**
|
|
414
|
+
*/
|
|
415
|
+
export type OpenDocumentSuccessCallback = (res : OpenDocumentSuccess) => void
|
|
416
|
+
/**
|
|
56
417
|
* uni.openDocument失败回调函数定义
|
|
57
418
|
* @uniPlatform {
|
|
58
419
|
* "mp": {
|
|
@@ -98,9 +459,9 @@ export type OpenDocumentSuccessCallback = (res: OpenDocumentSuccess) => void
|
|
|
98
459
|
* }
|
|
99
460
|
* }
|
|
100
461
|
* }
|
|
101
|
-
*/
|
|
102
|
-
export type OpenDocumentFailCallback = (res: OpenDocumentFail) => void
|
|
103
|
-
/**
|
|
462
|
+
*/
|
|
463
|
+
export type OpenDocumentFailCallback = (res : OpenDocumentFail) => void
|
|
464
|
+
/**
|
|
104
465
|
* uni.openDocument完成回调函数定义
|
|
105
466
|
* @uniPlatform {
|
|
106
467
|
* "mp": {
|
|
@@ -146,255 +507,370 @@ export type OpenDocumentFailCallback = (res: OpenDocumentFail) => void
|
|
|
146
507
|
* }
|
|
147
508
|
* }
|
|
148
509
|
* }
|
|
149
|
-
*/
|
|
150
|
-
export type OpenDocumentCompleteCallback = (res: any) => void
|
|
151
|
-
|
|
152
|
-
export type OpenDocumentSupportedTypes =
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* uni.openDocument参数定义
|
|
156
|
-
*/
|
|
157
|
-
export type OpenDocumentOptions = {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
510
|
+
*/
|
|
511
|
+
export type OpenDocumentCompleteCallback = (res : any) => void
|
|
512
|
+
|
|
513
|
+
export type OpenDocumentSupportedTypes = string
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* uni.openDocument参数定义
|
|
517
|
+
*/
|
|
518
|
+
export type OpenDocumentOptions = {
|
|
519
|
+
/**
|
|
520
|
+
* 文件路径,仅支持本地路径
|
|
521
|
+
* @uniPlatform {
|
|
522
|
+
* "app": {
|
|
523
|
+
* "android": {
|
|
524
|
+
* "osVer": "5.0",
|
|
525
|
+
* "uniVer": "x",
|
|
526
|
+
* "unixVer": "4.64",
|
|
527
|
+
* "unixUtsPlugin": "4.64"
|
|
528
|
+
* },
|
|
529
|
+
* "ios": {
|
|
530
|
+
* "osVer": "12.0",
|
|
531
|
+
* "uniVer": "x",
|
|
532
|
+
* "unixVer": "4.64",
|
|
533
|
+
* "unixUtsPlugin": "4.64"
|
|
534
|
+
* },
|
|
535
|
+
* "harmony": {
|
|
536
|
+
* "osVer": "5.0.0",
|
|
537
|
+
* "uniVer": "4.31",
|
|
538
|
+
* "unixVer": "4.61"
|
|
539
|
+
* }
|
|
540
|
+
* },
|
|
541
|
+
* "web": {
|
|
542
|
+
* "uniVer": "x",
|
|
543
|
+
* "unixVer": "x"
|
|
544
|
+
* },
|
|
545
|
+
* "mp":{
|
|
546
|
+
* "weixin": {
|
|
547
|
+
* "hostVer": "√",
|
|
548
|
+
* "uniVer": "√",
|
|
549
|
+
* "unixVer": "4.41"
|
|
550
|
+
* },
|
|
551
|
+
* "alipay": {
|
|
552
|
+
* "hostVer": "x",
|
|
553
|
+
* "uniVer": "x",
|
|
554
|
+
* "unixVer": "x"
|
|
555
|
+
* },
|
|
556
|
+
* "baidu": {
|
|
557
|
+
* "hostVer": "√",
|
|
558
|
+
* "uniVer": "√",
|
|
559
|
+
* "unixVer": "x"
|
|
560
|
+
* },
|
|
561
|
+
* "toutiao": {
|
|
562
|
+
* "hostVer": "x",
|
|
563
|
+
* "uniVer": "x",
|
|
564
|
+
* "unixVer": "x"
|
|
565
|
+
* },
|
|
566
|
+
* "lark": {
|
|
567
|
+
* "hostVer": "x",
|
|
568
|
+
* "uniVer": "x",
|
|
569
|
+
* "unixVer": "x"
|
|
570
|
+
* },
|
|
571
|
+
* "qq": {
|
|
572
|
+
* "hostVer": "√",
|
|
573
|
+
* "uniVer": "√",
|
|
574
|
+
* "unixVer": "x"
|
|
575
|
+
* },
|
|
576
|
+
* "kuaishou": {
|
|
577
|
+
* "hostVer": "√",
|
|
578
|
+
* "uniVer": "√",
|
|
579
|
+
* "unixVer": "x"
|
|
580
|
+
* },
|
|
581
|
+
* "jd": {
|
|
582
|
+
* "hostVer": "x",
|
|
583
|
+
* "uniVer": "x",
|
|
584
|
+
* "unixVer": "x"
|
|
585
|
+
* }
|
|
586
|
+
* }
|
|
587
|
+
* }
|
|
588
|
+
*/
|
|
589
|
+
filePath : string,
|
|
590
|
+
/**
|
|
591
|
+
* 文件类型,指定文件类型打开文件,微信小程序仅支持类型:doc, xls, ppt, pdf, docx, xlsx, pptx,App端由系统打开,原则上可以打开任意文件;
|
|
592
|
+
* @uniPlatform {
|
|
593
|
+
* "app": {
|
|
594
|
+
* "android": {
|
|
595
|
+
* "osVer": "5.0",
|
|
596
|
+
* "uniVer": "x",
|
|
597
|
+
* "unixVer": "4.64",
|
|
598
|
+
* "unixUtsPlugin": "4.64"
|
|
599
|
+
* },
|
|
600
|
+
* "ios": {
|
|
601
|
+
* "osVer": "12.0",
|
|
602
|
+
* "uniVer": "x",
|
|
603
|
+
* "unixVer": "4.64",
|
|
604
|
+
* "unixUtsPlugin": "4.64"
|
|
605
|
+
* },
|
|
606
|
+
* "harmony": {
|
|
607
|
+
* "osVer": "5.0.0",
|
|
608
|
+
* "uniVer": "4.31",
|
|
609
|
+
* "unixVer": "4.61"
|
|
610
|
+
* }
|
|
611
|
+
* },
|
|
612
|
+
* "web": {
|
|
613
|
+
* "uniVer": "x",
|
|
614
|
+
* "unixVer": "x"
|
|
615
|
+
* },
|
|
616
|
+
* "mp":{
|
|
617
|
+
* "weixin": {
|
|
618
|
+
* "hostVer": "√",
|
|
619
|
+
* "uniVer": "√",
|
|
620
|
+
* "unixVer": "4.41"
|
|
621
|
+
* },
|
|
622
|
+
* "alipay": {
|
|
623
|
+
* "hostVer": "x",
|
|
624
|
+
* "uniVer": "x",
|
|
625
|
+
* "unixVer": "x"
|
|
626
|
+
* },
|
|
627
|
+
* "baidu": {
|
|
628
|
+
* "hostVer": "√",
|
|
629
|
+
* "uniVer": "√",
|
|
630
|
+
* "unixVer": "x"
|
|
631
|
+
* },
|
|
632
|
+
* "toutiao": {
|
|
633
|
+
* "hostVer": "x",
|
|
634
|
+
* "uniVer": "x",
|
|
635
|
+
* "unixVer": "x"
|
|
636
|
+
* },
|
|
637
|
+
* "lark": {
|
|
638
|
+
* "hostVer": "x",
|
|
639
|
+
* "uniVer": "x",
|
|
640
|
+
* "unixVer": "x"
|
|
641
|
+
* },
|
|
642
|
+
* "qq": {
|
|
643
|
+
* "hostVer": "√",
|
|
644
|
+
* "uniVer": "√",
|
|
645
|
+
* "unixVer": "x"
|
|
646
|
+
* },
|
|
647
|
+
* "kuaishou": {
|
|
648
|
+
* "hostVer": "√",
|
|
649
|
+
* "uniVer": "√",
|
|
650
|
+
* "unixVer": "x"
|
|
651
|
+
* },
|
|
652
|
+
* "jd": {
|
|
653
|
+
* "hostVer": "x",
|
|
654
|
+
* "uniVer": "x",
|
|
655
|
+
* "unixVer": "x"
|
|
656
|
+
* }
|
|
657
|
+
* }
|
|
658
|
+
* }
|
|
659
|
+
*/
|
|
660
|
+
fileType ?: OpenDocumentSupportedTypes | null,
|
|
661
|
+
/**
|
|
662
|
+
* 接口调用成功的回调函数
|
|
663
|
+
* @uniPlatform {
|
|
664
|
+
* "app": {
|
|
665
|
+
* "android": {
|
|
666
|
+
* "osVer": "5.0",
|
|
667
|
+
* "uniVer": "x",
|
|
668
|
+
* "unixVer": "4.64",
|
|
669
|
+
* "unixUtsPlugin": "4.64"
|
|
670
|
+
* },
|
|
671
|
+
* "ios": {
|
|
672
|
+
* "osVer": "12.0",
|
|
673
|
+
* "uniVer": "x",
|
|
674
|
+
* "unixVer": "4.64",
|
|
675
|
+
* "unixUtsPlugin": "4.64"
|
|
676
|
+
* },
|
|
677
|
+
* "harmony": {
|
|
678
|
+
* "osVer": "5.0.0",
|
|
679
|
+
* "uniVer": "4.31",
|
|
680
|
+
* "unixVer": "4.61"
|
|
681
|
+
* }
|
|
682
|
+
* },
|
|
683
|
+
* "web": {
|
|
684
|
+
* "uniVer": "x",
|
|
685
|
+
* "unixVer": "x"
|
|
686
|
+
* },
|
|
687
|
+
* "mp":{
|
|
688
|
+
* "weixin": {
|
|
689
|
+
* "hostVer": "√",
|
|
690
|
+
* "uniVer": "√",
|
|
691
|
+
* "unixVer": "4.41"
|
|
692
|
+
* },
|
|
693
|
+
* "alipay": {
|
|
694
|
+
* "hostVer": "x",
|
|
695
|
+
* "uniVer": "x",
|
|
696
|
+
* "unixVer": "x"
|
|
697
|
+
* },
|
|
698
|
+
* "baidu": {
|
|
699
|
+
* "hostVer": "√",
|
|
700
|
+
* "uniVer": "√",
|
|
701
|
+
* "unixVer": "x"
|
|
702
|
+
* },
|
|
703
|
+
* "toutiao": {
|
|
704
|
+
* "hostVer": "x",
|
|
705
|
+
* "uniVer": "x",
|
|
706
|
+
* "unixVer": "x"
|
|
707
|
+
* },
|
|
708
|
+
* "lark": {
|
|
709
|
+
* "hostVer": "x",
|
|
710
|
+
* "uniVer": "x",
|
|
711
|
+
* "unixVer": "x"
|
|
712
|
+
* },
|
|
713
|
+
* "qq": {
|
|
714
|
+
* "hostVer": "√",
|
|
715
|
+
* "uniVer": "√",
|
|
716
|
+
* "unixVer": "x"
|
|
717
|
+
* },
|
|
718
|
+
* "kuaishou": {
|
|
719
|
+
* "hostVer": "√",
|
|
720
|
+
* "uniVer": "√",
|
|
721
|
+
* "unixVer": "x"
|
|
722
|
+
* },
|
|
723
|
+
* "jd": {
|
|
724
|
+
* "hostVer": "x",
|
|
725
|
+
* "uniVer": "x",
|
|
726
|
+
* "unixVer": "x"
|
|
727
|
+
* }
|
|
728
|
+
* }
|
|
729
|
+
* }
|
|
730
|
+
*/
|
|
731
|
+
success ?: OpenDocumentSuccessCallback | null,
|
|
732
|
+
/**
|
|
733
|
+
* 接口调用失败的回调函数
|
|
734
|
+
* @uniPlatform {
|
|
735
|
+
* "app": {
|
|
736
|
+
* "android": {
|
|
737
|
+
* "osVer": "5.0",
|
|
738
|
+
* "uniVer": "x",
|
|
739
|
+
* "unixVer": "4.64",
|
|
740
|
+
* "unixUtsPlugin": "4.64"
|
|
741
|
+
* },
|
|
742
|
+
* "ios": {
|
|
743
|
+
* "osVer": "12.0",
|
|
744
|
+
* "uniVer": "x",
|
|
745
|
+
* "unixVer": "4.64",
|
|
746
|
+
* "unixUtsPlugin": "4.64"
|
|
747
|
+
* },
|
|
748
|
+
* "harmony": {
|
|
749
|
+
* "osVer": "5.0.0",
|
|
750
|
+
* "uniVer": "4.31",
|
|
751
|
+
* "unixVer": "4.61"
|
|
752
|
+
* }
|
|
753
|
+
* },
|
|
754
|
+
* "web": {
|
|
755
|
+
* "uniVer": "x",
|
|
756
|
+
* "unixVer": "x"
|
|
757
|
+
* },
|
|
758
|
+
* "mp":{
|
|
759
|
+
* "weixin": {
|
|
760
|
+
* "hostVer": "√",
|
|
761
|
+
* "uniVer": "√",
|
|
762
|
+
* "unixVer": "4.41"
|
|
763
|
+
* },
|
|
764
|
+
* "alipay": {
|
|
765
|
+
* "hostVer": "x",
|
|
766
|
+
* "uniVer": "x",
|
|
767
|
+
* "unixVer": "x"
|
|
768
|
+
* },
|
|
769
|
+
* "baidu": {
|
|
770
|
+
* "hostVer": "√",
|
|
771
|
+
* "uniVer": "√",
|
|
772
|
+
* "unixVer": "x"
|
|
773
|
+
* },
|
|
774
|
+
* "toutiao": {
|
|
775
|
+
* "hostVer": "x",
|
|
776
|
+
* "uniVer": "x",
|
|
777
|
+
* "unixVer": "x"
|
|
778
|
+
* },
|
|
779
|
+
* "lark": {
|
|
780
|
+
* "hostVer": "x",
|
|
781
|
+
* "uniVer": "x",
|
|
782
|
+
* "unixVer": "x"
|
|
783
|
+
* },
|
|
784
|
+
* "qq": {
|
|
785
|
+
* "hostVer": "√",
|
|
786
|
+
* "uniVer": "√",
|
|
787
|
+
* "unixVer": "x"
|
|
788
|
+
* },
|
|
789
|
+
* "kuaishou": {
|
|
790
|
+
* "hostVer": "√",
|
|
791
|
+
* "uniVer": "√",
|
|
792
|
+
* "unixVer": "x"
|
|
793
|
+
* },
|
|
794
|
+
* "jd": {
|
|
795
|
+
* "hostVer": "x",
|
|
796
|
+
* "uniVer": "x",
|
|
797
|
+
* "unixVer": "x"
|
|
798
|
+
* }
|
|
799
|
+
* }
|
|
800
|
+
* }
|
|
801
|
+
*/
|
|
802
|
+
fail ?: OpenDocumentFailCallback | null,
|
|
803
|
+
/**
|
|
804
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
805
|
+
* @uniPlatform {
|
|
806
|
+
* "app": {
|
|
807
|
+
* "android": {
|
|
808
|
+
* "osVer": "5.0",
|
|
809
|
+
* "uniVer": "x",
|
|
810
|
+
* "unixVer": "4.64",
|
|
811
|
+
* "unixUtsPlugin": "4.64"
|
|
812
|
+
* },
|
|
813
|
+
* "ios": {
|
|
814
|
+
* "osVer": "12.0",
|
|
815
|
+
* "uniVer": "x",
|
|
816
|
+
* "unixVer": "4.64",
|
|
817
|
+
* "unixUtsPlugin": "4.64"
|
|
818
|
+
* },
|
|
819
|
+
* "harmony": {
|
|
820
|
+
* "osVer": "5.0.0",
|
|
821
|
+
* "uniVer": "4.31",
|
|
822
|
+
* "unixVer": "4.61"
|
|
823
|
+
* }
|
|
824
|
+
* },
|
|
825
|
+
* "web": {
|
|
826
|
+
* "uniVer": "x",
|
|
827
|
+
* "unixVer": "x"
|
|
828
|
+
* },
|
|
829
|
+
* "mp":{
|
|
830
|
+
* "weixin": {
|
|
831
|
+
* "hostVer": "√",
|
|
832
|
+
* "uniVer": "√",
|
|
833
|
+
* "unixVer": "4.41"
|
|
834
|
+
* },
|
|
835
|
+
* "alipay": {
|
|
836
|
+
* "hostVer": "x",
|
|
837
|
+
* "uniVer": "x",
|
|
838
|
+
* "unixVer": "x"
|
|
839
|
+
* },
|
|
840
|
+
* "baidu": {
|
|
841
|
+
* "hostVer": "√",
|
|
842
|
+
* "uniVer": "√",
|
|
843
|
+
* "unixVer": "x"
|
|
844
|
+
* },
|
|
845
|
+
* "toutiao": {
|
|
846
|
+
* "hostVer": "x",
|
|
847
|
+
* "uniVer": "x",
|
|
848
|
+
* "unixVer": "x"
|
|
849
|
+
* },
|
|
850
|
+
* "lark": {
|
|
851
|
+
* "hostVer": "x",
|
|
852
|
+
* "uniVer": "x",
|
|
853
|
+
* "unixVer": "x"
|
|
854
|
+
* },
|
|
855
|
+
* "qq": {
|
|
856
|
+
* "hostVer": "√",
|
|
857
|
+
* "uniVer": "√",
|
|
858
|
+
* "unixVer": "x"
|
|
859
|
+
* },
|
|
860
|
+
* "kuaishou": {
|
|
861
|
+
* "hostVer": "√",
|
|
862
|
+
* "uniVer": "√",
|
|
863
|
+
* "unixVer": "x"
|
|
864
|
+
* },
|
|
865
|
+
* "jd": {
|
|
866
|
+
* "hostVer": "x",
|
|
867
|
+
* "uniVer": "x",
|
|
868
|
+
* "unixVer": "x"
|
|
869
|
+
* }
|
|
870
|
+
* }
|
|
871
|
+
* }
|
|
872
|
+
*/
|
|
873
|
+
complete ?: OpenDocumentCompleteCallback | null
|
|
398
874
|
/**
|
|
399
875
|
* 需要基础库: `2.11.0`
|
|
400
876
|
*
|
|
@@ -446,20 +922,36 @@ export type OpenDocumentOptions = {
|
|
|
446
922
|
* }
|
|
447
923
|
*/
|
|
448
924
|
showMenu?: boolean | null;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
export interface Uni {
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
export interface Uni {
|
|
929
|
+
/**
|
|
930
|
+
* 打开文档
|
|
931
|
+
* @uniPlatform {
|
|
456
932
|
* "app": {
|
|
933
|
+
* "android": {
|
|
934
|
+
* "osVer": "5.0",
|
|
935
|
+
* "uniVer": "x",
|
|
936
|
+
* "unixVer": "4.64",
|
|
937
|
+
* "unixUtsPlugin": "4.64"
|
|
938
|
+
* },
|
|
939
|
+
* "ios": {
|
|
940
|
+
* "osVer": "12.0",
|
|
941
|
+
* "uniVer": "x",
|
|
942
|
+
* "unixVer": "4.64",
|
|
943
|
+
* "unixUtsPlugin": "4.64"
|
|
944
|
+
* },
|
|
457
945
|
* "harmony": {
|
|
458
|
-
* "osVer": "
|
|
459
|
-
* "uniVer": "4.
|
|
946
|
+
* "osVer": "5.0.0",
|
|
947
|
+
* "uniVer": "4.31",
|
|
460
948
|
* "unixVer": "4.61"
|
|
461
949
|
* }
|
|
462
950
|
* },
|
|
951
|
+
* "web": {
|
|
952
|
+
* "uniVer": "x",
|
|
953
|
+
* "unixVer": "x"
|
|
954
|
+
* },
|
|
463
955
|
* "mp": {
|
|
464
956
|
* "weixin": {
|
|
465
957
|
* "hostVer": "2.15.0",
|
|
@@ -467,8 +959,8 @@ export interface Uni {
|
|
|
467
959
|
* "unixVer": "4.41"
|
|
468
960
|
* },
|
|
469
961
|
* "alipay": {
|
|
470
|
-
* "hostVer": "
|
|
471
|
-
* "uniVer": "
|
|
962
|
+
* "hostVer": "x",
|
|
963
|
+
* "uniVer": "x",
|
|
472
964
|
* "unixVer": "x"
|
|
473
965
|
* },
|
|
474
966
|
* "baidu": {
|
|
@@ -477,13 +969,13 @@ export interface Uni {
|
|
|
477
969
|
* "unixVer": "x"
|
|
478
970
|
* },
|
|
479
971
|
* "toutiao": {
|
|
480
|
-
* "hostVer": "
|
|
481
|
-
* "uniVer": "
|
|
972
|
+
* "hostVer": "x",
|
|
973
|
+
* "uniVer": "x",
|
|
482
974
|
* "unixVer": "x"
|
|
483
975
|
* },
|
|
484
976
|
* "lark": {
|
|
485
|
-
* "hostVer": "
|
|
486
|
-
* "uniVer": "
|
|
977
|
+
* "hostVer": "x",
|
|
978
|
+
* "uniVer": "x",
|
|
487
979
|
* "unixVer": "x"
|
|
488
980
|
* },
|
|
489
981
|
* "qq": {
|
|
@@ -497,20 +989,16 @@ export interface Uni {
|
|
|
497
989
|
* "unixVer": "x"
|
|
498
990
|
* },
|
|
499
991
|
* "jd": {
|
|
500
|
-
* "hostVer": "
|
|
501
|
-
* "uniVer": "
|
|
992
|
+
* "hostVer": "x",
|
|
993
|
+
* "uniVer": "x",
|
|
502
994
|
* "unixVer": "x"
|
|
503
995
|
* }
|
|
504
|
-
* },
|
|
505
|
-
* "web": {
|
|
506
|
-
* "uniVer": "x",
|
|
507
|
-
* "unixVer": "x"
|
|
508
996
|
* }
|
|
509
|
-
* }
|
|
510
|
-
|
|
997
|
+
* }
|
|
998
|
+
* @uniVueVersion 2,3 //支持的vue版本
|
|
511
999
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.openDocument.html
|
|
512
|
-
*/
|
|
513
|
-
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
export type OpenDocument = (options?: OpenDocumentOptions | null) => void;
|
|
1000
|
+
*/
|
|
1001
|
+
openDocument(options ?: OpenDocumentOptions | null) : void;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
export type OpenDocument = (options ?: OpenDocumentOptions | null) => void;
|