@tarojs/components 3.5.7 → 3.5.9

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 (110) 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 +21 -22
  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 +6 -6
  50. package/types/AwemeData.d.ts +43 -0
  51. package/types/Button.d.ts +68 -71
  52. package/types/Camera.d.ts +16 -17
  53. package/types/Canvas.d.ts +23 -28
  54. package/types/Checkbox.d.ts +8 -8
  55. package/types/CheckboxGroup.d.ts +1 -1
  56. package/types/CommentDetail.d.ts +72 -0
  57. package/types/CommentList.d.ts +128 -0
  58. package/types/ContactButton.d.ts +53 -0
  59. package/types/CoverImage.d.ts +16 -16
  60. package/types/CoverView.d.ts +105 -7
  61. package/types/CustomWrapper.d.ts +1 -1
  62. package/types/FollowSwan.d.ts +28 -0
  63. package/types/Form.d.ts +11 -11
  64. package/types/Icon.d.ts +1 -1
  65. package/types/Image.d.ts +21 -21
  66. package/types/InlinePaymentPanel.d.ts +58 -0
  67. package/types/Input.d.ts +93 -28
  68. package/types/Lifestyle.d.ts +26 -0
  69. package/types/Like.d.ts +107 -0
  70. package/types/LivePlayer.d.ts +32 -26
  71. package/types/LivePusher.d.ts +6 -6
  72. package/types/Login.d.ts +45 -0
  73. package/types/Lottie.d.ts +113 -0
  74. package/types/Map.d.ts +67 -72
  75. package/types/MatchMedia.d.ts +1 -1
  76. package/types/MovableArea.d.ts +2 -2
  77. package/types/MovableView.d.ts +20 -29
  78. package/types/NativeSlot.d.ts +32 -0
  79. package/types/Navigator.d.ts +11 -11
  80. package/types/OpenData.d.ts +6 -6
  81. package/types/PageContainer.d.ts +31 -24
  82. package/types/PageMeta.d.ts +15 -15
  83. package/types/Picker.d.ts +2 -6
  84. package/types/PickerView.d.ts +12 -22
  85. package/types/Progress.d.ts +6 -6
  86. package/types/Radio.d.ts +1 -1
  87. package/types/RadioGroup.d.ts +6 -6
  88. package/types/RichText.d.ts +17 -17
  89. package/types/RootPortal.d.ts +11 -2
  90. package/types/RtcRoom.d.ts +104 -0
  91. package/types/RtcRoomItem.d.ts +26 -0
  92. package/types/ScrollView.d.ts +47 -31
  93. package/types/ShareElement.d.ts +20 -10
  94. package/types/Slider.d.ts +11 -11
  95. package/types/Slot.d.ts +1 -1
  96. package/types/Swiper.d.ts +32 -20
  97. package/types/SwiperItem.d.ts +3 -2
  98. package/types/Switch.d.ts +6 -6
  99. package/types/TabItem.d.ts +35 -0
  100. package/types/Tabs.d.ts +58 -0
  101. package/types/Text.d.ts +1 -1
  102. package/types/Textarea.d.ts +39 -33
  103. package/types/Video.d.ts +123 -108
  104. package/types/View.d.ts +21 -14
  105. package/types/VoipRoom.d.ts +5 -5
  106. package/types/WebView.d.ts +12 -6
  107. package/types/index.vue3.d.ts +268 -259
  108. package/dist/taro-components/p-6800ac6f.entry.js +0 -1
  109. package/dist/taro-components/p-7f93fa08.entry.js +0 -1
  110. package/dist/taro-components/p-9e1572c5.system.entry.js +0 -1
@@ -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
  */
@@ -168,10 +136,48 @@ interface TextareaProps extends StandardProps, FormItemProps {
168
136
  */
169
137
  controlled?: string
170
138
 
139
+ /** 使用原生键盘
140
+ * @default false
141
+ * @supported alipay
142
+ */
143
+ enableNative?: boolean
144
+
171
145
  /** 无障碍访问,(属性)元素的额外描述
172
146
  * @supported qq
173
147
  */
174
148
  ariaLabel?: string
149
+
150
+ /** 输入框聚焦时触发
151
+ * @supported weapp, alipay, swan, tt, qq, h5, rn
152
+ */
153
+ onFocus?: CommonEventFunction<TextareaProps.onFocusEventDetail>
154
+
155
+ /** 输入框失去焦点时触发
156
+ * @supported weapp, alipay, swan, tt, qq, h5, rn
157
+ */
158
+ onBlur?: CommonEventFunction<TextareaProps.onBlurEventDetail>
159
+
160
+ /** 输入框行数变化时调用
161
+ * @supported weapp, swan, tt, qq, rn
162
+ */
163
+ onLineChange?: CommonEventFunction<TextareaProps.onLineChangeEventDetail>
164
+
165
+ /** 当键盘输入时,触发 input 事件
166
+ *
167
+ * **onInput 处理函数的返回值并不会反映到 textarea 上**
168
+ * @supported weapp, alipay, swan, tt, qq, h5, rn
169
+ */
170
+ onInput?: CommonEventFunction<TextareaProps.onInputEventDetail>
171
+
172
+ /** 点击完成时, 触发 confirm 事件
173
+ * @supported weapp, alipay, swan, tt, qq, rn
174
+ */
175
+ onConfirm?: CommonEventFunction<TextareaProps.onConfirmEventDetail>
176
+
177
+ /** 键盘高度发生变化的时候触发此事件
178
+ * @supported weapp
179
+ */
180
+ onKeyboardHeightChange?: CommonEventFunction<TextareaProps.onKeyboardHeightChangeEventDetail>
175
181
  }
176
182
  declare namespace TextareaProps {
177
183
  interface onFocusEventDetail {
@@ -218,7 +224,7 @@ declare namespace TextareaProps {
218
224
 
219
225
  /** 多行输入框。该组件是原生组件,使用时请注意相关限制
220
226
  * @classification forms
221
- * @supported weapp, h5, rn
227
+ * @supported weapp, alipay, swan, tt, qq, h5, rn
222
228
  * @example_react
223
229
  * ```tsx
224
230
  * export default class PageView extends Component {
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,30 +282,11 @@ 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
- /** 当视频加载完真正开始播放时触发。
285
+ /** 使用原生
286
+ * @default true
381
287
  * @supported alipay
382
288
  */
383
- onRenderStart?: CommonEventFunction
289
+ enableNative?: boolean
384
290
 
385
291
  /** 浮窗设置。暂时不支持全局浮窗。
386
292
  * 可选值:
@@ -441,6 +347,111 @@ interface VideoProps extends StandardProps {
441
347
  */
442
348
  signature?: string
443
349
 
350
+ /** 指定码率上界,单位为比特每秒
351
+ * @supported weapp
352
+ */
353
+ preferredPeakBitRate?: number
354
+
355
+ /** 当开始/继续播放时触发 play 事件
356
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
357
+ */
358
+ onPlay?: CommonEventFunction
359
+
360
+ /** 当暂停播放时触发 pause 事件
361
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
362
+ */
363
+ onPause?: CommonEventFunction
364
+
365
+ /** 当播放到末尾时触发 ended 事件
366
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
367
+ */
368
+ onEnded?: CommonEventFunction
369
+
370
+ /** 播放进度变化时触发, 触发频率 250ms 一次
371
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
372
+ */
373
+ onTimeUpdate?: CommonEventFunction<VideoProps.onTimeUpdateEventDetail>
374
+
375
+ /** 当视频进入和退出全屏时触发
376
+ *
377
+ * @supported h5, rn
378
+ */
379
+ onFullscreenChange?: CommonEventFunction<VideoProps.onFullscreenChangeEventDetail>
380
+
381
+ /** 视频出现缓冲时触发
382
+ *
383
+ * @supported weapp, swan, tt, qq, jd
384
+ */
385
+ onWaiting?: CommonEventFunction<VideoProps.onWaitingEventDetail>
386
+
387
+ /** 视频播放出错时触发
388
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
389
+ */
390
+ onError?: CommonEventFunction
391
+
392
+ /** 加载进度变化时触发,只支持一段加载
393
+ * @supported weapp, tt, qq, h5
394
+ */
395
+ onProgress?: CommonEventFunction<VideoProps.onProgressEventDetail>
396
+
397
+ /** 视频元数据加载完成时触发
398
+ * @supported weapp, swan, tt, jd, rn
399
+ */
400
+ onLoadedMetaData?: CommonEventFunction<VideoProps.onLoadedMetaDataEventDetail>
401
+
402
+ /**
403
+ * 播放器进入小窗
404
+ * @supported weapp
405
+ */
406
+ onEnterPictureInPicture?: CommonEventFunction
407
+
408
+ /**
409
+ * 播放器退出小窗
410
+ * @supported weapp
411
+ */
412
+ onLeavePictureInPicture?: CommonEventFunction
413
+
414
+ /**
415
+ * seek 完成时触发
416
+ * @supported weapp, tt
417
+ */
418
+ onSeekComplete?: CommonEventFunction
419
+
420
+ /** 视频进入和退出全屏时触发
421
+ * @supported weapp, alipay, swan, tt, qq, jd
422
+ */
423
+ onFullScreenChange?: CommonEventFunction<VideoProps.onFullscreenChangeEventDetail>
424
+
425
+ /** 切换 controls 显示隐藏时触发。
426
+ * @supported weapp
427
+ */
428
+ onControlsToggle?: CommonEventFunction<VideoProps.onControlsToggleEventDetail>
429
+
430
+ /** 视频出现缓冲时触发。
431
+ * @supported alipay
432
+ */
433
+ onLoading?: CommonEventFunction
434
+
435
+ /** 点击视频 view 时触发
436
+ * @supported alipay
437
+ */
438
+ onTap?: CommonEventFunction<VideoProps.onTapEventDetail>
439
+
440
+ /** 用户操作事件
441
+ * @supported alipay
442
+ */
443
+ onUserAction?: CommonEventFunction<VideoProps.onUserActionEventDetail>
444
+
445
+ /** 视频播放终止。
446
+ * @supported alipay
447
+ */
448
+ onStop?: CommonEventFunction
449
+
450
+ /** 当视频加载完真正开始播放时触发。
451
+ * @supported alipay
452
+ */
453
+ onRenderStart?: CommonEventFunction
454
+
444
455
  /** 贴片广告开始播放时触发
445
456
  * @supported tt
446
457
  */
@@ -464,17 +475,23 @@ interface VideoProps extends StandardProps {
464
475
  /** 视频倍速改变完成时触发。返回改变后的倍速值
465
476
  * @supported tt
466
477
  */
467
- onPlayBackRateChange?: CommonEventFunction<{ playbackRate: string }>
478
+ onPlayBackRateChange?: CommonEventFunction<{
479
+ playbackRate: string
480
+ }>
468
481
 
469
482
  /** 静音状态改变完成时触发。返回当前是否静音
470
483
  * @supported tt
471
484
  */
472
- onMuteChange?: CommonEventFunction<{ isMuted: boolean }>
485
+ onMuteChange?: CommonEventFunction<{
486
+ isMuted: boolean
487
+ }>
473
488
 
474
489
  /** 点击控件时触发。返回当前点击的控件类型
475
490
  * @supported tt
476
491
  */
477
- onControlTap?: CommonEventFunction<{ controlType }>
492
+ onControlTap?: CommonEventFunction<{
493
+ controlType
494
+ }>
478
495
 
479
496
  /** 进入小窗播放时触发
480
497
  * @supported tt
@@ -511,11 +528,6 @@ interface VideoProps extends StandardProps {
511
528
  */
512
529
  onSeeking?: CommonEventFunction
513
530
 
514
- /** 指定码率上界,单位为比特每秒
515
- * @supported weapp
516
- */
517
- preferredPeakBitRate?: number
518
-
519
531
  /** 贴片广告加载成功时触发,event.detail = { adType: 'preRollAd' | 'postRollAd' }
520
532
  * @supported tt
521
533
  */
@@ -607,14 +619,19 @@ declare namespace VideoProps {
607
619
  interface UserActionTag {
608
620
  /** 底部播放按钮 */
609
621
  play
622
+
610
623
  /** 中心播放按钮 */
611
624
  centerplay
625
+
612
626
  /** 静音按钮 */
613
627
  mute
628
+
614
629
  /** 全屏按钮 */
615
630
  fullscreen
631
+
616
632
  /** 重试按钮 */
617
633
  retry
634
+
618
635
  /** 网络提醒的播放按钮 */
619
636
  mobilenetplay
620
637
  }
@@ -625,10 +642,8 @@ declare namespace VideoProps {
625
642
  }
626
643
 
627
644
  /** 视频。相关api:Taro.createVideoContext
628
- *
629
- * 备注:h5上因为没有测试,所以暂时写了“待定”,需要`Video`来确认。
630
645
  * @classification media
631
- * @supported weapp, h5, swan, alipay, tt
646
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
632
647
  * @example_react
633
648
  * ```tsx
634
649
  * 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,25 +132,17 @@ 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
  /** 视图容器
137
144
  * @classification viewContainer
138
- * @supported weapp, swan, alipay, tt, h5, rn
145
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
139
146
  * @example_react
140
147
  * ```tsx
141
148
  * export default class PageView extends Component {
@@ -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 {
@@ -43,7 +49,7 @@ declare namespace WebViewProps {
43
49
 
44
50
  /** web-view 组件是一个可以用来承载网页的容器,会自动铺满整个小程序页面。个人类型与海外类型的小程序暂不支持使用。
45
51
  * @classification open
46
- * @supported weapp, h5, rn, tt
52
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
47
53
  * @example_react
48
54
  * ```tsx
49
55
  * class App extends Component {