@tarojs/components 3.6.22-nightly.5 → 3.6.22-nightly.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/taro-tabbar.cjs.entry.js +8 -8
- package/dist/collection/components/tabbar/tabbar.js +1 -1
- package/dist/components/taro-tabbar.js +1 -1
- package/dist/esm/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/taro-components/p-0589fade.system.entry.js +1 -0
- package/dist/taro-components/p-8fa55dc6.entry.js +1 -0
- package/dist/taro-components/p-a972aa1d.system.js +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/package.json +4 -4
- package/types/Audio.d.ts +11 -11
- package/types/Button.d.ts +9 -9
- package/types/Canvas.d.ts +11 -11
- package/types/Checkbox.d.ts +8 -8
- package/types/CheckboxGroup.d.ts +3 -3
- package/types/CoverImage.d.ts +4 -4
- package/types/CoverView.d.ts +1 -1
- package/types/CustomWrapper.d.ts +1 -1
- package/types/Form.d.ts +4 -4
- package/types/Icon.d.ts +4 -4
- package/types/Image.d.ts +8 -8
- package/types/Input.d.ts +17 -17
- package/types/Label.d.ts +2 -2
- package/types/MovableArea.d.ts +2 -2
- package/types/MovableView.d.ts +18 -18
- package/types/NativeSlot.d.ts +1 -1
- package/types/Navigator.d.ts +8 -8
- package/types/Picker.d.ts +26 -26
- package/types/PickerView.d.ts +1 -1
- package/types/PickerViewColumn.d.ts +1 -1
- package/types/Progress.d.ts +13 -13
- package/types/Radio.d.ts +7 -7
- package/types/RadioGroup.d.ts +2 -2
- package/types/RichText.d.ts +5 -5
- package/types/ScrollView.d.ts +13 -13
- package/types/Slider.d.ts +13 -13
- package/types/Slot.d.ts +1 -1
- package/types/Swiper.d.ts +17 -17
- package/types/SwiperItem.d.ts +2 -2
- package/types/Switch.d.ts +7 -7
- package/types/Text.d.ts +4 -4
- package/types/Textarea.d.ts +13 -13
- package/types/Video.d.ts +30 -30
- package/types/View.d.ts +4 -4
- package/types/WebView.d.ts +4 -4
- package/dist/taro-components/p-07f2362b.entry.js +0 -1
- package/dist/taro-components/p-658b0091.system.entry.js +0 -1
package/types/Picker.d.ts
CHANGED
|
@@ -6,18 +6,18 @@ interface PickerStandardProps extends StandardProps, FormItemProps {
|
|
|
6
6
|
/**
|
|
7
7
|
* 选择器类型,默认是普通选择器
|
|
8
8
|
* @default "selector"
|
|
9
|
-
* @supported weapp, h5, rn
|
|
9
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
10
10
|
*/
|
|
11
11
|
mode?: keyof PickerStandardProps.Mode
|
|
12
12
|
/**
|
|
13
13
|
* 是否禁用
|
|
14
14
|
* @default false
|
|
15
|
-
* @supported weapp, h5, rn
|
|
15
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
16
16
|
*/
|
|
17
17
|
disabled?: boolean
|
|
18
18
|
/**
|
|
19
19
|
* 取消选择或点遮罩层收起 picker 时触发
|
|
20
|
-
* @supported weapp, h5, rn
|
|
20
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
21
21
|
*/
|
|
22
22
|
onCancel?: CommonEventFunction
|
|
23
23
|
}
|
|
@@ -46,18 +46,18 @@ interface PickerSelectorProps extends PickerStandardProps {
|
|
|
46
46
|
mode?: 'selector'
|
|
47
47
|
/**
|
|
48
48
|
* mode为 selector 或 multiSelector 时,range 有效
|
|
49
|
-
* @supported weapp, h5, rn
|
|
49
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
50
50
|
* @default []
|
|
51
51
|
*/
|
|
52
52
|
range: string[] | number[] | Record<string, any>[]
|
|
53
53
|
/**
|
|
54
54
|
* 当 range 是一个 Object Array 时,通过 rangeKey 来指定 Object 中 key 的值作为选择器显示内容
|
|
55
|
-
* @supported weapp, h5, rn
|
|
55
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
56
56
|
*/
|
|
57
57
|
rangeKey?: string
|
|
58
58
|
/**
|
|
59
59
|
* 表示选择了 range 中的第几个(下标从 0 开始)
|
|
60
|
-
* @supported weapp, h5, rn
|
|
60
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
61
61
|
* @default 0
|
|
62
62
|
*/
|
|
63
63
|
value?: number
|
|
@@ -79,12 +79,12 @@ interface PickerSelectorProps extends PickerStandardProps {
|
|
|
79
79
|
indicatorStyle?: StyleProp<ViewStyle>
|
|
80
80
|
/**
|
|
81
81
|
* value 改变时触发 change 事件
|
|
82
|
-
* @supported weapp, h5, rn
|
|
82
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
83
83
|
*/
|
|
84
84
|
onChange?: CommonEventFunction<PickerSelectorProps.ChangeEventDetail>
|
|
85
85
|
/**
|
|
86
86
|
* 用于替换组件内部文本
|
|
87
|
-
* @supported h5
|
|
87
|
+
* @supported h5, harmony_hybrid
|
|
88
88
|
*/
|
|
89
89
|
textProps?: PickerStandardProps.PickerText
|
|
90
90
|
}
|
|
@@ -100,18 +100,18 @@ interface PickerMultiSelectorProps extends PickerStandardProps {
|
|
|
100
100
|
mode: 'multiSelector'
|
|
101
101
|
/**
|
|
102
102
|
* mode为 selector 或 multiSelector 时,range 有效
|
|
103
|
-
* @supported weapp, h5, rn
|
|
103
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
104
104
|
* @default []
|
|
105
105
|
*/
|
|
106
106
|
range: Array<string[]> | Array<number[]> | Array<Record<string, any>[]>
|
|
107
107
|
/**
|
|
108
108
|
* 当 range 是一个 Object Array 时,通过 rangeKey 来指定 Object 中 key 的值作为选择器显示内容
|
|
109
|
-
* @supported weapp, h5, rn
|
|
109
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
110
110
|
*/
|
|
111
111
|
rangeKey?: string
|
|
112
112
|
/**
|
|
113
113
|
* 表示选择了 range 中的第几个(下标从 0 开始)
|
|
114
|
-
* @supported weapp, h5, rn
|
|
114
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
115
115
|
* @default []
|
|
116
116
|
*/
|
|
117
117
|
value: number[] | string[] | Record<string, any>[]
|
|
@@ -129,12 +129,12 @@ interface PickerMultiSelectorProps extends PickerStandardProps {
|
|
|
129
129
|
indicatorStyle?: StyleProp<ViewStyle>
|
|
130
130
|
/**
|
|
131
131
|
* 当 value 改变时触发 change 事件
|
|
132
|
-
* @supported weapp, h5, rn
|
|
132
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
133
133
|
*/
|
|
134
134
|
onChange: CommonEventFunction<PickerMultiSelectorProps.ChangeEventDetail>
|
|
135
135
|
/**
|
|
136
136
|
* 列改变时触发
|
|
137
|
-
* @supported weapp, h5, rn
|
|
137
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
138
138
|
*/
|
|
139
139
|
onColumnChange?: CommonEventFunction<PickerMultiSelectorProps.ColumnChangeEventDetail>
|
|
140
140
|
}
|
|
@@ -156,22 +156,22 @@ interface PickerTimeProps extends PickerStandardProps {
|
|
|
156
156
|
mode: 'time'
|
|
157
157
|
/**
|
|
158
158
|
* value 的值表示选择了 range 中的第几个(下标从 0 开始)
|
|
159
|
-
* @supported weapp, h5, rn
|
|
159
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
160
160
|
*/
|
|
161
161
|
value: string
|
|
162
162
|
/**
|
|
163
163
|
* 仅当 mode 为 "time" 或 "date" 时有效,表示有效时间范围的开始,字符串格式为"hh:mm"
|
|
164
|
-
* @supported weapp, h5, rn
|
|
164
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
165
165
|
*/
|
|
166
166
|
start?: string
|
|
167
167
|
/**
|
|
168
168
|
* 仅当 mode 为 "time" 或 "date" 时有效,表示有效时间范围的结束,字符串格式为"hh:mm"
|
|
169
|
-
* @supported weapp, h5, rn
|
|
169
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
170
170
|
*/
|
|
171
171
|
end?: string
|
|
172
172
|
/**
|
|
173
173
|
* value 改变时触发 change 事件
|
|
174
|
-
* @supported weapp, h5, rn
|
|
174
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
175
175
|
*/
|
|
176
176
|
onChange: CommonEventFunction<PickerTimeProps.ChangeEventDetail>
|
|
177
177
|
}
|
|
@@ -187,29 +187,29 @@ interface PickerDateProps extends PickerStandardProps {
|
|
|
187
187
|
mode: 'date'
|
|
188
188
|
/**
|
|
189
189
|
* 表示选中的日期,格式为"YYYY-MM-DD"
|
|
190
|
-
* @supported weapp, h5, rn
|
|
190
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
191
191
|
* @default 0
|
|
192
192
|
*/
|
|
193
193
|
value: string
|
|
194
194
|
/**
|
|
195
195
|
* 仅当 mode 为 "time" 或 "date" 时有效,表示有效时间范围的开始,字符串格式为"YYYY-MM-DD"
|
|
196
|
-
* @supported weapp, h5, rn
|
|
196
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
197
197
|
*/
|
|
198
198
|
start?: string
|
|
199
199
|
/**
|
|
200
200
|
* 仅当 mode 为 "time" 或 "date" 时有效,表示有效时间范围的结束,字符串格式为"YYYY-MM-DD"
|
|
201
|
-
* @supported weapp, h5, rn
|
|
201
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
202
202
|
*/
|
|
203
203
|
end?: string
|
|
204
204
|
/**
|
|
205
205
|
* 有效值 year, month, day,表示选择器的粒度
|
|
206
|
-
* @supported weapp, h5, rn
|
|
206
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
207
207
|
* @default "day"
|
|
208
208
|
*/
|
|
209
209
|
fields?: keyof PickerDateProps.Fields
|
|
210
210
|
/**
|
|
211
211
|
* value 改变时触发 change 事件
|
|
212
|
-
* @supported weapp, h5, rn
|
|
212
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
213
213
|
*/
|
|
214
214
|
onChange: CommonEventFunction<PickerDateProps.ChangeEventDetail>
|
|
215
215
|
}
|
|
@@ -233,13 +233,13 @@ interface PickerRegionProps extends PickerStandardProps {
|
|
|
233
233
|
mode: 'region'
|
|
234
234
|
/**
|
|
235
235
|
* 表示选中的省市区,默认选中每一列的第一个值
|
|
236
|
-
* @supported weapp, h5, rn
|
|
236
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
237
237
|
* @default []
|
|
238
238
|
*/
|
|
239
239
|
value?: string[]
|
|
240
240
|
/**
|
|
241
241
|
* 可为每一列的顶部添加一个自定义的项
|
|
242
|
-
* @supported weapp, h5, rn
|
|
242
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
243
243
|
*/
|
|
244
244
|
customItem?: string
|
|
245
245
|
/**
|
|
@@ -255,7 +255,7 @@ interface PickerRegionProps extends PickerStandardProps {
|
|
|
255
255
|
regionData?: PickerRegionProps.RegionData[]
|
|
256
256
|
/**
|
|
257
257
|
* value 改变时触发 change 事件
|
|
258
|
-
* @supported weapp, h5, rn
|
|
258
|
+
* @supported weapp, h5, rn, harmony_hybrid
|
|
259
259
|
*/
|
|
260
260
|
onChange: CommonEventFunction<PickerRegionProps.ChangeEventDetail>
|
|
261
261
|
}
|
|
@@ -287,7 +287,7 @@ declare namespace PickerRegionProps {
|
|
|
287
287
|
/**
|
|
288
288
|
* 从底部弹起的滚动选择器
|
|
289
289
|
* @classification forms
|
|
290
|
-
* @supported weapp, swan, alipay, tt, h5, rn, harmony
|
|
290
|
+
* @supported weapp, swan, alipay, tt, h5, rn, harmony, harmony_hybrid
|
|
291
291
|
* @example_react
|
|
292
292
|
* ```tsx
|
|
293
293
|
* export default class PagePicker extends Component {
|
package/types/PickerView.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ declare namespace PickerViewProps {
|
|
|
59
59
|
/** 嵌入页面的滚动选择器
|
|
60
60
|
* 其中只可放置 picker-view-column 组件,其它节点不会显示
|
|
61
61
|
* @classification forms
|
|
62
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
62
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
63
63
|
* @example_react
|
|
64
64
|
* ```tsx
|
|
65
65
|
* export default class Picks extends Component {
|
|
@@ -5,7 +5,7 @@ type PickerViewColumnProps = StandardProps
|
|
|
5
5
|
/** 滚动选择器子项
|
|
6
6
|
* 仅可放置于 `<PickerView />` 中,其孩子节点的高度会自动设置成与 picker-view 的选中框的高度一致
|
|
7
7
|
* @classification forms
|
|
8
|
-
* @supported weapp, swan, alipay, tt, h5, rn, harmony
|
|
8
|
+
* @supported weapp, swan, alipay, tt, h5, rn, harmony, harmony_hybrid
|
|
9
9
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/picker-view-column.html
|
|
10
10
|
*/
|
|
11
11
|
declare const PickerViewColumn: ComponentType<StandardProps>
|
package/types/Progress.d.ts
CHANGED
|
@@ -2,59 +2,59 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction } from './common'
|
|
3
3
|
interface ProgressProps extends StandardProps {
|
|
4
4
|
/** 百分比 0~100
|
|
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
|
percent?: number
|
|
8
8
|
/** 在进度条右侧显示百分比
|
|
9
9
|
* @default false
|
|
10
|
-
* @supported weapp, alipay, swan, qq, jd, h5, rn
|
|
10
|
+
* @supported weapp, alipay, swan, qq, jd, h5, rn, harmony_hybrid
|
|
11
11
|
*/
|
|
12
12
|
showInfo?: boolean
|
|
13
13
|
/** 圆角大小
|
|
14
14
|
* @default 0
|
|
15
|
-
* @supported weapp, swan, qq, jd, h5
|
|
15
|
+
* @supported weapp, swan, qq, jd, h5, harmony_hybrid
|
|
16
16
|
*/
|
|
17
17
|
borderRadius?: number | string
|
|
18
18
|
/** 右侧百分比字体大小
|
|
19
19
|
* @default 16
|
|
20
|
-
* @supported weapp, swan, qq, jd, h5
|
|
20
|
+
* @supported weapp, swan, qq, jd, h5, harmony_hybrid
|
|
21
21
|
*/
|
|
22
22
|
fontSize?: number | string
|
|
23
23
|
/** 进度条线的宽度
|
|
24
24
|
* @default 6
|
|
25
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
25
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
26
26
|
*/
|
|
27
27
|
strokeWidth?: number | string
|
|
28
28
|
/** 进度条颜色 (请使用 activeColor)
|
|
29
29
|
* @default "#09BB07"
|
|
30
|
-
* @supported weapp, swan, qq, jd, h5
|
|
30
|
+
* @supported weapp, swan, qq, jd, h5, harmony_hybrid
|
|
31
31
|
*/
|
|
32
32
|
color?: string
|
|
33
33
|
/** 已选择的进度条的颜色
|
|
34
34
|
* @default "#09BB07"
|
|
35
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
35
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
36
36
|
*/
|
|
37
37
|
activeColor?: string
|
|
38
38
|
/** 未选择的进度条的颜色
|
|
39
39
|
* @default "#EBEBEB"
|
|
40
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
40
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
41
41
|
*/
|
|
42
42
|
backgroundColor?: string
|
|
43
43
|
/** 进度条从左往右的动画
|
|
44
44
|
* @default false
|
|
45
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
45
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
46
46
|
*/
|
|
47
47
|
active?: boolean
|
|
48
48
|
/** backwards: 动画从头播
|
|
49
49
|
*
|
|
50
50
|
* forwards: 动画从上次结束点接着播
|
|
51
51
|
* @default backwards
|
|
52
|
-
* @supported weapp, swan, tt, qq, jd, h5, rn
|
|
52
|
+
* @supported weapp, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
53
53
|
*/
|
|
54
54
|
activeMode?: 'backwards' | 'forwards'
|
|
55
55
|
/** 进度增加 1% 所需毫秒数
|
|
56
56
|
* @default 30
|
|
57
|
-
* @supported weapp, swan, tt, jd, h5
|
|
57
|
+
* @supported weapp, swan, tt, jd, h5, harmony_hybrid
|
|
58
58
|
*/
|
|
59
59
|
duration?: number
|
|
60
60
|
/** 无障碍访问,(属性)元素的额外描述
|
|
@@ -62,13 +62,13 @@ interface ProgressProps extends StandardProps {
|
|
|
62
62
|
*/
|
|
63
63
|
ariaLabel?: string
|
|
64
64
|
/** 动画完成事件
|
|
65
|
-
* @supported weapp, tt, qq, jd, h5
|
|
65
|
+
* @supported weapp, tt, qq, jd, h5, harmony_hybrid
|
|
66
66
|
*/
|
|
67
67
|
onActiveEnd?: CommonEventFunction
|
|
68
68
|
}
|
|
69
69
|
/** 进度条。组件属性的长度单位默认为 px
|
|
70
70
|
* @classification base
|
|
71
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
71
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
72
72
|
* @example_react
|
|
73
73
|
* ```tsx
|
|
74
74
|
* export default class PageView extends Component {
|
package/types/Radio.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
3
3
|
interface RadioProps extends StandardProps {
|
|
4
4
|
/** `<Radio/>` 标识。当该`<Radio/>` 选中时,`<RadioGroup/>`的 change 事件会携带`<Radio/>`的 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
9
|
* @default false
|
|
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
|
checked?: boolean
|
|
13
13
|
/** 设置在 React 非受控状态下,当前是否选中
|
|
@@ -16,7 +16,7 @@ interface RadioProps extends StandardProps {
|
|
|
16
16
|
defaultChecked?: boolean
|
|
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
|
disabled?: boolean
|
|
22
22
|
/** Radio 的颜色,同 css 的 color
|
|
@@ -26,11 +26,11 @@ interface RadioProps extends StandardProps {
|
|
|
26
26
|
color?: string
|
|
27
27
|
/**
|
|
28
28
|
* Radio 的名字
|
|
29
|
-
* @supported h5, harmony
|
|
29
|
+
* @supported h5, harmony, harmony_hybrid
|
|
30
30
|
*/
|
|
31
31
|
name?: string
|
|
32
32
|
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
33
|
-
* @supported h5
|
|
33
|
+
* @supported h5, harmony_hybrid
|
|
34
34
|
*/
|
|
35
35
|
nativeProps?: Record<string, unknown>
|
|
36
36
|
/** 无障碍访问,(属性)元素的额外描述
|
|
@@ -38,7 +38,7 @@ interface RadioProps extends StandardProps {
|
|
|
38
38
|
*/
|
|
39
39
|
ariaLabel?: string
|
|
40
40
|
/** <radio-group/> 中的选中项发生变化时触发 change 事件
|
|
41
|
-
* @supported h5, rn
|
|
41
|
+
* @supported h5, rn, harmony_hybrid
|
|
42
42
|
*/
|
|
43
43
|
onChange?: CommonEventFunction<{
|
|
44
44
|
value?: string
|
|
@@ -46,7 +46,7 @@ interface RadioProps extends StandardProps {
|
|
|
46
46
|
}
|
|
47
47
|
/** 单选项目
|
|
48
48
|
* @classification forms
|
|
49
|
-
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony
|
|
49
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony, harmony_hybrid
|
|
50
50
|
* @example_react
|
|
51
51
|
* ```tsx
|
|
52
52
|
* export default class PageRadio extends Component {
|
package/types/RadioGroup.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ interface RadioGroupProps extends StandardProps, FormItemProps {
|
|
|
6
6
|
*/
|
|
7
7
|
name?: string
|
|
8
8
|
/** RadioGroup 中选中项发生改变时触发 change 事件,detail = {value:[选中的radio的value的数组]}
|
|
9
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5
|
|
9
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
|
|
10
10
|
*/
|
|
11
11
|
onChange?: CommonEventFunction
|
|
12
12
|
}
|
|
@@ -17,7 +17,7 @@ declare namespace RadioGroupProps {
|
|
|
17
17
|
}
|
|
18
18
|
/** 单项选择器,内部由多个 Radio 组成。
|
|
19
19
|
* @classification forms
|
|
20
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
20
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
21
21
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/radio-group.html
|
|
22
22
|
*/
|
|
23
23
|
declare const RadioGroup: ComponentType<RadioGroupProps>
|
package/types/RichText.d.ts
CHANGED
|
@@ -3,20 +3,20 @@ import { CommonEventFunction, StandardProps } from './common'
|
|
|
3
3
|
interface RichTextProps extends StandardProps {
|
|
4
4
|
/** 文本是否可选,该属性会使节点显示为 block
|
|
5
5
|
* @default false
|
|
6
|
-
* @supported weapp, h5
|
|
6
|
+
* @supported weapp, h5, harmony_hybrid
|
|
7
7
|
*/
|
|
8
8
|
userSelect?: boolean
|
|
9
9
|
/** 节点列表/ HTML String
|
|
10
|
-
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony
|
|
10
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony, harmony_hybrid
|
|
11
11
|
*/
|
|
12
12
|
nodes?: Nodes
|
|
13
13
|
/** 显示连续空格
|
|
14
|
-
* @supported weapp, alipay, tt, qq, h5, rn
|
|
14
|
+
* @supported weapp, alipay, tt, qq, h5, rn, harmony_hybrid
|
|
15
15
|
*/
|
|
16
16
|
space?: keyof RichTextProps.TSpace
|
|
17
17
|
/** 富文本是否可以长按选中,可用于复制,粘贴,长按搜索等场景
|
|
18
18
|
* @default false(基础库 3.150.1 以前版本)true(基础库 3.150.1 及以后版本)
|
|
19
|
-
* @supported swan, h5
|
|
19
|
+
* @supported swan, h5, harmony_hybrid
|
|
20
20
|
*/
|
|
21
21
|
selectable?: string
|
|
22
22
|
/** 阻止长按图片时弹起默认菜单(将该属性设置为image-menu-prevent或image-menu-prevent="true"),只在初始化时有效,不能动态变更;若不想阻止弹起默认菜单,则不需要设置此属性
|
|
@@ -99,7 +99,7 @@ declare namespace RichTextProps {
|
|
|
99
99
|
}
|
|
100
100
|
/** 富文本
|
|
101
101
|
* @classification base
|
|
102
|
-
* @supported weapp, swan, alipay, tt, h5, rn, harmony
|
|
102
|
+
* @supported weapp, swan, alipay, tt, h5, rn, harmony, harmony_hybrid
|
|
103
103
|
* @example_react
|
|
104
104
|
* ```tsx
|
|
105
105
|
* class App extends Components {
|
package/types/ScrollView.d.ts
CHANGED
|
@@ -3,40 +3,40 @@ import { BaseEventOrigFunction, CommonEventFunction, StandardProps } from './com
|
|
|
3
3
|
interface ScrollViewProps extends StandardProps {
|
|
4
4
|
/** 允许横向滚动
|
|
5
5
|
* @default false
|
|
6
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
6
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
7
7
|
* @rn 二选一
|
|
8
8
|
*/
|
|
9
9
|
scrollX?: boolean
|
|
10
10
|
/** 允许纵向滚动
|
|
11
11
|
* @default false
|
|
12
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
12
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
13
13
|
* @rn 二选一
|
|
14
14
|
*/
|
|
15
15
|
scrollY?: boolean
|
|
16
16
|
/** 距顶部/左边多远时(单位px),触发 scrolltoupper 事件
|
|
17
17
|
* @default 50
|
|
18
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
18
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
19
19
|
*/
|
|
20
20
|
upperThreshold?: number
|
|
21
21
|
/** 距底部/右边多远时(单位px),触发 scrolltolower 事件
|
|
22
22
|
* @default 50
|
|
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
|
lowerThreshold?: number
|
|
26
26
|
/** 设置竖向滚动条位置
|
|
27
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
27
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
28
28
|
*/
|
|
29
29
|
scrollTop?: number
|
|
30
30
|
/** 设置横向滚动条位置
|
|
31
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
31
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
32
32
|
*/
|
|
33
33
|
scrollLeft?: number
|
|
34
34
|
/** 值应为某子元素id(id不能以数字开头)。设置哪个方向可滚动,则在哪个方向滚动到该元素
|
|
35
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5
|
|
35
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
|
|
36
36
|
*/
|
|
37
37
|
scrollIntoView?: string
|
|
38
38
|
/** 在设置滚动条位置时使用动画过渡
|
|
39
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
39
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
40
40
|
* @default false
|
|
41
41
|
*/
|
|
42
42
|
scrollWithAnimation?: boolean
|
|
@@ -172,7 +172,7 @@ interface ScrollViewProps extends StandardProps {
|
|
|
172
172
|
* center - 目标节点显示在视口中间
|
|
173
173
|
* end - 目标节点显示在视口结束处
|
|
174
174
|
* nearest - 目标节点在就近的视口边缘显示,若节点已在视口内则不触发滚动
|
|
175
|
-
* @supported weapp, h5
|
|
175
|
+
* @supported weapp, h5, harmony_hybrid
|
|
176
176
|
* @default 'start'
|
|
177
177
|
*/
|
|
178
178
|
scrollIntoViewAlignment?: 'start' | 'center' | 'end' | 'nearest'
|
|
@@ -212,15 +212,15 @@ interface ScrollViewProps extends StandardProps {
|
|
|
212
212
|
*/
|
|
213
213
|
refresherTwoLevelPinned?: boolean
|
|
214
214
|
/** 滚动到顶部/左边,会触发 scrolltoupper 事件
|
|
215
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
215
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
216
216
|
*/
|
|
217
217
|
onScrollToUpper?: CommonEventFunction
|
|
218
218
|
/** 滚动到底部/右边,会触发 scrolltolower 事件
|
|
219
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
219
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
220
220
|
*/
|
|
221
221
|
onScrollToLower?: CommonEventFunction
|
|
222
222
|
/** 滚动时触发
|
|
223
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
223
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
224
224
|
*/
|
|
225
225
|
onScroll?: BaseEventOrigFunction<ScrollViewProps.onScrollDetail>
|
|
226
226
|
/** 滚动开始事件
|
|
@@ -337,7 +337,7 @@ declare namespace ScrollViewProps {
|
|
|
337
337
|
* H5 中 ScrollView 组件是通过一个高度(或宽度)固定的容器内部滚动来实现的,因此务必正确的设置容器的高度。例如: 如果 ScrollView 的高度将 body 撑开,就会同时存在两个滚动条(body 下的滚动条,以及 ScrollView 的滚动条)。
|
|
338
338
|
* 微信小程序 中 ScrollView 组件如果设置 scrollX 横向滚动时,并且子元素为多个时(单个子元素时设置固定宽度则可以正常横向滚动),需要通过 WXSS 设置 `white-space: nowrap` 来保证元素不换行,并对 ScrollView 内部元素设置 `display: inline-block` 来使其能够横向滚动。
|
|
339
339
|
* @classification viewContainer
|
|
340
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
340
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
341
341
|
* @example_react
|
|
342
342
|
* ```tsx
|
|
343
343
|
* export default class PageView extends Component {
|
package/types/Slider.d.ts
CHANGED
|
@@ -3,27 +3,27 @@ import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
|
3
3
|
interface SliderProps extends StandardProps, FormItemProps {
|
|
4
4
|
/** 最小值
|
|
5
5
|
* @default 0
|
|
6
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
6
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
7
7
|
*/
|
|
8
8
|
min?: number
|
|
9
9
|
/** 最大值
|
|
10
10
|
* @default 100
|
|
11
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
11
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
12
12
|
*/
|
|
13
13
|
max?: number
|
|
14
14
|
/** 步长,取值必须大于 0,并且可被(max - min)整除
|
|
15
15
|
* @default 1
|
|
16
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
16
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
17
17
|
*/
|
|
18
18
|
step?: number
|
|
19
19
|
/** 是否禁用
|
|
20
20
|
* @default false
|
|
21
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
21
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
22
22
|
*/
|
|
23
23
|
disabled?: boolean
|
|
24
24
|
/** 当前取值
|
|
25
25
|
* @default 0
|
|
26
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
26
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
27
27
|
*/
|
|
28
28
|
value?: number
|
|
29
29
|
/** 设置 React 非受控状态下的初始取值
|
|
@@ -42,27 +42,27 @@ interface SliderProps extends StandardProps, FormItemProps {
|
|
|
42
42
|
selectedColor?: string
|
|
43
43
|
/** 已选择的颜色
|
|
44
44
|
* @default "#1aad19"
|
|
45
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
45
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
46
46
|
*/
|
|
47
47
|
activeColor?: string
|
|
48
48
|
/** 背景条的颜色
|
|
49
49
|
* @default "#e9e9e9"
|
|
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
|
backgroundColor?: string
|
|
53
53
|
/** 滑块的大小,取值范围为 12 - 28
|
|
54
54
|
* @default 28
|
|
55
|
-
* @supported weapp, swan, tt, qq, jd, h5
|
|
55
|
+
* @supported weapp, swan, tt, qq, jd, h5, harmony_hybrid
|
|
56
56
|
*/
|
|
57
57
|
blockSize?: number
|
|
58
58
|
/** 滑块的颜色
|
|
59
59
|
* @default "#ffffff"
|
|
60
|
-
* @supported weapp, swan, tt, qq, jd, h5, rn
|
|
60
|
+
* @supported weapp, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
61
61
|
*/
|
|
62
62
|
blockColor?: string
|
|
63
63
|
/** 是否显示当前 value
|
|
64
64
|
* @default false
|
|
65
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
65
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
66
66
|
*/
|
|
67
67
|
showValue?: boolean
|
|
68
68
|
/** 组件名字,用于表单提交获取数据。
|
|
@@ -88,11 +88,11 @@ interface SliderProps extends StandardProps, FormItemProps {
|
|
|
88
88
|
*/
|
|
89
89
|
ariaLabel?: string
|
|
90
90
|
/** 完成一次拖动后触发的事件
|
|
91
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
91
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
92
92
|
*/
|
|
93
93
|
onChange?: CommonEventFunction<SliderProps.onChangeEventDetail>
|
|
94
94
|
/** 拖动过程中触发的事件
|
|
95
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
95
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
96
96
|
*/
|
|
97
97
|
onChanging?: CommonEventFunction<SliderProps.onChangeEventDetail>
|
|
98
98
|
}
|
|
@@ -103,7 +103,7 @@ declare namespace SliderProps {
|
|
|
103
103
|
}
|
|
104
104
|
/** 滑动选择器
|
|
105
105
|
* @classification forms
|
|
106
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
106
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
|
|
107
107
|
* @example_react
|
|
108
108
|
* ```tsx
|
|
109
109
|
* export default class PageView extends Component {
|
package/types/Slot.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ interface SlotProps extends StandardProps {
|
|
|
17
17
|
|
|
18
18
|
/** slot 插槽
|
|
19
19
|
* @classification viewContainer
|
|
20
|
-
* @supported weapp, swan, alipay, tt, jd, qq, harmony, h5
|
|
20
|
+
* @supported weapp, swan, alipay, tt, jd, qq, harmony, h5, harmony_hybrid
|
|
21
21
|
* @example
|
|
22
22
|
* ```tsx
|
|
23
23
|
* import { Slot, View, Text } from '@tarojs/components'
|