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

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 (614) hide show
  1. package/LICENSE +14 -0
  2. package/dist/cjs/{index-5a8221ec.js → index-5b029707.js} +208 -2
  3. package/dist/cjs/{index-dfd8638f.js → index-8a70c333.js} +6 -0
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
  6. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
  7. package/dist/cjs/taro-animation-video-core.cjs.entry.js +1 -1
  8. package/dist/cjs/taro-animation-view-core.cjs.entry.js +1 -1
  9. package/dist/cjs/taro-ar-camera-core.cjs.entry.js +1 -1
  10. package/dist/cjs/taro-audio-core.cjs.entry.js +2 -2
  11. package/dist/cjs/taro-aweme-data-core.cjs.entry.js +1 -1
  12. package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
  13. package/dist/cjs/taro-button-core.cjs.entry.js +3 -3
  14. package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-canvas-core.cjs.entry.js +2 -2
  16. package/dist/cjs/taro-channel-live-core.cjs.entry.js +1 -1
  17. package/dist/cjs/taro-channel-video-core.cjs.entry.js +1 -1
  18. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +2 -2
  19. package/dist/cjs/taro-comment-detail-core.cjs.entry.js +1 -1
  20. package/dist/cjs/taro-comment-list-core.cjs.entry.js +1 -1
  21. package/dist/cjs/taro-components.cjs.js +2 -2
  22. package/dist/cjs/taro-contact-button-core.cjs.entry.js +1 -1
  23. package/dist/cjs/taro-cover-image-core.cjs.entry.js +2 -2
  24. package/dist/cjs/taro-cover-view-core.cjs.entry.js +2 -2
  25. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
  26. package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
  27. package/dist/cjs/taro-follow-swan-core.cjs.entry.js +1 -1
  28. package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
  29. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
  30. package/dist/cjs/taro-grid-view-core.cjs.entry.js +1 -1
  31. package/dist/cjs/taro-icon-core.cjs.entry.js +5 -2
  32. package/dist/cjs/taro-image-core.cjs.entry.js +7 -6
  33. package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +1 -1
  34. package/dist/cjs/taro-input-core.cjs.entry.js +2 -2
  35. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
  36. package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
  37. package/dist/cjs/taro-lifestyle-core.cjs.entry.js +1 -1
  38. package/dist/cjs/taro-like-core.cjs.entry.js +1 -1
  39. package/dist/cjs/taro-list-view-core.cjs.entry.js +1 -1
  40. package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
  41. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
  42. package/dist/cjs/taro-login-core.cjs.entry.js +1 -1
  43. package/dist/cjs/taro-lottie-core.cjs.entry.js +1 -1
  44. package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
  45. package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
  46. package/dist/cjs/taro-movable-area-core_2.cjs.entry.js +5 -4
  47. package/dist/cjs/taro-native-slot-core.cjs.entry.js +1 -1
  48. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
  49. package/dist/cjs/taro-navigator-core.cjs.entry.js +2 -2
  50. package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
  51. package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
  52. package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
  53. package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
  54. package/dist/cjs/taro-picker-core_2.cjs.entry.js +3 -3
  55. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +5 -5
  56. package/dist/cjs/taro-progress-core.cjs.entry.js +4 -1
  57. package/dist/cjs/taro-pull-to-refresh-core.cjs.entry.js +6 -3
  58. package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
  59. package/dist/cjs/taro-rich-text-core.cjs.entry.js +2 -2
  60. package/dist/cjs/taro-root-portal-core.cjs.entry.js +1 -1
  61. package/dist/cjs/taro-rtc-room-core.cjs.entry.js +1 -1
  62. package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +1 -1
  63. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +4 -4
  64. package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
  65. package/dist/cjs/taro-slider-core.cjs.entry.js +4 -1
  66. package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
  67. package/dist/cjs/taro-snapshot-core.cjs.entry.js +1 -1
  68. package/dist/cjs/taro-sticky-header-core.cjs.entry.js +1 -1
  69. package/dist/cjs/taro-sticky-section-core.cjs.entry.js +1 -1
  70. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +23 -9865
  71. package/dist/cjs/taro-switch-core.cjs.entry.js +13 -12
  72. package/dist/cjs/taro-tab-item-core.cjs.entry.js +1 -1
  73. package/dist/cjs/taro-tabbar.cjs.entry.js +15 -87
  74. package/dist/cjs/taro-tabs-core.cjs.entry.js +1 -1
  75. package/dist/cjs/taro-text-core.cjs.entry.js +2 -2
  76. package/dist/cjs/taro-textarea-core.cjs.entry.js +12 -3
  77. package/dist/cjs/taro-video-control_3.cjs.entry.js +26 -6
  78. package/dist/cjs/taro-view-core.cjs.entry.js +3 -3
  79. package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
  80. package/dist/cjs/taro-web-view-core.cjs.entry.js +2 -2
  81. package/dist/collection/components/audio/style/index.css +1 -4
  82. package/dist/collection/components/button/style/index.css +1 -160
  83. package/dist/collection/components/canvas/style/index.css +1 -6
  84. package/dist/collection/components/checkbox/style/index.css +1 -39
  85. package/dist/collection/components/cover-image/style/index.css +1 -5
  86. package/dist/collection/components/cover-view/style/cover-view.css +1 -3
  87. package/dist/collection/components/icon/icon.js +10 -0
  88. package/dist/collection/components/icon/style/index.css +1 -0
  89. package/dist/collection/components/image/image.js +4 -3
  90. package/dist/collection/components/image/style/index.css +1 -73
  91. package/dist/collection/components/input/input.js +2 -2
  92. package/dist/collection/components/input/style/index.css +1 -0
  93. package/dist/collection/components/movable-area/area.css +1 -6
  94. package/dist/collection/components/movable-area/movable-area.js +2 -1
  95. package/dist/collection/components/movable-area/view.css +1 -8
  96. package/dist/collection/components/navigator/style/index.css +1 -3
  97. package/dist/collection/components/picker/style/index.css +1 -4
  98. package/dist/collection/components/picker-view/style/column.css +1 -12
  99. package/dist/collection/components/picker-view/style/index.css +1 -28
  100. package/dist/collection/components/progress/progress.js +10 -0
  101. package/dist/collection/components/progress/style/index.css +1 -0
  102. package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +3 -0
  103. package/dist/collection/components/pull-to-refresh/style/index.css +1 -52
  104. package/dist/collection/components/rich-text/style/index.css +1 -16
  105. package/dist/collection/components/scroll-view/style/index.css +1 -17
  106. package/dist/collection/components/slider/slider.js +10 -0
  107. package/dist/collection/components/slider/style/index.css +1 -0
  108. package/dist/collection/components/swiper/style/index.css +2 -19
  109. package/dist/collection/components/swiper/swiper.js +4 -2
  110. package/dist/collection/components/switch/style/index.css +1 -10
  111. package/dist/collection/components/switch/switch.js +12 -12
  112. package/dist/collection/components/tabbar/style/index.css +1 -53
  113. package/dist/collection/components/tabbar/tabbar.js +1 -1
  114. package/dist/collection/components/text/style/index.css +1 -26
  115. package/dist/collection/components/textarea/style/index.css +1 -22
  116. package/dist/collection/components/textarea/textarea.js +11 -0
  117. package/dist/collection/components/video/style/index.css +1 -327
  118. package/dist/collection/components/view/style/index.css +1 -9
  119. package/dist/collection/components/web-view/style/index.css +1 -12
  120. package/dist/collection/utils/index.js +10 -0
  121. package/dist/components/index3.js +6 -1
  122. package/dist/components/taro-audio-core.js +1 -1
  123. package/dist/components/taro-button-core.js +1 -1
  124. package/dist/components/taro-canvas-core.js +1 -1
  125. package/dist/components/taro-checkbox-core.js +1 -1
  126. package/dist/components/taro-cover-image-core.js +1 -1
  127. package/dist/components/taro-icon-core.js +3 -0
  128. package/dist/components/taro-image-core.js +5 -4
  129. package/dist/components/taro-input-core.js +1 -1
  130. package/dist/components/taro-movable-area-core.js +3 -2
  131. package/dist/components/taro-movable-view-core.js +1 -1
  132. package/dist/components/taro-picker-core.js +1 -1
  133. package/dist/components/taro-picker-view-column-core.js +1 -1
  134. package/dist/components/taro-picker-view-core.js +1 -1
  135. package/dist/components/taro-progress-core.js +3 -0
  136. package/dist/components/taro-pull-to-refresh-core.js +4 -1
  137. package/dist/components/taro-rich-text-core.js +1 -1
  138. package/dist/components/taro-scroll-view-core.js +1 -1
  139. package/dist/components/taro-slider-core.js +3 -0
  140. package/dist/components/taro-swiper-core.js +9 -9855
  141. package/dist/components/taro-switch-core.js +13 -13
  142. package/dist/components/taro-tabbar.js +4 -77
  143. package/dist/components/taro-text-core.js +1 -1
  144. package/dist/components/taro-textarea-core.js +11 -2
  145. package/dist/components/taro-video-core.js +2 -2
  146. package/dist/components/taro-view-core.js +1 -1
  147. package/dist/components/taro-web-view-core.js +1 -1
  148. package/dist/esm/{index-d1b03e47.js → index-a00a7418.js} +6 -1
  149. package/dist/esm/{index-6bb77c5f.js → index-ab3c86da.js} +208 -2
  150. package/dist/esm/loader.js +3 -3
  151. package/dist/esm/taro-ad-core.entry.js +1 -1
  152. package/dist/esm/taro-ad-custom-core.entry.js +1 -1
  153. package/dist/esm/taro-animation-video-core.entry.js +1 -1
  154. package/dist/esm/taro-animation-view-core.entry.js +1 -1
  155. package/dist/esm/taro-ar-camera-core.entry.js +1 -1
  156. package/dist/esm/taro-audio-core.entry.js +2 -2
  157. package/dist/esm/taro-aweme-data-core.entry.js +1 -1
  158. package/dist/esm/taro-block-core.entry.js +1 -1
  159. package/dist/esm/taro-button-core.entry.js +3 -3
  160. package/dist/esm/taro-camera-core.entry.js +1 -1
  161. package/dist/esm/taro-canvas-core.entry.js +2 -2
  162. package/dist/esm/taro-channel-live-core.entry.js +1 -1
  163. package/dist/esm/taro-channel-video-core.entry.js +1 -1
  164. package/dist/esm/taro-checkbox-core_2.entry.js +2 -2
  165. package/dist/esm/taro-comment-detail-core.entry.js +1 -1
  166. package/dist/esm/taro-comment-list-core.entry.js +1 -1
  167. package/dist/esm/taro-components.js +3 -3
  168. package/dist/esm/taro-contact-button-core.entry.js +1 -1
  169. package/dist/esm/taro-cover-image-core.entry.js +2 -2
  170. package/dist/esm/taro-cover-view-core.entry.js +2 -2
  171. package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
  172. package/dist/esm/taro-editor-core.entry.js +1 -1
  173. package/dist/esm/taro-follow-swan-core.entry.js +1 -1
  174. package/dist/esm/taro-form-core.entry.js +1 -1
  175. package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
  176. package/dist/esm/taro-grid-view-core.entry.js +1 -1
  177. package/dist/esm/taro-icon-core.entry.js +5 -2
  178. package/dist/esm/taro-image-core.entry.js +7 -6
  179. package/dist/esm/taro-inline-payment-panel-core.entry.js +1 -1
  180. package/dist/esm/taro-input-core.entry.js +2 -2
  181. package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
  182. package/dist/esm/taro-label-core.entry.js +1 -1
  183. package/dist/esm/taro-lifestyle-core.entry.js +1 -1
  184. package/dist/esm/taro-like-core.entry.js +1 -1
  185. package/dist/esm/taro-list-view-core.entry.js +1 -1
  186. package/dist/esm/taro-live-player-core.entry.js +1 -1
  187. package/dist/esm/taro-live-pusher-core.entry.js +1 -1
  188. package/dist/esm/taro-login-core.entry.js +1 -1
  189. package/dist/esm/taro-lottie-core.entry.js +1 -1
  190. package/dist/esm/taro-map-core.entry.js +1 -1
  191. package/dist/esm/taro-match-media-core.entry.js +1 -1
  192. package/dist/esm/taro-movable-area-core_2.entry.js +5 -4
  193. package/dist/esm/taro-native-slot-core.entry.js +1 -1
  194. package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
  195. package/dist/esm/taro-navigator-core.entry.js +2 -2
  196. package/dist/esm/taro-official-account-core.entry.js +1 -1
  197. package/dist/esm/taro-open-data-core.entry.js +1 -1
  198. package/dist/esm/taro-page-container-core.entry.js +1 -1
  199. package/dist/esm/taro-page-meta-core.entry.js +1 -1
  200. package/dist/esm/taro-picker-core_2.entry.js +3 -3
  201. package/dist/esm/taro-picker-view-column-core_2.entry.js +5 -5
  202. package/dist/esm/taro-progress-core.entry.js +4 -1
  203. package/dist/esm/taro-pull-to-refresh-core.entry.js +6 -3
  204. package/dist/esm/taro-radio-core_2.entry.js +1 -1
  205. package/dist/esm/taro-rich-text-core.entry.js +2 -2
  206. package/dist/esm/taro-root-portal-core.entry.js +1 -1
  207. package/dist/esm/taro-rtc-room-core.entry.js +1 -1
  208. package/dist/esm/taro-rtc-room-item-core.entry.js +1 -1
  209. package/dist/esm/taro-scroll-view-core.entry.js +4 -4
  210. package/dist/esm/taro-share-element-core.entry.js +1 -1
  211. package/dist/esm/taro-slider-core.entry.js +4 -1
  212. package/dist/esm/taro-slot-core.entry.js +1 -1
  213. package/dist/esm/taro-snapshot-core.entry.js +1 -1
  214. package/dist/esm/taro-sticky-header-core.entry.js +1 -1
  215. package/dist/esm/taro-sticky-section-core.entry.js +1 -1
  216. package/dist/esm/taro-swiper-core_2.entry.js +10 -9856
  217. package/dist/esm/taro-switch-core.entry.js +13 -12
  218. package/dist/esm/taro-tab-item-core.entry.js +1 -1
  219. package/dist/esm/taro-tabbar.entry.js +6 -79
  220. package/dist/esm/taro-tabs-core.entry.js +1 -1
  221. package/dist/esm/taro-text-core.entry.js +2 -2
  222. package/dist/esm/taro-textarea-core.entry.js +12 -3
  223. package/dist/esm/taro-video-control_3.entry.js +5 -5
  224. package/dist/esm/taro-view-core.entry.js +3 -3
  225. package/dist/esm/taro-voip-room-core.entry.js +1 -1
  226. package/dist/esm/taro-web-view-core.entry.js +2 -2
  227. package/dist/esm-es5/index-a00a7418.js +1 -0
  228. package/dist/esm-es5/index-ab3c86da.js +2 -0
  229. package/dist/esm-es5/loader.js +1 -1
  230. package/dist/esm-es5/taro-ad-core.entry.js +1 -1
  231. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
  232. package/dist/esm-es5/taro-animation-video-core.entry.js +1 -1
  233. package/dist/esm-es5/taro-animation-view-core.entry.js +1 -1
  234. package/dist/esm-es5/taro-ar-camera-core.entry.js +1 -1
  235. package/dist/esm-es5/taro-audio-core.entry.js +1 -1
  236. package/dist/esm-es5/taro-aweme-data-core.entry.js +1 -1
  237. package/dist/esm-es5/taro-block-core.entry.js +1 -1
  238. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  239. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  240. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  241. package/dist/esm-es5/taro-channel-live-core.entry.js +1 -1
  242. package/dist/esm-es5/taro-channel-video-core.entry.js +1 -1
  243. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  244. package/dist/esm-es5/taro-comment-detail-core.entry.js +1 -1
  245. package/dist/esm-es5/taro-comment-list-core.entry.js +1 -1
  246. package/dist/esm-es5/taro-components.js +1 -1
  247. package/dist/esm-es5/taro-contact-button-core.entry.js +1 -1
  248. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
  249. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  250. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
  251. package/dist/esm-es5/taro-editor-core.entry.js +1 -1
  252. package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
  253. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  254. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
  255. package/dist/esm-es5/taro-grid-view-core.entry.js +1 -1
  256. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  257. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  258. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +1 -1
  259. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  260. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
  261. package/dist/esm-es5/taro-label-core.entry.js +1 -1
  262. package/dist/esm-es5/taro-lifestyle-core.entry.js +1 -1
  263. package/dist/esm-es5/taro-like-core.entry.js +1 -1
  264. package/dist/esm-es5/taro-list-view-core.entry.js +1 -1
  265. package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
  266. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
  267. package/dist/esm-es5/taro-login-core.entry.js +1 -1
  268. package/dist/esm-es5/taro-lottie-core.entry.js +1 -1
  269. package/dist/esm-es5/taro-map-core.entry.js +1 -1
  270. package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
  271. package/dist/esm-es5/taro-movable-area-core_2.entry.js +1 -1
  272. package/dist/esm-es5/taro-native-slot-core.entry.js +1 -1
  273. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
  274. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  275. package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
  276. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  277. package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
  278. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
  279. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  280. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
  281. package/dist/esm-es5/taro-progress-core.entry.js +1 -1
  282. package/dist/esm-es5/taro-pull-to-refresh-core.entry.js +1 -1
  283. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  284. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  285. package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
  286. package/dist/esm-es5/taro-rtc-room-core.entry.js +1 -1
  287. package/dist/esm-es5/taro-rtc-room-item-core.entry.js +1 -1
  288. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  289. package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
  290. package/dist/esm-es5/taro-slider-core.entry.js +1 -1
  291. package/dist/esm-es5/taro-slot-core.entry.js +1 -1
  292. package/dist/esm-es5/taro-snapshot-core.entry.js +1 -1
  293. package/dist/esm-es5/taro-sticky-header-core.entry.js +1 -1
  294. package/dist/esm-es5/taro-sticky-section-core.entry.js +1 -1
  295. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  296. package/dist/esm-es5/taro-switch-core.entry.js +1 -1
  297. package/dist/esm-es5/taro-tab-item-core.entry.js +1 -1
  298. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  299. package/dist/esm-es5/taro-tabs-core.entry.js +1 -1
  300. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  301. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  302. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  303. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  304. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
  305. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  306. package/dist/hydrate/index.d.ts +217 -0
  307. package/dist/hydrate/index.js +13054 -0
  308. package/dist/hydrate/package.json +6 -0
  309. package/dist/taro-components/{p-028ad016.system.entry.js → p-0044961f.system.entry.js} +1 -1
  310. package/dist/taro-components/p-010faa87.system.js +1 -0
  311. package/dist/taro-components/{p-2713fc1a.entry.js → p-0132e803.entry.js} +1 -1
  312. package/dist/taro-components/{p-1411cd2e.system.entry.js → p-019124ae.system.entry.js} +1 -1
  313. package/dist/taro-components/{p-d86ce035.system.entry.js → p-04f97133.system.entry.js} +1 -1
  314. package/dist/taro-components/{p-e487b8b4.system.entry.js → p-069ae782.system.entry.js} +1 -1
  315. package/dist/taro-components/p-0d8a0733.entry.js +1 -0
  316. package/dist/taro-components/p-0f95be56.entry.js +1 -0
  317. package/dist/taro-components/p-0fe4660a.entry.js +1 -0
  318. package/dist/taro-components/{p-32b41faa.system.entry.js → p-1087c51a.system.entry.js} +1 -1
  319. package/dist/taro-components/{p-bbbe728b.system.entry.js → p-11c0dc59.system.entry.js} +1 -1
  320. package/dist/taro-components/p-12b967fd.entry.js +1 -0
  321. package/dist/taro-components/{p-20e38f24.entry.js → p-13bf0192.entry.js} +1 -1
  322. package/dist/taro-components/{p-1ac9622e.entry.js → p-13e80cf7.entry.js} +1 -1
  323. package/dist/taro-components/{p-8b604d50.entry.js → p-15c1ce79.entry.js} +1 -1
  324. package/dist/taro-components/p-16705ca9.entry.js +1 -0
  325. package/dist/taro-components/{p-6d7165eb.system.entry.js → p-194ace03.system.entry.js} +1 -1
  326. package/dist/taro-components/p-19b04eb7.entry.js +1 -0
  327. package/dist/taro-components/{p-346162b4.system.entry.js → p-19b993d8.system.entry.js} +1 -1
  328. package/dist/taro-components/p-1b1034dc.entry.js +1 -0
  329. package/dist/taro-components/p-22f6316e.entry.js +1 -0
  330. package/dist/taro-components/p-25636983.entry.js +1 -0
  331. package/dist/taro-components/{p-8c93f3e0.entry.js → p-28bc8a48.entry.js} +1 -1
  332. package/dist/taro-components/p-2b70c348.system.js +2 -0
  333. package/dist/taro-components/p-2d382d0e.entry.js +1 -0
  334. package/dist/taro-components/p-2ebc3182.entry.js +1 -0
  335. package/dist/taro-components/p-2f8ebd28.system.entry.js +1 -0
  336. package/dist/taro-components/p-317c4cad.entry.js +1 -0
  337. package/dist/taro-components/{p-b94dcfbe.entry.js → p-342a2594.entry.js} +1 -1
  338. package/dist/taro-components/p-3430d520.system.entry.js +1 -0
  339. package/dist/taro-components/{p-c968ea43.system.entry.js → p-36ea0ac1.system.entry.js} +1 -1
  340. package/dist/taro-components/{p-aae38fe8.entry.js → p-370cc947.entry.js} +1 -1
  341. package/dist/taro-components/p-378b504c.entry.js +1 -0
  342. package/dist/taro-components/{p-23f15c7b.entry.js → p-37bc198d.entry.js} +1 -1
  343. package/dist/taro-components/{p-4cc2e06e.entry.js → p-39b3e34d.entry.js} +1 -1
  344. package/dist/taro-components/{p-039e15a4.system.entry.js → p-3a0a05fd.system.entry.js} +1 -1
  345. package/dist/taro-components/{p-7ad33036.system.entry.js → p-3a3d40de.system.entry.js} +1 -1
  346. package/dist/taro-components/{p-1c1d9be8.entry.js → p-3d423adc.entry.js} +1 -1
  347. package/dist/taro-components/{p-3aaf0fb7.system.entry.js → p-3eedb8d7.system.entry.js} +1 -1
  348. package/dist/taro-components/p-43932446.entry.js +1 -0
  349. package/dist/taro-components/{p-25fffbbe.system.entry.js → p-46ccb393.system.entry.js} +1 -1
  350. package/dist/taro-components/p-477f8fbd.system.js +1 -0
  351. package/dist/taro-components/p-4824cc94.entry.js +1 -0
  352. package/dist/taro-components/p-48a84765.entry.js +1 -0
  353. package/dist/taro-components/p-49e9b2ff.entry.js +1 -0
  354. package/dist/taro-components/p-4a748c0d.entry.js +1 -0
  355. package/dist/taro-components/{p-9c566d7d.system.entry.js → p-4b5f75b9.system.entry.js} +1 -1
  356. package/dist/taro-components/p-4e63d3bd.entry.js +1 -0
  357. package/dist/taro-components/{p-70c81b7e.entry.js → p-4fcb258a.entry.js} +1 -1
  358. package/dist/taro-components/{p-0780df27.entry.js → p-4ffae31c.entry.js} +1 -1
  359. package/dist/taro-components/{p-a7ecb97a.entry.js → p-50b21f94.entry.js} +1 -1
  360. package/dist/taro-components/p-518a9b73.entry.js +1 -0
  361. package/dist/taro-components/{p-401743f9.system.entry.js → p-52ad5213.system.entry.js} +1 -1
  362. package/dist/taro-components/p-54b24e2f.system.entry.js +1 -0
  363. package/dist/taro-components/{p-cd34c92e.system.entry.js → p-55934653.system.entry.js} +1 -1
  364. package/dist/taro-components/{p-c3c69a95.system.entry.js → p-562eace8.system.entry.js} +1 -1
  365. package/dist/taro-components/p-5893c3ed.js +1 -0
  366. package/dist/taro-components/{p-fdccd9b3.system.entry.js → p-5a78fbdf.system.entry.js} +1 -1
  367. package/dist/taro-components/{p-f43ba9ed.entry.js → p-5b4de079.entry.js} +1 -1
  368. package/dist/taro-components/{p-feddde29.system.entry.js → p-5b86e66b.system.entry.js} +1 -1
  369. package/dist/taro-components/p-5bfdb5f3.entry.js +1 -0
  370. package/dist/taro-components/{p-dea67974.system.entry.js → p-5c0f97d3.system.entry.js} +1 -1
  371. package/dist/taro-components/{p-f8970571.entry.js → p-5dbabb65.entry.js} +1 -1
  372. package/dist/taro-components/p-5f4c6ca5.entry.js +1 -0
  373. package/dist/taro-components/{p-747bdbaa.system.entry.js → p-618ee593.system.entry.js} +1 -1
  374. package/dist/taro-components/p-62df5526.entry.js +1 -0
  375. package/dist/taro-components/{p-1eb875d0.system.entry.js → p-66029061.system.entry.js} +1 -1
  376. package/dist/taro-components/{p-443fe754.system.entry.js → p-69e70cd5.system.entry.js} +1 -1
  377. package/dist/taro-components/{p-3708575b.system.entry.js → p-6c06b440.system.entry.js} +1 -1
  378. package/dist/taro-components/{p-680ba5a1.system.entry.js → p-6f1034a6.system.entry.js} +1 -1
  379. package/dist/taro-components/p-6f3187bc.entry.js +1 -0
  380. package/dist/taro-components/p-6f8926e3.entry.js +1 -0
  381. package/dist/taro-components/{p-c7679d57.entry.js → p-756aa971.entry.js} +1 -1
  382. package/dist/taro-components/p-7615d8a6.system.entry.js +1 -0
  383. package/dist/taro-components/p-77e030e9.system.entry.js +1 -0
  384. package/dist/taro-components/p-7b3ce3af.system.entry.js +1 -0
  385. package/dist/taro-components/p-7b80637e.system.entry.js +1 -0
  386. package/dist/taro-components/p-7e3f0837.entry.js +1 -0
  387. package/dist/taro-components/p-7f3d9184.entry.js +1 -0
  388. package/dist/taro-components/p-80228985.entry.js +1 -0
  389. package/dist/taro-components/{p-6d1e33e1.system.entry.js → p-80fa706c.system.entry.js} +1 -1
  390. package/dist/taro-components/{p-58d410c6.system.entry.js → p-829157b1.system.entry.js} +1 -1
  391. package/dist/taro-components/p-82c5b9d3.entry.js +1 -0
  392. package/dist/taro-components/{p-72d7fae0.system.entry.js → p-82d52f00.system.entry.js} +1 -1
  393. package/dist/taro-components/p-8a6e93ed.entry.js +1 -0
  394. package/dist/taro-components/{p-7dee8f07.system.entry.js → p-8b7e37c9.system.entry.js} +1 -1
  395. package/dist/taro-components/{p-7de7d96c.entry.js → p-8bde1f48.entry.js} +1 -1
  396. package/dist/taro-components/{p-475f9ed3.system.entry.js → p-90ee19f8.system.entry.js} +1 -1
  397. package/dist/taro-components/{p-b4e3f72e.system.entry.js → p-923aa1c8.system.entry.js} +1 -1
  398. package/dist/taro-components/{p-6f45f110.entry.js → p-92b7b545.entry.js} +1 -1
  399. package/dist/taro-components/{p-4ff6ad99.system.entry.js → p-93b39a89.system.entry.js} +1 -1
  400. package/dist/taro-components/{p-f094089c.system.entry.js → p-970a4199.system.entry.js} +1 -1
  401. package/dist/taro-components/{p-810b9a86.system.entry.js → p-97177863.system.entry.js} +1 -1
  402. package/dist/taro-components/p-99440bcc.system.entry.js +1 -0
  403. package/dist/taro-components/{p-3967311b.system.entry.js → p-9f3e0019.system.entry.js} +1 -1
  404. package/dist/taro-components/{p-1c95795d.entry.js → p-a0f42e7f.entry.js} +1 -1
  405. package/dist/taro-components/p-a2f848cc.entry.js +1 -0
  406. package/dist/taro-components/{p-6c48d884.entry.js → p-a6790f39.entry.js} +1 -1
  407. package/dist/taro-components/{p-635fe530.system.entry.js → p-a997cf7c.system.entry.js} +1 -1
  408. package/dist/taro-components/p-aa11b00c.system.entry.js +1 -0
  409. package/dist/taro-components/{p-d8f78d99.system.entry.js → p-adee7f1b.system.entry.js} +1 -1
  410. package/dist/taro-components/{p-fff30a48.entry.js → p-ae99551a.entry.js} +1 -1
  411. package/dist/taro-components/p-aed23034.system.entry.js +1 -0
  412. package/dist/taro-components/p-b259a558.system.entry.js +1 -0
  413. package/dist/taro-components/{p-48c52124.entry.js → p-b3129dec.entry.js} +1 -1
  414. package/dist/taro-components/p-b3419d7f.system.entry.js +1 -0
  415. package/dist/taro-components/p-b43fa9b0.entry.js +1 -0
  416. package/dist/taro-components/p-b4707cdd.entry.js +1 -0
  417. package/dist/taro-components/{p-18ea7e10.system.entry.js → p-b655e854.system.entry.js} +1 -1
  418. package/dist/taro-components/{p-1d3ed211.system.entry.js → p-b66dfc82.system.entry.js} +1 -1
  419. package/dist/taro-components/{p-e769cea4.system.entry.js → p-ba241824.system.entry.js} +1 -1
  420. package/dist/taro-components/p-baea6a63.entry.js +1 -0
  421. package/dist/taro-components/p-bdafd94c.system.entry.js +1 -0
  422. package/dist/taro-components/p-be68ae6e.system.entry.js +1 -0
  423. package/dist/taro-components/p-c0d93f74.entry.js +1 -0
  424. package/dist/taro-components/{p-eab8a6b0.entry.js → p-c0f16127.entry.js} +1 -1
  425. package/dist/taro-components/{p-222573ad.entry.js → p-c253be9f.entry.js} +1 -1
  426. package/dist/taro-components/p-c2da52a5.entry.js +1 -0
  427. package/dist/taro-components/p-c58627f4.entry.js +1 -0
  428. package/dist/taro-components/p-c863ac7f.system.entry.js +1 -0
  429. package/dist/taro-components/{p-178cb282.system.entry.js → p-cee51d71.system.entry.js} +1 -1
  430. package/dist/taro-components/{p-0b6e9013.system.entry.js → p-d12b6a84.system.entry.js} +1 -1
  431. package/dist/taro-components/p-d184903b.entry.js +1 -0
  432. package/dist/taro-components/{p-d81577b8.system.entry.js → p-d1a095bd.system.entry.js} +1 -1
  433. package/dist/taro-components/p-d29a59cd.entry.js +1 -0
  434. package/dist/taro-components/p-da4c4cad.entry.js +1 -0
  435. package/dist/taro-components/p-dbeadc04.system.entry.js +1 -0
  436. package/dist/taro-components/{p-345cb56f.entry.js → p-dc366f18.entry.js} +1 -1
  437. package/dist/taro-components/p-dd7a128d.js +2 -0
  438. package/dist/taro-components/{p-f232cf02.entry.js → p-dde26531.entry.js} +1 -1
  439. package/dist/taro-components/{p-abd51173.system.entry.js → p-de1d495a.system.entry.js} +1 -1
  440. package/dist/taro-components/p-e23769c4.entry.js +1 -0
  441. package/dist/taro-components/{p-e7232d54.system.entry.js → p-e2694a79.system.entry.js} +1 -1
  442. package/dist/taro-components/p-e2a22cd1.entry.js +1 -0
  443. package/dist/taro-components/{p-6e1f0e6d.system.entry.js → p-e41ed824.system.entry.js} +1 -1
  444. package/dist/taro-components/p-e5a80896.system.entry.js +1 -0
  445. package/dist/taro-components/{p-edb9e04e.system.entry.js → p-e5b43c80.system.entry.js} +1 -1
  446. package/dist/taro-components/{p-46a9adcf.system.entry.js → p-e6a2f1bd.system.entry.js} +1 -1
  447. package/dist/taro-components/p-e8753c5c.entry.js +1 -0
  448. package/dist/taro-components/p-ead6e57b.entry.js +1 -0
  449. package/dist/taro-components/p-ec00e517.entry.js +1 -0
  450. package/dist/taro-components/p-ed081b3d.entry.js +1 -0
  451. package/dist/taro-components/{p-aa1ea71b.system.entry.js → p-eda34d91.system.entry.js} +1 -1
  452. package/dist/taro-components/{p-8d797863.system.entry.js → p-ee9d6467.system.entry.js} +1 -1
  453. package/dist/taro-components/{p-3d7626a9.system.entry.js → p-f0056aca.system.entry.js} +1 -1
  454. package/dist/taro-components/p-f470ce9f.system.entry.js +1 -0
  455. package/dist/taro-components/p-f662c928.entry.js +1 -0
  456. package/dist/taro-components/p-f7198b67.system.entry.js +1 -0
  457. package/dist/taro-components/{p-c2259653.system.entry.js → p-f782ee74.system.entry.js} +1 -1
  458. package/dist/taro-components/p-f94c0445.system.entry.js +1 -0
  459. package/dist/taro-components/p-f9a13a5c.entry.js +1 -0
  460. package/dist/taro-components/{p-67dcb636.system.entry.js → p-fbb789a4.system.entry.js} +1 -1
  461. package/dist/taro-components/{p-9f5ebe09.system.entry.js → p-fe1dd94f.system.entry.js} +1 -1
  462. package/dist/taro-components/{p-fbc2b53e.entry.js → p-fe8ee676.entry.js} +1 -1
  463. package/dist/taro-components/{p-03538d40.system.entry.js → p-ffaac078.system.entry.js} +1 -1
  464. package/dist/taro-components/taro-components.css +1 -5
  465. package/dist/taro-components/taro-components.esm.js +1 -1
  466. package/dist/taro-components/taro-components.js +1 -1
  467. package/dist/types/components/switch/switch.d.ts +3 -3
  468. package/dist/types/components/textarea/textarea.d.ts +1 -0
  469. package/dist/types/utils/index.d.ts +2 -0
  470. package/lib/react/react-component-lib/createComponent.js +3 -2
  471. package/lib/react/react-component-lib/createComponent.js.map +1 -1
  472. package/lib/react/react-component-lib/createOverlayComponent.js +1 -1
  473. package/lib/react/react-component-lib/utils/attachProps.d.ts +16 -7
  474. package/lib/react/react-component-lib/utils/attachProps.js +85 -9
  475. package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
  476. package/lib/react/react-component-lib/utils/index.js +1 -1
  477. package/lib/vue2/components-loader.js +1 -1
  478. package/package.json +16 -15
  479. package/types/Audio.d.ts +11 -11
  480. package/types/Button.d.ts +9 -9
  481. package/types/Canvas.d.ts +11 -11
  482. package/types/Checkbox.d.ts +8 -8
  483. package/types/CheckboxGroup.d.ts +3 -3
  484. package/types/CoverImage.d.ts +4 -4
  485. package/types/CoverView.d.ts +1 -1
  486. package/types/CustomWrapper.d.ts +1 -1
  487. package/types/Form.d.ts +4 -4
  488. package/types/Icon.d.ts +4 -4
  489. package/types/Image.d.ts +8 -8
  490. package/types/Input.d.ts +22 -17
  491. package/types/Label.d.ts +2 -2
  492. package/types/Map.d.ts +0 -2
  493. package/types/MovableArea.d.ts +2 -2
  494. package/types/MovableView.d.ts +18 -18
  495. package/types/NativeSlot.d.ts +1 -1
  496. package/types/Navigator.d.ts +8 -8
  497. package/types/PageMeta.d.ts +6 -0
  498. package/types/Picker.d.ts +49 -28
  499. package/types/PickerView.d.ts +6 -1
  500. package/types/PickerViewColumn.d.ts +1 -1
  501. package/types/Progress.d.ts +13 -13
  502. package/types/Radio.d.ts +7 -7
  503. package/types/RadioGroup.d.ts +2 -2
  504. package/types/RichText.d.ts +5 -5
  505. package/types/ScrollView.d.ts +13 -13
  506. package/types/ShareElement.d.ts +1 -0
  507. package/types/Slider.d.ts +18 -13
  508. package/types/Slot.d.ts +1 -1
  509. package/types/Swiper.d.ts +18 -20
  510. package/types/SwiperItem.d.ts +2 -2
  511. package/types/Switch.d.ts +12 -7
  512. package/types/Text.d.ts +4 -4
  513. package/types/Textarea.d.ts +18 -13
  514. package/types/Video.d.ts +30 -30
  515. package/types/View.d.ts +4 -4
  516. package/types/WebView.d.ts +4 -4
  517. package/types/common.d.ts +6 -1
  518. package/dist/cjs/hls-dfcad743.js +0 -25797
  519. package/dist/cjs/intersection-observer-dc4cfcef.js +0 -728
  520. package/dist/collection/components/input/index.css +0 -12
  521. package/dist/components/hls.js +0 -25795
  522. package/dist/components/intersection-observer.js +0 -726
  523. package/dist/esm/hls-268fc25b.js +0 -25795
  524. package/dist/esm/intersection-observer-8e4c7135.js +0 -726
  525. package/dist/esm-es5/hls-268fc25b.js +0 -1
  526. package/dist/esm-es5/index-6bb77c5f.js +0 -2
  527. package/dist/esm-es5/index-d1b03e47.js +0 -1
  528. package/dist/esm-es5/intersection-observer-8e4c7135.js +0 -1
  529. package/dist/taro-components/p-00113225.system.entry.js +0 -1
  530. package/dist/taro-components/p-0030841b.system.js +0 -1
  531. package/dist/taro-components/p-0910d414.entry.js +0 -1
  532. package/dist/taro-components/p-0e37fb54.entry.js +0 -1
  533. package/dist/taro-components/p-11c962b9.entry.js +0 -1
  534. package/dist/taro-components/p-139d64f1.entry.js +0 -1
  535. package/dist/taro-components/p-175edd50.entry.js +0 -1
  536. package/dist/taro-components/p-1f36cd5f.entry.js +0 -1
  537. package/dist/taro-components/p-1f88349b.entry.js +0 -1
  538. package/dist/taro-components/p-2145dccb.entry.js +0 -1
  539. package/dist/taro-components/p-215881b4.entry.js +0 -1
  540. package/dist/taro-components/p-2339a4d3.entry.js +0 -1
  541. package/dist/taro-components/p-277892fe.system.entry.js +0 -1
  542. package/dist/taro-components/p-27c756c5.system.entry.js +0 -1
  543. package/dist/taro-components/p-2aff4cdb.entry.js +0 -1
  544. package/dist/taro-components/p-2e2487bf.system.entry.js +0 -1
  545. package/dist/taro-components/p-332dc867.entry.js +0 -1
  546. package/dist/taro-components/p-333305e3.entry.js +0 -1
  547. package/dist/taro-components/p-35160fd2.entry.js +0 -1
  548. package/dist/taro-components/p-37edf3f6.entry.js +0 -1
  549. package/dist/taro-components/p-3ad92100.system.entry.js +0 -1
  550. package/dist/taro-components/p-3b1d2d37.system.js +0 -1
  551. package/dist/taro-components/p-3cd71da3.system.entry.js +0 -1
  552. package/dist/taro-components/p-4aeb3859.system.entry.js +0 -1
  553. package/dist/taro-components/p-4d609ebb.system.entry.js +0 -1
  554. package/dist/taro-components/p-4d89b685.entry.js +0 -1
  555. package/dist/taro-components/p-527c55ca.entry.js +0 -1
  556. package/dist/taro-components/p-550c350a.entry.js +0 -1
  557. package/dist/taro-components/p-5b028f1b.js +0 -1
  558. package/dist/taro-components/p-619b9fe5.system.entry.js +0 -1
  559. package/dist/taro-components/p-6df6fd58.entry.js +0 -1
  560. package/dist/taro-components/p-6f5e162d.entry.js +0 -1
  561. package/dist/taro-components/p-70bd0541.entry.js +0 -1
  562. package/dist/taro-components/p-728b6f8f.system.entry.js +0 -1
  563. package/dist/taro-components/p-72f327e1.js +0 -1
  564. package/dist/taro-components/p-79b675c8.entry.js +0 -1
  565. package/dist/taro-components/p-7b39971e.system.entry.js +0 -1
  566. package/dist/taro-components/p-7ba17143.entry.js +0 -1
  567. package/dist/taro-components/p-7be1f603.entry.js +0 -1
  568. package/dist/taro-components/p-7e90dfef.js +0 -2
  569. package/dist/taro-components/p-817b319c.system.entry.js +0 -1
  570. package/dist/taro-components/p-907d2fe0.entry.js +0 -1
  571. package/dist/taro-components/p-93a3d6ee.entry.js +0 -1
  572. package/dist/taro-components/p-9c91aee3.system.entry.js +0 -1
  573. package/dist/taro-components/p-9e788d33.entry.js +0 -1
  574. package/dist/taro-components/p-9feeee0f.system.entry.js +0 -1
  575. package/dist/taro-components/p-a3dad439.entry.js +0 -1
  576. package/dist/taro-components/p-a4ea7a51.system.entry.js +0 -1
  577. package/dist/taro-components/p-a54735cb.entry.js +0 -1
  578. package/dist/taro-components/p-a5adbf15.system.entry.js +0 -1
  579. package/dist/taro-components/p-a744e7aa.entry.js +0 -1
  580. package/dist/taro-components/p-b1977132.entry.js +0 -1
  581. package/dist/taro-components/p-b2ad9709.entry.js +0 -1
  582. package/dist/taro-components/p-b3780eab.system.entry.js +0 -1
  583. package/dist/taro-components/p-b69bcd43.entry.js +0 -1
  584. package/dist/taro-components/p-b9c2a210.system.entry.js +0 -1
  585. package/dist/taro-components/p-bb454378.entry.js +0 -1
  586. package/dist/taro-components/p-bd5177d3.system.js +0 -1
  587. package/dist/taro-components/p-bd6574cf.entry.js +0 -1
  588. package/dist/taro-components/p-bfea77f9.entry.js +0 -1
  589. package/dist/taro-components/p-c0a59843.entry.js +0 -1
  590. package/dist/taro-components/p-cb21f4f1.entry.js +0 -1
  591. package/dist/taro-components/p-cd0f3444.entry.js +0 -1
  592. package/dist/taro-components/p-cdd48677.system.js +0 -2
  593. package/dist/taro-components/p-d3c7f87d.js +0 -1
  594. package/dist/taro-components/p-d42968e9.system.entry.js +0 -1
  595. package/dist/taro-components/p-d55f870d.entry.js +0 -1
  596. package/dist/taro-components/p-daabfc6e.entry.js +0 -1
  597. package/dist/taro-components/p-dda03c84.entry.js +0 -1
  598. package/dist/taro-components/p-deff0bb8.entry.js +0 -1
  599. package/dist/taro-components/p-e6e3c1d7.entry.js +0 -1
  600. package/dist/taro-components/p-e82e16a1.entry.js +0 -1
  601. package/dist/taro-components/p-ee4da4db.system.js +0 -1
  602. package/dist/taro-components/p-f003caad.entry.js +0 -1
  603. package/dist/taro-components/p-f111303f.entry.js +0 -1
  604. package/dist/taro-components/p-f75d094e.system.entry.js +0 -1
  605. package/dist/taro-components/p-fbec1f96.entry.js +0 -1
  606. package/lib/react/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js +0 -373
  607. package/lib/react/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js.map +0 -1
  608. /package/dist/cjs/{index-b8c435ee.js → index-f6805218.js} +0 -0
  609. /package/dist/esm/{index-a74b6944.js → index-c3e4004b.js} +0 -0
  610. /package/dist/esm-es5/{index-a74b6944.js → index-c3e4004b.js} +0 -0
  611. /package/dist/taro-components/{p-34de4101.system.js → p-2ec68968.system.js} +0 -0
  612. /package/dist/taro-components/{p-19f218e6.js → p-de951a46.js} +0 -0
  613. /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
  614. /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
@@ -1 +1 @@
1
- {"version":3,"file":"attachProps.js","sources":["../../../../../taro-components-library-react/src/react-component-lib/utils/attachProps.ts"],"sourcesContent":["/**\n * Modify from https://github.com/ionic-team/stencil-ds-output-targets/blob/main/packages/react-output-target/react-component-lib/utils/attachProps.ts\n * MIT License https://github.com/ionic-team/stencil-ds-output-targets/blob/main/LICENSE\n */\nimport { camelToDashCase } from './case'\n\nconst arrayToMap = (arr: string[] | DOMTokenList) => {\n const map = new Map<string, string>();\n (arr as string[]).forEach((s: string) => map.set(s, s))\n return map\n}\n\nexport const getClassName = (classList: DOMTokenList, newProps: any, oldProps: any) => {\n const newClassProp: string = newProps.className || newProps.class\n const oldClassProp: string = oldProps.className || oldProps.class\n // map the classes to Maps for performance\n const currentClasses = arrayToMap(classList)\n const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : [])\n const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : [])\n const finalClassNames: string[] = []\n // loop through each of the current classes on the component\n // to see if it should be a part of the classNames added\n currentClasses.forEach((currentClass) => {\n if (incomingPropClasses.has(currentClass)) {\n // add it as its already included in classnames coming in from newProps\n finalClassNames.push(currentClass)\n incomingPropClasses.delete(currentClass)\n } else if (!oldPropClasses.has(currentClass)) {\n // add it as it has NOT been removed by user\n finalClassNames.push(currentClass)\n }\n })\n incomingPropClasses.forEach((s) => finalClassNames.push(s))\n return finalClassNames.join(' ')\n}\n\n// Note(taro): 禁用 react 合成事件抛出 (避免自定义事件属性调用问题, 例如: event.detail.value 等)\nexport const isCoveredByReact = (__eventNameSuffix: string) => false\n\nexport const syncEvent = (\n node: Element & { __events?: { [key: string]: ((e: Event) => any) | undefined } },\n eventName: string,\n newEventHandler?: (e: Event) => any\n) => {\n const eventStore = node.__events || (node.__events = {})\n const oldEventHandler = eventStore[eventName]\n\n // Remove old listener so they don't double up.\n if (oldEventHandler) {\n node.removeEventListener(eventName, oldEventHandler)\n }\n\n // Bind new listener.\n node.addEventListener(\n eventName,\n (eventStore[eventName] = function handler (e: Event) {\n if (newEventHandler) {\n newEventHandler.call(this, e)\n }\n })\n )\n}\n\nexport const attachProps = (node: HTMLElement, newProps: any, oldProps: any = {}) => {\n // some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first\n if (node instanceof Element) {\n Object.keys(oldProps).forEach((name) => {\n if (['style', 'children', 'ref', 'class', 'className', 'forwardedRef'].includes(name)) {\n return\n }\n // Note: 移除节点上冗余事件、属性\n if (!newProps.hasOwnProperty(name)) {\n if (/^on([A-Z].*)/.test(name)) {\n const eventName = name.substring(2)\n const eventNameLc = eventName.toLowerCase()\n\n if (!isCoveredByReact(eventNameLc)) {\n syncEvent(node, eventNameLc, undefined)\n }\n } else {\n (node as any)[name] = null\n node.removeAttribute(camelToDashCase(name))\n }\n }\n })\n // add any classes in className to the class list\n node.className = getClassName(node.classList, newProps, oldProps)\n\n Object.keys(newProps).forEach((name) => {\n /** Note(taro): 优化 style 属性的处理\n * 1. 考虑到兼容旧版本项目,支持使用字符串配置 style 属性,但这并非推荐写法,且不考虑优化在 style 移除时同步删除属性\n * 2. style 属性应当交与前端 UI 框架自行处理,不考虑实现类似于 reactify-wc 的更新策略\n */\n if ((name === 'style' && typeof newProps[name] !== 'string') || ['children', 'ref', 'class', 'className', 'forwardedRef'].includes(name)) {\n return\n }\n if (/^on([A-Z].*)/.test(name)) {\n const eventName = name.substring(2)\n const eventNameLc = eventName.toLowerCase()\n\n if (!isCoveredByReact(eventNameLc)) {\n syncEvent(node, eventNameLc, newProps[name])\n }\n } else {\n (node as any)[name] = newProps[name]\n const propType = typeof newProps[name]\n if (propType === 'string') {\n node.setAttribute(camelToDashCase(name), newProps[name])\n }\n }\n })\n }\n}\n"],"names":[],"mappings":";;AAAA;;;AAGG;AAGH,MAAM,UAAU,GAAG,CAAC,GAA4B,KAAI;AAClD,IAAA,MAAM,GAAG,GAAG,IAAI,GAAG,EAAkB,CAAC;AACrC,IAAA,GAAgB,CAAC,OAAO,CAAC,CAAC,CAAS,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AACvD,IAAA,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AAEY,MAAA,YAAY,GAAG,CAAC,SAAuB,EAAE,QAAa,EAAE,QAAa,KAAI;IACpF,MAAM,YAAY,GAAW,QAAQ,CAAC,SAAS,IAAI,QAAQ,CAAC,KAAK,CAAA;IACjE,MAAM,YAAY,GAAW,QAAQ,CAAC,SAAS,IAAI,QAAQ,CAAC,KAAK,CAAA;;AAEjE,IAAA,MAAM,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,CAAA;AAC5C,IAAA,MAAM,mBAAmB,GAAG,UAAU,CAAC,YAAY,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAA;AACnF,IAAA,MAAM,cAAc,GAAG,UAAU,CAAC,YAAY,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAA;IAC9E,MAAM,eAAe,GAAa,EAAE,CAAA;;;AAGpC,IAAA,cAAc,CAAC,OAAO,CAAC,CAAC,YAAY,KAAI;AACtC,QAAA,IAAI,mBAAmB,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE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xI,OAAM;AACP,aAAA;AACD,YAAA,IAAI,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBAC7B,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;AACnC,gBAAA,MAAM,WAAW,GAAG,SAAS,CAAC,WAAW,EAAE,CAAA;AAE3C,gBAAA,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE;oBAClC,SAAS,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAA;AAC7C,iBAAA;AACF,aAAA;AAAM,iBAAA;gBACJ,IAAY,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAA;AACpC,gBAAA,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAA;gBACtC,IAAI,QAAQ,KAAK,QAAQ,EAAE;AACzB,oBAAA,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAA;AACzD,iBAAA;AACF,aAAA;AACH,SAAC,CAAC,CAAA;AACH,KAAA;AACH;;;;"}
1
+ {"version":3,"file":"attachProps.js","sources":["../../../../../taro-components-library-react/src/react-component-lib/utils/attachProps.ts"],"sourcesContent":["/**\n * Modify from https://github.com/ionic-team/stencil-ds-output-targets/blob/main/packages/react-output-target/react-component-lib/utils/attachProps.ts\n * MIT License https://github.com/ionic-team/stencil-ds-output-targets/blob/main/LICENSE\n */\nimport { flushSync, unstable_batchedUpdates } from 'react-dom'\n\nimport { camelToDashCase } from './case'\n\nconst arrayToMap = (arr: string[] | DOMTokenList) => {\n const map = new Map<string, string>();\n (arr as string[]).forEach((s: string) => map.set(s, s))\n return map\n}\n\nexport const getClassName = (classList: DOMTokenList, newProps: any, oldProps: any) => {\n const newClassProp: string = newProps.className || newProps.class\n const oldClassProp: string = oldProps.className || oldProps.class\n // map the classes to Maps for performance\n const currentClasses = arrayToMap(classList)\n const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : [])\n const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : [])\n const finalClassNames: string[] = []\n // loop through each of the current classes on the component\n // to see if it should be a part of the classNames added\n currentClasses.forEach((currentClass) => {\n if (incomingPropClasses.has(currentClass)) {\n // add it as its already included in classnames coming in from newProps\n finalClassNames.push(currentClass)\n incomingPropClasses.delete(currentClass)\n } else if (!oldPropClasses.has(currentClass)) {\n // add it as it has NOT been removed by user\n finalClassNames.push(currentClass)\n }\n })\n incomingPropClasses.forEach((s) => finalClassNames.push(s))\n return finalClassNames.join(' ')\n}\n\n// Note(taro): 禁用 react 合成事件抛出 (避免自定义事件属性调用问题, 例如: event.detail.value 等)\nexport const isCoveredByReact = (__eventNameSuffix: string) => false\n\ninterface EventCenter {\n [key: string]: EventCenter.EventCallback | undefined\n}\n\nnamespace EventCenter {\n export interface EventCallback {\n (e: Event): any\n fn?: (e: Event) => any\n }\n}\n\ntype HTMLElementWithEvents = HTMLElement & { __events?: EventCenter }\n\nfunction getComponentName (node: HTMLElement): string {\n return node.tagName.replace(/^TARO-/, '').replace(/-CORE$/, '')\n}\n\nfunction getControlledValue (node: HTMLElement): string | null {\n const componentName = getComponentName(node)\n if (['INPUT', 'TEXTAREA', 'SLIDER', 'PICKER'].includes(componentName)) {\n return 'value'\n } else if (componentName === 'SWITCH') {\n // Radio、Checkbox 受 RadioGroup、CheckboxGroup 控制,不支持受控\n return 'checked'\n } else {\n return null\n }\n}\n\nfunction getPropsAfterReactUpdate (node: HTMLElement): Record<string, any> | null {\n const key = Object.keys(node).find(key => key.includes('__reactProps'))\n if (key) {\n return node[key] as Record<string, any>\n } else {\n return null\n }\n}\n\nfunction finishedEventHandler (node: HTMLElement) {\n const controlledValue = getControlledValue(node)\n\n // 不是可以受控的表单组件,直接返回\n if (!controlledValue) return\n\n // 立即执行事件回调中用户可能触发了的 React 更新\n flushSync(() => {})\n\n // 组件在 React 更新后的 React props\n const newProps = getPropsAfterReactUpdate(node)\n if (newProps?.hasOwnProperty(controlledValue) && newProps[controlledValue] !== node[controlledValue]) {\n // 如果 React Props 的 value 和 DOM 上的 value 不一致,以 React Props 为准(受控)\n node[controlledValue] = newProps[controlledValue]\n node.setAttribute(controlledValue, newProps[controlledValue])\n }\n}\n\nexport const syncEvent = (\n node: HTMLElementWithEvents,\n eventName: string,\n newEventHandler?: (e: Event) => any\n) => {\n const eventStore = node.__events ||= {}\n const oldEventHandler = eventStore[eventName]\n\n if (!newEventHandler && oldEventHandler) {\n node.removeEventListener(eventName, oldEventHandler)\n } else {\n if (oldEventHandler) {\n if (oldEventHandler.fn === newEventHandler) {\n return\n } else {\n // 删除旧的,绑定新的\n node.removeEventListener(eventName, oldEventHandler)\n }\n }\n\n const listener: EventCenter.EventCallback = eventStore[eventName] = function (e: Event) {\n // React batch event updates\n unstable_batchedUpdates(() => newEventHandler.call(this, e))\n // 控制是否更新受控组件的 value 值\n finishedEventHandler(node)\n }\n listener.fn = newEventHandler\n node.addEventListener(\n eventName,\n listener\n )\n }\n}\n\n// TODO(performace): ReactComponent 已更新了一次,这里手动更新可能存在重复设置属性的问题\nexport const attachProps = (node: HTMLElementWithEvents, newProps: any, oldProps: any = {}) => {\n // some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first\n if (node instanceof Element) {\n Object.keys(oldProps).forEach((name) => {\n if (['style', 'children', 'ref', 'class', 'className', 'forwardedRef'].includes(name)) {\n return\n }\n // Note: 移除节点上冗余事件、属性\n if (!newProps.hasOwnProperty(name)) {\n if (/^on([A-Z].*)/.test(name)) {\n const eventName = name.substring(2)\n const eventNameLc = eventName.toLowerCase()\n\n if (!isCoveredByReact(eventNameLc)) {\n syncEvent(node, eventNameLc)\n }\n } else {\n (node as any)[name] = null\n node.removeAttribute(camelToDashCase(name))\n }\n }\n })\n // add any classes in className to the class list\n node.className = getClassName(node.classList, newProps, oldProps)\n\n Object.keys(newProps).forEach((name) => {\n /** Note(taro): 优化 style 属性的处理\n * 1. 考虑到兼容旧版本项目,支持使用字符串配置 style 属性,但这并非推荐写法,且不考虑优化在 style 移除时同步删除属性\n * 2. style 属性应当交与前端 UI 框架自行处理,不考虑实现类似于 reactify-wc 的更新策略\n */\n if ((name === 'style' && typeof newProps[name] !== 'string') || ['children', 'ref', 'class', 'className', 'forwardedRef'].includes(name)) {\n return\n }\n if (/^on([A-Z].*)/.test(name)) {\n const eventName = name.substring(2)\n const eventNameLc = eventName.toLowerCase()\n\n if (!isCoveredByReact(eventNameLc)) {\n syncEvent(node, eventNameLc, newProps[name])\n }\n } else {\n (node as any)[name] = newProps[name]\n const propType = typeof newProps[name]\n if (propType === 'string') {\n node.setAttribute(camelToDashCase(name), newProps[name])\n }\n }\n })\n\n // 保证受控组件会被默认绑定一个空事件,用于触发 finishedEventHandler 中的受控逻辑\n const controlledValue = getControlledValue(node)\n if (\n controlledValue &&\n newProps.hasOwnProperty(controlledValue)\n ) {\n const handleChangeEvent = ['INPUT', 'TEXTAREA'].includes(getComponentName(node)) ? 'input' : 'change'\n node.__events ||= {}\n if (!node.__events.hasOwnProperty(handleChangeEvent)) {\n syncEvent(node, handleChangeEvent, function () {})\n }\n }\n }\n}\n\nexport function applyUnControlledDefaultValue (node: HTMLElementWithEvents, props: any) {\n const controlledValue = getControlledValue(node)\n\n // 不是可以受控的表单组件,直接返回\n if (!controlledValue) return\n\n const defaultValueName = 'default' + controlledValue.charAt(0).toUpperCase() + controlledValue.slice(1)\n if (!props.hasOwnProperty(controlledValue) && props.hasOwnProperty(defaultValueName)) {\n // 如果是可以受控的表单组件,当没有传入 value/checked 而是传入 defaultValue/defaultChecked 时,把表单值初始化为 defaultValue/defaultChecked\n node[controlledValue] = props[defaultValueName]\n node.setAttribute(controlledValue, props[defaultValueName])\n }\n}\n"],"names":[],"mappings":";;;AAAA;;;AAGG;AAKH,MAAM,UAAU,GAAG,CAAC,GAA4B,KAAI;AAClD,IAAA,MAAM,GAAG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CAAC,GAAG,OAAO,GAAG,QAAQ,CAAA;YACrG,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,EAAE,CAAA,CAAA;YACpB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE;gBACpD,SAAS,CAAC,IAAI,EAAE,iBAAiB,EAAE,YAAa,GAAC,CAAC,CAAA;AACnD,aAAA;AACF,SAAA;AACF,KAAA;AACH,EAAC;AAEe,SAAA,6BAA6B,CAAE,IAA2B,EAAE,KAAU,EAAA;AACpF,IAAA,MAAM,eAAe,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAA;;AAGhD,IAAA,IAAI,CAAC,eAAe;QAAE,OAAM;IAE5B,MAAM,gBAAgB,GAAG,SAAS,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AACvG,IAAA,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE;;QAEpF,IAAI,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAA;QAC/C,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAC5D,KAAA;AACH;;;;"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export { attachProps, getClassName, isCoveredByReact, syncEvent } from './attachProps.js';
2
+ export { applyUnControlledDefaultValue, attachProps, getClassName, isCoveredByReact, syncEvent } from './attachProps.js';
3
3
  export { camelToDashCase, dashToPascalCase } from './case.js';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import Vue from 'vue';
2
- import index from './node_modules/.pnpm/vue-fragment@1.6.0_vue@2.7.15/node_modules/vue-fragment/dist/vue-fragment.esm.js';
2
+ import index from './node_modules/.pnpm/registry.npmjs.org_vue-fragment@1.6.0_vue@2.7.14/node_modules/vue-fragment/dist/vue-fragment.esm.js';
3
3
 
4
4
  function initVue2Components(components = {}) {
5
5
  var _a;
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.10",
4
4
  "description": "Taro 组件库",
5
5
  "browser": "dist/index.js",
6
6
  "main:h5": "dist/index.js",
@@ -33,35 +33,36 @@
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.10",
40
+ "@tarojs/taro": "4.0.0-beta.10"
43
41
  },
44
42
  "devDependencies": {
45
- "@babel/generator": "^7.20.0",
46
- "@babel/parser": "^7.20.0",
47
- "@babel/traverse": "^7.20.0",
48
- "@babel/types": "^7.20.0",
43
+ "@babel/generator": "^7.21.4",
44
+ "@babel/parser": "^7.23.0",
45
+ "@babel/traverse": "^7.21.4",
46
+ "@babel/types": "^7.23.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
- "@types/node": "^14.14.31",
54
50
  "change-case": "^4.1.2",
55
51
  "csstype": "^3.1.1",
56
52
  "esbuild": "~0.19.5",
57
53
  "jquery": "^3.4.1",
54
+ "lightningcss": "^1.22.1",
58
55
  "lodash": "^4.17.21",
59
56
  "miniapp-types": "1.6.0",
60
57
  "puppeteer": "^19.2.0",
58
+ "rollup": "^3.8.1",
59
+ "rollup-plugin-node-externals": "^5.0.0",
60
+ "sass": "^1.58.3",
61
61
  "stencil-vue2-output-target": "0.0.4",
62
62
  "ts-node": "^10.9.1",
63
63
  "tsconfig-paths": "^3.14.1",
64
- "typescript": "^4.7.4"
64
+ "typescript": "^5.3.3",
65
+ "mkdirp": "^1.0.4"
65
66
  },
66
67
  "peerDependenciesMeta": {
67
68
  "@types/react": {
@@ -81,10 +82,10 @@
81
82
  "dev:library-vue2": "cross-env NODE_ENV=development pnpm --filter @tarojs/components-library-vue2 run dev",
82
83
  "dev:library-vue3": "cross-env NODE_ENV=development pnpm --filter @tarojs/components-library-vue3 run dev",
83
84
  "generate:lib": "mkdirp lib",
84
- "generate:stencil-config": "esbuild ./scripts/stencil/stencil.config.ts --bundle --platform=node --outfile=stencil.config.js",
85
+ "generate:stencil-config": "esbuild ./scripts/stencil/stencil.config.ts --external:lightningcss --bundle --platform=node --outfile=stencil.config.js",
85
86
  "sync:types": "pnpm run tsx --files scripts/json-schema-to-types.ts",
86
87
  "test": "cross-env NODE_ENV=test stencil test --spec --e2e",
87
- "test:ci": "pnpm test -- --ci --no-build",
88
+ "test:ci": "pnpm test -- --ci -i --coverage --silent --no-build",
88
89
  "test:coverage": "pnpm test -- --ci --screenshot --coverage",
89
90
  "test:watch": "pnpm test -- --screenshot --watch",
90
91
  "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_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 {