@nutui/nutui-react-taro 2.3.9 → 2.3.11-patch.0

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 (398) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/esm/ActionSheet/style/style.css +1 -1
  3. package/dist/esm/ActionSheet.js +1 -13
  4. package/dist/esm/Address/style/style.css +1 -1
  5. package/dist/esm/Address.js +1 -21
  6. package/dist/esm/Animate/style/style.css +1 -1
  7. package/dist/esm/Animate.js +1 -4
  8. package/dist/esm/AnimatingNumbers.js +1 -1
  9. package/dist/esm/Audio/style/style.css +1 -1
  10. package/dist/esm/Audio.js +1 -15
  11. package/dist/esm/Avatar.js +1 -10
  12. package/dist/esm/AvatarCropper.js +1 -10
  13. package/dist/esm/AvatarGroup.js +1 -4
  14. package/dist/esm/BackTop.js +1 -6
  15. package/dist/esm/Badge/style/style.css +1 -1
  16. package/dist/esm/Badge.js +1 -4
  17. package/dist/esm/Barrage/style/style.css +1 -1
  18. package/dist/esm/Barrage.js +1 -5
  19. package/dist/esm/Button.js +1 -6
  20. package/dist/esm/Calendar/style/style.css +1 -1
  21. package/dist/esm/Calendar.js +1 -20
  22. package/dist/esm/CalendarCard.js +1 -8
  23. package/dist/esm/CalendarItem.js +1 -12
  24. package/dist/esm/Card/style/style.css +1 -1
  25. package/dist/esm/Card.js +1 -7
  26. package/dist/esm/Cascader/style/style.css +1 -1
  27. package/dist/esm/Cascader.js +1 -18
  28. package/dist/esm/Cell.js +1 -5
  29. package/dist/esm/CellGroup.js +1 -4
  30. package/dist/esm/Checkbox/style/style.css +1 -1
  31. package/dist/esm/Checkbox.js +1 -7
  32. package/dist/esm/CheckboxGroup/style/style.css +1 -1
  33. package/dist/esm/CheckboxGroup.js +1 -7
  34. package/dist/esm/CircleProgress.js +1 -6
  35. package/dist/esm/Col/style/style.css +1 -1
  36. package/dist/esm/Col.js +1 -5
  37. package/dist/esm/Collapse/style/style.css +1 -1
  38. package/dist/esm/Collapse.js +1 -8
  39. package/dist/esm/CollapseItem/style/style.css +1 -1
  40. package/dist/esm/CollapseItem.js +1 -5
  41. package/dist/esm/ConfigProvider.js +2 -5
  42. package/dist/esm/CountDown.js +1 -7
  43. package/dist/esm/DatePicker/style/style.css +1 -1
  44. package/dist/esm/DatePicker.js +1 -21
  45. package/dist/esm/Dialog/style/style.css +1 -1
  46. package/dist/esm/Dialog.js +1 -16
  47. package/dist/esm/Divider/style/style.css +1 -1
  48. package/dist/esm/Divider.js +1 -4
  49. package/dist/esm/Drag.js +1 -4
  50. package/dist/esm/Elevator.js +1 -6
  51. package/dist/esm/Ellipsis.js +1 -7
  52. package/dist/esm/Empty.js +1 -9
  53. package/dist/esm/FixedNav.js +1 -13
  54. package/dist/esm/Form/style/style.css +1 -1
  55. package/dist/esm/Form.js +3 -4
  56. package/dist/esm/FormItem/style/style.css +1 -1
  57. package/dist/esm/FormItem.js +1 -6
  58. package/dist/esm/Grid/style/style.css +1 -1
  59. package/dist/esm/Grid.js +1 -7
  60. package/dist/esm/GridItem/style/style.css +1 -1
  61. package/dist/esm/GridItem.js +1 -6
  62. package/dist/esm/Image.js +1 -7
  63. package/dist/esm/ImagePreview/style/style.css +1 -1
  64. package/dist/esm/ImagePreview.js +1 -20
  65. package/dist/esm/Indicator/style/style.css +1 -1
  66. package/dist/esm/Indicator.js +1 -3
  67. package/dist/esm/InfiniteLoading.js +1 -8
  68. package/dist/esm/Input.js +1 -11
  69. package/dist/esm/InputNumber.js +1 -7
  70. package/dist/esm/Layout.js +1 -2
  71. package/dist/esm/Loading.js +1 -5
  72. package/dist/esm/Menu/style/style.css +1 -1
  73. package/dist/esm/Menu.js +1 -15
  74. package/dist/esm/MenuItem/style/style.css +1 -1
  75. package/dist/esm/MenuItem.js +1 -14
  76. package/dist/esm/NavBar/style/style.css +1 -1
  77. package/dist/esm/NavBar.js +1 -7
  78. package/dist/esm/NoticeBar/style/style.css +1 -1
  79. package/dist/esm/NoticeBar.js +1 -7
  80. package/dist/esm/Notify.js +1 -9
  81. package/dist/esm/NumberKeyboard/style/style.css +1 -1
  82. package/dist/esm/NumberKeyboard.js +1 -15
  83. package/dist/esm/Overlay.js +1 -9
  84. package/dist/esm/Pagination.js +1 -8
  85. package/dist/esm/Picker/style/style.css +1 -1
  86. package/dist/esm/Picker.js +1 -19
  87. package/dist/esm/Popover/style/style.css +1 -1
  88. package/dist/esm/Popover.js +1 -14
  89. package/dist/esm/Popup/style/style.css +1 -1
  90. package/dist/esm/Popup.js +1 -12
  91. package/dist/esm/Price/style/style.css +1 -1
  92. package/dist/esm/Price.js +1 -3
  93. package/dist/esm/Progress.js +1 -4
  94. package/dist/esm/PullToRefresh.js +1 -10
  95. package/dist/esm/Radio/style/style.css +1 -1
  96. package/dist/esm/Radio.js +1 -7
  97. package/dist/esm/RadioGroup/style/style.css +1 -1
  98. package/dist/esm/RadioGroup.js +1 -7
  99. package/dist/esm/Range/style/style.css +1 -1
  100. package/dist/esm/Range.js +1 -10
  101. package/dist/esm/Rate.js +1 -11
  102. package/dist/esm/Row.js +1 -5
  103. package/dist/esm/SafeArea.js +1 -3
  104. package/dist/esm/SearchBar/style/style.css +1 -1
  105. package/dist/esm/SearchBar.js +1 -7
  106. package/dist/esm/ShortPassword/style/style.css +1 -1
  107. package/dist/esm/ShortPassword.js +1 -17
  108. package/dist/esm/SideNavBar/style/style.css +1 -1
  109. package/dist/esm/SideNavBar.js +1 -14
  110. package/dist/esm/SideNavBarItem.js +1 -2
  111. package/dist/esm/Signature.js +1 -4
  112. package/dist/esm/Skeleton/style/style.css +1 -1
  113. package/dist/esm/Skeleton.js +1 -11
  114. package/dist/esm/Space.js +1 -3
  115. package/dist/esm/Step/style/style.css +1 -1
  116. package/dist/esm/Step.js +1 -6
  117. package/dist/esm/Steps/style/style.css +1 -1
  118. package/dist/esm/Steps.js +1 -5
  119. package/dist/esm/Sticky.js +1 -7
  120. package/dist/esm/SubSideNavBar.js +1 -3
  121. package/dist/esm/Swipe/style/style.css +1 -1
  122. package/dist/esm/Swipe.js +1 -8
  123. package/dist/esm/Swiper/style/style.css +1 -1
  124. package/dist/esm/Swiper.js +3 -3
  125. package/dist/esm/SwiperItem.js +1 -2
  126. package/dist/esm/Switch/style/style.css +1 -1
  127. package/dist/esm/Switch.js +1 -5
  128. package/dist/esm/TabPane.js +1 -3
  129. package/dist/esm/Tabbar/style/style.css +1 -1
  130. package/dist/esm/Tabbar.js +1 -8
  131. package/dist/esm/TabbarItem/style/style.css +1 -1
  132. package/dist/esm/TabbarItem.js +1 -5
  133. package/dist/esm/Table/style/style.css +1 -1
  134. package/dist/esm/Table.js +1 -9
  135. package/dist/esm/Tabs/style/style.css +1 -1
  136. package/dist/esm/Tabs.js +1 -11
  137. package/dist/esm/Tag.js +1 -5
  138. package/dist/esm/TextArea/style/style.css +1 -1
  139. package/dist/esm/TextArea.js +1 -10
  140. package/dist/esm/TimeDetail.js +1 -4
  141. package/dist/esm/TimeSelect/style/style.css +1 -1
  142. package/dist/esm/TimeSelect.js +1 -16
  143. package/dist/esm/Toast.js +1 -15
  144. package/dist/esm/Tour/style/style.css +1 -1
  145. package/dist/esm/Tour.js +1 -16
  146. package/dist/esm/TrendArrow.js +1 -4
  147. package/dist/esm/Uploader.js +1 -14
  148. package/dist/esm/Video.js +1 -4
  149. package/dist/esm/VirtualList/style/style.css +1 -1
  150. package/dist/esm/VirtualList.js +1 -6
  151. package/dist/esm/WaterMark.js +1 -7
  152. package/dist/esm/{actionsheet.taro-6NiOrNyd.js → actionsheet.taro-EwM5KF1i.js} +3 -3
  153. package/dist/esm/{address.taro-B54ZOtmo.js → address.taro-BL-QeHyn.js} +5 -5
  154. package/dist/esm/{animate.taro-m67VyUHP.js → animate.taro-50C7ngw9.js} +1 -1
  155. package/dist/esm/{audio.taro-dJgj5qIu.js → audio.taro-DWSPma8f.js} +4 -4
  156. package/dist/esm/{avatar.taro-7ltbzIdY.js → avatar.taro-Bjfoms0J.js} +3 -3
  157. package/dist/esm/{avatarcropper.taro-GIZxzMJ_.js → avatarcropper.taro-BRPMDUrl.js} +4 -4
  158. package/dist/esm/{avatargroup.taro-h6dpv6UX.js → avatargroup.taro-CXnMGdp1.js} +1 -1
  159. package/dist/esm/{backtop.taro-Y3vOJiXq.js → backtop.taro-Ux0Nrvkj.js} +2 -2
  160. package/dist/esm/{badge.taro-993L861f.js → badge.taro-B4a7dAtf.js} +1 -1
  161. package/dist/esm/barrage.taro-DW7wFS3Q.js +118 -0
  162. package/dist/esm/{button.taro-3IIFy1M2.js → button.taro-COS5LtYd.js} +1 -1
  163. package/dist/esm/{calendar.taro-iNNHje7V.js → calendar.taro-CruXd4DL.js} +5 -5
  164. package/dist/esm/{calendarcard.taro-9s7naGmU.js → calendarcard.taro-CqLW3m5r.js} +3 -3
  165. package/dist/esm/{calendaritem.taro-o6Z8OOGY.js → calendaritem.taro-DxCnbpt9.js} +5 -5
  166. package/dist/esm/{card.taro-p4PTy-IU.js → card.taro-CaR3kJw9.js} +3 -3
  167. package/dist/esm/{cascader.taro-BxyK5ybo.js → cascader.taro-DxedRnNS.js} +6 -7
  168. package/dist/esm/{cell.taro-jD6MoFTj.js → cell.taro-BlmoMAPC.js} +2 -2
  169. package/dist/esm/{cellgroup.taro-08A3XAze.js → cellgroup.taro-DYkCnAYN.js} +1 -1
  170. package/dist/esm/{checkbox.taro-xMxWdpyI.js → checkbox.taro-B2rk4RIe.js} +2 -2
  171. package/dist/esm/{circleprogress.taro-myZgamBw.js → circleprogress.taro-Ce69a8ZO.js} +3 -3
  172. package/dist/esm/{col.taro-5FMpttLE.js → col.taro-Czx3Daw2.js} +2 -2
  173. package/dist/esm/{collapse.taro-sZibDygv.js → collapse.taro-kDtcoxSd.js} +3 -3
  174. package/dist/esm/{collapseitem.taro-AaQ_msgd.js → collapseitem.taro-BGPS4t_l.js} +1 -1
  175. package/dist/esm/{configprovider.taro-q5J2gQbi.js → configprovider.taro-BXergk04.js} +1 -1
  176. package/dist/esm/{countdown.taro-XZlfWBrA.js → countdown.taro-CkIt0qI3.js} +3 -3
  177. package/dist/esm/{datepicker.taro-DrXkqJkN.js → datepicker.taro-GAD7C5yn.js} +5 -5
  178. package/dist/esm/{dialog.taro-dmQGDu3o.js → dialog.taro-UjZY2h35.js} +4 -4
  179. package/dist/esm/{divider.taro-H5fKry4P.js → divider.taro-C4sK6QMP.js} +1 -1
  180. package/dist/esm/{drag.taro-BwcleRuB.js → drag.taro-ByrsVbeB.js} +1 -1
  181. package/dist/esm/{elevator.taro-2nbUM3vH.js → elevator.taro-BxW3Xte-.js} +1 -1
  182. package/dist/esm/{ellipsis.taro-VApVqS_j.js → ellipsis.taro-CKXiIrwO.js} +2 -2
  183. package/dist/esm/{empty.taro-gwvOr1xf.js → empty.taro-BCBOBl64.js} +3 -3
  184. package/dist/esm/{fixednav.taro-QVBXysDj.js → fixednav.taro-Cdn0eyJ8.js} +3 -3
  185. package/dist/esm/{formitem.taro-atY4A0pS.js → formitem.taro-yAquq6MF.js} +44 -15
  186. package/dist/esm/{grid.taro-3X-_AhXw.js → grid.taro-BqwDc6zi.js} +2 -2
  187. package/dist/esm/{griditem.taro-TJDJVeQy.js → griditem.taro-BqS5eUJd.js} +2 -2
  188. package/dist/esm/{image.taro-FfeikBlO.js → image.taro-W45-Ju0_.js} +1 -1
  189. package/dist/esm/{imagepreview.taro--fVrJUOE.js → imagepreview.taro-CLgk3WWD.js} +5 -5
  190. package/dist/esm/{infiniteloading.taro-BO0_y46K.js → infiniteloading.taro-7Q9OFjQJ.js} +2 -2
  191. package/dist/esm/{input.taro-YoPsV-op.js → input.taro-CfP5WI8f.js} +7 -4
  192. package/dist/esm/inputnumber.taro-BV3Ecr1e.js +169 -0
  193. package/dist/esm/{loading.taro-aHN6xLIT.js → loading.taro-BEIQQqUL.js} +1 -1
  194. package/dist/esm/{menu.taro-ODwHYGFM.js → menu.taro-DqBJzQBE.js} +2 -2
  195. package/dist/esm/{menuitem.taro-9nyTDLpt.js → menuitem.taro-KGs5VqRI.js} +4 -4
  196. package/dist/esm/{navbar.taro-AuKPDCaW.js → navbar.taro-Cv0XsdT0.js} +2 -2
  197. package/dist/esm/{noticebar.taro-bHnEzTvL.js → noticebar.taro-BrVbtxH_.js} +2 -2
  198. package/dist/esm/{notify.taro-mA9KS8qh.js → notify.taro-DblYP9in.js} +2 -2
  199. package/dist/esm/{numberkeyboard.taro-bF6VCXry.js → numberkeyboard.taro-DHpKwvHG.js} +3 -3
  200. package/dist/esm/nutui-react.es.js +93 -118
  201. package/dist/esm/{overlay.taro-HsGeVyPh.js → overlay.taro-ByBhOQNL.js} +3 -3
  202. package/dist/esm/{pagination.taro-C4_Ey5KC.js → pagination.taro-BEuRb-o7.js} +3 -3
  203. package/dist/esm/{picker.taro-csU3SZPF.js → picker.taro-kFY-CGKh.js} +8 -8
  204. package/dist/esm/{popover.taro-qldQwLPC.js → popover.taro-BZLerpsZ.js} +3 -3
  205. package/dist/esm/{popup.taro-ObEUml4r.js → popup.taro-44018H4d.js} +2 -2
  206. package/dist/esm/{price.taro-Z1zR8YWV.js → price.taro-_NRkxuMH.js} +1 -1
  207. package/dist/esm/{progress.taro-pStvlrbA.js → progress.taro-CVaqKXtL.js} +1 -1
  208. package/dist/esm/{pulltorefresh.taro-2jER8Mat.js → pulltorefresh.taro-uDgX9gWA.js} +3 -3
  209. package/dist/esm/{radio.taro-EKJXMjnX.js → radio.taro-C70KYJbH.js} +2 -2
  210. package/dist/esm/{range.taro-mDYY3SXA.js → range.taro-CIkFRE-4.js} +4 -4
  211. package/dist/esm/{rate.taro-_5Mjd_EO.js → rate.taro-BAWEa8tE.js} +4 -4
  212. package/dist/esm/{row.taro-IxNlKKQM.js → row.taro-BrJsteWh.js} +2 -2
  213. package/dist/esm/{searchbar.taro-hVzdT6nI.js → searchbar.taro-Dfwiv4oP.js} +30 -24
  214. package/dist/esm/{shortpassword.taro-bZCwIpEn.js → shortpassword.taro-C3QLh5Lg.js} +23 -10
  215. package/dist/esm/{sidenavbar.taro-8qoGZg5n.js → sidenavbar.taro-DQY5m1Bu.js} +3 -3
  216. package/dist/esm/{signature.taro-y3qxnKMv.js → signature.taro-BWfscsm1.js} +1 -1
  217. package/dist/esm/{skeleton.taro-Pg7WtP0e.js → skeleton.taro-DNPlesx9.js} +4 -4
  218. package/dist/esm/{step.taro-_DEZqFGb.js → step.taro-CIwl4EYN.js} +2 -2
  219. package/dist/esm/{steps.taro-PH0qWPla.js → steps.taro-IN9BqTug.js} +2 -2
  220. package/dist/esm/{sticky.taro-MmKUU2Wv.js → sticky.taro-DK45VevL.js} +4 -4
  221. package/dist/esm/{subsidenavbar.taro-Zy52MDDG.js → subsidenavbar.taro-C315xYFY.js} +1 -1
  222. package/dist/esm/{swipe.taro-p2ONOq1o.js → swipe.taro-ACO0JU5m.js} +3 -3
  223. package/dist/esm/{switch.taro-L0BAbMeu.js → switch.taro-bC4bQM5Q.js} +2 -2
  224. package/dist/esm/{tabbar.taro-QE0rjSKE.js → tabbar.taro-DhhFGx1g.js} +3 -3
  225. package/dist/esm/{tabbaritem.taro-t9C07OYX.js → tabbaritem.taro-Dh4Ah1BN.js} +2 -2
  226. package/dist/esm/{table.taro-0zRh2hq6.js → table.taro-q5Hyb-LU.js} +3 -3
  227. package/dist/esm/{tabs.taro-w8ra49Qb.js → tabs.taro-CwhQTV-u.js} +6 -6
  228. package/dist/esm/{tag.taro-5KC_wObY.js → tag.taro-CkWLhERR.js} +1 -1
  229. package/dist/esm/{textarea.taro-9zQLTCwU.js → textarea.taro-DHKSJq_a.js} +3 -3
  230. package/dist/esm/{timedetail.taro-TF9Wcblh.js → timedetail.taro-B3s7HEEX.js} +1 -1
  231. package/dist/esm/{timeselect.taro-j8LgSCe5.js → timeselect.taro-uhIUQE1A.js} +4 -4
  232. package/dist/esm/{toast.taro-xnEQSCDJ.js → toast.taro-Hb0vdac6.js} +4 -4
  233. package/dist/esm/{tour.taro-CGEjzzN_.js → tour.taro-BXMR1Ftl.js} +2 -2
  234. package/dist/esm/{trendarrow.taro-hsM6-XsQ.js → trendarrow.taro-B5XMr2ZK.js} +1 -1
  235. package/dist/esm/types/src/packages/formitem/formitem.d.ts +6 -2
  236. package/dist/esm/types/src/packages/formitem/formitem.taro.d.ts +6 -2
  237. package/dist/esm/types/src/packages/inputnumber/inputnumber.d.ts +15 -15
  238. package/dist/esm/types/src/packages/inputnumber/inputnumber.taro.d.ts +15 -17
  239. package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +11 -19
  240. package/dist/esm/types/src/packages/shortpassword/shortpassword.d.ts +3 -2
  241. package/dist/esm/types/src/packages/shortpassword/shortpassword.taro.d.ts +3 -2
  242. package/dist/esm/types/src/packages/shortpassword/types.d.ts +4 -0
  243. package/dist/esm/{uploader.taro-bRF02TR9.js → uploader.taro-CH1KgoFE.js} +6 -6
  244. package/dist/esm/{use-custom-event-XvsODK8c.js → use-custom-event-BFZJeHQI.js} +2 -2
  245. package/dist/esm/{use-props-value-vKr0R0AX.js → use-props-value-DvrH7S--.js} +1 -1
  246. package/dist/esm/{virtuallist.taro-AeTVtFFa.js → virtuallist.taro-B1TrMg9X.js} +1 -1
  247. package/dist/esm/{watermark.taro-nvSmcwu-.js → watermark.taro-CzjMPcgm.js} +2 -2
  248. package/dist/locales/base.js +1 -1
  249. package/dist/locales/en-US.js +1 -1
  250. package/dist/locales/id-ID.js +1 -1
  251. package/dist/locales/tr-TR.js +1 -1
  252. package/dist/locales/zh-CN.js +1 -1
  253. package/dist/locales/zh-TW.js +1 -1
  254. package/dist/locales/zh-UG.js +1 -1
  255. package/dist/nutui.react.es.js +523 -478
  256. package/dist/nutui.react.umd.js +523 -478
  257. package/dist/packages/animate/animate.scss +0 -27
  258. package/dist/packages/audio/audio.scss +0 -5
  259. package/dist/packages/avatarcropper/avatarcropper.scss +0 -2
  260. package/dist/packages/badge/badge.scss +7 -0
  261. package/dist/packages/barrage/barrage.scss +23 -4
  262. package/dist/packages/button/button.scss +0 -1
  263. package/dist/packages/calendar/calendar.scss +4 -4
  264. package/dist/packages/calendarcard/calendarcard.scss +0 -1
  265. package/dist/packages/cascader/cascader.scss +0 -1
  266. package/dist/packages/checkbox/checkbox.scss +0 -2
  267. package/dist/packages/checkboxgroup/checkboxgroup.scss +1 -3
  268. package/dist/packages/col/col.scss +2 -2
  269. package/dist/packages/collapseitem/collapseitem.scss +2 -3
  270. package/dist/packages/dialog/dialog.scss +4 -0
  271. package/dist/packages/divider/divider.scss +1 -1
  272. package/dist/packages/fixednav/fixednav.scss +0 -2
  273. package/dist/packages/form/form.scss +24 -26
  274. package/dist/packages/formitem/formitem.scss +0 -1
  275. package/dist/packages/grid/grid.scss +1 -1
  276. package/dist/packages/griditem/griditem.scss +28 -26
  277. package/dist/packages/imagepreview/imagepreview.scss +0 -1
  278. package/dist/packages/indicator/indicator.scss +2 -3
  279. package/dist/packages/menu/menu.scss +0 -7
  280. package/dist/packages/menuitem/menuitem.scss +14 -10
  281. package/dist/packages/navbar/navbar.scss +3 -5
  282. package/dist/packages/noticebar/noticebar.scss +20 -0
  283. package/dist/packages/numberkeyboard/numberkeyboard.scss +25 -18
  284. package/dist/packages/pagination/pagination.scss +0 -2
  285. package/dist/packages/picker/picker.scss +9 -0
  286. package/dist/packages/popover/popover.scss +0 -4
  287. package/dist/packages/popup/popup.scss +4 -19
  288. package/dist/packages/price/price.scss +1 -0
  289. package/dist/packages/radio/radio.scss +0 -1
  290. package/dist/packages/radiogroup/radiogroup.scss +10 -1
  291. package/dist/packages/range/range.scss +127 -127
  292. package/dist/packages/rate/rate.scss +0 -1
  293. package/dist/packages/searchbar/searchbar.scss +5 -2
  294. package/dist/packages/shortpassword/shortpassword.scss +4 -0
  295. package/dist/packages/skeleton/skeleton.scss +13 -3
  296. package/dist/packages/space/space.scss +0 -1
  297. package/dist/packages/step/step.scss +21 -25
  298. package/dist/packages/swipe/swipe.scss +0 -15
  299. package/dist/packages/swiper/swiper.scss +0 -1
  300. package/dist/packages/switch/switch.scss +11 -0
  301. package/dist/packages/table/table.scss +4 -5
  302. package/dist/packages/tabs/tabs.scss +16 -18
  303. package/dist/packages/tag/tag.scss +0 -1
  304. package/dist/packages/textarea/textarea.scss +1 -6
  305. package/dist/packages/timeselect/timeselect.scss +1 -6
  306. package/dist/packages/tour/tour.scss +1 -5
  307. package/dist/packages/trendarrow/trendarrow.scss +0 -1
  308. package/dist/packages/uploader/uploader.scss +0 -1
  309. package/dist/packages/virtuallist/virtuallist.scss +12 -12
  310. package/dist/style.css +1 -1
  311. package/dist/style.mjs +1 -1
  312. package/dist/styles/variables.scss +11 -7
  313. package/dist/types/index.d.ts +98 -98
  314. package/dist/types/packages/actionsheet/actionsheet.d.ts +1 -1
  315. package/dist/types/packages/actionsheet/actionsheet.taro.d.ts +1 -1
  316. package/dist/types/packages/address/address.d.ts +1 -1
  317. package/dist/types/packages/address/address.taro.d.ts +1 -1
  318. package/dist/types/packages/address/customRender.d.ts +1 -1
  319. package/dist/types/packages/address/customRender.taro.d.ts +1 -1
  320. package/dist/types/packages/avatar/avatar.d.ts +1 -1
  321. package/dist/types/packages/avatar/avatar.taro.d.ts +1 -1
  322. package/dist/types/packages/calendaritem/calendaritem.d.ts +1 -1
  323. package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -1
  324. package/dist/types/packages/cascader/cascader.d.ts +1 -1
  325. package/dist/types/packages/cascader/cascader.taro.d.ts +1 -1
  326. package/dist/types/packages/cell/cell.d.ts +1 -1
  327. package/dist/types/packages/cell/cell.taro.d.ts +1 -1
  328. package/dist/types/packages/checkbox/checkbox.d.ts +2 -2
  329. package/dist/types/packages/checkbox/checkbox.taro.d.ts +2 -2
  330. package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +2 -2
  331. package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
  332. package/dist/types/packages/datepicker/datepicker.d.ts +1 -1
  333. package/dist/types/packages/datepicker/datepicker.taro.d.ts +1 -1
  334. package/dist/types/packages/dialog/dialogwrap.d.ts +1 -1
  335. package/dist/types/packages/empty/empty.d.ts +1 -1
  336. package/dist/types/packages/fixednav/fixednav.d.ts +1 -1
  337. package/dist/types/packages/fixednav/fixednav.taro.d.ts +1 -1
  338. package/dist/types/packages/form/form.d.ts +1 -1
  339. package/dist/types/packages/form/form.taro.d.ts +1 -1
  340. package/dist/types/packages/form/index.d.ts +1 -1
  341. package/dist/types/packages/form/index.taro.d.ts +1 -1
  342. package/dist/types/packages/formitem/formitem.d.ts +6 -2
  343. package/dist/types/packages/formitem/formitem.taro.d.ts +14 -2
  344. package/dist/types/packages/inputnumber/inputnumber.d.ts +15 -15
  345. package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +28 -30
  346. package/dist/types/packages/menu/menu.d.ts +1 -1
  347. package/dist/types/packages/menu/menu.taro.d.ts +1 -1
  348. package/dist/types/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
  349. package/dist/types/packages/numberkeyboard/numberkeyboard.taro.d.ts +1 -1
  350. package/dist/types/packages/nutui.react.build.d.ts +98 -98
  351. package/dist/types/packages/nutui.react.d.ts +98 -98
  352. package/dist/types/packages/nutui.react.taro.d.ts +98 -98
  353. package/dist/types/packages/picker/picker.d.ts +1 -1
  354. package/dist/types/packages/picker/picker.taro.d.ts +1 -1
  355. package/dist/types/packages/popover/popover.d.ts +1 -1
  356. package/dist/types/packages/popover/popover.taro.d.ts +1 -1
  357. package/dist/types/packages/popup/popup.d.ts +1 -1
  358. package/dist/types/packages/popup/popup.taro.d.ts +1 -1
  359. package/dist/types/packages/radio/radio.d.ts +2 -2
  360. package/dist/types/packages/radio/radio.taro.d.ts +2 -2
  361. package/dist/types/packages/searchbar/searchbar.taro.d.ts +21 -15
  362. package/dist/types/packages/shortpassword/shortpassword.d.ts +4 -3
  363. package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +4 -3
  364. package/dist/types/packages/shortpassword/types.d.ts +4 -0
  365. package/dist/types/packages/swiper/index.d.ts +1 -1
  366. package/dist/types/packages/swiper/index.taro.d.ts +1 -1
  367. package/dist/types/packages/tabs/tabs.d.ts +1 -1
  368. package/dist/types/packages/tabs/tabs.taro.d.ts +1 -1
  369. package/dist/types/packages/timedetail/timedetail.d.ts +1 -1
  370. package/dist/types/packages/timedetail/timedetail.taro.d.ts +1 -1
  371. package/dist/types/packages/tour/tour.d.ts +1 -1
  372. package/dist/types/packages/tour/tour.taro.d.ts +1 -1
  373. package/package.json +5 -5
  374. package/dist/esm/barrage.taro-HsivAhbE.js +0 -91
  375. package/dist/esm/inputnumber.taro-7QptygT3.js +0 -197
  376. /package/dist/esm/{UserContext-9BL0cq8w.js → UserContext-BlM0373q.js} +0 -0
  377. /package/dist/esm/{context-6mGEMLsx.js → context-4T-L2x0_.js} +0 -0
  378. /package/dist/esm/{context-9BL0cq8w.js → context-BlM0373q.js} +0 -0
  379. /package/dist/esm/{date-nxKOxj5-.js → date-D0pth0qC.js} +0 -0
  380. /package/dist/esm/{get-rect-by-taro-piSHvCGp.js → get-rect-by-taro-BnfHyJJb.js} +0 -0
  381. /package/dist/esm/{get-scroll-parent-uywvoQMl.js → get-scroll-parent-DB1VRg11.js} +0 -0
  382. /package/dist/esm/{index-YvHA__3D.js → index-DeNfBlua.js} +0 -0
  383. /package/dist/esm/{index-oitVOJp9.js → index-nbt45_aK.js} +0 -0
  384. /package/dist/esm/{indicator.taro-ZH6MICsS.js → indicator.taro-dqWsdoRo.js} +0 -0
  385. /package/dist/esm/{layout.taro-lnN-wB0Y.js → layout.taro-DQc4VjqF.js} +0 -0
  386. /package/dist/esm/{pad-zero-iY-0-oys.js → pad-zero-B2OUQfh7.js} +0 -0
  387. /package/dist/esm/{px-check-JiWLYN2v.js → px-check-D1Xbd9pj.js} +0 -0
  388. /package/dist/esm/{raf-UzmDvMUW.js → raf-zwv-SBjP.js} +0 -0
  389. /package/dist/esm/{safearea.taro-afu_mY7g.js → safearea.taro-BMQHr7tu.js} +0 -0
  390. /package/dist/esm/{sidenavbaritem.taro-AxJNRAdi.js → sidenavbaritem.taro-Bp-s9bWO.js} +0 -0
  391. /package/dist/esm/{space.taro-q3R_yq79.js → space.taro-rvVRQ2Nl.js} +0 -0
  392. /package/dist/esm/{swiperitem.taro-BC1CE0T-.js → swiperitem.taro-CjcW-KYA.js} +0 -0
  393. /package/dist/esm/{tabpane.taro-5k7wWimS.js → tabpane.taro-Lkwp7scD.js} +0 -0
  394. /package/dist/esm/{typings-buMpDfSR.js → typings-DV9RBfhj.js} +0 -0
  395. /package/dist/esm/{use-force-update-0oEVD8Nr.js → use-force-update-CudFjCsy.js} +0 -0
  396. /package/dist/esm/{use-refs-IdrY0ww3.js → use-refs-BeEmziIR.js} +0 -0
  397. /package/dist/esm/{use-touch-BUFdkOSA.js → use-touch-OfEaR5qi.js} +0 -0
  398. /package/dist/esm/{video.taro-csvHwS2v.js → video.taro-kKcHksKW.js} +0 -0
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
8
8
  return value;
9
9
  };
10
10
  /*!
11
- * @nutui/nutui-react-taro v2.3.9 Fri Feb 02 2024 16:15:32 GMT+0800 (China Standard Time)
11
+ * @nutui/nutui-react-taro v2.3.11-patch.0 Wed Mar 26 2025 14:30:13 GMT+0800 (China Standard Time)
12
12
  * (c) 2023 @jdf2e.
13
13
  * Released under the MIT License.
14
14
  */
@@ -44,34 +44,44 @@ var __publicField = (obj, key, value) => {
44
44
  (function() {
45
45
  var hasOwn = {}.hasOwnProperty;
46
46
  function classNames2() {
47
- var classes = [];
47
+ var classes = "";
48
48
  for (var i2 = 0; i2 < arguments.length; i2++) {
49
49
  var arg = arguments[i2];
50
- if (!arg)
51
- continue;
52
- var argType = typeof arg;
53
- if (argType === "string" || argType === "number") {
54
- classes.push(arg);
55
- } else if (Array.isArray(arg)) {
56
- if (arg.length) {
57
- var inner = classNames2.apply(null, arg);
58
- if (inner) {
59
- classes.push(inner);
60
- }
61
- }
62
- } else if (argType === "object") {
63
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
64
- classes.push(arg.toString());
65
- continue;
66
- }
67
- for (var key in arg) {
68
- if (hasOwn.call(arg, key) && arg[key]) {
69
- classes.push(key);
70
- }
71
- }
50
+ if (arg) {
51
+ classes = appendClass(classes, parseValue(arg));
72
52
  }
73
53
  }
74
- return classes.join(" ");
54
+ return classes;
55
+ }
56
+ function parseValue(arg) {
57
+ if (typeof arg === "string" || typeof arg === "number") {
58
+ return arg;
59
+ }
60
+ if (typeof arg !== "object") {
61
+ return "";
62
+ }
63
+ if (Array.isArray(arg)) {
64
+ return classNames2.apply(null, arg);
65
+ }
66
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
67
+ return arg.toString();
68
+ }
69
+ var classes = "";
70
+ for (var key in arg) {
71
+ if (hasOwn.call(arg, key) && arg[key]) {
72
+ classes = appendClass(classes, key);
73
+ }
74
+ }
75
+ return classes;
76
+ }
77
+ function appendClass(value, newClass) {
78
+ if (!newClass) {
79
+ return value;
80
+ }
81
+ if (value) {
82
+ return value + " " + newClass;
83
+ }
84
+ return value + newClass;
75
85
  }
76
86
  if (module2.exports) {
77
87
  classNames2.default = classNames2;
@@ -1631,72 +1641,111 @@ var __publicField = (obj, key, value) => {
1631
1641
  _setPrototypeOf$1(subClass, superClass);
1632
1642
  }
1633
1643
  var propTypes = { exports: {} };
1634
- var ReactPropTypesSecret_1;
1635
- var hasRequiredReactPropTypesSecret;
1636
- function requireReactPropTypesSecret() {
1637
- if (hasRequiredReactPropTypesSecret)
1638
- return ReactPropTypesSecret_1;
1639
- hasRequiredReactPropTypesSecret = 1;
1640
- var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1641
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
1642
- return ReactPropTypesSecret_1;
1643
- }
1644
- var factoryWithThrowingShims;
1645
- var hasRequiredFactoryWithThrowingShims;
1646
- function requireFactoryWithThrowingShims() {
1647
- if (hasRequiredFactoryWithThrowingShims)
1648
- return factoryWithThrowingShims;
1649
- hasRequiredFactoryWithThrowingShims = 1;
1650
- var ReactPropTypesSecret = requireReactPropTypesSecret();
1651
- function emptyFunction() {
1652
- }
1653
- function emptyFunctionWithReset() {
1654
- }
1655
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1656
- factoryWithThrowingShims = function() {
1657
- function shim(props, propName, componentName, location, propFullName, secret) {
1658
- if (secret === ReactPropTypesSecret) {
1659
- return;
1644
+ var reactIs = { exports: {} };
1645
+ var reactIs_production_min = {};
1646
+ /** @license React v16.13.1
1647
+ * react-is.production.min.js
1648
+ *
1649
+ * Copyright (c) Facebook, Inc. and its affiliates.
1650
+ *
1651
+ * This source code is licensed under the MIT license found in the
1652
+ * LICENSE file in the root directory of this source tree.
1653
+ */
1654
+ var hasRequiredReactIs_production_min;
1655
+ function requireReactIs_production_min() {
1656
+ if (hasRequiredReactIs_production_min)
1657
+ return reactIs_production_min;
1658
+ hasRequiredReactIs_production_min = 1;
1659
+ var b = "function" === typeof Symbol && Symbol.for, c2 = b ? Symbol.for("react.element") : 60103, d2 = b ? Symbol.for("react.portal") : 60106, e2 = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g2 = b ? Symbol.for("react.profiler") : 60114, h2 = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t2 = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w2 = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
1660
+ function z2(a2) {
1661
+ if ("object" === typeof a2 && null !== a2) {
1662
+ var u = a2.$$typeof;
1663
+ switch (u) {
1664
+ case c2:
1665
+ switch (a2 = a2.type, a2) {
1666
+ case l:
1667
+ case m:
1668
+ case e2:
1669
+ case g2:
1670
+ case f:
1671
+ case p:
1672
+ return a2;
1673
+ default:
1674
+ switch (a2 = a2 && a2.$$typeof, a2) {
1675
+ case k:
1676
+ case n:
1677
+ case t2:
1678
+ case r:
1679
+ case h2:
1680
+ return a2;
1681
+ default:
1682
+ return u;
1683
+ }
1684
+ }
1685
+ case d2:
1686
+ return u;
1660
1687
  }
1661
- var err = new Error(
1662
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
1663
- );
1664
- err.name = "Invariant Violation";
1665
- throw err;
1666
1688
  }
1667
- shim.isRequired = shim;
1668
- function getShim() {
1669
- return shim;
1670
- }
1671
- var ReactPropTypes = {
1672
- array: shim,
1673
- bigint: shim,
1674
- bool: shim,
1675
- func: shim,
1676
- number: shim,
1677
- object: shim,
1678
- string: shim,
1679
- symbol: shim,
1680
- any: shim,
1681
- arrayOf: getShim,
1682
- element: shim,
1683
- elementType: shim,
1684
- instanceOf: getShim,
1685
- node: shim,
1686
- objectOf: getShim,
1687
- oneOf: getShim,
1688
- oneOfType: getShim,
1689
- shape: getShim,
1690
- exact: getShim,
1691
- checkPropTypes: emptyFunctionWithReset,
1692
- resetWarningCache: emptyFunction
1693
- };
1694
- ReactPropTypes.PropTypes = ReactPropTypes;
1695
- return ReactPropTypes;
1689
+ }
1690
+ function A2(a2) {
1691
+ return z2(a2) === m;
1692
+ }
1693
+ reactIs_production_min.AsyncMode = l;
1694
+ reactIs_production_min.ConcurrentMode = m;
1695
+ reactIs_production_min.ContextConsumer = k;
1696
+ reactIs_production_min.ContextProvider = h2;
1697
+ reactIs_production_min.Element = c2;
1698
+ reactIs_production_min.ForwardRef = n;
1699
+ reactIs_production_min.Fragment = e2;
1700
+ reactIs_production_min.Lazy = t2;
1701
+ reactIs_production_min.Memo = r;
1702
+ reactIs_production_min.Portal = d2;
1703
+ reactIs_production_min.Profiler = g2;
1704
+ reactIs_production_min.StrictMode = f;
1705
+ reactIs_production_min.Suspense = p;
1706
+ reactIs_production_min.isAsyncMode = function(a2) {
1707
+ return A2(a2) || z2(a2) === l;
1696
1708
  };
1697
- return factoryWithThrowingShims;
1709
+ reactIs_production_min.isConcurrentMode = A2;
1710
+ reactIs_production_min.isContextConsumer = function(a2) {
1711
+ return z2(a2) === k;
1712
+ };
1713
+ reactIs_production_min.isContextProvider = function(a2) {
1714
+ return z2(a2) === h2;
1715
+ };
1716
+ reactIs_production_min.isElement = function(a2) {
1717
+ return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
1718
+ };
1719
+ reactIs_production_min.isForwardRef = function(a2) {
1720
+ return z2(a2) === n;
1721
+ };
1722
+ reactIs_production_min.isFragment = function(a2) {
1723
+ return z2(a2) === e2;
1724
+ };
1725
+ reactIs_production_min.isLazy = function(a2) {
1726
+ return z2(a2) === t2;
1727
+ };
1728
+ reactIs_production_min.isMemo = function(a2) {
1729
+ return z2(a2) === r;
1730
+ };
1731
+ reactIs_production_min.isPortal = function(a2) {
1732
+ return z2(a2) === d2;
1733
+ };
1734
+ reactIs_production_min.isProfiler = function(a2) {
1735
+ return z2(a2) === g2;
1736
+ };
1737
+ reactIs_production_min.isStrictMode = function(a2) {
1738
+ return z2(a2) === f;
1739
+ };
1740
+ reactIs_production_min.isSuspense = function(a2) {
1741
+ return z2(a2) === p;
1742
+ };
1743
+ reactIs_production_min.isValidElementType = function(a2) {
1744
+ return "string" === typeof a2 || "function" === typeof a2 || a2 === e2 || a2 === m || a2 === g2 || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t2 || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w2 || a2.$$typeof === x || a2.$$typeof === y || a2.$$typeof === v);
1745
+ };
1746
+ reactIs_production_min.typeOf = z2;
1747
+ return reactIs_production_min;
1698
1748
  }
1699
- var reactIs = { exports: {} };
1700
1749
  var reactIs_development = {};
1701
1750
  /** @license React v16.13.1
1702
1751
  * react-is.development.js
@@ -1849,120 +1898,16 @@ var __publicField = (obj, key, value) => {
1849
1898
  reactIs_development.isForwardRef = isForwardRef;
1850
1899
  reactIs_development.isFragment = isFragment;
1851
1900
  reactIs_development.isLazy = isLazy;
1852
- reactIs_development.isMemo = isMemo;
1853
- reactIs_development.isPortal = isPortal;
1854
- reactIs_development.isProfiler = isProfiler;
1855
- reactIs_development.isStrictMode = isStrictMode;
1856
- reactIs_development.isSuspense = isSuspense;
1857
- reactIs_development.isValidElementType = isValidElementType;
1858
- reactIs_development.typeOf = typeOf;
1859
- })();
1860
- }
1861
- return reactIs_development;
1862
- }
1863
- var reactIs_production_min = {};
1864
- /** @license React v16.13.1
1865
- * react-is.production.min.js
1866
- *
1867
- * Copyright (c) Facebook, Inc. and its affiliates.
1868
- *
1869
- * This source code is licensed under the MIT license found in the
1870
- * LICENSE file in the root directory of this source tree.
1871
- */
1872
- var hasRequiredReactIs_production_min;
1873
- function requireReactIs_production_min() {
1874
- if (hasRequiredReactIs_production_min)
1875
- return reactIs_production_min;
1876
- hasRequiredReactIs_production_min = 1;
1877
- var b = "function" === typeof Symbol && Symbol.for, c2 = b ? Symbol.for("react.element") : 60103, d2 = b ? Symbol.for("react.portal") : 60106, e2 = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g2 = b ? Symbol.for("react.profiler") : 60114, h2 = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t2 = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w2 = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
1878
- function z2(a2) {
1879
- if ("object" === typeof a2 && null !== a2) {
1880
- var u = a2.$$typeof;
1881
- switch (u) {
1882
- case c2:
1883
- switch (a2 = a2.type, a2) {
1884
- case l:
1885
- case m:
1886
- case e2:
1887
- case g2:
1888
- case f:
1889
- case p:
1890
- return a2;
1891
- default:
1892
- switch (a2 = a2 && a2.$$typeof, a2) {
1893
- case k:
1894
- case n:
1895
- case t2:
1896
- case r:
1897
- case h2:
1898
- return a2;
1899
- default:
1900
- return u;
1901
- }
1902
- }
1903
- case d2:
1904
- return u;
1905
- }
1906
- }
1907
- }
1908
- function A2(a2) {
1909
- return z2(a2) === m;
1910
- }
1911
- reactIs_production_min.AsyncMode = l;
1912
- reactIs_production_min.ConcurrentMode = m;
1913
- reactIs_production_min.ContextConsumer = k;
1914
- reactIs_production_min.ContextProvider = h2;
1915
- reactIs_production_min.Element = c2;
1916
- reactIs_production_min.ForwardRef = n;
1917
- reactIs_production_min.Fragment = e2;
1918
- reactIs_production_min.Lazy = t2;
1919
- reactIs_production_min.Memo = r;
1920
- reactIs_production_min.Portal = d2;
1921
- reactIs_production_min.Profiler = g2;
1922
- reactIs_production_min.StrictMode = f;
1923
- reactIs_production_min.Suspense = p;
1924
- reactIs_production_min.isAsyncMode = function(a2) {
1925
- return A2(a2) || z2(a2) === l;
1926
- };
1927
- reactIs_production_min.isConcurrentMode = A2;
1928
- reactIs_production_min.isContextConsumer = function(a2) {
1929
- return z2(a2) === k;
1930
- };
1931
- reactIs_production_min.isContextProvider = function(a2) {
1932
- return z2(a2) === h2;
1933
- };
1934
- reactIs_production_min.isElement = function(a2) {
1935
- return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
1936
- };
1937
- reactIs_production_min.isForwardRef = function(a2) {
1938
- return z2(a2) === n;
1939
- };
1940
- reactIs_production_min.isFragment = function(a2) {
1941
- return z2(a2) === e2;
1942
- };
1943
- reactIs_production_min.isLazy = function(a2) {
1944
- return z2(a2) === t2;
1945
- };
1946
- reactIs_production_min.isMemo = function(a2) {
1947
- return z2(a2) === r;
1948
- };
1949
- reactIs_production_min.isPortal = function(a2) {
1950
- return z2(a2) === d2;
1951
- };
1952
- reactIs_production_min.isProfiler = function(a2) {
1953
- return z2(a2) === g2;
1954
- };
1955
- reactIs_production_min.isStrictMode = function(a2) {
1956
- return z2(a2) === f;
1957
- };
1958
- reactIs_production_min.isSuspense = function(a2) {
1959
- return z2(a2) === p;
1960
- };
1961
- reactIs_production_min.isValidElementType = function(a2) {
1962
- return "string" === typeof a2 || "function" === typeof a2 || a2 === e2 || a2 === m || a2 === g2 || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t2 || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w2 || a2.$$typeof === x || a2.$$typeof === y || a2.$$typeof === v);
1963
- };
1964
- reactIs_production_min.typeOf = z2;
1965
- return reactIs_production_min;
1901
+ reactIs_development.isMemo = isMemo;
1902
+ reactIs_development.isPortal = isPortal;
1903
+ reactIs_development.isProfiler = isProfiler;
1904
+ reactIs_development.isStrictMode = isStrictMode;
1905
+ reactIs_development.isSuspense = isSuspense;
1906
+ reactIs_development.isValidElementType = isValidElementType;
1907
+ reactIs_development.typeOf = typeOf;
1908
+ })();
1909
+ }
1910
+ return reactIs_development;
1966
1911
  }
1967
1912
  var hasRequiredReactIs;
1968
1913
  function requireReactIs() {
@@ -2052,6 +1997,16 @@ var __publicField = (obj, key, value) => {
2052
1997
  };
2053
1998
  return objectAssign;
2054
1999
  }
2000
+ var ReactPropTypesSecret_1;
2001
+ var hasRequiredReactPropTypesSecret;
2002
+ function requireReactPropTypesSecret() {
2003
+ if (hasRequiredReactPropTypesSecret)
2004
+ return ReactPropTypesSecret_1;
2005
+ hasRequiredReactPropTypesSecret = 1;
2006
+ var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2007
+ ReactPropTypesSecret_1 = ReactPropTypesSecret;
2008
+ return ReactPropTypesSecret_1;
2009
+ }
2055
2010
  var has;
2056
2011
  var hasRequiredHas;
2057
2012
  function requireHas() {
@@ -2569,6 +2524,61 @@ var __publicField = (obj, key, value) => {
2569
2524
  };
2570
2525
  return factoryWithTypeCheckers;
2571
2526
  }
2527
+ var factoryWithThrowingShims;
2528
+ var hasRequiredFactoryWithThrowingShims;
2529
+ function requireFactoryWithThrowingShims() {
2530
+ if (hasRequiredFactoryWithThrowingShims)
2531
+ return factoryWithThrowingShims;
2532
+ hasRequiredFactoryWithThrowingShims = 1;
2533
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
2534
+ function emptyFunction() {
2535
+ }
2536
+ function emptyFunctionWithReset() {
2537
+ }
2538
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
2539
+ factoryWithThrowingShims = function() {
2540
+ function shim(props, propName, componentName, location, propFullName, secret) {
2541
+ if (secret === ReactPropTypesSecret) {
2542
+ return;
2543
+ }
2544
+ var err = new Error(
2545
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
2546
+ );
2547
+ err.name = "Invariant Violation";
2548
+ throw err;
2549
+ }
2550
+ shim.isRequired = shim;
2551
+ function getShim() {
2552
+ return shim;
2553
+ }
2554
+ var ReactPropTypes = {
2555
+ array: shim,
2556
+ bigint: shim,
2557
+ bool: shim,
2558
+ func: shim,
2559
+ number: shim,
2560
+ object: shim,
2561
+ string: shim,
2562
+ symbol: shim,
2563
+ any: shim,
2564
+ arrayOf: getShim,
2565
+ element: shim,
2566
+ elementType: shim,
2567
+ instanceOf: getShim,
2568
+ node: shim,
2569
+ objectOf: getShim,
2570
+ oneOf: getShim,
2571
+ oneOfType: getShim,
2572
+ shape: getShim,
2573
+ exact: getShim,
2574
+ checkPropTypes: emptyFunctionWithReset,
2575
+ resetWarningCache: emptyFunction
2576
+ };
2577
+ ReactPropTypes.PropTypes = ReactPropTypes;
2578
+ return ReactPropTypes;
2579
+ };
2580
+ return factoryWithThrowingShims;
2581
+ }
2572
2582
  if (process.env.NODE_ENV !== "production") {
2573
2583
  var ReactIs = requireReactIs();
2574
2584
  var throwOnDirectAccess = true;
@@ -4050,7 +4060,7 @@ var __publicField = (obj, key, value) => {
4050
4060
  }
4051
4061
  }, []);
4052
4062
  Taro.usePageScroll((res) => {
4053
- if (Taro.getEnv() === "WEAPP") {
4063
+ if (Taro.getEnv() !== "WEB") {
4054
4064
  handleScroll(res.scrollTop);
4055
4065
  }
4056
4066
  });
@@ -4113,7 +4123,7 @@ var __publicField = (obj, key, value) => {
4113
4123
  duration: duration > 0 ? duration : 0
4114
4124
  });
4115
4125
  };
4116
- const styles = style ? {
4126
+ const styles = Object.keys(style || {}).length !== 0 ? {
4117
4127
  zIndex,
4118
4128
  ...style
4119
4129
  } : {
@@ -5358,7 +5368,7 @@ var __publicField = (obj, key, value) => {
5358
5368
  onClick: (e2) => {
5359
5369
  tabChange(item);
5360
5370
  },
5361
- className: classNames(`${classPrefix$k}-titles-item taro`, {
5371
+ className: classNames(`${classPrefix$k}-titles-item`, {
5362
5372
  [`nut-tabs-titles-item-active`]: !item.disabled && String(item.value) === String(value),
5363
5373
  [`nut-tabs-titles-item-disabled`]: item.disabled,
5364
5374
  [`nut-tabs-titles-item-${align}`]: align
@@ -5601,7 +5611,6 @@ var __publicField = (obj, key, value) => {
5601
5611
  return pathNodes;
5602
5612
  }
5603
5613
  }
5604
- const Tree$1 = Tree;
5605
5614
  const defaultProps$17 = {
5606
5615
  ...ComponentDefaults,
5607
5616
  activeColor: "",
@@ -5677,7 +5686,7 @@ var __publicField = (obj, key, value) => {
5677
5686
  paneKey: ""
5678
5687
  }
5679
5688
  ],
5680
- tree: new Tree$1([], {}),
5689
+ tree: new Tree([], {}),
5681
5690
  tabsCursor: 0,
5682
5691
  // 选中的tab项
5683
5692
  initLoading: false,
@@ -5707,7 +5716,7 @@ var __publicField = (obj, key, value) => {
5707
5716
  } else {
5708
5717
  state.optionsData = options;
5709
5718
  }
5710
- state.tree = new Tree$1(state.optionsData, {
5719
+ state.tree = new Tree(state.optionsData, {
5711
5720
  value: state.configs.optionKey.valueKey,
5712
5721
  text: state.configs.optionKey.textKey,
5713
5722
  children: state.configs.optionKey.childrenKey
@@ -9768,6 +9777,7 @@ var __publicField = (obj, key, value) => {
9768
9777
  constructor() {
9769
9778
  // 初始化数据
9770
9779
  __publicField(this, "initialValues", {});
9780
+ __publicField(this, "updateList", []);
9771
9781
  // 存放表单中所有的数据 eg. {password: "ddd",username: "123"}
9772
9782
  __publicField(this, "store", {});
9773
9783
  // 所有的组件实例
@@ -9837,6 +9847,15 @@ var __publicField = (obj, key, value) => {
9837
9847
  }
9838
9848
  });
9839
9849
  });
9850
+ this.updateList.forEach((item) => {
9851
+ let shouldUpdate = item.condition;
9852
+ if (typeof item.condition === "function") {
9853
+ shouldUpdate = item.condition();
9854
+ }
9855
+ if (shouldUpdate) {
9856
+ item.entity.onStoreChange("update");
9857
+ }
9858
+ });
9840
9859
  });
9841
9860
  __publicField(this, "setCallback", (callback) => {
9842
9861
  this.callbacks = {
@@ -9884,9 +9903,11 @@ var __publicField = (obj, key, value) => {
9884
9903
  );
9885
9904
  }
9886
9905
  const errs = [];
9887
- filterEntities.forEach((entity) => {
9888
- this.validateEntities(entity, errs);
9889
- });
9906
+ await Promise.all(
9907
+ filterEntities.map(async (entity) => {
9908
+ await this.validateEntities(entity, errs);
9909
+ })
9910
+ );
9890
9911
  return errs;
9891
9912
  });
9892
9913
  __publicField(this, "submit", async () => {
@@ -9905,6 +9926,16 @@ var __publicField = (obj, key, value) => {
9905
9926
  entity.onStoreChange("reset");
9906
9927
  });
9907
9928
  });
9929
+ // 监听事件
9930
+ __publicField(this, "registerUpdate", (field, shouldUpdate) => {
9931
+ this.updateList.push({
9932
+ entity: field,
9933
+ condition: shouldUpdate
9934
+ });
9935
+ return () => {
9936
+ this.updateList = this.updateList.filter((i2) => i2.entity !== field);
9937
+ };
9938
+ });
9908
9939
  __publicField(this, "dispatch", ({ name }) => {
9909
9940
  this.validateFields([name]);
9910
9941
  });
@@ -9916,7 +9947,8 @@ var __publicField = (obj, key, value) => {
9916
9947
  setInitialValues: this.setInitialValues,
9917
9948
  dispatch: this.dispatch,
9918
9949
  store: this.store,
9919
- fieldEntities: this.fieldEntities
9950
+ fieldEntities: this.fieldEntities,
9951
+ registerUpdate: this.registerUpdate
9920
9952
  };
9921
9953
  }
9922
9954
  });
@@ -10047,13 +10079,16 @@ var __publicField = (obj, key, value) => {
10047
10079
  label: "",
10048
10080
  rules: [{ required: false, message: "" }],
10049
10081
  errorMessageAlign: "left",
10050
- validateTrigger: "onChange"
10082
+ validateTrigger: "onChange",
10083
+ shouldUpdate: false,
10084
+ noStyle: false
10051
10085
  };
10052
10086
  class FormItem extends React.Component {
10053
10087
  constructor(props) {
10054
10088
  super(props);
10055
10089
  __publicField(this, "cancelRegister");
10056
10090
  __publicField(this, "componentRef");
10091
+ __publicField(this, "eventOff");
10057
10092
  // children添加value属性和onChange事件
10058
10093
  __publicField(this, "getControlled", (children) => {
10059
10094
  var _a;
@@ -10127,7 +10162,6 @@ var __publicField = (obj, key, value) => {
10127
10162
  }
10128
10163
  });
10129
10164
  __publicField(this, "renderLayout", (childNode) => {
10130
- var _a;
10131
10165
  const {
10132
10166
  label,
10133
10167
  name,
@@ -10153,16 +10187,13 @@ var __publicField = (obj, key, value) => {
10153
10187
  onClick: (e2) => this.props.onClick && this.props.onClick(e2, this.componentRef)
10154
10188
  },
10155
10189
  label ? /* @__PURE__ */ React.createElement("div", { className: "nut-cell-title nut-form-item-label" }, renderLabel) : null,
10156
- /* @__PURE__ */ React.createElement("div", { className: "nut-cell-value nut-form-item-body" }, /* @__PURE__ */ React.createElement("div", { className: "nut-form-item-body-slots" }, childNode), /* @__PURE__ */ React.createElement(
10190
+ /* @__PURE__ */ React.createElement("div", { className: "nut-cell-value nut-form-item-body" }, /* @__PURE__ */ React.createElement("div", { className: "nut-form-item-body-slots" }, childNode), item && item.length > 0 && /* @__PURE__ */ React.createElement(
10157
10191
  "div",
10158
10192
  {
10159
10193
  className: "nut-form-item-body-tips",
10160
- style: {
10161
- textAlign: errorMessageAlign,
10162
- display: (item == null ? void 0 : item.length) ? "initial" : "none"
10163
- }
10194
+ style: { textAlign: errorMessageAlign }
10164
10195
  },
10165
- (_a = item == null ? void 0 : item[0]) == null ? void 0 : _a.message
10196
+ item[0].message
10166
10197
  ))
10167
10198
  );
10168
10199
  });
@@ -10172,22 +10203,31 @@ var __publicField = (obj, key, value) => {
10172
10203
  };
10173
10204
  }
10174
10205
  componentDidMount() {
10175
- const { registerField } = this.context.getInternal(SECRET);
10206
+ const { registerField, registerUpdate } = this.context.getInternal(SECRET);
10176
10207
  this.cancelRegister = registerField(this);
10208
+ this.eventOff = registerUpdate(this, this.props.shouldUpdate);
10177
10209
  }
10178
10210
  componentWillUnmount() {
10179
10211
  if (this.cancelRegister) {
10180
10212
  this.cancelRegister();
10181
10213
  }
10214
+ if (this.eventOff) {
10215
+ this.eventOff();
10216
+ }
10182
10217
  }
10183
10218
  render() {
10184
10219
  const { children } = this.props;
10185
10220
  const child = Array.isArray(children) ? children[0] : children;
10186
- const returnChildNode = React.cloneElement(
10187
- child,
10188
- this.getControlled(child)
10189
- );
10190
- return /* @__PURE__ */ React.createElement(React.Fragment, { key: this.state.resetCount }, this.renderLayout(returnChildNode));
10221
+ let returnChildNode;
10222
+ if (!this.props.shouldUpdate) {
10223
+ returnChildNode = React.cloneElement(
10224
+ child,
10225
+ this.getControlled(child)
10226
+ );
10227
+ } else {
10228
+ returnChildNode = child(this.context);
10229
+ }
10230
+ return /* @__PURE__ */ React.createElement(React.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
10191
10231
  }
10192
10232
  }
10193
10233
  __publicField(FormItem, "defaultProps", defaultProps$Y);
@@ -10371,7 +10411,10 @@ var __publicField = (obj, key, value) => {
10371
10411
  name,
10372
10412
  className: "nut-input-native",
10373
10413
  ref: inputRef,
10374
- style: { textAlign: align },
10414
+ style: {
10415
+ textAlign: `${// eslint-disable-next-line no-nested-ternary
10416
+ align === "right" ? "end" : align === "left" ? "start" : "center"}`
10417
+ },
10375
10418
  type: inputType(type2),
10376
10419
  password: type2 === "password",
10377
10420
  maxlength: maxLength,
@@ -10412,11 +10455,10 @@ var __publicField = (obj, key, value) => {
10412
10455
  const defaultProps$W = {
10413
10456
  ...ComponentDefaults,
10414
10457
  disabled: false,
10415
- min: 1,
10416
- max: 9999,
10417
10458
  readOnly: false,
10418
10459
  allowEmpty: false,
10419
- defaultValue: 0,
10460
+ min: 1,
10461
+ max: 9999,
10420
10462
  step: 1,
10421
10463
  digits: 0,
10422
10464
  async: false
@@ -10449,197 +10491,161 @@ var __publicField = (obj, key, value) => {
10449
10491
  ...defaultProps$W,
10450
10492
  ...props
10451
10493
  };
10452
- const inputRef = React.useRef("");
10453
- const [_checked, setChecked] = usePropsValue({
10454
- value,
10455
- defaultValue
10494
+ const classes = classNames(classPrefix$h, {
10495
+ [`${classPrefix$h}-disabled`]: disabled
10456
10496
  });
10497
+ const [focused, setFocused] = React.useState(false);
10498
+ const inputRef = React.useRef(null);
10457
10499
  React.useEffect(() => {
10458
- if (formatter) {
10459
- if (_checked || _checked === 0) {
10460
- inputRef.current = formatter(_checked);
10461
- setChecked(formatter(_checked));
10462
- }
10463
- }
10464
- }, []);
10465
- const classes = classNames(
10466
- {
10467
- [`${classPrefix$h}`]: true,
10468
- [`${classPrefix$h}-disabled`]: disabled
10469
- },
10470
- className
10471
- );
10472
- const styles = {
10473
- ...style
10474
- };
10475
- const addAllow = (value2 = _checked) => {
10476
- if (formatter) {
10477
- const numValue = String(value2).replace(/[^0-9|.]/gi, "");
10478
- return Number(numValue) < Number(max) && !disabled;
10500
+ var _a, _b;
10501
+ if (focused) {
10502
+ (_b = (_a = inputRef.current) == null ? void 0 : _a.select) == null ? void 0 : _b.call(_a);
10479
10503
  }
10480
- return Number(value2) < Number(max) && !disabled;
10481
- };
10482
- const reduceAllow = (value2 = _checked) => {
10483
- if (formatter) {
10484
- const numValue = String(value2).replace(/[^0-9|.]/gi, "");
10485
- return Number(numValue) > Number(min) && !disabled;
10504
+ }, [focused]);
10505
+ const [shadowValue, setShadowValue] = usePropsValue({
10506
+ value: typeof value === "string" ? parseFloat(value) : value,
10507
+ defaultValue: typeof defaultValue === "string" ? parseFloat(defaultValue) : defaultValue,
10508
+ onChange: (value2) => {
10486
10509
  }
10487
- return Number(value2) > Number(min) && !disabled;
10488
- };
10489
- const iconMinusClasses = classNames("nut-inputnumber-icon icon-minus", {
10490
- "nut-inputnumber-icon-disabled": !reduceAllow()
10491
- });
10492
- const iconAddClasses = classNames("nut-inputnumber-icon icon-plus", {
10493
- "nut-inputnumber-icon-disabled": !addAllow()
10494
10510
  });
10495
- const fixedDecimalPlaces = (v) => {
10496
- return Number(v).toFixed(Number(digits));
10497
- };
10498
- const emitChange = (value2, e2) => {
10499
- const outputValue = fixedDecimalPlaces(value2);
10500
- onChange && onChange(outputValue, e2);
10501
- if (!async) {
10502
- if (Number(outputValue) < Number(min)) {
10503
- formatter ? setChecked(formatter(Number(min))) : setChecked(Number(min));
10504
- } else if (Number(outputValue) > Number(max)) {
10505
- formatter ? setChecked(formatter(Number(max))) : setChecked(Number(max));
10506
- } else {
10507
- formatter ? setChecked(formatter(outputValue)) : setChecked(outputValue);
10508
- }
10511
+ const bound2 = (value2, min2, max2) => {
10512
+ let res = value2;
10513
+ if (min2 !== void 0) {
10514
+ res = Math.max(Number(min2), res);
10509
10515
  }
10510
- };
10511
- const reduceNumber = (e2) => {
10512
- onMinus && onMinus(e2);
10513
- if (reduceAllow()) {
10514
- if (formatter) {
10515
- const numValue = String(_checked).replace(/[^0-9|.]/gi, "");
10516
- const outputValue = Number(numValue) - Number(step);
10517
- inputRef.current = formatter(outputValue);
10518
- emitChange(outputValue, e2);
10519
- } else {
10520
- const outputValue = Number(_checked) - Number(step);
10521
- emitChange(outputValue, e2);
10522
- }
10523
- } else {
10524
- onOverlimit && onOverlimit(e2);
10516
+ if (max2 !== void 0) {
10517
+ res = Math.min(Number(max2), res);
10525
10518
  }
10519
+ return res;
10526
10520
  };
10527
- const addNumber = (e2) => {
10528
- onPlus && onPlus(e2);
10529
- if (addAllow()) {
10530
- if (formatter) {
10531
- const numValue = String(_checked).replace(/[^0-9|.]/gi, "");
10532
- const outputValue = Number(numValue) + Number(step);
10533
- inputRef.current = formatter(outputValue);
10534
- emitChange(outputValue, e2);
10535
- } else {
10536
- const outputValue = Number(_checked) + Number(step);
10537
- emitChange(outputValue, e2);
10538
- }
10539
- } else {
10540
- onOverlimit && onOverlimit(e2);
10521
+ const format2 = (value2) => {
10522
+ if (value2 === null)
10523
+ return "";
10524
+ if (typeof value2 === "string")
10525
+ value2 = parseFloat(value2);
10526
+ const fixedValue = bound2(value2, Number(min), Number(max));
10527
+ if (formatter) {
10528
+ return formatter(fixedValue);
10541
10529
  }
10542
- };
10543
- const changeValue = (e2) => {
10544
- const input = e2.target;
10545
- onChange && onChange(input.value, e2);
10546
- if (!async) {
10547
- setChecked(input.value);
10530
+ if (digits) {
10531
+ return fixedValue.toFixed(digits).toString();
10548
10532
  }
10533
+ return fixedValue.toString();
10549
10534
  };
10550
- const changeFormatValue = (e2) => {
10551
- const input = e2.target.value;
10552
- const numReg = /^[0-9]*$/;
10553
- const numValue = input.replace(/[^0-9|.]/gi, "");
10554
- if (formatter) {
10555
- if (!numReg.test(input[0]) && numValue) {
10556
- setChecked(formatter(numValue));
10557
- } else if (!numReg.test(input[0]) && !numValue) {
10558
- setChecked(input);
10559
- } else if (numReg.test(input[0])) {
10560
- if (formatter(numValue) === inputRef.current) {
10561
- setChecked(numValue);
10562
- } else {
10563
- setChecked(formatter(numValue));
10564
- inputRef.current = formatter(numValue);
10565
- }
10566
- }
10535
+ const [inputValue, setInputValue] = React.useState(format2(shadowValue));
10536
+ React.useEffect(() => {
10537
+ if (!focused && !async) {
10538
+ setShadowValue(bound2(Number(shadowValue), Number(min), Number(max)));
10539
+ setInputValue(format2(shadowValue));
10567
10540
  }
10568
- };
10569
- const burFormatValue = (e2) => {
10570
- const input = e2.target.value;
10571
- const numReg = /^[0-9]*$/;
10572
- const numValue = input.replace(/[^0-9|.]/gi, "");
10573
- if (formatter) {
10574
- if (formatter(numValue) === input) {
10575
- emitChange(numValue, e2);
10576
- return;
10577
- }
10578
- if (!numReg.test(input) || !input) {
10579
- setChecked(formatter(""));
10541
+ }, [focused, shadowValue]);
10542
+ React.useEffect(() => {
10543
+ if (async) {
10544
+ setShadowValue(bound2(Number(value), Number(min), Number(max)));
10545
+ setInputValue(format2(value));
10546
+ }
10547
+ }, [value]);
10548
+ const calcNextValue = (current, step2, symbol) => {
10549
+ const dig = digits + 1;
10550
+ return (parseFloat(current || "0") * dig + parseFloat(step2) * dig * symbol) / dig;
10551
+ };
10552
+ const update = (negative, e2) => {
10553
+ if (step !== void 0) {
10554
+ const shouldOverBoundary = calcNextValue(
10555
+ shadowValue,
10556
+ step,
10557
+ negative ? -1 : 1
10558
+ );
10559
+ const nextValue = bound2(shouldOverBoundary, Number(min), Number(max));
10560
+ setShadowValue(nextValue);
10561
+ if (negative ? shouldOverBoundary < min : shouldOverBoundary > max) {
10562
+ onOverlimit == null ? void 0 : onOverlimit(e2);
10563
+ } else {
10564
+ onChange == null ? void 0 : onChange(nextValue, e2);
10580
10565
  }
10581
10566
  }
10582
10567
  };
10583
- const focusValue = (e2) => {
10568
+ const handleReduce = (e2) => {
10584
10569
  if (disabled)
10585
10570
  return;
10586
- if (readOnly)
10587
- return;
10588
- onFocus && onFocus(e2);
10571
+ onMinus == null ? void 0 : onMinus(e2);
10572
+ update(true, e2);
10589
10573
  };
10590
- const burValue = (e2) => {
10574
+ const handlePlus = (e2) => {
10591
10575
  if (disabled)
10592
10576
  return;
10593
- if (readOnly)
10594
- return;
10595
- const input = e2.target;
10596
- let value2 = +input.value;
10597
- if (value2 === 0 && !allowEmpty) {
10598
- value2 = Number(defaultValue);
10577
+ onPlus == null ? void 0 : onPlus(e2);
10578
+ update(false, e2);
10579
+ };
10580
+ const parseValue = (text) => {
10581
+ if (text === "")
10582
+ return null;
10583
+ if (text === "-")
10584
+ return null;
10585
+ return text;
10586
+ };
10587
+ const handleInputChange = (e2) => {
10588
+ setInputValue(e2.target.value);
10589
+ const valueStr = parseValue(e2.target.value);
10590
+ if (valueStr === null) {
10591
+ if (allowEmpty) {
10592
+ setShadowValue(null);
10593
+ } else {
10594
+ setShadowValue(defaultValue);
10595
+ }
10596
+ } else {
10597
+ setShadowValue(valueStr);
10599
10598
  }
10600
- if (value2 < Number(min)) {
10601
- value2 = Number(min);
10602
- } else if (value2 > Number(max)) {
10603
- value2 = Number(max);
10599
+ if (!async) {
10600
+ onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e2);
10604
10601
  }
10605
- emitChange(value2, e2);
10602
+ };
10603
+ const handleFocus = (e2) => {
10604
+ setFocused(true);
10605
+ setInputValue(
10606
+ shadowValue !== void 0 && shadowValue !== null ? bound2(Number(shadowValue), Number(min), Number(max)).toString() : ""
10607
+ );
10608
+ onFocus && onFocus(e2);
10609
+ };
10610
+ const handleBlur = (e2) => {
10611
+ setFocused(false);
10606
10612
  onBlur && onBlur(e2);
10613
+ if (async) {
10614
+ const valueStr = parseValue(e2.target.value);
10615
+ onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e2);
10616
+ }
10607
10617
  };
10608
- return /* @__PURE__ */ React.createElement("div", { className: classes, style: styles, ...restProps }, /* @__PURE__ */ React.createElement("div", { className: "nut-input-minus" }, /* @__PURE__ */ React.createElement(
10618
+ return /* @__PURE__ */ React.createElement("div", { className: classes, style, ...restProps }, /* @__PURE__ */ React.createElement("div", { className: "nut-input-minus" }, /* @__PURE__ */ React.createElement(
10609
10619
  t,
10610
10620
  {
10611
- className: iconMinusClasses,
10612
- onClick: (e2) => reduceNumber(e2)
10621
+ className: classNames("nut-inputnumber-icon icon-minus", {
10622
+ [`${classPrefix$h}-icon-disabled`]: shadowValue === min || disabled
10623
+ }),
10624
+ onClick: handleReduce
10613
10625
  }
10614
- )), /* @__PURE__ */ React.createElement(React.Fragment, null, formatter ? /* @__PURE__ */ React.createElement(
10626
+ )), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
10615
10627
  "input",
10616
10628
  {
10617
10629
  className: "nut-number-input",
10618
- type: "text",
10619
- min,
10620
- max,
10630
+ type: "digit",
10631
+ ref: inputRef,
10632
+ inputMode: "decimal",
10621
10633
  disabled,
10622
10634
  readOnly,
10623
- value: _checked,
10624
- onInput: changeFormatValue,
10625
- onBlur: burFormatValue,
10626
- onFocus: focusValue
10635
+ value: inputValue,
10636
+ onInput: handleInputChange,
10637
+ onBlur: handleBlur,
10638
+ onFocus: handleFocus
10627
10639
  }
10628
- ) : /* @__PURE__ */ React.createElement(
10629
- "input",
10640
+ )), /* @__PURE__ */ React.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React.createElement(
10641
+ i,
10630
10642
  {
10631
- className: "nut-number-input",
10632
- type: "digit",
10633
- min,
10634
- max,
10635
- disabled,
10636
- readOnly,
10637
- value: _checked,
10638
- onInput: changeValue,
10639
- onBlur: burValue,
10640
- onFocus: focusValue
10643
+ className: classNames("nut-inputnumber-icon icon-plus", {
10644
+ [`${classPrefix$h}-icon-disabled`]: shadowValue === max || disabled
10645
+ }),
10646
+ onClick: handlePlus
10641
10647
  }
10642
- )), /* @__PURE__ */ React.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React.createElement(i, { className: iconAddClasses, onClick: (e2) => addNumber(e2) })));
10648
+ )));
10643
10649
  };
10644
10650
  InputNumber.defaultProps = defaultProps$W;
10645
10651
  InputNumber.displayName = "NutInputNumber";
@@ -11886,8 +11892,9 @@ var __publicField = (obj, key, value) => {
11886
11892
  const classPrefix2 = "nut-searchbar";
11887
11893
  const { locale } = useConfig$1();
11888
11894
  const searchRef = React.useRef(null);
11889
- const [value, setValue] = React.useState(() => props.value);
11890
11895
  const {
11896
+ value: outerValue,
11897
+ style,
11891
11898
  placeholder,
11892
11899
  shape,
11893
11900
  className,
@@ -11911,47 +11918,52 @@ var __publicField = (obj, key, value) => {
11911
11918
  ...defaultProps$O,
11912
11919
  ...props
11913
11920
  };
11921
+ const [value, setValue] = React.useState(() => outerValue);
11914
11922
  const forceFocus = () => {
11915
11923
  const searchSelf = searchRef.current;
11916
11924
  searchSelf && searchSelf.focus();
11917
11925
  };
11918
11926
  const change = (event) => {
11919
- if (value === event.target.value)
11927
+ if (value === event.detail.value)
11920
11928
  return;
11921
- onChange && (onChange == null ? void 0 : onChange(event.target.value, event));
11922
- setValue(event.target.value);
11923
- event.target.value === "" && forceFocus();
11929
+ onChange && (onChange == null ? void 0 : onChange(event.detail.value, event));
11930
+ setValue(event.detail.value);
11931
+ event.detail.value === "" && forceFocus();
11924
11932
  };
11925
11933
  const focus = (event) => {
11926
- const { value: value2 } = event.target;
11934
+ const { value: value2 } = event.detail;
11927
11935
  onFocus && (onFocus == null ? void 0 : onFocus(value2, event));
11928
11936
  };
11929
11937
  const blur = (event) => {
11930
11938
  const searchSelf = searchRef.current;
11931
11939
  searchSelf && searchSelf.blur();
11932
- const { value: value2 } = event.target;
11940
+ const { value: value2 } = event.detail;
11933
11941
  onBlur && (onBlur == null ? void 0 : onBlur(value2, event));
11934
11942
  };
11935
11943
  React.useEffect(() => {
11936
- setValue(props.value || "");
11937
- }, [props.value]);
11944
+ setValue(outerValue || "");
11945
+ }, [outerValue]);
11938
11946
  React.useEffect(() => {
11939
- autoFocus && forceFocus();
11947
+ if (Taro.getEnv() === "WEB") {
11948
+ autoFocus && forceFocus();
11949
+ }
11940
11950
  }, [autoFocus]);
11941
11951
  const renderField = () => {
11942
11952
  return /* @__PURE__ */ React.createElement(
11943
- "input",
11953
+ components.Input,
11944
11954
  {
11945
11955
  className: `${classPrefix2}-input ${clearable ? `${classPrefix2}-input-clear` : ""}`,
11946
11956
  ref: searchRef,
11947
- style: { ...props.style },
11948
- value: value || "",
11957
+ style,
11958
+ value: (value || "").toString(),
11949
11959
  placeholder: placeholder || locale.placeholder,
11950
- disabled,
11951
- readOnly,
11952
- maxLength,
11953
- onKeyPress: onKeypress,
11954
- onChange: (e2) => change(e2),
11960
+ disabled: disabled || readOnly,
11961
+ maxlength: maxLength,
11962
+ nativeProps: {
11963
+ onKeyPress: onKeypress
11964
+ },
11965
+ autoFocus,
11966
+ onInput: (e2) => change(e2),
11955
11967
  onFocus: (e2) => focus(e2),
11956
11968
  onBlur: (e2) => blur(e2),
11957
11969
  onClick: (e2) => clickInput(e2)
@@ -11964,26 +11976,26 @@ var __publicField = (obj, key, value) => {
11964
11976
  const renderLeftIn = () => {
11965
11977
  if (!leftIn)
11966
11978
  return null;
11967
- return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-leftin ${classPrefix2}-icon` }, leftIn);
11979
+ return /* @__PURE__ */ React.createElement(components.View, { className: `${classPrefix2}-leftin ${classPrefix2}-icon` }, leftIn);
11968
11980
  };
11969
11981
  const renderLeft = () => {
11970
11982
  if (!backable && !left2)
11971
11983
  return null;
11972
- return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-left` }, backable ? /* @__PURE__ */ React.createElement(g$5, { size: "16" }) : left2);
11984
+ return /* @__PURE__ */ React.createElement(components.View, { className: `${classPrefix2}-left` }, backable ? /* @__PURE__ */ React.createElement(g$5, { size: "16" }) : left2);
11973
11985
  };
11974
11986
  const renderRightIn = () => {
11975
11987
  if (!rightIn)
11976
11988
  return null;
11977
- return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-rightin ${classPrefix2}-icon` }, rightIn);
11989
+ return /* @__PURE__ */ React.createElement(components.View, { className: `${classPrefix2}-rightin ${classPrefix2}-icon` }, rightIn);
11978
11990
  };
11979
11991
  const renderRight = () => {
11980
11992
  if (!right2)
11981
11993
  return null;
11982
- return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right` }, right2);
11994
+ return /* @__PURE__ */ React.createElement(components.View, { className: `${classPrefix2}-right` }, right2);
11983
11995
  };
11984
11996
  const handleClear = () => {
11985
11997
  return /* @__PURE__ */ React.createElement(
11986
- "div",
11998
+ components.View,
11987
11999
  {
11988
12000
  className: `${classPrefix2}-clear ${classPrefix2}-icon`,
11989
12001
  onClick: (e2) => clearaVal(e2)
@@ -11997,6 +12009,7 @@ var __publicField = (obj, key, value) => {
11997
12009
  }
11998
12010
  setValue("");
11999
12011
  forceFocus();
12012
+ onChange && (onChange == null ? void 0 : onChange(""));
12000
12013
  onClear && onClear(event);
12001
12014
  };
12002
12015
  const onKeypress = (e2) => {
@@ -12008,26 +12021,25 @@ var __publicField = (obj, key, value) => {
12008
12021
  }
12009
12022
  };
12010
12023
  return /* @__PURE__ */ React.createElement(
12011
- "div",
12024
+ components.View,
12012
12025
  {
12013
12026
  className: `${classPrefix2} ${disabled ? `${classPrefix2}-disabled` : ""} ${className || ""}`,
12014
- style: { ...props.style }
12027
+ style
12015
12028
  },
12016
12029
  renderLeft(),
12017
12030
  /* @__PURE__ */ React.createElement(
12018
- "div",
12031
+ components.View,
12019
12032
  {
12020
12033
  className: `${classPrefix2}-content ${shape === "round" ? `${classPrefix2}-round` : ""}`
12021
12034
  },
12022
12035
  renderLeftIn(),
12023
- /* @__PURE__ */ React.createElement("div", { className: "nut-searchbar-input-box" }, renderField()),
12036
+ /* @__PURE__ */ React.createElement(components.View, { className: "nut-searchbar-input-box" }, renderField()),
12024
12037
  clearable && !value && renderRightIn(),
12025
12038
  clearable && value && handleClear()
12026
12039
  ),
12027
12040
  renderRight()
12028
12041
  );
12029
12042
  };
12030
- SearchBar.defaultProps = defaultProps$O;
12031
12043
  SearchBar.displayName = "NutSearchBar";
12032
12044
  const defaultProps$N = {
12033
12045
  ...ComponentDefaults,
@@ -12039,13 +12051,13 @@ var __publicField = (obj, key, value) => {
12039
12051
  // 1~6
12040
12052
  autoFocus: false
12041
12053
  };
12042
- const ShortPassword = (props) => {
12054
+ const InternalShortPassword = (props, ref) => {
12043
12055
  const { locale } = useConfig$1();
12044
12056
  const {
12045
12057
  title,
12046
12058
  description,
12047
12059
  tips,
12048
- visible,
12060
+ visible: deleteVisible,
12049
12061
  value,
12050
12062
  error,
12051
12063
  hideFooter,
@@ -12076,6 +12088,20 @@ var __publicField = (obj, key, value) => {
12076
12088
  const format2 = (val) => {
12077
12089
  return val.slice(0, comLen);
12078
12090
  };
12091
+ const [visible, setVisible] = usePropsValue({
12092
+ value: props.visible,
12093
+ defaultValue: false,
12094
+ finalValue: false
12095
+ });
12096
+ const actions = {
12097
+ open: () => {
12098
+ setVisible(true);
12099
+ },
12100
+ close: () => {
12101
+ setVisible(false);
12102
+ }
12103
+ };
12104
+ React.useImperativeHandle(ref, () => actions);
12079
12105
  const [inputValue, setInputValue] = usePropsValue({ value, onChange });
12080
12106
  React.useEffect(() => {
12081
12107
  if (visible && autoFocus) {
@@ -12108,11 +12134,10 @@ var __publicField = (obj, key, value) => {
12108
12134
  },
12109
12135
  /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), style }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-title` }, title || locale.shortpassword.title), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-description` }, description || locale.shortpassword.description), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input`, onClick: onFocus }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input-site` }), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input-fake` }, [...new Array(comLen).keys()].map((item, index) => {
12110
12136
  return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input-fake-li`, key: index }, inputValue.length > index && /* @__PURE__ */ React.createElement(React.Fragment, null, plain ? inputValue[index] : /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input-fake-li-icon` })));
12111
- }))), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message-error` }, error), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message-forget`, onClick: onTips }, tips || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(z, { size: 11, style: { marginRight: "3px" } }), locale.shortpassword.tips))), !hideFooter && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-cancel`, onClick: onCancel }, locale.cancel), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-sure`, onClick: sure }, locale.confirm)))
12137
+ }))), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message-error` }, error), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message-forget`, onClick: onTips }, tips || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(z, { size: 11 }), locale.shortpassword.tips))), !hideFooter && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-cancel`, onClick: onCancel }, locale.cancel), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-sure`, onClick: sure }, locale.confirm)))
12112
12138
  );
12113
12139
  };
12114
- ShortPassword.defaultProps = defaultProps$N;
12115
- ShortPassword.displayName = "NutShortPassword";
12140
+ const ShortPassword = React.forwardRef(InternalShortPassword);
12116
12141
  const defaultProps$M = {
12117
12142
  ...ComponentDefaults,
12118
12143
  canvasId: "spcanvas",
@@ -13160,6 +13185,7 @@ var __publicField = (obj, key, value) => {
13160
13185
  return /* @__PURE__ */ React.createElement(
13161
13186
  Popup,
13162
13187
  {
13188
+ ...rest,
13163
13189
  round: true,
13164
13190
  visible,
13165
13191
  position: "bottom",
@@ -14938,7 +14964,7 @@ var __publicField = (obj, key, value) => {
14938
14964
  const classPrefix2 = "nut-skeleton";
14939
14965
  const classes = classNames(classPrefix2, className);
14940
14966
  const avatarClass = classNames({
14941
- avatar: true,
14967
+ [`nut-avatar`]: true,
14942
14968
  [`avatar-${avatarShape}`]: avatarShape
14943
14969
  });
14944
14970
  const repeatLines = (num) => {
@@ -14956,7 +14982,7 @@ var __publicField = (obj, key, value) => {
14956
14982
  height: "50px"
14957
14983
  };
14958
14984
  };
14959
- return /* @__PURE__ */ React.createElement(React.Fragment, null, visible ? /* @__PURE__ */ React.createElement("div", null, children) : /* @__PURE__ */ React.createElement("div", { className: classes, ...rest }, animated && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-animation` }), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content` }, avatar && /* @__PURE__ */ React.createElement(
14985
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, visible ? /* @__PURE__ */ React.createElement(React.Fragment, null, children) : /* @__PURE__ */ React.createElement("div", { className: classes, ...rest }, animated && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-animation` }), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content` }, avatar && /* @__PURE__ */ React.createElement(
14960
14986
  Avatar,
14961
14987
  {
14962
14988
  className: avatarClass,
@@ -18096,79 +18122,98 @@ var __publicField = (obj, key, value) => {
18096
18122
  ...defaultProps$6,
18097
18123
  ...props
18098
18124
  };
18099
- const [styleList, setStyleList] = React.useState([]);
18100
- const [baItemList, setBaItemList] = React.useState(list);
18101
- const barrageListSet = React.useRef(list);
18102
18125
  const barrageBody = React.useRef(null);
18103
18126
  const barrageContainer = React.useRef(null);
18104
- const timeId = React.useRef((/* @__PURE__ */ new Date()).getTime());
18127
+ const barrageCWidth = React.useRef(0);
18105
18128
  const timer = React.useRef(0);
18106
- const classes = classNames(
18107
- classPrefix$1,
18108
- {
18109
- [`${classPrefix$1}-body${timeId.current}`]: true
18110
- },
18111
- className
18112
- );
18129
+ const index = React.useRef(0);
18130
+ const times = React.useRef([]);
18131
+ const historyIndex = React.useRef(-1);
18132
+ const classes = classNames(classPrefix$1, className);
18113
18133
  React.useImperativeHandle(ref, () => ({
18114
18134
  add: (word) => {
18115
- barrageListSet.current = [...barrageListSet.current, word];
18116
- run();
18135
+ const _index = index.current % list.length;
18136
+ if (!loop && index.current === list.length) {
18137
+ list.splice(list.length, 0, word);
18138
+ } else {
18139
+ list.splice(_index, 0, word);
18140
+ }
18117
18141
  }
18118
18142
  }));
18143
+ const getNodeWidth = async (node, type2 = "width") => {
18144
+ if (node) {
18145
+ const refe = await getRectByTaro(node);
18146
+ return Math.ceil(type2 === "height" ? refe.height : refe.width);
18147
+ }
18148
+ return 0;
18149
+ };
18119
18150
  React.useEffect(() => {
18120
- barrageListSet.current = [...list];
18121
- run();
18151
+ const init = async () => {
18152
+ if (barrageBody.current) {
18153
+ barrageCWidth.current = await getNodeWidth(barrageBody.current);
18154
+ }
18155
+ };
18156
+ init();
18157
+ setTimeout(() => {
18158
+ var _a;
18159
+ (_a = barrageBody.current) == null ? void 0 : _a.style.setProperty(
18160
+ "--move-distance",
18161
+ `-${barrageCWidth.current}px`
18162
+ );
18163
+ index.current = 0;
18164
+ run();
18165
+ }, 300);
18122
18166
  return () => {
18123
18167
  clearInterval(timer.current);
18124
18168
  };
18125
18169
  }, [list]);
18126
18170
  const run = () => {
18127
- setBaItemList(barrageListSet.current);
18128
- barrageListSet.current.forEach((item, index) => {
18129
- getNode(index);
18130
- });
18131
- };
18132
- const getNode = (index) => {
18133
- const query = Taro.createSelectorQuery();
18134
- setTimeout(() => {
18135
- let width = 100;
18136
- query.select(`.${classPrefix$1}-body${timeId.current}`).boundingClientRect((rec) => {
18137
- width = rec.width || 300;
18138
- });
18139
- query.select(`.${classPrefix$1}-item${index}`).boundingClientRect((recs) => {
18140
- const height = recs.height;
18141
- const nodeTop = `${index % rows * (height + gapY) + 20}px`;
18142
- styleInfo(index, nodeTop, width);
18143
- }).exec();
18144
- }, 500);
18171
+ clearInterval(timer.current);
18172
+ let intervalCache = interval;
18173
+ const _index = (loop ? index.current % list.length : index.current) % rows;
18174
+ const result = times.current[_index] - rows * interval;
18175
+ if (result > 0) {
18176
+ intervalCache += result;
18177
+ }
18178
+ timer.current = window.setTimeout(() => {
18179
+ play();
18180
+ }, intervalCache);
18145
18181
  };
18146
- const styleInfo = (index, nodeTop, width) => {
18147
- const timeIndex = index - rows > 0 ? index - rows : 0;
18148
- const list2 = styleList;
18149
- const time = list2[timeIndex] ? Number(list2[timeIndex]["--time"]) : 0;
18150
- const obj = {
18151
- top: nodeTop,
18152
- "--time": `${interval * index + time}`,
18153
- animationDuration: `${duration}ms`,
18154
- animationIterationCount: `${loop ? "infinite" : 1}`,
18155
- animationDelay: `${interval * index + time}ms`,
18156
- "--move-distance": `-${width}px`
18157
- };
18158
- list2.push(obj);
18159
- setStyleList([...list2]);
18182
+ const play = async () => {
18183
+ if (!loop && index.current >= list.length) {
18184
+ return;
18185
+ }
18186
+ const _index = loop ? index.current % list.length : index.current;
18187
+ const el = document.createElement(`View`);
18188
+ let currentIndex = _index % rows;
18189
+ if (currentIndex <= historyIndex.current || historyIndex.current === 3 && currentIndex !== 0 || Math.abs(currentIndex - historyIndex.current) !== 1) {
18190
+ currentIndex = historyIndex.current + 1 >= rows ? 0 : historyIndex.current + 1;
18191
+ }
18192
+ historyIndex.current = currentIndex;
18193
+ el.innerHTML = list[_index];
18194
+ el.classList.add("barrage-item");
18195
+ barrageContainer.current.appendChild(el);
18196
+ try {
18197
+ const width = await getNodeWidth(el);
18198
+ const height = await getNodeWidth(el, "height");
18199
+ el.classList.add("move");
18200
+ const elScrollDuration = width / barrageCWidth.current * duration;
18201
+ times.current[currentIndex] = Math.ceil(elScrollDuration);
18202
+ el.style.animationDuration = `${(duration + elScrollDuration).toFixed(
18203
+ 2
18204
+ )}ms`;
18205
+ el.style.top = `${currentIndex * (height + gapY) + 20}px`;
18206
+ el.style.width = `${width}px`;
18207
+ } catch (error) {
18208
+ console.log("异常自动流转到下一个");
18209
+ }
18210
+ el.addEventListener("animationend", () => {
18211
+ barrageContainer.current.removeChild(el);
18212
+ });
18213
+ index.current++;
18214
+ run();
18160
18215
  };
18161
- return /* @__PURE__ */ React.createElement("div", { className: classes, ref: barrageBody, ...restProps }, /* @__PURE__ */ React.createElement("div", { ref: barrageContainer, className: "bContainer" }, baItemList.map((item, index) => {
18162
- return /* @__PURE__ */ React.createElement(
18163
- "div",
18164
- {
18165
- className: `barrage-item ${classPrefix$1}-item${index} move`,
18166
- style: styleList[index],
18167
- key: index
18168
- },
18169
- item.length > 8 ? `${item.substr(0, 8)}...` : item
18170
- );
18171
- })));
18216
+ return /* @__PURE__ */ React.createElement(components.View, { className: classes, ref: barrageBody, ...restProps }, /* @__PURE__ */ React.createElement(components.View, { ref: barrageContainer, className: "bContainer" }));
18172
18217
  };
18173
18218
  const Barrage = React.forwardRef(
18174
18219
  InternalBarrage