@nutui/nutui 3.3.1 → 4.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/{nutui.es.js → nutui.js} +3863 -3683
- package/dist/{nutui.umd.js → nutui.umd.cjs} +3776 -3703
- package/dist/packages/_es/ActionSheet.js +72 -65
- package/dist/packages/_es/Address.js +77 -72
- package/dist/packages/_es/AddressList.js +41 -34
- package/dist/packages/_es/Animate.js +8 -6
- package/dist/packages/_es/Audio.js +28 -23
- package/dist/packages/_es/AudioOperate.js +12 -6
- package/dist/packages/_es/Avatar.js +15 -64
- package/dist/packages/_es/AvatarGroup.js +7 -5
- package/dist/packages/_es/{BackTop.js → Backtop.js} +20 -22
- package/dist/packages/_es/Badge.js +9 -7
- package/dist/packages/_es/Barrage.js +13 -12
- package/dist/packages/_es/Button.js +14 -33
- package/dist/packages/_es/Calendar.js +15 -9
- package/dist/packages/_es/CalendarItem.js +9 -6
- package/dist/packages/_es/Card.js +14 -5
- package/dist/packages/_es/Cascader.js +31 -16
- package/dist/packages/_es/Category.js +10 -10
- package/dist/packages/_es/CategoryPane.js +22 -20
- package/dist/packages/_es/Cell.js +57 -60
- package/dist/packages/_es/CellGroup.js +7 -5
- package/dist/packages/_es/Checkbox.js +26 -40
- package/dist/packages/_es/CheckboxGroup.js +8 -6
- package/dist/packages/_es/CircleProgress.js +12 -10
- package/dist/packages/_es/Col.js +7 -5
- package/dist/packages/_es/Collapse.js +27 -47
- package/dist/packages/_es/CollapseItem.js +71 -83
- package/dist/packages/_es/Comment.js +33 -36
- package/dist/packages/_es/ConfigProvider.js +23 -4
- package/dist/packages/_es/{CountDown.js → Countdown.js} +8 -6
- package/dist/packages/_es/{CountUp.js → Countup.js} +21 -19
- package/dist/packages/_es/DatePicker.js +31 -29
- package/dist/packages/_es/Dialog.js +66 -46
- package/dist/packages/_es/Divider.js +7 -5
- package/dist/packages/_es/Drag.js +8 -6
- package/dist/packages/_es/Ecard.js +17 -11
- package/dist/packages/_es/Elevator.js +23 -21
- package/dist/packages/_es/Ellipsis.js +11 -9
- package/dist/packages/_es/Empty.js +10 -8
- package/dist/packages/_es/FixedNav.js +84 -75
- package/dist/packages/_es/Form.js +149 -140
- package/dist/packages/_es/FormItem.js +14 -7
- package/dist/packages/_es/Grid.js +7 -5
- package/dist/packages/_es/GridItem.js +19 -42
- package/dist/packages/_es/Icon.js +8 -44
- package/dist/packages/_es/Image.js +22 -10
- package/dist/packages/_es/ImagePreview.js +72 -55
- package/dist/packages/_es/Indicator.js +7 -5
- package/dist/packages/_es/InfiniteLoading.js +56 -124
- package/dist/packages/_es/Input.js +57 -186
- package/dist/packages/_es/InputNumber.js +43 -35
- package/dist/packages/_es/Invoice.js +29 -10
- package/dist/packages/_es/Layout.js +5 -3
- package/dist/packages/_es/List.js +7 -5
- package/dist/packages/_es/Menu.js +22 -13
- package/dist/packages/_es/MenuItem.js +25 -24
- package/dist/packages/_es/Navbar.js +47 -37
- package/dist/packages/_es/{NoticeBar.js → Noticebar.js} +52 -65
- package/dist/packages/_es/Notify.js +12 -7
- package/dist/packages/_es/NumberKeyboard.js +123 -112
- package/dist/packages/_es/{OverLay.js → Overlay.js} +7 -5
- package/dist/packages/_es/Pagination.js +7 -5
- package/dist/packages/_es/Picker.js +307 -304
- package/dist/packages/_es/Popover.js +34 -24
- package/dist/packages/_es/Popup.js +9 -152
- package/dist/packages/_es/Price.js +9 -12
- package/dist/packages/_es/Progress.js +18 -20
- package/dist/packages/_es/PullRefresh.js +222 -0
- package/dist/packages/_es/Radio.js +10 -103
- package/dist/packages/_es/RadioGroup.js +8 -44
- package/dist/packages/_es/Range.js +22 -20
- package/dist/packages/_es/Rate.js +153 -166
- package/dist/packages/_es/Row.js +7 -5
- package/dist/packages/_es/{SearchBar.js → Searchbar.js} +16 -15
- package/dist/packages/_es/ShortPassword.js +53 -121
- package/dist/packages/_es/{SideNavBar.js → SideNavbar.js} +11 -9
- package/dist/packages/_es/{SideNavBarItem.js → SideNavbarItem.js} +12 -10
- package/dist/packages/_es/Signature.js +12 -6
- package/dist/packages/_es/Skeleton.js +95 -85
- package/dist/packages/_es/Sku.js +28 -24
- package/dist/packages/_es/Step.js +28 -41
- package/dist/packages/_es/Steps.js +5 -3
- package/dist/packages/_es/Sticky.js +9 -150
- package/dist/packages/_es/{SubSideNavBar.js → SubSideNavbar.js} +18 -16
- package/dist/packages/_es/Swipe.js +8 -6
- package/dist/packages/_es/Swiper.js +121 -61
- package/dist/packages/_es/SwiperItem.js +8 -6
- package/dist/packages/_es/Switch.js +16 -28
- package/dist/packages/_es/TabPane.js +9 -7
- package/dist/packages/_es/Tabbar.js +21 -26
- package/dist/packages/_es/TabbarItem.js +39 -83
- package/dist/packages/_es/Table.js +15 -11
- package/dist/packages/_es/Tabs.js +33 -25
- package/dist/packages/_es/Tag.js +15 -9
- package/dist/packages/_es/{TextArea.js → Textarea.js} +8 -6
- package/dist/packages/_es/TimeDetail.js +12 -10
- package/dist/packages/_es/TimePannel.js +9 -7
- package/dist/packages/_es/TimeSelect.js +19 -11
- package/dist/packages/_es/Toast.js +25 -26
- package/dist/packages/_es/Tour.js +270 -0
- package/dist/packages/_es/TrendArrow.js +24 -43
- package/dist/packages/_es/Uploader.js +98 -61
- package/dist/packages/_es/Video.js +24 -22
- package/dist/packages/_es/{WaterMark.js → Watermark.js} +7 -5
- package/dist/packages/_es/{plugin-vue_export-helper.js → _plugin-vue_export-helper.bf57b04e.js} +5 -3
- package/dist/packages/_es/{common.js → common.4b8c0eb2.js} +7 -11
- package/dist/packages/_es/{component.js → component.fb9ce7ad.js} +19 -2
- package/dist/packages/_es/index.1be0d1a5.js +35 -0
- package/dist/packages/_es/{index5.js → index.3dd88014.js} +72 -70
- package/dist/packages/_es/index.4ed42c18.js +239 -0
- package/dist/packages/_es/{index.js → index.51da6a3b.js} +4 -2
- package/dist/packages/_es/{index3.js → index.617ba243.js} +4 -2
- package/dist/packages/_es/{index4.js → index.983240fc.js} +4 -2
- package/dist/packages/_es/{index2.js → index.af02c42d.js} +4 -2
- package/dist/packages/_es/index.vue_vue_type_script_lang.43efbcd1.js +102 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang.6e735bb8.js +50 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang.ccc15054.js +156 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang.de4367bf.js +12 -0
- package/dist/packages/_es/{interceptor.js → interceptor.ba45688c.js} +5 -3
- package/dist/packages/_es/{mountComponent.js → mountComponent.dddeb43c.js} +5 -3
- package/dist/packages/_es/{pxCheck.js → pxCheck.09969b22.js} +4 -2
- package/dist/packages/_es/{raf.js → raf.42b42f63.js} +14 -3
- package/dist/packages/_es/renderIcon.f32ed340.js +14 -0
- package/dist/packages/_es/style.css +2 -2
- package/dist/packages/actionsheet/index.js +3 -0
- package/dist/packages/actionsheet/index.scss +16 -32
- package/dist/packages/address/index.js +4 -0
- package/dist/packages/address/index.scss +28 -52
- package/dist/packages/addresslist/index.js +2 -0
- package/dist/packages/addresslist/index.scss +3 -3
- package/dist/packages/animate/index.js +1 -0
- package/dist/packages/animate/index.scss +1 -1
- package/dist/packages/audio/index.js +2 -0
- package/dist/packages/audio/index.scss +9 -9
- package/dist/packages/audiooperate/index.js +2 -0
- package/dist/packages/avatar/index.js +1 -0
- package/dist/packages/avatar/index.scss +1 -12
- package/dist/packages/avatargroup/index.js +1 -0
- package/dist/packages/backtop/index.js +1 -0
- package/dist/packages/badge/index.js +1 -0
- package/dist/packages/badge/index.scss +17 -17
- package/dist/packages/barrage/index.js +1 -0
- package/dist/packages/barrage/index.scss +2 -22
- package/dist/packages/button/index.js +1 -0
- package/dist/packages/button/index.scss +2 -1
- package/dist/packages/calendar/index.js +4 -0
- package/dist/packages/calendar/index.scss +39 -43
- package/dist/packages/calendaritem/index.js +1 -0
- package/dist/packages/card/index.js +3 -0
- package/dist/packages/cascader/index.js +6 -0
- package/dist/packages/cascader/index.scss +1 -1
- package/dist/packages/category/index.js +1 -0
- package/dist/packages/categorypane/index.js +1 -0
- package/dist/packages/categorypane/index.scss +2 -2
- package/dist/packages/cell/index.js +1 -0
- package/dist/packages/cellgroup/index.js +1 -0
- package/dist/packages/checkbox/index.js +1 -0
- package/dist/packages/checkboxgroup/index.js +1 -0
- package/dist/packages/circleprogress/index.js +1 -0
- package/dist/packages/circleprogress/index.scss +5 -5
- package/dist/packages/col/index.js +1 -0
- package/dist/packages/collapse/index.js +1 -0
- package/dist/packages/collapseitem/index.js +1 -0
- package/dist/packages/collapseitem/index.scss +54 -77
- package/dist/packages/comment/index.js +2 -0
- package/dist/packages/comment/index.scss +1 -3
- package/dist/packages/configprovider/index.js +1 -0
- package/dist/packages/countdown/index.js +1 -0
- package/dist/packages/countup/index.js +1 -0
- package/dist/packages/countup/index.scss +8 -38
- package/dist/packages/datepicker/index.js +4 -0
- package/dist/packages/datepicker/index.scss +1 -1
- package/dist/packages/dialog/index.js +4 -0
- package/dist/packages/divider/index.js +1 -0
- package/dist/packages/drag/index.js +1 -0
- package/dist/packages/drag/index.scss +1 -1
- package/dist/packages/ecard/index.js +2 -0
- package/dist/packages/elevator/index.js +1 -0
- package/dist/packages/ellipsis/index.js +1 -0
- package/dist/packages/ellipsis/index.scss +3 -3
- package/dist/packages/empty/index.js +1 -0
- package/dist/packages/empty/index.scss +2 -2
- package/dist/packages/fixednav/index.js +2 -0
- package/dist/packages/fixednav/index.scss +5 -5
- package/dist/packages/form/index.js +2 -0
- package/dist/packages/formitem/index.js +2 -0
- package/dist/packages/grid/index.js +1 -0
- package/dist/packages/griditem/index.js +1 -0
- package/dist/packages/icon/index.js +1 -0
- package/dist/packages/icon/index.scss +1 -131
- package/dist/packages/image/index.js +1 -0
- package/dist/packages/imagepreview/index.js +6 -0
- package/dist/packages/imagepreview/index.scss +4 -4
- package/dist/packages/indicator/index.js +1 -0
- package/dist/packages/infiniteloading/index.js +1 -0
- package/dist/packages/infiniteloading/index.scss +15 -41
- package/dist/packages/input/index.js +1 -0
- package/dist/packages/input/index.scss +20 -18
- package/dist/packages/inputnumber/index.js +1 -0
- package/dist/packages/inputnumber/index.scss +4 -2
- package/dist/packages/invoice/index.js +8 -0
- package/dist/packages/layout/index.js +1 -0
- package/dist/packages/list/index.js +1 -0
- package/dist/packages/locale/index.d.ts +1 -1
- package/dist/packages/locale/lang/baseLang.d.ts +5 -0
- package/dist/packages/locale/lang/baseLang.ff3ed8bc.js +10 -0
- package/dist/packages/locale/lang/en-US.d.ts +5 -0
- package/dist/packages/locale/lang/en-US.js +61 -51
- package/dist/packages/locale/lang/id-ID.d.ts +5 -0
- package/dist/packages/locale/lang/id-ID.js +61 -51
- package/dist/packages/locale/lang/index.js +25 -38
- package/dist/packages/locale/lang/zh-CN.d.ts +5 -0
- package/dist/packages/locale/lang/zh-CN.js +60 -50
- package/dist/packages/locale/lang/zh-TW.d.ts +5 -0
- package/dist/packages/locale/lang/zh-TW.js +60 -50
- package/dist/packages/menu/index.js +1 -0
- package/dist/packages/menu/index.scss +1 -0
- package/dist/packages/menuitem/index.js +3 -0
- package/dist/packages/menuitem/index.scss +4 -2
- package/dist/packages/navbar/index.js +1 -0
- package/dist/packages/navbar/index.scss +5 -1
- package/dist/packages/noticebar/index.js +1 -0
- package/dist/packages/noticebar/index.scss +15 -16
- package/dist/packages/notify/index.js +3 -0
- package/dist/packages/notify/index.scss +0 -20
- package/dist/packages/numberkeyboard/index.js +3 -0
- package/dist/packages/numberkeyboard/index.scss +45 -49
- package/dist/packages/overlay/index.js +1 -0
- package/dist/packages/pagination/index.js +1 -0
- package/dist/packages/picker/index.js +3 -0
- package/dist/packages/picker/index.scss +19 -56
- package/dist/packages/popover/index.js +3 -0
- package/dist/packages/popover/index.scss +7 -0
- package/dist/packages/popup/index.js +2 -0
- package/dist/packages/popup/index.scss +6 -6
- package/dist/packages/price/index.js +1 -0
- package/dist/packages/price/index.scss +0 -9
- package/dist/packages/progress/index.js +1 -0
- package/dist/packages/pullrefresh/index.js +1 -0
- package/dist/packages/pullrefresh/index.scss +30 -0
- package/dist/packages/radio/index.js +1 -0
- package/dist/packages/radiogroup/index.js +1 -0
- package/dist/packages/radiogroup/index.scss +1 -1
- package/dist/packages/range/index.js +1 -0
- package/dist/packages/range/index.scss +4 -4
- package/dist/packages/rate/index.js +1 -0
- package/dist/packages/row/index.js +1 -0
- package/dist/packages/searchbar/index.js +1 -0
- package/dist/packages/shortpassword/index.js +3 -0
- package/dist/packages/shortpassword/index.scss +15 -122
- package/dist/packages/sidenavbar/index.js +1 -0
- package/dist/packages/sidenavbar/index.scss +1 -1
- package/dist/packages/sidenavbaritem/index.js +1 -0
- package/dist/packages/sidenavbaritem/index.scss +3 -2
- package/dist/packages/signature/index.js +2 -0
- package/dist/packages/skeleton/index.js +2 -0
- package/dist/packages/skeleton/index.scss +11 -11
- package/dist/packages/sku/index.js +5 -0
- package/dist/packages/step/index.js +1 -0
- package/dist/packages/step/index.scss +7 -8
- package/dist/packages/steps/index.js +1 -0
- package/dist/packages/sticky/index.js +1 -0
- package/dist/packages/subsidenavbar/index.js +1 -0
- package/dist/packages/subsidenavbar/index.scss +2 -2
- package/dist/packages/swipe/index.js +1 -0
- package/dist/packages/swiper/index.js +1 -0
- package/dist/packages/swiperitem/index.js +1 -0
- package/dist/packages/switch/index.js +1 -0
- package/dist/packages/switch/index.scss +5 -15
- package/dist/packages/tabbar/index.js +1 -0
- package/dist/packages/tabbaritem/index.js +2 -0
- package/dist/packages/tabbaritem/index.scss +0 -29
- package/dist/packages/table/index.js +1 -0
- package/dist/packages/tabpane/index.js +1 -0
- package/dist/packages/tabpane/index.scss +2 -2
- package/dist/packages/tabs/index.js +2 -0
- package/dist/packages/tabs/index.scss +4 -4
- package/dist/packages/tag/index.js +1 -0
- package/dist/packages/textarea/index.js +1 -0
- package/dist/packages/textarea/index.scss +1 -1
- package/dist/packages/timedetail/index.js +1 -0
- package/dist/packages/timedetail/index.scss +2 -2
- package/dist/packages/timepannel/index.js +1 -0
- package/dist/packages/timepannel/index.scss +2 -2
- package/dist/packages/timeselect/index.js +3 -0
- package/dist/packages/timeselect/index.scss +2 -2
- package/dist/packages/toast/index.js +1 -0
- package/dist/packages/tour/index.js +4 -0
- package/dist/packages/tour/index.scss +78 -0
- package/dist/packages/trendarrow/index.js +1 -0
- package/dist/packages/trendarrow/index.scss +1 -1
- package/dist/packages/uploader/index.js +3 -0
- package/dist/packages/uploader/index.scss +2 -0
- package/dist/packages/video/index.js +1 -0
- package/dist/packages/video/index.scss +11 -17
- package/dist/packages/watermark/index.js +1 -0
- package/dist/smartips/attributes.json +215 -447
- package/dist/smartips/tags.json +116 -171
- package/dist/smartips/web-types.json +382 -906
- package/dist/style.css +1 -1
- package/dist/style.js +4 -0
- package/dist/styles/animation/index.scss +0 -1
- package/dist/styles/css-variables.scss +920 -0
- package/dist/styles/themes/default.scss +54 -52
- package/dist/styles/themes/jdb.scss +54 -52
- package/dist/styles/themes/jddkh.scss +54 -52
- package/dist/styles/themes/jdt.scss +54 -52
- package/dist/styles/variables-jdb.scss +3 -3
- package/dist/styles/variables-jddkh.scss +3 -3
- package/dist/styles/variables-jdt.scss +3 -3
- package/dist/styles/variables-var.scss +854 -0
- package/dist/styles/variables.scss +7 -7
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +28 -20
- package/dist/types/__VUE/address/address-list.d.ts +30 -0
- package/dist/types/__VUE/address/index.vue.d.ts +33 -72
- package/dist/types/__VUE/address/type.d.ts +18 -0
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +3 -14
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +3 -14
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +3 -14
- package/dist/types/__VUE/addresslist/index.vue.d.ts +8 -9
- package/dist/types/__VUE/animate/index.vue.d.ts +16 -15
- package/dist/types/__VUE/animate/type.d.ts +2 -6
- package/dist/types/__VUE/audio/index.vue.d.ts +19 -17
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +12 -7
- package/dist/types/__VUE/avatar/index.vue.d.ts +14 -48
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +8 -9
- package/dist/types/__VUE/backtop/index.vue.d.ts +8 -9
- package/dist/types/__VUE/badge/index.vue.d.ts +9 -10
- package/dist/types/__VUE/barrage/index.vue.d.ts +7 -8
- package/dist/types/__VUE/button/index.vue.d.ts +21 -47
- package/dist/types/__VUE/button/type.d.ts +3 -7
- package/dist/types/__VUE/calendar/index.vue.d.ts +13 -13
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +23 -22
- package/dist/types/__VUE/calendaritem/type.d.ts +70 -0
- package/dist/types/__VUE/card/index.vue.d.ts +6 -7
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +10 -9
- package/dist/types/__VUE/cascader/helper.d.ts +0 -4
- package/dist/types/__VUE/cascader/index.vue.d.ts +12 -11
- package/dist/types/__VUE/cascader/tree.d.ts +0 -4
- package/dist/types/__VUE/cascader/types.d.ts +6 -10
- package/dist/types/__VUE/category/index.vue.d.ts +18 -14
- package/dist/types/__VUE/categorypane/index.vue.d.ts +23 -14
- package/dist/types/__VUE/cell/index.vue.d.ts +13 -32
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +6 -7
- package/dist/types/__VUE/checkbox/common.d.ts +2 -59
- package/dist/types/__VUE/checkbox/index.vue.d.ts +6 -113
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +6 -7
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +18 -14
- package/dist/types/__VUE/col/index.vue.d.ts +6 -7
- package/dist/types/__VUE/collapse/index.vue.d.ts +16 -81
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +52 -24
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +7 -17
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +3 -14
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +29 -21
- package/dist/types/__VUE/comment/index.vue.d.ts +29 -19
- package/dist/types/__VUE/configprovider/common.d.ts +4 -4
- package/dist/types/__VUE/configprovider/index.vue.d.ts +15 -7
- package/dist/types/__VUE/countdown/index.vue.d.ts +11 -12
- package/dist/types/__VUE/countdown/util.d.ts +1 -5
- package/dist/types/__VUE/countup/index.vue.d.ts +13 -14
- package/dist/types/__VUE/datepicker/index.vue.d.ts +32 -168
- package/dist/types/__VUE/datepicker/type.d.ts +2 -6
- package/dist/types/__VUE/dialog/index.d.ts +0 -4
- package/dist/types/__VUE/dialog/index.vue.d.ts +19 -16
- package/dist/types/__VUE/divider/index.vue.d.ts +6 -7
- package/dist/types/__VUE/drag/index.vue.d.ts +6 -7
- package/dist/types/__VUE/ecard/index.vue.d.ts +15 -11
- package/dist/types/__VUE/elevator/index.vue.d.ts +14 -13
- package/dist/types/__VUE/elevator/type.d.ts +5 -0
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +14 -9
- package/dist/types/__VUE/empty/index.vue.d.ts +6 -7
- package/dist/types/__VUE/fixednav/common.d.ts +2 -5
- package/dist/types/__VUE/fixednav/index.vue.d.ts +10 -11
- package/dist/types/__VUE/form/common.d.ts +2 -6
- package/dist/types/__VUE/form/index.vue.d.ts +7 -8
- package/dist/types/__VUE/form/types.d.ts +3 -7
- package/dist/types/__VUE/formitem/common.d.ts +0 -0
- package/dist/types/__VUE/formitem/index.vue.d.ts +11 -11
- package/dist/types/__VUE/formitem/types.d.ts +0 -4
- package/dist/types/__VUE/grid/common.d.ts +2 -20
- package/dist/types/__VUE/grid/index.vue.d.ts +7 -23
- package/dist/types/__VUE/griditem/index.vue.d.ts +9 -42
- package/dist/types/__VUE/icon/index.vue.d.ts +6 -68
- package/dist/types/__VUE/image/index.vue.d.ts +15 -17
- package/dist/types/__VUE/image/type.d.ts +2 -6
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +10 -9
- package/dist/types/__VUE/imagepreview/index.d.ts +1 -5
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +14 -12
- package/dist/types/__VUE/imagepreview/types.d.ts +2 -6
- package/dist/types/__VUE/indicator/index.vue.d.ts +7 -8
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +18 -57
- package/dist/types/__VUE/input/index.vue.d.ts +42 -146
- package/dist/types/__VUE/input/type.d.ts +5 -9
- package/dist/types/__VUE/input/util.d.ts +0 -4
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +10 -29
- package/dist/types/__VUE/invoice/index.vue.d.ts +9 -10
- package/dist/types/__VUE/invoice/types.d.ts +6 -0
- package/dist/types/__VUE/layout/index.vue.d.ts +6 -7
- package/dist/types/__VUE/list/index.vue.d.ts +12 -12
- package/dist/types/__VUE/menu/index.vue.d.ts +10 -11
- package/dist/types/__VUE/menuitem/index.vue.d.ts +13 -21
- package/dist/types/__VUE/menuitem/type.d.ts +1 -5
- package/dist/types/__VUE/navbar/index.vue.d.ts +20 -22
- package/dist/types/__VUE/noticebar/index.vue.d.ts +38 -30
- package/dist/types/__VUE/notify/index.d.ts +0 -4
- package/dist/types/__VUE/notify/index.vue.d.ts +8 -9
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +27 -54
- package/dist/types/__VUE/overlay/index.vue.d.ts +10 -10
- package/dist/types/__VUE/pagination/index.vue.d.ts +6 -7
- package/dist/types/__VUE/picker/Column.vue.d.ts +41 -35
- package/dist/types/__VUE/picker/baseProps.d.ts +55 -0
- package/dist/types/__VUE/picker/common.d.ts +555 -0
- package/dist/types/__VUE/picker/doc.en.d.ts +88 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +60 -236
- package/dist/types/__VUE/picker/types.d.ts +1 -5
- package/dist/types/__VUE/picker/usePicker.d.ts +17 -0
- package/dist/types/__VUE/popover/index.vue.d.ts +24 -20
- package/dist/types/__VUE/popover/type.d.ts +5 -8
- package/dist/types/__VUE/popup/common.d.ts +2 -6
- package/dist/types/__VUE/popup/index.vue.d.ts +9 -10
- package/dist/types/__VUE/popup/props.d.ts +0 -4
- package/dist/types/__VUE/price/index.vue.d.ts +9 -19
- package/dist/types/__VUE/progress/index.vue.d.ts +9 -28
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +126 -0
- package/dist/types/__VUE/radio/index.vue.d.ts +9 -46
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +9 -10
- package/dist/types/__VUE/range/index.vue.d.ts +22 -21
- package/dist/types/__VUE/range/type.d.ts +1 -5
- package/dist/types/__VUE/rate/index.vue.d.ts +28 -55
- package/dist/types/__VUE/row/index.vue.d.ts +6 -7
- package/dist/types/__VUE/searchbar/index.vue.d.ts +25 -21
- package/dist/types/__VUE/searchbar/type.d.ts +1 -5
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +10 -44
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +7 -7
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +6 -7
- package/dist/types/__VUE/signature/index.vue.d.ts +13 -9
- package/dist/types/__VUE/skeleton/common.d.ts +3 -6
- package/dist/types/__VUE/skeleton/index.vue.d.ts +8 -9
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +3 -14
- package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +9 -19
- package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +10 -15
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +6 -17
- package/dist/types/__VUE/sku/data.d.ts +22 -0
- package/dist/types/__VUE/sku/index.vue.d.ts +21 -21
- package/dist/types/__VUE/step/index.vue.d.ts +6 -34
- package/dist/types/__VUE/steps/index.vue.d.ts +7 -8
- package/dist/types/__VUE/sticky/index.vue.d.ts +9 -9
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +6 -7
- package/dist/types/__VUE/swipe/index.vue.d.ts +8 -7
- package/dist/types/__VUE/swiper/index.vue.d.ts +18 -19
- package/dist/types/__VUE/swiper/use-touch.d.ts +16 -0
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +7 -7
- package/dist/types/__VUE/swiperitem/type.d.ts +5 -0
- package/dist/types/__VUE/switch/index.vue.d.ts +15 -43
- package/dist/types/__VUE/tabbar/index.vue.d.ts +16 -17
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +14 -69
- package/dist/types/__VUE/table/common.d.ts +2 -4
- package/dist/types/__VUE/table/index.vue.d.ts +7 -8
- package/dist/types/__VUE/table/renderColumn.d.ts +11 -5
- package/dist/types/__VUE/table/types.d.ts +0 -4
- package/dist/types/__VUE/tabpane/index.vue.d.ts +6 -7
- package/dist/types/__VUE/tabs/index.vue.d.ts +28 -18
- package/dist/types/__VUE/tag/index.vue.d.ts +15 -14
- package/dist/types/__VUE/tag/type.d.ts +1 -5
- package/dist/types/__VUE/textarea/index.vue.d.ts +15 -16
- package/dist/types/__VUE/timedetail/index.vue.d.ts +8 -9
- package/dist/types/__VUE/timepannel/index.vue.d.ts +7 -8
- package/dist/types/__VUE/timeselect/index.vue.d.ts +6 -7
- package/dist/types/__VUE/toast/index.d.ts +1 -5
- package/dist/types/__VUE/toast/index.vue.d.ts +19 -18
- package/dist/types/__VUE/tour/index.vue.d.ts +195 -0
- package/dist/types/__VUE/tour/type.d.ts +2 -0
- package/dist/types/__VUE/trendarrow/index.vue.d.ts +7 -40
- package/dist/types/__VUE/uploader/index.vue.d.ts +18 -43
- package/dist/types/__VUE/uploader/type.d.ts +3 -7
- package/dist/types/__VUE/uploader/uploader.d.ts +0 -4
- package/dist/types/__VUE/video/index.vue.d.ts +25 -25
- package/dist/types/__VUE/watermark/index.vue.d.ts +9 -10
- package/dist/types/index.d.ts +113 -7
- package/dist/types/locale/index.d.ts +8 -0
- package/dist/types/locale/lang/baseLang.d.ts +93 -0
- package/dist/types/locale/lang/en-US.d.ts +109 -0
- package/dist/types/locale/lang/id-ID.d.ts +109 -0
- package/dist/types/locale/lang/zh-CN.d.ts +109 -0
- package/dist/types/locale/lang/zh-TW.d.ts +109 -0
- package/dist/types/utils/create/component.d.ts +7 -0
- package/dist/types/utils/create/index.d.ts +4 -0
- package/dist/types/utils/create/mountComponent.d.ts +4 -0
- package/dist/types/utils/create/renderIcon.d.ts +4 -0
- package/dist/types/utils/date.d.ts +12 -0
- package/dist/types/utils/interceptor.d.ts +6 -0
- package/dist/types/utils/pxCheck.d.ts +1 -0
- package/dist/types/utils/raf.d.ts +4 -0
- package/dist/types/utils/throttle.d.ts +2 -0
- package/dist/types/utils/unit.d.ts +6 -0
- package/dist/types/utils/useExpose/index.d.ts +1 -0
- package/dist/types/utils/useLockScroll/index.d.ts +1 -0
- package/dist/types/utils/useRect/index.d.ts +17 -0
- package/dist/types/utils/useRelation/useInject.d.ts +14 -0
- package/dist/types/utils/useRelation/useProvide.d.ts +8 -0
- package/dist/types/utils/useRelation/useRelation.d.ts +1 -0
- package/dist/types/utils/useRoute/index.d.ts +1 -0
- package/dist/types/utils/useScrollParent/index.d.ts +5 -0
- package/dist/types/utils/useTaroRect/index.d.ts +10 -0
- package/dist/types/utils/useTouch/index.d.ts +18 -0
- package/dist/types/utils/util.d.ts +25 -0
- package/package.json +43 -35
- package/dist/packages/_es/props.js +0 -80
- package/dist/packages/locale/lang/baseLang.js +0 -8
- package/dist/style.es.js +0 -2
- package/dist/styles/animation/icon.scss +0 -245
- package/dist/styles/font/config.json +0 -175
- package/dist/styles/font/demo.css +0 -539
- package/dist/styles/font/demo_index.html +0 -3063
- package/dist/styles/font/iconfont.css +0 -515
- package/dist/styles/font/iconfont.eot +0 -0
- package/dist/styles/font/iconfont.js +0 -66
- package/dist/styles/font/iconfont.json +0 -884
- package/dist/styles/font/iconfont.svg +0 -356
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/types/__VUE/rate/common.d.ts +0 -149
- package/dist/types/__VUE/tabs/common.d.ts +0 -95
- package/dist/types/nutui.d.ts +0 -104
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { c as createComponent } from "./component.js";
|
|
7
|
-
import { useSlots, computed, resolveComponent, openBlock,
|
|
8
|
-
import { p as popupProps } from "./
|
|
9
|
-
import {
|
|
6
|
+
import { c as createComponent } from "./component.fb9ce7ad.js";
|
|
7
|
+
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.4ed42c18.js";
|
|
9
|
+
import { Loading } from "@nutui/icons-vue";
|
|
10
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
|
|
10
11
|
import "../locale/lang";
|
|
11
|
-
|
|
12
|
+
import "./Overlay.js";
|
|
13
|
+
const { componentName, create } = createComponent("action-sheet");
|
|
12
14
|
const _sfc_main = create({
|
|
15
|
+
components: {
|
|
16
|
+
[Popup.name]: Popup,
|
|
17
|
+
Loading
|
|
18
|
+
},
|
|
13
19
|
props: {
|
|
14
20
|
...popupProps,
|
|
15
21
|
cancelTxt: {
|
|
@@ -89,71 +95,72 @@ const _sfc_main = create({
|
|
|
89
95
|
};
|
|
90
96
|
}
|
|
91
97
|
});
|
|
92
|
-
const _hoisted_1 = {
|
|
93
|
-
const _hoisted_2 = {
|
|
98
|
+
const _hoisted_1 = {
|
|
94
99
|
key: 0,
|
|
95
|
-
class: "nut-
|
|
100
|
+
class: "nut-action-sheet__title"
|
|
96
101
|
};
|
|
97
|
-
const
|
|
98
|
-
const
|
|
102
|
+
const _hoisted_2 = { key: 1 };
|
|
103
|
+
const _hoisted_3 = {
|
|
99
104
|
key: 0,
|
|
100
|
-
class: "nut-
|
|
105
|
+
class: "nut-action-sheet__item nut-action-sheet__desc"
|
|
101
106
|
};
|
|
102
|
-
const
|
|
107
|
+
const _hoisted_4 = {
|
|
103
108
|
key: 1,
|
|
104
|
-
class: "nut-
|
|
109
|
+
class: "nut-action-sheet__menu"
|
|
105
110
|
};
|
|
106
|
-
const
|
|
107
|
-
const
|
|
108
|
-
const
|
|
111
|
+
const _hoisted_5 = ["onClick"];
|
|
112
|
+
const _hoisted_6 = { key: 1 };
|
|
113
|
+
const _hoisted_7 = { class: "nut-action-sheet__subdesc" };
|
|
109
114
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
110
|
-
const
|
|
115
|
+
const _component_Loading = resolveComponent("Loading");
|
|
111
116
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
112
|
-
return openBlock(),
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
])
|
|
153
|
-
])
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
117
|
+
return openBlock(), createBlock(_component_nut_popup, {
|
|
118
|
+
visible: _ctx.visible,
|
|
119
|
+
isWrapTeleport: _ctx.isWrapTeleport,
|
|
120
|
+
position: "bottom",
|
|
121
|
+
round: "",
|
|
122
|
+
onClickOverlay: _ctx.close,
|
|
123
|
+
closeOnClickOverlay: _ctx.closeAbled
|
|
124
|
+
}, {
|
|
125
|
+
default: withCtx(() => [
|
|
126
|
+
createElementVNode("view", {
|
|
127
|
+
class: normalizeClass(_ctx.classes)
|
|
128
|
+
}, [
|
|
129
|
+
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
130
|
+
renderSlot(_ctx.$slots, "default"),
|
|
131
|
+
!_ctx.slotDefault ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
132
|
+
_ctx.description ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
|
|
133
|
+
_ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
134
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index2) => {
|
|
135
|
+
return openBlock(), createElementBlock("view", {
|
|
136
|
+
class: normalizeClass(["nut-action-sheet__item", {
|
|
137
|
+
"nut-action-sheet__item--disabled": item.disable,
|
|
138
|
+
"nut-action-sheet__item--loading": item.loading
|
|
139
|
+
}]),
|
|
140
|
+
style: normalizeStyle({ color: _ctx.isHighlight(item) || item.color }),
|
|
141
|
+
key: index2,
|
|
142
|
+
onClick: ($event) => _ctx.chooseItem(item, index2)
|
|
143
|
+
}, [
|
|
144
|
+
item.loading ? (openBlock(), createBlock(_component_Loading, {
|
|
145
|
+
key: 0,
|
|
146
|
+
name: "loading"
|
|
147
|
+
})) : (openBlock(), createElementBlock("view", _hoisted_6, toDisplayString(item[_ctx.optionTag]), 1)),
|
|
148
|
+
createElementVNode("view", _hoisted_7, toDisplayString(item[_ctx.optionSubTag]), 1)
|
|
149
|
+
], 14, _hoisted_5);
|
|
150
|
+
}), 128))
|
|
151
|
+
])) : createCommentVNode("", true),
|
|
152
|
+
_ctx.cancelTxt ? (openBlock(), createElementBlock("view", {
|
|
153
|
+
key: 2,
|
|
154
|
+
class: "nut-action-sheet__cancel",
|
|
155
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.cancelActionSheet && _ctx.cancelActionSheet(...args))
|
|
156
|
+
}, toDisplayString(_ctx.cancelTxt), 1)) : createCommentVNode("", true)
|
|
157
|
+
])) : createCommentVNode("", true)
|
|
158
|
+
], 2)
|
|
159
|
+
]),
|
|
160
|
+
_: 3
|
|
161
|
+
}, 8, ["visible", "isWrapTeleport", "onClickOverlay", "closeOnClickOverlay"]);
|
|
157
162
|
}
|
|
158
|
-
|
|
159
|
-
export {
|
|
163
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
164
|
+
export {
|
|
165
|
+
index as default
|
|
166
|
+
};
|
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, computed, reactive, watch, toRefs,
|
|
7
|
-
import { c as createComponent } from "./component.js";
|
|
8
|
-
import { p as popupProps } from "./
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
6
|
+
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.fb9ce7ad.js";
|
|
8
|
+
import { P as Popup, p as popupProps } from "./index.4ed42c18.js";
|
|
9
|
+
import Elevator from "./Elevator.js";
|
|
10
|
+
import { Location, Location2, Check, Close, Left } from "@nutui/icons-vue";
|
|
11
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
|
|
11
12
|
import "../locale/lang";
|
|
12
|
-
import "./
|
|
13
|
+
import "./Overlay.js";
|
|
14
|
+
import "./index.617ba243.js";
|
|
13
15
|
const { componentName, create, translate } = createComponent("address");
|
|
14
16
|
const _sfc_main = create({
|
|
17
|
+
components: {
|
|
18
|
+
Location,
|
|
19
|
+
Location2,
|
|
20
|
+
Check,
|
|
21
|
+
Close,
|
|
22
|
+
Left,
|
|
23
|
+
[Popup.name]: Popup,
|
|
24
|
+
[Elevator.name]: Elevator
|
|
25
|
+
},
|
|
15
26
|
inheritAttrs: false,
|
|
16
27
|
props: {
|
|
17
28
|
...popupProps,
|
|
@@ -59,22 +70,6 @@ const _sfc_main = create({
|
|
|
59
70
|
type: String,
|
|
60
71
|
default: ""
|
|
61
72
|
},
|
|
62
|
-
defaultIcon: {
|
|
63
|
-
type: String,
|
|
64
|
-
default: "location2"
|
|
65
|
-
},
|
|
66
|
-
selectedIcon: {
|
|
67
|
-
type: String,
|
|
68
|
-
default: "Check"
|
|
69
|
-
},
|
|
70
|
-
closeBtnIcon: {
|
|
71
|
-
type: String,
|
|
72
|
-
default: "circle-close"
|
|
73
|
-
},
|
|
74
|
-
backBtnIcon: {
|
|
75
|
-
type: String,
|
|
76
|
-
default: "left"
|
|
77
|
-
},
|
|
78
73
|
height: {
|
|
79
74
|
type: [String, Number],
|
|
80
75
|
default: "200px"
|
|
@@ -104,14 +99,6 @@ const _sfc_main = create({
|
|
|
104
99
|
return props.town;
|
|
105
100
|
}
|
|
106
101
|
});
|
|
107
|
-
const renderIcon = (n) => {
|
|
108
|
-
return h(_sfc_main$1, {
|
|
109
|
-
class: `${componentName}-select-icon`,
|
|
110
|
-
type: "self",
|
|
111
|
-
size: "13px",
|
|
112
|
-
name: n
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
102
|
const transformData = (data) => {
|
|
116
103
|
if (!Array.isArray(data))
|
|
117
104
|
throw new TypeError("params muse be array.");
|
|
@@ -234,8 +221,6 @@ const _sfc_main = create({
|
|
|
234
221
|
lineAnimation();
|
|
235
222
|
};
|
|
236
223
|
const handClose = (type = "self") => {
|
|
237
|
-
if (!props.closeBtnIcon)
|
|
238
|
-
return;
|
|
239
224
|
closeWay.value = type == "cross" ? "cross" : "self";
|
|
240
225
|
showPopup.value = false;
|
|
241
226
|
};
|
|
@@ -319,8 +304,7 @@ const _sfc_main = create({
|
|
|
319
304
|
...toRefs(props),
|
|
320
305
|
translate,
|
|
321
306
|
regionList,
|
|
322
|
-
transformData
|
|
323
|
-
renderIcon
|
|
307
|
+
transformData
|
|
324
308
|
};
|
|
325
309
|
}
|
|
326
310
|
});
|
|
@@ -329,48 +313,51 @@ const _hoisted_2 = { class: "nut-address__header" };
|
|
|
329
313
|
const _hoisted_3 = { class: "nut-address__header__title" };
|
|
330
314
|
const _hoisted_4 = {
|
|
331
315
|
key: 0,
|
|
332
|
-
class: "
|
|
316
|
+
class: "nut-address__custom"
|
|
333
317
|
};
|
|
334
318
|
const _hoisted_5 = {
|
|
335
|
-
class: "nut-
|
|
319
|
+
class: "nut-address__region",
|
|
336
320
|
ref: "tabRegion"
|
|
337
321
|
};
|
|
338
322
|
const _hoisted_6 = ["onClick"];
|
|
339
323
|
const _hoisted_7 = {
|
|
340
324
|
key: 0,
|
|
341
|
-
class: "active
|
|
325
|
+
class: "active nut-address__region-item"
|
|
342
326
|
};
|
|
343
327
|
const _hoisted_8 = {
|
|
344
328
|
key: 0,
|
|
345
|
-
class: "
|
|
329
|
+
class: "nut-address__detail"
|
|
346
330
|
};
|
|
347
|
-
const _hoisted_9 = { class: "
|
|
331
|
+
const _hoisted_9 = { class: "nut-address__detail-list" };
|
|
348
332
|
const _hoisted_10 = ["onClick"];
|
|
349
333
|
const _hoisted_11 = {
|
|
350
334
|
key: 1,
|
|
351
|
-
class: "
|
|
335
|
+
class: "nut-address__elevator-group"
|
|
352
336
|
};
|
|
353
337
|
const _hoisted_12 = {
|
|
354
338
|
key: 1,
|
|
355
|
-
class: "
|
|
339
|
+
class: "nut-address__exist"
|
|
356
340
|
};
|
|
357
|
-
const _hoisted_13 = { class: "
|
|
358
|
-
const _hoisted_14 = { class: "
|
|
341
|
+
const _hoisted_13 = { class: "nut-address__exist-group" };
|
|
342
|
+
const _hoisted_14 = { class: "nut-address__exist-group-list" };
|
|
359
343
|
const _hoisted_15 = ["onClick"];
|
|
360
|
-
const _hoisted_16 = { class: "
|
|
344
|
+
const _hoisted_16 = { class: "nut-address__exist-item-info" };
|
|
361
345
|
const _hoisted_17 = {
|
|
362
346
|
key: 0,
|
|
363
|
-
class: "
|
|
347
|
+
class: "nut-address__exist-item-info-name"
|
|
364
348
|
};
|
|
365
349
|
const _hoisted_18 = {
|
|
366
350
|
key: 1,
|
|
367
|
-
class: "
|
|
351
|
+
class: "nut-address__exist-item-info-phone"
|
|
368
352
|
};
|
|
369
|
-
const _hoisted_19 = { class: "
|
|
370
|
-
const _hoisted_20 = { class: "btn" };
|
|
353
|
+
const _hoisted_19 = { class: "nut-address__exist-item-info-bottom" };
|
|
354
|
+
const _hoisted_20 = { class: "nut-address__exist-choose-btn" };
|
|
371
355
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
372
|
-
const
|
|
356
|
+
const _component_Left = resolveComponent("Left");
|
|
357
|
+
const _component_Close = resolveComponent("Close");
|
|
358
|
+
const _component_Check = resolveComponent("Check");
|
|
373
359
|
const _component_nut_elevator = resolveComponent("nut-elevator");
|
|
360
|
+
const _component_Location2 = resolveComponent("Location2");
|
|
374
361
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
375
362
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
376
363
|
position: "bottom",
|
|
@@ -387,33 +374,33 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
387
374
|
createElementVNode("view", _hoisted_1, [
|
|
388
375
|
createElementVNode("view", _hoisted_2, [
|
|
389
376
|
createElementVNode("view", {
|
|
390
|
-
class: "
|
|
377
|
+
class: "nut-address__header-back",
|
|
391
378
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.switchModule && _ctx.switchModule(...args))
|
|
392
379
|
}, [
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
[vShow, _ctx.type == "exist" && _ctx.privateType == "custom" && _ctx.backBtnIcon]
|
|
380
|
+
renderSlot(_ctx.$slots, "backIcon", {}, () => [
|
|
381
|
+
withDirectives(createVNode(_component_Left, null, null, 512), [
|
|
382
|
+
[vShow, _ctx.type == "exist" && _ctx.privateType == "custom"]
|
|
383
|
+
])
|
|
398
384
|
])
|
|
399
385
|
]),
|
|
400
386
|
createElementVNode("view", _hoisted_3, toDisplayString(_ctx.privateType == "custom" ? _ctx.customAddressTitle || _ctx.translate("selectRegion") : _ctx.existAddressTitle || _ctx.translate("deliveryTo")), 1),
|
|
401
387
|
createElementVNode("view", {
|
|
402
|
-
class: "
|
|
388
|
+
class: "nut-address__header-close",
|
|
403
389
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.handClose("cross"))
|
|
404
390
|
}, [
|
|
405
|
-
_ctx
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
391
|
+
renderSlot(_ctx.$slots, "closeIcon", {}, () => [
|
|
392
|
+
createVNode(_component_Close, {
|
|
393
|
+
color: "#cccccc",
|
|
394
|
+
size: "18px"
|
|
395
|
+
})
|
|
396
|
+
])
|
|
410
397
|
])
|
|
411
398
|
]),
|
|
412
399
|
["custom", "custom2"].includes(_ctx.privateType) ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
413
400
|
createElementVNode("view", _hoisted_5, [
|
|
414
401
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, index2) => {
|
|
415
402
|
return openBlock(), createElementBlock("view", {
|
|
416
|
-
class: normalizeClass(["
|
|
403
|
+
class: normalizeClass(["nut-address__region-item", index2 == _ctx.tabIndex ? "active" : ""]),
|
|
417
404
|
key: index2,
|
|
418
405
|
onClick: ($event) => _ctx.changeRegionTab(item, index2)
|
|
419
406
|
}, [
|
|
@@ -424,7 +411,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
424
411
|
createElementVNode("view", null, toDisplayString(_ctx.getTabName(null, _ctx.selectedRegion.length)), 1)
|
|
425
412
|
])) : createCommentVNode("", true),
|
|
426
413
|
createElementVNode("view", {
|
|
427
|
-
class: "
|
|
414
|
+
class: "nut-address__region-line",
|
|
428
415
|
ref: "regionLine",
|
|
429
416
|
style: normalizeStyle({ left: _ctx.lineDistance + "px" })
|
|
430
417
|
}, null, 4)
|
|
@@ -435,12 +422,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
435
422
|
var _a, _b;
|
|
436
423
|
return openBlock(), createElementBlock("li", {
|
|
437
424
|
key: index2,
|
|
438
|
-
class: normalizeClass(["
|
|
425
|
+
class: normalizeClass(["nut-address__detail-item", ((_a = _ctx.selectedRegion[_ctx.tabIndex]) == null ? void 0 : _a.id) == item.id ? "active" : ""]),
|
|
439
426
|
onClick: ($event) => _ctx.nextAreaList(item)
|
|
440
427
|
}, [
|
|
441
428
|
createElementVNode("div", null, [
|
|
442
|
-
((_b = _ctx.selectedRegion[_ctx.tabIndex]) == null ? void 0 : _b.id) == item.id ? (
|
|
443
|
-
|
|
429
|
+
((_b = _ctx.selectedRegion[_ctx.tabIndex]) == null ? void 0 : _b.id) == item.id ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
|
|
430
|
+
createVNode(_component_Check, {
|
|
431
|
+
class: "nut-address-select-icon",
|
|
432
|
+
width: "13px"
|
|
433
|
+
})
|
|
434
|
+
]) : createCommentVNode("", true),
|
|
435
|
+
createTextVNode(toDisplayString(item.name), 1)
|
|
444
436
|
])
|
|
445
437
|
], 10, _hoisted_10);
|
|
446
438
|
}), 128))
|
|
@@ -457,11 +449,22 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
457
449
|
createElementVNode("ul", _hoisted_14, [
|
|
458
450
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.existAddress, (item, index2) => {
|
|
459
451
|
return openBlock(), createElementBlock("li", {
|
|
460
|
-
class: normalizeClass(["
|
|
452
|
+
class: normalizeClass(["nut-address__exist-group-item", item.selectedAddress ? "active" : ""]),
|
|
461
453
|
key: index2,
|
|
462
454
|
onClick: ($event) => _ctx.selectedExist(item)
|
|
463
455
|
}, [
|
|
464
|
-
|
|
456
|
+
!item.selectedAddress ? renderSlot(_ctx.$slots, "unselectedIcon", { key: 0 }, () => [
|
|
457
|
+
createVNode(_component_Location2, {
|
|
458
|
+
class: "nut-address-select-icon",
|
|
459
|
+
width: "13px"
|
|
460
|
+
})
|
|
461
|
+
]) : createCommentVNode("", true),
|
|
462
|
+
item.selectedAddress ? renderSlot(_ctx.$slots, "icon", { key: 1 }, () => [
|
|
463
|
+
createVNode(_component_Check, {
|
|
464
|
+
class: "nut-address-select-icon",
|
|
465
|
+
width: "13px"
|
|
466
|
+
})
|
|
467
|
+
]) : createCommentVNode("", true),
|
|
465
468
|
createElementVNode("div", _hoisted_16, [
|
|
466
469
|
item.name ? (openBlock(), createElementBlock("div", _hoisted_17, toDisplayString(item.name), 1)) : createCommentVNode("", true),
|
|
467
470
|
item.phone ? (openBlock(), createElementBlock("div", _hoisted_18, toDisplayString(item.phone), 1)) : createCommentVNode("", true),
|
|
@@ -475,7 +478,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
475
478
|
]),
|
|
476
479
|
_ctx.isShowCustomAddress ? (openBlock(), createElementBlock("div", {
|
|
477
480
|
key: 0,
|
|
478
|
-
class: "choose
|
|
481
|
+
class: "nut-address__exist-choose",
|
|
479
482
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.switchModule && _ctx.switchModule(...args))
|
|
480
483
|
}, [
|
|
481
484
|
createElementVNode("div", _hoisted_20, toDisplayString(_ctx.customAndExistTitle || _ctx.translate("chooseAnotherAddress")), 1)
|
|
@@ -487,5 +490,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
487
490
|
_: 3
|
|
488
491
|
}, 8, ["lock-scroll", "onClose", "onClickOverlay", "visible", "teleportDisable", "teleport"]);
|
|
489
492
|
}
|
|
490
|
-
|
|
491
|
-
export {
|
|
493
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
494
|
+
export {
|
|
495
|
+
index as default
|
|
496
|
+
};
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { 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.js";
|
|
8
|
-
import {
|
|
7
|
+
import { c as createComponent, n as floatData } from "./component.fb9ce7ad.js";
|
|
8
|
+
import { Del, Edit } from "@nutui/icons-vue";
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
|
|
10
|
+
import Button from "./Button.js";
|
|
9
11
|
import "../locale/lang";
|
|
10
12
|
const { create: create$3 } = createComponent("addresslist-item");
|
|
11
13
|
const { translate: translate$1 } = createComponent("addresslist");
|
|
12
14
|
const _sfc_main$3 = create$3({
|
|
15
|
+
components: { Del, Edit },
|
|
13
16
|
props: {
|
|
14
17
|
item: {
|
|
15
18
|
type: Object,
|
|
@@ -38,20 +41,21 @@ const _sfc_main$3 = create$3({
|
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
});
|
|
41
|
-
const _hoisted_1$2 = { class: "nut-
|
|
42
|
-
const _hoisted_2$1 = { class: "nut-
|
|
43
|
-
const _hoisted_3$1 = { class: "nut-
|
|
44
|
-
const _hoisted_4$1 = { class: "nut-
|
|
44
|
+
const _hoisted_1$2 = { class: "nut-address-list-item__info" };
|
|
45
|
+
const _hoisted_2$1 = { class: "nut-address-list-item__info-contact" };
|
|
46
|
+
const _hoisted_3$1 = { class: "nut-address-list-item__info-contact-name" };
|
|
47
|
+
const _hoisted_4$1 = { class: "nut-address-list-item__info-contact-tel" };
|
|
45
48
|
const _hoisted_5$1 = {
|
|
46
49
|
key: 0,
|
|
47
|
-
class: "nut-
|
|
50
|
+
class: "nut-address-list-item__info-contact-default"
|
|
48
51
|
};
|
|
49
|
-
const _hoisted_6$1 = { class: "nut-
|
|
50
|
-
const _hoisted_7$1 = { class: "nut-
|
|
52
|
+
const _hoisted_6$1 = { class: "nut-address-list-item__info-handle" };
|
|
53
|
+
const _hoisted_7$1 = { class: "nut-address-list-item__addr" };
|
|
51
54
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
52
|
-
const
|
|
55
|
+
const _component_Del = resolveComponent("Del");
|
|
56
|
+
const _component_Edit = resolveComponent("Edit");
|
|
53
57
|
return openBlock(), createElementBlock("div", {
|
|
54
|
-
class: "nut-
|
|
58
|
+
class: "nut-address-list-item",
|
|
55
59
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.contentsClick && _ctx.contentsClick(...args))
|
|
56
60
|
}, [
|
|
57
61
|
createElementVNode("div", _hoisted_1$2, [
|
|
@@ -64,14 +68,14 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
64
68
|
]),
|
|
65
69
|
createElementVNode("div", _hoisted_6$1, [
|
|
66
70
|
renderSlot(_ctx.$slots, "contentIcon", {}, () => [
|
|
67
|
-
createVNode(
|
|
71
|
+
createVNode(_component_Del, {
|
|
68
72
|
name: "del",
|
|
69
|
-
class: "nut-
|
|
73
|
+
class: "nut-address-list-item__info-handle-del",
|
|
70
74
|
onClick: _ctx.delClick
|
|
71
75
|
}, null, 8, ["onClick"]),
|
|
72
|
-
createVNode(
|
|
76
|
+
createVNode(_component_Edit, {
|
|
73
77
|
name: "edit",
|
|
74
|
-
class: "nut-
|
|
78
|
+
class: "nut-address-list-item__info-handle-edit",
|
|
75
79
|
onClick: _ctx.editClick
|
|
76
80
|
}, null, 8, ["onClick"])
|
|
77
81
|
])
|
|
@@ -84,7 +88,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
84
88
|
])
|
|
85
89
|
]);
|
|
86
90
|
}
|
|
87
|
-
|
|
91
|
+
const ItemContents = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
88
92
|
const { create: create$2 } = createComponent("addresslist-swipe");
|
|
89
93
|
const _sfc_main$2 = create$2({
|
|
90
94
|
props: {
|
|
@@ -133,7 +137,7 @@ const _sfc_main$2 = create$2({
|
|
|
133
137
|
};
|
|
134
138
|
}
|
|
135
139
|
});
|
|
136
|
-
const _hoisted_1$1 = { class: "nut-
|
|
140
|
+
const _hoisted_1$1 = { class: "nut-address-list-swipe" };
|
|
137
141
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
138
142
|
const _component_item_contents = resolveComponent("item-contents");
|
|
139
143
|
const _component_nut_button = resolveComponent("nut-button");
|
|
@@ -180,7 +184,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
180
184
|
_: 3
|
|
181
185
|
});
|
|
182
186
|
}
|
|
183
|
-
|
|
187
|
+
const SwipeShell = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
184
188
|
const { create: create$1 } = createComponent("addresslist-general");
|
|
185
189
|
const _sfc_main$1 = create$1({
|
|
186
190
|
props: {
|
|
@@ -266,8 +270,8 @@ const _sfc_main$1 = create$1({
|
|
|
266
270
|
};
|
|
267
271
|
}
|
|
268
272
|
});
|
|
269
|
-
const _hoisted_1 = { class: "nut-
|
|
270
|
-
const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", { class: "nut-
|
|
273
|
+
const _hoisted_1 = { class: "nut-address-list-general" };
|
|
274
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", { class: "nut-address-list-mask-contain" }, [
|
|
271
275
|
/* @__PURE__ */ createTextVNode(" \u590D\u5236"),
|
|
272
276
|
/* @__PURE__ */ createElementVNode("br"),
|
|
273
277
|
/* @__PURE__ */ createTextVNode("\u5730\u5740 ")
|
|
@@ -275,7 +279,7 @@ const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", { class: "nut-addre
|
|
|
275
279
|
const _hoisted_3 = [
|
|
276
280
|
_hoisted_2
|
|
277
281
|
];
|
|
278
|
-
const _hoisted_4 = /* @__PURE__ */ createElementVNode("div", { class: "nut-
|
|
282
|
+
const _hoisted_4 = /* @__PURE__ */ createElementVNode("div", { class: "nut-address-list-mask-contain" }, [
|
|
279
283
|
/* @__PURE__ */ createTextVNode(" \u8BBE\u7F6E"),
|
|
280
284
|
/* @__PURE__ */ createElementVNode("br"),
|
|
281
285
|
/* @__PURE__ */ createTextVNode("\u9ED8\u8BA4 ")
|
|
@@ -283,7 +287,7 @@ const _hoisted_4 = /* @__PURE__ */ createElementVNode("div", { class: "nut-addre
|
|
|
283
287
|
const _hoisted_5 = [
|
|
284
288
|
_hoisted_4
|
|
285
289
|
];
|
|
286
|
-
const _hoisted_6 = /* @__PURE__ */ createElementVNode("div", { class: "nut-
|
|
290
|
+
const _hoisted_6 = /* @__PURE__ */ createElementVNode("div", { class: "nut-address-list-mask-contain" }, [
|
|
287
291
|
/* @__PURE__ */ createTextVNode(" \u5220\u9664"),
|
|
288
292
|
/* @__PURE__ */ createElementVNode("br"),
|
|
289
293
|
/* @__PURE__ */ createTextVNode("\u5730\u5740 ")
|
|
@@ -316,33 +320,33 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
316
320
|
}, 8, ["item", "onDelIcon", "onEditIcon", "onItemClick", "onTouchstart", "onTouchend", "onTouchmove"]),
|
|
317
321
|
_ctx.longPress && _ctx.showMaskRef ? (openBlock(), createElementBlock("div", {
|
|
318
322
|
key: 0,
|
|
319
|
-
class: "nut-
|
|
323
|
+
class: "nut-address-list-general__mask",
|
|
320
324
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.maskClick && _ctx.maskClick(...args))
|
|
321
325
|
}, [
|
|
322
326
|
renderSlot(_ctx.$slots, "longpressAll", {}, () => [
|
|
323
327
|
createElementVNode("div", {
|
|
324
|
-
class: "nut-
|
|
328
|
+
class: "nut-address-list-general__mask-copy",
|
|
325
329
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.copyCLick && _ctx.copyCLick(...args))
|
|
326
330
|
}, _hoisted_3),
|
|
327
331
|
createElementVNode("div", {
|
|
328
|
-
class: "nut-
|
|
332
|
+
class: "nut-address-list-general__mask-set",
|
|
329
333
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.setDefault && _ctx.setDefault(...args))
|
|
330
334
|
}, _hoisted_5),
|
|
331
335
|
createElementVNode("div", {
|
|
332
|
-
class: "nut-
|
|
336
|
+
class: "nut-address-list-general__mask-del",
|
|
333
337
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.delClick && _ctx.delClick(...args))
|
|
334
338
|
}, _hoisted_7)
|
|
335
339
|
])
|
|
336
340
|
])) : createCommentVNode("", true),
|
|
337
341
|
_ctx.showMaskRef ? (openBlock(), createElementBlock("div", {
|
|
338
342
|
key: 1,
|
|
339
|
-
class: "nut-
|
|
343
|
+
class: "nut-address-list__mask-bottom",
|
|
340
344
|
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.hideMaskClick && _ctx.hideMaskClick(...args))
|
|
341
345
|
})) : createCommentVNode("", true)
|
|
342
346
|
]);
|
|
343
347
|
}
|
|
344
|
-
|
|
345
|
-
const { componentName, create, translate } = createComponent("
|
|
348
|
+
const GeneralShell = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
349
|
+
const { componentName, create, translate } = createComponent("address-list");
|
|
346
350
|
const _sfc_main = create({
|
|
347
351
|
props: {
|
|
348
352
|
data: {
|
|
@@ -368,7 +372,8 @@ const _sfc_main = create({
|
|
|
368
372
|
},
|
|
369
373
|
components: {
|
|
370
374
|
SwipeShell,
|
|
371
|
-
GeneralShell
|
|
375
|
+
GeneralShell,
|
|
376
|
+
[Button.name]: Button
|
|
372
377
|
},
|
|
373
378
|
emits: ["delIcon", "editIcon", "itemClick", "longCopy", "longSet", "longDel", "swipeDel", "add"],
|
|
374
379
|
setup(props, { emit }) {
|
|
@@ -524,7 +529,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
524
529
|
}), 128)) : createCommentVNode("", true),
|
|
525
530
|
_ctx.showBottomButton ? (openBlock(), createElementBlock("div", {
|
|
526
531
|
key: 2,
|
|
527
|
-
class: "nut-
|
|
532
|
+
class: "nut-address-list__bottom",
|
|
528
533
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.addAddress && _ctx.addAddress(...args))
|
|
529
534
|
}, [
|
|
530
535
|
createVNode(_component_nut_button, {
|
|
@@ -539,5 +544,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
539
544
|
])) : createCommentVNode("", true)
|
|
540
545
|
], 2);
|
|
541
546
|
}
|
|
542
|
-
|
|
543
|
-
export {
|
|
547
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
548
|
+
export {
|
|
549
|
+
index as default
|
|
550
|
+
};
|