@nutui/nutui-react-taro 2.6.9 → 2.6.11

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 (211) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/esm/ActionSheet.js +1 -1
  3. package/dist/esm/Address/style/style.css +1 -1
  4. package/dist/esm/Address.js +1 -1
  5. package/dist/esm/Animate/style/style.css +1 -1
  6. package/dist/esm/Animate.js +1 -1
  7. package/dist/esm/AnimatingNumbers.js +1 -1
  8. package/dist/esm/Audio/style/style.css +1 -1
  9. package/dist/esm/Audio.js +1 -1
  10. package/dist/esm/Avatar.js +1 -1
  11. package/dist/esm/AvatarCropper.js +1 -1
  12. package/dist/esm/BackTop.js +1 -1
  13. package/dist/esm/Badge.js +1 -1
  14. package/dist/esm/Barrage.js +1 -1
  15. package/dist/esm/Button.js +1 -1
  16. package/dist/esm/Calendar.js +1 -1
  17. package/dist/esm/CalendarCard.js +1 -1
  18. package/dist/esm/CalendarItem.js +1 -1
  19. package/dist/esm/Card.js +1 -1
  20. package/dist/esm/Cascader/style/style.css +1 -1
  21. package/dist/esm/Cascader.js +1 -1
  22. package/dist/esm/Cell.js +1 -1
  23. package/dist/esm/CellGroup.js +1 -1
  24. package/dist/esm/Checkbox.js +1 -1
  25. package/dist/esm/CheckboxGroup.js +1 -1
  26. package/dist/esm/CircleProgress.js +1 -1
  27. package/dist/esm/Collapse.js +1 -1
  28. package/dist/esm/CollapseItem.js +1 -1
  29. package/dist/esm/ConfigProvider.js +2 -2
  30. package/dist/esm/CountDown.js +1 -1
  31. package/dist/esm/DatePicker.js +1 -1
  32. package/dist/esm/Dialog.js +1 -1
  33. package/dist/esm/Divider.js +1 -1
  34. package/dist/esm/Drag.js +1 -1
  35. package/dist/esm/Elevator.js +1 -1
  36. package/dist/esm/Ellipsis.js +1 -1
  37. package/dist/esm/Empty.js +1 -1
  38. package/dist/esm/FixedNav/style/style.css +1 -1
  39. package/dist/esm/FixedNav.js +1 -1
  40. package/dist/esm/Form.js +2 -2
  41. package/dist/esm/FormItem.js +1 -1
  42. package/dist/esm/Grid.js +1 -1
  43. package/dist/esm/GridItem.js +1 -1
  44. package/dist/esm/Image.js +1 -1
  45. package/dist/esm/ImagePreview.js +1 -1
  46. package/dist/esm/Indicator.js +1 -1
  47. package/dist/esm/InfiniteLoading.js +1 -1
  48. package/dist/esm/Input.js +1 -1
  49. package/dist/esm/InputNumber.js +1 -1
  50. package/dist/esm/Loading.js +1 -1
  51. package/dist/esm/Menu.js +1 -1
  52. package/dist/esm/MenuItem.js +1 -1
  53. package/dist/esm/NavBar.js +1 -1
  54. package/dist/esm/NoticeBar.js +1 -1
  55. package/dist/esm/NumberKeyboard.js +1 -1
  56. package/dist/esm/Overlay.js +1 -1
  57. package/dist/esm/Pagination/style/style.css +1 -1
  58. package/dist/esm/Pagination.js +1 -1
  59. package/dist/esm/Picker.js +1 -1
  60. package/dist/esm/Popover.js +1 -1
  61. package/dist/esm/Popup.js +1 -1
  62. package/dist/esm/Price.js +1 -1
  63. package/dist/esm/Progress/style/style.css +1 -1
  64. package/dist/esm/Progress.js +1 -1
  65. package/dist/esm/PullToRefresh.js +1 -1
  66. package/dist/esm/Radio.js +1 -1
  67. package/dist/esm/RadioGroup.js +1 -1
  68. package/dist/esm/Range.js +1 -1
  69. package/dist/esm/Rate.js +1 -1
  70. package/dist/esm/SearchBar.js +1 -1
  71. package/dist/esm/ShortPassword/style/style.css +1 -1
  72. package/dist/esm/ShortPassword.js +1 -1
  73. package/dist/esm/SideNavBar.js +1 -1
  74. package/dist/esm/SideNavBarItem.js +1 -1
  75. package/dist/esm/Signature.js +1 -1
  76. package/dist/esm/Skeleton/style/style.css +1 -1
  77. package/dist/esm/Skeleton.js +1 -1
  78. package/dist/esm/Step.js +1 -1
  79. package/dist/esm/Steps.js +1 -1
  80. package/dist/esm/Sticky.js +1 -1
  81. package/dist/esm/SubSideNavBar.js +1 -1
  82. package/dist/esm/Swipe.js +1 -1
  83. package/dist/esm/Swiper.js +3 -3
  84. package/dist/esm/SwiperItem.js +1 -1
  85. package/dist/esm/Switch.js +1 -1
  86. package/dist/esm/TabPane/style/style.css +1 -1
  87. package/dist/esm/Tabbar.js +1 -1
  88. package/dist/esm/TabbarItem.js +1 -1
  89. package/dist/esm/Table.js +1 -1
  90. package/dist/esm/Tabs/style/style.css +1 -1
  91. package/dist/esm/Tabs.js +1 -1
  92. package/dist/esm/TextArea.js +1 -1
  93. package/dist/esm/TimeSelect.js +1 -1
  94. package/dist/esm/Toast.js +1 -1
  95. package/dist/esm/Tour.js +1 -1
  96. package/dist/esm/TrendArrow.js +1 -1
  97. package/dist/esm/Uploader/style/style.css +1 -1
  98. package/dist/esm/Uploader.js +1 -1
  99. package/dist/esm/Video.js +1 -1
  100. package/dist/esm/VirtualList.js +1 -1
  101. package/dist/esm/WaterMark.js +1 -1
  102. package/dist/esm/{actionsheet.taro-Cla34tFO.js → actionsheet.taro-CJjNsNrH.js} +2 -2
  103. package/dist/esm/{address.taro-D0tjP5C1.js → address.taro-CtVpobLw.js} +4 -4
  104. package/dist/esm/{animate.taro-D-A6ORRZ.js → animate.taro-CQVEyDKL.js} +1 -1
  105. package/dist/esm/{audio.taro-BlniN99d.js → audio.taro-DzSc40G9.js} +4 -4
  106. package/dist/esm/{avatar.taro-Dx8hhvFI.js → avatar.taro-DSL3ErmC.js} +2 -2
  107. package/dist/esm/{avatarcropper.taro-D6yiXZM5.js → avatarcropper.taro-R3OfWq1H.js} +2 -2
  108. package/dist/esm/{backtop.taro-YeEY7i4O.js → backtop.taro-jWlJ1ZWG.js} +1 -1
  109. package/dist/esm/{badge.taro-DK_UFQ5Y.js → badge.taro-BGaxpEYi.js} +1 -1
  110. package/dist/esm/{barrage.taro-DEJGSmY5.js → barrage.taro-CA-9uADD.js} +3 -3
  111. package/dist/esm/{button.taro-KHyp8jxX.js → button.taro-1kEru6r9.js} +1 -1
  112. package/dist/esm/{calendar.taro-CDZqFYlk.js → calendar.taro-DN6uEJw-.js} +4 -4
  113. package/dist/esm/{calendarcard.taro-CHDg3k5D.js → calendarcard.taro-CbvCWF1k.js} +2 -2
  114. package/dist/esm/{calendaritem.taro-DuEKmnsT.js → calendaritem.taro-CiGznRkW.js} +4 -6
  115. package/dist/esm/{card.taro-CC0SLA0p.js → card.taro-DxcIi5qH.js} +2 -2
  116. package/dist/esm/{cascader.taro-c6WPcYsc.js → cascader.taro-y9_hSUSJ.js} +3 -3
  117. package/dist/esm/{cell.taro-kOgCGbyn.js → cell.taro-CVFlcls2.js} +2 -2
  118. package/dist/esm/{cellgroup.taro-BskBIgql.js → cellgroup.taro-DTLGMR_c.js} +1 -1
  119. package/dist/esm/{checkbox.taro-DOSOI351.js → checkbox.taro-Dc054oRo.js} +3 -4
  120. package/dist/esm/{circleprogress.taro-BuVTD1iY.js → circleprogress.taro-BTRyQG5T.js} +1 -1
  121. package/dist/esm/{collapse.taro-CxDgckv5.js → collapse.taro-wqL6MWZr.js} +1 -1
  122. package/dist/esm/{collapseitem.taro-BY06WWvK.js → collapseitem.taro-DjUx5Nx8.js} +1 -1
  123. package/dist/esm/{configprovider.taro-CyU_tvNJ.js → configprovider.taro-DA4GDDFu.js} +1 -1
  124. package/dist/esm/{countdown.taro-CdEiAwr5.js → countdown.taro-mKXeisK0.js} +2 -2
  125. package/dist/esm/{date-D0pth0qC.js → date-CYwRNlGq.js} +1 -4
  126. package/dist/esm/{datepicker.taro-CcP4XLtj.js → datepicker.taro-DTyJrlhD.js} +3 -3
  127. package/dist/esm/{dialog.taro-jZ6_EUiF.js → dialog.taro-BW9D2Gsr.js} +4 -4
  128. package/dist/esm/{divider.taro-CijVuCyt.js → divider.taro-BuVR5t2X.js} +1 -1
  129. package/dist/esm/{drag.taro-CBNVFciU.js → drag.taro-CI7ZFwaM.js} +2 -2
  130. package/dist/esm/{elevator.taro-BzVoaYw6.js → elevator.taro-Bsc8PcT0.js} +1 -1
  131. package/dist/esm/{ellipsis.taro-dxOx8h7S.js → ellipsis.taro-cMTr1Wcw.js} +3 -3
  132. package/dist/esm/{empty.taro-ek_1_FoA.js → empty.taro-CnwDznke.js} +3 -3
  133. package/dist/esm/{fixednav.taro-CewDiT-u.js → fixednav.taro-D3KnhYoI.js} +3 -3
  134. package/dist/esm/{formitem.taro-CAib1i9_.js → formitem.taro-tLWeQ0P5.js} +2 -2
  135. package/dist/esm/{get-rect-by-taro-CSN0TGnD.js → get-rect-by-taro-THaHH07X.js} +1 -1
  136. package/dist/esm/{grid.taro-C4xSMhg4.js → grid.taro-ZJywVaVe.js} +2 -2
  137. package/dist/esm/{griditem.taro-DeXl7qNi.js → griditem.taro-CcWyYchl.js} +2 -2
  138. package/dist/esm/{image.taro-ESa7sdbM.js → image.taro-CyF6ujA7.js} +1 -1
  139. package/dist/esm/{imagepreview.taro-CBT7aS3-.js → imagepreview.taro-B7eJN5Hn.js} +3 -3
  140. package/dist/esm/{indicator.taro-Bmae9MdC.js → indicator.taro-k8bxJf86.js} +1 -1
  141. package/dist/esm/{infiniteloading.taro-Bnm-LVHC.js → infiniteloading.taro-g1RbqnSS.js} +2 -2
  142. package/dist/esm/{input.taro-CLMPZ7Wg.js → input.taro-B_B1lJq2.js} +2 -2
  143. package/dist/esm/{inputnumber.taro-CzuJKfES.js → inputnumber.taro-WN5Drnyz.js} +1 -1
  144. package/dist/esm/{loading.taro-BfHqvYhy.js → loading.taro-n_qoNgCW.js} +1 -1
  145. package/dist/esm/{menu.taro-DkKY62ym.js → menu.taro-JDg_-XpO.js} +2 -2
  146. package/dist/esm/{menuitem.taro-CKjl8_Cl.js → menuitem.taro-BFfGgTms.js} +3 -3
  147. package/dist/esm/{navbar.taro-COrKuU9p.js → navbar.taro-Dea0-s9Q.js} +2 -2
  148. package/dist/esm/{noticebar.taro-cjVGemZE.js → noticebar.taro-CGUTg60Q.js} +3 -3
  149. package/dist/esm/{numberkeyboard.taro-CFJtMOew.js → numberkeyboard.taro-BA0iCeGP.js} +3 -3
  150. package/dist/esm/nutui-react.es.js +83 -83
  151. package/dist/esm/{overlay.taro-BJ3twlP0.js → overlay.taro-C2t82CZz.js} +1 -1
  152. package/dist/esm/{pagination.taro-B8hmHNgf.js → pagination.taro-DdLO3OTc.js} +2 -2
  153. package/dist/esm/{picker.taro-D3G6mJ-I.js → picker.taro-CafNRRO5.js} +11 -14
  154. package/dist/esm/{popover.taro-Dve2UnRF.js → popover.taro-B_FJgU0z.js} +4 -4
  155. package/dist/esm/{popup.taro-cT6cbAxw.js → popup.taro-CR3JyuJV.js} +1 -1
  156. package/dist/esm/{price.taro-DdR5NSIA.js → price.taro-DUW-OR83.js} +1 -1
  157. package/dist/esm/{progress.taro-BFWQ2MvM.js → progress.taro-De9-206U.js} +2 -2
  158. package/dist/esm/{pulltorefresh.taro-Ck1i2xRr.js → pulltorefresh.taro-CZReoWwU.js} +4 -4
  159. package/dist/esm/{radio.taro-CjJgX9o2.js → radio.taro-BNSceequ.js} +1 -1
  160. package/dist/esm/{range.taro-BeVCaZ4r.js → range.taro-D_qsx_j6.js} +3 -3
  161. package/dist/esm/{rate.taro-lOoACxLq.js → rate.taro-CPGkjYYu.js} +1 -1
  162. package/dist/esm/{searchbar.taro-BptyG-eR.js → searchbar.taro-C8cg7NeJ.js} +1 -1
  163. package/dist/esm/{shortpassword.taro-BVp4BrTs.js → shortpassword.taro-DpdtRsQ-.js} +3 -3
  164. package/dist/esm/{sidenavbar.taro-DGnJgxEe.js → sidenavbar.taro-5BmrYFtP.js} +2 -2
  165. package/dist/esm/{sidenavbaritem.taro-L7HbsCLn.js → sidenavbaritem.taro-BKpzXpzG.js} +1 -1
  166. package/dist/esm/{signature.taro-Dq6JO2XJ.js → signature.taro-zgwaJkIE.js} +1 -1
  167. package/dist/esm/{skeleton.taro-C3vp7bWb.js → skeleton.taro-bD6fHZop.js} +2 -2
  168. package/dist/esm/{step.taro-CaRHnSOF.js → step.taro-Cc1dc5Qb.js} +1 -1
  169. package/dist/esm/{steps.taro-BoVGFMxx.js → steps.taro-CUEhZGfy.js} +1 -1
  170. package/dist/esm/{sticky.taro-CqiMtDv9.js → sticky.taro-DZzgkigZ.js} +2 -2
  171. package/dist/esm/{subsidenavbar.taro-ByxYpgfP.js → subsidenavbar.taro-CSU3DhNq.js} +1 -1
  172. package/dist/esm/{swipe.taro-CavqgBEb.js → swipe.taro-yUhne9XU.js} +4 -4
  173. package/dist/esm/{swiperitem.taro-8JXI24f0.js → swiperitem.taro-DeiNSrJV.js} +1 -1
  174. package/dist/esm/{switch.taro-Mq1wBEGz.js → switch.taro-CdBmDo18.js} +1 -1
  175. package/dist/esm/{tabbar.taro-DD5HcQgp.js → tabbar.taro-CXk0zLdz.js} +1 -1
  176. package/dist/esm/{tabbaritem.taro-ptdJI0xv.js → tabbaritem.taro-BZNabTBp.js} +2 -2
  177. package/dist/esm/{table.taro-EwAQJ6jp.js → table.taro-D2M3D2Vj.js} +6 -2
  178. package/dist/esm/{tabs.taro-gcyv8qGG.js → tabs.taro-B2D3AtVV.js} +2 -2
  179. package/dist/esm/{textarea.taro-DLS0EQeJ.js → textarea.taro-DuceTjAx.js} +2 -2
  180. package/dist/esm/{timeselect.taro-C64SUiXS.js → timeselect.taro-DncKbp3l.js} +3 -3
  181. package/dist/esm/{toast.taro-CSqE0aIO.js → toast.taro-CYk6UERn.js} +1 -1
  182. package/dist/esm/{tour.taro-DegQCG1T.js → tour.taro-SPMrhDA9.js} +2 -2
  183. package/dist/esm/{trendarrow.taro-B2QGvXG0.js → trendarrow.taro-DKx5cGIh.js} +1 -1
  184. package/dist/esm/{tslib.es6-BZ8i9Q6l.js → tslib.es6-iWu3F_1J.js} +2 -3
  185. package/dist/esm/{uploader.taro-CAKO74Mg.js → uploader.taro-E6R-Ow7M.js} +4 -4
  186. package/dist/esm/{video.taro-Bm5bDmIG.js → video.taro-CecLv4sr.js} +1 -1
  187. package/dist/esm/{virtuallist.taro-GLen2Ay5.js → virtuallist.taro-BlPW8ibd.js} +2 -9
  188. package/dist/esm/{watermark.taro-BL5bLewc.js → watermark.taro-BR12yZQt.js} +1 -1
  189. package/dist/locales/base.js +1 -1
  190. package/dist/locales/en-US.js +1 -1
  191. package/dist/locales/id-ID.js +1 -1
  192. package/dist/locales/tr-TR.js +1 -1
  193. package/dist/locales/zh-CN.js +1 -1
  194. package/dist/locales/zh-TW.js +1 -1
  195. package/dist/locales/zh-UG.js +1 -1
  196. package/dist/nutui.react.es.js +155 -306
  197. package/dist/nutui.react.umd.js +155 -306
  198. package/dist/packages/fixednav/fixednav.scss +2 -2
  199. package/dist/packages/tabpane/tabpane.scss +1 -1
  200. package/dist/style.css +1 -1
  201. package/dist/styles/variables-jmapp.scss +4 -1
  202. package/dist/styles/variables.scss +4 -1
  203. package/dist/types/packages/configprovider/types.d.ts +1 -1
  204. package/dist/types/packages/dialog/confirm.d.ts +1 -1
  205. package/dist/types/packages/table/index.d.ts +1 -0
  206. package/dist/types/packages/table/index.taro.d.ts +1 -0
  207. package/dist/types/packages/virtuallist/utils.d.ts +2 -2
  208. package/dist/types/utils/interceptor.d.ts +2 -2
  209. package/dist/types/utils/use-ref-state.d.ts +1 -1
  210. package/package.json +1 -1
  211. package/dist/style.mjs +0 -5
@@ -2,7 +2,7 @@
2
2
  typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@tarojs/taro"), require("@tarojs/components"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "@tarojs/taro", "@tarojs/components", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.nutui = global2.nutui || {}, global2.nutui.react = {}), global2.React, global2.Taro, global2.components, global2.ReactDOM));
3
3
  })(this, function(exports2, React, Taro, components, ReactDOM) {
4
4
  "use strict";/*!
5
- * @nutui/nutui-react-taro v2.6.9 Fri Jun 14 2024 17:06:28 GMT+0800 (China Standard Time)
5
+ * @nutui/nutui-react-taro v2.6.11 Fri Jun 28 2024 14:38:04 GMT+0800 (China Standard Time)
6
6
  * (c) 2023 @jdf2e.
7
7
  * Released under the MIT License.
8
8
  */
@@ -613,9 +613,6 @@
613
613
  var root = freeGlobal || freeSelf || Function("return this")();
614
614
  function arrayReduce(array2, iteratee, accumulator, initAccum) {
615
615
  var index = -1, length = array2 ? array2.length : 0;
616
- if (initAccum && length) {
617
- accumulator = array2[++index];
618
- }
619
616
  while (++index < length) {
620
617
  accumulator = iteratee(accumulator, array2[index], index, array2);
621
618
  }
@@ -673,7 +670,7 @@
673
670
  });
674
671
  function words(string2, pattern2, guard) {
675
672
  string2 = toString(string2);
676
- pattern2 = guard ? void 0 : pattern2;
673
+ pattern2 = pattern2;
677
674
  if (pattern2 === void 0) {
678
675
  return hasUnicodeWord(string2) ? unicodeWords(string2) : asciiWords(string2);
679
676
  }
@@ -974,7 +971,7 @@
974
971
  function arrayLikeKeys(value, inherited) {
975
972
  var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
976
973
  for (var key in value) {
977
- if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
974
+ if (hasOwnProperty.call(value, key) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
978
975
  (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
979
976
  isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
980
977
  isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
@@ -1585,8 +1582,7 @@
1585
1582
  ...style
1586
1583
  };
1587
1584
  const renderErrorImg = React.useCallback(() => {
1588
- if (!isError)
1589
- return null;
1585
+ if (!isError) return null;
1590
1586
  if (typeof error === "boolean" && error === true && !innerLoading) {
1591
1587
  return /* @__PURE__ */ React.createElement("div", { className: "nut-img-error" }, /* @__PURE__ */ React.createElement(N, null));
1592
1588
  }
@@ -1596,8 +1592,7 @@
1596
1592
  return null;
1597
1593
  }, [error, isError, innerLoading]);
1598
1594
  const renderLoading = React.useCallback(() => {
1599
- if (!loading)
1600
- return null;
1595
+ if (!loading) return null;
1601
1596
  if (typeof loading === "boolean" && loading === true && innerLoading) {
1602
1597
  return /* @__PURE__ */ React.createElement("div", { className: "nut-img-loading" }, /* @__PURE__ */ React.createElement(j$2, null));
1603
1598
  }
@@ -1620,44 +1615,30 @@
1620
1615
  };
1621
1616
  Image$1.displayName = "NutImage";
1622
1617
  function _extends$1() {
1623
- _extends$1 = Object.assign ? Object.assign.bind() : function(target) {
1624
- for (var i = 1; i < arguments.length; i++) {
1625
- var source = arguments[i];
1626
- for (var key in source) {
1627
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1628
- target[key] = source[key];
1629
- }
1630
- }
1618
+ return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
1619
+ for (var e2 = 1; e2 < arguments.length; e2++) {
1620
+ var t = arguments[e2];
1621
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n2[r] = t[r]);
1631
1622
  }
1632
- return target;
1633
- };
1634
- return _extends$1.apply(this, arguments);
1623
+ return n2;
1624
+ }, _extends$1.apply(null, arguments);
1635
1625
  }
1636
- function _objectWithoutPropertiesLoose(source, excluded) {
1637
- if (source == null)
1638
- return {};
1639
- var target = {};
1640
- var sourceKeys = Object.keys(source);
1641
- var key, i;
1642
- for (i = 0; i < sourceKeys.length; i++) {
1643
- key = sourceKeys[i];
1644
- if (excluded.indexOf(key) >= 0)
1645
- continue;
1646
- target[key] = source[key];
1626
+ function _objectWithoutPropertiesLoose(r, e2) {
1627
+ if (null == r) return {};
1628
+ var t = {};
1629
+ for (var n2 in r) if ({}.hasOwnProperty.call(r, n2)) {
1630
+ if (e2.indexOf(n2) >= 0) continue;
1631
+ t[n2] = r[n2];
1647
1632
  }
1648
- return target;
1633
+ return t;
1649
1634
  }
1650
- function _setPrototypeOf$1(o, p) {
1651
- _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
1652
- o2.__proto__ = p2;
1653
- return o2;
1654
- };
1655
- return _setPrototypeOf$1(o, p);
1635
+ function _setPrototypeOf$1(t, e2) {
1636
+ return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e3) {
1637
+ return t2.__proto__ = e3, t2;
1638
+ }, _setPrototypeOf$1(t, e2);
1656
1639
  }
1657
- function _inheritsLoose$1(subClass, superClass) {
1658
- subClass.prototype = Object.create(superClass.prototype);
1659
- subClass.prototype.constructor = subClass;
1660
- _setPrototypeOf$1(subClass, superClass);
1640
+ function _inheritsLoose$1(t, o) {
1641
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf$1(t, o);
1661
1642
  }
1662
1643
  var propTypes = { exports: {} };
1663
1644
  var reactIs = { exports: {} };
@@ -1672,8 +1653,7 @@
1672
1653
  */
1673
1654
  var hasRequiredReactIs_production_min;
1674
1655
  function requireReactIs_production_min() {
1675
- if (hasRequiredReactIs_production_min)
1676
- return reactIs_production_min;
1656
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
1677
1657
  hasRequiredReactIs_production_min = 1;
1678
1658
  var b = "function" === typeof Symbol && Symbol.for, c2 = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e2 = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g2 = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k2 = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m2 = b ? Symbol.for("react.concurrent_mode") : 60111, n2 = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
1679
1659
  function z2(a2) {
@@ -1776,8 +1756,7 @@
1776
1756
  */
1777
1757
  var hasRequiredReactIs_development;
1778
1758
  function requireReactIs_development() {
1779
- if (hasRequiredReactIs_development)
1780
- return reactIs_development;
1759
+ if (hasRequiredReactIs_development) return reactIs_development;
1781
1760
  hasRequiredReactIs_development = 1;
1782
1761
  if (process.env.NODE_ENV !== "production") {
1783
1762
  (function() {
@@ -1930,8 +1909,7 @@
1930
1909
  }
1931
1910
  var hasRequiredReactIs;
1932
1911
  function requireReactIs() {
1933
- if (hasRequiredReactIs)
1934
- return reactIs.exports;
1912
+ if (hasRequiredReactIs) return reactIs.exports;
1935
1913
  hasRequiredReactIs = 1;
1936
1914
  if (process.env.NODE_ENV === "production") {
1937
1915
  reactIs.exports = requireReactIs_production_min();
@@ -1948,8 +1926,7 @@
1948
1926
  var objectAssign;
1949
1927
  var hasRequiredObjectAssign;
1950
1928
  function requireObjectAssign() {
1951
- if (hasRequiredObjectAssign)
1952
- return objectAssign;
1929
+ if (hasRequiredObjectAssign) return objectAssign;
1953
1930
  hasRequiredObjectAssign = 1;
1954
1931
  var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1955
1932
  var hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -2019,8 +1996,7 @@
2019
1996
  var ReactPropTypesSecret_1;
2020
1997
  var hasRequiredReactPropTypesSecret;
2021
1998
  function requireReactPropTypesSecret() {
2022
- if (hasRequiredReactPropTypesSecret)
2023
- return ReactPropTypesSecret_1;
1999
+ if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
2024
2000
  hasRequiredReactPropTypesSecret = 1;
2025
2001
  var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2026
2002
  ReactPropTypesSecret_1 = ReactPropTypesSecret;
@@ -2029,8 +2005,7 @@
2029
2005
  var has;
2030
2006
  var hasRequiredHas;
2031
2007
  function requireHas() {
2032
- if (hasRequiredHas)
2033
- return has;
2008
+ if (hasRequiredHas) return has;
2034
2009
  hasRequiredHas = 1;
2035
2010
  has = Function.call.bind(Object.prototype.hasOwnProperty);
2036
2011
  return has;
@@ -2038,8 +2013,7 @@
2038
2013
  var checkPropTypes_1;
2039
2014
  var hasRequiredCheckPropTypes;
2040
2015
  function requireCheckPropTypes() {
2041
- if (hasRequiredCheckPropTypes)
2042
- return checkPropTypes_1;
2016
+ if (hasRequiredCheckPropTypes) return checkPropTypes_1;
2043
2017
  hasRequiredCheckPropTypes = 1;
2044
2018
  var printWarning = function() {
2045
2019
  };
@@ -2102,8 +2076,7 @@
2102
2076
  var factoryWithTypeCheckers;
2103
2077
  var hasRequiredFactoryWithTypeCheckers;
2104
2078
  function requireFactoryWithTypeCheckers() {
2105
- if (hasRequiredFactoryWithTypeCheckers)
2106
- return factoryWithTypeCheckers;
2079
+ if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
2107
2080
  hasRequiredFactoryWithTypeCheckers = 1;
2108
2081
  var ReactIs2 = requireReactIs();
2109
2082
  var assign = requireObjectAssign();
@@ -2546,8 +2519,7 @@
2546
2519
  var factoryWithThrowingShims;
2547
2520
  var hasRequiredFactoryWithThrowingShims;
2548
2521
  function requireFactoryWithThrowingShims() {
2549
- if (hasRequiredFactoryWithThrowingShims)
2550
- return factoryWithThrowingShims;
2522
+ if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
2551
2523
  hasRequiredFactoryWithThrowingShims = 1;
2552
2524
  var ReactPropTypesSecret = requireReactPropTypesSecret();
2553
2525
  function emptyFunction() {
@@ -2608,18 +2580,13 @@
2608
2580
  var propTypesExports = propTypes.exports;
2609
2581
  const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
2610
2582
  function hasClass(element, className) {
2611
- if (element.classList)
2612
- return !!className && element.classList.contains(className);
2583
+ if (element.classList) return !!className && element.classList.contains(className);
2613
2584
  return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
2614
2585
  }
2615
2586
  function addClass(element, className) {
2616
- if (element.classList)
2617
- element.classList.add(className);
2618
- else if (!hasClass(element, className))
2619
- if (typeof element.className === "string")
2620
- element.className = element.className + " " + className;
2621
- else
2622
- element.setAttribute("class", (element.className && element.className.baseVal || "") + " " + className);
2587
+ if (element.classList) element.classList.add(className);
2588
+ else if (!hasClass(element, className)) if (typeof element.className === "string") element.className = element.className + " " + className;
2589
+ else element.setAttribute("class", (element.className && element.className.baseVal || "") + " " + className);
2623
2590
  }
2624
2591
  function replaceClassName(origClass, classToRemove) {
2625
2592
  return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
@@ -2747,8 +2714,7 @@
2747
2714
  if (nextStatus === ENTERING) {
2748
2715
  if (this.props.unmountOnExit || this.props.mountOnEnter) {
2749
2716
  var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
2750
- if (node)
2751
- forceReflow(node);
2717
+ if (node) forceReflow(node);
2752
2718
  }
2753
2719
  this.performEnter(mounting);
2754
2720
  } else {
@@ -2986,8 +2952,7 @@
2986
2952
  */
2987
2953
  timeout: function timeout(props) {
2988
2954
  var pt = timeoutsShape;
2989
- if (!props.addEndListener)
2990
- pt = pt.isRequired;
2955
+ if (!props.addEndListener) pt = pt.isRequired;
2991
2956
  for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2992
2957
  args[_key - 1] = arguments[_key];
2993
2958
  }
@@ -3081,7 +3046,6 @@
3081
3046
  Transition.ENTERING = ENTERING;
3082
3047
  Transition.ENTERED = ENTERED;
3083
3048
  Transition.EXITING = EXITING;
3084
- const Transition$1 = Transition;
3085
3049
  var _addClass = function addClass$1(node, classes) {
3086
3050
  return node && classes && classes.split(" ").forEach(function(c2) {
3087
3051
  return addClass(node, c2);
@@ -3180,8 +3144,7 @@
3180
3144
  className += " " + doneClassName;
3181
3145
  }
3182
3146
  if (phase === "active") {
3183
- if (node)
3184
- forceReflow(node);
3147
+ if (node) forceReflow(node);
3185
3148
  }
3186
3149
  if (className) {
3187
3150
  this.appliedClasses[type2][phase] = className;
@@ -3205,7 +3168,7 @@
3205
3168
  var _this$props = this.props;
3206
3169
  _this$props.classNames;
3207
3170
  var props = _objectWithoutPropertiesLoose(_this$props, ["classNames"]);
3208
- return /* @__PURE__ */ React.createElement(Transition$1, _extends$1({}, props, {
3171
+ return /* @__PURE__ */ React.createElement(Transition, _extends$1({}, props, {
3209
3172
  onEnter: this.onEnter,
3210
3173
  onEntered: this.onEntered,
3211
3174
  onEntering: this.onEntering,
@@ -3219,7 +3182,7 @@
3219
3182
  CSSTransition.defaultProps = {
3220
3183
  classNames: ""
3221
3184
  };
3222
- CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$1({}, Transition$1.propTypes, {
3185
+ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$1({}, Transition.propTypes, {
3223
3186
  /**
3224
3187
  * The animation classNames applied to the component as it appears, enters,
3225
3188
  * exits or has finished the transition. A single name can be provided, which
@@ -3343,7 +3306,6 @@
3343
3306
  */
3344
3307
  onExited: PropTypes.func
3345
3308
  }) : {};
3346
- const CSSTransition$1 = CSSTransition;
3347
3309
  const MIN_DISTANCE = 10;
3348
3310
  function getDirection(x, y) {
3349
3311
  if (x > y && x > MIN_DISTANCE) {
@@ -3439,19 +3401,6 @@
3439
3401
  }
3440
3402
  return root2;
3441
3403
  }
3442
- let passiveSupported = false;
3443
- if (canUseDom) {
3444
- try {
3445
- const opts = Object.defineProperty({}, "passive", {
3446
- get() {
3447
- passiveSupported = true;
3448
- }
3449
- });
3450
- window.addEventListener("test-passive-supported", null, opts);
3451
- } catch (e2) {
3452
- console.log(e2);
3453
- }
3454
- }
3455
3404
  let totalLockCount = 0;
3456
3405
  const BODY_LOCK_CLASS = "nut-overflow-hidden";
3457
3406
  function getScrollableElement(el) {
@@ -3473,8 +3422,7 @@
3473
3422
  event.target,
3474
3423
  rootRef.current
3475
3424
  );
3476
- if (!el)
3477
- return;
3425
+ if (!el) return;
3478
3426
  if (shouldLock === "strict") {
3479
3427
  const scrollableParent = getScrollableElement(event.target);
3480
3428
  if (scrollableParent === document.body || scrollableParent === document.documentElement) {
@@ -3500,7 +3448,7 @@
3500
3448
  document.addEventListener(
3501
3449
  "touchmove",
3502
3450
  onTouchMove,
3503
- passiveSupported ? { passive: false } : false
3451
+ false
3504
3452
  );
3505
3453
  if (!totalLockCount) {
3506
3454
  document.body.classList.add(BODY_LOCK_CLASS);
@@ -3587,7 +3535,7 @@
3587
3535
  afterClose && afterClose();
3588
3536
  };
3589
3537
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
3590
- CSSTransition$1,
3538
+ CSSTransition,
3591
3539
  {
3592
3540
  nodeRef,
3593
3541
  classNames: `${classPrefix2}-slide`,
@@ -4034,10 +3982,8 @@
4034
3982
  };
4035
3983
  }
4036
3984
  const style2 = {};
4037
- if (rootRect.height)
4038
- style2.height = rootRect.height;
4039
- if (rootRect.width)
4040
- style2.width = rootRect.width;
3985
+ if (rootRect.height) style2.height = rootRect.height;
3986
+ if (rootRect.width) style2.width = rootRect.width;
4041
3987
  style2.transform = `translate3d(0, ${transform}px, 0)`;
4042
3988
  style2[position] = threshold;
4043
3989
  style2.zIndex = zIndex;
@@ -4241,8 +4187,7 @@
4241
4187
  const query = Taro.createSelectorQuery();
4242
4188
  query.selectAll(`.${className} .nut-elevator-item-${i}`).boundingClientRect();
4243
4189
  query.exec((res) => {
4244
- if (res[0][0])
4245
- height2 += res[0][0].height;
4190
+ if (res[0][0]) height2 += res[0][0].height;
4246
4191
  state.current.listHeight.push(height2);
4247
4192
  });
4248
4193
  }
@@ -4317,8 +4262,7 @@
4317
4262
  if (sticky && scrollTop2 !== scrollY) {
4318
4263
  setScrollY(Math.floor(scrollTop2) > 0 ? 1 : 0);
4319
4264
  }
4320
- if (scrolling.current)
4321
- return;
4265
+ if (scrolling.current) return;
4322
4266
  for (let i = 0; i < listHeight.length - 1; i++) {
4323
4267
  const height1 = listHeight[i];
4324
4268
  const height2 = listHeight[i + 1];
@@ -4748,7 +4692,7 @@
4748
4692
  };
4749
4693
  const renderPop = () => {
4750
4694
  return /* @__PURE__ */ React.createElement(
4751
- CSSTransition$1,
4695
+ CSSTransition,
4752
4696
  {
4753
4697
  classNames: transitionName,
4754
4698
  mountOnEnter: true,
@@ -4990,24 +4934,20 @@
4990
4934
  [`${classPrefix2}-${fill}`]: fill === "outline"
4991
4935
  });
4992
4936
  function content() {
4993
- if (dot || typeof value === "object" || value === 0)
4994
- return null;
4937
+ if (dot || typeof value === "object" || value === 0) return null;
4995
4938
  if (typeof value === "number" && typeof max === "number") {
4996
4939
  return max < value ? `${max}+` : `${value}`;
4997
4940
  }
4998
4941
  return value;
4999
4942
  }
5000
4943
  function isIcon() {
5001
- if (typeof value === "object" && value)
5002
- return value;
4944
+ if (typeof value === "object" && value) return value;
5003
4945
  }
5004
4946
  function isNumber() {
5005
- if (typeof value === "number" && value)
5006
- return value;
4947
+ if (typeof value === "number" && value) return value;
5007
4948
  }
5008
4949
  function isString() {
5009
- if (typeof value === "string" && value)
5010
- return value;
4950
+ if (typeof value === "string" && value) return value;
5011
4951
  }
5012
4952
  const contentClasses = classNames(
5013
4953
  { [`${classPrefix2}-dot`]: dot },
@@ -5160,8 +5100,7 @@
5160
5100
  }
5161
5101
  },
5162
5102
  React.Children.map(children, (child, index) => {
5163
- if (!React.isValidElement(child))
5164
- return null;
5103
+ if (!React.isValidElement(child)) return null;
5165
5104
  return React.cloneElement(child, { ...child.props, index });
5166
5105
  })
5167
5106
  )),
@@ -5349,8 +5288,7 @@
5349
5288
  navRectRef.current = navRect;
5350
5289
  titleRectRef.current = titleRects;
5351
5290
  const titleRect = titleRectRef.current[index];
5352
- if (!titleRect)
5353
- return;
5291
+ if (!titleRect) return;
5354
5292
  let to = 0;
5355
5293
  if (direction === "vertical") {
5356
5294
  const top = titleRects.slice(0, index).reduce((prev, curr) => prev + curr.height, 0);
@@ -6376,9 +6314,6 @@
6376
6314
  };
6377
6315
  const getDaysStatus = (type2, year, month) => {
6378
6316
  let days = Utils.getMonthDays(`${year}`, `${month}`);
6379
- if (type2 === "prev" && days >= 7) {
6380
- days -= 7;
6381
- }
6382
6317
  return Array.from(Array(days), (v, k2) => {
6383
6318
  return {
6384
6319
  day: k2 + 1,
@@ -6397,7 +6332,7 @@
6397
6332
  }
6398
6333
  let days = Utils.getMonthPreDay(+year, +month);
6399
6334
  days -= firstDayOfWeek;
6400
- if (type2 === "prev" && days >= 7) {
6335
+ if (days >= 7) {
6401
6336
  days -= 7;
6402
6337
  }
6403
6338
  const preDates = Utils.getMonthDays(`${preYear}`, `${preMonth}`);
@@ -6574,7 +6509,7 @@
6574
6509
  cssHeight,
6575
6510
  scrollTop: scrollTop2
6576
6511
  };
6577
- if (type22 === "next") {
6512
+ {
6578
6513
  if (!endDates || !Utils.compareDate(
6579
6514
  `${endDates[0]}/${endDates[1]}/${Utils.getMonthDays(
6580
6515
  endDates[0],
@@ -6584,11 +6519,6 @@
6584
6519
  )) {
6585
6520
  monthData.push(monthInfo);
6586
6521
  }
6587
- } else if (!startDates || !Utils.compareDate(
6588
- `${curData[0]}/${curData[1]}/${curData[2]}`,
6589
- `${startDates[0]}/${startDates[1]}/01`
6590
- )) {
6591
- monthData.unshift(monthInfo);
6592
6522
  }
6593
6523
  date2 = getCurrMonthData("next", y, m2);
6594
6524
  } while (i++ < monthNum);
@@ -6597,8 +6527,7 @@
6597
6527
  const setReachedYearMonthInfo = (current) => {
6598
6528
  const currentMonthsData = monthsData[current];
6599
6529
  const [year, month] = currentMonthsData.curData;
6600
- if (currentMonthsData.title === yearMonthTitle)
6601
- return;
6530
+ if (currentMonthsData.title === yearMonthTitle) return;
6602
6531
  onPageChange && onPageChange([year, month, `${year}-${month}`]);
6603
6532
  setYearMonthTitle(currentMonthsData.title);
6604
6533
  };
@@ -6789,7 +6718,7 @@
6789
6718
  };
6790
6719
  const initData = () => {
6791
6720
  const monthNum = getMonthNum();
6792
- getMonthData(startDates, monthNum, "next");
6721
+ getMonthData(startDates, monthNum);
6793
6722
  const current = renderCurrentDate();
6794
6723
  setDefaultRange(monthNum, current);
6795
6724
  requestAniFrameFunc(current, monthNum);
@@ -6849,8 +6778,7 @@
6849
6778
  const scrollTop2 = e2.target.scrollTop;
6850
6779
  Taro.getEnv() === "WEB" && setScrollTop(scrollTop2);
6851
6780
  let current = Math.floor(scrollTop2 / avgHeight);
6852
- if (!monthsData[current + 1])
6853
- return;
6781
+ if (!monthsData[current + 1]) return;
6854
6782
  const nextTop = monthsData[current + 1].scrollTop;
6855
6783
  const nextHeight = monthsData[current + 1].cssHeight;
6856
6784
  if (current === 0) {
@@ -7596,7 +7524,6 @@
7596
7524
  });
7597
7525
  CalendarCard.displayName = "NutCalendarCard";
7598
7526
  const CheckboxGroupContext = React.createContext(null);
7599
- const Context$1 = CheckboxGroupContext;
7600
7527
  const defaultProps$10 = {
7601
7528
  max: void 0,
7602
7529
  min: void 0,
@@ -7674,7 +7601,7 @@
7674
7601
  });
7675
7602
  }, [options, max, min]);
7676
7603
  return /* @__PURE__ */ React.createElement(
7677
- Context$1.Provider,
7604
+ CheckboxGroupContext.Provider,
7678
7605
  {
7679
7606
  value: {
7680
7607
  labelPosition: labelPosition || "right",
@@ -7754,7 +7681,7 @@
7754
7681
  ...others
7755
7682
  } = props;
7756
7683
  let { labelPosition, ...rest } = others;
7757
- const ctx = React.useContext(Context$1);
7684
+ const ctx = React.useContext(CheckboxGroupContext);
7758
7685
  let [innerChecked, setChecked] = usePropsValue({
7759
7686
  value: checked,
7760
7687
  defaultValue: defaultChecked,
@@ -7776,12 +7703,9 @@
7776
7703
  innerDisabled = ctx.disabled !== void 0 ? ctx.disabled : innerDisabled;
7777
7704
  innerChecked = ctx.value.includes(value);
7778
7705
  setChecked = (checked2) => {
7779
- if (ctx.disabled)
7780
- return;
7781
- if (checked2)
7782
- ctx.check(value);
7783
- if (!checked2)
7784
- ctx.uncheck(value);
7706
+ if (ctx.disabled) return;
7707
+ if (checked2) ctx.check(value);
7708
+ if (!checked2) ctx.uncheck(value);
7785
7709
  };
7786
7710
  }
7787
7711
  const renderIcon = () => {
@@ -7833,8 +7757,7 @@
7833
7757
  );
7834
7758
  };
7835
7759
  const handleClick = () => {
7836
- if (disabled)
7837
- return;
7760
+ if (disabled) return;
7838
7761
  const latestChecked = !innerChecked;
7839
7762
  setChecked(latestChecked);
7840
7763
  };
@@ -7962,14 +7885,13 @@
7962
7885
  touch.move(event);
7963
7886
  if (touch.isVertical) {
7964
7887
  moving.current = true;
7965
- preventDefault2(event, true);
7888
+ preventDefault2(event);
7966
7889
  }
7967
7890
  const move = touch.deltaY.current - startY;
7968
7891
  setMove(move);
7969
7892
  };
7970
7893
  const touchEnd = () => {
7971
- if (!moving.current)
7972
- return;
7894
+ if (!moving.current) return;
7973
7895
  const move = touch.deltaY.current - startY;
7974
7896
  const moveTime = Date.now() - startTime;
7975
7897
  if (moveTime <= INERTIA_TIME && Math.abs(move) > INERTIA_DISTANCE) {
@@ -7989,7 +7911,7 @@
7989
7911
  return nDistance;
7990
7912
  };
7991
7913
  const modifyStatus = (type2, val) => {
7992
- const value = val || defaultValue;
7914
+ const value = defaultValue;
7993
7915
  let index = -1;
7994
7916
  if (value) {
7995
7917
  options.some((item, idx) => {
@@ -8008,7 +7930,6 @@
8008
7930
  }
8009
7931
  setCurrIndex(index === -1 ? 1 : index + 1);
8010
7932
  const move = index === -1 ? 0 : index * lineSpacing.current;
8011
- type2 && setChooseValue(-move);
8012
7933
  setMove(-move);
8013
7934
  };
8014
7935
  const stopMomentum = () => {
@@ -8018,7 +7939,7 @@
8018
7939
  };
8019
7940
  const preventDefault2 = (event, isStopPropagation) => {
8020
7941
  event.preventDefault();
8021
- if (isStopPropagation) {
7942
+ {
8022
7943
  event.stopPropagation();
8023
7944
  }
8024
7945
  };
@@ -8041,7 +7962,7 @@
8041
7962
  React.useEffect(() => {
8042
7963
  setScrollDistance(0);
8043
7964
  transformY.current = 0;
8044
- modifyStatus(false);
7965
+ modifyStatus();
8045
7966
  return () => {
8046
7967
  clearTimeout(timer);
8047
7968
  };
@@ -8058,7 +7979,7 @@
8058
7979
  moving: moving.current
8059
7980
  }));
8060
7981
  React.useEffect(() => {
8061
- const eventOptions = passiveSupported ? { passive: false, once: true } : false;
7982
+ const eventOptions = false;
8062
7983
  const element = pickerPanelRef.current;
8063
7984
  element.addEventListener("touchstart", touchStart, eventOptions);
8064
7985
  element.addEventListener("touchmove", touchMove, eventOptions);
@@ -8109,13 +8030,11 @@
8109
8030
  ), /* @__PURE__ */ React.createElement("div", { className: "nut-picker-mask" }), /* @__PURE__ */ React.createElement("div", { className: "nut-picker-indicator", ref: listRef }));
8110
8031
  };
8111
8032
  const PickerPanel = React.forwardRef(InternalPickerPanel);
8112
- const PickerPanel$1 = PickerPanel;
8113
8033
  function useRefs() {
8114
8034
  const refs = React.useRef([]);
8115
8035
  const setRefs = React.useCallback(
8116
8036
  (index) => (el) => {
8117
- if (el)
8118
- refs.current[index] = el;
8037
+ if (el) refs.current[index] = el;
8119
8038
  },
8120
8039
  []
8121
8040
  );
@@ -8204,8 +8123,7 @@
8204
8123
  const options2 = columnOptions.children;
8205
8124
  const value = values[columnIndex2];
8206
8125
  let index = options2.findIndex((columnItem) => columnItem.value === value);
8207
- if (index === -1)
8208
- index = 0;
8126
+ if (index === -1) index = 0;
8209
8127
  columnOptions = columnOptions.children[index];
8210
8128
  columnIndex2++;
8211
8129
  formatted.push(options2);
@@ -8338,8 +8256,7 @@
8338
8256
  const confirm = () => {
8339
8257
  let moving = false;
8340
8258
  refs.forEach((ref2) => {
8341
- if (ref2.moving)
8342
- moving = true;
8259
+ if (ref2.moving) moving = true;
8343
8260
  ref2.stopMomentum();
8344
8261
  });
8345
8262
  if (moving) {
@@ -8417,7 +8334,7 @@
8417
8334
  },
8418
8335
  /* @__PURE__ */ React.createElement(components.View, { className: classes, style, ...rest, catchMove: true }, renderTitleBar(), typeof children !== "function" && children, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-panel`, ref: pickerRef }, Taro.getEnv() === "WEB" ? columnsList == null ? void 0 : columnsList.map((item, index) => {
8419
8336
  return /* @__PURE__ */ React.createElement(
8420
- PickerPanel$1,
8337
+ PickerPanel,
8421
8338
  {
8422
8339
  ref: setRefs(index),
8423
8340
  defaultValue: innerValue == null ? void 0 : innerValue[index],
@@ -8458,7 +8375,6 @@
8458
8375
  ));
8459
8376
  };
8460
8377
  const Picker = React.forwardRef(InternalPicker);
8461
- const Picker$1 = Picker;
8462
8378
  const isDate = (val) => {
8463
8379
  return Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
8464
8380
  };
@@ -8572,8 +8488,7 @@
8572
8488
  };
8573
8489
  const ranges = () => {
8574
8490
  const selected = new Date(selectedDate);
8575
- if (!selected)
8576
- return [];
8491
+ if (!selected) return [];
8577
8492
  const { maxYear, maxDate, maxMonth, maxHour, maxMinute, maxSeconds } = getBoundary("max", selected);
8578
8493
  const { minYear, minDate, minMonth, minHour, minMinute, minSeconds } = getBoundary("min", selected);
8579
8494
  const result = [
@@ -8732,8 +8647,7 @@
8732
8647
  };
8733
8648
  const getDateIndex = (type22) => {
8734
8649
  const date2 = new Date(selectedDate);
8735
- if (!selectedDate)
8736
- return 0;
8650
+ if (!selectedDate) return 0;
8737
8651
  if (type22 === "year") {
8738
8652
  return date2.getFullYear();
8739
8653
  }
@@ -8778,7 +8692,7 @@
8778
8692
  ...rest
8779
8693
  },
8780
8694
  pickerOptions.length && /* @__PURE__ */ React.createElement(
8781
- Picker$1,
8695
+ Picker,
8782
8696
  {
8783
8697
  ...pickerProps,
8784
8698
  title,
@@ -8830,12 +8744,9 @@
8830
8744
  return _setPrototypeOf(o, p);
8831
8745
  }
8832
8746
  function _isNativeReflectConstruct() {
8833
- if (typeof Reflect === "undefined" || !Reflect.construct)
8834
- return false;
8835
- if (Reflect.construct.sham)
8836
- return false;
8837
- if (typeof Proxy === "function")
8838
- return true;
8747
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
8748
+ if (Reflect.construct.sham) return false;
8749
+ if (typeof Proxy === "function") return true;
8839
8750
  try {
8840
8751
  Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
8841
8752
  }));
@@ -8853,8 +8764,7 @@
8853
8764
  a2.push.apply(a2, args2);
8854
8765
  var Constructor = Function.bind.apply(Parent2, a2);
8855
8766
  var instance = new Constructor();
8856
- if (Class2)
8857
- _setPrototypeOf(instance, Class2.prototype);
8767
+ if (Class2) _setPrototypeOf(instance, Class2.prototype);
8858
8768
  return instance;
8859
8769
  };
8860
8770
  }
@@ -8866,14 +8776,12 @@
8866
8776
  function _wrapNativeSuper(Class) {
8867
8777
  var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
8868
8778
  _wrapNativeSuper = function _wrapNativeSuper2(Class2) {
8869
- if (Class2 === null || !_isNativeFunction(Class2))
8870
- return Class2;
8779
+ if (Class2 === null || !_isNativeFunction(Class2)) return Class2;
8871
8780
  if (typeof Class2 !== "function") {
8872
8781
  throw new TypeError("Super expression must either be null or a function");
8873
8782
  }
8874
8783
  if (typeof _cache !== "undefined") {
8875
- if (_cache.has(Class2))
8876
- return _cache.get(Class2);
8784
+ if (_cache.has(Class2)) return _cache.get(Class2);
8877
8785
  _cache.set(Class2, Wrapper);
8878
8786
  }
8879
8787
  function Wrapper() {
@@ -8906,8 +8814,7 @@
8906
8814
  };
8907
8815
  }
8908
8816
  function convertFieldsError(errors) {
8909
- if (!errors || !errors.length)
8910
- return null;
8817
+ if (!errors || !errors.length) return null;
8911
8818
  var fields = {};
8912
8819
  errors.forEach(function(error) {
8913
8820
  var field = error.field;
@@ -10585,10 +10492,8 @@
10585
10492
  return res;
10586
10493
  };
10587
10494
  const format2 = (value2) => {
10588
- if (value2 === null)
10589
- return "";
10590
- if (typeof value2 === "string")
10591
- value2 = parseFloat(value2);
10495
+ if (value2 === null) return "";
10496
+ if (typeof value2 === "string") value2 = parseFloat(value2);
10592
10497
  const fixedValue = bound2(value2, Number(min), Number(max));
10593
10498
  if (formatter) {
10594
10499
  return formatter(fixedValue);
@@ -10632,22 +10537,18 @@
10632
10537
  }
10633
10538
  };
10634
10539
  const handleReduce = (e2) => {
10635
- if (disabled)
10636
- return;
10540
+ if (disabled) return;
10637
10541
  onMinus == null ? void 0 : onMinus(e2);
10638
10542
  update(true, e2);
10639
10543
  };
10640
10544
  const handlePlus = (e2) => {
10641
- if (disabled)
10642
- return;
10545
+ if (disabled) return;
10643
10546
  onPlus == null ? void 0 : onPlus(e2);
10644
10547
  update(false, e2);
10645
10548
  };
10646
10549
  const parseValue = (text) => {
10647
- if (text === "")
10648
- return null;
10649
- if (text === "-")
10650
- return null;
10550
+ if (text === "") return null;
10551
+ if (text === "-") return null;
10651
10552
  return text;
10652
10553
  };
10653
10554
  const handleInputChange = (e2) => {
@@ -10764,8 +10665,7 @@
10764
10665
  }, [showPopup]);
10765
10666
  const windowHeight = React.useMemo(() => Taro.getSystemInfoSync().windowHeight, []);
10766
10667
  const updateItemOffset = React.useCallback(() => {
10767
- if (!parent.lockScroll)
10768
- return;
10668
+ if (!parent.lockScroll) return;
10769
10669
  const p = parent.menuRef.current;
10770
10670
  getRectByTaro(p).then((rect) => {
10771
10671
  if (rect) {
@@ -10814,8 +10714,7 @@
10814
10714
  }, 100);
10815
10715
  };
10816
10716
  const isShow = () => {
10817
- if (showPopup)
10818
- return {};
10717
+ if (showPopup) return {};
10819
10718
  return { display: "none" };
10820
10719
  };
10821
10720
  const getPosition = () => {
@@ -10879,7 +10778,7 @@
10879
10778
  }
10880
10779
  },
10881
10780
  /* @__PURE__ */ React.createElement(
10882
- CSSTransition$1,
10781
+ CSSTransition,
10883
10782
  {
10884
10783
  in: showPopup,
10885
10784
  timeout: 100,
@@ -11021,10 +10920,8 @@
11021
10920
  (option) => option.value === (value !== void 0 ? value : defaultValue)
11022
10921
  );
11023
10922
  const finallyTitle = () => {
11024
- if (title)
11025
- return title;
11026
- if (menuItemTitle && menuItemTitle[index])
11027
- return menuItemTitle[index];
10923
+ if (title) return title;
10924
+ if (menuItemTitle && menuItemTitle[index]) return menuItemTitle[index];
11028
10925
  if (selected && selected.length && selected[0].text)
11029
10926
  return selected[0].text;
11030
10927
  return "";
@@ -11043,8 +10940,7 @@
11043
10940
  style: { color: showMenuItem[index] ? activeColor : "" },
11044
10941
  key: index,
11045
10942
  onClick: () => {
11046
- if ((!options || !options.length) && !child.props.children)
11047
- return;
10943
+ if ((!options || !options.length) && !child.props.children) return;
11048
10944
  !disabled && toggleMenuItem(index);
11049
10945
  }
11050
10946
  },
@@ -11112,8 +11008,7 @@
11112
11008
  { id: "0", type: "num" },
11113
11009
  { id: "delete", type: "delete" }
11114
11010
  ];
11115
- if (!custom)
11116
- return customKeys;
11011
+ if (!custom) return customKeys;
11117
11012
  if (custom.length > 0) {
11118
11013
  customKeys[0] = { id: custom[0], type: "custom" };
11119
11014
  }
@@ -11405,8 +11300,7 @@
11405
11300
  return renderByShape(context && context.shape ? context.shape : shape);
11406
11301
  };
11407
11302
  const handleClick = (e2) => {
11408
- if (disabled || checkedStatement)
11409
- return;
11303
+ if (disabled || checkedStatement) return;
11410
11304
  setCheckedStatement(!checkedStatement);
11411
11305
  };
11412
11306
  return /* @__PURE__ */ React.createElement(
@@ -11650,8 +11544,7 @@
11650
11544
  touch.move(event);
11651
11545
  setDragStatus("draging");
11652
11546
  const rect = await getRectByTaro(root2.current);
11653
- if (!rect)
11654
- return;
11547
+ if (!rect) return;
11655
11548
  let delta = touch.deltaX.current;
11656
11549
  let total = rect.width;
11657
11550
  let diff = delta / total * scope();
@@ -11797,8 +11690,7 @@
11797
11690
  const onClick = (e2, index) => {
11798
11691
  e2.preventDefault();
11799
11692
  e2.stopPropagation();
11800
- if (disabled || readOnly)
11801
- return;
11693
+ if (disabled || readOnly) return;
11802
11694
  let value2 = 0;
11803
11695
  if (!(index === 1 && score === index)) {
11804
11696
  value2 = index;
@@ -11978,8 +11870,7 @@
11978
11870
  searchSelf && searchSelf.focus();
11979
11871
  };
11980
11872
  const change = (event) => {
11981
- if (value === event.target.value)
11982
- return;
11873
+ if (value === event.target.value) return;
11983
11874
  onChange && (onChange == null ? void 0 : onChange(event.target.value, event));
11984
11875
  setValue(event.target.value);
11985
11876
  event.target.value === "" && forceFocus();
@@ -12024,23 +11915,19 @@
12024
11915
  onInputClick && onInputClick(e2);
12025
11916
  };
12026
11917
  const renderLeftIn = () => {
12027
- if (!leftIn)
12028
- return null;
11918
+ if (!leftIn) return null;
12029
11919
  return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-leftin ${classPrefix2}-icon` }, leftIn);
12030
11920
  };
12031
11921
  const renderLeft = () => {
12032
- if (!backable && !left2)
12033
- return null;
11922
+ if (!backable && !left2) return null;
12034
11923
  return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-left` }, backable ? /* @__PURE__ */ React.createElement(g$5, { size: "16" }) : left2);
12035
11924
  };
12036
11925
  const renderRightIn = () => {
12037
- if (!rightIn)
12038
- return null;
11926
+ if (!rightIn) return null;
12039
11927
  return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-rightin ${classPrefix2}-icon` }, rightIn);
12040
11928
  };
12041
11929
  const renderRight = () => {
12042
- if (!right2)
12043
- return null;
11930
+ if (!right2) return null;
12044
11931
  return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right` }, right2);
12045
11932
  };
12046
11933
  const handleClear = () => {
@@ -12394,8 +12281,7 @@
12394
12281
  return `${classPrefix2} ${value ? "nut-switch-open" : "nut-switch-close"} ${disabled ? `${classPrefix2}-disabled` : ""} ${`${classPrefix2}-base`} ${className}`;
12395
12282
  };
12396
12283
  const onClick = (event) => {
12397
- if (disabled)
12398
- return;
12284
+ if (disabled) return;
12399
12285
  onChange && onChange(!value, event);
12400
12286
  setValue(!value);
12401
12287
  };
@@ -12465,17 +12351,13 @@
12465
12351
  }
12466
12352
  };
12467
12353
  const handleFocus = (event) => {
12468
- if (disabled)
12469
- return;
12470
- if (readOnly)
12471
- return;
12354
+ if (disabled) return;
12355
+ if (readOnly) return;
12472
12356
  onFocus && onFocus(event);
12473
12357
  };
12474
12358
  const handleBlur = (event) => {
12475
- if (disabled)
12476
- return;
12477
- if (readOnly)
12478
- return;
12359
+ if (disabled) return;
12360
+ if (readOnly) return;
12479
12361
  onBlur && onBlur(event);
12480
12362
  };
12481
12363
  return /* @__PURE__ */ React.createElement(
@@ -13503,14 +13385,11 @@
13503
13385
  );
13504
13386
  const refObject = useLockScrollTaro(!!(visible && lockScroll));
13505
13387
  const renderFooter = () => {
13506
- if (footer === null)
13507
- return "";
13388
+ if (footer === null) return "";
13508
13389
  const handleCancel = (e2) => {
13509
13390
  e2.stopPropagation();
13510
- if (!(beforeCancel == null ? void 0 : beforeCancel()))
13511
- return;
13512
- if (!(beforeClose == null ? void 0 : beforeClose()))
13513
- return;
13391
+ if (!(beforeCancel == null ? void 0 : beforeCancel())) return;
13392
+ if (!(beforeClose == null ? void 0 : beforeClose())) return;
13514
13393
  onClose == null ? void 0 : onClose();
13515
13394
  onCancel == null ? void 0 : onCancel();
13516
13395
  };
@@ -13548,13 +13427,10 @@
13548
13427
  ));
13549
13428
  };
13550
13429
  const renderCloseIcon = () => {
13551
- if (!closeIcon)
13552
- return null;
13430
+ if (!closeIcon) return null;
13553
13431
  const handleCancel = () => {
13554
- if (!(beforeCancel == null ? void 0 : beforeCancel()))
13555
- return;
13556
- if (!(beforeClose == null ? void 0 : beforeClose()))
13557
- return;
13432
+ if (!(beforeCancel == null ? void 0 : beforeCancel())) return;
13433
+ if (!(beforeClose == null ? void 0 : beforeClose())) return;
13558
13434
  onClose == null ? void 0 : onClose();
13559
13435
  onCancel == null ? void 0 : onCancel();
13560
13436
  };
@@ -13588,7 +13464,7 @@
13588
13464
  className: classNames("nut-dialog-overlay")
13589
13465
  }
13590
13466
  ) : null, /* @__PURE__ */ React.createElement(
13591
- CSSTransition$1,
13467
+ CSSTransition,
13592
13468
  {
13593
13469
  in: visible,
13594
13470
  timeout: 300,
@@ -14060,8 +13936,7 @@
14060
13936
  const { childs, childCount } = React.useMemo(() => {
14061
13937
  let childCount2 = 0;
14062
13938
  const childs2 = React.Children.map(children, (child) => {
14063
- if (!React.isValidElement(child))
14064
- return null;
13939
+ if (!React.isValidElement(child)) return null;
14065
13940
  childCount2++;
14066
13941
  return child;
14067
13942
  });
@@ -14184,8 +14059,7 @@
14184
14059
  marginTop: animate ? `-${height}px` : ""
14185
14060
  };
14186
14061
  const init = (active2 = 0) => {
14187
- if (!(container == null ? void 0 : container.current))
14188
- return;
14062
+ if (!(container == null ? void 0 : container.current)) return;
14189
14063
  setTimeout(async () => {
14190
14064
  const rects = await getRectByTaro(container == null ? void 0 : container.current);
14191
14065
  const _active = Math.max(Math.min(childCount - 1, active2), 0);
@@ -14223,8 +14097,7 @@
14223
14097
  swiperRef.current.autoplayTimer = null;
14224
14098
  };
14225
14099
  const autoplay = () => {
14226
- if (childCount <= 1)
14227
- return;
14100
+ if (childCount <= 1) return;
14228
14101
  stopAutoPlay();
14229
14102
  swiperRef.current.autoplayTimer = setTimeout(
14230
14103
  () => {
@@ -14235,8 +14108,7 @@
14235
14108
  );
14236
14109
  };
14237
14110
  const move = ({ pace = 0, offset: offset2 = 0 }) => {
14238
- if (childCount <= 1)
14239
- return;
14111
+ if (childCount <= 1) return;
14240
14112
  const targetActive = getActive(pace);
14241
14113
  const targetOffset = getOffset(targetActive, offset2);
14242
14114
  if (Array.isArray(children) && children[0] && targetOffset !== minOffset) {
@@ -14471,7 +14343,7 @@
14471
14343
  [`${classPrefix$d}-${type2}`]: true
14472
14344
  });
14473
14345
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
14474
- CSSTransition$1,
14346
+ CSSTransition,
14475
14347
  {
14476
14348
  in: showNotify,
14477
14349
  timeout: 300,
@@ -14787,10 +14659,10 @@
14787
14659
  Popover.displayName = "NutPopover";
14788
14660
  function bound(position, min, max) {
14789
14661
  let ret = position;
14790
- if (min !== void 0) {
14662
+ {
14791
14663
  ret = Math.max(position, min);
14792
14664
  }
14793
- if (max !== void 0) {
14665
+ {
14794
14666
  ret = Math.min(ret, max);
14795
14667
  }
14796
14668
  return ret;
@@ -14799,8 +14671,7 @@
14799
14671
  return distance * dimension * constant / (dimension + constant * distance);
14800
14672
  }
14801
14673
  function rubberbandIfOutOfBounds(position, min, max, dimension, constant = 0.15) {
14802
- if (constant === 0)
14803
- return bound(position, min, max);
14674
+ if (constant === 0) return bound(position, min, max);
14804
14675
  if (position < min)
14805
14676
  return -rubberband(min - position, dimension, constant) + min;
14806
14677
  if (position > max)
@@ -14862,14 +14733,10 @@
14862
14733
  if (props.renderText) {
14863
14734
  return (_a = props.renderText) == null ? void 0 : _a.call(props, status);
14864
14735
  }
14865
- if (status === "pulling")
14866
- return props.pullingText;
14867
- if (status === "canRelease")
14868
- return props.canReleaseText;
14869
- if (status === "refreshing")
14870
- return props.refreshingText;
14871
- if (status === "complete")
14872
- return props.completeText;
14736
+ if (status === "pulling") return props.pullingText;
14737
+ if (status === "canRelease") return props.canReleaseText;
14738
+ if (status === "refreshing") return props.refreshingText;
14739
+ if (status === "complete") return props.completeText;
14873
14740
  return "";
14874
14741
  };
14875
14742
  const handleTouchStart = (e2) => {
@@ -14879,8 +14746,7 @@
14879
14746
  if (props.scrollTop > 0) {
14880
14747
  return;
14881
14748
  }
14882
- if (status === "refreshing" || status === "complete")
14883
- return;
14749
+ if (status === "refreshing" || status === "complete") return;
14884
14750
  touch.move(e2);
14885
14751
  if (touch.isVertical()) {
14886
14752
  pullingRef.current = true;
@@ -15161,7 +15027,7 @@
15161
15027
  if (typeof event.cancelable !== "boolean" || event.cancelable) {
15162
15028
  event.preventDefault();
15163
15029
  }
15164
- if (isStopPropagation) {
15030
+ {
15165
15031
  event.stopPropagation();
15166
15032
  }
15167
15033
  }
@@ -15233,7 +15099,7 @@
15233
15099
  const newState = { ...state, dragging: true };
15234
15100
  const isEdge = !opened || touch.deltaX.current * startOffset.current < 0;
15235
15101
  if (isEdge) {
15236
- preventDefault(event, true);
15102
+ preventDefault(event);
15237
15103
  }
15238
15104
  newState.offset = rangeCalculation(
15239
15105
  touch.deltaX.current + startOffset.current,
@@ -16248,8 +16114,7 @@
16248
16114
  // 设置了 startTime 时,与 date.now() 的差异
16249
16115
  });
16250
16116
  const getTimeStamp = (timeStr) => {
16251
- if (!timeStr)
16252
- return Date.now();
16117
+ if (!timeStr) return Date.now();
16253
16118
  let t = timeStr;
16254
16119
  t = Number(t) > 0 ? +t : t.toString().replace(/-/g, "/");
16255
16120
  return new Date(t).getTime();
@@ -16261,8 +16126,7 @@
16261
16126
  stateRef.current.handleEndTime = endTime;
16262
16127
  stateRef.current.diffTime = Date.now() - getTimeStamp(startTime);
16263
16128
  }
16264
- if (!stateRef.current.counting)
16265
- stateRef.current.counting = true;
16129
+ if (!stateRef.current.counting) stateRef.current.counting = true;
16266
16130
  tick();
16267
16131
  };
16268
16132
  const tick = () => {
@@ -16531,8 +16395,7 @@
16531
16395
  ]
16532
16396
  },
16533
16397
  (res) => {
16534
- if (!res)
16535
- return;
16398
+ if (!res) return;
16536
16399
  lineH.current = pxToNumber(
16537
16400
  res.lineHeight === "normal" ? lineHeight : res.lineHeight
16538
16401
  );
@@ -16656,8 +16519,7 @@
16656
16519
  return content.slice(cutoff, end);
16657
16520
  };
16658
16521
  const pxToNumber = (value) => {
16659
- if (!value)
16660
- return 0;
16522
+ if (!value) return 0;
16661
16523
  const match = value.match(/^\d*(\.\d*)?/);
16662
16524
  return match ? Number(match[0]) : 0;
16663
16525
  };
@@ -16830,8 +16692,7 @@
16830
16692
  setCurrent(defaultValue);
16831
16693
  }, [defaultValue]);
16832
16694
  const renderIndicator = () => {
16833
- if (React.isValidElement(indicator))
16834
- return indicator;
16695
+ if (React.isValidElement(indicator)) return indicator;
16835
16696
  if (indicator) {
16836
16697
  return /* @__PURE__ */ React.createElement(
16837
16698
  "div",
@@ -17271,8 +17132,7 @@
17271
17132
  return items;
17272
17133
  }, [currentPage, itemSize, pageCount]);
17273
17134
  const handleSelectPage = (curPage) => {
17274
- if (curPage > pageCount || curPage < 1)
17275
- return;
17135
+ if (curPage > pageCount || curPage < 1) return;
17276
17136
  setCurrentPage(curPage);
17277
17137
  };
17278
17138
  return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), ...rest }, (mode === "multi" || mode === "simple") && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
@@ -17431,8 +17291,7 @@
17431
17291
  const dot = parent.propSteps.dot;
17432
17292
  const getCurrentStatus = () => {
17433
17293
  const index = value;
17434
- if (index < +parent.propSteps.value)
17435
- return "finish";
17294
+ if (index < +parent.propSteps.value) return "finish";
17436
17295
  return index === +parent.propSteps.value ? "process" : "wait";
17437
17296
  };
17438
17297
  const handleClickStep = () => {
@@ -17663,6 +17522,10 @@
17663
17522
  });
17664
17523
  };
17665
17524
  const renderBodyTds = (item, rowIndex) => {
17525
+ const { rowRender } = item;
17526
+ if (rowRender && typeof rowRender === "function") {
17527
+ return rowRender(item, rowIndex);
17528
+ }
17666
17529
  return sortDataItem().map(([value, render]) => {
17667
17530
  return /* @__PURE__ */ React.createElement(
17668
17531
  "div",
@@ -18087,22 +17950,13 @@
18087
17950
  Array.from(items).forEach((item) => {
18088
17951
  const index = Number(item.getAttribute("data-index"));
18089
17952
  const styleVal = item.getAttribute("style");
18090
- if (styleVal && styleVal.includes("none"))
18091
- return;
17953
+ if (styleVal && styleVal.includes("none")) return;
18092
17954
  let nowSize = item.getBoundingClientRect()[sizeKey];
18093
- if (margin)
18094
- nowSize += margin;
17955
+ if (margin) nowSize += margin;
18095
17956
  const oldSize = positions[index][sizeKey];
18096
17957
  const dValue = oldSize - nowSize;
18097
17958
  if (dValue) {
18098
- if (sizeKey === "width") {
18099
- newPos[index].right -= dValue;
18100
- newPos[index][sizeKey] = nowSize;
18101
- for (let k2 = index + 1; k2 < positions.length; k2++) {
18102
- newPos[k2].left = positions[k2 - 1].right;
18103
- newPos[k2].right -= dValue;
18104
- }
18105
- } else if (sizeKey === "height") {
17959
+ {
18106
17960
  newPos[index].bottom -= dValue;
18107
17961
  newPos[index][sizeKey] = nowSize;
18108
17962
  for (let k2 = index + 1; k2 < positions.length; k2++) {
@@ -18168,8 +18022,7 @@
18168
18022
  });
18169
18023
  }, [itemHeight, overscan, offSetSize]);
18170
18024
  React.useEffect(() => {
18171
- if (containerHeight)
18172
- return;
18025
+ if (containerHeight) return;
18173
18026
  setOffSetSize(getContainerHeight());
18174
18027
  }, [containerHeight]);
18175
18028
  React.useEffect(() => {
@@ -18193,11 +18046,9 @@
18193
18046
  return list.slice(start.current, Math.min(end(), list.length));
18194
18047
  };
18195
18048
  const updateTotalSize = React.useCallback(() => {
18196
- if (!itemsRef.current)
18197
- return;
18049
+ if (!itemsRef.current) return;
18198
18050
  const items = itemsRef.current.children;
18199
- if (!items.length)
18200
- return;
18051
+ if (!items.length) return;
18201
18052
  updateItemSize(positions, items, "height", margin);
18202
18053
  }, [positions]);
18203
18054
  const listScroll = (e2) => {
@@ -18991,8 +18842,7 @@
18991
18842
  const canvas2dDraw = React.useCallback(
18992
18843
  (ctx) => {
18993
18844
  const { src, width, height, x, y } = drawImage;
18994
- if (!ctx || !src)
18995
- return;
18845
+ if (!ctx || !src) return;
18996
18846
  const {
18997
18847
  moveX,
18998
18848
  moveY,
@@ -19060,8 +18910,7 @@
19060
18910
  } = state;
19061
18911
  const { cropperCanvasContext } = canvasAll;
19062
18912
  const ctx = cropperCanvasContext;
19063
- if (!ctx)
19064
- return;
18913
+ if (!ctx) return;
19065
18914
  ctx.clearRect(0, 0, displayWidth, displayHeight);
19066
18915
  ctx.fillStyle = "#666";
19067
18916
  ctx.setFillStyle("#666");
@@ -19429,7 +19278,7 @@
19429
19278
  exports2.NumberKeyboard = NumberKeyboard;
19430
19279
  exports2.Overlay = Overlay;
19431
19280
  exports2.Pagination = Pagination;
19432
- exports2.Picker = Picker$1;
19281
+ exports2.Picker = Picker;
19433
19282
  exports2.Popover = Popover;
19434
19283
  exports2.Popup = Popup;
19435
19284
  exports2.Price = Price;