@tarojs/components 3.6.0-canary.9 → 3.6.0

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 (1272) hide show
  1. package/dist/cjs/index-dfd8638f.js +40 -0
  2. package/dist/cjs/index-dfd8638f.js.map +1 -0
  3. package/dist/cjs/index-e1b469cd.js +2066 -0
  4. package/dist/cjs/index-e1b469cd.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +4 -3
  6. package/dist/cjs/loader.cjs.js.map +1 -1
  7. package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
  8. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
  9. package/dist/cjs/taro-animation-video-core.cjs.entry.js +1 -1
  10. package/dist/cjs/taro-animation-view-core.cjs.entry.js +1 -1
  11. package/dist/cjs/taro-ar-camera-core.cjs.entry.js +1 -1
  12. package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
  13. package/dist/cjs/taro-aweme-data-core.cjs.entry.js +1 -1
  14. package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-button-core.cjs.entry.js +1 -1
  16. package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
  17. package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
  18. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
  19. package/dist/cjs/taro-comment-detail-core.cjs.entry.js +1 -1
  20. package/dist/cjs/taro-comment-list-core.cjs.entry.js +1 -1
  21. package/dist/cjs/taro-components.cjs.js +7 -3
  22. package/dist/cjs/taro-components.cjs.js.map +1 -1
  23. package/dist/cjs/taro-contact-button-core.cjs.entry.js +1 -1
  24. package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
  25. package/dist/cjs/taro-cover-view-core.cjs.entry.js +1 -1
  26. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
  27. package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
  28. package/dist/cjs/taro-follow-swan-core.cjs.entry.js +1 -1
  29. package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
  30. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
  31. package/dist/cjs/taro-icon-core.cjs.entry.js +1 -1
  32. package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
  33. package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +1 -1
  34. package/dist/cjs/taro-input-core.cjs.entry.js +1 -1
  35. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
  36. package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
  37. package/dist/cjs/taro-lifestyle-core.cjs.entry.js +1 -1
  38. package/dist/cjs/taro-like-core.cjs.entry.js +1 -1
  39. package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
  40. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
  41. package/dist/cjs/taro-login-core.cjs.entry.js +1 -1
  42. package/dist/cjs/taro-lottie-core.cjs.entry.js +1 -1
  43. package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
  44. package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
  45. package/dist/cjs/taro-movable-area-core_2.cjs.entry.js +1 -1
  46. package/dist/cjs/taro-native-slot-core.cjs.entry.js +1 -1
  47. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
  48. package/dist/cjs/taro-navigator-core.cjs.entry.js +1 -1
  49. package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
  50. package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
  51. package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
  52. package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
  53. package/dist/cjs/taro-picker-core_2.cjs.entry.js +1 -1
  54. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +2 -2
  55. package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
  56. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +1 -1
  57. package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
  58. package/dist/cjs/taro-rich-text-core.cjs.entry.js +1 -1
  59. package/dist/cjs/taro-root-portal-core.cjs.entry.js +1 -1
  60. package/dist/cjs/taro-rtc-room-core.cjs.entry.js +1 -1
  61. package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +1 -1
  62. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +2 -2
  63. package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
  64. package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
  65. package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
  66. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +49 -8
  67. package/dist/cjs/taro-swiper-core_2.cjs.entry.js.map +1 -1
  68. package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
  69. package/dist/cjs/taro-tab-item-core.cjs.entry.js +1 -1
  70. package/dist/cjs/taro-tabbar.cjs.entry.js +18 -20
  71. package/dist/cjs/taro-tabbar.cjs.entry.js.map +1 -1
  72. package/dist/cjs/taro-tabs-core.cjs.entry.js +1 -1
  73. package/dist/cjs/taro-text-core.cjs.entry.js +1 -1
  74. package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
  75. package/dist/cjs/taro-video-control_3.cjs.entry.js +6 -2
  76. package/dist/cjs/taro-video-control_3.cjs.entry.js.map +1 -1
  77. package/dist/cjs/taro-view-core.cjs.entry.js +1 -1
  78. package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
  79. package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
  80. package/dist/collection/collection-manifest.json +2 -2
  81. package/dist/collection/components/swiper/swiper-item.js +37 -1
  82. package/dist/collection/components/swiper/swiper-item.js.map +1 -1
  83. package/dist/collection/components/swiper/swiper.js +12 -5
  84. package/dist/collection/components/swiper/swiper.js.map +1 -1
  85. package/dist/collection/components/tabbar/tabbar-item.js +7 -1
  86. package/dist/collection/components/tabbar/tabbar-item.js.map +1 -1
  87. package/dist/collection/components/tabbar/tabbar.js +4 -17
  88. package/dist/collection/components/tabbar/tabbar.js.map +1 -1
  89. package/dist/collection/components/video/video.js +23 -0
  90. package/dist/collection/components/video/video.js.map +1 -1
  91. package/dist/collection/utils/index.js +3 -0
  92. package/dist/collection/utils/index.js.map +1 -1
  93. package/dist/components/helper.js +15 -0
  94. package/dist/components/helper.js.map +1 -0
  95. package/dist/components/hls.js +27622 -0
  96. package/dist/components/hls.js.map +1 -0
  97. package/dist/components/index.d.ts +106 -0
  98. package/dist/components/index.js +79 -0
  99. package/dist/components/index.js.map +1 -0
  100. package/dist/components/index2.js +78 -0
  101. package/dist/components/index2.js.map +1 -0
  102. package/dist/components/index3.js +36 -0
  103. package/dist/components/index3.js.map +1 -0
  104. package/dist/components/intersection-observer.js +728 -0
  105. package/dist/components/intersection-observer.js.map +1 -0
  106. package/dist/components/picker-group.js +220 -0
  107. package/dist/components/picker-group.js.map +1 -0
  108. package/dist/components/taro-ad-core.d.ts +11 -0
  109. package/dist/components/taro-ad-core.js +35 -0
  110. package/dist/components/taro-ad-core.js.map +1 -0
  111. package/dist/components/taro-ad-custom-core.d.ts +11 -0
  112. package/dist/components/taro-ad-custom-core.js +35 -0
  113. package/dist/components/taro-ad-custom-core.js.map +1 -0
  114. package/dist/components/taro-animation-video-core.d.ts +11 -0
  115. package/dist/components/taro-animation-video-core.js +35 -0
  116. package/dist/components/taro-animation-video-core.js.map +1 -0
  117. package/dist/components/taro-animation-view-core.d.ts +11 -0
  118. package/dist/components/taro-animation-view-core.js +35 -0
  119. package/dist/components/taro-animation-view-core.js.map +1 -0
  120. package/dist/components/taro-ar-camera-core.d.ts +11 -0
  121. package/dist/components/taro-ar-camera-core.js +35 -0
  122. package/dist/components/taro-ar-camera-core.js.map +1 -0
  123. package/dist/components/taro-audio-core.d.ts +11 -0
  124. package/dist/components/taro-audio-core.js +80 -0
  125. package/dist/components/taro-audio-core.js.map +1 -0
  126. package/dist/components/taro-aweme-data-core.d.ts +11 -0
  127. package/dist/components/taro-aweme-data-core.js +35 -0
  128. package/dist/components/taro-aweme-data-core.js.map +1 -0
  129. package/dist/components/taro-block-core.d.ts +11 -0
  130. package/dist/components/taro-block-core.js +31 -0
  131. package/dist/components/taro-block-core.js.map +1 -0
  132. package/dist/components/taro-button-core.d.ts +11 -0
  133. package/dist/components/taro-button-core.js +102 -0
  134. package/dist/components/taro-button-core.js.map +1 -0
  135. package/dist/components/taro-camera-core.d.ts +11 -0
  136. package/dist/components/taro-camera-core.js +35 -0
  137. package/dist/components/taro-camera-core.js.map +1 -0
  138. package/dist/components/taro-canvas-core.d.ts +11 -0
  139. package/dist/components/taro-canvas-core.js +57 -0
  140. package/dist/components/taro-canvas-core.js.map +1 -0
  141. package/dist/components/taro-checkbox-core.d.ts +11 -0
  142. package/dist/components/taro-checkbox-core.js +81 -0
  143. package/dist/components/taro-checkbox-core.js.map +1 -0
  144. package/dist/components/taro-checkbox-group-core.d.ts +11 -0
  145. package/dist/components/taro-checkbox-group-core.js +71 -0
  146. package/dist/components/taro-checkbox-group-core.js.map +1 -0
  147. package/dist/components/taro-comment-detail-core.d.ts +11 -0
  148. package/dist/components/taro-comment-detail-core.js +35 -0
  149. package/dist/components/taro-comment-detail-core.js.map +1 -0
  150. package/dist/components/taro-comment-list-core.d.ts +11 -0
  151. package/dist/components/taro-comment-list-core.js +35 -0
  152. package/dist/components/taro-comment-list-core.js.map +1 -0
  153. package/dist/components/taro-contact-button-core.d.ts +11 -0
  154. package/dist/components/taro-contact-button-core.js +35 -0
  155. package/dist/components/taro-contact-button-core.js.map +1 -0
  156. package/dist/components/taro-cover-image-core.d.ts +11 -0
  157. package/dist/components/taro-cover-image-core.js +52 -0
  158. package/dist/components/taro-cover-image-core.js.map +1 -0
  159. package/dist/components/taro-cover-view-core.d.ts +11 -0
  160. package/dist/components/taro-cover-view-core.js +89 -0
  161. package/dist/components/taro-cover-view-core.js.map +1 -0
  162. package/dist/components/taro-custom-wrapper-core.d.ts +11 -0
  163. package/dist/components/taro-custom-wrapper-core.js +31 -0
  164. package/dist/components/taro-custom-wrapper-core.js.map +1 -0
  165. package/dist/components/taro-editor-core.d.ts +11 -0
  166. package/dist/components/taro-editor-core.js +35 -0
  167. package/dist/components/taro-editor-core.js.map +1 -0
  168. package/dist/components/taro-follow-swan-core.d.ts +11 -0
  169. package/dist/components/taro-follow-swan-core.js +35 -0
  170. package/dist/components/taro-follow-swan-core.js.map +1 -0
  171. package/dist/components/taro-form-core.d.ts +11 -0
  172. package/dist/components/taro-form-core.js +140 -0
  173. package/dist/components/taro-form-core.js.map +1 -0
  174. package/dist/components/taro-functional-page-navigator-core.d.ts +11 -0
  175. package/dist/components/taro-functional-page-navigator-core.js +35 -0
  176. package/dist/components/taro-functional-page-navigator-core.js.map +1 -0
  177. package/dist/components/taro-icon-core.d.ts +11 -0
  178. package/dist/components/taro-icon-core.js +48 -0
  179. package/dist/components/taro-icon-core.js.map +1 -0
  180. package/dist/components/taro-image-core.d.ts +11 -0
  181. package/dist/components/taro-image-core.js +81 -0
  182. package/dist/components/taro-image-core.js.map +1 -0
  183. package/dist/components/taro-inline-payment-panel-core.d.ts +11 -0
  184. package/dist/components/taro-inline-payment-panel-core.js +35 -0
  185. package/dist/components/taro-inline-payment-panel-core.js.map +1 -0
  186. package/dist/components/taro-input-core.d.ts +11 -0
  187. package/dist/components/taro-input-core.js +246 -0
  188. package/dist/components/taro-input-core.js.map +1 -0
  189. package/dist/components/taro-keyboard-accessory-core.d.ts +11 -0
  190. package/dist/components/taro-keyboard-accessory-core.js +35 -0
  191. package/dist/components/taro-keyboard-accessory-core.js.map +1 -0
  192. package/dist/components/taro-label-core.d.ts +11 -0
  193. package/dist/components/taro-label-core.js +34 -0
  194. package/dist/components/taro-label-core.js.map +1 -0
  195. package/dist/components/taro-lifestyle-core.d.ts +11 -0
  196. package/dist/components/taro-lifestyle-core.js +35 -0
  197. package/dist/components/taro-lifestyle-core.js.map +1 -0
  198. package/dist/components/taro-like-core.d.ts +11 -0
  199. package/dist/components/taro-like-core.js +35 -0
  200. package/dist/components/taro-like-core.js.map +1 -0
  201. package/dist/components/taro-live-player-core.d.ts +11 -0
  202. package/dist/components/taro-live-player-core.js +35 -0
  203. package/dist/components/taro-live-player-core.js.map +1 -0
  204. package/dist/components/taro-live-pusher-core.d.ts +11 -0
  205. package/dist/components/taro-live-pusher-core.js +35 -0
  206. package/dist/components/taro-live-pusher-core.js.map +1 -0
  207. package/dist/components/taro-login-core.d.ts +11 -0
  208. package/dist/components/taro-login-core.js +35 -0
  209. package/dist/components/taro-login-core.js.map +1 -0
  210. package/dist/components/taro-lottie-core.d.ts +11 -0
  211. package/dist/components/taro-lottie-core.js +35 -0
  212. package/dist/components/taro-lottie-core.js.map +1 -0
  213. package/dist/components/taro-map-core.d.ts +11 -0
  214. package/dist/components/taro-map-core.js +35 -0
  215. package/dist/components/taro-map-core.js.map +1 -0
  216. package/dist/components/taro-match-media-core.d.ts +11 -0
  217. package/dist/components/taro-match-media-core.js +35 -0
  218. package/dist/components/taro-match-media-core.js.map +1 -0
  219. package/dist/components/taro-movable-area-core.d.ts +11 -0
  220. package/dist/components/taro-movable-area-core.js +175 -0
  221. package/dist/components/taro-movable-area-core.js.map +1 -0
  222. package/dist/components/taro-movable-view-core.d.ts +11 -0
  223. package/dist/components/taro-movable-view-core.js +361 -0
  224. package/dist/components/taro-movable-view-core.js.map +1 -0
  225. package/dist/components/taro-native-slot-core.d.ts +11 -0
  226. package/dist/components/taro-native-slot-core.js +35 -0
  227. package/dist/components/taro-native-slot-core.js.map +1 -0
  228. package/dist/components/taro-navigation-bar-core.d.ts +11 -0
  229. package/dist/components/taro-navigation-bar-core.js +35 -0
  230. package/dist/components/taro-navigation-bar-core.js.map +1 -0
  231. package/dist/components/taro-navigator-core.d.ts +11 -0
  232. package/dist/components/taro-navigator-core.js +96 -0
  233. package/dist/components/taro-navigator-core.js.map +1 -0
  234. package/dist/components/taro-official-account-core.d.ts +11 -0
  235. package/dist/components/taro-official-account-core.js +35 -0
  236. package/dist/components/taro-official-account-core.js.map +1 -0
  237. package/dist/components/taro-open-data-core.d.ts +11 -0
  238. package/dist/components/taro-open-data-core.js +35 -0
  239. package/dist/components/taro-open-data-core.js.map +1 -0
  240. package/dist/components/taro-page-container-core.d.ts +11 -0
  241. package/dist/components/taro-page-container-core.js +35 -0
  242. package/dist/components/taro-page-container-core.js.map +1 -0
  243. package/dist/components/taro-page-meta-core.d.ts +11 -0
  244. package/dist/components/taro-page-meta-core.js +35 -0
  245. package/dist/components/taro-page-meta-core.js.map +1 -0
  246. package/dist/components/taro-picker-core.d.ts +11 -0
  247. package/dist/components/taro-picker-core.js +538 -0
  248. package/dist/components/taro-picker-core.js.map +1 -0
  249. package/dist/components/taro-picker-group.d.ts +11 -0
  250. package/dist/components/taro-picker-group.js +8 -0
  251. package/dist/components/taro-picker-group.js.map +1 -0
  252. package/dist/components/taro-picker-view-column-core.d.ts +11 -0
  253. package/dist/components/taro-picker-view-column-core.js +115 -0
  254. package/dist/components/taro-picker-view-column-core.js.map +1 -0
  255. package/dist/components/taro-picker-view-core.d.ts +11 -0
  256. package/dist/components/taro-picker-view-core.js +114 -0
  257. package/dist/components/taro-picker-view-core.js.map +1 -0
  258. package/dist/components/taro-progress-core.d.ts +11 -0
  259. package/dist/components/taro-progress-core.js +62 -0
  260. package/dist/components/taro-progress-core.js.map +1 -0
  261. package/dist/components/taro-pull-to-refresh.d.ts +11 -0
  262. package/dist/components/taro-pull-to-refresh.js +284 -0
  263. package/dist/components/taro-pull-to-refresh.js.map +1 -0
  264. package/dist/components/taro-radio-core.d.ts +11 -0
  265. package/dist/components/taro-radio-core.js +83 -0
  266. package/dist/components/taro-radio-core.js.map +1 -0
  267. package/dist/components/taro-radio-group-core.d.ts +11 -0
  268. package/dist/components/taro-radio-group-core.js +82 -0
  269. package/dist/components/taro-radio-group-core.js.map +1 -0
  270. package/dist/components/taro-rich-text-core.d.ts +11 -0
  271. package/dist/components/taro-rich-text-core.js +86 -0
  272. package/dist/components/taro-rich-text-core.js.map +1 -0
  273. package/dist/components/taro-root-portal-core.d.ts +11 -0
  274. package/dist/components/taro-root-portal-core.js +35 -0
  275. package/dist/components/taro-root-portal-core.js.map +1 -0
  276. package/dist/components/taro-rtc-room-core.d.ts +11 -0
  277. package/dist/components/taro-rtc-room-core.js +35 -0
  278. package/dist/components/taro-rtc-room-core.js.map +1 -0
  279. package/dist/components/taro-rtc-room-item-core.d.ts +11 -0
  280. package/dist/components/taro-rtc-room-item-core.js +35 -0
  281. package/dist/components/taro-rtc-room-item-core.js.map +1 -0
  282. package/dist/components/taro-scroll-view-core.d.ts +11 -0
  283. package/dist/components/taro-scroll-view-core.js +184 -0
  284. package/dist/components/taro-scroll-view-core.js.map +1 -0
  285. package/dist/components/taro-share-element-core.d.ts +11 -0
  286. package/dist/components/taro-share-element-core.js +35 -0
  287. package/dist/components/taro-share-element-core.js.map +1 -0
  288. package/dist/components/taro-slider-core.d.ts +11 -0
  289. package/dist/components/taro-slider-core.js +196 -0
  290. package/dist/components/taro-slider-core.js.map +1 -0
  291. package/dist/components/taro-slot-core.d.ts +11 -0
  292. package/dist/components/taro-slot-core.js +35 -0
  293. package/dist/components/taro-slot-core.js.map +1 -0
  294. package/dist/components/taro-swiper-core.d.ts +11 -0
  295. package/dist/components/taro-swiper-core.js +10172 -0
  296. package/dist/components/taro-swiper-core.js.map +1 -0
  297. package/dist/components/taro-swiper-item-core.d.ts +11 -0
  298. package/dist/components/taro-swiper-item-core.js +70 -0
  299. package/dist/components/taro-swiper-item-core.js.map +1 -0
  300. package/dist/components/taro-switch-core.d.ts +11 -0
  301. package/dist/components/taro-switch-core.js +87 -0
  302. package/dist/components/taro-switch-core.js.map +1 -0
  303. package/dist/components/taro-tab-item-core.d.ts +11 -0
  304. package/dist/components/taro-tab-item-core.js +35 -0
  305. package/dist/components/taro-tab-item-core.js.map +1 -0
  306. package/dist/components/taro-tabbar.d.ts +11 -0
  307. package/dist/components/taro-tabbar.js +455 -0
  308. package/dist/components/taro-tabbar.js.map +1 -0
  309. package/dist/components/taro-tabs-core.d.ts +11 -0
  310. package/dist/components/taro-tabs-core.js +35 -0
  311. package/dist/components/taro-tabs-core.js.map +1 -0
  312. package/dist/components/taro-text-core.d.ts +11 -0
  313. package/dist/components/taro-text-core.js +41 -0
  314. package/dist/components/taro-text-core.js.map +1 -0
  315. package/dist/components/taro-textarea-core.d.ts +11 -0
  316. package/dist/components/taro-textarea-core.js +164 -0
  317. package/dist/components/taro-textarea-core.js.map +1 -0
  318. package/dist/components/taro-video-control.d.ts +11 -0
  319. package/dist/components/taro-video-control.js +8 -0
  320. package/dist/components/taro-video-control.js.map +1 -0
  321. package/dist/components/taro-video-core.d.ts +11 -0
  322. package/dist/components/taro-video-core.js +490 -0
  323. package/dist/components/taro-video-core.js.map +1 -0
  324. package/dist/components/taro-video-danmu.d.ts +11 -0
  325. package/dist/components/taro-video-danmu.js +8 -0
  326. package/dist/components/taro-video-danmu.js.map +1 -0
  327. package/dist/components/taro-view-core.d.ts +11 -0
  328. package/dist/components/taro-view-core.js +101 -0
  329. package/dist/components/taro-view-core.js.map +1 -0
  330. package/dist/components/taro-voip-room-core.d.ts +11 -0
  331. package/dist/components/taro-voip-room-core.js +35 -0
  332. package/dist/components/taro-voip-room-core.js.map +1 -0
  333. package/dist/components/taro-web-view-core.d.ts +11 -0
  334. package/dist/components/taro-web-view-core.js +46 -0
  335. package/dist/components/taro-web-view-core.js.map +1 -0
  336. package/dist/components/video-control.js +233 -0
  337. package/dist/components/video-control.js.map +1 -0
  338. package/dist/components/video-danmu.js +110 -0
  339. package/dist/components/video-danmu.js.map +1 -0
  340. package/dist/esm/index-c948674f.js +2037 -0
  341. package/dist/esm/index-c948674f.js.map +1 -0
  342. package/dist/esm/index-d1b03e47.js +36 -0
  343. package/dist/esm/index-d1b03e47.js.map +1 -0
  344. package/dist/esm/loader.js +4 -3
  345. package/dist/esm/loader.js.map +1 -1
  346. package/dist/esm/polyfills/css-shim.js +1 -1
  347. package/dist/esm/taro-ad-core.entry.js +1 -1
  348. package/dist/esm/taro-ad-custom-core.entry.js +1 -1
  349. package/dist/esm/taro-animation-video-core.entry.js +1 -1
  350. package/dist/esm/taro-animation-view-core.entry.js +1 -1
  351. package/dist/esm/taro-ar-camera-core.entry.js +1 -1
  352. package/dist/esm/taro-audio-core.entry.js +1 -1
  353. package/dist/esm/taro-aweme-data-core.entry.js +1 -1
  354. package/dist/esm/taro-block-core.entry.js +1 -1
  355. package/dist/esm/taro-button-core.entry.js +1 -1
  356. package/dist/esm/taro-camera-core.entry.js +1 -1
  357. package/dist/esm/taro-canvas-core.entry.js +1 -1
  358. package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
  359. package/dist/esm/taro-comment-detail-core.entry.js +1 -1
  360. package/dist/esm/taro-comment-list-core.entry.js +1 -1
  361. package/dist/esm/taro-components.js +4 -3
  362. package/dist/esm/taro-components.js.map +1 -1
  363. package/dist/esm/taro-contact-button-core.entry.js +1 -1
  364. package/dist/esm/taro-cover-image-core.entry.js +1 -1
  365. package/dist/esm/taro-cover-view-core.entry.js +1 -1
  366. package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
  367. package/dist/esm/taro-editor-core.entry.js +1 -1
  368. package/dist/esm/taro-follow-swan-core.entry.js +1 -1
  369. package/dist/esm/taro-form-core.entry.js +1 -1
  370. package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
  371. package/dist/esm/taro-icon-core.entry.js +1 -1
  372. package/dist/esm/taro-image-core.entry.js +1 -1
  373. package/dist/esm/taro-inline-payment-panel-core.entry.js +1 -1
  374. package/dist/esm/taro-input-core.entry.js +1 -1
  375. package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
  376. package/dist/esm/taro-label-core.entry.js +1 -1
  377. package/dist/esm/taro-lifestyle-core.entry.js +1 -1
  378. package/dist/esm/taro-like-core.entry.js +1 -1
  379. package/dist/esm/taro-live-player-core.entry.js +1 -1
  380. package/dist/esm/taro-live-pusher-core.entry.js +1 -1
  381. package/dist/esm/taro-login-core.entry.js +1 -1
  382. package/dist/esm/taro-lottie-core.entry.js +1 -1
  383. package/dist/esm/taro-map-core.entry.js +1 -1
  384. package/dist/esm/taro-match-media-core.entry.js +1 -1
  385. package/dist/esm/taro-movable-area-core_2.entry.js +1 -1
  386. package/dist/esm/taro-native-slot-core.entry.js +1 -1
  387. package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
  388. package/dist/esm/taro-navigator-core.entry.js +1 -1
  389. package/dist/esm/taro-official-account-core.entry.js +1 -1
  390. package/dist/esm/taro-open-data-core.entry.js +1 -1
  391. package/dist/esm/taro-page-container-core.entry.js +1 -1
  392. package/dist/esm/taro-page-meta-core.entry.js +1 -1
  393. package/dist/esm/taro-picker-core_2.entry.js +1 -1
  394. package/dist/esm/taro-picker-view-column-core_2.entry.js +2 -2
  395. package/dist/esm/taro-progress-core.entry.js +1 -1
  396. package/dist/esm/taro-pull-to-refresh.entry.js +1 -1
  397. package/dist/esm/taro-radio-core_2.entry.js +1 -1
  398. package/dist/esm/taro-rich-text-core.entry.js +1 -1
  399. package/dist/esm/taro-root-portal-core.entry.js +1 -1
  400. package/dist/esm/taro-rtc-room-core.entry.js +1 -1
  401. package/dist/esm/taro-rtc-room-item-core.entry.js +1 -1
  402. package/dist/esm/taro-scroll-view-core.entry.js +2 -2
  403. package/dist/esm/taro-share-element-core.entry.js +1 -1
  404. package/dist/esm/taro-slider-core.entry.js +1 -1
  405. package/dist/esm/taro-slot-core.entry.js +1 -1
  406. package/dist/esm/taro-swiper-core_2.entry.js +49 -8
  407. package/dist/esm/taro-swiper-core_2.entry.js.map +1 -1
  408. package/dist/esm/taro-switch-core.entry.js +1 -1
  409. package/dist/esm/taro-tab-item-core.entry.js +1 -1
  410. package/dist/esm/taro-tabbar.entry.js +16 -18
  411. package/dist/esm/taro-tabbar.entry.js.map +1 -1
  412. package/dist/esm/taro-tabs-core.entry.js +1 -1
  413. package/dist/esm/taro-text-core.entry.js +1 -1
  414. package/dist/esm/taro-textarea-core.entry.js +1 -1
  415. package/dist/esm/taro-video-control_3.entry.js +6 -2
  416. package/dist/esm/taro-video-control_3.entry.js.map +1 -1
  417. package/dist/esm/taro-view-core.entry.js +1 -1
  418. package/dist/esm/taro-voip-room-core.entry.js +1 -1
  419. package/dist/esm/taro-web-view-core.entry.js +1 -1
  420. package/dist/esm-es5/helper-3d0ecf0f.js.map +1 -1
  421. package/dist/esm-es5/hls-221423a1.js.map +1 -1
  422. package/dist/esm-es5/index-1d8e8acd.js.map +1 -1
  423. package/dist/esm-es5/index-c948674f.js +3 -0
  424. package/dist/esm-es5/index-c948674f.js.map +1 -0
  425. package/dist/esm-es5/index-d1b03e47.js +2 -0
  426. package/dist/esm-es5/index-d1b03e47.js.map +1 -0
  427. package/dist/esm-es5/index.js.map +1 -1
  428. package/dist/esm-es5/intersection-observer-8e4c7135.js.map +1 -1
  429. package/dist/esm-es5/loader.js +1 -1
  430. package/dist/esm-es5/loader.js.map +1 -1
  431. package/dist/esm-es5/taro-ad-core.entry.js +1 -1
  432. package/dist/esm-es5/taro-ad-core.entry.js.map +1 -1
  433. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
  434. package/dist/esm-es5/taro-ad-custom-core.entry.js.map +1 -1
  435. package/dist/esm-es5/taro-animation-video-core.entry.js +1 -1
  436. package/dist/esm-es5/taro-animation-video-core.entry.js.map +1 -1
  437. package/dist/esm-es5/taro-animation-view-core.entry.js +1 -1
  438. package/dist/esm-es5/taro-animation-view-core.entry.js.map +1 -1
  439. package/dist/esm-es5/taro-ar-camera-core.entry.js +1 -1
  440. package/dist/esm-es5/taro-ar-camera-core.entry.js.map +1 -1
  441. package/dist/esm-es5/taro-audio-core.entry.js +1 -1
  442. package/dist/esm-es5/taro-audio-core.entry.js.map +1 -1
  443. package/dist/esm-es5/taro-aweme-data-core.entry.js +1 -1
  444. package/dist/esm-es5/taro-aweme-data-core.entry.js.map +1 -1
  445. package/dist/esm-es5/taro-block-core.entry.js +1 -1
  446. package/dist/esm-es5/taro-block-core.entry.js.map +1 -1
  447. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  448. package/dist/esm-es5/taro-button-core.entry.js.map +1 -1
  449. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  450. package/dist/esm-es5/taro-camera-core.entry.js.map +1 -1
  451. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  452. package/dist/esm-es5/taro-canvas-core.entry.js.map +1 -1
  453. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  454. package/dist/esm-es5/taro-checkbox-core_2.entry.js.map +1 -1
  455. package/dist/esm-es5/taro-comment-detail-core.entry.js +1 -1
  456. package/dist/esm-es5/taro-comment-detail-core.entry.js.map +1 -1
  457. package/dist/esm-es5/taro-comment-list-core.entry.js +1 -1
  458. package/dist/esm-es5/taro-comment-list-core.entry.js.map +1 -1
  459. package/dist/esm-es5/taro-components.js +1 -1
  460. package/dist/esm-es5/taro-components.js.map +1 -1
  461. package/dist/esm-es5/taro-contact-button-core.entry.js +1 -1
  462. package/dist/esm-es5/taro-contact-button-core.entry.js.map +1 -1
  463. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
  464. package/dist/esm-es5/taro-cover-image-core.entry.js.map +1 -1
  465. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  466. package/dist/esm-es5/taro-cover-view-core.entry.js.map +1 -1
  467. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
  468. package/dist/esm-es5/taro-custom-wrapper-core.entry.js.map +1 -1
  469. package/dist/esm-es5/taro-editor-core.entry.js +1 -1
  470. package/dist/esm-es5/taro-editor-core.entry.js.map +1 -1
  471. package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
  472. package/dist/esm-es5/taro-follow-swan-core.entry.js.map +1 -1
  473. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  474. package/dist/esm-es5/taro-form-core.entry.js.map +1 -1
  475. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
  476. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js.map +1 -1
  477. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  478. package/dist/esm-es5/taro-icon-core.entry.js.map +1 -1
  479. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  480. package/dist/esm-es5/taro-image-core.entry.js.map +1 -1
  481. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +1 -1
  482. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js.map +1 -1
  483. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  484. package/dist/esm-es5/taro-input-core.entry.js.map +1 -1
  485. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
  486. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js.map +1 -1
  487. package/dist/esm-es5/taro-label-core.entry.js +1 -1
  488. package/dist/esm-es5/taro-label-core.entry.js.map +1 -1
  489. package/dist/esm-es5/taro-lifestyle-core.entry.js +1 -1
  490. package/dist/esm-es5/taro-lifestyle-core.entry.js.map +1 -1
  491. package/dist/esm-es5/taro-like-core.entry.js +1 -1
  492. package/dist/esm-es5/taro-like-core.entry.js.map +1 -1
  493. package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
  494. package/dist/esm-es5/taro-live-player-core.entry.js.map +1 -1
  495. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
  496. package/dist/esm-es5/taro-live-pusher-core.entry.js.map +1 -1
  497. package/dist/esm-es5/taro-login-core.entry.js +1 -1
  498. package/dist/esm-es5/taro-login-core.entry.js.map +1 -1
  499. package/dist/esm-es5/taro-lottie-core.entry.js +1 -1
  500. package/dist/esm-es5/taro-lottie-core.entry.js.map +1 -1
  501. package/dist/esm-es5/taro-map-core.entry.js +1 -1
  502. package/dist/esm-es5/taro-map-core.entry.js.map +1 -1
  503. package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
  504. package/dist/esm-es5/taro-match-media-core.entry.js.map +1 -1
  505. package/dist/esm-es5/taro-movable-area-core_2.entry.js +1 -1
  506. package/dist/esm-es5/taro-movable-area-core_2.entry.js.map +1 -1
  507. package/dist/esm-es5/taro-native-slot-core.entry.js +1 -1
  508. package/dist/esm-es5/taro-native-slot-core.entry.js.map +1 -1
  509. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
  510. package/dist/esm-es5/taro-navigation-bar-core.entry.js.map +1 -1
  511. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  512. package/dist/esm-es5/taro-navigator-core.entry.js.map +1 -1
  513. package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
  514. package/dist/esm-es5/taro-official-account-core.entry.js.map +1 -1
  515. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  516. package/dist/esm-es5/taro-open-data-core.entry.js.map +1 -1
  517. package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
  518. package/dist/esm-es5/taro-page-container-core.entry.js.map +1 -1
  519. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
  520. package/dist/esm-es5/taro-page-meta-core.entry.js.map +1 -1
  521. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  522. package/dist/esm-es5/taro-picker-core_2.entry.js.map +1 -1
  523. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
  524. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js.map +1 -1
  525. package/dist/esm-es5/taro-progress-core.entry.js +1 -1
  526. package/dist/esm-es5/taro-progress-core.entry.js.map +1 -1
  527. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
  528. package/dist/esm-es5/taro-pull-to-refresh.entry.js.map +1 -1
  529. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  530. package/dist/esm-es5/taro-radio-core_2.entry.js.map +1 -1
  531. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  532. package/dist/esm-es5/taro-rich-text-core.entry.js.map +1 -1
  533. package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
  534. package/dist/esm-es5/taro-root-portal-core.entry.js.map +1 -1
  535. package/dist/esm-es5/taro-rtc-room-core.entry.js +1 -1
  536. package/dist/esm-es5/taro-rtc-room-core.entry.js.map +1 -1
  537. package/dist/esm-es5/taro-rtc-room-item-core.entry.js +1 -1
  538. package/dist/esm-es5/taro-rtc-room-item-core.entry.js.map +1 -1
  539. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  540. package/dist/esm-es5/taro-scroll-view-core.entry.js.map +1 -1
  541. package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
  542. package/dist/esm-es5/taro-share-element-core.entry.js.map +1 -1
  543. package/dist/esm-es5/taro-slider-core.entry.js +1 -1
  544. package/dist/esm-es5/taro-slider-core.entry.js.map +1 -1
  545. package/dist/esm-es5/taro-slot-core.entry.js +1 -1
  546. package/dist/esm-es5/taro-slot-core.entry.js.map +1 -1
  547. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  548. package/dist/esm-es5/taro-swiper-core_2.entry.js.map +1 -1
  549. package/dist/esm-es5/taro-switch-core.entry.js +1 -1
  550. package/dist/esm-es5/taro-switch-core.entry.js.map +1 -1
  551. package/dist/esm-es5/taro-tab-item-core.entry.js +1 -1
  552. package/dist/esm-es5/taro-tab-item-core.entry.js.map +1 -1
  553. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  554. package/dist/esm-es5/taro-tabbar.entry.js.map +1 -1
  555. package/dist/esm-es5/taro-tabs-core.entry.js +1 -1
  556. package/dist/esm-es5/taro-tabs-core.entry.js.map +1 -1
  557. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  558. package/dist/esm-es5/taro-text-core.entry.js.map +1 -1
  559. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  560. package/dist/esm-es5/taro-textarea-core.entry.js.map +1 -1
  561. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  562. package/dist/esm-es5/taro-video-control_3.entry.js.map +1 -1
  563. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  564. package/dist/esm-es5/taro-view-core.entry.js.map +1 -1
  565. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
  566. package/dist/esm-es5/taro-voip-room-core.entry.js.map +1 -1
  567. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  568. package/dist/esm-es5/taro-web-view-core.entry.js.map +1 -1
  569. package/dist/taro-components/index.esm.js.map +1 -1
  570. package/dist/taro-components/p-020bcd8c.entry.js +2 -0
  571. package/dist/taro-components/p-020bcd8c.entry.js.map +1 -0
  572. package/dist/taro-components/p-03d4de13.entry.js +2 -0
  573. package/dist/taro-components/p-03d4de13.entry.js.map +1 -0
  574. package/dist/taro-components/p-05f3f84a.entry.js +2 -0
  575. package/dist/taro-components/p-05f3f84a.entry.js.map +1 -0
  576. package/dist/taro-components/p-087bf23a.system.entry.js +2 -0
  577. package/dist/taro-components/p-087bf23a.system.entry.js.map +1 -0
  578. package/dist/taro-components/p-0895120a.system.entry.js +2 -0
  579. package/dist/taro-components/p-0895120a.system.entry.js.map +1 -0
  580. package/dist/taro-components/p-08bb8dfc.system.entry.js +2 -0
  581. package/dist/taro-components/p-08bb8dfc.system.entry.js.map +1 -0
  582. package/dist/taro-components/p-09db02e6.entry.js +2 -0
  583. package/dist/taro-components/p-09db02e6.entry.js.map +1 -0
  584. package/dist/taro-components/p-0a165ad3.system.entry.js +2 -0
  585. package/dist/taro-components/p-0a165ad3.system.entry.js.map +1 -0
  586. package/dist/taro-components/p-0a9b984e.system.entry.js +2 -0
  587. package/dist/taro-components/p-0a9b984e.system.entry.js.map +1 -0
  588. package/dist/taro-components/p-0accc602.entry.js +2 -0
  589. package/dist/taro-components/p-0accc602.entry.js.map +1 -0
  590. package/dist/taro-components/p-0faf45d5.entry.js +2 -0
  591. package/dist/taro-components/p-0faf45d5.entry.js.map +1 -0
  592. package/dist/taro-components/p-10be7fb5.system.entry.js +2 -0
  593. package/dist/taro-components/p-10be7fb5.system.entry.js.map +1 -0
  594. package/dist/taro-components/p-15e45ed6.system.js.map +1 -1
  595. package/dist/taro-components/p-17302fe9.system.entry.js +2 -0
  596. package/dist/taro-components/p-17302fe9.system.entry.js.map +1 -0
  597. package/dist/taro-components/p-1743a04b.system.js.map +1 -1
  598. package/dist/taro-components/p-1941d333.system.entry.js +2 -0
  599. package/dist/taro-components/p-1941d333.system.entry.js.map +1 -0
  600. package/dist/taro-components/p-19e87e18.entry.js +2 -0
  601. package/dist/taro-components/p-19e87e18.entry.js.map +1 -0
  602. package/dist/taro-components/p-1a0e1932.system.js +3 -0
  603. package/dist/taro-components/p-1a0e1932.system.js.map +1 -0
  604. package/dist/taro-components/p-1c320250.system.entry.js +2 -0
  605. package/dist/taro-components/p-1c320250.system.entry.js.map +1 -0
  606. package/dist/taro-components/p-1c446c65.system.js +2 -0
  607. package/dist/taro-components/p-1c446c65.system.js.map +1 -0
  608. package/dist/taro-components/p-2024e133.system.entry.js +2 -0
  609. package/dist/taro-components/p-2024e133.system.entry.js.map +1 -0
  610. package/dist/taro-components/p-2049bdc4.entry.js +2 -0
  611. package/dist/taro-components/p-2049bdc4.entry.js.map +1 -0
  612. package/dist/taro-components/p-2357313b.entry.js +2 -0
  613. package/dist/taro-components/p-2357313b.entry.js.map +1 -0
  614. package/dist/taro-components/p-24c2fd23.entry.js +2 -0
  615. package/dist/taro-components/p-24c2fd23.entry.js.map +1 -0
  616. package/dist/taro-components/p-26889f3c.system.entry.js +2 -0
  617. package/dist/taro-components/p-26889f3c.system.entry.js.map +1 -0
  618. package/dist/taro-components/p-281278cf.entry.js +2 -0
  619. package/dist/taro-components/p-281278cf.entry.js.map +1 -0
  620. package/dist/taro-components/p-30f32fa2.system.entry.js +2 -0
  621. package/dist/taro-components/p-30f32fa2.system.entry.js.map +1 -0
  622. package/dist/taro-components/p-30fe0e81.system.entry.js +2 -0
  623. package/dist/taro-components/p-30fe0e81.system.entry.js.map +1 -0
  624. package/dist/taro-components/p-33223303.system.entry.js +2 -0
  625. package/dist/taro-components/p-33223303.system.entry.js.map +1 -0
  626. package/dist/taro-components/p-386ae2b2.entry.js +2 -0
  627. package/dist/taro-components/p-386ae2b2.entry.js.map +1 -0
  628. package/dist/taro-components/p-3b1d2d37.system.js.map +1 -1
  629. package/dist/taro-components/p-3bce88d9.entry.js +2 -0
  630. package/dist/taro-components/p-3bce88d9.entry.js.map +1 -0
  631. package/dist/taro-components/p-3f07f3d3.entry.js +2 -0
  632. package/dist/taro-components/p-3f07f3d3.entry.js.map +1 -0
  633. package/dist/taro-components/p-4086e546.system.entry.js +2 -0
  634. package/dist/taro-components/p-4086e546.system.entry.js.map +1 -0
  635. package/dist/taro-components/p-4190e20b.system.entry.js +2 -0
  636. package/dist/taro-components/p-4190e20b.system.entry.js.map +1 -0
  637. package/dist/taro-components/p-4263c9d9.entry.js +2 -0
  638. package/dist/taro-components/p-4263c9d9.entry.js.map +1 -0
  639. package/dist/taro-components/p-46244579.system.entry.js +2 -0
  640. package/dist/taro-components/p-46244579.system.entry.js.map +1 -0
  641. package/dist/taro-components/p-4915fdc1.system.entry.js +2 -0
  642. package/dist/taro-components/p-4915fdc1.system.entry.js.map +1 -0
  643. package/dist/taro-components/p-4a462c95.entry.js +2 -0
  644. package/dist/taro-components/p-4a462c95.entry.js.map +1 -0
  645. package/dist/taro-components/p-4bc85eb7.entry.js +2 -0
  646. package/dist/taro-components/p-4bc85eb7.entry.js.map +1 -0
  647. package/dist/taro-components/p-4d0da795.system.entry.js +2 -0
  648. package/dist/taro-components/p-4d0da795.system.entry.js.map +1 -0
  649. package/dist/taro-components/p-50ea2036.system.js.map +1 -1
  650. package/dist/taro-components/p-518146fd.system.entry.js +2 -0
  651. package/dist/taro-components/p-518146fd.system.entry.js.map +1 -0
  652. package/dist/taro-components/p-51b6fc09.system.entry.js +2 -0
  653. package/dist/taro-components/p-51b6fc09.system.entry.js.map +1 -0
  654. package/dist/taro-components/p-51caa3f3.entry.js +2 -0
  655. package/dist/taro-components/p-51caa3f3.entry.js.map +1 -0
  656. package/dist/taro-components/p-5208792d.entry.js +2 -0
  657. package/dist/taro-components/p-5208792d.entry.js.map +1 -0
  658. package/dist/taro-components/p-56da1da3.system.entry.js +2 -0
  659. package/dist/taro-components/p-56da1da3.system.entry.js.map +1 -0
  660. package/dist/taro-components/p-58877ef2.system.entry.js +2 -0
  661. package/dist/taro-components/p-58877ef2.system.entry.js.map +1 -0
  662. package/dist/taro-components/p-59590806.system.entry.js +2 -0
  663. package/dist/taro-components/p-59590806.system.entry.js.map +1 -0
  664. package/dist/taro-components/p-5beca045.system.entry.js +2 -0
  665. package/dist/taro-components/p-5beca045.system.entry.js.map +1 -0
  666. package/dist/taro-components/p-5d3acf86.entry.js +2 -0
  667. package/dist/taro-components/p-5d3acf86.entry.js.map +1 -0
  668. package/dist/taro-components/p-5f3c65f0.entry.js +2 -0
  669. package/dist/taro-components/p-5f3c65f0.entry.js.map +1 -0
  670. package/dist/taro-components/p-603ceecd.entry.js +2 -0
  671. package/dist/taro-components/p-603ceecd.entry.js.map +1 -0
  672. package/dist/taro-components/p-61f225ef.system.js.map +1 -1
  673. package/dist/taro-components/p-623b3eb6.system.entry.js +2 -0
  674. package/dist/taro-components/p-623b3eb6.system.entry.js.map +1 -0
  675. package/dist/taro-components/p-651586f8.system.entry.js +2 -0
  676. package/dist/taro-components/p-651586f8.system.entry.js.map +1 -0
  677. package/dist/taro-components/p-663e27a0.entry.js +2 -0
  678. package/dist/taro-components/p-663e27a0.entry.js.map +1 -0
  679. package/dist/taro-components/p-66b07ac0.entry.js +2 -0
  680. package/dist/taro-components/p-66b07ac0.entry.js.map +1 -0
  681. package/dist/taro-components/p-67c3a0ba.entry.js +2 -0
  682. package/dist/taro-components/p-67c3a0ba.entry.js.map +1 -0
  683. package/dist/taro-components/p-69f6784d.system.entry.js +2 -0
  684. package/dist/taro-components/p-69f6784d.system.entry.js.map +1 -0
  685. package/dist/taro-components/p-69fa7272.system.entry.js +2 -0
  686. package/dist/taro-components/p-69fa7272.system.entry.js.map +1 -0
  687. package/dist/taro-components/p-6a96da58.js.map +1 -1
  688. package/dist/taro-components/p-6bb1fdf2.entry.js +2 -0
  689. package/dist/taro-components/p-6bb1fdf2.entry.js.map +1 -0
  690. package/dist/taro-components/p-6dae898a.system.entry.js +2 -0
  691. package/dist/taro-components/p-6dae898a.system.entry.js.map +1 -0
  692. package/dist/taro-components/p-6de64a4b.system.entry.js +2 -0
  693. package/dist/taro-components/p-6de64a4b.system.entry.js.map +1 -0
  694. package/dist/taro-components/p-6f048097.system.entry.js +2 -0
  695. package/dist/taro-components/p-6f048097.system.entry.js.map +1 -0
  696. package/dist/taro-components/p-6f214fc3.system.entry.js +2 -0
  697. package/dist/taro-components/p-6f214fc3.system.entry.js.map +1 -0
  698. package/dist/taro-components/p-71155a2c.entry.js +2 -0
  699. package/dist/taro-components/p-71155a2c.entry.js.map +1 -0
  700. package/dist/taro-components/p-72f327e1.js.map +1 -1
  701. package/dist/taro-components/p-736053bb.system.entry.js +2 -0
  702. package/dist/taro-components/p-736053bb.system.entry.js.map +1 -0
  703. package/dist/taro-components/p-74bf8246.system.entry.js +2 -0
  704. package/dist/taro-components/p-74bf8246.system.entry.js.map +1 -0
  705. package/dist/taro-components/p-76724e58.js.map +1 -1
  706. package/dist/taro-components/p-76e6fbff.entry.js +2 -0
  707. package/dist/taro-components/p-76e6fbff.entry.js.map +1 -0
  708. package/dist/taro-components/p-780870eb.entry.js +2 -0
  709. package/dist/taro-components/p-780870eb.entry.js.map +1 -0
  710. package/dist/taro-components/p-78c30850.system.entry.js +2 -0
  711. package/dist/taro-components/p-78c30850.system.entry.js.map +1 -0
  712. package/dist/taro-components/p-78e3ebb9.js +3 -0
  713. package/dist/taro-components/p-78e3ebb9.js.map +1 -0
  714. package/dist/taro-components/p-7a2f11dc.entry.js +2 -0
  715. package/dist/taro-components/p-7a2f11dc.entry.js.map +1 -0
  716. package/dist/taro-components/p-7c1fec76.entry.js +2 -0
  717. package/dist/taro-components/p-7c1fec76.entry.js.map +1 -0
  718. package/dist/taro-components/p-7c6f0d5c.entry.js +2 -0
  719. package/dist/taro-components/p-7c6f0d5c.entry.js.map +1 -0
  720. package/dist/taro-components/p-7dd9c8da.system.entry.js +2 -0
  721. package/dist/taro-components/p-7dd9c8da.system.entry.js.map +1 -0
  722. package/dist/taro-components/p-8027e1c6.system.entry.js +2 -0
  723. package/dist/taro-components/p-8027e1c6.system.entry.js.map +1 -0
  724. package/dist/taro-components/p-828bd091.entry.js +2 -0
  725. package/dist/taro-components/p-828bd091.entry.js.map +1 -0
  726. package/dist/taro-components/p-8425ff09.entry.js +2 -0
  727. package/dist/taro-components/p-8425ff09.entry.js.map +1 -0
  728. package/dist/taro-components/p-8594d1e5.entry.js +2 -0
  729. package/dist/taro-components/p-8594d1e5.entry.js.map +1 -0
  730. package/dist/taro-components/p-8625c29c.entry.js +2 -0
  731. package/dist/taro-components/p-8625c29c.entry.js.map +1 -0
  732. package/dist/taro-components/p-88d64daa.system.entry.js +2 -0
  733. package/dist/taro-components/p-88d64daa.system.entry.js.map +1 -0
  734. package/dist/taro-components/p-88fbacdb.entry.js +2 -0
  735. package/dist/taro-components/p-88fbacdb.entry.js.map +1 -0
  736. package/dist/taro-components/p-895cd7c9.system.entry.js +2 -0
  737. package/dist/taro-components/p-895cd7c9.system.entry.js.map +1 -0
  738. package/dist/taro-components/p-8d2101be.system.entry.js +2 -0
  739. package/dist/taro-components/p-8d2101be.system.entry.js.map +1 -0
  740. package/dist/taro-components/p-8e5cc8fe.system.entry.js +2 -0
  741. package/dist/taro-components/p-8e5cc8fe.system.entry.js.map +1 -0
  742. package/dist/taro-components/p-908ddbb0.entry.js +2 -0
  743. package/dist/taro-components/p-908ddbb0.entry.js.map +1 -0
  744. package/dist/taro-components/p-91f8cd40.entry.js +2 -0
  745. package/dist/taro-components/p-91f8cd40.entry.js.map +1 -0
  746. package/dist/taro-components/p-93ccd68a.entry.js +2 -0
  747. package/dist/taro-components/p-93ccd68a.entry.js.map +1 -0
  748. package/dist/taro-components/p-955fbcfa.entry.js +2 -0
  749. package/dist/taro-components/p-955fbcfa.entry.js.map +1 -0
  750. package/dist/taro-components/p-95f70aea.system.entry.js +2 -0
  751. package/dist/taro-components/p-95f70aea.system.entry.js.map +1 -0
  752. package/dist/taro-components/p-97782cdd.system.entry.js +2 -0
  753. package/dist/taro-components/p-97782cdd.system.entry.js.map +1 -0
  754. package/dist/taro-components/p-982e431d.entry.js +2 -0
  755. package/dist/taro-components/p-982e431d.entry.js.map +1 -0
  756. package/dist/taro-components/p-9d4fa0d3.system.entry.js +2 -0
  757. package/dist/taro-components/p-9d4fa0d3.system.entry.js.map +1 -0
  758. package/dist/taro-components/p-a23a21e1.entry.js +2 -0
  759. package/dist/taro-components/p-a23a21e1.entry.js.map +1 -0
  760. package/dist/taro-components/p-a7789ed6.entry.js +2 -0
  761. package/dist/taro-components/p-a7789ed6.entry.js.map +1 -0
  762. package/dist/taro-components/p-adc37a00.entry.js +2 -0
  763. package/dist/taro-components/p-adc37a00.entry.js.map +1 -0
  764. package/dist/taro-components/p-ae3f1ed4.system.entry.js +2 -0
  765. package/dist/taro-components/p-ae3f1ed4.system.entry.js.map +1 -0
  766. package/dist/taro-components/p-b1249ebb.system.entry.js +2 -0
  767. package/dist/taro-components/p-b1249ebb.system.entry.js.map +1 -0
  768. package/dist/taro-components/p-b1c972e2.system.entry.js +2 -0
  769. package/dist/taro-components/p-b1c972e2.system.entry.js.map +1 -0
  770. package/dist/taro-components/p-b2bb02d7.system.entry.js +2 -0
  771. package/dist/taro-components/p-b2bb02d7.system.entry.js.map +1 -0
  772. package/dist/taro-components/p-b313c11a.entry.js +2 -0
  773. package/dist/taro-components/p-b313c11a.entry.js.map +1 -0
  774. package/dist/taro-components/p-b39b973e.entry.js +2 -0
  775. package/dist/taro-components/p-b39b973e.entry.js.map +1 -0
  776. package/dist/taro-components/p-b4419d86.entry.js +2 -0
  777. package/dist/taro-components/p-b4419d86.entry.js.map +1 -0
  778. package/dist/taro-components/p-b8ba5d0a.entry.js +2 -0
  779. package/dist/taro-components/p-b8ba5d0a.entry.js.map +1 -0
  780. package/dist/taro-components/p-bac3deb0.system.entry.js +2 -0
  781. package/dist/taro-components/p-bac3deb0.system.entry.js.map +1 -0
  782. package/dist/taro-components/p-bba8c3a7.system.entry.js +2 -0
  783. package/dist/taro-components/p-bba8c3a7.system.entry.js.map +1 -0
  784. package/dist/taro-components/p-bd5177d3.system.js +2 -0
  785. package/dist/taro-components/p-bd5177d3.system.js.map +1 -0
  786. package/dist/taro-components/p-c0bb8610.entry.js +2 -0
  787. package/dist/taro-components/p-c0bb8610.entry.js.map +1 -0
  788. package/dist/taro-components/p-c1c0e16d.entry.js +2 -0
  789. package/dist/taro-components/p-c1c0e16d.entry.js.map +1 -0
  790. package/dist/taro-components/p-c2ac8f08.entry.js +2 -0
  791. package/dist/taro-components/p-c2ac8f08.entry.js.map +1 -0
  792. package/dist/taro-components/p-c33733b3.system.entry.js +2 -0
  793. package/dist/taro-components/p-c33733b3.system.entry.js.map +1 -0
  794. package/dist/taro-components/p-c3e98fdf.entry.js +2 -0
  795. package/dist/taro-components/p-c3e98fdf.entry.js.map +1 -0
  796. package/dist/taro-components/p-c4fdb669.system.entry.js +2 -0
  797. package/dist/taro-components/p-c4fdb669.system.entry.js.map +1 -0
  798. package/dist/taro-components/p-c50087fd.entry.js +2 -0
  799. package/dist/taro-components/p-c50087fd.entry.js.map +1 -0
  800. package/dist/taro-components/p-c586a796.system.entry.js +2 -0
  801. package/dist/taro-components/p-c586a796.system.entry.js.map +1 -0
  802. package/dist/taro-components/p-c6e6dab1.system.entry.js +2 -0
  803. package/dist/taro-components/p-c6e6dab1.system.entry.js.map +1 -0
  804. package/dist/taro-components/p-c70dd956.system.entry.js +2 -0
  805. package/dist/taro-components/p-c70dd956.system.entry.js.map +1 -0
  806. package/dist/taro-components/p-d1d19ce9.entry.js +2 -0
  807. package/dist/taro-components/p-d1d19ce9.entry.js.map +1 -0
  808. package/dist/taro-components/p-d3c7f87d.js +2 -0
  809. package/dist/taro-components/p-d3c7f87d.js.map +1 -0
  810. package/dist/taro-components/p-d5234e7e.js.map +1 -1
  811. package/dist/taro-components/p-d562aae3.entry.js +2 -0
  812. package/dist/taro-components/p-d562aae3.entry.js.map +1 -0
  813. package/dist/taro-components/p-d61d3394.entry.js +2 -0
  814. package/dist/taro-components/p-d61d3394.entry.js.map +1 -0
  815. package/dist/taro-components/p-d621d190.entry.js +2 -0
  816. package/dist/taro-components/p-d621d190.entry.js.map +1 -0
  817. package/dist/taro-components/p-d8c8c63f.entry.js +2 -0
  818. package/dist/taro-components/p-d8c8c63f.entry.js.map +1 -0
  819. package/dist/taro-components/p-da5cdbf5.system.entry.js +2 -0
  820. package/dist/taro-components/p-da5cdbf5.system.entry.js.map +1 -0
  821. package/dist/taro-components/p-de2d8e2e.system.entry.js +2 -0
  822. package/dist/taro-components/p-de2d8e2e.system.entry.js.map +1 -0
  823. package/dist/taro-components/p-de356b29.system.entry.js +2 -0
  824. package/dist/taro-components/p-de356b29.system.entry.js.map +1 -0
  825. package/dist/taro-components/p-e0e4a403.entry.js +2 -0
  826. package/dist/taro-components/p-e0e4a403.entry.js.map +1 -0
  827. package/dist/taro-components/p-e3f8265d.system.entry.js +2 -0
  828. package/dist/taro-components/p-e3f8265d.system.entry.js.map +1 -0
  829. package/dist/taro-components/p-e53feb03.system.entry.js +2 -0
  830. package/dist/taro-components/p-e53feb03.system.entry.js.map +1 -0
  831. package/dist/taro-components/p-e67165fd.entry.js +2 -0
  832. package/dist/taro-components/p-e67165fd.entry.js.map +1 -0
  833. package/dist/taro-components/p-eb2a7609.entry.js +2 -0
  834. package/dist/taro-components/p-eb2a7609.entry.js.map +1 -0
  835. package/dist/taro-components/p-eb9adf17.entry.js +2 -0
  836. package/dist/taro-components/p-eb9adf17.entry.js.map +1 -0
  837. package/dist/taro-components/p-ef4c1fd4.entry.js +2 -0
  838. package/dist/taro-components/p-ef4c1fd4.entry.js.map +1 -0
  839. package/dist/taro-components/p-ef7e7d73.system.entry.js +2 -0
  840. package/dist/taro-components/p-ef7e7d73.system.entry.js.map +1 -0
  841. package/dist/taro-components/p-efa51030.system.entry.js +2 -0
  842. package/dist/taro-components/p-efa51030.system.entry.js.map +1 -0
  843. package/dist/taro-components/p-efe31b23.entry.js +2 -0
  844. package/dist/taro-components/p-efe31b23.entry.js.map +1 -0
  845. package/dist/taro-components/p-f034fb11.system.entry.js +2 -0
  846. package/dist/taro-components/p-f034fb11.system.entry.js.map +1 -0
  847. package/dist/taro-components/p-f499c0a0.system.entry.js +2 -0
  848. package/dist/taro-components/p-f499c0a0.system.entry.js.map +1 -0
  849. package/dist/taro-components/p-f88f0f55.entry.js +2 -0
  850. package/dist/taro-components/p-f88f0f55.entry.js.map +1 -0
  851. package/dist/taro-components/p-f9ac515e.system.entry.js +2 -0
  852. package/dist/taro-components/p-f9ac515e.system.entry.js.map +1 -0
  853. package/dist/taro-components/p-fa36fe8e.system.entry.js +2 -0
  854. package/dist/taro-components/p-fa36fe8e.system.entry.js.map +1 -0
  855. package/dist/taro-components/p-fcdac6ec.system.entry.js +2 -0
  856. package/dist/taro-components/p-fcdac6ec.system.entry.js.map +1 -0
  857. package/dist/taro-components/p-fda82bc1.entry.js +2 -0
  858. package/dist/taro-components/p-fda82bc1.entry.js.map +1 -0
  859. package/dist/taro-components/p-fec6746d.entry.js +2 -0
  860. package/dist/taro-components/p-fec6746d.entry.js.map +1 -0
  861. package/dist/taro-components/taro-components.esm.js +1 -1
  862. package/dist/taro-components/taro-components.esm.js.map +1 -1
  863. package/dist/taro-components/taro-components.js +1 -1
  864. package/dist/types/components/icon/icon.d.ts +1 -1
  865. package/dist/types/components/image/image.d.ts +1 -1
  866. package/dist/types/components/picker/picker.d.ts +3 -3
  867. package/dist/types/components/rich-text/rich-text.d.ts +3 -3
  868. package/dist/types/components/swiper/swiper-item.d.ts +2 -0
  869. package/dist/types/components/swiper/swiper.d.ts +1 -0
  870. package/dist/types/components/tabbar/tabbar-item.d.ts +2 -1
  871. package/dist/types/components.d.ts +21 -0
  872. package/dist/types/stencil-public-runtime.d.ts +59 -3
  873. package/dist/types/utils/index.d.ts +1 -0
  874. package/lib/react/components.d.ts +82 -0
  875. package/lib/react/components.js +85 -0
  876. package/lib/react/components.js.map +1 -0
  877. package/lib/react/helper.d.ts +10 -0
  878. package/lib/react/helper.js +7 -0
  879. package/lib/react/helper.js.map +1 -0
  880. package/lib/react/index.d.ts +1 -0
  881. package/lib/react/index.js +2 -0
  882. package/lib/react/index.js.map +1 -0
  883. package/lib/react/interfaces-4f837811.d.ts +30 -0
  884. package/lib/react/react-component-lib/createComponent.d.ts +10 -0
  885. package/lib/react/react-component-lib/createComponent.js +70 -0
  886. package/lib/react/react-component-lib/createComponent.js.map +1 -0
  887. package/lib/react/react-component-lib/createOverlayComponent.d.ts +21 -0
  888. package/lib/react/react-component-lib/createOverlayComponent.js +91 -0
  889. package/lib/react/react-component-lib/createOverlayComponent.js.map +1 -0
  890. package/lib/react/react-component-lib/index.d.ts +2 -0
  891. package/lib/react/react-component-lib/index.js +3 -0
  892. package/lib/react/react-component-lib/index.js.map +1 -0
  893. package/lib/react/react-component-lib/utils/attachProps.d.ts +13 -0
  894. package/lib/react/react-component-lib/utils/attachProps.js +101 -0
  895. package/lib/react/react-component-lib/utils/attachProps.js.map +1 -0
  896. package/lib/react/react-component-lib/utils/case.d.ts +3 -0
  897. package/lib/react/react-component-lib/utils/case.js +9 -0
  898. package/lib/react/react-component-lib/utils/case.js.map +1 -0
  899. package/lib/react/react-component-lib/utils/index.d.ts +11 -0
  900. package/lib/react/react-component-lib/utils/index.js +37 -0
  901. package/lib/react/react-component-lib/utils/index.js.map +1 -0
  902. package/lib/vue2/components.d.ts +353 -0
  903. package/lib/vue2/components.js +621 -0
  904. package/lib/vue2/components.js.map +1 -0
  905. package/lib/vue2/index.d.ts +3 -0
  906. package/lib/vue2/index.js +21 -0
  907. package/lib/vue2/index.js.map +1 -0
  908. package/lib/vue2/vue-component-lib/utils.d.ts +6 -0
  909. package/lib/vue2/vue-component-lib/utils.js +32 -0
  910. package/lib/vue2/vue-component-lib/utils.js.map +1 -0
  911. package/lib/vue3/components.d.ts +82 -0
  912. package/lib/vue3/components.js +386 -0
  913. package/lib/vue3/components.js.map +1 -0
  914. package/lib/vue3/index.d.ts +3 -0
  915. package/lib/vue3/index.js +15 -0
  916. package/lib/vue3/index.js.map +1 -0
  917. package/lib/vue3/vue-component-lib/utils.d.ts +21 -0
  918. package/lib/vue3/vue-component-lib/utils.js +163 -0
  919. package/lib/vue3/vue-component-lib/utils.js.map +1 -0
  920. package/loader/index.d.ts +9 -0
  921. package/package.json +11 -9
  922. package/types/ChannelLive.d.ts +22 -0
  923. package/types/CoverImage.d.ts +4 -4
  924. package/types/CoverView.d.ts +2 -2
  925. package/types/Form.d.ts +6 -0
  926. package/types/Input.d.ts +11 -6
  927. package/types/LivePusher.d.ts +39 -0
  928. package/types/Map.d.ts +6 -0
  929. package/types/MovableArea.d.ts +2 -2
  930. package/types/Radio.d.ts +6 -6
  931. package/types/RadioGroup.d.ts +2 -2
  932. package/types/ScrollView.d.ts +1 -1
  933. package/types/ShareElement.d.ts +0 -5
  934. package/types/Swiper.d.ts +2 -2
  935. package/types/Textarea.d.ts +22 -28
  936. package/types/Video.d.ts +13 -9
  937. package/types/VoipRoom.d.ts +6 -0
  938. package/types/index.d.ts +1 -0
  939. package/types/index.vue3.d.ts +4 -4
  940. package/dist/cjs/index-47a1959e.js +0 -36
  941. package/dist/cjs/index-47a1959e.js.map +0 -1
  942. package/dist/cjs/index-9174e0b1.js +0 -1957
  943. package/dist/cjs/index-9174e0b1.js.map +0 -1
  944. package/dist/esm/index-5d881caf.js +0 -1929
  945. package/dist/esm/index-5d881caf.js.map +0 -1
  946. package/dist/esm/index-cad8203e.js +0 -33
  947. package/dist/esm/index-cad8203e.js.map +0 -1
  948. package/dist/esm-es5/index-5d881caf.js +0 -3
  949. package/dist/esm-es5/index-5d881caf.js.map +0 -1
  950. package/dist/esm-es5/index-cad8203e.js +0 -2
  951. package/dist/esm-es5/index-cad8203e.js.map +0 -1
  952. package/dist/react/component-lib/index.js +0 -74
  953. package/dist/react/component-lib/input.js +0 -17
  954. package/dist/react/component-lib/reactify-wc.js +0 -206
  955. package/dist/react/components.js +0 -82
  956. package/dist/react/helper.js +0 -8
  957. package/dist/react/index.js +0 -1
  958. package/dist/react/react-component-lib/createComponent.js +0 -99
  959. package/dist/react/react-component-lib/createOverlayComponent.js +0 -178
  960. package/dist/react/react-component-lib/index.js +0 -2
  961. package/dist/react/react-component-lib/interfaces.js +0 -0
  962. package/dist/react/react-component-lib/utils/attachProps.js +0 -98
  963. package/dist/react/react-component-lib/utils/case.js +0 -10
  964. package/dist/react/react-component-lib/utils/dev.js +0 -12
  965. package/dist/react/react-component-lib/utils/index.js +0 -37
  966. package/dist/taro-components/p-001ef419.system.entry.js +0 -2
  967. package/dist/taro-components/p-001ef419.system.entry.js.map +0 -1
  968. package/dist/taro-components/p-01dc54a5.entry.js +0 -2
  969. package/dist/taro-components/p-01dc54a5.entry.js.map +0 -1
  970. package/dist/taro-components/p-0382d7d0.system.entry.js +0 -2
  971. package/dist/taro-components/p-0382d7d0.system.entry.js.map +0 -1
  972. package/dist/taro-components/p-0a896bc7.entry.js +0 -2
  973. package/dist/taro-components/p-0a896bc7.entry.js.map +0 -1
  974. package/dist/taro-components/p-0b38e6c7.system.entry.js +0 -2
  975. package/dist/taro-components/p-0b38e6c7.system.entry.js.map +0 -1
  976. package/dist/taro-components/p-0be383a9.system.entry.js +0 -2
  977. package/dist/taro-components/p-0be383a9.system.entry.js.map +0 -1
  978. package/dist/taro-components/p-0d36ef6b.entry.js +0 -2
  979. package/dist/taro-components/p-0d36ef6b.entry.js.map +0 -1
  980. package/dist/taro-components/p-0ee6a068.entry.js +0 -2
  981. package/dist/taro-components/p-0ee6a068.entry.js.map +0 -1
  982. package/dist/taro-components/p-12e4b019.entry.js +0 -2
  983. package/dist/taro-components/p-12e4b019.entry.js.map +0 -1
  984. package/dist/taro-components/p-15dced71.system.entry.js +0 -2
  985. package/dist/taro-components/p-15dced71.system.entry.js.map +0 -1
  986. package/dist/taro-components/p-17657dca.entry.js +0 -2
  987. package/dist/taro-components/p-17657dca.entry.js.map +0 -1
  988. package/dist/taro-components/p-186ad7ff.entry.js +0 -2
  989. package/dist/taro-components/p-186ad7ff.entry.js.map +0 -1
  990. package/dist/taro-components/p-19afe402.entry.js +0 -2
  991. package/dist/taro-components/p-19afe402.entry.js.map +0 -1
  992. package/dist/taro-components/p-1a47133c.system.entry.js +0 -2
  993. package/dist/taro-components/p-1a47133c.system.entry.js.map +0 -1
  994. package/dist/taro-components/p-1ad0aa95.system.entry.js +0 -2
  995. package/dist/taro-components/p-1ad0aa95.system.entry.js.map +0 -1
  996. package/dist/taro-components/p-1b1420c9.system.entry.js +0 -2
  997. package/dist/taro-components/p-1b1420c9.system.entry.js.map +0 -1
  998. package/dist/taro-components/p-1b2556e2.system.entry.js +0 -2
  999. package/dist/taro-components/p-1b2556e2.system.entry.js.map +0 -1
  1000. package/dist/taro-components/p-1b64d2a2.entry.js +0 -2
  1001. package/dist/taro-components/p-1b64d2a2.entry.js.map +0 -1
  1002. package/dist/taro-components/p-1bd3d09b.system.entry.js +0 -2
  1003. package/dist/taro-components/p-1bd3d09b.system.entry.js.map +0 -1
  1004. package/dist/taro-components/p-1cb76199.entry.js +0 -2
  1005. package/dist/taro-components/p-1cb76199.entry.js.map +0 -1
  1006. package/dist/taro-components/p-2096bc5f.entry.js +0 -2
  1007. package/dist/taro-components/p-2096bc5f.entry.js.map +0 -1
  1008. package/dist/taro-components/p-20ec6387.entry.js +0 -2
  1009. package/dist/taro-components/p-20ec6387.entry.js.map +0 -1
  1010. package/dist/taro-components/p-21b77a13.system.entry.js +0 -2
  1011. package/dist/taro-components/p-21b77a13.system.entry.js.map +0 -1
  1012. package/dist/taro-components/p-2243a376.entry.js +0 -2
  1013. package/dist/taro-components/p-2243a376.entry.js.map +0 -1
  1014. package/dist/taro-components/p-281a2bcf.entry.js +0 -2
  1015. package/dist/taro-components/p-281a2bcf.entry.js.map +0 -1
  1016. package/dist/taro-components/p-28dade4f.entry.js +0 -2
  1017. package/dist/taro-components/p-28dade4f.entry.js.map +0 -1
  1018. package/dist/taro-components/p-29f04296.entry.js +0 -2
  1019. package/dist/taro-components/p-29f04296.entry.js.map +0 -1
  1020. package/dist/taro-components/p-301a8b85.system.entry.js +0 -2
  1021. package/dist/taro-components/p-301a8b85.system.entry.js.map +0 -1
  1022. package/dist/taro-components/p-31e10d77.system.entry.js +0 -2
  1023. package/dist/taro-components/p-31e10d77.system.entry.js.map +0 -1
  1024. package/dist/taro-components/p-36c64ed0.system.entry.js +0 -2
  1025. package/dist/taro-components/p-36c64ed0.system.entry.js.map +0 -1
  1026. package/dist/taro-components/p-37d71e63.entry.js +0 -2
  1027. package/dist/taro-components/p-37d71e63.entry.js.map +0 -1
  1028. package/dist/taro-components/p-386b9de8.entry.js +0 -2
  1029. package/dist/taro-components/p-386b9de8.entry.js.map +0 -1
  1030. package/dist/taro-components/p-3b9a1125.entry.js +0 -2
  1031. package/dist/taro-components/p-3b9a1125.entry.js.map +0 -1
  1032. package/dist/taro-components/p-3c256e0e.entry.js +0 -2
  1033. package/dist/taro-components/p-3c256e0e.entry.js.map +0 -1
  1034. package/dist/taro-components/p-3e6b29c6.entry.js +0 -2
  1035. package/dist/taro-components/p-3e6b29c6.entry.js.map +0 -1
  1036. package/dist/taro-components/p-427a2872.entry.js +0 -2
  1037. package/dist/taro-components/p-427a2872.entry.js.map +0 -1
  1038. package/dist/taro-components/p-439a3349.system.entry.js +0 -2
  1039. package/dist/taro-components/p-439a3349.system.entry.js.map +0 -1
  1040. package/dist/taro-components/p-447386b2.system.entry.js +0 -2
  1041. package/dist/taro-components/p-447386b2.system.entry.js.map +0 -1
  1042. package/dist/taro-components/p-45b6ea0c.system.entry.js +0 -2
  1043. package/dist/taro-components/p-45b6ea0c.system.entry.js.map +0 -1
  1044. package/dist/taro-components/p-49a6cae4.system.entry.js +0 -2
  1045. package/dist/taro-components/p-49a6cae4.system.entry.js.map +0 -1
  1046. package/dist/taro-components/p-4b05e003.entry.js +0 -2
  1047. package/dist/taro-components/p-4b05e003.entry.js.map +0 -1
  1048. package/dist/taro-components/p-4b27df71.system.entry.js +0 -2
  1049. package/dist/taro-components/p-4b27df71.system.entry.js.map +0 -1
  1050. package/dist/taro-components/p-4b71c926.entry.js +0 -2
  1051. package/dist/taro-components/p-4b71c926.entry.js.map +0 -1
  1052. package/dist/taro-components/p-4fbb8b4c.system.entry.js +0 -2
  1053. package/dist/taro-components/p-4fbb8b4c.system.entry.js.map +0 -1
  1054. package/dist/taro-components/p-51040638.entry.js +0 -2
  1055. package/dist/taro-components/p-51040638.entry.js.map +0 -1
  1056. package/dist/taro-components/p-55519002.entry.js +0 -2
  1057. package/dist/taro-components/p-55519002.entry.js.map +0 -1
  1058. package/dist/taro-components/p-570222e2.entry.js +0 -2
  1059. package/dist/taro-components/p-570222e2.entry.js.map +0 -1
  1060. package/dist/taro-components/p-5746d7ce.js +0 -2
  1061. package/dist/taro-components/p-5746d7ce.js.map +0 -1
  1062. package/dist/taro-components/p-580a72d1.system.entry.js +0 -2
  1063. package/dist/taro-components/p-580a72d1.system.entry.js.map +0 -1
  1064. package/dist/taro-components/p-59418be7.system.entry.js +0 -2
  1065. package/dist/taro-components/p-59418be7.system.entry.js.map +0 -1
  1066. package/dist/taro-components/p-59e02aca.system.entry.js +0 -2
  1067. package/dist/taro-components/p-59e02aca.system.entry.js.map +0 -1
  1068. package/dist/taro-components/p-5b552407.entry.js +0 -2
  1069. package/dist/taro-components/p-5b552407.entry.js.map +0 -1
  1070. package/dist/taro-components/p-5bd1c1a1.entry.js +0 -2
  1071. package/dist/taro-components/p-5bd1c1a1.entry.js.map +0 -1
  1072. package/dist/taro-components/p-5bfefd19.js +0 -3
  1073. package/dist/taro-components/p-5bfefd19.js.map +0 -1
  1074. package/dist/taro-components/p-62d750a7.entry.js +0 -2
  1075. package/dist/taro-components/p-62d750a7.entry.js.map +0 -1
  1076. package/dist/taro-components/p-632f9a72.system.entry.js +0 -2
  1077. package/dist/taro-components/p-632f9a72.system.entry.js.map +0 -1
  1078. package/dist/taro-components/p-65971d99.entry.js +0 -2
  1079. package/dist/taro-components/p-65971d99.entry.js.map +0 -1
  1080. package/dist/taro-components/p-663d1bb9.system.js +0 -2
  1081. package/dist/taro-components/p-663d1bb9.system.js.map +0 -1
  1082. package/dist/taro-components/p-6831f7b1.system.entry.js +0 -2
  1083. package/dist/taro-components/p-6831f7b1.system.entry.js.map +0 -1
  1084. package/dist/taro-components/p-6af8be19.entry.js +0 -2
  1085. package/dist/taro-components/p-6af8be19.entry.js.map +0 -1
  1086. package/dist/taro-components/p-6c622fa2.system.entry.js +0 -2
  1087. package/dist/taro-components/p-6c622fa2.system.entry.js.map +0 -1
  1088. package/dist/taro-components/p-6cd941bc.entry.js +0 -2
  1089. package/dist/taro-components/p-6cd941bc.entry.js.map +0 -1
  1090. package/dist/taro-components/p-6ea2995b.entry.js +0 -2
  1091. package/dist/taro-components/p-6ea2995b.entry.js.map +0 -1
  1092. package/dist/taro-components/p-6f8af69f.entry.js +0 -2
  1093. package/dist/taro-components/p-6f8af69f.entry.js.map +0 -1
  1094. package/dist/taro-components/p-701b0286.system.entry.js +0 -2
  1095. package/dist/taro-components/p-701b0286.system.entry.js.map +0 -1
  1096. package/dist/taro-components/p-70defa84.entry.js +0 -2
  1097. package/dist/taro-components/p-70defa84.entry.js.map +0 -1
  1098. package/dist/taro-components/p-72f626ab.system.entry.js +0 -2
  1099. package/dist/taro-components/p-72f626ab.system.entry.js.map +0 -1
  1100. package/dist/taro-components/p-73106bc9.entry.js +0 -2
  1101. package/dist/taro-components/p-73106bc9.entry.js.map +0 -1
  1102. package/dist/taro-components/p-755be847.system.entry.js +0 -2
  1103. package/dist/taro-components/p-755be847.system.entry.js.map +0 -1
  1104. package/dist/taro-components/p-7afc274a.entry.js +0 -2
  1105. package/dist/taro-components/p-7afc274a.entry.js.map +0 -1
  1106. package/dist/taro-components/p-7bafbe22.entry.js +0 -2
  1107. package/dist/taro-components/p-7bafbe22.entry.js.map +0 -1
  1108. package/dist/taro-components/p-7e7a1e62.entry.js +0 -2
  1109. package/dist/taro-components/p-7e7a1e62.entry.js.map +0 -1
  1110. package/dist/taro-components/p-8231e748.entry.js +0 -2
  1111. package/dist/taro-components/p-8231e748.entry.js.map +0 -1
  1112. package/dist/taro-components/p-876edf66.entry.js +0 -2
  1113. package/dist/taro-components/p-876edf66.entry.js.map +0 -1
  1114. package/dist/taro-components/p-898aba38.system.entry.js +0 -2
  1115. package/dist/taro-components/p-898aba38.system.entry.js.map +0 -1
  1116. package/dist/taro-components/p-8a3620a6.system.entry.js +0 -2
  1117. package/dist/taro-components/p-8a3620a6.system.entry.js.map +0 -1
  1118. package/dist/taro-components/p-8a8f286f.system.js +0 -3
  1119. package/dist/taro-components/p-8a8f286f.system.js.map +0 -1
  1120. package/dist/taro-components/p-8bec95d4.system.entry.js +0 -2
  1121. package/dist/taro-components/p-8bec95d4.system.entry.js.map +0 -1
  1122. package/dist/taro-components/p-8c8fe164.system.entry.js +0 -2
  1123. package/dist/taro-components/p-8c8fe164.system.entry.js.map +0 -1
  1124. package/dist/taro-components/p-93cc7adc.entry.js +0 -2
  1125. package/dist/taro-components/p-93cc7adc.entry.js.map +0 -1
  1126. package/dist/taro-components/p-96a784f1.entry.js +0 -2
  1127. package/dist/taro-components/p-96a784f1.entry.js.map +0 -1
  1128. package/dist/taro-components/p-98901e99.system.entry.js +0 -2
  1129. package/dist/taro-components/p-98901e99.system.entry.js.map +0 -1
  1130. package/dist/taro-components/p-99bbe34a.system.entry.js +0 -2
  1131. package/dist/taro-components/p-99bbe34a.system.entry.js.map +0 -1
  1132. package/dist/taro-components/p-9e20c25c.entry.js +0 -2
  1133. package/dist/taro-components/p-9e20c25c.entry.js.map +0 -1
  1134. package/dist/taro-components/p-9f1ca602.system.entry.js +0 -2
  1135. package/dist/taro-components/p-9f1ca602.system.entry.js.map +0 -1
  1136. package/dist/taro-components/p-9f780103.system.entry.js +0 -2
  1137. package/dist/taro-components/p-9f780103.system.entry.js.map +0 -1
  1138. package/dist/taro-components/p-a1ace8c7.system.entry.js +0 -2
  1139. package/dist/taro-components/p-a1ace8c7.system.entry.js.map +0 -1
  1140. package/dist/taro-components/p-a29509fa.system.entry.js +0 -2
  1141. package/dist/taro-components/p-a29509fa.system.entry.js.map +0 -1
  1142. package/dist/taro-components/p-a4961ddd.entry.js +0 -2
  1143. package/dist/taro-components/p-a4961ddd.entry.js.map +0 -1
  1144. package/dist/taro-components/p-a6f2dc54.system.entry.js +0 -2
  1145. package/dist/taro-components/p-a6f2dc54.system.entry.js.map +0 -1
  1146. package/dist/taro-components/p-ab105c26.entry.js +0 -2
  1147. package/dist/taro-components/p-ab105c26.entry.js.map +0 -1
  1148. package/dist/taro-components/p-ad25cc91.system.entry.js +0 -2
  1149. package/dist/taro-components/p-ad25cc91.system.entry.js.map +0 -1
  1150. package/dist/taro-components/p-b04a56bd.system.entry.js +0 -2
  1151. package/dist/taro-components/p-b04a56bd.system.entry.js.map +0 -1
  1152. package/dist/taro-components/p-b10cb428.entry.js +0 -2
  1153. package/dist/taro-components/p-b10cb428.entry.js.map +0 -1
  1154. package/dist/taro-components/p-b4cccb3e.system.entry.js +0 -2
  1155. package/dist/taro-components/p-b4cccb3e.system.entry.js.map +0 -1
  1156. package/dist/taro-components/p-b4ec48c3.entry.js +0 -2
  1157. package/dist/taro-components/p-b4ec48c3.entry.js.map +0 -1
  1158. package/dist/taro-components/p-b500c116.system.entry.js +0 -2
  1159. package/dist/taro-components/p-b500c116.system.entry.js.map +0 -1
  1160. package/dist/taro-components/p-b6733e23.system.entry.js +0 -2
  1161. package/dist/taro-components/p-b6733e23.system.entry.js.map +0 -1
  1162. package/dist/taro-components/p-b832f4e8.entry.js +0 -2
  1163. package/dist/taro-components/p-b832f4e8.entry.js.map +0 -1
  1164. package/dist/taro-components/p-b88a55b4.system.entry.js +0 -2
  1165. package/dist/taro-components/p-b88a55b4.system.entry.js.map +0 -1
  1166. package/dist/taro-components/p-b90926cc.entry.js +0 -2
  1167. package/dist/taro-components/p-b90926cc.entry.js.map +0 -1
  1168. package/dist/taro-components/p-ba743573.entry.js +0 -2
  1169. package/dist/taro-components/p-ba743573.entry.js.map +0 -1
  1170. package/dist/taro-components/p-be3f5ac0.entry.js +0 -2
  1171. package/dist/taro-components/p-be3f5ac0.entry.js.map +0 -1
  1172. package/dist/taro-components/p-beea63a7.entry.js +0 -2
  1173. package/dist/taro-components/p-beea63a7.entry.js.map +0 -1
  1174. package/dist/taro-components/p-c0e3c822.system.entry.js +0 -2
  1175. package/dist/taro-components/p-c0e3c822.system.entry.js.map +0 -1
  1176. package/dist/taro-components/p-c3bb8fa6.entry.js +0 -2
  1177. package/dist/taro-components/p-c3bb8fa6.entry.js.map +0 -1
  1178. package/dist/taro-components/p-c43fe342.system.entry.js +0 -2
  1179. package/dist/taro-components/p-c43fe342.system.entry.js.map +0 -1
  1180. package/dist/taro-components/p-c4cf58af.system.entry.js +0 -2
  1181. package/dist/taro-components/p-c4cf58af.system.entry.js.map +0 -1
  1182. package/dist/taro-components/p-c5c331bf.system.entry.js +0 -2
  1183. package/dist/taro-components/p-c5c331bf.system.entry.js.map +0 -1
  1184. package/dist/taro-components/p-cb17d8bd.system.js +0 -2
  1185. package/dist/taro-components/p-cb17d8bd.system.js.map +0 -1
  1186. package/dist/taro-components/p-cbe2436d.system.entry.js +0 -2
  1187. package/dist/taro-components/p-cbe2436d.system.entry.js.map +0 -1
  1188. package/dist/taro-components/p-cd6a7eea.entry.js +0 -2
  1189. package/dist/taro-components/p-cd6a7eea.entry.js.map +0 -1
  1190. package/dist/taro-components/p-d388c097.entry.js +0 -2
  1191. package/dist/taro-components/p-d388c097.entry.js.map +0 -1
  1192. package/dist/taro-components/p-d4b6f19e.system.entry.js +0 -2
  1193. package/dist/taro-components/p-d4b6f19e.system.entry.js.map +0 -1
  1194. package/dist/taro-components/p-d619f198.system.entry.js +0 -2
  1195. package/dist/taro-components/p-d619f198.system.entry.js.map +0 -1
  1196. package/dist/taro-components/p-d6441fd8.entry.js +0 -2
  1197. package/dist/taro-components/p-d6441fd8.entry.js.map +0 -1
  1198. package/dist/taro-components/p-d7ab3e23.system.entry.js +0 -2
  1199. package/dist/taro-components/p-d7ab3e23.system.entry.js.map +0 -1
  1200. package/dist/taro-components/p-d7f4b10f.entry.js +0 -2
  1201. package/dist/taro-components/p-d7f4b10f.entry.js.map +0 -1
  1202. package/dist/taro-components/p-d85b216d.entry.js +0 -2
  1203. package/dist/taro-components/p-d85b216d.entry.js.map +0 -1
  1204. package/dist/taro-components/p-dcb48fd9.system.entry.js +0 -2
  1205. package/dist/taro-components/p-dcb48fd9.system.entry.js.map +0 -1
  1206. package/dist/taro-components/p-dcfb7d97.system.entry.js +0 -2
  1207. package/dist/taro-components/p-dcfb7d97.system.entry.js.map +0 -1
  1208. package/dist/taro-components/p-de762042.entry.js +0 -2
  1209. package/dist/taro-components/p-de762042.entry.js.map +0 -1
  1210. package/dist/taro-components/p-df862d0c.entry.js +0 -2
  1211. package/dist/taro-components/p-df862d0c.entry.js.map +0 -1
  1212. package/dist/taro-components/p-e0d6b00b.entry.js +0 -2
  1213. package/dist/taro-components/p-e0d6b00b.entry.js.map +0 -1
  1214. package/dist/taro-components/p-e4f1cc50.entry.js +0 -2
  1215. package/dist/taro-components/p-e4f1cc50.entry.js.map +0 -1
  1216. package/dist/taro-components/p-e5607803.system.entry.js +0 -2
  1217. package/dist/taro-components/p-e5607803.system.entry.js.map +0 -1
  1218. package/dist/taro-components/p-e59f999e.entry.js +0 -2
  1219. package/dist/taro-components/p-e59f999e.entry.js.map +0 -1
  1220. package/dist/taro-components/p-e7239faa.system.entry.js +0 -2
  1221. package/dist/taro-components/p-e7239faa.system.entry.js.map +0 -1
  1222. package/dist/taro-components/p-e7965c55.system.entry.js +0 -2
  1223. package/dist/taro-components/p-e7965c55.system.entry.js.map +0 -1
  1224. package/dist/taro-components/p-e98c07c3.system.entry.js +0 -2
  1225. package/dist/taro-components/p-e98c07c3.system.entry.js.map +0 -1
  1226. package/dist/taro-components/p-eddd00e9.system.entry.js +0 -2
  1227. package/dist/taro-components/p-eddd00e9.system.entry.js.map +0 -1
  1228. package/dist/taro-components/p-ef029c30.system.entry.js +0 -2
  1229. package/dist/taro-components/p-ef029c30.system.entry.js.map +0 -1
  1230. package/dist/taro-components/p-f00ee372.system.entry.js +0 -2
  1231. package/dist/taro-components/p-f00ee372.system.entry.js.map +0 -1
  1232. package/dist/taro-components/p-f0d0160d.system.entry.js +0 -2
  1233. package/dist/taro-components/p-f0d0160d.system.entry.js.map +0 -1
  1234. package/dist/taro-components/p-f120c272.entry.js +0 -2
  1235. package/dist/taro-components/p-f120c272.entry.js.map +0 -1
  1236. package/dist/taro-components/p-f2c75971.system.entry.js +0 -2
  1237. package/dist/taro-components/p-f2c75971.system.entry.js.map +0 -1
  1238. package/dist/taro-components/p-f81d14ad.entry.js +0 -2
  1239. package/dist/taro-components/p-f81d14ad.entry.js.map +0 -1
  1240. package/dist/taro-components/p-fae28cc1.system.entry.js +0 -2
  1241. package/dist/taro-components/p-fae28cc1.system.entry.js.map +0 -1
  1242. package/dist/taro-components/p-fb843ff2.system.entry.js +0 -2
  1243. package/dist/taro-components/p-fb843ff2.system.entry.js.map +0 -1
  1244. package/dist/taro-components/p-fc0fbcce.system.entry.js +0 -2
  1245. package/dist/taro-components/p-fc0fbcce.system.entry.js.map +0 -1
  1246. package/dist/taro-components/p-ffc44634.entry.js +0 -2
  1247. package/dist/taro-components/p-ffc44634.entry.js.map +0 -1
  1248. package/dist/vue2/component-lib/components.js +0 -71
  1249. package/dist/vue2/component-lib/createComponent.js +0 -21
  1250. package/dist/vue2/component-lib/createFormsComponent.js +0 -53
  1251. package/dist/vue2/component-lib/icon.js +0 -19
  1252. package/dist/vue2/component-lib/image.js +0 -20
  1253. package/dist/vue2/component-lib/index.js +0 -28
  1254. package/dist/vue2/component-lib/mixins/listeners.js +0 -14
  1255. package/dist/vue2/component-lib/mixins/refs.js +0 -44
  1256. package/dist/vue2/component-lib/picker.js +0 -40
  1257. package/dist/vue2/component-lib/scroll-view.js +0 -32
  1258. package/dist/vue2/component-lib/text.js +0 -20
  1259. package/dist/vue2/components.js +0 -542
  1260. package/dist/vue2/index.js +0 -22
  1261. package/dist/vue2/vue-component-lib/utils.js +0 -40
  1262. package/dist/vue3/component-lib/createComponent.js +0 -23
  1263. package/dist/vue3/component-lib/createFormsComponent.js +0 -43
  1264. package/dist/vue3/component-lib/forwardRef.js +0 -9
  1265. package/dist/vue3/component-lib/icon.js +0 -21
  1266. package/dist/vue3/component-lib/image.js +0 -22
  1267. package/dist/vue3/component-lib/index.js +0 -76
  1268. package/dist/vue3/component-lib/scroll-view.js +0 -28
  1269. package/dist/vue3/component-lib/text.js +0 -22
  1270. package/dist/vue3/components.js +0 -80
  1271. package/dist/vue3/index.js +0 -17
  1272. package/dist/vue3/vue-component-lib/utils.js +0 -175
@@ -0,0 +1,2 @@
1
+ import{r as t,c as i,h as s,g as e}from"./p-78e3ebb9.js";const h="taro-input-core{display:block}input{display:block;overflow:hidden;height:1.4rem;text-overflow:clip;text-align:inherit;white-space:nowrap}";function o(t,i,s){if(i==="search")t="search";if(s)t="password";if(typeof t==="undefined"){return"text"}if(!t){throw new Error("unexpected type")}if(t==="digit")t="number";return t}function n(t){return t!==null&&t!==void 0?t:""}const u=class{constructor(s){t(this,s);this.onInput=i(this,"input",7);this.onPaste=i(this,"paste",7);this.onFocus=i(this,"focus",7);this.onBlur=i(this,"blur",7);this.onConfirm=i(this,"confirm",7);this.onChange=i(this,"change",7);this.onKeyDown=i(this,"keydown",7);this.isOnComposition=false;this.isOnPaste=false;this.onInputExcuted=false;this.handleInput=t=>{t.stopPropagation();const{type:i,maxlength:s,confirmType:e,password:h}=this;if(!this.isOnComposition&&!this.onInputExcuted){let n=t.target.value;const u=o(i,e,h);this.onInputExcuted=true;if(u==="number"&&n&&s>-1&&s<=n.length){n=n.substring(0,s);t.target.value=n}this.value=n;this.onInput.emit({value:n,cursor:n.length});this.onInputExcuted=false}};this.handlePaste=t=>{t.stopPropagation();this.isOnPaste=true;this.onPaste.emit({value:t.target.value})};this.handleFocus=t=>{t.stopPropagation();this.onInputExcuted=false;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});if(this.isOnPaste){this.isOnPaste=false;this.value=t.target.value;this.onInput.emit({value:t.target.value,cursor:t.target.value.length})}};this.handleKeyDown=t=>{t.stopPropagation();const{value:i}=t.target;const s=t.keyCode||t.code;this.onInputExcuted=false;this.onKeyDown.emit({value:i,cursor:i.length,keyCode:s});s===13&&this.onConfirm.emit({value:i})};this.handleComposition=t=>{t.stopPropagation();if(!(t.target instanceof HTMLInputElement))return;if(t.type==="compositionend"){this.isOnComposition=false;this.value=t.target.value;this.onInput.emit({value:t.target.value,cursor:t.target.value.length})}else{this.isOnComposition=true}};this.handleBeforeinput=t=>{if(!t.data)return;const i=t.data&&/[0-9]/.test(t.data);if(this.type==="number"&&!i){t.preventDefault()}if(this.type==="digit"&&!i){if(t.data!=="."||t.data==="."&&t.target.value.indexOf(".")>-1){t.preventDefault()}}};this.value=undefined;this.type=undefined;this.password=false;this.placeholder=undefined;this.disabled=false;this.maxlength=140;this.autoFocus=false;this.confirmType="done";this.name=undefined;this.nativeProps={}}focus(){this.inputRef.focus()}watchAutoFocus(t,i){var s;if(!i&&t){(s=this.inputRef)===null||s===void 0?void 0:s.focus()}}watchValue(t){const i=n(t);if(this.inputRef.value!==i){this.inputRef.value=i}}componentDidLoad(){var t,i,s,e,h;if(this.type==="file"){this.fileListener=()=>{this.onInput.emit()};(t=this.inputRef)===null||t===void 0?void 0:t.addEventListener("change",this.fileListener)}else{(i=this.inputRef)===null||i===void 0?void 0:i.addEventListener("compositionstart",this.handleComposition);(s=this.inputRef)===null||s===void 0?void 0:s.addEventListener("compositionend",this.handleComposition);(e=this.inputRef)===null||e===void 0?void 0:e.addEventListener("beforeinput",this.handleBeforeinput);(h=this.inputRef)===null||h===void 0?void 0:h.addEventListener("textInput",this.handleBeforeinput)}Object.defineProperty(this.el,"value",{get:()=>this.inputRef.value,set:t=>this.value=t,configurable:true})}disconnectedCallback(){var t,i,s,e,h;if(this.type==="file"){(t=this.inputRef)===null||t===void 0?void 0:t.removeEventListener("change",this.fileListener)}else{(i=this.inputRef)===null||i===void 0?void 0:i.removeEventListener("compositionstart",this.handleComposition);(s=this.inputRef)===null||s===void 0?void 0:s.removeEventListener("compositionend",this.handleComposition);(e=this.inputRef)===null||e===void 0?void 0:e.removeEventListener("beforeinput",this.handleBeforeinput);(h=this.inputRef)===null||h===void 0?void 0:h.removeEventListener("textInput",this.handleBeforeinput)}}render(){const{value:t,type:i,password:e,placeholder:h,autoFocus:u,disabled:l,maxlength:a,confirmType:r,name:c,nativeProps:d}=this;return s("input",Object.assign({ref:t=>{this.inputRef=t;if(u&&t)t.focus()},class:"weui-input",type:o(i,r,e),placeholder:h,autoFocus:u,disabled:l,maxlength:a,name:c,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,onCompositionStart:this.handleComposition,onCompositionEnd:this.handleComposition},d,{value:n(t)}))}get el(){return e(this)}static get watchers(){return{autoFocus:["watchAutoFocus"],value:["watchValue"]}}};u.style=h;export{u as taro_input_core};
2
+ //# sourceMappingURL=p-5208792d.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["indexCss","getTrueType","type","confirmType","password","Error","fixControlledValue","value","Input","this","isOnComposition","isOnPaste","onInputExcuted","handleInput","e","stopPropagation","maxlength","target","inputType","length","substring","onInput","emit","cursor","handlePaste","onPaste","handleFocus","onFocus","handleBlur","onBlur","handleChange","onChange","handleKeyDown","keyCode","code","onKeyDown","onConfirm","handleComposition","HTMLInputElement","handleBeforeinput","data","isNumber","test","preventDefault","indexOf","focus","inputRef","watchAutoFocus","newValue","oldValue","_a","watchValue","componentDidLoad","fileListener","addEventListener","_b","_c","_d","_e","Object","defineProperty","el","get","set","configurable","disconnectedCallback","removeEventListener","render","placeholder","autoFocus","disabled","name","nativeProps","h","assign","ref","input","class","onCompositionStart","onCompositionEnd"],"sources":["./src/components/input/index.scss?tag=taro-input-core","./src/components/input/input.tsx"],"sourcesContent":["taro-input-core {\n display: block;\n}\n\ninput {\n display: block;\n overflow: hidden;\n height: 1.4rem;\n text-overflow: clip;\n text-align: inherit;\n white-space: nowrap;\n}\n","import { Component, h, ComponentInterface, Prop, Event, EventEmitter, Element, Watch, Method } from '@stencil/core'\nimport { EventHandler, TaroEvent } from '../../../types'\n\nfunction getTrueType (type: string | undefined, confirmType: string, password: boolean) {\n if (confirmType === 'search') type = 'search'\n if (password) type = 'password'\n if (typeof type === 'undefined') {\n return 'text';\n }\n if (!type) {\n throw new Error('unexpected type')\n }\n if (type === 'digit') type = 'number'\n\n return type\n}\n\nfunction fixControlledValue (value?: string) {\n return value ?? ''\n}\n\n@Component({\n tag: 'taro-input-core',\n styleUrl: 'index.scss'\n})\nexport class Input implements ComponentInterface {\n private inputRef: HTMLInputElement\n private isOnComposition = false\n private isOnPaste = false\n private onInputExcuted = false\n private fileListener: EventHandler\n\n @Prop({ mutable: true }) value: string\n @Prop() type: string\n @Prop() password = false\n @Prop() placeholder: string\n @Prop() disabled = false\n @Prop() maxlength = 140\n @Prop({ attribute: 'focus', reflect: true }) autoFocus = false\n @Prop() confirmType = 'done'\n @Prop() name: string\n @Prop() nativeProps = {}\n\n @Element() el: HTMLElement\n\n @Method()\n focus() {\n this.inputRef.focus()\n }\n\n @Watch('autoFocus')\n watchAutoFocus (newValue: boolean, oldValue: boolean) {\n if (!oldValue && newValue) {\n this.inputRef?.focus()\n }\n }\n\n @Watch('value')\n watchValue (newValue: string) {\n const value = fixControlledValue(newValue)\n if (this.inputRef.value !== value) {\n this.inputRef.value = value\n }\n }\n\n @Event({\n eventName: 'input'\n }) onInput: EventEmitter\n\n @Event({\n eventName: 'paste'\n }) onPaste: EventEmitter\n\n @Event({\n eventName: 'focus'\n }) onFocus: EventEmitter\n\n @Event({\n eventName: 'blur'\n }) onBlur: EventEmitter\n\n @Event({\n eventName: 'confirm'\n }) onConfirm: EventEmitter\n\n @Event({\n eventName: 'change'\n }) onChange: EventEmitter\n\n @Event({\n eventName: 'keydown'\n }) onKeyDown: EventEmitter\n\n componentDidLoad () {\n if (this.type === 'file') {\n this.fileListener = () => {\n this.onInput.emit()\n }\n this.inputRef?.addEventListener('change', this.fileListener)\n } else {\n this.inputRef?.addEventListener('compositionstart', this.handleComposition)\n this.inputRef?.addEventListener('compositionend', this.handleComposition)\n this.inputRef?.addEventListener('beforeinput', this.handleBeforeinput)\n this.inputRef?.addEventListener('textInput', this.handleBeforeinput)\n }\n\n Object.defineProperty(this.el, 'value', {\n get: () => this.inputRef.value,\n set: value => (this.value = value),\n configurable: true\n })\n }\n\n disconnectedCallback () {\n if (this.type === 'file') {\n this.inputRef?.removeEventListener('change', this.fileListener)\n } else {\n this.inputRef?.removeEventListener('compositionstart', this.handleComposition)\n this.inputRef?.removeEventListener('compositionend', this.handleComposition)\n this.inputRef?.removeEventListener('beforeinput', this.handleBeforeinput)\n this.inputRef?.removeEventListener('textInput', this.handleBeforeinput)\n }\n }\n\n handleInput = (e: TaroEvent<HTMLInputElement>) => {\n e.stopPropagation()\n const {\n type,\n maxlength,\n confirmType,\n password\n } = this\n if (!this.isOnComposition && !this.onInputExcuted) {\n let value = e.target.value\n const inputType = getTrueType(type, confirmType, password)\n this.onInputExcuted = true\n /* 修复 number 类型 maxlength 无效 */\n if (inputType === 'number' && value && maxlength > -1 && maxlength <= value.length) {\n value = value.substring(0, maxlength)\n e.target.value = value\n }\n\n // 修复 IOS 光标跳转问题\n // if (!(['number', 'file'].indexOf(inputType) >= 0)) {\n // const pos = e.target.selectionEnd\n // setTimeout(\n // () => {\n // e.target.selectionStart = pos\n // e.target.selectionEnd = pos\n // }\n // )\n // }\n\n this.value = value\n this.onInput.emit({\n value,\n cursor: value.length\n })\n this.onInputExcuted = false\n }\n }\n\n handlePaste = (e: TaroEvent<HTMLInputElement> & ClipboardEvent) => {\n e.stopPropagation()\n this.isOnPaste = true\n this.onPaste.emit({\n value: e.target.value\n })\n }\n\n handleFocus = (e: TaroEvent<HTMLInputElement> & FocusEvent) => {\n e.stopPropagation()\n this.onInputExcuted = false\n this.onFocus.emit({\n value: e.target.value\n })\n }\n\n handleBlur = (e: TaroEvent<HTMLInputElement> & FocusEvent) => {\n e.stopPropagation()\n this.onBlur.emit({\n value: e.target.value\n })\n }\n\n handleChange = (e: TaroEvent<HTMLInputElement>) => {\n e.stopPropagation()\n this.onChange.emit({\n value: e.target.value\n })\n\n if (this.isOnPaste) {\n this.isOnPaste = false\n this.value = e.target.value\n this.onInput.emit({\n value: e.target.value,\n cursor: e.target.value.length\n })\n }\n }\n\n handleKeyDown = (e: TaroEvent<HTMLInputElement> & KeyboardEvent) => {\n e.stopPropagation()\n const { value } = e.target\n const keyCode = e.keyCode || e.code\n this.onInputExcuted = false\n\n this.onKeyDown.emit({\n value,\n cursor: value.length,\n keyCode\n })\n\n keyCode === 13 && this.onConfirm.emit({ value })\n }\n\n handleComposition = (e: Event) => {\n e.stopPropagation()\n if (!(e.target instanceof HTMLInputElement)) return\n\n if (e.type === 'compositionend') {\n this.isOnComposition = false\n this.value = e.target.value\n this.onInput.emit({\n value: e.target.value,\n cursor: e.target.value.length\n })\n } else {\n this.isOnComposition = true\n }\n }\n\n handleBeforeinput = (e) => {\n if (!e.data) return\n const isNumber = e.data && /[0-9]/.test(e.data)\n if (this.type === 'number' && !isNumber) {\n e.preventDefault()\n }\n if (this.type === 'digit' && !isNumber) {\n if (e.data !== '.' || (e.data === '.' && e.target.value.indexOf('.') > -1)) {\n e.preventDefault()\n }\n }\n }\n\n render () {\n const {\n value,\n type,\n password,\n placeholder,\n autoFocus,\n disabled,\n maxlength,\n confirmType,\n name,\n nativeProps\n } = this\n\n return (\n <input\n ref={input => {\n this.inputRef = input!\n if (autoFocus && input) input.focus()\n }}\n class='weui-input'\n type={getTrueType(type, confirmType, password)}\n placeholder={placeholder}\n autoFocus={autoFocus}\n disabled={disabled}\n maxlength={maxlength}\n name={name}\n onInput={this.handleInput}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n onChange={this.handleChange}\n onKeyDown={this.handleKeyDown}\n onPaste={this.handlePaste}\n onCompositionStart={this.handleComposition}\n onCompositionEnd={this.handleComposition}\n {...nativeProps}\n value={fixControlledValue(value)}\n />\n )\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAW,4ICGjB,SAASC,EAAaC,EAA0BC,EAAqBC,GACnE,GAAID,IAAgB,SAAUD,EAAO,SACrC,GAAIE,EAAUF,EAAO,WACrB,UAAWA,IAAS,YAAa,CAC/B,MAAO,M,CAET,IAAKA,EAAM,CACT,MAAM,IAAIG,MAAM,kB,CAElB,GAAIH,IAAS,QAASA,EAAO,SAE7B,OAAOA,CACT,CAEA,SAASI,EAAoBC,GAC3B,OAAOA,IAAK,MAALA,SAAK,EAALA,EAAS,EAClB,C,MAMaC,EAAK,M,0PAERC,KAAAC,gBAAkB,MAClBD,KAAAE,UAAY,MACZF,KAAAG,eAAiB,MA+FzBH,KAAAI,YAAeC,IACbA,EAAEC,kBACF,MAAMb,KACJA,EAAIc,UACJA,EAASb,YACTA,EAAWC,SACXA,GACEK,KACJ,IAAKA,KAAKC,kBAAoBD,KAAKG,eAAgB,CACjD,IAAIL,EAAQO,EAAEG,OAAOV,MACrB,MAAMW,EAAYjB,EAAYC,EAAMC,EAAaC,GACjDK,KAAKG,eAAiB,KAEtB,GAAIM,IAAc,UAAYX,GAASS,GAAa,GAAKA,GAAaT,EAAMY,OAAQ,CAClFZ,EAAQA,EAAMa,UAAU,EAAGJ,GAC3BF,EAAEG,OAAOV,MAAQA,C,CAcnBE,K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AK4B,kBACzB0C,iBAAkBtE,KAAK4B,mBACnBmC,EAAW,CACfjE,MAAOD,EAAmBC,K"}
@@ -0,0 +1,2 @@
1
+ System.register(["./p-1a0e1932.system.js"],(function(e){"use strict";var t,n,i,o,r;return{setters:[function(e){t=e.r;n=e.c;i=e.h;o=e.H;r=e.g}],execute:function(){var a='.taro-checkbox{display:inline-block;position:relative}.taro-checkbox_checked{display:inline-block;position:relative;top:5px;border:1px solid #d1d1d1;border-radius:3px;width:23px;height:23px;min-height:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#fff;vertical-align:0;font-size:23px;color:#1aad19}.taro-checkbox_checked:checked::before{display:inline-block;position:absolute;left:50%;top:50%;vertical-align:middle;text-decoration:inherit;text-align:center;text-transform:none;font-family:weui;font-style:normal;font-weight:normal;font-variant:normal;font-size:inherit;color:inherit;content:"\\ea08";-webkit-transform:translate(-50%, -48%) scale(0.73);transform:translate(-50%, -48%) scale(0.73);speak:none}';var c=e("taro_checkbox_core",function(){function e(e){var i=this;t(this,e);this.onChange=n(this,"checkboxchange",7);this.handleChange=function(e){e.stopPropagation();i.onChange.emit({value:i.value})};this.name=undefined;this.value="";this.color=undefined;this.id=undefined;this.checked=false;this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false}e.prototype.watchId=function(e){if(!this.isWillLoadCalled)return;if(e)this.inputEl.setAttribute("id",e)};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true};e.prototype.componentDidRender=function(){this.id&&this.el.removeAttribute("id")};e.prototype.render=function(){var e=this;var t=this,n=t.checked,r=t.name,a=t.color,c=t.value,l=t.disabled,u=t.nativeProps;return i(o,{className:"weui-cells_checkbox"},i("input",Object.assign({ref:function(t){if(!t)return;e.inputEl=t;if(e.id)t.setAttribute("id",e.id)},type:"checkbox",value:c,name:r,class:"taro-checkbox_checked",style:{color:a},checked:n,disabled:l,onChange:this.handleChange},u)),i("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{id:["watchId"]}},enumerable:false,configurable:true});return e}());c.style=a;var l=e("taro_checkbox_group_core",function(){function e(e){t(this,e);this.onChange=n(this,"change",7);this.uniqueName=Date.now().toString(36);this.name=undefined}e.prototype.function=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-CHECKBOX-CORE")return;var t=this.el.querySelectorAll("taro-checkbox-core");this.value=this.getValues(t);this.onChange.emit({value:this.value})};e.prototype.componentDidLoad=function(){var e=this;var t=this.el.querySelectorAll("taro-checkbox-core");t.forEach((function(t){t.setAttribute("name",e.name||e.uniqueName)}));Object.defineProperty(this.el,"value",{get:function(){if(!e.value){var t=e.el.querySelectorAll("taro-checkbox-core");e.value=e.getValues(t)}return e.value},configurable:true})};e.prototype.getValues=function(e){return Array.from(e).filter((function(e){var t=e.querySelector("input");return t===null||t===void 0?void 0:t.checked})).map((function(e){return e.value}))};e.prototype.render=function(){return i(o,null)};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});return e}())}}}));
2
+ //# sourceMappingURL=p-56da1da3.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["indexCss","Checkbox","exports","this","handleChange","e","stopPropagation","_this","onChange","emit","value","class_1","prototype","watchId","newVal","isWillLoadCalled","inputEl","setAttribute","componentWillLoad","componentDidRender","id","el","removeAttribute","render","_a","checked","name","color","disabled","nativeProps","h","Host","className","Object","assign","ref","dom","type","class","style","CheckboxGroup","uniqueName","Date","now","toString","class_2","function","target","tagName","childList","querySelectorAll","getValues","componentDidLoad","forEach","element","defineProperty","get","childList_1","configurable","Array","from","filter","checkbox","querySelector","map"],"sources":["src/components/checkbox/style/index.scss?tag=taro-checkbox-core","src/components/checkbox/checkbox.tsx","src/components/checkbox/checkbox-group.tsx"],"sourcesContent":[".taro-checkbox {\n display: inline-block;\n position: relative;\n\n &_checked {\n display: inline-block;\n position: relative;\n top: 5px;\n border: 1px solid #d1d1d1;\n border-radius: 3px;\n width: 23px;\n height: 23px;\n min-height: 0;\n appearance: none;\n outline: 0;\n background-color: #fff;\n vertical-align: 0;\n font-size: 23px;\n color: #1aad19;\n\n &:checked::before {\n display: inline-block;\n position: absolute;\n left: 50%;\n top: 50%;\n vertical-align: middle;\n text-decoration: inherit;\n text-align: center;\n text-transform: none;\n font-family: weui;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n font-size: inherit;\n color: inherit;\n content: \"\\EA08\";\n transform: translate(-50%, -48%) scale(0.73);\n speak: none;\n }\n }\n}\n","import { Component, h, ComponentInterface, Prop, Event, EventEmitter, Host, Watch, Element, State } from '@stencil/core'\n\n@Component({\n tag: 'taro-checkbox-core',\n styleUrl: './style/index.scss'\n})\nexport class Checkbox implements ComponentInterface {\n private inputEl: HTMLInputElement\n @Prop() name: string\n @Prop() value = ''\n @Prop() color: string\n @Prop({ mutable: true }) id: string\n @Prop() checked = false\n @Prop() disabled = false\n @Prop() nativeProps = {}\n\n @State() isWillLoadCalled = false\n\n @Element() el: HTMLElement\n\n @Watch('id')\n watchId (newVal) {\n if (!this.isWillLoadCalled) return\n if (newVal) this.inputEl.setAttribute('id', newVal)\n }\n\n @Event({\n eventName: 'checkboxchange'\n })\n onChange: EventEmitter\n\n componentWillLoad () {\n this.isWillLoadCalled = true\n }\n\n componentDidRender () {\n this.id && this.el.removeAttribute('id')\n }\n\n handleChange = (e: Event) => {\n e.stopPropagation()\n this.onChange.emit({\n value: this.value\n })\n }\n\n render () {\n const { checked, name, color, value, disabled, nativeProps } = this\n\n return (\n <Host\n className='weui-cells_checkbox'\n >\n <input\n ref={dom => {\n if (!dom) return\n this.inputEl = dom\n if (this.id) dom.setAttribute('id', this.id)\n }}\n type='checkbox'\n value={value}\n name={name}\n class='taro-checkbox_checked'\n style={{ color }}\n checked={checked}\n disabled={disabled}\n onChange={this.handleChange}\n {...nativeProps}\n />\n <slot />\n </Host>\n )\n }\n}\n","// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport { Component, h, ComponentInterface, Host, Prop, Event, EventEmitter, Listen, Element } from '@stencil/core'\n\n@Component({\n tag: 'taro-checkbox-group-core'\n})\nexport class CheckboxGroup implements ComponentInterface {\n private uniqueName = Date.now().toString(36)\n private value: string[]\n\n @Prop() name\n\n @Element() el: HTMLElement\n\n @Event({\n eventName: 'change'\n })\n onChange: EventEmitter\n\n @Listen('checkboxchange')\n function (e: CustomEvent<{ value: string }>) {\n e.stopPropagation()\n if ((e.target as Element).tagName !== 'TARO-CHECKBOX-CORE') return\n\n const childList = this.el.querySelectorAll('taro-checkbox-core')\n\n this.value = this.getValues(childList)\n\n this.onChange.emit({\n value: this.value\n })\n }\n\n componentDidLoad () {\n const childList = this.el.querySelectorAll('taro-checkbox-core')\n\n childList.forEach((element) => {\n element.setAttribute('name', this.name || this.uniqueName)\n })\n\n Object.defineProperty(this.el, 'value', {\n get: () => {\n if (!this.value) {\n const childList = this.el.querySelectorAll('taro-checkbox-core')\n this.value = this.getValues(childList)\n }\n return this.value\n },\n configurable: true\n })\n }\n\n getValues (childList: NodeListOf<HTMLTaroCheckboxCoreElement>) {\n return Array.from(childList)\n .filter(element => {\n const checkbox: HTMLInputElement | null = element.querySelector('input')\n return checkbox?.checked\n })\n .map(element => element.value)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"],"mappings":"kKAAA,IAAMA,EAAW,kvB,ICMJC,EAAQC,EAAA,gC,4EAiCnBC,KAAAC,aAAe,SAACC,GACdA,EAAEC,kBACFC,EAAKC,SAASC,KAAK,CACjBC,MAAOH,EAAKG,O,iCAjCA,G,oDAGE,M,cACC,M,iBACG,G,sBAEM,K,CAK5BC,EAAAC,UAAAC,QAAA,SAASC,GACP,IAAKX,KAAKY,iBAAkB,OAC5B,GAAID,EAAQX,KAAKa,QAAQC,aAAa,KAAMH,E,EAQ9CH,EAAAC,UAAAM,kBAAA,WACEf,KAAKY,iBAAmB,I,EAG1BJ,EAAAC,UAAAO,mBAAA,WACEhB,KAAKiB,IAAM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G,MAAQH,EAAK4C,UAAUM,E,CAE9B,OAAOlD,EAAKG,K,EAEdgD,aAAc,M,EAIlBb,EAAAjC,UAAAuC,UAAA,SAAWF,GACT,OAAOU,MAAMC,KAAKX,GACfY,QAAO,SAAAP,GACN,IAAMQ,EAAoCR,EAAQS,cAAc,SAChE,OAAOD,IAAQ,MAARA,SAAQ,SAARA,EAAUrC,O,IAElBuC,KAAI,SAAAV,GAAW,OAAAA,EAAQ5C,KAAR,G,EAGpBmC,EAAAjC,UAAAW,OAAA,WACE,OACEO,EAACC,EAAI,K,uHAzDe,G"}
@@ -0,0 +1,2 @@
1
+ System.register(["./p-1a0e1932.system.js","./p-61f225ef.system.js"],(function(t){"use strict";var e,i,o,s,n,r;return{setters:[function(t){e=t.r;i=t.c;o=t.h;s=t.H;n=t.g},function(t){r=t.c}],execute:function(){var a="body,html{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-view-core{display:block}";var h=t("taro_view_core",function(){function t(t){e(this,t);this.onLongPress=i(this,"longpress",7);this.startTime=0;this.animation=undefined;this.hoverClass=undefined;this.hoverStartTime=50;this.hoverStayTime=400;this.hover=false;this.touch=false}t.prototype.onTouchStart=function(){var t=this;if(this.hoverClass){this.touch=true;setTimeout((function(){if(t.touch){t.hover=true}}),this.hoverStartTime)}this.timeoutEvent=setTimeout((function(){t.onLongPress.emit()}),350);this.startTime=Date.now()};t.prototype.onTouchMove=function(){clearTimeout(this.timeoutEvent)};t.prototype.onTouchEnd=function(){var t=this;var e=Date.now()-this.startTime;if(e<350){clearTimeout(this.timeoutEvent)}if(this.hoverClass){this.touch=false;setTimeout((function(){if(!t.touch){t.hover=false}}),this.hoverStayTime)}};t.prototype.componentDidRender=function(){var t=this.el;t.childNodes.forEach((function(t){if(t.nodeType===document.COMMENT_NODE&&t["s-cn"])t["s-cn"]=false;if(t.nodeType!==document.COMMENT_NODE&&t["s-sr"])t["s-sr"]=false}))};t.prototype.render=function(){var t;var e=r((t={},t["".concat(this.hoverClass)]=this.hover,t));var i={};if(!!this.animation){i["animation"]=this.animation;i["data-animation"]=this.animation}return o(s,Object.assign({class:e},i),o("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());h.style=a}}}));
2
+ //# sourceMappingURL=p-58877ef2.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["indexCss","View","exports","this","startTime","class_1","prototype","onTouchStart","_this","hoverClass","touch","setTimeout","hover","hoverStartTime","timeoutEvent","onLongPress","emit","Date","now","onTouchMove","clearTimeout","onTouchEnd","spanTime","hoverStayTime","componentDidRender","el","childNodes","forEach","item","nodeType","document","COMMENT_NODE","render","cls","classNames","_a","concat","attr","animation","h","Host","Object","assign","class"],"sources":["src/components/view/style/index.scss?tag=taro-view-core","src/components/view/view.tsx"],"sourcesContent":["body,\nhtml {\n user-select: none;\n -webkit-tap-highlight-color: rgb(0 0 0 / 0%);\n}\n\ntaro-view-core {\n display: block;\n}\n","import { Component, Prop, h, ComponentInterface, Host, Listen, State, Event, EventEmitter, Element } from '@stencil/core'\nimport classNames from 'classnames'\n\n@Component({\n tag: 'taro-view-core',\n styleUrl: './style/index.scss'\n})\nexport class View implements ComponentInterface {\n @Element() el: HTMLElement\n\n @Prop() animation: string\n @Prop() hoverClass: string\n @Prop() hoverStartTime = 50\n @Prop() hoverStayTime = 400\n @State() hover = false\n @State() touch = false\n\n @Event({\n eventName: 'longpress'\n }) onLongPress: EventEmitter\n\n private timeoutEvent: ReturnType<typeof setTimeout>\n private startTime = 0\n\n @Listen('touchstart')\n onTouchStart () {\n if (this.hoverClass) {\n this.touch = true\n setTimeout(() => {\n if (this.touch) {\n this.hover = true\n }\n }, this.hoverStartTime)\n }\n\n this.timeoutEvent = setTimeout(() => {\n this.onLongPress.emit()\n }, 350)\n this.startTime = Date.now()\n }\n\n @Listen('touchmove')\n onTouchMove () {\n clearTimeout(this.timeoutEvent)\n }\n\n @Listen('touchend')\n onTouchEnd () {\n const spanTime = Date.now() - this.startTime\n if (spanTime < 350) {\n clearTimeout(this.timeoutEvent)\n }\n if (this.hoverClass) {\n this.touch = false\n setTimeout(() => {\n if (!this.touch) {\n this.hover = false\n }\n }, this.hoverStayTime)\n }\n }\n\n componentDidRender () {\n const el = this.el\n el.childNodes.forEach(item => {\n // Note: ['s-cn'] Content Reference Node\n if (item.nodeType === document.COMMENT_NODE && item['s-cn']) item['s-cn'] = false\n // Note: ['s-sr'] Is a slot reference node (渲染完成后禁用 slotRelocation 特性, 避免 Stencil 组件相互调用时内置排序与第三方 UI 框架冲突导致组件顺序混乱)\n if (item.nodeType !== document.COMMENT_NODE && item['s-sr']) item['s-sr'] = false\n })\n }\n\n render() {\n const cls = classNames({\n [`${this.hoverClass}`]: this.hover\n })\n let attr = {}\n if (!!this.animation) {\n attr['animation'] = this.animation\n attr['data-animation'] = this.animation\n }\n return (\n <Host class={cls} {...attr}>\n <slot></slot>\n </Host>\n )\n }\n}\n"],"mappings":"gNAAA,IAAMA,EAAW,4K,ICOJC,EAAIC,EAAA,4B,+DAePC,KAAAC,UAAY,E,uEAVK,G,mBACD,I,WACP,M,WACA,K,CAUjBC,EAAAC,UAAAC,aAAA,eAAAC,EAAAL,KACE,GAAIA,KAAKM,WAAY,CACnBN,KAAKO,MAAQ,KACbC,YAAW,WACT,GAAIH,EAAKE,MAAO,CACdF,EAAKI,MAAQ,I,IAEdT,KAAKU,e,CAGVV,KAAKW,aAAeH,YAAW,WAC7BH,EAAKO,YAAYC,M,GAChB,KACHb,KAAKC,UAAYa,KAAKC,K,EAIxBb,EAAAC,UAAAa,YAAA,WACEC,aAAajB,KAAKW,a,EAIpBT,EAAAC,UAAAe,WAAA,eAAAb,EAAAL,KACE,IAAMmB,EAAWL,KAAKC,MAAQf,KAAKC,UACnC,GAAIkB,EAAW,IAAK,CAClBF,aAAajB,KAAKW,a,CAEpB,GAAIX,KAAKM,WAAY,CACnBN,KAAKO,MAAQ,MACbC,YAAW,WACT,IAAKH,EAAKE,MAAO,CACfF,EAAKI,MAAQ,K,IAEdT,KAAKoB,c,GAIZlB,EAAAC,UAAAkB,mBAAA,WACE,IAAMC,EAAKtB,KAAKsB,GAChBA,EAAGC,WAAWC,SAAQ,SAAAC,GAEpB,GAAIA,EAAKC,WAAaC,SAASC,cAAgBH,EAAK,QAASA,EAAK,QAAU,MAE5E,GAAIA,EAAKC,WAAaC,SAASC,cAAgBH,EAAK,QAASA,EAAK,QAAU,K,KAIhFvB,EAAAC,UAAA0B,OAAA,W,MACE,IAAMC,EAAMC,GAAUC,EAAA,GACpBA,EAAC,GAAAC,OAAGjC,KAAKM,aAAeN,KAAKS,M,IAE/B,IAAIyB,EAAO,GACX,KAAMlC,KAAKmC,UAAW,CACpBD,EAAK,aAAelC,KAAKmC,UACzBD,EAAK,kBAAoBlC,KAAKmC,S,CAEhC,OACEC,EAACC,EAAIC,OAAAC,OAAA,CAACC,MAAOV,GAASI,GACpBE,EAAA,a,uHA5ES,I"}
@@ -0,0 +1,2 @@
1
+ System.register(["./p-1a0e1932.system.js"],(function(e){"use strict";var t,i,a,n,r;return{setters:[function(e){t=e.r;i=e.c;a=e.h;n=e.H;r=e.g}],execute:function(){var o=e("taro_slider_core",function(){function e(e){var a=this;t(this,e);this.onChange=i(this,"change",7);this.onChanging=i(this,"changing",7);this.handleTouchStart=function(e){if(a.touching||a.disabled)return;a.touching=true;a.touchId=e.targetTouches[0].identifier;a.totalWidth=a.sliderInsRef.clientWidth||1;a.ogX=e.targetTouches[0].pageX;a.ogPercent=a.percent};this.handleTouchMove=function(e){var t=a,i=t.disabled,n=t.touching,r=t.touchId,o=t.totalWidth,l=t.max,s=t.min,h=t.ogX,u=t.ogPercent;if(!n||i)return;if(e.targetTouches[0].identifier!==r)return;e.preventDefault();var c=e.targetTouches[0].pageX;var d=c-h;var f=d/o*100+u;f=a.handleValueUpdate(f,0,100);var v=s+f*.01*(l-s);a.updateByStep(v);a.onChanging.emit({detail:e.detail,value:a.value})};this.handleTouchEnd=function(e){var t=a,i=t.disabled,n=t.touching;if(!n||i)return;if(a.percent!==a.ogPercent){a.onChange.emit({detail:e.detail,value:a.value})}a.touching=false;a.touchId=null;a.ogX=0;a.ogPercent=0};this.handleValueUpdate=function(e,t,i){if(t===void 0){t=a.min}if(i===void 0){i=a.max}e=isNaN(e)?0:e;return Math.max(t,Math.min(e,i))};this.min=0;this.max=100;this.step=1;this.disabled=false;this.value=0;this.activeColor="#1aad19";this.backgroundColor="#e9e9e9";this.blockSize=28;this.blockColor="#ffffff";this.showValue=false;this.name="";this.totalWidth=1;this.touching=false;this.ogX=0;this.touchId=null;this.percent=0;this.ogPercent=undefined;this.isWillLoadCalled=false}e.prototype.function=function(e){if(!this.isWillLoadCalled)return;var t=this,i=t.max,a=t.min;if(e!==null){var n=this.handleValueUpdate(e,a,i);this.updateByStep(n)}};e.prototype.componentDidLoad=function(){this.handler.addEventListener("touchstart",this.handleTouchStart);this.handler.addEventListener("touchmove",this.handleTouchMove);this.handler.addEventListener("touchend",this.handleTouchEnd)};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true;var e=this,t=e.value,i=e.max,a=e.min;var n=this.handleValueUpdate(t,a,i);this.updateByStep(n)};e.prototype.updateByStep=function(e){var t=this,i=t.max,a=t.min,n=t.step;var r=Math.floor((i-a)/n);for(var o=0;o<=r;o++){var l=a+n*o;var s=o===r?null:a+n*(o+1);if(e===l)break;if(!s&&e>l){e=l}if(s&&e>l&&e<s){if(e-l<n/2){e=l}else{e=s}break}}var h=(e-a)/(i-a)*100;this.value=e;this.percent=h};e.prototype.render=function(){var e=this;var t=this,i=t.showValue,r=t.backgroundColor,o=t.activeColor,l=t.blockColor,s=t.name,h=t.percent,u=t.value;var c=this.blockSize;var d={backgroundColor:r};var f=h>100?100:h;var v={width:"".concat(f,"%"),backgroundColor:o};if(c<12){c=12}if(c>28){c=28}var p={left:"".concat(f,"%"),width:"".concat(c,"px"),height:"".concat(c,"px"),backgroundColor:l,marginTop:"-".concat(Math.floor(c/2),"px"),marginLeft:"-".concat(Math.floor(c/2),"px")};return a(n,{class:"weui-slider-box"},a("div",{class:"weui-slider"},a("div",{class:"weui-slider__inner",style:d,ref:function(t){return e.sliderInsRef=t}},a("div",{style:v,class:"weui-slider__track"}),a("div",{class:"weui-slider__handler",ref:function(t){if(t)e.handler=t},style:p}),a("input",{type:"hidden",name:s,value:u}))),i&&a("div",{class:"weui-slider-box__value"},u))};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["function"]}},enumerable:false,configurable:true});return e}())}}}));
2
+ //# sourceMappingURL=p-59590806.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Slider","exports","this","handleTouchStart","e","_this","touching","disabled","touchId","targetTouches","identifier","totalWidth","sliderInsRef","clientWidth","ogX","pageX","ogPercent","percent","handleTouchMove","_a","max","min","preventDefault","diffX","handleValueUpdate","val","updateByStep","onChanging","emit","detail","value","handleTouchEnd","onChange","isNaN","Math","class_1","prototype","function","isWillLoadCalled","componentDidLoad","handler","addEventListener","componentWillLoad","step","steps","floor","i","current","next","render","showValue","backgroundColor","activeColor","blockColor","name","blockSize","innerStyles","percentage","trackStyles","width","concat","handlerStyles","left","height","marginTop","marginLeft","h","Host","class","style","ref","c","dom","type"],"sources":["src/components/slider/slider.tsx"],"sourcesContent":["import { Component, h, ComponentInterface, Prop, Event, EventEmitter, State, Watch, Host, Element } from '@stencil/core'\n\n@Component({\n tag: 'taro-slider-core'\n})\nexport class Slider implements ComponentInterface {\n private sliderInsRef: HTMLDivElement\n private handler: HTMLDivElement\n\n @Element() el: HTMLElement\n\n @Prop() min = 0\n @Prop() max = 100\n @Prop() step = 1\n @Prop() disabled = false\n @Prop({ mutable: true, reflect: true }) value: number = 0\n @Prop() activeColor = '#1aad19'\n @Prop() backgroundColor = '#e9e9e9'\n @Prop() blockSize = 28\n @Prop() blockColor = '#ffffff'\n @Prop() showValue = false\n @Prop() name = ''\n\n @State() totalWidth = 1\n @State() touching = false\n @State() ogX = 0\n @State() touchId: number | null = null\n @State() percent = 0\n @State() ogPercent: number\n @State() isWillLoadCalled = false\n\n @Watch('value')\n function (value) {\n if (!this.isWillLoadCalled) return\n const { max, min } = this\n if (value !== null) {\n const val = this.handleValueUpdate(value, min, max)\n this.updateByStep(val)\n }\n }\n\n componentDidLoad () {\n // 在自动化测试时,如果通过 JSX 绑定 touch 事件,\n // 模拟的 touch 事件只会在浏览器的 device mode 下触发,Karma 跑的测试就会跪。\n // 因此改为 didLoad 后 addEventListener 的形式。\n this.handler.addEventListener('touchstart', this.handleTouchStart)\n this.handler.addEventListener('touchmove', this.handleTouchMove)\n this.handler.addEventListener('touchend', this.handleTouchEnd)\n }\n\n @Event({\n eventName: 'change'\n })\n onChange: EventEmitter\n\n @Event({\n eventName: 'changing'\n })\n onChanging: EventEmitter\n\n componentWillLoad () {\n this.isWillLoadCalled = true\n const { value, max, min } = this\n\n const val = this.handleValueUpdate(value, min, max)\n this.updateByStep(val)\n }\n\n handleTouchStart = (e: TouchEvent) => {\n if (this.touching || this.disabled) return\n\n this.touching = true\n this.touchId = e.targetTouches[0].identifier\n this.totalWidth = this.sliderInsRef.clientWidth || 1\n this.ogX = e.targetTouches[0].pageX\n this.ogPercent = this.percent\n }\n\n handleTouchMove = (e: TouchEvent) => {\n const {\n disabled,\n touching,\n touchId,\n totalWidth,\n max,\n min,\n ogX,\n ogPercent\n } = this\n if (!touching || disabled) return\n if (e.targetTouches[0].identifier !== touchId) return\n\n // 阻止默认事件\n e.preventDefault()\n\n const pageX = e.targetTouches[0].pageX\n const diffX = pageX - ogX\n\n let percent = diffX / totalWidth * 100 + ogPercent\n percent = this.handleValueUpdate(percent, 0, 100)\n const val = min + percent * 0.01 * (max - min)\n\n this.updateByStep(val)\n\n this.onChanging.emit({\n detail: e.detail,\n value: this.value\n })\n }\n\n handleTouchEnd = (e: TouchEvent) => {\n const { disabled, touching } = this\n if (!touching || disabled) return\n\n if (this.percent !== this.ogPercent) {\n this.onChange.emit({\n detail: e.detail,\n value: this.value\n })\n }\n\n this.touching = false\n this.touchId = null\n this.ogX = 0\n this.ogPercent = 0\n }\n\n handleValueUpdate = (e: number, min = this.min, max = this.max) => {\n e = isNaN(e) ? 0 : e\n return Math.max(min, Math.min(e, max))\n }\n\n // 根据步长 step 修改 value\n updateByStep (value: number) {\n const { max, min, step } = this\n const steps = Math.floor((max - min) / step)\n for (let i = 0; i <= steps; i++) {\n const current = min + step * i\n const next = i === steps ? null : min + step * (i + 1)\n\n if (value === current) break\n\n if (!next && value > current) {\n // step 不能被 max - min 整除\n value = current\n }\n\n if (next && value > current && value < next) {\n if (value - current < step / 2) {\n value = current\n } else {\n value = next\n }\n break\n }\n }\n\n const percent = (value - min) / (max - min) * 100\n\n this.value = value\n this.percent = percent\n }\n\n render () {\n const {\n showValue,\n backgroundColor,\n activeColor,\n blockColor,\n name,\n percent,\n value\n } = this\n let blockSize = this.blockSize\n\n const innerStyles = { backgroundColor }\n const percentage = percent > 100 ? 100 : percent\n const trackStyles = {\n width: `${percentage}%`,\n backgroundColor: activeColor\n }\n\n if (blockSize < 12) {\n blockSize = 12\n }\n if (blockSize > 28) {\n blockSize = 28\n }\n\n const handlerStyles = {\n left: `${percentage}%`,\n width: `${blockSize}px`,\n height: `${blockSize}px`,\n backgroundColor: blockColor,\n marginTop: `-${Math.floor(blockSize / 2)}px`,\n marginLeft: `-${Math.floor(blockSize / 2)}px`\n }\n return (\n <Host class='weui-slider-box'>\n <div class='weui-slider'>\n <div class='weui-slider__inner' style={innerStyles} ref={c => (this.sliderInsRef = c!)}>\n <div style={trackStyles} class='weui-slider__track' />\n <div\n class='weui-slider__handler'\n ref={dom => {\n if (dom) this.handler = dom\n }}\n style={handlerStyles}\n />\n <input type='hidden' name={name} value={value} />\n </div>\n </div>\n {showValue && <div class='weui-slider-box__value'>{value}</div>}\n </Host>\n )\n }\n}\n"],"m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,EAACC,EAAI,CAACC,MAAM,mBACVF,EAAA,OAAKE,MAAM,eACTF,EAAA,OAAKE,MAAM,qBAAqBC,MAAOb,EAAac,IAAK,SAAAC,GAAC,OAAKlE,EAAKO,aAAe2D,CAAzB,GACxDL,EAAA,OAAKG,MAAOX,EAAaU,MAAM,uBAC/BF,EAAA,OACEE,MAAM,uBACNE,IAAK,SAAAE,GACH,GAAIA,EAAKnE,EAAKmC,QAAUgC,C,EAE1BH,MAAOR,IAETK,EAAA,SAAOO,KAAK,SAASnB,KAAMA,EAAMxB,MAAOA,MAG3CoB,GAAagB,EAAA,OAAKE,MAAM,0BAA0BtC,G,2OA/MxC,G"}
@@ -0,0 +1,2 @@
1
+ System.register(["./p-1a0e1932.system.js"],(function(t){"use strict";var e,n,i,o;return{setters:[function(t){e=t.r;n=t.c;i=t.h;o=t.g}],execute:function(){var s="taro-input-core{display:block}input{display:block;overflow:hidden;height:1.4rem;text-overflow:clip;text-align:inherit;white-space:nowrap}";function a(t,e,n){if(e==="search")t="search";if(n)t="password";if(typeof t==="undefined"){return"text"}if(!t){throw new Error("unexpected type")}if(t==="digit")t="number";return t}function u(t){return t!==null&&t!==void 0?t:""}var r=t("taro_input_core",function(){function t(t){var i=this;e(this,t);this.onInput=n(this,"input",7);this.onPaste=n(this,"paste",7);this.onFocus=n(this,"focus",7);this.onBlur=n(this,"blur",7);this.onConfirm=n(this,"confirm",7);this.onChange=n(this,"change",7);this.onKeyDown=n(this,"keydown",7);this.isOnComposition=false;this.isOnPaste=false;this.onInputExcuted=false;this.handleInput=function(t){t.stopPropagation();var e=i,n=e.type,o=e.maxlength,s=e.confirmType,u=e.password;if(!i.isOnComposition&&!i.onInputExcuted){var r=t.target.value;var l=a(n,s,u);i.onInputExcuted=true;if(l==="number"&&r&&o>-1&&o<=r.length){r=r.substring(0,o);t.target.value=r}i.value=r;i.onInput.emit({value:r,cursor:r.length});i.onInputExcuted=false}};this.handlePaste=function(t){t.stopPropagation();i.isOnPaste=true;i.onPaste.emit({value:t.target.value})};this.handleFocus=function(t){t.stopPropagation();i.onInputExcuted=false;i.onFocus.emit({value:t.target.value})};this.handleBlur=function(t){t.stopPropagation();i.onBlur.emit({value:t.target.value})};this.handleChange=function(t){t.stopPropagation();i.onChange.emit({value:t.target.value});if(i.isOnPaste){i.isOnPaste=false;i.value=t.target.value;i.onInput.emit({value:t.target.value,cursor:t.target.value.length})}};this.handleKeyDown=function(t){t.stopPropagation();var e=t.target.value;var n=t.keyCode||t.code;i.onInputExcuted=false;i.onKeyDown.emit({value:e,cursor:e.length,keyCode:n});n===13&&i.onConfirm.emit({value:e})};this.handleComposition=function(t){t.stopPropagation();if(!(t.target instanceof HTMLInputElement))return;if(t.type==="compositionend"){i.isOnComposition=false;i.value=t.target.value;i.onInput.emit({value:t.target.value,cursor:t.target.value.length})}else{i.isOnComposition=true}};this.handleBeforeinput=function(t){if(!t.data)return;var e=t.data&&/[0-9]/.test(t.data);if(i.type==="number"&&!e){t.preventDefault()}if(i.type==="digit"&&!e){if(t.data!=="."||t.data==="."&&t.target.value.indexOf(".")>-1){t.preventDefault()}}};this.value=undefined;this.type=undefined;this.password=false;this.placeholder=undefined;this.disabled=false;this.maxlength=140;this.autoFocus=false;this.confirmType="done";this.name=undefined;this.nativeProps={}}t.prototype.focus=function(){this.inputRef.focus()};t.prototype.watchAutoFocus=function(t,e){var n;if(!e&&t){(n=this.inputRef)===null||n===void 0?void 0:n.focus()}};t.prototype.watchValue=function(t){var e=u(t);if(this.inputRef.value!==e){this.inputRef.value=e}};t.prototype.componentDidLoad=function(){var t=this;var e,n,i,o,s;if(this.type==="file"){this.fileListener=function(){t.onInput.emit()};(e=this.inputRef)===null||e===void 0?void 0:e.addEventListener("change",this.fileListener)}else{(n=this.inputRef)===null||n===void 0?void 0:n.addEventListener("compositionstart",this.handleComposition);(i=this.inputRef)===null||i===void 0?void 0:i.addEventListener("compositionend",this.handleComposition);(o=this.inputRef)===null||o===void 0?void 0:o.addEventListener("beforeinput",this.handleBeforeinput);(s=this.inputRef)===null||s===void 0?void 0:s.addEventListener("textInput",this.handleBeforeinput)}Object.defineProperty(this.el,"value",{get:function(){return t.inputRef.value},set:function(e){return t.value=e},configurable:true})};t.prototype.disconnectedCallback=function(){var t,e,n,i,o;if(this.type==="file"){(t=this.inputRef)===null||t===void 0?void 0:t.removeEventListener("change",this.fileListener)}else{(e=this.inputRef)===null||e===void 0?void 0:e.removeEventListener("compositionstart",this.handleComposition);(n=this.inputRef)===null||n===void 0?void 0:n.removeEventListener("compositionend",this.handleComposition);(i=this.inputRef)===null||i===void 0?void 0:i.removeEventListener("beforeinput",this.handleBeforeinput);(o=this.inputRef)===null||o===void 0?void 0:o.removeEventListener("textInput",this.handleBeforeinput)}};t.prototype.render=function(){var t=this;var e=this,n=e.value,o=e.type,s=e.password,r=e.placeholder,l=e.autoFocus,h=e.disabled,p=e.maxlength,f=e.confirmType,d=e.name,c=e.nativeProps;return i("input",Object.assign({ref:function(e){t.inputRef=e;if(l&&e)e.focus()},class:"weui-input",type:a(o,f,s),placeholder:r,autoFocus:l,disabled:h,maxlength:p,name:d,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,onCompositionStart:this.handleComposition,onCompositionEnd:this.handleComposition},c,{value:u(n)}))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{autoFocus:["watchAutoFocus"],value:["watchValue"]}},enumerable:false,configurable:true});return t}());r.style=s}}}));
2
+ //# sourceMappingURL=p-5beca045.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["indexCss","getTrueType","type","confirmType","password","Error","fixControlledValue","value","Input","exports","this","isOnComposition","isOnPaste","onInputExcuted","handleInput","e","stopPropagation","_f","_this","maxlength","target","inputType","length","substring","onInput","emit","cursor","handlePaste","onPaste","handleFocus","onFocus","handleBlur","onBlur","handleChange","onChange","handleKeyDown","keyCode","code","onKeyDown","onConfirm","handleComposition","HTMLInputElement","handleBeforeinput","data","isNumber","test","preventDefault","indexOf","class_1","prototype","focus","inputRef","watchAutoFocus","newValue","oldValue","_a","watchValue","componentDidLoad","fileListener","addEventListener","_b","_c","_d","_e","Object","defineProperty","el","get","set","configurable","disconnectedCallback","removeEventListener","render","placeholder","autoFocus","disabled","name","nativeProps","h","assign","ref","input","class","onCompositionStart","onCompositionEnd"],"sources":["src/components/input/index.scss?tag=taro-input-core","src/components/input/input.tsx"],"sourcesContent":["taro-input-core {\n display: block;\n}\n\ninput {\n display: block;\n overflow: hidden;\n height: 1.4rem;\n text-overflow: clip;\n text-align: inherit;\n white-space: nowrap;\n}\n","import { Component, h, ComponentInterface, Prop, Event, EventEmitter, Element, Watch, Method } from '@stencil/core'\nimport { EventHandler, TaroEvent } from '../../../types'\n\nfunction getTrueType (type: string | undefined, confirmType: string, password: boolean) {\n if (confirmType === 'search') type = 'search'\n if (password) type = 'password'\n if (typeof type === 'undefined') {\n return 'text';\n }\n if (!type) {\n throw new Error('unexpected type')\n }\n if (type === 'digit') type = 'number'\n\n return type\n}\n\nfunction fixControlledValue (value?: string) {\n return value ?? ''\n}\n\n@Component({\n tag: 'taro-input-core',\n styleUrl: 'index.scss'\n})\nexport class Input implements ComponentInterface {\n private inputRef: HTMLInputElement\n private isOnComposition = false\n private isOnPaste = false\n private onInputExcuted = false\n private fileListener: EventHandler\n\n @Prop({ mutable: true }) value: string\n @Prop() type: string\n @Prop() password = false\n @Prop() placeholder: string\n @Prop() disabled = false\n @Prop() maxlength = 140\n @Prop({ attribute: 'focus', reflect: true }) autoFocus = false\n @Prop() confirmType = 'done'\n @Prop() name: string\n @Prop() nativeProps = {}\n\n @Element() el: HTMLElement\n\n @Method()\n focus() {\n this.inputRef.focus()\n }\n\n @Watch('autoFocus')\n watchAutoFocus (newValue: boolean, oldValue: boolean) {\n if (!oldValue && newValue) {\n this.inputRef?.focus()\n }\n }\n\n @Watch('value')\n watchValue (newValue: string) {\n const value = fixControlledValue(newValue)\n if (this.inputRef.value !== value) {\n this.inputRef.value = value\n }\n }\n\n @Event({\n eventName: 'input'\n }) onInput: EventEmitter\n\n @Event({\n eventName: 'paste'\n }) onPaste: EventEmitter\n\n @Event({\n eventName: 'focus'\n }) onFocus: EventEmitter\n\n @Event({\n eventName: 'blur'\n }) onBlur: EventEmitter\n\n @Event({\n eventName: 'confirm'\n }) onConfirm: EventEmitter\n\n @Event({\n eventName: 'change'\n }) onChange: EventEmitter\n\n @Event({\n eventName: 'keydown'\n }) onKeyDown: EventEmitter\n\n componentDidLoad () {\n if (this.type === 'file') {\n this.fileListener = () => {\n this.onInput.emit()\n }\n this.inputRef?.addEventListener('change', this.fileListener)\n } else {\n this.inputRef?.addEventListener('compositionstart', this.handleComposition)\n this.inputRef?.addEventListener('compositionend', this.handleComposition)\n this.inputRef?.addEventListener('beforeinput', this.handleBeforeinput)\n this.inputRef?.addEventListener('textInput', this.handleBeforeinput)\n }\n\n Object.defineProperty(this.el, 'value', {\n get: () => this.inputRef.value,\n set: value => (this.value = value),\n configurable: true\n })\n }\n\n disconnectedCallback () {\n if (this.type === 'file') {\n this.inputRef?.removeEventListener('change', this.fileListener)\n } else {\n this.inputRef?.removeEventListener('compositionstart', this.handleComposition)\n this.inputRef?.removeEventListener('compositionend', this.handleComposition)\n this.inputRef?.removeEventListener('beforeinput', this.handleBeforeinput)\n this.inputRef?.removeEventListener('textInput', this.handleBeforeinput)\n }\n }\n\n handleInput = (e: TaroEvent<HTMLInputElement>) => {\n e.stopPropagation()\n const {\n type,\n maxlength,\n confirmType,\n password\n } = this\n if (!this.isOnComposition && !this.onInputExcuted) {\n let value = e.target.value\n const inputType = getTrueType(type, confirmType, password)\n this.onInputExcuted = true\n /* 修复 number 类型 maxlength 无效 */\n if (inputType === 'number' && value && maxlength > -1 && maxlength <= value.length) {\n value = value.substring(0, maxlength)\n e.target.value = value\n }\n\n // 修复 IOS 光标跳转问题\n // if (!(['number', 'file'].indexOf(inputType) >= 0)) {\n // const pos = e.target.selectionEnd\n // setTimeout(\n // () => {\n // e.target.selectionStart = pos\n // e.target.selectionEnd = pos\n // }\n // )\n // }\n\n this.value = value\n this.onInput.emit({\n value,\n cursor: value.length\n })\n this.onInputExcuted = false\n }\n }\n\n handlePaste = (e: TaroEvent<HTMLInputElement> & ClipboardEvent) => {\n e.stopPropagation()\n this.isOnPaste = true\n this.onPaste.emit({\n value: e.target.value\n })\n }\n\n handleFocus = (e: TaroEvent<HTMLInputElement> & FocusEvent) => {\n e.stopPropagation()\n this.onInputExcuted = false\n this.onFocus.emit({\n value: e.target.value\n })\n }\n\n handleBlur = (e: TaroEvent<HTMLInputElement> & FocusEvent) => {\n e.stopPropagation()\n this.onBlur.emit({\n value: e.target.value\n })\n }\n\n handleChange = (e: TaroEvent<HTMLInputElement>) => {\n e.stopPropagation()\n this.onChange.emit({\n value: e.target.value\n })\n\n if (this.isOnPaste) {\n this.isOnPaste = false\n this.value = e.target.value\n this.onInput.emit({\n value: e.target.value,\n cursor: e.target.value.length\n })\n }\n }\n\n handleKeyDown = (e: TaroEvent<HTMLInputElement> & KeyboardEvent) => {\n e.stopPropagation()\n const { value } = e.target\n const keyCode = e.keyCode || e.code\n this.onInputExcuted = false\n\n this.onKeyDown.emit({\n value,\n cursor: value.length,\n keyCode\n })\n\n keyCode === 13 && this.onConfirm.emit({ value })\n }\n\n handleComposition = (e: Event) => {\n e.stopPropagation()\n if (!(e.target instanceof HTMLInputElement)) return\n\n if (e.type === 'compositionend') {\n this.isOnComposition = false\n this.value = e.target.value\n this.onInput.emit({\n value: e.target.value,\n cursor: e.target.value.length\n })\n } else {\n this.isOnComposition = true\n }\n }\n\n handleBeforeinput = (e) => {\n if (!e.data) return\n const isNumber = e.data && /[0-9]/.test(e.data)\n if (this.type === 'number' && !isNumber) {\n e.preventDefault()\n }\n if (this.type === 'digit' && !isNumber) {\n if (e.data !== '.' || (e.data === '.' && e.target.value.indexOf('.') > -1)) {\n e.preventDefault()\n }\n }\n }\n\n render () {\n const {\n value,\n type,\n password,\n placeholder,\n autoFocus,\n disabled,\n maxlength,\n confirmType,\n name,\n nativeProps\n } = this\n\n return (\n <input\n ref={input => {\n this.inputRef = input!\n if (autoFocus && input) input.focus()\n }}\n class='weui-input'\n type={getTrueType(type, confirmType, password)}\n placeholder={placeholder}\n autoFocus={autoFocus}\n disabled={disabled}\n maxlength={maxlength}\n name={name}\n onInput={this.handleInput}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n onChange={this.handleChange}\n onKeyDown={this.handleKeyDown}\n onPaste={this.handlePaste}\n onCompositionStart={this.handleComposition}\n onCompositionEnd={this.handleComposition}\n {...nativeProps}\n value={fixControlledValue(value)}\n />\n )\n }\n}\n"],"mappings":"0JAAA,IAAMA,EAAW,4ICGjB,SAASC,EAAaC,EAA0BC,EAAqBC,GACnE,GAAID,IAAgB,SAAUD,EAAO,SACrC,GAAIE,EAAUF,EAAO,WACrB,UAAWA,IAAS,YAAa,CAC/B,MAAO,M,CAET,IAAKA,EAAM,CACT,MAAM,IAAIG,MAAM,kB,CAElB,GAAIH,IAAS,QAASA,EAAO,SAE7B,OAAOA,CACT,CAEA,SAASI,EAAoBC,GAC3B,OAAOA,IAAK,MAALA,SAAK,EAALA,EAAS,EAClB,C,IAMaC,EAAKC,EAAA,6B,oQAERC,KAAAC,gBAAkB,MAClBD,KAAAE,UAAY,MACZF,KAAAG,eAAiB,MA+FzBH,KAAAI,YAAc,SAACC,GACbA,EAAEC,kBACI,IAAAC,EAKFC,EAJFhB,EAAIe,EAAAf,KACJiB,EAASF,EAAAE,UACThB,EAAWc,EAAAd,YACXC,EAAQa,EAAAb,SAEV,IAAKc,EAAKP,kBAAoBO,EAAKL,eAAgB,CACjD,IAAIN,EAAQQ,EAAEK,OAAOb,MACrB,IAAMc,EAAYpB,EAAYC,EAAMC,EAAaC,GACjDc,EAAKL,eAAiB,KAEtB,GAAIQ,IAAc,UAAYd,GAASY,GAAa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ACThB,EAAWc,EAAAd,YACXyE,EAAI3D,EAAA2D,KACJC,EAAW5D,EAAA4D,YAGb,OACEC,EAAA,QAAAd,OAAAe,OAAA,CACEC,IAAK,SAAAC,GACH/D,EAAKiC,SAAW8B,EAChB,GAAIP,GAAaO,EAAOA,EAAM/B,O,EAEhCgC,MAAM,aACNhF,KAAMD,EAAYC,EAAMC,EAAaC,GACrCqE,YAAaA,EACbC,UAAWA,EACXC,SAAUA,EACVxD,UAAWA,EACXyD,KAAMA,EACNpD,QAASd,KAAKI,YACdgB,QAASpB,KAAKmB,YACdG,OAAQtB,KAAKqB,WACbG,SAAUxB,KAAKuB,aACfK,UAAW5B,KAAKyB,cAChBP,QAASlB,KAAKiB,YACdwD,mBAAoBzE,KAAK8B,kBACzB4C,iBAAkB1E,KAAK8B,mBACnBqC,EAAW,CACftE,MAAOD,EAAmBC,K,0QAhQhB,I"}
@@ -0,0 +1,2 @@
1
+ import{h as t,r as e,c as a,H as s,g as r}from"./p-78e3ebb9.js";import i from"@tarojs/taro";import{c as o}from"./p-76724e58.js";import{i as n}from"./p-d3c7f87d.js";const h=t=>{let e=t||"";let a;const s={path:null,query:null,fragment:null};a=e.indexOf("#");if(a>-1){s.fragment=e.substring(a+1);e=e.substring(0,a)}a=e.indexOf("?");if(a>-1){s.query=e.substring(a+1);e=e.substring(0,a)}s.path=e;return s};const b=(t="")=>t.charAt(0)==="/"?t:"/"+t;const l=(t="",e="")=>new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)||t===e;const c=(t="",e="")=>l(t,e)?t.substring(e.length):t;const d=(t="",e="")=>t.includes(e)?t.substring(0,t.length-e.length):t;const f=(t="hash",e="/")=>{const a=t==="hash"?location.hash.slice(1).split("?")[0]:location.pathname;return b(c(a,e))};function u(t){return t.charAt(0)==="/"}function _(t,e){for(var a=e,s=a+1,r=t.length;s<r;a+=1,s+=1){t[a]=t[s]}t.pop()}function g(t,e){if(e===undefined)e="";var a=t&&t.split("/")||[];var s=e&&e.split("/")||[];var r=t&&u(t);var i=e&&u(e);var o=r||i;if(t&&u(t)){s=a}else if(a.length){s.pop();s=s.concat(a)}if(!s.length)return"/";var n;if(s.length){var h=s[s.length-1];n=h==="."||h===".."||h===""}else{n=false}var b=0;for(var l=s.length;l>=0;l--){var c=s[l];if(c==="."){_(s,l)}else if(c===".."){_(s,l);b++}else if(b){_(s,l);b--}}if(!o)for(;b--;b)s.unshift("..");if(o&&s[0]!==""&&(!s[0]||!u(s[0])))s.unshift("");var d=s.join("/");if(n&&d.substr(-1)!=="/")d+="/";return d}const p=({index:e,isSelected:a=false,textColor:s,iconPath:r,badgeText:h,showRedDot:b=false,pagePath:l,text:c,onSelect:d})=>{const f=o("weui-tabbar__item",{"weui-bar__item_on":a});const u={position:"absolute",top:"-2px",right:"-13px"};const _={position:"absolute",top:"0",right:"-6px"};function g(){const t=i.getCurrentPages().shift();if(typeof(t===null||t===void 0?void 0:t.onTabItemTap)==="function"&&n(this)){t.onTabItemTap({index:e,pagePath:l,text:c})}d(e)}return t("a",{key:e,href:"javascript:;",class:f,onClick:g},t("span",{style:{display:"inline-block",position:"relative"}},t("img",{src:r,alt:"",class:"weui-tabbar__icon"}),!!h&&t("span",{class:"weui-badge taro-tabbar-badge",style:u},h),b&&t("span",{class:"weui-badge weui-badge_dot",style:_})),t("p",{class:"weui-tabbar__label",style:{color:s}},c))};const m="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}";const B=0;const v=1;const T=2;const x="taro-tabbar__tabbar";const w="taro-tabbar__tabbar-hide";const H="taro-tabbar__tabbar-slideout";const y=class{constructor(t){e(this,t);this.onLongPress=a(this,"longpress",7);this.homePage="";this.customRoutes=[];this.tabbarPos="bottom";this.getOriginUrl=t=>{const e=this.customRoutes.filter((([,e])=>{const a=h(e).path;const s=h(t).path;return a===s}));return d(e.length?e[0][0]:t,".html")};this.getSelectedIndex=t=>{let e=-1;this.list.forEach((({pagePath:a},s)=>{const r=h(t).path;const i=h(a).path;if(r===i){e=s}}));return e};this.switchTab=t=>{this.selectedIndex=t;i.switchTab({url:this.list[t].pagePath})};this.switchTabHandler=({url:t,successHandler:e,errorHandler:a})=>{const s=this.getOriginUrl(this.getCurrentUrl()||this.homePage);const r=g(t,s);const i=this.getSelectedIndex(r);if(i>-1){this.switchTab(i);e({errMsg:"switchTab:ok"})}else{a({errMsg:`switchTab:fail page "${r}" is not found`})}};this.routerChangeHandler=t=>{var e;const a=(e=t===null||t===void 0?void 0:t.toLocation)===null||e===void 0?void 0:e.path;let s;if(typeof a==="string"){const t=this.conf.basename||"/";s=c(b(a||this.homePage),t)||"/"}else{s=this.getCurrentUrl()}this.selectedIndex=this.getSelectedIndex(this.getOriginUrl(s))};this.setTabBarBadgeHandler=({index:t,text:e,successHandler:a,errorHandler:s})=>{const r=[...this.list];if(t in r){r[t].showRedDot=false;r[t].badgeText=e;a({errMsg:"setTabBarBadge:ok"})}else{s({errMsg:"setTabBarBadge:fail tabbar item not found"})}this.list=r};this.removeTabBarBadgeHandler=({index:t,successHandler:e,errorHandler:a})=>{const s=[...this.list];if(t in s){s[t].badgeText=null;s[t].badgeText=null;e({errMsg:"removeTabBarBadge:ok"})}else{a({errMsg:"removeTabBarBadge:fail tabbar item not found"})}this.list=s};this.showTabBarRedDotHandler=({index:t,successHandler:e,errorHandler:a})=>{const s=[...this.list];if(t in s){s[t].badgeText=null;s[t].showRedDot=true;e({errMsg:"showTabBarRedDot:ok"})}else{a({errMsg:"showTabBarRedDot:fail tabbar item not found"})}this.list=s};this.hideTabBarRedDotHandler=({index:t,successHandler:e,errorHandler:a})=>{const s=[...this.list];if(t in s){s[t].showRedDot=false;e({errMsg:"hideTabBarRedDot:ok"})}else{a({errMsg:"hideTabBarRedDot:fail tabbar item not found"})}this.list=s};this.showTabBarHandler=({successHandler:t})=>{this.status=B;t({errMsg:"showTabBar:ok"})};this.hideTabBarHandler=({animation:t,successHandler:e})=>{this.status=t?T:v;e({errMsg:"hideTabBar:ok"})};this.setTabBarStyleHandler=({color:t,selectedColor:e,backgroundColor:a,borderStyle:s,successHandler:r})=>{if(a)this.backgroundColor=a;if(s)this.borderStyle=s;if(t)this.color=t;if(e)this.selectedColor=e;r({errMsg:"setTabBarStyle:ok"})};this.setTabBarItemHandler=({index:t,iconPath:e,selectedIconPath:a,text:s,successHandler:r,errorHandler:i})=>{const o=[...this.list];if(t in o){if(e)o[t].iconPath=e;if(a)o[t].selectedIconPath=a;if(s)o[t].text=s;r({errMsg:"setTabBarItem:ok"})}else{i({errMsg:"setTabBarItem:fail tabbar item not found"})}this.list=o};this.conf=undefined;this.list=undefined;this.borderStyle=undefined;this.backgroundColor=undefined;this.color=undefined;this.selectedColor=undefined;this.selectedIndex=-1;this.status=B;const s=this.conf.list;const r=this.conf.customRoutes;if(Object.prototype.toString.call(s)!=="[object Array]"||s.length<2||s.length>5){throw new Error("tabBar 配置错误")}this.homePage=b(this.conf.homePage);for(let t in r){const e=r[t];t=b(t);if(typeof e==="string"){this.customRoutes.push([t,b(e)])}else if((e===null||e===void 0?void 0:e.length)>0){this.customRoutes.push(...e.map((e=>[t,b(e)])))}}s.forEach((t=>{if(t.pagePath.indexOf("/")!==0){t.pagePath="/"+t.pagePath}}));this.list=s;this.borderStyle=this.conf.borderStyle;this.backgroundColor=this.conf.backgroundColor;this.color=this.conf.color;this.selectedColor=this.conf.selectedColor}getCurrentUrl(){const t=f(this.conf.mode,this.conf.basename);return decodeURI(t==="/"?this.homePage:t)}bindEvent(){i.eventCenter.on("__taroRouterChange",this.routerChangeHandler);i.eventCenter.on("__taroSwitchTab",this.switchTabHandler);i.eventCenter.on("__taroSetTabBarBadge",this.setTabBarBadgeHandler);i.eventCenter.on("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);i.eventCenter.on("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);i.eventCenter.on("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);i.eventCenter.on("__taroShowTabBar",this.showTabBarHandler);i.eventCenter.on("__taroHideTabBar",this.hideTabBarHandler);i.eventCenter.on("__taroSetTabBarStyle",this.setTabBarStyleHandler);i.eventCenter.on("__taroSetTabBarItem",this.setTabBarItemHandler)}removeEvent(){i.eventCenter.off("__taroRouterChange",this.routerChangeHandler);i.eventCenter.off("__taroSwitchTab",this.switchTabHandler);i.eventCenter.off("__taroSetTabBarBadge",this.setTabBarBadgeHandler);i.eventCenter.off("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);i.eventCenter.off("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);i.eventCenter.off("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);i.eventCenter.off("__taroShowTabBar",this.showTabBarHandler);i.eventCenter.off("__taroHideTabBar",this.hideTabBarHandler);i.eventCenter.off("__taroSetTabBarStyle",this.setTabBarStyleHandler);i.eventCenter.off("__taroSetTabBarItem",this.setTabBarItemHandler)}componentDidLoad(){this.tabbarPos=this.tabbar.nextElementSibling?"top":"bottom";this.bindEvent();this.routerChangeHandler()}disconnectedCallback(){this.removeEvent()}render(){const{tabbarPos:e="bottom"}=this;const a=this.status;const r=o("weui-tabbar",{[`taro-tabbar__border-${this.borderStyle||"black"}`]:true});const i=this.selectedIndex===-1||a===v;const n=a===T;return t(s,{class:o(x,`${x}-${e}`,{[w]:i,[H]:n})},t("div",{class:r,style:{backgroundColor:this.backgroundColor||"",height:"inherit"}},this.list.map(((e,a)=>{const s=this.selectedIndex===a;let r;let i;if(s){r=this.selectedColor||"";i=e.selectedIconPath}else{r=this.color||"";i=e.iconPath}return t(p,{index:a,onSelect:this.switchTab.bind(this),isSelected:s,textColor:r,iconPath:i,pagePath:e.pagePath,text:e.text,badgeText:e.badgeText,showRedDot:e.showRedDot})}))))}get tabbar(){return r(this)}};y.style=m;export{y as taro_tabbar};
2
+ //# sourceMappingURL=p-5d3acf86.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["splitUrl","_url","url","pos","res","path","query","fragment","indexOf","substring","addLeadingSlash","charAt","hasBasename","prefix","RegExp","test","stripBasename","length","stripSuffix","suffix","includes","getCurrentPage","routerMode","basename","pagePath","location","hash","slice","split","pathname","isAbsolute","spliceOne","list","index","i","k","n","pop","resolvePathname","to","from","undefined","toParts","fromParts","isToAbs","isFromAbs","mustEndAbs","concat","hasTrailingSlash","last","up","part","unshift","result","join","substr","TabbarItem","isSelected","textColor","iconPath","badgeText","showRedDot","text","onSelect","className","classNames","badgeStyle","position","top","right","dotStyle","onClick","page","Taro","getCurrentPages","shift","onTabItemTap","isVisible","this","h","key","href","class","style","display","src","alt","color","indexCss","STATUS_SHOW","STATUS_HIDE","STATUS_SLIDEOUT","basicTabBarClassName","hideTabBarClassName","hideTabBarWithAnimationClassName","Tabbar","constructor","hostRef","homePage","customRoutes","tabbarPos","getOriginUrl","customRoute","filter","customUrl","pathA","pathB","getSelectedIndex","foundIndex","forEach","idx","switchTab","selectedIndex","switchTabHandler","successHandler","errorHandler","currentUrl","getCurrentUrl","nextTab","errMsg","routerChangeHandler","options","_a","toLocation","currentPage","routerBasename","conf","setTabBarBadgeHandler","removeTabBarBadgeHandler","showTabBarRedDotHandler","hideTabBarRedDotHandler","showTabBarHandler","status","hideTabBarHandler","animation","setTabBarStyleHandler","selectedColor","backgroundColor","borderStyle","setTabBarItemHandler","selectedIconPath","Object","prototype","toString","call","Error","push","map","p","item","routePath","mode","decodeURI","bindEvent","eventCenter","on","removeEvent","off","componentDidLoad","tabbar","nextElementSibling","disconnectedCallback","render","containerCls","shouldHideTabBar","shouldSlideout","Host","height","bind"],"sources":["./src/utils/url.ts","../taro-router/dist/utils/index.js","../../node_modules/.pnpm/registry.npmjs.org+resolve-pathname@3.0.0/node_modules/resolve-pathname/esm/resolve-pathname.js","./src/components/tabbar/tabbar-item.tsx","./src/components/tabbar/style/index.scss?tag=taro-tabbar","./src/components/tabbar/tabbar.tsx"],"sourcesContent":["export const normalizePath = url => {\n let _isRelative\n let _leadingParents = ''\n let _parent, _pos\n\n // handle relative paths\n if (url.charAt(0) !== '/') {\n _isRelative = true\n url = '/' + url\n }\n\n // handle relative files (as opposed to directories)\n if (url.substring(-3) === '/..' || url.slice(-2) === '/.') {\n url += '/'\n }\n\n // resolve simples\n url = url.replace(/(\\/(\\.\\/)+)|(\\/\\.$)/g, '/').replace(/\\/{2,}/g, '/')\n\n // remember leading parents\n if (_isRelative) {\n _leadingParents = url.substring(1).match(/^(\\.\\.\\/)+/) || ''\n if (_leadingParents) {\n _leadingParents = _leadingParents[0]\n }\n }\n\n // resolve parents\n while (true) {\n _parent = url.search(/\\/\\.\\.(\\/|$)/)\n if (_parent === -1) {\n // no more ../ to resolve\n break\n } else if (_parent === 0) {\n // top level cannot be relative, skip it\n url = url.substring(3)\n continue\n }\n\n _pos = url.substring(0, _parent).lastIndexOf('/')\n if (_pos === -1) {\n _pos = _parent\n }\n url = url.substring(0, _pos) + url.substring(_parent + 3)\n }\n\n // revert to relative\n if (_isRelative) {\n url = _leadingParents + url.substring(1)\n }\n\n return url\n}\n\nexport const splitUrl = _url => {\n let url = _url || ''\n let pos\n const res = {\n path: null,\n query: null,\n fragment: null\n }\n\n pos = url.indexOf('#')\n if (pos > -1) {\n res.fragment = url.substring(pos + 1)\n url = url.substring(0, pos)\n }\n\n pos = url.indexOf('?')\n if (pos > -1) {\n res.query = url.substring(pos + 1)\n url = url.substring(0, pos)\n }\n\n res.path = url\n\n return res\n}\n","// export const removeLeadingSlash = (str = '') => str.replace(/^\\.?\\//, '')\n// export const removeTrailingSearch = (str = '') => str.replace(/\\?[\\s\\S]*$/, '')\nexport const addLeadingSlash = (url = '') => (url.charAt(0) === '/' ? url : '/' + url);\nexport const hasBasename = (path = '', prefix = '') => new RegExp('^' + prefix + '(\\\\/|\\\\?|#|$)', 'i').test(path) || path === prefix;\nexport const stripBasename = (path = '', prefix = '') => hasBasename(path, prefix) ? path.substring(prefix.length) : path;\nexport const stripTrailing = (str = '') => str.replace(/[?#][\\s\\S]*$/, '');\nexport const stripSuffix = (path = '', suffix = '') => path.includes(suffix) ? path.substring(0, path.length - suffix.length) : path;\nexport const getHomePage = (path = '', basename = '', customRoutes = {}, entryPagePath = '') => {\n var _a;\n const routePath = addLeadingSlash(stripBasename(path, basename));\n const alias = ((_a = Object.entries(customRoutes).find(([key]) => key === routePath)) === null || _a === void 0 ? void 0 : _a[1]) || routePath;\n return entryPagePath || (typeof alias === 'string' ? alias : alias[0]) || basename;\n};\nexport const getCurrentPage = (routerMode = 'hash', basename = '/') => {\n const pagePath = routerMode === 'hash'\n ? location.hash.slice(1).split('?')[0]\n : location.pathname;\n return addLeadingSlash(stripBasename(pagePath, basename));\n};\nclass RoutesAlias {\n constructor() {\n this.conf = [];\n this.getConfig = (url = '') => {\n const customRoute = this.conf.filter((arr) => {\n return arr.includes(url);\n });\n return customRoute[0];\n };\n this.getOrigin = (url = '') => {\n var _a;\n return ((_a = this.getConfig(url)) === null || _a === void 0 ? void 0 : _a[0]) || url;\n };\n this.getAlias = (url = '') => {\n var _a;\n return ((_a = this.getConfig(url)) === null || _a === void 0 ? void 0 : _a[1]) || url;\n };\n this.getAll = (url = '') => {\n return this.conf\n .filter((arr) => arr.includes(url))\n .reduceRight((p, a) => {\n p.unshift(a[1]);\n return p;\n }, []);\n };\n }\n set(customRoutes = {}) {\n for (let key in customRoutes) {\n const path = customRoutes[key];\n key = addLeadingSlash(key);\n if (typeof path === 'string') {\n this.conf.push([key, addLeadingSlash(path)]);\n }\n else if ((path === null || path === void 0 ? void 0 : path.length) > 0) {\n this.conf.push(...path.map(p => [key, addLeadingSlash(p)]));\n }\n }\n }\n}\nexport const routesAlias = new RoutesAlias();\n","function isAbsolute(pathname) {\n return pathname.charAt(0) === '/';\n}\n\n// About 1.5x faster than the two-arg version of Array#splice()\nfunction spliceOne(list, index) {\n for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {\n list[i] = list[k];\n }\n\n list.pop();\n}\n\n// This implementation is based heavily on node's url.parse\nfunction resolvePathname(to, from) {\n if (from === undefined) from = '';\n\n var toParts = (to && to.split('/')) || [];\n var fromParts = (from && from.split('/')) || [];\n\n var isToAbs = to && isAbsolute(to);\n var isFromAbs = from && isAbsolute(from);\n var mustEndAbs = isToAbs || isFromAbs;\n\n if (to && isAbsolute(to)) {\n // to is absolute\n fromParts = toParts;\n } else if (toParts.length) {\n // to is relative, drop the filename\n fromParts.pop();\n fromParts = fromParts.concat(toParts);\n }\n\n if (!fromParts.length) return '/';\n\n var hasTrailingSlash;\n if (fromParts.length) {\n var last = fromParts[fromParts.length - 1];\n hasTrailingSlash = last === '.' || last === '..' || last === '';\n } else {\n hasTrailingSlash = false;\n }\n\n var up = 0;\n for (var i = fromParts.length; i >= 0; i--) {\n var part = fromParts[i];\n\n if (part === '.') {\n spliceOne(fromParts, i);\n } else if (part === '..') {\n spliceOne(fromParts, i);\n up++;\n } else if (up) {\n spliceOne(fromParts, i);\n up--;\n }\n }\n\n if (!mustEndAbs) for (; up--; up) fromParts.unshift('..');\n\n if (\n mustEndAbs &&\n fromParts[0] !== '' &&\n (!fromParts[0] || !isAbsolute(fromParts[0]))\n )\n fromParts.unshift('');\n\n var result = fromParts.join('/');\n\n if (hasTrailingSlash && result.substr(-1) !== '/') result += '/';\n\n return result;\n}\n\nexport default resolvePathname;\n","import classNames from 'classnames'\nimport { FunctionalComponent, h } from '@stencil/core'\nimport Taro from '@tarojs/taro'\n\nimport { isVisible } from '../../utils'\n\ntype TabbarItemProps = {\n index: number\n isSelected?: boolean\n textColor?: string\n badgeText?: string\n iconPath: string\n showRedDot?: boolean\n pagePath?: string\n text?: string\n onSelect: (index: number) => void\n}\n\nexport const TabbarItem: FunctionalComponent<TabbarItemProps> = ({\n index,\n isSelected = false,\n textColor,\n iconPath,\n badgeText,\n showRedDot = false,\n pagePath,\n text,\n onSelect\n}) => {\n const className = classNames('weui-tabbar__item', {\n 'weui-bar__item_on': isSelected\n })\n const badgeStyle = {\n position: 'absolute',\n top: '-2px',\n right: '-13px'\n }\n const dotStyle = {\n position: 'absolute',\n top: '0',\n right: '-6px'\n }\n\n function onClick () {\n const page = Taro.getCurrentPages().shift()\n if (typeof page?.onTabItemTap === 'function' && isVisible(this)) {\n page.onTabItemTap({ index, pagePath, text })\n }\n onSelect(index)\n }\n\n return (\n <a key={index} href='javascript:;' class={className} onClick={onClick}>\n <span style={{ display: 'inline-block', position: 'relative' }}>\n <img src={iconPath} alt='' class='weui-tabbar__icon' />\n {!!badgeText && (\n <span\n class='weui-badge taro-tabbar-badge'\n style={badgeStyle}>\n {badgeText}\n </span>\n )}\n {showRedDot && (\n <span\n class='weui-badge weui-badge_dot'\n style={dotStyle}\n />\n )}\n </span>\n <p class='weui-tabbar__label' style={{ color: textColor }}>\n {text}\n </p>\n </a>\n )\n}\n","html,\nbody {\n height: 100%;\n}\n\n#app {\n height: 100%;\n}\n\n.taro-tabbar {\n &__border {\n &-white {\n &::before {\n border-top-color: #fff !important;\n }\n }\n }\n\n &__container {\n display: flex;\n overflow: hidden;\n flex-direction: column;\n height: 100%;\n }\n\n &__panel {\n overflow: auto;\n position: relative;\n flex: 1;\n -webkit-overflow-scrolling: auto;\n }\n\n &__tabbar {\n position: relative;\n width: 100%;\n height: 50px;\n transition: bottom 0.2s, top 0.2s;\n\n &-top {\n top: 0;\n }\n\n &-bottom {\n bottom: 0;\n margin-bottom: constant(safe-area-inset-bottom);\n margin-bottom: env(safe-area-inset-bottom);\n }\n\n &-hide {\n display: none;\n }\n\n &-slideout {\n top: -52px;\n flex: 0 0;\n }\n }\n\n &__panel + &__tabbar-slideout {\n top: auto;\n bottom: -52px;\n }\n}\n","import { Component, Prop, h, ComponentInterface, Host, State, Event, EventEmitter, Element } from '@stencil/core'\nimport Taro from '@tarojs/taro'\nimport { addLeadingSlash, getCurrentPage, stripBasename, stripSuffix } from '@tarojs/router/dist/utils'\nimport { IH5RouterConfig } from '@tarojs/taro/types/compile'\nimport classNames from 'classnames'\nimport resolvePathname from 'resolve-pathname'\n\nimport { splitUrl } from '../../utils'\nimport { TabbarItem } from './tabbar-item'\n\nconst STATUS_SHOW = 0\nconst STATUS_HIDE = 1\nconst STATUS_SLIDEOUT = 2\n\nconst basicTabBarClassName = 'taro-tabbar__tabbar'\nconst hideTabBarClassName = 'taro-tabbar__tabbar-hide'\nconst hideTabBarWithAnimationClassName = 'taro-tabbar__tabbar-slideout'\n\ninterface RouterHandler {\n index: string\n text: string\n url: string\n successHandler: Function\n errorHandler: Function\n animation?: boolean\n}\n\nexport interface Conf {\n color: string\n selectedColor: string\n backgroundColor: string\n borderStyle?: 'black' | 'white'\n list: TabbarList[]\n position?: 'bottom' | 'top'\n custom: boolean\n customRoutes: Record<string, string | string[]>\n mode: IH5RouterConfig['mode']\n basename: string\n homePage: string\n currentPagename: string\n}\n\ninterface TabbarList {\n pagePath: string\n text: string\n iconPath?: string\n selectedIconPath?: string\n badgeText?: string\n showRedDot?: boolean\n}\n\n@Component({\n tag: 'taro-tabbar',\n styleUrl: './style/index.scss'\n})\nexport class Tabbar implements ComponentInterface {\n private homePage = ''\n\n private customRoutes: Array<string[]> = []\n\n private tabbarPos: 'top' | 'bottom' = 'bottom'\n\n @Prop() conf: Conf\n\n @State() list: TabbarList[]\n\n @State() borderStyle: Conf['borderStyle']\n\n @State() backgroundColor: Conf['backgroundColor']\n\n @State() color: Conf['color']\n\n @State() selectedColor: Conf['selectedColor']\n\n @State() selectedIndex = -1\n\n @State() status: 0 | 1 | 2 = STATUS_SHOW\n\n @Event({\n eventName: 'longpress'\n }) onLongPress: EventEmitter\n\n @Element() tabbar: HTMLDivElement\n\n constructor () {\n const list = this.conf.list\n const customRoutes = this.conf.customRoutes\n if (\n Object.prototype.toString.call(list) !== '[object Array]' ||\n list.length < 2 ||\n list.length > 5\n ) {\n throw new Error('tabBar 配置错误')\n }\n\n this.homePage = addLeadingSlash(this.conf.homePage)\n for (let key in customRoutes) {\n const path = customRoutes[key]\n key = addLeadingSlash(key)\n if (typeof path === 'string') {\n this.customRoutes.push([key, addLeadingSlash(path)])\n } else if (path?.length > 0) {\n this.customRoutes.push(...path.map(p => [key, addLeadingSlash(p)]))\n }\n }\n\n list.forEach(item => {\n if (item.pagePath.indexOf('/') !== 0) {\n item.pagePath = '/' + item.pagePath\n }\n })\n\n this.list = list\n this.borderStyle = this.conf.borderStyle\n this.backgroundColor = this.conf.backgroundColor\n this.color = this.conf.color\n this.selectedColor = this.conf.selectedColor\n }\n\n getCurrentUrl () {\n const routePath = getCurrentPage(this.conf.mode, this.conf.basename)\n return decodeURI(routePath === '/' ? this.homePage : routePath)\n }\n\n getOriginUrl = (url: string) => {\n const customRoute = this.customRoutes.filter(([, customUrl]) => {\n const pathA = splitUrl(customUrl).path\n const pathB = splitUrl(url).path\n return pathA === pathB\n })\n return stripSuffix(customRoute.length ? customRoute[0][0] : url, '.html')\n }\n\n getSelectedIndex = (url: string) => {\n let foundIndex = -1\n this.list.forEach(({ pagePath }, idx) => {\n const pathA = splitUrl(url).path\n const pathB = splitUrl(pagePath).path\n if (pathA === pathB) {\n foundIndex = idx\n }\n })\n return foundIndex\n }\n\n switchTab = (index: number) => {\n this.selectedIndex = index\n Taro.switchTab({\n url: this.list[index].pagePath\n })\n }\n\n switchTabHandler = ({ url, successHandler, errorHandler }: RouterHandler) => {\n const currentUrl = this.getOriginUrl(this.getCurrentUrl() || this.homePage)\n const nextTab = resolvePathname(url, currentUrl)\n const foundIndex = this.getSelectedIndex(nextTab)\n\n if (foundIndex > -1) {\n this.switchTab(foundIndex)\n successHandler({\n errMsg: 'switchTab:ok'\n })\n } else {\n errorHandler({\n errMsg: `switchTab:fail page \"${nextTab}\" is not found`\n })\n }\n }\n\n routerChangeHandler = (options?) => {\n const to = options?.toLocation?.path\n let currentPage\n\n if (typeof to === 'string') {\n const routerBasename = this.conf.basename || '/'\n currentPage = stripBasename(addLeadingSlash(to || this.homePage), routerBasename) || '/'\n } else {\n currentPage = this.getCurrentUrl()\n }\n\n this.selectedIndex = this.getSelectedIndex(this.getOriginUrl(currentPage))\n }\n\n setTabBarBadgeHandler = ({ index, text, successHandler, errorHandler }: RouterHandler) => {\n const list = [...this.list]\n if (index in list) {\n list[index].showRedDot = false\n list[index].badgeText = text\n successHandler({\n errMsg: 'setTabBarBadge:ok'\n })\n } else {\n errorHandler({\n errMsg: 'setTabBarBadge:fail tabbar item not found'\n })\n }\n\n this.list = list\n }\n\n removeTabBarBadgeHandler = ({ index, successHandler, errorHandler }: RouterHandler) => {\n const list = [...this.list]\n if (index in list) {\n list[index].badgeText = null\n list[index].badgeText = null\n successHandler({\n errMsg: 'removeTabBarBadge:ok'\n })\n } else {\n errorHandler({\n errMsg: 'removeTabBarBadge:fail tabbar item not found'\n })\n }\n\n this.list = list\n }\n\n showTabBarRedDotHandler = ({ index, successHandler, errorHandler }: RouterHandler) => {\n const list = [...this.list]\n if (index in list) {\n list[index].badgeText = null\n list[index].showRedDot = true\n successHandler({\n errMsg: 'showTabBarRedDot:ok'\n })\n } else {\n errorHandler({\n errMsg: 'showTabBarRedDot:fail tabbar item not found'\n })\n }\n\n this.list = list\n }\n\n hideTabBarRedDotHandler = ({ index, successHandler, errorHandler }: RouterHandler) => {\n const list = [...this.list]\n if (index in list) {\n list[index].showRedDot = false\n successHandler({\n errMsg: 'hideTabBarRedDot:ok'\n })\n } else {\n errorHandler({\n errMsg: 'hideTabBarRedDot:fail tabbar item not found'\n })\n }\n\n this.list = list\n }\n\n showTabBarHandler = ({ successHandler }) => {\n this.status = STATUS_SHOW\n successHandler({\n errMsg: 'showTabBar:ok'\n })\n }\n\n hideTabBarHandler = ({ animation, successHandler }) => {\n this.status = animation ? STATUS_SLIDEOUT : STATUS_HIDE\n successHandler({\n errMsg: 'hideTabBar:ok'\n })\n }\n\n setTabBarStyleHandler = ({ color, selectedColor, backgroundColor, borderStyle, successHandler }) => {\n if (backgroundColor) this.backgroundColor = backgroundColor\n if (borderStyle) this.borderStyle = borderStyle\n if (color) this.color = color\n if (selectedColor) this.selectedColor = selectedColor\n successHandler({\n errMsg: 'setTabBarStyle:ok'\n })\n }\n\n setTabBarItemHandler = ({ index, iconPath, selectedIconPath, text, successHandler, errorHandler }) => {\n const list = [...this.list]\n if (index in list) {\n if (iconPath) list[index].iconPath = iconPath\n if (selectedIconPath) list[index].selectedIconPath = selectedIconPath\n if (text) list[index].text = text\n successHandler({\n errMsg: 'setTabBarItem:ok'\n })\n } else {\n errorHandler({\n errMsg: 'setTabBarItem:fail tabbar item not found'\n })\n }\n\n this.list = list\n }\n\n bindEvent () {\n Taro.eventCenter.on('__taroRouterChange', this.routerChangeHandler)\n Taro.eventCenter.on('__taroSwitchTab', this.switchTabHandler)\n Taro.eventCenter.on('__taroSetTabBarBadge', this.setTabBarBadgeHandler)\n Taro.eventCenter.on('__taroRemoveTabBarBadge', this.removeTabBarBadgeHandler)\n Taro.eventCenter.on('__taroShowTabBarRedDotHandler', this.showTabBarRedDotHandler)\n Taro.eventCenter.on('__taroHideTabBarRedDotHandler', this.hideTabBarRedDotHandler)\n Taro.eventCenter.on('__taroShowTabBar', this.showTabBarHandler)\n Taro.eventCenter.on('__taroHideTabBar', this.hideTabBarHandler)\n Taro.eventCenter.on('__taroSetTabBarStyle', this.setTabBarStyleHandler)\n Taro.eventCenter.on('__taroSetTabBarItem', this.setTabBarItemHandler)\n }\n\n removeEvent () {\n Taro.eventCenter.off('__taroRouterChange', this.routerChangeHandler)\n Taro.eventCenter.off('__taroSwitchTab', this.switchTabHandler)\n Taro.eventCenter.off('__taroSetTabBarBadge', this.setTabBarBadgeHandler)\n Taro.eventCenter.off('__taroRemoveTabBarBadge', this.removeTabBarBadgeHandler)\n Taro.eventCenter.off('__taroShowTabBarRedDotHandler', this.showTabBarRedDotHandler)\n Taro.eventCenter.off('__taroHideTabBarRedDotHandler', this.hideTabBarRedDotHandler)\n Taro.eventCenter.off('__taroShowTabBar', this.showTabBarHandler)\n Taro.eventCenter.off('__taroHideTabBar', this.hideTabBarHandler)\n Taro.eventCenter.off('__taroSetTabBarStyle', this.setTabBarStyleHandler)\n Taro.eventCenter.off('__taroSetTabBarItem', this.setTabBarItemHandler)\n }\n\n componentDidLoad () {\n this.tabbarPos = this.tabbar.nextElementSibling ? 'top' : 'bottom'\n this.bindEvent()\n this.routerChangeHandler()\n }\n\n disconnectedCallback () {\n this.removeEvent()\n }\n\n render () {\n const { tabbarPos = 'bottom' } = this\n const status = this.status\n const containerCls = classNames('weui-tabbar', {\n [`taro-tabbar__border-${this.borderStyle || 'black'}`]: true\n })\n const shouldHideTabBar = this.selectedIndex === -1 || status === STATUS_HIDE\n const shouldSlideout = status === STATUS_SLIDEOUT\n\n return (\n <Host\n class={classNames(\n basicTabBarClassName,\n `${basicTabBarClassName}-${tabbarPos}`, {\n [hideTabBarClassName]: shouldHideTabBar,\n [hideTabBarWithAnimationClassName]: shouldSlideout\n })} >\n <div\n class={containerCls}\n style={{\n backgroundColor: this.backgroundColor || '',\n height: 'inherit'\n }}\n >\n {this.list.map((item, index) => {\n const isSelected = this.selectedIndex === index\n let textColor\n let iconPath\n if (isSelected) {\n textColor = this.selectedColor || ''\n iconPath = item.selectedIconPath\n } else {\n textColor = this.color || ''\n iconPath = item.iconPath\n }\n return (\n <TabbarItem\n index={index}\n onSelect={this.switchTab.bind(this)}\n isSelected={isSelected}\n textColor={textColor}\n iconPath={i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,MAAOA,EACP8B,SAAUe,KAAKiC,UAAUyD,KAAK1F,MAC9BrB,WAAYA,EACZC,UAAWA,EACXC,SAAUA,EACVnC,SAAU6H,EAAK7H,SACfsC,KAAMuF,EAAKvF,KACXF,UAAWyF,EAAKzF,UAChBC,WAAYwF,EAAKxF,YACjB,K"}
@@ -0,0 +1,2 @@
1
+ import{r as s,h as o,H as t}from"./p-78e3ebb9.js";import{c as e}from"./p-76724e58.js";const r=class{constructor(o){s(this,o);this.type=undefined;this.size="23";this.color=undefined}render(){const{type:s,size:r,color:i}=this;const n=s===null||s===void 0?void 0:s.replace(/_/g,"-");const c=e({[`weui-icon-${n}`]:true});const a={"font-size":`${r}px`,color:i};return o(t,{class:c,style:a})}};export{r as taro_icon_core};
2
+ //# sourceMappingURL=p-5f3c65f0.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Icon","render","type","size","color","this","iconType","replace","cls","classNames","style","h","Host","class"],"sources":["./src/components/icon/icon.tsx"],"sourcesContent":["import { Component, h, ComponentInterface, Prop, Host } from '@stencil/core'\nimport classNames from 'classnames'\n\nexport type Type = 'success' | 'success_no_circle' | 'info'| 'warn'| 'waiting'| 'cancel'| 'download'| 'search'| 'clear'\ntype IconType = Exclude<Type, 'success_no_circle'> | 'success-no-circle'\n\n@Component({\n tag: 'taro-icon-core'\n})\nexport class Icon implements ComponentInterface {\n @Prop() type: Type\n @Prop() size: string | number = '23'\n @Prop() color: string\n\n render () {\n const {\n type,\n size,\n color\n } = this\n\n const iconType = type?.replace(/_/g, '-') as IconType\n\n const cls = classNames({\n [`weui-icon-${iconType}`]: true\n })\n\n const style = {\n 'font-size': `${size}px`,\n color\n }\n\n return (\n <Host class={cls} style={style} />\n )\n }\n}\n"],"mappings":"4FASaA,EAAI,M,uDAEiB,K,qBAGhCC,SACE,MAAMC,KACJA,EAAIC,KACJA,EAAIC,MACJA,GACEC,KAEJ,MAAMC,EAAWJ,IAAI,MAAJA,SAAI,SAAJA,EAAMK,QAAQ,KAAM,KAErC,MAAMC,EAAMC,EAAW,CACrB,CAAC,aAAaH,KAAa,OAG7B,MAAMI,EAAQ,CACZ,YAAa,GAAGP,MAChBC,SAGF,OACEO,EAACC,EAAI,CAACC,MAAOL,EAAKE,MAAOA,G"}
@@ -0,0 +1,2 @@
1
+ import{r as o,h as r,H as t}from"./p-78e3ebb9.js";import{n as a}from"./p-6a96da58.js";import"@tarojs/taro";const s=class{constructor(r){o(this,r)}componentDidLoad(){a("RootPortal",this)}render(){return r(t,null)}};export{s as taro_root_portal_core};
2
+ //# sourceMappingURL=p-603ceecd.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RootPortal","componentDidLoad","notSupport","this","render","h","Host"],"sources":["./src/components/root-portal/root-portal.tsx"],"sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-root-portal-core'\n})\nexport class RootPortal implements ComponentInterface {\n componentDidLoad () {\n notSupport('RootPortal', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"],"mappings":"iHAOaA,EAAU,M,yBACrBC,mBACEC,EAAW,aAAcC,K,CAG3BC,SACE,OACEC,EAACC,EAAI,K"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../node_modules/.pnpm/registry.npmjs.org+classnames@2.3.1/node_modules/classnames/index.js"],"names":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","argType","push","Array","isArray","inner","apply","toString","Object","prototype","key","call","join","module","exports","default","window"],"mappings":";;;;;;CAOC,WAGA,IAAIA,EAAS,GAAGC,eAEhB,SAASC,IACR,IAAIC,EAAU,GAEd,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAC1C,IAAIG,EAAMF,UAAUD,GACpB,IAAKG,EAAK,SAEV,IAAIC,SAAiBD,EAErB,GAAIC,IAAY,UAAYA,IAAY,SAAU,CACjDL,EAAQM,KAAKF,QACP,GAAIG,MAAMC,QAAQJ,GAAM,CAC9B,GAAIA,EAAID,OAAQ,CACf,IAAIM,EAAQV,EAAWW,MAAM,KAAMN,GACnC,GAAIK,EAAO,CACVT,EAAQM,KAAKG,UAGT,GAAIJ,IAAY,SAAU,CAChC,GAAID,EAAIO,WAAaC,OAAOC,UAAUF,SAAU,CAC/C,IAAK,IAAIG,KAAOV,EAAK,CACpB,GAAIP,EAAOkB,KAAKX,EAAKU,IAAQV,EAAIU,GAAM,CACtCd,EAAQM,KAAKQ,SAGT,CACNd,EAAQM,KAAKF,EAAIO,cAKpB,OAAOX,EAAQgB,KAAK,KAGrB,GAAqCC,EAAOC,QAAS,CACpDnB,EAAWoB,QAAUpB,EACrBkB,EAAAC,QAAiBnB,MAMX,CACNqB,OAAOrB,WAAaA,IAhDtB","sourcesContent":["/*!\n Copyright (c) 2018 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString === Object.prototype.toString) {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"]}
1
+ {"version":3,"names":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","argType","push","Array","isArray","inner","apply","toString","Object","prototype","key","call","join","module","exports","default","window"],"sources":["../../node_modules/.pnpm/registry.npmjs.org+classnames@2.3.1/node_modules/classnames/index.js"],"sourcesContent":["/*!\n Copyright (c) 2018 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString === Object.prototype.toString) {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"mappings":";;;;;;CAOC,WAGA,IAAIA,EAAS,GAAGC,eAEhB,SAASC,IACR,IAAIC,EAAU,GAEd,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAC1C,IAAIG,EAAMF,UAAUD,GACpB,IAAKG,EAAK,SAEV,IAAIC,SAAiBD,EAErB,GAAIC,IAAY,UAAYA,IAAY,SAAU,CACjDL,EAAQM,KAAKF,E,MACP,GAAIG,MAAMC,QAAQJ,GAAM,CAC9B,GAAIA,EAAID,OAAQ,CACf,IAAIM,EAAQV,EAAWW,MAAM,KAAMN,GACnC,GAAIK,EAAO,CACVT,EAAQM,KAAKG,E,QAGT,GAAIJ,IAAY,SAAU,CAChC,GAAID,EAAIO,WAAaC,OAAOC,UAAUF,SAAU,CAC/C,IAAK,IAAIG,KAAOV,EAAK,CACpB,GAAIP,EAAOkB,KAAKX,EAAKU,IAAQV,EAAIU,GAAM,CACtCd,EAAQM,KAAKQ,E,OAGT,CACNd,EAAQM,KAAKF,EAAIO,W,GAKpB,OAAOX,EAAQgB,KAAK,IACtB,CAEC,GAAqCC,EAAOC,QAAS,CACpDnB,EAAWoB,QAAUpB,EACrBkB,EAAAC,QAAiBnB,C,KAMX,CACNqB,OAAOrB,WAAaA,C,CAEtB,EAlDA,E"}
@@ -0,0 +1,2 @@
1
+ System.register(["./p-1a0e1932.system.js","./p-61f225ef.system.js"],(function(o){"use strict";var t,r,e,a,i,n;return{setters:[function(o){t=o.r;r=o.c;e=o.h;a=o.H;i=o.g},function(o){n=o.c}],execute:function(){var c='taro-button-core{display:block;overflow:hidden;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;border-width:0;border-radius:5px;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#f8f8f8;line-height:2.55555556;text-decoration:none;text-align:center;font-size:18px;color:#000;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-button-core:focus{outline:0}taro-button-core:not([disabled]):active{background-color:#dedede;color:rgba(0, 0, 0, 0.6)}taro-button-core::after{position:absolute;left:0;top:0;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid rgba(0, 0, 0, 0.2);border-radius:10px;width:200%;height:200%;content:" ";-webkit-transform:scale(0.5);transform:scale(0.5);-webkit-transform-origin:0 0;transform-origin:0 0}taro-button-core+taro-button-core{margin-top:15px}taro-button-core[type=default]{background-color:#f8f8f8;color:#000}taro-button-core[type=default]:not([disabled]):visited{color:#000}taro-button-core[type=default]:not([disabled]):active{background-color:#dedede;color:rgba(0, 0, 0, 0.6)}taro-button-core[size=mini]{display:inline-block;padding:0 1.32em;width:auto;line-height:2.3;font-size:13px}taro-button-core[plain],taro-button-core[plain][type=default],taro-button-core[plain][type=primary]{border-width:1px;background-color:transparent}taro-button-core[disabled]{color:rgba(255, 255, 255, 0.6)}taro-button-core[disabled][type=default]{background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}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:-0.2em 0.34em 0 0}taro-button-core[loading][type=primary],taro-button-core[loading][type=warn]{color:rgba(255, 255, 255, 0.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]{border:1px solid #1aad19;color:#1aad19}taro-button-core[plain][type=primary]:not([disabled]):active{border-color:rgba(26, 173, 25, 0.6);background-color:transparent;color:rgba(26, 173, 25, 0.6)}taro-button-core[plain][type=primary]::after{border-width:0}taro-button-core[plain],taro-button-core[plain][type=default]{border:1px solid #353535;color:#353535}taro-button-core[plain]:not([disabled]):active,taro-button-core[plain][type=default]:not([disabled]):active{border-color:rgba(53, 53, 53, 0.6);background-color:transparent;color:rgba(53, 53, 53, 0.6)}taro-button-core[plain]::after,taro-button-core[plain][type=default]::after{border-width:0}taro-button-core[type=primary]{background-color:#1aad19;color:#fff}taro-button-core[type=primary]:not([disabled]):visited{color:#fff}taro-button-core[type=primary]:not([disabled]):active{background-color:#179b16;color:rgba(255, 255, 255, 0.6)}taro-button-core[type=warn]{background-color:#e64340;color:#fff}taro-button-core[type=warn]:not([disabled]):visited{color:#fff}taro-button-core[type=warn]:not([disabled]):active{background-color:#ce3c39;color:rgba(255, 255, 255, 0.6)}taro-button-core[plain][disabled]{border:1px solid rgba(0, 0, 0, 0.2);background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}taro-button-core[plain][disabled][type=primary]{border:1px solid rgba(0, 0, 0, 0.2);background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}';var d=o("taro_button_core",function(){function o(o){t(this,o);this.onSubmit=r(this,"tarobuttonsubmit",7);this.onReset=r(this,"tarobuttonreset",7);this.disabled=undefined;this.hoverClass="button-hover";this.type="";this.hoverStartTime=20;this.hoverStayTime=70;this.size=undefined;this.plain=undefined;this.loading=false;this.formType=null;this.hover=false;this.touch=false}o.prototype.onClick=function(o){if(this.disabled){o.stopPropagation()}};o.prototype.onTouchStart=function(){var o=this;if(this.disabled){return}this.touch=true;if(this.hoverClass&&!this.disabled){setTimeout((function(){if(o.touch){o.hover=true}}),this.hoverStartTime)}};o.prototype.onTouchEnd=function(){var o=this;if(this.disabled){return}this.touch=false;if(this.hoverClass&&!this.disabled){setTimeout((function(){if(!o.touch){o.hover=false}}),this.hoverStayTime)}if(this.formType==="submit"){this.onSubmit.emit()}else if(this.formType==="reset"){this.onReset.emit()}};o.prototype.render=function(){var o;var t=this,r=t.disabled,i=t.hoverClass,c=t.type,d=t.size,l=t.plain,b=t.loading,s=t.hover;var u=n((o={},o["".concat(i)]=s&&!r,o));return e(a,{class:u,type:c,plain:l,loading:b,size:d,disabled:r},b&&e("i",{class:"weui-loading"}),e("slot",null))};Object.defineProperty(o.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return o}());d.style=c}}}));
2
+ //# sourceMappingURL=p-623b3eb6.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["indexCss","Button","exports","class_1","prototype","onClick","e","this","disabled","stopPropagation","onTouchStart","_this","touch","hoverClass","setTimeout","hover","hoverStartTime","onTouchEnd","hoverStayTime","formType","onSubmit","emit","onReset","render","_b","type","size","plain","loading","cls","classNames","_a","concat","h","Host","class"],"sources":["src/components/button/style/index.scss?tag=taro-button-core","src/components/button/button.tsx"],"sourcesContent":["$weuiBtnHeight: 46px;\n$weuiBtnFontSize: 18px;\n$weuiBtnFontColor: #fff;\n$weuiBtnActiveFontColor: rgb(255 255 255 / 60%);\n$weuiBtnDisabledFontColor: rgb(255 255 255 / 60%);\n$weuiBtnBorderRadius: 5px;\n$weuiBtnDefaultGap: 15px;\n\n// Button Mini\n$weuiBtnMiniFontSize: 13px;\n$weuiBtnMiniHeight: 2.3;\n\n// Button Default\n$weuiBtnDefaultFontColor: #000;\n$weuiBtnDefaultActiveFontColor: rgb(0 0 0 / 60%);\n$weuiBtnDefaultDisabledFontColor: rgb(0 0 0 / 30%);\n$weuiBtnDefaultBg: #f8f8f8;\n$weuiBtnDefaultActiveBg: #dedede;\n$weuiBtnDefaultDisabledBg: #f7f7f7;\n\n// Button Primary\n$weuiBtnPrimaryBg: #1aad19;\n$weuiBtnPrimaryActiveBg: #179b16;\n$weuiBtnPrimaryDisabledBg: #9ed99d;\n\n// Button Warn\n$weuiBtnWarnBg: #e64340;\n$weuiBtnWarnActiveBg: #ce3c39;\n$weuiBtnWarnDisabledBg: #ec8b89;\n\n// Button Plain Primary\n$weuiBtnPlainPrimaryColor: rgb(26 173 25 / 100%);\n$weuiBtnPlainPrimaryBorderColor: rgb(26 173 25 / 100%);\n$weuiBtnPlainPrimaryActiveColor: rgb(26 173 25 / 60%);\n$weuiBtnPlainPrimaryActiveBorderColor: rgb(26 173 25 / 60%);\n\n// Button Plain Default\n$weuiBtnPlainDefaultColor: rgb(53 53 53 / 100%);\n$weuiBtnPlainDefaultBorderColor: rgb(53 53 53 / 100%);\n$weuiBtnPlainDefaultActiveColor: rgb(53 53 53 / 60%);\n$weuiBtnPlainDefaultActiveBorderColor: rgb(53 53 53 / 60%);\n\ntaro-button-core {\n display: block;\n overflow: hidden;\n position: relative;\n box-sizing: border-box;\n margin-left: auto;\n margin-right: auto;\n padding-left: 14px;\n padding-right: 14px;\n border-width: 0;\n border-radius: $weuiBtnBorderRadius;\n width: 100%;\n appearance: none;\n outline: 0;\n background-color: $weuiBtnDefaultBg;\n line-height: 2.55555556;\n text-decoration: none;\n text-align: center;\n font-size: $weuiBtnFontSize;\n color: $weuiBtnDefaultFontColor;\n -webkit-tap-highlight-color: rgb(0 0 0 / 0%);\n\n &:focus {\n outline: 0;\n }\n\n &:not([disabled]):active {\n background-color: $weuiBtnDefaultActiveBg;\n color: $weuiBtnDefaultActiveFontColor;\n }\n\n &::after {\n position: absolute;\n left: 0;\n top: 0;\n box-sizing: border-box;\n border: 1px solid rgb(0 0 0 / 20%);\n border-radius: $weuiBtnBorderRadius * 2;\n width: 200%;\n height: 200%;\n content: \" \";\n transform: scale(0.5);\n transform-origin: 0 0;\n }\n\n & + & {\n margin-top: $weuiBtnDefaultGap;\n }\n\n &[type=\"default\"] {\n background-color: $weuiBtnDefaultBg;\n color: $weuiBtnDefaultFontColor;\n\n &:not([disabled]):visited {\n color: $weuiBtnDefaultFontColor;\n }\n\n &:not([disabled]):active {\n background-color: $weuiBtnDefaultActiveBg;\n color: $weuiBtnDefaultActiveFontColor;\n }\n }\n\n &[size=\"mini\"] {\n display: inline-block;\n padding: 0 1.32em;\n width: auto;\n line-height: $weuiBtnMiniHeight;\n font-size: $weuiBtnMiniFontSize;\n }\n\n &[plain],\n &[plain][type=\"default\"],\n &[plain][type=\"primary\"] {\n border-width: 1px;\n background-color: transparent;\n }\n\n &[disabled] {\n color: $weuiBtnDisabledFontColor;\n\n &[type=\"default\"] {\n background-color: $weuiBtnDefaultDisabledBg;\n color: $weuiBtnDefaultDisabledFontColor;\n }\n\n &[type=\"primary\"] {\n background-color: $weuiBtnPrimaryDisabledBg;\n }\n\n &[type=\"warn\"] {\n background-color: $weuiBtnWarnDisabledBg;\n }\n }\n\n &[loading] {\n .weui-loading {\n margin: -0.2em 0.34em 0 0;\n }\n\n &[type=\"primary\"],\n &[type=\"warn\"] {\n color: $weuiBtnActiveFontColor;\n }\n\n &[type=\"primary\"] {\n background-color: $weuiBtnPrimaryActiveBg;\n }\n\n &[type=\"warn\"] {\n background-color: $weuiBtnWarnActiveBg;\n }\n }\n\n &[plain][type=\"primary\"] {\n border: 1px solid $weuiBtnPlainPrimaryBorderColor;\n color: $weuiBtnPlainPrimaryColor;\n\n &:not([disabled]):active {\n border-color: $weuiBtnPlainPrimaryActiveBorderColor;\n background-color: transparent;\n color: $weuiBtnPlainPrimaryActiveColor;\n }\n\n &::after {\n border-width: 0;\n }\n }\n\n &[plain],\n &[plain][type=\"default\"] {\n border: 1px solid $weuiBtnPlainDefaultBorderColor;\n color: $weuiBtnPlainDefaultColor;\n\n &:not([disabled]):active {\n border-color: $weuiBtnPlainDefaultActiveBorderColor;\n background-color: transparent;\n color: $weuiBtnPlainDefaultActiveColor;\n }\n\n &::after {\n border-width: 0;\n }\n }\n\n &[type=\"primary\"] {\n background-color: $weuiBtnPrimaryBg;\n color: #fff;\n\n &:not([disabled]):visited {\n color: $weuiBtnFontColor;\n }\n\n &:not([disabled]):active {\n background-color: $weuiBtnPrimaryActiveBg;\n color: $weuiBtnActiveFontColor;\n }\n }\n\n &[type=\"warn\"] {\n background-color: $weuiBtnWarnBg;\n color: #fff;\n\n &:not([disabled]):visited {\n color: $weuiBtnFontColor;\n }\n\n &:not([disabled]):active {\n background-color: $weuiBtnWarnActiveBg;\n color: $weuiBtnActiveFontColor;\n }\n }\n\n &[plain][disabled] {\n border: 1px solid rgb(0 0 0 / 20%);\n background-color: #f7f7f7;\n color: rgb(0 0 0 / 30%);\n }\n\n &[plain][disabled][type=\"primary\"] {\n border: 1px solid rgb(0 0 0 / 20%);\n background-color: #f7f7f7;\n color: rgb(0 0 0 / 30%);\n }\n}\n","import { Component, h, Prop, State, ComponentInterface, Event, EventEmitter, Listen, Element, Host } from '@stencil/core'\nimport classNames from 'classnames'\n\n@Component({\n tag: 'taro-button-core',\n styleUrl: './style/index.scss'\n})\nexport class Button implements ComponentInterface {\n @Prop() disabled: boolean\n @Prop() hoverClass = 'button-hover'\n @Prop() type = ''\n @Prop() hoverStartTime = 20\n @Prop() hoverStayTime = 70\n @Prop() size: string\n @Prop() plain: boolean\n @Prop() loading = false\n @Prop({ reflect: true }) formType: 'submit' | 'reset' | null = null\n\n @Element() el: HTMLElement\n\n @State() hover = false\n @State() touch = false\n\n @Event({\n eventName: 'tarobuttonsubmit'\n }) onSubmit: EventEmitter\n\n @Event({\n eventName: 'tarobuttonreset'\n }) onReset: EventEmitter\n\n @Listen('click')\n onClick (e: Event) {\n if (this.disabled) {\n e.stopPropagation()\n }\n }\n\n @Listen('touchstart')\n onTouchStart () {\n if (this.disabled) {\n return\n }\n\n this.touch = true\n if (this.hoverClass && !this.disabled) {\n setTimeout(() => {\n if (this.touch) {\n this.hover = true\n }\n }, this.hoverStartTime)\n }\n }\n\n @Listen('touchend')\n onTouchEnd () {\n if (this.disabled) {\n return\n }\n\n this.touch = false\n if (this.hoverClass && !this.disabled) {\n setTimeout(() => {\n if (!this.touch) {\n this.hover = false\n }\n }, this.hoverStayTime)\n }\n\n if (this.formType === 'submit') {\n this.onSubmit.emit()\n } else if (this.formType === 'reset') {\n this.onReset.emit()\n }\n }\n\n render () {\n const {\n disabled,\n hoverClass,\n type,\n size,\n plain,\n loading,\n hover\n } = this\n\n const cls = classNames({\n [`${hoverClass}`]: hover && !disabled\n })\n\n return (\n <Host\n class={cls}\n type={type}\n plain={plain}\n loading={loading}\n size={size}\n disabled={disabled}\n >\n {loading && <i class='weui-loading' />}\n <slot />\n </Host>\n )\n }\n}\n"],"mappings":"gNAAA,IAAMA,EAAW,21G,ICOJC,EAAMC,EAAA,8B,oJAEI,e,UACN,G,oBACU,G,mBACD,G,sDAGN,M,cAC6C,K,WAI9C,M,WACA,K,CAWjBC,EAAAC,UAAAC,QAAA,SAASC,GACP,GAAIC,KAAKC,SAAU,CACjBF,EAAEG,iB,GAKNN,EAAAC,UAAAM,aAAA,eAAAC,EAAAJ,KACE,GAAIA,KAAKC,SAAU,CACjB,M,CAGFD,KAAKK,MAAQ,KACb,GAAIL,KAAKM,aAAeN,KAAKC,SAAU,CACrCM,YAAW,WACT,GAAIH,EAAKC,MAAO,CACdD,EAAKI,MAAQ,I,IAEdR,KAAKS,e,GAKZb,EAAAC,UAAAa,WAAA,eAAAN,EAAAJ,KACE,GAAIA,KAAKC,SAAU,CACjB,M,CAGFD,KAAKK,MAAQ,MACb,GAAIL,KAAKM,aAAeN,KAAKC,SAAU,CACrCM,YAAW,WACT,IAAKH,EAAKC,MAAO,CACfD,EAAKI,MAAQ,K,IAEdR,KAAKW,c,CAGV,GAAIX,KAAKY,WAAa,SAAU,CAC9BZ,KAAKa,SAASC,M,MACT,GAAId,KAAKY,WAAa,QAAS,CACpCZ,KAAKe,QAAQD,M,GAIjBlB,EAAAC,UAAAmB,OAAA,W,MACQ,IAAAC,EAQFjB,KAPFC,EAAQgB,EAAAhB,SACRK,EAAUW,EAAAX,WACVY,EAAID,EAAAC,KACJC,EAAIF,EAAAE,KACJC,EAAKH,EAAAG,MACLC,EAAOJ,EAAAI,QACPb,EAAKS,EAAAT,MAGP,IAAMc,EAAMC,GAAUC,EAAA,GACpBA,EAAC,GAAAC,OAAGnB,IAAeE,IAAUP,E,IAG/B,OACEyB,EAACC,EAAI,CACHC,MAAON,EACPJ,KAAMA,EACNE,MAAOA,EACPC,QAASA,EACTF,KAAMA,EACNlB,SAAUA,GAEToB,GAAWK,EAAA,KAAGE,MAAM,iBACrBF,EAAA,a,uHA9FW,I"}
@@ -0,0 +1,2 @@
1
+ System.register(["./p-1a0e1932.system.js","./p-61f225ef.system.js"],(function(e){"use strict";var t,s,r,n;return{setters:[function(e){t=e.r;s=e.h;r=e.H},function(e){n=e.c}],execute:function(){var c="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 l=e("taro_text_core",function(){function e(e){t(this,e);this.selectable=false}e.prototype.render=function(){var e=n({"taro-text__selectable":this.selectable});return s(r,{class:e},s("slot",null))};return e}());l.style=c}}}));
2
+ //# sourceMappingURL=p-651586f8.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["indexCss","Text","exports","class_1","prototype","render","cls","classNames","this","selectable","h","Host","class"],"sources":["src/components/text/style/index.scss?tag=taro-text-core","src/components/text/text.tsx"],"sourcesContent":["taro-text-core {\n display: inline;\n user-select: none;\n white-space: pre-wrap;\n}\n\n.taro-text__selectable {\n user-select: text;\n}\n","import { Component, Prop, h, ComponentInterface, Host } from '@stencil/core'\nimport classNames from 'classnames'\n\n@Component({\n tag: 'taro-text-core',\n styleUrl: './style/index.scss'\n})\nexport class Text implements ComponentInterface {\n @Prop() selectable = false\n\n render () {\n const cls = classNames({\n 'taro-text__selectable': this.selectable\n })\n return (\n <Host class={cls}>\n <slot></slot>\n </Host>\n )\n }\n}\n"],"mappings":"gMAAA,IAAMA,EAAW,uP,ICOJC,EAAIC,EAAA,4B,wCACM,K,CAErBC,EAAAC,UAAAC,OAAA,WACE,IAAMC,EAAMC,EAAW,CACrB,wBAAyBC,KAAKC,aAEhC,OACEC,EAACC,EAAI,CAACC,MAAON,GACXI,EAAA,a,WATS,I"}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as n,H as e}from"./p-78e3ebb9.js";const r=class{constructor(e){t(this,e);this.renderNode=t=>{if("type"in t&&t.type==="text"){const n=(t.text||"").replace(/&nbsp;/g," ");return n}else if("name"in t&&t.name){const{name:e,attrs:r,children:s}=t;const o={};let i=[];if(r&&typeof r==="object"){for(const t in r){const n=r[t];if(t==="style"&&typeof n==="string"){const t=n.split(";").map((t=>t.trim())).filter((t=>t));const e={};t.forEach((t=>{if(!t)return;const n=/(.+): *(.+)/g.exec(t);if(!n)return;const[,r,s]=n;const o=r.replace(/-([a-z])/g,((...t)=>t[1].toUpperCase()));e[o]=s}));if(Object.keys(e).length){o.style=e}continue}o[t]=n}}if(s&&s.length){i=s.map((t=>this.renderNode(t)))}return n(e,o,i)}return null};this.nodes=undefined}render(){const{nodes:t,renderNode:r}=this;if(Array.isArray(t)){return n(e,null,t.map((t=>r(t))))}else{return n(e,{innerHTML:t})}}};export{r as taro_rich_text_core};
2
+ //# sourceMappingURL=p-663e27a0.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RichText","this","renderNode","node","type","content","text","replace","name","attrs","children","attributes","childList","key","val","styles","split","map","item","trim","filter","styleObj","forEach","res","exec","value","styleName","args","toUpperCase","Object","keys","length","style","h","render","nodes","Array","isArray","Host","innerHTML"],"sources":["./src/components/rich-text/rich-text.tsx"],"sourcesContent":["import { Component, h, ComponentInterface, Prop, Host } from '@stencil/core'\n\ninterface Attributes {\n [propName: string]: string | {\n [propName: string]: string\n }\n}\n\ninterface NodeType {\n name: string\n attrs?: Attributes\n children?: ElementType[]\n}\n\ninterface TextType {\n type: 'text'\n text: string\n}\n\ntype ElementType = NodeType | TextType\n\ntype StringType = string\n\nexport type Nodes = ElementType[] | StringType\n\n@Component({\n tag: 'taro-rich-text-core'\n})\nexport class RichText implements ComponentInterface {\n @Prop() nodes: Nodes\n\n renderNode = (node: ElementType) => {\n if ('type' in node && node.type === 'text') {\n // nonsupport Html Entries\n const content = (node.text || '').replace(/&nbsp;/g, '\\u00A0')\n return content\n } else if ('name' in node && node.name) {\n const {\n name,\n attrs,\n children\n } = node\n const attributes: Attributes = {}\n let childList: any[] = []\n\n if (attrs && typeof attrs === 'object') {\n for (const key in attrs) {\n const val = attrs[key]\n if (key === 'style' && typeof val === 'string') {\n // stencil JSX style props only support object\n const styles = val\n .split(';')\n .map(item => item.trim())\n .filter(item => item)\n\n const styleObj: {\n [propName: string]: string\n } = {}\n\n styles.forEach(item => {\n if (!item) return\n\n const res = /(.+): *(.+)/g.exec(item)\n if (!res) return\n\n const [, name, value] = res\n const styleName = name.replace(/-([a-z])/g, (...args) => args[1].toUpperCase())\n styleObj[styleName] = value\n })\n\n if (Object.keys(styleObj).length) {\n attributes.style = styleObj\n }\n\n continue\n }\n attributes[key] = val\n }\n }\n\n if (children && children.length) {\n childList = children.map(node => this.renderNode(node))\n }\n\n // @ts-ignore\n return h(name, attributes, childList)\n }\n\n return null\n }\n\n render () {\n const { nodes, renderNode } = this\n\n if (Array.isArray(nodes)) {\n return (\n <Host>\n {nodes.map(node => renderNode(node))}\n </Host>\n )\n } else {\n return <Host innerHTML={nodes} />\n }\n }\n}\n"],"mappings":"wDA4BaA,EAAQ,M,yBAGnBC,KAAAC,WAAcC,IACZ,GAAI,SAAUA,GAAQA,EAAKC,OAAS,OAAQ,CAE1C,MAAMC,GAAWF,EAAKG,MAAQ,IAAIC,QAAQ,UAAW,KACrD,OAAOF,C,MACF,GAAI,SAAUF,GAAQA,EAAKK,KAAM,CACtC,MAAMA,KACJA,EAAIC,MACJA,EAAKC,SACLA,GACEP,EACJ,MAAMQ,EAAyB,GAC/B,IAAIC,EAAmB,GAEvB,GAAIH,UAAgBA,IAAU,SAAU,CACtC,IAAK,MAAMI,KAAOJ,EAAO,CACvB,MAAMK,EAAML,EAAMI,GAClB,GAAIA,IAAQ,gBAAkBC,IAAQ,SAAU,CAE9C,MAAMC,EAASD,EACZE,MAAM,KACNC,KAAIC,GAAQA,EAAKC,SACjBC,QAAOF,GAAQA,IAElB,MAAMG,EAEF,GAEJN,EAAOO,SAAQJ,IACb,IAAKA,EAAM,OAEX,MAAMK,EAAM,eAAeC,KAAKN,GAChC,IAAKK,EAAK,OAEV,MAAM,CAAGf,EAAMiB,GAASF,EACxB,MAAMG,EAAYlB,EAAKD,QAAQ,aAAa,IAAIoB,IAASA,EAAK,GAAGC,gBACjEP,EAASK,GAAaD,CAAK,IAG7B,GAAII,OAAOC,KAAKT,GAAUU,OAAQ,CAChCpB,EAAWqB,MAAQX,C,CAGrB,Q,CAEFV,EAAWE,GAAOC,C,EAItB,GAAIJ,GAAYA,EAASqB,OAAQ,CAC/BnB,EAAYF,EAASO,KAAId,GAAQF,KAAKC,WAAWC,I,CAInD,OAAO8B,EAAEzB,EAAMG,EAAYC,E,CAG7B,OAAO,IAAI,E,qBAGbsB,SACE,MAAMC,MAAEA,EAAKjC,WAAEA,GAAeD,KAE9B,GAAImC,MAAMC,QAAQF,GAAQ,CACxB,OACEF,EAACK,EAAI,KACFH,EAAMlB,KAAId,GAAQD,EAAWC,K,KAG7B,CACL,OAAO8B,EAACK,EAAI,CAACC,UAAWJ,G"}
@@ -0,0 +1,2 @@
1
+ import{r as o,h as r,H as t}from"./p-78e3ebb9.js";import{n as a}from"./p-6a96da58.js";import"@tarojs/taro";const s=class{constructor(r){o(this,r)}componentDidLoad(){a("AnimationView",this)}render(){return r(t,null)}};export{s as taro_animation_view_core};
2
+ //# sourceMappingURL=p-66b07ac0.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["AnimationView","componentDidLoad","notSupport","this","render","h","Host"],"sources":["./src/components/animation-view/animation-view.tsx"],"sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-animation-view-core'\n})\nexport class AnimationView implements ComponentInterface {\n componentDidLoad () {\n notSupport('AnimationView', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"],"mappings":"iHAOaA,EAAa,M,yBACxBC,mBACEC,EAAW,gBAAiBC,K,CAG9BC,SACE,OACEC,EAACC,EAAI,K"}
@@ -0,0 +1,2 @@
1
+ import{r,h as t}from"./p-78e3ebb9.js";const e=class{constructor(t){r(this,t);this.for=undefined}render(){return t("label",{htmlFor:this.for},t("slot",null))}};export{e as taro_label_core};
2
+ //# sourceMappingURL=p-67c3a0ba.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Label","render","h","htmlFor","this","for"],"sources":["./src/components/label/label.tsx"],"sourcesContent":["import { Component, h, ComponentInterface, Prop } from '@stencil/core'\n\n@Component({\n tag: 'taro-label-core'\n})\nexport class Label implements ComponentInterface {\n @Prop() for: string\n\n render () {\n return (\n <label htmlFor={this.for}>\n <slot />\n </label>\n )\n }\n}\n"],"mappings":"4CAKaA,EAAK,M,4CAGhBC,SACE,OACEC,EAAA,SAAOC,QAASC,KAAKC,KACnBH,EAAA,a"}
@@ -0,0 +1,2 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,r){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function s(e){try{l(r.next(e))}catch(e){n(e)}}function a(e){try{l(r["throw"](e))}catch(e){n(e)}}function l(e){e.done?i(e.value):o(e.value).then(s,a)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,o,n,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return l([e,t])}}function l(a){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(r=1,o&&(n=a[0]&2?o["return"]:a[0]?o["throw"]||((n=o["return"])&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;if(o=0,n)a=[a[0]&2,n.value];switch(a[0]){case 0:case 1:n=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;o=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(a[0]===6&&i.label<n[1]){i.label=n[1];n=a;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(a);break}if(n[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];o=0}finally{r=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var r=0,o=t.length,n;r<o;r++){if(n||!(r in t)){if(!n)n=Array.prototype.slice.call(t,0,r);n[r]=t[r]}}return e.concat(n||Array.prototype.slice.call(t))};System.register(["./p-1a0e1932.system.js","./p-61f225ef.system.js","./p-bd5177d3.system.js"],(function(e,t){"use strict";var i,r,o,n,s,a,l;return{setters:[function(e){i=e.r;r=e.h;o=e.H;n=e.g;s=e.c},function(e){a=e.c},function(e){l=e.t}],execute:function(){var u=function(e){if(!e)return"";var t=Math.round(e%60);var i=Math.round((e-t)/60);return"".concat(i<10?"0".concat(i):i,":").concat(t<10?"0".concat(t):t)};var c=function(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))};var d=function(e){return Math.max(-1,Math.min(e,1))};var h="default";var g=function(){var e;var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];var i=["webkitEnterFullscreen","webkitExitFullscreen","webkitCurrentFullScreenElement","webkitSupportsFullscreen","fullscreenchange","fullscreenerror"];var r=0;var o=t.length;var n={};for(;r<o;r++){e=t[r];if(e&&e[1]in document){for(r=0;r<e.length;r++){n[t[0][r]]=e[r]}return n}}if(!n[t[0][0]]){h="iOS";for(r=0;r<i.length;r++){n[t[0][r]]=i[r]}}return n}();var f=function(e){return/\.(m3u8)($|\?)/i.test(e)};var p=e("taro_video_control",function(){function e(e){var t=this;i(this,e);this.visible=false;this.isDraggingProgressBall=false;this.percentage=0;this.progressDimensions={left:0,width:0};this.calcPercentage=function(e){var i=e-t.progressDimensions.left;i=Math.max(i,0);i=Math.min(i,t.progressDimensions.width);return i/t.progressDimensions.width};this.onDragProgressBallStart=function(){t.isDraggingProgressBall=true;t.hideControlsTimer&&clearTimeout(t.hideControlsTimer)};this.onClickProgress=function(e){e.stopPropagation();var i=t.calcPercentage(e.pageX);t.seekFunc(i*t.duration);t.toggleVisibility(true)};this.controls=undefined;this.currentTime=undefined;this.duration=undefined;this.isPlaying=undefined;this.pauseFunc=undefined;this.playFunc=undefined;this.seekFunc=undefined;this.showPlayBtn=undefined;this.showProgress=undefined}e.prototype.onDocumentTouchMove=function(e){if(!this.isDraggingProgressBall)return;var t=e.touches[0].pageX;this.percentage=this.calcPercentage(t);this.setProgressBall(this.percentage);this.setCurrentTime(this.percentage*this.duration)};e.prototype.onDocumentTouchEnd=function(){if(!this.isDraggingProgressBall)return;this.isDraggingProgressBall=false;this.seekFunc(this.percentage*this.duration);this.toggleVisibility(true)};e.prototype.setProgressBall=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.progressBallRef){this.progressBallRef.style.left="".concat(e*100,"%")}return[2]}))}))};e.prototype.toggleVisibility=function(e){return __awaiter(this,void 0,void 0,(function(){var t;var i=this;return __generator(this,(function(r){t=e===undefined?!this.visible:e;if(t){this.hideControlsTimer&&clearTimeout(this.hideControlsTimer);if(this.isPlaying){this.hideControlsTimer=setTimeout((function(){i.toggleVisibility(false)}),2e3)}this.el.style.visibility="visible"}else{this.el.style.visibility="hidden"}this.visible=!!t;return[2]}))}))};e.prototype.getIsDraggingProgressBall=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.isDraggingProgressBall]}))}))};e.prototype.setCurrentTime=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.currentTimeRef.innerHTML=u(e);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this,i=t.controls,n=t.currentTime,s=t.duration,a=t.isPlaying,l=t.pauseFunc,c=t.playFunc,d=t.showPlayBtn,h=t.showProgress;var g=u(s);var f;if(!d){f=null}else if(a){f=r("div",{class:"taro-video-control-button taro-video-control-button-pause",onClick:l})}else{f=r("div",{class:"taro-video-control-button taro-video-control-button-play",onClick:c})}return r(o,{class:"taro-video-bar taro-video-bar-full"},i&&r("div",{class:"taro-video-controls"},f,h&&r("div",{class:"taro-video-current-time",ref:function(t){return e.currentTimeRef=t}},u(n)),h&&r("div",{class:"taro-video-progress-container",onClick:this.onClickProgress},r("div",{class:"taro-video-progress",ref:function(t){if(!t)return;var i=t.getBoundingClientRect();e.progressDimensions.left=i.left;e.progressDimensions.width=i.width}},r("div",{class:"taro-video-progress-buffered",style:{width:"100%"}}),r("div",{class:"taro-video-ball",ref:function(t){return e.progressBallRef=t},onTouchStart:this.onDragProgressBallStart,style:{left:"".concat(g?this.currentTime/s*100:0,"%")}},r("div",{class:"taro-video-inner"})))),h&&r("div",{class:"taro-video-duration"},g)),r("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());var A='.taro-video{display:inline-block;overflow:hidden;position:relative;width:100%;height:225px;line-height:0}.taro-video[hidden]{display:none}.taro-video-container{display:inline-block;position:absolute;left:0;top:0;width:100%;height:100%;background-color:#000;-o-object-position:inherit;object-position:inherit}.taro-video-container.taro-video-type-fullscreen{position:fixed;left:0;right:0;top:0;bottom:0;z-index:999}.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-left{-webkit-transform:translate(-50%, -50%) rotate(-90deg);transform:translate(-50%, -50%) rotate(-90deg)}.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-right{-webkit-transform:translate(-50%, -50%) rotate(90deg);transform:translate(-50%, -50%) rotate(90deg)}.taro-video-video{width:100%;height:100%;-o-object-position:inherit;object-position:inherit}.taro-video-cover{display:-ms-flexbox;display:flex;position:absolute;left:0;top:0;bottom:0;z-index:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:100%;background-color:rgba(1, 1, 1, 0.5);-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-webkit-box-align:center}.taro-video-cover-play-button{width:40px;height:40px;background-repeat:no-repeat;background-position:50% 50%;background-size:50%}.taro-video-cover-duration{margin-top:10px;line-height:1;font-size:16px;color:#fff}.taro-video-bar{display:-ms-flexbox;display:flex;visibility:hidden;overflow:hidden;position:absolute;right:0;bottom:0;z-index:1;-ms-flex-align:center;align-items:center;padding:0 10px;height:44px;background-color:rgba(0, 0, 0, 0.5);-webkit-box-align:center}.taro-video-bar.taro-video-bar-full{left:0}.taro-video-controls{display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;margin:0 8.5px}.taro-video-control-button{-webkit-box-sizing:content-box;box-sizing:content-box;margin-left:-8.5px;padding:14.5px 12.5px;width:13px;height:15px}.taro-video-control-button::after{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50% 50%;background-size:100%;content:""}.taro-video-control-button.taro-video-control-button-play::after,.taro-video-cover-play-button{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAYAAAAy2w7YAAAAAXNSR0IArs4c6QAAAWhJREFUSA1j+P///0cgBoHjQGzCQCsAtgJB/AMy5wCxGNXtQ9iBwvoA5BUCMQvVLEQxHpNzDSjkRhXLMM3GKrIeKKpEkYVYjcUu+AMo3ALE3GRZiN1MvKKPgbIRJFuG10j8koeA0gZEW4jfLIKyf4EqpgOxMEELCRpFnIJ3QGU5QMyM00LizCFa1SWgSkeslhFtBGkKVwGVy6FYSJp+klR/A6quB2JOkIWMIK0oNlOf8xBoZDE9LAI7nYn6HsBq4l96WHQEaLUpAyiOaASeAM2NgvuPBpaACt82IEYtfKls0UagecpwXyAzqGTRdaA57sjmYrAptAjUsCkGYlYMg9EFyLQI1IiZB8Ti6Obh5JNh0QmgHlOcBuKSIMGi50C18UDMiMssvOJEWPQLqKYbiHnxGkRIkoBF24DyaoTMIEoeh0W3geI+RBlArCI0iz4D+RVAzEasfqLVAQ19AcSg5LoYiKWI1kiiQgCMBLnEEcfDSgAAAABJRU5ErkJggg==")}.taro-video-control-button.taro-video-control-button-pause::after{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAAAXNSR0IArs4c6QAAAFlJREFUSA3tksEKACAIQ7X//5zq98wOgQayum8QaGweHhMzG/6OujzKAymn+0LMqivu1XznWmX8/echTIyMyAgTwA72iIwwAexgj8gIE8CO3aMRbDPMaEy5BRGaKcZv8YxRAAAAAElFTkSuQmCC")}.taro-video-current-time,.taro-video-duration{margin-top:15px;margin-bottom:14.5px;height:14.5px;line-height:14.5px;font-size:12px;color:#cbcbcb}.taro-video-progress-container{position:relative;-ms-flex-positive:2;flex-grow:2;-webkit-box-flex:2}.taro-video-progress{position:relative;margin:21px 12px;height:2px;background-color:rgba(255, 255, 255, 0.4)}.taro-video-progress-buffered{position:absolute;left:0;top:0;width:0;height:100%;background-color:rgba(255, 255, 255, 0.8);-webkit-transition:width 0.1s;transition:width 0.1s}.taro-video-ball{position:absolute;left:0;top:-21px;-webkit-box-sizing:content-box;box-sizing:content-box;margin-left:-22px;padding:14px;width:16px;height:16px}.taro-video-inner{border-radius:50%;width:100%;height:100%;background-color:#fff}.taro-video-danmu-button{margin:0 8.5px;padding:2px 10px;border:1px solid #fff;border-radius:5px;line-height:1;font-size:13px;color:#fff;white-space:nowrap}.taro-video-danmu-button.taro-video-danmu-button-active{border-color:#48c23d;color:#48c23d}.taro-video-fullscreen,.taro-video-mute{-webkit-box-sizing:content-box;box-sizing:content-box;padding:8.5px;width:17px;height:17px;background-repeat:no-repeat;background-position:50% 50%;background-size:50%}.taro-video-fullscreen{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAhUlEQVRYR+2WSwrAMAhEnZO3PfmULLooGEFTiIXJ2s/kRY2wzQeb85sE9CRA8jSzY1YfAFzhJBnU1AVgxH2dSiArCnD9QgGzRNnOech48SRABHoSyFb5in3PSbhyo6yvCPQkEM3u7BsPe/0FIvBfAh/vhKmVbO9SWun1qk/PSVi9TcVPBG6R1YIhgWwNpQAAAABJRU5ErkJggg==")}.taro-video-fullscreen.taro-video-type-fullscreen{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABPUlEQVRYR+2Xu0pDURBF1/ZLxNcHKNiIlfhA7C0UBSEE8RNEBNFPUEQEEbGxFiSSSrCwEHsf5E/ccsSUuWfUhKQ40947+y42Z8+ZK/pcinzf9hhwD1xJ2q/qsb0JHAOzkl5y+lGAGnCWICQtZgAS6DxQk3TeLYA6cAo0JSXxjmW7CcwBdUkJurKiDhSA4kBvHbA9CqwBQx2O7BSw8ssU3ALPFRF4knT3nQLbr8B4LjLBOdAAFgJaLUkjbYC9n+zm+i4kXWbmwCqwnRMCHiXthuZAQOzPrxSA4kBxYDAcsH0EzATCfCLpJjOINoCtgFZabg7bk7AFDAeaGpKWgitZTu5N0kQbYBmYrujo9mX0CVxL+gidAdu9vY5zXhWA4sAgOND3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iA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz459+FoAAABqElEQVRYhc2XPWsVQRSGnxPjF4oGRfxoRQKGWCU2Ft7CykrQWosEyf/If0hhIPgHDEmbNJZqCFxiQEgTUGxsBUVEHgvnyrjZZJO92V1fGIaZnTPvszPszNlQ6VIjnbr/DwCoDLMNak/dUVfUK0f2rQugnlcX/FevWgFQH6gf3autRgHUC+piiXHzAOmtPx9gXgug8itQx9SXwDpw47AGKXZWvXvQmNFCwE3gCXA2dY0Az4GrRzHONA9cU/vAbERsllEOyh31e8USV2mrMPdG9uyn+rDom2/BHHCm5puWKiKmgdtAnz+rvaxO5mNygEvHaZ5BfADuARvAaWBpP4DGFBHfgBngFzClTrUKkCDeA+9S837rAEnbqb7VFcCpVJ/oCmCw959aB1AfAROpudYqgDoOLKRmPyLelAF8bcD4pPoMeAtcB34AT4uDBqXXwFG8XXUU/72MIuK1OgE8Bs6l7mEvo8up7lN1Ge0n9aK6VHMFZvJTr9S3CiALaCQhqZOSvegMIAvu2UVSWpigLC1fbQ0gm6in7qpfLCQbhwGIYcyPQ53/G3YO8BtUtd35bvKcVwAAAABJRU5ErkJggg==")}.taro-video-mute.taro-video-type-mute{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGAGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICA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NVTwAXgWX7CDKq/1piAZTSZBmim8qJ6sQ3EgDqb/L7kU3MH2NHtl3dQX3r3Ak21UYAYAj4A/cl0JB+RF+uMRj4iQ+p8zt7KYFLdXKHuRi0gacBhV6a6pd5bA6KRNagFJPU9qv5u47toLmW1HnoR8Q5oAK1CVQu4FBHj/wUkaXsb+4pzpVaQFPqXrN7Be4Fx9VztIOr1BLEtmX4A94E/qdwHTKjDWYM6lu81dSlnn3V570BtuLxaMs2rZ/IgYxsBovaoPwsQA4VoFWEm8ql5DiysNyURsQTMpOIMcDYiPhd8xoGr/FtNC2G6FKXD6ihwGdiVHMoeeh8jYlA9ANwE3kTEp3bO6vE03qOONzR1r/q4RGrquaFFxFxE3ALOA9+6jExpdb180y55AhirhaRTatq0GXEzL8+ZIuI9cBJ4WKiartJf9nWV/mty7UfUafW7erpqRGI9EBuprffvu9n6C1KOmsqwI5A1AAAAAElFTkSuQmCC")}.taro-video-danmu{overflow:visible;position:absolute;left:0;top:0;bottom:0;margin-top:14px;margin-bottom:44px;width:100%;line-height:14px;font-size:14px}.taro-video-danmu-item{position:absolute;left:100%;line-height:1;color:#fff;white-space:nowrap;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition-property:left, -webkit-transform;transition-property:left, -webkit-transform;transition-property:left, transform;transition-property:left, transform, -webkit-transform;-webkit-transition-duration:3s;transition-duration:3s;-webkit-transition-timing-function:linear;transition-timing-function:linear}.taro-video-toast{display:block;visibility:hidden;position:absolute;left:50%;top:50%;border-radius:5px;background-color:rgba(255, 255, 255, 0.8);pointer-events:none;color:#000;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.taro-video-toast.taro-video-toast-volume{display:block;width:100px;height:100px}.taro-video-toast-volume .taro-video-toast-title{display:block;margin-top:10px;width:100%;line-height:16px;text-align:center;font-size:12px}.taro-video-toast-volume .taro-video-toast-icon{display:block;margin-left:25%;width:50%;height:50%;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACA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GX1Se+6yJFqAKsqI6X84GdDb4Mh0Y5zUqjFYFakUTCXja5QLSmBQHbAL8ahAgT1AeYVreSKLLphGwF/CuAfLJQLldGSTFD75c5d4mNCoWyAqG9gYWGED1AOMKo12ZbiWA/idA++deY2DVTZ0Jh5UJPsFQtD/wDaAHGWl5EzgwaUi2gK4UXS11S0cTIjrMFBtYQdAk4DID0BnAAz4B6wNLgTKKG0VIDBHwqitwpOcW+OOB540FdeipNKbUWFrUtn06o5xOij4KyDuqU0IE3Obl/rLA63pTzm9XA8jKACjdniZAaSKFmUpB1yUhAlTsUEpMh913wEkuTe7rKTzPAHqO44vpKPkFhH3cWWBVV6ogJVYZUgz/tXtIYelzI3Ct0fExIGx6j7iKWBUUveyYBehv1RIjIEsfqziq8Xp4pSBJOYTVJFQcVY3wCFeKUjVGyYfQWB00+5bEVBECrNS+qsOKBpVHNCVWHs+LS7H5PV5pOu9v0+OKEOAXR39w1e1C7wM6AkJ1eLmkRcrpRQiQrqobXO5S3vL3/4kBKMsCknV0k+iasVLUMV3UX5SAPGtED8EOT+L9YENnCasUIXNO2goChFWHqAIRyxXN4qI1BCQg9dJESYq8LnbrCBAR8t50Lig6i0krCRBoVWhVlt45wkBrCRBuRZyPuAguxIPe9lXqhpd9DcZMXOvdkPF0Xu/8dohNUmZ/1QQkuitXr+d4fryuFx3jywQYm6suAqSX8vLTXKJDt4QqO6rtLYspXWZ/nQQkOJTAUJZGIav19q9MvKvN1RUIWKMAY5P3EBBjqO393d4C/gMVHwRQlpx21QAAAABJRU5ErkJggg==");background-repeat:no-repeat;background-position:50% 50%;background-size:50%;fill:#000}.taro-video-toast-volume .taro-video-toast-value{margin-left:10px;margin-top:5px;width:80px;height:5px}.taro-video-toast-volume .taro-video-toast-value>.taro-video-toast-value-content{overflow:hidden}.taro-video-toast-volume-grids{width:80px;height:5px}.taro-video-toast-volume-grids-item{float:left;width:7.1px;height:5px;background-color:#000}.taro-video-toast-volume-grids-item:not(:first-child){margin-left:1px}.taro-video-toast.taro-video-toast-progress{padding:6px;background-color:rgba(0, 0, 0, 0.8);line-height:18px;font-size:14px;color:#fff}';var v=e("taro_video_core",function(){function e(e){var r=this;i(this,e);this.onPlay=s(this,"play",7);this.onPause=s(this,"pause",7);this.onEnded=s(this,"ended",7);this.onTimeUpdate=s(this,"timeupdate",7);this.onError=s(this,"error",7);this.onFullScreenChange=s(this,"fullscreenchange",7);this.onProgress=s(this,"progress",7);this.onLoadedMetaData=s(this,"loadedmetadata",7);this.currentTime=0;this.isDraggingProgress=false;this.gestureType="none";this.analyzeGesture=function(e){var t;var i={type:"none"};var o=e.touches[0].screenX;var n=e.touches[0].screenY;var s=o-r.lastTouchScreenX;var a=n-r.lastTouchScreenY;var l=r.isFullScreen?r.vslideGestureInFullscreen:r.vslideGesture;if(r.gestureType==="none"){var u=c(s,a);if(u<10)return i;if(Math.abs(a)>=Math.abs(s)){if(l){r.gestureType="adjustVolume";r.lastVolume=r.videoRef.volume}else{return i}}else if(Math.abs(a)<Math.abs(s)){if(r.enableProgressGesture){r.gestureType="adjustProgress";r.lastPercentage=r.currentTime/((t=r.duration)!==null&&t!==void 0?t:r._duration)}else{return i}}}i.type=r.gestureType;i.dataX=d(s/200);i.dataY=d(a/200);return i};this.loadNativePlayer=function(){var e,t;if(r.videoRef){r.videoRef.src=r.src;(t=(e=r.videoRef).load)===null||t===void 0?void 0:t.call(e)}};this.init=function(){var e=r,i=e.src,o=e.videoRef;if(f(i)){t.import("./p-1743a04b.system.js").then((function(e){return e.h})).then((function(e){var t=e.default;r.HLS=t;if(t.isSupported()){if(r.hls){r.hls.destroy()}r.hls=new t;r.hls.loadSource(i);r.hls.attachMedia(o);r.hls.on(t.Events.MANIFEST_PARSED,(function(){r.autoplay&&r.play()}));r.hls.on(t.Events.ERROR,(function(e,t){r.handleError(t)}))}else if(o.canPlayType("application/vnd.apple.mpegurl")){r.loadNativePlayer()}else{console.error("该浏览器不支持 HLS 播放")}}))}else{r.loadNativePlayer()}};this.handlePlay=function(){r.isPlaying=true;r.isFirst=false;r.controlsRef.toggleVisibility(true);r.onPlay.emit()};this.handlePause=function(){r.isPlaying=false;r.controlsRef.toggleVisibility(true);r.onPause.emit()};this.handleEnded=function(){r.isFirst=true;r.pause();r.controlsRef.toggleVisibility();r.onEnded.emit()};this.handleTimeUpdate=l((function(e){return __awaiter(r,void 0,void 0,(function(){var t,i,r,o;return __generator(this,(function(n){switch(n.label){case 0:this.currentTime=this.videoRef.currentTime;r=this.duration||this._duration;return[4,this.controlsRef.getIsDraggingProgressBall()];case 1:o=n.sent();if(this.controls&&this.showProgress){if(!o&&!this.isDraggingProgress){this.controlsRef.setProgressBall(this.currentTime/r);this.controlsRef.setCurrentTime(this.currentTime)}}this.danmuRef.tick(this.currentTime);this.onTimeUpdate.emit({duration:(t=e.target)===null||t===void 0?void 0:t.duration,currentTime:(i=e.target)===null||i===void 0?void 0:i.currentTime});if(this.duration){if(this.currentTime>=this.duration){this.seek(0);this.handleEnded()}}return[2]}}))}))}),250);this.handleError=function(e){var t,i;if(r.hls){switch(e.type){case r.HLS.ErrorTypes.NETWORK_ERROR:r.onError.emit({errMsg:e.response});r.hls.startLoad();break;case r.HLS.ErrorTypes.MEDIA_ERROR:r.onError.emit({errMsg:e.reason||"媒体错误,请重试"});r.hls.recoverMediaError();break}}else{r.onError.emit({errMsg:(i=(t=e.target)===null||t===void 0?void 0:t.error)===null||i===void 0?void 0:i.message})}};this.handleDurationChange=function(){r._duration=r.videoRef.duration};this.handleProgress=function(){r.onProgress.emit()};this.handleLoadedMetaData=function(e){var t=e.target;r.onLoadedMetaData.emit({width:t.videoWidth,height:t.videoHeight,duration:t.duration})};this._play=function(){return r.videoRef.play()};this._pause=function(){return r.videoRef.pause()};this._stop=function(){r.videoRef.pause();r._seek(0)};this._seek=function(e){r.videoRef.currentTime=e};this.onTouchStartContainer=function(e){r.lastTouchScreenX=e.touches[0].screenX;r.lastTouchScreenY=e.touches[0].screenY};this.onClickContainer=function(){if(r.enablePlayGesture){var e=Date.now();if(e-r.lastClickedTime<300){r.isPlaying?r.pause():r.play()}r.lastClickedTime=e}r.controlsRef.toggleVisibility()};this.onClickFullScreenBtn=function(e){e.stopPropagation();r.toggleFullScreen()};this.handleFullScreenChange=function(e){var t=(new Date).getTime();if(!e.detail&&r.isFullScreen&&!document[g.fullscreenElement]&&t-r.fullScreenTimestamp>100){r.toggleFullScreen(false)}};this.toggleFullScreen=function(e){if(e===void 0){e=!r.isFullScreen}r.isFullScreen=e;r.controlsRef.toggleVisibility(true);r.fullScreenTimestamp=(new Date).getTime();r.onFullScreenChange.emit({fullScreen:r.isFullScreen,direction:"vertical"});if(r.isFullScreen&&!document[g.fullscreenElement]){setTimeout((function(){r.videoRef[g.requestFullscreen]({navigationUI:"auto"})}),0)}};this.toggleMute=function(e){e.stopPropagation();r.videoRef.muted=!r.isMute;r.controlsRef.toggleVisibility(true);r.isMute=!r.isMute};this.toggleDanmu=function(e){e.stopPropagation();r.controlsRef.toggleVisibility(true);r._enableDanmu=!r._enableDanmu};this.src=undefined;this.duration=undefined;this.controls=true;this.autoplay=false;this.loop=false;this.muted=false;this.initialTime=0;this.poster=undefined;this.objectFit="contain";this.showProgress=true;this.showFullscreenBtn=true;this.showPlayBtn=true;this.showCenterPlayBtn=true;this.showMuteBtn=false;this.danmuList=undefined;this.danmuBtn=false;this.enableDanmu=false;this.enablePlayGesture=false;this.enableProgressGesture=true;this.vslideGesture=false;this.vslideGestureInFullscreen=true;this.nativeProps={};this._duration=undefined;this._enableDanmu=false;this.isPlaying=false;this.isFirst=true;this.isFullScreen=false;this.fullScreenTimestamp=(new Date).getTime();this.isMute=false}e.prototype.componentWillLoad=function(){this._enableDanmu=this.enableDanmu};e.prototype.componentDidLoad=function(){var e,t;this.init();if(this.initialTime){this.videoRef.currentTime=this.initialTime}(t=(e=this.danmuRef).sendDanmu)===null||t===void 0?void 0:t.call(e,this.danmuList);if(document.addEventListener){document.addEventListener(g.fullscreenchange,this.handleFullScreenChange)}if(this.videoRef&&h==="iOS"){this.videoRef.addEventListener("webkitendfullscreen",this.handleFullScreenChange)}};e.prototype.componentDidRender=function(){};e.prototype.disconnectedCallback=function(){if(document.removeEventListener){document.removeEventListener(g.fullscreenchange,this.handleFullScreenChange)}if(this.videoRef&&h==="iOS"){this.videoRef.removeEventListener("webkitendfullscreen",this.handleFullScreenChange)}};e.prototype.watchEnableDanmu=function(e){this._enableDanmu=e};e.prototype.watchSrc=function(){this.init()};e.prototype.onDocumentTouchMove=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,r;return __generator(this,(function(o){switch(o.label){case 0:if(this.lastTouchScreenX===undefined||this.lastTouchScreenY===undefined)return[2];return[4,this.controlsRef.getIsDraggingProgressBall()];case 1:if(o.sent())return[2];t=this.analyzeGesture(e);if(t.type==="adjustVolume"){this.toastVolumeRef.style.visibility="visible";i=Math.max(Math.min(this.lastVolume-t.dataY,1),0);this.videoRef.volume=i;this.toastVolumeBarRef.style.width="".concat(i*100,"%")}else if(t.type==="adjustProgress"){this.isDraggingProgress=true;this.nextPercentage=Math.max(Math.min(this.lastPercentage+(t.dataX||0),1),0);if(this.controls&&this.showProgress){this.controlsRef.setProgressBall(this.nextPercentage);this.controlsRef.toggleVisibility(true)}r=this.duration||this._duration;this.toastProgressTitleRef.innerHTML="".concat(u(this.nextPercentage*r)," / ").concat(u(r));this.toastProgressRef.style.visibility="visible"}return[2]}}))}))};e.prototype.onDocumentTouchEnd=function(){var e;if(this.gestureType==="adjustVolume"){this.toastVolumeRef.style.visibility="hidden"}else if(this.gestureType==="adjustProgress"){this.toastProgressRef.style.visibility="hidden"}if(this.isDraggingProgress){this.isDraggingProgress=false;this.seek(this.nextPercentage*((e=this.duration)!==null&&e!==void 0?e:this._duration))}this.gestureType="none";this.lastTouchScreenX=undefined;this.lastTouchScreenY=undefined};e.prototype.getHlsObject=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.hls]}))}))};e.prototype.play=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this._play();return[2]}))}))};e.prototype.pause=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this._pause();return[2]}))}))};e.prototype.stop=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this._stop();return[2]}))}))};e.prototype.seek=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this._seek(e);return[2]}))}))};e.prototype.requestFullScreen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.toggleFullScreen(true);return[2]}))}))};e.prototype.exitFullScreen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.toggleFullScreen(false);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this,i=t.controls,n=t.autoplay,s=t.loop,l=t.muted,c=t.poster,d=t.objectFit,h=t.isFirst,g=t.isMute,f=t.isFullScreen,p=t.showCenterPlayBtn,A=t.isPlaying,v=t._enableDanmu,m=t.showMuteBtn,b=t.danmuBtn,y=t.showFullscreenBtn,w=t.nativeProps;var E=this.duration||this._duration;var T=u(E);return r(o,{class:a("taro-video-container",{"taro-video-type-fullscreen":f}),onTouchStart:this.onTouchStartContainer,onClick:this.onClickContainer},r("video",Object.assign({class:"taro-video-video",style:{"object-fit":d},ref:function(t){if(t){e.videoRef=t}},autoplay:n,loop:s,muted:l,poster:i?c:undefined,playsinline:true,"webkit-playsinline":true,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onTimeUpdate:this.handleTimeUpdate,onError:this.handleError,onDurationChange:this.handleDurationChange,onProgress:this.handleProgress,onLoadedMetaData:this.handleLoadedMetaData},w),"暂时不支持播放该视频"),r("taro-video-danmu",{ref:function(t){if(t){e.danmuRef=t}},enable:v}),h&&p&&!A&&r("div",{class:"taro-video-cover"},r("div",{class:"taro-video-cover-play-button",onClick:function(){return e.play()}}),r("p",{class:"taro-video-cover-duration"},T)),r("taro-video-control",{ref:function(t){if(t){e.controlsRef=t}},controls:i,currentTime:this.currentTime,duration:E,isPlaying:this.isPlaying,pauseFunc:this._pause,playFunc:this._play,seekFunc:this._seek,showPlayBtn:this.showPlayBtn,showProgress:this.showProgress},m&&r("div",{class:a("taro-video-mute",{"taro-video-type-mute":g}),onClick:this.toggleMute}),b&&r("div",{class:a("taro-video-danmu-button",{"taro-video-danmu-button-active":v}),onClick:this.toggleDanmu},"弹幕"),y&&r("div",{class:a("taro-video-fullscreen",{"taro-video-type-fullscreen":f}),onClick:this.onClickFullScreenBtn})),r("div",{class:"taro-video-toast taro-video-toast-volume",ref:function(t){if(t){e.toastVolumeRef=t}}},r("div",{class:"taro-video-toast-title"},"音量"),r("div",{class:"taro-video-toast-icon"}),r("div",{class:"taro-video-toast-value"},r("div",{class:"taro-video-toast-value-content",ref:function(t){if(t){e.toastVolumeBarRef=t}}},r("div",{class:"taro-video-toast-volume-grids"},Array(10).fill(1).map((function(){return r("div",{class:"taro-video-toast-volume-grids-item"})})))))),r("div",{class:"taro-video-toast taro-video-toast-progress",ref:function(t){if(t){e.toastProgressRef=t}}},r("div",{class:"taro-video-toast-title",ref:function(t){if(t){e.toastProgressTitleRef=t}}})))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{enableDanmu:["watchEnableDanmu"],src:["watchSrc"]}},enumerable:false,configurable:true});return e}());v.style=A;var m=e("taro_video_danmu",function(){function e(e){i(this,e);this.list=[];this.danmuElList=[];this.currentTime=0;this.enable=false;this.danmuList=[]}e.prototype.ensureProperties=function(e){var t=Object.assign({},e);if(!("time"in e)){t.time=this.currentTime}t.key=Math.random();t.bottom="".concat(Math.random()*90+5,"%");return t};e.prototype.sendDanmu=function(e){if(e===void 0){e=[]}return __awaiter(this,void 0,void 0,(function(){var t;var i=this;return __generator(this,(function(r){if(Array.isArray(e)){this.list=__spreadArray(__spreadArray([],this.list,true),e.map((function(e){return i.ensureProperties(e)})),true)}else{t=e;this.list=__spreadArray(__spreadArray([],this.list,true),[Object.assign({},this.ensureProperties(t))],false)}return[2]}))}))};e.prototype.tick=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,r,o;return __generator(this,(function(n){this.currentTime=e;if(!this.enable)return[2];t=this.list;i=t.filter((function(t){var i=t.time;return e-i<4&&e>i}));r=false;o=this.danmuList;if(i.length!==o.length){r=true}else{r=i.some((function(e){var t=e.key;return o.every((function(e){return t!==e.key}))}))}if(r){this.danmuList=i}return[2]}))}))};e.prototype.componentDidUpdate=function(){var e=this;requestAnimationFrame((function(){setTimeout((function(){var t=e.danmuElList.splice(0);t.forEach((function(e){e.style.left="0";e.style.webkitTransform="translateX(-100%)";e.style.transform="translateX(-100%)"}))}))}))};e.prototype.render=function(){var e=this;if(!this.enable)return"";return r(o,{class:"taro-video-danmu"},this.danmuList.map((function(t){var i=t.text,o=t.color,n=t.bottom,s=t.key;return r("p",{class:"taro-video-danmu-item",key:s,style:{color:o,bottom:n},ref:function(t){if(t){e.danmuElList.push(t)}}},i)})))};return e}())}}}));
2
+ //# sourceMappingURL=p-69f6784d.system.entry.js.map