@nutui/nutui 4.2.0 → 4.2.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +6839 -6866
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/{_es/Interceptor-006f85b3.js → Interceptor-a7d38af1.js} +1 -1
- package/dist/packages/{_es → actionsheet}/ActionSheet.js +27 -37
- package/dist/packages/actionsheet/index.mjs +2 -4
- package/dist/packages/{_es → address}/Address.js +15 -10
- package/dist/packages/address/index.css +1 -1
- package/dist/packages/address/index.mjs +2 -4
- package/dist/packages/{_es → addresslist}/AddressList.js +23 -27
- package/dist/packages/addresslist/index.mjs +2 -4
- package/dist/packages/{_es → animate}/Animate.js +2 -2
- package/dist/packages/animate/index.mjs +2 -4
- package/dist/packages/{_es → audio}/Audio.js +6 -6
- package/dist/packages/audio/index.mjs +2 -4
- package/dist/packages/{_es → audiooperate}/AudioOperate.js +8 -5
- package/dist/packages/audiooperate/index.mjs +2 -4
- package/dist/packages/{_es → avatar}/Avatar.js +4 -4
- package/dist/packages/avatar/index.mjs +2 -4
- package/dist/packages/{_es → avatarcropper}/AvatarCropper.js +6 -6
- package/dist/packages/avatarcropper/index.mjs +2 -4
- package/dist/packages/{_es → avatargroup}/AvatarGroup.js +4 -4
- package/dist/packages/avatargroup/index.mjs +2 -4
- package/dist/packages/{_es → backtop}/Backtop.js +3 -3
- package/dist/packages/backtop/index.mjs +2 -4
- package/dist/packages/{_es → badge}/Badge.js +4 -4
- package/dist/packages/badge/index.mjs +2 -4
- package/dist/packages/{_es → barrage}/Barrage.js +11 -16
- package/dist/packages/barrage/index.mjs +2 -4
- package/dist/packages/{_es → button}/Button.js +4 -4
- package/dist/packages/button/index.mjs +2 -4
- package/dist/packages/{_es → calendar}/Calendar.js +16 -12
- package/dist/packages/calendar/index.mjs +2 -4
- package/dist/packages/calendaritem/CalendarItem.js +11 -0
- package/dist/packages/calendaritem/index.mjs +2 -4
- package/dist/packages/{_es → card}/Card.js +6 -6
- package/dist/packages/card/index.mjs +2 -4
- package/dist/packages/{_es → cascader}/Cascader.js +23 -20
- package/dist/packages/cascader/index.mjs +2 -4
- package/dist/packages/{_es → category}/Category.js +2 -2
- package/dist/packages/category/index.mjs +2 -4
- package/dist/packages/{_es → categorypane}/CategoryPane.js +2 -2
- package/dist/packages/categorypane/index.mjs +2 -4
- package/dist/packages/{_es → cell}/Cell.js +15 -9
- package/dist/packages/cell/index.mjs +2 -4
- package/dist/packages/{_es → cellgroup}/CellGroup.js +4 -4
- package/dist/packages/cellgroup/index.mjs +2 -4
- package/dist/packages/{_es → checkbox}/Checkbox.js +2 -2
- package/dist/packages/checkbox/index.css +1 -1
- package/dist/packages/checkbox/index.mjs +2 -4
- package/dist/packages/checkbox/index.scss +1 -0
- package/dist/packages/{_es → checkboxgroup}/CheckboxGroup.js +2 -2
- package/dist/packages/checkboxgroup/index.mjs +2 -4
- package/dist/packages/{_es → circleprogress}/CircleProgress.js +2 -2
- package/dist/packages/circleprogress/index.mjs +2 -4
- package/dist/packages/{_es → col}/Col.js +2 -2
- package/dist/packages/col/index.mjs +2 -4
- package/dist/packages/{_es → collapse}/Collapse.js +11 -16
- package/dist/packages/collapse/index.mjs +2 -4
- package/dist/packages/{_es → collapseitem}/CollapseItem.js +3 -3
- package/dist/packages/collapseitem/index.mjs +2 -4
- package/dist/packages/{_es → comment}/Comment.js +34 -34
- package/dist/packages/comment/index.mjs +2 -4
- package/dist/packages/{_es/common-728db750.js → common-3db007cd.js} +2 -2
- package/dist/packages/{_es/component-f86a70df.js → component-a8dfbf81.js} +7 -7
- package/dist/packages/{_es → configprovider}/ConfigProvider.js +1 -1
- package/dist/packages/configprovider/index.mjs +2 -4
- package/dist/packages/{_es → countdown}/Countdown.js +12 -17
- package/dist/packages/countdown/index.mjs +2 -4
- package/dist/packages/{_es → countup}/Countup.js +2 -2
- package/dist/packages/countup/index.mjs +2 -4
- package/dist/packages/{_es → datepicker}/DatePicker.js +14 -13
- package/dist/packages/datepicker/index.mjs +2 -4
- package/dist/packages/{_es → dialog}/Dialog.js +26 -21
- package/dist/packages/dialog/index.mjs +3 -5
- package/dist/packages/{_es → divider}/Divider.js +2 -2
- package/dist/packages/divider/index.mjs +2 -4
- package/dist/packages/{_es → drag}/Drag.js +7 -14
- package/dist/packages/drag/index.mjs +2 -4
- package/dist/packages/{_es → ecard}/Ecard.js +9 -6
- package/dist/packages/ecard/index.mjs +2 -4
- package/dist/packages/{_es → elevator}/Elevator.js +34 -51
- package/dist/packages/elevator/index.css +1 -1
- package/dist/packages/elevator/index.mjs +2 -4
- package/dist/packages/elevator/index.scss +0 -13
- package/dist/packages/{_es → ellipsis}/Ellipsis.js +7 -13
- package/dist/packages/ellipsis/index.mjs +2 -4
- package/dist/packages/{_es → empty}/Empty.js +7 -4
- package/dist/packages/empty/index.mjs +2 -4
- package/dist/packages/{_es → fixednav}/FixedNav.js +13 -10
- package/dist/packages/fixednav/index.mjs +2 -4
- package/dist/packages/{_es → form}/Form.js +7 -7
- package/dist/packages/form/index.mjs +2 -4
- package/dist/packages/{_es → formitem}/FormItem.js +23 -12
- package/dist/packages/formitem/index.mjs +2 -4
- package/dist/packages/{_es → grid}/Grid.js +3 -3
- package/dist/packages/grid/index.mjs +2 -4
- package/dist/packages/{_es → griditem}/GridItem.js +5 -5
- package/dist/packages/griditem/index.mjs +2 -4
- package/dist/packages/{_es → image}/Image.js +3 -3
- package/dist/packages/image/index.mjs +2 -4
- package/dist/packages/{_es → imagepreview}/ImagePreview.js +19 -18
- package/dist/packages/imagepreview/index.css +1 -1
- package/dist/packages/imagepreview/index.mjs +3 -5
- package/dist/packages/{_es/index-b53aec83.js → index-47708e50.js} +10 -6
- package/dist/packages/index-99fdd331.js +17 -0
- package/dist/packages/{_es/index-5a1e6d22.js → index-ae743c4f.js} +5 -5
- package/dist/packages/{_es/index.vue_vue_type_script_lang-0ccf787e.js → index.vue_vue_type_script_lang-336a1e7d.js} +2 -2
- package/dist/packages/{_es/index.vue_vue_type_script_lang-1e118ab6.js → index.vue_vue_type_script_lang-e1fb856d.js} +1 -1
- package/dist/packages/{_es → indicator}/Indicator.js +2 -2
- package/dist/packages/indicator/index.mjs +2 -4
- package/dist/packages/{_es → infiniteloading}/InfiniteLoading.js +25 -28
- package/dist/packages/infiniteloading/index.mjs +2 -4
- package/dist/packages/{_es → input}/Input.js +17 -9
- package/dist/packages/input/index.mjs +2 -4
- package/dist/packages/{_es → inputnumber}/InputNumber.js +5 -5
- package/dist/packages/inputnumber/index.mjs +2 -4
- package/dist/packages/{_es → invoice}/Invoice.js +16 -16
- package/dist/packages/invoice/index.mjs +2 -4
- package/dist/packages/{_es → layout}/Layout.js +1 -1
- package/dist/packages/layout/index.mjs +2 -4
- package/dist/packages/{_es → list}/List.js +7 -14
- package/dist/packages/list/index.mjs +2 -4
- package/dist/packages/locale/lang/baseLang.d.ts +1 -0
- package/dist/packages/locale/lang/en-US.d.ts +1 -0
- package/dist/packages/locale/lang/en-US.js +2 -1
- package/dist/packages/locale/lang/id-ID.d.ts +1 -0
- package/dist/packages/locale/lang/id-ID.js +2 -1
- package/dist/packages/locale/lang/zh-CN.d.ts +1 -0
- package/dist/packages/locale/lang/zh-CN.js +2 -1
- package/dist/packages/locale/lang/zh-TW.d.ts +1 -0
- package/dist/packages/locale/lang/zh-TW.js +2 -1
- package/dist/packages/{_es → menu}/Menu.js +3 -3
- package/dist/packages/menu/index.mjs +2 -4
- package/dist/packages/{_es → menuitem}/MenuItem.js +5 -5
- package/dist/packages/menuitem/index.mjs +2 -4
- package/dist/packages/{_es/mountComponent-053caf41.js → mountComponent-614f1309.js} +1 -1
- package/dist/packages/{_es → navbar}/Navbar.js +2 -2
- package/dist/packages/navbar/index.mjs +2 -4
- package/dist/packages/{_es → noticebar}/Noticebar.js +20 -30
- package/dist/packages/noticebar/index.mjs +2 -4
- package/dist/packages/{_es → notify}/Notify.js +5 -5
- package/dist/packages/notify/index.mjs +3 -5
- package/dist/packages/{_es → numberkeyboard}/NumberKeyboard.js +9 -6
- package/dist/packages/numberkeyboard/index.mjs +2 -4
- package/dist/packages/{_es → overlay}/Overlay.js +4 -4
- package/dist/packages/overlay/index.mjs +2 -4
- package/dist/packages/{_es → pagination}/Pagination.js +6 -3
- package/dist/packages/pagination/index.mjs +2 -4
- package/dist/packages/{_es → picker}/Picker.js +22 -20
- package/dist/packages/picker/index.mjs +2 -4
- package/dist/packages/{_es → popover}/Popover.js +9 -9
- package/dist/packages/popover/index.mjs +2 -4
- package/dist/packages/popup/Popup.js +10 -0
- package/dist/packages/popup/index.mjs +2 -4
- package/dist/packages/{_es → price}/Price.js +4 -4
- package/dist/packages/price/index.mjs +2 -4
- package/dist/packages/{_es → progress}/Progress.js +4 -4
- package/dist/packages/progress/index.mjs +2 -4
- package/dist/packages/{_es → pullrefresh}/PullRefresh.js +39 -29
- package/dist/packages/pullrefresh/index.mjs +2 -4
- package/dist/packages/pxCheck-a27490eb.js +8 -0
- package/dist/packages/radio/Radio.js +9 -0
- package/dist/packages/radio/index.mjs +2 -4
- package/dist/packages/radiogroup/RadioGroup.js +7 -0
- package/dist/packages/radiogroup/index.mjs +2 -4
- package/dist/packages/{_es → range}/Range.js +6 -6
- package/dist/packages/range/index.mjs +2 -4
- package/dist/packages/{_es → rate}/Rate.js +32 -26
- package/dist/packages/rate/index.mjs +2 -4
- package/dist/packages/{_es → row}/Row.js +2 -2
- package/dist/packages/row/index.mjs +2 -4
- package/dist/packages/{_es → searchbar}/Searchbar.js +7 -4
- package/dist/packages/searchbar/index.mjs +2 -4
- package/dist/packages/{_es → shortpassword}/ShortPassword.js +9 -6
- package/dist/packages/shortpassword/index.mjs +2 -4
- package/dist/packages/{_es → sidenavbar}/SideNavbar.js +12 -20
- package/dist/packages/sidenavbar/index.mjs +2 -4
- package/dist/packages/{_es → sidenavbaritem}/SideNavbarItem.js +8 -15
- package/dist/packages/sidenavbaritem/index.mjs +2 -4
- package/dist/packages/{_es → signature}/Signature.js +9 -6
- package/dist/packages/signature/index.mjs +2 -4
- package/dist/packages/{_es → skeleton}/Skeleton.js +4 -4
- package/dist/packages/skeleton/index.mjs +2 -4
- package/dist/packages/{_es → sku}/Sku.js +32 -42
- package/dist/packages/sku/index.mjs +2 -4
- package/dist/packages/{_es → space}/Space.js +1 -1
- package/dist/packages/space/index.mjs +2 -4
- package/dist/packages/{_es → step}/Step.js +2 -2
- package/dist/packages/step/index.mjs +2 -4
- package/dist/packages/{_es → steps}/Steps.js +1 -1
- package/dist/packages/steps/index.mjs +2 -4
- package/dist/packages/{_es → sticky}/Sticky.js +8 -7
- package/dist/packages/sticky/index.mjs +2 -4
- package/dist/packages/{_es → subsidenavbar}/SubSideNavbar.js +8 -15
- package/dist/packages/subsidenavbar/index.mjs +2 -4
- package/dist/packages/{_es → swipe}/Swipe.js +5 -5
- package/dist/packages/swipe/index.mjs +2 -4
- package/dist/packages/{_es → swipegroup}/SwipeGroup.js +2 -2
- package/dist/packages/swipegroup/index.mjs +2 -4
- package/dist/packages/{_es → swiper}/Swiper.js +18 -17
- package/dist/packages/swiper/index.css +1 -1
- package/dist/packages/swiper/index.mjs +2 -4
- package/dist/packages/swiper/index.scss +0 -1
- package/dist/packages/{_es → swiperitem}/SwiperItem.js +10 -17
- package/dist/packages/swiperitem/index.mjs +2 -4
- package/dist/packages/{_es → switch}/Switch.js +2 -2
- package/dist/packages/switch/index.mjs +2 -4
- package/dist/packages/{_es → tabbar}/Tabbar.js +2 -2
- package/dist/packages/tabbar/index.mjs +2 -4
- package/dist/packages/{_es → tabbaritem}/TabbarItem.js +6 -6
- package/dist/packages/tabbaritem/index.mjs +2 -4
- package/dist/packages/{_es → table}/Table.js +30 -39
- package/dist/packages/table/index.mjs +2 -4
- package/dist/packages/{_es → tabpane}/TabPane.js +4 -4
- package/dist/packages/tabpane/index.mjs +2 -4
- package/dist/packages/{_es → tabs}/Tabs.js +11 -11
- package/dist/packages/tabs/index.mjs +2 -4
- package/dist/packages/{_es → tag}/Tag.js +4 -4
- package/dist/packages/tag/index.mjs +2 -4
- package/dist/packages/{_es → textarea}/Textarea.js +7 -4
- package/dist/packages/textarea/index.mjs +2 -4
- package/dist/packages/{_es → timedetail}/TimeDetail.js +17 -28
- package/dist/packages/timedetail/index.mjs +2 -4
- package/dist/packages/{_es → timepannel}/TimePannel.js +2 -2
- package/dist/packages/timepannel/index.mjs +2 -4
- package/dist/packages/{_es → timeselect}/TimeSelect.js +28 -34
- package/dist/packages/timeselect/index.mjs +2 -4
- package/dist/packages/{_es → toast}/Toast.js +4 -4
- package/dist/packages/toast/index.mjs +3 -5
- package/dist/packages/{_es → tour}/Tour.js +8 -9
- package/dist/packages/tour/index.mjs +2 -4
- package/dist/packages/{_es → trendarrow}/TrendArrow.js +8 -15
- package/dist/packages/trendarrow/index.mjs +2 -4
- package/dist/packages/{_es → uploader}/Uploader.js +10 -8
- package/dist/packages/uploader/index.mjs +2 -4
- package/dist/packages/{_es → video}/Video.js +8 -5
- package/dist/packages/video/index.mjs +2 -4
- package/dist/packages/{_es → watermark}/Watermark.js +2 -2
- package/dist/packages/watermark/index.mjs +2 -4
- package/dist/smartips/web-types.json +38 -2
- package/dist/style.css +1 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +12 -20
- package/dist/types/__VUE/address/index.vue.d.ts +20 -19
- package/dist/types/__VUE/address/type.d.ts +3 -2
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +1 -1
- package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -4
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +1 -1
- package/dist/types/__VUE/barrage/index.vue.d.ts +0 -3
- package/dist/types/__VUE/calendar/index.vue.d.ts +4 -2
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +4 -1
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +3 -1
- package/dist/types/__VUE/collapse/index.vue.d.ts +0 -3
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +1 -1
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +2 -2
- package/dist/types/__VUE/comment/index.vue.d.ts +2 -5
- package/dist/types/__VUE/countdown/index.vue.d.ts +1 -4
- package/dist/types/__VUE/dialog/index.d.ts +10 -8
- package/dist/types/__VUE/dialog/index.vue.d.ts +10 -4
- package/dist/types/__VUE/drag/index.vue.d.ts +0 -3
- package/dist/types/__VUE/ecard/index.vue.d.ts +1 -1
- package/dist/types/__VUE/elevator/index.vue.d.ts +0 -6
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +0 -3
- package/dist/types/__VUE/empty/index.vue.d.ts +3 -3
- package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
- package/dist/types/__VUE/formitem/index.vue.d.ts +1 -0
- package/dist/types/__VUE/formitem/types.d.ts +3 -3
- package/dist/types/__VUE/imagepreview/index.d.ts +1 -0
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -4
- package/dist/types/__VUE/input/index.vue.d.ts +7 -4
- package/dist/types/__VUE/input/type.d.ts +5 -0
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/list/index.vue.d.ts +0 -3
- package/dist/types/__VUE/noticebar/index.vue.d.ts +5 -24
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
- package/dist/types/__VUE/pagination/index.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/Column.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/common.d.ts +7 -249
- package/dist/types/__VUE/picker/index.vue.d.ts +1 -122
- package/dist/types/__VUE/picker/types.d.ts +2 -9
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +20 -5
- package/dist/types/__VUE/rate/index.vue.d.ts +4 -5
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +0 -3
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +0 -3
- package/dist/types/__VUE/signature/index.vue.d.ts +2 -1
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +3 -3
- package/dist/types/__VUE/sku/index.vue.d.ts +9 -177
- package/dist/types/__VUE/sticky/index.vue.d.ts +3 -0
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +0 -3
- package/dist/types/__VUE/swiper/index.vue.d.ts +0 -3
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +0 -3
- package/dist/types/__VUE/table/common.d.ts +7 -7
- package/dist/types/__VUE/table/index.vue.d.ts +13 -16
- package/dist/types/__VUE/table/types.d.ts +2 -2
- package/dist/types/__VUE/tabs/index.vue.d.ts +5 -5
- package/dist/types/__VUE/textarea/index.vue.d.ts +3 -2
- package/dist/types/__VUE/timedetail/index.vue.d.ts +4 -6
- package/dist/types/__VUE/timeselect/index.vue.d.ts +2 -6
- package/dist/types/__VUE/tour/index.vue.d.ts +12 -11
- package/dist/types/__VUE/trendarrow/index.vue.d.ts +0 -3
- package/dist/types/__VUE/video/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/locale/lang/baseLang.d.ts +1 -0
- package/dist/types/locale/lang/en-US.d.ts +1 -0
- package/dist/types/locale/lang/id-ID.d.ts +1 -0
- package/dist/types/locale/lang/zh-CN.d.ts +1 -0
- package/dist/types/locale/lang/zh-TW.d.ts +1 -0
- package/dist/types/utils/pxCheck.d.ts +1 -1
- package/dist/types/utils/useLocale/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/packages/_es/CalendarItem.js +0 -10
- package/dist/packages/_es/Popup.js +0 -10
- package/dist/packages/_es/Radio.js +0 -9
- package/dist/packages/_es/RadioGroup.js +0 -7
- package/dist/packages/_es/pxCheck-c6b9f6b7.js +0 -6
- /package/dist/packages/{_es/_plugin-vue_export-helper-cc2b3d55.js → _plugin-vue_export-helper-cc2b3d55.js} +0 -0
- /package/dist/packages/{_es/index-29892cda.js → index-29892cda.js} +0 -0
- /package/dist/packages/{_es/index-54d03fc1.js → index-54d03fc1.js} +0 -0
- /package/dist/packages/{_es/index-79c5dc33.js → index-79c5dc33.js} +0 -0
- /package/dist/packages/{_es/index-7a7385e4.js → index-7a7385e4.js} +0 -0
- /package/dist/packages/{_es/index-97b44e6c.js → index-97b44e6c.js} +0 -0
- /package/dist/packages/{_es/raf-729dad54.js → raf-729dad54.js} +0 -0
- /package/dist/packages/{_es/renderIcon-3d0fd47c.js → renderIcon-3d0fd47c.js} +0 -0
|
@@ -17,17 +17,17 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { c as createComponent } from "
|
|
21
|
-
import { useSlots,
|
|
22
|
-
import {
|
|
20
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
21
|
+
import { useSlots, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeClass, normalizeStyle } from "vue";
|
|
22
|
+
import { N as NutPopup, p as popupProps } from "../index-ae743c4f.js";
|
|
23
23
|
import { Loading } from "@nutui/icons-vue";
|
|
24
|
-
import { _ as _export_sfc } from "
|
|
24
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
25
25
|
import "../locale/lang";
|
|
26
|
-
import "
|
|
27
|
-
const {
|
|
26
|
+
import "../overlay/Overlay.js";
|
|
27
|
+
const { create } = createComponent("action-sheet");
|
|
28
28
|
const _sfc_main = create({
|
|
29
29
|
components: {
|
|
30
|
-
|
|
30
|
+
NutPopup,
|
|
31
31
|
Loading
|
|
32
32
|
},
|
|
33
33
|
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
@@ -71,12 +71,6 @@ const _sfc_main = create({
|
|
|
71
71
|
emits: ["cancel", "close", "choose", "update:visible"],
|
|
72
72
|
setup(props, { emit }) {
|
|
73
73
|
const slotDefault = !!useSlots().default;
|
|
74
|
-
const classes = computed(() => {
|
|
75
|
-
const prefixCls = componentName;
|
|
76
|
-
return {
|
|
77
|
-
[prefixCls]: true
|
|
78
|
-
};
|
|
79
|
-
});
|
|
80
74
|
const isHighlight = (item) => {
|
|
81
75
|
return props.chooseTagValue && props.chooseTagValue === item[props.optionTag] ? props.color : "";
|
|
82
76
|
};
|
|
@@ -101,27 +95,27 @@ const _sfc_main = create({
|
|
|
101
95
|
isHighlight,
|
|
102
96
|
cancelActionSheet,
|
|
103
97
|
chooseItem,
|
|
104
|
-
close
|
|
105
|
-
classes
|
|
98
|
+
close
|
|
106
99
|
};
|
|
107
100
|
}
|
|
108
101
|
});
|
|
109
|
-
const _hoisted_1 = {
|
|
102
|
+
const _hoisted_1 = { class: "nut-action-sheet" };
|
|
103
|
+
const _hoisted_2 = {
|
|
110
104
|
key: 0,
|
|
111
105
|
class: "nut-action-sheet__title"
|
|
112
106
|
};
|
|
113
|
-
const
|
|
114
|
-
const
|
|
107
|
+
const _hoisted_3 = { key: 1 };
|
|
108
|
+
const _hoisted_4 = {
|
|
115
109
|
key: 0,
|
|
116
110
|
class: "nut-action-sheet__item nut-action-sheet__desc"
|
|
117
111
|
};
|
|
118
|
-
const
|
|
112
|
+
const _hoisted_5 = {
|
|
119
113
|
key: 1,
|
|
120
114
|
class: "nut-action-sheet__menu"
|
|
121
115
|
};
|
|
122
|
-
const
|
|
123
|
-
const
|
|
124
|
-
const
|
|
116
|
+
const _hoisted_6 = ["onClick"];
|
|
117
|
+
const _hoisted_7 = { key: 1 };
|
|
118
|
+
const _hoisted_8 = { class: "nut-action-sheet__subdesc" };
|
|
125
119
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
126
120
|
const _component_Loading = resolveComponent("Loading");
|
|
127
121
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
@@ -131,17 +125,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
131
125
|
round: "",
|
|
132
126
|
"close-on-click-overlay": _ctx.closeAbled,
|
|
133
127
|
"lock-scroll": _ctx.lockScroll,
|
|
128
|
+
"z-index": _ctx.zIndex,
|
|
134
129
|
onClickOverlay: _ctx.close
|
|
135
130
|
}, {
|
|
136
131
|
default: withCtx(() => [
|
|
137
|
-
createElementVNode("view",
|
|
138
|
-
|
|
139
|
-
}, [
|
|
140
|
-
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
132
|
+
createElementVNode("view", _hoisted_1, [
|
|
133
|
+
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
141
134
|
renderSlot(_ctx.$slots, "default"),
|
|
142
|
-
!_ctx.slotDefault ? (openBlock(), createElementBlock("view",
|
|
143
|
-
_ctx.description ? (openBlock(), createElementBlock("view",
|
|
144
|
-
_ctx.menuItems.length ? (openBlock(), createElementBlock("view",
|
|
135
|
+
!_ctx.slotDefault ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
136
|
+
_ctx.description ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
|
|
137
|
+
_ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_5, [
|
|
145
138
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index2) => {
|
|
146
139
|
return openBlock(), createElementBlock("view", {
|
|
147
140
|
key: index2,
|
|
@@ -152,12 +145,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
152
145
|
style: normalizeStyle({ color: _ctx.isHighlight(item) || item.color }),
|
|
153
146
|
onClick: ($event) => _ctx.chooseItem(item, index2)
|
|
154
147
|
}, [
|
|
155
|
-
item.loading ? (openBlock(), createBlock(_component_Loading, {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
})) : (openBlock(), createElementBlock("view", _hoisted_6, toDisplayString(item[_ctx.optionTag]), 1)),
|
|
159
|
-
createElementVNode("view", _hoisted_7, toDisplayString(item[_ctx.optionSubTag]), 1)
|
|
160
|
-
], 14, _hoisted_5);
|
|
148
|
+
item.loading ? (openBlock(), createBlock(_component_Loading, { key: 0 })) : (openBlock(), createElementBlock("view", _hoisted_7, toDisplayString(item[_ctx.optionTag]), 1)),
|
|
149
|
+
createElementVNode("view", _hoisted_8, toDisplayString(item[_ctx.optionSubTag]), 1)
|
|
150
|
+
], 14, _hoisted_6);
|
|
161
151
|
}), 128))
|
|
162
152
|
])) : createCommentVNode("", true),
|
|
163
153
|
_ctx.cancelTxt ? (openBlock(), createElementBlock("view", {
|
|
@@ -166,10 +156,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
166
156
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.cancelActionSheet && _ctx.cancelActionSheet(...args))
|
|
167
157
|
}, toDisplayString(_ctx.cancelTxt), 1)) : createCommentVNode("", true)
|
|
168
158
|
])) : createCommentVNode("", true)
|
|
169
|
-
]
|
|
159
|
+
])
|
|
170
160
|
]),
|
|
171
161
|
_: 3
|
|
172
|
-
}, 8, ["visible", "close-on-click-overlay", "lock-scroll", "onClickOverlay"]);
|
|
162
|
+
}, 8, ["visible", "close-on-click-overlay", "lock-scroll", "z-index", "onClickOverlay"]);
|
|
173
163
|
}
|
|
174
164
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
175
165
|
export {
|
|
@@ -18,19 +18,21 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, reactive, computed, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, renderSlot, withDirectives, createVNode, vShow, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass, createCommentVNode, normalizeStyle, createTextVNode } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-f86a70df.js";
|
|
22
|
-
import { P as Popup, p as popupProps } from "./index-5a1e6d22.js";
|
|
23
|
-
import Elevator from "./Elevator.js";
|
|
24
21
|
import { Location, Location2, Check, Close, Left } from "@nutui/icons-vue";
|
|
25
|
-
import {
|
|
22
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
23
|
+
import { N as NutPopup, p as popupProps } from "../index-ae743c4f.js";
|
|
24
|
+
import NutElevator from "../elevator/Elevator.js";
|
|
25
|
+
import { u as useLocale } from "../index-99fdd331.js";
|
|
26
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
26
27
|
import "../locale/lang";
|
|
27
|
-
import "
|
|
28
|
-
import "
|
|
29
|
-
const { create
|
|
28
|
+
import "../overlay/Overlay.js";
|
|
29
|
+
import "../index-79c5dc33.js";
|
|
30
|
+
const { create } = createComponent("address");
|
|
31
|
+
const cN = "NutAddress";
|
|
30
32
|
const _sfc_main = create({
|
|
31
33
|
components: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
NutPopup,
|
|
35
|
+
NutElevator,
|
|
34
36
|
Location,
|
|
35
37
|
Location2,
|
|
36
38
|
Check,
|
|
@@ -97,6 +99,7 @@ const _sfc_main = create({
|
|
|
97
99
|
}),
|
|
98
100
|
emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "closeMask", "switchModule"],
|
|
99
101
|
setup(props, { emit }) {
|
|
102
|
+
const translate = useLocale(cN);
|
|
100
103
|
const regionLine = ref(null);
|
|
101
104
|
const tabRegion = ref(null);
|
|
102
105
|
const showPopup = ref(props.visible);
|
|
@@ -143,6 +146,7 @@ const _sfc_main = create({
|
|
|
143
146
|
newData[index2].list.push(item);
|
|
144
147
|
}
|
|
145
148
|
});
|
|
149
|
+
console.log("new", newData);
|
|
146
150
|
return newData;
|
|
147
151
|
};
|
|
148
152
|
let selectedRegion = ref([]);
|
|
@@ -396,6 +400,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
396
400
|
round: _ctx.round,
|
|
397
401
|
"teleport-disable": _ctx.teleportDisable,
|
|
398
402
|
teleport: _ctx.teleport,
|
|
403
|
+
"z-index": _ctx.zIndex,
|
|
399
404
|
onClose: _ctx.close,
|
|
400
405
|
onClickOverlay: _ctx.clickOverlay,
|
|
401
406
|
onOpen: _cache[4] || (_cache[4] = ($event) => _ctx.closeWay = "self")
|
|
@@ -518,7 +523,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
518
523
|
])
|
|
519
524
|
]),
|
|
520
525
|
_: 3
|
|
521
|
-
}, 8, ["visible", "lock-scroll", "round", "teleport-disable", "teleport", "onClose", "onClickOverlay"]);
|
|
526
|
+
}, 8, ["visible", "lock-scroll", "round", "teleport-disable", "teleport", "z-index", "onClose", "onClickOverlay"]);
|
|
522
527
|
}
|
|
523
528
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
524
529
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.overlay-fade-enter-active,.overlay-fade-leave-active{transition-property:opacity;transition-timing-function:ease}.overlay-fade-enter-from,.overlay-fade-leave-to{opacity:0}.nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nut-overlay-bg-color, rgba(0, 0, 0, 0.7))}.nut-overflow-hidden{overflow:hidden !important}.nut-theme-dark .nut-popup{background:var(--nut-dark-background2, #1b1b1b)}.nut-theme-dark .nut-popup__close-icon{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-popup-slide-center-enter-active,.nut-popup-slide-center-leave-active{transition-property:opacity;transition-timing-function:ease}.nut-popup-slide-center-enter-from,.nut-popup-slide-center-leave-to{opacity:0}.nut-popup-slide-top-enter-from,.nut-popup-slide-top-leave-active{transform:translate(0, -100%)}.nut-popup-slide-right-enter-from,.nut-popup-slide-right-leave-active{transform:translate(100%, 0)}.nut-popup-slide-bottom-enter-from,.nut-popup-slide-bottom-leave-active{transform:translate(0, 100%)}.nut-popup-slide-left-enter-from,.nut-popup-slide-left-leave-active{transform:translate(-100%, 0)}.nut-popup--center{top:50%;left:50%;transform:translate(-50%, -50%)}.nut-popup--center.round{border-radius:var(--nut-popup-border-radius, 20px)}.nut-popup--bottom{bottom:0;left:0;width:100%}.nut-popup--bottom.round{border-radius:var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px) 0 0}.nut-popup--bottom--safebottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.nut-popup--right{top:0;right:0}.nut-popup--right.round{border-radius:var(--nut-popup-border-radius, 20px) 0 0 var(--nut-popup-border-radius, 20px)}.nut-popup--left{top:0;left:0}.nut-popup--left.round{border-radius:0 var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px) 0}.nut-popup--top{top:0;left:0;width:100%}.nut-popup--top.round{border-radius:0 0 var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px)}.nut-popup{position:fixed;max-height:100%;overflow-y:auto;background-color:var(--nut-white, #fff);-webkit-overflow-scrolling:touch}.nut-popup__close-icon{position:absolute !important;z-index:1;color:#969799;font-size:18px;cursor:pointer;width:30px;height:30px;line-height:30px;text-align:center}.nut-popup__close-icon:active{opacity:.7}.nut-popup__close-icon--top-left{top:var(--nut-popup-close-icon-margin, 16px);left:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--top-right{top:var(--nut-popup-close-icon-margin, 16px);right:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-left{bottom:var(--nut-popup-close-icon-margin, 16px);left:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-right{right:var(--nut-popup-close-icon-margin, 16px);bottom:var(--nut-popup-close-icon-margin, 16px)}.nut-theme-dark .nut-elevator{background-color:var(--nut-dark-background2, #1b1b1b)}.nut-theme-dark .nut-elevator__list__item{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-elevator__list__item__code{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-elevator__list__fixed{background-color:var(--nut-dark-background2, #1b1b1b)}.nut-elevator{width:100%;display:block;position:relative}.nut-elevator__list{display:block;position:relative;overflow:auto}.nut-elevator__list__item{display:block;font-size:var(--nut-elevator-list-item-font-size, 12px);color:var(--nut-elevator-list-item-font-color, #333333)}.nut-elevator__list__item__code{display:flex;position:relative;height:var(--nut-elevator-list-item-code-height, 35px);line-height:var(--nut-elevator-list-item-code-line-height, 35px);font-size:var(--nut-elevator-list-item-code-font-size, 14px);color:var(--nut-elevator-list-item-code-font-color, #1a1a1a);padding:var(--nut-elevator-list-item-code-padding, 0 20px);font-weight:var(--nut-elevator-list-item-code-font-weight, 500);box-sizing:border-box}.nut-elevator__list__item__code::after{content:" ";width:var(--nut-elevator-list-item-code-after-width, 100%);height:var(--nut-elevator-list-item-code-after-height, 1px);position:absolute;left:0;bottom:0;background-color:var(--nut-elevator-list-item-code-after-bg-color, #f5f5f5)}.nut-elevator__list__item__name{display:flex;align-items:center;padding:var(--nut-elevator-list-item-name-padding, 0 20px);height:var(--nut-elevator-list-item-name-height, 30px);line-height:var(--nut-elevator-list-item-name-line-height, 30px)}.nut-elevator__list__item__name--highcolor{color:var(--nut-elevator-list-item-highcolor, var(--nut-primary-color, #fa2c19))}.nut-elevator__list .nut-elevator__list__fixed__wrapper{position:absolute;top:0;left:0;width:100%}.nut-elevator__list__fixed{width:100%;position:absolute;top:0;left:0;padding:var(--nut-elevator-list-item-code-padding, 0 20px);height:var(--nut-elevator-list-item-code-height, 35px);line-height:var(--nut-elevator-list-item-code-line-height, 35px);font-size:var(--nut-elevator-list-item-code-font-size, 14px);color:var(--nut-elevator-list-fixed-color, var(--nut-primary-color, #fa2c19));font-weight:var(--nut-elevator-list-item-code-font-weight, 500);background-color:var(--nut-elevator-list-fixed-bg-color, var(--nut-white, #fff));box-sizing:border-box;box-shadow:var(--nut-elevator-list-fixed-box-shadow, 0 0 10px #eee);z-index:1}.nut-elevator__list__fixed--mini{position:sticky;top:-1px}.nut-elevator__list--mini{position:static}.nut-elevator__code--current{position:var(--nut-elevator-list-item-code-current-position, absolute);right:var(--nut-elevator-list-item-code-current-right, 60px);top:var(--nut-elevator-list-item-code-current-top, 50%);transform:var(--nut-elevator-list-item-code-current-transform, translateY(-50%));width:var(--nut-elevator-list-item-code-current-width, 45px);height:var(--nut-elevator-list-item-code-current-height, 45px);line-height:var(--nut-elevator-list-item-code-current-line-height, 45px);border-radius:var(--nut-elevator-list-item-code-current-border-radius, 50%);background:var(--nut-elevator-list-item-code-current-bg-color, #fff);box-shadow:var(--nut-elevator-list-item-code-current-box-shadow, 0 3px 3px 1px rgb(240, 240, 240));text-align:var(--nut-elevator-list-item-code-current-text-align, center)}.nut-elevator__bars{position:var(--nut-elevator-list-item-bars-position, absolute);right:var(--nut-elevator-list-item-bars-right, 8px);top:var(--nut-elevator-list-item-bars-top, 50%);transform:var(--nut-elevator-list-item-bars-transform, translateY(-50%));padding:var(--nut-elevator-list-item-bars-padding, 15px 0);background-color:var(--nut-elevator-list-item-bars-background-color, #eeeff2);border-radius:var(--nut-elevator-list-item-bars-border-radius, 6px);text-align:var(--nut-elevator-list-item-bars-text-align, center);z-index:var(--nut-elevator-list-item-bars-z-index, 1)}.nut-elevator__bars__inner__item{display:block;padding:var(--nut-elevator-list-item-bars-inner-item-padding, 3px);font-size:var(--nut-elevator-list-item-bars-inner-item-font-size, 10px)}.nut-elevator__bars__inner__item.active{color:var(--nut-elevator-list-item-bars-inner-item-active-color, var(--nut-primary-color, #fa2c19))}.nut-theme-dark .nut-address__header{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address__header__title{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address .nut-address__custom .nut-address__region{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list .nut-address__detail-item{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address .nut-address__exist .nut-address__exist-choose{border-top:1px solid var(--nut-dark-background, #131313)}.nut-theme-dark .nut-address-custom-buttom{border-top:1px solid var(--nut-dark-background, #131313)}.nut-address{display:block}.nut-address__header{display:flex;justify-content:space-between;align-items:center;height:68px;padding:0 20px;text-align:center;font-weight:bold;color:#333}.nut-address__header__title{display:block;color:var(--nut-address-header-title-color, #262626);font-size:var(--nut-address-header-title-font-size, 18px)}.nut-address .nut-address__custom{display:block}.nut-address .nut-address__custom .nut-address__region{position:relative;padding:0 20px;display:flex;font-size:var(--nut-address-region-tab-font-size, 13px);color:var(--nut-address-region-tab-color, #1d1e1e)}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item{position:relative;min-width:2px;margin-right:30px;display:block}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item.active{font-weight:var(--nut-address-region-tab-active-item-font-weight, bold)}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item view{display:block;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item span{display:inline-block;max-width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item .nut-address__region-line--mini{position:absolute;bottom:-10px;left:0px;display:inline-block;margin-top:5px;width:0;height:3px;background:var(--nut-address-region-tab-line, linear-gradient(90deg, var(--nut-primary-color, #fa2c19) 0%, rgba(250, 44, 25, 0.15) 100%));transition:.2s all linear}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item .nut-address__region-line--mini.active{width:26px}.nut-address .nut-address__custom .nut-address__region .nut-address__region-line{position:absolute;bottom:-10px;left:20px;display:inline-block;margin-top:5px;width:26px;height:3px;background:var(--nut-address-region-tab-line, linear-gradient(90deg, var(--nut-primary-color, #fa2c19) 0%, rgba(250, 44, 25, 0.15) 100%));transition:.2s all linear;border-radius:var(--nut-address-region-tab-line-border-radius, 0);opacity:var(--nut-address-region-tab-line-opacity, 1)}.nut-address .nut-address__custom .nut-address__detail{display:block;margin:20px 20px 0}.nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list{padding-top:15px;height:270px;box-sizing:border-box;padding:0}.nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list .nut-address__detail-item{display:flex;align-items:center;font-size:var(--nut-address-region-item-font-size, var(--nut-font-size-1, 12px));color:var(--nut-address-region-item-color, #333)}.nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list .nut-address__detail-item.active{font-weight:bold}.nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list .nut-address__detail-item>div{display:flex;align-items:center;margin:10px 0}.nut-address .nut-address__custom .nut-address__elevator-group{display:flex;margin-top:20px}.nut-address .nut-address__exist{display:block;margin-top:15px}.nut-address .nut-address__exist .nut-address__exist-group{padding:15px 20px 0;height:279px;overflow-y:scroll}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list{box-sizing:border-box;padding:0}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item{display:flex;align-items:center;margin-bottom:20px;font-size:var(--nut-font-size-1, 12px);line-height:14px;color:#333}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item.active{font-weight:bold}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item .exist-item-icon{margin-right:var(--nut-address-item-margin-right, 9px);color:var(--nut-address-icon-color, var(--nut-primary-color, #fa2c19)) !important}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item span{display:inline-block;flex:1}.nut-address .nut-address__exist .nut-address__exist-choose{width:100%;height:54px;padding:6px 0px 0;border-top:1px solid #f2f2f2}.nut-address .nut-address__exist .nut-address__exist-choose .nut-address__exist-choose-btn{width:90%;height:42px;line-height:42px;margin:auto;text-align:center;background:var(--nut-button-primary-background-color, linear-gradient(135deg, var(--nut-primary-color, var(--nut-primary-color, #fa2c19)) 0%, var(--nut-primary-color, var(--nut-primary-color, #fa2c19)) 100%));border-radius:21px;font-size:15px;color:var(--nut-white, #fff)}.nut-address-select-icon{margin-right:var(--nut-address-item-margin-right, 9px);color:var(--nut-address-icon-color, var(--nut-primary-color, #fa2c19)) !important}
|
|
1
|
+
.overlay-fade-enter-active,.overlay-fade-leave-active{transition-property:opacity;transition-timing-function:ease}.overlay-fade-enter-from,.overlay-fade-leave-to{opacity:0}.nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nut-overlay-bg-color, rgba(0, 0, 0, 0.7))}.nut-overflow-hidden{overflow:hidden !important}.nut-theme-dark .nut-popup{background:var(--nut-dark-background2, #1b1b1b)}.nut-theme-dark .nut-popup__close-icon{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-popup-slide-center-enter-active,.nut-popup-slide-center-leave-active{transition-property:opacity;transition-timing-function:ease}.nut-popup-slide-center-enter-from,.nut-popup-slide-center-leave-to{opacity:0}.nut-popup-slide-top-enter-from,.nut-popup-slide-top-leave-active{transform:translate(0, -100%)}.nut-popup-slide-right-enter-from,.nut-popup-slide-right-leave-active{transform:translate(100%, 0)}.nut-popup-slide-bottom-enter-from,.nut-popup-slide-bottom-leave-active{transform:translate(0, 100%)}.nut-popup-slide-left-enter-from,.nut-popup-slide-left-leave-active{transform:translate(-100%, 0)}.nut-popup--center{top:50%;left:50%;transform:translate(-50%, -50%)}.nut-popup--center.round{border-radius:var(--nut-popup-border-radius, 20px)}.nut-popup--bottom{bottom:0;left:0;width:100%}.nut-popup--bottom.round{border-radius:var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px) 0 0}.nut-popup--bottom--safebottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.nut-popup--right{top:0;right:0}.nut-popup--right.round{border-radius:var(--nut-popup-border-radius, 20px) 0 0 var(--nut-popup-border-radius, 20px)}.nut-popup--left{top:0;left:0}.nut-popup--left.round{border-radius:0 var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px) 0}.nut-popup--top{top:0;left:0;width:100%}.nut-popup--top.round{border-radius:0 0 var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px)}.nut-popup{position:fixed;max-height:100%;overflow-y:auto;background-color:var(--nut-white, #fff);-webkit-overflow-scrolling:touch}.nut-popup__close-icon{position:absolute !important;z-index:1;color:#969799;font-size:18px;cursor:pointer;width:30px;height:30px;line-height:30px;text-align:center}.nut-popup__close-icon:active{opacity:.7}.nut-popup__close-icon--top-left{top:var(--nut-popup-close-icon-margin, 16px);left:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--top-right{top:var(--nut-popup-close-icon-margin, 16px);right:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-left{bottom:var(--nut-popup-close-icon-margin, 16px);left:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-right{right:var(--nut-popup-close-icon-margin, 16px);bottom:var(--nut-popup-close-icon-margin, 16px)}.nut-theme-dark .nut-elevator{background-color:var(--nut-dark-background2, #1b1b1b)}.nut-theme-dark .nut-elevator__list__item{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-elevator__list__item__code{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-elevator__list__fixed{background-color:var(--nut-dark-background2, #1b1b1b)}.nut-elevator{width:100%;display:block;position:relative}.nut-elevator__list{display:block;position:relative;overflow:auto}.nut-elevator__list__item{display:block;font-size:var(--nut-elevator-list-item-font-size, 12px);color:var(--nut-elevator-list-item-font-color, #333333)}.nut-elevator__list__item__code{display:flex;position:relative;height:var(--nut-elevator-list-item-code-height, 35px);line-height:var(--nut-elevator-list-item-code-line-height, 35px);font-size:var(--nut-elevator-list-item-code-font-size, 14px);color:var(--nut-elevator-list-item-code-font-color, #1a1a1a);padding:var(--nut-elevator-list-item-code-padding, 0 20px);font-weight:var(--nut-elevator-list-item-code-font-weight, 500);box-sizing:border-box}.nut-elevator__list__item__code::after{content:" ";width:var(--nut-elevator-list-item-code-after-width, 100%);height:var(--nut-elevator-list-item-code-after-height, 1px);position:absolute;left:0;bottom:0;background-color:var(--nut-elevator-list-item-code-after-bg-color, #f5f5f5)}.nut-elevator__list__item__name{display:flex;align-items:center;padding:var(--nut-elevator-list-item-name-padding, 0 20px);height:var(--nut-elevator-list-item-name-height, 30px);line-height:var(--nut-elevator-list-item-name-line-height, 30px)}.nut-elevator__list__item__name--highcolor{color:var(--nut-elevator-list-item-highcolor, var(--nut-primary-color, #fa2c19))}.nut-elevator__list__fixed{width:100%;position:absolute;top:0;left:0;padding:var(--nut-elevator-list-item-code-padding, 0 20px);height:var(--nut-elevator-list-item-code-height, 35px);line-height:var(--nut-elevator-list-item-code-line-height, 35px);font-size:var(--nut-elevator-list-item-code-font-size, 14px);color:var(--nut-elevator-list-fixed-color, var(--nut-primary-color, #fa2c19));font-weight:var(--nut-elevator-list-item-code-font-weight, 500);background-color:var(--nut-elevator-list-fixed-bg-color, var(--nut-white, #fff));box-sizing:border-box;box-shadow:var(--nut-elevator-list-fixed-box-shadow, 0 0 10px #eee);z-index:1}.nut-elevator__code--current{position:var(--nut-elevator-list-item-code-current-position, absolute);right:var(--nut-elevator-list-item-code-current-right, 60px);top:var(--nut-elevator-list-item-code-current-top, 50%);transform:var(--nut-elevator-list-item-code-current-transform, translateY(-50%));width:var(--nut-elevator-list-item-code-current-width, 45px);height:var(--nut-elevator-list-item-code-current-height, 45px);line-height:var(--nut-elevator-list-item-code-current-line-height, 45px);border-radius:var(--nut-elevator-list-item-code-current-border-radius, 50%);background:var(--nut-elevator-list-item-code-current-bg-color, #fff);box-shadow:var(--nut-elevator-list-item-code-current-box-shadow, 0 3px 3px 1px rgb(240, 240, 240));text-align:var(--nut-elevator-list-item-code-current-text-align, center)}.nut-elevator__bars{position:var(--nut-elevator-list-item-bars-position, absolute);right:var(--nut-elevator-list-item-bars-right, 8px);top:var(--nut-elevator-list-item-bars-top, 50%);transform:var(--nut-elevator-list-item-bars-transform, translateY(-50%));padding:var(--nut-elevator-list-item-bars-padding, 15px 0);background-color:var(--nut-elevator-list-item-bars-background-color, #eeeff2);border-radius:var(--nut-elevator-list-item-bars-border-radius, 6px);text-align:var(--nut-elevator-list-item-bars-text-align, center);z-index:var(--nut-elevator-list-item-bars-z-index, 1)}.nut-elevator__bars__inner__item{display:block;padding:var(--nut-elevator-list-item-bars-inner-item-padding, 3px);font-size:var(--nut-elevator-list-item-bars-inner-item-font-size, 10px)}.nut-elevator__bars__inner__item.active{color:var(--nut-elevator-list-item-bars-inner-item-active-color, var(--nut-primary-color, #fa2c19))}.nut-theme-dark .nut-address__header{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address__header__title{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address .nut-address__custom .nut-address__region{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list .nut-address__detail-item{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-address .nut-address__exist .nut-address__exist-choose{border-top:1px solid var(--nut-dark-background, #131313)}.nut-theme-dark .nut-address-custom-buttom{border-top:1px solid var(--nut-dark-background, #131313)}.nut-address{display:block}.nut-address__header{display:flex;justify-content:space-between;align-items:center;height:68px;padding:0 20px;text-align:center;font-weight:bold;color:#333}.nut-address__header__title{display:block;color:var(--nut-address-header-title-color, #262626);font-size:var(--nut-address-header-title-font-size, 18px)}.nut-address .nut-address__custom{display:block}.nut-address .nut-address__custom .nut-address__region{position:relative;padding:0 20px;display:flex;font-size:var(--nut-address-region-tab-font-size, 13px);color:var(--nut-address-region-tab-color, #1d1e1e)}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item{position:relative;min-width:2px;margin-right:30px;display:block}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item.active{font-weight:var(--nut-address-region-tab-active-item-font-weight, bold)}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item view{display:block;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item span{display:inline-block;max-width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item .nut-address__region-line--mini{position:absolute;bottom:-10px;left:0px;display:inline-block;margin-top:5px;width:0;height:3px;background:var(--nut-address-region-tab-line, linear-gradient(90deg, var(--nut-primary-color, #fa2c19) 0%, rgba(250, 44, 25, 0.15) 100%));transition:.2s all linear}.nut-address .nut-address__custom .nut-address__region .nut-address__region-item .nut-address__region-line--mini.active{width:26px}.nut-address .nut-address__custom .nut-address__region .nut-address__region-line{position:absolute;bottom:-10px;left:20px;display:inline-block;margin-top:5px;width:26px;height:3px;background:var(--nut-address-region-tab-line, linear-gradient(90deg, var(--nut-primary-color, #fa2c19) 0%, rgba(250, 44, 25, 0.15) 100%));transition:.2s all linear;border-radius:var(--nut-address-region-tab-line-border-radius, 0);opacity:var(--nut-address-region-tab-line-opacity, 1)}.nut-address .nut-address__custom .nut-address__detail{display:block;margin:20px 20px 0}.nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list{padding-top:15px;height:270px;box-sizing:border-box;padding:0}.nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list .nut-address__detail-item{display:flex;align-items:center;font-size:var(--nut-address-region-item-font-size, var(--nut-font-size-1, 12px));color:var(--nut-address-region-item-color, #333)}.nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list .nut-address__detail-item.active{font-weight:bold}.nut-address .nut-address__custom .nut-address__detail .nut-address__detail-list .nut-address__detail-item>div{display:flex;align-items:center;margin:10px 0}.nut-address .nut-address__custom .nut-address__elevator-group{display:flex;margin-top:20px}.nut-address .nut-address__exist{display:block;margin-top:15px}.nut-address .nut-address__exist .nut-address__exist-group{padding:15px 20px 0;height:279px;overflow-y:scroll}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list{box-sizing:border-box;padding:0}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item{display:flex;align-items:center;margin-bottom:20px;font-size:var(--nut-font-size-1, 12px);line-height:14px;color:#333}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item.active{font-weight:bold}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item .exist-item-icon{margin-right:var(--nut-address-item-margin-right, 9px);color:var(--nut-address-icon-color, var(--nut-primary-color, #fa2c19)) !important}.nut-address .nut-address__exist .nut-address__exist-group .nut-address__exist-group-list .nut-address__exist-group-item span{display:inline-block;flex:1}.nut-address .nut-address__exist .nut-address__exist-choose{width:100%;height:54px;padding:6px 0px 0;border-top:1px solid #f2f2f2}.nut-address .nut-address__exist .nut-address__exist-choose .nut-address__exist-choose-btn{width:90%;height:42px;line-height:42px;margin:auto;text-align:center;background:var(--nut-button-primary-background-color, linear-gradient(135deg, var(--nut-primary-color, var(--nut-primary-color, #fa2c19)) 0%, var(--nut-primary-color, var(--nut-primary-color, #fa2c19)) 100%));border-radius:21px;font-size:15px;color:var(--nut-white, #fff)}.nut-address-select-icon{margin-right:var(--nut-address-item-margin-right, 9px);color:var(--nut-address-icon-color, var(--nut-primary-color, #fa2c19)) !important}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createVNode, createTextVNode, ref, h, createBlock, resolveDynamicComponent, withCtx, reactive,
|
|
2
|
-
import { c as createComponent, n as floatData } from "
|
|
1
|
+
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createVNode, createTextVNode, ref, h, createBlock, resolveDynamicComponent, withCtx, reactive, watch, onMounted, Fragment, renderList, createSlots } from "vue";
|
|
2
|
+
import { c as createComponent, n as floatData } from "../component-a8dfbf81.js";
|
|
3
|
+
import { u as useLocale } from "../index-99fdd331.js";
|
|
3
4
|
import { Del, Edit } from "@nutui/icons-vue";
|
|
4
|
-
import { _ as _export_sfc } from "
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
|
+
import NutButton from "../button/Button.js";
|
|
7
|
+
import NutSwipe from "../swipe/Swipe.js";
|
|
7
8
|
import "../locale/lang";
|
|
8
|
-
import "
|
|
9
|
+
import "../index-7a7385e4.js";
|
|
9
10
|
const { create: create$2 } = createComponent("address-list-item");
|
|
10
|
-
const
|
|
11
|
+
const cN$1 = "NutAddressList";
|
|
11
12
|
const _sfc_main$2 = create$2({
|
|
12
13
|
components: { Del, Edit },
|
|
13
14
|
props: {
|
|
@@ -18,6 +19,7 @@ const _sfc_main$2 = create$2({
|
|
|
18
19
|
},
|
|
19
20
|
emits: ["delIcon", "editIcon", "clickItem"],
|
|
20
21
|
setup(props, { emit }) {
|
|
22
|
+
const translate = useLocale(cN$1);
|
|
21
23
|
const delClick = (event) => {
|
|
22
24
|
emit("delIcon", event, props.item);
|
|
23
25
|
event.stopPropagation();
|
|
@@ -34,11 +36,11 @@ const _sfc_main$2 = create$2({
|
|
|
34
36
|
delClick,
|
|
35
37
|
editClick,
|
|
36
38
|
contentsClick,
|
|
37
|
-
translate
|
|
39
|
+
translate
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
});
|
|
41
|
-
const _hoisted_1$
|
|
43
|
+
const _hoisted_1$2 = { class: "nut-address-list-item__info" };
|
|
42
44
|
const _hoisted_2$1 = { class: "nut-address-list-item__info-contact" };
|
|
43
45
|
const _hoisted_3 = { class: "nut-address-list-item__info-contact-name" };
|
|
44
46
|
const _hoisted_4 = { class: "nut-address-list-item__info-contact-tel" };
|
|
@@ -55,7 +57,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
55
57
|
class: "nut-address-list-item",
|
|
56
58
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.contentsClick && _ctx.contentsClick(...args))
|
|
57
59
|
}, [
|
|
58
|
-
createElementVNode("div", _hoisted_1$
|
|
60
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
59
61
|
createElementVNode("div", _hoisted_2$1, [
|
|
60
62
|
renderSlot(_ctx.$slots, "content-top", {}, () => [
|
|
61
63
|
createElementVNode("div", _hoisted_3, toDisplayString(_ctx.item.addressName), 1),
|
|
@@ -105,8 +107,8 @@ const _sfc_main$1 = create$1({
|
|
|
105
107
|
emits: ["delIcon", "editIcon", "clickItem", "longDown", "longCopy", "longSet", "longDel", "swipeDel"],
|
|
106
108
|
components: {
|
|
107
109
|
ItemContents,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
+
NutButton,
|
|
111
|
+
NutSwipe
|
|
110
112
|
},
|
|
111
113
|
setup(props, { emit }) {
|
|
112
114
|
const renderCompontent = () => {
|
|
@@ -208,7 +210,7 @@ const _sfc_main$1 = create$1({
|
|
|
208
210
|
};
|
|
209
211
|
}
|
|
210
212
|
});
|
|
211
|
-
const _hoisted_1 = {
|
|
213
|
+
const _hoisted_1$1 = {
|
|
212
214
|
key: 0,
|
|
213
215
|
class: "nut-address-list-general"
|
|
214
216
|
};
|
|
@@ -216,7 +218,7 @@ const _hoisted_2 = { class: "nut-address-list-swipe" };
|
|
|
216
218
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
217
219
|
const _component_nut_button = resolveComponent("nut-button");
|
|
218
220
|
const _component_nut_swipe = resolveComponent("nut-swipe");
|
|
219
|
-
return !_ctx.swipeEdition ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
221
|
+
return !_ctx.swipeEdition ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
220
222
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderCompontent()), {
|
|
221
223
|
onTouchstart: _ctx.holddownstart,
|
|
222
224
|
onTouchend: _ctx.holddownend,
|
|
@@ -297,7 +299,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
297
299
|
}));
|
|
298
300
|
}
|
|
299
301
|
const GeneralShell = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
300
|
-
const {
|
|
302
|
+
const { create } = createComponent("address-list");
|
|
303
|
+
const cN = "NutAddressList";
|
|
301
304
|
const _sfc_main = create({
|
|
302
305
|
props: {
|
|
303
306
|
data: {
|
|
@@ -323,10 +326,11 @@ const _sfc_main = create({
|
|
|
323
326
|
},
|
|
324
327
|
components: {
|
|
325
328
|
GeneralShell,
|
|
326
|
-
|
|
329
|
+
NutButton
|
|
327
330
|
},
|
|
328
331
|
emits: ["delIcon", "editIcon", "clickItem", "longCopy", "longSet", "longDel", "swipeDel", "add"],
|
|
329
332
|
setup(props, { emit }) {
|
|
333
|
+
const translate = useLocale(cN);
|
|
330
334
|
const dataArray = ref([]);
|
|
331
335
|
const dataInfo = reactive({
|
|
332
336
|
id: 2,
|
|
@@ -335,12 +339,6 @@ const _sfc_main = create({
|
|
|
335
339
|
defaultAddress: false,
|
|
336
340
|
fullAddress: "北京市通州区测试测试测试测试测试测试测试测试测试"
|
|
337
341
|
});
|
|
338
|
-
const classes = computed(() => {
|
|
339
|
-
const prefixCls = componentName;
|
|
340
|
-
return {
|
|
341
|
-
[prefixCls]: true
|
|
342
|
-
};
|
|
343
|
-
});
|
|
344
342
|
const trowelData = () => {
|
|
345
343
|
if (Object.keys(props.dataOptions).length > 0) {
|
|
346
344
|
dataArray.value = props.data.map((item) => {
|
|
@@ -389,7 +387,6 @@ const _sfc_main = create({
|
|
|
389
387
|
trowelData();
|
|
390
388
|
});
|
|
391
389
|
return {
|
|
392
|
-
classes,
|
|
393
390
|
clickDelIcon,
|
|
394
391
|
clickEditIcon,
|
|
395
392
|
clickContentItem,
|
|
@@ -403,12 +400,11 @@ const _sfc_main = create({
|
|
|
403
400
|
};
|
|
404
401
|
}
|
|
405
402
|
});
|
|
403
|
+
const _hoisted_1 = { class: "nut-address-list" };
|
|
406
404
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
407
405
|
const _component_general_shell = resolveComponent("general-shell");
|
|
408
406
|
const _component_nut_button = resolveComponent("nut-button");
|
|
409
|
-
return openBlock(), createElementBlock("div",
|
|
410
|
-
class: normalizeClass(_ctx.classes)
|
|
411
|
-
}, [
|
|
407
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
412
408
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dataArray, (item, index2) => {
|
|
413
409
|
return openBlock(), createBlock(_component_general_shell, {
|
|
414
410
|
key: index2,
|
|
@@ -465,7 +461,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
465
461
|
_: 1
|
|
466
462
|
})
|
|
467
463
|
])) : createCommentVNode("", true)
|
|
468
|
-
]
|
|
464
|
+
]);
|
|
469
465
|
}
|
|
470
466
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
471
467
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, computed, watch, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "
|
|
3
|
-
import { _ as _export_sfc } from "
|
|
2
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
3
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { create } = createComponent("animate");
|
|
6
6
|
const _sfc_main = create({
|
|
@@ -18,13 +18,13 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, reactive, onMounted, watch, provide, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, withCtx, createCommentVNode, normalizeClass, createBlock, renderSlot } from "vue";
|
|
21
|
-
import { c as createComponent } from "
|
|
21
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
22
22
|
import { Service } from "@nutui/icons-vue";
|
|
23
|
-
import
|
|
24
|
-
import { _ as _export_sfc } from "
|
|
23
|
+
import NutRange from "../range/Range.js";
|
|
24
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
25
25
|
import "../locale/lang";
|
|
26
|
-
import "
|
|
27
|
-
import "
|
|
26
|
+
import "../index-7a7385e4.js";
|
|
27
|
+
import "../index-29892cda.js";
|
|
28
28
|
const { create } = createComponent("audio");
|
|
29
29
|
const _sfc_main = create({
|
|
30
30
|
props: {
|
|
@@ -65,7 +65,7 @@ const _sfc_main = create({
|
|
|
65
65
|
},
|
|
66
66
|
components: {
|
|
67
67
|
Service,
|
|
68
|
-
|
|
68
|
+
NutRange
|
|
69
69
|
},
|
|
70
70
|
emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute", "canPlay"],
|
|
71
71
|
setup(props, { emit, slots }) {
|
|
@@ -18,12 +18,14 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { inject, reactive, ref, useSlots, toRefs, resolveComponent, openBlock, createElementBlock, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode, renderSlot } from "vue";
|
|
21
|
-
import { c as createComponent } from "
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
21
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
22
|
+
import NutButton from "../button/Button.js";
|
|
23
|
+
import { u as useLocale } from "../index-99fdd331.js";
|
|
24
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
25
|
import "../locale/lang";
|
|
25
26
|
import "@nutui/icons-vue";
|
|
26
|
-
const { create
|
|
27
|
+
const { create } = createComponent("audio-operate");
|
|
28
|
+
const cN = "NutAudioOperate";
|
|
27
29
|
const _sfc_main = create({
|
|
28
30
|
props: {
|
|
29
31
|
// 展示的形式 back 倒退 play 开始 or 暂停 forward 快进 mute 静音
|
|
@@ -33,10 +35,11 @@ const _sfc_main = create({
|
|
|
33
35
|
}
|
|
34
36
|
},
|
|
35
37
|
components: {
|
|
36
|
-
|
|
38
|
+
NutButton
|
|
37
39
|
},
|
|
38
40
|
emits: ["click"],
|
|
39
41
|
setup(props) {
|
|
42
|
+
const translate = useLocale(cN);
|
|
40
43
|
const audio = inject("audioParent");
|
|
41
44
|
const parent = reactive(audio);
|
|
42
45
|
const customSlot = ref(useSlots().default);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toRefs, inject, ref, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "
|
|
3
|
-
import { _ as _export_sfc } from "
|
|
2
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
3
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { create } = createComponent("avatar");
|
|
6
6
|
const _sfc_main = create({
|
|
@@ -62,7 +62,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62
62
|
renderSlot(_ctx.$slots, "default")
|
|
63
63
|
], 6);
|
|
64
64
|
}
|
|
65
|
-
const
|
|
65
|
+
const NutAvatar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
66
66
|
export {
|
|
67
|
-
|
|
67
|
+
NutAvatar as default
|
|
68
68
|
};
|
|
@@ -39,17 +39,17 @@ var __async = (__this, __arguments, generator) => {
|
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
41
|
import { reactive, ref, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, renderSlot, withDirectives, normalizeStyle, normalizeClass, createVNode, withCtx, createTextVNode, toDisplayString, vShow } from "vue";
|
|
42
|
-
import
|
|
43
|
-
import { c as createComponent,
|
|
42
|
+
import NutButton from "../button/Button.js";
|
|
43
|
+
import { c as createComponent, e as preventDefault, f as clamp } from "../component-a8dfbf81.js";
|
|
44
44
|
import { Refresh2, Retweet } from "@nutui/icons-vue";
|
|
45
|
-
import { u as useTouch } from "
|
|
46
|
-
import { u as useRect } from "
|
|
47
|
-
import { _ as _export_sfc } from "
|
|
45
|
+
import { u as useTouch } from "../index-7a7385e4.js";
|
|
46
|
+
import { u as useRect } from "../index-29892cda.js";
|
|
47
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
48
48
|
import "../locale/lang";
|
|
49
49
|
const { create } = createComponent("avatar-cropper");
|
|
50
50
|
const _sfc_main = create({
|
|
51
51
|
components: {
|
|
52
|
-
|
|
52
|
+
NutButton,
|
|
53
53
|
Refresh2,
|
|
54
54
|
Retweet
|
|
55
55
|
},
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const AvatarCropper = treeshaking(_AvatarCropper);
|
|
4
|
-
export { AvatarCropper };
|
|
1
|
+
import AvatarCropper from './AvatarCropper.js';
|
|
2
|
+
export { AvatarCropper, AvatarCropper as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ref, computed, onMounted, nextTick, unref, onUnmounted, provide, resolveComponent, openBlock, createElementBlock, normalizeStyle, renderSlot, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "
|
|
3
|
-
import
|
|
4
|
-
import { _ as _export_sfc } from "
|
|
2
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
3
|
+
import NutAvatar from "../avatar/Avatar.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
const { create } = createComponent("avatar-group");
|
|
7
7
|
const _sfc_main = create({
|
|
8
8
|
components: {
|
|
9
|
-
|
|
9
|
+
NutAvatar
|
|
10
10
|
},
|
|
11
11
|
props: {
|
|
12
12
|
maxContent: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { reactive, computed, onMounted, onUnmounted, onActivated, onDeactivated, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, withModifiers, renderSlot, createVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "
|
|
3
|
-
import { r as requestAniFrame, c as cancelRaf } from "
|
|
2
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
3
|
+
import { r as requestAniFrame, c as cancelRaf } from "../raf-729dad54.js";
|
|
4
4
|
import { Top } from "@nutui/icons-vue";
|
|
5
|
-
import { _ as _export_sfc } from "
|
|
5
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
6
|
import "../locale/lang";
|
|
7
7
|
const { componentName, create } = createComponent("backtop");
|
|
8
8
|
const _sfc_main = create({
|