@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.
- package/CHANGELOG.md +22 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/ActionSheet.js +1 -13
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Address.js +1 -21
- package/dist/esm/Animate/style/style.css +1 -1
- package/dist/esm/Animate.js +1 -4
- package/dist/esm/AnimatingNumbers.js +1 -1
- package/dist/esm/Audio/style/style.css +1 -1
- package/dist/esm/Audio.js +1 -15
- package/dist/esm/Avatar.js +1 -10
- package/dist/esm/AvatarCropper.js +1 -10
- package/dist/esm/AvatarGroup.js +1 -4
- package/dist/esm/BackTop.js +1 -6
- package/dist/esm/Badge/style/style.css +1 -1
- package/dist/esm/Badge.js +1 -4
- package/dist/esm/Barrage/style/style.css +1 -1
- package/dist/esm/Barrage.js +1 -5
- package/dist/esm/Button.js +1 -6
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/Calendar.js +1 -20
- package/dist/esm/CalendarCard.js +1 -8
- package/dist/esm/CalendarItem.js +1 -12
- package/dist/esm/Card/style/style.css +1 -1
- package/dist/esm/Card.js +1 -7
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/Cascader.js +1 -18
- package/dist/esm/Cell.js +1 -5
- package/dist/esm/CellGroup.js +1 -4
- package/dist/esm/Checkbox/style/style.css +1 -1
- package/dist/esm/Checkbox.js +1 -7
- package/dist/esm/CheckboxGroup/style/style.css +1 -1
- package/dist/esm/CheckboxGroup.js +1 -7
- package/dist/esm/CircleProgress.js +1 -6
- package/dist/esm/Col/style/style.css +1 -1
- package/dist/esm/Col.js +1 -5
- package/dist/esm/Collapse/style/style.css +1 -1
- package/dist/esm/Collapse.js +1 -8
- package/dist/esm/CollapseItem/style/style.css +1 -1
- package/dist/esm/CollapseItem.js +1 -5
- package/dist/esm/ConfigProvider.js +2 -5
- package/dist/esm/CountDown.js +1 -7
- package/dist/esm/DatePicker/style/style.css +1 -1
- package/dist/esm/DatePicker.js +1 -21
- package/dist/esm/Dialog/style/style.css +1 -1
- package/dist/esm/Dialog.js +1 -16
- package/dist/esm/Divider/style/style.css +1 -1
- package/dist/esm/Divider.js +1 -4
- package/dist/esm/Drag.js +1 -4
- package/dist/esm/Elevator.js +1 -6
- package/dist/esm/Ellipsis.js +1 -7
- package/dist/esm/Empty.js +1 -9
- package/dist/esm/FixedNav.js +1 -13
- package/dist/esm/Form/style/style.css +1 -1
- package/dist/esm/Form.js +3 -4
- package/dist/esm/FormItem/style/style.css +1 -1
- package/dist/esm/FormItem.js +1 -6
- package/dist/esm/Grid/style/style.css +1 -1
- package/dist/esm/Grid.js +1 -7
- package/dist/esm/GridItem/style/style.css +1 -1
- package/dist/esm/GridItem.js +1 -6
- package/dist/esm/Image.js +1 -7
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/ImagePreview.js +1 -20
- package/dist/esm/Indicator/style/style.css +1 -1
- package/dist/esm/Indicator.js +1 -3
- package/dist/esm/InfiniteLoading.js +1 -8
- package/dist/esm/Input.js +1 -11
- package/dist/esm/InputNumber.js +1 -7
- package/dist/esm/Layout.js +1 -2
- package/dist/esm/Loading.js +1 -5
- package/dist/esm/Menu/style/style.css +1 -1
- package/dist/esm/Menu.js +1 -15
- package/dist/esm/MenuItem/style/style.css +1 -1
- package/dist/esm/MenuItem.js +1 -14
- package/dist/esm/NavBar/style/style.css +1 -1
- package/dist/esm/NavBar.js +1 -7
- package/dist/esm/NoticeBar/style/style.css +1 -1
- package/dist/esm/NoticeBar.js +1 -7
- package/dist/esm/Notify.js +1 -9
- package/dist/esm/NumberKeyboard/style/style.css +1 -1
- package/dist/esm/NumberKeyboard.js +1 -15
- package/dist/esm/Overlay.js +1 -9
- package/dist/esm/Pagination.js +1 -8
- package/dist/esm/Picker/style/style.css +1 -1
- package/dist/esm/Picker.js +1 -19
- package/dist/esm/Popover/style/style.css +1 -1
- package/dist/esm/Popover.js +1 -14
- package/dist/esm/Popup/style/style.css +1 -1
- package/dist/esm/Popup.js +1 -12
- package/dist/esm/Price/style/style.css +1 -1
- package/dist/esm/Price.js +1 -3
- package/dist/esm/Progress.js +1 -4
- package/dist/esm/PullToRefresh.js +1 -10
- package/dist/esm/Radio/style/style.css +1 -1
- package/dist/esm/Radio.js +1 -7
- package/dist/esm/RadioGroup/style/style.css +1 -1
- package/dist/esm/RadioGroup.js +1 -7
- package/dist/esm/Range/style/style.css +1 -1
- package/dist/esm/Range.js +1 -10
- package/dist/esm/Rate.js +1 -11
- package/dist/esm/Row.js +1 -5
- package/dist/esm/SafeArea.js +1 -3
- package/dist/esm/SearchBar/style/style.css +1 -1
- package/dist/esm/SearchBar.js +1 -7
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/ShortPassword.js +1 -17
- package/dist/esm/SideNavBar/style/style.css +1 -1
- package/dist/esm/SideNavBar.js +1 -14
- package/dist/esm/SideNavBarItem.js +1 -2
- package/dist/esm/Signature.js +1 -4
- package/dist/esm/Skeleton/style/style.css +1 -1
- package/dist/esm/Skeleton.js +1 -11
- package/dist/esm/Space.js +1 -3
- package/dist/esm/Step/style/style.css +1 -1
- package/dist/esm/Step.js +1 -6
- package/dist/esm/Steps/style/style.css +1 -1
- package/dist/esm/Steps.js +1 -5
- package/dist/esm/Sticky.js +1 -7
- package/dist/esm/SubSideNavBar.js +1 -3
- package/dist/esm/Swipe/style/style.css +1 -1
- package/dist/esm/Swipe.js +1 -8
- package/dist/esm/Swiper/style/style.css +1 -1
- package/dist/esm/Swiper.js +3 -3
- package/dist/esm/SwiperItem.js +1 -2
- package/dist/esm/Switch/style/style.css +1 -1
- package/dist/esm/Switch.js +1 -5
- package/dist/esm/TabPane.js +1 -3
- package/dist/esm/Tabbar/style/style.css +1 -1
- package/dist/esm/Tabbar.js +1 -8
- package/dist/esm/TabbarItem/style/style.css +1 -1
- package/dist/esm/TabbarItem.js +1 -5
- package/dist/esm/Table/style/style.css +1 -1
- package/dist/esm/Table.js +1 -9
- package/dist/esm/Tabs/style/style.css +1 -1
- package/dist/esm/Tabs.js +1 -11
- package/dist/esm/Tag.js +1 -5
- package/dist/esm/TextArea/style/style.css +1 -1
- package/dist/esm/TextArea.js +1 -10
- package/dist/esm/TimeDetail.js +1 -4
- package/dist/esm/TimeSelect/style/style.css +1 -1
- package/dist/esm/TimeSelect.js +1 -16
- package/dist/esm/Toast.js +1 -15
- package/dist/esm/Tour/style/style.css +1 -1
- package/dist/esm/Tour.js +1 -16
- package/dist/esm/TrendArrow.js +1 -4
- package/dist/esm/Uploader.js +1 -14
- package/dist/esm/Video.js +1 -4
- package/dist/esm/VirtualList/style/style.css +1 -1
- package/dist/esm/VirtualList.js +1 -6
- package/dist/esm/WaterMark.js +1 -7
- package/dist/esm/{actionsheet.taro-6NiOrNyd.js → actionsheet.taro-EwM5KF1i.js} +3 -3
- package/dist/esm/{address.taro-B54ZOtmo.js → address.taro-BL-QeHyn.js} +5 -5
- package/dist/esm/{animate.taro-m67VyUHP.js → animate.taro-50C7ngw9.js} +1 -1
- package/dist/esm/{audio.taro-dJgj5qIu.js → audio.taro-DWSPma8f.js} +4 -4
- package/dist/esm/{avatar.taro-7ltbzIdY.js → avatar.taro-Bjfoms0J.js} +3 -3
- package/dist/esm/{avatarcropper.taro-GIZxzMJ_.js → avatarcropper.taro-BRPMDUrl.js} +4 -4
- package/dist/esm/{avatargroup.taro-h6dpv6UX.js → avatargroup.taro-CXnMGdp1.js} +1 -1
- package/dist/esm/{backtop.taro-Y3vOJiXq.js → backtop.taro-Ux0Nrvkj.js} +2 -2
- package/dist/esm/{badge.taro-993L861f.js → badge.taro-B4a7dAtf.js} +1 -1
- package/dist/esm/barrage.taro-DW7wFS3Q.js +118 -0
- package/dist/esm/{button.taro-3IIFy1M2.js → button.taro-COS5LtYd.js} +1 -1
- package/dist/esm/{calendar.taro-iNNHje7V.js → calendar.taro-CruXd4DL.js} +5 -5
- package/dist/esm/{calendarcard.taro-9s7naGmU.js → calendarcard.taro-CqLW3m5r.js} +3 -3
- package/dist/esm/{calendaritem.taro-o6Z8OOGY.js → calendaritem.taro-DxCnbpt9.js} +5 -5
- package/dist/esm/{card.taro-p4PTy-IU.js → card.taro-CaR3kJw9.js} +3 -3
- package/dist/esm/{cascader.taro-BxyK5ybo.js → cascader.taro-DxedRnNS.js} +6 -7
- package/dist/esm/{cell.taro-jD6MoFTj.js → cell.taro-BlmoMAPC.js} +2 -2
- package/dist/esm/{cellgroup.taro-08A3XAze.js → cellgroup.taro-DYkCnAYN.js} +1 -1
- package/dist/esm/{checkbox.taro-xMxWdpyI.js → checkbox.taro-B2rk4RIe.js} +2 -2
- package/dist/esm/{circleprogress.taro-myZgamBw.js → circleprogress.taro-Ce69a8ZO.js} +3 -3
- package/dist/esm/{col.taro-5FMpttLE.js → col.taro-Czx3Daw2.js} +2 -2
- package/dist/esm/{collapse.taro-sZibDygv.js → collapse.taro-kDtcoxSd.js} +3 -3
- package/dist/esm/{collapseitem.taro-AaQ_msgd.js → collapseitem.taro-BGPS4t_l.js} +1 -1
- package/dist/esm/{configprovider.taro-q5J2gQbi.js → configprovider.taro-BXergk04.js} +1 -1
- package/dist/esm/{countdown.taro-XZlfWBrA.js → countdown.taro-CkIt0qI3.js} +3 -3
- package/dist/esm/{datepicker.taro-DrXkqJkN.js → datepicker.taro-GAD7C5yn.js} +5 -5
- package/dist/esm/{dialog.taro-dmQGDu3o.js → dialog.taro-UjZY2h35.js} +4 -4
- package/dist/esm/{divider.taro-H5fKry4P.js → divider.taro-C4sK6QMP.js} +1 -1
- package/dist/esm/{drag.taro-BwcleRuB.js → drag.taro-ByrsVbeB.js} +1 -1
- package/dist/esm/{elevator.taro-2nbUM3vH.js → elevator.taro-BxW3Xte-.js} +1 -1
- package/dist/esm/{ellipsis.taro-VApVqS_j.js → ellipsis.taro-CKXiIrwO.js} +2 -2
- package/dist/esm/{empty.taro-gwvOr1xf.js → empty.taro-BCBOBl64.js} +3 -3
- package/dist/esm/{fixednav.taro-QVBXysDj.js → fixednav.taro-Cdn0eyJ8.js} +3 -3
- package/dist/esm/{formitem.taro-atY4A0pS.js → formitem.taro-yAquq6MF.js} +44 -15
- package/dist/esm/{grid.taro-3X-_AhXw.js → grid.taro-BqwDc6zi.js} +2 -2
- package/dist/esm/{griditem.taro-TJDJVeQy.js → griditem.taro-BqS5eUJd.js} +2 -2
- package/dist/esm/{image.taro-FfeikBlO.js → image.taro-W45-Ju0_.js} +1 -1
- package/dist/esm/{imagepreview.taro--fVrJUOE.js → imagepreview.taro-CLgk3WWD.js} +5 -5
- package/dist/esm/{infiniteloading.taro-BO0_y46K.js → infiniteloading.taro-7Q9OFjQJ.js} +2 -2
- package/dist/esm/{input.taro-YoPsV-op.js → input.taro-CfP5WI8f.js} +7 -4
- package/dist/esm/inputnumber.taro-BV3Ecr1e.js +169 -0
- package/dist/esm/{loading.taro-aHN6xLIT.js → loading.taro-BEIQQqUL.js} +1 -1
- package/dist/esm/{menu.taro-ODwHYGFM.js → menu.taro-DqBJzQBE.js} +2 -2
- package/dist/esm/{menuitem.taro-9nyTDLpt.js → menuitem.taro-KGs5VqRI.js} +4 -4
- package/dist/esm/{navbar.taro-AuKPDCaW.js → navbar.taro-Cv0XsdT0.js} +2 -2
- package/dist/esm/{noticebar.taro-bHnEzTvL.js → noticebar.taro-BrVbtxH_.js} +2 -2
- package/dist/esm/{notify.taro-mA9KS8qh.js → notify.taro-DblYP9in.js} +2 -2
- package/dist/esm/{numberkeyboard.taro-bF6VCXry.js → numberkeyboard.taro-DHpKwvHG.js} +3 -3
- package/dist/esm/nutui-react.es.js +93 -118
- package/dist/esm/{overlay.taro-HsGeVyPh.js → overlay.taro-ByBhOQNL.js} +3 -3
- package/dist/esm/{pagination.taro-C4_Ey5KC.js → pagination.taro-BEuRb-o7.js} +3 -3
- package/dist/esm/{picker.taro-csU3SZPF.js → picker.taro-kFY-CGKh.js} +8 -8
- package/dist/esm/{popover.taro-qldQwLPC.js → popover.taro-BZLerpsZ.js} +3 -3
- package/dist/esm/{popup.taro-ObEUml4r.js → popup.taro-44018H4d.js} +2 -2
- package/dist/esm/{price.taro-Z1zR8YWV.js → price.taro-_NRkxuMH.js} +1 -1
- package/dist/esm/{progress.taro-pStvlrbA.js → progress.taro-CVaqKXtL.js} +1 -1
- package/dist/esm/{pulltorefresh.taro-2jER8Mat.js → pulltorefresh.taro-uDgX9gWA.js} +3 -3
- package/dist/esm/{radio.taro-EKJXMjnX.js → radio.taro-C70KYJbH.js} +2 -2
- package/dist/esm/{range.taro-mDYY3SXA.js → range.taro-CIkFRE-4.js} +4 -4
- package/dist/esm/{rate.taro-_5Mjd_EO.js → rate.taro-BAWEa8tE.js} +4 -4
- package/dist/esm/{row.taro-IxNlKKQM.js → row.taro-BrJsteWh.js} +2 -2
- package/dist/esm/{searchbar.taro-hVzdT6nI.js → searchbar.taro-Dfwiv4oP.js} +30 -24
- package/dist/esm/{shortpassword.taro-bZCwIpEn.js → shortpassword.taro-C3QLh5Lg.js} +23 -10
- package/dist/esm/{sidenavbar.taro-8qoGZg5n.js → sidenavbar.taro-DQY5m1Bu.js} +3 -3
- package/dist/esm/{signature.taro-y3qxnKMv.js → signature.taro-BWfscsm1.js} +1 -1
- package/dist/esm/{skeleton.taro-Pg7WtP0e.js → skeleton.taro-DNPlesx9.js} +4 -4
- package/dist/esm/{step.taro-_DEZqFGb.js → step.taro-CIwl4EYN.js} +2 -2
- package/dist/esm/{steps.taro-PH0qWPla.js → steps.taro-IN9BqTug.js} +2 -2
- package/dist/esm/{sticky.taro-MmKUU2Wv.js → sticky.taro-DK45VevL.js} +4 -4
- package/dist/esm/{subsidenavbar.taro-Zy52MDDG.js → subsidenavbar.taro-C315xYFY.js} +1 -1
- package/dist/esm/{swipe.taro-p2ONOq1o.js → swipe.taro-ACO0JU5m.js} +3 -3
- package/dist/esm/{switch.taro-L0BAbMeu.js → switch.taro-bC4bQM5Q.js} +2 -2
- package/dist/esm/{tabbar.taro-QE0rjSKE.js → tabbar.taro-DhhFGx1g.js} +3 -3
- package/dist/esm/{tabbaritem.taro-t9C07OYX.js → tabbaritem.taro-Dh4Ah1BN.js} +2 -2
- package/dist/esm/{table.taro-0zRh2hq6.js → table.taro-q5Hyb-LU.js} +3 -3
- package/dist/esm/{tabs.taro-w8ra49Qb.js → tabs.taro-CwhQTV-u.js} +6 -6
- package/dist/esm/{tag.taro-5KC_wObY.js → tag.taro-CkWLhERR.js} +1 -1
- package/dist/esm/{textarea.taro-9zQLTCwU.js → textarea.taro-DHKSJq_a.js} +3 -3
- package/dist/esm/{timedetail.taro-TF9Wcblh.js → timedetail.taro-B3s7HEEX.js} +1 -1
- package/dist/esm/{timeselect.taro-j8LgSCe5.js → timeselect.taro-uhIUQE1A.js} +4 -4
- package/dist/esm/{toast.taro-xnEQSCDJ.js → toast.taro-Hb0vdac6.js} +4 -4
- package/dist/esm/{tour.taro-CGEjzzN_.js → tour.taro-BXMR1Ftl.js} +2 -2
- package/dist/esm/{trendarrow.taro-hsM6-XsQ.js → trendarrow.taro-B5XMr2ZK.js} +1 -1
- package/dist/esm/types/src/packages/formitem/formitem.d.ts +6 -2
- package/dist/esm/types/src/packages/formitem/formitem.taro.d.ts +6 -2
- package/dist/esm/types/src/packages/inputnumber/inputnumber.d.ts +15 -15
- package/dist/esm/types/src/packages/inputnumber/inputnumber.taro.d.ts +15 -17
- package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +11 -19
- package/dist/esm/types/src/packages/shortpassword/shortpassword.d.ts +3 -2
- package/dist/esm/types/src/packages/shortpassword/shortpassword.taro.d.ts +3 -2
- package/dist/esm/types/src/packages/shortpassword/types.d.ts +4 -0
- package/dist/esm/{uploader.taro-bRF02TR9.js → uploader.taro-CH1KgoFE.js} +6 -6
- package/dist/esm/{use-custom-event-XvsODK8c.js → use-custom-event-BFZJeHQI.js} +2 -2
- package/dist/esm/{use-props-value-vKr0R0AX.js → use-props-value-DvrH7S--.js} +1 -1
- package/dist/esm/{virtuallist.taro-AeTVtFFa.js → virtuallist.taro-B1TrMg9X.js} +1 -1
- package/dist/esm/{watermark.taro-nvSmcwu-.js → watermark.taro-CzjMPcgm.js} +2 -2
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +523 -478
- package/dist/nutui.react.umd.js +523 -478
- package/dist/packages/animate/animate.scss +0 -27
- package/dist/packages/audio/audio.scss +0 -5
- package/dist/packages/avatarcropper/avatarcropper.scss +0 -2
- package/dist/packages/badge/badge.scss +7 -0
- package/dist/packages/barrage/barrage.scss +23 -4
- package/dist/packages/button/button.scss +0 -1
- package/dist/packages/calendar/calendar.scss +4 -4
- package/dist/packages/calendarcard/calendarcard.scss +0 -1
- package/dist/packages/cascader/cascader.scss +0 -1
- package/dist/packages/checkbox/checkbox.scss +0 -2
- package/dist/packages/checkboxgroup/checkboxgroup.scss +1 -3
- package/dist/packages/col/col.scss +2 -2
- package/dist/packages/collapseitem/collapseitem.scss +2 -3
- package/dist/packages/dialog/dialog.scss +4 -0
- package/dist/packages/divider/divider.scss +1 -1
- package/dist/packages/fixednav/fixednav.scss +0 -2
- package/dist/packages/form/form.scss +24 -26
- package/dist/packages/formitem/formitem.scss +0 -1
- package/dist/packages/grid/grid.scss +1 -1
- package/dist/packages/griditem/griditem.scss +28 -26
- package/dist/packages/imagepreview/imagepreview.scss +0 -1
- package/dist/packages/indicator/indicator.scss +2 -3
- package/dist/packages/menu/menu.scss +0 -7
- package/dist/packages/menuitem/menuitem.scss +14 -10
- package/dist/packages/navbar/navbar.scss +3 -5
- package/dist/packages/noticebar/noticebar.scss +20 -0
- package/dist/packages/numberkeyboard/numberkeyboard.scss +25 -18
- package/dist/packages/pagination/pagination.scss +0 -2
- package/dist/packages/picker/picker.scss +9 -0
- package/dist/packages/popover/popover.scss +0 -4
- package/dist/packages/popup/popup.scss +4 -19
- package/dist/packages/price/price.scss +1 -0
- package/dist/packages/radio/radio.scss +0 -1
- package/dist/packages/radiogroup/radiogroup.scss +10 -1
- package/dist/packages/range/range.scss +127 -127
- package/dist/packages/rate/rate.scss +0 -1
- package/dist/packages/searchbar/searchbar.scss +5 -2
- package/dist/packages/shortpassword/shortpassword.scss +4 -0
- package/dist/packages/skeleton/skeleton.scss +13 -3
- package/dist/packages/space/space.scss +0 -1
- package/dist/packages/step/step.scss +21 -25
- package/dist/packages/swipe/swipe.scss +0 -15
- package/dist/packages/swiper/swiper.scss +0 -1
- package/dist/packages/switch/switch.scss +11 -0
- package/dist/packages/table/table.scss +4 -5
- package/dist/packages/tabs/tabs.scss +16 -18
- package/dist/packages/tag/tag.scss +0 -1
- package/dist/packages/textarea/textarea.scss +1 -6
- package/dist/packages/timeselect/timeselect.scss +1 -6
- package/dist/packages/tour/tour.scss +1 -5
- package/dist/packages/trendarrow/trendarrow.scss +0 -1
- package/dist/packages/uploader/uploader.scss +0 -1
- package/dist/packages/virtuallist/virtuallist.scss +12 -12
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables.scss +11 -7
- package/dist/types/index.d.ts +98 -98
- package/dist/types/packages/actionsheet/actionsheet.d.ts +1 -1
- package/dist/types/packages/actionsheet/actionsheet.taro.d.ts +1 -1
- package/dist/types/packages/address/address.d.ts +1 -1
- package/dist/types/packages/address/address.taro.d.ts +1 -1
- package/dist/types/packages/address/customRender.d.ts +1 -1
- package/dist/types/packages/address/customRender.taro.d.ts +1 -1
- package/dist/types/packages/avatar/avatar.d.ts +1 -1
- package/dist/types/packages/avatar/avatar.taro.d.ts +1 -1
- package/dist/types/packages/calendaritem/calendaritem.d.ts +1 -1
- package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -1
- package/dist/types/packages/cascader/cascader.d.ts +1 -1
- package/dist/types/packages/cascader/cascader.taro.d.ts +1 -1
- package/dist/types/packages/cell/cell.d.ts +1 -1
- package/dist/types/packages/cell/cell.taro.d.ts +1 -1
- package/dist/types/packages/checkbox/checkbox.d.ts +2 -2
- package/dist/types/packages/checkbox/checkbox.taro.d.ts +2 -2
- package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +2 -2
- package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
- package/dist/types/packages/datepicker/datepicker.d.ts +1 -1
- package/dist/types/packages/datepicker/datepicker.taro.d.ts +1 -1
- package/dist/types/packages/dialog/dialogwrap.d.ts +1 -1
- package/dist/types/packages/empty/empty.d.ts +1 -1
- package/dist/types/packages/fixednav/fixednav.d.ts +1 -1
- package/dist/types/packages/fixednav/fixednav.taro.d.ts +1 -1
- package/dist/types/packages/form/form.d.ts +1 -1
- package/dist/types/packages/form/form.taro.d.ts +1 -1
- package/dist/types/packages/form/index.d.ts +1 -1
- package/dist/types/packages/form/index.taro.d.ts +1 -1
- package/dist/types/packages/formitem/formitem.d.ts +6 -2
- package/dist/types/packages/formitem/formitem.taro.d.ts +14 -2
- package/dist/types/packages/inputnumber/inputnumber.d.ts +15 -15
- package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +28 -30
- package/dist/types/packages/menu/menu.d.ts +1 -1
- package/dist/types/packages/menu/menu.taro.d.ts +1 -1
- package/dist/types/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
- package/dist/types/packages/numberkeyboard/numberkeyboard.taro.d.ts +1 -1
- package/dist/types/packages/nutui.react.build.d.ts +98 -98
- package/dist/types/packages/nutui.react.d.ts +98 -98
- package/dist/types/packages/nutui.react.taro.d.ts +98 -98
- package/dist/types/packages/picker/picker.d.ts +1 -1
- package/dist/types/packages/picker/picker.taro.d.ts +1 -1
- package/dist/types/packages/popover/popover.d.ts +1 -1
- package/dist/types/packages/popover/popover.taro.d.ts +1 -1
- package/dist/types/packages/popup/popup.d.ts +1 -1
- package/dist/types/packages/popup/popup.taro.d.ts +1 -1
- package/dist/types/packages/radio/radio.d.ts +2 -2
- package/dist/types/packages/radio/radio.taro.d.ts +2 -2
- package/dist/types/packages/searchbar/searchbar.taro.d.ts +21 -15
- package/dist/types/packages/shortpassword/shortpassword.d.ts +4 -3
- package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +4 -3
- package/dist/types/packages/shortpassword/types.d.ts +4 -0
- package/dist/types/packages/swiper/index.d.ts +1 -1
- package/dist/types/packages/swiper/index.taro.d.ts +1 -1
- package/dist/types/packages/tabs/tabs.d.ts +1 -1
- package/dist/types/packages/tabs/tabs.taro.d.ts +1 -1
- package/dist/types/packages/timedetail/timedetail.d.ts +1 -1
- package/dist/types/packages/timedetail/timedetail.taro.d.ts +1 -1
- package/dist/types/packages/tour/tour.d.ts +1 -1
- package/dist/types/packages/tour/tour.taro.d.ts +1 -1
- package/package.json +5 -5
- package/dist/esm/barrage.taro-HsivAhbE.js +0 -91
- package/dist/esm/inputnumber.taro-7QptygT3.js +0 -197
- /package/dist/esm/{UserContext-9BL0cq8w.js → UserContext-BlM0373q.js} +0 -0
- /package/dist/esm/{context-6mGEMLsx.js → context-4T-L2x0_.js} +0 -0
- /package/dist/esm/{context-9BL0cq8w.js → context-BlM0373q.js} +0 -0
- /package/dist/esm/{date-nxKOxj5-.js → date-D0pth0qC.js} +0 -0
- /package/dist/esm/{get-rect-by-taro-piSHvCGp.js → get-rect-by-taro-BnfHyJJb.js} +0 -0
- /package/dist/esm/{get-scroll-parent-uywvoQMl.js → get-scroll-parent-DB1VRg11.js} +0 -0
- /package/dist/esm/{index-YvHA__3D.js → index-DeNfBlua.js} +0 -0
- /package/dist/esm/{index-oitVOJp9.js → index-nbt45_aK.js} +0 -0
- /package/dist/esm/{indicator.taro-ZH6MICsS.js → indicator.taro-dqWsdoRo.js} +0 -0
- /package/dist/esm/{layout.taro-lnN-wB0Y.js → layout.taro-DQc4VjqF.js} +0 -0
- /package/dist/esm/{pad-zero-iY-0-oys.js → pad-zero-B2OUQfh7.js} +0 -0
- /package/dist/esm/{px-check-JiWLYN2v.js → px-check-D1Xbd9pj.js} +0 -0
- /package/dist/esm/{raf-UzmDvMUW.js → raf-zwv-SBjP.js} +0 -0
- /package/dist/esm/{safearea.taro-afu_mY7g.js → safearea.taro-BMQHr7tu.js} +0 -0
- /package/dist/esm/{sidenavbaritem.taro-AxJNRAdi.js → sidenavbaritem.taro-Bp-s9bWO.js} +0 -0
- /package/dist/esm/{space.taro-q3R_yq79.js → space.taro-rvVRQ2Nl.js} +0 -0
- /package/dist/esm/{swiperitem.taro-BC1CE0T-.js → swiperitem.taro-CjcW-KYA.js} +0 -0
- /package/dist/esm/{tabpane.taro-5k7wWimS.js → tabpane.taro-Lkwp7scD.js} +0 -0
- /package/dist/esm/{typings-buMpDfSR.js → typings-DV9RBfhj.js} +0 -0
- /package/dist/esm/{use-force-update-0oEVD8Nr.js → use-force-update-CudFjCsy.js} +0 -0
- /package/dist/esm/{use-refs-IdrY0ww3.js → use-refs-BeEmziIR.js} +0 -0
- /package/dist/esm/{use-touch-BUFdkOSA.js → use-touch-OfEaR5qi.js} +0 -0
- /package/dist/esm/{video.taro-csvHwS2v.js → video.taro-kKcHksKW.js} +0 -0
package/dist/nutui.react.es.js
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
/*!
|
|
8
|
-
* @nutui/nutui-react-taro v2.3.
|
|
8
|
+
* @nutui/nutui-react-taro v2.3.11-patch.0 Wed Mar 26 2025 14:30:13 GMT+0800 (China Standard Time)
|
|
9
9
|
* (c) 2023 @jdf2e.
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
@@ -28,34 +28,44 @@ var classnames = { exports: {} };
|
|
|
28
28
|
(function() {
|
|
29
29
|
var hasOwn = {}.hasOwnProperty;
|
|
30
30
|
function classNames2() {
|
|
31
|
-
var classes =
|
|
31
|
+
var classes = "";
|
|
32
32
|
for (var i2 = 0; i2 < arguments.length; i2++) {
|
|
33
33
|
var arg = arguments[i2];
|
|
34
|
-
if (
|
|
35
|
-
|
|
36
|
-
var argType = typeof arg;
|
|
37
|
-
if (argType === "string" || argType === "number") {
|
|
38
|
-
classes.push(arg);
|
|
39
|
-
} else if (Array.isArray(arg)) {
|
|
40
|
-
if (arg.length) {
|
|
41
|
-
var inner = classNames2.apply(null, arg);
|
|
42
|
-
if (inner) {
|
|
43
|
-
classes.push(inner);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
} else if (argType === "object") {
|
|
47
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
48
|
-
classes.push(arg.toString());
|
|
49
|
-
continue;
|
|
50
|
-
}
|
|
51
|
-
for (var key in arg) {
|
|
52
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
53
|
-
classes.push(key);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
34
|
+
if (arg) {
|
|
35
|
+
classes = appendClass(classes, parseValue(arg));
|
|
56
36
|
}
|
|
57
37
|
}
|
|
58
|
-
return classes
|
|
38
|
+
return classes;
|
|
39
|
+
}
|
|
40
|
+
function parseValue(arg) {
|
|
41
|
+
if (typeof arg === "string" || typeof arg === "number") {
|
|
42
|
+
return arg;
|
|
43
|
+
}
|
|
44
|
+
if (typeof arg !== "object") {
|
|
45
|
+
return "";
|
|
46
|
+
}
|
|
47
|
+
if (Array.isArray(arg)) {
|
|
48
|
+
return classNames2.apply(null, arg);
|
|
49
|
+
}
|
|
50
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
51
|
+
return arg.toString();
|
|
52
|
+
}
|
|
53
|
+
var classes = "";
|
|
54
|
+
for (var key in arg) {
|
|
55
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
56
|
+
classes = appendClass(classes, key);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return classes;
|
|
60
|
+
}
|
|
61
|
+
function appendClass(value, newClass) {
|
|
62
|
+
if (!newClass) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
if (value) {
|
|
66
|
+
return value + " " + newClass;
|
|
67
|
+
}
|
|
68
|
+
return value + newClass;
|
|
59
69
|
}
|
|
60
70
|
if (module.exports) {
|
|
61
71
|
classNames2.default = classNames2;
|
|
@@ -1615,72 +1625,111 @@ function _inheritsLoose$1(subClass, superClass) {
|
|
|
1615
1625
|
_setPrototypeOf$1(subClass, superClass);
|
|
1616
1626
|
}
|
|
1617
1627
|
var propTypes = { exports: {} };
|
|
1618
|
-
var
|
|
1619
|
-
var
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
var
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1628
|
+
var reactIs = { exports: {} };
|
|
1629
|
+
var reactIs_production_min = {};
|
|
1630
|
+
/** @license React v16.13.1
|
|
1631
|
+
* react-is.production.min.js
|
|
1632
|
+
*
|
|
1633
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1634
|
+
*
|
|
1635
|
+
* This source code is licensed under the MIT license found in the
|
|
1636
|
+
* LICENSE file in the root directory of this source tree.
|
|
1637
|
+
*/
|
|
1638
|
+
var hasRequiredReactIs_production_min;
|
|
1639
|
+
function requireReactIs_production_min() {
|
|
1640
|
+
if (hasRequiredReactIs_production_min)
|
|
1641
|
+
return reactIs_production_min;
|
|
1642
|
+
hasRequiredReactIs_production_min = 1;
|
|
1643
|
+
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;
|
|
1644
|
+
function z2(a2) {
|
|
1645
|
+
if ("object" === typeof a2 && null !== a2) {
|
|
1646
|
+
var u = a2.$$typeof;
|
|
1647
|
+
switch (u) {
|
|
1648
|
+
case c2:
|
|
1649
|
+
switch (a2 = a2.type, a2) {
|
|
1650
|
+
case l:
|
|
1651
|
+
case m:
|
|
1652
|
+
case e2:
|
|
1653
|
+
case g2:
|
|
1654
|
+
case f:
|
|
1655
|
+
case p:
|
|
1656
|
+
return a2;
|
|
1657
|
+
default:
|
|
1658
|
+
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
1659
|
+
case k:
|
|
1660
|
+
case n:
|
|
1661
|
+
case t2:
|
|
1662
|
+
case r:
|
|
1663
|
+
case h2:
|
|
1664
|
+
return a2;
|
|
1665
|
+
default:
|
|
1666
|
+
return u;
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
case d2:
|
|
1670
|
+
return u;
|
|
1644
1671
|
}
|
|
1645
|
-
var err = new Error(
|
|
1646
|
-
"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"
|
|
1647
|
-
);
|
|
1648
|
-
err.name = "Invariant Violation";
|
|
1649
|
-
throw err;
|
|
1650
1672
|
}
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
objectOf: getShim,
|
|
1671
|
-
oneOf: getShim,
|
|
1672
|
-
oneOfType: getShim,
|
|
1673
|
-
shape: getShim,
|
|
1674
|
-
exact: getShim,
|
|
1675
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
1676
|
-
resetWarningCache: emptyFunction
|
|
1677
|
-
};
|
|
1678
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1679
|
-
return ReactPropTypes;
|
|
1673
|
+
}
|
|
1674
|
+
function A2(a2) {
|
|
1675
|
+
return z2(a2) === m;
|
|
1676
|
+
}
|
|
1677
|
+
reactIs_production_min.AsyncMode = l;
|
|
1678
|
+
reactIs_production_min.ConcurrentMode = m;
|
|
1679
|
+
reactIs_production_min.ContextConsumer = k;
|
|
1680
|
+
reactIs_production_min.ContextProvider = h2;
|
|
1681
|
+
reactIs_production_min.Element = c2;
|
|
1682
|
+
reactIs_production_min.ForwardRef = n;
|
|
1683
|
+
reactIs_production_min.Fragment = e2;
|
|
1684
|
+
reactIs_production_min.Lazy = t2;
|
|
1685
|
+
reactIs_production_min.Memo = r;
|
|
1686
|
+
reactIs_production_min.Portal = d2;
|
|
1687
|
+
reactIs_production_min.Profiler = g2;
|
|
1688
|
+
reactIs_production_min.StrictMode = f;
|
|
1689
|
+
reactIs_production_min.Suspense = p;
|
|
1690
|
+
reactIs_production_min.isAsyncMode = function(a2) {
|
|
1691
|
+
return A2(a2) || z2(a2) === l;
|
|
1680
1692
|
};
|
|
1681
|
-
|
|
1693
|
+
reactIs_production_min.isConcurrentMode = A2;
|
|
1694
|
+
reactIs_production_min.isContextConsumer = function(a2) {
|
|
1695
|
+
return z2(a2) === k;
|
|
1696
|
+
};
|
|
1697
|
+
reactIs_production_min.isContextProvider = function(a2) {
|
|
1698
|
+
return z2(a2) === h2;
|
|
1699
|
+
};
|
|
1700
|
+
reactIs_production_min.isElement = function(a2) {
|
|
1701
|
+
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
|
|
1702
|
+
};
|
|
1703
|
+
reactIs_production_min.isForwardRef = function(a2) {
|
|
1704
|
+
return z2(a2) === n;
|
|
1705
|
+
};
|
|
1706
|
+
reactIs_production_min.isFragment = function(a2) {
|
|
1707
|
+
return z2(a2) === e2;
|
|
1708
|
+
};
|
|
1709
|
+
reactIs_production_min.isLazy = function(a2) {
|
|
1710
|
+
return z2(a2) === t2;
|
|
1711
|
+
};
|
|
1712
|
+
reactIs_production_min.isMemo = function(a2) {
|
|
1713
|
+
return z2(a2) === r;
|
|
1714
|
+
};
|
|
1715
|
+
reactIs_production_min.isPortal = function(a2) {
|
|
1716
|
+
return z2(a2) === d2;
|
|
1717
|
+
};
|
|
1718
|
+
reactIs_production_min.isProfiler = function(a2) {
|
|
1719
|
+
return z2(a2) === g2;
|
|
1720
|
+
};
|
|
1721
|
+
reactIs_production_min.isStrictMode = function(a2) {
|
|
1722
|
+
return z2(a2) === f;
|
|
1723
|
+
};
|
|
1724
|
+
reactIs_production_min.isSuspense = function(a2) {
|
|
1725
|
+
return z2(a2) === p;
|
|
1726
|
+
};
|
|
1727
|
+
reactIs_production_min.isValidElementType = function(a2) {
|
|
1728
|
+
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);
|
|
1729
|
+
};
|
|
1730
|
+
reactIs_production_min.typeOf = z2;
|
|
1731
|
+
return reactIs_production_min;
|
|
1682
1732
|
}
|
|
1683
|
-
var reactIs = { exports: {} };
|
|
1684
1733
|
var reactIs_development = {};
|
|
1685
1734
|
/** @license React v16.13.1
|
|
1686
1735
|
* react-is.development.js
|
|
@@ -1833,120 +1882,16 @@ function requireReactIs_development() {
|
|
|
1833
1882
|
reactIs_development.isForwardRef = isForwardRef;
|
|
1834
1883
|
reactIs_development.isFragment = isFragment;
|
|
1835
1884
|
reactIs_development.isLazy = isLazy;
|
|
1836
|
-
reactIs_development.isMemo = isMemo;
|
|
1837
|
-
reactIs_development.isPortal = isPortal;
|
|
1838
|
-
reactIs_development.isProfiler = isProfiler;
|
|
1839
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
1840
|
-
reactIs_development.isSuspense = isSuspense;
|
|
1841
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
1842
|
-
reactIs_development.typeOf = typeOf;
|
|
1843
|
-
})();
|
|
1844
|
-
}
|
|
1845
|
-
return reactIs_development;
|
|
1846
|
-
}
|
|
1847
|
-
var reactIs_production_min = {};
|
|
1848
|
-
/** @license React v16.13.1
|
|
1849
|
-
* react-is.production.min.js
|
|
1850
|
-
*
|
|
1851
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1852
|
-
*
|
|
1853
|
-
* This source code is licensed under the MIT license found in the
|
|
1854
|
-
* LICENSE file in the root directory of this source tree.
|
|
1855
|
-
*/
|
|
1856
|
-
var hasRequiredReactIs_production_min;
|
|
1857
|
-
function requireReactIs_production_min() {
|
|
1858
|
-
if (hasRequiredReactIs_production_min)
|
|
1859
|
-
return reactIs_production_min;
|
|
1860
|
-
hasRequiredReactIs_production_min = 1;
|
|
1861
|
-
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;
|
|
1862
|
-
function z2(a2) {
|
|
1863
|
-
if ("object" === typeof a2 && null !== a2) {
|
|
1864
|
-
var u = a2.$$typeof;
|
|
1865
|
-
switch (u) {
|
|
1866
|
-
case c2:
|
|
1867
|
-
switch (a2 = a2.type, a2) {
|
|
1868
|
-
case l:
|
|
1869
|
-
case m:
|
|
1870
|
-
case e2:
|
|
1871
|
-
case g2:
|
|
1872
|
-
case f:
|
|
1873
|
-
case p:
|
|
1874
|
-
return a2;
|
|
1875
|
-
default:
|
|
1876
|
-
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
1877
|
-
case k:
|
|
1878
|
-
case n:
|
|
1879
|
-
case t2:
|
|
1880
|
-
case r:
|
|
1881
|
-
case h2:
|
|
1882
|
-
return a2;
|
|
1883
|
-
default:
|
|
1884
|
-
return u;
|
|
1885
|
-
}
|
|
1886
|
-
}
|
|
1887
|
-
case d2:
|
|
1888
|
-
return u;
|
|
1889
|
-
}
|
|
1890
|
-
}
|
|
1891
|
-
}
|
|
1892
|
-
function A2(a2) {
|
|
1893
|
-
return z2(a2) === m;
|
|
1894
|
-
}
|
|
1895
|
-
reactIs_production_min.AsyncMode = l;
|
|
1896
|
-
reactIs_production_min.ConcurrentMode = m;
|
|
1897
|
-
reactIs_production_min.ContextConsumer = k;
|
|
1898
|
-
reactIs_production_min.ContextProvider = h2;
|
|
1899
|
-
reactIs_production_min.Element = c2;
|
|
1900
|
-
reactIs_production_min.ForwardRef = n;
|
|
1901
|
-
reactIs_production_min.Fragment = e2;
|
|
1902
|
-
reactIs_production_min.Lazy = t2;
|
|
1903
|
-
reactIs_production_min.Memo = r;
|
|
1904
|
-
reactIs_production_min.Portal = d2;
|
|
1905
|
-
reactIs_production_min.Profiler = g2;
|
|
1906
|
-
reactIs_production_min.StrictMode = f;
|
|
1907
|
-
reactIs_production_min.Suspense = p;
|
|
1908
|
-
reactIs_production_min.isAsyncMode = function(a2) {
|
|
1909
|
-
return A2(a2) || z2(a2) === l;
|
|
1910
|
-
};
|
|
1911
|
-
reactIs_production_min.isConcurrentMode = A2;
|
|
1912
|
-
reactIs_production_min.isContextConsumer = function(a2) {
|
|
1913
|
-
return z2(a2) === k;
|
|
1914
|
-
};
|
|
1915
|
-
reactIs_production_min.isContextProvider = function(a2) {
|
|
1916
|
-
return z2(a2) === h2;
|
|
1917
|
-
};
|
|
1918
|
-
reactIs_production_min.isElement = function(a2) {
|
|
1919
|
-
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
|
|
1920
|
-
};
|
|
1921
|
-
reactIs_production_min.isForwardRef = function(a2) {
|
|
1922
|
-
return z2(a2) === n;
|
|
1923
|
-
};
|
|
1924
|
-
reactIs_production_min.isFragment = function(a2) {
|
|
1925
|
-
return z2(a2) === e2;
|
|
1926
|
-
};
|
|
1927
|
-
reactIs_production_min.isLazy = function(a2) {
|
|
1928
|
-
return z2(a2) === t2;
|
|
1929
|
-
};
|
|
1930
|
-
reactIs_production_min.isMemo = function(a2) {
|
|
1931
|
-
return z2(a2) === r;
|
|
1932
|
-
};
|
|
1933
|
-
reactIs_production_min.isPortal = function(a2) {
|
|
1934
|
-
return z2(a2) === d2;
|
|
1935
|
-
};
|
|
1936
|
-
reactIs_production_min.isProfiler = function(a2) {
|
|
1937
|
-
return z2(a2) === g2;
|
|
1938
|
-
};
|
|
1939
|
-
reactIs_production_min.isStrictMode = function(a2) {
|
|
1940
|
-
return z2(a2) === f;
|
|
1941
|
-
};
|
|
1942
|
-
reactIs_production_min.isSuspense = function(a2) {
|
|
1943
|
-
return z2(a2) === p;
|
|
1944
|
-
};
|
|
1945
|
-
reactIs_production_min.isValidElementType = function(a2) {
|
|
1946
|
-
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);
|
|
1947
|
-
};
|
|
1948
|
-
reactIs_production_min.typeOf = z2;
|
|
1949
|
-
return reactIs_production_min;
|
|
1885
|
+
reactIs_development.isMemo = isMemo;
|
|
1886
|
+
reactIs_development.isPortal = isPortal;
|
|
1887
|
+
reactIs_development.isProfiler = isProfiler;
|
|
1888
|
+
reactIs_development.isStrictMode = isStrictMode;
|
|
1889
|
+
reactIs_development.isSuspense = isSuspense;
|
|
1890
|
+
reactIs_development.isValidElementType = isValidElementType;
|
|
1891
|
+
reactIs_development.typeOf = typeOf;
|
|
1892
|
+
})();
|
|
1893
|
+
}
|
|
1894
|
+
return reactIs_development;
|
|
1950
1895
|
}
|
|
1951
1896
|
var hasRequiredReactIs;
|
|
1952
1897
|
function requireReactIs() {
|
|
@@ -2036,6 +1981,16 @@ function requireObjectAssign() {
|
|
|
2036
1981
|
};
|
|
2037
1982
|
return objectAssign;
|
|
2038
1983
|
}
|
|
1984
|
+
var ReactPropTypesSecret_1;
|
|
1985
|
+
var hasRequiredReactPropTypesSecret;
|
|
1986
|
+
function requireReactPropTypesSecret() {
|
|
1987
|
+
if (hasRequiredReactPropTypesSecret)
|
|
1988
|
+
return ReactPropTypesSecret_1;
|
|
1989
|
+
hasRequiredReactPropTypesSecret = 1;
|
|
1990
|
+
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1991
|
+
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
1992
|
+
return ReactPropTypesSecret_1;
|
|
1993
|
+
}
|
|
2039
1994
|
var has;
|
|
2040
1995
|
var hasRequiredHas;
|
|
2041
1996
|
function requireHas() {
|
|
@@ -2553,6 +2508,61 @@ function requireFactoryWithTypeCheckers() {
|
|
|
2553
2508
|
};
|
|
2554
2509
|
return factoryWithTypeCheckers;
|
|
2555
2510
|
}
|
|
2511
|
+
var factoryWithThrowingShims;
|
|
2512
|
+
var hasRequiredFactoryWithThrowingShims;
|
|
2513
|
+
function requireFactoryWithThrowingShims() {
|
|
2514
|
+
if (hasRequiredFactoryWithThrowingShims)
|
|
2515
|
+
return factoryWithThrowingShims;
|
|
2516
|
+
hasRequiredFactoryWithThrowingShims = 1;
|
|
2517
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
2518
|
+
function emptyFunction() {
|
|
2519
|
+
}
|
|
2520
|
+
function emptyFunctionWithReset() {
|
|
2521
|
+
}
|
|
2522
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
2523
|
+
factoryWithThrowingShims = function() {
|
|
2524
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
2525
|
+
if (secret === ReactPropTypesSecret) {
|
|
2526
|
+
return;
|
|
2527
|
+
}
|
|
2528
|
+
var err = new Error(
|
|
2529
|
+
"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"
|
|
2530
|
+
);
|
|
2531
|
+
err.name = "Invariant Violation";
|
|
2532
|
+
throw err;
|
|
2533
|
+
}
|
|
2534
|
+
shim.isRequired = shim;
|
|
2535
|
+
function getShim() {
|
|
2536
|
+
return shim;
|
|
2537
|
+
}
|
|
2538
|
+
var ReactPropTypes = {
|
|
2539
|
+
array: shim,
|
|
2540
|
+
bigint: shim,
|
|
2541
|
+
bool: shim,
|
|
2542
|
+
func: shim,
|
|
2543
|
+
number: shim,
|
|
2544
|
+
object: shim,
|
|
2545
|
+
string: shim,
|
|
2546
|
+
symbol: shim,
|
|
2547
|
+
any: shim,
|
|
2548
|
+
arrayOf: getShim,
|
|
2549
|
+
element: shim,
|
|
2550
|
+
elementType: shim,
|
|
2551
|
+
instanceOf: getShim,
|
|
2552
|
+
node: shim,
|
|
2553
|
+
objectOf: getShim,
|
|
2554
|
+
oneOf: getShim,
|
|
2555
|
+
oneOfType: getShim,
|
|
2556
|
+
shape: getShim,
|
|
2557
|
+
exact: getShim,
|
|
2558
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
2559
|
+
resetWarningCache: emptyFunction
|
|
2560
|
+
};
|
|
2561
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
2562
|
+
return ReactPropTypes;
|
|
2563
|
+
};
|
|
2564
|
+
return factoryWithThrowingShims;
|
|
2565
|
+
}
|
|
2556
2566
|
if (process.env.NODE_ENV !== "production") {
|
|
2557
2567
|
var ReactIs = requireReactIs();
|
|
2558
2568
|
var throwOnDirectAccess = true;
|
|
@@ -4034,7 +4044,7 @@ const Sticky = (props) => {
|
|
|
4034
4044
|
}
|
|
4035
4045
|
}, []);
|
|
4036
4046
|
usePageScroll((res) => {
|
|
4037
|
-
if (getEnv()
|
|
4047
|
+
if (getEnv() !== "WEB") {
|
|
4038
4048
|
handleScroll(res.scrollTop);
|
|
4039
4049
|
}
|
|
4040
4050
|
});
|
|
@@ -4097,7 +4107,7 @@ const BackTop = (props) => {
|
|
|
4097
4107
|
duration: duration > 0 ? duration : 0
|
|
4098
4108
|
});
|
|
4099
4109
|
};
|
|
4100
|
-
const styles = style ? {
|
|
4110
|
+
const styles = Object.keys(style || {}).length !== 0 ? {
|
|
4101
4111
|
zIndex,
|
|
4102
4112
|
...style
|
|
4103
4113
|
} : {
|
|
@@ -5342,7 +5352,7 @@ const Tabs = (props) => {
|
|
|
5342
5352
|
onClick: (e2) => {
|
|
5343
5353
|
tabChange(item);
|
|
5344
5354
|
},
|
|
5345
|
-
className: classNames(`${classPrefix$k}-titles-item
|
|
5355
|
+
className: classNames(`${classPrefix$k}-titles-item`, {
|
|
5346
5356
|
[`nut-tabs-titles-item-active`]: !item.disabled && String(item.value) === String(value),
|
|
5347
5357
|
[`nut-tabs-titles-item-disabled`]: item.disabled,
|
|
5348
5358
|
[`nut-tabs-titles-item-${align}`]: align
|
|
@@ -5585,7 +5595,6 @@ class Tree {
|
|
|
5585
5595
|
return pathNodes;
|
|
5586
5596
|
}
|
|
5587
5597
|
}
|
|
5588
|
-
const Tree$1 = Tree;
|
|
5589
5598
|
const defaultProps$17 = {
|
|
5590
5599
|
...ComponentDefaults,
|
|
5591
5600
|
activeColor: "",
|
|
@@ -5661,7 +5670,7 @@ const InternalCascader = (props, ref) => {
|
|
|
5661
5670
|
paneKey: ""
|
|
5662
5671
|
}
|
|
5663
5672
|
],
|
|
5664
|
-
tree: new Tree
|
|
5673
|
+
tree: new Tree([], {}),
|
|
5665
5674
|
tabsCursor: 0,
|
|
5666
5675
|
// 选中的tab项
|
|
5667
5676
|
initLoading: false,
|
|
@@ -5691,7 +5700,7 @@ const InternalCascader = (props, ref) => {
|
|
|
5691
5700
|
} else {
|
|
5692
5701
|
state.optionsData = options;
|
|
5693
5702
|
}
|
|
5694
|
-
state.tree = new Tree
|
|
5703
|
+
state.tree = new Tree(state.optionsData, {
|
|
5695
5704
|
value: state.configs.optionKey.valueKey,
|
|
5696
5705
|
text: state.configs.optionKey.textKey,
|
|
5697
5706
|
children: state.configs.optionKey.childrenKey
|
|
@@ -9752,6 +9761,7 @@ class FormStore {
|
|
|
9752
9761
|
constructor() {
|
|
9753
9762
|
// 初始化数据
|
|
9754
9763
|
__publicField(this, "initialValues", {});
|
|
9764
|
+
__publicField(this, "updateList", []);
|
|
9755
9765
|
// 存放表单中所有的数据 eg. {password: "ddd",username: "123"}
|
|
9756
9766
|
__publicField(this, "store", {});
|
|
9757
9767
|
// 所有的组件实例
|
|
@@ -9821,6 +9831,15 @@ class FormStore {
|
|
|
9821
9831
|
}
|
|
9822
9832
|
});
|
|
9823
9833
|
});
|
|
9834
|
+
this.updateList.forEach((item) => {
|
|
9835
|
+
let shouldUpdate = item.condition;
|
|
9836
|
+
if (typeof item.condition === "function") {
|
|
9837
|
+
shouldUpdate = item.condition();
|
|
9838
|
+
}
|
|
9839
|
+
if (shouldUpdate) {
|
|
9840
|
+
item.entity.onStoreChange("update");
|
|
9841
|
+
}
|
|
9842
|
+
});
|
|
9824
9843
|
});
|
|
9825
9844
|
__publicField(this, "setCallback", (callback) => {
|
|
9826
9845
|
this.callbacks = {
|
|
@@ -9868,9 +9887,11 @@ class FormStore {
|
|
|
9868
9887
|
);
|
|
9869
9888
|
}
|
|
9870
9889
|
const errs = [];
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
|
|
9890
|
+
await Promise.all(
|
|
9891
|
+
filterEntities.map(async (entity) => {
|
|
9892
|
+
await this.validateEntities(entity, errs);
|
|
9893
|
+
})
|
|
9894
|
+
);
|
|
9874
9895
|
return errs;
|
|
9875
9896
|
});
|
|
9876
9897
|
__publicField(this, "submit", async () => {
|
|
@@ -9889,6 +9910,16 @@ class FormStore {
|
|
|
9889
9910
|
entity.onStoreChange("reset");
|
|
9890
9911
|
});
|
|
9891
9912
|
});
|
|
9913
|
+
// 监听事件
|
|
9914
|
+
__publicField(this, "registerUpdate", (field, shouldUpdate) => {
|
|
9915
|
+
this.updateList.push({
|
|
9916
|
+
entity: field,
|
|
9917
|
+
condition: shouldUpdate
|
|
9918
|
+
});
|
|
9919
|
+
return () => {
|
|
9920
|
+
this.updateList = this.updateList.filter((i2) => i2.entity !== field);
|
|
9921
|
+
};
|
|
9922
|
+
});
|
|
9892
9923
|
__publicField(this, "dispatch", ({ name }) => {
|
|
9893
9924
|
this.validateFields([name]);
|
|
9894
9925
|
});
|
|
@@ -9900,7 +9931,8 @@ class FormStore {
|
|
|
9900
9931
|
setInitialValues: this.setInitialValues,
|
|
9901
9932
|
dispatch: this.dispatch,
|
|
9902
9933
|
store: this.store,
|
|
9903
|
-
fieldEntities: this.fieldEntities
|
|
9934
|
+
fieldEntities: this.fieldEntities,
|
|
9935
|
+
registerUpdate: this.registerUpdate
|
|
9904
9936
|
};
|
|
9905
9937
|
}
|
|
9906
9938
|
});
|
|
@@ -10031,13 +10063,16 @@ const defaultProps$Y = {
|
|
|
10031
10063
|
label: "",
|
|
10032
10064
|
rules: [{ required: false, message: "" }],
|
|
10033
10065
|
errorMessageAlign: "left",
|
|
10034
|
-
validateTrigger: "onChange"
|
|
10066
|
+
validateTrigger: "onChange",
|
|
10067
|
+
shouldUpdate: false,
|
|
10068
|
+
noStyle: false
|
|
10035
10069
|
};
|
|
10036
10070
|
class FormItem extends React__default.Component {
|
|
10037
10071
|
constructor(props) {
|
|
10038
10072
|
super(props);
|
|
10039
10073
|
__publicField(this, "cancelRegister");
|
|
10040
10074
|
__publicField(this, "componentRef");
|
|
10075
|
+
__publicField(this, "eventOff");
|
|
10041
10076
|
// children添加value属性和onChange事件
|
|
10042
10077
|
__publicField(this, "getControlled", (children) => {
|
|
10043
10078
|
var _a;
|
|
@@ -10111,7 +10146,6 @@ class FormItem extends React__default.Component {
|
|
|
10111
10146
|
}
|
|
10112
10147
|
});
|
|
10113
10148
|
__publicField(this, "renderLayout", (childNode) => {
|
|
10114
|
-
var _a;
|
|
10115
10149
|
const {
|
|
10116
10150
|
label,
|
|
10117
10151
|
name,
|
|
@@ -10137,16 +10171,13 @@ class FormItem extends React__default.Component {
|
|
|
10137
10171
|
onClick: (e2) => this.props.onClick && this.props.onClick(e2, this.componentRef)
|
|
10138
10172
|
},
|
|
10139
10173
|
label ? /* @__PURE__ */ React__default.createElement("div", { className: "nut-cell-title nut-form-item-label" }, renderLabel) : null,
|
|
10140
|
-
/* @__PURE__ */ React__default.createElement("div", { className: "nut-cell-value nut-form-item-body" }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-form-item-body-slots" }, childNode), /* @__PURE__ */ React__default.createElement(
|
|
10174
|
+
/* @__PURE__ */ React__default.createElement("div", { className: "nut-cell-value nut-form-item-body" }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-form-item-body-slots" }, childNode), item && item.length > 0 && /* @__PURE__ */ React__default.createElement(
|
|
10141
10175
|
"div",
|
|
10142
10176
|
{
|
|
10143
10177
|
className: "nut-form-item-body-tips",
|
|
10144
|
-
style: {
|
|
10145
|
-
textAlign: errorMessageAlign,
|
|
10146
|
-
display: (item == null ? void 0 : item.length) ? "initial" : "none"
|
|
10147
|
-
}
|
|
10178
|
+
style: { textAlign: errorMessageAlign }
|
|
10148
10179
|
},
|
|
10149
|
-
|
|
10180
|
+
item[0].message
|
|
10150
10181
|
))
|
|
10151
10182
|
);
|
|
10152
10183
|
});
|
|
@@ -10156,22 +10187,31 @@ class FormItem extends React__default.Component {
|
|
|
10156
10187
|
};
|
|
10157
10188
|
}
|
|
10158
10189
|
componentDidMount() {
|
|
10159
|
-
const { registerField } = this.context.getInternal(SECRET);
|
|
10190
|
+
const { registerField, registerUpdate } = this.context.getInternal(SECRET);
|
|
10160
10191
|
this.cancelRegister = registerField(this);
|
|
10192
|
+
this.eventOff = registerUpdate(this, this.props.shouldUpdate);
|
|
10161
10193
|
}
|
|
10162
10194
|
componentWillUnmount() {
|
|
10163
10195
|
if (this.cancelRegister) {
|
|
10164
10196
|
this.cancelRegister();
|
|
10165
10197
|
}
|
|
10198
|
+
if (this.eventOff) {
|
|
10199
|
+
this.eventOff();
|
|
10200
|
+
}
|
|
10166
10201
|
}
|
|
10167
10202
|
render() {
|
|
10168
10203
|
const { children } = this.props;
|
|
10169
10204
|
const child = Array.isArray(children) ? children[0] : children;
|
|
10170
|
-
|
|
10171
|
-
|
|
10172
|
-
|
|
10173
|
-
|
|
10174
|
-
|
|
10205
|
+
let returnChildNode;
|
|
10206
|
+
if (!this.props.shouldUpdate) {
|
|
10207
|
+
returnChildNode = React__default.cloneElement(
|
|
10208
|
+
child,
|
|
10209
|
+
this.getControlled(child)
|
|
10210
|
+
);
|
|
10211
|
+
} else {
|
|
10212
|
+
returnChildNode = child(this.context);
|
|
10213
|
+
}
|
|
10214
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
|
|
10175
10215
|
}
|
|
10176
10216
|
}
|
|
10177
10217
|
__publicField(FormItem, "defaultProps", defaultProps$Y);
|
|
@@ -10355,7 +10395,10 @@ const Input = forwardRef(
|
|
|
10355
10395
|
name,
|
|
10356
10396
|
className: "nut-input-native",
|
|
10357
10397
|
ref: inputRef,
|
|
10358
|
-
style: {
|
|
10398
|
+
style: {
|
|
10399
|
+
textAlign: `${// eslint-disable-next-line no-nested-ternary
|
|
10400
|
+
align === "right" ? "end" : align === "left" ? "start" : "center"}`
|
|
10401
|
+
},
|
|
10359
10402
|
type: inputType(type4),
|
|
10360
10403
|
password: type4 === "password",
|
|
10361
10404
|
maxlength: maxLength,
|
|
@@ -10396,11 +10439,10 @@ Input.displayName = "NutInput";
|
|
|
10396
10439
|
const defaultProps$W = {
|
|
10397
10440
|
...ComponentDefaults,
|
|
10398
10441
|
disabled: false,
|
|
10399
|
-
min: 1,
|
|
10400
|
-
max: 9999,
|
|
10401
10442
|
readOnly: false,
|
|
10402
10443
|
allowEmpty: false,
|
|
10403
|
-
|
|
10444
|
+
min: 1,
|
|
10445
|
+
max: 9999,
|
|
10404
10446
|
step: 1,
|
|
10405
10447
|
digits: 0,
|
|
10406
10448
|
async: false
|
|
@@ -10433,197 +10475,161 @@ const InputNumber = (props) => {
|
|
|
10433
10475
|
...defaultProps$W,
|
|
10434
10476
|
...props
|
|
10435
10477
|
};
|
|
10436
|
-
const
|
|
10437
|
-
|
|
10438
|
-
value,
|
|
10439
|
-
defaultValue
|
|
10478
|
+
const classes = classNames(classPrefix$h, {
|
|
10479
|
+
[`${classPrefix$h}-disabled`]: disabled
|
|
10440
10480
|
});
|
|
10481
|
+
const [focused, setFocused] = useState(false);
|
|
10482
|
+
const inputRef = useRef(null);
|
|
10441
10483
|
useEffect(() => {
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
setChecked(formatter(_checked));
|
|
10446
|
-
}
|
|
10447
|
-
}
|
|
10448
|
-
}, []);
|
|
10449
|
-
const classes = classNames(
|
|
10450
|
-
{
|
|
10451
|
-
[`${classPrefix$h}`]: true,
|
|
10452
|
-
[`${classPrefix$h}-disabled`]: disabled
|
|
10453
|
-
},
|
|
10454
|
-
className
|
|
10455
|
-
);
|
|
10456
|
-
const styles = {
|
|
10457
|
-
...style
|
|
10458
|
-
};
|
|
10459
|
-
const addAllow = (value2 = _checked) => {
|
|
10460
|
-
if (formatter) {
|
|
10461
|
-
const numValue = String(value2).replace(/[^0-9|.]/gi, "");
|
|
10462
|
-
return Number(numValue) < Number(max) && !disabled;
|
|
10484
|
+
var _a, _b;
|
|
10485
|
+
if (focused) {
|
|
10486
|
+
(_b = (_a = inputRef.current) == null ? void 0 : _a.select) == null ? void 0 : _b.call(_a);
|
|
10463
10487
|
}
|
|
10464
|
-
|
|
10465
|
-
|
|
10466
|
-
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
return Number(numValue) > Number(min) && !disabled;
|
|
10488
|
+
}, [focused]);
|
|
10489
|
+
const [shadowValue, setShadowValue] = usePropsValue({
|
|
10490
|
+
value: typeof value === "string" ? parseFloat(value) : value,
|
|
10491
|
+
defaultValue: typeof defaultValue === "string" ? parseFloat(defaultValue) : defaultValue,
|
|
10492
|
+
onChange: (value2) => {
|
|
10470
10493
|
}
|
|
10471
|
-
return Number(value2) > Number(min) && !disabled;
|
|
10472
|
-
};
|
|
10473
|
-
const iconMinusClasses = classNames("nut-inputnumber-icon icon-minus", {
|
|
10474
|
-
"nut-inputnumber-icon-disabled": !reduceAllow()
|
|
10475
|
-
});
|
|
10476
|
-
const iconAddClasses = classNames("nut-inputnumber-icon icon-plus", {
|
|
10477
|
-
"nut-inputnumber-icon-disabled": !addAllow()
|
|
10478
10494
|
});
|
|
10479
|
-
const
|
|
10480
|
-
|
|
10481
|
-
|
|
10482
|
-
|
|
10483
|
-
const outputValue = fixedDecimalPlaces(value2);
|
|
10484
|
-
onChange && onChange(outputValue, e2);
|
|
10485
|
-
if (!async) {
|
|
10486
|
-
if (Number(outputValue) < Number(min)) {
|
|
10487
|
-
formatter ? setChecked(formatter(Number(min))) : setChecked(Number(min));
|
|
10488
|
-
} else if (Number(outputValue) > Number(max)) {
|
|
10489
|
-
formatter ? setChecked(formatter(Number(max))) : setChecked(Number(max));
|
|
10490
|
-
} else {
|
|
10491
|
-
formatter ? setChecked(formatter(outputValue)) : setChecked(outputValue);
|
|
10492
|
-
}
|
|
10495
|
+
const bound2 = (value2, min2, max2) => {
|
|
10496
|
+
let res = value2;
|
|
10497
|
+
if (min2 !== void 0) {
|
|
10498
|
+
res = Math.max(Number(min2), res);
|
|
10493
10499
|
}
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
onMinus && onMinus(e2);
|
|
10497
|
-
if (reduceAllow()) {
|
|
10498
|
-
if (formatter) {
|
|
10499
|
-
const numValue = String(_checked).replace(/[^0-9|.]/gi, "");
|
|
10500
|
-
const outputValue = Number(numValue) - Number(step);
|
|
10501
|
-
inputRef.current = formatter(outputValue);
|
|
10502
|
-
emitChange(outputValue, e2);
|
|
10503
|
-
} else {
|
|
10504
|
-
const outputValue = Number(_checked) - Number(step);
|
|
10505
|
-
emitChange(outputValue, e2);
|
|
10506
|
-
}
|
|
10507
|
-
} else {
|
|
10508
|
-
onOverlimit && onOverlimit(e2);
|
|
10500
|
+
if (max2 !== void 0) {
|
|
10501
|
+
res = Math.min(Number(max2), res);
|
|
10509
10502
|
}
|
|
10503
|
+
return res;
|
|
10510
10504
|
};
|
|
10511
|
-
const
|
|
10512
|
-
|
|
10513
|
-
|
|
10514
|
-
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
} else {
|
|
10520
|
-
const outputValue = Number(_checked) + Number(step);
|
|
10521
|
-
emitChange(outputValue, e2);
|
|
10522
|
-
}
|
|
10523
|
-
} else {
|
|
10524
|
-
onOverlimit && onOverlimit(e2);
|
|
10505
|
+
const format2 = (value2) => {
|
|
10506
|
+
if (value2 === null)
|
|
10507
|
+
return "";
|
|
10508
|
+
if (typeof value2 === "string")
|
|
10509
|
+
value2 = parseFloat(value2);
|
|
10510
|
+
const fixedValue = bound2(value2, Number(min), Number(max));
|
|
10511
|
+
if (formatter) {
|
|
10512
|
+
return formatter(fixedValue);
|
|
10525
10513
|
}
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
const input = e2.target;
|
|
10529
|
-
onChange && onChange(input.value, e2);
|
|
10530
|
-
if (!async) {
|
|
10531
|
-
setChecked(input.value);
|
|
10514
|
+
if (digits) {
|
|
10515
|
+
return fixedValue.toFixed(digits).toString();
|
|
10532
10516
|
}
|
|
10517
|
+
return fixedValue.toString();
|
|
10533
10518
|
};
|
|
10534
|
-
const
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
if (!numReg.test(input[0]) && numValue) {
|
|
10540
|
-
setChecked(formatter(numValue));
|
|
10541
|
-
} else if (!numReg.test(input[0]) && !numValue) {
|
|
10542
|
-
setChecked(input);
|
|
10543
|
-
} else if (numReg.test(input[0])) {
|
|
10544
|
-
if (formatter(numValue) === inputRef.current) {
|
|
10545
|
-
setChecked(numValue);
|
|
10546
|
-
} else {
|
|
10547
|
-
setChecked(formatter(numValue));
|
|
10548
|
-
inputRef.current = formatter(numValue);
|
|
10549
|
-
}
|
|
10550
|
-
}
|
|
10519
|
+
const [inputValue, setInputValue] = useState(format2(shadowValue));
|
|
10520
|
+
useEffect(() => {
|
|
10521
|
+
if (!focused && !async) {
|
|
10522
|
+
setShadowValue(bound2(Number(shadowValue), Number(min), Number(max)));
|
|
10523
|
+
setInputValue(format2(shadowValue));
|
|
10551
10524
|
}
|
|
10552
|
-
};
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
|
|
10556
|
-
|
|
10557
|
-
|
|
10558
|
-
|
|
10559
|
-
|
|
10560
|
-
|
|
10561
|
-
|
|
10562
|
-
|
|
10563
|
-
|
|
10525
|
+
}, [focused, shadowValue]);
|
|
10526
|
+
useEffect(() => {
|
|
10527
|
+
if (async) {
|
|
10528
|
+
setShadowValue(bound2(Number(value), Number(min), Number(max)));
|
|
10529
|
+
setInputValue(format2(value));
|
|
10530
|
+
}
|
|
10531
|
+
}, [value]);
|
|
10532
|
+
const calcNextValue = (current, step2, symbol) => {
|
|
10533
|
+
const dig = digits + 1;
|
|
10534
|
+
return (parseFloat(current || "0") * dig + parseFloat(step2) * dig * symbol) / dig;
|
|
10535
|
+
};
|
|
10536
|
+
const update = (negative, e2) => {
|
|
10537
|
+
if (step !== void 0) {
|
|
10538
|
+
const shouldOverBoundary = calcNextValue(
|
|
10539
|
+
shadowValue,
|
|
10540
|
+
step,
|
|
10541
|
+
negative ? -1 : 1
|
|
10542
|
+
);
|
|
10543
|
+
const nextValue = bound2(shouldOverBoundary, Number(min), Number(max));
|
|
10544
|
+
setShadowValue(nextValue);
|
|
10545
|
+
if (negative ? shouldOverBoundary < min : shouldOverBoundary > max) {
|
|
10546
|
+
onOverlimit == null ? void 0 : onOverlimit(e2);
|
|
10547
|
+
} else {
|
|
10548
|
+
onChange == null ? void 0 : onChange(nextValue, e2);
|
|
10564
10549
|
}
|
|
10565
10550
|
}
|
|
10566
10551
|
};
|
|
10567
|
-
const
|
|
10552
|
+
const handleReduce = (e2) => {
|
|
10568
10553
|
if (disabled)
|
|
10569
10554
|
return;
|
|
10570
|
-
|
|
10571
|
-
|
|
10572
|
-
onFocus && onFocus(e2);
|
|
10555
|
+
onMinus == null ? void 0 : onMinus(e2);
|
|
10556
|
+
update(true, e2);
|
|
10573
10557
|
};
|
|
10574
|
-
const
|
|
10558
|
+
const handlePlus = (e2) => {
|
|
10575
10559
|
if (disabled)
|
|
10576
10560
|
return;
|
|
10577
|
-
|
|
10578
|
-
|
|
10579
|
-
|
|
10580
|
-
|
|
10581
|
-
if (
|
|
10582
|
-
|
|
10561
|
+
onPlus == null ? void 0 : onPlus(e2);
|
|
10562
|
+
update(false, e2);
|
|
10563
|
+
};
|
|
10564
|
+
const parseValue = (text) => {
|
|
10565
|
+
if (text === "")
|
|
10566
|
+
return null;
|
|
10567
|
+
if (text === "-")
|
|
10568
|
+
return null;
|
|
10569
|
+
return text;
|
|
10570
|
+
};
|
|
10571
|
+
const handleInputChange = (e2) => {
|
|
10572
|
+
setInputValue(e2.target.value);
|
|
10573
|
+
const valueStr = parseValue(e2.target.value);
|
|
10574
|
+
if (valueStr === null) {
|
|
10575
|
+
if (allowEmpty) {
|
|
10576
|
+
setShadowValue(null);
|
|
10577
|
+
} else {
|
|
10578
|
+
setShadowValue(defaultValue);
|
|
10579
|
+
}
|
|
10580
|
+
} else {
|
|
10581
|
+
setShadowValue(valueStr);
|
|
10583
10582
|
}
|
|
10584
|
-
if (
|
|
10585
|
-
|
|
10586
|
-
} else if (value2 > Number(max)) {
|
|
10587
|
-
value2 = Number(max);
|
|
10583
|
+
if (!async) {
|
|
10584
|
+
onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e2);
|
|
10588
10585
|
}
|
|
10589
|
-
|
|
10586
|
+
};
|
|
10587
|
+
const handleFocus = (e2) => {
|
|
10588
|
+
setFocused(true);
|
|
10589
|
+
setInputValue(
|
|
10590
|
+
shadowValue !== void 0 && shadowValue !== null ? bound2(Number(shadowValue), Number(min), Number(max)).toString() : ""
|
|
10591
|
+
);
|
|
10592
|
+
onFocus && onFocus(e2);
|
|
10593
|
+
};
|
|
10594
|
+
const handleBlur = (e2) => {
|
|
10595
|
+
setFocused(false);
|
|
10590
10596
|
onBlur && onBlur(e2);
|
|
10597
|
+
if (async) {
|
|
10598
|
+
const valueStr = parseValue(e2.target.value);
|
|
10599
|
+
onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e2);
|
|
10600
|
+
}
|
|
10591
10601
|
};
|
|
10592
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: classes, style
|
|
10602
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: classes, style, ...restProps }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-input-minus" }, /* @__PURE__ */ React__default.createElement(
|
|
10593
10603
|
t,
|
|
10594
10604
|
{
|
|
10595
|
-
className:
|
|
10596
|
-
|
|
10605
|
+
className: classNames("nut-inputnumber-icon icon-minus", {
|
|
10606
|
+
[`${classPrefix$h}-icon-disabled`]: shadowValue === min || disabled
|
|
10607
|
+
}),
|
|
10608
|
+
onClick: handleReduce
|
|
10597
10609
|
}
|
|
10598
|
-
)), /* @__PURE__ */ React__default.createElement(React__default.Fragment, null,
|
|
10610
|
+
)), /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
10599
10611
|
"input",
|
|
10600
10612
|
{
|
|
10601
10613
|
className: "nut-number-input",
|
|
10602
|
-
type: "
|
|
10603
|
-
|
|
10604
|
-
|
|
10614
|
+
type: "digit",
|
|
10615
|
+
ref: inputRef,
|
|
10616
|
+
inputMode: "decimal",
|
|
10605
10617
|
disabled,
|
|
10606
10618
|
readOnly,
|
|
10607
|
-
value:
|
|
10608
|
-
onInput:
|
|
10609
|
-
onBlur:
|
|
10610
|
-
onFocus:
|
|
10619
|
+
value: inputValue,
|
|
10620
|
+
onInput: handleInputChange,
|
|
10621
|
+
onBlur: handleBlur,
|
|
10622
|
+
onFocus: handleFocus
|
|
10611
10623
|
}
|
|
10612
|
-
) : /* @__PURE__ */ React__default.createElement(
|
|
10613
|
-
|
|
10624
|
+
)), /* @__PURE__ */ React__default.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React__default.createElement(
|
|
10625
|
+
i,
|
|
10614
10626
|
{
|
|
10615
|
-
className: "nut-
|
|
10616
|
-
|
|
10617
|
-
|
|
10618
|
-
|
|
10619
|
-
disabled,
|
|
10620
|
-
readOnly,
|
|
10621
|
-
value: _checked,
|
|
10622
|
-
onInput: changeValue,
|
|
10623
|
-
onBlur: burValue,
|
|
10624
|
-
onFocus: focusValue
|
|
10627
|
+
className: classNames("nut-inputnumber-icon icon-plus", {
|
|
10628
|
+
[`${classPrefix$h}-icon-disabled`]: shadowValue === max || disabled
|
|
10629
|
+
}),
|
|
10630
|
+
onClick: handlePlus
|
|
10625
10631
|
}
|
|
10626
|
-
))
|
|
10632
|
+
)));
|
|
10627
10633
|
};
|
|
10628
10634
|
InputNumber.defaultProps = defaultProps$W;
|
|
10629
10635
|
InputNumber.displayName = "NutInputNumber";
|
|
@@ -11870,8 +11876,9 @@ const SearchBar = (props) => {
|
|
|
11870
11876
|
const classPrefix2 = "nut-searchbar";
|
|
11871
11877
|
const { locale } = useConfig$1();
|
|
11872
11878
|
const searchRef = useRef(null);
|
|
11873
|
-
const [value, setValue] = useState(() => props.value);
|
|
11874
11879
|
const {
|
|
11880
|
+
value: outerValue,
|
|
11881
|
+
style,
|
|
11875
11882
|
placeholder,
|
|
11876
11883
|
shape,
|
|
11877
11884
|
className,
|
|
@@ -11895,47 +11902,52 @@ const SearchBar = (props) => {
|
|
|
11895
11902
|
...defaultProps$O,
|
|
11896
11903
|
...props
|
|
11897
11904
|
};
|
|
11905
|
+
const [value, setValue] = useState(() => outerValue);
|
|
11898
11906
|
const forceFocus = () => {
|
|
11899
11907
|
const searchSelf = searchRef.current;
|
|
11900
11908
|
searchSelf && searchSelf.focus();
|
|
11901
11909
|
};
|
|
11902
11910
|
const change = (event) => {
|
|
11903
|
-
if (value === event.
|
|
11911
|
+
if (value === event.detail.value)
|
|
11904
11912
|
return;
|
|
11905
|
-
onChange && (onChange == null ? void 0 : onChange(event.
|
|
11906
|
-
setValue(event.
|
|
11907
|
-
event.
|
|
11913
|
+
onChange && (onChange == null ? void 0 : onChange(event.detail.value, event));
|
|
11914
|
+
setValue(event.detail.value);
|
|
11915
|
+
event.detail.value === "" && forceFocus();
|
|
11908
11916
|
};
|
|
11909
11917
|
const focus = (event) => {
|
|
11910
|
-
const { value: value2 } = event.
|
|
11918
|
+
const { value: value2 } = event.detail;
|
|
11911
11919
|
onFocus && (onFocus == null ? void 0 : onFocus(value2, event));
|
|
11912
11920
|
};
|
|
11913
11921
|
const blur = (event) => {
|
|
11914
11922
|
const searchSelf = searchRef.current;
|
|
11915
11923
|
searchSelf && searchSelf.blur();
|
|
11916
|
-
const { value: value2 } = event.
|
|
11924
|
+
const { value: value2 } = event.detail;
|
|
11917
11925
|
onBlur && (onBlur == null ? void 0 : onBlur(value2, event));
|
|
11918
11926
|
};
|
|
11919
11927
|
useEffect(() => {
|
|
11920
|
-
setValue(
|
|
11921
|
-
}, [
|
|
11928
|
+
setValue(outerValue || "");
|
|
11929
|
+
}, [outerValue]);
|
|
11922
11930
|
useEffect(() => {
|
|
11923
|
-
|
|
11931
|
+
if (Taro.getEnv() === "WEB") {
|
|
11932
|
+
autoFocus && forceFocus();
|
|
11933
|
+
}
|
|
11924
11934
|
}, [autoFocus]);
|
|
11925
11935
|
const renderField = () => {
|
|
11926
11936
|
return /* @__PURE__ */ React__default.createElement(
|
|
11927
|
-
|
|
11937
|
+
Input$1,
|
|
11928
11938
|
{
|
|
11929
11939
|
className: `${classPrefix2}-input ${clearable ? `${classPrefix2}-input-clear` : ""}`,
|
|
11930
11940
|
ref: searchRef,
|
|
11931
|
-
style
|
|
11932
|
-
value: value || "",
|
|
11941
|
+
style,
|
|
11942
|
+
value: (value || "").toString(),
|
|
11933
11943
|
placeholder: placeholder || locale.placeholder,
|
|
11934
|
-
disabled,
|
|
11935
|
-
|
|
11936
|
-
|
|
11937
|
-
|
|
11938
|
-
|
|
11944
|
+
disabled: disabled || readOnly,
|
|
11945
|
+
maxlength: maxLength,
|
|
11946
|
+
nativeProps: {
|
|
11947
|
+
onKeyPress: onKeypress
|
|
11948
|
+
},
|
|
11949
|
+
autoFocus,
|
|
11950
|
+
onInput: (e2) => change(e2),
|
|
11939
11951
|
onFocus: (e2) => focus(e2),
|
|
11940
11952
|
onBlur: (e2) => blur(e2),
|
|
11941
11953
|
onClick: (e2) => clickInput(e2)
|
|
@@ -11948,26 +11960,26 @@ const SearchBar = (props) => {
|
|
|
11948
11960
|
const renderLeftIn = () => {
|
|
11949
11961
|
if (!leftIn)
|
|
11950
11962
|
return null;
|
|
11951
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
11963
|
+
return /* @__PURE__ */ React__default.createElement(View, { className: `${classPrefix2}-leftin ${classPrefix2}-icon` }, leftIn);
|
|
11952
11964
|
};
|
|
11953
11965
|
const renderLeft = () => {
|
|
11954
11966
|
if (!backable && !left2)
|
|
11955
11967
|
return null;
|
|
11956
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
11968
|
+
return /* @__PURE__ */ React__default.createElement(View, { className: `${classPrefix2}-left` }, backable ? /* @__PURE__ */ React__default.createElement(g$5, { size: "16" }) : left2);
|
|
11957
11969
|
};
|
|
11958
11970
|
const renderRightIn = () => {
|
|
11959
11971
|
if (!rightIn)
|
|
11960
11972
|
return null;
|
|
11961
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
11973
|
+
return /* @__PURE__ */ React__default.createElement(View, { className: `${classPrefix2}-rightin ${classPrefix2}-icon` }, rightIn);
|
|
11962
11974
|
};
|
|
11963
11975
|
const renderRight = () => {
|
|
11964
11976
|
if (!right2)
|
|
11965
11977
|
return null;
|
|
11966
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
11978
|
+
return /* @__PURE__ */ React__default.createElement(View, { className: `${classPrefix2}-right` }, right2);
|
|
11967
11979
|
};
|
|
11968
11980
|
const handleClear = () => {
|
|
11969
11981
|
return /* @__PURE__ */ React__default.createElement(
|
|
11970
|
-
|
|
11982
|
+
View,
|
|
11971
11983
|
{
|
|
11972
11984
|
className: `${classPrefix2}-clear ${classPrefix2}-icon`,
|
|
11973
11985
|
onClick: (e2) => clearaVal(e2)
|
|
@@ -11981,6 +11993,7 @@ const SearchBar = (props) => {
|
|
|
11981
11993
|
}
|
|
11982
11994
|
setValue("");
|
|
11983
11995
|
forceFocus();
|
|
11996
|
+
onChange && (onChange == null ? void 0 : onChange(""));
|
|
11984
11997
|
onClear && onClear(event);
|
|
11985
11998
|
};
|
|
11986
11999
|
const onKeypress = (e2) => {
|
|
@@ -11992,26 +12005,25 @@ const SearchBar = (props) => {
|
|
|
11992
12005
|
}
|
|
11993
12006
|
};
|
|
11994
12007
|
return /* @__PURE__ */ React__default.createElement(
|
|
11995
|
-
|
|
12008
|
+
View,
|
|
11996
12009
|
{
|
|
11997
12010
|
className: `${classPrefix2} ${disabled ? `${classPrefix2}-disabled` : ""} ${className || ""}`,
|
|
11998
|
-
style
|
|
12011
|
+
style
|
|
11999
12012
|
},
|
|
12000
12013
|
renderLeft(),
|
|
12001
12014
|
/* @__PURE__ */ React__default.createElement(
|
|
12002
|
-
|
|
12015
|
+
View,
|
|
12003
12016
|
{
|
|
12004
12017
|
className: `${classPrefix2}-content ${shape === "round" ? `${classPrefix2}-round` : ""}`
|
|
12005
12018
|
},
|
|
12006
12019
|
renderLeftIn(),
|
|
12007
|
-
/* @__PURE__ */ React__default.createElement(
|
|
12020
|
+
/* @__PURE__ */ React__default.createElement(View, { className: "nut-searchbar-input-box" }, renderField()),
|
|
12008
12021
|
clearable && !value && renderRightIn(),
|
|
12009
12022
|
clearable && value && handleClear()
|
|
12010
12023
|
),
|
|
12011
12024
|
renderRight()
|
|
12012
12025
|
);
|
|
12013
12026
|
};
|
|
12014
|
-
SearchBar.defaultProps = defaultProps$O;
|
|
12015
12027
|
SearchBar.displayName = "NutSearchBar";
|
|
12016
12028
|
const defaultProps$N = {
|
|
12017
12029
|
...ComponentDefaults,
|
|
@@ -12023,13 +12035,13 @@ const defaultProps$N = {
|
|
|
12023
12035
|
// 1~6
|
|
12024
12036
|
autoFocus: false
|
|
12025
12037
|
};
|
|
12026
|
-
const
|
|
12038
|
+
const InternalShortPassword = (props, ref) => {
|
|
12027
12039
|
const { locale } = useConfig$1();
|
|
12028
12040
|
const {
|
|
12029
12041
|
title,
|
|
12030
12042
|
description,
|
|
12031
12043
|
tips,
|
|
12032
|
-
visible,
|
|
12044
|
+
visible: deleteVisible,
|
|
12033
12045
|
value,
|
|
12034
12046
|
error,
|
|
12035
12047
|
hideFooter,
|
|
@@ -12060,6 +12072,20 @@ const ShortPassword = (props) => {
|
|
|
12060
12072
|
const format2 = (val) => {
|
|
12061
12073
|
return val.slice(0, comLen);
|
|
12062
12074
|
};
|
|
12075
|
+
const [visible, setVisible] = usePropsValue({
|
|
12076
|
+
value: props.visible,
|
|
12077
|
+
defaultValue: false,
|
|
12078
|
+
finalValue: false
|
|
12079
|
+
});
|
|
12080
|
+
const actions = {
|
|
12081
|
+
open: () => {
|
|
12082
|
+
setVisible(true);
|
|
12083
|
+
},
|
|
12084
|
+
close: () => {
|
|
12085
|
+
setVisible(false);
|
|
12086
|
+
}
|
|
12087
|
+
};
|
|
12088
|
+
useImperativeHandle(ref, () => actions);
|
|
12063
12089
|
const [inputValue, setInputValue] = usePropsValue({ value, onChange });
|
|
12064
12090
|
useEffect(() => {
|
|
12065
12091
|
if (visible && autoFocus) {
|
|
@@ -12092,11 +12118,10 @@ const ShortPassword = (props) => {
|
|
|
12092
12118
|
},
|
|
12093
12119
|
/* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix2, className), style }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-title` }, title || locale.shortpassword.title), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-description` }, description || locale.shortpassword.description), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-input`, onClick: onFocus }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-input-site` }), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-input-fake` }, [...new Array(comLen).keys()].map((item, index) => {
|
|
12094
12120
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-input-fake-li`, key: index }, inputValue.length > index && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, plain ? inputValue[index] : /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-input-fake-li-icon` })));
|
|
12095
|
-
}))), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-message` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-message-error` }, error), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-message-forget`, onClick: onTips }, tips || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(z, { size: 11
|
|
12121
|
+
}))), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-message` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-message-error` }, error), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-message-forget`, onClick: onTips }, tips || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(z, { size: 11 }), locale.shortpassword.tips))), !hideFooter && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-footer` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-footer-cancel`, onClick: onCancel }, locale.cancel), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-footer-sure`, onClick: sure }, locale.confirm)))
|
|
12096
12122
|
);
|
|
12097
12123
|
};
|
|
12098
|
-
ShortPassword
|
|
12099
|
-
ShortPassword.displayName = "NutShortPassword";
|
|
12124
|
+
const ShortPassword = React__default.forwardRef(InternalShortPassword);
|
|
12100
12125
|
const defaultProps$M = {
|
|
12101
12126
|
...ComponentDefaults,
|
|
12102
12127
|
canvasId: "spcanvas",
|
|
@@ -13144,6 +13169,7 @@ const ActionSheet = (props) => {
|
|
|
13144
13169
|
return /* @__PURE__ */ React__default.createElement(
|
|
13145
13170
|
Popup,
|
|
13146
13171
|
{
|
|
13172
|
+
...rest,
|
|
13147
13173
|
round: true,
|
|
13148
13174
|
visible,
|
|
13149
13175
|
position: "bottom",
|
|
@@ -14922,7 +14948,7 @@ const Skeleton = (props) => {
|
|
|
14922
14948
|
const classPrefix2 = "nut-skeleton";
|
|
14923
14949
|
const classes = classNames(classPrefix2, className);
|
|
14924
14950
|
const avatarClass = classNames({
|
|
14925
|
-
avatar: true,
|
|
14951
|
+
[`nut-avatar`]: true,
|
|
14926
14952
|
[`avatar-${avatarShape}`]: avatarShape
|
|
14927
14953
|
});
|
|
14928
14954
|
const repeatLines = (num) => {
|
|
@@ -14940,7 +14966,7 @@ const Skeleton = (props) => {
|
|
|
14940
14966
|
height: "50px"
|
|
14941
14967
|
};
|
|
14942
14968
|
};
|
|
14943
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, visible ? /* @__PURE__ */ React__default.createElement(
|
|
14969
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, visible ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children) : /* @__PURE__ */ React__default.createElement("div", { className: classes, ...rest }, animated && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-animation` }), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-content` }, avatar && /* @__PURE__ */ React__default.createElement(
|
|
14944
14970
|
Avatar,
|
|
14945
14971
|
{
|
|
14946
14972
|
className: avatarClass,
|
|
@@ -18080,79 +18106,98 @@ const InternalBarrage = (props, ref) => {
|
|
|
18080
18106
|
...defaultProps$6,
|
|
18081
18107
|
...props
|
|
18082
18108
|
};
|
|
18083
|
-
const [styleList, setStyleList] = useState([]);
|
|
18084
|
-
const [baItemList, setBaItemList] = useState(list);
|
|
18085
|
-
const barrageListSet = useRef(list);
|
|
18086
18109
|
const barrageBody = useRef(null);
|
|
18087
18110
|
const barrageContainer = useRef(null);
|
|
18088
|
-
const
|
|
18111
|
+
const barrageCWidth = useRef(0);
|
|
18089
18112
|
const timer = useRef(0);
|
|
18090
|
-
const
|
|
18091
|
-
|
|
18092
|
-
|
|
18093
|
-
|
|
18094
|
-
},
|
|
18095
|
-
className
|
|
18096
|
-
);
|
|
18113
|
+
const index = useRef(0);
|
|
18114
|
+
const times = useRef([]);
|
|
18115
|
+
const historyIndex = useRef(-1);
|
|
18116
|
+
const classes = classNames(classPrefix$1, className);
|
|
18097
18117
|
useImperativeHandle(ref, () => ({
|
|
18098
18118
|
add: (word) => {
|
|
18099
|
-
|
|
18100
|
-
|
|
18119
|
+
const _index = index.current % list.length;
|
|
18120
|
+
if (!loop && index.current === list.length) {
|
|
18121
|
+
list.splice(list.length, 0, word);
|
|
18122
|
+
} else {
|
|
18123
|
+
list.splice(_index, 0, word);
|
|
18124
|
+
}
|
|
18101
18125
|
}
|
|
18102
18126
|
}));
|
|
18127
|
+
const getNodeWidth = async (node, type4 = "width") => {
|
|
18128
|
+
if (node) {
|
|
18129
|
+
const refe = await getRectByTaro(node);
|
|
18130
|
+
return Math.ceil(type4 === "height" ? refe.height : refe.width);
|
|
18131
|
+
}
|
|
18132
|
+
return 0;
|
|
18133
|
+
};
|
|
18103
18134
|
useEffect(() => {
|
|
18104
|
-
|
|
18105
|
-
|
|
18135
|
+
const init = async () => {
|
|
18136
|
+
if (barrageBody.current) {
|
|
18137
|
+
barrageCWidth.current = await getNodeWidth(barrageBody.current);
|
|
18138
|
+
}
|
|
18139
|
+
};
|
|
18140
|
+
init();
|
|
18141
|
+
setTimeout(() => {
|
|
18142
|
+
var _a;
|
|
18143
|
+
(_a = barrageBody.current) == null ? void 0 : _a.style.setProperty(
|
|
18144
|
+
"--move-distance",
|
|
18145
|
+
`-${barrageCWidth.current}px`
|
|
18146
|
+
);
|
|
18147
|
+
index.current = 0;
|
|
18148
|
+
run();
|
|
18149
|
+
}, 300);
|
|
18106
18150
|
return () => {
|
|
18107
18151
|
clearInterval(timer.current);
|
|
18108
18152
|
};
|
|
18109
18153
|
}, [list]);
|
|
18110
18154
|
const run = () => {
|
|
18111
|
-
|
|
18112
|
-
|
|
18113
|
-
|
|
18114
|
-
|
|
18115
|
-
|
|
18116
|
-
|
|
18117
|
-
|
|
18118
|
-
setTimeout(() => {
|
|
18119
|
-
|
|
18120
|
-
|
|
18121
|
-
width = rec.width || 300;
|
|
18122
|
-
});
|
|
18123
|
-
query.select(`.${classPrefix$1}-item${index}`).boundingClientRect((recs) => {
|
|
18124
|
-
const height = recs.height;
|
|
18125
|
-
const nodeTop = `${index % rows * (height + gapY) + 20}px`;
|
|
18126
|
-
styleInfo(index, nodeTop, width);
|
|
18127
|
-
}).exec();
|
|
18128
|
-
}, 500);
|
|
18155
|
+
clearInterval(timer.current);
|
|
18156
|
+
let intervalCache = interval;
|
|
18157
|
+
const _index = (loop ? index.current % list.length : index.current) % rows;
|
|
18158
|
+
const result = times.current[_index] - rows * interval;
|
|
18159
|
+
if (result > 0) {
|
|
18160
|
+
intervalCache += result;
|
|
18161
|
+
}
|
|
18162
|
+
timer.current = window.setTimeout(() => {
|
|
18163
|
+
play();
|
|
18164
|
+
}, intervalCache);
|
|
18129
18165
|
};
|
|
18130
|
-
const
|
|
18131
|
-
|
|
18132
|
-
|
|
18133
|
-
|
|
18134
|
-
const
|
|
18135
|
-
|
|
18136
|
-
|
|
18137
|
-
|
|
18138
|
-
|
|
18139
|
-
|
|
18140
|
-
|
|
18141
|
-
|
|
18142
|
-
|
|
18143
|
-
|
|
18166
|
+
const play = async () => {
|
|
18167
|
+
if (!loop && index.current >= list.length) {
|
|
18168
|
+
return;
|
|
18169
|
+
}
|
|
18170
|
+
const _index = loop ? index.current % list.length : index.current;
|
|
18171
|
+
const el = document.createElement(`View`);
|
|
18172
|
+
let currentIndex = _index % rows;
|
|
18173
|
+
if (currentIndex <= historyIndex.current || historyIndex.current === 3 && currentIndex !== 0 || Math.abs(currentIndex - historyIndex.current) !== 1) {
|
|
18174
|
+
currentIndex = historyIndex.current + 1 >= rows ? 0 : historyIndex.current + 1;
|
|
18175
|
+
}
|
|
18176
|
+
historyIndex.current = currentIndex;
|
|
18177
|
+
el.innerHTML = list[_index];
|
|
18178
|
+
el.classList.add("barrage-item");
|
|
18179
|
+
barrageContainer.current.appendChild(el);
|
|
18180
|
+
try {
|
|
18181
|
+
const width = await getNodeWidth(el);
|
|
18182
|
+
const height = await getNodeWidth(el, "height");
|
|
18183
|
+
el.classList.add("move");
|
|
18184
|
+
const elScrollDuration = width / barrageCWidth.current * duration;
|
|
18185
|
+
times.current[currentIndex] = Math.ceil(elScrollDuration);
|
|
18186
|
+
el.style.animationDuration = `${(duration + elScrollDuration).toFixed(
|
|
18187
|
+
2
|
|
18188
|
+
)}ms`;
|
|
18189
|
+
el.style.top = `${currentIndex * (height + gapY) + 20}px`;
|
|
18190
|
+
el.style.width = `${width}px`;
|
|
18191
|
+
} catch (error) {
|
|
18192
|
+
console.log("异常自动流转到下一个");
|
|
18193
|
+
}
|
|
18194
|
+
el.addEventListener("animationend", () => {
|
|
18195
|
+
barrageContainer.current.removeChild(el);
|
|
18196
|
+
});
|
|
18197
|
+
index.current++;
|
|
18198
|
+
run();
|
|
18144
18199
|
};
|
|
18145
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
18146
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
18147
|
-
"div",
|
|
18148
|
-
{
|
|
18149
|
-
className: `barrage-item ${classPrefix$1}-item${index} move`,
|
|
18150
|
-
style: styleList[index],
|
|
18151
|
-
key: index
|
|
18152
|
-
},
|
|
18153
|
-
item.length > 8 ? `${item.substr(0, 8)}...` : item
|
|
18154
|
-
);
|
|
18155
|
-
})));
|
|
18200
|
+
return /* @__PURE__ */ React__default.createElement(View, { className: classes, ref: barrageBody, ...restProps }, /* @__PURE__ */ React__default.createElement(View, { ref: barrageContainer, className: "bContainer" }));
|
|
18156
18201
|
};
|
|
18157
18202
|
const Barrage = React__default.forwardRef(
|
|
18158
18203
|
InternalBarrage
|