@nutui/nutui 4.0.0-beta.2 → 4.0.0-beta.21
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 +1 -1
- package/dist/nutui.es.js +227 -103
- package/dist/nutui.umd.js +7 -0
- package/dist/packages/_es/ActionSheet.js +4 -14
- package/dist/packages/_es/Address.js +7 -9
- package/dist/packages/_es/AddressList.js +156 -233
- package/dist/packages/_es/Animate.js +2 -7
- package/dist/packages/_es/Audio.js +10 -9
- package/dist/packages/_es/AudioOperate.js +3 -7
- package/dist/packages/_es/Avatar.js +4 -7
- package/dist/packages/_es/AvatarGroup.js +3 -7
- package/dist/packages/_es/Backtop.js +3 -8
- package/dist/packages/_es/Badge.js +2 -7
- package/dist/packages/_es/Barrage.js +31 -54
- package/dist/packages/_es/Button.js +2 -7
- package/dist/packages/_es/Calendar.js +6 -11
- package/dist/packages/_es/CalendarItem.js +5 -10
- package/dist/packages/_es/Card.js +9 -21
- package/dist/packages/_es/Cascader.js +17 -11
- package/dist/packages/_es/Category.js +4 -7
- package/dist/packages/_es/CategoryPane.js +5 -7
- package/dist/packages/_es/Cell.js +5 -9
- package/dist/packages/_es/CellGroup.js +2 -7
- package/dist/packages/_es/Checkbox.js +2 -7
- package/dist/packages/_es/CheckboxGroup.js +2 -7
- package/dist/packages/_es/CircleProgress.js +2 -7
- package/dist/packages/_es/Col.js +2 -7
- package/dist/packages/_es/Collapse.js +9 -14
- package/dist/packages/_es/CollapseItem.js +7 -11
- package/dist/packages/_es/Comment.js +21 -23
- package/dist/packages/_es/ConfigProvider.js +38 -11
- package/dist/packages/_es/Countdown.js +10 -7
- package/dist/packages/_es/Countup.js +22 -12
- package/dist/packages/_es/DatePicker.js +6 -9
- package/dist/packages/_es/Dialog.js +23 -30
- package/dist/packages/_es/Divider.js +2 -7
- package/dist/packages/_es/Drag.js +3 -8
- package/dist/packages/_es/Ecard.js +3 -8
- package/dist/packages/_es/Elevator.js +3 -8
- package/dist/packages/_es/Ellipsis.js +4 -7
- package/dist/packages/_es/Empty.js +5 -7
- package/dist/packages/_es/FixedNav.js +2 -7
- package/dist/packages/_es/Form.js +2 -7
- package/dist/packages/_es/FormItem.js +4 -9
- package/dist/packages/_es/Grid.js +3 -8
- package/dist/packages/_es/GridItem.js +6 -10
- package/dist/packages/_es/Image.js +3 -8
- package/dist/packages/_es/ImagePreview.js +23 -32
- package/dist/packages/_es/Indicator.js +2 -7
- package/dist/packages/_es/InfiniteLoading.js +4 -17
- package/dist/packages/_es/Input.js +32 -36
- package/dist/packages/_es/InputNumber.js +4 -9
- package/dist/packages/_es/Invoice.js +9 -12
- package/dist/packages/_es/Layout.js +1 -6
- package/dist/packages/_es/List.js +3 -9
- package/dist/packages/_es/Menu.js +3 -8
- package/dist/packages/_es/MenuItem.js +3 -8
- package/dist/packages/_es/Navbar.js +8 -7
- package/dist/packages/_es/Noticebar.js +17 -17
- package/dist/packages/_es/Notify.js +11 -13
- package/dist/packages/_es/NumberKeyboard.js +5 -10
- package/dist/packages/_es/Overlay.js +3 -8
- package/dist/packages/_es/Pagination.js +2 -7
- package/dist/packages/_es/Picker.js +8 -10
- package/dist/packages/_es/Popover.js +5 -11
- package/dist/packages/_es/Popup.js +3 -8
- package/dist/packages/_es/Price.js +3 -8
- package/dist/packages/_es/Progress.js +40 -42
- package/dist/packages/_es/PullRefresh.js +15 -23
- package/dist/packages/_es/Radio.js +3 -8
- package/dist/packages/_es/RadioGroup.js +2 -7
- package/dist/packages/_es/Range.js +4 -9
- package/dist/packages/_es/Rate.js +22 -26
- package/dist/packages/_es/Row.js +2 -7
- package/dist/packages/_es/Searchbar.js +7 -11
- package/dist/packages/_es/ShortPassword.js +14 -18
- package/dist/packages/_es/SideNavbar.js +2 -7
- package/dist/packages/_es/SideNavbarItem.js +2 -7
- package/dist/packages/_es/Signature.js +14 -8
- package/dist/packages/_es/Skeleton.js +14 -11
- package/dist/packages/_es/Sku.js +28 -9
- package/dist/packages/_es/Step.js +2 -7
- package/dist/packages/_es/Steps.js +1 -6
- package/dist/packages/_es/Sticky.js +3 -8
- package/dist/packages/_es/SubSideNavbar.js +7 -10
- package/dist/packages/_es/Swipe.js +5 -10
- package/dist/packages/_es/Swiper.js +59 -125
- package/dist/packages/_es/SwiperItem.js +3 -8
- package/dist/packages/_es/Switch.js +6 -8
- package/dist/packages/_es/TabPane.js +4 -9
- package/dist/packages/_es/Tabbar.js +2 -7
- package/dist/packages/_es/TabbarItem.js +17 -32
- package/dist/packages/_es/Table.js +92 -100
- package/dist/packages/_es/Tabs.js +20 -23
- package/dist/packages/_es/Tag.js +2 -7
- package/dist/packages/_es/Textarea.js +3 -7
- package/dist/packages/_es/TimeDetail.js +2 -11
- package/dist/packages/_es/TimePannel.js +2 -7
- package/dist/packages/_es/TimeSelect.js +4 -9
- package/dist/packages/_es/Toast.js +17 -16
- package/dist/packages/_es/Tour.js +11 -15
- package/dist/packages/_es/TrendArrow.js +2 -7
- package/dist/packages/_es/Uploader.js +22 -24
- package/dist/packages/_es/Video.js +20 -7
- package/dist/packages/_es/Watermark.js +2 -7
- package/dist/packages/_es/{_plugin-vue_export-helper-6eba1fc2.js → _plugin-vue_export-helper-cc2b3d55.js} +0 -5
- package/dist/packages/_es/{common-7e43c968.js → common-b9a5e726.js} +10 -7
- package/dist/packages/_es/{component-1a609d46.js → component-81a4c1d0.js} +0 -5
- package/dist/packages/_es/{index-84decee6.js → index-29892cda.js} +0 -5
- package/dist/packages/_es/{index-80fa48bb.js → index-43c34ac6.js} +0 -5
- package/dist/packages/_es/{index-0a179fe8.js → index-54d03fc1.js} +0 -5
- package/dist/packages/_es/{index-ea36cedc.js → index-79c5dc33.js} +0 -5
- package/dist/packages/_es/{index-0bea707c.js → index-7a7385e4.js} +0 -5
- package/dist/packages/_es/{index-db2c2975.js → index-af79da1a.js} +14 -9
- package/dist/packages/_es/{index-4ccf62e1.js → index-f3a722c9.js} +42 -10
- package/dist/packages/_es/{index.vue_vue_type_script_lang-20115c0e.js → index.vue_vue_type_script_lang-22dfc112.js} +2 -6
- package/dist/packages/_es/{index.vue_vue_type_script_lang-7c0c1b1c.js → index.vue_vue_type_script_lang-442e4704.js} +3 -7
- package/dist/packages/_es/{index.vue_vue_type_script_lang-2e585483.js → index.vue_vue_type_script_lang-cc5c4086.js} +2 -7
- package/dist/packages/_es/{interceptor-0a3b15e4.js → interceptor-956b24fc.js} +1 -6
- package/dist/packages/_es/{mountComponent-add1c908.js → mountComponent-1ece4110.js} +1 -6
- package/dist/packages/_es/pxCheck-c6b9f6b7.js +6 -0
- package/dist/packages/_es/{raf-7bf556c1.js → raf-729dad54.js} +0 -5
- package/dist/packages/_es/{renderIcon-ff803dcd.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/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 +4 -0
- 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 +0 -2
- 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 +4 -1
- 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/index.scss +3 -0
- 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 +4 -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 +4 -8
- 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 +4 -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/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 +19 -14
- 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 +731 -812
- package/dist/style.css +1 -19
- package/dist/style.js +4 -0
- package/dist/styles/reset.css +3 -0
- package/dist/styles/themes/default.scss +54 -55
- package/dist/styles/themes/jdb.scss +54 -55
- package/dist/styles/themes/jddkh.scss +54 -55
- package/dist/styles/themes/jdt.scss +54 -55
- package/dist/styles/variables-jdb.scss +5 -10
- package/dist/styles/variables-jddkh.scss +5 -9
- package/dist/styles/variables-jdt.scss +6 -10
- package/dist/styles/variables.scss +14 -21
- 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 +2 -12
- 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 +16 -10
- 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/tabbaritem/index.vue.d.ts +0 -1
- 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 +1 -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 -133
- package/dist/nutui.umd.cjs +0 -20061
- package/dist/packages/_es/Icon.js +0 -12
- package/dist/packages/_es/index.vue_vue_type_script_lang-b8ddf362.js +0 -12
- package/dist/packages/_es/pxCheck-9763aaae.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-d7024f23.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,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
import { c as createComponent } from "./component-1a609d46.js";
|
|
1
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
7
2
|
import { useSlots, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle } from "vue";
|
|
8
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
3
|
+
import { P as Popup, p as popupProps } from "./index-af79da1a.js";
|
|
9
4
|
import { Loading } 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("action-sheet");
|
|
@@ -50,10 +45,6 @@ const _sfc_main = create({
|
|
|
50
45
|
type: Array,
|
|
51
46
|
default: () => []
|
|
52
47
|
},
|
|
53
|
-
isWrapTeleport: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
default: true
|
|
56
|
-
},
|
|
57
48
|
closeAbled: {
|
|
58
49
|
type: Boolean,
|
|
59
50
|
default: true
|
|
@@ -116,7 +107,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
116
107
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
117
108
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
118
109
|
visible: _ctx.visible,
|
|
119
|
-
isWrapTeleport: _ctx.isWrapTeleport,
|
|
120
110
|
position: "bottom",
|
|
121
111
|
round: "",
|
|
122
112
|
onClickOverlay: _ctx.close,
|
|
@@ -158,7 +148,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
158
148
|
], 2)
|
|
159
149
|
]),
|
|
160
150
|
_: 3
|
|
161
|
-
}, 8, ["visible", "
|
|
151
|
+
}, 8, ["visible", "onClickOverlay", "closeOnClickOverlay"]);
|
|
162
152
|
}
|
|
163
153
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
164
154
|
export {
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { ref, computed, reactive, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, renderSlot, withDirectives, createVNode, vShow, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass, createCommentVNode, normalizeStyle, createTextVNode } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { P as Popup, p as popupProps } from "./index-af79da1a.js";
|
|
9
4
|
import Elevator from "./Elevator.js";
|
|
10
5
|
import { Location, Location2, Check, Close, Left } 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
|
import "./Overlay.js";
|
|
14
|
-
import "./index-
|
|
9
|
+
import "./index-79c5dc33.js";
|
|
15
10
|
const { componentName, create, translate } = createComponent("address");
|
|
16
11
|
const _sfc_main = create({
|
|
17
12
|
components: {
|
|
@@ -46,14 +41,17 @@ const _sfc_main = create({
|
|
|
46
41
|
type: Array,
|
|
47
42
|
default: () => []
|
|
48
43
|
},
|
|
44
|
+
// 市
|
|
49
45
|
country: {
|
|
50
46
|
type: Array,
|
|
51
47
|
default: () => []
|
|
52
48
|
},
|
|
49
|
+
// 县
|
|
53
50
|
town: {
|
|
54
51
|
type: Array,
|
|
55
52
|
default: () => []
|
|
56
53
|
},
|
|
54
|
+
// 镇
|
|
57
55
|
isShowCustomAddress: {
|
|
58
56
|
type: Boolean,
|
|
59
57
|
default: true
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createVNode, createTextVNode, ref, createBlock, withCtx, reactive, computed, watch, onMounted, normalizeClass, Fragment, renderList, createSlots } from "vue";
|
|
7
|
-
import { c as createComponent, n as floatData } from "./component-1a609d46.js";
|
|
1
|
+
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createVNode, createTextVNode, ref, h, createBlock, resolveDynamicComponent, withCtx, reactive, computed, watch, onMounted, normalizeClass, Fragment, renderList, createSlots } from "vue";
|
|
2
|
+
import { c as createComponent, n as floatData } from "./component-81a4c1d0.js";
|
|
8
3
|
import { Del, Edit } 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 Button from "./Button.js";
|
|
6
|
+
import Swipe from "./Swipe.js";
|
|
11
7
|
import "../locale/lang";
|
|
12
|
-
|
|
13
|
-
const {
|
|
14
|
-
const
|
|
8
|
+
import "./index-7a7385e4.js";
|
|
9
|
+
const { create: create$2 } = createComponent("address-list-item");
|
|
10
|
+
const { translate: translate$1 } = createComponent("address-list");
|
|
11
|
+
const _sfc_main$2 = create$2({
|
|
15
12
|
components: { Del, Edit },
|
|
16
13
|
props: {
|
|
17
14
|
item: {
|
|
@@ -19,7 +16,7 @@ const _sfc_main$3 = create$3({
|
|
|
19
16
|
default: {}
|
|
20
17
|
}
|
|
21
18
|
},
|
|
22
|
-
emits: ["delIcon", "editIcon", "
|
|
19
|
+
emits: ["delIcon", "editIcon", "clickItem"],
|
|
23
20
|
setup(props, { emit }) {
|
|
24
21
|
const delClick = (event) => {
|
|
25
22
|
emit("delIcon", event, props.item);
|
|
@@ -30,7 +27,7 @@ const _sfc_main$3 = create$3({
|
|
|
30
27
|
event.stopPropagation();
|
|
31
28
|
};
|
|
32
29
|
const contentsClick = (event) => {
|
|
33
|
-
emit("
|
|
30
|
+
emit("clickItem", event, props.item);
|
|
34
31
|
event.stopPropagation();
|
|
35
32
|
};
|
|
36
33
|
return {
|
|
@@ -41,32 +38,32 @@ const _sfc_main$3 = create$3({
|
|
|
41
38
|
};
|
|
42
39
|
}
|
|
43
40
|
});
|
|
44
|
-
const _hoisted_1$
|
|
41
|
+
const _hoisted_1$1 = { class: "nut-address-list-item__info" };
|
|
45
42
|
const _hoisted_2$1 = { class: "nut-address-list-item__info-contact" };
|
|
46
|
-
const _hoisted_3
|
|
47
|
-
const _hoisted_4
|
|
48
|
-
const _hoisted_5
|
|
43
|
+
const _hoisted_3 = { class: "nut-address-list-item__info-contact-name" };
|
|
44
|
+
const _hoisted_4 = { class: "nut-address-list-item__info-contact-tel" };
|
|
45
|
+
const _hoisted_5 = {
|
|
49
46
|
key: 0,
|
|
50
47
|
class: "nut-address-list-item__info-contact-default"
|
|
51
48
|
};
|
|
52
|
-
const _hoisted_6
|
|
53
|
-
const _hoisted_7
|
|
54
|
-
function _sfc_render$
|
|
49
|
+
const _hoisted_6 = { class: "nut-address-list-item__info-handle" };
|
|
50
|
+
const _hoisted_7 = { class: "nut-address-list-item__addr" };
|
|
51
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
55
52
|
const _component_Del = resolveComponent("Del");
|
|
56
53
|
const _component_Edit = resolveComponent("Edit");
|
|
57
54
|
return openBlock(), createElementBlock("div", {
|
|
58
55
|
class: "nut-address-list-item",
|
|
59
56
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.contentsClick && _ctx.contentsClick(...args))
|
|
60
57
|
}, [
|
|
61
|
-
createElementVNode("div", _hoisted_1$
|
|
58
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
62
59
|
createElementVNode("div", _hoisted_2$1, [
|
|
63
60
|
renderSlot(_ctx.$slots, "contentTop", {}, () => [
|
|
64
|
-
createElementVNode("div", _hoisted_3
|
|
65
|
-
createElementVNode("div", _hoisted_4
|
|
66
|
-
_ctx.item.defaultAddress ? (openBlock(), createElementBlock("div", _hoisted_5
|
|
61
|
+
createElementVNode("div", _hoisted_3, toDisplayString(_ctx.item.addressName), 1),
|
|
62
|
+
createElementVNode("div", _hoisted_4, toDisplayString(_ctx.item.phone), 1),
|
|
63
|
+
_ctx.item.defaultAddress ? (openBlock(), createElementBlock("div", _hoisted_5, toDisplayString(_ctx.translate("default")), 1)) : createCommentVNode("", true)
|
|
67
64
|
])
|
|
68
65
|
]),
|
|
69
|
-
createElementVNode("div", _hoisted_6
|
|
66
|
+
createElementVNode("div", _hoisted_6, [
|
|
70
67
|
renderSlot(_ctx.$slots, "contentIcon", {}, () => [
|
|
71
68
|
createVNode(_component_Del, {
|
|
72
69
|
name: "del",
|
|
@@ -81,111 +78,15 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
81
78
|
])
|
|
82
79
|
])
|
|
83
80
|
]),
|
|
84
|
-
createElementVNode("div", _hoisted_7
|
|
81
|
+
createElementVNode("div", _hoisted_7, [
|
|
85
82
|
renderSlot(_ctx.$slots, "contentAddr", {}, () => [
|
|
86
83
|
createTextVNode(toDisplayString(_ctx.item.fullAddress), 1)
|
|
87
84
|
])
|
|
88
85
|
])
|
|
89
86
|
]);
|
|
90
87
|
}
|
|
91
|
-
const ItemContents = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
92
|
-
const { create: create$
|
|
93
|
-
const _sfc_main$2 = create$2({
|
|
94
|
-
props: {
|
|
95
|
-
item: {
|
|
96
|
-
type: Object,
|
|
97
|
-
default: {}
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
emits: ["delIcon", "editIcon", "itemClick", "swipeDel"],
|
|
101
|
-
components: {
|
|
102
|
-
ItemContents
|
|
103
|
-
},
|
|
104
|
-
setup(props, { emit }) {
|
|
105
|
-
const moveRef = ref(false);
|
|
106
|
-
const delClick = (event) => {
|
|
107
|
-
emit("delIcon", event, props.item);
|
|
108
|
-
event.stopPropagation();
|
|
109
|
-
};
|
|
110
|
-
const editClick = (event) => {
|
|
111
|
-
emit("editIcon", event, props.item);
|
|
112
|
-
event.stopPropagation();
|
|
113
|
-
};
|
|
114
|
-
const itemClick = (event) => {
|
|
115
|
-
if (moveRef.value)
|
|
116
|
-
return;
|
|
117
|
-
emit("itemClick", event, props.item);
|
|
118
|
-
event.stopPropagation();
|
|
119
|
-
};
|
|
120
|
-
const swipeDelClick = (event) => {
|
|
121
|
-
emit("swipeDel", event, props.item);
|
|
122
|
-
event.stopPropagation();
|
|
123
|
-
};
|
|
124
|
-
const swipestart = () => {
|
|
125
|
-
moveRef.value = false;
|
|
126
|
-
};
|
|
127
|
-
const swipemove = () => {
|
|
128
|
-
moveRef.value = true;
|
|
129
|
-
};
|
|
130
|
-
return {
|
|
131
|
-
delClick,
|
|
132
|
-
editClick,
|
|
133
|
-
itemClick,
|
|
134
|
-
swipeDelClick,
|
|
135
|
-
swipestart,
|
|
136
|
-
swipemove
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
const _hoisted_1$1 = { class: "nut-address-list-swipe" };
|
|
141
|
-
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
142
|
-
const _component_item_contents = resolveComponent("item-contents");
|
|
143
|
-
const _component_nut_button = resolveComponent("nut-button");
|
|
144
|
-
const _component_nut_swipe = resolveComponent("nut-swipe");
|
|
145
|
-
return openBlock(), createBlock(_component_nut_swipe, null, {
|
|
146
|
-
right: withCtx(() => [
|
|
147
|
-
renderSlot(_ctx.$slots, "swiperightbtn", {}, () => [
|
|
148
|
-
createVNode(_component_nut_button, {
|
|
149
|
-
shape: "square",
|
|
150
|
-
style: { "height": "100%" },
|
|
151
|
-
type: "danger",
|
|
152
|
-
onClick: _ctx.swipeDelClick
|
|
153
|
-
}, {
|
|
154
|
-
default: withCtx(() => [
|
|
155
|
-
createTextVNode("删除")
|
|
156
|
-
]),
|
|
157
|
-
_: 1
|
|
158
|
-
}, 8, ["onClick"])
|
|
159
|
-
])
|
|
160
|
-
]),
|
|
161
|
-
default: withCtx(() => [
|
|
162
|
-
createElementVNode("div", _hoisted_1$1, [
|
|
163
|
-
createVNode(_component_item_contents, {
|
|
164
|
-
item: _ctx.item,
|
|
165
|
-
onDelIcon: _ctx.delClick,
|
|
166
|
-
onEditIcon: _ctx.editClick,
|
|
167
|
-
onItemClick: _ctx.itemClick,
|
|
168
|
-
onTouchmove: _ctx.swipemove,
|
|
169
|
-
onTouchstart: _ctx.swipestart
|
|
170
|
-
}, {
|
|
171
|
-
contentTop: withCtx(() => [
|
|
172
|
-
renderSlot(_ctx.$slots, "contentInfo")
|
|
173
|
-
]),
|
|
174
|
-
contentIcon: withCtx(() => [
|
|
175
|
-
renderSlot(_ctx.$slots, "contentIcons")
|
|
176
|
-
]),
|
|
177
|
-
contentAddr: withCtx(() => [
|
|
178
|
-
renderSlot(_ctx.$slots, "contentAddrs")
|
|
179
|
-
]),
|
|
180
|
-
_: 3
|
|
181
|
-
}, 8, ["item", "onDelIcon", "onEditIcon", "onItemClick", "onTouchmove", "onTouchstart"])
|
|
182
|
-
])
|
|
183
|
-
]),
|
|
184
|
-
_: 3
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
const SwipeShell = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
188
|
-
const { create: create$1 } = createComponent("addresslist-general");
|
|
88
|
+
const ItemContents = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
89
|
+
const { create: create$1 } = createComponent("address-list-general");
|
|
189
90
|
const _sfc_main$1 = create$1({
|
|
190
91
|
props: {
|
|
191
92
|
item: {
|
|
@@ -195,25 +96,52 @@ const _sfc_main$1 = create$1({
|
|
|
195
96
|
longPress: {
|
|
196
97
|
type: Boolean,
|
|
197
98
|
default: false
|
|
99
|
+
},
|
|
100
|
+
swipeEdition: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
default: false
|
|
198
103
|
}
|
|
199
104
|
},
|
|
200
|
-
emits: ["delIcon", "editIcon", "
|
|
105
|
+
emits: ["delIcon", "editIcon", "clickItem", "longDown", "longCopy", "longSet", "longDel", "swipeDel"],
|
|
201
106
|
components: {
|
|
202
|
-
ItemContents
|
|
107
|
+
ItemContents,
|
|
108
|
+
[Button.name]: Button,
|
|
109
|
+
[Swipe.name]: Swipe
|
|
203
110
|
},
|
|
204
111
|
setup(props, { emit }) {
|
|
112
|
+
const renderCompontent = () => {
|
|
113
|
+
return h(ItemContents, {
|
|
114
|
+
item: props.item,
|
|
115
|
+
onDelIcon(event) {
|
|
116
|
+
delClick(event);
|
|
117
|
+
},
|
|
118
|
+
onEditIcon(event) {
|
|
119
|
+
editClick(event);
|
|
120
|
+
},
|
|
121
|
+
onClickItem(event) {
|
|
122
|
+
clickItem(event);
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
};
|
|
205
126
|
let loop = null;
|
|
127
|
+
const moveRef = ref(false);
|
|
206
128
|
const showMaskRef = ref(false);
|
|
207
|
-
const
|
|
129
|
+
const delClick = (event) => {
|
|
208
130
|
emit("delIcon", event, props.item);
|
|
209
131
|
event.stopPropagation();
|
|
210
132
|
};
|
|
211
|
-
const
|
|
133
|
+
const editClick = (event) => {
|
|
212
134
|
emit("editIcon", event, props.item);
|
|
213
135
|
event.stopPropagation();
|
|
214
136
|
};
|
|
215
|
-
const
|
|
216
|
-
|
|
137
|
+
const clickItem = (event) => {
|
|
138
|
+
if (moveRef.value)
|
|
139
|
+
return;
|
|
140
|
+
emit("clickItem", event, props.item);
|
|
141
|
+
event.stopPropagation();
|
|
142
|
+
};
|
|
143
|
+
const delLongClick = (event) => {
|
|
144
|
+
emit("longDel", event, props.item);
|
|
217
145
|
event.stopPropagation();
|
|
218
146
|
};
|
|
219
147
|
const holdingFunc = (event) => {
|
|
@@ -243,10 +171,6 @@ const _sfc_main$1 = create$1({
|
|
|
243
171
|
emit("longSet", event, props.item);
|
|
244
172
|
event.stopPropagation();
|
|
245
173
|
};
|
|
246
|
-
const delClick = (event) => {
|
|
247
|
-
emit("longDel", event, props.item);
|
|
248
|
-
event.stopPropagation();
|
|
249
|
-
};
|
|
250
174
|
const maskClick = (event) => {
|
|
251
175
|
if (loop != 0) {
|
|
252
176
|
showMaskRef.value = false;
|
|
@@ -254,55 +178,46 @@ const _sfc_main$1 = create$1({
|
|
|
254
178
|
event.stopPropagation();
|
|
255
179
|
event.preventDefault();
|
|
256
180
|
};
|
|
181
|
+
const swipeDelClick = (event) => {
|
|
182
|
+
emit("swipeDel", event, props.item);
|
|
183
|
+
event.stopPropagation();
|
|
184
|
+
};
|
|
185
|
+
const swipestart = () => {
|
|
186
|
+
moveRef.value = false;
|
|
187
|
+
};
|
|
188
|
+
const swipemove = () => {
|
|
189
|
+
moveRef.value = true;
|
|
190
|
+
};
|
|
257
191
|
return {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
192
|
+
renderCompontent,
|
|
193
|
+
showMaskRef,
|
|
194
|
+
clickItem,
|
|
195
|
+
editClick,
|
|
196
|
+
delClick,
|
|
197
|
+
delLongClick,
|
|
261
198
|
holddownstart,
|
|
262
199
|
holddownmove,
|
|
263
200
|
holddownend,
|
|
264
|
-
showMaskRef,
|
|
265
|
-
delClick,
|
|
266
201
|
copyCLick,
|
|
267
202
|
hideMaskClick,
|
|
268
203
|
setDefault,
|
|
269
|
-
maskClick
|
|
204
|
+
maskClick,
|
|
205
|
+
swipeDelClick,
|
|
206
|
+
swipestart,
|
|
207
|
+
swipemove
|
|
270
208
|
};
|
|
271
209
|
}
|
|
272
210
|
});
|
|
273
|
-
const _hoisted_1 = {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
], -1);
|
|
279
|
-
const _hoisted_3 = [
|
|
280
|
-
_hoisted_2
|
|
281
|
-
];
|
|
282
|
-
const _hoisted_4 = /* @__PURE__ */ createElementVNode("div", { class: "nut-address-list-mask-contain" }, [
|
|
283
|
-
/* @__PURE__ */ createTextVNode(" 设置"),
|
|
284
|
-
/* @__PURE__ */ createElementVNode("br"),
|
|
285
|
-
/* @__PURE__ */ createTextVNode("默认 ")
|
|
286
|
-
], -1);
|
|
287
|
-
const _hoisted_5 = [
|
|
288
|
-
_hoisted_4
|
|
289
|
-
];
|
|
290
|
-
const _hoisted_6 = /* @__PURE__ */ createElementVNode("div", { class: "nut-address-list-mask-contain" }, [
|
|
291
|
-
/* @__PURE__ */ createTextVNode(" 删除"),
|
|
292
|
-
/* @__PURE__ */ createElementVNode("br"),
|
|
293
|
-
/* @__PURE__ */ createTextVNode("地址 ")
|
|
294
|
-
], -1);
|
|
295
|
-
const _hoisted_7 = [
|
|
296
|
-
_hoisted_6
|
|
297
|
-
];
|
|
211
|
+
const _hoisted_1 = {
|
|
212
|
+
key: 0,
|
|
213
|
+
class: "nut-address-list-general"
|
|
214
|
+
};
|
|
215
|
+
const _hoisted_2 = { class: "nut-address-list-swipe" };
|
|
298
216
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
299
|
-
const
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
onDelIcon: _ctx.delShellClick,
|
|
304
|
-
onEditIcon: _ctx.editShellClick,
|
|
305
|
-
onItemClick: _ctx.itemShellClick,
|
|
217
|
+
const _component_nut_button = resolveComponent("nut-button");
|
|
218
|
+
const _component_nut_swipe = resolveComponent("nut-swipe");
|
|
219
|
+
return !_ctx.swipeEdition ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
220
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderCompontent()), {
|
|
306
221
|
onTouchstart: _ctx.holddownstart,
|
|
307
222
|
onTouchend: _ctx.holddownend,
|
|
308
223
|
onTouchmove: _ctx.holddownmove
|
|
@@ -317,7 +232,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
317
232
|
renderSlot(_ctx.$slots, "contentAddrs")
|
|
318
233
|
]),
|
|
319
234
|
_: 3
|
|
320
|
-
},
|
|
235
|
+
}, 40, ["onTouchstart", "onTouchend", "onTouchmove"])),
|
|
321
236
|
_ctx.longPress && _ctx.showMaskRef ? (openBlock(), createElementBlock("div", {
|
|
322
237
|
key: 0,
|
|
323
238
|
class: "nut-address-list-general__mask",
|
|
@@ -327,15 +242,15 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
327
242
|
createElementVNode("div", {
|
|
328
243
|
class: "nut-address-list-general__mask-copy",
|
|
329
244
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.copyCLick && _ctx.copyCLick(...args))
|
|
330
|
-
},
|
|
245
|
+
}, " 复制地址 "),
|
|
331
246
|
createElementVNode("div", {
|
|
332
247
|
class: "nut-address-list-general__mask-set",
|
|
333
248
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.setDefault && _ctx.setDefault(...args))
|
|
334
|
-
},
|
|
249
|
+
}, " 设置默认 "),
|
|
335
250
|
createElementVNode("div", {
|
|
336
251
|
class: "nut-address-list-general__mask-del",
|
|
337
|
-
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.
|
|
338
|
-
},
|
|
252
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.delLongClick && _ctx.delLongClick(...args))
|
|
253
|
+
}, " 删除地址 ")
|
|
339
254
|
])
|
|
340
255
|
])) : createCommentVNode("", true),
|
|
341
256
|
_ctx.showMaskRef ? (openBlock(), createElementBlock("div", {
|
|
@@ -343,7 +258,43 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
343
258
|
class: "nut-address-list__mask-bottom",
|
|
344
259
|
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.hideMaskClick && _ctx.hideMaskClick(...args))
|
|
345
260
|
})) : createCommentVNode("", true)
|
|
346
|
-
])
|
|
261
|
+
])) : (openBlock(), createBlock(_component_nut_swipe, { key: 1 }, {
|
|
262
|
+
right: withCtx(() => [
|
|
263
|
+
renderSlot(_ctx.$slots, "swiperightbtn", {}, () => [
|
|
264
|
+
createVNode(_component_nut_button, {
|
|
265
|
+
shape: "square",
|
|
266
|
+
style: { "height": "100%" },
|
|
267
|
+
type: "danger",
|
|
268
|
+
onClick: _ctx.swipeDelClick
|
|
269
|
+
}, {
|
|
270
|
+
default: withCtx(() => [
|
|
271
|
+
createTextVNode("删除")
|
|
272
|
+
]),
|
|
273
|
+
_: 1
|
|
274
|
+
}, 8, ["onClick"])
|
|
275
|
+
])
|
|
276
|
+
]),
|
|
277
|
+
default: withCtx(() => [
|
|
278
|
+
createElementVNode("div", _hoisted_2, [
|
|
279
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderCompontent()), {
|
|
280
|
+
onTouchmove: _ctx.swipemove,
|
|
281
|
+
onTouchstart: _ctx.swipestart
|
|
282
|
+
}, {
|
|
283
|
+
contentTop: withCtx(() => [
|
|
284
|
+
renderSlot(_ctx.$slots, "contentInfo")
|
|
285
|
+
]),
|
|
286
|
+
contentIcon: withCtx(() => [
|
|
287
|
+
renderSlot(_ctx.$slots, "contentIcons")
|
|
288
|
+
]),
|
|
289
|
+
contentAddr: withCtx(() => [
|
|
290
|
+
renderSlot(_ctx.$slots, "contentAddrs")
|
|
291
|
+
]),
|
|
292
|
+
_: 3
|
|
293
|
+
}, 40, ["onTouchmove", "onTouchstart"]))
|
|
294
|
+
])
|
|
295
|
+
]),
|
|
296
|
+
_: 3
|
|
297
|
+
}));
|
|
347
298
|
}
|
|
348
299
|
const GeneralShell = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
349
300
|
const { componentName, create, translate } = createComponent("address-list");
|
|
@@ -365,17 +316,16 @@ const _sfc_main = create({
|
|
|
365
316
|
type: Boolean,
|
|
366
317
|
default: true
|
|
367
318
|
},
|
|
368
|
-
|
|
319
|
+
dataOptions: {
|
|
369
320
|
type: Object,
|
|
370
321
|
default: {}
|
|
371
322
|
}
|
|
372
323
|
},
|
|
373
324
|
components: {
|
|
374
|
-
SwipeShell,
|
|
375
325
|
GeneralShell,
|
|
376
326
|
[Button.name]: Button
|
|
377
327
|
},
|
|
378
|
-
emits: ["delIcon", "editIcon", "
|
|
328
|
+
emits: ["delIcon", "editIcon", "clickItem", "longCopy", "longSet", "longDel", "swipeDel", "add"],
|
|
379
329
|
setup(props, { emit }) {
|
|
380
330
|
const dataArray = ref([]);
|
|
381
331
|
const dataInfo = reactive({
|
|
@@ -392,9 +342,9 @@ const _sfc_main = create({
|
|
|
392
342
|
};
|
|
393
343
|
});
|
|
394
344
|
const trowelData = () => {
|
|
395
|
-
if (Object.keys(props.
|
|
345
|
+
if (Object.keys(props.dataOptions).length > 0) {
|
|
396
346
|
dataArray.value = props.data.map((item) => {
|
|
397
|
-
return floatData(dataInfo, item, props.
|
|
347
|
+
return floatData(dataInfo, item, props.dataOptions);
|
|
398
348
|
});
|
|
399
349
|
}
|
|
400
350
|
};
|
|
@@ -412,7 +362,7 @@ const _sfc_main = create({
|
|
|
412
362
|
event.stopPropagation();
|
|
413
363
|
};
|
|
414
364
|
const clickContentItem = (event, item) => {
|
|
415
|
-
emit("
|
|
365
|
+
emit("clickItem", event, item);
|
|
416
366
|
event.stopPropagation();
|
|
417
367
|
};
|
|
418
368
|
const clickLongCopy = (event, item) => {
|
|
@@ -455,63 +405,24 @@ const _sfc_main = create({
|
|
|
455
405
|
});
|
|
456
406
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
457
407
|
const _component_general_shell = resolveComponent("general-shell");
|
|
458
|
-
const _component_swipe_shell = resolveComponent("swipe-shell");
|
|
459
408
|
const _component_nut_button = resolveComponent("nut-button");
|
|
460
409
|
return openBlock(), createElementBlock("div", {
|
|
461
410
|
class: normalizeClass(_ctx.classes)
|
|
462
411
|
}, [
|
|
463
|
-
|
|
412
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dataArray, (item, index2) => {
|
|
464
413
|
return openBlock(), createBlock(_component_general_shell, {
|
|
465
414
|
key: index2,
|
|
466
415
|
item,
|
|
467
416
|
longPress: _ctx.longPress,
|
|
417
|
+
swipeEdition: _ctx.swipeEdition,
|
|
468
418
|
onDelIcon: _ctx.clickDelIcon,
|
|
469
419
|
onEditIcon: _ctx.clickEditIcon,
|
|
470
|
-
|
|
420
|
+
onClickItem: _ctx.clickContentItem,
|
|
471
421
|
onSwipeDel: _ctx.clickSwipeDel,
|
|
472
422
|
onLongCopy: _ctx.clickLongCopy,
|
|
473
423
|
onLongSet: _ctx.clickLongSet,
|
|
474
424
|
onLongDel: _ctx.clickLongDel
|
|
475
|
-
}, createSlots({
|
|
476
|
-
_ctx.longPress ? {
|
|
477
|
-
name: "contentInfo",
|
|
478
|
-
fn: withCtx(() => [
|
|
479
|
-
renderSlot(_ctx.$slots, "iteminfos")
|
|
480
|
-
]),
|
|
481
|
-
key: "0"
|
|
482
|
-
} : void 0,
|
|
483
|
-
_ctx.longPress ? {
|
|
484
|
-
name: "contentIcons",
|
|
485
|
-
fn: withCtx(() => [
|
|
486
|
-
renderSlot(_ctx.$slots, "itemicon")
|
|
487
|
-
]),
|
|
488
|
-
key: "1"
|
|
489
|
-
} : void 0,
|
|
490
|
-
_ctx.longPress ? {
|
|
491
|
-
name: "contentAddrs",
|
|
492
|
-
fn: withCtx(() => [
|
|
493
|
-
renderSlot(_ctx.$slots, "itemaddr")
|
|
494
|
-
]),
|
|
495
|
-
key: "2"
|
|
496
|
-
} : void 0,
|
|
497
|
-
_ctx.longPress ? {
|
|
498
|
-
name: "longpressAll",
|
|
499
|
-
fn: withCtx(() => [
|
|
500
|
-
renderSlot(_ctx.$slots, "longpressbtns")
|
|
501
|
-
]),
|
|
502
|
-
key: "3"
|
|
503
|
-
} : void 0
|
|
504
|
-
]), 1032, ["item", "longPress", "onDelIcon", "onEditIcon", "onItemClick", "onSwipeDel", "onLongCopy", "onLongSet", "onLongDel"]);
|
|
505
|
-
}), 128)) : createCommentVNode("", true),
|
|
506
|
-
_ctx.swipeEdition ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.dataArray, (item, index2) => {
|
|
507
|
-
return openBlock(), createBlock(_component_swipe_shell, {
|
|
508
|
-
key: index2,
|
|
509
|
-
item,
|
|
510
|
-
onDelIcon: _ctx.clickDelIcon,
|
|
511
|
-
onEditIcon: _ctx.clickEditIcon,
|
|
512
|
-
onItemClick: _ctx.clickContentItem,
|
|
513
|
-
onSwipeDel: _ctx.clickSwipeDel
|
|
514
|
-
}, {
|
|
425
|
+
}, createSlots({
|
|
515
426
|
contentInfo: withCtx(() => [
|
|
516
427
|
renderSlot(_ctx.$slots, "iteminfos")
|
|
517
428
|
]),
|
|
@@ -521,14 +432,26 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
521
432
|
contentAddrs: withCtx(() => [
|
|
522
433
|
renderSlot(_ctx.$slots, "itemaddr")
|
|
523
434
|
]),
|
|
524
|
-
swiperightbtn: withCtx(() => [
|
|
525
|
-
renderSlot(_ctx.$slots, "swiperight")
|
|
526
|
-
]),
|
|
527
435
|
_: 2
|
|
528
|
-
},
|
|
529
|
-
|
|
436
|
+
}, [
|
|
437
|
+
_ctx.longPress ? {
|
|
438
|
+
name: "longpressAll",
|
|
439
|
+
fn: withCtx(() => [
|
|
440
|
+
renderSlot(_ctx.$slots, "longpressbtns")
|
|
441
|
+
]),
|
|
442
|
+
key: "0"
|
|
443
|
+
} : void 0,
|
|
444
|
+
_ctx.swipeEdition ? {
|
|
445
|
+
name: "swiperightbtn",
|
|
446
|
+
fn: withCtx(() => [
|
|
447
|
+
renderSlot(_ctx.$slots, "swiperight")
|
|
448
|
+
]),
|
|
449
|
+
key: "1"
|
|
450
|
+
} : void 0
|
|
451
|
+
]), 1032, ["item", "longPress", "swipeEdition", "onDelIcon", "onEditIcon", "onClickItem", "onSwipeDel", "onLongCopy", "onLongSet", "onLongDel"]);
|
|
452
|
+
}), 128)),
|
|
530
453
|
_ctx.showBottomButton ? (openBlock(), createElementBlock("div", {
|
|
531
|
-
key:
|
|
454
|
+
key: 0,
|
|
532
455
|
class: "nut-address-list__bottom",
|
|
533
456
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.addAddress && _ctx.addAddress(...args))
|
|
534
457
|
}, [
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { toRefs, reactive, computed, openBlock, createElementBlock, createElementVNode, normalizeClass, 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("animate");
|
|
11
6
|
const _sfc_main = create({
|