@tarojs/components 3.5.7-alpha.0 → 3.5.7-alpha.2
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 +3 -3
- package/types/Ad.d.ts +20 -20
- package/types/Audio.d.ts +5 -5
- package/types/Button.d.ts +64 -64
- package/types/Camera.d.ts +0 -1
- package/types/Canvas.d.ts +21 -21
- package/types/Checkbox.d.ts +7 -7
- package/types/CoverImage.d.ts +15 -15
- package/types/CoverView.d.ts +5 -5
- package/types/Form.d.ts +10 -10
- package/types/Image.d.ts +20 -20
- package/types/Input.d.ts +20 -20
- package/types/LivePlayer.d.ts +31 -31
- package/types/LivePusher.d.ts +5 -5
- package/types/Map.d.ts +59 -59
- package/types/Navigator.d.ts +10 -10
- package/types/OpenData.d.ts +5 -5
- package/types/PageContainer.d.ts +6 -6
- package/types/PageMeta.d.ts +14 -14
- package/types/PickerView.d.ts +10 -10
- package/types/Progress.d.ts +5 -5
- package/types/RadioGroup.d.ts +5 -5
- package/types/RichText.d.ts +17 -17
- package/types/ScrollView.d.ts +32 -33
- package/types/Slider.d.ts +10 -10
- package/types/Swiper.d.ts +20 -20
- package/types/Switch.d.ts +5 -5
- package/types/Textarea.d.ts +32 -32
- package/types/Video.d.ts +105 -105
- package/types/View.d.ts +21 -15
- package/types/VoipRoom.d.ts +5 -5
- package/types/WebView.d.ts +11 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "3.5.7-alpha.
|
|
3
|
+
"version": "3.5.7-alpha.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@stencil/core": "~2.13.0",
|
|
34
34
|
"@stencil/sass": "1.5.2",
|
|
35
|
-
"@tarojs/router": "3.5.7-alpha.
|
|
36
|
-
"@tarojs/taro": "3.5.7-alpha.
|
|
35
|
+
"@tarojs/router": "3.5.7-alpha.2",
|
|
36
|
+
"@tarojs/taro": "3.5.7-alpha.2",
|
|
37
37
|
"better-scroll": "^1.14.1",
|
|
38
38
|
"classnames": "^2.2.5",
|
|
39
39
|
"hls.js": "^1.1.5",
|
package/types/Ad.d.ts
CHANGED
|
@@ -21,21 +21,6 @@ interface AdProps extends StandardProps {
|
|
|
21
21
|
*/
|
|
22
22
|
adTheme?: 'white' | 'black'
|
|
23
23
|
|
|
24
|
-
/** 广告加载成功的回调
|
|
25
|
-
* @supported weapp, swan, tt, qq
|
|
26
|
-
*/
|
|
27
|
-
onLoad?: CommonEventFunction
|
|
28
|
-
|
|
29
|
-
/** 当广告发生错误时,触发的事件,可以通过该事件获取错误码及原因,事件对象 event.detail = {errCode: 1002}
|
|
30
|
-
* @supported weapp, swan, tt, qq
|
|
31
|
-
*/
|
|
32
|
-
onError?: CommonEventFunction<AdProps.onErrorEventDetail>
|
|
33
|
-
|
|
34
|
-
/** 广告关闭的回调
|
|
35
|
-
* @supported weapp, swan, tt
|
|
36
|
-
*/
|
|
37
|
-
onClose?: CommonEventFunction
|
|
38
|
-
|
|
39
24
|
/** 小程序应用 ID
|
|
40
25
|
* @supported swan
|
|
41
26
|
*/
|
|
@@ -57,11 +42,6 @@ interface AdProps extends StandardProps {
|
|
|
57
42
|
*/
|
|
58
43
|
updatetime?: string
|
|
59
44
|
|
|
60
|
-
/** 贴片类型广告播放期间触发
|
|
61
|
-
* @supported swan
|
|
62
|
-
*/
|
|
63
|
-
onStatus?: CommonEventFunction
|
|
64
|
-
|
|
65
45
|
/** 广告是否在屏幕中固定展示
|
|
66
46
|
* @supported tt
|
|
67
47
|
*/
|
|
@@ -111,6 +91,26 @@ interface AdProps extends StandardProps {
|
|
|
111
91
|
*/
|
|
112
92
|
testBannerType?: 'one' | 'three'
|
|
113
93
|
|
|
94
|
+
/** 广告加载成功的回调
|
|
95
|
+
* @supported weapp, swan, tt, qq
|
|
96
|
+
*/
|
|
97
|
+
onLoad?: CommonEventFunction
|
|
98
|
+
|
|
99
|
+
/** 当广告发生错误时,触发的事件,可以通过该事件获取错误码及原因,事件对象 event.detail = {errCode: 1002}
|
|
100
|
+
* @supported weapp, swan, tt, qq
|
|
101
|
+
*/
|
|
102
|
+
onError?: CommonEventFunction<AdProps.onErrorEventDetail>
|
|
103
|
+
|
|
104
|
+
/** 广告关闭的回调
|
|
105
|
+
* @supported weapp, swan, tt
|
|
106
|
+
*/
|
|
107
|
+
onClose?: CommonEventFunction
|
|
108
|
+
|
|
109
|
+
/** 贴片类型广告播放期间触发
|
|
110
|
+
* @supported swan
|
|
111
|
+
*/
|
|
112
|
+
onStatus?: CommonEventFunction
|
|
113
|
+
|
|
114
114
|
/** type 为 feeds 时广告实际宽高回调
|
|
115
115
|
* @supported qq
|
|
116
116
|
*/
|
package/types/Audio.d.ts
CHANGED
|
@@ -46,6 +46,11 @@ interface AudioProps extends StandardProps {
|
|
|
46
46
|
*/
|
|
47
47
|
author?: string
|
|
48
48
|
|
|
49
|
+
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
50
|
+
* @supported h5
|
|
51
|
+
*/
|
|
52
|
+
nativeProps?: Record<string, unknown>
|
|
53
|
+
|
|
49
54
|
/** 当发生错误时触发 error 事件,detail = {errMsg: MediaError.code}
|
|
50
55
|
* @supported weapp, swan, qq, h5
|
|
51
56
|
*/
|
|
@@ -70,11 +75,6 @@ interface AudioProps extends StandardProps {
|
|
|
70
75
|
* @supported weapp, swan, qq, h5
|
|
71
76
|
*/
|
|
72
77
|
onEnded?: CommonEventFunction
|
|
73
|
-
|
|
74
|
-
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
75
|
-
* @supported h5
|
|
76
|
-
*/
|
|
77
|
-
nativeProps?: Record<string, unknown>
|
|
78
78
|
}
|
|
79
79
|
declare namespace AudioProps {
|
|
80
80
|
interface onErrorEventDetail {
|
package/types/Button.d.ts
CHANGED
|
@@ -132,6 +132,70 @@ interface ButtonProps extends StandardProps {
|
|
|
132
132
|
*/
|
|
133
133
|
showMessageCard?: boolean
|
|
134
134
|
|
|
135
|
+
/** 生活号 id,必须是当前小程序同主体且已关联的生活号,open-type="lifestyle" 时有效。
|
|
136
|
+
* @supported alipay, qq
|
|
137
|
+
*/
|
|
138
|
+
publicId?: string
|
|
139
|
+
|
|
140
|
+
/** 发送订阅类模板消息所用的模板库标题 ID ,可通过 getTemplateLibraryList 获取
|
|
141
|
+
* 当参数类型为 Array 时,可传递 1~3 个模板库标题 ID
|
|
142
|
+
* @supported swan
|
|
143
|
+
*/
|
|
144
|
+
templateId?: string | Array<string>
|
|
145
|
+
|
|
146
|
+
/** 发送订阅类模板消息时所使用的唯一标识符,内容由开发者自定义,用来标识订阅场景
|
|
147
|
+
* 注意:同一用户在同一 subscribe-id 下的多次授权不累积下发权限,只能下发一条。若要订阅多条,需要不同 subscribe-id
|
|
148
|
+
* @supported swan
|
|
149
|
+
*/
|
|
150
|
+
subscribeId?: string
|
|
151
|
+
|
|
152
|
+
/** 打开群资料卡时,传递的群号
|
|
153
|
+
* @supported qq
|
|
154
|
+
*/
|
|
155
|
+
groupId?: string
|
|
156
|
+
|
|
157
|
+
/** 打开频道页面时,传递的频道号
|
|
158
|
+
* @supported qq
|
|
159
|
+
*/
|
|
160
|
+
guildId?: string
|
|
161
|
+
|
|
162
|
+
/** 分享类型集合,请参考下面share-type有效值说明。share-type后续将不再维护,请更新为share-mode
|
|
163
|
+
* @supported qq
|
|
164
|
+
* @default 27
|
|
165
|
+
*/
|
|
166
|
+
shareType?: string
|
|
167
|
+
|
|
168
|
+
/** 分享类型集合,请参考下面share-mode有效值说明
|
|
169
|
+
* @supported qq
|
|
170
|
+
* @default ['qq', 'qzone']
|
|
171
|
+
*/
|
|
172
|
+
shareMode?: string
|
|
173
|
+
|
|
174
|
+
/** 无障碍访问,(属性)元素的额外描述
|
|
175
|
+
* @supported qq
|
|
176
|
+
*/
|
|
177
|
+
ariaLabel?: string
|
|
178
|
+
|
|
179
|
+
/** 添加好友时,对方的 openid
|
|
180
|
+
* @supported qq
|
|
181
|
+
*/
|
|
182
|
+
openId?: string
|
|
183
|
+
|
|
184
|
+
/** 发送对象的 FriendInfo
|
|
185
|
+
* @supported qq
|
|
186
|
+
*/
|
|
187
|
+
shareMessageFriendInfo?: string
|
|
188
|
+
|
|
189
|
+
/** 转发标题,不传则默认使用当前小程序的昵称。 FriendInfo
|
|
190
|
+
* @supported qq
|
|
191
|
+
*/
|
|
192
|
+
shareMessageTitle?: string
|
|
193
|
+
|
|
194
|
+
/** 转发显示图片的链接,可以是网络图片路径(仅 QQ CDN 域名路径)或本地图片文件路径或相对代码包根目录的图片文件路径。显示图片长宽比是 5:4FriendInfo
|
|
195
|
+
* @supported qq
|
|
196
|
+
*/
|
|
197
|
+
shareMessageImg?: string
|
|
198
|
+
|
|
135
199
|
/** 用户点击该按钮时,会返回获取到的用户信息,回调的detail数据与 Taro.getUserInfo 返回的一致
|
|
136
200
|
*
|
|
137
201
|
* 生效时机: `open-type="getUserInfo"`
|
|
@@ -194,11 +258,6 @@ interface ButtonProps extends StandardProps {
|
|
|
194
258
|
*/
|
|
195
259
|
onTap?: CommonEventFunction
|
|
196
260
|
|
|
197
|
-
/** 生活号 id,必须是当前小程序同主体且已关联的生活号,open-type="lifestyle" 时有效。
|
|
198
|
-
* @supported alipay, qq
|
|
199
|
-
*/
|
|
200
|
-
publicId?: string
|
|
201
|
-
|
|
202
261
|
/** 当 open-type 为 lifestyle 时有效。
|
|
203
262
|
* 当点击按钮时触发。
|
|
204
263
|
* event.detail = { followStatus },followStatus 合法值有 1、2、3,其中 1 表示已关注。2 表示用户不允许关注。3 表示发生未知错误;
|
|
@@ -209,18 +268,6 @@ interface ButtonProps extends StandardProps {
|
|
|
209
268
|
followStatus: 1 | 2 | 3 | true
|
|
210
269
|
}>
|
|
211
270
|
|
|
212
|
-
/** 发送订阅类模板消息所用的模板库标题 ID ,可通过 getTemplateLibraryList 获取
|
|
213
|
-
* 当参数类型为 Array 时,可传递 1~3 个模板库标题 ID
|
|
214
|
-
* @supported swan
|
|
215
|
-
*/
|
|
216
|
-
templateId?: string | Array<string>
|
|
217
|
-
|
|
218
|
-
/** 发送订阅类模板消息时所使用的唯一标识符,内容由开发者自定义,用来标识订阅场景
|
|
219
|
-
* 注意:同一用户在同一 subscribe-id 下的多次授权不累积下发权限,只能下发一条。若要订阅多条,需要不同 subscribe-id
|
|
220
|
-
* @supported swan
|
|
221
|
-
*/
|
|
222
|
-
subscribeId?: string
|
|
223
|
-
|
|
224
271
|
/** 用户点击该按钮时,调起用户编辑收货地址原生界面,并在编辑完成后返回用户选择的地址,从返回参数的 detail 中获取,和 swan.chooseAddress 一样的。和 open-type 搭配使用,使用时机:open-type="chooseAddress"
|
|
225
272
|
* @supported swan
|
|
226
273
|
*/
|
|
@@ -241,53 +288,6 @@ interface ButtonProps extends StandardProps {
|
|
|
241
288
|
*/
|
|
242
289
|
onSubscribe?: CommonEventFunction
|
|
243
290
|
|
|
244
|
-
/** 打开群资料卡时,传递的群号
|
|
245
|
-
* @supported qq
|
|
246
|
-
*/
|
|
247
|
-
groupId?: string
|
|
248
|
-
|
|
249
|
-
/** 打开频道页面时,传递的频道号
|
|
250
|
-
* @supported qq
|
|
251
|
-
*/
|
|
252
|
-
guildId?: string
|
|
253
|
-
|
|
254
|
-
/** 分享类型集合,请参考下面share-type有效值说明。share-type后续将不再维护,请更新为share-mode
|
|
255
|
-
* @supported qq
|
|
256
|
-
* @default 27
|
|
257
|
-
*/
|
|
258
|
-
shareType?: string
|
|
259
|
-
|
|
260
|
-
/** 分享类型集合,请参考下面share-mode有效值说明
|
|
261
|
-
* @supported qq
|
|
262
|
-
* @default ['qq', 'qzone']
|
|
263
|
-
*/
|
|
264
|
-
shareMode?: string
|
|
265
|
-
|
|
266
|
-
/** 无障碍访问,(属性)元素的额外描述
|
|
267
|
-
* @supported qq
|
|
268
|
-
*/
|
|
269
|
-
ariaLabel?: string
|
|
270
|
-
|
|
271
|
-
/** 添加好友时,对方的 openid
|
|
272
|
-
* @supported qq
|
|
273
|
-
*/
|
|
274
|
-
openId?: string
|
|
275
|
-
|
|
276
|
-
/** 发送对象的 FriendInfo
|
|
277
|
-
* @supported qq
|
|
278
|
-
*/
|
|
279
|
-
shareMessageFriendInfo?: string
|
|
280
|
-
|
|
281
|
-
/** 转发标题,不传则默认使用当前小程序的昵称。 FriendInfo
|
|
282
|
-
* @supported qq
|
|
283
|
-
*/
|
|
284
|
-
shareMessageTitle?: string
|
|
285
|
-
|
|
286
|
-
/** 转发显示图片的链接,可以是网络图片路径(仅 QQ CDN 域名路径)或本地图片文件路径或相对代码包根目录的图片文件路径。显示图片长宽比是 5:4FriendInfo
|
|
287
|
-
* @supported qq
|
|
288
|
-
*/
|
|
289
|
-
shareMessageImg?: string
|
|
290
|
-
|
|
291
291
|
/** 添加好友的回调
|
|
292
292
|
* @supported qq
|
|
293
293
|
*/
|
package/types/Camera.d.ts
CHANGED
package/types/Canvas.d.ts
CHANGED
|
@@ -17,6 +17,27 @@ interface CanvasProps extends StandardProps<any, CanvasTouchEvent> {
|
|
|
17
17
|
*/
|
|
18
18
|
disableScroll?: boolean
|
|
19
19
|
|
|
20
|
+
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
21
|
+
* @supported h5
|
|
22
|
+
*/
|
|
23
|
+
nativeProps?: Record<string, unknown>
|
|
24
|
+
|
|
25
|
+
/** 组件唯一标识符。
|
|
26
|
+
* 注意:同一页面中的 id 不可重复。
|
|
27
|
+
* @supported alipay
|
|
28
|
+
*/
|
|
29
|
+
id?: string
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @supported alipay
|
|
33
|
+
*/
|
|
34
|
+
width?: string
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @supported alipay
|
|
38
|
+
*/
|
|
39
|
+
height?: string
|
|
40
|
+
|
|
20
41
|
/** 手指触摸动作开始
|
|
21
42
|
* @supported weapp, alipay, swan, tt, qq, jd
|
|
22
43
|
*/
|
|
@@ -47,27 +68,6 @@ interface CanvasProps extends StandardProps<any, CanvasTouchEvent> {
|
|
|
47
68
|
*/
|
|
48
69
|
onError?: CommonEventFunction<CanvasProps.onErrorEventDetail>
|
|
49
70
|
|
|
50
|
-
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
51
|
-
* @supported h5
|
|
52
|
-
*/
|
|
53
|
-
nativeProps?: Record<string, unknown>
|
|
54
|
-
|
|
55
|
-
/** 组件唯一标识符。
|
|
56
|
-
* 注意:同一页面中的 id 不可重复。
|
|
57
|
-
* @supported alipay
|
|
58
|
-
*/
|
|
59
|
-
id?: string
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @supported alipay
|
|
63
|
-
*/
|
|
64
|
-
width?: string
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @supported alipay
|
|
68
|
-
*/
|
|
69
|
-
height?: string
|
|
70
|
-
|
|
71
71
|
/** 点击。
|
|
72
72
|
* @supported alipay
|
|
73
73
|
*/
|
package/types/Checkbox.d.ts
CHANGED
|
@@ -23,13 +23,6 @@ interface CheckboxProps extends StandardProps {
|
|
|
23
23
|
*/
|
|
24
24
|
color?: string
|
|
25
25
|
|
|
26
|
-
/** 选中项发生变化时触发 change 事件,小程序无此 API
|
|
27
|
-
* @supported alipay, h5, rn
|
|
28
|
-
*/
|
|
29
|
-
onChange?: CommonEventFunction<{
|
|
30
|
-
value: string[]
|
|
31
|
-
}>
|
|
32
|
-
|
|
33
26
|
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
34
27
|
* @supported h5
|
|
35
28
|
*/
|
|
@@ -39,6 +32,13 @@ interface CheckboxProps extends StandardProps {
|
|
|
39
32
|
* @supported qq
|
|
40
33
|
*/
|
|
41
34
|
ariaLabel?: string
|
|
35
|
+
|
|
36
|
+
/** 选中项发生变化时触发 change 事件,小程序无此 API
|
|
37
|
+
* @supported alipay, h5, rn
|
|
38
|
+
*/
|
|
39
|
+
onChange?: CommonEventFunction<{
|
|
40
|
+
value: string[]
|
|
41
|
+
}>
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/** 多选项目
|
package/types/CoverImage.d.ts
CHANGED
|
@@ -6,26 +6,11 @@ interface CoverImageProps extends StandardProps {
|
|
|
6
6
|
*/
|
|
7
7
|
src: string
|
|
8
8
|
|
|
9
|
-
/** 图片加载成功时触发
|
|
10
|
-
* @supported weapp, swan, qq, h5
|
|
11
|
-
*/
|
|
12
|
-
onLoad?: CommonEventFunction
|
|
13
|
-
|
|
14
|
-
/** 图片加载失败时触发
|
|
15
|
-
* @supported weapp, swan, qq, h5
|
|
16
|
-
*/
|
|
17
|
-
onError?: CommonEventFunction
|
|
18
|
-
|
|
19
9
|
/** 格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;
|
|
20
10
|
* @supported weapp
|
|
21
11
|
*/
|
|
22
12
|
referrerPolicy?: 'origin' | 'no-referrer'
|
|
23
13
|
|
|
24
|
-
/** 点击事件回调。
|
|
25
|
-
* @supported alipay
|
|
26
|
-
*/
|
|
27
|
-
onTap?: CommonEventFunction
|
|
28
|
-
|
|
29
14
|
/** 设置与容器顶部的固定距离,效果相当于在 CSS 中设置 position: fixed 和 top 值,该属性优先级高于 fixed-bottom,CSS 设置的 position、top、bottom 值
|
|
30
15
|
* @supported swan
|
|
31
16
|
*/
|
|
@@ -55,6 +40,21 @@ interface CoverImageProps extends StandardProps {
|
|
|
55
40
|
* @supported qq
|
|
56
41
|
*/
|
|
57
42
|
ariaLabel?: string
|
|
43
|
+
|
|
44
|
+
/** 图片加载成功时触发
|
|
45
|
+
* @supported weapp, swan, qq, h5
|
|
46
|
+
*/
|
|
47
|
+
onLoad?: CommonEventFunction
|
|
48
|
+
|
|
49
|
+
/** 图片加载失败时触发
|
|
50
|
+
* @supported weapp, swan, qq, h5
|
|
51
|
+
*/
|
|
52
|
+
onError?: CommonEventFunction
|
|
53
|
+
|
|
54
|
+
/** 点击事件回调。
|
|
55
|
+
* @supported alipay
|
|
56
|
+
*/
|
|
57
|
+
onTap?: CommonEventFunction
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/** 覆盖在原生组件之上的图片视图。可覆盖的原生组件同cover-view,支持嵌套在cover-view里。
|
package/types/CoverView.d.ts
CHANGED
|
@@ -7,11 +7,6 @@ interface CoverViewProps extends ViewProps {
|
|
|
7
7
|
*/
|
|
8
8
|
scrollTop?: number
|
|
9
9
|
|
|
10
|
-
/** 点击事件回调。
|
|
11
|
-
* @supported alipay
|
|
12
|
-
*/
|
|
13
|
-
onTap?: CommonEventFunction
|
|
14
|
-
|
|
15
10
|
/** 设置与容器顶部的固定距离,效果相当于在 CSS 中设置 position: fixed 和 top 值,该属性优先级高于 fixed-bottom,CSS 设置的 position、top、bottom 值
|
|
16
11
|
* @supported swan
|
|
17
12
|
*/
|
|
@@ -41,6 +36,11 @@ interface CoverViewProps extends ViewProps {
|
|
|
41
36
|
* @supported qq
|
|
42
37
|
*/
|
|
43
38
|
ariaLabel?: string
|
|
39
|
+
|
|
40
|
+
/** 点击事件回调。
|
|
41
|
+
* @supported alipay
|
|
42
|
+
*/
|
|
43
|
+
onTap?: CommonEventFunction
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/** 覆盖在原生组件之上的文本视图。可覆盖的原生组件包括 map、video、canvas、camera、live-player、live-pusher 只支持嵌套 cover-view、cover-image,可在 cover-view 中使用 button。
|
package/types/Form.d.ts
CHANGED
|
@@ -17,16 +17,6 @@ interface FormProps extends StandardProps {
|
|
|
17
17
|
*/
|
|
18
18
|
reportSubmitTimeout?: number
|
|
19
19
|
|
|
20
|
-
/** 携带 form 中的数据触发 submit 事件
|
|
21
|
-
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
22
|
-
*/
|
|
23
|
-
onSubmit?: CommonEventFunction<FormProps.onSubmitEventDetail>
|
|
24
|
-
|
|
25
|
-
/** 表单重置时会触发 reset 事件
|
|
26
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
27
|
-
*/
|
|
28
|
-
onReset?: CommonEventFunction
|
|
29
|
-
|
|
30
20
|
/** 模板消息的类型,report-submit 为 true 时填写有效
|
|
31
21
|
* 取值:default / subscribe
|
|
32
22
|
* @default 'default'
|
|
@@ -45,6 +35,16 @@ interface FormProps extends StandardProps {
|
|
|
45
35
|
* @supported swan
|
|
46
36
|
*/
|
|
47
37
|
subscribeId?: string
|
|
38
|
+
|
|
39
|
+
/** 携带 form 中的数据触发 submit 事件
|
|
40
|
+
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
41
|
+
*/
|
|
42
|
+
onSubmit?: CommonEventFunction<FormProps.onSubmitEventDetail>
|
|
43
|
+
|
|
44
|
+
/** 表单重置时会触发 reset 事件
|
|
45
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
46
|
+
*/
|
|
47
|
+
onReset?: CommonEventFunction
|
|
48
48
|
}
|
|
49
49
|
declare namespace FormProps {
|
|
50
50
|
interface onSubmitEventDetail {
|
package/types/Image.d.ts
CHANGED
|
@@ -37,16 +37,6 @@ interface ImageProps extends StandardProps {
|
|
|
37
37
|
*/
|
|
38
38
|
showMenuByLongpress?: boolean
|
|
39
39
|
|
|
40
|
-
/** 当错误发生时,发布到 AppService 的事件名,事件对象
|
|
41
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
42
|
-
*/
|
|
43
|
-
onError?: CommonEventFunction<ImageProps.onErrorEventDetail>
|
|
44
|
-
|
|
45
|
-
/** 当图片载入完毕时,发布到 AppService 的事件名,事件对象
|
|
46
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
47
|
-
*/
|
|
48
|
-
onLoad?: CommonEventFunction<ImageProps.onLoadEventDetail>
|
|
49
|
-
|
|
50
40
|
/**
|
|
51
41
|
* 为 img 标签额外增加的属性
|
|
52
42
|
* @supported h5
|
|
@@ -63,16 +53,6 @@ interface ImageProps extends StandardProps {
|
|
|
63
53
|
*/
|
|
64
54
|
defaultSource?: string
|
|
65
55
|
|
|
66
|
-
/** 点击图片时触发。
|
|
67
|
-
* @supported alipay
|
|
68
|
-
*/
|
|
69
|
-
onTap?: CommonEventFunction
|
|
70
|
-
|
|
71
|
-
/** 点击图片时触发,阻止事件冒泡。
|
|
72
|
-
* @supported alipay
|
|
73
|
-
*/
|
|
74
|
-
catchTap?: CommonEventFunction
|
|
75
|
-
|
|
76
56
|
/** 阻止长按图片时弹起默认菜单(即将该属性设置为image-menu-prevent="true"或image-menu-prevent),只在初始化时有效,不能动态变更;若不想阻止弹起默认菜单,则不需要设置此属性。注:长按菜单后的操作暂不支持 svg 格式
|
|
77
57
|
* @supported swan
|
|
78
58
|
*/
|
|
@@ -92,6 +72,26 @@ interface ImageProps extends StandardProps {
|
|
|
92
72
|
* @supported qq
|
|
93
73
|
*/
|
|
94
74
|
ariaLabel?: string
|
|
75
|
+
|
|
76
|
+
/** 当错误发生时,发布到 AppService 的事件名,事件对象
|
|
77
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
78
|
+
*/
|
|
79
|
+
onError?: CommonEventFunction<ImageProps.onErrorEventDetail>
|
|
80
|
+
|
|
81
|
+
/** 当图片载入完毕时,发布到 AppService 的事件名,事件对象
|
|
82
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
83
|
+
*/
|
|
84
|
+
onLoad?: CommonEventFunction<ImageProps.onLoadEventDetail>
|
|
85
|
+
|
|
86
|
+
/** 点击图片时触发。
|
|
87
|
+
* @supported alipay
|
|
88
|
+
*/
|
|
89
|
+
onTap?: CommonEventFunction
|
|
90
|
+
|
|
91
|
+
/** 点击图片时触发,阻止事件冒泡。
|
|
92
|
+
* @supported alipay
|
|
93
|
+
*/
|
|
94
|
+
catchTap?: CommonEventFunction
|
|
95
95
|
}
|
|
96
96
|
declare namespace ImageProps {
|
|
97
97
|
/** mode 的合法值 */
|
package/types/Input.d.ts
CHANGED
|
@@ -165,6 +165,26 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
165
165
|
*/
|
|
166
166
|
controlled?: boolean
|
|
167
167
|
|
|
168
|
+
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
169
|
+
* @supported h5
|
|
170
|
+
*/
|
|
171
|
+
nativeProps?: Record<string, unknown>
|
|
172
|
+
|
|
173
|
+
/** 组件名字,用于表单提交获取数据。
|
|
174
|
+
* @supported alipay
|
|
175
|
+
*/
|
|
176
|
+
name?: string
|
|
177
|
+
|
|
178
|
+
/** 是否强制使用系统键盘和 Web-view 创建的 input 元素。为 true 时,confirm-type、confirm-hold 可能失效。
|
|
179
|
+
* @supported alipay
|
|
180
|
+
*/
|
|
181
|
+
alwaysSystem?: string
|
|
182
|
+
|
|
183
|
+
/** 无障碍访问,(属性)元素的额外描述
|
|
184
|
+
* @supported qq
|
|
185
|
+
*/
|
|
186
|
+
ariaLabel?: string
|
|
187
|
+
|
|
168
188
|
/** 当键盘输入时,触发input事件,event.detail = {value, cursor, keyCode},处理函数可以直接 return 一个字符串,将替换输入框的内容。
|
|
169
189
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
170
190
|
*/
|
|
@@ -190,26 +210,6 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
190
210
|
* @supported weapp, qq
|
|
191
211
|
*/
|
|
192
212
|
onKeyboardHeightChange?: CommonEventFunction<InputProps.onKeyboardHeightChangeEventDetail>
|
|
193
|
-
|
|
194
|
-
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
195
|
-
* @supported h5
|
|
196
|
-
*/
|
|
197
|
-
nativeProps?: Record<string, unknown>
|
|
198
|
-
|
|
199
|
-
/** 组件名字,用于表单提交获取数据。
|
|
200
|
-
* @supported alipay
|
|
201
|
-
*/
|
|
202
|
-
name?: string
|
|
203
|
-
|
|
204
|
-
/** 是否强制使用系统键盘和 Web-view 创建的 input 元素。为 true 时,confirm-type、confirm-hold 可能失效。
|
|
205
|
-
* @supported alipay
|
|
206
|
-
*/
|
|
207
|
-
alwaysSystem?: string
|
|
208
|
-
|
|
209
|
-
/** 无障碍访问,(属性)元素的额外描述
|
|
210
|
-
* @supported qq
|
|
211
|
-
*/
|
|
212
|
-
ariaLabel?: string
|
|
213
213
|
}
|
|
214
214
|
declare namespace InputProps {
|
|
215
215
|
/** > 注意:React-Native 端 `inputEventDetail` 仅实现参数 `value`,若需实时获取光标位置则可通过 [`onSelectionChange`](https://reactnative.dev/docs/textinput#onselectionchange) 实现。 */
|
package/types/LivePlayer.d.ts
CHANGED
|
@@ -72,6 +72,37 @@ interface LivePlayerProps extends StandardProps {
|
|
|
72
72
|
*/
|
|
73
73
|
pictureInPictureMode?: ('push' | 'pop')[] | 'push' | 'pop' | ''
|
|
74
74
|
|
|
75
|
+
/** 当跳转到其它微信原生页面时,是否自动暂停本页面的实时音视频播放
|
|
76
|
+
* @supported weapp, qq
|
|
77
|
+
*/
|
|
78
|
+
autoPauseIfOpenNative?: string
|
|
79
|
+
|
|
80
|
+
/** 格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;
|
|
81
|
+
* @supported weapp
|
|
82
|
+
*/
|
|
83
|
+
referrerPolicy?: 'origin' | 'no-referrer'
|
|
84
|
+
|
|
85
|
+
/** 设置署名水印
|
|
86
|
+
* @supported tt
|
|
87
|
+
*/
|
|
88
|
+
signature?: string
|
|
89
|
+
|
|
90
|
+
/** 是否回调metadata
|
|
91
|
+
* @supported qq
|
|
92
|
+
*/
|
|
93
|
+
enableMetadata?: string
|
|
94
|
+
|
|
95
|
+
/** live-player 属性的唯一标志符
|
|
96
|
+
* @supported swan
|
|
97
|
+
*/
|
|
98
|
+
id?: string
|
|
99
|
+
|
|
100
|
+
/** 是否开启手机横屏时自动全屏,当系统设置开启自动旋转时生效
|
|
101
|
+
* @supported weapp
|
|
102
|
+
* @default false
|
|
103
|
+
*/
|
|
104
|
+
enableAutoRotation?: string
|
|
105
|
+
|
|
75
106
|
/** 播放状态变化事件,detail = {code}
|
|
76
107
|
* @supported weapp, swan, tt, qq, jd
|
|
77
108
|
*/
|
|
@@ -102,46 +133,15 @@ interface LivePlayerProps extends StandardProps {
|
|
|
102
133
|
*/
|
|
103
134
|
onLeavePictureInPicture?: CommonEventFunction
|
|
104
135
|
|
|
105
|
-
/** 当跳转到其它微信原生页面时,是否自动暂停本页面的实时音视频播放
|
|
106
|
-
* @supported weapp, qq
|
|
107
|
-
*/
|
|
108
|
-
autoPauseIfOpenNative?: string
|
|
109
|
-
|
|
110
|
-
/** 格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;
|
|
111
|
-
* @supported weapp
|
|
112
|
-
*/
|
|
113
|
-
referrerPolicy?: 'origin' | 'no-referrer'
|
|
114
|
-
|
|
115
|
-
/** 设置署名水印
|
|
116
|
-
* @supported tt
|
|
117
|
-
*/
|
|
118
|
-
signature?: string
|
|
119
|
-
|
|
120
136
|
/** 播放错误事件
|
|
121
137
|
* @supported tt
|
|
122
138
|
*/
|
|
123
139
|
onError?: CommonEventFunction
|
|
124
140
|
|
|
125
|
-
/** 是否回调metadata
|
|
126
|
-
* @supported qq
|
|
127
|
-
*/
|
|
128
|
-
enableMetadata?: string
|
|
129
|
-
|
|
130
141
|
/** metadata通知,detail = {info}
|
|
131
142
|
* @supported qq
|
|
132
143
|
*/
|
|
133
144
|
onMetaDataChange?: CommonEventFunction
|
|
134
|
-
|
|
135
|
-
/** live-player 属性的唯一标志符
|
|
136
|
-
* @supported swan
|
|
137
|
-
*/
|
|
138
|
-
id?: string
|
|
139
|
-
|
|
140
|
-
/** 是否开启手机横屏时自动全屏,当系统设置开启自动旋转时生效
|
|
141
|
-
* @supported weapp
|
|
142
|
-
* @default false
|
|
143
|
-
*/
|
|
144
|
-
enableAutoRotation?: string
|
|
145
145
|
}
|
|
146
146
|
declare namespace LivePlayerProps {
|
|
147
147
|
/** mode 的合法值 */
|
package/types/LivePusher.d.ts
CHANGED
|
@@ -186,6 +186,11 @@ interface LivePusherProps extends StandardProps {
|
|
|
186
186
|
*/
|
|
187
187
|
filter?: keyof LivePusherProps.FilterType
|
|
188
188
|
|
|
189
|
+
/** 设置小窗模式: push, pop,空字符串或通过数组形式设置多种模式(如: ["push", "pop"])
|
|
190
|
+
* @supported weapp
|
|
191
|
+
*/
|
|
192
|
+
pictureInPictureMode?: string | any[]
|
|
193
|
+
|
|
189
194
|
/** 状态变化事件,detail = {code}
|
|
190
195
|
* @supported weapp, qq
|
|
191
196
|
*/
|
|
@@ -211,11 +216,6 @@ interface LivePusherProps extends StandardProps {
|
|
|
211
216
|
*/
|
|
212
217
|
onAudioVolumeNotify?: CommonEventFunction
|
|
213
218
|
|
|
214
|
-
/** 设置小窗模式: push, pop,空字符串或通过数组形式设置多种模式(如: ["push", "pop"])
|
|
215
|
-
* @supported weapp
|
|
216
|
-
*/
|
|
217
|
-
pictureInPictureMode?: string | any[]
|
|
218
|
-
|
|
219
219
|
/** 网络状态通知,detail = {info}
|
|
220
220
|
* @supported weapp, qq
|
|
221
221
|
*/
|