@tarojs/components 3.5.6 → 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.
Files changed (240) hide show
  1. package/dist/cjs/helper-db78e01a.js +19 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/taro-ad-core.cjs.entry.js +3 -1
  4. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +3 -1
  5. package/dist/cjs/taro-camera-core.cjs.entry.js +3 -1
  6. package/dist/cjs/taro-components.cjs.js +1 -1
  7. package/dist/cjs/taro-editor-core.cjs.entry.js +3 -1
  8. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +3 -1
  9. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +3 -1
  10. package/dist/cjs/taro-live-player-core.cjs.entry.js +3 -1
  11. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +3 -1
  12. package/dist/cjs/taro-map-core.cjs.entry.js +3 -1
  13. package/dist/cjs/taro-match-media-core.cjs.entry.js +3 -1
  14. package/dist/cjs/taro-movable-area-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-movable-view-core.cjs.entry.js +2 -2
  16. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +3 -1
  17. package/dist/cjs/taro-official-account-core.cjs.entry.js +3 -1
  18. package/dist/cjs/taro-open-data-core.cjs.entry.js +3 -1
  19. package/dist/cjs/taro-page-container-core.cjs.entry.js +3 -1
  20. package/dist/cjs/taro-page-meta-core.cjs.entry.js +3 -1
  21. package/dist/cjs/taro-root-portal-core.cjs.entry.js +3 -1
  22. package/dist/cjs/taro-share-element-core.cjs.entry.js +3 -1
  23. package/dist/cjs/taro-slot-core.cjs.entry.js +3 -1
  24. package/dist/cjs/taro-voip-room-core.cjs.entry.js +3 -1
  25. package/dist/collection/components/ad/ad.js +2 -2
  26. package/dist/collection/components/ad-custom/ad-custom.js +2 -2
  27. package/dist/collection/components/camera/camera.js +2 -2
  28. package/dist/collection/components/editor/editor.js +2 -2
  29. package/dist/collection/components/functional-page-navigator/functional-page-navigator.js +2 -2
  30. package/dist/collection/components/keyboard-accessory/keyboard-accessory.js +2 -2
  31. package/dist/collection/components/live-player/live-player.js +2 -2
  32. package/dist/collection/components/live-pusher/live-pusher.js +2 -2
  33. package/dist/collection/components/map/map.js +2 -2
  34. package/dist/collection/components/match-media/match-media.js +2 -2
  35. package/dist/collection/components/movable-area/area.css +2 -2
  36. package/dist/collection/components/movable-area/movable-view.js +2 -4
  37. package/dist/collection/components/navigation-bar/navigation-bar.js +2 -2
  38. package/dist/collection/components/official-account/official-account.js +2 -2
  39. package/dist/collection/components/open-data/open-data.js +2 -2
  40. package/dist/collection/components/page-container/page-container.js +2 -2
  41. package/dist/collection/components/page-meta/page-meta.js +2 -2
  42. package/dist/collection/components/root-portal/root-portal.js +2 -2
  43. package/dist/collection/components/share-element/share-element.js +2 -2
  44. package/dist/collection/components/slot/slot.js +2 -2
  45. package/dist/collection/components/voip-room/voip-room.js +2 -2
  46. package/dist/collection/utils/helper.js +10 -0
  47. package/dist/collection/utils/index.js +1 -0
  48. package/dist/esm/helper-3d0ecf0f.js +13 -0
  49. package/dist/esm/loader.js +1 -1
  50. package/dist/esm/taro-ad-core.entry.js +3 -1
  51. package/dist/esm/taro-ad-custom-core.entry.js +3 -1
  52. package/dist/esm/taro-camera-core.entry.js +3 -1
  53. package/dist/esm/taro-components.js +1 -1
  54. package/dist/esm/taro-editor-core.entry.js +3 -1
  55. package/dist/esm/taro-functional-page-navigator-core.entry.js +3 -1
  56. package/dist/esm/taro-keyboard-accessory-core.entry.js +3 -1
  57. package/dist/esm/taro-live-player-core.entry.js +3 -1
  58. package/dist/esm/taro-live-pusher-core.entry.js +3 -1
  59. package/dist/esm/taro-map-core.entry.js +3 -1
  60. package/dist/esm/taro-match-media-core.entry.js +3 -1
  61. package/dist/esm/taro-movable-area-core.entry.js +1 -1
  62. package/dist/esm/taro-movable-view-core.entry.js +3 -3
  63. package/dist/esm/taro-navigation-bar-core.entry.js +3 -1
  64. package/dist/esm/taro-official-account-core.entry.js +3 -1
  65. package/dist/esm/taro-open-data-core.entry.js +3 -1
  66. package/dist/esm/taro-page-container-core.entry.js +3 -1
  67. package/dist/esm/taro-page-meta-core.entry.js +3 -1
  68. package/dist/esm/taro-root-portal-core.entry.js +3 -1
  69. package/dist/esm/taro-share-element-core.entry.js +3 -1
  70. package/dist/esm/taro-slot-core.entry.js +3 -1
  71. package/dist/esm/taro-voip-room-core.entry.js +3 -1
  72. package/dist/esm-es5/helper-3d0ecf0f.js +1 -0
  73. package/dist/esm-es5/loader.js +1 -1
  74. package/dist/esm-es5/taro-ad-core.entry.js +1 -1
  75. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
  76. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  77. package/dist/esm-es5/taro-components.js +1 -1
  78. package/dist/esm-es5/taro-editor-core.entry.js +1 -1
  79. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
  80. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
  81. package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
  82. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
  83. package/dist/esm-es5/taro-map-core.entry.js +1 -1
  84. package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
  85. package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
  86. package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
  87. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
  88. package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
  89. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  90. package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
  91. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
  92. package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
  93. package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
  94. package/dist/esm-es5/taro-slot-core.entry.js +1 -1
  95. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
  96. package/dist/taro-components/p-028e2728.entry.js +1 -0
  97. package/dist/taro-components/p-0380841f.system.js +1 -1
  98. package/dist/taro-components/p-06178a0c.entry.js +1 -0
  99. package/dist/taro-components/p-07294134.system.entry.js +1 -0
  100. package/dist/taro-components/p-075458e5.system.entry.js +1 -0
  101. package/dist/taro-components/p-15e45ed6.system.js +1 -0
  102. package/dist/taro-components/p-2ec47545.entry.js +1 -0
  103. package/dist/taro-components/p-3e11c8cc.system.entry.js +1 -0
  104. package/dist/taro-components/{p-f8b9c4b0.entry.js → p-42630f45.entry.js} +1 -1
  105. package/dist/taro-components/p-4cf436f9.entry.js +1 -0
  106. package/dist/taro-components/p-4d826fb7.entry.js +1 -0
  107. package/dist/taro-components/p-55266a1f.entry.js +1 -0
  108. package/dist/taro-components/p-57a2a441.entry.js +1 -0
  109. package/dist/taro-components/p-59d93770.entry.js +1 -0
  110. package/dist/taro-components/p-5a374cb9.entry.js +1 -0
  111. package/dist/taro-components/p-62fc514e.entry.js +1 -0
  112. package/dist/taro-components/p-6800ac6f.entry.js +1 -0
  113. package/dist/taro-components/p-6a96da58.js +1 -0
  114. package/dist/taro-components/p-6aa557f0.entry.js +1 -0
  115. package/dist/taro-components/p-6ad59489.system.entry.js +1 -0
  116. package/dist/taro-components/p-733cc64a.system.entry.js +1 -0
  117. package/dist/taro-components/p-7374537f.entry.js +1 -0
  118. package/dist/taro-components/p-7d329ab0.entry.js +1 -0
  119. package/dist/taro-components/p-7e960ac3.system.entry.js +1 -0
  120. package/dist/taro-components/p-8e2b048e.system.entry.js +1 -0
  121. package/dist/taro-components/p-9234cc1d.entry.js +1 -0
  122. package/dist/taro-components/p-93eed5d7.system.entry.js +1 -0
  123. package/dist/taro-components/p-9e1572c5.system.entry.js +1 -0
  124. package/dist/taro-components/p-afbcd093.entry.js +1 -0
  125. package/dist/taro-components/p-b11aaf69.system.entry.js +1 -0
  126. package/dist/taro-components/p-b1ae9401.entry.js +1 -0
  127. package/dist/taro-components/p-b60820b4.entry.js +1 -0
  128. package/dist/taro-components/p-b7681c76.system.entry.js +1 -0
  129. package/dist/taro-components/p-c5fd5c7f.system.entry.js +1 -0
  130. package/dist/taro-components/p-c92bafb6.system.entry.js +1 -0
  131. package/dist/taro-components/p-c93bb915.system.entry.js +1 -0
  132. package/dist/taro-components/p-cf048af9.entry.js +1 -0
  133. package/dist/taro-components/p-d075934f.system.entry.js +1 -0
  134. package/dist/taro-components/p-d4da725f.system.entry.js +1 -0
  135. package/dist/taro-components/p-d5f3080c.entry.js +1 -0
  136. package/dist/taro-components/p-d6662ab3.system.entry.js +1 -0
  137. package/dist/taro-components/p-f2803c2e.system.entry.js +1 -0
  138. package/dist/taro-components/p-f4ea8a56.system.entry.js +1 -0
  139. package/dist/taro-components/{p-1c775a11.system.entry.js → p-f5f1c3b7.system.entry.js} +1 -1
  140. package/dist/taro-components/p-f7c80795.system.entry.js +1 -0
  141. package/dist/taro-components/taro-components.esm.js +1 -1
  142. package/dist/types/components/ad/ad.d.ts +2 -1
  143. package/dist/types/components/ad-custom/ad-custom.d.ts +2 -1
  144. package/dist/types/components/camera/camera.d.ts +2 -1
  145. package/dist/types/components/editor/editor.d.ts +2 -1
  146. package/dist/types/components/functional-page-navigator/functional-page-navigator.d.ts +2 -1
  147. package/dist/types/components/keyboard-accessory/keyboard-accessory.d.ts +2 -1
  148. package/dist/types/components/live-player/live-player.d.ts +2 -1
  149. package/dist/types/components/live-pusher/live-pusher.d.ts +2 -1
  150. package/dist/types/components/map/map.d.ts +2 -1
  151. package/dist/types/components/match-media/match-media.d.ts +2 -1
  152. package/dist/types/components/navigation-bar/navigation-bar.d.ts +2 -1
  153. package/dist/types/components/official-account/official-account.d.ts +2 -1
  154. package/dist/types/components/open-data/open-data.d.ts +2 -1
  155. package/dist/types/components/page-container/page-container.d.ts +2 -1
  156. package/dist/types/components/page-meta/page-meta.d.ts +2 -1
  157. package/dist/types/components/root-portal/root-portal.d.ts +2 -1
  158. package/dist/types/components/share-element/share-element.d.ts +2 -1
  159. package/dist/types/components/slot/slot.d.ts +2 -1
  160. package/dist/types/components/voip-room/voip-room.d.ts +2 -1
  161. package/dist/types/utils/helper.d.ts +1 -0
  162. package/dist/types/utils/index.d.ts +1 -0
  163. package/mini/index.js +1 -0
  164. package/package.json +8 -7
  165. package/types/Ad.d.ts +20 -21
  166. package/types/Audio.d.ts +5 -5
  167. package/types/Button.d.ts +67 -71
  168. package/types/Camera.d.ts +39 -8
  169. package/types/Canvas.d.ts +22 -38
  170. package/types/Checkbox.d.ts +7 -7
  171. package/types/CoverImage.d.ts +15 -16
  172. package/types/CoverView.d.ts +5 -6
  173. package/types/Form.d.ts +10 -10
  174. package/types/Image.d.ts +20 -31
  175. package/types/Input.d.ts +23 -24
  176. package/types/LivePlayer.d.ts +31 -25
  177. package/types/LivePusher.d.ts +5 -5
  178. package/types/Map.d.ts +66 -99
  179. package/types/MovableView.d.ts +21 -33
  180. package/types/NavigationBar.d.ts +1 -1
  181. package/types/Navigator.d.ts +10 -10
  182. package/types/OpenData.d.ts +5 -5
  183. package/types/PageContainer.d.ts +7 -10
  184. package/types/PageMeta.d.ts +14 -14
  185. package/types/Picker.d.ts +1 -5
  186. package/types/PickerView.d.ts +11 -23
  187. package/types/Progress.d.ts +5 -5
  188. package/types/RadioGroup.d.ts +5 -5
  189. package/types/RichText.d.ts +17 -17
  190. package/types/ScrollView.d.ts +46 -48
  191. package/types/Slider.d.ts +10 -10
  192. package/types/Swiper.d.ts +20 -29
  193. package/types/Switch.d.ts +5 -6
  194. package/types/Textarea.d.ts +32 -34
  195. package/types/Video.d.ts +119 -123
  196. package/types/View.d.ts +13 -32
  197. package/types/VoipRoom.d.ts +5 -5
  198. package/types/WebView.d.ts +11 -5
  199. package/dist/collection/utils/json-schema-to-types.js +0 -224
  200. package/dist/taro-components/p-0414632d.system.entry.js +0 -1
  201. package/dist/taro-components/p-10e5df98.system.entry.js +0 -1
  202. package/dist/taro-components/p-14058364.system.entry.js +0 -1
  203. package/dist/taro-components/p-1a638246.system.entry.js +0 -1
  204. package/dist/taro-components/p-1e530acd.entry.js +0 -1
  205. package/dist/taro-components/p-22e33350.entry.js +0 -1
  206. package/dist/taro-components/p-24a66088.system.entry.js +0 -1
  207. package/dist/taro-components/p-2fd0250d.system.entry.js +0 -1
  208. package/dist/taro-components/p-3c7cdf6f.entry.js +0 -1
  209. package/dist/taro-components/p-410d449f.entry.js +0 -1
  210. package/dist/taro-components/p-443fb8b0.entry.js +0 -1
  211. package/dist/taro-components/p-44fa48b9.system.entry.js +0 -1
  212. package/dist/taro-components/p-481a8bc1.system.entry.js +0 -1
  213. package/dist/taro-components/p-49b64020.entry.js +0 -1
  214. package/dist/taro-components/p-4e8d4a72.system.entry.js +0 -1
  215. package/dist/taro-components/p-4f0e98c0.system.entry.js +0 -1
  216. package/dist/taro-components/p-4f805045.entry.js +0 -1
  217. package/dist/taro-components/p-5e3bd0db.system.entry.js +0 -1
  218. package/dist/taro-components/p-6da73376.entry.js +0 -1
  219. package/dist/taro-components/p-7325d380.entry.js +0 -1
  220. package/dist/taro-components/p-77ad7941.entry.js +0 -1
  221. package/dist/taro-components/p-7ab91097.entry.js +0 -1
  222. package/dist/taro-components/p-7b96cec3.system.entry.js +0 -1
  223. package/dist/taro-components/p-7e23b551.entry.js +0 -1
  224. package/dist/taro-components/p-7f0a12a9.entry.js +0 -1
  225. package/dist/taro-components/p-840ef0c3.system.entry.js +0 -1
  226. package/dist/taro-components/p-89c876a6.system.entry.js +0 -1
  227. package/dist/taro-components/p-90a6c15a.entry.js +0 -1
  228. package/dist/taro-components/p-95a36917.entry.js +0 -1
  229. package/dist/taro-components/p-9965cf11.system.entry.js +0 -1
  230. package/dist/taro-components/p-9fcb40a3.entry.js +0 -1
  231. package/dist/taro-components/p-a8c9b126.system.entry.js +0 -1
  232. package/dist/taro-components/p-aa5d45de.system.entry.js +0 -1
  233. package/dist/taro-components/p-b3693ca2.system.entry.js +0 -1
  234. package/dist/taro-components/p-b83c3eca.system.entry.js +0 -1
  235. package/dist/taro-components/p-c0c8b2be.entry.js +0 -1
  236. package/dist/taro-components/p-c8da5c10.entry.js +0 -1
  237. package/dist/taro-components/p-d72075ef.system.entry.js +0 -1
  238. package/dist/taro-components/p-db1f2db7.entry.js +0 -1
  239. package/dist/taro-components/p-e3f39099.entry.js +0 -1
  240. package/dist/types/utils/json-schema-to-types.d.ts +0 -25
@@ -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
  */
@@ -164,81 +196,37 @@ interface ScrollViewProps extends StandardProps {
164
196
  /** 滑动开始事件 (同时开启 enhanced 属性后生效)
165
197
  * @supported weapp
166
198
  */
167
- onDragStart?: CommonEventFunction
199
+ onDragStart?: CommonEventFunction<ScrollViewProps.onDragDetail>
168
200
 
169
201
  /** 滑动事件 (同时开启 enhanced 属性后生效)
170
202
  * @supported weapp
171
203
  */
172
- onDragging?: CommonEventFunction
204
+ onDragging?: CommonEventFunction<ScrollViewProps.onDragDetail>
173
205
 
174
- /** 滑动结束事件 (同时开启 enhanced 属性后生效) detail { scrollTop, scrollLeft, velocity }
206
+ /** 滑动结束事件 (同时开启 enhanced 属性后生效)
175
207
  * @supported weapp
176
208
  */
177
- onDragend?: CommonEventFunction
178
-
179
- /** 外部样式名。
180
- * @supported alipay
181
- */
182
- class?: string
183
-
184
- /** 内联样式名。
185
- * @supported alipay
186
- */
187
- style?: string
188
-
189
- /** 当 scroll-with-animation设置为 true 时,可以设置 scroll-animation-duration 来控制动画的执行时间,单位 ms。
190
- * 版本要求: 基础库 1.9.0 及以上
191
- * @supported alipay
192
- */
193
- scrollAnimationDuration?: string
194
-
195
- /** 纵向滚动时,当滚动到顶部或底部时,强制禁止触发页面滚动,仍然只触发 scroll-view 自身的滚动。
196
- * 默认值: false
197
- * 版本要求: 基础库 1.11.2 及以上
198
- * @supported alipay
199
- */
200
- trapScroll?: string
209
+ onDragEnd?: CommonEventFunction<ScrollViewProps.onDragDetail>
201
210
 
202
211
  /** 触摸动作开始。
203
- * 版本要求: 基础库 1.15.0 及以上
204
212
  * @supported alipay
205
213
  */
206
214
  onTouchStart?: CommonEventFunction
207
215
 
208
216
  /** 触摸后移动。
209
- * 版本要求: 基础库 1.15.0 及以上
210
217
  * @supported alipay
211
218
  */
212
219
  onTouchMove?: CommonEventFunction
213
220
 
214
221
  /** 触摸动作结束。
215
- * 版本要求: 基础库 1.15.0 及以上
216
222
  * @supported alipay
217
223
  */
218
224
  onTouchEnd?: CommonEventFunction
219
225
 
220
226
  /** 触摸动作被打断,如来电提醒、弹窗。
221
- * 版本要求: 基础库 1.15.0 及以上
222
227
  * @supported alipay
223
228
  */
224
229
  onTouchCancel?: CommonEventFunction
225
-
226
- /** 发生滚动前,对滚动方向进行判断,当方向是顶部/左边时,如果值为 always 将始终禁止滚动,如果值为 out-of-bounds 且当前已经滚动到顶部/左边,禁止滚动。
227
- * 版本要求:基础库 2.6.2 及以上
228
- * @supported alipay
229
- */
230
- disableLowerScroll?: string
231
-
232
- /** 发生滚动前,对滚动方向进行判断,当方向是底部/右边时,如果值为 always 将始终禁止滚动,如果值为 out-of-bounds 且当前已经滚动到底部/右边,禁止滚动。
233
- * 版本要求:基础库 2.6.2 及以上
234
- * @supported alipay
235
- */
236
- disableUpperScroll?: string
237
-
238
- /** 无障碍访问,(属性)元素的额外描述
239
- * @supported qq
240
- */
241
- ariaLabel?: string
242
230
  }
243
231
  declare namespace ScrollViewProps {
244
232
  interface onScrollDetail {
@@ -256,6 +244,16 @@ declare namespace ScrollViewProps {
256
244
  deltaX: number
257
245
  deltaY: number
258
246
  }
247
+ interface onDragDetail {
248
+ /** 横向滚动条位置 */
249
+ scrollLeft: number
250
+
251
+ /** 竖向滚动条位置 */
252
+ scrollTop: number
253
+
254
+ /** 滚动速度 */
255
+ velocity: number
256
+ }
259
257
  }
260
258
 
261
259
  /** 可滚动视图区域。使用竖向滚动时,需要给scroll-view一个固定高度,通过 WXSS 设置 height。组件属性的长度单位默认为 px
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
@@ -119,62 +104,48 @@ interface SwiperProps extends StandardProps {
119
104
  disableTouch?: boolean
120
105
 
121
106
  /** swiper-item 可见时的 class。
122
- * 版本要求: 基础库 1.13.7 以及上。
123
107
  * @supported alipay
124
108
  */
125
109
  activeClass?: string
126
110
 
127
111
  /** acceleration 设置为 {{true}} 时且处于滑动过程中,中间若干屏处于可见时的 class。
128
- * 版本要求: 基础库 1.13.7 以及上。
129
112
  * @supported alipay
130
113
  */
131
114
  changingClass?: string
132
115
 
133
116
  /** 当开启时,会根据滑动速度,连续滑动多屏。
134
- * 版本要求: 基础库 1.13.7 及以上
135
117
  * @default false
136
118
  * @supported alipay
137
119
  */
138
120
  acceleration?: string
139
121
 
140
122
  /** 是否禁用代码变动触发 swiper 切换时使用动画。
141
- * 版本要求: 基础库 1.13.7 及以上
142
123
  * @default false
143
124
  * @supported alipay
144
125
  */
145
126
  disableProgrammaticAnimation?: string
146
127
 
147
- /** 动画结束时会触发 animationEnd 事件
148
- * @supported alipay
149
- */
150
- onAnimationEnd?: CommonEventFunction<SwiperProps.onCommonEventDetail>
151
-
152
128
  /** 滑动距离阈值,当滑动距离超过阈值时进行 swiper-item 切换。
153
- * 版本要求:基础库 1.24.11 及以上
154
129
  * @supported alipay
155
130
  */
156
131
  swipeRatio?: string
157
132
 
158
133
  /** 滑动综合速度阈值,当超过阈值时进行 swiper-item 切换,数值越小越敏感。
159
- * 版本要求:基础库 1.24.11 及以上
160
134
  * @supported alipay
161
135
  */
162
136
  swipeSpeed?: string
163
137
 
164
138
  /** 计算用户手势时所依赖的滑动角度。角度根据 touchstart 事件和首次 touchmove 事件的坐标计算得出。数值越小越对用户的滑动方向准确度要求越高。
165
- * 版本要求:基础库 1.24.11 及以上
166
139
  * @supported alipay
167
140
  */
168
141
  touchAngle?: string
169
142
 
170
143
  /** 自动以指定滑块的高度为整个容器的高度。当 vertical 为 true 时,默认不调整。可选值为:
171
- * 版本要求:基础库 2.6.4 及以上
172
144
  * @supported alipay
173
145
  */
174
146
  adjustHeight?: 'first' | 'current' | 'highest' | 'none'
175
147
 
176
148
  /** vertical 为 true 时强制使 adjust-height 生效。
177
- * 版本要求:基础库 2.6.4 及以上
178
149
  * @supported alipay
179
150
  */
180
151
  adjustVerticalHeight?: string
@@ -184,6 +155,26 @@ interface SwiperProps extends StandardProps {
184
155
  * @supported swan
185
156
  */
186
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>
187
178
  }
188
179
  declare namespace SwiperProps {
189
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
  */
@@ -41,7 +36,6 @@ interface SwitchProps extends StandardProps, FormItemProps {
41
36
  name?: string
42
37
 
43
38
  /** 是否为受控组件,为 true 时,checked 会完全受 setData 控制。
44
- * 版本要求: 基础库 1.8.0 及以上
45
39
  * @default false
46
40
  * @supported alipay
47
41
  */
@@ -51,6 +45,11 @@ interface SwitchProps extends StandardProps, FormItemProps {
51
45
  * @supported qq
52
46
  */
53
47
  ariaLabel?: string
48
+
49
+ /** checked 改变时触发 change 事件
50
+ * @supported weapp, alipay, swan, tt, qq, jd, rn
51
+ */
52
+ onChange?: CommonEventFunction<SwitchProps.onChangeEventDetail>
54
53
  }
55
54
  declare namespace SwitchProps {
56
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
  */
@@ -159,13 +127,11 @@ interface TextareaProps extends StandardProps, FormItemProps {
159
127
  name?: string
160
128
 
161
129
  /** 是否渲染字数统计功能(是否删除默认计数器/是否显示字数统计)。
162
- * 版本要求: 基础库 1.8.0 及以上
163
130
  * @supported alipay
164
131
  */
165
132
  showCount?: string
166
133
 
167
134
  /** 是否为受控组件。为 true 时,value 内容会完全受 setData 控制。
168
- * 版本要求: 基础库 1.8.0 及以上
169
135
  * @supported alipay
170
136
  */
171
137
  controlled?: string
@@ -174,6 +140,38 @@ interface TextareaProps extends StandardProps, FormItemProps {
174
140
  * @supported qq
175
141
  */
176
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>
177
175
  }
178
176
  declare namespace TextareaProps {
179
177
  interface onFocusEventDetail {