@dcloudio/uni-app-x 0.7.31 → 0.7.33
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 +45 -11
- package/types/native/CSSStyleDeclaration.d.ts +72 -0
- package/types/native/DOMRect.d.ts +180 -0
- package/types/native/DrawableContext.d.ts +471 -4
- package/types/native/IUniElement.d.ts +3 -3
- package/types/native/SnapshotOptions.d.ts +0 -1
- package/types/native/UniElement.d.ts +1 -0
- package/types/native/UniEvent.d.ts +23 -1
- package/types/page.d.ts +98 -83
- package/types/uni/uts-plugin-api/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/global.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/interface.d.ts +48 -0
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +6 -6
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +781 -0
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +7 -5
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +33 -33
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +3 -4
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +224 -5
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/global.d.ts +14 -8
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/index.d.ts +7 -4
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +1788 -183
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +686 -661
- package/types/uni-cloud/interface.d.ts +1 -1
package/package.json
CHANGED
package/types/app.d.ts
CHANGED
|
@@ -724,8 +724,42 @@ declare global {
|
|
|
724
724
|
/**
|
|
725
725
|
* `getApp()` 函数用于获取当前应用实例,可通过应用实例调用 App.uvue methods 中定义的方法。
|
|
726
726
|
* @tutorial https://uniapp.dcloud.net.cn/tutorial/page.html#getapp
|
|
727
|
+
* @uniPlatform {
|
|
728
|
+
* "app": {
|
|
729
|
+
* "android": {
|
|
730
|
+
* "osVer": "5.0",
|
|
731
|
+
* "uniVer": "√",
|
|
732
|
+
* "unixVer": "√"
|
|
733
|
+
* },
|
|
734
|
+
* "ios": {
|
|
735
|
+
* "osVer": "12.0",
|
|
736
|
+
* "uniVer": "√",
|
|
737
|
+
* "unixVer": "√"
|
|
738
|
+
* },
|
|
739
|
+
* "harmony": {
|
|
740
|
+
* "osVer": "3.0",
|
|
741
|
+
* "uniVer": "4.23",
|
|
742
|
+
* "unixVer": "x"
|
|
743
|
+
* }
|
|
744
|
+
* },
|
|
745
|
+
* "mp": {
|
|
746
|
+
* "weixin": {
|
|
747
|
+
* "hostVer": "√",
|
|
748
|
+
* "uniVer": "√",
|
|
749
|
+
* "unixVer": "√"
|
|
750
|
+
* },
|
|
751
|
+
* },
|
|
752
|
+
* "web": {
|
|
753
|
+
* "uniVer": "√",
|
|
754
|
+
* "unixVer": "4.0"
|
|
755
|
+
* }
|
|
756
|
+
* }
|
|
727
757
|
*/
|
|
728
|
-
function getApp<T extends EditorCreateVueAppComponentX = AppCreateVueAppComponentDefault>():
|
|
758
|
+
function getApp<T extends EditorCreateVueAppComponentX = AppCreateVueAppComponentDefault>(): UniApp & {
|
|
759
|
+
globalData: AppInstance<T>['globalData']
|
|
760
|
+
vm: AppInstance<T>
|
|
761
|
+
$vm: AppInstance<T>
|
|
762
|
+
}
|
|
729
763
|
|
|
730
764
|
interface OnLaunchOptions {
|
|
731
765
|
/**
|
|
@@ -1011,12 +1045,12 @@ export interface UniApp {
|
|
|
1011
1045
|
* "android": {
|
|
1012
1046
|
* "osVer": "5.0",
|
|
1013
1047
|
* "uniVer": "x",
|
|
1014
|
-
* "unixVer": "4.
|
|
1048
|
+
* "unixVer": "4.31"
|
|
1015
1049
|
* },
|
|
1016
1050
|
* "ios": {
|
|
1017
1051
|
* "osVer": "x",
|
|
1018
1052
|
* "uniVer": "x",
|
|
1019
|
-
* "unixVer": "4.
|
|
1053
|
+
* "unixVer": "4.31"
|
|
1020
1054
|
* },
|
|
1021
1055
|
* "harmony": {
|
|
1022
1056
|
* "osVer": "x",
|
|
@@ -1033,7 +1067,7 @@ export interface UniApp {
|
|
|
1033
1067
|
* },
|
|
1034
1068
|
* "web": {
|
|
1035
1069
|
* "uniVer": "x",
|
|
1036
|
-
* "unixVer": "4.
|
|
1070
|
+
* "unixVer": "4.31"
|
|
1037
1071
|
* }
|
|
1038
1072
|
* }
|
|
1039
1073
|
*/
|
|
@@ -1047,12 +1081,12 @@ export interface UniApp {
|
|
|
1047
1081
|
* "android": {
|
|
1048
1082
|
* "osVer": "5.0",
|
|
1049
1083
|
* "uniVer": "x",
|
|
1050
|
-
* "unixVer": "4.
|
|
1084
|
+
* "unixVer": "4.31"
|
|
1051
1085
|
* },
|
|
1052
1086
|
* "ios": {
|
|
1053
1087
|
* "osVer": "x",
|
|
1054
1088
|
* "uniVer": "x",
|
|
1055
|
-
* "unixVer": "4.
|
|
1089
|
+
* "unixVer": "4.31"
|
|
1056
1090
|
* },
|
|
1057
1091
|
* "harmony": {
|
|
1058
1092
|
* "osVer": "x",
|
|
@@ -1069,7 +1103,7 @@ export interface UniApp {
|
|
|
1069
1103
|
* },
|
|
1070
1104
|
* "web": {
|
|
1071
1105
|
* "uniVer": "x",
|
|
1072
|
-
* "unixVer": "4.
|
|
1106
|
+
* "unixVer": "4.31"
|
|
1073
1107
|
* }
|
|
1074
1108
|
* }
|
|
1075
1109
|
*/
|
|
@@ -1083,12 +1117,12 @@ export interface UniApp {
|
|
|
1083
1117
|
* "android": {
|
|
1084
1118
|
* "osVer": "5.0",
|
|
1085
1119
|
* "uniVer": "x",
|
|
1086
|
-
* "unixVer": "4.
|
|
1120
|
+
* "unixVer": "4.31"
|
|
1087
1121
|
* },
|
|
1088
1122
|
* "ios": {
|
|
1089
1123
|
* "osVer": "x",
|
|
1090
1124
|
* "uniVer": "x",
|
|
1091
|
-
* "unixVer": "4.
|
|
1125
|
+
* "unixVer": "4.31"
|
|
1092
1126
|
* },
|
|
1093
1127
|
* "harmony": {
|
|
1094
1128
|
* "osVer": "x",
|
|
@@ -1105,7 +1139,7 @@ export interface UniApp {
|
|
|
1105
1139
|
* },
|
|
1106
1140
|
* "web": {
|
|
1107
1141
|
* "uniVer": "x",
|
|
1108
|
-
* "unixVer": "4.
|
|
1142
|
+
* "unixVer": "4.31"
|
|
1109
1143
|
* }
|
|
1110
1144
|
* }
|
|
1111
1145
|
*/
|
|
@@ -1117,7 +1151,7 @@ export interface UniApp {
|
|
|
1117
1151
|
* "android": {
|
|
1118
1152
|
* "osVer": "5.0",
|
|
1119
1153
|
* "uniVer": "x",
|
|
1120
|
-
* "unixVer": "4.
|
|
1154
|
+
* "unixVer": "4.31"
|
|
1121
1155
|
* },
|
|
1122
1156
|
* "ios": {
|
|
1123
1157
|
* "osVer": "x",
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* CSSStyleDeclaration表示一个CSS 声明块对象,它是一个 CSS 属性键值对的集合,暴露样式信息和各种与样式相关的方法和属性。
|
|
3
3
|
* @package io.dcloud.uniapp.runtime
|
|
4
|
+
* @uniPlatform {
|
|
5
|
+
* "app": {
|
|
6
|
+
* "android": {
|
|
7
|
+
* "osVer": "5.0",
|
|
8
|
+
* "uniVer": "x",
|
|
9
|
+
* "unixVer": "3.9"
|
|
10
|
+
* },
|
|
11
|
+
* "ios": {
|
|
12
|
+
* "osVer": "12.0",
|
|
13
|
+
* "uniVer": "x",
|
|
14
|
+
* "unixVer": "4.11"
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* "web": {
|
|
18
|
+
* "uniVer": "x",
|
|
19
|
+
* "unixVer": "4.0"
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
4
22
|
*/
|
|
5
23
|
export class CSSStyleDeclaration {
|
|
6
24
|
|
|
@@ -8,18 +26,72 @@ export class CSSStyleDeclaration {
|
|
|
8
26
|
* 对CSS指定样式设置一个新值,如有此样式已存在则更新。
|
|
9
27
|
* @param name CSS样式名称
|
|
10
28
|
* @param value 要设置的新CSS样式值
|
|
29
|
+
* @uniPlatform {
|
|
30
|
+
* "app": {
|
|
31
|
+
* "android": {
|
|
32
|
+
* "osVer": "5.0",
|
|
33
|
+
* "uniVer": "x",
|
|
34
|
+
* "unixVer": "3.9"
|
|
35
|
+
* },
|
|
36
|
+
* "ios": {
|
|
37
|
+
* "osVer": "12.0",
|
|
38
|
+
* "uniVer": "x",
|
|
39
|
+
* "unixVer": "4.11"
|
|
40
|
+
* }
|
|
41
|
+
* }
|
|
42
|
+
* "web": {
|
|
43
|
+
* "uniVer": "x",
|
|
44
|
+
* "unixVer": "4.0"
|
|
45
|
+
* }
|
|
46
|
+
* }
|
|
11
47
|
*/
|
|
12
48
|
setProperty(name: string | string.cssPropertyString, value: any | null): void
|
|
13
49
|
|
|
14
50
|
/**
|
|
15
51
|
* 获取CSS指定的样式值,如果指定的样式不存在则返回null。
|
|
16
52
|
* @param property 要获取的CSS样式名称
|
|
53
|
+
* @uniPlatform {
|
|
54
|
+
* "app": {
|
|
55
|
+
* "android": {
|
|
56
|
+
* "osVer": "5.0",
|
|
57
|
+
* "uniVer": "x",
|
|
58
|
+
* "unixVer": "3.9"
|
|
59
|
+
* },
|
|
60
|
+
* "ios": {
|
|
61
|
+
* "osVer": "12.0",
|
|
62
|
+
* "uniVer": "x",
|
|
63
|
+
* "unixVer": "4.11"
|
|
64
|
+
* }
|
|
65
|
+
* }
|
|
66
|
+
* "web": {
|
|
67
|
+
* "uniVer": "x",
|
|
68
|
+
* "unixVer": "4.0"
|
|
69
|
+
* }
|
|
70
|
+
* }
|
|
17
71
|
*/
|
|
18
72
|
getPropertyValue(property: string | string.cssPropertyString): any | null
|
|
19
73
|
|
|
20
74
|
/**
|
|
21
75
|
* 删除CSS指定的样式值
|
|
22
76
|
* @param property 要删除的CSS样式名称
|
|
77
|
+
* @uniPlatform {
|
|
78
|
+
* "app": {
|
|
79
|
+
* "android": {
|
|
80
|
+
* "osVer": "5.0",
|
|
81
|
+
* "uniVer": "x",
|
|
82
|
+
* "unixVer": "3.9"
|
|
83
|
+
* },
|
|
84
|
+
* "ios": {
|
|
85
|
+
* "osVer": "12.0",
|
|
86
|
+
* "uniVer": "x",
|
|
87
|
+
* "unixVer": "4.11"
|
|
88
|
+
* }
|
|
89
|
+
* }
|
|
90
|
+
* "web": {
|
|
91
|
+
* "uniVer": "x",
|
|
92
|
+
* "unixVer": "4.0"
|
|
93
|
+
* }
|
|
94
|
+
* }
|
|
23
95
|
*/
|
|
24
96
|
removeProperty(property: string | string.cssPropertyString): any | null
|
|
25
97
|
}
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 一个 DOMRect 代表一个矩形。
|
|
3
3
|
* @package io.dcloud.uniapp.runtime
|
|
4
|
+
* @uniPlatform {
|
|
5
|
+
* "app": {
|
|
6
|
+
* "android": {
|
|
7
|
+
* "osVer": "5.0",
|
|
8
|
+
* "uniVer": "x",
|
|
9
|
+
* "unixVer": "3.9"
|
|
10
|
+
* },
|
|
11
|
+
* "ios": {
|
|
12
|
+
* "osVer": "12.0",
|
|
13
|
+
* "uniVer": "x",
|
|
14
|
+
* "unixVer": "4.11"
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* "web": {
|
|
18
|
+
* "uniVer": "x",
|
|
19
|
+
* "unixVer": "4.0"
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
4
22
|
*/
|
|
5
23
|
export class DOMRect {
|
|
6
24
|
|
|
@@ -10,46 +28,208 @@ export class DOMRect {
|
|
|
10
28
|
* @param {number} [y=0] 矩形原点的y坐标
|
|
11
29
|
* @param {number} [width=0] 矩形的宽
|
|
12
30
|
* @param {number} [height=0] 矩形的高
|
|
31
|
+
* @uniPlatform {
|
|
32
|
+
* "app": {
|
|
33
|
+
* "android": {
|
|
34
|
+
* "osVer": "5.0",
|
|
35
|
+
* "uniVer": "x",
|
|
36
|
+
* "unixVer": "3.9"
|
|
37
|
+
* },
|
|
38
|
+
* "ios": {
|
|
39
|
+
* "osVer": "12.0",
|
|
40
|
+
* "uniVer": "x",
|
|
41
|
+
* "unixVer": "4.11"
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
* "web": {
|
|
45
|
+
* "uniVer": "x",
|
|
46
|
+
* "unixVer": "4.0"
|
|
47
|
+
* }
|
|
48
|
+
* }
|
|
13
49
|
*/
|
|
14
50
|
constructor (x?: number, y?: number, width?: number, height?: number);
|
|
15
51
|
|
|
16
52
|
/**
|
|
17
53
|
* 矩形的宽
|
|
54
|
+
* @uniPlatform {
|
|
55
|
+
* "app": {
|
|
56
|
+
* "android": {
|
|
57
|
+
* "osVer": "5.0",
|
|
58
|
+
* "uniVer": "x",
|
|
59
|
+
* "unixVer": "3.9"
|
|
60
|
+
* },
|
|
61
|
+
* "ios": {
|
|
62
|
+
* "osVer": "12.0",
|
|
63
|
+
* "uniVer": "x",
|
|
64
|
+
* "unixVer": "4.11"
|
|
65
|
+
* }
|
|
66
|
+
* }
|
|
67
|
+
* "web": {
|
|
68
|
+
* "uniVer": "x",
|
|
69
|
+
* "unixVer": "4.0"
|
|
70
|
+
* }
|
|
71
|
+
* }
|
|
18
72
|
*/
|
|
19
73
|
width: number
|
|
20
74
|
|
|
21
75
|
/**
|
|
22
76
|
* 矩形的高
|
|
77
|
+
* @uniPlatform {
|
|
78
|
+
* "app": {
|
|
79
|
+
* "android": {
|
|
80
|
+
* "osVer": "5.0",
|
|
81
|
+
* "uniVer": "x",
|
|
82
|
+
* "unixVer": "3.9"
|
|
83
|
+
* },
|
|
84
|
+
* "ios": {
|
|
85
|
+
* "osVer": "12.0",
|
|
86
|
+
* "uniVer": "x",
|
|
87
|
+
* "unixVer": "4.11"
|
|
88
|
+
* }
|
|
89
|
+
* }
|
|
90
|
+
* "web": {
|
|
91
|
+
* "uniVer": "x",
|
|
92
|
+
* "unixVer": "4.0"
|
|
93
|
+
* }
|
|
94
|
+
* }
|
|
23
95
|
*/
|
|
24
96
|
height: number
|
|
25
97
|
|
|
26
98
|
/**
|
|
27
99
|
* 矩形原点的x坐标
|
|
100
|
+
* @uniPlatform {
|
|
101
|
+
* "app": {
|
|
102
|
+
* "android": {
|
|
103
|
+
* "osVer": "5.0",
|
|
104
|
+
* "uniVer": "x",
|
|
105
|
+
* "unixVer": "3.9"
|
|
106
|
+
* },
|
|
107
|
+
* "ios": {
|
|
108
|
+
* "osVer": "12.0",
|
|
109
|
+
* "uniVer": "x",
|
|
110
|
+
* "unixVer": "4.11"
|
|
111
|
+
* }
|
|
112
|
+
* }
|
|
113
|
+
* "web": {
|
|
114
|
+
* "uniVer": "x",
|
|
115
|
+
* "unixVer": "4.0"
|
|
116
|
+
* }
|
|
117
|
+
* }
|
|
28
118
|
*/
|
|
29
119
|
x: number
|
|
30
120
|
|
|
31
121
|
/**
|
|
32
122
|
* 矩形原点的y坐标
|
|
123
|
+
* @uniPlatform {
|
|
124
|
+
* "app": {
|
|
125
|
+
* "android": {
|
|
126
|
+
* "osVer": "5.0",
|
|
127
|
+
* "uniVer": "x",
|
|
128
|
+
* "unixVer": "3.9"
|
|
129
|
+
* },
|
|
130
|
+
* "ios": {
|
|
131
|
+
* "osVer": "12.0",
|
|
132
|
+
* "uniVer": "x",
|
|
133
|
+
* "unixVer": "4.11"
|
|
134
|
+
* }
|
|
135
|
+
* }
|
|
136
|
+
* "web": {
|
|
137
|
+
* "uniVer": "x",
|
|
138
|
+
* "unixVer": "4.0"
|
|
139
|
+
* }
|
|
140
|
+
* }
|
|
33
141
|
*/
|
|
34
142
|
y: number
|
|
35
143
|
|
|
36
144
|
/**
|
|
37
145
|
* 矩形的左坐标值
|
|
146
|
+
* @uniPlatform {
|
|
147
|
+
* "app": {
|
|
148
|
+
* "android": {
|
|
149
|
+
* "osVer": "5.0",
|
|
150
|
+
* "uniVer": "x",
|
|
151
|
+
* "unixVer": "3.9"
|
|
152
|
+
* },
|
|
153
|
+
* "ios": {
|
|
154
|
+
* "osVer": "12.0",
|
|
155
|
+
* "uniVer": "x",
|
|
156
|
+
* "unixVer": "4.11"
|
|
157
|
+
* }
|
|
158
|
+
* }
|
|
159
|
+
* "web": {
|
|
160
|
+
* "uniVer": "x",
|
|
161
|
+
* "unixVer": "4.0"
|
|
162
|
+
* }
|
|
163
|
+
* }
|
|
38
164
|
*/
|
|
39
165
|
left: number
|
|
40
166
|
|
|
41
167
|
/**
|
|
42
168
|
* 矩形的右坐标值
|
|
169
|
+
* @uniPlatform {
|
|
170
|
+
* "app": {
|
|
171
|
+
* "android": {
|
|
172
|
+
* "osVer": "5.0",
|
|
173
|
+
* "uniVer": "x",
|
|
174
|
+
* "unixVer": "3.9"
|
|
175
|
+
* },
|
|
176
|
+
* "ios": {
|
|
177
|
+
* "osVer": "12.0",
|
|
178
|
+
* "uniVer": "x",
|
|
179
|
+
* "unixVer": "4.11"
|
|
180
|
+
* }
|
|
181
|
+
* }
|
|
182
|
+
* "web": {
|
|
183
|
+
* "uniVer": "x",
|
|
184
|
+
* "unixVer": "4.0"
|
|
185
|
+
* }
|
|
186
|
+
* }
|
|
43
187
|
*/
|
|
44
188
|
right: number
|
|
45
189
|
|
|
46
190
|
/**
|
|
47
191
|
* 矩形的顶坐标值
|
|
192
|
+
* @uniPlatform {
|
|
193
|
+
* "app": {
|
|
194
|
+
* "android": {
|
|
195
|
+
* "osVer": "5.0",
|
|
196
|
+
* "uniVer": "x",
|
|
197
|
+
* "unixVer": "3.9"
|
|
198
|
+
* },
|
|
199
|
+
* "ios": {
|
|
200
|
+
* "osVer": "12.0",
|
|
201
|
+
* "uniVer": "x",
|
|
202
|
+
* "unixVer": "4.11"
|
|
203
|
+
* }
|
|
204
|
+
* }
|
|
205
|
+
* "web": {
|
|
206
|
+
* "uniVer": "x",
|
|
207
|
+
* "unixVer": "4.0"
|
|
208
|
+
* }
|
|
209
|
+
* }
|
|
48
210
|
*/
|
|
49
211
|
top: number;
|
|
50
212
|
|
|
51
213
|
/**
|
|
52
214
|
* 矩形的底坐标值
|
|
215
|
+
* @uniPlatform {
|
|
216
|
+
* "app": {
|
|
217
|
+
* "android": {
|
|
218
|
+
* "osVer": "5.0",
|
|
219
|
+
* "uniVer": "x",
|
|
220
|
+
* "unixVer": "3.9"
|
|
221
|
+
* },
|
|
222
|
+
* "ios": {
|
|
223
|
+
* "osVer": "12.0",
|
|
224
|
+
* "uniVer": "x",
|
|
225
|
+
* "unixVer": "4.11"
|
|
226
|
+
* }
|
|
227
|
+
* }
|
|
228
|
+
* "web": {
|
|
229
|
+
* "uniVer": "x",
|
|
230
|
+
* "unixVer": "4.0"
|
|
231
|
+
* }
|
|
232
|
+
* }
|
|
53
233
|
*/
|
|
54
234
|
bottom: number
|
|
55
235
|
|