@dcloudio/uni-app-x 0.5.5 → 0.5.6
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 +17 -8
- package/types/native/AsyncApiResult.d.ts +1 -1
- package/types/native/CSSStyleDeclaration.d.ts +2 -2
- package/types/native/DrawableContext.d.ts +2 -2
- package/types/native/Element.d.ts +36 -5
- package/types/native/IDocument.d.ts +2 -3
- package/types/native/IPage.d.ts +1 -1
- package/types/native/IUniError.d.ts +1 -1
- package/types/native/NodeData.d.ts +1 -1
- package/types/native/SnapshotOptions.d.ts +63 -0
- package/types/native/UniAppManager.d.ts +1 -1
- package/types/native/UniElement.d.ts +97 -0
- package/types/native/UniTabsElement.d.ts +86 -0
- package/types/native/UniTextElement.d.ts +13 -0
- package/types/native/UniVideoElement.d.ts +70 -0
- package/types/native/{IWebViewNode.d.ts → UniWebViewElement.d.ts} +5 -2
- package/types/native/WebViewDownloadEvent.d.ts +37 -0
- package/types/native/WebViewErrorEvent.d.ts +26 -7
- package/types/native/WebViewLoadedEvent.d.ts +15 -2
- package/types/native/WebViewLoadingEvent.d.ts +15 -2
- package/types/native/WebViewMessageEvent.d.ts +15 -7
- package/types/native/WebViewStyles.d.ts +20 -0
- package/types/native/index.d.ts +8 -4
- package/types/shims-vue.d.ts +4 -2
- package/types/uni/core/lib/base/event/interface.d.ts +3 -6
- package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +3 -2
- package/types/uni/core/lib/ui/pull-down-refresh/index.d.ts +4 -0
- package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +10 -1
- package/types/uni/core/lib/ui/tab-bar/interface.d.ts +4 -8
- package/types/uni/uts-plugin-api/index.d.ts +1 -2
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +86 -86
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +103 -103
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +52 -52
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +82 -82
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +59 -56
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +116 -97
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-push/utssdk/index.d.ts +55 -0
- package/types/uni/uts-plugin-api/lib/uni-push/utssdk/interface.d.ts +338 -0
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +39 -39
- package/types/uni-cloud/interface.d.ts +10 -10
- package/types/vue/CheckboxGroupChangeEvent.d.ts +13 -0
- package/types/vue/PickerViewChangeEvent.d.ts +13 -0
- package/types/vue/ProgressActiveendEvent.d.ts +7 -0
- package/types/vue/RadioGroupChangeEvent.d.ts +13 -0
- package/types/vue/SliderChangeEvent.d.ts +2 -2
- package/types/vue/SwitchChangeEvent.d.ts +7 -0
- package/types/vue/UniButtonElement.d.ts +7 -0
- package/types/vue/UniCloudDBElement.d.ts +213 -0
- package/types/vue/UniNavigatorElement.d.ts +7 -0
- package/types/vue/index.d.ts +3 -0
- package/types/native/DomNode.d.ts +0 -48
- package/types/native/ITabsNode.d.ts +0 -36
- package/types/uni/uts-plugin-api/lib/uni-audio/utssdk/index.d.ts +0 -17
- package/types/uni/uts-plugin-api/lib/uni-audio/utssdk/interface.d.ts +0 -804
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +0 -15
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +0 -213
|
@@ -512,7 +512,7 @@ export interface Uni {
|
|
|
512
512
|
* "android": {
|
|
513
513
|
* "osVer": "4.4",
|
|
514
514
|
* "uniVer": "√",
|
|
515
|
-
* "unixVer": "3.9
|
|
515
|
+
* "unixVer": "3.9+"
|
|
516
516
|
* }
|
|
517
517
|
* }
|
|
518
518
|
* }
|
|
@@ -540,7 +540,7 @@ export interface Uni {
|
|
|
540
540
|
* "android": {
|
|
541
541
|
* "osVer": "4.4",
|
|
542
542
|
* "uniVer": "√",
|
|
543
|
-
* "unixVer": "3.9
|
|
543
|
+
* "unixVer": "3.9+"
|
|
544
544
|
* }
|
|
545
545
|
* }
|
|
546
546
|
* }
|
|
@@ -568,7 +568,7 @@ export interface Uni {
|
|
|
568
568
|
* "android": {
|
|
569
569
|
* "osVer": "4.4",
|
|
570
570
|
* "uniVer": "√",
|
|
571
|
-
* "unixVer": "3.9
|
|
571
|
+
* "unixVer": "3.9+"
|
|
572
572
|
* }
|
|
573
573
|
* }
|
|
574
574
|
* }
|
|
@@ -595,7 +595,7 @@ export interface Uni {
|
|
|
595
595
|
* "android": {
|
|
596
596
|
* "osVer": "4.4",
|
|
597
597
|
* "uniVer": "√",
|
|
598
|
-
* "unixVer": "3.9
|
|
598
|
+
* "unixVer": "3.9+"
|
|
599
599
|
* }
|
|
600
600
|
* }
|
|
601
601
|
* }
|
|
@@ -628,7 +628,7 @@ export interface Uni {
|
|
|
628
628
|
* "android": {
|
|
629
629
|
* "osVer": "4.4",
|
|
630
630
|
* "uniVer": "√",
|
|
631
|
-
* "unixVer": "3.9
|
|
631
|
+
* "unixVer": "3.9+"
|
|
632
632
|
* }
|
|
633
633
|
* }
|
|
634
634
|
* }
|
|
@@ -661,7 +661,7 @@ export interface Uni {
|
|
|
661
661
|
* "android": {
|
|
662
662
|
* "osVer": "4.4",
|
|
663
663
|
* "uniVer": "√",
|
|
664
|
-
* "unixVer": "3.9
|
|
664
|
+
* "unixVer": "3.9+"
|
|
665
665
|
* }
|
|
666
666
|
* }
|
|
667
667
|
* }
|
|
@@ -695,7 +695,7 @@ export interface Uni {
|
|
|
695
695
|
* "android": {
|
|
696
696
|
* "osVer": "4.4",
|
|
697
697
|
* "uniVer": "√",
|
|
698
|
-
* "unixVer": "3.9
|
|
698
|
+
* "unixVer": "3.9+"
|
|
699
699
|
* }
|
|
700
700
|
* }
|
|
701
701
|
* }
|
|
@@ -720,7 +720,7 @@ export interface Uni {
|
|
|
720
720
|
* "android": {
|
|
721
721
|
* "osVer": "4.4",
|
|
722
722
|
* "uniVer": "√",
|
|
723
|
-
* "unixVer": "3.9
|
|
723
|
+
* "unixVer": "3.9+"
|
|
724
724
|
* }
|
|
725
725
|
* }
|
|
726
726
|
* }
|
|
@@ -746,7 +746,7 @@ export interface Uni {
|
|
|
746
746
|
* "android": {
|
|
747
747
|
* "osVer": "4.4",
|
|
748
748
|
* "uniVer": "√",
|
|
749
|
-
* "unixVer": "3.9
|
|
749
|
+
* "unixVer": "3.9+"
|
|
750
750
|
* }
|
|
751
751
|
* }
|
|
752
752
|
* }
|
|
@@ -772,7 +772,7 @@ export interface Uni {
|
|
|
772
772
|
* "android": {
|
|
773
773
|
* "osVer": "4.4",
|
|
774
774
|
* "uniVer": "√",
|
|
775
|
-
* "unixVer": "3.9
|
|
775
|
+
* "unixVer": "3.9+"
|
|
776
776
|
* }
|
|
777
777
|
* }
|
|
778
778
|
* }
|
|
@@ -11,80 +11,83 @@ export type RequestOptions = {
|
|
|
11
11
|
url: string,
|
|
12
12
|
/**
|
|
13
13
|
* 请求的参数 Object|String类型
|
|
14
|
-
* @type {RequestDataOptions}
|
|
14
|
+
* @type {RequestDataOptions}
|
|
15
15
|
* @defaultValue null
|
|
16
16
|
*/
|
|
17
17
|
data?: any | null,
|
|
18
18
|
/**
|
|
19
|
-
* 设置请求的 header,header 中不能设置 Referer
|
|
19
|
+
* 设置请求的 header,header 中不能设置 Referer
|
|
20
20
|
* @defaultValue null
|
|
21
21
|
*/
|
|
22
22
|
header?: UTSJSONObject,
|
|
23
23
|
/**
|
|
24
24
|
* 请求类型 默认值GET
|
|
25
25
|
* GET|POST|PUT|DELETE|HEAD|OPTIONS
|
|
26
|
-
* @type {RequestMethod}
|
|
26
|
+
* @type {RequestMethod}
|
|
27
27
|
* @defaultValue "GET"
|
|
28
28
|
*/
|
|
29
29
|
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"| null,
|
|
30
30
|
/**
|
|
31
|
-
* 超时时间,单位 ms
|
|
31
|
+
* 超时时间,单位 ms
|
|
32
32
|
* @defaultValue 60000
|
|
33
33
|
*/
|
|
34
34
|
timeout?: number | null,
|
|
35
35
|
/**
|
|
36
|
-
* 如果设为 json,会对返回的数据进行一次 JSON.parse,非 json 不会进行 JSON.parse
|
|
37
|
-
* @defaultValue "json"
|
|
38
|
-
* @deprecated 不支持
|
|
36
|
+
* 如果设为 json,会对返回的数据进行一次 JSON.parse,非 json 不会进行 JSON.parse
|
|
37
|
+
* @defaultValue "json"
|
|
38
|
+
* @deprecated 不支持
|
|
39
|
+
* @autodoc false
|
|
39
40
|
*/
|
|
40
41
|
dataType?: string | null,
|
|
41
42
|
/**
|
|
42
|
-
* 设置响应的数据类型。
|
|
43
|
-
*
|
|
44
|
-
* @deprecated 不支持
|
|
43
|
+
* 设置响应的数据类型。
|
|
44
|
+
*
|
|
45
|
+
* @deprecated 不支持
|
|
46
|
+
* @autodoc false
|
|
45
47
|
*/
|
|
46
48
|
responseType?: string | null,
|
|
47
49
|
/**
|
|
48
|
-
* 验证 ssl 证书
|
|
49
|
-
* @deprecated 不支持
|
|
50
|
+
* 验证 ssl 证书
|
|
51
|
+
* @deprecated 不支持
|
|
52
|
+
* @autodoc false
|
|
50
53
|
*/
|
|
51
54
|
sslVerify?: boolean | null,
|
|
52
55
|
/**
|
|
53
|
-
* 跨域请求时是否携带凭证(cookies)
|
|
54
|
-
*
|
|
55
|
-
* @uniPlatform {
|
|
56
|
-
* "app": {
|
|
57
|
-
* "android": {
|
|
58
|
-
* "osVer": "4.4",
|
|
59
|
-
* "uniVer": "√",
|
|
60
|
-
* "unixVer": "x"
|
|
61
|
-
* },
|
|
62
|
-
* "ios": {
|
|
63
|
-
* "osVer": "9.0",
|
|
64
|
-
* "uniVer": "√",
|
|
65
|
-
* "unixVer": "x"
|
|
66
|
-
* }
|
|
67
|
-
* }
|
|
56
|
+
* 跨域请求时是否携带凭证(cookies)
|
|
57
|
+
*
|
|
58
|
+
* @uniPlatform {
|
|
59
|
+
* "app": {
|
|
60
|
+
* "android": {
|
|
61
|
+
* "osVer": "4.4",
|
|
62
|
+
* "uniVer": "√",
|
|
63
|
+
* "unixVer": "x"
|
|
64
|
+
* },
|
|
65
|
+
* "ios": {
|
|
66
|
+
* "osVer": "9.0",
|
|
67
|
+
* "uniVer": "√",
|
|
68
|
+
* "unixVer": "x"
|
|
69
|
+
* }
|
|
70
|
+
* }
|
|
68
71
|
* }
|
|
69
72
|
*/
|
|
70
73
|
withCredentials?: boolean | null,
|
|
71
74
|
/**
|
|
72
|
-
* DNS解析时优先使用ipv4
|
|
75
|
+
* DNS解析时优先使用ipv4
|
|
73
76
|
* @defaultValue false
|
|
74
77
|
*/
|
|
75
78
|
firstIpv4?: boolean | null,
|
|
76
79
|
/**
|
|
77
|
-
* 网络请求成功回调。
|
|
80
|
+
* 网络请求成功回调。
|
|
78
81
|
* @defaultValue null
|
|
79
82
|
*/
|
|
80
83
|
success?: RequestSuccessCallback | null,
|
|
81
84
|
/**
|
|
82
|
-
* 网络请求失败回调。
|
|
85
|
+
* 网络请求失败回调。
|
|
83
86
|
* @defaultValue null
|
|
84
87
|
*/
|
|
85
88
|
fail?: RequestFailCallback | null,
|
|
86
89
|
/**
|
|
87
|
-
* 网络请求完成回调,成功或者失败都会调用。
|
|
90
|
+
* 网络请求完成回调,成功或者失败都会调用。
|
|
88
91
|
* @defaultValue null
|
|
89
92
|
*/
|
|
90
93
|
complete?: RequestCompleteCallback | null
|
|
@@ -129,12 +132,12 @@ export interface RequestTask {
|
|
|
129
132
|
* "android": {
|
|
130
133
|
* "osVer": "4.4",
|
|
131
134
|
* "uniVer": "√",
|
|
132
|
-
* "unixVer": "3.9
|
|
135
|
+
* "unixVer": "3.9+"
|
|
133
136
|
* },
|
|
134
137
|
* "ios": {
|
|
135
138
|
* "osVer": "9.0",
|
|
136
139
|
* "uniVer": "√",
|
|
137
|
-
* "unixVer": "3.9
|
|
140
|
+
* "unixVer": "3.9+"
|
|
138
141
|
* }
|
|
139
142
|
* }
|
|
140
143
|
* }
|
|
@@ -165,21 +168,21 @@ export type UploadFileOptionFiles = {
|
|
|
165
168
|
*/
|
|
166
169
|
uri: string,
|
|
167
170
|
/**
|
|
168
|
-
* 要上传的文件对象,仅H5(2.6.15+)支持
|
|
169
|
-
*
|
|
170
|
-
* @uniPlatform {
|
|
171
|
-
* "app": {
|
|
172
|
-
* "android": {
|
|
173
|
-
* "osVer": "4.4",
|
|
174
|
-
* "uniVer": "√",
|
|
175
|
-
* "unixVer": "x"
|
|
176
|
-
* },
|
|
177
|
-
* "ios": {
|
|
178
|
-
* "osVer": "9.0",
|
|
179
|
-
* "uniVer": "√",
|
|
180
|
-
* "unixVer": "x"
|
|
181
|
-
* }
|
|
182
|
-
* }
|
|
171
|
+
* 要上传的文件对象,仅H5(2.6.15+)支持
|
|
172
|
+
*
|
|
173
|
+
* @uniPlatform {
|
|
174
|
+
* "app": {
|
|
175
|
+
* "android": {
|
|
176
|
+
* "osVer": "4.4",
|
|
177
|
+
* "uniVer": "√",
|
|
178
|
+
* "unixVer": "x"
|
|
179
|
+
* },
|
|
180
|
+
* "ios": {
|
|
181
|
+
* "osVer": "9.0",
|
|
182
|
+
* "uniVer": "√",
|
|
183
|
+
* "unixVer": "x"
|
|
184
|
+
* }
|
|
185
|
+
* }
|
|
183
186
|
* }
|
|
184
187
|
*/
|
|
185
188
|
file: any | null
|
|
@@ -270,7 +273,7 @@ export interface UploadTask {
|
|
|
270
273
|
* "android": {
|
|
271
274
|
* "osVer": "4.4",
|
|
272
275
|
* "uniVer": "√",
|
|
273
|
-
* "unixVer": "3.9
|
|
276
|
+
* "unixVer": "3.9+"
|
|
274
277
|
* },
|
|
275
278
|
* "ios": {
|
|
276
279
|
* "osVer": "9.0",
|
|
@@ -301,7 +304,7 @@ export interface UploadTask {
|
|
|
301
304
|
* "android": {
|
|
302
305
|
* "osVer": "4.4",
|
|
303
306
|
* "uniVer": "√",
|
|
304
|
-
* "unixVer": "3.9
|
|
307
|
+
* "unixVer": "3.9+"
|
|
305
308
|
* },
|
|
306
309
|
* "ios": {
|
|
307
310
|
* "osVer": "9.0",
|
|
@@ -394,7 +397,7 @@ export interface DownloadTask {
|
|
|
394
397
|
* "android": {
|
|
395
398
|
* "osVer": "4.4",
|
|
396
399
|
* "uniVer": "√",
|
|
397
|
-
* "unixVer": "3.9
|
|
400
|
+
* "unixVer": "3.9+"
|
|
398
401
|
* },
|
|
399
402
|
* "ios": {
|
|
400
403
|
* "osVer": "9.0",
|
|
@@ -425,7 +428,7 @@ export interface DownloadTask {
|
|
|
425
428
|
* "android": {
|
|
426
429
|
* "osVer": "4.4",
|
|
427
430
|
* "uniVer": "√",
|
|
428
|
-
* "unixVer": "3.9
|
|
431
|
+
* "unixVer": "3.9+"
|
|
429
432
|
* },
|
|
430
433
|
* "ios": {
|
|
431
434
|
* "osVer": "9.0",
|
|
@@ -460,12 +463,12 @@ export interface Uni {
|
|
|
460
463
|
* "android": {
|
|
461
464
|
* "osVer": "4.4",
|
|
462
465
|
* "uniVer": "√",
|
|
463
|
-
* "unixVer": "3.9
|
|
466
|
+
* "unixVer": "3.9+"
|
|
464
467
|
* },
|
|
465
468
|
* "ios": {
|
|
466
469
|
* "osVer": "9.0",
|
|
467
470
|
* "uniVer": "√",
|
|
468
|
-
* "unixVer": "3.9
|
|
471
|
+
* "unixVer": "3.9+"
|
|
469
472
|
* }
|
|
470
473
|
* }
|
|
471
474
|
* }
|
|
@@ -511,7 +514,7 @@ export interface Uni {
|
|
|
511
514
|
* "android": {
|
|
512
515
|
* "osVer": "4.4",
|
|
513
516
|
* "uniVer": "√",
|
|
514
|
-
* "unixVer": "3.9
|
|
517
|
+
* "unixVer": "3.9+"
|
|
515
518
|
* },
|
|
516
519
|
* "ios": {
|
|
517
520
|
* "osVer": "9.0",
|
|
@@ -548,7 +551,7 @@ export interface Uni {
|
|
|
548
551
|
* "android": {
|
|
549
552
|
* "osVer": "4.4",
|
|
550
553
|
* "uniVer": "√",
|
|
551
|
-
* "unixVer": "3.9
|
|
554
|
+
* "unixVer": "3.9+"
|
|
552
555
|
* },
|
|
553
556
|
* "ios": {
|
|
554
557
|
* "osVer": "9.0",
|