@tarojs/components 3.4.8 → 3.4.11

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 (60) hide show
  1. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +7 -6
  2. package/dist/cjs/taro-tabbar.cjs.entry.js +5 -7
  3. package/dist/cjs/taro-video-control_3.cjs.entry.js +19 -13
  4. package/dist/cjs/taro-view-core.cjs.entry.js +2 -2
  5. package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +7 -6
  6. package/dist/collection/components/tabbar/tabbar.js +5 -7
  7. package/dist/collection/components/video/style/index.css +0 -1
  8. package/dist/collection/components/video/utils.js +6 -7
  9. package/dist/collection/components/video/video-control.js +3 -3
  10. package/dist/collection/components/video/video.js +10 -3
  11. package/dist/collection/components/view/view.js +2 -2
  12. package/dist/esm/taro-pull-to-refresh.entry.js +7 -6
  13. package/dist/esm/taro-tabbar.entry.js +5 -7
  14. package/dist/esm/taro-video-control_3.entry.js +19 -13
  15. package/dist/esm/taro-view-core.entry.js +2 -2
  16. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
  17. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  18. package/dist/esm-es5/taro-video-control_3.entry.js +2 -2
  19. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  20. package/dist/taro-components/p-16bf117a.system.entry.js +1 -0
  21. package/dist/taro-components/p-33ee636a.system.js +1 -1
  22. package/dist/taro-components/p-57f471b9.entry.js +1 -0
  23. package/dist/taro-components/p-7395165d.system.entry.js +1 -0
  24. package/dist/taro-components/p-b4f94eb0.entry.js +1 -0
  25. package/dist/taro-components/{p-ff032a23.system.entry.js → p-c2fa47e2.system.entry.js} +2 -2
  26. package/dist/taro-components/{p-3fa99b92.system.entry.js → p-c792a826.system.entry.js} +1 -1
  27. package/dist/taro-components/p-e38a81c9.entry.js +1 -0
  28. package/dist/taro-components/{p-00089605.entry.js → p-e69f5a80.entry.js} +2 -2
  29. package/dist/taro-components/taro-components.esm.js +1 -1
  30. package/dist/types/components/video/utils.d.ts +1 -3
  31. package/dist/types/components/video/video-control.d.ts +1 -1
  32. package/package.json +5 -4
  33. package/types/Ad.d.ts +6 -6
  34. package/types/Button.d.ts +12 -12
  35. package/types/Camera.d.ts +10 -10
  36. package/types/Canvas.d.ts +1 -1
  37. package/types/Checkbox.d.ts +4 -4
  38. package/types/CheckboxGroup.d.ts +3 -3
  39. package/types/Form.d.ts +2 -2
  40. package/types/Input.d.ts +19 -19
  41. package/types/LivePlayer.d.ts +8 -8
  42. package/types/Map.d.ts +28 -28
  43. package/types/MovableArea.d.ts +1 -1
  44. package/types/MovableView.d.ts +18 -18
  45. package/types/OpenData.d.ts +6 -6
  46. package/types/PageContainer.d.ts +14 -14
  47. package/types/Radio.d.ts +5 -5
  48. package/types/RadioGroup.d.ts +2 -2
  49. package/types/RichText.d.ts +7 -2
  50. package/types/Swiper.d.ts +5 -5
  51. package/types/Switch.d.ts +2 -2
  52. package/types/Textarea.d.ts +21 -21
  53. package/types/Video.d.ts +13 -13
  54. package/types/WebView.d.ts +6 -6
  55. package/vue3.d.ts +3 -0
  56. package/dist/taro-components/p-26bdffd7.entry.js +0 -1
  57. package/dist/taro-components/p-3aad572a.system.entry.js +0 -1
  58. package/dist/taro-components/p-b93ca09d.entry.js +0 -1
  59. package/dist/taro-components/p-bc97b854.system.entry.js +0 -1
  60. package/dist/taro-components/p-cd2af8b4.entry.js +0 -1
@@ -4,97 +4,97 @@ import { StandardProps, CommonEventFunction, TouchEventFunction } from './common
4
4
  interface MovableViewProps extends Omit<StandardProps, 'animation'> {
5
5
  /** movable-view 的移动方向,属性值有`all`、`vertical`、`horizontal`、`none`
6
6
  * @default none
7
- * @supported weapp, rn
7
+ * @supported weapp, rn, tt
8
8
  */
9
9
  direction?: 'all' | 'vertical' | 'horizontal' | 'none'
10
10
 
11
11
  /** movable-view 是否带有惯性
12
12
  * @default false
13
- * @supported weapp
13
+ * @supported weapp, tt
14
14
  */
15
15
  inertia?: boolean
16
16
 
17
17
  /** 超过可移动区域后,movable-view 是否还可以移动
18
18
  * @default false
19
- * @supported weapp
19
+ * @supported weapp, tt
20
20
  */
21
21
  outOfBounds?: boolean
22
22
 
23
23
  /** 定义 x 轴方向的偏移,如果 x 的值不在可移动范围内,会自动移动到可移动范围;改变 x 的值会触发动画
24
- * @supported weapp, rn
24
+ * @supported weapp, rn, tt
25
25
  */
26
26
  x?: number | string
27
27
 
28
28
  /** 定义 y 轴方向的偏移,如果 y 的值不在可移动范围内,会自动移动到可移动范围;改变 y 的值会触发动画
29
- * @supported weapp, rn
29
+ * @supported weapp, rn, tt
30
30
  */
31
31
  y?: number | string
32
32
 
33
33
  /** 阻尼系数,用于控制x或y改变时的动画和过界回弹的动画,值越大移动越快
34
34
  * @default 20
35
- * @supported weapp
35
+ * @supported weapp, tt
36
36
  */
37
37
  damping?: number
38
38
 
39
39
  /** 摩擦系数,用于控制惯性滑动的动画,值越大摩擦力越大,滑动越快停止;必须大于 0,否则会被设置成默认值
40
40
  * @default 2
41
- * @supported weapp
41
+ * @supported weapp, tt
42
42
  */
43
43
  friction?: number
44
44
 
45
45
  /** 是否禁用
46
46
  * @default false
47
- * @supported weapp, rn
47
+ * @supported weapp, rn, tt
48
48
  */
49
49
  disabled?: boolean
50
50
 
51
51
  /** 是否支持双指缩放,默认缩放手势生效区域是在 movable-view 内
52
52
  * @default false
53
- * @supported weapp
53
+ * @supported weapp, tt
54
54
  */
55
55
  scale?: boolean
56
56
 
57
57
  /** 定义缩放倍数最小值
58
58
  * @default 0.5
59
- * @supported weapp
59
+ * @supported weapp, tt
60
60
  */
61
61
  scaleMin?: number
62
62
 
63
63
  /** 定义缩放倍数最大值
64
64
  * @default 10
65
- * @supported weapp
65
+ * @supported weapp, tt
66
66
  */
67
67
  scaleMax?: number
68
68
 
69
69
  /** 定义缩放倍数,取值范围为 0.5 - 10
70
70
  * @default 1
71
- * @supported weapp
71
+ * @supported weapp, tt
72
72
  */
73
73
  scaleValue?: number
74
74
 
75
75
  /** 是否使用动画
76
76
  * @default true
77
- * @supported weapp
77
+ * @supported weapp, tt
78
78
  */
79
79
  animation?: boolean
80
80
 
81
81
  /** 拖动过程中触发的事件
82
- * @supported weapp
82
+ * @supported weapp, tt
83
83
  */
84
84
  onChange?: CommonEventFunction<MovableViewProps.onChangeEventDetail>
85
85
 
86
86
  /** 缩放过程中触发的事件
87
- * @supported weapp
87
+ * @supported weapp, tt
88
88
  */
89
89
  onScale?: CommonEventFunction<MovableViewProps.onScaleEventDetail>
90
90
 
91
91
  /** 初次手指触摸后移动为横向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
92
- * @supported weapp
92
+ * @supported weapp, tt
93
93
  */
94
94
  onHTouchMove?: TouchEventFunction
95
95
 
96
96
  /** 初次手指触摸后移动为纵向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
97
- * @supported weapp
97
+ * @supported weapp, tt
98
98
  */
99
99
  onVTouchMove?: TouchEventFunction
100
100
  /** 开始拖动时触发
@@ -143,7 +143,7 @@ declare namespace MovableViewProps {
143
143
 
144
144
  /** 可移动的视图容器,在页面中可以拖拽滑动。movable-view 必须在 movable-area 组件中,并且必须是直接子节点,否则不能移动。
145
145
  * @classification viewContainer
146
- * @supported weapp, swan, alipay, rn
146
+ * @supported weapp, swan, alipay, rn, tt
147
147
  * @example_react
148
148
  * ```tsx
149
149
  * class App extends Components {
@@ -3,7 +3,7 @@ import { StandardProps, CommonEventFunction } from './common'
3
3
 
4
4
  interface OpenDataProps extends StandardProps {
5
5
  /** 开放数据类型
6
- * @supported weapp
6
+ * @supported weapp, tt
7
7
  */
8
8
  type: keyof OpenDataProps.Type
9
9
  /** 当 type="groupName" 时生效, 群id
@@ -17,17 +17,17 @@ interface OpenDataProps extends StandardProps {
17
17
  lang?: keyof OpenDataProps.Lang
18
18
 
19
19
  /** 数据为空时的默认文案
20
- * @supported weapp
20
+ * @supported weapp, tt
21
21
  */
22
22
  defaultText?: string
23
23
 
24
24
  /** 用户头像为空时的默认图片,支持相对路径和网络图片路径
25
- * @supported weapp
25
+ * @supported weapp, tt
26
26
  */
27
27
  defaultAvatar?: string
28
28
 
29
29
  /** 群名称或用户信息为空时触发
30
- * @supported weapp
30
+ * @supported weapp, tt
31
31
  */
32
32
  onError?: CommonEventFunction
33
33
  }
@@ -63,9 +63,9 @@ declare namespace OpenDataProps {
63
63
  }
64
64
  }
65
65
 
66
- /** 用于展示微信开放的数据
66
+ /** 用于展示平台开放的数据
67
67
  * @classification open
68
- * @supported weapp
68
+ * @supported weapp, tt
69
69
  * @example_react
70
70
  * ```tsx
71
71
  * class App extends Component {
@@ -4,13 +4,13 @@ import { StandardProps, CommonEventFunction, BaseEventOrigFunction } from './com
4
4
  interface PageContainerProps extends StandardProps {
5
5
  /** 是否显示容器组件
6
6
  * @default false
7
- * @supported weapp
7
+ * @supported weapp, rn
8
8
  */
9
9
  show?: boolean
10
10
 
11
11
  /** 动画时长,单位毫秒
12
12
  * @default 300
13
- * @supported weapp
13
+ * @supported weapp, rn
14
14
  */
15
15
  duration?: number
16
16
 
@@ -22,19 +22,19 @@ interface PageContainerProps extends StandardProps {
22
22
 
23
23
  /** 是否显示遮罩层
24
24
  * @default true
25
- * @supported weapp
25
+ * @supported weapp, rn
26
26
  */
27
27
  overlay?: boolean
28
28
 
29
29
  /** 弹出位置,可选值为 top bottom right center
30
30
  * @default bottom
31
- * @supported weapp
31
+ * @supported weapp, rn
32
32
  */
33
33
  position?: keyof PageContainerProps.Position
34
34
 
35
35
  /** 是否显示圆角
36
36
  * @default false
37
- * @supported weapp
37
+ * @supported weapp, rn
38
38
  */
39
39
  round?: boolean
40
40
 
@@ -45,42 +45,42 @@ interface PageContainerProps extends StandardProps {
45
45
  closeOnSlideDown?: boolean
46
46
 
47
47
  /** 自定义遮罩层样式
48
- * @supported weapp
48
+ * @supported weapp, rn
49
49
  */
50
50
  overlayStyle?: string
51
51
 
52
52
  /** 自定义弹出层样式
53
- * @supported weapp
53
+ * @supported weapp, rn
54
54
  */
55
55
  customStyle?: string
56
56
 
57
57
  /** 进入前触发
58
- * @supported weapp
58
+ * @supported weapp, rn
59
59
  */
60
60
  onBeforeEnter?: CommonEventFunction
61
61
 
62
62
  /** 进入中触发
63
- * @supported weapp
63
+ * @supported weapp, rn
64
64
  */
65
65
  onEnter?: CommonEventFunction
66
66
 
67
67
  /** 进入后触发
68
- * @supported weapp
68
+ * @supported weapp, rn
69
69
  */
70
70
  onAfterEnter?: CommonEventFunction
71
71
 
72
72
  /** 离开前触发
73
- * @supported weapp
73
+ * @supported weapp, rn
74
74
  */
75
75
  onBeforeLeave?: CommonEventFunction
76
76
 
77
77
  /** 离开中触发
78
- * @supported weapp
78
+ * @supported weapp, rn
79
79
  */
80
80
  onLeave?: CommonEventFunction
81
81
 
82
82
  /** 离开后触发
83
- * @supported weapp
83
+ * @supported weapp, rn
84
84
  */
85
85
  onAfterLeave?: CommonEventFunction
86
86
 
@@ -113,7 +113,7 @@ declare namespace PageContainerProps {
113
113
  * 1. tip: 当前页面最多只有 1 个容器,若已存在容器的情况下,无法增加新的容器
114
114
  * 2. tip: wx.navigateBack 无法在页面栈顶调用,此时没有上一级页面
115
115
  * @classification viewContainer
116
- * @supported weapp
116
+ * @supported weapp, rn
117
117
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/page-container.html
118
118
  */
119
119
  declare const PageContainer: ComponentType<PageContainerProps>
package/types/Radio.d.ts CHANGED
@@ -3,25 +3,25 @@ import { StandardProps, CommonEventFunction, FormItemProps } from './common'
3
3
 
4
4
  interface RadioProps extends StandardProps {
5
5
  /** `<Radio/>` 标识。当该`<Radio/>` 选中时,`<RadioGroup/>`的 change 事件会携带`<Radio/>`的 value
6
- * @supported weapp, rn
6
+ * @supported weapp, rn, tt
7
7
  */
8
8
  value?: string
9
9
 
10
10
  /** 当前是否选中
11
11
  * @default false
12
- * @supported weapp, h5, rn
12
+ * @supported weapp, h5, rn, tt
13
13
  */
14
14
  checked?: boolean
15
15
 
16
16
  /** 是否禁用
17
17
  * @default false
18
- * @supported weapp, h5, rn
18
+ * @supported weapp, h5, rn, tt
19
19
  */
20
20
  disabled?: boolean
21
21
 
22
22
  /** Radio 的颜色,同 css 的 color
23
23
  * @default "#09BB07"
24
- * @supported weapp, rn
24
+ * @supported weapp, rn, tt
25
25
  */
26
26
  color?: string
27
27
 
@@ -33,7 +33,7 @@ interface RadioProps extends StandardProps {
33
33
 
34
34
  /** 单选项目
35
35
  * @classification forms
36
- * @supported weapp, h5, rn
36
+ * @supported weapp, h5, rn, tt
37
37
  * @example_react
38
38
  * ```tsx
39
39
  * export default class PageRadio extends Component {
@@ -3,7 +3,7 @@ import { StandardProps, CommonEventFunction, FormItemProps } from './common'
3
3
 
4
4
  interface RadioGroupProps extends StandardProps, FormItemProps {
5
5
  /** RadioGroup 中选中项发生改变时触发 change 事件,detail = {value:[选中的radio的value的数组]}
6
- * @supported weapp, h5
6
+ * @supported weapp, h5, tt
7
7
  */
8
8
  onChange?: CommonEventFunction
9
9
  }
@@ -16,7 +16,7 @@ declare namespace RadioGroupProps {
16
16
 
17
17
  /** 单项选择器,内部由多个 Radio 组成。
18
18
  * @classification forms
19
- * @supported weapp, h5, rn
19
+ * @supported weapp, h5, rn, tt
20
20
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/radio-group.html
21
21
  */
22
22
  declare const RadioGroup: ComponentType<RadioGroupProps>
@@ -2,10 +2,15 @@ import { ComponentType } from 'react'
2
2
  import { StandardProps } from './common'
3
3
 
4
4
  interface RichTextProps extends StandardProps {
5
+ /** 文本是否可选,该属性会使节点显示为 block
6
+ * @default false
7
+ * @supported weapp
8
+ */
9
+ userSelect?: boolean
5
10
  /** 节点列表/ HTML String */
6
11
  nodes?: Nodes
7
12
  /** 显示连续空格
8
- * @supported weapp
13
+ * @supported weapp, rn
9
14
  */
10
15
  space?: keyof RichTextProps.TSpace
11
16
  }
@@ -95,7 +100,7 @@ declare namespace RichTextProps {
95
100
  * <rich-text :nodes="nodes"></rich-text>
96
101
  * </view>
97
102
  * </template>
98
- *
103
+ *
99
104
  * <script>
100
105
  * export default {
101
106
  * name: 'Index',
package/types/Swiper.d.ts CHANGED
@@ -63,13 +63,13 @@ interface SwiperProps extends StandardProps {
63
63
 
64
64
  /** 前边距,可用于露出前一项的一小部分,接受 px 和 rpx 值
65
65
  * @default "0px"
66
- * @supported weapp, h5
66
+ * @supported weapp, h5, tt
67
67
  */
68
68
  previousMargin?: string
69
69
 
70
70
  /** 后边距,可用于露出后一项的一小部分,接受 px 和 rpx 值
71
71
  * @default "0px"
72
- * @supported weapp, h5
72
+ * @supported weapp, h5, tt
73
73
  */
74
74
  nextMargin?: string
75
75
 
@@ -94,7 +94,7 @@ interface SwiperProps extends StandardProps {
94
94
 
95
95
  /** 指定 swiper 切换缓动动画类型
96
96
  * @default "default"
97
- * @supported weapp
97
+ * @supported weapp, tt
98
98
  */
99
99
  easingFunction?: keyof SwiperProps.TEasingFunction
100
100
 
@@ -104,12 +104,12 @@ interface SwiperProps extends StandardProps {
104
104
  onChange?: CommonEventFunction<SwiperProps.onChangeEventDetail>
105
105
 
106
106
  /** swiper-item 的位置发生改变时会触发 transition 事件
107
- * @supported weapp
107
+ * @supported weapp, tt
108
108
  */
109
109
  onTransition?: CommonEventFunction<SwiperProps.onTransitionEventDetail>
110
110
 
111
111
  /** 动画结束时会触发 animationfinish 事件
112
- * @supported weapp, swan, h5, rn
112
+ * @supported weapp, swan, h5, rn, tt
113
113
  */
114
114
  onAnimationFinish?: SwiperProps['onChange']
115
115
 
package/types/Switch.d.ts CHANGED
@@ -10,7 +10,7 @@ interface SwitchProps extends StandardProps, FormItemProps {
10
10
 
11
11
  /** 是否禁用
12
12
  * @default false
13
- * @supported weapp, rn
13
+ * @supported weapp, rn, tt
14
14
  */
15
15
  disabled?: boolean
16
16
 
@@ -27,7 +27,7 @@ interface SwitchProps extends StandardProps, FormItemProps {
27
27
  color?: string
28
28
 
29
29
  /** checked 改变时触发 change 事件
30
- * @supported weapp, rn
30
+ * @supported weapp, rn, tt
31
31
  */
32
32
  onChange?: CommonEventFunction<SwitchProps.onChangeEventDetail>
33
33
 
@@ -3,35 +3,35 @@ import { StandardProps, CommonEventFunction, FormItemProps } from './common'
3
3
 
4
4
  interface TextareaProps extends StandardProps, FormItemProps {
5
5
  /** 输入框的内容
6
- * @supported weapp, h5, rn
6
+ * @supported weapp, h5, rn, tt
7
7
  */
8
8
  value?: string
9
9
 
10
10
  /** 输入框为空时占位符
11
- * @supported weapp, h5, rn
11
+ * @supported weapp, h5, rn, tt
12
12
  */
13
13
  placeholder?: string
14
14
 
15
15
  /** 指定 placeholder 的样式
16
- * @supported weapp
16
+ * @supported weapp, tt
17
17
  */
18
18
  placeholderStyle?: string
19
19
 
20
20
  /** 指定 placeholder 的样式类
21
21
  * @default "textarea-placeholder"
22
- * @supported weapp
22
+ * @supported weapp, tt
23
23
  */
24
24
  placeholderClass?: string
25
25
 
26
26
  /** 是否禁用
27
27
  * @default false
28
- * @supported weapp, h5, rn
28
+ * @supported weapp, h5, rn, tt
29
29
  */
30
30
  disabled?: boolean
31
31
 
32
32
  /** 最大输入长度,设置为 -1 的时候不限制最大长度
33
33
  * @default 140
34
- * @supported weapp, h5, rn
34
+ * @supported weapp, h5, rn, tt
35
35
  */
36
36
  maxlength?: number
37
37
 
@@ -43,13 +43,13 @@ interface TextareaProps extends StandardProps, FormItemProps {
43
43
 
44
44
  /** 获取焦点
45
45
  * @default false
46
- * @supported weapp, rn
46
+ * @supported weapp, rn, tt
47
47
  */
48
48
  focus?: boolean
49
49
 
50
50
  /** 是否自动增高,设置 autoHeight 时,style.height不生效
51
51
  * @default false
52
- * @supported weapp, rn
52
+ * @supported weapp, rn, tt
53
53
  */
54
54
  autoHeight?: boolean
55
55
 
@@ -61,76 +61,76 @@ interface TextareaProps extends StandardProps, FormItemProps {
61
61
 
62
62
  /** 指定光标与键盘的距离,单位 px 。取 Textarea 距离底部的距离和 cursorSpacing 指定的距离的最小值作为光标与键盘的距离
63
63
  * @default 0
64
- * @supported weapp
64
+ * @supported weapp, tt
65
65
  */
66
66
  cursorSpacing?: number
67
67
 
68
68
  /** 指定 focus 时的光标位置
69
69
  * @default -1
70
- * @supported weapp
70
+ * @supported weapp, tt
71
71
  */
72
72
  cursor?: number
73
73
 
74
74
  /** 是否显示键盘上方带有”完成“按钮那一栏
75
75
  * @default true
76
- * @supported weapp
76
+ * @supported weapp, tt
77
77
  */
78
78
  showConfirmBar?: boolean
79
79
 
80
80
  /** 光标起始位置,自动聚集时有效,需与 selectionEnd 搭配使用
81
81
  * @default -1
82
- * @supported weapp, rn
82
+ * @supported weapp, rn, tt
83
83
  */
84
84
  selectionStart?: number
85
85
 
86
86
  /** 光标结束位置,自动聚集时有效,需与 selectionStart 搭配使用
87
87
  * @default -1
88
- * @supported weapp, rn
88
+ * @supported weapp, rn, tt
89
89
  */
90
90
  selectionEnd?: number
91
91
 
92
92
  /** 键盘弹起时,是否自动上推页面
93
93
  * @default true
94
- * @supported weapp
94
+ * @supported weapp, tt
95
95
  */
96
96
  adjustPosition?: boolean
97
97
 
98
98
  /** focus 时,点击页面的时候不收起键盘
99
99
  * @default false
100
- * @supported weapp
100
+ * @supported weapp, tt
101
101
  */
102
102
  holdKeyboard?: boolean
103
103
 
104
104
  /** 是否去掉 iOS 下的默认内边距
105
105
  * @default false
106
- * @supported weapp
106
+ * @supported weapp, tt
107
107
  */
108
108
  disableDefaultPadding?: boolean
109
109
 
110
110
  /** 输入框聚焦时触发
111
- * @supported weapp, h5, rn
111
+ * @supported weapp, h5, rn, tt
112
112
  */
113
113
  onFocus?: CommonEventFunction<TextareaProps.onFocusEventDetail>
114
114
 
115
115
  /** 输入框失去焦点时触发
116
- * @supported weapp, h5, rn
116
+ * @supported weapp, h5, rn, tt
117
117
  */
118
118
  onBlur?: CommonEventFunction<TextareaProps.onBlurEventDetail>
119
119
 
120
120
  /** 输入框行数变化时调用,event.detail = {height: 0, heightRpx: 0, lineCount: 0}
121
- * @supported weapp, rn
121
+ * @supported weapp, rn, tt
122
122
  */
123
123
  onLineChange?: CommonEventFunction<TextareaProps.onLineChangeEventDetail>
124
124
 
125
125
  /** 当键盘输入时,触发 input 事件,event.detail = {value, cursor, keyCode}
126
126
  *
127
127
  * **onInput 处理函数的返回值并不会反映到 textarea 上**
128
- * @supported weapp, h5, rn
128
+ * @supported weapp, h5, rn, tt
129
129
  */
130
130
  onInput?: CommonEventFunction<TextareaProps.onInputEventDetail>
131
131
 
132
132
  /** 点击完成时, 触发 confirm 事件,event.detail = {value: value}
133
- * @supported weapp, rn
133
+ * @supported weapp, rn, tt
134
134
  */
135
135
  onConfirm?: CommonEventFunction<TextareaProps.onConfirmEventDetail>
136
136
 
package/types/Video.d.ts CHANGED
@@ -76,21 +76,21 @@ interface VideoProps extends StandardProps {
76
76
 
77
77
  /** 若不设置,宽度大于240时才会显示
78
78
  * @default true
79
- * @supported weapp, swan
79
+ * @supported weapp, swan, tt
80
80
  * @h5 待定
81
81
  */
82
82
  showProgress?: boolean
83
83
 
84
84
  /** 是否显示全屏按钮
85
85
  * @default true
86
- * @supported weapp, swan, alipay
86
+ * @supported weapp, swan, alipay, tt
87
87
  * @h5 待定
88
88
  */
89
89
  showFullscreenBtn?: boolean
90
90
 
91
91
  /** 是否显示视频底部控制栏的播放按钮
92
92
  * @default true
93
- * @supported weapp, swan, alipay
93
+ * @supported weapp, swan, alipay, tt
94
94
  * @h5 待定
95
95
  */
96
96
  showPlayBtn?: boolean
@@ -104,14 +104,14 @@ interface VideoProps extends StandardProps {
104
104
 
105
105
  /** 是否开启控制进度的手势
106
106
  * @default true
107
- * @supported weapp, swan, alipay
107
+ * @supported weapp, swan, alipay, tt
108
108
  * @h5 待定
109
109
  */
110
110
  enableProgressGesture?: boolean
111
111
 
112
112
  /** 当视频大小与 video 容器大小不一致时,视频的表现形式
113
113
  * @default "contain"
114
- * @supported weapp, swan, alipay
114
+ * @supported weapp, swan, alipay, tt
115
115
  * @h5 待定
116
116
  */
117
117
  objectFit?: keyof VideoProps.ObjectFit
@@ -123,7 +123,7 @@ interface VideoProps extends StandardProps {
123
123
 
124
124
  /** 是否显示静音按钮
125
125
  * @default false
126
- * @supported weapp
126
+ * @supported weapp, tt
127
127
  * @h5 待定
128
128
  */
129
129
  showMuteBtn?: boolean
@@ -139,14 +139,14 @@ interface VideoProps extends StandardProps {
139
139
  * - `center`: 视频中间
140
140
  *
141
141
  * @default 'bottom'
142
- * @supported weapp
142
+ * @supported weapp, tt
143
143
  * @h5 待定
144
144
  */
145
145
  playBtnPosition?: keyof VideoProps.PlayBtnPosition
146
146
 
147
147
  /** 是否开启播放手势,即双击切换播放/暂停
148
148
  * @default false
149
- * @supported weapp
149
+ * @supported weapp, tt
150
150
  * @h5 待定
151
151
  */
152
152
  enablePlayGesture?: boolean
@@ -167,14 +167,14 @@ interface VideoProps extends StandardProps {
167
167
 
168
168
  /** 在非全屏模式下,是否开启亮度与音量调节手势(同 `page-gesture`)
169
169
  * @default false
170
- * @supported weapp, swan
170
+ * @supported weapp, swan, tt
171
171
  * @h5 待定
172
172
  */
173
173
  vslideGesture?: boolean
174
174
 
175
175
  /** 在全屏模式下,是否开启亮度与音量调节手势
176
176
  * @default true
177
- * @supported weapp
177
+ * @supported weapp, tt
178
178
  * @h5 待定
179
179
  */
180
180
  vslideGestureInFullscreen?: boolean
@@ -249,7 +249,7 @@ interface VideoProps extends StandardProps {
249
249
  /** 当视频进入和退出全屏时触发
250
250
  *
251
251
  * event.detail = {fullScreen, direction},direction取为 vertical 或 horizontal
252
- * @supported weapp, swan, alipay, rn
252
+ * @supported weapp, swan, alipay, rn, tt
253
253
  * @h5 待定
254
254
  */
255
255
  onFullscreenChange?: CommonEventFunction<VideoProps.onFullscreenChangeEventDetail>
@@ -257,7 +257,7 @@ interface VideoProps extends StandardProps {
257
257
  /** 当视频进入和退出全屏时触发
258
258
  *
259
259
  * event.detail = {fullScreen, direction},direction 取为 vertical 或 horizontal
260
- * @supported weapp, swan
260
+ * @supported weapp, swan, tt
261
261
  * @h5 待定
262
262
  */
263
263
  onWaiting?: CommonEventFunction<VideoProps.onWaitingEventDetail>
@@ -273,7 +273,7 @@ interface VideoProps extends StandardProps {
273
273
  onProgress?: CommonEventFunction<VideoProps.onProgressEventDetail>
274
274
 
275
275
  /** 视频元数据加载完成时触发。event.detail = {width, height, duration}
276
- * @supported weapp, rn
276
+ * @supported weapp, rn, tt
277
277
  */
278
278
  onLoadedMetaData?: CommonEventFunction
279
279