@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,101 +1,101 @@
|
|
|
1
|
-
import Button from '
|
|
2
|
-
import Cell from '
|
|
3
|
-
import CellGroup from '
|
|
4
|
-
import ConfigProvider from '
|
|
5
|
-
import Image from '
|
|
6
|
-
import Overlay from '
|
|
7
|
-
import Col from '
|
|
8
|
-
import Divider from '
|
|
9
|
-
import Grid from '
|
|
10
|
-
import GridItem from '
|
|
11
|
-
import Layout from '
|
|
12
|
-
import Row from '
|
|
13
|
-
import Space from '
|
|
14
|
-
import Sticky from '
|
|
15
|
-
import SafeArea from '
|
|
16
|
-
import BackTop from '
|
|
17
|
-
import Elevator from '
|
|
18
|
-
import FixedNav from '
|
|
19
|
-
import NavBar from '
|
|
20
|
-
import SideNavBar from '
|
|
21
|
-
import SideNavBarItem from '
|
|
22
|
-
import SubSideNavBar from '
|
|
23
|
-
import Tabbar from '
|
|
24
|
-
import TabbarItem from '
|
|
25
|
-
import TabPane from '
|
|
26
|
-
import Tabs from '
|
|
27
|
-
import Address from '
|
|
28
|
-
import Calendar from '
|
|
29
|
-
import CalendarItem from '
|
|
30
|
-
import CalendarCard from '
|
|
31
|
-
import Cascader from '
|
|
32
|
-
import Checkbox from '
|
|
33
|
-
import CheckboxGroup from '
|
|
34
|
-
import DatePicker from '
|
|
35
|
-
import Form from '
|
|
36
|
-
import FormItem from '
|
|
37
|
-
import Input from '
|
|
38
|
-
import InputNumber from '
|
|
39
|
-
import Menu from '
|
|
40
|
-
import MenuItem from '
|
|
41
|
-
import NumberKeyboard from '
|
|
42
|
-
import Picker from '
|
|
43
|
-
import Radio from '
|
|
44
|
-
import RadioGroup from '
|
|
45
|
-
import Range from '
|
|
46
|
-
import Rate from '
|
|
47
|
-
import SearchBar from '
|
|
48
|
-
import ShortPassword from '
|
|
49
|
-
import Signature from '
|
|
50
|
-
import Switch from '
|
|
51
|
-
import TextArea from '
|
|
52
|
-
import Uploader from '
|
|
53
|
-
import ActionSheet from '
|
|
54
|
-
import Badge from '
|
|
55
|
-
import Dialog from '
|
|
56
|
-
import Drag from '
|
|
57
|
-
import Empty from '
|
|
58
|
-
import InfiniteLoading from '
|
|
59
|
-
import Loading from '
|
|
60
|
-
import NoticeBar from '
|
|
61
|
-
import Notify from '
|
|
62
|
-
import Popover from '
|
|
63
|
-
import Popup from '
|
|
64
|
-
import PullToRefresh from '
|
|
65
|
-
import Skeleton from '
|
|
66
|
-
import Swipe from '
|
|
67
|
-
import Toast from '
|
|
68
|
-
import Animate from '
|
|
69
|
-
import AnimatingNumbers from '
|
|
70
|
-
import Audio from '
|
|
71
|
-
import Avatar from '
|
|
72
|
-
import AvatarGroup from '
|
|
73
|
-
import CircleProgress from '
|
|
74
|
-
import Collapse from '
|
|
75
|
-
import CollapseItem from '
|
|
76
|
-
import CountDown from '
|
|
77
|
-
import Ellipsis from '
|
|
78
|
-
import ImagePreview from '
|
|
79
|
-
import Indicator from '
|
|
80
|
-
import Pagination from '
|
|
81
|
-
import Price from '
|
|
82
|
-
import Progress from '
|
|
83
|
-
import Step from '
|
|
84
|
-
import Steps from '
|
|
85
|
-
import Swiper from '
|
|
86
|
-
import SwiperItem from '
|
|
87
|
-
import Table from '
|
|
88
|
-
import Tag from '
|
|
89
|
-
import Tour from '
|
|
90
|
-
import Video from '
|
|
91
|
-
import VirtualList from '
|
|
92
|
-
import Barrage from '
|
|
93
|
-
import Card from '
|
|
94
|
-
import TimeDetail from '
|
|
95
|
-
import TimeSelect from '
|
|
96
|
-
import TrendArrow from '
|
|
97
|
-
import WaterMark from '
|
|
98
|
-
import AvatarCropper from '
|
|
1
|
+
import Button from './button/index.taro';
|
|
2
|
+
import Cell from './cell/index.taro';
|
|
3
|
+
import CellGroup from './cellgroup/index.taro';
|
|
4
|
+
import ConfigProvider from './configprovider/index.taro';
|
|
5
|
+
import Image from './image/index.taro';
|
|
6
|
+
import Overlay from './overlay/index.taro';
|
|
7
|
+
import Col from './col/index.taro';
|
|
8
|
+
import Divider from './divider/index.taro';
|
|
9
|
+
import Grid from './grid/index.taro';
|
|
10
|
+
import GridItem from './griditem/index.taro';
|
|
11
|
+
import Layout from './layout/index.taro';
|
|
12
|
+
import Row from './row/index.taro';
|
|
13
|
+
import Space from './space/index.taro';
|
|
14
|
+
import Sticky from './sticky/index.taro';
|
|
15
|
+
import SafeArea from './safearea/index.taro';
|
|
16
|
+
import BackTop from './backtop/index.taro';
|
|
17
|
+
import Elevator from './elevator/index.taro';
|
|
18
|
+
import FixedNav from './fixednav/index.taro';
|
|
19
|
+
import NavBar from './navbar/index.taro';
|
|
20
|
+
import SideNavBar from './sidenavbar/index.taro';
|
|
21
|
+
import SideNavBarItem from './sidenavbaritem/index.taro';
|
|
22
|
+
import SubSideNavBar from './subsidenavbar/index.taro';
|
|
23
|
+
import Tabbar from './tabbar/index.taro';
|
|
24
|
+
import TabbarItem from './tabbaritem/index.taro';
|
|
25
|
+
import TabPane from './tabpane/index.taro';
|
|
26
|
+
import Tabs from './tabs/index.taro';
|
|
27
|
+
import Address from './address/index.taro';
|
|
28
|
+
import Calendar from './calendar/index.taro';
|
|
29
|
+
import CalendarItem from './calendaritem/index.taro';
|
|
30
|
+
import CalendarCard from './calendarcard/index.taro';
|
|
31
|
+
import Cascader from './cascader/index.taro';
|
|
32
|
+
import Checkbox from './checkbox/index.taro';
|
|
33
|
+
import CheckboxGroup from './checkboxgroup/index.taro';
|
|
34
|
+
import DatePicker from './datepicker/index.taro';
|
|
35
|
+
import Form from './form/index.taro';
|
|
36
|
+
import FormItem from './formitem/index.taro';
|
|
37
|
+
import Input from './input/index.taro';
|
|
38
|
+
import InputNumber from './inputnumber/index.taro';
|
|
39
|
+
import Menu from './menu/index.taro';
|
|
40
|
+
import MenuItem from './menuitem/index.taro';
|
|
41
|
+
import NumberKeyboard from './numberkeyboard/index.taro';
|
|
42
|
+
import Picker from './picker/index.taro';
|
|
43
|
+
import Radio from './radio/index.taro';
|
|
44
|
+
import RadioGroup from './radiogroup/index.taro';
|
|
45
|
+
import Range from './range/index.taro';
|
|
46
|
+
import Rate from './rate/index.taro';
|
|
47
|
+
import SearchBar from './searchbar/index.taro';
|
|
48
|
+
import ShortPassword from './shortpassword/index.taro';
|
|
49
|
+
import Signature from './signature/index.taro';
|
|
50
|
+
import Switch from './switch/index.taro';
|
|
51
|
+
import TextArea from './textarea/index.taro';
|
|
52
|
+
import Uploader from './uploader/index.taro';
|
|
53
|
+
import ActionSheet from './actionsheet/index.taro';
|
|
54
|
+
import Badge from './badge/index.taro';
|
|
55
|
+
import Dialog from './dialog/index.taro';
|
|
56
|
+
import Drag from './drag/index.taro';
|
|
57
|
+
import Empty from './empty/index.taro';
|
|
58
|
+
import InfiniteLoading from './infiniteloading/index.taro';
|
|
59
|
+
import Loading from './loading/index.taro';
|
|
60
|
+
import NoticeBar from './noticebar/index.taro';
|
|
61
|
+
import Notify from './notify/index.taro';
|
|
62
|
+
import Popover from './popover/index.taro';
|
|
63
|
+
import Popup from './popup/index.taro';
|
|
64
|
+
import PullToRefresh from './pulltorefresh/index.taro';
|
|
65
|
+
import Skeleton from './skeleton/index.taro';
|
|
66
|
+
import Swipe from './swipe/index.taro';
|
|
67
|
+
import Toast from './toast/index.taro';
|
|
68
|
+
import Animate from './animate/index.taro';
|
|
69
|
+
import AnimatingNumbers from './animatingnumbers/index.taro';
|
|
70
|
+
import Audio from './audio/index.taro';
|
|
71
|
+
import Avatar from './avatar/index.taro';
|
|
72
|
+
import AvatarGroup from './avatargroup/index.taro';
|
|
73
|
+
import CircleProgress from './circleprogress/index.taro';
|
|
74
|
+
import Collapse from './collapse/index.taro';
|
|
75
|
+
import CollapseItem from './collapseitem/index.taro';
|
|
76
|
+
import CountDown from './countdown/index.taro';
|
|
77
|
+
import Ellipsis from './ellipsis/index.taro';
|
|
78
|
+
import ImagePreview from './imagepreview/index.taro';
|
|
79
|
+
import Indicator from './indicator/index.taro';
|
|
80
|
+
import Pagination from './pagination/index.taro';
|
|
81
|
+
import Price from './price/index.taro';
|
|
82
|
+
import Progress from './progress/index.taro';
|
|
83
|
+
import Step from './step/index.taro';
|
|
84
|
+
import Steps from './steps/index.taro';
|
|
85
|
+
import Swiper from './swiper/index.taro';
|
|
86
|
+
import SwiperItem from './swiperitem/index.taro';
|
|
87
|
+
import Table from './table/index.taro';
|
|
88
|
+
import Tag from './tag/index.taro';
|
|
89
|
+
import Tour from './tour/index.taro';
|
|
90
|
+
import Video from './video/index.taro';
|
|
91
|
+
import VirtualList from './virtuallist/index.taro';
|
|
92
|
+
import Barrage from './barrage/index.taro';
|
|
93
|
+
import Card from './card/index.taro';
|
|
94
|
+
import TimeDetail from './timedetail/index.taro';
|
|
95
|
+
import TimeSelect from './timeselect/index.taro';
|
|
96
|
+
import TrendArrow from './trendarrow/index.taro';
|
|
97
|
+
import WaterMark from './watermark/index.taro';
|
|
98
|
+
import AvatarCropper from './avatarcropper/index.taro';
|
|
99
99
|
import '@/packages/button/button.scss';
|
|
100
100
|
import '@/packages/cell/cell.scss';
|
|
101
101
|
import '@/packages/cellgroup/cellgroup.scss';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { RefObject } from 'react';
|
|
2
|
-
import { PopupProps } from '
|
|
2
|
+
import { PopupProps } from '../popup/popup';
|
|
3
3
|
import { PickerOption } from './types';
|
|
4
4
|
import { BasicComponent } from '../../utils/typings';
|
|
5
5
|
export type PickerActions = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { RefObject } from 'react';
|
|
2
|
-
import { PopupProps } from '
|
|
2
|
+
import { PopupProps } from '../popup/popup.taro';
|
|
3
3
|
import { PickerOption } from './types';
|
|
4
4
|
import { BasicComponent } from '../../utils/typings';
|
|
5
5
|
export type PickerActions = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import { PopupProps } from '
|
|
2
|
+
import { PopupProps } from '../popup/popup';
|
|
3
3
|
export type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
4
4
|
export interface List {
|
|
5
5
|
key?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import { PopupProps } from '
|
|
2
|
+
import { PopupProps } from '../popup/popup.taro';
|
|
3
3
|
export type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
4
4
|
export interface List {
|
|
5
5
|
key?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { OverlayProps } from '
|
|
2
|
+
import { OverlayProps } from '../overlay/overlay';
|
|
3
3
|
type Teleport = HTMLElement | (() => HTMLElement) | null;
|
|
4
4
|
export interface PopupProps extends OverlayProps {
|
|
5
5
|
position: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { ITouchEvent } from '@tarojs/components';
|
|
3
|
-
import { OverlayProps } from '
|
|
3
|
+
import { OverlayProps } from '../overlay/overlay.taro';
|
|
4
4
|
type Teleport = HTMLElement | (() => HTMLElement) | null;
|
|
5
5
|
export interface PopupProps extends OverlayProps {
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import RadioGroup from '
|
|
2
|
+
import RadioGroup from '../radiogroup';
|
|
3
3
|
import { BasicComponent } from '../../utils/typings';
|
|
4
|
-
import { RadioPosition, RadioShape } from '
|
|
4
|
+
import { RadioPosition, RadioShape } from './types';
|
|
5
5
|
export interface RadioProps extends BasicComponent {
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
checked: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import RadioGroup from '
|
|
2
|
+
import RadioGroup from '../radiogroup/index.taro';
|
|
3
3
|
import { BasicComponent } from '../../utils/typings';
|
|
4
|
-
import { RadioPosition, RadioShape } from '
|
|
4
|
+
import { RadioPosition, RadioShape } from './types';
|
|
5
5
|
export interface RadioProps extends BasicComponent {
|
|
6
6
|
/**
|
|
7
7
|
* 是否禁用选择
|
|
@@ -1,47 +1,52 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { MouseEvent } from 'react';
|
|
3
|
+
import { InputProps, ITouchEvent } from '@tarojs/components';
|
|
4
|
+
import { BaseEventOrig } from '@tarojs/components/types/common';
|
|
3
5
|
import { BasicComponent } from '../../utils/typings';
|
|
6
|
+
type inputEventDetail = InputProps.inputEventDetail;
|
|
7
|
+
type inputForceEventDetail = InputProps.inputForceEventDetail;
|
|
8
|
+
type inputValueEventDetail = InputProps.inputValueEventDetail;
|
|
4
9
|
export interface SearchBarProps extends BasicComponent {
|
|
5
10
|
/**
|
|
6
11
|
* 当前输入的值
|
|
7
12
|
* @default -
|
|
8
13
|
*/
|
|
9
|
-
value?: number | string
|
|
14
|
+
value?: number | string
|
|
10
15
|
/**
|
|
11
16
|
* 输入框默认暗纹
|
|
12
17
|
* @default 请输入
|
|
13
18
|
*/
|
|
14
|
-
placeholder?: string
|
|
19
|
+
placeholder?: string
|
|
15
20
|
/**
|
|
16
21
|
* 搜索框形状,可选值为 round
|
|
17
22
|
* @default square
|
|
18
23
|
*/
|
|
19
|
-
shape?: 'square' | 'round'
|
|
24
|
+
shape?: 'square' | 'round'
|
|
20
25
|
/**
|
|
21
26
|
* 是否禁用输入框
|
|
22
27
|
* @default false
|
|
23
28
|
*/
|
|
24
|
-
disabled?: boolean
|
|
29
|
+
disabled?: boolean
|
|
25
30
|
/**
|
|
26
31
|
* 最大输入长度
|
|
27
32
|
* @default 9999
|
|
28
33
|
*/
|
|
29
|
-
maxLength?: number
|
|
34
|
+
maxLength?: number
|
|
30
35
|
/**
|
|
31
36
|
* 是否展示清除按钮
|
|
32
37
|
* @default true
|
|
33
38
|
*/
|
|
34
|
-
clearable?: boolean
|
|
39
|
+
clearable?: boolean
|
|
35
40
|
/**
|
|
36
41
|
* 输入框只读
|
|
37
42
|
* @default false
|
|
38
43
|
*/
|
|
39
|
-
readOnly?: boolean
|
|
44
|
+
readOnly?: boolean
|
|
40
45
|
/**
|
|
41
46
|
* 是否自动聚焦
|
|
42
47
|
* @default false
|
|
43
48
|
*/
|
|
44
|
-
autoFocus?: boolean
|
|
49
|
+
autoFocus?: boolean
|
|
45
50
|
/**
|
|
46
51
|
* 是否展示返回按钮
|
|
47
52
|
* @default false
|
|
@@ -71,31 +76,32 @@ export interface SearchBarProps extends BasicComponent {
|
|
|
71
76
|
* 确定搜索时触发
|
|
72
77
|
* @default -
|
|
73
78
|
*/
|
|
74
|
-
onSearch?: (val: string) => void
|
|
79
|
+
onSearch?: (val: string) => void
|
|
75
80
|
/**
|
|
76
81
|
* 输入内容时触发
|
|
77
82
|
* @default -
|
|
78
83
|
*/
|
|
79
|
-
onChange?: (value: string, event
|
|
84
|
+
onChange?: (value: string, event?: BaseEventOrig<inputEventDetail>) => void
|
|
80
85
|
/**
|
|
81
86
|
* 聚焦时触发
|
|
82
87
|
* @default -
|
|
83
88
|
*/
|
|
84
|
-
onFocus?: (value: string, event:
|
|
89
|
+
onFocus?: (value: string, event: BaseEventOrig<inputForceEventDetail>) => void
|
|
85
90
|
/**
|
|
86
91
|
* 失焦时触发
|
|
87
92
|
* @default -
|
|
88
93
|
*/
|
|
89
|
-
onBlur?: (value: string, event:
|
|
94
|
+
onBlur?: (value: string, event: BaseEventOrig<inputValueEventDetail>) => void
|
|
90
95
|
/**
|
|
91
96
|
* 点击清空时触发
|
|
92
97
|
* @default -
|
|
93
98
|
*/
|
|
94
|
-
onClear?: (event: MouseEvent<HTMLDivElement>) => void
|
|
99
|
+
onClear?: (event: MouseEvent<HTMLDivElement>) => void
|
|
95
100
|
/**
|
|
96
101
|
* 点击输入区域时触发
|
|
97
102
|
* @default -
|
|
98
103
|
*/
|
|
99
|
-
onInputClick?: (event:
|
|
104
|
+
onInputClick?: (event: ITouchEvent) => void
|
|
100
105
|
}
|
|
101
106
|
export declare const SearchBar: FunctionComponent<Partial<SearchBarProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onFocus' | 'onBlur'>>;
|
|
107
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PopupProps } from '
|
|
1
|
+
import React, { ForwardRefRenderFunction, ReactNode } from 'react';
|
|
2
|
+
import { PopupProps } from '../popup/index';
|
|
3
3
|
export interface ShortPasswordProps extends PopupProps {
|
|
4
4
|
value: string;
|
|
5
5
|
visible: boolean;
|
|
@@ -19,4 +19,5 @@ export interface ShortPasswordProps extends PopupProps {
|
|
|
19
19
|
onTips: () => void;
|
|
20
20
|
onComplete: (value: string) => void;
|
|
21
21
|
}
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const InternalShortPassword: ForwardRefRenderFunction<unknown, Partial<ShortPasswordProps>>;
|
|
23
|
+
export declare const ShortPassword: React.ForwardRefExoticComponent<Partial<ShortPasswordProps> & React.RefAttributes<unknown>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PopupProps } from '
|
|
1
|
+
import React, { ForwardRefRenderFunction, ReactNode } from 'react';
|
|
2
|
+
import { PopupProps } from '../popup/popup.taro';
|
|
3
3
|
export interface ShortPasswordProps extends PopupProps {
|
|
4
4
|
/**
|
|
5
5
|
* 密码字符串
|
|
@@ -87,4 +87,5 @@ export interface ShortPasswordProps extends PopupProps {
|
|
|
87
87
|
*/
|
|
88
88
|
onComplete: (value: string) => void
|
|
89
89
|
}
|
|
90
|
-
export declare const
|
|
90
|
+
export declare const InternalShortPassword: ForwardRefRenderFunction<unknown, Partial<ShortPasswordProps>>;
|
|
91
|
+
export declare const ShortPassword: React.ForwardRefExoticComponent<Partial<ShortPasswordProps> & React.RefAttributes<unknown>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SwiperProps, SwiperRef } from './swiper';
|
|
3
|
-
import SwiperItem from '
|
|
3
|
+
import SwiperItem from '../swiperitem';
|
|
4
4
|
export type { SwiperProps, SwiperRef } from './swiper';
|
|
5
5
|
type CompoundedComponent = React.ForwardRefExoticComponent<Partial<SwiperProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & React.RefAttributes<SwiperRef>> & {
|
|
6
6
|
Item: typeof SwiperItem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SwiperProps } from './swiper.taro';
|
|
3
|
-
import SwiperItem from '
|
|
3
|
+
import SwiperItem from '../swiperitem/index.taro';
|
|
4
4
|
export type { SwiperProps } from './swiper.taro';
|
|
5
5
|
type CompoundedComponent = React.ForwardRefExoticComponent<Partial<SwiperProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & React.RefAttributes<any>> & {
|
|
6
6
|
Item: typeof SwiperItem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import TabPane from '
|
|
3
|
+
import TabPane from '../tabpane/index.taro';
|
|
4
4
|
export type TabsTitle = {
|
|
5
5
|
title: string;
|
|
6
6
|
disabled: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import { TimeType, DateType, OptionKeyType } from '
|
|
3
|
+
import { TimeType, DateType, OptionKeyType } from '../timeselect';
|
|
4
4
|
export interface TimeDetailProps extends BasicComponent {
|
|
5
5
|
activeDate: string;
|
|
6
6
|
activeTime: DateType[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import { TimeType, DateType, OptionKeyType } from '
|
|
3
|
+
import { TimeType, DateType, OptionKeyType } from '../timeselect/index.taro';
|
|
4
4
|
export interface TimeDetailProps extends BasicComponent {
|
|
5
5
|
activeDate: string;
|
|
6
6
|
activeTime: DateType[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, FunctionComponent } from 'react';
|
|
2
2
|
import type { MouseEvent } from 'react';
|
|
3
|
-
import { PopoverLocation } from '
|
|
3
|
+
import { PopoverLocation } from '../popover/popover';
|
|
4
4
|
import { BasicComponent } from '../../utils/typings';
|
|
5
5
|
export interface ListOptions {
|
|
6
6
|
target: Element | string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, FunctionComponent } from 'react';
|
|
2
2
|
import type { MouseEvent } from 'react';
|
|
3
|
-
import { PopoverLocation } from '
|
|
3
|
+
import { PopoverLocation } from '../popover/index.taro';
|
|
4
4
|
import { BasicComponent } from '../../utils/typings';
|
|
5
5
|
export interface ListOptions {
|
|
6
6
|
target: Element | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nutui/nutui-react-taro",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.11-patch.0",
|
|
4
4
|
"style": "dist/style.css",
|
|
5
5
|
"main": "dist/nutui.react.umd.js",
|
|
6
6
|
"module": "dist/esm/nutui-react.es.js",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"*.{ts,tsx,js,md}": "eslint"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@babel/runtime": "^7.
|
|
54
|
+
"@babel/runtime": "^7.23.9",
|
|
55
55
|
"@nutui/icons-react-taro": "^1.0.2",
|
|
56
56
|
"@nutui/touch-emulator": "^1.0.0",
|
|
57
57
|
"@react-spring/web": "~9.6.1",
|
|
58
58
|
"@use-gesture/react": "10.2.20",
|
|
59
59
|
"async-validator": "^4.2.5",
|
|
60
|
-
"classnames": "^2.
|
|
60
|
+
"classnames": "^2.5.1",
|
|
61
61
|
"lodash.isequal": "^4.5.0",
|
|
62
62
|
"lodash.kebabcase": "^4.1.1",
|
|
63
63
|
"react-transition-group": "^4.4.5"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
67
67
|
},
|
|
68
68
|
"resolutions": {
|
|
69
|
-
"@types/react": "18",
|
|
70
|
-
"@types/react-dom": "18"
|
|
69
|
+
"@types/react": "^18.2.57",
|
|
70
|
+
"@types/react-dom": "^18.2.19"
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import React__default, { useState, useRef, useImperativeHandle, useEffect } from "react";
|
|
2
|
-
import { createSelectorQuery } from "@tarojs/taro";
|
|
3
|
-
import classNames from "classnames";
|
|
4
|
-
import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
|
|
5
|
-
const defaultProps = {
|
|
6
|
-
...ComponentDefaults,
|
|
7
|
-
list: [],
|
|
8
|
-
interval: 500,
|
|
9
|
-
loop: true,
|
|
10
|
-
duration: 3e3,
|
|
11
|
-
rows: 3,
|
|
12
|
-
gapY: 10
|
|
13
|
-
};
|
|
14
|
-
const classPrefix = `nut-barrage`;
|
|
15
|
-
const InternalBarrage = (props, ref) => {
|
|
16
|
-
const { className, interval, loop, list, duration, rows, gapY, ...restProps } = {
|
|
17
|
-
...defaultProps,
|
|
18
|
-
...props
|
|
19
|
-
};
|
|
20
|
-
const [styleList, setStyleList] = useState([]);
|
|
21
|
-
const [baItemList, setBaItemList] = useState(list);
|
|
22
|
-
const barrageListSet = useRef(list);
|
|
23
|
-
const barrageBody = useRef(null);
|
|
24
|
-
const barrageContainer = useRef(null);
|
|
25
|
-
const timeId = useRef((/* @__PURE__ */ new Date()).getTime());
|
|
26
|
-
const timer = useRef(0);
|
|
27
|
-
const classes = classNames(classPrefix, {
|
|
28
|
-
[`${classPrefix}-body${timeId.current}`]: true
|
|
29
|
-
}, className);
|
|
30
|
-
useImperativeHandle(ref, () => ({
|
|
31
|
-
add: (word) => {
|
|
32
|
-
barrageListSet.current = [...barrageListSet.current, word];
|
|
33
|
-
run();
|
|
34
|
-
}
|
|
35
|
-
}));
|
|
36
|
-
useEffect(() => {
|
|
37
|
-
barrageListSet.current = [...list];
|
|
38
|
-
run();
|
|
39
|
-
return () => {
|
|
40
|
-
clearInterval(timer.current);
|
|
41
|
-
};
|
|
42
|
-
}, [list]);
|
|
43
|
-
const run = () => {
|
|
44
|
-
setBaItemList(barrageListSet.current);
|
|
45
|
-
barrageListSet.current.forEach((item, index) => {
|
|
46
|
-
getNode(index);
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
const getNode = (index) => {
|
|
50
|
-
const query = createSelectorQuery();
|
|
51
|
-
setTimeout(() => {
|
|
52
|
-
let width = 100;
|
|
53
|
-
query.select(`.${classPrefix}-body${timeId.current}`).boundingClientRect((rec) => {
|
|
54
|
-
width = rec.width || 300;
|
|
55
|
-
});
|
|
56
|
-
query.select(`.${classPrefix}-item${index}`).boundingClientRect((recs) => {
|
|
57
|
-
const height = recs.height;
|
|
58
|
-
const nodeTop = `${index % rows * (height + gapY) + 20}px`;
|
|
59
|
-
styleInfo(index, nodeTop, width);
|
|
60
|
-
}).exec();
|
|
61
|
-
}, 500);
|
|
62
|
-
};
|
|
63
|
-
const styleInfo = (index, nodeTop, width) => {
|
|
64
|
-
const timeIndex = index - rows > 0 ? index - rows : 0;
|
|
65
|
-
const list2 = styleList;
|
|
66
|
-
const time = list2[timeIndex] ? Number(list2[timeIndex]["--time"]) : 0;
|
|
67
|
-
const obj = {
|
|
68
|
-
top: nodeTop,
|
|
69
|
-
"--time": `${interval * index + time}`,
|
|
70
|
-
animationDuration: `${duration}ms`,
|
|
71
|
-
animationIterationCount: `${loop ? "infinite" : 1}`,
|
|
72
|
-
animationDelay: `${interval * index + time}ms`,
|
|
73
|
-
"--move-distance": `-${width}px`
|
|
74
|
-
};
|
|
75
|
-
list2.push(obj);
|
|
76
|
-
setStyleList([...list2]);
|
|
77
|
-
};
|
|
78
|
-
return React__default.createElement(
|
|
79
|
-
"div",
|
|
80
|
-
{ className: classes, ref: barrageBody, ...restProps },
|
|
81
|
-
React__default.createElement("div", { ref: barrageContainer, className: "bContainer" }, baItemList.map((item, index) => {
|
|
82
|
-
return React__default.createElement("div", { className: `barrage-item ${classPrefix}-item${index} move`, style: styleList[index], key: index }, item.length > 8 ? `${item.substr(0, 8)}...` : item);
|
|
83
|
-
}))
|
|
84
|
-
);
|
|
85
|
-
};
|
|
86
|
-
const Barrage = React__default.forwardRef(InternalBarrage);
|
|
87
|
-
Barrage.defaultProps = defaultProps;
|
|
88
|
-
Barrage.displayName = "NutBarrage";
|
|
89
|
-
export {
|
|
90
|
-
Barrage as B
|
|
91
|
-
};
|