@nutui/nutui 3.3.1 → 4.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/{nutui.es.js → nutui.js} +3863 -3683
- package/dist/{nutui.umd.js → nutui.umd.cjs} +3776 -3703
- package/dist/packages/_es/ActionSheet.js +72 -65
- package/dist/packages/_es/Address.js +77 -72
- package/dist/packages/_es/AddressList.js +41 -34
- package/dist/packages/_es/Animate.js +8 -6
- package/dist/packages/_es/Audio.js +28 -23
- package/dist/packages/_es/AudioOperate.js +12 -6
- package/dist/packages/_es/Avatar.js +15 -64
- package/dist/packages/_es/AvatarGroup.js +7 -5
- package/dist/packages/_es/{BackTop.js → Backtop.js} +20 -22
- package/dist/packages/_es/Badge.js +9 -7
- package/dist/packages/_es/Barrage.js +13 -12
- package/dist/packages/_es/Button.js +14 -33
- package/dist/packages/_es/Calendar.js +15 -9
- package/dist/packages/_es/CalendarItem.js +9 -6
- package/dist/packages/_es/Card.js +14 -5
- package/dist/packages/_es/Cascader.js +31 -16
- package/dist/packages/_es/Category.js +10 -10
- package/dist/packages/_es/CategoryPane.js +22 -20
- package/dist/packages/_es/Cell.js +57 -60
- package/dist/packages/_es/CellGroup.js +7 -5
- package/dist/packages/_es/Checkbox.js +26 -40
- package/dist/packages/_es/CheckboxGroup.js +8 -6
- package/dist/packages/_es/CircleProgress.js +12 -10
- package/dist/packages/_es/Col.js +7 -5
- package/dist/packages/_es/Collapse.js +27 -47
- package/dist/packages/_es/CollapseItem.js +71 -83
- package/dist/packages/_es/Comment.js +33 -36
- package/dist/packages/_es/ConfigProvider.js +23 -4
- package/dist/packages/_es/{CountDown.js → Countdown.js} +8 -6
- package/dist/packages/_es/{CountUp.js → Countup.js} +21 -19
- package/dist/packages/_es/DatePicker.js +31 -29
- package/dist/packages/_es/Dialog.js +66 -46
- package/dist/packages/_es/Divider.js +7 -5
- package/dist/packages/_es/Drag.js +8 -6
- package/dist/packages/_es/Ecard.js +17 -11
- package/dist/packages/_es/Elevator.js +23 -21
- package/dist/packages/_es/Ellipsis.js +11 -9
- package/dist/packages/_es/Empty.js +10 -8
- package/dist/packages/_es/FixedNav.js +84 -75
- package/dist/packages/_es/Form.js +149 -140
- package/dist/packages/_es/FormItem.js +14 -7
- package/dist/packages/_es/Grid.js +7 -5
- package/dist/packages/_es/GridItem.js +19 -42
- package/dist/packages/_es/Icon.js +8 -44
- package/dist/packages/_es/Image.js +22 -10
- package/dist/packages/_es/ImagePreview.js +72 -55
- package/dist/packages/_es/Indicator.js +7 -5
- package/dist/packages/_es/InfiniteLoading.js +56 -124
- package/dist/packages/_es/Input.js +57 -186
- package/dist/packages/_es/InputNumber.js +43 -35
- package/dist/packages/_es/Invoice.js +29 -10
- package/dist/packages/_es/Layout.js +5 -3
- package/dist/packages/_es/List.js +7 -5
- package/dist/packages/_es/Menu.js +22 -13
- package/dist/packages/_es/MenuItem.js +25 -24
- package/dist/packages/_es/Navbar.js +47 -37
- package/dist/packages/_es/{NoticeBar.js → Noticebar.js} +52 -65
- package/dist/packages/_es/Notify.js +12 -7
- package/dist/packages/_es/NumberKeyboard.js +123 -112
- package/dist/packages/_es/{OverLay.js → Overlay.js} +7 -5
- package/dist/packages/_es/Pagination.js +7 -5
- package/dist/packages/_es/Picker.js +307 -304
- package/dist/packages/_es/Popover.js +34 -24
- package/dist/packages/_es/Popup.js +9 -152
- package/dist/packages/_es/Price.js +9 -12
- package/dist/packages/_es/Progress.js +18 -20
- package/dist/packages/_es/PullRefresh.js +222 -0
- package/dist/packages/_es/Radio.js +10 -103
- package/dist/packages/_es/RadioGroup.js +8 -44
- package/dist/packages/_es/Range.js +22 -20
- package/dist/packages/_es/Rate.js +153 -166
- package/dist/packages/_es/Row.js +7 -5
- package/dist/packages/_es/{SearchBar.js → Searchbar.js} +16 -15
- package/dist/packages/_es/ShortPassword.js +53 -121
- package/dist/packages/_es/{SideNavBar.js → SideNavbar.js} +11 -9
- package/dist/packages/_es/{SideNavBarItem.js → SideNavbarItem.js} +12 -10
- package/dist/packages/_es/Signature.js +12 -6
- package/dist/packages/_es/Skeleton.js +95 -85
- package/dist/packages/_es/Sku.js +28 -24
- package/dist/packages/_es/Step.js +28 -41
- package/dist/packages/_es/Steps.js +5 -3
- package/dist/packages/_es/Sticky.js +9 -150
- package/dist/packages/_es/{SubSideNavBar.js → SubSideNavbar.js} +18 -16
- package/dist/packages/_es/Swipe.js +8 -6
- package/dist/packages/_es/Swiper.js +121 -61
- package/dist/packages/_es/SwiperItem.js +8 -6
- package/dist/packages/_es/Switch.js +16 -28
- package/dist/packages/_es/TabPane.js +9 -7
- package/dist/packages/_es/Tabbar.js +21 -26
- package/dist/packages/_es/TabbarItem.js +39 -83
- package/dist/packages/_es/Table.js +15 -11
- package/dist/packages/_es/Tabs.js +33 -25
- package/dist/packages/_es/Tag.js +15 -9
- package/dist/packages/_es/{TextArea.js → Textarea.js} +8 -6
- package/dist/packages/_es/TimeDetail.js +12 -10
- package/dist/packages/_es/TimePannel.js +9 -7
- package/dist/packages/_es/TimeSelect.js +19 -11
- package/dist/packages/_es/Toast.js +25 -26
- package/dist/packages/_es/Tour.js +270 -0
- package/dist/packages/_es/TrendArrow.js +24 -43
- package/dist/packages/_es/Uploader.js +98 -61
- package/dist/packages/_es/Video.js +24 -22
- package/dist/packages/_es/{WaterMark.js → Watermark.js} +7 -5
- package/dist/packages/_es/{plugin-vue_export-helper.js → _plugin-vue_export-helper.bf57b04e.js} +5 -3
- package/dist/packages/_es/{common.js → common.4b8c0eb2.js} +7 -11
- package/dist/packages/_es/{component.js → component.fb9ce7ad.js} +19 -2
- package/dist/packages/_es/index.1be0d1a5.js +35 -0
- package/dist/packages/_es/{index5.js → index.3dd88014.js} +72 -70
- package/dist/packages/_es/index.4ed42c18.js +239 -0
- package/dist/packages/_es/{index.js → index.51da6a3b.js} +4 -2
- package/dist/packages/_es/{index3.js → index.617ba243.js} +4 -2
- package/dist/packages/_es/{index4.js → index.983240fc.js} +4 -2
- package/dist/packages/_es/{index2.js → index.af02c42d.js} +4 -2
- package/dist/packages/_es/index.vue_vue_type_script_lang.43efbcd1.js +102 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang.6e735bb8.js +50 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang.ccc15054.js +156 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang.de4367bf.js +12 -0
- package/dist/packages/_es/{interceptor.js → interceptor.ba45688c.js} +5 -3
- package/dist/packages/_es/{mountComponent.js → mountComponent.dddeb43c.js} +5 -3
- package/dist/packages/_es/{pxCheck.js → pxCheck.09969b22.js} +4 -2
- package/dist/packages/_es/{raf.js → raf.42b42f63.js} +14 -3
- package/dist/packages/_es/renderIcon.f32ed340.js +14 -0
- package/dist/packages/_es/style.css +2 -2
- package/dist/packages/actionsheet/index.js +3 -0
- package/dist/packages/actionsheet/index.scss +16 -32
- package/dist/packages/address/index.js +4 -0
- package/dist/packages/address/index.scss +28 -52
- package/dist/packages/addresslist/index.js +2 -0
- package/dist/packages/addresslist/index.scss +3 -3
- package/dist/packages/animate/index.js +1 -0
- package/dist/packages/animate/index.scss +1 -1
- package/dist/packages/audio/index.js +2 -0
- package/dist/packages/audio/index.scss +9 -9
- package/dist/packages/audiooperate/index.js +2 -0
- package/dist/packages/avatar/index.js +1 -0
- package/dist/packages/avatar/index.scss +1 -12
- package/dist/packages/avatargroup/index.js +1 -0
- package/dist/packages/backtop/index.js +1 -0
- package/dist/packages/badge/index.js +1 -0
- package/dist/packages/badge/index.scss +17 -17
- package/dist/packages/barrage/index.js +1 -0
- package/dist/packages/barrage/index.scss +2 -22
- package/dist/packages/button/index.js +1 -0
- package/dist/packages/button/index.scss +2 -1
- package/dist/packages/calendar/index.js +4 -0
- package/dist/packages/calendar/index.scss +39 -43
- package/dist/packages/calendaritem/index.js +1 -0
- package/dist/packages/card/index.js +3 -0
- package/dist/packages/cascader/index.js +6 -0
- package/dist/packages/cascader/index.scss +1 -1
- package/dist/packages/category/index.js +1 -0
- package/dist/packages/categorypane/index.js +1 -0
- package/dist/packages/categorypane/index.scss +2 -2
- package/dist/packages/cell/index.js +1 -0
- package/dist/packages/cellgroup/index.js +1 -0
- package/dist/packages/checkbox/index.js +1 -0
- package/dist/packages/checkboxgroup/index.js +1 -0
- package/dist/packages/circleprogress/index.js +1 -0
- package/dist/packages/circleprogress/index.scss +5 -5
- package/dist/packages/col/index.js +1 -0
- package/dist/packages/collapse/index.js +1 -0
- package/dist/packages/collapseitem/index.js +1 -0
- package/dist/packages/collapseitem/index.scss +54 -77
- package/dist/packages/comment/index.js +2 -0
- package/dist/packages/comment/index.scss +1 -3
- package/dist/packages/configprovider/index.js +1 -0
- package/dist/packages/countdown/index.js +1 -0
- package/dist/packages/countup/index.js +1 -0
- package/dist/packages/countup/index.scss +8 -38
- package/dist/packages/datepicker/index.js +4 -0
- package/dist/packages/datepicker/index.scss +1 -1
- package/dist/packages/dialog/index.js +4 -0
- package/dist/packages/divider/index.js +1 -0
- package/dist/packages/drag/index.js +1 -0
- package/dist/packages/drag/index.scss +1 -1
- package/dist/packages/ecard/index.js +2 -0
- package/dist/packages/elevator/index.js +1 -0
- package/dist/packages/ellipsis/index.js +1 -0
- package/dist/packages/ellipsis/index.scss +3 -3
- package/dist/packages/empty/index.js +1 -0
- package/dist/packages/empty/index.scss +2 -2
- package/dist/packages/fixednav/index.js +2 -0
- package/dist/packages/fixednav/index.scss +5 -5
- package/dist/packages/form/index.js +2 -0
- package/dist/packages/formitem/index.js +2 -0
- package/dist/packages/grid/index.js +1 -0
- package/dist/packages/griditem/index.js +1 -0
- package/dist/packages/icon/index.js +1 -0
- package/dist/packages/icon/index.scss +1 -131
- package/dist/packages/image/index.js +1 -0
- package/dist/packages/imagepreview/index.js +6 -0
- package/dist/packages/imagepreview/index.scss +4 -4
- package/dist/packages/indicator/index.js +1 -0
- package/dist/packages/infiniteloading/index.js +1 -0
- package/dist/packages/infiniteloading/index.scss +15 -41
- package/dist/packages/input/index.js +1 -0
- package/dist/packages/input/index.scss +20 -18
- package/dist/packages/inputnumber/index.js +1 -0
- package/dist/packages/inputnumber/index.scss +4 -2
- package/dist/packages/invoice/index.js +8 -0
- package/dist/packages/layout/index.js +1 -0
- package/dist/packages/list/index.js +1 -0
- package/dist/packages/locale/index.d.ts +1 -1
- package/dist/packages/locale/lang/baseLang.d.ts +5 -0
- package/dist/packages/locale/lang/baseLang.ff3ed8bc.js +10 -0
- package/dist/packages/locale/lang/en-US.d.ts +5 -0
- package/dist/packages/locale/lang/en-US.js +61 -51
- package/dist/packages/locale/lang/id-ID.d.ts +5 -0
- package/dist/packages/locale/lang/id-ID.js +61 -51
- package/dist/packages/locale/lang/index.js +25 -38
- package/dist/packages/locale/lang/zh-CN.d.ts +5 -0
- package/dist/packages/locale/lang/zh-CN.js +60 -50
- package/dist/packages/locale/lang/zh-TW.d.ts +5 -0
- package/dist/packages/locale/lang/zh-TW.js +60 -50
- package/dist/packages/menu/index.js +1 -0
- package/dist/packages/menu/index.scss +1 -0
- package/dist/packages/menuitem/index.js +3 -0
- package/dist/packages/menuitem/index.scss +4 -2
- package/dist/packages/navbar/index.js +1 -0
- package/dist/packages/navbar/index.scss +5 -1
- package/dist/packages/noticebar/index.js +1 -0
- package/dist/packages/noticebar/index.scss +15 -16
- package/dist/packages/notify/index.js +3 -0
- package/dist/packages/notify/index.scss +0 -20
- package/dist/packages/numberkeyboard/index.js +3 -0
- package/dist/packages/numberkeyboard/index.scss +45 -49
- package/dist/packages/overlay/index.js +1 -0
- package/dist/packages/pagination/index.js +1 -0
- package/dist/packages/picker/index.js +3 -0
- package/dist/packages/picker/index.scss +19 -56
- package/dist/packages/popover/index.js +3 -0
- package/dist/packages/popover/index.scss +7 -0
- package/dist/packages/popup/index.js +2 -0
- package/dist/packages/popup/index.scss +6 -6
- package/dist/packages/price/index.js +1 -0
- package/dist/packages/price/index.scss +0 -9
- package/dist/packages/progress/index.js +1 -0
- package/dist/packages/pullrefresh/index.js +1 -0
- package/dist/packages/pullrefresh/index.scss +30 -0
- package/dist/packages/radio/index.js +1 -0
- package/dist/packages/radiogroup/index.js +1 -0
- package/dist/packages/radiogroup/index.scss +1 -1
- package/dist/packages/range/index.js +1 -0
- package/dist/packages/range/index.scss +4 -4
- package/dist/packages/rate/index.js +1 -0
- package/dist/packages/row/index.js +1 -0
- package/dist/packages/searchbar/index.js +1 -0
- package/dist/packages/shortpassword/index.js +3 -0
- package/dist/packages/shortpassword/index.scss +15 -122
- package/dist/packages/sidenavbar/index.js +1 -0
- package/dist/packages/sidenavbar/index.scss +1 -1
- package/dist/packages/sidenavbaritem/index.js +1 -0
- package/dist/packages/sidenavbaritem/index.scss +3 -2
- package/dist/packages/signature/index.js +2 -0
- package/dist/packages/skeleton/index.js +2 -0
- package/dist/packages/skeleton/index.scss +11 -11
- package/dist/packages/sku/index.js +5 -0
- package/dist/packages/step/index.js +1 -0
- package/dist/packages/step/index.scss +7 -8
- package/dist/packages/steps/index.js +1 -0
- package/dist/packages/sticky/index.js +1 -0
- package/dist/packages/subsidenavbar/index.js +1 -0
- package/dist/packages/subsidenavbar/index.scss +2 -2
- package/dist/packages/swipe/index.js +1 -0
- package/dist/packages/swiper/index.js +1 -0
- package/dist/packages/swiperitem/index.js +1 -0
- package/dist/packages/switch/index.js +1 -0
- package/dist/packages/switch/index.scss +5 -15
- package/dist/packages/tabbar/index.js +1 -0
- package/dist/packages/tabbaritem/index.js +2 -0
- package/dist/packages/tabbaritem/index.scss +0 -29
- package/dist/packages/table/index.js +1 -0
- package/dist/packages/tabpane/index.js +1 -0
- package/dist/packages/tabpane/index.scss +2 -2
- package/dist/packages/tabs/index.js +2 -0
- package/dist/packages/tabs/index.scss +4 -4
- package/dist/packages/tag/index.js +1 -0
- package/dist/packages/textarea/index.js +1 -0
- package/dist/packages/textarea/index.scss +1 -1
- package/dist/packages/timedetail/index.js +1 -0
- package/dist/packages/timedetail/index.scss +2 -2
- package/dist/packages/timepannel/index.js +1 -0
- package/dist/packages/timepannel/index.scss +2 -2
- package/dist/packages/timeselect/index.js +3 -0
- package/dist/packages/timeselect/index.scss +2 -2
- package/dist/packages/toast/index.js +1 -0
- package/dist/packages/tour/index.js +4 -0
- package/dist/packages/tour/index.scss +78 -0
- package/dist/packages/trendarrow/index.js +1 -0
- package/dist/packages/trendarrow/index.scss +1 -1
- package/dist/packages/uploader/index.js +3 -0
- package/dist/packages/uploader/index.scss +2 -0
- package/dist/packages/video/index.js +1 -0
- package/dist/packages/video/index.scss +11 -17
- package/dist/packages/watermark/index.js +1 -0
- package/dist/smartips/attributes.json +215 -447
- package/dist/smartips/tags.json +116 -171
- package/dist/smartips/web-types.json +382 -906
- package/dist/style.css +1 -1
- package/dist/style.js +4 -0
- package/dist/styles/animation/index.scss +0 -1
- package/dist/styles/css-variables.scss +920 -0
- package/dist/styles/themes/default.scss +54 -52
- package/dist/styles/themes/jdb.scss +54 -52
- package/dist/styles/themes/jddkh.scss +54 -52
- package/dist/styles/themes/jdt.scss +54 -52
- package/dist/styles/variables-jdb.scss +3 -3
- package/dist/styles/variables-jddkh.scss +3 -3
- package/dist/styles/variables-jdt.scss +3 -3
- package/dist/styles/variables-var.scss +854 -0
- package/dist/styles/variables.scss +7 -7
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +28 -20
- package/dist/types/__VUE/address/address-list.d.ts +30 -0
- package/dist/types/__VUE/address/index.vue.d.ts +33 -72
- package/dist/types/__VUE/address/type.d.ts +18 -0
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +3 -14
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +3 -14
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +3 -14
- package/dist/types/__VUE/addresslist/index.vue.d.ts +8 -9
- package/dist/types/__VUE/animate/index.vue.d.ts +16 -15
- package/dist/types/__VUE/animate/type.d.ts +2 -6
- package/dist/types/__VUE/audio/index.vue.d.ts +19 -17
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +12 -7
- package/dist/types/__VUE/avatar/index.vue.d.ts +14 -48
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +8 -9
- package/dist/types/__VUE/backtop/index.vue.d.ts +8 -9
- package/dist/types/__VUE/badge/index.vue.d.ts +9 -10
- package/dist/types/__VUE/barrage/index.vue.d.ts +7 -8
- package/dist/types/__VUE/button/index.vue.d.ts +21 -47
- package/dist/types/__VUE/button/type.d.ts +3 -7
- package/dist/types/__VUE/calendar/index.vue.d.ts +13 -13
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +23 -22
- package/dist/types/__VUE/calendaritem/type.d.ts +70 -0
- package/dist/types/__VUE/card/index.vue.d.ts +6 -7
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +10 -9
- package/dist/types/__VUE/cascader/helper.d.ts +0 -4
- package/dist/types/__VUE/cascader/index.vue.d.ts +12 -11
- package/dist/types/__VUE/cascader/tree.d.ts +0 -4
- package/dist/types/__VUE/cascader/types.d.ts +6 -10
- package/dist/types/__VUE/category/index.vue.d.ts +18 -14
- package/dist/types/__VUE/categorypane/index.vue.d.ts +23 -14
- package/dist/types/__VUE/cell/index.vue.d.ts +13 -32
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +6 -7
- package/dist/types/__VUE/checkbox/common.d.ts +2 -59
- package/dist/types/__VUE/checkbox/index.vue.d.ts +6 -113
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +6 -7
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +18 -14
- package/dist/types/__VUE/col/index.vue.d.ts +6 -7
- package/dist/types/__VUE/collapse/index.vue.d.ts +16 -81
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +52 -24
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +7 -17
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +3 -14
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +29 -21
- package/dist/types/__VUE/comment/index.vue.d.ts +29 -19
- package/dist/types/__VUE/configprovider/common.d.ts +4 -4
- package/dist/types/__VUE/configprovider/index.vue.d.ts +15 -7
- package/dist/types/__VUE/countdown/index.vue.d.ts +11 -12
- package/dist/types/__VUE/countdown/util.d.ts +1 -5
- package/dist/types/__VUE/countup/index.vue.d.ts +13 -14
- package/dist/types/__VUE/datepicker/index.vue.d.ts +32 -168
- package/dist/types/__VUE/datepicker/type.d.ts +2 -6
- package/dist/types/__VUE/dialog/index.d.ts +0 -4
- package/dist/types/__VUE/dialog/index.vue.d.ts +19 -16
- package/dist/types/__VUE/divider/index.vue.d.ts +6 -7
- package/dist/types/__VUE/drag/index.vue.d.ts +6 -7
- package/dist/types/__VUE/ecard/index.vue.d.ts +15 -11
- package/dist/types/__VUE/elevator/index.vue.d.ts +14 -13
- package/dist/types/__VUE/elevator/type.d.ts +5 -0
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +14 -9
- package/dist/types/__VUE/empty/index.vue.d.ts +6 -7
- package/dist/types/__VUE/fixednav/common.d.ts +2 -5
- package/dist/types/__VUE/fixednav/index.vue.d.ts +10 -11
- package/dist/types/__VUE/form/common.d.ts +2 -6
- package/dist/types/__VUE/form/index.vue.d.ts +7 -8
- package/dist/types/__VUE/form/types.d.ts +3 -7
- package/dist/types/__VUE/formitem/common.d.ts +0 -0
- package/dist/types/__VUE/formitem/index.vue.d.ts +11 -11
- package/dist/types/__VUE/formitem/types.d.ts +0 -4
- package/dist/types/__VUE/grid/common.d.ts +2 -20
- package/dist/types/__VUE/grid/index.vue.d.ts +7 -23
- package/dist/types/__VUE/griditem/index.vue.d.ts +9 -42
- package/dist/types/__VUE/icon/index.vue.d.ts +6 -68
- package/dist/types/__VUE/image/index.vue.d.ts +15 -17
- package/dist/types/__VUE/image/type.d.ts +2 -6
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +10 -9
- package/dist/types/__VUE/imagepreview/index.d.ts +1 -5
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +14 -12
- package/dist/types/__VUE/imagepreview/types.d.ts +2 -6
- package/dist/types/__VUE/indicator/index.vue.d.ts +7 -8
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +18 -57
- package/dist/types/__VUE/input/index.vue.d.ts +42 -146
- package/dist/types/__VUE/input/type.d.ts +5 -9
- package/dist/types/__VUE/input/util.d.ts +0 -4
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +10 -29
- package/dist/types/__VUE/invoice/index.vue.d.ts +9 -10
- package/dist/types/__VUE/invoice/types.d.ts +6 -0
- package/dist/types/__VUE/layout/index.vue.d.ts +6 -7
- package/dist/types/__VUE/list/index.vue.d.ts +12 -12
- package/dist/types/__VUE/menu/index.vue.d.ts +10 -11
- package/dist/types/__VUE/menuitem/index.vue.d.ts +13 -21
- package/dist/types/__VUE/menuitem/type.d.ts +1 -5
- package/dist/types/__VUE/navbar/index.vue.d.ts +20 -22
- package/dist/types/__VUE/noticebar/index.vue.d.ts +38 -30
- package/dist/types/__VUE/notify/index.d.ts +0 -4
- package/dist/types/__VUE/notify/index.vue.d.ts +8 -9
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +27 -54
- package/dist/types/__VUE/overlay/index.vue.d.ts +10 -10
- package/dist/types/__VUE/pagination/index.vue.d.ts +6 -7
- package/dist/types/__VUE/picker/Column.vue.d.ts +41 -35
- package/dist/types/__VUE/picker/baseProps.d.ts +55 -0
- package/dist/types/__VUE/picker/common.d.ts +555 -0
- package/dist/types/__VUE/picker/doc.en.d.ts +88 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +60 -236
- package/dist/types/__VUE/picker/types.d.ts +1 -5
- package/dist/types/__VUE/picker/usePicker.d.ts +17 -0
- package/dist/types/__VUE/popover/index.vue.d.ts +24 -20
- package/dist/types/__VUE/popover/type.d.ts +5 -8
- package/dist/types/__VUE/popup/common.d.ts +2 -6
- package/dist/types/__VUE/popup/index.vue.d.ts +9 -10
- package/dist/types/__VUE/popup/props.d.ts +0 -4
- package/dist/types/__VUE/price/index.vue.d.ts +9 -19
- package/dist/types/__VUE/progress/index.vue.d.ts +9 -28
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +126 -0
- package/dist/types/__VUE/radio/index.vue.d.ts +9 -46
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +9 -10
- package/dist/types/__VUE/range/index.vue.d.ts +22 -21
- package/dist/types/__VUE/range/type.d.ts +1 -5
- package/dist/types/__VUE/rate/index.vue.d.ts +28 -55
- package/dist/types/__VUE/row/index.vue.d.ts +6 -7
- package/dist/types/__VUE/searchbar/index.vue.d.ts +25 -21
- package/dist/types/__VUE/searchbar/type.d.ts +1 -5
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +10 -44
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +7 -7
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +6 -7
- package/dist/types/__VUE/signature/index.vue.d.ts +13 -9
- package/dist/types/__VUE/skeleton/common.d.ts +3 -6
- package/dist/types/__VUE/skeleton/index.vue.d.ts +8 -9
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +3 -14
- package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +9 -19
- package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +10 -15
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +6 -17
- package/dist/types/__VUE/sku/data.d.ts +22 -0
- package/dist/types/__VUE/sku/index.vue.d.ts +21 -21
- package/dist/types/__VUE/step/index.vue.d.ts +6 -34
- package/dist/types/__VUE/steps/index.vue.d.ts +7 -8
- package/dist/types/__VUE/sticky/index.vue.d.ts +9 -9
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +6 -7
- package/dist/types/__VUE/swipe/index.vue.d.ts +8 -7
- package/dist/types/__VUE/swiper/index.vue.d.ts +18 -19
- package/dist/types/__VUE/swiper/use-touch.d.ts +16 -0
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +7 -7
- package/dist/types/__VUE/swiperitem/type.d.ts +5 -0
- package/dist/types/__VUE/switch/index.vue.d.ts +15 -43
- package/dist/types/__VUE/tabbar/index.vue.d.ts +16 -17
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +14 -69
- package/dist/types/__VUE/table/common.d.ts +2 -4
- package/dist/types/__VUE/table/index.vue.d.ts +7 -8
- package/dist/types/__VUE/table/renderColumn.d.ts +11 -5
- package/dist/types/__VUE/table/types.d.ts +0 -4
- package/dist/types/__VUE/tabpane/index.vue.d.ts +6 -7
- package/dist/types/__VUE/tabs/index.vue.d.ts +28 -18
- package/dist/types/__VUE/tag/index.vue.d.ts +15 -14
- package/dist/types/__VUE/tag/type.d.ts +1 -5
- package/dist/types/__VUE/textarea/index.vue.d.ts +15 -16
- package/dist/types/__VUE/timedetail/index.vue.d.ts +8 -9
- package/dist/types/__VUE/timepannel/index.vue.d.ts +7 -8
- package/dist/types/__VUE/timeselect/index.vue.d.ts +6 -7
- package/dist/types/__VUE/toast/index.d.ts +1 -5
- package/dist/types/__VUE/toast/index.vue.d.ts +19 -18
- package/dist/types/__VUE/tour/index.vue.d.ts +195 -0
- package/dist/types/__VUE/tour/type.d.ts +2 -0
- package/dist/types/__VUE/trendarrow/index.vue.d.ts +7 -40
- package/dist/types/__VUE/uploader/index.vue.d.ts +18 -43
- package/dist/types/__VUE/uploader/type.d.ts +3 -7
- package/dist/types/__VUE/uploader/uploader.d.ts +0 -4
- package/dist/types/__VUE/video/index.vue.d.ts +25 -25
- package/dist/types/__VUE/watermark/index.vue.d.ts +9 -10
- package/dist/types/index.d.ts +113 -7
- package/dist/types/locale/index.d.ts +8 -0
- package/dist/types/locale/lang/baseLang.d.ts +93 -0
- package/dist/types/locale/lang/en-US.d.ts +109 -0
- package/dist/types/locale/lang/id-ID.d.ts +109 -0
- package/dist/types/locale/lang/zh-CN.d.ts +109 -0
- package/dist/types/locale/lang/zh-TW.d.ts +109 -0
- package/dist/types/utils/create/component.d.ts +7 -0
- package/dist/types/utils/create/index.d.ts +4 -0
- package/dist/types/utils/create/mountComponent.d.ts +4 -0
- package/dist/types/utils/create/renderIcon.d.ts +4 -0
- package/dist/types/utils/date.d.ts +12 -0
- package/dist/types/utils/interceptor.d.ts +6 -0
- package/dist/types/utils/pxCheck.d.ts +1 -0
- package/dist/types/utils/raf.d.ts +4 -0
- package/dist/types/utils/throttle.d.ts +2 -0
- package/dist/types/utils/unit.d.ts +6 -0
- package/dist/types/utils/useExpose/index.d.ts +1 -0
- package/dist/types/utils/useLockScroll/index.d.ts +1 -0
- package/dist/types/utils/useRect/index.d.ts +17 -0
- package/dist/types/utils/useRelation/useInject.d.ts +14 -0
- package/dist/types/utils/useRelation/useProvide.d.ts +8 -0
- package/dist/types/utils/useRelation/useRelation.d.ts +1 -0
- package/dist/types/utils/useRoute/index.d.ts +1 -0
- package/dist/types/utils/useScrollParent/index.d.ts +5 -0
- package/dist/types/utils/useTaroRect/index.d.ts +10 -0
- package/dist/types/utils/useTouch/index.d.ts +18 -0
- package/dist/types/utils/util.d.ts +25 -0
- package/package.json +43 -35
- package/dist/packages/_es/props.js +0 -80
- package/dist/packages/locale/lang/baseLang.js +0 -8
- package/dist/style.es.js +0 -2
- package/dist/styles/animation/icon.scss +0 -245
- package/dist/styles/font/config.json +0 -175
- package/dist/styles/font/demo.css +0 -539
- package/dist/styles/font/demo_index.html +0 -3063
- package/dist/styles/font/iconfont.css +0 -515
- package/dist/styles/font/iconfont.eot +0 -0
- package/dist/styles/font/iconfont.js +0 -66
- package/dist/styles/font/iconfont.json +0 -884
- package/dist/styles/font/iconfont.svg +0 -356
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/types/__VUE/rate/common.d.ts +0 -149
- package/dist/types/__VUE/tabs/common.d.ts +0 -95
- package/dist/types/nutui.d.ts +0 -104
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { ref, computed, reactive, watch, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle, createTextVNode } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component.js";
|
|
8
|
-
import { r as requestAniFrame } from "./raf.js";
|
|
9
|
-
import { u as useExpose } from "./
|
|
10
|
-
import { _ as _export_sfc } from "./
|
|
7
|
+
import { c as createComponent } from "./component.fb9ce7ad.js";
|
|
8
|
+
import { r as requestAniFrame } from "./raf.42b42f63.js";
|
|
9
|
+
import { u as useExpose } from "./index.617ba243.js";
|
|
10
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
|
|
11
11
|
const Utils = {
|
|
12
12
|
isLeapYear: function(y) {
|
|
13
13
|
return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
|
|
@@ -195,7 +195,7 @@ const _sfc_main = create({
|
|
|
195
195
|
defaultData: [],
|
|
196
196
|
chooseData: [],
|
|
197
197
|
monthsData: [],
|
|
198
|
-
dayPrefix: "
|
|
198
|
+
dayPrefix: "nut-calendar__day",
|
|
199
199
|
startData: "",
|
|
200
200
|
endData: "",
|
|
201
201
|
isRange: props.type === "range",
|
|
@@ -230,16 +230,16 @@ const _sfc_main = create({
|
|
|
230
230
|
const { type } = props;
|
|
231
231
|
if (day.type == "curr") {
|
|
232
232
|
if (Utils.isEqual(state.currDate, currDate) || type == "range" && (isStart(currDate) || isEnd(currDate)) || type == "multiple" && isMultiple(currDate)) {
|
|
233
|
-
return `${state.dayPrefix}
|
|
233
|
+
return `${state.dayPrefix}--active`;
|
|
234
234
|
} else if (state.propStartDate && Utils.compareDate(currDate, state.propStartDate) || state.propEndDate && Utils.compareDate(state.propEndDate, currDate)) {
|
|
235
|
-
return `${state.dayPrefix}
|
|
235
|
+
return `${state.dayPrefix}--disabled`;
|
|
236
236
|
} else if (type == "range" && Array.isArray(state.currDate) && Object.values(state.currDate).length == 2 && Utils.compareDate(state.currDate[0], currDate) && Utils.compareDate(currDate, state.currDate[1])) {
|
|
237
|
-
return `${state.dayPrefix}
|
|
237
|
+
return `${state.dayPrefix}--choose`;
|
|
238
238
|
} else {
|
|
239
239
|
return null;
|
|
240
240
|
}
|
|
241
241
|
} else {
|
|
242
|
-
return `${state.dayPrefix}
|
|
242
|
+
return `${state.dayPrefix}--disabled`;
|
|
243
243
|
}
|
|
244
244
|
};
|
|
245
245
|
const confirm = () => {
|
|
@@ -252,8 +252,8 @@ const _sfc_main = create({
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
|
-
const chooseDay = (day, month, isFirst) => {
|
|
256
|
-
if (getClass(day, month) != `${state.dayPrefix}
|
|
255
|
+
const chooseDay = (day, month, isFirst = false) => {
|
|
256
|
+
if (getClass(day, month) != `${state.dayPrefix}--disabled`) {
|
|
257
257
|
const { type } = props;
|
|
258
258
|
let days = [...month.curData];
|
|
259
259
|
days[2] = typeof day.day == "number" ? Utils.getNumTwoBit(day.day) : day.day;
|
|
@@ -337,7 +337,7 @@ const _sfc_main = create({
|
|
|
337
337
|
}
|
|
338
338
|
return Array.from(Array(days), (v, k) => {
|
|
339
339
|
return {
|
|
340
|
-
day: k + 1,
|
|
340
|
+
day: String(k + 1),
|
|
341
341
|
type,
|
|
342
342
|
year,
|
|
343
343
|
month
|
|
@@ -352,7 +352,7 @@ const _sfc_main = create({
|
|
|
352
352
|
}
|
|
353
353
|
let months2 = Array.from(Array(preCurrMonthDays), (v, k) => {
|
|
354
354
|
return {
|
|
355
|
-
day: k + 1,
|
|
355
|
+
day: String(k + 1),
|
|
356
356
|
type,
|
|
357
357
|
year,
|
|
358
358
|
month
|
|
@@ -578,7 +578,7 @@ const _sfc_main = create({
|
|
|
578
578
|
state.translateY = defaultScrollTop;
|
|
579
579
|
};
|
|
580
580
|
const isActive = (day, month) => {
|
|
581
|
-
return props.type == "range" && day.type == "curr" && getClass(day, month) == "
|
|
581
|
+
return props.type == "range" && day.type == "curr" && getClass(day, month) == "nut-calendar__day--active";
|
|
582
582
|
};
|
|
583
583
|
const isStartTip = (day, month) => {
|
|
584
584
|
return isActive(day, month) && isStart(getCurrDate(day, month));
|
|
@@ -673,125 +673,124 @@ const _sfc_main = create({
|
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
675
|
});
|
|
676
|
-
const _hoisted_1 = {
|
|
676
|
+
const _hoisted_1 = { class: "nut-calendar__header" };
|
|
677
|
+
const _hoisted_2 = {
|
|
677
678
|
key: 0,
|
|
678
|
-
class: "
|
|
679
|
+
class: "nut-calendar__header-title"
|
|
679
680
|
};
|
|
680
|
-
const
|
|
681
|
+
const _hoisted_3 = {
|
|
681
682
|
key: 1,
|
|
682
|
-
class: "
|
|
683
|
+
class: "nut-calendar__header-slot"
|
|
683
684
|
};
|
|
684
|
-
const
|
|
685
|
+
const _hoisted_4 = {
|
|
685
686
|
key: 2,
|
|
686
|
-
class: "
|
|
687
|
+
class: "nut-calendar__header-subtitle"
|
|
687
688
|
};
|
|
688
|
-
const
|
|
689
|
-
class: "
|
|
689
|
+
const _hoisted_5 = {
|
|
690
|
+
class: "nut-calendar__weekdays",
|
|
690
691
|
ref: "weeksPanel"
|
|
691
692
|
};
|
|
692
|
-
const
|
|
693
|
-
class: "
|
|
693
|
+
const _hoisted_6 = {
|
|
694
|
+
class: "nut-calendar__panel",
|
|
694
695
|
ref: "monthsPanel"
|
|
695
696
|
};
|
|
696
|
-
const
|
|
697
|
-
const
|
|
698
|
-
const
|
|
699
|
-
const
|
|
700
|
-
const
|
|
697
|
+
const _hoisted_7 = { class: "nut-calendar__month-title" };
|
|
698
|
+
const _hoisted_8 = { class: "nut-calendar__days" };
|
|
699
|
+
const _hoisted_9 = ["onClick"];
|
|
700
|
+
const _hoisted_10 = { class: "nut-calendar__day-value" };
|
|
701
|
+
const _hoisted_11 = {
|
|
701
702
|
key: 0,
|
|
702
|
-
class: "
|
|
703
|
+
class: "nut-calendar__day-tips nut-calendar__day-tips--top"
|
|
703
704
|
};
|
|
704
|
-
const
|
|
705
|
+
const _hoisted_12 = {
|
|
705
706
|
key: 1,
|
|
706
|
-
class: "
|
|
707
|
+
class: "nut-calendar__day-tips nut-calendar__day-tips--bottom"
|
|
707
708
|
};
|
|
708
|
-
const
|
|
709
|
+
const _hoisted_13 = {
|
|
709
710
|
key: 2,
|
|
710
|
-
class: "
|
|
711
|
+
class: "nut-calendar__day-tips--curr"
|
|
711
712
|
};
|
|
712
|
-
const
|
|
713
|
+
const _hoisted_14 = {
|
|
713
714
|
key: 4,
|
|
714
|
-
class: "
|
|
715
|
+
class: "nut-calendar__day-tip"
|
|
715
716
|
};
|
|
716
|
-
const
|
|
717
|
+
const _hoisted_15 = {
|
|
717
718
|
key: 0,
|
|
718
|
-
class: "nut-
|
|
719
|
+
class: "nut-calendar__footer"
|
|
719
720
|
};
|
|
720
721
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
721
722
|
return openBlock(), createElementBlock("view", {
|
|
722
|
-
class: normalizeClass(["nut-calendar
|
|
723
|
-
"nut-calendar
|
|
724
|
-
"nut-calendar
|
|
723
|
+
class: normalizeClass(["nut-calendar", {
|
|
724
|
+
"nut-calendar--nopop": !_ctx.poppable,
|
|
725
|
+
"nut-calendar--nofooter": _ctx.isAutoBackFill
|
|
725
726
|
}])
|
|
726
727
|
}, [
|
|
727
|
-
createElementVNode("view",
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
_ctx.showTitle ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.title || _ctx.translate("title")), 1)) : createCommentVNode("", true),
|
|
731
|
-
_ctx.showTopBtn ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
728
|
+
createElementVNode("view", _hoisted_1, [
|
|
729
|
+
_ctx.showTitle ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.title || _ctx.translate("title")), 1)) : createCommentVNode("", true),
|
|
730
|
+
_ctx.showTopBtn ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
732
731
|
renderSlot(_ctx.$slots, "btn")
|
|
733
732
|
])) : createCommentVNode("", true),
|
|
734
|
-
_ctx.showSubTitle ? (openBlock(), createElementBlock("view",
|
|
735
|
-
createElementVNode("view",
|
|
733
|
+
_ctx.showSubTitle ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.yearMonthTitle), 1)) : createCommentVNode("", true),
|
|
734
|
+
createElementVNode("view", _hoisted_5, [
|
|
736
735
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index) => {
|
|
737
736
|
return openBlock(), createElementBlock("view", {
|
|
738
|
-
class: "
|
|
737
|
+
class: "nut-calendar__weekday",
|
|
739
738
|
key: index
|
|
740
739
|
}, toDisplayString(item), 1);
|
|
741
740
|
}), 128))
|
|
742
741
|
], 512)
|
|
743
|
-
]
|
|
742
|
+
]),
|
|
744
743
|
createElementVNode("view", {
|
|
745
|
-
class: "nut-
|
|
744
|
+
class: "nut-calendar__content",
|
|
746
745
|
ref: "months",
|
|
747
746
|
onScroll: _cache[0] || (_cache[0] = (...args) => _ctx.mothsViewScroll && _ctx.mothsViewScroll(...args))
|
|
748
747
|
}, [
|
|
749
|
-
createElementVNode("view",
|
|
748
|
+
createElementVNode("view", _hoisted_6, [
|
|
750
749
|
createElementVNode("view", {
|
|
751
|
-
class: "
|
|
750
|
+
class: "nut-calendar__body",
|
|
752
751
|
ref: "viewArea",
|
|
753
752
|
style: normalizeStyle({ transform: `translateY(${_ctx.translateY}px)` })
|
|
754
753
|
}, [
|
|
755
754
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.compConthsData, (month, index) => {
|
|
756
755
|
return openBlock(), createElementBlock("view", {
|
|
757
|
-
class: "
|
|
756
|
+
class: "nut-calendar__month",
|
|
758
757
|
key: index
|
|
759
758
|
}, [
|
|
760
|
-
createElementVNode("view",
|
|
761
|
-
createElementVNode("view",
|
|
759
|
+
createElementVNode("view", _hoisted_7, toDisplayString(month.title), 1),
|
|
760
|
+
createElementVNode("view", _hoisted_8, [
|
|
762
761
|
createElementVNode("view", {
|
|
763
|
-
class: normalizeClass(["
|
|
762
|
+
class: normalizeClass(["nut-calendar__days-item", _ctx.type === "range" ? "nut-calendar__days-item--range" : ""])
|
|
764
763
|
}, [
|
|
765
764
|
(openBlock(true), createElementBlock(Fragment, null, renderList(month.monthData, (day, i) => {
|
|
766
765
|
return openBlock(), createElementBlock("view", {
|
|
767
766
|
key: i,
|
|
768
|
-
class: normalizeClass(["
|
|
767
|
+
class: normalizeClass(["nut-calendar__day", _ctx.getClass(day, month)]),
|
|
769
768
|
onClick: ($event) => _ctx.chooseDay(day, month)
|
|
770
769
|
}, [
|
|
771
|
-
createElementVNode("view",
|
|
770
|
+
createElementVNode("view", _hoisted_10, [
|
|
772
771
|
renderSlot(_ctx.$slots, "day", {
|
|
773
772
|
date: day.type == "curr" ? day : ""
|
|
774
773
|
}, () => [
|
|
775
774
|
createTextVNode(toDisplayString(day.type == "curr" ? day.day : ""), 1)
|
|
776
775
|
])
|
|
777
776
|
]),
|
|
778
|
-
_ctx.topInfo ? (openBlock(), createElementBlock("view",
|
|
777
|
+
_ctx.topInfo ? (openBlock(), createElementBlock("view", _hoisted_11, [
|
|
779
778
|
renderSlot(_ctx.$slots, "topInfo", {
|
|
780
779
|
date: day.type == "curr" ? day : ""
|
|
781
780
|
})
|
|
782
781
|
])) : createCommentVNode("", true),
|
|
783
|
-
_ctx.bottomInfo ? (openBlock(), createElementBlock("view",
|
|
782
|
+
_ctx.bottomInfo ? (openBlock(), createElementBlock("view", _hoisted_12, [
|
|
784
783
|
renderSlot(_ctx.$slots, "bottomInfo", {
|
|
785
784
|
date: day.type == "curr" ? day : ""
|
|
786
785
|
})
|
|
787
786
|
])) : createCommentVNode("", true),
|
|
788
|
-
!_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (openBlock(), createElementBlock("view",
|
|
787
|
+
!_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (openBlock(), createElementBlock("view", _hoisted_13, toDisplayString(_ctx.translate("today")), 1)) : createCommentVNode("", true),
|
|
789
788
|
_ctx.isStartTip(day, month) ? (openBlock(), createElementBlock("view", {
|
|
790
789
|
key: 3,
|
|
791
|
-
class: normalizeClass(["
|
|
790
|
+
class: normalizeClass(["nut-calendar__day-tip", { "nut-calendar__day-tips--top": _ctx.rangeTip() }])
|
|
792
791
|
}, toDisplayString(_ctx.startText || _ctx.translate("start")), 3)) : createCommentVNode("", true),
|
|
793
|
-
_ctx.isEndTip(day, month) ? (openBlock(), createElementBlock("view",
|
|
794
|
-
], 10,
|
|
792
|
+
_ctx.isEndTip(day, month) ? (openBlock(), createElementBlock("view", _hoisted_14, toDisplayString(_ctx.endText || _ctx.translate("end")), 1)) : createCommentVNode("", true)
|
|
793
|
+
], 10, _hoisted_9);
|
|
795
794
|
}), 128))
|
|
796
795
|
], 2)
|
|
797
796
|
])
|
|
@@ -800,13 +799,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
800
799
|
], 4)
|
|
801
800
|
], 512)
|
|
802
801
|
], 544),
|
|
803
|
-
_ctx.poppable && !_ctx.isAutoBackFill ? (openBlock(), createElementBlock("view",
|
|
802
|
+
_ctx.poppable && !_ctx.isAutoBackFill ? (openBlock(), createElementBlock("view", _hoisted_15, [
|
|
804
803
|
createElementVNode("view", {
|
|
805
|
-
class: "
|
|
804
|
+
class: "nut-calendar__confirm",
|
|
806
805
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.confirm && _ctx.confirm(...args))
|
|
807
806
|
}, toDisplayString(_ctx.confirmText || _ctx.translate("confirm")), 1)
|
|
808
807
|
])) : createCommentVNode("", true)
|
|
809
808
|
], 2);
|
|
810
809
|
}
|
|
811
|
-
|
|
812
|
-
export {
|
|
810
|
+
const CalendarItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
811
|
+
export {
|
|
812
|
+
CalendarItem as C,
|
|
813
|
+
Utils as U
|
|
814
|
+
};
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { c as createComponent } from "./component.fb9ce7ad.js";
|
|
7
|
+
import { reactive, computed, watch, watchEffect, toRefs, resolveComponent, openBlock, createBlock, Teleport, mergeProps, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, vShow } from "vue";
|
|
8
|
+
import Overlay from "./Overlay.js";
|
|
9
|
+
import { Close } from "@nutui/icons-vue";
|
|
10
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
|
|
11
|
+
const popupProps = {
|
|
12
|
+
visible: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: false
|
|
15
|
+
},
|
|
16
|
+
zIndex: {
|
|
17
|
+
type: [Number, String],
|
|
18
|
+
default: 2e3
|
|
19
|
+
},
|
|
20
|
+
duration: {
|
|
21
|
+
type: [Number, String],
|
|
22
|
+
default: 0.3
|
|
23
|
+
},
|
|
24
|
+
lockScroll: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: false
|
|
27
|
+
},
|
|
28
|
+
closeOnClickOverlay: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: true
|
|
31
|
+
},
|
|
32
|
+
position: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "center"
|
|
35
|
+
},
|
|
36
|
+
transition: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: ""
|
|
39
|
+
},
|
|
40
|
+
style: {
|
|
41
|
+
type: Object,
|
|
42
|
+
default: {}
|
|
43
|
+
},
|
|
44
|
+
popClass: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: ""
|
|
47
|
+
},
|
|
48
|
+
closeable: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: false
|
|
51
|
+
},
|
|
52
|
+
closeIconPosition: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: "top-right"
|
|
55
|
+
},
|
|
56
|
+
closeIcon: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: "close"
|
|
59
|
+
},
|
|
60
|
+
destroyOnClose: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: true
|
|
63
|
+
},
|
|
64
|
+
teleport: {
|
|
65
|
+
type: [String, Element],
|
|
66
|
+
default: "body"
|
|
67
|
+
},
|
|
68
|
+
overlay: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: true
|
|
71
|
+
},
|
|
72
|
+
round: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: false
|
|
75
|
+
},
|
|
76
|
+
teleportDisable: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: false
|
|
79
|
+
},
|
|
80
|
+
safeAreaInsetBottom: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: false
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
const initIndex = 2e3;
|
|
86
|
+
let _zIndex = initIndex;
|
|
87
|
+
const component = (componentName2, components) => {
|
|
88
|
+
return {
|
|
89
|
+
components,
|
|
90
|
+
props: {
|
|
91
|
+
...popupProps
|
|
92
|
+
},
|
|
93
|
+
emits: ["click-pop", "click-close-icon", "open", "close", "opend", "closed", "click-overlay", "update:visible"],
|
|
94
|
+
setup(props, { emit }) {
|
|
95
|
+
const state = reactive({
|
|
96
|
+
zIndex: props.zIndex,
|
|
97
|
+
showSlot: true,
|
|
98
|
+
closed: props.closeable
|
|
99
|
+
});
|
|
100
|
+
const classes = computed(() => {
|
|
101
|
+
const prefixCls = componentName2;
|
|
102
|
+
return {
|
|
103
|
+
[prefixCls]: true,
|
|
104
|
+
["round"]: props.round,
|
|
105
|
+
[`nut-popup--${props.position}`]: true,
|
|
106
|
+
[`nut-popup--${props.position}--safebottom`]: props.position === "bottom" && props.safeAreaInsetBottom,
|
|
107
|
+
[props.popClass]: true
|
|
108
|
+
};
|
|
109
|
+
});
|
|
110
|
+
const popStyle = computed(() => {
|
|
111
|
+
return {
|
|
112
|
+
zIndex: state.zIndex,
|
|
113
|
+
transitionDuration: `${props.duration}s`,
|
|
114
|
+
...props.style
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
const transitionName = computed(() => {
|
|
118
|
+
return props.transition ? props.transition : `nut-popup-slide-${props.position}`;
|
|
119
|
+
});
|
|
120
|
+
const open = () => {
|
|
121
|
+
if (props.zIndex !== initIndex) {
|
|
122
|
+
_zIndex = Number(props.zIndex);
|
|
123
|
+
}
|
|
124
|
+
emit("update:visible", true);
|
|
125
|
+
state.zIndex = ++_zIndex;
|
|
126
|
+
if (props.destroyOnClose) {
|
|
127
|
+
state.showSlot = true;
|
|
128
|
+
}
|
|
129
|
+
emit("open");
|
|
130
|
+
};
|
|
131
|
+
const close = () => {
|
|
132
|
+
emit("update:visible", false);
|
|
133
|
+
emit("close");
|
|
134
|
+
if (props.destroyOnClose) {
|
|
135
|
+
setTimeout(() => {
|
|
136
|
+
state.showSlot = false;
|
|
137
|
+
}, +props.duration * 1e3);
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
const onClick = (e) => {
|
|
141
|
+
emit("click-pop", e);
|
|
142
|
+
};
|
|
143
|
+
const onClickCloseIcon = (e) => {
|
|
144
|
+
e.stopPropagation();
|
|
145
|
+
emit("click-close-icon", e);
|
|
146
|
+
emit("update:visible", false);
|
|
147
|
+
};
|
|
148
|
+
const onClickOverlay = (e) => {
|
|
149
|
+
if (props.closeOnClickOverlay) {
|
|
150
|
+
emit("click-overlay", e);
|
|
151
|
+
emit("update:visible", false);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
const onOpened = (e) => {
|
|
155
|
+
emit("opend", e);
|
|
156
|
+
};
|
|
157
|
+
const onClosed = (e) => {
|
|
158
|
+
emit("closed", e);
|
|
159
|
+
};
|
|
160
|
+
watch(
|
|
161
|
+
() => props.visible,
|
|
162
|
+
(val) => {
|
|
163
|
+
props.visible ? open() : close();
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
watchEffect(() => {
|
|
167
|
+
state.closed = props.closeable;
|
|
168
|
+
});
|
|
169
|
+
return {
|
|
170
|
+
...toRefs(state),
|
|
171
|
+
popStyle,
|
|
172
|
+
transitionName,
|
|
173
|
+
classes,
|
|
174
|
+
onClick,
|
|
175
|
+
onClickCloseIcon,
|
|
176
|
+
onClickOverlay,
|
|
177
|
+
onOpened,
|
|
178
|
+
onClosed
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
const { componentName, create } = createComponent("popup");
|
|
184
|
+
const _sfc_main = create(
|
|
185
|
+
component(componentName, {
|
|
186
|
+
[Overlay.name]: Overlay,
|
|
187
|
+
Close
|
|
188
|
+
})
|
|
189
|
+
);
|
|
190
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
191
|
+
const _component_nut_overlay = resolveComponent("nut-overlay");
|
|
192
|
+
const _component_Close = resolveComponent("Close");
|
|
193
|
+
return openBlock(), createBlock(Teleport, {
|
|
194
|
+
to: _ctx.teleport,
|
|
195
|
+
disabled: !_ctx.teleportDisable
|
|
196
|
+
}, [
|
|
197
|
+
_ctx.overlay ? (openBlock(), createBlock(_component_nut_overlay, mergeProps({
|
|
198
|
+
key: 0,
|
|
199
|
+
visible: _ctx.visible,
|
|
200
|
+
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
201
|
+
"z-index": _ctx.zIndex,
|
|
202
|
+
"lock-scroll": _ctx.lockScroll,
|
|
203
|
+
duration: _ctx.duration,
|
|
204
|
+
onClick: _ctx.onClickOverlay
|
|
205
|
+
}, _ctx.$attrs), null, 16, ["visible", "close-on-click-overlay", "z-index", "lock-scroll", "duration", "onClick"])) : createCommentVNode("", true),
|
|
206
|
+
createVNode(Transition, {
|
|
207
|
+
name: _ctx.transitionName,
|
|
208
|
+
onAfterEnter: _ctx.onOpened,
|
|
209
|
+
onAfterLeave: _ctx.onClosed
|
|
210
|
+
}, {
|
|
211
|
+
default: withCtx(() => [
|
|
212
|
+
withDirectives(createElementVNode("view", {
|
|
213
|
+
class: normalizeClass(_ctx.classes),
|
|
214
|
+
style: normalizeStyle(_ctx.popStyle),
|
|
215
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
216
|
+
}, [
|
|
217
|
+
_ctx.showSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
|
|
218
|
+
_ctx.closed ? (openBlock(), createElementBlock("view", {
|
|
219
|
+
key: 1,
|
|
220
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
|
|
221
|
+
class: normalizeClass(["nut-popup__close-icon", "nut-popup__close-icon--" + _ctx.closeIconPosition])
|
|
222
|
+
}, [
|
|
223
|
+
renderSlot(_ctx.$slots, "closeIcon", {}, () => [
|
|
224
|
+
createVNode(_component_Close, { height: "12px" })
|
|
225
|
+
])
|
|
226
|
+
], 2)) : createCommentVNode("", true)
|
|
227
|
+
], 6), [
|
|
228
|
+
[vShow, _ctx.visible]
|
|
229
|
+
])
|
|
230
|
+
]),
|
|
231
|
+
_: 3
|
|
232
|
+
}, 8, ["name", "onAfterEnter", "onAfterLeave"])
|
|
233
|
+
], 8, ["to", "disabled"]);
|
|
234
|
+
}
|
|
235
|
+
const Popup = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
236
|
+
export {
|
|
237
|
+
Popup as P,
|
|
238
|
+
popupProps as p
|
|
239
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -8,4 +8,6 @@ function useRouter() {
|
|
|
8
8
|
const proxy = getCurrentInstance().proxy;
|
|
9
9
|
return proxy.$router || null;
|
|
10
10
|
}
|
|
11
|
-
export {
|
|
11
|
+
export {
|
|
12
|
+
useRouter as u
|
|
13
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -10,4 +10,6 @@ function useExpose(apis) {
|
|
|
10
10
|
Object.assign(instance.proxy, apis);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
export {
|
|
13
|
+
export {
|
|
14
|
+
useExpose as u
|
|
15
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -67,4 +67,6 @@ function useTouch() {
|
|
|
67
67
|
isHorizontal
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
export {
|
|
70
|
+
export {
|
|
71
|
+
useTouch as u
|
|
72
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -33,4 +33,6 @@ const useRect = (elementRef) => {
|
|
|
33
33
|
height: 0
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
-
export {
|
|
36
|
+
export {
|
|
37
|
+
useRect as u
|
|
38
|
+
};
|