@dcloudio/uni-app-x 0.7.4 → 0.7.5
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 +1 -1
- package/types/app.d.ts +9 -9
- package/types/native/CSSStyleDeclaration.d.ts +4 -2
- package/types/native/IUniElement.d.ts +26 -4
- package/types/native/UniApp.d.ts +2 -2
- package/types/native/UniCustomEvent.d.ts +25 -0
- package/types/native/UniElement.d.ts +6 -3
- package/types/native/{Event.d.ts → UniEvent.d.ts} +8 -2
- package/types/native/UniImageErrorEvent.d.ts +16 -0
- package/types/native/UniImageLoadEvent.d.ts +20 -0
- package/types/native/UniInputBlurEvent.d.ts +20 -0
- package/types/native/UniInputConfirmEvent.d.ts +16 -0
- package/types/native/{InputEvent.d.ts → UniInputEvent.d.ts} +6 -3
- package/types/native/{TextareaFocusEvent.d.ts → UniInputFocusEvent.d.ts} +6 -3
- package/types/native/UniInputKeyboardHeightChangeEvent.d.ts +20 -0
- package/types/native/{NestedPreScrollEvent.d.ts → UniNestedPreScrollEvent.d.ts} +26 -22
- package/types/native/UniPage.d.ts +4 -4
- package/types/native/UniPageEvent.d.ts +11 -0
- package/types/native/UniPageScrollEvent.d.ts +14 -0
- package/types/native/{PointerEvent.d.ts → UniPointerEvent.d.ts} +11 -4
- package/types/native/UniRefresherEvent.d.ts +14 -0
- package/types/native/{ResizeEvent.d.ts → UniResizeEvent.d.ts} +6 -3
- package/types/native/{RichTextItemClickEvent.d.ts → UniRichTextItemClickEvent.d.ts} +5 -2
- package/types/native/{ScrollEvent.d.ts → UniScrollEvent.d.ts} +6 -3
- package/types/native/UniScrollToLowerEvent.d.ts +16 -0
- package/types/native/UniScrollToUpperEvent.d.ts +16 -0
- package/types/native/{StartNestedScrollEvent.d.ts → UniStartNestedScrollEvent.d.ts} +6 -3
- package/types/native/{StopNestedScrollEvent.d.ts → UniStopNestedScrollEvent.d.ts} +5 -2
- package/types/native/{SwiperAnimationFinishEvent.d.ts → UniSwiperAnimationFinishEvent.d.ts} +5 -2
- package/types/native/{SwiperChangeEvent.d.ts → UniSwiperChangeEvent.d.ts} +5 -2
- package/types/native/{SwiperTransitionEvent.d.ts → UniSwiperTransitionEvent.d.ts} +5 -2
- package/types/native/{TabTapEvent.d.ts → UniTabTapEvent.d.ts} +6 -3
- package/types/native/UniTextElement.d.ts +3 -0
- package/types/native/UniTextareaBlurEvent.d.ts +20 -0
- package/types/native/{InputFocusEvent.d.ts → UniTextareaFocusEvent.d.ts} +7 -3
- package/types/native/UniTextareaLineChangeEvent.d.ts +24 -0
- package/types/native/{TouchEvent.d.ts → UniTouchEvent.d.ts} +13 -6
- package/types/native/UniVideoElement.d.ts +5 -5
- package/types/native/{WebViewDownloadEvent.d.ts → UniWebViewDownloadEvent.d.ts} +10 -4
- package/types/native/{WebViewErrorEvent.d.ts → UniWebViewErrorEvent.d.ts} +10 -4
- package/types/native/UniWebViewLoadEvent.d.ts +27 -0
- package/types/native/UniWebViewLoadingEvent.d.ts +28 -0
- package/types/native/UniWebViewMessageEvent.d.ts +27 -0
- package/types/native/UniWebViewServiceMessageEvent.d.ts +1 -1
- package/types/native/global.d.ts +238 -111
- package/types/native/index.d.ts +34 -34
- package/types/page.d.ts +19 -19
- package/types/uni/core/lib/base/event/interface.d.ts +244 -4
- package/types/uni/core/lib/base/interceptor/interface.d.ts +2 -2
- package/types/uni/core/lib/lifecycle/interface.d.ts +26 -1
- package/types/uni/core/lib/performance/interface.d.ts +26 -1
- package/types/uni/core/lib/route/interface.d.ts +30 -30
- package/types/uni/core/lib/ui/create-selector-query/interface.d.ts +73 -73
- package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +2 -2
- package/types/uni/core/lib/ui/load-font-face/interface.d.ts +9 -9
- package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +37 -37
- package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +122 -2
- package/types/uni/core/lib/ui/set-navigation-bar-color/interface.d.ts +7 -7
- package/types/uni/core/lib/ui/set-navigation-bar-title/interface.d.ts +6 -6
- package/types/uni/core/lib/ui/tab-bar/interface.d.ts +489 -9
- package/types/uni/uts-plugin-api/global.d.ts +1 -0
- package/types/uni/uts-plugin-api/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -0
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +44 -0
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +11 -7
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -2
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +26 -22
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +8 -4
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +33 -29
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +8 -4
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +18 -14
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +106 -94
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +6 -2
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +11 -3
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +176 -152
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +67 -19
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +51 -11
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +238 -186
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +17 -18
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +26 -4
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +13 -2
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +93 -32
- package/types/vue/CheckboxGroupChangeEvent.d.ts +9 -2
- package/types/vue/LifeCycle.d.ts +3 -3
- package/types/vue/PickerViewChangeEvent.d.ts +9 -2
- package/types/vue/ProgressActiveendEvent.d.ts +9 -2
- package/types/vue/RadioGroupChangeEvent.d.ts +9 -2
- package/types/vue/SliderChangeEvent.d.ts +9 -2
- package/types/vue/SwitchChangeEvent.d.ts +9 -2
- package/types/vue/UniFormElement.d.ts +16 -3
- package/types/native/CustomEvent.d.ts +0 -18
- package/types/native/ImageErrorEvent.d.ts +0 -13
- package/types/native/ImageLoadEvent.d.ts +0 -17
- package/types/native/InputBlurEvent.d.ts +0 -17
- package/types/native/InputConfirmEvent.d.ts +0 -13
- package/types/native/InputKeyboardHeightChangeEvent.d.ts +0 -17
- package/types/native/PageEvent.d.ts +0 -8
- package/types/native/PageScrollEvent.d.ts +0 -11
- package/types/native/RefresherEvent.d.ts +0 -10
- package/types/native/ScrollToLowerEvent.d.ts +0 -13
- package/types/native/ScrollToUpperEvent.d.ts +0 -13
- package/types/native/TextareaBlurEvent.d.ts +0 -17
- package/types/native/TextareaLineChangeEvent.d.ts +0 -21
- package/types/native/WebViewLoadedEvent.d.ts +0 -21
- package/types/native/WebViewLoadingEvent.d.ts +0 -22
- package/types/native/WebViewMessageEvent.d.ts +0 -21
|
@@ -34,41 +34,41 @@ export type RequestOptions<T> = {
|
|
|
34
34
|
/**
|
|
35
35
|
* 如果设为 json,会对返回的数据进行一次 JSON.parse,非 json 不会进行 JSON.parse
|
|
36
36
|
* @defaultValue "json"
|
|
37
|
-
* @deprecated 不支持
|
|
37
|
+
* @deprecated 不支持
|
|
38
38
|
* @autodoc false
|
|
39
39
|
*/
|
|
40
40
|
dataType?: string | null,
|
|
41
41
|
/**
|
|
42
42
|
* 设置响应的数据类型。
|
|
43
43
|
*
|
|
44
|
-
* @deprecated 不支持
|
|
44
|
+
* @deprecated 不支持
|
|
45
45
|
* @autodoc false
|
|
46
46
|
*/
|
|
47
47
|
responseType?: string | null,
|
|
48
48
|
/**
|
|
49
49
|
* 验证 ssl 证书
|
|
50
50
|
*
|
|
51
|
-
* @deprecated 不支持
|
|
51
|
+
* @deprecated 不支持
|
|
52
52
|
* @autodoc false
|
|
53
53
|
*/
|
|
54
54
|
sslVerify?: boolean | null,
|
|
55
55
|
/**
|
|
56
56
|
* 跨域请求时是否携带凭证(cookies)
|
|
57
57
|
*
|
|
58
|
-
* @uniPlatform
|
|
59
|
-
* {
|
|
60
|
-
* "app": {
|
|
61
|
-
* "android": {
|
|
62
|
-
* "osVer": "4.4",
|
|
63
|
-
* "uniVer": "√",
|
|
64
|
-
* "unixVer": "x"
|
|
65
|
-
* },
|
|
66
|
-
* "ios": {
|
|
67
|
-
* "osVer": "9.0",
|
|
68
|
-
* "uniVer": "√",
|
|
69
|
-
* "unixVer": "x"
|
|
70
|
-
* }
|
|
71
|
-
* }
|
|
58
|
+
* @uniPlatform
|
|
59
|
+
* {
|
|
60
|
+
* "app": {
|
|
61
|
+
* "android": {
|
|
62
|
+
* "osVer": "4.4",
|
|
63
|
+
* "uniVer": "√",
|
|
64
|
+
* "unixVer": "x"
|
|
65
|
+
* },
|
|
66
|
+
* "ios": {
|
|
67
|
+
* "osVer": "9.0",
|
|
68
|
+
* "uniVer": "√",
|
|
69
|
+
* "unixVer": "x"
|
|
70
|
+
* }
|
|
71
|
+
* }
|
|
72
72
|
* }
|
|
73
73
|
*/
|
|
74
74
|
withCredentials?: boolean | null,
|
|
@@ -156,20 +156,24 @@ export interface RequestTask {
|
|
|
156
156
|
* @param {void}
|
|
157
157
|
* @return {void}
|
|
158
158
|
* @tutorial https://uniapp.dcloud.net.cn/api/request/request.html#request
|
|
159
|
-
* @uniPlatform
|
|
160
|
-
* {
|
|
161
|
-
* "app": {
|
|
162
|
-
* "android": {
|
|
163
|
-
* "osVer": "4.4",
|
|
164
|
-
* "uniVer": "√",
|
|
165
|
-
* "unixVer": "3.9+"
|
|
166
|
-
* },
|
|
167
|
-
* "ios": {
|
|
168
|
-
* "osVer": "9.0",
|
|
169
|
-
* "uniVer": "√",
|
|
170
|
-
* "unixVer": "x"
|
|
171
|
-
* }
|
|
172
|
-
* }
|
|
159
|
+
* @uniPlatform
|
|
160
|
+
* {
|
|
161
|
+
* "app": {
|
|
162
|
+
* "android": {
|
|
163
|
+
* "osVer": "4.4",
|
|
164
|
+
* "uniVer": "√",
|
|
165
|
+
* "unixVer": "3.9+"
|
|
166
|
+
* },
|
|
167
|
+
* "ios": {
|
|
168
|
+
* "osVer": "9.0",
|
|
169
|
+
* "uniVer": "√",
|
|
170
|
+
* "unixVer": "x"
|
|
171
|
+
* }
|
|
172
|
+
* },
|
|
173
|
+
* "web": {
|
|
174
|
+
* "uniVer": "x",
|
|
175
|
+
* "unixVer": "x"
|
|
176
|
+
* }
|
|
173
177
|
* }
|
|
174
178
|
* @example
|
|
175
179
|
```typescript
|
|
@@ -199,20 +203,20 @@ export type UploadFileOptionFiles = {
|
|
|
199
203
|
uri: string,
|
|
200
204
|
/**
|
|
201
205
|
* 要上传的文件对象
|
|
202
|
-
* @uniPlatform
|
|
203
|
-
* {
|
|
204
|
-
* "app": {
|
|
205
|
-
* "android": {
|
|
206
|
-
* "osVer": "4.4",
|
|
207
|
-
* "uniVer": "√",
|
|
208
|
-
* "unixVer": "x"
|
|
209
|
-
* },
|
|
210
|
-
* "ios": {
|
|
211
|
-
* "osVer": "9.0",
|
|
212
|
-
* "uniVer": "√",
|
|
213
|
-
* "unixVer": "x"
|
|
214
|
-
* }
|
|
215
|
-
* }
|
|
206
|
+
* @uniPlatform
|
|
207
|
+
* {
|
|
208
|
+
* "app": {
|
|
209
|
+
* "android": {
|
|
210
|
+
* "osVer": "4.4",
|
|
211
|
+
* "uniVer": "√",
|
|
212
|
+
* "unixVer": "x"
|
|
213
|
+
* },
|
|
214
|
+
* "ios": {
|
|
215
|
+
* "osVer": "9.0",
|
|
216
|
+
* "uniVer": "√",
|
|
217
|
+
* "unixVer": "x"
|
|
218
|
+
* }
|
|
219
|
+
* }
|
|
216
220
|
* }
|
|
217
221
|
*/
|
|
218
222
|
file?: any | null
|
|
@@ -312,20 +316,24 @@ export interface UploadTask {
|
|
|
312
316
|
* @param {void}
|
|
313
317
|
* @return {void}
|
|
314
318
|
* @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#uploadfile
|
|
315
|
-
* @uniPlatform
|
|
316
|
-
* {
|
|
317
|
-
* "app": {
|
|
318
|
-
* "android": {
|
|
319
|
-
* "osVer": "4.4",
|
|
320
|
-
* "uniVer": "√",
|
|
321
|
-
* "unixVer": "3.9+"
|
|
322
|
-
* },
|
|
323
|
-
* "ios": {
|
|
324
|
-
* "osVer": "9.0",
|
|
325
|
-
* "uniVer": "√",
|
|
326
|
-
* "unixVer": "x"
|
|
327
|
-
* }
|
|
328
|
-
* }
|
|
319
|
+
* @uniPlatform
|
|
320
|
+
* {
|
|
321
|
+
* "app": {
|
|
322
|
+
* "android": {
|
|
323
|
+
* "osVer": "4.4",
|
|
324
|
+
* "uniVer": "√",
|
|
325
|
+
* "unixVer": "3.9+"
|
|
326
|
+
* },
|
|
327
|
+
* "ios": {
|
|
328
|
+
* "osVer": "9.0",
|
|
329
|
+
* "uniVer": "√",
|
|
330
|
+
* "unixVer": "x"
|
|
331
|
+
* }
|
|
332
|
+
* },
|
|
333
|
+
* "web": {
|
|
334
|
+
* "uniVer": "x",
|
|
335
|
+
* "unixVer": "x"
|
|
336
|
+
* }
|
|
329
337
|
* }
|
|
330
338
|
* @example
|
|
331
339
|
```typescript
|
|
@@ -344,20 +352,20 @@ export interface UploadTask {
|
|
|
344
352
|
* @param {UploadFileProgressUpdateCallback} callback
|
|
345
353
|
* @return {void}
|
|
346
354
|
* @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#uploadfile
|
|
347
|
-
* @uniPlatform
|
|
348
|
-
* {
|
|
349
|
-
* "app": {
|
|
350
|
-
* "android": {
|
|
351
|
-
* "osVer": "4.4",
|
|
352
|
-
* "uniVer": "√",
|
|
353
|
-
* "unixVer": "3.9+"
|
|
354
|
-
* },
|
|
355
|
-
* "ios": {
|
|
356
|
-
* "osVer": "9.0",
|
|
357
|
-
* "uniVer": "√",
|
|
358
|
-
* "unixVer": "x"
|
|
359
|
-
* }
|
|
360
|
-
* }
|
|
355
|
+
* @uniPlatform
|
|
356
|
+
* {
|
|
357
|
+
* "app": {
|
|
358
|
+
* "android": {
|
|
359
|
+
* "osVer": "4.4",
|
|
360
|
+
* "uniVer": "√",
|
|
361
|
+
* "unixVer": "3.9+"
|
|
362
|
+
* },
|
|
363
|
+
* "ios": {
|
|
364
|
+
* "osVer": "9.0",
|
|
365
|
+
* "uniVer": "√",
|
|
366
|
+
* "unixVer": "x"
|
|
367
|
+
* }
|
|
368
|
+
* }
|
|
361
369
|
* }
|
|
362
370
|
* @example
|
|
363
371
|
```typescript
|
|
@@ -403,15 +411,15 @@ export type DownloadFileOptions = {
|
|
|
403
411
|
* HTTP 请求 Header,header 中不能设置 Referer
|
|
404
412
|
* @defaultValue null
|
|
405
413
|
*/
|
|
406
|
-
header?: UTSJSONObject | null,
|
|
407
|
-
/**
|
|
408
|
-
* 指定文件下载路径
|
|
409
|
-
* 支持相对路径与绝对路径,例:
|
|
410
|
-
* `/imgs/pic.png`、`/storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/temp/imgs/pic.png`
|
|
411
|
-
* 并且支持指定下载目录,例:
|
|
412
|
-
* `/imgs/`
|
|
413
|
-
* @defaultValue null
|
|
414
|
-
*/
|
|
414
|
+
header?: UTSJSONObject | null,
|
|
415
|
+
/**
|
|
416
|
+
* 指定文件下载路径
|
|
417
|
+
* 支持相对路径与绝对路径,例:
|
|
418
|
+
* `/imgs/pic.png`、`/storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/temp/imgs/pic.png`
|
|
419
|
+
* 并且支持指定下载目录,例:
|
|
420
|
+
* `/imgs/`
|
|
421
|
+
* @defaultValue null
|
|
422
|
+
*/
|
|
415
423
|
filePath?: string | null,
|
|
416
424
|
/**
|
|
417
425
|
* 超时时间,单位 ms
|
|
@@ -457,20 +465,24 @@ export interface DownloadTask {
|
|
|
457
465
|
* @param {void}
|
|
458
466
|
* @return {void}
|
|
459
467
|
* @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#downloadfile
|
|
460
|
-
* @uniPlatform
|
|
461
|
-
* {
|
|
462
|
-
* "app": {
|
|
463
|
-
* "android": {
|
|
464
|
-
* "osVer": "4.4",
|
|
465
|
-
* "uniVer": "√",
|
|
466
|
-
* "unixVer": "3.9+"
|
|
467
|
-
* },
|
|
468
|
-
* "ios": {
|
|
469
|
-
* "osVer": "9.0",
|
|
470
|
-
* "uniVer": "√",
|
|
471
|
-
* "unixVer": "x"
|
|
472
|
-
* }
|
|
473
|
-
* }
|
|
468
|
+
* @uniPlatform
|
|
469
|
+
* {
|
|
470
|
+
* "app": {
|
|
471
|
+
* "android": {
|
|
472
|
+
* "osVer": "4.4",
|
|
473
|
+
* "uniVer": "√",
|
|
474
|
+
* "unixVer": "3.9+"
|
|
475
|
+
* },
|
|
476
|
+
* "ios": {
|
|
477
|
+
* "osVer": "9.0",
|
|
478
|
+
* "uniVer": "√",
|
|
479
|
+
* "unixVer": "x"
|
|
480
|
+
* }
|
|
481
|
+
* },
|
|
482
|
+
* "web": {
|
|
483
|
+
* "uniVer": "x",
|
|
484
|
+
* "unixVer": "x"
|
|
485
|
+
* }
|
|
474
486
|
* }
|
|
475
487
|
* @example
|
|
476
488
|
```typescript
|
|
@@ -489,20 +501,20 @@ export interface DownloadTask {
|
|
|
489
501
|
* @param {DownloadFileProgressUpdateCallback} callback
|
|
490
502
|
* @return {void}
|
|
491
503
|
* @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#downloadfile
|
|
492
|
-
* @uniPlatform
|
|
493
|
-
* {
|
|
494
|
-
* "app": {
|
|
495
|
-
* "android": {
|
|
496
|
-
* "osVer": "4.4",
|
|
497
|
-
* "uniVer": "√",
|
|
498
|
-
* "unixVer": "3.9+"
|
|
499
|
-
* },
|
|
500
|
-
* "ios": {
|
|
501
|
-
* "osVer": "9.0",
|
|
502
|
-
* "uniVer": "√",
|
|
503
|
-
* "unixVer": "x"
|
|
504
|
-
* }
|
|
505
|
-
* }
|
|
504
|
+
* @uniPlatform
|
|
505
|
+
* {
|
|
506
|
+
* "app": {
|
|
507
|
+
* "android": {
|
|
508
|
+
* "osVer": "4.4",
|
|
509
|
+
* "uniVer": "√",
|
|
510
|
+
* "unixVer": "3.9+"
|
|
511
|
+
* },
|
|
512
|
+
* "ios": {
|
|
513
|
+
* "osVer": "9.0",
|
|
514
|
+
* "uniVer": "√",
|
|
515
|
+
* "unixVer": "x"
|
|
516
|
+
* }
|
|
517
|
+
* }
|
|
506
518
|
* }
|
|
507
519
|
* @example
|
|
508
520
|
```typescript
|
|
@@ -525,20 +537,24 @@ export interface Uni {
|
|
|
525
537
|
* @param {RequestOptions} options
|
|
526
538
|
* @return {RequestTask}
|
|
527
539
|
* @tutorial https://uniapp.dcloud.net.cn/api/request/request.html
|
|
528
|
-
* @uniPlatform
|
|
529
|
-
* {
|
|
530
|
-
* "app": {
|
|
531
|
-
* "android": {
|
|
532
|
-
* "osVer": "4.4",
|
|
533
|
-
* "uniVer": "√",
|
|
534
|
-
* "unixVer": "3.9+"
|
|
535
|
-
* },
|
|
536
|
-
* "ios": {
|
|
537
|
-
* "osVer": "9.0",
|
|
538
|
-
* "uniVer": "√",
|
|
539
|
-
* "unixVer": "x"
|
|
540
|
-
* }
|
|
541
|
-
* }
|
|
540
|
+
* @uniPlatform
|
|
541
|
+
* {
|
|
542
|
+
* "app": {
|
|
543
|
+
* "android": {
|
|
544
|
+
* "osVer": "4.4",
|
|
545
|
+
* "uniVer": "√",
|
|
546
|
+
* "unixVer": "3.9+"
|
|
547
|
+
* },
|
|
548
|
+
* "ios": {
|
|
549
|
+
* "osVer": "9.0",
|
|
550
|
+
* "uniVer": "√",
|
|
551
|
+
* "unixVer": "x"
|
|
552
|
+
* }
|
|
553
|
+
* },
|
|
554
|
+
* "web": {
|
|
555
|
+
* "uniVer": "√",
|
|
556
|
+
* "unixVer": "4.0"
|
|
557
|
+
* }
|
|
542
558
|
* }
|
|
543
559
|
* @example
|
|
544
560
|
```typescript
|
|
@@ -577,20 +593,24 @@ export interface Uni {
|
|
|
577
593
|
* @param {UploadFileOptions} options
|
|
578
594
|
* @return {UploadTask}
|
|
579
595
|
* @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#uploadfile
|
|
580
|
-
* @uniPlatform
|
|
581
|
-
* {
|
|
582
|
-
* "app": {
|
|
583
|
-
* "android": {
|
|
584
|
-
* "osVer": "4.4",
|
|
585
|
-
* "uniVer": "√",
|
|
586
|
-
* "unixVer": "3.9+"
|
|
587
|
-
* },
|
|
588
|
-
* "ios": {
|
|
589
|
-
* "osVer": "9.0",
|
|
590
|
-
* "uniVer": "√",
|
|
591
|
-
* "unixVer": "x"
|
|
592
|
-
* }
|
|
593
|
-
* }
|
|
596
|
+
* @uniPlatform
|
|
597
|
+
* {
|
|
598
|
+
* "app": {
|
|
599
|
+
* "android": {
|
|
600
|
+
* "osVer": "4.4",
|
|
601
|
+
* "uniVer": "√",
|
|
602
|
+
* "unixVer": "3.9+"
|
|
603
|
+
* },
|
|
604
|
+
* "ios": {
|
|
605
|
+
* "osVer": "9.0",
|
|
606
|
+
* "uniVer": "√",
|
|
607
|
+
* "unixVer": "x"
|
|
608
|
+
* }
|
|
609
|
+
* },
|
|
610
|
+
* "web": {
|
|
611
|
+
* "uniVer": "√",
|
|
612
|
+
* "unixVer": "4.0"
|
|
613
|
+
* }
|
|
594
614
|
* }
|
|
595
615
|
* @example
|
|
596
616
|
```typescript
|
|
@@ -615,20 +635,24 @@ export interface Uni {
|
|
|
615
635
|
* @param {DownloadFileOptions} options
|
|
616
636
|
* @return {DownloadTask}
|
|
617
637
|
* @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#downloadfile
|
|
618
|
-
* @uniPlatform
|
|
619
|
-
* {
|
|
620
|
-
* "app": {
|
|
621
|
-
* "android": {
|
|
622
|
-
* "osVer": "4.4",
|
|
623
|
-
* "uniVer": "√",
|
|
624
|
-
* "unixVer": "3.9+"
|
|
625
|
-
* },
|
|
626
|
-
* "ios": {
|
|
627
|
-
* "osVer": "9.0",
|
|
628
|
-
* "uniVer": "√",
|
|
629
|
-
* "unixVer": "x"
|
|
630
|
-
* }
|
|
631
|
-
* }
|
|
638
|
+
* @uniPlatform
|
|
639
|
+
* {
|
|
640
|
+
* "app": {
|
|
641
|
+
* "android": {
|
|
642
|
+
* "osVer": "4.4",
|
|
643
|
+
* "uniVer": "√",
|
|
644
|
+
* "unixVer": "3.9+"
|
|
645
|
+
* },
|
|
646
|
+
* "ios": {
|
|
647
|
+
* "osVer": "9.0",
|
|
648
|
+
* "uniVer": "√",
|
|
649
|
+
* "unixVer": "x"
|
|
650
|
+
* }
|
|
651
|
+
* },
|
|
652
|
+
* "web": {
|
|
653
|
+
* "uniVer": "√",
|
|
654
|
+
* "unixVer": "4.0"
|
|
655
|
+
* }
|
|
632
656
|
* }
|
|
633
657
|
* @example
|
|
634
658
|
```typescript
|