@tarojs/components 4.2.1-beta.1 → 4.2.1-beta.2

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 (58) hide show
  1. package/dist/cjs/{image-32205a1d.js → image-315b9040.js} +4 -8
  2. package/dist/cjs/index.cjs.js +1 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/taro-components.cjs.js +1 -1
  5. package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
  6. package/dist/collection/components/image/image.js +3 -8
  7. package/dist/collection/components/image/style/index.css +1 -1
  8. package/dist/components/taro-image-core.js +4 -9
  9. package/dist/esm/{image-9c1a61f3.js → image-a2d81773.js} +4 -8
  10. package/dist/esm/index.js +1 -1
  11. package/dist/esm/loader.js +1 -1
  12. package/dist/esm/taro-components.js +1 -1
  13. package/dist/esm/taro-image-core.entry.js +1 -1
  14. package/dist/hydrate/index.js +4 -9
  15. package/dist/taro-components/index.esm.js +1 -1
  16. package/dist/taro-components/p-3e521c50.entry.js +1 -0
  17. package/dist/taro-components/p-b28231cc.js +1 -0
  18. package/dist/taro-components/taro-components.esm.js +1 -1
  19. package/dist/types/components/image/image.d.ts +0 -1
  20. package/package.json +5 -5
  21. package/types/Audio.d.ts +13 -13
  22. package/types/Button.d.ts +50 -16
  23. package/types/Camera.d.ts +7 -7
  24. package/types/Canvas.d.ts +10 -10
  25. package/types/Checkbox.d.ts +5 -5
  26. package/types/CheckboxGroup.d.ts +2 -2
  27. package/types/CoverImage.d.ts +42 -4
  28. package/types/CoverView.d.ts +21 -1
  29. package/types/CustomWrapper.d.ts +1 -1
  30. package/types/Editor.d.ts +20 -8
  31. package/types/Form.d.ts +3 -3
  32. package/types/Icon.d.ts +4 -4
  33. package/types/Image.d.ts +6 -6
  34. package/types/Input.d.ts +16 -16
  35. package/types/Label.d.ts +2 -2
  36. package/types/Map.d.ts +21 -17
  37. package/types/MovableArea.d.ts +2 -2
  38. package/types/MovableView.d.ts +16 -16
  39. package/types/Navigator.d.ts +8 -8
  40. package/types/Picker.d.ts +26 -26
  41. package/types/PickerView.d.ts +7 -7
  42. package/types/PickerViewColumn.d.ts +1 -1
  43. package/types/Progress.d.ts +13 -13
  44. package/types/Radio.d.ts +5 -5
  45. package/types/RadioGroup.d.ts +2 -2
  46. package/types/RichText.d.ts +4 -4
  47. package/types/ScrollView.d.ts +16 -16
  48. package/types/Slider.d.ts +14 -14
  49. package/types/Swiper.d.ts +14 -14
  50. package/types/SwiperItem.d.ts +2 -2
  51. package/types/Switch.d.ts +7 -7
  52. package/types/Text.d.ts +4 -4
  53. package/types/Textarea.d.ts +13 -13
  54. package/types/Video.d.ts +37 -37
  55. package/types/View.d.ts +5 -5
  56. package/types/WebView.d.ts +4 -4
  57. package/dist/taro-components/p-acf31ef0.js +0 -1
  58. package/dist/taro-components/p-eeec4f43.entry.js +0 -1
@@ -3,40 +3,40 @@ 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, harmony_hybrid
6
+ * @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid, ascf
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, harmony_hybrid
11
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
12
12
  */
13
13
  inertia?: boolean
14
14
  /** 超过可移动区域后,movable-view 是否还可以移动
15
15
  * @default false
16
- * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
16
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
17
17
  */
18
18
  outOfBounds?: boolean
19
19
  /** 定义 x 轴方向的偏移,如果 x 的值不在可移动范围内,会自动移动到可移动范围;改变 x 的值会触发动画
20
- * @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid
20
+ * @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid, ascf
21
21
  */
22
22
  x?: number | string
23
23
  /** 定义 y 轴方向的偏移,如果 y 的值不在可移动范围内,会自动移动到可移动范围;改变 y 的值会触发动画
24
- * @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid
24
+ * @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid, ascf
25
25
  */
26
26
  y?: number | string
27
27
  /** 阻尼系数,用于控制x或y改变时的动画和过界回弹的动画,值越大移动越快
28
28
  * @default 20
29
- * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
29
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
30
30
  */
31
31
  damping?: number
32
32
  /** 摩擦系数,用于控制惯性滑动的动画,值越大摩擦力越大,滑动越快停止;必须大于 0,否则会被设置成默认值
33
33
  * @default 2
34
- * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
34
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
35
35
  */
36
36
  friction?: number
37
37
  /** 是否禁用
38
38
  * @default false
39
- * @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid
39
+ * @supported weapp, alipay, swan, tt, qq, h5, rn, harmony_hybrid, ascf
40
40
  */
41
41
  disabled?: boolean
42
42
  /** 是否支持双指缩放,默认缩放手势生效区域是在 movable-view 内
@@ -46,26 +46,26 @@ interface MovableViewProps extends Omit<StandardProps, 'animation'> {
46
46
  scale?: boolean
47
47
  /** 定义缩放倍数最小值
48
48
  * @default 0.5
49
- * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
49
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
50
50
  */
51
51
  scaleMin?: number
52
52
  /** 定义缩放倍数最大值
53
53
  * @default 10
54
- * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
54
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
55
55
  */
56
56
  scaleMax?: number
57
57
  /** 定义缩放倍数,取值范围为 0.5 - 10
58
58
  * @default 1
59
- * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
59
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
60
60
  */
61
61
  scaleValue?: number
62
62
  /** 是否使用动画
63
63
  * @default true
64
- * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
64
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
65
65
  */
66
66
  animation?: boolean
67
67
  /** 拖动过程中触发的事件
68
- * @supported weapp, alipay, swan, tt, qq
68
+ * @supported weapp, alipay, swan, tt, qq, ascf
69
69
  */
70
70
  onChange?: CommonEventFunction<MovableViewProps.onChangeEventDetail>
71
71
  /** 拖动结束触发的事件
@@ -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, harmony_hybrid
84
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid, ascf
85
85
  */
86
86
  onScale?: CommonEventFunction<MovableViewProps.onScaleEventDetail>
87
87
  /** 触摸动作开始,事件会向父节点传递。
@@ -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, harmony_hybrid
105
+ * @supported weapp, swan, tt, h5, harmony_hybrid, ascf
106
106
  */
107
107
  onHTouchMove?: TouchEventFunction
108
108
  /** 初次手指触摸后移动为纵向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
109
- * @supported weapp, swan, tt, h5, harmony_hybrid
109
+ * @supported weapp, swan, tt, h5, harmony_hybrid, ascf
110
110
  */
111
111
  onVTouchMove?: TouchEventFunction
112
112
  /** 触摸移动事件,事件仅作用于组件,不向父节点传递。
@@ -3,20 +3,20 @@ import { StandardProps, CommonEventFunction } from './common'
3
3
  interface NavigatorProps extends StandardProps {
4
4
  /** 在哪个目标上发生跳转,默认当前小程序
5
5
  * @default "self"
6
- * @supported weapp, swan, qq
6
+ * @supported weapp, swan, qq, ascf
7
7
  */
8
8
  target?: keyof NavigatorProps.Target
9
9
  /** 当前小程序内的跳转链接
10
- * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
10
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid, ascf
11
11
  */
12
12
  url?: string
13
13
  /** 跳转方式
14
14
  * @default "navigate"
15
- * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
15
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid, ascf
16
16
  */
17
17
  openType?: keyof NavigatorProps.OpenType
18
18
  /** 当 open-type 为 'navigateBack' 时有效,表示回退的层数
19
- * @supported weapp, swan, tt, qq, jd, h5, harmony_hybrid
19
+ * @supported weapp, swan, tt, qq, jd, h5, harmony_hybrid, ascf
20
20
  */
21
21
  delta?: number
22
22
  /** 当 `target="miniProgram"` 时有效,要打开的小程序 appId
@@ -37,22 +37,22 @@ 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, harmony_hybrid
40
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid, ascf
41
41
  */
42
42
  hoverClass?: string
43
43
  /** 指定是否阻止本节点的祖先节点出现点击态
44
44
  * @default false
45
- * @supported weapp, swan, tt, qq, jd
45
+ * @supported weapp, swan, tt, qq, jd, ascf
46
46
  */
47
47
  hoverStopPropagation?: boolean
48
48
  /** 按住后多久出现点击态,单位毫秒
49
49
  * @default 50
50
- * @supported weapp, alipay, swan, tt, qq, jd
50
+ * @supported weapp, alipay, swan, tt, qq, jd, ascf
51
51
  */
52
52
  hoverStartTime?: number
53
53
  /** 手指松开后点击态保留时间,单位毫秒
54
54
  * @default 600
55
- * @supported weapp, alipay, swan, tt, qq, jd
55
+ * @supported weapp, alipay, swan, tt, qq, jd, ascf
56
56
  */
57
57
  hoverStayTime?: number
58
58
  /** 当target="miniProgram"时有效,当传递该参数后,可以不传 app-id 和 path。链接可以通过【小程序菜单】->【复制链接】获取。
package/types/Picker.d.ts CHANGED
@@ -11,18 +11,18 @@ interface PickerStandardProps extends StandardProps, FormItemProps {
11
11
  /**
12
12
  * 选择器类型,默认是普通选择器
13
13
  * @default "selector"
14
- * @supported weapp, h5, rn, harmony, harmony_hybrid
14
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
15
15
  */
16
16
  mode?: keyof PickerStandardProps.Mode
17
17
  /**
18
18
  * 是否禁用
19
19
  * @default false
20
- * @supported weapp, h5, rn, harmony_hybrid
20
+ * @supported weapp, h5, rn, harmony_hybrid, ascf
21
21
  */
22
22
  disabled?: boolean
23
23
  /**
24
24
  * 取消选择或点遮罩层收起 picker 时触发
25
- * @supported weapp, h5, rn, harmony, harmony_hybrid
25
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
26
26
  */
27
27
  onCancel?: CommonEventFunction
28
28
  /**
@@ -56,23 +56,23 @@ interface PickerSelectorProps extends PickerStandardProps {
56
56
  mode?: 'selector'
57
57
  /**
58
58
  * mode为 selector 或 multiSelector 时,range 有效
59
- * @supported weapp, h5, rn, harmony, harmony_hybrid
59
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
60
60
  * @default []
61
61
  */
62
62
  range: string[] | number[] | Record<string, any>[]
63
63
  /**
64
64
  * 当 range 是一个 Object Array 时,通过 rangeKey 来指定 Object 中 key 的值作为选择器显示内容
65
- * @supported weapp, h5, rn, harmony, harmony_hybrid
65
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
66
66
  */
67
67
  rangeKey?: string
68
68
  /**
69
69
  * 表示选择了 range 中的第几个(下标从 0 开始)
70
- * @supported weapp, h5, rn, harmony, harmony_hybrid
70
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
71
71
  * @default 0
72
72
  */
73
73
  value?: number
74
74
  /** 设置 React 非受控状态下的初始取值
75
- * @supported weapp, h5, rn, harmony_hybrid
75
+ * @supported weapp, h5, rn, harmony_hybrid, ascf
76
76
  */
77
77
  defaultValue?: number
78
78
  /**
@@ -105,18 +105,18 @@ interface PickerMultiSelectorProps extends PickerStandardProps {
105
105
  mode: 'multiSelector'
106
106
  /**
107
107
  * mode为 selector 或 multiSelector 时,range 有效
108
- * @supported weapp, h5, rn, harmony, harmony_hybrid
108
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
109
109
  * @default []
110
110
  */
111
111
  range: Array<string[]> | Array<number[]> | Array<Record<string, any>[]>
112
112
  /**
113
113
  * 当 range 是一个 Object Array 时,通过 rangeKey 来指定 Object 中 key 的值作为选择器显示内容
114
- * @supported weapp, h5, rn, harmony, harmony_hybrid
114
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
115
115
  */
116
116
  rangeKey?: string
117
117
  /**
118
118
  * 表示选择了 range 中的第几个(下标从 0 开始)
119
- * @supported weapp, h5, rn, harmony, harmony_hybrid
119
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
120
120
  * @default []
121
121
  */
122
122
  value: number[] | string[] | Record<string, any>[]
@@ -134,12 +134,12 @@ interface PickerMultiSelectorProps extends PickerStandardProps {
134
134
  indicatorStyle?: StyleProp<ViewStyle>
135
135
  /**
136
136
  * 当 value 改变时触发 change 事件
137
- * @supported weapp, h5, rn, harmony, harmony_hybrid
137
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
138
138
  */
139
139
  onChange: CommonEventFunction<PickerMultiSelectorProps.ChangeEventDetail>
140
140
  /**
141
141
  * 列改变时触发
142
- * @supported weapp, h5, rn, harmony, harmony_hybrid
142
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
143
143
  */
144
144
  onColumnChange?: CommonEventFunction<PickerMultiSelectorProps.ColumnChangeEventDetail>
145
145
  }
@@ -161,26 +161,26 @@ interface PickerTimeProps extends PickerStandardProps {
161
161
  mode: 'time'
162
162
  /**
163
163
  * value 的值表示选择了 range 中的第几个(下标从 0 开始)
164
- * @supported weapp, h5, rn, harmony, harmony_hybrid
164
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
165
165
  */
166
166
  value?: string
167
167
  /** 设置 React 非受控状态下的初始取值
168
- * @supported weapp, h5, rn
168
+ * @supported weapp, h5, rn, ascf
169
169
  */
170
170
  defaultValue?: string
171
171
  /**
172
172
  * 仅当 mode 为 "time" 或 "date" 时有效,表示有效时间范围的开始,字符串格式为"hh:mm"
173
- * @supported weapp, h5, rn, harmony, harmony_hybrid
173
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
174
174
  */
175
175
  start?: string
176
176
  /**
177
177
  * 仅当 mode 为 "time" 或 "date" 时有效,表示有效时间范围的结束,字符串格式为"hh:mm"
178
- * @supported weapp, h5, rn, harmony, harmony_hybrid
178
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
179
179
  */
180
180
  end?: string
181
181
  /**
182
182
  * value 改变时触发 change 事件
183
- * @supported weapp, h5, rn, harmony, harmony_hybrid
183
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
184
184
  */
185
185
  onChange: CommonEventFunction<PickerTimeProps.ChangeEventDetail>
186
186
  }
@@ -196,22 +196,22 @@ interface PickerDateProps extends PickerStandardProps {
196
196
  mode: 'date'
197
197
  /**
198
198
  * 表示选中的日期,格式为"YYYY-MM-DD"
199
- * @supported weapp, h5, rn, harmony, harmony_hybrid
199
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
200
200
  * @default 0
201
201
  */
202
202
  value: string
203
203
  /** 设置 React 非受控状态下的初始取值
204
- * @supported weapp, h5, rn
204
+ * @supported weapp, h5, rn, ascf
205
205
  */
206
206
  defaultValue?: string
207
207
  /**
208
208
  * 仅当 mode 为 "time" 或 "date" 时有效,表示有效时间范围的开始,字符串格式为"YYYY-MM-DD"
209
- * @supported weapp, h5, rn, harmony, harmony_hybrid
209
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
210
210
  */
211
211
  start?: string
212
212
  /**
213
213
  * 仅当 mode 为 "time" 或 "date" 时有效,表示有效时间范围的结束,字符串格式为"YYYY-MM-DD"
214
- * @supported weapp, h5, rn, harmony, harmony_hybrid
214
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
215
215
  */
216
216
  end?: string
217
217
  /**
@@ -222,7 +222,7 @@ interface PickerDateProps extends PickerStandardProps {
222
222
  fields?: keyof PickerDateProps.Fields
223
223
  /**
224
224
  * value 改变时触发 change 事件
225
- * @supported weapp, h5, rn, harmony, harmony_hybrid
225
+ * @supported weapp, h5, rn, harmony, harmony_hybrid, ascf
226
226
  */
227
227
  onChange: CommonEventFunction<PickerDateProps.ChangeEventDetail>
228
228
  }
@@ -246,12 +246,12 @@ interface PickerRegionProps extends PickerStandardProps {
246
246
  mode: 'region'
247
247
  /**
248
248
  * 表示选中的省市区,默认选中每一列的第一个值
249
- * @supported weapp, h5, rn, harmony_hybrid
249
+ * @supported weapp, h5, rn, harmony_hybrid, ascf
250
250
  * @default []
251
251
  */
252
252
  value?: string[]
253
253
  /** 设置 React 非受控状态下的初始取值
254
- * @supported weapp, h5, rn
254
+ * @supported weapp, h5, rn, ascf
255
255
  */
256
256
  defaultValue?: string[]
257
257
  /**
@@ -272,7 +272,7 @@ interface PickerRegionProps extends PickerStandardProps {
272
272
  regionData?: PickerRegionProps.RegionData[]
273
273
  /**
274
274
  * value 改变时触发 change 事件
275
- * @supported weapp, h5, rn, harmony_hybrid
275
+ * @supported weapp, h5, rn, harmony_hybrid, ascf
276
276
  */
277
277
  onChange: CommonEventFunction<PickerRegionProps.ChangeEventDetail>
278
278
  }
@@ -305,7 +305,7 @@ declare namespace PickerRegionProps {
305
305
  /**
306
306
  * 从底部弹起的滚动选择器
307
307
  * @classification forms
308
- * @supported weapp, swan, alipay, tt, h5, rn, harmony, harmony_hybrid
308
+ * @supported weapp, swan, alipay, tt, h5, rn, harmony, harmony_hybrid, ascf
309
309
  * @example_react
310
310
  * ```tsx
311
311
  * export default class PagePicker extends Component {
@@ -2,16 +2,16 @@ import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction } from './common'
3
3
  interface PickerViewProps extends StandardProps {
4
4
  /** 数组中的数字依次表示 picker-view 内的 picker-view-column 选择的第几项(下标从 0 开始),数字大于 picker-view-column 可选项长度时,选择最后一项。
5
- * @supported weapp, alipay, swan, tt, qq, jd, rn
5
+ * @supported weapp, alipay, swan, tt, qq, jd, rn, ascf
6
6
  */
7
7
  value?: number[]
8
8
  /** 设置 React 非受控状态下的初始取值
9
- * @supported weapp, alipay, swan, tt, qq, jd, rn
9
+ * @supported weapp, alipay, swan, tt, qq, jd, rn, ascf
10
10
  * @unique
11
11
  */
12
12
  defaultValue?: number[]
13
13
  /** 设置选择器中间选中框的样式
14
- * @supported weapp, alipay, swan, tt, qq, jd, rn
14
+ * @supported weapp, alipay, swan, tt, qq, jd, rn, ascf
15
15
  */
16
16
  indicatorStyle?: string
17
17
  /** 设置选择器中间选中框的类名
@@ -40,15 +40,15 @@ interface PickerViewProps extends StandardProps {
40
40
  */
41
41
  ariaLabel?: string
42
42
  /** 当滚动选择,value 改变时触发 change 事件,event.detail = {value: value};value为数组,表示 picker-view 内的 picker-view-column 当前选择的是第几项(下标从 0 开始)
43
- * @supported weapp, alipay, swan, tt, qq, jd, rn
43
+ * @supported weapp, alipay, swan, tt, qq, jd, rn, ascf
44
44
  */
45
45
  onChange?: CommonEventFunction<PickerViewProps.onChangeEventDetail>
46
46
  /** 当滚动选择开始时候触发事件
47
- * @supported weapp, alipay, tt, qq
47
+ * @supported weapp, alipay, tt, qq, ascf
48
48
  */
49
49
  onPickStart?: CommonEventFunction
50
50
  /** 当滚动选择结束时候触发事件
51
- * @supported weapp, alipay, tt, qq
51
+ * @supported weapp, alipay, tt, qq, ascf
52
52
  */
53
53
  onPickEnd?: CommonEventFunction
54
54
  }
@@ -60,7 +60,7 @@ declare namespace PickerViewProps {
60
60
  /** 嵌入页面的滚动选择器
61
61
  * 其中只可放置 picker-view-column 组件,其它节点不会显示
62
62
  * @classification forms
63
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
63
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
64
64
  * @example_react
65
65
  * ```tsx
66
66
  * 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_hybrid
8
+ * @supported weapp, swan, alipay, tt, h5, rn, harmony_hybrid, ascf
9
9
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/picker-view-column.html
10
10
  */
11
11
  declare const PickerViewColumn: ComponentType<StandardProps>
@@ -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, harmony_hybrid
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
6
6
  */
7
7
  percent?: number
8
8
  /** 在进度条右侧显示百分比
9
9
  * @default false
10
- * @supported weapp, alipay, swan, qq, jd, h5, rn, harmony_hybrid
10
+ * @supported weapp, alipay, swan, qq, jd, h5, rn, harmony_hybrid, ascf
11
11
  */
12
12
  showInfo?: boolean
13
13
  /** 圆角大小
14
14
  * @default 0
15
- * @supported weapp, swan, qq, jd, h5, harmony_hybrid
15
+ * @supported weapp, swan, qq, jd, h5, harmony_hybrid, ascf
16
16
  */
17
17
  borderRadius?: number | string
18
18
  /** 右侧百分比字体大小
19
19
  * @default 16
20
- * @supported weapp, swan, qq, jd, h5, harmony_hybrid
20
+ * @supported weapp, swan, qq, jd, h5, harmony_hybrid, ascf
21
21
  */
22
22
  fontSize?: number | string
23
23
  /** 进度条线的宽度
24
24
  * @default 6
25
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
25
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
26
26
  */
27
27
  strokeWidth?: number | string
28
28
  /** 进度条颜色 (请使用 activeColor)
29
29
  * @default "#09BB07"
30
- * @supported weapp, swan, qq, jd, h5, harmony_hybrid
30
+ * @supported weapp, swan, qq, jd, h5, harmony_hybrid, ascf
31
31
  */
32
32
  color?: string
33
33
  /** 已选择的进度条的颜色
34
34
  * @default "#09BB07"
35
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
35
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
36
36
  */
37
37
  activeColor?: string
38
38
  /** 未选择的进度条的颜色
39
39
  * @default "#EBEBEB"
40
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
40
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
41
41
  */
42
42
  backgroundColor?: string
43
43
  /** 进度条从左往右的动画
44
44
  * @default false
45
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
45
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
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, harmony_hybrid
52
+ * @supported weapp, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
53
53
  */
54
54
  activeMode?: 'backwards' | 'forwards'
55
55
  /** 进度增加 1% 所需毫秒数
56
56
  * @default 30
57
- * @supported weapp, swan, tt, jd, h5, harmony_hybrid
57
+ * @supported weapp, swan, tt, jd, h5, harmony_hybrid, ascf
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, harmony_hybrid
65
+ * @supported weapp, tt, qq, jd, h5, harmony_hybrid, ascf
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_hybrid
71
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid, ascf
72
72
  * @example_react
73
73
  * ```tsx
74
74
  * export default class PageView extends Component {
package/types/Radio.d.ts CHANGED
@@ -2,22 +2,22 @@ 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, harmony, harmony_hybrid
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
6
6
  */
7
7
  value?: string
8
8
  /** 当前是否选中
9
9
  * @default false
10
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
10
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
11
11
  */
12
12
  checked?: boolean
13
13
  /** 是否禁用
14
14
  * @default false
15
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
15
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
16
16
  */
17
17
  disabled?: boolean
18
18
  /** Radio 的颜色,同 css 的 color
19
19
  * @default "#09BB07"
20
- * @supported weapp, alipay, swan, tt, qq, jd, rn, harmony
20
+ * @supported weapp, alipay, swan, tt, qq, jd, rn, harmony, ascf
21
21
  */
22
22
  color?: string
23
23
  /**
@@ -42,7 +42,7 @@ interface RadioProps extends StandardProps {
42
42
  }
43
43
  /** 单选项目
44
44
  * @classification forms
45
- * @supported weapp, alipay, swan, tt, qq, h5, rn, harmony, harmony_hybrid
45
+ * @supported weapp, alipay, swan, tt, qq, h5, rn, harmony, harmony_hybrid, ascf
46
46
  * @example_react
47
47
  * ```tsx
48
48
  * export default class PageRadio extends Component {
@@ -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, harmony_hybrid
9
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid, ascf
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, harmony_hybrid
20
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid, ascf
21
21
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/radio-group.html
22
22
  */
23
23
  declare const RadioGroup: ComponentType<RadioGroupProps>
@@ -3,15 +3,15 @@ import { CommonEventFunction, StandardProps } from './common'
3
3
  interface RichTextProps extends StandardProps {
4
4
  /** 文本是否可选,该属性会使节点显示为 block
5
5
  * @default false
6
- * @supported weapp, jd, h5, harmony_hybrid
6
+ * @supported weapp, jd, h5, harmony_hybrid, ascf
7
7
  */
8
8
  userSelect?: boolean
9
9
  /** 节点列表/ HTML String
10
- * @supported weapp, jd, alipay, swan, tt, qq, h5, rn, harmony, harmony_hybrid
10
+ * @supported weapp, jd, alipay, swan, tt, qq, h5, rn, harmony, harmony_hybrid, ascf
11
11
  */
12
12
  nodes?: Nodes
13
13
  /** 显示连续空格
14
- * @supported weapp, jd, alipay, tt, qq, h5, rn, harmony_hybrid
14
+ * @supported weapp, jd, alipay, tt, qq, h5, rn, harmony_hybrid, ascf
15
15
  */
16
16
  space?: keyof RichTextProps.TSpace
17
17
  /** 富文本是否可以长按选中,可用于复制,粘贴,长按搜索等场景
@@ -104,7 +104,7 @@ declare namespace RichTextProps {
104
104
  }
105
105
  /** 富文本
106
106
  * @classification base
107
- * @supported weapp, jd, swan, alipay, tt, h5, rn, harmony, harmony_hybrid
107
+ * @supported weapp, jd, swan, alipay, tt, h5, rn, harmony, harmony_hybrid, ascf
108
108
  * @example_react
109
109
  * ```tsx
110
110
  * class App extends Components {