@dcloudio/uni-app-x 0.7.41 → 0.7.43
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/UniPage.d.ts +32 -77
- package/types/app.d.ts +39 -2
- package/types/native/CSSStyleDeclaration.d.ts +40 -7
- package/types/native/CanvasRenderingContext2D.d.ts +56 -6
- package/types/native/IUniElement.d.ts +31 -2
- package/types/native/UniAnimation.d.ts +578 -0
- package/types/native/UniAnimationPlaybackEvent.d.ts +12 -0
- package/types/native/UniNativePage.d.ts +1 -19
- package/types/native/UniSafeAreaInsets.d.ts +74 -0
- package/types/native/global.d.ts +6 -2
- package/types/native/index.d.ts +3 -1
- package/types/uni/uni-map-tencent-global.d.ts +5 -1
- package/types/uni/uni-map-tencent-map.d.ts +7 -0
- package/types/uni/uts-plugin-api/global.d.ts +3 -0
- package/types/uni/uts-plugin-api/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +680 -51
- package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/global.d.ts +32 -0
- package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/index.d.ts +15 -0
- package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +685 -0
- package/types/uni/uts-plugin-api/lib/uni-document/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-document/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-document/utssdk/interface.d.ts +76 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +105 -104
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +75 -1
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +4 -5
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +0 -22
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +0 -11
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +171 -896
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/global.d.ts +46 -0
- package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/index.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +339 -0
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +6 -4
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +2187 -2066
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +268 -20
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +398 -203
- package/types/native/UniSafeArea.d.ts +0 -185
package/package.json
CHANGED
package/types/UniPage.d.ts
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UniSafeAreaInsets } from './native/UniSafeAreaInsets'
|
|
2
|
+
|
|
3
|
+
type UniPageBody = {
|
|
4
|
+
/**
|
|
5
|
+
* pageBody 距离顶部的距离
|
|
6
|
+
*/
|
|
7
|
+
top: number,
|
|
8
|
+
/**
|
|
9
|
+
* pageBody 距离右侧的距离
|
|
10
|
+
*/
|
|
11
|
+
right: number,
|
|
12
|
+
/**
|
|
13
|
+
* pageBody 距离底部的距离
|
|
14
|
+
*/
|
|
15
|
+
bottom: number,
|
|
16
|
+
/**
|
|
17
|
+
* pageBody 距离左侧的距离
|
|
18
|
+
*/
|
|
19
|
+
left: number,
|
|
20
|
+
/**
|
|
21
|
+
* pageBody 的宽度
|
|
22
|
+
*/
|
|
23
|
+
width: number,
|
|
24
|
+
/**
|
|
25
|
+
* pageBody 的高度
|
|
26
|
+
*/
|
|
27
|
+
height: number
|
|
28
|
+
}
|
|
2
29
|
|
|
3
30
|
export interface UniPage {
|
|
4
31
|
/**
|
|
@@ -110,7 +137,7 @@ export interface UniPage {
|
|
|
110
137
|
* }
|
|
111
138
|
* }
|
|
112
139
|
*/
|
|
113
|
-
vm
|
|
140
|
+
vm?: ComponentPublicInstance | null
|
|
114
141
|
/**
|
|
115
142
|
* UniPage vue 实例对象
|
|
116
143
|
* @deprecated 已废弃,仅为了向下兼容保留
|
|
@@ -147,81 +174,9 @@ export interface UniPage {
|
|
|
147
174
|
* }
|
|
148
175
|
* }
|
|
149
176
|
*/
|
|
150
|
-
$vm
|
|
151
|
-
/**
|
|
152
|
-
* UniPage 窗口宽度,单位为px
|
|
153
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
|
154
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
|
155
|
-
* @uniPlatform {
|
|
156
|
-
* "app": {
|
|
157
|
-
* "android": {
|
|
158
|
-
* "osVer": "5.0",
|
|
159
|
-
* "uniVer": "x",
|
|
160
|
-
* "unixVer": "4.51"
|
|
161
|
-
* },
|
|
162
|
-
* "ios": {
|
|
163
|
-
* "osVer": "x",
|
|
164
|
-
* "uniVer": "x",
|
|
165
|
-
* "unixVer": "4.51"
|
|
166
|
-
* },
|
|
167
|
-
* "harmony": {
|
|
168
|
-
* "osVer": "x",
|
|
169
|
-
* "uniVer": "x",
|
|
170
|
-
* "unixVer": "x"
|
|
171
|
-
* }
|
|
172
|
-
* },
|
|
173
|
-
* "mp": {
|
|
174
|
-
* "weixin": {
|
|
175
|
-
* "hostVer": "√",
|
|
176
|
-
* "uniVer": "x",
|
|
177
|
-
* "unixVer": "x"
|
|
178
|
-
* },
|
|
179
|
-
* },
|
|
180
|
-
* "web": {
|
|
181
|
-
* "uniVer": "x",
|
|
182
|
-
* "unixVer": "4.51"
|
|
183
|
-
* }
|
|
184
|
-
* }
|
|
185
|
-
*/
|
|
186
|
-
innerWidth: number
|
|
187
|
-
/**
|
|
188
|
-
* UniPage 窗口高度,单位为px
|
|
189
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
|
190
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
|
191
|
-
* @uniPlatform {
|
|
192
|
-
* "app": {
|
|
193
|
-
* "android": {
|
|
194
|
-
* "osVer": "5.0",
|
|
195
|
-
* "uniVer": "x",
|
|
196
|
-
* "unixVer": "4.51"
|
|
197
|
-
* },
|
|
198
|
-
* "ios": {
|
|
199
|
-
* "osVer": "x",
|
|
200
|
-
* "uniVer": "x",
|
|
201
|
-
* "unixVer": "4.51"
|
|
202
|
-
* },
|
|
203
|
-
* "harmony": {
|
|
204
|
-
* "osVer": "x",
|
|
205
|
-
* "uniVer": "x",
|
|
206
|
-
* "unixVer": "x"
|
|
207
|
-
* }
|
|
208
|
-
* },
|
|
209
|
-
* "mp": {
|
|
210
|
-
* "weixin": {
|
|
211
|
-
* "hostVer": "√",
|
|
212
|
-
* "uniVer": "x",
|
|
213
|
-
* "unixVer": "x"
|
|
214
|
-
* },
|
|
215
|
-
* },
|
|
216
|
-
* "web": {
|
|
217
|
-
* "uniVer": "x",
|
|
218
|
-
* "unixVer": "4.51"
|
|
219
|
-
* }
|
|
220
|
-
* }
|
|
221
|
-
*/
|
|
222
|
-
innerHeight: number
|
|
177
|
+
$vm?: ComponentPublicInstance | null
|
|
223
178
|
/**
|
|
224
|
-
* UniPage
|
|
179
|
+
* UniPage pageBody 位置及宽高信息,单位为px
|
|
225
180
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
|
226
181
|
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
|
227
182
|
* @uniPlatform {
|
|
@@ -255,7 +210,7 @@ export interface UniPage {
|
|
|
255
210
|
* }
|
|
256
211
|
* }
|
|
257
212
|
*/
|
|
258
|
-
|
|
213
|
+
pageBody: UniPageBody
|
|
259
214
|
/**
|
|
260
215
|
* UniPage 安全区域插入位置(与屏幕边界的距离)信息
|
|
261
216
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
package/types/app.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference path='./common.d.ts' />
|
|
2
|
+
import UIAbility from '@ohos.app.ability.UIAbility';
|
|
2
3
|
import { ComputedOptions, EditorCreateVueAppComponent, MethodOptions, OptionsData, ComponentInternalInstance, EditorVueAppComponent, EditorComponentPublicInstance, DefineApp, ComponentInjectOptions } from '@vue/runtime-core'
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -756,7 +757,7 @@ export interface UniApp {
|
|
|
756
757
|
* }
|
|
757
758
|
* }
|
|
758
759
|
*/
|
|
759
|
-
vm
|
|
760
|
+
vm?: ComponentPublicInstance | null,
|
|
760
761
|
/**
|
|
761
762
|
* App vue 实例对象
|
|
762
763
|
* @deprecated 已废弃,仅为了向下兼容保留
|
|
@@ -793,7 +794,7 @@ export interface UniApp {
|
|
|
793
794
|
* }
|
|
794
795
|
* }
|
|
795
796
|
*/
|
|
796
|
-
$vm
|
|
797
|
+
$vm?: ComponentPublicInstance | null,
|
|
797
798
|
/**
|
|
798
799
|
* 全局对象
|
|
799
800
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
|
|
@@ -866,6 +867,42 @@ export interface UniApp {
|
|
|
866
867
|
* }
|
|
867
868
|
*/
|
|
868
869
|
getAndroidApplication(): Application
|
|
870
|
+
/**
|
|
871
|
+
* 获取 鸿蒙应用 Ability 实例
|
|
872
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getharmonyability
|
|
873
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getharmonyability
|
|
874
|
+
* @uniPlatform {
|
|
875
|
+
* "app": {
|
|
876
|
+
* "android": {
|
|
877
|
+
* "osVer": "x",
|
|
878
|
+
* "uniVer": "x",
|
|
879
|
+
* "unixVer": "x"
|
|
880
|
+
* },
|
|
881
|
+
* "ios": {
|
|
882
|
+
* "osVer": "x",
|
|
883
|
+
* "uniVer": "x",
|
|
884
|
+
* "unixVer": "x"
|
|
885
|
+
* },
|
|
886
|
+
* "harmony": {
|
|
887
|
+
* "osVer": "3.0",
|
|
888
|
+
* "uniVer": "x",
|
|
889
|
+
* "unixVer": "4.51"
|
|
890
|
+
* }
|
|
891
|
+
* },
|
|
892
|
+
* "mp": {
|
|
893
|
+
* "weixin": {
|
|
894
|
+
* "hostVer": "√",
|
|
895
|
+
* "uniVer": "x",
|
|
896
|
+
* "unixVer": "x"
|
|
897
|
+
* },
|
|
898
|
+
* },
|
|
899
|
+
* "web": {
|
|
900
|
+
* "uniVer": "x",
|
|
901
|
+
* "unixVer": "x"
|
|
902
|
+
* }
|
|
903
|
+
* }
|
|
904
|
+
*/
|
|
905
|
+
getHarmonyAbility(): UIAbility
|
|
869
906
|
}
|
|
870
907
|
|
|
871
908
|
type UniAppOrigin = UniApp
|
|
@@ -22,10 +22,43 @@
|
|
|
22
22
|
*/
|
|
23
23
|
export class CSSStyleDeclaration {
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* 对CSS指定样式设置一个新值,如有此样式已存在则更新。
|
|
27
|
+
* @param name CSS样式名称
|
|
28
|
+
* @param {string} [value=""] 要设置的新CSS样式值 默认值空字符串
|
|
29
|
+
* @uniPlatform {
|
|
30
|
+
* "app": {
|
|
31
|
+
* "android": {
|
|
32
|
+
* "osVer": "5.0",
|
|
33
|
+
* "uniVer": "x",
|
|
34
|
+
* "unixVer": "4.51"
|
|
35
|
+
* },
|
|
36
|
+
* "ios": {
|
|
37
|
+
* "osVer": "12.0",
|
|
38
|
+
* "uniVer": "x",
|
|
39
|
+
* "unixVer": "4.51"
|
|
40
|
+
* }
|
|
41
|
+
* },
|
|
42
|
+
* "mp": {
|
|
43
|
+
* "weixin": {
|
|
44
|
+
* "osVer": "x",
|
|
45
|
+
* "uniVer": "x",
|
|
46
|
+
* "unixVer": "4.41"
|
|
47
|
+
* }
|
|
48
|
+
* },
|
|
49
|
+
* "web": {
|
|
50
|
+
* "uniVer": "x",
|
|
51
|
+
* "unixVer": "4.0"
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
setProperty(name: string | string.cssPropertyString, value?: string): void
|
|
56
|
+
|
|
25
57
|
/**
|
|
26
58
|
* 对CSS指定样式设置一个新值,如有此样式已存在则更新。
|
|
27
59
|
* @param name CSS样式名称
|
|
28
60
|
* @param value 要设置的新CSS样式值
|
|
61
|
+
* @deprecated 已废弃,仅为了向下兼容保留
|
|
29
62
|
* @uniPlatform {
|
|
30
63
|
* "app": {
|
|
31
64
|
* "android": {
|
|
@@ -55,19 +88,19 @@ export class CSSStyleDeclaration {
|
|
|
55
88
|
setProperty(name: string | string.cssPropertyString, value: any | null): void
|
|
56
89
|
|
|
57
90
|
/**
|
|
58
|
-
* 获取CSS
|
|
91
|
+
* 获取CSS指定的样式值,如果指定的样式不存在则返回空字符串。
|
|
59
92
|
* @param property 要获取的CSS样式名称
|
|
60
93
|
* @uniPlatform {
|
|
61
94
|
* "app": {
|
|
62
95
|
* "android": {
|
|
63
96
|
* "osVer": "5.0",
|
|
64
97
|
* "uniVer": "x",
|
|
65
|
-
* "unixVer": "
|
|
98
|
+
* "unixVer": "4.51"
|
|
66
99
|
* },
|
|
67
100
|
* "ios": {
|
|
68
101
|
* "osVer": "12.0",
|
|
69
102
|
* "uniVer": "x",
|
|
70
|
-
* "unixVer": "4.
|
|
103
|
+
* "unixVer": "4.51"
|
|
71
104
|
* }
|
|
72
105
|
* },
|
|
73
106
|
* "mp": {
|
|
@@ -83,7 +116,7 @@ export class CSSStyleDeclaration {
|
|
|
83
116
|
* }
|
|
84
117
|
* }
|
|
85
118
|
*/
|
|
86
|
-
getPropertyValue(property: string | string.cssPropertyString):
|
|
119
|
+
getPropertyValue(property: string | string.cssPropertyString): string
|
|
87
120
|
|
|
88
121
|
/**
|
|
89
122
|
* 删除CSS指定的样式值
|
|
@@ -93,12 +126,12 @@ export class CSSStyleDeclaration {
|
|
|
93
126
|
* "android": {
|
|
94
127
|
* "osVer": "5.0",
|
|
95
128
|
* "uniVer": "x",
|
|
96
|
-
* "unixVer": "
|
|
129
|
+
* "unixVer": "4.51"
|
|
97
130
|
* },
|
|
98
131
|
* "ios": {
|
|
99
132
|
* "osVer": "12.0",
|
|
100
133
|
* "uniVer": "x",
|
|
101
|
-
* "unixVer": "4.
|
|
134
|
+
* "unixVer": "4.51"
|
|
102
135
|
* }
|
|
103
136
|
* }
|
|
104
137
|
* "web": {
|
|
@@ -107,5 +140,5 @@ export class CSSStyleDeclaration {
|
|
|
107
140
|
* }
|
|
108
141
|
* }
|
|
109
142
|
*/
|
|
110
|
-
removeProperty(property: string | string.cssPropertyString):
|
|
143
|
+
removeProperty(property: string | string.cssPropertyString): string
|
|
111
144
|
}
|
|
@@ -2651,6 +2651,58 @@ export interface CanvasRenderingContext2D {
|
|
|
2651
2651
|
/**
|
|
2652
2652
|
* 绘制图像到画布
|
|
2653
2653
|
* @param {string} imageResource 所要绘制的图片资源
|
|
2654
|
+
* @param {number} dx imageResource的左上角在目标 canvas 上 x 轴的位置
|
|
2655
|
+
* @param {number} dy imageResource的左上角在目标 canvas 上 y 轴的位置
|
|
2656
|
+
* @uniPlatform {
|
|
2657
|
+
* "app": {
|
|
2658
|
+
* "android": {
|
|
2659
|
+
* "osVer": "5.0",
|
|
2660
|
+
* "uniVer": "√",
|
|
2661
|
+
* "unixVer": "4.25"
|
|
2662
|
+
* },
|
|
2663
|
+
* "ios": {
|
|
2664
|
+
* "osVer": "12.0",
|
|
2665
|
+
* "uniVer": "√",
|
|
2666
|
+
* "unixVer": "4.25"
|
|
2667
|
+
* }
|
|
2668
|
+
* }
|
|
2669
|
+
* "web": {
|
|
2670
|
+
* "uniVer": "√",
|
|
2671
|
+
* "unixVer": "4.0"
|
|
2672
|
+
* }
|
|
2673
|
+
* }
|
|
2674
|
+
*/
|
|
2675
|
+
drawImage(imageResource: Image, dx: number, dy: number): void
|
|
2676
|
+
/**
|
|
2677
|
+
* 绘制图像到画布
|
|
2678
|
+
* @param {string} imageResource 所要绘制的图片资源
|
|
2679
|
+
* @param {number} dx imageResource的左上角在目标 canvas 上 x 轴的位置
|
|
2680
|
+
* @param {number} dy imageResource的左上角在目标 canvas 上 y 轴的位置
|
|
2681
|
+
* @param {number} dWidth 在目标画布上绘制imageResource的宽度,允许对绘制的imageResource进行缩放
|
|
2682
|
+
* @param {number} dHeight 在目标画布上绘制imageResource的高度,允许对绘制的imageResource进行缩放
|
|
2683
|
+
* @uniPlatform {
|
|
2684
|
+
* "app": {
|
|
2685
|
+
* "android": {
|
|
2686
|
+
* "osVer": "5.0",
|
|
2687
|
+
* "uniVer": "√",
|
|
2688
|
+
* "unixVer": "4.25"
|
|
2689
|
+
* },
|
|
2690
|
+
* "ios": {
|
|
2691
|
+
* "osVer": "12.0",
|
|
2692
|
+
* "uniVer": "√",
|
|
2693
|
+
* "unixVer": "4.25"
|
|
2694
|
+
* }
|
|
2695
|
+
* }
|
|
2696
|
+
* "web": {
|
|
2697
|
+
* "uniVer": "√",
|
|
2698
|
+
* "unixVer": "4.0"
|
|
2699
|
+
* }
|
|
2700
|
+
* }
|
|
2701
|
+
*/
|
|
2702
|
+
drawImage(imageResource: Image, dx: number, dy: number, dWidth: number, dHeight: number): void
|
|
2703
|
+
/**
|
|
2704
|
+
* 绘制图像到画布
|
|
2705
|
+
* @param {string} imageResource 所要绘制的图片资源
|
|
2654
2706
|
* @param {number} sx 需要绘制到画布中的,imageResource的矩形(裁剪)选择框的左上角 x 坐标
|
|
2655
2707
|
* @param {number} sy 需要绘制到画布中的,imageResource的矩形(裁剪)选择框的左上角 y 坐标
|
|
2656
2708
|
* @param {number} sWidth 需要绘制到画布中的,imageResource的矩形(裁剪)选择框的宽度
|
|
@@ -2678,8 +2730,6 @@ export interface CanvasRenderingContext2D {
|
|
|
2678
2730
|
* }
|
|
2679
2731
|
* }
|
|
2680
2732
|
*/
|
|
2681
|
-
drawImage(imageResource: Image, sx: number, sy: number): void
|
|
2682
|
-
drawImage(imageResource: Image, sx: number, sy: number, sWidth: number, sHeight: number): void
|
|
2683
2733
|
drawImage(imageResource: Image, sx: number, sy: number, sWidth: number, sHeight: number, dx: number, dy: number, dWidth: number, dHeight: number): void
|
|
2684
2734
|
|
|
2685
2735
|
|
|
@@ -2841,8 +2891,8 @@ export interface CanvasRenderingContext2D {
|
|
|
2841
2891
|
/**
|
|
2842
2892
|
* 在画布上绘制文本
|
|
2843
2893
|
* @param {string} text 要渲染的文本字符串
|
|
2844
|
-
* @param {number} x 开始绘制文本的点的
|
|
2845
|
-
* @param {number} y 开始绘制文本的点的
|
|
2894
|
+
* @param {number} x 开始绘制文本的点的 x 轴坐标
|
|
2895
|
+
* @param {number} y 开始绘制文本的点的 y 轴坐标
|
|
2846
2896
|
* @param {number} maxWidth 需要绘制的最大宽度
|
|
2847
2897
|
* @uniPlatform {
|
|
2848
2898
|
* "app": {
|
|
@@ -3555,8 +3605,8 @@ export interface CanvasRenderingContext2D {
|
|
|
3555
3605
|
/**
|
|
3556
3606
|
* 文本描边
|
|
3557
3607
|
* @param {string} text 要渲染的文本字符串
|
|
3558
|
-
* @param {number} x 开始绘制文本的点的
|
|
3559
|
-
* @param {number} y 开始绘制文本的点的
|
|
3608
|
+
* @param {number} x 开始绘制文本的点的 x 轴坐标
|
|
3609
|
+
* @param {number} y 开始绘制文本的点的 y 轴坐标
|
|
3560
3610
|
* @param {number} maxWidth 需要绘制的最大宽度
|
|
3561
3611
|
* @uniPlatform {
|
|
3562
3612
|
* "app": {
|
|
@@ -5,6 +5,7 @@ import { CSSStyleDeclaration } from "./CSSStyleDeclaration"
|
|
|
5
5
|
import { DOMRect } from "./DOMRect"
|
|
6
6
|
import { UniCallbackWrapper } from "./UniCallbackWrapper"
|
|
7
7
|
import { CanvasRenderingContext2D } from "./CanvasRenderingContext2D"
|
|
8
|
+
import { UniAnimation } from "./UniAnimation"
|
|
8
9
|
|
|
9
10
|
export type GetBoundingClientRectAsyncSuccessCallback = (rect: DOMRect) => void
|
|
10
11
|
export type GetBoundingClientRectAsyncFailCallback = () => void
|
|
@@ -1272,7 +1273,6 @@ export interface UniElement {
|
|
|
1272
1273
|
|
|
1273
1274
|
/**
|
|
1274
1275
|
* 将指定的监听器注册到元素对象上,当该对象触发指定的事件时,指定的回调函数就会被执行。
|
|
1275
|
-
* @internal
|
|
1276
1276
|
* @param {string} type 事件类型
|
|
1277
1277
|
* @param {(event: T) => R} callback 事件监听器 T表示event类型,R表示返回值类型
|
|
1278
1278
|
* @uniPlatform {
|
|
@@ -1306,7 +1306,6 @@ export interface UniElement {
|
|
|
1306
1306
|
|
|
1307
1307
|
/**
|
|
1308
1308
|
* 删除使用 addEventListener 方法添加的事件监听器。
|
|
1309
|
-
* @internal
|
|
1310
1309
|
* @param type 事件类型
|
|
1311
1310
|
* @param callbackWrapper 事件监听回调封装类
|
|
1312
1311
|
* @uniPlatform {
|
|
@@ -1809,6 +1808,36 @@ export interface UniElement {
|
|
|
1809
1808
|
* }
|
|
1810
1809
|
*/
|
|
1811
1810
|
getPage(): UniPage | null
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* 创建一个新的动画并应用于元素,然后立即执行动画。
|
|
1814
|
+
* @uniPlatform {
|
|
1815
|
+
* "app": {
|
|
1816
|
+
* "android": {
|
|
1817
|
+
* "osVer": "5.0",
|
|
1818
|
+
* "uniVer": "x",
|
|
1819
|
+
* "unixVer": "4.51"
|
|
1820
|
+
* },
|
|
1821
|
+
* "ios": {
|
|
1822
|
+
* "osVer": "12.0",
|
|
1823
|
+
* "uniVer": "x",
|
|
1824
|
+
* "unixVer": "x"
|
|
1825
|
+
* }
|
|
1826
|
+
* },
|
|
1827
|
+
* "mp": {
|
|
1828
|
+
* "weixin": {
|
|
1829
|
+
* "osVer": "x",
|
|
1830
|
+
* "uniVer": "x",
|
|
1831
|
+
* "unixVer": "x"
|
|
1832
|
+
* }
|
|
1833
|
+
* },
|
|
1834
|
+
* "web": {
|
|
1835
|
+
* "uniVer": "x",
|
|
1836
|
+
* "unixVer": "x"
|
|
1837
|
+
* }
|
|
1838
|
+
* }
|
|
1839
|
+
*/
|
|
1840
|
+
animate(keyframes : any, options : UTSJSONObject) : UniAnimation | null
|
|
1812
1841
|
}
|
|
1813
1842
|
|
|
1814
1843
|
export type INode = UniElement
|