@dcloudio/uni-app-x 0.7.38 → 0.7.40
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 +9 -7
- package/types/UniPage.d.ts +172 -22
- package/types/app.d.ts +31 -31
- package/types/native/CSSStyleDeclaration.d.ts +16 -2
- package/types/native/CanvasRenderingContext2D.d.ts +1 -1
- package/types/native/DOMRect.d.ts +430 -10
- package/types/native/DrawableContext.d.ts +1137 -45
- package/types/native/IUniElement.d.ts +1981 -138
- package/types/native/UniNativePage.d.ts +94 -0
- package/types/native/UniResizeObserver.d.ts +215 -5
- package/types/native/UniSafeArea.d.ts +185 -0
- package/types/native/UniVideoElement.d.ts +432 -0
- package/types/native/global.d.ts +21 -8
- package/types/native/index.d.ts +1 -0
- package/types/page.d.ts +45 -3
- package/types/uni/env/index.d.ts +81 -81
- package/types/uni/uni-map-tencent-map.d.ts +19 -15
- package/types/uni/uts-plugin-api/global.d.ts +62 -63
- package/types/uni/uts-plugin-api/index.d.ts +62 -63
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +10 -12
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +5 -6
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +278 -217
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1600 -59
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +74 -73
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1297 -333
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +74 -73
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +783 -783
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +411 -153
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +533 -135
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +2649 -1987
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +423 -63
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +289 -68
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +158 -90
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +315 -315
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +62 -62
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +31 -31
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +62 -62
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +2781 -2175
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +490 -490
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2538 -2005
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +713 -115
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +336 -85
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +732 -225
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +571 -64
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +874 -830
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +692 -274
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +284 -63
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +1013 -969
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1448 -243
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +75 -75
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +318 -53
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +202 -103
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +264 -87
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +6 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +5521 -1939
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +472 -264
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +5752 -3618
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1215 -159
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +339 -33
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +457 -53
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +330 -65
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +890 -639
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +141 -92
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +4322 -2391
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +260 -126
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +488 -336
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +77 -77
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +553 -53
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1845 -867
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +2501 -513
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1103 -516
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +2306 -1660
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +2528 -1752
- package/types/uni/uts-plugin-biz/global.d.ts +6 -4
- package/types/uni/uts-plugin-biz/index.d.ts +6 -4
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +406 -39
- package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/global.d.ts +4 -0
- package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/index.d.ts +2 -0
- package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/interface.d.ts +14 -1
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +80 -28
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +126 -0
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/interface.d.ts +204 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +42 -36
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +21 -18
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +514 -216
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -0
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -0
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -0
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +313 -313
- package/types/uni/uts-plugin-extend/global.d.ts +1 -4
- package/types/uni/uts-plugin-extend/index.d.ts +0 -4
- package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/global.d.ts +7 -0
- package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/index.d.ts +0 -0
- package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +825 -273
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4400 -340
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1000 -268
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +77 -77
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +6 -6
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1495 -384
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +222 -132
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +923 -67
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +2 -2
- package/types/uni-cloud/interface.d.ts +13 -13
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +0 -21
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +0 -9
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +0 -151
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +0 -11
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +0 -4
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +0 -224
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +0 -53
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +0 -25
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +0 -487
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -7
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -716
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +0 -9
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +0 -165
|
@@ -3,42 +3,474 @@ import { UniElement } from "./IUniElement"
|
|
|
3
3
|
/**
|
|
4
4
|
* video元素对象
|
|
5
5
|
* @package io.dcloud.uniapp.runtime
|
|
6
|
+
* @uniPlatform {
|
|
7
|
+
* "mp": {
|
|
8
|
+
* "weixin": {
|
|
9
|
+
* "hostVer": "√",
|
|
10
|
+
* "uniVer": "x",
|
|
11
|
+
* "unixVer": "x"
|
|
12
|
+
* },
|
|
13
|
+
* "alipay": {
|
|
14
|
+
* "hostVer": "√",
|
|
15
|
+
* "uniVer": "x",
|
|
16
|
+
* "unixVer": "x"
|
|
17
|
+
* },
|
|
18
|
+
* "baidu": {
|
|
19
|
+
* "hostVer": "√",
|
|
20
|
+
* "uniVer": "x",
|
|
21
|
+
* "unixVer": "x"
|
|
22
|
+
* },
|
|
23
|
+
* "toutiao": {
|
|
24
|
+
* "hostVer": "√",
|
|
25
|
+
* "uniVer": "x",
|
|
26
|
+
* "unixVer": "x"
|
|
27
|
+
* },
|
|
28
|
+
* "lark": {
|
|
29
|
+
* "hostVer": "√",
|
|
30
|
+
* "uniVer": "x",
|
|
31
|
+
* "unixVer": "x"
|
|
32
|
+
* },
|
|
33
|
+
* "qq": {
|
|
34
|
+
* "hostVer": "√",
|
|
35
|
+
* "uniVer": "x",
|
|
36
|
+
* "unixVer": "x"
|
|
37
|
+
* },
|
|
38
|
+
* "kuaishou": {
|
|
39
|
+
* "hostVer": "√",
|
|
40
|
+
* "uniVer": "x",
|
|
41
|
+
* "unixVer": "x"
|
|
42
|
+
* },
|
|
43
|
+
* "jd": {
|
|
44
|
+
* "hostVer": "√",
|
|
45
|
+
* "uniVer": "x",
|
|
46
|
+
* "unixVer": "x"
|
|
47
|
+
* }
|
|
48
|
+
* },
|
|
49
|
+
* "web": {
|
|
50
|
+
* "uniVer": "x",
|
|
51
|
+
* "unixVer": "4.0"
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
6
54
|
*/
|
|
7
55
|
export interface UniVideoElement extends UniElement {
|
|
8
56
|
/**
|
|
9
57
|
* 播放
|
|
58
|
+
* @uniPlatform {
|
|
59
|
+
* "mp": {
|
|
60
|
+
* "weixin": {
|
|
61
|
+
* "hostVer": "√",
|
|
62
|
+
* "uniVer": "x",
|
|
63
|
+
* "unixVer": "x"
|
|
64
|
+
* },
|
|
65
|
+
* "alipay": {
|
|
66
|
+
* "hostVer": "√",
|
|
67
|
+
* "uniVer": "x",
|
|
68
|
+
* "unixVer": "x"
|
|
69
|
+
* },
|
|
70
|
+
* "baidu": {
|
|
71
|
+
* "hostVer": "√",
|
|
72
|
+
* "uniVer": "x",
|
|
73
|
+
* "unixVer": "x"
|
|
74
|
+
* },
|
|
75
|
+
* "toutiao": {
|
|
76
|
+
* "hostVer": "√",
|
|
77
|
+
* "uniVer": "x",
|
|
78
|
+
* "unixVer": "x"
|
|
79
|
+
* },
|
|
80
|
+
* "lark": {
|
|
81
|
+
* "hostVer": "√",
|
|
82
|
+
* "uniVer": "x",
|
|
83
|
+
* "unixVer": "x"
|
|
84
|
+
* },
|
|
85
|
+
* "qq": {
|
|
86
|
+
* "hostVer": "√",
|
|
87
|
+
* "uniVer": "x",
|
|
88
|
+
* "unixVer": "x"
|
|
89
|
+
* },
|
|
90
|
+
* "kuaishou": {
|
|
91
|
+
* "hostVer": "√",
|
|
92
|
+
* "uniVer": "x",
|
|
93
|
+
* "unixVer": "x"
|
|
94
|
+
* },
|
|
95
|
+
* "jd": {
|
|
96
|
+
* "hostVer": "√",
|
|
97
|
+
* "uniVer": "x",
|
|
98
|
+
* "unixVer": "x"
|
|
99
|
+
* }
|
|
100
|
+
* },
|
|
101
|
+
* "web": {
|
|
102
|
+
* "uniVer": "x",
|
|
103
|
+
* "unixVer": "4.0"
|
|
104
|
+
* }
|
|
105
|
+
* }
|
|
10
106
|
*/
|
|
11
107
|
play(): void
|
|
12
108
|
/**
|
|
13
109
|
* 暂停
|
|
110
|
+
* @uniPlatform {
|
|
111
|
+
* "mp": {
|
|
112
|
+
* "weixin": {
|
|
113
|
+
* "hostVer": "√",
|
|
114
|
+
* "uniVer": "x",
|
|
115
|
+
* "unixVer": "x"
|
|
116
|
+
* },
|
|
117
|
+
* "alipay": {
|
|
118
|
+
* "hostVer": "√",
|
|
119
|
+
* "uniVer": "x",
|
|
120
|
+
* "unixVer": "x"
|
|
121
|
+
* },
|
|
122
|
+
* "baidu": {
|
|
123
|
+
* "hostVer": "√",
|
|
124
|
+
* "uniVer": "x",
|
|
125
|
+
* "unixVer": "x"
|
|
126
|
+
* },
|
|
127
|
+
* "toutiao": {
|
|
128
|
+
* "hostVer": "√",
|
|
129
|
+
* "uniVer": "x",
|
|
130
|
+
* "unixVer": "x"
|
|
131
|
+
* },
|
|
132
|
+
* "lark": {
|
|
133
|
+
* "hostVer": "√",
|
|
134
|
+
* "uniVer": "x",
|
|
135
|
+
* "unixVer": "x"
|
|
136
|
+
* },
|
|
137
|
+
* "qq": {
|
|
138
|
+
* "hostVer": "√",
|
|
139
|
+
* "uniVer": "x",
|
|
140
|
+
* "unixVer": "x"
|
|
141
|
+
* },
|
|
142
|
+
* "kuaishou": {
|
|
143
|
+
* "hostVer": "√",
|
|
144
|
+
* "uniVer": "x",
|
|
145
|
+
* "unixVer": "x"
|
|
146
|
+
* },
|
|
147
|
+
* "jd": {
|
|
148
|
+
* "hostVer": "√",
|
|
149
|
+
* "uniVer": "x",
|
|
150
|
+
* "unixVer": "x"
|
|
151
|
+
* }
|
|
152
|
+
* },
|
|
153
|
+
* "web": {
|
|
154
|
+
* "uniVer": "x",
|
|
155
|
+
* "unixVer": "4.0"
|
|
156
|
+
* }
|
|
157
|
+
* }
|
|
14
158
|
*/
|
|
15
159
|
pause(): void
|
|
16
160
|
/**
|
|
17
161
|
* 跳转到指定位置
|
|
18
162
|
* @param {number} position 跳转到指定位置(秒)
|
|
163
|
+
* @uniPlatform {
|
|
164
|
+
* "mp": {
|
|
165
|
+
* "weixin": {
|
|
166
|
+
* "hostVer": "√",
|
|
167
|
+
* "uniVer": "x",
|
|
168
|
+
* "unixVer": "x"
|
|
169
|
+
* },
|
|
170
|
+
* "alipay": {
|
|
171
|
+
* "hostVer": "√",
|
|
172
|
+
* "uniVer": "x",
|
|
173
|
+
* "unixVer": "x"
|
|
174
|
+
* },
|
|
175
|
+
* "baidu": {
|
|
176
|
+
* "hostVer": "√",
|
|
177
|
+
* "uniVer": "x",
|
|
178
|
+
* "unixVer": "x"
|
|
179
|
+
* },
|
|
180
|
+
* "toutiao": {
|
|
181
|
+
* "hostVer": "√",
|
|
182
|
+
* "uniVer": "x",
|
|
183
|
+
* "unixVer": "x"
|
|
184
|
+
* },
|
|
185
|
+
* "lark": {
|
|
186
|
+
* "hostVer": "√",
|
|
187
|
+
* "uniVer": "x",
|
|
188
|
+
* "unixVer": "x"
|
|
189
|
+
* },
|
|
190
|
+
* "qq": {
|
|
191
|
+
* "hostVer": "√",
|
|
192
|
+
* "uniVer": "x",
|
|
193
|
+
* "unixVer": "x"
|
|
194
|
+
* },
|
|
195
|
+
* "kuaishou": {
|
|
196
|
+
* "hostVer": "√",
|
|
197
|
+
* "uniVer": "x",
|
|
198
|
+
* "unixVer": "x"
|
|
199
|
+
* },
|
|
200
|
+
* "jd": {
|
|
201
|
+
* "hostVer": "√",
|
|
202
|
+
* "uniVer": "x",
|
|
203
|
+
* "unixVer": "x"
|
|
204
|
+
* }
|
|
205
|
+
* },
|
|
206
|
+
* "web": {
|
|
207
|
+
* "uniVer": "x",
|
|
208
|
+
* "unixVer": "4.0"
|
|
209
|
+
* }
|
|
210
|
+
* }
|
|
19
211
|
*/
|
|
20
212
|
seek(position: number): void
|
|
21
213
|
/**
|
|
22
214
|
* 停止视频
|
|
215
|
+
* @uniPlatform {
|
|
216
|
+
* "mp": {
|
|
217
|
+
* "weixin": {
|
|
218
|
+
* "hostVer": "√",
|
|
219
|
+
* "uniVer": "x",
|
|
220
|
+
* "unixVer": "x"
|
|
221
|
+
* },
|
|
222
|
+
* "alipay": {
|
|
223
|
+
* "hostVer": "√",
|
|
224
|
+
* "uniVer": "x",
|
|
225
|
+
* "unixVer": "x"
|
|
226
|
+
* },
|
|
227
|
+
* "baidu": {
|
|
228
|
+
* "hostVer": "√",
|
|
229
|
+
* "uniVer": "x",
|
|
230
|
+
* "unixVer": "x"
|
|
231
|
+
* },
|
|
232
|
+
* "toutiao": {
|
|
233
|
+
* "hostVer": "√",
|
|
234
|
+
* "uniVer": "x",
|
|
235
|
+
* "unixVer": "x"
|
|
236
|
+
* },
|
|
237
|
+
* "lark": {
|
|
238
|
+
* "hostVer": "√",
|
|
239
|
+
* "uniVer": "x",
|
|
240
|
+
* "unixVer": "x"
|
|
241
|
+
* },
|
|
242
|
+
* "qq": {
|
|
243
|
+
* "hostVer": "√",
|
|
244
|
+
* "uniVer": "x",
|
|
245
|
+
* "unixVer": "x"
|
|
246
|
+
* },
|
|
247
|
+
* "kuaishou": {
|
|
248
|
+
* "hostVer": "√",
|
|
249
|
+
* "uniVer": "x",
|
|
250
|
+
* "unixVer": "x"
|
|
251
|
+
* },
|
|
252
|
+
* "jd": {
|
|
253
|
+
* "hostVer": "√",
|
|
254
|
+
* "uniVer": "x",
|
|
255
|
+
* "unixVer": "x"
|
|
256
|
+
* }
|
|
257
|
+
* },
|
|
258
|
+
* "web": {
|
|
259
|
+
* "uniVer": "x",
|
|
260
|
+
* "unixVer": "4.0"
|
|
261
|
+
* }
|
|
262
|
+
* }
|
|
23
263
|
*/
|
|
24
264
|
stop(): void
|
|
25
265
|
/**
|
|
26
266
|
* 发送弹幕
|
|
27
267
|
* @param {Danmu} danmu 弹幕数据
|
|
268
|
+
* @uniPlatform {
|
|
269
|
+
* "mp": {
|
|
270
|
+
* "weixin": {
|
|
271
|
+
* "hostVer": "√",
|
|
272
|
+
* "uniVer": "x",
|
|
273
|
+
* "unixVer": "x"
|
|
274
|
+
* },
|
|
275
|
+
* "alipay": {
|
|
276
|
+
* "hostVer": "√",
|
|
277
|
+
* "uniVer": "x",
|
|
278
|
+
* "unixVer": "x"
|
|
279
|
+
* },
|
|
280
|
+
* "baidu": {
|
|
281
|
+
* "hostVer": "√",
|
|
282
|
+
* "uniVer": "x",
|
|
283
|
+
* "unixVer": "x"
|
|
284
|
+
* },
|
|
285
|
+
* "toutiao": {
|
|
286
|
+
* "hostVer": "√",
|
|
287
|
+
* "uniVer": "x",
|
|
288
|
+
* "unixVer": "x"
|
|
289
|
+
* },
|
|
290
|
+
* "lark": {
|
|
291
|
+
* "hostVer": "√",
|
|
292
|
+
* "uniVer": "x",
|
|
293
|
+
* "unixVer": "x"
|
|
294
|
+
* },
|
|
295
|
+
* "qq": {
|
|
296
|
+
* "hostVer": "√",
|
|
297
|
+
* "uniVer": "x",
|
|
298
|
+
* "unixVer": "x"
|
|
299
|
+
* },
|
|
300
|
+
* "kuaishou": {
|
|
301
|
+
* "hostVer": "√",
|
|
302
|
+
* "uniVer": "x",
|
|
303
|
+
* "unixVer": "x"
|
|
304
|
+
* },
|
|
305
|
+
* "jd": {
|
|
306
|
+
* "hostVer": "√",
|
|
307
|
+
* "uniVer": "x",
|
|
308
|
+
* "unixVer": "x"
|
|
309
|
+
* }
|
|
310
|
+
* },
|
|
311
|
+
* "web": {
|
|
312
|
+
* "uniVer": "x",
|
|
313
|
+
* "unixVer": "4.0"
|
|
314
|
+
* }
|
|
315
|
+
* }
|
|
28
316
|
*/
|
|
29
317
|
sendDanmu(danmu: Danmu): void
|
|
30
318
|
/**
|
|
31
319
|
* 设置倍速播放
|
|
32
320
|
* @param {number} rate 支持倍率 0.5/0.8/1.0/1.25/1.5
|
|
321
|
+
* @uniPlatform {
|
|
322
|
+
* "mp": {
|
|
323
|
+
* "weixin": {
|
|
324
|
+
* "hostVer": "√",
|
|
325
|
+
* "uniVer": "x",
|
|
326
|
+
* "unixVer": "x"
|
|
327
|
+
* },
|
|
328
|
+
* "alipay": {
|
|
329
|
+
* "hostVer": "√",
|
|
330
|
+
* "uniVer": "x",
|
|
331
|
+
* "unixVer": "x"
|
|
332
|
+
* },
|
|
333
|
+
* "baidu": {
|
|
334
|
+
* "hostVer": "√",
|
|
335
|
+
* "uniVer": "x",
|
|
336
|
+
* "unixVer": "x"
|
|
337
|
+
* },
|
|
338
|
+
* "toutiao": {
|
|
339
|
+
* "hostVer": "√",
|
|
340
|
+
* "uniVer": "x",
|
|
341
|
+
* "unixVer": "x"
|
|
342
|
+
* },
|
|
343
|
+
* "lark": {
|
|
344
|
+
* "hostVer": "√",
|
|
345
|
+
* "uniVer": "x",
|
|
346
|
+
* "unixVer": "x"
|
|
347
|
+
* },
|
|
348
|
+
* "qq": {
|
|
349
|
+
* "hostVer": "√",
|
|
350
|
+
* "uniVer": "x",
|
|
351
|
+
* "unixVer": "x"
|
|
352
|
+
* },
|
|
353
|
+
* "kuaishou": {
|
|
354
|
+
* "hostVer": "√",
|
|
355
|
+
* "uniVer": "x",
|
|
356
|
+
* "unixVer": "x"
|
|
357
|
+
* },
|
|
358
|
+
* "jd": {
|
|
359
|
+
* "hostVer": "√",
|
|
360
|
+
* "uniVer": "x",
|
|
361
|
+
* "unixVer": "x"
|
|
362
|
+
* }
|
|
363
|
+
* },
|
|
364
|
+
* "web": {
|
|
365
|
+
* "uniVer": "x",
|
|
366
|
+
* "unixVer": "4.0"
|
|
367
|
+
* }
|
|
368
|
+
* }
|
|
33
369
|
*/
|
|
34
370
|
playbackRate(rate: number): void
|
|
35
371
|
/**
|
|
36
372
|
* 进入全屏
|
|
37
373
|
* @param {RequestFullScreenOptions} direction 0|正常竖向, 90|屏幕逆时针90度, -90|屏幕顺时针90度
|
|
374
|
+
* @uniPlatform {
|
|
375
|
+
* "mp": {
|
|
376
|
+
* "weixin": {
|
|
377
|
+
* "hostVer": "√",
|
|
378
|
+
* "uniVer": "x",
|
|
379
|
+
* "unixVer": "x"
|
|
380
|
+
* },
|
|
381
|
+
* "alipay": {
|
|
382
|
+
* "hostVer": "√",
|
|
383
|
+
* "uniVer": "x",
|
|
384
|
+
* "unixVer": "x"
|
|
385
|
+
* },
|
|
386
|
+
* "baidu": {
|
|
387
|
+
* "hostVer": "√",
|
|
388
|
+
* "uniVer": "x",
|
|
389
|
+
* "unixVer": "x"
|
|
390
|
+
* },
|
|
391
|
+
* "toutiao": {
|
|
392
|
+
* "hostVer": "√",
|
|
393
|
+
* "uniVer": "x",
|
|
394
|
+
* "unixVer": "x"
|
|
395
|
+
* },
|
|
396
|
+
* "lark": {
|
|
397
|
+
* "hostVer": "√",
|
|
398
|
+
* "uniVer": "x",
|
|
399
|
+
* "unixVer": "x"
|
|
400
|
+
* },
|
|
401
|
+
* "qq": {
|
|
402
|
+
* "hostVer": "√",
|
|
403
|
+
* "uniVer": "x",
|
|
404
|
+
* "unixVer": "x"
|
|
405
|
+
* },
|
|
406
|
+
* "kuaishou": {
|
|
407
|
+
* "hostVer": "√",
|
|
408
|
+
* "uniVer": "x",
|
|
409
|
+
* "unixVer": "x"
|
|
410
|
+
* },
|
|
411
|
+
* "jd": {
|
|
412
|
+
* "hostVer": "√",
|
|
413
|
+
* "uniVer": "x",
|
|
414
|
+
* "unixVer": "x"
|
|
415
|
+
* }
|
|
416
|
+
* },
|
|
417
|
+
* "web": {
|
|
418
|
+
* "uniVer": "x",
|
|
419
|
+
* "unixVer": "4.0"
|
|
420
|
+
* }
|
|
421
|
+
* }
|
|
38
422
|
*/
|
|
39
423
|
requestFullScreen(direction?: RequestFullScreenOptions | null): void
|
|
40
424
|
/**
|
|
41
425
|
* 退出全屏
|
|
426
|
+
* @uniPlatform {
|
|
427
|
+
* "mp": {
|
|
428
|
+
* "weixin": {
|
|
429
|
+
* "hostVer": "√",
|
|
430
|
+
* "uniVer": "x",
|
|
431
|
+
* "unixVer": "x"
|
|
432
|
+
* },
|
|
433
|
+
* "alipay": {
|
|
434
|
+
* "hostVer": "√",
|
|
435
|
+
* "uniVer": "x",
|
|
436
|
+
* "unixVer": "x"
|
|
437
|
+
* },
|
|
438
|
+
* "baidu": {
|
|
439
|
+
* "hostVer": "√",
|
|
440
|
+
* "uniVer": "x",
|
|
441
|
+
* "unixVer": "x"
|
|
442
|
+
* },
|
|
443
|
+
* "toutiao": {
|
|
444
|
+
* "hostVer": "√",
|
|
445
|
+
* "uniVer": "x",
|
|
446
|
+
* "unixVer": "x"
|
|
447
|
+
* },
|
|
448
|
+
* "lark": {
|
|
449
|
+
* "hostVer": "√",
|
|
450
|
+
* "uniVer": "x",
|
|
451
|
+
* "unixVer": "x"
|
|
452
|
+
* },
|
|
453
|
+
* "qq": {
|
|
454
|
+
* "hostVer": "√",
|
|
455
|
+
* "uniVer": "x",
|
|
456
|
+
* "unixVer": "x"
|
|
457
|
+
* },
|
|
458
|
+
* "kuaishou": {
|
|
459
|
+
* "hostVer": "√",
|
|
460
|
+
* "uniVer": "x",
|
|
461
|
+
* "unixVer": "x"
|
|
462
|
+
* },
|
|
463
|
+
* "jd": {
|
|
464
|
+
* "hostVer": "√",
|
|
465
|
+
* "uniVer": "x",
|
|
466
|
+
* "unixVer": "x"
|
|
467
|
+
* }
|
|
468
|
+
* },
|
|
469
|
+
* "web": {
|
|
470
|
+
* "uniVer": "x",
|
|
471
|
+
* "unixVer": "4.0"
|
|
472
|
+
* }
|
|
473
|
+
* }
|
|
42
474
|
*/
|
|
43
475
|
exitFullScreen(): void
|
|
44
476
|
}
|
package/types/native/global.d.ts
CHANGED
|
@@ -73,6 +73,8 @@ import {
|
|
|
73
73
|
UniScrollEventDetail as UniScrollEventDetailOrigin,
|
|
74
74
|
UniScrollEvent as UniScrollEventOrigin,
|
|
75
75
|
ScrollEvent as ScrollEventOrigin,
|
|
76
|
+
UniSafeArea as UniSafeAreaOrigin,
|
|
77
|
+
UniSafeAreaInsets as UniSafeAreaInsetsOrigin,
|
|
76
78
|
UniRichTextItemClickEventDetail as UniRichTextItemClickEventDetailOrigin,
|
|
77
79
|
UniRichTextItemClickEvent as UniRichTextItemClickEventOrigin,
|
|
78
80
|
RichTextItemClickEventDetail as RichTextItemClickEventDetailOrigin,
|
|
@@ -194,10 +196,13 @@ import {
|
|
|
194
196
|
UniTextareaElement as UniTextareaElementOrigin,
|
|
195
197
|
UniViewElement as UniViewElementOrigin,
|
|
196
198
|
UniWebViewElement as UniWebViewElementOrigin,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
UniWaterFlowElement as UniWaterFlowElementOrigin,
|
|
200
|
+
UniFlowItemElement as UniFlowItemElementOrigin,
|
|
201
|
+
UniShareElement as UniShareElementOrigin,
|
|
202
|
+
GetBoundingClientRectAsyncSuccessCallback as GetBoundingClientRectAsyncSuccessCallbackOrigin,
|
|
203
|
+
GetBoundingClientRectAsyncFailCallback as GetBoundingClientRectAsyncFailCallbackOrigin,
|
|
204
|
+
GetBoundingClientRectAsyncCompleteCallback as GetBoundingClientRectAsyncCompleteCallbackOrigin,
|
|
205
|
+
GetBoundingClientRectAsyncOptions as GetBoundingClientRectAsyncOptionsOrigin,
|
|
201
206
|
INode as INodeOrigin,
|
|
202
207
|
Element as ElementOrigin,
|
|
203
208
|
ITabsNode as ITabsNodeOrigin,
|
|
@@ -371,6 +376,8 @@ declare global {
|
|
|
371
376
|
type UniScrollEvent = UniScrollEventOrigin
|
|
372
377
|
const ScrollEvent: typeof ScrollEventOrigin
|
|
373
378
|
type ScrollEvent = ScrollEventOrigin
|
|
379
|
+
type UniSafeArea = UniSafeAreaOrigin
|
|
380
|
+
type UniSafeAreaInsets = UniSafeAreaInsetsOrigin
|
|
374
381
|
const UniRichTextItemClickEventDetail: typeof UniRichTextItemClickEventDetailOrigin
|
|
375
382
|
type UniRichTextItemClickEventDetail = UniRichTextItemClickEventDetailOrigin
|
|
376
383
|
const UniRichTextItemClickEvent: typeof UniRichTextItemClickEventOrigin
|
|
@@ -569,10 +576,13 @@ declare global {
|
|
|
569
576
|
const UniTextareaElement: typeof UniTextareaElementOrigin
|
|
570
577
|
const UniViewElement: typeof UniViewElementOrigin
|
|
571
578
|
const UniWebViewElement: typeof UniWebViewElementOrigin
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
type
|
|
579
|
+
const UniWaterFlowElement: typeof UniWaterFlowElementOrigin
|
|
580
|
+
const UniFlowItemElement: typeof UniFlowItemElementOrigin
|
|
581
|
+
const UniShareElement: typeof UniShareElementOrigin
|
|
582
|
+
type GetBoundingClientRectAsyncSuccessCallback = GetBoundingClientRectAsyncSuccessCallbackOrigin
|
|
583
|
+
type GetBoundingClientRectAsyncFailCallback = GetBoundingClientRectAsyncFailCallbackOrigin
|
|
584
|
+
type GetBoundingClientRectAsyncCompleteCallback = GetBoundingClientRectAsyncCompleteCallbackOrigin
|
|
585
|
+
type GetBoundingClientRectAsyncOptions = GetBoundingClientRectAsyncOptionsOrigin
|
|
576
586
|
type UniElement = UniElementOrigin
|
|
577
587
|
type INode = INodeOrigin
|
|
578
588
|
type Element = ElementOrigin
|
|
@@ -601,6 +611,9 @@ declare global {
|
|
|
601
611
|
type UniNestedScrollHeaderElement = UniNestedScrollHeaderElementOrigin
|
|
602
612
|
type UniNestedScrollBodyElement = UniNestedScrollBodyElementOrigin
|
|
603
613
|
type UniCanvasElement = UniCanvasElementOrigin
|
|
614
|
+
type UniWaterFlowElement = UniWaterFlowElementOrigin
|
|
615
|
+
type UniFlowItemElement = UniFlowItemElementOrigin
|
|
616
|
+
type UniShareElement = UniShareElementOrigin
|
|
604
617
|
type INavigationBar = INavigationBarOrigin
|
|
605
618
|
const DrawableContext: typeof DrawableContextOrigin
|
|
606
619
|
type DrawableContext = DrawableContextOrigin
|
package/types/native/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from './UniStartNestedScrollEvent'
|
|
|
24
24
|
export * from './UniScrollToUpperEvent'
|
|
25
25
|
export * from './UniScrollToLowerEvent'
|
|
26
26
|
export * from './UniScrollEvent'
|
|
27
|
+
export * from './UniSafeArea'
|
|
27
28
|
export * from './UniRichTextItemClickEvent'
|
|
28
29
|
export * from './UniResizeObserver'
|
|
29
30
|
export * from './UniResizeEvent'
|
package/types/page.d.ts
CHANGED
|
@@ -1621,13 +1621,55 @@ declare global {
|
|
|
1621
1621
|
* "android": {
|
|
1622
1622
|
* "osVer": "5.0",
|
|
1623
1623
|
* "uniVer": "√",
|
|
1624
|
-
|
|
1624
|
+
* "unixVer": "3.9"
|
|
1625
1625
|
* },
|
|
1626
1626
|
* "ios": {
|
|
1627
1627
|
* "osVer": "12.0",
|
|
1628
1628
|
* "uniVer": "√",
|
|
1629
|
-
|
|
1630
|
-
|
|
1629
|
+
* "unixVer": "4.11",
|
|
1630
|
+
* "unixUtsPlugin": "4.31"
|
|
1631
|
+
* }
|
|
1632
|
+
* },
|
|
1633
|
+
* "mp": {
|
|
1634
|
+
* "weixin": {
|
|
1635
|
+
* "hostVer": "x",
|
|
1636
|
+
* "uniVer": "x",
|
|
1637
|
+
* "unixVer": "4.41"
|
|
1638
|
+
* },
|
|
1639
|
+
* "alipay": {
|
|
1640
|
+
* "hostVer": "x",
|
|
1641
|
+
* "uniVer": "x",
|
|
1642
|
+
* "unixVer": "x"
|
|
1643
|
+
* },
|
|
1644
|
+
* "baidu": {
|
|
1645
|
+
* "hostVer": "x",
|
|
1646
|
+
* "uniVer": "x",
|
|
1647
|
+
* "unixVer": "x"
|
|
1648
|
+
* },
|
|
1649
|
+
* "toutiao": {
|
|
1650
|
+
* "hostVer": "x",
|
|
1651
|
+
* "uniVer": "x",
|
|
1652
|
+
* "unixVer": "x"
|
|
1653
|
+
* },
|
|
1654
|
+
* "lark": {
|
|
1655
|
+
* "hostVer": "x",
|
|
1656
|
+
* "uniVer": "x",
|
|
1657
|
+
* "unixVer": "x"
|
|
1658
|
+
* },
|
|
1659
|
+
* "qq": {
|
|
1660
|
+
* "hostVer": "x",
|
|
1661
|
+
* "uniVer": "x",
|
|
1662
|
+
* "unixVer": "x"
|
|
1663
|
+
* },
|
|
1664
|
+
* "kuaishou": {
|
|
1665
|
+
* "hostVer": "x",
|
|
1666
|
+
* "uniVer": "x",
|
|
1667
|
+
* "unixVer": "x"
|
|
1668
|
+
* },
|
|
1669
|
+
* "jd": {
|
|
1670
|
+
* "hostVer": "x",
|
|
1671
|
+
* "uniVer": "x",
|
|
1672
|
+
* "unixVer": "x"
|
|
1631
1673
|
* }
|
|
1632
1674
|
* },
|
|
1633
1675
|
* "web": {
|