@dcloudio/uni-app-x 0.7.61 → 0.7.63

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 (80) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +36 -1
  3. package/types/dom2/UniCSSProperty.d.ts +446 -0
  4. package/types/dom2/UniCSSType.d.ts +72 -0
  5. package/types/dom2/UniCommon.d.ts +40 -0
  6. package/types/dom2/UniCustomViewElement.d.ts +12 -0
  7. package/types/dom2/UniElement.d.ts +354 -0
  8. package/types/dom2/UniElementType.d.ts +37 -0
  9. package/types/dom2/UniImageElement.d.ts +102 -0
  10. package/types/dom2/UniNativeBaseView.d.ts +178 -0
  11. package/types/dom2/UniNativeCustomView.d.ts +13 -0
  12. package/types/dom2/UniNativeDefines.d.ts +435 -0
  13. package/types/dom2/UniNativeImageView.d.ts +34 -0
  14. package/types/dom2/UniNativeScrollView.d.ts +42 -0
  15. package/types/dom2/UniNativeTextView.d.ts +25 -0
  16. package/types/dom2/UniNativeView.d.ts +51 -0
  17. package/types/dom2/UniNativeViewType.d.ts +22 -0
  18. package/types/dom2/UniPage.d.ts +55 -0
  19. package/types/dom2/UniScrollViewElement.d.ts +13 -0
  20. package/types/dom2/UniTextElement.d.ts +20 -0
  21. package/types/dom2/UniTextLayout.d.ts +386 -0
  22. package/types/dom2/UniViewElement.d.ts +57 -0
  23. package/types/dom2/global.d.ts +189 -0
  24. package/types/dom2/index.d.ts +40 -0
  25. package/types/dom2/sharedData.d.ts +227 -0
  26. package/types/index.d.ts +2 -1
  27. package/types/native/DOMRect.d.ts +2 -1
  28. package/types/native/DrawableContext.d.ts +1665 -1661
  29. package/types/native/IUniElement.d.ts +3514 -2877
  30. package/types/native/SnapshotOptions.d.ts +2 -2
  31. package/types/native/UniAnimation.d.ts +11 -10
  32. package/types/native/UniEvent.d.ts +108 -3
  33. package/types/native/UniPage.d.ts +891 -882
  34. package/types/native/UniTextElement.d.ts +37 -0
  35. package/types/native/UniTextLayout.d.ts +387 -0
  36. package/types/native/UniVideoElement.d.ts +20 -17
  37. package/types/native/Worker.d.ts +19 -0
  38. package/types/native/global.d.ts +28 -68
  39. package/types/native/index.d.ts +18 -1
  40. package/types/page.d.ts +1862 -599
  41. package/types/uni/uts-plugin-api/global.d.ts +2 -0
  42. package/types/uni/uts-plugin-api/index.d.ts +2 -0
  43. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +1 -1
  44. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +10 -10
  45. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +0 -1
  46. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/global.d.ts +22 -0
  47. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/index.d.ts +10 -0
  48. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/interface.d.ts +524 -0
  49. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +985 -76
  50. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +79 -55
  51. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +77 -53
  52. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +458 -407
  53. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +420 -0
  54. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +80 -80
  55. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/global.d.ts +12 -4
  56. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/index.d.ts +6 -2
  57. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +713 -91
  58. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +4 -0
  59. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +3 -3
  60. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +3 -1
  61. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +71 -1
  62. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +1 -1
  63. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/global.d.ts +56 -0
  64. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/index.d.ts +27 -0
  65. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +842 -0
  66. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +11 -11
  67. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -1
  68. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +63 -42
  69. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +2 -2
  70. package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +2 -2
  71. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/global.d.ts +4 -0
  72. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/index.d.ts +2 -0
  73. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +1007 -314
  74. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/global.d.ts +4 -0
  75. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/index.d.ts +2 -0
  76. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +1727 -10
  77. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +235 -30
  78. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +1 -1
  79. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +17 -17
  80. package/uts-plugin.d.ts +11 -0
@@ -29,10 +29,11 @@ export type TakeSnapshotFailCallback = (res: TakeSnapshotFail) => void
29
29
  */
30
30
  export type TakeSnapshotCompleteCallback = (res: any) => void
31
31
 
32
+
32
33
  /**
33
34
  * 组件截图的参数配置选项
34
35
  */
35
- export class TakeSnapshotOptions {
36
+ export type TakeSnapshotOptions = {
36
37
 
37
38
  /**
38
39
  * 截图导出类型,目前仅支持 'file' 保存到临时文件目录
@@ -59,4 +60,3 @@ export class TakeSnapshotOptions {
59
60
  complete?: TakeSnapshotCompleteCallback | null
60
61
 
61
62
  }
62
-
@@ -1,8 +1,8 @@
1
1
  import { UniAnimationPlaybackEvent } from "./UniAnimationPlaybackEvent"
2
2
 
3
- type UniAnimationOnCancel = (event : UniAnimationPlaybackEvent) => void
3
+ type UniAnimationOnCancel = (event: UniAnimationPlaybackEvent) => void
4
4
 
5
- type UniAnimationOnFinish = (event : UniAnimationPlaybackEvent) => void
5
+ type UniAnimationOnFinish = (event: UniAnimationPlaybackEvent) => void
6
6
 
7
7
  /**
8
8
  * @package io.dcloud.uniapp.runtime
@@ -131,7 +131,7 @@ export class UniAnimation {
131
131
  * }
132
132
  * }
133
133
  */
134
- id : string
134
+ id: string
135
135
  /**
136
136
  * 返回动画播放状态。可选值:`running`动画正在运行;`paused`动画暂停;`finished`动画播放完成;`idle`动画取消或者失败
137
137
  * @uniPlatform {
@@ -195,7 +195,7 @@ export class UniAnimation {
195
195
  * }
196
196
  * }
197
197
  */
198
- playState : string
198
+ playState: string
199
199
  /**
200
200
  * 监听动画取消事件
201
201
  * @uniPlatform {
@@ -259,7 +259,7 @@ export class UniAnimation {
259
259
  * }
260
260
  * }
261
261
  */
262
- oncancel : UniAnimationOnCancel | null
262
+ oncancel: UniAnimationOnCancel | null
263
263
  /**
264
264
  * 监听动画完成事件
265
265
  * @uniPlatform {
@@ -323,7 +323,7 @@ export class UniAnimation {
323
323
  * }
324
324
  * }
325
325
  */
326
- onfinish : UniAnimationOnFinish | null
326
+ onfinish: UniAnimationOnFinish | null
327
327
  /**
328
328
  * 终止并取消所有动画
329
329
  * @uniPlatform {
@@ -387,7 +387,7 @@ export class UniAnimation {
387
387
  * }
388
388
  * }
389
389
  */
390
- cancel() : void
390
+ cancel(): void
391
391
  /**
392
392
  * 动画跳转到最后一毫秒并立即播放完成
393
393
  * @uniPlatform {
@@ -451,7 +451,7 @@ export class UniAnimation {
451
451
  * }
452
452
  * }
453
453
  */
454
- finish() : void
454
+ finish(): void
455
455
  /**
456
456
  * 暂停动画播放
457
457
  * @uniPlatform {
@@ -515,7 +515,7 @@ export class UniAnimation {
515
515
  * }
516
516
  * }
517
517
  */
518
- pause() : void
518
+ pause(): void
519
519
  /**
520
520
  * 开始或恢复动画播放
521
521
  * @uniPlatform {
@@ -579,5 +579,6 @@ export class UniAnimation {
579
579
  * }
580
580
  * }
581
581
  */
582
- play() : void
582
+ play(): void
583
583
  }
584
+
@@ -26,22 +26,122 @@ export class UniEvent {
26
26
  cancelable: boolean
27
27
  /**
28
28
  * 事件类型
29
+ *
30
+ * @uniPlatform {
31
+ * "app": {
32
+ * "android": {
33
+ * "osVer": "5.0",
34
+ * "uniVer": "x",
35
+ * "unixVer": "3.9"
36
+ * },
37
+ * "harmony": {
38
+ * "osVer": "5.0",
39
+ * "uniVer": "x",
40
+ * "unixVer": "4.61"
41
+ * }
42
+ * },
43
+ * "web": {
44
+ * "uniVer": "√",
45
+ * "unixVer": "4.0"
46
+ * }
47
+ * }
29
48
  */
30
49
  type: string
31
50
  /**
32
51
  * 触发事件的组件
52
+ *
53
+ * @uniPlatform {
54
+ * "app": {
55
+ * "android": {
56
+ * "osVer": "5.0",
57
+ * "uniVer": "x",
58
+ * "unixVer": "3.9"
59
+ * },
60
+ * "harmony": {
61
+ * "osVer": "5.0",
62
+ * "uniVer": "x",
63
+ * "unixVer": "4.61"
64
+ * }
65
+ * },
66
+ * "web": {
67
+ * "uniVer": "√",
68
+ * "unixVer": "4.0"
69
+ * }
70
+ * }
33
71
  */
34
72
  target?: UniElement | null
35
73
  /**
36
74
  * 当前组件
75
+ *
76
+ * @uniPlatform {
77
+ * "app": {
78
+ * "android": {
79
+ * "osVer": "5.0",
80
+ * "uniVer": "x",
81
+ * "unixVer": "3.9"
82
+ * },
83
+ * "harmony": {
84
+ * "osVer": "5.0",
85
+ * "uniVer": "x",
86
+ * "unixVer": "4.61"
87
+ * }
88
+ * },
89
+ * "web": {
90
+ * "uniVer": "√",
91
+ * "unixVer": "4.0"
92
+ * }
93
+ * }
37
94
  */
38
95
  currentTarget?: UniElement | null
39
96
  /**
40
97
  * 事件发生时的时间戳
98
+ *
99
+ * @uniPlatform {
100
+ * "app": {
101
+ * "android": {
102
+ * "osVer": "5.0",
103
+ * "uniVer": "x",
104
+ * "unixVer": "3.9"
105
+ * },
106
+ * "harmony": {
107
+ * "osVer": "5.0",
108
+ * "uniVer": "x",
109
+ * "unixVer": "4.61"
110
+ * }
111
+ * },
112
+ * "web": {
113
+ * "uniVer": "√",
114
+ * "unixVer": "4.0"
115
+ * }
116
+ * }
41
117
  */
42
118
  timeStamp: number
43
119
  /**
44
120
  * 阻止当前事件的进一步传播
121
+ *
122
+ * @uniPlatform {
123
+ * "app": {
124
+ * "android": {
125
+ * "osVer": "5.0",
126
+ * "uniVer": "x",
127
+ * "unixVer": "3.9"
128
+ * },
129
+ * "ios": {
130
+ * "osVer": "12.0",
131
+ * "uniVer": "x",
132
+ * "unixVer": "4.0"
133
+ * },
134
+ * "harmony": {
135
+ * "osVer": "5.0",
136
+ * "uniVer": "x",
137
+ * "unixVer": "4.61"
138
+ * }
139
+ * },
140
+ * "web": {
141
+ * "uniVer": "√",
142
+ * "unixVer": "4.0"
143
+ * }
144
+ * }
45
145
  */
46
146
  stopPropagation(): void
47
147
 
@@ -58,9 +158,14 @@ export class UniEvent {
58
158
  * "ios": {
59
159
  * "osVer": "12.0",
60
160
  * "uniVer": "x",
61
- * "unixVer": "x"
62
- * }
63
- * }
161
+ * "unixVer": "4.55"
162
+ * },
163
+ * "harmony": {
164
+ * "osVer": "5.0",
165
+ * "uniVer": "x",
166
+ * "unixVer": "4.61"
167
+ * }
168
+ * },
64
169
  * "web": {
65
170
  * "uniVer": "√",
66
171
  * "unixVer": "4.0"