@tarojs/components 3.5.7-alpha.0 → 3.5.7-alpha.1

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/types/Map.d.ts CHANGED
@@ -155,6 +155,65 @@ interface MapProps extends StandardProps {
155
155
  [key: string]: number | string | any
156
156
  }
157
157
 
158
+ /** 视野在地图 padding 范围内展示
159
+ * @supported alipay
160
+ */
161
+ includePadding?: { [key in 'left' | 'right' | 'top' | 'bottom']: number | string }
162
+
163
+ /** 覆盖物,自定义贴图
164
+ * @supported alipay
165
+ */
166
+ groundOverlays?: any[]
167
+
168
+ /** 覆盖物,网格贴图
169
+ * @supported alipay
170
+ */
171
+ tileOverlay?: any[]
172
+
173
+ /** 是否展示 POI 点
174
+ * @supported weapp, alipay, tt
175
+ */
176
+ enablePoi?: string
177
+
178
+ /** 是否展示建筑物
179
+ * @supported weapp, alipay, tt
180
+ */
181
+ enableBuilding?: string
182
+
183
+ /** 覆盖物,多边形。
184
+ * @supported alipay
185
+ */
186
+ polygon?: string
187
+
188
+ /** 设置地图样式。
189
+ *
190
+ * default:默认样式
191
+ * light:精简样式
192
+ * @supported alipay
193
+ */
194
+ customMapStyle?: string
195
+
196
+ /** 基于 map 高级定制渲染,设置覆盖在地图上的 view。
197
+ * @supported alipay
198
+ */
199
+ panels?: string
200
+
201
+ /** 否
202
+ * @supported jd
203
+ */
204
+ theme?: string
205
+
206
+ /** 内联样式。
207
+ * @supported alipay
208
+ */
209
+ optimize?: string
210
+
211
+ /** 展示3D楼块
212
+ * @supported weapp, swan, tt, qq
213
+ * @default false
214
+ */
215
+ enable3D?: string
216
+
158
217
  /** 点击地图时触发
159
218
  * @supported weapp, alipay, swan, tt, qq, jd
160
219
  */
@@ -195,31 +254,6 @@ interface MapProps extends StandardProps {
195
254
  */
196
255
  onPoiTap?: CommonEventFunction<MapProps.onPoiTapEventDetail>
197
256
 
198
- /** 视野在地图 padding 范围内展示
199
- * @supported alipay
200
- */
201
- includePadding?: { [key in 'left' | 'right' | 'top' | 'bottom']: number | string }
202
-
203
- /** 覆盖物,自定义贴图
204
- * @supported alipay
205
- */
206
- groundOverlays?: any[]
207
-
208
- /** 覆盖物,网格贴图
209
- * @supported alipay
210
- */
211
- tileOverlay?: any[]
212
-
213
- /** 是否展示 POI 点
214
- * @supported weapp, alipay, tt
215
- */
216
- enablePoi?: string
217
-
218
- /** 是否展示建筑物
219
- * @supported weapp, alipay, tt
220
- */
221
- enableBuilding?: string
222
-
223
257
  /** 点击标记点对应的气泡时触发e.detail = {markerId}
224
258
  * @supported weapp, swan, tt, jd
225
259
  */
@@ -230,24 +264,6 @@ interface MapProps extends StandardProps {
230
264
  */
231
265
  onAnchorPointTap?: CommonEventFunction
232
266
 
233
- /** 覆盖物,多边形。
234
- * @supported alipay
235
- */
236
- polygon?: string
237
-
238
- /** 设置地图样式。
239
- *
240
- * default:默认样式
241
- * light:精简样式
242
- * @supported alipay
243
- */
244
- customMapStyle?: string
245
-
246
- /** 基于 map 高级定制渲染,设置覆盖在地图上的 view。
247
- * @supported alipay
248
- */
249
- panels?: string
250
-
251
267
  /** 点击 panel 时触发。
252
268
  * @supported alipay
253
269
  */
@@ -260,22 +276,6 @@ interface MapProps extends StandardProps {
260
276
  * @supported alipay
261
277
  */
262
278
  onInitComplete?: CommonEventFunction
263
-
264
- /** 否
265
- * @supported jd
266
- */
267
- theme?: string
268
-
269
- /** 展示3D楼块
270
- * @supported weapp, swan, tt, qq
271
- * @default false
272
- */
273
- enable3D?: string
274
-
275
- /** 内联样式。
276
- * @supported alipay
277
- */
278
- optimize?: string
279
279
  }
280
280
  declare namespace MapProps {
281
281
  /** 标记点用于在地图上显示标记的位置 */
@@ -67,6 +67,16 @@ interface NavigatorProps extends StandardProps {
67
67
  */
68
68
  hoverStayTime?: number
69
69
 
70
+ /** 当target="miniProgram"时有效,当传递该参数后,可以不传 app-id 和 path。链接可以通过【小程序菜单】->【复制链接】获取。
71
+ * @supported weapp
72
+ */
73
+ shortLink?: string
74
+
75
+ /** 无障碍访问,(属性)元素的额外描述
76
+ * @supported qq
77
+ */
78
+ ariaLabel?: string
79
+
70
80
  /** 当 `target="miniProgram"` 时有效,跳转小程序成功
71
81
  * @supported weapp, swan, qq
72
82
  */
@@ -81,16 +91,6 @@ interface NavigatorProps extends StandardProps {
81
91
  * @supported weapp, swan, qq
82
92
  */
83
93
  onComplete?: CommonEventFunction
84
-
85
- /** 当target="miniProgram"时有效,当传递该参数后,可以不传 app-id 和 path。链接可以通过【小程序菜单】->【复制链接】获取。
86
- * @supported weapp
87
- */
88
- shortLink?: string
89
-
90
- /** 无障碍访问,(属性)元素的额外描述
91
- * @supported qq
92
- */
93
- ariaLabel?: string
94
94
  }
95
95
  declare namespace NavigatorProps {
96
96
  /** target 的合法值 */
@@ -27,11 +27,6 @@ interface OpenDataProps extends StandardProps {
27
27
  */
28
28
  defaultAvatar?: string
29
29
 
30
- /** 群名称或用户信息为空时触发
31
- * @supported weapp, tt, qq
32
- */
33
- onError?: CommonEventFunction
34
-
35
30
  /** 当数据为空且未设置默认值时,是否显示官方默认值
36
31
  * @supported tt
37
32
  */
@@ -51,6 +46,11 @@ interface OpenDataProps extends StandardProps {
51
46
  * @supported qq
52
47
  */
53
48
  componentData?: string
49
+
50
+ /** 群名称或用户信息为空时触发
51
+ * @supported weapp, tt, qq
52
+ */
53
+ onError?: CommonEventFunction
54
54
  }
55
55
  declare namespace OpenDataProps {
56
56
  /** type 的合法值 */
@@ -47,6 +47,12 @@ interface PageContainerProps extends StandardProps {
47
47
  */
48
48
  customStyle?: string
49
49
 
50
+ /** 是否在下滑一段距离后关闭
51
+ * @supported weapp
52
+ * @default false
53
+ */
54
+ closeOnSlideDown?: string
55
+
50
56
  /** 进入前触发
51
57
  * @supported weapp, rn
52
58
  */
@@ -81,12 +87,6 @@ interface PageContainerProps extends StandardProps {
81
87
  * @supported weapp
82
88
  */
83
89
  onClickOverlay?: CommonEventFunction
84
-
85
- /** 是否在下滑一段距离后关闭
86
- * @supported weapp
87
- * @default false
88
- */
89
- closeOnSlideDown?: string
90
90
  }
91
91
  declare namespace PageContainerProps {
92
92
  /** 弹出位置 */
@@ -45,35 +45,35 @@ interface PageMetaProps extends StandardProps {
45
45
  */
46
46
  rootFontSize?: string
47
47
 
48
- /** 页面尺寸变化时会触发 resize 事件
49
- * @supported weapp
48
+ /** 页面内容的背景色,用于页面中的空白部分和页面大小变化 resize 动画期间的临时空闲区域
49
+ * @supported weapp, alipay
50
50
  */
51
- onResize?: CommonEventFunction<PageMetaProps.onResizeEventDetail>
51
+ rootBackgroundColor?: string
52
52
 
53
- /** 页面滚动时会触发 scroll 事件
53
+ /** 页面 page 的字体大小,可以设置为 system ,表示使用当前用户设置的微信字体大小
54
54
  * @supported weapp, alipay
55
55
  */
56
- onScroll?: CommonEventFunction<PageMetaProps.onScrollEventDetail>
56
+ pageFontSize?: string
57
57
 
58
- /** 如果通过改变 scroll-top 属性来使页面滚动,页面滚动结束后会触发 scrolldone 事件
58
+ /** 页面的方向,可为 auto portrait landscape
59
59
  * @supported weapp
60
60
  */
61
- onScrollDone?: CommonEventFunction
61
+ pageOrientation?: string
62
62
 
63
- /** 页面内容的背景色,用于页面中的空白部分和页面大小变化 resize 动画期间的临时空闲区域
64
- * @supported weapp, alipay
63
+ /** 页面尺寸变化时会触发 resize 事件
64
+ * @supported weapp
65
65
  */
66
- rootBackgroundColor?: string
66
+ onResize?: CommonEventFunction<PageMetaProps.onResizeEventDetail>
67
67
 
68
- /** 页面 page 的字体大小,可以设置为 system ,表示使用当前用户设置的微信字体大小
68
+ /** 页面滚动时会触发 scroll 事件
69
69
  * @supported weapp, alipay
70
70
  */
71
- pageFontSize?: string
71
+ onScroll?: CommonEventFunction<PageMetaProps.onScrollEventDetail>
72
72
 
73
- /** 页面的方向,可为 auto portrait landscape
73
+ /** 如果通过改变 scroll-top 属性来使页面滚动,页面滚动结束后会触发 scrolldone 事件
74
74
  * @supported weapp
75
75
  */
76
- pageOrientation?: string
76
+ onScrollDone?: CommonEventFunction
77
77
  }
78
78
  declare namespace PageMetaProps {
79
79
  interface onResizeEventDetail {
@@ -32,6 +32,16 @@ interface PickerViewProps extends StandardProps {
32
32
  */
33
33
  immediateChange?: boolean
34
34
 
35
+ /** 选择器标题,建议标题控制在 12 个中文汉字长度内,避免出现截断现象, 截断部分将以 ... 形式展示
36
+ * @supported swan
37
+ */
38
+ title?: string
39
+
40
+ /** 无障碍访问,(属性)元素的额外描述
41
+ * @supported qq
42
+ */
43
+ ariaLabel?: string
44
+
35
45
  /** 当滚动选择,value 改变时触发 change 事件,event.detail = {value: value};value为数组,表示 picker-view 内的 picker-view-column 当前选择的是第几项(下标从 0 开始)
36
46
  * @supported weapp, alipay, swan, tt, qq, jd, rn
37
47
  */
@@ -46,16 +56,6 @@ interface PickerViewProps extends StandardProps {
46
56
  * @supported weapp, alipay, tt, qq
47
57
  */
48
58
  onPickEnd?: CommonEventFunction
49
-
50
- /** 选择器标题,建议标题控制在 12 个中文汉字长度内,避免出现截断现象, 截断部分将以 ... 形式展示
51
- * @supported swan
52
- */
53
- title?: string
54
-
55
- /** 无障碍访问,(属性)元素的额外描述
56
- * @supported qq
57
- */
58
- ariaLabel?: string
59
59
  }
60
60
  declare namespace PickerViewProps {
61
61
  interface onChangeEventDetail {
@@ -68,15 +68,15 @@ interface ProgressProps extends StandardProps {
68
68
  */
69
69
  duration?: number
70
70
 
71
- /** 动画完成事件
72
- * @supported weapp, qq, jd, h5
73
- */
74
- onActiveEnd?: CommonEventFunction
75
-
76
71
  /** 无障碍访问,(属性)元素的额外描述
77
72
  * @supported qq
78
73
  */
79
74
  ariaLabel?: string
75
+
76
+ /** 动画完成事件
77
+ * @supported weapp, qq, jd, h5
78
+ */
79
+ onActiveEnd?: CommonEventFunction
80
80
  }
81
81
 
82
82
  /** 进度条。组件属性的长度单位默认为 px
@@ -1,15 +1,15 @@
1
1
  import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction, FormItemProps } from './common'
3
3
  interface RadioGroupProps extends StandardProps, FormItemProps {
4
- /** RadioGroup 中选中项发生改变时触发 change 事件,detail = {value:[选中的radio的value的数组]}
5
- * @supported weapp, alipay, swan, tt, qq, h5
6
- */
7
- onChange?: CommonEventFunction
8
-
9
4
  /** 组件名字,用于表单提交获取数据。
10
5
  * @supported alipay, tt
11
6
  */
12
7
  name?: string
8
+
9
+ /** RadioGroup 中选中项发生改变时触发 change 事件,detail = {value:[选中的radio的value的数组]}
10
+ * @supported weapp, alipay, swan, tt, qq, h5
11
+ */
12
+ onChange?: CommonEventFunction
13
13
  }
14
14
  declare namespace RadioGroupProps {
15
15
  interface onChangeEventDetail {
@@ -15,6 +15,23 @@ interface RichTextProps extends StandardProps {
15
15
  */
16
16
  space?: keyof RichTextProps.TSpace
17
17
 
18
+ /** 富文本是否可以长按选中,可用于复制,粘贴,长按搜索等场景
19
+ * @default false(基础库 3.150.1 以前版本)true(基础库 3.150.1 及以后版本)
20
+ * @supported swan
21
+ */
22
+ selectable?: string
23
+
24
+ /** 阻止长按图片时弹起默认菜单(将该属性设置为image-menu-prevent或image-menu-prevent="true"),只在初始化时有效,不能动态变更;若不想阻止弹起默认菜单,则不需要设置此属性
25
+ * @default false
26
+ * @supported swan
27
+ */
28
+ imageMenuPrevent?: string
29
+
30
+ /** 富文本中的图片是否可点击预览。在不设置的情况下,若 rich-text 未监听点击事件,则默认开启。未显示设置 preview 时会进行点击默认预览判断,建议显示设置 preview
31
+ * @supported swan
32
+ */
33
+ preview?: string
34
+
18
35
  /** 触摸。
19
36
  * @supported alipay
20
37
  */
@@ -44,23 +61,6 @@ interface RichTextProps extends StandardProps {
44
61
  * @supported alipay
45
62
  */
46
63
  onLongtap?: CommonEventFunction
47
-
48
- /** 富文本是否可以长按选中,可用于复制,粘贴,长按搜索等场景
49
- * @default false(基础库 3.150.1 以前版本)true(基础库 3.150.1 及以后版本)
50
- * @supported swan
51
- */
52
- selectable?: string
53
-
54
- /** 阻止长按图片时弹起默认菜单(将该属性设置为image-menu-prevent或image-menu-prevent="true"),只在初始化时有效,不能动态变更;若不想阻止弹起默认菜单,则不需要设置此属性
55
- * @default false
56
- * @supported swan
57
- */
58
- imageMenuPrevent?: string
59
-
60
- /** 富文本中的图片是否可点击预览。在不设置的情况下,若 rich-text 未监听点击事件,则默认开启。未显示设置 preview 时会进行点击默认预览判断,建议显示设置 preview
61
- * @supported swan
62
- */
63
- preview?: string
64
64
  }
65
65
 
66
66
  /** 节点类型
@@ -126,6 +126,38 @@ interface ScrollViewProps extends StandardProps {
126
126
  */
127
127
  fastDeceleration?: boolean
128
128
 
129
+ /** 当 scroll-with-animation设置为 true 时,可以设置 scroll-animation-duration 来控制动画的执行时间,单位 ms。
130
+ * @supported alipay
131
+ */
132
+ scrollAnimationDuration?: string
133
+
134
+ /** 纵向滚动时,当滚动到顶部或底部时,强制禁止触发页面滚动,仍然只触发 scroll-view 自身的滚动。
135
+ * @supported alipay
136
+ * @default false
137
+ */
138
+ trapScroll?: string
139
+
140
+ /** 发生滚动前,对滚动方向进行判断,当方向是顶部/左边时,如果值为 always 将始终禁止滚动,如果值为 out-of-bounds 且当前已经滚动到顶部/左边,禁止滚动。
141
+ * @supported alipay
142
+ */
143
+ disableLowerScroll?: string
144
+
145
+ /** 发生滚动前,对滚动方向进行判断,当方向是底部/右边时,如果值为 always 将始终禁止滚动,如果值为 out-of-bounds 且当前已经滚动到底部/右边,禁止滚动。
146
+ * @supported alipay
147
+ */
148
+ disableUpperScroll?: string
149
+
150
+ /** 无障碍访问,(属性)元素的额外描述
151
+ * @supported qq
152
+ */
153
+ ariaLabel?: string
154
+
155
+ /** 开启 passive 特性,能优化一定的滚动性能
156
+ * @supported weapp
157
+ * @default false
158
+ */
159
+ enablePassive?: string
160
+
129
161
  /** 滚动到顶部/左边,会触发 scrolltoupper 事件
130
162
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
131
163
  */
@@ -176,17 +208,6 @@ interface ScrollViewProps extends StandardProps {
176
208
  */
177
209
  onDragEnd?: CommonEventFunction<ScrollViewProps.onDragDetail>
178
210
 
179
- /** 当 scroll-with-animation设置为 true 时,可以设置 scroll-animation-duration 来控制动画的执行时间,单位 ms。
180
- * @supported alipay
181
- */
182
- scrollAnimationDuration?: string
183
-
184
- /** 纵向滚动时,当滚动到顶部或底部时,强制禁止触发页面滚动,仍然只触发 scroll-view 自身的滚动。
185
- * @supported alipay
186
- * @default false
187
- */
188
- trapScroll?: string
189
-
190
211
  /** 触摸动作开始。
191
212
  * @supported alipay
192
213
  */
@@ -206,27 +227,6 @@ interface ScrollViewProps extends StandardProps {
206
227
  * @supported alipay
207
228
  */
208
229
  onTouchCancel?: CommonEventFunction
209
-
210
- /** 发生滚动前,对滚动方向进行判断,当方向是顶部/左边时,如果值为 always 将始终禁止滚动,如果值为 out-of-bounds 且当前已经滚动到顶部/左边,禁止滚动。
211
- * @supported alipay
212
- */
213
- disableLowerScroll?: string
214
-
215
- /** 发生滚动前,对滚动方向进行判断,当方向是底部/右边时,如果值为 always 将始终禁止滚动,如果值为 out-of-bounds 且当前已经滚动到底部/右边,禁止滚动。
216
- * @supported alipay
217
- */
218
- disableUpperScroll?: string
219
-
220
- /** 无障碍访问,(属性)元素的额外描述
221
- * @supported qq
222
- */
223
- ariaLabel?: string
224
-
225
- /** 开启 passive 特性,能优化一定的滚动性能
226
- * @supported weapp
227
- * @default false
228
- */
229
- enablePassive?: string
230
230
  }
231
231
  declare namespace ScrollViewProps {
232
232
  interface onScrollDetail {
@@ -244,7 +244,6 @@ declare namespace ScrollViewProps {
244
244
  deltaX: number
245
245
  deltaY: number
246
246
  }
247
-
248
247
  interface onDragDetail {
249
248
  /** 横向滚动条位置 */
250
249
  scrollLeft: number
package/types/Slider.d.ts CHANGED
@@ -73,16 +73,6 @@ interface SliderProps extends StandardProps, FormItemProps {
73
73
  */
74
74
  showValue?: boolean
75
75
 
76
- /** 完成一次拖动后触发的事件
77
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
78
- */
79
- onChange?: CommonEventFunction<SliderProps.onChangeEventDetail>
80
-
81
- /** 拖动过程中触发的事件
82
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
83
- */
84
- onChanging?: CommonEventFunction<SliderProps.onChangeEventDetail>
85
-
86
76
  /** 组件名字,用于表单提交获取数据。
87
77
  * @supported alipay
88
78
  */
@@ -109,6 +99,16 @@ interface SliderProps extends StandardProps, FormItemProps {
109
99
  * @supported qq
110
100
  */
111
101
  ariaLabel?: string
102
+
103
+ /** 完成一次拖动后触发的事件
104
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
105
+ */
106
+ onChange?: CommonEventFunction<SliderProps.onChangeEventDetail>
107
+
108
+ /** 拖动过程中触发的事件
109
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
110
+ */
111
+ onChanging?: CommonEventFunction<SliderProps.onChangeEventDetail>
112
112
  }
113
113
  declare namespace SliderProps {
114
114
  interface onChangeEventDetail {
package/types/Swiper.d.ts CHANGED
@@ -97,21 +97,6 @@ interface SwiperProps extends StandardProps {
97
97
  */
98
98
  easingFunction?: keyof SwiperProps.TEasingFunction
99
99
 
100
- /** current 改变时会触发 change 事件
101
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
102
- */
103
- onChange?: CommonEventFunction<SwiperProps.onChangeEventDetail>
104
-
105
- /** swiper-item 的位置发生改变时会触发 transition 事件
106
- * @supported weapp, alipay, tt, qq, jd
107
- */
108
- onTransition?: CommonEventFunction<SwiperProps.onTransitionEventDetail>
109
-
110
- /** 动画结束时会触发 animationfinish 事件
111
- * @supported weapp, swan, tt, qq, jd, h5, rn
112
- */
113
- onAnimationFinish?: SwiperProps['onChange']
114
-
115
100
  /** 是否禁止用户 touch 操作
116
101
  * @default false
117
102
  * @supported alipay
@@ -140,11 +125,6 @@ interface SwiperProps extends StandardProps {
140
125
  */
141
126
  disableProgrammaticAnimation?: string
142
127
 
143
- /** 动画结束时会触发 animationEnd 事件
144
- * @supported alipay
145
- */
146
- onAnimationEnd?: CommonEventFunction<SwiperProps.onCommonEventDetail>
147
-
148
128
  /** 滑动距离阈值,当滑动距离超过阈值时进行 swiper-item 切换。
149
129
  * @supported alipay
150
130
  */
@@ -175,6 +155,26 @@ interface SwiperProps extends StandardProps {
175
155
  * @supported swan
176
156
  */
177
157
  disableTouchmove?: string
158
+
159
+ /** current 改变时会触发 change 事件
160
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
161
+ */
162
+ onChange?: CommonEventFunction<SwiperProps.onChangeEventDetail>
163
+
164
+ /** swiper-item 的位置发生改变时会触发 transition 事件
165
+ * @supported weapp, alipay, tt, qq, jd
166
+ */
167
+ onTransition?: CommonEventFunction<SwiperProps.onTransitionEventDetail>
168
+
169
+ /** 动画结束时会触发 animationfinish 事件
170
+ * @supported weapp, swan, tt, qq, jd, h5, rn
171
+ */
172
+ onAnimationFinish?: SwiperProps['onChange']
173
+
174
+ /** 动画结束时会触发 animationEnd 事件
175
+ * @supported alipay
176
+ */
177
+ onAnimationEnd?: CommonEventFunction<SwiperProps.onCommonEventDetail>
178
178
  }
179
179
  declare namespace SwiperProps {
180
180
  /** 导致变更的原因 */
package/types/Switch.d.ts CHANGED
@@ -25,11 +25,6 @@ interface SwitchProps extends StandardProps, FormItemProps {
25
25
  */
26
26
  color?: string
27
27
 
28
- /** checked 改变时触发 change 事件
29
- * @supported weapp, alipay, swan, tt, qq, jd, rn
30
- */
31
- onChange?: CommonEventFunction<SwitchProps.onChangeEventDetail>
32
-
33
28
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
34
29
  * @supported h5
35
30
  */
@@ -50,6 +45,11 @@ interface SwitchProps extends StandardProps, FormItemProps {
50
45
  * @supported qq
51
46
  */
52
47
  ariaLabel?: string
48
+
49
+ /** checked 改变时触发 change 事件
50
+ * @supported weapp, alipay, swan, tt, qq, jd, rn
51
+ */
52
+ onChange?: CommonEventFunction<SwitchProps.onChangeEventDetail>
53
53
  }
54
54
  declare namespace SwitchProps {
55
55
  interface onChangeEventDetail {
@@ -106,38 +106,6 @@ interface TextareaProps extends StandardProps, FormItemProps {
106
106
  */
107
107
  disableDefaultPadding?: boolean
108
108
 
109
- /** 输入框聚焦时触发
110
- * @supported weapp, alipay, swan, tt, qq, h5, rn
111
- */
112
- onFocus?: CommonEventFunction<TextareaProps.onFocusEventDetail>
113
-
114
- /** 输入框失去焦点时触发
115
- * @supported weapp, alipay, swan, tt, qq, h5, rn
116
- */
117
- onBlur?: CommonEventFunction<TextareaProps.onBlurEventDetail>
118
-
119
- /** 输入框行数变化时调用
120
- * @supported weapp, swan, tt, qq, rn
121
- */
122
- onLineChange?: CommonEventFunction<TextareaProps.onLineChangeEventDetail>
123
-
124
- /** 当键盘输入时,触发 input 事件
125
- *
126
- * **onInput 处理函数的返回值并不会反映到 textarea 上**
127
- * @supported weapp, alipay, swan, tt, qq, h5, rn
128
- */
129
- onInput?: CommonEventFunction<TextareaProps.onInputEventDetail>
130
-
131
- /** 点击完成时, 触发 confirm 事件
132
- * @supported weapp, alipay, swan, tt, qq, rn
133
- */
134
- onConfirm?: CommonEventFunction<TextareaProps.onConfirmEventDetail>
135
-
136
- /** 键盘高度发生变化的时候触发此事件
137
- * @supported weapp
138
- */
139
- onKeyboardHeightChange?: CommonEventFunction<TextareaProps.onKeyboardHeightChangeEventDetail>
140
-
141
109
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
142
110
  * @supported h5
143
111
  */
@@ -172,6 +140,38 @@ interface TextareaProps extends StandardProps, FormItemProps {
172
140
  * @supported qq
173
141
  */
174
142
  ariaLabel?: string
143
+
144
+ /** 输入框聚焦时触发
145
+ * @supported weapp, alipay, swan, tt, qq, h5, rn
146
+ */
147
+ onFocus?: CommonEventFunction<TextareaProps.onFocusEventDetail>
148
+
149
+ /** 输入框失去焦点时触发
150
+ * @supported weapp, alipay, swan, tt, qq, h5, rn
151
+ */
152
+ onBlur?: CommonEventFunction<TextareaProps.onBlurEventDetail>
153
+
154
+ /** 输入框行数变化时调用
155
+ * @supported weapp, swan, tt, qq, rn
156
+ */
157
+ onLineChange?: CommonEventFunction<TextareaProps.onLineChangeEventDetail>
158
+
159
+ /** 当键盘输入时,触发 input 事件
160
+ *
161
+ * **onInput 处理函数的返回值并不会反映到 textarea 上**
162
+ * @supported weapp, alipay, swan, tt, qq, h5, rn
163
+ */
164
+ onInput?: CommonEventFunction<TextareaProps.onInputEventDetail>
165
+
166
+ /** 点击完成时, 触发 confirm 事件
167
+ * @supported weapp, alipay, swan, tt, qq, rn
168
+ */
169
+ onConfirm?: CommonEventFunction<TextareaProps.onConfirmEventDetail>
170
+
171
+ /** 键盘高度发生变化的时候触发此事件
172
+ * @supported weapp
173
+ */
174
+ onKeyboardHeightChange?: CommonEventFunction<TextareaProps.onKeyboardHeightChangeEventDetail>
175
175
  }
176
176
  declare namespace TextareaProps {
177
177
  interface onFocusEventDetail {