@tarojs/components 3.4.5 → 3.4.8

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 (184) hide show
  1. package/dist/cjs/index-47a1959e.js +34 -0
  2. package/dist/{esm/index-3c78bcaf.js → cjs/index-dffbd352.js} +12 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/taro-button-core.cjs.entry.js +2 -2
  5. package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
  6. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
  7. package/dist/cjs/taro-components.cjs.js +1 -1
  8. package/dist/cjs/taro-cover-view-core.cjs.entry.js +1 -1
  9. package/dist/cjs/taro-icon-core.cjs.entry.js +1 -1
  10. package/dist/cjs/taro-image-core.cjs.entry.js +2 -2
  11. package/dist/cjs/taro-input-core.cjs.entry.js +1 -1
  12. package/dist/cjs/taro-navigator-core.cjs.entry.js +3 -3
  13. package/dist/cjs/taro-picker-core_2.cjs.entry.js +1 -1
  14. package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +79 -3
  15. package/dist/cjs/taro-picker-view-core.cjs.entry.js +71 -2
  16. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +2 -2
  17. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +5 -13
  18. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +5 -13
  19. package/dist/cjs/taro-tabbar.cjs.entry.js +24 -24
  20. package/dist/cjs/taro-text-core.cjs.entry.js +2 -2
  21. package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
  22. package/dist/cjs/taro-video-control_3.cjs.entry.js +27859 -221
  23. package/dist/cjs/taro-view-core.cjs.entry.js +2 -2
  24. package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
  25. package/dist/collection/components/button/style/index.css +49 -49
  26. package/dist/collection/components/canvas/canvas.js +1 -1
  27. package/dist/collection/components/canvas/style/index.css +6 -6
  28. package/dist/collection/components/checkbox/style/index.css +21 -22
  29. package/dist/collection/components/image/style/index.css +4 -4
  30. package/dist/collection/components/input/index.css +2 -2
  31. package/dist/collection/components/navigator/navigator.js +2 -2
  32. package/dist/collection/components/navigator/{navigator.css → style/index.css} +3 -3
  33. package/dist/collection/components/picker/style/index.css +2 -1
  34. package/dist/collection/components/picker-view/picker-view-column.js +218 -4
  35. package/dist/collection/components/picker-view/picker-view.js +217 -3
  36. package/dist/collection/components/picker-view/style/column.css +12 -0
  37. package/dist/collection/components/picker-view/style/index.css +28 -0
  38. package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +1 -1
  39. package/dist/collection/components/pull-to-refresh/style/index.css +53 -50
  40. package/dist/collection/components/scroll-view/scroll-view.js +3 -11
  41. package/dist/collection/components/swiper/swiper.js +2 -10
  42. package/dist/collection/components/tabbar/style/index.css +7 -6
  43. package/dist/collection/components/text/style/index.css +0 -6
  44. package/dist/collection/components/textarea/style/index.css +5 -5
  45. package/dist/collection/components/video/style/index.css +89 -109
  46. package/dist/collection/components/video/utils.js +96 -109
  47. package/dist/collection/components/video/video-control.js +6 -6
  48. package/dist/collection/components/video/video.js +48 -7
  49. package/dist/collection/components/view/style/index.css +3 -5
  50. package/dist/collection/components/web-view/style/index.css +1 -1
  51. package/dist/collection/utils/index.js +23 -83
  52. package/dist/collection/utils/style.js +10 -0
  53. package/dist/collection/utils/url.js +67 -0
  54. package/dist/esm/index-cad8203e.js +31 -0
  55. package/dist/{cjs/index-b9715722.js → esm/index-cd1a2d33.js} +6 -2
  56. package/dist/esm/loader.js +1 -1
  57. package/dist/esm/taro-button-core.entry.js +2 -2
  58. package/dist/esm/taro-canvas-core.entry.js +1 -1
  59. package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
  60. package/dist/esm/taro-components.js +1 -1
  61. package/dist/esm/taro-cover-view-core.entry.js +1 -1
  62. package/dist/esm/taro-icon-core.entry.js +1 -1
  63. package/dist/esm/taro-image-core.entry.js +2 -2
  64. package/dist/esm/taro-input-core.entry.js +1 -1
  65. package/dist/esm/taro-navigator-core.entry.js +3 -3
  66. package/dist/esm/taro-picker-core_2.entry.js +1 -1
  67. package/dist/esm/taro-picker-view-column-core.entry.js +80 -4
  68. package/dist/esm/taro-picker-view-core.entry.js +72 -3
  69. package/dist/esm/taro-pull-to-refresh.entry.js +2 -2
  70. package/dist/esm/taro-scroll-view-core.entry.js +4 -12
  71. package/dist/esm/taro-swiper-core_2.entry.js +2 -10
  72. package/dist/esm/taro-tabbar.entry.js +24 -24
  73. package/dist/esm/taro-text-core.entry.js +2 -2
  74. package/dist/esm/taro-textarea-core.entry.js +1 -1
  75. package/dist/esm/taro-video-control_3.entry.js +27858 -220
  76. package/dist/esm/taro-view-core.entry.js +2 -2
  77. package/dist/esm/taro-web-view-core.entry.js +1 -1
  78. package/dist/esm-es5/index-cad8203e.js +1 -0
  79. package/dist/esm-es5/index-cd1a2d33.js +7 -0
  80. package/dist/esm-es5/loader.js +1 -1
  81. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  82. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  83. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  84. package/dist/esm-es5/taro-components.js +1 -1
  85. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  86. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  87. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  88. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  89. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  90. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  91. package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
  92. package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
  93. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
  94. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  95. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  96. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  97. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  98. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  99. package/dist/esm-es5/taro-video-control_3.entry.js +365 -1
  100. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  101. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  102. package/dist/taro-components/p-00089605.entry.js +365 -0
  103. package/dist/taro-components/{p-293531af.system.entry.js → p-03eb37e5.system.entry.js} +1 -1
  104. package/dist/taro-components/{p-4dbed323.entry.js → p-07062966.entry.js} +1 -1
  105. package/dist/taro-components/{p-9fc88fc1.system.entry.js → p-0c18bd18.system.entry.js} +1 -1
  106. package/dist/taro-components/{p-71e14298.entry.js → p-26bdffd7.entry.js} +1 -1
  107. package/dist/taro-components/{p-fc4939c6.system.entry.js → p-288b38f9.system.entry.js} +1 -1
  108. package/dist/taro-components/p-2d066d28.entry.js +1 -0
  109. package/dist/taro-components/{p-2d2f8064.entry.js → p-33c5efb5.entry.js} +1 -1
  110. package/dist/taro-components/p-33ee636a.system.js +1 -1
  111. package/dist/taro-components/p-3593c5f1.system.entry.js +1 -0
  112. package/dist/taro-components/p-3aad572a.system.entry.js +1 -0
  113. package/dist/taro-components/{p-fe156231.system.entry.js → p-3fa99b92.system.entry.js} +1 -1
  114. package/dist/taro-components/{p-74540410.entry.js → p-42eb4f16.entry.js} +1 -1
  115. package/dist/taro-components/{p-d567b95e.entry.js → p-431080b8.entry.js} +1 -1
  116. package/dist/taro-components/{p-17039974.system.entry.js → p-50be38a1.system.entry.js} +1 -1
  117. package/dist/taro-components/p-51401bdc.entry.js +1 -0
  118. package/dist/taro-components/p-5746d7ce.js +1 -0
  119. package/dist/taro-components/{p-2b0d5c90.system.entry.js → p-58623cdd.system.entry.js} +1 -1
  120. package/dist/taro-components/{p-d041b413.entry.js → p-5c6aeb55.entry.js} +1 -1
  121. package/dist/taro-components/p-5f4d0d5b.system.js +7 -0
  122. package/dist/taro-components/p-61c0caae.entry.js +1 -0
  123. package/dist/taro-components/p-663d1bb9.system.js +1 -0
  124. package/dist/taro-components/{p-865c21b5.entry.js → p-668a6262.entry.js} +1 -1
  125. package/dist/taro-components/p-6c211370.system.entry.js +1 -0
  126. package/dist/taro-components/p-7e5d2d7a.js +7 -0
  127. package/dist/taro-components/p-7fdd59f0.entry.js +1 -0
  128. package/dist/taro-components/{p-99ed3ed2.system.entry.js → p-8bea1c4d.system.entry.js} +1 -1
  129. package/dist/taro-components/{p-fd8312e5.system.entry.js → p-8e0150eb.system.entry.js} +1 -1
  130. package/dist/taro-components/p-92a31933.system.entry.js +1 -0
  131. package/dist/taro-components/p-a05d66d1.system.entry.js +1 -0
  132. package/dist/taro-components/p-aae3e479.entry.js +1 -0
  133. package/dist/taro-components/p-b0bd2cf1.system.entry.js +1 -0
  134. package/dist/taro-components/{p-17cf8b5b.entry.js → p-b93ca09d.entry.js} +1 -1
  135. package/dist/taro-components/{p-5ae86835.system.entry.js → p-bc97b854.system.entry.js} +1 -1
  136. package/dist/taro-components/p-c06f1610.system.entry.js +1 -0
  137. package/dist/taro-components/p-cd2af8b4.entry.js +1 -0
  138. package/dist/taro-components/{p-8bc82aaa.entry.js → p-d0c608a8.entry.js} +1 -1
  139. package/dist/taro-components/p-d19aeb27.entry.js +1 -0
  140. package/dist/taro-components/p-e3c9421d.entry.js +1 -0
  141. package/dist/taro-components/p-e61d2113.system.entry.js +1 -0
  142. package/dist/taro-components/{p-98b47fc9.system.entry.js → p-ed3bf934.system.entry.js} +1 -1
  143. package/dist/taro-components/{p-1c1336f5.entry.js → p-edcb9726.entry.js} +1 -1
  144. package/dist/taro-components/{p-4e54216b.entry.js → p-f5fe8711.entry.js} +1 -1
  145. package/dist/taro-components/p-fbd45c24.system.entry.js +1 -0
  146. package/dist/taro-components/p-ff032a23.system.entry.js +365 -0
  147. package/dist/taro-components/taro-components.esm.js +1 -1
  148. package/dist/types/components/picker-view/picker-view-column.d.ts +15 -1
  149. package/dist/types/components/picker-view/picker-view.d.ts +24 -0
  150. package/dist/types/components/scroll-view/scroll-view.d.ts +1 -1
  151. package/dist/types/components/swiper/swiper.d.ts +2 -2
  152. package/dist/types/components/video/utils.d.ts +8 -0
  153. package/dist/types/components/video/video-control.d.ts +1 -1
  154. package/dist/types/components.d.ts +22 -0
  155. package/dist/types/utils/index.d.ts +4 -8
  156. package/dist/types/utils/style.d.ts +1 -0
  157. package/dist/types/utils/url.d.ts +6 -0
  158. package/package.json +4 -3
  159. package/types/Input.d.ts +5 -4
  160. package/types/PickerViewColumn.d.ts +2 -2
  161. package/types/Video.d.ts +1 -1
  162. package/types/index.vue3.d.ts +159 -0
  163. package/dist/esm-es5/index-3c78bcaf.js +0 -7
  164. package/dist/taro-components/p-11932905.entry.js +0 -1
  165. package/dist/taro-components/p-32937866.entry.js +0 -1
  166. package/dist/taro-components/p-37cfdd8f.js +0 -7
  167. package/dist/taro-components/p-431197bc.entry.js +0 -1
  168. package/dist/taro-components/p-43de2f12.system.entry.js +0 -1
  169. package/dist/taro-components/p-50066d5e.system.entry.js +0 -1
  170. package/dist/taro-components/p-5c420456.entry.js +0 -1
  171. package/dist/taro-components/p-6de12779.entry.js +0 -1
  172. package/dist/taro-components/p-83dedaa2.entry.js +0 -1
  173. package/dist/taro-components/p-8486c251.system.entry.js +0 -1
  174. package/dist/taro-components/p-94c20f60.system.js +0 -7
  175. package/dist/taro-components/p-95529dc0.entry.js +0 -1
  176. package/dist/taro-components/p-b15d0302.system.entry.js +0 -1
  177. package/dist/taro-components/p-b32442fc.system.entry.js +0 -1
  178. package/dist/taro-components/p-cc818a13.entry.js +0 -1
  179. package/dist/taro-components/p-d394a61f.system.entry.js +0 -1
  180. package/dist/taro-components/p-d5971476.entry.js +0 -1
  181. package/dist/taro-components/p-e0af1d0d.system.entry.js +0 -1
  182. package/dist/taro-components/p-fb2252b7.system.entry.js +0 -1
  183. package/dist/taro-components/p-fd0d1168.system.entry.js +0 -1
  184. package/dist/taro-components/p-fde3a009.system.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-5bd7cbab.js';
2
2
 
3
- const indexCss = "taro-input-core{display:block}input{display:block;height:1.4rem;text-align:inherit;text-overflow:clip;overflow:hidden;white-space:nowrap}";
3
+ const indexCss = "taro-input-core{display:block}input{display:block;overflow:hidden;height:1.4rem;text-overflow:clip;text-align:inherit;white-space:nowrap}";
4
4
 
5
5
  function getTrueType(type, confirmType, password) {
6
6
  if (confirmType === 'search')
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-5bd7cbab.js';
2
2
  import Taro from '@tarojs/taro';
3
- import { c as classnames } from './index-3c78bcaf.js';
3
+ import { c as classnames } from './index-cd1a2d33.js';
4
4
 
5
- const navigatorCss = ".navigator-hover{background:#efefef}";
5
+ const indexCss = ".navigator-hover{background:#efefef}";
6
6
 
7
7
  let Navigator = class {
8
8
  constructor(hostRef) {
@@ -64,6 +64,6 @@ let Navigator = class {
64
64
  }) }));
65
65
  }
66
66
  };
67
- Navigator.style = navigatorCss;
67
+ Navigator.style = indexCss;
68
68
 
69
69
  export { Navigator as taro_navigator_core };
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5bd7cbab.js';
2
- import { c as classnames } from './index-3c78bcaf.js';
2
+ import { c as classnames } from './index-cd1a2d33.js';
3
3
 
4
4
  function getTimeRange(begin, end) {
5
5
  const range = [];
@@ -1,15 +1,91 @@
1
- import { r as registerInstance, h, H as Host } from './index-5bd7cbab.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-5bd7cbab.js';
2
+ import { d as debounce } from './index-cad8203e.js';
3
+
4
+ const columnCss = ".taro-picker-view-column-container{display:-ms-flexbox;display:flex;overflow:scroll;overflow-x:hidden;position:relative;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;text-align:center}.taro-picker-view-column-container::-webkit-scrollbar{display:none}";
2
5
 
3
6
  let PickerViewColumn = class {
4
7
  constructor(hostRef) {
5
8
  registerInstance(this, hostRef);
9
+ this.onChange = createEvent(this, "onselect", 7);
10
+ this.onSelectStart = createEvent(this, "onselectstart", 7);
11
+ this.onSelectEnd = createEvent(this, "onselectend", 7);
12
+ // 初始化的选中位置
13
+ this.initialPosition = '0';
14
+ // 滑动距离上下留白区域-通过父视图和 indicator 计算而来
15
+ this.paddingVertical = 0;
16
+ this.isInit = false;
17
+ this.isMove = false;
18
+ // 滚动结束自动回到合适的位置
19
+ this.handleSelected = debounce(() => {
20
+ const childList = this.el.childNodes;
21
+ let sum = 0;
22
+ let selectedIndex = '0';
23
+ for (const index in childList) {
24
+ const item = childList[index];
25
+ const itemHeight = item.offsetHeight;
26
+ if (sum + itemHeight / 2.0 > this.el.scrollTop) {
27
+ selectedIndex = index;
28
+ break;
29
+ }
30
+ sum += itemHeight;
31
+ }
32
+ this.el.scrollTo({
33
+ top: sum,
34
+ behavior: 'smooth'
35
+ });
36
+ this.onChange.emit({
37
+ curIndex: this.col,
38
+ selectedIndex: selectedIndex
39
+ });
40
+ this.onSelectEnd.emit();
41
+ }, 500);
42
+ }
43
+ onScroll(_event) {
44
+ if (!this.isMove) {
45
+ this.isMove = true;
46
+ this.onSelectStart.emit();
47
+ }
48
+ this.handleSelected();
49
+ }
50
+ onMouseEnd() {
51
+ if (!this.isMove)
52
+ return;
53
+ this.isMove = false;
54
+ this.handleSelected();
55
+ }
56
+ onTouchEnd() {
57
+ this.isMove = false;
58
+ this.handleSelected();
6
59
  }
7
- componentDidLoad() {
8
- console.error('H5 暂不支持 PickerViewColumn 组件!');
60
+ componentDidUpdate() {
61
+ if (!this.isInit) {
62
+ this.isInit = true;
63
+ const childList = this.el.childNodes;
64
+ let idx = 0;
65
+ let sum = 0;
66
+ for (const index in childList) {
67
+ const item = childList[index];
68
+ if (this.initialPosition === index || !item || typeof item.offsetHeight !== 'number') {
69
+ break;
70
+ }
71
+ sum += item.offsetHeight;
72
+ idx++;
73
+ }
74
+ this.el.scrollTo({ top: sum });
75
+ if (idx >= childList.length) {
76
+ this.onChange.emit({
77
+ curIndex: this.col,
78
+ selectedIndex: idx - 1
79
+ });
80
+ }
81
+ }
9
82
  }
10
83
  render() {
11
- return (h(Host, null));
84
+ const { paddingVertical = 0 } = this;
85
+ return (h(Host, { class: "taro-picker-view-column-container", style: { 'padding-top': `${paddingVertical}px`, 'padding-bottom': `${paddingVertical}px` } }));
12
86
  }
87
+ get el() { return getElement(this); }
13
88
  };
89
+ PickerViewColumn.style = columnCss;
14
90
 
15
91
  export { PickerViewColumn as taro_picker_view_column_core };
@@ -1,15 +1,84 @@
1
- import { r as registerInstance, h, H as Host } from './index-5bd7cbab.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5bd7cbab.js';
2
+ import { c as classnames } from './index-cd1a2d33.js';
3
+
4
+ function convertStyle(style) {
5
+ if (style) {
6
+ const regex = /([\w-]*)\s*:\s*([^;]*)/g;
7
+ const properties = {};
8
+ let match;
9
+ while ((match = regex.exec(style)))
10
+ properties[`${match[1]}`] = match[2].trim();
11
+ return properties;
12
+ }
13
+ }
14
+
15
+ const indexCss = ".taro-picker-view-container{display:-ms-flexbox;display:flex;position:relative}.taro-picker-view-mask-container{display:-ms-flexbox;display:flex;position:absolute;left:0;right:0;top:0;bottom:0;-ms-flex-direction:column;flex-direction:column;pointer-events:none}.taro-picker-view-mask-indicator{display:-ms-flexbox;display:flex;border-top:1px solid #ddd;border-bottom:1px solid #ddd;height:50px}.taro-picker-view-mask-top{-ms-flex:1;flex:1;background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.95)), to(rgba(255, 255, 255, 0.6)));background-image:linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6))}.taro-picker-view-mask-bottom{-ms-flex:1;flex:1;background:-webkit-gradient(linear, left bottom, left top, from(rgba(255, 255, 255, 0.95)), to(rgba(255, 255, 255, 0.6)));background:linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6))}";
2
16
 
3
17
  let PickerView = class {
4
18
  constructor(hostRef) {
5
19
  registerInstance(this, hostRef);
20
+ this.onChange = createEvent(this, "change", 7);
21
+ this.onPickStart = createEvent(this, "pickstart", 7);
22
+ this.onPickEnd = createEvent(this, "pickend", 7);
23
+ }
24
+ onSelect(e) {
25
+ e.stopPropagation();
26
+ if (e.target.tagName !== 'TARO-PICKER-VIEW-COLUMN-CORE')
27
+ return;
28
+ let _curIndex = +e.detail.curIndex;
29
+ let _selectedIndex = +e.detail.selectedIndex;
30
+ this.value[_curIndex] = _selectedIndex;
31
+ this.onChange.emit({ value: this.value });
32
+ }
33
+ onSelectStart(e) {
34
+ e.stopPropagation();
35
+ if (e.target.tagName !== 'TARO-PICKER-VIEW-COLUMN-CORE')
36
+ return;
37
+ this.onPickStart.emit();
38
+ }
39
+ onPickerColEnd(e) {
40
+ e.stopPropagation();
41
+ if (e.target.tagName !== 'TARO-PICKER-VIEW-COLUMN-CORE')
42
+ return;
43
+ this.onPickEnd.emit();
6
44
  }
7
45
  componentDidLoad() {
8
- console.error('H5 暂不支持 PickerView 组件!');
46
+ const childList = this.el.querySelectorAll('taro-picker-view-column-core');
47
+ childList.forEach((element, index) => {
48
+ var _a;
49
+ element.setAttribute('col', `${index}`);
50
+ let selectIndex = '0';
51
+ if (!!this.value && this.value.length > index) {
52
+ selectIndex = `${this.value[index]}`;
53
+ }
54
+ const pickerHeight = this.el.getBoundingClientRect().height;
55
+ const indicatorHeight = ((_a = this.indicator) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0;
56
+ const paddingVertical = (pickerHeight - indicatorHeight) / 2.0;
57
+ element.setAttribute('initial-position', `${selectIndex}`);
58
+ element.setAttribute('padding-vertical', `${paddingVertical}`);
59
+ });
60
+ }
61
+ // 过滤非 PickerViewColumn 组件
62
+ componentDidRender() {
63
+ this.el.childNodes.forEach(item => {
64
+ const childEle = item;
65
+ if ('TARO-PICKER-VIEW-COLUMN-CORE' !== childEle.tagName &&
66
+ childEle.className !== 'taro-picker-view-mask-container') {
67
+ this.el.removeChild(item);
68
+ }
69
+ });
9
70
  }
10
71
  render() {
11
- return (h(Host, null));
72
+ const indicatorCls = classnames('taro-picker-view-mask-indicator', this.indicatorClass);
73
+ const maskTopCls = classnames('taro-picker-view-mask-top', this.maskClass);
74
+ const maskBtmCls = classnames('taro-picker-view-mask-bottom', this.maskClass);
75
+ const indicatorStyle = convertStyle(this.indicatorStyle);
76
+ const maskTopStyle = convertStyle(this.maskStyle);
77
+ const maskBottomStyle = convertStyle(this.maskStyle);
78
+ return (h(Host, { class: "taro-picker-view-container" }, h("slot", null), h("div", { class: "taro-picker-view-mask-container" }, h("div", { class: maskTopCls, style: maskTopStyle }), h("div", { class: indicatorCls, style: indicatorStyle, ref: indicator => (this.indicator = indicator) }), h("div", { class: maskBtmCls, style: maskBottomStyle }))));
12
79
  }
80
+ get el() { return getElement(this); }
13
81
  };
82
+ PickerView.style = indexCss;
14
83
 
15
84
  export { PickerView as taro_picker_view_core };
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5bd7cbab.js';
2
2
  import Taro from '@tarojs/taro';
3
- import { c as classnames } from './index-3c78bcaf.js';
3
+ import { c as classnames } from './index-cd1a2d33.js';
4
4
 
5
- const indexCss = ".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0px;transform-origin:left top 0px}.rmc-pull-to-refresh-content-wrapper{overflow:hidden;min-height:100vh}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform 0.3s;transition:-webkit-transform 0.3s;transition:transform 0.3s;transition:transform 0.3s, -webkit-transform 0.3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}.rmc-pull-to-refresh-indicator{text-align:center;height:30px;line-height:10px}.rmc-pull-to-refresh-indicator>div{background-color:grey;width:6px;height:6px;border-radius:100%;margin:3px;-webkit-animation-fill-mode:both;animation-fill-mode:both;display:inline-block;-webkit-animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-0.1s !important;animation-delay:-0.1s !important}.rmc-pull-to-refresh-indicator>div:nth-child(1){-webkit-animation-delay:-0.2s !important;animation-delay:-0.2s !important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-0.3s !important;animation-delay:-0.3s !important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";
5
+ const indexCss = ".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0;transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{overflow:hidden;min-height:100vh}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform 0.3s;transition:-webkit-transform 0.3s;transition:transform 0.3s;transition:transform 0.3s, -webkit-transform 0.3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}.rmc-pull-to-refresh-indicator{height:30px;line-height:10px;text-align:center}.rmc-pull-to-refresh-indicator>div{display:inline-block;margin:3px;border-radius:100%;width:6px;height:6px;background-color:grey;-webkit-animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;-webkit-animation-fill-mode:both;animation-fill-mode:both}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-0.1s !important;animation-delay:-0.1s !important}.rmc-pull-to-refresh-indicator>div:nth-child(1){-webkit-animation-delay:-0.2s !important;animation-delay:-0.2s !important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-0.3s !important;animation-delay:-0.3s !important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";
6
6
 
7
7
  function setTransform(nodeStyle, value) {
8
8
  nodeStyle.transform = value;
@@ -1,5 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5bd7cbab.js';
2
- import { c as classnames } from './index-3c78bcaf.js';
2
+ import { c as classnames } from './index-cd1a2d33.js';
3
+ import { d as debounce } from './index-cad8203e.js';
3
4
 
4
5
  const indexCss = "taro-scroll-view-core{display:block;width:100%;-webkit-overflow-scrolling:auto}taro-scroll-view-core::-webkit-scrollbar{display:none}.taro-scroll-view__scroll-x{overflow-x:scroll;overflow-y:hidden}.taro-scroll-view__scroll-y{overflow-x:hidden;overflow-y:scroll}";
5
6
 
@@ -25,15 +26,6 @@ function easeOutScroll(from, to, callback) {
25
26
  }
26
27
  step();
27
28
  }
28
- function debounce(fn, delay) {
29
- let timer;
30
- return function (...arrs) {
31
- clearTimeout(timer);
32
- timer = setTimeout(function () {
33
- fn(...arrs);
34
- }, delay);
35
- };
36
- }
37
29
  let ScrollView = class {
38
30
  constructor(hostRef) {
39
31
  registerInstance(this, hostRef);
@@ -51,7 +43,7 @@ let ScrollView = class {
51
43
  const { scrollLeft, scrollTop, scrollHeight, scrollWidth } = this.el;
52
44
  this._scrollLeft = scrollLeft;
53
45
  this._scrollTop = scrollTop;
54
- this.uperAndLower();
46
+ this.upperAndLower();
55
47
  this.onScroll.emit({
56
48
  scrollLeft,
57
49
  scrollTop,
@@ -59,7 +51,7 @@ let ScrollView = class {
59
51
  scrollWidth
60
52
  });
61
53
  };
62
- this.uperAndLower = debounce(() => {
54
+ this.upperAndLower = debounce(() => {
63
55
  const { offsetWidth, offsetHeight, scrollLeft, scrollTop, scrollHeight, scrollWidth } = this.el;
64
56
  const lowerThreshold = Number(this.lowerThreshold);
65
57
  const upperThreshold = Number(this.upperThreshold);
@@ -1,5 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5bd7cbab.js';
2
- import { c as classnames } from './index-3c78bcaf.js';
2
+ import { c as classnames } from './index-cd1a2d33.js';
3
+ import { d as debounce } from './index-cad8203e.js';
3
4
 
4
5
  /**
5
6
  * SSR Window 3.0.0
@@ -10143,15 +10144,6 @@ let Swiper = class {
10143
10144
  "circular": ["watchCircular"]
10144
10145
  }; }
10145
10146
  };
10146
- function debounce(fn, delay) {
10147
- let timer;
10148
- return function (...arrs) {
10149
- clearTimeout(timer);
10150
- timer = setTimeout(function () {
10151
- fn(...arrs);
10152
- }, delay);
10153
- };
10154
- }
10155
10147
  Swiper.style = indexCss;
10156
10148
 
10157
10149
  let SwiperItem = class {
@@ -1,6 +1,28 @@
1
1
  import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-5bd7cbab.js';
2
2
  import Taro from '@tarojs/taro';
3
- import { c as classnames } from './index-3c78bcaf.js';
3
+ import { c as classnames } from './index-cd1a2d33.js';
4
+
5
+ const splitUrl = _url => {
6
+ let url = _url || '';
7
+ let pos;
8
+ const res = {
9
+ path: null,
10
+ query: null,
11
+ fragment: null
12
+ };
13
+ pos = url.indexOf('#');
14
+ if (pos > -1) {
15
+ res.fragment = url.substring(pos + 1);
16
+ url = url.substring(0, pos);
17
+ }
18
+ pos = url.indexOf('?');
19
+ if (pos > -1) {
20
+ res.query = url.substring(pos + 1);
21
+ url = url.substring(0, pos);
22
+ }
23
+ res.path = url;
24
+ return res;
25
+ };
4
26
 
5
27
  function isAbsolute(pathname) {
6
28
  return pathname.charAt(0) === '/';
@@ -76,28 +98,6 @@ function resolvePathname(to, from) {
76
98
  return result;
77
99
  }
78
100
 
79
- const splitUrl = _url => {
80
- let url = _url || '';
81
- let pos;
82
- const res = {
83
- path: null,
84
- query: null,
85
- fragment: null
86
- };
87
- pos = url.indexOf('#');
88
- if (pos > -1) {
89
- res.fragment = url.substring(pos + 1);
90
- url = url.substring(0, pos);
91
- }
92
- pos = url.indexOf('?');
93
- if (pos > -1) {
94
- res.query = url.substring(pos + 1);
95
- url = url.substring(0, pos);
96
- }
97
- res.path = url;
98
- return res;
99
- };
100
-
101
101
  const TabbarItem = ({ index, isSelected = false, textColor, iconPath, badgeText, showRedDot = false, text, onSelect }) => {
102
102
  const className = classnames('weui-tabbar__item', {
103
103
  'weui-bar__item_on': isSelected
@@ -123,7 +123,7 @@ const TabbarItem = ({ index, isSelected = false, textColor, iconPath, badgeText,
123
123
  h("p", { class: 'weui-tabbar__label', style: { color: textColor } }, text)));
124
124
  };
125
125
 
126
- const indexCss = "html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;height:100%;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.taro-tabbar__panel{-ms-flex:1;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:auto}.taro-tabbar__tabbar{position:relative;height:50px;width:100%;-webkit-transition:bottom 0.2s, top 0.2s;transition:bottom 0.2s, top 0.2s}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{bottom:0;margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom)}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{top:-52px;-ms-flex:0 0;flex:0 0}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";
126
+ const indexCss = "html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column;height:100%}.taro-tabbar__panel{overflow:auto;position:relative;-ms-flex:1;flex:1;-webkit-overflow-scrolling:auto}.taro-tabbar__tabbar{position:relative;width:100%;height:50px;-webkit-transition:bottom 0.2s, top 0.2s;transition:bottom 0.2s, top 0.2s}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{bottom:0;margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom)}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{top:-52px;-ms-flex:0 0;flex:0 0}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";
127
127
 
128
128
  // const removeLeadingSlash = str => str.replace(/^\.?\//, '')
129
129
  // const removeTrailingSearch = str => str.replace(/\?[\s\S]*$/, '')
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-5bd7cbab.js';
2
- import { c as classnames } from './index-3c78bcaf.js';
2
+ import { c as classnames } from './index-cd1a2d33.js';
3
3
 
4
- 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}";
4
+ const indexCss = "taro-text-core{display:inline;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:pre-wrap}.taro-text__selectable{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}";
5
5
 
6
6
  let Text = class {
7
7
  constructor(hostRef) {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-5bd7cbab.js';
2
2
 
3
- 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}";
3
+ const indexCss = "taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:150px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;line-height:1.5}.taro-textarea:focus{outline:none}";
4
4
 
5
5
  function fixControlledValue(value) {
6
6
  return value !== null && value !== void 0 ? value : '';