@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.
- package/package.json +1 -1
- package/types/app.d.ts +36 -1
- package/types/dom2/UniCSSProperty.d.ts +446 -0
- package/types/dom2/UniCSSType.d.ts +72 -0
- package/types/dom2/UniCommon.d.ts +40 -0
- package/types/dom2/UniCustomViewElement.d.ts +12 -0
- package/types/dom2/UniElement.d.ts +354 -0
- package/types/dom2/UniElementType.d.ts +37 -0
- package/types/dom2/UniImageElement.d.ts +102 -0
- package/types/dom2/UniNativeBaseView.d.ts +178 -0
- package/types/dom2/UniNativeCustomView.d.ts +13 -0
- package/types/dom2/UniNativeDefines.d.ts +435 -0
- package/types/dom2/UniNativeImageView.d.ts +34 -0
- package/types/dom2/UniNativeScrollView.d.ts +42 -0
- package/types/dom2/UniNativeTextView.d.ts +25 -0
- package/types/dom2/UniNativeView.d.ts +51 -0
- package/types/dom2/UniNativeViewType.d.ts +22 -0
- package/types/dom2/UniPage.d.ts +55 -0
- package/types/dom2/UniScrollViewElement.d.ts +13 -0
- package/types/dom2/UniTextElement.d.ts +20 -0
- package/types/dom2/UniTextLayout.d.ts +386 -0
- package/types/dom2/UniViewElement.d.ts +57 -0
- package/types/dom2/global.d.ts +189 -0
- package/types/dom2/index.d.ts +40 -0
- package/types/dom2/sharedData.d.ts +227 -0
- package/types/index.d.ts +2 -1
- package/types/native/DOMRect.d.ts +2 -1
- package/types/native/DrawableContext.d.ts +1665 -1661
- package/types/native/IUniElement.d.ts +3514 -2877
- package/types/native/SnapshotOptions.d.ts +2 -2
- package/types/native/UniAnimation.d.ts +11 -10
- package/types/native/UniEvent.d.ts +108 -3
- package/types/native/UniPage.d.ts +891 -882
- package/types/native/UniTextElement.d.ts +37 -0
- package/types/native/UniTextLayout.d.ts +387 -0
- package/types/native/UniVideoElement.d.ts +20 -17
- package/types/native/Worker.d.ts +19 -0
- package/types/native/global.d.ts +28 -68
- package/types/native/index.d.ts +18 -1
- package/types/page.d.ts +1862 -599
- 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-chooseMedia/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/interface.d.ts +524 -0
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +985 -76
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +79 -55
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +77 -53
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +458 -407
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +420 -0
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +80 -80
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/global.d.ts +12 -4
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/index.d.ts +6 -2
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +713 -91
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +3 -1
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +71 -1
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/global.d.ts +56 -0
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/index.d.ts +27 -0
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +842 -0
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +63 -42
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +1007 -314
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +1727 -10
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +235 -30
- package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +17 -17
- 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
|
|
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
|
|
3
|
+
type UniAnimationOnCancel = (event: UniAnimationPlaybackEvent) => void
|
|
4
4
|
|
|
5
|
-
type UniAnimationOnFinish = (event
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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()
|
|
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()
|
|
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()
|
|
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()
|
|
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": "
|
|
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"
|