@tarojs/components 3.6.22-nightly.5 → 3.6.22-nightly.6

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 (47) hide show
  1. package/dist/cjs/taro-tabbar.cjs.entry.js +8 -8
  2. package/dist/collection/components/tabbar/tabbar.js +1 -1
  3. package/dist/components/taro-tabbar.js +1 -1
  4. package/dist/esm/taro-tabbar.entry.js +1 -1
  5. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  6. package/dist/taro-components/p-0589fade.system.entry.js +1 -0
  7. package/dist/taro-components/p-8fa55dc6.entry.js +1 -0
  8. package/dist/taro-components/p-a972aa1d.system.js +1 -1
  9. package/dist/taro-components/taro-components.esm.js +1 -1
  10. package/package.json +4 -4
  11. package/types/Audio.d.ts +11 -11
  12. package/types/Button.d.ts +9 -9
  13. package/types/Canvas.d.ts +11 -11
  14. package/types/Checkbox.d.ts +8 -8
  15. package/types/CheckboxGroup.d.ts +3 -3
  16. package/types/CoverImage.d.ts +4 -4
  17. package/types/CoverView.d.ts +1 -1
  18. package/types/CustomWrapper.d.ts +1 -1
  19. package/types/Form.d.ts +4 -4
  20. package/types/Icon.d.ts +4 -4
  21. package/types/Image.d.ts +8 -8
  22. package/types/Input.d.ts +17 -17
  23. package/types/Label.d.ts +2 -2
  24. package/types/MovableArea.d.ts +2 -2
  25. package/types/MovableView.d.ts +18 -18
  26. package/types/NativeSlot.d.ts +1 -1
  27. package/types/Navigator.d.ts +8 -8
  28. package/types/Picker.d.ts +26 -26
  29. package/types/PickerView.d.ts +1 -1
  30. package/types/PickerViewColumn.d.ts +1 -1
  31. package/types/Progress.d.ts +13 -13
  32. package/types/Radio.d.ts +7 -7
  33. package/types/RadioGroup.d.ts +2 -2
  34. package/types/RichText.d.ts +5 -5
  35. package/types/ScrollView.d.ts +13 -13
  36. package/types/Slider.d.ts +13 -13
  37. package/types/Slot.d.ts +1 -1
  38. package/types/Swiper.d.ts +17 -17
  39. package/types/SwiperItem.d.ts +2 -2
  40. package/types/Switch.d.ts +7 -7
  41. package/types/Text.d.ts +4 -4
  42. package/types/Textarea.d.ts +13 -13
  43. package/types/Video.d.ts +30 -30
  44. package/types/View.d.ts +4 -4
  45. package/types/WebView.d.ts +4 -4
  46. package/dist/taro-components/p-07f2362b.entry.js +0 -1
  47. package/dist/taro-components/p-658b0091.system.entry.js +0 -1
@@ -2,16 +2,16 @@ import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction, FormItemProps } from './common'
3
3
  interface CheckboxProps extends StandardProps {
4
4
  /** `<Checkbox/>`标识,选中时触发`<CheckboxGroup/>`的 change 事件,并携带 `<Checkbox/>` 的 value
5
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
6
6
  */
7
7
  value: string
8
8
  /** 是否禁用
9
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
9
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
10
10
  * @default false
11
11
  */
12
12
  disabled?: boolean
13
13
  /** 当前是否选中,可用来设置默认选中
14
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
14
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
15
15
  * @default false
16
16
  */
17
17
  checked?: boolean
@@ -20,16 +20,16 @@ interface CheckboxProps extends StandardProps {
20
20
  */
21
21
  defaultChecked?: boolean
22
22
  /** checkbox的颜色,同 css 的 color
23
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
23
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
24
24
  */
25
25
  color?: string
26
26
  /**
27
27
  * Checkbox 的名字
28
- * @supported h5, harmony
28
+ * @supported h5, harmony, harmony_hybrid
29
29
  */
30
30
  name?: string
31
31
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
32
- * @supported h5
32
+ * @supported h5, harmony_hybrid
33
33
  */
34
34
  nativeProps?: Record<string, unknown>
35
35
  /** 无障碍访问,(属性)元素的额外描述
@@ -37,7 +37,7 @@ interface CheckboxProps extends StandardProps {
37
37
  */
38
38
  ariaLabel?: string
39
39
  /** 选中项发生变化时触发 change 事件,小程序无此 API
40
- * @supported alipay, h5, rn
40
+ * @supported alipay, h5, rn, harmony_hybrid
41
41
  */
42
42
  onChange?: CommonEventFunction<{
43
43
  value: string[]
@@ -45,7 +45,7 @@ interface CheckboxProps extends StandardProps {
45
45
  }
46
46
  /** 多选项目
47
47
  * @classification forms
48
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
48
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
49
49
  * @example_react
50
50
  * ```tsx
51
51
  * export default class PageCheckbox extends Component {
@@ -2,11 +2,11 @@ import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction, FormItemProps } from './common'
3
3
  interface CheckboxGroupProps extends StandardProps, FormItemProps {
4
4
  /** 表单组件中加上 name 来作为 key
5
- * @supported alipay, tt, h5
5
+ * @supported alipay, tt, h5, harmony_hybrid
6
6
  */
7
7
  name?: string
8
8
  /** `<CheckboxGroup/>` 中选中项发生改变是触发 change 事件
9
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
9
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
10
10
  */
11
11
  onChange?: CommonEventFunction<{
12
12
  value: string[]
@@ -14,7 +14,7 @@ interface CheckboxGroupProps extends StandardProps, FormItemProps {
14
14
  }
15
15
  /** 多项选择器,内部由多个checkbox组成
16
16
  * @classification forms
17
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
17
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
18
18
  * @example
19
19
  * ```tsx
20
20
  * export default class PageCheckbox extends Component {
@@ -2,7 +2,7 @@ import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction } from './common'
3
3
  interface CoverImageProps extends StandardProps {
4
4
  /** 图标路径,支持临时路径、网络地址、云文件ID。暂不支持base64格式。
5
- * @supported weapp, alipay, swan, qq, jd, h5
5
+ * @supported weapp, alipay, swan, qq, jd, h5, harmony_hybrid
6
6
  */
7
7
  src: string
8
8
  /** 格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;
@@ -34,11 +34,11 @@ interface CoverImageProps extends StandardProps {
34
34
  */
35
35
  ariaLabel?: string
36
36
  /** 图片加载成功时触发
37
- * @supported weapp, swan, qq, jd, h5
37
+ * @supported weapp, swan, qq, jd, h5, harmony_hybrid
38
38
  */
39
39
  onLoad?: CommonEventFunction
40
40
  /** 图片加载失败时触发
41
- * @supported weapp, swan, qq, jd, h5
41
+ * @supported weapp, swan, qq, jd, h5, harmony_hybrid
42
42
  */
43
43
  onError?: CommonEventFunction
44
44
  /** 点击事件回调。
@@ -48,7 +48,7 @@ interface CoverImageProps extends StandardProps {
48
48
  }
49
49
  /** 覆盖在原生组件之上的图片视图。可覆盖的原生组件同cover-view,支持嵌套在cover-view里。
50
50
  * @classification viewContainer
51
- * @supported weapp, alipay, swan, qq, jd, h5, harmony
51
+ * @supported weapp, alipay, swan, qq, jd, h5, harmony, harmony_hybrid
52
52
  * @example_react
53
53
  * ```tsx
54
54
  * // js
@@ -117,7 +117,7 @@ interface CoverViewProps extends ViewProps {
117
117
  }
118
118
  /** 覆盖在原生组件之上的文本视图。可覆盖的原生组件包括 map、video、canvas、camera、live-player、live-pusher 只支持嵌套 cover-view、cover-image,可在 cover-view 中使用 button。
119
119
  * @classification viewContainer
120
- * @supported weapp, alipay, swan, qq, jd, h5
120
+ * @supported weapp, alipay, swan, qq, jd, h5, harmony_hybrid
121
121
  * @example_react
122
122
  * ```tsx
123
123
  * // js
@@ -7,7 +7,7 @@ interface CustomWrapperProps extends StandardProps {
7
7
  /** custom-wrapper 自定义组件包裹器
8
8
  * 当数据更新层级较深时,可用此组件将需要更新的区域包裹起来,这样更新层级将大大减少
9
9
  * @classification viewContainer
10
- * @supported weapp, swan, alipay, tt, jd, qq, h5
10
+ * @supported weapp, swan, alipay, tt, jd, qq, h5, harmony_hybrid
11
11
  * @example
12
12
  * ```tsx
13
13
  * import { Component } from 'react'
package/types/Form.d.ts CHANGED
@@ -3,7 +3,7 @@ import { StandardProps, CommonEventFunction } from './common'
3
3
  interface FormProps extends StandardProps {
4
4
  /** 是否返回 `formId` 用于发送模板消息。
5
5
  * @default false
6
- * @supported weapp, alipay, swan, qq, jd, h5
6
+ * @supported weapp, alipay, swan, qq, jd, h5, harmony_hybrid
7
7
  */
8
8
  reportSubmit?: boolean
9
9
  /** 等待一段时间(毫秒数)以确认 `formId` 是否生效。
@@ -43,11 +43,11 @@ interface FormProps extends StandardProps {
43
43
  */
44
44
  clueComponentId?: string
45
45
  /** 携带 form 中的数据触发 submit 事件
46
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
46
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
47
47
  */
48
48
  onSubmit?: CommonEventFunction<FormProps.onSubmitEventDetail>
49
49
  /** 表单重置时会触发 reset 事件
50
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
50
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
51
51
  */
52
52
  onReset?: CommonEventFunction
53
53
  }
@@ -69,7 +69,7 @@ declare namespace FormProps {
69
69
  *
70
70
  * 当点击 form 表单中 form-type 为 submit 的 button 组件时,会将表单组件中的 value 值进行提交,需要在表单组件中加上 name 来作为 key。
71
71
  * @classification forms
72
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
72
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
73
73
  * @example_react
74
74
  * ```tsx
75
75
  * class App extends Component {
package/types/Icon.d.ts CHANGED
@@ -2,16 +2,16 @@ import { ComponentType } from 'react'
2
2
  import { StandardProps } from './common'
3
3
  interface IconProps extends StandardProps {
4
4
  /** icon 的类型
5
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
6
6
  */
7
7
  type: keyof IconProps.TIconType
8
8
  /** icon 的大小,单位px
9
9
  * @default 23
10
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
10
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
11
11
  */
12
12
  size?: string
13
13
  /** icon 的颜色,同 css 的 color
14
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
14
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
15
15
  */
16
16
  color?: string
17
17
  /** 无障碍访问,(属性)元素的额外描述
@@ -48,7 +48,7 @@ declare namespace IconProps {
48
48
  }
49
49
  /** 图标。组件属性的长度单位默认为 px
50
50
  * @classification base
51
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
51
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
52
52
  * @example_react
53
53
  * ```tsx
54
54
  * export default class PageView extends Component {
package/types/Image.d.ts CHANGED
@@ -2,12 +2,12 @@ import { ComponentType, ImgHTMLAttributes } from 'react'
2
2
  import { StandardProps, CommonEventFunction } from './common'
3
3
  interface ImageProps extends StandardProps {
4
4
  /** 图片资源地址
5
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
6
6
  */
7
7
  src: string
8
8
  /** 图片裁剪、缩放的模式
9
9
  * @default "scaleToFill"
10
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
10
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
11
11
  * @rn 部分支持 scaleToFill, aspectFit, aspectFill, widthFix
12
12
  */
13
13
  mode?: keyof ImageProps.Mode
@@ -23,7 +23,7 @@ interface ImageProps extends StandardProps {
23
23
  svg?: boolean
24
24
  /** 图片懒加载。只针对 page 与 scroll-view 下的 image 有效
25
25
  * @default false
26
- * @supported weapp, alipay, swan, tt, qq, h5
26
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
27
27
  */
28
28
  lazyLoad?: boolean
29
29
  /** 开启长按图片显示识别小程序码菜单
@@ -33,11 +33,11 @@ interface ImageProps extends StandardProps {
33
33
  showMenuByLongpress?: boolean
34
34
  /**
35
35
  * 为 img 标签额外增加的属性
36
- * @supported h5
36
+ * @supported h5, harmony_hybrid
37
37
  */
38
38
  imgProps?: ImgHTMLAttributes<HTMLImageElement>
39
39
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
40
- * @supported h5
40
+ * @supported h5, harmony_hybrid
41
41
  */
42
42
  nativeProps?: Record<string, unknown>
43
43
  /** 默认图片地址,若设置默认图片地址,会先显示默认图片,等 src 对应的图片加载成功后,再渲染对应的图片。
@@ -66,11 +66,11 @@ interface ImageProps extends StandardProps {
66
66
  */
67
67
  fadeIn?: boolean
68
68
  /** 当错误发生时,发布到 AppService 的事件名,事件对象
69
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
69
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
70
70
  */
71
71
  onError?: CommonEventFunction<ImageProps.onErrorEventDetail>
72
72
  /** 当图片载入完毕时,发布到 AppService 的事件名,事件对象
73
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
73
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
74
74
  */
75
75
  onLoad?: CommonEventFunction<ImageProps.onLoadEventDetail>
76
76
  /** 点击图片时触发。
@@ -129,7 +129,7 @@ declare namespace ImageProps {
129
129
  *
130
130
  * **Note:** 为实现小程序的 `mode` 特性,在 H5 组件中使用一个 `div` 容器来对内部的 `img` 进行展示区域的裁剪,因此请勿使用元素选择器来重置 `img` 的样式!
131
131
  * @classification media
132
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
132
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
133
133
  * @example_react
134
134
  * ```tsx
135
135
  * export default class PageView extends Component {
package/types/Input.d.ts CHANGED
@@ -2,7 +2,7 @@ import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction, FormItemProps } from './common'
3
3
  interface InputProps extends StandardProps, FormItemProps {
4
4
  /** 输入框的初始内容
5
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
6
6
  */
7
7
  value?: string
8
8
  /** 设置 React 非受控输入框的初始内容
@@ -11,16 +11,16 @@ interface InputProps extends StandardProps, FormItemProps {
11
11
  defaultValue?: string
12
12
  /** input 的类型
13
13
  * @default "text"
14
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
14
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
15
15
  */
16
16
  type?: keyof InputProps.Type
17
17
  /** 是否是密码类型
18
18
  * @default false
19
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
19
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
20
20
  */
21
21
  password?: boolean
22
22
  /** 输入框为空时占位符
23
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
23
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
24
24
  */
25
25
  placeholder?: string
26
26
  /** 指定 placeholder 的样式
@@ -38,12 +38,12 @@ interface InputProps extends StandardProps, FormItemProps {
38
38
  placeholderTextColor?: string
39
39
  /** 是否禁用
40
40
  * @default false
41
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
41
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
42
42
  */
43
43
  disabled?: boolean
44
44
  /** 最大输入长度,设置为 -1 的时候不限制最大长度
45
45
  * @default 140
46
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
46
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
47
47
  */
48
48
  maxlength?: number
49
49
  /** 指定光标与键盘的距离,单位 px 。取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离
@@ -54,12 +54,12 @@ interface InputProps extends StandardProps, FormItemProps {
54
54
  /** (即将废弃,请直接使用 focus )自动聚焦,拉起键盘
55
55
  * @default false
56
56
  * @deprecated
57
- * @supported weapp, qq, jd, h5
57
+ * @supported weapp, qq, jd, h5, harmony_hybrid
58
58
  */
59
59
  autoFocus?: boolean
60
60
  /** 获取焦点
61
61
  * @default false
62
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
62
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
63
63
  */
64
64
  focus?: boolean
65
65
  /** 设置键盘右下角按钮的文字,仅在type='text'时生效
@@ -148,7 +148,7 @@ interface InputProps extends StandardProps, FormItemProps {
148
148
  */
149
149
  controlled?: boolean
150
150
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
151
- * @supported h5
151
+ * @supported h5, harmony_hybrid
152
152
  */
153
153
  nativeProps?: Record<string, unknown>
154
154
  /** 组件名字,用于表单提交获取数据。
@@ -170,19 +170,19 @@ interface InputProps extends StandardProps, FormItemProps {
170
170
  */
171
171
  clueType?: number
172
172
  /** 当键盘输入时,触发input事件,event.detail = {value, cursor, keyCode},处理函数可以直接 return 一个字符串,将替换输入框的内容。
173
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
173
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
174
174
  */
175
175
  onInput?: CommonEventFunction<InputProps.inputEventDetail>
176
176
  /** 输入框聚焦时触发,event.detail = { value, height },height 为键盘高度
177
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
177
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
178
178
  */
179
179
  onFocus?: CommonEventFunction<InputProps.inputForceEventDetail>
180
180
  /** 输入框失去焦点时触发
181
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
181
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
182
182
  */
183
183
  onBlur?: CommonEventFunction<InputProps.inputValueEventDetail>
184
184
  /** 点击完成按钮时触发
185
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
185
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
186
186
  */
187
187
  onConfirm?: CommonEventFunction<InputProps.inputValueEventDetail>
188
188
  /** 键盘高度发生变化的时候触发此事件
@@ -198,11 +198,11 @@ declare namespace InputProps {
198
198
  /** Input 类型 */
199
199
  interface Type {
200
200
  /** 文本输入键盘
201
- * @supported weapp, alipay, h5, rn
201
+ * @supported weapp, alipay, h5, rn, harmony_hybrid
202
202
  */
203
203
  text
204
204
  /** 数字输入键盘
205
- * @supported weapp, alipay, h5, rn
205
+ * @supported weapp, alipay, h5, rn, harmony_hybrid
206
206
  */
207
207
  number
208
208
  /** 身份证输入键盘
@@ -210,7 +210,7 @@ declare namespace InputProps {
210
210
  */
211
211
  idcard
212
212
  /** 带小数点的数字键盘
213
- * @supported weapp, alipay, h5, rn
213
+ * @supported weapp, alipay, h5, rn, harmony_hybrid
214
214
  */
215
215
  digit
216
216
  /** 密码安全输入键盘[指引](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/safe-password.html)
@@ -275,7 +275,7 @@ declare namespace InputProps {
275
275
  }
276
276
  /** 输入框。该组件是原生组件,使用时请注意相关限制
277
277
  * @classification forms
278
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
278
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
279
279
  * @example_react
280
280
  * ```tsx
281
281
  * class App extends Component {
package/types/Label.d.ts CHANGED
@@ -2,7 +2,7 @@ import { ComponentType } from 'react'
2
2
  import { StandardProps } from './common'
3
3
  interface LabelProps extends StandardProps {
4
4
  /** 绑定控件的 id
5
- * @supported weapp, alipay, swan, tt, qq, jd, h5
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
6
6
  */
7
7
  for?: string
8
8
  }
@@ -10,7 +10,7 @@ interface LabelProps extends StandardProps {
10
10
  *
11
11
  * 使用for属性找到对应的id,或者将控件放在该标签下,当点击时,就会触发对应的控件。 for优先级高于内部控件,内部有多个控件的时候默认触发第一个控件。 目前可以绑定的控件有:button, checkbox, radio, switch。
12
12
  * @classification forms
13
- * @supported weapp, swan, alipay, tt, h5, rn, harmony
13
+ * @supported weapp, swan, alipay, tt, h5, rn, harmony, harmony_hybrid
14
14
  * @example_react
15
15
  * ```tsx
16
16
  * class App extends Components {
@@ -3,13 +3,13 @@ import { StandardProps } from './common'
3
3
  interface MovableAreaProps extends StandardProps {
4
4
  /** 当里面的 movable-view 设置为支持双指缩放时,设置此值可将缩放手势生效区域修改为整个 movable-area
5
5
  * @default false
6
- * @supported weapp, alipay, swan, tt, qq, jd, h5
6
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
7
7
  */
8
8
  scaleArea?: boolean
9
9
  }
10
10
  /** movable-view 的可移动区域
11
11
  * @classification viewContainer
12
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
12
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
13
13
  * @example_react
14
14
  * ```tsx
15
15
  * class App extends Components {
@@ -3,65 +3,65 @@ import { StandardProps, CommonEventFunction, TouchEventFunction } from './common
3
3
  interface MovableViewProps extends Omit<StandardProps, 'animation'> {
4
4
  /** movable-view 的移动方向,属性值有`all`、`vertical`、`horizontal`、`none`
5
5
  * @default none
6
- * @supported weapp, alipay, swan, tt, qq, h5, rn
6
+ * @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid
7
7
  */
8
8
  direction?: 'all' | 'vertical' | 'horizontal' | 'none'
9
9
  /** movable-view 是否带有惯性
10
10
  * @default false
11
- * @supported weapp, alipay, swan, tt, qq, h5
11
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
12
12
  */
13
13
  inertia?: boolean
14
14
  /** 超过可移动区域后,movable-view 是否还可以移动
15
15
  * @default false
16
- * @supported weapp, alipay, swan, tt, qq, h5
16
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
17
17
  */
18
18
  outOfBounds?: boolean
19
19
  /** 定义 x 轴方向的偏移,如果 x 的值不在可移动范围内,会自动移动到可移动范围;改变 x 的值会触发动画
20
- * @supported weapp, alipay, swan, tt, qq, h5, rn
20
+ * @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid
21
21
  */
22
22
  x?: number | string
23
23
  /** 定义 y 轴方向的偏移,如果 y 的值不在可移动范围内,会自动移动到可移动范围;改变 y 的值会触发动画
24
- * @supported weapp, alipay, swan, tt, qq, h5, rn
24
+ * @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid
25
25
  */
26
26
  y?: number | string
27
27
  /** 阻尼系数,用于控制x或y改变时的动画和过界回弹的动画,值越大移动越快
28
28
  * @default 20
29
- * @supported weapp, alipay, swan, tt, qq, h5
29
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
30
30
  */
31
31
  damping?: number
32
32
  /** 摩擦系数,用于控制惯性滑动的动画,值越大摩擦力越大,滑动越快停止;必须大于 0,否则会被设置成默认值
33
33
  * @default 2
34
- * @supported weapp, alipay, swan, tt, qq, h5
34
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
35
35
  */
36
36
  friction?: number
37
37
  /** 是否禁用
38
38
  * @default false
39
- * @supported weapp, alipay, swan, tt, qq, h5, rn
39
+ * @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid
40
40
  */
41
41
  disabled?: boolean
42
42
  /** 是否支持双指缩放,默认缩放手势生效区域是在 movable-view 内
43
43
  * @default false
44
- * @supported weapp, alipay, swan, tt, qq, h5
44
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
45
45
  */
46
46
  scale?: boolean
47
47
  /** 定义缩放倍数最小值
48
48
  * @default 0.5
49
- * @supported weapp, alipay, swan, tt, qq, h5
49
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
50
50
  */
51
51
  scaleMin?: number
52
52
  /** 定义缩放倍数最大值
53
53
  * @default 10
54
- * @supported weapp, alipay, swan, tt, qq, h5
54
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
55
55
  */
56
56
  scaleMax?: number
57
57
  /** 定义缩放倍数,取值范围为 0.5 - 10
58
58
  * @default 1
59
- * @supported weapp, alipay, swan, tt, qq, h5
59
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
60
60
  */
61
61
  scaleValue?: number
62
62
  /** 是否使用动画
63
63
  * @default true
64
- * @supported weapp, alipay, swan, tt, qq, h5
64
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
65
65
  */
66
66
  animation?: boolean
67
67
  /** 拖动过程中触发的事件
@@ -81,7 +81,7 @@ interface MovableViewProps extends Omit<StandardProps, 'animation'> {
81
81
  */
82
82
  onDragEnd?: CommonEventFunction
83
83
  /** 缩放过程中触发的事件
84
- * @supported weapp, alipay, swan, tt, qq, h5
84
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
85
85
  */
86
86
  onScale?: CommonEventFunction<MovableViewProps.onScaleEventDetail>
87
87
  /** 触摸动作开始,事件会向父节点传递。
@@ -93,7 +93,7 @@ interface MovableViewProps extends Omit<StandardProps, 'animation'> {
93
93
  */
94
94
  onTouchMove?: CommonEventFunction
95
95
  /** 手指触摸动作结束
96
- * @supported alipay, h5
96
+ * @supported alipay, h5, harmony_hybrid
97
97
  * @h5 此事件的触发顺序会因为当前事件机制引起组件内外注册的事件执行顺序不正常,外部注册的事件可能会优先于内部执行,如需保证执行顺序一致,需要在回调函数中包裹 setTimeout 临时处理
98
98
  */
99
99
  onTouchEnd?: TouchEventFunction
@@ -102,11 +102,11 @@ interface MovableViewProps extends Omit<StandardProps, 'animation'> {
102
102
  */
103
103
  onTouchCancel?: CommonEventFunction
104
104
  /** 初次手指触摸后移动为横向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
105
- * @supported weapp, swan, tt, h5
105
+ * @supported weapp, swan, tt, h5, harmony_hybrid
106
106
  */
107
107
  onHTouchMove?: TouchEventFunction
108
108
  /** 初次手指触摸后移动为纵向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
109
- * @supported weapp, swan, tt, h5
109
+ * @supported weapp, swan, tt, h5, harmony_hybrid
110
110
  */
111
111
  onVTouchMove?: TouchEventFunction
112
112
  /** 触摸移动事件,事件仅作用于组件,不向父节点传递。
@@ -155,7 +155,7 @@ declare namespace MovableViewProps {
155
155
  }
156
156
  /** 可移动的视图容器,在页面中可以拖拽滑动。movable-view 必须在 movable-area 组件中,并且必须是直接子节点,否则不能移动。
157
157
  * @classification viewContainer
158
- * @supported weapp, alipay, swan, tt, qq, h5, rn
158
+ * @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid
159
159
  * @example_react
160
160
  * ```tsx
161
161
  * class App extends Components {
@@ -12,7 +12,7 @@ interface NativeSlotProps extends StandardProps {
12
12
 
13
13
  /** 编译的原生组件支持使用 slot 插槽
14
14
  * @classification viewContainer
15
- * @supported weapp, swan, alipay, tt, jd, qq, h5
15
+ * @supported weapp, swan, alipay, tt, jd, qq, h5, harmony_hybrid
16
16
  * @version 3.5.7+
17
17
  * @example
18
18
  * ```tsx
@@ -7,16 +7,16 @@ interface NavigatorProps extends StandardProps {
7
7
  */
8
8
  target?: keyof NavigatorProps.Target
9
9
  /** 当前小程序内的跳转链接
10
- * @supported weapp, alipay, swan, tt, qq, jd, h5
10
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
11
11
  */
12
12
  url?: string
13
13
  /** 跳转方式
14
14
  * @default "navigate"
15
- * @supported weapp, alipay, swan, tt, qq, jd, h5
15
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
16
16
  */
17
17
  openType?: keyof NavigatorProps.OpenType
18
18
  /** 当 open-type 为 'navigateBack' 时有效,表示回退的层数
19
- * @supported weapp, swan, tt, qq, jd, h5
19
+ * @supported weapp, swan, tt, qq, jd, h5, harmony_hybrid
20
20
  */
21
21
  delta?: number
22
22
  /** 当 `target="miniProgram"` 时有效,要打开的小程序 appId
@@ -37,7 +37,7 @@ interface NavigatorProps extends StandardProps {
37
37
  version?: keyof NavigatorProps.Version
38
38
  /** 指定按下去的样式类。当 `hover-class="none"` 时,没有点击态效果
39
39
  * @default "navigator-hover"
40
- * @supported weapp, alipay, swan, tt, qq, jd, h5
40
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
41
41
  */
42
42
  hoverClass?: string
43
43
  /** 指定是否阻止本节点的祖先节点出现点击态
@@ -64,15 +64,15 @@ interface NavigatorProps extends StandardProps {
64
64
  */
65
65
  ariaLabel?: string
66
66
  /** 当 `target="miniProgram"` 时有效,跳转小程序成功
67
- * @supported weapp, swan, qq, h5
67
+ * @supported weapp, swan, qq, h5, harmony_hybrid
68
68
  */
69
69
  onSuccess?: CommonEventFunction
70
70
  /** 当 `target="miniProgram"` 时有效,跳转小程序失败
71
- * @supported weapp, swan, qq, h5
71
+ * @supported weapp, swan, qq, h5, harmony_hybrid
72
72
  */
73
73
  onFail?: CommonEventFunction
74
74
  /** 当 `target="miniProgram"` 时有效,跳转小程序完成
75
- * @supported weapp, swan, qq, h5
75
+ * @supported weapp, swan, qq, h5, harmony_hybrid
76
76
  */
77
77
  onComplete?: CommonEventFunction
78
78
  }
@@ -111,7 +111,7 @@ declare namespace NavigatorProps {
111
111
  }
112
112
  /** 页面链接
113
113
  * @classification navig
114
- * @supported weapp, alipay, swan, tt, qq, jd, harmony, h5
114
+ * @supported weapp, alipay, swan, tt, qq, jd, harmony, h5, harmony_hybrid
115
115
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/navigator.html
116
116
  */
117
117
  declare const Navigator: ComponentType<NavigatorProps>