@nutui/nutui-react-taro 2.0.4 → 2.0.5

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 (205) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/esm/ActionSheet.js +3 -3
  3. package/dist/esm/Address.js +8 -8
  4. package/dist/esm/Animate.js +1 -1
  5. package/dist/esm/AnimatingNumbers.js +7 -7
  6. package/dist/esm/Audio.js +5 -5
  7. package/dist/esm/Avatar.js +3 -3
  8. package/dist/esm/AvatarGroup.js +1 -1
  9. package/dist/esm/BackTop.js +1 -1
  10. package/dist/esm/Badge.js +1 -1
  11. package/dist/esm/Barrage.js +1 -1
  12. package/dist/esm/Button.js +1 -1
  13. package/dist/esm/Calendar.js +6 -6
  14. package/dist/esm/CalendarItem.js +3 -3
  15. package/dist/esm/Card.js +3 -3
  16. package/dist/esm/Cascader.js +6 -6
  17. package/dist/esm/Cell.js +2 -2
  18. package/dist/esm/CellGroup.js +1 -1
  19. package/dist/esm/Checkbox.js +2 -2
  20. package/dist/esm/CheckboxGroup.js +2 -2
  21. package/dist/esm/CircleProgress.js +1 -1
  22. package/dist/esm/Col.js +1 -1
  23. package/dist/esm/Collapse.js +3 -3
  24. package/dist/esm/CollapseItem.js +1 -1
  25. package/dist/esm/ConfigProvider.js +2 -3
  26. package/dist/esm/CountDown.js +2 -2
  27. package/dist/esm/DatePicker.js +6 -6
  28. package/dist/esm/Dialog.js +4 -4
  29. package/dist/esm/Divider.js +1 -1
  30. package/dist/esm/Drag.js +1 -1
  31. package/dist/esm/Elevator.js +1 -1
  32. package/dist/esm/Ellipsis.js +1 -1
  33. package/dist/esm/Empty.js +2 -2
  34. package/dist/esm/FixedNav.js +3 -3
  35. package/dist/esm/Form.js +4 -4
  36. package/dist/esm/FormItem.js +3 -3
  37. package/dist/esm/Grid.js +3 -4
  38. package/dist/esm/GridItem.js +2 -3
  39. package/dist/esm/Image.js +1 -1
  40. package/dist/esm/ImagePreview.js +6 -6
  41. package/dist/esm/Indicator.js +1 -1
  42. package/dist/esm/InfiniteLoading.js +2 -2
  43. package/dist/esm/Input.js +3 -3
  44. package/dist/esm/InputNumber.js +2 -2
  45. package/dist/esm/Layout.js +1 -1
  46. package/dist/esm/Menu.js +3 -3
  47. package/dist/esm/MenuItem.js +2 -2
  48. package/dist/esm/NavBar.js +1 -1
  49. package/dist/esm/NoticeBar.js +1 -1
  50. package/dist/esm/Notify.js +1 -1
  51. package/dist/esm/NumberKeyboard.js +4 -4
  52. package/dist/esm/Overlay.js +1 -1
  53. package/dist/esm/Pagination.js +3 -3
  54. package/dist/esm/Picker.js +5 -5
  55. package/dist/esm/Popover.js +3 -3
  56. package/dist/esm/Popup.js +2 -2
  57. package/dist/esm/Price.js +1 -1
  58. package/dist/esm/Progress.js +1 -1
  59. package/dist/esm/PullToRefresh.js +3 -3
  60. package/dist/esm/Radio.js +2 -2
  61. package/dist/esm/RadioGroup.js +2 -2
  62. package/dist/esm/Range.js +2 -2
  63. package/dist/esm/Rate.js +2 -2
  64. package/dist/esm/Row.js +1 -1
  65. package/dist/esm/SearchBar/style/style.css +1 -1
  66. package/dist/esm/SearchBar.js +2 -2
  67. package/dist/esm/ShortPassword.js +5 -5
  68. package/dist/esm/SideNavBar.js +3 -3
  69. package/dist/esm/SideNavBarItem.js +1 -1
  70. package/dist/esm/Signature.js +1 -1
  71. package/dist/esm/Skeleton.js +4 -4
  72. package/dist/esm/Step.js +1 -1
  73. package/dist/esm/Steps.js +1 -1
  74. package/dist/esm/Sticky.js +1 -1
  75. package/dist/esm/SubSideNavBar.js +1 -1
  76. package/dist/esm/Swipe.js +1 -1
  77. package/dist/esm/Swiper.js +10 -10
  78. package/dist/esm/SwiperItem.js +1 -1
  79. package/dist/esm/Switch.js +2 -2
  80. package/dist/esm/TabPane.js +1 -1
  81. package/dist/esm/Tabbar.js +4 -4
  82. package/dist/esm/TabbarItem.js +2 -2
  83. package/dist/esm/Table.js +2 -2
  84. package/dist/esm/Tabs.js +3 -3
  85. package/dist/esm/Tag.js +1 -1
  86. package/dist/esm/TextArea.js +3 -3
  87. package/dist/esm/TimeDetail.js +1 -1
  88. package/dist/esm/TimeSelect.js +5 -5
  89. package/dist/esm/Toast.js +2 -2
  90. package/dist/esm/TrendArrow.js +1 -1
  91. package/dist/esm/Uploader.js +4 -4
  92. package/dist/esm/Video.js +1 -1
  93. package/dist/esm/VirtualList.js +1 -1
  94. package/dist/esm/WaterMark.js +2 -2
  95. package/dist/esm/{actionsheet.taro-8a2b2622.js → actionsheet.taro-b642975d.js} +9 -9
  96. package/dist/esm/{address.taro-dc981f3b.js → address.taro-35c68034.js} +23 -23
  97. package/dist/esm/{animate.taro-c8b29242.js → animate.taro-37bf4eab.js} +3 -3
  98. package/dist/esm/{audio.taro-672e02c2.js → audio.taro-198b2c31.js} +22 -22
  99. package/dist/esm/{avatar.taro-a45e2e71.js → avatar.taro-dd654a49.js} +11 -11
  100. package/dist/esm/{avatargroup.taro-0672aa1e.js → avatargroup.taro-1f8b7174.js} +3 -3
  101. package/dist/esm/{backtop.taro-7de36464.js → backtop.taro-61b1eeaf.js} +3 -3
  102. package/dist/esm/{badge.taro-872605bf.js → badge.taro-289489e5.js} +5 -5
  103. package/dist/esm/{barrage.taro-1de16de1.js → barrage.taro-d77c34b4.js} +5 -5
  104. package/dist/esm/{button.taro-60dfd83e.js → button.taro-25f559e1.js} +6 -6
  105. package/dist/esm/{calendar.taro-4e0f6821.js → calendar.taro-a91e6a63.js} +8 -8
  106. package/dist/esm/{calendaritem.taro-332af5b7.js → calendaritem.taro-a4532b45.js} +27 -27
  107. package/dist/esm/card.taro-c0e9cfba.js +64 -0
  108. package/dist/esm/{cascader.taro-69230aa4.js → cascader.taro-b68a89ca.js} +19 -19
  109. package/dist/esm/{cell.taro-f200bd2b.js → cell.taro-0a9f80bc.js} +9 -9
  110. package/dist/esm/{cellgroup.taro-a790d91b.js → cellgroup.taro-d2fad5e7.js} +5 -5
  111. package/dist/esm/{checkbox.taro-ab8ef36e.js → checkbox.taro-07d5c9d5.js} +13 -13
  112. package/dist/esm/{circleprogress.taro-fd2326fc.js → circleprogress.taro-417e1d3f.js} +4 -4
  113. package/dist/esm/{col.taro-d6a46a7d.js → col.taro-23d5f6bd.js} +2 -2
  114. package/dist/esm/{collapse.taro-5aa2b225.js → collapse.taro-bd6b2bb3.js} +5 -5
  115. package/dist/esm/{collapseitem.taro-eac33538.js → collapseitem.taro-e99fb1a2.js} +9 -9
  116. package/dist/esm/configprovider.taro-974adb9a.js +1136 -0
  117. package/dist/esm/{countdown.taro-77749251.js → countdown.taro-43884964.js} +4 -4
  118. package/dist/esm/{datepicker.taro-45d5235c.js → datepicker.taro-9ca00609.js} +5 -5
  119. package/dist/esm/{dialog.taro-be862b5a.js → dialog.taro-0a2dfa58.js} +21 -21
  120. package/dist/esm/{divider.taro-0cb5f894.js → divider.taro-c61ab869.js} +2 -2
  121. package/dist/esm/{drag.taro-48e1ff38.js → drag.taro-ce333e51.js} +3 -3
  122. package/dist/esm/{elevator.taro-459f7322.js → elevator.taro-fae469b2.js} +19 -19
  123. package/dist/esm/{ellipsis.taro-5653d0b2.js → ellipsis.taro-21b13b31.js} +17 -17
  124. package/dist/esm/{empty.taro-ef1b390a.js → empty.taro-bfe29449.js} +8 -8
  125. package/dist/esm/{fixednav.taro-a8b0d089.js → fixednav.taro-579c4f66.js} +14 -14
  126. package/dist/esm/{form.taro-aa11d488.js → form.taro-16cb71e2.js} +8 -8
  127. package/dist/esm/{formitem.taro-6316e0f9.js → formitem.taro-34af0204.js} +15 -15
  128. package/dist/esm/{grid.taro-0202c062.js → grid.taro-1fdfe6eb.js} +6 -6
  129. package/dist/esm/{griditem.taro-08a3e7dc.js → griditem.taro-751fb091.js} +7 -7
  130. package/dist/esm/{image.taro-c4be8323.js → image.taro-a7ad2272.js} +11 -11
  131. package/dist/esm/{imagepreview.taro-c62cdc3a.js → imagepreview.taro-0daf3f50.js} +11 -11
  132. package/dist/esm/{indicator.taro-edbc71df.js → indicator.taro-4ed0d6da.js} +3 -3
  133. package/dist/esm/{infiniteloading.taro-d4dd2cd9.js → infiniteloading.taro-87006d3e.js} +8 -8
  134. package/dist/esm/{input.taro-9dce4ce2.js → input.taro-fb8e7a49.js} +9 -9
  135. package/dist/esm/{inputnumber.taro-96165704.js → inputnumber.taro-9c74cc1c.js} +8 -8
  136. package/dist/esm/{layout.taro-9659a928.js → layout.taro-7711a89c.js} +2 -2
  137. package/dist/esm/{menu.taro-f412b55d.js → menu.taro-7cab4e8c.js} +13 -13
  138. package/dist/esm/{menuitem.taro-f145c755.js → menuitem.taro-567bf91f.js} +11 -11
  139. package/dist/esm/{navbar.taro-f2d4215d.js → navbar.taro-23394f73.js} +7 -7
  140. package/dist/esm/{noticebar.taro-2720ca1e.js → noticebar.taro-d95c13b6.js} +17 -17
  141. package/dist/esm/{notify.taro-5768403d.js → notify.taro-05bd231c.js} +5 -5
  142. package/dist/esm/{numberkeyboard.taro-eef4087f.js → numberkeyboard.taro-c4fc80ed.js} +21 -21
  143. package/dist/esm/nutui-react.es.js +89 -89
  144. package/dist/esm/{overlay.taro-08f8efbc.js → overlay.taro-8f1e4912.js} +5 -5
  145. package/dist/esm/{pagination.taro-04ed7371.js → pagination.taro-afc104ce.js} +10 -10
  146. package/dist/esm/{picker.taro-53bb8322.js → picker.taro-bfe36c06.js} +31 -31
  147. package/dist/esm/{popover.taro-c8cac618.js → popover.taro-fbf1ba5e.js} +31 -28
  148. package/dist/esm/{popup.taro-938ee260.js → popup.taro-6ecef0f4.js} +14 -14
  149. package/dist/esm/{price.taro-479f1b82.js → price.taro-0bd3f07a.js} +6 -6
  150. package/dist/esm/{progress.taro-437b9f6a.js → progress.taro-421575b9.js} +4 -4
  151. package/dist/esm/{pulltorefresh.taro-1a96ae6f.js → pulltorefresh.taro-efb36521.js} +6 -6
  152. package/dist/esm/{radio.taro-410f7b07.js → radio.taro-802db0e9.js} +18 -18
  153. package/dist/esm/{range.taro-e88b568c.js → range.taro-9f854c57.js} +13 -13
  154. package/dist/esm/{rate.taro-2e2898ec.js → rate.taro-f090e140.js} +8 -8
  155. package/dist/esm/{row.taro-8b7febd4.js → row.taro-a71fbf76.js} +2 -2
  156. package/dist/esm/{searchbar.taro-f5bbc140.js → searchbar.taro-14821587.js} +13 -13
  157. package/dist/esm/{shortpassword.taro-16eaa16b.js → shortpassword.taro-2533954b.js} +20 -20
  158. package/dist/esm/{sidenavbar.taro-25564345.js → sidenavbar.taro-1fb6115f.js} +10 -10
  159. package/dist/esm/{sidenavbaritem.taro-7d805f92.js → sidenavbaritem.taro-69b0784d.js} +2 -2
  160. package/dist/esm/{signature.taro-4f68516a.js → signature.taro-3e0c2694.js} +5 -5
  161. package/dist/esm/{skeleton.taro-9ac4b4b8.js → skeleton.taro-51b91a1a.js} +9 -9
  162. package/dist/esm/{step.taro-2f55e4f2.js → step.taro-dd522794.js} +8 -8
  163. package/dist/esm/{steps.taro-196c1f59.js → steps.taro-0680ae4f.js} +2 -2
  164. package/dist/esm/{sticky.taro-6bc62a96.js → sticky.taro-2d78a04e.js} +3 -3
  165. package/dist/esm/{subsidenavbar.taro-47bb6e74.js → subsidenavbar.taro-797ce379.js} +5 -5
  166. package/dist/esm/{swipe.taro-4eb0cc9a.js → swipe.taro-36f8782e.js} +4 -4
  167. package/dist/esm/{swiperitem.taro-ef7342e8.js → swiperitem.taro-da39a67b.js} +2 -2
  168. package/dist/esm/{switch.taro-81197983.js → switch.taro-bbdada9e.js} +6 -6
  169. package/dist/esm/{tabbar.taro-978c27b0.js → tabbar.taro-3046d794.js} +8 -8
  170. package/dist/esm/{tabbaritem.taro-16a380db.js → tabbaritem.taro-fdaf7d3a.js} +10 -10
  171. package/dist/esm/{table.taro-c8241b30.js → table.taro-0254a4e5.js} +12 -12
  172. package/dist/esm/{tabpane.taro-f8d92ece.js → tabpane.taro-d0eea168.js} +2 -2
  173. package/dist/esm/{tabs.taro-e944cce9.js → tabs.taro-927b95e4.js} +17 -17
  174. package/dist/esm/{tag.taro-614758eb.js → tag.taro-518b9c70.js} +6 -6
  175. package/dist/esm/{textarea.taro-484b08c0.js → textarea.taro-38d284c4.js} +6 -6
  176. package/dist/esm/{timedetail.taro-d7aa4c1b.js → timedetail.taro-958b8c07.js} +2 -2
  177. package/dist/esm/{timeselect.taro-8354e37d.js → timeselect.taro-3f2aa90b.js} +10 -10
  178. package/dist/esm/{toast.taro-56e9d2a1.js → toast.taro-9e5afd6d.js} +12 -12
  179. package/dist/esm/{trendarrow.taro-fa177b5c.js → trendarrow.taro-53d6e250.js} +4 -4
  180. package/dist/esm/types/src/packages/configprovider/configprovider.d.ts +3 -4
  181. package/dist/esm/types/src/packages/configprovider/configprovider.taro.d.ts +3 -4
  182. package/dist/esm/types/src/utils/use-memo.d.ts +1 -0
  183. package/dist/esm/{uploader.taro-3d52a0ed.js → uploader.taro-8964a9b8.js} +32 -32
  184. package/dist/esm/{use-props-value-1f54346f.js → use-props-value-e8331e19.js} +3 -3
  185. package/dist/esm/{video.taro-2a26d7da.js → video.taro-672ca6b8.js} +3 -3
  186. package/dist/esm/{virtuallist.taro-1de01855.js → virtuallist.taro-e552d954.js} +6 -6
  187. package/dist/esm/{watermark.taro-5ff0bd9d.js → watermark.taro-c269110c.js} +3 -3
  188. package/dist/locales/base.js +1 -1
  189. package/dist/locales/en-US.js +1 -1
  190. package/dist/locales/id-ID.js +1 -1
  191. package/dist/locales/tr-TR.js +1 -1
  192. package/dist/locales/zh-CN.js +1 -1
  193. package/dist/locales/zh-TW.js +1 -1
  194. package/dist/locales/zh-UG.js +1 -1
  195. package/dist/nutui.react.es.js +1226 -549
  196. package/dist/nutui.react.umd.js +736 -43
  197. package/dist/packages/searchbar/searchbar.scss +0 -1
  198. package/dist/style.css +1 -1
  199. package/dist/style.mjs +1 -1
  200. package/dist/types/packages/configprovider/configprovider.d.ts +3 -4
  201. package/dist/types/packages/configprovider/configprovider.taro.d.ts +3 -4
  202. package/dist/types/utils/use-memo.d.ts +1 -0
  203. package/package.json +2 -1
  204. package/dist/esm/card.taro-92fe9733.js +0 -64
  205. package/dist/esm/configprovider.taro-510947ea.js +0 -468
@@ -1,9 +1,9 @@
1
- import React, { useMemo, useState } from "react";
1
+ import React__default, { useMemo, useState } from "react";
2
2
  import classNames from "classnames";
3
3
  import { RectDown } from "@nutui/icons-react-taro";
4
4
  import { View } from "@tarojs/components";
5
- import { P as Popup } from "./popup.taro-938ee260.js";
6
- import { u as useConfig } from "./configprovider.taro-510947ea.js";
5
+ import { P as Popup } from "./popup.taro-6ecef0f4.js";
6
+ import { u as useConfig } from "./configprovider.taro-974adb9a.js";
7
7
  import { C as ComponentDefaults } from "./typings-11d83a22.js";
8
8
  const defaultProps = {
9
9
  ...ComponentDefaults,
@@ -53,7 +53,7 @@ const NumberKeyboard = (props) => {
53
53
  width: "30px",
54
54
  height: "24px"
55
55
  };
56
- return React.createElement(View, { style: style2 });
56
+ return React__default.createElement(View, { style: style2 });
57
57
  };
58
58
  const NumberKeyboardKey = (props2) => {
59
59
  const { item } = props2;
@@ -76,10 +76,10 @@ const NumberKeyboard = (props) => {
76
76
  onConfirm && onConfirm();
77
77
  }
78
78
  };
79
- return React.createElement(
79
+ return React__default.createElement(
80
80
  "div",
81
81
  { key: item.id, className: `${classPrefix}__body__wrapper` },
82
- React.createElement(
82
+ React__default.createElement(
83
83
  "div",
84
84
  { className: classNames({
85
85
  key: true,
@@ -88,39 +88,39 @@ const NumberKeyboard = (props) => {
88
88
  delete: item.type === "delete",
89
89
  confirm: item.type === "confirm"
90
90
  }), onTouchStart: () => onTouchStart(), onTouchEnd: () => onTouchEnd(item), onTouchCancel: () => onTouchEnd(item) },
91
- (item.type === "num" || item.type === "custom") && React.createElement("div", null, item.id),
92
- item.type === "delete" && React.createElement(DeleteIcon, null),
93
- item.type === "close" && React.createElement(RectDown, { size: 25 }),
94
- item.type === "confirm" && React.createElement(React.Fragment, null, confirmText || locale.done)
91
+ (item.type === "num" || item.type === "custom") && React__default.createElement("div", null, item.id),
92
+ item.type === "delete" && React__default.createElement(DeleteIcon, null),
93
+ item.type === "close" && React__default.createElement(RectDown, { size: 25 }),
94
+ item.type === "confirm" && React__default.createElement(React__default.Fragment, null, confirmText || locale.done)
95
95
  )
96
96
  );
97
97
  };
98
- return React.createElement(
98
+ return React__default.createElement(
99
99
  Popup,
100
100
  { visible, position: "bottom", onOverlayClick: onClose, onCloseIconClick: onClose, overlayStyle: { backgroundColor: "rgba(0, 0, 0, 0)" }, ...rest },
101
- React.createElement(
101
+ React__default.createElement(
102
102
  "div",
103
103
  { className: classNames(classPrefix, className), style },
104
- title && React.createElement(
104
+ title && React__default.createElement(
105
105
  "div",
106
106
  { className: `${classPrefix}__header` },
107
- React.createElement("h3", { className: `${classPrefix}__header__title` }, title),
108
- type === "default" && React.createElement("span", { className: `${classPrefix}__header__close`, onClick: onClose }, locale.done)
107
+ React__default.createElement("h3", { className: `${classPrefix}__header__title` }, title),
108
+ type === "default" && React__default.createElement("span", { className: `${classPrefix}__header__close`, onClick: onClose }, locale.done)
109
109
  ),
110
- React.createElement(
110
+ React__default.createElement(
111
111
  "div",
112
112
  { className: `${classPrefix}__body` },
113
- React.createElement("div", { className: `${classPrefix}__body__keys` }, keysList == null ? void 0 : keysList.map((item) => {
114
- return React.createElement(NumberKeyboardKey, { key: item.id, item });
113
+ React__default.createElement("div", { className: `${classPrefix}__body__keys` }, keysList == null ? void 0 : keysList.map((item) => {
114
+ return React__default.createElement(NumberKeyboardKey, { key: item.id, item });
115
115
  })),
116
- type === "rightColumn" && React.createElement(
116
+ type === "rightColumn" && React__default.createElement(
117
117
  "div",
118
118
  { className: `${classPrefix}__sidebar` },
119
- React.createElement(NumberKeyboardKey, { key: "delete", item: {
119
+ React__default.createElement(NumberKeyboardKey, { key: "delete", item: {
120
120
  id: "delete",
121
121
  type: "delete"
122
122
  } }),
123
- React.createElement(NumberKeyboardKey, { key: "confirm", item: {
123
+ React__default.createElement(NumberKeyboardKey, { key: "confirm", item: {
124
124
  id: "confirm",
125
125
  type: "confirm"
126
126
  } })
@@ -1,93 +1,93 @@
1
- import { B } from "./button.taro-60dfd83e.js";
2
- import { C } from "./cell.taro-f200bd2b.js";
3
- import { C as C2 } from "./cellgroup.taro-a790d91b.js";
4
- import { C as C3 } from "./configprovider.taro-510947ea.js";
5
- import { I } from "./image.taro-c4be8323.js";
6
- import { O } from "./overlay.taro-08f8efbc.js";
7
- import { C as C4 } from "./col.taro-d6a46a7d.js";
8
- import { D } from "./divider.taro-0cb5f894.js";
9
- import { G } from "./grid.taro-0202c062.js";
10
- import { G as G2 } from "./griditem.taro-08a3e7dc.js";
11
- import { L } from "./layout.taro-9659a928.js";
12
- import { R } from "./row.taro-8b7febd4.js";
13
- import { S } from "./sticky.taro-6bc62a96.js";
14
- import { B as B2 } from "./backtop.taro-7de36464.js";
15
- import { E } from "./elevator.taro-459f7322.js";
16
- import { F } from "./fixednav.taro-a8b0d089.js";
17
- import { N } from "./navbar.taro-f2d4215d.js";
18
- import { S as S2 } from "./sidenavbar.taro-25564345.js";
19
- import { S as S3 } from "./sidenavbaritem.taro-7d805f92.js";
20
- import { S as S4 } from "./subsidenavbar.taro-47bb6e74.js";
21
- import { T } from "./tabbar.taro-978c27b0.js";
22
- import { T as T2 } from "./tabbaritem.taro-16a380db.js";
23
- import { T as T3 } from "./tabpane.taro-f8d92ece.js";
24
- import { T as T4 } from "./tabs.taro-e944cce9.js";
25
- import { A } from "./address.taro-dc981f3b.js";
26
- import { C as C5 } from "./calendar.taro-4e0f6821.js";
27
- import { C as C6 } from "./calendaritem.taro-332af5b7.js";
28
- import { C as C7 } from "./cascader.taro-69230aa4.js";
29
- import { C as C8, a } from "./checkbox.taro-ab8ef36e.js";
30
- import { D as D2 } from "./datepicker.taro-45d5235c.js";
31
- import { F as F2 } from "./form.taro-aa11d488.js";
32
- import { F as F3 } from "./formitem.taro-6316e0f9.js";
33
- import { I as I2 } from "./input.taro-9dce4ce2.js";
34
- import { I as I3 } from "./inputnumber.taro-96165704.js";
35
- import { M } from "./menu.taro-f412b55d.js";
36
- import { M as M2 } from "./menuitem.taro-f145c755.js";
37
- import { N as N2 } from "./numberkeyboard.taro-eef4087f.js";
38
- import { P } from "./picker.taro-53bb8322.js";
39
- import { R as R2, a as a2 } from "./radio.taro-410f7b07.js";
40
- import { R as R3 } from "./range.taro-e88b568c.js";
41
- import { R as R4 } from "./rate.taro-2e2898ec.js";
42
- import { S as S5 } from "./searchbar.taro-f5bbc140.js";
43
- import { S as S6 } from "./shortpassword.taro-16eaa16b.js";
44
- import { S as S7 } from "./signature.taro-4f68516a.js";
45
- import { S as S8 } from "./switch.taro-81197983.js";
46
- import { T as T5 } from "./textarea.taro-484b08c0.js";
47
- import { U } from "./uploader.taro-3d52a0ed.js";
48
- import { A as A2 } from "./actionsheet.taro-8a2b2622.js";
49
- import { B as B3 } from "./badge.taro-872605bf.js";
50
- import { B as B4 } from "./dialog.taro-be862b5a.js";
51
- import { D as D3 } from "./drag.taro-48e1ff38.js";
52
- import { E as E2 } from "./empty.taro-ef1b390a.js";
53
- import { I as I4 } from "./infiniteloading.taro-d4dd2cd9.js";
54
- import { N as N3 } from "./noticebar.taro-2720ca1e.js";
55
- import { N as N4 } from "./notify.taro-5768403d.js";
56
- import { P as P2 } from "./popover.taro-c8cac618.js";
57
- import { P as P3 } from "./popup.taro-938ee260.js";
58
- import { P as P4 } from "./pulltorefresh.taro-1a96ae6f.js";
59
- import { S as S9 } from "./skeleton.taro-9ac4b4b8.js";
60
- import { S as S10 } from "./swipe.taro-4eb0cc9a.js";
61
- import { T as T6 } from "./toast.taro-56e9d2a1.js";
62
- import { A as A3 } from "./animate.taro-c8b29242.js";
1
+ import { B } from "./button.taro-25f559e1.js";
2
+ import { C } from "./cell.taro-0a9f80bc.js";
3
+ import { C as C2 } from "./cellgroup.taro-d2fad5e7.js";
4
+ import { C as C3 } from "./configprovider.taro-974adb9a.js";
5
+ import { I } from "./image.taro-a7ad2272.js";
6
+ import { O } from "./overlay.taro-8f1e4912.js";
7
+ import { C as C4 } from "./col.taro-23d5f6bd.js";
8
+ import { D } from "./divider.taro-c61ab869.js";
9
+ import { G } from "./grid.taro-1fdfe6eb.js";
10
+ import { G as G2 } from "./griditem.taro-751fb091.js";
11
+ import { L } from "./layout.taro-7711a89c.js";
12
+ import { R } from "./row.taro-a71fbf76.js";
13
+ import { S } from "./sticky.taro-2d78a04e.js";
14
+ import { B as B2 } from "./backtop.taro-61b1eeaf.js";
15
+ import { E } from "./elevator.taro-fae469b2.js";
16
+ import { F } from "./fixednav.taro-579c4f66.js";
17
+ import { N } from "./navbar.taro-23394f73.js";
18
+ import { S as S2 } from "./sidenavbar.taro-1fb6115f.js";
19
+ import { S as S3 } from "./sidenavbaritem.taro-69b0784d.js";
20
+ import { S as S4 } from "./subsidenavbar.taro-797ce379.js";
21
+ import { T } from "./tabbar.taro-3046d794.js";
22
+ import { T as T2 } from "./tabbaritem.taro-fdaf7d3a.js";
23
+ import { T as T3 } from "./tabpane.taro-d0eea168.js";
24
+ import { T as T4 } from "./tabs.taro-927b95e4.js";
25
+ import { A } from "./address.taro-35c68034.js";
26
+ import { C as C5 } from "./calendar.taro-a91e6a63.js";
27
+ import { C as C6 } from "./calendaritem.taro-a4532b45.js";
28
+ import { C as C7 } from "./cascader.taro-b68a89ca.js";
29
+ import { C as C8, a } from "./checkbox.taro-07d5c9d5.js";
30
+ import { D as D2 } from "./datepicker.taro-9ca00609.js";
31
+ import { F as F2 } from "./form.taro-16cb71e2.js";
32
+ import { F as F3 } from "./formitem.taro-34af0204.js";
33
+ import { I as I2 } from "./input.taro-fb8e7a49.js";
34
+ import { I as I3 } from "./inputnumber.taro-9c74cc1c.js";
35
+ import { M } from "./menu.taro-7cab4e8c.js";
36
+ import { M as M2 } from "./menuitem.taro-567bf91f.js";
37
+ import { N as N2 } from "./numberkeyboard.taro-c4fc80ed.js";
38
+ import { P } from "./picker.taro-bfe36c06.js";
39
+ import { R as R2, a as a2 } from "./radio.taro-802db0e9.js";
40
+ import { R as R3 } from "./range.taro-9f854c57.js";
41
+ import { R as R4 } from "./rate.taro-f090e140.js";
42
+ import { S as S5 } from "./searchbar.taro-14821587.js";
43
+ import { S as S6 } from "./shortpassword.taro-2533954b.js";
44
+ import { S as S7 } from "./signature.taro-3e0c2694.js";
45
+ import { S as S8 } from "./switch.taro-bbdada9e.js";
46
+ import { T as T5 } from "./textarea.taro-38d284c4.js";
47
+ import { U } from "./uploader.taro-8964a9b8.js";
48
+ import { A as A2 } from "./actionsheet.taro-b642975d.js";
49
+ import { B as B3 } from "./badge.taro-289489e5.js";
50
+ import { B as B4 } from "./dialog.taro-0a2dfa58.js";
51
+ import { D as D3 } from "./drag.taro-ce333e51.js";
52
+ import { E as E2 } from "./empty.taro-bfe29449.js";
53
+ import { I as I4 } from "./infiniteloading.taro-87006d3e.js";
54
+ import { N as N3 } from "./noticebar.taro-d95c13b6.js";
55
+ import { N as N4 } from "./notify.taro-05bd231c.js";
56
+ import { P as P2 } from "./popover.taro-fbf1ba5e.js";
57
+ import { P as P3 } from "./popup.taro-6ecef0f4.js";
58
+ import { P as P4 } from "./pulltorefresh.taro-efb36521.js";
59
+ import { S as S9 } from "./skeleton.taro-51b91a1a.js";
60
+ import { S as S10 } from "./swipe.taro-36f8782e.js";
61
+ import { T as T6 } from "./toast.taro-9e5afd6d.js";
62
+ import { A as A3 } from "./animate.taro-37bf4eab.js";
63
63
  import { default as default2 } from "./AnimatingNumbers.js";
64
- import { A as A4 } from "./audio.taro-672e02c2.js";
65
- import { A as A5 } from "./avatar.taro-a45e2e71.js";
66
- import { A as A6 } from "./avatargroup.taro-0672aa1e.js";
67
- import { C as C9 } from "./circleprogress.taro-fd2326fc.js";
68
- import { C as C10 } from "./collapse.taro-5aa2b225.js";
69
- import { C as C11 } from "./collapseitem.taro-eac33538.js";
70
- import { C as C12 } from "./countdown.taro-77749251.js";
71
- import { E as E3 } from "./ellipsis.taro-5653d0b2.js";
72
- import { I as I5 } from "./imagepreview.taro-c62cdc3a.js";
73
- import { I as I6 } from "./indicator.taro-edbc71df.js";
74
- import { P as P5 } from "./pagination.taro-04ed7371.js";
75
- import { P as P6 } from "./price.taro-479f1b82.js";
76
- import { P as P7 } from "./progress.taro-437b9f6a.js";
77
- import { S as S11 } from "./step.taro-2f55e4f2.js";
78
- import { S as S12 } from "./steps.taro-196c1f59.js";
64
+ import { A as A4 } from "./audio.taro-198b2c31.js";
65
+ import { A as A5 } from "./avatar.taro-dd654a49.js";
66
+ import { A as A6 } from "./avatargroup.taro-1f8b7174.js";
67
+ import { C as C9 } from "./circleprogress.taro-417e1d3f.js";
68
+ import { C as C10 } from "./collapse.taro-bd6b2bb3.js";
69
+ import { C as C11 } from "./collapseitem.taro-e99fb1a2.js";
70
+ import { C as C12 } from "./countdown.taro-43884964.js";
71
+ import { E as E3 } from "./ellipsis.taro-21b13b31.js";
72
+ import { I as I5 } from "./imagepreview.taro-0daf3f50.js";
73
+ import { I as I6 } from "./indicator.taro-4ed0d6da.js";
74
+ import { P as P5 } from "./pagination.taro-afc104ce.js";
75
+ import { P as P6 } from "./price.taro-0bd3f07a.js";
76
+ import { P as P7 } from "./progress.taro-421575b9.js";
77
+ import { S as S11 } from "./step.taro-dd522794.js";
78
+ import { S as S12 } from "./steps.taro-0680ae4f.js";
79
79
  import { default as default3 } from "./Swiper.js";
80
- import { S as S13 } from "./swiperitem.taro-ef7342e8.js";
81
- import { T as T7 } from "./table.taro-c8241b30.js";
82
- import { T as T8 } from "./tag.taro-614758eb.js";
83
- import { V } from "./video.taro-2a26d7da.js";
84
- import { V as V2 } from "./virtuallist.taro-1de01855.js";
85
- import { B as B5 } from "./barrage.taro-1de16de1.js";
86
- import { C as C13 } from "./card.taro-92fe9733.js";
87
- import { T as T9 } from "./timedetail.taro-d7aa4c1b.js";
88
- import { T as T10 } from "./timeselect.taro-8354e37d.js";
89
- import { T as T11 } from "./trendarrow.taro-fa177b5c.js";
90
- import { W } from "./watermark.taro-5ff0bd9d.js";
80
+ import { S as S13 } from "./swiperitem.taro-da39a67b.js";
81
+ import { T as T7 } from "./table.taro-0254a4e5.js";
82
+ import { T as T8 } from "./tag.taro-518b9c70.js";
83
+ import { V } from "./video.taro-672ca6b8.js";
84
+ import { V as V2 } from "./virtuallist.taro-e552d954.js";
85
+ import { B as B5 } from "./barrage.taro-d77c34b4.js";
86
+ import { C as C13 } from "./card.taro-c0e9cfba.js";
87
+ import { T as T9 } from "./timedetail.taro-958b8c07.js";
88
+ import { T as T10 } from "./timeselect.taro-3f2aa90b.js";
89
+ import { T as T11 } from "./trendarrow.taro-53d6e250.js";
90
+ import { W } from "./watermark.taro-c269110c.js";
91
91
  import "react";
92
92
  import "classnames";
93
93
  import "@nutui/icons-react-taro";
@@ -99,7 +99,7 @@ import "./UserContext-ab42ba7f.js";
99
99
  import "./use-client-rect-2bb6c562.js";
100
100
  import "./can-use-dom-0e539bd3.js";
101
101
  import "./context-f32a9246.js";
102
- import "./use-props-value-1f54346f.js";
102
+ import "./use-props-value-e8331e19.js";
103
103
  import "./raf-a9ff50ad.js";
104
104
  import "./use-touch-ff43512c.js";
105
105
  import "./index-e3184f19.js";
@@ -1,4 +1,4 @@
1
- import React, { useState, useEffect } from "react";
1
+ import React__default, { useState, useEffect } from "react";
2
2
  import { CSSTransition } from "react-transition-group";
3
3
  import classNames from "classnames";
4
4
  import { View } from "@tarojs/components";
@@ -56,13 +56,13 @@ const Overlay = (props) => {
56
56
  const onHandleClosed = (e) => {
57
57
  afterClose && afterClose();
58
58
  };
59
- return React.createElement(
60
- React.Fragment,
59
+ return React__default.createElement(
60
+ React__default.Fragment,
61
61
  null,
62
- React.createElement(
62
+ React__default.createElement(
63
63
  CSSTransition,
64
64
  { classNames: `${classPrefix}-slide`, unmountOnExit: true, timeout: duration, in: innerVisible, onEntered: onHandleOpened, onExited: onHandleClosed },
65
- React.createElement(View, { className: classes, style: styles, ...rest, catchMove: lockScroll, onClick: handleClick }, children)
65
+ React__default.createElement(View, { className: classes, style: styles, ...rest, catchMove: lockScroll, onClick: handleClick }, children)
66
66
  )
67
67
  );
68
68
  };
@@ -1,7 +1,7 @@
1
- import React, { useMemo } from "react";
1
+ import React__default, { useMemo } from "react";
2
2
  import classNames from "classnames";
3
- import { u as useConfig } from "./configprovider.taro-510947ea.js";
4
- import { u as usePropsValue } from "./use-props-value-1f54346f.js";
3
+ import { u as useConfig } from "./configprovider.taro-974adb9a.js";
4
+ import { u as usePropsValue } from "./use-props-value-e8331e19.js";
5
5
  import { C as ComponentDefaults } from "./typings-11d83a22.js";
6
6
  const defaultProps = {
7
7
  ...ComponentDefaults,
@@ -62,21 +62,21 @@ const Pagination = (props) => {
62
62
  return;
63
63
  setCurrentPage(curPage);
64
64
  };
65
- return React.createElement(
65
+ return React__default.createElement(
66
66
  "div",
67
67
  { className: classNames(classPrefix, className), ...rest },
68
- React.createElement("div", { className: classNames(`${classPrefix}__prev`, mode === "multi" ? "" : "simple-border", currentPage === 1 ? "disabled" : ""), onClick: (e) => handleSelectPage(currentPage - 1) }, prev || locale.pagination.prev),
69
- mode === "multi" && React.createElement("div", { className: `${classPrefix}__contain` }, pages.map((item, index) => {
70
- return React.createElement("div", { key: `${index}pagination`, className: classNames(`${classPrefix}__item`, {
68
+ React__default.createElement("div", { className: classNames(`${classPrefix}__prev`, mode === "multi" ? "" : "simple-border", currentPage === 1 ? "disabled" : ""), onClick: (e) => handleSelectPage(currentPage - 1) }, prev || locale.pagination.prev),
69
+ mode === "multi" && React__default.createElement("div", { className: `${classPrefix}__contain` }, pages.map((item, index) => {
70
+ return React__default.createElement("div", { key: `${index}pagination`, className: classNames(`${classPrefix}__item`, {
71
71
  active: item.number === currentPage
72
72
  }), onClick: (e) => {
73
73
  item.number !== currentPage && handleSelectPage(item.number);
74
74
  } }, itemRender ? itemRender(item) : item.text);
75
75
  })),
76
- mode === "simple" && React.createElement(
76
+ mode === "simple" && React__default.createElement(
77
77
  "div",
78
78
  { className: `${classPrefix}__contain` },
79
- React.createElement(
79
+ React__default.createElement(
80
80
  "div",
81
81
  { className: `${classPrefix}__simple` },
82
82
  currentPage,
@@ -84,7 +84,7 @@ const Pagination = (props) => {
84
84
  pageCount
85
85
  )
86
86
  ),
87
- React.createElement("div", { className: classNames(`${classPrefix}__next`, currentPage >= pageCount ? "disabled" : ""), onClick: (e) => handleSelectPage(currentPage + 1) }, next || locale.pagination.next)
87
+ React__default.createElement("div", { className: classNames(`${classPrefix}__next`, currentPage >= pageCount ? "disabled" : ""), onClick: (e) => handleSelectPage(currentPage + 1) }, next || locale.pagination.next)
88
88
  );
89
89
  };
90
90
  Pagination.defaultProps = defaultProps;
@@ -1,13 +1,13 @@
1
- import React, { useState, useRef, useEffect, useImperativeHandle } from "react";
1
+ import React__default, { useState, useRef, useEffect, useImperativeHandle } from "react";
2
2
  import classNames from "classnames";
3
3
  import Taro from "@tarojs/taro";
4
4
  import { View, PickerView, PickerViewColumn } from "@tarojs/components";
5
- import { P as Popup } from "./popup.taro-938ee260.js";
5
+ import { P as Popup } from "./popup.taro-6ecef0f4.js";
6
6
  import { u as useTouch } from "./use-touch-ff43512c.js";
7
7
  import { g as getRectByTaro } from "./use-client-rect-2bb6c562.js";
8
8
  import { c as canUseDom } from "./can-use-dom-0e539bd3.js";
9
- import { u as useConfig } from "./configprovider.taro-510947ea.js";
10
- import { u as usePropsValue } from "./use-props-value-1f54346f.js";
9
+ import { u as useConfig } from "./configprovider.taro-974adb9a.js";
10
+ import { u as usePropsValue } from "./use-props-value-e8331e19.js";
11
11
  import { C as ComponentDefaults } from "./typings-11d83a22.js";
12
12
  let passiveSupported = false;
13
13
  if (canUseDom) {
@@ -193,47 +193,47 @@ const InternalPickerPanel = (props, ref) => {
193
193
  stopMomentum,
194
194
  moving: moving.current
195
195
  }));
196
- return React.createElement(
196
+ return React__default.createElement(
197
197
  "div",
198
198
  { className: "nut-picker-list", ref: PickerPanelRef, onTouchStart: touchStart, onTouchMove: touchMove, onTouchEnd: touchEnd },
199
- React.createElement(
199
+ React__default.createElement(
200
200
  "div",
201
201
  { className: "nut-picker-roller", ref: rollerRef, style: threeDimensional ? touchRollerStyle() : touchTileStyle(), onTransitionEnd: stopMomentum },
202
202
  threeDimensional && options.map((item, index) => {
203
- return React.createElement(
203
+ return React__default.createElement(
204
204
  "div",
205
205
  { className: `nut-picker-roller-item ${isHidden(index + 1) && "nut-picker-roller-item-hidden"}`, style: {
206
206
  transform: `rotate3d(1, 0, 0, ${-rotation * (index + 1)}deg) translate3d(0px, 0px, 104px)`,
207
207
  height: `${lineSpacing.current}px`,
208
208
  lineHeight: `${lineSpacing.current}px`
209
209
  }, key: item.value ? item.value : index },
210
- React.createElement(React.Fragment, null, item.text ? item.text : item)
210
+ React__default.createElement(React__default.Fragment, null, item.text ? item.text : item)
211
211
  );
212
212
  }),
213
213
  !threeDimensional && options.map((item, index) => {
214
- return React.createElement(
214
+ return React__default.createElement(
215
215
  "div",
216
216
  { className: "nut-picker-roller-item-title", key: item.value ? item.value : index, style: {
217
217
  height: `${lineSpacing.current}px`,
218
218
  lineHeight: `${lineSpacing.current}px`
219
219
  } },
220
- React.createElement(React.Fragment, null, item.text ? item.text : item)
220
+ React__default.createElement(React__default.Fragment, null, item.text ? item.text : item)
221
221
  );
222
222
  })
223
223
  ),
224
- React.createElement("div", { className: "nut-picker-mask" }),
225
- React.createElement("div", { className: "nut-picker-indicator", ref: listRef })
224
+ React__default.createElement("div", { className: "nut-picker-mask" }),
225
+ React__default.createElement("div", { className: "nut-picker-indicator", ref: listRef })
226
226
  );
227
227
  };
228
- const PickerPanel = React.forwardRef(InternalPickerPanel);
228
+ const PickerPanel = React__default.forwardRef(InternalPickerPanel);
229
229
  const PickerPanel$1 = PickerPanel;
230
230
  function useRefs() {
231
- const refs = React.useRef([]);
232
- const setRefs = React.useCallback((index) => (el) => {
231
+ const refs = React__default.useRef([]);
232
+ const setRefs = React__default.useCallback((index) => (el) => {
233
233
  if (el)
234
234
  refs.current[index] = el;
235
235
  }, []);
236
- const reset = React.useCallback(() => {
236
+ const reset = React__default.useCallback(() => {
237
237
  refs.current = [];
238
238
  }, []);
239
239
  return [refs.current, setRefs, reset];
@@ -442,15 +442,15 @@ const InternalPicker = (props, ref) => {
442
442
  afterClose && afterClose(setSelectedOptions(), innerValue, pickerRef);
443
443
  };
444
444
  const renderTitleBar = () => {
445
- return React.createElement(
445
+ return React__default.createElement(
446
446
  "div",
447
447
  { className: `${classPrefix}__control` },
448
- React.createElement("span", { className: `${classPrefix}__cancel-btn`, onClick: (e) => {
448
+ React__default.createElement("span", { className: `${classPrefix}__cancel-btn`, onClick: (e) => {
449
449
  e.stopPropagation();
450
450
  closePicker();
451
451
  } }, locale.cancel),
452
- React.createElement("div", { className: `${classPrefix}__title` }, title || ""),
453
- React.createElement("span", { className: `${classPrefix}__confirm-btn`, onClick: (e) => {
452
+ React__default.createElement("div", { className: `${classPrefix}__title` }, title || ""),
453
+ React__default.createElement("span", { className: `${classPrefix}__confirm-btn`, onClick: (e) => {
454
454
  e.stopPropagation();
455
455
  confirm();
456
456
  } }, locale.confirm)
@@ -475,28 +475,28 @@ const InternalPicker = (props, ref) => {
475
475
  }
476
476
  chooseItem(columnsList[changeIndex][data.detail.value[changeIndex]], changeIndex);
477
477
  };
478
- return React.createElement(
479
- React.Fragment,
478
+ return React__default.createElement(
479
+ React__default.Fragment,
480
480
  null,
481
481
  typeof children === "function" && children(selectedValue),
482
- React.createElement(
482
+ React__default.createElement(
483
483
  Popup,
484
484
  { visible: innerVisible, position: "bottom", afterClose: () => {
485
485
  closePicker();
486
486
  } },
487
- React.createElement(
487
+ React__default.createElement(
488
488
  View,
489
489
  { className: classes, style, ...rest, catchMove: true },
490
490
  renderTitleBar(),
491
491
  typeof children !== "function" && children,
492
- React.createElement("div", { className: `${classPrefix}__panel`, ref: pickerRef }, Taro.getEnv() === "WEB" ? columnsList == null ? void 0 : columnsList.map((item, index) => {
493
- return React.createElement(PickerPanel$1, { ref: setRefs(index), defaultValue: innerValue == null ? void 0 : innerValue[index], options: item, threeDimensional, chooseItem: (value, index2) => chooseItem(value, index2), duration, key: index, keyIndex: index, itemShow: visible });
494
- }) : React.createElement(PickerView, { ref: pickerRef, value: currentValue, immediateChange: true, onPickStart: pickerStart, onChange: pickerChange, onPickEnd: pickerEnd, className: "nut-picker-view-panel" }, columnsList == null ? void 0 : columnsList.map((columnOptions, index) => {
495
- return React.createElement(PickerViewColumn, { key: `col${index}` }, columnOptions.map((item, index2) => {
496
- return React.createElement(
492
+ React__default.createElement("div", { className: `${classPrefix}__panel`, ref: pickerRef }, Taro.getEnv() === "WEB" ? columnsList == null ? void 0 : columnsList.map((item, index) => {
493
+ return React__default.createElement(PickerPanel$1, { ref: setRefs(index), defaultValue: innerValue == null ? void 0 : innerValue[index], options: item, threeDimensional, chooseItem: (value, index2) => chooseItem(value, index2), duration, key: index, keyIndex: index, itemShow: visible });
494
+ }) : React__default.createElement(PickerView, { ref: pickerRef, value: currentValue, immediateChange: true, onPickStart: pickerStart, onChange: pickerChange, onPickEnd: pickerEnd, className: "nut-picker-view-panel" }, columnsList == null ? void 0 : columnsList.map((columnOptions, index) => {
495
+ return React__default.createElement(PickerViewColumn, { key: `col${index}` }, columnOptions.map((item, index2) => {
496
+ return React__default.createElement(
497
497
  View,
498
498
  { key: item.value || index2, className: "nut-picker-roller-item-title" },
499
- React.createElement(React.Fragment, null, item.text || item)
499
+ React__default.createElement(React__default.Fragment, null, item.text || item)
500
500
  );
501
501
  }));
502
502
  })))
@@ -504,7 +504,7 @@ const InternalPicker = (props, ref) => {
504
504
  )
505
505
  );
506
506
  };
507
- const Picker = React.forwardRef(InternalPicker);
507
+ const Picker = React__default.forwardRef(InternalPicker);
508
508
  const Picker$1 = Picker;
509
509
  export {
510
510
  Picker$1 as P
@@ -1,7 +1,7 @@
1
- import React, { useRef, useState, useEffect } from "react";
1
+ import React__default, { useRef, useState, useEffect } from "react";
2
2
  import classNames from "classnames";
3
- import Taro from "@tarojs/taro";
4
- import { P as Popup } from "./popup.taro-938ee260.js";
3
+ import Taro, { createSelectorQuery } from "@tarojs/taro";
4
+ import { P as Popup } from "./popup.taro-6ecef0f4.js";
5
5
  import { a as getRect, g as getRectByTaro } from "./use-client-rect-2bb6c562.js";
6
6
  import { C as ComponentDefaults } from "./typings-11d83a22.js";
7
7
  const defaultProps = {
@@ -45,22 +45,25 @@ const Popover = (props) => {
45
45
  }, [visible]);
46
46
  const getContentWidth = async () => {
47
47
  let rect;
48
- if (targetId) {
49
- if (Taro.getEnv() === Taro.ENV_TYPE.WEB) {
50
- rect = getRect(document.querySelector(`#${targetId}`));
48
+ createSelectorQuery().selectViewport().scrollOffset(async (res) => {
49
+ const distance = res.scrollTop;
50
+ if (targetId) {
51
+ if (Taro.getEnv() === Taro.ENV_TYPE.WEB) {
52
+ rect = getRect(document.querySelector(`#${targetId}`));
53
+ } else {
54
+ rect = await getRectTaro(targetId);
55
+ }
51
56
  } else {
52
- rect = await getRectTaro(targetId);
57
+ rect = await getRectByTaro(popoverRef.current);
53
58
  }
54
- } else {
55
- rect = await getRectByTaro(popoverRef.current);
56
- }
57
- setRootPosition({
58
- width: rect.width,
59
- height: rect.height,
60
- left: rect.left,
61
- top: rect.top,
62
- right: rect.right
63
- });
59
+ setRootPosition({
60
+ width: rect.width,
61
+ height: rect.height,
62
+ left: rect.left,
63
+ top: rect.top + distance,
64
+ right: rect.right
65
+ });
66
+ }).exec();
64
67
  setTimeout(() => {
65
68
  getPopoverContentW();
66
69
  }, 300);
@@ -155,10 +158,10 @@ const Popover = (props) => {
155
158
  onClose && onClose();
156
159
  }
157
160
  };
158
- return React.createElement(
159
- React.Fragment,
161
+ return React__default.createElement(
162
+ React__default.Fragment,
160
163
  null,
161
- !targetId && React.createElement("div", { className: "nut-popover-wrapper", ref: popoverRef, onClick: () => {
164
+ !targetId && React__default.createElement("div", { className: "nut-popover-wrapper", ref: popoverRef, onClick: () => {
162
165
  props.onClick && props.onClick();
163
166
  if (!visible) {
164
167
  onOpen && onOpen();
@@ -166,31 +169,31 @@ const Popover = (props) => {
166
169
  onClose && onClose();
167
170
  }
168
171
  }, style }, Array.isArray(children) ? children[0] : children),
169
- React.createElement(
172
+ React__default.createElement(
170
173
  "div",
171
174
  { className: classes, style: getRootPosition() },
172
- React.createElement(
175
+ React__default.createElement(
173
176
  Popup,
174
177
  { className: `nut-popover-content nut-popover-content--${location}`, position: "default", overlay, visible: showPopup, ...rest },
175
- React.createElement(
178
+ React__default.createElement(
176
179
  "div",
177
180
  { className: "nut-popover-content-group", ref: popoverContentRef },
178
- showArrow && React.createElement("div", { className: popoverArrow() }),
181
+ showArrow && React__default.createElement("div", { className: popoverArrow() }),
179
182
  Array.isArray(children) ? children[1] : "",
180
183
  list.map((item, index) => {
181
- return React.createElement(
184
+ return React__default.createElement(
182
185
  "div",
183
186
  { className: classNames({
184
187
  "nut-popover-menu-item": true,
185
188
  "nut-popover-menu-disabled": item.disabled
186
- }, item.className), key: item.key, onClick: () => handleSelect(item, index) },
189
+ }, item.className), key: item.key || index, onClick: () => handleSelect(item, index) },
187
190
  item.icon ? item.icon : null,
188
- React.createElement("div", { className: "nut-popover-menu-item-name" }, item.name)
191
+ React__default.createElement("div", { className: "nut-popover-menu-item-name" }, item.name)
189
192
  );
190
193
  })
191
194
  )
192
195
  ),
193
- showPopup && React.createElement("div", { className: "nut-popover-content-bg", onClick: clickAway, onTouchMove: clickAway })
196
+ showPopup && React__default.createElement("div", { className: "nut-popover-content-bg", onClick: clickAway, onTouchMove: clickAway })
194
197
  )
195
198
  );
196
199
  };