@tarojs/components 3.5.7 → 3.5.8

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 (100) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/taro-button-core.cjs.entry.js +5 -0
  3. package/dist/cjs/taro-components.cjs.js +1 -1
  4. package/dist/cjs/taro-movable-area-core.cjs.entry.js +1 -1
  5. package/dist/cjs/taro-movable-view-core.cjs.entry.js +18 -43
  6. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +5 -0
  7. package/dist/cjs/taro-video-control_3.cjs.entry.js +98 -181
  8. package/dist/collection/components/button/button.js +11 -0
  9. package/dist/collection/components/movable-area/area.css +2 -2
  10. package/dist/collection/components/movable-area/movable-view.js +18 -33
  11. package/dist/collection/components/swiper/swiper.js +23 -0
  12. package/dist/collection/components/video/video-control.js +22 -39
  13. package/dist/collection/components/video/video-danmu.js +39 -52
  14. package/dist/collection/components/video/video.js +37 -60
  15. package/dist/esm/loader.js +1 -1
  16. package/dist/esm/taro-button-core.entry.js +5 -0
  17. package/dist/esm/taro-components.js +1 -1
  18. package/dist/esm/taro-movable-area-core.entry.js +1 -1
  19. package/dist/esm/taro-movable-view-core.entry.js +18 -43
  20. package/dist/esm/taro-swiper-core_2.entry.js +5 -0
  21. package/dist/esm/taro-video-control_3.entry.js +98 -181
  22. package/dist/esm-es5/loader.js +1 -1
  23. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  24. package/dist/esm-es5/taro-components.js +1 -1
  25. package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
  26. package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
  27. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  28. package/dist/esm-es5/taro-video-control_3.entry.js +55 -55
  29. package/dist/taro-components/p-0380841f.system.js +1 -1
  30. package/dist/taro-components/{p-a94524c9.system.entry.js → p-06b9d39c.system.entry.js} +1 -1
  31. package/dist/taro-components/{p-63a0c6b0.entry.js → p-34178401.entry.js} +1 -1
  32. package/dist/taro-components/p-3549b6d2.entry.js +1 -0
  33. package/dist/taro-components/p-4262d1b6.entry.js +1 -0
  34. package/dist/taro-components/{p-f8b9c4b0.entry.js → p-42630f45.entry.js} +1 -1
  35. package/dist/taro-components/{p-f81a74bb.system.entry.js → p-4c1a7cae.system.entry.js} +81 -81
  36. package/dist/taro-components/{p-3744e978.entry.js → p-99d17a1a.entry.js} +52 -52
  37. package/dist/taro-components/{p-13f0b11f.system.entry.js → p-a5496bf5.system.entry.js} +1 -1
  38. package/dist/taro-components/p-f40e1218.system.entry.js +1 -0
  39. package/dist/taro-components/{p-1c775a11.system.entry.js → p-f5f1c3b7.system.entry.js} +1 -1
  40. package/dist/taro-components/taro-components.esm.js +1 -1
  41. package/dist/types/components/button/button.d.ts +1 -0
  42. package/dist/types/components/swiper/swiper.d.ts +4 -0
  43. package/dist/types/components.d.ts +8 -0
  44. package/package.json +15 -12
  45. package/types/Ad.d.ts +20 -21
  46. package/types/AnimationVideo.d.ts +62 -0
  47. package/types/AnimationView.d.ts +45 -0
  48. package/types/ArCamera.d.ts +50 -0
  49. package/types/Audio.d.ts +5 -5
  50. package/types/AwemeData.d.ts +43 -0
  51. package/types/Button.d.ts +67 -70
  52. package/types/Camera.d.ts +15 -16
  53. package/types/Canvas.d.ts +22 -27
  54. package/types/Checkbox.d.ts +7 -7
  55. package/types/CommentDetail.d.ts +72 -0
  56. package/types/CommentList.d.ts +128 -0
  57. package/types/ContactButton.d.ts +53 -0
  58. package/types/CoverImage.d.ts +15 -15
  59. package/types/CoverView.d.ts +5 -5
  60. package/types/FollowSwan.d.ts +28 -0
  61. package/types/Form.d.ts +10 -10
  62. package/types/Image.d.ts +20 -20
  63. package/types/InlinePaymentPanel.d.ts +58 -0
  64. package/types/Input.d.ts +23 -21
  65. package/types/Lifestyle.d.ts +26 -0
  66. package/types/Like.d.ts +107 -0
  67. package/types/LivePlayer.d.ts +31 -25
  68. package/types/LivePusher.d.ts +5 -5
  69. package/types/Login.d.ts +45 -0
  70. package/types/Lottie.d.ts +113 -0
  71. package/types/Map.d.ts +66 -71
  72. package/types/MovableView.d.ts +5 -14
  73. package/types/NativeSlot.d.ts +32 -0
  74. package/types/Navigator.d.ts +10 -10
  75. package/types/OpenData.d.ts +5 -5
  76. package/types/PageContainer.d.ts +7 -10
  77. package/types/PageMeta.d.ts +14 -14
  78. package/types/Picker.d.ts +1 -5
  79. package/types/PickerView.d.ts +11 -21
  80. package/types/Progress.d.ts +5 -5
  81. package/types/RadioGroup.d.ts +5 -5
  82. package/types/RichText.d.ts +17 -17
  83. package/types/RtcRoom.d.ts +104 -0
  84. package/types/RtcRoomItem.d.ts +26 -0
  85. package/types/ScrollView.d.ts +46 -30
  86. package/types/Slider.d.ts +10 -10
  87. package/types/Slot.d.ts +1 -1
  88. package/types/Swiper.d.ts +31 -19
  89. package/types/Switch.d.ts +5 -5
  90. package/types/TabItem.d.ts +35 -0
  91. package/types/Tabs.d.ts +58 -0
  92. package/types/Textarea.d.ts +32 -32
  93. package/types/Video.d.ts +120 -111
  94. package/types/View.d.ts +20 -13
  95. package/types/VoipRoom.d.ts +5 -5
  96. package/types/WebView.d.ts +11 -5
  97. package/types/index.vue3.d.ts +267 -259
  98. package/dist/taro-components/p-6800ac6f.entry.js +0 -1
  99. package/dist/taro-components/p-7f93fa08.entry.js +0 -1
  100. package/dist/taro-components/p-9e1572c5.system.entry.js +0 -1
package/types/Swiper.d.ts CHANGED
@@ -97,26 +97,23 @@ interface SwiperProps extends StandardProps {
97
97
  */
98
98
  easingFunction?: keyof SwiperProps.TEasingFunction
99
99
 
100
- /** current 改变时会触发 change 事件
101
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
102
- */
103
- onChange?: CommonEventFunction<SwiperProps.onChangeEventDetail>
104
-
105
- /** swiper-item 的位置发生改变时会触发 transition 事件
106
- * @supported weapp, alipay, tt, qq, jd
100
+ /** 是否禁止用户 touch 操作
101
+ * @default false
102
+ * @supported alipay
107
103
  */
108
- onTransition?: CommonEventFunction<SwiperProps.onTransitionEventDetail>
104
+ disableTouch?: boolean
109
105
 
110
- /** 动画结束时会触发 animationfinish 事件
111
- * @supported weapp, swan, tt, qq, jd, h5, rn
106
+ /** 是否启用缩放
107
+ * @default false
108
+ * @supported h5
112
109
  */
113
- onAnimationFinish?: SwiperProps['onChange']
110
+ zoom?: boolean
114
111
 
115
- /** 是否禁止用户 touch 操作
112
+ /** 是否开启全屏
116
113
  * @default false
117
- * @supported alipay
114
+ * @supported h5
118
115
  */
119
- disableTouch?: boolean
116
+ full?: boolean
120
117
 
121
118
  /** swiper-item 可见时的 class。
122
119
  * @supported alipay
@@ -140,11 +137,6 @@ interface SwiperProps extends StandardProps {
140
137
  */
141
138
  disableProgrammaticAnimation?: string
142
139
 
143
- /** 动画结束时会触发 animationEnd 事件
144
- * @supported alipay
145
- */
146
- onAnimationEnd?: CommonEventFunction<SwiperProps.onCommonEventDetail>
147
-
148
140
  /** 滑动距离阈值,当滑动距离超过阈值时进行 swiper-item 切换。
149
141
  * @supported alipay
150
142
  */
@@ -175,6 +167,26 @@ interface SwiperProps extends StandardProps {
175
167
  * @supported swan
176
168
  */
177
169
  disableTouchmove?: string
170
+
171
+ /** current 改变时会触发 change 事件
172
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
173
+ */
174
+ onChange?: CommonEventFunction<SwiperProps.onChangeEventDetail>
175
+
176
+ /** swiper-item 的位置发生改变时会触发 transition 事件
177
+ * @supported weapp, alipay, tt, qq, jd
178
+ */
179
+ onTransition?: CommonEventFunction<SwiperProps.onTransitionEventDetail>
180
+
181
+ /** 动画结束时会触发 animationfinish 事件
182
+ * @supported weapp, swan, tt, qq, jd, h5, rn
183
+ */
184
+ onAnimationFinish?: SwiperProps['onChange']
185
+
186
+ /** 动画结束时会触发 animationEnd 事件
187
+ * @supported alipay
188
+ */
189
+ onAnimationEnd?: CommonEventFunction<SwiperProps.onCommonEventDetail>
178
190
  }
179
191
  declare namespace SwiperProps {
180
192
  /** 导致变更的原因 */
package/types/Switch.d.ts CHANGED
@@ -25,11 +25,6 @@ interface SwitchProps extends StandardProps, FormItemProps {
25
25
  */
26
26
  color?: string
27
27
 
28
- /** checked 改变时触发 change 事件
29
- * @supported weapp, alipay, swan, tt, qq, jd, rn
30
- */
31
- onChange?: CommonEventFunction<SwitchProps.onChangeEventDetail>
32
-
33
28
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
34
29
  * @supported h5
35
30
  */
@@ -50,6 +45,11 @@ interface SwitchProps extends StandardProps, FormItemProps {
50
45
  * @supported qq
51
46
  */
52
47
  ariaLabel?: string
48
+
49
+ /** checked 改变时触发 change 事件
50
+ * @supported weapp, alipay, swan, tt, qq, jd, rn
51
+ */
52
+ onChange?: CommonEventFunction<SwitchProps.onChangeEventDetail>
53
53
  }
54
54
  declare namespace SwitchProps {
55
55
  interface onChangeEventDetail {
@@ -0,0 +1,35 @@
1
+ import { ComponentType } from 'react'
2
+ import { StandardProps } from './common'
3
+ interface TabItemProps extends StandardProps {
4
+ /** tab-item 内显示的文字
5
+ * @supported swan
6
+ * @default 无
7
+ */
8
+ label?: string
9
+
10
+ /** tab-item 对应的 name 值
11
+ * @supported swan
12
+ * @default 无
13
+ */
14
+ name?: string
15
+
16
+ /** 徽标类型 badge-type 分为圆点“dot”和文本“text”,不设置 badge-type 则不显示徽标
17
+ * @supported swan
18
+ * @default 无
19
+ */
20
+ badgeType?: string
21
+
22
+ /** badge-type 为 text 的时候,徽标内的数字,为空时badge-type="text"不生效
23
+ * @supported swan
24
+ * @default 无
25
+ */
26
+ badgeText?: string
27
+ }
28
+
29
+ /** 标签栏子项
30
+ * @classification navig
31
+ * @supported swan
32
+ * @see https://smartprogram.baidu.com/docs/develop/component/tab-item/
33
+ */
34
+ declare const TabItem: ComponentType<TabItemProps>
35
+ export { TabItem, TabItemProps }
@@ -0,0 +1,58 @@
1
+ import { ComponentType } from 'react'
2
+ import { StandardProps } from './common'
3
+ interface TabsProps extends StandardProps {
4
+ /** tabs 背景色,必须填写十六进制颜色
5
+ * @supported swan
6
+ * @default "#fff"
7
+ */
8
+ tabsBackgroundColor?: string
9
+
10
+ /** tabs 激活 tab-item 文字颜色
11
+ * @supported swan
12
+ * @default "#000"
13
+ */
14
+ tabsActiveTextColor?: string
15
+
16
+ /** tabs 非激活 tab-item 文字颜色
17
+ * @supported swan
18
+ * @default "#666"
19
+ */
20
+ tabsInactiveTextColor?: string
21
+
22
+ /** tabs 激活 tab-item 下划线颜色
23
+ * @supported swan
24
+ * @default "#333"
25
+ */
26
+ tabsUnderlineColor?: string
27
+
28
+ /** 仅用于普通标签栏组件,当前激活 tab-item 的对应的 name 值,须搭配 bindtabchange 一起使用。
29
+ * @supported swan
30
+ * @default 无
31
+ */
32
+ activeName?: string
33
+
34
+ /** 仅用于可寻址标签栏组件,当前 tab 所改变的 url query 中参数 key,需要通过 tabs 修改页面 url 的时候设置。
35
+ * @supported swan
36
+ * @default 无
37
+ */
38
+ urlQueryName?: string
39
+
40
+ /** 当前 tabs 视图中最多容纳的 tab-item 数量,低于此数量均分排列,超出此数量划屏。默认五个,开发者可根据业务需求调整
41
+ * @supported swan
42
+ * @default 5
43
+ */
44
+ maxTabItemAmount?: number
45
+
46
+ /** tab 被点击的回调,可以在 e.detail.name 中取到当前点击的 tab-item 对应的 name 值
47
+ * @supported swan
48
+ */
49
+ onTabChange?: CommonEventFunction
50
+ }
51
+
52
+ /** 标签栏
53
+ * @classification navig
54
+ * @supported swan
55
+ * @see https://smartprogram.baidu.com/docs/develop/component/tabs/
56
+ */
57
+ declare const Tabs: ComponentType<TabsProps>
58
+ export { Tabs, TabsProps }
@@ -106,38 +106,6 @@ interface TextareaProps extends StandardProps, FormItemProps {
106
106
  */
107
107
  disableDefaultPadding?: boolean
108
108
 
109
- /** 输入框聚焦时触发
110
- * @supported weapp, alipay, swan, tt, qq, h5, rn
111
- */
112
- onFocus?: CommonEventFunction<TextareaProps.onFocusEventDetail>
113
-
114
- /** 输入框失去焦点时触发
115
- * @supported weapp, alipay, swan, tt, qq, h5, rn
116
- */
117
- onBlur?: CommonEventFunction<TextareaProps.onBlurEventDetail>
118
-
119
- /** 输入框行数变化时调用
120
- * @supported weapp, swan, tt, qq, rn
121
- */
122
- onLineChange?: CommonEventFunction<TextareaProps.onLineChangeEventDetail>
123
-
124
- /** 当键盘输入时,触发 input 事件
125
- *
126
- * **onInput 处理函数的返回值并不会反映到 textarea 上**
127
- * @supported weapp, alipay, swan, tt, qq, h5, rn
128
- */
129
- onInput?: CommonEventFunction<TextareaProps.onInputEventDetail>
130
-
131
- /** 点击完成时, 触发 confirm 事件
132
- * @supported weapp, alipay, swan, tt, qq, rn
133
- */
134
- onConfirm?: CommonEventFunction<TextareaProps.onConfirmEventDetail>
135
-
136
- /** 键盘高度发生变化的时候触发此事件
137
- * @supported weapp
138
- */
139
- onKeyboardHeightChange?: CommonEventFunction<TextareaProps.onKeyboardHeightChangeEventDetail>
140
-
141
109
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
142
110
  * @supported h5
143
111
  */
@@ -172,6 +140,38 @@ interface TextareaProps extends StandardProps, FormItemProps {
172
140
  * @supported qq
173
141
  */
174
142
  ariaLabel?: string
143
+
144
+ /** 输入框聚焦时触发
145
+ * @supported weapp, alipay, swan, tt, qq, h5, rn
146
+ */
147
+ onFocus?: CommonEventFunction<TextareaProps.onFocusEventDetail>
148
+
149
+ /** 输入框失去焦点时触发
150
+ * @supported weapp, alipay, swan, tt, qq, h5, rn
151
+ */
152
+ onBlur?: CommonEventFunction<TextareaProps.onBlurEventDetail>
153
+
154
+ /** 输入框行数变化时调用
155
+ * @supported weapp, swan, tt, qq, rn
156
+ */
157
+ onLineChange?: CommonEventFunction<TextareaProps.onLineChangeEventDetail>
158
+
159
+ /** 当键盘输入时,触发 input 事件
160
+ *
161
+ * **onInput 处理函数的返回值并不会反映到 textarea 上**
162
+ * @supported weapp, alipay, swan, tt, qq, h5, rn
163
+ */
164
+ onInput?: CommonEventFunction<TextareaProps.onInputEventDetail>
165
+
166
+ /** 点击完成时, 触发 confirm 事件
167
+ * @supported weapp, alipay, swan, tt, qq, rn
168
+ */
169
+ onConfirm?: CommonEventFunction<TextareaProps.onConfirmEventDetail>
170
+
171
+ /** 键盘高度发生变化的时候触发此事件
172
+ * @supported weapp
173
+ */
174
+ onKeyboardHeightChange?: CommonEventFunction<TextareaProps.onKeyboardHeightChangeEventDetail>
175
175
  }
176
176
  declare namespace TextareaProps {
177
177
  interface onFocusEventDetail {
package/types/Video.d.ts CHANGED
@@ -221,71 +221,6 @@ interface VideoProps extends StandardProps {
221
221
  */
222
222
  backgroundPoster?: string
223
223
 
224
- /** 当开始/继续播放时触发 play 事件
225
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
226
- */
227
- onPlay?: CommonEventFunction
228
-
229
- /** 当暂停播放时触发 pause 事件
230
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
231
- */
232
- onPause?: CommonEventFunction
233
-
234
- /** 当播放到末尾时触发 ended 事件
235
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
236
- */
237
- onEnded?: CommonEventFunction
238
-
239
- /** 播放进度变化时触发, 触发频率 250ms 一次
240
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
241
- */
242
- onTimeUpdate?: CommonEventFunction<VideoProps.onTimeUpdateEventDetail>
243
-
244
- /** 当视频进入和退出全屏时触发
245
- *
246
- * @supported h5, rn
247
- */
248
- onFullscreenChange?: CommonEventFunction<VideoProps.onFullscreenChangeEventDetail>
249
-
250
- /** 视频出现缓冲时触发
251
- *
252
- * @supported weapp, swan, tt, qq, jd
253
- */
254
- onWaiting?: CommonEventFunction<VideoProps.onWaitingEventDetail>
255
-
256
- /** 视频播放出错时触发
257
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
258
- */
259
- onError?: CommonEventFunction
260
-
261
- /** 加载进度变化时触发,只支持一段加载
262
- * @supported weapp, tt, qq, h5
263
- */
264
- onProgress?: CommonEventFunction<VideoProps.onProgressEventDetail>
265
-
266
- /** 视频元数据加载完成时触发
267
- * @supported weapp, swan, tt, jd, rn
268
- */
269
- onLoadedMetaData?: CommonEventFunction<VideoProps.onLoadedMetaDataEventDetail>
270
-
271
- /**
272
- * 播放器进入小窗
273
- * @supported weapp
274
- */
275
- onEnterPictureInPicture?: CommonEventFunction
276
-
277
- /**
278
- * 播放器退出小窗
279
- * @supported weapp
280
- */
281
- onLeavePictureInPicture?: CommonEventFunction
282
-
283
- /**
284
- * seek 完成时触发
285
- * @supported weapp, tt
286
- */
287
- onSeekComplete?: CommonEventFunction
288
-
289
224
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
290
225
  * @supported h5
291
226
  */
@@ -326,16 +261,6 @@ interface VideoProps extends StandardProps {
326
261
  */
327
262
  licenseUrl?: string
328
263
 
329
- /** 视频进入和退出全屏时触发
330
- * @supported weapp, alipay, swan, tt, qq, jd
331
- */
332
- onFullScreenChange?: CommonEventFunction<VideoProps.onFullscreenChangeEventDetail>
333
-
334
- /** 切换 controls 显示隐藏时触发。
335
- * @supported weapp
336
- */
337
- onControlsToggle?: CommonEventFunction<VideoProps.onControlsToggleEventDetail>
338
-
339
264
  /** 当 poster 高宽比跟视频高宽不匹配时,如何显示 poster,设置规则同 background-size 一致。
340
265
  * @supported alipay
341
266
  */
@@ -357,31 +282,6 @@ interface VideoProps extends StandardProps {
357
282
  */
358
283
  mobilenetHintType?: string
359
284
 
360
- /** 视频出现缓冲时触发。
361
- * @supported alipay
362
- */
363
- onLoading?: CommonEventFunction
364
-
365
- /** 点击视频 view 时触发
366
- * @supported alipay
367
- */
368
- onTap?: CommonEventFunction<VideoProps.onTapEventDetail>
369
-
370
- /** 用户操作事件
371
- * @supported alipay
372
- */
373
- onUserAction?: CommonEventFunction<VideoProps.onUserActionEventDetail>
374
-
375
- /** 视频播放终止。
376
- * @supported alipay
377
- */
378
- onStop?: CommonEventFunction
379
-
380
- /** 当视频加载完真正开始播放时触发。
381
- * @supported alipay
382
- */
383
- onRenderStart?: CommonEventFunction
384
-
385
285
  /** 浮窗设置。暂时不支持全局浮窗。
386
286
  * 可选值:
387
287
  *
@@ -441,6 +341,111 @@ interface VideoProps extends StandardProps {
441
341
  */
442
342
  signature?: string
443
343
 
344
+ /** 指定码率上界,单位为比特每秒
345
+ * @supported weapp
346
+ */
347
+ preferredPeakBitRate?: number
348
+
349
+ /** 当开始/继续播放时触发 play 事件
350
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
351
+ */
352
+ onPlay?: CommonEventFunction
353
+
354
+ /** 当暂停播放时触发 pause 事件
355
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
356
+ */
357
+ onPause?: CommonEventFunction
358
+
359
+ /** 当播放到末尾时触发 ended 事件
360
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
361
+ */
362
+ onEnded?: CommonEventFunction
363
+
364
+ /** 播放进度变化时触发, 触发频率 250ms 一次
365
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
366
+ */
367
+ onTimeUpdate?: CommonEventFunction<VideoProps.onTimeUpdateEventDetail>
368
+
369
+ /** 当视频进入和退出全屏时触发
370
+ *
371
+ * @supported h5, rn
372
+ */
373
+ onFullscreenChange?: CommonEventFunction<VideoProps.onFullscreenChangeEventDetail>
374
+
375
+ /** 视频出现缓冲时触发
376
+ *
377
+ * @supported weapp, swan, tt, qq, jd
378
+ */
379
+ onWaiting?: CommonEventFunction<VideoProps.onWaitingEventDetail>
380
+
381
+ /** 视频播放出错时触发
382
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
383
+ */
384
+ onError?: CommonEventFunction
385
+
386
+ /** 加载进度变化时触发,只支持一段加载
387
+ * @supported weapp, tt, qq, h5
388
+ */
389
+ onProgress?: CommonEventFunction<VideoProps.onProgressEventDetail>
390
+
391
+ /** 视频元数据加载完成时触发
392
+ * @supported weapp, swan, tt, jd, rn
393
+ */
394
+ onLoadedMetaData?: CommonEventFunction<VideoProps.onLoadedMetaDataEventDetail>
395
+
396
+ /**
397
+ * 播放器进入小窗
398
+ * @supported weapp
399
+ */
400
+ onEnterPictureInPicture?: CommonEventFunction
401
+
402
+ /**
403
+ * 播放器退出小窗
404
+ * @supported weapp
405
+ */
406
+ onLeavePictureInPicture?: CommonEventFunction
407
+
408
+ /**
409
+ * seek 完成时触发
410
+ * @supported weapp, tt
411
+ */
412
+ onSeekComplete?: CommonEventFunction
413
+
414
+ /** 视频进入和退出全屏时触发
415
+ * @supported weapp, alipay, swan, tt, qq, jd
416
+ */
417
+ onFullScreenChange?: CommonEventFunction<VideoProps.onFullscreenChangeEventDetail>
418
+
419
+ /** 切换 controls 显示隐藏时触发。
420
+ * @supported weapp
421
+ */
422
+ onControlsToggle?: CommonEventFunction<VideoProps.onControlsToggleEventDetail>
423
+
424
+ /** 视频出现缓冲时触发。
425
+ * @supported alipay
426
+ */
427
+ onLoading?: CommonEventFunction
428
+
429
+ /** 点击视频 view 时触发
430
+ * @supported alipay
431
+ */
432
+ onTap?: CommonEventFunction<VideoProps.onTapEventDetail>
433
+
434
+ /** 用户操作事件
435
+ * @supported alipay
436
+ */
437
+ onUserAction?: CommonEventFunction<VideoProps.onUserActionEventDetail>
438
+
439
+ /** 视频播放终止。
440
+ * @supported alipay
441
+ */
442
+ onStop?: CommonEventFunction
443
+
444
+ /** 当视频加载完真正开始播放时触发。
445
+ * @supported alipay
446
+ */
447
+ onRenderStart?: CommonEventFunction
448
+
444
449
  /** 贴片广告开始播放时触发
445
450
  * @supported tt
446
451
  */
@@ -464,17 +469,23 @@ interface VideoProps extends StandardProps {
464
469
  /** 视频倍速改变完成时触发。返回改变后的倍速值
465
470
  * @supported tt
466
471
  */
467
- onPlayBackRateChange?: CommonEventFunction<{ playbackRate: string }>
472
+ onPlayBackRateChange?: CommonEventFunction<{
473
+ playbackRate: string
474
+ }>
468
475
 
469
476
  /** 静音状态改变完成时触发。返回当前是否静音
470
477
  * @supported tt
471
478
  */
472
- onMuteChange?: CommonEventFunction<{ isMuted: boolean }>
479
+ onMuteChange?: CommonEventFunction<{
480
+ isMuted: boolean
481
+ }>
473
482
 
474
483
  /** 点击控件时触发。返回当前点击的控件类型
475
484
  * @supported tt
476
485
  */
477
- onControlTap?: CommonEventFunction<{ controlType }>
486
+ onControlTap?: CommonEventFunction<{
487
+ controlType
488
+ }>
478
489
 
479
490
  /** 进入小窗播放时触发
480
491
  * @supported tt
@@ -511,11 +522,6 @@ interface VideoProps extends StandardProps {
511
522
  */
512
523
  onSeeking?: CommonEventFunction
513
524
 
514
- /** 指定码率上界,单位为比特每秒
515
- * @supported weapp
516
- */
517
- preferredPeakBitRate?: number
518
-
519
525
  /** 贴片广告加载成功时触发,event.detail = { adType: 'preRollAd' | 'postRollAd' }
520
526
  * @supported tt
521
527
  */
@@ -607,14 +613,19 @@ declare namespace VideoProps {
607
613
  interface UserActionTag {
608
614
  /** 底部播放按钮 */
609
615
  play
616
+
610
617
  /** 中心播放按钮 */
611
618
  centerplay
619
+
612
620
  /** 静音按钮 */
613
621
  mute
622
+
614
623
  /** 全屏按钮 */
615
624
  fullscreen
625
+
616
626
  /** 重试按钮 */
617
627
  retry
628
+
618
629
  /** 网络提醒的播放按钮 */
619
630
  mobilenetplay
620
631
  }
@@ -625,10 +636,8 @@ declare namespace VideoProps {
625
636
  }
626
637
 
627
638
  /** 视频。相关api:Taro.createVideoContext
628
- *
629
- * 备注:h5上因为没有测试,所以暂时写了“待定”,需要`Video`来确认。
630
639
  * @classification media
631
- * @supported weapp, h5, swan, alipay, tt
640
+ * @supported weapp, swan, alipay, tt, h5, rn
632
641
  * @example_react
633
642
  * ```tsx
634
643
  * export default class PageView extends Component {
package/types/View.d.ts CHANGED
@@ -52,6 +52,21 @@ interface ViewProps extends StandardProps {
52
52
  */
53
53
  animation?: TaroGeneral.IAnyObject
54
54
 
55
+ /** 表示组件的语义角色。设置为 img 时,组件聚焦后读屏软件会朗读出 图像 ;设置为 button 时,聚焦后读屏软件会朗读出 按钮 。详情请参见 aria-component。
56
+ * @supported alipay
57
+ */
58
+ role?: string
59
+
60
+ /** 无障碍访问,(角色)标识元素的作用
61
+ * @supported qq
62
+ */
63
+ ariaRole?: string
64
+
65
+ /** 无障碍访问,(属性)元素的额外描述
66
+ * @supported qq
67
+ */
68
+ ariaLabel?: string
69
+
55
70
  /** 点击。
56
71
  * @supported alipay
57
72
  */
@@ -117,20 +132,12 @@ interface ViewProps extends StandardProps {
117
132
  */
118
133
  onFirstAppear?: CommonEventFunction
119
134
 
120
- /** 表示组件的语义角色。设置为 img 时,组件聚焦后读屏软件会朗读出 图像 ;设置为 button 时,聚焦后读屏软件会朗读出 按钮 。详情请参见 aria-component。
121
- * @supported alipay
122
- */
123
- role?: string
124
-
125
- /** 无障碍访问,(角色)标识元素的作用
126
- * @supported qq
127
- */
128
- ariaRole?: string
129
-
130
- /** 无障碍访问,(属性)元素的额外描述
131
- * @supported qq
135
+ /** 是否以 catch 的形式绑定 touchmove 事件
136
+ * @supported weapp, alipay, swan, tt, qq, jd
137
+ * @version 3.1.0+
138
+ * @unique
132
139
  */
133
- ariaLabel?: string
140
+ catchMove?: boolean
134
141
  }
135
142
 
136
143
  /** 视图容器
@@ -13,16 +13,16 @@ interface VoipRoomProps extends StandardProps {
13
13
  */
14
14
  devicePosition?: keyof VoipRoomProps.DevicePosition
15
15
 
16
- /** 创建对话窗口失败时触发
16
+ /** 进入房间用户的 openid
17
+ * @default "none"
17
18
  * @supported weapp
18
19
  */
19
- onError?: CommonEventFunction
20
+ openId?: string
20
21
 
21
- /** 进入房间用户的 openid
22
- * @default none
22
+ /** 创建对话窗口失败时触发
23
23
  * @supported weapp
24
24
  */
25
- openid?: string
25
+ onError?: CommonEventFunction
26
26
  }
27
27
  declare namespace VoipRoomProps {
28
28
  /** 对话窗口类型 */
@@ -6,6 +6,17 @@ interface WebViewProps extends StandardProps {
6
6
  */
7
7
  src: string
8
8
 
9
+ /** webview 的进度条颜色
10
+ * @supported tt
11
+ */
12
+ progressbarColor?: string
13
+
14
+ /** 若使用web-view组件引入第三方客服,必须填写type="im"
15
+ * @supported tt
16
+ * @default default
17
+ */
18
+ type?: string
19
+
9
20
  /** 网页向小程序 postMessage 时,会在特定时机(小程序后退、组件销毁、分享)触发并收到消息。e.detail = { data }
10
21
  * @supported weapp, alipay, swan, tt, qq, jd
11
22
  */
@@ -20,11 +31,6 @@ interface WebViewProps extends StandardProps {
20
31
  * @supported weapp, alipay, tt, qq, h5, rn
21
32
  */
22
33
  onError?: CommonEventFunction<WebViewProps.onErrorEventDetail>
23
-
24
- /** webview 的进度条颜色
25
- * @supported tt
26
- */
27
- progressbarColor?: string
28
34
  }
29
35
  declare namespace WebViewProps {
30
36
  interface onMessageEventDetail {