@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,15 +1,20 @@
|
|
|
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
|
-
import { ref, computed, onMounted, onUnmounted, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString,
|
|
7
|
-
import { c as createComponent } from "./component.js";
|
|
8
|
-
import { u as useRect } from "./
|
|
9
|
-
import {
|
|
6
|
+
import { ref, computed, onMounted, onUnmounted, reactive, provide, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, renderSlot, createBlock } from "vue";
|
|
7
|
+
import { c as createComponent } from "./component.fb9ce7ad.js";
|
|
8
|
+
import { u as useRect } from "./index.af02c42d.js";
|
|
9
|
+
import { ArrowUp2, ArrowDown2 } from "@nutui/icons-vue";
|
|
10
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
|
|
10
11
|
import "../locale/lang";
|
|
11
12
|
const { componentName, create } = createComponent("menu");
|
|
12
13
|
const _sfc_main = create({
|
|
14
|
+
components: {
|
|
15
|
+
ArrowUp2,
|
|
16
|
+
ArrowDown2
|
|
17
|
+
},
|
|
13
18
|
props: {
|
|
14
19
|
activeColor: {
|
|
15
20
|
type: String,
|
|
@@ -159,8 +164,10 @@ const _sfc_main = create({
|
|
|
159
164
|
});
|
|
160
165
|
const _hoisted_1 = ["onClick"];
|
|
161
166
|
const _hoisted_2 = { class: "nut-menu__title-text" };
|
|
167
|
+
const _hoisted_3 = { class: "nut-menu__title-icon" };
|
|
162
168
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
163
|
-
const
|
|
169
|
+
const _component_ArrowUp2 = resolveComponent("ArrowUp2");
|
|
170
|
+
const _component_ArrowDown2 = resolveComponent("ArrowDown2");
|
|
164
171
|
return openBlock(), createElementBlock("view", {
|
|
165
172
|
class: normalizeClass(_ctx.classes)
|
|
166
173
|
}, [
|
|
@@ -179,11 +186,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
179
186
|
class: normalizeClass(["nut-menu__title", _ctx.getClasses(item.state.showPopup)])
|
|
180
187
|
}, [
|
|
181
188
|
createElementVNode("view", _hoisted_2, toDisplayString(item.renderTitle()), 1),
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
189
|
+
createElementVNode("span", _hoisted_3, [
|
|
190
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
191
|
+
_ctx.direction === "up" ? (openBlock(), createBlock(_component_ArrowUp2, { key: 0 })) : (openBlock(), createBlock(_component_ArrowDown2, { key: 1 }))
|
|
192
|
+
])
|
|
193
|
+
])
|
|
187
194
|
], 2)
|
|
188
195
|
], 14, _hoisted_1);
|
|
189
196
|
}), 128))
|
|
@@ -191,5 +198,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
191
198
|
renderSlot(_ctx.$slots, "default")
|
|
192
199
|
], 2);
|
|
193
200
|
}
|
|
194
|
-
|
|
195
|
-
export {
|
|
201
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
202
|
+
export {
|
|
203
|
+
index as default
|
|
204
|
+
};
|
|
@@ -1,16 +1,15 @@
|
|
|
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
|
-
import { reactive, computed, inject, getCurrentInstance, onUnmounted, resolveComponent, withDirectives, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, vShow, createVNode, mergeProps, withCtx, Fragment, renderList,
|
|
7
|
-
import { c as createComponent } from "./component.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as _export_sfc } from "./
|
|
6
|
+
import { reactive, computed, inject, getCurrentInstance, onUnmounted, resolveComponent, withDirectives, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, vShow, createVNode, mergeProps, withCtx, Fragment, renderList, renderSlot, createCommentVNode, toDisplayString } from "vue";
|
|
7
|
+
import { c as createComponent } from "./component.fb9ce7ad.js";
|
|
8
|
+
import { P as Popup } from "./index.4ed42c18.js";
|
|
9
|
+
import { Check } from "@nutui/icons-vue";
|
|
10
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
|
|
11
11
|
import "../locale/lang";
|
|
12
|
-
import "./
|
|
13
|
-
import "./props.js";
|
|
12
|
+
import "./Overlay.js";
|
|
14
13
|
const { componentName, create } = createComponent("menu-item");
|
|
15
14
|
const _sfc_main = create({
|
|
16
15
|
props: {
|
|
@@ -33,15 +32,11 @@ const _sfc_main = create({
|
|
|
33
32
|
optionIcon: {
|
|
34
33
|
type: String,
|
|
35
34
|
default: "Check"
|
|
36
|
-
},
|
|
37
|
-
classPrefix: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: "nut-icon"
|
|
40
35
|
}
|
|
41
36
|
},
|
|
42
37
|
components: {
|
|
43
|
-
[
|
|
44
|
-
|
|
38
|
+
[Popup.name]: Popup,
|
|
39
|
+
Check
|
|
45
40
|
},
|
|
46
41
|
emits: ["update:modelValue", "change", "open", "close"],
|
|
47
42
|
setup(props, { emit, slots }) {
|
|
@@ -132,14 +127,14 @@ const _sfc_main = create({
|
|
|
132
127
|
const _hoisted_1 = { class: "nut-menu-item__content nut-menu-item__overflow" };
|
|
133
128
|
const _hoisted_2 = ["onClick"];
|
|
134
129
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
135
|
-
const
|
|
130
|
+
const _component_Check = resolveComponent("Check");
|
|
136
131
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
137
132
|
return withDirectives((openBlock(), createElementBlock("view", {
|
|
138
133
|
class: normalizeClass(_ctx.classes)
|
|
139
134
|
}, [
|
|
140
135
|
withDirectives(createElementVNode("div", {
|
|
141
136
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClickOutside && _ctx.handleClickOutside(...args)),
|
|
142
|
-
class: normalizeClass(["placeholder-element", { up: _ctx.parent.props.direction === "up" }]),
|
|
137
|
+
class: normalizeClass(["nut-menu-item-placeholder-element", { up: _ctx.parent.props.direction === "up" }]),
|
|
143
138
|
style: normalizeStyle(_ctx.placeholderElementStyle)
|
|
144
139
|
}, null, 6), [
|
|
145
140
|
[vShow, _ctx.state.isShowPlaceholderElement]
|
|
@@ -169,12 +164,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
169
164
|
style: normalizeStyle({ "flex-basis": 100 / _ctx.cols + "%" }),
|
|
170
165
|
onClick: ($event) => _ctx.onClick(option)
|
|
171
166
|
}, [
|
|
172
|
-
option.value === _ctx.modelValue ? (openBlock(),
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
"
|
|
177
|
-
|
|
167
|
+
option.value === _ctx.modelValue ? (openBlock(), createElementBlock("span", {
|
|
168
|
+
key: 0,
|
|
169
|
+
class: normalizeClass(["nut-menu-item__span", { activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }])
|
|
170
|
+
}, [
|
|
171
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
172
|
+
createVNode(_component_Check, mergeProps(_ctx.$attrs, {
|
|
173
|
+
color: _ctx.parent.props.activeColor
|
|
174
|
+
}), null, 16, ["color"])
|
|
175
|
+
])
|
|
176
|
+
], 2)) : createCommentVNode("", true),
|
|
178
177
|
createElementVNode("view", {
|
|
179
178
|
class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
|
|
180
179
|
style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
|
|
@@ -190,5 +189,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
190
189
|
[vShow, _ctx.state.showWrapper]
|
|
191
190
|
]);
|
|
192
191
|
}
|
|
193
|
-
|
|
194
|
-
export {
|
|
192
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
193
|
+
export {
|
|
194
|
+
index as default
|
|
195
|
+
};
|
|
@@ -1,18 +1,20 @@
|
|
|
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
|
-
import { toRefs, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle,
|
|
7
|
-
import { c as createComponent } from "./component.js";
|
|
8
|
-
import {
|
|
6
|
+
import { toRefs, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createVNode, createCommentVNode, toDisplayString } from "vue";
|
|
7
|
+
import { c as createComponent } from "./component.fb9ce7ad.js";
|
|
8
|
+
import { Left } from "@nutui/icons-vue";
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
|
|
9
10
|
import "../locale/lang";
|
|
10
11
|
const { componentName, create } = createComponent("navbar");
|
|
11
12
|
const _sfc_main = create({
|
|
13
|
+
components: { Left },
|
|
12
14
|
props: {
|
|
13
15
|
leftShow: { type: Boolean, default: false },
|
|
14
16
|
title: { type: String, default: "" },
|
|
15
|
-
|
|
17
|
+
titleIcon: { type: Boolean, default: false },
|
|
16
18
|
leftText: { type: String, default: "" },
|
|
17
19
|
desc: { type: String, default: "" },
|
|
18
20
|
fixed: {
|
|
@@ -41,7 +43,7 @@ const _sfc_main = create({
|
|
|
41
43
|
const { border, fixed, safeAreaInsetTop, placeholder, zIndex } = toRefs(props);
|
|
42
44
|
const navBarWrap = ref(null);
|
|
43
45
|
const navBarHtml = ref(null);
|
|
44
|
-
let navHeight = ref(
|
|
46
|
+
let navHeight = ref();
|
|
45
47
|
const classes = computed(() => {
|
|
46
48
|
const prefixCls = componentName;
|
|
47
49
|
return {
|
|
@@ -60,8 +62,8 @@ const _sfc_main = create({
|
|
|
60
62
|
if (fixed.value && placeholder.value) {
|
|
61
63
|
nextTick(() => {
|
|
62
64
|
var _a;
|
|
63
|
-
navHeight = (_a = navBarHtml == null ? void 0 : navBarHtml.value) == null ? void 0 : _a.getBoundingClientRect().height;
|
|
64
|
-
navBarWrap.value.style.height = navHeight + "px";
|
|
65
|
+
navHeight.value = (_a = navBarHtml == null ? void 0 : navBarHtml.value) == null ? void 0 : _a.getBoundingClientRect().height;
|
|
66
|
+
navBarWrap.value.style.height = navHeight.value + "px";
|
|
65
67
|
});
|
|
66
68
|
}
|
|
67
69
|
});
|
|
@@ -113,7 +115,7 @@ const _hoisted_7 = {
|
|
|
113
115
|
class: "nut-navbar__text"
|
|
114
116
|
};
|
|
115
117
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
116
|
-
const
|
|
118
|
+
const _component_Left = resolveComponent("Left");
|
|
117
119
|
return _ctx.fixed && _ctx.placeholder ? (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
118
120
|
createElementVNode("view", {
|
|
119
121
|
class: normalizeClass(_ctx.classes),
|
|
@@ -124,11 +126,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
124
126
|
class: "nut-navbar__left",
|
|
125
127
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleLeft && _ctx.handleLeft(...args))
|
|
126
128
|
}, [
|
|
127
|
-
_ctx.leftShow ? (
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
_ctx.leftShow ? renderSlot(_ctx.$slots, "leftShow", { key: 0 }, () => [
|
|
130
|
+
createVNode(_component_Left, {
|
|
131
|
+
height: "12px",
|
|
132
|
+
color: "#979797"
|
|
133
|
+
})
|
|
134
|
+
]) : createCommentVNode("", true),
|
|
132
135
|
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
|
|
133
136
|
renderSlot(_ctx.$slots, "left")
|
|
134
137
|
]),
|
|
@@ -138,18 +141,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
138
141
|
class: "title",
|
|
139
142
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
|
|
140
143
|
}, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
141
|
-
_ctx.
|
|
144
|
+
_ctx.titleIcon ? (openBlock(), createElementBlock("view", {
|
|
142
145
|
key: 1,
|
|
143
|
-
class: "icon"
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
class: "icon",
|
|
147
|
+
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleCenterIcon && _ctx.handleCenterIcon(...args))
|
|
148
|
+
}, [
|
|
149
|
+
renderSlot(_ctx.$slots, "titleIcon", {
|
|
150
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleCenterIcon && _ctx.handleCenterIcon(...args))
|
|
151
|
+
})
|
|
152
|
+
])) : createCommentVNode("", true),
|
|
148
153
|
renderSlot(_ctx.$slots, "content")
|
|
149
154
|
]),
|
|
150
155
|
createElementVNode("view", {
|
|
151
156
|
class: "nut-navbar__right",
|
|
152
|
-
onClick: _cache[
|
|
157
|
+
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
|
|
153
158
|
}, [
|
|
154
159
|
_ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
155
160
|
renderSlot(_ctx.$slots, "right")
|
|
@@ -162,13 +167,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
162
167
|
}, [
|
|
163
168
|
createElementVNode("view", {
|
|
164
169
|
class: "nut-navbar__left",
|
|
165
|
-
onClick: _cache[
|
|
170
|
+
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.handleLeft && _ctx.handleLeft(...args))
|
|
166
171
|
}, [
|
|
167
|
-
_ctx.leftShow ? (
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
+
_ctx.leftShow ? renderSlot(_ctx.$slots, "leftShow", { key: 0 }, () => [
|
|
173
|
+
createVNode(_component_Left, {
|
|
174
|
+
height: "12px",
|
|
175
|
+
color: "#979797"
|
|
176
|
+
})
|
|
177
|
+
]) : createCommentVNode("", true),
|
|
172
178
|
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_5, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
|
|
173
179
|
renderSlot(_ctx.$slots, "left")
|
|
174
180
|
]),
|
|
@@ -176,25 +182,29 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
176
182
|
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
177
183
|
key: 0,
|
|
178
184
|
class: "title",
|
|
179
|
-
onClick: _cache[
|
|
185
|
+
onClick: _cache[6] || (_cache[6] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
|
|
180
186
|
}, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
181
|
-
_ctx.
|
|
187
|
+
_ctx.titleIcon ? (openBlock(), createElementBlock("view", {
|
|
182
188
|
key: 1,
|
|
183
|
-
class: "icon"
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
189
|
+
class: "icon",
|
|
190
|
+
onClick: _cache[8] || (_cache[8] = (...args) => _ctx.handleCenterIcon && _ctx.handleCenterIcon(...args))
|
|
191
|
+
}, [
|
|
192
|
+
renderSlot(_ctx.$slots, "titleIcon", {
|
|
193
|
+
onClick: _cache[7] || (_cache[7] = (...args) => _ctx.handleCenterIcon && _ctx.handleCenterIcon(...args))
|
|
194
|
+
})
|
|
195
|
+
])) : createCommentVNode("", true),
|
|
188
196
|
renderSlot(_ctx.$slots, "content")
|
|
189
197
|
]),
|
|
190
198
|
createElementVNode("view", {
|
|
191
199
|
class: "nut-navbar__right",
|
|
192
|
-
onClick: _cache[
|
|
200
|
+
onClick: _cache[9] || (_cache[9] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
|
|
193
201
|
}, [
|
|
194
202
|
_ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_7, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
195
203
|
renderSlot(_ctx.$slots, "right")
|
|
196
204
|
])
|
|
197
205
|
], 6));
|
|
198
206
|
}
|
|
199
|
-
|
|
200
|
-
export {
|
|
207
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
208
|
+
export {
|
|
209
|
+
index as default
|
|
210
|
+
};
|
|
@@ -1,12 +1,14 @@
|
|
|
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
|
-
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, renderSlot, createBlock,
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, createElementVNode, renderSlot, createBlock, resolveDynamicComponent, createTextVNode, toDisplayString, withModifiers, createCommentVNode, vShow, Fragment, renderList } from "vue";
|
|
7
|
+
import { Notice, CircleClose } from "@nutui/icons-vue";
|
|
8
|
+
import { c as createComponent } from "./component.fb9ce7ad.js";
|
|
9
|
+
import { r as renderIcon } from "./renderIcon.f32ed340.js";
|
|
10
|
+
import { p as pxCheck } from "./pxCheck.09969b22.js";
|
|
11
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
|
|
10
12
|
import "../locale/lang";
|
|
11
13
|
const { componentName, create } = createComponent("noticebar");
|
|
12
14
|
const _sfc_main = create({
|
|
@@ -45,8 +47,8 @@ const _sfc_main = create({
|
|
|
45
47
|
type: Boolean,
|
|
46
48
|
default: false
|
|
47
49
|
},
|
|
48
|
-
leftIcon: { type: String, default:
|
|
49
|
-
rightIcon: { type: String, default: "" },
|
|
50
|
+
leftIcon: { type: Object || String, default: () => Notice },
|
|
51
|
+
rightIcon: { type: Object || String, default: "" },
|
|
50
52
|
color: {
|
|
51
53
|
type: String,
|
|
52
54
|
default: ""
|
|
@@ -73,7 +75,9 @@ const _sfc_main = create({
|
|
|
73
75
|
props.item.props.style = props.style;
|
|
74
76
|
props.item.key = props.key;
|
|
75
77
|
return h(props.item);
|
|
76
|
-
}
|
|
78
|
+
},
|
|
79
|
+
Notice,
|
|
80
|
+
CircleClose
|
|
77
81
|
},
|
|
78
82
|
emits: ["click", "close"],
|
|
79
83
|
setup(props, { emit, slots }) {
|
|
@@ -84,7 +88,7 @@ const _sfc_main = create({
|
|
|
84
88
|
firstRound: true,
|
|
85
89
|
duration: 0,
|
|
86
90
|
offsetWidth: 0,
|
|
87
|
-
|
|
91
|
+
showNoticebar: true,
|
|
88
92
|
animationClass: "",
|
|
89
93
|
animate: false,
|
|
90
94
|
scrollList: [],
|
|
@@ -106,12 +110,12 @@ const _sfc_main = create({
|
|
|
106
110
|
return !state.isCanScroll && !props.wrapable;
|
|
107
111
|
}
|
|
108
112
|
});
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
113
|
+
const wrapContentClass = computed(() => {
|
|
114
|
+
return {
|
|
115
|
+
"nut-noticebar__page-wrap-content": true,
|
|
116
|
+
"nut-ellipsis": isEllipsis.value,
|
|
117
|
+
[state.animationClass]: true
|
|
118
|
+
};
|
|
115
119
|
});
|
|
116
120
|
const barStyle = computed(() => {
|
|
117
121
|
let style = {};
|
|
@@ -129,13 +133,6 @@ const _sfc_main = create({
|
|
|
129
133
|
transform: `translateX(${state.firstRound ? 0 : state.wrapWidth + "px"})`
|
|
130
134
|
};
|
|
131
135
|
});
|
|
132
|
-
const iconBg = computed(() => {
|
|
133
|
-
let iconBg2 = "";
|
|
134
|
-
if (props.leftIcon) {
|
|
135
|
-
iconBg2 = props.leftIcon;
|
|
136
|
-
}
|
|
137
|
-
return iconBg2;
|
|
138
|
-
});
|
|
139
136
|
const horseLampStyle = computed(() => {
|
|
140
137
|
let styles = {};
|
|
141
138
|
if (props.complexAm) {
|
|
@@ -166,7 +163,7 @@ const _sfc_main = create({
|
|
|
166
163
|
}
|
|
167
164
|
);
|
|
168
165
|
const initScrollWrap = (value) => {
|
|
169
|
-
if (state.
|
|
166
|
+
if (state.showNoticebar == false) {
|
|
170
167
|
return;
|
|
171
168
|
}
|
|
172
169
|
setTimeout(() => {
|
|
@@ -192,7 +189,7 @@ const _sfc_main = create({
|
|
|
192
189
|
};
|
|
193
190
|
const onClickIcon = (event) => {
|
|
194
191
|
if (props.closeMode) {
|
|
195
|
-
state.
|
|
192
|
+
state.showNoticebar = !props.closeMode;
|
|
196
193
|
}
|
|
197
194
|
emit("close", event);
|
|
198
195
|
};
|
|
@@ -270,10 +267,8 @@ const _sfc_main = create({
|
|
|
270
267
|
...toRefs(state),
|
|
271
268
|
isEllipsis,
|
|
272
269
|
classes,
|
|
273
|
-
iconShow,
|
|
274
270
|
barStyle,
|
|
275
271
|
contentStyle,
|
|
276
|
-
iconBg,
|
|
277
272
|
horseLampStyle,
|
|
278
273
|
wrap,
|
|
279
274
|
content,
|
|
@@ -283,45 +278,41 @@ const _sfc_main = create({
|
|
|
283
278
|
go,
|
|
284
279
|
handleClickIcon,
|
|
285
280
|
slots,
|
|
286
|
-
pxCheck
|
|
281
|
+
pxCheck,
|
|
282
|
+
wrapContentClass,
|
|
283
|
+
renderIcon
|
|
287
284
|
};
|
|
288
285
|
}
|
|
289
286
|
});
|
|
290
|
-
const _hoisted_1 = {
|
|
287
|
+
const _hoisted_1 = { class: "nut-noticebar__page-lefticon" };
|
|
288
|
+
const _hoisted_2 = {
|
|
291
289
|
ref: "wrap",
|
|
292
|
-
class: "wrap"
|
|
290
|
+
class: "nut-noticebar__page-wrap"
|
|
293
291
|
};
|
|
294
|
-
const
|
|
292
|
+
const _hoisted_3 = ["onClick"];
|
|
295
293
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
296
|
-
const
|
|
294
|
+
const _component_CircleClose = resolveComponent("CircleClose");
|
|
297
295
|
const _component_ScrollItem = resolveComponent("ScrollItem");
|
|
298
296
|
return openBlock(), createElementBlock("view", {
|
|
299
297
|
class: normalizeClass(_ctx.classes)
|
|
300
298
|
}, [
|
|
301
299
|
_ctx.direction == "across" ? withDirectives((openBlock(), createElementBlock("view", {
|
|
302
300
|
key: 0,
|
|
303
|
-
class: normalizeClass(["nut-
|
|
301
|
+
class: normalizeClass(["nut-noticebar__page", {
|
|
302
|
+
"nut-noticebar__page--withicon": _ctx.closeMode,
|
|
303
|
+
"nut-noticebar__page--close": _ctx.closeMode,
|
|
304
|
+
"nut-noticebar__page--wrapable": _ctx.wrapable
|
|
305
|
+
}]),
|
|
304
306
|
style: normalizeStyle(_ctx.barStyle),
|
|
305
307
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
306
308
|
}, [
|
|
307
|
-
_ctx.iconShow ? (openBlock(), createElementBlock("view", {
|
|
308
|
-
key: 0,
|
|
309
|
-
class: "left-icon",
|
|
310
|
-
style: normalizeStyle({ "background-image": `url(${_ctx.iconBg})` })
|
|
311
|
-
}, [
|
|
312
|
-
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
313
|
-
!_ctx.iconBg ? (openBlock(), createBlock(_component_nut_icon, {
|
|
314
|
-
key: 0,
|
|
315
|
-
name: "notice",
|
|
316
|
-
size: "16",
|
|
317
|
-
color: _ctx.color
|
|
318
|
-
}, null, 8, ["color"])) : createCommentVNode("", true)
|
|
319
|
-
])
|
|
320
|
-
], 4)) : createCommentVNode("", true),
|
|
321
309
|
createElementVNode("view", _hoisted_1, [
|
|
310
|
+
_ctx.$slots["left-icon"] ? renderSlot(_ctx.$slots, "left-icon", { key: 0 }) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.leftIcon)), { key: 1 }))
|
|
311
|
+
]),
|
|
312
|
+
createElementVNode("view", _hoisted_2, [
|
|
322
313
|
createElementVNode("view", {
|
|
323
314
|
ref: "content",
|
|
324
|
-
class: normalizeClass(
|
|
315
|
+
class: normalizeClass(_ctx.wrapContentClass),
|
|
325
316
|
style: normalizeStyle(_ctx.contentStyle),
|
|
326
317
|
onAnimationend: _cache[0] || (_cache[0] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args)),
|
|
327
318
|
"on:webkitAnimationEnd": _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
|
|
@@ -332,28 +323,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
332
323
|
], 38)
|
|
333
324
|
], 512),
|
|
334
325
|
_ctx.closeMode || _ctx.rightIcon ? (openBlock(), createElementBlock("view", {
|
|
335
|
-
key:
|
|
336
|
-
class: "
|
|
326
|
+
key: 0,
|
|
327
|
+
class: "nut-noticebar__page-righticon",
|
|
337
328
|
onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
|
|
338
329
|
}, [
|
|
339
|
-
renderSlot(_ctx.$slots, "right-icon", {}
|
|
340
|
-
createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
341
|
-
name: _ctx.rightIcon ? _ctx.rightIcon : "close",
|
|
342
|
-
color: _ctx.color
|
|
343
|
-
}), null, 16, ["name", "color"])
|
|
344
|
-
])
|
|
330
|
+
_ctx.$slots["right-icon"] ? renderSlot(_ctx.$slots, "right-icon", { key: 0 }) : (openBlock(), createBlock(_component_CircleClose, { key: 1 }))
|
|
345
331
|
])) : createCommentVNode("", true)
|
|
346
332
|
], 6)), [
|
|
347
|
-
[vShow, _ctx.
|
|
333
|
+
[vShow, _ctx.showNoticebar]
|
|
348
334
|
]) : createCommentVNode("", true),
|
|
349
335
|
_ctx.scrollList.length > 0 && _ctx.direction == "vertical" ? (openBlock(), createElementBlock("view", {
|
|
350
336
|
key: 1,
|
|
351
|
-
class: "nut-
|
|
337
|
+
class: "nut-noticebar__vertical",
|
|
352
338
|
style: normalizeStyle(_ctx.barStyle)
|
|
353
339
|
}, [
|
|
354
340
|
_ctx.slots.default ? (openBlock(), createElementBlock("view", {
|
|
355
341
|
key: 0,
|
|
356
|
-
class: "
|
|
342
|
+
class: "nut-noticebar__vertical-list",
|
|
357
343
|
style: normalizeStyle(_ctx.horseLampStyle)
|
|
358
344
|
}, [
|
|
359
345
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.scrollList, (item, index2) => {
|
|
@@ -365,25 +351,24 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
365
351
|
}), 128))
|
|
366
352
|
], 4)) : (openBlock(), createElementBlock("ul", {
|
|
367
353
|
key: 1,
|
|
368
|
-
class: "
|
|
354
|
+
class: "nut-noticebar__vertical-list",
|
|
369
355
|
style: normalizeStyle(_ctx.horseLampStyle)
|
|
370
356
|
}, [
|
|
371
357
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.scrollList, (item, index2) => {
|
|
372
358
|
return openBlock(), createElementBlock("li", {
|
|
373
|
-
class: "
|
|
359
|
+
class: "nut-noticebar__vertical-item",
|
|
374
360
|
key: index2,
|
|
375
361
|
style: normalizeStyle({ height: _ctx.pxCheck(_ctx.height) }),
|
|
376
362
|
onClick: ($event) => _ctx.go(item)
|
|
377
|
-
}, toDisplayString(item), 13,
|
|
363
|
+
}, toDisplayString(item), 13, _hoisted_3);
|
|
378
364
|
}), 128))
|
|
379
365
|
], 4)),
|
|
380
366
|
createElementVNode("view", {
|
|
381
367
|
class: "go",
|
|
382
368
|
onClick: _cache[4] || (_cache[4] = ($event) => !_ctx.slots.rightIcon && _ctx.handleClickIcon())
|
|
383
369
|
}, [
|
|
384
|
-
_ctx.slots.rightIcon ? renderSlot(_ctx.$slots, "rightIcon", { key: 0 }) : _ctx.closeMode ? (openBlock(), createBlock(
|
|
370
|
+
_ctx.slots.rightIcon ? renderSlot(_ctx.$slots, "rightIcon", { key: 0 }) : _ctx.closeMode ? (openBlock(), createBlock(_component_CircleClose, {
|
|
385
371
|
key: 1,
|
|
386
|
-
type: "cross",
|
|
387
372
|
color: _ctx.color,
|
|
388
373
|
size: "11px"
|
|
389
374
|
}, null, 8, ["color"])) : createCommentVNode("", true)
|
|
@@ -391,5 +376,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
391
376
|
], 4)) : createCommentVNode("", true)
|
|
392
377
|
], 2);
|
|
393
378
|
}
|
|
394
|
-
|
|
395
|
-
export {
|
|
379
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
380
|
+
export {
|
|
381
|
+
index as default
|
|
382
|
+
};
|
|
@@ -1,14 +1,15 @@
|
|
|
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, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, createVNode, render, onMounted, h } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component.js";
|
|
8
|
-
import Popup from "./
|
|
9
|
-
import { _ as _export_sfc } from "./
|
|
7
|
+
import { c as createComponent } from "./component.fb9ce7ad.js";
|
|
8
|
+
import { P as Popup } from "./index.4ed42c18.js";
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
|
-
import "./
|
|
11
|
+
import "./Overlay.js";
|
|
12
|
+
import "@nutui/icons-vue";
|
|
12
13
|
const { create } = createComponent("notify");
|
|
13
14
|
const _sfc_main = create({
|
|
14
15
|
components: {
|
|
@@ -103,7 +104,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
103
104
|
_: 3
|
|
104
105
|
}, 8, ["visible", "position", "teleportDisable"]);
|
|
105
106
|
}
|
|
106
|
-
|
|
107
|
+
const Notify = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
107
108
|
const defaultOptions = {
|
|
108
109
|
type: "base",
|
|
109
110
|
visible: true,
|
|
@@ -219,4 +220,8 @@ const NotifyFunction = {
|
|
|
219
220
|
app.config.globalProperties.$notify = NotifyFunction;
|
|
220
221
|
}
|
|
221
222
|
};
|
|
222
|
-
export {
|
|
223
|
+
export {
|
|
224
|
+
Notify,
|
|
225
|
+
NotifyFunction,
|
|
226
|
+
NotifyFunction as default
|
|
227
|
+
};
|