@nutui/nutui-react-taro 2.6.3 → 2.6.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 (191) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/esm/ActionSheet.js +1 -1
  3. package/dist/esm/Address.js +1 -1
  4. package/dist/esm/Animate.js +1 -1
  5. package/dist/esm/Audio.js +1 -1
  6. package/dist/esm/Avatar.js +1 -1
  7. package/dist/esm/AvatarCropper.js +1 -1
  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/Calendar.js +1 -1
  13. package/dist/esm/CalendarCard.js +1 -1
  14. package/dist/esm/CalendarItem.js +1 -1
  15. package/dist/esm/Card.js +1 -1
  16. package/dist/esm/Cascader.js +1 -1
  17. package/dist/esm/Cell.js +1 -1
  18. package/dist/esm/CellGroup.js +1 -1
  19. package/dist/esm/Checkbox.js +1 -1
  20. package/dist/esm/CheckboxGroup.js +1 -1
  21. package/dist/esm/CircleProgress.js +1 -1
  22. package/dist/esm/Col.js +1 -1
  23. package/dist/esm/Collapse.js +1 -1
  24. package/dist/esm/CollapseItem.js +1 -1
  25. package/dist/esm/CountDown.js +1 -1
  26. package/dist/esm/DatePicker.js +1 -1
  27. package/dist/esm/Dialog.js +1 -1
  28. package/dist/esm/Divider.js +1 -1
  29. package/dist/esm/Drag.js +1 -1
  30. package/dist/esm/Elevator.js +1 -1
  31. package/dist/esm/Ellipsis.js +1 -1
  32. package/dist/esm/Empty.js +1 -1
  33. package/dist/esm/FixedNav.js +1 -1
  34. package/dist/esm/Form.js +2 -3
  35. package/dist/esm/FormItem.js +1 -1
  36. package/dist/esm/Grid.js +1 -1
  37. package/dist/esm/GridItem.js +1 -1
  38. package/dist/esm/Image.js +1 -1
  39. package/dist/esm/ImagePreview.js +1 -1
  40. package/dist/esm/Indicator.js +1 -1
  41. package/dist/esm/InfiniteLoading.js +1 -1
  42. package/dist/esm/Input.js +1 -1
  43. package/dist/esm/InputNumber.js +1 -1
  44. package/dist/esm/Layout.js +1 -1
  45. package/dist/esm/Loading.js +1 -1
  46. package/dist/esm/Menu/style/style.css +1 -1
  47. package/dist/esm/Menu.js +1 -1
  48. package/dist/esm/MenuItem/style/style.css +1 -1
  49. package/dist/esm/MenuItem.js +1 -1
  50. package/dist/esm/NavBar.js +1 -1
  51. package/dist/esm/NoticeBar.js +1 -1
  52. package/dist/esm/NumberKeyboard.js +1 -1
  53. package/dist/esm/Overlay.js +1 -1
  54. package/dist/esm/Pagination.js +1 -1
  55. package/dist/esm/Picker.js +1 -1
  56. package/dist/esm/Popover.js +1 -1
  57. package/dist/esm/Popup.js +1 -1
  58. package/dist/esm/Price.js +1 -1
  59. package/dist/esm/Progress.js +1 -1
  60. package/dist/esm/Range.js +1 -1
  61. package/dist/esm/Rate.js +1 -1
  62. package/dist/esm/Row.js +1 -1
  63. package/dist/esm/SafeArea.js +1 -1
  64. package/dist/esm/SearchBar.js +1 -1
  65. package/dist/esm/ShortPassword.js +1 -1
  66. package/dist/esm/SideNavBar.js +1 -1
  67. package/dist/esm/Signature.js +1 -1
  68. package/dist/esm/Skeleton.js +1 -1
  69. package/dist/esm/Space.js +1 -1
  70. package/dist/esm/Step.js +1 -1
  71. package/dist/esm/Steps.js +1 -1
  72. package/dist/esm/Sticky.js +1 -1
  73. package/dist/esm/Swiper.js +1 -1
  74. package/dist/esm/Switch.js +1 -1
  75. package/dist/esm/Tabbar.js +1 -1
  76. package/dist/esm/TabbarItem.js +1 -1
  77. package/dist/esm/Table/style/style.css +1 -1
  78. package/dist/esm/Table.js +1 -1
  79. package/dist/esm/Tabs.js +1 -1
  80. package/dist/esm/Tag.js +1 -1
  81. package/dist/esm/TextArea.js +1 -1
  82. package/dist/esm/TimeDetail.js +1 -1
  83. package/dist/esm/TimeSelect.js +1 -1
  84. package/dist/esm/Toast.js +1 -1
  85. package/dist/esm/Tour.js +1 -1
  86. package/dist/esm/TrendArrow.js +1 -1
  87. package/dist/esm/Uploader.js +1 -1
  88. package/dist/esm/Video.js +1 -1
  89. package/dist/esm/VirtualList.js +1 -1
  90. package/dist/esm/WaterMark.js +1 -1
  91. package/dist/esm/{actionsheet.taro-Dpjoa3xo.js → actionsheet.taro-CI2b9f_3.js} +1 -2
  92. package/dist/esm/{address.taro-C_wuRkKQ.js → address.taro-6VS1YZ0V.js} +2 -3
  93. package/dist/esm/{animate.taro-Dg9jxZEu.js → animate.taro-D-A6ORRZ.js} +0 -1
  94. package/dist/esm/{audio.taro-2hRKQ2Lk.js → audio.taro-4ixA5lb2.js} +1 -1
  95. package/dist/esm/{avatar.taro-a6CX3kxV.js → avatar.taro-Dx8hhvFI.js} +4 -5
  96. package/dist/esm/{avatarcropper.taro-Dd4pAR3N.js → avatarcropper.taro-C9BoO5Lp.js} +0 -1
  97. package/dist/esm/{avatargroup.taro-bpT5kPbf.js → avatargroup.taro-ScakjsY1.js} +0 -1
  98. package/dist/esm/{backtop.taro-X1X5Uzz5.js → backtop.taro-YeEY7i4O.js} +0 -1
  99. package/dist/esm/{badge.taro-B0spW6jr.js → badge.taro-DK_UFQ5Y.js} +0 -1
  100. package/dist/esm/{barrage.taro-BNOcZsJ1.js → barrage.taro-DEJGSmY5.js} +0 -1
  101. package/dist/esm/{calendar.taro-DEsLc-lS.js → calendar.taro-CDZqFYlk.js} +2 -3
  102. package/dist/esm/{calendarcard.taro-C7P3oqAL.js → calendarcard.taro-CHDg3k5D.js} +0 -1
  103. package/dist/esm/{calendaritem.taro-B8tN2DYa.js → calendaritem.taro-DuEKmnsT.js} +3 -4
  104. package/dist/esm/{card.taro-FRirz5pW.js → card.taro-Co0BZGJI.js} +2 -3
  105. package/dist/esm/{cascader.taro-B06E-RW5.js → cascader.taro-CZkUgupN.js} +6 -7
  106. package/dist/esm/{cell.taro-CmI4m0SC.js → cell.taro-kOgCGbyn.js} +1 -2
  107. package/dist/esm/{cellgroup.taro-CYsSk-Bt.js → cellgroup.taro-BskBIgql.js} +0 -1
  108. package/dist/esm/{checkbox.taro-CUpF7Afr.js → checkbox.taro-DOSOI351.js} +2 -3
  109. package/dist/esm/{circleprogress.taro-CKSrzt8Q.js → circleprogress.taro-BuVTD1iY.js} +7 -9
  110. package/dist/esm/{col.taro-C8DUuJYh.js → col.taro-BdtbWacE.js} +0 -1
  111. package/dist/esm/{collapse.taro-BM0BsN30.js → collapse.taro-CxDgckv5.js} +1 -2
  112. package/dist/esm/{collapseitem.taro-D_m4VEdG.js → collapseitem.taro-BY06WWvK.js} +0 -1
  113. package/dist/esm/{countdown.taro-wopKr1Il.js → countdown.taro-CdEiAwr5.js} +0 -1
  114. package/dist/esm/{datepicker.taro-DEwb5whP.js → datepicker.taro-B7H4b8TO.js} +1 -1
  115. package/dist/esm/{dialog.taro-x_jRYew5.js → dialog.taro-Du4bNKvD.js} +1 -1
  116. package/dist/esm/{divider.taro-DRcO_m9e.js → divider.taro-CijVuCyt.js} +0 -1
  117. package/dist/esm/{drag.taro-CcHIO07Y.js → drag.taro-D6xGnWqk.js} +3 -4
  118. package/dist/esm/{elevator.taro-uhrF7ChY.js → elevator.taro-BzVoaYw6.js} +0 -1
  119. package/dist/esm/{ellipsis.taro-3gDXpBmX.js → ellipsis.taro-dxOx8h7S.js} +0 -1
  120. package/dist/esm/{empty.taro-C61QNHep.js → empty.taro-DgmUYpBc.js} +0 -1
  121. package/dist/esm/{fixednav.taro-CJUDQcX1.js → fixednav.taro-CewDiT-u.js} +1 -2
  122. package/dist/esm/{formitem.taro-DDNlpN_O.js → formitem.taro-Y-hHJ2oh.js} +1 -1
  123. package/dist/esm/{grid.taro-BA76RrgT.js → grid.taro-C4xSMhg4.js} +1 -2
  124. package/dist/esm/{griditem.taro-JLddv9zD.js → griditem.taro-DeXl7qNi.js} +0 -1
  125. package/dist/esm/{image.taro-BLz2WCva.js → image.taro-ESa7sdbM.js} +0 -1
  126. package/dist/esm/{imagepreview.taro-BMlwAhT0.js → imagepreview.taro-Wdlb0tIh.js} +10 -12
  127. package/dist/esm/{indicator.taro-CpHZtD9p.js → indicator.taro-Bmae9MdC.js} +0 -1
  128. package/dist/esm/{infiniteloading.taro-WiMpG-fU.js → infiniteloading.taro-Bnm-LVHC.js} +0 -1
  129. package/dist/esm/{input.taro-CAZ-rRMH.js → input.taro-sviVz6LS.js} +8 -13
  130. package/dist/esm/{inputnumber.taro-HU_Ndna2.js → inputnumber.taro-ByJ9DlU2.js} +0 -1
  131. package/dist/esm/{layout.taro-BE2868d6.js → layout.taro-C-aUcOOE.js} +0 -1
  132. package/dist/esm/{loading.taro-CRF1z5wQ.js → loading.taro-BfHqvYhy.js} +0 -1
  133. package/dist/esm/{menu.taro-J7oZoaGM.js → menu.taro-DkKY62ym.js} +1 -2
  134. package/dist/esm/{menuitem.taro-CaI5vTha.js → menuitem.taro-CKjl8_Cl.js} +2 -3
  135. package/dist/esm/{navbar.taro-B8u3DOE4.js → navbar.taro-COrKuU9p.js} +0 -1
  136. package/dist/esm/{noticebar.taro-BtudzdMD.js → noticebar.taro-cjVGemZE.js} +0 -1
  137. package/dist/esm/{numberkeyboard.taro-DjxjkImT.js → numberkeyboard.taro-CFJtMOew.js} +2 -3
  138. package/dist/esm/nutui-react.es.js +83 -83
  139. package/dist/esm/{overlay.taro--1Kf1D7C.js → overlay.taro-BJ3twlP0.js} +1 -2
  140. package/dist/esm/{pagination.taro-DAK6ddag.js → pagination.taro-B8hmHNgf.js} +0 -1
  141. package/dist/esm/{picker.taro-DR2HAkv6.js → picker.taro-CHsDIw4C.js} +2 -3
  142. package/dist/esm/{popover.taro-MnR5htLt.js → popover.taro-Dve2UnRF.js} +4 -6
  143. package/dist/esm/{popup.taro-B7_iPgl4.js → popup.taro-cT6cbAxw.js} +1 -2
  144. package/dist/esm/{price.taro-UVRHPHRD.js → price.taro-DdR5NSIA.js} +0 -1
  145. package/dist/esm/{progress.taro-rjiPI6mD.js → progress.taro-BFWQ2MvM.js} +0 -1
  146. package/dist/esm/{range.taro-CsC41L60.js → range.taro-BeVCaZ4r.js} +0 -1
  147. package/dist/esm/{rate.taro-BABLqt4h.js → rate.taro-lOoACxLq.js} +0 -1
  148. package/dist/esm/{row.taro-C3YvH_nz.js → row.taro-ItEq1Bi5.js} +0 -1
  149. package/dist/esm/{safearea.taro-BMQHr7tu.js → safearea.taro-BJpvFsMf.js} +1 -0
  150. package/dist/esm/{searchbar.taro-PfVx6o-6.js → searchbar.taro-B31m8apz.js} +6 -7
  151. package/dist/esm/{shortpassword.taro-GkcE-e__.js → shortpassword.taro-BVp4BrTs.js} +3 -3
  152. package/dist/esm/{sidenavbar.taro-5d-6iiNq.js → sidenavbar.taro-DGnJgxEe.js} +5 -6
  153. package/dist/esm/{signature.taro-Bn9VNn62.js → signature.taro-DTZCZMDZ.js} +1 -2
  154. package/dist/esm/{skeleton.taro-BwIDIf2p.js → skeleton.taro-C3vp7bWb.js} +1 -2
  155. package/dist/esm/{space.taro-CZ999etm.js → space.taro-B1KsEPZL.js} +0 -1
  156. package/dist/esm/{step.taro-DLr2GzYk.js → step.taro-CaRHnSOF.js} +0 -1
  157. package/dist/esm/{steps.taro-C8Yg1Sns.js → steps.taro-BoVGFMxx.js} +1 -2
  158. package/dist/esm/{sticky.taro-DRBk3gkQ.js → sticky.taro-CqiMtDv9.js} +0 -1
  159. package/dist/esm/{switch.taro-D1HgJoJz.js → switch.taro-Mq1wBEGz.js} +0 -1
  160. package/dist/esm/{tabbar.taro-CVp3ZaqP.js → tabbar.taro-DD5HcQgp.js} +1 -2
  161. package/dist/esm/{tabbaritem.taro-C_90fvMh.js → tabbaritem.taro-ptdJI0xv.js} +1 -1
  162. package/dist/esm/{table.taro-ClLmfqz3.js → table.taro-EwAQJ6jp.js} +1 -2
  163. package/dist/esm/{tabs.taro-B4XgogPx.js → tabs.taro-gcyv8qGG.js} +4 -5
  164. package/dist/esm/{tag.taro-rKMK0jan.js → tag.taro-CFt28RLm.js} +0 -1
  165. package/dist/esm/{textarea.taro-BJIFCpKb.js → textarea.taro-DLS0EQeJ.js} +0 -1
  166. package/dist/esm/{timedetail.taro-x6Zey1xi.js → timedetail.taro-ya5JNy2L.js} +0 -1
  167. package/dist/esm/{timeselect.taro-DkdpBJlT.js → timeselect.taro-C64SUiXS.js} +2 -3
  168. package/dist/esm/{toast.taro-B0YEmeDn.js → toast.taro-CSqE0aIO.js} +1 -1
  169. package/dist/esm/{tour.taro-CdX6pugO.js → tour.taro-DegQCG1T.js} +1 -2
  170. package/dist/esm/{trendarrow.taro-BHUetKSS.js → trendarrow.taro-B2QGvXG0.js} +0 -1
  171. package/dist/esm/{uploader.taro-DMmTl0Cp.js → uploader.taro-BE4c5x9T.js} +4 -5
  172. package/dist/esm/{video.taro-DJQeroOH.js → video.taro-Bm5bDmIG.js} +0 -1
  173. package/dist/esm/{virtuallist.taro-Cl08vfdg.js → virtuallist.taro-GLen2Ay5.js} +1 -4
  174. package/dist/esm/{watermark.taro-BxM8VfXb.js → watermark.taro-BL5bLewc.js} +0 -1
  175. package/dist/locales/base.js +1 -1
  176. package/dist/locales/en-US.js +1 -1
  177. package/dist/locales/id-ID.js +1 -1
  178. package/dist/locales/tr-TR.js +1 -1
  179. package/dist/locales/zh-CN.js +1 -1
  180. package/dist/locales/zh-TW.js +1 -1
  181. package/dist/locales/zh-UG.js +1 -1
  182. package/dist/nutui.react.es.js +158 -242
  183. package/dist/nutui.react.umd.js +158 -242
  184. package/dist/packages/menu/menu.scss +1 -0
  185. package/dist/packages/menuitem/menuitem.scss +1 -0
  186. package/dist/packages/table/table.scss +2 -1
  187. package/dist/style.css +1 -1
  188. package/dist/style.mjs +1 -1
  189. package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +5 -1
  190. package/package.json +1 -1
  191. package/dist/types/utils/use-lock-fn.d.ts +0 -2
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.3 Tue Apr 30 2024 14:13:14 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.5 Fri May 17 2024 15:39:38 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -197,7 +197,7 @@ const ComponentDefaults = {
197
197
  style: {}
198
198
  };
199
199
  const prefixCls$2 = "nut-button";
200
- const defaultProps$1w = {
200
+ const defaultProps$1v = {
201
201
  ...ComponentDefaults,
202
202
  color: "",
203
203
  type: "default",
@@ -231,7 +231,7 @@ const Button = React__default.forwardRef(
231
231
  onClick,
232
232
  ...rest
233
233
  } = {
234
- ...defaultProps$1w,
234
+ ...defaultProps$1v,
235
235
  ...props
236
236
  };
237
237
  const getStyle = useCallback(() => {
@@ -297,7 +297,7 @@ const Button = React__default.forwardRef(
297
297
  );
298
298
  Button.displayName = "NutButton";
299
299
  const CellGroupContext = createContext(null);
300
- const defaultProps$1v = {
300
+ const defaultProps$1u = {
301
301
  ...ComponentDefaults,
302
302
  title: "",
303
303
  description: "",
@@ -306,7 +306,7 @@ const defaultProps$1v = {
306
306
  const classPrefix$r = "nut-cell-group";
307
307
  const CellGroup = (props) => {
308
308
  const { children, className, title, description, divider, ...rest } = {
309
- ...defaultProps$1v,
309
+ ...defaultProps$1u,
310
310
  ...props
311
311
  };
312
312
  return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix$r, className), ...rest }, title ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$r}-title` }, title) : null, description ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$r}-description` }, description) : null, /* @__PURE__ */ React__default.createElement(
@@ -317,9 +317,8 @@ const CellGroup = (props) => {
317
317
  /* @__PURE__ */ React__default.createElement(CellGroupContext.Provider, { value: { divider } }, children)
318
318
  ));
319
319
  };
320
- CellGroup.defaultProps = defaultProps$1v;
321
320
  CellGroup.displayName = "NutCellGroup";
322
- const defaultProps$1u = {
321
+ const defaultProps$1t = {
323
322
  ...ComponentDefaults,
324
323
  title: null,
325
324
  description: null,
@@ -344,7 +343,7 @@ const Cell = (props) => {
344
343
  style,
345
344
  ...rest
346
345
  } = {
347
- ...defaultProps$1u,
346
+ ...defaultProps$1t,
348
347
  ...props
349
348
  };
350
349
  const handleClick = (event) => {
@@ -377,7 +376,6 @@ const Cell = (props) => {
377
376
  (ctx == null ? void 0 : ctx.divider) ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$q}-divider` }) : null
378
377
  );
379
378
  };
380
- Cell.defaultProps = defaultProps$1u;
381
379
  Cell.displayName = "NutCell";
382
380
  Cell.Group = CellGroup;
383
381
  var INFINITY = 1 / 0;
@@ -1523,7 +1521,7 @@ ConfigProvider.displayName = "NutConfigProvider";
1523
1521
  const pxCheck = (value) => {
1524
1522
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
1525
1523
  };
1526
- const defaultProps$1t = {
1524
+ const defaultProps$1s = {
1527
1525
  src: "",
1528
1526
  error: true,
1529
1527
  loading: true
@@ -1542,7 +1540,7 @@ const Image$1 = (props) => {
1542
1540
  onLoad,
1543
1541
  onError,
1544
1542
  ...rest
1545
- } = { ...defaultProps$1t, ...props };
1543
+ } = { ...defaultProps$1s, ...props };
1546
1544
  const [innerLoading, setInnerLoading] = useState(true);
1547
1545
  const [isError, setIsError] = useState(false);
1548
1546
  const handleLoad = (e2) => {
@@ -1602,7 +1600,6 @@ const Image$1 = (props) => {
1602
1600
  }
1603
1601
  ), renderLoading(), renderErrorImg());
1604
1602
  };
1605
- Image$1.defaultProps = defaultProps$1t;
1606
1603
  Image$1.displayName = "NutImage";
1607
1604
  function _extends$1() {
1608
1605
  _extends$1 = Object.assign ? Object.assign.bind() : function(target) {
@@ -3548,7 +3545,7 @@ const Overlay = (props) => {
3548
3545
  };
3549
3546
  const classPrefix2 = `nut-overlay`;
3550
3547
  const [innerVisible, setInnerVisible] = useState(visible);
3551
- const nodeRef = useLockScrollTaro(!!props.lockScroll && innerVisible);
3548
+ const nodeRef = useLockScrollTaro(!!lockScroll && innerVisible);
3552
3549
  useEffect(() => {
3553
3550
  if (visible) {
3554
3551
  setInnerVisible(true);
@@ -3596,10 +3593,9 @@ const Overlay = (props) => {
3596
3593
  )
3597
3594
  ));
3598
3595
  };
3599
- Overlay.defaultProps = defaultOverlayProps;
3600
3596
  Overlay.displayName = "NutOverlay";
3601
3597
  const DataContext$1 = createContext({});
3602
- const defaultProps$1s = {
3598
+ const defaultProps$1r = {
3603
3599
  ...ComponentDefaults,
3604
3600
  span: "24",
3605
3601
  offset: "0",
@@ -3607,7 +3603,7 @@ const defaultProps$1s = {
3607
3603
  };
3608
3604
  const Col = (props) => {
3609
3605
  const { className, style, span, offset, children, onClick } = {
3610
- ...defaultProps$1s,
3606
+ ...defaultProps$1r,
3611
3607
  ...props
3612
3608
  };
3613
3609
  const [colName, setColName] = useState("");
@@ -3639,9 +3635,8 @@ const Col = (props) => {
3639
3635
  children
3640
3636
  );
3641
3637
  };
3642
- Col.defaultProps = defaultProps$1s;
3643
3638
  Col.displayName = "NutCol";
3644
- const defaultProps$1r = {
3639
+ const defaultProps$1q = {
3645
3640
  ...ComponentDefaults,
3646
3641
  contentPosition: "center",
3647
3642
  direction: "horizontal"
@@ -3649,7 +3644,7 @@ const defaultProps$1r = {
3649
3644
  const classPrefix$o = `nut-divider`;
3650
3645
  const Divider = (props) => {
3651
3646
  const { children, contentPosition, style, className, direction, ...rest } = {
3652
- ...defaultProps$1r,
3647
+ ...defaultProps$1q,
3653
3648
  ...props
3654
3649
  };
3655
3650
  const classes = direction === "horizontal" ? classNames({
@@ -3664,14 +3659,13 @@ const Divider = (props) => {
3664
3659
  });
3665
3660
  return /* @__PURE__ */ React__default.createElement("div", { className: `${classes} ${className || ""}`, style, ...rest }, children);
3666
3661
  };
3667
- Divider.defaultProps = defaultProps$1r;
3668
3662
  Divider.displayName = "NutDivider";
3669
3663
  const gridContext = {
3670
3664
  onClick: (item, index) => {
3671
3665
  }
3672
3666
  };
3673
3667
  const GridContext = React__default.createContext(gridContext);
3674
- const defaultProps$1q = {
3668
+ const defaultProps$1p = {
3675
3669
  text: "",
3676
3670
  columns: 4,
3677
3671
  gap: 0,
@@ -3697,7 +3691,7 @@ const GridItem = (props) => {
3697
3691
  onClick,
3698
3692
  ...rest
3699
3693
  } = {
3700
- ...defaultProps$1q,
3694
+ ...defaultProps$1p,
3701
3695
  ...props
3702
3696
  };
3703
3697
  const classPrefix2 = "nut-grid-item";
@@ -3755,9 +3749,8 @@ const GridItem = (props) => {
3755
3749
  /* @__PURE__ */ React__default.createElement("div", { className: contentClass() }, children && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children), text && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-text` }, text))
3756
3750
  );
3757
3751
  };
3758
- GridItem.defaultProps = defaultProps$1q;
3759
3752
  GridItem.displayName = "NutGridItem";
3760
- const defaultProps$1p = {
3753
+ const defaultProps$1o = {
3761
3754
  columns: 4,
3762
3755
  gap: 0,
3763
3756
  center: true,
@@ -3778,7 +3771,7 @@ const Grid = (props) => {
3778
3771
  className,
3779
3772
  onClick,
3780
3773
  ...rest
3781
- } = { ...defaultProps$1p, ...props };
3774
+ } = { ...defaultProps$1o, ...props };
3782
3775
  const childrenDom = React__default.Children.toArray(children);
3783
3776
  const classPrefix2 = "nut-grid";
3784
3777
  const rootClass = () => {
@@ -3812,18 +3805,16 @@ const Grid = (props) => {
3812
3805
  });
3813
3806
  })));
3814
3807
  };
3815
- Grid.defaultProps = defaultProps$1p;
3816
3808
  Grid.displayName = "NutGrid";
3817
3809
  Grid.Item = GridItem;
3818
- const defaultProps$1o = {};
3810
+ const defaultProps$1n = {};
3819
3811
  const Layout = (props) => {
3820
- ({ ...defaultProps$1o, ...props });
3812
+ ({ ...defaultProps$1n, ...props });
3821
3813
  return /* @__PURE__ */ React__default.createElement("div", { className: "nut-layout" }, "Layout");
3822
3814
  };
3823
- Layout.defaultProps = defaultProps$1o;
3824
3815
  Layout.displayName = "NutLayout";
3825
3816
  const classPrefix$n = "nut-row";
3826
- const defaultProps$1n = {
3817
+ const defaultProps$1m = {
3827
3818
  ...ComponentDefaults,
3828
3819
  type: "",
3829
3820
  justify: "start",
@@ -3843,7 +3834,7 @@ const Row = (props) => {
3843
3834
  gutter,
3844
3835
  onClick
3845
3836
  } = {
3846
- ...defaultProps$1n,
3837
+ ...defaultProps$1m,
3847
3838
  ...props
3848
3839
  };
3849
3840
  const getClass = (prefix, type22) => {
@@ -3875,15 +3866,14 @@ const Row = (props) => {
3875
3866
  children
3876
3867
  ));
3877
3868
  };
3878
- Row.defaultProps = defaultProps$1n;
3879
3869
  Row.displayName = "NutRow";
3880
3870
  const prefixCls$1 = "nut-space";
3881
- const defaultProps$1m = {
3871
+ const defaultProps$1l = {
3882
3872
  direction: "horizontal"
3883
3873
  };
3884
3874
  const Space = (props) => {
3885
3875
  const { className, style, children, wrap, align, direction, justify } = {
3886
- ...defaultProps$1m,
3876
+ ...defaultProps$1l,
3887
3877
  ...props
3888
3878
  };
3889
3879
  const cls = classNames(
@@ -3898,7 +3888,6 @@ const Space = (props) => {
3898
3888
  return child !== null && child !== void 0 && /* @__PURE__ */ React__default.createElement("div", { className: `${prefixCls$1}-item` }, child);
3899
3889
  }));
3900
3890
  };
3901
- Space.defaultProps = defaultProps$1m;
3902
3891
  Space.displayName = "NutSpace";
3903
3892
  function useWatch(dep, callback, config2 = { immediate: false }) {
3904
3893
  const { immediate } = config2;
@@ -3976,7 +3965,7 @@ const getRectByTaro = async (element) => {
3976
3965
  }
3977
3966
  return Promise.resolve(makeRect(0, 0));
3978
3967
  };
3979
- const defaultProps$1l = {
3968
+ const defaultProps$1k = {
3980
3969
  ...ComponentDefaults,
3981
3970
  position: "top",
3982
3971
  zIndex: 900
@@ -3993,7 +3982,7 @@ const Sticky = (props) => {
3993
3982
  className,
3994
3983
  onChange,
3995
3984
  ...rest
3996
- } = { ...defaultProps$1l, ...props };
3985
+ } = { ...defaultProps$1k, ...props };
3997
3986
  const stickyRef = useRef(null);
3998
3987
  const rootRef = useRef(null);
3999
3988
  const [rootRect, setRootRect] = useState({});
@@ -4099,7 +4088,6 @@ const Sticky = (props) => {
4099
4088
  )
4100
4089
  );
4101
4090
  };
4102
- Sticky.defaultProps = defaultProps$1l;
4103
4091
  Sticky.displayName = "NutSticky";
4104
4092
  const classPrefix$l = "nut-safe-area";
4105
4093
  const SafeArea = (props) => {
@@ -4113,7 +4101,8 @@ const SafeArea = (props) => {
4113
4101
  }
4114
4102
  );
4115
4103
  };
4116
- const defaultProps$1k = {
4104
+ SafeArea.displayName = "NutSafeArea";
4105
+ const defaultProps$1j = {
4117
4106
  ...ComponentDefaults,
4118
4107
  threshold: 200,
4119
4108
  zIndex: 900,
@@ -4122,7 +4111,7 @@ const defaultProps$1k = {
4122
4111
  const BackTop = (props) => {
4123
4112
  const rtl = useRtl();
4124
4113
  const { children, threshold, zIndex, className, duration, style, onClick } = {
4125
- ...defaultProps$1k,
4114
+ ...defaultProps$1j,
4126
4115
  ...props
4127
4116
  };
4128
4117
  const classPrefix2 = "nut-backtop";
@@ -4164,10 +4153,9 @@ const BackTop = (props) => {
4164
4153
  children || /* @__PURE__ */ React__default.createElement(D, { size: 19, className: "nut-backtop-main" })
4165
4154
  );
4166
4155
  };
4167
- BackTop.defaultProps = defaultProps$1k;
4168
4156
  BackTop.displayName = "NutBackTop";
4169
4157
  const elevatorContext = createContext({});
4170
- const defaultProps$1j = {
4158
+ const defaultProps$1i = {
4171
4159
  ...ComponentDefaults,
4172
4160
  height: "200px",
4173
4161
  floorKey: "title",
@@ -4194,7 +4182,7 @@ const Elevator = (props) => {
4194
4182
  children,
4195
4183
  ...rest
4196
4184
  } = {
4197
- ...defaultProps$1j,
4185
+ ...defaultProps$1i,
4198
4186
  ...props
4199
4187
  };
4200
4188
  const classPrefix2 = "nut-elevator";
@@ -4409,10 +4397,9 @@ const Elevator = (props) => {
4409
4397
  })
4410
4398
  ))) : null, sticky && scrollY > 0 ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-list-fixed` }, /* @__PURE__ */ React__default.createElement("span", { className: `${classPrefix2}-list-fixed-title` }, list[codeIndex][floorKey])) : null);
4411
4399
  };
4412
- Elevator.defaultProps = defaultProps$1j;
4413
4400
  Elevator.displayName = "NutElevator";
4414
4401
  Elevator.Context = elevatorContext;
4415
- const defaultProps$1i = {
4402
+ const defaultProps$1h = {
4416
4403
  ...ComponentDefaults,
4417
4404
  activeText: "",
4418
4405
  inactiveText: "",
@@ -4440,7 +4427,7 @@ const FixedNav = (props) => {
4440
4427
  content,
4441
4428
  ...rest
4442
4429
  } = {
4443
- ...defaultProps$1i,
4430
+ ...defaultProps$1h,
4444
4431
  ...props
4445
4432
  };
4446
4433
  const classPrefix2 = "nut-fixednav";
@@ -4492,9 +4479,8 @@ const FixedNav = (props) => {
4492
4479
  /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-btn`, onClick: () => onUpdateValue() }, content || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(g$5, { color: "#fff" }), /* @__PURE__ */ React__default.createElement("div", { className: "text" }, visible ? activeText || locale.fixednav.activeText : inactiveText || locale.fixednav.inactiveText)))
4493
4480
  );
4494
4481
  };
4495
- FixedNav.defaultProps = defaultProps$1i;
4496
4482
  FixedNav.displayName = "NutFixedNav";
4497
- const defaultProps$1h = {
4483
+ const defaultProps$1g = {
4498
4484
  ...ComponentDefaults,
4499
4485
  left: "",
4500
4486
  right: "",
@@ -4519,7 +4505,7 @@ const NavBar = (props) => {
4519
4505
  zIndex,
4520
4506
  onBackClick
4521
4507
  } = {
4522
- ...defaultProps$1h,
4508
+ ...defaultProps$1g,
4523
4509
  ...props
4524
4510
  };
4525
4511
  const classPrefix2 = "nut-navbar";
@@ -4597,9 +4583,8 @@ const NavBar = (props) => {
4597
4583
  const cls = classNames(classPrefix2, classes, className);
4598
4584
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, fixed && placeholder ? /* @__PURE__ */ React__default.createElement(View, { className: `${classPrefix2}-placeholder` }, renderWrapper()) : renderWrapper());
4599
4585
  };
4600
- NavBar.defaultProps = defaultProps$1h;
4601
4586
  NavBar.displayName = "NutNavBar";
4602
- const defaultProps$1g = {
4587
+ const defaultProps$1f = {
4603
4588
  ...ComponentDefaults,
4604
4589
  position: "center",
4605
4590
  transition: "",
@@ -4652,7 +4637,7 @@ const Popup = (props) => {
4652
4637
  afterShow,
4653
4638
  afterClose,
4654
4639
  onClick
4655
- } = { ...defaultProps$1g, ...props };
4640
+ } = { ...defaultProps$1f, ...props };
4656
4641
  let innerIndex = zIndex || _zIndex;
4657
4642
  const [index, setIndex] = useState(innerIndex);
4658
4643
  const [innerVisible, setInnerVisible] = useState(visible);
@@ -4792,10 +4777,9 @@ const Popup = (props) => {
4792
4777
  }, [position, transition]);
4793
4778
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, renderToContainer(portal, renderNode()));
4794
4779
  };
4795
- Popup.defaultProps = defaultProps$1g;
4796
4780
  Popup.displayName = "NutPopup";
4797
4781
  const OffsetContext = createContext(20);
4798
- const defaultProps$1f = {
4782
+ const defaultProps$1e = {
4799
4783
  ...ComponentDefaults,
4800
4784
  position: "left",
4801
4785
  width: "80%"
@@ -4810,12 +4794,13 @@ const SideNavBar = (props) => {
4810
4794
  children,
4811
4795
  className,
4812
4796
  onClose,
4797
+ indent,
4813
4798
  ...rest
4814
4799
  } = {
4815
- ...defaultProps$1f,
4800
+ ...defaultProps$1e,
4816
4801
  ...props
4817
4802
  };
4818
- const indent = props.indent ? Number(props.indent) : 20;
4803
+ const innerIndent = indent ? Number(indent) : 20;
4819
4804
  const [sidenavbarShow, setSidenavbarShow] = useState(true);
4820
4805
  const handleClick = () => {
4821
4806
  setSidenavbarShow(!sidenavbarShow);
@@ -4838,7 +4823,7 @@ const SideNavBar = (props) => {
4838
4823
  "div",
4839
4824
  {
4840
4825
  className: `${classPrefix2}-title ${classPrefix2}-border-bt`,
4841
- style: { paddingLeft: `${indent}px` }
4826
+ style: { paddingLeft: `${innerIndent}px` }
4842
4827
  },
4843
4828
  title,
4844
4829
  /* @__PURE__ */ React__default.createElement(
@@ -4848,11 +4833,10 @@ const SideNavBar = (props) => {
4848
4833
  }
4849
4834
  )
4850
4835
  ),
4851
- /* @__PURE__ */ React__default.createElement(OffsetContext.Provider, { value: indent }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-content` }, children))
4836
+ /* @__PURE__ */ React__default.createElement(OffsetContext.Provider, { value: innerIndent }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-content` }, children))
4852
4837
  )))
4853
4838
  );
4854
4839
  };
4855
- SideNavBar.defaultProps = defaultProps$1f;
4856
4840
  SideNavBar.displayName = "NutSideNavBar";
4857
4841
  const SideNavBarItem = (props) => {
4858
4842
  const classPrefix2 = "nut-subsidenavbar";
@@ -4871,13 +4855,13 @@ const SideNavBarItem = (props) => {
4871
4855
  title
4872
4856
  );
4873
4857
  };
4874
- const defaultProps$1e = {
4858
+ const defaultProps$1d = {
4875
4859
  open: true
4876
4860
  };
4877
4861
  const SubSideNavBar = (props) => {
4878
4862
  const classPrefix2 = "nut-subsidenavbar";
4879
4863
  const { title, value, children, onClick, open: open2, ...rest } = {
4880
- ...defaultProps$1e,
4864
+ ...defaultProps$1d,
4881
4865
  ...props
4882
4866
  };
4883
4867
  const [subShow, setSubShow] = useState(open2);
@@ -4955,7 +4939,7 @@ function usePropsValue({
4955
4939
  );
4956
4940
  return [stateRef.current, setState];
4957
4941
  }
4958
- const defaultProps$1d = {
4942
+ const defaultProps$1c = {
4959
4943
  ...ComponentDefaults,
4960
4944
  value: "",
4961
4945
  dot: false,
@@ -4980,7 +4964,7 @@ const Badge = (props) => {
4980
4964
  color,
4981
4965
  fill
4982
4966
  } = {
4983
- ...defaultProps$1d,
4967
+ ...defaultProps$1c,
4984
4968
  ...props
4985
4969
  };
4986
4970
  const classPrefix2 = "nut-badge";
@@ -5036,10 +5020,9 @@ const Badge = (props) => {
5036
5020
  };
5037
5021
  return /* @__PURE__ */ React__default.createElement("div", { className: classes, style }, isIcon() && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-icon` }, value), children, !isIcon() && /* @__PURE__ */ React__default.createElement("div", { className: contentClasses, style: getStyle() }, content()));
5038
5022
  };
5039
- Badge.defaultProps = defaultProps$1d;
5040
5023
  Badge.displayName = "NutBadge";
5041
5024
  const TabbarContext = React__default.createContext(null);
5042
- const defaultProps$1c = {
5025
+ const defaultProps$1b = {
5043
5026
  ...ComponentDefaults,
5044
5027
  title: "",
5045
5028
  icon: null,
@@ -5065,7 +5048,7 @@ const TabbarItem = (props) => {
5065
5048
  index,
5066
5049
  ...rest
5067
5050
  } = {
5068
- ...defaultProps$1c,
5051
+ ...defaultProps$1b,
5069
5052
  ...props
5070
5053
  };
5071
5054
  const active = index === (ctx == null ? void 0 : ctx.selectIndex);
@@ -5103,7 +5086,7 @@ const TabbarItem = (props) => {
5103
5086
  icon ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React__default.createElement("div", { className: boxPrefix }, icon)), /* @__PURE__ */ React__default.createElement("div", { className: titleClass }, title)) : /* @__PURE__ */ React__default.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React__default.createElement("div", { className: titleClass }, title))
5104
5087
  );
5105
5088
  };
5106
- const defaultProps$1b = {
5089
+ const defaultProps$1a = {
5107
5090
  ...ComponentDefaults,
5108
5091
  defaultValue: 0,
5109
5092
  fixed: false,
@@ -5126,7 +5109,7 @@ const Tabbar = (props) => {
5126
5109
  style,
5127
5110
  onSwitch
5128
5111
  } = {
5129
- ...defaultProps$1b,
5112
+ ...defaultProps$1a,
5130
5113
  ...props
5131
5114
  };
5132
5115
  const classPrefix2 = "nut-tabbar";
@@ -5167,17 +5150,16 @@ const Tabbar = (props) => {
5167
5150
  (fixed || safeArea) && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-safe-area` })
5168
5151
  );
5169
5152
  };
5170
- Tabbar.defaultProps = defaultProps$1b;
5171
5153
  Tabbar.displayName = "NutTabbar";
5172
5154
  Tabbar.Item = TabbarItem;
5173
- const defaultProps$1a = {
5155
+ const defaultProps$19 = {
5174
5156
  title: "",
5175
5157
  value: "",
5176
5158
  disabled: false
5177
5159
  };
5178
5160
  const TabPane = (props) => {
5179
5161
  const { children, autoHeightClassName, className, disabled } = {
5180
- ...defaultProps$1a,
5162
+ ...defaultProps$19,
5181
5163
  ...props
5182
5164
  };
5183
5165
  const classPrefix2 = "nut-tabpane";
@@ -5218,7 +5200,7 @@ function useUuid() {
5218
5200
  const idRef = useRef(uniqueId());
5219
5201
  return idRef.current;
5220
5202
  }
5221
- const defaultProps$19 = {
5203
+ const defaultProps$18 = {
5222
5204
  ...ComponentDefaults,
5223
5205
  tabStyle: {},
5224
5206
  activeColor: "",
@@ -5244,15 +5226,17 @@ const Tabs = (props) => {
5244
5226
  onChange,
5245
5227
  className,
5246
5228
  autoHeight,
5229
+ value: outerValue,
5230
+ defaultValue: outerDefaultValue,
5247
5231
  ...rest
5248
5232
  } = {
5249
- ...defaultProps$19,
5233
+ ...defaultProps$18,
5250
5234
  ...props
5251
5235
  };
5252
5236
  const uuid = useUuid();
5253
5237
  const [value, setValue] = usePropsValue({
5254
- value: props.value,
5255
- defaultValue: props.defaultValue,
5238
+ value: outerValue,
5239
+ defaultValue: outerDefaultValue,
5256
5240
  finalValue: 0,
5257
5241
  onChange
5258
5242
  });
@@ -5350,7 +5334,7 @@ const Tabs = (props) => {
5350
5334
  if (!titleRect)
5351
5335
  return;
5352
5336
  let to = 0;
5353
- if (props.direction === "vertical") {
5337
+ if (direction === "vertical") {
5354
5338
  const top = titleRects.slice(0, index).reduce((prev, curr) => prev + curr.height, 0);
5355
5339
  to = top - (navRectRef.current.height - titleRect.height) / 2;
5356
5340
  } else {
@@ -5468,10 +5452,9 @@ const Tabs = (props) => {
5468
5452
  return React__default.cloneElement(child, childProps);
5469
5453
  }))));
5470
5454
  };
5471
- Tabs.defaultProps = defaultProps$19;
5472
5455
  Tabs.displayName = "NutTabs";
5473
5456
  Tabs.TabPane = TabPane;
5474
- const defaultProps$18 = {
5457
+ const defaultProps$17 = {
5475
5458
  type: "custom",
5476
5459
  existList: [],
5477
5460
  defaultIcon: null,
@@ -5490,7 +5473,7 @@ const ExistRender = (props) => {
5490
5473
  onSelect,
5491
5474
  onSwitch,
5492
5475
  ...rest
5493
- } = { ...defaultProps$18, ...props };
5476
+ } = { ...defaultProps$17, ...props };
5494
5477
  const classPrefix2 = "nut-address";
5495
5478
  const selectedExist = (item) => {
5496
5479
  existList.forEach((list, index) => {
@@ -5652,7 +5635,7 @@ class Tree {
5652
5635
  return pathNodes;
5653
5636
  }
5654
5637
  }
5655
- const defaultProps$17 = {
5638
+ const defaultProps$16 = {
5656
5639
  ...ComponentDefaults,
5657
5640
  activeColor: "",
5658
5641
  activeIcon: "checklist",
@@ -5691,11 +5674,13 @@ const InternalCascader = (props, ref) => {
5691
5674
  closeIconPosition,
5692
5675
  closeIcon,
5693
5676
  lazy,
5677
+ title,
5678
+ left: left2,
5694
5679
  onLoad,
5695
5680
  onClose,
5696
5681
  onChange,
5697
5682
  onPathChange
5698
- } = { ...defaultProps$17, ...props };
5683
+ } = { ...defaultProps$16, ...props };
5699
5684
  const [tabvalue, setTabvalue] = useState("c1");
5700
5685
  const [optionsData, setOptionsData] = useState([]);
5701
5686
  const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
@@ -5705,7 +5690,7 @@ const InternalCascader = (props, ref) => {
5705
5690
  finalValue: defaultValue
5706
5691
  });
5707
5692
  const [innerVisible, setInnerVisible] = usePropsValue({
5708
- value: props.visible,
5693
+ value: visible,
5709
5694
  defaultValue: void 0,
5710
5695
  finalValue: false
5711
5696
  });
@@ -5993,8 +5978,8 @@ const InternalCascader = (props, ref) => {
5993
5978
  closeIcon,
5994
5979
  closeable,
5995
5980
  closeIconPosition,
5996
- title: popup && props.title,
5997
- left: props.left,
5981
+ title: popup && title,
5982
+ left: left2,
5998
5983
  onOverlayClick: closePopup,
5999
5984
  onCloseIconClick: closePopup
6000
5985
  },
@@ -6002,9 +5987,8 @@ const InternalCascader = (props, ref) => {
6002
5987
  ) : renderTabs());
6003
5988
  };
6004
5989
  const Cascader = React__default.forwardRef(InternalCascader);
6005
- Cascader.defaultProps = defaultProps$17;
6006
5990
  Cascader.displayName = "NutCascader";
6007
- const defaultProps$16 = {
5991
+ const defaultProps$15 = {
6008
5992
  ...ComponentDefaults,
6009
5993
  visible: false,
6010
5994
  type: "custom",
@@ -6031,7 +6015,7 @@ const CustomRender = (props) => {
6031
6015
  onPathChange,
6032
6016
  ...rest
6033
6017
  } = {
6034
- ...defaultProps$16,
6018
+ ...defaultProps$15,
6035
6019
  ...props
6036
6020
  };
6037
6021
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, type4 === "custom" && /* @__PURE__ */ React__default.createElement(
@@ -6056,7 +6040,7 @@ const CustomRender = (props) => {
6056
6040
  }
6057
6041
  ));
6058
6042
  };
6059
- const defaultProps$15 = {
6043
+ const defaultProps$14 = {
6060
6044
  ...ComponentDefaults,
6061
6045
  defaultValue: [],
6062
6046
  type: "custom",
@@ -6098,7 +6082,7 @@ const InternalAddress = (props, ref) => {
6098
6082
  onSwitch,
6099
6083
  ...rest
6100
6084
  } = {
6101
- ...defaultProps$15,
6085
+ ...defaultProps$14,
6102
6086
  ...props
6103
6087
  };
6104
6088
  const classPrefix2 = "nut-address";
@@ -6190,7 +6174,6 @@ const InternalAddress = (props, ref) => {
6190
6174
  ));
6191
6175
  };
6192
6176
  const Address = forwardRef(InternalAddress);
6193
- Address.defaultProps = defaultProps$15;
6194
6177
  Address.displayName = "NutAddress";
6195
6178
  const Utils = {
6196
6179
  /**
@@ -6440,7 +6423,7 @@ const isEnd = (day, days) => {
6440
6423
  const isStartAndEnd = (days) => {
6441
6424
  return days.length >= 2 && Utils.isEqual(days[0], days[1]);
6442
6425
  };
6443
- const defaultProps$14 = {
6426
+ const defaultProps$13 = {
6444
6427
  ...ComponentDefaults,
6445
6428
  type: "single",
6446
6429
  autoBackfill: false,
@@ -6496,11 +6479,12 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
6496
6479
  renderDay,
6497
6480
  renderDayTop,
6498
6481
  renderDayBottom,
6482
+ value,
6499
6483
  onConfirm,
6500
6484
  onUpdate,
6501
6485
  onDayClick,
6502
6486
  onPageChange
6503
- } = { ...defaultProps$14, ...props };
6487
+ } = { ...defaultProps$13, ...props };
6504
6488
  const weekdays = locale.calendaritem.weekdays;
6505
6489
  const weeks = [
6506
6490
  ...weekdays.slice(firstDayOfWeek, 7),
@@ -6534,7 +6518,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
6534
6518
  return void 0;
6535
6519
  };
6536
6520
  const [currentDate, setCurrentDate] = usePropsValue({
6537
- value: props.value,
6521
+ value,
6538
6522
  defaultValue: resetDefaultValue(),
6539
6523
  finalValue: [],
6540
6524
  onChange: (val) => {
@@ -6740,7 +6724,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
6740
6724
  monthsData[current.lastCurrent],
6741
6725
  true
6742
6726
  );
6743
- } else if (props.type === "week") {
6727
+ } else if (type4 === "week") {
6744
6728
  chooseDay(
6745
6729
  { day: defaultData[2], type: "curr" },
6746
6730
  monthsData[current.current],
@@ -7053,9 +7037,8 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
7053
7037
  };
7054
7038
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : ""));
7055
7039
  });
7056
- CalendarItem.defaultProps = defaultProps$14;
7057
7040
  CalendarItem.displayName = "NutCalendarItem";
7058
- const defaultProps$13 = {
7041
+ const defaultProps$12 = {
7059
7042
  ...ComponentDefaults,
7060
7043
  type: "single",
7061
7044
  autoBackfill: false,
@@ -7118,7 +7101,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
7118
7101
  onConfirm,
7119
7102
  onDayClick,
7120
7103
  onPageChange
7121
- } = { ...defaultProps$13, ...props };
7104
+ } = { ...defaultProps$12, ...props };
7122
7105
  const calendarRef = useRef(null);
7123
7106
  const close2 = () => {
7124
7107
  onClose && onClose();
@@ -7193,7 +7176,6 @@ const Calendar = React__default.forwardRef((props, ref) => {
7193
7176
  renderItem()
7194
7177
  ) : renderItem());
7195
7178
  });
7196
- Calendar.defaultProps = defaultProps$13;
7197
7179
  Calendar.displayName = "NutCalendar";
7198
7180
  const left = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNNi42MDUgOS40OWEuNzcxLjc3MSAwIDAgMSAwLS45OGwzLjYtNC4zNzJhLjc3MS43NzEgMCAwIDEgMS4xOS45ODFMOC4yIDlsMy4xOTcgMy44ODFhLjc3MS43NzEgMCAxIDEtMS4xOTEuOThsLTMuNi00LjM3eiIvPjwvc3ZnPg==";
7199
7181
  const right = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNMTEuMzk2IDkuNDlhLjc3MS43NzEgMCAwIDAgMC0uOThsLTMuNi00LjM3MmEuNzcxLjc3MSAwIDAgMC0xLjE5MS45ODFMOS44IDlsLTMuMTk2IDMuODgxYS43NzEuNzcxIDAgMCAwIDEuMTkuOThsMy42LTQuMzd6Ii8+PC9zdmc+";
@@ -7268,7 +7250,7 @@ const getCurrentWeekDays = (day, firstDayOfWeek) => {
7268
7250
  )
7269
7251
  ];
7270
7252
  };
7271
- const defaultProps$12 = {
7253
+ const defaultProps$11 = {
7272
7254
  ...ComponentDefaults,
7273
7255
  type: "single",
7274
7256
  firstDayOfWeek: 0
@@ -7292,7 +7274,7 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
7292
7274
  onDayClick,
7293
7275
  onPageChange,
7294
7276
  onChange
7295
- } = { ...defaultProps$12, ...props };
7277
+ } = { ...defaultProps$11, ...props };
7296
7278
  const [month, setMonth] = useState(() => {
7297
7279
  let date4 = new Date(Date.now());
7298
7280
  const val = value || defaultValue;
@@ -7594,11 +7576,10 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
7594
7576
  };
7595
7577
  return days.length > 0 ? /* @__PURE__ */ React__default.createElement("div", { className: classNames(prefixCls, className), style }, renderHeader(), renderContent()) : null;
7596
7578
  });
7597
- CalendarCard.defaultProps = defaultProps$12;
7598
7579
  CalendarCard.displayName = "NutCalendarCard";
7599
7580
  const CheckboxGroupContext = createContext(null);
7600
7581
  const Context$1 = CheckboxGroupContext;
7601
- const defaultProps$11 = {
7582
+ const defaultProps$10 = {
7602
7583
  max: void 0,
7603
7584
  min: void 0,
7604
7585
  list: false,
@@ -7628,7 +7609,7 @@ const CheckboxGroup = React__default.forwardRef(
7628
7609
  direction,
7629
7610
  options,
7630
7611
  ...rest
7631
- } = { ...defaultProps$11, ...props };
7612
+ } = { ...defaultProps$10, ...props };
7632
7613
  useImperativeHandle(ref, () => ({
7633
7614
  toggle(state) {
7634
7615
  if (state === false) {
@@ -7720,9 +7701,9 @@ const CheckboxGroup = React__default.forwardRef(
7720
7701
  );
7721
7702
  }
7722
7703
  );
7723
- CheckboxGroup.defaultProps = defaultProps$11;
7704
+ CheckboxGroup.defaultProps = defaultProps$10;
7724
7705
  CheckboxGroup.displayName = "NutCheckboxGroup";
7725
- const defaultProps$10 = {
7706
+ const defaultProps$$ = {
7726
7707
  ...ComponentDefaults,
7727
7708
  disabled: false,
7728
7709
  shape: "round",
@@ -7736,7 +7717,7 @@ const defaultProps$10 = {
7736
7717
  const classPrefix$i = "nut-checkbox";
7737
7718
  const Checkbox = (props) => {
7738
7719
  const { children } = {
7739
- ...defaultProps$10,
7720
+ ...defaultProps$$,
7740
7721
  ...props
7741
7722
  };
7742
7723
  const {
@@ -7757,8 +7738,8 @@ const Checkbox = (props) => {
7757
7738
  let { labelPosition, ...rest } = others;
7758
7739
  const ctx = useContext(Context$1);
7759
7740
  let [innerChecked, setChecked] = usePropsValue({
7760
- value: props.checked,
7761
- defaultValue: props.defaultChecked,
7741
+ value: checked,
7742
+ defaultValue: defaultChecked,
7762
7743
  finalValue: defaultChecked,
7763
7744
  onChange
7764
7745
  });
@@ -7880,7 +7861,6 @@ const Checkbox = (props) => {
7880
7861
  renderCheckboxItem()
7881
7862
  );
7882
7863
  };
7883
- Checkbox.defaultProps = defaultProps$10;
7884
7864
  Checkbox.displayName = "NutCheckBox";
7885
7865
  Checkbox.Group = CheckboxGroup;
7886
7866
  const InternalPickerPanel = (props, ref) => {
@@ -8027,7 +8007,6 @@ const InternalPickerPanel = (props, ref) => {
8027
8007
  const getReference = async () => {
8028
8008
  const refe = await getRectByTaro(listRef == null ? void 0 : listRef.current);
8029
8009
  lineSpacing.current = refe.height ? refe.height : 36;
8030
- modifyStatus(true);
8031
8010
  };
8032
8011
  const touchRollerStyle = () => {
8033
8012
  return {
@@ -8127,7 +8106,7 @@ function useRefs() {
8127
8106
  }, []);
8128
8107
  return [refs.current, setRefs, reset];
8129
8108
  }
8130
- const defaultProps$$ = {
8109
+ const defaultProps$_ = {
8131
8110
  ...ComponentDefaults,
8132
8111
  visible: false,
8133
8112
  title: "",
@@ -8158,7 +8137,7 @@ const InternalPicker = (props, ref) => {
8158
8137
  afterClose,
8159
8138
  onChange,
8160
8139
  ...rest
8161
- } = { ...defaultProps$$, ...props };
8140
+ } = { ...defaultProps$_, ...props };
8162
8141
  const classPrefix2 = "nut-picker";
8163
8142
  const classes = classNames(classPrefix2, className);
8164
8143
  const [selectedValue, setSelectedValue] = usePropsValue({
@@ -8473,7 +8452,7 @@ const padZero = (num, targetLength = 2) => {
8473
8452
  return str;
8474
8453
  };
8475
8454
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
8476
- const defaultProps$_ = {
8455
+ const defaultProps$Z = {
8477
8456
  ...ComponentDefaults,
8478
8457
  visible: false,
8479
8458
  title: "",
@@ -8506,7 +8485,7 @@ const DatePicker = (props) => {
8506
8485
  style,
8507
8486
  ...rest
8508
8487
  } = {
8509
- ...defaultProps$_,
8488
+ ...defaultProps$Z,
8510
8489
  ...props
8511
8490
  };
8512
8491
  const { locale } = useConfig$1();
@@ -8797,7 +8776,7 @@ const DatePicker = (props) => {
8797
8776
  )
8798
8777
  );
8799
8778
  };
8800
- DatePicker.defaultProps = defaultProps$_;
8779
+ DatePicker.defaultProps = defaultProps$Z;
8801
8780
  DatePicker.displayName = "NutDatePicker";
8802
8781
  const Context = createContext({});
8803
8782
  function _extends() {
@@ -10040,7 +10019,7 @@ const useForm = (form) => {
10040
10019
  }
10041
10020
  return [formRef.current];
10042
10021
  };
10043
- const defaultProps$Z = {
10022
+ const defaultProps$Y = {
10044
10023
  ...ComponentDefaults,
10045
10024
  labelPosition: "right",
10046
10025
  starPosition: "left",
@@ -10071,7 +10050,7 @@ const Form = React__default.forwardRef(
10071
10050
  starPosition,
10072
10051
  form
10073
10052
  } = {
10074
- ...defaultProps$Z,
10053
+ ...defaultProps$Y,
10075
10054
  ...props
10076
10055
  };
10077
10056
  let formInstance;
@@ -10117,7 +10096,6 @@ const Form = React__default.forwardRef(
10117
10096
  );
10118
10097
  }
10119
10098
  );
10120
- Form.defaultProps = defaultProps$Z;
10121
10099
  Form.displayName = "NutForm";
10122
10100
  function isForwardRefComponent(component) {
10123
10101
  return component.type && component.type.$$typeof && // eslint-disable-next-line react/display-name
@@ -10128,7 +10106,7 @@ function isForwardRefComponent(component) {
10128
10106
  }
10129
10107
  ).$$typeof === component.type.$$typeof;
10130
10108
  }
10131
- const defaultProps$Y = {
10109
+ const defaultProps$X = {
10132
10110
  ...ComponentDefaults,
10133
10111
  required: false,
10134
10112
  name: "",
@@ -10224,7 +10202,7 @@ const _FormItem = class _FormItem extends React__default.Component {
10224
10202
  style,
10225
10203
  errorMessageAlign
10226
10204
  } = {
10227
- ...defaultProps$Y,
10205
+ ...defaultProps$X,
10228
10206
  ...this.props
10229
10207
  };
10230
10208
  const requiredInRules = rules2 == null ? void 0 : rules2.some((rule) => rule.required);
@@ -10286,7 +10264,7 @@ const _FormItem = class _FormItem extends React__default.Component {
10286
10264
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
10287
10265
  }
10288
10266
  };
10289
- _FormItem.defaultProps = defaultProps$Y;
10267
+ _FormItem.defaultProps = defaultProps$X;
10290
10268
  _FormItem.contextType = Context;
10291
10269
  let FormItem = _FormItem;
10292
10270
  const InnerForm = Form;
@@ -10316,7 +10294,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
10316
10294
  const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
10317
10295
  return value.replace(regExp, "");
10318
10296
  }
10319
- const defaultProps$X = {
10297
+ const defaultProps$W = {
10320
10298
  ...ComponentDefaults,
10321
10299
  type: "text",
10322
10300
  name: "",
@@ -10361,12 +10339,12 @@ const Input = forwardRef(
10361
10339
  value: _value,
10362
10340
  ...rest
10363
10341
  } = {
10364
- ...defaultProps$X,
10342
+ ...defaultProps$W,
10365
10343
  ...props
10366
10344
  };
10367
10345
  const [value, setValue] = usePropsValue({
10368
- value: props.value,
10369
- defaultValue: props.defaultValue,
10346
+ value: _value,
10347
+ defaultValue,
10370
10348
  finalValue: "",
10371
10349
  onChange
10372
10350
  });
@@ -10430,16 +10408,11 @@ const Input = forwardRef(
10430
10408
  updateValue(value2, "onChange");
10431
10409
  };
10432
10410
  const handleBlur = (event) => {
10433
- if (Taro.getEnv() === "WEB") {
10434
- const val = event.target.value;
10435
- updateValue(val, "onBlur");
10436
- setTimeout(() => {
10437
- setActive(false);
10438
- }, 50);
10439
- } else {
10440
- updateValue(value, "onBlur");
10411
+ const val = Taro.getEnv() === "WEB" ? event.target.value : value;
10412
+ updateValue(val, "onBlur");
10413
+ setTimeout(() => {
10441
10414
  setActive(false);
10442
- }
10415
+ }, 200);
10443
10416
  };
10444
10417
  const inputType = (type22) => {
10445
10418
  if (getEnv() === ENV_TYPE.WEB) {
@@ -10500,7 +10473,8 @@ const Input = forwardRef(
10500
10473
  {
10501
10474
  style: {
10502
10475
  display: clearable && !readOnly && active && value.length > 0 ? "flex" : "none",
10503
- alignItems: "center"
10476
+ alignItems: "center",
10477
+ cursor: "pointer"
10504
10478
  },
10505
10479
  onClick: (e2) => {
10506
10480
  e2.stopPropagation();
@@ -10515,9 +10489,8 @@ const Input = forwardRef(
10515
10489
  );
10516
10490
  }
10517
10491
  );
10518
- Input.defaultProps = defaultProps$X;
10519
10492
  Input.displayName = "NutInput";
10520
- const defaultProps$W = {
10493
+ const defaultProps$V = {
10521
10494
  ...ComponentDefaults,
10522
10495
  disabled: false,
10523
10496
  readOnly: false,
@@ -10555,7 +10528,7 @@ const InputNumber = (props) => {
10555
10528
  onChange,
10556
10529
  ...restProps
10557
10530
  } = {
10558
- ...defaultProps$W,
10531
+ ...defaultProps$V,
10559
10532
  ...props
10560
10533
  };
10561
10534
  const classes = classNames(classPrefix$h, className, {
@@ -10715,9 +10688,8 @@ const InputNumber = (props) => {
10715
10688
  }
10716
10689
  )));
10717
10690
  };
10718
- InputNumber.defaultProps = defaultProps$W;
10719
10691
  InputNumber.displayName = "NutInputNumber";
10720
- const defaultProps$V = {
10692
+ const defaultProps$U = {
10721
10693
  ...ComponentDefaults,
10722
10694
  columns: 1,
10723
10695
  direction: "down",
@@ -10748,7 +10720,7 @@ const MenuItem = forwardRef((props, ref) => {
10748
10720
  parent,
10749
10721
  index
10750
10722
  } = {
10751
- ...defaultProps$V,
10723
+ ...defaultProps$U,
10752
10724
  ...props
10753
10725
  };
10754
10726
  const [showPopup, setShowPopup] = useState(show2);
@@ -10909,7 +10881,7 @@ const MenuItem = forwardRef((props, ref) => {
10909
10881
  g$3,
10910
10882
  {
10911
10883
  color: activeColor,
10912
- size: 10,
10884
+ size: 16,
10913
10885
  className: getIconCName(item.value, value)
10914
10886
  }
10915
10887
  )) : null,
@@ -10928,9 +10900,8 @@ const MenuItem = forwardRef((props, ref) => {
10928
10900
  )
10929
10901
  ));
10930
10902
  });
10931
- MenuItem.defaultProps = defaultProps$V;
10932
10903
  MenuItem.displayName = "NutMenuItem";
10933
- const defaultProps$U = {
10904
+ const defaultProps$T = {
10934
10905
  ...ComponentDefaults,
10935
10906
  activeColor: "",
10936
10907
  closeOnOverlayClick: true,
@@ -10957,7 +10928,7 @@ const Menu = (props) => {
10957
10928
  onOpen,
10958
10929
  ...rest
10959
10930
  } = {
10960
- ...defaultProps$U,
10931
+ ...defaultProps$T,
10961
10932
  ...props
10962
10933
  };
10963
10934
  const menuRef = useRef(null);
@@ -11082,19 +11053,8 @@ const Menu = (props) => {
11082
11053
  cloneChildren()
11083
11054
  );
11084
11055
  };
11085
- Menu.defaultProps = defaultProps$U;
11086
11056
  Menu.displayName = "NutMenu";
11087
11057
  Menu.Item = MenuItem;
11088
- const defaultProps$T = {
11089
- ...ComponentDefaults,
11090
- visible: false,
11091
- rightActions: "",
11092
- type: "default",
11093
- custom: [],
11094
- random: false,
11095
- onClose: () => {
11096
- }
11097
- };
11098
11058
  const NumberKeyboard = (props) => {
11099
11059
  const { locale } = useConfig$1();
11100
11060
  const {
@@ -11233,7 +11193,6 @@ const NumberKeyboard = (props) => {
11233
11193
  ))))
11234
11194
  );
11235
11195
  };
11236
- NumberKeyboard.defaultProps = defaultProps$T;
11237
11196
  NumberKeyboard.displayName = "NutNumberKeyboard";
11238
11197
  const RadioContext = React__default.createContext(null);
11239
11198
  const defaultProps$S = {
@@ -11758,7 +11717,6 @@ const Range = (props) => {
11758
11717
  renderButton()
11759
11718
  ))), maxDescription !== null && /* @__PURE__ */ React__default.createElement("div", { className: "max" }, maxDescription || max));
11760
11719
  };
11761
- Range.defaultProps = defaultProps$Q;
11762
11720
  Range.displayName = "NutRange";
11763
11721
  const defaultProps$P = {
11764
11722
  ...ComponentDefaults,
@@ -11945,7 +11903,6 @@ const Rate = (props) => {
11945
11903
  })
11946
11904
  );
11947
11905
  };
11948
- Rate.defaultProps = defaultProps$P;
11949
11906
  Rate.displayName = "NutRate";
11950
11907
  const defaultProps$O = {
11951
11908
  ...ComponentDefaults,
@@ -11966,8 +11923,9 @@ const SearchBar = (props) => {
11966
11923
  const classPrefix2 = "nut-searchbar";
11967
11924
  const { locale } = useConfig$1();
11968
11925
  const searchRef = useRef(null);
11969
- const [value, setValue] = useState(() => props.value);
11970
11926
  const {
11927
+ value: outerValue,
11928
+ style,
11971
11929
  placeholder,
11972
11930
  shape,
11973
11931
  className,
@@ -11991,6 +11949,7 @@ const SearchBar = (props) => {
11991
11949
  ...defaultProps$O,
11992
11950
  ...props
11993
11951
  };
11952
+ const [value, setValue] = useState(() => outerValue);
11994
11953
  const forceFocus = () => {
11995
11954
  const searchSelf = searchRef.current;
11996
11955
  searchSelf && searchSelf.focus();
@@ -12013,8 +11972,8 @@ const SearchBar = (props) => {
12013
11972
  onBlur && (onBlur == null ? void 0 : onBlur(value2, event));
12014
11973
  };
12015
11974
  useEffect(() => {
12016
- setValue(props.value || "");
12017
- }, [props.value]);
11975
+ setValue(outerValue || "");
11976
+ }, [outerValue]);
12018
11977
  useEffect(() => {
12019
11978
  autoFocus && forceFocus();
12020
11979
  }, [autoFocus]);
@@ -12024,7 +11983,7 @@ const SearchBar = (props) => {
12024
11983
  {
12025
11984
  className: `${classPrefix2}-input ${clearable ? `${classPrefix2}-input-clear` : ""}`,
12026
11985
  ref: searchRef,
12027
- style: { ...props.style },
11986
+ style,
12028
11987
  value: value || "",
12029
11988
  placeholder: placeholder || locale.placeholder,
12030
11989
  disabled,
@@ -12091,7 +12050,7 @@ const SearchBar = (props) => {
12091
12050
  "div",
12092
12051
  {
12093
12052
  className: `${classPrefix2} ${disabled ? `${classPrefix2}-disabled` : ""} ${className || ""}`,
12094
- style: { ...props.style }
12053
+ style
12095
12054
  },
12096
12055
  renderLeft(),
12097
12056
  /* @__PURE__ */ React__default.createElement(
@@ -12107,7 +12066,6 @@ const SearchBar = (props) => {
12107
12066
  renderRight()
12108
12067
  );
12109
12068
  };
12110
- SearchBar.defaultProps = defaultProps$O;
12111
12069
  SearchBar.displayName = "NutSearchBar";
12112
12070
  const defaultProps$N = {
12113
12071
  ...ComponentDefaults,
@@ -12125,7 +12083,7 @@ const InternalShortPassword = (props, ref) => {
12125
12083
  title,
12126
12084
  description,
12127
12085
  tips,
12128
- visible: deleteVisible,
12086
+ visible: outerVisible,
12129
12087
  value,
12130
12088
  error,
12131
12089
  hideFooter,
@@ -12157,7 +12115,7 @@ const InternalShortPassword = (props, ref) => {
12157
12115
  return val.slice(0, comLen);
12158
12116
  };
12159
12117
  const [visible, setVisible] = usePropsValue({
12160
- value: props.visible,
12118
+ value: outerVisible,
12161
12119
  defaultValue: false,
12162
12120
  finalValue: false
12163
12121
  });
@@ -12275,7 +12233,7 @@ const InternalSignature = (props, ref) => {
12275
12233
  }).exec((res) => {
12276
12234
  canvasToTempFilePath({
12277
12235
  canvas: res[0].node,
12278
- fileType: props.type,
12236
+ fileType: type4,
12279
12237
  canvasId: `${canvasId}`,
12280
12238
  success: (res2) => {
12281
12239
  onConfirm && onConfirm(res2.tempFilePath);
@@ -12374,7 +12332,6 @@ const InternalSignature = (props, ref) => {
12374
12332
  const Signature = React__default.forwardRef(
12375
12333
  InternalSignature
12376
12334
  );
12377
- Signature.defaultProps = defaultProps$M;
12378
12335
  Signature.displayName = "NutSignature";
12379
12336
  const defaultProps$L = {
12380
12337
  ...ComponentDefaults,
@@ -12422,7 +12379,6 @@ const Switch = (props) => {
12422
12379
  /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-button` }, !value && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-close-line` }), activeText && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, value ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-label open` }, activeText) : /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-label close` }, inactiveText)))
12423
12380
  );
12424
12381
  };
12425
- Switch.defaultProps = defaultProps$L;
12426
12382
  Switch.displayName = "NutSwitch";
12427
12383
  const defaultProps$K = {
12428
12384
  ...ComponentDefaults,
@@ -12532,7 +12488,6 @@ const TextArea = (props) => {
12532
12488
  showCount && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-limit` }, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)
12533
12489
  );
12534
12490
  };
12535
- TextArea.defaultProps = defaultProps$K;
12536
12491
  TextArea.displayName = "NutTextArea";
12537
12492
  class UploadOptions {
12538
12493
  constructor() {
@@ -12836,7 +12791,6 @@ const Progress = (props) => {
12836
12791
  )))
12837
12792
  );
12838
12793
  };
12839
- Progress.defaultProps = defaultProps$J;
12840
12794
  Progress.displayName = "NutProgress";
12841
12795
  const Preview = ({
12842
12796
  fileList,
@@ -13153,7 +13107,7 @@ const InternalUploader = (props, ref) => {
13153
13107
  });
13154
13108
  };
13155
13109
  const task = new UploaderTaro(uploadOption);
13156
- if (props.autoUpload) {
13110
+ if (autoUpload) {
13157
13111
  task.uploadTaro(uploadFile, getEnv());
13158
13112
  } else {
13159
13113
  uploadQueue.push(
@@ -13205,8 +13159,8 @@ const InternalUploader = (props, ref) => {
13205
13159
  });
13206
13160
  };
13207
13161
  const filterFiles = (files) => {
13208
- const maximum = props.maxCount * 1;
13209
- const maximize = props.maxFileSize * 1;
13162
+ const maximum = maxCount * 1;
13163
+ const maximize = maxFileSize * 1;
13210
13164
  const oversizes = new Array();
13211
13165
  const filterFile = files.filter((file) => {
13212
13166
  if (file.size > maximize) {
@@ -13272,7 +13226,6 @@ const InternalUploader = (props, ref) => {
13272
13226
  ));
13273
13227
  };
13274
13228
  const Uploader = React__default.forwardRef(InternalUploader);
13275
- Uploader.defaultProps = defaultProps$I;
13276
13229
  Uploader.displayName = "NutUploader";
13277
13230
  const defaultProps$H = {
13278
13231
  ...ComponentDefaults,
@@ -13345,7 +13298,6 @@ const ActionSheet = (props) => {
13345
13298
  ))
13346
13299
  );
13347
13300
  };
13348
- ActionSheet.defaultProps = defaultProps$H;
13349
13301
  ActionSheet.displayName = "NutActionSheet";
13350
13302
  const Content = (props) => {
13351
13303
  const {
@@ -13694,18 +13646,18 @@ const Drag = (props) => {
13694
13646
  } else if (translateY.current > boundaryState.bottom) {
13695
13647
  translateY.current = boundaryState.bottom;
13696
13648
  }
13697
- const transform = `translate3d(${props.direction !== "y" ? translateX.current : 0}px, ${props.direction !== "x" ? translateY.current : 0}px, 0px)`;
13649
+ const transform = `translate3d(${direction !== "y" ? translateX.current : 0}px, ${direction !== "x" ? translateY.current : 0}px, 0px)`;
13698
13650
  setCurrStyle({ transform });
13699
13651
  }
13700
13652
  };
13701
13653
  const touchEnd = (e2) => {
13702
- if (props.direction !== "y" && props.attract && dragRef.current) {
13654
+ if (direction !== "y" && attract && dragRef.current) {
13703
13655
  if (translateX.current < middleLine.current) {
13704
13656
  translateX.current = boundaryState.left;
13705
13657
  } else {
13706
13658
  translateX.current = boundaryState.right;
13707
13659
  }
13708
- const transform = `translate3d(${translateX.current}px, ${props.direction !== "x" ? translateY.current : 0}px, 0px)`;
13660
+ const transform = `translate3d(${translateX.current}px, ${direction !== "x" ? translateY.current : 0}px, 0px)`;
13709
13661
  setCurrStyle({ transform });
13710
13662
  }
13711
13663
  };
@@ -13738,7 +13690,6 @@ const Drag = (props) => {
13738
13690
  )
13739
13691
  );
13740
13692
  };
13741
- Drag.defaultProps = defaultProps$F;
13742
13693
  Drag.displayName = "NutDrag";
13743
13694
  const defaultStatus = {
13744
13695
  empty: "https://storage.360buyimg.com/imgtools/30186cfda0-0d3eee40-c0ac-11ee-9382-9125782aa3b8.png",
@@ -13813,7 +13764,6 @@ const Empty = (props) => {
13813
13764
  );
13814
13765
  })), children);
13815
13766
  };
13816
- Empty.defaultProps = defaultProps$E;
13817
13767
  Empty.displayName = "NutEmpty";
13818
13768
  const defaultProps$D = {
13819
13769
  ...ComponentDefaults,
@@ -13949,7 +13899,6 @@ const InfiniteLoading = (props) => {
13949
13899
  /* @__PURE__ */ React__default.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? /* @__PURE__ */ React__default.createElement("div", { className: "nut-infinite-bottom-tips" }, loadingText || locale.infiniteloading.loadText) : !hasMore && /* @__PURE__ */ React__default.createElement("div", { className: "nut-infinite-bottom-tips" }, loadMoreText || locale.infiniteloading.loadMoreText))
13950
13900
  );
13951
13901
  };
13952
- InfiniteLoading.defaultProps = defaultProps$D;
13953
13902
  InfiniteLoading.displayName = "NutInfiniteLoading";
13954
13903
  const loadingMap = {
13955
13904
  circular: D$5,
@@ -13982,7 +13931,6 @@ const Loading = (props) => {
13982
13931
  children ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-text` }, children) : ""
13983
13932
  );
13984
13933
  };
13985
- Loading.defaultProps = defaultProps$C;
13986
13934
  Loading.displayName = "NutLoading";
13987
13935
  const defaultProps$B = {
13988
13936
  ...ComponentDefaults,
@@ -14404,7 +14352,6 @@ const NoticeBar = (props) => {
14404
14352
  )
14405
14353
  ) : null);
14406
14354
  };
14407
- NoticeBar.defaultProps = defaultProps$B;
14408
14355
  NoticeBar.displayName = "NutNoticeBar";
14409
14356
  const defaultProps$A = {
14410
14357
  ...ComponentDefaults,
@@ -14610,7 +14557,7 @@ const Popover = (props) => {
14610
14557
  };
14611
14558
  const clickAway = () => {
14612
14559
  if (closeOnOutsideClick) {
14613
- props.onClick && props.onClick();
14560
+ onClick && onClick();
14614
14561
  onClose && onClose();
14615
14562
  }
14616
14563
  };
@@ -14686,7 +14633,7 @@ const Popover = (props) => {
14686
14633
  const direction = location.split("-")[0];
14687
14634
  const skew = location.split("-")[1];
14688
14635
  const base = 16;
14689
- if (props.arrowOffset !== 0) {
14636
+ if (arrowOffset !== 0) {
14690
14637
  const dir = rtl ? "right" : "left";
14691
14638
  const dir2 = rtl ? "left" : "right";
14692
14639
  if (["bottom", "top"].includes(direction)) {
@@ -14715,12 +14662,11 @@ const Popover = (props) => {
14715
14662
  return styles;
14716
14663
  };
14717
14664
  const handleSelect = (item, index) => {
14718
- var _a;
14719
14665
  if (!item.disabled) {
14720
14666
  onSelect == null ? void 0 : onSelect(item, index);
14721
14667
  }
14722
14668
  if (closeOnActionClick) {
14723
- (_a = props.onClick) == null ? void 0 : _a.call(props);
14669
+ onClick == null ? void 0 : onClick();
14724
14670
  onClose == null ? void 0 : onClose();
14725
14671
  }
14726
14672
  };
@@ -14788,7 +14734,6 @@ const Popover = (props) => {
14788
14734
  }
14789
14735
  )));
14790
14736
  };
14791
- Popover.defaultProps = defaultProps$z;
14792
14737
  Popover.displayName = "NutPopover";
14793
14738
  function bound(position, min, max) {
14794
14739
  let ret = position;
@@ -14980,7 +14925,6 @@ const AvatarGroup = (props) => {
14980
14925
  };
14981
14926
  return /* @__PURE__ */ React__default.createElement(AvatarContext.Provider, { value: parentAvatar }, /* @__PURE__ */ React__default.createElement("div", { className: cls, style, ref: avatarGroupRef }, children));
14982
14927
  };
14983
- AvatarGroup.defaultProps = defaultProps$x;
14984
14928
  AvatarGroup.displayName = "NutAvatarGroup";
14985
14929
  const defaultProps$w = {
14986
14930
  ...ComponentDefaults,
@@ -15069,8 +15013,8 @@ const Avatar = (props) => {
15069
15013
  }
15070
15014
  };
15071
15015
  const errorEvent = () => {
15072
- if (props.onError) {
15073
- props.onError();
15016
+ if (onError) {
15017
+ onError();
15074
15018
  }
15075
15019
  };
15076
15020
  const clickAvatar = (e2) => {
@@ -15100,7 +15044,6 @@ const Avatar = (props) => {
15100
15044
  showMax && /* @__PURE__ */ React__default.createElement("div", { className: "text" }, ((_l = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _l.maxContent) ? (_m = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _m.maxContent : `+ ${avatarIndex - Number(((_n = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _n.max) || 0)}`)
15101
15045
  ));
15102
15046
  };
15103
- Avatar.defaultProps = defaultProps$w;
15104
15047
  Avatar.displayName = "NutAvatar";
15105
15048
  Avatar.Group = AvatarGroup;
15106
15049
  const defaultProps$v = {
@@ -15163,7 +15106,6 @@ const Skeleton = (props) => {
15163
15106
  return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-block`, key: index });
15164
15107
  })))));
15165
15108
  };
15166
- Skeleton.defaultProps = defaultProps$v;
15167
15109
  Skeleton.displayName = "NutSkeleton";
15168
15110
  function preventDefault(event, isStopPropagation) {
15169
15111
  if (typeof event.cancelable !== "boolean" || event.cancelable) {
@@ -15548,7 +15490,6 @@ const Animate = (props) => {
15548
15490
  };
15549
15491
  return /* @__PURE__ */ React__default.createElement("div", { className: "nut-animate" }, /* @__PURE__ */ React__default.createElement("div", { className: cls, onClick: handleClick, ...rest }, children));
15550
15492
  };
15551
- Animate.defaultProps = defaultProps$s;
15552
15493
  Animate.displayName = "NutAnimate";
15553
15494
  const defaultProps$r = {
15554
15495
  ...ComponentDefaults,
@@ -15928,11 +15869,10 @@ const CircleProgress = (props) => {
15928
15869
  return () => window.cancelAnimationFrame(animateIdRef.current);
15929
15870
  }, [percent]);
15930
15871
  const stop = () => {
15931
- if (!isObject(props.color)) {
15872
+ if (!isObject(color)) {
15932
15873
  return [];
15933
15874
  }
15934
- const color2 = props.color;
15935
- const colorArr = Object.keys(color2).sort(
15875
+ const colorArr = Object.keys(color).sort(
15936
15876
  (a2, b) => parseFloat(a2) - parseFloat(b)
15937
15877
  );
15938
15878
  const stopArr = [];
@@ -15942,7 +15882,7 @@ const CircleProgress = (props) => {
15942
15882
  value: ""
15943
15883
  };
15944
15884
  obj.key = item;
15945
- obj.value = color2[item];
15885
+ obj.value = color[item];
15946
15886
  stopArr.push(obj);
15947
15887
  });
15948
15888
  return stopArr;
@@ -15966,15 +15906,15 @@ const CircleProgress = (props) => {
15966
15906
  const perimeter = 283;
15967
15907
  const progress = +oldValue.current;
15968
15908
  const offset = perimeter * Number(format2(parseFloat(progress.toFixed(1)))) / 100;
15969
- const isWise = props.clockwise ? 1 : 0;
15970
- const color2 = isObject(props.color) ? `url(%23${refRandomId})` : transColor(props.color);
15909
+ const isWise = clockwise ? 1 : 0;
15910
+ const realColor = isObject(color) ? `url(%23${refRandomId})` : transColor(color);
15971
15911
  const d = `M 50 50 m 0 -45 a 45 45 0 1 ${isWise} 0 90 a 45 45 0 1, ${isWise} 0 -90`;
15972
15912
  const pa = `%3Cdefs%3E%3ClinearGradient id='${refRandomId}' x1='100%25' y1='0%25' x2='0%25' y2='0%25'%3E${stopDom}%3C/linearGradient%3E%3C/defs%3E`;
15973
15913
  const path = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke='${transColor(
15974
- props.background
15914
+ background
15975
15915
  )}' fill='none'/%3E`;
15976
15916
  const path1 = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke-dasharray='${offset},${perimeter}' stroke-linecap='round' stroke='${transColor(
15977
- color2
15917
+ realColor
15978
15918
  )}' fill='none'/%3E`;
15979
15919
  return {
15980
15920
  background: `url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E${pa}${path}${path1}%3C/svg%3E")`,
@@ -15984,7 +15924,6 @@ const CircleProgress = (props) => {
15984
15924
  };
15985
15925
  return /* @__PURE__ */ React__default.createElement("div", { className: classes, style: styles, ...restProps }, /* @__PURE__ */ React__default.createElement("div", { style: circleStyle() }), /* @__PURE__ */ React__default.createElement("div", { className: "nut-circleprogress-text" }, children));
15986
15926
  };
15987
- CircleProgress.defaultProps = defaultProps$o;
15988
15927
  CircleProgress.displayName = "NutCircleProgress";
15989
15928
  const collapseContext = {
15990
15929
  isOpen: (name) => {
@@ -16129,7 +16068,6 @@ const CollapseItem = (props) => {
16129
16068
  )
16130
16069
  ));
16131
16070
  };
16132
- CollapseItem.defaultProps = defaultProps$n;
16133
16071
  CollapseItem.displayName = "NutCollapseItem";
16134
16072
  const defaultProps$m = {
16135
16073
  ...ComponentDefaults,
@@ -16207,7 +16145,6 @@ const Collapse = (props) => {
16207
16145
  /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix2, className), style }, children)
16208
16146
  );
16209
16147
  };
16210
- Collapse.defaultProps = defaultProps$m;
16211
16148
  Collapse.displayName = "NutCollapse";
16212
16149
  Collapse.Item = CollapseItem;
16213
16150
  const defaultProps$l = {
@@ -16448,7 +16385,6 @@ const InternalCountDown = (props, ref) => {
16448
16385
  const CountDown = React__default.forwardRef(
16449
16386
  InternalCountDown
16450
16387
  );
16451
- CountDown.defaultProps = defaultProps$l;
16452
16388
  CountDown.displayName = "NutCountDown";
16453
16389
  const defaultProps$k = {
16454
16390
  ...ComponentDefaults,
@@ -16771,7 +16707,6 @@ const Ellipsis = (props) => {
16771
16707
  symbolText()
16772
16708
  ));
16773
16709
  };
16774
- Ellipsis.defaultProps = defaultProps$k;
16775
16710
  Ellipsis.displayName = "NutEllipsis";
16776
16711
  const defaultProps$j = {
16777
16712
  total: 3,
@@ -16804,7 +16739,6 @@ const Indicator = (props) => {
16804
16739
  };
16805
16740
  return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix$5, classes, className), ...rest }, renderElement());
16806
16741
  };
16807
- Indicator.defaultProps = defaultProps$j;
16808
16742
  Indicator.displayName = "NutIndicator";
16809
16743
  const defaultProps$i = {
16810
16744
  direction: "horizontal",
@@ -16977,6 +16911,7 @@ const defaultProps$g = {
16977
16911
  };
16978
16912
  const ImagePreview = (props) => {
16979
16913
  const {
16914
+ value,
16980
16915
  className,
16981
16916
  style,
16982
16917
  images,
@@ -16990,17 +16925,17 @@ const ImagePreview = (props) => {
16990
16925
  closeIcon,
16991
16926
  closeIconPosition,
16992
16927
  showMenuByLongpress,
16993
- onClose
16994
- } = props;
16928
+ onClose,
16929
+ onChange
16930
+ } = { ...defaultProps$g, ...props };
16995
16931
  const classPrefix2 = "nut-imagepreview";
16996
16932
  const ref = useRef(null);
16997
16933
  const [innerNo, setInnerNo] = usePropsValue({
16998
- value: props.value,
16934
+ value,
16999
16935
  defaultValue,
17000
16936
  finalValue: defaultValue,
17001
16937
  onChange: (val) => {
17002
- var _a;
17003
- (_a = props.onChange) == null ? void 0 : _a.call(props, val);
16938
+ onChange == null ? void 0 : onChange(val);
17004
16939
  }
17005
16940
  });
17006
16941
  const [showPop, setShowPop] = useState(visible);
@@ -17111,11 +17046,11 @@ const ImagePreview = (props) => {
17111
17046
  );
17112
17047
  };
17113
17048
  const slideChangeEnd = (page) => {
17114
- var _a;
17115
17049
  setActive(page + 1);
17116
- (_a = props.onChange) == null ? void 0 : _a.call(props, page + 1);
17050
+ onChange == null ? void 0 : onChange(page + 1);
17117
17051
  };
17118
- const onCloseInner = () => {
17052
+ const onCloseInner = (e2) => {
17053
+ e2.stopPropagation();
17119
17054
  setShowPop(false);
17120
17055
  setActive(innerNo);
17121
17056
  scaleNow();
@@ -17125,9 +17060,9 @@ const ImagePreview = (props) => {
17125
17060
  scale: 1
17126
17061
  });
17127
17062
  };
17128
- const closeOnImg = () => {
17063
+ const closeOnImg = (e2) => {
17129
17064
  if (closeOnContentClick) {
17130
- onCloseInner();
17065
+ onCloseInner(e2);
17131
17066
  }
17132
17067
  };
17133
17068
  return /* @__PURE__ */ React__default.createElement(
@@ -17215,7 +17150,6 @@ const ImagePreview = (props) => {
17215
17150
  ) : null
17216
17151
  );
17217
17152
  };
17218
- ImagePreview.defaultProps = defaultProps$g;
17219
17153
  ImagePreview.displayName = "NutImagePreview";
17220
17154
  const defaultProps$f = {
17221
17155
  ...ComponentDefaults,
@@ -17327,7 +17261,6 @@ const Pagination = (props) => {
17327
17261
  next || locale.pagination.next
17328
17262
  )), mode === "lite" && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-lite` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-lite-active` }, 2), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-lite-default` }, 8))));
17329
17263
  };
17330
- Pagination.defaultProps = defaultProps$f;
17331
17264
  Pagination.displayName = "NutPagination";
17332
17265
  const defaultProps$e = {
17333
17266
  ...ComponentDefaults,
@@ -17429,7 +17362,6 @@ const Price = (props) => {
17429
17362
  symbol && position === "after" ? renderSymbol() : null
17430
17363
  );
17431
17364
  };
17432
- Price.defaultProps = defaultProps$e;
17433
17365
  Price.displayName = "NutPrice";
17434
17366
  const DataContext = createContext({});
17435
17367
  const defaultProps$d = {
@@ -17475,7 +17407,6 @@ const Step = (props) => {
17475
17407
  };
17476
17408
  return /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps, onClick: handleClickStep }, /* @__PURE__ */ React__default.createElement(View, { className: "nut-step-head" }, /* @__PURE__ */ React__default.createElement(View, { className: "nut-step-line" }), /* @__PURE__ */ React__default.createElement(View, { className: renderIconClass() }, icon || !dot && /* @__PURE__ */ React__default.createElement("span", { className: "nut-step-inner" }, value))), (title || description) && /* @__PURE__ */ React__default.createElement(View, { className: "nut-step-main" }, /* @__PURE__ */ React__default.createElement("span", { className: "nut-step-title" }, title), description && /* @__PURE__ */ React__default.createElement("span", { className: "nut-step-description" }, description)));
17477
17409
  };
17478
- Step.defaultProps = defaultProps$d;
17479
17410
  Step.displayName = "NutStep";
17480
17411
  const defaultProps$c = {
17481
17412
  ...ComponentDefaults,
@@ -17502,13 +17433,12 @@ const Steps = (props) => {
17502
17433
  classPrefix2,
17503
17434
  {
17504
17435
  [`${classPrefix2}-${direction}`]: true,
17505
- [`${classPrefix2}-dot`]: !!props.dot
17436
+ [`${classPrefix2}-dot`]: !!dot
17506
17437
  },
17507
17438
  className
17508
17439
  );
17509
17440
  return /* @__PURE__ */ React__default.createElement(DataContext.Provider, { value: parentSteps }, /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps }, children));
17510
17441
  };
17511
- Steps.defaultProps = defaultProps$c;
17512
17442
  Steps.displayName = "NutSteps";
17513
17443
  function useTableSticky(columns, rtl = false) {
17514
17444
  const [isSticky, setIsSticky] = useState(false);
@@ -17649,7 +17579,7 @@ const Table = (props) => {
17649
17579
  };
17650
17580
  const cellClasses = (item) => {
17651
17581
  return {
17652
- [`${headerClassPrefix}-border`]: props.bordered,
17582
+ [`${headerClassPrefix}-border`]: bordered,
17653
17583
  [`${headerClassPrefix}-align${item.align ? item.align : ""}`]: true
17654
17584
  };
17655
17585
  };
@@ -17735,7 +17665,6 @@ const Table = (props) => {
17735
17665
  }
17736
17666
  )) : null, (summary || innerValue.length === 0) && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-summary` }, summary || noData));
17737
17667
  };
17738
- Table.defaultProps = defaultProps$b;
17739
17668
  Table.displayName = "NutTable";
17740
17669
  const defaultProps$a = {
17741
17670
  ...ComponentDefaults,
@@ -17837,7 +17766,6 @@ const Tag = (props) => {
17837
17766
  children && /* @__PURE__ */ React__default.createElement("span", { className: `${classPrefix2}-text` }, children)
17838
17767
  ));
17839
17768
  };
17840
- Tag.defaultProps = defaultProps$a;
17841
17769
  Tag.displayName = "NutTag";
17842
17770
  const getTaroRectById = (id) => {
17843
17771
  return new Promise((resolve, reject) => {
@@ -18035,7 +17963,6 @@ const Tour = (props) => {
18035
17963
  )));
18036
17964
  }));
18037
17965
  };
18038
- Tour.defaultProps = defaultProps$9;
18039
17966
  Tour.displayName = "NutTour";
18040
17967
  const defaultProps$8 = {
18041
17968
  source: {
@@ -18086,7 +18013,6 @@ const Video = (props) => {
18086
18013
  }
18087
18014
  ));
18088
18015
  };
18089
- Video.defaultProps = defaultProps$8;
18090
18016
  Video.displayName = "NutVideo";
18091
18017
  const initPositinoCache = (reaItemSize, length = 0) => {
18092
18018
  let index = 0;
@@ -18199,7 +18125,6 @@ const VirtualList = (props) => {
18199
18125
  const pos = initPositinoCache(itemHeight + margin, list.length);
18200
18126
  setPositions(pos);
18201
18127
  }, [itemHeight, list]);
18202
- const prevListLength = useRef(list.length);
18203
18128
  const getContainerHeight = () => {
18204
18129
  const initH = (itemHeight + margin) * list.length;
18205
18130
  return initH < clientHeight ? initH + overscan * (itemHeight + margin) - 5 : Math.min(containerHeight, clientHeight);
@@ -18236,9 +18161,8 @@ const VirtualList = (props) => {
18236
18161
  start.current = Math.floor(scrollTop / (itemHeight + margin));
18237
18162
  setStartOffset(scrollTop - scrollTop % (itemHeight + margin));
18238
18163
  const endIndex = end();
18239
- if (endIndex > list.length - 1 && prevListLength.current < list.length) {
18164
+ if (endIndex > list.length - 1) {
18240
18165
  onScroll && onScroll();
18241
- prevListLength.current = list.length;
18242
18166
  }
18243
18167
  };
18244
18168
  return /* @__PURE__ */ React__default.createElement(
@@ -18297,7 +18221,6 @@ const VirtualList = (props) => {
18297
18221
  )
18298
18222
  );
18299
18223
  };
18300
- VirtualList.defaultProps = defaultProps$7;
18301
18224
  VirtualList.displayName = "NutVirtualList";
18302
18225
  const defaultProps$6 = {
18303
18226
  ...ComponentDefaults,
@@ -18419,7 +18342,6 @@ const InternalBarrage = (props, ref) => {
18419
18342
  const Barrage = React__default.forwardRef(
18420
18343
  InternalBarrage
18421
18344
  );
18422
- Barrage.defaultProps = defaultProps$6;
18423
18345
  Barrage.displayName = "NutBarrage";
18424
18346
  const defaultProps$5 = {
18425
18347
  ...ComponentDefaults,
@@ -18465,7 +18387,6 @@ const Card = (props) => {
18465
18387
  }
18466
18388
  )), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-other` }, tag || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Tag, { type: "danger" }, shopDescription), /* @__PURE__ */ React__default.createElement(Tag, { plain: true }, delivery))), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-shop` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-shop-name` }, shopName), extra)));
18467
18389
  };
18468
- Card.defaultProps = defaultProps$5;
18469
18390
  Card.displayName = "NutCard";
18470
18391
  const defaultProps$4 = {
18471
18392
  ...ComponentDefaults,
@@ -18520,7 +18441,6 @@ const TimeDetail = (props) => {
18520
18441
  item[optionKey.textKey]
18521
18442
  )));
18522
18443
  };
18523
- TimeDetail.defaultProps = defaultProps$4;
18524
18444
  TimeDetail.displayName = "NutTimeDetail";
18525
18445
  const defaultProps$3 = {
18526
18446
  ...ComponentDefaults,
@@ -18658,7 +18578,6 @@ const TimeSelect = (props) => {
18658
18578
  )))
18659
18579
  );
18660
18580
  };
18661
- TimeSelect.defaultProps = defaultProps$3;
18662
18581
  TimeSelect.displayName = "NutTimeSelect";
18663
18582
  const defaultProps$2 = {
18664
18583
  ...ComponentDefaults,
@@ -18739,7 +18658,6 @@ const TrendArrow = (props) => {
18739
18658
  };
18740
18659
  return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2} ${className}`, style, ...rest }, !left2 && renderContent(!left2), Number(value) !== 0 && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, rateTrend.current ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, riseIcon || /* @__PURE__ */ React__default.createElement(c, { color: calcIconProps.color })) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, dropIcon || /* @__PURE__ */ React__default.createElement(e, { color: calcIconProps.color }))), left2 && renderContent(!left2));
18741
18660
  };
18742
- TrendArrow.defaultProps = defaultProps$2;
18743
18661
  TrendArrow.displayName = "NutTrendArrow";
18744
18662
  const defaultProps$1 = {
18745
18663
  ...ComponentDefaults,
@@ -18870,7 +18788,6 @@ const WaterMark = (props) => {
18870
18788
  }
18871
18789
  );
18872
18790
  };
18873
- WaterMark.defaultProps = defaultProps$1;
18874
18791
  WaterMark.displayName = "NutWaterMark";
18875
18792
  const defaultProps = {
18876
18793
  ...ComponentDefaults,
@@ -19405,7 +19322,6 @@ const AvatarCropper = (props) => {
19405
19322
  };
19406
19323
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: cls, ...rest, style }, children, /* @__PURE__ */ React__default.createElement("div", { className: "nut-avatar-cropper-edit-text", onClick: chooseImage2 }, editText)), CropperPopup());
19407
19324
  };
19408
- AvatarCropper.defaultProps = defaultProps;
19409
19325
  AvatarCropper.displayName = "NutAvatarCropper";
19410
19326
  export {
19411
19327
  ActionSheet,