@tarojs/components 4.0.8-alpha.1 → 4.0.8-alpha.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 (298) hide show
  1. package/dist/cjs/taro-button-core.cjs.entry.js +1 -1
  2. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
  3. package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
  4. package/dist/cjs/taro-picker-core_2.cjs.entry.js +1 -1
  5. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +2 -2
  6. package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
  7. package/dist/cjs/taro-pull-to-refresh-core.cjs.entry.js +1 -1
  8. package/dist/cjs/taro-rich-text-core.cjs.entry.js +1 -1
  9. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +1 -1
  10. package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
  11. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +2 -2
  12. package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
  13. package/dist/cjs/taro-tabbar.cjs.entry.js +1 -1
  14. package/dist/cjs/taro-text-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
  16. package/dist/cjs/taro-video-control_3.cjs.entry.js +1 -1
  17. package/dist/collection/components/scroll-view/style/index.css +1 -1
  18. package/dist/collection/components/swiper/style/index.css +3 -3
  19. package/dist/collection/components/swiper/swiper.js +1 -1
  20. package/dist/components/taro-button-core.js +1 -1
  21. package/dist/components/taro-checkbox-core.js +1 -1
  22. package/dist/components/taro-image-core.js +1 -1
  23. package/dist/components/taro-picker-core.js +1 -1
  24. package/dist/components/taro-picker-view-column-core.js +1 -1
  25. package/dist/components/taro-picker-view-core.js +1 -1
  26. package/dist/components/taro-progress-core.js +1 -1
  27. package/dist/components/taro-pull-to-refresh-core.js +1 -1
  28. package/dist/components/taro-rich-text-core.js +1 -1
  29. package/dist/components/taro-scroll-view-core.js +1 -1
  30. package/dist/components/taro-slider-core.js +1 -1
  31. package/dist/components/taro-swiper-core.js +2 -2
  32. package/dist/components/taro-switch-core.js +1 -1
  33. package/dist/components/taro-tabbar.js +1 -1
  34. package/dist/components/taro-text-core.js +1 -1
  35. package/dist/components/taro-textarea-core.js +1 -1
  36. package/dist/components/taro-video-core.js +1 -1
  37. package/dist/esm/taro-button-core.entry.js +1 -1
  38. package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
  39. package/dist/esm/taro-image-core.entry.js +1 -1
  40. package/dist/esm/taro-picker-core_2.entry.js +1 -1
  41. package/dist/esm/taro-picker-view-column-core_2.entry.js +2 -2
  42. package/dist/esm/taro-progress-core.entry.js +1 -1
  43. package/dist/esm/taro-pull-to-refresh-core.entry.js +1 -1
  44. package/dist/esm/taro-rich-text-core.entry.js +1 -1
  45. package/dist/esm/taro-scroll-view-core.entry.js +1 -1
  46. package/dist/esm/taro-slider-core.entry.js +1 -1
  47. package/dist/esm/taro-swiper-core_2.entry.js +2 -2
  48. package/dist/esm/taro-switch-core.entry.js +1 -1
  49. package/dist/esm/taro-tabbar.entry.js +1 -1
  50. package/dist/esm/taro-text-core.entry.js +1 -1
  51. package/dist/esm/taro-textarea-core.entry.js +1 -1
  52. package/dist/esm/taro-video-control_3.entry.js +1 -1
  53. package/dist/hydrate/index.js +18 -18
  54. package/dist/index.js +1 -1
  55. package/dist/taro-components/p-1e8dbd9e.entry.js +1 -0
  56. package/dist/taro-components/p-3d03e025.entry.js +1 -0
  57. package/dist/taro-components/p-53b36223.entry.js +1 -0
  58. package/dist/taro-components/{p-f26ddbc9.entry.js → p-56e989e8.entry.js} +1 -1
  59. package/dist/taro-components/p-804ec7f1.entry.js +1 -0
  60. package/dist/taro-components/p-80f79dfe.entry.js +1 -0
  61. package/dist/taro-components/{p-6f43d1a1.entry.js → p-8ea8d571.entry.js} +1 -1
  62. package/dist/taro-components/{p-177ab579.entry.js → p-9c25a0c5.entry.js} +1 -1
  63. package/dist/taro-components/{p-eb7aa8ad.entry.js → p-9fb68380.entry.js} +1 -1
  64. package/dist/taro-components/p-b04264e3.entry.js +1 -0
  65. package/dist/taro-components/p-be68a34c.entry.js +1 -0
  66. package/dist/taro-components/p-c5da6b7d.entry.js +1 -0
  67. package/dist/taro-components/p-cf9be5c3.entry.js +1 -0
  68. package/dist/taro-components/{p-310f27ae.entry.js → p-d4d8d99c.entry.js} +1 -1
  69. package/dist/taro-components/p-f42701f0.entry.js +1 -0
  70. package/dist/taro-components/p-f537332c.entry.js +1 -0
  71. package/dist/taro-components/taro-components.esm.js +1 -1
  72. package/loader/index.js +1 -1
  73. package/package.json +7 -7
  74. package/types/DraggableSheet.d.ts +1 -1
  75. package/types/Image.d.ts +1 -1
  76. package/types/Input.d.ts +5 -5
  77. package/types/RichText.d.ts +1 -1
  78. package/types/ScrollView.d.ts +4 -4
  79. package/types/ShareElement.d.ts +2 -2
  80. package/types/Swiper.d.ts +15 -15
  81. package/types/Text.d.ts +1 -1
  82. package/types/Textarea.d.ts +5 -5
  83. package/types/gesture/DoubleTapGestureHandler.d.ts +23 -4
  84. package/types/gesture/ForcePressGestureHandler.d.ts +23 -4
  85. package/types/gesture/HorizontalDragGestureHandler.d.ts +23 -4
  86. package/types/gesture/LongPressGestureHandler.d.ts +23 -4
  87. package/types/gesture/PanGestureHandler.d.ts +23 -4
  88. package/types/gesture/ScaleGestureHandler.d.ts +23 -4
  89. package/types/gesture/TapGestureHandler.d.ts +23 -4
  90. package/types/gesture/VerticalDragGestureHandler.d.ts +23 -4
  91. package/dist/esm-es5/helper-8a85bb65.js +0 -1
  92. package/dist/esm-es5/index-5e431bb8.js +0 -2
  93. package/dist/esm-es5/index-a00a7418.js +0 -1
  94. package/dist/esm-es5/index-b9522531.js +0 -7
  95. package/dist/esm-es5/index.js +0 -0
  96. package/dist/esm-es5/loader.js +0 -1
  97. package/dist/esm-es5/taro-ad-core.entry.js +0 -1
  98. package/dist/esm-es5/taro-ad-custom-core.entry.js +0 -1
  99. package/dist/esm-es5/taro-animation-video-core.entry.js +0 -1
  100. package/dist/esm-es5/taro-animation-view-core.entry.js +0 -1
  101. package/dist/esm-es5/taro-ar-camera-core.entry.js +0 -1
  102. package/dist/esm-es5/taro-audio-core.entry.js +0 -1
  103. package/dist/esm-es5/taro-aweme-data-core.entry.js +0 -1
  104. package/dist/esm-es5/taro-block-core.entry.js +0 -1
  105. package/dist/esm-es5/taro-button-core.entry.js +0 -1
  106. package/dist/esm-es5/taro-camera-core.entry.js +0 -1
  107. package/dist/esm-es5/taro-canvas-core.entry.js +0 -1
  108. package/dist/esm-es5/taro-channel-live-core.entry.js +0 -1
  109. package/dist/esm-es5/taro-channel-video-core.entry.js +0 -1
  110. package/dist/esm-es5/taro-checkbox-core_2.entry.js +0 -1
  111. package/dist/esm-es5/taro-comment-detail-core.entry.js +0 -1
  112. package/dist/esm-es5/taro-comment-list-core.entry.js +0 -1
  113. package/dist/esm-es5/taro-components.js +0 -1
  114. package/dist/esm-es5/taro-contact-button-core.entry.js +0 -1
  115. package/dist/esm-es5/taro-cover-image-core.entry.js +0 -1
  116. package/dist/esm-es5/taro-cover-view-core.entry.js +0 -1
  117. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +0 -1
  118. package/dist/esm-es5/taro-double-tap-gesture-handler-core.entry.js +0 -1
  119. package/dist/esm-es5/taro-draggable-sheet-core.entry.js +0 -1
  120. package/dist/esm-es5/taro-editor-core.entry.js +0 -1
  121. package/dist/esm-es5/taro-follow-swan-core.entry.js +0 -1
  122. package/dist/esm-es5/taro-force-press-gesture-handler-core.entry.js +0 -1
  123. package/dist/esm-es5/taro-form-core.entry.js +0 -1
  124. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +0 -1
  125. package/dist/esm-es5/taro-grid-builder-core.entry.js +0 -1
  126. package/dist/esm-es5/taro-grid-view-core.entry.js +0 -1
  127. package/dist/esm-es5/taro-horizontal-drag-gesture-handler-core.entry.js +0 -1
  128. package/dist/esm-es5/taro-icon-core.entry.js +0 -1
  129. package/dist/esm-es5/taro-image-core.entry.js +0 -1
  130. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +0 -1
  131. package/dist/esm-es5/taro-input-core.entry.js +0 -1
  132. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +0 -1
  133. package/dist/esm-es5/taro-label-core.entry.js +0 -1
  134. package/dist/esm-es5/taro-lifestyle-core.entry.js +0 -1
  135. package/dist/esm-es5/taro-like-core.entry.js +0 -1
  136. package/dist/esm-es5/taro-list-builder-core.entry.js +0 -1
  137. package/dist/esm-es5/taro-list-view-core.entry.js +0 -1
  138. package/dist/esm-es5/taro-live-player-core.entry.js +0 -1
  139. package/dist/esm-es5/taro-live-pusher-core.entry.js +0 -1
  140. package/dist/esm-es5/taro-login-core.entry.js +0 -1
  141. package/dist/esm-es5/taro-long-press-gesture-handler-core.entry.js +0 -1
  142. package/dist/esm-es5/taro-lottie-core.entry.js +0 -1
  143. package/dist/esm-es5/taro-map-core.entry.js +0 -1
  144. package/dist/esm-es5/taro-match-media-core.entry.js +0 -1
  145. package/dist/esm-es5/taro-movable-area-core_2.entry.js +0 -1
  146. package/dist/esm-es5/taro-native-slot-core.entry.js +0 -1
  147. package/dist/esm-es5/taro-navigation-bar-core.entry.js +0 -1
  148. package/dist/esm-es5/taro-navigator-core.entry.js +0 -1
  149. package/dist/esm-es5/taro-nested-scroll-body-core.entry.js +0 -1
  150. package/dist/esm-es5/taro-nested-scroll-header-core.entry.js +0 -1
  151. package/dist/esm-es5/taro-official-account-core.entry.js +0 -1
  152. package/dist/esm-es5/taro-open-container-core.entry.js +0 -1
  153. package/dist/esm-es5/taro-open-data-core.entry.js +0 -1
  154. package/dist/esm-es5/taro-page-container-core.entry.js +0 -1
  155. package/dist/esm-es5/taro-page-meta-core.entry.js +0 -1
  156. package/dist/esm-es5/taro-pan-gesture-handler-core.entry.js +0 -1
  157. package/dist/esm-es5/taro-picker-core_2.entry.js +0 -1
  158. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +0 -1
  159. package/dist/esm-es5/taro-progress-core.entry.js +0 -1
  160. package/dist/esm-es5/taro-pull-to-refresh-core.entry.js +0 -1
  161. package/dist/esm-es5/taro-radio-core_2.entry.js +0 -1
  162. package/dist/esm-es5/taro-rich-text-core.entry.js +0 -1
  163. package/dist/esm-es5/taro-root-portal-core.entry.js +0 -1
  164. package/dist/esm-es5/taro-rtc-room-core.entry.js +0 -1
  165. package/dist/esm-es5/taro-rtc-room-item-core.entry.js +0 -1
  166. package/dist/esm-es5/taro-scale-gesture-handler-core.entry.js +0 -1
  167. package/dist/esm-es5/taro-script-core.entry.js +0 -1
  168. package/dist/esm-es5/taro-scroll-view-core.entry.js +0 -1
  169. package/dist/esm-es5/taro-share-element-core.entry.js +0 -1
  170. package/dist/esm-es5/taro-slider-core.entry.js +0 -1
  171. package/dist/esm-es5/taro-slot-core.entry.js +0 -1
  172. package/dist/esm-es5/taro-snapshot-core.entry.js +0 -1
  173. package/dist/esm-es5/taro-span-core.entry.js +0 -1
  174. package/dist/esm-es5/taro-sticky-header-core.entry.js +0 -1
  175. package/dist/esm-es5/taro-sticky-section-core.entry.js +0 -1
  176. package/dist/esm-es5/taro-swiper-core_2.entry.js +0 -1
  177. package/dist/esm-es5/taro-switch-core.entry.js +0 -1
  178. package/dist/esm-es5/taro-tab-item-core.entry.js +0 -1
  179. package/dist/esm-es5/taro-tabbar.entry.js +0 -1
  180. package/dist/esm-es5/taro-tabs-core.entry.js +0 -1
  181. package/dist/esm-es5/taro-tap-gesture-handler-core.entry.js +0 -1
  182. package/dist/esm-es5/taro-text-core.entry.js +0 -1
  183. package/dist/esm-es5/taro-textarea-core.entry.js +0 -1
  184. package/dist/esm-es5/taro-vertical-drag-gesture-handler-core.entry.js +0 -1
  185. package/dist/esm-es5/taro-video-control_3.entry.js +0 -1
  186. package/dist/esm-es5/taro-view-core.entry.js +0 -1
  187. package/dist/esm-es5/taro-voip-room-core.entry.js +0 -1
  188. package/dist/esm-es5/taro-web-view-core.entry.js +0 -1
  189. package/dist/taro-components/p-010faa87.system.js +0 -1
  190. package/dist/taro-components/p-03a0a6f3.system.entry.js +0 -1
  191. package/dist/taro-components/p-055777d4.system.entry.js +0 -1
  192. package/dist/taro-components/p-08f31efb.system.entry.js +0 -1
  193. package/dist/taro-components/p-0b9fa602.system.entry.js +0 -1
  194. package/dist/taro-components/p-0c3bf536.system.entry.js +0 -1
  195. package/dist/taro-components/p-0cbc06a0.system.entry.js +0 -1
  196. package/dist/taro-components/p-0e77f1af.system.entry.js +0 -1
  197. package/dist/taro-components/p-0e8c1988.system.entry.js +0 -1
  198. package/dist/taro-components/p-1331d6e6.entry.js +0 -1
  199. package/dist/taro-components/p-13773464.entry.js +0 -1
  200. package/dist/taro-components/p-14e9f2fd.system.entry.js +0 -1
  201. package/dist/taro-components/p-1565cc2e.system.entry.js +0 -1
  202. package/dist/taro-components/p-200ba6f2.system.entry.js +0 -1
  203. package/dist/taro-components/p-2053531e.system.entry.js +0 -1
  204. package/dist/taro-components/p-2210c50a.system.entry.js +0 -1
  205. package/dist/taro-components/p-24a12aac.system.entry.js +0 -1
  206. package/dist/taro-components/p-274753ad.system.entry.js +0 -1
  207. package/dist/taro-components/p-2d2c8354.system.entry.js +0 -1
  208. package/dist/taro-components/p-336b5b6c.system.entry.js +0 -1
  209. package/dist/taro-components/p-34aee4d3.system.entry.js +0 -1
  210. package/dist/taro-components/p-34b51434.system.entry.js +0 -1
  211. package/dist/taro-components/p-39dd80dd.entry.js +0 -1
  212. package/dist/taro-components/p-3dc40ce0.entry.js +0 -1
  213. package/dist/taro-components/p-3ee0dda1.system.entry.js +0 -1
  214. package/dist/taro-components/p-443b9a72.system.js +0 -7
  215. package/dist/taro-components/p-4446fe5f.system.entry.js +0 -1
  216. package/dist/taro-components/p-45ce1c8b.system.entry.js +0 -1
  217. package/dist/taro-components/p-48395cab.system.entry.js +0 -1
  218. package/dist/taro-components/p-48887552.entry.js +0 -1
  219. package/dist/taro-components/p-498d940e.system.entry.js +0 -1
  220. package/dist/taro-components/p-49bd1791.system.entry.js +0 -1
  221. package/dist/taro-components/p-4dddb4a4.system.entry.js +0 -1
  222. package/dist/taro-components/p-4f62b74a.system.entry.js +0 -1
  223. package/dist/taro-components/p-50ea2036.system.js +0 -1
  224. package/dist/taro-components/p-52ab123f.system.entry.js +0 -1
  225. package/dist/taro-components/p-58a44067.system.entry.js +0 -1
  226. package/dist/taro-components/p-5c3d432f.system.entry.js +0 -1
  227. package/dist/taro-components/p-5ff5a099.system.entry.js +0 -1
  228. package/dist/taro-components/p-60869da5.system.entry.js +0 -1
  229. package/dist/taro-components/p-636c9e22.system.entry.js +0 -1
  230. package/dist/taro-components/p-6ef0579d.system.entry.js +0 -1
  231. package/dist/taro-components/p-6f25b319.system.entry.js +0 -1
  232. package/dist/taro-components/p-720c96ae.system.entry.js +0 -1
  233. package/dist/taro-components/p-731de0f1.system.entry.js +0 -1
  234. package/dist/taro-components/p-7625b781.system.entry.js +0 -1
  235. package/dist/taro-components/p-7677dcb3.system.entry.js +0 -1
  236. package/dist/taro-components/p-76eedcd8.system.entry.js +0 -1
  237. package/dist/taro-components/p-7a860d44.system.entry.js +0 -1
  238. package/dist/taro-components/p-7e486065.system.entry.js +0 -1
  239. package/dist/taro-components/p-7f067654.system.entry.js +0 -1
  240. package/dist/taro-components/p-86b09ede.system.entry.js +0 -1
  241. package/dist/taro-components/p-88de70df.system.js +0 -2
  242. package/dist/taro-components/p-8c3b906c.system.js +0 -1
  243. package/dist/taro-components/p-8f7c9757.system.entry.js +0 -1
  244. package/dist/taro-components/p-920663c3.system.entry.js +0 -1
  245. package/dist/taro-components/p-920e9e08.system.entry.js +0 -1
  246. package/dist/taro-components/p-93329865.system.entry.js +0 -1
  247. package/dist/taro-components/p-9cf98daf.entry.js +0 -1
  248. package/dist/taro-components/p-9d815ff0.system.entry.js +0 -1
  249. package/dist/taro-components/p-a263b21b.system.entry.js +0 -1
  250. package/dist/taro-components/p-a3948a42.system.entry.js +0 -1
  251. package/dist/taro-components/p-a39bfe0d.system.entry.js +0 -1
  252. package/dist/taro-components/p-a57123fa.system.entry.js +0 -1
  253. package/dist/taro-components/p-a6258172.system.entry.js +0 -1
  254. package/dist/taro-components/p-ac808059.system.entry.js +0 -1
  255. package/dist/taro-components/p-ac8ef7e3.system.entry.js +0 -1
  256. package/dist/taro-components/p-acb1944c.system.entry.js +0 -1
  257. package/dist/taro-components/p-aecf9c49.system.entry.js +0 -1
  258. package/dist/taro-components/p-b197f269.entry.js +0 -1
  259. package/dist/taro-components/p-b4d3d0bf.system.entry.js +0 -1
  260. package/dist/taro-components/p-b9e52b27.system.entry.js +0 -1
  261. package/dist/taro-components/p-baba6d35.system.entry.js +0 -1
  262. package/dist/taro-components/p-bb3a760a.system.entry.js +0 -1
  263. package/dist/taro-components/p-bc4dbbfb.entry.js +0 -1
  264. package/dist/taro-components/p-bd2bb986.entry.js +0 -1
  265. package/dist/taro-components/p-bd7d7771.entry.js +0 -1
  266. package/dist/taro-components/p-c089b757.system.entry.js +0 -1
  267. package/dist/taro-components/p-c5d34e1c.system.entry.js +0 -1
  268. package/dist/taro-components/p-c6258ca4.system.entry.js +0 -1
  269. package/dist/taro-components/p-c6bf856c.system.entry.js +0 -1
  270. package/dist/taro-components/p-c7d84f5f.system.entry.js +0 -1
  271. package/dist/taro-components/p-c984e3bd.system.entry.js +0 -1
  272. package/dist/taro-components/p-cb55d5a3.system.entry.js +0 -1
  273. package/dist/taro-components/p-cc02c5b6.system.entry.js +0 -1
  274. package/dist/taro-components/p-ce63e336.system.entry.js +0 -1
  275. package/dist/taro-components/p-d04b19f1.system.entry.js +0 -1
  276. package/dist/taro-components/p-d2b08d6c.system.entry.js +0 -1
  277. package/dist/taro-components/p-d3573732.system.entry.js +0 -1
  278. package/dist/taro-components/p-d482a085.system.entry.js +0 -1
  279. package/dist/taro-components/p-d6bd3fa0.system.entry.js +0 -1
  280. package/dist/taro-components/p-d952367b.system.entry.js +0 -1
  281. package/dist/taro-components/p-d9b9319b.system.js +0 -1
  282. package/dist/taro-components/p-da5ac143.system.entry.js +0 -1
  283. package/dist/taro-components/p-deaafb30.system.entry.js +0 -1
  284. package/dist/taro-components/p-df082aca.system.entry.js +0 -1
  285. package/dist/taro-components/p-e5f31143.system.entry.js +0 -1
  286. package/dist/taro-components/p-eb385fbc.system.entry.js +0 -1
  287. package/dist/taro-components/p-ede005c7.system.entry.js +0 -1
  288. package/dist/taro-components/p-ee2e9a0f.system.entry.js +0 -1
  289. package/dist/taro-components/p-f0694b9f.system.entry.js +0 -1
  290. package/dist/taro-components/p-f1597269.system.entry.js +0 -1
  291. package/dist/taro-components/p-f17b4179.system.entry.js +0 -1
  292. package/dist/taro-components/p-f490ca1e.system.entry.js +0 -1
  293. package/dist/taro-components/p-f6d29525.entry.js +0 -1
  294. package/dist/taro-components/p-fb23fdb8.system.entry.js +0 -1
  295. package/dist/taro-components/p-fc124d0d.system.entry.js +0 -1
  296. package/dist/taro-components/p-fe3e2fdb.system.entry.js +0 -1
  297. package/dist/taro-components/taro-components.js +0 -131
  298. package/types/gesture/common.d.ts +0 -26
@@ -1 +1 @@
1
- import{h as t,r as a,c as e,H as i,g as o}from"./p-d0cabaaa.js";import{stripSuffix as r,stripBasename as s,addLeadingSlash as n,getCurrentPage as b}from"@tarojs/runtime";import h from"@tarojs/taro";import{c as l}from"./p-160d710a.js";import d from"resolve-pathname";import{a as c}from"./p-5893c3ed.js";const _=t=>{let a,e=t||"";const i={path:null,query:null,fragment:null};return a=e.indexOf("#"),a>-1&&(i.fragment=e.substring(a+1),e=e.substring(0,a)),a=e.indexOf("?"),a>-1&&(i.query=e.substring(a+1),e=e.substring(0,a)),i.path=e,i},u=({index:a,isSelected:e=!1,textColor:i,iconPath:o,badgeText:r,showRedDot:s=!1,pagePath:n,text:b,onSelect:d})=>{const _=l("weui-tabbar__item",{"weui-bar__item_on":e});return t("a",{key:a,href:"javascript:;",class:_,onClick:function(){const t=h.getCurrentPages().shift();"function"==typeof(null==t?void 0:t.onTabItemTap)&&c(this)&&t.onTabItemTap({index:a,pagePath:n,text:b}),d(a)}},t("span",{style:{display:"inline-block",position:"relative"}},t("img",{src:o,alt:"",class:"weui-tabbar__icon"}),!!r&&t("span",{class:"weui-badge taro-tabbar-badge",style:{position:"absolute",top:"-2px",right:"-13px"}},r),s&&t("span",{class:"weui-badge weui-badge_dot",style:{position:"absolute",top:"0",right:"-6px"}})),t("p",{class:"weui-tabbar__label",style:{color:i}},b))},m="taro-tabbar__tabbar",p=class{constructor(t){a(this,t),this.onLongPress=e(this,"longpress",7),this.homePage="",this.customRoutes=[],this.tabbarPos="bottom",this.getOriginUrl=t=>{const a=this.customRoutes.filter((([,a])=>_(a).path===_(t).path));return r(a.length?a[0][0]:t,".html")},this.getSelectedIndex=t=>{let a=-1;return this.list.forEach((({pagePath:e},i)=>{_(t).path===_(e).path&&(a=i)})),a},this.switchTab=t=>{this.selectedIndex=t,h.switchTab({url:this.list[t].pagePath})},this.switchTabHandler=({url:t,successHandler:a,errorHandler:e})=>{const i=this.getOriginUrl(this.getCurrentUrl()||this.homePage),o=d(t,i),r=this.getSelectedIndex(o);r>-1?(this.switchTab(r),a({errMsg:"switchTab:ok"})):e({errMsg:`switchTab:fail page "${o}" is not found`})},this.routerChangeHandler=t=>{var a;const e=null===(a=null==t?void 0:t.toLocation)||void 0===a?void 0:a.path;let i;if("string"==typeof e){const t=this.conf.basename||"/";i=s(n(e||this.homePage),t)||"/"}else i=this.getCurrentUrl();this.selectedIndex=this.getSelectedIndex(this.getOriginUrl(i))},this.setTabBarBadgeHandler=({index:t,text:a,successHandler:e,errorHandler:i})=>{const o=[...this.list];t in o?(o[t].showRedDot=!1,o[t].badgeText=a,e({errMsg:"setTabBarBadge:ok"})):i({errMsg:"setTabBarBadge:fail tabbar item not found"}),this.list=o},this.removeTabBarBadgeHandler=({index:t,successHandler:a,errorHandler:e})=>{const i=[...this.list];t in i?(i[t].badgeText=null,i[t].badgeText=null,a({errMsg:"removeTabBarBadge:ok"})):e({errMsg:"removeTabBarBadge:fail tabbar item not found"}),this.list=i},this.showTabBarRedDotHandler=({index:t,successHandler:a,errorHandler:e})=>{const i=[...this.list];t in i?(i[t].badgeText=null,i[t].showRedDot=!0,a({errMsg:"showTabBarRedDot:ok"})):e({errMsg:"showTabBarRedDot:fail tabbar item not found"}),this.list=i},this.hideTabBarRedDotHandler=({index:t,successHandler:a,errorHandler:e})=>{const i=[...this.list];t in i?(i[t].showRedDot=!1,a({errMsg:"hideTabBarRedDot:ok"})):e({errMsg:"hideTabBarRedDot:fail tabbar item not found"}),this.list=i},this.showTabBarHandler=({successHandler:t})=>{this.status=0,t({errMsg:"showTabBar:ok"})},this.hideTabBarHandler=({animation:t,successHandler:a})=>{this.status=t?2:1,a({errMsg:"hideTabBar:ok"})},this.setTabBarStyleHandler=({color:t,selectedColor:a,backgroundColor:e,borderStyle:i,successHandler:o})=>{e&&(this.backgroundColor=e),i&&(this.borderStyle=i),t&&(this.color=t),a&&(this.selectedColor=a),o({errMsg:"setTabBarStyle:ok"})},this.setTabBarItemHandler=({index:t,iconPath:a,selectedIconPath:e,text:i,successHandler:o,errorHandler:r})=>{const s=[...this.list];t in s?(a&&(s[t].iconPath=a),e&&(s[t].selectedIconPath=e),i&&(s[t].text=i),o({errMsg:"setTabBarItem:ok"})):r({errMsg:"setTabBarItem:fail tabbar item not found"}),this.list=s},this.conf=void 0,this.list=void 0,this.borderStyle=void 0,this.backgroundColor=void 0,this.color=void 0,this.selectedColor=void 0,this.selectedIndex=-1,this.status=0}componentWillLoad(){var t,a;const e=(null===(t=this.conf)||void 0===t?void 0:t.list)||[],i=(null===(a=this.conf)||void 0===a?void 0:a.customRoutes)||{};if("[object Array]"!==Object.prototype.toString.call(e)||e.length<2||e.length>5)throw new Error("tabBar 配置错误");this.homePage=n(this.conf.homePage);for(let t in i){const a=i[t];t=n(t),"string"==typeof a?this.customRoutes.push([t,n(a)]):(null==a?void 0:a.length)>0&&this.customRoutes.push(...a.map((a=>[t,n(a)])))}e.forEach((t=>{0!==t.pagePath.indexOf("/")&&(t.pagePath="/"+t.pagePath)})),this.list=e,this.borderStyle=this.conf.borderStyle,this.backgroundColor=this.conf.backgroundColor,this.color=this.conf.color,this.selectedColor=this.conf.selectedColor}getCurrentUrl(){const t=b(this.conf.mode,this.conf.basename);return decodeURI("/"===t?this.homePage:t)}bindEvent(){h.eventCenter.on("__taroRouterChange",this.routerChangeHandler),h.eventCenter.on("__taroSwitchTab",this.switchTabHandler),h.eventCenter.on("__taroSetTabBarBadge",this.setTabBarBadgeHandler),h.eventCenter.on("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler),h.eventCenter.on("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler),h.eventCenter.on("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler),h.eventCenter.on("__taroShowTabBar",this.showTabBarHandler),h.eventCenter.on("__taroHideTabBar",this.hideTabBarHandler),h.eventCenter.on("__taroSetTabBarStyle",this.setTabBarStyleHandler),h.eventCenter.on("__taroSetTabBarItem",this.setTabBarItemHandler)}removeEvent(){h.eventCenter.off("__taroRouterChange",this.routerChangeHandler),h.eventCenter.off("__taroSwitchTab",this.switchTabHandler),h.eventCenter.off("__taroSetTabBarBadge",this.setTabBarBadgeHandler),h.eventCenter.off("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler),h.eventCenter.off("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler),h.eventCenter.off("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler),h.eventCenter.off("__taroShowTabBar",this.showTabBarHandler),h.eventCenter.off("__taroHideTabBar",this.hideTabBarHandler),h.eventCenter.off("__taroSetTabBarStyle",this.setTabBarStyleHandler),h.eventCenter.off("__taroSetTabBarItem",this.setTabBarItemHandler)}componentDidLoad(){this.tabbarPos=this.tabbar.nextElementSibling?"top":"bottom",this.bindEvent(),this.routerChangeHandler()}disconnectedCallback(){this.removeEvent()}render(){const{tabbarPos:a="bottom"}=this,e=this.status,o=l("weui-tabbar",{[`taro-tabbar__border-${this.borderStyle||"black"}`]:!0});return t(i,{class:l(m,`${m}-${a}`,{"taro-tabbar__tabbar-hide":-1===this.selectedIndex||1===e,"taro-tabbar__tabbar-slideout":2===e})},t("div",{class:o,style:{backgroundColor:this.backgroundColor||"",height:"inherit"}},this.list.map(((a,e)=>{const i=this.selectedIndex===e;let o,r;return i?(o=this.selectedColor||"",r=a.selectedIconPath):(o=this.color||"",r=a.iconPath),t(u,{index:e,onSelect:this.switchTab.bind(this),isSelected:i,textColor:o,iconPath:r,pagePath:a.pagePath,text:a.text,badgeText:a.badgeText,showRedDot:a.showRedDot})}))))}get tabbar(){return o(this)}};p.style='.weui-tabbar{z-index:500;background-color:#f7f7fa;-ms-flex-align:center;align-items:center;width:100%;display:-ms-flexbox;display:flex;position:absolute;bottom:0}.weui-tabbar:before{content:" ";color:#c0bfc4;-webkit-transform-origin:0 0;transform-origin:0 0;border-top:1px solid #c0bfc4;height:1px;position:absolute;top:0;left:0;right:0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-tabbar__item{padding:5px 0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom);color:#999;text-align:center;-webkit-tap-highlight-color:transparent;-ms-flex:1;flex:1;font-size:0;display:block}.weui-tabbar__item.weui-bar__item_on .weui-tabbar__icon,.weui-tabbar__item.weui-bar__item_on .weui-tabbar__icon>i,.weui-tabbar__item.weui-bar__item_on .weui-tabbar__label{color:#09bb07}.weui-tabbar__icon{width:27px;height:27px;display:inline-block}.weui-tabbar__icon img{width:100%;height:100%}i.weui-tabbar__icon,.weui-tabbar__icon>i{color:#999;font-size:24px}.weui-tabbar__label{text-align:center;color:#999;font-size:10px;line-height:1.8}.weui-badge{color:#fff;text-align:center;vertical-align:middle;background-color:#f43530;border-radius:18px;min-width:8px;padding:.15em .4em;font-size:12px;line-height:1.2;display:inline-block}.weui-badge_dot{min-width:0;padding:.4em}:root{--taro-tabbar-height:50px}#app{height:100%}.taro-tabbar__border-white:before{border-top-color:#fff!important}.taro-tabbar__container{-ms-flex-direction:column;flex-direction:column;height:100%;display:-ms-flexbox;display:flex;overflow:hidden}.taro-tabbar__panel{-webkit-overflow-scrolling:auto;-ms-flex:1;flex:1;position:relative;overflow:auto}.taro-tabbar__tabbar{height:var(--taro-tabbar-height);width:100%;-webkit-transition:bottom .2s,top .2s;transition:bottom .2s,top .2s;position:relative}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom);bottom:0}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{-ms-flex:0 0;flex:0 0;top:-52px}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}';export{p as taro_tabbar}
1
+ import{h as t,r as a,c as e,H as i,g as r}from"./p-d0cabaaa.js";import{stripSuffix as o,stripBasename as s,addLeadingSlash as n,getCurrentPage as b}from"@tarojs/runtime";import h from"@tarojs/taro";import{c as l}from"./p-160d710a.js";import d from"resolve-pathname";import{a as c}from"./p-5893c3ed.js";const _=t=>{let a,e=t||"";const i={path:null,query:null,fragment:null};return a=e.indexOf("#"),a>-1&&(i.fragment=e.substring(a+1),e=e.substring(0,a)),a=e.indexOf("?"),a>-1&&(i.query=e.substring(a+1),e=e.substring(0,a)),i.path=e,i},u=({index:a,isSelected:e=!1,textColor:i,iconPath:r,badgeText:o,showRedDot:s=!1,pagePath:n,text:b,onSelect:d})=>{const _=l("weui-tabbar__item",{"weui-bar__item_on":e});return t("a",{key:a,href:"javascript:;",class:_,onClick:function(){const t=h.getCurrentPages().shift();"function"==typeof(null==t?void 0:t.onTabItemTap)&&c(this)&&t.onTabItemTap({index:a,pagePath:n,text:b}),d(a)}},t("span",{style:{display:"inline-block",position:"relative"}},t("img",{src:r,alt:"",class:"weui-tabbar__icon"}),!!o&&t("span",{class:"weui-badge taro-tabbar-badge",style:{position:"absolute",top:"-2px",right:"-13px"}},o),s&&t("span",{class:"weui-badge weui-badge_dot",style:{position:"absolute",top:"0",right:"-6px"}})),t("p",{class:"weui-tabbar__label",style:{color:i}},b))},g="taro-tabbar__tabbar",p=class{constructor(t){a(this,t),this.onLongPress=e(this,"longpress",7),this.homePage="",this.customRoutes=[],this.tabbarPos="bottom",this.getOriginUrl=t=>{const a=this.customRoutes.filter((([,a])=>_(a).path===_(t).path));return o(a.length?a[0][0]:t,".html")},this.getSelectedIndex=t=>{let a=-1;return this.list.forEach((({pagePath:e},i)=>{_(t).path===_(e).path&&(a=i)})),a},this.switchTab=t=>{this.selectedIndex=t,h.switchTab({url:this.list[t].pagePath})},this.switchTabHandler=({url:t,successHandler:a,errorHandler:e})=>{const i=this.getOriginUrl(this.getCurrentUrl()||this.homePage),r=d(t,i),o=this.getSelectedIndex(r);o>-1?(this.switchTab(o),a({errMsg:"switchTab:ok"})):e({errMsg:`switchTab:fail page "${r}" is not found`})},this.routerChangeHandler=t=>{var a;const e=null===(a=null==t?void 0:t.toLocation)||void 0===a?void 0:a.path;let i;if("string"==typeof e){const t=this.conf.basename||"/";i=s(n(e||this.homePage),t)||"/"}else i=this.getCurrentUrl();this.selectedIndex=this.getSelectedIndex(this.getOriginUrl(i))},this.setTabBarBadgeHandler=({index:t,text:a,successHandler:e,errorHandler:i})=>{const r=[...this.list];t in r?(r[t].showRedDot=!1,r[t].badgeText=a,e({errMsg:"setTabBarBadge:ok"})):i({errMsg:"setTabBarBadge:fail tabbar item not found"}),this.list=r},this.removeTabBarBadgeHandler=({index:t,successHandler:a,errorHandler:e})=>{const i=[...this.list];t in i?(i[t].badgeText=null,i[t].badgeText=null,a({errMsg:"removeTabBarBadge:ok"})):e({errMsg:"removeTabBarBadge:fail tabbar item not found"}),this.list=i},this.showTabBarRedDotHandler=({index:t,successHandler:a,errorHandler:e})=>{const i=[...this.list];t in i?(i[t].badgeText=null,i[t].showRedDot=!0,a({errMsg:"showTabBarRedDot:ok"})):e({errMsg:"showTabBarRedDot:fail tabbar item not found"}),this.list=i},this.hideTabBarRedDotHandler=({index:t,successHandler:a,errorHandler:e})=>{const i=[...this.list];t in i?(i[t].showRedDot=!1,a({errMsg:"hideTabBarRedDot:ok"})):e({errMsg:"hideTabBarRedDot:fail tabbar item not found"}),this.list=i},this.showTabBarHandler=({successHandler:t})=>{this.status=0,t({errMsg:"showTabBar:ok"})},this.hideTabBarHandler=({animation:t,successHandler:a})=>{this.status=t?2:1,a({errMsg:"hideTabBar:ok"})},this.setTabBarStyleHandler=({color:t,selectedColor:a,backgroundColor:e,borderStyle:i,successHandler:r})=>{e&&(this.backgroundColor=e),i&&(this.borderStyle=i),t&&(this.color=t),a&&(this.selectedColor=a),r({errMsg:"setTabBarStyle:ok"})},this.setTabBarItemHandler=({index:t,iconPath:a,selectedIconPath:e,text:i,successHandler:r,errorHandler:o})=>{const s=[...this.list];t in s?(a&&(s[t].iconPath=a),e&&(s[t].selectedIconPath=e),i&&(s[t].text=i),r({errMsg:"setTabBarItem:ok"})):o({errMsg:"setTabBarItem:fail tabbar item not found"}),this.list=s},this.conf=void 0,this.list=void 0,this.borderStyle=void 0,this.backgroundColor=void 0,this.color=void 0,this.selectedColor=void 0,this.selectedIndex=-1,this.status=0}componentWillLoad(){var t,a;const e=(null===(t=this.conf)||void 0===t?void 0:t.list)||[],i=(null===(a=this.conf)||void 0===a?void 0:a.customRoutes)||{};if("[object Array]"!==Object.prototype.toString.call(e)||e.length<2||e.length>5)throw new Error("tabBar 配置错误");this.homePage=n(this.conf.homePage);for(let t in i){const a=i[t];t=n(t),"string"==typeof a?this.customRoutes.push([t,n(a)]):(null==a?void 0:a.length)>0&&this.customRoutes.push(...a.map((a=>[t,n(a)])))}e.forEach((t=>{0!==t.pagePath.indexOf("/")&&(t.pagePath="/"+t.pagePath)})),this.list=e,this.borderStyle=this.conf.borderStyle,this.backgroundColor=this.conf.backgroundColor,this.color=this.conf.color,this.selectedColor=this.conf.selectedColor}getCurrentUrl(){const t=b(this.conf.mode,this.conf.basename);return decodeURI("/"===t?this.homePage:t)}bindEvent(){h.eventCenter.on("__taroRouterChange",this.routerChangeHandler),h.eventCenter.on("__taroSwitchTab",this.switchTabHandler),h.eventCenter.on("__taroSetTabBarBadge",this.setTabBarBadgeHandler),h.eventCenter.on("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler),h.eventCenter.on("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler),h.eventCenter.on("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler),h.eventCenter.on("__taroShowTabBar",this.showTabBarHandler),h.eventCenter.on("__taroHideTabBar",this.hideTabBarHandler),h.eventCenter.on("__taroSetTabBarStyle",this.setTabBarStyleHandler),h.eventCenter.on("__taroSetTabBarItem",this.setTabBarItemHandler)}removeEvent(){h.eventCenter.off("__taroRouterChange",this.routerChangeHandler),h.eventCenter.off("__taroSwitchTab",this.switchTabHandler),h.eventCenter.off("__taroSetTabBarBadge",this.setTabBarBadgeHandler),h.eventCenter.off("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler),h.eventCenter.off("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler),h.eventCenter.off("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler),h.eventCenter.off("__taroShowTabBar",this.showTabBarHandler),h.eventCenter.off("__taroHideTabBar",this.hideTabBarHandler),h.eventCenter.off("__taroSetTabBarStyle",this.setTabBarStyleHandler),h.eventCenter.off("__taroSetTabBarItem",this.setTabBarItemHandler)}componentDidLoad(){this.tabbarPos=this.tabbar.nextElementSibling?"top":"bottom",this.bindEvent(),this.routerChangeHandler()}disconnectedCallback(){this.removeEvent()}render(){const{tabbarPos:a="bottom"}=this,e=this.status,r=l("weui-tabbar",{[`taro-tabbar__border-${this.borderStyle||"black"}`]:!0});return t(i,{class:l(g,`${g}-${a}`,{"taro-tabbar__tabbar-hide":-1===this.selectedIndex||1===e,"taro-tabbar__tabbar-slideout":2===e})},t("div",{class:r,style:{backgroundColor:this.backgroundColor||"",height:"inherit"}},this.list.map(((a,e)=>{const i=this.selectedIndex===e;let r,o;return i?(r=this.selectedColor||"",o=a.selectedIconPath):(r=this.color||"",o=a.iconPath),t(u,{index:e,onSelect:this.switchTab.bind(this),isSelected:i,textColor:r,iconPath:o,pagePath:a.pagePath,text:a.text,badgeText:a.badgeText,showRedDot:a.showRedDot})}))))}get tabbar(){return r(this)}};p.style='.weui-tabbar{z-index:500;background-color:#f7f7fa;align-items:center;width:100%;display:flex;position:absolute;bottom:0}.weui-tabbar:before{content:" ";color:#c0bfc4;transform-origin:0 0;border-top:1px solid #c0bfc4;height:1px;position:absolute;top:0;left:0;right:0;transform:scaleY(.5)}.weui-tabbar__item{padding:5px 0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom);color:#999;text-align:center;-webkit-tap-highlight-color:transparent;flex:1;font-size:0;display:block}.weui-tabbar__item.weui-bar__item_on .weui-tabbar__icon,.weui-tabbar__item.weui-bar__item_on .weui-tabbar__icon>i,.weui-tabbar__item.weui-bar__item_on .weui-tabbar__label{color:#09bb07}.weui-tabbar__icon{width:27px;height:27px;display:inline-block}.weui-tabbar__icon img{width:100%;height:100%}i.weui-tabbar__icon,.weui-tabbar__icon>i{color:#999;font-size:24px}.weui-tabbar__label{text-align:center;color:#999;font-size:10px;line-height:1.8}.weui-badge{color:#fff;text-align:center;vertical-align:middle;background-color:#f43530;border-radius:18px;min-width:8px;padding:.15em .4em;font-size:12px;line-height:1.2;display:inline-block}.weui-badge_dot{min-width:0;padding:.4em}:root{--taro-tabbar-height:50px}#app{height:100%}.taro-tabbar__border-white:before{border-top-color:#fff!important}.taro-tabbar__container{flex-direction:column;height:100%;display:flex;overflow:hidden}.taro-tabbar__panel{-webkit-overflow-scrolling:auto;flex:1;position:relative;overflow:auto}.taro-tabbar__tabbar{height:var(--taro-tabbar-height);width:100%;transition:bottom .2s,top .2s;position:relative}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom);bottom:0}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{flex:0 0;top:-52px}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}';export{p as taro_tabbar}
@@ -1 +1 @@
1
- import{r as t,c as i,h as o,H as e}from"./p-d0cabaaa.js";import{c as a}from"./p-160d710a.js";const h=class{constructor(o){t(this,o),this.onLoad=i(this,"load",7),this.onError=i(this,"error",7),this.src=void 0,this.mode="scaleToFill",this.lazyLoad=!1,this.nativeProps={},this.aspectFillMode="width",this.didLoad=!1}componentDidLoad(){if(!this.lazyLoad)return;const t=new IntersectionObserver((i=>{i[i.length-1].isIntersecting&&(t.unobserve(this.imgRef),this.didLoad=!0)}),{rootMargin:"300px 0px"});t.observe(this.imgRef)}imageOnLoad(){const{width:t,height:i,naturalWidth:o,naturalHeight:e}=this.imgRef;this.onLoad.emit({width:t,height:i}),this.aspectFillMode=o>e?"width":"height"}imageOnError(t){this.onError.emit(t)}render(){const{src:t,lazyLoad:i=!1,aspectFillMode:h="width",imageOnLoad:s,imageOnError:r,nativeProps:m,didLoad:d}=this,g=this.mode||"scaleToFill",l=a({"taro-img__widthfix":"widthFix"===g}),n=a(`taro-img__mode-${g.toLowerCase().replace(/\s/g,"")}`,{[`taro-img__mode-aspectfill--${h}`]:"aspectFill"===g});return o(e,{class:l},t?o("img",Object.assign({ref:t=>this.imgRef=t,class:n,src:i&&!d?void 0:t,onLoad:s.bind(this),onError:r.bind(this)},m)):"")}};h.style='img[src=""]{opacity:0}taro-image-core{width:320px;height:240px;font-size:0;display:inline-block;position:relative;overflow:hidden}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%}.taro-img__mode-aspectfill{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.taro-img__mode-aspectfill--width{min-width:100%;height:100%}.taro-img__mode-aspectfill--height{width:100%;min-height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-heightfix{height:100%}.taro-img__mode-top{width:100%}.taro-img__mode-bottom{width:100%;position:absolute;bottom:0}.taro-img__mode-left{height:100%}.taro-img__mode-right{height:100%;position:absolute;right:0}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;bottom:0;right:0}';export{h as taro_image_core}
1
+ import{r as t,c as i,h as o,H as e}from"./p-d0cabaaa.js";import{c as h}from"./p-160d710a.js";const a=class{constructor(o){t(this,o),this.onLoad=i(this,"load",7),this.onError=i(this,"error",7),this.src=void 0,this.mode="scaleToFill",this.lazyLoad=!1,this.nativeProps={},this.aspectFillMode="width",this.didLoad=!1}componentDidLoad(){if(!this.lazyLoad)return;const t=new IntersectionObserver((i=>{i[i.length-1].isIntersecting&&(t.unobserve(this.imgRef),this.didLoad=!0)}),{rootMargin:"300px 0px"});t.observe(this.imgRef)}imageOnLoad(){const{width:t,height:i,naturalWidth:o,naturalHeight:e}=this.imgRef;this.onLoad.emit({width:t,height:i}),this.aspectFillMode=o>e?"width":"height"}imageOnError(t){this.onError.emit(t)}render(){const{src:t,lazyLoad:i=!1,aspectFillMode:a="width",imageOnLoad:s,imageOnError:r,nativeProps:m,didLoad:d}=this,g=this.mode||"scaleToFill",l=h({"taro-img__widthfix":"widthFix"===g}),n=h(`taro-img__mode-${g.toLowerCase().replace(/\s/g,"")}`,{[`taro-img__mode-aspectfill--${a}`]:"aspectFill"===g});return o(e,{class:l},t?o("img",Object.assign({ref:t=>this.imgRef=t,class:n,src:i&&!d?void 0:t,onLoad:s.bind(this),onError:r.bind(this)},m)):"")}};a.style='img[src=""]{opacity:0}taro-image-core{width:320px;height:240px;font-size:0;display:inline-block;position:relative;overflow:hidden}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%}.taro-img__mode-aspectfill{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.taro-img__mode-aspectfill--width{min-width:100%;height:100%}.taro-img__mode-aspectfill--height{width:100%;min-height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-heightfix{height:100%}.taro-img__mode-top{width:100%}.taro-img__mode-bottom{width:100%;position:absolute;bottom:0}.taro-img__mode-left{height:100%}.taro-img__mode-right{height:100%;position:absolute;right:0}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;bottom:0;right:0}';export{a as taro_image_core}
@@ -0,0 +1 @@
1
+ import{r as i,c as e,h as r,H as t,g as s}from"./p-d0cabaaa.js";import a from"swiper/bundle";import{d as o}from"./p-5893c3ed.js";import{c as p}from"./p-160d710a.js";import{h as n}from"./p-dbdb9de9.js";import"@tarojs/taro";var l,w,c,d,h,g=function(i,e,r,t){if("a"===r&&!t)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?i!==e||!t:!e.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?t:"a"===r?t.call(i):t?t.value:e.get(i)},A=function(i,e,r,t,s){if("m"===t)throw new TypeError("Private method is not writable");if("a"===t&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?i!==e||!s:!e.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===t?s.call(i,r):s?s.value=r:e.set(i,r),r};let b=0;const u=class{constructor(r){i(this,r),this.onChange=e(this,"change",7),this.onAnimationFinish=e(this,"animationfinish",7),l.set(this,b++),w.set(this,"autoplay"),c.set(this,!1),d.set(this,!1),h.set(this,0),this.handleSwiperSizeDebounce=o((()=>{this.swiper&&this.isWillLoadCalled&&(this.circular?g(this,d,"f")&&(this.reset(),A(this,d,!1,"f"),A(this,c,!1,"f")):(this.swiper.update(),A(this,c,!1,"f")))}),50),this.reset=()=>{A(this,c,!0,"f"),A(this,h,this.swiper.realIndex,"f"),this.swiper.destroy(),this.handleInit(!0),A(this,c,!1,"f")},this.getSlidersList=()=>this.el.querySelectorAll("taro-swiper-item-core:not(.swiper-slide-duplicate)")||[],this.getNeedFixLoop=()=>{const i=this.parseMargin().filter(Boolean).length>0;return this.circular&&i},this.parseMargin=()=>{const[,i]=/^(\d+)px/.exec(this.previousMargin)||[],[,e]=/^(\d+)px/.exec(this.nextMargin)||[];return[parseInt(i)||0,parseInt(e)||0]},this.swiperWrapper=void 0,this.swiper=void 0,this.isWillLoadCalled=!1,this.indicatorDots=!1,this.indicatorColor="rgba(0, 0, 0, .3)",this.indicatorActiveColor="#000000",this.autoplay=!1,this.current=0,this.currentItemId="",this.interval=5e3,this.duration=500,this.circular=!1,this.vertical=!1,this.previousMargin="0px",this.nextMargin="0px",this.displayMultipleItems=1,this.full=!1,this.zoom=!1,this.effectsProps={},this.observer=void 0}watchCurrent(i){if(this.currentItemId||!this.isWillLoadCalled||!this.swiper)return;const e=parseInt(i,10);isNaN(e)||e===this.swiper.realIndex||(A(this,w,"","f"),this.circular?(this.swiper.slideToLoop(e),this.autoplay&&this.swiper.autoplay.pause(),this.swiper.loopFix(),this.autoplay&&this.swiper.autoplay.start()):this.swiper.slideTo(e))}watchCurrentItemId(i){if(!this.swiperWrapper||!this.isWillLoadCalled)return;let e=0;this.getSlidersList().forEach(((r,t)=>{r.getAttribute("item-id")===i&&(e=this.circular?Number(r.getAttribute("data-swiper-slide-index")):t)})),e!==this.swiper.realIndex&&(A(this,w,"","f"),this.circular?(this.swiper.slideToLoop(e),this.swiper.loopFix(),this.autoplay&&this.swiper.autoplay.start()):this.swiper.slideTo(e))}watchAutoplay(i){if(!this.isWillLoadCalled||!this.swiper)return;const e=this.swiper.autoplay;if(e){if(e.running===i)return;i?(this.swiper.params&&"object"==typeof this.swiper.params.autoplay&&(!0===this.swiper.params.autoplay.disableOnInteraction&&(this.swiper.params.autoplay.disableOnInteraction=!1),this.swiper.params.autoplay.delay=this.interval),e.start()):e.stop()}}watchDuration(i){this.swiper&&this.isWillLoadCalled&&(this.swiper.params.speed=i)}watchInterval(i){this.swiper&&this.isWillLoadCalled&&"object"==typeof this.swiper.params.autoplay&&(this.swiper.params.autoplay.delay=i)}watchSwiperWrapper(i){if(!this.isWillLoadCalled||!this.swiper)return;if(!i)return;const e=()=>{A(this,d,!0,"f"),this.swiper.loopDestroy(),this.swiper.params.loop=!1};this.el.appendChild=r=>(A(this,c,!0,"f"),!g(this,d,"f")&&this.circular&&e(),i.appendChild(r)),this.el.insertBefore=(r,t)=>(A(this,c,!0,"f"),!g(this,d,"f")&&this.circular&&e(),i.insertBefore(r,t)),this.el.replaceChild=(r,t)=>(A(this,c,!0,"f"),!g(this,d,"f")&&this.circular&&e(),i.replaceChild(r,t)),this.el.removeChild=r=>(A(this,c,!0,"f"),!g(this,d,"f")&&this.circular&&e(),i.removeChild(r))}watchCircular(){this.swiper&&this.isWillLoadCalled&&this.reset()}watchDisplayMultipleItems(){this.swiper&&this.isWillLoadCalled&&this.reset()}componentWillLoad(){this.isWillLoadCalled=!0}componentDidLoad(){this.handleInit(),this.swiper&&this.swiperWrapper&&(this.observer=new MutationObserver(this.handleSwiperSizeDebounce),this.observer.observe(this.swiperWrapper,{childList:!0}))}disconnectedCallback(){var i;null===(i=this.observer)||void 0===i||i.disconnect()}handleInit(i=!1){const{autoplay:e,circular:r,current:t,currentItemId:s,displayMultipleItems:o,duration:p,interval:n,effectsProps:d,vertical:b}=this;let u=t;if(i)u=g(this,h,"f");else if(s){let i=0;this.getSlidersList().forEach(((e,r)=>{e.itemId&&e.itemId===s&&(i=r)})),u=i}const f=this.getLoopAdditionalSlides(),v=1===o&&this.getNeedFixLoop(),m=o,y=this,x=Object.assign(Object.assign({pagination:{el:`.taro-swiper-${g(this,l,"f")} > .swiper-container > .swiper-pagination`},direction:b?"vertical":"horizontal",loop:r,slidesPerView:m,initialSlide:u,loopAdditionalSlides:f,speed:p,observeParents:!0,observer:!0,centeredSlides:v,zoom:this.zoom,nested:!0},d),{on:{transitionEnd(i){if(g(y,c,"f")||g(y,h,"f")===this.realIndex)return;A(y,h,this.realIndex,"f"),y.getNeedFixLoop()&&i.loopFix(),y.autoplay&&i.autoplay.start();const e=y.getCurrentItemId(i);y.onAnimationFinish.emit({current:this.realIndex,source:g(y,w,"f"),currentItemId:e}),A(y,w,"autoplay","f")},touchMove(){A(y,w,"touch","f")},slideChange(i){if(g(y,c,"f")||g(y,h,"f")===this.realIndex)return;const e=y.getCurrentItemId(i);y.onChange.emit({current:this.realIndex,source:g(y,w,"f"),currentItemId:e})},init:i=>{y.getNeedFixLoop()&&i.loopFix(),y.autoplay&&i.autoplay.start()},touchEnd:i=>{A(y,w,"touch","f"),y.autoplay&&i.autoplay.start()},touchStart:i=>{A(y,w,"touch","f"),y.autoplay&&i.autoplay.pause()},autoplay(i){i.animating=!1,A(y,w,"autoplay","f")}}});if(e&&(x.autoplay={delay:n,disableOnInteraction:!1}),this.swiper=new a(`.taro-swiper-${g(this,l,"f")} > .swiper-container`,x),this.getNeedFixLoop()){const i=this.swiper.minTranslate.bind(this.swiper),e=this.swiper.maxTranslate.bind(this.swiper);v&&this.getSlidersList().length<4?(this.swiper.minTranslate=()=>i()+this.parseMargin()[1],this.swiper.maxTranslate=()=>e()-this.parseMargin()[0]):(this.swiper.minTranslate=()=>i()-this.parseMargin()[0],this.swiper.maxTranslate=()=>e()+this.parseMargin()[1])}this.swiperWrapper=this.swiper.wrapperEl}getLoopAdditionalSlides(){const i=this.getSlidersList().length;return!this.el||!this.getNeedFixLoop()||i<5?0:i<=7?1:2}getCurrentItemId(i){return i.slides[i.activeIndex].getAttribute("item-id")}render(){const{vertical:i,indicatorDots:e,indicatorColor:s,indicatorActiveColor:a}=this,[o,p]=this.parseMargin(),n=["overflow: visible;",i?`margin-top: ${o}px; margin-bottom: ${p}px;`:`margin-right: ${p}px; margin-left: ${o}px;`,this.full?"height: 100%;":""],w=[e?"opacity: 1;":"display: none;","font-size: 0;"],c={overflow:"hidden"};return this.full&&(c.height="100%"),r(t,{class:`taro-swiper-${g(this,l,"f")}`,style:c},r("div",{class:"swiper-container"},r("style",{type:"text/css"},`\n .taro-swiper-${g(this,l,"f")} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet { background: ${s} }\n .taro-swiper-${g(this,l,"f")} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet-active { background: ${a} }\n .taro-swiper-${g(this,l,"f")} > .swiper-container { ${n.join("")} }\n .taro-swiper-${g(this,l,"f")} > .swiper-container > .swiper-pagination { ${w.join("")} }\n `),r("div",{class:"swiper-wrapper"},r("slot",null)),r("div",{class:"swiper-pagination"})))}get el(){return s(this)}static get watchers(){return{current:["watchCurrent"],currentItemId:["watchCurrentItemId"],autoplay:["watchAutoplay"],duration:["watchDuration"],interval:["watchInterval"],swiperWrapper:["watchSwiperWrapper"],circular:["watchCircular"],displayMultipleItems:["watchDisplayMultipleItems"]}}};l=new WeakMap,w=new WeakMap,c=new WeakMap,d=new WeakMap,h=new WeakMap,u.style="@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:'next'}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active{pointer-events:auto}.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube .swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}taro-swiper-core{height:150px;display:block}taro-swiper-core .swiper-container{height:100%;position:relative;overflow:visible}";const f=class{constructor(e){i(this,e),this.itemId=void 0}connectedCallback(){this.el.className=p(this.el.className,"swiper-slide")}componentDidRender(){n(this.el)}render(){return r(t,{"item-id":this.itemId},r("slot",null))}get el(){return s(this)}};export{u as taro_swiper_core,f as taro_swiper_item_core}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,H as r}from"./p-d0cabaaa.js";const s=class{constructor(r){t(this,r),this.renderNode=t=>{if("type"in t&&"text"===t.type)return(t.text||"").replace(/&nbsp;/g," ");if("name"in t&&t.name){const{name:r,attrs:s,children:c}=t,o={};let n=[];if(s&&"object"==typeof s)for(const t in s){const e=s[t];if("style"!==t||"string"!=typeof e)o[t]=e;else{const t=e.split(";").map((t=>t.trim())).filter((t=>t)),r={};t.forEach((t=>{if(!t)return;const e=/(.+): *(.+)/g.exec(t);if(!e)return;const[,s,c]=e,o=s.replace(/-([a-z])/g,((...t)=>t[1].toUpperCase()));r[o]=c})),Object.keys(r).length&&(o.style=r)}}return c&&c.length&&(n=c.map((t=>this.renderNode(t)))),e(r,o,n)}return null},this.nodes=void 0,this.selectable=!1,this.userSelect=!1,this.space=void 0}render(){const{nodes:t,renderNode:s}=this;return Array.isArray(t)?e(r,null,t.map((t=>s(t)))):e(r,{innerHTML:t})}};s.style="taro-rich-text-core{user-select:none}taro-rich-text-core[selectable=true],taro-rich-text-core[user-select=true]{user-select:text;display:block}taro-rich-text-core[space]{white-space:pre-wrap}taro-rich-text-core[space=ensp]{word-spacing:.5em}taro-rich-text-core[space=nbsp]{word-spacing:1em}";export{s as taro_rich_text_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as o,h as r,H as a,g as e}from"./p-d0cabaaa.js";import{c as i}from"./p-160d710a.js";const n=class{constructor(r){t(this,r),this.onSubmit=o(this,"tarobuttonsubmit",7),this.onReset=o(this,"tarobuttonreset",7),this.disabled=void 0,this.hoverClass="button-hover",this.type="",this.hoverStartTime=20,this.hoverStayTime=70,this.size=void 0,this.plain=void 0,this.loading=!1,this.formType=null,this.hover=!1,this.touch=!1}onClick(t){this.disabled&&t.stopPropagation()}onTouchStart(){this.disabled||(this.touch=!0,this.hoverClass&&!this.disabled&&setTimeout((()=>{this.touch&&(this.hover=!0)}),this.hoverStartTime))}onTouchEnd(){this.disabled||(this.touch=!1,this.hoverClass&&!this.disabled&&setTimeout((()=>{this.touch||(this.hover=!1)}),this.hoverStayTime),"submit"===this.formType?this.onSubmit.emit():"reset"===this.formType&&this.onReset.emit())}render(){const{disabled:t,hoverClass:o,type:e,size:n,plain:l,loading:d,hover:c}=this,b=i({[`${o}`]:c&&!t});return r(a,{class:b,type:e,plain:l,loading:d,size:n,disabled:t},d&&r("i",{class:"weui-loading"}),r("slot",null))}get el(){return e(this)}};n.style=".weui-loading{vertical-align:middle;background:url(\"data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E\") 0 0/100% no-repeat;width:20px;height:20px;animation:1s steps(12,end) infinite weuiLoading;display:inline-block}@-webkit-keyframes weuiLoading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes weuiLoading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.weui-btn_loading .weui-loading{margin:-.2em .34em 0 0}.weui-btn_loading.weui-btn_primary,.weui-btn_loading.weui-btn_warn{color:rgba(255,255,255,.6)}.weui-btn_loading.weui-btn_primary{background-color:#179b16}.weui-btn_loading.weui-btn_warn{background-color:#ce3c39}taro-button-core{box-sizing:border-box;appearance:none;text-align:center;color:#000;-webkit-tap-highlight-color:transparent;background-color:#f8f8f8;border-width:0;border-radius:5px;outline:0;width:100%;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;font-size:18px;line-height:2.55556;text-decoration:none;display:block;position:relative;overflow:hidden}taro-button-core:focus{outline:0}taro-button-core:not([disabled]):active{color:rgba(0,0,0,.6);background-color:#dedede}taro-button-core:after{box-sizing:border-box;content:\" \";transform-origin:0 0;border:1px solid rgba(0,0,0,.2);border-radius:10px;width:200%;height:200%;position:absolute;top:0;left:0;transform:scale(.5)}taro-button-core+taro-button-core{margin-top:15px}taro-button-core[type=default]{color:#000;background-color:#f8f8f8}taro-button-core[type=default]:not([disabled]):visited{color:#000}taro-button-core[type=default]:not([disabled]):active{color:rgba(0,0,0,.6);background-color:#dedede}taro-button-core[size=mini]{width:auto;padding:0 1.32em;font-size:13px;line-height:2.3;display:inline-block}taro-button-core[plain],taro-button-core[plain][type=default],taro-button-core[plain][type=primary]{background-color:transparent;border-width:1px}taro-button-core[disabled]{color:rgba(255,255,255,.6)}taro-button-core[disabled][type=default]{color:rgba(0,0,0,.3);background-color:#f7f7f7}taro-button-core[disabled][type=primary]{background-color:#9ed99d}taro-button-core[disabled][type=warn]{background-color:#ec8b89}taro-button-core[loading] .weui-loading{margin:-.2em .34em 0 0}taro-button-core[loading][type=primary],taro-button-core[loading][type=warn]{color:rgba(255,255,255,.6)}taro-button-core[loading][type=primary]{background-color:#179b16}taro-button-core[loading][type=warn]{background-color:#ce3c39}taro-button-core[plain][type=primary]{color:#1aad19;border:1px solid #1aad19}taro-button-core[plain][type=primary]:not([disabled]):active{color:rgba(26,173,25,.6);background-color:transparent;border-color:rgba(26,173,25,.6)}taro-button-core[plain][type=primary]:after{border-width:0}taro-button-core[plain][type=warn]{color:#e64340;border:1px solid #e64340}taro-button-core[plain][type=warn]:not([disabled]):active{color:rgba(230,67,64,.6);background-color:transparent;border-color:rgba(230,67,64,.6)}taro-button-core[plain][type=warn]:after{border-width:0}taro-button-core[plain],taro-button-core[plain][type=default]{color:#353535;border:1px solid #353535}taro-button-core[plain]:not([disabled]):active,taro-button-core[plain][type=default]:not([disabled]):active{color:rgba(53,53,53,.6);background-color:transparent;border-color:rgba(53,53,53,.6)}taro-button-core[plain]:after,taro-button-core[plain][type=default]:after{border-width:0}taro-button-core[type=primary]{color:#fff;background-color:#1aad19}taro-button-core[type=primary]:not([disabled]):visited{color:#fff}taro-button-core[type=primary]:not([disabled]):active{color:rgba(255,255,255,.6);background-color:#179b16}taro-button-core[type=warn]{color:#fff;background-color:#e64340}taro-button-core[type=warn]:not([disabled]):visited{color:#fff}taro-button-core[type=warn]:not([disabled]):active{color:rgba(255,255,255,.6);background-color:#ce3c39}taro-button-core[plain][disabled],taro-button-core[plain][disabled][type=primary]{color:rgba(0,0,0,.3);background-color:#f7f7f7;border:1px solid rgba(0,0,0,.2)}";export{n as taro_button_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i,g as h}from"./p-d0cabaaa.js";function e(t){return null!=t?t:""}const a=class{constructor(i){t(this,i),this.onInput=s(this,"input",7),this.onFocus=s(this,"focus",7),this.onBlur=s(this,"blur",7),this.onConfirm=s(this,"confirm",7),this.onChange=s(this,"change",7),this.onLineChange=s(this,"linechange",7),this.onKeyDown=s(this,"keydown",7),this.handleInput=t=>{t.stopPropagation(),this.handleLineChange();const s=t.target.value||"";this.value=s,this.onInput.emit({value:s,cursor:s.length})},this.handleFocus=t=>{t.stopPropagation(),this.onFocus.emit({value:t.target.value})},this.handleBlur=t=>{t.stopPropagation(),this.onBlur.emit({value:t.target.value})},this.handleChange=t=>{t.stopPropagation(),this.onChange.emit({value:t.target.value})},this.handleLineChange=()=>{const t=this.getNumberOfLines();t!==this.line&&(this.line=t,this.onLineChange.emit({height:this.textareaRef.clientHeight,lineCount:this.line}))},this.handleKeyDown=t=>{t.stopPropagation();const{value:s}=t.target,i=t.keyCode||t.code;this.onKeyDown.emit({value:s,cursor:s.length,keyCode:i}),13===i&&this.onConfirm.emit({value:s})},this.calculateContentHeight=(t,s)=>{let i=t.style.height,h=t.offsetHeight,e=t.scrollHeight,a=t.style.overflow,o=t.style.minHeight||null;if(!(h>=e))return e;if(t.style.minHeight=0,t.style.height=h+s+"px",t.style.overflow="hidden",e<t.scrollHeight){for(;t.offsetHeight>=t.scrollHeight;)t.style.height=(h-=s)+"px";for(;t.offsetHeight<t.scrollHeight;)t.style.height=h+++"px";return t.style.height=i,t.style.overflow=a,t.style.minHeight=o,h}},this.getNumberOfLines=()=>{const t=this.textareaRef,s=window.getComputedStyle?window.getComputedStyle(t):t.style,i=parseInt(s.lineHeight,10),h=this.calculateContentHeight(t,i);return Math.floor(h/i)},this.value="",this.placeholder=void 0,this.disabled=!1,this.maxlength=140,this.autoFocus=!1,this.autoHeight=!1,this.name=void 0,this.nativeProps={},this.line=1}watchAutoFocus(t,s){var i;!s&&t&&(null===(i=this.textareaRef)||void 0===i||i.focus())}watchValue(t){const s=e(t);this.textareaRef.value!==s&&(this.textareaRef.value=s)}async focus(){this.textareaRef.focus()}render(){const{value:t,placeholder:s,disabled:h,maxlength:a,autoFocus:o,autoHeight:n,name:r,nativeProps:u,handleInput:c,handleFocus:l,handleBlur:d,handleChange:p}=this,g={};return n&&(g.rows=this.line),i("textarea",Object.assign({ref:t=>{t&&(this.textareaRef=t,o&&t&&t.focus())},class:"taro-textarea "+(n?"auto-height":""),value:e(t),placeholder:s,name:r,disabled:h,maxlength:a,autofocus:o,onInput:c,onFocus:l,onBlur:d,onChange:p,onKeyDown:this.handleKeyDown},u,g))}get el(){return h(this)}static get watchers(){return{autoFocus:["watchAutoFocus"],value:["watchValue"]}}};a.style="taro-textarea-core{width:300px;display:block}taro-textarea-core .auto-height{height:auto}.taro-textarea{height:inherit;appearance:none;cursor:auto;border:0;width:100%;line-height:1.5;display:block;position:relative}.taro-textarea:focus{outline:none}";export{a as taro_textarea_core}
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,H as r,g as e}from"./p-d0cabaaa.js";import h from"@tarojs/taro";import{c as a}from"./p-160d710a.js";const o="undefined"!=typeof navigator&&/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),n={activate:"release",deactivate:"pull",release:"loading",finish:"finish"};let l=!1;try{const t=Object.defineProperty({},"passive",{get(){l=!0}});window.addEventListener("cancel",(()=>({})),t)}catch(t){}const c=!!l&&{passive:!1},d=class{constructor(s){t(this,s),this.onRefresh=i(this,"refresh",7),this._ScreenY=0,this._startScreenY=0,this._lastScreenY=0,this._isMounted=!1,this.triggerPullDownRefresh=t=>{!this.dragOnEdge&&this._isMounted&&(t?(this._lastScreenY=this.distanceToRefresh+1,this.currSt="release",this.setContentStyle(this._lastScreenY)):(this.currSt="finish",this.reset()))},this.init=()=>{const t=this.scrollContainer,i=this.el.querySelector(".rmc-pull-to-refresh-content");this.el.appendChild=null==i?void 0:i.appendChild.bind(i),this.el.insertBefore=null==i?void 0:i.insertBefore.bind(i),this.el.replaceChild=null==i?void 0:i.replaceChild.bind(i),this.el.removeChild=null==i?void 0:i.removeChild.bind(i),this._to={touchstart:this.onTouchStart.bind(this,t),touchmove:this.onTouchMove.bind(this,t),touchend:this.onTouchEnd.bind(this,t),touchcancel:this.onTouchEnd.bind(this,t)},Object.keys(this._to).forEach((i=>{t.addEventListener(i,this._to[i],c)}))},this.destroy=()=>{if(!this._to)return;const t=this.scrollContainer;Object.keys(this._to).forEach((i=>{t.removeEventListener(i,this._to[i])}))},this.onTouchStart=(t,i)=>{this._ScreenY=this._startScreenY=i.touches[0].screenY,this._lastScreenY=this._lastScreenY||0},this.isEdge=t=>{const i=this.scrollContainer;return i&&i===document.body?(document.scrollingElement?document.scrollingElement:document.body).scrollTop<=0:t.scrollTop<=0},this.damp=t=>Math.abs(this._lastScreenY)>this.damping?0:t*(.6*(1-Math.abs(this._ScreenY-this._startScreenY)/window.screen.height)),this.onTouchMove=(t,i)=>{const s=i.touches[0].screenY;if(!(this._startScreenY>s)&&this.isEdge(t)){this.dragOnEdge||(this._ScreenY=this._startScreenY=i.touches[0].screenY,this.dragOnEdge=!0),i.cancelable&&i.preventDefault();const t=Math.round(s-this._ScreenY);this._ScreenY=s,this._lastScreenY+=this.damp(t),this.setContentStyle(this._lastScreenY),Math.abs(this._lastScreenY)<this.distanceToRefresh?"deactivate"!==this.currSt&&(this.currSt="deactivate"):"deactivate"===this.currSt&&(this.currSt="activate"),o&&i.changedTouches[0].clientY<0&&this.onTouchEnd()}},this.onTouchEnd=()=>{this.dragOnEdge&&(this.dragOnEdge=!1),"activate"===this.currSt?(this.currSt="release",this.onRefresh.emit(this),this._lastScreenY=this.distanceToRefresh+1,this.setContentStyle(this._lastScreenY)):"release"===this.currSt?(this._lastScreenY=this.distanceToRefresh+1,this.setContentStyle(this._lastScreenY)):this.reset()},this.reset=()=>{this._lastScreenY=0,this.setContentStyle(0)},this.setContentStyle=t=>{var i,s;this.contentRef&&((i=this.contentRef.style).transform=s=t?`translate3d(0px,${t}px,0)`:"",i.webkitTransform=s,i.MozTransform=s)},this.prefixCls="rmc-pull-to-refresh",this.distanceToRefresh=50,this.damping=100,this.indicator=n,this.currSt="deactivate",this.dragOnEdge=!1}get scrollContainer(){return this.el.parentElement||this.el.closest(".taro_page_stationed")||document.querySelector(".taro_page_stationed")||document.querySelector(".taro_page")||document.querySelector(".taro_router")||document.querySelector(".taro-tabbar__panel")||document.body}statusChange(){var t,i,s,r;const e=this.scrollContainer;switch(this.currSt){case"release":null===(i=null===(t=null==e?void 0:e.__page)||void 0===t?void 0:t.onPullDownRefresh)||void 0===i||i.call(t);break;case"deactivate":null===(r=null===(s=null==e?void 0:e.__page)||void 0===s?void 0:s.onPullIntercept)||void 0===r||r.call(s)}}disconnectedCallback(){this.destroy()}componentDidLoad(){this.init(),this._isMounted=!0,h.eventCenter.on("__taroStartPullDownRefresh",(({successHandler:t,errorHandler:i})=>{try{this.triggerPullDownRefresh(!0),t({errMsg:"startPullDownRefresh: ok"})}catch(t){i({errMsg:"startPullDownRefresh: fail"})}})),h.eventCenter.on("__taroStopPullDownRefresh",(({successHandler:t,errorHandler:i})=>{setTimeout((()=>{try{this.triggerPullDownRefresh(!1),t({errMsg:"stopPullDownRefresh: ok"})}catch(t){i({errMsg:"stopPullDownRefresh: fail"})}}),0)}))}render(){const t=t=>{const{currSt:i,dragOnEdge:r,prefixCls:e}=this,h=a(t,!r&&`${e}-transition`);return s("div",{class:`${e}-content-wrapper`},s("div",{class:h,ref:t=>{this.contentRef=t}},("activate"===i||"release"===i)&&s("div",{class:`${e}-indicator`},s("div",null),s("div",null),s("div",null)),s("slot",null)))};return this.scrollContainer?t(`${this.prefixCls}-content ${this.prefixCls}-down`):s(r,{class:a(this.prefixCls,`${this.prefixCls}-down`)},t(`${this.prefixCls}-content`))}get el(){return e(this)}static get watchers(){return{currSt:["statusChange"]}}};d.style=".rmc-pull-to-refresh-content{-webkit-transform-origin:0 0;transform-origin:0 0}.rmc-pull-to-refresh-content-wrapper{min-height:100%}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s, -webkit-transform .3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:.2}to{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:.2}to{opacity:1}}.rmc-pull-to-refresh-indicator{text-align:center;height:30px;line-height:10px}.rmc-pull-to-refresh-indicator>div{background-color:gray;border-radius:100%;width:6px;height:6px;margin:3px;-webkit-animation:.5s linear infinite both rmc-pull-to-refresh-indicator;animation:.5s linear infinite both rmc-pull-to-refresh-indicator;display:inline-block}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-.1s!important;animation-delay:-.1s!important}.rmc-pull-to-refresh-indicator>div:first-child{-webkit-animation-delay:-.2s!important;animation-delay:-.2s!important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-.3s!important;animation-delay:-.3s!important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";export{d as taro_pull_to_refresh_core}
1
+ import{r as t,c as i,h as s,H as e,g as r}from"./p-d0cabaaa.js";import h from"@tarojs/taro";import{c as a}from"./p-160d710a.js";const o="undefined"!=typeof navigator&&/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),n={activate:"release",deactivate:"pull",release:"loading",finish:"finish"};let l=!1;try{const t=Object.defineProperty({},"passive",{get(){l=!0}});window.addEventListener("cancel",(()=>({})),t)}catch(t){}const c=!!l&&{passive:!1},d=class{constructor(s){t(this,s),this.onRefresh=i(this,"refresh",7),this._ScreenY=0,this._startScreenY=0,this._lastScreenY=0,this._isMounted=!1,this.triggerPullDownRefresh=t=>{!this.dragOnEdge&&this._isMounted&&(t?(this._lastScreenY=this.distanceToRefresh+1,this.currSt="release",this.setContentStyle(this._lastScreenY)):(this.currSt="finish",this.reset()))},this.init=()=>{const t=this.scrollContainer,i=this.el.querySelector(".rmc-pull-to-refresh-content");this.el.appendChild=null==i?void 0:i.appendChild.bind(i),this.el.insertBefore=null==i?void 0:i.insertBefore.bind(i),this.el.replaceChild=null==i?void 0:i.replaceChild.bind(i),this.el.removeChild=null==i?void 0:i.removeChild.bind(i),this._to={touchstart:this.onTouchStart.bind(this,t),touchmove:this.onTouchMove.bind(this,t),touchend:this.onTouchEnd.bind(this,t),touchcancel:this.onTouchEnd.bind(this,t)},Object.keys(this._to).forEach((i=>{t.addEventListener(i,this._to[i],c)}))},this.destroy=()=>{if(!this._to)return;const t=this.scrollContainer;Object.keys(this._to).forEach((i=>{t.removeEventListener(i,this._to[i])}))},this.onTouchStart=(t,i)=>{this._ScreenY=this._startScreenY=i.touches[0].screenY,this._lastScreenY=this._lastScreenY||0},this.isEdge=t=>{const i=this.scrollContainer;return i&&i===document.body?(document.scrollingElement?document.scrollingElement:document.body).scrollTop<=0:t.scrollTop<=0},this.damp=t=>Math.abs(this._lastScreenY)>this.damping?0:t*(.6*(1-Math.abs(this._ScreenY-this._startScreenY)/window.screen.height)),this.onTouchMove=(t,i)=>{const s=i.touches[0].screenY;if(!(this._startScreenY>s)&&this.isEdge(t)){this.dragOnEdge||(this._ScreenY=this._startScreenY=i.touches[0].screenY,this.dragOnEdge=!0),i.cancelable&&i.preventDefault();const t=Math.round(s-this._ScreenY);this._ScreenY=s,this._lastScreenY+=this.damp(t),this.setContentStyle(this._lastScreenY),Math.abs(this._lastScreenY)<this.distanceToRefresh?"deactivate"!==this.currSt&&(this.currSt="deactivate"):"deactivate"===this.currSt&&(this.currSt="activate"),o&&i.changedTouches[0].clientY<0&&this.onTouchEnd()}},this.onTouchEnd=()=>{this.dragOnEdge&&(this.dragOnEdge=!1),"activate"===this.currSt?(this.currSt="release",this.onRefresh.emit(this),this._lastScreenY=this.distanceToRefresh+1,this.setContentStyle(this._lastScreenY)):"release"===this.currSt?(this._lastScreenY=this.distanceToRefresh+1,this.setContentStyle(this._lastScreenY)):this.reset()},this.reset=()=>{this._lastScreenY=0,this.setContentStyle(0)},this.setContentStyle=t=>{var i,s;this.contentRef&&((i=this.contentRef.style).transform=s=t?`translate3d(0px,${t}px,0)`:"",i.webkitTransform=s,i.MozTransform=s)},this.prefixCls="rmc-pull-to-refresh",this.distanceToRefresh=50,this.damping=100,this.indicator=n,this.currSt="deactivate",this.dragOnEdge=!1}get scrollContainer(){return this.el.parentElement||this.el.closest(".taro_page_stationed")||document.querySelector(".taro_page_stationed")||document.querySelector(".taro_page")||document.querySelector(".taro_router")||document.querySelector(".taro-tabbar__panel")||document.body}statusChange(){var t,i,s,e;const r=this.scrollContainer;switch(this.currSt){case"release":null===(i=null===(t=null==r?void 0:r.__page)||void 0===t?void 0:t.onPullDownRefresh)||void 0===i||i.call(t);break;case"deactivate":null===(e=null===(s=null==r?void 0:r.__page)||void 0===s?void 0:s.onPullIntercept)||void 0===e||e.call(s)}}disconnectedCallback(){this.destroy()}componentDidLoad(){this.init(),this._isMounted=!0,h.eventCenter.on("__taroStartPullDownRefresh",(({successHandler:t,errorHandler:i})=>{try{this.triggerPullDownRefresh(!0),t({errMsg:"startPullDownRefresh: ok"})}catch(t){i({errMsg:"startPullDownRefresh: fail"})}})),h.eventCenter.on("__taroStopPullDownRefresh",(({successHandler:t,errorHandler:i})=>{setTimeout((()=>{try{this.triggerPullDownRefresh(!1),t({errMsg:"stopPullDownRefresh: ok"})}catch(t){i({errMsg:"stopPullDownRefresh: fail"})}}),0)}))}render(){const t=t=>{const{currSt:i,dragOnEdge:e,prefixCls:r}=this,h=a(t,!e&&`${r}-transition`);return s("div",{class:`${r}-content-wrapper`},s("div",{class:h,ref:t=>{this.contentRef=t}},("activate"===i||"release"===i)&&s("div",{class:`${r}-indicator`},s("div",null),s("div",null),s("div",null)),s("slot",null)))};return this.scrollContainer?t(`${this.prefixCls}-content ${this.prefixCls}-down`):s(e,{class:a(this.prefixCls,`${this.prefixCls}-down`)},t(`${this.prefixCls}-content`))}get el(){return r(this)}static get watchers(){return{currSt:["statusChange"]}}};d.style=".rmc-pull-to-refresh-content{transform-origin:0 0}.rmc-pull-to-refresh-content-wrapper{min-height:100%}.rmc-pull-to-refresh-transition{transition:transform .3s}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:.2}to{opacity:1}}.rmc-pull-to-refresh-indicator{text-align:center;height:30px;line-height:10px}.rmc-pull-to-refresh-indicator>div{background-color:gray;border-radius:100%;width:6px;height:6px;margin:3px;animation:.5s linear infinite both rmc-pull-to-refresh-indicator;display:inline-block}.rmc-pull-to-refresh-indicator>div:nth-child(0){animation-delay:-.1s!important}.rmc-pull-to-refresh-indicator>div:first-child{animation-delay:-.2s!important}.rmc-pull-to-refresh-indicator>div:nth-child(2){animation-delay:-.3s!important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";export{d as taro_pull_to_refresh_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as e,g as o}from"./p-d0cabaaa.js";const c=class{constructor(e){t(this,e),this.onChange=i(this,"change",7),this.switchChange=t=>{t.stopPropagation();const i=t.target.checked;this.checked=i,this.onChange.emit({value:i})},this.type="switch",this.checked=!1,this.color="#04BE02",this.name=void 0,this.disabled=!1,this.nativeProps={},this.isWillLoadCalled=!1}function(t){this.isWillLoadCalled&&this.inputRef.checked!==t&&(this.inputRef.checked=t)}componentWillLoad(){this.isWillLoadCalled=!0}componentDidLoad(){Object.defineProperty(this.el,"value",{get:()=>this.checked,configurable:!0})}render(){const{type:t,color:i,checked:o,name:c,disabled:s,nativeProps:r}=this;return e("input",Object.assign({ref:t=>{this.inputRef=t},type:"checkbox",class:`weui-${t}`,style:o?{borderColor:i||"04BE02",backgroundColor:i||"04BE02"}:{},checked:o,name:c,disabled:s,onChange:this.switchChange},r))}get el(){return o(this)}static get watchers(){return{checked:["function"]}}};c.style='.weui-cell_switch{padding-top:6.5px;padding-bottom:6.5px}.weui-switch{appearance:none}.weui-switch,.weui-switch-cp__box{box-sizing:border-box;background-color:#dfdfdf;border:1px solid #dfdfdf;border-radius:16px;outline:0;width:52px;height:32px;transition:background-color .1s,border .1s;position:relative}.weui-switch:before,.weui-switch-cp__box:before{content:" ";background-color:#fdfdfd;border-radius:15px;width:50px;height:30px;transition:transform .35s cubic-bezier(.45,1,.4,1);position:absolute;top:0;left:0}.weui-switch:after,.weui-switch-cp__box:after{content:" ";background-color:#fff;border-radius:15px;width:30px;height:30px;transition:transform .35s cubic-bezier(.4,.4,.25,1.35);position:absolute;top:0;left:0;box-shadow:0 1px 3px rgba(0,0,0,.4)}.weui-switch:checked,.weui-switch-cp__input:checked~.weui-switch-cp__box{background-color:#04be02;border-color:#04be02}.weui-switch:checked:before,.weui-switch-cp__input:checked~.weui-switch-cp__box:before{transform:scale(0)}.weui-switch:checked:after,.weui-switch-cp__input:checked~.weui-switch-cp__box:after{transform:translate(20px)}.weui-switch-cp__input{position:absolute;left:-9999px}.weui-switch-cp__box{display:block}taro-switch-core{width:52px;height:32px;display:inline-block}taro-switch-core .weui-switch{width:100%;height:100%;display:block}';export{c as taro_switch_core}
@@ -0,0 +1 @@
1
+ import{r as e,c as i,h as r,H as l,g as o}from"./p-d0cabaaa.js";const t=class{constructor(r){e(this,r),this.onChange=i(this,"checkboxchange",7),this.handleChange=e=>{e.stopPropagation(),this.onChange.emit({value:this.value})},this.name=void 0,this.value="",this.color=void 0,this.id=void 0,this.checked=!1,this.disabled=!1,this.nativeProps={},this.isWillLoadCalled=!1}watchId(e){this.isWillLoadCalled&&e&&this.inputEl.setAttribute("id",e)}componentWillLoad(){this.isWillLoadCalled=!0}componentDidRender(){this.id&&this.el.removeAttribute("id")}render(){const{checked:e,name:i,color:o,value:t,disabled:c,nativeProps:a}=this;return r(l,{className:"weui-cells_checkbox"},r("input",Object.assign({ref:e=>{e&&(this.inputEl=e,this.id&&e.setAttribute("id",this.id))},type:"checkbox",value:t,name:i,class:"taro-checkbox_checked",style:{color:o},checked:e,disabled:c,onChange:this.handleChange},a)),r("slot",null))}get el(){return o(this)}static get watchers(){return{id:["watchId"]}}};t.style='page,body{--weui-cellMarginLR:16px;--weui-cellPaddingLR:16px}.weui-cells__group{border:0}.weui-cells__group:first-child{margin-top:0}.weui-cells__group_form{margin-top:24px}.weui-cells__group_form .weui-cells{margin-left:var(--weui-cellMarginLR);margin-right:var(--weui-cellMarginLR)}.weui-cells__group_form .weui-cells:before,.weui-cells__group_form .weui-cells:after{left:var(--weui-cellPaddingLR);right:var(--weui-cellPaddingLR)}.weui-cells__group_form .weui-cell{padding:16px var(--weui-cellPaddingLR)}.weui-cells__group_form .weui-cell:before{left:var(--weui-cellPaddingLR);right:var(--weui-cellPaddingLR)}.weui-cells__group_form .weui-cell:not(.weui-cell_vertical) .weui-cell__hd{padding-right:16px}.weui-cells__group_form .weui-cell:not(.weui-cell_vertical) .weui-cell__ft{padding-left:16px}.weui-cells__group_form .weui-cells__title{margin-top:24px;margin-bottom:8px;padding:0 32px}.weui-cells__group_form:first-child .weui-cells__title{margin-top:0}.weui-cells__group_form .weui-cells__tips{padding:0 calc(var(--weui-cellMarginLR) + var(--weui-cellPaddingLR));color:var(--weui-FG-2);margin-top:8px}.weui-cells__group_form .weui-cells__tips a{font-weight:700}.weui-cells__group_form .weui-cells__tips_warn{color:var(--weui-RED)}.weui-cells__group_form .weui-label{max-width:5em;margin-right:8px}.weui-cells__group_form .weui-cell_access:active:after,.weui-cells__group_form .weui-cell_active:active:after{border-radius:8px}.weui-cells__group_form .weui-cell_warn input{color:#e64340}.weui-cells__group_form .weui-icon-warn,.weui-cells__group_form .weui-cell_switch:active:after,.weui-cells__group_form .weui-cell_vcode:active:after,.weui-cells__group_form .weui-cell_readonly:active:after,.weui-cells__group_form .weui-cell_disabled:active:after{display:none}.weui-cells__group_form input,.weui-cells__group_form textarea,.weui-cells__group_form label[for]{-webkit-tap-highlight-color:transparent}.weui-cells__group_form .weui-cell_wrap{align-items:initial;padding-top:8px;padding-bottom:8px}.weui-cells__group_form .weui-cell_wrap .weui-cell__hd{padding-right:0}.weui-cells__group_form .weui-cell_wrap .weui-label{margin-top:8px}.weui-cells__group_form .weui-cell_wrap .weui-cell__bd{flex-wrap:wrap;align-items:center;display:flex}.weui-cells__group_form .weui-cell__control{margin:8px 0 8px 16px}.weui-cells__group_form .weui-cell__control_flex{flex:1;min-width:30vw}.weui-cells__group_form .weui-vcode-btn{color:#000;background-color:#f8f8f8;border-radius:6px;width:auto;height:auto;padding:0 12px;font-size:16px;line-height:2}.weui-cells__group_form .weui-vcode-btn:before{display:none}.weui-cells__group_form .weui-cell_vcode.weui-cell_wrap{padding-top:4px;padding-bottom:4px}.weui-cells__group_form .weui-cell_vcode.weui-cell_wrap .weui-label{margin-top:12px}.weui-cells__group_form .weui-cell_vcode.weui-cell_wrap .weui-input{min-height:1.88235em;font-size:17px}.weui-cells__group_form .weui-cells_checkbox .weui-check__label:before{left:calc(40px + var(--weui-cellPaddingLR))}.weui-cells__group_form .weui-cell_select{padding:0}.weui-cells__group_form .weui-cell_select-before .weui-cell__hd{padding-right:0}.weui-cells__group_form .weui-cell_switch{padding:12px 16px}.weui-cells__group_form-primary{margin-top:32px}.weui-cells__group_form-primary .weui-cells{background:var(--weui-BG-1);border-radius:8px;overflow:hidden}.weui-cells__group_form-primary .weui-cells:before,.weui-cells__group_form-primary .weui-cells:after{display:none}.weui-cells__group_form-primary .weui-cell_access:active:after,.weui-cells__group_form-primary .weui-cell_active:active:after{border-radius:0}.taro-checkbox{display:inline-block;position:relative}.taro-checkbox_checked{appearance:none;vertical-align:0;color:#1aad19;background-color:#fff;border:1px solid #d1d1d1;border-radius:3px;outline:0;width:23px;height:23px;min-height:0;font-size:23px;display:inline-block;position:relative;top:5px}.taro-checkbox_checked:checked:before{vertical-align:middle;text-decoration:inherit;text-align:center;text-transform:none;font-variant:normal;font-family:weui;font-style:normal;font-weight:400;font-size:inherit;color:inherit;content:"";speak:none;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%)scale(.73)}';var c,a=function(e,i,r,l,o){if("m"===l)throw new TypeError("Private method is not writable");if("a"===l&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof i?e!==i||!o:!i.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===l?o.call(e,r):o?o.value=r:i.set(e,r),r},u=function(e,i,r,l){if("a"===r&&!l)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof i?e!==i||!l:!i.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?l:"a"===r?l.call(e):l?l.value:i.get(e)};const _=class{constructor(r){e(this,r),this.onChange=i(this,"change",7),this.uniqueName=Date.now().toString(36),c.set(this,void 0),this.name=void 0}function(e){if(e.stopPropagation(),"TARO-CHECKBOX-CORE"!==e.target.tagName)return;const i=this.el.querySelectorAll("taro-checkbox-core");a(this,c,this.getValues(i),"f"),this.onChange.emit({value:u(this,c,"f")})}componentDidLoad(){this.el.querySelectorAll("taro-checkbox-core").forEach((e=>{e.setAttribute("name",this.name||this.uniqueName)})),Object.defineProperty(this.el,"value",{get:()=>{if(!u(this,c,"f")){const e=this.el.querySelectorAll("taro-checkbox-core");a(this,c,this.getValues(e),"f")}return u(this,c,"f")},configurable:!0})}getValues(e){return Array.from(e).filter((e=>{const i=e.querySelector("input");return null==i?void 0:i.checked})).map((e=>e.value))}render(){return r(l,null)}get el(){return o(this)}};c=new WeakMap;export{t as taro_checkbox_core,_ as taro_checkbox_group_core}
@@ -1 +1 @@
1
- import{p as e,b as o}from"./p-d0cabaaa.js";export{s as setNonce}from"./p-d0cabaaa.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((e=>o(JSON.parse('[["p-13773464",[[4,"taro-checkbox-core",{"name":[1],"value":[1032],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["p-77dee229",[[0,"taro-movable-area-core",{"scaleArea":[4,"scale-area"]}],[0,"taro-movable-view-core",{"x":[8],"y":[8],"direction":[1],"outOfBounds":[4,"out-of-bounds"],"inertia":[4],"friction":[2],"damping":[2],"disabled":[4],"scale":[4],"scaleMin":[2,"scale-min"],"scaleMax":[2,"scale-max"],"scaleValue":[2,"scale-value"],"animation":[4],"setParent":[64],"endScale":[64],"setScale":[64]}]]],["p-bc4dbbfb",[[0,"taro-picker-view-column-core",{"col":[1],"initialPosition":[1,"initial-position"],"paddingVertical":[2,"padding-vertical"],"isInit":[32]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]],[4,"taro-picker-view-core",{"indicatorStyle":[1,"indicator-style"],"indicatorClass":[1,"indicator-class"],"value":[16],"maskStyle":[1,"mask-style"],"maskClass":[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-2ad41ae2",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1540],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["p-bd2bb986",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"currentItemId":[1,"current-item-id"],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"zoom":[4],"effectsProps":[16],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32]}],[4,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["p-a51c3fc6",[[0,"taro-ad-core"]]],["p-13f9d171",[[0,"taro-ad-custom-core"]]],["p-3779a716",[[0,"taro-animation-video-core"]]],["p-b4e5684a",[[0,"taro-animation-view-core"]]],["p-9d2e99b5",[[0,"taro-ar-camera-core"]]],["p-70283efb",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["p-493e2c9a",[[0,"taro-aweme-data-core"]]],["p-b8b1e967",[[0,"taro-block-core"]]],["p-3dc40ce0",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[513,"form-type"],"hover":[32],"touch":[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-e30dbf52",[[0,"taro-camera-core"]]],["p-71167112",[[0,"taro-canvas-core",{"canvasId":[1,"id"],"height":[1537],"width":[1537],"nativeProps":[16]}]]],["p-92d5f74a",[[0,"taro-channel-live-core"]]],["p-7d115ac1",[[0,"taro-channel-video-core"]]],["p-5584c307",[[0,"taro-comment-detail-core"]]],["p-b8916511",[[0,"taro-comment-list-core"]]],["p-f922c742",[[0,"taro-contact-button-core"]]],["p-81f8a153",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["p-2338fbc5",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-1bb89572",[[0,"taro-custom-wrapper-core"]]],["p-0020c650",[[0,"taro-double-tap-gesture-handler-core"]]],["p-da00c309",[[0,"taro-draggable-sheet-core"]]],["p-fa01bbca",[[0,"taro-editor-core"]]],["p-a1e9e6e9",[[0,"taro-follow-swan-core"]]],["p-decf6ca4",[[0,"taro-force-press-gesture-handler-core"]]],["p-2b0158fc",[[4,"taro-form-core",null,[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-7ba8fbd4",[[0,"taro-functional-page-navigator-core"]]],["p-0711615a",[[0,"taro-grid-builder-core"]]],["p-31f20299",[[0,"taro-grid-view-core"]]],["p-b29407ff",[[0,"taro-horizontal-drag-gesture-handler-core"]]],["p-7c78d193",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["p-eb7aa8ad",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32],"didLoad":[32]}]]],["p-0d965cb0",[[0,"taro-inline-payment-panel-core"]]],["p-a34fb684",[[0,"taro-input-core",{"value":[1025],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"focus"],"confirmType":[1,"confirm-type"],"name":[1],"nativeProps":[16],"focus":[64]}]]],["p-725381f1",[[0,"taro-keyboard-accessory-core"]]],["p-e4b971a9",[[4,"taro-label-core",{"for":[1]}]]],["p-88bcad64",[[0,"taro-lifestyle-core"]]],["p-7d469e2e",[[0,"taro-like-core"]]],["p-f5cd77f9",[[0,"taro-list-builder-core"]]],["p-a8a443a5",[[0,"taro-list-view-core"]]],["p-c575464d",[[0,"taro-live-player-core"]]],["p-26792379",[[0,"taro-live-pusher-core"]]],["p-db885f6a",[[0,"taro-login-core"]]],["p-73ab191f",[[0,"taro-long-press-gesture-handler-core"]]],["p-b1e74461",[[0,"taro-lottie-core"]]],["p-b03b164f",[[0,"taro-map-core",{"latitude":[2],"longitude":[2],"scale":[2],"minScale":[2,"min-scale"],"maxScale":[2,"max-scale"],"markers":[16],"polyline":[16],"circles":[16],"polygons":[16],"subkey":[1],"layerStyle":[2,"layer-style"],"rotate":[2],"skew":[2],"showCompass":[4,"show-compass"],"showScale":[4,"show-scale"],"enableOverlooking":[4,"enable-overlooking"],"enableZoom":[4,"enable-zoom"],"enableScroll":[4,"enable-scroll"],"enableRotate":[4,"enable-rotate"],"enableSatellite":[4,"enable-satellite"],"enableTraffic":[4,"enable-traffic"],"enableBuilding":[4,"enable-building"],"enableAutoMaxOverlooking":[4,"enable-auto-max-overlooking"],"enable3D":[4,"enable-3-d"],"width":[1],"height":[1]}]]],["p-a89cb7e0",[[0,"taro-match-media-core"]]],["p-d2023e97",[[0,"taro-native-slot-core"]]],["p-932b1e72",[[0,"taro-navigation-bar-core"]]],["p-c0c4d551",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["p-3d163624",[[0,"taro-nested-scroll-body-core"]]],["p-88ded2fb",[[0,"taro-nested-scroll-header-core"]]],["p-62fcda43",[[0,"taro-official-account-core"]]],["p-b923d242",[[0,"taro-open-container-core"]]],["p-e6a85481",[[0,"taro-open-data-core"]]],["p-101c15ac",[[0,"taro-page-container-core"]]],["p-ea867ded",[[0,"taro-page-meta-core"]]],["p-adf40a3f",[[0,"taro-pan-gesture-handler-core"]]],["p-f6d29525",[[0,"taro-progress-core",{"percent":[2],"showInfo":[4,"show-info"],"borderRadius":[8,"border-radius"],"fontSize":[8,"font-size"],"strokeWidth":[8,"stroke-width"],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"active":[4]}]]],["p-310f27ae",[[4,"taro-pull-to-refresh-core",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["p-1331d6e6",[[0,"taro-rich-text-core",{"nodes":[1],"selectable":[1028],"userSelect":[1028,"user-select"],"space":[1]}]]],["p-b139e0bb",[[0,"taro-root-portal-core"]]],["p-22140f38",[[0,"taro-rtc-room-core"]]],["p-96d58e6b",[[0,"taro-rtc-room-item-core"]]],["p-ded33122",[[0,"taro-scale-gesture-handler-core"]]],["p-de8a1363",[[0,"taro-script-core"]]],["p-f26ddbc9",[[4,"taro-scroll-view-core",{"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"upperThreshold":[8,"upper-threshold"],"lowerThreshold":[8,"lower-threshold"],"mpScrollTop":[520,"scroll-top"],"mpScrollLeft":[520,"scroll-left"],"mpScrollIntoView":[513,"scroll-into-view"],"mpScrollIntoViewAlignment":[1,"scroll-into-view-alignment"],"animated":[4,"scroll-with-animation"],"mpScrollToMethod":[64],"mpScrollIntoViewMethod":[64]},[[1,"scroll","handleScroll"],[1,"touchmove","handleTouchMove"]]]]],["p-a1368421",[[0,"taro-share-element-core"]]],["p-6f43d1a1",[[0,"taro-slider-core",{"min":[2],"max":[2],"step":[2],"disabled":[4],"value":[1538],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"blockSize":[2,"block-size"],"blockColor":[1,"block-color"],"showValue":[4,"show-value"],"name":[1],"totalWidth":[32],"touching":[32],"ogX":[32],"touchId":[32],"percent":[32],"ogPercent":[32],"isWillLoadCalled":[32]}]]],["p-9b1be768",[[0,"taro-slot-core"]]],["p-6a54dc69",[[0,"taro-snapshot-core"]]],["p-646b6bb1",[[0,"taro-span-core"]]],["p-da3ae8b9",[[0,"taro-sticky-header-core"]]],["p-010113d5",[[0,"taro-sticky-section-core"]]],["p-48887552",[[0,"taro-switch-core",{"type":[1],"checked":[1028],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}]]],["p-6c314305",[[0,"taro-tab-item-core"]]],["p-177ab579",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["p-ea2ea074",[[0,"taro-tabs-core"]]],["p-bdbe75c4",[[0,"taro-tap-gesture-handler-core"]]],["p-b197f269",[[4,"taro-text-core",{"selectable":[1028],"userSelect":[1028,"user-select"],"space":[1025],"numberOfLines":[2,"number-of-lines"]}]]],["p-9cf98daf",[[0,"taro-textarea-core",{"value":[1025],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"focus"],"autoHeight":[4,"auto-height"],"name":[1],"nativeProps":[16],"line":[32],"focus":[64]}]]],["p-e008dd54",[[0,"taro-vertical-drag-gesture-handler-core"]]],["p-757c9533",[[4,"taro-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-60c76b97",[[0,"taro-voip-room-core"]]],["p-a33c6ab4",[[0,"taro-web-view-core",{"src":[1]}]]],["p-39dd80dd",[[4,"taro-picker-core",{"mode":[1],"disabled":[4],"range":[16],"rangeKey":[1,"range-key"],"value":[1032],"start":[1],"end":[1],"fields":[1],"name":[1],"textProps":[16],"pickerValue":[32],"height":[32],"hidden":[32],"fadeOut":[32],"isWillLoadCalled":[32]}],[0,"taro-picker-group",{"mode":[1],"range":[16],"rangeKey":[1,"range-key"],"height":[2],"columnId":[1,"column-id"],"updateHeight":[16],"updateDay":[16],"startY":[32],"preY":[32],"hadMove":[32],"touchEnd":[32],"isMove":[32],"handleMoveStart":[64],"handleMoving":[64],"handleMoveEnd":[64]},[[1,"mousedown","onMouseDown"],[3,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[3,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-bd7d7771",[[0,"taro-video-core",{"src":[1],"duration":[2],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"initialTime":[2,"initial-time"],"poster":[1],"objectFit":[1,"object-fit"],"showProgress":[4,"show-progress"],"showFullscreenBtn":[4,"show-fullscreen-btn"],"showPlayBtn":[4,"show-play-btn"],"showCenterPlayBtn":[4,"show-center-play-btn"],"showMuteBtn":[4,"show-mute-btn"],"danmuList":[16],"danmuBtn":[4,"danmu-btn"],"enableDanmu":[4,"enable-danmu"],"enablePlayGesture":[4,"enable-play-gesture"],"enableProgressGesture":[4,"enable-progress-gesture"],"vslideGesture":[4,"vslide-gesture"],"vslideGestureInFullscreen":[4,"vslide-gesture-in-fullscreen"],"nativeProps":[16],"_duration":[32],"_enableDanmu":[32],"isPlaying":[32],"isFirst":[32],"isFullScreen":[32],"fullScreenTimestamp":[32],"isMute":[32],"getHlsObject":[64],"play":[64],"pause":[64],"stop":[64],"seek":[64],"requestFullScreen":[64],"exitFullScreen":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{"controls":[4],"currentTime":[2,"current-time"],"duration":[2],"isPlaying":[4,"is-playing"],"pauseFunc":[16],"playFunc":[16],"seekFunc":[16],"showPlayBtn":[4,"show-play-btn"],"showProgress":[4,"show-progress"],"setProgressBall":[64],"toggleVisibility":[64],"getIsDraggingProgressBall":[64],"setCurrentTime":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{"enable":[4],"danmuList":[32],"sendDanmu":[64],"tick":[64]}]]]]'),e)));
1
+ import{p as e,b as o}from"./p-d0cabaaa.js";export{s as setNonce}from"./p-d0cabaaa.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((e=>o(JSON.parse('[["p-f537332c",[[4,"taro-checkbox-core",{"name":[1],"value":[1032],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["p-77dee229",[[0,"taro-movable-area-core",{"scaleArea":[4,"scale-area"]}],[0,"taro-movable-view-core",{"x":[8],"y":[8],"direction":[1],"outOfBounds":[4,"out-of-bounds"],"inertia":[4],"friction":[2],"damping":[2],"disabled":[4],"scale":[4],"scaleMin":[2,"scale-min"],"scaleMax":[2,"scale-max"],"scaleValue":[2,"scale-value"],"animation":[4],"setParent":[64],"endScale":[64],"setScale":[64]}]]],["p-3d03e025",[[0,"taro-picker-view-column-core",{"col":[1],"initialPosition":[1,"initial-position"],"paddingVertical":[2,"padding-vertical"],"isInit":[32]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]],[4,"taro-picker-view-core",{"indicatorStyle":[1,"indicator-style"],"indicatorClass":[1,"indicator-class"],"value":[16],"maskStyle":[1,"mask-style"],"maskClass":[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-2ad41ae2",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1540],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["p-b04264e3",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"currentItemId":[1,"current-item-id"],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"zoom":[4],"effectsProps":[16],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32]}],[4,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["p-a51c3fc6",[[0,"taro-ad-core"]]],["p-13f9d171",[[0,"taro-ad-custom-core"]]],["p-3779a716",[[0,"taro-animation-video-core"]]],["p-b4e5684a",[[0,"taro-animation-view-core"]]],["p-9d2e99b5",[[0,"taro-ar-camera-core"]]],["p-70283efb",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["p-493e2c9a",[[0,"taro-aweme-data-core"]]],["p-b8b1e967",[[0,"taro-block-core"]]],["p-c5da6b7d",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[513,"form-type"],"hover":[32],"touch":[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-e30dbf52",[[0,"taro-camera-core"]]],["p-71167112",[[0,"taro-canvas-core",{"canvasId":[1,"id"],"height":[1537],"width":[1537],"nativeProps":[16]}]]],["p-92d5f74a",[[0,"taro-channel-live-core"]]],["p-7d115ac1",[[0,"taro-channel-video-core"]]],["p-5584c307",[[0,"taro-comment-detail-core"]]],["p-b8916511",[[0,"taro-comment-list-core"]]],["p-f922c742",[[0,"taro-contact-button-core"]]],["p-81f8a153",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["p-2338fbc5",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-1bb89572",[[0,"taro-custom-wrapper-core"]]],["p-0020c650",[[0,"taro-double-tap-gesture-handler-core"]]],["p-da00c309",[[0,"taro-draggable-sheet-core"]]],["p-fa01bbca",[[0,"taro-editor-core"]]],["p-a1e9e6e9",[[0,"taro-follow-swan-core"]]],["p-decf6ca4",[[0,"taro-force-press-gesture-handler-core"]]],["p-2b0158fc",[[4,"taro-form-core",null,[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-7ba8fbd4",[[0,"taro-functional-page-navigator-core"]]],["p-0711615a",[[0,"taro-grid-builder-core"]]],["p-31f20299",[[0,"taro-grid-view-core"]]],["p-b29407ff",[[0,"taro-horizontal-drag-gesture-handler-core"]]],["p-7c78d193",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["p-9fb68380",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32],"didLoad":[32]}]]],["p-0d965cb0",[[0,"taro-inline-payment-panel-core"]]],["p-a34fb684",[[0,"taro-input-core",{"value":[1025],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"focus"],"confirmType":[1,"confirm-type"],"name":[1],"nativeProps":[16],"focus":[64]}]]],["p-725381f1",[[0,"taro-keyboard-accessory-core"]]],["p-e4b971a9",[[4,"taro-label-core",{"for":[1]}]]],["p-88bcad64",[[0,"taro-lifestyle-core"]]],["p-7d469e2e",[[0,"taro-like-core"]]],["p-f5cd77f9",[[0,"taro-list-builder-core"]]],["p-a8a443a5",[[0,"taro-list-view-core"]]],["p-c575464d",[[0,"taro-live-player-core"]]],["p-26792379",[[0,"taro-live-pusher-core"]]],["p-db885f6a",[[0,"taro-login-core"]]],["p-73ab191f",[[0,"taro-long-press-gesture-handler-core"]]],["p-b1e74461",[[0,"taro-lottie-core"]]],["p-b03b164f",[[0,"taro-map-core",{"latitude":[2],"longitude":[2],"scale":[2],"minScale":[2,"min-scale"],"maxScale":[2,"max-scale"],"markers":[16],"polyline":[16],"circles":[16],"polygons":[16],"subkey":[1],"layerStyle":[2,"layer-style"],"rotate":[2],"skew":[2],"showCompass":[4,"show-compass"],"showScale":[4,"show-scale"],"enableOverlooking":[4,"enable-overlooking"],"enableZoom":[4,"enable-zoom"],"enableScroll":[4,"enable-scroll"],"enableRotate":[4,"enable-rotate"],"enableSatellite":[4,"enable-satellite"],"enableTraffic":[4,"enable-traffic"],"enableBuilding":[4,"enable-building"],"enableAutoMaxOverlooking":[4,"enable-auto-max-overlooking"],"enable3D":[4,"enable-3-d"],"width":[1],"height":[1]}]]],["p-a89cb7e0",[[0,"taro-match-media-core"]]],["p-d2023e97",[[0,"taro-native-slot-core"]]],["p-932b1e72",[[0,"taro-navigation-bar-core"]]],["p-c0c4d551",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["p-3d163624",[[0,"taro-nested-scroll-body-core"]]],["p-88ded2fb",[[0,"taro-nested-scroll-header-core"]]],["p-62fcda43",[[0,"taro-official-account-core"]]],["p-b923d242",[[0,"taro-open-container-core"]]],["p-e6a85481",[[0,"taro-open-data-core"]]],["p-101c15ac",[[0,"taro-page-container-core"]]],["p-ea867ded",[[0,"taro-page-meta-core"]]],["p-adf40a3f",[[0,"taro-pan-gesture-handler-core"]]],["p-80f79dfe",[[0,"taro-progress-core",{"percent":[2],"showInfo":[4,"show-info"],"borderRadius":[8,"border-radius"],"fontSize":[8,"font-size"],"strokeWidth":[8,"stroke-width"],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"active":[4]}]]],["p-d4d8d99c",[[4,"taro-pull-to-refresh-core",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["p-be68a34c",[[0,"taro-rich-text-core",{"nodes":[1],"selectable":[1028],"userSelect":[1028,"user-select"],"space":[1]}]]],["p-b139e0bb",[[0,"taro-root-portal-core"]]],["p-22140f38",[[0,"taro-rtc-room-core"]]],["p-96d58e6b",[[0,"taro-rtc-room-item-core"]]],["p-ded33122",[[0,"taro-scale-gesture-handler-core"]]],["p-de8a1363",[[0,"taro-script-core"]]],["p-56e989e8",[[4,"taro-scroll-view-core",{"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"upperThreshold":[8,"upper-threshold"],"lowerThreshold":[8,"lower-threshold"],"mpScrollTop":[520,"scroll-top"],"mpScrollLeft":[520,"scroll-left"],"mpScrollIntoView":[513,"scroll-into-view"],"mpScrollIntoViewAlignment":[1,"scroll-into-view-alignment"],"animated":[4,"scroll-with-animation"],"mpScrollToMethod":[64],"mpScrollIntoViewMethod":[64]},[[1,"scroll","handleScroll"],[1,"touchmove","handleTouchMove"]]]]],["p-a1368421",[[0,"taro-share-element-core"]]],["p-8ea8d571",[[0,"taro-slider-core",{"min":[2],"max":[2],"step":[2],"disabled":[4],"value":[1538],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"blockSize":[2,"block-size"],"blockColor":[1,"block-color"],"showValue":[4,"show-value"],"name":[1],"totalWidth":[32],"touching":[32],"ogX":[32],"touchId":[32],"percent":[32],"ogPercent":[32],"isWillLoadCalled":[32]}]]],["p-9b1be768",[[0,"taro-slot-core"]]],["p-6a54dc69",[[0,"taro-snapshot-core"]]],["p-646b6bb1",[[0,"taro-span-core"]]],["p-da3ae8b9",[[0,"taro-sticky-header-core"]]],["p-010113d5",[[0,"taro-sticky-section-core"]]],["p-f42701f0",[[0,"taro-switch-core",{"type":[1],"checked":[1028],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}]]],["p-6c314305",[[0,"taro-tab-item-core"]]],["p-9c25a0c5",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["p-ea2ea074",[[0,"taro-tabs-core"]]],["p-bdbe75c4",[[0,"taro-tap-gesture-handler-core"]]],["p-804ec7f1",[[4,"taro-text-core",{"selectable":[1028],"userSelect":[1028,"user-select"],"space":[1025],"numberOfLines":[2,"number-of-lines"]}]]],["p-cf9be5c3",[[0,"taro-textarea-core",{"value":[1025],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"focus"],"autoHeight":[4,"auto-height"],"name":[1],"nativeProps":[16],"line":[32],"focus":[64]}]]],["p-e008dd54",[[0,"taro-vertical-drag-gesture-handler-core"]]],["p-757c9533",[[4,"taro-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-60c76b97",[[0,"taro-voip-room-core"]]],["p-a33c6ab4",[[0,"taro-web-view-core",{"src":[1]}]]],["p-1e8dbd9e",[[4,"taro-picker-core",{"mode":[1],"disabled":[4],"range":[16],"rangeKey":[1,"range-key"],"value":[1032],"start":[1],"end":[1],"fields":[1],"name":[1],"textProps":[16],"pickerValue":[32],"height":[32],"hidden":[32],"fadeOut":[32],"isWillLoadCalled":[32]}],[0,"taro-picker-group",{"mode":[1],"range":[16],"rangeKey":[1,"range-key"],"height":[2],"columnId":[1,"column-id"],"updateHeight":[16],"updateDay":[16],"startY":[32],"preY":[32],"hadMove":[32],"touchEnd":[32],"isMove":[32],"handleMoveStart":[64],"handleMoving":[64],"handleMoveEnd":[64]},[[1,"mousedown","onMouseDown"],[3,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[3,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-53b36223",[[0,"taro-video-core",{"src":[1],"duration":[2],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"initialTime":[2,"initial-time"],"poster":[1],"objectFit":[1,"object-fit"],"showProgress":[4,"show-progress"],"showFullscreenBtn":[4,"show-fullscreen-btn"],"showPlayBtn":[4,"show-play-btn"],"showCenterPlayBtn":[4,"show-center-play-btn"],"showMuteBtn":[4,"show-mute-btn"],"danmuList":[16],"danmuBtn":[4,"danmu-btn"],"enableDanmu":[4,"enable-danmu"],"enablePlayGesture":[4,"enable-play-gesture"],"enableProgressGesture":[4,"enable-progress-gesture"],"vslideGesture":[4,"vslide-gesture"],"vslideGestureInFullscreen":[4,"vslide-gesture-in-fullscreen"],"nativeProps":[16],"_duration":[32],"_enableDanmu":[32],"isPlaying":[32],"isFirst":[32],"isFullScreen":[32],"fullScreenTimestamp":[32],"isMute":[32],"getHlsObject":[64],"play":[64],"pause":[64],"stop":[64],"seek":[64],"requestFullScreen":[64],"exitFullScreen":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{"controls":[4],"currentTime":[2,"current-time"],"duration":[2],"isPlaying":[4,"is-playing"],"pauseFunc":[16],"playFunc":[16],"seekFunc":[16],"showPlayBtn":[4,"show-play-btn"],"showProgress":[4,"show-progress"],"setProgressBall":[64],"toggleVisibility":[64],"getIsDraggingProgressBall":[64],"setCurrentTime":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{"enable":[4],"danmuList":[32],"sendDanmu":[64],"tick":[64]}]]]]'),e)));
package/loader/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
2
  (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
3
3
  export * from '../dist/esm/polyfills/index.js';
4
- export * from '../dist/esm-es5/loader.js';
4
+ export * from '../dist/esm/loader.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/components",
3
- "version": "4.0.8-alpha.1",
3
+ "version": "4.0.8-alpha.2",
4
4
  "description": "Taro 组件库",
5
5
  "browser": "dist/index.js",
6
6
  "main:h5": "dist/index.js",
@@ -39,12 +39,12 @@
39
39
  "classnames": "^2.2.5",
40
40
  "hls.js": "^1.1.5",
41
41
  "resolve-pathname": "^3.0.0",
42
- "swiper": "11.1.0",
42
+ "swiper": "11.1.15",
43
43
  "tslib": "^2.6.2",
44
- "@tarojs/runtime": "4.0.8-alpha.1",
45
- "@tarojs/components-advanced": "4.0.8-alpha.1",
46
- "@tarojs/shared": "4.0.8-alpha.1",
47
- "@tarojs/taro": "4.0.8-alpha.1"
44
+ "@tarojs/runtime": "4.0.8-alpha.2",
45
+ "@tarojs/shared": "4.0.8-alpha.2",
46
+ "@tarojs/components-advanced": "4.0.8-alpha.2",
47
+ "@tarojs/taro": "4.0.8-alpha.2"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@babel/generator": "^7.21.4",
@@ -70,7 +70,7 @@
70
70
  "jest-cli": "27.5.1",
71
71
  "jest-runner": "27.5.1",
72
72
  "jest-environment-node": "27.5.1",
73
- "@tarojs/helper": "4.0.8-alpha.1"
73
+ "@tarojs/helper": "4.0.8-alpha.2"
74
74
  },
75
75
  "peerDependenciesMeta": {
76
76
  "@types/react": {
@@ -34,7 +34,7 @@ interface DraggableSheetProps extends StandardProps {
34
34
  snapSizes?: any[]
35
35
  /**
36
36
  * 尺寸发生变化时触发,仅支持 worklet 作为回调。event = {pixels, size}
37
- * @supported weapp-skyline
37
+ * @supported weapp
38
38
  */
39
39
  onSizeUpdateWorklet?: string
40
40
  }
package/types/Image.d.ts CHANGED
@@ -62,7 +62,7 @@ interface ImageProps extends StandardProps {
62
62
  */
63
63
  ariaLabel?: string
64
64
  /** 是否渐显
65
- * @supported weapp-skyline
65
+ * @supported weapp
66
66
  * @default false
67
67
  */
68
68
  fadeIn?: boolean
package/types/Input.d.ts CHANGED
@@ -199,23 +199,23 @@ interface InputProps extends StandardProps, FormItemProps {
199
199
  */
200
200
  onNickNameReview?: CommonEventFunction
201
201
  /** 选区改变事件, {selectionStart, selectionEnd}
202
- * @supported weapp-skyline
202
+ * @supported weapp
203
203
  */
204
204
  onSelectionChange?: CommonEventFunction
205
205
  /** 输入法开始新的输入时触发 (仅当输入法支持时触发)
206
- * @supported weapp-skyline
206
+ * @supported weapp
207
207
  */
208
208
  onKeyboardCompositionStart?: CommonEventFunction
209
209
  /** 输入法输入字符时触发(仅当输入法支持时触发)
210
- * @supported weapp-skyline
210
+ * @supported weapp
211
211
  */
212
212
  onKeyboardCompositionUpdate?: CommonEventFunction
213
213
  /** 输入法输入结束时触发(仅当输入法支持时触发)
214
- * @supported weapp-skyline
214
+ * @supported weapp
215
215
  */
216
216
  onKeyboardCompositionEnd?: CommonEventFunction
217
217
  /** 键盘高度变化时触发。event.detail = {height: height, pageBottomPadding: pageBottomPadding}; height: 键盘高度,pageBottomPadding: 页面上推高度
218
- * @supported weapp-skyline
218
+ * @supported weapp
219
219
  */
220
220
  onKeyoardHeightChangeWorklet?: string
221
221
  }
@@ -53,7 +53,7 @@ interface RichTextProps extends StandardProps {
53
53
  */
54
54
  onLongtap?: CommonEventFunction
55
55
  /** 布局兼容模式
56
- * @supported weapp-skyline
56
+ * @supported weapp
57
57
  * @default default
58
58
  */
59
59
  mode?: 'default' | 'compat' | 'aggressive' | 'inline-block' | 'web'
@@ -298,19 +298,19 @@ interface ScrollViewProps extends StandardProps {
298
298
  */
299
299
  onTouchCancel?: CommonEventFunction
300
300
  /** 同 bindscrollstart,但仅支持 worklet 作为回调
301
- * @supported weapp-skyline
301
+ * @supported weapp
302
302
  */
303
303
  onScrollStartWorklet?: string
304
304
  /** 同 bindscroll ,但仅支持 worklet 作为回调
305
- * @supported weapp-skyline
305
+ * @supported weapp
306
306
  */
307
307
  onScrollUpdateWorklet?: string
308
308
  /** 同 bindscrollend,但仅支持 worklet 作为回调
309
- * @supported weapp-skyline
309
+ * @supported weapp
310
310
  */
311
311
  onScrollEndWorklet?: string
312
312
  /** 指定手指抬起时做惯性滚动的初速度。(velocity: number) => number
313
- * @supported weapp-skyline
313
+ * @supported weapp
314
314
  */
315
315
  adjustDecelerationVelocityWorklet?: string
316
316
  }
@@ -61,9 +61,9 @@ interface ShareElementProps extends StandardProps {
61
61
  | 'bounceInOut'
62
62
  | 'cubic-bezier(x1, y1, x2, y2)'
63
63
  /** 动画帧回调
64
- * @supported weapp-skyline
64
+ * @supported weapp
65
65
  */
66
- onFrameWorklet?: CommonEventFunction
66
+ onFrameWorklet?: string
67
67
  }
68
68
  /** 共享元素
69
69
  *
package/types/Swiper.d.ts CHANGED
@@ -162,75 +162,75 @@ interface SwiperProps extends StandardProps {
162
162
  */
163
163
  onAnimationEnd?: CommonEventFunction<SwiperProps.onCommonEventDetail>
164
164
  /** 渲染模式
165
- * @supported weapp-skyline
165
+ * @supported weapp
166
166
  * @default normal
167
167
  */
168
168
  layoutType?: 'normal' | 'stackLeft' | 'stackRight' | 'tinder' | 'transformer'
169
169
  /** layout-type 为 transformer 时指定动画类型
170
- * @supported weapp-skyline
170
+ * @supported weapp
171
171
  * @default scaleAndFade
172
172
  */
173
173
  transformerType?: 'scaleAndFade' | 'accordion' | 'threeD' | 'zoomIn' | 'zoomOut' | 'deepthPage'
174
174
  /** 指示点动画类型
175
- * @supported weapp-skyline
175
+ * @supported weapp
176
176
  * @default normal
177
177
  */
178
178
  indicatorType?: 'normal' | 'worm' | 'wormThin' | 'wormUnderground' | 'wormThinUnderground' | 'expand' | 'jump' | 'jumpWithOffset' | 'scroll' | 'scrollFixedCenter' | 'slide' | 'slideUnderground' | 'scale' | 'swap' | 'swapYRotation' | 'color'
179
179
  /** 指示点四周边距
180
- * @supported weapp-skyline
180
+ * @supported weapp
181
181
  * @default 10
182
182
  */
183
183
  indicatorMargin?: number
184
184
  /** 指示点间距
185
- * @supported weapp-skyline
185
+ * @supported weapp
186
186
  * @default 4
187
187
  */
188
188
  indicatorSpacing?: number
189
189
  /** 指示点圆角大小
190
- * @supported weapp-skyline
190
+ * @supported weapp
191
191
  * @default 4
192
192
  */
193
193
  indicatorRadius?: number
194
194
  /** 指示点宽度
195
- * @supported weapp-skyline
195
+ * @supported weapp
196
196
  * @default 8
197
197
  */
198
198
  indicatorWidth?: number
199
199
  /** 指示点高度
200
- * @supported weapp-skyline
200
+ * @supported weapp
201
201
  * @default 8
202
202
  */
203
203
  indicatorHeight?: number
204
204
  /** 指示点的相对位置
205
- * @supported weapp-skyline
205
+ * @supported weapp
206
206
  * @default auto
207
207
  */
208
208
  indicatorAlignment?: [number, number] | string
209
209
  /** 指示点位置的偏移量
210
- * @supported weapp-skyline
210
+ * @supported weapp
211
211
  * @default [0, 0]
212
212
  */
213
213
  indicatorOffset?: [number, number]
214
214
  /** 改变 current 时使用动画过渡
215
- * @supported weapp-skyline
215
+ * @supported weapp
216
216
  * @default true
217
217
  */
218
218
  scrollWithAnimation?: boolean
219
219
  /** 缓存区域大小,值为 1 表示提前渲染上下各一屏区域(swiper 容器大小)
220
- * @supported weapp-skyline
220
+ * @supported weapp
221
221
  * @default 0
222
222
  */
223
223
  cacheExtent?: number
224
224
  /** 滑动开始时触发,仅支持 worklet 作为回调。event.detail = {dx: dx, dy: dy}
225
- * @supported weapp-skyline
225
+ * @supported weapp
226
226
  */
227
227
  onScrollStartWorklet?: string
228
228
  /** 滑动位置更新时触发,仅支持 worklet 作为回调。event.detail = {dx: dx, dy: dy}
229
- * @supported weapp-skyline
229
+ * @supported weapp
230
230
  */
231
231
  onScrollUpdateWorklet?: string
232
232
  /** 滑动结束时触发,仅支持 worklet 作为回调。event.detail = {dx: dx, dy: dy}
233
- * @supported weapp-skyline
233
+ * @supported weapp
234
234
  */
235
235
  onScrollEndWorklet?: string
236
236
  }
package/types/Text.d.ts CHANGED
@@ -27,7 +27,7 @@ interface TextProps extends StandardProps {
27
27
  numberOfLines?: number
28
28
  /**
29
29
  * 文本溢出处理
30
- * @supported weapp-skyline
30
+ * @supported weapp
31
31
  * @default 'visible'
32
32
  */
33
33
  overflow?: keyof TextProps.Overflow
@@ -156,23 +156,23 @@ interface TextareaProps extends StandardProps, FormItemProps {
156
156
  onKeyboardHeightChange?: CommonEventFunction<TextareaProps.onKeyboardHeightChangeEventDetail>
157
157
 
158
158
  /** 需传入对象,格式为 { fontSize: number, fontWeight: string, color: string }
159
- * @supported weapp-skyline
159
+ * @supported weapp
160
160
  */
161
161
  placeholderStyle?: string
162
162
  /** 选区改变事件, {selectionStart, selectionEnd}
163
- * @supported weapp-skyline
163
+ * @supported weapp
164
164
  */
165
165
  onSelectionChange?: CommonEventFunction
166
166
  /** 输入法开始新的输入时触发 (仅当输入法支持时触发)
167
- * @supported weapp-skyline
167
+ * @supported weapp
168
168
  */
169
169
  onKeyboardCompositionStart?: CommonEventFunction
170
170
  /** 输入法输入字符时触发(仅当输入法支持时触发)
171
- * @supported weapp-skyline
171
+ * @supported weapp
172
172
  */
173
173
  onKeyboardCompositionUpdate?: CommonEventFunction
174
174
  /** 输入法输入结束时触发(仅当输入法支持时触发)
175
- * @supported weapp-skyline
175
+ * @supported weapp
176
176
  */
177
177
  onKeyboardCompositionEnd?: CommonEventFunction
178
178
  }