@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
|
@@ -3,18 +3,22 @@ export interface Uni {
|
|
|
3
3
|
* @description 获取一键登录管理对象
|
|
4
4
|
* @tutorial https://uniapp.dcloud.net.cn/univerify.html#univerifymanager
|
|
5
5
|
* @uniPlatform {
|
|
6
|
-
*
|
|
6
|
+
* "app": {
|
|
7
7
|
* "android": {
|
|
8
|
-
*
|
|
8
|
+
* "osVer": "4.4",
|
|
9
9
|
* "uniVer": "√",
|
|
10
10
|
* "unixVer": "3.99"
|
|
11
11
|
* },
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* "ios": {
|
|
13
|
+
* "osVer": "12.0",
|
|
14
14
|
* "uniVer": "√",
|
|
15
15
|
* "unixVer": "4.18"
|
|
16
|
-
*
|
|
17
|
-
* }
|
|
16
|
+
* }
|
|
17
|
+
* },
|
|
18
|
+
* "web": {
|
|
19
|
+
* "uniVer": "x",
|
|
20
|
+
* "unixVer": "x"
|
|
21
|
+
* }
|
|
18
22
|
* }
|
|
19
23
|
*/
|
|
20
24
|
getUniverifyManager : GetUniverifyManager
|
|
@@ -58,7 +58,12 @@ export interface VideoContext {
|
|
|
58
58
|
* "osVer": "12.0",
|
|
59
59
|
* "uniVer": "√",
|
|
60
60
|
* "unixVer": "4.11"
|
|
61
|
-
* }
|
|
61
|
+
* },
|
|
62
|
+
* "harmony": {
|
|
63
|
+
* "osVer": "3.0",
|
|
64
|
+
* "uniVer": "4.23",
|
|
65
|
+
* "unixVer": "x"
|
|
66
|
+
* }
|
|
62
67
|
* },
|
|
63
68
|
* "web": {
|
|
64
69
|
* "uniVer": "√",
|
|
@@ -81,7 +86,12 @@ export interface VideoContext {
|
|
|
81
86
|
* "osVer": "12.0",
|
|
82
87
|
* "uniVer": "√",
|
|
83
88
|
* "unixVer": "4.11"
|
|
84
|
-
* }
|
|
89
|
+
* },
|
|
90
|
+
* "harmony": {
|
|
91
|
+
* "osVer": "3.0",
|
|
92
|
+
* "uniVer": "4.23",
|
|
93
|
+
* "unixVer": "x"
|
|
94
|
+
* }
|
|
85
95
|
* },
|
|
86
96
|
* "web": {
|
|
87
97
|
* "uniVer": "√",
|
|
@@ -105,7 +115,12 @@ export interface VideoContext {
|
|
|
105
115
|
* "osVer": "12.0",
|
|
106
116
|
* "uniVer": "√",
|
|
107
117
|
* "unixVer": "4.11"
|
|
108
|
-
* }
|
|
118
|
+
* },
|
|
119
|
+
* "harmony": {
|
|
120
|
+
* "osVer": "3.0",
|
|
121
|
+
* "uniVer": "4.23",
|
|
122
|
+
* "unixVer": "x"
|
|
123
|
+
* }
|
|
109
124
|
* },
|
|
110
125
|
* "web": {
|
|
111
126
|
* "uniVer": "√",
|
|
@@ -128,7 +143,12 @@ export interface VideoContext {
|
|
|
128
143
|
* "osVer": "12.0",
|
|
129
144
|
* "uniVer": "√",
|
|
130
145
|
* "unixVer": "4.11"
|
|
131
|
-
* }
|
|
146
|
+
* },
|
|
147
|
+
* "harmony": {
|
|
148
|
+
* "osVer": "3.0",
|
|
149
|
+
* "uniVer": "4.23",
|
|
150
|
+
* "unixVer": "x"
|
|
151
|
+
* }
|
|
132
152
|
* },
|
|
133
153
|
* "web": {
|
|
134
154
|
* "uniVer": "√",
|
|
@@ -152,7 +172,12 @@ export interface VideoContext {
|
|
|
152
172
|
* "osVer": "12.0",
|
|
153
173
|
* "uniVer": "√",
|
|
154
174
|
* "unixVer": "4.11"
|
|
155
|
-
* }
|
|
175
|
+
* },
|
|
176
|
+
* "harmony": {
|
|
177
|
+
* "osVer": "3.0",
|
|
178
|
+
* "uniVer": "4.23",
|
|
179
|
+
* "unixVer": "x"
|
|
180
|
+
* }
|
|
156
181
|
* },
|
|
157
182
|
* "web": {
|
|
158
183
|
* "uniVer": "√",
|
|
@@ -176,7 +201,12 @@ export interface VideoContext {
|
|
|
176
201
|
* "osVer": "12.0",
|
|
177
202
|
* "uniVer": "√",
|
|
178
203
|
* "unixVer": "4.11"
|
|
179
|
-
* }
|
|
204
|
+
* },
|
|
205
|
+
* "harmony": {
|
|
206
|
+
* "osVer": "3.0",
|
|
207
|
+
* "uniVer": "4.23",
|
|
208
|
+
* "unixVer": "x"
|
|
209
|
+
* }
|
|
180
210
|
* },
|
|
181
211
|
* "web": {
|
|
182
212
|
* "uniVer": "√",
|
|
@@ -200,7 +230,12 @@ export interface VideoContext {
|
|
|
200
230
|
* "osVer": "12.0",
|
|
201
231
|
* "uniVer": "√",
|
|
202
232
|
* "unixVer": "4.11"
|
|
203
|
-
* }
|
|
233
|
+
* },
|
|
234
|
+
* "harmony": {
|
|
235
|
+
* "osVer": "3.0",
|
|
236
|
+
* "uniVer": "4.23",
|
|
237
|
+
* "unixVer": "x"
|
|
238
|
+
* }
|
|
204
239
|
* },
|
|
205
240
|
* "web": {
|
|
206
241
|
* "uniVer": "√",
|
|
@@ -224,7 +259,12 @@ export interface VideoContext {
|
|
|
224
259
|
* "osVer": "12.0",
|
|
225
260
|
* "uniVer": "√",
|
|
226
261
|
* "unixVer": "4.11"
|
|
227
|
-
* }
|
|
262
|
+
* },
|
|
263
|
+
* "harmony": {
|
|
264
|
+
* "osVer": "3.0",
|
|
265
|
+
* "uniVer": "4.23",
|
|
266
|
+
* "unixVer": "x"
|
|
267
|
+
* }
|
|
228
268
|
* },
|
|
229
269
|
* "web": {
|
|
230
270
|
* "uniVer": "√",
|
|
@@ -239,7 +279,6 @@ export interface VideoContext {
|
|
|
239
279
|
export interface Uni {
|
|
240
280
|
/**
|
|
241
281
|
* 创建并返回 video 上下文 videoContext 对象
|
|
242
|
-
* @description 创建并返回 video 上下文 videoContext 对象
|
|
243
282
|
* @uniPlatform {
|
|
244
283
|
* "app": {
|
|
245
284
|
* "android": {
|
|
@@ -251,17 +290,66 @@ export interface Uni {
|
|
|
251
290
|
* "osVer": "12.0",
|
|
252
291
|
* "uniVer": "√",
|
|
253
292
|
* "unixVer": "4.11"
|
|
254
|
-
* }
|
|
293
|
+
* },
|
|
294
|
+
* "harmony": {
|
|
295
|
+
* "osVer": "3.0",
|
|
296
|
+
* "uniVer": "4.23",
|
|
297
|
+
* "unixVer": "x"
|
|
298
|
+
* }
|
|
255
299
|
* },
|
|
256
300
|
* "web": {
|
|
257
301
|
* "uniVer": "√",
|
|
258
302
|
* "unixVer": "4.0"
|
|
259
|
-
* }
|
|
303
|
+
* },
|
|
304
|
+
* "mp": {
|
|
305
|
+
* "weixin": {
|
|
306
|
+
* "hostVer": "√",
|
|
307
|
+
* "uniVer": "√",
|
|
308
|
+
* "unixVer": "x"
|
|
309
|
+
* },
|
|
310
|
+
* "alipay": {
|
|
311
|
+
* "hostVer": "1.10.0",
|
|
312
|
+
* "uniVer": "√",
|
|
313
|
+
* "unixVer": "x"
|
|
314
|
+
* },
|
|
315
|
+
* "baidu": {
|
|
316
|
+
* "hostVer": "√",
|
|
317
|
+
* "uniVer": "√",
|
|
318
|
+
* "unixVer": "x"
|
|
319
|
+
* },
|
|
320
|
+
* "toutiao": {
|
|
321
|
+
* "hostVer": "√",
|
|
322
|
+
* "uniVer": "√",
|
|
323
|
+
* "unixVer": "x"
|
|
324
|
+
* },
|
|
325
|
+
* "lark": {
|
|
326
|
+
* "hostVer": "√",
|
|
327
|
+
* "uniVer": "√",
|
|
328
|
+
* "unixVer": "x"
|
|
329
|
+
* },
|
|
330
|
+
* "qq": {
|
|
331
|
+
* "hostVer": "√",
|
|
332
|
+
* "uniVer": "√",
|
|
333
|
+
* "unixVer": "x"
|
|
334
|
+
* },
|
|
335
|
+
* "kuaishou": {
|
|
336
|
+
* "hostVer": "√",
|
|
337
|
+
* "uniVer": "√",
|
|
338
|
+
* "unixVer": "x"
|
|
339
|
+
* },
|
|
340
|
+
* "jd": {
|
|
341
|
+
* "hostVer": "√",
|
|
342
|
+
* "uniVer": "√",
|
|
343
|
+
* "unixVer": "x"
|
|
344
|
+
* }
|
|
345
|
+
* }
|
|
260
346
|
* }
|
|
261
347
|
* @uniVueVersion 2,3
|
|
262
348
|
* @return {VideoContext} video组件上下文对象
|
|
263
349
|
*
|
|
264
|
-
* @tutorial
|
|
350
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/video-context.html#createvideocontext
|
|
351
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/create-video-context.html#createvideocontext
|
|
352
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/create-video-context.html#createvideocontext
|
|
265
353
|
*
|
|
266
354
|
*/
|
|
267
355
|
createVideoContext : CreateVideoContext
|
|
@@ -269,12 +357,41 @@ export interface Uni {
|
|
|
269
357
|
|
|
270
358
|
/**
|
|
271
359
|
* 通用事件
|
|
360
|
+
* 临时方案,规避组件Event接口无法直接继承UniEvent的问题
|
|
272
361
|
*/
|
|
273
362
|
interface UniVideoEvent {
|
|
363
|
+
/**
|
|
364
|
+
* 是否冒泡
|
|
365
|
+
*/
|
|
366
|
+
bubbles : boolean
|
|
367
|
+
/**
|
|
368
|
+
* 是否可以取消
|
|
369
|
+
*/
|
|
370
|
+
cancelable : boolean
|
|
371
|
+
/**
|
|
372
|
+
* 事件类型
|
|
373
|
+
*/
|
|
274
374
|
type : string
|
|
275
|
-
|
|
276
|
-
|
|
375
|
+
/**
|
|
376
|
+
* 触发事件的组件
|
|
377
|
+
*/
|
|
378
|
+
target ?: UniElement | null
|
|
379
|
+
/**
|
|
380
|
+
* 当前组件
|
|
381
|
+
*/
|
|
382
|
+
currentTarget ?: UniElement | null
|
|
383
|
+
/**
|
|
384
|
+
* 事件发生时的时间戳
|
|
385
|
+
*/
|
|
277
386
|
timeStamp : Long
|
|
387
|
+
/**
|
|
388
|
+
* 阻止当前事件的进一步传播
|
|
389
|
+
*/
|
|
390
|
+
stopPropagation() : void
|
|
391
|
+
/**
|
|
392
|
+
* 阻止当前事件的默认行为
|
|
393
|
+
*/
|
|
394
|
+
preventDefault() : void
|
|
278
395
|
}
|
|
279
396
|
|
|
280
397
|
/**
|
|
@@ -402,4 +519,4 @@ export type VideoProgressEventDetail = UniVideoProgressEventDetail
|
|
|
402
519
|
export type VideoFullScreenClickEvent = UniVideoFullScreenClickEvent
|
|
403
520
|
export type VideoFullScreenClickEventDetail = UniVideoFullScreenClickEventDetail
|
|
404
521
|
export type VideoControlsToggleEvent = UniVideoControlsToggleEvent
|
|
405
|
-
export type VideoControlsToggleEventDetail = UniVideoControlsToggleEventDetail
|
|
522
|
+
export type VideoControlsToggleEventDetail = UniVideoControlsToggleEventDetail
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference path='./lib/uni-chooseLocation/utssdk/global.d.ts' />
|
|
2
2
|
/// <reference path='./lib/uni-createInnerAudioContext/utssdk/global.d.ts' />
|
|
3
3
|
/// <reference path='./lib/uni-createMapContext/utssdk/global.d.ts' />
|
|
4
|
-
/// <reference path='./lib/uni-makePhoneCall/utssdk/global.d.ts' />
|
|
5
4
|
/// <reference path='./lib/uni-openLocation/utssdk/global.d.ts' />
|
|
6
5
|
/// <reference path='./lib/uni-compass/utssdk/global.d.ts' />
|
|
7
6
|
/// <reference path='./lib/uni-canvas/utssdk/global.d.ts' />
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
export * from './lib/uni-chooseLocation/utssdk/index'
|
|
2
2
|
export * from './lib/uni-createInnerAudioContext/utssdk/index'
|
|
3
3
|
export * from './lib/uni-createMapContext/utssdk/index'
|
|
4
|
-
export * from './lib/uni-makePhoneCall/utssdk/index'
|
|
5
4
|
export * from './lib/uni-openLocation/utssdk/index'
|
|
6
|
-
export * from './lib/uni-setClipboardData/utssdk/index'
|
|
7
|
-
export * from './lib/uni-getClipboardData/utssdk/index'
|
|
8
5
|
export * from './lib/uni-compass/utssdk/index'
|
|
9
6
|
export * from './lib/uni-canvas/utssdk/index'
|
|
10
7
|
export * from './lib/uni-locale/utssdk/index'
|
|
@@ -20,7 +20,7 @@ export interface Uni {
|
|
|
20
20
|
* },
|
|
21
21
|
* "harmony": {
|
|
22
22
|
* "osVer": "3.0",
|
|
23
|
-
* "uniVer": "4.
|
|
23
|
+
* "uniVer": "4.23",
|
|
24
24
|
* "unixVer": "x"
|
|
25
25
|
* }
|
|
26
26
|
* },
|
|
@@ -91,7 +91,7 @@ export interface Uni {
|
|
|
91
91
|
* },
|
|
92
92
|
* "harmony": {
|
|
93
93
|
* "osVer": "3.0",
|
|
94
|
-
* "uniVer": "4.
|
|
94
|
+
* "uniVer": "4.23",
|
|
95
95
|
* "unixVer": "x"
|
|
96
96
|
* }
|
|
97
97
|
* },
|
|
@@ -161,7 +161,7 @@ export interface Uni {
|
|
|
161
161
|
* },
|
|
162
162
|
* "harmony": {
|
|
163
163
|
* "osVer": "3.0",
|
|
164
|
-
* "uniVer": "4.
|
|
164
|
+
* "uniVer": "4.23",
|
|
165
165
|
* "unixVer": "x"
|
|
166
166
|
* }
|
|
167
167
|
* },
|
|
@@ -231,7 +231,7 @@ export interface Uni {
|
|
|
231
231
|
* },
|
|
232
232
|
* "harmony": {
|
|
233
233
|
* "osVer": "3.0",
|
|
234
|
-
* "uniVer": "4.
|
|
234
|
+
* "uniVer": "4.23",
|
|
235
235
|
* "unixVer": "x"
|
|
236
236
|
* }
|
|
237
237
|
* },
|
|
@@ -18,7 +18,7 @@ export interface Uni {
|
|
|
18
18
|
* },
|
|
19
19
|
* "harmony": {
|
|
20
20
|
* "osVer": "3.0",
|
|
21
|
-
* "uniVer": "4.
|
|
21
|
+
* "uniVer": "4.23",
|
|
22
22
|
* "unixVer": "x"
|
|
23
23
|
* }
|
|
24
24
|
* },
|
|
@@ -90,7 +90,7 @@ export interface Uni {
|
|
|
90
90
|
* },
|
|
91
91
|
* "harmony": {
|
|
92
92
|
* "osVer": "3.0",
|
|
93
|
-
* "uniVer": "4.
|
|
93
|
+
* "uniVer": "4.23",
|
|
94
94
|
* "unixVer": "x"
|
|
95
95
|
* }
|
|
96
96
|
* },
|
|
@@ -162,7 +162,7 @@ export interface Uni {
|
|
|
162
162
|
* },
|
|
163
163
|
* "harmony": {
|
|
164
164
|
* "osVer": "3.0",
|
|
165
|
-
* "uniVer": "4.
|
|
165
|
+
* "uniVer": "4.23",
|
|
166
166
|
* "unixVer": "x"
|
|
167
167
|
* }
|
|
168
168
|
* },
|
|
@@ -24,17 +24,21 @@ type UniCloudInitOptions = {
|
|
|
24
24
|
*/
|
|
25
25
|
endpoint ?: string
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* 支付宝云spaceAppId
|
|
28
28
|
*/
|
|
29
29
|
spaceAppId ?: string
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* 支付宝云accessKey
|
|
32
32
|
*/
|
|
33
33
|
accessKey ?: string
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* 支付宝云secretKey
|
|
36
36
|
*/
|
|
37
37
|
secretKey ?: string
|
|
38
|
+
/**
|
|
39
|
+
* 支付宝云 WebSocket Endpoint
|
|
40
|
+
*/
|
|
41
|
+
wsEndpoint ?: string
|
|
38
42
|
};
|
|
39
43
|
type UniCloudCallFunctionOptions = {
|
|
40
44
|
/**
|
|
@@ -259,6 +263,28 @@ declare class UniCloudError extends Error {
|
|
|
259
263
|
errCode: any;
|
|
260
264
|
errSubject?: string;
|
|
261
265
|
requestId?: string;
|
|
266
|
+
/**
|
|
267
|
+
* 错误详情
|
|
268
|
+
* @description 合并查询请求
|
|
269
|
+
* @uniPlatform {
|
|
270
|
+
* "app": {
|
|
271
|
+
* "android": {
|
|
272
|
+
* "osVer": "5.0",
|
|
273
|
+
* "uniVer": "√",
|
|
274
|
+
* "unixVer": "4.24"
|
|
275
|
+
* },
|
|
276
|
+
* "ios": {
|
|
277
|
+
* "uniVer": "√",
|
|
278
|
+
* "unixVer": "4.11"
|
|
279
|
+
* }
|
|
280
|
+
* },
|
|
281
|
+
* "web": {
|
|
282
|
+
* "uniVer": "√",
|
|
283
|
+
* "unixVer": "4.0"
|
|
284
|
+
* }
|
|
285
|
+
* }
|
|
286
|
+
*/
|
|
287
|
+
detail?: UTSJSONObject;
|
|
262
288
|
constructor(message: string, code: string, subject?: string, options?: UTSJSONObject);
|
|
263
289
|
private _init;
|
|
264
290
|
toJson(): UTSJSONObject;
|
|
@@ -637,6 +663,12 @@ type UniCloudChooseFileItem = {
|
|
|
637
663
|
url?: string | null;
|
|
638
664
|
errMsg?: string | null;
|
|
639
665
|
};
|
|
666
|
+
type UniCloudConnectWebSocketOptions = {
|
|
667
|
+
/** WebSocket云函数/云对象名称 */
|
|
668
|
+
name: string;
|
|
669
|
+
/** 建立连接时需要传递的参数, 仅在 connection 事件中接收到 */
|
|
670
|
+
query?: UTSJSONObject;
|
|
671
|
+
}
|
|
640
672
|
|
|
641
673
|
declare class UniCloud {
|
|
642
674
|
private _client;
|
|
@@ -930,6 +962,28 @@ declare class UniCloud {
|
|
|
930
962
|
* }
|
|
931
963
|
*/
|
|
932
964
|
chooseAndUploadFile(options: UniCloudChooseAndUploadFileOptions): Promise<UniCloudChooseAndUploadFileResult>;
|
|
965
|
+
/**
|
|
966
|
+
* 连接 WebSocket
|
|
967
|
+
* @description 连接 WebSocket
|
|
968
|
+
* @uniPlatform {
|
|
969
|
+
* "app": {
|
|
970
|
+
* "android": {
|
|
971
|
+
* "osVer": "5.0",
|
|
972
|
+
* "uniVer": "4.23",
|
|
973
|
+
* "unixVer": "4.24"
|
|
974
|
+
* },
|
|
975
|
+
* "ios": {
|
|
976
|
+
* "uniVer": "4.23",
|
|
977
|
+
* "unixVer": "4.24"
|
|
978
|
+
* }
|
|
979
|
+
* },
|
|
980
|
+
* "web": {
|
|
981
|
+
* "uniVer": "4.23",
|
|
982
|
+
* "unixVer": "4.24"
|
|
983
|
+
* }
|
|
984
|
+
* }
|
|
985
|
+
*/
|
|
986
|
+
connectWebSocket (options: UniCloudConnectWebSocketOptions) : SocketTask;
|
|
933
987
|
}
|
|
934
988
|
|
|
935
989
|
declare const uniCloud: UniCloud;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
// 本文件为自动构建生成
|
|
2
|
-
import {
|
|
3
|
-
Request as RequestOrigin,
|
|
4
|
-
RequestOptions as RequestOptionsOrigin,
|
|
5
|
-
RequestSuccess as RequestSuccessOrigin,
|
|
6
|
-
RequestMethod as RequestMethodOrigin,
|
|
7
|
-
RequestErrorCode as RequestErrorCodeOrigin,
|
|
8
|
-
RequestFail as RequestFailOrigin,
|
|
9
|
-
RequestFail as RequestFailOrigin,
|
|
10
|
-
RequestSuccessCallback as RequestSuccessCallbackOrigin,
|
|
11
|
-
RequestFailCallback as RequestFailCallbackOrigin,
|
|
12
|
-
RequestCompleteCallback as RequestCompleteCallbackOrigin,
|
|
13
|
-
RequestTask as RequestTaskOrigin,
|
|
14
|
-
UploadFile as UploadFileOrigin,
|
|
15
|
-
UploadFileOptionFiles as UploadFileOptionFilesOrigin,
|
|
16
|
-
UploadFileSuccess as UploadFileSuccessOrigin,
|
|
17
|
-
UploadFileSuccessCallback as UploadFileSuccessCallbackOrigin,
|
|
18
|
-
UploadFileFail as UploadFileFailOrigin,
|
|
19
|
-
UploadFileFail as UploadFileFailOrigin,
|
|
20
|
-
UploadFileFailCallback as UploadFileFailCallbackOrigin,
|
|
21
|
-
UploadFileCompleteCallback as UploadFileCompleteCallbackOrigin,
|
|
22
|
-
UploadFileOptions as UploadFileOptionsOrigin,
|
|
23
|
-
OnProgressUpdateResult as OnProgressUpdateResultOrigin,
|
|
24
|
-
UploadFileProgressUpdateCallback as UploadFileProgressUpdateCallbackOrigin,
|
|
25
|
-
UploadTask as UploadTaskOrigin,
|
|
26
|
-
DownloadFile as DownloadFileOrigin,
|
|
27
|
-
DownloadFileSuccess as DownloadFileSuccessOrigin,
|
|
28
|
-
DownloadFileSuccessCallback as DownloadFileSuccessCallbackOrigin,
|
|
29
|
-
DownloadFileFail as DownloadFileFailOrigin,
|
|
30
|
-
DownloadFileFail as DownloadFileFailOrigin,
|
|
31
|
-
DownloadFileFailCallback as DownloadFileFailCallbackOrigin,
|
|
32
|
-
DownloadFileComplete as DownloadFileCompleteOrigin,
|
|
33
|
-
DownloadFileCompleteCallback as DownloadFileCompleteCallbackOrigin,
|
|
34
|
-
DownloadFileOptions as DownloadFileOptionsOrigin,
|
|
35
|
-
OnProgressDownloadResult as OnProgressDownloadResultOrigin,
|
|
36
|
-
DownloadFileProgressUpdateCallback as DownloadFileProgressUpdateCallbackOrigin,
|
|
37
|
-
DownloadTask as DownloadTaskOrigin,
|
|
38
|
-
Uni as UniOrigin
|
|
39
|
-
} from './interface'
|
|
40
|
-
|
|
41
|
-
declare global {
|
|
42
|
-
type Request<T> = RequestOrigin<T>
|
|
43
|
-
type RequestOptions<T> = RequestOptionsOrigin<T>
|
|
44
|
-
type RequestSuccess<T> = RequestSuccessOrigin<T>
|
|
45
|
-
type RequestMethod = RequestMethodOrigin
|
|
46
|
-
type RequestErrorCode = RequestErrorCodeOrigin
|
|
47
|
-
type RequestFail = RequestFailOrigin
|
|
48
|
-
type RequestFail = RequestFailOrigin
|
|
49
|
-
type RequestSuccessCallback<T> = RequestSuccessCallbackOrigin<T>
|
|
50
|
-
type RequestFailCallback = RequestFailCallbackOrigin
|
|
51
|
-
type RequestCompleteCallback = RequestCompleteCallbackOrigin
|
|
52
|
-
type RequestTask = RequestTaskOrigin
|
|
53
|
-
type UploadFile = UploadFileOrigin
|
|
54
|
-
type UploadFileOptionFiles = UploadFileOptionFilesOrigin
|
|
55
|
-
type UploadFileSuccess = UploadFileSuccessOrigin
|
|
56
|
-
type UploadFileSuccessCallback = UploadFileSuccessCallbackOrigin
|
|
57
|
-
type UploadFileFail = UploadFileFailOrigin
|
|
58
|
-
type UploadFileFail = UploadFileFailOrigin
|
|
59
|
-
type UploadFileFailCallback = UploadFileFailCallbackOrigin
|
|
60
|
-
type UploadFileCompleteCallback = UploadFileCompleteCallbackOrigin
|
|
61
|
-
type UploadFileOptions = UploadFileOptionsOrigin
|
|
62
|
-
type OnProgressUpdateResult = OnProgressUpdateResultOrigin
|
|
63
|
-
type UploadFileProgressUpdateCallback = UploadFileProgressUpdateCallbackOrigin
|
|
64
|
-
type UploadTask = UploadTaskOrigin
|
|
65
|
-
type DownloadFile = DownloadFileOrigin
|
|
66
|
-
type DownloadFileSuccess = DownloadFileSuccessOrigin
|
|
67
|
-
type DownloadFileSuccessCallback = DownloadFileSuccessCallbackOrigin
|
|
68
|
-
type DownloadFileFail = DownloadFileFailOrigin
|
|
69
|
-
type DownloadFileFail = DownloadFileFailOrigin
|
|
70
|
-
type DownloadFileFailCallback = DownloadFileFailCallbackOrigin
|
|
71
|
-
type DownloadFileComplete = DownloadFileCompleteOrigin
|
|
72
|
-
type DownloadFileCompleteCallback = DownloadFileCompleteCallbackOrigin
|
|
73
|
-
type DownloadFileOptions = DownloadFileOptionsOrigin
|
|
74
|
-
type OnProgressDownloadResult = OnProgressDownloadResultOrigin
|
|
75
|
-
type DownloadFileProgressUpdateCallback = DownloadFileProgressUpdateCallbackOrigin
|
|
76
|
-
type DownloadTask = DownloadTaskOrigin
|
|
77
|
-
interface Uni extends UniOrigin { }
|
|
78
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// 本文件为自动构建生成
|
|
2
|
-
export {
|
|
3
|
-
Request,
|
|
4
|
-
RequestOptions,
|
|
5
|
-
RequestSuccess,
|
|
6
|
-
RequestMethod,
|
|
7
|
-
RequestErrorCode,
|
|
8
|
-
RequestFail,
|
|
9
|
-
RequestFail,
|
|
10
|
-
RequestSuccessCallback,
|
|
11
|
-
RequestFailCallback,
|
|
12
|
-
RequestCompleteCallback,
|
|
13
|
-
RequestTask,
|
|
14
|
-
UploadFile,
|
|
15
|
-
UploadFileOptionFiles,
|
|
16
|
-
UploadFileSuccess,
|
|
17
|
-
UploadFileSuccessCallback,
|
|
18
|
-
UploadFileFail,
|
|
19
|
-
UploadFileFail,
|
|
20
|
-
UploadFileFailCallback,
|
|
21
|
-
UploadFileCompleteCallback,
|
|
22
|
-
UploadFileOptions,
|
|
23
|
-
OnProgressUpdateResult,
|
|
24
|
-
UploadFileProgressUpdateCallback,
|
|
25
|
-
UploadTask,
|
|
26
|
-
DownloadFile,
|
|
27
|
-
DownloadFileSuccess,
|
|
28
|
-
DownloadFileSuccessCallback,
|
|
29
|
-
DownloadFileFail,
|
|
30
|
-
DownloadFileFail,
|
|
31
|
-
DownloadFileFailCallback,
|
|
32
|
-
DownloadFileComplete,
|
|
33
|
-
DownloadFileCompleteCallback,
|
|
34
|
-
DownloadFileOptions,
|
|
35
|
-
OnProgressDownloadResult,
|
|
36
|
-
DownloadFileProgressUpdateCallback,
|
|
37
|
-
DownloadTask,
|
|
38
|
-
} from './interface'
|