@tarojs/components 4.0.0-beta.1 → 4.0.0-beta.3

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 (585) hide show
  1. package/LICENSE +14 -0
  2. package/dist/cjs/{index-5a8221ec.js → index-dbbe9dde.js} +3 -0
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
  5. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
  6. package/dist/cjs/taro-animation-video-core.cjs.entry.js +1 -1
  7. package/dist/cjs/taro-animation-view-core.cjs.entry.js +1 -1
  8. package/dist/cjs/taro-ar-camera-core.cjs.entry.js +1 -1
  9. package/dist/cjs/taro-audio-core.cjs.entry.js +2 -2
  10. package/dist/cjs/taro-aweme-data-core.cjs.entry.js +1 -1
  11. package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
  12. package/dist/cjs/taro-button-core.cjs.entry.js +3 -3
  13. package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
  14. package/dist/cjs/taro-canvas-core.cjs.entry.js +2 -2
  15. package/dist/cjs/taro-channel-live-core.cjs.entry.js +1 -1
  16. package/dist/cjs/taro-channel-video-core.cjs.entry.js +1 -1
  17. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +2 -2
  18. package/dist/cjs/taro-comment-detail-core.cjs.entry.js +1 -1
  19. package/dist/cjs/taro-comment-list-core.cjs.entry.js +1 -1
  20. package/dist/cjs/taro-components.cjs.js +2 -2
  21. package/dist/cjs/taro-contact-button-core.cjs.entry.js +1 -1
  22. package/dist/cjs/taro-cover-image-core.cjs.entry.js +2 -2
  23. package/dist/cjs/taro-cover-view-core.cjs.entry.js +2 -2
  24. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
  25. package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
  26. package/dist/cjs/taro-follow-swan-core.cjs.entry.js +1 -1
  27. package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
  28. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
  29. package/dist/cjs/taro-grid-view-core.cjs.entry.js +1 -1
  30. package/dist/cjs/taro-icon-core.cjs.entry.js +5 -2
  31. package/dist/cjs/taro-image-core.cjs.entry.js +7 -6
  32. package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +1 -1
  33. package/dist/cjs/taro-input-core.cjs.entry.js +2 -2
  34. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
  35. package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
  36. package/dist/cjs/taro-lifestyle-core.cjs.entry.js +1 -1
  37. package/dist/cjs/taro-like-core.cjs.entry.js +1 -1
  38. package/dist/cjs/taro-list-view-core.cjs.entry.js +1 -1
  39. package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
  40. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
  41. package/dist/cjs/taro-login-core.cjs.entry.js +1 -1
  42. package/dist/cjs/taro-lottie-core.cjs.entry.js +1 -1
  43. package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
  44. package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
  45. package/dist/cjs/taro-movable-area-core_2.cjs.entry.js +4 -4
  46. package/dist/cjs/taro-native-slot-core.cjs.entry.js +1 -1
  47. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
  48. package/dist/cjs/taro-navigator-core.cjs.entry.js +2 -2
  49. package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
  50. package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
  51. package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
  52. package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
  53. package/dist/cjs/taro-picker-core_2.cjs.entry.js +3 -3
  54. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +4 -4
  55. package/dist/cjs/taro-progress-core.cjs.entry.js +4 -1
  56. package/dist/cjs/taro-pull-to-refresh-core.cjs.entry.js +3 -3
  57. package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
  58. package/dist/cjs/taro-rich-text-core.cjs.entry.js +2 -2
  59. package/dist/cjs/taro-root-portal-core.cjs.entry.js +1 -1
  60. package/dist/cjs/taro-rtc-room-core.cjs.entry.js +1 -1
  61. package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +1 -1
  62. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +3 -3
  63. package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
  64. package/dist/cjs/taro-slider-core.cjs.entry.js +4 -1
  65. package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
  66. package/dist/cjs/taro-snapshot-core.cjs.entry.js +1 -1
  67. package/dist/cjs/taro-sticky-header-core.cjs.entry.js +1 -1
  68. package/dist/cjs/taro-sticky-section-core.cjs.entry.js +1 -1
  69. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +19 -9863
  70. package/dist/cjs/taro-switch-core.cjs.entry.js +13 -12
  71. package/dist/cjs/taro-tab-item-core.cjs.entry.js +1 -1
  72. package/dist/cjs/taro-tabbar.cjs.entry.js +14 -86
  73. package/dist/cjs/taro-tabs-core.cjs.entry.js +1 -1
  74. package/dist/cjs/taro-text-core.cjs.entry.js +2 -2
  75. package/dist/cjs/taro-textarea-core.cjs.entry.js +12 -3
  76. package/dist/cjs/taro-video-control_3.cjs.entry.js +25 -5
  77. package/dist/cjs/taro-view-core.cjs.entry.js +3 -3
  78. package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
  79. package/dist/cjs/taro-web-view-core.cjs.entry.js +2 -2
  80. package/dist/collection/components/audio/style/index.css +1 -4
  81. package/dist/collection/components/button/style/index.css +1 -160
  82. package/dist/collection/components/canvas/style/index.css +1 -6
  83. package/dist/collection/components/checkbox/style/index.css +1 -39
  84. package/dist/collection/components/cover-image/style/index.css +1 -5
  85. package/dist/collection/components/cover-view/style/cover-view.css +1 -3
  86. package/dist/collection/components/icon/icon.js +10 -0
  87. package/dist/collection/components/icon/style/index.css +1 -0
  88. package/dist/collection/components/image/image.js +4 -3
  89. package/dist/collection/components/image/style/index.css +1 -73
  90. package/dist/collection/components/input/input.js +2 -2
  91. package/dist/collection/components/input/style/index.css +1 -0
  92. package/dist/collection/components/movable-area/area.css +1 -6
  93. package/dist/collection/components/movable-area/view.css +1 -8
  94. package/dist/collection/components/navigator/style/index.css +1 -3
  95. package/dist/collection/components/picker/style/index.css +1 -4
  96. package/dist/collection/components/picker-view/style/column.css +1 -12
  97. package/dist/collection/components/picker-view/style/index.css +1 -28
  98. package/dist/collection/components/progress/progress.js +10 -0
  99. package/dist/collection/components/progress/style/index.css +1 -0
  100. package/dist/collection/components/pull-to-refresh/style/index.css +1 -52
  101. package/dist/collection/components/rich-text/style/index.css +1 -16
  102. package/dist/collection/components/scroll-view/style/index.css +1 -17
  103. package/dist/collection/components/slider/slider.js +10 -0
  104. package/dist/collection/components/slider/style/index.css +1 -0
  105. package/dist/collection/components/swiper/style/index.css +2 -19
  106. package/dist/collection/components/switch/style/index.css +1 -10
  107. package/dist/collection/components/switch/switch.js +12 -12
  108. package/dist/collection/components/tabbar/style/index.css +1 -53
  109. package/dist/collection/components/tabbar/tabbar.js +1 -1
  110. package/dist/collection/components/text/style/index.css +1 -26
  111. package/dist/collection/components/textarea/style/index.css +1 -22
  112. package/dist/collection/components/textarea/textarea.js +11 -0
  113. package/dist/collection/components/video/style/index.css +1 -327
  114. package/dist/collection/components/view/style/index.css +1 -9
  115. package/dist/collection/components/web-view/style/index.css +1 -12
  116. package/dist/components/taro-audio-core.js +1 -1
  117. package/dist/components/taro-button-core.js +1 -1
  118. package/dist/components/taro-canvas-core.js +1 -1
  119. package/dist/components/taro-checkbox-core.js +1 -1
  120. package/dist/components/taro-cover-image-core.js +1 -1
  121. package/dist/components/taro-icon-core.js +3 -0
  122. package/dist/components/taro-image-core.js +5 -4
  123. package/dist/components/taro-input-core.js +1 -1
  124. package/dist/components/taro-movable-area-core.js +1 -1
  125. package/dist/components/taro-movable-view-core.js +1 -1
  126. package/dist/components/taro-picker-core.js +1 -1
  127. package/dist/components/taro-picker-view-column-core.js +1 -1
  128. package/dist/components/taro-picker-view-core.js +1 -1
  129. package/dist/components/taro-progress-core.js +3 -0
  130. package/dist/components/taro-pull-to-refresh-core.js +1 -1
  131. package/dist/components/taro-rich-text-core.js +1 -1
  132. package/dist/components/taro-scroll-view-core.js +1 -1
  133. package/dist/components/taro-slider-core.js +3 -0
  134. package/dist/components/taro-swiper-core.js +5 -9853
  135. package/dist/components/taro-switch-core.js +13 -13
  136. package/dist/components/taro-tabbar.js +3 -76
  137. package/dist/components/taro-text-core.js +1 -1
  138. package/dist/components/taro-textarea-core.js +11 -2
  139. package/dist/components/taro-video-core.js +2 -2
  140. package/dist/components/taro-view-core.js +1 -1
  141. package/dist/components/taro-web-view-core.js +1 -1
  142. package/dist/esm/{index-6bb77c5f.js → index-486e187e.js} +3 -1
  143. package/dist/esm/loader.js +3 -3
  144. package/dist/esm/taro-ad-core.entry.js +1 -1
  145. package/dist/esm/taro-ad-custom-core.entry.js +1 -1
  146. package/dist/esm/taro-animation-video-core.entry.js +1 -1
  147. package/dist/esm/taro-animation-view-core.entry.js +1 -1
  148. package/dist/esm/taro-ar-camera-core.entry.js +1 -1
  149. package/dist/esm/taro-audio-core.entry.js +2 -2
  150. package/dist/esm/taro-aweme-data-core.entry.js +1 -1
  151. package/dist/esm/taro-block-core.entry.js +1 -1
  152. package/dist/esm/taro-button-core.entry.js +3 -3
  153. package/dist/esm/taro-camera-core.entry.js +1 -1
  154. package/dist/esm/taro-canvas-core.entry.js +2 -2
  155. package/dist/esm/taro-channel-live-core.entry.js +1 -1
  156. package/dist/esm/taro-channel-video-core.entry.js +1 -1
  157. package/dist/esm/taro-checkbox-core_2.entry.js +2 -2
  158. package/dist/esm/taro-comment-detail-core.entry.js +1 -1
  159. package/dist/esm/taro-comment-list-core.entry.js +1 -1
  160. package/dist/esm/taro-components.js +3 -3
  161. package/dist/esm/taro-contact-button-core.entry.js +1 -1
  162. package/dist/esm/taro-cover-image-core.entry.js +2 -2
  163. package/dist/esm/taro-cover-view-core.entry.js +2 -2
  164. package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
  165. package/dist/esm/taro-editor-core.entry.js +1 -1
  166. package/dist/esm/taro-follow-swan-core.entry.js +1 -1
  167. package/dist/esm/taro-form-core.entry.js +1 -1
  168. package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
  169. package/dist/esm/taro-grid-view-core.entry.js +1 -1
  170. package/dist/esm/taro-icon-core.entry.js +5 -2
  171. package/dist/esm/taro-image-core.entry.js +7 -6
  172. package/dist/esm/taro-inline-payment-panel-core.entry.js +1 -1
  173. package/dist/esm/taro-input-core.entry.js +2 -2
  174. package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
  175. package/dist/esm/taro-label-core.entry.js +1 -1
  176. package/dist/esm/taro-lifestyle-core.entry.js +1 -1
  177. package/dist/esm/taro-like-core.entry.js +1 -1
  178. package/dist/esm/taro-list-view-core.entry.js +1 -1
  179. package/dist/esm/taro-live-player-core.entry.js +1 -1
  180. package/dist/esm/taro-live-pusher-core.entry.js +1 -1
  181. package/dist/esm/taro-login-core.entry.js +1 -1
  182. package/dist/esm/taro-lottie-core.entry.js +1 -1
  183. package/dist/esm/taro-map-core.entry.js +1 -1
  184. package/dist/esm/taro-match-media-core.entry.js +1 -1
  185. package/dist/esm/taro-movable-area-core_2.entry.js +4 -4
  186. package/dist/esm/taro-native-slot-core.entry.js +1 -1
  187. package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
  188. package/dist/esm/taro-navigator-core.entry.js +2 -2
  189. package/dist/esm/taro-official-account-core.entry.js +1 -1
  190. package/dist/esm/taro-open-data-core.entry.js +1 -1
  191. package/dist/esm/taro-page-container-core.entry.js +1 -1
  192. package/dist/esm/taro-page-meta-core.entry.js +1 -1
  193. package/dist/esm/taro-picker-core_2.entry.js +3 -3
  194. package/dist/esm/taro-picker-view-column-core_2.entry.js +4 -4
  195. package/dist/esm/taro-progress-core.entry.js +4 -1
  196. package/dist/esm/taro-pull-to-refresh-core.entry.js +3 -3
  197. package/dist/esm/taro-radio-core_2.entry.js +1 -1
  198. package/dist/esm/taro-rich-text-core.entry.js +2 -2
  199. package/dist/esm/taro-root-portal-core.entry.js +1 -1
  200. package/dist/esm/taro-rtc-room-core.entry.js +1 -1
  201. package/dist/esm/taro-rtc-room-item-core.entry.js +1 -1
  202. package/dist/esm/taro-scroll-view-core.entry.js +3 -3
  203. package/dist/esm/taro-share-element-core.entry.js +1 -1
  204. package/dist/esm/taro-slider-core.entry.js +4 -1
  205. package/dist/esm/taro-slot-core.entry.js +1 -1
  206. package/dist/esm/taro-snapshot-core.entry.js +1 -1
  207. package/dist/esm/taro-sticky-header-core.entry.js +1 -1
  208. package/dist/esm/taro-sticky-section-core.entry.js +1 -1
  209. package/dist/esm/taro-swiper-core_2.entry.js +5 -9853
  210. package/dist/esm/taro-switch-core.entry.js +13 -12
  211. package/dist/esm/taro-tab-item-core.entry.js +1 -1
  212. package/dist/esm/taro-tabbar.entry.js +5 -78
  213. package/dist/esm/taro-tabs-core.entry.js +1 -1
  214. package/dist/esm/taro-text-core.entry.js +2 -2
  215. package/dist/esm/taro-textarea-core.entry.js +12 -3
  216. package/dist/esm/taro-video-control_3.entry.js +4 -4
  217. package/dist/esm/taro-view-core.entry.js +3 -3
  218. package/dist/esm/taro-voip-room-core.entry.js +1 -1
  219. package/dist/esm/taro-web-view-core.entry.js +2 -2
  220. package/dist/esm-es5/index-486e187e.js +2 -0
  221. package/dist/esm-es5/loader.js +1 -1
  222. package/dist/esm-es5/taro-ad-core.entry.js +1 -1
  223. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
  224. package/dist/esm-es5/taro-animation-video-core.entry.js +1 -1
  225. package/dist/esm-es5/taro-animation-view-core.entry.js +1 -1
  226. package/dist/esm-es5/taro-ar-camera-core.entry.js +1 -1
  227. package/dist/esm-es5/taro-audio-core.entry.js +1 -1
  228. package/dist/esm-es5/taro-aweme-data-core.entry.js +1 -1
  229. package/dist/esm-es5/taro-block-core.entry.js +1 -1
  230. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  231. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  232. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  233. package/dist/esm-es5/taro-channel-live-core.entry.js +1 -1
  234. package/dist/esm-es5/taro-channel-video-core.entry.js +1 -1
  235. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  236. package/dist/esm-es5/taro-comment-detail-core.entry.js +1 -1
  237. package/dist/esm-es5/taro-comment-list-core.entry.js +1 -1
  238. package/dist/esm-es5/taro-components.js +1 -1
  239. package/dist/esm-es5/taro-contact-button-core.entry.js +1 -1
  240. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
  241. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  242. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
  243. package/dist/esm-es5/taro-editor-core.entry.js +1 -1
  244. package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
  245. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  246. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
  247. package/dist/esm-es5/taro-grid-view-core.entry.js +1 -1
  248. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  249. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  250. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +1 -1
  251. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  252. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
  253. package/dist/esm-es5/taro-label-core.entry.js +1 -1
  254. package/dist/esm-es5/taro-lifestyle-core.entry.js +1 -1
  255. package/dist/esm-es5/taro-like-core.entry.js +1 -1
  256. package/dist/esm-es5/taro-list-view-core.entry.js +1 -1
  257. package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
  258. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
  259. package/dist/esm-es5/taro-login-core.entry.js +1 -1
  260. package/dist/esm-es5/taro-lottie-core.entry.js +1 -1
  261. package/dist/esm-es5/taro-map-core.entry.js +1 -1
  262. package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
  263. package/dist/esm-es5/taro-movable-area-core_2.entry.js +1 -1
  264. package/dist/esm-es5/taro-native-slot-core.entry.js +1 -1
  265. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
  266. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  267. package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
  268. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  269. package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
  270. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
  271. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  272. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
  273. package/dist/esm-es5/taro-progress-core.entry.js +1 -1
  274. package/dist/esm-es5/taro-pull-to-refresh-core.entry.js +1 -1
  275. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  276. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  277. package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
  278. package/dist/esm-es5/taro-rtc-room-core.entry.js +1 -1
  279. package/dist/esm-es5/taro-rtc-room-item-core.entry.js +1 -1
  280. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  281. package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
  282. package/dist/esm-es5/taro-slider-core.entry.js +1 -1
  283. package/dist/esm-es5/taro-slot-core.entry.js +1 -1
  284. package/dist/esm-es5/taro-snapshot-core.entry.js +1 -1
  285. package/dist/esm-es5/taro-sticky-header-core.entry.js +1 -1
  286. package/dist/esm-es5/taro-sticky-section-core.entry.js +1 -1
  287. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  288. package/dist/esm-es5/taro-switch-core.entry.js +1 -1
  289. package/dist/esm-es5/taro-tab-item-core.entry.js +1 -1
  290. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  291. package/dist/esm-es5/taro-tabs-core.entry.js +1 -1
  292. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  293. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  294. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  295. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  296. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
  297. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  298. package/dist/taro-components/{p-23f15c7b.entry.js → p-00d05751.entry.js} +1 -1
  299. package/dist/taro-components/{p-635fe530.system.entry.js → p-014534ca.system.entry.js} +1 -1
  300. package/dist/taro-components/{p-03538d40.system.entry.js → p-015b3025.system.entry.js} +1 -1
  301. package/dist/taro-components/{p-c3c69a95.system.entry.js → p-02dd30fa.system.entry.js} +1 -1
  302. package/dist/taro-components/{p-8d797863.system.entry.js → p-040f15f2.system.entry.js} +1 -1
  303. package/dist/taro-components/p-06cf6b18.system.entry.js +1 -0
  304. package/dist/taro-components/{p-dea67974.system.entry.js → p-07e94301.system.entry.js} +1 -1
  305. package/dist/taro-components/{p-680ba5a1.system.entry.js → p-0cf04b3d.system.entry.js} +1 -1
  306. package/dist/taro-components/p-0e3d8ada.entry.js +1 -0
  307. package/dist/taro-components/p-101f49dd.entry.js +1 -0
  308. package/dist/taro-components/{p-3aaf0fb7.system.entry.js → p-10d3c795.system.entry.js} +1 -1
  309. package/dist/taro-components/{p-4ff6ad99.system.entry.js → p-114f89d6.system.entry.js} +1 -1
  310. package/dist/taro-components/p-1182efdd.system.entry.js +1 -0
  311. package/dist/taro-components/{p-2713fc1a.entry.js → p-128f9eb0.entry.js} +1 -1
  312. package/dist/taro-components/p-16954dd6.entry.js +1 -0
  313. package/dist/taro-components/p-170ce205.system.entry.js +1 -0
  314. package/dist/taro-components/{p-aa1ea71b.system.entry.js → p-1b42ba7e.system.entry.js} +1 -1
  315. package/dist/taro-components/p-1ced140d.entry.js +1 -0
  316. package/dist/taro-components/p-1d25f4e3.entry.js +1 -0
  317. package/dist/taro-components/{p-b4e3f72e.system.entry.js → p-1e3d7899.system.entry.js} +1 -1
  318. package/dist/taro-components/{p-25fffbbe.system.entry.js → p-1ee83d63.system.entry.js} +1 -1
  319. package/dist/taro-components/{p-3d7626a9.system.entry.js → p-2059cbc0.system.entry.js} +1 -1
  320. package/dist/taro-components/{p-32b41faa.system.entry.js → p-205a0692.system.entry.js} +1 -1
  321. package/dist/taro-components/{p-d86ce035.system.entry.js → p-25bbf4aa.system.entry.js} +1 -1
  322. package/dist/taro-components/{p-c968ea43.system.entry.js → p-26545e4e.system.entry.js} +1 -1
  323. package/dist/taro-components/{p-d8f78d99.system.entry.js → p-28bf8423.system.entry.js} +1 -1
  324. package/dist/taro-components/{p-72d7fae0.system.entry.js → p-290fd78b.system.entry.js} +1 -1
  325. package/dist/taro-components/p-2bbdbe9c.system.entry.js +1 -0
  326. package/dist/taro-components/{p-1c1d9be8.entry.js → p-2d6d4850.entry.js} +1 -1
  327. package/dist/taro-components/{p-0780df27.entry.js → p-2dea35fd.entry.js} +1 -1
  328. package/dist/taro-components/p-2f403f7f.entry.js +1 -0
  329. package/dist/taro-components/p-2f683899.entry.js +1 -0
  330. package/dist/taro-components/{p-139d64f1.entry.js → p-30623371.entry.js} +1 -1
  331. package/dist/taro-components/{p-fdccd9b3.system.entry.js → p-34933f34.system.entry.js} +1 -1
  332. package/dist/taro-components/{p-346162b4.system.entry.js → p-352b6b6b.system.entry.js} +1 -1
  333. package/dist/taro-components/{p-e7232d54.system.entry.js → p-35e96af8.system.entry.js} +1 -1
  334. package/dist/taro-components/{p-7de7d96c.entry.js → p-37593ce7.entry.js} +1 -1
  335. package/dist/taro-components/{p-175edd50.entry.js → p-387f300a.entry.js} +1 -1
  336. package/dist/taro-components/p-3afbae36.entry.js +1 -0
  337. package/dist/taro-components/p-3bd04d38.entry.js +1 -0
  338. package/dist/taro-components/{p-6e1f0e6d.system.entry.js → p-3ca9aa19.system.entry.js} +1 -1
  339. package/dist/taro-components/{p-810b9a86.system.entry.js → p-3d76b46e.system.entry.js} +1 -1
  340. package/dist/taro-components/p-3dadbe4c.system.entry.js +1 -0
  341. package/dist/taro-components/{p-1ac9622e.entry.js → p-3e9bf572.entry.js} +1 -1
  342. package/dist/taro-components/p-4408d796.entry.js +1 -0
  343. package/dist/taro-components/{p-222573ad.entry.js → p-445810cb.entry.js} +1 -1
  344. package/dist/taro-components/p-449f60fa.entry.js +1 -0
  345. package/dist/taro-components/p-46661961.entry.js +1 -0
  346. package/dist/taro-components/{p-c7679d57.entry.js → p-48e5ddaa.entry.js} +1 -1
  347. package/dist/taro-components/{p-20e38f24.entry.js → p-4928ee37.entry.js} +1 -1
  348. package/dist/taro-components/p-4cbd26dd.entry.js +1 -0
  349. package/dist/taro-components/p-4e4ac1fe.system.entry.js +1 -0
  350. package/dist/taro-components/{p-8c93f3e0.entry.js → p-4e4cc6ab.entry.js} +1 -1
  351. package/dist/taro-components/{p-6d1e33e1.system.entry.js → p-50e1ba06.system.entry.js} +1 -1
  352. package/dist/taro-components/{p-a7ecb97a.entry.js → p-510a69b3.entry.js} +1 -1
  353. package/dist/taro-components/p-5307637c.system.entry.js +1 -0
  354. package/dist/taro-components/{p-1d3ed211.system.entry.js → p-54941baf.system.entry.js} +1 -1
  355. package/dist/taro-components/{p-fbc2b53e.entry.js → p-55be4215.entry.js} +1 -1
  356. package/dist/taro-components/{p-3708575b.system.entry.js → p-578f19ea.system.entry.js} +1 -1
  357. package/dist/taro-components/{p-abd51173.system.entry.js → p-581e844d.system.entry.js} +1 -1
  358. package/dist/taro-components/{p-7ad33036.system.entry.js → p-5a1bb2d3.system.entry.js} +1 -1
  359. package/dist/taro-components/p-5bb60b5e.entry.js +1 -0
  360. package/dist/taro-components/p-600d9210.entry.js +1 -0
  361. package/dist/taro-components/p-6066e633.entry.js +1 -0
  362. package/dist/taro-components/p-61cb688a.entry.js +1 -0
  363. package/dist/taro-components/{p-747bdbaa.system.entry.js → p-6229bb7d.system.entry.js} +1 -1
  364. package/dist/taro-components/p-64f5abce.entry.js +1 -0
  365. package/dist/taro-components/p-67ff5a50.system.entry.js +1 -0
  366. package/dist/taro-components/{p-b2ad9709.entry.js → p-69e747dc.entry.js} +1 -1
  367. package/dist/taro-components/{p-cdd48677.system.js → p-6bbb639a.system.js} +2 -2
  368. package/dist/taro-components/{p-e769cea4.system.entry.js → p-6cf765b7.system.entry.js} +1 -1
  369. package/dist/taro-components/{p-eab8a6b0.entry.js → p-6e9d509a.entry.js} +1 -1
  370. package/dist/taro-components/p-6f027b85.entry.js +1 -0
  371. package/dist/taro-components/{p-d81577b8.system.entry.js → p-72b954ce.system.entry.js} +1 -1
  372. package/dist/taro-components/p-74129eac.entry.js +1 -0
  373. package/dist/taro-components/{p-c2259653.system.entry.js → p-74b1be20.system.entry.js} +1 -1
  374. package/dist/taro-components/{p-46a9adcf.system.entry.js → p-758e3319.system.entry.js} +1 -1
  375. package/dist/taro-components/{p-9c566d7d.system.entry.js → p-75b927b4.system.entry.js} +1 -1
  376. package/dist/taro-components/{p-79b675c8.entry.js → p-764cd497.entry.js} +1 -1
  377. package/dist/taro-components/{p-028ad016.system.entry.js → p-7b6f6526.system.entry.js} +1 -1
  378. package/dist/taro-components/p-7bd1345f.entry.js +1 -0
  379. package/dist/taro-components/{p-1411cd2e.system.entry.js → p-7cecf08e.system.entry.js} +1 -1
  380. package/dist/taro-components/{p-58d410c6.system.entry.js → p-7f084a29.system.entry.js} +1 -1
  381. package/dist/taro-components/{p-1eb875d0.system.entry.js → p-80106cc2.system.entry.js} +1 -1
  382. package/dist/taro-components/p-80278124.entry.js +1 -0
  383. package/dist/taro-components/p-83699a53.entry.js +1 -0
  384. package/dist/taro-components/{p-b94dcfbe.entry.js → p-846aa5ec.entry.js} +1 -1
  385. package/dist/taro-components/p-861834ce.entry.js +1 -0
  386. package/dist/taro-components/{p-f232cf02.entry.js → p-870e0d9d.entry.js} +1 -1
  387. package/dist/taro-components/{p-70c81b7e.entry.js → p-87422c88.entry.js} +1 -1
  388. package/dist/taro-components/{p-bbbe728b.system.entry.js → p-88c5f0eb.system.entry.js} +1 -1
  389. package/dist/taro-components/{p-f43ba9ed.entry.js → p-8b70fd1d.entry.js} +1 -1
  390. package/dist/taro-components/p-8d437a7f.entry.js +1 -0
  391. package/dist/taro-components/{p-475f9ed3.system.entry.js → p-8df92f90.system.entry.js} +1 -1
  392. package/dist/taro-components/p-8e45a207.system.entry.js +1 -0
  393. package/dist/taro-components/p-92daad3f.system.entry.js +1 -0
  394. package/dist/taro-components/{p-443fe754.system.entry.js → p-940d41e9.system.entry.js} +1 -1
  395. package/dist/taro-components/p-95058ee1.entry.js +1 -0
  396. package/dist/taro-components/p-95e88e0f.entry.js +1 -0
  397. package/dist/taro-components/{p-9f5ebe09.system.entry.js → p-9623f19c.system.entry.js} +1 -1
  398. package/dist/taro-components/{p-6f45f110.entry.js → p-970623a1.entry.js} +1 -1
  399. package/dist/taro-components/p-9890bb7b.entry.js +1 -0
  400. package/dist/taro-components/{p-7e90dfef.js → p-98b1fc13.js} +2 -2
  401. package/dist/taro-components/{p-67dcb636.system.entry.js → p-9937cf08.system.entry.js} +1 -1
  402. package/dist/taro-components/{p-3967311b.system.entry.js → p-9a5bfa2a.system.entry.js} +1 -1
  403. package/dist/taro-components/{p-fff30a48.entry.js → p-9b4e5578.entry.js} +1 -1
  404. package/dist/taro-components/p-9e138188.entry.js +1 -0
  405. package/dist/taro-components/p-a17b1a7e.entry.js +1 -0
  406. package/dist/taro-components/p-a197cbae.system.entry.js +1 -0
  407. package/dist/taro-components/p-a2a70581.system.entry.js +1 -0
  408. package/dist/taro-components/{p-35160fd2.entry.js → p-a61e195b.entry.js} +1 -1
  409. package/dist/taro-components/p-a972aa1d.system.js +1 -0
  410. package/dist/taro-components/{p-deff0bb8.entry.js → p-ae128150.entry.js} +1 -1
  411. package/dist/taro-components/{p-039e15a4.system.entry.js → p-b04cdd9a.system.entry.js} +1 -1
  412. package/dist/taro-components/p-b317674b.entry.js +1 -0
  413. package/dist/taro-components/p-b6694eb3.system.entry.js +1 -0
  414. package/dist/taro-components/{p-edb9e04e.system.entry.js → p-b8858af9.system.entry.js} +1 -1
  415. package/dist/taro-components/p-b8e2465a.entry.js +1 -0
  416. package/dist/taro-components/{p-2339a4d3.entry.js → p-b9f19e77.entry.js} +1 -1
  417. package/dist/taro-components/{p-4cc2e06e.entry.js → p-ba195b39.entry.js} +1 -1
  418. package/dist/taro-components/{p-0b6e9013.system.entry.js → p-ba50342b.system.entry.js} +1 -1
  419. package/dist/taro-components/{p-f8970571.entry.js → p-bb712e32.entry.js} +1 -1
  420. package/dist/taro-components/p-bb87373d.entry.js +1 -0
  421. package/dist/taro-components/{p-8b604d50.entry.js → p-bba220a9.entry.js} +1 -1
  422. package/dist/taro-components/{p-6d7165eb.system.entry.js → p-bcf5d78a.system.entry.js} +1 -1
  423. package/dist/taro-components/p-bdd7b5a9.entry.js +1 -0
  424. package/dist/taro-components/p-bdee068b.system.entry.js +1 -0
  425. package/dist/taro-components/p-bf0d2c21.system.entry.js +1 -0
  426. package/dist/taro-components/{p-6c48d884.entry.js → p-c0f710ae.entry.js} +1 -1
  427. package/dist/taro-components/p-c11fcb25.system.entry.js +1 -0
  428. package/dist/taro-components/p-caba17c6.system.entry.js +1 -0
  429. package/dist/taro-components/{p-1f88349b.entry.js → p-cbc19d63.entry.js} +1 -1
  430. package/dist/taro-components/{p-7dee8f07.system.entry.js → p-d03136d7.system.entry.js} +1 -1
  431. package/dist/taro-components/p-d36f8c4f.entry.js +1 -0
  432. package/dist/taro-components/p-d60b66c2.entry.js +1 -0
  433. package/dist/taro-components/{p-178cb282.system.entry.js → p-d78ab2de.system.entry.js} +1 -1
  434. package/dist/taro-components/{p-cd34c92e.system.entry.js → p-dbb47d14.system.entry.js} +1 -1
  435. package/dist/taro-components/p-dc6db06e.system.entry.js +1 -0
  436. package/dist/taro-components/p-dc98486d.entry.js +1 -0
  437. package/dist/taro-components/p-dca5e9ee.entry.js +1 -0
  438. package/dist/taro-components/{p-e487b8b4.system.entry.js → p-de3e1cee.system.entry.js} +1 -1
  439. package/dist/taro-components/p-e09e8b51.system.entry.js +1 -0
  440. package/dist/taro-components/{p-1c95795d.entry.js → p-e1c2e636.entry.js} +1 -1
  441. package/dist/taro-components/{p-48c52124.entry.js → p-e25c2a22.entry.js} +1 -1
  442. package/dist/taro-components/{p-345cb56f.entry.js → p-e26c787b.entry.js} +1 -1
  443. package/dist/taro-components/p-e457a83a.system.entry.js +1 -0
  444. package/dist/taro-components/{p-aae38fe8.entry.js → p-e7d82e00.entry.js} +1 -1
  445. package/dist/taro-components/{p-f094089c.system.entry.js → p-ebf38559.system.entry.js} +1 -1
  446. package/dist/taro-components/p-eeb6aeb5.system.entry.js +1 -0
  447. package/dist/taro-components/p-ef0aff29.entry.js +1 -0
  448. package/dist/taro-components/{p-feddde29.system.entry.js → p-f554428f.system.entry.js} +1 -1
  449. package/dist/taro-components/p-fd1d75db.entry.js +1 -0
  450. package/dist/taro-components/{p-18ea7e10.system.entry.js → p-ff7dfc5c.system.entry.js} +1 -1
  451. package/dist/taro-components/taro-components.css +1 -5
  452. package/dist/taro-components/taro-components.esm.js +1 -1
  453. package/dist/taro-components/taro-components.js +1 -1
  454. package/dist/types/components/switch/switch.d.ts +3 -3
  455. package/dist/types/components/textarea/textarea.d.ts +1 -0
  456. package/lib/react/react-component-lib/createComponent.js +3 -2
  457. package/lib/react/react-component-lib/createComponent.js.map +1 -1
  458. package/lib/react/react-component-lib/createOverlayComponent.js +1 -1
  459. package/lib/react/react-component-lib/utils/attachProps.d.ts +16 -7
  460. package/lib/react/react-component-lib/utils/attachProps.js +85 -9
  461. package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
  462. package/lib/react/react-component-lib/utils/index.js +1 -1
  463. package/lib/vue2/components-loader.js +1 -1
  464. package/package.json +12 -10
  465. package/types/Audio.d.ts +11 -11
  466. package/types/Button.d.ts +9 -9
  467. package/types/Canvas.d.ts +11 -11
  468. package/types/Checkbox.d.ts +8 -8
  469. package/types/CheckboxGroup.d.ts +3 -3
  470. package/types/CoverImage.d.ts +4 -4
  471. package/types/CoverView.d.ts +1 -1
  472. package/types/CustomWrapper.d.ts +1 -1
  473. package/types/Form.d.ts +4 -4
  474. package/types/Icon.d.ts +4 -4
  475. package/types/Image.d.ts +8 -8
  476. package/types/Input.d.ts +21 -17
  477. package/types/Label.d.ts +2 -2
  478. package/types/MovableArea.d.ts +2 -2
  479. package/types/MovableView.d.ts +18 -18
  480. package/types/NativeSlot.d.ts +1 -1
  481. package/types/Navigator.d.ts +8 -8
  482. package/types/Picker.d.ts +44 -28
  483. package/types/PickerView.d.ts +5 -1
  484. package/types/PickerViewColumn.d.ts +1 -1
  485. package/types/Progress.d.ts +13 -13
  486. package/types/Radio.d.ts +7 -7
  487. package/types/RadioGroup.d.ts +2 -2
  488. package/types/RichText.d.ts +5 -5
  489. package/types/ScrollView.d.ts +13 -13
  490. package/types/Slider.d.ts +18 -14
  491. package/types/Slot.d.ts +1 -1
  492. package/types/Swiper.d.ts +17 -17
  493. package/types/SwiperItem.d.ts +2 -2
  494. package/types/Switch.d.ts +11 -7
  495. package/types/Text.d.ts +4 -4
  496. package/types/Textarea.d.ts +17 -13
  497. package/types/Video.d.ts +30 -30
  498. package/types/View.d.ts +4 -4
  499. package/types/WebView.d.ts +4 -4
  500. package/types/common.d.ts +6 -1
  501. package/dist/cjs/hls-dfcad743.js +0 -25797
  502. package/dist/cjs/intersection-observer-dc4cfcef.js +0 -728
  503. package/dist/collection/components/input/index.css +0 -12
  504. package/dist/components/hls.js +0 -25795
  505. package/dist/components/intersection-observer.js +0 -726
  506. package/dist/esm/hls-268fc25b.js +0 -25795
  507. package/dist/esm/intersection-observer-8e4c7135.js +0 -726
  508. package/dist/esm-es5/hls-268fc25b.js +0 -1
  509. package/dist/esm-es5/index-6bb77c5f.js +0 -2
  510. package/dist/esm-es5/intersection-observer-8e4c7135.js +0 -1
  511. package/dist/taro-components/p-00113225.system.entry.js +0 -1
  512. package/dist/taro-components/p-0030841b.system.js +0 -1
  513. package/dist/taro-components/p-0910d414.entry.js +0 -1
  514. package/dist/taro-components/p-0e37fb54.entry.js +0 -1
  515. package/dist/taro-components/p-11c962b9.entry.js +0 -1
  516. package/dist/taro-components/p-1f36cd5f.entry.js +0 -1
  517. package/dist/taro-components/p-2145dccb.entry.js +0 -1
  518. package/dist/taro-components/p-215881b4.entry.js +0 -1
  519. package/dist/taro-components/p-277892fe.system.entry.js +0 -1
  520. package/dist/taro-components/p-27c756c5.system.entry.js +0 -1
  521. package/dist/taro-components/p-2aff4cdb.entry.js +0 -1
  522. package/dist/taro-components/p-2e2487bf.system.entry.js +0 -1
  523. package/dist/taro-components/p-332dc867.entry.js +0 -1
  524. package/dist/taro-components/p-333305e3.entry.js +0 -1
  525. package/dist/taro-components/p-37edf3f6.entry.js +0 -1
  526. package/dist/taro-components/p-3ad92100.system.entry.js +0 -1
  527. package/dist/taro-components/p-3b1d2d37.system.js +0 -1
  528. package/dist/taro-components/p-3cd71da3.system.entry.js +0 -1
  529. package/dist/taro-components/p-401743f9.system.entry.js +0 -1
  530. package/dist/taro-components/p-4aeb3859.system.entry.js +0 -1
  531. package/dist/taro-components/p-4d609ebb.system.entry.js +0 -1
  532. package/dist/taro-components/p-4d89b685.entry.js +0 -1
  533. package/dist/taro-components/p-527c55ca.entry.js +0 -1
  534. package/dist/taro-components/p-550c350a.entry.js +0 -1
  535. package/dist/taro-components/p-5b028f1b.js +0 -1
  536. package/dist/taro-components/p-619b9fe5.system.entry.js +0 -1
  537. package/dist/taro-components/p-6df6fd58.entry.js +0 -1
  538. package/dist/taro-components/p-6f5e162d.entry.js +0 -1
  539. package/dist/taro-components/p-70bd0541.entry.js +0 -1
  540. package/dist/taro-components/p-728b6f8f.system.entry.js +0 -1
  541. package/dist/taro-components/p-72f327e1.js +0 -1
  542. package/dist/taro-components/p-7b39971e.system.entry.js +0 -1
  543. package/dist/taro-components/p-7ba17143.entry.js +0 -1
  544. package/dist/taro-components/p-7be1f603.entry.js +0 -1
  545. package/dist/taro-components/p-817b319c.system.entry.js +0 -1
  546. package/dist/taro-components/p-907d2fe0.entry.js +0 -1
  547. package/dist/taro-components/p-93a3d6ee.entry.js +0 -1
  548. package/dist/taro-components/p-9c91aee3.system.entry.js +0 -1
  549. package/dist/taro-components/p-9e788d33.entry.js +0 -1
  550. package/dist/taro-components/p-9feeee0f.system.entry.js +0 -1
  551. package/dist/taro-components/p-a3dad439.entry.js +0 -1
  552. package/dist/taro-components/p-a4ea7a51.system.entry.js +0 -1
  553. package/dist/taro-components/p-a54735cb.entry.js +0 -1
  554. package/dist/taro-components/p-a5adbf15.system.entry.js +0 -1
  555. package/dist/taro-components/p-a744e7aa.entry.js +0 -1
  556. package/dist/taro-components/p-b1977132.entry.js +0 -1
  557. package/dist/taro-components/p-b3780eab.system.entry.js +0 -1
  558. package/dist/taro-components/p-b69bcd43.entry.js +0 -1
  559. package/dist/taro-components/p-b9c2a210.system.entry.js +0 -1
  560. package/dist/taro-components/p-bb454378.entry.js +0 -1
  561. package/dist/taro-components/p-bd6574cf.entry.js +0 -1
  562. package/dist/taro-components/p-bfea77f9.entry.js +0 -1
  563. package/dist/taro-components/p-c0a59843.entry.js +0 -1
  564. package/dist/taro-components/p-cb21f4f1.entry.js +0 -1
  565. package/dist/taro-components/p-cd0f3444.entry.js +0 -1
  566. package/dist/taro-components/p-d42968e9.system.entry.js +0 -1
  567. package/dist/taro-components/p-d55f870d.entry.js +0 -1
  568. package/dist/taro-components/p-daabfc6e.entry.js +0 -1
  569. package/dist/taro-components/p-dda03c84.entry.js +0 -1
  570. package/dist/taro-components/p-e6e3c1d7.entry.js +0 -1
  571. package/dist/taro-components/p-e82e16a1.entry.js +0 -1
  572. package/dist/taro-components/p-ee4da4db.system.js +0 -1
  573. package/dist/taro-components/p-f003caad.entry.js +0 -1
  574. package/dist/taro-components/p-f111303f.entry.js +0 -1
  575. package/dist/taro-components/p-f75d094e.system.entry.js +0 -1
  576. package/dist/taro-components/p-fbec1f96.entry.js +0 -1
  577. package/lib/react/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js +0 -373
  578. package/lib/react/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js.map +0 -1
  579. /package/dist/cjs/{index-b8c435ee.js → index-f6805218.js} +0 -0
  580. /package/dist/esm/{index-a74b6944.js → index-c3e4004b.js} +0 -0
  581. /package/dist/esm-es5/{index-a74b6944.js → index-c3e4004b.js} +0 -0
  582. /package/dist/taro-components/{p-34de4101.system.js → p-2ec68968.system.js} +0 -0
  583. /package/dist/taro-components/{p-19f218e6.js → p-de951a46.js} +0 -0
  584. /package/lib/vue2/node_modules/.pnpm/{vue-fragment@1.6.0_vue@2.7.15 → registry.npmjs.org_vue-fragment@1.6.0_vue@2.7.14}/node_modules/vue-fragment/dist/vue-fragment.esm.js +0 -0
  585. /package/lib/vue2/node_modules/.pnpm/{vue-fragment@1.6.0_vue@2.7.15 → registry.npmjs.org_vue-fragment@1.6.0_vue@2.7.14}/node_modules/vue-fragment/dist/vue-fragment.esm.js.map +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/components",
3
- "version": "4.0.0-beta.1",
3
+ "version": "4.0.0-beta.3",
4
4
  "description": "Taro 组件库",
5
5
  "browser": "dist/index.js",
6
6
  "main:h5": "dist/index.js",
@@ -33,13 +33,11 @@
33
33
  "@stencil/core": "^2.22.2",
34
34
  "classnames": "^2.2.5",
35
35
  "hls.js": "^1.1.5",
36
- "intersection-observer": "^0.7.0",
37
36
  "resolve-pathname": "^3.0.0",
37
+ "tslib": "^2.6.2",
38
38
  "swiper": "6.8.0",
39
- "weui": "^1.1.2",
40
- "@tarojs/components-advanced": "4.0.0-beta.1",
41
- "@tarojs/router": "4.0.0-beta.1",
42
- "@tarojs/taro": "4.0.0-beta.1"
39
+ "@tarojs/components-advanced": "4.0.0-beta.3",
40
+ "@tarojs/taro": "4.0.0-beta.3"
43
41
  },
44
42
  "devDependencies": {
45
43
  "@babel/generator": "^7.20.0",
@@ -47,7 +45,6 @@
47
45
  "@babel/traverse": "^7.20.0",
48
46
  "@babel/types": "^7.20.0",
49
47
  "@stencil/react-output-target": "0.4.0",
50
- "@stencil/sass": "^2.0.0",
51
48
  "@stencil/vue-output-target": "0.7.0",
52
49
  "@types/jest": "^27.4.1",
53
50
  "@types/node": "^14.14.31",
@@ -55,13 +52,18 @@
55
52
  "csstype": "^3.1.1",
56
53
  "esbuild": "~0.19.5",
57
54
  "jquery": "^3.4.1",
55
+ "lightningcss": "^1.22.1",
58
56
  "lodash": "^4.17.21",
59
57
  "miniapp-types": "1.6.0",
60
58
  "puppeteer": "^19.2.0",
59
+ "rollup": "^3.8.1",
60
+ "rollup-plugin-node-externals": "^5.0.0",
61
+ "sass": "^1.58.3",
61
62
  "stencil-vue2-output-target": "0.0.4",
62
63
  "ts-node": "^10.9.1",
63
64
  "tsconfig-paths": "^3.14.1",
64
- "typescript": "^4.7.4"
65
+ "typescript": "^4.7.4",
66
+ "mkdirp": "^1.0.4"
65
67
  },
66
68
  "peerDependenciesMeta": {
67
69
  "@types/react": {
@@ -81,10 +83,10 @@
81
83
  "dev:library-vue2": "cross-env NODE_ENV=development pnpm --filter @tarojs/components-library-vue2 run dev",
82
84
  "dev:library-vue3": "cross-env NODE_ENV=development pnpm --filter @tarojs/components-library-vue3 run dev",
83
85
  "generate:lib": "mkdirp lib",
84
- "generate:stencil-config": "esbuild ./scripts/stencil/stencil.config.ts --bundle --platform=node --outfile=stencil.config.js",
86
+ "generate:stencil-config": "esbuild ./scripts/stencil/stencil.config.ts --external:lightningcss --bundle --platform=node --outfile=stencil.config.js",
85
87
  "sync:types": "pnpm run tsx --files scripts/json-schema-to-types.ts",
86
88
  "test": "cross-env NODE_ENV=test stencil test --spec --e2e",
87
- "test:ci": "pnpm test -- --ci --no-build",
89
+ "test:ci": "pnpm test -- --ci -i --coverage --silent --no-build",
88
90
  "test:coverage": "pnpm test -- --ci --screenshot --coverage",
89
91
  "test:watch": "pnpm test -- --screenshot --watch",
90
92
  "tsx": "ts-node --skipIgnore"
package/types/Audio.d.ts CHANGED
@@ -6,22 +6,22 @@ interface AudioProps extends StandardProps {
6
6
  */
7
7
  id?: string
8
8
  /** 要播放音频的资源地址
9
- * @supported weapp, swan, qq, h5
9
+ * @supported weapp, swan, qq, h5, harmony_hybrid
10
10
  */
11
11
  src?: string
12
12
  /** 是否循环播放
13
13
  * @default false
14
- * @supported weapp, swan, qq, h5
14
+ * @supported weapp, swan, qq, h5, harmony_hybrid
15
15
  */
16
16
  loop?: boolean
17
17
  /** 是否静音播放
18
18
  * @default false
19
- * @supported h5
19
+ * @supported h5, harmony_hybrid
20
20
  */
21
21
  muted?: boolean
22
22
  /** 是否显示默认控件
23
23
  * @default false
24
- * @supported weapp, swan, qq, h5
24
+ * @supported weapp, swan, qq, h5, harmony_hybrid
25
25
  */
26
26
  controls?: boolean
27
27
  /** 默认控件上的音频封面的图片资源地址,如果 controls 属性值为 false 则设置 poster 无效
@@ -39,27 +39,27 @@ interface AudioProps extends StandardProps {
39
39
  */
40
40
  author?: string
41
41
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
42
- * @supported h5
42
+ * @supported h5, harmony_hybrid
43
43
  */
44
44
  nativeProps?: Record<string, unknown>
45
45
  /** 当发生错误时触发 error 事件,detail = {errMsg: MediaError.code}
46
- * @supported weapp, swan, qq, h5
46
+ * @supported weapp, swan, qq, h5, harmony_hybrid
47
47
  */
48
48
  onError?: CommonEventFunction<AudioProps.onErrorEventDetail>
49
49
  /** 当开始/继续播放时触发play事件
50
- * @supported weapp, swan, qq, h5
50
+ * @supported weapp, swan, qq, h5, harmony_hybrid
51
51
  */
52
52
  onPlay?: CommonEventFunction
53
53
  /** 当暂停播放时触发 pause 事件
54
- * @supported weapp, swan, qq, h5
54
+ * @supported weapp, swan, qq, h5, harmony_hybrid
55
55
  */
56
56
  onPause?: CommonEventFunction
57
57
  /** 当播放进度改变时触发 timeupdate 事件,detail = {currentTime, duration}
58
- * @supported weapp, swan, qq, h5
58
+ * @supported weapp, swan, qq, h5, harmony_hybrid
59
59
  */
60
60
  onTimeUpdate?: CommonEventFunction<AudioProps.onTimeUpdateEventDetail>
61
61
  /** 当播放到末尾时触发 ended 事件
62
- * @supported weapp, swan, qq, h5
62
+ * @supported weapp, swan, qq, h5, harmony_hybrid
63
63
  */
64
64
  onEnded?: CommonEventFunction
65
65
  }
@@ -89,7 +89,7 @@ declare namespace AudioProps {
89
89
  /** 音频。1.6.0版本开始,该组件不再维护。建议使用能力更强的 Taro.createInnerAudioContext 接口
90
90
  * @classification media
91
91
  * @deprecated
92
- * @supported weapp, swan, qq, h5
92
+ * @supported weapp, swan, qq, h5, harmony_hybrid
93
93
  * @example_react
94
94
  * ```tsx
95
95
  * export default class PageView extends Component {
package/types/Button.d.ts CHANGED
@@ -3,27 +3,27 @@ import { StandardProps, CommonEventFunction } from './common'
3
3
  import { StyleProp, ViewStyle } from 'react-native'
4
4
  interface ButtonProps extends StandardProps {
5
5
  /** 按钮的大小
6
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
6
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
7
7
  * @default default
8
8
  */
9
9
  size?: keyof ButtonProps.Size
10
10
  /** 按钮的样式类型
11
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
11
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
12
12
  * @default default
13
13
  */
14
14
  type?: keyof ButtonProps.Type
15
15
  /** 按钮是否镂空,背景色透明
16
- * @supported weapp, alipay, swan, qq, jd, h5, rn, harmony
16
+ * @supported weapp, alipay, swan, qq, jd, h5, rn, harmony, harmony_hybrid
17
17
  * @default false
18
18
  */
19
19
  plain?: boolean
20
20
  /** 是否禁用
21
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
21
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
22
22
  * @default false
23
23
  */
24
24
  disabled?: boolean
25
25
  /** 名称前是否带 loading 图标
26
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
26
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
27
27
  * @default false
28
28
  */
29
29
  loading?: boolean
@@ -37,7 +37,7 @@ interface ButtonProps extends StandardProps {
37
37
  openType?: ButtonProps.OpenType
38
38
  /** 指定按下去的样式类。当 `hover-class="none"` 时,没有点击态效果
39
39
  * @default button-hover
40
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
40
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
41
41
  * @rn 支持 hoverStyle 属性,但框架未支持 hoverClass
42
42
  */
43
43
  hoverClass?: string
@@ -53,12 +53,12 @@ interface ButtonProps extends StandardProps {
53
53
  hoverStopPropagation?: boolean
54
54
  /** 按住后多久出现点击态,单位毫秒
55
55
  * @default 20
56
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
56
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
57
57
  */
58
58
  hoverStartTime?: number
59
59
  /** 手指松开后点击态保留时间,单位毫秒
60
60
  * @default 70
61
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
61
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
62
62
  */
63
63
  hoverStayTime?: number
64
64
  /** 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。
@@ -527,7 +527,7 @@ declare namespace ButtonProps {
527
527
  }
528
528
  /** 按钮
529
529
  * @classification forms
530
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
530
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
531
531
  * @example_react
532
532
  * ```tsx
533
533
  * export default class PageButton extends Component {
package/types/Canvas.d.ts CHANGED
@@ -6,7 +6,7 @@ interface CanvasProps extends StandardProps<any, CanvasTouchEvent> {
6
6
  */
7
7
  type?: string
8
8
  /** canvas 组件的唯一标识符,若指定了 type 则无需再指定该属性
9
- * @supported weapp, swan, tt, qq, jd, h5
9
+ * @supported weapp, swan, tt, qq, jd, h5, harmony_hybrid
10
10
  */
11
11
  canvasId?: string
12
12
  /** 当在 canvas 中移动时且有绑定手势事件时,禁止屏幕滚动以及下拉刷新
@@ -16,39 +16,39 @@ interface CanvasProps extends StandardProps<any, CanvasTouchEvent> {
16
16
  disableScroll?: boolean
17
17
  /** 组件唯一标识符。
18
18
  * 注意:同一页面中的 id 不可重复。
19
- * @supported alipay, h5
19
+ * @supported alipay, h5, harmony_hybrid
20
20
  */
21
21
  id?: string
22
22
  /**
23
- * @supported alipay, h5
23
+ * @supported alipay, h5, harmony_hybrid
24
24
  */
25
25
  width?: string
26
26
  /**
27
- * @supported alipay, h5
27
+ * @supported alipay, h5, harmony_hybrid
28
28
  */
29
29
  height?: string
30
30
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
31
- * @supported h5
31
+ * @supported h5, harmony_hybrid
32
32
  */
33
33
  nativeProps?: Record<string, unknown>
34
34
  /** 手指触摸动作开始
35
- * @supported weapp, alipay, swan, tt, qq, jd, h5
35
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
36
36
  */
37
37
  onTouchStart?: CanvasTouchEventFunction
38
38
  /** 手指触摸后移动
39
- * @supported weapp, alipay, swan, tt, qq, jd, h5
39
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
40
40
  */
41
41
  onTouchMove?: CanvasTouchEventFunction
42
42
  /** 手指触摸动作结束
43
- * @supported weapp, alipay, swan, tt, qq, jd, h5
43
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
44
44
  */
45
45
  onTouchEnd?: CanvasTouchEventFunction
46
46
  /** 手指触摸动作被打断,如来电提醒,弹窗
47
- * @supported weapp, alipay, swan, tt, qq, jd, h5
47
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony_hybrid
48
48
  */
49
49
  onTouchCancel?: CanvasTouchEventFunction
50
50
  /** 手指长按 500ms 之后触发,触发了长按事件后进行移动不会触发屏幕的滚动
51
- * @supported weapp, alipay, swan, qq, jd, h5
51
+ * @supported weapp, alipay, swan, qq, jd, h5, harmony_hybrid
52
52
  */
53
53
  onLongTap?: CommonEventFunction
54
54
  /** 当发生错误时触发 error 事件,detail = {errMsg: 'something wrong'}
@@ -73,7 +73,7 @@ declare namespace CanvasProps {
73
73
  *
74
74
  * `<Canvas />` 组件的 RN 版本尚未实现。
75
75
  * @classification canvas
76
- * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony
76
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony, harmony_hybrid
77
77
  * @example_react
78
78
  * ```tsx
79
79
  * class App extends Components {
@@ -2,30 +2,30 @@ import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction, FormItemProps } from './common'
3
3
  interface CheckboxProps extends StandardProps {
4
4
  /** `<Checkbox/>`标识,选中时触发`<CheckboxGroup/>`的 change 事件,并携带 `<Checkbox/>` 的 value
5
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
6
6
  */
7
7
  value: string
8
8
  /** 是否禁用
9
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
9
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
10
10
  * @default false
11
11
  */
12
12
  disabled?: boolean
13
13
  /** 当前是否选中,可用来设置默认选中
14
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
14
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
15
15
  * @default false
16
16
  */
17
17
  checked?: boolean
18
18
  /** checkbox的颜色,同 css 的 color
19
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
19
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
20
20
  */
21
21
  color?: string
22
22
  /**
23
23
  * Checkbox 的名字
24
- * @supported h5, harmony
24
+ * @supported h5, harmony, harmony_hybrid
25
25
  */
26
26
  name?: string
27
27
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
28
- * @supported h5
28
+ * @supported h5, harmony_hybrid
29
29
  */
30
30
  nativeProps?: Record<string, unknown>
31
31
  /** 无障碍访问,(属性)元素的额外描述
@@ -33,7 +33,7 @@ interface CheckboxProps extends StandardProps {
33
33
  */
34
34
  ariaLabel?: string
35
35
  /** 选中项发生变化时触发 change 事件,小程序无此 API
36
- * @supported alipay, h5, rn, harmony
36
+ * @supported alipay, h5, rn, harmony, harmony_hybrid
37
37
  */
38
38
  onChange?: CommonEventFunction<{
39
39
  value: string[]
@@ -41,7 +41,7 @@ interface CheckboxProps extends StandardProps {
41
41
  }
42
42
  /** 多选项目
43
43
  * @classification forms
44
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
44
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
45
45
  * @example_react
46
46
  * ```tsx
47
47
  * export default class PageCheckbox extends Component {
@@ -2,11 +2,11 @@ import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction, FormItemProps } from './common'
3
3
  interface CheckboxGroupProps extends StandardProps, FormItemProps {
4
4
  /** 表单组件中加上 name 来作为 key
5
- * @supported alipay, tt, h5
5
+ * @supported alipay, tt, h5, harmony_hybrid
6
6
  */
7
7
  name?: string
8
8
  /** `<CheckboxGroup/>` 中选中项发生改变是触发 change 事件
9
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
9
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
10
10
  */
11
11
  onChange?: CommonEventFunction<{
12
12
  value: string[]
@@ -14,7 +14,7 @@ interface CheckboxGroupProps extends StandardProps, FormItemProps {
14
14
  }
15
15
  /** 多项选择器,内部由多个checkbox组成
16
16
  * @classification forms
17
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
17
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
18
18
  * @example
19
19
  * ```tsx
20
20
  * export default class PageCheckbox extends Component {
@@ -2,7 +2,7 @@ import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction } from './common'
3
3
  interface CoverImageProps extends StandardProps {
4
4
  /** 图标路径,支持临时路径、网络地址、云文件ID。暂不支持base64格式。
5
- * @supported weapp, alipay, swan, qq, jd, h5
5
+ * @supported weapp, alipay, swan, qq, jd, h5, harmony_hybrid
6
6
  */
7
7
  src: string
8
8
  /** 格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;
@@ -34,11 +34,11 @@ interface CoverImageProps extends StandardProps {
34
34
  */
35
35
  ariaLabel?: string
36
36
  /** 图片加载成功时触发
37
- * @supported weapp, swan, qq, jd, h5
37
+ * @supported weapp, swan, qq, jd, h5, harmony_hybrid
38
38
  */
39
39
  onLoad?: CommonEventFunction
40
40
  /** 图片加载失败时触发
41
- * @supported weapp, swan, qq, jd, h5
41
+ * @supported weapp, swan, qq, jd, h5, harmony_hybrid
42
42
  */
43
43
  onError?: CommonEventFunction
44
44
  /** 点击事件回调。
@@ -48,7 +48,7 @@ interface CoverImageProps extends StandardProps {
48
48
  }
49
49
  /** 覆盖在原生组件之上的图片视图。可覆盖的原生组件同cover-view,支持嵌套在cover-view里。
50
50
  * @classification viewContainer
51
- * @supported weapp, alipay, swan, qq, jd, h5
51
+ * @supported weapp, alipay, swan, qq, jd, h5, harmony_hybrid
52
52
  * @example_react
53
53
  * ```tsx
54
54
  * // js
@@ -117,7 +117,7 @@ interface CoverViewProps extends ViewProps {
117
117
  }
118
118
  /** 覆盖在原生组件之上的文本视图。可覆盖的原生组件包括 map、video、canvas、camera、live-player、live-pusher 只支持嵌套 cover-view、cover-image,可在 cover-view 中使用 button。
119
119
  * @classification viewContainer
120
- * @supported weapp, alipay, swan, qq, jd, h5
120
+ * @supported weapp, alipay, swan, qq, jd, h5, harmony_hybrid
121
121
  * @example_react
122
122
  * ```tsx
123
123
  * // js
@@ -7,7 +7,7 @@ interface CustomWrapperProps extends StandardProps {
7
7
  /** custom-wrapper 自定义组件包裹器
8
8
  * 当数据更新层级较深时,可用此组件将需要更新的区域包裹起来,这样更新层级将大大减少
9
9
  * @classification viewContainer
10
- * @supported weapp, swan, alipay, tt, jd, qq, h5
10
+ * @supported weapp, swan, alipay, tt, jd, qq, h5, harmony_hybrid
11
11
  * @example
12
12
  * ```tsx
13
13
  * import { Component } from 'react'
package/types/Form.d.ts CHANGED
@@ -3,7 +3,7 @@ import { StandardProps, CommonEventFunction } from './common'
3
3
  interface FormProps extends StandardProps {
4
4
  /** 是否返回 `formId` 用于发送模板消息。
5
5
  * @default false
6
- * @supported weapp, alipay, swan, qq, jd, h5
6
+ * @supported weapp, alipay, swan, qq, jd, h5, harmony_hybrid
7
7
  */
8
8
  reportSubmit?: boolean
9
9
  /** 等待一段时间(毫秒数)以确认 `formId` 是否生效。
@@ -43,11 +43,11 @@ interface FormProps extends StandardProps {
43
43
  */
44
44
  clueComponentId?: string
45
45
  /** 携带 form 中的数据触发 submit 事件
46
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
46
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
47
47
  */
48
48
  onSubmit?: CommonEventFunction<FormProps.onSubmitEventDetail>
49
49
  /** 表单重置时会触发 reset 事件
50
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
50
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
51
51
  */
52
52
  onReset?: CommonEventFunction
53
53
  }
@@ -69,7 +69,7 @@ declare namespace FormProps {
69
69
  *
70
70
  * 当点击 form 表单中 form-type 为 submit 的 button 组件时,会将表单组件中的 value 值进行提交,需要在表单组件中加上 name 来作为 key。
71
71
  * @classification forms
72
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
72
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
73
73
  * @example_react
74
74
  * ```tsx
75
75
  * class App extends Component {
package/types/Icon.d.ts CHANGED
@@ -2,16 +2,16 @@ import { ComponentType } from 'react'
2
2
  import { StandardProps } from './common'
3
3
  interface IconProps extends StandardProps {
4
4
  /** icon 的类型
5
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
6
6
  */
7
7
  type: keyof IconProps.TIconType
8
8
  /** icon 的大小,单位px
9
9
  * @default 23
10
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
10
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
11
11
  */
12
12
  size?: number
13
13
  /** icon 的颜色,同 css 的 color
14
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
14
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
15
15
  */
16
16
  color?: string
17
17
  /** 无障碍访问,(属性)元素的额外描述
@@ -48,7 +48,7 @@ declare namespace IconProps {
48
48
  }
49
49
  /** 图标。组件属性的长度单位默认为 px
50
50
  * @classification base
51
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
51
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
52
52
  * @example_react
53
53
  * ```tsx
54
54
  * export default class PageView extends Component {
package/types/Image.d.ts CHANGED
@@ -2,12 +2,12 @@ import { ComponentType, ImgHTMLAttributes } from 'react'
2
2
  import { StandardProps, CommonEventFunction } from './common'
3
3
  interface ImageProps extends StandardProps {
4
4
  /** 图片资源地址
5
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
6
6
  */
7
7
  src: string
8
8
  /** 图片裁剪、缩放的模式
9
9
  * @default "scaleToFill"
10
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
10
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
11
11
  * @rn 部分支持 scaleToFill, aspectFit, aspectFill, widthFix
12
12
  * @harmony 部分支持 scaleToFill, aspectFit, aspectFill, widthFix, heightFix
13
13
  */
@@ -24,7 +24,7 @@ interface ImageProps extends StandardProps {
24
24
  svg?: boolean
25
25
  /** 图片懒加载。只针对 page 与 scroll-view 下的 image 有效
26
26
  * @default false
27
- * @supported weapp, alipay, swan, tt, qq, h5
27
+ * @supported weapp, alipay, swan, tt, qq, h5, harmony_hybrid
28
28
  */
29
29
  lazyLoad?: boolean
30
30
  /** 开启长按图片显示识别小程序码菜单
@@ -34,11 +34,11 @@ interface ImageProps extends StandardProps {
34
34
  showMenuByLongpress?: boolean
35
35
  /**
36
36
  * 为 img 标签额外增加的属性
37
- * @supported h5
37
+ * @supported h5, harmony_hybrid
38
38
  */
39
39
  imgProps?: ImgHTMLAttributes<HTMLImageElement>
40
40
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
41
- * @supported h5
41
+ * @supported h5, harmony_hybrid
42
42
  */
43
43
  nativeProps?: Record<string, unknown>
44
44
  /** 默认图片地址,若设置默认图片地址,会先显示默认图片,等 src 对应的图片加载成功后,再渲染对应的图片。
@@ -67,11 +67,11 @@ interface ImageProps extends StandardProps {
67
67
  */
68
68
  fadeIn?: boolean
69
69
  /** 当错误发生时,发布到 AppService 的事件名,事件对象
70
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
70
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
71
71
  */
72
72
  onError?: CommonEventFunction<ImageProps.onErrorEventDetail>
73
73
  /** 当图片载入完毕时,发布到 AppService 的事件名,事件对象
74
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
74
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
75
75
  */
76
76
  onLoad?: CommonEventFunction<ImageProps.onLoadEventDetail>
77
77
  /** 点击图片时触发。
@@ -130,7 +130,7 @@ declare namespace ImageProps {
130
130
  *
131
131
  * **Note:** 为实现小程序的 `mode` 特性,在 H5 组件中使用一个 `div` 容器来对内部的 `img` 进行展示区域的裁剪,因此请勿使用元素选择器来重置 `img` 的样式!
132
132
  * @classification media
133
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
133
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
134
134
  * @example_react
135
135
  * ```tsx
136
136
  * export default class PageView extends Component {
package/types/Input.d.ts CHANGED
@@ -2,21 +2,25 @@ import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction, FormItemProps } from './common'
3
3
  interface InputProps extends StandardProps, FormItemProps {
4
4
  /** 输入框的初始内容
5
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
6
6
  */
7
7
  value?: string
8
+ /** 设置 React 非受控输入框的初始内容
9
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
10
+ */
11
+ defaultValue?: string
8
12
  /** input 的类型
9
13
  * @default "text"
10
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
14
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
11
15
  */
12
16
  type?: keyof InputProps.Type
13
17
  /** 是否是密码类型
14
18
  * @default false
15
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
19
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
16
20
  */
17
21
  password?: boolean
18
22
  /** 输入框为空时占位符
19
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
23
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
20
24
  */
21
25
  placeholder?: string
22
26
  /** 指定 placeholder 的样式
@@ -34,12 +38,12 @@ interface InputProps extends StandardProps, FormItemProps {
34
38
  placeholderTextColor?: string
35
39
  /** 是否禁用
36
40
  * @default false
37
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
41
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
38
42
  */
39
43
  disabled?: boolean
40
44
  /** 最大输入长度,设置为 -1 的时候不限制最大长度
41
45
  * @default 140
42
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
46
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
43
47
  */
44
48
  maxlength?: number
45
49
  /** 指定光标与键盘的距离,单位 px 。取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离
@@ -50,12 +54,12 @@ interface InputProps extends StandardProps, FormItemProps {
50
54
  /** (即将废弃,请直接使用 focus )自动聚焦,拉起键盘
51
55
  * @default false
52
56
  * @deprecated
53
- * @supported weapp, qq, jd, h5
57
+ * @supported weapp, qq, jd, h5, harmony_hybrid
54
58
  */
55
59
  autoFocus?: boolean
56
60
  /** 获取焦点
57
61
  * @default false
58
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
62
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
59
63
  */
60
64
  focus?: boolean
61
65
  /** 设置键盘右下角按钮的文字,仅在type='text'时生效
@@ -144,7 +148,7 @@ interface InputProps extends StandardProps, FormItemProps {
144
148
  */
145
149
  controlled?: boolean
146
150
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
147
- * @supported h5
151
+ * @supported h5, harmony_hybrid
148
152
  */
149
153
  nativeProps?: Record<string, unknown>
150
154
  /** 组件名字,用于表单提交获取数据。
@@ -166,19 +170,19 @@ interface InputProps extends StandardProps, FormItemProps {
166
170
  */
167
171
  clueType?: number
168
172
  /** 当键盘输入时,触发input事件,event.detail = {value, cursor, keyCode},处理函数可以直接 return 一个字符串,将替换输入框的内容。
169
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
173
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
170
174
  */
171
175
  onInput?: CommonEventFunction<InputProps.inputEventDetail>
172
176
  /** 输入框聚焦时触发,event.detail = { value, height },height 为键盘高度
173
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
177
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
174
178
  */
175
179
  onFocus?: CommonEventFunction<InputProps.inputForceEventDetail>
176
180
  /** 输入框失去焦点时触发
177
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
181
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
178
182
  */
179
183
  onBlur?: CommonEventFunction<InputProps.inputValueEventDetail>
180
184
  /** 点击完成按钮时触发
181
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
185
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
182
186
  */
183
187
  onConfirm?: CommonEventFunction<InputProps.inputValueEventDetail>
184
188
  /** 键盘高度发生变化的时候触发此事件
@@ -194,11 +198,11 @@ declare namespace InputProps {
194
198
  /** Input 类型 */
195
199
  interface Type {
196
200
  /** 文本输入键盘
197
- * @supported weapp, alipay, h5, rn
201
+ * @supported weapp, alipay, h5, rn, harmony_hybrid
198
202
  */
199
203
  text
200
204
  /** 数字输入键盘
201
- * @supported weapp, alipay, h5, rn
205
+ * @supported weapp, alipay, h5, rn, harmony_hybrid
202
206
  */
203
207
  number
204
208
  /** 身份证输入键盘
@@ -206,7 +210,7 @@ declare namespace InputProps {
206
210
  */
207
211
  idcard
208
212
  /** 带小数点的数字键盘
209
- * @supported weapp, alipay, h5, rn
213
+ * @supported weapp, alipay, h5, rn, harmony_hybrid
210
214
  */
211
215
  digit
212
216
  /** 密码安全输入键盘[指引](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/safe-password.html)
@@ -271,7 +275,7 @@ declare namespace InputProps {
271
275
  }
272
276
  /** 输入框。该组件是原生组件,使用时请注意相关限制
273
277
  * @classification forms
274
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
278
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid
275
279
  * @example_react
276
280
  * ```tsx
277
281
  * class App extends Component {
package/types/Label.d.ts CHANGED
@@ -2,7 +2,7 @@ import { ComponentType } from 'react'
2
2
  import { StandardProps } from './common'
3
3
  interface LabelProps extends StandardProps {
4
4
  /** 绑定控件的 id
5
- * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, harmony, harmony_hybrid
6
6
  */
7
7
  for?: string
8
8
  }
@@ -10,7 +10,7 @@ interface LabelProps extends StandardProps {
10
10
  *
11
11
  * 使用for属性找到对应的id,或者将控件放在该标签下,当点击时,就会触发对应的控件。 for优先级高于内部控件,内部有多个控件的时候默认触发第一个控件。 目前可以绑定的控件有:button, checkbox, radio, switch。
12
12
  * @classification forms
13
- * @supported weapp, swan, alipay, tt, h5, rn, harmony
13
+ * @supported weapp, swan, alipay, tt, h5, rn, harmony, harmony_hybrid
14
14
  * @example_react
15
15
  * ```tsx
16
16
  * class App extends Components {