@tarojs/components 3.5.1-aplha.1 → 3.5.2-aplha.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 (306) hide show
  1. package/dist/cjs/{index-13289aba.js → index-7c61bee9.js} +8 -0
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
  4. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
  5. package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
  6. package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
  7. package/dist/cjs/taro-button-core.cjs.entry.js +1 -1
  8. package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
  9. package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
  10. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
  11. package/dist/cjs/taro-components.cjs.js +2 -2
  12. package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
  13. package/dist/cjs/taro-cover-view-core.cjs.entry.js +1 -1
  14. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
  16. package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
  17. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
  18. package/dist/cjs/taro-icon-core.cjs.entry.js +1 -1
  19. package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
  20. package/dist/cjs/taro-input-core.cjs.entry.js +1 -1
  21. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
  22. package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
  23. package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
  24. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
  25. package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
  26. package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
  27. package/dist/cjs/taro-movable-area-core.cjs.entry.js +141 -3
  28. package/dist/cjs/taro-movable-view-core.cjs.entry.js +377 -3
  29. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
  30. package/dist/cjs/taro-navigator-core.cjs.entry.js +1 -1
  31. package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
  32. package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
  33. package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
  34. package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
  35. package/dist/cjs/taro-picker-core_2.cjs.entry.js +1 -1
  36. package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +1 -1
  37. package/dist/cjs/taro-picker-view-core.cjs.entry.js +1 -1
  38. package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
  39. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +1 -1
  40. package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
  41. package/dist/cjs/taro-rich-text-core.cjs.entry.js +1 -1
  42. package/dist/cjs/taro-root-portal-core.cjs.entry.js +1 -1
  43. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +1 -1
  44. package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
  45. package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
  46. package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
  47. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +1 -1
  48. package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
  49. package/dist/cjs/taro-tabbar.cjs.entry.js +1 -1
  50. package/dist/cjs/taro-text-core.cjs.entry.js +1 -1
  51. package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
  52. package/dist/cjs/taro-video-control_3.cjs.entry.js +1 -1
  53. package/dist/cjs/taro-view-core.cjs.entry.js +1 -1
  54. package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
  55. package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
  56. package/dist/collection/components/movable-area/area.css +6 -0
  57. package/dist/collection/components/movable-area/movable-area.js +165 -4
  58. package/dist/collection/components/movable-area/movable-view.js +735 -3
  59. package/dist/collection/components/movable-area/view.css +8 -0
  60. package/dist/esm/{index-26d8b479.js → index-8809c729.js} +8 -0
  61. package/dist/esm/loader.js +2 -2
  62. package/dist/esm/taro-ad-core.entry.js +1 -1
  63. package/dist/esm/taro-ad-custom-core.entry.js +1 -1
  64. package/dist/esm/taro-audio-core.entry.js +1 -1
  65. package/dist/esm/taro-block-core.entry.js +1 -1
  66. package/dist/esm/taro-button-core.entry.js +1 -1
  67. package/dist/esm/taro-camera-core.entry.js +1 -1
  68. package/dist/esm/taro-canvas-core.entry.js +1 -1
  69. package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
  70. package/dist/esm/taro-components.js +2 -2
  71. package/dist/esm/taro-cover-image-core.entry.js +1 -1
  72. package/dist/esm/taro-cover-view-core.entry.js +1 -1
  73. package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
  74. package/dist/esm/taro-editor-core.entry.js +1 -1
  75. package/dist/esm/taro-form-core.entry.js +1 -1
  76. package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
  77. package/dist/esm/taro-icon-core.entry.js +1 -1
  78. package/dist/esm/taro-image-core.entry.js +1 -1
  79. package/dist/esm/taro-input-core.entry.js +1 -1
  80. package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
  81. package/dist/esm/taro-label-core.entry.js +1 -1
  82. package/dist/esm/taro-live-player-core.entry.js +1 -1
  83. package/dist/esm/taro-live-pusher-core.entry.js +1 -1
  84. package/dist/esm/taro-map-core.entry.js +1 -1
  85. package/dist/esm/taro-match-media-core.entry.js +1 -1
  86. package/dist/esm/taro-movable-area-core.entry.js +141 -3
  87. package/dist/esm/taro-movable-view-core.entry.js +377 -3
  88. package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
  89. package/dist/esm/taro-navigator-core.entry.js +1 -1
  90. package/dist/esm/taro-official-account-core.entry.js +1 -1
  91. package/dist/esm/taro-open-data-core.entry.js +1 -1
  92. package/dist/esm/taro-page-container-core.entry.js +1 -1
  93. package/dist/esm/taro-page-meta-core.entry.js +1 -1
  94. package/dist/esm/taro-picker-core_2.entry.js +1 -1
  95. package/dist/esm/taro-picker-view-column-core.entry.js +1 -1
  96. package/dist/esm/taro-picker-view-core.entry.js +1 -1
  97. package/dist/esm/taro-progress-core.entry.js +1 -1
  98. package/dist/esm/taro-pull-to-refresh.entry.js +1 -1
  99. package/dist/esm/taro-radio-core_2.entry.js +1 -1
  100. package/dist/esm/taro-rich-text-core.entry.js +1 -1
  101. package/dist/esm/taro-root-portal-core.entry.js +1 -1
  102. package/dist/esm/taro-scroll-view-core.entry.js +1 -1
  103. package/dist/esm/taro-share-element-core.entry.js +1 -1
  104. package/dist/esm/taro-slider-core.entry.js +1 -1
  105. package/dist/esm/taro-slot-core.entry.js +1 -1
  106. package/dist/esm/taro-swiper-core_2.entry.js +1 -1
  107. package/dist/esm/taro-switch-core.entry.js +1 -1
  108. package/dist/esm/taro-tabbar.entry.js +1 -1
  109. package/dist/esm/taro-text-core.entry.js +1 -1
  110. package/dist/esm/taro-textarea-core.entry.js +1 -1
  111. package/dist/esm/taro-video-control_3.entry.js +1 -1
  112. package/dist/esm/taro-view-core.entry.js +1 -1
  113. package/dist/esm/taro-voip-room-core.entry.js +1 -1
  114. package/dist/esm/taro-web-view-core.entry.js +1 -1
  115. package/dist/esm-es5/{index-26d8b479.js → index-8809c729.js} +1 -1
  116. package/dist/esm-es5/loader.js +1 -1
  117. package/dist/esm-es5/taro-ad-core.entry.js +1 -1
  118. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
  119. package/dist/esm-es5/taro-audio-core.entry.js +1 -1
  120. package/dist/esm-es5/taro-block-core.entry.js +1 -1
  121. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  122. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  123. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  124. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  125. package/dist/esm-es5/taro-components.js +1 -1
  126. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
  127. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  128. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
  129. package/dist/esm-es5/taro-editor-core.entry.js +1 -1
  130. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  131. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
  132. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  133. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  134. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  135. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
  136. package/dist/esm-es5/taro-label-core.entry.js +1 -1
  137. package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
  138. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
  139. package/dist/esm-es5/taro-map-core.entry.js +1 -1
  140. package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
  141. package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
  142. package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
  143. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
  144. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  145. package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
  146. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  147. package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
  148. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
  149. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  150. package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
  151. package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
  152. package/dist/esm-es5/taro-progress-core.entry.js +1 -1
  153. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
  154. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  155. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  156. package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
  157. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  158. package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
  159. package/dist/esm-es5/taro-slider-core.entry.js +1 -1
  160. package/dist/esm-es5/taro-slot-core.entry.js +1 -1
  161. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  162. package/dist/esm-es5/taro-switch-core.entry.js +1 -1
  163. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  164. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  165. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  166. package/dist/esm-es5/taro-video-control_3.entry.js +55 -55
  167. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  168. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
  169. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  170. package/dist/taro-components/{p-44a199e4.entry.js → p-00201a61.entry.js} +1 -1
  171. package/dist/taro-components/p-0380841f.system.js +1 -0
  172. package/dist/taro-components/{p-66b1d5f9.system.entry.js → p-0414632d.system.entry.js} +1 -1
  173. package/dist/taro-components/p-059912fd.js +1 -0
  174. package/dist/taro-components/{p-abb9c7d0.entry.js → p-06bef0f9.entry.js} +1 -1
  175. package/dist/taro-components/{p-62608b28.system.entry.js → p-0a70de87.system.entry.js} +1 -1
  176. package/dist/taro-components/{p-9b90554b.system.entry.js → p-10c47df8.system.entry.js} +1 -1
  177. package/dist/taro-components/{p-a9ab6434.system.entry.js → p-10e5df98.system.entry.js} +1 -1
  178. package/dist/taro-components/{p-8f466248.system.entry.js → p-14058364.system.entry.js} +1 -1
  179. package/dist/taro-components/{p-831ebd02.system.entry.js → p-1a638246.system.entry.js} +1 -1
  180. package/dist/taro-components/p-1c775a11.system.entry.js +1 -0
  181. package/dist/taro-components/p-1e530acd.entry.js +1 -0
  182. package/dist/taro-components/p-22e33350.entry.js +1 -0
  183. package/dist/taro-components/p-24a66088.system.entry.js +1 -0
  184. package/dist/taro-components/p-25df0ce9.entry.js +1 -0
  185. package/dist/taro-components/{p-a900b437.system.entry.js → p-27126803.system.entry.js} +1 -1
  186. package/dist/taro-components/{p-1e0406ec.system.entry.js → p-275d883f.system.entry.js} +1 -1
  187. package/dist/taro-components/{p-d56c45bf.system.entry.js → p-27c80869.system.entry.js} +1 -1
  188. package/dist/taro-components/{p-9ce624a4.system.entry.js → p-2fd0250d.system.entry.js} +1 -1
  189. package/dist/taro-components/{p-49954245.system.entry.js → p-3255f11f.system.entry.js} +1 -1
  190. package/dist/taro-components/{p-4c890c5d.entry.js → p-362998cf.entry.js} +1 -1
  191. package/dist/taro-components/{p-cfebd931.entry.js → p-3c6090fd.entry.js} +1 -1
  192. package/dist/taro-components/p-3c7cdf6f.entry.js +1 -0
  193. package/dist/taro-components/{p-6e0a22dc.entry.js → p-410d449f.entry.js} +1 -1
  194. package/dist/taro-components/{p-0ea13d67.system.entry.js → p-44398c17.system.entry.js} +1 -1
  195. package/dist/taro-components/p-443fb8b0.entry.js +1 -0
  196. package/dist/taro-components/p-44cbb351.system.js +1 -0
  197. package/dist/taro-components/{p-ec59899b.system.entry.js → p-44fa48b9.system.entry.js} +1 -1
  198. package/dist/taro-components/{p-36f2c1e1.system.entry.js → p-481a8bc1.system.entry.js} +1 -1
  199. package/dist/taro-components/p-49b64020.entry.js +1 -0
  200. package/dist/taro-components/{p-a74f4c26.entry.js → p-4ada10aa.entry.js} +1 -1
  201. package/dist/taro-components/{p-4ee47fc0.system.entry.js → p-4e8d4a72.system.entry.js} +1 -1
  202. package/dist/taro-components/{p-a36bfe97.system.entry.js → p-4f0e98c0.system.entry.js} +1 -1
  203. package/dist/taro-components/p-4f805045.entry.js +1 -0
  204. package/dist/taro-components/{p-69334f7c.entry.js → p-5733124c.entry.js} +1 -1
  205. package/dist/taro-components/{p-53244eac.entry.js → p-5a2305e7.entry.js} +1 -1
  206. package/dist/taro-components/{p-78676120.system.entry.js → p-5c87902f.system.entry.js} +1 -1
  207. package/dist/taro-components/{p-a838e0f7.system.entry.js → p-5e223bab.system.entry.js} +1 -1
  208. package/dist/taro-components/{p-a90bfe9d.system.entry.js → p-5e3bd0db.system.entry.js} +1 -1
  209. package/dist/taro-components/{p-5c2497a4.system.entry.js → p-5f18259d.system.entry.js} +1 -1
  210. package/dist/taro-components/{p-4339ad63.system.entry.js → p-64447f5a.system.entry.js} +1 -1
  211. package/dist/taro-components/{p-372f53d8.system.entry.js → p-67222d90.system.entry.js} +1 -1
  212. package/dist/taro-components/{p-2bd2ea9a.system.entry.js → p-692d986d.system.entry.js} +1 -1
  213. package/dist/taro-components/p-6da73376.entry.js +1 -0
  214. package/dist/taro-components/{p-3e223f2f.system.entry.js → p-6e9805e2.system.entry.js} +1 -1
  215. package/dist/taro-components/p-72f858e4.entry.js +1 -0
  216. package/dist/taro-components/{p-45e6f8be.entry.js → p-7325d380.entry.js} +1 -1
  217. package/dist/taro-components/{p-060858b1.entry.js → p-7407013d.entry.js} +1 -1
  218. package/dist/taro-components/{p-86205110.entry.js → p-77ad7941.entry.js} +1 -1
  219. package/dist/taro-components/p-7ab91097.entry.js +1 -0
  220. package/dist/taro-components/{p-0d1e0e91.system.entry.js → p-7b96cec3.system.entry.js} +1 -1
  221. package/dist/taro-components/p-7e23b551.entry.js +1 -0
  222. package/dist/taro-components/{p-d7e13592.entry.js → p-7e8943d8.entry.js} +1 -1
  223. package/dist/taro-components/{p-74013ace.entry.js → p-7f0a12a9.entry.js} +1 -1
  224. package/dist/taro-components/{p-7f7aa688.entry.js → p-7f93fa08.entry.js} +1 -1
  225. package/dist/taro-components/{p-ac398961.system.entry.js → p-82661d45.system.entry.js} +1 -1
  226. package/dist/taro-components/{p-828efe43.system.entry.js → p-840ef0c3.system.entry.js} +1 -1
  227. package/dist/taro-components/{p-75811f84.system.entry.js → p-8475421b.system.entry.js} +1 -1
  228. package/dist/taro-components/{p-8ba35b31.system.entry.js → p-8788dc46.system.entry.js} +1 -1
  229. package/dist/taro-components/{p-0d0b3677.entry.js → p-886571e5.entry.js} +1 -1
  230. package/dist/taro-components/{p-fc226017.entry.js → p-888fac99.entry.js} +1 -1
  231. package/dist/taro-components/{p-12deba0b.system.entry.js → p-89c876a6.system.entry.js} +1 -1
  232. package/dist/taro-components/p-8aea3de3.entry.js +1 -0
  233. package/dist/taro-components/{p-16aff829.entry.js → p-8c8be53b.entry.js} +1 -1
  234. package/dist/taro-components/{p-9130dfca.system.entry.js → p-8cf86f31.system.entry.js} +1 -1
  235. package/dist/taro-components/{p-3d3cd72f.entry.js → p-90a6c15a.entry.js} +1 -1
  236. package/dist/taro-components/{p-d2b6b891.entry.js → p-92699438.entry.js} +1 -1
  237. package/dist/taro-components/p-95a36917.entry.js +1 -0
  238. package/dist/taro-components/{p-2e8a1479.system.entry.js → p-9965cf11.system.entry.js} +1 -1
  239. package/dist/taro-components/{p-7dc268ee.entry.js → p-9a0e70b1.entry.js} +1 -1
  240. package/dist/taro-components/{p-2887213d.system.entry.js → p-9afbb423.system.entry.js} +1 -1
  241. package/dist/taro-components/{p-e01af6c8.entry.js → p-9b39a940.entry.js} +1 -1
  242. package/dist/taro-components/{p-16c1e564.entry.js → p-9fcb40a3.entry.js} +1 -1
  243. package/dist/taro-components/{p-3b801a38.system.entry.js → p-a63fbc50.system.entry.js} +1 -1
  244. package/dist/taro-components/{p-de573939.system.entry.js → p-a8c9b126.system.entry.js} +1 -1
  245. package/dist/taro-components/{p-3b85bb4b.system.entry.js → p-a94524c9.system.entry.js} +1 -1
  246. package/dist/taro-components/{p-5ff0e954.system.entry.js → p-aa5d45de.system.entry.js} +1 -1
  247. package/dist/taro-components/{p-9151ef65.entry.js → p-ab1256fe.entry.js} +1 -1
  248. package/dist/taro-components/{p-019591c8.system.entry.js → p-ad6ad7e3.system.entry.js} +1 -1
  249. package/dist/taro-components/p-b2800ccd.entry.js +1 -0
  250. package/dist/taro-components/{p-178a3adf.system.entry.js → p-b3693ca2.system.entry.js} +1 -1
  251. package/dist/taro-components/{p-d636e22e.entry.js → p-b3b677fc.entry.js} +1 -1
  252. package/dist/taro-components/{p-fe252a81.system.entry.js → p-b3d961f9.system.entry.js} +1 -1
  253. package/dist/taro-components/p-b7639674.entry.js +1 -0
  254. package/dist/taro-components/{p-8b30e18c.system.entry.js → p-b7ac0b7f.system.entry.js} +1 -1
  255. package/dist/taro-components/{p-f1da4ed7.system.entry.js → p-b83c3eca.system.entry.js} +1 -1
  256. package/dist/taro-components/{p-8b23a081.system.entry.js → p-b9903f15.system.entry.js} +1 -1
  257. package/dist/taro-components/p-c0c8b2be.entry.js +1 -0
  258. package/dist/taro-components/p-c8da5c10.entry.js +1 -0
  259. package/dist/taro-components/{p-88063d40.system.entry.js → p-cd88d81a.system.entry.js} +1 -1
  260. package/dist/taro-components/{p-29b7c721.system.entry.js → p-d72075ef.system.entry.js} +1 -1
  261. package/dist/taro-components/{p-0ca42006.entry.js → p-db1f2db7.entry.js} +1 -1
  262. package/dist/taro-components/{p-baa5019a.system.entry.js → p-df3b544a.system.entry.js} +1 -1
  263. package/dist/taro-components/{p-133e3ac4.entry.js → p-dff55efd.entry.js} +1 -1
  264. package/dist/taro-components/{p-0f42b8a4.entry.js → p-e1ed00f7.entry.js} +1 -1
  265. package/dist/taro-components/{p-832cc63a.entry.js → p-e3f39099.entry.js} +1 -1
  266. package/dist/taro-components/{p-ca7ad427.system.entry.js → p-e671c8c5.system.entry.js} +1 -1
  267. package/dist/taro-components/{p-841a2031.system.entry.js → p-ed8c1bb8.system.entry.js} +1 -1
  268. package/dist/taro-components/{p-430d72e8.entry.js → p-eec00033.entry.js} +1 -1
  269. package/dist/taro-components/{p-06e3d685.system.entry.js → p-eeed74e3.system.entry.js} +1 -1
  270. package/dist/taro-components/{p-81dc5b7b.entry.js → p-ef006b23.entry.js} +1 -1
  271. package/dist/taro-components/p-f8b9c4b0.entry.js +1 -0
  272. package/dist/taro-components/{p-e7dcb4d5.entry.js → p-fa2a9bab.entry.js} +1 -1
  273. package/dist/taro-components/{p-4793e6ba.system.entry.js → p-fc9f4fd7.system.entry.js} +1 -1
  274. package/dist/taro-components/{p-81976128.entry.js → p-fec6ac36.entry.js} +1 -1
  275. package/dist/taro-components/{p-ac56ffed.entry.js → p-ff84986d.entry.js} +1 -1
  276. package/dist/taro-components/{p-ce46f79d.entry.js → p-ffefd74f.entry.js} +1 -1
  277. package/dist/taro-components/taro-components.esm.js +1 -1
  278. package/dist/taro-components/taro-components.js +1 -1
  279. package/dist/types/components/movable-area/movable-area.d.ts +23 -0
  280. package/dist/types/components/movable-area/movable-view.d.ts +153 -0
  281. package/dist/types/components.d.ts +140 -0
  282. package/package.json +3 -4
  283. package/types/Map.d.ts +2 -1
  284. package/dist/taro-components/p-0996daee.entry.js +0 -1
  285. package/dist/taro-components/p-1e516bd0.entry.js +0 -1
  286. package/dist/taro-components/p-2241b671.system.js +0 -1
  287. package/dist/taro-components/p-26e9ce75.entry.js +0 -1
  288. package/dist/taro-components/p-29bb3ebe.entry.js +0 -1
  289. package/dist/taro-components/p-3bb72c08.entry.js +0 -1
  290. package/dist/taro-components/p-46b7f84e.entry.js +0 -1
  291. package/dist/taro-components/p-62c64770.entry.js +0 -1
  292. package/dist/taro-components/p-671defcd.entry.js +0 -1
  293. package/dist/taro-components/p-6f2f468b.entry.js +0 -1
  294. package/dist/taro-components/p-70313eed.entry.js +0 -1
  295. package/dist/taro-components/p-756d56d1.system.entry.js +0 -1
  296. package/dist/taro-components/p-7b2049b7.entry.js +0 -1
  297. package/dist/taro-components/p-80abb865.entry.js +0 -1
  298. package/dist/taro-components/p-83adb645.system.js +0 -1
  299. package/dist/taro-components/p-8ead6b19.entry.js +0 -1
  300. package/dist/taro-components/p-95e51d62.entry.js +0 -1
  301. package/dist/taro-components/p-9961074d.entry.js +0 -1
  302. package/dist/taro-components/p-a4721ae0.js +0 -1
  303. package/dist/taro-components/p-c1458fbe.system.entry.js +0 -1
  304. package/dist/taro-components/p-c9b73495.entry.js +0 -1
  305. package/dist/taro-components/p-ce0489a6.entry.js +0 -1
  306. package/dist/taro-components/p-d6c8f31d.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-26d8b479.js";var indexCss="taro-switch-core{display:inline-block;width:52px;height:32px}taro-switch-core .weui-switch{display:block;width:100%;height:100%}";var Switch=function(){function e(e){var t=this;registerInstance(this,e);this.onChange=createEvent(this,"change",7);this.type="switch";this.checked=false;this.color="#04BE02";this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false;this.switchChange=function(e){e.stopPropagation();var i=e.target.checked;t.isChecked=i;t.onChange.emit({value:i})}}e.prototype.function=function(e,t){if(!this.isWillLoadCalled)return;if(e!==t)this.isChecked=e};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true;this.isChecked=this.checked};e.prototype.componentDidLoad=function(){var e=this;Object.defineProperty(this.el,"value",{get:function(){return e.isChecked},configurable:true})};e.prototype.render=function(){var e=this,t=e.type,i=e.color,n=e.isChecked,r=e.name,s=e.disabled,o=e.nativeProps;var c=n?{borderColor:i||"04BE02",backgroundColor:i||"04BE02"}:{};return h("input",Object.assign({type:"checkbox",class:"weui-"+t,style:c,checked:n,name:r,disabled:s,onChange:this.switchChange},o))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["function"]}},enumerable:false,configurable:true});return e}();Switch.style=indexCss;export{Switch as taro_switch_core};
1
+ import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-8809c729.js";var indexCss="taro-switch-core{display:inline-block;width:52px;height:32px}taro-switch-core .weui-switch{display:block;width:100%;height:100%}";var Switch=function(){function e(e){var t=this;registerInstance(this,e);this.onChange=createEvent(this,"change",7);this.type="switch";this.checked=false;this.color="#04BE02";this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false;this.switchChange=function(e){e.stopPropagation();var i=e.target.checked;t.isChecked=i;t.onChange.emit({value:i})}}e.prototype.function=function(e,t){if(!this.isWillLoadCalled)return;if(e!==t)this.isChecked=e};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true;this.isChecked=this.checked};e.prototype.componentDidLoad=function(){var e=this;Object.defineProperty(this.el,"value",{get:function(){return e.isChecked},configurable:true})};e.prototype.render=function(){var e=this,t=e.type,i=e.color,n=e.isChecked,r=e.name,s=e.disabled,o=e.nativeProps;var c=n?{borderColor:i||"04BE02",backgroundColor:i||"04BE02"}:{};return h("input",Object.assign({type:"checkbox",class:"weui-"+t,style:c,checked:n,name:r,disabled:s,onChange:this.switchChange},o))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["function"]}},enumerable:false,configurable:true});return e}();Switch.style=indexCss;export{Switch as taro_switch_core};
@@ -1 +1 @@
1
- var __spreadArray=this&&this.__spreadArray||function(e,a){for(var t=0,r=a.length,o=e.length;t<r;t++,o++)e[o]=a[t];return e};import{h,r as registerInstance,c as createEvent,H as Host,g as getElement}from"./index-26d8b479.js";import Taro from"@tarojs/taro";import{c as classnames}from"./index-1d8e8acd.js";var splitUrl=function(e){var a=e||"";var t;var r={path:null,query:null,fragment:null};t=a.indexOf("#");if(t>-1){r.fragment=a.substring(t+1);a=a.substring(0,t)}t=a.indexOf("?");if(t>-1){r.query=a.substring(t+1);a=a.substring(0,t)}r.path=a;return r};var addLeadingSlash=function(e){if(e===void 0){e=""}return e.charAt(0)==="/"?e:"/"+e};var hasBasename=function(e,a){if(e===void 0){e=""}if(a===void 0){a=""}return new RegExp("^"+a+"(\\/|\\?|#|$)","i").test(e)||e===a};var stripBasename=function(e,a){if(e===void 0){e=""}if(a===void 0){a=""}return hasBasename(e,a)?e.substring(a.length):e};var stripSuffix=function(e,a){if(e===void 0){e=""}if(a===void 0){a=""}return e.includes(a)?e.substring(0,e.length-a.length):e};function isAbsolute(e){return e.charAt(0)==="/"}function spliceOne(e,a){for(var t=a,r=t+1,o=e.length;r<o;t+=1,r+=1){e[t]=e[r]}e.pop()}function resolvePathname(e,a){if(a===undefined)a="";var t=e&&e.split("/")||[];var r=a&&a.split("/")||[];var o=e&&isAbsolute(e);var n=a&&isAbsolute(a);var s=o||n;if(e&&isAbsolute(e)){r=t}else if(t.length){r.pop();r=r.concat(t)}if(!r.length)return"/";var i;if(r.length){var l=r[r.length-1];i=l==="."||l===".."||l===""}else{i=false}var d=0;for(var b=r.length;b>=0;b--){var h=r[b];if(h==="."){spliceOne(r,b)}else if(h===".."){spliceOne(r,b);d++}else if(d){spliceOne(r,b);d--}}if(!s)for(;d--;d)r.unshift("..");if(s&&r[0]!==""&&(!r[0]||!isAbsolute(r[0])))r.unshift("");var c=r.join("/");if(i&&c.substr(-1)!=="/")c+="/";return c}var TabbarItem=function(e){var a=e.index,t=e.isSelected,r=t===void 0?false:t,o=e.textColor,n=e.iconPath,s=e.badgeText,i=e.showRedDot,l=i===void 0?false:i,d=e.text,b=e.onSelect;var c=classnames("weui-tabbar__item",{"weui-bar__item_on":r});var f={position:"absolute",top:"-2px",right:"-13px"};var u={position:"absolute",top:"0",right:"-6px"};function v(){b(a)}return h("a",{key:a,href:"javascript:;",class:c,onClick:v},h("span",{style:{display:"inline-block",position:"relative"}},h("img",{src:n,alt:"",class:"weui-tabbar__icon"}),!!s&&h("span",{class:"weui-badge taro-tabbar-badge",style:f},s),l&&h("span",{class:"weui-badge weui-badge_dot",style:u})),h("p",{class:"weui-tabbar__label",style:{color:o}},d))};var indexCss="html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column;height:100%}.taro-tabbar__panel{overflow:auto;position:relative;-ms-flex:1;flex:1;-webkit-overflow-scrolling:auto}.taro-tabbar__tabbar{position:relative;width:100%;height:50px;-webkit-transition:bottom 0.2s, top 0.2s;transition:bottom 0.2s, top 0.2s}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{bottom:0;margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom)}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{top:-52px;-ms-flex:0 0;flex:0 0}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";var STATUS_SHOW=0;var STATUS_HIDE=1;var STATUS_SLIDEOUT=2;var basicTabBarClassName="taro-tabbar__tabbar";var hideTabBarClassName="taro-tabbar__tabbar-hide";var hideTabBarWithAnimationClassName="taro-tabbar__tabbar-slideout";var Tabbar=function(){function e(e){var a=this;registerInstance(this,e);this.onLongPress=createEvent(this,"longpress",7);this.homePage="";this.customRoutes=[];this.tabbarPos="bottom";this.selectedIndex=-1;this.status=STATUS_SHOW;this.getOriginUrl=function(e){var t=a.customRoutes.filter((function(a){var t=a[1];var r=splitUrl(t).path;var o=splitUrl(e).path;return r===o}));return stripSuffix(t.length?t[0][0]:e,".html")};this.getSelectedIndex=function(e){var t=-1;a.list.forEach((function(a,r){var o=a.pagePath;var n=splitUrl(e).path;var s=splitUrl(o).path;if(n===s){t=r}}));return t};this.switchTab=function(e){a.selectedIndex=e;Taro.switchTab({url:a.list[e].pagePath})};this.switchTabHandler=function(e){var t=e.url,r=e.successHandler,o=e.errorHandler;var n=a.getOriginUrl(a.getCurrentUrl()||a.homePage);var s=resolvePathname(t,n);var i=a.getSelectedIndex(s);if(i>-1){a.switchTab(i);r({errMsg:"switchTab:ok"})}else{o({errMsg:'switchTab:fail page "'+s+'" is not found'})}};this.routerChangeHandler=function(e){var t;var r=(t=e===null||e===void 0?void 0:e.toLocation)===null||t===void 0?void 0:t.path;var o;if(typeof r==="string"){var n=a.conf.basename||"/";o=stripBasename(addLeadingSlash(r||a.homePage),n)||"/"}else{o=a.getCurrentUrl()}a.selectedIndex=a.getSelectedIndex(a.getOriginUrl(o))};this.setTabBarBadgeHandler=function(e){var t=e.index,r=e.text,o=e.successHandler,n=e.errorHandler;var s=__spreadArray([],a.list);if(t in s){s[t].showRedDot=false;s[t].badgeText=r;o({errMsg:"setTabBarBadge:ok"})}else{n({errMsg:"setTabBarBadge:fail tabbar item not found"})}a.list=s};this.removeTabBarBadgeHandler=function(e){var t=e.index,r=e.successHandler,o=e.errorHandler;var n=__spreadArray([],a.list);if(t in n){n[t].badgeText=null;n[t].badgeText=null;r({errMsg:"removeTabBarBadge:ok"})}else{o({errMsg:"removeTabBarBadge:fail tabbar item not found"})}a.list=n};this.showTabBarRedDotHandler=function(e){var t=e.index,r=e.successHandler,o=e.errorHandler;var n=__spreadArray([],a.list);if(t in n){n[t].badgeText=null;n[t].showRedDot=true;r({errMsg:"showTabBarRedDot:ok"})}else{o({errMsg:"showTabBarRedDot:fail tabbar item not found"})}a.list=n};this.hideTabBarRedDotHandler=function(e){var t=e.index,r=e.successHandler,o=e.errorHandler;var n=__spreadArray([],a.list);if(t in n){n[t].showRedDot=false;r({errMsg:"hideTabBarRedDot:ok"})}else{o({errMsg:"hideTabBarRedDot:fail tabbar item not found"})}a.list=n};this.showTabBarHandler=function(e){var t=e.successHandler;a.status=STATUS_SHOW;t({errMsg:"showTabBar:ok"})};this.hideTabBarHandler=function(e){var t=e.animation,r=e.successHandler;a.status=t?STATUS_SLIDEOUT:STATUS_HIDE;r({errMsg:"hideTabBar:ok"})};this.setTabBarStyleHandler=function(e){var t=e.color,r=e.selectedColor,o=e.backgroundColor,n=e.borderStyle,s=e.successHandler;if(o)a.backgroundColor=o;if(n)a.borderStyle=n;if(t)a.color=t;if(r)a.selectedColor=r;s({errMsg:"setTabBarStyle:ok"})};this.setTabBarItemHandler=function(e){var t=e.index,r=e.iconPath,o=e.selectedIconPath,n=e.text,s=e.successHandler,i=e.errorHandler;var l=__spreadArray([],a.list);if(t in l){if(r)l[t].iconPath=r;if(o)l[t].selectedIconPath=o;if(n)l[t].text=n;s({errMsg:"setTabBarItem:ok"})}else{i({errMsg:"setTabBarItem:fail tabbar item not found"})}a.list=l};var t=this.conf.list;var r=this.conf.customRoutes;if(Object.prototype.toString.call(t)!=="[object Array]"||t.length<2||t.length>5){throw new Error("tabBar 配置错误")}this.homePage=addLeadingSlash(this.conf.homePage);var o=function(e){var a;var t=r[e];e=addLeadingSlash(e);if(typeof t==="string"){n.customRoutes.push([e,addLeadingSlash(t)])}else if((t===null||t===void 0?void 0:t.length)>0){(a=n.customRoutes).push.apply(a,t.map((function(a){return[e,addLeadingSlash(a)]})))}};var n=this;for(var s in r){o(s)}t.forEach((function(e){if(e.pagePath.indexOf("/")!==0){e.pagePath="/"+e.pagePath}}));this.list=t;this.borderStyle=this.conf.borderStyle;this.backgroundColor=this.conf.backgroundColor;this.color=this.conf.color;this.selectedColor=this.conf.selectedColor}e.prototype.getCurrentUrl=function(){var e=this.conf.mode;var a=this.conf.basename||"/";var t;if(e==="hash"){var r=window.location.href;var o=r.indexOf("#");t=o===-1?"":r.substring(o+1)}else{t=location.pathname}var n=addLeadingSlash(stripBasename(t,a));return decodeURI(n==="/"?this.homePage:n)};e.prototype.bindEvent=function(){Taro.eventCenter.on("__taroRouterChange",this.routerChangeHandler);Taro.eventCenter.on("__taroSwitchTab",this.switchTabHandler);Taro.eventCenter.on("__taroSetTabBarBadge",this.setTabBarBadgeHandler);Taro.eventCenter.on("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);Taro.eventCenter.on("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);Taro.eventCenter.on("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);Taro.eventCenter.on("__taroShowTabBar",this.showTabBarHandler);Taro.eventCenter.on("__taroHideTabBar",this.hideTabBarHandler);Taro.eventCenter.on("__taroSetTabBarStyle",this.setTabBarStyleHandler);Taro.eventCenter.on("__taroSetTabBarItem",this.setTabBarItemHandler)};e.prototype.removeEvent=function(){Taro.eventCenter.off("__taroRouterChange",this.routerChangeHandler);Taro.eventCenter.off("__taroSwitchTab",this.switchTabHandler);Taro.eventCenter.off("__taroSetTabBarBadge",this.setTabBarBadgeHandler);Taro.eventCenter.off("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);Taro.eventCenter.off("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);Taro.eventCenter.off("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);Taro.eventCenter.off("__taroShowTabBar",this.showTabBarHandler);Taro.eventCenter.off("__taroHideTabBar",this.hideTabBarHandler);Taro.eventCenter.off("__taroSetTabBarStyle",this.setTabBarStyleHandler);Taro.eventCenter.off("__taroSetTabBarItem",this.setTabBarItemHandler)};e.prototype.componentDidLoad=function(){this.tabbarPos=this.tabbar.nextElementSibling?"top":"bottom";this.bindEvent();this.routerChangeHandler()};e.prototype.disconnectedCallback=function(){this.removeEvent()};e.prototype.render=function(){var e,a;var t=this;var r=this.tabbarPos,o=r===void 0?"bottom":r;var n=this.status;var s=classnames("weui-tabbar",(e={},e["taro-tabbar__border-"+(this.borderStyle||"black")]=true,e));var i=this.selectedIndex===-1||n===STATUS_HIDE;var l=n===STATUS_SLIDEOUT;return h(Host,{class:classnames(basicTabBarClassName,basicTabBarClassName+"-"+o,(a={},a[hideTabBarClassName]=i,a[hideTabBarWithAnimationClassName]=l,a))},h("div",{class:s,style:{backgroundColor:this.backgroundColor||"",height:"inherit"}},this.list.map((function(e,a){var r=t.selectedIndex===a;var o;var n;if(r){o=t.selectedColor||"";n=e.selectedIconPath}else{o=t.color||"";n=e.iconPath}return h(TabbarItem,{index:a,onSelect:t.switchTab.bind(t),isSelected:r,textColor:o,iconPath:n,text:e.text,badgeText:e.badgeText,showRedDot:e.showRedDot})}))))};Object.defineProperty(e.prototype,"tabbar",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();Tabbar.style=indexCss;export{Tabbar as taro_tabbar};
1
+ var __spreadArray=this&&this.__spreadArray||function(e,a){for(var t=0,r=a.length,o=e.length;t<r;t++,o++)e[o]=a[t];return e};import{h,r as registerInstance,c as createEvent,H as Host,g as getElement}from"./index-8809c729.js";import Taro from"@tarojs/taro";import{c as classnames}from"./index-1d8e8acd.js";var splitUrl=function(e){var a=e||"";var t;var r={path:null,query:null,fragment:null};t=a.indexOf("#");if(t>-1){r.fragment=a.substring(t+1);a=a.substring(0,t)}t=a.indexOf("?");if(t>-1){r.query=a.substring(t+1);a=a.substring(0,t)}r.path=a;return r};var addLeadingSlash=function(e){if(e===void 0){e=""}return e.charAt(0)==="/"?e:"/"+e};var hasBasename=function(e,a){if(e===void 0){e=""}if(a===void 0){a=""}return new RegExp("^"+a+"(\\/|\\?|#|$)","i").test(e)||e===a};var stripBasename=function(e,a){if(e===void 0){e=""}if(a===void 0){a=""}return hasBasename(e,a)?e.substring(a.length):e};var stripSuffix=function(e,a){if(e===void 0){e=""}if(a===void 0){a=""}return e.includes(a)?e.substring(0,e.length-a.length):e};function isAbsolute(e){return e.charAt(0)==="/"}function spliceOne(e,a){for(var t=a,r=t+1,o=e.length;r<o;t+=1,r+=1){e[t]=e[r]}e.pop()}function resolvePathname(e,a){if(a===undefined)a="";var t=e&&e.split("/")||[];var r=a&&a.split("/")||[];var o=e&&isAbsolute(e);var n=a&&isAbsolute(a);var s=o||n;if(e&&isAbsolute(e)){r=t}else if(t.length){r.pop();r=r.concat(t)}if(!r.length)return"/";var i;if(r.length){var l=r[r.length-1];i=l==="."||l===".."||l===""}else{i=false}var d=0;for(var b=r.length;b>=0;b--){var h=r[b];if(h==="."){spliceOne(r,b)}else if(h===".."){spliceOne(r,b);d++}else if(d){spliceOne(r,b);d--}}if(!s)for(;d--;d)r.unshift("..");if(s&&r[0]!==""&&(!r[0]||!isAbsolute(r[0])))r.unshift("");var c=r.join("/");if(i&&c.substr(-1)!=="/")c+="/";return c}var TabbarItem=function(e){var a=e.index,t=e.isSelected,r=t===void 0?false:t,o=e.textColor,n=e.iconPath,s=e.badgeText,i=e.showRedDot,l=i===void 0?false:i,d=e.text,b=e.onSelect;var c=classnames("weui-tabbar__item",{"weui-bar__item_on":r});var f={position:"absolute",top:"-2px",right:"-13px"};var u={position:"absolute",top:"0",right:"-6px"};function v(){b(a)}return h("a",{key:a,href:"javascript:;",class:c,onClick:v},h("span",{style:{display:"inline-block",position:"relative"}},h("img",{src:n,alt:"",class:"weui-tabbar__icon"}),!!s&&h("span",{class:"weui-badge taro-tabbar-badge",style:f},s),l&&h("span",{class:"weui-badge weui-badge_dot",style:u})),h("p",{class:"weui-tabbar__label",style:{color:o}},d))};var indexCss="html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column;height:100%}.taro-tabbar__panel{overflow:auto;position:relative;-ms-flex:1;flex:1;-webkit-overflow-scrolling:auto}.taro-tabbar__tabbar{position:relative;width:100%;height:50px;-webkit-transition:bottom 0.2s, top 0.2s;transition:bottom 0.2s, top 0.2s}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{bottom:0;margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom)}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{top:-52px;-ms-flex:0 0;flex:0 0}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";var STATUS_SHOW=0;var STATUS_HIDE=1;var STATUS_SLIDEOUT=2;var basicTabBarClassName="taro-tabbar__tabbar";var hideTabBarClassName="taro-tabbar__tabbar-hide";var hideTabBarWithAnimationClassName="taro-tabbar__tabbar-slideout";var Tabbar=function(){function e(e){var a=this;registerInstance(this,e);this.onLongPress=createEvent(this,"longpress",7);this.homePage="";this.customRoutes=[];this.tabbarPos="bottom";this.selectedIndex=-1;this.status=STATUS_SHOW;this.getOriginUrl=function(e){var t=a.customRoutes.filter((function(a){var t=a[1];var r=splitUrl(t).path;var o=splitUrl(e).path;return r===o}));return stripSuffix(t.length?t[0][0]:e,".html")};this.getSelectedIndex=function(e){var t=-1;a.list.forEach((function(a,r){var o=a.pagePath;var n=splitUrl(e).path;var s=splitUrl(o).path;if(n===s){t=r}}));return t};this.switchTab=function(e){a.selectedIndex=e;Taro.switchTab({url:a.list[e].pagePath})};this.switchTabHandler=function(e){var t=e.url,r=e.successHandler,o=e.errorHandler;var n=a.getOriginUrl(a.getCurrentUrl()||a.homePage);var s=resolvePathname(t,n);var i=a.getSelectedIndex(s);if(i>-1){a.switchTab(i);r({errMsg:"switchTab:ok"})}else{o({errMsg:'switchTab:fail page "'+s+'" is not found'})}};this.routerChangeHandler=function(e){var t;var r=(t=e===null||e===void 0?void 0:e.toLocation)===null||t===void 0?void 0:t.path;var o;if(typeof r==="string"){var n=a.conf.basename||"/";o=stripBasename(addLeadingSlash(r||a.homePage),n)||"/"}else{o=a.getCurrentUrl()}a.selectedIndex=a.getSelectedIndex(a.getOriginUrl(o))};this.setTabBarBadgeHandler=function(e){var t=e.index,r=e.text,o=e.successHandler,n=e.errorHandler;var s=__spreadArray([],a.list);if(t in s){s[t].showRedDot=false;s[t].badgeText=r;o({errMsg:"setTabBarBadge:ok"})}else{n({errMsg:"setTabBarBadge:fail tabbar item not found"})}a.list=s};this.removeTabBarBadgeHandler=function(e){var t=e.index,r=e.successHandler,o=e.errorHandler;var n=__spreadArray([],a.list);if(t in n){n[t].badgeText=null;n[t].badgeText=null;r({errMsg:"removeTabBarBadge:ok"})}else{o({errMsg:"removeTabBarBadge:fail tabbar item not found"})}a.list=n};this.showTabBarRedDotHandler=function(e){var t=e.index,r=e.successHandler,o=e.errorHandler;var n=__spreadArray([],a.list);if(t in n){n[t].badgeText=null;n[t].showRedDot=true;r({errMsg:"showTabBarRedDot:ok"})}else{o({errMsg:"showTabBarRedDot:fail tabbar item not found"})}a.list=n};this.hideTabBarRedDotHandler=function(e){var t=e.index,r=e.successHandler,o=e.errorHandler;var n=__spreadArray([],a.list);if(t in n){n[t].showRedDot=false;r({errMsg:"hideTabBarRedDot:ok"})}else{o({errMsg:"hideTabBarRedDot:fail tabbar item not found"})}a.list=n};this.showTabBarHandler=function(e){var t=e.successHandler;a.status=STATUS_SHOW;t({errMsg:"showTabBar:ok"})};this.hideTabBarHandler=function(e){var t=e.animation,r=e.successHandler;a.status=t?STATUS_SLIDEOUT:STATUS_HIDE;r({errMsg:"hideTabBar:ok"})};this.setTabBarStyleHandler=function(e){var t=e.color,r=e.selectedColor,o=e.backgroundColor,n=e.borderStyle,s=e.successHandler;if(o)a.backgroundColor=o;if(n)a.borderStyle=n;if(t)a.color=t;if(r)a.selectedColor=r;s({errMsg:"setTabBarStyle:ok"})};this.setTabBarItemHandler=function(e){var t=e.index,r=e.iconPath,o=e.selectedIconPath,n=e.text,s=e.successHandler,i=e.errorHandler;var l=__spreadArray([],a.list);if(t in l){if(r)l[t].iconPath=r;if(o)l[t].selectedIconPath=o;if(n)l[t].text=n;s({errMsg:"setTabBarItem:ok"})}else{i({errMsg:"setTabBarItem:fail tabbar item not found"})}a.list=l};var t=this.conf.list;var r=this.conf.customRoutes;if(Object.prototype.toString.call(t)!=="[object Array]"||t.length<2||t.length>5){throw new Error("tabBar 配置错误")}this.homePage=addLeadingSlash(this.conf.homePage);var o=function(e){var a;var t=r[e];e=addLeadingSlash(e);if(typeof t==="string"){n.customRoutes.push([e,addLeadingSlash(t)])}else if((t===null||t===void 0?void 0:t.length)>0){(a=n.customRoutes).push.apply(a,t.map((function(a){return[e,addLeadingSlash(a)]})))}};var n=this;for(var s in r){o(s)}t.forEach((function(e){if(e.pagePath.indexOf("/")!==0){e.pagePath="/"+e.pagePath}}));this.list=t;this.borderStyle=this.conf.borderStyle;this.backgroundColor=this.conf.backgroundColor;this.color=this.conf.color;this.selectedColor=this.conf.selectedColor}e.prototype.getCurrentUrl=function(){var e=this.conf.mode;var a=this.conf.basename||"/";var t;if(e==="hash"){var r=window.location.href;var o=r.indexOf("#");t=o===-1?"":r.substring(o+1)}else{t=location.pathname}var n=addLeadingSlash(stripBasename(t,a));return decodeURI(n==="/"?this.homePage:n)};e.prototype.bindEvent=function(){Taro.eventCenter.on("__taroRouterChange",this.routerChangeHandler);Taro.eventCenter.on("__taroSwitchTab",this.switchTabHandler);Taro.eventCenter.on("__taroSetTabBarBadge",this.setTabBarBadgeHandler);Taro.eventCenter.on("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);Taro.eventCenter.on("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);Taro.eventCenter.on("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);Taro.eventCenter.on("__taroShowTabBar",this.showTabBarHandler);Taro.eventCenter.on("__taroHideTabBar",this.hideTabBarHandler);Taro.eventCenter.on("__taroSetTabBarStyle",this.setTabBarStyleHandler);Taro.eventCenter.on("__taroSetTabBarItem",this.setTabBarItemHandler)};e.prototype.removeEvent=function(){Taro.eventCenter.off("__taroRouterChange",this.routerChangeHandler);Taro.eventCenter.off("__taroSwitchTab",this.switchTabHandler);Taro.eventCenter.off("__taroSetTabBarBadge",this.setTabBarBadgeHandler);Taro.eventCenter.off("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);Taro.eventCenter.off("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);Taro.eventCenter.off("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);Taro.eventCenter.off("__taroShowTabBar",this.showTabBarHandler);Taro.eventCenter.off("__taroHideTabBar",this.hideTabBarHandler);Taro.eventCenter.off("__taroSetTabBarStyle",this.setTabBarStyleHandler);Taro.eventCenter.off("__taroSetTabBarItem",this.setTabBarItemHandler)};e.prototype.componentDidLoad=function(){this.tabbarPos=this.tabbar.nextElementSibling?"top":"bottom";this.bindEvent();this.routerChangeHandler()};e.prototype.disconnectedCallback=function(){this.removeEvent()};e.prototype.render=function(){var e,a;var t=this;var r=this.tabbarPos,o=r===void 0?"bottom":r;var n=this.status;var s=classnames("weui-tabbar",(e={},e["taro-tabbar__border-"+(this.borderStyle||"black")]=true,e));var i=this.selectedIndex===-1||n===STATUS_HIDE;var l=n===STATUS_SLIDEOUT;return h(Host,{class:classnames(basicTabBarClassName,basicTabBarClassName+"-"+o,(a={},a[hideTabBarClassName]=i,a[hideTabBarWithAnimationClassName]=l,a))},h("div",{class:s,style:{backgroundColor:this.backgroundColor||"",height:"inherit"}},this.list.map((function(e,a){var r=t.selectedIndex===a;var o;var n;if(r){o=t.selectedColor||"";n=e.selectedIconPath}else{o=t.color||"";n=e.iconPath}return h(TabbarItem,{index:a,onSelect:t.switchTab.bind(t),isSelected:r,textColor:o,iconPath:n,text:e.text,badgeText:e.badgeText,showRedDot:e.showRedDot})}))))};Object.defineProperty(e.prototype,"tabbar",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();Tabbar.style=indexCss;export{Tabbar as taro_tabbar};
@@ -1 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-26d8b479.js";import{c as classnames}from"./index-1d8e8acd.js";var indexCss="taro-text-core{display:inline;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:pre-wrap}.taro-text__selectable{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}";var Text=function(){function e(e){registerInstance(this,e);this.selectable=false}e.prototype.render=function(){var e=classnames({"taro-text__selectable":this.selectable});return h(Host,{class:e},h("slot",null))};return e}();Text.style=indexCss;export{Text as taro_text_core};
1
+ import{r as registerInstance,h,H as Host}from"./index-8809c729.js";import{c as classnames}from"./index-1d8e8acd.js";var indexCss="taro-text-core{display:inline;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:pre-wrap}.taro-text__selectable{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}";var Text=function(){function e(e){registerInstance(this,e);this.selectable=false}e.prototype.render=function(){var e=classnames({"taro-text__selectable":this.selectable});return h(Host,{class:e},h("slot",null))};return e}();Text.style=indexCss;export{Text as taro_text_core};
@@ -1 +1 @@
1
- import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-26d8b479.js";var indexCss="taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:150px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;line-height:1.5}.taro-textarea:focus{outline:none}";function fixControlledValue(e){return e!==null&&e!==void 0?e:""}var Textarea=function(){function e(e){var t=this;registerInstance(this,e);this.onInput=createEvent(this,"input",7);this.onFocus=createEvent(this,"focus",7);this.onBlur=createEvent(this,"blur",7);this.onChange=createEvent(this,"change",7);this.onLineChange=createEvent(this,"linechange",7);this.disabled=false;this.maxlength=140;this.autoFocus=false;this.autoHeight=false;this.nativeProps={};this.line=1;this.handleInput=function(e){e.stopPropagation();t.handleLineChange();t.onInput.emit({value:e.target.value,cursor:e.target.value.length})};this.handleFocus=function(e){t.onFocus.emit({value:e.target.value})};this.handleBlur=function(e){t.onBlur.emit({value:e.target.value})};this.handleChange=function(e){e.stopPropagation();t.onChange.emit({value:e.target.value})};this.handleLineChange=function(){var e=t.getNumberOfLines();if(e!==t.line){t.line=e;t.onLineChange.emit({height:t.textareaRef.clientHeight,lineCount:t.line})}};this.calculateContentHeight=function(e,t){var n=e.style.height,a=e.offsetHeight,i=e.scrollHeight,o=e.style.overflow,r=e.style.minHeight||null;if(a>=i){e.style.minHeight=0;e.style.height=a+t+"px";e.style.overflow="hidden";if(i<e.scrollHeight){while(e.offsetHeight>=e.scrollHeight){e.style.height=(a-=t)+"px"}while(e.offsetHeight<e.scrollHeight){e.style.height=a+++"px"}e.style.height=n;e.style.overflow=o;e.style.minHeight=r;return a}}else{return i}};this.getNumberOfLines=function(){var e=t.textareaRef,n=window.getComputedStyle?window.getComputedStyle(e):e.style,a=parseInt(n.lineHeight,10),i=t.calculateContentHeight(e,a),o=Math.floor(i/a);return o}}e.prototype.componentDidLoad=function(){var e=this;Object.defineProperty(this.el,"value",{get:function(){return e.textareaRef.value},set:function(t){return e.value=t},configurable:true});this.autoFocus&&this.textareaRef.focus()};e.prototype.render=function(){var e=this;var t=this,n=t.value,a=t.placeholder,i=t.disabled,o=t.maxlength,r=t.autoFocus,l=t.autoHeight,s=t.name,u=t.nativeProps,c=t.handleInput,g=t.handleFocus,f=t.handleBlur,p=t.handleChange;var d={};if(l){d.rows=this.line}return h("textarea",Object.assign({ref:function(t){if(t){e.textareaRef=t}},class:"taro-textarea "+(l?"auto-height":""),value:fixControlledValue(n),placeholder:a,name:s,disabled:i,maxlength:o,autofocus:r,onInput:c,onFocus:g,onBlur:f,onChange:p},u,d))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();Textarea.style=indexCss;export{Textarea as taro_textarea_core};
1
+ import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-8809c729.js";var indexCss="taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:150px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;line-height:1.5}.taro-textarea:focus{outline:none}";function fixControlledValue(e){return e!==null&&e!==void 0?e:""}var Textarea=function(){function e(e){var t=this;registerInstance(this,e);this.onInput=createEvent(this,"input",7);this.onFocus=createEvent(this,"focus",7);this.onBlur=createEvent(this,"blur",7);this.onChange=createEvent(this,"change",7);this.onLineChange=createEvent(this,"linechange",7);this.disabled=false;this.maxlength=140;this.autoFocus=false;this.autoHeight=false;this.nativeProps={};this.line=1;this.handleInput=function(e){e.stopPropagation();t.handleLineChange();t.onInput.emit({value:e.target.value,cursor:e.target.value.length})};this.handleFocus=function(e){t.onFocus.emit({value:e.target.value})};this.handleBlur=function(e){t.onBlur.emit({value:e.target.value})};this.handleChange=function(e){e.stopPropagation();t.onChange.emit({value:e.target.value})};this.handleLineChange=function(){var e=t.getNumberOfLines();if(e!==t.line){t.line=e;t.onLineChange.emit({height:t.textareaRef.clientHeight,lineCount:t.line})}};this.calculateContentHeight=function(e,t){var n=e.style.height,a=e.offsetHeight,i=e.scrollHeight,o=e.style.overflow,r=e.style.minHeight||null;if(a>=i){e.style.minHeight=0;e.style.height=a+t+"px";e.style.overflow="hidden";if(i<e.scrollHeight){while(e.offsetHeight>=e.scrollHeight){e.style.height=(a-=t)+"px"}while(e.offsetHeight<e.scrollHeight){e.style.height=a+++"px"}e.style.height=n;e.style.overflow=o;e.style.minHeight=r;return a}}else{return i}};this.getNumberOfLines=function(){var e=t.textareaRef,n=window.getComputedStyle?window.getComputedStyle(e):e.style,a=parseInt(n.lineHeight,10),i=t.calculateContentHeight(e,a),o=Math.floor(i/a);return o}}e.prototype.componentDidLoad=function(){var e=this;Object.defineProperty(this.el,"value",{get:function(){return e.textareaRef.value},set:function(t){return e.value=t},configurable:true});this.autoFocus&&this.textareaRef.focus()};e.prototype.render=function(){var e=this;var t=this,n=t.value,a=t.placeholder,i=t.disabled,o=t.maxlength,r=t.autoFocus,l=t.autoHeight,s=t.name,u=t.nativeProps,c=t.handleInput,g=t.handleFocus,f=t.handleBlur,p=t.handleChange;var d={};if(l){d.rows=this.line}return h("textarea",Object.assign({ref:function(t){if(t){e.textareaRef=t}},class:"taro-textarea "+(l?"auto-height":""),value:fixControlledValue(n),placeholder:a,name:s,disabled:i,maxlength:o,autofocus:r,onInput:c,onFocus:g,onBlur:f,onChange:p},u,d))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();Textarea.style=indexCss;export{Textarea as taro_textarea_core};