@nutui/nutui-react-taro 2.0.0-alpha.14 → 2.0.0-alpha.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/esm/Address.js +2 -2
  3. package/dist/esm/Audio.js +2 -2
  4. package/dist/esm/Avatar.js +3 -3
  5. package/dist/esm/Calendar.js +3 -3
  6. package/dist/esm/CalendarItem.js +2 -2
  7. package/dist/esm/Card/style/style.css +1 -1
  8. package/dist/esm/Card.js +2 -4
  9. package/dist/esm/ConfigProvider.js +2 -2
  10. package/dist/esm/CountDown.js +2 -2
  11. package/dist/esm/DatePicker.js +3 -3
  12. package/dist/esm/Dialog.js +2 -2
  13. package/dist/esm/Empty.js +2 -2
  14. package/dist/esm/FixedNav.js +2 -2
  15. package/dist/esm/Grid.js +3 -3
  16. package/dist/esm/GridItem.js +2 -2
  17. package/dist/esm/Image.js +2 -2
  18. package/dist/esm/ImagePreview.js +1 -1
  19. package/dist/esm/InfiniteLoading/style/style.css +1 -0
  20. package/dist/esm/InfiniteLoading.js +10 -0
  21. package/dist/esm/Input.js +2 -2
  22. package/dist/esm/NumberKeyboard.js +2 -2
  23. package/dist/esm/Pagination.js +2 -2
  24. package/dist/esm/Picker.js +2 -2
  25. package/dist/esm/PullToRefresh.js +2 -2
  26. package/dist/esm/SearchBar.js +2 -2
  27. package/dist/esm/ShortPassword.js +2 -2
  28. package/dist/esm/Signature/style/index.js +1 -1
  29. package/dist/esm/Signature/style/style.css +1 -1
  30. package/dist/esm/Signature.js +1 -7
  31. package/dist/esm/Skeleton.js +4 -4
  32. package/dist/esm/Table.js +2 -2
  33. package/dist/esm/Tag/style/style.css +1 -1
  34. package/dist/esm/Tag.js +1 -1
  35. package/dist/esm/TextArea.js +2 -2
  36. package/dist/esm/TimeDetail/style/style.css +1 -1
  37. package/dist/esm/TimeDetail.js +3 -4
  38. package/dist/esm/TimeSelect/style/index.js +0 -1
  39. package/dist/esm/TimeSelect/style/style.css +1 -1
  40. package/dist/esm/TimeSelect.js +4 -7
  41. package/dist/esm/Uploader.js +2 -2
  42. package/dist/esm/WaterMark.js +2 -2
  43. package/dist/esm/{address.taro-1a8ab3f1.js → address.taro-cc879a1d.js} +1 -1
  44. package/dist/esm/{audio.taro-73011657.js → audio.taro-64b15071.js} +1 -1
  45. package/dist/esm/{avatar.taro-01536aff.js → avatar.taro-8a26cd6c.js} +1 -1
  46. package/dist/esm/{calendar.taro-10a6cb11.js → calendar.taro-02195ddb.js} +2 -2
  47. package/dist/esm/{calendaritem.taro-3e5f114e.js → calendaritem.taro-4230e5c4.js} +1 -1
  48. package/dist/esm/card.taro-92fe9733.js +64 -0
  49. package/dist/esm/{configprovider.taro-25758d9f.js → configprovider.taro-372b1525.js} +1 -1
  50. package/dist/esm/{countdown.taro-c399cc08.js → countdown.taro-8f19d21b.js} +1 -1
  51. package/dist/esm/{datepicker.taro-6304d59d.js → datepicker.taro-8c9230b6.js} +2 -2
  52. package/dist/esm/{dialog.taro-290eb9a6.js → dialog.taro-e5c2cb03.js} +1 -1
  53. package/dist/esm/{empty.taro-ca792f57.js → empty.taro-8345ac72.js} +1 -1
  54. package/dist/esm/{fixednav.taro-b9ecf0d5.js → fixednav.taro-6c69ad79.js} +1 -1
  55. package/dist/esm/{grid.taro-fbbd8618.js → grid.taro-9b63aca5.js} +1 -1
  56. package/dist/esm/{griditem.taro-b0c37077.js → griditem.taro-48971911.js} +1 -1
  57. package/dist/esm/{image.taro-767aa000.js → image.taro-fde6e649.js} +1 -1
  58. package/dist/esm/{imagepreview.taro-daa5a84f.js → imagepreview.taro-cfe0a4cc.js} +3 -2
  59. package/dist/esm/{infiniteloading.taro-f8f23ac6.js → infiniteloading.taro-53eeb1ec.js} +17 -33
  60. package/dist/esm/{input.taro-27d686c9.js → input.taro-69c08268.js} +1 -1
  61. package/dist/esm/{numberkeyboard.taro-ad8afaf9.js → numberkeyboard.taro-18879f04.js} +1 -1
  62. package/dist/esm/nutui-react.es.js +37 -39
  63. package/dist/esm/{pagination.taro-63607c3b.js → pagination.taro-592bca05.js} +1 -1
  64. package/dist/esm/{picker.taro-8ba4624c.js → picker.taro-6b672469.js} +1 -1
  65. package/dist/esm/{pulltorefresh.taro-5b36a881.js → pulltorefresh.taro-3719fdfb.js} +1 -1
  66. package/dist/esm/{searchbar.taro-09468fff.js → searchbar.taro-39351331.js} +1 -1
  67. package/dist/esm/{shortpassword.taro-eabbde1b.js → shortpassword.taro-cff61e4e.js} +1 -1
  68. package/dist/esm/{signature.taro-6e75a1ac.js → signature.taro-4f68516a.js} +19 -20
  69. package/dist/esm/{skeleton.taro-0552c2ec.js → skeleton.taro-ce714b06.js} +1 -1
  70. package/dist/esm/{table.taro-15a55c5d.js → table.taro-a20f15f2.js} +1 -1
  71. package/dist/esm/tag.taro-614758eb.js +76 -0
  72. package/dist/esm/{textarea.taro-c110565e.js → textarea.taro-593cd471.js} +1 -1
  73. package/dist/esm/timedetail.taro-d7aa4c1b.js +48 -0
  74. package/dist/esm/timeselect.taro-9e37e648.js +114 -0
  75. package/dist/esm/types/src/locales/base.d.ts +1 -1
  76. package/dist/esm/types/src/packages/card/card.d.ts +8 -9
  77. package/dist/esm/types/src/packages/card/card.taro.d.ts +8 -9
  78. package/dist/esm/types/src/packages/card/index.d.ts +1 -0
  79. package/dist/esm/types/src/packages/card/index.taro.d.ts +1 -0
  80. package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
  81. package/dist/esm/types/src/packages/imagepreview/imagepreview.taro.d.ts +1 -0
  82. package/dist/esm/types/src/packages/infiniteloading/demo.taro.d.ts +2 -2
  83. package/dist/esm/types/src/packages/infiniteloading/index.d.ts +3 -2
  84. package/dist/esm/types/src/packages/infiniteloading/index.taro.d.ts +3 -2
  85. package/dist/esm/types/src/packages/infiniteloading/infiniteloading.d.ts +9 -14
  86. package/dist/esm/types/src/packages/infiniteloading/infiniteloading.taro.d.ts +8 -12
  87. package/dist/esm/types/src/packages/nutui.react.build.d.ts +2 -3
  88. package/dist/esm/types/src/packages/nutui.react.d.ts +2 -4
  89. package/dist/esm/types/src/packages/nutui.react.scss.d.ts +0 -1
  90. package/dist/esm/types/src/packages/nutui.react.taro.d.ts +2 -4
  91. package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +0 -1
  92. package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +2 -3
  93. package/dist/esm/types/src/packages/signature/index.d.ts +1 -0
  94. package/dist/esm/types/src/packages/signature/index.taro.d.ts +1 -0
  95. package/dist/esm/types/src/packages/signature/signature.d.ts +10 -8
  96. package/dist/esm/types/src/packages/signature/signature.taro.d.ts +7 -12
  97. package/dist/esm/types/src/packages/tag/index.d.ts +1 -0
  98. package/dist/esm/types/src/packages/tag/index.taro.d.ts +1 -0
  99. package/dist/esm/types/src/packages/tag/tag.d.ts +4 -6
  100. package/dist/esm/types/src/packages/tag/tag.taro.d.ts +4 -6
  101. package/dist/esm/types/src/packages/timedetail/index.d.ts +1 -2
  102. package/dist/esm/types/src/packages/timedetail/timedetail.d.ts +9 -11
  103. package/dist/esm/types/src/packages/timedetail/timedetail.taro.d.ts +9 -11
  104. package/dist/esm/types/src/packages/timeselect/demo.taro.d.ts +0 -4
  105. package/dist/esm/types/src/packages/timeselect/index.d.ts +1 -0
  106. package/dist/esm/types/src/packages/timeselect/index.taro.d.ts +1 -0
  107. package/dist/esm/types/src/packages/timeselect/timeselect.d.ts +25 -20
  108. package/dist/esm/types/src/packages/timeselect/timeselect.taro.d.ts +25 -20
  109. package/dist/esm/{uploader.taro-fbd05e20.js → uploader.taro-5ad88f83.js} +1 -1
  110. package/dist/esm/{watermark.taro-e2245bb1.js → watermark.taro-b6b1ae18.js} +1 -1
  111. package/dist/locales/base.d.ts +1 -1
  112. package/dist/locales/base.js +1 -1
  113. package/dist/locales/en-US.js +2 -2
  114. package/dist/locales/id-ID.js +2 -2
  115. package/dist/locales/tr-TR.js +2 -2
  116. package/dist/locales/zh-CN.js +2 -2
  117. package/dist/locales/zh-TW.js +2 -2
  118. package/dist/locales/zh-UG.js +2 -2
  119. package/dist/nutui.react.es.js +556 -602
  120. package/dist/nutui.react.umd.js +555 -601
  121. package/dist/packages/card/card.scss +8 -14
  122. package/dist/packages/infiniteloading/infiniteloading.scss +2 -25
  123. package/dist/packages/signature/signature.scss +1 -18
  124. package/dist/packages/tag/tag.scss +10 -17
  125. package/dist/packages/timedetail/timedetail.scss +12 -37
  126. package/dist/packages/timeselect/timeselect.scss +15 -44
  127. package/dist/style.css +1 -1
  128. package/dist/style.mjs +1 -1
  129. package/dist/styles/themes/default.scss +0 -1
  130. package/dist/styles/variables-jmapp.scss +50 -97
  131. package/dist/styles/variables.scss +51 -98
  132. package/dist/types/index.d.ts +2 -3
  133. package/dist/types/locales/base.d.ts +1 -1
  134. package/dist/types/packages/card/card.taro.d.ts +57 -14
  135. package/dist/types/packages/card/index.taro.d.ts +1 -0
  136. package/dist/types/packages/configprovider/types.d.ts +1 -1
  137. package/dist/types/packages/imagepreview/imagepreview.taro.d.ts +5 -0
  138. package/dist/types/packages/infiniteloading/index.taro.d.ts +3 -2
  139. package/dist/types/packages/infiniteloading/infiniteloading.taro.d.ts +52 -16
  140. package/dist/types/packages/signature/index.taro.d.ts +1 -0
  141. package/dist/types/packages/signature/signature.taro.d.ts +32 -17
  142. package/dist/types/packages/tag/index.taro.d.ts +1 -0
  143. package/dist/types/packages/tag/tag.taro.d.ts +52 -14
  144. package/dist/types/packages/timedetail/timedetail.taro.d.ts +9 -11
  145. package/dist/types/packages/timeselect/index.taro.d.ts +1 -0
  146. package/dist/types/packages/timeselect/timeselect.taro.d.ts +62 -21
  147. package/dist/types/packages/toast/toast.taro.d.ts +60 -12
  148. package/package.json +1 -1
  149. package/dist/esm/Infiniteloading/style/style.css +0 -1
  150. package/dist/esm/Infiniteloading.js +0 -12
  151. package/dist/esm/TimePannel/style/css.js +0 -1
  152. package/dist/esm/TimePannel/style/index.js +0 -2
  153. package/dist/esm/TimePannel/style/style.css +0 -1
  154. package/dist/esm/TimePannel.js +0 -8
  155. package/dist/esm/card.taro-2080f4d2.js +0 -51
  156. package/dist/esm/tag.taro-1b4134a5.js +0 -92
  157. package/dist/esm/timedetail.taro-8d2acbbf.js +0 -41
  158. package/dist/esm/timepannel.taro-ee4c5dfa.js +0 -22
  159. package/dist/esm/timeselect.taro-069deedd.js +0 -133
  160. package/dist/esm/types/src/packages/timedetail/demo.d.ts +0 -3
  161. package/dist/esm/types/src/packages/timedetail/demo.taro.d.ts +0 -3
  162. package/dist/esm/types/src/packages/timepannel/demo.d.ts +0 -3
  163. package/dist/esm/types/src/packages/timepannel/demo.taro.d.ts +0 -3
  164. package/dist/esm/types/src/packages/timepannel/index.d.ts +0 -2
  165. package/dist/esm/types/src/packages/timepannel/index.taro.d.ts +0 -2
  166. package/dist/esm/types/src/packages/timepannel/timepannel.d.ts +0 -8
  167. package/dist/esm/types/src/packages/timepannel/timepannel.taro.d.ts +0 -8
  168. package/dist/packages/timepannel/timepannel.scss +0 -17
  169. package/dist/types/packages/timepannel/index.taro.d.ts +0 -2
  170. package/dist/types/packages/timepannel/timepannel.taro.d.ts +0 -8
  171. /package/dist/esm/{Infiniteloading → InfiniteLoading}/style/css.js +0 -0
  172. /package/dist/esm/{Infiniteloading → InfiniteLoading}/style/index.js +0 -0
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
8
8
  return value;
9
9
  };
10
10
  /*!
11
- * @nutui/nutui-react-taro v2.0.0-alpha.14 Fri Jun 02 2023 17:13:52 GMT+0800 (China Standard Time)
11
+ * @nutui/nutui-react-taro v2.0.0-alpha.15 Wed Jun 07 2023 16:24:05 GMT+0800 (China Standard Time)
12
12
  * (c) 2023 @jdf2e.
13
13
  * Released under the MIT License.
14
14
  */
@@ -1861,7 +1861,7 @@ var __publicField = (obj, key, value) => {
1861
1861
  style: {}
1862
1862
  };
1863
1863
  const prefixCls = "nut-button";
1864
- const defaultProps$1u = {
1864
+ const defaultProps$1t = {
1865
1865
  ...ComponentDefaults,
1866
1866
  color: "",
1867
1867
  type: "default",
@@ -1893,7 +1893,7 @@ var __publicField = (obj, key, value) => {
1893
1893
  style,
1894
1894
  ...rest
1895
1895
  } = {
1896
- ...defaultProps$1u,
1896
+ ...defaultProps$1t,
1897
1897
  ...props
1898
1898
  };
1899
1899
  const getStyle = React.useCallback(() => {
@@ -1948,7 +1948,7 @@ var __publicField = (obj, key, value) => {
1948
1948
  }
1949
1949
  );
1950
1950
  Button.displayName = "NutButton";
1951
- const defaultProps$1t = {
1951
+ const defaultProps$1s = {
1952
1952
  ...ComponentDefaults,
1953
1953
  title: null,
1954
1954
  description: null,
@@ -1958,7 +1958,7 @@ var __publicField = (obj, key, value) => {
1958
1958
  onClick: (event) => {
1959
1959
  }
1960
1960
  };
1961
- const classPrefix$m = "nut-cell";
1961
+ const classPrefix$n = "nut-cell";
1962
1962
  const Cell = (props) => {
1963
1963
  const {
1964
1964
  children,
@@ -1972,7 +1972,7 @@ var __publicField = (obj, key, value) => {
1972
1972
  style,
1973
1973
  ...rest
1974
1974
  } = {
1975
- ...defaultProps$1t,
1975
+ ...defaultProps$1s,
1976
1976
  ...props
1977
1977
  };
1978
1978
  const handleClick = (event) => {
@@ -1989,44 +1989,44 @@ var __publicField = (obj, key, value) => {
1989
1989
  return /* @__PURE__ */ React.createElement(
1990
1990
  "div",
1991
1991
  {
1992
- className: classNames(classPrefix$m, className),
1992
+ className: classNames(classPrefix$n, className),
1993
1993
  onClick: (event) => handleClick(event),
1994
1994
  style: baseStyle,
1995
1995
  ...rest
1996
1996
  },
1997
- children || /* @__PURE__ */ React.createElement(React.Fragment, null, title || description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$m}__left` }, title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$m}__title` }, title) : null, description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$m}__description` }, description) : null) : null, extra ? /* @__PURE__ */ React.createElement(
1997
+ children || /* @__PURE__ */ React.createElement(React.Fragment, null, title || description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$n}__left` }, title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$n}__title` }, title) : null, description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$n}__description` }, description) : null) : null, extra ? /* @__PURE__ */ React.createElement(
1998
1998
  "div",
1999
1999
  {
2000
- className: `${classPrefix$m}__extra`,
2000
+ className: `${classPrefix$n}__extra`,
2001
2001
  style: styles
2002
2002
  },
2003
2003
  extra
2004
- ) : null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$m}__divider` }))
2004
+ ) : null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$n}__divider` }))
2005
2005
  );
2006
2006
  };
2007
- Cell.defaultProps = defaultProps$1t;
2007
+ Cell.defaultProps = defaultProps$1s;
2008
2008
  Cell.displayName = "NutCell";
2009
- const defaultProps$1s = {
2009
+ const defaultProps$1r = {
2010
2010
  ...ComponentDefaults,
2011
2011
  title: "",
2012
2012
  description: "",
2013
2013
  divider: true
2014
2014
  };
2015
- const classPrefix$l = "nut-cell-group";
2015
+ const classPrefix$m = "nut-cell-group";
2016
2016
  const CellGroup = (props) => {
2017
2017
  const { children, className, style, title, description, divider, ...rest } = {
2018
- ...defaultProps$1s,
2018
+ ...defaultProps$1r,
2019
2019
  ...props
2020
2020
  };
2021
- return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$l, className), ...rest }, title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$l}__title` }, title) : null, description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$l}__description` }, description) : null, /* @__PURE__ */ React.createElement(
2021
+ return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$m, className), ...rest }, title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$m}__title` }, title) : null, description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$m}__description` }, description) : null, /* @__PURE__ */ React.createElement(
2022
2022
  "div",
2023
2023
  {
2024
- className: `${classPrefix$l}__wrap ${divider ? `${classPrefix$l}__wrap--divider` : ""}`
2024
+ className: `${classPrefix$m}__wrap ${divider ? `${classPrefix$m}__wrap--divider` : ""}`
2025
2025
  },
2026
2026
  children
2027
2027
  ));
2028
2028
  };
2029
- CellGroup.defaultProps = defaultProps$1s;
2029
+ CellGroup.defaultProps = defaultProps$1r;
2030
2030
  CellGroup.displayName = "NutCellGroup";
2031
2031
  var INFINITY = 1 / 0;
2032
2032
  var symbolTag = "[object Symbol]";
@@ -2378,7 +2378,7 @@ var __publicField = (obj, key, value) => {
2378
2378
  },
2379
2379
  signature: {
2380
2380
  reSign: "重签",
2381
- unSupportTpl: "对不起,当前浏览器不支持Canvas,无法使用本控件!"
2381
+ unsupported: "对不起,当前浏览器不支持Canvas,无法使用本控件!"
2382
2382
  },
2383
2383
  ecard: {
2384
2384
  chooseText: "请选择电子卡面值",
@@ -2441,7 +2441,7 @@ var __publicField = (obj, key, value) => {
2441
2441
  errorCanvasTips: "当前环境不支持Canvas"
2442
2442
  }
2443
2443
  };
2444
- const defaultProps$1r = {
2444
+ const defaultProps$1q = {
2445
2445
  locale: zhCN
2446
2446
  };
2447
2447
  const defaultConfigRef$1 = {
@@ -2464,7 +2464,7 @@ var __publicField = (obj, key, value) => {
2464
2464
  return cssVars;
2465
2465
  }
2466
2466
  const ConfigProvider = (props) => {
2467
- const { children, ...config2 } = { ...defaultProps$1r, ...props };
2467
+ const { children, ...config2 } = { ...defaultProps$1q, ...props };
2468
2468
  const parentConfig = useConfig$1();
2469
2469
  const theme = config2.theme || {};
2470
2470
  const style = React.useMemo(
@@ -2482,9 +2482,9 @@ var __publicField = (obj, key, value) => {
2482
2482
  /* @__PURE__ */ React.createElement("div", { style }, children)
2483
2483
  );
2484
2484
  };
2485
- ConfigProvider.defaultProps = defaultProps$1r;
2485
+ ConfigProvider.defaultProps = defaultProps$1q;
2486
2486
  ConfigProvider.displayName = "NutConfigProvider";
2487
- const defaultProps$1q = {
2487
+ const defaultProps$1p = {
2488
2488
  fit: "fill",
2489
2489
  position: "center",
2490
2490
  alt: "",
@@ -2515,7 +2515,7 @@ var __publicField = (obj, key, value) => {
2515
2515
  onClick,
2516
2516
  onLoad,
2517
2517
  onError
2518
- } = { ...defaultProps$1q, ...props };
2518
+ } = { ...defaultProps$1p, ...props };
2519
2519
  const [loading, setLoading] = React.useState(true);
2520
2520
  const [isError, setIsError] = React.useState(false);
2521
2521
  React.useEffect(() => {
@@ -2574,7 +2574,7 @@ var __publicField = (obj, key, value) => {
2574
2574
  showError && isError && !loading ? /* @__PURE__ */ React.createElement("div", { className: "nut-img-error" }, slotError || children || /* @__PURE__ */ React.createElement(a$l, null)) : null
2575
2575
  );
2576
2576
  };
2577
- Image$1.defaultProps = defaultProps$1q;
2577
+ Image$1.defaultProps = defaultProps$1p;
2578
2578
  Image$1.displayName = "NutImage";
2579
2579
  const defaultOverlayProps$1 = {
2580
2580
  ...ComponentDefaults,
@@ -2669,7 +2669,7 @@ var __publicField = (obj, key, value) => {
2669
2669
  Overlay$1.defaultProps = defaultOverlayProps$1;
2670
2670
  Overlay$1.displayName = "NutOverlay";
2671
2671
  const DataContext$1 = React.createContext({});
2672
- const defaultProps$1p = {
2672
+ const defaultProps$1o = {
2673
2673
  ...ComponentDefaults,
2674
2674
  span: "24",
2675
2675
  offset: "0",
@@ -2677,7 +2677,7 @@ var __publicField = (obj, key, value) => {
2677
2677
  };
2678
2678
  const Col = (props) => {
2679
2679
  const { className, style, span, offset, children, onClick } = {
2680
- ...defaultProps$1p,
2680
+ ...defaultProps$1o,
2681
2681
  ...props
2682
2682
  };
2683
2683
  const [colName, setColName] = React.useState("");
@@ -2709,32 +2709,32 @@ var __publicField = (obj, key, value) => {
2709
2709
  children
2710
2710
  );
2711
2711
  };
2712
- Col.defaultProps = defaultProps$1p;
2712
+ Col.defaultProps = defaultProps$1o;
2713
2713
  Col.displayName = "NutCol";
2714
- const defaultProps$1o = {
2714
+ const defaultProps$1n = {
2715
2715
  ...ComponentDefaults,
2716
2716
  contentPosition: "center",
2717
2717
  direction: "horizontal"
2718
2718
  };
2719
- const classPrefix$k = `nut-divider`;
2719
+ const classPrefix$l = `nut-divider`;
2720
2720
  const Divider = (props) => {
2721
2721
  const { children, contentPosition, style, className, direction, ...rest } = {
2722
- ...defaultProps$1o,
2722
+ ...defaultProps$1n,
2723
2723
  ...props
2724
2724
  };
2725
2725
  const classes = direction === "horizontal" ? classNames({
2726
- [`${classPrefix$k}`]: true,
2727
- [`${classPrefix$k}__center`]: children,
2728
- [`${classPrefix$k}__left`]: contentPosition === "left",
2729
- [`${classPrefix$k}__right`]: contentPosition === "right",
2730
- [`${classPrefix$k}__hairline`]: true
2726
+ [`${classPrefix$l}`]: true,
2727
+ [`${classPrefix$l}__center`]: children,
2728
+ [`${classPrefix$l}__left`]: contentPosition === "left",
2729
+ [`${classPrefix$l}__right`]: contentPosition === "right",
2730
+ [`${classPrefix$l}__hairline`]: true
2731
2731
  }) : classNames({
2732
- [`${classPrefix$k}`]: true,
2733
- [`${classPrefix$k}__vertical`]: direction === "vertical"
2732
+ [`${classPrefix$l}`]: true,
2733
+ [`${classPrefix$l}__vertical`]: direction === "vertical"
2734
2734
  });
2735
2735
  return /* @__PURE__ */ React.createElement("div", { className: `${classes} ${className || ""}`, style, ...rest }, children);
2736
2736
  };
2737
- Divider.defaultProps = defaultProps$1o;
2737
+ Divider.defaultProps = defaultProps$1n;
2738
2738
  Divider.displayName = "NutDivider";
2739
2739
  const gridContext = {
2740
2740
  onClick: (item, index) => {
@@ -2744,7 +2744,7 @@ var __publicField = (obj, key, value) => {
2744
2744
  const pxCheck = (value) => {
2745
2745
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
2746
2746
  };
2747
- const defaultProps$1n = {
2747
+ const defaultProps$1m = {
2748
2748
  text: "",
2749
2749
  columns: 4,
2750
2750
  gap: 0,
@@ -2770,7 +2770,7 @@ var __publicField = (obj, key, value) => {
2770
2770
  onClick,
2771
2771
  ...rest
2772
2772
  } = {
2773
- ...defaultProps$1n,
2773
+ ...defaultProps$1m,
2774
2774
  ...props
2775
2775
  };
2776
2776
  const classPrefix2 = "nut-grid-item";
@@ -2828,9 +2828,9 @@ var __publicField = (obj, key, value) => {
2828
2828
  /* @__PURE__ */ React.createElement("div", { className: contentClass() }, children && /* @__PURE__ */ React.createElement(React.Fragment, null, children), text && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__text` }, text))
2829
2829
  );
2830
2830
  };
2831
- GridItem.defaultProps = defaultProps$1n;
2831
+ GridItem.defaultProps = defaultProps$1m;
2832
2832
  GridItem.displayName = "NutGridItem";
2833
- const defaultProps$1m = {
2833
+ const defaultProps$1l = {
2834
2834
  columns: 4,
2835
2835
  gap: 0,
2836
2836
  center: true,
@@ -2851,7 +2851,7 @@ var __publicField = (obj, key, value) => {
2851
2851
  className,
2852
2852
  onClick,
2853
2853
  ...rest
2854
- } = { ...defaultProps$1m, ...props };
2854
+ } = { ...defaultProps$1l, ...props };
2855
2855
  const childrenDom = React.Children.toArray(children);
2856
2856
  const classPrefix2 = "nut-grid";
2857
2857
  const rootClass = () => {
@@ -2881,18 +2881,18 @@ var __publicField = (obj, key, value) => {
2881
2881
  });
2882
2882
  })));
2883
2883
  };
2884
- Grid.defaultProps = defaultProps$1m;
2884
+ Grid.defaultProps = defaultProps$1l;
2885
2885
  Grid.displayName = "NutGrid";
2886
2886
  Grid.Item = GridItem;
2887
- const defaultProps$1l = {};
2887
+ const defaultProps$1k = {};
2888
2888
  const Layout = (props) => {
2889
- ({ ...defaultProps$1l, ...props });
2889
+ ({ ...defaultProps$1k, ...props });
2890
2890
  return /* @__PURE__ */ React.createElement("div", { className: "nut-layout" }, "Layout");
2891
2891
  };
2892
- Layout.defaultProps = defaultProps$1l;
2892
+ Layout.defaultProps = defaultProps$1k;
2893
2893
  Layout.displayName = "NutLayout";
2894
- const classPrefix$j = "nut-row";
2895
- const defaultProps$1k = {
2894
+ const classPrefix$k = "nut-row";
2895
+ const defaultProps$1j = {
2896
2896
  ...ComponentDefaults,
2897
2897
  type: "",
2898
2898
  justify: "start",
@@ -2912,7 +2912,7 @@ var __publicField = (obj, key, value) => {
2912
2912
  gutter,
2913
2913
  onClick
2914
2914
  } = {
2915
- ...defaultProps$1k,
2915
+ ...defaultProps$1j,
2916
2916
  ...props
2917
2917
  };
2918
2918
  const getClass = (prefix, type2) => {
@@ -2926,7 +2926,7 @@ var __publicField = (obj, key, value) => {
2926
2926
  ${getClass("justify", justify)}
2927
2927
  ${getClass("align", align)}
2928
2928
  ${getClass("flex", wrap)}
2929
- ${classPrefix$j}
2929
+ ${classPrefix$k}
2930
2930
  `;
2931
2931
  };
2932
2932
  const parentRow = {
@@ -2944,7 +2944,7 @@ var __publicField = (obj, key, value) => {
2944
2944
  children
2945
2945
  ));
2946
2946
  };
2947
- Row.defaultProps = defaultProps$1k;
2947
+ Row.defaultProps = defaultProps$1j;
2948
2948
  Row.displayName = "NutRow";
2949
2949
  function useWatch(dep, callback, config2 = { immediate: false }) {
2950
2950
  const { immediate } = config2;
@@ -3026,12 +3026,12 @@ var __publicField = (obj, key, value) => {
3026
3026
  }
3027
3027
  return root2;
3028
3028
  }
3029
- const defaultProps$1j = {
3029
+ const defaultProps$1i = {
3030
3030
  ...ComponentDefaults,
3031
3031
  position: "top",
3032
3032
  zIndex: 2e3
3033
3033
  };
3034
- const classPrefix$i = "nut-sticky";
3034
+ const classPrefix$j = "nut-sticky";
3035
3035
  const Sticky = (props) => {
3036
3036
  const {
3037
3037
  position,
@@ -3043,7 +3043,7 @@ var __publicField = (obj, key, value) => {
3043
3043
  className,
3044
3044
  onChange,
3045
3045
  ...rest
3046
- } = { ...defaultProps$1j, ...props };
3046
+ } = { ...defaultProps$1i, ...props };
3047
3047
  const stickyRef = React.useRef(null);
3048
3048
  const rootRef = React.useRef(null);
3049
3049
  const [rootRect, setRootRect] = React.useState({});
@@ -3133,7 +3133,7 @@ var __publicField = (obj, key, value) => {
3133
3133
  {
3134
3134
  ref: rootRef,
3135
3135
  style: rootStyle,
3136
- className: classNames(classPrefix$i, className),
3136
+ className: classNames(classPrefix$j, className),
3137
3137
  ...rest
3138
3138
  },
3139
3139
  /* @__PURE__ */ React.createElement(
@@ -3149,9 +3149,9 @@ var __publicField = (obj, key, value) => {
3149
3149
  )
3150
3150
  );
3151
3151
  };
3152
- Sticky.defaultProps = defaultProps$1j;
3152
+ Sticky.defaultProps = defaultProps$1i;
3153
3153
  Sticky.displayName = "NutSticky";
3154
- const defaultProps$1i = {
3154
+ const defaultProps$1h = {
3155
3155
  ...ComponentDefaults,
3156
3156
  threshold: 200,
3157
3157
  zIndex: 10,
@@ -3159,7 +3159,7 @@ var __publicField = (obj, key, value) => {
3159
3159
  };
3160
3160
  const BackTop = (props) => {
3161
3161
  const { children, threshold, zIndex, className, duration, style, onClick } = {
3162
- ...defaultProps$1i,
3162
+ ...defaultProps$1h,
3163
3163
  ...props
3164
3164
  };
3165
3165
  const classPrefix2 = "nut-backtop";
@@ -3197,10 +3197,10 @@ var __publicField = (obj, key, value) => {
3197
3197
  children || /* @__PURE__ */ React.createElement(a$2, { width: 19, height: 19, className: "nut-backtop-main" })
3198
3198
  );
3199
3199
  };
3200
- BackTop.defaultProps = defaultProps$1i;
3200
+ BackTop.defaultProps = defaultProps$1h;
3201
3201
  BackTop.displayName = "NutBackTop";
3202
3202
  const elevatorContext = React.createContext({});
3203
- const defaultProps$1h = {
3203
+ const defaultProps$1g = {
3204
3204
  ...ComponentDefaults,
3205
3205
  height: "200px",
3206
3206
  floorKey: "title",
@@ -3227,7 +3227,7 @@ var __publicField = (obj, key, value) => {
3227
3227
  children,
3228
3228
  ...rest
3229
3229
  } = {
3230
- ...defaultProps$1h,
3230
+ ...defaultProps$1g,
3231
3231
  ...props
3232
3232
  };
3233
3233
  const classPrefix2 = "nut-elevator";
@@ -3439,10 +3439,10 @@ var __publicField = (obj, key, value) => {
3439
3439
  })
3440
3440
  ))) : null, sticky && scrollY > 0 ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__list__fixed` }, /* @__PURE__ */ React.createElement("span", { className: `${classPrefix2}__list__fixed__title` }, list[currentIndex][floorKey])) : null);
3441
3441
  };
3442
- Elevator.defaultProps = defaultProps$1h;
3442
+ Elevator.defaultProps = defaultProps$1g;
3443
3443
  Elevator.displayName = "NutElevator";
3444
3444
  Elevator.Context = elevatorContext;
3445
- const defaultProps$1g = {
3445
+ const defaultProps$1f = {
3446
3446
  ...ComponentDefaults,
3447
3447
  activeText: "",
3448
3448
  inactiveText: "",
@@ -3470,7 +3470,7 @@ var __publicField = (obj, key, value) => {
3470
3470
  content,
3471
3471
  ...rest
3472
3472
  } = {
3473
- ...defaultProps$1g,
3473
+ ...defaultProps$1f,
3474
3474
  ...props
3475
3475
  };
3476
3476
  const classPrefix2 = "nut-fixednav";
@@ -3522,9 +3522,9 @@ var __publicField = (obj, key, value) => {
3522
3522
  /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__btn`, onClick: () => onUpdateValue() }, content || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(a$i, { color: "#fff" }), /* @__PURE__ */ React.createElement("div", { className: "text" }, visible ? activeText || locale.fixednav.activeText : inactiveText || locale.fixednav.inactiveText)))
3523
3523
  );
3524
3524
  };
3525
- FixedNav.defaultProps = defaultProps$1g;
3525
+ FixedNav.defaultProps = defaultProps$1f;
3526
3526
  FixedNav.displayName = "NutFixedNav";
3527
- const defaultProps$1f = {
3527
+ const defaultProps$1e = {
3528
3528
  ...ComponentDefaults,
3529
3529
  left: "",
3530
3530
  right: "",
@@ -3547,7 +3547,7 @@ var __publicField = (obj, key, value) => {
3547
3547
  zIndex,
3548
3548
  onClickBack
3549
3549
  } = {
3550
- ...defaultProps$1f,
3550
+ ...defaultProps$1e,
3551
3551
  ...props
3552
3552
  };
3553
3553
  const classPrefix2 = "nut-navbar";
@@ -3584,7 +3584,7 @@ var __publicField = (obj, key, value) => {
3584
3584
  const cls = classNames(classPrefix2, classes, className);
3585
3585
  return /* @__PURE__ */ React.createElement(React.Fragment, null, fixed && placeholder ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}--placeholder` }, renderWrapper()) : renderWrapper());
3586
3586
  };
3587
- NavBar.defaultProps = defaultProps$1f;
3587
+ NavBar.defaultProps = defaultProps$1e;
3588
3588
  NavBar.displayName = "NutNavBar";
3589
3589
  function _extends() {
3590
3590
  _extends = Object.assign ? Object.assign.bind() : function(target) {
@@ -5327,7 +5327,7 @@ var __publicField = (obj, key, value) => {
5327
5327
  onExited: propTypesExports.func
5328
5328
  }) : {};
5329
5329
  const CSSTransition$1 = CSSTransition;
5330
- const defaultProps$1e = {
5330
+ const defaultProps$1d = {
5331
5331
  ...ComponentDefaults,
5332
5332
  position: "center",
5333
5333
  transition: "",
@@ -5509,10 +5509,10 @@ var __publicField = (obj, key, value) => {
5509
5509
  }, [position, transition]);
5510
5510
  return /* @__PURE__ */ React.createElement(React.Fragment, null, renderToContainer(portal, renderNode()));
5511
5511
  };
5512
- Popup.defaultProps = defaultProps$1e;
5512
+ Popup.defaultProps = defaultProps$1d;
5513
5513
  Popup.displayName = "NutPopup";
5514
5514
  const OffsetContext = React.createContext(20);
5515
- const defaultProps$1d = {
5515
+ const defaultProps$1c = {
5516
5516
  ...ComponentDefaults,
5517
5517
  position: "left",
5518
5518
  width: "80%"
@@ -5529,7 +5529,7 @@ var __publicField = (obj, key, value) => {
5529
5529
  onClose,
5530
5530
  ...rest
5531
5531
  } = {
5532
- ...defaultProps$1d,
5532
+ ...defaultProps$1c,
5533
5533
  ...props
5534
5534
  };
5535
5535
  const indent = props.indent ? Number(props.indent) : 20;
@@ -5569,7 +5569,7 @@ var __publicField = (obj, key, value) => {
5569
5569
  )))
5570
5570
  );
5571
5571
  };
5572
- SideNavBar.defaultProps = defaultProps$1d;
5572
+ SideNavBar.defaultProps = defaultProps$1c;
5573
5573
  SideNavBar.displayName = "NutSideNavBar";
5574
5574
  const SideNavBarItem = (props) => {
5575
5575
  const classPrefix2 = "nut-subsidenavbar";
@@ -5588,13 +5588,13 @@ var __publicField = (obj, key, value) => {
5588
5588
  title
5589
5589
  );
5590
5590
  };
5591
- const defaultProps$1c = {
5591
+ const defaultProps$1b = {
5592
5592
  open: true
5593
5593
  };
5594
5594
  const SubSideNavBar = (props) => {
5595
5595
  const classPrefix2 = "nut-subsidenavbar";
5596
5596
  const { title, value, children, onClick, open, ...rest } = {
5597
- ...defaultProps$1c,
5597
+ ...defaultProps$1b,
5598
5598
  ...props
5599
5599
  };
5600
5600
  const [subShow, setSubShow] = React.useState(open);
@@ -5661,7 +5661,7 @@ var __publicField = (obj, key, value) => {
5661
5661
  }
5662
5662
  return [uncontrolled, handleUncontrolledChange];
5663
5663
  }
5664
- const defaultProps$1b = {
5664
+ const defaultProps$1a = {
5665
5665
  ...ComponentDefaults,
5666
5666
  value: "",
5667
5667
  dot: false,
@@ -5672,7 +5672,7 @@ var __publicField = (obj, key, value) => {
5672
5672
  };
5673
5673
  const Badge = (props) => {
5674
5674
  const { className, style, value, max, children, dot, top, right, color } = {
5675
- ...defaultProps$1b,
5675
+ ...defaultProps$1a,
5676
5676
  ...props
5677
5677
  };
5678
5678
  const classPrefix2 = "nut-badge";
@@ -5699,9 +5699,9 @@ var __publicField = (obj, key, value) => {
5699
5699
  };
5700
5700
  return /* @__PURE__ */ React.createElement("div", { className: classes, style }, typeof value === "object" && value && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__icon` }, value), /* @__PURE__ */ React.createElement("div", null, children), /* @__PURE__ */ React.createElement("div", { className: contentClasses, style: getStyle() }, content()));
5701
5701
  };
5702
- Badge.defaultProps = defaultProps$1b;
5702
+ Badge.defaultProps = defaultProps$1a;
5703
5703
  Badge.displayName = "NutBadge";
5704
- const defaultProps$1a = {
5704
+ const defaultProps$19 = {
5705
5705
  ...ComponentDefaults,
5706
5706
  title: "",
5707
5707
  icon: null,
@@ -5723,7 +5723,7 @@ var __publicField = (obj, key, value) => {
5723
5723
  handleClick,
5724
5724
  ...rest
5725
5725
  } = {
5726
- ...defaultProps$1a,
5726
+ ...defaultProps$19,
5727
5727
  ...props
5728
5728
  };
5729
5729
  const classPrefix2 = "nut-tabbar-item";
@@ -5747,7 +5747,7 @@ var __publicField = (obj, key, value) => {
5747
5747
  icon ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Badge, { ...rest }, /* @__PURE__ */ React.createElement("div", { className: boxPrefix }, icon)), /* @__PURE__ */ React.createElement("div", { className: titleClass }, title)) : /* @__PURE__ */ React.createElement(Badge, { ...rest }, /* @__PURE__ */ React.createElement("div", { className: titleClass }, title))
5748
5748
  );
5749
5749
  };
5750
- const defaultProps$19 = {
5750
+ const defaultProps$18 = {
5751
5751
  ...ComponentDefaults,
5752
5752
  defaultValue: 0,
5753
5753
  fixed: false,
@@ -5770,7 +5770,7 @@ var __publicField = (obj, key, value) => {
5770
5770
  style,
5771
5771
  onSwitch
5772
5772
  } = {
5773
- ...defaultProps$19,
5773
+ ...defaultProps$18,
5774
5774
  ...props
5775
5775
  };
5776
5776
  const classPrefix2 = "nut-tabbar";
@@ -5805,17 +5805,17 @@ var __publicField = (obj, key, value) => {
5805
5805
  (fixed || safeArea) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__safe-area` })
5806
5806
  );
5807
5807
  };
5808
- Tabbar.defaultProps = defaultProps$19;
5808
+ Tabbar.defaultProps = defaultProps$18;
5809
5809
  Tabbar.displayName = "NutTabbar";
5810
5810
  Tabbar.Item = TabbarItem;
5811
- const defaultProps$18 = {
5811
+ const defaultProps$17 = {
5812
5812
  title: "",
5813
5813
  value: "",
5814
5814
  disabled: false
5815
5815
  };
5816
5816
  const TabPane = (props) => {
5817
5817
  const { children, autoHeightClassName, className, disabled } = {
5818
- ...defaultProps$18,
5818
+ ...defaultProps$17,
5819
5819
  ...props
5820
5820
  };
5821
5821
  const classPrefix2 = "nut-tabpane";
@@ -5833,7 +5833,7 @@ var __publicField = (obj, key, value) => {
5833
5833
  const [, updateState] = React.useState();
5834
5834
  return React.useCallback(() => updateState({}), []);
5835
5835
  }
5836
- const defaultProps$17 = {
5836
+ const defaultProps$16 = {
5837
5837
  ...ComponentDefaults,
5838
5838
  tabStyle: {},
5839
5839
  activeColor: "",
@@ -5842,7 +5842,7 @@ var __publicField = (obj, key, value) => {
5842
5842
  duration: 300,
5843
5843
  autoHeight: false
5844
5844
  };
5845
- const classPrefix$h = "nut-tabs";
5845
+ const classPrefix$i = "nut-tabs";
5846
5846
  const Tabs = (props) => {
5847
5847
  const {
5848
5848
  activeColor,
@@ -5859,7 +5859,7 @@ var __publicField = (obj, key, value) => {
5859
5859
  autoHeight,
5860
5860
  ...rest
5861
5861
  } = {
5862
- ...defaultProps$17,
5862
+ ...defaultProps$16,
5863
5863
  ...props
5864
5864
  };
5865
5865
  const [value, setValue] = usePropsValue({
@@ -5904,14 +5904,14 @@ var __publicField = (obj, key, value) => {
5904
5904
  }
5905
5905
  }, [children]);
5906
5906
  const classes = classNames(
5907
- classPrefix$h,
5908
- `${classPrefix$h}--${direction}`,
5907
+ classPrefix$i,
5908
+ `${classPrefix$i}--${direction}`,
5909
5909
  className
5910
5910
  );
5911
- const classesTitle = classNames(`${classPrefix$h}__titles`, {
5912
- [`${classPrefix$h}__titles--${activeType}`]: activeType,
5913
- [`${classPrefix$h}__titles--scrollable`]: true,
5914
- [`${classPrefix$h}__titles--${align}`]: align
5911
+ const classesTitle = classNames(`${classPrefix$i}__titles`, {
5912
+ [`${classPrefix$i}__titles--${activeType}`]: activeType,
5913
+ [`${classPrefix$i}__titles--scrollable`]: true,
5914
+ [`${classPrefix$i}__titles--${align}`]: align
5915
5915
  });
5916
5916
  const tabsActiveStyle = {
5917
5917
  color: activeType === "smile" ? activeColor : "",
@@ -5957,7 +5957,7 @@ var __publicField = (obj, key, value) => {
5957
5957
  onClick: (e) => {
5958
5958
  tabChange(item);
5959
5959
  },
5960
- className: classNames(`${classPrefix$h}__titles-item`, {
5960
+ className: classNames(`${classPrefix$i}__titles-item`, {
5961
5961
  [`nut-tabs__titles-item--active`]: !item.disabled && String(item.value) === String(value),
5962
5962
  [`nut-tabs__titles-item--disabled`]: item.disabled,
5963
5963
  [`nut-tabs__titles-item--${align}`]: align
@@ -5967,14 +5967,14 @@ var __publicField = (obj, key, value) => {
5967
5967
  activeType === "line" && /* @__PURE__ */ React.createElement(
5968
5968
  components.View,
5969
5969
  {
5970
- className: `${classPrefix$h}__titles-item__line`,
5970
+ className: `${classPrefix$i}__titles-item__line`,
5971
5971
  style: tabsActiveStyle
5972
5972
  }
5973
5973
  ),
5974
5974
  activeType === "smile" && /* @__PURE__ */ React.createElement(
5975
5975
  components.View,
5976
5976
  {
5977
- className: `${classPrefix$h}__titles-item__smile`,
5977
+ className: `${classPrefix$i}__titles-item__smile`,
5978
5978
  style: tabsActiveStyle
5979
5979
  },
5980
5980
  /* @__PURE__ */ React.createElement(a$j, { color: activeColor, width: 40, height: 20 })
@@ -5986,14 +5986,14 @@ var __publicField = (obj, key, value) => {
5986
5986
  {
5987
5987
  ellipsis: true
5988
5988
  },
5989
- `${classPrefix$h}__titles-item__text`
5989
+ `${classPrefix$i}__titles-item__text`
5990
5990
  )
5991
5991
  },
5992
5992
  item.title
5993
5993
  )
5994
5994
  );
5995
5995
  })
5996
- ), /* @__PURE__ */ React.createElement(components.View, { className: `${classPrefix$h}__content__wrap` }, /* @__PURE__ */ React.createElement(components.View, { className: `${classPrefix$h}__content`, style: contentStyle }, React.Children.map(children, (child, idx) => {
5996
+ ), /* @__PURE__ */ React.createElement(components.View, { className: `${classPrefix$i}__content__wrap` }, /* @__PURE__ */ React.createElement(components.View, { className: `${classPrefix$i}__content`, style: contentStyle }, React.Children.map(children, (child, idx) => {
5997
5997
  if (!React.isValidElement(child)) {
5998
5998
  return null;
5999
5999
  }
@@ -6010,7 +6010,7 @@ var __publicField = (obj, key, value) => {
6010
6010
  return React.cloneElement(child, childProps);
6011
6011
  }))));
6012
6012
  };
6013
- Tabs.defaultProps = defaultProps$17;
6013
+ Tabs.defaultProps = defaultProps$16;
6014
6014
  Tabs.displayName = "NutTabs";
6015
6015
  Tabs.TabPane = TabPane;
6016
6016
  var classnameExports = {};
@@ -6145,7 +6145,7 @@ var __publicField = (obj, key, value) => {
6145
6145
  const useConfig = () => {
6146
6146
  return React.useContext(ConfigContext) ?? getDefaultConfig();
6147
6147
  };
6148
- const defaultProps$16 = {
6148
+ const defaultProps$15 = {
6149
6149
  type: "custom",
6150
6150
  existAddress: [],
6151
6151
  defaultIcon: null,
@@ -6167,7 +6167,7 @@ var __publicField = (obj, key, value) => {
6167
6167
  onClose,
6168
6168
  onSwitchModule,
6169
6169
  ...rest
6170
- } = { ...defaultProps$16, ...props };
6170
+ } = { ...defaultProps$15, ...props };
6171
6171
  const b2 = cn("address");
6172
6172
  const selectedExist = (item) => {
6173
6173
  const copyExistAdd = existAddress;
@@ -6197,7 +6197,7 @@ var __publicField = (obj, key, value) => {
6197
6197
  return /* @__PURE__ */ React.createElement("li", { className: b2("exist-item"), key: index }, /* @__PURE__ */ React.createElement("div", { onClick: () => selectedExist(item) }, item.selectedAddress ? selectedIcon : defaultIcon, /* @__PURE__ */ React.createElement("div", { className: b2("exist-item-info") }, item.name && item.phone && /* @__PURE__ */ React.createElement("div", { className: "exist-item-info-top" }, /* @__PURE__ */ React.createElement("div", { className: "exist-item-info-name" }, item.name), /* @__PURE__ */ React.createElement("div", { className: "exist-item-info-phone" }, item.phone)), /* @__PURE__ */ React.createElement("div", { className: "exist-item-info-bottom" }, /* @__PURE__ */ React.createElement("div", null, item.provinceName + item.cityName + item.countyName + item.townName + item.addressDetail)))));
6198
6198
  }))), isShowCustomAddress && /* @__PURE__ */ React.createElement("div", { className: b2("choose-other"), onClick: onSwitch }, /* @__PURE__ */ React.createElement("div", { className: b2("choose-other-btn") }, customAndExistTitle || locale.address.chooseAnotherAddress)));
6199
6199
  };
6200
- const defaultProps$15 = {
6200
+ const defaultProps$14 = {
6201
6201
  modelValue: [],
6202
6202
  type: "custom",
6203
6203
  province: [],
@@ -6222,7 +6222,7 @@ var __publicField = (obj, key, value) => {
6222
6222
  onClose,
6223
6223
  ...rest
6224
6224
  } = {
6225
- ...defaultProps$15,
6225
+ ...defaultProps$14,
6226
6226
  ...props
6227
6227
  };
6228
6228
  const b2 = cn("address");
@@ -6386,28 +6386,28 @@ var __publicField = (obj, key, value) => {
6386
6386
  nextAreaList(item);
6387
6387
  };
6388
6388
  React.useEffect(() => {
6389
- const { province: province2 } = { ...defaultProps$15, ...props };
6389
+ const { province: province2 } = { ...defaultProps$14, ...props };
6390
6390
  setRegionList({
6391
6391
  ...regionList,
6392
6392
  province: isCustom2() ? transformData(province2) : province2
6393
6393
  });
6394
6394
  }, [province]);
6395
6395
  React.useEffect(() => {
6396
- const { city: city2 } = { ...defaultProps$15, ...props };
6396
+ const { city: city2 } = { ...defaultProps$14, ...props };
6397
6397
  setRegionList({
6398
6398
  ...regionList,
6399
6399
  city: isCustom2() ? transformData(city2) : city2
6400
6400
  });
6401
6401
  }, [city]);
6402
6402
  React.useEffect(() => {
6403
- const { country: country2 } = { ...defaultProps$15, ...props };
6403
+ const { country: country2 } = { ...defaultProps$14, ...props };
6404
6404
  setRegionList({
6405
6405
  ...regionList,
6406
6406
  country: isCustom2() ? transformData(country2) : country2
6407
6407
  });
6408
6408
  }, [country]);
6409
6409
  React.useEffect(() => {
6410
- const { town: town2 } = { ...defaultProps$15, ...props };
6410
+ const { town: town2 } = { ...defaultProps$14, ...props };
6411
6411
  setRegionList({
6412
6412
  ...regionList,
6413
6413
  town: isCustom2() ? transformData(town2) : town2
@@ -6471,7 +6471,7 @@ var __publicField = (obj, key, value) => {
6471
6471
  }
6472
6472
  )));
6473
6473
  };
6474
- const defaultProps$14 = {
6474
+ const defaultProps$13 = {
6475
6475
  ...ComponentDefaults,
6476
6476
  modelValue: false,
6477
6477
  modelSelect: [],
@@ -6522,7 +6522,7 @@ var __publicField = (obj, key, value) => {
6522
6522
  className,
6523
6523
  ...rest
6524
6524
  } = {
6525
- ...defaultProps$14,
6525
+ ...defaultProps$13,
6526
6526
  ...props
6527
6527
  };
6528
6528
  const b2 = cn("address");
@@ -6674,7 +6674,7 @@ var __publicField = (obj, key, value) => {
6674
6674
  )
6675
6675
  ));
6676
6676
  };
6677
- Address.defaultProps = defaultProps$14;
6677
+ Address.defaultProps = defaultProps$13;
6678
6678
  Address.displayName = "NutAddress";
6679
6679
  const Utils = {
6680
6680
  /**
@@ -6807,7 +6807,7 @@ var __publicField = (obj, key, value) => {
6807
6807
  }
6808
6808
  }
6809
6809
  const requestAniFrame$1 = requestAniFrame();
6810
- const defaultProps$13 = {
6810
+ const defaultProps$12 = {
6811
6811
  type: "one",
6812
6812
  isAutoBackFill: false,
6813
6813
  poppable: true,
@@ -6859,7 +6859,7 @@ var __publicField = (obj, key, value) => {
6859
6859
  onUpdate,
6860
6860
  onSelected,
6861
6861
  onYearMonthChange
6862
- } = { ...defaultProps$13, ...props };
6862
+ } = { ...defaultProps$12, ...props };
6863
6863
  const weeks = locale.calendaritem.weekdays;
6864
6864
  const [yearMonthTitle, setYearMonthTitle] = React.useState("");
6865
6865
  const [monthsData, setMonthsData] = React.useState([]);
@@ -7450,9 +7450,9 @@ var __publicField = (obj, key, value) => {
7450
7450
  ))
7451
7451
  ), poppable && !isAutoBackFill ? /* @__PURE__ */ React.createElement("div", { className: "nut-calendar-footer" }, /* @__PURE__ */ React.createElement("div", { className: "calendar-confirm-btn", onClick: confirm }, confirmText || locale.confirm)) : ""));
7452
7452
  });
7453
- CalendarItem.defaultProps = defaultProps$13;
7453
+ CalendarItem.defaultProps = defaultProps$12;
7454
7454
  CalendarItem.displayName = "NutCalendarItem";
7455
- const defaultProps$12 = {
7455
+ const defaultProps$11 = {
7456
7456
  type: "one",
7457
7457
  isAutoBackFill: false,
7458
7458
  poppable: true,
@@ -7508,7 +7508,7 @@ var __publicField = (obj, key, value) => {
7508
7508
  onChoose,
7509
7509
  onSelected,
7510
7510
  onYearMonthChange
7511
- } = { ...defaultProps$12, ...props };
7511
+ } = { ...defaultProps$11, ...props };
7512
7512
  const calendarRef = React.useRef(null);
7513
7513
  const close = () => {
7514
7514
  onClose && onClose();
@@ -7578,9 +7578,9 @@ var __publicField = (obj, key, value) => {
7578
7578
  renderItem()
7579
7579
  ) : renderItem());
7580
7580
  });
7581
- Calendar.defaultProps = defaultProps$12;
7581
+ Calendar.defaultProps = defaultProps$11;
7582
7582
  Calendar.displayName = "NutCalendar";
7583
- const defaultProps$11 = {
7583
+ const defaultProps$10 = {
7584
7584
  data: {
7585
7585
  text: "",
7586
7586
  value: "",
@@ -7597,7 +7597,7 @@ var __publicField = (obj, key, value) => {
7597
7597
  };
7598
7598
  const InternalCascaderItem = (props, ref) => {
7599
7599
  const { data, checked, activeIcon, chooseItem, activeColor } = {
7600
- ...defaultProps$11,
7600
+ ...defaultProps$10,
7601
7601
  ...props
7602
7602
  };
7603
7603
  const classPrefix2 = "nut-cascader-item";
@@ -7639,7 +7639,7 @@ var __publicField = (obj, key, value) => {
7639
7639
  );
7640
7640
  };
7641
7641
  const CascaderItem = React.forwardRef(InternalCascaderItem);
7642
- CascaderItem.defaultProps = defaultProps$11;
7642
+ CascaderItem.defaultProps = defaultProps$10;
7643
7643
  CascaderItem.displayName = "NutCascaderItem";
7644
7644
  const formatTree = (tree, parent, config2) => tree.map((node) => {
7645
7645
  const {
@@ -7777,7 +7777,7 @@ var __publicField = (obj, key, value) => {
7777
7777
  }
7778
7778
  }
7779
7779
  const Tree$1 = Tree;
7780
- const defaultProps$10 = {
7780
+ const defaultProps$$ = {
7781
7781
  ...ComponentDefaults,
7782
7782
  activeColor: "",
7783
7783
  activeIcon: "checklist",
@@ -7820,7 +7820,7 @@ var __publicField = (obj, key, value) => {
7820
7820
  onClose,
7821
7821
  onChange,
7822
7822
  onPathChange
7823
- } = { ...defaultProps$10, ...props };
7823
+ } = { ...defaultProps$$, ...props };
7824
7824
  const [tabvalue, setTabvalue] = React.useState("c1");
7825
7825
  const [optionsData, setOptionsData] = React.useState([]);
7826
7826
  const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
@@ -8082,11 +8082,11 @@ var __publicField = (obj, key, value) => {
8082
8082
  ) : renderItem());
8083
8083
  };
8084
8084
  const Cascader = React.forwardRef(InternalCascader);
8085
- Cascader.defaultProps = defaultProps$10;
8085
+ Cascader.defaultProps = defaultProps$$;
8086
8086
  Cascader.displayName = "NutCascader";
8087
8087
  const CheckboxGroupContext = React.createContext(null);
8088
8088
  const Context = CheckboxGroupContext;
8089
- const defaultProps$$ = {
8089
+ const defaultProps$_ = {
8090
8090
  max: void 0,
8091
8091
  labelPosition: "right",
8092
8092
  direction: "vertical",
@@ -8094,10 +8094,10 @@ var __publicField = (obj, key, value) => {
8094
8094
  },
8095
8095
  options: []
8096
8096
  };
8097
- const classPrefix$g = "nut-checkboxgroup";
8097
+ const classPrefix$h = "nut-checkboxgroup";
8098
8098
  const CheckboxGroup = React.forwardRef(
8099
8099
  (props, ref) => {
8100
- const { children } = { ...defaultProps$$, ...props };
8100
+ const { children } = { ...defaultProps$_, ...props };
8101
8101
  const {
8102
8102
  className,
8103
8103
  disabled,
@@ -8176,7 +8176,7 @@ var __publicField = (obj, key, value) => {
8176
8176
  /* @__PURE__ */ React.createElement(
8177
8177
  "div",
8178
8178
  {
8179
- className: classNames(classPrefix$g, className, {
8179
+ className: classNames(classPrefix$h, className, {
8180
8180
  [`nut-checkboxgroup--${props.direction}`]: props.direction
8181
8181
  }),
8182
8182
  ...rest
@@ -8186,9 +8186,9 @@ var __publicField = (obj, key, value) => {
8186
8186
  );
8187
8187
  }
8188
8188
  );
8189
- CheckboxGroup.defaultProps = defaultProps$$;
8189
+ CheckboxGroup.defaultProps = defaultProps$_;
8190
8190
  CheckboxGroup.displayName = "NutCheckboxGroup";
8191
- const defaultProps$_ = {
8191
+ const defaultProps$Z = {
8192
8192
  ...ComponentDefaults,
8193
8193
  disabled: false,
8194
8194
  labelPosition: "right",
@@ -8198,10 +8198,10 @@ var __publicField = (obj, key, value) => {
8198
8198
  onChange: (value) => {
8199
8199
  }
8200
8200
  };
8201
- const classPrefix$f = "nut-checkbox";
8201
+ const classPrefix$g = "nut-checkbox";
8202
8202
  const Checkbox = (props) => {
8203
8203
  const { children } = {
8204
- ...defaultProps$_,
8204
+ ...defaultProps$Z,
8205
8205
  ...props
8206
8206
  };
8207
8207
  const {
@@ -8260,22 +8260,22 @@ var __publicField = (obj, key, value) => {
8260
8260
  };
8261
8261
  const color = () => {
8262
8262
  if (innerDisabled) {
8263
- return `${classPrefix$f}__icon--disable`;
8263
+ return `${classPrefix$g}__icon--disable`;
8264
8264
  }
8265
8265
  if (innerChecked) {
8266
8266
  if (innerIndeterminate) {
8267
- return `${classPrefix$f}__icon--indeterminate`;
8267
+ return `${classPrefix$g}__icon--indeterminate`;
8268
8268
  }
8269
- return `${classPrefix$f}__icon`;
8269
+ return `${classPrefix$g}__icon`;
8270
8270
  }
8271
- return `${classPrefix$f}__icon--unchecked`;
8271
+ return `${classPrefix$g}__icon--unchecked`;
8272
8272
  };
8273
8273
  const renderLabel = () => {
8274
8274
  return /* @__PURE__ */ React.createElement(
8275
8275
  "span",
8276
8276
  {
8277
- className: classNames(`${classPrefix$f}__label `, {
8278
- [`${classPrefix$f}__label--disabled`]: innerDisabled
8277
+ className: classNames(`${classPrefix$g}__label `, {
8278
+ [`${classPrefix$g}__label--disabled`]: innerDisabled
8279
8279
  })
8280
8280
  },
8281
8281
  children || label
@@ -8294,8 +8294,8 @@ var __publicField = (obj, key, value) => {
8294
8294
  return /* @__PURE__ */ React.createElement(
8295
8295
  "div",
8296
8296
  {
8297
- className: classNames(classPrefix$f, className, {
8298
- [`${classPrefix$f}--reverse`]: labelPosition === "left"
8297
+ className: classNames(classPrefix$g, className, {
8298
+ [`${classPrefix$g}--reverse`]: labelPosition === "left"
8299
8299
  }),
8300
8300
  ...rest,
8301
8301
  onClick: handleClick
@@ -8304,7 +8304,7 @@ var __publicField = (obj, key, value) => {
8304
8304
  renderLabel()
8305
8305
  );
8306
8306
  };
8307
- Checkbox.defaultProps = defaultProps$_;
8307
+ Checkbox.defaultProps = defaultProps$Z;
8308
8308
  Checkbox.displayName = "NutCheckBox";
8309
8309
  Checkbox.Group = CheckboxGroup;
8310
8310
  const MIN_DISTANCE = 10;
@@ -8631,7 +8631,7 @@ var __publicField = (obj, key, value) => {
8631
8631
  }, []);
8632
8632
  return [refs.current, setRefs, reset];
8633
8633
  }
8634
- const defaultProps$Z = {
8634
+ const defaultProps$Y = {
8635
8635
  ...ComponentDefaults,
8636
8636
  visible: false,
8637
8637
  title: "",
@@ -8658,7 +8658,7 @@ var __publicField = (obj, key, value) => {
8658
8658
  afterClose,
8659
8659
  onChange,
8660
8660
  ...rest
8661
- } = { ...defaultProps$Z, ...props };
8661
+ } = { ...defaultProps$Y, ...props };
8662
8662
  const classPrefix2 = "nut-picker";
8663
8663
  const classes = classNames(classPrefix2, className);
8664
8664
  const [selectedValue, setSelectedValue] = usePropsValue({
@@ -8928,7 +8928,7 @@ var __publicField = (obj, key, value) => {
8928
8928
  const Picker = React.forwardRef(InternalPicker);
8929
8929
  const Picker$1 = Picker;
8930
8930
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
8931
- const defaultProps$Y = {
8931
+ const defaultProps$X = {
8932
8932
  modelValue: null,
8933
8933
  visible: false,
8934
8934
  title: "",
@@ -8959,7 +8959,7 @@ var __publicField = (obj, key, value) => {
8959
8959
  style,
8960
8960
  ...rest
8961
8961
  } = {
8962
- ...defaultProps$Y,
8962
+ ...defaultProps$X,
8963
8963
  ...props
8964
8964
  };
8965
8965
  const { locale } = useConfig$1();
@@ -9237,10 +9237,10 @@ var __publicField = (obj, key, value) => {
9237
9237
  )
9238
9238
  );
9239
9239
  };
9240
- DatePicker.defaultProps = defaultProps$Y;
9240
+ DatePicker.defaultProps = defaultProps$X;
9241
9241
  DatePicker.displayName = "NutDatePicker";
9242
9242
  const FormItemContext = React.createContext({});
9243
- const defaultProps$X = {
9243
+ const defaultProps$W = {
9244
9244
  ...ComponentDefaults,
9245
9245
  name: "",
9246
9246
  label: "",
@@ -9289,7 +9289,7 @@ var __publicField = (obj, key, value) => {
9289
9289
  showErrorLine,
9290
9290
  showErrorMessage
9291
9291
  } = {
9292
- ...defaultProps$X,
9292
+ ...defaultProps$W,
9293
9293
  ...this.props
9294
9294
  };
9295
9295
  const item = ((_a = this.context.errList) == null ? void 0 : _a.length) > 0 && ((_b = this.context.errList) == null ? void 0 : _b.filter((item2) => {
@@ -9338,7 +9338,7 @@ var __publicField = (obj, key, value) => {
9338
9338
  return this.renderLayout(returnChildNode);
9339
9339
  }
9340
9340
  }
9341
- __publicField(FormItem, "defaultProps", defaultProps$X);
9341
+ __publicField(FormItem, "defaultProps", defaultProps$W);
9342
9342
  __publicField(FormItem, "contextType", FormItemContext);
9343
9343
  class FormStore {
9344
9344
  constructor() {
@@ -9462,7 +9462,7 @@ var __publicField = (obj, key, value) => {
9462
9462
  }
9463
9463
  return [formRef.current];
9464
9464
  };
9465
- const defaultProps$W = {
9465
+ const defaultProps$V = {
9466
9466
  ...ComponentDefaults,
9467
9467
  className: "",
9468
9468
  style: void 0,
@@ -9489,7 +9489,7 @@ var __publicField = (obj, key, value) => {
9489
9489
  starPositon,
9490
9490
  ...rest
9491
9491
  } = {
9492
- ...defaultProps$W,
9492
+ ...defaultProps$V,
9493
9493
  ...props
9494
9494
  };
9495
9495
  console.log("46 dddd");
@@ -9513,7 +9513,7 @@ var __publicField = (obj, key, value) => {
9513
9513
  /* @__PURE__ */ React.createElement(CellGroup, null, /* @__PURE__ */ React.createElement(FormItemContext.Provider, { value: formInstance }, children))
9514
9514
  );
9515
9515
  };
9516
- Form.defaultProps = defaultProps$W;
9516
+ Form.defaultProps = defaultProps$V;
9517
9517
  Form.displayName = "NutForm";
9518
9518
  Form.Item = FormItem;
9519
9519
  function trimExtraChar(value, char, regExp) {
@@ -9540,7 +9540,7 @@ var __publicField = (obj, key, value) => {
9540
9540
  const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
9541
9541
  return value.replace(regExp, "");
9542
9542
  }
9543
- const defaultProps$V = {
9543
+ const defaultProps$U = {
9544
9544
  ...ComponentDefaults,
9545
9545
  type: "text",
9546
9546
  name: "",
@@ -9584,7 +9584,7 @@ var __publicField = (obj, key, value) => {
9584
9584
  value: _value,
9585
9585
  ...rest
9586
9586
  } = {
9587
- ...defaultProps$V,
9587
+ ...defaultProps$U,
9588
9588
  ...props
9589
9589
  };
9590
9590
  const [value, setValue] = usePropsValue({
@@ -9725,9 +9725,9 @@ var __publicField = (obj, key, value) => {
9725
9725
  );
9726
9726
  }
9727
9727
  );
9728
- Input.defaultProps = defaultProps$V;
9728
+ Input.defaultProps = defaultProps$U;
9729
9729
  Input.displayName = "NutInput";
9730
- const defaultProps$U = {
9730
+ const defaultProps$T = {
9731
9731
  ...ComponentDefaults,
9732
9732
  disabled: false,
9733
9733
  min: 1,
@@ -9739,7 +9739,7 @@ var __publicField = (obj, key, value) => {
9739
9739
  digits: 0,
9740
9740
  async: false
9741
9741
  };
9742
- const classPrefix$e = `nut-inputnumber`;
9742
+ const classPrefix$f = `nut-inputnumber`;
9743
9743
  const InputNumber = (props) => {
9744
9744
  const {
9745
9745
  children,
@@ -9764,7 +9764,7 @@ var __publicField = (obj, key, value) => {
9764
9764
  onChange,
9765
9765
  ...restProps
9766
9766
  } = {
9767
- ...defaultProps$U,
9767
+ ...defaultProps$T,
9768
9768
  ...props
9769
9769
  };
9770
9770
  const inputRef = React.useRef("");
@@ -9782,8 +9782,8 @@ var __publicField = (obj, key, value) => {
9782
9782
  }, []);
9783
9783
  const classes = classNames(
9784
9784
  {
9785
- [`${classPrefix$e}`]: true,
9786
- [`${classPrefix$e}--disabled`]: disabled
9785
+ [`${classPrefix$f}`]: true,
9786
+ [`${classPrefix$f}--disabled`]: disabled
9787
9787
  },
9788
9788
  className
9789
9789
  );
@@ -9951,9 +9951,9 @@ var __publicField = (obj, key, value) => {
9951
9951
  }
9952
9952
  )), /* @__PURE__ */ React.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React.createElement(a$9, { className: iconAddClasses, onClick: addNumber })));
9953
9953
  };
9954
- InputNumber.defaultProps = defaultProps$U;
9954
+ InputNumber.defaultProps = defaultProps$T;
9955
9955
  InputNumber.displayName = "NutInputNumber";
9956
- const defaultProps$T = {
9956
+ const defaultProps$S = {
9957
9957
  ...ComponentDefaults,
9958
9958
  activeColor: "",
9959
9959
  closeOnOverlayClick: true,
@@ -9972,7 +9972,7 @@ var __publicField = (obj, key, value) => {
9972
9972
  activeColor,
9973
9973
  ...rest
9974
9974
  } = {
9975
- ...defaultProps$T,
9975
+ ...defaultProps$S,
9976
9976
  ...props
9977
9977
  };
9978
9978
  const menuRef = React.useRef(null);
@@ -10091,9 +10091,9 @@ var __publicField = (obj, key, value) => {
10091
10091
  ), cloneChildren())
10092
10092
  );
10093
10093
  };
10094
- Menu.defaultProps = defaultProps$T;
10094
+ Menu.defaultProps = defaultProps$S;
10095
10095
  Menu.displayName = "NutMenu";
10096
- const defaultProps$S = {
10096
+ const defaultProps$R = {
10097
10097
  ...ComponentDefaults,
10098
10098
  columns: 1,
10099
10099
  direction: "down",
@@ -10123,7 +10123,7 @@ var __publicField = (obj, key, value) => {
10123
10123
  parent,
10124
10124
  index
10125
10125
  } = {
10126
- ...defaultProps$S,
10126
+ ...defaultProps$R,
10127
10127
  ...props
10128
10128
  };
10129
10129
  const [_showPopup, setShowPopup] = React.useState(show);
@@ -10272,9 +10272,9 @@ var __publicField = (obj, key, value) => {
10272
10272
  )
10273
10273
  ));
10274
10274
  });
10275
- MenuItem.defaultProps = defaultProps$S;
10275
+ MenuItem.defaultProps = defaultProps$R;
10276
10276
  MenuItem.displayName = "NutMenuItem";
10277
- const defaultProps$R = {
10277
+ const defaultProps$Q = {
10278
10278
  ...ComponentDefaults,
10279
10279
  visible: false,
10280
10280
  type: "default",
@@ -10419,17 +10419,17 @@ var __publicField = (obj, key, value) => {
10419
10419
  ))))
10420
10420
  );
10421
10421
  };
10422
- NumberKeyboard.defaultProps = defaultProps$R;
10422
+ NumberKeyboard.defaultProps = defaultProps$Q;
10423
10423
  NumberKeyboard.displayName = "NutNumberKeyboard";
10424
10424
  const RadioContext = React.createContext(null);
10425
- const defaultProps$Q = {
10425
+ const defaultProps$P = {
10426
10426
  labelPosition: "right",
10427
10427
  onChange: (value) => {
10428
10428
  },
10429
10429
  direction: "vertical",
10430
10430
  options: []
10431
10431
  };
10432
- const classPrefix$d = "nut-radiogroup";
10432
+ const classPrefix$e = "nut-radiogroup";
10433
10433
  const RadioGroup = React.forwardRef(
10434
10434
  (props, ref) => {
10435
10435
  const {
@@ -10443,7 +10443,7 @@ var __publicField = (obj, key, value) => {
10443
10443
  options,
10444
10444
  disabled,
10445
10445
  ...rest
10446
- } = { ...defaultProps$Q, ...props };
10446
+ } = { ...defaultProps$P, ...props };
10447
10447
  const [val2State, setVal2State] = usePropsValue({
10448
10448
  defaultValue: props.defaultValue,
10449
10449
  value: props.value,
@@ -10485,8 +10485,8 @@ var __publicField = (obj, key, value) => {
10485
10485
  /* @__PURE__ */ React.createElement(
10486
10486
  "div",
10487
10487
  {
10488
- className: classNames(classPrefix$d, className, {
10489
- [`${classPrefix$d}--${props.direction}`]: props.direction
10488
+ className: classNames(classPrefix$e, className, {
10489
+ [`${classPrefix$e}--${props.direction}`]: props.direction
10490
10490
  }),
10491
10491
  ...rest
10492
10492
  },
@@ -10495,9 +10495,9 @@ var __publicField = (obj, key, value) => {
10495
10495
  );
10496
10496
  }
10497
10497
  );
10498
- RadioGroup.defaultProps = defaultProps$Q;
10498
+ RadioGroup.defaultProps = defaultProps$P;
10499
10499
  RadioGroup.displayName = "NutRadioGroup";
10500
- const defaultProps$P = {
10500
+ const defaultProps$O = {
10501
10501
  ...ComponentDefaults,
10502
10502
  disabled: false,
10503
10503
  shape: "round",
@@ -10523,7 +10523,7 @@ var __publicField = (obj, key, value) => {
10523
10523
  onChange,
10524
10524
  ...others
10525
10525
  } = {
10526
- ...defaultProps$P,
10526
+ ...defaultProps$O,
10527
10527
  ...props
10528
10528
  };
10529
10529
  let { labelPosition, disabled, ...rest } = others;
@@ -10619,10 +10619,10 @@ var __publicField = (obj, key, value) => {
10619
10619
  renderRadioItem()
10620
10620
  );
10621
10621
  };
10622
- Radio.defaultProps = defaultProps$P;
10622
+ Radio.defaultProps = defaultProps$O;
10623
10623
  Radio.displayName = "NutRadio";
10624
10624
  Radio.Group = RadioGroup;
10625
- const defaultProps$O = {
10625
+ const defaultProps$N = {
10626
10626
  ...ComponentDefaults,
10627
10627
  range: false,
10628
10628
  min: 0,
@@ -10650,7 +10650,7 @@ var __publicField = (obj, key, value) => {
10650
10650
  step,
10651
10651
  value,
10652
10652
  defaultValue
10653
- } = { ...defaultProps$O, ...props };
10653
+ } = { ...defaultProps$N, ...props };
10654
10654
  const classPrefix2 = "nut-range";
10655
10655
  const [buttonIndex, setButtonIndex] = React.useState(0);
10656
10656
  const [dragStatus, setDragStatus] = React.useState("start");
@@ -10914,9 +10914,9 @@ var __publicField = (obj, key, value) => {
10914
10914
  renderButton()
10915
10915
  ))), maxDescription !== null && /* @__PURE__ */ React.createElement("div", { className: "max" }, maxDescription || max));
10916
10916
  };
10917
- Range.defaultProps = defaultProps$O;
10917
+ Range.defaultProps = defaultProps$N;
10918
10918
  Range.displayName = "NutRange";
10919
- const defaultProps$N = {
10919
+ const defaultProps$M = {
10920
10920
  ...ComponentDefaults,
10921
10921
  count: 5,
10922
10922
  min: 0,
@@ -10941,7 +10941,7 @@ var __publicField = (obj, key, value) => {
10941
10941
  allowHalf,
10942
10942
  onChange
10943
10943
  } = {
10944
- ...defaultProps$N,
10944
+ ...defaultProps$M,
10945
10945
  ...props
10946
10946
  };
10947
10947
  const classPrefix2 = "nut-rate";
@@ -11024,9 +11024,9 @@ var __publicField = (obj, key, value) => {
11024
11024
  })
11025
11025
  );
11026
11026
  };
11027
- Rate.defaultProps = defaultProps$N;
11027
+ Rate.defaultProps = defaultProps$M;
11028
11028
  Rate.displayName = "NutRate";
11029
- const defaultProps$M = {
11029
+ const defaultProps$L = {
11030
11030
  ...ComponentDefaults,
11031
11031
  placeholder: "",
11032
11032
  shape: "square",
@@ -11065,7 +11065,7 @@ var __publicField = (obj, key, value) => {
11065
11065
  onSearch,
11066
11066
  onClickInput
11067
11067
  } = {
11068
- ...defaultProps$M,
11068
+ ...defaultProps$L,
11069
11069
  ...props
11070
11070
  };
11071
11071
  const forceFocus = () => {
@@ -11174,9 +11174,9 @@ var __publicField = (obj, key, value) => {
11174
11174
  renderRight()
11175
11175
  );
11176
11176
  };
11177
- SearchBar.defaultProps = defaultProps$M;
11177
+ SearchBar.defaultProps = defaultProps$L;
11178
11178
  SearchBar.displayName = "NutSearchBar";
11179
- const defaultProps$L = {
11179
+ const defaultProps$K = {
11180
11180
  ...ComponentDefaults,
11181
11181
  value: "",
11182
11182
  visible: false,
@@ -11213,7 +11213,7 @@ var __publicField = (obj, key, value) => {
11213
11213
  onClickCloseIcon,
11214
11214
  ...rest
11215
11215
  } = {
11216
- ...defaultProps$L,
11216
+ ...defaultProps$K,
11217
11217
  ...props
11218
11218
  };
11219
11219
  const classPrefix2 = "nut-shortpassword";
@@ -11270,34 +11270,31 @@ var __publicField = (obj, key, value) => {
11270
11270
  ), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__footer__sure`, onClick: sure }, locale.confirm)))
11271
11271
  );
11272
11272
  };
11273
- ShortPassword.defaultProps = defaultProps$L;
11273
+ ShortPassword.defaultProps = defaultProps$K;
11274
11274
  ShortPassword.displayName = "NutShortPassword";
11275
- const defaultProps$K = {
11275
+ const defaultProps$J = {
11276
+ ...ComponentDefaults,
11276
11277
  canvasId: "spcanvas",
11277
11278
  type: "png",
11278
11279
  lineWidth: 2,
11279
- strokeStyle: "#000",
11280
- className: ""
11280
+ strokeStyle: "#000"
11281
11281
  };
11282
- const Signature = (props) => {
11283
- const { locale } = useConfig$1();
11282
+ const InternalSignature = (props, ref) => {
11284
11283
  const {
11285
11284
  canvasId,
11286
11285
  type,
11287
11286
  lineWidth,
11288
11287
  strokeStyle,
11289
- unSupportTpl,
11290
11288
  className,
11291
- confirm,
11292
- clear,
11289
+ style,
11293
11290
  onConfirm,
11294
11291
  onClear,
11295
11292
  ...rest
11296
11293
  } = {
11297
- ...defaultProps$K,
11294
+ ...defaultProps$J,
11298
11295
  ...props
11299
11296
  };
11300
- const b2 = cn("signature");
11297
+ const classPrefix2 = `nut-signature`;
11301
11298
  const canvasRef = React.useRef(null);
11302
11299
  const wrapRef = React.useRef(null);
11303
11300
  const [canvasHeight, setCanvasHeight] = React.useState(0);
@@ -11335,12 +11332,8 @@ var __publicField = (obj, key, value) => {
11335
11332
  ctx.current.clearRect(0, 0, canvasWidth, canvasHeight);
11336
11333
  ctx.current.closePath();
11337
11334
  }
11338
- clear && clear();
11339
11335
  onClear && onClear();
11340
11336
  };
11341
- const handleConfirmBtn = () => {
11342
- onSave();
11343
- };
11344
11337
  const onSave = () => {
11345
11338
  Taro.createSelectorQuery().select(`#${canvasId}`).fields({
11346
11339
  node: true,
@@ -11352,7 +11345,6 @@ var __publicField = (obj, key, value) => {
11352
11345
  canvasId: `${canvasId}`,
11353
11346
  success: (res2) => {
11354
11347
  handleClearBtn();
11355
- confirm && confirm(res2.tempFilePath);
11356
11348
  onConfirm && onConfirm(res2.tempFilePath);
11357
11349
  },
11358
11350
  fail: (res2) => {
@@ -11376,6 +11368,14 @@ var __publicField = (obj, key, value) => {
11376
11368
  ctx.current.strokeStyle = strokeStyle;
11377
11369
  }
11378
11370
  };
11371
+ React.useImperativeHandle(ref, () => ({
11372
+ confirm: () => {
11373
+ onSave();
11374
+ },
11375
+ clear: () => {
11376
+ handleClearBtn();
11377
+ }
11378
+ }));
11379
11379
  const initCanvas = () => {
11380
11380
  Taro.nextTick(() => {
11381
11381
  setTimeout(() => {
@@ -11412,7 +11412,7 @@ var __publicField = (obj, key, value) => {
11412
11412
  React.useEffect(() => {
11413
11413
  initCanvas();
11414
11414
  }, []);
11415
- return /* @__PURE__ */ React.createElement("div", { className: `${b2()} ${className}`, ...rest }, /* @__PURE__ */ React.createElement("div", { className: `${b2("inner")} spcanvas_WEAPP`, ref: wrapRef }, Taro.getEnv() === "WEAPP" || Taro.getEnv() === "JD" ? /* @__PURE__ */ React.createElement(
11415
+ return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2} ${className}`, ...rest }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__inner spcanvas_WEAPP`, ref: wrapRef }, Taro.getEnv() === "WEAPP" || Taro.getEnv() === "JD" ? /* @__PURE__ */ React.createElement(
11416
11416
  "canvas",
11417
11417
  {
11418
11418
  id: canvasId,
@@ -11436,27 +11436,12 @@ var __publicField = (obj, key, value) => {
11436
11436
  onTouchEnd: endEventHandler,
11437
11437
  onTouchCancel: endEventHandler
11438
11438
  }
11439
- )), /* @__PURE__ */ React.createElement(
11440
- Button,
11441
- {
11442
- className: `${b2("btn")}`,
11443
- type: "default",
11444
- onClick: () => handleClearBtn()
11445
- },
11446
- locale.signature.reSign
11447
- ), /* @__PURE__ */ React.createElement(
11448
- Button,
11449
- {
11450
- className: `${b2("btn")}`,
11451
- type: "primary",
11452
- onClick: () => handleConfirmBtn()
11453
- },
11454
- locale.confirm
11455
- ));
11439
+ )));
11456
11440
  };
11457
- Signature.defaultProps = defaultProps$K;
11441
+ const Signature = React.forwardRef(InternalSignature);
11442
+ Signature.defaultProps = defaultProps$J;
11458
11443
  Signature.displayName = "NutSignature";
11459
- const defaultProps$J = {
11444
+ const defaultProps$I = {
11460
11445
  ...ComponentDefaults,
11461
11446
  disabled: false,
11462
11447
  activeText: "",
@@ -11473,7 +11458,7 @@ var __publicField = (obj, key, value) => {
11473
11458
  style,
11474
11459
  onChange
11475
11460
  } = {
11476
- ...defaultProps$J,
11461
+ ...defaultProps$I,
11477
11462
  ...props
11478
11463
  };
11479
11464
  const classPrefix2 = "nut-switch";
@@ -11492,9 +11477,9 @@ var __publicField = (obj, key, value) => {
11492
11477
  };
11493
11478
  return /* @__PURE__ */ React.createElement("div", { className: classes(), onClick: (e) => onClick(e), style }, /* @__PURE__ */ React.createElement("div", { className: "switch-button" }, !value && /* @__PURE__ */ React.createElement("div", { className: "close-line" }), activeText && /* @__PURE__ */ React.createElement(React.Fragment, null, value ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__label open` }, activeText) : /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__label close` }, inactiveText))));
11494
11479
  };
11495
- Switch.defaultProps = defaultProps$J;
11480
+ Switch.defaultProps = defaultProps$I;
11496
11481
  Switch.displayName = "NutSwitch";
11497
- const defaultProps$I = {
11482
+ const defaultProps$H = {
11498
11483
  ...ComponentDefaults,
11499
11484
  defaultValue: "",
11500
11485
  showCount: false,
@@ -11522,7 +11507,7 @@ var __publicField = (obj, key, value) => {
11522
11507
  onBlur,
11523
11508
  onFocus,
11524
11509
  ...rest
11525
- } = { ...defaultProps$I, ...props };
11510
+ } = { ...defaultProps$H, ...props };
11526
11511
  const classPrefix2 = "nut-textarea";
11527
11512
  const compositionRef = React.useRef(false);
11528
11513
  const format = (value2) => {
@@ -11598,9 +11583,9 @@ var __publicField = (obj, key, value) => {
11598
11583
  showCount && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__limit` }, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)
11599
11584
  );
11600
11585
  };
11601
- TextArea.defaultProps = defaultProps$I;
11586
+ TextArea.defaultProps = defaultProps$H;
11602
11587
  TextArea.displayName = "NutTextArea";
11603
- const defaultProps$H = {
11588
+ const defaultProps$G = {
11604
11589
  ...ComponentDefaults,
11605
11590
  percent: 0,
11606
11591
  showText: false,
@@ -11621,7 +11606,7 @@ var __publicField = (obj, key, value) => {
11621
11606
  delay,
11622
11607
  ...rest
11623
11608
  } = {
11624
- ...defaultProps$H,
11609
+ ...defaultProps$G,
11625
11610
  ...props
11626
11611
  };
11627
11612
  const classPrefix2 = "nut-progress";
@@ -11672,7 +11657,7 @@ var __publicField = (obj, key, value) => {
11672
11657
  )
11673
11658
  ))));
11674
11659
  };
11675
- Progress.defaultProps = defaultProps$H;
11660
+ Progress.defaultProps = defaultProps$G;
11676
11661
  Progress.displayName = "NutProgress";
11677
11662
  class UploadOptions {
11678
11663
  constructor() {
@@ -11825,7 +11810,7 @@ var __publicField = (obj, key, value) => {
11825
11810
  done();
11826
11811
  }
11827
11812
  };
11828
- const defaultProps$G = {
11813
+ const defaultProps$F = {
11829
11814
  ...ComponentDefaults,
11830
11815
  url: "",
11831
11816
  maxCount: 1,
@@ -11913,7 +11898,7 @@ var __publicField = (obj, key, value) => {
11913
11898
  beforeXhrUpload,
11914
11899
  beforeDelete,
11915
11900
  ...restProps
11916
- } = { ...defaultProps$G, ...props };
11901
+ } = { ...defaultProps$F, ...props };
11917
11902
  const [fileList, setFileList] = React.useState(defaultValue || []);
11918
11903
  const [uploadQueue, setUploadQueue] = React.useState([]);
11919
11904
  React.useEffect(() => {
@@ -12246,9 +12231,9 @@ var __publicField = (obj, key, value) => {
12246
12231
  ));
12247
12232
  };
12248
12233
  const Uploader = React.forwardRef(InternalUploader);
12249
- Uploader.defaultProps = defaultProps$G;
12234
+ Uploader.defaultProps = defaultProps$F;
12250
12235
  Uploader.displayName = "NutUploader";
12251
- const defaultProps$F = {
12236
+ const defaultProps$E = {
12252
12237
  ...ComponentDefaults,
12253
12238
  visible: false,
12254
12239
  title: "",
@@ -12275,7 +12260,7 @@ var __publicField = (obj, key, value) => {
12275
12260
  className,
12276
12261
  style,
12277
12262
  ...rest
12278
- } = { ...defaultProps$F, ...props };
12263
+ } = { ...defaultProps$E, ...props };
12279
12264
  const classPrefix2 = "nut-actionsheet";
12280
12265
  const cancelActionSheet = () => {
12281
12266
  onCancel && onCancel();
@@ -12316,7 +12301,7 @@ var __publicField = (obj, key, value) => {
12316
12301
  ))
12317
12302
  );
12318
12303
  };
12319
- ActionSheet.defaultProps = defaultProps$F;
12304
+ ActionSheet.defaultProps = defaultProps$E;
12320
12305
  ActionSheet.displayName = "NutActionSheet";
12321
12306
  const Content = (props) => {
12322
12307
  const { visible, title, footer, footerDirection, onClick, children } = props;
@@ -12406,7 +12391,7 @@ var __publicField = (obj, key, value) => {
12406
12391
  };
12407
12392
  DialogWrap.defaultProps = defaultDialogProps;
12408
12393
  DialogWrap.displayName = "NutDialogWrap";
12409
- const defaultProps$E = {
12394
+ const defaultProps$D = {
12410
12395
  confirmText: "",
12411
12396
  cancelText: "",
12412
12397
  overlay: true,
@@ -12501,9 +12486,9 @@ var __publicField = (obj, key, value) => {
12501
12486
  );
12502
12487
  }
12503
12488
  );
12504
- BaseDialog.defaultProps = defaultProps$E;
12489
+ BaseDialog.defaultProps = defaultProps$D;
12505
12490
  BaseDialog.displayName = "NutDialog";
12506
- const defaultProps$D = {
12491
+ const defaultProps$C = {
12507
12492
  ...ComponentDefaults,
12508
12493
  attract: false,
12509
12494
  direction: void 0,
@@ -12517,7 +12502,7 @@ var __publicField = (obj, key, value) => {
12517
12502
  };
12518
12503
  const Drag = (props) => {
12519
12504
  const { attract, direction, boundary, children, className, style, ...reset } = {
12520
- ...defaultProps$D,
12505
+ ...defaultProps$C,
12521
12506
  ...props
12522
12507
  };
12523
12508
  const classPrefix2 = "nut-drag";
@@ -12614,23 +12599,23 @@ var __publicField = (obj, key, value) => {
12614
12599
  )
12615
12600
  );
12616
12601
  };
12617
- Drag.defaultProps = defaultProps$D;
12602
+ Drag.defaultProps = defaultProps$C;
12618
12603
  Drag.displayName = "NutDrag";
12619
12604
  const defaultStatus = {
12620
12605
  empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
12621
12606
  error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
12622
12607
  network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
12623
12608
  };
12624
- const defaultProps$C = {
12609
+ const defaultProps$B = {
12625
12610
  ...ComponentDefaults,
12626
12611
  description: "",
12627
12612
  imageSize: "",
12628
12613
  status: "empty"
12629
12614
  };
12630
- const classPrefix$c = `nut-empty`;
12615
+ const classPrefix$d = `nut-empty`;
12631
12616
  const Empty = (props) => {
12632
12617
  const { locale } = useConfig$1();
12633
- defaultProps$C.description = locale.noData || defaultProps$C.description;
12618
+ defaultProps$B.description = locale.noData || defaultProps$B.description;
12634
12619
  const {
12635
12620
  image,
12636
12621
  imageSize,
@@ -12640,7 +12625,7 @@ var __publicField = (obj, key, value) => {
12640
12625
  status,
12641
12626
  ...rest
12642
12627
  } = {
12643
- ...defaultProps$C,
12628
+ ...defaultProps$B,
12644
12629
  ...props
12645
12630
  };
12646
12631
  const [imgStyle, setImgStyle] = React.useState({});
@@ -12663,41 +12648,35 @@ var __publicField = (obj, key, value) => {
12663
12648
  };
12664
12649
  });
12665
12650
  }, [imageSize]);
12666
- return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$c} ${className}`, ...rest }, /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$c}__image`, style: imgStyle }, imageNode), typeof description === "string" ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$c}__description` }, description) : description, children));
12651
+ return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$d} ${className}`, ...rest }, /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$d}__image`, style: imgStyle }, imageNode), typeof description === "string" ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$d}__description` }, description) : description, children));
12667
12652
  };
12668
- Empty.defaultProps = defaultProps$C;
12653
+ Empty.defaultProps = defaultProps$B;
12669
12654
  Empty.displayName = "NutEmpty";
12670
- const defaultProps$B = {
12655
+ const defaultProps$A = {
12671
12656
  ...ComponentDefaults,
12672
12657
  hasMore: true,
12673
- upperThreshold: 40,
12674
- containerId: "",
12675
- isOpenRefresh: false,
12676
- pullIcon: "https://img10.360buyimg.com/imagetools/jfs/t1/169863/6/4565/6306/60125948E7e92774e/40b3a0cf42852bcb.png",
12677
- pullText: "松开刷新",
12678
- loadIcon: "https://img10.360buyimg.com/imagetools/jfs/t1/169863/6/4565/6306/60125948E7e92774e/40b3a0cf42852bcb.png",
12679
- loadingText: "加载中···",
12680
- loadMoreText: "哎呀,这里是底部了啦"
12658
+ threshold: 40,
12659
+ target: "",
12660
+ pullRefresh: false
12681
12661
  };
12682
- const Infiniteloading = (props) => {
12662
+ const classPrefix$c = `nut-infiniteloading`;
12663
+ const InfiniteLoading = (props) => {
12683
12664
  const { locale } = useConfig$1();
12684
12665
  const {
12685
12666
  children,
12686
12667
  hasMore,
12687
- upperThreshold,
12688
- containerId,
12689
- isOpenRefresh,
12690
- pullIcon,
12691
- pullText,
12692
- loadIcon,
12668
+ threshold,
12669
+ target,
12670
+ pullRefresh,
12671
+ pullingText,
12693
12672
  loadingText,
12694
12673
  loadMoreText,
12695
12674
  className,
12696
12675
  onRefresh,
12697
12676
  onLoadMore,
12698
- onScrollChange
12677
+ onScroll
12699
12678
  } = {
12700
- ...defaultProps$B,
12679
+ ...defaultProps$A,
12701
12680
  ...props
12702
12681
  };
12703
12682
  const [isInfiniting, setIsInfiniting] = React.useState(false);
@@ -12710,10 +12689,9 @@ var __publicField = (obj, key, value) => {
12710
12689
  const y2 = React.useRef(0);
12711
12690
  const refreshMaxH = React.useRef(0);
12712
12691
  const distance = React.useRef(0);
12713
- const b2 = cn("infiniteloading");
12714
- const classes = classNames(className, b2());
12692
+ const classes = classNames(className, classPrefix$c);
12715
12693
  React.useEffect(() => {
12716
- refreshMaxH.current = upperThreshold;
12694
+ refreshMaxH.current = threshold;
12717
12695
  setTimeout(() => {
12718
12696
  getScrollHeight();
12719
12697
  }, 200);
@@ -12731,9 +12709,7 @@ var __publicField = (obj, key, value) => {
12731
12709
  };
12732
12710
  };
12733
12711
  const getParentElement = (el) => {
12734
- return Taro.createSelectorQuery().select(
12735
- containerId ? `#${containerId} #${el}` : `#${el}`
12736
- );
12712
+ return Taro.createSelectorQuery().select(target ? `#${target} #${el}` : `#${el}`);
12737
12713
  };
12738
12714
  const infiniteDone = () => {
12739
12715
  setIsInfiniting(false);
@@ -12755,7 +12731,7 @@ var __publicField = (obj, key, value) => {
12755
12731
  direction.current = "up";
12756
12732
  }
12757
12733
  scrollTop.current = e.detail.scrollTop;
12758
- onScrollChange && onScrollChange(e.detail.scrollTop);
12734
+ onScroll && onScroll(e.detail.scrollTop);
12759
12735
  };
12760
12736
  const lower = () => {
12761
12737
  if (direction.current == "up" || !hasMore || isInfiniting) {
@@ -12765,7 +12741,7 @@ var __publicField = (obj, key, value) => {
12765
12741
  onLoadMore && onLoadMore(infiniteDone);
12766
12742
  };
12767
12743
  const touchStart = (event) => {
12768
- if (scrollTop.current == 0 && !isTouching.current && isOpenRefresh) {
12744
+ if (scrollTop.current == 0 && !isTouching.current && pullRefresh) {
12769
12745
  y2.current = event.touches[0].pageY;
12770
12746
  isTouching.current = true;
12771
12747
  }
@@ -12807,14 +12783,14 @@ var __publicField = (obj, key, value) => {
12807
12783
  onTouchMove: touchMove,
12808
12784
  onTouchEnd: touchEnd
12809
12785
  },
12810
- /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-top", ref: refreshTop, style: getStyle() }, /* @__PURE__ */ React.createElement("div", { className: "top-box" }, pullIcon && /* @__PURE__ */ React.createElement(React.Fragment, null, pullIcon), /* @__PURE__ */ React.createElement("span", { className: "top-text" }, pullText || locale.infiniteloading.pullRefreshText))),
12786
+ /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-top", ref: refreshTop, style: getStyle() }, /* @__PURE__ */ React.createElement("div", { className: "top-box" }, pullingText || locale.infiniteloading.pullRefreshText)),
12811
12787
  /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-container" }, children),
12812
- /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? /* @__PURE__ */ React.createElement("div", { className: "bottom-box" }, loadIcon && /* @__PURE__ */ React.createElement(React.Fragment, null, loadIcon), /* @__PURE__ */ React.createElement("div", { className: "bottom-text" }, loadingText || locale.infiniteloading.loadText)) : !hasMore && /* @__PURE__ */ React.createElement("div", { className: "tips" }, loadMoreText || locale.infiniteloading.loadMoreText))
12788
+ /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? /* @__PURE__ */ React.createElement("div", { className: "bottom-box" }, loadingText || locale.infiniteloading.loadText) : !hasMore && /* @__PURE__ */ React.createElement("div", { className: "tips" }, loadMoreText || locale.infiniteloading.loadMoreText))
12813
12789
  );
12814
12790
  };
12815
- Infiniteloading.defaultProps = defaultProps$B;
12816
- Infiniteloading.displayName = "NutInfiniteloading";
12817
- const defaultProps$A = {
12791
+ InfiniteLoading.defaultProps = defaultProps$A;
12792
+ InfiniteLoading.displayName = "NutInfiniteLoading";
12793
+ const defaultProps$z = {
12818
12794
  ...ComponentDefaults,
12819
12795
  direction: "horizontal",
12820
12796
  list: [],
@@ -12852,7 +12828,7 @@ var __publicField = (obj, key, value) => {
12852
12828
  onClick,
12853
12829
  onClickItem
12854
12830
  } = {
12855
- ...defaultProps$A,
12831
+ ...defaultProps$z,
12856
12832
  ...props
12857
12833
  };
12858
12834
  const classPrefix2 = "nut-noticebar";
@@ -13214,9 +13190,9 @@ var __publicField = (obj, key, value) => {
13214
13190
  )
13215
13191
  ) : null);
13216
13192
  };
13217
- NoticeBar.defaultProps = defaultProps$A;
13193
+ NoticeBar.defaultProps = defaultProps$z;
13218
13194
  NoticeBar.displayName = "NutNoticeBar";
13219
- const defaultProps$z = {
13195
+ const defaultProps$y = {
13220
13196
  ...ComponentDefaults,
13221
13197
  id: "",
13222
13198
  duration: 3e3,
@@ -13243,7 +13219,7 @@ var __publicField = (obj, key, value) => {
13243
13219
  onClose,
13244
13220
  onClick,
13245
13221
  ...rest
13246
- } = { ...defaultProps$z, ...props };
13222
+ } = { ...defaultProps$y, ...props };
13247
13223
  let timer;
13248
13224
  const [showNotify, SetShow] = React.useState(false);
13249
13225
  React.useEffect(() => {
@@ -13307,9 +13283,9 @@ var __publicField = (obj, key, value) => {
13307
13283
  )
13308
13284
  ));
13309
13285
  };
13310
- Notify.defaultProps = defaultProps$z;
13286
+ Notify.defaultProps = defaultProps$y;
13311
13287
  Notify.displayName = "NutNotify";
13312
- const defaultProps$y = {
13288
+ const defaultProps$x = {
13313
13289
  ...ComponentDefaults,
13314
13290
  list: [],
13315
13291
  location: "bottom",
@@ -13362,7 +13338,7 @@ var __publicField = (obj, key, value) => {
13362
13338
  onSelect,
13363
13339
  ...reset
13364
13340
  } = {
13365
- ...defaultProps$y,
13341
+ ...defaultProps$x,
13366
13342
  ...props
13367
13343
  };
13368
13344
  const popoverRef = React.useRef(null);
@@ -13568,7 +13544,7 @@ var __publicField = (obj, key, value) => {
13568
13544
  }
13569
13545
  )));
13570
13546
  };
13571
- Popover.defaultProps = defaultProps$y;
13547
+ Popover.defaultProps = defaultProps$x;
13572
13548
  Popover.displayName = "NutPopover";
13573
13549
  function bound(position, min, max) {
13574
13550
  let ret = position;
@@ -13593,7 +13569,7 @@ var __publicField = (obj, key, value) => {
13593
13569
  return position;
13594
13570
  }
13595
13571
  const sleep = (time) => new Promise((resolve) => setTimeout(resolve, time));
13596
- const defaultProps$x = {
13572
+ const defaultProps$w = {
13597
13573
  ...ComponentDefaults,
13598
13574
  pullingText: "",
13599
13575
  canReleaseText: "",
@@ -13612,7 +13588,7 @@ var __publicField = (obj, key, value) => {
13612
13588
  const { locale } = useConfig$1();
13613
13589
  const touch = useTouch();
13614
13590
  const props = {
13615
- ...defaultProps$x,
13591
+ ...defaultProps$w,
13616
13592
  ...p,
13617
13593
  ...{
13618
13594
  pullingText: p.pullingText || locale.pullToRefresh.pullingText,
@@ -13712,10 +13688,10 @@ var __publicField = (obj, key, value) => {
13712
13688
  /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content` }, props.children)
13713
13689
  );
13714
13690
  };
13715
- PullToRefresh.defaultProps = defaultProps$x;
13691
+ PullToRefresh.defaultProps = defaultProps$w;
13716
13692
  PullToRefresh.displayName = "NutPullToRefresh";
13717
13693
  const AvatarContext = React.createContext({});
13718
- const defaultProps$w = {
13694
+ const defaultProps$v = {
13719
13695
  ...ComponentDefaults,
13720
13696
  size: "",
13721
13697
  shape: "round",
@@ -13745,7 +13721,7 @@ var __publicField = (obj, key, value) => {
13745
13721
  onError,
13746
13722
  ...rest
13747
13723
  } = {
13748
- ...defaultProps$w,
13724
+ ...defaultProps$v,
13749
13725
  ...props
13750
13726
  };
13751
13727
  const [maxSum, setMaxSum] = React.useState(0);
@@ -13827,9 +13803,9 @@ var __publicField = (obj, key, value) => {
13827
13803
  showMax && /* @__PURE__ */ React.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 - ((_n = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _n.max)}`)
13828
13804
  ));
13829
13805
  };
13830
- Avatar.defaultProps = defaultProps$w;
13806
+ Avatar.defaultProps = defaultProps$v;
13831
13807
  Avatar.displayName = "NutAvatar";
13832
- const defaultProps$v = {
13808
+ const defaultProps$u = {
13833
13809
  ...ComponentDefaults,
13834
13810
  rows: 1,
13835
13811
  animated: false,
@@ -13852,7 +13828,7 @@ var __publicField = (obj, key, value) => {
13852
13828
  avatarShape,
13853
13829
  ...rest
13854
13830
  } = {
13855
- ...defaultProps$v,
13831
+ ...defaultProps$u,
13856
13832
  ...props
13857
13833
  };
13858
13834
  const classPrefix2 = "nut-skeleton";
@@ -13889,7 +13865,7 @@ var __publicField = (obj, key, value) => {
13889
13865
  return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__block`, key: index });
13890
13866
  })))));
13891
13867
  };
13892
- Skeleton.defaultProps = defaultProps$v;
13868
+ Skeleton.defaultProps = defaultProps$u;
13893
13869
  Skeleton.displayName = "NutSkeleton";
13894
13870
  function preventDefault(event, isStopPropagation) {
13895
13871
  if (typeof event.cancelable !== "boolean" || event.cancelable) {
@@ -13899,7 +13875,7 @@ var __publicField = (obj, key, value) => {
13899
13875
  event.stopPropagation();
13900
13876
  }
13901
13877
  }
13902
- const defaultProps$u = {
13878
+ const defaultProps$t = {
13903
13879
  name: ""
13904
13880
  };
13905
13881
  const Swipe = React.forwardRef((props, instanceRef) => {
@@ -13918,7 +13894,7 @@ var __publicField = (obj, key, value) => {
13918
13894
  };
13919
13895
  Taro.nextTick(() => getWidth());
13920
13896
  });
13921
- const { children, className, style } = { ...defaultProps$u, ...props };
13897
+ const { children, className, style } = { ...defaultProps$t, ...props };
13922
13898
  const root2 = React.useRef();
13923
13899
  const opened = React.useRef(false);
13924
13900
  const lockClick = React.useRef(false);
@@ -14074,7 +14050,7 @@ var __publicField = (obj, key, value) => {
14074
14050
  /* @__PURE__ */ React.createElement("div", { className: `${swipeBem("wrapper")}`, style: wrapperStyle }, renderActionContent("left"), children, renderActionContent("right"))
14075
14051
  );
14076
14052
  });
14077
- Swipe.defaultProps = defaultProps$u;
14053
+ Swipe.defaultProps = defaultProps$t;
14078
14054
  Swipe.displayName = "NutSwipe";
14079
14055
  const defaultOverlayProps = {
14080
14056
  ...ComponentDefaults,
@@ -14158,7 +14134,7 @@ var __publicField = (obj, key, value) => {
14158
14134
  };
14159
14135
  Overlay.defaultProps = defaultOverlayProps;
14160
14136
  Overlay.displayName = "NutOverlay";
14161
- const defaultProps$t = {
14137
+ const defaultProps$s = {
14162
14138
  ...ComponentDefaults,
14163
14139
  id: "",
14164
14140
  icon: null,
@@ -14200,7 +14176,7 @@ var __publicField = (obj, key, value) => {
14200
14176
  style,
14201
14177
  onClose,
14202
14178
  ...rest
14203
- } = { ...defaultProps$t, ...props };
14179
+ } = { ...defaultProps$s, ...props };
14204
14180
  let timer;
14205
14181
  const [openState, SetOpenState] = React.useState(false);
14206
14182
  React.useEffect(() => {
@@ -14278,9 +14254,9 @@ var __publicField = (obj, key, value) => {
14278
14254
  ))
14279
14255
  ) : null);
14280
14256
  };
14281
- Toast.defaultProps = defaultProps$t;
14257
+ Toast.defaultProps = defaultProps$s;
14282
14258
  Toast.displayName = "NutToast";
14283
- const defaultProps$s = {
14259
+ const defaultProps$r = {
14284
14260
  ...ComponentDefaults,
14285
14261
  type: "shake",
14286
14262
  action: "initial",
@@ -14291,7 +14267,7 @@ var __publicField = (obj, key, value) => {
14291
14267
  const classPrefix$7 = `nut-animate`;
14292
14268
  const Animate = (props) => {
14293
14269
  const { className, type, action, loop, onClick, children, ...rest } = {
14294
- ...defaultProps$s,
14270
+ ...defaultProps$r,
14295
14271
  ...props
14296
14272
  };
14297
14273
  const [clicked, setClicked] = React.useState(false);
@@ -14312,9 +14288,9 @@ var __publicField = (obj, key, value) => {
14312
14288
  };
14313
14289
  return /* @__PURE__ */ React.createElement("div", { className: "nut-animate" }, /* @__PURE__ */ React.createElement("div", { className: cls, onClick: handleClick, ...rest }, children));
14314
14290
  };
14315
- Animate.defaultProps = defaultProps$s;
14291
+ Animate.defaultProps = defaultProps$r;
14316
14292
  Animate.displayName = "NutAnimate";
14317
- const defaultProps$r = {
14293
+ const defaultProps$q = {
14318
14294
  ...ComponentDefaults,
14319
14295
  length: 0,
14320
14296
  value: "",
@@ -14333,7 +14309,7 @@ var __publicField = (obj, key, value) => {
14333
14309
  style,
14334
14310
  ...reset
14335
14311
  } = {
14336
- ...defaultProps$r,
14312
+ ...defaultProps$q,
14337
14313
  ...props
14338
14314
  };
14339
14315
  const classPrefix2 = "nut-countup";
@@ -14407,9 +14383,9 @@ var __publicField = (obj, key, value) => {
14407
14383
  );
14408
14384
  })));
14409
14385
  };
14410
- CountUp.defaultProps = defaultProps$r;
14386
+ CountUp.defaultProps = defaultProps$q;
14411
14387
  CountUp.displayName = "NutCountUp";
14412
- const defaultProps$q = {};
14388
+ const defaultProps$p = {};
14413
14389
  class AnimatingNumbers extends React.Component {
14414
14390
  constructor(props) {
14415
14391
  super(props);
@@ -14419,13 +14395,13 @@ var __publicField = (obj, key, value) => {
14419
14395
  return /* @__PURE__ */ React.createElement("div", { className: "nut-animatingnumbers" });
14420
14396
  }
14421
14397
  }
14422
- __publicField(AnimatingNumbers, "defaultProps", defaultProps$q);
14398
+ __publicField(AnimatingNumbers, "defaultProps", defaultProps$p);
14423
14399
  __publicField(AnimatingNumbers, "displayName", "NutAnimatingNumbers");
14424
14400
  __publicField(AnimatingNumbers, "CountUp", CountUp);
14425
14401
  AnimatingNumbers.CountUp = CountUp;
14426
14402
  const b = cn("audio");
14427
14403
  const warn = console.warn;
14428
- const defaultProps$p = {
14404
+ const defaultProps$o = {
14429
14405
  ...ComponentDefaults,
14430
14406
  className: "",
14431
14407
  url: "",
@@ -14468,7 +14444,7 @@ var __publicField = (obj, key, value) => {
14468
14444
  iconFontClassName,
14469
14445
  ...rest
14470
14446
  } = {
14471
- ...defaultProps$p,
14447
+ ...defaultProps$o,
14472
14448
  ...props
14473
14449
  };
14474
14450
  const [playing, setPlaying] = React.useState(false);
@@ -14625,9 +14601,9 @@ var __publicField = (obj, key, value) => {
14625
14601
  };
14626
14602
  return /* @__PURE__ */ React.createElement("div", { className: `${b()} ${className}`, style, ...rest }, renderAudio());
14627
14603
  };
14628
- Audio.defaultProps = defaultProps$p;
14604
+ Audio.defaultProps = defaultProps$o;
14629
14605
  Audio.displayName = "NutAudio";
14630
- const defaultProps$o = {
14606
+ const defaultProps$n = {
14631
14607
  ...ComponentDefaults,
14632
14608
  maxContent: "",
14633
14609
  max: "",
@@ -14638,7 +14614,7 @@ var __publicField = (obj, key, value) => {
14638
14614
  };
14639
14615
  const classPrefix$6 = `nut-avatar-group`;
14640
14616
  const AvatarGroup = (props) => {
14641
- const propAvatarGroup = { ...defaultProps$o, ...props };
14617
+ const propAvatarGroup = { ...defaultProps$n, ...props };
14642
14618
  const { className, style, children } = propAvatarGroup;
14643
14619
  const avatarGroupRef = React.useRef(null);
14644
14620
  const cls = classNames(classPrefix$6, className);
@@ -14648,9 +14624,9 @@ var __publicField = (obj, key, value) => {
14648
14624
  };
14649
14625
  return /* @__PURE__ */ React.createElement(AvatarContext.Provider, { value: parentAvatar }, /* @__PURE__ */ React.createElement("div", { className: cls, style, ref: avatarGroupRef }, children));
14650
14626
  };
14651
- AvatarGroup.defaultProps = defaultProps$o;
14627
+ AvatarGroup.defaultProps = defaultProps$n;
14652
14628
  AvatarGroup.displayName = "NutAvatarGroup";
14653
- const defaultProps$n = {
14629
+ const defaultProps$m = {
14654
14630
  ...ComponentDefaults,
14655
14631
  strokeWidth: 5,
14656
14632
  radius: 50,
@@ -14674,7 +14650,7 @@ var __publicField = (obj, key, value) => {
14674
14650
  strokeLinecap,
14675
14651
  ...restProps
14676
14652
  } = {
14677
- ...defaultProps$n,
14653
+ ...defaultProps$m,
14678
14654
  ...props
14679
14655
  };
14680
14656
  const [oldValue, setOldValue] = React.useState(percent);
@@ -14760,7 +14736,7 @@ var __publicField = (obj, key, value) => {
14760
14736
  };
14761
14737
  return /* @__PURE__ */ React.createElement("div", { className: classes, style: styles, ...restProps }, /* @__PURE__ */ React.createElement("div", { style: circleStyle() }), /* @__PURE__ */ React.createElement("div", { className: "nut-circleprogress-text" }, children));
14762
14738
  };
14763
- CircleProgress.defaultProps = defaultProps$n;
14739
+ CircleProgress.defaultProps = defaultProps$m;
14764
14740
  CircleProgress.displayName = "NutCircleProgress";
14765
14741
  const collapseContext = {
14766
14742
  isOpen: (name) => {
@@ -14772,7 +14748,7 @@ var __publicField = (obj, key, value) => {
14772
14748
  rotate: 180
14773
14749
  };
14774
14750
  const CollapseContext = React.createContext(collapseContext);
14775
- const defaultProps$m = {
14751
+ const defaultProps$l = {
14776
14752
  ...ComponentDefaults,
14777
14753
  title: null,
14778
14754
  name: "",
@@ -14794,7 +14770,7 @@ var __publicField = (obj, key, value) => {
14794
14770
  extra,
14795
14771
  ...rest
14796
14772
  } = {
14797
- ...defaultProps$m,
14773
+ ...defaultProps$l,
14798
14774
  ...props
14799
14775
  };
14800
14776
  const classPrefix2 = "nut-collapse-item";
@@ -14899,9 +14875,9 @@ var __publicField = (obj, key, value) => {
14899
14875
  )
14900
14876
  ));
14901
14877
  };
14902
- CollapseItem.defaultProps = defaultProps$m;
14878
+ CollapseItem.defaultProps = defaultProps$l;
14903
14879
  CollapseItem.displayName = "NutCollapseItem";
14904
- const defaultProps$l = {
14880
+ const defaultProps$k = {
14905
14881
  ...ComponentDefaults,
14906
14882
  defaultActiveName: [],
14907
14883
  accordion: false,
@@ -14920,7 +14896,7 @@ var __publicField = (obj, key, value) => {
14920
14896
  rotate,
14921
14897
  onChange
14922
14898
  } = {
14923
- ...defaultProps$l,
14899
+ ...defaultProps$k,
14924
14900
  ...props
14925
14901
  };
14926
14902
  const classPrefix2 = "nut-collapse";
@@ -14977,10 +14953,10 @@ var __publicField = (obj, key, value) => {
14977
14953
  /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), style }, children)
14978
14954
  );
14979
14955
  };
14980
- Collapse.defaultProps = defaultProps$l;
14956
+ Collapse.defaultProps = defaultProps$k;
14981
14957
  Collapse.displayName = "NutCollapse";
14982
14958
  Collapse.Item = CollapseItem;
14983
- const defaultProps$k = {
14959
+ const defaultProps$j = {
14984
14960
  ...ComponentDefaults,
14985
14961
  paused: false,
14986
14962
  startTime: Date.now(),
@@ -15012,7 +14988,7 @@ var __publicField = (obj, key, value) => {
15012
14988
  onUpdate,
15013
14989
  children,
15014
14990
  ...rest
15015
- } = { ...defaultProps$k, ...props };
14991
+ } = { ...defaultProps$j, ...props };
15016
14992
  const classPrefix2 = "nut-countdown";
15017
14993
  const [restTimeStamp, setRestTime] = React.useState(0);
15018
14994
  const stateRef = React.useRef({
@@ -15223,9 +15199,9 @@ var __publicField = (obj, key, value) => {
15223
15199
  );
15224
15200
  };
15225
15201
  const CountDown = React.forwardRef(InternalCountDown);
15226
- CountDown.defaultProps = defaultProps$k;
15202
+ CountDown.defaultProps = defaultProps$j;
15227
15203
  CountDown.displayName = "NutCountDown";
15228
- const defaultProps$j = {
15204
+ const defaultProps$i = {
15229
15205
  ...ComponentDefaults,
15230
15206
  content: "",
15231
15207
  direction: "end",
@@ -15253,7 +15229,7 @@ var __publicField = (obj, key, value) => {
15253
15229
  onClick,
15254
15230
  onChange,
15255
15231
  ...rest
15256
- } = { ...defaultProps$j, ...props };
15232
+ } = { ...defaultProps$i, ...props };
15257
15233
  const maxHeight = React.useRef(0);
15258
15234
  const [exceeded, setExceeded] = React.useState(false);
15259
15235
  const [expanded, setExpanded] = React.useState(false);
@@ -15537,9 +15513,9 @@ var __publicField = (obj, key, value) => {
15537
15513
  symbolText()
15538
15514
  ));
15539
15515
  };
15540
- Ellipsis.defaultProps = defaultProps$j;
15516
+ Ellipsis.defaultProps = defaultProps$i;
15541
15517
  Ellipsis.displayName = "NutEllipsis";
15542
- const defaultProps$i = {
15518
+ const defaultProps$h = {
15543
15519
  total: 3,
15544
15520
  current: 0,
15545
15521
  direction: "horizontal"
@@ -15547,7 +15523,7 @@ var __publicField = (obj, key, value) => {
15547
15523
  const classPrefix$3 = `nut-indicator`;
15548
15524
  const Indicator = (props) => {
15549
15525
  const { total, current, children, className, direction, ...rest } = {
15550
- ...defaultProps$i,
15526
+ ...defaultProps$h,
15551
15527
  ...props
15552
15528
  };
15553
15529
  const classes = classNames({
@@ -15570,9 +15546,9 @@ var __publicField = (obj, key, value) => {
15570
15546
  };
15571
15547
  return /* @__PURE__ */ React.createElement("div", { className: classNames(classes, className), ...rest }, renderElement());
15572
15548
  };
15573
- Indicator.defaultProps = defaultProps$i;
15549
+ Indicator.defaultProps = defaultProps$h;
15574
15550
  Indicator.displayName = "NutIndicator";
15575
- const defaultProps$h = {
15551
+ const defaultProps$g = {
15576
15552
  direction: "horizontal",
15577
15553
  indicator: false,
15578
15554
  autoPlay: false,
@@ -15594,7 +15570,7 @@ var __publicField = (obj, key, value) => {
15594
15570
  defaultValue,
15595
15571
  ...rest
15596
15572
  } = {
15597
- ...defaultProps$h,
15573
+ ...defaultProps$g,
15598
15574
  ...props
15599
15575
  };
15600
15576
  const [current, setCurrent] = React.useState(defaultValue);
@@ -15689,9 +15665,9 @@ var __publicField = (obj, key, value) => {
15689
15665
  renderIndicator()
15690
15666
  );
15691
15667
  });
15692
- Swiper.defaultProps = defaultProps$h;
15668
+ Swiper.defaultProps = defaultProps$g;
15693
15669
  Swiper.displayName = "NutSwiper";
15694
- const defaultProps$g = {
15670
+ const defaultProps$f = {
15695
15671
  itemId: "",
15696
15672
  skipHiddenItemLayout: false
15697
15673
  };
@@ -15699,9 +15675,9 @@ var __publicField = (obj, key, value) => {
15699
15675
  const { children, ...rest } = props;
15700
15676
  return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
15701
15677
  };
15702
- SwiperItem.defaultProps = defaultProps$g;
15678
+ SwiperItem.defaultProps = defaultProps$f;
15703
15679
  SwiperItem.displayName = "NutSwiperItem";
15704
- const defaultProps$f = {
15680
+ const defaultProps$e = {
15705
15681
  ...ComponentDefaults,
15706
15682
  images: [],
15707
15683
  videos: [],
@@ -15711,6 +15687,7 @@ var __publicField = (obj, key, value) => {
15711
15687
  closeOnContentClick: false,
15712
15688
  indicator: false,
15713
15689
  indicatorColor: "#fff",
15690
+ showMenuByLongpress: false,
15714
15691
  onChange: (value) => {
15715
15692
  },
15716
15693
  onClose: () => {
@@ -15726,6 +15703,7 @@ var __publicField = (obj, key, value) => {
15726
15703
  indicator,
15727
15704
  autoPlay,
15728
15705
  closeOnContentClick,
15706
+ showMenuByLongpress,
15729
15707
  onClose
15730
15708
  } = props;
15731
15709
  const classPrefix2 = "nut-imagepreview";
@@ -15909,6 +15887,7 @@ var __publicField = (obj, key, value) => {
15909
15887
  {
15910
15888
  src: item.src,
15911
15889
  mode: "aspectFit",
15890
+ showMenuByLongpress: true,
15912
15891
  style: { width: "100%", height: "100%" }
15913
15892
  }
15914
15893
  ));
@@ -15919,7 +15898,7 @@ var __publicField = (obj, key, value) => {
15919
15898
  /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-index` }, active, "/", (images ? images.length : 0) + (videos ? videos.length : 0))
15920
15899
  );
15921
15900
  };
15922
- ImagePreview.defaultProps = defaultProps$f;
15901
+ ImagePreview.defaultProps = defaultProps$e;
15923
15902
  ImagePreview.displayName = "NutImagePreview";
15924
15903
  const initPositinoCache = (reaItemSize, length = 0) => {
15925
15904
  let index = 0;
@@ -15991,7 +15970,7 @@ var __publicField = (obj, key, value) => {
15991
15970
  });
15992
15971
  };
15993
15972
  const clientHeight = Taro.getSystemInfoSync().windowHeight - 5 || 667;
15994
- const defaultProps$e = {
15973
+ const defaultProps$d = {
15995
15974
  ...ComponentDefaults,
15996
15975
  list: [],
15997
15976
  containerHeight: clientHeight,
@@ -16012,7 +15991,7 @@ var __publicField = (obj, key, value) => {
16012
15991
  containerHeight,
16013
15992
  ...rest
16014
15993
  } = {
16015
- ...defaultProps$e,
15994
+ ...defaultProps$d,
16016
15995
  ...props
16017
15996
  };
16018
15997
  const [startOffset, setStartOffset] = React.useState(0);
@@ -16152,9 +16131,9 @@ var __publicField = (obj, key, value) => {
16152
16131
  )
16153
16132
  );
16154
16133
  };
16155
- VirtualList.defaultProps = defaultProps$e;
16134
+ VirtualList.defaultProps = defaultProps$d;
16156
16135
  VirtualList.displayName = "NutVirtualList";
16157
- const defaultProps$d = {
16136
+ const defaultProps$c = {
16158
16137
  ...ComponentDefaults,
16159
16138
  defaultValue: 1,
16160
16139
  mode: "multi",
@@ -16182,7 +16161,7 @@ var __publicField = (obj, key, value) => {
16182
16161
  className,
16183
16162
  ...rest
16184
16163
  } = {
16185
- ...defaultProps$d,
16164
+ ...defaultProps$c,
16186
16165
  ...props
16187
16166
  };
16188
16167
  const classPrefix2 = "nut-pagination";
@@ -16264,9 +16243,9 @@ var __publicField = (obj, key, value) => {
16264
16243
  next || locale.pagination.next
16265
16244
  ));
16266
16245
  };
16267
- Pagination.defaultProps = defaultProps$d;
16246
+ Pagination.defaultProps = defaultProps$c;
16268
16247
  Pagination.displayName = "NutPagination";
16269
- const defaultProps$c = {
16248
+ const defaultProps$b = {
16270
16249
  ...ComponentDefaults,
16271
16250
  price: 0,
16272
16251
  symbol: "&yen;",
@@ -16289,7 +16268,7 @@ var __publicField = (obj, key, value) => {
16289
16268
  style,
16290
16269
  ...rest
16291
16270
  } = {
16292
- ...defaultProps$c,
16271
+ ...defaultProps$b,
16293
16272
  ...props
16294
16273
  };
16295
16274
  const classPrefix2 = "nut-price";
@@ -16378,10 +16357,10 @@ var __publicField = (obj, key, value) => {
16378
16357
  symbol && position === "after" ? renderSymbol() : null
16379
16358
  );
16380
16359
  };
16381
- Price.defaultProps = defaultProps$c;
16360
+ Price.defaultProps = defaultProps$b;
16382
16361
  Price.displayName = "NutPrice";
16383
16362
  const DataContext = React.createContext({});
16384
- const defaultProps$b = {
16363
+ const defaultProps$a = {
16385
16364
  ...ComponentDefaults,
16386
16365
  title: "",
16387
16366
  description: "",
@@ -16390,7 +16369,7 @@ var __publicField = (obj, key, value) => {
16390
16369
  };
16391
16370
  const Step = (props) => {
16392
16371
  const { children, title, description, value, icon, className, ...restProps } = {
16393
- ...defaultProps$b,
16372
+ ...defaultProps$a,
16394
16373
  ...props
16395
16374
  };
16396
16375
  const parent = React.useContext(DataContext);
@@ -16424,16 +16403,16 @@ var __publicField = (obj, key, value) => {
16424
16403
  };
16425
16404
  return /* @__PURE__ */ React.createElement("div", { className: classes, ...restProps, onClick: handleClickStep }, /* @__PURE__ */ React.createElement("div", { className: "nut-step-head" }, /* @__PURE__ */ React.createElement("div", { className: "nut-step-line" }), /* @__PURE__ */ React.createElement("div", { className: renderIconClass() }, icon || !dot && /* @__PURE__ */ React.createElement("span", { className: "nut-step-inner" }, value))), /* @__PURE__ */ React.createElement("div", { className: "nut-step-main" }, /* @__PURE__ */ React.createElement("span", { className: "nut-step-title" }, title), description && /* @__PURE__ */ React.createElement("span", { className: "nut-step-description" }, description)));
16426
16405
  };
16427
- Step.defaultProps = defaultProps$b;
16406
+ Step.defaultProps = defaultProps$a;
16428
16407
  Step.displayName = "NutStep";
16429
- const defaultProps$a = {
16408
+ const defaultProps$9 = {
16430
16409
  ...ComponentDefaults,
16431
16410
  value: 0,
16432
16411
  direction: "horizontal",
16433
16412
  dot: false
16434
16413
  };
16435
16414
  const Steps = (props) => {
16436
- const propSteps = { ...defaultProps$a, ...props };
16415
+ const propSteps = { ...defaultProps$9, ...props };
16437
16416
  const {
16438
16417
  children,
16439
16418
  value,
@@ -16464,9 +16443,9 @@ var __publicField = (obj, key, value) => {
16464
16443
  children
16465
16444
  ));
16466
16445
  };
16467
- Steps.defaultProps = defaultProps$a;
16446
+ Steps.defaultProps = defaultProps$9;
16468
16447
  Steps.displayName = "NutSteps";
16469
- const defaultProps$9 = {
16448
+ const defaultProps$8 = {
16470
16449
  ...ComponentDefaults,
16471
16450
  columns: [],
16472
16451
  data: [],
@@ -16478,7 +16457,7 @@ var __publicField = (obj, key, value) => {
16478
16457
  };
16479
16458
  const Table = (props) => {
16480
16459
  const { locale } = useConfig$1();
16481
- defaultProps$9.noData = locale.noData;
16460
+ defaultProps$8.noData = locale.noData;
16482
16461
  const {
16483
16462
  children,
16484
16463
  className,
@@ -16494,7 +16473,7 @@ var __publicField = (obj, key, value) => {
16494
16473
  onSort,
16495
16474
  ...rest
16496
16475
  } = {
16497
- ...defaultProps$9,
16476
+ ...defaultProps$8,
16498
16477
  ...props
16499
16478
  };
16500
16479
  const [curData, setCurData] = React.useState(data);
@@ -16577,19 +16556,18 @@ var __publicField = (obj, key, value) => {
16577
16556
  /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__main__body` }, renderBoyTrs())
16578
16557
  ), (summary || curData.length === 0) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__summary` }, summary || noData));
16579
16558
  };
16580
- Table.defaultProps = defaultProps$9;
16559
+ Table.defaultProps = defaultProps$8;
16581
16560
  Table.displayName = "NutTable";
16582
- const defaultProps$8 = {
16561
+ const defaultProps$7 = {
16583
16562
  ...ComponentDefaults,
16584
16563
  type: "default",
16564
+ background: "",
16585
16565
  color: "",
16586
- textColor: "",
16587
16566
  plain: false,
16588
16567
  round: false,
16589
16568
  mark: false,
16590
16569
  closeable: false,
16591
16570
  closeIcon: null,
16592
- prefixCls: "nut-tag",
16593
16571
  onClose: (e) => {
16594
16572
  },
16595
16573
  onClick: (e) => {
@@ -16599,86 +16577,70 @@ var __publicField = (obj, key, value) => {
16599
16577
  const {
16600
16578
  className,
16601
16579
  style,
16602
- color,
16580
+ background,
16603
16581
  plain,
16604
16582
  type,
16605
16583
  round,
16606
- prefixCls: prefixCls2,
16607
16584
  children,
16608
16585
  mark,
16609
16586
  closeable,
16610
16587
  closeIcon,
16611
- textColor,
16588
+ color,
16612
16589
  onClick,
16613
16590
  onClose
16614
16591
  } = {
16615
- ...defaultProps$8,
16592
+ ...defaultProps$7,
16616
16593
  ...props
16617
16594
  };
16618
- const [btnName, setBtnName] = React.useState("");
16619
- const [isTagShow, setIsTagShow] = React.useState(true);
16620
- React.useEffect(() => {
16621
- setBtnName(classes());
16622
- }, [
16623
- type,
16624
- color,
16625
- textColor,
16626
- plain,
16627
- round,
16628
- mark,
16629
- closeable,
16630
- prefixCls2,
16631
- onClick,
16632
- onClose,
16633
- className
16634
- ]);
16595
+ const [tagClass, setTagClass] = React.useState("");
16596
+ const [visible, setVisible] = React.useState(true);
16597
+ const classPrefix2 = "nut-tag";
16635
16598
  const classes = () => {
16636
- const prefixCls22 = "nut-tag";
16637
16599
  return classNames({
16638
- [prefixCls22]: true,
16639
- [`${prefixCls22}--${type}`]: type,
16640
- [`${prefixCls22}--plain`]: plain,
16641
- [`${prefixCls22}--round`]: round,
16642
- [`${prefixCls22}--mark`]: mark,
16643
- [`${prefixCls22}--close`]: closeable,
16600
+ [classPrefix2]: true,
16601
+ [`${classPrefix2}--${type}`]: type,
16602
+ [`${classPrefix2}--plain`]: plain,
16603
+ [`${classPrefix2}--round`]: round,
16604
+ [`${classPrefix2}--mark`]: mark,
16605
+ [`${classPrefix2}--close`]: closeable,
16644
16606
  [`${className}`]: className
16645
16607
  });
16646
16608
  };
16609
+ React.useEffect(() => {
16610
+ setTagClass(classes());
16611
+ }, [type, background, color, plain, round, mark, closeable, className]);
16647
16612
  const handleClick = (e) => {
16648
- if (props.onClick) {
16649
- props.onClick(e);
16650
- }
16613
+ onClick && onClick(e);
16651
16614
  };
16652
16615
  const getStyle = () => {
16653
16616
  const style2 = {};
16654
- if (textColor) {
16655
- style2.color = textColor;
16656
- } else if (color && plain) {
16617
+ if (color) {
16657
16618
  style2.color = color;
16619
+ } else if (background && plain) {
16620
+ style2.color = background;
16658
16621
  }
16659
16622
  if (plain) {
16660
- style2.background = "#fff";
16661
- style2.borderColor = color;
16662
- } else if (color) {
16663
- style2.background = color;
16623
+ style2.borderColor = background;
16624
+ } else if (background) {
16625
+ style2.background = background;
16664
16626
  }
16665
16627
  return style2;
16666
16628
  };
16667
- return /* @__PURE__ */ React.createElement(React.Fragment, null, closeable ? isTagShow && /* @__PURE__ */ React.createElement(
16629
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, closeable ? visible && /* @__PURE__ */ React.createElement(
16668
16630
  "div",
16669
16631
  {
16670
- className: btnName,
16632
+ className: tagClass,
16671
16633
  style: { ...style, ...getStyle() },
16672
16634
  onClick: (e) => handleClick(e)
16673
16635
  },
16674
- children && /* @__PURE__ */ React.createElement("span", { className: "nut-tag-text" }, children),
16636
+ children && /* @__PURE__ */ React.createElement("span", { className: `${classPrefix2}-text` }, children),
16675
16637
  React.isValidElement(closeIcon) ? /* @__PURE__ */ React.createElement(
16676
16638
  "i",
16677
16639
  {
16678
- className: "nut-tag-custom-icon",
16640
+ className: `${classPrefix2}-custom-icon`,
16679
16641
  onClick: (e) => {
16680
- setIsTagShow(false);
16681
- props.onClose && props.onClose(e);
16642
+ setVisible(false);
16643
+ onClose && onClose(e);
16682
16644
  }
16683
16645
  },
16684
16646
  closeIcon
@@ -16687,24 +16649,24 @@ var __publicField = (obj, key, value) => {
16687
16649
  {
16688
16650
  size: 12,
16689
16651
  onClick: (e) => {
16690
- setIsTagShow(false);
16691
- props.onClose && props.onClose(e);
16652
+ setVisible(false);
16653
+ onClose && onClose(e);
16692
16654
  }
16693
16655
  }
16694
16656
  )
16695
16657
  ) : /* @__PURE__ */ React.createElement(
16696
16658
  "div",
16697
16659
  {
16698
- className: btnName,
16660
+ className: tagClass,
16699
16661
  style: { ...style, ...getStyle() },
16700
16662
  onClick: (e) => handleClick(e)
16701
16663
  },
16702
- children && /* @__PURE__ */ React.createElement("span", { className: "nut-tag-text" }, children)
16664
+ children && /* @__PURE__ */ React.createElement("span", { className: `${classPrefix2}-text` }, children)
16703
16665
  ));
16704
16666
  };
16705
- Tag.defaultProps = defaultProps$8;
16667
+ Tag.defaultProps = defaultProps$7;
16706
16668
  Tag.displayName = "NutTag";
16707
- const defaultProps$7 = {
16669
+ const defaultProps$6 = {
16708
16670
  ...ComponentDefaults,
16709
16671
  source: {
16710
16672
  type: {},
@@ -16732,7 +16694,7 @@ var __publicField = (obj, key, value) => {
16732
16694
  onPlayEnd,
16733
16695
  ...restProps
16734
16696
  } = {
16735
- ...defaultProps$7,
16697
+ ...defaultProps$6,
16736
16698
  ...props
16737
16699
  };
16738
16700
  const classes = classNames(className, classPrefix$1);
@@ -16752,9 +16714,9 @@ var __publicField = (obj, key, value) => {
16752
16714
  }
16753
16715
  ));
16754
16716
  };
16755
- Video.defaultProps = defaultProps$7;
16717
+ Video.defaultProps = defaultProps$6;
16756
16718
  Video.displayName = "NutVideo";
16757
- const defaultProps$6 = {
16719
+ const defaultProps$5 = {
16758
16720
  ...ComponentDefaults,
16759
16721
  list: [],
16760
16722
  interval: 500,
@@ -16775,7 +16737,7 @@ var __publicField = (obj, key, value) => {
16775
16737
  gapY,
16776
16738
  ...restProps
16777
16739
  } = {
16778
- ...defaultProps$6,
16740
+ ...defaultProps$5,
16779
16741
  ...props
16780
16742
  };
16781
16743
  const [styleList, setStyleList] = React.useState([]);
@@ -16848,250 +16810,243 @@ var __publicField = (obj, key, value) => {
16848
16810
  })));
16849
16811
  };
16850
16812
  const Barrage = React.forwardRef(InternalBarrage);
16851
- Barrage.defaultProps = defaultProps$6;
16813
+ Barrage.defaultProps = defaultProps$5;
16852
16814
  Barrage.displayName = "NutBarrage";
16853
- const defaultProps$5 = {};
16815
+ const defaultProps$4 = {
16816
+ ...ComponentDefaults,
16817
+ src: "",
16818
+ title: "",
16819
+ price: "",
16820
+ vipPrice: "",
16821
+ shopDescription: "",
16822
+ delivery: "",
16823
+ shopName: "",
16824
+ description: "",
16825
+ tag: "",
16826
+ priceTag: "",
16827
+ extra: ""
16828
+ };
16854
16829
  const Card = (props) => {
16855
16830
  const {
16856
16831
  className,
16857
16832
  style,
16858
- imgUrl,
16833
+ src,
16859
16834
  title,
16860
16835
  price,
16861
16836
  vipPrice,
16862
- shopDesc,
16837
+ shopDescription,
16863
16838
  delivery,
16864
16839
  shopName,
16865
- shopTagTpl,
16866
- originTpl,
16867
- prolistTpl,
16868
- footerTpl,
16840
+ tag,
16841
+ priceTag,
16842
+ description,
16843
+ extra,
16869
16844
  ...rest
16870
16845
  } = {
16871
- ...defaultProps$5,
16846
+ ...defaultProps$4,
16872
16847
  ...props
16873
16848
  };
16874
- const b2 = cn("card");
16875
- return /* @__PURE__ */ React.createElement("div", { className: classNames(b2(), className), style, ...rest }, /* @__PURE__ */ React.createElement("div", { className: b2("left") }, /* @__PURE__ */ React.createElement("img", { src: imgUrl, alt: "" })), /* @__PURE__ */ React.createElement("div", { className: b2("right") }, /* @__PURE__ */ React.createElement("div", { className: b2("right__title") }, title), prolistTpl, /* @__PURE__ */ React.createElement("div", { className: b2("right__price") }, /* @__PURE__ */ React.createElement(Price, { price }), originTpl || /* @__PURE__ */ React.createElement(Price, { className: b2("right__price__origin"), price: vipPrice })), /* @__PURE__ */ React.createElement("div", { className: b2("right__other") }, shopTagTpl || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Tag, { type: "danger" }, shopDesc), /* @__PURE__ */ React.createElement(Tag, { plain: true }, delivery))), /* @__PURE__ */ React.createElement("div", { className: b2("right__shop") }, /* @__PURE__ */ React.createElement("div", { className: b2("right__shop__name") }, shopName), footerTpl)));
16849
+ const classPrefix2 = "nut-card";
16850
+ return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), style, ...rest }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__left` }, /* @__PURE__ */ React.createElement("img", { src, alt: "" })), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__right` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__right-title` }, title), description, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}right-price` }, /* @__PURE__ */ React.createElement(Price, { size: "normal", price }), priceTag || /* @__PURE__ */ React.createElement(
16851
+ Price,
16852
+ {
16853
+ size: "normal",
16854
+ className: `${classPrefix2}right-price-origin`,
16855
+ price: vipPrice
16856
+ }
16857
+ )), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}right-other` }, tag || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Tag, { type: "danger" }, shopDescription), /* @__PURE__ */ React.createElement(Tag, { plain: true }, delivery))), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}right-shop` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}right-shop-name` }, shopName), extra)));
16876
16858
  };
16877
- Card.defaultProps = defaultProps$5;
16859
+ Card.defaultProps = defaultProps$4;
16878
16860
  Card.displayName = "NutCard";
16879
- const defaultProps$4 = {
16880
- className: "",
16881
- currentKey: 0,
16882
- currentTime: [],
16883
- times: [],
16884
- select: () => null
16861
+ const defaultProps$3 = {
16862
+ ...ComponentDefaults,
16863
+ activeDate: "",
16864
+ activeTime: [],
16865
+ options: [],
16866
+ optionKey: {
16867
+ valueKey: "value",
16868
+ textKey: "text",
16869
+ childrenKey: "children"
16870
+ },
16871
+ onSelect: () => {
16872
+ }
16885
16873
  };
16886
16874
  const TimeDetail = (props) => {
16887
- useConfig$1();
16888
- const { children, times, className, currentKey, currentTime, select } = {
16889
- ...defaultProps$4,
16875
+ const { options, optionKey, className, activeDate, activeTime, onSelect } = {
16876
+ ...defaultProps$3,
16890
16877
  ...props
16891
16878
  };
16892
- const b2 = cn("timedetail");
16893
- const [renderData, setRenderData] = React.useState([]);
16894
- React.useEffect(() => {
16895
- const currentData = times.find(
16896
- (timesItem) => String(timesItem.key) === String(currentKey)
16897
- );
16898
- const renderData2 = currentData ? currentData.list : [];
16899
- setRenderData(renderData2);
16900
- }, [times, currentKey]);
16901
- const handleTime = (time) => {
16902
- select(time);
16903
- };
16904
- const getDetailClass = (item) => {
16905
- let initClass = "nut-timedetail__item";
16906
- const curTimeData = currentTime.find(
16907
- (item2) => String(item2.key) === String(currentKey)
16908
- );
16909
- if (curTimeData && curTimeData.list && curTimeData.list.includes(item)) {
16910
- initClass += " nut-timedetail__item-active";
16911
- }
16912
- return initClass;
16913
- };
16914
- return /* @__PURE__ */ React.createElement("div", { className: `${b2()} ${className || ""}` }, renderData.map((item, index) => /* @__PURE__ */ React.createElement(
16879
+ const classPrefix2 = "nut-timedetail";
16880
+ const timeList = React.useMemo(() => {
16881
+ return (options == null ? void 0 : options.find(
16882
+ (item) => item[optionKey.valueKey] === activeDate
16883
+ )) || {
16884
+ [optionKey.childrenKey]: []
16885
+ };
16886
+ }, [options, optionKey, activeDate]);
16887
+ const isActive = React.useCallback(
16888
+ (timeKey) => {
16889
+ const date = activeTime.find((item) => {
16890
+ return item[optionKey.valueKey] === activeDate;
16891
+ });
16892
+ if (date == null ? void 0 : date[optionKey.childrenKey]) {
16893
+ const time = date == null ? void 0 : date[optionKey.childrenKey].find((time2) => {
16894
+ return time2[optionKey.valueKey] === timeKey;
16895
+ });
16896
+ return time;
16897
+ }
16898
+ return false;
16899
+ },
16900
+ [activeTime, optionKey, activeDate]
16901
+ );
16902
+ return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className) }, timeList[optionKey.childrenKey].map((item) => /* @__PURE__ */ React.createElement(
16915
16903
  "span",
16916
16904
  {
16917
- className: getDetailClass(item),
16918
- key: item,
16919
- onClick: () => handleTime(item)
16905
+ className: classNames(`${classPrefix2}__item`, {
16906
+ active: isActive(item[optionKey.valueKey])
16907
+ }),
16908
+ key: item[optionKey.valueKey],
16909
+ onClick: () => onSelect(item)
16920
16910
  },
16921
- item
16911
+ item[optionKey.textKey]
16922
16912
  )));
16923
16913
  };
16924
- TimeDetail.defaultProps = defaultProps$4;
16914
+ TimeDetail.defaultProps = defaultProps$3;
16925
16915
  TimeDetail.displayName = "NutTimeDetail";
16926
- const defaultProps$3 = {
16927
- className: "",
16928
- date: "",
16929
- curKey: 0
16930
- };
16931
- const TimePannel = (props) => {
16932
- useConfig$1();
16933
- const { children, className, date, curKey, change } = {
16934
- ...defaultProps$3,
16935
- ...props
16936
- };
16937
- const b2 = cn("timepannel");
16938
- return /* @__PURE__ */ React.createElement("div", { className: `${b2()} ${className || ""}`, onClick: () => change(curKey) }, date);
16939
- };
16940
- TimePannel.defaultProps = defaultProps$3;
16941
- TimePannel.displayName = "NutTimePannel";
16942
16916
  const defaultProps$2 = {
16943
- className: "",
16944
- style: {},
16917
+ ...ComponentDefaults,
16945
16918
  visible: false,
16946
- height: "20%",
16947
16919
  multiple: false,
16948
- currentKey: 0,
16949
- currentTime: [],
16950
- title: "取件时间",
16951
- dates: [],
16952
- times: []
16920
+ defaultValue: [],
16921
+ options: [],
16922
+ optionKey: {
16923
+ valueKey: "value",
16924
+ textKey: "text",
16925
+ childrenKey: "children"
16926
+ }
16953
16927
  };
16954
16928
  const TimeSelect = (props) => {
16955
- useConfig$1();
16929
+ const { locale } = useConfig$1();
16956
16930
  const {
16957
16931
  visible,
16958
16932
  className,
16959
- height,
16933
+ style,
16960
16934
  title,
16961
- currentKey,
16962
- currentTime,
16963
- dates,
16964
- times,
16935
+ defaultValue,
16936
+ options,
16937
+ optionKey,
16965
16938
  multiple,
16966
- select,
16967
- pannelChange,
16968
- timeChange,
16969
16939
  onSelect,
16970
- onPannelChange,
16971
- onTimeChange
16940
+ onDateChange,
16941
+ onTimeChange,
16942
+ ...rest
16972
16943
  } = {
16973
16944
  ...defaultProps$2,
16974
16945
  ...props
16975
16946
  };
16976
- const [activeKey, setActiveKey] = React.useState(currentKey);
16947
+ const [activeDate, setActiveDate] = React.useState(() => {
16948
+ if (defaultValue == null ? void 0 : defaultValue.length) {
16949
+ return defaultValue[0][optionKey.valueKey];
16950
+ }
16951
+ if (options == null ? void 0 : options.length) {
16952
+ return options[0][optionKey.valueKey];
16953
+ }
16954
+ return "";
16955
+ });
16977
16956
  const [activeTime, setActiveTime] = React.useState(
16978
- currentTime.length ? currentTime : [
16979
- {
16980
- key: currentKey,
16981
- list: []
16982
- }
16983
- ]
16957
+ () => defaultValue || []
16984
16958
  );
16985
- const [popVisible, setPopVisible] = React.useState(visible);
16986
- const popStyle = {
16987
- width: "100%",
16988
- height
16989
- };
16990
- const b2 = cn("timeselect");
16959
+ const classPrefix2 = "nut-timeselect";
16991
16960
  const closeFun = () => {
16992
- if (onSelect) {
16993
- onSelect(activeTime);
16994
- } else if (select) {
16995
- select(activeTime);
16996
- }
16997
- };
16998
- const handleSelectTime = (time) => {
16999
- let curTimeData = {};
17000
- let curIndex = -1;
17001
- for (let i = 0; i < activeTime.length; i++) {
17002
- if (String(activeTime[i].key) === String(activeKey)) {
17003
- curTimeData = activeTime[i];
17004
- curIndex = i;
17005
- break;
17006
- }
17007
- }
17008
- const curTimeIndex = curTimeData.list.findIndex(
17009
- (item) => String(item) === String(time)
17010
- );
17011
- if (curTimeIndex === -1) {
17012
- curTimeData.list.push(time);
17013
- } else {
17014
- curTimeData.list.splice(curTimeIndex, 1);
17015
- }
17016
- const resultTimeData = [...activeTime];
17017
- resultTimeData.splice(curIndex, 1, curTimeData);
17018
- setActiveTime(resultTimeData);
17019
- if (onTimeChange) {
17020
- onTimeChange(time, resultTimeData);
17021
- } else if (timeChange) {
17022
- timeChange(time, resultTimeData);
17023
- }
17024
- };
17025
- const handleChange = (pannelKey) => {
17026
- const resultTimeData = [...activeTime];
17027
- if (String(pannelKey) !== String(activeKey)) {
17028
- setActiveKey == null ? void 0 : setActiveKey(pannelKey);
17029
- if (multiple) {
17030
- const curTimeDataIndex = activeTime.findIndex(
17031
- (item) => String(item.key) === String(pannelKey)
17032
- );
17033
- if (curTimeDataIndex === -1) {
17034
- resultTimeData.push({
17035
- key: pannelKey,
17036
- list: []
17037
- });
17038
- setActiveTime(resultTimeData);
16961
+ onSelect && onSelect(activeTime);
16962
+ };
16963
+ const handleSelectTime = (selectTime) => {
16964
+ let newActiveTime = [...activeTime];
16965
+ const date = newActiveTime.find((item) => {
16966
+ return item[optionKey.valueKey] === activeDate;
16967
+ });
16968
+ if (date) {
16969
+ const timeIndex = date[optionKey.childrenKey].findIndex(
16970
+ (time) => {
16971
+ return time[optionKey.valueKey] === selectTime[optionKey.valueKey];
16972
+ }
16973
+ );
16974
+ if (timeIndex > -1) {
16975
+ if (multiple) {
16976
+ date[optionKey.childrenKey].splice(timeIndex, 1);
16977
+ } else {
16978
+ newActiveTime = [];
17039
16979
  }
16980
+ } else if (multiple) {
16981
+ date[optionKey.childrenKey].push({ ...selectTime });
17040
16982
  } else {
17041
- setActiveTime([
16983
+ newActiveTime = [
17042
16984
  {
17043
- key: pannelKey,
17044
- list: []
16985
+ [optionKey.valueKey]: activeDate,
16986
+ [optionKey.childrenKey]: [{ ...selectTime }]
17045
16987
  }
17046
- ]);
16988
+ ];
17047
16989
  }
16990
+ } else if (multiple) {
16991
+ newActiveTime.push({
16992
+ [optionKey.valueKey]: activeDate,
16993
+ [optionKey.childrenKey]: [{ ...selectTime }]
16994
+ });
16995
+ } else {
16996
+ newActiveTime = [
16997
+ {
16998
+ [optionKey.valueKey]: activeDate,
16999
+ [optionKey.childrenKey]: [{ ...selectTime }]
17000
+ }
17001
+ ];
17048
17002
  }
17049
- if (onPannelChange) {
17050
- onPannelChange(pannelKey, resultTimeData);
17051
- } else if (pannelChange) {
17052
- pannelChange(pannelKey, resultTimeData);
17053
- }
17003
+ newActiveTime = newActiveTime.filter((item) => {
17004
+ var _a;
17005
+ return ((_a = item[optionKey.childrenKey]) == null ? void 0 : _a.length) > 0;
17006
+ });
17007
+ setActiveTime(newActiveTime);
17008
+ onTimeChange && onTimeChange(selectTime, newActiveTime);
17054
17009
  };
17055
- const getTimePannelClass = (dataItem) => {
17056
- if (String(dataItem["paneKey"]) === String(activeKey)) {
17057
- return "nut-timepannel-active";
17058
- }
17059
- return "";
17010
+ const handleChange = (date) => {
17011
+ setActiveDate(date[optionKey.valueKey]);
17012
+ onDateChange && onDateChange(date, activeTime);
17060
17013
  };
17061
- React.useEffect(() => {
17062
- setPopVisible(visible);
17063
- }, [visible]);
17064
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
17014
+ return /* @__PURE__ */ React.createElement(
17065
17015
  Popup,
17066
17016
  {
17067
17017
  closeable: true,
17068
17018
  round: true,
17069
- visible: popVisible,
17019
+ visible,
17070
17020
  position: "bottom",
17071
- style: popStyle,
17072
- onClose: () => {
17073
- closeFun();
17074
- }
17021
+ style: {
17022
+ width: "100%",
17023
+ height: "20%",
17024
+ ...style
17025
+ },
17026
+ onClose: closeFun,
17027
+ ...rest
17075
17028
  },
17076
- /* @__PURE__ */ React.createElement("div", { className: `${b2()} ${className || ""}` }, /* @__PURE__ */ React.createElement("div", { className: "nut-timeselect__title" }, title), /* @__PURE__ */ React.createElement("div", { className: "nut-timeselect__content" }, /* @__PURE__ */ React.createElement("div", { className: "nut-timeselect__content-left" }, dates.map((dataItem, index) => /* @__PURE__ */ React.createElement(
17077
- TimePannel,
17029
+ /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className) }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__title` }, title || locale.timeselect.pickupTime), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__content` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__content-left` }, options.map((item) => /* @__PURE__ */ React.createElement(
17030
+ "div",
17078
17031
  {
17079
- date: dataItem.date,
17080
- className: getTimePannelClass(dataItem),
17081
- key: String(dataItem["paneKey"] || index),
17082
- curKey: String(dataItem["paneKey"] || index),
17083
- change: handleChange
17084
- }
17032
+ key: item[optionKey.valueKey],
17033
+ className: classNames("nut-timepannel", {
17034
+ active: item[optionKey.valueKey] === activeDate
17035
+ }),
17036
+ onClick: () => handleChange(item)
17037
+ },
17038
+ item[optionKey.textKey]
17085
17039
  ))), /* @__PURE__ */ React.createElement(
17086
17040
  TimeDetail,
17087
17041
  {
17088
- times,
17089
- currentKey: String(activeKey),
17090
- currentTime: activeTime,
17091
- select: handleSelectTime
17042
+ options,
17043
+ optionKey,
17044
+ activeDate,
17045
+ activeTime,
17046
+ onSelect: handleSelectTime
17092
17047
  }
17093
17048
  )))
17094
- ));
17049
+ );
17095
17050
  };
17096
17051
  TimeSelect.defaultProps = defaultProps$2;
17097
17052
  TimeSelect.displayName = "NutTimeSelect";
@@ -17347,7 +17302,7 @@ var __publicField = (obj, key, value) => {
17347
17302
  exports2.Image = Image$1;
17348
17303
  exports2.ImagePreview = ImagePreview;
17349
17304
  exports2.Indicator = Indicator;
17350
- exports2.Infiniteloading = Infiniteloading;
17305
+ exports2.InfiniteLoading = InfiniteLoading;
17351
17306
  exports2.Input = Input;
17352
17307
  exports2.InputNumber = InputNumber;
17353
17308
  exports2.Layout = Layout;
@@ -17392,7 +17347,6 @@ var __publicField = (obj, key, value) => {
17392
17347
  exports2.Tag = Tag;
17393
17348
  exports2.TextArea = TextArea;
17394
17349
  exports2.TimeDetail = TimeDetail;
17395
- exports2.TimePannel = TimePannel;
17396
17350
  exports2.TimeSelect = TimeSelect;
17397
17351
  exports2.Toast = Toast;
17398
17352
  exports2.TrendArrow = TrendArrow;