@tarojs/components 3.3.11 → 3.3.15

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 (268) hide show
  1. package/dist/cjs/{index-eefce54e.js → index-7464647f.js} +156 -101
  2. package/dist/cjs/{index-cf56824f.js → index-cde74e58.js} +1 -1
  3. package/dist/cjs/loader.cjs.js +3 -3
  4. package/dist/cjs/taro-audio-core.cjs.entry.js +2 -2
  5. package/dist/cjs/taro-block-core.cjs.entry.js +2 -2
  6. package/dist/cjs/taro-button-core.cjs.entry.js +3 -3
  7. package/dist/cjs/taro-camera-core.cjs.entry.js +2 -2
  8. package/dist/cjs/taro-canvas-core.cjs.entry.js +2 -2
  9. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +6 -5
  10. package/dist/cjs/taro-components.cjs.js +5 -5
  11. package/dist/cjs/taro-cover-image-core.cjs.entry.js +19 -5
  12. package/dist/cjs/taro-cover-view-core.cjs.entry.js +51 -5
  13. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +2 -2
  14. package/dist/cjs/taro-form-core.cjs.entry.js +2 -2
  15. package/dist/cjs/taro-icon-core.cjs.entry.js +3 -3
  16. package/dist/cjs/taro-image-core.cjs.entry.js +3 -3
  17. package/dist/cjs/taro-input-core.cjs.entry.js +21 -13
  18. package/dist/cjs/taro-label-core.cjs.entry.js +2 -2
  19. package/dist/cjs/taro-movable-area-core.cjs.entry.js +2 -2
  20. package/dist/cjs/taro-movable-view-core.cjs.entry.js +2 -2
  21. package/dist/cjs/taro-navigator-core.cjs.entry.js +3 -3
  22. package/dist/cjs/taro-open-data-core.cjs.entry.js +2 -2
  23. package/dist/cjs/taro-picker-core_2.cjs.entry.js +37 -12
  24. package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +2 -2
  25. package/dist/cjs/taro-picker-view-core.cjs.entry.js +2 -2
  26. package/dist/cjs/taro-progress-core.cjs.entry.js +2 -2
  27. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +3 -3
  28. package/dist/cjs/taro-radio-core_2.cjs.entry.js +3 -3
  29. package/dist/cjs/taro-rich-text-core.cjs.entry.js +2 -2
  30. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +3 -3
  31. package/dist/cjs/taro-slider-core.cjs.entry.js +2 -2
  32. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +112 -106
  33. package/dist/cjs/taro-switch-core.cjs.entry.js +2 -2
  34. package/dist/cjs/taro-tabbar.cjs.entry.js +71 -27
  35. package/dist/cjs/taro-text-core.cjs.entry.js +3 -3
  36. package/dist/cjs/taro-textarea-core.cjs.entry.js +65 -5
  37. package/dist/cjs/taro-video-control_3.cjs.entry.js +5 -5
  38. package/dist/cjs/taro-view-core.cjs.entry.js +11 -3
  39. package/dist/cjs/taro-web-view-core.cjs.entry.js +2 -2
  40. package/dist/collection/collection-manifest.json +3 -3
  41. package/dist/collection/components/checkbox/checkbox.js +21 -2
  42. package/dist/collection/components/cover-image/cover-image.js +94 -0
  43. package/dist/collection/components/cover-image/style/index.css +5 -0
  44. package/dist/collection/components/cover-view/cover-view.js +166 -4
  45. package/dist/collection/components/cover-view/style/cover-view.css +3 -0
  46. package/dist/collection/components/input/input.js +19 -11
  47. package/dist/collection/components/picker/picker-group.js +59 -9
  48. package/dist/collection/components/swiper/swiper.js +7 -1
  49. package/dist/collection/components/tabbar/tabbar.js +72 -24
  50. package/dist/collection/components/textarea/style/index.css +6 -2
  51. package/dist/collection/components/textarea/textarea.js +98 -3
  52. package/dist/collection/components/view/view.js +9 -1
  53. package/dist/esm/{index-310de3d5.js → index-165a6222.js} +156 -101
  54. package/dist/esm/{index-ff1b322a.js → index-85e10859.js} +1 -1
  55. package/dist/esm/loader.js +3 -3
  56. package/dist/esm/taro-audio-core.entry.js +2 -2
  57. package/dist/esm/taro-block-core.entry.js +2 -2
  58. package/dist/esm/taro-button-core.entry.js +3 -3
  59. package/dist/esm/taro-camera-core.entry.js +2 -2
  60. package/dist/esm/taro-canvas-core.entry.js +2 -2
  61. package/dist/esm/taro-checkbox-core_2.entry.js +6 -5
  62. package/dist/esm/taro-components.js +5 -5
  63. package/dist/esm/taro-cover-image-core.entry.js +19 -5
  64. package/dist/esm/taro-cover-view-core.entry.js +51 -5
  65. package/dist/esm/taro-custom-wrapper-core.entry.js +2 -2
  66. package/dist/esm/taro-form-core.entry.js +2 -2
  67. package/dist/esm/taro-icon-core.entry.js +3 -3
  68. package/dist/esm/taro-image-core.entry.js +3 -3
  69. package/dist/esm/taro-input-core.entry.js +21 -13
  70. package/dist/esm/taro-label-core.entry.js +2 -2
  71. package/dist/esm/taro-movable-area-core.entry.js +2 -2
  72. package/dist/esm/taro-movable-view-core.entry.js +2 -2
  73. package/dist/esm/taro-navigator-core.entry.js +3 -3
  74. package/dist/esm/taro-open-data-core.entry.js +2 -2
  75. package/dist/esm/taro-picker-core_2.entry.js +37 -12
  76. package/dist/esm/taro-picker-view-column-core.entry.js +2 -2
  77. package/dist/esm/taro-picker-view-core.entry.js +2 -2
  78. package/dist/esm/taro-progress-core.entry.js +2 -2
  79. package/dist/esm/taro-pull-to-refresh.entry.js +3 -3
  80. package/dist/esm/taro-radio-core_2.entry.js +3 -3
  81. package/dist/esm/taro-rich-text-core.entry.js +2 -2
  82. package/dist/esm/taro-scroll-view-core.entry.js +3 -3
  83. package/dist/esm/taro-slider-core.entry.js +2 -2
  84. package/dist/esm/taro-swiper-core_2.entry.js +112 -106
  85. package/dist/esm/taro-switch-core.entry.js +2 -2
  86. package/dist/esm/taro-tabbar.entry.js +71 -27
  87. package/dist/esm/taro-text-core.entry.js +3 -3
  88. package/dist/esm/taro-textarea-core.entry.js +65 -5
  89. package/dist/esm/taro-video-control_3.entry.js +5 -5
  90. package/dist/esm/taro-view-core.entry.js +11 -3
  91. package/dist/esm/taro-web-view-core.entry.js +2 -2
  92. package/dist/esm-es5/index-165a6222.js +1 -0
  93. package/dist/esm-es5/{index-ff1b322a.js → index-85e10859.js} +0 -0
  94. package/dist/esm-es5/loader.js +1 -1
  95. package/dist/esm-es5/taro-audio-core.entry.js +1 -1
  96. package/dist/esm-es5/taro-block-core.entry.js +1 -1
  97. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  98. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  99. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  100. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  101. package/dist/esm-es5/taro-components.js +1 -1
  102. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
  103. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  104. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
  105. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  106. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  107. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  108. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  109. package/dist/esm-es5/taro-label-core.entry.js +1 -1
  110. package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
  111. package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
  112. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  113. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  114. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  115. package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
  116. package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
  117. package/dist/esm-es5/taro-progress-core.entry.js +1 -1
  118. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
  119. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  120. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  121. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  122. package/dist/esm-es5/taro-slider-core.entry.js +1 -1
  123. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  124. package/dist/esm-es5/taro-switch-core.entry.js +1 -1
  125. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  126. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  127. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  128. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  129. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  130. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  131. package/dist/taro-components/{p-8eb84de2.system.entry.js → p-00328ebf.system.entry.js} +1 -1
  132. package/dist/taro-components/p-016f56cc.system.entry.js +1 -0
  133. package/dist/taro-components/{p-15121391.system.entry.js → p-098f4931.system.entry.js} +1 -1
  134. package/dist/taro-components/p-0da88b1b.entry.js +1 -0
  135. package/dist/taro-components/p-0fb7f599.entry.js +1 -0
  136. package/dist/taro-components/p-139d4d14.entry.js +1 -0
  137. package/dist/taro-components/p-1507bcbf.entry.js +1 -0
  138. package/dist/taro-components/p-17c0731f.entry.js +1 -0
  139. package/dist/taro-components/{p-9a4123eb.system.entry.js → p-1ed219a6.system.entry.js} +1 -1
  140. package/dist/taro-components/p-26c08f44.entry.js +1 -0
  141. package/dist/taro-components/{p-502841e0.system.entry.js → p-26d8c60a.system.entry.js} +1 -1
  142. package/dist/taro-components/{p-970ed6da.system.entry.js → p-2b6a2449.system.entry.js} +1 -1
  143. package/dist/taro-components/{p-239bf0ca.system.entry.js → p-2ce9bc65.system.entry.js} +1 -1
  144. package/dist/taro-components/{p-1f2dfaef.system.entry.js → p-2de1a146.system.entry.js} +1 -1
  145. package/dist/taro-components/{p-a079321f.system.entry.js → p-2eda9121.system.entry.js} +1 -1
  146. package/dist/taro-components/p-30bfacb9.system.js +1 -0
  147. package/dist/taro-components/{p-921a765a.system.entry.js → p-321aeeec.system.entry.js} +1 -1
  148. package/dist/taro-components/p-33bcdee9.entry.js +1 -0
  149. package/dist/taro-components/p-3554df41.entry.js +1 -0
  150. package/dist/taro-components/p-37cfef64.entry.js +1 -0
  151. package/dist/taro-components/p-39bee235.entry.js +1 -0
  152. package/dist/taro-components/p-3e2d4793.entry.js +1 -0
  153. package/dist/taro-components/{p-e15654c4.system.entry.js → p-4168e24d.system.entry.js} +1 -1
  154. package/dist/taro-components/{p-236774f0.system.entry.js → p-4462dca4.system.entry.js} +1 -1
  155. package/dist/taro-components/{p-30c0639e.js → p-49ae5efb.js} +1 -1
  156. package/dist/taro-components/p-4a2ffc1c.entry.js +1 -0
  157. package/dist/taro-components/p-4ff67760.entry.js +1 -0
  158. package/dist/taro-components/p-5412a1d2.system.entry.js +1 -0
  159. package/dist/taro-components/{p-9242dcf7.system.entry.js → p-5a13bd63.system.entry.js} +1 -1
  160. package/dist/taro-components/{p-aed3d0e9.system.entry.js → p-5c8ba192.system.entry.js} +1 -1
  161. package/dist/taro-components/p-5d84eaf0.entry.js +1 -0
  162. package/dist/taro-components/{p-318795b9.system.entry.js → p-5e6feca6.system.entry.js} +1 -1
  163. package/dist/taro-components/{p-625158f0.js → p-6967e577.js} +0 -0
  164. package/dist/taro-components/{p-bd00f506.system.js → p-696f0d1c.system.js} +0 -0
  165. package/dist/taro-components/{p-d402dc94.system.entry.js → p-69be8189.system.entry.js} +1 -1
  166. package/dist/taro-components/p-6daacf48.entry.js +1 -0
  167. package/dist/taro-components/p-72f2b6f5.entry.js +1 -0
  168. package/dist/taro-components/p-76c00960.entry.js +1 -0
  169. package/dist/taro-components/p-79b3c05a.entry.js +1 -0
  170. package/dist/taro-components/p-7a5be745.entry.js +1 -0
  171. package/dist/taro-components/p-7b021c48.entry.js +1 -0
  172. package/dist/taro-components/p-7f3e5f09.entry.js +1 -0
  173. package/dist/taro-components/{p-c1d6c0ba.system.entry.js → p-7ffcfb05.system.entry.js} +1 -1
  174. package/dist/taro-components/p-81588c19.entry.js +1 -0
  175. package/dist/taro-components/p-8235b7b7.system.entry.js +1 -0
  176. package/dist/taro-components/{p-89fc30f0.entry.js → p-8cf16235.entry.js} +1 -1
  177. package/dist/taro-components/{p-4f139925.system.entry.js → p-8d905ff5.system.entry.js} +1 -1
  178. package/dist/taro-components/p-923c6e08.entry.js +1 -0
  179. package/dist/taro-components/p-93748645.system.js +1 -0
  180. package/dist/taro-components/p-9767491b.entry.js +1 -0
  181. package/dist/taro-components/p-9bd65170.system.entry.js +1 -0
  182. package/dist/taro-components/{p-3eb31172.system.entry.js → p-9d6a7a70.system.entry.js} +1 -1
  183. package/dist/taro-components/{p-e3e40b03.system.entry.js → p-9e807bd6.system.entry.js} +1 -1
  184. package/dist/taro-components/p-9e912454.system.entry.js +1 -0
  185. package/dist/taro-components/{p-9c9178cd.system.entry.js → p-a34988ff.system.entry.js} +1 -1
  186. package/dist/taro-components/p-a895db87.entry.js +1 -0
  187. package/dist/taro-components/{p-0f393c6d.system.entry.js → p-b685a487.system.entry.js} +1 -1
  188. package/dist/taro-components/{p-129341f2.system.entry.js → p-bd922592.system.entry.js} +1 -1
  189. package/dist/taro-components/p-be2d1c4a.system.entry.js +1 -0
  190. package/dist/taro-components/p-ca67c759.entry.js +1 -0
  191. package/dist/taro-components/p-cb8099dd.entry.js +1 -0
  192. package/dist/taro-components/p-ce093936.entry.js +1 -0
  193. package/dist/taro-components/{p-4d11f3ad.system.entry.js → p-ce49e2f4.system.entry.js} +1 -1
  194. package/dist/taro-components/p-d12592f1.entry.js +1 -0
  195. package/dist/taro-components/{p-a74d5aa5.system.entry.js → p-d52009d1.system.entry.js} +1 -1
  196. package/dist/taro-components/{p-2e9e9ca7.system.entry.js → p-d52bf5f5.system.entry.js} +1 -1
  197. package/dist/taro-components/{p-81f5977d.system.entry.js → p-d6269b5e.system.entry.js} +1 -1
  198. package/dist/taro-components/p-d6a37b93.entry.js +1 -0
  199. package/dist/taro-components/p-d8363f59.system.entry.js +1 -0
  200. package/dist/taro-components/p-d9494012.system.entry.js +1 -0
  201. package/dist/taro-components/p-de3a4828.entry.js +1 -0
  202. package/dist/taro-components/p-f4158e42.entry.js +1 -0
  203. package/dist/taro-components/p-f6c7f07c.system.entry.js +1 -0
  204. package/dist/taro-components/p-f7b6c1a6.entry.js +1 -0
  205. package/dist/taro-components/p-f991bc7b.entry.js +1 -0
  206. package/dist/taro-components/taro-components.esm.js +1 -1
  207. package/dist/taro-components/taro-components.js +1 -1
  208. package/dist/types/components/checkbox/checkbox.d.ts +1 -0
  209. package/dist/types/components/cover-image/cover-image.d.ts +11 -0
  210. package/dist/types/components/cover-view/cover-view.d.ts +14 -2
  211. package/dist/types/components/picker/picker-group.d.ts +7 -0
  212. package/dist/types/components/tabbar/tabbar.d.ts +20 -1
  213. package/dist/types/components/textarea/textarea.d.ts +6 -0
  214. package/dist/types/components/view/view.d.ts +2 -0
  215. package/dist/types/components.d.ts +20 -0
  216. package/dist/types/stencil-public-runtime.d.ts +190 -182
  217. package/dist-h5/vue/createComponent.js +4 -0
  218. package/dist-h5/vue/createFormsComponent.js +8 -1
  219. package/loader/index.d.ts +0 -1
  220. package/package.json +5 -5
  221. package/dist/collection/components/cover-view/cover-image.js +0 -11
  222. package/dist/esm-es5/index-310de3d5.js +0 -1
  223. package/dist/taro-components/p-153b839d.system.entry.js +0 -1
  224. package/dist/taro-components/p-180fd001.entry.js +0 -1
  225. package/dist/taro-components/p-1925bbdb.entry.js +0 -1
  226. package/dist/taro-components/p-1f44e8ef.system.entry.js +0 -1
  227. package/dist/taro-components/p-28348261.entry.js +0 -1
  228. package/dist/taro-components/p-31b89eb3.entry.js +0 -1
  229. package/dist/taro-components/p-31f0f881.entry.js +0 -1
  230. package/dist/taro-components/p-3bda72b4.entry.js +0 -1
  231. package/dist/taro-components/p-4591dff5.entry.js +0 -1
  232. package/dist/taro-components/p-4afe24d7.entry.js +0 -1
  233. package/dist/taro-components/p-4b632069.entry.js +0 -1
  234. package/dist/taro-components/p-4f1d45ff.entry.js +0 -1
  235. package/dist/taro-components/p-5032d822.entry.js +0 -1
  236. package/dist/taro-components/p-6287057a.entry.js +0 -1
  237. package/dist/taro-components/p-66120099.entry.js +0 -1
  238. package/dist/taro-components/p-6730fa44.entry.js +0 -1
  239. package/dist/taro-components/p-6f331ed3.entry.js +0 -1
  240. package/dist/taro-components/p-73c389e7.system.entry.js +0 -1
  241. package/dist/taro-components/p-7911ccd6.system.entry.js +0 -1
  242. package/dist/taro-components/p-8031d6b5.system.entry.js +0 -1
  243. package/dist/taro-components/p-82185d54.system.entry.js +0 -1
  244. package/dist/taro-components/p-8676c058.entry.js +0 -1
  245. package/dist/taro-components/p-906c3a0a.entry.js +0 -1
  246. package/dist/taro-components/p-9205470e.entry.js +0 -1
  247. package/dist/taro-components/p-945fa1a0.entry.js +0 -1
  248. package/dist/taro-components/p-95f5261c.entry.js +0 -1
  249. package/dist/taro-components/p-96771939.entry.js +0 -1
  250. package/dist/taro-components/p-96f1e9e7.entry.js +0 -1
  251. package/dist/taro-components/p-9c47f99e.entry.js +0 -1
  252. package/dist/taro-components/p-9fe2309f.entry.js +0 -1
  253. package/dist/taro-components/p-9ffb69e5.system.entry.js +0 -1
  254. package/dist/taro-components/p-a208926a.entry.js +0 -1
  255. package/dist/taro-components/p-a3e783c3.entry.js +0 -1
  256. package/dist/taro-components/p-af393b0b.entry.js +0 -1
  257. package/dist/taro-components/p-b2ed71a7.entry.js +0 -1
  258. package/dist/taro-components/p-b5d2597b.system.js +0 -1
  259. package/dist/taro-components/p-b7c29d05.entry.js +0 -1
  260. package/dist/taro-components/p-c2810ece.entry.js +0 -1
  261. package/dist/taro-components/p-c37d9a5d.system.entry.js +0 -1
  262. package/dist/taro-components/p-c9380fa6.entry.js +0 -1
  263. package/dist/taro-components/p-ca74a018.entry.js +0 -1
  264. package/dist/taro-components/p-cf496b3b.system.js +0 -1
  265. package/dist/taro-components/p-e256974b.system.entry.js +0 -1
  266. package/dist/taro-components/p-e28625a2.entry.js +0 -1
  267. package/dist/taro-components/p-e302b8d7.entry.js +0 -1
  268. package/dist/types/components/cover-view/cover-image.d.ts +0 -4
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-eefce54e.js');
5
+ const index = require('./index-7464647f.js');
6
6
 
7
7
  const indexCss = "taro-switch-core{display:inline-block;width:52px;height:32px}taro-switch-core .weui-switch{display:block;width:100%;height:100%}";
8
8
 
9
- const Switch = class {
9
+ let Switch = class {
10
10
  constructor(hostRef) {
11
11
  index.registerInstance(this, hostRef);
12
12
  this.onChange = index.createEvent(this, "change", 7);
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index$1 = require('./index-eefce54e.js');
6
- const index = require('./index-cf56824f.js');
5
+ const index$1 = require('./index-7464647f.js');
6
+ const index = require('./index-cde74e58.js');
7
7
 
8
8
  function isAbsolute(pathname) {
9
9
  return pathname.charAt(0) === '/';
@@ -145,7 +145,7 @@ const STATUS_SLIDEOUT = 2;
145
145
  const basicTabBarClassName = 'taro-tabbar__tabbar';
146
146
  const hideTabBarClassName = 'taro-tabbar__tabbar-hide';
147
147
  const hideTabBarWithAnimationClassName = 'taro-tabbar__tabbar-slideout';
148
- const Tabbar = class {
148
+ let Tabbar = class {
149
149
  constructor(hostRef) {
150
150
  index$1.registerInstance(this, hostRef);
151
151
  this.onLongPress = index$1.createEvent(this, "longpress", 7);
@@ -156,18 +156,18 @@ const Tabbar = class {
156
156
  this.status = STATUS_SHOW;
157
157
  this.getOriginUrl = (url) => {
158
158
  const customRoute = this.customRoutes.filter(([, customUrl]) => {
159
- const patha = splitUrl(customUrl).path;
160
- const pathb = splitUrl(url).path;
161
- return patha === pathb;
159
+ const pathA = splitUrl(customUrl).path;
160
+ const pathB = splitUrl(url).path;
161
+ return pathA === pathB;
162
162
  });
163
163
  return customRoute.length ? customRoute[0][0] : url;
164
164
  };
165
165
  this.getSelectedIndex = (url) => {
166
166
  let foundIndex = -1;
167
167
  this.list.forEach(({ pagePath }, idx) => {
168
- const patha = splitUrl(url).path;
169
- const pathb = splitUrl(pagePath).path;
170
- if (patha === pathb) {
168
+ const pathA = splitUrl(url).path;
169
+ const pathB = splitUrl(pagePath).path;
170
+ if (pathA === pathB) {
171
171
  foundIndex = idx;
172
172
  }
173
173
  });
@@ -175,7 +175,7 @@ const Tabbar = class {
175
175
  };
176
176
  this.switchTab = (index) => {
177
177
  this.selectedIndex = index;
178
- Taro.navigateTo({
178
+ Taro.switchTab({
179
179
  url: this.list[index].pagePath
180
180
  });
181
181
  };
@@ -203,32 +203,34 @@ const Tabbar = class {
203
203
  }
204
204
  if (toLocation && toLocation.path) {
205
205
  const tmpPath = addLeadingSlash(toLocation.path);
206
- currentPage = tmpPath === '/'
207
- ? this.homePage
208
- : tmpPath;
206
+ currentPage = stripBasename(tmpPath === '/' ? this.homePage : tmpPath, this.conf.basename || '/');
209
207
  }
210
208
  else {
211
209
  currentPage = this.getCurrentUrl();
212
210
  }
213
211
  this.selectedIndex = this.getSelectedIndex(this.getOriginUrl(currentPage));
214
212
  };
215
- this.setTabBarBadgeHandler = ({ index, text, errorHandler }) => {
216
- const list = this.list;
213
+ this.setTabBarBadgeHandler = ({ index, text, successHandler, errorHandler }) => {
214
+ const list = [...this.list];
217
215
  if (index in list) {
218
- this.list[index].showRedDot = false;
219
- this.list[index].badgeText = text;
216
+ list[index].showRedDot = false;
217
+ list[index].badgeText = text;
218
+ successHandler({
219
+ errMsg: 'setTabBarBadge:ok'
220
+ });
220
221
  }
221
222
  else {
222
223
  errorHandler({
223
224
  errMsg: 'setTabBarBadge:fail tabbar item not found'
224
225
  });
225
226
  }
227
+ this.list = list;
226
228
  };
227
229
  this.removeTabBarBadgeHandler = ({ index, successHandler, errorHandler }) => {
228
- const list = this.list;
230
+ const list = [...this.list];
229
231
  if (index in list) {
230
- this.list[index].badgeText = null;
231
- this.list[index].badgeText = null;
232
+ list[index].badgeText = null;
233
+ list[index].badgeText = null;
232
234
  successHandler({
233
235
  errMsg: 'removeTabBarBadge:ok'
234
236
  });
@@ -238,9 +240,10 @@ const Tabbar = class {
238
240
  errMsg: 'removeTabBarBadge:fail tabbar item not found'
239
241
  });
240
242
  }
243
+ this.list = list;
241
244
  };
242
245
  this.showTabBarRedDotHandler = ({ index, successHandler, errorHandler }) => {
243
- const list = this.list;
246
+ const list = [...this.list];
244
247
  if (index in list) {
245
248
  list[index].badgeText = null;
246
249
  list[index].showRedDot = true;
@@ -253,9 +256,10 @@ const Tabbar = class {
253
256
  errMsg: 'showTabBarRedDot:fail tabbar item not found'
254
257
  });
255
258
  }
259
+ this.list = list;
256
260
  };
257
261
  this.hideTabBarRedDotHandler = ({ index, successHandler, errorHandler }) => {
258
- const list = this.list;
262
+ const list = [...this.list];
259
263
  if (index in list) {
260
264
  list[index].showRedDot = false;
261
265
  successHandler({
@@ -267,6 +271,7 @@ const Tabbar = class {
267
271
  errMsg: 'hideTabBarRedDot:fail tabbar item not found'
268
272
  });
269
273
  }
274
+ this.list = list;
270
275
  };
271
276
  this.showTabBarHandler = ({ successHandler }) => {
272
277
  this.status = STATUS_SHOW;
@@ -280,6 +285,39 @@ const Tabbar = class {
280
285
  errMsg: 'hideTabBar:ok'
281
286
  });
282
287
  };
288
+ this.setTabBarStyleHandler = ({ color, selectedColor, backgroundColor, borderStyle, successHandler }) => {
289
+ if (backgroundColor)
290
+ this.backgroundColor = backgroundColor;
291
+ if (borderStyle)
292
+ this.borderStyle = borderStyle;
293
+ if (color)
294
+ this.color = color;
295
+ if (selectedColor)
296
+ this.selectedColor = selectedColor;
297
+ successHandler({
298
+ errMsg: 'setTabBarStyle:ok'
299
+ });
300
+ };
301
+ this.setTabBarItemHandler = ({ index, iconPath, selectedIconPath, text, successHandler, errorHandler }) => {
302
+ const list = [...this.list];
303
+ if (index in list) {
304
+ if (iconPath)
305
+ list[index].iconPath = iconPath;
306
+ if (selectedIconPath)
307
+ list[index].selectedIconPath = selectedIconPath;
308
+ if (text)
309
+ list[index].text = text;
310
+ successHandler({
311
+ errMsg: 'setTabBarItem:ok'
312
+ });
313
+ }
314
+ else {
315
+ errorHandler({
316
+ errMsg: 'setTabBarItem:fail tabbar item not found'
317
+ });
318
+ }
319
+ this.list = list;
320
+ };
283
321
  const list = this.conf.list;
284
322
  const customRoutes = this.conf.customRoutes;
285
323
  if (Object.prototype.toString.call(list) !== '[object Array]' ||
@@ -297,6 +335,7 @@ const Tabbar = class {
297
335
  }
298
336
  });
299
337
  this.list = list;
338
+ this.borderStyle = this.conf.borderStyle;
300
339
  }
301
340
  getCurrentUrl() {
302
341
  const routerMode = this.conf.mode;
@@ -324,6 +363,8 @@ const Tabbar = class {
324
363
  Taro.eventCenter.on('__taroHideTabBarRedDotHandler', this.hideTabBarRedDotHandler);
325
364
  Taro.eventCenter.on('__taroShowTabBar', this.showTabBarHandler);
326
365
  Taro.eventCenter.on('__taroHideTabBar', this.hideTabBarHandler);
366
+ Taro.eventCenter.on('__taroSetTabBarStyle', this.setTabBarStyleHandler);
367
+ Taro.eventCenter.on('__taroSetTabBarItem', this.setTabBarItemHandler);
327
368
  }
328
369
  removeEvent() {
329
370
  Taro.eventCenter.off('__taroRouterChange', this.routerChangeHandler);
@@ -334,6 +375,8 @@ const Tabbar = class {
334
375
  Taro.eventCenter.off('__taroHideTabBarRedDotHandler', this.hideTabBarRedDotHandler);
335
376
  Taro.eventCenter.off('__taroShowTabBar', this.showTabBarHandler);
336
377
  Taro.eventCenter.off('__taroHideTabBar', this.hideTabBarHandler);
378
+ Taro.eventCenter.off('__taroSetTabBarStyle', this.setTabBarStyleHandler);
379
+ Taro.eventCenter.off('__taroSetTabBarItem', this.setTabBarItemHandler);
337
380
  }
338
381
  componentDidLoad() {
339
382
  this.tabbarPos = this.tabbar.nextElementSibling ? 'top' : 'bottom';
@@ -344,10 +387,10 @@ const Tabbar = class {
344
387
  this.removeEvent();
345
388
  }
346
389
  render() {
347
- const { conf, tabbarPos = 'bottom' } = this;
390
+ const { tabbarPos = 'bottom' } = this;
348
391
  const status = this.status;
349
392
  const containerCls = index.classnames('weui-tabbar', {
350
- [`taro-tabbar__border-${conf.borderStyle || 'black'}`]: true
393
+ [`taro-tabbar__border-${this.borderStyle || 'black'}`]: true
351
394
  });
352
395
  const shouldHideTabBar = this.selectedIndex === -1 || status === STATUS_HIDE;
353
396
  const shouldSlideout = status === STATUS_SLIDEOUT;
@@ -355,19 +398,20 @@ const Tabbar = class {
355
398
  [hideTabBarClassName]: shouldHideTabBar,
356
399
  [hideTabBarWithAnimationClassName]: shouldSlideout
357
400
  }) }, index$1.h("div", { class: containerCls, style: {
358
- backgroundColor: conf.backgroundColor || ''
401
+ backgroundColor: this.backgroundColor || ''
359
402
  } }, this.list.map((item, index) => {
360
403
  const isSelected = this.selectedIndex === index;
361
404
  let textColor;
362
405
  let iconPath;
363
406
  if (isSelected) {
364
- textColor = conf.selectedColor;
407
+ textColor = this.selectedColor;
365
408
  iconPath = item.selectedIconPath;
366
409
  }
367
410
  else {
368
- textColor = conf.color || '';
411
+ textColor = this.color || '';
369
412
  iconPath = item.iconPath;
370
413
  }
414
+ console.log('TabbarItem', item);
371
415
  return (index$1.h(TabbarItem, { index: index, onSelect: this.switchTab.bind(this), isSelected: isSelected, textColor: textColor, iconPath: iconPath, text: item.text, badgeText: item.badgeText, showRedDot: item.showRedDot }));
372
416
  }))));
373
417
  }
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-eefce54e.js');
6
- const index$1 = require('./index-cf56824f.js');
5
+ const index = require('./index-7464647f.js');
6
+ const index$1 = require('./index-cde74e58.js');
7
7
 
8
8
  const indexCss = "taro-text-core{display:inline;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;white-space:pre-wrap}.taro-text__selectable{-moz-user-select:text;-webkit-user-select:text;-ms-user-select:text;user-select:text}";
9
9
 
10
- const Text = class {
10
+ let Text = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
13
  this.selectable = false;
@@ -2,26 +2,30 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-eefce54e.js');
5
+ const index = require('./index-7464647f.js');
6
6
 
7
- const indexCss = "taro-textarea-core{display:block;width:300px;height:150px}.taro-textarea{-webkit-appearance:none;cursor:auto;width:100%;height:100%;border:0;display:block;position:relative}.taro-textarea:focus{outline:none}";
7
+ const indexCss = "taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{-webkit-appearance:none;cursor:auto;width:100%;height:150px;border:0;display:block;position:relative;line-height:1.5}.taro-textarea:focus{outline:none}";
8
8
 
9
9
  function fixControlledValue(value) {
10
10
  return value !== null && value !== void 0 ? value : '';
11
11
  }
12
- const Textarea = class {
12
+ let Textarea = class {
13
13
  constructor(hostRef) {
14
14
  index.registerInstance(this, hostRef);
15
15
  this.onInput = index.createEvent(this, "input", 7);
16
16
  this.onFocus = index.createEvent(this, "focus", 7);
17
17
  this.onBlur = index.createEvent(this, "blur", 7);
18
18
  this.onChange = index.createEvent(this, "change", 7);
19
+ this.onLineChange = index.createEvent(this, "linechange", 7);
19
20
  this.disabled = false;
20
21
  this.maxlength = 140;
21
22
  this.autoFocus = false;
23
+ this.autoHeight = false;
22
24
  this.nativeProps = {};
25
+ this.line = 1;
23
26
  this.hanldeInput = (e) => {
24
27
  e.stopPropagation();
28
+ this.handleLineChange();
25
29
  this.onInput.emit({
26
30
  value: e.target.value,
27
31
  cursor: e.target.value.length
@@ -43,6 +47,58 @@ const Textarea = class {
43
47
  value: e.target.value
44
48
  });
45
49
  };
50
+ this.handleLineChange = () => {
51
+ const line = this.getNumberOfLines();
52
+ if (line !== this.line) {
53
+ this.line = line;
54
+ this.onLineChange.emit({
55
+ height: this.textareaRef.clientHeight,
56
+ lineCount: this.line
57
+ });
58
+ }
59
+ };
60
+ this.calculateContentHeight = (ta, scanAmount) => {
61
+ let origHeight = ta.style.height, height = ta.offsetHeight, scrollHeight = ta.scrollHeight, overflow = ta.style.overflow;
62
+ /// only bother if the ta is bigger than content
63
+ if (height >= scrollHeight) {
64
+ /// check that our browser supports changing dimension
65
+ /// calculations mid-way through a function call...
66
+ ta.style.height = height + scanAmount + 'px';
67
+ /// because the scrollbar can cause calculation problems
68
+ ta.style.overflow = 'hidden';
69
+ /// by checking that scrollHeight has updated
70
+ if (scrollHeight < ta.scrollHeight) {
71
+ /// now try and scan the ta's height downwards
72
+ /// until scrollHeight becomes larger than height
73
+ while (ta.offsetHeight >= ta.scrollHeight) {
74
+ ta.style.height = (height -= scanAmount) + 'px';
75
+ }
76
+ /// be more specific to get the exact height
77
+ while (ta.offsetHeight < ta.scrollHeight) {
78
+ ta.style.height = height++ + 'px';
79
+ }
80
+ /// reset the ta back to it's original height
81
+ ta.style.height = origHeight;
82
+ /// put the overflow back
83
+ ta.style.overflow = overflow;
84
+ return height;
85
+ }
86
+ }
87
+ else {
88
+ return scrollHeight;
89
+ }
90
+ };
91
+ this.getNumberOfLines = () => {
92
+ const ta = this.textareaRef, style = window.getComputedStyle ? window.getComputedStyle(ta) : ta.style,
93
+ // This will get the line-height only if it is set in the css,
94
+ // otherwise it's "normal"
95
+ taLineHeight = parseInt(style.lineHeight, 10),
96
+ // Get the scroll height of the textarea
97
+ taHeight = this.calculateContentHeight(ta, taLineHeight),
98
+ // calculate the number of lines
99
+ numberOfLines = Math.floor(taHeight / taLineHeight);
100
+ return numberOfLines;
101
+ };
46
102
  }
47
103
  componentDidLoad() {
48
104
  Object.defineProperty(this.el, 'value', {
@@ -53,12 +109,16 @@ const Textarea = class {
53
109
  this.autoFocus && this.textareaRef.focus();
54
110
  }
55
111
  render() {
56
- const { value, placeholder, disabled, maxlength, autoFocus, name, nativeProps, hanldeInput, handleFocus, handleBlur, handleChange } = this;
112
+ const { value, placeholder, disabled, maxlength, autoFocus, autoHeight, name, nativeProps, hanldeInput, handleFocus, handleBlur, handleChange } = this;
113
+ const otherProps = {};
114
+ if (autoHeight) {
115
+ otherProps.rows = this.line;
116
+ }
57
117
  return (index.h("textarea", Object.assign({ ref: input => {
58
118
  if (input) {
59
119
  this.textareaRef = input;
60
120
  }
61
- }, class: 'taro-textarea', value: fixControlledValue(value), placeholder: placeholder, name: name, disabled: disabled, maxlength: maxlength, autofocus: autoFocus, onInput: hanldeInput, onFocus: handleFocus, onBlur: handleBlur, onChange: handleChange }, nativeProps)));
121
+ }, class: `taro-textarea ${autoHeight ? 'auto-height' : ''}`, value: fixControlledValue(value), placeholder: placeholder, name: name, disabled: disabled, maxlength: maxlength, autofocus: autoFocus, onInput: hanldeInput, onFocus: handleFocus, onBlur: handleBlur, onChange: handleChange }, nativeProps, otherProps)));
62
122
  }
63
123
  get el() { return index.getElement(this); }
64
124
  };
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-eefce54e.js');
6
- const index$1 = require('./index-cf56824f.js');
5
+ const index = require('./index-7464647f.js');
6
+ const index$1 = require('./index-cde74e58.js');
7
7
 
8
8
  const formatTime = time => {
9
9
  if (time == null) return ''
@@ -115,7 +115,7 @@ const screenFn = (function () {
115
115
  return ret
116
116
  })();
117
117
 
118
- const VideoControl = class {
118
+ let VideoControl = class {
119
119
  constructor(hostRef) {
120
120
  index.registerInstance(this, hostRef);
121
121
  this.visible = false;
@@ -212,7 +212,7 @@ const VideoControl = class {
212
212
 
213
213
  const indexCss = ".taro-video{width:100%;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}.taro-video[hidden]{display:none}.taro-video-container{width:100%;height:100%;background-color:#000;display:inline-block;position:absolute;top:0;left:0;overflow:hidden;-o-object-position:inherit;object-position:inherit}.taro-video-container.taro-video-type-fullscreen{position:fixed;top:0;left:0;right: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{position:absolute;top:0;left:0;bottom:0;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background-color:rgba(1, 1, 1, 0.5);z-index:1}.taro-video-cover-play-button{width:40px;height:40px;background-size:50%;background-repeat:no-repeat;background-position:50% 50%}.taro-video-cover-duration{color:#fff;font-size:16px;line-height:1;margin-top:10px}.taro-video-bar{visibility:hidden;height:44px;background-color:rgba(0, 0, 0, 0.5);overflow:hidden;position:absolute;bottom:0;right:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 10px;z-index:1}.taro-video-bar.taro-video-bar-full{left:0}.taro-video-controls{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;margin:0 8.5px}.taro-video-control-button{width:13px;height:15px;padding:14.5px 12.5px 14.5px 12.5px;margin-left:-8.5px;-webkit-box-sizing:content-box;box-sizing:content-box}.taro-video-control-button:after{content:\"\";display:block;width:100%;height:100%;background-size:100%;background-position:50% 50%;background-repeat:no-repeat}.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{height:14.5px;line-height:14.5px;margin-top:15px;margin-bottom:14.5px;font-size:12px;color:#cbcbcb}.taro-video-progress-container{-webkit-box-flex:2;-webkit-flex-grow:2;-ms-flex-positive:2;flex-grow:2;position:relative}.taro-video-progress{height:2px;margin:21px 12px;background-color:rgba(255, 255, 255, 0.4);position:relative}.taro-video-progress-buffered{position:absolute;left:0;top:0;width:0;height:100%;-webkit-transition:width 0.1s;transition:width 0.1s;background-color:rgba(255, 255, 255, 0.8)}.taro-video-ball{width:16px;height:16px;padding:14px;position:absolute;top:-21px;-webkit-box-sizing:content-box;box-sizing:content-box;left:0;margin-left:-22px}.taro-video-inner{width:100%;height:100%;background-color:#fff;border-radius:50%}.taro-video-danmu-button{white-space:nowrap;line-height:1;padding:2px 10px;border:1px solid #fff;border-radius:5px;font-size:13px;color:#fff;margin:0 8.5px}.taro-video-danmu-button.taro-video-danmu-button-active{border-color:#48c23d;color:#48c23d}.taro-video-fullscreen,.taro-video-mute{width:17px;height:17px;padding:8.5px;-webkit-box-sizing:content-box;box-sizing:content-box;background-size:50%;background-position:50% 50%;background-repeat:no-repeat}.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+gidAdu9vY5zXhWA4sAgOND3X7NJ4AHYCaxkB8B62gslvecSFpoDOZH/PP8Cnt7hIaM5xCEAAAAASUVORK5CYII=)}.taro-video-mute{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAGAGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAA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CFxiQEgTUGxsBUVEHgvnyrjZZJO92V1fGIaZnTPvszPszNlQ6VIjnbr/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,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGAGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJod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VztIOr1BLEtmX4A94E/qdwHTKjDWYM6lu81dSlnn3V570BtuLxaMs2rZ/IgYxsBovaoPwsQA4VoFWEm8ql5DiysNyURsQTMpOIMcDYiPhd8xoGr/FtNC2G6FKXD6ihwGdiVHMoeeh8jYlA9ANwE3kTEp3bO6vE03qOONzR1r/q4RGrquaFFxFxE3ALOA9+6jExpdb180y55AhirhaRTatq0GXEzL8+ZIuI9cBJ4WKiartJf9nWV/mty7UfUafW7erpqRGI9EBuprffvu9n6C1KOmsqwI5A1AAAAAElFTkSuQmCC)}.taro-video-danmu{position:absolute;top:0;left:0;bottom:0;width:100%;margin-top:14px;margin-bottom:44px;font-size:14px;line-height:14px;overflow:visible}.taro-video-danmu-item{line-height:1;position:absolute;color:#fff;white-space:nowrap;left:100%;-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{pointer-events:none;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border-radius:5px;background-color:rgba(255, 255, 255, 0.8);color:#000;display:block;visibility:hidden}.taro-video-toast.taro-video-toast-volume{width:100px;height:100px;display:block}.taro-video-toast-volume .taro-video-toast-title{width:100%;font-size:12px;line-height:16px;text-align:center;margin-top:10px;display:block}.taro-video-toast-volume .taro-video-toast-icon{fill:#000;width:50%;height:50%;margin-left:25%;display:block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFhklEQVR4Xu2aeaxfQxTHP1VBES0NIQitWtpaaxeCUkQtaYVa0tiClAq1ExIiQTVppaWxt8RWSa2tWkJQRGgtQaSIpUKEpG0ssbbk28yV2+mZO/e9e3vvu/e98897mZnfzPl+75mZs0wvurn06ub46SGgxwLqZaA3sB/wO/A+8G/V6tS5BU4BJgJbO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dAk4DID0BnAAz4B6wNLgTKKG0VIDBHwqitwpOcW+OOB540FdeipNKbUWFrUtn06o5xOij4KyDuqU0IE3Obl/rLA63pTzm9XA8jKACjdniZAaSKFmUpB1yUhAlTsUEpMh913wEkuTe7rKTzPAHqO44vpKPkFhH3cWWBVV6ogJVYZUgz/tXtIYelzI3Ct0fExIGx6j7iKWBUUveyYBehv1RIjIEsfqziq8Xp4pSBJOYTVJFQcVY3wCFeKUjVGyYfQWB00+5bEVBECrNS+qsOKBpVHNCVWHs+LS7H5PV5pOu9v0+OKEOAXR39w1e1C7wM6AkJ1eLmkRcrpRQiQrqobXO5S3vL3/4kBKMsCknV0k+iasVLUMV3UX5SAPGtED8EOT+L9YENnCasUIXNO2goChFWHqAIRyxXN4qI1BCQg9dJESYq8LnbrCBAR8t50Lig6i0krCRBoVWhVlt45wkBrCRBuRZyPuAguxIPe9lXqhpd9DcZMXOvdkPF0Xu/8dohNUmZ/1QQkuitXr+d4fryuFx3jywQYm6suAqSX8vLTXKJDt4QqO6rtLYspXWZ/nQQkOJTAUJZGIav19q9MvKvN1RUIWKMAY5P3EBBjqO393d4C/gMVHwRQlpx21QAAAABJRU5ErkJggg==);background-size:50%;background-position:50% 50%;background-repeat:no-repeat}.taro-video-toast-volume .taro-video-toast-value{width:80px;height:5px;margin-top:5px;margin-left:10px}.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{background-color:rgba(0, 0, 0, 0.8);color:#fff;font-size:14px;line-height:18px;padding:6px}";
214
214
 
215
- const Video = class {
215
+ let Video = class {
216
216
  constructor(hostRef) {
217
217
  index.registerInstance(this, hostRef);
218
218
  this.onPlay = index.createEvent(this, "play", 7);
@@ -601,7 +601,7 @@ const Video = class {
601
601
  };
602
602
  Video.style = indexCss;
603
603
 
604
- const VideoDanmu = class {
604
+ let VideoDanmu = class {
605
605
  constructor(hostRef) {
606
606
  index.registerInstance(this, hostRef);
607
607
  this.list = [];
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-eefce54e.js');
6
- const index$1 = require('./index-cf56824f.js');
5
+ const index = require('./index-7464647f.js');
6
+ const index$1 = require('./index-cde74e58.js');
7
7
 
8
8
  const indexCss = "body,html{-webkit-tap-highlight-color:rgba(0, 0, 0, 0);user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}taro-view-core{display:block}";
9
9
 
10
- const View = class {
10
+ let View = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
13
  this.onLongPress = index.createEvent(this, "longpress", 7);
@@ -48,6 +48,13 @@ const View = class {
48
48
  }, this.hoverStayTime);
49
49
  }
50
50
  }
51
+ componentDidRender() {
52
+ const el = this.el;
53
+ el.childNodes.forEach(item => {
54
+ if (item.nodeType === document.COMMENT_NODE)
55
+ el.removeChild(item);
56
+ });
57
+ }
51
58
  render() {
52
59
  const cls = index$1.classnames({
53
60
  [`${this.hoverClass}`]: this.hover
@@ -59,6 +66,7 @@ const View = class {
59
66
  }
60
67
  return (index.h(index.Host, Object.assign({ class: cls }, attr), index.h("slot", null)));
61
68
  }
69
+ get el() { return index.getElement(this); }
62
70
  };
63
71
  View.style = indexCss;
64
72
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-eefce54e.js');
5
+ const index = require('./index-7464647f.js');
6
6
 
7
7
  const indexCss = "iframe{border:none}.taro-webview{position:fixed;top:0;bottom:0;width:100%;height:100%;z-index:999}";
8
8
 
9
- const WebView = class {
9
+ let WebView = class {
10
10
  constructor(hostRef) {
11
11
  index.registerInstance(this, hostRef);
12
12
  this.onLoad = index.createEvent(this, "load", 7);
@@ -7,7 +7,7 @@
7
7
  "./components/canvas/canvas.js",
8
8
  "./components/checkbox/checkbox-group.js",
9
9
  "./components/checkbox/checkbox.js",
10
- "./components/cover-view/cover-image.js",
10
+ "./components/cover-image/cover-image.js",
11
11
  "./components/cover-view/cover-view.js",
12
12
  "./components/custom-wrapper/custom-wrapper.js",
13
13
  "./components/form/form.js",
@@ -44,8 +44,8 @@
44
44
  ],
45
45
  "compiler": {
46
46
  "name": "@stencil/core",
47
- "version": "2.4.0",
48
- "typescriptVersion": "4.1.3"
47
+ "version": "2.9.0",
48
+ "typescriptVersion": "4.2.3"
49
49
  },
50
50
  "collections": [],
51
51
  "bundles": [
@@ -4,6 +4,7 @@ export class Checkbox {
4
4
  constructor() {
5
5
  this.value = '';
6
6
  this.checked = false;
7
+ this.disabled = false;
7
8
  this.nativeProps = {};
8
9
  this.isWillLoadCalled = false;
9
10
  this.handleChange = e => {
@@ -26,7 +27,7 @@ export class Checkbox {
26
27
  this.id && this.el.removeAttribute('id');
27
28
  }
28
29
  render() {
29
- const { checked, name, color, value, nativeProps } = this;
30
+ const { checked, name, color, value, disabled, nativeProps } = this;
30
31
  return (h(Host, { className: 'weui-cells_checkbox' },
31
32
  h("input", Object.assign({ ref: dom => {
32
33
  if (!dom)
@@ -34,7 +35,7 @@ export class Checkbox {
34
35
  this.inputEl = dom;
35
36
  if (this.id)
36
37
  dom.setAttribute('id', this.id);
37
- }, type: 'checkbox', value: value, name: name, class: 'taro-checkbox_checked', style: { color }, checked: checked, onChange: this.handleChange }, nativeProps)),
38
+ }, type: 'checkbox', value: value, name: name, class: 'taro-checkbox_checked', style: { color }, checked: checked, disabled: disabled, onChange: this.handleChange }, nativeProps)),
38
39
  h("slot", null)));
39
40
  }
40
41
  static get is() { return "taro-checkbox-core"; }
@@ -132,6 +133,24 @@ export class Checkbox {
132
133
  "reflect": false,
133
134
  "defaultValue": "false"
134
135
  },
136
+ "disabled": {
137
+ "type": "boolean",
138
+ "mutable": false,
139
+ "complexType": {
140
+ "original": "boolean",
141
+ "resolved": "boolean",
142
+ "references": {}
143
+ },
144
+ "required": false,
145
+ "optional": false,
146
+ "docs": {
147
+ "tags": [],
148
+ "text": ""
149
+ },
150
+ "attribute": "disabled",
151
+ "reflect": false,
152
+ "defaultValue": "false"
153
+ },
135
154
  "nativeProps": {
136
155
  "type": "unknown",
137
156
  "mutable": false,
@@ -0,0 +1,94 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
+ import { Component, Prop, Event, h } from '@stencil/core';
3
+ export class CoverImage {
4
+ constructor() {
5
+ this.nativeProps = {};
6
+ }
7
+ imageOnLoad() {
8
+ const { width, height, } = this.imgRef;
9
+ this.onLoad.emit({
10
+ width,
11
+ height
12
+ });
13
+ }
14
+ imageOnError() {
15
+ this.onError.emit();
16
+ }
17
+ render() {
18
+ const { src, imageOnLoad, imageOnError, nativeProps } = this;
19
+ return (h("img", Object.assign({ ref: img => (this.imgRef = img), src: src, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }, nativeProps)));
20
+ }
21
+ static get is() { return "taro-cover-image-core"; }
22
+ static get originalStyleUrls() { return {
23
+ "$": ["./style/index.scss"]
24
+ }; }
25
+ static get styleUrls() { return {
26
+ "$": ["./style/index.css"]
27
+ }; }
28
+ static get properties() { return {
29
+ "src": {
30
+ "type": "string",
31
+ "mutable": false,
32
+ "complexType": {
33
+ "original": "string",
34
+ "resolved": "string",
35
+ "references": {}
36
+ },
37
+ "required": false,
38
+ "optional": false,
39
+ "docs": {
40
+ "tags": [],
41
+ "text": ""
42
+ },
43
+ "attribute": "src",
44
+ "reflect": false
45
+ },
46
+ "nativeProps": {
47
+ "type": "unknown",
48
+ "mutable": false,
49
+ "complexType": {
50
+ "original": "{}",
51
+ "resolved": "{}",
52
+ "references": {}
53
+ },
54
+ "required": false,
55
+ "optional": false,
56
+ "docs": {
57
+ "tags": [],
58
+ "text": ""
59
+ },
60
+ "defaultValue": "{}"
61
+ }
62
+ }; }
63
+ static get events() { return [{
64
+ "method": "onLoad",
65
+ "name": "load",
66
+ "bubbles": true,
67
+ "cancelable": true,
68
+ "composed": true,
69
+ "docs": {
70
+ "tags": [],
71
+ "text": ""
72
+ },
73
+ "complexType": {
74
+ "original": "any",
75
+ "resolved": "any",
76
+ "references": {}
77
+ }
78
+ }, {
79
+ "method": "onError",
80
+ "name": "error",
81
+ "bubbles": true,
82
+ "cancelable": true,
83
+ "composed": true,
84
+ "docs": {
85
+ "tags": [],
86
+ "text": ""
87
+ },
88
+ "complexType": {
89
+ "original": "any",
90
+ "resolved": "any",
91
+ "references": {}
92
+ }
93
+ }]; }
94
+ }
@@ -0,0 +1,5 @@
1
+ taro-cover-image-core {
2
+ overflow: hidden;
3
+ width: 320px;
4
+ height: 240px;
5
+ }