@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
@@ -5,13 +5,13 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  /*!
8
- * @nutui/nutui-react-taro v2.0.0-alpha.4 Fri May 05 2023 16:38:12 GMT+0800 (China Standard Time)
8
+ * @nutui/nutui-react-taro v2.0.0-alpha.6 Fri May 12 2023 15:11:28 GMT+0800 (China Standard Time)
9
9
  * (c) 2023 @jdf2e.
10
10
  * Released under the MIT License.
11
11
  */
12
12
  import * as React from "react";
13
13
  import React__default, { useCallback, createContext, useMemo, useContext, useState, useEffect, useRef, isValidElement, useImperativeHandle, forwardRef, useLayoutEffect, Component, memo } from "react";
14
- import { View, ScrollView, Input as Input$1, Image as Image$2 } from "@tarojs/components";
14
+ import { View, ScrollView, PickerView, PickerViewColumn, Input as Input$1, Textarea, Image as Image$2 } from "@tarojs/components";
15
15
  import Taro, { getEnv, usePageScroll, getSystemInfoSync, pageScrollTo, nextTick, createSelectorQuery, ENV_TYPE, canvasToTempFilePath, uploadFile, chooseMedia, chooseImage, useReady, createInnerAudioContext, getSystemInfo, createOffscreenCanvas } from "@tarojs/taro";
16
16
  import ReactDOM, { createPortal, unstable_batchedUpdates } from "react-dom";
17
17
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
@@ -1007,7 +1007,7 @@ var classnames = {
1007
1007
  })();
1008
1008
  })(classnames);
1009
1009
  const classNames = classnamesExports;
1010
- const r$w = {
1010
+ const r$x = {
1011
1011
  name: "arrow-down2",
1012
1012
  size: "",
1013
1013
  classPrefix: "nut-icon",
@@ -1021,7 +1021,7 @@ const r$w = {
1021
1021
  function w$1(n) {
1022
1022
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1023
1023
  }
1024
- function a$w(n) {
1024
+ function a$x(n) {
1025
1025
  const {
1026
1026
  name: e,
1027
1027
  size: l,
@@ -1035,7 +1035,7 @@ function a$w(n) {
1035
1035
  onClick: i,
1036
1036
  ...h
1037
1037
  } = {
1038
- ...r$w,
1038
+ ...r$x,
1039
1039
  ...n
1040
1040
  }, s = e ? e.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
1041
1041
  i && i(x);
@@ -1056,9 +1056,9 @@ function a$w(n) {
1056
1056
  d
1057
1057
  );
1058
1058
  }
1059
- a$w.defaultProps = r$w;
1060
- a$w.displayName = "NutIconarrow-down2";
1061
- const r$v = {
1059
+ a$x.defaultProps = r$x;
1060
+ a$x.displayName = "NutIconarrow-down2";
1061
+ const r$w = {
1062
1062
  name: "arrow-up2",
1063
1063
  size: "",
1064
1064
  classPrefix: "nut-icon",
@@ -1072,7 +1072,7 @@ const r$v = {
1072
1072
  function y$t(e) {
1073
1073
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1074
1074
  }
1075
- function a$v(e) {
1075
+ function a$w(e) {
1076
1076
  const {
1077
1077
  name: t,
1078
1078
  size: l,
@@ -1086,7 +1086,7 @@ function a$v(e) {
1086
1086
  onClick: i,
1087
1087
  ...h
1088
1088
  } = {
1089
- ...r$v,
1089
+ ...r$w,
1090
1090
  ...e
1091
1091
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : m, C = (x) => {
1092
1092
  i && i(x);
@@ -1107,9 +1107,9 @@ function a$v(e) {
1107
1107
  p
1108
1108
  );
1109
1109
  }
1110
- a$v.defaultProps = r$v;
1111
- a$v.displayName = "NutIconarrow-up2";
1112
- const r$u = {
1110
+ a$w.defaultProps = r$w;
1111
+ a$w.displayName = "NutIconarrow-up2";
1112
+ const r$v = {
1113
1113
  name: "check-checked",
1114
1114
  size: "",
1115
1115
  classPrefix: "nut-icon",
@@ -1123,7 +1123,7 @@ const r$u = {
1123
1123
  function y$s(e) {
1124
1124
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1125
1125
  }
1126
- function a$u(e) {
1126
+ function a$v(e) {
1127
1127
  const {
1128
1128
  name: c,
1129
1129
  size: l,
@@ -1137,7 +1137,7 @@ function a$u(e) {
1137
1137
  onClick: o,
1138
1138
  ...k
1139
1139
  } = {
1140
- ...r$u,
1140
+ ...r$v,
1141
1141
  ...e
1142
1142
  }, s = c ? c.indexOf("/") !== -1 : false, p = s ? "img" : u, g = (x) => {
1143
1143
  o && o(x);
@@ -1158,9 +1158,9 @@ function a$u(e) {
1158
1158
  h
1159
1159
  );
1160
1160
  }
1161
- a$u.defaultProps = r$u;
1162
- a$u.displayName = "NutIconcheck-checked";
1163
- const a$t = {
1161
+ a$v.defaultProps = r$v;
1162
+ a$v.displayName = "NutIconcheck-checked";
1163
+ const a$u = {
1164
1164
  name: "check-disabled",
1165
1165
  size: "",
1166
1166
  classPrefix: "nut-icon",
@@ -1174,7 +1174,7 @@ const a$t = {
1174
1174
  function y$r(e) {
1175
1175
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1176
1176
  }
1177
- function r$t(e) {
1177
+ function r$u(e) {
1178
1178
  const {
1179
1179
  name: t,
1180
1180
  size: l,
@@ -1188,7 +1188,7 @@ function r$t(e) {
1188
1188
  onClick: o,
1189
1189
  ...p
1190
1190
  } = {
1191
- ...a$t,
1191
+ ...a$u,
1192
1192
  ...e
1193
1193
  }, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
1194
1194
  o && o(x);
@@ -1209,9 +1209,9 @@ function r$t(e) {
1209
1209
  d
1210
1210
  );
1211
1211
  }
1212
- r$t.defaultProps = a$t;
1213
- r$t.displayName = "NutIconcheck-disabled";
1214
- const r$s = {
1212
+ r$u.defaultProps = a$u;
1213
+ r$u.displayName = "NutIconcheck-disabled";
1214
+ const r$t = {
1215
1215
  name: "check-normal",
1216
1216
  size: "",
1217
1217
  classPrefix: "nut-icon",
@@ -1225,7 +1225,7 @@ const r$s = {
1225
1225
  function y$q(e) {
1226
1226
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1227
1227
  }
1228
- function a$s(e) {
1228
+ function a$t(e) {
1229
1229
  const {
1230
1230
  name: n,
1231
1231
  size: l,
@@ -1239,7 +1239,7 @@ function a$s(e) {
1239
1239
  onClick: i,
1240
1240
  ...d
1241
1241
  } = {
1242
- ...r$s,
1242
+ ...r$t,
1243
1243
  ...e
1244
1244
  }, s = n ? n.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
1245
1245
  i && i(x);
@@ -1260,9 +1260,9 @@ function a$s(e) {
1260
1260
  N
1261
1261
  );
1262
1262
  }
1263
- a$s.defaultProps = r$s;
1264
- a$s.displayName = "NutIconcheck-normal";
1265
- const r$r = {
1263
+ a$t.defaultProps = r$t;
1264
+ a$t.displayName = "NutIconcheck-normal";
1265
+ const r$s = {
1266
1266
  name: "Check",
1267
1267
  size: "",
1268
1268
  classPrefix: "nut-icon",
@@ -1276,7 +1276,7 @@ const r$r = {
1276
1276
  function y$p(e) {
1277
1277
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1278
1278
  }
1279
- function a$r(e) {
1279
+ function a$s(e) {
1280
1280
  const {
1281
1281
  name: t,
1282
1282
  size: l,
@@ -1290,7 +1290,7 @@ function a$r(e) {
1290
1290
  onClick: o,
1291
1291
  ...d
1292
1292
  } = {
1293
- ...r$r,
1293
+ ...r$s,
1294
1294
  ...e
1295
1295
  }, s = t ? t.indexOf("/") !== -1 : false, C = s ? "img" : u, k = (x) => {
1296
1296
  o && o(x);
@@ -1311,9 +1311,9 @@ function a$r(e) {
1311
1311
  N
1312
1312
  );
1313
1313
  }
1314
- a$r.defaultProps = r$r;
1315
- a$r.displayName = "NutIconCheck";
1316
- const r$q = {
1314
+ a$s.defaultProps = r$s;
1315
+ a$s.displayName = "NutIconCheck";
1316
+ const r$r = {
1317
1317
  name: "checked",
1318
1318
  size: "",
1319
1319
  classPrefix: "nut-icon",
@@ -1327,7 +1327,7 @@ const r$q = {
1327
1327
  function y$o(e) {
1328
1328
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1329
1329
  }
1330
- function a$q(e) {
1330
+ function a$r(e) {
1331
1331
  const {
1332
1332
  name: t,
1333
1333
  size: l,
@@ -1341,7 +1341,7 @@ function a$q(e) {
1341
1341
  onClick: o,
1342
1342
  ...p
1343
1343
  } = {
1344
- ...r$q,
1344
+ ...r$r,
1345
1345
  ...e
1346
1346
  }, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
1347
1347
  o && o(x);
@@ -1362,9 +1362,9 @@ function a$q(e) {
1362
1362
  d
1363
1363
  );
1364
1364
  }
1365
- a$q.defaultProps = r$q;
1366
- a$q.displayName = "NutIconchecked";
1367
- const r$p = {
1365
+ a$r.defaultProps = r$r;
1366
+ a$r.displayName = "NutIconchecked";
1367
+ const r$q = {
1368
1368
  name: "checklist",
1369
1369
  size: "",
1370
1370
  classPrefix: "nut-icon",
@@ -1378,7 +1378,7 @@ const r$p = {
1378
1378
  function y$n(e) {
1379
1379
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1380
1380
  }
1381
- function a$p(e) {
1381
+ function a$q(e) {
1382
1382
  const {
1383
1383
  name: t,
1384
1384
  size: l,
@@ -1392,7 +1392,7 @@ function a$p(e) {
1392
1392
  onClick: o,
1393
1393
  ...d
1394
1394
  } = {
1395
- ...r$p,
1395
+ ...r$q,
1396
1396
  ...e
1397
1397
  }, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
1398
1398
  o && o(x);
@@ -1413,9 +1413,9 @@ function a$p(e) {
1413
1413
  N
1414
1414
  );
1415
1415
  }
1416
- a$p.defaultProps = r$p;
1417
- a$p.displayName = "NutIconchecklist";
1418
- const r$o = {
1416
+ a$q.defaultProps = r$q;
1417
+ a$q.displayName = "NutIconchecklist";
1418
+ const r$p = {
1419
1419
  name: "circle-close",
1420
1420
  size: "",
1421
1421
  classPrefix: "nut-icon",
@@ -1429,7 +1429,7 @@ const r$o = {
1429
1429
  function y$m(e) {
1430
1430
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1431
1431
  }
1432
- function a$o(e) {
1432
+ function a$p(e) {
1433
1433
  const {
1434
1434
  name: t,
1435
1435
  size: l,
@@ -1443,7 +1443,7 @@ function a$o(e) {
1443
1443
  onClick: o,
1444
1444
  ...h
1445
1445
  } = {
1446
- ...r$o,
1446
+ ...r$p,
1447
1447
  ...e
1448
1448
  }, s = t ? t.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
1449
1449
  o && o(x);
@@ -1464,9 +1464,9 @@ function a$o(e) {
1464
1464
  N
1465
1465
  );
1466
1466
  }
1467
- a$o.defaultProps = r$o;
1468
- a$o.displayName = "NutIconcircle-close";
1469
- const r$n = {
1467
+ a$p.defaultProps = r$p;
1468
+ a$p.displayName = "NutIconcircle-close";
1469
+ const r$o = {
1470
1470
  name: "close",
1471
1471
  size: "",
1472
1472
  classPrefix: "nut-icon",
@@ -1480,7 +1480,7 @@ const r$n = {
1480
1480
  function y$l(e) {
1481
1481
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1482
1482
  }
1483
- function a$n(e) {
1483
+ function a$o(e) {
1484
1484
  const {
1485
1485
  name: t,
1486
1486
  size: l,
@@ -1494,7 +1494,7 @@ function a$n(e) {
1494
1494
  onClick: i,
1495
1495
  ...h
1496
1496
  } = {
1497
- ...r$n,
1497
+ ...r$o,
1498
1498
  ...e
1499
1499
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
1500
1500
  i && i(x);
@@ -1515,9 +1515,9 @@ function a$n(e) {
1515
1515
  N
1516
1516
  );
1517
1517
  }
1518
- a$n.defaultProps = r$n;
1519
- a$n.displayName = "NutIconclose";
1520
- const r$m = {
1518
+ a$o.defaultProps = r$o;
1519
+ a$o.displayName = "NutIconclose";
1520
+ const r$n = {
1521
1521
  name: "del",
1522
1522
  size: "",
1523
1523
  classPrefix: "nut-icon",
@@ -1531,7 +1531,7 @@ const r$m = {
1531
1531
  function y$k(e) {
1532
1532
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1533
1533
  }
1534
- function a$m(e) {
1534
+ function a$n(e) {
1535
1535
  const {
1536
1536
  name: t,
1537
1537
  size: l,
@@ -1545,7 +1545,7 @@ function a$m(e) {
1545
1545
  onClick: o,
1546
1546
  ...h
1547
1547
  } = {
1548
- ...r$m,
1548
+ ...r$n,
1549
1549
  ...e
1550
1550
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
1551
1551
  o && o(x);
@@ -1566,9 +1566,9 @@ function a$m(e) {
1566
1566
  d
1567
1567
  );
1568
1568
  }
1569
- a$m.defaultProps = r$m;
1570
- a$m.displayName = "NutIcondel";
1571
- const r$l = {
1569
+ a$n.defaultProps = r$n;
1570
+ a$n.displayName = "NutIcondel";
1571
+ const r$m = {
1572
1572
  name: "down-arrow",
1573
1573
  size: "",
1574
1574
  classPrefix: "nut-icon",
@@ -1582,7 +1582,7 @@ const r$l = {
1582
1582
  function w(n) {
1583
1583
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1584
1584
  }
1585
- function a$l(n) {
1585
+ function a$m(n) {
1586
1586
  const {
1587
1587
  name: e,
1588
1588
  size: l,
@@ -1596,7 +1596,7 @@ function a$l(n) {
1596
1596
  onClick: i,
1597
1597
  ...h
1598
1598
  } = {
1599
- ...r$l,
1599
+ ...r$m,
1600
1600
  ...n
1601
1601
  }, s = e ? e.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
1602
1602
  i && i(x);
@@ -1617,9 +1617,9 @@ function a$l(n) {
1617
1617
  d
1618
1618
  );
1619
1619
  }
1620
- a$l.defaultProps = r$l;
1621
- a$l.displayName = "NutIcondown-arrow";
1622
- const r$k = {
1620
+ a$m.defaultProps = r$m;
1621
+ a$m.displayName = "NutIcondown-arrow";
1622
+ const r$l = {
1623
1623
  name: "failure",
1624
1624
  size: "",
1625
1625
  classPrefix: "nut-icon",
@@ -1633,7 +1633,7 @@ const r$k = {
1633
1633
  function y$j(e) {
1634
1634
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1635
1635
  }
1636
- function a$k(e) {
1636
+ function a$l(e) {
1637
1637
  const {
1638
1638
  name: t,
1639
1639
  size: l,
@@ -1647,7 +1647,7 @@ function a$k(e) {
1647
1647
  onClick: o,
1648
1648
  ...h
1649
1649
  } = {
1650
- ...r$k,
1650
+ ...r$l,
1651
1651
  ...e
1652
1652
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : m, C = (x) => {
1653
1653
  o && o(x);
@@ -1668,9 +1668,9 @@ function a$k(e) {
1668
1668
  N
1669
1669
  );
1670
1670
  }
1671
- a$k.defaultProps = r$k;
1672
- a$k.displayName = "NutIconfailure";
1673
- const r$j = {
1671
+ a$l.defaultProps = r$l;
1672
+ a$l.displayName = "NutIconfailure";
1673
+ const r$k = {
1674
1674
  name: "image-error",
1675
1675
  size: "",
1676
1676
  classPrefix: "nut-icon",
@@ -1684,7 +1684,7 @@ const r$j = {
1684
1684
  function y$i(e) {
1685
1685
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1686
1686
  }
1687
- function a$j(e) {
1687
+ function a$k(e) {
1688
1688
  const {
1689
1689
  name: t,
1690
1690
  size: l,
@@ -1698,7 +1698,7 @@ function a$j(e) {
1698
1698
  onClick: o,
1699
1699
  ...g
1700
1700
  } = {
1701
- ...r$j,
1701
+ ...r$k,
1702
1702
  ...e
1703
1703
  }, c = t ? t.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
1704
1704
  o && o(x);
@@ -1719,9 +1719,9 @@ function a$j(e) {
1719
1719
  N
1720
1720
  );
1721
1721
  }
1722
- a$j.defaultProps = r$j;
1723
- a$j.displayName = "NutIconimage-error";
1724
- const a$i = {
1722
+ a$k.defaultProps = r$k;
1723
+ a$k.displayName = "NutIconimage-error";
1724
+ const a$j = {
1725
1725
  name: "image",
1726
1726
  size: "",
1727
1727
  classPrefix: "nut-icon",
@@ -1735,7 +1735,7 @@ const a$i = {
1735
1735
  function y$h(e) {
1736
1736
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1737
1737
  }
1738
- function r$i(e) {
1738
+ function r$j(e) {
1739
1739
  const {
1740
1740
  name: t,
1741
1741
  size: l,
@@ -1749,7 +1749,7 @@ function r$i(e) {
1749
1749
  onClick: o,
1750
1750
  ...g
1751
1751
  } = {
1752
- ...a$i,
1752
+ ...a$j,
1753
1753
  ...e
1754
1754
  }, c = t ? t.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
1755
1755
  o && o(x);
@@ -1770,9 +1770,9 @@ function r$i(e) {
1770
1770
  N
1771
1771
  );
1772
1772
  }
1773
- r$i.defaultProps = a$i;
1774
- r$i.displayName = "NutIconimage";
1775
- const r$h = {
1773
+ r$j.defaultProps = a$j;
1774
+ r$j.displayName = "NutIconimage";
1775
+ const r$i = {
1776
1776
  name: "joy-smile",
1777
1777
  size: "",
1778
1778
  classPrefix: "nut-icon",
@@ -1783,10 +1783,10 @@ const r$h = {
1783
1783
  },
1784
1784
  className: ""
1785
1785
  };
1786
- function $(e) {
1786
+ function $$1(e) {
1787
1787
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1788
1788
  }
1789
- function a$h(e) {
1789
+ function a$i(e) {
1790
1790
  const {
1791
1791
  name: t,
1792
1792
  size: l,
@@ -1800,11 +1800,11 @@ function a$h(e) {
1800
1800
  onClick: o,
1801
1801
  ...h
1802
1802
  } = {
1803
- ...r$h,
1803
+ ...r$i,
1804
1804
  ...e
1805
1805
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, y2 = (k) => {
1806
1806
  o && o(k);
1807
- }, C = () => c ? { src: t } : {}, n = {}, s = $(l);
1807
+ }, C = () => c ? { src: t } : {}, n = {}, s = $$1(l);
1808
1808
  return s && (n.fontSize = s, n.width = s, n.height = s), React__default.createElement(
1809
1809
  g,
1810
1810
  {
@@ -1821,9 +1821,9 @@ function a$h(e) {
1821
1821
  N
1822
1822
  );
1823
1823
  }
1824
- a$h.defaultProps = r$h;
1825
- a$h.displayName = "NutIconjoy-smile";
1826
- const r$g = {
1824
+ a$i.defaultProps = r$i;
1825
+ a$i.displayName = "NutIconjoy-smile";
1826
+ const r$h = {
1827
1827
  name: "left",
1828
1828
  size: "",
1829
1829
  classPrefix: "nut-icon",
@@ -1837,7 +1837,7 @@ const r$g = {
1837
1837
  function y$g(e) {
1838
1838
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1839
1839
  }
1840
- function a$g(e) {
1840
+ function a$h(e) {
1841
1841
  const {
1842
1842
  name: t,
1843
1843
  size: l,
@@ -1851,7 +1851,7 @@ function a$g(e) {
1851
1851
  onClick: o,
1852
1852
  ...h
1853
1853
  } = {
1854
- ...r$g,
1854
+ ...r$h,
1855
1855
  ...e
1856
1856
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
1857
1857
  o && o(x);
@@ -1872,9 +1872,9 @@ function a$g(e) {
1872
1872
  N
1873
1873
  );
1874
1874
  }
1875
- a$g.defaultProps = r$g;
1876
- a$g.displayName = "NutIconleft";
1877
- const r$f = {
1875
+ a$h.defaultProps = r$h;
1876
+ a$h.displayName = "NutIconleft";
1877
+ const r$g = {
1878
1878
  name: "link",
1879
1879
  size: "",
1880
1880
  classPrefix: "nut-icon",
@@ -1888,7 +1888,7 @@ const r$f = {
1888
1888
  function y$f(n) {
1889
1889
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1890
1890
  }
1891
- function a$f(n) {
1891
+ function a$g(n) {
1892
1892
  const {
1893
1893
  name: e,
1894
1894
  size: l,
@@ -1902,7 +1902,7 @@ function a$f(n) {
1902
1902
  onClick: o,
1903
1903
  ...h
1904
1904
  } = {
1905
- ...r$f,
1905
+ ...r$g,
1906
1906
  ...n
1907
1907
  }, c = e ? e.indexOf("/") !== -1 : false, k = c ? "img" : u, g = (x) => {
1908
1908
  o && o(x);
@@ -1923,9 +1923,9 @@ function a$f(n) {
1923
1923
  N
1924
1924
  );
1925
1925
  }
1926
- a$f.defaultProps = r$f;
1927
- a$f.displayName = "NutIconlink";
1928
- const a$e = {
1926
+ a$g.defaultProps = r$g;
1927
+ a$g.displayName = "NutIconlink";
1928
+ const a$f = {
1929
1929
  name: "loading",
1930
1930
  size: "",
1931
1931
  classPrefix: "nut-icon",
@@ -1939,7 +1939,7 @@ const a$e = {
1939
1939
  function y$e(n) {
1940
1940
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1941
1941
  }
1942
- function r$e(n) {
1942
+ function r$f(n) {
1943
1943
  const {
1944
1944
  name: e,
1945
1945
  size: l,
@@ -1953,7 +1953,7 @@ function r$e(n) {
1953
1953
  onClick: o,
1954
1954
  ...g
1955
1955
  } = {
1956
- ...a$e,
1956
+ ...a$f,
1957
1957
  ...n
1958
1958
  }, c = e ? e.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
1959
1959
  o && o(x);
@@ -1974,9 +1974,9 @@ function r$e(n) {
1974
1974
  d
1975
1975
  );
1976
1976
  }
1977
- r$e.defaultProps = a$e;
1978
- r$e.displayName = "NutIconloading";
1979
- const a$d = {
1977
+ r$f.defaultProps = a$f;
1978
+ r$f.displayName = "NutIconloading";
1979
+ const a$e = {
1980
1980
  name: "location2",
1981
1981
  size: "",
1982
1982
  classPrefix: "nut-icon",
@@ -1990,7 +1990,7 @@ const a$d = {
1990
1990
  function y$d(t) {
1991
1991
  return t === "" ? "" : Number.isNaN(Number(t)) ? String(t) : `${t}px`;
1992
1992
  }
1993
- function r$d(t) {
1993
+ function r$e(t) {
1994
1994
  const {
1995
1995
  name: n,
1996
1996
  size: l,
@@ -2004,7 +2004,7 @@ function r$d(t) {
2004
2004
  onClick: i,
2005
2005
  ...h
2006
2006
  } = {
2007
- ...a$d,
2007
+ ...a$e,
2008
2008
  ...t
2009
2009
  }, o = n ? n.indexOf("/") !== -1 : false, g = o ? "img" : u, C = (x) => {
2010
2010
  i && i(x);
@@ -2025,9 +2025,9 @@ function r$d(t) {
2025
2025
  N
2026
2026
  );
2027
2027
  }
2028
- r$d.defaultProps = a$d;
2029
- r$d.displayName = "NutIconlocation2";
2030
- const a$c = {
2028
+ r$e.defaultProps = a$e;
2029
+ r$e.displayName = "NutIconlocation2";
2030
+ const a$d = {
2031
2031
  name: "mask-close",
2032
2032
  size: "",
2033
2033
  classPrefix: "nut-icon",
@@ -2041,7 +2041,7 @@ const a$c = {
2041
2041
  function y$c(e) {
2042
2042
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
2043
2043
  }
2044
- function r$c(e) {
2044
+ function r$d(e) {
2045
2045
  const {
2046
2046
  name: t,
2047
2047
  size: l,
@@ -2055,7 +2055,7 @@ function r$c(e) {
2055
2055
  onClick: i,
2056
2056
  ...h
2057
2057
  } = {
2058
- ...a$c,
2058
+ ...a$d,
2059
2059
  ...e
2060
2060
  }, c = t ? t.indexOf("/") !== -1 : false, k = c ? "img" : u, g = (x) => {
2061
2061
  i && i(x);
@@ -2076,9 +2076,9 @@ function r$c(e) {
2076
2076
  N
2077
2077
  );
2078
2078
  }
2079
- r$c.defaultProps = a$c;
2080
- r$c.displayName = "NutIconmask-close";
2081
- const r$b = {
2079
+ r$d.defaultProps = a$d;
2080
+ r$d.displayName = "NutIconmask-close";
2081
+ const r$c = {
2082
2082
  name: "minus",
2083
2083
  size: "",
2084
2084
  classPrefix: "nut-icon",
@@ -2092,7 +2092,7 @@ const r$b = {
2092
2092
  function y$b(n) {
2093
2093
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
2094
2094
  }
2095
- function a$b(n) {
2095
+ function a$c(n) {
2096
2096
  const {
2097
2097
  name: e,
2098
2098
  size: l,
@@ -2106,7 +2106,7 @@ function a$b(n) {
2106
2106
  onClick: o,
2107
2107
  ...h
2108
2108
  } = {
2109
- ...r$b,
2109
+ ...r$c,
2110
2110
  ...n
2111
2111
  }, c = e ? e.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
2112
2112
  o && o(x);
@@ -2127,8 +2127,59 @@ function a$b(n) {
2127
2127
  N
2128
2128
  );
2129
2129
  }
2130
+ a$c.defaultProps = r$c;
2131
+ a$c.displayName = "NutIconminus";
2132
+ const r$b = {
2133
+ name: "my",
2134
+ size: "",
2135
+ classPrefix: "nut-icon",
2136
+ fontClassName: "nutui-iconfont",
2137
+ color: "",
2138
+ tag: "i",
2139
+ onClick: (e) => {
2140
+ },
2141
+ className: ""
2142
+ };
2143
+ function $(e) {
2144
+ return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
2145
+ }
2146
+ function a$b(e) {
2147
+ const {
2148
+ name: t,
2149
+ size: l,
2150
+ classPrefix: f,
2151
+ color: m,
2152
+ tag: u,
2153
+ children: N,
2154
+ className: i,
2155
+ fontClassName: p,
2156
+ style: d,
2157
+ onClick: o,
2158
+ ...h
2159
+ } = {
2160
+ ...r$b,
2161
+ ...e
2162
+ }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, y2 = (k) => {
2163
+ o && o(k);
2164
+ }, C = () => c ? { src: t } : {}, n = {}, s = $(l);
2165
+ return s && (n.fontSize = s, n.width = s, n.height = s), React__default.createElement(
2166
+ g,
2167
+ {
2168
+ className: c ? `nut-icon__img ${i || ""} ` : `${p} nut-icon ${f}-${t} ${i || ""}`,
2169
+ style: {
2170
+ color: m,
2171
+ ...n,
2172
+ ...d
2173
+ },
2174
+ ...h,
2175
+ onClick: y2,
2176
+ ...C()
2177
+ },
2178
+ N
2179
+ );
2180
+ }
2130
2181
  a$b.defaultProps = r$b;
2131
- a$b.displayName = "NutIconminus";
2182
+ a$b.displayName = "NutIconmy";
2132
2183
  const r$a = {
2133
2184
  name: "notice",
2134
2185
  size: "",
@@ -2696,7 +2747,7 @@ const ComponentDefaults = {
2696
2747
  style: {}
2697
2748
  };
2698
2749
  const prefixCls = "nut-button";
2699
- const defaultProps$1t = {
2750
+ const defaultProps$1u = {
2700
2751
  ...ComponentDefaults,
2701
2752
  color: "",
2702
2753
  type: "default",
@@ -2728,7 +2779,7 @@ const Button = React__default.forwardRef(
2728
2779
  style,
2729
2780
  ...rest
2730
2781
  } = {
2731
- ...defaultProps$1t,
2782
+ ...defaultProps$1u,
2732
2783
  ...props
2733
2784
  };
2734
2785
  const getStyle = useCallback(() => {
@@ -2777,7 +2828,7 @@ const Button = React__default.forwardRef(
2777
2828
  style: { ...getStyle(), ...style },
2778
2829
  onClick: (e) => handleClick(e),
2779
2830
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "nut-button__warp", children: [
2780
- loading && /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, { className: "nut-icon-loading" }),
2831
+ loading && /* @__PURE__ */ jsxRuntimeExports.jsx(r$f, { className: "nut-icon-loading" }),
2781
2832
  !loading && icon ? icon : null,
2782
2833
  children && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: icon || loading ? "nut-button-text" : "", children })
2783
2834
  ] })
@@ -2787,7 +2838,7 @@ const Button = React__default.forwardRef(
2787
2838
  }
2788
2839
  );
2789
2840
  Button.displayName = "NutButton";
2790
- const defaultProps$1s = {
2841
+ const defaultProps$1t = {
2791
2842
  ...ComponentDefaults,
2792
2843
  title: null,
2793
2844
  description: null,
@@ -2797,7 +2848,7 @@ const defaultProps$1s = {
2797
2848
  onClick: (event) => {
2798
2849
  }
2799
2850
  };
2800
- const classPrefix$9 = "nut-cell";
2851
+ const classPrefix$f = "nut-cell";
2801
2852
  const Cell = (props) => {
2802
2853
  const {
2803
2854
  children,
@@ -2811,7 +2862,7 @@ const Cell = (props) => {
2811
2862
  style,
2812
2863
  ...rest
2813
2864
  } = {
2814
- ...defaultProps$1s,
2865
+ ...defaultProps$1t,
2815
2866
  ...props
2816
2867
  };
2817
2868
  const handleClick = (event) => {
@@ -2828,48 +2879,55 @@ const Cell = (props) => {
2828
2879
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
2829
2880
  "div",
2830
2881
  {
2831
- className: classNames(classPrefix$9, className),
2882
+ className: classNames(classPrefix$f, className),
2832
2883
  onClick: (event) => handleClick(event),
2833
2884
  style: baseStyle,
2834
2885
  ...rest,
2835
2886
  children: children || /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
2836
- title || description ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix$9}__left`, children: [
2837
- title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$9}__title`, children: title }) : null,
2838
- description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$9}__description`, children: description }) : null
2887
+ title || description ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix$f}__left`, children: [
2888
+ title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$f}__title`, children: title }) : null,
2889
+ description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$f}__description`, children: description }) : null
2839
2890
  ] }) : null,
2840
2891
  extra ? /* @__PURE__ */ jsxRuntimeExports.jsx(
2841
2892
  "div",
2842
2893
  {
2843
- className: `${classPrefix$9}__extra`,
2894
+ className: `${classPrefix$f}__extra`,
2844
2895
  style: styles,
2845
2896
  children: extra
2846
2897
  }
2847
2898
  ) : null,
2848
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$9}__divider` })
2899
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$f}__divider` })
2849
2900
  ] })
2850
2901
  }
2851
2902
  );
2852
2903
  };
2853
- Cell.defaultProps = defaultProps$1s;
2904
+ Cell.defaultProps = defaultProps$1t;
2854
2905
  Cell.displayName = "NutCell";
2855
- const defaultProps$1r = {
2906
+ const defaultProps$1s = {
2856
2907
  ...ComponentDefaults,
2857
2908
  title: "",
2858
- description: ""
2909
+ description: "",
2910
+ divider: true
2859
2911
  };
2860
- const classPrefix$8 = "nut-cell-group";
2912
+ const classPrefix$e = "nut-cell-group";
2861
2913
  const CellGroup = (props) => {
2862
- const { children, className, style, title, description, ...rest } = {
2863
- ...defaultProps$1r,
2914
+ const { children, className, style, title, description, divider, ...rest } = {
2915
+ ...defaultProps$1s,
2864
2916
  ...props
2865
2917
  };
2866
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classNames(classPrefix$8, className), ...rest, children: [
2867
- title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$8}__title`, children: title }) : null,
2868
- description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$8}__description`, children: description }) : null,
2869
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$8}__wrap`, children })
2918
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classNames(classPrefix$e, className), ...rest, children: [
2919
+ title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$e}__title`, children: title }) : null,
2920
+ description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$e}__description`, children: description }) : null,
2921
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
2922
+ "div",
2923
+ {
2924
+ className: `${classPrefix$e}__wrap ${divider ? `${classPrefix$e}__wrap--divider` : ""}`,
2925
+ children
2926
+ }
2927
+ )
2870
2928
  ] });
2871
2929
  };
2872
- CellGroup.defaultProps = defaultProps$1r;
2930
+ CellGroup.defaultProps = defaultProps$1s;
2873
2931
  CellGroup.displayName = "NutCellGroup";
2874
2932
  var INFINITY = 1 / 0;
2875
2933
  var symbolTag = "[object Symbol]";
@@ -3284,7 +3342,7 @@ const zhCN = {
3284
3342
  errorCanvasTips: "当前环境不支持Canvas"
3285
3343
  }
3286
3344
  };
3287
- const defaultProps$1q = {
3345
+ const defaultProps$1r = {
3288
3346
  locale: zhCN
3289
3347
  };
3290
3348
  const defaultConfigRef$1 = {
@@ -3307,7 +3365,7 @@ function convertThemeVarsToCSSVars(themeVars) {
3307
3365
  return cssVars;
3308
3366
  }
3309
3367
  const ConfigProvider = (props) => {
3310
- const { children, ...config2 } = { ...defaultProps$1q, ...props };
3368
+ const { children, ...config2 } = { ...defaultProps$1r, ...props };
3311
3369
  const parentConfig = useConfig$1();
3312
3370
  const theme = config2.theme || {};
3313
3371
  const style = useMemo(
@@ -3325,9 +3383,9 @@ const ConfigProvider = (props) => {
3325
3383
  }
3326
3384
  );
3327
3385
  };
3328
- ConfigProvider.defaultProps = defaultProps$1q;
3386
+ ConfigProvider.defaultProps = defaultProps$1r;
3329
3387
  ConfigProvider.displayName = "NutConfigProvider";
3330
- const defaultProps$1p = {
3388
+ const defaultProps$1q = {
3331
3389
  fit: "fill",
3332
3390
  position: "center",
3333
3391
  alt: "",
@@ -3358,7 +3416,7 @@ const Image$1 = (props) => {
3358
3416
  onClick,
3359
3417
  onLoad,
3360
3418
  onError
3361
- } = { ...defaultProps$1p, ...props };
3419
+ } = { ...defaultProps$1q, ...props };
3362
3420
  const [loading, setLoading] = useState(true);
3363
3421
  const [isError, setIsError] = useState(false);
3364
3422
  useEffect(() => {
@@ -3413,13 +3471,13 @@ const Image$1 = (props) => {
3413
3471
  onError: error
3414
3472
  }
3415
3473
  ),
3416
- showLoading && loading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-loading", children: slotLoding || children || /* @__PURE__ */ jsxRuntimeExports.jsx(r$i, {}) }) : null,
3417
- showError && isError && !loading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-error", children: slotError || children || /* @__PURE__ */ jsxRuntimeExports.jsx(a$j, {}) }) : null
3474
+ showLoading && loading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-loading", children: slotLoding || children || /* @__PURE__ */ jsxRuntimeExports.jsx(r$j, {}) }) : null,
3475
+ showError && isError && !loading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-error", children: slotError || children || /* @__PURE__ */ jsxRuntimeExports.jsx(a$k, {}) }) : null
3418
3476
  ]
3419
3477
  }
3420
3478
  );
3421
3479
  };
3422
- Image$1.defaultProps = defaultProps$1p;
3480
+ Image$1.defaultProps = defaultProps$1q;
3423
3481
  Image$1.displayName = "NutImage";
3424
3482
  const defaultOverlayProps = {
3425
3483
  ...ComponentDefaults,
@@ -3514,7 +3572,7 @@ const Overlay = (props) => {
3514
3572
  Overlay.defaultProps = defaultOverlayProps;
3515
3573
  Overlay.displayName = "NutOverlay";
3516
3574
  const DataContext$2 = createContext({});
3517
- const defaultProps$1o = {
3575
+ const defaultProps$1p = {
3518
3576
  ...ComponentDefaults,
3519
3577
  span: "24",
3520
3578
  offset: "0",
@@ -3522,7 +3580,7 @@ const defaultProps$1o = {
3522
3580
  };
3523
3581
  const Col = (props) => {
3524
3582
  const { className, style, span, offset, children, onClick } = {
3525
- ...defaultProps$1o,
3583
+ ...defaultProps$1p,
3526
3584
  ...props
3527
3585
  };
3528
3586
  const [colName, setColName] = useState("");
@@ -3554,32 +3612,32 @@ const Col = (props) => {
3554
3612
  }
3555
3613
  );
3556
3614
  };
3557
- Col.defaultProps = defaultProps$1o;
3615
+ Col.defaultProps = defaultProps$1p;
3558
3616
  Col.displayName = "NutCol";
3559
- const defaultProps$1n = {
3617
+ const defaultProps$1o = {
3560
3618
  ...ComponentDefaults,
3561
3619
  contentPosition: "center",
3562
3620
  direction: "horizontal"
3563
3621
  };
3564
- const classPrefix$7 = `nut-divider`;
3622
+ const classPrefix$d = `nut-divider`;
3565
3623
  const Divider = (props) => {
3566
3624
  const { children, contentPosition, style, className, direction, ...rest } = {
3567
- ...defaultProps$1n,
3625
+ ...defaultProps$1o,
3568
3626
  ...props
3569
3627
  };
3570
3628
  const classes = direction === "horizontal" ? classNames({
3571
- [`${classPrefix$7}`]: true,
3572
- [`${classPrefix$7}__center`]: children,
3573
- [`${classPrefix$7}__left`]: contentPosition === "left",
3574
- [`${classPrefix$7}__right`]: contentPosition === "right",
3575
- [`${classPrefix$7}__hairline`]: true
3629
+ [`${classPrefix$d}`]: true,
3630
+ [`${classPrefix$d}__center`]: children,
3631
+ [`${classPrefix$d}__left`]: contentPosition === "left",
3632
+ [`${classPrefix$d}__right`]: contentPosition === "right",
3633
+ [`${classPrefix$d}__hairline`]: true
3576
3634
  }) : classNames({
3577
- [`${classPrefix$7}`]: true,
3578
- [`${classPrefix$7}__vertical`]: direction === "vertical"
3635
+ [`${classPrefix$d}`]: true,
3636
+ [`${classPrefix$d}__vertical`]: direction === "vertical"
3579
3637
  });
3580
3638
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classes} ${className || ""}`, style, ...rest, children });
3581
3639
  };
3582
- Divider.defaultProps = defaultProps$1n;
3640
+ Divider.defaultProps = defaultProps$1o;
3583
3641
  Divider.displayName = "NutDivider";
3584
3642
  const gridContext = {
3585
3643
  onClick: (item, index) => {
@@ -3589,7 +3647,7 @@ const GridContext = React__default.createContext(gridContext);
3589
3647
  const pxCheck = (value) => {
3590
3648
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
3591
3649
  };
3592
- const defaultProps$1m = {
3650
+ const defaultProps$1n = {
3593
3651
  text: "",
3594
3652
  columns: 4,
3595
3653
  gap: 0,
@@ -3615,7 +3673,7 @@ const GridItem = (props) => {
3615
3673
  onClick,
3616
3674
  ...rest
3617
3675
  } = {
3618
- ...defaultProps$1m,
3676
+ ...defaultProps$1n,
3619
3677
  ...props
3620
3678
  };
3621
3679
  const classPrefix2 = "nut-grid-item";
@@ -3676,9 +3734,9 @@ const GridItem = (props) => {
3676
3734
  }
3677
3735
  );
3678
3736
  };
3679
- GridItem.defaultProps = defaultProps$1m;
3737
+ GridItem.defaultProps = defaultProps$1n;
3680
3738
  GridItem.displayName = "NutGridItem";
3681
- const defaultProps$1l = {
3739
+ const defaultProps$1m = {
3682
3740
  columns: 4,
3683
3741
  gap: 0,
3684
3742
  center: true,
@@ -3699,7 +3757,7 @@ const Grid = (props) => {
3699
3757
  className,
3700
3758
  onClick,
3701
3759
  ...rest
3702
- } = { ...defaultProps$1l, ...props };
3760
+ } = { ...defaultProps$1m, ...props };
3703
3761
  const childrenDom = React__default.Children.toArray(children);
3704
3762
  const classPrefix2 = "nut-grid";
3705
3763
  const rootClass = () => {
@@ -3729,18 +3787,18 @@ const Grid = (props) => {
3729
3787
  });
3730
3788
  }) }) });
3731
3789
  };
3732
- Grid.defaultProps = defaultProps$1l;
3790
+ Grid.defaultProps = defaultProps$1m;
3733
3791
  Grid.displayName = "NutGrid";
3734
3792
  Grid.Item = GridItem;
3735
- const defaultProps$1k = {};
3793
+ const defaultProps$1l = {};
3736
3794
  const Layout = (props) => {
3737
- ({ ...defaultProps$1k, ...props });
3795
+ ({ ...defaultProps$1l, ...props });
3738
3796
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-layout", children: "Layout" });
3739
3797
  };
3740
- Layout.defaultProps = defaultProps$1k;
3798
+ Layout.defaultProps = defaultProps$1l;
3741
3799
  Layout.displayName = "NutLayout";
3742
- const classPrefix$6 = "nut-row";
3743
- const defaultProps$1j = {
3800
+ const classPrefix$c = "nut-row";
3801
+ const defaultProps$1k = {
3744
3802
  ...ComponentDefaults,
3745
3803
  type: "",
3746
3804
  justify: "start",
@@ -3760,7 +3818,7 @@ const Row = (props) => {
3760
3818
  gutter,
3761
3819
  onClick
3762
3820
  } = {
3763
- ...defaultProps$1j,
3821
+ ...defaultProps$1k,
3764
3822
  ...props
3765
3823
  };
3766
3824
  const getClass = (prefix2, type2) => {
@@ -3774,7 +3832,7 @@ const Row = (props) => {
3774
3832
  ${getClass("justify", justify)}
3775
3833
  ${getClass("align", align)}
3776
3834
  ${getClass("flex", wrap)}
3777
- ${classPrefix$6}
3835
+ ${classPrefix$c}
3778
3836
  `;
3779
3837
  };
3780
3838
  const parentRow = {
@@ -3792,7 +3850,7 @@ const Row = (props) => {
3792
3850
  children
3793
3851
  ) });
3794
3852
  };
3795
- Row.defaultProps = defaultProps$1j;
3853
+ Row.defaultProps = defaultProps$1k;
3796
3854
  Row.displayName = "NutRow";
3797
3855
  function useWatch(dep, callback, config2 = { immediate: false }) {
3798
3856
  const { immediate } = config2;
@@ -3845,12 +3903,12 @@ function getScrollParent(el, root2 = defaultRoot) {
3845
3903
  }
3846
3904
  return root2;
3847
3905
  }
3848
- const defaultProps$1i = {
3906
+ const defaultProps$1j = {
3849
3907
  ...ComponentDefaults,
3850
3908
  position: "top",
3851
3909
  zIndex: 2e3
3852
3910
  };
3853
- const classPrefix$5 = "nut-sticky";
3911
+ const classPrefix$b = "nut-sticky";
3854
3912
  const Sticky = (props) => {
3855
3913
  const {
3856
3914
  position,
@@ -3862,7 +3920,7 @@ const Sticky = (props) => {
3862
3920
  className,
3863
3921
  onChange,
3864
3922
  ...rest
3865
- } = { ...defaultProps$1i, ...props };
3923
+ } = { ...defaultProps$1j, ...props };
3866
3924
  const stickyRef = useRef(null);
3867
3925
  const rootRef = useRef(null);
3868
3926
  const [rootRect, setRootRect] = useState({});
@@ -3952,7 +4010,7 @@ const Sticky = (props) => {
3952
4010
  {
3953
4011
  ref: rootRef,
3954
4012
  style: rootStyle,
3955
- className: classNames(classPrefix$5, className),
4013
+ className: classNames(classPrefix$b, className),
3956
4014
  ...rest,
3957
4015
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
3958
4016
  "div",
@@ -3968,9 +4026,9 @@ const Sticky = (props) => {
3968
4026
  }
3969
4027
  );
3970
4028
  };
3971
- Sticky.defaultProps = defaultProps$1i;
4029
+ Sticky.defaultProps = defaultProps$1j;
3972
4030
  Sticky.displayName = "NutSticky";
3973
- const defaultProps$1h = {
4031
+ const defaultProps$1i = {
3974
4032
  ...ComponentDefaults,
3975
4033
  threshold: 200,
3976
4034
  zIndex: 10,
@@ -3978,7 +4036,7 @@ const defaultProps$1h = {
3978
4036
  };
3979
4037
  const BackTop = (props) => {
3980
4038
  const { children, threshold, zIndex, className, duration, style, onClick } = {
3981
- ...defaultProps$1h,
4039
+ ...defaultProps$1i,
3982
4040
  ...props
3983
4041
  };
3984
4042
  const classPrefix2 = "nut-backtop";
@@ -4016,10 +4074,10 @@ const BackTop = (props) => {
4016
4074
  }
4017
4075
  );
4018
4076
  };
4019
- BackTop.defaultProps = defaultProps$1h;
4077
+ BackTop.defaultProps = defaultProps$1i;
4020
4078
  BackTop.displayName = "NutBackTop";
4021
4079
  const elevatorContext = createContext({});
4022
- const defaultProps$1g = {
4080
+ const defaultProps$1h = {
4023
4081
  ...ComponentDefaults,
4024
4082
  height: "200px",
4025
4083
  floorKey: "title",
@@ -4044,7 +4102,7 @@ const Elevator = (props) => {
4044
4102
  children,
4045
4103
  ...rest
4046
4104
  } = {
4047
- ...defaultProps$1g,
4105
+ ...defaultProps$1h,
4048
4106
  ...props
4049
4107
  };
4050
4108
  const classPrefix2 = "nut-elevator";
@@ -4068,6 +4126,7 @@ const Elevator = (props) => {
4068
4126
  const [scrollStart, setScrollStart] = useState(false);
4069
4127
  const state = useRef(initData);
4070
4128
  const [scrollTop, setScrollTop] = useState(0);
4129
+ const [scrollY, setScrollY] = useState(0);
4071
4130
  const resetScrollState = () => {
4072
4131
  setScrollStart(false);
4073
4132
  };
@@ -4105,7 +4164,11 @@ const Elevator = (props) => {
4105
4164
  cacheIndex = state.current.listHeight.length - 2;
4106
4165
  }
4107
4166
  setCodeIndex(cacheIndex);
4108
- setScrollTop(state.current.listHeight[cacheIndex]);
4167
+ const scrollTop2 = state.current.listHeight[cacheIndex];
4168
+ setScrollTop(scrollTop2);
4169
+ if (sticky && scrollY !== scrollTop2) {
4170
+ setScrollY(Math.floor(scrollTop2) > 0 ? 1 : 0);
4171
+ }
4109
4172
  };
4110
4173
  const touchMove = (e) => {
4111
4174
  const firstTouch = e.touches[0];
@@ -4153,7 +4216,10 @@ const Elevator = (props) => {
4153
4216
  const target = e.target;
4154
4217
  const { scrollTop: scrollTop2 } = target;
4155
4218
  state.current.scrollY = Math.floor(scrollTop2);
4156
- setScrollTop(scrollTop2);
4219
+ Taro.getEnv() === "WEB" && setScrollTop(scrollTop2);
4220
+ if (sticky && scrollTop2 !== scrollY) {
4221
+ setScrollY(Math.floor(scrollTop2) > 0 ? 1 : 0);
4222
+ }
4157
4223
  for (let i = 0; i < listHeight.length - 1; i++) {
4158
4224
  const height1 = listHeight[i];
4159
4225
  const height2 = listHeight[i + 1];
@@ -4162,7 +4228,6 @@ const Elevator = (props) => {
4162
4228
  return;
4163
4229
  }
4164
4230
  }
4165
- setCurrentIndex(listHeight.length - 2);
4166
4231
  };
4167
4232
  useEffect(() => {
4168
4233
  if (listview.current) {
@@ -4172,7 +4237,6 @@ const Elevator = (props) => {
4172
4237
  }
4173
4238
  }, [listview]);
4174
4239
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix2} ${className}`, style, ...rest, children: [
4175
- 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,
4176
4240
  /* @__PURE__ */ jsxRuntimeExports.jsx(
4177
4241
  "div",
4178
4242
  {
@@ -4183,6 +4247,8 @@ const Elevator = (props) => {
4183
4247
  {
4184
4248
  scrollTop,
4185
4249
  scrollY: true,
4250
+ scrollWithAnimation: true,
4251
+ scrollAnchoring: true,
4186
4252
  className: `${classPrefix2}__list__inner`,
4187
4253
  type: "list",
4188
4254
  ref: listview,
@@ -4251,13 +4317,14 @@ const Elevator = (props) => {
4251
4317
  );
4252
4318
  })
4253
4319
  }
4254
- ) })
4320
+ ) }),
4321
+ 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
4255
4322
  ] });
4256
4323
  };
4257
- Elevator.defaultProps = defaultProps$1g;
4324
+ Elevator.defaultProps = defaultProps$1h;
4258
4325
  Elevator.displayName = "NutElevator";
4259
4326
  Elevator.Context = elevatorContext;
4260
- const defaultProps$1f = {
4327
+ const defaultProps$1g = {
4261
4328
  ...ComponentDefaults,
4262
4329
  activeText: "",
4263
4330
  inactiveText: "",
@@ -4285,7 +4352,7 @@ const FixedNav = (props) => {
4285
4352
  content,
4286
4353
  ...rest
4287
4354
  } = {
4288
- ...defaultProps$1f,
4355
+ ...defaultProps$1g,
4289
4356
  ...props
4290
4357
  };
4291
4358
  const classPrefix2 = "nut-fixednav";
@@ -4337,16 +4404,16 @@ const FixedNav = (props) => {
4337
4404
  );
4338
4405
  }) }) }),
4339
4406
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__btn`, onClick: () => onUpdateValue(), children: content || /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
4340
- /* @__PURE__ */ jsxRuntimeExports.jsx(a$g, { color: "#fff" }),
4407
+ /* @__PURE__ */ jsxRuntimeExports.jsx(a$h, { color: "#fff" }),
4341
4408
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text", children: visible ? activeText || locale.fixednav.activeText : inactiveText || locale.fixednav.inactiveText })
4342
4409
  ] }) })
4343
4410
  ]
4344
4411
  }
4345
4412
  );
4346
4413
  };
4347
- FixedNav.defaultProps = defaultProps$1f;
4414
+ FixedNav.defaultProps = defaultProps$1g;
4348
4415
  FixedNav.displayName = "NutFixedNav";
4349
- const defaultProps$1e = {
4416
+ const defaultProps$1f = {
4350
4417
  ...ComponentDefaults,
4351
4418
  left: "",
4352
4419
  right: "",
@@ -4369,7 +4436,7 @@ const NavBar = (props) => {
4369
4436
  zIndex,
4370
4437
  onClickBack
4371
4438
  } = {
4372
- ...defaultProps$1e,
4439
+ ...defaultProps$1f,
4373
4440
  ...props
4374
4441
  };
4375
4442
  const classPrefix2 = "nut-navbar";
@@ -4413,7 +4480,7 @@ const NavBar = (props) => {
4413
4480
  const cls = classNames(classPrefix2, classes, className);
4414
4481
  return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: fixed && placeholder ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}--placeholder`, children: renderWrapper() }) : renderWrapper() });
4415
4482
  };
4416
- NavBar.defaultProps = defaultProps$1e;
4483
+ NavBar.defaultProps = defaultProps$1f;
4417
4484
  NavBar.displayName = "NutNavBar";
4418
4485
  function _extends$3() {
4419
4486
  _extends$3 = Object.assign ? Object.assign.bind() : function(target) {
@@ -6156,7 +6223,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
6156
6223
  onExited: propTypesExports.func
6157
6224
  }) : {};
6158
6225
  const CSSTransition$1 = CSSTransition;
6159
- const defaultProps$1d = {
6226
+ const defaultProps$1e = {
6160
6227
  ...ComponentDefaults,
6161
6228
  position: "center",
6162
6229
  transition: "",
@@ -6287,7 +6354,7 @@ const Popup = (props) => {
6287
6354
  };
6288
6355
  const renderIcon = () => {
6289
6356
  if (closeable) {
6290
- return /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: closeClasses, onClick: onHandleClickCloseIcon, children: React__default.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$n, { width: 12, height: 12 }) });
6357
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: closeClasses, onClick: onHandleClickCloseIcon, children: React__default.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { width: 12, height: 12 }) });
6291
6358
  }
6292
6359
  return null;
6293
6360
  };
@@ -6343,10 +6410,10 @@ const Popup = (props) => {
6343
6410
  }, [position, transition]);
6344
6411
  return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: renderToContainer(portal, renderNode()) });
6345
6412
  };
6346
- Popup.defaultProps = defaultProps$1d;
6413
+ Popup.defaultProps = defaultProps$1e;
6347
6414
  Popup.displayName = "NutPopup";
6348
6415
  const OffsetContext = createContext(20);
6349
- const defaultProps$1c = {
6416
+ const defaultProps$1d = {
6350
6417
  showhead: false,
6351
6418
  position: "left",
6352
6419
  width: "80%"
@@ -6363,7 +6430,7 @@ const SideNavBar = (props) => {
6363
6430
  onClose,
6364
6431
  ...rest
6365
6432
  } = {
6366
- ...defaultProps$1c,
6433
+ ...defaultProps$1d,
6367
6434
  ...props
6368
6435
  };
6369
6436
  const offset = props.offset ? Number(props.offset) : 20;
@@ -6414,7 +6481,7 @@ const SideNavBar = (props) => {
6414
6481
  }
6415
6482
  );
6416
6483
  };
6417
- SideNavBar.defaultProps = defaultProps$1c;
6484
+ SideNavBar.defaultProps = defaultProps$1d;
6418
6485
  SideNavBar.displayName = "NutSideNavBar";
6419
6486
  const SideNavBarItem = (props) => {
6420
6487
  const { title, key, children, onClick, ...rest } = props;
@@ -6432,12 +6499,12 @@ const SideNavBarItem = (props) => {
6432
6499
  }
6433
6500
  );
6434
6501
  };
6435
- const defaultProps$1b = {
6502
+ const defaultProps$1c = {
6436
6503
  open: true
6437
6504
  };
6438
6505
  const SubSideNavBar = (props) => {
6439
6506
  const { title, key, children, onClick, open, ...rest } = {
6440
- ...defaultProps$1b,
6507
+ ...defaultProps$1c,
6441
6508
  ...props
6442
6509
  };
6443
6510
  const [subShow, setSubShow] = useState(open);
@@ -6511,7 +6578,7 @@ function usePropsValue({
6511
6578
  }
6512
6579
  return [uncontrolled, handleUncontrolledChange];
6513
6580
  }
6514
- const defaultProps$1a = {
6581
+ const defaultProps$1b = {
6515
6582
  ...ComponentDefaults,
6516
6583
  value: "",
6517
6584
  dot: false,
@@ -6522,7 +6589,7 @@ const defaultProps$1a = {
6522
6589
  };
6523
6590
  const Badge = (props) => {
6524
6591
  const { className, style, value, max, children, dot, top, right, color } = {
6525
- ...defaultProps$1a,
6592
+ ...defaultProps$1b,
6526
6593
  ...props
6527
6594
  };
6528
6595
  const classPrefix2 = "nut-badge";
@@ -6553,9 +6620,9 @@ const Badge = (props) => {
6553
6620
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: contentClasses, style: getStyle(), children: content() })
6554
6621
  ] });
6555
6622
  };
6556
- Badge.defaultProps = defaultProps$1a;
6623
+ Badge.defaultProps = defaultProps$1b;
6557
6624
  Badge.displayName = "NutBadge";
6558
- const defaultProps$19 = {
6625
+ const defaultProps$1a = {
6559
6626
  ...ComponentDefaults,
6560
6627
  title: "",
6561
6628
  icon: null,
@@ -6577,7 +6644,7 @@ const TabbarItem = (props) => {
6577
6644
  handleClick,
6578
6645
  ...rest
6579
6646
  } = {
6580
- ...defaultProps$19,
6647
+ ...defaultProps$1a,
6581
6648
  ...props
6582
6649
  };
6583
6650
  const classPrefix2 = "nut-tabbar-item";
@@ -6604,7 +6671,7 @@ const TabbarItem = (props) => {
6604
6671
  }
6605
6672
  );
6606
6673
  };
6607
- const defaultProps$18 = {
6674
+ const defaultProps$19 = {
6608
6675
  ...ComponentDefaults,
6609
6676
  defaultValue: 0,
6610
6677
  fixed: false,
@@ -6627,7 +6694,7 @@ const Tabbar = (props) => {
6627
6694
  style,
6628
6695
  onSwitch
6629
6696
  } = {
6630
- ...defaultProps$18,
6697
+ ...defaultProps$19,
6631
6698
  ...props
6632
6699
  };
6633
6700
  const classPrefix2 = "nut-tabbar";
@@ -6664,17 +6731,17 @@ const Tabbar = (props) => {
6664
6731
  }
6665
6732
  );
6666
6733
  };
6667
- Tabbar.defaultProps = defaultProps$18;
6734
+ Tabbar.defaultProps = defaultProps$19;
6668
6735
  Tabbar.displayName = "NutTabbar";
6669
6736
  Tabbar.Item = TabbarItem;
6670
- const defaultProps$17 = {
6737
+ const defaultProps$18 = {
6671
6738
  title: "",
6672
6739
  value: "",
6673
6740
  disabled: false
6674
6741
  };
6675
6742
  const TabPane = (props) => {
6676
6743
  const { children, autoHeightClassName, className, disabled } = {
6677
- ...defaultProps$17,
6744
+ ...defaultProps$18,
6678
6745
  ...props
6679
6746
  };
6680
6747
  const classPrefix2 = "nut-tabpane";
@@ -6688,7 +6755,7 @@ const TabPane = (props) => {
6688
6755
  );
6689
6756
  return children ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes, children: !disabled && children }) : null;
6690
6757
  };
6691
- const defaultProps$16 = {
6758
+ const defaultProps$17 = {
6692
6759
  ...ComponentDefaults,
6693
6760
  tabStyle: {},
6694
6761
  activeColor: "",
@@ -6697,7 +6764,7 @@ const defaultProps$16 = {
6697
6764
  duration: 300,
6698
6765
  autoHeight: false
6699
6766
  };
6700
- const classPrefix$4 = "nut-tabs";
6767
+ const classPrefix$a = "nut-tabs";
6701
6768
  const Tabs = (props) => {
6702
6769
  const {
6703
6770
  activeColor,
@@ -6714,7 +6781,7 @@ const Tabs = (props) => {
6714
6781
  autoHeight,
6715
6782
  ...rest
6716
6783
  } = {
6717
- ...defaultProps$16,
6784
+ ...defaultProps$17,
6718
6785
  ...props
6719
6786
  };
6720
6787
  const [value, setValue] = usePropsValue({
@@ -6743,15 +6810,25 @@ const Tabs = (props) => {
6743
6810
  return titles2;
6744
6811
  };
6745
6812
  const titles = useRef(getTitles());
6813
+ useEffect(() => {
6814
+ titles.current = getTitles();
6815
+ let current = "";
6816
+ titles.current.forEach((title2) => {
6817
+ if (title2.value === value) {
6818
+ current = value;
6819
+ }
6820
+ });
6821
+ setValue(current);
6822
+ }, [children]);
6746
6823
  const classes = classNames(
6747
- classPrefix$4,
6748
- `${classPrefix$4}--${direction}`,
6824
+ classPrefix$a,
6825
+ `${classPrefix$a}--${direction}`,
6749
6826
  className
6750
6827
  );
6751
- const classesTitle = classNames(`${classPrefix$4}__titles`, {
6752
- [`${classPrefix$4}__titles--${activeType}`]: activeType,
6753
- [`${classPrefix$4}__titles--scrollable`]: true,
6754
- [`${classPrefix$4}__titles--${align}`]: align
6828
+ const classesTitle = classNames(`${classPrefix$a}__titles`, {
6829
+ [`${classPrefix$a}__titles--${activeType}`]: activeType,
6830
+ [`${classPrefix$a}__titles--scrollable`]: true,
6831
+ [`${classPrefix$a}__titles--${align}`]: align
6755
6832
  });
6756
6833
  const tabsActiveStyle = {
6757
6834
  color: activeType === "smile" ? activeColor : "",
@@ -6797,7 +6874,7 @@ const Tabs = (props) => {
6797
6874
  onClick: (e) => {
6798
6875
  tabChange(item);
6799
6876
  },
6800
- className: classNames(`${classPrefix$4}__titles-item`, {
6877
+ className: classNames(`${classPrefix$a}__titles-item`, {
6801
6878
  [`nut-tabs__titles-item--active`]: !item.disabled && String(item.value) === String(value),
6802
6879
  [`nut-tabs__titles-item--disabled`]: item.disabled,
6803
6880
  [`nut-tabs__titles-item--${align}`]: align
@@ -6806,16 +6883,16 @@ const Tabs = (props) => {
6806
6883
  activeType === "line" && /* @__PURE__ */ jsxRuntimeExports.jsx(
6807
6884
  View,
6808
6885
  {
6809
- className: `${classPrefix$4}__titles-item__line`,
6886
+ className: `${classPrefix$a}__titles-item__line`,
6810
6887
  style: tabsActiveStyle
6811
6888
  }
6812
6889
  ),
6813
6890
  activeType === "smile" && /* @__PURE__ */ jsxRuntimeExports.jsx(
6814
6891
  View,
6815
6892
  {
6816
- className: `${classPrefix$4}__titles-item__smile`,
6893
+ className: `${classPrefix$a}__titles-item__smile`,
6817
6894
  style: tabsActiveStyle,
6818
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$h, { color: activeColor, width: 40, height: 20 })
6895
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$i, { color: activeColor, width: 40, height: 20 })
6819
6896
  }
6820
6897
  ),
6821
6898
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -6825,7 +6902,7 @@ const Tabs = (props) => {
6825
6902
  {
6826
6903
  ellipsis: true
6827
6904
  },
6828
- `${classPrefix$4}__titles-item__text`
6905
+ `${classPrefix$a}__titles-item__text`
6829
6906
  ),
6830
6907
  children: item.title
6831
6908
  }
@@ -6837,7 +6914,7 @@ const Tabs = (props) => {
6837
6914
  })
6838
6915
  }
6839
6916
  ),
6840
- /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: `${classPrefix$4}__content__wrap`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: `${classPrefix$4}__content`, style: contentStyle, children: React__default.Children.map(children, (child, idx) => {
6917
+ /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: `${classPrefix$a}__content__wrap`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: `${classPrefix$a}__content`, style: contentStyle, children: React__default.Children.map(children, (child, idx) => {
6841
6918
  if (!React__default.isValidElement(child)) {
6842
6919
  return null;
6843
6920
  }
@@ -6855,7 +6932,7 @@ const Tabs = (props) => {
6855
6932
  }) }) })
6856
6933
  ] });
6857
6934
  };
6858
- Tabs.defaultProps = defaultProps$16;
6935
+ Tabs.defaultProps = defaultProps$17;
6859
6936
  Tabs.displayName = "NutTabs";
6860
6937
  Tabs.TabPane = TabPane;
6861
6938
  var classnameExports = {};
@@ -6990,7 +7067,7 @@ const ConfigContext = createContext(null);
6990
7067
  const useConfig = () => {
6991
7068
  return useContext(ConfigContext) ?? getDefaultConfig();
6992
7069
  };
6993
- const defaultProps$15 = {
7070
+ const defaultProps$16 = {
6994
7071
  type: "custom",
6995
7072
  existAddress: [],
6996
7073
  defaultIcon: null,
@@ -7012,7 +7089,7 @@ const ExistRender = (props) => {
7012
7089
  onClose,
7013
7090
  onSwitchModule,
7014
7091
  ...rest
7015
- } = { ...defaultProps$15, ...props };
7092
+ } = { ...defaultProps$16, ...props };
7016
7093
  const b2 = cn("address");
7017
7094
  const selectedExist = (item) => {
7018
7095
  const copyExistAdd = existAddress;
@@ -7054,7 +7131,7 @@ const ExistRender = (props) => {
7054
7131
  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 }) })
7055
7132
  ] });
7056
7133
  };
7057
- const defaultProps$14 = {
7134
+ const defaultProps$15 = {
7058
7135
  modelValue: [],
7059
7136
  type: "custom",
7060
7137
  province: [],
@@ -7079,7 +7156,7 @@ const CustomRender = (props) => {
7079
7156
  onClose,
7080
7157
  ...rest
7081
7158
  } = {
7082
- ...defaultProps$14,
7159
+ ...defaultProps$15,
7083
7160
  ...props
7084
7161
  };
7085
7162
  const b2 = cn("address");
@@ -7243,28 +7320,28 @@ const CustomRender = (props) => {
7243
7320
  nextAreaList(item);
7244
7321
  };
7245
7322
  useEffect(() => {
7246
- const { province: province2 } = { ...defaultProps$14, ...props };
7323
+ const { province: province2 } = { ...defaultProps$15, ...props };
7247
7324
  setRegionList({
7248
7325
  ...regionList,
7249
7326
  province: isCustom2() ? transformData(province2) : province2
7250
7327
  });
7251
7328
  }, [province]);
7252
7329
  useEffect(() => {
7253
- const { city: city2 } = { ...defaultProps$14, ...props };
7330
+ const { city: city2 } = { ...defaultProps$15, ...props };
7254
7331
  setRegionList({
7255
7332
  ...regionList,
7256
7333
  city: isCustom2() ? transformData(city2) : city2
7257
7334
  });
7258
7335
  }, [city]);
7259
7336
  useEffect(() => {
7260
- const { country: country2 } = { ...defaultProps$14, ...props };
7337
+ const { country: country2 } = { ...defaultProps$15, ...props };
7261
7338
  setRegionList({
7262
7339
  ...regionList,
7263
7340
  country: isCustom2() ? transformData(country2) : country2
7264
7341
  });
7265
7342
  }, [country]);
7266
7343
  useEffect(() => {
7267
- const { town: town2 } = { ...defaultProps$14, ...props };
7344
+ const { town: town2 } = { ...defaultProps$15, ...props };
7268
7345
  setRegionList({
7269
7346
  ...regionList,
7270
7347
  town: isCustom2() ? transformData(town2) : town2
@@ -7314,7 +7391,7 @@ const CustomRender = (props) => {
7314
7391
  },
7315
7392
  children: [
7316
7393
  selectedRegion && selectedRegion[tabName[tabIndex]].id === item.id && /* @__PURE__ */ jsxRuntimeExports.jsx(
7317
- a$r,
7394
+ a$s,
7318
7395
  {
7319
7396
  className: b2("region-item--icon"),
7320
7397
  color: "#FA2C19",
@@ -7337,7 +7414,7 @@ const CustomRender = (props) => {
7337
7414
  ) })
7338
7415
  ] });
7339
7416
  };
7340
- const defaultProps$13 = {
7417
+ const defaultProps$14 = {
7341
7418
  ...ComponentDefaults,
7342
7419
  modelValue: false,
7343
7420
  modelSelect: [],
@@ -7388,7 +7465,7 @@ const Address = (props) => {
7388
7465
  className,
7389
7466
  ...rest
7390
7467
  } = {
7391
- ...defaultProps$13,
7468
+ ...defaultProps$14,
7392
7469
  ...props
7393
7470
  };
7394
7471
  const b2 = cn("address");
@@ -7478,9 +7555,9 @@ const Address = (props) => {
7478
7555
  };
7479
7556
  const headerRender = () => {
7480
7557
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: b2("header"), children: [
7481
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "arrow-back", onClick: onSwitchModule, children: privateType === "custom" && (React__default.isValidElement(backBtnIcon) ? backBtnIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$g, { color: "#cccccc" })) }),
7558
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "arrow-back", onClick: onSwitchModule, children: privateType === "custom" && (React__default.isValidElement(backBtnIcon) ? backBtnIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$h, { color: "#cccccc" })) }),
7482
7559
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("header__title"), children: privateType === "custom" ? customAddressTitle || locale.address.selectRegion : existAddressTitle || locale.address.deliveryTo }),
7483
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { onClick: () => handClose(), children: React__default.isValidElement(closeBtnIcon) ? closeBtnIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { size: 18, color: "#ccc" }) })
7560
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { onClick: () => handClose(), children: React__default.isValidElement(closeBtnIcon) ? closeBtnIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$p, { size: 18, color: "#ccc" }) })
7484
7561
  ] });
7485
7562
  };
7486
7563
  useEffect(() => {
@@ -7532,8 +7609,8 @@ const Address = (props) => {
7532
7609
  {
7533
7610
  type: privateType,
7534
7611
  existAddress,
7535
- selectedIcon: React__default.isValidElement(selectedIcon) ? selectedIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$r, { color: "#FA2C19" }),
7536
- defaultIcon: React__default.isValidElement(defaultIcon) ? defaultIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(r$d, {}),
7612
+ selectedIcon: React__default.isValidElement(selectedIcon) ? selectedIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$s, { color: "#FA2C19" }),
7613
+ defaultIcon: React__default.isValidElement(defaultIcon) ? defaultIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, {}),
7537
7614
  isShowCustomAddress,
7538
7615
  customAndExistTitle: customAndExistTitle || locale.address.chooseAnotherAddress,
7539
7616
  onSelected: selectedExist,
@@ -7546,7 +7623,7 @@ const Address = (props) => {
7546
7623
  }
7547
7624
  ) });
7548
7625
  };
7549
- Address.defaultProps = defaultProps$13;
7626
+ Address.defaultProps = defaultProps$14;
7550
7627
  Address.displayName = "NutAddress";
7551
7628
  const Utils = {
7552
7629
  /**
@@ -7679,7 +7756,7 @@ function requestAniFrame() {
7679
7756
  }
7680
7757
  }
7681
7758
  const requestAniFrame$1 = requestAniFrame();
7682
- const defaultProps$12 = {
7759
+ const defaultProps$13 = {
7683
7760
  type: "one",
7684
7761
  isAutoBackFill: false,
7685
7762
  poppable: true,
@@ -7731,7 +7808,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
7731
7808
  onUpdate,
7732
7809
  onSelected,
7733
7810
  onYearMonthChange
7734
- } = { ...defaultProps$12, ...props };
7811
+ } = { ...defaultProps$13, ...props };
7735
7812
  const weeks = locale.calendaritem.weekdays;
7736
7813
  const [yearMonthTitle, setYearMonthTitle] = useState("");
7737
7814
  const [monthsData, setMonthsData] = useState([]);
@@ -8336,9 +8413,9 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
8336
8413
  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 }) }) : ""
8337
8414
  ] }) });
8338
8415
  });
8339
- CalendarItem.defaultProps = defaultProps$12;
8416
+ CalendarItem.defaultProps = defaultProps$13;
8340
8417
  CalendarItem.displayName = "NutCalendarItem";
8341
- const defaultProps$11 = {
8418
+ const defaultProps$12 = {
8342
8419
  type: "one",
8343
8420
  isAutoBackFill: false,
8344
8421
  poppable: true,
@@ -8394,7 +8471,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
8394
8471
  onChoose,
8395
8472
  onSelected,
8396
8473
  onYearMonthChange
8397
- } = { ...defaultProps$11, ...props };
8474
+ } = { ...defaultProps$12, ...props };
8398
8475
  const calendarRef = useRef(null);
8399
8476
  const close = () => {
8400
8477
  onClose && onClose();
@@ -8464,9 +8541,9 @@ const Calendar = React__default.forwardRef((props, ref) => {
8464
8541
  }
8465
8542
  ) : renderItem() });
8466
8543
  });
8467
- Calendar.defaultProps = defaultProps$11;
8544
+ Calendar.defaultProps = defaultProps$12;
8468
8545
  Calendar.displayName = "NutCalendar";
8469
- const defaultProps$10 = {
8546
+ const defaultProps$11 = {
8470
8547
  data: {
8471
8548
  text: "",
8472
8549
  value: "",
@@ -8477,32 +8554,37 @@ const defaultProps$10 = {
8477
8554
  },
8478
8555
  activeColor: "",
8479
8556
  checked: false,
8480
- checkedIcon: "checklist",
8557
+ activeIcon: "checklist",
8481
8558
  chooseItem: () => {
8482
8559
  }
8483
8560
  };
8484
8561
  const InternalCascaderItem = (props, ref) => {
8485
- const { data, checked, checkedIcon, chooseItem, activeColor } = {
8486
- ...defaultProps$10,
8562
+ const { data, checked, activeIcon, chooseItem, activeColor } = {
8563
+ ...defaultProps$11,
8487
8564
  ...props
8488
8565
  };
8489
- const b2 = cn("cascader-item");
8566
+ const classPrefix2 = "nut-cascader-item";
8490
8567
  const classes = classNames(
8491
8568
  {
8492
8569
  active: checked,
8493
8570
  disabled: data.disabled
8494
8571
  },
8495
- b2("")
8572
+ classPrefix2
8496
8573
  );
8497
8574
  const classesTitle = classNames({
8498
- [`${b2("")}__title`]: true
8575
+ [`${classPrefix2}__title`]: true
8499
8576
  });
8500
8577
  const renderIcon = () => {
8501
8578
  if (checked) {
8502
- if (isValidElement(checkedIcon)) {
8503
- return checkedIcon;
8579
+ if (isValidElement(activeIcon)) {
8580
+ return activeIcon;
8504
8581
  }
8505
- return /* @__PURE__ */ jsxRuntimeExports.jsx(a$p, { className: `${checked ? b2("icon-check") : ""}` });
8582
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
8583
+ a$q,
8584
+ {
8585
+ className: `${checked ? `${classPrefix2}__icon-check` : ""}`
8586
+ }
8587
+ );
8506
8588
  }
8507
8589
  return null;
8508
8590
  };
@@ -8516,13 +8598,13 @@ const InternalCascaderItem = (props, ref) => {
8516
8598
  },
8517
8599
  children: [
8518
8600
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classesTitle, children: data.text }),
8519
- data.loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, { color: "#969799", className: "nut-cascader-item__icon-loading" }) : renderIcon()
8601
+ data.loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(r$f, { color: "#969799", className: "nut-cascader-item__icon-loading" }) : renderIcon()
8520
8602
  ]
8521
8603
  }
8522
8604
  );
8523
8605
  };
8524
8606
  const CascaderItem = React__default.forwardRef(InternalCascaderItem);
8525
- CascaderItem.defaultProps = defaultProps$10;
8607
+ CascaderItem.defaultProps = defaultProps$11;
8526
8608
  CascaderItem.displayName = "NutCascaderItem";
8527
8609
  const formatTree = (tree, parent, config2) => tree.map((node) => {
8528
8610
  const {
@@ -8660,26 +8742,22 @@ class Tree {
8660
8742
  }
8661
8743
  }
8662
8744
  const Tree$1 = Tree;
8663
- const defaultProps$$ = {
8664
- className: "",
8665
- style: {},
8745
+ const defaultProps$10 = {
8746
+ ...ComponentDefaults,
8666
8747
  activeColor: "",
8667
- checkedIcon: "checklist",
8668
- tabsColor: "",
8669
- poppable: true,
8748
+ activeIcon: "checklist",
8749
+ popup: true,
8670
8750
  visible: false,
8671
8751
  options: [],
8672
8752
  value: [],
8673
8753
  title: "",
8674
- textKey: "text",
8675
- valueKey: "value",
8676
- childrenKey: "children",
8677
- convertConfig: {},
8754
+ optionKey: { textKey: "text", valueKey: "value", childrenKey: "children" },
8755
+ format: {},
8678
8756
  closeable: false,
8679
8757
  closeIconPosition: "top-right",
8680
8758
  closeIcon: "close",
8681
8759
  lazy: false,
8682
- lazyLoad: () => {
8760
+ onLoad: () => {
8683
8761
  },
8684
8762
  onClose: () => {
8685
8763
  },
@@ -8693,28 +8771,25 @@ const InternalCascader = (props, ref) => {
8693
8771
  const {
8694
8772
  className,
8695
8773
  style,
8696
- tabsColor,
8697
- poppable,
8774
+ popup,
8698
8775
  visible,
8699
8776
  options,
8700
8777
  value,
8701
8778
  title,
8702
- textKey,
8703
- valueKey,
8704
- childrenKey,
8705
- convertConfig: convertConfig2,
8779
+ optionKey: optionKey2,
8780
+ format: format2,
8706
8781
  closeable,
8707
8782
  closeIconPosition,
8708
8783
  closeIcon,
8709
8784
  lazy,
8710
- lazyLoad,
8785
+ onLoad,
8711
8786
  onClose,
8712
8787
  onChange,
8713
8788
  onPathChange
8714
- } = { ...defaultProps$$, ...props };
8789
+ } = { ...defaultProps$10, ...props };
8715
8790
  const [tabvalue, setTabvalue] = useState("c1");
8716
8791
  const [optionsData, setOptionsData] = useState([]);
8717
- const isLazy = () => state.configs.lazy && Boolean(state.configs.lazyLoad);
8792
+ const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
8718
8793
  const [state] = useState({
8719
8794
  optionsData: [],
8720
8795
  panes: [
@@ -8732,44 +8807,38 @@ const InternalCascader = (props, ref) => {
8732
8807
  currentProcessNode: [],
8733
8808
  configs: {
8734
8809
  lazy,
8735
- lazyLoad,
8736
- valueKey,
8737
- textKey,
8738
- childrenKey,
8739
- convertConfig: convertConfig2
8810
+ onLoad,
8811
+ optionKey: optionKey2,
8812
+ format: format2
8740
8813
  },
8741
8814
  lazyLoadMap: /* @__PURE__ */ new Map()
8742
8815
  });
8743
- const b2 = cn("cascader");
8744
- const classes = classNames(b2(""));
8816
+ const classPrefix2 = classNames(`nut-cascader`);
8745
8817
  const classesPane = classNames({
8746
- [`${b2("")}-pane`]: true
8818
+ [`${classPrefix2}-pane`]: true
8747
8819
  });
8748
8820
  useEffect(() => {
8749
8821
  initData();
8750
- }, []);
8822
+ }, [options]);
8751
8823
  useEffect(() => {
8752
8824
  if (value !== state.innerValue) {
8753
8825
  state.innerValue = value;
8754
8826
  }
8755
8827
  }, [value]);
8756
- useEffect(() => {
8757
- initData();
8758
- }, [options]);
8759
8828
  const initData = async () => {
8760
8829
  state.lazyLoadMap.clear();
8761
- if (convertConfig2 && Object.keys(convertConfig2).length > 0) {
8830
+ if (format2 && Object.keys(format2).length > 0) {
8762
8831
  state.optionsData = convertListToOptions(
8763
8832
  options,
8764
- convertConfig2
8833
+ format2
8765
8834
  );
8766
8835
  } else {
8767
8836
  state.optionsData = options;
8768
8837
  }
8769
8838
  state.tree = new Tree$1(state.optionsData, {
8770
- value: state.configs.valueKey,
8771
- text: state.configs.textKey,
8772
- children: state.configs.childrenKey
8839
+ value: state.configs.optionKey.valueKey,
8840
+ text: state.configs.optionKey.textKey,
8841
+ children: state.configs.optionKey.childrenKey
8773
8842
  });
8774
8843
  if (isLazy() && !state.tree.nodes.length) {
8775
8844
  await invokeLazyLoad({
@@ -8835,7 +8904,7 @@ const InternalCascader = (props, ref) => {
8835
8904
  if (!node) {
8836
8905
  return;
8837
8906
  }
8838
- if (!state.configs.lazyLoad) {
8907
+ if (!state.configs.onLoad) {
8839
8908
  node.leaf = true;
8840
8909
  return;
8841
8910
  }
@@ -8848,7 +8917,7 @@ const InternalCascader = (props, ref) => {
8848
8917
  if (!lazyLoadPromise) {
8849
8918
  lazyLoadPromise = new Promise((resolve) => {
8850
8919
  var _a, _b;
8851
- (_b = (_a = state.configs).lazyLoad) == null ? void 0 : _b.call(_a, node, resolve);
8920
+ (_b = (_a = state.configs).onLoad) == null ? void 0 : _b.call(_a, node, resolve);
8852
8921
  });
8853
8922
  state.lazyLoadMap.set(node, lazyLoadPromise);
8854
8923
  }
@@ -8895,8 +8964,8 @@ const InternalCascader = (props, ref) => {
8895
8964
  selectedNode: null,
8896
8965
  paneKey: `c${state.tabsCursor + 1}`
8897
8966
  });
8898
- setTabvalue(`c${state.tabsCursor + 1}`);
8899
8967
  setOptionsData(state.panes);
8968
+ setTabvalue(`c${state.tabsCursor + 1}`);
8900
8969
  if (!type) {
8901
8970
  const pathNodes = state.panes.map((item) => item.selectedNode);
8902
8971
  const optionParams = pathNodes.map((item) => item == null ? void 0 : item.value);
@@ -8916,8 +8985,8 @@ const InternalCascader = (props, ref) => {
8916
8985
  setOptionsData(state.panes);
8917
8986
  };
8918
8987
  const renderItem = () => {
8919
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classes} ${className}`, style, children: [
8920
- poppable && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("title"), children: title }),
8988
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix2} ${className}`, style, children: [
8989
+ popup && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-cascader__title", children: title }),
8921
8990
  /* @__PURE__ */ jsxRuntimeExports.jsx(
8922
8991
  Tabs,
8923
8992
  {
@@ -8932,27 +9001,21 @@ const InternalCascader = (props, ref) => {
8932
9001
  setTabvalue(pane.paneKey);
8933
9002
  state.tabsCursor = index;
8934
9003
  },
8935
- className: `nut-tabs__titles-item ${tabvalue === pane.paneKey ? "active" : ""}`,
9004
+ className: `nut-tabs__titles-item ${tabvalue === pane.paneKey ? "nut-tabs__titles-item--active" : ""}`,
8936
9005
  children: [
8937
9006
  /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "nut-tabs__titles-item__text", children: [
8938
9007
  !state.initLoading && state.panes.length && ((_a = pane == null ? void 0 : pane.selectedNode) == null ? void 0 : _a.text),
8939
9008
  !state.initLoading && state.panes.length && !((_b = pane == null ? void 0 : pane.selectedNode) == null ? void 0 : _b.text) && "请选择",
8940
9009
  !(!state.initLoading && state.panes.length) && "Loading..."
8941
9010
  ] }),
8942
- /* @__PURE__ */ jsxRuntimeExports.jsx(
8943
- "span",
8944
- {
8945
- className: "nut-tabs__titles-item__line",
8946
- style: { background: tabsColor }
8947
- }
8948
- )
9011
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "nut-tabs__titles-item__line" })
8949
9012
  ]
8950
9013
  },
8951
9014
  pane.paneKey
8952
9015
  );
8953
9016
  });
8954
9017
  },
8955
- 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) => {
9018
+ 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) => {
8956
9019
  var _a;
8957
9020
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
8958
9021
  CascaderItem,
@@ -8964,18 +9027,18 @@ const InternalCascader = (props, ref) => {
8964
9027
  },
8965
9028
  index
8966
9029
  );
8967
- }) }) }, pane.paneKey)) : /* @__PURE__ */ jsxRuntimeExports.jsx(TabPane, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classesPane }) })
9030
+ }) }) }, pane.paneKey)) : /* @__PURE__ */ jsxRuntimeExports.jsx(Tabs.TabPane, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classesPane }) })
8968
9031
  }
8969
9032
  )
8970
9033
  ] });
8971
9034
  };
8972
- return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: poppable ? /* @__PURE__ */ jsxRuntimeExports.jsx(
9035
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: popup ? /* @__PURE__ */ jsxRuntimeExports.jsx(
8973
9036
  Popup,
8974
9037
  {
8975
- className: "cascadar-popup",
8976
9038
  visible,
8977
9039
  position: "bottom",
8978
9040
  round: true,
9041
+ closeIcon,
8979
9042
  closeable,
8980
9043
  closeIconPosition,
8981
9044
  onClickOverlay: closePopup,
@@ -8985,74 +9048,76 @@ const InternalCascader = (props, ref) => {
8985
9048
  ) : renderItem() });
8986
9049
  };
8987
9050
  const Cascader = React__default.forwardRef(InternalCascader);
8988
- Cascader.defaultProps = defaultProps$$;
9051
+ Cascader.defaultProps = defaultProps$10;
8989
9052
  Cascader.displayName = "NutCascader";
8990
9053
  const CheckboxGroupContext = createContext(null);
8991
9054
  const Context = CheckboxGroupContext;
8992
- const defaultProps$_ = {
8993
- disabled: false,
8994
- checkedValue: [],
9055
+ const defaultProps$$ = {
8995
9056
  max: void 0,
8996
- textPosition: "right",
9057
+ labelPosition: "right",
8997
9058
  direction: "vertical",
8998
9059
  onChange: (value) => {
8999
9060
  },
9000
9061
  options: []
9001
9062
  };
9063
+ const classPrefix$9 = "nut-checkboxgroup";
9002
9064
  const CheckboxGroup = React__default.forwardRef(
9003
9065
  (props, ref) => {
9004
- const { children } = { ...defaultProps$_, ...props };
9005
- const b2 = cn("checkboxgroup");
9066
+ const { children } = { ...defaultProps$$, ...props };
9006
9067
  const {
9007
9068
  className,
9008
9069
  disabled,
9009
9070
  onChange,
9010
- checkedValue,
9071
+ value,
9072
+ defaultValue,
9011
9073
  max,
9012
- textPosition,
9074
+ labelPosition,
9013
9075
  direction,
9014
9076
  options,
9015
9077
  ...rest
9016
9078
  } = props;
9017
9079
  useImperativeHandle(ref, () => ({
9018
- toggleAll(state) {
9080
+ toggle(state) {
9019
9081
  if (state === false) {
9020
- setInnerValue([]);
9082
+ setValue([]);
9021
9083
  } else {
9022
9084
  const childrenLabel = [];
9023
9085
  React__default.Children.map(children, (child) => {
9024
9086
  const childProps = child.props;
9025
- childrenLabel.push(childProps.label || child.children);
9087
+ childrenLabel.push(childProps.value);
9026
9088
  });
9027
- setInnerValue(childrenLabel);
9089
+ setValue(childrenLabel);
9028
9090
  }
9029
9091
  },
9030
- toggleReverse() {
9092
+ reverse() {
9031
9093
  const childrenLabel = [];
9032
9094
  React__default.Children.map(children, (child) => {
9033
9095
  const childProps = child.props;
9034
- childrenLabel.push(childProps.label || child.children);
9096
+ childrenLabel.push(childProps.value);
9035
9097
  });
9036
9098
  const reverse = childrenLabel.filter(
9037
- (c) => (innerValue == null ? void 0 : innerValue.findIndex((v) => v === c)) === -1
9099
+ (c) => (_value == null ? void 0 : _value.findIndex((v) => v === c)) === -1
9038
9100
  );
9039
- setInnerValue(reverse);
9101
+ setValue(reverse);
9040
9102
  }
9041
9103
  }));
9042
- const [innerValue, setInnerValue] = useState(checkedValue || []);
9043
- useEffect(() => {
9044
- setInnerValue(checkedValue || []);
9045
- }, [checkedValue]);
9104
+ const [_value, setValue] = usePropsValue({
9105
+ value: props.value,
9106
+ defaultValue: props.defaultValue,
9107
+ finalValue: [],
9108
+ onChange
9109
+ });
9046
9110
  const renderOptions = useCallback(() => {
9047
- return options == null ? void 0 : options.map(({ label, value, disabled: disabled2, onChange: onChange2, ...rest2 }) => {
9111
+ return options == null ? void 0 : options.map(({ label, value: value2, disabled: disabled2, onChange: onChange2, ...rest2 }) => {
9048
9112
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
9049
9113
  Checkbox,
9050
9114
  {
9051
- children: label,
9052
- label: value,
9115
+ label,
9116
+ disabled: disabled2,
9117
+ value: value2,
9053
9118
  ...rest2
9054
9119
  },
9055
- value == null ? void 0 : value.toString()
9120
+ value2 == null ? void 0 : value2.toString()
9056
9121
  );
9057
9122
  });
9058
9123
  }, [options, max]);
@@ -9060,25 +9125,26 @@ const CheckboxGroup = React__default.forwardRef(
9060
9125
  Context.Provider,
9061
9126
  {
9062
9127
  value: {
9063
- textPosition: textPosition || "left",
9128
+ labelPosition: labelPosition || "right",
9064
9129
  disabled,
9065
9130
  max,
9066
- checkedValue: innerValue || [],
9067
- check: (value) => {
9068
- const combined = [...innerValue, value];
9069
- setInnerValue(combined);
9070
- onChange && onChange(combined);
9131
+ value: _value,
9132
+ check: (value2) => {
9133
+ const combined = [..._value, value2];
9134
+ setValue(combined);
9071
9135
  },
9072
- uncheck: (value) => {
9073
- const reduced = innerValue.filter((item) => item !== value);
9074
- setInnerValue(reduced);
9075
- onChange && onChange(reduced);
9136
+ uncheck: (value2) => {
9137
+ const reduced = _value.filter((item) => item !== value2);
9138
+ setValue(reduced);
9076
9139
  }
9077
9140
  },
9078
9141
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
9079
9142
  "div",
9080
9143
  {
9081
- className: `${b2()} nut-checkboxgroup--${props.direction} ${className || ""}`,
9144
+ className: classNames(classPrefix$9, {
9145
+ [`nut-checkboxgroup--${props.direction}`]: props.direction,
9146
+ className
9147
+ }),
9082
9148
  ...rest,
9083
9149
  children: (options == null ? void 0 : options.length) ? renderOptions() : children
9084
9150
  }
@@ -9087,107 +9153,117 @@ const CheckboxGroup = React__default.forwardRef(
9087
9153
  );
9088
9154
  }
9089
9155
  );
9090
- CheckboxGroup.defaultProps = defaultProps$_;
9156
+ CheckboxGroup.defaultProps = defaultProps$$;
9091
9157
  CheckboxGroup.displayName = "NutCheckboxGroup";
9092
- const defaultProps$Z = {
9158
+ const defaultProps$_ = {
9093
9159
  ...ComponentDefaults,
9094
- checked: false,
9095
9160
  disabled: false,
9096
- textPosition: "right",
9097
- iconSize: 18,
9098
- icon: "check-normal",
9099
- checkedIcon: "checked",
9100
- iconClassPrefix: "nut-icon",
9101
- iconFontClassName: "nutui-iconfont",
9102
- indeterminateIcon: "check-disabled",
9103
- onChange: (state, label) => {
9161
+ labelPosition: "right",
9162
+ icon: null,
9163
+ activeIcon: null,
9164
+ indeterminateIcon: null,
9165
+ onChange: (value) => {
9104
9166
  }
9105
9167
  };
9168
+ const classPrefix$8 = "nut-checkbox";
9106
9169
  const Checkbox = (props) => {
9107
9170
  const { children } = {
9108
- ...defaultProps$Z,
9171
+ ...defaultProps$_,
9109
9172
  ...props
9110
9173
  };
9111
- const b2 = cn("checkbox");
9112
9174
  const {
9113
9175
  icon,
9114
- iconSize,
9115
9176
  label,
9116
9177
  className,
9117
- checkedIcon,
9178
+ activeIcon,
9118
9179
  checked,
9180
+ value,
9181
+ defaultChecked,
9119
9182
  disabled,
9120
9183
  onChange,
9121
9184
  indeterminate,
9122
- iconClassPrefix,
9123
- iconFontClassName,
9124
9185
  indeterminateIcon,
9125
9186
  ...others
9126
9187
  } = props;
9127
- let { textPosition, ...rest } = others;
9188
+ let { labelPosition, ...rest } = others;
9128
9189
  const ctx2 = useContext(Context);
9129
- let [innerChecked, setInnerChecked] = useState(checked);
9190
+ let [innerChecked, setChecked] = usePropsValue({
9191
+ value: props.checked,
9192
+ defaultValue: props.defaultChecked,
9193
+ finalValue: defaultChecked,
9194
+ onChange
9195
+ });
9130
9196
  let [innerDisabled, setDisabled] = useState(disabled);
9131
- const [_indeterminate, setIndeterminate] = useState(indeterminate);
9197
+ const [innerIndeterminate, setIndeterminate] = useState(indeterminate);
9132
9198
  useEffect(() => {
9133
- !ctx2 && setInnerChecked(checked);
9134
9199
  setDisabled(disabled);
9200
+ }, [disabled]);
9201
+ useEffect(() => {
9135
9202
  setIndeterminate(indeterminate);
9136
- }, [disabled, checked, indeterminate]);
9203
+ }, [indeterminate]);
9137
9204
  if (ctx2) {
9138
- if (ctx2.textPosition !== void 0) {
9139
- textPosition = ctx2.textPosition;
9205
+ if (ctx2.labelPosition !== void 0) {
9206
+ labelPosition = ctx2.labelPosition;
9140
9207
  }
9141
- innerDisabled = ctx2.disabled;
9142
- innerChecked = ctx2.checkedValue.includes(label);
9143
- setInnerChecked = (checked2) => {
9208
+ innerDisabled = ctx2.disabled !== void 0 ? ctx2.disabled : innerDisabled;
9209
+ innerChecked = ctx2.value.includes(value);
9210
+ setChecked = (checked2) => {
9144
9211
  if (ctx2.disabled)
9145
9212
  return;
9146
9213
  if (checked2)
9147
- ctx2.check(label);
9214
+ ctx2.check(value);
9148
9215
  if (!checked2)
9149
- ctx2.uncheck(label);
9216
+ ctx2.uncheck(value);
9150
9217
  };
9151
9218
  }
9152
9219
  const renderIcon = () => {
9153
9220
  if (!innerChecked) {
9154
- return React__default.isValidElement(icon) ? icon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$s, { size: iconSize, className: color() });
9221
+ return React__default.isValidElement(icon) ? icon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$t, { className: color() });
9155
9222
  }
9156
- if (_indeterminate) {
9157
- return React__default.isValidElement(indeterminateIcon) ? indeterminateIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(r$t, { size: iconSize, className: color() });
9223
+ if (innerIndeterminate) {
9224
+ return React__default.isValidElement(indeterminateIcon) ? indeterminateIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(r$u, { className: color() });
9158
9225
  }
9159
- return React__default.isValidElement(checkedIcon) ? checkedIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$q, { size: iconSize, className: color() });
9226
+ return React__default.isValidElement(activeIcon) ? activeIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$r, { className: color() });
9160
9227
  };
9161
9228
  const color = () => {
9162
9229
  if (innerDisabled) {
9163
- return "nut-checkbox__icon--disable";
9230
+ return `${classPrefix$8}__icon--disable`;
9164
9231
  }
9165
9232
  if (innerChecked) {
9166
- if (_indeterminate) {
9167
- return "nut-checkbox__icon--indeterminate";
9233
+ if (innerIndeterminate) {
9234
+ return `${classPrefix$8}__icon--indeterminate`;
9168
9235
  }
9169
- return "nut-checkbox__icon";
9236
+ return `${classPrefix$8}__icon`;
9170
9237
  }
9171
- return "nut-checkbox__icon--unchecked";
9238
+ return `${classPrefix$8}__icon--unchecked`;
9172
9239
  };
9173
9240
  const renderLabel = () => {
9174
- return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `${b2("label", { disabled: innerDisabled })} `, children: children || label });
9241
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
9242
+ "span",
9243
+ {
9244
+ className: classNames(`${classPrefix$8}__label `, {
9245
+ [`${classPrefix$8}__label--disabled`]: innerDisabled
9246
+ }),
9247
+ children: children || label
9248
+ }
9249
+ );
9175
9250
  };
9176
9251
  const handleClick = () => {
9177
9252
  if (disabled)
9178
9253
  return;
9179
9254
  const latestChecked = !innerChecked;
9180
9255
  if (ctx2 && ctx2.max !== void 0) {
9181
- if (latestChecked && ctx2.checkedValue.length >= ctx2.max)
9256
+ if (latestChecked && ctx2.value.length >= ctx2.max)
9182
9257
  return;
9183
9258
  }
9184
- onChange && onChange(latestChecked, label || children);
9185
- setInnerChecked(latestChecked);
9259
+ setChecked(latestChecked);
9186
9260
  };
9187
9261
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
9188
9262
  "div",
9189
9263
  {
9190
- className: `${b2({ reverse: textPosition === "left" })} ${className || ""}`,
9264
+ className: classNames(classPrefix$8, className, {
9265
+ [`${classPrefix$8}--reverse`]: labelPosition === "left"
9266
+ }),
9191
9267
  ...rest,
9192
9268
  onClick: handleClick,
9193
9269
  children: [
@@ -9197,7 +9273,7 @@ const Checkbox = (props) => {
9197
9273
  }
9198
9274
  );
9199
9275
  };
9200
- Checkbox.defaultProps = defaultProps$Z;
9276
+ Checkbox.defaultProps = defaultProps$_;
9201
9277
  Checkbox.displayName = "NutCheckBox";
9202
9278
  Checkbox.Group = CheckboxGroup;
9203
9279
  const MIN_DISTANCE = 10;
@@ -9278,13 +9354,13 @@ if (canUseDom) {
9278
9354
  console.log(e);
9279
9355
  }
9280
9356
  }
9281
- const InternalPickerSlot = (props, ref) => {
9357
+ const InternalPickerPanel = (props, ref) => {
9282
9358
  const {
9283
9359
  keyIndex = 0,
9284
9360
  defaultValue,
9285
- listData = [],
9361
+ options = [],
9286
9362
  threeDimensional = true,
9287
- swipeDuration = 1e3,
9363
+ duration = 1e3,
9288
9364
  itemShow = false,
9289
9365
  chooseItem
9290
9366
  } = props;
@@ -9299,9 +9375,9 @@ const InternalPickerSlot = (props, ref) => {
9299
9375
  const rotation = 20;
9300
9376
  const moving = useRef(false);
9301
9377
  let timer;
9302
- const listbox = useRef(null);
9378
+ const listRef = useRef(null);
9303
9379
  const rollerRef = useRef(null);
9304
- const pickerSlotRef = useRef(null);
9380
+ const PickerPanelRef = useRef(null);
9305
9381
  const [startTime, setStartTime] = useState(0);
9306
9382
  const [startY, setStartY] = useState(0);
9307
9383
  const transformY = useRef(0);
@@ -9327,8 +9403,8 @@ const InternalPickerSlot = (props, ref) => {
9327
9403
  if (updateMove > 0) {
9328
9404
  updateMove = 0;
9329
9405
  }
9330
- if (updateMove < -(listData.length - 1) * lineSpacing.current) {
9331
- updateMove = -(listData.length - 1) * lineSpacing.current;
9406
+ if (updateMove < -(options.length - 1) * lineSpacing.current) {
9407
+ updateMove = -(options.length - 1) * lineSpacing.current;
9332
9408
  }
9333
9409
  const endMove = Math.round(updateMove / lineSpacing.current) * lineSpacing.current;
9334
9410
  const deg = `${(Math.abs(Math.round(endMove / lineSpacing.current)) + 1) * rotation}deg`;
@@ -9337,7 +9413,7 @@ const InternalPickerSlot = (props, ref) => {
9337
9413
  } else {
9338
9414
  let deg = 0;
9339
9415
  const currentDeg = (-updateMove / lineSpacing.current + 1) * rotation;
9340
- const maxDeg = (listData.length + 1) * rotation;
9416
+ const maxDeg = (options.length + 1) * rotation;
9341
9417
  const minDeg = 0;
9342
9418
  deg = Math.min(Math.max(currentDeg, minDeg), maxDeg);
9343
9419
  if (minDeg < deg && deg < maxDeg) {
@@ -9347,7 +9423,7 @@ const InternalPickerSlot = (props, ref) => {
9347
9423
  }
9348
9424
  };
9349
9425
  const setChooseValue = (move) => {
9350
- chooseItem && chooseItem(listData == null ? void 0 : listData[Math.round(-move / lineSpacing.current)], keyIndex);
9426
+ chooseItem && chooseItem(options == null ? void 0 : options[Math.round(-move / lineSpacing.current)], keyIndex);
9351
9427
  };
9352
9428
  const touchStart = (event) => {
9353
9429
  touch.start(event);
@@ -9371,7 +9447,7 @@ const InternalPickerSlot = (props, ref) => {
9371
9447
  const moveTime = Date.now() - startTime;
9372
9448
  if (moveTime <= INERTIA_TIME && Math.abs(move) > INERTIA_DISTANCE) {
9373
9449
  const distance = momentum(move, moveTime);
9374
- setMove(distance, "end", +swipeDuration);
9450
+ setMove(distance, "end", +duration);
9375
9451
  } else {
9376
9452
  setMove(move, "end");
9377
9453
  }
@@ -9379,9 +9455,9 @@ const InternalPickerSlot = (props, ref) => {
9379
9455
  touch.reset();
9380
9456
  }, 0);
9381
9457
  };
9382
- const momentum = (distance, duration) => {
9458
+ const momentum = (distance, duration2) => {
9383
9459
  let nDistance = distance;
9384
- const speed = Math.abs(nDistance / duration);
9460
+ const speed = Math.abs(nDistance / duration2);
9385
9461
  nDistance = speed / 3e-3 * (nDistance < 0 ? -1 : 1);
9386
9462
  return nDistance;
9387
9463
  };
@@ -9389,7 +9465,7 @@ const InternalPickerSlot = (props, ref) => {
9389
9465
  const value = val || defaultValue;
9390
9466
  let index = -1;
9391
9467
  if (value) {
9392
- listData.some((item, idx) => {
9468
+ options.some((item, idx) => {
9393
9469
  if (item.value === value) {
9394
9470
  index = idx;
9395
9471
  return true;
@@ -9397,7 +9473,7 @@ const InternalPickerSlot = (props, ref) => {
9397
9473
  return false;
9398
9474
  });
9399
9475
  } else {
9400
- listData.forEach((item, i) => {
9476
+ options.forEach((item, i) => {
9401
9477
  if (item.value === defaultValue) {
9402
9478
  index = i;
9403
9479
  }
@@ -9422,7 +9498,7 @@ const InternalPickerSlot = (props, ref) => {
9422
9498
  }
9423
9499
  };
9424
9500
  const getReference = async () => {
9425
- const refe = await getRectByTaro(listbox == null ? void 0 : listbox.current);
9501
+ const refe = await getRectByTaro(listRef == null ? void 0 : listRef.current);
9426
9502
  lineSpacing.current = refe.height ? refe.height : 36;
9427
9503
  modifyStatus(true);
9428
9504
  };
@@ -9445,7 +9521,7 @@ const InternalPickerSlot = (props, ref) => {
9445
9521
  return () => {
9446
9522
  clearTimeout(timer);
9447
9523
  };
9448
- }, [listData]);
9524
+ }, [options]);
9449
9525
  useEffect(() => {
9450
9526
  if (itemShow) {
9451
9527
  setTimeout(() => {
@@ -9461,7 +9537,7 @@ const InternalPickerSlot = (props, ref) => {
9461
9537
  "div",
9462
9538
  {
9463
9539
  className: "nut-picker-list",
9464
- ref: pickerSlotRef,
9540
+ ref: PickerPanelRef,
9465
9541
  onTouchStart: touchStart,
9466
9542
  onTouchMove: touchMove,
9467
9543
  onTouchEnd: touchEnd,
@@ -9474,7 +9550,7 @@ const InternalPickerSlot = (props, ref) => {
9474
9550
  style: threeDimensional ? touchRollerStyle() : touchTileStyle(),
9475
9551
  onTransitionEnd: stopMomentum,
9476
9552
  children: [
9477
- threeDimensional && listData.map((item, index) => {
9553
+ threeDimensional && options.map((item, index) => {
9478
9554
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
9479
9555
  "div",
9480
9556
  {
@@ -9489,7 +9565,7 @@ const InternalPickerSlot = (props, ref) => {
9489
9565
  item.value ? item.value : index
9490
9566
  );
9491
9567
  }),
9492
- !threeDimensional && listData.map((item, index) => {
9568
+ !threeDimensional && options.map((item, index) => {
9493
9569
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
9494
9570
  "div",
9495
9571
  {
@@ -9507,13 +9583,13 @@ const InternalPickerSlot = (props, ref) => {
9507
9583
  }
9508
9584
  ),
9509
9585
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-picker-mask" }),
9510
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-picker-indicator", ref: listbox })
9586
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-picker-indicator", ref: listRef })
9511
9587
  ]
9512
9588
  }
9513
9589
  );
9514
9590
  };
9515
- const PickerSlot = React__default.forwardRef(InternalPickerSlot);
9516
- const PickerSlot$1 = PickerSlot;
9591
+ const PickerPanel = React__default.forwardRef(InternalPickerPanel);
9592
+ const PickerPanel$1 = PickerPanel;
9517
9593
  function useRefs() {
9518
9594
  const refs = React__default.useRef([]);
9519
9595
  const setRefs = React__default.useCallback(
@@ -9528,181 +9604,247 @@ function useRefs() {
9528
9604
  }, []);
9529
9605
  return [refs.current, setRefs, reset];
9530
9606
  }
9607
+ const defaultProps$Z = {
9608
+ ...ComponentDefaults,
9609
+ visible: false,
9610
+ title: "",
9611
+ options: [],
9612
+ value: [],
9613
+ defaultValue: [],
9614
+ threeDimensional: true,
9615
+ duration: 1e3
9616
+ };
9531
9617
  const InternalPicker = (props, ref) => {
9532
9618
  const { locale } = useConfig$1();
9533
9619
  const {
9534
9620
  visible,
9535
9621
  title,
9536
- listData = [],
9537
- defaultValueData,
9538
- onConfirm,
9539
- onClose,
9540
- onCloseUpdate,
9541
- onChange,
9622
+ options = [],
9623
+ defaultValue = [],
9542
9624
  className,
9543
9625
  style,
9544
9626
  threeDimensional,
9545
- swipeDuration,
9627
+ duration,
9628
+ onConfirm,
9629
+ onClose,
9630
+ afterClose,
9631
+ onChange,
9546
9632
  ...rest
9547
- } = props;
9548
- const [chooseValueData, setchooseValueData] = useState([]);
9549
- const [columnIndex, setcolumnIndex] = useState(0);
9633
+ } = { ...defaultProps$Z, ...props };
9634
+ const classPrefix2 = "nut-picker";
9635
+ const classes = classNames(classPrefix2, className);
9636
+ const [selectedValue, setSelectedValue] = usePropsValue({
9637
+ value: props.value,
9638
+ defaultValue: [...defaultValue],
9639
+ finalValue: [...defaultValue],
9640
+ onChange: (val) => {
9641
+ var _a;
9642
+ (_a = props.onConfirm) == null ? void 0 : _a.call(props, setSelectedOptions(), val);
9643
+ }
9644
+ });
9645
+ const [currentValue2, setCurrentValue] = useState([]);
9646
+ const [columnIndex, setColumnIndex] = useState(0);
9550
9647
  const pickerRef = useRef(null);
9551
9648
  const [refs, setRefs] = useRefs();
9552
9649
  const [columnsList, setColumnsList] = useState([]);
9553
- const b2 = cn("picker");
9554
9650
  const isConfirmEvent = useRef(false);
9555
- useEffect(() => {
9556
- if (defaultValueData && defaultValueData.length !== 0 && defaultValueData.toString() !== chooseValueData.toString()) {
9557
- const data = [...defaultValueData];
9558
- setchooseValueData(data);
9559
- setColumnsList(normalListData());
9651
+ const formatCascade = (columns, values) => {
9652
+ const formatted = [];
9653
+ let columnOptions = {
9654
+ text: "",
9655
+ value: "",
9656
+ children: columns
9657
+ };
9658
+ let columnIndex2 = 0;
9659
+ while (columnOptions && columnOptions.children) {
9660
+ const options2 = columnOptions.children;
9661
+ const value = values[columnIndex2];
9662
+ let index = options2.findIndex(
9663
+ (columnItem) => columnItem.value === value
9664
+ );
9665
+ if (index === -1)
9666
+ index = 0;
9667
+ columnOptions = columnOptions.children[index];
9668
+ columnIndex2++;
9669
+ formatted.push(options2);
9560
9670
  }
9561
- }, [defaultValueData]);
9562
- useEffect(() => {
9563
- onChange && onChange(columnIndex, chooseValueData, selectedOptions());
9564
- if (isConfirmEvent.current) {
9565
- isConfirmEvent.current = false;
9566
- onConfirm && onConfirm(chooseValueData, selectedOptions());
9671
+ return formatted;
9672
+ };
9673
+ const columnsType = () => {
9674
+ const firstColumn = options[0];
9675
+ if (firstColumn) {
9676
+ if (Array.isArray(firstColumn)) {
9677
+ return "multiple";
9678
+ }
9679
+ if ("children" in firstColumn) {
9680
+ return "cascade";
9681
+ }
9567
9682
  }
9568
- }, [chooseValueData]);
9569
- useEffect(() => {
9570
- init();
9571
- }, [listData]);
9572
- const closeActionSheet = () => {
9573
- onClose && onClose(chooseValueData, selectedOptions());
9574
- onCloseUpdate && onCloseUpdate(chooseValueData, selectedOptions(), pickerRef);
9683
+ return "single";
9575
9684
  };
9576
- const confirm = () => {
9577
- let movings = false;
9578
- refs.forEach((_ref) => {
9579
- if (_ref.moving)
9580
- movings = true;
9581
- _ref.stopMomentum();
9685
+ const normalListData = () => {
9686
+ const type = columnsType();
9687
+ switch (type) {
9688
+ case "multiple":
9689
+ return options;
9690
+ case "cascade":
9691
+ return formatCascade(options, selectedValue);
9692
+ default:
9693
+ return [options];
9694
+ }
9695
+ };
9696
+ const init = () => {
9697
+ const normalData = normalListData();
9698
+ setColumnsList(normalData);
9699
+ const data = [];
9700
+ normalData.length > 0 && normalData.map((item) => {
9701
+ item[0] && data.push(item[0].value);
9702
+ return item;
9582
9703
  });
9583
- if (movings) {
9584
- isConfirmEvent.current = true;
9585
- } else {
9586
- onConfirm && onConfirm(chooseValueData, selectedOptions());
9704
+ if (!defaultValue.length && selectedValue.length === 0) {
9705
+ setSelectedValue([...data]);
9587
9706
  }
9588
- onClose && onClose(chooseValueData, selectedOptions());
9589
- setTimeout(() => {
9590
- isConfirmEvent.current = false;
9591
- }, 0);
9592
9707
  };
9593
- const selectedOptions = () => {
9594
- const optins = [];
9595
- columnsList.map((column, index) => {
9596
- let currOptions = [];
9597
- currOptions = column.filter(
9598
- (item) => item.value === chooseValueData[index]
9708
+ useEffect(() => {
9709
+ if (!visible) {
9710
+ return;
9711
+ }
9712
+ init();
9713
+ }, [options, visible]);
9714
+ const setSelectedOptions = () => {
9715
+ const options2 = [];
9716
+ let currOptions = [];
9717
+ columnsList.forEach((columnOptions, index) => {
9718
+ currOptions = columnOptions.filter(
9719
+ (item) => item.value === selectedValue[index]
9599
9720
  );
9600
9721
  if (currOptions[0]) {
9601
- optins.push(currOptions[0]);
9722
+ options2.push(currOptions[0]);
9602
9723
  } else {
9603
- column[0] && optins.push(column[0]);
9724
+ columnOptions[0] && options2.push(columnOptions[0]);
9604
9725
  }
9605
- return column;
9606
9726
  });
9607
- return optins;
9727
+ return options2;
9728
+ };
9729
+ const defaultValuesConvert = () => {
9730
+ const defaultIndexs = [];
9731
+ if (selectedValue.length > 0) {
9732
+ selectedValue.forEach((value, index) => {
9733
+ var _a;
9734
+ for (let i = 0; i < ((_a = columnsList == null ? void 0 : columnsList[index]) == null ? void 0 : _a.length); i++) {
9735
+ if (columnsList[index][i].value === value) {
9736
+ defaultIndexs.push(i);
9737
+ break;
9738
+ }
9739
+ }
9740
+ });
9741
+ } else if (columnsList && columnsList.length > 0) {
9742
+ columnsList.forEach((item) => {
9743
+ defaultIndexs.push(0);
9744
+ item.length > 0 && selectedValue.push(item[0].value);
9745
+ });
9746
+ }
9747
+ return defaultIndexs;
9608
9748
  };
9609
- const chooseItem = (option, columnIndex2) => {
9610
- if (option && Object.keys(option).length) {
9611
- if (chooseValueData[columnIndex2] !== option.value) {
9749
+ useEffect(() => {
9750
+ if (!visible) {
9751
+ return;
9752
+ }
9753
+ Taro.getEnv() !== "WEB" && setCurrentValue(defaultValuesConvert());
9754
+ onChange && onChange(setSelectedOptions(), selectedValue, columnIndex);
9755
+ if (isConfirmEvent.current) {
9756
+ isConfirmEvent.current = false;
9757
+ onConfirm && onConfirm(setSelectedOptions(), selectedValue);
9758
+ }
9759
+ }, [selectedValue, columnsList, visible]);
9760
+ const chooseItem = (columnOptions, columnIndex2) => {
9761
+ var _a, _b;
9762
+ if (columnOptions && Object.keys(columnOptions).length) {
9763
+ if (selectedValue[columnIndex2] !== columnOptions.value) {
9612
9764
  if (columnsType() === "cascade") {
9613
- chooseValueData[columnIndex2] = option.value ? option.value : "";
9614
- setchooseValueData([...chooseValueData]);
9615
- let index = columnIndex2;
9616
- let cursor = option;
9617
- while (cursor && cursor.children && cursor.children[0]) {
9618
- chooseValueData[index + 1] = cursor.children[0].value;
9619
- setchooseValueData([...chooseValueData]);
9620
- index++;
9621
- const cc = cursor.children[0];
9622
- cursor = cc;
9765
+ selectedValue[columnIndex2] = columnOptions.value || "";
9766
+ setSelectedValue([...selectedValue]);
9767
+ while ((_a = columnOptions == null ? void 0 : columnOptions.children) == null ? void 0 : _a[0]) {
9768
+ selectedValue[columnIndex2 + 1] = columnOptions.children[0].value;
9769
+ setSelectedValue([...selectedValue]);
9770
+ columnIndex2++;
9771
+ columnOptions = columnOptions.children[0];
9623
9772
  }
9624
- if (cursor && cursor.children) {
9625
- chooseValueData[index + 1] = "";
9626
- setchooseValueData([...chooseValueData]);
9773
+ if ((_b = columnOptions == null ? void 0 : columnOptions.children) == null ? void 0 : _b.length) {
9774
+ selectedValue[columnIndex2 + 1] = "";
9775
+ setSelectedValue([...selectedValue]);
9627
9776
  }
9628
9777
  setColumnsList(normalListData());
9629
9778
  } else {
9630
- setchooseValueData((data) => {
9779
+ setSelectedValue((data) => {
9631
9780
  const cdata = [...data];
9632
9781
  cdata[columnIndex2] = Object.prototype.hasOwnProperty.call(
9633
- option,
9782
+ columnOptions,
9634
9783
  "value"
9635
- ) ? option.value : "";
9784
+ ) ? columnOptions.value : "";
9636
9785
  return cdata;
9637
9786
  });
9638
9787
  }
9639
- setcolumnIndex(columnIndex2);
9788
+ setColumnIndex(columnIndex2);
9640
9789
  }
9641
9790
  }
9642
9791
  };
9643
- const normalListData = () => {
9644
- const type = columnsType();
9645
- switch (type) {
9646
- case "multiple":
9647
- return listData;
9648
- case "cascade":
9649
- return formatCascade(listData, chooseValueData);
9650
- default:
9651
- return [listData];
9792
+ const confirm = () => {
9793
+ let movings = false;
9794
+ refs.forEach((ref2) => {
9795
+ if (ref2.moving)
9796
+ movings = true;
9797
+ ref2.stopMomentum();
9798
+ });
9799
+ if (movings) {
9800
+ isConfirmEvent.current = true;
9801
+ } else {
9802
+ onConfirm && onConfirm(setSelectedOptions(), selectedValue);
9803
+ closePicker();
9652
9804
  }
9805
+ setTimeout(() => {
9806
+ isConfirmEvent.current = false;
9807
+ }, 0);
9653
9808
  };
9654
- const columnsType = () => {
9655
- const firstColumn = listData[0];
9656
- if (firstColumn) {
9657
- if (Array.isArray(firstColumn)) {
9658
- return "multiple";
9659
- }
9660
- if ("children" in firstColumn) {
9661
- return "cascade";
9662
- }
9663
- }
9664
- return "single";
9809
+ const closePicker = () => {
9810
+ onClose && onClose(setSelectedOptions(), selectedValue);
9811
+ afterClose && afterClose(setSelectedOptions(), selectedValue, pickerRef);
9665
9812
  };
9666
- const formatCascade = (columns, defaultValues) => {
9667
- const formatted = [];
9668
- let cursor = {
9669
- text: "",
9670
- value: "",
9671
- children: columns
9672
- };
9673
- let columnIndex2 = 0;
9674
- while (cursor && cursor.children) {
9675
- const options = cursor.children;
9676
- const value = defaultValues[columnIndex2];
9677
- let index = options.findIndex(
9678
- (columnItem) => columnItem.value === value
9679
- );
9680
- if (index === -1)
9681
- index = 0;
9682
- cursor = cursor.children[index];
9683
- columnIndex2++;
9684
- formatted.push(options);
9685
- }
9686
- return formatted;
9813
+ const renderTitleBar = () => {
9814
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix2}__control`, children: [
9815
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
9816
+ "span",
9817
+ {
9818
+ className: `${classPrefix2}__cancel-btn`,
9819
+ onClick: () => closePicker(),
9820
+ children: locale.cancel
9821
+ }
9822
+ ),
9823
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__title`, children: title || "" }),
9824
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `${classPrefix2}__confirm-btn`, onClick: confirm, children: locale.confirm })
9825
+ ] });
9687
9826
  };
9688
- const init = () => {
9689
- const data = [];
9690
- const normalData = normalListData();
9691
- setColumnsList(normalData);
9692
- normalData.length > 0 && normalData.map((item) => {
9693
- item[0] && data.push(item[0].value);
9694
- return item;
9695
- });
9696
- if (!defaultValueData && chooseValueData.length === 0) {
9697
- setchooseValueData([...data]);
9698
- }
9827
+ const [pickingStatus, setPickingStatus] = useState(false);
9828
+ const pickerStart = () => {
9829
+ setPickingStatus(true);
9699
9830
  };
9700
- const renderToolbar = () => {
9701
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: b2("control"), children: [
9702
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: b2("cancel-btn"), onClick: () => closeActionSheet(), children: locale.cancel }),
9703
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("title"), children: title || "" }),
9704
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: b2("confirm-btn"), onClick: confirm, children: locale.confirm })
9705
- ] });
9831
+ const pickerEnd = () => {
9832
+ setPickingStatus(false);
9833
+ };
9834
+ const pickerChange = (data) => {
9835
+ const prevDefaultValue = currentValue2;
9836
+ let changeIndex = 0;
9837
+ const list = data.detail.value;
9838
+ for (let i = 0, len = list.length; i < len; i++) {
9839
+ if (prevDefaultValue[i] !== list[i]) {
9840
+ changeIndex = i;
9841
+ break;
9842
+ }
9843
+ }
9844
+ chooseItem(
9845
+ columnsList[changeIndex][data.detail.value[changeIndex]],
9846
+ changeIndex
9847
+ );
9706
9848
  };
9707
9849
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
9708
9850
  Popup,
@@ -9710,36 +9852,50 @@ const InternalPicker = (props, ref) => {
9710
9852
  visible,
9711
9853
  position: "bottom",
9712
9854
  onClose: () => {
9713
- closeActionSheet();
9855
+ closePicker();
9714
9856
  },
9715
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
9716
- View,
9717
- {
9718
- className: `${b2()} ${className || ""}`,
9719
- style,
9720
- ...rest,
9721
- catchMove: true,
9722
- children: [
9723
- renderToolbar(),
9724
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("panel"), ref: pickerRef, children: columnsList == null ? void 0 : columnsList.map((item, index) => {
9725
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
9726
- PickerSlot$1,
9727
- {
9728
- ref: setRefs(index),
9729
- defaultValue: chooseValueData == null ? void 0 : chooseValueData[index],
9730
- listData: item,
9731
- threeDimensional,
9732
- chooseItem: (value, index2) => chooseItem(value, index2),
9733
- swipeDuration,
9734
- keyIndex: index,
9735
- itemShow: visible
9736
- },
9737
- index
9738
- );
9739
- }) })
9740
- ]
9741
- }
9742
- )
9857
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: classes, style, ...rest, catchMove: true, children: [
9858
+ renderTitleBar(),
9859
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__panel`, ref: pickerRef, children: Taro.getEnv() === "WEB" ? columnsList == null ? void 0 : columnsList.map((item, index) => {
9860
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
9861
+ PickerPanel$1,
9862
+ {
9863
+ ref: setRefs(index),
9864
+ defaultValue: selectedValue == null ? void 0 : selectedValue[index],
9865
+ options: item,
9866
+ threeDimensional,
9867
+ chooseItem: (value, index2) => chooseItem(value, index2),
9868
+ duration,
9869
+ keyIndex: index,
9870
+ itemShow: visible
9871
+ },
9872
+ index
9873
+ );
9874
+ }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
9875
+ PickerView,
9876
+ {
9877
+ ref: pickerRef,
9878
+ value: currentValue2,
9879
+ immediateChange: true,
9880
+ onPickStart: pickerStart,
9881
+ onChange: pickerChange,
9882
+ onPickEnd: pickerEnd,
9883
+ className: "nut-picker-view-panel",
9884
+ children: columnsList == null ? void 0 : columnsList.map((columnOptions, index) => {
9885
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(PickerViewColumn, { children: columnOptions.map((item, index2) => {
9886
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
9887
+ View,
9888
+ {
9889
+ className: "nut-picker-roller-item-title",
9890
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: item.text || item })
9891
+ },
9892
+ item.value || index2
9893
+ );
9894
+ }) }, `col${index}`);
9895
+ })
9896
+ }
9897
+ ) })
9898
+ ] })
9743
9899
  }
9744
9900
  );
9745
9901
  };
@@ -9784,7 +9940,7 @@ const DatePicker = (props) => {
9784
9940
  const [show, setShow] = useState(false);
9785
9941
  const [currentDate, setCurrentDate] = useState(modelValue);
9786
9942
  const [defaultValue, setDefaultValue] = useState([]);
9787
- const [listData, setListData] = useState([]);
9943
+ const [options, setListData] = useState([]);
9788
9944
  const pickerRef = useRef(null);
9789
9945
  const isDate = (val) => {
9790
9946
  return Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
@@ -9902,7 +10058,7 @@ const DatePicker = (props) => {
9902
10058
  }
9903
10059
  return result;
9904
10060
  };
9905
- const updateChooseValueCustmer = (index, selectedValue, cacheValueData) => {
10061
+ const updateChooseValueCustmer = (cacheValueData, selectedValue, index) => {
9906
10062
  if (["date", "datetime", "datehour", "month-day", "year-month"].includes(
9907
10063
  type.toLocaleLowerCase()
9908
10064
  )) {
@@ -9941,7 +10097,7 @@ const DatePicker = (props) => {
9941
10097
  const isEqual2 = (currentDate == null ? void 0 : currentDate.getTime()) === (date == null ? void 0 : date.getTime());
9942
10098
  date && isDate(date) && !isEqual2 && setCurrentDate(formatValue(date));
9943
10099
  }
9944
- props.onChange && props.onChange(index, selectedValue, cacheValueData);
10100
+ props.onChange && props.onChange(cacheValueData, selectedValue, index);
9945
10101
  };
9946
10102
  const padZero = (num, targetLength = 2) => {
9947
10103
  let str = `${num}`;
@@ -10038,16 +10194,16 @@ const DatePicker = (props) => {
10038
10194
  style,
10039
10195
  catchMove: true,
10040
10196
  ...rest,
10041
- children: listData.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
10197
+ children: options.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
10042
10198
  Picker$1,
10043
10199
  {
10044
10200
  title,
10045
10201
  visible: show,
10046
- listData,
10202
+ options,
10047
10203
  onClose: onCloseDatePicker,
10048
- defaultValueData: defaultValue,
10049
- onConfirm: (values, options) => onConfirmDatePicker && onConfirmDatePicker(values, options),
10050
- onChange: (index, value, list) => updateChooseValueCustmer(index, value, list),
10204
+ defaultValue,
10205
+ onConfirm: (options2, values) => onConfirmDatePicker && onConfirmDatePicker(options2, values),
10206
+ onChange: (list, value, index) => updateChooseValueCustmer(list, value, index),
10051
10207
  threeDimensional,
10052
10208
  ref: pickerRef
10053
10209
  }
@@ -10549,7 +10705,7 @@ const Input = forwardRef(
10549
10705
  }, 50);
10550
10706
  }
10551
10707
  },
10552
- children: clearIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(r$c, { className: "nut-input-clear" })
10708
+ children: clearIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(r$d, { className: "nut-input-clear" })
10553
10709
  }
10554
10710
  )
10555
10711
  ]
@@ -10571,7 +10727,7 @@ const defaultProps$U = {
10571
10727
  digits: 0,
10572
10728
  async: false
10573
10729
  };
10574
- const classPrefix$3 = `nut-inputnumber`;
10730
+ const classPrefix$7 = `nut-inputnumber`;
10575
10731
  const InputNumber = (props) => {
10576
10732
  const {
10577
10733
  children,
@@ -10614,8 +10770,8 @@ const InputNumber = (props) => {
10614
10770
  }, []);
10615
10771
  const classes = classNames(
10616
10772
  {
10617
- [`${classPrefix$3}`]: true,
10618
- [`${classPrefix$3}--disabled`]: disabled
10773
+ [`${classPrefix$7}`]: true,
10774
+ [`${classPrefix$7}--disabled`]: disabled
10619
10775
  },
10620
10776
  className
10621
10777
  );
@@ -10756,7 +10912,7 @@ const InputNumber = (props) => {
10756
10912
  onBlur && onBlur(e);
10757
10913
  };
10758
10914
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classes, style: styles, ...restProps, children: [
10759
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-input-minus", children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$b, { className: iconMinusClasses, onClick: reduceNumber }) }),
10915
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-input-minus", children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$c, { className: iconMinusClasses, onClick: reduceNumber }) }),
10760
10916
  /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: formatter ? /* @__PURE__ */ jsxRuntimeExports.jsx(
10761
10917
  "input",
10762
10918
  {
@@ -10898,7 +11054,7 @@ const Menu = (props) => {
10898
11054
  }),
10899
11055
  children: [
10900
11056
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-menu__title-text", children: finallyTitle() }),
10901
- 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 }))
11057
+ 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 }))
10902
11058
  ]
10903
11059
  }
10904
11060
  )
@@ -11092,7 +11248,7 @@ const MenuItem = forwardRef((props, ref) => {
11092
11248
  },
11093
11249
  children: [
11094
11250
  item.value === _value ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: icon || /* @__PURE__ */ jsxRuntimeExports.jsx(
11095
- a$r,
11251
+ a$s,
11096
11252
  {
11097
11253
  color: activeColor,
11098
11254
  size: 10,
@@ -11528,12 +11684,12 @@ const Radio = (props) => {
11528
11684
  return React__default.isValidElement(checkedIcon2) ? React__default.cloneElement(checkedIcon2, {
11529
11685
  ...checkedIcon2.props,
11530
11686
  className: color()
11531
- }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$u, { size: iconSize2, className: color() });
11687
+ }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$v, { size: iconSize2, className: color() });
11532
11688
  }
11533
11689
  return React__default.isValidElement(icon2) ? React__default.cloneElement(icon2, {
11534
11690
  ...icon2.props,
11535
11691
  className: color()
11536
- }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$s, { size: iconSize2, className: color() });
11692
+ }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$t, { size: iconSize2, className: color() });
11537
11693
  };
11538
11694
  const reverseState = textPosition === "left";
11539
11695
  const renderRadioItem = () => {
@@ -11667,9 +11823,9 @@ const Toast = (props) => {
11667
11823
  }
11668
11824
  return {
11669
11825
  success: /* @__PURE__ */ jsxRuntimeExports.jsx(a$4, { color: "#ffffff", width: iconSize, height: iconSize }),
11670
- fail: /* @__PURE__ */ jsxRuntimeExports.jsx(a$k, { color: "#ffffff", width: iconSize, height: iconSize }),
11826
+ fail: /* @__PURE__ */ jsxRuntimeExports.jsx(a$l, { color: "#ffffff", width: iconSize, height: iconSize }),
11671
11827
  warn: /* @__PURE__ */ jsxRuntimeExports.jsx(a$3, { color: "#ffffff", width: iconSize, height: iconSize }),
11672
- loading: /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, { color: "#ffffff", width: iconSize, height: iconSize })
11828
+ loading: /* @__PURE__ */ jsxRuntimeExports.jsx(r$f, { color: "#ffffff", width: iconSize, height: iconSize })
11673
11829
  }[type];
11674
11830
  };
11675
11831
  const classes = classNames({
@@ -12389,7 +12545,7 @@ const SearchBar = (props) => {
12389
12545
  {
12390
12546
  className: `${searchbarBem("clear")} ${rightinIcon ? "pos-right" : ""}`,
12391
12547
  onClick: (e) => clearaVal(e),
12392
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { size: clearSize, color: "#555" })
12548
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$p, { size: clearSize, color: "#555" })
12393
12549
  }
12394
12550
  );
12395
12551
  };
@@ -12851,124 +13007,111 @@ const Switch = (props) => {
12851
13007
  Switch.defaultProps = defaultProps$I;
12852
13008
  Switch.displayName = "NutSwitch";
12853
13009
  const defaultProps$H = {
13010
+ ...ComponentDefaults,
12854
13011
  defaultValue: "",
12855
- textAlign: "left",
12856
- limitshow: false,
12857
- maxlength: "",
12858
- rows: "",
13012
+ showCount: false,
13013
+ maxLength: 140,
12859
13014
  placeholder: "",
12860
- readonly: false,
13015
+ readOnly: false,
12861
13016
  disabled: false,
12862
- autosize: false
13017
+ autoSize: false
12863
13018
  };
12864
13019
  const TextArea = (props) => {
12865
13020
  const { locale } = useConfig$1();
12866
13021
  const {
12867
13022
  className,
13023
+ value,
12868
13024
  defaultValue,
12869
- textAlign,
12870
- limitshow,
12871
- maxlength,
13025
+ showCount,
13026
+ maxLength,
12872
13027
  rows,
12873
13028
  placeholder,
12874
- readonly,
13029
+ readOnly,
12875
13030
  disabled,
12876
- autosize,
13031
+ autoSize,
12877
13032
  style,
12878
13033
  onChange,
12879
13034
  onBlur,
12880
- onFocus
13035
+ onFocus,
13036
+ ...rest
12881
13037
  } = { ...defaultProps$H, ...props };
12882
- const textareaBem = cn("textarea");
12883
- const [inputValue, SetInputValue] = useState("");
12884
- const compositingRef = useRef(false);
12885
- const [, updateState] = React__default.useState({});
12886
- const forceUpdate = React__default.useCallback(() => updateState({}), []);
12887
- useEffect(() => {
12888
- let initValue = defaultValue;
12889
- if (initValue && maxlength && [...initValue].length > Number(maxlength)) {
12890
- initValue = initValue.substring(0, Number(maxlength));
12891
- }
12892
- SetInputValue(initValue);
12893
- }, [defaultValue]);
12894
- const textChange = (event) => {
12895
- if (disabled)
12896
- return;
12897
- if (readonly)
12898
- return;
12899
- const text = event.detail ? event.detail : event.target;
12900
- if (maxlength && [...text.value].length > Number(maxlength) && !compositingRef.current) {
12901
- text.value = text.value.substring(0, Number(maxlength));
13038
+ const classPrefix2 = "nut-textarea";
13039
+ const compositionRef = useRef(false);
13040
+ const format = (value2) => {
13041
+ if (maxLength !== void 0 && value2.length > maxLength) {
13042
+ return value2.substring(0, maxLength);
12902
13043
  }
12903
- if (text.value === inputValue) {
12904
- forceUpdate();
13044
+ return value2;
13045
+ };
13046
+ const [inputValue, setInputValue] = usePropsValue({
13047
+ value,
13048
+ defaultValue,
13049
+ finalValue: format(defaultValue),
13050
+ onChange
13051
+ });
13052
+ const handleChange = (event) => {
13053
+ var _a;
13054
+ const text = (_a = event == null ? void 0 : event.detail) == null ? void 0 : _a.value;
13055
+ if (text) {
13056
+ const value2 = compositionRef.current ? text : format(text);
13057
+ setInputValue(value2);
12905
13058
  } else {
12906
- SetInputValue(text.value);
13059
+ setInputValue("");
12907
13060
  }
12908
- onChange && onChange(text.value, event);
12909
13061
  };
12910
- const textFocus = (event) => {
13062
+ const handleFocus = (event) => {
12911
13063
  if (disabled)
12912
13064
  return;
12913
- if (readonly)
13065
+ if (readOnly)
12914
13066
  return;
12915
13067
  onFocus && onFocus(event);
12916
13068
  };
12917
- const textBlur = (event) => {
13069
+ const handleBlur = (event) => {
12918
13070
  if (disabled)
12919
13071
  return;
12920
- if (readonly)
13072
+ if (readOnly)
12921
13073
  return;
12922
- const text = event.detail ? event.detail : event.target;
12923
- onChange && onChange(text.value, event);
12924
13074
  onBlur && onBlur(event);
12925
13075
  };
12926
- const startComposing = () => {
12927
- compositingRef.current = true;
12928
- };
12929
- const endComposing = () => {
12930
- compositingRef.current = false;
12931
- };
12932
13076
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
12933
13077
  "div",
12934
13078
  {
12935
- className: `${textareaBem()} ${disabled ? textareaBem("disabled") : ""} ${className || ""}`,
13079
+ className: classNames(classPrefix2, className, {
13080
+ [`${classPrefix2}__disabled`]: disabled
13081
+ }),
12936
13082
  children: [
12937
13083
  /* @__PURE__ */ jsxRuntimeExports.jsx(
12938
- "textarea",
13084
+ Textarea,
12939
13085
  {
12940
- className: textareaBem("textarea"),
12941
- style: {
12942
- textAlign,
12943
- resize: `${autosize ? "vertical" : "none"}`,
12944
- ...style
13086
+ nativeProps: {
13087
+ style,
13088
+ readOnly,
13089
+ rows,
13090
+ onCompositionStart: () => {
13091
+ compositionRef.current = true;
13092
+ },
13093
+ onCompositionEnd: () => {
13094
+ compositionRef.current = false;
13095
+ }
12945
13096
  },
12946
- readOnly: disabled || readonly,
13097
+ className: `${classPrefix2}__textarea`,
13098
+ style: Taro.getEnv() === "WEB" ? void 0 : style,
13099
+ disabled: Taro.getEnv() === "WEB" ? disabled : disabled || readOnly,
12947
13100
  value: inputValue,
12948
- onInput: (e) => {
12949
- textChange(e);
12950
- },
12951
- onChange: (e) => {
12952
- textChange(e);
12953
- },
12954
- onBlur: (e) => {
12955
- textBlur(e);
12956
- },
12957
- onFocus: (e) => {
12958
- textFocus(e);
12959
- },
12960
- onCompositionEnd: (e) => endComposing(),
12961
- onCompositionStart: (e) => startComposing(),
12962
- rows,
12963
- maxLength: maxlength < 0 ? 0 : maxlength,
12964
- placeholder: placeholder || locale.placeholder
13101
+ onInput: (e) => handleChange(e),
13102
+ onBlur: (e) => handleBlur(e),
13103
+ onFocus: (e) => handleFocus(e),
13104
+ autoHeight: autoSize,
13105
+ maxlength: maxLength,
13106
+ placeholder: placeholder || locale.placeholder,
13107
+ ...rest
12965
13108
  }
12966
13109
  ),
12967
- limitshow ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: textareaBem("limit"), children: [
12968
- [...inputValue].length,
13110
+ showCount && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix2}__limit`, children: [
13111
+ inputValue.length,
12969
13112
  "/",
12970
- maxlength < 0 ? 0 : maxlength
12971
- ] }) : null
13113
+ maxLength < 0 ? 0 : maxLength
13114
+ ] })
12972
13115
  ]
12973
13116
  }
12974
13117
  );
@@ -13534,7 +13677,7 @@ const InternalUploader = (props, ref) => {
13534
13677
  children: [
13535
13678
  previewType === "picture" && !children && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "nut-uploader__preview-img", children: [
13536
13679
  deletable && /* @__PURE__ */ jsxRuntimeExports.jsx(
13537
- a$k,
13680
+ a$l,
13538
13681
  {
13539
13682
  color: "rgba(0,0,0,0.6)",
13540
13683
  className: "close",
@@ -13542,7 +13685,7 @@ const InternalUploader = (props, ref) => {
13542
13685
  }
13543
13686
  ),
13544
13687
  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: [
13545
- 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" })),
13688
+ 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" })),
13546
13689
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-uploader__preview__progress__msg", children: item.message })
13547
13690
  ] }),
13548
13691
  item.type.includes("image") ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: item.url && /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -13568,7 +13711,7 @@ const InternalUploader = (props, ref) => {
13568
13711
  onClick: () => handleItemClick(item),
13569
13712
  className: "nut-uploader__preview-img__file__name",
13570
13713
  children: [
13571
- /* @__PURE__ */ jsxRuntimeExports.jsx(a$f, { color: "#808080" }),
13714
+ /* @__PURE__ */ jsxRuntimeExports.jsx(a$g, { color: "#808080" }),
13572
13715
  " ",
13573
13716
  item.name
13574
13717
  ]
@@ -13583,14 +13726,14 @@ const InternalUploader = (props, ref) => {
13583
13726
  className: `nut-uploader__preview-img__file__name ${item.status}`,
13584
13727
  onClick: () => handleItemClick(item),
13585
13728
  children: [
13586
- /* @__PURE__ */ jsxRuntimeExports.jsx(a$f, {}),
13729
+ /* @__PURE__ */ jsxRuntimeExports.jsx(a$g, {}),
13587
13730
  " ",
13588
13731
  item.name
13589
13732
  ]
13590
13733
  }
13591
13734
  ),
13592
13735
  deletable && /* @__PURE__ */ jsxRuntimeExports.jsx(
13593
- a$m,
13736
+ a$n,
13594
13737
  {
13595
13738
  color: "#808080",
13596
13739
  className: "nut-uploader__preview-img__file__del",
@@ -14022,26 +14165,30 @@ const defaultStatus = {
14022
14165
  network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
14023
14166
  };
14024
14167
  const defaultProps$B = {
14025
- description: "无内容",
14026
- image: "empty",
14168
+ ...ComponentDefaults,
14169
+ description: "",
14027
14170
  imageSize: "",
14028
- className: ""
14171
+ status: "empty"
14029
14172
  };
14173
+ const classPrefix$6 = `nut-empty`;
14030
14174
  const Empty = (props) => {
14031
14175
  const { locale } = useConfig$1();
14032
14176
  defaultProps$B.description = locale.noData || defaultProps$B.description;
14033
- const { image, imageSize, description, children, className, ...rest } = {
14177
+ const {
14178
+ image,
14179
+ imageSize,
14180
+ description,
14181
+ children,
14182
+ className,
14183
+ status,
14184
+ ...rest
14185
+ } = {
14034
14186
  ...defaultProps$B,
14035
14187
  ...props
14036
14188
  };
14037
14189
  const [imgStyle, setImgStyle] = useState({});
14038
- const b2 = cn("empty");
14039
- let imageNode = image;
14040
- if (typeof image === "string") {
14041
- const isHttpUrl = image.startsWith("https://") || image.startsWith("http://") || image.startsWith("//");
14042
- const imageUrl = isHttpUrl ? image : defaultStatus[image];
14043
- imageNode = /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: "img", src: imageUrl, alt: "empty" });
14044
- }
14190
+ const imageUrl = image || defaultStatus[status];
14191
+ const imageNode = typeof imageUrl === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: "img", src: imageUrl, alt: "empty" }) : imageUrl;
14045
14192
  useEffect(() => {
14046
14193
  setImgStyle(() => {
14047
14194
  if (!imageSize) {
@@ -14059,9 +14206,9 @@ const Empty = (props) => {
14059
14206
  };
14060
14207
  });
14061
14208
  }, [imageSize]);
14062
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${b2()} ${className}`, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
14063
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("image"), style: imgStyle, children: imageNode }),
14064
- typeof description === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("description"), children: description }) : { description },
14209
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$6} ${className}`, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
14210
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$6}__image`, style: imgStyle, children: imageNode }),
14211
+ typeof description === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$6}__description`, children: description }) : description,
14065
14212
  children
14066
14213
  ] }) });
14067
14214
  };
@@ -14617,7 +14764,7 @@ const NoticeBar = (props) => {
14617
14764
  ]
14618
14765
  }
14619
14766
  ) }),
14620
- closeMode || rightIcon ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "right-icon", onClick: onClickIcon, children: rightIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$n, { size: 12, color }) }) : null
14767
+ closeMode || rightIcon ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "right-icon", onClick: onClickIcon, children: rightIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { size: 12, color }) }) : null
14621
14768
  ] }) : null,
14622
14769
  showNoticeBar && scrollList.current.length > 0 && isVertical ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
14623
14770
  "div",
@@ -14665,7 +14812,7 @@ const NoticeBar = (props) => {
14665
14812
  onClick: (e) => {
14666
14813
  handleClickIcon(e);
14667
14814
  },
14668
- children: rightIcon || (closeMode ? /* @__PURE__ */ jsxRuntimeExports.jsx(a$n, { size: 12, color }) : null)
14815
+ children: rightIcon || (closeMode ? /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { size: 12, color }) : null)
14669
14816
  }
14670
14817
  )
14671
14818
  ]
@@ -19701,27 +19848,30 @@ const AvatarContext = createContext({});
19701
19848
  const defaultProps$v = {
19702
19849
  ...ComponentDefaults,
19703
19850
  size: "",
19851
+ shape: "round",
19704
19852
  icon: "",
19705
- bgColor: "#eee",
19853
+ fit: "cover",
19854
+ background: "#eee",
19706
19855
  color: "#666",
19707
- prefixCls: "nut-avatar",
19708
- url: ""
19856
+ src: "",
19857
+ alt: ""
19709
19858
  };
19859
+ const classPrefix$5 = `nut-avatar`;
19710
19860
  const Avatar = (props) => {
19711
19861
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
19712
19862
  const {
19713
19863
  children,
19714
- prefixCls: prefixCls2,
19715
19864
  size,
19716
19865
  shape,
19717
- bgColor,
19866
+ background,
19718
19867
  color,
19719
- url,
19868
+ src,
19720
19869
  icon,
19870
+ fit,
19871
+ alt,
19721
19872
  className,
19722
19873
  style,
19723
- activeAvatar,
19724
- onActiveAvatar,
19874
+ onClick,
19725
19875
  onError,
19726
19876
  ...rest
19727
19877
  } = {
@@ -19733,24 +19883,23 @@ const Avatar = (props) => {
19733
19883
  const [avatarIndex, setAvatarIndex] = useState(1);
19734
19884
  const avatarRef = useRef(null);
19735
19885
  const parent = useContext(AvatarContext);
19736
- const b2 = cn("avatar");
19886
+ const sizeValue = ["large", "normal", "small"];
19737
19887
  const classes = classNames({
19738
- [`nut-avatar-${size || ((_a = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _a.size) || "normal"}`]: true,
19739
- [`nut-avatar-${shape || ((_b = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _b.shape) || "round"}`]: true
19888
+ [`nut-avatar-${((_a = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _a.size) || size || "normal"}`]: true,
19889
+ [`nut-avatar-${((_b = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _b.shape) || shape}`]: true
19740
19890
  });
19741
- const cls = classNames(b2(""), classes, className);
19742
- const sizeValue = ["large", "normal", "small"];
19891
+ const cls = classNames(classPrefix$5, classes, className);
19743
19892
  const styles = {
19744
19893
  width: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
19745
19894
  height: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
19746
- backgroundColor: `${bgColor}`,
19895
+ backgroundColor: `${background}`,
19747
19896
  color: `${color}`,
19748
- 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` : "",
19749
- zIndex: ((_e = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _e.zIndex) === "right" ? `${Math.abs(maxSum - avatarIndex)}` : "",
19897
+ 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` : "",
19898
+ zIndex: ((_e = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _e.level) === "right" ? `${Math.abs(maxSum - avatarIndex)}` : "",
19750
19899
  ...style
19751
19900
  };
19752
19901
  const maxStyles = {
19753
- backgroundColor: `${(_f = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _f.maxBgColor}`,
19902
+ backgroundColor: `${(_f = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _f.maxBackground}`,
19754
19903
  color: `${(_g = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _g.maxColor}`
19755
19904
  };
19756
19905
  useEffect(() => {
@@ -19768,23 +19917,22 @@ const Avatar = (props) => {
19768
19917
  }
19769
19918
  }
19770
19919
  const index = (_b2 = (_a2 = avatarRef == null ? void 0 : avatarRef.current) == null ? void 0 : _a2.dataset) == null ? void 0 : _b2.index;
19771
- const maxCount = (_c2 = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _c2.maxCount;
19920
+ const maxCount = (_c2 = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _c2.max;
19772
19921
  setMaxSum(children2.length);
19773
19922
  setAvatarIndex(index);
19774
19923
  if (index === children2.length && index !== maxCount && children2.length > maxCount) {
19775
19924
  setShowMax(true);
19776
19925
  }
19777
19926
  };
19778
- const errorEvent = (e) => {
19927
+ const errorEvent = () => {
19779
19928
  if (props.onError) {
19780
- props.onError(e);
19929
+ props.onError();
19781
19930
  }
19782
19931
  };
19783
19932
  const clickAvatar = (e) => {
19784
- activeAvatar && activeAvatar(e);
19785
- onActiveAvatar && onActiveAvatar(e);
19933
+ onClick && onClick(e);
19786
19934
  };
19787
- 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(
19935
+ 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(
19788
19936
  "div",
19789
19937
  {
19790
19938
  className: cls,
@@ -19793,15 +19941,25 @@ const Avatar = (props) => {
19793
19941
  onClick: clickAvatar,
19794
19942
  ref: avatarRef,
19795
19943
  children: [
19796
- (!((_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: [
19797
- url && /* @__PURE__ */ jsxRuntimeExports.jsx(Image$2, { className: "avatar-img", src: url, onError: errorEvent }),
19944
+ (!((_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: [
19945
+ src && /* @__PURE__ */ jsxRuntimeExports.jsx(
19946
+ Image$1,
19947
+ {
19948
+ className: "avatar-img",
19949
+ src,
19950
+ style: { objectFit: fit },
19951
+ alt,
19952
+ onError: errorEvent
19953
+ }
19954
+ ),
19798
19955
  React__default.isValidElement(icon) ? React__default.cloneElement(icon, {
19799
19956
  ...icon.props,
19800
19957
  className: `${icon.props.className || ""} icon`
19801
19958
  }) : null,
19802
- children && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text", children })
19959
+ children && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text", children }),
19960
+ !src && !icon && !children && /* @__PURE__ */ jsxRuntimeExports.jsx(a$b, { className: "icon" })
19803
19961
  ] }),
19804
- 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)}` })
19962
+ 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)}` })
19805
19963
  ]
19806
19964
  }
19807
19965
  ) });
@@ -19871,7 +20029,7 @@ const Skeleton = (props) => {
19871
20029
  Avatar,
19872
20030
  {
19873
20031
  className: avatarClass,
19874
- bgColor: "rgb(239, 239, 239)",
20032
+ background: "rgb(239, 239, 239)",
19875
20033
  shape: avatarShape,
19876
20034
  style: getStyle()
19877
20035
  }
@@ -19904,9 +20062,7 @@ function preventDefault(event, isStopPropagation) {
19904
20062
  }
19905
20063
  }
19906
20064
  const defaultProps$t = {
19907
- name: "",
19908
- leftWidth: 0,
19909
- rightWidth: 0
20065
+ name: ""
19910
20066
  };
19911
20067
  const Swipe = forwardRef((props, instanceRef) => {
19912
20068
  const swipeBem = cn("swipe");
@@ -19941,14 +20097,8 @@ const Swipe = forwardRef((props, instanceRef) => {
19941
20097
  transform: `translate3d(${state.offset}px, 0, 0)`,
19942
20098
  transitionDuration: state.dragging ? "0s" : ".6s"
19943
20099
  };
19944
- const leftWidth = useMemo(
19945
- () => props.leftWidth ? props.leftWidth : actionWidth.left,
19946
- [props.leftWidth, actionWidth.left]
19947
- );
19948
- const rightWidth = useMemo(
19949
- () => props.rightWidth ? props.rightWidth : actionWidth.right,
19950
- [props.rightWidth, actionWidth.right]
19951
- );
20100
+ const leftWidth = actionWidth.left;
20101
+ const rightWidth = actionWidth.right;
19952
20102
  const onTouchStart = async (event) => {
19953
20103
  if (leftWrapper.current) {
19954
20104
  const leftRect = await getRectByTaro(leftWrapper.current);
@@ -20100,7 +20250,7 @@ const defaultProps$s = {
20100
20250
  onClick: (event) => {
20101
20251
  }
20102
20252
  };
20103
- const classPrefix$2 = `nut-animate`;
20253
+ const classPrefix$4 = `nut-animate`;
20104
20254
  const Animate = (props) => {
20105
20255
  const { className, type, action, loop: loop2, onClick, children, ...rest } = {
20106
20256
  ...defaultProps$s,
@@ -20109,7 +20259,7 @@ const Animate = (props) => {
20109
20259
  const [clicked, setClicked] = useState(false);
20110
20260
  const classes = classNames({
20111
20261
  "nut-ani-container": true,
20112
- [`${classPrefix$2}-${type}`]: action === "initial" || clicked ? type : false,
20262
+ [`${classPrefix$4}-${type}`]: action === "initial" || clicked ? type : false,
20113
20263
  loop: loop2
20114
20264
  });
20115
20265
  const cls = classNames(classes, className);
@@ -20440,22 +20590,20 @@ const Audio = (props) => {
20440
20590
  Audio.defaultProps = defaultProps$p;
20441
20591
  Audio.displayName = "NutAudio";
20442
20592
  const defaultProps$o = {
20593
+ ...ComponentDefaults,
20443
20594
  maxContent: "",
20444
- maxCount: "",
20445
- maxBgColor: "#eee",
20595
+ max: "",
20596
+ maxBackground: "#eee",
20446
20597
  maxColor: "#666",
20447
- size: "",
20448
- shape: "",
20449
- span: "-8",
20450
- zIndex: "left"
20598
+ gap: "-8",
20599
+ level: "left"
20451
20600
  };
20601
+ const classPrefix$3 = `nut-avatar-group`;
20452
20602
  const AvatarGroup = (props) => {
20453
- useConfig();
20454
20603
  const propAvatarGroup = { ...defaultProps$o, ...props };
20455
20604
  const { className, style, children } = propAvatarGroup;
20456
20605
  const avatarGroupRef = useRef(null);
20457
- const b2 = cn("avatar-group");
20458
- const cls = classNames(b2(""), className);
20606
+ const cls = classNames(classPrefix$3, className);
20459
20607
  const parentAvatar = {
20460
20608
  propAvatarGroup,
20461
20609
  avatarGroupRef
@@ -20473,7 +20621,7 @@ const defaultProps$n = {
20473
20621
  background: "#e5e9f2",
20474
20622
  clockwise: true
20475
20623
  };
20476
- const classPrefix$1 = `nut-circleprogress`;
20624
+ const classPrefix$2 = `nut-circleprogress`;
20477
20625
  const CircleProgress = (props) => {
20478
20626
  const {
20479
20627
  children,
@@ -20492,7 +20640,7 @@ const CircleProgress = (props) => {
20492
20640
  ...props
20493
20641
  };
20494
20642
  const [oldValue, setOldValue] = useState(percent);
20495
- const classes = classNames(className, classPrefix$1);
20643
+ const classes = classNames(className, classPrefix$2);
20496
20644
  const refRandomId = Math.random().toString(36).slice(-8);
20497
20645
  const animateIdRef = useRef(0);
20498
20646
  const styles = {
@@ -20973,6 +21121,7 @@ const CountDown = React__default.forwardRef(InternalCountDown);
20973
21121
  CountDown.defaultProps = defaultProps$k;
20974
21122
  CountDown.displayName = "NutCountDown";
20975
21123
  const defaultProps$j = {
21124
+ ...ComponentDefaults,
20976
21125
  content: "",
20977
21126
  direction: "end",
20978
21127
  rows: 1,
@@ -20981,20 +21130,22 @@ const defaultProps$j = {
20981
21130
  symbol: "...",
20982
21131
  lineHeight: "20"
20983
21132
  };
21133
+ const classPrefix$1 = `nut-ellipsis`;
20984
21134
  const Ellipsis = (props) => {
20985
21135
  var _a, _b, _c, _d;
20986
- useConfig$1();
20987
21136
  const {
20988
21137
  children,
20989
21138
  content,
20990
21139
  direction,
20991
21140
  rows,
21141
+ className,
20992
21142
  expandText,
20993
21143
  collapseText,
20994
21144
  symbol,
20995
21145
  lineHeight,
20996
21146
  onClick,
20997
- onChange
21147
+ onChange,
21148
+ ...rest
20998
21149
  } = { ...defaultProps$j, ...props };
20999
21150
  let maxHeight = 0;
21000
21151
  const [exceeded, setExceeded] = useState(false);
@@ -21017,6 +21168,7 @@ const Ellipsis = (props) => {
21017
21168
  const digitReg = /^[0-9]+$/;
21018
21169
  const letterUpperReg = /^[A-Z]+$/;
21019
21170
  const letterLowerReg = /^[a-z]+$/;
21171
+ const classes = classNames(classPrefix$1, className);
21020
21172
  const init = () => {
21021
21173
  setExceeded(false);
21022
21174
  setExpanded(false);
@@ -21193,10 +21345,11 @@ const Ellipsis = (props) => {
21193
21345
  /* @__PURE__ */ jsxRuntimeExports.jsx(
21194
21346
  "div",
21195
21347
  {
21196
- className: "nut-ellipsis",
21348
+ className: classes,
21197
21349
  onClick: handleClick,
21198
21350
  ref: root2,
21199
21351
  id: `root${refRandomId}`,
21352
+ ...rest,
21200
21353
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
21201
21354
  !exceeded ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-ellipsis-wordbreak", children: content }) : null,
21202
21355
  exceeded && !expanded ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "nut-ellipsis-wordbreak", children: [
@@ -22533,13 +22686,11 @@ Steps.defaultProps = defaultProps$a;
22533
22686
  Steps.displayName = "NutSteps";
22534
22687
  const defaultProps$9 = {
22535
22688
  ...ComponentDefaults,
22536
- className: "",
22537
- style: {},
22538
22689
  columns: [],
22539
22690
  data: [],
22540
22691
  bordered: true,
22541
22692
  striped: false,
22542
- noData: "无数据",
22693
+ noData: "",
22543
22694
  sorterIcon: null,
22544
22695
  showHeader: true
22545
22696
  };
@@ -22557,8 +22708,8 @@ const Table = (props) => {
22557
22708
  striped,
22558
22709
  noData,
22559
22710
  sorterIcon,
22560
- onSorter,
22561
22711
  showHeader,
22712
+ onSort,
22562
22713
  ...rest
22563
22714
  } = {
22564
22715
  ...defaultProps$9,
@@ -22570,12 +22721,13 @@ const Table = (props) => {
22570
22721
  setCurData(data);
22571
22722
  }
22572
22723
  }, [data]);
22573
- const b2 = cn("table");
22574
- const classes = classNames({});
22575
- const cls = classNames(b2(), classes, className);
22724
+ const classPrefix2 = "nut-table";
22725
+ const headerClassPrefix = `${classPrefix2}__main__head__tr`;
22726
+ const bodyClassPrefix = `${classPrefix2}__main__body__tr`;
22727
+ const cls = classNames(classPrefix2, className);
22576
22728
  const handleSorterClick = (item) => {
22577
22729
  if (item.sorter) {
22578
- onSorter && onSorter(item, curData);
22730
+ onSort && onSort(item, curData);
22579
22731
  if (typeof item.sorter === "function") {
22580
22732
  setCurData(curData.sort(item.sorter));
22581
22733
  } else {
@@ -22585,8 +22737,8 @@ const Table = (props) => {
22585
22737
  };
22586
22738
  const cellClasses = (item) => {
22587
22739
  return {
22588
- "nut-table__main__head__tr--border": props.bordered,
22589
- [`nut-table__main__head__tr--align${item.align ? item.align : ""}`]: true
22740
+ [`${headerClassPrefix}--border`]: props.bordered,
22741
+ [`${headerClassPrefix}--align${item.align ? item.align : ""}`]: true
22590
22742
  };
22591
22743
  };
22592
22744
  const getColumnItem = (value) => {
@@ -22597,15 +22749,12 @@ const Table = (props) => {
22597
22749
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
22598
22750
  "span",
22599
22751
  {
22600
- className: classNames(
22601
- "nut-table__main__head__tr__th",
22602
- cellClasses(item)
22603
- ),
22752
+ className: classNames(`${headerClassPrefix}__th`, cellClasses(item)),
22604
22753
  onClick: () => handleSorterClick(item),
22605
22754
  children: [
22606
22755
  item.title,
22607
22756
  " ",
22608
- item.sorter && (sorterIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$l, { size: "12px" }))
22757
+ item.sorter && (sorterIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$m, { size: "12px" }))
22609
22758
  ]
22610
22759
  },
22611
22760
  item.key
@@ -22623,7 +22772,7 @@ const Table = (props) => {
22623
22772
  "span",
22624
22773
  {
22625
22774
  className: classNames(
22626
- "nut-table__main__body__tr__td",
22775
+ `${bodyClassPrefix}__td`,
22627
22776
  cellClasses(getColumnItem(value))
22628
22777
  ),
22629
22778
  children: typeof item[value] === "function" || typeof render === "function" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: render ? render(item) : item[value](item) }) : item[value]
@@ -22634,24 +22783,23 @@ const Table = (props) => {
22634
22783
  };
22635
22784
  const renderBoyTrs = () => {
22636
22785
  return curData.map((item, index) => {
22637
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-table__main__body__tr", children: renderBodyTds(item) }, index);
22786
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: bodyClassPrefix, children: renderBodyTds(item) }, index);
22638
22787
  });
22639
22788
  };
22640
22789
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cls, style, ...rest, children: [
22641
22790
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
22642
22791
  "div",
22643
22792
  {
22644
- className: classNames("nut-table__main", {
22645
- "nut-table__main--striped": striped
22793
+ className: classNames(`${classPrefix2}__main`, {
22794
+ [`${classPrefix2}__main--striped`]: striped
22646
22795
  }),
22647
22796
  children: [
22648
- showHeader && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-table__main__head", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-table__main__head__tr", children: renderHeadCells() }) }),
22649
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-table__main__body", children: renderBoyTrs() })
22797
+ showHeader && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__main__head`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: headerClassPrefix, children: renderHeadCells() }) }),
22798
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__main__body`, children: renderBoyTrs() })
22650
22799
  ]
22651
22800
  }
22652
22801
  ),
22653
- summary && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-table__summary", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "nut-table__summary__text", children: summary }) }),
22654
- 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 }) }) })
22802
+ (summary || curData.length === 0) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__summary`, children: summary || noData })
22655
22803
  ] });
22656
22804
  };
22657
22805
  Table.defaultProps = defaultProps$9;
@@ -22760,7 +22908,7 @@ const Tag = (props) => {
22760
22908
  children: closeIcon
22761
22909
  }
22762
22910
  ) : /* @__PURE__ */ jsxRuntimeExports.jsx(
22763
- a$n,
22911
+ a$o,
22764
22912
  {
22765
22913
  size: 12,
22766
22914
  onClick: (e) => {