@nutui/nutui 4.3.14 → 4.3.15-beta.2
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 +19 -0
- package/README.md +2 -2
- package/dist/nutui.es.js +2 -14
- package/dist/nutui.umd.js +19829 -1
- package/dist/packages/{Interceptor-CBzqGJrl.js → Interceptor-aNUpilAP.js} +1 -1
- package/dist/packages/actionsheet/ActionSheet.js +17 -11
- package/dist/packages/address/Address.js +139 -121
- package/dist/packages/addresslist/AddressList.js +22 -11
- package/dist/packages/animate/Animate.js +1 -1
- package/dist/packages/avatar/Avatar.js +1 -1
- package/dist/packages/avatarcropper/AvatarCropper.js +329 -126
- package/dist/packages/avatargroup/AvatarGroup.js +17 -10
- package/dist/packages/backtop/Backtop.js +42 -88
- package/dist/packages/badge/Badge.js +4 -2
- package/dist/packages/barrage/Barrage.js +76 -130
- package/dist/packages/button/Button.js +15 -8
- package/dist/packages/calendar/Calendar.js +173 -152
- package/dist/packages/calendarcard/CalendarCard.js +33 -61
- package/dist/packages/card/Card.js +12 -4
- package/dist/packages/cascader/Cascader.js +49 -37
- package/dist/packages/category/Category.js +13 -12
- package/dist/packages/categorypane/CategoryPane.js +13 -8
- package/dist/packages/cell/Cell.js +10 -16
- package/dist/packages/cellgroup/CellGroup.js +4 -2
- package/dist/packages/checkbox/Checkbox.js +1 -1
- package/dist/packages/circleprogress/CircleProgress.js +53 -69
- package/dist/packages/col/Col.js +1 -1
- package/dist/packages/collapse/Collapse.js +1 -1
- package/dist/packages/collapseitem/CollapseItem.js +74 -39
- package/dist/packages/comment/Comment.js +46 -24
- package/dist/packages/configprovider/ConfigProvider.js +1 -1
- package/dist/packages/countdown/Countdown.js +2 -2
- package/dist/packages/countup/Countup.js +53 -66
- package/dist/packages/datepicker/DatePicker.js +12 -7
- package/dist/packages/dialog/Dialog.js +27 -96
- package/dist/packages/dialog/index.mjs +1 -2
- package/dist/packages/divider/Divider.js +1 -1
- package/dist/packages/drag/Drag.js +95 -58
- package/dist/packages/ecard/Ecard.js +19 -16
- package/dist/packages/elevator/Elevator.js +86 -73
- package/dist/packages/ellipsis/Ellipsis.js +223 -121
- package/dist/packages/empty/Empty.js +5 -3
- package/dist/packages/fixednav/FixedNav.js +12 -7
- package/dist/packages/form/Form.js +2 -2
- package/dist/packages/formitem/FormItem.js +3 -1
- package/dist/packages/grid/Grid.js +1 -1
- package/dist/packages/griditem/GridItem.js +5 -15
- package/dist/packages/imagepreview/ImagePreview.js +192 -400
- package/dist/packages/imagepreview/index.mjs +1 -2
- package/dist/packages/{index-BOB4ytqZ.js → index-IxPZmHlb.js} +2 -2
- package/dist/packages/index-m0Wcof-q.js +69 -0
- package/dist/packages/{index-wLaOjIn1.js → index.taro-CNxLoYer.js} +6 -7
- package/dist/packages/index.taro.vue_vue_type_script_setup_true_lang-JJ7hr71Y.js +17 -0
- package/dist/packages/indicator/Indicator.js +2 -2
- package/dist/packages/input/Input.js +87 -70
- package/dist/packages/inputnumber/InputNumber.js +22 -14
- package/dist/packages/invoice/Invoice.js +3 -2
- package/dist/packages/list/List.js +114 -56
- package/dist/packages/menu/Menu.js +45 -40
- package/dist/packages/menuitem/MenuItem.js +53 -47
- package/dist/packages/navbar/Navbar.js +31 -17
- package/dist/packages/noticebar/Noticebar.js +68 -43
- package/dist/packages/notify/Notify.js +10 -157
- package/dist/packages/notify/index.mjs +1 -2
- package/dist/packages/numberkeyboard/NumberKeyboard.js +103 -109
- package/dist/packages/overlay/Overlay.js +6 -34
- package/dist/packages/pagination/Pagination.js +8 -5
- package/dist/packages/picker/Picker.js +113 -26
- package/dist/packages/popover/Popover.js +158 -88
- package/dist/packages/popup/Popup.js +1 -1
- package/dist/packages/price/Price.js +16 -3
- package/dist/packages/progress/Progress.js +7 -4
- package/dist/packages/radio/Radio.js +11 -12
- package/dist/packages/radiogroup/RadioGroup.js +2 -2
- package/dist/packages/{raf-c01wDYCo.js → raf-CzJhCkQo.js} +0 -9
- package/dist/packages/range/Range.js +139 -71
- package/dist/packages/rate/Rate.js +15 -49
- package/dist/packages/row/Row.js +1 -1
- package/dist/packages/searchbar/Searchbar.js +35 -27
- package/dist/packages/shortpassword/ShortPassword.js +51 -43
- package/dist/packages/sidenavbar/SideNavbar.js +3 -14
- package/dist/packages/sidenavbaritem/SideNavbarItem.js +2 -2
- package/dist/packages/signature/Signature.js +148 -106
- package/dist/packages/skeleton/Skeleton.js +6 -3
- package/dist/packages/sku/Sku.js +66 -42
- package/dist/packages/space/Space.js +2 -2
- package/dist/packages/step/Step.js +5 -2
- package/dist/packages/steps/Steps.js +1 -1
- package/dist/packages/sticky/Sticky.js +32 -71
- package/dist/packages/subsidenavbar/SubSideNavbar.js +13 -5
- package/dist/packages/swipe/Swipe.js +37 -14
- package/dist/packages/swipegroup/SwipeGroup.js +2 -2
- package/dist/packages/swiper/Swiper.js +73 -24
- package/dist/packages/switch/Switch.js +6 -4
- package/dist/packages/tabbar/Tabbar.js +23 -24
- package/dist/packages/tabbaritem/TabbarItem.js +8 -3
- package/dist/packages/table/Table.js +10 -6
- package/dist/packages/tabs/Tabs.js +146 -150
- package/dist/packages/tag/Tag.js +5 -5
- package/dist/packages/textarea/Textarea.js +144 -69
- package/dist/packages/timedetail/TimeDetail.js +2 -2
- package/dist/packages/timepannel/TimePannel.js +2 -2
- package/dist/packages/timeselect/TimeSelect.js +9 -11
- package/dist/packages/toast/Toast.js +50 -186
- package/dist/packages/toast/index.mjs +1 -2
- package/dist/packages/tour/Tour.js +145 -99
- package/dist/packages/trendarrow/TrendArrow.js +7 -4
- package/dist/packages/uploader/Uploader.js +263 -106
- package/dist/packages/{util-D1pvnUYu.js → util-2G3mRQeF.js} +5 -17
- package/dist/packages/watermark/Watermark.js +95 -35
- package/dist/smartips/web-types.json +380 -770
- package/dist/style.css +1 -1
- package/dist/styles/base-jda.css +1 -0
- package/dist/styles/themes/default.scss +0 -1
- package/dist/styles/themes/jda.scss +106 -0
- package/dist/styles/themes/jdb.scss +0 -1
- package/dist/styles/themes/jddkh.scss +0 -1
- package/dist/styles/themes/jdt.scss +0 -1
- package/dist/styles/variables-jda.scss +945 -0
- package/dist/types/__VUE/actionsheet/{index.vue.d.ts → index.taro.vue.d.ts} +5 -112
- package/dist/types/__VUE/address/{index.vue.d.ts → index.taro.vue.d.ts} +139 -412
- package/dist/types/__VUE/addresslist/components/{GeneralShell.vue.d.ts → GeneralShell.taro.vue.d.ts} +45 -134
- package/dist/types/__VUE/addresslist/components/ItemContents.taro.vue.d.ts +27 -0
- package/dist/types/__VUE/addresslist/{index.vue.d.ts → index.taro.vue.d.ts} +85 -155
- package/dist/types/__VUE/animate/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/avatarcropper/{index.vue.d.ts → index.taro.vue.d.ts} +90 -147
- package/dist/types/__VUE/backtop/{backtop.vue.d.ts → backtop.taro.vue.d.ts} +8 -19
- package/dist/types/__VUE/backtop/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/badge/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/barrage/{index.vue.d.ts → index.taro.vue.d.ts} +10 -5
- package/dist/types/__VUE/button/{button.vue.d.ts → button.taro.vue.d.ts} +7 -1
- package/dist/types/__VUE/button/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/calendar/{index.vue.d.ts → index.taro.vue.d.ts} +59 -94
- package/dist/types/__VUE/calendarcard/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/calendaritem/{index.vue.d.ts → index.taro.vue.d.ts} +22 -4
- package/dist/types/__VUE/card/{index.vue.d.ts → index.taro.vue.d.ts} +13 -13
- package/dist/types/__VUE/cascader/{cascader-item.vue.d.ts → cascader-item.taro.vue.d.ts} +47 -229
- package/dist/types/__VUE/cascader/{index.vue.d.ts → index.taro.vue.d.ts} +50 -287
- package/dist/types/__VUE/category/{index.vue.d.ts → index.taro.vue.d.ts} +2 -2
- package/dist/types/__VUE/cell/{cell.vue.d.ts → cell.taro.vue.d.ts} +0 -15
- package/dist/types/__VUE/cell/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/cellgroup/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/circleprogress/{circle-progress.vue.d.ts → circle-progress.taro.vue.d.ts} +0 -4
- package/dist/types/__VUE/circleprogress/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/col/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/collapse/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/collapseitem/collapse-item.taro.vue.d.ts +94 -0
- package/dist/types/__VUE/collapseitem/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/comment/components/CmtBottom.taro.vue.d.ts +47 -0
- package/dist/types/__VUE/comment/components/CmtHeader.taro.vue.d.ts +122 -0
- package/dist/types/__VUE/comment/components/{CmtImages.vue.d.ts → CmtImages.taro.vue.d.ts} +2 -55
- package/dist/types/__VUE/comment/index.taro.vue.d.ts +333 -0
- package/dist/types/__VUE/countdown/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/countup/{index.vue.d.ts → index.taro.vue.d.ts} +5 -7
- package/dist/types/__VUE/datepicker/{index.vue.d.ts → index.taro.vue.d.ts} +31 -2
- package/dist/types/__VUE/dialog/{index.vue.d.ts → index.taro.vue.d.ts} +52 -85
- package/dist/types/__VUE/divider/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/drag/{index.vue.d.ts → index.taro.vue.d.ts} +2 -0
- package/dist/types/__VUE/elevator/{index.vue.d.ts → index.taro.vue.d.ts} +40 -5
- package/dist/types/__VUE/ellipsis/{index.vue.d.ts → index.taro.vue.d.ts} +11 -6
- package/dist/types/__VUE/empty/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/fixednav/{index.vue.d.ts → index.taro.vue.d.ts} +2 -55
- package/dist/types/__VUE/form/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/formitem/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/grid/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/griditem/{grid-item.vue.d.ts → grid-item.taro.vue.d.ts} +3 -21
- package/dist/types/__VUE/griditem/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/imagepreview/index.taro.vue.d.ts +732 -0
- package/dist/types/__VUE/indicator/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/input/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/input/{input.vue.d.ts → input.taro.vue.d.ts} +14 -6
- package/dist/types/__VUE/inputnumber/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/invoice/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/layout/{index.d.ts → index.taro.d.ts} +1 -1
- package/dist/types/__VUE/list/{index.vue.d.ts → index.taro.vue.d.ts} +32 -4
- package/dist/types/__VUE/menu/index.taro.vue.d.ts +104 -0
- package/dist/types/__VUE/menuitem/{index.vue.d.ts → index.taro.vue.d.ts} +22 -114
- package/dist/types/__VUE/navbar/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/noticebar/{index.vue.d.ts → index.taro.vue.d.ts} +9 -116
- package/dist/types/__VUE/notify/{index.vue.d.ts → index.taro.vue.d.ts} +2 -66
- package/dist/types/__VUE/numberkeyboard/{index.vue.d.ts → index.taro.vue.d.ts} +14 -60
- package/dist/types/__VUE/overlay/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/picker/{index.vue.d.ts → index.taro.vue.d.ts} +31 -2
- package/dist/types/__VUE/popover/{index.vue.d.ts → index.taro.vue.d.ts} +4 -56
- package/dist/types/__VUE/popup/{index.vue.d.ts → index.taro.vue.d.ts} +3 -56
- package/dist/types/__VUE/price/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/progress/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/radio/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/radiogroup/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/range/{index.vue.d.ts → index.taro.vue.d.ts} +3 -2
- package/dist/types/__VUE/rate/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/rate/rate.taro.vue.d.ts +95 -0
- package/dist/types/__VUE/row/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/scroll-view/index.taro.vue.d.ts +9 -0
- package/dist/types/__VUE/searchbar/{index.vue.d.ts → index.taro.vue.d.ts} +23 -121
- package/dist/types/__VUE/shortpassword/{index.vue.d.ts → index.taro.vue.d.ts} +5 -112
- package/dist/types/__VUE/sidenavbar/{index.vue.d.ts → index.taro.vue.d.ts} +0 -9
- package/dist/types/__VUE/signature/{index.vue.d.ts → index.taro.vue.d.ts} +53 -31
- package/dist/types/__VUE/skeleton/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/sku/components/{SkuHeader.vue.d.ts → SkuHeader.taro.vue.d.ts} +6 -6
- package/dist/types/__VUE/sku/{index.vue.d.ts → index.taro.vue.d.ts} +25 -62
- package/dist/types/__VUE/step/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/steps/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/sticky/{index.vue.d.ts → index.taro.vue.d.ts} +7 -26
- package/dist/types/__VUE/subsidenavbar/index.taro.vue.d.ts +45 -0
- package/dist/types/__VUE/swipe/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/swipegroup/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/swiper/{index.vue.d.ts → index.taro.vue.d.ts} +6 -5
- package/dist/types/__VUE/switch/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/tabbar/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/tabbaritem/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/table/{index.vue.d.ts → index.taro.vue.d.ts} +2 -55
- package/dist/types/__VUE/tabs/{index.vue.d.ts → index.taro.vue.d.ts} +27 -118
- package/dist/types/__VUE/tag/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/textarea/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/textarea/{textarea.vue.d.ts → textarea.taro.vue.d.ts} +1 -1
- package/dist/types/__VUE/timeselect/{index.vue.d.ts → index.taro.vue.d.ts} +3 -66
- package/dist/types/__VUE/toast/{index.vue.d.ts → index.taro.vue.d.ts} +16 -12
- package/dist/types/__VUE/tour/{index.vue.d.ts → index.taro.vue.d.ts} +13 -121
- package/dist/types/__VUE/trendarrow/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/uploader/{index.vue.d.ts → index.taro.vue.d.ts} +268 -286
- package/dist/types/__VUE/watermark/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/index.d.ts +145 -155
- package/package.json +1 -1
- package/dist/nutui.js +0 -15854
- package/dist/packages/audio/Audio.js +0 -271
- package/dist/packages/audio/index.mjs +0 -2
- package/dist/packages/audiooperate/AudioOperate.js +0 -125
- package/dist/packages/audiooperate/index.mjs +0 -2
- package/dist/packages/image/Image.js +0 -167
- package/dist/packages/image/index.mjs +0 -2
- package/dist/packages/index-B1qsj2XR.js +0 -33
- package/dist/packages/index-BvmDLUYP.js +0 -31
- package/dist/packages/index-aiGQ-EiA.js +0 -8
- package/dist/packages/infiniteloading/InfiniteLoading.js +0 -184
- package/dist/packages/infiniteloading/index.mjs +0 -2
- package/dist/packages/mountComponent-CLi4Nz91.js +0 -39
- package/dist/packages/pullrefresh/PullRefresh.js +0 -240
- package/dist/packages/pullrefresh/index.mjs +0 -2
- package/dist/packages/types-BMA1Y94E.js +0 -4
- package/dist/packages/video/Video.js +0 -449
- package/dist/packages/video/index.mjs +0 -2
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +0 -134
- package/dist/types/__VUE/audio/index.vue.d.ts +0 -323
- package/dist/types/__VUE/audio/types.d.ts +0 -3
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +0 -229
- package/dist/types/__VUE/collapseitem/collapse-item.vue.d.ts +0 -201
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +0 -208
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +0 -248
- package/dist/types/__VUE/comment/index.vue.d.ts +0 -728
- package/dist/types/__VUE/dialog/index.d.ts +0 -44
- package/dist/types/__VUE/image/image.vue.d.ts +0 -111
- package/dist/types/__VUE/image/index.d.ts +0 -6
- package/dist/types/__VUE/image/types.d.ts +0 -2
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +0 -267
- package/dist/types/__VUE/imagepreview/index.d.ts +0 -36
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +0 -1088
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +0 -140
- package/dist/types/__VUE/menu/index.vue.d.ts +0 -210
- package/dist/types/__VUE/notify/index.d.ts +0 -22
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -200
- package/dist/types/__VUE/rate/rate.vue.d.ts +0 -208
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +0 -152
- package/dist/types/__VUE/toast/index.d.ts +0 -12
- package/dist/types/__VUE/video/index.vue.d.ts +0 -149
- package/dist/packages/{index-Do4_KY74.js → index.taro-Do4_KY74.js} +0 -0
- package/dist/types/__VUE/animate/{animate.vue.d.ts → animate.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/avatar/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/avatargroup/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/badge/{badge.vue.d.ts → badge.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/calendarcard/{calendar-card.vue.d.ts → calendar-card.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/calendarcard/{icon.d.ts → icon.taro.d.ts} +0 -0
- package/dist/types/__VUE/categorypane/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/cellgroup/{cell-group.vue.d.ts → cell-group.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/checkbox/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/checkboxgroup/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/col/{col.vue.d.ts → col.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/collapse/{collapse.vue.d.ts → collapse.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/configprovider/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/countdown/{countdown.vue.d.ts → countdown.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/divider/{divider.vue.d.ts → divider.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/ecard/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/empty/{empty.vue.d.ts → empty.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/form/{form.vue.d.ts → form.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/formitem/{form-item.vue.d.ts → form-item.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/grid/{grid.vue.d.ts → grid.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/indicator/{indicator.vue.d.ts → indicator.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/inputnumber/{input-number.vue.d.ts → input-number.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/invoice/{invoice.vue.d.ts → invoice.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/layout/{layout.vue.d.ts → layout.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/navbar/{navbar.vue.d.ts → navbar.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/overlay/{overlay.vue.d.ts → overlay.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/pagination/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/price/{price.vue.d.ts → price.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/progress/{progress.vue.d.ts → progress.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/radio/{radio.vue.d.ts → radio.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/radiogroup/{radio-group.vue.d.ts → radio-group.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/row/{row.vue.d.ts → row.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/sidenavbaritem/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/skeleton/{skeleton.vue.d.ts → skeleton.taro.vue.d.ts} +2 -2
- package/dist/types/__VUE/sku/components/{SkuStepper.vue.d.ts → SkuStepper.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/space/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/step/{step.vue.d.ts → step.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/steps/{steps.vue.d.ts → steps.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/swipe/{swipe.vue.d.ts → swipe.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/swipegroup/{swipe-group.vue.d.ts → swipe-group.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/swiperitem/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/switch/{switch.vue.d.ts → switch.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabbar/{tabbar.vue.d.ts → tabbar.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabbaritem/{tabbar-item.vue.d.ts → tabbar-item.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabpane/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/tag/{tag.vue.d.ts → tag.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/timedetail/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/timepannel/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/trendarrow/{trend-arrow.vue.d.ts → trend-arrow.taro.vue.d.ts} +1 -1
- package/dist/types/__VUE/watermark/{watermark.vue.d.ts → watermark.taro.vue.d.ts} +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref, computed, watch, resolveComponent, openBlock,
|
|
1
|
+
import { ref, computed, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, toDisplayString, createTextVNode, createCommentVNode, Fragment, renderList, normalizeClass } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
3
|
-
import { N as NutPopup } from "../index-
|
|
4
|
-
import { u as useLocale } from "../index-
|
|
3
|
+
import { N as NutPopup } from "../index.taro-CNxLoYer.js";
|
|
4
|
+
import { u as useLocale } from "../index-IxPZmHlb.js";
|
|
5
5
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
6
6
|
const { create } = createComponent("number-keyboard");
|
|
7
7
|
const cN = "NutNumberKeyboard";
|
|
@@ -42,6 +42,10 @@ const _sfc_main = create({
|
|
|
42
42
|
type: Boolean,
|
|
43
43
|
default: false
|
|
44
44
|
},
|
|
45
|
+
overlay: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false
|
|
48
|
+
},
|
|
45
49
|
popClass: {
|
|
46
50
|
type: String,
|
|
47
51
|
default: ""
|
|
@@ -51,7 +55,7 @@ const _sfc_main = create({
|
|
|
51
55
|
default: true
|
|
52
56
|
}
|
|
53
57
|
},
|
|
54
|
-
emits: ["input", "delete", "close", "
|
|
58
|
+
emits: ["input", "delete", "close", "confirm", "update:modelValue", "update:visible"],
|
|
55
59
|
setup(props, { emit }) {
|
|
56
60
|
const translate = useLocale(cN);
|
|
57
61
|
const clickKeyIndex = ref(void 0);
|
|
@@ -113,27 +117,10 @@ const _sfc_main = create({
|
|
|
113
117
|
}
|
|
114
118
|
return defaultKey();
|
|
115
119
|
});
|
|
116
|
-
const onBlur = () => {
|
|
117
|
-
if (props.visible) {
|
|
118
|
-
emit("blur");
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
const clickAway = (event) => {
|
|
122
|
-
const element = root.value;
|
|
123
|
-
let el = element && !element.contains(event.target);
|
|
124
|
-
if (el) {
|
|
125
|
-
onBlur();
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
120
|
watch(
|
|
129
121
|
() => props.visible,
|
|
130
122
|
(value) => {
|
|
131
123
|
show.value = value;
|
|
132
|
-
if (value) {
|
|
133
|
-
window.addEventListener("touchstart", clickAway, false);
|
|
134
|
-
} else {
|
|
135
|
-
window.removeEventListener("touchstart", clickAway, false);
|
|
136
|
-
}
|
|
137
124
|
}
|
|
138
125
|
);
|
|
139
126
|
function onTouchstart(item, event) {
|
|
@@ -141,7 +128,7 @@ const _sfc_main = create({
|
|
|
141
128
|
clickKeyIndex.value = item.id;
|
|
142
129
|
if (item.type == "number" || item.type == "custom") {
|
|
143
130
|
emit("input", item.id);
|
|
144
|
-
if (props.modelValue.length <
|
|
131
|
+
if (props.modelValue.length < Number(props.maxlength)) {
|
|
145
132
|
emit("update:modelValue", props.modelValue + item.id);
|
|
146
133
|
}
|
|
147
134
|
}
|
|
@@ -156,8 +143,7 @@ const _sfc_main = create({
|
|
|
156
143
|
function onTouchMove(event) {
|
|
157
144
|
event.stopPropagation();
|
|
158
145
|
}
|
|
159
|
-
function onTouchEnd(
|
|
160
|
-
event.preventDefault();
|
|
146
|
+
function onTouchEnd() {
|
|
161
147
|
clickKeyIndex.value = void 0;
|
|
162
148
|
}
|
|
163
149
|
function closeBoard() {
|
|
@@ -184,111 +170,119 @@ const _sfc_main = create({
|
|
|
184
170
|
};
|
|
185
171
|
}
|
|
186
172
|
});
|
|
187
|
-
const _hoisted_1 = {
|
|
188
|
-
|
|
189
|
-
|
|
173
|
+
const _hoisted_1 = {
|
|
174
|
+
ref: "root",
|
|
175
|
+
class: "nut-number-keyboard"
|
|
176
|
+
};
|
|
177
|
+
const _hoisted_2 = {
|
|
190
178
|
key: 0,
|
|
191
179
|
class: "nut-number-keyboard__header"
|
|
192
180
|
};
|
|
193
|
-
const
|
|
194
|
-
const
|
|
195
|
-
const
|
|
196
|
-
const
|
|
197
|
-
const
|
|
181
|
+
const _hoisted_3 = { class: "nut-number-keyboard__title" };
|
|
182
|
+
const _hoisted_4 = { class: "nut-number-keyboard__body" };
|
|
183
|
+
const _hoisted_5 = { class: "nut-number-keyboard__keys" };
|
|
184
|
+
const _hoisted_6 = ["onTouchstart"];
|
|
185
|
+
const _hoisted_7 = {
|
|
198
186
|
key: 1,
|
|
199
187
|
src: "https://img11.360buyimg.com/imagetools/jfs/t1/146371/38/8485/738/5f606425Eca239740/14f4b4f5f20d8a68.png"
|
|
200
188
|
};
|
|
201
|
-
const
|
|
189
|
+
const _hoisted_8 = {
|
|
202
190
|
key: 2,
|
|
203
191
|
src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png"
|
|
204
192
|
};
|
|
205
|
-
const
|
|
193
|
+
const _hoisted_9 = {
|
|
206
194
|
key: 0,
|
|
207
195
|
class: "nut-number-keyboard__sidebar"
|
|
208
196
|
};
|
|
209
|
-
const
|
|
197
|
+
const _hoisted_10 = { class: "nut-key__wrapper" };
|
|
210
198
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
211
199
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
212
|
-
return openBlock(),
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
200
|
+
return openBlock(), createBlock(_component_nut_popup, {
|
|
201
|
+
visible: _ctx.show,
|
|
202
|
+
"onUpdate:visible": _cache[7] || (_cache[7] = ($event) => _ctx.show = $event),
|
|
203
|
+
position: "bottom",
|
|
204
|
+
"pop-class": _ctx.popClass,
|
|
205
|
+
overlay: _ctx.overlay,
|
|
206
|
+
"overlay-class": "nut-number-keyboard-overlay",
|
|
207
|
+
"lock-scroll": _ctx.lockScroll,
|
|
208
|
+
"catch-move": _ctx.lockScroll,
|
|
209
|
+
onClickOverlay: _cache[8] || (_cache[8] = ($event) => _ctx.closeBoard())
|
|
210
|
+
}, {
|
|
211
|
+
default: withCtx(() => [
|
|
212
|
+
createElementVNode("div", _hoisted_1, [
|
|
213
|
+
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
214
|
+
createElementVNode("h3", _hoisted_3, toDisplayString(_ctx.title), 1),
|
|
215
|
+
_cache[9] || (_cache[9] = createTextVNode()),
|
|
216
|
+
_ctx.type == "default" ? (openBlock(), createElementBlock("span", {
|
|
217
|
+
key: 0,
|
|
218
|
+
class: "nut-number-keyboard__close",
|
|
219
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.closeBoard())
|
|
220
|
+
}, toDisplayString(_ctx.translate("done")), 1)) : createCommentVNode("", true)
|
|
221
|
+
])) : createCommentVNode("", true),
|
|
222
|
+
_cache[15] || (_cache[15] = createTextVNode()),
|
|
223
|
+
createElementVNode("div", _hoisted_4, [
|
|
232
224
|
createElementVNode("div", _hoisted_5, [
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
225
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.keysList, (item) => {
|
|
226
|
+
return openBlock(), createElementBlock("div", {
|
|
227
|
+
key: "key" + item.id,
|
|
228
|
+
class: normalizeClass([
|
|
229
|
+
"nut-key__wrapper",
|
|
230
|
+
{
|
|
231
|
+
"nut-key__wrapper--wider": item.id == 0 && _ctx.type == "rightColumn" && Array.isArray(_ctx.customKey) && _ctx.customKey.length == 1
|
|
232
|
+
}
|
|
233
|
+
])
|
|
234
|
+
}, [
|
|
235
|
+
createElementVNode("div", {
|
|
237
236
|
class: normalizeClass([
|
|
238
|
-
"nut-
|
|
239
|
-
{
|
|
240
|
-
|
|
241
|
-
}
|
|
242
|
-
])
|
|
237
|
+
"nut-key",
|
|
238
|
+
{ "nut-key--active": item.id == _ctx.clickKeyIndex },
|
|
239
|
+
{ "nut-key--lock": item.type == "lock" },
|
|
240
|
+
{ "nut-key--delete": item.type == "delete" }
|
|
241
|
+
]),
|
|
242
|
+
onTouchstart: (event) => _ctx.onTouchstart(item, event),
|
|
243
|
+
onTouchmove: _cache[1] || (_cache[1] = (event) => _ctx.onTouchMove(event)),
|
|
244
|
+
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
243
245
|
}, [
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
]
|
|
262
|
-
|
|
246
|
+
item.type == "number" || item.type == "custom" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
247
|
+
createTextVNode(toDisplayString(item.id), 1)
|
|
248
|
+
], 64)) : createCommentVNode("", true),
|
|
249
|
+
_cache[10] || (_cache[10] = createTextVNode()),
|
|
250
|
+
item.type == "lock" ? (openBlock(), createElementBlock("img", _hoisted_7)) : createCommentVNode("", true),
|
|
251
|
+
_cache[11] || (_cache[11] = createTextVNode()),
|
|
252
|
+
item.type == "delete" ? (openBlock(), createElementBlock("img", _hoisted_8)) : createCommentVNode("", true)
|
|
253
|
+
], 42, _hoisted_6)
|
|
254
|
+
], 2);
|
|
255
|
+
}), 128))
|
|
256
|
+
]),
|
|
257
|
+
_cache[14] || (_cache[14] = createTextVNode()),
|
|
258
|
+
_ctx.type == "rightColumn" ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
259
|
+
createElementVNode("div", _hoisted_10, [
|
|
260
|
+
createElementVNode("div", {
|
|
261
|
+
class: normalizeClass(["nut-key", { active: _ctx.clickKeyIndex == "delete" }]),
|
|
262
|
+
onTouchstart: _cache[3] || (_cache[3] = (event) => _ctx.onTouchstart({ id: "delete", type: "delete" }, event)),
|
|
263
|
+
onTouchmove: _cache[4] || (_cache[4] = (event) => _ctx.onTouchMove(event)),
|
|
264
|
+
onTouchend: _cache[5] || (_cache[5] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
265
|
+
}, _cache[12] || (_cache[12] = [
|
|
266
|
+
createElementVNode("img", { src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png" }, null, -1)
|
|
267
|
+
]), 34)
|
|
263
268
|
]),
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
onTouchmove: _cache[4] || (_cache[4] = (event) => _ctx.onTouchMove(event)),
|
|
270
|
-
onTouchend: _cache[5] || (_cache[5] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
271
|
-
}, _cache[8] || (_cache[8] = [
|
|
272
|
-
createElementVNode("img", { src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png" }, null, -1)
|
|
273
|
-
]), 34)
|
|
274
|
-
]),
|
|
269
|
+
_cache[13] || (_cache[13] = createTextVNode()),
|
|
270
|
+
createElementVNode("div", {
|
|
271
|
+
class: "nut-key__wrapper nut-key__wrapper--finish",
|
|
272
|
+
onClick: _cache[6] || (_cache[6] = (...args) => _ctx.confirm && _ctx.confirm(...args))
|
|
273
|
+
}, [
|
|
275
274
|
createElementVNode("div", {
|
|
276
|
-
class: "nut-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
class: normalizeClass(["nut-key", "nut-key--finish ", { activeFinsh: _ctx.clickKeyIndex == "finish" }])
|
|
281
|
-
}, toDisplayString(_ctx.confirmText || _ctx.translate("done")), 3)
|
|
282
|
-
])
|
|
283
|
-
])) : createCommentVNode("", true)
|
|
284
|
-
])
|
|
275
|
+
class: normalizeClass(["nut-key", "nut-key--finish ", { activeFinsh: _ctx.clickKeyIndex == "finish" }])
|
|
276
|
+
}, toDisplayString(_ctx.confirmText || _ctx.translate("done")), 3)
|
|
277
|
+
])
|
|
278
|
+
])) : createCommentVNode("", true)
|
|
285
279
|
])
|
|
286
|
-
])
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
280
|
+
], 512)
|
|
281
|
+
]),
|
|
282
|
+
_: 1
|
|
283
|
+
}, 8, ["visible", "pop-class", "overlay", "lock-scroll", "catch-move"]);
|
|
290
284
|
}
|
|
291
|
-
const
|
|
285
|
+
const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
292
286
|
export {
|
|
293
|
-
|
|
287
|
+
index_taro as default
|
|
294
288
|
};
|
|
@@ -17,38 +17,13 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, computed,
|
|
21
|
-
import { b as body } from "../util-D1pvnUYu.js";
|
|
20
|
+
import { defineComponent, computed, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, renderSlot, vShow } from "vue";
|
|
22
21
|
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
23
|
-
|
|
24
|
-
const CLSNAME = "nut-overflow-hidden";
|
|
25
|
-
const useLockScroll = (isLock) => {
|
|
26
|
-
const lock = () => {
|
|
27
|
-
if (isLock()) {
|
|
28
|
-
try {
|
|
29
|
-
!count && body.classList.add(CLSNAME);
|
|
30
|
-
count++;
|
|
31
|
-
} catch (error) {
|
|
32
|
-
console.warn("[NutUI] <useLockScroll>", error);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
const unlock = () => {
|
|
37
|
-
if (isLock() && count) {
|
|
38
|
-
try {
|
|
39
|
-
count--;
|
|
40
|
-
!count && body.classList.remove(CLSNAME);
|
|
41
|
-
} catch (error) {
|
|
42
|
-
console.warn("[NutUI] <unlock>", error);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
return [lock, unlock];
|
|
47
|
-
};
|
|
22
|
+
const _hoisted_1 = ["catch-move"];
|
|
48
23
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
49
24
|
name: "NutOverlay"
|
|
50
25
|
}), {
|
|
51
|
-
__name: "overlay",
|
|
26
|
+
__name: "overlay.taro",
|
|
52
27
|
props: {
|
|
53
28
|
visible: { type: Boolean, default: false },
|
|
54
29
|
zIndex: { default: 2e3 },
|
|
@@ -62,7 +37,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
62
37
|
setup(__props, { emit: __emit }) {
|
|
63
38
|
const props = __props;
|
|
64
39
|
const emit = __emit;
|
|
65
|
-
const [lock, unlock] = useLockScroll(() => props.lockScroll);
|
|
66
40
|
const classes = computed(() => {
|
|
67
41
|
const prefixCls = "nut-overlay";
|
|
68
42
|
return {
|
|
@@ -76,9 +50,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
76
50
|
zIndex: props.zIndex
|
|
77
51
|
}, props.overlayStyle);
|
|
78
52
|
});
|
|
79
|
-
watchEffect(() => {
|
|
80
|
-
props.visible ? lock() : unlock();
|
|
81
|
-
});
|
|
82
53
|
const onClick = (e) => {
|
|
83
54
|
emit("click", e);
|
|
84
55
|
if (props.closeOnClickOverlay) {
|
|
@@ -91,10 +62,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
91
62
|
withDirectives(createElementVNode("view", {
|
|
92
63
|
class: normalizeClass(classes.value),
|
|
93
64
|
style: normalizeStyle(style.value),
|
|
94
|
-
|
|
65
|
+
"catch-move": _ctx.lockScroll,
|
|
66
|
+
onClick
|
|
95
67
|
}, [
|
|
96
68
|
renderSlot(_ctx.$slots, "default")
|
|
97
|
-
],
|
|
69
|
+
], 14, _hoisted_1), [
|
|
98
70
|
[vShow, _ctx.visible]
|
|
99
71
|
])
|
|
100
72
|
]),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toRefs, computed, watchEffect, openBlock, createElementBlock, createElementVNode, normalizeClass, renderSlot, createTextVNode, toDisplayString, Fragment, renderList, createCommentVNode } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
3
|
-
import { u as useLocale } from "../index-
|
|
3
|
+
import { u as useLocale } from "../index-IxPZmHlb.js";
|
|
4
4
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
5
5
|
const { create } = createComponent("pagination");
|
|
6
6
|
const cN = "NutPagination";
|
|
@@ -128,10 +128,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
128
128
|
createTextVNode(toDisplayString(_ctx.prevText || _ctx.translate("prev")), 1)
|
|
129
129
|
])
|
|
130
130
|
], 2),
|
|
131
|
+
_cache[2] || (_cache[2] = createTextVNode()),
|
|
131
132
|
_ctx.mode == "multi" ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
132
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.pages, (item,
|
|
133
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.pages, (item, index) => {
|
|
133
134
|
return openBlock(), createElementBlock("view", {
|
|
134
|
-
key:
|
|
135
|
+
key: index + "pagination",
|
|
135
136
|
class: normalizeClass(["nut-pagination-item", item.active ? "active" : ""]),
|
|
136
137
|
onClick: ($event) => _ctx.select(item.number, true)
|
|
137
138
|
}, [
|
|
@@ -141,9 +142,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
141
142
|
], 10, _hoisted_3);
|
|
142
143
|
}), 128))
|
|
143
144
|
])) : createCommentVNode("", true),
|
|
145
|
+
_cache[3] || (_cache[3] = createTextVNode()),
|
|
144
146
|
_ctx.mode == "simple" ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
145
147
|
createElementVNode("view", _hoisted_5, toDisplayString(_ctx.modelValue) + "/" + toDisplayString(_ctx.countRef), 1)
|
|
146
148
|
])) : createCommentVNode("", true),
|
|
149
|
+
_cache[4] || (_cache[4] = createTextVNode()),
|
|
147
150
|
createElementVNode("view", {
|
|
148
151
|
class: normalizeClass(["nut-pagination-next", _ctx.modelValue >= _ctx.countRef ? "disabled" : ""]),
|
|
149
152
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.select(_ctx.modelValue + 1, true))
|
|
@@ -154,7 +157,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
154
157
|
], 2)
|
|
155
158
|
]);
|
|
156
159
|
}
|
|
157
|
-
const
|
|
160
|
+
const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
158
161
|
export {
|
|
159
|
-
|
|
162
|
+
index_taro as default
|
|
160
163
|
};
|
|
@@ -17,13 +17,14 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { reactive, computed, ref, watch, toRefs, onMounted, openBlock, createElementBlock, createElementVNode, normalizeStyle, Fragment, renderList, normalizeClass, toDisplayString, createCommentVNode, resolveComponent, renderSlot, createVNode } from "vue";
|
|
21
20
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
22
|
-
import {
|
|
21
|
+
import { reactive, computed, ref, watch, toRefs, onMounted, openBlock, createElementBlock, createElementVNode, normalizeStyle, Fragment, renderList, normalizeClass, toDisplayString, createCommentVNode, createTextVNode, resolveComponent, renderSlot, mergeProps, createVNode } from "vue";
|
|
22
|
+
import Taro from "@tarojs/taro";
|
|
23
23
|
import { p as pxCheck } from "../pxCheck-DN6FYV6q.js";
|
|
24
|
+
import { a as preventDefault, c as clamp } from "../util-2G3mRQeF.js";
|
|
24
25
|
import { u as useTouch } from "../index-I8tfW3Kf.js";
|
|
25
26
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
26
|
-
import { u as useLocale } from "../index-
|
|
27
|
+
import { u as useLocale } from "../index-IxPZmHlb.js";
|
|
27
28
|
const DEFAULT_FILED_NAMES = {
|
|
28
29
|
text: "text",
|
|
29
30
|
value: "value",
|
|
@@ -456,6 +457,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
456
457
|
}]),
|
|
457
458
|
style: normalizeStyle(_ctx.setRollerStyle(index + 1))
|
|
458
459
|
}, toDisplayString(item[_ctx.fieldNames.text]), 7)) : createCommentVNode("", true),
|
|
460
|
+
_cache[4] || (_cache[4] = createTextVNode()),
|
|
459
461
|
item && item[_ctx.fieldNames.text] && !_ctx.threeDimensional ? (openBlock(), createElementBlock("view", {
|
|
460
462
|
key: 1,
|
|
461
463
|
class: normalizeClass(["nut-picker-roller-item-tile", {
|
|
@@ -467,6 +469,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
467
469
|
], 64);
|
|
468
470
|
}), 128))
|
|
469
471
|
], 36),
|
|
472
|
+
_cache[5] || (_cache[5] = createTextVNode()),
|
|
470
473
|
createElementVNode("view", {
|
|
471
474
|
class: "nut-picker-roller-mask",
|
|
472
475
|
style: normalizeStyle(_ctx.maskStyles)
|
|
@@ -532,29 +535,69 @@ const _sfc_main = create({
|
|
|
532
535
|
emits: ["cancel", "change", "confirm", "update:modelValue"],
|
|
533
536
|
setup(props, { emit }) {
|
|
534
537
|
const translate = useLocale(cN);
|
|
535
|
-
const {
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
538
|
+
const {
|
|
539
|
+
changeHandler,
|
|
540
|
+
confirm,
|
|
541
|
+
defaultValues,
|
|
542
|
+
defaultIndexes,
|
|
543
|
+
columnsList,
|
|
544
|
+
columnsType,
|
|
545
|
+
columnFieldNames,
|
|
546
|
+
cancel
|
|
547
|
+
} = usePicker(props, emit);
|
|
548
|
+
const state = reactive({
|
|
549
|
+
show: false,
|
|
550
|
+
picking: false,
|
|
551
|
+
ENV: Taro.getEnv(),
|
|
552
|
+
ENV_TYPE: Taro.ENV_TYPE
|
|
553
|
+
});
|
|
539
554
|
const pickerColumn = ref([]);
|
|
540
555
|
const swipeRef = (el) => {
|
|
541
556
|
if (el && pickerColumn.value.length < columnsList.value.length) {
|
|
542
557
|
pickerColumn.value.push(el);
|
|
543
558
|
}
|
|
544
559
|
};
|
|
545
|
-
const
|
|
560
|
+
const confirmHandler = () => {
|
|
561
|
+
if (Taro.getEnv() === Taro.ENV_TYPE.WEB) {
|
|
562
|
+
pickerColumn.value.length > 0 && pickerColumn.value.forEach((column) => {
|
|
563
|
+
column.stopMomentum();
|
|
564
|
+
});
|
|
565
|
+
confirm();
|
|
566
|
+
} else {
|
|
567
|
+
if (state.picking) {
|
|
568
|
+
setTimeout(() => {
|
|
569
|
+
confirm();
|
|
570
|
+
}, 0);
|
|
571
|
+
} else {
|
|
572
|
+
confirm();
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
};
|
|
576
|
+
const pickerViewStyles = computed(() => {
|
|
546
577
|
const styles = {};
|
|
547
578
|
styles.height = `${+props.visibleOptionNum * +props.optionHeight}px`;
|
|
548
579
|
styles["--lineHeight"] = `${+props.optionHeight}px`;
|
|
549
580
|
return styles;
|
|
550
581
|
});
|
|
551
|
-
const
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
582
|
+
const tileChange = (data) => {
|
|
583
|
+
var _a, _b;
|
|
584
|
+
const prevDefaultValue = defaultIndexes.value;
|
|
585
|
+
let changeIndex = 0;
|
|
586
|
+
for (let i = 0; i < ((_a = data.detail.value) == null ? void 0 : _a.length); i++) {
|
|
587
|
+
if (prevDefaultValue[i] !== ((_b = data.detail.value) == null ? void 0 : _b[i])) {
|
|
588
|
+
changeIndex = i;
|
|
589
|
+
break;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
changeHandler(changeIndex, columnsList.value[changeIndex][data.detail.value[changeIndex]]);
|
|
593
|
+
};
|
|
594
|
+
const handlePickstart = () => {
|
|
595
|
+
state.picking = true;
|
|
556
596
|
};
|
|
557
|
-
|
|
597
|
+
const handlePickend = () => {
|
|
598
|
+
state.picking = false;
|
|
599
|
+
};
|
|
600
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
558
601
|
columnsType,
|
|
559
602
|
columnsList,
|
|
560
603
|
columnFieldNames,
|
|
@@ -562,11 +605,16 @@ const _sfc_main = create({
|
|
|
562
605
|
changeHandler,
|
|
563
606
|
confirmHandler,
|
|
564
607
|
defaultValues,
|
|
565
|
-
translate,
|
|
566
608
|
pickerColumn,
|
|
567
609
|
swipeRef,
|
|
568
|
-
|
|
569
|
-
|
|
610
|
+
defaultIndexes,
|
|
611
|
+
tileChange,
|
|
612
|
+
handlePickstart,
|
|
613
|
+
translate,
|
|
614
|
+
handlePickend,
|
|
615
|
+
pickerViewStyles,
|
|
616
|
+
pxCheck
|
|
617
|
+
});
|
|
570
618
|
}
|
|
571
619
|
});
|
|
572
620
|
const _hoisted_1 = { class: "nut-picker" };
|
|
@@ -575,24 +623,61 @@ const _hoisted_2 = {
|
|
|
575
623
|
class: "nut-picker__bar"
|
|
576
624
|
};
|
|
577
625
|
const _hoisted_3 = { class: "nut-picker__title" };
|
|
626
|
+
const _hoisted_4 = ["indicator-style", "value"];
|
|
627
|
+
const _hoisted_5 = ["filed-names"];
|
|
578
628
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
579
629
|
const _component_nut_picker_column = resolveComponent("nut-picker-column");
|
|
580
|
-
return openBlock(), createElementBlock("
|
|
630
|
+
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
581
631
|
_ctx.showToolbar ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
582
632
|
createElementVNode("view", {
|
|
583
|
-
class: "nut-picker__left",
|
|
633
|
+
class: "nut-picker__cancel nut-picker__left nut-picker__button",
|
|
584
634
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.cancel && _ctx.cancel(...args))
|
|
585
635
|
}, toDisplayString(_ctx.cancelText || _ctx.translate("cancel")), 1),
|
|
636
|
+
_cache[5] || (_cache[5] = createTextVNode()),
|
|
586
637
|
createElementVNode("view", _hoisted_3, toDisplayString(_ctx.title), 1),
|
|
638
|
+
_cache[6] || (_cache[6] = createTextVNode()),
|
|
587
639
|
createElementVNode("view", {
|
|
588
|
-
class: "nut-picker__right",
|
|
640
|
+
class: "nut-picker__confirm nut-picker__right nut-picker__button",
|
|
589
641
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.confirmHandler && _ctx.confirmHandler(...args))
|
|
590
642
|
}, toDisplayString(_ctx.okText || _ctx.translate("confirm")), 1)
|
|
591
643
|
])) : createCommentVNode("", true),
|
|
644
|
+
_cache[7] || (_cache[7] = createTextVNode()),
|
|
592
645
|
renderSlot(_ctx.$slots, "top"),
|
|
593
|
-
|
|
646
|
+
_cache[8] || (_cache[8] = createTextVNode()),
|
|
647
|
+
_ctx.ENV != _ctx.ENV_TYPE.WEB ? (openBlock(), createElementBlock("picker-view", mergeProps({
|
|
648
|
+
key: 1,
|
|
649
|
+
"indicator-style": `height:${_ctx.optionHeight}px`,
|
|
650
|
+
value: _ctx.defaultIndexes,
|
|
651
|
+
style: _ctx.pickerViewStyles
|
|
652
|
+
}, _ctx.$attrs, {
|
|
653
|
+
"immediate-change": true,
|
|
654
|
+
onChange: _cache[2] || (_cache[2] = (...args) => _ctx.tileChange && _ctx.tileChange(...args)),
|
|
655
|
+
onPickstart: _cache[3] || (_cache[3] = (...args) => _ctx.handlePickstart && _ctx.handlePickstart(...args)),
|
|
656
|
+
onPickend: _cache[4] || (_cache[4] = (...args) => _ctx.handlePickend && _ctx.handlePickend(...args))
|
|
657
|
+
}), [
|
|
658
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columnsList, (column, columnIndex) => {
|
|
659
|
+
return openBlock(), createElementBlock("picker-view-column", {
|
|
660
|
+
key: columnIndex,
|
|
661
|
+
"filed-names": _ctx.columnFieldNames
|
|
662
|
+
}, [
|
|
663
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(column, (item, index) => {
|
|
664
|
+
var _a;
|
|
665
|
+
return openBlock(), createElementBlock("view", {
|
|
666
|
+
key: (_a = item[_ctx.columnFieldNames.value]) != null ? _a : index,
|
|
667
|
+
class: normalizeClass(["nut-picker-roller-item-tarotile", {
|
|
668
|
+
[item[_ctx.columnFieldNames.className]]: item[_ctx.columnFieldNames.className]
|
|
669
|
+
}]),
|
|
670
|
+
style: normalizeStyle({
|
|
671
|
+
lineHeight: _ctx.pxCheck(_ctx.optionHeight)
|
|
672
|
+
})
|
|
673
|
+
}, toDisplayString(item[_ctx.columnFieldNames.text]), 7);
|
|
674
|
+
}), 128))
|
|
675
|
+
], 8, _hoisted_5);
|
|
676
|
+
}), 128))
|
|
677
|
+
], 16, _hoisted_4)) : (openBlock(), createElementBlock("view", {
|
|
678
|
+
key: 2,
|
|
594
679
|
class: "nut-picker__column",
|
|
595
|
-
style: normalizeStyle(_ctx.
|
|
680
|
+
style: normalizeStyle(_ctx.pickerViewStyles)
|
|
596
681
|
}, [
|
|
597
682
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columnsList, (column, columnIndex) => {
|
|
598
683
|
return openBlock(), createElementBlock("view", {
|
|
@@ -605,18 +690,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
605
690
|
column,
|
|
606
691
|
"columns-type": _ctx.columnsType,
|
|
607
692
|
"field-names": _ctx.columnFieldNames,
|
|
608
|
-
value: _ctx.defaultValues
|
|
609
|
-
"three-dimensional":
|
|
693
|
+
value: _ctx.defaultValues[columnIndex],
|
|
694
|
+
"three-dimensional": false,
|
|
610
695
|
"swipe-duration": _ctx.swipeDuration,
|
|
611
696
|
"visible-option-num": _ctx.visibleOptionNum,
|
|
612
697
|
"option-height": _ctx.optionHeight,
|
|
698
|
+
taro: "",
|
|
613
699
|
onChange: (option) => {
|
|
614
700
|
_ctx.changeHandler(columnIndex, option);
|
|
615
701
|
}
|
|
616
|
-
}, null, 8, ["column", "columns-type", "field-names", "value", "
|
|
702
|
+
}, null, 8, ["column", "columns-type", "field-names", "value", "swipe-duration", "visible-option-num", "option-height", "onChange"])
|
|
617
703
|
]);
|
|
618
704
|
}), 128))
|
|
619
|
-
], 4),
|
|
705
|
+
], 4)),
|
|
706
|
+
_cache[9] || (_cache[9] = createTextVNode()),
|
|
620
707
|
renderSlot(_ctx.$slots, "default")
|
|
621
708
|
]);
|
|
622
709
|
}
|