@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
|
@@ -17,16 +17,22 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { ref, computed, reactive, onMounted, watch, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList,
|
|
20
|
+
import { ref, computed, reactive, onMounted, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, createTextVNode, renderSlot, Fragment, renderList, createVNode, withCtx, normalizeStyle, createBlock, mergeProps, createSlots } from "vue";
|
|
21
21
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
22
|
+
import Taro from "@tarojs/taro";
|
|
23
|
+
import { _ as _sfc_main$2 } from "../index.taro.vue_vue_type_script_setup_true_lang-JJ7hr71Y.js";
|
|
22
24
|
import { U as Utils } from "../date-DHXcwF1m.js";
|
|
23
|
-
import { r as requestAniFrame } from "../raf-
|
|
24
|
-
import { u as useLocale } from "../index-
|
|
25
|
+
import { r as requestAniFrame } from "../raf-CzJhCkQo.js";
|
|
26
|
+
import { u as useLocale } from "../index-IxPZmHlb.js";
|
|
25
27
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
26
|
-
import { N as NutPopup } from "../index-
|
|
28
|
+
import { N as NutPopup } from "../index.taro-CNxLoYer.js";
|
|
27
29
|
const { create: create$1 } = createComponent("calendar-item");
|
|
28
30
|
const cN = "NutCalendarItem";
|
|
31
|
+
const TARO_ENV = Taro.getEnv();
|
|
29
32
|
const _sfc_main$1 = create$1({
|
|
33
|
+
components: {
|
|
34
|
+
NutScrollView: _sfc_main$2
|
|
35
|
+
},
|
|
30
36
|
props: {
|
|
31
37
|
type: {
|
|
32
38
|
type: String,
|
|
@@ -93,19 +99,18 @@ const _sfc_main$1 = create$1({
|
|
|
93
99
|
emits: ["choose", "update", "close", "select"],
|
|
94
100
|
setup(props, { emit, slots, expose }) {
|
|
95
101
|
const translate = useLocale(cN);
|
|
96
|
-
const weekdays = translate("weekdays").map((day,
|
|
102
|
+
const weekdays = translate("weekdays").map((day, index) => ({
|
|
97
103
|
day,
|
|
98
|
-
weekend:
|
|
104
|
+
weekend: index === 0 || index === 6
|
|
99
105
|
}));
|
|
100
106
|
const weeks = ref([...weekdays.slice(props.firstDayOfWeek, 7), ...weekdays.slice(0, props.firstDayOfWeek)]);
|
|
107
|
+
const scalePx = ref(2);
|
|
101
108
|
const months = ref(null);
|
|
102
|
-
const monthsPanel = ref(null);
|
|
103
|
-
const weeksPanel = ref(null);
|
|
104
|
-
const viewArea = ref(null);
|
|
105
109
|
const viewHeight = ref(0);
|
|
106
110
|
const compConthsData = computed(() => {
|
|
107
111
|
return state.monthsData.slice(state.defaultRange[0], state.defaultRange[1]);
|
|
108
112
|
});
|
|
113
|
+
const scrollWithAnimation = ref(false);
|
|
109
114
|
const showTopBtn = computed(() => {
|
|
110
115
|
return slots.btn;
|
|
111
116
|
});
|
|
@@ -118,6 +123,7 @@ const _sfc_main$1 = create$1({
|
|
|
118
123
|
const state = reactive({
|
|
119
124
|
yearMonthTitle: "",
|
|
120
125
|
defaultRange: [],
|
|
126
|
+
containerHeight: "100%",
|
|
121
127
|
currDate: "",
|
|
122
128
|
propStartDate: "",
|
|
123
129
|
propEndDate: "",
|
|
@@ -143,6 +149,7 @@ const _sfc_main$1 = create$1({
|
|
|
143
149
|
timer: 0,
|
|
144
150
|
currentIndex: 0,
|
|
145
151
|
avgHeight: 0,
|
|
152
|
+
scrollTop: 0,
|
|
146
153
|
monthsNum: 0
|
|
147
154
|
});
|
|
148
155
|
const splitDate = (date) => {
|
|
@@ -167,9 +174,9 @@ const _sfc_main$1 = create$1({
|
|
|
167
174
|
const getCurrDate = (day, month) => {
|
|
168
175
|
return month.curData[0] + "-" + month.curData[1] + "-" + Utils.getNumTwoBit(+day.day);
|
|
169
176
|
};
|
|
170
|
-
const getClass = (day, month,
|
|
177
|
+
const getClass = (day, month, index) => {
|
|
171
178
|
const res = [];
|
|
172
|
-
if (typeof
|
|
179
|
+
if (typeof index === "number" && ((index + 1 + props.firstDayOfWeek) % 7 === 0 || (index + props.firstDayOfWeek) % 7 === 0)) {
|
|
173
180
|
res.push("weekend");
|
|
174
181
|
}
|
|
175
182
|
const currDate = getCurrDate(day, month);
|
|
@@ -192,9 +199,6 @@ const _sfc_main$1 = create$1({
|
|
|
192
199
|
if (type == "range" && state.chooseData.length == 2 || type != "range") {
|
|
193
200
|
let selectData = state.chooseData.slice(0);
|
|
194
201
|
if (type == "week") {
|
|
195
|
-
if (state.chooseData.length !== 2) {
|
|
196
|
-
return;
|
|
197
|
-
}
|
|
198
202
|
selectData = {
|
|
199
203
|
weekDate: [handleWeekDate(state.chooseData[0]), handleWeekDate(state.chooseData[1])]
|
|
200
204
|
};
|
|
@@ -217,9 +221,9 @@ const _sfc_main$1 = create$1({
|
|
|
217
221
|
if (type == "multiple") {
|
|
218
222
|
if (((_a = state.currDate) == null ? void 0 : _a.length) > 0) {
|
|
219
223
|
let hasIndex = void 0;
|
|
220
|
-
(_b = state.currDate) == null ? void 0 : _b.forEach((item,
|
|
224
|
+
(_b = state.currDate) == null ? void 0 : _b.forEach((item, index) => {
|
|
221
225
|
if (item == days[3]) {
|
|
222
|
-
hasIndex =
|
|
226
|
+
hasIndex = index;
|
|
223
227
|
}
|
|
224
228
|
});
|
|
225
229
|
if (isFirst) {
|
|
@@ -372,7 +376,15 @@ const _sfc_main$1 = create$1({
|
|
|
372
376
|
cssHeight: 0,
|
|
373
377
|
cssScrollHeight: 0
|
|
374
378
|
};
|
|
375
|
-
|
|
379
|
+
let titleHeight, itemHeight;
|
|
380
|
+
if (TARO_ENV === Taro.ENV_TYPE.WEB) {
|
|
381
|
+
titleHeight = 46 * scalePx.value + 16 * scalePx.value * 2;
|
|
382
|
+
itemHeight = 128 * scalePx.value;
|
|
383
|
+
} else {
|
|
384
|
+
titleHeight = Math.floor(46 * scalePx.value) + Math.floor(16 * scalePx.value) * 2;
|
|
385
|
+
itemHeight = Math.floor(128 * scalePx.value);
|
|
386
|
+
}
|
|
387
|
+
monthInfo.cssHeight = titleHeight + (monthInfo.monthData.length > 35 ? itemHeight * 6 : itemHeight * 5);
|
|
376
388
|
let cssScrollHeight = 0;
|
|
377
389
|
if (state.monthsData.length > 0) {
|
|
378
390
|
cssScrollHeight = state.monthsData[state.monthsData.length - 1].cssScrollHeight + state.monthsData[state.monthsData.length - 1].cssHeight;
|
|
@@ -478,13 +490,13 @@ const _sfc_main$1 = create$1({
|
|
|
478
490
|
let current = 0;
|
|
479
491
|
let lastCurrent = 0;
|
|
480
492
|
if (state.defaultData.length > 0) {
|
|
481
|
-
state.monthsData.forEach((item,
|
|
493
|
+
state.monthsData.forEach((item, index) => {
|
|
482
494
|
if (item.title == translate("monthTitle", state.defaultData[0], state.defaultData[1])) {
|
|
483
|
-
current =
|
|
495
|
+
current = index;
|
|
484
496
|
}
|
|
485
497
|
if (props.type == "range" || props.type == "week") {
|
|
486
498
|
if (item.title == translate("monthTitle", state.defaultData[3], state.defaultData[4])) {
|
|
487
|
-
lastCurrent =
|
|
499
|
+
lastCurrent = index;
|
|
488
500
|
}
|
|
489
501
|
}
|
|
490
502
|
});
|
|
@@ -502,9 +514,9 @@ const _sfc_main$1 = create$1({
|
|
|
502
514
|
[...state.currDate].forEach((item) => {
|
|
503
515
|
let dateArr = splitDate(item);
|
|
504
516
|
let current2 = state.currentIndex;
|
|
505
|
-
state.monthsData.forEach((item2,
|
|
517
|
+
state.monthsData.forEach((item2, index) => {
|
|
506
518
|
if (item2.title == translate("monthTitle", dateArr[0], dateArr[1])) {
|
|
507
|
-
current2 =
|
|
519
|
+
current2 = index;
|
|
508
520
|
}
|
|
509
521
|
});
|
|
510
522
|
chooseDay({ day: dateArr[2], type: "curr" }, state.monthsData[current2], true);
|
|
@@ -515,14 +527,12 @@ const _sfc_main$1 = create$1({
|
|
|
515
527
|
}
|
|
516
528
|
let lastItem = state.monthsData[state.monthsData.length - 1];
|
|
517
529
|
let containerHeight = lastItem.cssHeight + lastItem.cssScrollHeight;
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
viewHeight.value = months.value.clientHeight;
|
|
521
|
-
monthsPanel.value.style.height = `${containerHeight}px`;
|
|
522
|
-
months.value.scrollTop = state.monthsData[state.currentIndex].cssScrollHeight;
|
|
523
|
-
}
|
|
524
|
-
});
|
|
530
|
+
state.containerHeight = `${containerHeight}px`;
|
|
531
|
+
state.scrollTop = Math.ceil(state.monthsData[state.currentIndex].cssScrollHeight);
|
|
525
532
|
state.avgHeight = Math.floor(containerHeight / (monthsNum + 1));
|
|
533
|
+
if (months == null ? void 0 : months.value) {
|
|
534
|
+
viewHeight.value = months.value.clientHeight;
|
|
535
|
+
}
|
|
526
536
|
};
|
|
527
537
|
const scrollToDate = (date) => {
|
|
528
538
|
if (Utils.compareDate(date, state.propStartDate)) {
|
|
@@ -531,36 +541,23 @@ const _sfc_main$1 = create$1({
|
|
|
531
541
|
date = state.propEndDate;
|
|
532
542
|
}
|
|
533
543
|
let dateArr = splitDate(date);
|
|
534
|
-
state.monthsData.forEach((item,
|
|
544
|
+
state.monthsData.forEach((item, index) => {
|
|
535
545
|
if (item.title == translate("monthTitle", dateArr[0], dateArr[1])) {
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
if (flag >= 10) {
|
|
547
|
-
clearInterval(interval);
|
|
548
|
-
if (months.value) {
|
|
549
|
-
months.value.scrollTop = state.monthsData[index2].cssScrollHeight;
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
}, 40);
|
|
553
|
-
} else {
|
|
554
|
-
months.value.scrollTop = state.monthsData[index2].cssScrollHeight;
|
|
555
|
-
}
|
|
556
|
-
}
|
|
546
|
+
state.scrollTop += 1;
|
|
547
|
+
scrollWithAnimation.value = props.toDateAnimation;
|
|
548
|
+
requestAniFrame(() => {
|
|
549
|
+
setTimeout(() => {
|
|
550
|
+
state.scrollTop = state.monthsData[index].cssScrollHeight;
|
|
551
|
+
setTimeout(() => {
|
|
552
|
+
scrollWithAnimation.value = false;
|
|
553
|
+
}, 200);
|
|
554
|
+
}, 10);
|
|
555
|
+
});
|
|
557
556
|
}
|
|
558
557
|
});
|
|
559
558
|
};
|
|
560
559
|
const initPosition = () => {
|
|
561
|
-
|
|
562
|
-
months.value.scrollTop = state.monthsData[state.currentIndex].cssScrollHeight;
|
|
563
|
-
}
|
|
560
|
+
state.scrollTop = Math.ceil(state.monthsData[state.currentIndex].cssScrollHeight);
|
|
564
561
|
};
|
|
565
562
|
expose({
|
|
566
563
|
scrollToDate,
|
|
@@ -619,17 +616,6 @@ const _sfc_main$1 = create$1({
|
|
|
619
616
|
if (currentScrollTop < state.monthsData[current].cssScrollHeight) {
|
|
620
617
|
current -= 1;
|
|
621
618
|
}
|
|
622
|
-
} else {
|
|
623
|
-
const viewPosition = Math.round(currentScrollTop + viewHeight.value);
|
|
624
|
-
if (viewPosition < state.monthsData[current].cssScrollHeight + state.monthsData[current].cssHeight && currentScrollTop > state.monthsData[current - 1].cssScrollHeight) {
|
|
625
|
-
current -= 1;
|
|
626
|
-
}
|
|
627
|
-
if (current + 1 <= state.monthsNum && viewPosition >= state.monthsData[current + 1].cssScrollHeight + state.monthsData[current + 1].cssHeight) {
|
|
628
|
-
current += 1;
|
|
629
|
-
}
|
|
630
|
-
if (current >= 1 && currentScrollTop < state.monthsData[current - 1].cssScrollHeight) {
|
|
631
|
-
current -= 1;
|
|
632
|
-
}
|
|
633
619
|
}
|
|
634
620
|
if (state.currentIndex !== current) {
|
|
635
621
|
state.currentIndex = current;
|
|
@@ -643,7 +629,22 @@ const _sfc_main$1 = create$1({
|
|
|
643
629
|
initData();
|
|
644
630
|
};
|
|
645
631
|
onMounted(() => {
|
|
646
|
-
|
|
632
|
+
Taro.getSystemInfo({
|
|
633
|
+
success(res) {
|
|
634
|
+
let scale = 2;
|
|
635
|
+
let toFixed = 3;
|
|
636
|
+
if (TARO_ENV === Taro.ENV_TYPE.WEB) {
|
|
637
|
+
toFixed = 5;
|
|
638
|
+
let fontSize = document.documentElement.style.fontSize;
|
|
639
|
+
scale = Number((Number.parseInt(fontSize) / 40).toFixed(toFixed));
|
|
640
|
+
} else {
|
|
641
|
+
let screenWidth = res.screenWidth;
|
|
642
|
+
scale = Number((screenWidth / 750).toFixed(toFixed));
|
|
643
|
+
}
|
|
644
|
+
scalePx.value = scale;
|
|
645
|
+
initData();
|
|
646
|
+
}
|
|
647
|
+
});
|
|
647
648
|
});
|
|
648
649
|
watch(
|
|
649
650
|
() => props.defaultValue,
|
|
@@ -672,9 +673,7 @@ const _sfc_main$1 = create$1({
|
|
|
672
673
|
months
|
|
673
674
|
}, toRefs(state)), toRefs(props)), {
|
|
674
675
|
translate,
|
|
675
|
-
|
|
676
|
-
weeksPanel,
|
|
677
|
-
viewArea
|
|
676
|
+
scrollWithAnimation
|
|
678
677
|
});
|
|
679
678
|
}
|
|
680
679
|
});
|
|
@@ -691,39 +690,33 @@ const _hoisted_4 = {
|
|
|
691
690
|
key: 2,
|
|
692
691
|
class: "nut-calendar__header-subtitle"
|
|
693
692
|
};
|
|
694
|
-
const _hoisted_5 = {
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
const
|
|
699
|
-
|
|
700
|
-
class: "nut-calendar__panel"
|
|
701
|
-
};
|
|
702
|
-
const _hoisted_7 = { class: "nut-calendar__month-title" };
|
|
703
|
-
const _hoisted_8 = { class: "nut-calendar__days" };
|
|
704
|
-
const _hoisted_9 = ["onClick"];
|
|
705
|
-
const _hoisted_10 = { class: "nut-calendar__day-value" };
|
|
706
|
-
const _hoisted_11 = {
|
|
693
|
+
const _hoisted_5 = { class: "nut-calendar__weekdays" };
|
|
694
|
+
const _hoisted_6 = { class: "nut-calendar__month-title" };
|
|
695
|
+
const _hoisted_7 = { class: "nut-calendar__days" };
|
|
696
|
+
const _hoisted_8 = ["onClick"];
|
|
697
|
+
const _hoisted_9 = { class: "nut-calendar__day-value" };
|
|
698
|
+
const _hoisted_10 = {
|
|
707
699
|
key: 0,
|
|
708
700
|
class: "nut-calendar__day-tips nut-calendar__day-tips--top"
|
|
709
701
|
};
|
|
710
|
-
const
|
|
702
|
+
const _hoisted_11 = {
|
|
711
703
|
key: 1,
|
|
712
704
|
class: "nut-calendar__day-tips nut-calendar__day-tips--bottom"
|
|
713
705
|
};
|
|
714
|
-
const
|
|
706
|
+
const _hoisted_12 = {
|
|
715
707
|
key: 2,
|
|
716
708
|
class: "nut-calendar__day-tips--curr"
|
|
717
709
|
};
|
|
718
|
-
const
|
|
710
|
+
const _hoisted_13 = {
|
|
719
711
|
key: 4,
|
|
720
712
|
class: "nut-calendar__day-tip"
|
|
721
713
|
};
|
|
722
|
-
const
|
|
714
|
+
const _hoisted_14 = {
|
|
723
715
|
key: 0,
|
|
724
716
|
class: "nut-calendar__footer"
|
|
725
717
|
};
|
|
726
718
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
719
|
+
const _component_nut_scroll_view = resolveComponent("nut-scroll-view");
|
|
727
720
|
return openBlock(), createElementBlock("view", {
|
|
728
721
|
class: normalizeClass(["nut-calendar", {
|
|
729
722
|
"nut-calendar--nopop": !_ctx.poppable,
|
|
@@ -732,83 +725,102 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
732
725
|
}, [
|
|
733
726
|
createElementVNode("view", _hoisted_1, [
|
|
734
727
|
_ctx.showTitle ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.title || _ctx.translate("title")), 1)) : createCommentVNode("", true),
|
|
728
|
+
_cache[1] || (_cache[1] = createTextVNode()),
|
|
735
729
|
_ctx.showTopBtn ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
736
730
|
renderSlot(_ctx.$slots, "btn")
|
|
737
731
|
])) : createCommentVNode("", true),
|
|
732
|
+
_cache[2] || (_cache[2] = createTextVNode()),
|
|
738
733
|
_ctx.showSubTitle ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.yearMonthTitle), 1)) : createCommentVNode("", true),
|
|
734
|
+
_cache[3] || (_cache[3] = createTextVNode()),
|
|
739
735
|
createElementVNode("view", _hoisted_5, [
|
|
740
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item,
|
|
736
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index) => {
|
|
741
737
|
return openBlock(), createElementBlock("view", {
|
|
742
|
-
key:
|
|
738
|
+
key: index,
|
|
743
739
|
class: normalizeClass(["nut-calendar__weekday", { weekend: item.weekend }])
|
|
744
740
|
}, toDisplayString(item.day), 3);
|
|
745
741
|
}), 128))
|
|
746
|
-
]
|
|
742
|
+
])
|
|
747
743
|
]),
|
|
748
|
-
|
|
744
|
+
_cache[10] || (_cache[10] = createTextVNode()),
|
|
745
|
+
createVNode(_component_nut_scroll_view, {
|
|
749
746
|
ref: "months",
|
|
747
|
+
"scroll-top": _ctx.scrollTop,
|
|
748
|
+
"scroll-y": true,
|
|
750
749
|
class: "nut-calendar__content",
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
750
|
+
"scroll-with-animation": _ctx.scrollWithAnimation,
|
|
751
|
+
onScroll: _ctx.mothsViewScroll
|
|
752
|
+
}, {
|
|
753
|
+
default: withCtx(() => [
|
|
754
754
|
createElementVNode("view", {
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
style: normalizeStyle({ transform: `translateY(${_ctx.translateY}px)` })
|
|
755
|
+
class: "nut-calendar__panel",
|
|
756
|
+
style: normalizeStyle({ height: _ctx.containerHeight })
|
|
758
757
|
}, [
|
|
759
|
-
(
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
758
|
+
createElementVNode("view", {
|
|
759
|
+
class: "nut-calendar__body",
|
|
760
|
+
style: normalizeStyle({ transform: `translateY(${_ctx.translateY}px)` })
|
|
761
|
+
}, [
|
|
762
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.compConthsData, (month, index) => {
|
|
763
|
+
return openBlock(), createElementBlock("view", {
|
|
764
|
+
key: index,
|
|
765
|
+
class: "nut-calendar__month"
|
|
766
|
+
}, [
|
|
767
|
+
createElementVNode("view", _hoisted_6, toDisplayString(month.title), 1),
|
|
768
|
+
_cache[9] || (_cache[9] = createTextVNode()),
|
|
769
|
+
createElementVNode("view", _hoisted_7, [
|
|
770
|
+
createElementVNode("view", {
|
|
771
|
+
class: normalizeClass(["nut-calendar__days-item", _ctx.type === "range" ? "nut-calendar__days-item--range" : ""])
|
|
772
|
+
}, [
|
|
773
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(month.monthData, (day, i) => {
|
|
774
|
+
return openBlock(), createElementBlock("view", {
|
|
775
|
+
key: i,
|
|
776
|
+
class: normalizeClass(["nut-calendar__day", _ctx.getClass(day, month, i)]),
|
|
777
|
+
onClick: ($event) => _ctx.chooseDay(day, month)
|
|
778
|
+
}, [
|
|
779
|
+
createElementVNode("view", _hoisted_9, [
|
|
780
|
+
renderSlot(_ctx.$slots, "day", {
|
|
781
|
+
date: day.type == "curr" ? day : ""
|
|
782
|
+
}, () => [
|
|
783
|
+
createTextVNode(toDisplayString(day.type == "curr" ? day.day : ""), 1)
|
|
784
|
+
])
|
|
785
|
+
]),
|
|
786
|
+
_cache[4] || (_cache[4] = createTextVNode()),
|
|
787
|
+
_ctx.topInfo ? (openBlock(), createElementBlock("view", _hoisted_10, [
|
|
788
|
+
renderSlot(_ctx.$slots, "top-info", {
|
|
789
|
+
date: day.type == "curr" ? day : ""
|
|
790
|
+
})
|
|
791
|
+
])) : createCommentVNode("", true),
|
|
792
|
+
_cache[5] || (_cache[5] = createTextVNode()),
|
|
793
|
+
_ctx.bottomInfo ? (openBlock(), createElementBlock("view", _hoisted_11, [
|
|
794
|
+
renderSlot(_ctx.$slots, "bottom-info", {
|
|
795
|
+
date: day.type == "curr" ? day : ""
|
|
796
|
+
})
|
|
797
|
+
])) : createCommentVNode("", true),
|
|
798
|
+
_cache[6] || (_cache[6] = createTextVNode()),
|
|
799
|
+
!_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (openBlock(), createElementBlock("view", _hoisted_12, toDisplayString(_ctx.translate("today")), 1)) : createCommentVNode("", true),
|
|
800
|
+
_cache[7] || (_cache[7] = createTextVNode()),
|
|
801
|
+
_ctx.isStartTip(day, month) ? (openBlock(), createElementBlock("view", {
|
|
802
|
+
key: 3,
|
|
803
|
+
class: normalizeClass(["nut-calendar__day-tip", { "nut-calendar__day-tips--top": _ctx.rangeTip() }])
|
|
804
|
+
}, toDisplayString(_ctx.startText || _ctx.translate("start")), 3)) : createCommentVNode("", true),
|
|
805
|
+
_cache[8] || (_cache[8] = createTextVNode()),
|
|
806
|
+
_ctx.isEndTip(day, month) ? (openBlock(), createElementBlock("view", _hoisted_13, toDisplayString(_ctx.endText || _ctx.translate("end")), 1)) : createCommentVNode("", true)
|
|
807
|
+
], 10, _hoisted_8);
|
|
808
|
+
}), 128))
|
|
809
|
+
], 2)
|
|
810
|
+
])
|
|
811
|
+
]);
|
|
812
|
+
}), 128))
|
|
813
|
+
], 4)
|
|
804
814
|
], 4)
|
|
805
|
-
],
|
|
806
|
-
|
|
807
|
-
|
|
815
|
+
]),
|
|
816
|
+
_: 3
|
|
817
|
+
}, 8, ["scroll-top", "scroll-with-animation", "onScroll"]),
|
|
818
|
+
_cache[11] || (_cache[11] = createTextVNode()),
|
|
819
|
+
_ctx.poppable && !_ctx.isAutoBackFill ? (openBlock(), createElementBlock("view", _hoisted_14, [
|
|
808
820
|
renderSlot(_ctx.$slots, "footer-info", { date: _ctx.chooseData }, () => [
|
|
809
821
|
createElementVNode("view", {
|
|
810
822
|
class: "nut-calendar__confirm",
|
|
811
|
-
onClick: _cache[
|
|
823
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.confirm && _ctx.confirm(...args))
|
|
812
824
|
}, toDisplayString(_ctx.confirmText || _ctx.translate("confirm")), 1)
|
|
813
825
|
])
|
|
814
826
|
])) : createCommentVNode("", true)
|
|
@@ -948,8 +960,16 @@ const _sfc_main = create({
|
|
|
948
960
|
emit("select", param);
|
|
949
961
|
};
|
|
950
962
|
const opened = () => {
|
|
951
|
-
var _a;
|
|
952
|
-
(
|
|
963
|
+
var _a, _b, _c, _d;
|
|
964
|
+
if (props.defaultValue) {
|
|
965
|
+
if (Array.isArray(props.defaultValue)) {
|
|
966
|
+
if ((_a = props.defaultValue) == null ? void 0 : _a.length) {
|
|
967
|
+
(_c = calendarRef.value) == null ? void 0 : _c.scrollToDate((_b = props.defaultValue) == null ? void 0 : _b[0]);
|
|
968
|
+
}
|
|
969
|
+
} else {
|
|
970
|
+
(_d = calendarRef.value) == null ? void 0 : _d.scrollToDate(props.defaultValue);
|
|
971
|
+
}
|
|
972
|
+
}
|
|
953
973
|
};
|
|
954
974
|
return {
|
|
955
975
|
visible,
|
|
@@ -981,6 +1001,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
981
1001
|
}, _ctx.$attrs, {
|
|
982
1002
|
style: { height: "85vh" },
|
|
983
1003
|
"lock-scroll": _ctx.lockScroll,
|
|
1004
|
+
"catch-move": _ctx.lockScroll,
|
|
1005
|
+
"destroy-on-close": false,
|
|
984
1006
|
onOpened: _ctx.opened
|
|
985
1007
|
}), {
|
|
986
1008
|
default: withCtx(() => [
|
|
@@ -1053,7 +1075,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1053
1075
|
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "default-value", "start-date", "end-date", "confirm-text", "start-text", "end-text", "show-today", "show-title", "show-sub-title", "to-date-animation", "first-day-of-week", "disabled-date", "onUpdate", "onClose", "onChoose", "onSelect"])
|
|
1054
1076
|
]),
|
|
1055
1077
|
_: 3
|
|
1056
|
-
}, 16, ["visible", "lock-scroll", "onOpened"])) : (openBlock(), createBlock(_component_nut_calendar_item, {
|
|
1078
|
+
}, 16, ["visible", "lock-scroll", "catch-move", "onOpened"])) : (openBlock(), createBlock(_component_nut_calendar_item, {
|
|
1057
1079
|
key: 1,
|
|
1058
1080
|
ref: "calendarRef",
|
|
1059
1081
|
type: _ctx.type,
|
|
@@ -1072,7 +1094,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1072
1094
|
"show-today": _ctx.showToday,
|
|
1073
1095
|
"first-day-of-week": _ctx.firstDayOfWeek,
|
|
1074
1096
|
"disabled-date": _ctx.disabledDate,
|
|
1075
|
-
onUpdate: _ctx.update,
|
|
1076
1097
|
onClose: _ctx.close,
|
|
1077
1098
|
onChoose: _ctx.choose,
|
|
1078
1099
|
onSelect: _ctx.select
|
|
@@ -1111,9 +1132,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1111
1132
|
]),
|
|
1112
1133
|
key: "3"
|
|
1113
1134
|
} : void 0
|
|
1114
|
-
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "show-title", "show-sub-title", "to-date-animation", "show-today", "first-day-of-week", "disabled-date", "
|
|
1135
|
+
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "show-title", "show-sub-title", "to-date-animation", "show-today", "first-day-of-week", "disabled-date", "onClose", "onChoose", "onSelect"]));
|
|
1115
1136
|
}
|
|
1116
|
-
const
|
|
1137
|
+
const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
1117
1138
|
export {
|
|
1118
|
-
|
|
1139
|
+
index_taro as default
|
|
1119
1140
|
};
|