@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import React__default, { createContext, useContext } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs, i as isEqual } from "./index-
|
|
4
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs, i as isEqual } from "./index-nbt45_aK.js";
|
|
5
5
|
var INFINITY = 1 / 0;
|
|
6
6
|
var symbolTag = "[object Symbol]";
|
|
7
7
|
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useState, useRef, useImperativeHandle, useEffect } from "react";
|
|
2
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
3
|
-
import { C as ComponentDefaults } from "./typings-
|
|
4
|
-
import { p as padZero } from "./pad-zero-
|
|
2
|
+
import { u as useConfig } from "./configprovider.taro-BXergk04.js";
|
|
3
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
4
|
+
import { p as padZero } from "./pad-zero-B2OUQfh7.js";
|
|
5
5
|
const defaultProps = {
|
|
6
6
|
...ComponentDefaults,
|
|
7
7
|
paused: false,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from "react";
|
|
2
2
|
import { View } from "@tarojs/components";
|
|
3
|
-
import { P as Picker } from "./picker.taro-
|
|
4
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
5
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
6
|
-
import { C as ComponentDefaults } from "./typings-
|
|
7
|
-
import { p as padZero } from "./pad-zero-
|
|
3
|
+
import { P as Picker } from "./picker.taro-kFY-CGKh.js";
|
|
4
|
+
import { u as useConfig } from "./configprovider.taro-BXergk04.js";
|
|
5
|
+
import { u as usePropsValue } from "./use-props-value-DvrH7S--.js";
|
|
6
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
|
+
import { p as padZero } from "./pad-zero-B2OUQfh7.js";
|
|
8
8
|
const isDate = (val) => {
|
|
9
9
|
return Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
|
|
10
10
|
};
|
|
@@ -3,10 +3,10 @@ import classNames from "classnames";
|
|
|
3
3
|
import { CSSTransition } from "react-transition-group";
|
|
4
4
|
import { View } from "@tarojs/components";
|
|
5
5
|
import { Close } from "@nutui/icons-react-taro";
|
|
6
|
-
import { B as Button } from "./button.taro-
|
|
7
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
8
|
-
import { u as useLockScrollTaro, O as Overlay } from "./overlay.taro-
|
|
9
|
-
import { b as useParams, u as useCustomEvent, a as useCustomEventsPath, c as customEvents } from "./use-custom-event-
|
|
6
|
+
import { B as Button } from "./button.taro-COS5LtYd.js";
|
|
7
|
+
import { u as useConfig } from "./configprovider.taro-BXergk04.js";
|
|
8
|
+
import { u as useLockScrollTaro, O as Overlay } from "./overlay.taro-ByBhOQNL.js";
|
|
9
|
+
import { b as useParams, u as useCustomEvent, a as useCustomEventsPath, c as customEvents } from "./use-custom-event-BFZJeHQI.js";
|
|
10
10
|
const Content = (props) => {
|
|
11
11
|
const { visible, title, header, footer, close: close2, footerDirection, onClick, children } = props;
|
|
12
12
|
const classPrefix = "nut-dialog";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
|
-
import { C as ComponentDefaults } from "./typings-
|
|
3
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
4
4
|
const defaultProps = {
|
|
5
5
|
...ComponentDefaults,
|
|
6
6
|
contentPosition: "center",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { useState, useRef, useEffect } from "react";
|
|
2
2
|
import { getSystemInfoSync, createSelectorQuery } from "@tarojs/taro";
|
|
3
|
-
import { C as ComponentDefaults } from "./typings-
|
|
3
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
4
4
|
const defaultProps = {
|
|
5
5
|
...ComponentDefaults,
|
|
6
6
|
attract: false,
|
|
@@ -2,7 +2,7 @@ import React__default, { createContext, useRef, useState, useEffect } from "reac
|
|
|
2
2
|
import Taro, { nextTick, createSelectorQuery } from "@tarojs/taro";
|
|
3
3
|
import { ScrollView } from "@tarojs/components";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import { C as ComponentDefaults } from "./typings-
|
|
5
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
6
6
|
const elevatorContext = createContext({});
|
|
7
7
|
const defaultProps = {
|
|
8
8
|
...ComponentDefaults,
|
|
@@ -2,8 +2,8 @@ import React__default, { useRef, useState, useEffect } from "react";
|
|
|
2
2
|
import { nextTick, createSelectorQuery } from "@tarojs/taro";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { View } from "@tarojs/components";
|
|
5
|
-
import { g as getRectByTaro } from "./get-rect-by-taro-
|
|
6
|
-
import { C as ComponentDefaults } from "./typings-
|
|
5
|
+
import { g as getRectByTaro } from "./get-rect-by-taro-BnfHyJJb.js";
|
|
6
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
const defaultProps = {
|
|
8
8
|
...ComponentDefaults,
|
|
9
9
|
content: "",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
4
|
-
import { C as ComponentDefaults } from "./typings-
|
|
5
|
-
import { B as Button } from "./button.taro-
|
|
3
|
+
import { u as useConfig } from "./configprovider.taro-BXergk04.js";
|
|
4
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
5
|
+
import { B as Button } from "./button.taro-COS5LtYd.js";
|
|
6
6
|
const defaultStatus = {
|
|
7
7
|
empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
|
|
8
8
|
error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { ArrowLeft } from "@nutui/icons-react-taro";
|
|
4
|
-
import { O as Overlay } from "./overlay.taro-
|
|
5
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
6
|
-
import { C as ComponentDefaults } from "./typings-
|
|
4
|
+
import { O as Overlay } from "./overlay.taro-ByBhOQNL.js";
|
|
5
|
+
import { u as useConfig } from "./configprovider.taro-BXergk04.js";
|
|
6
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
const defaultProps = {
|
|
8
8
|
...ComponentDefaults,
|
|
9
9
|
activeText: "",
|
|
@@ -5,8 +5,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import React__default, { createContext, useRef } from "react";
|
|
8
|
-
import { C as Cell } from "./cell.taro-
|
|
9
|
-
import { C as ComponentDefaults } from "./typings-
|
|
8
|
+
import { C as Cell } from "./cell.taro-BlmoMAPC.js";
|
|
9
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
10
10
|
const Context = createContext({});
|
|
11
11
|
function _extends() {
|
|
12
12
|
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
@@ -1066,6 +1066,7 @@ class FormStore {
|
|
|
1066
1066
|
constructor() {
|
|
1067
1067
|
// 初始化数据
|
|
1068
1068
|
__publicField(this, "initialValues", {});
|
|
1069
|
+
__publicField(this, "updateList", []);
|
|
1069
1070
|
// 存放表单中所有的数据 eg. {password: "ddd",username: "123"}
|
|
1070
1071
|
__publicField(this, "store", {});
|
|
1071
1072
|
// 所有的组件实例
|
|
@@ -1135,6 +1136,15 @@ class FormStore {
|
|
|
1135
1136
|
}
|
|
1136
1137
|
});
|
|
1137
1138
|
});
|
|
1139
|
+
this.updateList.forEach((item) => {
|
|
1140
|
+
let shouldUpdate = item.condition;
|
|
1141
|
+
if (typeof item.condition === "function") {
|
|
1142
|
+
shouldUpdate = item.condition();
|
|
1143
|
+
}
|
|
1144
|
+
if (shouldUpdate) {
|
|
1145
|
+
item.entity.onStoreChange("update");
|
|
1146
|
+
}
|
|
1147
|
+
});
|
|
1138
1148
|
});
|
|
1139
1149
|
__publicField(this, "setCallback", (callback) => {
|
|
1140
1150
|
this.callbacks = {
|
|
@@ -1180,9 +1190,9 @@ class FormStore {
|
|
|
1180
1190
|
filterEntities = this.fieldEntities.filter(({ props: { name } }) => nameList.includes(name));
|
|
1181
1191
|
}
|
|
1182
1192
|
const errs = [];
|
|
1183
|
-
filterEntities.
|
|
1184
|
-
this.validateEntities(entity, errs);
|
|
1185
|
-
});
|
|
1193
|
+
await Promise.all(filterEntities.map(async (entity) => {
|
|
1194
|
+
await this.validateEntities(entity, errs);
|
|
1195
|
+
}));
|
|
1186
1196
|
return errs;
|
|
1187
1197
|
});
|
|
1188
1198
|
__publicField(this, "submit", async () => {
|
|
@@ -1201,6 +1211,16 @@ class FormStore {
|
|
|
1201
1211
|
entity.onStoreChange("reset");
|
|
1202
1212
|
});
|
|
1203
1213
|
});
|
|
1214
|
+
// 监听事件
|
|
1215
|
+
__publicField(this, "registerUpdate", (field, shouldUpdate) => {
|
|
1216
|
+
this.updateList.push({
|
|
1217
|
+
entity: field,
|
|
1218
|
+
condition: shouldUpdate
|
|
1219
|
+
});
|
|
1220
|
+
return () => {
|
|
1221
|
+
this.updateList = this.updateList.filter((i) => i.entity !== field);
|
|
1222
|
+
};
|
|
1223
|
+
});
|
|
1204
1224
|
__publicField(this, "dispatch", ({ name }) => {
|
|
1205
1225
|
this.validateFields([name]);
|
|
1206
1226
|
});
|
|
@@ -1212,7 +1232,8 @@ class FormStore {
|
|
|
1212
1232
|
setInitialValues: this.setInitialValues,
|
|
1213
1233
|
dispatch: this.dispatch,
|
|
1214
1234
|
store: this.store,
|
|
1215
|
-
fieldEntities: this.fieldEntities
|
|
1235
|
+
fieldEntities: this.fieldEntities,
|
|
1236
|
+
registerUpdate: this.registerUpdate
|
|
1216
1237
|
};
|
|
1217
1238
|
}
|
|
1218
1239
|
});
|
|
@@ -1264,13 +1285,16 @@ const defaultProps = {
|
|
|
1264
1285
|
label: "",
|
|
1265
1286
|
rules: [{ required: false, message: "" }],
|
|
1266
1287
|
errorMessageAlign: "left",
|
|
1267
|
-
validateTrigger: "onChange"
|
|
1288
|
+
validateTrigger: "onChange",
|
|
1289
|
+
shouldUpdate: false,
|
|
1290
|
+
noStyle: false
|
|
1268
1291
|
};
|
|
1269
1292
|
class FormItem extends React__default.Component {
|
|
1270
1293
|
constructor(props) {
|
|
1271
1294
|
super(props);
|
|
1272
1295
|
__publicField(this, "cancelRegister");
|
|
1273
1296
|
__publicField(this, "componentRef");
|
|
1297
|
+
__publicField(this, "eventOff");
|
|
1274
1298
|
// children添加value属性和onChange事件
|
|
1275
1299
|
__publicField(this, "getControlled", (children) => {
|
|
1276
1300
|
var _a;
|
|
@@ -1344,7 +1368,6 @@ class FormItem extends React__default.Component {
|
|
|
1344
1368
|
}
|
|
1345
1369
|
});
|
|
1346
1370
|
__publicField(this, "renderLayout", (childNode) => {
|
|
1347
|
-
var _a;
|
|
1348
1371
|
const { label, name, required: required4, rules: rules2, className, style, errorMessageAlign } = {
|
|
1349
1372
|
...defaultProps,
|
|
1350
1373
|
...this.props
|
|
@@ -1368,10 +1391,7 @@ class FormItem extends React__default.Component {
|
|
|
1368
1391
|
"div",
|
|
1369
1392
|
{ className: "nut-cell-value nut-form-item-body" },
|
|
1370
1393
|
React__default.createElement("div", { className: "nut-form-item-body-slots" }, childNode),
|
|
1371
|
-
React__default.createElement("div", { className: "nut-form-item-body-tips", style: {
|
|
1372
|
-
textAlign: errorMessageAlign,
|
|
1373
|
-
display: (item == null ? void 0 : item.length) ? "initial" : "none"
|
|
1374
|
-
} }, (_a = item == null ? void 0 : item[0]) == null ? void 0 : _a.message)
|
|
1394
|
+
item && item.length > 0 && React__default.createElement("div", { className: "nut-form-item-body-tips", style: { textAlign: errorMessageAlign } }, item[0].message)
|
|
1375
1395
|
)
|
|
1376
1396
|
);
|
|
1377
1397
|
});
|
|
@@ -1381,19 +1401,28 @@ class FormItem extends React__default.Component {
|
|
|
1381
1401
|
};
|
|
1382
1402
|
}
|
|
1383
1403
|
componentDidMount() {
|
|
1384
|
-
const { registerField } = this.context.getInternal(SECRET);
|
|
1404
|
+
const { registerField, registerUpdate } = this.context.getInternal(SECRET);
|
|
1385
1405
|
this.cancelRegister = registerField(this);
|
|
1406
|
+
this.eventOff = registerUpdate(this, this.props.shouldUpdate);
|
|
1386
1407
|
}
|
|
1387
1408
|
componentWillUnmount() {
|
|
1388
1409
|
if (this.cancelRegister) {
|
|
1389
1410
|
this.cancelRegister();
|
|
1390
1411
|
}
|
|
1412
|
+
if (this.eventOff) {
|
|
1413
|
+
this.eventOff();
|
|
1414
|
+
}
|
|
1391
1415
|
}
|
|
1392
1416
|
render() {
|
|
1393
1417
|
const { children } = this.props;
|
|
1394
1418
|
const child = Array.isArray(children) ? children[0] : children;
|
|
1395
|
-
|
|
1396
|
-
|
|
1419
|
+
let returnChildNode;
|
|
1420
|
+
if (!this.props.shouldUpdate) {
|
|
1421
|
+
returnChildNode = React__default.cloneElement(child, this.getControlled(child));
|
|
1422
|
+
} else {
|
|
1423
|
+
returnChildNode = child(this.context);
|
|
1424
|
+
}
|
|
1425
|
+
return React__default.createElement(React__default.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
|
|
1397
1426
|
}
|
|
1398
1427
|
}
|
|
1399
1428
|
__publicField(FormItem, "defaultProps", defaultProps);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
|
-
import { a as GridContext, G as GridItem } from "./griditem.taro-
|
|
4
|
-
import { p as pxCheck } from "./px-check-
|
|
3
|
+
import { a as GridContext, G as GridItem } from "./griditem.taro-BqS5eUJd.js";
|
|
4
|
+
import { p as pxCheck } from "./px-check-D1Xbd9pj.js";
|
|
5
5
|
const defaultProps = {
|
|
6
6
|
columns: 4,
|
|
7
7
|
gap: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useContext } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
4
|
-
import { p as pxCheck } from "./px-check-
|
|
3
|
+
import { u as useConfig } from "./configprovider.taro-BXergk04.js";
|
|
4
|
+
import { p as pxCheck } from "./px-check-D1Xbd9pj.js";
|
|
5
5
|
const gridContext = {
|
|
6
6
|
onClick: (item, index) => {
|
|
7
7
|
}
|
|
@@ -3,7 +3,7 @@ import Taro from "@tarojs/taro";
|
|
|
3
3
|
import { Image as Image$2 } from "@tarojs/components";
|
|
4
4
|
import { ImageError, Image as Image$1 } from "@nutui/icons-react-taro";
|
|
5
5
|
import classNames from "classnames";
|
|
6
|
-
import { p as pxCheck } from "./px-check-
|
|
6
|
+
import { p as pxCheck } from "./px-check-D1Xbd9pj.js";
|
|
7
7
|
const defaultProps = {
|
|
8
8
|
src: "",
|
|
9
9
|
error: true,
|
|
@@ -3,12 +3,12 @@ import Taro from "@tarojs/taro";
|
|
|
3
3
|
import { Video } from "@tarojs/components";
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { Close } from "@nutui/icons-react-taro";
|
|
6
|
-
import { P as Popup } from "./popup.taro-
|
|
7
|
-
import { I as Image } from "./image.taro-
|
|
6
|
+
import { P as Popup } from "./popup.taro-44018H4d.js";
|
|
7
|
+
import { I as Image } from "./image.taro-W45-Ju0_.js";
|
|
8
8
|
import InnerSwiper from "./Swiper.js";
|
|
9
|
-
import { S as SwiperItem } from "./swiperitem.taro-
|
|
10
|
-
import { C as ComponentDefaults } from "./typings-
|
|
11
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
9
|
+
import { S as SwiperItem } from "./swiperitem.taro-CjcW-KYA.js";
|
|
10
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
11
|
+
import { u as usePropsValue } from "./use-props-value-DvrH7S--.js";
|
|
12
12
|
const defaultProps = {
|
|
13
13
|
...ComponentDefaults,
|
|
14
14
|
images: [],
|
|
@@ -2,8 +2,8 @@ import React__default, { useState, useRef, useEffect } from "react";
|
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { ScrollView } from "@tarojs/components";
|
|
4
4
|
import { createSelectorQuery } from "@tarojs/taro";
|
|
5
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
6
|
-
import { C as ComponentDefaults } from "./typings-
|
|
5
|
+
import { u as useConfig } from "./configprovider.taro-BXergk04.js";
|
|
6
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
const defaultProps = {
|
|
8
8
|
...ComponentDefaults,
|
|
9
9
|
hasMore: true,
|
|
@@ -2,9 +2,9 @@ import React__default, { forwardRef, useRef, useState, useImperativeHandle, useC
|
|
|
2
2
|
import { View, Input as Input$1 } from "@tarojs/components";
|
|
3
3
|
import { MaskClose } from "@nutui/icons-react-taro";
|
|
4
4
|
import Taro, { getEnv, ENV_TYPE } from "@tarojs/taro";
|
|
5
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
6
|
-
import { C as ComponentDefaults } from "./typings-
|
|
7
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
5
|
+
import { u as useConfig } from "./configprovider.taro-BXergk04.js";
|
|
6
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
|
+
import { u as usePropsValue } from "./use-props-value-DvrH7S--.js";
|
|
8
8
|
function trimExtraChar(value, char, regExp) {
|
|
9
9
|
const index = value.indexOf(char);
|
|
10
10
|
if (index === -1) {
|
|
@@ -145,7 +145,10 @@ const Input = forwardRef((props, ref) => {
|
|
|
145
145
|
{ className: `${inputClass()} ${className || ""}`, style, onClick: (e) => {
|
|
146
146
|
onClick && onClick(e);
|
|
147
147
|
} },
|
|
148
|
-
React__default.createElement(Input$1, { ...rest, name, className: "nut-input-native", ref: inputRef, style: {
|
|
148
|
+
React__default.createElement(Input$1, { ...rest, name, className: "nut-input-native", ref: inputRef, style: {
|
|
149
|
+
textAlign: `${// eslint-disable-next-line no-nested-ternary
|
|
150
|
+
align === "right" ? "end" : align === "left" ? "start" : "center"}`
|
|
151
|
+
}, type: inputType(type), password: type === "password", maxlength: maxLength, placeholder: placeholder || locale.placeholder, disabled: disabled || readOnly, value, focus: autoFocus, confirmType, onBlur: handleBlur, onFocus: handleFocus, onInput: (e) => {
|
|
149
152
|
handleInput(e.currentTarget.value);
|
|
150
153
|
} }),
|
|
151
154
|
React__default.createElement(View, { style: {
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import React__default, { useState, useRef, useEffect } from "react";
|
|
2
|
+
import { Minus, Plus } from "@nutui/icons-react-taro";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { u as usePropsValue } from "./use-props-value-DvrH7S--.js";
|
|
5
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
6
|
+
const defaultProps = {
|
|
7
|
+
...ComponentDefaults,
|
|
8
|
+
disabled: false,
|
|
9
|
+
readOnly: false,
|
|
10
|
+
allowEmpty: false,
|
|
11
|
+
min: 1,
|
|
12
|
+
max: 9999,
|
|
13
|
+
step: 1,
|
|
14
|
+
digits: 0,
|
|
15
|
+
async: false
|
|
16
|
+
};
|
|
17
|
+
const classPrefix = `nut-inputnumber`;
|
|
18
|
+
const InputNumber = (props) => {
|
|
19
|
+
const { children, disabled, min, max, readOnly, value, defaultValue, allowEmpty, digits, step, async, className, style, formatter, onPlus, onMinus, onOverlimit, onBlur, onFocus, onChange, ...restProps } = {
|
|
20
|
+
...defaultProps,
|
|
21
|
+
...props
|
|
22
|
+
};
|
|
23
|
+
const classes = classNames(classPrefix, {
|
|
24
|
+
[`${classPrefix}-disabled`]: disabled
|
|
25
|
+
});
|
|
26
|
+
const [focused, setFocused] = useState(false);
|
|
27
|
+
const inputRef = useRef(null);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
var _a, _b;
|
|
30
|
+
if (focused) {
|
|
31
|
+
(_b = (_a = inputRef.current) == null ? void 0 : _a.select) == null ? void 0 : _b.call(_a);
|
|
32
|
+
}
|
|
33
|
+
}, [focused]);
|
|
34
|
+
const [shadowValue, setShadowValue] = usePropsValue({
|
|
35
|
+
value: typeof value === "string" ? parseFloat(value) : value,
|
|
36
|
+
defaultValue: typeof defaultValue === "string" ? parseFloat(defaultValue) : defaultValue,
|
|
37
|
+
onChange: (value2) => {
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
const bound = (value2, min2, max2) => {
|
|
41
|
+
let res = value2;
|
|
42
|
+
if (min2 !== void 0) {
|
|
43
|
+
res = Math.max(Number(min2), res);
|
|
44
|
+
}
|
|
45
|
+
if (max2 !== void 0) {
|
|
46
|
+
res = Math.min(Number(max2), res);
|
|
47
|
+
}
|
|
48
|
+
return res;
|
|
49
|
+
};
|
|
50
|
+
const format = (value2) => {
|
|
51
|
+
if (value2 === null)
|
|
52
|
+
return "";
|
|
53
|
+
if (typeof value2 === "string")
|
|
54
|
+
value2 = parseFloat(value2);
|
|
55
|
+
const fixedValue = bound(value2, Number(min), Number(max));
|
|
56
|
+
if (formatter) {
|
|
57
|
+
return formatter(fixedValue);
|
|
58
|
+
}
|
|
59
|
+
if (digits) {
|
|
60
|
+
return fixedValue.toFixed(digits).toString();
|
|
61
|
+
}
|
|
62
|
+
return fixedValue.toString();
|
|
63
|
+
};
|
|
64
|
+
const [inputValue, setInputValue] = useState(format(shadowValue));
|
|
65
|
+
useEffect(() => {
|
|
66
|
+
if (!focused && !async) {
|
|
67
|
+
setShadowValue(bound(Number(shadowValue), Number(min), Number(max)));
|
|
68
|
+
setInputValue(format(shadowValue));
|
|
69
|
+
}
|
|
70
|
+
}, [focused, shadowValue]);
|
|
71
|
+
useEffect(() => {
|
|
72
|
+
if (async) {
|
|
73
|
+
setShadowValue(bound(Number(value), Number(min), Number(max)));
|
|
74
|
+
setInputValue(format(value));
|
|
75
|
+
}
|
|
76
|
+
}, [value]);
|
|
77
|
+
const calcNextValue = (current, step2, symbol) => {
|
|
78
|
+
const dig = digits + 1;
|
|
79
|
+
return (parseFloat(current || "0") * dig + parseFloat(step2) * dig * symbol) / dig;
|
|
80
|
+
};
|
|
81
|
+
const update = (negative, e) => {
|
|
82
|
+
if (step !== void 0) {
|
|
83
|
+
const shouldOverBoundary = calcNextValue(shadowValue, step, negative ? -1 : 1);
|
|
84
|
+
const nextValue = bound(shouldOverBoundary, Number(min), Number(max));
|
|
85
|
+
setShadowValue(nextValue);
|
|
86
|
+
if (negative ? shouldOverBoundary < min : shouldOverBoundary > max) {
|
|
87
|
+
onOverlimit == null ? void 0 : onOverlimit(e);
|
|
88
|
+
} else {
|
|
89
|
+
onChange == null ? void 0 : onChange(nextValue, e);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
const handleReduce = (e) => {
|
|
94
|
+
if (disabled)
|
|
95
|
+
return;
|
|
96
|
+
onMinus == null ? void 0 : onMinus(e);
|
|
97
|
+
update(true, e);
|
|
98
|
+
};
|
|
99
|
+
const handlePlus = (e) => {
|
|
100
|
+
if (disabled)
|
|
101
|
+
return;
|
|
102
|
+
onPlus == null ? void 0 : onPlus(e);
|
|
103
|
+
update(false, e);
|
|
104
|
+
};
|
|
105
|
+
const parseValue = (text) => {
|
|
106
|
+
if (text === "")
|
|
107
|
+
return null;
|
|
108
|
+
if (text === "-")
|
|
109
|
+
return null;
|
|
110
|
+
return text;
|
|
111
|
+
};
|
|
112
|
+
const handleInputChange = (e) => {
|
|
113
|
+
setInputValue(e.target.value);
|
|
114
|
+
const valueStr = parseValue(e.target.value);
|
|
115
|
+
if (valueStr === null) {
|
|
116
|
+
if (allowEmpty) {
|
|
117
|
+
setShadowValue(null);
|
|
118
|
+
} else {
|
|
119
|
+
setShadowValue(defaultValue);
|
|
120
|
+
}
|
|
121
|
+
} else {
|
|
122
|
+
setShadowValue(valueStr);
|
|
123
|
+
}
|
|
124
|
+
if (!async) {
|
|
125
|
+
onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
const handleFocus = (e) => {
|
|
129
|
+
setFocused(true);
|
|
130
|
+
setInputValue(shadowValue !== void 0 && shadowValue !== null ? bound(Number(shadowValue), Number(min), Number(max)).toString() : "");
|
|
131
|
+
onFocus && onFocus(e);
|
|
132
|
+
};
|
|
133
|
+
const handleBlur = (e) => {
|
|
134
|
+
setFocused(false);
|
|
135
|
+
onBlur && onBlur(e);
|
|
136
|
+
if (async) {
|
|
137
|
+
const valueStr = parseValue(e.target.value);
|
|
138
|
+
onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e);
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
return React__default.createElement(
|
|
142
|
+
"div",
|
|
143
|
+
{ className: classes, style, ...restProps },
|
|
144
|
+
React__default.createElement(
|
|
145
|
+
"div",
|
|
146
|
+
{ className: "nut-input-minus" },
|
|
147
|
+
React__default.createElement(Minus, { className: classNames("nut-inputnumber-icon icon-minus", {
|
|
148
|
+
[`${classPrefix}-icon-disabled`]: shadowValue === min || disabled
|
|
149
|
+
}), onClick: handleReduce })
|
|
150
|
+
),
|
|
151
|
+
React__default.createElement(
|
|
152
|
+
React__default.Fragment,
|
|
153
|
+
null,
|
|
154
|
+
React__default.createElement("input", { className: "nut-number-input", type: "digit", ref: inputRef, inputMode: "decimal", disabled, readOnly, value: inputValue, onInput: handleInputChange, onBlur: handleBlur, onFocus: handleFocus })
|
|
155
|
+
),
|
|
156
|
+
React__default.createElement(
|
|
157
|
+
"div",
|
|
158
|
+
{ className: "nut-input-add" },
|
|
159
|
+
React__default.createElement(Plus, { className: classNames("nut-inputnumber-icon icon-plus", {
|
|
160
|
+
[`${classPrefix}-icon-disabled`]: shadowValue === max || disabled
|
|
161
|
+
}), onClick: handlePlus })
|
|
162
|
+
)
|
|
163
|
+
);
|
|
164
|
+
};
|
|
165
|
+
InputNumber.defaultProps = defaultProps;
|
|
166
|
+
InputNumber.displayName = "NutInputNumber";
|
|
167
|
+
export {
|
|
168
|
+
InputNumber as I
|
|
169
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { Loading1, Loading as Loading$1 } from "@nutui/icons-react-taro";
|
|
4
|
-
import { C as ComponentDefaults } from "./typings-
|
|
4
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
5
5
|
const loadingMap = {
|
|
6
6
|
circular: Loading1,
|
|
7
7
|
spinner: Loading$1
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { useRef, useState, useEffect } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { ArrowUp, ArrowDown } from "@nutui/icons-react-taro";
|
|
4
|
-
import { M as MenuItem } from "./menuitem.taro-
|
|
5
|
-
import { C as ComponentDefaults } from "./typings-
|
|
4
|
+
import { M as MenuItem } from "./menuitem.taro-KGs5VqRI.js";
|
|
5
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
...ComponentDefaults,
|
|
8
8
|
activeColor: "",
|
|
@@ -4,10 +4,10 @@ import { getSystemInfoSync, usePageScroll } from "@tarojs/taro";
|
|
|
4
4
|
import { View } from "@tarojs/components";
|
|
5
5
|
import { CSSTransition } from "react-transition-group";
|
|
6
6
|
import { Check } from "@nutui/icons-react-taro";
|
|
7
|
-
import { O as Overlay } from "./overlay.taro-
|
|
8
|
-
import { g as getRectByTaro } from "./get-rect-by-taro-
|
|
9
|
-
import { C as ComponentDefaults } from "./typings-
|
|
10
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
7
|
+
import { O as Overlay } from "./overlay.taro-ByBhOQNL.js";
|
|
8
|
+
import { g as getRectByTaro } from "./get-rect-by-taro-BnfHyJJb.js";
|
|
9
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
10
|
+
import { u as usePropsValue } from "./use-props-value-DvrH7S--.js";
|
|
11
11
|
const defaultProps = {
|
|
12
12
|
...ComponentDefaults,
|
|
13
13
|
columns: 1,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { useRef, useState, useEffect } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { View } from "@tarojs/components";
|
|
4
|
-
import { C as ComponentDefaults } from "./typings-
|
|
5
|
-
import { g as getRectByTaro } from "./get-rect-by-taro-
|
|
4
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
5
|
+
import { g as getRectByTaro } from "./get-rect-by-taro-BnfHyJJb.js";
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
...ComponentDefaults,
|
|
8
8
|
left: "",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { useRef, useState, useMemo, useEffect } from "react";
|
|
2
2
|
import { Notice, Close } from "@nutui/icons-react-taro";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { g as getRectByTaro } from "./get-rect-by-taro-
|
|
5
|
-
import { C as ComponentDefaults } from "./typings-
|
|
4
|
+
import { g as getRectByTaro } from "./get-rect-by-taro-BnfHyJJb.js";
|
|
5
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
...ComponentDefaults,
|
|
8
8
|
direction: "horizontal",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { CSSTransition } from "react-transition-group";
|
|
4
|
-
import { C as ComponentDefaults } from "./typings-
|
|
5
|
-
import { u as useCustomEvent, a as useCustomEventsPath, c as customEvents } from "./use-custom-event-
|
|
4
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
5
|
+
import { u as useCustomEvent, a as useCustomEventsPath, c as customEvents } from "./use-custom-event-BFZJeHQI.js";
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
...ComponentDefaults,
|
|
8
8
|
id: "",
|
|
@@ -2,9 +2,9 @@ import React__default, { useMemo, useState } from "react";
|
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { ArrowDown } from "@nutui/icons-react-taro";
|
|
4
4
|
import { View } from "@tarojs/components";
|
|
5
|
-
import { P as Popup } from "./popup.taro-
|
|
6
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
7
|
-
import { C as ComponentDefaults } from "./typings-
|
|
5
|
+
import { P as Popup } from "./popup.taro-44018H4d.js";
|
|
6
|
+
import { u as useConfig } from "./configprovider.taro-BXergk04.js";
|
|
7
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
const defaultProps = {
|
|
9
9
|
...ComponentDefaults,
|
|
10
10
|
visible: false,
|