@tarojs/components 3.5.0-canary.0 → 3.5.0-theta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (498) hide show
  1. package/README.md +2 -0
  2. package/dist/cjs/{index-dd4b7ba3.js → index-13289aba.js} +62 -53
  3. package/dist/cjs/index-47a1959e.js +34 -0
  4. package/dist/{esm/index-3c78bcaf.js → cjs/index-f9d21cc5.js} +12 -1
  5. package/dist/cjs/loader.cjs.js +3 -3
  6. package/dist/cjs/taro-ad-core.cjs.entry.js +19 -0
  7. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +19 -0
  8. package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
  9. package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
  10. package/dist/cjs/taro-button-core.cjs.entry.js +3 -3
  11. package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
  12. package/dist/cjs/taro-canvas-core.cjs.entry.js +2 -2
  13. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +2 -2
  14. package/dist/cjs/taro-components.cjs.js +3 -3
  15. package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
  16. package/dist/cjs/taro-cover-view-core.cjs.entry.js +2 -2
  17. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
  18. package/dist/cjs/taro-editor-core.cjs.entry.js +19 -0
  19. package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
  20. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +19 -0
  21. package/dist/cjs/taro-icon-core.cjs.entry.js +2 -2
  22. package/dist/cjs/taro-image-core.cjs.entry.js +4 -4
  23. package/dist/cjs/taro-input-core.cjs.entry.js +28 -20
  24. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +19 -0
  25. package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
  26. package/dist/cjs/taro-live-player-core.cjs.entry.js +19 -0
  27. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +19 -0
  28. package/dist/cjs/taro-map-core.cjs.entry.js +19 -0
  29. package/dist/cjs/taro-match-media-core.cjs.entry.js +19 -0
  30. package/dist/cjs/taro-movable-area-core.cjs.entry.js +1 -1
  31. package/dist/cjs/taro-movable-view-core.cjs.entry.js +1 -1
  32. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +19 -0
  33. package/dist/cjs/taro-navigator-core.cjs.entry.js +14 -10
  34. package/dist/cjs/taro-official-account-core.cjs.entry.js +19 -0
  35. package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
  36. package/dist/cjs/taro-page-container-core.cjs.entry.js +19 -0
  37. package/dist/cjs/taro-page-meta-core.cjs.entry.js +19 -0
  38. package/dist/cjs/taro-picker-core_2.cjs.entry.js +2 -2
  39. package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +80 -4
  40. package/dist/cjs/taro-picker-view-core.cjs.entry.js +72 -3
  41. package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
  42. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +22 -8
  43. package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
  44. package/dist/cjs/taro-rich-text-core.cjs.entry.js +2 -2
  45. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +9 -17
  46. package/dist/cjs/taro-share-element-core.cjs.entry.js +19 -0
  47. package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
  48. package/dist/cjs/taro-slot-core.cjs.entry.js +19 -0
  49. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +23 -17
  50. package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
  51. package/dist/cjs/taro-tabbar.cjs.entry.js +73 -67
  52. package/dist/cjs/taro-text-core.cjs.entry.js +3 -3
  53. package/dist/cjs/taro-textarea-core.cjs.entry.js +8 -6
  54. package/dist/cjs/taro-video-control_3.cjs.entry.js +27868 -224
  55. package/dist/cjs/taro-view-core.cjs.entry.js +5 -5
  56. package/dist/cjs/taro-voip-room-core.cjs.entry.js +19 -0
  57. package/dist/cjs/taro-web-view-core.cjs.entry.js +2 -2
  58. package/dist/collection/collection-manifest.json +22 -6
  59. package/dist/collection/components/ad/ad.js +11 -0
  60. package/dist/collection/components/{picker-view-column/picker-view-column.js → ad-custom/ad-custom.js} +3 -3
  61. package/dist/collection/components/button/style/index.css +49 -49
  62. package/dist/collection/components/canvas/canvas.js +1 -1
  63. package/dist/collection/components/canvas/style/index.css +6 -6
  64. package/dist/collection/components/checkbox/style/index.css +21 -23
  65. package/dist/collection/components/editor/editor.js +11 -0
  66. package/dist/collection/components/functional-page-navigator/functional-page-navigator.js +11 -0
  67. package/dist/collection/components/image/image.js +2 -2
  68. package/dist/collection/components/image/style/index.css +8 -5
  69. package/dist/collection/components/input/index.css +2 -2
  70. package/dist/collection/components/input/input.js +41 -24
  71. package/dist/collection/components/keyboard-accessory/keyboard-accessory.js +11 -0
  72. package/dist/collection/components/live-player/live-player.js +11 -0
  73. package/dist/collection/components/live-pusher/live-pusher.js +11 -0
  74. package/dist/collection/components/map/map.js +11 -0
  75. package/dist/collection/components/match-media/match-media.js +11 -0
  76. package/dist/collection/components/{movable-view → movable-area}/movable-area.js +0 -0
  77. package/dist/collection/components/{movable-view → movable-area}/movable-view.js +0 -0
  78. package/dist/collection/components/navigation-bar/navigation-bar.js +11 -0
  79. package/dist/collection/components/navigator/navigator.js +3 -3
  80. package/dist/collection/components/navigator/{navigator.css → style/index.css} +3 -3
  81. package/dist/collection/components/official-account/official-account.js +11 -0
  82. package/dist/collection/components/page-container/page-container.js +11 -0
  83. package/dist/collection/components/page-meta/page-meta.js +11 -0
  84. package/dist/collection/components/picker/style/index.css +2 -1
  85. package/dist/collection/components/picker-view/picker-view-column.js +225 -0
  86. package/dist/collection/components/picker-view/picker-view.js +217 -3
  87. package/dist/collection/components/picker-view/style/column.css +12 -0
  88. package/dist/collection/components/picker-view/style/index.css +28 -0
  89. package/dist/collection/components/{pull-down-refresh → pull-to-refresh}/pull-to-refresh.js +14 -4
  90. package/dist/collection/components/{pull-down-refresh → pull-to-refresh}/style/index.css +53 -49
  91. package/dist/collection/components/rich-text/rich-text.js +1 -1
  92. package/dist/collection/components/scroll-view/scroll-view.js +6 -14
  93. package/dist/collection/components/share-element/share-element.js +11 -0
  94. package/dist/collection/components/slot/slot.js +11 -0
  95. package/dist/collection/components/swiper/swiper.js +20 -14
  96. package/dist/collection/components/tabbar/style/index.css +10 -7
  97. package/dist/collection/components/tabbar/tabbar.js +23 -17
  98. package/dist/collection/components/text/style/index.css +0 -6
  99. package/dist/collection/components/textarea/style/index.css +5 -5
  100. package/dist/collection/components/textarea/textarea.js +6 -4
  101. package/dist/collection/components/video/style/index.css +88 -109
  102. package/dist/collection/components/video/utils.js +95 -109
  103. package/dist/collection/components/video/video-control.js +9 -9
  104. package/dist/collection/components/video/video.js +57 -9
  105. package/dist/collection/components/view/style/index.css +3 -5
  106. package/dist/collection/components/view/view.js +2 -2
  107. package/dist/collection/components/voip-room/voip-room.js +11 -0
  108. package/dist/collection/components/web-view/style/index.css +1 -1
  109. package/dist/collection/utils/index.js +27 -101
  110. package/dist/collection/utils/style.js +10 -0
  111. package/dist/collection/utils/url.js +67 -0
  112. package/dist/{cjs/index-b9715722.js → esm/index-1d8e8acd.js} +6 -2
  113. package/dist/esm/{index-5bd7cbab.js → index-26d8b479.js} +62 -53
  114. package/dist/esm/index-cad8203e.js +31 -0
  115. package/dist/esm/loader.js +3 -3
  116. package/dist/esm/polyfills/core-js.js +0 -0
  117. package/dist/esm/polyfills/dom.js +0 -0
  118. package/dist/esm/polyfills/es5-html-element.js +0 -0
  119. package/dist/esm/polyfills/index.js +0 -0
  120. package/dist/esm/polyfills/system.js +0 -0
  121. package/dist/esm/taro-ad-core.entry.js +15 -0
  122. package/dist/esm/taro-ad-custom-core.entry.js +15 -0
  123. package/dist/esm/taro-audio-core.entry.js +1 -1
  124. package/dist/esm/taro-block-core.entry.js +1 -1
  125. package/dist/esm/taro-button-core.entry.js +3 -3
  126. package/dist/esm/taro-camera-core.entry.js +1 -1
  127. package/dist/esm/taro-canvas-core.entry.js +2 -2
  128. package/dist/esm/taro-checkbox-core_2.entry.js +2 -2
  129. package/dist/esm/taro-components.js +3 -3
  130. package/dist/esm/taro-cover-image-core.entry.js +1 -1
  131. package/dist/esm/taro-cover-view-core.entry.js +2 -2
  132. package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
  133. package/dist/esm/taro-editor-core.entry.js +15 -0
  134. package/dist/esm/taro-form-core.entry.js +1 -1
  135. package/dist/esm/taro-functional-page-navigator-core.entry.js +15 -0
  136. package/dist/esm/taro-icon-core.entry.js +2 -2
  137. package/dist/esm/taro-image-core.entry.js +4 -4
  138. package/dist/esm/taro-input-core.entry.js +28 -20
  139. package/dist/esm/taro-keyboard-accessory-core.entry.js +15 -0
  140. package/dist/esm/taro-label-core.entry.js +1 -1
  141. package/dist/esm/taro-live-player-core.entry.js +15 -0
  142. package/dist/esm/taro-live-pusher-core.entry.js +15 -0
  143. package/dist/esm/taro-map-core.entry.js +15 -0
  144. package/dist/esm/taro-match-media-core.entry.js +15 -0
  145. package/dist/esm/taro-movable-area-core.entry.js +1 -1
  146. package/dist/esm/taro-movable-view-core.entry.js +1 -1
  147. package/dist/esm/taro-navigation-bar-core.entry.js +15 -0
  148. package/dist/esm/taro-navigator-core.entry.js +5 -5
  149. package/dist/esm/taro-official-account-core.entry.js +15 -0
  150. package/dist/esm/taro-open-data-core.entry.js +1 -1
  151. package/dist/esm/taro-page-container-core.entry.js +15 -0
  152. package/dist/esm/taro-page-meta-core.entry.js +15 -0
  153. package/dist/esm/taro-picker-core_2.entry.js +2 -2
  154. package/dist/esm/taro-picker-view-column-core.entry.js +80 -4
  155. package/dist/esm/taro-picker-view-core.entry.js +72 -3
  156. package/dist/esm/taro-progress-core.entry.js +1 -1
  157. package/dist/esm/taro-pull-to-refresh.entry.js +16 -6
  158. package/dist/esm/taro-radio-core_2.entry.js +1 -1
  159. package/dist/esm/taro-rich-text-core.entry.js +2 -2
  160. package/dist/esm/taro-scroll-view-core.entry.js +8 -16
  161. package/dist/esm/taro-share-element-core.entry.js +15 -0
  162. package/dist/esm/taro-slider-core.entry.js +1 -1
  163. package/dist/esm/taro-slot-core.entry.js +15 -0
  164. package/dist/esm/taro-swiper-core_2.entry.js +21 -15
  165. package/dist/esm/taro-switch-core.entry.js +1 -1
  166. package/dist/esm/taro-tabbar.entry.js +48 -46
  167. package/dist/esm/taro-text-core.entry.js +3 -3
  168. package/dist/esm/taro-textarea-core.entry.js +8 -6
  169. package/dist/esm/taro-video-control_3.entry.js +27867 -223
  170. package/dist/esm/taro-view-core.entry.js +5 -5
  171. package/dist/esm/taro-voip-room-core.entry.js +15 -0
  172. package/dist/esm/taro-web-view-core.entry.js +2 -2
  173. package/dist/esm-es5/index-1d8e8acd.js +7 -0
  174. package/dist/esm-es5/{index-5bd7cbab.js → index-26d8b479.js} +1 -1
  175. package/dist/esm-es5/index-cad8203e.js +1 -0
  176. package/dist/esm-es5/loader.js +1 -1
  177. package/dist/esm-es5/taro-ad-core.entry.js +1 -0
  178. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -0
  179. package/dist/esm-es5/taro-audio-core.entry.js +1 -1
  180. package/dist/esm-es5/taro-block-core.entry.js +1 -1
  181. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  182. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  183. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  184. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  185. package/dist/esm-es5/taro-components.js +1 -1
  186. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
  187. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  188. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
  189. package/dist/esm-es5/taro-editor-core.entry.js +1 -0
  190. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  191. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -0
  192. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  193. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  194. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  195. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -0
  196. package/dist/esm-es5/taro-label-core.entry.js +1 -1
  197. package/dist/esm-es5/taro-live-player-core.entry.js +1 -0
  198. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -0
  199. package/dist/esm-es5/taro-map-core.entry.js +1 -0
  200. package/dist/esm-es5/taro-match-media-core.entry.js +1 -0
  201. package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
  202. package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
  203. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -0
  204. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  205. package/dist/esm-es5/taro-official-account-core.entry.js +1 -0
  206. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  207. package/dist/esm-es5/taro-page-container-core.entry.js +1 -0
  208. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -0
  209. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  210. package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
  211. package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
  212. package/dist/esm-es5/taro-progress-core.entry.js +1 -1
  213. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
  214. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  215. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  216. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  217. package/dist/esm-es5/taro-share-element-core.entry.js +1 -0
  218. package/dist/esm-es5/taro-slider-core.entry.js +1 -1
  219. package/dist/esm-es5/taro-slot-core.entry.js +1 -0
  220. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  221. package/dist/esm-es5/taro-switch-core.entry.js +1 -1
  222. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  223. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  224. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  225. package/dist/esm-es5/taro-video-control_3.entry.js +365 -1
  226. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  227. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -0
  228. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  229. package/dist/taro-components/p-019591c8.system.entry.js +1 -0
  230. package/dist/taro-components/{p-8db237e0.entry.js → p-060858b1.entry.js} +1 -1
  231. package/dist/taro-components/{p-964692f7.system.entry.js → p-06e3d685.system.entry.js} +1 -1
  232. package/dist/taro-components/p-0996daee.entry.js +1 -0
  233. package/dist/taro-components/p-0ca42006.entry.js +1 -0
  234. package/dist/taro-components/{p-3633bb84.entry.js → p-0d0b3677.entry.js} +1 -1
  235. package/dist/taro-components/p-0d1e0e91.system.entry.js +1 -0
  236. package/dist/taro-components/p-0ea13d67.system.entry.js +1 -0
  237. package/dist/taro-components/p-12deba0b.system.entry.js +1 -0
  238. package/dist/taro-components/p-133e3ac4.entry.js +1 -0
  239. package/dist/taro-components/{p-5f8b5f62.entry.js → p-16aff829.entry.js} +1 -1
  240. package/dist/taro-components/p-16c1e564.entry.js +1 -0
  241. package/dist/taro-components/p-178a3adf.system.entry.js +1 -0
  242. package/dist/taro-components/p-1c0ebbd5.entry.js +1 -0
  243. package/dist/taro-components/p-1e0406ec.system.entry.js +1 -0
  244. package/dist/taro-components/p-1e516bd0.entry.js +1 -0
  245. package/dist/taro-components/p-2241b671.system.js +1 -0
  246. package/dist/taro-components/p-26e9ce75.entry.js +1 -0
  247. package/dist/taro-components/p-2887213d.system.entry.js +1 -0
  248. package/dist/taro-components/p-29b7c721.system.entry.js +1 -0
  249. package/dist/taro-components/p-29bb3ebe.entry.js +1 -0
  250. package/dist/taro-components/{p-fdd73355.system.entry.js → p-2bd2ea9a.system.entry.js} +1 -1
  251. package/dist/taro-components/p-2e8a1479.system.entry.js +1 -0
  252. package/dist/taro-components/{p-9a618935.system.entry.js → p-36f2c1e1.system.entry.js} +1 -1
  253. package/dist/taro-components/{p-fd8312e5.system.entry.js → p-372f53d8.system.entry.js} +1 -1
  254. package/dist/taro-components/p-38d7c2e8.system.entry.js +1 -0
  255. package/dist/taro-components/{p-cfbdd4e3.system.entry.js → p-3b801a38.system.entry.js} +1 -1
  256. package/dist/taro-components/p-3b85bb4b.system.entry.js +1 -0
  257. package/dist/taro-components/p-3bb72c08.entry.js +1 -0
  258. package/dist/taro-components/p-3d3cd72f.entry.js +1 -0
  259. package/dist/taro-components/p-4339ad63.system.entry.js +1 -0
  260. package/dist/taro-components/p-44a199e4.entry.js +1 -0
  261. package/dist/taro-components/p-45e6f8be.entry.js +1 -0
  262. package/dist/taro-components/p-46b7f84e.entry.js +1 -0
  263. package/dist/taro-components/p-4793e6ba.system.entry.js +1 -0
  264. package/dist/taro-components/{p-74540410.entry.js → p-4c890c5d.entry.js} +1 -1
  265. package/dist/taro-components/p-53244eac.entry.js +1 -0
  266. package/dist/taro-components/p-5746d7ce.js +1 -0
  267. package/dist/taro-components/{p-1b790eb0.system.entry.js → p-5c2497a4.system.entry.js} +1 -1
  268. package/dist/taro-components/p-5ff0e954.system.entry.js +1 -0
  269. package/dist/taro-components/p-61f225ef.system.js +7 -0
  270. package/dist/taro-components/p-62608b28.system.entry.js +1 -0
  271. package/dist/taro-components/p-62c64770.entry.js +1 -0
  272. package/dist/taro-components/p-663d1bb9.system.js +1 -0
  273. package/dist/taro-components/{p-bd3fa355.system.entry.js → p-66b1d5f9.system.entry.js} +1 -1
  274. package/dist/taro-components/p-671defcd.entry.js +1 -0
  275. package/dist/taro-components/p-6f2f468b.entry.js +1 -0
  276. package/dist/taro-components/p-70313eed.entry.js +1 -0
  277. package/dist/taro-components/p-74013ace.entry.js +1 -0
  278. package/dist/taro-components/{p-264b7229.system.entry.js → p-756d56d1.system.entry.js} +1 -1
  279. package/dist/taro-components/{p-fe156231.system.entry.js → p-75811f84.system.entry.js} +1 -1
  280. package/dist/taro-components/p-761d1085.entry.js +1 -0
  281. package/dist/taro-components/p-76724e58.js +7 -0
  282. package/dist/taro-components/{p-1e4f1702.system.entry.js → p-78676120.system.entry.js} +1 -1
  283. package/dist/taro-components/p-79b16736.system.entry.js +1 -0
  284. package/dist/taro-components/p-7b2049b7.entry.js +1 -0
  285. package/dist/taro-components/p-7dc268ee.entry.js +1 -0
  286. package/dist/taro-components/p-7f7aa688.entry.js +1 -0
  287. package/dist/taro-components/p-80abb865.entry.js +1 -0
  288. package/dist/taro-components/{p-55b0a30b.entry.js → p-81976128.entry.js} +1 -1
  289. package/dist/taro-components/p-81dc5b7b.entry.js +1 -0
  290. package/dist/taro-components/p-828efe43.system.entry.js +1 -0
  291. package/dist/taro-components/p-831ebd02.system.entry.js +1 -0
  292. package/dist/taro-components/p-832cc63a.entry.js +1 -0
  293. package/dist/taro-components/{p-b2d01686.system.js → p-83adb645.system.js} +1 -1
  294. package/dist/taro-components/p-841a2031.system.entry.js +365 -0
  295. package/dist/taro-components/p-86205110.entry.js +1 -0
  296. package/dist/taro-components/{p-703dfad8.system.entry.js → p-8b23a081.system.entry.js} +1 -1
  297. package/dist/taro-components/{p-ffe63ce9.system.entry.js → p-8b30e18c.system.entry.js} +1 -1
  298. package/dist/taro-components/p-8ba35b31.system.entry.js +1 -0
  299. package/dist/taro-components/p-8ead6b19.entry.js +1 -0
  300. package/dist/taro-components/p-8f466248.system.entry.js +1 -0
  301. package/dist/taro-components/{p-cea9a198.system.entry.js → p-9130dfca.system.entry.js} +1 -1
  302. package/dist/taro-components/{p-8a5e67cb.entry.js → p-9151ef65.entry.js} +1 -1
  303. package/dist/taro-components/p-917830b4.system.entry.js +1 -0
  304. package/dist/taro-components/p-95e51d62.entry.js +1 -0
  305. package/dist/taro-components/p-9961074d.entry.js +1 -0
  306. package/dist/taro-components/{p-3643d8f7.system.entry.js → p-9b90554b.system.entry.js} +1 -1
  307. package/dist/taro-components/p-9ce624a4.system.entry.js +1 -0
  308. package/dist/taro-components/p-a097985b.entry.js +1 -0
  309. package/dist/taro-components/p-a36bfe97.system.entry.js +1 -0
  310. package/dist/taro-components/p-a4721ae0.js +1 -0
  311. package/dist/taro-components/{p-e6298500.entry.js → p-a74f4c26.entry.js} +1 -1
  312. package/dist/taro-components/{p-7d848382.system.entry.js → p-a838e0f7.system.entry.js} +1 -1
  313. package/dist/taro-components/p-a84098b5.system.entry.js +1 -0
  314. package/dist/taro-components/p-a90bfe9d.system.entry.js +1 -0
  315. package/dist/taro-components/p-a9ab6434.system.entry.js +1 -0
  316. package/dist/taro-components/{p-99ed3ed2.system.entry.js → p-ac398961.system.entry.js} +1 -1
  317. package/dist/taro-components/{p-4dbed323.entry.js → p-ac56ffed.entry.js} +1 -1
  318. package/dist/taro-components/{p-fc4939c6.system.entry.js → p-baa5019a.system.entry.js} +1 -1
  319. package/dist/taro-components/{p-fb0959c1.system.entry.js → p-c1458fbe.system.entry.js} +1 -1
  320. package/dist/taro-components/p-c7dd3c92.entry.js +1 -0
  321. package/dist/taro-components/p-c9b73495.entry.js +1 -0
  322. package/dist/taro-components/{p-8f90fca9.system.entry.js → p-ca7ad427.system.entry.js} +1 -1
  323. package/dist/taro-components/{p-8bc82aaa.entry.js → p-ce0489a6.entry.js} +1 -1
  324. package/dist/taro-components/{p-9d0ab7c4.entry.js → p-ce46f79d.entry.js} +1 -1
  325. package/dist/taro-components/p-cfebd931.entry.js +1 -0
  326. package/dist/taro-components/p-d2b6b891.entry.js +1 -0
  327. package/dist/taro-components/{p-9fc88fc1.system.entry.js → p-d56c45bf.system.entry.js} +1 -1
  328. package/dist/taro-components/{p-06bffead.entry.js → p-d636e22e.entry.js} +1 -1
  329. package/dist/taro-components/{p-b75d8a65.entry.js → p-d6c8f31d.entry.js} +1 -1
  330. package/dist/taro-components/p-d7e13592.entry.js +365 -0
  331. package/dist/taro-components/p-de573939.system.entry.js +1 -0
  332. package/dist/taro-components/p-e01af6c8.entry.js +1 -0
  333. package/dist/taro-components/{p-865c21b5.entry.js → p-e7dcb4d5.entry.js} +1 -1
  334. package/dist/taro-components/p-ec59899b.system.entry.js +1 -0
  335. package/dist/taro-components/p-f1da4ed7.system.entry.js +1 -0
  336. package/dist/taro-components/p-fc226017.entry.js +1 -0
  337. package/dist/taro-components/{p-17039974.system.entry.js → p-fe252a81.system.entry.js} +1 -1
  338. package/dist/taro-components/taro-components.css +1 -1
  339. package/dist/taro-components/taro-components.esm.js +1 -1
  340. package/dist/taro-components/taro-components.js +1 -1
  341. package/dist/types/components/ad/ad.d.ts +4 -0
  342. package/dist/types/components/{picker-view-column/picker-view-column.d.ts → ad-custom/ad-custom.d.ts} +1 -1
  343. package/dist/types/components/editor/editor.d.ts +4 -0
  344. package/dist/types/components/functional-page-navigator/functional-page-navigator.d.ts +4 -0
  345. package/dist/types/components/image/image.d.ts +1 -1
  346. package/dist/types/components/input/input.d.ts +3 -3
  347. package/dist/types/components/keyboard-accessory/keyboard-accessory.d.ts +4 -0
  348. package/dist/types/components/live-player/live-player.d.ts +4 -0
  349. package/dist/types/components/live-pusher/live-pusher.d.ts +4 -0
  350. package/dist/types/components/map/map.d.ts +4 -0
  351. package/dist/types/components/match-media/match-media.d.ts +4 -0
  352. package/dist/types/components/{movable-view → movable-area}/movable-area.d.ts +0 -0
  353. package/dist/types/components/{movable-view → movable-area}/movable-view.d.ts +0 -0
  354. package/dist/types/components/navigation-bar/navigation-bar.d.ts +4 -0
  355. package/dist/types/components/official-account/official-account.d.ts +4 -0
  356. package/dist/types/components/page-container/page-container.d.ts +4 -0
  357. package/dist/types/components/page-meta/page-meta.d.ts +4 -0
  358. package/dist/types/components/picker-view/picker-view-column.d.ts +18 -0
  359. package/dist/types/components/picker-view/picker-view.d.ts +24 -0
  360. package/dist/types/components/{pull-down-refresh → pull-to-refresh}/pull-to-refresh.d.ts +0 -0
  361. package/dist/types/components/scroll-view/scroll-view.d.ts +1 -1
  362. package/dist/types/components/share-element/share-element.d.ts +4 -0
  363. package/dist/types/components/slot/slot.d.ts +4 -0
  364. package/dist/types/components/swiper/swiper.d.ts +2 -1
  365. package/dist/types/components/tabbar/tabbar.d.ts +4 -3
  366. package/dist/types/components/textarea/textarea.d.ts +1 -1
  367. package/dist/types/components/video/utils.d.ts +6 -0
  368. package/dist/types/components/video/video-control.d.ts +2 -2
  369. package/dist/types/components/voip-room/voip-room.d.ts +4 -0
  370. package/dist/types/components.d.ts +231 -0
  371. package/dist/types/home/runner/work/taro/taro/packages/taro-components/.stencil/types/props.d.ts +62 -0
  372. package/dist/types/props.js +1 -0
  373. package/dist/types/stencil-public-runtime.d.ts +6 -4
  374. package/dist/types/utils/index.d.ts +4 -0
  375. package/dist/types/utils/style.d.ts +1 -0
  376. package/dist/types/utils/url.d.ts +6 -0
  377. package/dist-h5/react/components/index.js +63 -0
  378. package/dist-h5/react/components/input.js +2 -2
  379. package/dist-h5/react/index.js +1 -45
  380. package/dist-h5/react/utils/reactify-wc.js +8 -5
  381. package/dist-h5/vue/components/index.js +60 -0
  382. package/dist-h5/vue/components/picker.js +4 -3
  383. package/dist-h5/vue/components/scroll-view.js +2 -2
  384. package/dist-h5/vue/createFormsComponent.js +2 -2
  385. package/dist-h5/vue/index.js +23 -26
  386. package/dist-h5/vue/mixins/listeners.js +2 -2
  387. package/dist-h5/vue3/components/icon.js +3 -0
  388. package/dist-h5/vue3/components/image.js +3 -0
  389. package/dist-h5/vue3/components/index.js +64 -0
  390. package/dist-h5/vue3/components/scroll-view.js +3 -0
  391. package/dist-h5/vue3/components/text.js +3 -0
  392. package/dist-h5/vue3/createComponent.js +3 -0
  393. package/dist-h5/vue3/createFormsComponent.js +6 -3
  394. package/dist-h5/vue3/forwardRef.js +11 -0
  395. package/dist-h5/vue3/index.js +12 -29
  396. package/package.json +35 -19
  397. package/types/Ad.d.ts +34 -22
  398. package/types/AdCustom.d.ts +50 -0
  399. package/types/Audio.d.ts +25 -5
  400. package/types/Block.d.ts +5 -2
  401. package/types/Button.d.ts +123 -34
  402. package/types/Camera.d.ts +20 -20
  403. package/types/Canvas.d.ts +15 -2
  404. package/types/Checkbox.d.ts +69 -5
  405. package/types/CheckboxGroup.d.ts +4 -4
  406. package/types/CoverImage.d.ts +50 -8
  407. package/types/CoverView.d.ts +51 -8
  408. package/types/CustomWrapper.d.ts +2 -2
  409. package/types/Editor.d.ts +63 -6
  410. package/types/Form.d.ts +38 -7
  411. package/types/FunctionalPageNavigator.d.ts +4 -4
  412. package/types/Icon.d.ts +17 -1
  413. package/types/Image.d.ts +32 -6
  414. package/types/Input.d.ts +105 -40
  415. package/types/KeyboardAccessory.d.ts +42 -0
  416. package/types/Label.d.ts +20 -6
  417. package/types/LivePlayer.d.ts +25 -19
  418. package/types/LivePusher.d.ts +21 -15
  419. package/types/Map.d.ts +87 -33
  420. package/types/MatchMedia.d.ts +24 -5
  421. package/types/MovableArea.d.ts +10 -4
  422. package/types/MovableView.d.ts +34 -20
  423. package/types/Navigator.d.ts +7 -7
  424. package/types/OfficialAccount.d.ts +7 -13
  425. package/types/OpenData.d.ts +17 -11
  426. package/types/PageContainer.d.ts +121 -0
  427. package/types/Picker.d.ts +66 -3
  428. package/types/PickerView.d.ts +66 -2
  429. package/types/PickerViewColumn.d.ts +5 -3
  430. package/types/Progress.d.ts +13 -2
  431. package/types/Radio.d.ts +82 -6
  432. package/types/RadioGroup.d.ts +2 -2
  433. package/types/RichText.d.ts +39 -2
  434. package/types/ScrollView.d.ts +94 -12
  435. package/types/ShareElement.d.ts +232 -0
  436. package/types/Slider.d.ts +15 -2
  437. package/types/Slot.d.ts +2 -2
  438. package/types/Swiper.d.ts +33 -8
  439. package/types/SwiperItem.d.ts +28 -3
  440. package/types/Switch.d.ts +22 -4
  441. package/types/Text.d.ts +38 -1
  442. package/types/Textarea.d.ts +38 -22
  443. package/types/Video.d.ts +61 -41
  444. package/types/View.d.ts +35 -3
  445. package/types/VoipRoom.d.ts +70 -0
  446. package/types/WebView.d.ts +13 -7
  447. package/types/common.d.ts +7 -10
  448. package/types/index.d.ts +49 -22
  449. package/types/index.vue3.d.ts +157 -0
  450. package/types/props.ts +72 -0
  451. package/virtual-list/memoize.js +1 -0
  452. package/virtual-list/react/createListComponent.js +5 -3
  453. package/virtual-list/react/index.js +2 -1
  454. package/virtual-list/timer.js +1 -1
  455. package/virtual-list/vue/index.js +1 -1
  456. package/vue3.d.ts +3 -0
  457. package/dist/esm-es5/index-3c78bcaf.js +0 -7
  458. package/dist/taro-components/p-10a6c489.system.entry.js +0 -1
  459. package/dist/taro-components/p-11932905.entry.js +0 -1
  460. package/dist/taro-components/p-12638ebc.system.entry.js +0 -1
  461. package/dist/taro-components/p-12ae0a33.entry.js +0 -1
  462. package/dist/taro-components/p-13c1404f.system.entry.js +0 -1
  463. package/dist/taro-components/p-17cf8b5b.entry.js +0 -1
  464. package/dist/taro-components/p-2438fcd4.system.entry.js +0 -1
  465. package/dist/taro-components/p-33ee636a.system.js +0 -1
  466. package/dist/taro-components/p-37cfdd8f.js +0 -7
  467. package/dist/taro-components/p-3aac5746.system.entry.js +0 -1
  468. package/dist/taro-components/p-3eebeb1c.system.entry.js +0 -1
  469. package/dist/taro-components/p-431197bc.entry.js +0 -1
  470. package/dist/taro-components/p-43de2f12.system.entry.js +0 -1
  471. package/dist/taro-components/p-46cf6431.system.entry.js +0 -1
  472. package/dist/taro-components/p-50066d5e.system.entry.js +0 -1
  473. package/dist/taro-components/p-554e1039.entry.js +0 -1
  474. package/dist/taro-components/p-5c420456.entry.js +0 -1
  475. package/dist/taro-components/p-627a5064.system.entry.js +0 -1
  476. package/dist/taro-components/p-64993f48.entry.js +0 -1
  477. package/dist/taro-components/p-66237ac0.entry.js +0 -1
  478. package/dist/taro-components/p-6965567d.entry.js +0 -1
  479. package/dist/taro-components/p-71de9bd6.entry.js +0 -1
  480. package/dist/taro-components/p-7a64a3d2.entry.js +0 -1
  481. package/dist/taro-components/p-83dedaa2.entry.js +0 -1
  482. package/dist/taro-components/p-94c20f60.system.js +0 -7
  483. package/dist/taro-components/p-95529dc0.entry.js +0 -1
  484. package/dist/taro-components/p-a1423df9.entry.js +0 -1
  485. package/dist/taro-components/p-b8e0ad7d.entry.js +0 -1
  486. package/dist/taro-components/p-b9280444.entry.js +0 -1
  487. package/dist/taro-components/p-c218c298.entry.js +0 -1
  488. package/dist/taro-components/p-c362734b.entry.js +0 -1
  489. package/dist/taro-components/p-d394a61f.system.entry.js +0 -1
  490. package/dist/taro-components/p-d567b95e.entry.js +0 -1
  491. package/dist/taro-components/p-d5971476.entry.js +0 -1
  492. package/dist/taro-components/p-e0af1d0d.system.entry.js +0 -1
  493. package/dist/taro-components/p-e27798a4.entry.js +0 -1
  494. package/dist/taro-components/p-f05e1558.js +0 -1
  495. package/dist/taro-components/p-f98e0224.entry.js +0 -1
  496. package/dist/taro-components/p-fb2252b7.system.entry.js +0 -1
  497. package/dist/taro-components/p-fde3a009.system.entry.js +0 -1
  498. package/dist-h5/vue/simpleComponents.js +0 -19
@@ -1,11 +1,225 @@
1
1
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
- import { Component, h, Host } from '@stencil/core';
2
+ import { Component, h, Host, Element, Prop, Event, Listen } from '@stencil/core';
3
+ import classNames from 'classnames';
4
+ import { convertStyle } from '../../utils';
3
5
  export class PickerView {
6
+ onSelect(e) {
7
+ e.stopPropagation();
8
+ if (e.target.tagName !== 'TARO-PICKER-VIEW-COLUMN-CORE')
9
+ return;
10
+ let _curIndex = +e.detail.curIndex;
11
+ let _selectedIndex = +e.detail.selectedIndex;
12
+ this.value[_curIndex] = _selectedIndex;
13
+ this.onChange.emit({ value: this.value });
14
+ }
15
+ onSelectStart(e) {
16
+ e.stopPropagation();
17
+ if (e.target.tagName !== 'TARO-PICKER-VIEW-COLUMN-CORE')
18
+ return;
19
+ this.onPickStart.emit();
20
+ }
21
+ onPickerColEnd(e) {
22
+ e.stopPropagation();
23
+ if (e.target.tagName !== 'TARO-PICKER-VIEW-COLUMN-CORE')
24
+ return;
25
+ this.onPickEnd.emit();
26
+ }
4
27
  componentDidLoad() {
5
- console.error('H5 暂不支持 PickerView 组件!');
28
+ const childList = this.el.querySelectorAll('taro-picker-view-column-core');
29
+ childList.forEach((element, index) => {
30
+ var _a;
31
+ element.setAttribute('col', `${index}`);
32
+ let selectIndex = '0';
33
+ if (!!this.value && this.value.length > index) {
34
+ selectIndex = `${this.value[index]}`;
35
+ }
36
+ const pickerHeight = this.el.getBoundingClientRect().height;
37
+ const indicatorHeight = ((_a = this.indicator) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0;
38
+ const paddingVertical = (pickerHeight - indicatorHeight) / 2.0;
39
+ element.setAttribute('initial-position', `${selectIndex}`);
40
+ element.setAttribute('padding-vertical', `${paddingVertical}`);
41
+ });
42
+ }
43
+ // 过滤非 PickerViewColumn 组件
44
+ componentDidRender() {
45
+ this.el.childNodes.forEach(item => {
46
+ const childEle = item;
47
+ if ('TARO-PICKER-VIEW-COLUMN-CORE' !== childEle.tagName &&
48
+ childEle.className !== 'taro-picker-view-mask-container') {
49
+ this.el.removeChild(item);
50
+ }
51
+ });
6
52
  }
7
53
  render() {
8
- return (h(Host, null));
54
+ const indicatorCls = classNames('taro-picker-view-mask-indicator', this.indicatorClass);
55
+ const maskTopCls = classNames('taro-picker-view-mask-top', this.maskClass);
56
+ const maskBtmCls = classNames('taro-picker-view-mask-bottom', this.maskClass);
57
+ const indicatorStyle = convertStyle(this.indicatorStyle);
58
+ const maskTopStyle = convertStyle(this.maskStyle);
59
+ const maskBottomStyle = convertStyle(this.maskStyle);
60
+ return (h(Host, { class: "taro-picker-view-container" },
61
+ h("slot", null),
62
+ h("div", { class: "taro-picker-view-mask-container" },
63
+ h("div", { class: maskTopCls, style: maskTopStyle }),
64
+ h("div", { class: indicatorCls, style: indicatorStyle, ref: indicator => (this.indicator = indicator) }),
65
+ h("div", { class: maskBtmCls, style: maskBottomStyle }))));
9
66
  }
10
67
  static get is() { return "taro-picker-view-core"; }
68
+ static get originalStyleUrls() { return {
69
+ "$": ["./style/index.scss"]
70
+ }; }
71
+ static get styleUrls() { return {
72
+ "$": ["./style/index.css"]
73
+ }; }
74
+ static get properties() { return {
75
+ "indicatorStyle": {
76
+ "type": "string",
77
+ "mutable": false,
78
+ "complexType": {
79
+ "original": "string",
80
+ "resolved": "string",
81
+ "references": {}
82
+ },
83
+ "required": false,
84
+ "optional": false,
85
+ "docs": {
86
+ "tags": [],
87
+ "text": ""
88
+ },
89
+ "attribute": "indicator-style",
90
+ "reflect": false
91
+ },
92
+ "indicatorClass": {
93
+ "type": "string",
94
+ "mutable": false,
95
+ "complexType": {
96
+ "original": "string",
97
+ "resolved": "string",
98
+ "references": {}
99
+ },
100
+ "required": false,
101
+ "optional": false,
102
+ "docs": {
103
+ "tags": [],
104
+ "text": ""
105
+ },
106
+ "attribute": "indicator-class",
107
+ "reflect": false
108
+ },
109
+ "value": {
110
+ "type": "unknown",
111
+ "mutable": false,
112
+ "complexType": {
113
+ "original": "number[]",
114
+ "resolved": "number[]",
115
+ "references": {}
116
+ },
117
+ "required": false,
118
+ "optional": false,
119
+ "docs": {
120
+ "tags": [],
121
+ "text": ""
122
+ }
123
+ },
124
+ "maskStyle": {
125
+ "type": "string",
126
+ "mutable": false,
127
+ "complexType": {
128
+ "original": "string",
129
+ "resolved": "string",
130
+ "references": {}
131
+ },
132
+ "required": false,
133
+ "optional": false,
134
+ "docs": {
135
+ "tags": [],
136
+ "text": ""
137
+ },
138
+ "attribute": "mask-style",
139
+ "reflect": false
140
+ },
141
+ "maskClass": {
142
+ "type": "string",
143
+ "mutable": false,
144
+ "complexType": {
145
+ "original": "string",
146
+ "resolved": "string",
147
+ "references": {}
148
+ },
149
+ "required": false,
150
+ "optional": false,
151
+ "docs": {
152
+ "tags": [],
153
+ "text": ""
154
+ },
155
+ "attribute": "mask-class",
156
+ "reflect": false
157
+ }
158
+ }; }
159
+ static get events() { return [{
160
+ "method": "onChange",
161
+ "name": "change",
162
+ "bubbles": true,
163
+ "cancelable": true,
164
+ "composed": true,
165
+ "docs": {
166
+ "tags": [],
167
+ "text": ""
168
+ },
169
+ "complexType": {
170
+ "original": "any",
171
+ "resolved": "any",
172
+ "references": {}
173
+ }
174
+ }, {
175
+ "method": "onPickStart",
176
+ "name": "pickstart",
177
+ "bubbles": true,
178
+ "cancelable": true,
179
+ "composed": true,
180
+ "docs": {
181
+ "tags": [],
182
+ "text": ""
183
+ },
184
+ "complexType": {
185
+ "original": "any",
186
+ "resolved": "any",
187
+ "references": {}
188
+ }
189
+ }, {
190
+ "method": "onPickEnd",
191
+ "name": "pickend",
192
+ "bubbles": true,
193
+ "cancelable": true,
194
+ "composed": true,
195
+ "docs": {
196
+ "tags": [],
197
+ "text": ""
198
+ },
199
+ "complexType": {
200
+ "original": "any",
201
+ "resolved": "any",
202
+ "references": {}
203
+ }
204
+ }]; }
205
+ static get elementRef() { return "el"; }
206
+ static get listeners() { return [{
207
+ "name": "onselect",
208
+ "method": "onSelect",
209
+ "target": undefined,
210
+ "capture": false,
211
+ "passive": false
212
+ }, {
213
+ "name": "onselectstart",
214
+ "method": "onSelectStart",
215
+ "target": undefined,
216
+ "capture": false,
217
+ "passive": false
218
+ }, {
219
+ "name": "onselectend",
220
+ "method": "onPickerColEnd",
221
+ "target": undefined,
222
+ "capture": false,
223
+ "passive": false
224
+ }]; }
11
225
  }
@@ -0,0 +1,12 @@
1
+ .taro-picker-view-column-container {
2
+ display: flex;
3
+ overflow: scroll;
4
+ overflow-x: hidden;
5
+ position: relative;
6
+ flex-direction: column;
7
+ flex: 1;
8
+ text-align: center;
9
+ }
10
+ .taro-picker-view-column-container::-webkit-scrollbar {
11
+ display: none;
12
+ }
@@ -0,0 +1,28 @@
1
+ .taro-picker-view-container {
2
+ display: flex;
3
+ position: relative;
4
+ }
5
+ .taro-picker-view-mask-container {
6
+ display: flex;
7
+ position: absolute;
8
+ left: 0;
9
+ right: 0;
10
+ top: 0;
11
+ bottom: 0;
12
+ flex-direction: column;
13
+ pointer-events: none;
14
+ }
15
+ .taro-picker-view-mask-indicator {
16
+ display: flex;
17
+ border-top: 1px solid #ddd;
18
+ border-bottom: 1px solid #ddd;
19
+ height: 50px;
20
+ }
21
+ .taro-picker-view-mask-top {
22
+ flex: 1;
23
+ background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));
24
+ }
25
+ .taro-picker-view-mask-bottom {
26
+ flex: 1;
27
+ background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));
28
+ }
@@ -1,6 +1,6 @@
1
1
  import { Component, Prop, h, Host, State, Event, Watch, Element } from '@stencil/core';
2
+ import Taro from '@tarojs/taro';
2
3
  import classNames from 'classnames';
3
- const Taro = require('@tarojs/taro');
4
4
  function setTransform(nodeStyle, value) {
5
5
  nodeStyle.transform = value;
6
6
  nodeStyle.webkitTransform = value;
@@ -55,6 +55,11 @@ export class PullToRefresh {
55
55
  };
56
56
  this.init = () => {
57
57
  const ele = this.scrollContainer;
58
+ const child = this.el.querySelector('rmc-pull-to-refresh-content');
59
+ this.el.appendChild = child === null || child === void 0 ? void 0 : child.appendChild.bind(child);
60
+ this.el.insertBefore = child === null || child === void 0 ? void 0 : child.insertBefore.bind(child);
61
+ this.el.replaceChild = child === null || child === void 0 ? void 0 : child.replaceChild.bind(child);
62
+ this.el.removeChild = child === null || child === void 0 ? void 0 : child.removeChild.bind(child);
58
63
  this._to = {
59
64
  touchstart: this.onTouchStart.bind(this, ele),
60
65
  touchmove: this.onTouchMove.bind(this, ele),
@@ -159,7 +164,7 @@ export class PullToRefresh {
159
164
  this.setContentStyle(0);
160
165
  };
161
166
  this.setContentStyle = (ty) => {
162
- // todos: Why sometimes do not have `this.contentRef` ?
167
+ // TODO: Why sometimes do not have `this.contentRef` ?
163
168
  if (this.contentRef) {
164
169
  // translate3d 不清理 会影响内部元素 定位
165
170
  if (ty) {
@@ -172,7 +177,12 @@ export class PullToRefresh {
172
177
  };
173
178
  }
174
179
  get scrollContainer() {
175
- return document.querySelector('.taro-tabbar__panel') || document.body;
180
+ return this.el.parentElement ||
181
+ document.querySelector('.taro_page_stationed') ||
182
+ document.querySelector('.taro_page') ||
183
+ document.querySelector('.taro_router') ||
184
+ document.querySelector('.taro-tabbar__panel') ||
185
+ document.body;
176
186
  }
177
187
  statusChange() {
178
188
  if (this.currSt === 'release') {
@@ -237,7 +247,7 @@ export class PullToRefresh {
237
247
  }
238
248
  static get is() { return "taro-pull-to-refresh"; }
239
249
  static get originalStyleUrls() { return {
240
- "$": ["./style/index.css"]
250
+ "$": ["./style/index.scss"]
241
251
  }; }
242
252
  static get styleUrls() { return {
243
253
  "$": ["./style/index.css"]
@@ -1,49 +1,53 @@
1
- .rmc-pull-to-refresh-content {
2
- transform-origin: left top 0px;
3
- }
4
- .rmc-pull-to-refresh-content-wrapper {
5
- overflow: hidden;
6
- }
7
-
8
- .rmc-pull-to-refresh-transition {
9
- transition: transform 0.3s;
10
- }
11
-
12
-
13
- @keyframes rmc-pull-to-refresh-indicator {
14
- 50% {
15
- opacity: 0.2;
16
- }
17
- 100% {
18
- opacity: 1;
19
- }
20
- }
21
-
22
- .rmc-pull-to-refresh-indicator {
23
- text-align: center;
24
- height: 30px;
25
- line-height: 10px;
26
- }
27
-
28
- .rmc-pull-to-refresh-indicator > div {
29
- background-color: grey;
30
- width: 6px;
31
- height: 6px;
32
- border-radius: 100%;
33
- margin: 3px;
34
- animation-fill-mode: both;
35
- display: inline-block;
36
- animation: rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;
37
- }
38
- .rmc-pull-to-refresh-indicator > div:nth-child(0) {
39
- animation-delay: -0.1s !important;
40
- }
41
- .rmc-pull-to-refresh-indicator > div:nth-child(1) {
42
- animation-delay: -0.2s !important;
43
- }
44
- .rmc-pull-to-refresh-indicator > div:nth-child(2) {
45
- animation-delay: -0.3s !important;
46
- }
47
- .rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator {
48
- margin-top: -25px;
49
- }
1
+ .rmc-pull-to-refresh-content {
2
+ transform-origin: left top 0;
3
+ }
4
+
5
+ .rmc-pull-to-refresh-content-wrapper {
6
+ overflow: hidden;
7
+ min-height: 100vh;
8
+ }
9
+
10
+ .rmc-pull-to-refresh-transition {
11
+ transition: transform 0.3s;
12
+ }
13
+
14
+ @keyframes rmc-pull-to-refresh-indicator {
15
+ 50% {
16
+ opacity: 0.2;
17
+ }
18
+ 100% {
19
+ opacity: 1;
20
+ }
21
+ }
22
+ .rmc-pull-to-refresh-indicator {
23
+ height: 30px;
24
+ line-height: 10px;
25
+ text-align: center;
26
+ }
27
+
28
+ .rmc-pull-to-refresh-indicator > div {
29
+ display: inline-block;
30
+ margin: 3px;
31
+ border-radius: 100%;
32
+ width: 6px;
33
+ height: 6px;
34
+ background-color: grey;
35
+ animation: rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;
36
+ animation-fill-mode: both;
37
+ }
38
+
39
+ .rmc-pull-to-refresh-indicator > div:nth-child(0) {
40
+ animation-delay: -0.1s !important;
41
+ }
42
+
43
+ .rmc-pull-to-refresh-indicator > div:nth-child(1) {
44
+ animation-delay: -0.2s !important;
45
+ }
46
+
47
+ .rmc-pull-to-refresh-indicator > div:nth-child(2) {
48
+ animation-delay: -0.3s !important;
49
+ }
50
+
51
+ .rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator {
52
+ margin-top: -25px;
53
+ }
@@ -3,7 +3,7 @@ export class RichText {
3
3
  constructor() {
4
4
  this.renderNode = (node) => {
5
5
  if ('type' in node && node.type === 'text') {
6
- // unsupport Html Entries
6
+ // nonsupport Html Entries
7
7
  const content = (node.text || '').replace(/ /g, '\u00A0');
8
8
  return content;
9
9
  }
@@ -1,6 +1,7 @@
1
1
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
2
  import { Component, h, Prop, Event, Watch, Element, Host } from '@stencil/core';
3
3
  import classNames from 'classnames';
4
+ import { debounce } from '../../utils';
4
5
  function easeOutScroll(from, to, callback) {
5
6
  if (from === to || typeof from !== 'number') {
6
7
  return;
@@ -23,15 +24,6 @@ function easeOutScroll(from, to, callback) {
23
24
  }
24
25
  step();
25
26
  }
26
- function debounce(fn, delay) {
27
- let timer;
28
- return function (...arrs) {
29
- clearTimeout(timer);
30
- timer = setTimeout(function () {
31
- fn(...arrs);
32
- }, delay);
33
- };
34
- }
35
27
  export class ScrollView {
36
28
  constructor() {
37
29
  this.scrollX = false;
@@ -45,7 +37,7 @@ export class ScrollView {
45
37
  const { scrollLeft, scrollTop, scrollHeight, scrollWidth } = this.el;
46
38
  this._scrollLeft = scrollLeft;
47
39
  this._scrollTop = scrollTop;
48
- this.uperAndLower();
40
+ this.upperAndLower();
49
41
  this.onScroll.emit({
50
42
  scrollLeft,
51
43
  scrollTop,
@@ -53,7 +45,7 @@ export class ScrollView {
53
45
  scrollWidth
54
46
  });
55
47
  };
56
- this.uperAndLower = debounce(() => {
48
+ this.upperAndLower = debounce(() => {
57
49
  const { offsetWidth, offsetHeight, scrollLeft, scrollTop, scrollHeight, scrollWidth } = this.el;
58
50
  const lowerThreshold = Number(this.lowerThreshold);
59
51
  const upperThreshold = Number(this.upperThreshold);
@@ -296,7 +288,7 @@ export class ScrollView {
296
288
  static get events() { return [{
297
289
  "method": "onScroll",
298
290
  "name": "scroll",
299
- "bubbles": true,
291
+ "bubbles": false,
300
292
  "cancelable": true,
301
293
  "composed": true,
302
294
  "docs": {
@@ -311,7 +303,7 @@ export class ScrollView {
311
303
  }, {
312
304
  "method": "onScrollToUpper",
313
305
  "name": "scrolltoupper",
314
- "bubbles": true,
306
+ "bubbles": false,
315
307
  "cancelable": true,
316
308
  "composed": true,
317
309
  "docs": {
@@ -326,7 +318,7 @@ export class ScrollView {
326
318
  }, {
327
319
  "method": "onScrollToLower",
328
320
  "name": "scrolltolower",
329
- "bubbles": true,
321
+ "bubbles": false,
330
322
  "cancelable": true,
331
323
  "composed": true,
332
324
  "docs": {
@@ -0,0 +1,11 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
+ import { Component, h, Host } from '@stencil/core';
3
+ export class ShareElement {
4
+ componentDidLoad() {
5
+ console.error('H5 暂不支持 ShareElement 组件!');
6
+ }
7
+ render() {
8
+ return (h(Host, null));
9
+ }
10
+ static get is() { return "taro-share-element-core"; }
11
+ }
@@ -0,0 +1,11 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
+ import { Component, h, Host } from '@stencil/core';
3
+ export class Slot {
4
+ componentDidLoad() {
5
+ console.error('H5 暂不支持 Slot 组件!');
6
+ }
7
+ render() {
8
+ return (h(Host, null));
9
+ }
10
+ static get is() { return "taro-slot-core"; }
11
+ }
@@ -1,7 +1,8 @@
1
1
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
2
  import { Component, h, Prop, Event, Watch, Host, Element, State } from '@stencil/core';
3
- import SwiperJS from 'swiper/swiper-bundle.esm.js';
4
3
  import classNames from 'classnames';
4
+ import SwiperJS from 'swiper/swiper-bundle.esm.js';
5
+ import { debounce } from '../../utils';
5
6
  let INSTANCE_ID = 0;
6
7
  export class Swiper {
7
8
  constructor() {
@@ -86,6 +87,11 @@ export class Swiper {
86
87
  this.swiper.loopCreate();
87
88
  }
88
89
  }, 500);
90
+ this.handleSwiperSize = debounce(() => {
91
+ if (this.swiper && !this.circular) {
92
+ this.swiper.updateSlides();
93
+ }
94
+ }, 50);
89
95
  }
90
96
  watchCurrent(newVal) {
91
97
  if (!this.isWillLoadCalled)
@@ -149,6 +155,8 @@ export class Swiper {
149
155
  this.el.removeChild = (oldChild) => {
150
156
  return newVal.removeChild(oldChild);
151
157
  };
158
+ this.el.addEventListener('DOMNodeInserted', this.handleSwiperSize);
159
+ this.el.addEventListener('DOMNodeRemoved', this.handleSwiperSize);
152
160
  }
153
161
  watchCircular() {
154
162
  if (this.swiper) {
@@ -182,12 +190,14 @@ export class Swiper {
182
190
  }
183
191
  disconnectedCallback() {
184
192
  var _a, _b, _c, _d, _e, _f;
193
+ this.el.removeEventListener('DOMNodeInserted', this.handleSwiperSize);
194
+ this.el.removeEventListener('DOMNodeRemoved', this.handleSwiperSize);
185
195
  (_b = (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect) === null || _b === void 0 ? void 0 : _b.call(_a);
186
196
  (_d = (_c = this.observerFirst) === null || _c === void 0 ? void 0 : _c.disconnect) === null || _d === void 0 ? void 0 : _d.call(_c);
187
197
  (_f = (_e = this.observerLast) === null || _e === void 0 ? void 0 : _e.disconnect) === null || _f === void 0 ? void 0 : _f.call(_e);
188
198
  }
189
199
  handleInit() {
190
- const { autoplay, current, interval, duration, circular, vertical, displayMultipleItems } = this;
200
+ const { autoplay, circular, current, displayMultipleItems, duration, interval, vertical } = this;
191
201
  // eslint-disable-next-line @typescript-eslint/no-this-alias
192
202
  const that = this;
193
203
  const options = {
@@ -205,7 +215,7 @@ export class Swiper {
205
215
  },
206
216
  // slideChange 事件在 swiper.slideTo 改写 current 时不触发,因此用 slideChangeTransitionEnd 事件代替
207
217
  slideChangeTransitionEnd(_swiper) {
208
- if (circular) {
218
+ if (that.circular) {
209
219
  if (_swiper.isBeginning || _swiper.isEnd) {
210
220
  _swiper.slideToLoop(this.realIndex, 0); // 更新下标
211
221
  return;
@@ -225,9 +235,14 @@ export class Swiper {
225
235
  observerUpdate(_swiper, e) {
226
236
  const target = e.target;
227
237
  const className = target && typeof target.className === 'string' ? target.className : '';
228
- if (className.includes('taro_page') && target.style.display === 'block') {
238
+ if (className.includes('taro_page') && target.style.display !== 'none') {
229
239
  if (that.autoplay && target.contains(_swiper.$el[0])) {
230
- _swiper.slideTo(that.current);
240
+ if (that.circular) {
241
+ _swiper.slideToLoop(this.realIndex, 0); // 更新下标
242
+ }
243
+ else {
244
+ _swiper.slideTo(this.realIndex);
245
+ }
231
246
  }
232
247
  }
233
248
  }
@@ -579,12 +594,3 @@ export class Swiper {
579
594
  "methodName": "watchCircular"
580
595
  }]; }
581
596
  }
582
- function debounce(fn, delay) {
583
- let timer;
584
- return function (...arrs) {
585
- clearTimeout(timer);
586
- timer = setTimeout(function () {
587
- fn(...arrs);
588
- }, delay);
589
- };
590
- }
@@ -1,4 +1,5 @@
1
- html, body {
1
+ html,
2
+ body {
2
3
  height: 100%;
3
4
  }
4
5
 
@@ -11,20 +12,20 @@ html, body {
11
12
  }
12
13
  .taro-tabbar__container {
13
14
  display: flex;
14
- height: 100%;
15
- flex-direction: column;
16
15
  overflow: hidden;
16
+ flex-direction: column;
17
+ height: 100%;
17
18
  }
18
19
  .taro-tabbar__panel {
19
- flex: 1;
20
- position: relative;
21
20
  overflow: auto;
22
- -webkit-overflow-scrolling: touch;
21
+ position: relative;
22
+ flex: 1;
23
+ -webkit-overflow-scrolling: auto;
23
24
  }
24
25
  .taro-tabbar__tabbar {
25
26
  position: relative;
26
- height: 50px;
27
27
  width: 100%;
28
+ height: 50px;
28
29
  transition: bottom 0.2s, top 0.2s;
29
30
  }
30
31
  .taro-tabbar__tabbar-top {
@@ -32,6 +33,8 @@ html, body {
32
33
  }
33
34
  .taro-tabbar__tabbar-bottom {
34
35
  bottom: 0;
36
+ margin-bottom: constant(safe-area-inset-bottom);
37
+ margin-bottom: env(safe-area-inset-bottom);
35
38
  }
36
39
  .taro-tabbar__tabbar-hide {
37
40
  display: none;