@nutui/nutui 3.2.6-beta.1 → 3.2.6-beta.2
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 +18 -4
- package/dist/nutui.es.js +4461 -4135
- package/dist/nutui.umd.js +4559 -4133
- package/dist/packages/_es/ActionSheet.js +19 -18
- package/dist/packages/_es/Address.js +85 -94
- package/dist/packages/_es/AddressList.js +12 -25
- package/dist/packages/_es/Animate.js +3 -3
- package/dist/packages/_es/Audio.js +2 -9
- package/dist/packages/_es/AudioOperate.js +1 -5
- package/dist/packages/_es/Avatar.js +10 -10
- package/dist/packages/_es/AvatarGroup.js +5 -5
- package/dist/packages/_es/BackTop.js +108 -55
- package/dist/packages/_es/Badge.js +12 -10
- package/dist/packages/_es/Barrage.js +103 -79
- package/dist/packages/_es/Button.js +3 -5
- package/dist/packages/_es/Calendar.js +23 -36
- package/dist/packages/_es/CalendarItem.js +3 -4
- package/dist/packages/_es/Card.js +5 -15
- package/dist/packages/_es/Cascader.js +11 -12
- package/dist/packages/_es/Category.js +12 -13
- package/dist/packages/_es/CategoryPane.js +13 -17
- package/dist/packages/_es/Cell.js +12 -9
- package/dist/packages/_es/CellGroup.js +2 -4
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +82 -98
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +34 -65
- package/dist/packages/_es/CollapseItem.js +60 -93
- package/dist/packages/_es/Comment.js +19 -43
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +3 -3
- package/dist/packages/_es/CountUp.js +52 -47
- package/dist/packages/_es/DatePicker.js +54 -37
- package/dist/packages/_es/Dialog.js +88 -9
- package/dist/packages/_es/Divider.js +3 -3
- package/dist/packages/_es/Drag.js +49 -75
- package/dist/packages/_es/Ecard.js +18 -20
- package/dist/packages/_es/Elevator.js +76 -101
- package/dist/packages/_es/Ellipsis.js +100 -140
- package/dist/packages/_es/Empty.js +4 -6
- package/dist/packages/_es/FixedNav.js +6 -11
- package/dist/packages/_es/Form.js +4 -4
- package/dist/packages/_es/FormItem.js +1 -3
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +27 -10
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +114 -13
- package/dist/packages/_es/ImagePreview.js +411 -149
- package/dist/packages/_es/Indicator.js +3 -3
- package/dist/packages/_es/InfiniteLoading.js +115 -103
- package/dist/packages/_es/Input.js +32 -56
- package/dist/packages/_es/InputNumber.js +16 -25
- package/dist/packages/_es/Invoice.js +5 -6
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +34 -47
- package/dist/packages/_es/Menu.js +35 -35
- package/dist/packages/_es/MenuItem.js +29 -56
- package/dist/packages/_es/Navbar.js +39 -49
- package/dist/packages/_es/NoticeBar.js +45 -54
- package/dist/packages/_es/Notify.js +162 -44
- package/dist/packages/_es/NumberKeyboard.js +20 -15
- package/dist/packages/_es/OldPicker.js +116 -130
- package/dist/packages/_es/OverLay.js +28 -5
- package/dist/packages/_es/Pagination.js +5 -8
- package/dist/packages/_es/Picker.js +74 -198
- package/dist/packages/_es/Popover.js +881 -201
- package/dist/packages/_es/Popup.js +84 -28
- package/dist/packages/_es/Price.js +6 -22
- package/dist/packages/_es/Progress.js +11 -18
- package/dist/packages/_es/PullRefresh.js +2 -4
- package/dist/packages/_es/Radio.js +3 -3
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +34 -48
- package/dist/packages/_es/Rate.js +14 -15
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +36 -39
- package/dist/packages/_es/ShortPassword.js +66 -97
- package/dist/packages/_es/SideNavBar.js +18 -7
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +80 -113
- package/dist/packages/_es/Skeleton.js +11 -12
- package/dist/packages/_es/Sku.js +38 -63
- package/dist/packages/_es/Step.js +2 -7
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +23 -33
- package/dist/packages/_es/SubSideNavBar.js +2 -4
- package/dist/packages/_es/Swipe.js +26 -41
- package/dist/packages/_es/Swiper.js +21 -38
- package/dist/packages/_es/SwiperItem.js +2 -2
- package/dist/packages/_es/Switch.js +8 -8
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +13 -15
- package/dist/packages/_es/TabbarItem.js +30 -24
- package/dist/packages/_es/Table.js +17 -22
- package/dist/packages/_es/Tabs.js +16 -49
- package/dist/packages/_es/Tag.js +5 -6
- package/dist/packages/_es/TextArea.js +49 -114
- package/dist/packages/_es/TimeDetail.js +3 -4
- package/dist/packages/_es/TimePannel.js +3 -3
- package/dist/packages/_es/TimeSelect.js +10 -12
- package/dist/packages/_es/Toast.js +164 -53
- package/dist/packages/_es/TrendArrow.js +4 -6
- package/dist/packages/_es/Uploader.js +140 -141
- package/dist/packages/_es/Video.js +18 -39
- package/dist/packages/_es/WaterMark.js +14 -22
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +6 -44
- package/dist/packages/_es/index2.js +31 -8
- package/dist/packages/_es/index3.js +7 -64
- package/dist/packages/_es/index4.js +62 -424
- package/dist/packages/_es/{index.taro.js → index5.js} +154 -167
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/style.css +3 -21
- package/dist/packages/checkbox/index.scss +1 -0
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/menuitem/index.scss +12 -3
- package/dist/smartips/attributes.json +5 -1
- package/dist/smartips/tags.json +1 -0
- package/dist/smartips/web-types.json +11 -2
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +48 -48
- package/dist/styles/themes/jdb.scss +48 -48
- package/dist/styles/themes/jddkh.scss +48 -48
- package/dist/styles/themes/jdt.scss +48 -48
- package/dist/types/__VUE/actionsheet/{index.taro.vue.d.ts → index.vue.d.ts} +9 -9
- package/dist/types/__VUE/address/{index.taro.vue.d.ts → index.vue.d.ts} +33 -73
- package/dist/types/__VUE/addresslist/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/animate/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/avatar/{index.taro.vue.d.ts → index.vue.d.ts} +6 -6
- package/dist/types/__VUE/avatargroup/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/backtop/{index.taro.vue.d.ts → index.vue.d.ts} +37 -15
- package/dist/types/__VUE/badge/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/barrage/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/button/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendar/{index.taro.vue.d.ts → index.vue.d.ts} +1 -13
- package/dist/types/__VUE/calendaritem/{index.taro.vue.d.ts → index.vue.d.ts} +17 -17
- package/dist/types/__VUE/card/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/cascader/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/category/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/categorypane/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/cell/{index.taro.vue.d.ts → index.vue.d.ts} +5 -12
- package/dist/types/__VUE/checkbox/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/circleprogress/{index.taro.vue.d.ts → index.vue.d.ts} +15 -14
- package/dist/types/__VUE/collapse/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/collapseitem/{index.taro.vue.d.ts → index.vue.d.ts} +10 -2
- package/dist/types/__VUE/comment/{index.taro.vue.d.ts → index.vue.d.ts} +2 -1
- package/dist/types/__VUE/configprovider/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/countdown/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/countup/{index.taro.vue.d.ts → index.vue.d.ts} +7 -5
- package/dist/types/__VUE/datepicker/{index.taro.vue.d.ts → index.vue.d.ts} +5 -5
- package/dist/types/__VUE/dialog/index.d.ts +48 -0
- package/dist/types/__VUE/dialog/{index.taro.vue.d.ts → index.vue.d.ts} +12 -9
- package/dist/types/__VUE/divider/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/drag/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
- package/dist/types/__VUE/ecard/{index.taro.vue.d.ts → index.vue.d.ts} +3 -3
- package/dist/types/__VUE/elevator/{index.taro.vue.d.ts → index.vue.d.ts} +2 -11
- package/dist/types/__VUE/ellipsis/{index.taro.vue.d.ts → index.vue.d.ts} +0 -4
- package/dist/types/__VUE/empty/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/fixednav/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/form/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/grid/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/griditem/{index.taro.vue.d.ts → index.vue.d.ts} +27 -2
- package/dist/types/__VUE/image/index.vue.d.ts +117 -0
- package/dist/types/__VUE/image/type.d.ts +6 -0
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +109 -0
- package/dist/types/__VUE/imagepreview/index.d.ts +25 -0
- package/dist/types/__VUE/imagepreview/{index.taro.vue.d.ts → index.vue.d.ts} +44 -33
- package/dist/types/__VUE/indicator/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/infiniteloading/{index.taro.vue.d.ts → index.vue.d.ts} +12 -19
- package/dist/types/__VUE/input/{index.taro.vue.d.ts → index.vue.d.ts} +16 -34
- package/dist/types/__VUE/inputnumber/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/invoice/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/layout/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/list/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/menu/{index.taro.vue.d.ts → index.vue.d.ts} +0 -1
- package/dist/types/__VUE/menuitem/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/navbar/{index.taro.vue.d.ts → index.vue.d.ts} +3 -2
- package/dist/types/__VUE/noticebar/{index.taro.vue.d.ts → index.vue.d.ts} +4 -4
- package/dist/types/__VUE/notify/index.d.ts +26 -0
- package/dist/types/__VUE/notify/{index.taro.vue.d.ts → index.vue.d.ts} +18 -5
- package/dist/types/__VUE/numberkeyboard/{index.taro.vue.d.ts → index.vue.d.ts} +29 -5
- package/dist/types/__VUE/oldpicker/{ColumnTaro.vue.d.ts → Column.vue.d.ts} +17 -28
- package/dist/types/__VUE/oldpicker/{index.taro.vue.d.ts → index.vue.d.ts} +44 -64
- package/dist/types/__VUE/pagination/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/picker/{ColumnTaro.vue.d.ts → Column.vue.d.ts} +4 -16
- package/dist/types/__VUE/picker/{index.taro.vue.d.ts → index.vue.d.ts} +28 -53
- package/dist/types/__VUE/popover/{index.taro.vue.d.ts → index.vue.d.ts} +13 -15
- package/dist/types/__VUE/popup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/price/{index.taro.vue.d.ts → index.vue.d.ts} +0 -1
- package/dist/types/__VUE/progress/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/radio/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/range/{index.taro.vue.d.ts → index.vue.d.ts} +7 -8
- package/dist/types/__VUE/rate/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/searchbar/{index.taro.vue.d.ts → index.vue.d.ts} +19 -19
- package/dist/types/__VUE/shortpassword/{index.taro.vue.d.ts → index.vue.d.ts} +21 -6
- package/dist/types/__VUE/sidenavbar/{index.taro.vue.d.ts → index.vue.d.ts} +5 -0
- package/dist/types/__VUE/signature/{index.taro.vue.d.ts → index.vue.d.ts} +5 -8
- package/dist/types/__VUE/skeleton/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/sku/index.vue.d.ts +310 -0
- package/dist/types/__VUE/step/index.vue.d.ts +1 -1
- package/dist/types/__VUE/steps/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/sticky/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/swipe/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
- package/dist/types/__VUE/swiper/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
- package/dist/types/__VUE/swiperitem/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/switch/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabbar/{index.taro.vue.d.ts → index.vue.d.ts} +2 -1
- package/dist/types/__VUE/tabbaritem/{index.taro.vue.d.ts → index.vue.d.ts} +9 -9
- package/dist/types/__VUE/table/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabs/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/tag/{index.taro.vue.d.ts → index.vue.d.ts} +4 -4
- package/dist/types/__VUE/tag/type.d.ts +5 -0
- package/dist/types/__VUE/textarea/{index.taro.vue.d.ts → index.vue.d.ts} +3 -5
- package/dist/types/__VUE/timedetail/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/timepannel/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/timeselect/{index.taro.vue.d.ts → index.vue.d.ts} +8 -7
- package/dist/types/__VUE/toast/index.d.ts +16 -0
- package/dist/types/__VUE/toast/{index.taro.vue.d.ts → index.vue.d.ts} +22 -44
- package/dist/types/__VUE/trendarrow/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/uploader/{index.taro.vue.d.ts → index.vue.d.ts} +13 -22
- package/dist/types/__VUE/watermark/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +89 -89
- package/package.json +3 -2
- package/dist/packages/_es/use-lock-scroll.js +0 -23
- package/dist/types/__VUE/button/index.taro.vue.d.ts +0 -116
- package/dist/types/__VUE/icon/index.taro.vue.d.ts +0 -74
- package/dist/types/__VUE/image/index.taro.vue.d.ts +0 -33
- package/dist/types/__VUE/overlay/index.taro.vue.d.ts +0 -85
- package/dist/types/__VUE/popup/index.taro.vue.d.ts +0 -1728
- package/dist/types/__VUE/sku/index.taro.vue.d.ts +0 -182
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6-beta.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { c as createComponent } from "./component.js";
|
|
7
|
-
import { useSlots, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, createElementVNode, toDisplayString, createCommentVNode,
|
|
8
|
-
import {
|
|
7
|
+
import { useSlots, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, createElementVNode, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle, createBlock } from "vue";
|
|
8
|
+
import { popupProps } from "./Popup.js";
|
|
9
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
|
-
import "./
|
|
11
|
+
import "./OverLay.js";
|
|
12
|
+
import "./Icon.js";
|
|
12
13
|
import "./pxCheck.js";
|
|
13
14
|
const { componentName, create } = createComponent("actionsheet");
|
|
14
15
|
const _sfc_main = create({
|
|
@@ -46,12 +47,16 @@ const _sfc_main = create({
|
|
|
46
47
|
type: Array,
|
|
47
48
|
default: () => []
|
|
48
49
|
},
|
|
50
|
+
isWrapTeleport: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: true
|
|
53
|
+
},
|
|
49
54
|
closeAbled: {
|
|
50
55
|
type: Boolean,
|
|
51
56
|
default: true
|
|
52
57
|
}
|
|
53
58
|
},
|
|
54
|
-
emits: ["cancel", "choose", "update:visible"
|
|
59
|
+
emits: ["cancel", "close", "choose", "update:visible"],
|
|
55
60
|
setup(props, { emit }) {
|
|
56
61
|
const slotDefault = !!useSlots().default;
|
|
57
62
|
const classes = computed(() => {
|
|
@@ -67,9 +72,9 @@ const _sfc_main = create({
|
|
|
67
72
|
emit("cancel");
|
|
68
73
|
emit("update:visible", false);
|
|
69
74
|
};
|
|
70
|
-
const chooseItem = (item,
|
|
75
|
+
const chooseItem = (item, index2) => {
|
|
71
76
|
if (!item.disable && !item.loading) {
|
|
72
|
-
emit("choose", item,
|
|
77
|
+
emit("choose", item, index2);
|
|
73
78
|
emit("update:visible", false);
|
|
74
79
|
}
|
|
75
80
|
};
|
|
@@ -113,6 +118,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
113
118
|
createVNode(_component_nut_popup, {
|
|
114
119
|
"pop-class": "popclass",
|
|
115
120
|
visible: _ctx.visible,
|
|
121
|
+
isWrapTeleport: _ctx.isWrapTeleport,
|
|
116
122
|
position: "bottom",
|
|
117
123
|
round: "",
|
|
118
124
|
onClickOverlay: _ctx.close,
|
|
@@ -121,30 +127,25 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
121
127
|
default: withCtx(() => [
|
|
122
128
|
createElementVNode("view", _hoisted_1, [
|
|
123
129
|
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
124
|
-
createTextVNode(),
|
|
125
130
|
renderSlot(_ctx.$slots, "default"),
|
|
126
|
-
createTextVNode(),
|
|
127
131
|
!_ctx.slotDefault ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
128
132
|
_ctx.description ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
|
|
129
|
-
createTextVNode(),
|
|
130
133
|
_ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_5, [
|
|
131
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item,
|
|
134
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index2) => {
|
|
132
135
|
return openBlock(), createElementBlock("view", {
|
|
133
136
|
class: normalizeClass(["nut-actionsheet-item", { "nut-actionsheet-item-disabled": item.disable, "nut-actionsheet-item-loading": item.loading }]),
|
|
134
137
|
style: normalizeStyle({ color: _ctx.isHighlight(item) || item.color }),
|
|
135
|
-
key:
|
|
136
|
-
onClick: ($event) => _ctx.chooseItem(item,
|
|
138
|
+
key: index2,
|
|
139
|
+
onClick: ($event) => _ctx.chooseItem(item, index2)
|
|
137
140
|
}, [
|
|
138
141
|
item.loading ? (openBlock(), createBlock(_component_nut_icon, {
|
|
139
142
|
key: 0,
|
|
140
143
|
name: "loading"
|
|
141
144
|
})) : (openBlock(), createElementBlock("view", _hoisted_7, toDisplayString(item[_ctx.optionTag]), 1)),
|
|
142
|
-
createTextVNode(),
|
|
143
145
|
createElementVNode("view", _hoisted_8, toDisplayString(item[_ctx.optionSubTag]), 1)
|
|
144
146
|
], 14, _hoisted_6);
|
|
145
147
|
}), 128))
|
|
146
148
|
])) : createCommentVNode("", true),
|
|
147
|
-
createTextVNode(),
|
|
148
149
|
_ctx.cancelTxt ? (openBlock(), createElementBlock("view", {
|
|
149
150
|
key: 2,
|
|
150
151
|
class: "nut-actionsheet-cancel",
|
|
@@ -154,8 +155,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
154
155
|
])
|
|
155
156
|
]),
|
|
156
157
|
_: 3
|
|
157
|
-
}, 8, ["visible", "onClickOverlay", "closeOnClickOverlay"])
|
|
158
|
+
}, 8, ["visible", "isWrapTeleport", "onClickOverlay", "closeOnClickOverlay"])
|
|
158
159
|
], 2);
|
|
159
160
|
}
|
|
160
|
-
var
|
|
161
|
-
export {
|
|
161
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
162
|
+
export { index as default };
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6-beta.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import { popupProps } from "./Popup.js";
|
|
6
|
+
import { ref, computed, reactive, onMounted, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, withDirectives, createVNode, mergeProps, vShow, toDisplayString, createCommentVNode, createElementBlock, Fragment, renderList, normalizeClass, normalizeStyle, createTextVNode, renderSlot } from "vue";
|
|
8
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { popupProps } from "./Popup.js";
|
|
9
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
10
|
-
import "./use-lock-scroll.js";
|
|
11
|
-
import "./OverLay.js";
|
|
12
10
|
import "../locale/lang";
|
|
11
|
+
import "./OverLay.js";
|
|
13
12
|
import "./Icon.js";
|
|
14
13
|
import "./pxCheck.js";
|
|
15
|
-
const {
|
|
14
|
+
const { componentName, create, translate } = createComponent("address");
|
|
16
15
|
const _sfc_main = create({
|
|
17
16
|
inheritAttrs: false,
|
|
18
17
|
props: {
|
|
@@ -21,10 +20,6 @@ const _sfc_main = create({
|
|
|
21
20
|
type: Array,
|
|
22
21
|
default: () => []
|
|
23
22
|
},
|
|
24
|
-
visible: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: false
|
|
27
|
-
},
|
|
28
23
|
type: {
|
|
29
24
|
type: String,
|
|
30
25
|
default: "custom"
|
|
@@ -92,19 +87,8 @@ const _sfc_main = create({
|
|
|
92
87
|
},
|
|
93
88
|
emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "close-mask", "switch-module"],
|
|
94
89
|
setup(props, { emit }) {
|
|
95
|
-
const classes = computed(() => {
|
|
96
|
-
const prefixCls = componentName;
|
|
97
|
-
return {
|
|
98
|
-
[prefixCls]: true
|
|
99
|
-
};
|
|
100
|
-
});
|
|
101
90
|
const regionLine = ref(null);
|
|
102
|
-
const
|
|
103
|
-
province: ref(null),
|
|
104
|
-
city: ref(null),
|
|
105
|
-
country: ref(null),
|
|
106
|
-
town: ref(null)
|
|
107
|
-
});
|
|
91
|
+
const tabRegion = ref(null);
|
|
108
92
|
const showPopup = ref(props.visible);
|
|
109
93
|
const privateType = ref(props.type);
|
|
110
94
|
const tabIndex = ref(0);
|
|
@@ -127,16 +111,16 @@ const _sfc_main = create({
|
|
|
127
111
|
return a.title.localeCompare(b.title);
|
|
128
112
|
});
|
|
129
113
|
data.forEach((item) => {
|
|
130
|
-
const
|
|
131
|
-
if (
|
|
114
|
+
const index2 = newData.findIndex((value) => value.title === item.title);
|
|
115
|
+
if (index2 <= -1) {
|
|
132
116
|
newData.push({
|
|
133
117
|
title: item.title,
|
|
134
118
|
list: [].concat(item)
|
|
135
119
|
});
|
|
136
120
|
} else {
|
|
137
|
-
newData[
|
|
121
|
+
newData[index2] = {
|
|
138
122
|
title: item.title,
|
|
139
|
-
list: newData[
|
|
123
|
+
list: newData[index2].list.concat(item)
|
|
140
124
|
};
|
|
141
125
|
}
|
|
142
126
|
});
|
|
@@ -163,24 +147,25 @@ const _sfc_main = create({
|
|
|
163
147
|
const initCustomSelected = () => {
|
|
164
148
|
if (props.modelValue.length > 0) {
|
|
165
149
|
tabIndex.value = props.modelValue.length - 1;
|
|
166
|
-
for (let
|
|
167
|
-
if (regionList[tabName.value[
|
|
168
|
-
tabIndex.value =
|
|
150
|
+
for (let index2 = 0; index2 < props.modelValue.length; index2++) {
|
|
151
|
+
if (regionList[tabName.value[index2]].length == 0) {
|
|
152
|
+
tabIndex.value = index2 - 1;
|
|
169
153
|
break;
|
|
170
154
|
} else {
|
|
171
|
-
const val = props.modelValue[
|
|
172
|
-
const arr = regionList[tabName.value[
|
|
155
|
+
const val = props.modelValue[index2];
|
|
156
|
+
const arr = regionList[tabName.value[index2]];
|
|
173
157
|
if (privateType.value == "custom") {
|
|
174
|
-
selectedRegion[tabName.value[
|
|
158
|
+
selectedRegion[tabName.value[index2]] = arr.filter((item) => item.id == val)[0];
|
|
175
159
|
} else if (privateType.value == "custom2") {
|
|
176
160
|
let sumArr = [];
|
|
177
161
|
arr.map((item) => {
|
|
178
162
|
sumArr.push(...item.list);
|
|
179
163
|
});
|
|
180
|
-
selectedRegion[tabName.value[
|
|
164
|
+
selectedRegion[tabName.value[index2]] = sumArr.filter((item) => item.id == val)[0];
|
|
181
165
|
}
|
|
182
166
|
}
|
|
183
167
|
}
|
|
168
|
+
lineAnimation();
|
|
184
169
|
}
|
|
185
170
|
};
|
|
186
171
|
const customPlaceholder = () => {
|
|
@@ -190,22 +175,22 @@ const _sfc_main = create({
|
|
|
190
175
|
tabNameDefault.value = new Array(4).fill(props.columnsPlaceholder || selectStr);
|
|
191
176
|
} else if (typeD == "[object Array]") {
|
|
192
177
|
tabNameDefault.value = new Array(4).fill("");
|
|
193
|
-
tabNameDefault.value.forEach((val,
|
|
194
|
-
if (props.columnsPlaceholder[
|
|
195
|
-
tabNameDefault.value[
|
|
178
|
+
tabNameDefault.value.forEach((val, index2) => {
|
|
179
|
+
if (props.columnsPlaceholder[index2]) {
|
|
180
|
+
tabNameDefault.value[index2] = props.columnsPlaceholder[index2];
|
|
196
181
|
} else {
|
|
197
|
-
tabNameDefault.value[
|
|
182
|
+
tabNameDefault.value[index2] = selectStr;
|
|
198
183
|
}
|
|
199
184
|
});
|
|
200
185
|
}
|
|
201
186
|
};
|
|
202
|
-
const getTabName = (item,
|
|
187
|
+
const getTabName = (item, index2) => {
|
|
203
188
|
if (item.name)
|
|
204
189
|
return item.name;
|
|
205
|
-
if (tabIndex.value <
|
|
190
|
+
if (tabIndex.value < index2) {
|
|
206
191
|
return item.name;
|
|
207
192
|
} else {
|
|
208
|
-
return tabNameDefault.value[
|
|
193
|
+
return tabNameDefault.value[index2];
|
|
209
194
|
}
|
|
210
195
|
};
|
|
211
196
|
const handClose = (type = "self") => {
|
|
@@ -217,6 +202,15 @@ const _sfc_main = create({
|
|
|
217
202
|
const clickOverlay = () => {
|
|
218
203
|
closeWay.value = "mask";
|
|
219
204
|
};
|
|
205
|
+
const lineAnimation = () => {
|
|
206
|
+
nextTick(() => {
|
|
207
|
+
const name = tabRegion.value && tabRegion.value.getElementsByClassName("active")[0];
|
|
208
|
+
if (name) {
|
|
209
|
+
const distance = name.offsetLeft;
|
|
210
|
+
lineDistance.value = distance ? distance : 20;
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
};
|
|
220
214
|
const nextAreaList = (item) => {
|
|
221
215
|
const calBack = {
|
|
222
216
|
next: "",
|
|
@@ -229,6 +223,7 @@ const _sfc_main = create({
|
|
|
229
223
|
}
|
|
230
224
|
if (tabIndex.value < 3) {
|
|
231
225
|
tabIndex.value = tabIndex.value + 1;
|
|
226
|
+
lineAnimation();
|
|
232
227
|
calBack.next = tabName.value[tabIndex.value];
|
|
233
228
|
calBack.value = item;
|
|
234
229
|
emit("change", calBack);
|
|
@@ -237,15 +232,16 @@ const _sfc_main = create({
|
|
|
237
232
|
emit("update:modelValue");
|
|
238
233
|
}
|
|
239
234
|
};
|
|
240
|
-
const changeRegionTab = (item, key,
|
|
241
|
-
if (getTabName(item,
|
|
242
|
-
tabIndex.value =
|
|
235
|
+
const changeRegionTab = (item, key, index2) => {
|
|
236
|
+
if (getTabName(item, index2)) {
|
|
237
|
+
tabIndex.value = index2;
|
|
238
|
+
lineAnimation();
|
|
243
239
|
}
|
|
244
240
|
};
|
|
245
241
|
const selectedExist = (item) => {
|
|
246
242
|
const copyExistAdd = props.existAddress;
|
|
247
243
|
let prevExistAdd = {};
|
|
248
|
-
copyExistAdd.forEach((list,
|
|
244
|
+
copyExistAdd.forEach((list, index2) => {
|
|
249
245
|
if (list && list.selectedAddress) {
|
|
250
246
|
prevExistAdd = list;
|
|
251
247
|
}
|
|
@@ -261,8 +257,10 @@ const _sfc_main = create({
|
|
|
261
257
|
selectedRegion[tabName.value[i]] = {};
|
|
262
258
|
}
|
|
263
259
|
tabIndex.value = 0;
|
|
260
|
+
lineAnimation();
|
|
264
261
|
};
|
|
265
262
|
const close = () => {
|
|
263
|
+
console.log("\u5173\u95ED", closeWay.value, showPopup.value);
|
|
266
264
|
const resCopy = Object.assign(
|
|
267
265
|
{
|
|
268
266
|
addressIdStr: "",
|
|
@@ -321,9 +319,10 @@ const _sfc_main = create({
|
|
|
321
319
|
watch(
|
|
322
320
|
() => showPopup.value,
|
|
323
321
|
(value) => {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
322
|
+
console.log("\u76D1\u542C showpopup", showPopup.value);
|
|
323
|
+
if (value == false)
|
|
324
|
+
;
|
|
325
|
+
else {
|
|
327
326
|
initCustomSelected();
|
|
328
327
|
}
|
|
329
328
|
}
|
|
@@ -355,7 +354,7 @@ const _sfc_main = create({
|
|
|
355
354
|
watch(
|
|
356
355
|
() => props.existAddress,
|
|
357
356
|
(value) => {
|
|
358
|
-
value.forEach((item,
|
|
357
|
+
value.forEach((item, index2) => {
|
|
359
358
|
if (item.selectedAddress) {
|
|
360
359
|
selectedExistAddress = item;
|
|
361
360
|
}
|
|
@@ -363,7 +362,6 @@ const _sfc_main = create({
|
|
|
363
362
|
}
|
|
364
363
|
);
|
|
365
364
|
return {
|
|
366
|
-
classes,
|
|
367
365
|
showPopup,
|
|
368
366
|
privateType,
|
|
369
367
|
tabIndex,
|
|
@@ -377,14 +375,15 @@ const _sfc_main = create({
|
|
|
377
375
|
getTabName,
|
|
378
376
|
nextAreaList,
|
|
379
377
|
regionLine,
|
|
378
|
+
tabRegion,
|
|
380
379
|
lineDistance,
|
|
381
380
|
changeRegionTab,
|
|
382
381
|
selectedExist,
|
|
383
382
|
clickOverlay,
|
|
384
383
|
handClose,
|
|
385
384
|
handleElevatorItem,
|
|
385
|
+
initCustomSelected,
|
|
386
386
|
...toRefs(props),
|
|
387
|
-
...toRefs(tabItemRef),
|
|
388
387
|
translate
|
|
389
388
|
};
|
|
390
389
|
}
|
|
@@ -441,7 +440,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
441
440
|
onClickOverlay: _ctx.clickOverlay,
|
|
442
441
|
onOpen: _cache[3] || (_cache[3] = ($event) => _ctx.closeWay = "self"),
|
|
443
442
|
visible: _ctx.showPopup,
|
|
444
|
-
"onUpdate:visible": _cache[4] || (_cache[4] = ($event) => _ctx.showPopup = $event)
|
|
443
|
+
"onUpdate:visible": _cache[4] || (_cache[4] = ($event) => _ctx.showPopup = $event),
|
|
444
|
+
isWrapTeleport: _ctx.isWrapTeleport,
|
|
445
|
+
teleport: _ctx.teleport
|
|
445
446
|
}, {
|
|
446
447
|
default: withCtx(() => [
|
|
447
448
|
createElementVNode("view", _hoisted_1, [
|
|
@@ -457,9 +458,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
457
458
|
[vShow, _ctx.type == "exist" && _ctx.privateType == "custom" && _ctx.backBtnIcon]
|
|
458
459
|
])
|
|
459
460
|
]),
|
|
460
|
-
createTextVNode(),
|
|
461
461
|
createElementVNode("view", _hoisted_3, toDisplayString(_ctx.privateType == "custom" ? _ctx.customAddressTitle || _ctx.translate("selectRegion") : _ctx.existAddressTitle || _ctx.translate("deliveryTo")), 1),
|
|
462
|
-
createTextVNode(),
|
|
463
462
|
createElementVNode("view", {
|
|
464
463
|
class: "arrow-close",
|
|
465
464
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.handClose("cross"))
|
|
@@ -471,32 +470,29 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
471
470
|
}), null, 16, ["name"])) : createCommentVNode("", true)
|
|
472
471
|
])
|
|
473
472
|
]),
|
|
474
|
-
createTextVNode(),
|
|
475
473
|
_ctx.privateType == "custom" ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
476
474
|
createElementVNode("view", _hoisted_5, [
|
|
477
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, key,
|
|
475
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, key, index2) => {
|
|
478
476
|
return openBlock(), createElementBlock("view", {
|
|
479
|
-
class: normalizeClass(
|
|
480
|
-
key:
|
|
481
|
-
onClick: ($event) => _ctx.changeRegionTab(item, key,
|
|
477
|
+
class: normalizeClass(["tab-item", [index2 == _ctx.tabIndex ? "active" : ""]]),
|
|
478
|
+
key: index2,
|
|
479
|
+
onClick: ($event) => _ctx.changeRegionTab(item, key, index2)
|
|
482
480
|
}, [
|
|
483
|
-
createElementVNode("view", null, toDisplayString(_ctx.getTabName(item,
|
|
484
|
-
createTextVNode(),
|
|
485
|
-
createElementVNode("view", {
|
|
486
|
-
class: normalizeClass({ "region-tab-line-mini": true, active: index == _ctx.tabIndex }),
|
|
487
|
-
ref_for: true,
|
|
488
|
-
ref: "regionLine"
|
|
489
|
-
}, null, 2)
|
|
481
|
+
createElementVNode("view", null, toDisplayString(_ctx.getTabName(item, index2)), 1)
|
|
490
482
|
], 10, _hoisted_6);
|
|
491
|
-
}), 128))
|
|
483
|
+
}), 128)),
|
|
484
|
+
createElementVNode("view", {
|
|
485
|
+
class: "region-tab-line",
|
|
486
|
+
ref: "regionLine",
|
|
487
|
+
style: normalizeStyle({ left: _ctx.lineDistance + "px" })
|
|
488
|
+
}, null, 4)
|
|
492
489
|
], 512),
|
|
493
|
-
createTextVNode(),
|
|
494
490
|
createElementVNode("view", _hoisted_7, [
|
|
495
491
|
createElementVNode("ul", _hoisted_8, [
|
|
496
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.regionList[_ctx.tabName[_ctx.tabIndex]], (item,
|
|
492
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.regionList[_ctx.tabName[_ctx.tabIndex]], (item, index2) => {
|
|
497
493
|
return openBlock(), createElementBlock("li", {
|
|
498
|
-
key:
|
|
499
|
-
class: normalizeClass(["region-item", _ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? "active" : ""]),
|
|
494
|
+
key: index2,
|
|
495
|
+
class: normalizeClass(["region-item", [_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? "active" : ""]]),
|
|
500
496
|
onClick: ($event) => _ctx.nextAreaList(item)
|
|
501
497
|
}, [
|
|
502
498
|
_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
@@ -514,21 +510,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
514
510
|
])
|
|
515
511
|
])) : _ctx.privateType == "custom2" ? (openBlock(), createElementBlock("view", _hoisted_10, [
|
|
516
512
|
createElementVNode("view", _hoisted_11, [
|
|
517
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, key,
|
|
513
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, key, index2) => {
|
|
518
514
|
return openBlock(), createElementBlock("view", {
|
|
519
|
-
class: normalizeClass(
|
|
520
|
-
key:
|
|
521
|
-
onClick: ($event) => _ctx.changeRegionTab(item, key,
|
|
515
|
+
class: normalizeClass(["tab-item", [index2 == _ctx.tabIndex ? "active" : ""]]),
|
|
516
|
+
key: index2,
|
|
517
|
+
onClick: ($event) => _ctx.changeRegionTab(item, key, index2)
|
|
522
518
|
}, [
|
|
523
|
-
createElementVNode("view", null, toDisplayString(_ctx.getTabName(item,
|
|
524
|
-
createTextVNode(),
|
|
525
|
-
createElementVNode("view", {
|
|
526
|
-
class: normalizeClass({ "region-tab-line-mini": true, active: index == _ctx.tabIndex })
|
|
527
|
-
}, null, 2)
|
|
519
|
+
createElementVNode("view", null, toDisplayString(_ctx.getTabName(item, index2)), 1)
|
|
528
520
|
], 10, _hoisted_12);
|
|
529
|
-
}), 128))
|
|
521
|
+
}), 128)),
|
|
522
|
+
createElementVNode("view", {
|
|
523
|
+
class: "region-tab-line",
|
|
524
|
+
ref: "regionLine",
|
|
525
|
+
style: normalizeStyle({ left: _ctx.lineDistance + "px" })
|
|
526
|
+
}, null, 4)
|
|
530
527
|
], 512),
|
|
531
|
-
createTextVNode(),
|
|
532
528
|
createElementVNode("view", _hoisted_13, [
|
|
533
529
|
createVNode(_component_nut_elevator, {
|
|
534
530
|
height: _ctx.height,
|
|
@@ -539,10 +535,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
539
535
|
])) : _ctx.privateType == "exist" ? (openBlock(), createElementBlock("view", _hoisted_14, [
|
|
540
536
|
createElementVNode("div", _hoisted_15, [
|
|
541
537
|
createElementVNode("ul", _hoisted_16, [
|
|
542
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.existAddress, (item,
|
|
538
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.existAddress, (item, index2) => {
|
|
543
539
|
return openBlock(), createElementBlock("li", {
|
|
544
540
|
class: normalizeClass(["exist-item", [item.selectedAddress ? "active" : ""]]),
|
|
545
|
-
key:
|
|
541
|
+
key: index2,
|
|
546
542
|
onClick: ($event) => _ctx.selectedExist(item)
|
|
547
543
|
}, [
|
|
548
544
|
createVNode(_component_nut_icon, mergeProps({
|
|
@@ -552,14 +548,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
552
548
|
name: item.selectedAddress ? _ctx.selectedIcon : _ctx.defaultIcon,
|
|
553
549
|
size: "13px"
|
|
554
550
|
}), null, 16, ["name"]),
|
|
555
|
-
createTextVNode(),
|
|
556
551
|
createElementVNode("div", _hoisted_18, [
|
|
557
552
|
item.name && item.phone ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
558
553
|
createElementVNode("div", _hoisted_20, toDisplayString(item.name), 1),
|
|
559
|
-
createTextVNode(),
|
|
560
554
|
createElementVNode("div", _hoisted_21, toDisplayString(item.phone), 1)
|
|
561
555
|
])) : createCommentVNode("", true),
|
|
562
|
-
createTextVNode(),
|
|
563
556
|
createElementVNode("div", _hoisted_22, [
|
|
564
557
|
createElementVNode("view", null, toDisplayString(item.provinceName + item.cityName + item.countyName + item.townName + item.addressDetail), 1)
|
|
565
558
|
])
|
|
@@ -568,21 +561,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
568
561
|
}), 128))
|
|
569
562
|
])
|
|
570
563
|
]),
|
|
571
|
-
createTextVNode(),
|
|
572
564
|
_ctx.isShowCustomAddress ? (openBlock(), createElementBlock("div", {
|
|
573
565
|
key: 0,
|
|
574
566
|
class: "choose-other",
|
|
575
567
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.switchModule && _ctx.switchModule(...args))
|
|
576
568
|
}, [
|
|
577
569
|
createElementVNode("div", _hoisted_23, toDisplayString(_ctx.customAndExistTitle || _ctx.translate("chooseAnotherAddress")), 1)
|
|
578
|
-
])) : createCommentVNode("", true)
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
])) : createCommentVNode("", true)
|
|
570
|
+
])) : createCommentVNode("", true)
|
|
571
|
+
])) : createCommentVNode("", true),
|
|
572
|
+
renderSlot(_ctx.$slots, "bottom")
|
|
582
573
|
])
|
|
583
574
|
]),
|
|
584
575
|
_: 3
|
|
585
|
-
}, 8, ["lock-scroll", "onClose", "onClickOverlay", "visible"]);
|
|
576
|
+
}, 8, ["lock-scroll", "onClose", "onClickOverlay", "visible", "isWrapTeleport", "teleport"]);
|
|
586
577
|
}
|
|
587
|
-
var
|
|
588
|
-
export {
|
|
578
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
579
|
+
export { index as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6-beta.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, toDisplayString,
|
|
6
|
+
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createVNode, createTextVNode, ref, withCtx, createBlock, reactive, watch, onMounted, Fragment, renderList } from "vue";
|
|
7
7
|
import { c as createComponent, f as floatData } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
@@ -64,13 +64,10 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
64
64
|
createElementVNode("div", _hoisted_2$1, [
|
|
65
65
|
renderSlot(_ctx.$slots, "contentTop", {}, () => [
|
|
66
66
|
createElementVNode("div", _hoisted_3$1, toDisplayString(_ctx.item.addressName), 1),
|
|
67
|
-
createTextVNode(),
|
|
68
67
|
createElementVNode("div", _hoisted_4$1, toDisplayString(_ctx.item.phone), 1),
|
|
69
|
-
createTextVNode(),
|
|
70
68
|
_ctx.item.defaultAddress ? (openBlock(), createElementBlock("div", _hoisted_5$1, toDisplayString(_ctx.translate("default")), 1)) : createCommentVNode("", true)
|
|
71
69
|
])
|
|
72
70
|
]),
|
|
73
|
-
createTextVNode(),
|
|
74
71
|
createElementVNode("div", _hoisted_6$1, [
|
|
75
72
|
renderSlot(_ctx.$slots, "contentIcon", {}, () => [
|
|
76
73
|
createVNode(_component_nut_icon, {
|
|
@@ -78,7 +75,6 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78
75
|
class: "nut-item-contents__info-handle-del",
|
|
79
76
|
onClick: _ctx.delClick
|
|
80
77
|
}, null, 8, ["onClick"]),
|
|
81
|
-
createTextVNode(),
|
|
82
78
|
createVNode(_component_nut_icon, {
|
|
83
79
|
name: "edit",
|
|
84
80
|
class: "nut-item-contents__info-handle-edit",
|
|
@@ -87,7 +83,6 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
87
83
|
])
|
|
88
84
|
])
|
|
89
85
|
]),
|
|
90
|
-
createTextVNode(),
|
|
91
86
|
createElementVNode("div", _hoisted_7$1, [
|
|
92
87
|
renderSlot(_ctx.$slots, "contentAddr", {}, () => [
|
|
93
88
|
createTextVNode(toDisplayString(_ctx.item.fullAddress), 1)
|
|
@@ -243,7 +238,6 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
243
238
|
]),
|
|
244
239
|
_: 3
|
|
245
240
|
}, 8, ["item", "onDelIconClick", "onEditIconClick", "onItemClick"]),
|
|
246
|
-
createTextVNode(),
|
|
247
241
|
_ctx.showMaskRef ? (openBlock(), createElementBlock("div", {
|
|
248
242
|
key: 0,
|
|
249
243
|
class: "nut-long-press-shell__contain-mask",
|
|
@@ -254,12 +248,10 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
254
248
|
class: "nut-long-press-shell__contain-mask-copy",
|
|
255
249
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.copyCLick && _ctx.copyCLick(...args))
|
|
256
250
|
}, _hoisted_3),
|
|
257
|
-
createTextVNode(),
|
|
258
251
|
createElementVNode("div", {
|
|
259
252
|
class: "nut-long-press-shell__contain-mask-set",
|
|
260
253
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.setDefault && _ctx.setDefault(...args))
|
|
261
254
|
}, _hoisted_5),
|
|
262
|
-
createTextVNode(),
|
|
263
255
|
createElementVNode("div", {
|
|
264
256
|
class: "nut-long-press-shell__contain-mask-del",
|
|
265
257
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.delClick && _ctx.delClick(...args))
|
|
@@ -267,7 +259,6 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
267
259
|
])
|
|
268
260
|
])) : createCommentVNode("", true)
|
|
269
261
|
], 32),
|
|
270
|
-
createTextVNode(),
|
|
271
262
|
_ctx.showMaskRef ? (openBlock(), createElementBlock("div", {
|
|
272
263
|
key: 0,
|
|
273
264
|
class: "nut-addresslist__mask-bottom",
|
|
@@ -366,8 +357,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
366
357
|
]),
|
|
367
358
|
_: 3
|
|
368
359
|
}, 8, ["item", "onDelIconClick", "onEditIconClick", "onItemClick", "onTouchmove", "onTouchstart"])
|
|
369
|
-
])
|
|
370
|
-
createTextVNode()
|
|
360
|
+
])
|
|
371
361
|
]),
|
|
372
362
|
_: 3
|
|
373
363
|
});
|
|
@@ -484,7 +474,7 @@ const _sfc_main = create({
|
|
|
484
474
|
});
|
|
485
475
|
const trowelData = () => {
|
|
486
476
|
if (Object.keys(props.dataMapOptions).length > 0) {
|
|
487
|
-
dataArray.value = props.data.map((item,
|
|
477
|
+
dataArray.value = props.data.map((item, index2) => {
|
|
488
478
|
return floatData(dataInfo, item, props.dataMapOptions);
|
|
489
479
|
});
|
|
490
480
|
}
|
|
@@ -550,9 +540,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
550
540
|
const _component_swipe_shell = resolveComponent("swipe-shell");
|
|
551
541
|
const _component_nut_button = resolveComponent("nut-button");
|
|
552
542
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
553
|
-
!_ctx.longPressEdition && !_ctx.swipeEdition ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.dataArray, (item,
|
|
543
|
+
!_ctx.longPressEdition && !_ctx.swipeEdition ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.dataArray, (item, index2) => {
|
|
554
544
|
return openBlock(), createBlock(_component_general_shell, {
|
|
555
|
-
key: "general" +
|
|
545
|
+
key: "general" + index2,
|
|
556
546
|
item,
|
|
557
547
|
onHandleDelIcon: _ctx.clickDelIcon,
|
|
558
548
|
onHandleEditIcon: _ctx.clickEditIcon,
|
|
@@ -560,10 +550,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
560
550
|
onHandelSwipeDel: _ctx.clickSwipeDel
|
|
561
551
|
}, null, 8, ["item", "onHandleDelIcon", "onHandleEditIcon", "onHandleItemContent", "onHandelSwipeDel"]);
|
|
562
552
|
}), 128)) : createCommentVNode("", true),
|
|
563
|
-
|
|
564
|
-
_ctx.longPressEdition && !_ctx.swipeEdition ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.dataArray, (item, index) => {
|
|
553
|
+
_ctx.longPressEdition && !_ctx.swipeEdition ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.dataArray, (item, index2) => {
|
|
565
554
|
return openBlock(), createBlock(_component_long_press_shell, {
|
|
566
|
-
key: "longpress" +
|
|
555
|
+
key: "longpress" + index2,
|
|
567
556
|
item,
|
|
568
557
|
onHandleDelIcon: _ctx.clickDelIcon,
|
|
569
558
|
onHandleEditIcon: _ctx.clickEditIcon,
|
|
@@ -587,10 +576,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
587
576
|
_: 2
|
|
588
577
|
}, 1032, ["item", "onHandleDelIcon", "onHandleEditIcon", "onHandleItemContent", "onHandleCopy", "onHandleSet", "onHandleDel"]);
|
|
589
578
|
}), 128)) : createCommentVNode("", true),
|
|
590
|
-
|
|
591
|
-
!_ctx.longPressEdition && _ctx.swipeEdition ? (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(_ctx.dataArray, (item, index) => {
|
|
579
|
+
!_ctx.longPressEdition && _ctx.swipeEdition ? (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(_ctx.dataArray, (item, index2) => {
|
|
592
580
|
return openBlock(), createBlock(_component_swipe_shell, {
|
|
593
|
-
key: "swipe" +
|
|
581
|
+
key: "swipe" + index2,
|
|
594
582
|
item,
|
|
595
583
|
onHandleDelIcon: _ctx.clickDelIcon,
|
|
596
584
|
onHandleEditIcon: _ctx.clickEditIcon,
|
|
@@ -612,7 +600,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
612
600
|
_: 2
|
|
613
601
|
}, 1032, ["item", "onHandleDelIcon", "onHandleEditIcon", "onHandleItemContent", "onHandelSwipeDel"]);
|
|
614
602
|
}), 128)) : createCommentVNode("", true),
|
|
615
|
-
createTextVNode(),
|
|
616
603
|
_ctx.showBottomButton ? (openBlock(), createElementBlock("div", {
|
|
617
604
|
key: 3,
|
|
618
605
|
class: "nut-addresslist__bottom",
|
|
@@ -630,5 +617,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
630
617
|
])) : createCommentVNode("", true)
|
|
631
618
|
]);
|
|
632
619
|
}
|
|
633
|
-
var
|
|
634
|
-
export {
|
|
620
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
621
|
+
export { index as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6-beta.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -60,5 +60,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
60
60
|
], 2)
|
|
61
61
|
]);
|
|
62
62
|
}
|
|
63
|
-
var
|
|
64
|
-
export {
|
|
63
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
64
|
+
export { index as default };
|