@nutui/nutui-react-taro 2.0.0-alpha.4 → 2.0.0-alpha.6

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 (333) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/esm/ActionSheet.js +15 -16
  3. package/dist/esm/Address.js +19 -22
  4. package/dist/esm/Animate.js +7 -8
  5. package/dist/esm/AnimatingNumbers.js +8 -9
  6. package/dist/esm/Audio.js +17 -20
  7. package/dist/esm/Avatar.js +11 -12
  8. package/dist/esm/AvatarGroup.js +8 -13
  9. package/dist/esm/BackTop.js +9 -10
  10. package/dist/esm/Badge.js +7 -8
  11. package/dist/esm/Barrage.js +9 -10
  12. package/dist/esm/Button.js +8 -9
  13. package/dist/esm/Calendar.js +18 -21
  14. package/dist/esm/CalendarItem.js +11 -14
  15. package/dist/esm/Card.js +12 -13
  16. package/dist/esm/Cascader.js +16 -19
  17. package/dist/esm/Cell.js +7 -8
  18. package/dist/esm/CellGroup.js +7 -8
  19. package/dist/esm/Checkbox.js +9 -10
  20. package/dist/esm/CheckboxGroup.js +9 -10
  21. package/dist/esm/CircleProgress.js +8 -9
  22. package/dist/esm/Col.js +8 -9
  23. package/dist/esm/Collapse.js +8 -9
  24. package/dist/esm/CollapseItem.js +7 -8
  25. package/dist/esm/ConfigProvider.js +9 -9
  26. package/dist/esm/CountDown.js +8 -11
  27. package/dist/esm/DatePicker.js +21 -24
  28. package/dist/esm/Dialog.js +13 -16
  29. package/dist/esm/Divider.js +7 -8
  30. package/dist/esm/Drag.js +7 -8
  31. package/dist/esm/Elevator.js +9 -10
  32. package/dist/esm/Ellipsis.js +9 -11
  33. package/dist/esm/Empty.js +7 -11
  34. package/dist/esm/FixedNav.js +11 -14
  35. package/dist/esm/Form.js +10 -11
  36. package/dist/esm/FormItem.js +8 -9
  37. package/dist/esm/Grid.js +8 -11
  38. package/dist/esm/GridItem.js +7 -10
  39. package/dist/esm/Image.js +7 -10
  40. package/dist/esm/ImagePreview.js +19 -20
  41. package/dist/esm/Indicator.js +6 -7
  42. package/dist/esm/Infiniteloading.js +12 -15
  43. package/dist/esm/Input.js +11 -14
  44. package/dist/esm/InputNumber.js +9 -10
  45. package/dist/esm/Layout.js +5 -6
  46. package/dist/esm/Menu.js +8 -9
  47. package/dist/esm/MenuItem.js +13 -14
  48. package/dist/esm/NavBar.js +7 -8
  49. package/dist/esm/NoticeBar.js +11 -12
  50. package/dist/esm/Notify.js +9 -10
  51. package/dist/esm/NumberKeyboard.js +16 -19
  52. package/dist/esm/Overlay.js +8 -9
  53. package/dist/esm/Pagination.js +9 -12
  54. package/dist/esm/Picker.js +20 -23
  55. package/dist/esm/Popover.js +10 -11
  56. package/dist/esm/Popup.js +12 -13
  57. package/dist/esm/Price.js +7 -8
  58. package/dist/esm/Progress.js +7 -8
  59. package/dist/esm/PullToRefresh.js +11 -14
  60. package/dist/esm/Radio.js +9 -10
  61. package/dist/esm/RadioGroup.js +9 -10
  62. package/dist/esm/Range.js +13 -16
  63. package/dist/esm/Rate.js +9 -10
  64. package/dist/esm/Row.js +8 -9
  65. package/dist/esm/SearchBar.js +11 -14
  66. package/dist/esm/ShortPassword.js +16 -19
  67. package/dist/esm/SideNavBar.js +14 -15
  68. package/dist/esm/SideNavBarItem.js +5 -6
  69. package/dist/esm/Signature.js +13 -16
  70. package/dist/esm/Skeleton.js +14 -13
  71. package/dist/esm/Step.js +10 -11
  72. package/dist/esm/Steps.js +9 -10
  73. package/dist/esm/Sticky.js +11 -12
  74. package/dist/esm/SubSideNavBar.js +6 -7
  75. package/dist/esm/Swipe.js +11 -12
  76. package/dist/esm/Swiper.js +10 -11
  77. package/dist/esm/SwiperItem.js +9 -10
  78. package/dist/esm/Switch.js +7 -8
  79. package/dist/esm/TabPane.js +6 -7
  80. package/dist/esm/Tabbar/style/index.js +1 -1
  81. package/dist/esm/Tabbar.js +10 -11
  82. package/dist/esm/TabbarItem.js +8 -9
  83. package/dist/esm/Table.js +9 -14
  84. package/dist/esm/Tabs.js +11 -12
  85. package/dist/esm/Tag.js +8 -9
  86. package/dist/esm/TextArea.js +11 -11
  87. package/dist/esm/TimeDetail.js +8 -11
  88. package/dist/esm/TimePannel.js +8 -11
  89. package/dist/esm/TimeSelect.js +18 -21
  90. package/dist/esm/Toast.js +9 -10
  91. package/dist/esm/TrendArrow.js +8 -9
  92. package/dist/esm/Uploader.js +14 -17
  93. package/dist/esm/UserContext-735db09f.js +5 -0
  94. package/dist/esm/UserContext-ab42ba7f.js +5 -0
  95. package/dist/esm/UserContext-fde5badc.js +5 -0
  96. package/dist/esm/Video.js +8 -9
  97. package/dist/esm/VirtualList.js +8 -11
  98. package/dist/esm/WaterMark.js +10 -13
  99. package/dist/esm/actionsheet.taro-d2217152.js +61 -0
  100. package/dist/esm/address.taro-1c534feb.js +470 -0
  101. package/dist/esm/animate.taro-c8b29242.js +44 -0
  102. package/dist/esm/animatingnumbers.taro-c2a52dbd.js +103 -0
  103. package/dist/esm/audio.taro-ec96ef80.js +185 -0
  104. package/dist/esm/avatar.taro-01536aff.js +100 -0
  105. package/dist/esm/avatargroup-ad5ffb46.js +34 -0
  106. package/dist/esm/backtop.taro-7de36464.js +48 -0
  107. package/dist/esm/badge.taro-872605bf.js +48 -0
  108. package/dist/esm/barrage.taro-c8cb9864.js +91 -0
  109. package/dist/esm/bem-cdccae08.js +5 -0
  110. package/dist/esm/button.taro-01eae688.js +72 -0
  111. package/dist/esm/calendar.taro-10a6cb11.js +70 -0
  112. package/dist/esm/calendaritem.taro-3e5f114e.js +732 -0
  113. package/dist/esm/can-use-dom-0e539bd3.js +4 -0
  114. package/dist/esm/card.taro-a46fdf25.js +51 -0
  115. package/dist/esm/cascader.taro-a8d2148e.js +463 -0
  116. package/dist/esm/cell.taro-4e31d1fa.js +48 -0
  117. package/dist/esm/cellgroup.taro-a790d91b.js +28 -0
  118. package/dist/esm/checkbox.taro-016074da.js +177 -0
  119. package/dist/esm/circleprogress.taro-7149e09d.js +104 -0
  120. package/dist/esm/col.taro-d6a46a7d.js +41 -0
  121. package/dist/esm/collapse.taro-3d997680.js +70 -0
  122. package/dist/esm/collapseitem-f4571575.js +76 -0
  123. package/dist/esm/configprovider.taro-25758d9f.js +462 -0
  124. package/dist/esm/context-d0fccf11.js +5 -0
  125. package/dist/esm/countdown.taro-22200811.js +210 -0
  126. package/dist/esm/datepicker.taro-3f718964.js +260 -0
  127. package/dist/esm/dialog.taro-290eb9a6.js +128 -0
  128. package/dist/esm/divider.taro-0cb5f894.js +31 -0
  129. package/dist/esm/drag.taro-48e1ff38.js +111 -0
  130. package/dist/esm/elevator.taro-bc162e4f.js +201 -0
  131. package/dist/esm/ellipsis.taro-f9688dd7.js +242 -0
  132. package/dist/esm/empty.taro-ca792f57.js +59 -0
  133. package/dist/esm/fixednav.taro-28e5f776.js +61 -0
  134. package/dist/esm/form.taro-b06754e8.js +182 -0
  135. package/dist/esm/formitem.taro-b326809d.js +108 -0
  136. package/dist/esm/get-scroll-parent-8da04f2e.js +24 -0
  137. package/dist/esm/grid.taro-fbbd8618.js +52 -0
  138. package/dist/esm/griditem.taro-b0c37077.js +85 -0
  139. package/dist/esm/image.taro-767aa000.js +65 -0
  140. package/dist/esm/imagepreview.taro-8832dc01.js +163 -0
  141. package/dist/esm/index-e3184f19.js +9 -0
  142. package/dist/esm/indicator.taro-f2bd212f.js +30 -0
  143. package/dist/esm/infiniteloading.taro-f8f23ac6.js +143 -0
  144. package/dist/esm/input.taro-27d686c9.js +164 -0
  145. package/dist/esm/inputnumber.taro-877dc947.js +197 -0
  146. package/dist/esm/layout.taro-9659a928.js +11 -0
  147. package/dist/esm/menu.taro-cd0fef41.js +122 -0
  148. package/dist/esm/menuitem.taro-6076bffa.js +142 -0
  149. package/dist/esm/navbar.taro-5e1a0835.js +61 -0
  150. package/dist/esm/noticebar.taro-b3bfd4fe.js +408 -0
  151. package/dist/esm/notify.taro-6b6eb6bf.js +82 -0
  152. package/dist/esm/numberkeyboard.taro-0a0e866a.js +183 -0
  153. package/dist/esm/nutui-react.es.js +211 -118
  154. package/dist/esm/offsetContext-f32a9246.js +5 -0
  155. package/dist/esm/overlay.taro-75012bd3.js +77 -0
  156. package/dist/esm/pagination.taro-63607c3b.js +94 -0
  157. package/dist/esm/picker.taro-a5603921.js +468 -0
  158. package/dist/esm/popover.taro-ad483372.js +162 -0
  159. package/dist/esm/popup.taro-e756f3fc.js +150 -0
  160. package/dist/esm/price.taro-c4f45310.js +80 -0
  161. package/dist/esm/progress.taro-ff63be75.js +49 -0
  162. package/dist/esm/pulltorefresh.taro-c611fd92.js +179 -0
  163. package/dist/esm/radio.taro-3a54f4c8.js +152 -0
  164. package/dist/esm/range.taro-52cda918.js +325 -0
  165. package/dist/esm/rate.taro-78c66969.js +77 -0
  166. package/dist/esm/row.taro-8b7febd4.js +48 -0
  167. package/dist/esm/searchbar.taro-37ade36e.js +159 -0
  168. package/dist/esm/shortpassword.taro-f7292032.js +146 -0
  169. package/dist/esm/sidenavbar.taro-9f210df4.js +51 -0
  170. package/dist/esm/sidenavbaritem.taro-32a45ce6.js +12 -0
  171. package/dist/esm/signature.taro-c57469aa.js +146 -0
  172. package/dist/esm/skeleton.taro-9ff9baf4.js +71 -0
  173. package/dist/esm/step.taro-3bc01c0c.js +66 -0
  174. package/dist/esm/steps.taro-77e301ab.js +30 -0
  175. package/dist/esm/sticky.taro-3c03eb0a.js +134 -0
  176. package/dist/esm/subsidenavbar.taro-abe07673.js +64 -0
  177. package/dist/esm/supports-passive-aaaf0eff.js +17 -0
  178. package/dist/esm/swipe.taro-de80fcd8.js +180 -0
  179. package/dist/esm/swiper.taro-74cf9306.js +430 -0
  180. package/dist/esm/swiperitem-80df464a.js +29 -0
  181. package/dist/esm/switch.taro-f0da73a3.js +44 -0
  182. package/dist/esm/tabbar.taro-18eee41f.js +55 -0
  183. package/dist/esm/tabbaritem.taro-89646ca1.js +47 -0
  184. package/dist/esm/table.taro-15a55c5d.js +100 -0
  185. package/dist/esm/tabpane.taro-f8d92ece.js +21 -0
  186. package/dist/esm/tabs.taro-56e46dd3.js +137 -0
  187. package/dist/esm/tag.taro-1b4134a5.js +92 -0
  188. package/dist/esm/textarea.taro-c110565e.js +102 -0
  189. package/dist/esm/timedetail.taro-8d2acbbf.js +41 -0
  190. package/dist/esm/timepannel.taro-ee4c5dfa.js +22 -0
  191. package/dist/esm/timeselect.taro-069deedd.js +133 -0
  192. package/dist/esm/toast.taro-92c10e1d.js +114 -0
  193. package/dist/esm/trendarrow.taro-0cf43935.js +72 -0
  194. package/dist/esm/typings-11d83a22.js +7 -0
  195. package/dist/esm/uploader.taro-92977813.js +519 -0
  196. package/dist/esm/use-client-rect-f317804e.js +10 -0
  197. package/dist/esm/use-props-value-7ac1b1b5.js +16 -0
  198. package/dist/esm/use-touch-ff43512c.js +69 -0
  199. package/dist/esm/video-5d106e33.js +73 -0
  200. package/dist/esm/virtuallist.taro-99f03769.js +195 -0
  201. package/dist/esm/watermark.taro-cef29c03.js +109 -0
  202. package/dist/locales/base.js +1 -1
  203. package/dist/locales/en-US.js +1 -1
  204. package/dist/locales/id-ID.js +1 -1
  205. package/dist/locales/zh-CN.js +1 -1
  206. package/dist/locales/zh-TW.js +1 -1
  207. package/dist/locales/zh-UG.js +1 -1
  208. package/dist/nutui.react.mjs +924 -776
  209. package/dist/nutui.react.umd.js +923 -775
  210. package/dist/packages/cascader/cascader.scss +0 -26
  211. package/dist/packages/cellgroup/cellgroup.scss +20 -16
  212. package/dist/packages/checkbox/checkbox.scss +8 -11
  213. package/dist/packages/empty/empty.scss +0 -9
  214. package/dist/packages/picker/picker.scss +66 -137
  215. package/dist/packages/tabbar/tabbar.scss +1 -0
  216. package/dist/packages/table/table.scss +0 -56
  217. package/dist/packages/textarea/textarea.scss +5 -12
  218. package/dist/style.css +1 -1
  219. package/dist/style.mjs +1 -1
  220. package/dist/styles/themes/default.scss +0 -1
  221. package/dist/styles/variables-jmapp.scss +1 -4
  222. package/dist/styles/variables.scss +2 -6
  223. package/dist/types/index.d.ts +80 -91
  224. package/package.json +1 -1
  225. package/dist/esm/AvatarContext-c96afdcc.js +0 -5
  226. package/dist/esm/Icon.js +0 -64
  227. package/dist/esm/UserContext-0aac9a82.js +0 -5
  228. package/dist/esm/UserContext-e402e1a6.js +0 -5
  229. package/dist/esm/UserContext-e8176108.js +0 -5
  230. package/dist/esm/actionsheet.taro-12cf5a3e.js +0 -53
  231. package/dist/esm/address.taro-67e32c33.js +0 -461
  232. package/dist/esm/animate.taro-485331bb.js +0 -41
  233. package/dist/esm/animatingnumbers.taro-f6eaffef.js +0 -104
  234. package/dist/esm/audio.taro-51eafc9d.js +0 -162
  235. package/dist/esm/avatar.taro-a840f345.js +0 -105
  236. package/dist/esm/avatargroup-0eadb514.js +0 -34
  237. package/dist/esm/backtop.taro-8ec80d02.js +0 -52
  238. package/dist/esm/badge.taro-e2169fbe.js +0 -45
  239. package/dist/esm/barrage.taro-aa08da6c.js +0 -94
  240. package/dist/esm/bem-350c1702.js +0 -5
  241. package/dist/esm/button.taro-b50bc217.js +0 -65
  242. package/dist/esm/calendar.taro-b3ebdc35.js +0 -65
  243. package/dist/esm/calendaritem.taro-ab1ec154.js +0 -791
  244. package/dist/esm/can-use-dom-3eeb5af4.js +0 -6
  245. package/dist/esm/card.taro-0e849e94.js +0 -33
  246. package/dist/esm/cascader.taro-467910b2.js +0 -447
  247. package/dist/esm/cell.taro-ea725a95.js +0 -43
  248. package/dist/esm/cellgroup.taro-660faffc.js +0 -24
  249. package/dist/esm/checkbox.taro-ae460d3a.js +0 -168
  250. package/dist/esm/circleprogress.taro-d4943109.js +0 -103
  251. package/dist/esm/col.taro-4477c9f7.js +0 -43
  252. package/dist/esm/collapse.taro-89bcadf2.js +0 -79
  253. package/dist/esm/collapseitem-0e228cec.js +0 -68
  254. package/dist/esm/configprovider-9960f0fb.js +0 -19
  255. package/dist/esm/configprovider.taro-43a3c646.js +0 -45
  256. package/dist/esm/countdown.taro-c14b5c1f.js +0 -225
  257. package/dist/esm/datepicker.taro-7d522ff8.js +0 -275
  258. package/dist/esm/dialog.taro-f9ca73a2.js +0 -107
  259. package/dist/esm/divider.taro-3993d7d5.js +0 -33
  260. package/dist/esm/drag.taro-347dfb84.js +0 -111
  261. package/dist/esm/elevator.taro-360a831f.js +0 -185
  262. package/dist/esm/ellipsis.taro-79044d54.js +0 -241
  263. package/dist/esm/empty.taro-f8585835.js +0 -62
  264. package/dist/esm/fixednav.taro-cca9a6df.js +0 -54
  265. package/dist/esm/form.taro-7413d868.js +0 -179
  266. package/dist/esm/formitem.taro-b550d29c.js +0 -89
  267. package/dist/esm/get-scroll-parent-b4a07e65.js +0 -25
  268. package/dist/esm/grid.taro-10eb7716.js +0 -49
  269. package/dist/esm/griditem.taro-fb15eeec.js +0 -80
  270. package/dist/esm/image.taro-b897a058.js +0 -64
  271. package/dist/esm/imagepreview.taro-d511342c.js +0 -167
  272. package/dist/esm/index-5bcb0ff8.js +0 -7
  273. package/dist/esm/indicator.taro-bfb21d45.js +0 -30
  274. package/dist/esm/infiniteloading.taro-cce53c60.js +0 -141
  275. package/dist/esm/input.taro-1aca4a45.js +0 -167
  276. package/dist/esm/inputnumber.taro-1f893d42.js +0 -199
  277. package/dist/esm/layout.taro-e4bf83cb.js +0 -11
  278. package/dist/esm/menu.taro-e5c68cb8.js +0 -111
  279. package/dist/esm/menuitem.taro-37c18382.js +0 -129
  280. package/dist/esm/navbar.taro-92bab9c4.js +0 -57
  281. package/dist/esm/noticebar.taro-cbe93c9e.js +0 -427
  282. package/dist/esm/notify.taro-f1079218.js +0 -75
  283. package/dist/esm/numberkeyboard.taro-10ab54d6.js +0 -159
  284. package/dist/esm/offsetContext-c2a746fa.js +0 -5
  285. package/dist/esm/overlay.taro-067b7202.js +0 -73
  286. package/dist/esm/pagination.taro-df441058.js +0 -91
  287. package/dist/esm/picker.taro-9f1bb6a4.js +0 -423
  288. package/dist/esm/popover.taro-84a55ff9.js +0 -153
  289. package/dist/esm/popup.taro-89cc342a.js +0 -139
  290. package/dist/esm/price.taro-959d82f2.js +0 -83
  291. package/dist/esm/progress.taro-1a7ac8a4.js +0 -40
  292. package/dist/esm/pulltorefresh.taro-37dadbc5.js +0 -181
  293. package/dist/esm/radio.taro-36438449.js +0 -177
  294. package/dist/esm/range.taro-432d20d7.js +0 -332
  295. package/dist/esm/rate.taro-895bb41c.js +0 -77
  296. package/dist/esm/row.taro-e929ec5c.js +0 -48
  297. package/dist/esm/searchbar.taro-4aa300df.js +0 -152
  298. package/dist/esm/shortpassword.taro-99645f99.js +0 -119
  299. package/dist/esm/sidenavbar.taro-f8ffb7dc.js +0 -33
  300. package/dist/esm/sidenavbaritem.taro-6cb0821e.js +0 -12
  301. package/dist/esm/signature.taro-e5ede25a.js +0 -143
  302. package/dist/esm/skeleton.taro-fabd423a.js +0 -62
  303. package/dist/esm/step.taro-7ea33a76.js +0 -58
  304. package/dist/esm/steps.taro-86753d36.js +0 -30
  305. package/dist/esm/sticky.taro-a142a5f2.js +0 -136
  306. package/dist/esm/subsidenavbar.taro-85c03291.js +0 -63
  307. package/dist/esm/supports-passive-c85ef996.js +0 -18
  308. package/dist/esm/swipe.taro-b18a73ff.js +0 -177
  309. package/dist/esm/swiper.taro-c0e9a56b.js +0 -451
  310. package/dist/esm/swiperitem-abab7606.js +0 -29
  311. package/dist/esm/switch.taro-e82809f6.js +0 -38
  312. package/dist/esm/tabbar.taro-48413fb8.js +0 -51
  313. package/dist/esm/tabbaritem.taro-5afa3562.js +0 -37
  314. package/dist/esm/table.taro-eca757f3.js +0 -95
  315. package/dist/esm/tabpane.taro-406cc0d3.js +0 -21
  316. package/dist/esm/tabs.taro-d47ccfc5.js +0 -120
  317. package/dist/esm/tag.taro-846ee805.js +0 -92
  318. package/dist/esm/textarea.taro-e256e741.js +0 -94
  319. package/dist/esm/timedetail.taro-cae362b9.js +0 -44
  320. package/dist/esm/timepannel.taro-d6f4cf80.js +0 -22
  321. package/dist/esm/timeselect.taro-804199f9.js +0 -133
  322. package/dist/esm/toast.taro-c509a870.js +0 -108
  323. package/dist/esm/trendarrow.taro-dd83ec94.js +0 -70
  324. package/dist/esm/typings-d8491423.js +0 -6
  325. package/dist/esm/uploader.taro-716f9a50.js +0 -494
  326. package/dist/esm/use-client-rect-1f8ed1fe.js +0 -18
  327. package/dist/esm/use-props-value-ae7ee726.js +0 -15
  328. package/dist/esm/use-touch-db24bb5c.js +0 -69
  329. package/dist/esm/video-1c6405b4.js +0 -67
  330. package/dist/esm/virtuallist.taro-0bd611cb.js +0 -214
  331. package/dist/esm/watermark.taro-8966896a.js +0 -114
  332. package/dist/esm/zh-CN-b4f493ba.js +0 -131
  333. package/dist/packages/icon/icon.scss +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.4 Fri May 05 2023 16:38:12 GMT+0800 (China Standard Time)
11
+ * @nutui/nutui-react-taro v2.0.0-alpha.6 Fri May 12 2023 15:11:28 GMT+0800 (China Standard Time)
12
12
  * (c) 2023 @jdf2e.
13
13
  * Released under the MIT License.
14
14
  */
@@ -1023,7 +1023,7 @@ var __publicField = (obj, key, value) => {
1023
1023
  })();
1024
1024
  })(classnames);
1025
1025
  const classNames = classnamesExports;
1026
- const r$w = {
1026
+ const r$x = {
1027
1027
  name: "arrow-down2",
1028
1028
  size: "",
1029
1029
  classPrefix: "nut-icon",
@@ -1037,7 +1037,7 @@ var __publicField = (obj, key, value) => {
1037
1037
  function w$1(n) {
1038
1038
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1039
1039
  }
1040
- function a$w(n) {
1040
+ function a$x(n) {
1041
1041
  const {
1042
1042
  name: e,
1043
1043
  size: l,
@@ -1051,7 +1051,7 @@ var __publicField = (obj, key, value) => {
1051
1051
  onClick: i,
1052
1052
  ...h
1053
1053
  } = {
1054
- ...r$w,
1054
+ ...r$x,
1055
1055
  ...n
1056
1056
  }, s = e ? e.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
1057
1057
  i && i(x);
@@ -1072,9 +1072,9 @@ var __publicField = (obj, key, value) => {
1072
1072
  d
1073
1073
  );
1074
1074
  }
1075
- a$w.defaultProps = r$w;
1076
- a$w.displayName = "NutIconarrow-down2";
1077
- const r$v = {
1075
+ a$x.defaultProps = r$x;
1076
+ a$x.displayName = "NutIconarrow-down2";
1077
+ const r$w = {
1078
1078
  name: "arrow-up2",
1079
1079
  size: "",
1080
1080
  classPrefix: "nut-icon",
@@ -1088,7 +1088,7 @@ var __publicField = (obj, key, value) => {
1088
1088
  function y$t(e) {
1089
1089
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1090
1090
  }
1091
- function a$v(e) {
1091
+ function a$w(e) {
1092
1092
  const {
1093
1093
  name: t,
1094
1094
  size: l,
@@ -1102,7 +1102,7 @@ var __publicField = (obj, key, value) => {
1102
1102
  onClick: i,
1103
1103
  ...h
1104
1104
  } = {
1105
- ...r$v,
1105
+ ...r$w,
1106
1106
  ...e
1107
1107
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : m, C = (x) => {
1108
1108
  i && i(x);
@@ -1123,9 +1123,9 @@ var __publicField = (obj, key, value) => {
1123
1123
  p
1124
1124
  );
1125
1125
  }
1126
- a$v.defaultProps = r$v;
1127
- a$v.displayName = "NutIconarrow-up2";
1128
- const r$u = {
1126
+ a$w.defaultProps = r$w;
1127
+ a$w.displayName = "NutIconarrow-up2";
1128
+ const r$v = {
1129
1129
  name: "check-checked",
1130
1130
  size: "",
1131
1131
  classPrefix: "nut-icon",
@@ -1139,7 +1139,7 @@ var __publicField = (obj, key, value) => {
1139
1139
  function y$s(e) {
1140
1140
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1141
1141
  }
1142
- function a$u(e) {
1142
+ function a$v(e) {
1143
1143
  const {
1144
1144
  name: c,
1145
1145
  size: l,
@@ -1153,7 +1153,7 @@ var __publicField = (obj, key, value) => {
1153
1153
  onClick: o,
1154
1154
  ...k
1155
1155
  } = {
1156
- ...r$u,
1156
+ ...r$v,
1157
1157
  ...e
1158
1158
  }, s = c ? c.indexOf("/") !== -1 : false, p = s ? "img" : u, g = (x) => {
1159
1159
  o && o(x);
@@ -1174,9 +1174,9 @@ var __publicField = (obj, key, value) => {
1174
1174
  h
1175
1175
  );
1176
1176
  }
1177
- a$u.defaultProps = r$u;
1178
- a$u.displayName = "NutIconcheck-checked";
1179
- const a$t = {
1177
+ a$v.defaultProps = r$v;
1178
+ a$v.displayName = "NutIconcheck-checked";
1179
+ const a$u = {
1180
1180
  name: "check-disabled",
1181
1181
  size: "",
1182
1182
  classPrefix: "nut-icon",
@@ -1190,7 +1190,7 @@ var __publicField = (obj, key, value) => {
1190
1190
  function y$r(e) {
1191
1191
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1192
1192
  }
1193
- function r$t(e) {
1193
+ function r$u(e) {
1194
1194
  const {
1195
1195
  name: t,
1196
1196
  size: l,
@@ -1204,7 +1204,7 @@ var __publicField = (obj, key, value) => {
1204
1204
  onClick: o,
1205
1205
  ...p
1206
1206
  } = {
1207
- ...a$t,
1207
+ ...a$u,
1208
1208
  ...e
1209
1209
  }, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
1210
1210
  o && o(x);
@@ -1225,9 +1225,9 @@ var __publicField = (obj, key, value) => {
1225
1225
  d
1226
1226
  );
1227
1227
  }
1228
- r$t.defaultProps = a$t;
1229
- r$t.displayName = "NutIconcheck-disabled";
1230
- const r$s = {
1228
+ r$u.defaultProps = a$u;
1229
+ r$u.displayName = "NutIconcheck-disabled";
1230
+ const r$t = {
1231
1231
  name: "check-normal",
1232
1232
  size: "",
1233
1233
  classPrefix: "nut-icon",
@@ -1241,7 +1241,7 @@ var __publicField = (obj, key, value) => {
1241
1241
  function y$q(e) {
1242
1242
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1243
1243
  }
1244
- function a$s(e) {
1244
+ function a$t(e) {
1245
1245
  const {
1246
1246
  name: n,
1247
1247
  size: l,
@@ -1255,7 +1255,7 @@ var __publicField = (obj, key, value) => {
1255
1255
  onClick: i,
1256
1256
  ...d
1257
1257
  } = {
1258
- ...r$s,
1258
+ ...r$t,
1259
1259
  ...e
1260
1260
  }, s = n ? n.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
1261
1261
  i && i(x);
@@ -1276,9 +1276,9 @@ var __publicField = (obj, key, value) => {
1276
1276
  N
1277
1277
  );
1278
1278
  }
1279
- a$s.defaultProps = r$s;
1280
- a$s.displayName = "NutIconcheck-normal";
1281
- const r$r = {
1279
+ a$t.defaultProps = r$t;
1280
+ a$t.displayName = "NutIconcheck-normal";
1281
+ const r$s = {
1282
1282
  name: "Check",
1283
1283
  size: "",
1284
1284
  classPrefix: "nut-icon",
@@ -1292,7 +1292,7 @@ var __publicField = (obj, key, value) => {
1292
1292
  function y$p(e) {
1293
1293
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1294
1294
  }
1295
- function a$r(e) {
1295
+ function a$s(e) {
1296
1296
  const {
1297
1297
  name: t,
1298
1298
  size: l,
@@ -1306,7 +1306,7 @@ var __publicField = (obj, key, value) => {
1306
1306
  onClick: o,
1307
1307
  ...d
1308
1308
  } = {
1309
- ...r$r,
1309
+ ...r$s,
1310
1310
  ...e
1311
1311
  }, s = t ? t.indexOf("/") !== -1 : false, C = s ? "img" : u, k = (x) => {
1312
1312
  o && o(x);
@@ -1327,9 +1327,9 @@ var __publicField = (obj, key, value) => {
1327
1327
  N
1328
1328
  );
1329
1329
  }
1330
- a$r.defaultProps = r$r;
1331
- a$r.displayName = "NutIconCheck";
1332
- const r$q = {
1330
+ a$s.defaultProps = r$s;
1331
+ a$s.displayName = "NutIconCheck";
1332
+ const r$r = {
1333
1333
  name: "checked",
1334
1334
  size: "",
1335
1335
  classPrefix: "nut-icon",
@@ -1343,7 +1343,7 @@ var __publicField = (obj, key, value) => {
1343
1343
  function y$o(e) {
1344
1344
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1345
1345
  }
1346
- function a$q(e) {
1346
+ function a$r(e) {
1347
1347
  const {
1348
1348
  name: t,
1349
1349
  size: l,
@@ -1357,7 +1357,7 @@ var __publicField = (obj, key, value) => {
1357
1357
  onClick: o,
1358
1358
  ...p
1359
1359
  } = {
1360
- ...r$q,
1360
+ ...r$r,
1361
1361
  ...e
1362
1362
  }, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
1363
1363
  o && o(x);
@@ -1378,9 +1378,9 @@ var __publicField = (obj, key, value) => {
1378
1378
  d
1379
1379
  );
1380
1380
  }
1381
- a$q.defaultProps = r$q;
1382
- a$q.displayName = "NutIconchecked";
1383
- const r$p = {
1381
+ a$r.defaultProps = r$r;
1382
+ a$r.displayName = "NutIconchecked";
1383
+ const r$q = {
1384
1384
  name: "checklist",
1385
1385
  size: "",
1386
1386
  classPrefix: "nut-icon",
@@ -1394,7 +1394,7 @@ var __publicField = (obj, key, value) => {
1394
1394
  function y$n(e) {
1395
1395
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1396
1396
  }
1397
- function a$p(e) {
1397
+ function a$q(e) {
1398
1398
  const {
1399
1399
  name: t,
1400
1400
  size: l,
@@ -1408,7 +1408,7 @@ var __publicField = (obj, key, value) => {
1408
1408
  onClick: o,
1409
1409
  ...d
1410
1410
  } = {
1411
- ...r$p,
1411
+ ...r$q,
1412
1412
  ...e
1413
1413
  }, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
1414
1414
  o && o(x);
@@ -1429,9 +1429,9 @@ var __publicField = (obj, key, value) => {
1429
1429
  N
1430
1430
  );
1431
1431
  }
1432
- a$p.defaultProps = r$p;
1433
- a$p.displayName = "NutIconchecklist";
1434
- const r$o = {
1432
+ a$q.defaultProps = r$q;
1433
+ a$q.displayName = "NutIconchecklist";
1434
+ const r$p = {
1435
1435
  name: "circle-close",
1436
1436
  size: "",
1437
1437
  classPrefix: "nut-icon",
@@ -1445,7 +1445,7 @@ var __publicField = (obj, key, value) => {
1445
1445
  function y$m(e) {
1446
1446
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1447
1447
  }
1448
- function a$o(e) {
1448
+ function a$p(e) {
1449
1449
  const {
1450
1450
  name: t,
1451
1451
  size: l,
@@ -1459,7 +1459,7 @@ var __publicField = (obj, key, value) => {
1459
1459
  onClick: o,
1460
1460
  ...h
1461
1461
  } = {
1462
- ...r$o,
1462
+ ...r$p,
1463
1463
  ...e
1464
1464
  }, s = t ? t.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
1465
1465
  o && o(x);
@@ -1480,9 +1480,9 @@ var __publicField = (obj, key, value) => {
1480
1480
  N
1481
1481
  );
1482
1482
  }
1483
- a$o.defaultProps = r$o;
1484
- a$o.displayName = "NutIconcircle-close";
1485
- const r$n = {
1483
+ a$p.defaultProps = r$p;
1484
+ a$p.displayName = "NutIconcircle-close";
1485
+ const r$o = {
1486
1486
  name: "close",
1487
1487
  size: "",
1488
1488
  classPrefix: "nut-icon",
@@ -1496,7 +1496,7 @@ var __publicField = (obj, key, value) => {
1496
1496
  function y$l(e) {
1497
1497
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1498
1498
  }
1499
- function a$n(e) {
1499
+ function a$o(e) {
1500
1500
  const {
1501
1501
  name: t,
1502
1502
  size: l,
@@ -1510,7 +1510,7 @@ var __publicField = (obj, key, value) => {
1510
1510
  onClick: i,
1511
1511
  ...h
1512
1512
  } = {
1513
- ...r$n,
1513
+ ...r$o,
1514
1514
  ...e
1515
1515
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
1516
1516
  i && i(x);
@@ -1531,9 +1531,9 @@ var __publicField = (obj, key, value) => {
1531
1531
  N
1532
1532
  );
1533
1533
  }
1534
- a$n.defaultProps = r$n;
1535
- a$n.displayName = "NutIconclose";
1536
- const r$m = {
1534
+ a$o.defaultProps = r$o;
1535
+ a$o.displayName = "NutIconclose";
1536
+ const r$n = {
1537
1537
  name: "del",
1538
1538
  size: "",
1539
1539
  classPrefix: "nut-icon",
@@ -1547,7 +1547,7 @@ var __publicField = (obj, key, value) => {
1547
1547
  function y$k(e) {
1548
1548
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1549
1549
  }
1550
- function a$m(e) {
1550
+ function a$n(e) {
1551
1551
  const {
1552
1552
  name: t,
1553
1553
  size: l,
@@ -1561,7 +1561,7 @@ var __publicField = (obj, key, value) => {
1561
1561
  onClick: o,
1562
1562
  ...h
1563
1563
  } = {
1564
- ...r$m,
1564
+ ...r$n,
1565
1565
  ...e
1566
1566
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
1567
1567
  o && o(x);
@@ -1582,9 +1582,9 @@ var __publicField = (obj, key, value) => {
1582
1582
  d
1583
1583
  );
1584
1584
  }
1585
- a$m.defaultProps = r$m;
1586
- a$m.displayName = "NutIcondel";
1587
- const r$l = {
1585
+ a$n.defaultProps = r$n;
1586
+ a$n.displayName = "NutIcondel";
1587
+ const r$m = {
1588
1588
  name: "down-arrow",
1589
1589
  size: "",
1590
1590
  classPrefix: "nut-icon",
@@ -1598,7 +1598,7 @@ var __publicField = (obj, key, value) => {
1598
1598
  function w(n) {
1599
1599
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1600
1600
  }
1601
- function a$l(n) {
1601
+ function a$m(n) {
1602
1602
  const {
1603
1603
  name: e,
1604
1604
  size: l,
@@ -1612,7 +1612,7 @@ var __publicField = (obj, key, value) => {
1612
1612
  onClick: i,
1613
1613
  ...h
1614
1614
  } = {
1615
- ...r$l,
1615
+ ...r$m,
1616
1616
  ...n
1617
1617
  }, s = e ? e.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
1618
1618
  i && i(x);
@@ -1633,9 +1633,9 @@ var __publicField = (obj, key, value) => {
1633
1633
  d
1634
1634
  );
1635
1635
  }
1636
- a$l.defaultProps = r$l;
1637
- a$l.displayName = "NutIcondown-arrow";
1638
- const r$k = {
1636
+ a$m.defaultProps = r$m;
1637
+ a$m.displayName = "NutIcondown-arrow";
1638
+ const r$l = {
1639
1639
  name: "failure",
1640
1640
  size: "",
1641
1641
  classPrefix: "nut-icon",
@@ -1649,7 +1649,7 @@ var __publicField = (obj, key, value) => {
1649
1649
  function y$j(e) {
1650
1650
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1651
1651
  }
1652
- function a$k(e) {
1652
+ function a$l(e) {
1653
1653
  const {
1654
1654
  name: t,
1655
1655
  size: l,
@@ -1663,7 +1663,7 @@ var __publicField = (obj, key, value) => {
1663
1663
  onClick: o,
1664
1664
  ...h
1665
1665
  } = {
1666
- ...r$k,
1666
+ ...r$l,
1667
1667
  ...e
1668
1668
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : m, C = (x) => {
1669
1669
  o && o(x);
@@ -1684,9 +1684,9 @@ var __publicField = (obj, key, value) => {
1684
1684
  N
1685
1685
  );
1686
1686
  }
1687
- a$k.defaultProps = r$k;
1688
- a$k.displayName = "NutIconfailure";
1689
- const r$j = {
1687
+ a$l.defaultProps = r$l;
1688
+ a$l.displayName = "NutIconfailure";
1689
+ const r$k = {
1690
1690
  name: "image-error",
1691
1691
  size: "",
1692
1692
  classPrefix: "nut-icon",
@@ -1700,7 +1700,7 @@ var __publicField = (obj, key, value) => {
1700
1700
  function y$i(e) {
1701
1701
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1702
1702
  }
1703
- function a$j(e) {
1703
+ function a$k(e) {
1704
1704
  const {
1705
1705
  name: t,
1706
1706
  size: l,
@@ -1714,7 +1714,7 @@ var __publicField = (obj, key, value) => {
1714
1714
  onClick: o,
1715
1715
  ...g
1716
1716
  } = {
1717
- ...r$j,
1717
+ ...r$k,
1718
1718
  ...e
1719
1719
  }, c = t ? t.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
1720
1720
  o && o(x);
@@ -1735,9 +1735,9 @@ var __publicField = (obj, key, value) => {
1735
1735
  N
1736
1736
  );
1737
1737
  }
1738
- a$j.defaultProps = r$j;
1739
- a$j.displayName = "NutIconimage-error";
1740
- const a$i = {
1738
+ a$k.defaultProps = r$k;
1739
+ a$k.displayName = "NutIconimage-error";
1740
+ const a$j = {
1741
1741
  name: "image",
1742
1742
  size: "",
1743
1743
  classPrefix: "nut-icon",
@@ -1751,7 +1751,7 @@ var __publicField = (obj, key, value) => {
1751
1751
  function y$h(e) {
1752
1752
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1753
1753
  }
1754
- function r$i(e) {
1754
+ function r$j(e) {
1755
1755
  const {
1756
1756
  name: t,
1757
1757
  size: l,
@@ -1765,7 +1765,7 @@ var __publicField = (obj, key, value) => {
1765
1765
  onClick: o,
1766
1766
  ...g
1767
1767
  } = {
1768
- ...a$i,
1768
+ ...a$j,
1769
1769
  ...e
1770
1770
  }, c = t ? t.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
1771
1771
  o && o(x);
@@ -1786,9 +1786,9 @@ var __publicField = (obj, key, value) => {
1786
1786
  N
1787
1787
  );
1788
1788
  }
1789
- r$i.defaultProps = a$i;
1790
- r$i.displayName = "NutIconimage";
1791
- const r$h = {
1789
+ r$j.defaultProps = a$j;
1790
+ r$j.displayName = "NutIconimage";
1791
+ const r$i = {
1792
1792
  name: "joy-smile",
1793
1793
  size: "",
1794
1794
  classPrefix: "nut-icon",
@@ -1799,10 +1799,10 @@ var __publicField = (obj, key, value) => {
1799
1799
  },
1800
1800
  className: ""
1801
1801
  };
1802
- function $(e) {
1802
+ function $$1(e) {
1803
1803
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1804
1804
  }
1805
- function a$h(e) {
1805
+ function a$i(e) {
1806
1806
  const {
1807
1807
  name: t,
1808
1808
  size: l,
@@ -1816,11 +1816,11 @@ var __publicField = (obj, key, value) => {
1816
1816
  onClick: o,
1817
1817
  ...h
1818
1818
  } = {
1819
- ...r$h,
1819
+ ...r$i,
1820
1820
  ...e
1821
1821
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, y2 = (k) => {
1822
1822
  o && o(k);
1823
- }, C = () => c ? { src: t } : {}, n = {}, s = $(l);
1823
+ }, C = () => c ? { src: t } : {}, n = {}, s = $$1(l);
1824
1824
  return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
1825
1825
  g,
1826
1826
  {
@@ -1837,9 +1837,9 @@ var __publicField = (obj, key, value) => {
1837
1837
  N
1838
1838
  );
1839
1839
  }
1840
- a$h.defaultProps = r$h;
1841
- a$h.displayName = "NutIconjoy-smile";
1842
- const r$g = {
1840
+ a$i.defaultProps = r$i;
1841
+ a$i.displayName = "NutIconjoy-smile";
1842
+ const r$h = {
1843
1843
  name: "left",
1844
1844
  size: "",
1845
1845
  classPrefix: "nut-icon",
@@ -1853,7 +1853,7 @@ var __publicField = (obj, key, value) => {
1853
1853
  function y$g(e) {
1854
1854
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1855
1855
  }
1856
- function a$g(e) {
1856
+ function a$h(e) {
1857
1857
  const {
1858
1858
  name: t,
1859
1859
  size: l,
@@ -1867,7 +1867,7 @@ var __publicField = (obj, key, value) => {
1867
1867
  onClick: o,
1868
1868
  ...h
1869
1869
  } = {
1870
- ...r$g,
1870
+ ...r$h,
1871
1871
  ...e
1872
1872
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
1873
1873
  o && o(x);
@@ -1888,9 +1888,9 @@ var __publicField = (obj, key, value) => {
1888
1888
  N
1889
1889
  );
1890
1890
  }
1891
- a$g.defaultProps = r$g;
1892
- a$g.displayName = "NutIconleft";
1893
- const r$f = {
1891
+ a$h.defaultProps = r$h;
1892
+ a$h.displayName = "NutIconleft";
1893
+ const r$g = {
1894
1894
  name: "link",
1895
1895
  size: "",
1896
1896
  classPrefix: "nut-icon",
@@ -1904,7 +1904,7 @@ var __publicField = (obj, key, value) => {
1904
1904
  function y$f(n) {
1905
1905
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1906
1906
  }
1907
- function a$f(n) {
1907
+ function a$g(n) {
1908
1908
  const {
1909
1909
  name: e,
1910
1910
  size: l,
@@ -1918,7 +1918,7 @@ var __publicField = (obj, key, value) => {
1918
1918
  onClick: o,
1919
1919
  ...h
1920
1920
  } = {
1921
- ...r$f,
1921
+ ...r$g,
1922
1922
  ...n
1923
1923
  }, c = e ? e.indexOf("/") !== -1 : false, k = c ? "img" : u, g = (x) => {
1924
1924
  o && o(x);
@@ -1939,9 +1939,9 @@ var __publicField = (obj, key, value) => {
1939
1939
  N
1940
1940
  );
1941
1941
  }
1942
- a$f.defaultProps = r$f;
1943
- a$f.displayName = "NutIconlink";
1944
- const a$e = {
1942
+ a$g.defaultProps = r$g;
1943
+ a$g.displayName = "NutIconlink";
1944
+ const a$f = {
1945
1945
  name: "loading",
1946
1946
  size: "",
1947
1947
  classPrefix: "nut-icon",
@@ -1955,7 +1955,7 @@ var __publicField = (obj, key, value) => {
1955
1955
  function y$e(n) {
1956
1956
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1957
1957
  }
1958
- function r$e(n) {
1958
+ function r$f(n) {
1959
1959
  const {
1960
1960
  name: e,
1961
1961
  size: l,
@@ -1969,7 +1969,7 @@ var __publicField = (obj, key, value) => {
1969
1969
  onClick: o,
1970
1970
  ...g
1971
1971
  } = {
1972
- ...a$e,
1972
+ ...a$f,
1973
1973
  ...n
1974
1974
  }, c = e ? e.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
1975
1975
  o && o(x);
@@ -1990,9 +1990,9 @@ var __publicField = (obj, key, value) => {
1990
1990
  d
1991
1991
  );
1992
1992
  }
1993
- r$e.defaultProps = a$e;
1994
- r$e.displayName = "NutIconloading";
1995
- const a$d = {
1993
+ r$f.defaultProps = a$f;
1994
+ r$f.displayName = "NutIconloading";
1995
+ const a$e = {
1996
1996
  name: "location2",
1997
1997
  size: "",
1998
1998
  classPrefix: "nut-icon",
@@ -2006,7 +2006,7 @@ var __publicField = (obj, key, value) => {
2006
2006
  function y$d(t) {
2007
2007
  return t === "" ? "" : Number.isNaN(Number(t)) ? String(t) : `${t}px`;
2008
2008
  }
2009
- function r$d(t) {
2009
+ function r$e(t) {
2010
2010
  const {
2011
2011
  name: n,
2012
2012
  size: l,
@@ -2020,7 +2020,7 @@ var __publicField = (obj, key, value) => {
2020
2020
  onClick: i,
2021
2021
  ...h
2022
2022
  } = {
2023
- ...a$d,
2023
+ ...a$e,
2024
2024
  ...t
2025
2025
  }, o = n ? n.indexOf("/") !== -1 : false, g = o ? "img" : u, C = (x) => {
2026
2026
  i && i(x);
@@ -2041,9 +2041,9 @@ var __publicField = (obj, key, value) => {
2041
2041
  N
2042
2042
  );
2043
2043
  }
2044
- r$d.defaultProps = a$d;
2045
- r$d.displayName = "NutIconlocation2";
2046
- const a$c = {
2044
+ r$e.defaultProps = a$e;
2045
+ r$e.displayName = "NutIconlocation2";
2046
+ const a$d = {
2047
2047
  name: "mask-close",
2048
2048
  size: "",
2049
2049
  classPrefix: "nut-icon",
@@ -2057,7 +2057,7 @@ var __publicField = (obj, key, value) => {
2057
2057
  function y$c(e) {
2058
2058
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
2059
2059
  }
2060
- function r$c(e) {
2060
+ function r$d(e) {
2061
2061
  const {
2062
2062
  name: t,
2063
2063
  size: l,
@@ -2071,7 +2071,7 @@ var __publicField = (obj, key, value) => {
2071
2071
  onClick: i,
2072
2072
  ...h
2073
2073
  } = {
2074
- ...a$c,
2074
+ ...a$d,
2075
2075
  ...e
2076
2076
  }, c = t ? t.indexOf("/") !== -1 : false, k = c ? "img" : u, g = (x) => {
2077
2077
  i && i(x);
@@ -2092,9 +2092,9 @@ var __publicField = (obj, key, value) => {
2092
2092
  N
2093
2093
  );
2094
2094
  }
2095
- r$c.defaultProps = a$c;
2096
- r$c.displayName = "NutIconmask-close";
2097
- const r$b = {
2095
+ r$d.defaultProps = a$d;
2096
+ r$d.displayName = "NutIconmask-close";
2097
+ const r$c = {
2098
2098
  name: "minus",
2099
2099
  size: "",
2100
2100
  classPrefix: "nut-icon",
@@ -2108,7 +2108,7 @@ var __publicField = (obj, key, value) => {
2108
2108
  function y$b(n) {
2109
2109
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
2110
2110
  }
2111
- function a$b(n) {
2111
+ function a$c(n) {
2112
2112
  const {
2113
2113
  name: e,
2114
2114
  size: l,
@@ -2122,7 +2122,7 @@ var __publicField = (obj, key, value) => {
2122
2122
  onClick: o,
2123
2123
  ...h
2124
2124
  } = {
2125
- ...r$b,
2125
+ ...r$c,
2126
2126
  ...n
2127
2127
  }, c = e ? e.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
2128
2128
  o && o(x);
@@ -2143,8 +2143,59 @@ var __publicField = (obj, key, value) => {
2143
2143
  N
2144
2144
  );
2145
2145
  }
2146
+ a$c.defaultProps = r$c;
2147
+ a$c.displayName = "NutIconminus";
2148
+ const r$b = {
2149
+ name: "my",
2150
+ size: "",
2151
+ classPrefix: "nut-icon",
2152
+ fontClassName: "nutui-iconfont",
2153
+ color: "",
2154
+ tag: "i",
2155
+ onClick: (e) => {
2156
+ },
2157
+ className: ""
2158
+ };
2159
+ function $(e) {
2160
+ return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
2161
+ }
2162
+ function a$b(e) {
2163
+ const {
2164
+ name: t,
2165
+ size: l,
2166
+ classPrefix: f,
2167
+ color: m,
2168
+ tag: u,
2169
+ children: N,
2170
+ className: i,
2171
+ fontClassName: p,
2172
+ style: d,
2173
+ onClick: o,
2174
+ ...h
2175
+ } = {
2176
+ ...r$b,
2177
+ ...e
2178
+ }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, y2 = (k) => {
2179
+ o && o(k);
2180
+ }, C = () => c ? { src: t } : {}, n = {}, s = $(l);
2181
+ return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
2182
+ g,
2183
+ {
2184
+ className: c ? `nut-icon__img ${i || ""} ` : `${p} nut-icon ${f}-${t} ${i || ""}`,
2185
+ style: {
2186
+ color: m,
2187
+ ...n,
2188
+ ...d
2189
+ },
2190
+ ...h,
2191
+ onClick: y2,
2192
+ ...C()
2193
+ },
2194
+ N
2195
+ );
2196
+ }
2146
2197
  a$b.defaultProps = r$b;
2147
- a$b.displayName = "NutIconminus";
2198
+ a$b.displayName = "NutIconmy";
2148
2199
  const r$a = {
2149
2200
  name: "notice",
2150
2201
  size: "",
@@ -2712,7 +2763,7 @@ var __publicField = (obj, key, value) => {
2712
2763
  style: {}
2713
2764
  };
2714
2765
  const prefixCls = "nut-button";
2715
- const defaultProps$1t = {
2766
+ const defaultProps$1u = {
2716
2767
  ...ComponentDefaults,
2717
2768
  color: "",
2718
2769
  type: "default",
@@ -2744,7 +2795,7 @@ var __publicField = (obj, key, value) => {
2744
2795
  style,
2745
2796
  ...rest
2746
2797
  } = {
2747
- ...defaultProps$1t,
2798
+ ...defaultProps$1u,
2748
2799
  ...props
2749
2800
  };
2750
2801
  const getStyle = React.useCallback(() => {
@@ -2793,7 +2844,7 @@ var __publicField = (obj, key, value) => {
2793
2844
  style: { ...getStyle(), ...style },
2794
2845
  onClick: (e) => handleClick(e),
2795
2846
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "nut-button__warp", children: [
2796
- loading && /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, { className: "nut-icon-loading" }),
2847
+ loading && /* @__PURE__ */ jsxRuntimeExports.jsx(r$f, { className: "nut-icon-loading" }),
2797
2848
  !loading && icon ? icon : null,
2798
2849
  children && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: icon || loading ? "nut-button-text" : "", children })
2799
2850
  ] })
@@ -2803,7 +2854,7 @@ var __publicField = (obj, key, value) => {
2803
2854
  }
2804
2855
  );
2805
2856
  Button.displayName = "NutButton";
2806
- const defaultProps$1s = {
2857
+ const defaultProps$1t = {
2807
2858
  ...ComponentDefaults,
2808
2859
  title: null,
2809
2860
  description: null,
@@ -2813,7 +2864,7 @@ var __publicField = (obj, key, value) => {
2813
2864
  onClick: (event) => {
2814
2865
  }
2815
2866
  };
2816
- const classPrefix$9 = "nut-cell";
2867
+ const classPrefix$f = "nut-cell";
2817
2868
  const Cell = (props) => {
2818
2869
  const {
2819
2870
  children,
@@ -2827,7 +2878,7 @@ var __publicField = (obj, key, value) => {
2827
2878
  style,
2828
2879
  ...rest
2829
2880
  } = {
2830
- ...defaultProps$1s,
2881
+ ...defaultProps$1t,
2831
2882
  ...props
2832
2883
  };
2833
2884
  const handleClick = (event) => {
@@ -2844,48 +2895,55 @@ var __publicField = (obj, key, value) => {
2844
2895
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
2845
2896
  "div",
2846
2897
  {
2847
- className: classNames(classPrefix$9, className),
2898
+ className: classNames(classPrefix$f, className),
2848
2899
  onClick: (event) => handleClick(event),
2849
2900
  style: baseStyle,
2850
2901
  ...rest,
2851
2902
  children: children || /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
2852
- title || description ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix$9}__left`, children: [
2853
- title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$9}__title`, children: title }) : null,
2854
- description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$9}__description`, children: description }) : null
2903
+ title || description ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix$f}__left`, children: [
2904
+ title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$f}__title`, children: title }) : null,
2905
+ description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$f}__description`, children: description }) : null
2855
2906
  ] }) : null,
2856
2907
  extra ? /* @__PURE__ */ jsxRuntimeExports.jsx(
2857
2908
  "div",
2858
2909
  {
2859
- className: `${classPrefix$9}__extra`,
2910
+ className: `${classPrefix$f}__extra`,
2860
2911
  style: styles,
2861
2912
  children: extra
2862
2913
  }
2863
2914
  ) : null,
2864
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$9}__divider` })
2915
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$f}__divider` })
2865
2916
  ] })
2866
2917
  }
2867
2918
  );
2868
2919
  };
2869
- Cell.defaultProps = defaultProps$1s;
2920
+ Cell.defaultProps = defaultProps$1t;
2870
2921
  Cell.displayName = "NutCell";
2871
- const defaultProps$1r = {
2922
+ const defaultProps$1s = {
2872
2923
  ...ComponentDefaults,
2873
2924
  title: "",
2874
- description: ""
2925
+ description: "",
2926
+ divider: true
2875
2927
  };
2876
- const classPrefix$8 = "nut-cell-group";
2928
+ const classPrefix$e = "nut-cell-group";
2877
2929
  const CellGroup = (props) => {
2878
- const { children, className, style, title, description, ...rest } = {
2879
- ...defaultProps$1r,
2930
+ const { children, className, style, title, description, divider, ...rest } = {
2931
+ ...defaultProps$1s,
2880
2932
  ...props
2881
2933
  };
2882
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classNames(classPrefix$8, className), ...rest, children: [
2883
- title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$8}__title`, children: title }) : null,
2884
- description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$8}__description`, children: description }) : null,
2885
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$8}__wrap`, children })
2934
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classNames(classPrefix$e, className), ...rest, children: [
2935
+ title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$e}__title`, children: title }) : null,
2936
+ description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$e}__description`, children: description }) : null,
2937
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
2938
+ "div",
2939
+ {
2940
+ className: `${classPrefix$e}__wrap ${divider ? `${classPrefix$e}__wrap--divider` : ""}`,
2941
+ children
2942
+ }
2943
+ )
2886
2944
  ] });
2887
2945
  };
2888
- CellGroup.defaultProps = defaultProps$1r;
2946
+ CellGroup.defaultProps = defaultProps$1s;
2889
2947
  CellGroup.displayName = "NutCellGroup";
2890
2948
  var INFINITY = 1 / 0;
2891
2949
  var symbolTag = "[object Symbol]";
@@ -3300,7 +3358,7 @@ var __publicField = (obj, key, value) => {
3300
3358
  errorCanvasTips: "当前环境不支持Canvas"
3301
3359
  }
3302
3360
  };
3303
- const defaultProps$1q = {
3361
+ const defaultProps$1r = {
3304
3362
  locale: zhCN
3305
3363
  };
3306
3364
  const defaultConfigRef$1 = {
@@ -3323,7 +3381,7 @@ var __publicField = (obj, key, value) => {
3323
3381
  return cssVars;
3324
3382
  }
3325
3383
  const ConfigProvider = (props) => {
3326
- const { children, ...config2 } = { ...defaultProps$1q, ...props };
3384
+ const { children, ...config2 } = { ...defaultProps$1r, ...props };
3327
3385
  const parentConfig = useConfig$1();
3328
3386
  const theme = config2.theme || {};
3329
3387
  const style = React.useMemo(
@@ -3341,9 +3399,9 @@ var __publicField = (obj, key, value) => {
3341
3399
  }
3342
3400
  );
3343
3401
  };
3344
- ConfigProvider.defaultProps = defaultProps$1q;
3402
+ ConfigProvider.defaultProps = defaultProps$1r;
3345
3403
  ConfigProvider.displayName = "NutConfigProvider";
3346
- const defaultProps$1p = {
3404
+ const defaultProps$1q = {
3347
3405
  fit: "fill",
3348
3406
  position: "center",
3349
3407
  alt: "",
@@ -3374,7 +3432,7 @@ var __publicField = (obj, key, value) => {
3374
3432
  onClick,
3375
3433
  onLoad,
3376
3434
  onError
3377
- } = { ...defaultProps$1p, ...props };
3435
+ } = { ...defaultProps$1q, ...props };
3378
3436
  const [loading, setLoading] = React.useState(true);
3379
3437
  const [isError, setIsError] = React.useState(false);
3380
3438
  React.useEffect(() => {
@@ -3429,13 +3487,13 @@ var __publicField = (obj, key, value) => {
3429
3487
  onError: error
3430
3488
  }
3431
3489
  ),
3432
- showLoading && loading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-loading", children: slotLoding || children || /* @__PURE__ */ jsxRuntimeExports.jsx(r$i, {}) }) : null,
3433
- showError && isError && !loading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-error", children: slotError || children || /* @__PURE__ */ jsxRuntimeExports.jsx(a$j, {}) }) : null
3490
+ showLoading && loading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-loading", children: slotLoding || children || /* @__PURE__ */ jsxRuntimeExports.jsx(r$j, {}) }) : null,
3491
+ showError && isError && !loading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-error", children: slotError || children || /* @__PURE__ */ jsxRuntimeExports.jsx(a$k, {}) }) : null
3434
3492
  ]
3435
3493
  }
3436
3494
  );
3437
3495
  };
3438
- Image$1.defaultProps = defaultProps$1p;
3496
+ Image$1.defaultProps = defaultProps$1q;
3439
3497
  Image$1.displayName = "NutImage";
3440
3498
  const defaultOverlayProps = {
3441
3499
  ...ComponentDefaults,
@@ -3530,7 +3588,7 @@ var __publicField = (obj, key, value) => {
3530
3588
  Overlay.defaultProps = defaultOverlayProps;
3531
3589
  Overlay.displayName = "NutOverlay";
3532
3590
  const DataContext$2 = React.createContext({});
3533
- const defaultProps$1o = {
3591
+ const defaultProps$1p = {
3534
3592
  ...ComponentDefaults,
3535
3593
  span: "24",
3536
3594
  offset: "0",
@@ -3538,7 +3596,7 @@ var __publicField = (obj, key, value) => {
3538
3596
  };
3539
3597
  const Col = (props) => {
3540
3598
  const { className, style, span, offset, children, onClick } = {
3541
- ...defaultProps$1o,
3599
+ ...defaultProps$1p,
3542
3600
  ...props
3543
3601
  };
3544
3602
  const [colName, setColName] = React.useState("");
@@ -3570,32 +3628,32 @@ var __publicField = (obj, key, value) => {
3570
3628
  }
3571
3629
  );
3572
3630
  };
3573
- Col.defaultProps = defaultProps$1o;
3631
+ Col.defaultProps = defaultProps$1p;
3574
3632
  Col.displayName = "NutCol";
3575
- const defaultProps$1n = {
3633
+ const defaultProps$1o = {
3576
3634
  ...ComponentDefaults,
3577
3635
  contentPosition: "center",
3578
3636
  direction: "horizontal"
3579
3637
  };
3580
- const classPrefix$7 = `nut-divider`;
3638
+ const classPrefix$d = `nut-divider`;
3581
3639
  const Divider = (props) => {
3582
3640
  const { children, contentPosition, style, className, direction, ...rest } = {
3583
- ...defaultProps$1n,
3641
+ ...defaultProps$1o,
3584
3642
  ...props
3585
3643
  };
3586
3644
  const classes = direction === "horizontal" ? classNames({
3587
- [`${classPrefix$7}`]: true,
3588
- [`${classPrefix$7}__center`]: children,
3589
- [`${classPrefix$7}__left`]: contentPosition === "left",
3590
- [`${classPrefix$7}__right`]: contentPosition === "right",
3591
- [`${classPrefix$7}__hairline`]: true
3645
+ [`${classPrefix$d}`]: true,
3646
+ [`${classPrefix$d}__center`]: children,
3647
+ [`${classPrefix$d}__left`]: contentPosition === "left",
3648
+ [`${classPrefix$d}__right`]: contentPosition === "right",
3649
+ [`${classPrefix$d}__hairline`]: true
3592
3650
  }) : classNames({
3593
- [`${classPrefix$7}`]: true,
3594
- [`${classPrefix$7}__vertical`]: direction === "vertical"
3651
+ [`${classPrefix$d}`]: true,
3652
+ [`${classPrefix$d}__vertical`]: direction === "vertical"
3595
3653
  });
3596
3654
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classes} ${className || ""}`, style, ...rest, children });
3597
3655
  };
3598
- Divider.defaultProps = defaultProps$1n;
3656
+ Divider.defaultProps = defaultProps$1o;
3599
3657
  Divider.displayName = "NutDivider";
3600
3658
  const gridContext = {
3601
3659
  onClick: (item, index) => {
@@ -3605,7 +3663,7 @@ var __publicField = (obj, key, value) => {
3605
3663
  const pxCheck = (value) => {
3606
3664
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
3607
3665
  };
3608
- const defaultProps$1m = {
3666
+ const defaultProps$1n = {
3609
3667
  text: "",
3610
3668
  columns: 4,
3611
3669
  gap: 0,
@@ -3631,7 +3689,7 @@ var __publicField = (obj, key, value) => {
3631
3689
  onClick,
3632
3690
  ...rest
3633
3691
  } = {
3634
- ...defaultProps$1m,
3692
+ ...defaultProps$1n,
3635
3693
  ...props
3636
3694
  };
3637
3695
  const classPrefix2 = "nut-grid-item";
@@ -3692,9 +3750,9 @@ var __publicField = (obj, key, value) => {
3692
3750
  }
3693
3751
  );
3694
3752
  };
3695
- GridItem.defaultProps = defaultProps$1m;
3753
+ GridItem.defaultProps = defaultProps$1n;
3696
3754
  GridItem.displayName = "NutGridItem";
3697
- const defaultProps$1l = {
3755
+ const defaultProps$1m = {
3698
3756
  columns: 4,
3699
3757
  gap: 0,
3700
3758
  center: true,
@@ -3715,7 +3773,7 @@ var __publicField = (obj, key, value) => {
3715
3773
  className,
3716
3774
  onClick,
3717
3775
  ...rest
3718
- } = { ...defaultProps$1l, ...props };
3776
+ } = { ...defaultProps$1m, ...props };
3719
3777
  const childrenDom = React.Children.toArray(children);
3720
3778
  const classPrefix2 = "nut-grid";
3721
3779
  const rootClass = () => {
@@ -3745,18 +3803,18 @@ var __publicField = (obj, key, value) => {
3745
3803
  });
3746
3804
  }) }) });
3747
3805
  };
3748
- Grid.defaultProps = defaultProps$1l;
3806
+ Grid.defaultProps = defaultProps$1m;
3749
3807
  Grid.displayName = "NutGrid";
3750
3808
  Grid.Item = GridItem;
3751
- const defaultProps$1k = {};
3809
+ const defaultProps$1l = {};
3752
3810
  const Layout = (props) => {
3753
- ({ ...defaultProps$1k, ...props });
3811
+ ({ ...defaultProps$1l, ...props });
3754
3812
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-layout", children: "Layout" });
3755
3813
  };
3756
- Layout.defaultProps = defaultProps$1k;
3814
+ Layout.defaultProps = defaultProps$1l;
3757
3815
  Layout.displayName = "NutLayout";
3758
- const classPrefix$6 = "nut-row";
3759
- const defaultProps$1j = {
3816
+ const classPrefix$c = "nut-row";
3817
+ const defaultProps$1k = {
3760
3818
  ...ComponentDefaults,
3761
3819
  type: "",
3762
3820
  justify: "start",
@@ -3776,7 +3834,7 @@ var __publicField = (obj, key, value) => {
3776
3834
  gutter,
3777
3835
  onClick
3778
3836
  } = {
3779
- ...defaultProps$1j,
3837
+ ...defaultProps$1k,
3780
3838
  ...props
3781
3839
  };
3782
3840
  const getClass = (prefix2, type2) => {
@@ -3790,7 +3848,7 @@ var __publicField = (obj, key, value) => {
3790
3848
  ${getClass("justify", justify)}
3791
3849
  ${getClass("align", align)}
3792
3850
  ${getClass("flex", wrap)}
3793
- ${classPrefix$6}
3851
+ ${classPrefix$c}
3794
3852
  `;
3795
3853
  };
3796
3854
  const parentRow = {
@@ -3808,7 +3866,7 @@ var __publicField = (obj, key, value) => {
3808
3866
  children
3809
3867
  ) });
3810
3868
  };
3811
- Row.defaultProps = defaultProps$1j;
3869
+ Row.defaultProps = defaultProps$1k;
3812
3870
  Row.displayName = "NutRow";
3813
3871
  function useWatch(dep, callback, config2 = { immediate: false }) {
3814
3872
  const { immediate } = config2;
@@ -3861,12 +3919,12 @@ var __publicField = (obj, key, value) => {
3861
3919
  }
3862
3920
  return root2;
3863
3921
  }
3864
- const defaultProps$1i = {
3922
+ const defaultProps$1j = {
3865
3923
  ...ComponentDefaults,
3866
3924
  position: "top",
3867
3925
  zIndex: 2e3
3868
3926
  };
3869
- const classPrefix$5 = "nut-sticky";
3927
+ const classPrefix$b = "nut-sticky";
3870
3928
  const Sticky = (props) => {
3871
3929
  const {
3872
3930
  position,
@@ -3878,7 +3936,7 @@ var __publicField = (obj, key, value) => {
3878
3936
  className,
3879
3937
  onChange,
3880
3938
  ...rest
3881
- } = { ...defaultProps$1i, ...props };
3939
+ } = { ...defaultProps$1j, ...props };
3882
3940
  const stickyRef = React.useRef(null);
3883
3941
  const rootRef = React.useRef(null);
3884
3942
  const [rootRect, setRootRect] = React.useState({});
@@ -3968,7 +4026,7 @@ var __publicField = (obj, key, value) => {
3968
4026
  {
3969
4027
  ref: rootRef,
3970
4028
  style: rootStyle,
3971
- className: classNames(classPrefix$5, className),
4029
+ className: classNames(classPrefix$b, className),
3972
4030
  ...rest,
3973
4031
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
3974
4032
  "div",
@@ -3984,9 +4042,9 @@ var __publicField = (obj, key, value) => {
3984
4042
  }
3985
4043
  );
3986
4044
  };
3987
- Sticky.defaultProps = defaultProps$1i;
4045
+ Sticky.defaultProps = defaultProps$1j;
3988
4046
  Sticky.displayName = "NutSticky";
3989
- const defaultProps$1h = {
4047
+ const defaultProps$1i = {
3990
4048
  ...ComponentDefaults,
3991
4049
  threshold: 200,
3992
4050
  zIndex: 10,
@@ -3994,7 +4052,7 @@ var __publicField = (obj, key, value) => {
3994
4052
  };
3995
4053
  const BackTop = (props) => {
3996
4054
  const { children, threshold, zIndex, className, duration, style, onClick } = {
3997
- ...defaultProps$1h,
4055
+ ...defaultProps$1i,
3998
4056
  ...props
3999
4057
  };
4000
4058
  const classPrefix2 = "nut-backtop";
@@ -4032,10 +4090,10 @@ var __publicField = (obj, key, value) => {
4032
4090
  }
4033
4091
  );
4034
4092
  };
4035
- BackTop.defaultProps = defaultProps$1h;
4093
+ BackTop.defaultProps = defaultProps$1i;
4036
4094
  BackTop.displayName = "NutBackTop";
4037
4095
  const elevatorContext = React.createContext({});
4038
- const defaultProps$1g = {
4096
+ const defaultProps$1h = {
4039
4097
  ...ComponentDefaults,
4040
4098
  height: "200px",
4041
4099
  floorKey: "title",
@@ -4060,7 +4118,7 @@ var __publicField = (obj, key, value) => {
4060
4118
  children,
4061
4119
  ...rest
4062
4120
  } = {
4063
- ...defaultProps$1g,
4121
+ ...defaultProps$1h,
4064
4122
  ...props
4065
4123
  };
4066
4124
  const classPrefix2 = "nut-elevator";
@@ -4084,6 +4142,7 @@ var __publicField = (obj, key, value) => {
4084
4142
  const [scrollStart, setScrollStart] = React.useState(false);
4085
4143
  const state = React.useRef(initData);
4086
4144
  const [scrollTop, setScrollTop] = React.useState(0);
4145
+ const [scrollY, setScrollY] = React.useState(0);
4087
4146
  const resetScrollState = () => {
4088
4147
  setScrollStart(false);
4089
4148
  };
@@ -4121,7 +4180,11 @@ var __publicField = (obj, key, value) => {
4121
4180
  cacheIndex = state.current.listHeight.length - 2;
4122
4181
  }
4123
4182
  setCodeIndex(cacheIndex);
4124
- setScrollTop(state.current.listHeight[cacheIndex]);
4183
+ const scrollTop2 = state.current.listHeight[cacheIndex];
4184
+ setScrollTop(scrollTop2);
4185
+ if (sticky && scrollY !== scrollTop2) {
4186
+ setScrollY(Math.floor(scrollTop2) > 0 ? 1 : 0);
4187
+ }
4125
4188
  };
4126
4189
  const touchMove = (e) => {
4127
4190
  const firstTouch = e.touches[0];
@@ -4169,7 +4232,10 @@ var __publicField = (obj, key, value) => {
4169
4232
  const target = e.target;
4170
4233
  const { scrollTop: scrollTop2 } = target;
4171
4234
  state.current.scrollY = Math.floor(scrollTop2);
4172
- setScrollTop(scrollTop2);
4235
+ Taro.getEnv() === "WEB" && setScrollTop(scrollTop2);
4236
+ if (sticky && scrollTop2 !== scrollY) {
4237
+ setScrollY(Math.floor(scrollTop2) > 0 ? 1 : 0);
4238
+ }
4173
4239
  for (let i = 0; i < listHeight.length - 1; i++) {
4174
4240
  const height1 = listHeight[i];
4175
4241
  const height2 = listHeight[i + 1];
@@ -4178,7 +4244,6 @@ var __publicField = (obj, key, value) => {
4178
4244
  return;
4179
4245
  }
4180
4246
  }
4181
- setCurrentIndex(listHeight.length - 2);
4182
4247
  };
4183
4248
  React.useEffect(() => {
4184
4249
  if (listview.current) {
@@ -4188,7 +4253,6 @@ var __publicField = (obj, key, value) => {
4188
4253
  }
4189
4254
  }, [listview]);
4190
4255
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix2} ${className}`, style, ...rest, children: [
4191
- sticky && scrollTop > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__list__fixed`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `${classPrefix2}__list__fixed__title`, children: list[currentIndex][floorKey] }) }) : null,
4192
4256
  /* @__PURE__ */ jsxRuntimeExports.jsx(
4193
4257
  "div",
4194
4258
  {
@@ -4199,6 +4263,8 @@ var __publicField = (obj, key, value) => {
4199
4263
  {
4200
4264
  scrollTop,
4201
4265
  scrollY: true,
4266
+ scrollWithAnimation: true,
4267
+ scrollAnchoring: true,
4202
4268
  className: `${classPrefix2}__list__inner`,
4203
4269
  type: "list",
4204
4270
  ref: listview,
@@ -4267,13 +4333,14 @@ var __publicField = (obj, key, value) => {
4267
4333
  );
4268
4334
  })
4269
4335
  }
4270
- ) })
4336
+ ) }),
4337
+ sticky && scrollY > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__list__fixed`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `${classPrefix2}__list__fixed__title`, children: list[currentIndex][floorKey] }) }) : null
4271
4338
  ] });
4272
4339
  };
4273
- Elevator.defaultProps = defaultProps$1g;
4340
+ Elevator.defaultProps = defaultProps$1h;
4274
4341
  Elevator.displayName = "NutElevator";
4275
4342
  Elevator.Context = elevatorContext;
4276
- const defaultProps$1f = {
4343
+ const defaultProps$1g = {
4277
4344
  ...ComponentDefaults,
4278
4345
  activeText: "",
4279
4346
  inactiveText: "",
@@ -4301,7 +4368,7 @@ var __publicField = (obj, key, value) => {
4301
4368
  content,
4302
4369
  ...rest
4303
4370
  } = {
4304
- ...defaultProps$1f,
4371
+ ...defaultProps$1g,
4305
4372
  ...props
4306
4373
  };
4307
4374
  const classPrefix2 = "nut-fixednav";
@@ -4353,16 +4420,16 @@ var __publicField = (obj, key, value) => {
4353
4420
  );
4354
4421
  }) }) }),
4355
4422
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__btn`, onClick: () => onUpdateValue(), children: content || /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
4356
- /* @__PURE__ */ jsxRuntimeExports.jsx(a$g, { color: "#fff" }),
4423
+ /* @__PURE__ */ jsxRuntimeExports.jsx(a$h, { color: "#fff" }),
4357
4424
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text", children: visible ? activeText || locale.fixednav.activeText : inactiveText || locale.fixednav.inactiveText })
4358
4425
  ] }) })
4359
4426
  ]
4360
4427
  }
4361
4428
  );
4362
4429
  };
4363
- FixedNav.defaultProps = defaultProps$1f;
4430
+ FixedNav.defaultProps = defaultProps$1g;
4364
4431
  FixedNav.displayName = "NutFixedNav";
4365
- const defaultProps$1e = {
4432
+ const defaultProps$1f = {
4366
4433
  ...ComponentDefaults,
4367
4434
  left: "",
4368
4435
  right: "",
@@ -4385,7 +4452,7 @@ var __publicField = (obj, key, value) => {
4385
4452
  zIndex,
4386
4453
  onClickBack
4387
4454
  } = {
4388
- ...defaultProps$1e,
4455
+ ...defaultProps$1f,
4389
4456
  ...props
4390
4457
  };
4391
4458
  const classPrefix2 = "nut-navbar";
@@ -4429,7 +4496,7 @@ var __publicField = (obj, key, value) => {
4429
4496
  const cls = classNames(classPrefix2, classes, className);
4430
4497
  return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: fixed && placeholder ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}--placeholder`, children: renderWrapper() }) : renderWrapper() });
4431
4498
  };
4432
- NavBar.defaultProps = defaultProps$1e;
4499
+ NavBar.defaultProps = defaultProps$1f;
4433
4500
  NavBar.displayName = "NutNavBar";
4434
4501
  function _extends$3() {
4435
4502
  _extends$3 = Object.assign ? Object.assign.bind() : function(target) {
@@ -6172,7 +6239,7 @@ var __publicField = (obj, key, value) => {
6172
6239
  onExited: propTypesExports.func
6173
6240
  }) : {};
6174
6241
  const CSSTransition$1 = CSSTransition;
6175
- const defaultProps$1d = {
6242
+ const defaultProps$1e = {
6176
6243
  ...ComponentDefaults,
6177
6244
  position: "center",
6178
6245
  transition: "",
@@ -6303,7 +6370,7 @@ var __publicField = (obj, key, value) => {
6303
6370
  };
6304
6371
  const renderIcon = () => {
6305
6372
  if (closeable) {
6306
- return /* @__PURE__ */ jsxRuntimeExports.jsx(components.View, { className: closeClasses, onClick: onHandleClickCloseIcon, children: React.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$n, { width: 12, height: 12 }) });
6373
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(components.View, { className: closeClasses, onClick: onHandleClickCloseIcon, children: React.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { width: 12, height: 12 }) });
6307
6374
  }
6308
6375
  return null;
6309
6376
  };
@@ -6359,10 +6426,10 @@ var __publicField = (obj, key, value) => {
6359
6426
  }, [position, transition]);
6360
6427
  return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: renderToContainer(portal, renderNode()) });
6361
6428
  };
6362
- Popup.defaultProps = defaultProps$1d;
6429
+ Popup.defaultProps = defaultProps$1e;
6363
6430
  Popup.displayName = "NutPopup";
6364
6431
  const OffsetContext = React.createContext(20);
6365
- const defaultProps$1c = {
6432
+ const defaultProps$1d = {
6366
6433
  showhead: false,
6367
6434
  position: "left",
6368
6435
  width: "80%"
@@ -6379,7 +6446,7 @@ var __publicField = (obj, key, value) => {
6379
6446
  onClose,
6380
6447
  ...rest
6381
6448
  } = {
6382
- ...defaultProps$1c,
6449
+ ...defaultProps$1d,
6383
6450
  ...props
6384
6451
  };
6385
6452
  const offset = props.offset ? Number(props.offset) : 20;
@@ -6430,7 +6497,7 @@ var __publicField = (obj, key, value) => {
6430
6497
  }
6431
6498
  );
6432
6499
  };
6433
- SideNavBar.defaultProps = defaultProps$1c;
6500
+ SideNavBar.defaultProps = defaultProps$1d;
6434
6501
  SideNavBar.displayName = "NutSideNavBar";
6435
6502
  const SideNavBarItem = (props) => {
6436
6503
  const { title, key, children, onClick, ...rest } = props;
@@ -6448,12 +6515,12 @@ var __publicField = (obj, key, value) => {
6448
6515
  }
6449
6516
  );
6450
6517
  };
6451
- const defaultProps$1b = {
6518
+ const defaultProps$1c = {
6452
6519
  open: true
6453
6520
  };
6454
6521
  const SubSideNavBar = (props) => {
6455
6522
  const { title, key, children, onClick, open, ...rest } = {
6456
- ...defaultProps$1b,
6523
+ ...defaultProps$1c,
6457
6524
  ...props
6458
6525
  };
6459
6526
  const [subShow, setSubShow] = React.useState(open);
@@ -6527,7 +6594,7 @@ var __publicField = (obj, key, value) => {
6527
6594
  }
6528
6595
  return [uncontrolled, handleUncontrolledChange];
6529
6596
  }
6530
- const defaultProps$1a = {
6597
+ const defaultProps$1b = {
6531
6598
  ...ComponentDefaults,
6532
6599
  value: "",
6533
6600
  dot: false,
@@ -6538,7 +6605,7 @@ var __publicField = (obj, key, value) => {
6538
6605
  };
6539
6606
  const Badge = (props) => {
6540
6607
  const { className, style, value, max, children, dot, top, right, color } = {
6541
- ...defaultProps$1a,
6608
+ ...defaultProps$1b,
6542
6609
  ...props
6543
6610
  };
6544
6611
  const classPrefix2 = "nut-badge";
@@ -6569,9 +6636,9 @@ var __publicField = (obj, key, value) => {
6569
6636
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: contentClasses, style: getStyle(), children: content() })
6570
6637
  ] });
6571
6638
  };
6572
- Badge.defaultProps = defaultProps$1a;
6639
+ Badge.defaultProps = defaultProps$1b;
6573
6640
  Badge.displayName = "NutBadge";
6574
- const defaultProps$19 = {
6641
+ const defaultProps$1a = {
6575
6642
  ...ComponentDefaults,
6576
6643
  title: "",
6577
6644
  icon: null,
@@ -6593,7 +6660,7 @@ var __publicField = (obj, key, value) => {
6593
6660
  handleClick,
6594
6661
  ...rest
6595
6662
  } = {
6596
- ...defaultProps$19,
6663
+ ...defaultProps$1a,
6597
6664
  ...props
6598
6665
  };
6599
6666
  const classPrefix2 = "nut-tabbar-item";
@@ -6620,7 +6687,7 @@ var __publicField = (obj, key, value) => {
6620
6687
  }
6621
6688
  );
6622
6689
  };
6623
- const defaultProps$18 = {
6690
+ const defaultProps$19 = {
6624
6691
  ...ComponentDefaults,
6625
6692
  defaultValue: 0,
6626
6693
  fixed: false,
@@ -6643,7 +6710,7 @@ var __publicField = (obj, key, value) => {
6643
6710
  style,
6644
6711
  onSwitch
6645
6712
  } = {
6646
- ...defaultProps$18,
6713
+ ...defaultProps$19,
6647
6714
  ...props
6648
6715
  };
6649
6716
  const classPrefix2 = "nut-tabbar";
@@ -6680,17 +6747,17 @@ var __publicField = (obj, key, value) => {
6680
6747
  }
6681
6748
  );
6682
6749
  };
6683
- Tabbar.defaultProps = defaultProps$18;
6750
+ Tabbar.defaultProps = defaultProps$19;
6684
6751
  Tabbar.displayName = "NutTabbar";
6685
6752
  Tabbar.Item = TabbarItem;
6686
- const defaultProps$17 = {
6753
+ const defaultProps$18 = {
6687
6754
  title: "",
6688
6755
  value: "",
6689
6756
  disabled: false
6690
6757
  };
6691
6758
  const TabPane = (props) => {
6692
6759
  const { children, autoHeightClassName, className, disabled } = {
6693
- ...defaultProps$17,
6760
+ ...defaultProps$18,
6694
6761
  ...props
6695
6762
  };
6696
6763
  const classPrefix2 = "nut-tabpane";
@@ -6704,7 +6771,7 @@ var __publicField = (obj, key, value) => {
6704
6771
  );
6705
6772
  return children ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes, children: !disabled && children }) : null;
6706
6773
  };
6707
- const defaultProps$16 = {
6774
+ const defaultProps$17 = {
6708
6775
  ...ComponentDefaults,
6709
6776
  tabStyle: {},
6710
6777
  activeColor: "",
@@ -6713,7 +6780,7 @@ var __publicField = (obj, key, value) => {
6713
6780
  duration: 300,
6714
6781
  autoHeight: false
6715
6782
  };
6716
- const classPrefix$4 = "nut-tabs";
6783
+ const classPrefix$a = "nut-tabs";
6717
6784
  const Tabs = (props) => {
6718
6785
  const {
6719
6786
  activeColor,
@@ -6730,7 +6797,7 @@ var __publicField = (obj, key, value) => {
6730
6797
  autoHeight,
6731
6798
  ...rest
6732
6799
  } = {
6733
- ...defaultProps$16,
6800
+ ...defaultProps$17,
6734
6801
  ...props
6735
6802
  };
6736
6803
  const [value, setValue] = usePropsValue({
@@ -6759,15 +6826,25 @@ var __publicField = (obj, key, value) => {
6759
6826
  return titles2;
6760
6827
  };
6761
6828
  const titles = React.useRef(getTitles());
6829
+ React.useEffect(() => {
6830
+ titles.current = getTitles();
6831
+ let current = "";
6832
+ titles.current.forEach((title2) => {
6833
+ if (title2.value === value) {
6834
+ current = value;
6835
+ }
6836
+ });
6837
+ setValue(current);
6838
+ }, [children]);
6762
6839
  const classes = classNames(
6763
- classPrefix$4,
6764
- `${classPrefix$4}--${direction}`,
6840
+ classPrefix$a,
6841
+ `${classPrefix$a}--${direction}`,
6765
6842
  className
6766
6843
  );
6767
- const classesTitle = classNames(`${classPrefix$4}__titles`, {
6768
- [`${classPrefix$4}__titles--${activeType}`]: activeType,
6769
- [`${classPrefix$4}__titles--scrollable`]: true,
6770
- [`${classPrefix$4}__titles--${align}`]: align
6844
+ const classesTitle = classNames(`${classPrefix$a}__titles`, {
6845
+ [`${classPrefix$a}__titles--${activeType}`]: activeType,
6846
+ [`${classPrefix$a}__titles--scrollable`]: true,
6847
+ [`${classPrefix$a}__titles--${align}`]: align
6771
6848
  });
6772
6849
  const tabsActiveStyle = {
6773
6850
  color: activeType === "smile" ? activeColor : "",
@@ -6813,7 +6890,7 @@ var __publicField = (obj, key, value) => {
6813
6890
  onClick: (e) => {
6814
6891
  tabChange(item);
6815
6892
  },
6816
- className: classNames(`${classPrefix$4}__titles-item`, {
6893
+ className: classNames(`${classPrefix$a}__titles-item`, {
6817
6894
  [`nut-tabs__titles-item--active`]: !item.disabled && String(item.value) === String(value),
6818
6895
  [`nut-tabs__titles-item--disabled`]: item.disabled,
6819
6896
  [`nut-tabs__titles-item--${align}`]: align
@@ -6822,16 +6899,16 @@ var __publicField = (obj, key, value) => {
6822
6899
  activeType === "line" && /* @__PURE__ */ jsxRuntimeExports.jsx(
6823
6900
  components.View,
6824
6901
  {
6825
- className: `${classPrefix$4}__titles-item__line`,
6902
+ className: `${classPrefix$a}__titles-item__line`,
6826
6903
  style: tabsActiveStyle
6827
6904
  }
6828
6905
  ),
6829
6906
  activeType === "smile" && /* @__PURE__ */ jsxRuntimeExports.jsx(
6830
6907
  components.View,
6831
6908
  {
6832
- className: `${classPrefix$4}__titles-item__smile`,
6909
+ className: `${classPrefix$a}__titles-item__smile`,
6833
6910
  style: tabsActiveStyle,
6834
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$h, { color: activeColor, width: 40, height: 20 })
6911
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$i, { color: activeColor, width: 40, height: 20 })
6835
6912
  }
6836
6913
  ),
6837
6914
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -6841,7 +6918,7 @@ var __publicField = (obj, key, value) => {
6841
6918
  {
6842
6919
  ellipsis: true
6843
6920
  },
6844
- `${classPrefix$4}__titles-item__text`
6921
+ `${classPrefix$a}__titles-item__text`
6845
6922
  ),
6846
6923
  children: item.title
6847
6924
  }
@@ -6853,7 +6930,7 @@ var __publicField = (obj, key, value) => {
6853
6930
  })
6854
6931
  }
6855
6932
  ),
6856
- /* @__PURE__ */ jsxRuntimeExports.jsx(components.View, { className: `${classPrefix$4}__content__wrap`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(components.View, { className: `${classPrefix$4}__content`, style: contentStyle, children: React.Children.map(children, (child, idx) => {
6933
+ /* @__PURE__ */ jsxRuntimeExports.jsx(components.View, { className: `${classPrefix$a}__content__wrap`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(components.View, { className: `${classPrefix$a}__content`, style: contentStyle, children: React.Children.map(children, (child, idx) => {
6857
6934
  if (!React.isValidElement(child)) {
6858
6935
  return null;
6859
6936
  }
@@ -6871,7 +6948,7 @@ var __publicField = (obj, key, value) => {
6871
6948
  }) }) })
6872
6949
  ] });
6873
6950
  };
6874
- Tabs.defaultProps = defaultProps$16;
6951
+ Tabs.defaultProps = defaultProps$17;
6875
6952
  Tabs.displayName = "NutTabs";
6876
6953
  Tabs.TabPane = TabPane;
6877
6954
  var classnameExports = {};
@@ -7006,7 +7083,7 @@ var __publicField = (obj, key, value) => {
7006
7083
  const useConfig = () => {
7007
7084
  return React.useContext(ConfigContext) ?? getDefaultConfig();
7008
7085
  };
7009
- const defaultProps$15 = {
7086
+ const defaultProps$16 = {
7010
7087
  type: "custom",
7011
7088
  existAddress: [],
7012
7089
  defaultIcon: null,
@@ -7028,7 +7105,7 @@ var __publicField = (obj, key, value) => {
7028
7105
  onClose,
7029
7106
  onSwitchModule,
7030
7107
  ...rest
7031
- } = { ...defaultProps$15, ...props };
7108
+ } = { ...defaultProps$16, ...props };
7032
7109
  const b2 = cn("address");
7033
7110
  const selectedExist = (item) => {
7034
7111
  const copyExistAdd = existAddress;
@@ -7070,7 +7147,7 @@ var __publicField = (obj, key, value) => {
7070
7147
  isShowCustomAddress && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("choose-other"), onClick: onSwitch, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("choose-other-btn"), children: customAndExistTitle || locale.address.chooseAnotherAddress }) })
7071
7148
  ] });
7072
7149
  };
7073
- const defaultProps$14 = {
7150
+ const defaultProps$15 = {
7074
7151
  modelValue: [],
7075
7152
  type: "custom",
7076
7153
  province: [],
@@ -7095,7 +7172,7 @@ var __publicField = (obj, key, value) => {
7095
7172
  onClose,
7096
7173
  ...rest
7097
7174
  } = {
7098
- ...defaultProps$14,
7175
+ ...defaultProps$15,
7099
7176
  ...props
7100
7177
  };
7101
7178
  const b2 = cn("address");
@@ -7259,28 +7336,28 @@ var __publicField = (obj, key, value) => {
7259
7336
  nextAreaList(item);
7260
7337
  };
7261
7338
  React.useEffect(() => {
7262
- const { province: province2 } = { ...defaultProps$14, ...props };
7339
+ const { province: province2 } = { ...defaultProps$15, ...props };
7263
7340
  setRegionList({
7264
7341
  ...regionList,
7265
7342
  province: isCustom2() ? transformData(province2) : province2
7266
7343
  });
7267
7344
  }, [province]);
7268
7345
  React.useEffect(() => {
7269
- const { city: city2 } = { ...defaultProps$14, ...props };
7346
+ const { city: city2 } = { ...defaultProps$15, ...props };
7270
7347
  setRegionList({
7271
7348
  ...regionList,
7272
7349
  city: isCustom2() ? transformData(city2) : city2
7273
7350
  });
7274
7351
  }, [city]);
7275
7352
  React.useEffect(() => {
7276
- const { country: country2 } = { ...defaultProps$14, ...props };
7353
+ const { country: country2 } = { ...defaultProps$15, ...props };
7277
7354
  setRegionList({
7278
7355
  ...regionList,
7279
7356
  country: isCustom2() ? transformData(country2) : country2
7280
7357
  });
7281
7358
  }, [country]);
7282
7359
  React.useEffect(() => {
7283
- const { town: town2 } = { ...defaultProps$14, ...props };
7360
+ const { town: town2 } = { ...defaultProps$15, ...props };
7284
7361
  setRegionList({
7285
7362
  ...regionList,
7286
7363
  town: isCustom2() ? transformData(town2) : town2
@@ -7330,7 +7407,7 @@ var __publicField = (obj, key, value) => {
7330
7407
  },
7331
7408
  children: [
7332
7409
  selectedRegion && selectedRegion[tabName[tabIndex]].id === item.id && /* @__PURE__ */ jsxRuntimeExports.jsx(
7333
- a$r,
7410
+ a$s,
7334
7411
  {
7335
7412
  className: b2("region-item--icon"),
7336
7413
  color: "#FA2C19",
@@ -7353,7 +7430,7 @@ var __publicField = (obj, key, value) => {
7353
7430
  ) })
7354
7431
  ] });
7355
7432
  };
7356
- const defaultProps$13 = {
7433
+ const defaultProps$14 = {
7357
7434
  ...ComponentDefaults,
7358
7435
  modelValue: false,
7359
7436
  modelSelect: [],
@@ -7404,7 +7481,7 @@ var __publicField = (obj, key, value) => {
7404
7481
  className,
7405
7482
  ...rest
7406
7483
  } = {
7407
- ...defaultProps$13,
7484
+ ...defaultProps$14,
7408
7485
  ...props
7409
7486
  };
7410
7487
  const b2 = cn("address");
@@ -7494,9 +7571,9 @@ var __publicField = (obj, key, value) => {
7494
7571
  };
7495
7572
  const headerRender = () => {
7496
7573
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: b2("header"), children: [
7497
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "arrow-back", onClick: onSwitchModule, children: privateType === "custom" && (React.isValidElement(backBtnIcon) ? backBtnIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$g, { color: "#cccccc" })) }),
7574
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "arrow-back", onClick: onSwitchModule, children: privateType === "custom" && (React.isValidElement(backBtnIcon) ? backBtnIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$h, { color: "#cccccc" })) }),
7498
7575
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("header__title"), children: privateType === "custom" ? customAddressTitle || locale.address.selectRegion : existAddressTitle || locale.address.deliveryTo }),
7499
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { onClick: () => handClose(), children: React.isValidElement(closeBtnIcon) ? closeBtnIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { size: 18, color: "#ccc" }) })
7576
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { onClick: () => handClose(), children: React.isValidElement(closeBtnIcon) ? closeBtnIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$p, { size: 18, color: "#ccc" }) })
7500
7577
  ] });
7501
7578
  };
7502
7579
  React.useEffect(() => {
@@ -7548,8 +7625,8 @@ var __publicField = (obj, key, value) => {
7548
7625
  {
7549
7626
  type: privateType,
7550
7627
  existAddress,
7551
- selectedIcon: React.isValidElement(selectedIcon) ? selectedIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$r, { color: "#FA2C19" }),
7552
- defaultIcon: React.isValidElement(defaultIcon) ? defaultIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(r$d, {}),
7628
+ selectedIcon: React.isValidElement(selectedIcon) ? selectedIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$s, { color: "#FA2C19" }),
7629
+ defaultIcon: React.isValidElement(defaultIcon) ? defaultIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, {}),
7553
7630
  isShowCustomAddress,
7554
7631
  customAndExistTitle: customAndExistTitle || locale.address.chooseAnotherAddress,
7555
7632
  onSelected: selectedExist,
@@ -7562,7 +7639,7 @@ var __publicField = (obj, key, value) => {
7562
7639
  }
7563
7640
  ) });
7564
7641
  };
7565
- Address.defaultProps = defaultProps$13;
7642
+ Address.defaultProps = defaultProps$14;
7566
7643
  Address.displayName = "NutAddress";
7567
7644
  const Utils = {
7568
7645
  /**
@@ -7695,7 +7772,7 @@ var __publicField = (obj, key, value) => {
7695
7772
  }
7696
7773
  }
7697
7774
  const requestAniFrame$1 = requestAniFrame();
7698
- const defaultProps$12 = {
7775
+ const defaultProps$13 = {
7699
7776
  type: "one",
7700
7777
  isAutoBackFill: false,
7701
7778
  poppable: true,
@@ -7747,7 +7824,7 @@ var __publicField = (obj, key, value) => {
7747
7824
  onUpdate,
7748
7825
  onSelected,
7749
7826
  onYearMonthChange
7750
- } = { ...defaultProps$12, ...props };
7827
+ } = { ...defaultProps$13, ...props };
7751
7828
  const weeks = locale.calendaritem.weekdays;
7752
7829
  const [yearMonthTitle, setYearMonthTitle] = React.useState("");
7753
7830
  const [monthsData, setMonthsData] = React.useState([]);
@@ -8352,9 +8429,9 @@ var __publicField = (obj, key, value) => {
8352
8429
  poppable && !isAutoBackFill ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-calendar-footer", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "calendar-confirm-btn", onClick: confirm, children: confirmText || locale.confirm }) }) : ""
8353
8430
  ] }) });
8354
8431
  });
8355
- CalendarItem.defaultProps = defaultProps$12;
8432
+ CalendarItem.defaultProps = defaultProps$13;
8356
8433
  CalendarItem.displayName = "NutCalendarItem";
8357
- const defaultProps$11 = {
8434
+ const defaultProps$12 = {
8358
8435
  type: "one",
8359
8436
  isAutoBackFill: false,
8360
8437
  poppable: true,
@@ -8410,7 +8487,7 @@ var __publicField = (obj, key, value) => {
8410
8487
  onChoose,
8411
8488
  onSelected,
8412
8489
  onYearMonthChange
8413
- } = { ...defaultProps$11, ...props };
8490
+ } = { ...defaultProps$12, ...props };
8414
8491
  const calendarRef = React.useRef(null);
8415
8492
  const close = () => {
8416
8493
  onClose && onClose();
@@ -8480,9 +8557,9 @@ var __publicField = (obj, key, value) => {
8480
8557
  }
8481
8558
  ) : renderItem() });
8482
8559
  });
8483
- Calendar.defaultProps = defaultProps$11;
8560
+ Calendar.defaultProps = defaultProps$12;
8484
8561
  Calendar.displayName = "NutCalendar";
8485
- const defaultProps$10 = {
8562
+ const defaultProps$11 = {
8486
8563
  data: {
8487
8564
  text: "",
8488
8565
  value: "",
@@ -8493,32 +8570,37 @@ var __publicField = (obj, key, value) => {
8493
8570
  },
8494
8571
  activeColor: "",
8495
8572
  checked: false,
8496
- checkedIcon: "checklist",
8573
+ activeIcon: "checklist",
8497
8574
  chooseItem: () => {
8498
8575
  }
8499
8576
  };
8500
8577
  const InternalCascaderItem = (props, ref) => {
8501
- const { data, checked, checkedIcon, chooseItem, activeColor } = {
8502
- ...defaultProps$10,
8578
+ const { data, checked, activeIcon, chooseItem, activeColor } = {
8579
+ ...defaultProps$11,
8503
8580
  ...props
8504
8581
  };
8505
- const b2 = cn("cascader-item");
8582
+ const classPrefix2 = "nut-cascader-item";
8506
8583
  const classes = classNames(
8507
8584
  {
8508
8585
  active: checked,
8509
8586
  disabled: data.disabled
8510
8587
  },
8511
- b2("")
8588
+ classPrefix2
8512
8589
  );
8513
8590
  const classesTitle = classNames({
8514
- [`${b2("")}__title`]: true
8591
+ [`${classPrefix2}__title`]: true
8515
8592
  });
8516
8593
  const renderIcon = () => {
8517
8594
  if (checked) {
8518
- if (React.isValidElement(checkedIcon)) {
8519
- return checkedIcon;
8595
+ if (React.isValidElement(activeIcon)) {
8596
+ return activeIcon;
8520
8597
  }
8521
- return /* @__PURE__ */ jsxRuntimeExports.jsx(a$p, { className: `${checked ? b2("icon-check") : ""}` });
8598
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
8599
+ a$q,
8600
+ {
8601
+ className: `${checked ? `${classPrefix2}__icon-check` : ""}`
8602
+ }
8603
+ );
8522
8604
  }
8523
8605
  return null;
8524
8606
  };
@@ -8532,13 +8614,13 @@ var __publicField = (obj, key, value) => {
8532
8614
  },
8533
8615
  children: [
8534
8616
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classesTitle, children: data.text }),
8535
- data.loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, { color: "#969799", className: "nut-cascader-item__icon-loading" }) : renderIcon()
8617
+ data.loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(r$f, { color: "#969799", className: "nut-cascader-item__icon-loading" }) : renderIcon()
8536
8618
  ]
8537
8619
  }
8538
8620
  );
8539
8621
  };
8540
8622
  const CascaderItem = React.forwardRef(InternalCascaderItem);
8541
- CascaderItem.defaultProps = defaultProps$10;
8623
+ CascaderItem.defaultProps = defaultProps$11;
8542
8624
  CascaderItem.displayName = "NutCascaderItem";
8543
8625
  const formatTree = (tree, parent, config2) => tree.map((node) => {
8544
8626
  const {
@@ -8676,26 +8758,22 @@ var __publicField = (obj, key, value) => {
8676
8758
  }
8677
8759
  }
8678
8760
  const Tree$1 = Tree;
8679
- const defaultProps$$ = {
8680
- className: "",
8681
- style: {},
8761
+ const defaultProps$10 = {
8762
+ ...ComponentDefaults,
8682
8763
  activeColor: "",
8683
- checkedIcon: "checklist",
8684
- tabsColor: "",
8685
- poppable: true,
8764
+ activeIcon: "checklist",
8765
+ popup: true,
8686
8766
  visible: false,
8687
8767
  options: [],
8688
8768
  value: [],
8689
8769
  title: "",
8690
- textKey: "text",
8691
- valueKey: "value",
8692
- childrenKey: "children",
8693
- convertConfig: {},
8770
+ optionKey: { textKey: "text", valueKey: "value", childrenKey: "children" },
8771
+ format: {},
8694
8772
  closeable: false,
8695
8773
  closeIconPosition: "top-right",
8696
8774
  closeIcon: "close",
8697
8775
  lazy: false,
8698
- lazyLoad: () => {
8776
+ onLoad: () => {
8699
8777
  },
8700
8778
  onClose: () => {
8701
8779
  },
@@ -8709,28 +8787,25 @@ var __publicField = (obj, key, value) => {
8709
8787
  const {
8710
8788
  className,
8711
8789
  style,
8712
- tabsColor,
8713
- poppable,
8790
+ popup,
8714
8791
  visible,
8715
8792
  options,
8716
8793
  value,
8717
8794
  title,
8718
- textKey,
8719
- valueKey,
8720
- childrenKey,
8721
- convertConfig: convertConfig2,
8795
+ optionKey: optionKey2,
8796
+ format: format2,
8722
8797
  closeable,
8723
8798
  closeIconPosition,
8724
8799
  closeIcon,
8725
8800
  lazy,
8726
- lazyLoad,
8801
+ onLoad,
8727
8802
  onClose,
8728
8803
  onChange,
8729
8804
  onPathChange
8730
- } = { ...defaultProps$$, ...props };
8805
+ } = { ...defaultProps$10, ...props };
8731
8806
  const [tabvalue, setTabvalue] = React.useState("c1");
8732
8807
  const [optionsData, setOptionsData] = React.useState([]);
8733
- const isLazy = () => state.configs.lazy && Boolean(state.configs.lazyLoad);
8808
+ const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
8734
8809
  const [state] = React.useState({
8735
8810
  optionsData: [],
8736
8811
  panes: [
@@ -8748,44 +8823,38 @@ var __publicField = (obj, key, value) => {
8748
8823
  currentProcessNode: [],
8749
8824
  configs: {
8750
8825
  lazy,
8751
- lazyLoad,
8752
- valueKey,
8753
- textKey,
8754
- childrenKey,
8755
- convertConfig: convertConfig2
8826
+ onLoad,
8827
+ optionKey: optionKey2,
8828
+ format: format2
8756
8829
  },
8757
8830
  lazyLoadMap: /* @__PURE__ */ new Map()
8758
8831
  });
8759
- const b2 = cn("cascader");
8760
- const classes = classNames(b2(""));
8832
+ const classPrefix2 = classNames(`nut-cascader`);
8761
8833
  const classesPane = classNames({
8762
- [`${b2("")}-pane`]: true
8834
+ [`${classPrefix2}-pane`]: true
8763
8835
  });
8764
8836
  React.useEffect(() => {
8765
8837
  initData();
8766
- }, []);
8838
+ }, [options]);
8767
8839
  React.useEffect(() => {
8768
8840
  if (value !== state.innerValue) {
8769
8841
  state.innerValue = value;
8770
8842
  }
8771
8843
  }, [value]);
8772
- React.useEffect(() => {
8773
- initData();
8774
- }, [options]);
8775
8844
  const initData = async () => {
8776
8845
  state.lazyLoadMap.clear();
8777
- if (convertConfig2 && Object.keys(convertConfig2).length > 0) {
8846
+ if (format2 && Object.keys(format2).length > 0) {
8778
8847
  state.optionsData = convertListToOptions(
8779
8848
  options,
8780
- convertConfig2
8849
+ format2
8781
8850
  );
8782
8851
  } else {
8783
8852
  state.optionsData = options;
8784
8853
  }
8785
8854
  state.tree = new Tree$1(state.optionsData, {
8786
- value: state.configs.valueKey,
8787
- text: state.configs.textKey,
8788
- children: state.configs.childrenKey
8855
+ value: state.configs.optionKey.valueKey,
8856
+ text: state.configs.optionKey.textKey,
8857
+ children: state.configs.optionKey.childrenKey
8789
8858
  });
8790
8859
  if (isLazy() && !state.tree.nodes.length) {
8791
8860
  await invokeLazyLoad({
@@ -8851,7 +8920,7 @@ var __publicField = (obj, key, value) => {
8851
8920
  if (!node) {
8852
8921
  return;
8853
8922
  }
8854
- if (!state.configs.lazyLoad) {
8923
+ if (!state.configs.onLoad) {
8855
8924
  node.leaf = true;
8856
8925
  return;
8857
8926
  }
@@ -8864,7 +8933,7 @@ var __publicField = (obj, key, value) => {
8864
8933
  if (!lazyLoadPromise) {
8865
8934
  lazyLoadPromise = new Promise((resolve) => {
8866
8935
  var _a, _b;
8867
- (_b = (_a = state.configs).lazyLoad) == null ? void 0 : _b.call(_a, node, resolve);
8936
+ (_b = (_a = state.configs).onLoad) == null ? void 0 : _b.call(_a, node, resolve);
8868
8937
  });
8869
8938
  state.lazyLoadMap.set(node, lazyLoadPromise);
8870
8939
  }
@@ -8911,8 +8980,8 @@ var __publicField = (obj, key, value) => {
8911
8980
  selectedNode: null,
8912
8981
  paneKey: `c${state.tabsCursor + 1}`
8913
8982
  });
8914
- setTabvalue(`c${state.tabsCursor + 1}`);
8915
8983
  setOptionsData(state.panes);
8984
+ setTabvalue(`c${state.tabsCursor + 1}`);
8916
8985
  if (!type) {
8917
8986
  const pathNodes = state.panes.map((item) => item.selectedNode);
8918
8987
  const optionParams = pathNodes.map((item) => item == null ? void 0 : item.value);
@@ -8932,8 +9001,8 @@ var __publicField = (obj, key, value) => {
8932
9001
  setOptionsData(state.panes);
8933
9002
  };
8934
9003
  const renderItem = () => {
8935
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classes} ${className}`, style, children: [
8936
- poppable && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("title"), children: title }),
9004
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix2} ${className}`, style, children: [
9005
+ popup && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-cascader__title", children: title }),
8937
9006
  /* @__PURE__ */ jsxRuntimeExports.jsx(
8938
9007
  Tabs,
8939
9008
  {
@@ -8948,27 +9017,21 @@ var __publicField = (obj, key, value) => {
8948
9017
  setTabvalue(pane.paneKey);
8949
9018
  state.tabsCursor = index;
8950
9019
  },
8951
- className: `nut-tabs__titles-item ${tabvalue === pane.paneKey ? "active" : ""}`,
9020
+ className: `nut-tabs__titles-item ${tabvalue === pane.paneKey ? "nut-tabs__titles-item--active" : ""}`,
8952
9021
  children: [
8953
9022
  /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "nut-tabs__titles-item__text", children: [
8954
9023
  !state.initLoading && state.panes.length && ((_a = pane == null ? void 0 : pane.selectedNode) == null ? void 0 : _a.text),
8955
9024
  !state.initLoading && state.panes.length && !((_b = pane == null ? void 0 : pane.selectedNode) == null ? void 0 : _b.text) && "请选择",
8956
9025
  !(!state.initLoading && state.panes.length) && "Loading..."
8957
9026
  ] }),
8958
- /* @__PURE__ */ jsxRuntimeExports.jsx(
8959
- "span",
8960
- {
8961
- className: "nut-tabs__titles-item__line",
8962
- style: { background: tabsColor }
8963
- }
8964
- )
9027
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "nut-tabs__titles-item__line" })
8965
9028
  ]
8966
9029
  },
8967
9030
  pane.paneKey
8968
9031
  );
8969
9032
  });
8970
9033
  },
8971
- children: !state.initLoading && state.panes.length ? optionsData.map((pane) => /* @__PURE__ */ jsxRuntimeExports.jsx(TabPane, { value: pane.paneKey, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classesPane, children: pane.nodes && pane.nodes.map((node, index) => {
9034
+ children: !state.initLoading && state.panes.length ? optionsData.map((pane) => /* @__PURE__ */ jsxRuntimeExports.jsx(Tabs.TabPane, { value: pane.paneKey, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classesPane, children: pane.nodes && pane.nodes.map((node, index) => {
8972
9035
  var _a;
8973
9036
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
8974
9037
  CascaderItem,
@@ -8980,18 +9043,18 @@ var __publicField = (obj, key, value) => {
8980
9043
  },
8981
9044
  index
8982
9045
  );
8983
- }) }) }, pane.paneKey)) : /* @__PURE__ */ jsxRuntimeExports.jsx(TabPane, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classesPane }) })
9046
+ }) }) }, pane.paneKey)) : /* @__PURE__ */ jsxRuntimeExports.jsx(Tabs.TabPane, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classesPane }) })
8984
9047
  }
8985
9048
  )
8986
9049
  ] });
8987
9050
  };
8988
- return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: poppable ? /* @__PURE__ */ jsxRuntimeExports.jsx(
9051
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: popup ? /* @__PURE__ */ jsxRuntimeExports.jsx(
8989
9052
  Popup,
8990
9053
  {
8991
- className: "cascadar-popup",
8992
9054
  visible,
8993
9055
  position: "bottom",
8994
9056
  round: true,
9057
+ closeIcon,
8995
9058
  closeable,
8996
9059
  closeIconPosition,
8997
9060
  onClickOverlay: closePopup,
@@ -9001,74 +9064,76 @@ var __publicField = (obj, key, value) => {
9001
9064
  ) : renderItem() });
9002
9065
  };
9003
9066
  const Cascader = React.forwardRef(InternalCascader);
9004
- Cascader.defaultProps = defaultProps$$;
9067
+ Cascader.defaultProps = defaultProps$10;
9005
9068
  Cascader.displayName = "NutCascader";
9006
9069
  const CheckboxGroupContext = React.createContext(null);
9007
9070
  const Context = CheckboxGroupContext;
9008
- const defaultProps$_ = {
9009
- disabled: false,
9010
- checkedValue: [],
9071
+ const defaultProps$$ = {
9011
9072
  max: void 0,
9012
- textPosition: "right",
9073
+ labelPosition: "right",
9013
9074
  direction: "vertical",
9014
9075
  onChange: (value) => {
9015
9076
  },
9016
9077
  options: []
9017
9078
  };
9079
+ const classPrefix$9 = "nut-checkboxgroup";
9018
9080
  const CheckboxGroup = React.forwardRef(
9019
9081
  (props, ref) => {
9020
- const { children } = { ...defaultProps$_, ...props };
9021
- const b2 = cn("checkboxgroup");
9082
+ const { children } = { ...defaultProps$$, ...props };
9022
9083
  const {
9023
9084
  className,
9024
9085
  disabled,
9025
9086
  onChange,
9026
- checkedValue,
9087
+ value,
9088
+ defaultValue,
9027
9089
  max,
9028
- textPosition,
9090
+ labelPosition,
9029
9091
  direction,
9030
9092
  options,
9031
9093
  ...rest
9032
9094
  } = props;
9033
9095
  React.useImperativeHandle(ref, () => ({
9034
- toggleAll(state) {
9096
+ toggle(state) {
9035
9097
  if (state === false) {
9036
- setInnerValue([]);
9098
+ setValue([]);
9037
9099
  } else {
9038
9100
  const childrenLabel = [];
9039
9101
  React.Children.map(children, (child) => {
9040
9102
  const childProps = child.props;
9041
- childrenLabel.push(childProps.label || child.children);
9103
+ childrenLabel.push(childProps.value);
9042
9104
  });
9043
- setInnerValue(childrenLabel);
9105
+ setValue(childrenLabel);
9044
9106
  }
9045
9107
  },
9046
- toggleReverse() {
9108
+ reverse() {
9047
9109
  const childrenLabel = [];
9048
9110
  React.Children.map(children, (child) => {
9049
9111
  const childProps = child.props;
9050
- childrenLabel.push(childProps.label || child.children);
9112
+ childrenLabel.push(childProps.value);
9051
9113
  });
9052
9114
  const reverse = childrenLabel.filter(
9053
- (c) => (innerValue == null ? void 0 : innerValue.findIndex((v) => v === c)) === -1
9115
+ (c) => (_value == null ? void 0 : _value.findIndex((v) => v === c)) === -1
9054
9116
  );
9055
- setInnerValue(reverse);
9117
+ setValue(reverse);
9056
9118
  }
9057
9119
  }));
9058
- const [innerValue, setInnerValue] = React.useState(checkedValue || []);
9059
- React.useEffect(() => {
9060
- setInnerValue(checkedValue || []);
9061
- }, [checkedValue]);
9120
+ const [_value, setValue] = usePropsValue({
9121
+ value: props.value,
9122
+ defaultValue: props.defaultValue,
9123
+ finalValue: [],
9124
+ onChange
9125
+ });
9062
9126
  const renderOptions = React.useCallback(() => {
9063
- return options == null ? void 0 : options.map(({ label, value, disabled: disabled2, onChange: onChange2, ...rest2 }) => {
9127
+ return options == null ? void 0 : options.map(({ label, value: value2, disabled: disabled2, onChange: onChange2, ...rest2 }) => {
9064
9128
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
9065
9129
  Checkbox,
9066
9130
  {
9067
- children: label,
9068
- label: value,
9131
+ label,
9132
+ disabled: disabled2,
9133
+ value: value2,
9069
9134
  ...rest2
9070
9135
  },
9071
- value == null ? void 0 : value.toString()
9136
+ value2 == null ? void 0 : value2.toString()
9072
9137
  );
9073
9138
  });
9074
9139
  }, [options, max]);
@@ -9076,25 +9141,26 @@ var __publicField = (obj, key, value) => {
9076
9141
  Context.Provider,
9077
9142
  {
9078
9143
  value: {
9079
- textPosition: textPosition || "left",
9144
+ labelPosition: labelPosition || "right",
9080
9145
  disabled,
9081
9146
  max,
9082
- checkedValue: innerValue || [],
9083
- check: (value) => {
9084
- const combined = [...innerValue, value];
9085
- setInnerValue(combined);
9086
- onChange && onChange(combined);
9147
+ value: _value,
9148
+ check: (value2) => {
9149
+ const combined = [..._value, value2];
9150
+ setValue(combined);
9087
9151
  },
9088
- uncheck: (value) => {
9089
- const reduced = innerValue.filter((item) => item !== value);
9090
- setInnerValue(reduced);
9091
- onChange && onChange(reduced);
9152
+ uncheck: (value2) => {
9153
+ const reduced = _value.filter((item) => item !== value2);
9154
+ setValue(reduced);
9092
9155
  }
9093
9156
  },
9094
9157
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
9095
9158
  "div",
9096
9159
  {
9097
- className: `${b2()} nut-checkboxgroup--${props.direction} ${className || ""}`,
9160
+ className: classNames(classPrefix$9, {
9161
+ [`nut-checkboxgroup--${props.direction}`]: props.direction,
9162
+ className
9163
+ }),
9098
9164
  ...rest,
9099
9165
  children: (options == null ? void 0 : options.length) ? renderOptions() : children
9100
9166
  }
@@ -9103,107 +9169,117 @@ var __publicField = (obj, key, value) => {
9103
9169
  );
9104
9170
  }
9105
9171
  );
9106
- CheckboxGroup.defaultProps = defaultProps$_;
9172
+ CheckboxGroup.defaultProps = defaultProps$$;
9107
9173
  CheckboxGroup.displayName = "NutCheckboxGroup";
9108
- const defaultProps$Z = {
9174
+ const defaultProps$_ = {
9109
9175
  ...ComponentDefaults,
9110
- checked: false,
9111
9176
  disabled: false,
9112
- textPosition: "right",
9113
- iconSize: 18,
9114
- icon: "check-normal",
9115
- checkedIcon: "checked",
9116
- iconClassPrefix: "nut-icon",
9117
- iconFontClassName: "nutui-iconfont",
9118
- indeterminateIcon: "check-disabled",
9119
- onChange: (state, label) => {
9177
+ labelPosition: "right",
9178
+ icon: null,
9179
+ activeIcon: null,
9180
+ indeterminateIcon: null,
9181
+ onChange: (value) => {
9120
9182
  }
9121
9183
  };
9184
+ const classPrefix$8 = "nut-checkbox";
9122
9185
  const Checkbox = (props) => {
9123
9186
  const { children } = {
9124
- ...defaultProps$Z,
9187
+ ...defaultProps$_,
9125
9188
  ...props
9126
9189
  };
9127
- const b2 = cn("checkbox");
9128
9190
  const {
9129
9191
  icon,
9130
- iconSize,
9131
9192
  label,
9132
9193
  className,
9133
- checkedIcon,
9194
+ activeIcon,
9134
9195
  checked,
9196
+ value,
9197
+ defaultChecked,
9135
9198
  disabled,
9136
9199
  onChange,
9137
9200
  indeterminate,
9138
- iconClassPrefix,
9139
- iconFontClassName,
9140
9201
  indeterminateIcon,
9141
9202
  ...others
9142
9203
  } = props;
9143
- let { textPosition, ...rest } = others;
9204
+ let { labelPosition, ...rest } = others;
9144
9205
  const ctx2 = React.useContext(Context);
9145
- let [innerChecked, setInnerChecked] = React.useState(checked);
9206
+ let [innerChecked, setChecked] = usePropsValue({
9207
+ value: props.checked,
9208
+ defaultValue: props.defaultChecked,
9209
+ finalValue: defaultChecked,
9210
+ onChange
9211
+ });
9146
9212
  let [innerDisabled, setDisabled] = React.useState(disabled);
9147
- const [_indeterminate, setIndeterminate] = React.useState(indeterminate);
9213
+ const [innerIndeterminate, setIndeterminate] = React.useState(indeterminate);
9148
9214
  React.useEffect(() => {
9149
- !ctx2 && setInnerChecked(checked);
9150
9215
  setDisabled(disabled);
9216
+ }, [disabled]);
9217
+ React.useEffect(() => {
9151
9218
  setIndeterminate(indeterminate);
9152
- }, [disabled, checked, indeterminate]);
9219
+ }, [indeterminate]);
9153
9220
  if (ctx2) {
9154
- if (ctx2.textPosition !== void 0) {
9155
- textPosition = ctx2.textPosition;
9221
+ if (ctx2.labelPosition !== void 0) {
9222
+ labelPosition = ctx2.labelPosition;
9156
9223
  }
9157
- innerDisabled = ctx2.disabled;
9158
- innerChecked = ctx2.checkedValue.includes(label);
9159
- setInnerChecked = (checked2) => {
9224
+ innerDisabled = ctx2.disabled !== void 0 ? ctx2.disabled : innerDisabled;
9225
+ innerChecked = ctx2.value.includes(value);
9226
+ setChecked = (checked2) => {
9160
9227
  if (ctx2.disabled)
9161
9228
  return;
9162
9229
  if (checked2)
9163
- ctx2.check(label);
9230
+ ctx2.check(value);
9164
9231
  if (!checked2)
9165
- ctx2.uncheck(label);
9232
+ ctx2.uncheck(value);
9166
9233
  };
9167
9234
  }
9168
9235
  const renderIcon = () => {
9169
9236
  if (!innerChecked) {
9170
- return React.isValidElement(icon) ? icon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$s, { size: iconSize, className: color() });
9237
+ return React.isValidElement(icon) ? icon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$t, { className: color() });
9171
9238
  }
9172
- if (_indeterminate) {
9173
- return React.isValidElement(indeterminateIcon) ? indeterminateIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(r$t, { size: iconSize, className: color() });
9239
+ if (innerIndeterminate) {
9240
+ return React.isValidElement(indeterminateIcon) ? indeterminateIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(r$u, { className: color() });
9174
9241
  }
9175
- return React.isValidElement(checkedIcon) ? checkedIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$q, { size: iconSize, className: color() });
9242
+ return React.isValidElement(activeIcon) ? activeIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$r, { className: color() });
9176
9243
  };
9177
9244
  const color = () => {
9178
9245
  if (innerDisabled) {
9179
- return "nut-checkbox__icon--disable";
9246
+ return `${classPrefix$8}__icon--disable`;
9180
9247
  }
9181
9248
  if (innerChecked) {
9182
- if (_indeterminate) {
9183
- return "nut-checkbox__icon--indeterminate";
9249
+ if (innerIndeterminate) {
9250
+ return `${classPrefix$8}__icon--indeterminate`;
9184
9251
  }
9185
- return "nut-checkbox__icon";
9252
+ return `${classPrefix$8}__icon`;
9186
9253
  }
9187
- return "nut-checkbox__icon--unchecked";
9254
+ return `${classPrefix$8}__icon--unchecked`;
9188
9255
  };
9189
9256
  const renderLabel = () => {
9190
- return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `${b2("label", { disabled: innerDisabled })} `, children: children || label });
9257
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
9258
+ "span",
9259
+ {
9260
+ className: classNames(`${classPrefix$8}__label `, {
9261
+ [`${classPrefix$8}__label--disabled`]: innerDisabled
9262
+ }),
9263
+ children: children || label
9264
+ }
9265
+ );
9191
9266
  };
9192
9267
  const handleClick = () => {
9193
9268
  if (disabled)
9194
9269
  return;
9195
9270
  const latestChecked = !innerChecked;
9196
9271
  if (ctx2 && ctx2.max !== void 0) {
9197
- if (latestChecked && ctx2.checkedValue.length >= ctx2.max)
9272
+ if (latestChecked && ctx2.value.length >= ctx2.max)
9198
9273
  return;
9199
9274
  }
9200
- onChange && onChange(latestChecked, label || children);
9201
- setInnerChecked(latestChecked);
9275
+ setChecked(latestChecked);
9202
9276
  };
9203
9277
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
9204
9278
  "div",
9205
9279
  {
9206
- className: `${b2({ reverse: textPosition === "left" })} ${className || ""}`,
9280
+ className: classNames(classPrefix$8, className, {
9281
+ [`${classPrefix$8}--reverse`]: labelPosition === "left"
9282
+ }),
9207
9283
  ...rest,
9208
9284
  onClick: handleClick,
9209
9285
  children: [
@@ -9213,7 +9289,7 @@ var __publicField = (obj, key, value) => {
9213
9289
  }
9214
9290
  );
9215
9291
  };
9216
- Checkbox.defaultProps = defaultProps$Z;
9292
+ Checkbox.defaultProps = defaultProps$_;
9217
9293
  Checkbox.displayName = "NutCheckBox";
9218
9294
  Checkbox.Group = CheckboxGroup;
9219
9295
  const MIN_DISTANCE = 10;
@@ -9294,13 +9370,13 @@ var __publicField = (obj, key, value) => {
9294
9370
  console.log(e);
9295
9371
  }
9296
9372
  }
9297
- const InternalPickerSlot = (props, ref) => {
9373
+ const InternalPickerPanel = (props, ref) => {
9298
9374
  const {
9299
9375
  keyIndex = 0,
9300
9376
  defaultValue,
9301
- listData = [],
9377
+ options = [],
9302
9378
  threeDimensional = true,
9303
- swipeDuration = 1e3,
9379
+ duration = 1e3,
9304
9380
  itemShow = false,
9305
9381
  chooseItem
9306
9382
  } = props;
@@ -9315,9 +9391,9 @@ var __publicField = (obj, key, value) => {
9315
9391
  const rotation = 20;
9316
9392
  const moving = React.useRef(false);
9317
9393
  let timer;
9318
- const listbox = React.useRef(null);
9394
+ const listRef = React.useRef(null);
9319
9395
  const rollerRef = React.useRef(null);
9320
- const pickerSlotRef = React.useRef(null);
9396
+ const PickerPanelRef = React.useRef(null);
9321
9397
  const [startTime, setStartTime] = React.useState(0);
9322
9398
  const [startY, setStartY] = React.useState(0);
9323
9399
  const transformY = React.useRef(0);
@@ -9343,8 +9419,8 @@ var __publicField = (obj, key, value) => {
9343
9419
  if (updateMove > 0) {
9344
9420
  updateMove = 0;
9345
9421
  }
9346
- if (updateMove < -(listData.length - 1) * lineSpacing.current) {
9347
- updateMove = -(listData.length - 1) * lineSpacing.current;
9422
+ if (updateMove < -(options.length - 1) * lineSpacing.current) {
9423
+ updateMove = -(options.length - 1) * lineSpacing.current;
9348
9424
  }
9349
9425
  const endMove = Math.round(updateMove / lineSpacing.current) * lineSpacing.current;
9350
9426
  const deg = `${(Math.abs(Math.round(endMove / lineSpacing.current)) + 1) * rotation}deg`;
@@ -9353,7 +9429,7 @@ var __publicField = (obj, key, value) => {
9353
9429
  } else {
9354
9430
  let deg = 0;
9355
9431
  const currentDeg = (-updateMove / lineSpacing.current + 1) * rotation;
9356
- const maxDeg = (listData.length + 1) * rotation;
9432
+ const maxDeg = (options.length + 1) * rotation;
9357
9433
  const minDeg = 0;
9358
9434
  deg = Math.min(Math.max(currentDeg, minDeg), maxDeg);
9359
9435
  if (minDeg < deg && deg < maxDeg) {
@@ -9363,7 +9439,7 @@ var __publicField = (obj, key, value) => {
9363
9439
  }
9364
9440
  };
9365
9441
  const setChooseValue = (move) => {
9366
- chooseItem && chooseItem(listData == null ? void 0 : listData[Math.round(-move / lineSpacing.current)], keyIndex);
9442
+ chooseItem && chooseItem(options == null ? void 0 : options[Math.round(-move / lineSpacing.current)], keyIndex);
9367
9443
  };
9368
9444
  const touchStart = (event) => {
9369
9445
  touch.start(event);
@@ -9387,7 +9463,7 @@ var __publicField = (obj, key, value) => {
9387
9463
  const moveTime = Date.now() - startTime;
9388
9464
  if (moveTime <= INERTIA_TIME && Math.abs(move) > INERTIA_DISTANCE) {
9389
9465
  const distance = momentum(move, moveTime);
9390
- setMove(distance, "end", +swipeDuration);
9466
+ setMove(distance, "end", +duration);
9391
9467
  } else {
9392
9468
  setMove(move, "end");
9393
9469
  }
@@ -9395,9 +9471,9 @@ var __publicField = (obj, key, value) => {
9395
9471
  touch.reset();
9396
9472
  }, 0);
9397
9473
  };
9398
- const momentum = (distance, duration) => {
9474
+ const momentum = (distance, duration2) => {
9399
9475
  let nDistance = distance;
9400
- const speed = Math.abs(nDistance / duration);
9476
+ const speed = Math.abs(nDistance / duration2);
9401
9477
  nDistance = speed / 3e-3 * (nDistance < 0 ? -1 : 1);
9402
9478
  return nDistance;
9403
9479
  };
@@ -9405,7 +9481,7 @@ var __publicField = (obj, key, value) => {
9405
9481
  const value = val || defaultValue;
9406
9482
  let index = -1;
9407
9483
  if (value) {
9408
- listData.some((item, idx) => {
9484
+ options.some((item, idx) => {
9409
9485
  if (item.value === value) {
9410
9486
  index = idx;
9411
9487
  return true;
@@ -9413,7 +9489,7 @@ var __publicField = (obj, key, value) => {
9413
9489
  return false;
9414
9490
  });
9415
9491
  } else {
9416
- listData.forEach((item, i) => {
9492
+ options.forEach((item, i) => {
9417
9493
  if (item.value === defaultValue) {
9418
9494
  index = i;
9419
9495
  }
@@ -9438,7 +9514,7 @@ var __publicField = (obj, key, value) => {
9438
9514
  }
9439
9515
  };
9440
9516
  const getReference = async () => {
9441
- const refe = await getRectByTaro(listbox == null ? void 0 : listbox.current);
9517
+ const refe = await getRectByTaro(listRef == null ? void 0 : listRef.current);
9442
9518
  lineSpacing.current = refe.height ? refe.height : 36;
9443
9519
  modifyStatus(true);
9444
9520
  };
@@ -9461,7 +9537,7 @@ var __publicField = (obj, key, value) => {
9461
9537
  return () => {
9462
9538
  clearTimeout(timer);
9463
9539
  };
9464
- }, [listData]);
9540
+ }, [options]);
9465
9541
  React.useEffect(() => {
9466
9542
  if (itemShow) {
9467
9543
  setTimeout(() => {
@@ -9477,7 +9553,7 @@ var __publicField = (obj, key, value) => {
9477
9553
  "div",
9478
9554
  {
9479
9555
  className: "nut-picker-list",
9480
- ref: pickerSlotRef,
9556
+ ref: PickerPanelRef,
9481
9557
  onTouchStart: touchStart,
9482
9558
  onTouchMove: touchMove,
9483
9559
  onTouchEnd: touchEnd,
@@ -9490,7 +9566,7 @@ var __publicField = (obj, key, value) => {
9490
9566
  style: threeDimensional ? touchRollerStyle() : touchTileStyle(),
9491
9567
  onTransitionEnd: stopMomentum,
9492
9568
  children: [
9493
- threeDimensional && listData.map((item, index) => {
9569
+ threeDimensional && options.map((item, index) => {
9494
9570
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
9495
9571
  "div",
9496
9572
  {
@@ -9505,7 +9581,7 @@ var __publicField = (obj, key, value) => {
9505
9581
  item.value ? item.value : index
9506
9582
  );
9507
9583
  }),
9508
- !threeDimensional && listData.map((item, index) => {
9584
+ !threeDimensional && options.map((item, index) => {
9509
9585
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
9510
9586
  "div",
9511
9587
  {
@@ -9523,13 +9599,13 @@ var __publicField = (obj, key, value) => {
9523
9599
  }
9524
9600
  ),
9525
9601
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-picker-mask" }),
9526
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-picker-indicator", ref: listbox })
9602
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-picker-indicator", ref: listRef })
9527
9603
  ]
9528
9604
  }
9529
9605
  );
9530
9606
  };
9531
- const PickerSlot = React.forwardRef(InternalPickerSlot);
9532
- const PickerSlot$1 = PickerSlot;
9607
+ const PickerPanel = React.forwardRef(InternalPickerPanel);
9608
+ const PickerPanel$1 = PickerPanel;
9533
9609
  function useRefs() {
9534
9610
  const refs = React.useRef([]);
9535
9611
  const setRefs = React.useCallback(
@@ -9544,181 +9620,247 @@ var __publicField = (obj, key, value) => {
9544
9620
  }, []);
9545
9621
  return [refs.current, setRefs, reset];
9546
9622
  }
9623
+ const defaultProps$Z = {
9624
+ ...ComponentDefaults,
9625
+ visible: false,
9626
+ title: "",
9627
+ options: [],
9628
+ value: [],
9629
+ defaultValue: [],
9630
+ threeDimensional: true,
9631
+ duration: 1e3
9632
+ };
9547
9633
  const InternalPicker = (props, ref) => {
9548
9634
  const { locale } = useConfig$1();
9549
9635
  const {
9550
9636
  visible,
9551
9637
  title,
9552
- listData = [],
9553
- defaultValueData,
9554
- onConfirm,
9555
- onClose,
9556
- onCloseUpdate,
9557
- onChange,
9638
+ options = [],
9639
+ defaultValue = [],
9558
9640
  className,
9559
9641
  style,
9560
9642
  threeDimensional,
9561
- swipeDuration,
9643
+ duration,
9644
+ onConfirm,
9645
+ onClose,
9646
+ afterClose,
9647
+ onChange,
9562
9648
  ...rest
9563
- } = props;
9564
- const [chooseValueData, setchooseValueData] = React.useState([]);
9565
- const [columnIndex, setcolumnIndex] = React.useState(0);
9649
+ } = { ...defaultProps$Z, ...props };
9650
+ const classPrefix2 = "nut-picker";
9651
+ const classes = classNames(classPrefix2, className);
9652
+ const [selectedValue, setSelectedValue] = usePropsValue({
9653
+ value: props.value,
9654
+ defaultValue: [...defaultValue],
9655
+ finalValue: [...defaultValue],
9656
+ onChange: (val) => {
9657
+ var _a;
9658
+ (_a = props.onConfirm) == null ? void 0 : _a.call(props, setSelectedOptions(), val);
9659
+ }
9660
+ });
9661
+ const [currentValue2, setCurrentValue] = React.useState([]);
9662
+ const [columnIndex, setColumnIndex] = React.useState(0);
9566
9663
  const pickerRef = React.useRef(null);
9567
9664
  const [refs, setRefs] = useRefs();
9568
9665
  const [columnsList, setColumnsList] = React.useState([]);
9569
- const b2 = cn("picker");
9570
9666
  const isConfirmEvent = React.useRef(false);
9571
- React.useEffect(() => {
9572
- if (defaultValueData && defaultValueData.length !== 0 && defaultValueData.toString() !== chooseValueData.toString()) {
9573
- const data = [...defaultValueData];
9574
- setchooseValueData(data);
9575
- setColumnsList(normalListData());
9667
+ const formatCascade = (columns, values) => {
9668
+ const formatted = [];
9669
+ let columnOptions = {
9670
+ text: "",
9671
+ value: "",
9672
+ children: columns
9673
+ };
9674
+ let columnIndex2 = 0;
9675
+ while (columnOptions && columnOptions.children) {
9676
+ const options2 = columnOptions.children;
9677
+ const value = values[columnIndex2];
9678
+ let index = options2.findIndex(
9679
+ (columnItem) => columnItem.value === value
9680
+ );
9681
+ if (index === -1)
9682
+ index = 0;
9683
+ columnOptions = columnOptions.children[index];
9684
+ columnIndex2++;
9685
+ formatted.push(options2);
9576
9686
  }
9577
- }, [defaultValueData]);
9578
- React.useEffect(() => {
9579
- onChange && onChange(columnIndex, chooseValueData, selectedOptions());
9580
- if (isConfirmEvent.current) {
9581
- isConfirmEvent.current = false;
9582
- onConfirm && onConfirm(chooseValueData, selectedOptions());
9687
+ return formatted;
9688
+ };
9689
+ const columnsType = () => {
9690
+ const firstColumn = options[0];
9691
+ if (firstColumn) {
9692
+ if (Array.isArray(firstColumn)) {
9693
+ return "multiple";
9694
+ }
9695
+ if ("children" in firstColumn) {
9696
+ return "cascade";
9697
+ }
9583
9698
  }
9584
- }, [chooseValueData]);
9585
- React.useEffect(() => {
9586
- init();
9587
- }, [listData]);
9588
- const closeActionSheet = () => {
9589
- onClose && onClose(chooseValueData, selectedOptions());
9590
- onCloseUpdate && onCloseUpdate(chooseValueData, selectedOptions(), pickerRef);
9699
+ return "single";
9591
9700
  };
9592
- const confirm = () => {
9593
- let movings = false;
9594
- refs.forEach((_ref) => {
9595
- if (_ref.moving)
9596
- movings = true;
9597
- _ref.stopMomentum();
9701
+ const normalListData = () => {
9702
+ const type = columnsType();
9703
+ switch (type) {
9704
+ case "multiple":
9705
+ return options;
9706
+ case "cascade":
9707
+ return formatCascade(options, selectedValue);
9708
+ default:
9709
+ return [options];
9710
+ }
9711
+ };
9712
+ const init = () => {
9713
+ const normalData = normalListData();
9714
+ setColumnsList(normalData);
9715
+ const data = [];
9716
+ normalData.length > 0 && normalData.map((item) => {
9717
+ item[0] && data.push(item[0].value);
9718
+ return item;
9598
9719
  });
9599
- if (movings) {
9600
- isConfirmEvent.current = true;
9601
- } else {
9602
- onConfirm && onConfirm(chooseValueData, selectedOptions());
9720
+ if (!defaultValue.length && selectedValue.length === 0) {
9721
+ setSelectedValue([...data]);
9603
9722
  }
9604
- onClose && onClose(chooseValueData, selectedOptions());
9605
- setTimeout(() => {
9606
- isConfirmEvent.current = false;
9607
- }, 0);
9608
9723
  };
9609
- const selectedOptions = () => {
9610
- const optins = [];
9611
- columnsList.map((column, index) => {
9612
- let currOptions = [];
9613
- currOptions = column.filter(
9614
- (item) => item.value === chooseValueData[index]
9724
+ React.useEffect(() => {
9725
+ if (!visible) {
9726
+ return;
9727
+ }
9728
+ init();
9729
+ }, [options, visible]);
9730
+ const setSelectedOptions = () => {
9731
+ const options2 = [];
9732
+ let currOptions = [];
9733
+ columnsList.forEach((columnOptions, index) => {
9734
+ currOptions = columnOptions.filter(
9735
+ (item) => item.value === selectedValue[index]
9615
9736
  );
9616
9737
  if (currOptions[0]) {
9617
- optins.push(currOptions[0]);
9738
+ options2.push(currOptions[0]);
9618
9739
  } else {
9619
- column[0] && optins.push(column[0]);
9740
+ columnOptions[0] && options2.push(columnOptions[0]);
9620
9741
  }
9621
- return column;
9622
9742
  });
9623
- return optins;
9743
+ return options2;
9744
+ };
9745
+ const defaultValuesConvert = () => {
9746
+ const defaultIndexs = [];
9747
+ if (selectedValue.length > 0) {
9748
+ selectedValue.forEach((value, index) => {
9749
+ var _a;
9750
+ for (let i = 0; i < ((_a = columnsList == null ? void 0 : columnsList[index]) == null ? void 0 : _a.length); i++) {
9751
+ if (columnsList[index][i].value === value) {
9752
+ defaultIndexs.push(i);
9753
+ break;
9754
+ }
9755
+ }
9756
+ });
9757
+ } else if (columnsList && columnsList.length > 0) {
9758
+ columnsList.forEach((item) => {
9759
+ defaultIndexs.push(0);
9760
+ item.length > 0 && selectedValue.push(item[0].value);
9761
+ });
9762
+ }
9763
+ return defaultIndexs;
9624
9764
  };
9625
- const chooseItem = (option, columnIndex2) => {
9626
- if (option && Object.keys(option).length) {
9627
- if (chooseValueData[columnIndex2] !== option.value) {
9765
+ React.useEffect(() => {
9766
+ if (!visible) {
9767
+ return;
9768
+ }
9769
+ Taro.getEnv() !== "WEB" && setCurrentValue(defaultValuesConvert());
9770
+ onChange && onChange(setSelectedOptions(), selectedValue, columnIndex);
9771
+ if (isConfirmEvent.current) {
9772
+ isConfirmEvent.current = false;
9773
+ onConfirm && onConfirm(setSelectedOptions(), selectedValue);
9774
+ }
9775
+ }, [selectedValue, columnsList, visible]);
9776
+ const chooseItem = (columnOptions, columnIndex2) => {
9777
+ var _a, _b;
9778
+ if (columnOptions && Object.keys(columnOptions).length) {
9779
+ if (selectedValue[columnIndex2] !== columnOptions.value) {
9628
9780
  if (columnsType() === "cascade") {
9629
- chooseValueData[columnIndex2] = option.value ? option.value : "";
9630
- setchooseValueData([...chooseValueData]);
9631
- let index = columnIndex2;
9632
- let cursor = option;
9633
- while (cursor && cursor.children && cursor.children[0]) {
9634
- chooseValueData[index + 1] = cursor.children[0].value;
9635
- setchooseValueData([...chooseValueData]);
9636
- index++;
9637
- const cc = cursor.children[0];
9638
- cursor = cc;
9781
+ selectedValue[columnIndex2] = columnOptions.value || "";
9782
+ setSelectedValue([...selectedValue]);
9783
+ while ((_a = columnOptions == null ? void 0 : columnOptions.children) == null ? void 0 : _a[0]) {
9784
+ selectedValue[columnIndex2 + 1] = columnOptions.children[0].value;
9785
+ setSelectedValue([...selectedValue]);
9786
+ columnIndex2++;
9787
+ columnOptions = columnOptions.children[0];
9639
9788
  }
9640
- if (cursor && cursor.children) {
9641
- chooseValueData[index + 1] = "";
9642
- setchooseValueData([...chooseValueData]);
9789
+ if ((_b = columnOptions == null ? void 0 : columnOptions.children) == null ? void 0 : _b.length) {
9790
+ selectedValue[columnIndex2 + 1] = "";
9791
+ setSelectedValue([...selectedValue]);
9643
9792
  }
9644
9793
  setColumnsList(normalListData());
9645
9794
  } else {
9646
- setchooseValueData((data) => {
9795
+ setSelectedValue((data) => {
9647
9796
  const cdata = [...data];
9648
9797
  cdata[columnIndex2] = Object.prototype.hasOwnProperty.call(
9649
- option,
9798
+ columnOptions,
9650
9799
  "value"
9651
- ) ? option.value : "";
9800
+ ) ? columnOptions.value : "";
9652
9801
  return cdata;
9653
9802
  });
9654
9803
  }
9655
- setcolumnIndex(columnIndex2);
9804
+ setColumnIndex(columnIndex2);
9656
9805
  }
9657
9806
  }
9658
9807
  };
9659
- const normalListData = () => {
9660
- const type = columnsType();
9661
- switch (type) {
9662
- case "multiple":
9663
- return listData;
9664
- case "cascade":
9665
- return formatCascade(listData, chooseValueData);
9666
- default:
9667
- return [listData];
9808
+ const confirm = () => {
9809
+ let movings = false;
9810
+ refs.forEach((ref2) => {
9811
+ if (ref2.moving)
9812
+ movings = true;
9813
+ ref2.stopMomentum();
9814
+ });
9815
+ if (movings) {
9816
+ isConfirmEvent.current = true;
9817
+ } else {
9818
+ onConfirm && onConfirm(setSelectedOptions(), selectedValue);
9819
+ closePicker();
9668
9820
  }
9821
+ setTimeout(() => {
9822
+ isConfirmEvent.current = false;
9823
+ }, 0);
9669
9824
  };
9670
- const columnsType = () => {
9671
- const firstColumn = listData[0];
9672
- if (firstColumn) {
9673
- if (Array.isArray(firstColumn)) {
9674
- return "multiple";
9675
- }
9676
- if ("children" in firstColumn) {
9677
- return "cascade";
9678
- }
9679
- }
9680
- return "single";
9825
+ const closePicker = () => {
9826
+ onClose && onClose(setSelectedOptions(), selectedValue);
9827
+ afterClose && afterClose(setSelectedOptions(), selectedValue, pickerRef);
9681
9828
  };
9682
- const formatCascade = (columns, defaultValues) => {
9683
- const formatted = [];
9684
- let cursor = {
9685
- text: "",
9686
- value: "",
9687
- children: columns
9688
- };
9689
- let columnIndex2 = 0;
9690
- while (cursor && cursor.children) {
9691
- const options = cursor.children;
9692
- const value = defaultValues[columnIndex2];
9693
- let index = options.findIndex(
9694
- (columnItem) => columnItem.value === value
9695
- );
9696
- if (index === -1)
9697
- index = 0;
9698
- cursor = cursor.children[index];
9699
- columnIndex2++;
9700
- formatted.push(options);
9701
- }
9702
- return formatted;
9829
+ const renderTitleBar = () => {
9830
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix2}__control`, children: [
9831
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
9832
+ "span",
9833
+ {
9834
+ className: `${classPrefix2}__cancel-btn`,
9835
+ onClick: () => closePicker(),
9836
+ children: locale.cancel
9837
+ }
9838
+ ),
9839
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__title`, children: title || "" }),
9840
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `${classPrefix2}__confirm-btn`, onClick: confirm, children: locale.confirm })
9841
+ ] });
9703
9842
  };
9704
- const init = () => {
9705
- const data = [];
9706
- const normalData = normalListData();
9707
- setColumnsList(normalData);
9708
- normalData.length > 0 && normalData.map((item) => {
9709
- item[0] && data.push(item[0].value);
9710
- return item;
9711
- });
9712
- if (!defaultValueData && chooseValueData.length === 0) {
9713
- setchooseValueData([...data]);
9714
- }
9843
+ const [pickingStatus, setPickingStatus] = React.useState(false);
9844
+ const pickerStart = () => {
9845
+ setPickingStatus(true);
9715
9846
  };
9716
- const renderToolbar = () => {
9717
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: b2("control"), children: [
9718
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: b2("cancel-btn"), onClick: () => closeActionSheet(), children: locale.cancel }),
9719
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("title"), children: title || "" }),
9720
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: b2("confirm-btn"), onClick: confirm, children: locale.confirm })
9721
- ] });
9847
+ const pickerEnd = () => {
9848
+ setPickingStatus(false);
9849
+ };
9850
+ const pickerChange = (data) => {
9851
+ const prevDefaultValue = currentValue2;
9852
+ let changeIndex = 0;
9853
+ const list = data.detail.value;
9854
+ for (let i = 0, len = list.length; i < len; i++) {
9855
+ if (prevDefaultValue[i] !== list[i]) {
9856
+ changeIndex = i;
9857
+ break;
9858
+ }
9859
+ }
9860
+ chooseItem(
9861
+ columnsList[changeIndex][data.detail.value[changeIndex]],
9862
+ changeIndex
9863
+ );
9722
9864
  };
9723
9865
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
9724
9866
  Popup,
@@ -9726,36 +9868,50 @@ var __publicField = (obj, key, value) => {
9726
9868
  visible,
9727
9869
  position: "bottom",
9728
9870
  onClose: () => {
9729
- closeActionSheet();
9871
+ closePicker();
9730
9872
  },
9731
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
9732
- components.View,
9733
- {
9734
- className: `${b2()} ${className || ""}`,
9735
- style,
9736
- ...rest,
9737
- catchMove: true,
9738
- children: [
9739
- renderToolbar(),
9740
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("panel"), ref: pickerRef, children: columnsList == null ? void 0 : columnsList.map((item, index) => {
9741
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
9742
- PickerSlot$1,
9743
- {
9744
- ref: setRefs(index),
9745
- defaultValue: chooseValueData == null ? void 0 : chooseValueData[index],
9746
- listData: item,
9747
- threeDimensional,
9748
- chooseItem: (value, index2) => chooseItem(value, index2),
9749
- swipeDuration,
9750
- keyIndex: index,
9751
- itemShow: visible
9752
- },
9753
- index
9754
- );
9755
- }) })
9756
- ]
9757
- }
9758
- )
9873
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(components.View, { className: classes, style, ...rest, catchMove: true, children: [
9874
+ renderTitleBar(),
9875
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__panel`, ref: pickerRef, children: Taro.getEnv() === "WEB" ? columnsList == null ? void 0 : columnsList.map((item, index) => {
9876
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
9877
+ PickerPanel$1,
9878
+ {
9879
+ ref: setRefs(index),
9880
+ defaultValue: selectedValue == null ? void 0 : selectedValue[index],
9881
+ options: item,
9882
+ threeDimensional,
9883
+ chooseItem: (value, index2) => chooseItem(value, index2),
9884
+ duration,
9885
+ keyIndex: index,
9886
+ itemShow: visible
9887
+ },
9888
+ index
9889
+ );
9890
+ }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
9891
+ components.PickerView,
9892
+ {
9893
+ ref: pickerRef,
9894
+ value: currentValue2,
9895
+ immediateChange: true,
9896
+ onPickStart: pickerStart,
9897
+ onChange: pickerChange,
9898
+ onPickEnd: pickerEnd,
9899
+ className: "nut-picker-view-panel",
9900
+ children: columnsList == null ? void 0 : columnsList.map((columnOptions, index) => {
9901
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(components.PickerViewColumn, { children: columnOptions.map((item, index2) => {
9902
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
9903
+ components.View,
9904
+ {
9905
+ className: "nut-picker-roller-item-title",
9906
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: item.text || item })
9907
+ },
9908
+ item.value || index2
9909
+ );
9910
+ }) }, `col${index}`);
9911
+ })
9912
+ }
9913
+ ) })
9914
+ ] })
9759
9915
  }
9760
9916
  );
9761
9917
  };
@@ -9800,7 +9956,7 @@ var __publicField = (obj, key, value) => {
9800
9956
  const [show, setShow] = React.useState(false);
9801
9957
  const [currentDate, setCurrentDate] = React.useState(modelValue);
9802
9958
  const [defaultValue, setDefaultValue] = React.useState([]);
9803
- const [listData, setListData] = React.useState([]);
9959
+ const [options, setListData] = React.useState([]);
9804
9960
  const pickerRef = React.useRef(null);
9805
9961
  const isDate = (val) => {
9806
9962
  return Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
@@ -9918,7 +10074,7 @@ var __publicField = (obj, key, value) => {
9918
10074
  }
9919
10075
  return result;
9920
10076
  };
9921
- const updateChooseValueCustmer = (index, selectedValue, cacheValueData) => {
10077
+ const updateChooseValueCustmer = (cacheValueData, selectedValue, index) => {
9922
10078
  if (["date", "datetime", "datehour", "month-day", "year-month"].includes(
9923
10079
  type.toLocaleLowerCase()
9924
10080
  )) {
@@ -9957,7 +10113,7 @@ var __publicField = (obj, key, value) => {
9957
10113
  const isEqual2 = (currentDate == null ? void 0 : currentDate.getTime()) === (date == null ? void 0 : date.getTime());
9958
10114
  date && isDate(date) && !isEqual2 && setCurrentDate(formatValue(date));
9959
10115
  }
9960
- props.onChange && props.onChange(index, selectedValue, cacheValueData);
10116
+ props.onChange && props.onChange(cacheValueData, selectedValue, index);
9961
10117
  };
9962
10118
  const padZero = (num, targetLength = 2) => {
9963
10119
  let str = `${num}`;
@@ -10054,16 +10210,16 @@ var __publicField = (obj, key, value) => {
10054
10210
  style,
10055
10211
  catchMove: true,
10056
10212
  ...rest,
10057
- children: listData.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
10213
+ children: options.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
10058
10214
  Picker$1,
10059
10215
  {
10060
10216
  title,
10061
10217
  visible: show,
10062
- listData,
10218
+ options,
10063
10219
  onClose: onCloseDatePicker,
10064
- defaultValueData: defaultValue,
10065
- onConfirm: (values, options) => onConfirmDatePicker && onConfirmDatePicker(values, options),
10066
- onChange: (index, value, list) => updateChooseValueCustmer(index, value, list),
10220
+ defaultValue,
10221
+ onConfirm: (options2, values) => onConfirmDatePicker && onConfirmDatePicker(options2, values),
10222
+ onChange: (list, value, index) => updateChooseValueCustmer(list, value, index),
10067
10223
  threeDimensional,
10068
10224
  ref: pickerRef
10069
10225
  }
@@ -10565,7 +10721,7 @@ var __publicField = (obj, key, value) => {
10565
10721
  }, 50);
10566
10722
  }
10567
10723
  },
10568
- children: clearIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(r$c, { className: "nut-input-clear" })
10724
+ children: clearIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(r$d, { className: "nut-input-clear" })
10569
10725
  }
10570
10726
  )
10571
10727
  ]
@@ -10587,7 +10743,7 @@ var __publicField = (obj, key, value) => {
10587
10743
  digits: 0,
10588
10744
  async: false
10589
10745
  };
10590
- const classPrefix$3 = `nut-inputnumber`;
10746
+ const classPrefix$7 = `nut-inputnumber`;
10591
10747
  const InputNumber = (props) => {
10592
10748
  const {
10593
10749
  children,
@@ -10630,8 +10786,8 @@ var __publicField = (obj, key, value) => {
10630
10786
  }, []);
10631
10787
  const classes = classNames(
10632
10788
  {
10633
- [`${classPrefix$3}`]: true,
10634
- [`${classPrefix$3}--disabled`]: disabled
10789
+ [`${classPrefix$7}`]: true,
10790
+ [`${classPrefix$7}--disabled`]: disabled
10635
10791
  },
10636
10792
  className
10637
10793
  );
@@ -10772,7 +10928,7 @@ var __publicField = (obj, key, value) => {
10772
10928
  onBlur && onBlur(e);
10773
10929
  };
10774
10930
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classes, style: styles, ...restProps, children: [
10775
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-input-minus", children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$b, { className: iconMinusClasses, onClick: reduceNumber }) }),
10931
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-input-minus", children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$c, { className: iconMinusClasses, onClick: reduceNumber }) }),
10776
10932
  /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: formatter ? /* @__PURE__ */ jsxRuntimeExports.jsx(
10777
10933
  "input",
10778
10934
  {
@@ -10914,7 +11070,7 @@ var __publicField = (obj, key, value) => {
10914
11070
  }),
10915
11071
  children: [
10916
11072
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-menu__title-text", children: finallyTitle() }),
10917
- icon || (direction === "up" ? /* @__PURE__ */ jsxRuntimeExports.jsx(a$v, { className: "nut-menu__title-icon", size: 10 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$w, { className: "nut-menu__title-icon", size: 10 }))
11073
+ icon || (direction === "up" ? /* @__PURE__ */ jsxRuntimeExports.jsx(a$w, { className: "nut-menu__title-icon", size: 10 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$x, { className: "nut-menu__title-icon", size: 10 }))
10918
11074
  ]
10919
11075
  }
10920
11076
  )
@@ -11108,7 +11264,7 @@ var __publicField = (obj, key, value) => {
11108
11264
  },
11109
11265
  children: [
11110
11266
  item.value === _value ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: icon || /* @__PURE__ */ jsxRuntimeExports.jsx(
11111
- a$r,
11267
+ a$s,
11112
11268
  {
11113
11269
  color: activeColor,
11114
11270
  size: 10,
@@ -11544,12 +11700,12 @@ var __publicField = (obj, key, value) => {
11544
11700
  return React.isValidElement(checkedIcon2) ? React.cloneElement(checkedIcon2, {
11545
11701
  ...checkedIcon2.props,
11546
11702
  className: color()
11547
- }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$u, { size: iconSize2, className: color() });
11703
+ }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$v, { size: iconSize2, className: color() });
11548
11704
  }
11549
11705
  return React.isValidElement(icon2) ? React.cloneElement(icon2, {
11550
11706
  ...icon2.props,
11551
11707
  className: color()
11552
- }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$s, { size: iconSize2, className: color() });
11708
+ }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$t, { size: iconSize2, className: color() });
11553
11709
  };
11554
11710
  const reverseState = textPosition === "left";
11555
11711
  const renderRadioItem = () => {
@@ -11683,9 +11839,9 @@ var __publicField = (obj, key, value) => {
11683
11839
  }
11684
11840
  return {
11685
11841
  success: /* @__PURE__ */ jsxRuntimeExports.jsx(a$4, { color: "#ffffff", width: iconSize, height: iconSize }),
11686
- fail: /* @__PURE__ */ jsxRuntimeExports.jsx(a$k, { color: "#ffffff", width: iconSize, height: iconSize }),
11842
+ fail: /* @__PURE__ */ jsxRuntimeExports.jsx(a$l, { color: "#ffffff", width: iconSize, height: iconSize }),
11687
11843
  warn: /* @__PURE__ */ jsxRuntimeExports.jsx(a$3, { color: "#ffffff", width: iconSize, height: iconSize }),
11688
- loading: /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, { color: "#ffffff", width: iconSize, height: iconSize })
11844
+ loading: /* @__PURE__ */ jsxRuntimeExports.jsx(r$f, { color: "#ffffff", width: iconSize, height: iconSize })
11689
11845
  }[type];
11690
11846
  };
11691
11847
  const classes = classNames({
@@ -12405,7 +12561,7 @@ var __publicField = (obj, key, value) => {
12405
12561
  {
12406
12562
  className: `${searchbarBem("clear")} ${rightinIcon ? "pos-right" : ""}`,
12407
12563
  onClick: (e) => clearaVal(e),
12408
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { size: clearSize, color: "#555" })
12564
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$p, { size: clearSize, color: "#555" })
12409
12565
  }
12410
12566
  );
12411
12567
  };
@@ -12867,124 +13023,111 @@ var __publicField = (obj, key, value) => {
12867
13023
  Switch.defaultProps = defaultProps$I;
12868
13024
  Switch.displayName = "NutSwitch";
12869
13025
  const defaultProps$H = {
13026
+ ...ComponentDefaults,
12870
13027
  defaultValue: "",
12871
- textAlign: "left",
12872
- limitshow: false,
12873
- maxlength: "",
12874
- rows: "",
13028
+ showCount: false,
13029
+ maxLength: 140,
12875
13030
  placeholder: "",
12876
- readonly: false,
13031
+ readOnly: false,
12877
13032
  disabled: false,
12878
- autosize: false
13033
+ autoSize: false
12879
13034
  };
12880
13035
  const TextArea = (props) => {
12881
13036
  const { locale } = useConfig$1();
12882
13037
  const {
12883
13038
  className,
13039
+ value,
12884
13040
  defaultValue,
12885
- textAlign,
12886
- limitshow,
12887
- maxlength,
13041
+ showCount,
13042
+ maxLength,
12888
13043
  rows,
12889
13044
  placeholder,
12890
- readonly,
13045
+ readOnly,
12891
13046
  disabled,
12892
- autosize,
13047
+ autoSize,
12893
13048
  style,
12894
13049
  onChange,
12895
13050
  onBlur,
12896
- onFocus
13051
+ onFocus,
13052
+ ...rest
12897
13053
  } = { ...defaultProps$H, ...props };
12898
- const textareaBem = cn("textarea");
12899
- const [inputValue, SetInputValue] = React.useState("");
12900
- const compositingRef = React.useRef(false);
12901
- const [, updateState] = React.useState({});
12902
- const forceUpdate = React.useCallback(() => updateState({}), []);
12903
- React.useEffect(() => {
12904
- let initValue = defaultValue;
12905
- if (initValue && maxlength && [...initValue].length > Number(maxlength)) {
12906
- initValue = initValue.substring(0, Number(maxlength));
12907
- }
12908
- SetInputValue(initValue);
12909
- }, [defaultValue]);
12910
- const textChange = (event) => {
12911
- if (disabled)
12912
- return;
12913
- if (readonly)
12914
- return;
12915
- const text = event.detail ? event.detail : event.target;
12916
- if (maxlength && [...text.value].length > Number(maxlength) && !compositingRef.current) {
12917
- text.value = text.value.substring(0, Number(maxlength));
13054
+ const classPrefix2 = "nut-textarea";
13055
+ const compositionRef = React.useRef(false);
13056
+ const format = (value2) => {
13057
+ if (maxLength !== void 0 && value2.length > maxLength) {
13058
+ return value2.substring(0, maxLength);
12918
13059
  }
12919
- if (text.value === inputValue) {
12920
- forceUpdate();
13060
+ return value2;
13061
+ };
13062
+ const [inputValue, setInputValue] = usePropsValue({
13063
+ value,
13064
+ defaultValue,
13065
+ finalValue: format(defaultValue),
13066
+ onChange
13067
+ });
13068
+ const handleChange = (event) => {
13069
+ var _a;
13070
+ const text = (_a = event == null ? void 0 : event.detail) == null ? void 0 : _a.value;
13071
+ if (text) {
13072
+ const value2 = compositionRef.current ? text : format(text);
13073
+ setInputValue(value2);
12921
13074
  } else {
12922
- SetInputValue(text.value);
13075
+ setInputValue("");
12923
13076
  }
12924
- onChange && onChange(text.value, event);
12925
13077
  };
12926
- const textFocus = (event) => {
13078
+ const handleFocus = (event) => {
12927
13079
  if (disabled)
12928
13080
  return;
12929
- if (readonly)
13081
+ if (readOnly)
12930
13082
  return;
12931
13083
  onFocus && onFocus(event);
12932
13084
  };
12933
- const textBlur = (event) => {
13085
+ const handleBlur = (event) => {
12934
13086
  if (disabled)
12935
13087
  return;
12936
- if (readonly)
13088
+ if (readOnly)
12937
13089
  return;
12938
- const text = event.detail ? event.detail : event.target;
12939
- onChange && onChange(text.value, event);
12940
13090
  onBlur && onBlur(event);
12941
13091
  };
12942
- const startComposing = () => {
12943
- compositingRef.current = true;
12944
- };
12945
- const endComposing = () => {
12946
- compositingRef.current = false;
12947
- };
12948
13092
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
12949
13093
  "div",
12950
13094
  {
12951
- className: `${textareaBem()} ${disabled ? textareaBem("disabled") : ""} ${className || ""}`,
13095
+ className: classNames(classPrefix2, className, {
13096
+ [`${classPrefix2}__disabled`]: disabled
13097
+ }),
12952
13098
  children: [
12953
13099
  /* @__PURE__ */ jsxRuntimeExports.jsx(
12954
- "textarea",
13100
+ components.Textarea,
12955
13101
  {
12956
- className: textareaBem("textarea"),
12957
- style: {
12958
- textAlign,
12959
- resize: `${autosize ? "vertical" : "none"}`,
12960
- ...style
13102
+ nativeProps: {
13103
+ style,
13104
+ readOnly,
13105
+ rows,
13106
+ onCompositionStart: () => {
13107
+ compositionRef.current = true;
13108
+ },
13109
+ onCompositionEnd: () => {
13110
+ compositionRef.current = false;
13111
+ }
12961
13112
  },
12962
- readOnly: disabled || readonly,
13113
+ className: `${classPrefix2}__textarea`,
13114
+ style: Taro.getEnv() === "WEB" ? void 0 : style,
13115
+ disabled: Taro.getEnv() === "WEB" ? disabled : disabled || readOnly,
12963
13116
  value: inputValue,
12964
- onInput: (e) => {
12965
- textChange(e);
12966
- },
12967
- onChange: (e) => {
12968
- textChange(e);
12969
- },
12970
- onBlur: (e) => {
12971
- textBlur(e);
12972
- },
12973
- onFocus: (e) => {
12974
- textFocus(e);
12975
- },
12976
- onCompositionEnd: (e) => endComposing(),
12977
- onCompositionStart: (e) => startComposing(),
12978
- rows,
12979
- maxLength: maxlength < 0 ? 0 : maxlength,
12980
- placeholder: placeholder || locale.placeholder
13117
+ onInput: (e) => handleChange(e),
13118
+ onBlur: (e) => handleBlur(e),
13119
+ onFocus: (e) => handleFocus(e),
13120
+ autoHeight: autoSize,
13121
+ maxlength: maxLength,
13122
+ placeholder: placeholder || locale.placeholder,
13123
+ ...rest
12981
13124
  }
12982
13125
  ),
12983
- limitshow ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: textareaBem("limit"), children: [
12984
- [...inputValue].length,
13126
+ showCount && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix2}__limit`, children: [
13127
+ inputValue.length,
12985
13128
  "/",
12986
- maxlength < 0 ? 0 : maxlength
12987
- ] }) : null
13129
+ maxLength < 0 ? 0 : maxLength
13130
+ ] })
12988
13131
  ]
12989
13132
  }
12990
13133
  );
@@ -13550,7 +13693,7 @@ var __publicField = (obj, key, value) => {
13550
13693
  children: [
13551
13694
  previewType === "picture" && !children && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "nut-uploader__preview-img", children: [
13552
13695
  deletable && /* @__PURE__ */ jsxRuntimeExports.jsx(
13553
- a$k,
13696
+ a$l,
13554
13697
  {
13555
13698
  color: "rgba(0,0,0,0.6)",
13556
13699
  className: "close",
@@ -13558,7 +13701,7 @@ var __publicField = (obj, key, value) => {
13558
13701
  }
13559
13702
  ),
13560
13703
  item.status === "ready" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-uploader__preview__progress", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-uploader__preview__progress__msg", children: item.message }) }) : item.status !== "success" && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "nut-uploader__preview__progress", children: [
13561
- item.failIcon !== " " && item.loadingIcon !== " " && (item.status === "error" ? item.failIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$k, { color: "#fff" }) : item.loadingIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, { color: "#fff" })),
13704
+ item.failIcon !== " " && item.loadingIcon !== " " && (item.status === "error" ? item.failIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$l, { color: "#fff" }) : item.loadingIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(r$f, { color: "#fff" })),
13562
13705
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-uploader__preview__progress__msg", children: item.message })
13563
13706
  ] }),
13564
13707
  item.type.includes("image") ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: item.url && /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -13584,7 +13727,7 @@ var __publicField = (obj, key, value) => {
13584
13727
  onClick: () => handleItemClick(item),
13585
13728
  className: "nut-uploader__preview-img__file__name",
13586
13729
  children: [
13587
- /* @__PURE__ */ jsxRuntimeExports.jsx(a$f, { color: "#808080" }),
13730
+ /* @__PURE__ */ jsxRuntimeExports.jsx(a$g, { color: "#808080" }),
13588
13731
  " ",
13589
13732
  item.name
13590
13733
  ]
@@ -13599,14 +13742,14 @@ var __publicField = (obj, key, value) => {
13599
13742
  className: `nut-uploader__preview-img__file__name ${item.status}`,
13600
13743
  onClick: () => handleItemClick(item),
13601
13744
  children: [
13602
- /* @__PURE__ */ jsxRuntimeExports.jsx(a$f, {}),
13745
+ /* @__PURE__ */ jsxRuntimeExports.jsx(a$g, {}),
13603
13746
  " ",
13604
13747
  item.name
13605
13748
  ]
13606
13749
  }
13607
13750
  ),
13608
13751
  deletable && /* @__PURE__ */ jsxRuntimeExports.jsx(
13609
- a$m,
13752
+ a$n,
13610
13753
  {
13611
13754
  color: "#808080",
13612
13755
  className: "nut-uploader__preview-img__file__del",
@@ -14038,26 +14181,30 @@ var __publicField = (obj, key, value) => {
14038
14181
  network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
14039
14182
  };
14040
14183
  const defaultProps$B = {
14041
- description: "无内容",
14042
- image: "empty",
14184
+ ...ComponentDefaults,
14185
+ description: "",
14043
14186
  imageSize: "",
14044
- className: ""
14187
+ status: "empty"
14045
14188
  };
14189
+ const classPrefix$6 = `nut-empty`;
14046
14190
  const Empty = (props) => {
14047
14191
  const { locale } = useConfig$1();
14048
14192
  defaultProps$B.description = locale.noData || defaultProps$B.description;
14049
- const { image, imageSize, description, children, className, ...rest } = {
14193
+ const {
14194
+ image,
14195
+ imageSize,
14196
+ description,
14197
+ children,
14198
+ className,
14199
+ status,
14200
+ ...rest
14201
+ } = {
14050
14202
  ...defaultProps$B,
14051
14203
  ...props
14052
14204
  };
14053
14205
  const [imgStyle, setImgStyle] = React.useState({});
14054
- const b2 = cn("empty");
14055
- let imageNode = image;
14056
- if (typeof image === "string") {
14057
- const isHttpUrl = image.startsWith("https://") || image.startsWith("http://") || image.startsWith("//");
14058
- const imageUrl = isHttpUrl ? image : defaultStatus[image];
14059
- imageNode = /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: "img", src: imageUrl, alt: "empty" });
14060
- }
14206
+ const imageUrl = image || defaultStatus[status];
14207
+ const imageNode = typeof imageUrl === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: "img", src: imageUrl, alt: "empty" }) : imageUrl;
14061
14208
  React.useEffect(() => {
14062
14209
  setImgStyle(() => {
14063
14210
  if (!imageSize) {
@@ -14075,9 +14222,9 @@ var __publicField = (obj, key, value) => {
14075
14222
  };
14076
14223
  });
14077
14224
  }, [imageSize]);
14078
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${b2()} ${className}`, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
14079
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("image"), style: imgStyle, children: imageNode }),
14080
- typeof description === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("description"), children: description }) : { description },
14225
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$6} ${className}`, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
14226
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$6}__image`, style: imgStyle, children: imageNode }),
14227
+ typeof description === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$6}__description`, children: description }) : description,
14081
14228
  children
14082
14229
  ] }) });
14083
14230
  };
@@ -14633,7 +14780,7 @@ var __publicField = (obj, key, value) => {
14633
14780
  ]
14634
14781
  }
14635
14782
  ) }),
14636
- closeMode || rightIcon ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "right-icon", onClick: onClickIcon, children: rightIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$n, { size: 12, color }) }) : null
14783
+ closeMode || rightIcon ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "right-icon", onClick: onClickIcon, children: rightIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { size: 12, color }) }) : null
14637
14784
  ] }) : null,
14638
14785
  showNoticeBar && scrollList.current.length > 0 && isVertical ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
14639
14786
  "div",
@@ -14681,7 +14828,7 @@ var __publicField = (obj, key, value) => {
14681
14828
  onClick: (e) => {
14682
14829
  handleClickIcon(e);
14683
14830
  },
14684
- children: rightIcon || (closeMode ? /* @__PURE__ */ jsxRuntimeExports.jsx(a$n, { size: 12, color }) : null)
14831
+ children: rightIcon || (closeMode ? /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { size: 12, color }) : null)
14685
14832
  }
14686
14833
  )
14687
14834
  ]
@@ -19717,27 +19864,30 @@ This message will only show in development mode. It won't appear in production.
19717
19864
  const defaultProps$v = {
19718
19865
  ...ComponentDefaults,
19719
19866
  size: "",
19867
+ shape: "round",
19720
19868
  icon: "",
19721
- bgColor: "#eee",
19869
+ fit: "cover",
19870
+ background: "#eee",
19722
19871
  color: "#666",
19723
- prefixCls: "nut-avatar",
19724
- url: ""
19872
+ src: "",
19873
+ alt: ""
19725
19874
  };
19875
+ const classPrefix$5 = `nut-avatar`;
19726
19876
  const Avatar = (props) => {
19727
19877
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
19728
19878
  const {
19729
19879
  children,
19730
- prefixCls: prefixCls2,
19731
19880
  size,
19732
19881
  shape,
19733
- bgColor,
19882
+ background,
19734
19883
  color,
19735
- url,
19884
+ src,
19736
19885
  icon,
19886
+ fit,
19887
+ alt,
19737
19888
  className,
19738
19889
  style,
19739
- activeAvatar,
19740
- onActiveAvatar,
19890
+ onClick,
19741
19891
  onError,
19742
19892
  ...rest
19743
19893
  } = {
@@ -19749,24 +19899,23 @@ This message will only show in development mode. It won't appear in production.
19749
19899
  const [avatarIndex, setAvatarIndex] = React.useState(1);
19750
19900
  const avatarRef = React.useRef(null);
19751
19901
  const parent = React.useContext(AvatarContext);
19752
- const b2 = cn("avatar");
19902
+ const sizeValue = ["large", "normal", "small"];
19753
19903
  const classes = classNames({
19754
- [`nut-avatar-${size || ((_a = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _a.size) || "normal"}`]: true,
19755
- [`nut-avatar-${shape || ((_b = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _b.shape) || "round"}`]: true
19904
+ [`nut-avatar-${((_a = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _a.size) || size || "normal"}`]: true,
19905
+ [`nut-avatar-${((_b = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _b.shape) || shape}`]: true
19756
19906
  });
19757
- const cls = classNames(b2(""), classes, className);
19758
- const sizeValue = ["large", "normal", "small"];
19907
+ const cls = classNames(classPrefix$5, classes, className);
19759
19908
  const styles = {
19760
19909
  width: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
19761
19910
  height: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
19762
- backgroundColor: `${bgColor}`,
19911
+ backgroundColor: `${background}`,
19763
19912
  color: `${color}`,
19764
- marginLeft: avatarIndex !== 1 && ((_c = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _c.span) ? `${(_d = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _d.span}px` : "",
19765
- zIndex: ((_e = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _e.zIndex) === "right" ? `${Math.abs(maxSum - avatarIndex)}` : "",
19913
+ marginLeft: avatarIndex !== 1 && ((_c = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _c.gap) ? `${(_d = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _d.gap}px` : "",
19914
+ zIndex: ((_e = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _e.level) === "right" ? `${Math.abs(maxSum - avatarIndex)}` : "",
19766
19915
  ...style
19767
19916
  };
19768
19917
  const maxStyles = {
19769
- backgroundColor: `${(_f = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _f.maxBgColor}`,
19918
+ backgroundColor: `${(_f = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _f.maxBackground}`,
19770
19919
  color: `${(_g = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _g.maxColor}`
19771
19920
  };
19772
19921
  React.useEffect(() => {
@@ -19784,23 +19933,22 @@ This message will only show in development mode. It won't appear in production.
19784
19933
  }
19785
19934
  }
19786
19935
  const index = (_b2 = (_a2 = avatarRef == null ? void 0 : avatarRef.current) == null ? void 0 : _a2.dataset) == null ? void 0 : _b2.index;
19787
- const maxCount = (_c2 = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _c2.maxCount;
19936
+ const maxCount = (_c2 = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _c2.max;
19788
19937
  setMaxSum(children2.length);
19789
19938
  setAvatarIndex(index);
19790
19939
  if (index === children2.length && index !== maxCount && children2.length > maxCount) {
19791
19940
  setShowMax(true);
19792
19941
  }
19793
19942
  };
19794
- const errorEvent = (e) => {
19943
+ const errorEvent = () => {
19795
19944
  if (props.onError) {
19796
- props.onError(e);
19945
+ props.onError();
19797
19946
  }
19798
19947
  };
19799
19948
  const clickAvatar = (e) => {
19800
- activeAvatar && activeAvatar(e);
19801
- onActiveAvatar && onActiveAvatar(e);
19949
+ onClick && onClick(e);
19802
19950
  };
19803
- return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: (showMax || !((_h = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _h.maxCount) || avatarIndex <= ((_i = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _i.maxCount)) && /* @__PURE__ */ jsxRuntimeExports.jsxs(
19951
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: (showMax || !((_h = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _h.max) || avatarIndex <= ((_i = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _i.max)) && /* @__PURE__ */ jsxRuntimeExports.jsxs(
19804
19952
  "div",
19805
19953
  {
19806
19954
  className: cls,
@@ -19809,15 +19957,25 @@ This message will only show in development mode. It won't appear in production.
19809
19957
  onClick: clickAvatar,
19810
19958
  ref: avatarRef,
19811
19959
  children: [
19812
- (!((_j = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _j.maxCount) || avatarIndex <= ((_k = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _k.maxCount)) && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
19813
- url && /* @__PURE__ */ jsxRuntimeExports.jsx(components.Image, { className: "avatar-img", src: url, onError: errorEvent }),
19960
+ (!((_j = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _j.max) || avatarIndex <= ((_k = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _k.max)) && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
19961
+ src && /* @__PURE__ */ jsxRuntimeExports.jsx(
19962
+ Image$1,
19963
+ {
19964
+ className: "avatar-img",
19965
+ src,
19966
+ style: { objectFit: fit },
19967
+ alt,
19968
+ onError: errorEvent
19969
+ }
19970
+ ),
19814
19971
  React.isValidElement(icon) ? React.cloneElement(icon, {
19815
19972
  ...icon.props,
19816
19973
  className: `${icon.props.className || ""} icon`
19817
19974
  }) : null,
19818
- children && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text", children })
19975
+ children && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text", children }),
19976
+ !src && !icon && !children && /* @__PURE__ */ jsxRuntimeExports.jsx(a$b, { className: "icon" })
19819
19977
  ] }),
19820
- showMax && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text", children: ((_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.maxCount)}` })
19978
+ showMax && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text", children: ((_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)}` })
19821
19979
  ]
19822
19980
  }
19823
19981
  ) });
@@ -19887,7 +20045,7 @@ This message will only show in development mode. It won't appear in production.
19887
20045
  Avatar,
19888
20046
  {
19889
20047
  className: avatarClass,
19890
- bgColor: "rgb(239, 239, 239)",
20048
+ background: "rgb(239, 239, 239)",
19891
20049
  shape: avatarShape,
19892
20050
  style: getStyle()
19893
20051
  }
@@ -19920,9 +20078,7 @@ This message will only show in development mode. It won't appear in production.
19920
20078
  }
19921
20079
  }
19922
20080
  const defaultProps$t = {
19923
- name: "",
19924
- leftWidth: 0,
19925
- rightWidth: 0
20081
+ name: ""
19926
20082
  };
19927
20083
  const Swipe = React.forwardRef((props, instanceRef) => {
19928
20084
  const swipeBem = cn("swipe");
@@ -19957,14 +20113,8 @@ This message will only show in development mode. It won't appear in production.
19957
20113
  transform: `translate3d(${state.offset}px, 0, 0)`,
19958
20114
  transitionDuration: state.dragging ? "0s" : ".6s"
19959
20115
  };
19960
- const leftWidth = React.useMemo(
19961
- () => props.leftWidth ? props.leftWidth : actionWidth.left,
19962
- [props.leftWidth, actionWidth.left]
19963
- );
19964
- const rightWidth = React.useMemo(
19965
- () => props.rightWidth ? props.rightWidth : actionWidth.right,
19966
- [props.rightWidth, actionWidth.right]
19967
- );
20116
+ const leftWidth = actionWidth.left;
20117
+ const rightWidth = actionWidth.right;
19968
20118
  const onTouchStart = async (event) => {
19969
20119
  if (leftWrapper.current) {
19970
20120
  const leftRect = await getRectByTaro(leftWrapper.current);
@@ -20116,7 +20266,7 @@ This message will only show in development mode. It won't appear in production.
20116
20266
  onClick: (event) => {
20117
20267
  }
20118
20268
  };
20119
- const classPrefix$2 = `nut-animate`;
20269
+ const classPrefix$4 = `nut-animate`;
20120
20270
  const Animate = (props) => {
20121
20271
  const { className, type, action, loop: loop2, onClick, children, ...rest } = {
20122
20272
  ...defaultProps$s,
@@ -20125,7 +20275,7 @@ This message will only show in development mode. It won't appear in production.
20125
20275
  const [clicked, setClicked] = React.useState(false);
20126
20276
  const classes = classNames({
20127
20277
  "nut-ani-container": true,
20128
- [`${classPrefix$2}-${type}`]: action === "initial" || clicked ? type : false,
20278
+ [`${classPrefix$4}-${type}`]: action === "initial" || clicked ? type : false,
20129
20279
  loop: loop2
20130
20280
  });
20131
20281
  const cls = classNames(classes, className);
@@ -20456,22 +20606,20 @@ This message will only show in development mode. It won't appear in production.
20456
20606
  Audio.defaultProps = defaultProps$p;
20457
20607
  Audio.displayName = "NutAudio";
20458
20608
  const defaultProps$o = {
20609
+ ...ComponentDefaults,
20459
20610
  maxContent: "",
20460
- maxCount: "",
20461
- maxBgColor: "#eee",
20611
+ max: "",
20612
+ maxBackground: "#eee",
20462
20613
  maxColor: "#666",
20463
- size: "",
20464
- shape: "",
20465
- span: "-8",
20466
- zIndex: "left"
20614
+ gap: "-8",
20615
+ level: "left"
20467
20616
  };
20617
+ const classPrefix$3 = `nut-avatar-group`;
20468
20618
  const AvatarGroup = (props) => {
20469
- useConfig();
20470
20619
  const propAvatarGroup = { ...defaultProps$o, ...props };
20471
20620
  const { className, style, children } = propAvatarGroup;
20472
20621
  const avatarGroupRef = React.useRef(null);
20473
- const b2 = cn("avatar-group");
20474
- const cls = classNames(b2(""), className);
20622
+ const cls = classNames(classPrefix$3, className);
20475
20623
  const parentAvatar = {
20476
20624
  propAvatarGroup,
20477
20625
  avatarGroupRef
@@ -20489,7 +20637,7 @@ This message will only show in development mode. It won't appear in production.
20489
20637
  background: "#e5e9f2",
20490
20638
  clockwise: true
20491
20639
  };
20492
- const classPrefix$1 = `nut-circleprogress`;
20640
+ const classPrefix$2 = `nut-circleprogress`;
20493
20641
  const CircleProgress = (props) => {
20494
20642
  const {
20495
20643
  children,
@@ -20508,7 +20656,7 @@ This message will only show in development mode. It won't appear in production.
20508
20656
  ...props
20509
20657
  };
20510
20658
  const [oldValue, setOldValue] = React.useState(percent);
20511
- const classes = classNames(className, classPrefix$1);
20659
+ const classes = classNames(className, classPrefix$2);
20512
20660
  const refRandomId = Math.random().toString(36).slice(-8);
20513
20661
  const animateIdRef = React.useRef(0);
20514
20662
  const styles = {
@@ -20989,6 +21137,7 @@ This message will only show in development mode. It won't appear in production.
20989
21137
  CountDown.defaultProps = defaultProps$k;
20990
21138
  CountDown.displayName = "NutCountDown";
20991
21139
  const defaultProps$j = {
21140
+ ...ComponentDefaults,
20992
21141
  content: "",
20993
21142
  direction: "end",
20994
21143
  rows: 1,
@@ -20997,20 +21146,22 @@ This message will only show in development mode. It won't appear in production.
20997
21146
  symbol: "...",
20998
21147
  lineHeight: "20"
20999
21148
  };
21149
+ const classPrefix$1 = `nut-ellipsis`;
21000
21150
  const Ellipsis = (props) => {
21001
21151
  var _a, _b, _c, _d;
21002
- useConfig$1();
21003
21152
  const {
21004
21153
  children,
21005
21154
  content,
21006
21155
  direction,
21007
21156
  rows,
21157
+ className,
21008
21158
  expandText,
21009
21159
  collapseText,
21010
21160
  symbol,
21011
21161
  lineHeight,
21012
21162
  onClick,
21013
- onChange
21163
+ onChange,
21164
+ ...rest
21014
21165
  } = { ...defaultProps$j, ...props };
21015
21166
  let maxHeight = 0;
21016
21167
  const [exceeded, setExceeded] = React.useState(false);
@@ -21033,6 +21184,7 @@ This message will only show in development mode. It won't appear in production.
21033
21184
  const digitReg = /^[0-9]+$/;
21034
21185
  const letterUpperReg = /^[A-Z]+$/;
21035
21186
  const letterLowerReg = /^[a-z]+$/;
21187
+ const classes = classNames(classPrefix$1, className);
21036
21188
  const init = () => {
21037
21189
  setExceeded(false);
21038
21190
  setExpanded(false);
@@ -21209,10 +21361,11 @@ This message will only show in development mode. It won't appear in production.
21209
21361
  /* @__PURE__ */ jsxRuntimeExports.jsx(
21210
21362
  "div",
21211
21363
  {
21212
- className: "nut-ellipsis",
21364
+ className: classes,
21213
21365
  onClick: handleClick,
21214
21366
  ref: root2,
21215
21367
  id: `root${refRandomId}`,
21368
+ ...rest,
21216
21369
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
21217
21370
  !exceeded ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-ellipsis-wordbreak", children: content }) : null,
21218
21371
  exceeded && !expanded ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "nut-ellipsis-wordbreak", children: [
@@ -22549,13 +22702,11 @@ This message will only show in development mode. It won't appear in production.
22549
22702
  Steps.displayName = "NutSteps";
22550
22703
  const defaultProps$9 = {
22551
22704
  ...ComponentDefaults,
22552
- className: "",
22553
- style: {},
22554
22705
  columns: [],
22555
22706
  data: [],
22556
22707
  bordered: true,
22557
22708
  striped: false,
22558
- noData: "无数据",
22709
+ noData: "",
22559
22710
  sorterIcon: null,
22560
22711
  showHeader: true
22561
22712
  };
@@ -22573,8 +22724,8 @@ This message will only show in development mode. It won't appear in production.
22573
22724
  striped,
22574
22725
  noData,
22575
22726
  sorterIcon,
22576
- onSorter,
22577
22727
  showHeader,
22728
+ onSort,
22578
22729
  ...rest
22579
22730
  } = {
22580
22731
  ...defaultProps$9,
@@ -22586,12 +22737,13 @@ This message will only show in development mode. It won't appear in production.
22586
22737
  setCurData(data);
22587
22738
  }
22588
22739
  }, [data]);
22589
- const b2 = cn("table");
22590
- const classes = classNames({});
22591
- const cls = classNames(b2(), classes, className);
22740
+ const classPrefix2 = "nut-table";
22741
+ const headerClassPrefix = `${classPrefix2}__main__head__tr`;
22742
+ const bodyClassPrefix = `${classPrefix2}__main__body__tr`;
22743
+ const cls = classNames(classPrefix2, className);
22592
22744
  const handleSorterClick = (item) => {
22593
22745
  if (item.sorter) {
22594
- onSorter && onSorter(item, curData);
22746
+ onSort && onSort(item, curData);
22595
22747
  if (typeof item.sorter === "function") {
22596
22748
  setCurData(curData.sort(item.sorter));
22597
22749
  } else {
@@ -22601,8 +22753,8 @@ This message will only show in development mode. It won't appear in production.
22601
22753
  };
22602
22754
  const cellClasses = (item) => {
22603
22755
  return {
22604
- "nut-table__main__head__tr--border": props.bordered,
22605
- [`nut-table__main__head__tr--align${item.align ? item.align : ""}`]: true
22756
+ [`${headerClassPrefix}--border`]: props.bordered,
22757
+ [`${headerClassPrefix}--align${item.align ? item.align : ""}`]: true
22606
22758
  };
22607
22759
  };
22608
22760
  const getColumnItem = (value) => {
@@ -22613,15 +22765,12 @@ This message will only show in development mode. It won't appear in production.
22613
22765
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
22614
22766
  "span",
22615
22767
  {
22616
- className: classNames(
22617
- "nut-table__main__head__tr__th",
22618
- cellClasses(item)
22619
- ),
22768
+ className: classNames(`${headerClassPrefix}__th`, cellClasses(item)),
22620
22769
  onClick: () => handleSorterClick(item),
22621
22770
  children: [
22622
22771
  item.title,
22623
22772
  " ",
22624
- item.sorter && (sorterIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$l, { size: "12px" }))
22773
+ item.sorter && (sorterIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$m, { size: "12px" }))
22625
22774
  ]
22626
22775
  },
22627
22776
  item.key
@@ -22639,7 +22788,7 @@ This message will only show in development mode. It won't appear in production.
22639
22788
  "span",
22640
22789
  {
22641
22790
  className: classNames(
22642
- "nut-table__main__body__tr__td",
22791
+ `${bodyClassPrefix}__td`,
22643
22792
  cellClasses(getColumnItem(value))
22644
22793
  ),
22645
22794
  children: typeof item[value] === "function" || typeof render === "function" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: render ? render(item) : item[value](item) }) : item[value]
@@ -22650,24 +22799,23 @@ This message will only show in development mode. It won't appear in production.
22650
22799
  };
22651
22800
  const renderBoyTrs = () => {
22652
22801
  return curData.map((item, index) => {
22653
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-table__main__body__tr", children: renderBodyTds(item) }, index);
22802
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: bodyClassPrefix, children: renderBodyTds(item) }, index);
22654
22803
  });
22655
22804
  };
22656
22805
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cls, style, ...rest, children: [
22657
22806
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
22658
22807
  "div",
22659
22808
  {
22660
- className: classNames("nut-table__main", {
22661
- "nut-table__main--striped": striped
22809
+ className: classNames(`${classPrefix2}__main`, {
22810
+ [`${classPrefix2}__main--striped`]: striped
22662
22811
  }),
22663
22812
  children: [
22664
- showHeader && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-table__main__head", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-table__main__head__tr", children: renderHeadCells() }) }),
22665
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-table__main__body", children: renderBoyTrs() })
22813
+ showHeader && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__main__head`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: headerClassPrefix, children: renderHeadCells() }) }),
22814
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__main__body`, children: renderBoyTrs() })
22666
22815
  ]
22667
22816
  }
22668
22817
  ),
22669
- summary && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-table__summary", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "nut-table__summary__text", children: summary }) }),
22670
- curData.length === 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-table__nodata", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-table__nodata", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-table__nodata__text", children: noData }) }) })
22818
+ (summary || curData.length === 0) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__summary`, children: summary || noData })
22671
22819
  ] });
22672
22820
  };
22673
22821
  Table.defaultProps = defaultProps$9;
@@ -22776,7 +22924,7 @@ This message will only show in development mode. It won't appear in production.
22776
22924
  children: closeIcon
22777
22925
  }
22778
22926
  ) : /* @__PURE__ */ jsxRuntimeExports.jsx(
22779
- a$n,
22927
+ a$o,
22780
22928
  {
22781
22929
  size: 12,
22782
22930
  onClick: (e) => {