@dcloudio/uni-app-x 0.7.13 → 0.7.14

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.
Files changed (124) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +5 -6
  3. package/types/index.d.ts +1 -1
  4. package/types/native/CSSStyleDeclaration.d.ts +72 -0
  5. package/types/native/DOMRect.d.ts +180 -0
  6. package/types/native/DrawableContext.d.ts +628 -161
  7. package/types/native/IUniElement.d.ts +1834 -222
  8. package/types/native/SnapshotOptions.d.ts +0 -1
  9. package/types/native/UniApp.d.ts +17 -1
  10. package/types/native/UniEvent.d.ts +30 -0
  11. package/types/native/UniNativePage.d.ts +4 -0
  12. package/types/native/UniProvider.d.ts +14 -0
  13. package/types/native/UniResizeObserver.d.ts +92 -2
  14. package/types/native/UniSwiperAnimationFinishEvent.d.ts +24 -2
  15. package/types/native/UniSwiperChangeEvent.d.ts +24 -2
  16. package/types/native/UniSwiperTransitionEvent.d.ts +2 -2
  17. package/types/native/UniWebViewErrorEvent.d.ts +3 -3
  18. package/types/native/UniWebViewLoadEvent.d.ts +2 -2
  19. package/types/native/UniWebViewLoadingEvent.d.ts +2 -2
  20. package/types/native/UniWebViewMessageEvent.d.ts +1 -1
  21. package/types/native/global.d.ts +19 -9
  22. package/types/native/index.d.ts +1 -0
  23. package/types/page.d.ts +85 -0
  24. package/types/uni/global.d.ts +1 -0
  25. package/types/uni/index.d.ts +2 -1
  26. package/types/uni/uts-plugin-api/global.d.ts +2 -1
  27. package/types/uni/uts-plugin-api/index.d.ts +2 -1
  28. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +2 -2
  29. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -2
  30. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +6 -0
  31. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +3 -0
  32. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +56 -7
  33. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +87 -11
  34. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +292 -9
  35. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +533 -118
  36. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
  37. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +2 -2
  38. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +4 -4
  39. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +88 -74
  40. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1357 -39
  41. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +102 -6
  42. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +164 -26
  43. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +4 -4
  44. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +14 -15
  45. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +661 -41
  46. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +13 -10
  47. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +10 -10
  48. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +2 -2
  49. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +90 -7
  50. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -0
  51. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -0
  52. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +466 -0
  53. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +152 -2
  54. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +4 -4
  55. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +2 -2
  56. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +42 -37
  57. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +193 -19
  58. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +10 -10
  59. package/types/uni/uts-plugin-extend/README.md +3 -0
  60. package/types/uni/uts-plugin-extend/global.d.ts +14 -0
  61. package/types/uni/uts-plugin-extend/index.d.ts +16 -0
  62. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -0
  63. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -0
  64. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -0
  65. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -0
  66. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -0
  67. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -0
  68. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -0
  69. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -0
  70. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -0
  71. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -0
  72. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -0
  73. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -0
  74. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -0
  75. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -0
  76. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -0
  77. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -0
  78. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -0
  79. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +486 -0
  80. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -0
  81. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -0
  82. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -0
  83. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/global.d.ts +21 -0
  84. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/index.d.ts +9 -0
  85. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/interface.d.ts +119 -0
  86. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -0
  87. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -0
  88. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -0
  89. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -0
  90. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -0
  91. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -0
  92. package/types/uni/uts-plugin-extend/lib/uni-makePhoneCall/utssdk/global.d.ts +21 -0
  93. package/types/uni/uts-plugin-extend/lib/uni-makePhoneCall/utssdk/index.d.ts +9 -0
  94. package/types/uni/uts-plugin-extend/lib/uni-makePhoneCall/utssdk/interface.d.ts +121 -0
  95. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -0
  96. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -0
  97. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -0
  98. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -0
  99. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -0
  100. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -0
  101. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -0
  102. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -0
  103. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -0
  104. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/global.d.ts +21 -0
  105. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/index.d.ts +9 -0
  106. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/interface.d.ts +122 -0
  107. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -0
  108. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -0
  109. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -0
  110. package/types/uni-cloud/index.d.ts +4 -0
  111. package/types/uni-cloud/interface.d.ts +106 -17
  112. package/types/vue/CheckboxGroupChangeEvent.d.ts +10 -13
  113. package/types/vue/LifeCycle.d.ts +32 -32
  114. package/types/vue/PickerViewChangeEvent.d.ts +10 -13
  115. package/types/vue/ProgressActiveendEvent.d.ts +9 -11
  116. package/types/vue/RadioGroupChangeEvent.d.ts +10 -13
  117. package/types/vue/SliderChangeEvent.d.ts +9 -10
  118. package/types/vue/SwitchChangeEvent.d.ts +11 -13
  119. package/types/vue/UniCloudDBElement.d.ts +72 -75
  120. package/types/vue/UniFormElement.d.ts +17 -19
  121. package/types/vue/UniNavigatorElement.d.ts +1 -2
  122. package/types/vue/global.d.ts +190 -0
  123. package/types/vue/index.d.ts +10 -11
  124. package/types/vue-global/index.d.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.7.13",
3
+ "version": "0.7.14",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "author": "DCloud",
package/types/app.d.ts CHANGED
@@ -318,22 +318,21 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
318
318
  onHide?(): void;
319
319
  /**
320
320
  * 错误监听函数
321
- * 小程序发生脚本错误或 API 调用报错时触发
322
- * @param error 错误信息,包含堆栈
321
+ * 应用发生脚本错误或 API 调用报错时触发
322
+ * @param error 错误信息
323
323
  *
324
- * @tutorial [https://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
325
- * @autodoc false
324
+ * @tutorial [https://doc.dcloud.net.cn/uni-app-x/collocation/app.html](https://doc.dcloud.net.cn/uni-app-x/collocation/app.html)
326
325
  * @uniPlatform {
327
326
  * "app": {
328
327
  * "android": {
329
328
  * "osVer": "5.0",
330
329
  * "uniVer": "√",
331
- * "unixVer": "x"
330
+ * "unixVer": "4.21"
332
331
  * },
333
332
  * "ios": {
334
333
  * "osVer": "10.0",
335
334
  * "uniVer": "√",
336
- * "unixVer": "x"
335
+ * "unixVer": "4.21"
337
336
  * }
338
337
  * },
339
338
  * "mp": {
package/types/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference path='./native/global.d.ts' />
2
- /// <reference path='./vue/index.d.ts' />
2
+ /// <reference path='./vue/global.d.ts' />
3
3
  /// <reference path='./uni/global.d.ts' />
4
4
  /// <reference path='./uni-cloud/index.d.ts' />
5
5
  /// <reference path='./app.d.ts' />
@@ -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