@nutui/nutui-react-taro 2.1.1-beta.0 → 2.1.1-beta.1
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 +20 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/ActionSheet.js +6 -6
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Address.js +14 -14
- package/dist/esm/Animate.js +2 -2
- package/dist/esm/AnimatingNumbers/style/style.css +1 -1
- package/dist/esm/AnimatingNumbers.js +5 -5
- package/dist/esm/Audio/style/style.css +1 -1
- package/dist/esm/Audio.js +10 -10
- package/dist/esm/Avatar/style/style.css +1 -1
- package/dist/esm/Avatar.js +5 -5
- package/dist/esm/AvatarCropper/style/style.css +1 -1
- package/dist/esm/AvatarCropper.js +5 -5
- package/dist/esm/AvatarGroup.js +2 -2
- package/dist/esm/BackTop/style/style.css +1 -1
- package/dist/esm/BackTop.js +2 -2
- package/dist/esm/Badge/style/style.css +1 -1
- package/dist/esm/Badge.js +2 -2
- package/dist/esm/Barrage/style/style.css +1 -1
- package/dist/esm/Barrage.js +2 -2
- package/dist/esm/Button/style/style.css +1 -1
- package/dist/esm/Button.js +2 -2
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/Calendar.js +13 -13
- package/dist/esm/CalendarCard/style/style.css +1 -1
- package/dist/esm/CalendarCard.js +5 -5
- package/dist/esm/CalendarItem.js +8 -8
- package/dist/esm/Card/style/style.css +1 -1
- package/dist/esm/Card.js +4 -4
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/Cascader.js +11 -11
- package/dist/esm/Cell/style/style.css +1 -1
- package/dist/esm/Cell.js +3 -3
- package/dist/esm/CellGroup/style/style.css +1 -1
- package/dist/esm/CellGroup.js +2 -2
- package/dist/esm/Checkbox/style/style.css +1 -1
- package/dist/esm/Checkbox.js +4 -4
- package/dist/esm/CheckboxGroup/style/style.css +1 -1
- package/dist/esm/CheckboxGroup.js +4 -4
- package/dist/esm/CircleProgress/style/style.css +1 -1
- package/dist/esm/CircleProgress.js +4 -4
- package/dist/esm/Col/style/style.css +1 -1
- package/dist/esm/Col.js +3 -3
- package/dist/esm/Collapse/style/style.css +1 -1
- package/dist/esm/Collapse.js +5 -5
- package/dist/esm/CollapseItem/style/style.css +1 -1
- package/dist/esm/CollapseItem.js +2 -2
- package/dist/esm/ConfigProvider.js +3 -3
- package/dist/esm/CountDown/style/style.css +1 -1
- package/dist/esm/CountDown.js +4 -4
- package/dist/esm/DatePicker/style/style.css +1 -1
- package/dist/esm/DatePicker.js +12 -12
- package/dist/esm/Dialog/style/style.css +1 -1
- package/dist/esm/Dialog.js +10 -10
- package/dist/esm/Divider/style/style.css +1 -1
- package/dist/esm/Divider.js +2 -2
- package/dist/esm/Drag.js +2 -2
- package/dist/esm/Elevator/style/style.css +1 -1
- package/dist/esm/Elevator.js +2 -2
- package/dist/esm/Ellipsis/style/style.css +1 -1
- package/dist/esm/Ellipsis.js +3 -3
- package/dist/esm/Empty/style/style.css +1 -1
- package/dist/esm/Empty.js +4 -4
- package/dist/esm/FixedNav/style/style.css +1 -1
- package/dist/esm/FixedNav.js +7 -7
- package/dist/esm/Form/style/style.css +1 -1
- package/dist/esm/Form.js +4 -4
- package/dist/esm/FormItem/style/style.css +1 -1
- package/dist/esm/FormItem.js +4 -4
- package/dist/esm/Grid/style/style.css +1 -1
- package/dist/esm/Grid.js +5 -5
- package/dist/esm/GridItem/style/style.css +1 -1
- package/dist/esm/GridItem.js +4 -4
- package/dist/esm/Image/style/style.css +1 -1
- package/dist/esm/Image.js +2 -2
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/ImagePreview.js +12 -12
- package/dist/esm/Indicator/style/style.css +1 -1
- package/dist/esm/Indicator.js +1 -1
- package/dist/esm/InfiniteLoading/style/style.css +1 -1
- package/dist/esm/InfiniteLoading.js +4 -4
- package/dist/esm/Input/style/style.css +1 -1
- package/dist/esm/Input.js +6 -6
- package/dist/esm/InputNumber/style/style.css +1 -1
- package/dist/esm/InputNumber.js +4 -4
- package/dist/esm/Layout.js +1 -1
- package/dist/esm/Loading/style/style.css +1 -1
- package/dist/esm/Loading.js +2 -2
- package/dist/esm/Menu/style/style.css +1 -1
- package/dist/esm/Menu.js +9 -9
- package/dist/esm/MenuItem/style/style.css +1 -1
- package/dist/esm/MenuItem.js +8 -8
- package/dist/esm/NavBar/style/style.css +1 -1
- package/dist/esm/NavBar.js +2 -2
- package/dist/esm/NoticeBar/style/style.css +1 -1
- package/dist/esm/NoticeBar.js +3 -3
- package/dist/esm/Notify/style/style.css +1 -1
- package/dist/esm/Notify.js +5 -5
- package/dist/esm/NumberKeyboard/style/style.css +1 -1
- package/dist/esm/NumberKeyboard.js +8 -8
- package/dist/esm/Overlay/style/style.css +1 -1
- package/dist/esm/Overlay.js +4 -4
- package/dist/esm/Pagination/style/style.css +1 -1
- package/dist/esm/Pagination.js +6 -6
- package/dist/esm/Picker/style/style.css +1 -1
- package/dist/esm/Picker.js +11 -11
- package/dist/esm/Popover/style/style.css +1 -1
- package/dist/esm/Popover.js +7 -7
- package/dist/esm/Popup/style/style.css +1 -1
- package/dist/esm/Popup.js +5 -5
- package/dist/esm/Price/style/style.css +1 -1
- package/dist/esm/Price.js +2 -2
- package/dist/esm/Progress/style/style.css +1 -1
- package/dist/esm/Progress.js +2 -2
- package/dist/esm/PullToRefresh/style/style.css +1 -1
- package/dist/esm/PullToRefresh.js +5 -5
- package/dist/esm/Radio/style/style.css +1 -1
- package/dist/esm/Radio.js +4 -4
- package/dist/esm/RadioGroup/style/style.css +1 -1
- package/dist/esm/RadioGroup.js +4 -4
- package/dist/esm/Range/style/style.css +1 -1
- package/dist/esm/Range.js +6 -6
- package/dist/esm/Rate/style/style.css +1 -1
- package/dist/esm/Rate.js +4 -4
- package/dist/esm/Row.js +3 -3
- package/dist/esm/SafeArea.js +1 -1
- package/dist/esm/SearchBar/style/style.css +1 -1
- package/dist/esm/SearchBar.js +4 -4
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/ShortPassword.js +10 -10
- package/dist/esm/SideNavBar/style/style.css +1 -1
- package/dist/esm/SideNavBar.js +7 -7
- package/dist/esm/SideNavBarItem/style/style.css +1 -1
- package/dist/esm/SideNavBarItem.js +1 -1
- package/dist/esm/Signature/style/style.css +1 -1
- package/dist/esm/Signature.js +2 -2
- package/dist/esm/Skeleton/style/style.css +1 -1
- package/dist/esm/Skeleton.js +6 -6
- package/dist/esm/Space.js +1 -1
- package/dist/esm/Step/style/style.css +1 -1
- package/dist/esm/Step.js +3 -3
- package/dist/esm/Steps/style/style.css +1 -1
- package/dist/esm/Steps.js +3 -3
- package/dist/esm/Sticky/style/style.css +1 -1
- package/dist/esm/Sticky.js +4 -4
- package/dist/esm/SubSideNavBar/style/style.css +1 -1
- package/dist/esm/SubSideNavBar.js +2 -2
- package/dist/esm/Swipe/style/style.css +1 -1
- package/dist/esm/Swipe.js +4 -4
- package/dist/esm/Swiper/style/style.css +1 -1
- package/dist/esm/Swiper.js +6 -6
- package/dist/esm/SwiperItem.js +1 -1
- package/dist/esm/Switch/style/style.css +1 -1
- package/dist/esm/Switch.js +4 -4
- package/dist/esm/TabPane/style/style.css +1 -1
- package/dist/esm/TabPane.js +1 -1
- package/dist/esm/Tabbar/style/style.css +1 -1
- package/dist/esm/Tabbar.js +6 -6
- package/dist/esm/TabbarItem/style/style.css +1 -1
- package/dist/esm/TabbarItem.js +3 -3
- package/dist/esm/Table/style/style.css +1 -1
- package/dist/esm/Table.js +4 -4
- package/dist/esm/Tabs/style/style.css +1 -1
- package/dist/esm/Tabs.js +6 -6
- package/dist/esm/Tag/style/style.css +1 -1
- package/dist/esm/Tag.js +2 -2
- package/dist/esm/TextArea/style/style.css +1 -1
- package/dist/esm/TextArea.js +6 -6
- package/dist/esm/TimeDetail/style/style.css +1 -1
- package/dist/esm/TimeDetail.js +2 -2
- package/dist/esm/TimeSelect/style/style.css +1 -1
- package/dist/esm/TimeSelect.js +9 -9
- package/dist/esm/Toast/style/style.css +1 -1
- package/dist/esm/Toast.js +9 -9
- package/dist/esm/Tour/style/style.css +1 -1
- package/dist/esm/Tour.js +8 -8
- package/dist/esm/TrendArrow/style/style.css +1 -1
- package/dist/esm/TrendArrow.js +2 -2
- package/dist/esm/Uploader/style/style.css +1 -1
- package/dist/esm/Uploader.js +9 -9
- package/dist/esm/Video.js +2 -2
- package/dist/esm/VirtualList/style/style.css +1 -1
- package/dist/esm/VirtualList.js +2 -2
- package/dist/esm/WaterMark.js +4 -4
- package/dist/esm/{actionsheet.taro-b4b3e4a6.js → actionsheet.taro-30M41euQ.js} +8 -7
- package/dist/esm/{address.taro-71c98c46.js → address.taro-h9Q8IDbj.js} +8 -8
- package/dist/esm/{animate.taro-37bf4eab.js → animate.taro-m67VyUHP.js} +1 -1
- package/dist/esm/{audio.taro-a42eebb5.js → audio.taro-lYwAL-H1.js} +9 -9
- package/dist/esm/{avatar.taro-814a4b85.js → avatar.taro-5yLsf8Zg.js} +7 -7
- package/dist/esm/{avatarcropper.taro-215ee89e.js → avatarcropper.taro-5U7TdDmk.js} +4 -4
- package/dist/esm/{avatargroup.taro-1f8b7174.js → avatargroup.taro-h6dpv6UX.js} +1 -1
- package/dist/esm/{backtop.taro-7f774b6c.js → backtop.taro-XH0lVUOf.js} +1 -1
- package/dist/esm/{badge.taro-004f2eb0.js → badge.taro-n0aVp8h1.js} +4 -4
- package/dist/esm/{barrage.taro-53b33990.js → barrage.taro-hFnjd1q2.js} +5 -5
- package/dist/esm/{button.taro-e8d84b29.js → button.taro-076zcKpr.js} +12 -14
- package/dist/esm/{calendar.taro-5ee74a65.js → calendar.taro-oIFa_mYQ.js} +5 -5
- package/dist/esm/{calendarcard.taro-73e67095.js → calendarcard.taro-NqEhKcOk.js} +3 -3
- package/dist/esm/{calendaritem.taro-b30ef756.js → calendaritem.taro-_gVfstym.js} +5 -5
- package/dist/esm/{card.taro-80ba74c4.js → card.taro-od399Pwi.js} +6 -6
- package/dist/esm/{cascader.taro-24e4ece7.js → cascader.taro-5-7ScvLI.js} +10 -10
- package/dist/esm/{cell.taro-3bb24d44.js → cell.taro-3Tvgy6gl.js} +7 -7
- package/dist/esm/{cellgroup.taro-f998a42f.js → cellgroup.taro-zHqxl7ol.js} +4 -4
- package/dist/esm/{checkbox.taro-fa5d9680.js → checkbox.taro-KtiGnhlG.js} +19 -50
- package/dist/esm/{circleprogress.taro-cbbc333a.js → circleprogress.taro-myZgamBw.js} +5 -5
- package/dist/esm/{col.taro-23d5f6bd.js → col.taro-5FMpttLE.js} +2 -2
- package/dist/esm/{collapse.taro-8b61fb79.js → collapse.taro-j2-ajiXA.js} +3 -3
- package/dist/esm/{collapseitem.taro-a1e96f50.js → collapseitem.taro-Pp7qD2-T.js} +9 -9
- package/dist/esm/{configprovider.taro-e890dac3.js → configprovider.taro-hS2SwHJB.js} +2 -2
- package/dist/esm/{countdown.taro-04aa98cf.js → countdown.taro-SqVKfR7y.js} +3 -3
- package/dist/esm/{datepicker.taro-e80d9271.js → datepicker.taro-l3QzCg6y.js} +4 -4
- package/dist/esm/{dialog.taro-d1d66f17.js → dialog.taro--d0uO3VQ.js} +10 -10
- package/dist/esm/{divider.taro-a92925b7.js → divider.taro-BTFED42F.js} +6 -6
- package/dist/esm/{drag.taro-ce333e51.js → drag.taro-BwcleRuB.js} +1 -1
- package/dist/esm/{elevator.taro-1607d0b4.js → elevator.taro-hYAvey0f.js} +26 -24
- package/dist/esm/{ellipsis.taro-b1533122.js → ellipsis.taro-ov_C4kbs.js} +2 -2
- package/dist/esm/empty.taro-39MwJjPx.js +59 -0
- package/dist/esm/{fixednav.taro-ec8c4526.js → fixednav.taro-ub2wK6fK.js} +9 -9
- package/dist/esm/{formitem.taro-2b8003f8.js → formitem.taro-w9qkYXEq.js} +6 -6
- package/dist/esm/{grid.taro-389996b2.js → grid.taro-4vtMCMqo.js} +3 -3
- package/dist/esm/{griditem.taro-483246bf.js → griditem.taro-z_VW6NuV.js} +10 -10
- package/dist/esm/{image.taro-8d73a60d.js → image.taro-jKXhCAIw.js} +2 -2
- package/dist/esm/{imagepreview.taro-e660bf28.js → imagepreview.taro-njsGNYCl.js} +5 -5
- package/dist/esm/{index-b283d77d.js → index-oitVOJp9.js} +1 -1
- package/dist/esm/{indicator.taro-7bec8fb9.js → indicator.taro-rl-kBFJW.js} +2 -2
- package/dist/esm/{infiniteloading.taro-e6068990.js → infiniteloading.taro-au-C-hVX.js} +2 -2
- package/dist/esm/{input.taro-d98c3cef.js → input.taro-HbP0VUca.js} +3 -3
- package/dist/esm/{inputnumber.taro-07b246ee.js → inputnumber.taro-cwMnY2Gd.js} +7 -7
- package/dist/esm/{loading.taro-d511e398.js → loading.taro-aHN6xLIT.js} +1 -1
- package/dist/esm/{menu.taro-c2dc8fdb.js → menu.taro-GPMcYkdK.js} +20 -9
- package/dist/esm/{menuitem.taro-9cd511f4.js → menuitem.taro-V1SR74cE.js} +11 -11
- package/dist/esm/{navbar.taro-00b0b1fd.js → navbar.taro-uxhBXITb.js} +9 -11
- package/dist/esm/{noticebar.taro-512a92a0.js → noticebar.taro-HnLNCT6c.js} +6 -6
- package/dist/esm/{notify.taro-3063c438.js → notify.taro-eql4R4Mx.js} +5 -5
- package/dist/esm/{numberkeyboard.taro-d01cb097.js → numberkeyboard.taro-ToPOscOk.js} +13 -13
- package/dist/esm/nutui-react.es.js +108 -108
- package/dist/esm/{overlay.taro-8514660f.js → overlay.taro-g57gqLxf.js} +4 -4
- package/dist/esm/{pagination.taro-a8969bcf.js → pagination.taro-Mvehp6K2.js} +20 -34
- package/dist/esm/{picker.taro-d40a4e27.js → picker.taro-NyIQudtd.js} +12 -12
- package/dist/esm/{popover.taro-d1837cca.js → popover.taro--XIZLeWw.js} +9 -12
- package/dist/esm/{popup.taro-85284489.js → popup.taro-kjOuDvcb.js} +19 -24
- package/dist/esm/{price.taro-ce8f3249.js → price.taro-15WmWCW1.js} +6 -6
- package/dist/esm/{progress.taro-129abe65.js → progress.taro-EBhB1-Vj.js} +2 -2
- package/dist/esm/{pulltorefresh.taro-e8258b3c.js → pulltorefresh.taro-_lHPzDm-.js} +5 -32
- package/dist/esm/{radio.taro-b0f9fd8e.js → radio.taro-EzXWv4Io.js} +13 -16
- package/dist/esm/{range.taro-8c7e9294.js → range.taro-708Gnv2w.js} +4 -4
- package/dist/esm/{rate.taro-3da117db.js → rate.taro-1z-c8TA3.js} +8 -8
- package/dist/esm/{row.taro-a71fbf76.js → row.taro-IxNlKKQM.js} +2 -2
- package/dist/esm/{searchbar.taro-ab39a108.js → searchbar.taro-q43_qE5Y.js} +17 -18
- package/dist/esm/{shortpassword.taro-cd9e234e.js → shortpassword.taro-Dst95kRS.js} +16 -16
- package/dist/esm/{sidenavbar.taro-5a5b4178.js → sidenavbar.taro-e_kk1OUY.js} +7 -7
- package/dist/esm/{sidenavbaritem.taro-f2650b21.js → sidenavbaritem.taro-TQ2PoDgR.js} +1 -1
- package/dist/esm/{signature.taro-7ada09ae.js → signature.taro-PPEtytig.js} +3 -3
- package/dist/esm/{skeleton.taro-9504ad22.js → skeleton.taro-uxvSUVsB.js} +9 -9
- package/dist/esm/{step.taro-02eb5edb.js → step.taro-kCAQ4Q3-.js} +2 -2
- package/dist/esm/{steps.taro-4b126463.js → steps.taro-n6BT6nWE.js} +2 -2
- package/dist/esm/{sticky.taro-560c98a8.js → sticky.taro-tOS_Ez6U.js} +5 -5
- package/dist/esm/{subsidenavbar.taro-cf175ac5.js → subsidenavbar.taro-2qABjgZD.js} +7 -7
- package/dist/esm/{swipe.taro-adfd35e2.js → swipe.taro-caPbRS8Q.js} +5 -5
- package/dist/esm/{switch.taro-e46db0c3.js → switch.taro-xcb5i3Aw.js} +4 -4
- package/dist/esm/{tabbar.taro-e74e904e.js → tabbar.taro-NpHMO2Nw.js} +6 -6
- package/dist/esm/{tabbaritem.taro-fa0e2bfa.js → tabbaritem.taro-L63nEc64.js} +3 -3
- package/dist/esm/{table.taro-4edde60b.js → table.taro-sTWXN1kX.js} +15 -15
- package/dist/esm/{tabs.taro-99fba9f1.js → tabs.taro-ygzv74Mx.js} +23 -23
- package/dist/esm/{tag.taro-9fbc6a5e.js → tag.taro-AOpj4lnK.js} +7 -7
- package/dist/esm/{textarea.taro-74da302f.js → textarea.taro-uoE3EnEN.js} +6 -6
- package/dist/esm/{timedetail.taro-130291a2.js → timedetail.taro-U-5mkxbs.js} +2 -2
- package/dist/esm/{timeselect.taro-ea27c6d5.js → timeselect.taro-WF2tyuNa.js} +8 -7
- package/dist/esm/{toast.taro-e5290709.js → toast.taro-1JDi9XWT.js} +7 -7
- package/dist/esm/{tour.taro-c7d2320b.js → tour.taro-_s4f3Cle.js} +2 -2
- package/dist/esm/{trendarrow.taro-ac0a3403.js → trendarrow.taro-CcC-yh2h.js} +4 -4
- package/dist/esm/types/src/packages/button/button.d.ts +2 -3
- package/dist/esm/types/src/packages/button/button.taro.d.ts +2 -3
- package/dist/esm/types/src/packages/checkbox/checkbox.d.ts +0 -2
- package/dist/esm/types/src/packages/checkbox/checkbox.taro.d.ts +0 -2
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/empty/demo.d.ts +1 -0
- package/dist/esm/types/src/packages/empty/demo.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/empty/empty.d.ts +1 -5
- package/dist/esm/types/src/packages/empty/empty.taro.d.ts +1 -5
- package/dist/esm/types/src/packages/empty/index.d.ts +0 -1
- package/dist/esm/types/src/packages/empty/index.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/indicator/demo.d.ts +1 -0
- package/dist/esm/types/src/packages/indicator/demo.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/inputnumber/demo.d.ts +1 -0
- package/dist/esm/types/src/packages/inputnumber/demo.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/navbar/navbar.d.ts +0 -1
- package/dist/esm/types/src/packages/navbar/navbar.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/pagination/pagination.d.ts +1 -1
- package/dist/esm/types/src/packages/pagination/pagination.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/popover/popover.d.ts +0 -4
- package/dist/esm/types/src/packages/popover/popover.taro.d.ts +0 -4
- package/dist/esm/types/src/packages/popup/popup.d.ts +0 -1
- package/dist/esm/types/src/packages/popup/popup.taro.d.ts +2 -3
- package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +0 -1
- package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/swipe/swipe.d.ts +6 -0
- package/dist/esm/types/src/packages/tabs/tabs.d.ts +1 -1
- package/dist/esm/types/src/packages/tabs/tabs.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/virtuallist/utils.d.ts +1 -1
- package/dist/esm/{uploader.taro-be3f843f.js → uploader.taro-tCA41p6W.js} +24 -24
- package/dist/esm/{use-custom-event-c672f4ae.js → use-custom-event-XvsODK8c.js} +2 -2
- package/dist/esm/{use-props-value-7637d900.js → use-props-value-vKr0R0AX.js} +1 -1
- package/dist/esm/{video.taro-804f0da6.js → video.taro-MDBF77xf.js} +1 -1
- package/dist/esm/{virtuallist.taro-08c9c585.js → virtuallist.taro-vrNBr0zS.js} +1 -1
- package/dist/esm/{watermark.taro-3971822c.js → watermark.taro-4PxMaMaO.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 +2 -2
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +12826 -14654
- package/dist/nutui.react.umd.js +12835 -14663
- package/dist/packages/actionsheet/actionsheet.scss +15 -15
- package/dist/packages/address/address.scss +6 -6
- package/dist/packages/animatingnumbers/countup.scss +6 -19
- package/dist/packages/audio/audio.scss +9 -17
- package/dist/packages/avatar/avatar.scss +1 -1
- package/dist/packages/avatarcropper/avatarcropper.scss +0 -4
- package/dist/packages/backtop/backtop.scss +3 -6
- package/dist/packages/badge/badge.scss +10 -12
- package/dist/packages/barrage/barrage.scss +6 -16
- package/dist/packages/button/button.scss +93 -163
- package/dist/packages/calendar/calendar.scss +16 -17
- package/dist/packages/calendarcard/calendarcard.scss +8 -8
- package/dist/packages/card/card.scss +14 -28
- package/dist/packages/cascader/cascader.scss +6 -6
- package/dist/packages/cell/cell.scss +3 -3
- package/dist/packages/cellgroup/cellgroup.scss +6 -6
- package/dist/packages/checkbox/checkbox.scss +22 -82
- package/dist/packages/checkboxgroup/checkboxgroup.scss +7 -17
- package/dist/packages/collapseitem/collapseitem.scss +10 -32
- package/dist/packages/dialog/dialog.scss +14 -14
- package/dist/packages/divider/divider.scss +13 -13
- package/dist/packages/elevator/elevator.scss +13 -14
- package/dist/packages/empty/empty.scss +6 -36
- package/dist/packages/fixednav/fixednav.scss +14 -27
- package/dist/packages/form/form.scss +4 -4
- package/dist/packages/formitem/formitem.scss +6 -6
- package/dist/packages/grid/grid.scss +1 -1
- package/dist/packages/griditem/griditem.scss +15 -16
- package/dist/packages/image/image.scss +2 -4
- package/dist/packages/imagepreview/imagepreview.scss +11 -1
- package/dist/packages/indicator/indicator.scss +9 -9
- package/dist/packages/infiniteloading/infiniteloading.scss +8 -23
- package/dist/packages/input/input.scss +2 -4
- package/dist/packages/inputnumber/inputnumber.scss +18 -21
- package/dist/packages/loading/loading.scss +3 -3
- package/dist/packages/menu/menu.scss +30 -22
- package/dist/packages/menuitem/menuitem.scss +56 -55
- package/dist/packages/navbar/navbar.scss +16 -52
- package/dist/packages/noticebar/noticebar.scss +11 -12
- package/dist/packages/notify/notify.scss +18 -10
- package/dist/packages/numberkeyboard/numberkeyboard.scss +17 -19
- package/dist/packages/pagination/pagination.scss +9 -32
- package/dist/packages/picker/picker.scss +19 -19
- package/dist/packages/popover/popover.scss +35 -51
- package/dist/packages/popup/popup.scss +213 -225
- package/dist/packages/price/price.scss +9 -20
- package/dist/packages/progress/progress.scss +1 -1
- package/dist/packages/pulltorefresh/pulltorefresh.scss +2 -9
- package/dist/packages/radio/radio.scss +40 -45
- package/dist/packages/radiogroup/radiogroup.scss +18 -18
- package/dist/packages/range/range.scss +4 -15
- package/dist/packages/rate/rate.scss +9 -8
- package/dist/packages/searchbar/searchbar.scss +42 -67
- package/dist/packages/shortpassword/shortpassword.scss +24 -24
- package/dist/packages/sidenavbar/sidenavbar.scss +8 -8
- package/dist/packages/sidenavbaritem/sidenavbaritem.scss +3 -3
- package/dist/packages/signature/signature.scss +2 -5
- package/dist/packages/skeleton/skeleton.scss +8 -8
- package/dist/packages/step/step.scss +32 -27
- package/dist/packages/sticky/sticky.scss +1 -1
- package/dist/packages/subsidenavbar/subsidenavbar.scss +5 -5
- package/dist/packages/swipe/swipe.scss +5 -8
- package/dist/packages/swiper/swiper.scss +4 -4
- package/dist/packages/switch/switch.scss +28 -39
- package/dist/packages/tabbar/tabbar.scss +4 -4
- package/dist/packages/tabbaritem/tabbaritem.scss +1 -8
- package/dist/packages/table/table.scss +28 -28
- package/dist/packages/tabpane/tabpane.scss +2 -2
- package/dist/packages/tabs/tabs.scss +137 -181
- package/dist/packages/tag/tag.scss +12 -12
- package/dist/packages/textarea/textarea.scss +6 -6
- package/dist/packages/timedetail/timedetail.scss +9 -8
- package/dist/packages/timeselect/timeselect.scss +21 -12
- package/dist/packages/toast/toast.scss +22 -37
- package/dist/packages/tour/tour.scss +4 -9
- package/dist/packages/trendarrow/trendarrow.scss +3 -8
- package/dist/packages/uploader/uploader.scss +37 -41
- package/dist/packages/virtuallist/virtuallist.scss +3 -13
- package/dist/packages/watermark/watermark.scss +0 -1
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -5
- package/dist/styles/theme-dark.scss +23 -118
- package/dist/styles/theme-default.scss +32 -114
- package/dist/styles/theme-jmapp.scss +32 -158
- package/dist/styles/variables-jmapp.scss +1255 -1117
- package/dist/styles/variables.scss +1090 -918
- package/dist/types/packages/animate/animate.taro.d.ts +2 -2
- package/dist/types/packages/button/button.taro.d.ts +2 -3
- package/dist/types/packages/checkbox/checkbox.taro.d.ts +0 -2
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/empty/empty.d.ts +1 -5
- package/dist/types/packages/empty/empty.taro.d.ts +1 -5
- package/dist/types/packages/empty/index.taro.d.ts +0 -1
- package/dist/types/packages/navbar/navbar.taro.d.ts +0 -1
- package/dist/types/packages/pagination/pagination.taro.d.ts +2 -2
- package/dist/types/packages/popover/popover.taro.d.ts +0 -4
- package/dist/types/packages/popup/popup.taro.d.ts +2 -15
- package/dist/types/packages/searchbar/searchbar.taro.d.ts +0 -5
- package/dist/types/packages/tabs/tabs.taro.d.ts +2 -2
- package/package.json +2 -2
- package/dist/esm/css.js +0 -1
- package/dist/esm/empty.taro-e9dd38e7.js +0 -811
- package/dist/esm/style.css +0 -1
- package/dist/esm/types/src/packages/empty/types.d.ts +0 -3
- package/dist/types/packages/button/button.d.ts +0 -23
- package/dist/types/packages/button/index.d.ts +0 -3
- package/dist/types/packages/empty/index.d.ts +0 -4
- package/dist/types/packages/empty/types.d.ts +0 -3
- /package/dist/esm/{UserContext-ab42ba7f.js → UserContext-9BL0cq8w.js} +0 -0
- /package/dist/esm/{context-f32a9246.js → context-6mGEMLsx.js} +0 -0
- /package/dist/esm/{context-ab42ba7f.js → context-9BL0cq8w.js} +0 -0
- /package/dist/esm/{date-04589b69.js → date-nxKOxj5-.js} +0 -0
- /package/dist/esm/{get-rect-by-taro-fe02fe2b.js → get-rect-by-taro-piSHvCGp.js} +0 -0
- /package/dist/esm/{get-scroll-parent-3d880563.js → get-scroll-parent-uywvoQMl.js} +0 -0
- /package/dist/esm/{index-00550715.js → index-YvHA__3D.js} +0 -0
- /package/dist/esm/{layout.taro-7711a89c.js → layout.taro-lnN-wB0Y.js} +0 -0
- /package/dist/esm/{px-check-f83a9dc3.js → px-check-JiWLYN2v.js} +0 -0
- /package/dist/esm/{raf-12d6371d.js → raf-UzmDvMUW.js} +0 -0
- /package/dist/esm/{safearea.taro-776b7bf8.js → safearea.taro-afu_mY7g.js} +0 -0
- /package/dist/esm/{space.taro-5f8f647f.js → space.taro-q3R_yq79.js} +0 -0
- /package/dist/esm/{swiperitem.taro-da39a67b.js → swiperitem.taro-BC1CE0T-.js} +0 -0
- /package/dist/esm/{tabpane.taro-96001c64.js → tabpane.taro-5k7wWimS.js} +0 -0
- /package/dist/esm/{typings-11d83a22.js → typings-buMpDfSR.js} +0 -0
- /package/dist/esm/{use-force-update-9cd7c164.js → use-force-update-0oEVD8Nr.js} +0 -0
- /package/dist/esm/{use-touch-38cf73ae.js → use-touch-DODa8svc.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React__default, { useMemo, useState } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
|
-
import {
|
|
3
|
+
import { RectDown } 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-kjOuDvcb.js";
|
|
6
|
+
import { u as useConfig } from "./configprovider.taro-hS2SwHJB.js";
|
|
7
|
+
import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
|
|
8
8
|
const defaultProps = {
|
|
9
9
|
...ComponentDefaults,
|
|
10
10
|
visible: false,
|
|
@@ -50,7 +50,7 @@ const NumberKeyboard = (props) => {
|
|
|
50
50
|
const style2 = {
|
|
51
51
|
background: `url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOUNBQTQ0MkY3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozOUNBQTQ0M0Y3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjM5Q0FBNDQwRjdFMzExRUFCMjM0QkJCRjE0NkZCODk4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM5Q0FBNDQxRjdFMzExRUFCMjM0QkJCRjE0NkZCODk4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+T12ahwAABClJREFUeNrUWVtIFFEY3pkdrbaCiAINK81VW3d2102pjKLtoXoJrNAswoeEXoyilx7sJXvIh6CHAoMg6yEfSpdECIqE0jCMbMm9qCVYUmR5S8huXmZO39nWOI7mzsy6uzqgM/vvzNnv+y/n/84ZjhBiWMwHF+kA+fn5y0ZHRzNwuTomgDnui9/vfzMvBJxWa7bE87W4tMbY8S8MhNz0BQLVugnY7fZdGORZPNNHJmSPUSf47QD/PN75z3NcpqD1IVEU8wC+dZojDIajyMu6WAG322zBmQf/7LzGnHeAdRtjmuAIKYoleMWxQnUEHA6HVZLldsb0m3oehdQQzzQSVILPJLIcYEw/4HkK/kG86yAsAZvNtgng3059hte/Gf56/uFCaGR8mIJdj3m2hzGNGAkpRM4vCPBzErBYLMko2A//DIQMoQ0WtgcCjWFnCVGswEzxCecqLc0y9Nyww2ariYhAbm7umgRB6GNM/QTgfT7fEzWD4t7dOK0D4TKAcrtcLkENeNx/gUoSpOnx4Gc9BHJyclZNjI8PMqY+judp2jSr1iuENDPi5fDX4WG32WxeogL81NGRIEk3NBNAh10uS9IIY/oIbxR6vd4WLXmJAq9Ayl1kTAUmk8mNyJrUgDfK8hFPV9dnTQSCHiLkO/Ndb8jzrXqKawYJQg4gsu6srKyV4cC/7ujo1CqneRSPxNh74PligPdE3PYVIDHuY6PRWCxPTp7VC35KSvwjwBpwdPP4gXYc86ZdZnr6Pf7S9HqexUs9z0qBLprz8wn+PzWRFknaKGsgjwlvCdLGH42GQ0lg+dqkMP+Enj+lF/yMWYgnJD1qEhhphOWgS2E2yQZDJWa/lEgIvGIa0D2HKJZGA7yiBgaZqO9AermdFstGXQR8fn+BootW4wfPRBE8zXmXoia2SYLgpsJRVwqBBJ2N+pnueRVhPR8l8MGCnaWw8wDCDSWQoasGQCKJnpjGcwkkKqMBfo7ZyQklQCOxWVcRg4QDXmhkSJRjsGvRAD8HCTuNhNPpXKtLzHn9/n0orBqm052GvL2lcfepTMs8PwsJqyRJRbrlNFpBCUBcYWaKE2h4tampqUtV6pP60HNtapuUksTY2NidiLcWUQPnMOhlxvQoITGxxOPxDIVdR2dnb/V2dr7Umn50/Q31261JC4UhUQYSVUxdtPCCUAK10RuvZeQ0LRQ2tD7fddxdyuT3TijJehATF/yinqmJ2wB+jCGRA11TH9xiXAwEQpG4i0gcZHLPjHSqF0Vx76IgEIpEA9a7+3H5K2RK4jnuPvTToXgR0LW9Htpap71iAzPVNsUIMH0XMdXkfLrfD9BdanifksiKW/5w3Emj3mcHBgb6kpKTn6KYzfBCehzg10H6lHPzMdIWq9U8znEpsXE6N4rTO9TjSGgPanG/pfwjwABn1PZcM5XI0AAAAABJRU5ErkJggg0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLTkwMjA5MzIyMjIxMzkzMzc2NzAwNjg0MC0tDQo=') no-repeat center`,
|
|
52
52
|
backgroundSize: "100% 100%",
|
|
53
|
-
width: "
|
|
53
|
+
width: "30px",
|
|
54
54
|
height: "24px"
|
|
55
55
|
};
|
|
56
56
|
return React__default.createElement(View, { style: style2 });
|
|
@@ -78,7 +78,7 @@ const NumberKeyboard = (props) => {
|
|
|
78
78
|
};
|
|
79
79
|
return React__default.createElement(
|
|
80
80
|
"div",
|
|
81
|
-
{ key: item.id, className: `${classPrefix}
|
|
81
|
+
{ key: item.id, className: `${classPrefix}__body__wrapper` },
|
|
82
82
|
React__default.createElement(
|
|
83
83
|
"div",
|
|
84
84
|
{ className: classNames({
|
|
@@ -90,7 +90,7 @@ const NumberKeyboard = (props) => {
|
|
|
90
90
|
}), onTouchStart: () => onTouchStart(), onTouchEnd: () => onTouchEnd(item), onTouchCancel: () => onTouchEnd(item) },
|
|
91
91
|
(item.type === "num" || item.type === "custom") && React__default.createElement("div", null, item.id),
|
|
92
92
|
item.type === "delete" && React__default.createElement(DeleteIcon, null),
|
|
93
|
-
item.type === "close" && React__default.createElement(
|
|
93
|
+
item.type === "close" && React__default.createElement(RectDown, { size: 25 }),
|
|
94
94
|
item.type === "confirm" && React__default.createElement(React__default.Fragment, null, confirmText || locale.done)
|
|
95
95
|
)
|
|
96
96
|
);
|
|
@@ -103,19 +103,19 @@ const NumberKeyboard = (props) => {
|
|
|
103
103
|
{ className: classNames(classPrefix, className), style },
|
|
104
104
|
title && React__default.createElement(
|
|
105
105
|
"div",
|
|
106
|
-
{ className: `${classPrefix}
|
|
107
|
-
React__default.createElement("
|
|
108
|
-
type === "default" && React__default.createElement("span", { className: `${classPrefix}
|
|
106
|
+
{ className: `${classPrefix}__header` },
|
|
107
|
+
React__default.createElement("h3", { className: `${classPrefix}__header__title` }, title),
|
|
108
|
+
type === "default" && React__default.createElement("span", { className: `${classPrefix}__header__close`, onClick: onConfirm }, locale.done)
|
|
109
109
|
),
|
|
110
110
|
React__default.createElement(
|
|
111
111
|
"div",
|
|
112
|
-
{ className: `${classPrefix}
|
|
113
|
-
React__default.createElement("div", { className: `${classPrefix}
|
|
112
|
+
{ className: `${classPrefix}__body` },
|
|
113
|
+
React__default.createElement("div", { className: `${classPrefix}__body__keys` }, keysList == null ? void 0 : keysList.map((item) => {
|
|
114
114
|
return React__default.createElement(NumberKeyboardKey, { key: item.id, item });
|
|
115
115
|
})),
|
|
116
116
|
type === "rightColumn" && React__default.createElement(
|
|
117
117
|
"div",
|
|
118
|
-
{ className: `${classPrefix}
|
|
118
|
+
{ className: `${classPrefix}__sidebar` },
|
|
119
119
|
React__default.createElement(NumberKeyboardKey, { key: "delete", item: {
|
|
120
120
|
id: "delete",
|
|
121
121
|
type: "delete"
|
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
import { B } from "./button.taro-
|
|
2
|
-
import { C } from "./cell.taro-
|
|
3
|
-
import { C as C2 } from "./cellgroup.taro-
|
|
4
|
-
import { C as C3 } from "./configprovider.taro-
|
|
5
|
-
import { I } from "./image.taro-
|
|
6
|
-
import { O } from "./overlay.taro-
|
|
7
|
-
import { C as C4 } from "./col.taro-
|
|
8
|
-
import { D } from "./divider.taro-
|
|
9
|
-
import { G } from "./grid.taro-
|
|
10
|
-
import { G as G2 } from "./griditem.taro-
|
|
11
|
-
import { L } from "./layout.taro-
|
|
12
|
-
import { R } from "./row.taro-
|
|
13
|
-
import { S } from "./space.taro-
|
|
14
|
-
import { S as S2 } from "./sticky.taro-
|
|
15
|
-
import { S as S3 } from "./safearea.taro-
|
|
16
|
-
import { B as B2 } from "./backtop.taro-
|
|
17
|
-
import { E } from "./elevator.taro-
|
|
18
|
-
import { F } from "./fixednav.taro-
|
|
19
|
-
import { N } from "./navbar.taro-
|
|
20
|
-
import { S as S4 } from "./sidenavbar.taro-
|
|
21
|
-
import { S as S5 } from "./sidenavbaritem.taro-
|
|
22
|
-
import { S as S6 } from "./subsidenavbar.taro-
|
|
23
|
-
import { T } from "./tabbar.taro-
|
|
24
|
-
import { T as T2 } from "./tabbaritem.taro-
|
|
25
|
-
import { T as T3 } from "./tabpane.taro-
|
|
26
|
-
import { T as T4 } from "./tabs.taro-
|
|
27
|
-
import { A } from "./address.taro-
|
|
28
|
-
import { C as C5 } from "./calendar.taro-
|
|
29
|
-
import { C as C6 } from "./calendaritem.taro-
|
|
30
|
-
import { C as C7 } from "./calendarcard.taro-
|
|
31
|
-
import { C as C8 } from "./cascader.taro-
|
|
32
|
-
import { C as C9, a } from "./checkbox.taro-
|
|
33
|
-
import { D as D2 } from "./datepicker.taro-
|
|
1
|
+
import { B } from "./button.taro-076zcKpr.js";
|
|
2
|
+
import { C } from "./cell.taro-3Tvgy6gl.js";
|
|
3
|
+
import { C as C2 } from "./cellgroup.taro-zHqxl7ol.js";
|
|
4
|
+
import { C as C3 } from "./configprovider.taro-hS2SwHJB.js";
|
|
5
|
+
import { I } from "./image.taro-jKXhCAIw.js";
|
|
6
|
+
import { O } from "./overlay.taro-g57gqLxf.js";
|
|
7
|
+
import { C as C4 } from "./col.taro-5FMpttLE.js";
|
|
8
|
+
import { D } from "./divider.taro-BTFED42F.js";
|
|
9
|
+
import { G } from "./grid.taro-4vtMCMqo.js";
|
|
10
|
+
import { G as G2 } from "./griditem.taro-z_VW6NuV.js";
|
|
11
|
+
import { L } from "./layout.taro-lnN-wB0Y.js";
|
|
12
|
+
import { R } from "./row.taro-IxNlKKQM.js";
|
|
13
|
+
import { S } from "./space.taro-q3R_yq79.js";
|
|
14
|
+
import { S as S2 } from "./sticky.taro-tOS_Ez6U.js";
|
|
15
|
+
import { S as S3 } from "./safearea.taro-afu_mY7g.js";
|
|
16
|
+
import { B as B2 } from "./backtop.taro-XH0lVUOf.js";
|
|
17
|
+
import { E } from "./elevator.taro-hYAvey0f.js";
|
|
18
|
+
import { F } from "./fixednav.taro-ub2wK6fK.js";
|
|
19
|
+
import { N } from "./navbar.taro-uxhBXITb.js";
|
|
20
|
+
import { S as S4 } from "./sidenavbar.taro-e_kk1OUY.js";
|
|
21
|
+
import { S as S5 } from "./sidenavbaritem.taro-TQ2PoDgR.js";
|
|
22
|
+
import { S as S6 } from "./subsidenavbar.taro-2qABjgZD.js";
|
|
23
|
+
import { T } from "./tabbar.taro-NpHMO2Nw.js";
|
|
24
|
+
import { T as T2 } from "./tabbaritem.taro-L63nEc64.js";
|
|
25
|
+
import { T as T3 } from "./tabpane.taro-5k7wWimS.js";
|
|
26
|
+
import { T as T4 } from "./tabs.taro-ygzv74Mx.js";
|
|
27
|
+
import { A } from "./address.taro-h9Q8IDbj.js";
|
|
28
|
+
import { C as C5 } from "./calendar.taro-oIFa_mYQ.js";
|
|
29
|
+
import { C as C6 } from "./calendaritem.taro-_gVfstym.js";
|
|
30
|
+
import { C as C7 } from "./calendarcard.taro-NqEhKcOk.js";
|
|
31
|
+
import { C as C8 } from "./cascader.taro-5-7ScvLI.js";
|
|
32
|
+
import { C as C9, a } from "./checkbox.taro-KtiGnhlG.js";
|
|
33
|
+
import { D as D2 } from "./datepicker.taro-l3QzCg6y.js";
|
|
34
34
|
import { default as default2 } from "./Form.js";
|
|
35
|
-
import { F as F2 } from "./formitem.taro-
|
|
36
|
-
import { I as I2 } from "./input.taro-
|
|
37
|
-
import { I as I3 } from "./inputnumber.taro-
|
|
38
|
-
import { M } from "./menu.taro-
|
|
39
|
-
import { M as M2 } from "./menuitem.taro-
|
|
40
|
-
import { N as N2 } from "./numberkeyboard.taro-
|
|
41
|
-
import { P } from "./picker.taro-
|
|
42
|
-
import { R as R2, a as a2 } from "./radio.taro-
|
|
43
|
-
import { R as R3 } from "./range.taro-
|
|
44
|
-
import { R as R4 } from "./rate.taro-
|
|
45
|
-
import { S as S7 } from "./searchbar.taro-
|
|
46
|
-
import { S as S8 } from "./shortpassword.taro-
|
|
47
|
-
import { S as S9 } from "./signature.taro-
|
|
48
|
-
import { S as S10 } from "./switch.taro-
|
|
49
|
-
import { T as T5 } from "./textarea.taro-
|
|
50
|
-
import { U } from "./uploader.taro-
|
|
51
|
-
import { A as A2 } from "./actionsheet.taro-
|
|
52
|
-
import { B as B3 } from "./badge.taro-
|
|
53
|
-
import { B as B4 } from "./dialog.taro
|
|
54
|
-
import { D as D3 } from "./drag.taro-
|
|
55
|
-
import { E as E2 } from "./empty.taro-
|
|
56
|
-
import { I as I4 } from "./infiniteloading.taro-
|
|
57
|
-
import { L as L2 } from "./loading.taro-
|
|
58
|
-
import { N as N3 } from "./noticebar.taro-
|
|
59
|
-
import { N as N4 } from "./notify.taro-
|
|
60
|
-
import { P as P2 } from "./popover.taro
|
|
61
|
-
import { P as P3 } from "./popup.taro-
|
|
62
|
-
import { P as P4 } from "./pulltorefresh.taro-
|
|
63
|
-
import { S as S11 } from "./skeleton.taro-
|
|
64
|
-
import { S as S12 } from "./swipe.taro-
|
|
65
|
-
import { T as T6 } from "./toast.taro-
|
|
66
|
-
import { A as A3 } from "./animate.taro-
|
|
35
|
+
import { F as F2 } from "./formitem.taro-w9qkYXEq.js";
|
|
36
|
+
import { I as I2 } from "./input.taro-HbP0VUca.js";
|
|
37
|
+
import { I as I3 } from "./inputnumber.taro-cwMnY2Gd.js";
|
|
38
|
+
import { M } from "./menu.taro-GPMcYkdK.js";
|
|
39
|
+
import { M as M2 } from "./menuitem.taro-V1SR74cE.js";
|
|
40
|
+
import { N as N2 } from "./numberkeyboard.taro-ToPOscOk.js";
|
|
41
|
+
import { P } from "./picker.taro-NyIQudtd.js";
|
|
42
|
+
import { R as R2, a as a2 } from "./radio.taro-EzXWv4Io.js";
|
|
43
|
+
import { R as R3 } from "./range.taro-708Gnv2w.js";
|
|
44
|
+
import { R as R4 } from "./rate.taro-1z-c8TA3.js";
|
|
45
|
+
import { S as S7 } from "./searchbar.taro-q43_qE5Y.js";
|
|
46
|
+
import { S as S8 } from "./shortpassword.taro-Dst95kRS.js";
|
|
47
|
+
import { S as S9 } from "./signature.taro-PPEtytig.js";
|
|
48
|
+
import { S as S10 } from "./switch.taro-xcb5i3Aw.js";
|
|
49
|
+
import { T as T5 } from "./textarea.taro-uoE3EnEN.js";
|
|
50
|
+
import { U } from "./uploader.taro-tCA41p6W.js";
|
|
51
|
+
import { A as A2 } from "./actionsheet.taro-30M41euQ.js";
|
|
52
|
+
import { B as B3 } from "./badge.taro-n0aVp8h1.js";
|
|
53
|
+
import { B as B4 } from "./dialog.taro--d0uO3VQ.js";
|
|
54
|
+
import { D as D3 } from "./drag.taro-BwcleRuB.js";
|
|
55
|
+
import { E as E2 } from "./empty.taro-39MwJjPx.js";
|
|
56
|
+
import { I as I4 } from "./infiniteloading.taro-au-C-hVX.js";
|
|
57
|
+
import { L as L2 } from "./loading.taro-aHN6xLIT.js";
|
|
58
|
+
import { N as N3 } from "./noticebar.taro-HnLNCT6c.js";
|
|
59
|
+
import { N as N4 } from "./notify.taro-eql4R4Mx.js";
|
|
60
|
+
import { P as P2 } from "./popover.taro--XIZLeWw.js";
|
|
61
|
+
import { P as P3 } from "./popup.taro-kjOuDvcb.js";
|
|
62
|
+
import { P as P4 } from "./pulltorefresh.taro-_lHPzDm-.js";
|
|
63
|
+
import { S as S11 } from "./skeleton.taro-uxvSUVsB.js";
|
|
64
|
+
import { S as S12 } from "./swipe.taro-caPbRS8Q.js";
|
|
65
|
+
import { T as T6 } from "./toast.taro-1JDi9XWT.js";
|
|
66
|
+
import { A as A3 } from "./animate.taro-m67VyUHP.js";
|
|
67
67
|
import { default as default3 } from "./AnimatingNumbers.js";
|
|
68
|
-
import { A as A4 } from "./audio.taro-
|
|
69
|
-
import { A as A5 } from "./avatar.taro-
|
|
70
|
-
import { A as A6 } from "./avatargroup.taro-
|
|
71
|
-
import { C as C10 } from "./circleprogress.taro-
|
|
72
|
-
import { C as C11 } from "./collapse.taro-
|
|
73
|
-
import { C as C12 } from "./collapseitem.taro-
|
|
74
|
-
import { C as C13 } from "./countdown.taro-
|
|
75
|
-
import { E as E3 } from "./ellipsis.taro-
|
|
76
|
-
import { I as I5 } from "./imagepreview.taro-
|
|
77
|
-
import { I as I6 } from "./indicator.taro-
|
|
78
|
-
import { P as P5 } from "./pagination.taro-
|
|
79
|
-
import { P as P6 } from "./price.taro-
|
|
80
|
-
import { P as P7 } from "./progress.taro-
|
|
81
|
-
import { S as S13 } from "./step.taro-
|
|
82
|
-
import { S as S14 } from "./steps.taro-
|
|
68
|
+
import { A as A4 } from "./audio.taro-lYwAL-H1.js";
|
|
69
|
+
import { A as A5 } from "./avatar.taro-5yLsf8Zg.js";
|
|
70
|
+
import { A as A6 } from "./avatargroup.taro-h6dpv6UX.js";
|
|
71
|
+
import { C as C10 } from "./circleprogress.taro-myZgamBw.js";
|
|
72
|
+
import { C as C11 } from "./collapse.taro-j2-ajiXA.js";
|
|
73
|
+
import { C as C12 } from "./collapseitem.taro-Pp7qD2-T.js";
|
|
74
|
+
import { C as C13 } from "./countdown.taro-SqVKfR7y.js";
|
|
75
|
+
import { E as E3 } from "./ellipsis.taro-ov_C4kbs.js";
|
|
76
|
+
import { I as I5 } from "./imagepreview.taro-njsGNYCl.js";
|
|
77
|
+
import { I as I6 } from "./indicator.taro-rl-kBFJW.js";
|
|
78
|
+
import { P as P5 } from "./pagination.taro-Mvehp6K2.js";
|
|
79
|
+
import { P as P6 } from "./price.taro-15WmWCW1.js";
|
|
80
|
+
import { P as P7 } from "./progress.taro-EBhB1-Vj.js";
|
|
81
|
+
import { S as S13 } from "./step.taro-kCAQ4Q3-.js";
|
|
82
|
+
import { S as S14 } from "./steps.taro-n6BT6nWE.js";
|
|
83
83
|
import { default as default4 } from "./Swiper.js";
|
|
84
|
-
import { S as S15 } from "./swiperitem.taro-
|
|
85
|
-
import { T as T7 } from "./table.taro-
|
|
86
|
-
import { T as T8 } from "./tag.taro-
|
|
87
|
-
import { T as T9 } from "./tour.taro-
|
|
88
|
-
import { V } from "./video.taro-
|
|
89
|
-
import { V as V2 } from "./virtuallist.taro-
|
|
90
|
-
import { B as B5 } from "./barrage.taro-
|
|
91
|
-
import { C as C14 } from "./card.taro-
|
|
92
|
-
import { T as T10 } from "./timedetail.taro-
|
|
93
|
-
import { T as T11 } from "./timeselect.taro-
|
|
94
|
-
import { T as T12 } from "./trendarrow.taro-
|
|
95
|
-
import { W } from "./watermark.taro-
|
|
96
|
-
import { A as A7 } from "./avatarcropper.taro-
|
|
84
|
+
import { S as S15 } from "./swiperitem.taro-BC1CE0T-.js";
|
|
85
|
+
import { T as T7 } from "./table.taro-sTWXN1kX.js";
|
|
86
|
+
import { T as T8 } from "./tag.taro-AOpj4lnK.js";
|
|
87
|
+
import { T as T9 } from "./tour.taro-_s4f3Cle.js";
|
|
88
|
+
import { V } from "./video.taro-MDBF77xf.js";
|
|
89
|
+
import { V as V2 } from "./virtuallist.taro-vrNBr0zS.js";
|
|
90
|
+
import { B as B5 } from "./barrage.taro-hFnjd1q2.js";
|
|
91
|
+
import { C as C14 } from "./card.taro-od399Pwi.js";
|
|
92
|
+
import { T as T10 } from "./timedetail.taro-U-5mkxbs.js";
|
|
93
|
+
import { T as T11 } from "./timeselect.taro-WF2tyuNa.js";
|
|
94
|
+
import { T as T12 } from "./trendarrow.taro-CcC-yh2h.js";
|
|
95
|
+
import { W } from "./watermark.taro-4PxMaMaO.js";
|
|
96
|
+
import { A as A7 } from "./avatarcropper.taro-5U7TdDmk.js";
|
|
97
97
|
import "react";
|
|
98
98
|
import "classnames";
|
|
99
99
|
import "@nutui/icons-react-taro";
|
|
100
100
|
import "@tarojs/taro";
|
|
101
|
-
import "./typings-
|
|
102
|
-
import "./index-
|
|
101
|
+
import "./typings-buMpDfSR.js";
|
|
102
|
+
import "./index-oitVOJp9.js";
|
|
103
103
|
import "@tarojs/components";
|
|
104
|
-
import "./px-check-
|
|
104
|
+
import "./px-check-JiWLYN2v.js";
|
|
105
105
|
import "react-transition-group";
|
|
106
|
-
import "./use-touch-
|
|
107
|
-
import "./get-scroll-parent-
|
|
108
|
-
import "./UserContext-
|
|
109
|
-
import "./get-rect-by-taro-
|
|
110
|
-
import "./context-
|
|
111
|
-
import "./use-props-value-
|
|
112
|
-
import "./use-force-update-
|
|
113
|
-
import "./raf-
|
|
114
|
-
import "./date-
|
|
115
|
-
import "./index-
|
|
116
|
-
import "./use-custom-event-
|
|
106
|
+
import "./use-touch-DODa8svc.js";
|
|
107
|
+
import "./get-scroll-parent-uywvoQMl.js";
|
|
108
|
+
import "./UserContext-9BL0cq8w.js";
|
|
109
|
+
import "./get-rect-by-taro-piSHvCGp.js";
|
|
110
|
+
import "./context-6mGEMLsx.js";
|
|
111
|
+
import "./use-props-value-vKr0R0AX.js";
|
|
112
|
+
import "./use-force-update-0oEVD8Nr.js";
|
|
113
|
+
import "./raf-UzmDvMUW.js";
|
|
114
|
+
import "./date-nxKOxj5-.js";
|
|
115
|
+
import "./index-YvHA__3D.js";
|
|
116
|
+
import "./use-custom-event-XvsODK8c.js";
|
|
117
117
|
import "react-dom";
|
|
118
|
-
import "./context-
|
|
118
|
+
import "./context-9BL0cq8w.js";
|
|
119
119
|
import "./ConfigProvider.js";
|
|
120
120
|
export {
|
|
121
121
|
A2 as ActionSheet,
|
|
@@ -2,10 +2,10 @@ import React__default, { useEffect, useRef, useState } from "react";
|
|
|
2
2
|
import { CSSTransition } from "react-transition-group";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { View } from "@tarojs/components";
|
|
5
|
-
import { C as ComponentDefaults } from "./typings-
|
|
5
|
+
import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
|
|
6
6
|
import { getEnv } from "@tarojs/taro";
|
|
7
|
-
import { u as useTouch } from "./use-touch-
|
|
8
|
-
import { c as canUseDom, g as getScrollParent } from "./get-scroll-parent-
|
|
7
|
+
import { u as useTouch } from "./use-touch-DODa8svc.js";
|
|
8
|
+
import { c as canUseDom, g as getScrollParent } from "./get-scroll-parent-uywvoQMl.js";
|
|
9
9
|
let passiveSupported = false;
|
|
10
10
|
if (canUseDom) {
|
|
11
11
|
try {
|
|
@@ -108,8 +108,8 @@ const Overlay = (props) => {
|
|
|
108
108
|
...defaultOverlayProps,
|
|
109
109
|
...props
|
|
110
110
|
};
|
|
111
|
-
const classPrefix = `nut-overlay`;
|
|
112
111
|
const [innerVisible, setInnerVisible] = useState(visible);
|
|
112
|
+
const classPrefix = `nut-overlay`;
|
|
113
113
|
const nodeRef = useLockScrollTaro(!!props.lockScroll && innerVisible);
|
|
114
114
|
useEffect(() => {
|
|
115
115
|
if (visible) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { useMemo } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
4
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
5
|
-
import { C as ComponentDefaults } from "./typings-
|
|
3
|
+
import { u as useConfig } from "./configprovider.taro-hS2SwHJB.js";
|
|
4
|
+
import { u as usePropsValue } from "./use-props-value-vKr0R0AX.js";
|
|
5
|
+
import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
...ComponentDefaults,
|
|
8
8
|
defaultValue: 1,
|
|
@@ -65,40 +65,26 @@ const Pagination = (props) => {
|
|
|
65
65
|
return React__default.createElement(
|
|
66
66
|
"div",
|
|
67
67
|
{ className: classNames(classPrefix, className), ...rest },
|
|
68
|
-
(mode === "multi"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
mode === "simple" && React__default.createElement(
|
|
80
|
-
"div",
|
|
81
|
-
{ className: `${classPrefix}-contain` },
|
|
82
|
-
React__default.createElement(
|
|
83
|
-
"div",
|
|
84
|
-
{ className: `${classPrefix}-simple` },
|
|
85
|
-
currentPage,
|
|
86
|
-
"/",
|
|
87
|
-
pageCount
|
|
88
|
-
)
|
|
89
|
-
),
|
|
90
|
-
React__default.createElement("div", { className: classNames(`${classPrefix}-next`, currentPage >= pageCount ? "disabled" : ""), onClick: (e) => handleSelectPage(currentPage + 1) }, next || locale.pagination.next)
|
|
91
|
-
),
|
|
92
|
-
mode === "lite" && React__default.createElement(
|
|
93
|
-
React__default.Fragment,
|
|
94
|
-
null,
|
|
68
|
+
React__default.createElement("div", { className: classNames(`${classPrefix}__prev`, mode === "multi" ? "" : "simple-border", currentPage === 1 ? "disabled" : ""), onClick: (e) => handleSelectPage(currentPage - 1) }, prev || locale.pagination.prev),
|
|
69
|
+
mode === "multi" && React__default.createElement("div", { className: `${classPrefix}__contain` }, pages.map((item, index) => {
|
|
70
|
+
return React__default.createElement("div", { key: `${index}pagination`, className: classNames(`${classPrefix}__item`, {
|
|
71
|
+
active: item.number === currentPage
|
|
72
|
+
}), onClick: (e) => {
|
|
73
|
+
item.number !== currentPage && handleSelectPage(item.number);
|
|
74
|
+
} }, itemRender ? itemRender(item) : item.text);
|
|
75
|
+
})),
|
|
76
|
+
mode === "simple" && React__default.createElement(
|
|
77
|
+
"div",
|
|
78
|
+
{ className: `${classPrefix}__contain` },
|
|
95
79
|
React__default.createElement(
|
|
96
80
|
"div",
|
|
97
|
-
{ className: `${classPrefix}
|
|
98
|
-
|
|
99
|
-
|
|
81
|
+
{ className: `${classPrefix}__simple` },
|
|
82
|
+
currentPage,
|
|
83
|
+
"/",
|
|
84
|
+
pageCount
|
|
100
85
|
)
|
|
101
|
-
)
|
|
86
|
+
),
|
|
87
|
+
React__default.createElement("div", { className: classNames(`${classPrefix}__next`, currentPage >= pageCount ? "disabled" : ""), onClick: (e) => handleSelectPage(currentPage + 1) }, next || locale.pagination.next)
|
|
102
88
|
);
|
|
103
89
|
};
|
|
104
90
|
Pagination.defaultProps = defaultProps;
|
|
@@ -2,13 +2,13 @@ import React__default, { useState, useRef, useEffect, useImperativeHandle } from
|
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import Taro from "@tarojs/taro";
|
|
4
4
|
import { View, PickerView, PickerViewColumn } from "@tarojs/components";
|
|
5
|
-
import { P as Popup } from "./popup.taro-
|
|
6
|
-
import { u as useTouch } from "./use-touch-
|
|
7
|
-
import { g as getRectByTaro } from "./get-rect-by-taro-
|
|
8
|
-
import { p as passiveSupported } from "./overlay.taro-
|
|
9
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
10
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
11
|
-
import { C as ComponentDefaults } from "./typings-
|
|
5
|
+
import { P as Popup } from "./popup.taro-kjOuDvcb.js";
|
|
6
|
+
import { u as useTouch } from "./use-touch-DODa8svc.js";
|
|
7
|
+
import { g as getRectByTaro } from "./get-rect-by-taro-piSHvCGp.js";
|
|
8
|
+
import { p as passiveSupported } from "./overlay.taro-g57gqLxf.js";
|
|
9
|
+
import { u as useConfig } from "./configprovider.taro-hS2SwHJB.js";
|
|
10
|
+
import { u as usePropsValue } from "./use-props-value-vKr0R0AX.js";
|
|
11
|
+
import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
|
|
12
12
|
const InternalPickerPanel = (props, ref) => {
|
|
13
13
|
const { keyIndex = 0, defaultValue, options = [], threeDimensional = true, duration = 1e3, itemShow = false, chooseItem } = props;
|
|
14
14
|
const touch = useTouch();
|
|
@@ -441,13 +441,13 @@ const InternalPicker = (props, ref) => {
|
|
|
441
441
|
const renderTitleBar = () => {
|
|
442
442
|
return React__default.createElement(
|
|
443
443
|
"div",
|
|
444
|
-
{ className: `${classPrefix}
|
|
445
|
-
React__default.createElement("span", { className: `${classPrefix}-
|
|
444
|
+
{ className: `${classPrefix}__control` },
|
|
445
|
+
React__default.createElement("span", { className: `${classPrefix}__cancel-btn`, onClick: (e) => {
|
|
446
446
|
onCancel == null ? void 0 : onCancel();
|
|
447
447
|
setInnerVisible(false);
|
|
448
448
|
} }, locale.cancel),
|
|
449
|
-
React__default.createElement("div", { className: `${classPrefix}
|
|
450
|
-
React__default.createElement("span", { className: `${classPrefix}-
|
|
449
|
+
React__default.createElement("div", { className: `${classPrefix}__title` }, title || ""),
|
|
450
|
+
React__default.createElement("span", { className: `${classPrefix}__confirm-btn`, onClick: (e) => {
|
|
451
451
|
confirm();
|
|
452
452
|
} }, locale.confirm)
|
|
453
453
|
);
|
|
@@ -491,7 +491,7 @@ const InternalPicker = (props, ref) => {
|
|
|
491
491
|
{ className: classes, style, ...rest, catchMove: true },
|
|
492
492
|
renderTitleBar(),
|
|
493
493
|
typeof children !== "function" && children,
|
|
494
|
-
React__default.createElement("div", { className: `${classPrefix}
|
|
494
|
+
React__default.createElement("div", { className: `${classPrefix}__panel`, ref: pickerRef }, Taro.getEnv() === "WEB" ? columnsList == null ? void 0 : columnsList.map((item, index) => {
|
|
495
495
|
return React__default.createElement(PickerPanel$1, { ref: setRefs(index), defaultValue: innerValue == null ? void 0 : innerValue[index], options: item, threeDimensional, chooseItem: (value, index2) => chooseItem(value, index2), duration, key: index, keyIndex: index, itemShow: visible });
|
|
496
496
|
}) : React__default.createElement(PickerView, { ref: pickerRef, value: currentValue, immediateChange: true, onPickStart: pickerStart, onChange: pickerChange, onPickEnd: pickerEnd, indicatorClass: "nut-picker-indicator-taro", className: "nut-picker-view-panel" }, columnsList == null ? void 0 : columnsList.map((columnOptions, index) => {
|
|
497
497
|
return React__default.createElement(PickerViewColumn, { key: `col${index}` }, columnOptions.map((item, index2) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default, { useRef, useState, useEffect } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import Taro, { createSelectorQuery } from "@tarojs/taro";
|
|
4
|
-
import { P as Popup } from "./popup.taro-
|
|
5
|
-
import { a as getRect, g as getRectByTaro } from "./get-rect-by-taro-
|
|
6
|
-
import { C as ComponentDefaults } from "./typings-
|
|
4
|
+
import { P as Popup } from "./popup.taro-kjOuDvcb.js";
|
|
5
|
+
import { a as getRect, g as getRectByTaro } from "./get-rect-by-taro-piSHvCGp.js";
|
|
6
|
+
import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
|
|
7
7
|
const defaultProps = {
|
|
8
8
|
...ComponentDefaults,
|
|
9
9
|
list: [],
|
|
@@ -94,8 +94,9 @@ const Popover = (props) => {
|
|
|
94
94
|
}, className);
|
|
95
95
|
const popoverArrow = () => {
|
|
96
96
|
const prefixCls = "nut-popover-arrow";
|
|
97
|
-
const
|
|
98
|
-
|
|
97
|
+
const loca = location;
|
|
98
|
+
const direction = loca.split("-")[0];
|
|
99
|
+
return `${prefixCls} ${prefixCls}-${direction} ${prefixCls}--${loca}`;
|
|
99
100
|
};
|
|
100
101
|
const getRootPosition = () => {
|
|
101
102
|
const styles = {};
|
|
@@ -205,7 +206,7 @@ const Popover = (props) => {
|
|
|
205
206
|
{ className: classes, style: getRootPosition() },
|
|
206
207
|
React__default.createElement(
|
|
207
208
|
Popup,
|
|
208
|
-
{ className: `nut-popover-content nut-popover-content
|
|
209
|
+
{ className: `nut-popover-content nut-popover-content--${location}`, position: "default", overlay, visible: showPopup, ...rest },
|
|
209
210
|
React__default.createElement(
|
|
210
211
|
"div",
|
|
211
212
|
{ className: "nut-popover-content-group", ref: popoverContentRef },
|
|
@@ -218,12 +219,8 @@ const Popover = (props) => {
|
|
|
218
219
|
"nut-popover-menu-item": true,
|
|
219
220
|
"nut-popover-menu-disabled": item.disabled
|
|
220
221
|
}, item.className), key: item.key || index, onClick: () => handleSelect(item, index) },
|
|
221
|
-
item.icon ?
|
|
222
|
-
React__default.createElement("div", { className: "nut-popover-menu-item-name" }, item.name)
|
|
223
|
-
item.action && item.action.icon ? React__default.createElement("i", { className: "nut-popover-menu-item-action-icon", onClick: (e) => {
|
|
224
|
-
var _a, _b;
|
|
225
|
-
return (_b = (_a = item.action) == null ? void 0 : _a.onClick) == null ? void 0 : _b.call(_a, e);
|
|
226
|
-
} }, item.action.icon) : null
|
|
222
|
+
item.icon ? item.icon : null,
|
|
223
|
+
React__default.createElement("div", { className: "nut-popover-menu-item-name" }, item.name)
|
|
227
224
|
);
|
|
228
225
|
})
|
|
229
226
|
)
|
|
@@ -4,8 +4,8 @@ import { CSSTransition } from "react-transition-group";
|
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { Close } from "@nutui/icons-react-taro";
|
|
6
6
|
import { View } from "@tarojs/components";
|
|
7
|
-
import { d as defaultOverlayProps, u as useLockScrollTaro, O as Overlay } from "./overlay.taro-
|
|
8
|
-
import { C as ComponentDefaults } from "./typings-
|
|
7
|
+
import { d as defaultOverlayProps, u as useLockScrollTaro, O as Overlay } from "./overlay.taro-g57gqLxf.js";
|
|
8
|
+
import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
|
|
9
9
|
const defaultProps = {
|
|
10
10
|
...ComponentDefaults,
|
|
11
11
|
position: "center",
|
|
@@ -29,7 +29,7 @@ const defaultProps = {
|
|
|
29
29
|
};
|
|
30
30
|
const _zIndex = 1100;
|
|
31
31
|
const Popup = (props) => {
|
|
32
|
-
const { children, visible, overlay, closeOnOverlayClick, overlayStyle, overlayClassName, zIndex, lockScroll, duration, closeable, closeIconPosition, closeIcon, left, title,
|
|
32
|
+
const { children, visible, overlay, closeOnOverlayClick, overlayStyle, overlayClassName, zIndex, lockScroll, duration, closeable, closeIconPosition, closeIcon, left, title, style, transition, round, position, className, destroyOnClose, portal, onOpen, onClose, onOverlayClick, onCloseIconClick, afterShow, afterClose, onClick } = { ...defaultProps, ...props };
|
|
33
33
|
let innerIndex = zIndex || _zIndex;
|
|
34
34
|
const [index, setIndex] = useState(innerIndex);
|
|
35
35
|
const [innerVisible, setInnerVisible] = useState(visible);
|
|
@@ -49,14 +49,14 @@ const Popup = (props) => {
|
|
|
49
49
|
...baseStyle
|
|
50
50
|
};
|
|
51
51
|
const popClassName = classNames({
|
|
52
|
-
|
|
52
|
+
round,
|
|
53
53
|
[`${classPrefix}`]: true,
|
|
54
54
|
[`${classPrefix}-${position}`]: true,
|
|
55
55
|
[`${className || ""}`]: true
|
|
56
56
|
});
|
|
57
57
|
const closeClasses = classNames({
|
|
58
|
-
[`${classPrefix}-
|
|
59
|
-
[`${classPrefix}-
|
|
58
|
+
[`${classPrefix}__close-icon`]: true,
|
|
59
|
+
[`${classPrefix}__close-icon--${closeIconPosition}`]: true
|
|
60
60
|
});
|
|
61
61
|
const open = () => {
|
|
62
62
|
if (!innerVisible) {
|
|
@@ -110,25 +110,19 @@ const Popup = (props) => {
|
|
|
110
110
|
}
|
|
111
111
|
return node;
|
|
112
112
|
};
|
|
113
|
-
const
|
|
114
|
-
if (
|
|
115
|
-
return React__default.createElement(
|
|
116
|
-
View,
|
|
117
|
-
{ className: `${classPrefix}-title` },
|
|
118
|
-
position === "bottom" && React__default.createElement(
|
|
119
|
-
React__default.Fragment,
|
|
120
|
-
null,
|
|
121
|
-
left && React__default.createElement(View, { className: `${classPrefix}-title-left` }, left),
|
|
122
|
-
(title || description) && React__default.createElement(
|
|
123
|
-
"div",
|
|
124
|
-
{ className: `${classPrefix}-title-title` },
|
|
125
|
-
title,
|
|
126
|
-
description && React__default.createElement("div", { className: `${classPrefix}-title-description` }, description)
|
|
127
|
-
)
|
|
128
|
-
),
|
|
129
|
-
closeable && React__default.createElement(View, { className: closeClasses, onClick: onHandleClickCloseIcon }, React__default.isValidElement(closeIcon) ? closeIcon : React__default.createElement(Close, null))
|
|
130
|
-
);
|
|
113
|
+
const renderIcon = () => {
|
|
114
|
+
if (closeable) {
|
|
115
|
+
return React__default.createElement(View, { className: closeClasses, onClick: onHandleClickCloseIcon }, React__default.isValidElement(closeIcon) ? closeIcon : React__default.createElement(Close, { width: 12, height: 12 }));
|
|
131
116
|
}
|
|
117
|
+
return null;
|
|
118
|
+
};
|
|
119
|
+
const renderTitle = () => {
|
|
120
|
+
return React__default.createElement(React__default.Fragment, null, position === "bottom" && React__default.createElement(
|
|
121
|
+
React__default.Fragment,
|
|
122
|
+
null,
|
|
123
|
+
left && React__default.createElement(View, { className: `${classPrefix}-left-icon` }, left),
|
|
124
|
+
title && React__default.createElement(View, { className: `${classPrefix}-title` }, title)
|
|
125
|
+
));
|
|
132
126
|
};
|
|
133
127
|
const renderPop = () => {
|
|
134
128
|
return React__default.createElement(
|
|
@@ -138,6 +132,7 @@ const Popup = (props) => {
|
|
|
138
132
|
View,
|
|
139
133
|
{ ref: refObject, style: popStyles, className: popClassName, onClick: onHandleClick, catchMove: lockScroll },
|
|
140
134
|
renderTitle(),
|
|
135
|
+
renderIcon(),
|
|
141
136
|
showChildren ? children : ""
|
|
142
137
|
)
|
|
143
138
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import { C as ComponentDefaults } from "./typings-
|
|
2
|
+
import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
|
|
3
3
|
const defaultProps = {
|
|
4
4
|
...ComponentDefaults,
|
|
5
5
|
price: 0,
|
|
@@ -61,15 +61,15 @@ const Price = (props) => {
|
|
|
61
61
|
return String(resultFixed).substring(2, resultFixed.length);
|
|
62
62
|
};
|
|
63
63
|
const renderSymbol = () => {
|
|
64
|
-
return React__default.createElement("div", { className: `${classPrefix}
|
|
64
|
+
return React__default.createElement("div", { className: `${classPrefix}__symbol ${classPrefix}__symbol-${size}`, dangerouslySetInnerHTML: showSymbol() });
|
|
65
65
|
};
|
|
66
66
|
return React__default.createElement(
|
|
67
67
|
"div",
|
|
68
|
-
{ className: `${classPrefix} ${line ? `${classPrefix}
|
|
68
|
+
{ className: `${classPrefix} ${line ? `${classPrefix}--line` : ""} ${className}`, style, ...rest },
|
|
69
69
|
symbol && position === "before" ? renderSymbol() : null,
|
|
70
|
-
React__default.createElement("div", { className: `${classPrefix}
|
|
71
|
-
digits !== 0 ? React__default.createElement("div", { className: `${classPrefix}
|
|
72
|
-
React__default.createElement("div", { className: `${classPrefix}
|
|
70
|
+
React__default.createElement("div", { className: `${classPrefix}__integer ${classPrefix}__integer-${size}` }, formatThousands(price)),
|
|
71
|
+
digits !== 0 ? React__default.createElement("div", { className: `${classPrefix}__decimal ${classPrefix}__decimal-${size}` }, ".") : null,
|
|
72
|
+
React__default.createElement("div", { className: `${classPrefix}__decimal ${classPrefix}__decimal-${size}` }, formatDecimal(price)),
|
|
73
73
|
symbol && position === "after" ? renderSymbol() : null
|
|
74
74
|
);
|
|
75
75
|
};
|