@tarojs/components 3.3.9 → 3.3.13

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 (257) 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 +2 -2
  12. package/dist/cjs/taro-cover-view-core.cjs.entry.js +2 -2
  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 +18 -10
  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 +5 -7
  35. package/dist/cjs/taro-text-core.cjs.entry.js +3 -3
  36. package/dist/cjs/taro-textarea-core.cjs.entry.js +2 -2
  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 +2 -2
  41. package/dist/collection/components/checkbox/checkbox.js +21 -2
  42. package/dist/collection/components/input/input.js +16 -8
  43. package/dist/collection/components/picker/picker-group.js +59 -9
  44. package/dist/collection/components/swiper/swiper.js +7 -1
  45. package/dist/collection/components/tabbar/tabbar.js +2 -4
  46. package/dist/collection/components/view/view.js +9 -1
  47. package/dist/esm/{index-310de3d5.js → index-165a6222.js} +156 -101
  48. package/dist/esm/{index-ff1b322a.js → index-85e10859.js} +1 -1
  49. package/dist/esm/loader.js +3 -3
  50. package/dist/esm/taro-audio-core.entry.js +2 -2
  51. package/dist/esm/taro-block-core.entry.js +2 -2
  52. package/dist/esm/taro-button-core.entry.js +3 -3
  53. package/dist/esm/taro-camera-core.entry.js +2 -2
  54. package/dist/esm/taro-canvas-core.entry.js +2 -2
  55. package/dist/esm/taro-checkbox-core_2.entry.js +6 -5
  56. package/dist/esm/taro-components.js +5 -5
  57. package/dist/esm/taro-cover-image-core.entry.js +2 -2
  58. package/dist/esm/taro-cover-view-core.entry.js +2 -2
  59. package/dist/esm/taro-custom-wrapper-core.entry.js +2 -2
  60. package/dist/esm/taro-form-core.entry.js +2 -2
  61. package/dist/esm/taro-icon-core.entry.js +3 -3
  62. package/dist/esm/taro-image-core.entry.js +3 -3
  63. package/dist/esm/taro-input-core.entry.js +18 -10
  64. package/dist/esm/taro-label-core.entry.js +2 -2
  65. package/dist/esm/taro-movable-area-core.entry.js +2 -2
  66. package/dist/esm/taro-movable-view-core.entry.js +2 -2
  67. package/dist/esm/taro-navigator-core.entry.js +3 -3
  68. package/dist/esm/taro-open-data-core.entry.js +2 -2
  69. package/dist/esm/taro-picker-core_2.entry.js +37 -12
  70. package/dist/esm/taro-picker-view-column-core.entry.js +2 -2
  71. package/dist/esm/taro-picker-view-core.entry.js +2 -2
  72. package/dist/esm/taro-progress-core.entry.js +2 -2
  73. package/dist/esm/taro-pull-to-refresh.entry.js +3 -3
  74. package/dist/esm/taro-radio-core_2.entry.js +3 -3
  75. package/dist/esm/taro-rich-text-core.entry.js +2 -2
  76. package/dist/esm/taro-scroll-view-core.entry.js +3 -3
  77. package/dist/esm/taro-slider-core.entry.js +2 -2
  78. package/dist/esm/taro-swiper-core_2.entry.js +112 -106
  79. package/dist/esm/taro-switch-core.entry.js +2 -2
  80. package/dist/esm/taro-tabbar.entry.js +5 -7
  81. package/dist/esm/taro-text-core.entry.js +3 -3
  82. package/dist/esm/taro-textarea-core.entry.js +2 -2
  83. package/dist/esm/taro-video-control_3.entry.js +5 -5
  84. package/dist/esm/taro-view-core.entry.js +11 -3
  85. package/dist/esm/taro-web-view-core.entry.js +2 -2
  86. package/dist/esm-es5/index-165a6222.js +1 -0
  87. package/dist/esm-es5/{index-ff1b322a.js → index-85e10859.js} +0 -0
  88. package/dist/esm-es5/loader.js +1 -1
  89. package/dist/esm-es5/taro-audio-core.entry.js +1 -1
  90. package/dist/esm-es5/taro-block-core.entry.js +1 -1
  91. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  92. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  93. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  94. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  95. package/dist/esm-es5/taro-components.js +1 -1
  96. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
  97. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  98. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
  99. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  100. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  101. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  102. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  103. package/dist/esm-es5/taro-label-core.entry.js +1 -1
  104. package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
  105. package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
  106. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  107. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  108. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  109. package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
  110. package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
  111. package/dist/esm-es5/taro-progress-core.entry.js +1 -1
  112. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
  113. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  114. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  115. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  116. package/dist/esm-es5/taro-slider-core.entry.js +1 -1
  117. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  118. package/dist/esm-es5/taro-switch-core.entry.js +1 -1
  119. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  120. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  121. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  122. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  123. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  124. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  125. package/dist/taro-components/{p-8eb84de2.system.entry.js → p-00328ebf.system.entry.js} +1 -1
  126. package/dist/taro-components/p-016f56cc.system.entry.js +1 -0
  127. package/dist/taro-components/{p-15121391.system.entry.js → p-098f4931.system.entry.js} +1 -1
  128. package/dist/taro-components/p-0da88b1b.entry.js +1 -0
  129. package/dist/taro-components/p-0fb7f599.entry.js +1 -0
  130. package/dist/taro-components/p-1507bcbf.entry.js +1 -0
  131. package/dist/taro-components/p-17c0731f.entry.js +1 -0
  132. package/dist/taro-components/{p-9a4123eb.system.entry.js → p-1ed219a6.system.entry.js} +1 -1
  133. package/dist/taro-components/p-26c08f44.entry.js +1 -0
  134. package/dist/taro-components/{p-502841e0.system.entry.js → p-26d8c60a.system.entry.js} +1 -1
  135. package/dist/taro-components/{p-970ed6da.system.entry.js → p-2b6a2449.system.entry.js} +1 -1
  136. package/dist/taro-components/p-2c5d57af.entry.js +1 -0
  137. package/dist/taro-components/{p-239bf0ca.system.entry.js → p-2ce9bc65.system.entry.js} +1 -1
  138. package/dist/taro-components/{p-1f2dfaef.system.entry.js → p-2de1a146.system.entry.js} +1 -1
  139. package/dist/taro-components/{p-a079321f.system.entry.js → p-2eda9121.system.entry.js} +1 -1
  140. package/dist/taro-components/p-2ef4681b.system.entry.js +1 -0
  141. package/dist/taro-components/p-30bfacb9.system.js +1 -0
  142. package/dist/taro-components/{p-921a765a.system.entry.js → p-321aeeec.system.entry.js} +1 -1
  143. package/dist/taro-components/p-3554df41.entry.js +1 -0
  144. package/dist/taro-components/p-37cfef64.entry.js +1 -0
  145. package/dist/taro-components/{p-7911ccd6.system.entry.js → p-382cabbc.system.entry.js} +1 -1
  146. package/dist/taro-components/p-3e2d4793.entry.js +1 -0
  147. package/dist/taro-components/{p-e15654c4.system.entry.js → p-4168e24d.system.entry.js} +1 -1
  148. package/dist/taro-components/{p-236774f0.system.entry.js → p-4462dca4.system.entry.js} +1 -1
  149. package/dist/taro-components/{p-30c0639e.js → p-49ae5efb.js} +1 -1
  150. package/dist/taro-components/p-4a2ffc1c.entry.js +1 -0
  151. package/dist/taro-components/p-4ff67760.entry.js +1 -0
  152. package/dist/taro-components/p-5412a1d2.system.entry.js +1 -0
  153. package/dist/taro-components/{p-9242dcf7.system.entry.js → p-5a13bd63.system.entry.js} +1 -1
  154. package/dist/taro-components/{p-aed3d0e9.system.entry.js → p-5c8ba192.system.entry.js} +1 -1
  155. package/dist/taro-components/p-5d84eaf0.entry.js +1 -0
  156. package/dist/taro-components/{p-318795b9.system.entry.js → p-5e6feca6.system.entry.js} +1 -1
  157. package/dist/taro-components/{p-625158f0.js → p-6967e577.js} +0 -0
  158. package/dist/taro-components/{p-bd00f506.system.js → p-696f0d1c.system.js} +0 -0
  159. package/dist/taro-components/{p-d402dc94.system.entry.js → p-69be8189.system.entry.js} +1 -1
  160. package/dist/taro-components/p-6daacf48.entry.js +1 -0
  161. package/dist/taro-components/p-70f40e3a.entry.js +1 -0
  162. package/dist/taro-components/p-72f2b6f5.entry.js +1 -0
  163. package/dist/taro-components/p-76c00960.entry.js +1 -0
  164. package/dist/taro-components/p-7a5be745.entry.js +1 -0
  165. package/dist/taro-components/p-7b021c48.entry.js +1 -0
  166. package/dist/taro-components/p-7f3e5f09.entry.js +1 -0
  167. package/dist/taro-components/{p-c1d6c0ba.system.entry.js → p-7ffcfb05.system.entry.js} +1 -1
  168. package/dist/taro-components/p-81588c19.entry.js +1 -0
  169. package/dist/taro-components/{p-89fc30f0.entry.js → p-8cf16235.entry.js} +1 -1
  170. package/dist/taro-components/{p-4f139925.system.entry.js → p-8d905ff5.system.entry.js} +1 -1
  171. package/dist/taro-components/p-923c6e08.entry.js +1 -0
  172. package/dist/taro-components/p-93748645.system.js +1 -0
  173. package/dist/taro-components/p-9767491b.entry.js +1 -0
  174. package/dist/taro-components/{p-3eb31172.system.entry.js → p-9d6a7a70.system.entry.js} +1 -1
  175. package/dist/taro-components/{p-e3e40b03.system.entry.js → p-9e807bd6.system.entry.js} +1 -1
  176. package/dist/taro-components/p-9e912454.system.entry.js +1 -0
  177. package/dist/taro-components/{p-9c9178cd.system.entry.js → p-a34988ff.system.entry.js} +1 -1
  178. package/dist/taro-components/p-a895db87.entry.js +1 -0
  179. package/dist/taro-components/{p-9ffb69e5.system.entry.js → p-af9ec312.system.entry.js} +1 -1
  180. package/dist/taro-components/{p-0f393c6d.system.entry.js → p-b685a487.system.entry.js} +1 -1
  181. package/dist/taro-components/p-b6e0dca6.entry.js +1 -0
  182. package/dist/taro-components/{p-129341f2.system.entry.js → p-bd922592.system.entry.js} +1 -1
  183. package/dist/taro-components/{p-73c389e7.system.entry.js → p-c221cebb.system.entry.js} +1 -1
  184. package/dist/taro-components/p-c5722042.entry.js +1 -0
  185. package/dist/taro-components/p-ca67c759.entry.js +1 -0
  186. package/dist/taro-components/p-ce093936.entry.js +1 -0
  187. package/dist/taro-components/{p-4d11f3ad.system.entry.js → p-ce49e2f4.system.entry.js} +1 -1
  188. package/dist/taro-components/p-d12592f1.entry.js +1 -0
  189. package/dist/taro-components/{p-a74d5aa5.system.entry.js → p-d52009d1.system.entry.js} +1 -1
  190. package/dist/taro-components/{p-2e9e9ca7.system.entry.js → p-d52bf5f5.system.entry.js} +1 -1
  191. package/dist/taro-components/{p-81f5977d.system.entry.js → p-d6269b5e.system.entry.js} +1 -1
  192. package/dist/taro-components/p-d6a37b93.entry.js +1 -0
  193. package/dist/taro-components/p-de3a4828.entry.js +1 -0
  194. package/dist/taro-components/p-f4158e42.entry.js +1 -0
  195. package/dist/taro-components/p-f6c7f07c.system.entry.js +1 -0
  196. package/dist/taro-components/p-f7b6c1a6.entry.js +1 -0
  197. package/dist/taro-components/p-f8d0dabb.entry.js +1 -0
  198. package/dist/taro-components/p-f9013b36.system.entry.js +1 -0
  199. package/dist/taro-components/p-f991bc7b.entry.js +1 -0
  200. package/dist/taro-components/taro-components.esm.js +1 -1
  201. package/dist/taro-components/taro-components.js +1 -1
  202. package/dist/types/components/checkbox/checkbox.d.ts +1 -0
  203. package/dist/types/components/picker/picker-group.d.ts +7 -0
  204. package/dist/types/components/view/view.d.ts +2 -0
  205. package/dist/types/components.d.ts +2 -0
  206. package/dist/types/stencil-public-runtime.d.ts +190 -182
  207. package/dist-h5/react/utils/reactify-wc.js +1 -0
  208. package/loader/index.d.ts +0 -1
  209. package/package.json +5 -4
  210. package/types/Camera.d.ts +7 -7
  211. package/types/LivePusher.d.ts +51 -3
  212. package/types/Map.d.ts +11 -1
  213. package/types/PickerView.d.ts +7 -7
  214. package/types/Swiper.d.ts +2 -0
  215. package/dist/esm-es5/index-310de3d5.js +0 -1
  216. package/dist/taro-components/p-153b839d.system.entry.js +0 -1
  217. package/dist/taro-components/p-180fd001.entry.js +0 -1
  218. package/dist/taro-components/p-1925bbdb.entry.js +0 -1
  219. package/dist/taro-components/p-1f44e8ef.system.entry.js +0 -1
  220. package/dist/taro-components/p-28348261.entry.js +0 -1
  221. package/dist/taro-components/p-31b89eb3.entry.js +0 -1
  222. package/dist/taro-components/p-31f0f881.entry.js +0 -1
  223. package/dist/taro-components/p-3bda72b4.entry.js +0 -1
  224. package/dist/taro-components/p-4591dff5.entry.js +0 -1
  225. package/dist/taro-components/p-4afe24d7.entry.js +0 -1
  226. package/dist/taro-components/p-4b632069.entry.js +0 -1
  227. package/dist/taro-components/p-4f1d45ff.entry.js +0 -1
  228. package/dist/taro-components/p-5032d822.entry.js +0 -1
  229. package/dist/taro-components/p-6287057a.entry.js +0 -1
  230. package/dist/taro-components/p-66120099.entry.js +0 -1
  231. package/dist/taro-components/p-6730fa44.entry.js +0 -1
  232. package/dist/taro-components/p-6f331ed3.entry.js +0 -1
  233. package/dist/taro-components/p-8031d6b5.system.entry.js +0 -1
  234. package/dist/taro-components/p-82185d54.system.entry.js +0 -1
  235. package/dist/taro-components/p-8676c058.entry.js +0 -1
  236. package/dist/taro-components/p-906c3a0a.entry.js +0 -1
  237. package/dist/taro-components/p-9205470e.entry.js +0 -1
  238. package/dist/taro-components/p-945fa1a0.entry.js +0 -1
  239. package/dist/taro-components/p-95f5261c.entry.js +0 -1
  240. package/dist/taro-components/p-96771939.entry.js +0 -1
  241. package/dist/taro-components/p-96f1e9e7.entry.js +0 -1
  242. package/dist/taro-components/p-9c47f99e.entry.js +0 -1
  243. package/dist/taro-components/p-9fe2309f.entry.js +0 -1
  244. package/dist/taro-components/p-a208926a.entry.js +0 -1
  245. package/dist/taro-components/p-a3e783c3.entry.js +0 -1
  246. package/dist/taro-components/p-af393b0b.entry.js +0 -1
  247. package/dist/taro-components/p-b2ed71a7.entry.js +0 -1
  248. package/dist/taro-components/p-b5d2597b.system.js +0 -1
  249. package/dist/taro-components/p-b7c29d05.entry.js +0 -1
  250. package/dist/taro-components/p-c2810ece.entry.js +0 -1
  251. package/dist/taro-components/p-c37d9a5d.system.entry.js +0 -1
  252. package/dist/taro-components/p-c9380fa6.entry.js +0 -1
  253. package/dist/taro-components/p-ca74a018.entry.js +0 -1
  254. package/dist/taro-components/p-cf496b3b.system.js +0 -1
  255. package/dist/taro-components/p-e256974b.system.entry.js +0 -1
  256. package/dist/taro-components/p-e28625a2.entry.js +0 -1
  257. package/dist/taro-components/p-e302b8d7.entry.js +0 -1
@@ -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);
@@ -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,9 +203,7 @@ 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();
@@ -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,14 +2,14 @@
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-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}";
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);
@@ -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,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAGAGlUWHRYTUw6Y29tLmFkb2Jl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IPgHDEmbNJZqCFxiQEgTUGxsBUVEHgvnyrjZZJO92V1fGIaZnTPvszPszNlQ6VIjnbr/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,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGAGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHht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qXrN7Be4Fx9VztIOr1BLEtmX4A94E/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/V6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0cTIjrMFBtYQdAk4DID0BnAAz4B6wNLgTKKG0VIDBHwqitwpOcW+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);
@@ -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,
@@ -75,10 +75,15 @@ export class Input {
75
75
  };
76
76
  this.handleKeyDown = (e) => {
77
77
  const { value } = e.target;
78
+ const keyCode = e.keyCode || e.code;
78
79
  this.onInputExcuted = false;
79
80
  e.stopPropagation();
80
- this.onKeyDown.emit({ value });
81
- e.keyCode === 13 && this.onConfirm.emit({ value });
81
+ this.onKeyDown.emit({
82
+ value,
83
+ cursor: value.length,
84
+ keyCode
85
+ });
86
+ keyCode === 13 && this.onConfirm.emit({ value });
82
87
  };
83
88
  this.handleComposition = (e) => {
84
89
  if (!(e.target instanceof HTMLInputElement))
@@ -98,26 +103,28 @@ export class Input {
98
103
  }
99
104
  }
100
105
  watchFocus(newValue, oldValue) {
106
+ var _a;
101
107
  if (!oldValue && newValue) {
102
- this.inputRef.focus();
108
+ (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
103
109
  }
104
110
  }
105
111
  componentWillLoad() {
106
112
  this._value = this.value;
107
113
  }
108
114
  componentDidLoad() {
115
+ var _a, _b, _c;
109
116
  if (this.type === 'file') {
110
117
  this.fileListener = () => {
111
118
  this.onInput.emit();
112
119
  };
113
- this.inputRef.addEventListener('change', this.fileListener);
120
+ (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.addEventListener('change', this.fileListener);
114
121
  }
115
122
  else {
116
- this.inputRef.addEventListener('compositionstart', this.handleComposition);
117
- this.inputRef.addEventListener('compositionend', this.handleComposition);
123
+ (_b = this.inputRef) === null || _b === void 0 ? void 0 : _b.addEventListener('compositionstart', this.handleComposition);
124
+ (_c = this.inputRef) === null || _c === void 0 ? void 0 : _c.addEventListener('compositionend', this.handleComposition);
118
125
  }
119
126
  Object.defineProperty(this.el, 'value', {
120
- get: () => this.inputRef.value,
127
+ get: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value; },
121
128
  set: value => {
122
129
  this._value = value;
123
130
  },
@@ -125,8 +132,9 @@ export class Input {
125
132
  });
126
133
  }
127
134
  disconnectedCallback() {
135
+ var _a;
128
136
  if (this.type === 'file') {
129
- this.inputRef.removeEventListener('change', this.fileListener);
137
+ (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.removeEventListener('change', this.fileListener);
130
138
  }
131
139
  }
132
140
  render() {
@@ -30,15 +30,14 @@ export class TaroPickerGroup {
30
30
  updateHeight(relativeHeight, columnId, true);
31
31
  });
32
32
  }
33
- onTouchStart(e) {
33
+ handleMoveStart(clientY) {
34
34
  // 记录第一次的点击位置
35
- this.startY = e.changedTouches[0].clientY;
36
- this.preY = e.changedTouches[0].clientY;
35
+ this.startY = clientY;
36
+ this.preY = clientY;
37
37
  this.hadMove = false;
38
38
  }
39
- onTouchMove(e) {
40
- e.preventDefault();
41
- const y = e.changedTouches[0].clientY;
39
+ handleMoving(clientY) {
40
+ const y = clientY;
42
41
  const deltaY = y - this.preY;
43
42
  this.preY = y;
44
43
  this.touchEnd = false;
@@ -67,11 +66,11 @@ export class TaroPickerGroup {
67
66
  }
68
67
  this.updateHeight(newPos, this.columnId);
69
68
  }
70
- onTouchEnd(e) {
69
+ handleMoveEnd(clientY) {
71
70
  const { mode, range, height, updateHeight, onColumnChange, columnId } = this;
72
71
  const max = 0;
73
72
  const min = -LINE_HEIGHT * (range.length - 1);
74
- const endY = e.changedTouches[0].clientY;
73
+ const endY = clientY;
75
74
  this.touchEnd = true;
76
75
  // touchEnd 时的高度,可能带小数点,需要再处理
77
76
  let absoluteHeight;
@@ -133,6 +132,32 @@ export class TaroPickerGroup {
133
132
  updateHeight(relativeHeight, columnId, mode === 'time');
134
133
  onColumnChange && onColumnChange(relativeHeight, columnId);
135
134
  }
135
+ onMouseDown(e) {
136
+ this.isMove = true;
137
+ this.handleMoveStart(e.clientY);
138
+ }
139
+ onMouseMove(e) {
140
+ e.preventDefault();
141
+ if (!this.isMove)
142
+ return;
143
+ this.handleMoving(e.clientY);
144
+ }
145
+ onMouseMoveEnd(e) {
146
+ if (!this.isMove)
147
+ return;
148
+ this.isMove = false;
149
+ this.handleMoveEnd(e.clientY);
150
+ }
151
+ onTouchStart(e) {
152
+ this.handleMoveStart(e.changedTouches[0].clientY);
153
+ }
154
+ onTouchMove(e) {
155
+ e.preventDefault();
156
+ this.handleMoving(e.changedTouches[0].clientY);
157
+ }
158
+ onTouchEnd(e) {
159
+ this.handleMoveEnd(e.changedTouches[0].clientY);
160
+ }
136
161
  render() {
137
162
  const { range, rangeKey } = this;
138
163
  const pickerItem = range.map(item => {
@@ -280,9 +305,34 @@ export class TaroPickerGroup {
280
305
  "startY": {},
281
306
  "preY": {},
282
307
  "hadMove": {},
283
- "touchEnd": {}
308
+ "touchEnd": {},
309
+ "isMove": {}
284
310
  }; }
285
311
  static get listeners() { return [{
312
+ "name": "mousedown",
313
+ "method": "onMouseDown",
314
+ "target": undefined,
315
+ "capture": false,
316
+ "passive": true
317
+ }, {
318
+ "name": "mousemove",
319
+ "method": "onMouseMove",
320
+ "target": undefined,
321
+ "capture": false,
322
+ "passive": true
323
+ }, {
324
+ "name": "mouseup",
325
+ "method": "onMouseMoveEnd",
326
+ "target": undefined,
327
+ "capture": false,
328
+ "passive": true
329
+ }, {
330
+ "name": "mouseleave",
331
+ "method": "onMouseMoveEnd",
332
+ "target": undefined,
333
+ "capture": false,
334
+ "passive": true
335
+ }, {
286
336
  "name": "touchstart",
287
337
  "method": "onTouchStart",
288
338
  "target": undefined,
@@ -204,7 +204,13 @@ export class Swiper {
204
204
  that.current = this.realIndex;
205
205
  },
206
206
  // slideChange 事件在 swiper.slideTo 改写 current 时不触发,因此用 slideChangeTransitionEnd 事件代替
207
- slideChangeTransitionEnd() {
207
+ slideChangeTransitionEnd(_swiper) {
208
+ if (circular) {
209
+ if (_swiper.isBeginning || _swiper.isEnd) {
210
+ _swiper.slideToLoop(this.realIndex, 0); // 更新下标
211
+ return;
212
+ }
213
+ }
208
214
  that.onChange.emit({
209
215
  current: this.realIndex,
210
216
  source: ''
@@ -44,7 +44,7 @@ export class Tabbar {
44
44
  };
45
45
  this.switchTab = (index) => {
46
46
  this.selectedIndex = index;
47
- Taro.navigateTo({
47
+ Taro.switchTab({
48
48
  url: this.list[index].pagePath
49
49
  });
50
50
  };
@@ -72,9 +72,7 @@ export class Tabbar {
72
72
  }
73
73
  if (toLocation && toLocation.path) {
74
74
  const tmpPath = addLeadingSlash(toLocation.path);
75
- currentPage = tmpPath === '/'
76
- ? this.homePage
77
- : tmpPath;
75
+ currentPage = stripBasename(tmpPath === '/' ? this.homePage : tmpPath, this.conf.basename || '/');
78
76
  }
79
77
  else {
80
78
  currentPage = this.getCurrentUrl();
@@ -1,5 +1,5 @@
1
1
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
- import { Component, Prop, h, Host, Listen, State, Event } from '@stencil/core';
2
+ import { Component, Prop, h, Host, Listen, State, Event, Element } from '@stencil/core';
3
3
  import classNames from 'classnames';
4
4
  export class View {
5
5
  constructor() {
@@ -40,6 +40,13 @@ export class View {
40
40
  }, this.hoverStayTime);
41
41
  }
42
42
  }
43
+ componentDidRender() {
44
+ const el = this.el;
45
+ el.childNodes.forEach(item => {
46
+ if (item.nodeType === document.COMMENT_NODE)
47
+ el.removeChild(item);
48
+ });
49
+ }
43
50
  render() {
44
51
  const cls = classNames({
45
52
  [`${this.hoverClass}`]: this.hover
@@ -151,6 +158,7 @@ export class View {
151
158
  "references": {}
152
159
  }
153
160
  }]; }
161
+ static get elementRef() { return "el"; }
154
162
  static get listeners() { return [{
155
163
  "name": "touchstart",
156
164
  "method": "onTouchStart",