@nutui/nutui-react-taro 2.3.10 → 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 +9 -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 -7
- 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-zQuxQEce.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-6nbq7wtt.js → barrage.taro-DW7wFS3Q.js} +2 -2
- 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-M2nZWxiB.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-PPkTQGfW.js → formitem.taro-yAquq6MF.js} +5 -5
- 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-ECs_E1Xn.js → shortpassword.taro-C3QLh5Lg.js} +5 -5
- 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-p-evMNR-.js → sticky.taro-DK45VevL.js} +3 -3
- 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-Yj7vgtSg.js → tabs.taro-CwhQTV-u.js} +5 -5
- 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/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/{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 +373 -389
- package/dist/nutui.react.umd.js +373 -389
- 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 +22 -3
- 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 +3 -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 +2 -4
- 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/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 +1 -1
- package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +1 -1
- 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/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
|
-
}
|
|
1651
|
-
shim.isRequired = shim;
|
|
1652
|
-
function getShim() {
|
|
1653
|
-
return shim;
|
|
1654
1672
|
}
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
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
|
|
@@ -1844,110 +1893,6 @@ function requireReactIs_development() {
|
|
|
1844
1893
|
}
|
|
1845
1894
|
return reactIs_development;
|
|
1846
1895
|
}
|
|
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;
|
|
1950
|
-
}
|
|
1951
1896
|
var hasRequiredReactIs;
|
|
1952
1897
|
function requireReactIs() {
|
|
1953
1898
|
if (hasRequiredReactIs)
|
|
@@ -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;
|
|
@@ -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
|
} : {
|
|
@@ -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
|
|
@@ -9878,9 +9887,11 @@ class FormStore {
|
|
|
9878
9887
|
);
|
|
9879
9888
|
}
|
|
9880
9889
|
const errs = [];
|
|
9881
|
-
|
|
9882
|
-
|
|
9883
|
-
|
|
9890
|
+
await Promise.all(
|
|
9891
|
+
filterEntities.map(async (entity) => {
|
|
9892
|
+
await this.validateEntities(entity, errs);
|
|
9893
|
+
})
|
|
9894
|
+
);
|
|
9884
9895
|
return errs;
|
|
9885
9896
|
});
|
|
9886
9897
|
__publicField(this, "submit", async () => {
|
|
@@ -10384,7 +10395,10 @@ const Input = forwardRef(
|
|
|
10384
10395
|
name,
|
|
10385
10396
|
className: "nut-input-native",
|
|
10386
10397
|
ref: inputRef,
|
|
10387
|
-
style: {
|
|
10398
|
+
style: {
|
|
10399
|
+
textAlign: `${// eslint-disable-next-line no-nested-ternary
|
|
10400
|
+
align === "right" ? "end" : align === "left" ? "start" : "center"}`
|
|
10401
|
+
},
|
|
10388
10402
|
type: inputType(type4),
|
|
10389
10403
|
password: type4 === "password",
|
|
10390
10404
|
maxlength: maxLength,
|
|
@@ -10425,11 +10439,10 @@ Input.displayName = "NutInput";
|
|
|
10425
10439
|
const defaultProps$W = {
|
|
10426
10440
|
...ComponentDefaults,
|
|
10427
10441
|
disabled: false,
|
|
10428
|
-
min: 1,
|
|
10429
|
-
max: 9999,
|
|
10430
10442
|
readOnly: false,
|
|
10431
10443
|
allowEmpty: false,
|
|
10432
|
-
|
|
10444
|
+
min: 1,
|
|
10445
|
+
max: 9999,
|
|
10433
10446
|
step: 1,
|
|
10434
10447
|
digits: 0,
|
|
10435
10448
|
async: false
|
|
@@ -10462,197 +10475,161 @@ const InputNumber = (props) => {
|
|
|
10462
10475
|
...defaultProps$W,
|
|
10463
10476
|
...props
|
|
10464
10477
|
};
|
|
10465
|
-
const
|
|
10466
|
-
|
|
10467
|
-
value,
|
|
10468
|
-
defaultValue
|
|
10478
|
+
const classes = classNames(classPrefix$h, {
|
|
10479
|
+
[`${classPrefix$h}-disabled`]: disabled
|
|
10469
10480
|
});
|
|
10481
|
+
const [focused, setFocused] = useState(false);
|
|
10482
|
+
const inputRef = useRef(null);
|
|
10470
10483
|
useEffect(() => {
|
|
10471
|
-
|
|
10472
|
-
|
|
10473
|
-
|
|
10474
|
-
setChecked(formatter(_checked));
|
|
10475
|
-
}
|
|
10476
|
-
}
|
|
10477
|
-
}, []);
|
|
10478
|
-
const classes = classNames(
|
|
10479
|
-
{
|
|
10480
|
-
[`${classPrefix$h}`]: true,
|
|
10481
|
-
[`${classPrefix$h}-disabled`]: disabled
|
|
10482
|
-
},
|
|
10483
|
-
className
|
|
10484
|
-
);
|
|
10485
|
-
const styles = {
|
|
10486
|
-
...style
|
|
10487
|
-
};
|
|
10488
|
-
const addAllow = (value2 = _checked) => {
|
|
10489
|
-
if (formatter) {
|
|
10490
|
-
const numValue = String(value2).replace(/[^0-9|.]/gi, "");
|
|
10491
|
-
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);
|
|
10492
10487
|
}
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
|
|
10497
|
-
|
|
10498
|
-
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) => {
|
|
10499
10493
|
}
|
|
10500
|
-
return Number(value2) > Number(min) && !disabled;
|
|
10501
|
-
};
|
|
10502
|
-
const iconMinusClasses = classNames("nut-inputnumber-icon icon-minus", {
|
|
10503
|
-
"nut-inputnumber-icon-disabled": !reduceAllow()
|
|
10504
|
-
});
|
|
10505
|
-
const iconAddClasses = classNames("nut-inputnumber-icon icon-plus", {
|
|
10506
|
-
"nut-inputnumber-icon-disabled": !addAllow()
|
|
10507
10494
|
});
|
|
10508
|
-
const
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10512
|
-
const outputValue = fixedDecimalPlaces(value2);
|
|
10513
|
-
onChange && onChange(outputValue, e2);
|
|
10514
|
-
if (!async) {
|
|
10515
|
-
if (Number(outputValue) < Number(min)) {
|
|
10516
|
-
formatter ? setChecked(formatter(Number(min))) : setChecked(Number(min));
|
|
10517
|
-
} else if (Number(outputValue) > Number(max)) {
|
|
10518
|
-
formatter ? setChecked(formatter(Number(max))) : setChecked(Number(max));
|
|
10519
|
-
} else {
|
|
10520
|
-
formatter ? setChecked(formatter(outputValue)) : setChecked(outputValue);
|
|
10521
|
-
}
|
|
10495
|
+
const bound2 = (value2, min2, max2) => {
|
|
10496
|
+
let res = value2;
|
|
10497
|
+
if (min2 !== void 0) {
|
|
10498
|
+
res = Math.max(Number(min2), res);
|
|
10522
10499
|
}
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
onMinus && onMinus(e2);
|
|
10526
|
-
if (reduceAllow()) {
|
|
10527
|
-
if (formatter) {
|
|
10528
|
-
const numValue = String(_checked).replace(/[^0-9|.]/gi, "");
|
|
10529
|
-
const outputValue = Number(numValue) - Number(step);
|
|
10530
|
-
inputRef.current = formatter(outputValue);
|
|
10531
|
-
emitChange(outputValue, e2);
|
|
10532
|
-
} else {
|
|
10533
|
-
const outputValue = Number(_checked) - Number(step);
|
|
10534
|
-
emitChange(outputValue, e2);
|
|
10535
|
-
}
|
|
10536
|
-
} else {
|
|
10537
|
-
onOverlimit && onOverlimit(e2);
|
|
10500
|
+
if (max2 !== void 0) {
|
|
10501
|
+
res = Math.min(Number(max2), res);
|
|
10538
10502
|
}
|
|
10503
|
+
return res;
|
|
10539
10504
|
};
|
|
10540
|
-
const
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
} else {
|
|
10549
|
-
const outputValue = Number(_checked) + Number(step);
|
|
10550
|
-
emitChange(outputValue, e2);
|
|
10551
|
-
}
|
|
10552
|
-
} else {
|
|
10553
|
-
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);
|
|
10554
10513
|
}
|
|
10555
|
-
|
|
10556
|
-
|
|
10557
|
-
const input = e2.target;
|
|
10558
|
-
onChange && onChange(input.value, e2);
|
|
10559
|
-
if (!async) {
|
|
10560
|
-
setChecked(input.value);
|
|
10514
|
+
if (digits) {
|
|
10515
|
+
return fixedValue.toFixed(digits).toString();
|
|
10561
10516
|
}
|
|
10517
|
+
return fixedValue.toString();
|
|
10562
10518
|
};
|
|
10563
|
-
const
|
|
10564
|
-
|
|
10565
|
-
|
|
10566
|
-
|
|
10567
|
-
|
|
10568
|
-
if (!numReg.test(input[0]) && numValue) {
|
|
10569
|
-
setChecked(formatter(numValue));
|
|
10570
|
-
} else if (!numReg.test(input[0]) && !numValue) {
|
|
10571
|
-
setChecked(input);
|
|
10572
|
-
} else if (numReg.test(input[0])) {
|
|
10573
|
-
if (formatter(numValue) === inputRef.current) {
|
|
10574
|
-
setChecked(numValue);
|
|
10575
|
-
} else {
|
|
10576
|
-
setChecked(formatter(numValue));
|
|
10577
|
-
inputRef.current = formatter(numValue);
|
|
10578
|
-
}
|
|
10579
|
-
}
|
|
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));
|
|
10580
10524
|
}
|
|
10581
|
-
};
|
|
10582
|
-
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
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);
|
|
10593
10549
|
}
|
|
10594
10550
|
}
|
|
10595
10551
|
};
|
|
10596
|
-
const
|
|
10552
|
+
const handleReduce = (e2) => {
|
|
10597
10553
|
if (disabled)
|
|
10598
10554
|
return;
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
onFocus && onFocus(e2);
|
|
10555
|
+
onMinus == null ? void 0 : onMinus(e2);
|
|
10556
|
+
update(true, e2);
|
|
10602
10557
|
};
|
|
10603
|
-
const
|
|
10558
|
+
const handlePlus = (e2) => {
|
|
10604
10559
|
if (disabled)
|
|
10605
10560
|
return;
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
-
|
|
10610
|
-
if (
|
|
10611
|
-
|
|
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);
|
|
10612
10582
|
}
|
|
10613
|
-
if (
|
|
10614
|
-
|
|
10615
|
-
} else if (value2 > Number(max)) {
|
|
10616
|
-
value2 = Number(max);
|
|
10583
|
+
if (!async) {
|
|
10584
|
+
onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e2);
|
|
10617
10585
|
}
|
|
10618
|
-
|
|
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);
|
|
10619
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
|
+
}
|
|
10620
10601
|
};
|
|
10621
|
-
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(
|
|
10622
10603
|
t,
|
|
10623
10604
|
{
|
|
10624
|
-
className:
|
|
10625
|
-
|
|
10605
|
+
className: classNames("nut-inputnumber-icon icon-minus", {
|
|
10606
|
+
[`${classPrefix$h}-icon-disabled`]: shadowValue === min || disabled
|
|
10607
|
+
}),
|
|
10608
|
+
onClick: handleReduce
|
|
10626
10609
|
}
|
|
10627
|
-
)), /* @__PURE__ */ React__default.createElement(React__default.Fragment, null,
|
|
10610
|
+
)), /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
10628
10611
|
"input",
|
|
10629
10612
|
{
|
|
10630
10613
|
className: "nut-number-input",
|
|
10631
|
-
type: "
|
|
10632
|
-
|
|
10633
|
-
|
|
10614
|
+
type: "digit",
|
|
10615
|
+
ref: inputRef,
|
|
10616
|
+
inputMode: "decimal",
|
|
10634
10617
|
disabled,
|
|
10635
10618
|
readOnly,
|
|
10636
|
-
value:
|
|
10637
|
-
onInput:
|
|
10638
|
-
onBlur:
|
|
10639
|
-
onFocus:
|
|
10619
|
+
value: inputValue,
|
|
10620
|
+
onInput: handleInputChange,
|
|
10621
|
+
onBlur: handleBlur,
|
|
10622
|
+
onFocus: handleFocus
|
|
10640
10623
|
}
|
|
10641
|
-
) : /* @__PURE__ */ React__default.createElement(
|
|
10642
|
-
|
|
10624
|
+
)), /* @__PURE__ */ React__default.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React__default.createElement(
|
|
10625
|
+
i,
|
|
10643
10626
|
{
|
|
10644
|
-
className: "nut-
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
disabled,
|
|
10649
|
-
readOnly,
|
|
10650
|
-
value: _checked,
|
|
10651
|
-
onInput: changeValue,
|
|
10652
|
-
onBlur: burValue,
|
|
10653
|
-
onFocus: focusValue
|
|
10627
|
+
className: classNames("nut-inputnumber-icon icon-plus", {
|
|
10628
|
+
[`${classPrefix$h}-icon-disabled`]: shadowValue === max || disabled
|
|
10629
|
+
}),
|
|
10630
|
+
onClick: handlePlus
|
|
10654
10631
|
}
|
|
10655
|
-
))
|
|
10632
|
+
)));
|
|
10656
10633
|
};
|
|
10657
10634
|
InputNumber.defaultProps = defaultProps$W;
|
|
10658
10635
|
InputNumber.displayName = "NutInputNumber";
|
|
@@ -11899,8 +11876,9 @@ const SearchBar = (props) => {
|
|
|
11899
11876
|
const classPrefix2 = "nut-searchbar";
|
|
11900
11877
|
const { locale } = useConfig$1();
|
|
11901
11878
|
const searchRef = useRef(null);
|
|
11902
|
-
const [value, setValue] = useState(() => props.value);
|
|
11903
11879
|
const {
|
|
11880
|
+
value: outerValue,
|
|
11881
|
+
style,
|
|
11904
11882
|
placeholder,
|
|
11905
11883
|
shape,
|
|
11906
11884
|
className,
|
|
@@ -11924,47 +11902,52 @@ const SearchBar = (props) => {
|
|
|
11924
11902
|
...defaultProps$O,
|
|
11925
11903
|
...props
|
|
11926
11904
|
};
|
|
11905
|
+
const [value, setValue] = useState(() => outerValue);
|
|
11927
11906
|
const forceFocus = () => {
|
|
11928
11907
|
const searchSelf = searchRef.current;
|
|
11929
11908
|
searchSelf && searchSelf.focus();
|
|
11930
11909
|
};
|
|
11931
11910
|
const change = (event) => {
|
|
11932
|
-
if (value === event.
|
|
11911
|
+
if (value === event.detail.value)
|
|
11933
11912
|
return;
|
|
11934
|
-
onChange && (onChange == null ? void 0 : onChange(event.
|
|
11935
|
-
setValue(event.
|
|
11936
|
-
event.
|
|
11913
|
+
onChange && (onChange == null ? void 0 : onChange(event.detail.value, event));
|
|
11914
|
+
setValue(event.detail.value);
|
|
11915
|
+
event.detail.value === "" && forceFocus();
|
|
11937
11916
|
};
|
|
11938
11917
|
const focus = (event) => {
|
|
11939
|
-
const { value: value2 } = event.
|
|
11918
|
+
const { value: value2 } = event.detail;
|
|
11940
11919
|
onFocus && (onFocus == null ? void 0 : onFocus(value2, event));
|
|
11941
11920
|
};
|
|
11942
11921
|
const blur = (event) => {
|
|
11943
11922
|
const searchSelf = searchRef.current;
|
|
11944
11923
|
searchSelf && searchSelf.blur();
|
|
11945
|
-
const { value: value2 } = event.
|
|
11924
|
+
const { value: value2 } = event.detail;
|
|
11946
11925
|
onBlur && (onBlur == null ? void 0 : onBlur(value2, event));
|
|
11947
11926
|
};
|
|
11948
11927
|
useEffect(() => {
|
|
11949
|
-
setValue(
|
|
11950
|
-
}, [
|
|
11928
|
+
setValue(outerValue || "");
|
|
11929
|
+
}, [outerValue]);
|
|
11951
11930
|
useEffect(() => {
|
|
11952
|
-
|
|
11931
|
+
if (Taro.getEnv() === "WEB") {
|
|
11932
|
+
autoFocus && forceFocus();
|
|
11933
|
+
}
|
|
11953
11934
|
}, [autoFocus]);
|
|
11954
11935
|
const renderField = () => {
|
|
11955
11936
|
return /* @__PURE__ */ React__default.createElement(
|
|
11956
|
-
|
|
11937
|
+
Input$1,
|
|
11957
11938
|
{
|
|
11958
11939
|
className: `${classPrefix2}-input ${clearable ? `${classPrefix2}-input-clear` : ""}`,
|
|
11959
11940
|
ref: searchRef,
|
|
11960
|
-
style
|
|
11961
|
-
value: value || "",
|
|
11941
|
+
style,
|
|
11942
|
+
value: (value || "").toString(),
|
|
11962
11943
|
placeholder: placeholder || locale.placeholder,
|
|
11963
|
-
disabled,
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11944
|
+
disabled: disabled || readOnly,
|
|
11945
|
+
maxlength: maxLength,
|
|
11946
|
+
nativeProps: {
|
|
11947
|
+
onKeyPress: onKeypress
|
|
11948
|
+
},
|
|
11949
|
+
autoFocus,
|
|
11950
|
+
onInput: (e2) => change(e2),
|
|
11968
11951
|
onFocus: (e2) => focus(e2),
|
|
11969
11952
|
onBlur: (e2) => blur(e2),
|
|
11970
11953
|
onClick: (e2) => clickInput(e2)
|
|
@@ -11977,26 +11960,26 @@ const SearchBar = (props) => {
|
|
|
11977
11960
|
const renderLeftIn = () => {
|
|
11978
11961
|
if (!leftIn)
|
|
11979
11962
|
return null;
|
|
11980
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
11963
|
+
return /* @__PURE__ */ React__default.createElement(View, { className: `${classPrefix2}-leftin ${classPrefix2}-icon` }, leftIn);
|
|
11981
11964
|
};
|
|
11982
11965
|
const renderLeft = () => {
|
|
11983
11966
|
if (!backable && !left2)
|
|
11984
11967
|
return null;
|
|
11985
|
-
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);
|
|
11986
11969
|
};
|
|
11987
11970
|
const renderRightIn = () => {
|
|
11988
11971
|
if (!rightIn)
|
|
11989
11972
|
return null;
|
|
11990
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
11973
|
+
return /* @__PURE__ */ React__default.createElement(View, { className: `${classPrefix2}-rightin ${classPrefix2}-icon` }, rightIn);
|
|
11991
11974
|
};
|
|
11992
11975
|
const renderRight = () => {
|
|
11993
11976
|
if (!right2)
|
|
11994
11977
|
return null;
|
|
11995
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
11978
|
+
return /* @__PURE__ */ React__default.createElement(View, { className: `${classPrefix2}-right` }, right2);
|
|
11996
11979
|
};
|
|
11997
11980
|
const handleClear = () => {
|
|
11998
11981
|
return /* @__PURE__ */ React__default.createElement(
|
|
11999
|
-
|
|
11982
|
+
View,
|
|
12000
11983
|
{
|
|
12001
11984
|
className: `${classPrefix2}-clear ${classPrefix2}-icon`,
|
|
12002
11985
|
onClick: (e2) => clearaVal(e2)
|
|
@@ -12010,6 +11993,7 @@ const SearchBar = (props) => {
|
|
|
12010
11993
|
}
|
|
12011
11994
|
setValue("");
|
|
12012
11995
|
forceFocus();
|
|
11996
|
+
onChange && (onChange == null ? void 0 : onChange(""));
|
|
12013
11997
|
onClear && onClear(event);
|
|
12014
11998
|
};
|
|
12015
11999
|
const onKeypress = (e2) => {
|
|
@@ -12021,26 +12005,25 @@ const SearchBar = (props) => {
|
|
|
12021
12005
|
}
|
|
12022
12006
|
};
|
|
12023
12007
|
return /* @__PURE__ */ React__default.createElement(
|
|
12024
|
-
|
|
12008
|
+
View,
|
|
12025
12009
|
{
|
|
12026
12010
|
className: `${classPrefix2} ${disabled ? `${classPrefix2}-disabled` : ""} ${className || ""}`,
|
|
12027
|
-
style
|
|
12011
|
+
style
|
|
12028
12012
|
},
|
|
12029
12013
|
renderLeft(),
|
|
12030
12014
|
/* @__PURE__ */ React__default.createElement(
|
|
12031
|
-
|
|
12015
|
+
View,
|
|
12032
12016
|
{
|
|
12033
12017
|
className: `${classPrefix2}-content ${shape === "round" ? `${classPrefix2}-round` : ""}`
|
|
12034
12018
|
},
|
|
12035
12019
|
renderLeftIn(),
|
|
12036
|
-
/* @__PURE__ */ React__default.createElement(
|
|
12020
|
+
/* @__PURE__ */ React__default.createElement(View, { className: "nut-searchbar-input-box" }, renderField()),
|
|
12037
12021
|
clearable && !value && renderRightIn(),
|
|
12038
12022
|
clearable && value && handleClear()
|
|
12039
12023
|
),
|
|
12040
12024
|
renderRight()
|
|
12041
12025
|
);
|
|
12042
12026
|
};
|
|
12043
|
-
SearchBar.defaultProps = defaultProps$O;
|
|
12044
12027
|
SearchBar.displayName = "NutSearchBar";
|
|
12045
12028
|
const defaultProps$N = {
|
|
12046
12029
|
...ComponentDefaults,
|
|
@@ -12135,7 +12118,7 @@ const InternalShortPassword = (props, ref) => {
|
|
|
12135
12118
|
},
|
|
12136
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) => {
|
|
12137
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` })));
|
|
12138
|
-
}))), /* @__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)))
|
|
12139
12122
|
);
|
|
12140
12123
|
};
|
|
12141
12124
|
const ShortPassword = React__default.forwardRef(InternalShortPassword);
|
|
@@ -13186,6 +13169,7 @@ const ActionSheet = (props) => {
|
|
|
13186
13169
|
return /* @__PURE__ */ React__default.createElement(
|
|
13187
13170
|
Popup,
|
|
13188
13171
|
{
|
|
13172
|
+
...rest,
|
|
13189
13173
|
round: true,
|
|
13190
13174
|
visible,
|
|
13191
13175
|
position: "bottom",
|
|
@@ -14964,7 +14948,7 @@ const Skeleton = (props) => {
|
|
|
14964
14948
|
const classPrefix2 = "nut-skeleton";
|
|
14965
14949
|
const classes = classNames(classPrefix2, className);
|
|
14966
14950
|
const avatarClass = classNames({
|
|
14967
|
-
avatar: true,
|
|
14951
|
+
[`nut-avatar`]: true,
|
|
14968
14952
|
[`avatar-${avatarShape}`]: avatarShape
|
|
14969
14953
|
});
|
|
14970
14954
|
const repeatLines = (num) => {
|
|
@@ -14982,7 +14966,7 @@ const Skeleton = (props) => {
|
|
|
14982
14966
|
height: "50px"
|
|
14983
14967
|
};
|
|
14984
14968
|
};
|
|
14985
|
-
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(
|
|
14986
14970
|
Avatar,
|
|
14987
14971
|
{
|
|
14988
14972
|
className: avatarClass,
|