@nutui/nutui 4.0.0-beta.3 → 4.0.0-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -940
- package/README.md +1 -1
- package/dist/nutui.es.js +227 -103
- package/dist/nutui.umd.js +7 -0
- package/dist/packages/_es/ActionSheet.js +5 -15
- package/dist/packages/_es/Address.js +11 -13
- package/dist/packages/_es/AddressList.js +168 -245
- package/dist/packages/_es/Animate.js +3 -8
- package/dist/packages/_es/Audio.js +11 -10
- package/dist/packages/_es/AudioOperate.js +4 -8
- package/dist/packages/_es/Avatar.js +5 -8
- package/dist/packages/_es/AvatarGroup.js +4 -8
- package/dist/packages/_es/Backtop.js +4 -9
- package/dist/packages/_es/Badge.js +5 -10
- package/dist/packages/_es/Barrage.js +68 -67
- package/dist/packages/_es/Button.js +3 -8
- package/dist/packages/_es/Calendar.js +17 -22
- package/dist/packages/_es/CalendarItem.js +5 -10
- package/dist/packages/_es/Card.js +10 -22
- package/dist/packages/_es/Cascader.js +20 -14
- package/dist/packages/_es/Category.js +5 -8
- package/dist/packages/_es/CategoryPane.js +6 -8
- package/dist/packages/_es/Cell.js +6 -10
- package/dist/packages/_es/CellGroup.js +3 -8
- package/dist/packages/_es/Checkbox.js +3 -8
- package/dist/packages/_es/CheckboxGroup.js +3 -8
- package/dist/packages/_es/CircleProgress.js +3 -8
- package/dist/packages/_es/Col.js +3 -8
- package/dist/packages/_es/Collapse.js +10 -15
- package/dist/packages/_es/CollapseItem.js +10 -14
- package/dist/packages/_es/Comment.js +25 -27
- package/dist/packages/_es/ConfigProvider.js +38 -11
- package/dist/packages/_es/Countdown.js +11 -8
- package/dist/packages/_es/Countup.js +23 -13
- package/dist/packages/_es/DatePicker.js +7 -10
- package/dist/packages/_es/Dialog.js +24 -31
- package/dist/packages/_es/Divider.js +3 -8
- package/dist/packages/_es/Drag.js +4 -9
- package/dist/packages/_es/Ecard.js +4 -9
- package/dist/packages/_es/Elevator.js +4 -9
- package/dist/packages/_es/Ellipsis.js +6 -11
- package/dist/packages/_es/Empty.js +6 -8
- package/dist/packages/_es/FixedNav.js +3 -8
- package/dist/packages/_es/Form.js +3 -8
- package/dist/packages/_es/FormItem.js +5 -10
- package/dist/packages/_es/Grid.js +4 -9
- package/dist/packages/_es/GridItem.js +7 -11
- package/dist/packages/_es/Image.js +4 -9
- package/dist/packages/_es/ImagePreview.js +25 -34
- package/dist/packages/_es/Indicator.js +3 -8
- package/dist/packages/_es/InfiniteLoading.js +6 -19
- package/dist/packages/_es/Input.js +33 -37
- package/dist/packages/_es/InputNumber.js +9 -14
- package/dist/packages/_es/Invoice.js +10 -13
- package/dist/packages/_es/Layout.js +2 -7
- package/dist/packages/_es/List.js +4 -10
- package/dist/packages/_es/Menu.js +4 -9
- package/dist/packages/_es/MenuItem.js +4 -9
- package/dist/packages/_es/Navbar.js +13 -12
- package/dist/packages/_es/Noticebar.js +27 -23
- package/dist/packages/_es/Notify.js +12 -14
- package/dist/packages/_es/NumberKeyboard.js +6 -11
- package/dist/packages/_es/Overlay.js +14 -13
- package/dist/packages/_es/Pagination.js +3 -8
- package/dist/packages/_es/Picker.js +10 -12
- package/dist/packages/_es/Popover.js +6 -12
- package/dist/packages/_es/Popup.js +3 -8
- package/dist/packages/_es/Price.js +4 -9
- package/dist/packages/_es/Progress.js +42 -44
- package/dist/packages/_es/PullRefresh.js +16 -24
- package/dist/packages/_es/Radio.js +3 -8
- package/dist/packages/_es/RadioGroup.js +2 -7
- package/dist/packages/_es/Range.js +5 -10
- package/dist/packages/_es/Rate.js +25 -29
- package/dist/packages/_es/Row.js +3 -8
- package/dist/packages/_es/Searchbar.js +29 -28
- package/dist/packages/_es/ShortPassword.js +15 -19
- package/dist/packages/_es/SideNavbar.js +3 -8
- package/dist/packages/_es/SideNavbarItem.js +3 -8
- package/dist/packages/_es/Signature.js +15 -9
- package/dist/packages/_es/Skeleton.js +15 -12
- package/dist/packages/_es/Sku.js +38 -20
- package/dist/packages/_es/Step.js +3 -8
- package/dist/packages/_es/Steps.js +2 -7
- package/dist/packages/_es/Sticky.js +3 -8
- package/dist/packages/_es/SubSideNavbar.js +8 -11
- package/dist/packages/_es/Swipe.js +6 -11
- package/dist/packages/_es/Swiper.js +60 -126
- package/dist/packages/_es/SwiperItem.js +4 -9
- package/dist/packages/_es/Switch.js +7 -9
- package/dist/packages/_es/TabPane.js +5 -10
- package/dist/packages/_es/Tabbar.js +3 -8
- package/dist/packages/_es/TabbarItem.js +10 -10
- package/dist/packages/_es/Table.js +92 -100
- package/dist/packages/_es/Tabs.js +23 -26
- package/dist/packages/_es/Tag.js +3 -8
- package/dist/packages/_es/Textarea.js +28 -12
- package/dist/packages/_es/TimeDetail.js +3 -12
- package/dist/packages/_es/TimePannel.js +3 -8
- package/dist/packages/_es/TimeSelect.js +5 -10
- package/dist/packages/_es/Toast.js +18 -17
- package/dist/packages/_es/Tour.js +14 -18
- package/dist/packages/_es/TrendArrow.js +5 -10
- package/dist/packages/_es/Uploader.js +23 -25
- package/dist/packages/_es/Video.js +21 -8
- package/dist/packages/_es/Watermark.js +3 -8
- package/dist/packages/_es/{_plugin-vue_export-helper-681cd9ef.js → _plugin-vue_export-helper-cc2b3d55.js} +0 -5
- package/dist/packages/_es/{common-3175aa92.js → common-b9a5e726.js} +10 -7
- package/dist/packages/_es/{component-0ea0483c.js → component-81a4c1d0.js} +0 -5
- package/dist/packages/_es/{index-3e9b0a98.js → index-29892cda.js} +0 -5
- package/dist/packages/_es/{index-9755c21a.js → index-2ae3ae87.js} +47 -15
- package/dist/packages/_es/{index-6cd5b878.js → index-43c34ac6.js} +0 -5
- package/dist/packages/_es/{index-16a07d20.js → index-54d03fc1.js} +0 -5
- package/dist/packages/_es/{index-78b85d04.js → index-79c5dc33.js} +0 -5
- package/dist/packages/_es/{index-35bfc69c.js → index-7a7385e4.js} +0 -5
- package/dist/packages/_es/{index-d5c47fab.js → index-991c279f.js} +16 -11
- package/dist/packages/_es/{index.vue_vue_type_script_lang-0eef0ccb.js → index.vue_vue_type_script_lang-22dfc112.js} +3 -7
- package/dist/packages/_es/{index.vue_vue_type_script_lang-3fd73141.js → index.vue_vue_type_script_lang-442e4704.js} +4 -8
- package/dist/packages/_es/{index.vue_vue_type_script_lang-a0678df2.js → index.vue_vue_type_script_lang-cc5c4086.js} +3 -8
- package/dist/packages/_es/{interceptor-0db96410.js → interceptor-956b24fc.js} +1 -6
- package/dist/packages/_es/{mountComponent-34479821.js → mountComponent-1ece4110.js} +1 -6
- package/dist/packages/_es/pxCheck-c6b9f6b7.js +6 -0
- package/dist/packages/_es/{raf-8c45e560.js → raf-729dad54.js} +0 -5
- package/dist/packages/_es/{renderIcon-6bea5078.js → renderIcon-3d0fd47c.js} +0 -5
- package/dist/packages/actionsheet/index.mjs +3 -1
- package/dist/packages/actionsheet/style.mjs +3 -2
- package/dist/packages/address/index.mjs +3 -1
- package/dist/packages/address/style.mjs +4 -3
- package/dist/packages/addresslist/index.mjs +3 -1
- package/dist/packages/addresslist/index.scss +14 -3
- package/dist/packages/addresslist/style.mjs +3 -1
- package/dist/packages/animate/index.mjs +3 -1
- package/dist/packages/animate/style.mjs +1 -0
- package/dist/packages/audio/index.mjs +3 -1
- package/dist/packages/audio/index.scss +1 -1
- package/dist/packages/audio/style.mjs +2 -1
- package/dist/packages/audiooperate/index.mjs +3 -1
- package/dist/packages/audiooperate/style.mjs +2 -1
- package/dist/packages/avatar/index.mjs +3 -1
- package/dist/packages/avatar/index.scss +3 -1
- package/dist/packages/avatar/style.mjs +1 -0
- package/dist/packages/avatargroup/index.mjs +3 -1
- package/dist/packages/avatargroup/index.scss +1 -1
- package/dist/packages/avatargroup/style.mjs +1 -0
- package/dist/packages/backtop/index.mjs +3 -1
- package/dist/packages/backtop/style.mjs +1 -0
- package/dist/packages/badge/index.mjs +3 -1
- package/dist/packages/badge/index.scss +7 -3
- package/dist/packages/badge/style.mjs +1 -0
- package/dist/packages/barrage/index.mjs +3 -1
- package/dist/packages/barrage/index.scss +17 -1
- package/dist/packages/barrage/style.mjs +1 -0
- package/dist/packages/button/index.mjs +3 -1
- package/dist/packages/button/index.scss +63 -1
- package/dist/packages/button/style.mjs +1 -0
- package/dist/packages/calendar/index.mjs +3 -1
- package/dist/packages/calendar/index.scss +14 -5
- package/dist/packages/calendar/style.mjs +4 -3
- package/dist/packages/calendaritem/index.mjs +3 -1
- package/dist/packages/calendaritem/style.mjs +1 -0
- package/dist/packages/card/index.mjs +3 -1
- package/dist/packages/card/style.mjs +3 -2
- package/dist/packages/cascader/index.mjs +3 -1
- package/dist/packages/cascader/style.mjs +6 -5
- package/dist/packages/category/index.mjs +3 -1
- package/dist/packages/category/style.mjs +1 -0
- package/dist/packages/categorypane/index.mjs +3 -1
- package/dist/packages/categorypane/style.mjs +1 -0
- package/dist/packages/cell/index.mjs +3 -1
- package/dist/packages/cell/index.scss +5 -1
- package/dist/packages/cell/style.mjs +1 -0
- package/dist/packages/cellgroup/index.mjs +3 -1
- package/dist/packages/cellgroup/style.mjs +1 -0
- package/dist/packages/checkbox/index.mjs +3 -1
- package/dist/packages/checkbox/style.mjs +1 -0
- package/dist/packages/checkboxgroup/index.mjs +3 -1
- package/dist/packages/checkboxgroup/style.mjs +1 -0
- package/dist/packages/circleprogress/index.mjs +3 -1
- package/dist/packages/circleprogress/style.mjs +1 -0
- package/dist/packages/col/index.mjs +3 -1
- package/dist/packages/col/style.mjs +1 -0
- package/dist/packages/collapse/index.mjs +3 -1
- package/dist/packages/collapse/style.mjs +1 -0
- package/dist/packages/collapseitem/index.mjs +3 -1
- package/dist/packages/collapseitem/style.mjs +1 -0
- package/dist/packages/comment/index.mjs +3 -1
- package/dist/packages/comment/index.scss +12 -7
- package/dist/packages/comment/style.mjs +2 -1
- package/dist/packages/configprovider/index.mjs +3 -1
- package/dist/packages/configprovider/style.mjs +1 -0
- package/dist/packages/countdown/index.mjs +3 -1
- package/dist/packages/countdown/style.mjs +1 -0
- package/dist/packages/countup/index.mjs +3 -1
- package/dist/packages/countup/index.scss +1 -0
- package/dist/packages/countup/style.mjs +1 -0
- package/dist/packages/datepicker/index.mjs +3 -1
- package/dist/packages/datepicker/style.mjs +4 -3
- package/dist/packages/dialog/index.mjs +5 -2
- package/dist/packages/dialog/style.mjs +4 -3
- package/dist/packages/divider/index.mjs +3 -1
- package/dist/packages/divider/style.mjs +1 -0
- package/dist/packages/drag/index.mjs +3 -1
- package/dist/packages/drag/style.mjs +1 -0
- package/dist/packages/ecard/index.mjs +3 -1
- package/dist/packages/ecard/index.scss +20 -2
- package/dist/packages/ecard/style.mjs +2 -1
- package/dist/packages/elevator/index.mjs +3 -1
- package/dist/packages/elevator/index.scss +14 -0
- package/dist/packages/elevator/style.mjs +1 -0
- package/dist/packages/ellipsis/index.mjs +3 -1
- package/dist/packages/ellipsis/style.mjs +1 -0
- package/dist/packages/empty/index.mjs +3 -1
- package/dist/packages/empty/style.mjs +1 -0
- package/dist/packages/fixednav/index.mjs +3 -1
- package/dist/packages/fixednav/style.mjs +2 -1
- package/dist/packages/form/index.mjs +3 -1
- package/dist/packages/form/style.mjs +2 -1
- package/dist/packages/formitem/index.mjs +3 -1
- package/dist/packages/formitem/style.mjs +2 -1
- package/dist/packages/grid/index.mjs +3 -1
- package/dist/packages/grid/style.mjs +1 -0
- package/dist/packages/griditem/index.mjs +3 -1
- package/dist/packages/griditem/style.mjs +1 -0
- package/dist/packages/icon/style.mjs +1 -0
- package/dist/packages/image/index.mjs +3 -1
- package/dist/packages/image/style.mjs +1 -0
- package/dist/packages/imagepreview/index.mjs +5 -2
- package/dist/packages/imagepreview/style.mjs +6 -5
- package/dist/packages/indicator/index.mjs +3 -1
- package/dist/packages/indicator/index.scss +4 -4
- package/dist/packages/indicator/style.mjs +1 -0
- package/dist/packages/infiniteloading/index.mjs +3 -1
- package/dist/packages/infiniteloading/style.mjs +1 -0
- package/dist/packages/input/index.mjs +3 -1
- package/dist/packages/input/index.scss +6 -2
- package/dist/packages/input/style.mjs +1 -0
- package/dist/packages/inputnumber/index.mjs +3 -1
- package/dist/packages/inputnumber/index.scss +5 -1
- package/dist/packages/inputnumber/style.mjs +1 -0
- package/dist/packages/invoice/index.mjs +3 -1
- package/dist/packages/invoice/style.mjs +8 -7
- package/dist/packages/layout/index.mjs +3 -1
- package/dist/packages/layout/style.mjs +1 -0
- package/dist/packages/list/index.mjs +3 -1
- package/dist/packages/list/style.mjs +1 -0
- package/dist/packages/locale/lang/baseLang-0bdc6353.js +5 -0
- package/dist/packages/locale/lang/en-US.js +1 -6
- package/dist/packages/locale/lang/id-ID.js +1 -6
- package/dist/packages/locale/lang/index.js +1 -6
- package/dist/packages/locale/lang/zh-CN.js +2 -7
- package/dist/packages/locale/lang/zh-TW.js +1 -6
- package/dist/packages/menu/index.mjs +3 -1
- package/dist/packages/menu/style.mjs +1 -0
- package/dist/packages/menuitem/index.mjs +3 -1
- package/dist/packages/menuitem/style.mjs +3 -2
- package/dist/packages/navbar/index.mjs +3 -1
- package/dist/packages/navbar/style.mjs +1 -0
- package/dist/packages/noticebar/index.mjs +3 -1
- package/dist/packages/noticebar/index.scss +13 -10
- package/dist/packages/noticebar/style.mjs +1 -0
- package/dist/packages/notify/index.mjs +5 -2
- package/dist/packages/notify/style.mjs +3 -2
- package/dist/packages/numberkeyboard/index.mjs +3 -1
- package/dist/packages/numberkeyboard/style.mjs +3 -2
- package/dist/packages/overlay/index.mjs +3 -1
- package/dist/packages/overlay/style.mjs +1 -0
- package/dist/packages/pagination/index.mjs +3 -1
- package/dist/packages/pagination/style.mjs +1 -0
- package/dist/packages/picker/index.mjs +3 -1
- package/dist/packages/picker/style.mjs +3 -2
- package/dist/packages/popover/index.mjs +3 -1
- package/dist/packages/popover/index.scss +1 -1
- package/dist/packages/popover/style.mjs +3 -2
- package/dist/packages/popup/index.mjs +3 -1
- package/dist/packages/popup/style.mjs +2 -1
- package/dist/packages/price/index.mjs +3 -1
- package/dist/packages/price/style.mjs +1 -0
- package/dist/packages/progress/index.mjs +3 -1
- package/dist/packages/progress/index.scss +8 -6
- package/dist/packages/progress/style.mjs +1 -0
- package/dist/packages/pullrefresh/index.mjs +3 -1
- package/dist/packages/pullrefresh/index.scss +4 -3
- package/dist/packages/pullrefresh/style.mjs +1 -0
- package/dist/packages/radio/index.mjs +3 -1
- package/dist/packages/radio/index.scss +14 -2
- package/dist/packages/radio/style.mjs +1 -0
- package/dist/packages/radiogroup/index.mjs +3 -1
- package/dist/packages/radiogroup/style.mjs +1 -0
- package/dist/packages/range/index.mjs +3 -1
- package/dist/packages/range/index.scss +6 -3
- package/dist/packages/range/style.mjs +1 -0
- package/dist/packages/rate/index.mjs +3 -1
- package/dist/packages/rate/index.scss +5 -4
- package/dist/packages/rate/style.mjs +1 -0
- package/dist/packages/row/index.mjs +3 -1
- package/dist/packages/row/style.mjs +1 -0
- package/dist/packages/searchbar/index.mjs +3 -1
- package/dist/packages/searchbar/index.scss +43 -24
- package/dist/packages/searchbar/style.mjs +1 -0
- package/dist/packages/shortpassword/index.mjs +3 -1
- package/dist/packages/shortpassword/style.mjs +3 -2
- package/dist/packages/sidenavbar/index.mjs +3 -1
- package/dist/packages/sidenavbar/style.mjs +1 -0
- package/dist/packages/sidenavbaritem/index.mjs +3 -1
- package/dist/packages/sidenavbaritem/style.mjs +1 -0
- package/dist/packages/signature/index.mjs +3 -1
- package/dist/packages/signature/index.scss +2 -2
- package/dist/packages/signature/style.mjs +2 -1
- package/dist/packages/skeleton/index.mjs +3 -1
- package/dist/packages/skeleton/style.mjs +2 -1
- package/dist/packages/sku/index.mjs +3 -1
- package/dist/packages/sku/index.scss +16 -2
- package/dist/packages/sku/style.mjs +5 -4
- package/dist/packages/step/index.mjs +3 -1
- package/dist/packages/step/index.scss +1 -9
- package/dist/packages/step/style.mjs +1 -0
- package/dist/packages/steps/index.mjs +3 -1
- package/dist/packages/steps/style.mjs +1 -0
- package/dist/packages/sticky/index.mjs +3 -1
- package/dist/packages/sticky/index.scss +2 -0
- package/dist/packages/sticky/style.mjs +1 -0
- package/dist/packages/subsidenavbar/index.mjs +3 -1
- package/dist/packages/subsidenavbar/style.mjs +1 -0
- package/dist/packages/swipe/index.mjs +3 -1
- package/dist/packages/swipe/style.mjs +1 -0
- package/dist/packages/swiper/index.mjs +3 -1
- package/dist/packages/swiper/style.mjs +1 -0
- package/dist/packages/swiperitem/index.mjs +3 -1
- package/dist/packages/swiperitem/style.mjs +1 -0
- package/dist/packages/switch/index.mjs +3 -1
- package/dist/packages/switch/index.scss +7 -0
- package/dist/packages/switch/style.mjs +1 -0
- package/dist/packages/tabbar/index.mjs +3 -1
- package/dist/packages/tabbar/style.mjs +1 -0
- package/dist/packages/tabbaritem/index.mjs +3 -1
- package/dist/packages/tabbaritem/index.scss +6 -0
- package/dist/packages/tabbaritem/style.mjs +2 -1
- package/dist/packages/table/index.mjs +3 -1
- package/dist/packages/table/style.mjs +1 -0
- package/dist/packages/tabpane/index.mjs +3 -1
- package/dist/packages/tabpane/style.mjs +1 -0
- package/dist/packages/tabs/index.mjs +3 -1
- package/dist/packages/tabs/style.mjs +2 -1
- package/dist/packages/tag/index.mjs +3 -1
- package/dist/packages/tag/style.mjs +1 -0
- package/dist/packages/textarea/index.mjs +3 -1
- package/dist/packages/textarea/index.scss +7 -1
- package/dist/packages/textarea/style.mjs +1 -0
- package/dist/packages/timedetail/index.mjs +3 -1
- package/dist/packages/timedetail/index.scss +14 -6
- package/dist/packages/timedetail/style.mjs +1 -0
- package/dist/packages/timepannel/index.mjs +3 -1
- package/dist/packages/timepannel/style.mjs +1 -0
- package/dist/packages/timeselect/index.mjs +3 -1
- package/dist/packages/timeselect/style.mjs +3 -2
- package/dist/packages/toast/index.mjs +5 -2
- package/dist/packages/toast/style.mjs +1 -0
- package/dist/packages/tour/index.mjs +3 -1
- package/dist/packages/tour/index.scss +3 -0
- package/dist/packages/tour/style.mjs +4 -3
- package/dist/packages/trendarrow/index.mjs +3 -1
- package/dist/packages/trendarrow/style.mjs +1 -0
- package/dist/packages/uploader/index.mjs +3 -1
- package/dist/packages/uploader/index.scss +21 -15
- package/dist/packages/uploader/style.mjs +3 -2
- package/dist/packages/video/index.mjs +3 -1
- package/dist/packages/video/style.mjs +1 -0
- package/dist/packages/watermark/index.mjs +3 -1
- package/dist/packages/watermark/style.mjs +1 -0
- package/dist/smartips/web-types.json +738 -810
- package/dist/style.css +1 -1
- package/dist/styles/reset.css +3 -0
- package/dist/styles/themes/default.scss +53 -55
- package/dist/styles/themes/jdb.scss +53 -54
- package/dist/styles/themes/jddkh.scss +53 -54
- package/dist/styles/themes/jdt.scss +53 -55
- package/dist/styles/variables-jdb.scss +7 -14
- package/dist/styles/variables-jddkh.scss +7 -13
- package/dist/styles/variables-jdt.scss +8 -14
- package/dist/styles/variables.scss +16 -25
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +18 -9
- package/dist/types/__VUE/address/index.vue.d.ts +18 -0
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +23 -7
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +2 -2
- package/dist/types/__VUE/addresslist/index.vue.d.ts +6 -6
- package/dist/types/__VUE/barrage/index.vue.d.ts +2 -5
- package/dist/types/__VUE/card/index.vue.d.ts +0 -21
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +2 -2
- package/dist/types/__VUE/cascader/index.vue.d.ts +18 -0
- package/dist/types/__VUE/cascader/types.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
- package/dist/types/__VUE/collapse/index.vue.d.ts +5 -5
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +2 -2
- package/dist/types/__VUE/comment/index.vue.d.ts +4 -4
- package/dist/types/__VUE/configprovider/index.vue.d.ts +3 -2
- package/dist/types/__VUE/countup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/dialog/index.d.ts +9 -9
- package/dist/types/__VUE/dialog/index.vue.d.ts +18 -0
- package/dist/types/__VUE/divider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +1 -1
- package/dist/types/__VUE/icon/index.vue.d.ts +1 -0
- package/dist/types/__VUE/imagepreview/index.d.ts +12 -12
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +0 -9
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +0 -18
- package/dist/types/__VUE/input/index.vue.d.ts +7 -40
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/noticebar/index.vue.d.ts +8 -22
- package/dist/types/__VUE/notify/index.d.ts +3 -3
- package/dist/types/__VUE/popover/index.vue.d.ts +1 -10
- package/dist/types/__VUE/popup/common.d.ts +8 -0
- package/dist/types/__VUE/popup/index.vue.d.ts +18 -0
- package/dist/types/__VUE/popup/props.d.ts +8 -0
- package/dist/types/__VUE/progress/index.vue.d.ts +1 -0
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -9
- package/dist/types/__VUE/rate/index.vue.d.ts +18 -12
- package/dist/types/__VUE/searchbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/skeleton/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +18 -0
- package/dist/types/__VUE/steps/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swiper/index.vue.d.ts +9 -17
- package/dist/types/__VUE/table/common.d.ts +9 -9
- package/dist/types/__VUE/table/index.vue.d.ts +13 -11
- package/dist/types/__VUE/table/renderColumn.d.ts +9 -9
- package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/textarea/index.vue.d.ts +6 -1
- package/dist/types/__VUE/timedetail/index.vue.d.ts +0 -9
- package/dist/types/__VUE/toast/index.d.ts +3 -3
- package/dist/types/__VUE/tour/index.vue.d.ts +10 -10
- package/dist/types/index.d.ts +10 -7
- package/package.json +13 -143
- package/dist/nutui.umd.cjs +0 -20046
- package/dist/packages/_es/Icon.js +0 -12
- package/dist/packages/_es/index.vue_vue_type_script_lang-360a52b6.js +0 -12
- package/dist/packages/_es/pxCheck-c22d207b.js +0 -11
- package/dist/packages/_es/style.css +0 -16
- package/dist/packages/actionsheet/style.cjs +0 -3
- package/dist/packages/address/style.cjs +0 -4
- package/dist/packages/addresslist/style.cjs +0 -2
- package/dist/packages/animate/style.cjs +0 -1
- package/dist/packages/audio/style.cjs +0 -2
- package/dist/packages/audiooperate/style.cjs +0 -2
- package/dist/packages/avatar/style.cjs +0 -1
- package/dist/packages/avatargroup/style.cjs +0 -1
- package/dist/packages/backtop/style.cjs +0 -1
- package/dist/packages/badge/style.cjs +0 -1
- package/dist/packages/barrage/style.cjs +0 -1
- package/dist/packages/button/style.cjs +0 -1
- package/dist/packages/calendar/style.cjs +0 -4
- package/dist/packages/calendaritem/style.cjs +0 -1
- package/dist/packages/card/style.cjs +0 -3
- package/dist/packages/cascader/style.cjs +0 -6
- package/dist/packages/category/style.cjs +0 -1
- package/dist/packages/categorypane/style.cjs +0 -1
- package/dist/packages/cell/style.cjs +0 -1
- package/dist/packages/cellgroup/style.cjs +0 -1
- package/dist/packages/checkbox/style.cjs +0 -1
- package/dist/packages/checkboxgroup/style.cjs +0 -1
- package/dist/packages/circleprogress/style.cjs +0 -1
- package/dist/packages/col/style.cjs +0 -1
- package/dist/packages/collapse/style.cjs +0 -1
- package/dist/packages/collapseitem/style.cjs +0 -1
- package/dist/packages/comment/style.cjs +0 -2
- package/dist/packages/configprovider/style.cjs +0 -1
- package/dist/packages/countdown/style.cjs +0 -1
- package/dist/packages/countup/style.cjs +0 -1
- package/dist/packages/datepicker/style.cjs +0 -4
- package/dist/packages/dialog/style.cjs +0 -4
- package/dist/packages/divider/style.cjs +0 -1
- package/dist/packages/drag/style.cjs +0 -1
- package/dist/packages/ecard/style.cjs +0 -2
- package/dist/packages/elevator/style.cjs +0 -1
- package/dist/packages/ellipsis/style.cjs +0 -1
- package/dist/packages/empty/style.cjs +0 -1
- package/dist/packages/fixednav/style.cjs +0 -2
- package/dist/packages/form/style.cjs +0 -2
- package/dist/packages/formitem/style.cjs +0 -2
- package/dist/packages/grid/style.cjs +0 -1
- package/dist/packages/griditem/style.cjs +0 -1
- package/dist/packages/icon/index.mjs +0 -2
- package/dist/packages/icon/style.cjs +0 -1
- package/dist/packages/image/style.cjs +0 -1
- package/dist/packages/imagepreview/style.cjs +0 -6
- package/dist/packages/indicator/style.cjs +0 -1
- package/dist/packages/infiniteloading/style.cjs +0 -1
- package/dist/packages/input/style.cjs +0 -1
- package/dist/packages/inputnumber/style.cjs +0 -1
- package/dist/packages/invoice/style.cjs +0 -8
- package/dist/packages/layout/style.cjs +0 -1
- package/dist/packages/list/style.cjs +0 -1
- package/dist/packages/locale/lang/baseLang-fae9904b.js +0 -10
- package/dist/packages/menu/style.cjs +0 -1
- package/dist/packages/menuitem/style.cjs +0 -3
- package/dist/packages/navbar/style.cjs +0 -1
- package/dist/packages/noticebar/style.cjs +0 -1
- package/dist/packages/notify/style.cjs +0 -3
- package/dist/packages/numberkeyboard/style.cjs +0 -3
- package/dist/packages/overlay/style.cjs +0 -1
- package/dist/packages/pagination/style.cjs +0 -1
- package/dist/packages/picker/style.cjs +0 -3
- package/dist/packages/popover/style.cjs +0 -3
- package/dist/packages/popup/style.cjs +0 -2
- package/dist/packages/price/style.cjs +0 -1
- package/dist/packages/progress/style.cjs +0 -1
- package/dist/packages/pullrefresh/style.cjs +0 -1
- package/dist/packages/radio/style.cjs +0 -1
- package/dist/packages/radiogroup/style.cjs +0 -1
- package/dist/packages/range/style.cjs +0 -1
- package/dist/packages/rate/style.cjs +0 -1
- package/dist/packages/row/style.cjs +0 -1
- package/dist/packages/searchbar/style.cjs +0 -1
- package/dist/packages/shortpassword/style.cjs +0 -3
- package/dist/packages/sidenavbar/style.cjs +0 -1
- package/dist/packages/sidenavbaritem/style.cjs +0 -1
- package/dist/packages/signature/style.cjs +0 -2
- package/dist/packages/skeleton/style.cjs +0 -2
- package/dist/packages/sku/style.cjs +0 -5
- package/dist/packages/step/style.cjs +0 -1
- package/dist/packages/steps/style.cjs +0 -1
- package/dist/packages/sticky/style.cjs +0 -1
- package/dist/packages/subsidenavbar/style.cjs +0 -1
- package/dist/packages/swipe/style.cjs +0 -1
- package/dist/packages/swiper/style.cjs +0 -1
- package/dist/packages/swiperitem/style.cjs +0 -1
- package/dist/packages/switch/style.cjs +0 -1
- package/dist/packages/tabbar/style.cjs +0 -1
- package/dist/packages/tabbaritem/style.cjs +0 -2
- package/dist/packages/table/style.cjs +0 -1
- package/dist/packages/tabpane/style.cjs +0 -1
- package/dist/packages/tabs/style.cjs +0 -2
- package/dist/packages/tag/style.cjs +0 -1
- package/dist/packages/textarea/style.cjs +0 -1
- package/dist/packages/timedetail/style.cjs +0 -1
- package/dist/packages/timepannel/style.cjs +0 -1
- package/dist/packages/timeselect/style.cjs +0 -3
- package/dist/packages/toast/style.cjs +0 -1
- package/dist/packages/tour/style.cjs +0 -4
- package/dist/packages/trendarrow/style.cjs +0 -1
- package/dist/packages/uploader/style.cjs +0 -3
- package/dist/packages/video/style.cjs +0 -1
- package/dist/packages/watermark/style.cjs +0 -1
- package/dist/smartips/attributes.json +0 -2810
- package/dist/smartips/tags.json +0 -1047
- package/dist/styles/theme-deafult.scss +0 -920
- package/dist/styles/theme-jdt.scss +0 -898
- package/dist/styles/variables-var.scss +0 -854
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +0 -26
- package/dist/types/__VUE/configprovider/common.d.ts +0 -20
- package/dist/types/__VUE/swiper/use-touch.d.ts +0 -16
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { ref, reactive, computed, onMounted, onUnmounted, onActivated, onDeactivated, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, toDisplayString, createCommentVNode } from "vue";
|
|
7
|
-
import { c as createComponent, l as getScrollTopRoot } from "./component-
|
|
8
|
-
import { u as useScrollParent } from "./index-
|
|
9
|
-
import { r as requestAniFrame } from "./raf-
|
|
2
|
+
import { c as createComponent, l as getScrollTopRoot } from "./component-81a4c1d0.js";
|
|
3
|
+
import { u as useScrollParent } from "./index-43c34ac6.js";
|
|
4
|
+
import { r as requestAniFrame } from "./raf-729dad54.js";
|
|
10
5
|
import { Loading } from "@nutui/icons-vue";
|
|
11
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
6
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
12
7
|
import "../locale/lang";
|
|
13
8
|
const { componentName, create, translate } = createComponent("infinite-loading");
|
|
14
|
-
const _sfc_main =
|
|
9
|
+
const _sfc_main = create({
|
|
15
10
|
props: {
|
|
16
11
|
modelValue: {
|
|
17
12
|
type: Boolean,
|
|
@@ -33,14 +28,6 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
33
28
|
type: String,
|
|
34
29
|
default: ""
|
|
35
30
|
},
|
|
36
|
-
useWindow: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: true
|
|
39
|
-
},
|
|
40
|
-
containerId: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: ""
|
|
43
|
-
},
|
|
44
31
|
useCapture: {
|
|
45
32
|
type: Boolean,
|
|
46
33
|
default: false
|
|
@@ -164,7 +151,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
164
151
|
createElementVNode("view", _hoisted_2, [
|
|
165
152
|
_ctx.isInfiniting ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
166
153
|
renderSlot(_ctx.$slots, "loading", {}, () => [
|
|
167
|
-
renderSlot(_ctx.$slots, "
|
|
154
|
+
renderSlot(_ctx.$slots, "loading-icon", {}, () => [
|
|
168
155
|
createVNode(_component_Loading, { class: "nut-icon-loading nut-infinite__bottom-box__img" })
|
|
169
156
|
]),
|
|
170
157
|
createElementVNode("view", _hoisted_4, toDisplayString(_ctx.loadTxt || _ctx.translate("loading")), 1)
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { ref, reactive, computed, watch, onMounted, h, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, resolveDynamicComponent, normalizeStyle, toDisplayString, createTextVNode, createCommentVNode, withDirectives, renderSlot, createVNode, mergeProps, vShow } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
8
3
|
import { MaskClose } from "@nutui/icons-vue";
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
6
|
function trimExtraChar(value, char, regExp) {
|
|
12
7
|
const index2 = value.indexOf(char);
|
|
@@ -33,12 +28,8 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
|
|
|
33
28
|
return value.replace(regExp, "");
|
|
34
29
|
}
|
|
35
30
|
const { componentName, create } = createComponent("input");
|
|
36
|
-
const _sfc_main =
|
|
31
|
+
const _sfc_main = create({
|
|
37
32
|
props: {
|
|
38
|
-
ref: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: ""
|
|
41
|
-
},
|
|
42
33
|
type: {
|
|
43
34
|
type: String,
|
|
44
35
|
default: "text"
|
|
@@ -55,10 +46,6 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
55
46
|
type: String,
|
|
56
47
|
default: "left"
|
|
57
48
|
},
|
|
58
|
-
center: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: false
|
|
61
|
-
},
|
|
62
49
|
required: {
|
|
63
50
|
type: Boolean,
|
|
64
51
|
default: false
|
|
@@ -73,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
73
60
|
},
|
|
74
61
|
maxLength: {
|
|
75
62
|
type: [String, Number],
|
|
76
|
-
default: "
|
|
63
|
+
default: ""
|
|
77
64
|
},
|
|
78
65
|
clearable: {
|
|
79
66
|
type: Boolean,
|
|
@@ -95,14 +82,6 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
95
82
|
type: Function,
|
|
96
83
|
default: null
|
|
97
84
|
},
|
|
98
|
-
rules: {
|
|
99
|
-
type: Array,
|
|
100
|
-
default: []
|
|
101
|
-
},
|
|
102
|
-
rows: {
|
|
103
|
-
type: [String, Number],
|
|
104
|
-
default: null
|
|
105
|
-
},
|
|
106
85
|
showWordLimit: {
|
|
107
86
|
type: Boolean,
|
|
108
87
|
default: false
|
|
@@ -121,7 +100,7 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
121
100
|
}
|
|
122
101
|
},
|
|
123
102
|
components: { MaskClose },
|
|
124
|
-
emits: ["update:modelValue", "
|
|
103
|
+
emits: ["update:modelValue", "blur", "focus", "clear", "keypress", "click-input"],
|
|
125
104
|
setup(props, { emit, slots }) {
|
|
126
105
|
const active = ref(false);
|
|
127
106
|
const inputRef = ref();
|
|
@@ -135,13 +114,14 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
135
114
|
const state = reactive({
|
|
136
115
|
focused: false,
|
|
137
116
|
validateFailed: false,
|
|
117
|
+
// 校验失败
|
|
138
118
|
validateMessage: ""
|
|
119
|
+
// 校验信息
|
|
139
120
|
});
|
|
140
121
|
const classes = computed(() => {
|
|
141
122
|
const prefixCls = componentName;
|
|
142
123
|
return {
|
|
143
124
|
[prefixCls]: true,
|
|
144
|
-
center: props.center,
|
|
145
125
|
[`${prefixCls}--disabled`]: props.disabled,
|
|
146
126
|
[`${prefixCls}--required`]: props.required,
|
|
147
127
|
[`${prefixCls}--error`]: props.error,
|
|
@@ -163,12 +143,14 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
163
143
|
}
|
|
164
144
|
};
|
|
165
145
|
const onInput = (event) => {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
146
|
+
if (!event.target.composing) {
|
|
147
|
+
const input = event.target;
|
|
148
|
+
let value = input.value;
|
|
149
|
+
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
150
|
+
value = value.slice(0, Number(props.maxLength));
|
|
151
|
+
}
|
|
152
|
+
updateValue(value);
|
|
170
153
|
}
|
|
171
|
-
updateValue(value);
|
|
172
154
|
};
|
|
173
155
|
const updateValue = (value, trigger = "onChange") => {
|
|
174
156
|
var _a;
|
|
@@ -186,7 +168,6 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
186
168
|
}
|
|
187
169
|
if (value !== props.modelValue) {
|
|
188
170
|
emit("update:modelValue", value);
|
|
189
|
-
emit("change", value);
|
|
190
171
|
}
|
|
191
172
|
};
|
|
192
173
|
const onFocus = (event) => {
|
|
@@ -220,7 +201,6 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
220
201
|
if (props.disabled)
|
|
221
202
|
return;
|
|
222
203
|
emit("update:modelValue", "", event);
|
|
223
|
-
emit("change", "", event);
|
|
224
204
|
emit("clear", "", event);
|
|
225
205
|
};
|
|
226
206
|
const resetValidation = () => {
|
|
@@ -235,6 +215,15 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
235
215
|
}
|
|
236
216
|
emit("click-input", event);
|
|
237
217
|
};
|
|
218
|
+
const startComposing = ({ target }) => {
|
|
219
|
+
target.composing = true;
|
|
220
|
+
};
|
|
221
|
+
const endComposing = ({ target }) => {
|
|
222
|
+
if (target.composing) {
|
|
223
|
+
target.composing = false;
|
|
224
|
+
target.dispatchEvent(new Event("input"));
|
|
225
|
+
}
|
|
226
|
+
};
|
|
238
227
|
watch(
|
|
239
228
|
() => props.modelValue,
|
|
240
229
|
() => {
|
|
@@ -256,6 +245,8 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
256
245
|
onFocus,
|
|
257
246
|
onBlur,
|
|
258
247
|
clear,
|
|
248
|
+
startComposing,
|
|
249
|
+
endComposing,
|
|
259
250
|
onClickInput
|
|
260
251
|
};
|
|
261
252
|
}
|
|
@@ -295,8 +286,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
295
286
|
onInput: _ctx.onInput,
|
|
296
287
|
onFocus: _ctx.onFocus,
|
|
297
288
|
onBlur: _ctx.onBlur,
|
|
298
|
-
onClick: _ctx.onClickInput
|
|
299
|
-
|
|
289
|
+
onClick: _ctx.onClickInput,
|
|
290
|
+
onChange: _ctx.endComposing,
|
|
291
|
+
onCompositionend: _ctx.endComposing,
|
|
292
|
+
onCompositionstart: _ctx.startComposing
|
|
293
|
+
}, null, 40, ["style", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus", "enterkeyhint", "onInput", "onFocus", "onBlur", "onClick", "onChange", "onCompositionend", "onCompositionstart"])),
|
|
300
294
|
_ctx.showWordLimit && _ctx.maxLength ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
301
295
|
createElementVNode("span", _hoisted_5, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
|
|
302
296
|
createTextVNode("/" + toDisplayString(_ctx.maxLength), 1)
|
|
@@ -306,8 +300,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
306
300
|
renderSlot(_ctx.$slots, "clear", {}, () => [
|
|
307
301
|
createVNode(_component_MaskClose, mergeProps({ class: "nut-input-clear" }, _ctx.$attrs, {
|
|
308
302
|
size: _ctx.clearSize,
|
|
303
|
+
width: _ctx.clearSize,
|
|
304
|
+
height: _ctx.clearSize,
|
|
309
305
|
onClick: _ctx.clear
|
|
310
|
-
}), null, 16, ["size", "onClick"])
|
|
306
|
+
}), null, 16, ["size", "width", "height", "onClick"])
|
|
311
307
|
])
|
|
312
308
|
], 512)), [
|
|
313
309
|
[vShow, _ctx.active && _ctx.modelValue.length > 0]
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, normalizeStyle } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { p as pxCheck } from "./pxCheck-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
9
4
|
import { Minus, Plus } from "@nutui/icons-vue";
|
|
10
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
5
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
11
6
|
import "../locale/lang";
|
|
12
7
|
const { componentName, create } = createComponent("input-number");
|
|
13
|
-
const _sfc_main =
|
|
8
|
+
const _sfc_main = create({
|
|
14
9
|
components: { Minus, Plus },
|
|
15
10
|
props: {
|
|
16
11
|
modelValue: {
|
|
@@ -19,11 +14,11 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
19
14
|
},
|
|
20
15
|
inputWidth: {
|
|
21
16
|
type: [Number, String],
|
|
22
|
-
default: "
|
|
17
|
+
default: ""
|
|
23
18
|
},
|
|
24
19
|
buttonSize: {
|
|
25
20
|
type: [Number, String],
|
|
26
|
-
default: "
|
|
21
|
+
default: ""
|
|
27
22
|
},
|
|
28
23
|
min: {
|
|
29
24
|
type: [Number, String],
|
|
@@ -141,7 +136,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
141
136
|
class: normalizeClass(["nut-input-number__icon nut-input-number__left", { "nut-input-number__icon--disabled": !_ctx.reduceAllow() }]),
|
|
142
137
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.reduce && _ctx.reduce(...args))
|
|
143
138
|
}, [
|
|
144
|
-
renderSlot(_ctx.$slots, "
|
|
139
|
+
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
145
140
|
createVNode(_component_Minus, {
|
|
146
141
|
width: _ctx.pxCheck(_ctx.buttonSize),
|
|
147
142
|
height: _ctx.pxCheck(_ctx.buttonSize)
|
|
@@ -152,7 +147,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
152
147
|
type: "number",
|
|
153
148
|
min: _ctx.min,
|
|
154
149
|
max: _ctx.max,
|
|
155
|
-
style: normalizeStyle({ width: _ctx.pxCheck(_ctx.inputWidth) }),
|
|
150
|
+
style: normalizeStyle({ width: _ctx.pxCheck(_ctx.inputWidth), height: _ctx.pxCheck(_ctx.buttonSize) }),
|
|
156
151
|
disabled: _ctx.disabled,
|
|
157
152
|
readonly: _ctx.readonly,
|
|
158
153
|
value: _ctx.modelValue,
|
|
@@ -164,7 +159,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
164
159
|
class: normalizeClass(["nut-input-number__icon nut-input-number__right", { "nut-input-number__icon--disabled": !_ctx.addAllow() }]),
|
|
165
160
|
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.add && _ctx.add(...args))
|
|
166
161
|
}, [
|
|
167
|
-
renderSlot(_ctx.$slots, "
|
|
162
|
+
renderSlot(_ctx.$slots, "right-icon", {}, () => [
|
|
168
163
|
createVNode(_component_Plus, {
|
|
169
164
|
width: _ctx.pxCheck(_ctx.buttonSize),
|
|
170
165
|
height: _ctx.pxCheck(_ctx.buttonSize)
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { ref, reactive, computed, onMounted, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, withDirectives, vModelText, createCommentVNode } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
8
3
|
import Form from "./Form.js";
|
|
9
4
|
import FormItem from "./FormItem.js";
|
|
10
|
-
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-
|
|
11
|
-
import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_lang-
|
|
5
|
+
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-442e4704.js";
|
|
6
|
+
import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_lang-22dfc112.js";
|
|
12
7
|
import Button from "./Button.js";
|
|
13
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
8
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
14
9
|
import "../locale/lang";
|
|
15
10
|
import "./CellGroup.js";
|
|
16
|
-
import "./pxCheck-
|
|
11
|
+
import "./pxCheck-c6b9f6b7.js";
|
|
17
12
|
import "./Cell.js";
|
|
18
|
-
import "./index-
|
|
13
|
+
import "./index-54d03fc1.js";
|
|
19
14
|
import "@nutui/icons-vue";
|
|
20
15
|
const { componentName, create } = createComponent("invoice");
|
|
21
|
-
const _sfc_main =
|
|
16
|
+
const _sfc_main = create({
|
|
22
17
|
components: {
|
|
23
18
|
[Form.name]: Form,
|
|
24
19
|
[FormItem.name]: FormItem,
|
|
@@ -44,7 +39,9 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
44
39
|
setup(props, { emit }) {
|
|
45
40
|
const formRef = ref();
|
|
46
41
|
const list = ref([]);
|
|
47
|
-
const state = reactive({
|
|
42
|
+
const state = reactive({
|
|
43
|
+
// list: []
|
|
44
|
+
});
|
|
48
45
|
const classes = computed(() => {
|
|
49
46
|
const prefixCls = componentName;
|
|
50
47
|
return {
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
import { c as createComponent } from "./component-0ea0483c.js";
|
|
1
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
7
2
|
import "vue";
|
|
8
3
|
import "../locale/lang";
|
|
9
4
|
const { create } = createComponent("layout");
|
|
10
|
-
const _sfc_main =
|
|
5
|
+
const _sfc_main = create({});
|
|
11
6
|
export {
|
|
12
7
|
_sfc_main as default
|
|
13
8
|
};
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { ref, reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, renderList, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
9
4
|
import "../locale/lang";
|
|
10
5
|
const { componentName, create } = createComponent("list");
|
|
11
6
|
const clientHeight = document.documentElement.clientHeight || document.body.clientHeight || 667;
|
|
12
|
-
const _sfc_main =
|
|
7
|
+
const _sfc_main = create({
|
|
13
8
|
props: {
|
|
14
9
|
height: {
|
|
15
10
|
type: [Number],
|
|
@@ -62,8 +57,7 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
62
57
|
var _a;
|
|
63
58
|
const scrollTop = (_a = list.value) == null ? void 0 : _a.scrollTop;
|
|
64
59
|
state.start = Math.floor(scrollTop / props.height);
|
|
65
|
-
if (end.value
|
|
66
|
-
emit("scroll");
|
|
60
|
+
if (end.value >= state.list.length) {
|
|
67
61
|
emit("scroll-bottom");
|
|
68
62
|
}
|
|
69
63
|
state.startOffset = scrollTop - scrollTop % props.height;
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
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-
|
|
8
|
-
import { u as useRect } from "./index-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { u as useRect } from "./index-29892cda.js";
|
|
9
4
|
import { ArrowUp2, ArrowDown2 } from "@nutui/icons-vue";
|
|
10
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
5
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
11
6
|
import "../locale/lang";
|
|
12
7
|
const { componentName, create } = createComponent("menu");
|
|
13
|
-
const _sfc_main =
|
|
8
|
+
const _sfc_main = create({
|
|
14
9
|
components: {
|
|
15
10
|
ArrowUp2,
|
|
16
11
|
ArrowDown2
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
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-
|
|
8
|
-
import { P as Popup } from "./index-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { P as Popup } from "./index-991c279f.js";
|
|
9
4
|
import { Check } from "@nutui/icons-vue";
|
|
10
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
5
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
11
6
|
import "../locale/lang";
|
|
12
7
|
import "./Overlay.js";
|
|
13
8
|
const { componentName, create } = createComponent("menu-item");
|
|
14
|
-
const _sfc_main =
|
|
9
|
+
const _sfc_main = create({
|
|
15
10
|
props: {
|
|
16
11
|
title: String,
|
|
17
12
|
options: {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
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-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
8
3
|
import { Left } from "@nutui/icons-vue";
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
6
|
const { componentName, create } = createComponent("navbar");
|
|
12
|
-
const _sfc_main =
|
|
7
|
+
const _sfc_main = create({
|
|
13
8
|
components: { Left },
|
|
14
9
|
props: {
|
|
15
10
|
leftShow: { type: Boolean, default: false },
|
|
11
|
+
//左侧 是否显示返回icon
|
|
16
12
|
title: { type: String, default: "" },
|
|
13
|
+
//中间 文字标题
|
|
17
14
|
titleIcon: { type: Boolean, default: false },
|
|
15
|
+
//中间
|
|
18
16
|
leftText: { type: String, default: "" },
|
|
17
|
+
//左侧文字
|
|
19
18
|
desc: { type: String, default: "" },
|
|
19
|
+
//右侧 按钮文字
|
|
20
20
|
fixed: {
|
|
21
21
|
type: Boolean,
|
|
22
22
|
default: false
|
|
@@ -30,6 +30,7 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
30
30
|
default: false
|
|
31
31
|
},
|
|
32
32
|
placeholder: {
|
|
33
|
+
// 生成一个等高的占位元素
|
|
33
34
|
type: Boolean,
|
|
34
35
|
default: true
|
|
35
36
|
},
|
|
@@ -126,7 +127,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
126
127
|
class: "nut-navbar__left",
|
|
127
128
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleLeft && _ctx.handleLeft(...args))
|
|
128
129
|
}, [
|
|
129
|
-
_ctx.leftShow ? renderSlot(_ctx.$slots, "
|
|
130
|
+
_ctx.leftShow ? renderSlot(_ctx.$slots, "left-show", { key: 0 }, () => [
|
|
130
131
|
createVNode(_component_Left, {
|
|
131
132
|
height: "12px",
|
|
132
133
|
color: "#979797"
|
|
@@ -146,7 +147,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
146
147
|
class: "icon",
|
|
147
148
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleCenterIcon && _ctx.handleCenterIcon(...args))
|
|
148
149
|
}, [
|
|
149
|
-
renderSlot(_ctx.$slots, "
|
|
150
|
+
renderSlot(_ctx.$slots, "title-icon", {
|
|
150
151
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleCenterIcon && _ctx.handleCenterIcon(...args))
|
|
151
152
|
})
|
|
152
153
|
])) : createCommentVNode("", true),
|
|
@@ -169,7 +170,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
169
170
|
class: "nut-navbar__left",
|
|
170
171
|
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.handleLeft && _ctx.handleLeft(...args))
|
|
171
172
|
}, [
|
|
172
|
-
_ctx.leftShow ? renderSlot(_ctx.$slots, "
|
|
173
|
+
_ctx.leftShow ? renderSlot(_ctx.$slots, "left-show", { key: 0 }, () => [
|
|
173
174
|
createVNode(_component_Left, {
|
|
174
175
|
height: "12px",
|
|
175
176
|
color: "#979797"
|
|
@@ -189,7 +190,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
189
190
|
class: "icon",
|
|
190
191
|
onClick: _cache[8] || (_cache[8] = (...args) => _ctx.handleCenterIcon && _ctx.handleCenterIcon(...args))
|
|
191
192
|
}, [
|
|
192
|
-
renderSlot(_ctx.$slots, "
|
|
193
|
+
renderSlot(_ctx.$slots, "title-icon", {
|
|
193
194
|
onClick: _cache[7] || (_cache[7] = (...args) => _ctx.handleCenterIcon && _ctx.handleCenterIcon(...args))
|
|
194
195
|
})
|
|
195
196
|
])) : createCommentVNode("", true),
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
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";
|
|
1
|
+
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, createElementVNode, renderSlot, createBlock, createCommentVNode, createTextVNode, toDisplayString, withModifiers, vShow, Fragment, renderList } from "vue";
|
|
7
2
|
import { Notice, CircleClose } from "@nutui/icons-vue";
|
|
8
|
-
import { c as createComponent } from "./component-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-681cd9ef.js";
|
|
3
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
4
|
+
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
5
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
12
6
|
import "../locale/lang";
|
|
13
7
|
const { componentName, create } = createComponent("noticebar");
|
|
14
|
-
const _sfc_main =
|
|
8
|
+
const _sfc_main = create({
|
|
15
9
|
props: {
|
|
10
|
+
// 滚动方向 across 横向 vertical 纵向
|
|
16
11
|
direction: {
|
|
17
12
|
type: String,
|
|
18
13
|
default: "across"
|
|
@@ -47,8 +42,7 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
47
42
|
type: Boolean,
|
|
48
43
|
default: false
|
|
49
44
|
},
|
|
50
|
-
leftIcon: { type:
|
|
51
|
-
rightIcon: { type: Object || String, default: "" },
|
|
45
|
+
leftIcon: { type: Boolean, default: true },
|
|
52
46
|
color: {
|
|
53
47
|
type: String,
|
|
54
48
|
default: ""
|
|
@@ -234,6 +228,9 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
234
228
|
emit("click", item);
|
|
235
229
|
};
|
|
236
230
|
const handleClickIcon = () => {
|
|
231
|
+
if (props.closeMode) {
|
|
232
|
+
state.showNoticebar = !props.closeMode;
|
|
233
|
+
}
|
|
237
234
|
emit("close", state.scrollList[0]);
|
|
238
235
|
};
|
|
239
236
|
onMounted(() => {
|
|
@@ -279,8 +276,7 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
279
276
|
handleClickIcon,
|
|
280
277
|
slots,
|
|
281
278
|
pxCheck,
|
|
282
|
-
wrapContentClass
|
|
283
|
-
renderIcon
|
|
279
|
+
wrapContentClass
|
|
284
280
|
};
|
|
285
281
|
}
|
|
286
282
|
});
|
|
@@ -291,6 +287,7 @@ const _hoisted_2 = {
|
|
|
291
287
|
};
|
|
292
288
|
const _hoisted_3 = ["onClick"];
|
|
293
289
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
290
|
+
const _component_Notice = resolveComponent("Notice");
|
|
294
291
|
const _component_CircleClose = resolveComponent("CircleClose");
|
|
295
292
|
const _component_ScrollItem = resolveComponent("ScrollItem");
|
|
296
293
|
return openBlock(), createElementBlock("view", {
|
|
@@ -307,7 +304,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
307
304
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
308
305
|
}, [
|
|
309
306
|
createElementVNode("view", _hoisted_1, [
|
|
310
|
-
|
|
307
|
+
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
308
|
+
_ctx.leftIcon ? (openBlock(), createBlock(_component_Notice, {
|
|
309
|
+
key: 0,
|
|
310
|
+
size: "16px"
|
|
311
|
+
})) : createCommentVNode("", true)
|
|
312
|
+
])
|
|
311
313
|
]),
|
|
312
314
|
createElementVNode("view", _hoisted_2, [
|
|
313
315
|
createElementVNode("view", {
|
|
@@ -322,7 +324,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
322
324
|
])
|
|
323
325
|
], 38)
|
|
324
326
|
], 512),
|
|
325
|
-
_ctx.closeMode || _ctx
|
|
327
|
+
_ctx.closeMode || _ctx.$slots["right-icon"] ? (openBlock(), createElementBlock("view", {
|
|
326
328
|
key: 0,
|
|
327
329
|
class: "nut-noticebar__page-righticon",
|
|
328
330
|
onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
|
|
@@ -332,7 +334,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
332
334
|
], 6)), [
|
|
333
335
|
[vShow, _ctx.showNoticebar]
|
|
334
336
|
]) : createCommentVNode("", true),
|
|
335
|
-
_ctx.scrollList.length > 0 && _ctx.direction == "vertical" ? (openBlock(), createElementBlock("view", {
|
|
337
|
+
_ctx.scrollList.length > 0 && _ctx.direction == "vertical" && _ctx.showNoticebar ? (openBlock(), createElementBlock("view", {
|
|
336
338
|
key: 1,
|
|
337
339
|
class: "nut-noticebar__vertical",
|
|
338
340
|
style: normalizeStyle(_ctx.barStyle)
|
|
@@ -367,11 +369,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
367
369
|
class: "go",
|
|
368
370
|
onClick: _cache[4] || (_cache[4] = ($event) => !_ctx.slots.rightIcon && _ctx.handleClickIcon())
|
|
369
371
|
}, [
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
372
|
+
renderSlot(_ctx.$slots, "right-icon", {}, () => [
|
|
373
|
+
_ctx.closeMode ? (openBlock(), createBlock(_component_CircleClose, {
|
|
374
|
+
key: 0,
|
|
375
|
+
color: _ctx.color,
|
|
376
|
+
size: "11px"
|
|
377
|
+
}, null, 8, ["color"])) : createCommentVNode("", true)
|
|
378
|
+
])
|
|
375
379
|
])
|
|
376
380
|
], 4)) : createCommentVNode("", true)
|
|
377
381
|
], 2);
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
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-
|
|
8
|
-
import { P as Popup } from "./index-
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { P as Popup } from "./index-991c279f.js";
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
6
|
import "./Overlay.js";
|
|
12
7
|
import "@nutui/icons-vue";
|
|
13
8
|
const { create } = createComponent("notify");
|
|
14
|
-
const _sfc_main =
|
|
9
|
+
const _sfc_main = create({
|
|
15
10
|
components: {
|
|
16
11
|
[Popup.name]: Popup
|
|
17
12
|
},
|
|
@@ -113,6 +108,10 @@ const defaultOptions = {
|
|
|
113
108
|
background: void 0,
|
|
114
109
|
duration: 3e3,
|
|
115
110
|
className: "",
|
|
111
|
+
onClose: Function,
|
|
112
|
+
// onClick: null,
|
|
113
|
+
// onOpened: null,
|
|
114
|
+
// textTimer: null,
|
|
116
115
|
teleport: "",
|
|
117
116
|
unmount: new Function()
|
|
118
117
|
};
|
|
@@ -173,6 +172,7 @@ const mountNotify = (opts) => {
|
|
|
173
172
|
opts.teleport = `#notify-${opts.id}`;
|
|
174
173
|
onMounted(() => {
|
|
175
174
|
setTimeout(() => {
|
|
175
|
+
opts.onClose && opts.onClose();
|
|
176
176
|
document.body.removeChild(root);
|
|
177
177
|
}, opts.duration);
|
|
178
178
|
});
|
|
@@ -191,7 +191,7 @@ const errorMsg = (msg) => {
|
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
|
-
const
|
|
194
|
+
const showNotify = {
|
|
195
195
|
text(msg, obj = {}) {
|
|
196
196
|
errorMsg(msg);
|
|
197
197
|
return mountNotify({ ...obj, msg });
|
|
@@ -217,11 +217,9 @@ const NotifyFunction = {
|
|
|
217
217
|
},
|
|
218
218
|
install(app) {
|
|
219
219
|
app.use(Notify);
|
|
220
|
-
app.config.globalProperties.$notify = NotifyFunction;
|
|
221
220
|
}
|
|
222
221
|
};
|
|
223
222
|
export {
|
|
224
|
-
Notify,
|
|
225
|
-
|
|
226
|
-
NotifyFunction as default
|
|
223
|
+
Notify as default,
|
|
224
|
+
showNotify
|
|
227
225
|
};
|