@tarojs/components 3.7.0-canary.1 → 3.7.0-canary.2

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 (450) hide show
  1. package/dist/cjs/helper-ad6306f6.js +31 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
  4. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
  5. package/dist/cjs/taro-animation-video-core.cjs.entry.js +1 -1
  6. package/dist/cjs/taro-animation-view-core.cjs.entry.js +1 -1
  7. package/dist/cjs/taro-ar-camera-core.cjs.entry.js +1 -1
  8. package/dist/cjs/taro-aweme-data-core.cjs.entry.js +1 -1
  9. package/dist/cjs/taro-button-core.cjs.entry.js +1 -1
  10. package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
  11. package/dist/cjs/taro-canvas-core.cjs.entry.js +13 -1
  12. package/dist/cjs/taro-channel-live-core.cjs.entry.js +1 -1
  13. package/dist/cjs/taro-channel-video-core.cjs.entry.js +1 -1
  14. package/dist/cjs/taro-comment-detail-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-comment-list-core.cjs.entry.js +1 -1
  16. package/dist/cjs/taro-components.cjs.js +1 -1
  17. package/dist/cjs/taro-contact-button-core.cjs.entry.js +1 -1
  18. package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
  19. package/dist/cjs/taro-follow-swan-core.cjs.entry.js +1 -1
  20. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
  21. package/dist/cjs/taro-grid-view-core.cjs.entry.js +1 -1
  22. package/dist/cjs/taro-image-core.cjs.entry.js +5 -4
  23. package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +1 -1
  24. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
  25. package/dist/cjs/taro-lifestyle-core.cjs.entry.js +1 -1
  26. package/dist/cjs/taro-like-core.cjs.entry.js +1 -1
  27. package/dist/cjs/taro-list-view-core.cjs.entry.js +1 -1
  28. package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
  29. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
  30. package/dist/cjs/taro-login-core.cjs.entry.js +1 -1
  31. package/dist/cjs/taro-lottie-core.cjs.entry.js +1 -1
  32. package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
  33. package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
  34. package/dist/cjs/taro-native-slot-core.cjs.entry.js +1 -1
  35. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
  36. package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
  37. package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
  38. package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
  39. package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
  40. package/dist/cjs/taro-picker-core_2.cjs.entry.js +31 -30
  41. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +35 -35
  42. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +2 -2
  43. package/dist/cjs/taro-root-portal-core.cjs.entry.js +1 -1
  44. package/dist/cjs/taro-rtc-room-core.cjs.entry.js +1 -1
  45. package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +1 -1
  46. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +16 -3
  47. package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
  48. package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
  49. package/dist/cjs/taro-snapshot-core.cjs.entry.js +21 -0
  50. package/dist/cjs/taro-sticky-header-core.cjs.entry.js +1 -1
  51. package/dist/cjs/taro-sticky-section-core.cjs.entry.js +1 -1
  52. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +61 -49
  53. package/dist/cjs/taro-tab-item-core.cjs.entry.js +1 -1
  54. package/dist/cjs/taro-tabbar.cjs.entry.js +9 -21
  55. package/dist/cjs/taro-tabs-core.cjs.entry.js +1 -1
  56. package/dist/cjs/taro-video-control_3.cjs.entry.js +7 -3
  57. package/dist/cjs/taro-view-core.cjs.entry.js +3 -9
  58. package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
  59. package/dist/collection/collection-manifest.json +1 -0
  60. package/dist/collection/components/button/style/index.css +12 -0
  61. package/dist/collection/components/canvas/canvas.js +48 -2
  62. package/dist/collection/components/image/image.js +6 -4
  63. package/dist/collection/components/image/style/index.css +2 -2
  64. package/dist/collection/components/picker/picker.js +31 -30
  65. package/dist/collection/components/picker-view/picker-view-column.js +27 -55
  66. package/dist/collection/components/picker-view/picker-view.js +14 -2
  67. package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +1 -1
  68. package/dist/collection/components/pull-to-refresh/style/index.css +1 -2
  69. package/dist/collection/components/scroll-view/scroll-view.js +40 -6
  70. package/dist/collection/components/snapshot/snapshot.js +11 -0
  71. package/dist/collection/components/swiper/swiper-item.js +34 -35
  72. package/dist/collection/components/swiper/swiper.js +28 -14
  73. package/dist/collection/components/tabbar/style/index.css +5 -1
  74. package/dist/collection/components/tabbar/tabbar-item.js +1 -1
  75. package/dist/collection/components/tabbar/tabbar.js +4 -4
  76. package/dist/collection/components/video/style/index.css +1 -0
  77. package/dist/collection/components/video/video.js +6 -2
  78. package/dist/collection/components/view/view.js +2 -9
  79. package/dist/collection/utils/helper.js +11 -0
  80. package/dist/components/helper.js +12 -1
  81. package/dist/components/index.d.ts +1 -0
  82. package/dist/components/index.js +1 -0
  83. package/dist/components/taro-button-core.js +1 -1
  84. package/dist/components/taro-canvas-core.js +16 -2
  85. package/dist/components/taro-image-core.js +7 -5
  86. package/dist/components/taro-picker-core.js +31 -30
  87. package/dist/components/taro-picker-view-column-core.js +26 -36
  88. package/dist/components/taro-picker-view-core.js +11 -2
  89. package/dist/components/taro-pull-to-refresh.js +2 -2
  90. package/dist/components/taro-scroll-view-core.js +17 -4
  91. package/dist/components/taro-snapshot-core.d.ts +11 -0
  92. package/dist/components/taro-snapshot-core.js +33 -0
  93. package/dist/components/taro-swiper-core.js +28 -14
  94. package/dist/components/taro-swiper-item-core.js +34 -35
  95. package/dist/components/taro-tabbar.js +2 -14
  96. package/dist/components/taro-video-core.js +7 -3
  97. package/dist/components/taro-view-core.js +2 -9
  98. package/dist/esm/helper-8a85bb65.js +24 -0
  99. package/dist/esm/loader.js +1 -1
  100. package/dist/esm/taro-ad-core.entry.js +1 -1
  101. package/dist/esm/taro-ad-custom-core.entry.js +1 -1
  102. package/dist/esm/taro-animation-video-core.entry.js +1 -1
  103. package/dist/esm/taro-animation-view-core.entry.js +1 -1
  104. package/dist/esm/taro-ar-camera-core.entry.js +1 -1
  105. package/dist/esm/taro-aweme-data-core.entry.js +1 -1
  106. package/dist/esm/taro-button-core.entry.js +1 -1
  107. package/dist/esm/taro-camera-core.entry.js +1 -1
  108. package/dist/esm/taro-canvas-core.entry.js +13 -1
  109. package/dist/esm/taro-channel-live-core.entry.js +1 -1
  110. package/dist/esm/taro-channel-video-core.entry.js +1 -1
  111. package/dist/esm/taro-comment-detail-core.entry.js +1 -1
  112. package/dist/esm/taro-comment-list-core.entry.js +1 -1
  113. package/dist/esm/taro-components.js +1 -1
  114. package/dist/esm/taro-contact-button-core.entry.js +1 -1
  115. package/dist/esm/taro-editor-core.entry.js +1 -1
  116. package/dist/esm/taro-follow-swan-core.entry.js +1 -1
  117. package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
  118. package/dist/esm/taro-grid-view-core.entry.js +1 -1
  119. package/dist/esm/taro-image-core.entry.js +5 -4
  120. package/dist/esm/taro-inline-payment-panel-core.entry.js +1 -1
  121. package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
  122. package/dist/esm/taro-lifestyle-core.entry.js +1 -1
  123. package/dist/esm/taro-like-core.entry.js +1 -1
  124. package/dist/esm/taro-list-view-core.entry.js +1 -1
  125. package/dist/esm/taro-live-player-core.entry.js +1 -1
  126. package/dist/esm/taro-live-pusher-core.entry.js +1 -1
  127. package/dist/esm/taro-login-core.entry.js +1 -1
  128. package/dist/esm/taro-lottie-core.entry.js +1 -1
  129. package/dist/esm/taro-map-core.entry.js +1 -1
  130. package/dist/esm/taro-match-media-core.entry.js +1 -1
  131. package/dist/esm/taro-native-slot-core.entry.js +1 -1
  132. package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
  133. package/dist/esm/taro-official-account-core.entry.js +1 -1
  134. package/dist/esm/taro-open-data-core.entry.js +1 -1
  135. package/dist/esm/taro-page-container-core.entry.js +1 -1
  136. package/dist/esm/taro-page-meta-core.entry.js +1 -1
  137. package/dist/esm/taro-picker-core_2.entry.js +31 -30
  138. package/dist/esm/taro-picker-view-column-core_2.entry.js +35 -35
  139. package/dist/esm/taro-pull-to-refresh.entry.js +2 -2
  140. package/dist/esm/taro-root-portal-core.entry.js +1 -1
  141. package/dist/esm/taro-rtc-room-core.entry.js +1 -1
  142. package/dist/esm/taro-rtc-room-item-core.entry.js +1 -1
  143. package/dist/esm/taro-scroll-view-core.entry.js +16 -3
  144. package/dist/esm/taro-share-element-core.entry.js +1 -1
  145. package/dist/esm/taro-slot-core.entry.js +1 -1
  146. package/dist/esm/taro-snapshot-core.entry.js +17 -0
  147. package/dist/esm/taro-sticky-header-core.entry.js +1 -1
  148. package/dist/esm/taro-sticky-section-core.entry.js +1 -1
  149. package/dist/esm/taro-swiper-core_2.entry.js +61 -49
  150. package/dist/esm/taro-tab-item-core.entry.js +1 -1
  151. package/dist/esm/taro-tabbar.entry.js +2 -14
  152. package/dist/esm/taro-tabs-core.entry.js +1 -1
  153. package/dist/esm/taro-video-control_3.entry.js +7 -3
  154. package/dist/esm/taro-view-core.entry.js +3 -9
  155. package/dist/esm/taro-voip-room-core.entry.js +1 -1
  156. package/dist/esm-es5/helper-8a85bb65.js +1 -0
  157. package/dist/esm-es5/loader.js +1 -1
  158. package/dist/esm-es5/taro-ad-core.entry.js +1 -1
  159. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
  160. package/dist/esm-es5/taro-animation-video-core.entry.js +1 -1
  161. package/dist/esm-es5/taro-animation-view-core.entry.js +1 -1
  162. package/dist/esm-es5/taro-ar-camera-core.entry.js +1 -1
  163. package/dist/esm-es5/taro-aweme-data-core.entry.js +1 -1
  164. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  165. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  166. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  167. package/dist/esm-es5/taro-channel-live-core.entry.js +1 -1
  168. package/dist/esm-es5/taro-channel-video-core.entry.js +1 -1
  169. package/dist/esm-es5/taro-comment-detail-core.entry.js +1 -1
  170. package/dist/esm-es5/taro-comment-list-core.entry.js +1 -1
  171. package/dist/esm-es5/taro-components.js +1 -1
  172. package/dist/esm-es5/taro-contact-button-core.entry.js +1 -1
  173. package/dist/esm-es5/taro-editor-core.entry.js +1 -1
  174. package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
  175. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
  176. package/dist/esm-es5/taro-grid-view-core.entry.js +1 -1
  177. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  178. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +1 -1
  179. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
  180. package/dist/esm-es5/taro-lifestyle-core.entry.js +1 -1
  181. package/dist/esm-es5/taro-like-core.entry.js +1 -1
  182. package/dist/esm-es5/taro-list-view-core.entry.js +1 -1
  183. package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
  184. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
  185. package/dist/esm-es5/taro-login-core.entry.js +1 -1
  186. package/dist/esm-es5/taro-lottie-core.entry.js +1 -1
  187. package/dist/esm-es5/taro-map-core.entry.js +1 -1
  188. package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
  189. package/dist/esm-es5/taro-native-slot-core.entry.js +1 -1
  190. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
  191. package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
  192. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  193. package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
  194. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
  195. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  196. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
  197. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
  198. package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
  199. package/dist/esm-es5/taro-rtc-room-core.entry.js +1 -1
  200. package/dist/esm-es5/taro-rtc-room-item-core.entry.js +1 -1
  201. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  202. package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
  203. package/dist/esm-es5/taro-slot-core.entry.js +1 -1
  204. package/dist/esm-es5/taro-snapshot-core.entry.js +1 -0
  205. package/dist/esm-es5/taro-sticky-header-core.entry.js +1 -1
  206. package/dist/esm-es5/taro-sticky-section-core.entry.js +1 -1
  207. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  208. package/dist/esm-es5/taro-tab-item-core.entry.js +1 -1
  209. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  210. package/dist/esm-es5/taro-tabs-core.entry.js +1 -1
  211. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  212. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  213. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
  214. package/dist/taro-components/p-00ed4bbb.entry.js +1 -0
  215. package/dist/taro-components/{p-9b6550fc.entry.js → p-065a10d7.entry.js} +1 -1
  216. package/dist/taro-components/p-06671eee.entry.js +1 -0
  217. package/dist/taro-components/p-08b7ecd7.system.entry.js +1 -0
  218. package/dist/taro-components/p-0a250d71.system.entry.js +1 -0
  219. package/dist/taro-components/{p-c39a46ca.system.entry.js → p-0cedad18.system.entry.js} +1 -1
  220. package/dist/taro-components/{p-b235e43c.entry.js → p-0e3b37e9.entry.js} +1 -1
  221. package/dist/taro-components/p-0e8199b7.entry.js +1 -0
  222. package/dist/taro-components/{p-cc164fa3.entry.js → p-0ec2e88a.entry.js} +1 -1
  223. package/dist/taro-components/{p-968b7c1d.entry.js → p-124ac21f.entry.js} +1 -1
  224. package/dist/taro-components/p-15624788.system.entry.js +1 -0
  225. package/dist/taro-components/p-1b789738.system.entry.js +1 -0
  226. package/dist/taro-components/p-1cf16dfa.entry.js +1 -0
  227. package/dist/taro-components/p-1f118969.system.entry.js +1 -0
  228. package/dist/taro-components/{p-898db637.system.entry.js → p-21c07cb3.system.entry.js} +1 -1
  229. package/dist/taro-components/{p-af9ef8b4.entry.js → p-22bf7daf.entry.js} +1 -1
  230. package/dist/taro-components/p-24d9836e.entry.js +1 -0
  231. package/dist/taro-components/p-29638de3.entry.js +1 -0
  232. package/dist/taro-components/p-2da9c8fd.entry.js +1 -0
  233. package/dist/taro-components/{p-5640e9f4.system.entry.js → p-3004e71a.system.entry.js} +1 -1
  234. package/dist/taro-components/{p-1974e52e.system.entry.js → p-32e9981a.system.entry.js} +1 -1
  235. package/dist/taro-components/{p-f534057e.system.entry.js → p-36d4407e.system.entry.js} +1 -1
  236. package/dist/taro-components/p-3f3abe55.system.entry.js +1 -0
  237. package/dist/taro-components/p-4cedbe5e.system.entry.js +1 -0
  238. package/dist/taro-components/p-4f1d180d.entry.js +1 -0
  239. package/dist/taro-components/{p-355e4dbc.entry.js → p-4fc40739.entry.js} +1 -1
  240. package/dist/taro-components/{p-6d4b7e5c.system.entry.js → p-519fbe84.system.entry.js} +1 -1
  241. package/dist/taro-components/{p-90333d0a.system.entry.js → p-5756cf00.system.entry.js} +1 -1
  242. package/dist/taro-components/{p-88d2b41b.system.entry.js → p-5870248f.system.entry.js} +1 -1
  243. package/dist/taro-components/{p-81f2ad70.system.entry.js → p-58cc2e6d.system.entry.js} +1 -1
  244. package/dist/taro-components/{p-9ac947ac.system.entry.js → p-5994d9f2.system.entry.js} +1 -1
  245. package/dist/taro-components/p-5e91398a.system.entry.js +1 -0
  246. package/dist/taro-components/{p-2d1b4dcc.system.entry.js → p-5ebc7010.system.entry.js} +1 -1
  247. package/dist/taro-components/p-600e89cc.system.entry.js +1 -0
  248. package/dist/taro-components/p-60faf73e.system.entry.js +1 -0
  249. package/dist/taro-components/p-64eb91f7.entry.js +1 -0
  250. package/dist/taro-components/{p-137531b6.entry.js → p-69c43a81.entry.js} +1 -1
  251. package/dist/taro-components/p-6aa2ac6a.system.entry.js +1 -0
  252. package/dist/taro-components/p-6b454506.entry.js +1 -0
  253. package/dist/taro-components/{p-ebdd350f.system.entry.js → p-6cde54e5.system.entry.js} +1 -1
  254. package/dist/taro-components/{p-a96b4b19.system.entry.js → p-7102ecf5.system.entry.js} +1 -1
  255. package/dist/taro-components/{p-407ca16e.entry.js → p-76996fcb.entry.js} +1 -1
  256. package/dist/taro-components/p-7726b789.system.entry.js +1 -0
  257. package/dist/taro-components/{p-7152d85b.entry.js → p-7b68dee8.entry.js} +1 -1
  258. package/dist/taro-components/{p-bdc30301.entry.js → p-7bfc5f3d.entry.js} +1 -1
  259. package/dist/taro-components/p-84958ace.entry.js +1 -0
  260. package/dist/taro-components/p-862b38b9.entry.js +1 -0
  261. package/dist/taro-components/p-8c3b906c.system.js +1 -0
  262. package/dist/taro-components/p-8ca82a56.entry.js +1 -0
  263. package/dist/taro-components/p-8ccaf5e8.entry.js +1 -0
  264. package/dist/taro-components/{p-0517f107.system.entry.js → p-8d990f1c.system.entry.js} +1 -1
  265. package/dist/taro-components/{p-07302165.system.entry.js → p-92d04741.system.entry.js} +1 -1
  266. package/dist/taro-components/p-99e16df8.entry.js +1 -0
  267. package/dist/taro-components/p-9b0298bf.entry.js +1 -0
  268. package/dist/taro-components/{p-fa0f6dab.system.entry.js → p-9d76d7a9.system.entry.js} +1 -1
  269. package/dist/taro-components/p-9dcba4a7.system.entry.js +1 -0
  270. package/dist/taro-components/p-9e03bc7a.system.entry.js +1 -0
  271. package/dist/taro-components/p-9ea4f297.entry.js +1 -0
  272. package/dist/taro-components/p-9eeba192.entry.js +1 -0
  273. package/dist/taro-components/p-9feff958.system.entry.js +1 -0
  274. package/dist/taro-components/p-a2141e85.system.entry.js +1 -0
  275. package/dist/taro-components/p-a2d590ad.entry.js +1 -0
  276. package/dist/taro-components/{p-204bd245.entry.js → p-a4951dd6.entry.js} +1 -1
  277. package/dist/taro-components/{p-46b8f89b.entry.js → p-a5a51112.entry.js} +1 -1
  278. package/dist/taro-components/p-a6e2dd48.entry.js +1 -0
  279. package/dist/taro-components/{p-66b0b419.system.entry.js → p-a74c970c.system.entry.js} +1 -1
  280. package/dist/taro-components/{p-e53508c1.system.entry.js → p-a7d31b01.system.entry.js} +1 -1
  281. package/dist/taro-components/p-a90221ab.system.entry.js +1 -0
  282. package/dist/taro-components/p-a94e3347.system.entry.js +1 -0
  283. package/dist/taro-components/p-aa04f605.entry.js +1 -0
  284. package/dist/taro-components/p-ad9b04e0.entry.js +1 -0
  285. package/dist/taro-components/{p-f11c9c37.system.entry.js → p-b07cd197.system.entry.js} +1 -1
  286. package/dist/taro-components/p-b0fc8752.entry.js +1 -0
  287. package/dist/taro-components/{p-139e6251.entry.js → p-b201ff38.entry.js} +1 -1
  288. package/dist/taro-components/p-bc541cd8.entry.js +1 -0
  289. package/dist/taro-components/{p-af8e521a.entry.js → p-bd4ed8b1.entry.js} +1 -1
  290. package/dist/taro-components/p-be96eb59.system.entry.js +1 -0
  291. package/dist/taro-components/{p-da239b8b.system.entry.js → p-bf0c8449.system.entry.js} +1 -1
  292. package/dist/taro-components/p-c0080d83.entry.js +1 -0
  293. package/dist/taro-components/p-c1a3fecf.system.entry.js +1 -0
  294. package/dist/taro-components/{p-8201ee31.system.entry.js → p-c913b635.system.entry.js} +1 -1
  295. package/dist/taro-components/p-cb406f85.system.entry.js +1 -0
  296. package/dist/taro-components/p-ccc64042.system.entry.js +1 -0
  297. package/dist/taro-components/p-ce303d12.system.entry.js +1 -0
  298. package/dist/taro-components/{p-6db97374.entry.js → p-d1756770.entry.js} +1 -1
  299. package/dist/taro-components/p-d2e0b15c.entry.js +1 -0
  300. package/dist/taro-components/p-d550aea9.system.entry.js +1 -0
  301. package/dist/taro-components/p-d5c8380d.system.entry.js +1 -0
  302. package/dist/taro-components/{p-5dab46cd.system.entry.js → p-d867e333.system.entry.js} +1 -1
  303. package/dist/taro-components/{p-f07cd1de.entry.js → p-d8fe59c7.entry.js} +1 -1
  304. package/dist/taro-components/{p-50902cd0.entry.js → p-d9dcc6c6.entry.js} +1 -1
  305. package/dist/taro-components/p-da3db323.entry.js +1 -0
  306. package/dist/taro-components/p-dab28e1f.system.entry.js +1 -0
  307. package/dist/taro-components/p-dbdb9de9.js +1 -0
  308. package/dist/taro-components/{p-cc70bb7a.system.entry.js → p-dc5d65a0.system.entry.js} +1 -1
  309. package/dist/taro-components/{p-ab726c20.system.entry.js → p-de96861c.system.entry.js} +1 -1
  310. package/dist/taro-components/{p-907d9d01.system.entry.js → p-e2cd5dd3.system.entry.js} +1 -1
  311. package/dist/taro-components/{p-1404c119.entry.js → p-e598f47b.entry.js} +1 -1
  312. package/dist/taro-components/p-e740320c.entry.js +1 -0
  313. package/dist/taro-components/p-e976c6c9.system.entry.js +1 -0
  314. package/dist/taro-components/p-ea0d5d4f.system.entry.js +1 -0
  315. package/dist/taro-components/p-ed331c06.system.js +1 -1
  316. package/dist/taro-components/p-eee6e075.system.entry.js +1 -0
  317. package/dist/taro-components/p-ef322936.entry.js +1 -0
  318. package/dist/taro-components/p-f1304456.entry.js +1 -0
  319. package/dist/taro-components/{p-3d8c9dfb.entry.js → p-f2235cbb.entry.js} +1 -1
  320. package/dist/taro-components/{p-2af69b72.entry.js → p-f23cfdc8.entry.js} +1 -1
  321. package/dist/taro-components/p-f2c86846.entry.js +1 -0
  322. package/dist/taro-components/p-f4d86882.entry.js +1 -0
  323. package/dist/taro-components/{p-8c0b740e.entry.js → p-f658de2e.entry.js} +1 -1
  324. package/dist/taro-components/p-f78823a1.entry.js +1 -0
  325. package/dist/taro-components/{p-227e33fc.system.entry.js → p-fac4ce6f.system.entry.js} +1 -1
  326. package/dist/taro-components/p-fbb2446e.entry.js +1 -0
  327. package/dist/taro-components/taro-components.css +1 -1
  328. package/dist/taro-components/taro-components.esm.js +1 -1
  329. package/dist/types/components/canvas/canvas.d.ts +5 -2
  330. package/dist/types/components/image/image.d.ts +1 -0
  331. package/dist/types/components/picker-view/picker-view-column.d.ts +3 -3
  332. package/dist/types/components/picker-view/picker-view.d.ts +2 -0
  333. package/dist/types/components/scroll-view/scroll-view.d.ts +3 -0
  334. package/dist/types/components/snapshot/snapshot.d.ts +5 -0
  335. package/dist/types/components/swiper/swiper.d.ts +4 -2
  336. package/dist/types/components/tabbar/tabbar-item.d.ts +4 -4
  337. package/dist/types/components/tabbar/tabbar.d.ts +17 -16
  338. package/dist/types/components.d.ts +21 -3
  339. package/dist/types/utils/helper.d.ts +1 -0
  340. package/lib/react/component-lib/reactify-wc.js +1 -1
  341. package/lib/react/component-lib/reactify-wc.js.map +1 -1
  342. package/lib/react/components.d.ts +2 -1
  343. package/lib/react/components.js +3 -2
  344. package/lib/react/components.js.map +1 -1
  345. package/lib/react/index.js +1 -1
  346. package/lib/react/react-component-lib/utils/attachProps.js +20 -1
  347. package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
  348. package/lib/vue2/component-lib/index.js +0 -5
  349. package/lib/vue2/component-lib/index.js.map +1 -1
  350. package/lib/vue2/components-loader.js +1 -1
  351. package/lib/vue2/components-loader.js.map +1 -1
  352. package/lib/vue2/components.d.ts +6 -2
  353. package/lib/vue2/components.js +8 -2
  354. package/lib/vue2/components.js.map +1 -1
  355. package/lib/vue2/index.js +1 -1
  356. package/lib/vue3/components.d.ts +5 -2
  357. package/lib/vue3/components.js +6 -2
  358. package/lib/vue3/components.js.map +1 -1
  359. package/lib/vue3/index.js +1 -1
  360. package/package.json +5 -8
  361. package/types/Button.d.ts +95 -3
  362. package/types/Canvas.d.ts +11 -11
  363. package/types/ChannelVideo.d.ts +2 -2
  364. package/types/Checkbox.d.ts +5 -0
  365. package/types/GridView.d.ts +1 -1
  366. package/types/ListView.d.ts +1 -1
  367. package/types/LivePlayer.d.ts +11 -4
  368. package/types/Map.d.ts +46 -3
  369. package/types/NativeSlot.d.ts +5 -3
  370. package/types/NavigationBar.d.ts +6 -0
  371. package/types/PageMeta.d.ts +40 -0
  372. package/types/Radio.d.ts +5 -0
  373. package/types/ScrollView.d.ts +81 -3
  374. package/types/ShareElement.d.ts +1 -1
  375. package/types/Slot.d.ts +5 -3
  376. package/types/Snapshot.d.ts +16 -0
  377. package/types/StickyHeader.d.ts +1 -1
  378. package/types/StickySection.d.ts +1 -1
  379. package/types/Swiper.d.ts +2 -0
  380. package/types/Textarea.d.ts +1 -1
  381. package/types/Video.d.ts +13 -4
  382. package/types/common.d.ts +4 -0
  383. package/types/index.d.ts +8 -5
  384. package/types/index.vue3.d.ts +39 -16
  385. package/dist/cjs/helper-db78e01a.js +0 -19
  386. package/dist/esm/helper-3d0ecf0f.js +0 -13
  387. package/dist/esm-es5/helper-3d0ecf0f.js +0 -1
  388. package/dist/taro-components/p-052da7f0.system.entry.js +0 -1
  389. package/dist/taro-components/p-091a7153.entry.js +0 -1
  390. package/dist/taro-components/p-0cf235de.system.entry.js +0 -1
  391. package/dist/taro-components/p-15e45ed6.system.js +0 -1
  392. package/dist/taro-components/p-1991cc1a.system.entry.js +0 -1
  393. package/dist/taro-components/p-1b3d41d3.system.entry.js +0 -1
  394. package/dist/taro-components/p-1c4e3899.entry.js +0 -1
  395. package/dist/taro-components/p-1f39576a.system.entry.js +0 -1
  396. package/dist/taro-components/p-2accb92c.system.entry.js +0 -1
  397. package/dist/taro-components/p-3094bda6.system.entry.js +0 -1
  398. package/dist/taro-components/p-416cc4dd.system.entry.js +0 -1
  399. package/dist/taro-components/p-469ee343.entry.js +0 -1
  400. package/dist/taro-components/p-486d0ec7.entry.js +0 -1
  401. package/dist/taro-components/p-4874f671.entry.js +0 -1
  402. package/dist/taro-components/p-53ef8a6c.system.entry.js +0 -1
  403. package/dist/taro-components/p-5613907c.entry.js +0 -1
  404. package/dist/taro-components/p-57b9943c.system.entry.js +0 -1
  405. package/dist/taro-components/p-5c1e6b1c.system.entry.js +0 -1
  406. package/dist/taro-components/p-6127b1b6.system.entry.js +0 -1
  407. package/dist/taro-components/p-66f7eea6.entry.js +0 -1
  408. package/dist/taro-components/p-69cd1f2a.system.entry.js +0 -1
  409. package/dist/taro-components/p-6a96da58.js +0 -1
  410. package/dist/taro-components/p-6cde180b.entry.js +0 -1
  411. package/dist/taro-components/p-6e115968.entry.js +0 -1
  412. package/dist/taro-components/p-6f84e936.entry.js +0 -1
  413. package/dist/taro-components/p-719e1eaf.entry.js +0 -1
  414. package/dist/taro-components/p-71b54f06.entry.js +0 -1
  415. package/dist/taro-components/p-79c3fde3.system.entry.js +0 -1
  416. package/dist/taro-components/p-7b3b8057.entry.js +0 -1
  417. package/dist/taro-components/p-7d635413.entry.js +0 -1
  418. package/dist/taro-components/p-7ff654e6.system.entry.js +0 -1
  419. package/dist/taro-components/p-801f09b8.entry.js +0 -1
  420. package/dist/taro-components/p-85a7daeb.system.entry.js +0 -1
  421. package/dist/taro-components/p-86280254.entry.js +0 -1
  422. package/dist/taro-components/p-9046110a.entry.js +0 -1
  423. package/dist/taro-components/p-904df510.entry.js +0 -1
  424. package/dist/taro-components/p-98f9f50f.system.entry.js +0 -1
  425. package/dist/taro-components/p-9aeb7995.entry.js +0 -1
  426. package/dist/taro-components/p-9d9ede17.system.entry.js +0 -1
  427. package/dist/taro-components/p-a20ecd3b.entry.js +0 -1
  428. package/dist/taro-components/p-a3a1a779.entry.js +0 -1
  429. package/dist/taro-components/p-a8565231.entry.js +0 -1
  430. package/dist/taro-components/p-a8925584.system.entry.js +0 -1
  431. package/dist/taro-components/p-a8e7cf87.entry.js +0 -1
  432. package/dist/taro-components/p-af3fa859.system.entry.js +0 -1
  433. package/dist/taro-components/p-afb3895c.system.entry.js +0 -1
  434. package/dist/taro-components/p-b027181b.entry.js +0 -1
  435. package/dist/taro-components/p-b4ea72ea.entry.js +0 -1
  436. package/dist/taro-components/p-b4f3d0ab.entry.js +0 -1
  437. package/dist/taro-components/p-b6d4634f.system.entry.js +0 -1
  438. package/dist/taro-components/p-bcf80126.system.entry.js +0 -1
  439. package/dist/taro-components/p-c1073ed6.system.entry.js +0 -1
  440. package/dist/taro-components/p-c11a42e0.entry.js +0 -1
  441. package/dist/taro-components/p-c4b8851b.entry.js +0 -1
  442. package/dist/taro-components/p-cdb76676.system.entry.js +0 -1
  443. package/dist/taro-components/p-d34a6c04.entry.js +0 -1
  444. package/dist/taro-components/p-e33f3592.entry.js +0 -1
  445. package/dist/taro-components/p-e3480c4c.entry.js +0 -1
  446. package/dist/taro-components/p-eaa370a9.system.entry.js +0 -1
  447. package/dist/taro-components/p-f7927285.system.entry.js +0 -1
  448. package/dist/taro-components/p-f7b32c6b.entry.js +0 -1
  449. package/dist/taro-components/p-fa6c022a.system.entry.js +0 -1
  450. package/dist/taro-components/p-fb983850.entry.js +0 -1
@@ -409,40 +409,41 @@ const Picker = class {
409
409
  }
410
410
  else if (mode === 'date') {
411
411
  const value = this.value;
412
- const _value = verifyDate(value) || new Date(new Date().setHours(0, 0, 0, 0)); // 没传值或值的合法性错误默认今天时间
412
+ let _value = verifyDate(value) || new Date(new Date().setHours(0, 0, 0, 0)); // 没传值或值的合法性错误默认今天时间
413
413
  const _start = verifyDate(start) || new Date('1970/01/01');
414
414
  const _end = verifyDate(end) || new Date('2999/01/01');
415
415
  // 时间区间有效性
416
- if (_value >= _start && _value <= _end) {
417
- const currentYear = _value.getFullYear();
418
- const currentMonth = _value.getMonth() + 1;
419
- const currentDay = _value.getDate();
420
- const yearRange = getYearRange(_start.getFullYear(), _end.getFullYear());
421
- const monthRange = getMonthRange(_start, _end, currentYear);
422
- const dayRange = getDayRange(_start, _end, currentYear, currentMonth);
423
- this.index = [
424
- yearRange.indexOf(currentYear),
425
- monthRange.indexOf(currentMonth),
426
- dayRange.indexOf(currentDay)
427
- ];
428
- if (!this.pickerDate ||
429
- this.pickerDate._value.getTime() !== _value.getTime() ||
430
- this.pickerDate._start.getTime() !== _start.getTime() ||
431
- this.pickerDate._end.getTime() !== _end.getTime()) {
432
- this.pickerDate = {
433
- _value,
434
- _start,
435
- _end,
436
- _updateValue: [
437
- currentYear,
438
- currentMonth,
439
- currentDay
440
- ]
441
- };
442
- }
416
+ if (!(_start <= _end)) {
417
+ throw new Error(`Picker start time must be less than end time.`);
418
+ }
419
+ if (!(_value >= _start && _value <= _end)) {
420
+ _value = _start;
443
421
  }
444
- else {
445
- throw new Error('Date Interval Error');
422
+ const currentYear = _value.getFullYear();
423
+ const currentMonth = _value.getMonth() + 1;
424
+ const currentDay = _value.getDate();
425
+ const yearRange = getYearRange(_start.getFullYear(), _end.getFullYear());
426
+ const monthRange = getMonthRange(_start, _end, currentYear);
427
+ const dayRange = getDayRange(_start, _end, currentYear, currentMonth);
428
+ this.index = [
429
+ yearRange.indexOf(currentYear),
430
+ monthRange.indexOf(currentMonth),
431
+ dayRange.indexOf(currentDay)
432
+ ];
433
+ if (!this.pickerDate ||
434
+ this.pickerDate._value.getTime() !== _value.getTime() ||
435
+ this.pickerDate._start.getTime() !== _start.getTime() ||
436
+ this.pickerDate._end.getTime() !== _end.getTime()) {
437
+ this.pickerDate = {
438
+ _value,
439
+ _start,
440
+ _end,
441
+ _updateValue: [
442
+ currentYear,
443
+ currentMonth,
444
+ currentDay
445
+ ]
446
+ };
446
447
  }
447
448
  }
448
449
  else {
@@ -49,46 +49,37 @@ const PickerViewColumn = class {
49
49
  this.initialPosition = '0';
50
50
  this.paddingVertical = 0;
51
51
  this.isInit = false;
52
- this.isMove = false;
53
52
  }
54
- onScroll(_event) {
55
- if (!this.isMove) {
56
- this.isMove = true;
57
- this.onSelectStart.emit();
58
- }
59
- this.handleSelected();
60
- }
61
- onMouseEnd() {
62
- if (!this.isMove)
63
- return;
64
- this.isMove = false;
65
- this.handleSelected();
53
+ onTouchStart() {
54
+ this.onSelectStart.emit();
66
55
  }
67
56
  onTouchEnd() {
68
- this.isMove = false;
69
57
  this.handleSelected();
70
58
  }
59
+ componentDidLoad() {
60
+ this.handleChange();
61
+ }
71
62
  componentDidUpdate() {
72
- if (!this.isInit) {
73
- this.isInit = true;
74
- const childList = this.el.childNodes;
75
- let idx = 0;
76
- let sum = 0;
77
- for (const index in childList) {
78
- const item = childList[index];
79
- if (this.initialPosition === index || !item || typeof item.offsetHeight !== 'number') {
80
- break;
81
- }
82
- sum += item.offsetHeight;
83
- idx++;
84
- }
85
- this.el.scrollTo({ top: sum });
86
- if (idx >= childList.length) {
87
- this.onChange.emit({
88
- curIndex: this.col,
89
- selectedIndex: idx - 1
90
- });
63
+ this.handleChange();
64
+ }
65
+ handleChange() {
66
+ const childList = this.el.childNodes;
67
+ let idx = 0;
68
+ let sum = 0;
69
+ for (const index in childList) {
70
+ const item = childList[index];
71
+ if (this.initialPosition === index || !item || typeof item.offsetHeight !== 'number') {
72
+ break;
91
73
  }
74
+ sum += item.offsetHeight;
75
+ idx++;
76
+ }
77
+ this.el.scrollTo({ top: sum });
78
+ if (idx >= childList.length) {
79
+ this.onChange.emit({
80
+ curIndex: this.col,
81
+ selectedIndex: idx - 1
82
+ });
92
83
  }
93
84
  }
94
85
  render() {
@@ -113,6 +104,9 @@ const PickerView = class {
113
104
  this.maskStyle = undefined;
114
105
  this.maskClass = undefined;
115
106
  }
107
+ onPropsChange() {
108
+ this.handleValueChange();
109
+ }
116
110
  onSelect(e) {
117
111
  e.stopPropagation();
118
112
  if (e.target.tagName !== 'TARO-PICKER-VIEW-COLUMN-CORE')
@@ -135,13 +129,16 @@ const PickerView = class {
135
129
  this.onPickEnd.emit();
136
130
  }
137
131
  componentDidLoad() {
132
+ this.handleValueChange();
133
+ }
134
+ handleValueChange() {
138
135
  const childList = this.el.querySelectorAll('taro-picker-view-column-core');
139
136
  childList.forEach((element, index) => {
140
137
  var _a;
141
138
  element.setAttribute('col', `${index}`);
142
- let selectIndex = '0';
139
+ let selectIndex = 0;
143
140
  if (!!this.value && this.value.length > index) {
144
- selectIndex = `${this.value[index]}`;
141
+ selectIndex = this.value[index];
145
142
  }
146
143
  const pickerHeight = this.el.getBoundingClientRect().height;
147
144
  const indicatorHeight = ((_a = this.indicator) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0;
@@ -170,6 +167,9 @@ const PickerView = class {
170
167
  return (h(Host, { class: "taro-picker-view-container" }, h("slot", null), h("div", { class: "taro-picker-view-mask-container" }, h("div", { class: maskTopCls, style: maskTopStyle }), h("div", { class: indicatorCls, style: indicatorStyle, ref: indicator => (this.indicator = indicator) }), h("div", { class: maskBtmCls, style: maskBottomStyle }))));
171
168
  }
172
169
  get el() { return getElement(this); }
170
+ static get watchers() { return {
171
+ "value": ["onPropsChange"]
172
+ }; }
173
173
  };
174
174
  PickerView.style = indexCss;
175
175
 
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
2
2
  import Taro from '@tarojs/taro';
3
3
  import { c as classnames } from './index-c3e4004b.js';
4
4
 
5
- const indexCss = ".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0;transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{overflow:hidden;min-height:100vh}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform 0.3s;transition:-webkit-transform 0.3s;transition:transform 0.3s;transition:transform 0.3s, -webkit-transform 0.3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}.rmc-pull-to-refresh-indicator{height:30px;line-height:10px;text-align:center}.rmc-pull-to-refresh-indicator>div{display:inline-block;margin:3px;border-radius:100%;width:6px;height:6px;background-color:grey;-webkit-animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;-webkit-animation-fill-mode:both;animation-fill-mode:both}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-0.1s !important;animation-delay:-0.1s !important}.rmc-pull-to-refresh-indicator>div:nth-child(1){-webkit-animation-delay:-0.2s !important;animation-delay:-0.2s !important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-0.3s !important;animation-delay:-0.3s !important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";
5
+ const indexCss = ".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0;transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{min-height:100%}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform 0.3s;transition:-webkit-transform 0.3s;transition:transform 0.3s;transition:transform 0.3s, -webkit-transform 0.3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}.rmc-pull-to-refresh-indicator{height:30px;line-height:10px;text-align:center}.rmc-pull-to-refresh-indicator>div{display:inline-block;margin:3px;border-radius:100%;width:6px;height:6px;background-color:grey;-webkit-animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;-webkit-animation-fill-mode:both;animation-fill-mode:both}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-0.1s !important;animation-delay:-0.1s !important}.rmc-pull-to-refresh-indicator>div:nth-child(1){-webkit-animation-delay:-0.2s !important;animation-delay:-0.2s !important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-0.3s !important;animation-delay:-0.3s !important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";
6
6
 
7
7
  function setTransform(nodeStyle, value) {
8
8
  nodeStyle.transform = value;
@@ -54,7 +54,7 @@ const PullToRefresh = class {
54
54
  };
55
55
  this.init = () => {
56
56
  const ele = this.scrollContainer;
57
- const child = this.el.querySelector('rmc-pull-to-refresh-content');
57
+ const child = this.el.querySelector('.rmc-pull-to-refresh-content');
58
58
  this.el.appendChild = child === null || child === void 0 ? void 0 : child.appendChild.bind(child);
59
59
  this.el.insertBefore = child === null || child === void 0 ? void 0 : child.insertBefore.bind(child);
60
60
  this.el.replaceChild = child === null || child === void 0 ? void 0 : child.replaceChild.bind(child);
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-980f930f.js';
2
- import { n as notSupport } from './helper-3d0ecf0f.js';
2
+ import { n as notSupport } from './helper-8a85bb65.js';
3
3
  import '@tarojs/taro';
4
4
 
5
5
  const RootPortal = class {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-980f930f.js';
2
- import { n as notSupport } from './helper-3d0ecf0f.js';
2
+ import { n as notSupport } from './helper-8a85bb65.js';
3
3
  import '@tarojs/taro';
4
4
 
5
5
  const RtcRoom = class {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-980f930f.js';
2
- import { n as notSupport } from './helper-3d0ecf0f.js';
2
+ import { n as notSupport } from './helper-8a85bb65.js';
3
3
  import '@tarojs/taro';
4
4
 
5
5
  const RtcRoomItem = class {
@@ -1,6 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-980f930f.js';
2
2
  import { c as classnames } from './index-c3e4004b.js';
3
3
  import { d as debounce } from './index-d1b03e47.js';
4
+ import { h as handleStencilNodes } from './helper-8a85bb65.js';
5
+ import '@tarojs/taro';
4
6
 
5
7
  const indexCss = "taro-scroll-view-core{display:block;width:100%;-webkit-overflow-scrolling:auto}taro-scroll-view-core::-webkit-scrollbar{display:none}.taro-scroll-view__scroll-x{overflow-x:scroll;overflow-y:hidden}.taro-scroll-view__scroll-y{overflow-x:hidden;overflow-y:scroll}";
6
8
 
@@ -59,6 +61,7 @@ const ScrollView = class {
59
61
  this.mpScrollTop = undefined;
60
62
  this.mpScrollLeft = undefined;
61
63
  this.mpScrollIntoView = undefined;
64
+ this.mpScrollIntoViewAlignment = undefined;
62
65
  this.animated = false;
63
66
  }
64
67
  watchScrollLeft(newVal) {
@@ -79,9 +82,11 @@ const ScrollView = class {
79
82
  this.mpScrollIntoViewMethod(newVal);
80
83
  }
81
84
  handleScroll(e) {
85
+ var _a;
82
86
  if (e instanceof CustomEvent)
83
87
  return;
84
88
  e.stopPropagation();
89
+ (_a = e.stopImmediatePropagation) === null || _a === void 0 ? void 0 : _a.call(e);
85
90
  const { scrollLeft, scrollTop, scrollHeight, scrollWidth } = this.el;
86
91
  this._scrollLeft = scrollLeft;
87
92
  this._scrollTop = scrollTop;
@@ -93,6 +98,11 @@ const ScrollView = class {
93
98
  scrollWidth
94
99
  });
95
100
  }
101
+ handleTouchMove(e) {
102
+ if (e instanceof CustomEvent)
103
+ return;
104
+ e.stopPropagation();
105
+ }
96
106
  async mpScrollToMethod(object) {
97
107
  let { top, left, duration, animated = false } = object;
98
108
  if (this.scrollY && typeof top === 'number' && !isNaN(top) && top !== this._scrollTop) {
@@ -118,9 +128,9 @@ const ScrollView = class {
118
128
  var _a;
119
129
  if (typeof selector === 'string' && selector) {
120
130
  (_a = document.querySelector(`#${selector}`)) === null || _a === void 0 ? void 0 : _a.scrollIntoView({
121
- behavior: 'smooth',
122
- block: 'center',
123
- inline: 'start'
131
+ behavior: this.animated ? 'smooth' : 'auto',
132
+ block: this.scrollY ? (this.mpScrollIntoViewAlignment || 'center') : 'center',
133
+ inline: this.scrollX ? (this.mpScrollIntoViewAlignment || 'start') : 'start'
124
134
  });
125
135
  }
126
136
  }
@@ -132,6 +142,9 @@ const ScrollView = class {
132
142
  top, left, animated
133
143
  });
134
144
  }
145
+ componentDidRender() {
146
+ handleStencilNodes(this.el);
147
+ }
135
148
  render() {
136
149
  const { scrollX, scrollY } = this;
137
150
  const cls = classnames({
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-980f930f.js';
2
- import { n as notSupport } from './helper-3d0ecf0f.js';
2
+ import { n as notSupport } from './helper-8a85bb65.js';
3
3
  import '@tarojs/taro';
4
4
 
5
5
  const ShareElement = class {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-980f930f.js';
2
- import { n as notSupport } from './helper-3d0ecf0f.js';
2
+ import { n as notSupport } from './helper-8a85bb65.js';
3
3
  import '@tarojs/taro';
4
4
 
5
5
  const Slot = class {
@@ -0,0 +1,17 @@
1
+ import { r as registerInstance, h, H as Host } from './index-980f930f.js';
2
+ import { n as notSupport } from './helper-8a85bb65.js';
3
+ import '@tarojs/taro';
4
+
5
+ const Snapshot = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ componentDidLoad() {
10
+ notSupport('Snapshot', this);
11
+ }
12
+ render() {
13
+ return h(Host, null);
14
+ }
15
+ };
16
+
17
+ export { Snapshot as taro_snapshot_core };
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-980f930f.js';
2
- import { n as notSupport } from './helper-3d0ecf0f.js';
2
+ import { n as notSupport } from './helper-8a85bb65.js';
3
3
  import '@tarojs/taro';
4
4
 
5
5
  const StickyHeader = class {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-980f930f.js';
2
- import { n as notSupport } from './helper-3d0ecf0f.js';
2
+ import { n as notSupport } from './helper-8a85bb65.js';
3
3
  import '@tarojs/taro';
4
4
 
5
5
  const StickySection = class {
@@ -9864,8 +9864,8 @@ const Swiper = class {
9864
9864
  var _a, _b, _c;
9865
9865
  ((_a = this.observerFirst) === null || _a === void 0 ? void 0 : _a.disconnect) && this.observerFirst.disconnect();
9866
9866
  ((_b = this.observerLast) === null || _b === void 0 ? void 0 : _b.disconnect) && this.observerLast.disconnect();
9867
- this.observerFirst = new MutationObserver(this.handleSwiperLoop);
9868
- this.observerLast = new MutationObserver(this.handleSwiperLoop);
9867
+ this.observerFirst = new MutationObserver(this.handleSwiperLoopDebounce);
9868
+ this.observerLast = new MutationObserver(this.handleSwiperLoopDebounce);
9869
9869
  const wrapper = (_c = this.swiper.$wrapperEl) === null || _c === void 0 ? void 0 : _c[0];
9870
9870
  const list = wrapper.querySelectorAll('taro-swiper-item-core:not(.swiper-slide-duplicate)');
9871
9871
  if (list.length >= 1) {
@@ -9879,22 +9879,23 @@ const Swiper = class {
9879
9879
  });
9880
9880
  }
9881
9881
  };
9882
- this.handleSwiperLoop = debounce(() => {
9883
- var _a;
9882
+ this.handleSwiperLoop = () => {
9883
+ var _a, _b, _c, _d;
9884
9884
  if (!this.swiper || !this.circular)
9885
9885
  return;
9886
9886
  const swiper = this.swiper; // Note: loop 相关的方法 swiper 未声明
9887
9887
  const duplicates = ((_a = this.swiperWrapper) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.swiper-slide-duplicate')) || [];
9888
9888
  if (duplicates.length < 2) {
9889
9889
  // Note: 循环模式下,但是前后垫片未注入
9890
- swiper.loopDestroy();
9891
- swiper.loopCreate();
9890
+ (_b = swiper.loopDestroy) === null || _b === void 0 ? void 0 : _b.call(swiper);
9891
+ (_c = swiper.loopCreate) === null || _c === void 0 ? void 0 : _c.call(swiper);
9892
9892
  }
9893
9893
  else {
9894
- swiper.loopFix();
9894
+ (_d = swiper.loopFix) === null || _d === void 0 ? void 0 : _d.call(swiper);
9895
9895
  }
9896
- }, 50);
9897
- this.handleSwiperSize = debounce(() => {
9896
+ };
9897
+ this.handleSwiperLoopDebounce = debounce(this.handleSwiperLoop, 50);
9898
+ this.handleSwiperSizeDebounce = debounce(() => {
9898
9899
  if (this.swiper && !this.circular) {
9899
9900
  this.swiper.updateSlides();
9900
9901
  }
@@ -9902,6 +9903,7 @@ const Swiper = class {
9902
9903
  this.swiperWrapper = undefined;
9903
9904
  this.swiper = undefined;
9904
9905
  this.isWillLoadCalled = false;
9906
+ this.source = '';
9905
9907
  this.indicatorDots = false;
9906
9908
  this.indicatorColor = 'rgba(0, 0, 0, .3)';
9907
9909
  this.indicatorActiveColor = '#000000';
@@ -9985,8 +9987,9 @@ const Swiper = class {
9985
9987
  this.el.removeChild = (oldChild) => {
9986
9988
  return newVal.removeChild(oldChild);
9987
9989
  };
9988
- this.el.addEventListener('DOMNodeInserted', this.handleSwiperSize);
9989
- this.el.addEventListener('DOMNodeRemoved', this.handleSwiperSize);
9990
+ this.el.addEventListener('DOMNodeInserted', this.handleSwiperSizeDebounce);
9991
+ this.el.addEventListener('DOMNodeRemoved', this.handleSwiperSizeDebounce);
9992
+ this.el.addEventListener('MutationObserver', this.handleSwiperSizeDebounce);
9990
9993
  }
9991
9994
  watchCircular() {
9992
9995
  if (this.swiper) {
@@ -10028,8 +10031,9 @@ const Swiper = class {
10028
10031
  }
10029
10032
  disconnectedCallback() {
10030
10033
  var _a, _b, _c, _d, _e, _f;
10031
- this.el.removeEventListener('DOMNodeInserted', this.handleSwiperSize);
10032
- this.el.removeEventListener('DOMNodeRemoved', this.handleSwiperSize);
10034
+ this.el.removeEventListener('DOMNodeInserted', this.handleSwiperSizeDebounce);
10035
+ this.el.removeEventListener('DOMNodeRemoved', this.handleSwiperSizeDebounce);
10036
+ this.el.removeEventListener('MutationObserver', this.handleSwiperSizeDebounce);
10033
10037
  (_b = (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect) === null || _b === void 0 ? void 0 : _b.call(_a);
10034
10038
  (_d = (_c = this.observerFirst) === null || _c === void 0 ? void 0 : _c.disconnect) === null || _d === void 0 ? void 0 : _d.call(_c);
10035
10039
  (_f = (_e = this.observerLast) === null || _e === void 0 ? void 0 : _e.disconnect) === null || _f === void 0 ? void 0 : _f.call(_e);
@@ -10067,10 +10071,19 @@ const Swiper = class {
10067
10071
  }
10068
10072
  that.onChange.emit({
10069
10073
  current: this.realIndex,
10070
- source: ''
10074
+ source: that.source
10071
10075
  });
10072
10076
  },
10077
+ touchEnd: () => {
10078
+ that.source = 'touch';
10079
+ },
10080
+ autoplay() {
10081
+ that.source = 'autoplay';
10082
+ },
10073
10083
  transitionEnd() {
10084
+ setTimeout(() => {
10085
+ that.source = '';
10086
+ });
10074
10087
  that.onAnimationFinish.emit({
10075
10088
  current: this.realIndex,
10076
10089
  source: ''
@@ -10143,35 +10156,41 @@ const Swiper = class {
10143
10156
  };
10144
10157
  Swiper.style = indexCss;
10145
10158
 
10146
- function isEqualTag(a, b) {
10147
- return typeof a.tagName === 'undefined' ? a.nodeType === b.nodeType : a.tagName === b.tagName;
10148
- }
10149
- function parseChildNodes(items, targets, needClean = false) {
10150
- const list = Array.from(targets.values());
10151
- for (let i = 0, j = 0; i < list.length; i++) {
10152
- const target = list[i];
10153
- if (!target)
10154
- return;
10155
- let item = items.item(j);
10156
- while (item) {
10157
- if (!isEqualTag(item, target) || needClean) {
10158
- item.remove();
10159
- j++;
10160
- item = items.item(j);
10161
- continue;
10162
- }
10163
- if (target.childNodes.length > 0) {
10164
- const cleanAll = ['taro-image-core'].includes(target.tagName.toLocaleLowerCase());
10165
- parseChildNodes(item.childNodes, target.childNodes, cleanAll);
10159
+ const nativeCloneNode = Node.prototype.cloneNode;
10160
+ function cloneNode(node, deep) {
10161
+ const clonedNode = nativeCloneNode.call(node, false);
10162
+ const srcChildNodes = childNodes(node);
10163
+ if (deep) {
10164
+ for (let i = 0; i < srcChildNodes.length; i++) {
10165
+ const srcNode = srcChildNodes[i];
10166
+ let srcDeep = deep;
10167
+ if (srcNode.nodeType !== 2 && srcNode.nodeType !== 8) {
10168
+ // Note: 没有引用节点(s-cr[reference comment])的情况下,不复制子节点避免冗余(例如:Image 组件)
10169
+ if (!srcNode['s-cr']) {
10170
+ srcDeep = false;
10171
+ }
10172
+ const childClone = cloneNode(srcNode, srcDeep);
10173
+ clonedNode.appendChild(childClone);
10166
10174
  }
10167
- break;
10168
10175
  }
10169
- while (i === list.length - 1 && j < items.length) {
10170
- j++;
10171
- item = items.item(j);
10172
- item === null || item === void 0 ? void 0 : item.remove();
10176
+ }
10177
+ return clonedNode;
10178
+ }
10179
+ function childNodes(node) {
10180
+ const childNodes = node.childNodes;
10181
+ // check if element is stencil element without shadow dom
10182
+ // and then detect elements that were slotted into the element
10183
+ if (node['s-sc']) {
10184
+ const result = [];
10185
+ for (let i = 0; i < childNodes.length; i++) {
10186
+ const slot = childNodes[i]['s-nr'];
10187
+ if (slot) {
10188
+ result.push(slot);
10189
+ }
10173
10190
  }
10191
+ return result;
10174
10192
  }
10193
+ return Array.from(childNodes);
10175
10194
  }
10176
10195
  const SwiperItem = class {
10177
10196
  constructor(hostRef) {
@@ -10179,16 +10198,9 @@ const SwiperItem = class {
10179
10198
  this.itemId = undefined;
10180
10199
  }
10181
10200
  componentDidRender() {
10182
- var _a, _b, _c;
10183
- const el = this.el;
10184
- if (el.classList.contains('swiper-slide-duplicate')) {
10185
- const list = Array
10186
- .from(((_b = (_a = el.parentElement) === null || _a === void 0 ? void 0 : _a.childNodes) === null || _b === void 0 ? void 0 : _b.values()) || [])
10187
- .filter((e) => e.tagName === 'TARO-SWIPER-ITEM-CORE');
10188
- if (list.length > 0) {
10189
- parseChildNodes(el.childNodes, (_c = list[list.indexOf(el) === 0 ? list.length - 2 : 1]) === null || _c === void 0 ? void 0 : _c.childNodes);
10190
- }
10191
- }
10201
+ this.el.cloneNode = (deep = false) => {
10202
+ return cloneNode.call(null, this.el, deep);
10203
+ };
10192
10204
  }
10193
10205
  render() {
10194
10206
  return (h(Host, { class: 'swiper-slide', "item-id": this.itemId }));
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-980f930f.js';
2
- import { n as notSupport } from './helper-3d0ecf0f.js';
2
+ import { n as notSupport } from './helper-8a85bb65.js';
3
3
  import '@tarojs/taro';
4
4
 
5
5
  const TabItem = class {
@@ -1,5 +1,6 @@
1
1
  import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-980f930f.js';
2
2
  import Taro from '@tarojs/taro';
3
+ import { stripSuffix, stripBasename, addLeadingSlash, getCurrentPage } from '@tarojs/router/dist/utils';
3
4
  import { c as classnames } from './index-c3e4004b.js';
4
5
  import { i as isVisible } from './index-d1b03e47.js';
5
6
 
@@ -25,19 +26,6 @@ const splitUrl = _url => {
25
26
  return res;
26
27
  };
27
28
 
28
- // export const removeLeadingSlash = (str = '') => str.replace(/^\.?\//, '')
29
- // export const removeTrailingSearch = (str = '') => str.replace(/\?[\s\S]*$/, '')
30
- const addLeadingSlash = (url = '') => (url.charAt(0) === '/' ? url : '/' + url);
31
- const hasBasename = (path = '', prefix = '') => new RegExp('^' + prefix + '(\\/|\\?|#|$)', 'i').test(path) || path === prefix;
32
- const stripBasename = (path = '', prefix = '') => hasBasename(path, prefix) ? path.substring(prefix.length) : path;
33
- const stripSuffix = (path = '', suffix = '') => path.includes(suffix) ? path.substring(0, path.length - suffix.length) : path;
34
- const getCurrentPage = (routerMode = 'hash', basename = '/') => {
35
- const pagePath = routerMode === 'hash'
36
- ? location.hash.slice(1).split('?')[0]
37
- : location.pathname;
38
- return addLeadingSlash(stripBasename(pagePath, basename));
39
- };
40
-
41
29
  function isAbsolute(pathname) {
42
30
  return pathname.charAt(0) === '/';
43
31
  }
@@ -141,7 +129,7 @@ const TabbarItem = ({ index, isSelected = false, textColor, iconPath, badgeText,
141
129
  h("p", { class: 'weui-tabbar__label', style: { color: textColor } }, text)));
142
130
  };
143
131
 
144
- const indexCss = "html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column;height:100%}.taro-tabbar__panel{overflow:auto;position:relative;-ms-flex:1;flex:1;-webkit-overflow-scrolling:auto}.taro-tabbar__tabbar{position:relative;width:100%;height:50px;-webkit-transition:bottom 0.2s, top 0.2s;transition:bottom 0.2s, top 0.2s}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{bottom:0;margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom)}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{top:-52px;-ms-flex:0 0;flex:0 0}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";
132
+ const indexCss = "html,body{height:100%}:root{--taro-tabbar-height:50px}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column;height:100%}.taro-tabbar__panel{overflow:auto;position:relative;-ms-flex:1;flex:1;-webkit-overflow-scrolling:auto}.taro-tabbar__tabbar{position:relative;width:100%;height:var(--taro-tabbar-height);-webkit-transition:bottom 0.2s, top 0.2s;transition:bottom 0.2s, top 0.2s}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{bottom:0;margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom)}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{top:-52px;-ms-flex:0 0;flex:0 0}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";
145
133
 
146
134
  const STATUS_SHOW = 0;
147
135
  const STATUS_HIDE = 1;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-980f930f.js';
2
- import { n as notSupport } from './helper-3d0ecf0f.js';
2
+ import { n as notSupport } from './helper-8a85bb65.js';
3
3
  import '@tarojs/taro';
4
4
 
5
5
  const Tabs = class {