@dcloudio/uni-app-x 0.7.0 → 0.7.2
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/native/IUniElement.d.ts +1 -1
- package/types/native/InputBlurEvent.d.ts +4 -0
- package/types/native/NodeData.d.ts +3 -2
- package/types/native/PageNode.d.ts +6 -0
- package/types/native/{MouseEvent.d.ts → PointerEvent.ts} +2 -2
- package/types/native/TextareaFocusEvent.d.ts +14 -1
- package/types/native/UniDocument.d.ts +2 -0
- package/types/native/UniFormControl.d.ts +8 -0
- package/types/native/UniFormControlElement.d.ts +14 -0
- package/types/native/ViewToTempFilePathOptions.d.ts +9 -0
- package/types/native/global.d.ts +6 -3
- package/types/native/index.d.ts +3 -1
- package/types/page.d.ts +7 -7
- package/types/uni/core/lib/ui/create-selector-query/interface.d.ts +3 -3
- package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +6 -6
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +15 -14
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +125 -117
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +200 -147
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +29 -68
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +15 -14
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +114 -119
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +16 -15
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +149 -140
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +15 -14
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +195 -182
|
@@ -55,21 +55,21 @@ export type RequestOptions<T> = {
|
|
|
55
55
|
/**
|
|
56
56
|
* 跨域请求时是否携带凭证(cookies)
|
|
57
57
|
*
|
|
58
|
-
* @uniPlatform
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
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
|
+
* }
|
|
71
72
|
* }
|
|
72
|
-
*
|
|
73
73
|
*/
|
|
74
74
|
withCredentials?: boolean | null,
|
|
75
75
|
/**
|
|
@@ -156,20 +156,21 @@ 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
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
+
* }
|
|
173
174
|
* @example
|
|
174
175
|
```typescript
|
|
175
176
|
var requestTask = uni.request({
|
|
@@ -198,20 +199,21 @@ export type UploadFileOptionFiles = {
|
|
|
198
199
|
uri: string,
|
|
199
200
|
/**
|
|
200
201
|
* 要上传的文件对象
|
|
201
|
-
* @uniPlatform
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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
|
+
* }
|
|
216
|
+
* }
|
|
215
217
|
*/
|
|
216
218
|
file?: any | null
|
|
217
219
|
};
|
|
@@ -310,20 +312,21 @@ export interface UploadTask {
|
|
|
310
312
|
* @param {void}
|
|
311
313
|
* @return {void}
|
|
312
314
|
* @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#uploadfile
|
|
313
|
-
* @uniPlatform
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
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
|
+
* }
|
|
329
|
+
* }
|
|
327
330
|
* @example
|
|
328
331
|
```typescript
|
|
329
332
|
var uploadTask = uni.uploadFile({
|
|
@@ -341,20 +344,21 @@ export interface UploadTask {
|
|
|
341
344
|
* @param {UploadFileProgressUpdateCallback} callback
|
|
342
345
|
* @return {void}
|
|
343
346
|
* @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#uploadfile
|
|
344
|
-
* @uniPlatform
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
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
|
+
* }
|
|
361
|
+
* }
|
|
358
362
|
* @example
|
|
359
363
|
```typescript
|
|
360
364
|
uploadTask.onProgressUpdate((res) => {
|
|
@@ -453,20 +457,21 @@ export interface DownloadTask {
|
|
|
453
457
|
* @param {void}
|
|
454
458
|
* @return {void}
|
|
455
459
|
* @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#downloadfile
|
|
456
|
-
* @uniPlatform
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
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
|
+
* }
|
|
474
|
+
* }
|
|
470
475
|
* @example
|
|
471
476
|
```typescript
|
|
472
477
|
var downloadTask = uni.downloadFile({
|
|
@@ -484,20 +489,21 @@ export interface DownloadTask {
|
|
|
484
489
|
* @param {DownloadFileProgressUpdateCallback} callback
|
|
485
490
|
* @return {void}
|
|
486
491
|
* @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#downloadfile
|
|
487
|
-
* @uniPlatform
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
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
|
+
* }
|
|
506
|
+
* }
|
|
501
507
|
* @example
|
|
502
508
|
```typescript
|
|
503
509
|
downloadTask.onProgressUpdate((res) => {
|
|
@@ -519,20 +525,21 @@ export interface Uni {
|
|
|
519
525
|
* @param {RequestOptions} options
|
|
520
526
|
* @return {RequestTask}
|
|
521
527
|
* @tutorial https://uniapp.dcloud.net.cn/api/request/request.html
|
|
522
|
-
* @uniPlatform
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
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
|
+
* }
|
|
542
|
+
* }
|
|
536
543
|
* @example
|
|
537
544
|
```typescript
|
|
538
545
|
uni.request({
|
|
@@ -570,20 +577,21 @@ export interface Uni {
|
|
|
570
577
|
* @param {UploadFileOptions} options
|
|
571
578
|
* @return {UploadTask}
|
|
572
579
|
* @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#uploadfile
|
|
573
|
-
* @uniPlatform
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
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
|
+
* }
|
|
594
|
+
* }
|
|
587
595
|
* @example
|
|
588
596
|
```typescript
|
|
589
597
|
uni.uploadFile({
|
|
@@ -607,20 +615,21 @@ export interface Uni {
|
|
|
607
615
|
* @param {DownloadFileOptions} options
|
|
608
616
|
* @return {DownloadTask}
|
|
609
617
|
* @tutorial https://uniapp.dcloud.net.cn/api/request/network-file.html#downloadfile
|
|
610
|
-
* @uniPlatform
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
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
|
+
* }
|
|
632
|
+
* }
|
|
624
633
|
* @example
|
|
625
634
|
```typescript
|
|
626
635
|
uni.downloadFile({
|
|
@@ -7,20 +7,21 @@ export interface Uni {
|
|
|
7
7
|
* @param {OpenAppAuthorizeSettingOptions} options
|
|
8
8
|
* @return {void}
|
|
9
9
|
* @tutorial http://uniapp.dcloud.io/api/system/openappauthorizesetting
|
|
10
|
-
* @uniPlatform
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
* @uniPlatform
|
|
11
|
+
* {
|
|
12
|
+
* "app": {
|
|
13
|
+
* "android": {
|
|
14
|
+
* "osVer": "4.4",
|
|
15
|
+
* "uniVer": "√",
|
|
16
|
+
* "unixVer": "3.9+"
|
|
17
|
+
* },
|
|
18
|
+
* "ios": {
|
|
19
|
+
* "osVer": "9.0",
|
|
20
|
+
* "uniVer": "√",
|
|
21
|
+
* "unixVer": "x"
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
* }
|
|
24
25
|
* @example
|
|
25
26
|
```typescript
|
|
26
27
|
uni.openAppAuthorizeSetting({});
|