@dcloudio/uni-app-x 0.7.39 → 0.7.40
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 +9 -7
- package/types/UniPage.d.ts +168 -22
- package/types/app.d.ts +31 -31
- package/types/native/CSSStyleDeclaration.d.ts +16 -2
- package/types/native/DOMRect.d.ts +430 -10
- package/types/native/DrawableContext.d.ts +1137 -45
- package/types/native/IUniElement.d.ts +1875 -93
- package/types/native/UniNativePage.d.ts +94 -0
- package/types/native/UniResizeObserver.d.ts +215 -5
- package/types/native/UniSafeArea.d.ts +185 -0
- package/types/native/UniVideoElement.d.ts +432 -0
- package/types/native/global.d.ts +7 -0
- package/types/native/index.d.ts +1 -0
- package/types/uni/uni-map-tencent-map.d.ts +12 -8
- package/types/uni/uts-plugin-api/global.d.ts +62 -61
- package/types/uni/uts-plugin-api/index.d.ts +62 -61
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +278 -0
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1600 -59
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +64 -63
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1150 -186
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +64 -63
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +550 -550
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +69 -72
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +533 -135
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1508 -77
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +423 -63
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +284 -63
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +2 -9
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +62 -62
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +31 -31
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +57 -57
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +312 -110
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +62 -62
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +472 -72
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +126 -78
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +317 -66
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +570 -63
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +570 -63
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +110 -66
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +595 -177
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +284 -63
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +45 -1
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1387 -182
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +67 -67
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +318 -53
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +162 -63
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +241 -64
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +6 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +4089 -659
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +460 -252
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +2345 -213
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1205 -149
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +339 -33
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +457 -53
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +328 -63
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +317 -66
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +120 -71
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2157 -437
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +260 -126
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +467 -315
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +553 -53
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1608 -630
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +2492 -504
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +176 -130
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +704 -58
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1230 -454
- package/types/uni/uts-plugin-biz/global.d.ts +6 -5
- package/types/uni/uts-plugin-biz/index.d.ts +6 -5
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +406 -123
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +60 -47
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +71 -71
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/interface.d.ts +204 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +42 -38
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +21 -19
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +502 -255
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -0
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -0
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -0
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +48 -48
- package/types/uni/uts-plugin-extend/global.d.ts +0 -4
- package/types/uni/uts-plugin-extend/index.d.ts +0 -4
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +825 -273
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4399 -339
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1000 -268
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1495 -384
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +222 -132
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +923 -67
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -7
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -716
|
@@ -6,14 +6,146 @@ export type OpenDocumentSuccess = {}
|
|
|
6
6
|
export type OpenDocumentFail = {}
|
|
7
7
|
/**
|
|
8
8
|
* uni.openDocument成功回调函数定义
|
|
9
|
+
* @uniPlatform {
|
|
10
|
+
* "mp": {
|
|
11
|
+
* "weixin": {
|
|
12
|
+
* "hostVer": "√",
|
|
13
|
+
* "uniVer": "√",
|
|
14
|
+
* "unixVer": "4.41"
|
|
15
|
+
* },
|
|
16
|
+
* "alipay": {
|
|
17
|
+
* "hostVer": "-",
|
|
18
|
+
* "uniVer": "-",
|
|
19
|
+
* "unixVer": "-"
|
|
20
|
+
* },
|
|
21
|
+
* "baidu": {
|
|
22
|
+
* "hostVer": "-",
|
|
23
|
+
* "uniVer": "-",
|
|
24
|
+
* "unixVer": "-"
|
|
25
|
+
* },
|
|
26
|
+
* "toutiao": {
|
|
27
|
+
* "hostVer": "-",
|
|
28
|
+
* "uniVer": "-",
|
|
29
|
+
* "unixVer": "-"
|
|
30
|
+
* },
|
|
31
|
+
* "lark": {
|
|
32
|
+
* "hostVer": "-",
|
|
33
|
+
* "uniVer": "-",
|
|
34
|
+
* "unixVer": "-"
|
|
35
|
+
* },
|
|
36
|
+
* "qq": {
|
|
37
|
+
* "hostVer": "-",
|
|
38
|
+
* "uniVer": "-",
|
|
39
|
+
* "unixVer": "-"
|
|
40
|
+
* },
|
|
41
|
+
* "kuaishou": {
|
|
42
|
+
* "hostVer": "-",
|
|
43
|
+
* "uniVer": "-",
|
|
44
|
+
* "unixVer": "-"
|
|
45
|
+
* },
|
|
46
|
+
* "jd": {
|
|
47
|
+
* "hostVer": "-",
|
|
48
|
+
* "uniVer": "-",
|
|
49
|
+
* "unixVer": "-"
|
|
50
|
+
* }
|
|
51
|
+
* }
|
|
52
|
+
* }
|
|
9
53
|
*/
|
|
10
54
|
export type OpenDocumentSuccessCallback = (res: OpenDocumentSuccess) => void
|
|
11
55
|
/**
|
|
12
56
|
* uni.openDocument失败回调函数定义
|
|
57
|
+
* @uniPlatform {
|
|
58
|
+
* "mp": {
|
|
59
|
+
* "weixin": {
|
|
60
|
+
* "hostVer": "√",
|
|
61
|
+
* "uniVer": "√",
|
|
62
|
+
* "unixVer": "4.41"
|
|
63
|
+
* },
|
|
64
|
+
* "alipay": {
|
|
65
|
+
* "hostVer": "-",
|
|
66
|
+
* "uniVer": "-",
|
|
67
|
+
* "unixVer": "-"
|
|
68
|
+
* },
|
|
69
|
+
* "baidu": {
|
|
70
|
+
* "hostVer": "-",
|
|
71
|
+
* "uniVer": "-",
|
|
72
|
+
* "unixVer": "-"
|
|
73
|
+
* },
|
|
74
|
+
* "toutiao": {
|
|
75
|
+
* "hostVer": "-",
|
|
76
|
+
* "uniVer": "-",
|
|
77
|
+
* "unixVer": "-"
|
|
78
|
+
* },
|
|
79
|
+
* "lark": {
|
|
80
|
+
* "hostVer": "-",
|
|
81
|
+
* "uniVer": "-",
|
|
82
|
+
* "unixVer": "-"
|
|
83
|
+
* },
|
|
84
|
+
* "qq": {
|
|
85
|
+
* "hostVer": "-",
|
|
86
|
+
* "uniVer": "-",
|
|
87
|
+
* "unixVer": "-"
|
|
88
|
+
* },
|
|
89
|
+
* "kuaishou": {
|
|
90
|
+
* "hostVer": "-",
|
|
91
|
+
* "uniVer": "-",
|
|
92
|
+
* "unixVer": "-"
|
|
93
|
+
* },
|
|
94
|
+
* "jd": {
|
|
95
|
+
* "hostVer": "-",
|
|
96
|
+
* "uniVer": "-",
|
|
97
|
+
* "unixVer": "-"
|
|
98
|
+
* }
|
|
99
|
+
* }
|
|
100
|
+
* }
|
|
13
101
|
*/
|
|
14
102
|
export type OpenDocumentFailCallback = (res: OpenDocumentFail) => void
|
|
15
103
|
/**
|
|
16
104
|
* uni.openDocument完成回调函数定义
|
|
105
|
+
* @uniPlatform {
|
|
106
|
+
* "mp": {
|
|
107
|
+
* "weixin": {
|
|
108
|
+
* "hostVer": "√",
|
|
109
|
+
* "uniVer": "√",
|
|
110
|
+
* "unixVer": "4.41"
|
|
111
|
+
* },
|
|
112
|
+
* "alipay": {
|
|
113
|
+
* "hostVer": "-",
|
|
114
|
+
* "uniVer": "-",
|
|
115
|
+
* "unixVer": "-"
|
|
116
|
+
* },
|
|
117
|
+
* "baidu": {
|
|
118
|
+
* "hostVer": "-",
|
|
119
|
+
* "uniVer": "-",
|
|
120
|
+
* "unixVer": "-"
|
|
121
|
+
* },
|
|
122
|
+
* "toutiao": {
|
|
123
|
+
* "hostVer": "-",
|
|
124
|
+
* "uniVer": "-",
|
|
125
|
+
* "unixVer": "-"
|
|
126
|
+
* },
|
|
127
|
+
* "lark": {
|
|
128
|
+
* "hostVer": "-",
|
|
129
|
+
* "uniVer": "-",
|
|
130
|
+
* "unixVer": "-"
|
|
131
|
+
* },
|
|
132
|
+
* "qq": {
|
|
133
|
+
* "hostVer": "-",
|
|
134
|
+
* "uniVer": "-",
|
|
135
|
+
* "unixVer": "-"
|
|
136
|
+
* },
|
|
137
|
+
* "kuaishou": {
|
|
138
|
+
* "hostVer": "-",
|
|
139
|
+
* "uniVer": "-",
|
|
140
|
+
* "unixVer": "-"
|
|
141
|
+
* },
|
|
142
|
+
* "jd": {
|
|
143
|
+
* "hostVer": "-",
|
|
144
|
+
* "uniVer": "-",
|
|
145
|
+
* "unixVer": "-"
|
|
146
|
+
* }
|
|
147
|
+
* }
|
|
148
|
+
* }
|
|
17
149
|
*/
|
|
18
150
|
export type OpenDocumentCompleteCallback = (res: any) => void
|
|
19
151
|
|
|
@@ -25,24 +157,295 @@ export type OpenDocumentSupportedTypes = 'doc' | 'xls' | 'ppt' | 'pdf' | 'docx'
|
|
|
25
157
|
export type OpenDocumentOptions = {
|
|
26
158
|
/**
|
|
27
159
|
* 文件路径,仅支持本地路径
|
|
160
|
+
* @uniPlatform {
|
|
161
|
+
* "mp": {
|
|
162
|
+
* "weixin": {
|
|
163
|
+
* "hostVer": "√",
|
|
164
|
+
* "uniVer": "√",
|
|
165
|
+
* "unixVer": "4.41"
|
|
166
|
+
* },
|
|
167
|
+
* "alipay": {
|
|
168
|
+
* "hostVer": "-",
|
|
169
|
+
* "uniVer": "-",
|
|
170
|
+
* "unixVer": "-"
|
|
171
|
+
* },
|
|
172
|
+
* "baidu": {
|
|
173
|
+
* "hostVer": "-",
|
|
174
|
+
* "uniVer": "-",
|
|
175
|
+
* "unixVer": "-"
|
|
176
|
+
* },
|
|
177
|
+
* "toutiao": {
|
|
178
|
+
* "hostVer": "-",
|
|
179
|
+
* "uniVer": "-",
|
|
180
|
+
* "unixVer": "-"
|
|
181
|
+
* },
|
|
182
|
+
* "lark": {
|
|
183
|
+
* "hostVer": "-",
|
|
184
|
+
* "uniVer": "-",
|
|
185
|
+
* "unixVer": "-"
|
|
186
|
+
* },
|
|
187
|
+
* "qq": {
|
|
188
|
+
* "hostVer": "-",
|
|
189
|
+
* "uniVer": "-",
|
|
190
|
+
* "unixVer": "-"
|
|
191
|
+
* },
|
|
192
|
+
* "kuaishou": {
|
|
193
|
+
* "hostVer": "-",
|
|
194
|
+
* "uniVer": "-",
|
|
195
|
+
* "unixVer": "-"
|
|
196
|
+
* },
|
|
197
|
+
* "jd": {
|
|
198
|
+
* "hostVer": "-",
|
|
199
|
+
* "uniVer": "-",
|
|
200
|
+
* "unixVer": "-"
|
|
201
|
+
* }
|
|
202
|
+
* }
|
|
203
|
+
* }
|
|
28
204
|
*/
|
|
29
205
|
filePath: string,
|
|
30
206
|
/**
|
|
31
207
|
* 文件类型,指定文件类型打开文件,有效值 doc, xls, ppt, pdf, docx, xlsx, pptx
|
|
208
|
+
* @uniPlatform {
|
|
209
|
+
* "mp": {
|
|
210
|
+
* "weixin": {
|
|
211
|
+
* "hostVer": "√",
|
|
212
|
+
* "uniVer": "√",
|
|
213
|
+
* "unixVer": "4.41"
|
|
214
|
+
* },
|
|
215
|
+
* "alipay": {
|
|
216
|
+
* "hostVer": "-",
|
|
217
|
+
* "uniVer": "-",
|
|
218
|
+
* "unixVer": "-"
|
|
219
|
+
* },
|
|
220
|
+
* "baidu": {
|
|
221
|
+
* "hostVer": "-",
|
|
222
|
+
* "uniVer": "-",
|
|
223
|
+
* "unixVer": "-"
|
|
224
|
+
* },
|
|
225
|
+
* "toutiao": {
|
|
226
|
+
* "hostVer": "-",
|
|
227
|
+
* "uniVer": "-",
|
|
228
|
+
* "unixVer": "-"
|
|
229
|
+
* },
|
|
230
|
+
* "lark": {
|
|
231
|
+
* "hostVer": "-",
|
|
232
|
+
* "uniVer": "-",
|
|
233
|
+
* "unixVer": "-"
|
|
234
|
+
* },
|
|
235
|
+
* "qq": {
|
|
236
|
+
* "hostVer": "-",
|
|
237
|
+
* "uniVer": "-",
|
|
238
|
+
* "unixVer": "-"
|
|
239
|
+
* },
|
|
240
|
+
* "kuaishou": {
|
|
241
|
+
* "hostVer": "-",
|
|
242
|
+
* "uniVer": "-",
|
|
243
|
+
* "unixVer": "-"
|
|
244
|
+
* },
|
|
245
|
+
* "jd": {
|
|
246
|
+
* "hostVer": "-",
|
|
247
|
+
* "uniVer": "-",
|
|
248
|
+
* "unixVer": "-"
|
|
249
|
+
* }
|
|
250
|
+
* }
|
|
251
|
+
* }
|
|
32
252
|
*/
|
|
33
253
|
fileType?: OpenDocumentSupportedTypes | null,
|
|
34
254
|
/**
|
|
35
255
|
* 接口调用成功的回调函数
|
|
256
|
+
* @uniPlatform {
|
|
257
|
+
* "mp": {
|
|
258
|
+
* "weixin": {
|
|
259
|
+
* "hostVer": "√",
|
|
260
|
+
* "uniVer": "√",
|
|
261
|
+
* "unixVer": "4.41"
|
|
262
|
+
* },
|
|
263
|
+
* "alipay": {
|
|
264
|
+
* "hostVer": "-",
|
|
265
|
+
* "uniVer": "-",
|
|
266
|
+
* "unixVer": "-"
|
|
267
|
+
* },
|
|
268
|
+
* "baidu": {
|
|
269
|
+
* "hostVer": "-",
|
|
270
|
+
* "uniVer": "-",
|
|
271
|
+
* "unixVer": "-"
|
|
272
|
+
* },
|
|
273
|
+
* "toutiao": {
|
|
274
|
+
* "hostVer": "-",
|
|
275
|
+
* "uniVer": "-",
|
|
276
|
+
* "unixVer": "-"
|
|
277
|
+
* },
|
|
278
|
+
* "lark": {
|
|
279
|
+
* "hostVer": "-",
|
|
280
|
+
* "uniVer": "-",
|
|
281
|
+
* "unixVer": "-"
|
|
282
|
+
* },
|
|
283
|
+
* "qq": {
|
|
284
|
+
* "hostVer": "-",
|
|
285
|
+
* "uniVer": "-",
|
|
286
|
+
* "unixVer": "-"
|
|
287
|
+
* },
|
|
288
|
+
* "kuaishou": {
|
|
289
|
+
* "hostVer": "-",
|
|
290
|
+
* "uniVer": "-",
|
|
291
|
+
* "unixVer": "-"
|
|
292
|
+
* },
|
|
293
|
+
* "jd": {
|
|
294
|
+
* "hostVer": "-",
|
|
295
|
+
* "uniVer": "-",
|
|
296
|
+
* "unixVer": "-"
|
|
297
|
+
* }
|
|
298
|
+
* }
|
|
299
|
+
* }
|
|
36
300
|
*/
|
|
37
301
|
success?: OpenDocumentSuccessCallback | null,
|
|
38
302
|
/**
|
|
39
303
|
* 接口调用失败的回调函数
|
|
304
|
+
* @uniPlatform {
|
|
305
|
+
* "mp": {
|
|
306
|
+
* "weixin": {
|
|
307
|
+
* "hostVer": "√",
|
|
308
|
+
* "uniVer": "√",
|
|
309
|
+
* "unixVer": "4.41"
|
|
310
|
+
* },
|
|
311
|
+
* "alipay": {
|
|
312
|
+
* "hostVer": "-",
|
|
313
|
+
* "uniVer": "-",
|
|
314
|
+
* "unixVer": "-"
|
|
315
|
+
* },
|
|
316
|
+
* "baidu": {
|
|
317
|
+
* "hostVer": "-",
|
|
318
|
+
* "uniVer": "-",
|
|
319
|
+
* "unixVer": "-"
|
|
320
|
+
* },
|
|
321
|
+
* "toutiao": {
|
|
322
|
+
* "hostVer": "-",
|
|
323
|
+
* "uniVer": "-",
|
|
324
|
+
* "unixVer": "-"
|
|
325
|
+
* },
|
|
326
|
+
* "lark": {
|
|
327
|
+
* "hostVer": "-",
|
|
328
|
+
* "uniVer": "-",
|
|
329
|
+
* "unixVer": "-"
|
|
330
|
+
* },
|
|
331
|
+
* "qq": {
|
|
332
|
+
* "hostVer": "-",
|
|
333
|
+
* "uniVer": "-",
|
|
334
|
+
* "unixVer": "-"
|
|
335
|
+
* },
|
|
336
|
+
* "kuaishou": {
|
|
337
|
+
* "hostVer": "-",
|
|
338
|
+
* "uniVer": "-",
|
|
339
|
+
* "unixVer": "-"
|
|
340
|
+
* },
|
|
341
|
+
* "jd": {
|
|
342
|
+
* "hostVer": "-",
|
|
343
|
+
* "uniVer": "-",
|
|
344
|
+
* "unixVer": "-"
|
|
345
|
+
* }
|
|
346
|
+
* }
|
|
347
|
+
* }
|
|
40
348
|
*/
|
|
41
349
|
fail?: OpenDocumentFailCallback | null,
|
|
42
350
|
/**
|
|
43
351
|
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
352
|
+
* @uniPlatform {
|
|
353
|
+
* "mp": {
|
|
354
|
+
* "weixin": {
|
|
355
|
+
* "hostVer": "√",
|
|
356
|
+
* "uniVer": "√",
|
|
357
|
+
* "unixVer": "4.41"
|
|
358
|
+
* },
|
|
359
|
+
* "alipay": {
|
|
360
|
+
* "hostVer": "-",
|
|
361
|
+
* "uniVer": "-",
|
|
362
|
+
* "unixVer": "-"
|
|
363
|
+
* },
|
|
364
|
+
* "baidu": {
|
|
365
|
+
* "hostVer": "-",
|
|
366
|
+
* "uniVer": "-",
|
|
367
|
+
* "unixVer": "-"
|
|
368
|
+
* },
|
|
369
|
+
* "toutiao": {
|
|
370
|
+
* "hostVer": "-",
|
|
371
|
+
* "uniVer": "-",
|
|
372
|
+
* "unixVer": "-"
|
|
373
|
+
* },
|
|
374
|
+
* "lark": {
|
|
375
|
+
* "hostVer": "-",
|
|
376
|
+
* "uniVer": "-",
|
|
377
|
+
* "unixVer": "-"
|
|
378
|
+
* },
|
|
379
|
+
* "qq": {
|
|
380
|
+
* "hostVer": "-",
|
|
381
|
+
* "uniVer": "-",
|
|
382
|
+
* "unixVer": "-"
|
|
383
|
+
* },
|
|
384
|
+
* "kuaishou": {
|
|
385
|
+
* "hostVer": "-",
|
|
386
|
+
* "uniVer": "-",
|
|
387
|
+
* "unixVer": "-"
|
|
388
|
+
* },
|
|
389
|
+
* "jd": {
|
|
390
|
+
* "hostVer": "-",
|
|
391
|
+
* "uniVer": "-",
|
|
392
|
+
* "unixVer": "-"
|
|
393
|
+
* }
|
|
394
|
+
* }
|
|
395
|
+
* }
|
|
44
396
|
*/
|
|
45
397
|
complete?: OpenDocumentCompleteCallback | null
|
|
398
|
+
/**
|
|
399
|
+
* 需要基础库: `2.11.0`
|
|
400
|
+
*
|
|
401
|
+
* 是否显示右上角菜单
|
|
402
|
+
*
|
|
403
|
+
* @uniPlatform {
|
|
404
|
+
* "mp": {
|
|
405
|
+
* "weixin": {
|
|
406
|
+
* "hostVer": "2.11.0",
|
|
407
|
+
* "uniVer": "√",
|
|
408
|
+
* "unixVer": "4.41"
|
|
409
|
+
* },
|
|
410
|
+
* "alipay": {
|
|
411
|
+
* "hostVer": "-",
|
|
412
|
+
* "uniVer": "-",
|
|
413
|
+
* "unixVer": "-"
|
|
414
|
+
* },
|
|
415
|
+
* "baidu": {
|
|
416
|
+
* "hostVer": "-",
|
|
417
|
+
* "uniVer": "-",
|
|
418
|
+
* "unixVer": "-"
|
|
419
|
+
* },
|
|
420
|
+
* "toutiao": {
|
|
421
|
+
* "hostVer": "-",
|
|
422
|
+
* "uniVer": "-",
|
|
423
|
+
* "unixVer": "-"
|
|
424
|
+
* },
|
|
425
|
+
* "lark": {
|
|
426
|
+
* "hostVer": "-",
|
|
427
|
+
* "uniVer": "-",
|
|
428
|
+
* "unixVer": "-"
|
|
429
|
+
* },
|
|
430
|
+
* "qq": {
|
|
431
|
+
* "hostVer": "-",
|
|
432
|
+
* "uniVer": "-",
|
|
433
|
+
* "unixVer": "-"
|
|
434
|
+
* },
|
|
435
|
+
* "kuaishou": {
|
|
436
|
+
* "hostVer": "-",
|
|
437
|
+
* "uniVer": "-",
|
|
438
|
+
* "unixVer": "-"
|
|
439
|
+
* },
|
|
440
|
+
* "jd": {
|
|
441
|
+
* "hostVer": "-",
|
|
442
|
+
* "uniVer": "-",
|
|
443
|
+
* "unixVer": "-"
|
|
444
|
+
* }
|
|
445
|
+
* }
|
|
446
|
+
* }
|
|
447
|
+
*/
|
|
448
|
+
showMenu?: boolean | null;
|
|
46
449
|
}
|
|
47
450
|
|
|
48
451
|
|
|
@@ -50,61 +453,62 @@ export interface Uni {
|
|
|
50
453
|
/**
|
|
51
454
|
* 打开文档
|
|
52
455
|
* @uniPlatform {
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
456
|
+
* "app": {
|
|
457
|
+
* "harmony": {
|
|
458
|
+
* "osVer": "3.0",
|
|
459
|
+
* "uniVer": "4.23",
|
|
460
|
+
* "unixVer": "x"
|
|
461
|
+
* }
|
|
462
|
+
* },
|
|
463
|
+
* "mp": {
|
|
464
|
+
* "weixin": {
|
|
465
|
+
* "hostVer": "2.15.0",
|
|
466
|
+
* "uniVer": "√",
|
|
467
|
+
* "unixVer": "4.41"
|
|
468
|
+
* },
|
|
469
|
+
* "alipay": {
|
|
470
|
+
* "hostVer": "√",
|
|
471
|
+
* "uniVer": "√",
|
|
472
|
+
* "unixVer": "x"
|
|
473
|
+
* },
|
|
474
|
+
* "baidu": {
|
|
475
|
+
* "hostVer": "√",
|
|
476
|
+
* "uniVer": "√",
|
|
477
|
+
* "unixVer": "x"
|
|
478
|
+
* },
|
|
479
|
+
* "toutiao": {
|
|
480
|
+
* "hostVer": "√",
|
|
481
|
+
* "uniVer": "√",
|
|
482
|
+
* "unixVer": "x"
|
|
483
|
+
* },
|
|
484
|
+
* "lark": {
|
|
485
|
+
* "hostVer": "√",
|
|
486
|
+
* "uniVer": "√",
|
|
487
|
+
* "unixVer": "x"
|
|
488
|
+
* },
|
|
489
|
+
* "qq": {
|
|
490
|
+
* "hostVer": "√",
|
|
491
|
+
* "uniVer": "√",
|
|
492
|
+
* "unixVer": "x"
|
|
493
|
+
* },
|
|
494
|
+
* "kuaishou": {
|
|
495
|
+
* "hostVer": "√",
|
|
496
|
+
* "uniVer": "√",
|
|
497
|
+
* "unixVer": "x"
|
|
498
|
+
* },
|
|
499
|
+
* "jd": {
|
|
500
|
+
* "hostVer": "√",
|
|
501
|
+
* "uniVer": "√",
|
|
502
|
+
* "unixVer": "x"
|
|
503
|
+
* }
|
|
504
|
+
* },
|
|
505
|
+
* "web": {
|
|
506
|
+
* "uniVer": "x",
|
|
507
|
+
* "unixVer": "x"
|
|
508
|
+
* }
|
|
106
509
|
* }
|
|
107
510
|
* @uniVueVersion 2,3 //支持的vue版本
|
|
511
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.openDocument.html
|
|
108
512
|
*/
|
|
109
513
|
openDocument(options?: OpenDocumentOptions | null): void;
|
|
110
514
|
}
|