@nutui/nutui 3.1.22-beta.3 → 3.1.23-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -0
- package/README.md +3 -4
- package/dist/nutui.es.js +20426 -4050
- package/dist/nutui.umd.js +20529 -4049
- package/dist/packages/_es/ActionSheet.js +149 -36
- package/dist/packages/_es/Address.js +535 -129
- package/dist/packages/_es/AddressList.js +615 -113
- package/dist/packages/_es/Animate.js +64 -0
- package/dist/packages/_es/Audio.js +257 -72
- package/dist/packages/_es/AudioOperate.js +100 -32
- package/dist/packages/_es/Avatar.js +162 -54
- package/dist/packages/_es/AvatarGroup.js +73 -14
- package/dist/packages/_es/BackTop.js +156 -43
- package/dist/packages/_es/Badge.js +86 -14
- package/dist/packages/_es/Barrage.js +120 -41
- package/dist/packages/_es/Button.js +128 -23
- package/dist/packages/_es/Calendar.js +246 -24
- package/dist/packages/_es/CalendarItem.js +2 -1
- package/dist/packages/_es/Card.js +107 -10
- package/dist/packages/_es/Cascader.js +496 -179
- package/dist/packages/_es/Category.js +58 -15
- package/dist/packages/_es/CategoryPane.js +111 -11
- package/dist/packages/_es/Cell.js +108 -21
- package/dist/packages/_es/CellGroup.js +44 -9
- package/dist/packages/_es/Checkbox.js +134 -29
- package/dist/packages/_es/CheckboxGroup.js +79 -29
- package/dist/packages/_es/CircleProgress.js +150 -28
- package/dist/packages/_es/Col.js +56 -14
- package/dist/packages/_es/Collapse.js +110 -24
- package/dist/packages/_es/CollapseItem.js +252 -80
- package/dist/packages/_es/Comment.js +434 -64
- package/dist/packages/_es/ConfigProvider.js +25 -0
- package/dist/packages/_es/CountDown.js +238 -75
- package/dist/packages/_es/CountUp.js +539 -159
- package/dist/packages/_es/DatePicker.js +315 -117
- package/dist/packages/_es/Dialog.js +289 -79
- package/dist/packages/_es/Divider.js +65 -32
- package/dist/packages/_es/Drag.js +197 -56
- package/dist/packages/_es/Ecard.js +159 -24
- package/dist/packages/_es/Elevator.js +255 -77
- package/dist/packages/_es/Ellipsis.js +206 -0
- package/dist/packages/_es/Empty.js +71 -12
- package/dist/packages/_es/FixedNav.js +122 -15
- package/dist/packages/_es/Form.js +151 -64
- package/dist/packages/_es/FormItem.js +114 -15
- package/dist/packages/_es/Grid.js +6 -5
- package/dist/packages/_es/GridItem.js +144 -33
- package/dist/packages/_es/Icon.js +40 -15
- package/dist/packages/_es/Image.js +142 -0
- package/dist/packages/_es/ImagePreview.js +547 -84
- package/dist/packages/_es/Indicator.js +62 -15
- package/dist/packages/_es/InfiniteLoading.js +249 -76
- package/dist/packages/_es/Input.js +433 -51
- package/dist/packages/_es/InputNumber.js +160 -41
- package/dist/packages/_es/Layout.js +5 -4
- package/dist/packages/_es/List.js +106 -37
- package/dist/packages/_es/Menu.js +168 -29
- package/dist/packages/_es/MenuItem.js +173 -34
- package/dist/packages/_es/Navbar.js +192 -30
- package/dist/packages/_es/NoticeBar.js +380 -93
- package/dist/packages/_es/Notify.js +227 -91
- package/dist/packages/_es/NumberKeyboard.js +272 -41
- package/dist/packages/_es/OldPicker.js +457 -149
- package/dist/packages/_es/OverLay.js +98 -40
- package/dist/packages/_es/Pagination.js +157 -39
- package/dist/packages/_es/Picker.js +460 -148
- package/dist/packages/_es/Popover.js +957 -337
- package/dist/packages/_es/Popup.js +299 -74
- package/dist/packages/_es/Price.js +118 -16
- package/dist/packages/_es/Progress.js +146 -14
- package/dist/packages/_es/PullRefresh.js +339 -100
- package/dist/packages/_es/Radio.js +90 -22
- package/dist/packages/_es/RadioGroup.js +37 -8
- package/dist/packages/_es/Range.js +408 -102
- package/dist/packages/_es/Rate.js +193 -16
- package/dist/packages/_es/Row.js +64 -22
- package/dist/packages/_es/SearchBar.js +238 -56
- package/dist/packages/_es/ShortPassword.js +225 -35
- package/dist/packages/_es/SideNavBar.js +81 -43
- package/dist/packages/_es/SideNavBarItem.js +46 -11
- package/dist/packages/_es/Signature.js +160 -60
- package/dist/packages/_es/Skeleton.js +136 -20
- package/dist/packages/_es/Sku.js +491 -103
- package/dist/packages/_es/Step.js +115 -39
- package/dist/packages/_es/Steps.js +53 -18
- package/dist/packages/_es/Sticky.js +138 -53
- package/dist/packages/_es/SubSideNavBar.js +82 -36
- package/dist/packages/_es/Swipe.js +178 -60
- package/dist/packages/_es/Swiper.js +433 -121
- package/dist/packages/_es/SwiperItem.js +53 -22
- package/dist/packages/_es/Switch.js +116 -21
- package/dist/packages/_es/TabPane.js +39 -12
- package/dist/packages/_es/Tabbar.js +72 -17
- package/dist/packages/_es/TabbarItem.js +151 -29
- package/dist/packages/_es/Table.js +178 -37
- package/dist/packages/_es/Tabs.js +202 -59
- package/dist/packages/_es/Tag.js +97 -20
- package/dist/packages/_es/TextArea.js +160 -42
- package/dist/packages/_es/TimeDetail.js +79 -37
- package/dist/packages/_es/TimePannel.js +48 -33
- package/dist/packages/_es/TimeSelect.js +112 -15
- package/dist/packages/_es/Toast.js +310 -90
- package/dist/packages/_es/Uploader.js +455 -120
- package/dist/packages/_es/Video.js +332 -93
- package/dist/packages/_es/common.js +128 -38
- package/dist/packages/_es/component.js +76 -35
- package/dist/packages/_es/index.js +6 -5
- package/dist/packages/_es/index2.js +30 -9
- package/dist/packages/_es/index3.js +8 -6
- package/dist/packages/_es/index4.js +64 -13
- package/dist/packages/_es/index5.js +783 -130
- package/dist/packages/_es/plugin-vue_export-helper.js +8 -7
- package/dist/packages/_es/pxCheck.js +5 -3
- package/dist/packages/_es/raf.js +15 -8
- package/dist/packages/animate/index.scss +299 -0
- package/dist/packages/cell/index.scss +7 -1
- package/dist/packages/checkbox/index.scss +10 -0
- package/dist/packages/configprovider/index.scss +2 -0
- package/dist/packages/ellipsis/index.scss +12 -0
- package/dist/packages/formitem/index.scss +12 -0
- package/dist/packages/griditem/index.scss +11 -0
- package/dist/packages/image/index.scss +39 -0
- package/dist/packages/imagepreview/index.scss +26 -2
- package/dist/packages/input/index.scss +13 -0
- package/dist/packages/inputnumber/index.scss +21 -0
- package/dist/packages/locale/lang/baseLang.js +3 -3
- package/dist/packages/locale/lang/en-US.js +105 -5
- package/dist/packages/locale/lang/id-ID.js +105 -5
- package/dist/packages/locale/lang/index.js +38 -16
- package/dist/packages/locale/lang/zh-CN.js +105 -5
- package/dist/packages/locale/lang/zh-TW.js +105 -5
- package/dist/packages/menu/index.scss +45 -36
- package/dist/packages/menuitem/index.scss +4 -0
- package/dist/packages/navbar/index.scss +9 -0
- package/dist/packages/pagination/index.scss +19 -0
- package/dist/packages/radio/index.scss +18 -0
- package/dist/packages/range/index.scss +19 -0
- package/dist/packages/rate/index.scss +1 -1
- package/dist/packages/searchbar/index.scss +21 -0
- package/dist/packages/switch/index.scss +1 -0
- package/dist/packages/tabbar/index.scss +5 -0
- package/dist/packages/tabbaritem/index.scss +7 -0
- package/dist/packages/tabpane/index.scss +5 -0
- package/dist/packages/tabs/index.scss +22 -0
- package/dist/packages/textarea/index.scss +8 -0
- package/dist/smartips/attributes.json +140 -4
- package/dist/smartips/tags.json +55 -6
- package/dist/smartips/web-types.json +6963 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/font/config.json +3 -1
- package/dist/styles/font/demo_index.html +49 -3
- package/dist/styles/font/iconfont.css +11 -3
- package/dist/styles/font/iconfont.js +15 -15
- package/dist/styles/font/iconfont.json +14 -0
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/styles/themes/default.scss +54 -50
- package/dist/styles/themes/jdb.scss +54 -50
- package/dist/styles/themes/jdt.scss +54 -50
- package/dist/styles/variables-jdb.scss +12 -0
- package/dist/styles/variables-jdt.scss +12 -0
- package/dist/styles/variables.scss +12 -0
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
- package/dist/types/__VUE/address/index.vue.d.ts +7 -7
- package/dist/types/__VUE/animate/index.vue.d.ts +48 -0
- package/dist/types/__VUE/animate/type.d.ts +6 -0
- package/dist/types/__VUE/avatar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +10 -2
- package/dist/types/__VUE/cascader/index.vue.d.ts +2 -2
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +2 -2
- package/dist/types/__VUE/collapse/index.vue.d.ts +3 -1
- package/dist/types/__VUE/configprovider/common.d.ts +20 -0
- package/dist/types/__VUE/configprovider/index.vue.d.ts +33 -0
- package/dist/types/__VUE/datepicker/index.vue.d.ts +2 -2
- package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +72 -0
- package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
- package/dist/types/__VUE/grid/index.vue.d.ts +2 -2
- package/dist/types/__VUE/image/index.vue.d.ts +105 -0
- package/dist/types/__VUE/image/type.d.ts +6 -0
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +95 -0
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +56 -24
- package/dist/types/__VUE/menu/index.vue.d.ts +31 -4
- package/dist/types/__VUE/menuitem/index.vue.d.ts +12 -3
- package/dist/types/__VUE/noticebar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +4 -4
- package/dist/types/__VUE/picker/index.vue.d.ts +4 -4
- package/dist/types/__VUE/popover/index.vue.d.ts +8 -8
- package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/rate/common.d.ts +149 -0
- package/dist/types/__VUE/rate/index.vue.d.ts +17 -7
- package/dist/types/__VUE/row/index.vue.d.ts +2 -2
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +2 -2
- package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
- package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swiper/index.vue.d.ts +2 -2
- package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
- package/dist/types/__VUE/timeselect/index.vue.d.ts +3 -2
- package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +5 -1
- package/package.json +5 -4
|
@@ -1,118 +1,620 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.0 Mon Jun 27 2022 17:55:50 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { resolveComponent
|
|
7
|
-
import { c as
|
|
8
|
-
import { _ as
|
|
6
|
+
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createVNode, createTextVNode, ref, withCtx, createBlock, reactive, watch, onMounted, Fragment, renderList } from "vue";
|
|
7
|
+
import { c as createComponent, f as floatData } from "./component.js";
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
10
|
+
var ItemContents_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => "/* @import './index.scss'; */")();
|
|
11
|
+
const { componentName: componentName$4, create: create$4 } = createComponent("item-contents");
|
|
12
|
+
const { translate: translate$1 } = createComponent("addresslist");
|
|
13
|
+
const _sfc_main$4 = create$4({
|
|
14
|
+
props: {
|
|
15
|
+
name: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: ""
|
|
18
|
+
},
|
|
19
|
+
item: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default: {}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
components: {},
|
|
25
|
+
emits: ["delIconClick", "editIconClick", "itemClick"],
|
|
26
|
+
setup(props, { emit }) {
|
|
27
|
+
const delClick = (event) => {
|
|
28
|
+
emit("delIconClick", event, props.item);
|
|
29
|
+
console.log(123);
|
|
30
|
+
event.stopPropagation();
|
|
31
|
+
};
|
|
32
|
+
const editClick = (event) => {
|
|
33
|
+
emit("editIconClick", event, props.item);
|
|
34
|
+
event.stopPropagation();
|
|
35
|
+
};
|
|
36
|
+
const contentsClick = (event) => {
|
|
37
|
+
emit("itemClick", event, props.item);
|
|
38
|
+
event.stopPropagation();
|
|
39
|
+
};
|
|
40
|
+
return {
|
|
41
|
+
delClick,
|
|
42
|
+
editClick,
|
|
43
|
+
contentsClick,
|
|
44
|
+
translate: translate$1
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
const _hoisted_1$4 = { class: "nut-item-contents__info" };
|
|
49
|
+
const _hoisted_2$2 = { class: "nut-item-contents__info-contact" };
|
|
50
|
+
const _hoisted_3$1 = { class: "nut-item-contents__info-contact-name" };
|
|
51
|
+
const _hoisted_4$1 = { class: "nut-item-contents__info-contact-tel" };
|
|
52
|
+
const _hoisted_5$1 = {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: "nut-item-contents__info-contact-default"
|
|
55
|
+
};
|
|
56
|
+
const _hoisted_6$1 = { class: "nut-item-contents__info-handle" };
|
|
57
|
+
const _hoisted_7$1 = { class: "nut-item-contents__addr" };
|
|
58
|
+
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
59
|
+
const _component_nut_icon = resolveComponent("nut-icon");
|
|
60
|
+
return openBlock(), createElementBlock("div", {
|
|
61
|
+
class: "nut-item-contents__contain",
|
|
62
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.contentsClick && _ctx.contentsClick(...args))
|
|
63
|
+
}, [
|
|
64
|
+
createElementVNode("div", _hoisted_1$4, [
|
|
65
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
66
|
+
renderSlot(_ctx.$slots, "contentTop", {}, () => [
|
|
67
|
+
createElementVNode("div", _hoisted_3$1, toDisplayString(_ctx.item.addressName), 1),
|
|
68
|
+
createElementVNode("div", _hoisted_4$1, toDisplayString(_ctx.item.phone), 1),
|
|
69
|
+
_ctx.item.defaultAddress ? (openBlock(), createElementBlock("div", _hoisted_5$1, toDisplayString(_ctx.translate("default")), 1)) : createCommentVNode("", true)
|
|
70
|
+
])
|
|
71
|
+
]),
|
|
72
|
+
createElementVNode("div", _hoisted_6$1, [
|
|
73
|
+
renderSlot(_ctx.$slots, "contentIcon", {}, () => [
|
|
74
|
+
createVNode(_component_nut_icon, {
|
|
75
|
+
name: "del",
|
|
76
|
+
class: "nut-item-contents__info-handle-del",
|
|
77
|
+
onClick: _ctx.delClick
|
|
78
|
+
}, null, 8, ["onClick"]),
|
|
79
|
+
createVNode(_component_nut_icon, {
|
|
80
|
+
name: "edit",
|
|
81
|
+
class: "nut-item-contents__info-handle-edit",
|
|
82
|
+
onClick: _ctx.editClick
|
|
83
|
+
}, null, 8, ["onClick"])
|
|
84
|
+
])
|
|
85
|
+
])
|
|
86
|
+
]),
|
|
87
|
+
createElementVNode("div", _hoisted_7$1, [
|
|
88
|
+
renderSlot(_ctx.$slots, "contentAddr", {}, () => [
|
|
89
|
+
createTextVNode(toDisplayString(_ctx.item.fullAddress), 1)
|
|
90
|
+
])
|
|
91
|
+
])
|
|
92
|
+
]);
|
|
93
|
+
}
|
|
94
|
+
var ItemContents = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
|
|
95
|
+
const { componentName: componentName$3, create: create$3 } = createComponent("long-press-shell");
|
|
96
|
+
const _sfc_main$3 = create$3({
|
|
97
|
+
props: {
|
|
98
|
+
item: {
|
|
99
|
+
type: Object,
|
|
100
|
+
default: {}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
emits: [
|
|
104
|
+
"holdingDown",
|
|
105
|
+
"handleDel",
|
|
106
|
+
"handelMask",
|
|
107
|
+
"handleCopy",
|
|
108
|
+
"handleSet",
|
|
109
|
+
"handleDelIcon",
|
|
110
|
+
"handleEditIcon",
|
|
111
|
+
"handleItemContent"
|
|
112
|
+
],
|
|
113
|
+
components: {
|
|
114
|
+
ItemContents
|
|
115
|
+
},
|
|
116
|
+
setup(props, { emit, slots }) {
|
|
117
|
+
let loop = null;
|
|
118
|
+
const showMaskRef = ref(false);
|
|
119
|
+
const holdingFunc = (event) => {
|
|
120
|
+
loop = 0;
|
|
121
|
+
showMaskRef.value = true;
|
|
122
|
+
emit("holdingDown", event, props.item);
|
|
123
|
+
};
|
|
124
|
+
const holddownstart = (event) => {
|
|
125
|
+
loop = setTimeout(() => {
|
|
126
|
+
holdingFunc(event);
|
|
127
|
+
}, 300);
|
|
128
|
+
};
|
|
129
|
+
const holddownmove = (event) => {
|
|
130
|
+
clearTimeout(loop);
|
|
131
|
+
};
|
|
132
|
+
const holddownend = (event) => {
|
|
133
|
+
clearTimeout(loop);
|
|
134
|
+
};
|
|
135
|
+
const hideMaskClick = (event) => {
|
|
136
|
+
showMaskRef.value = false;
|
|
137
|
+
};
|
|
138
|
+
const copyCLick = (event) => {
|
|
139
|
+
if (loop == 0)
|
|
140
|
+
return;
|
|
141
|
+
emit("handleCopy", event, props.item);
|
|
142
|
+
event.stopPropagation();
|
|
143
|
+
};
|
|
144
|
+
const setDefault = (event) => {
|
|
145
|
+
if (loop == 0)
|
|
146
|
+
return;
|
|
147
|
+
emit("handleSet", event, props.item);
|
|
148
|
+
event.stopPropagation();
|
|
149
|
+
};
|
|
150
|
+
const delClick = (event) => {
|
|
151
|
+
if (loop == 0)
|
|
152
|
+
return;
|
|
153
|
+
emit("handleDel", event, props.item);
|
|
154
|
+
event.stopPropagation();
|
|
155
|
+
};
|
|
156
|
+
const maskClick = (event) => {
|
|
157
|
+
if (loop != 0) {
|
|
158
|
+
showMaskRef.value = false;
|
|
159
|
+
}
|
|
160
|
+
event.stopPropagation();
|
|
161
|
+
event.preventDefault();
|
|
162
|
+
};
|
|
163
|
+
const delShellClick = (event, item) => {
|
|
164
|
+
emit("handleDelIcon", event, props.item);
|
|
165
|
+
event.stopPropagation();
|
|
166
|
+
};
|
|
167
|
+
const editShellClick = (event, item) => {
|
|
168
|
+
emit("handleEditIcon", event, props.item);
|
|
169
|
+
event.stopPropagation();
|
|
170
|
+
};
|
|
171
|
+
const itemShellClick = (event, item) => {
|
|
172
|
+
emit("handleItemContent", event, props.item);
|
|
173
|
+
event.stopPropagation();
|
|
174
|
+
};
|
|
175
|
+
return {
|
|
176
|
+
holddownstart,
|
|
177
|
+
holddownmove,
|
|
178
|
+
holddownend,
|
|
179
|
+
showMaskRef,
|
|
180
|
+
delClick,
|
|
181
|
+
copyCLick,
|
|
182
|
+
hideMaskClick,
|
|
183
|
+
setDefault,
|
|
184
|
+
maskClick,
|
|
185
|
+
delShellClick,
|
|
186
|
+
editShellClick,
|
|
187
|
+
itemShellClick
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
const _hoisted_1$3 = { class: "nut-long-press-shell" };
|
|
192
|
+
const _hoisted_2$1 = /* @__PURE__ */ createElementVNode("div", { class: "mask-contain" }, [
|
|
193
|
+
/* @__PURE__ */ createTextVNode(" \u590D\u5236"),
|
|
194
|
+
/* @__PURE__ */ createElementVNode("br"),
|
|
195
|
+
/* @__PURE__ */ createTextVNode("\u5730\u5740 ")
|
|
196
|
+
], -1);
|
|
197
|
+
const _hoisted_3 = [
|
|
198
|
+
_hoisted_2$1
|
|
199
|
+
];
|
|
200
|
+
const _hoisted_4 = /* @__PURE__ */ createElementVNode("div", { class: "mask-contain" }, [
|
|
201
|
+
/* @__PURE__ */ createTextVNode(" \u8BBE\u7F6E"),
|
|
202
|
+
/* @__PURE__ */ createElementVNode("br"),
|
|
203
|
+
/* @__PURE__ */ createTextVNode("\u9ED8\u8BA4 ")
|
|
204
|
+
], -1);
|
|
205
|
+
const _hoisted_5 = [
|
|
206
|
+
_hoisted_4
|
|
207
|
+
];
|
|
208
|
+
const _hoisted_6 = /* @__PURE__ */ createElementVNode("div", { class: "mask-contain" }, [
|
|
209
|
+
/* @__PURE__ */ createTextVNode(" \u5220\u9664"),
|
|
210
|
+
/* @__PURE__ */ createElementVNode("br"),
|
|
211
|
+
/* @__PURE__ */ createTextVNode("\u5730\u5740 ")
|
|
212
|
+
], -1);
|
|
213
|
+
const _hoisted_7 = [
|
|
214
|
+
_hoisted_6
|
|
215
|
+
];
|
|
216
|
+
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
217
|
+
const _component_item_contents = resolveComponent("item-contents");
|
|
218
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
219
|
+
createElementVNode("div", {
|
|
220
|
+
class: "nut-long-press-shell__contain",
|
|
221
|
+
onTouchstart: _cache[4] || (_cache[4] = (...args) => _ctx.holddownstart && _ctx.holddownstart(...args)),
|
|
222
|
+
onTouchend: _cache[5] || (_cache[5] = (...args) => _ctx.holddownend && _ctx.holddownend(...args)),
|
|
223
|
+
onTouchmove: _cache[6] || (_cache[6] = (...args) => _ctx.holddownmove && _ctx.holddownmove(...args))
|
|
224
|
+
}, [
|
|
225
|
+
createVNode(_component_item_contents, {
|
|
226
|
+
item: _ctx.item,
|
|
227
|
+
onDelIconClick: _ctx.delShellClick,
|
|
228
|
+
onEditIconClick: _ctx.editShellClick,
|
|
229
|
+
onItemClick: _ctx.itemShellClick
|
|
230
|
+
}, {
|
|
231
|
+
contentTop: withCtx(() => [
|
|
232
|
+
renderSlot(_ctx.$slots, "contentInfo")
|
|
233
|
+
]),
|
|
234
|
+
contentIcon: withCtx(() => [
|
|
235
|
+
renderSlot(_ctx.$slots, "contentIcons")
|
|
236
|
+
]),
|
|
237
|
+
contentAddr: withCtx(() => [
|
|
238
|
+
renderSlot(_ctx.$slots, "contentAddrs")
|
|
239
|
+
]),
|
|
240
|
+
_: 3
|
|
241
|
+
}, 8, ["item", "onDelIconClick", "onEditIconClick", "onItemClick"]),
|
|
242
|
+
_ctx.showMaskRef ? (openBlock(), createElementBlock("div", {
|
|
243
|
+
key: 0,
|
|
244
|
+
class: "nut-long-press-shell__contain-mask",
|
|
245
|
+
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.maskClick && _ctx.maskClick(...args))
|
|
246
|
+
}, [
|
|
247
|
+
renderSlot(_ctx.$slots, "longpressAll", {}, () => [
|
|
248
|
+
createElementVNode("div", {
|
|
249
|
+
class: "nut-long-press-shell__contain-mask-copy",
|
|
250
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.copyCLick && _ctx.copyCLick(...args))
|
|
251
|
+
}, _hoisted_3),
|
|
252
|
+
createElementVNode("div", {
|
|
253
|
+
class: "nut-long-press-shell__contain-mask-set",
|
|
254
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.setDefault && _ctx.setDefault(...args))
|
|
255
|
+
}, _hoisted_5),
|
|
256
|
+
createElementVNode("div", {
|
|
257
|
+
class: "nut-long-press-shell__contain-mask-del",
|
|
258
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.delClick && _ctx.delClick(...args))
|
|
259
|
+
}, _hoisted_7)
|
|
260
|
+
])
|
|
261
|
+
])) : createCommentVNode("", true)
|
|
262
|
+
], 32),
|
|
263
|
+
_ctx.showMaskRef ? (openBlock(), createElementBlock("div", {
|
|
264
|
+
key: 0,
|
|
265
|
+
class: "nut-addresslist__mask-bottom",
|
|
266
|
+
onClick: _cache[7] || (_cache[7] = (...args) => _ctx.hideMaskClick && _ctx.hideMaskClick(...args))
|
|
267
|
+
})) : createCommentVNode("", true)
|
|
268
|
+
]);
|
|
269
|
+
}
|
|
270
|
+
var LongPressShell = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
271
|
+
const { componentName: componentName$2, create: create$2 } = createComponent("swipe-shell");
|
|
272
|
+
const _sfc_main$2 = create$2({
|
|
273
|
+
props: {
|
|
274
|
+
item: {
|
|
275
|
+
type: Object,
|
|
276
|
+
default: {}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
emits: ["handleDelIcon", "handleEditIcon", "handleItemContent", "handelSwipeDel"],
|
|
280
|
+
components: {
|
|
281
|
+
ItemContents
|
|
282
|
+
},
|
|
283
|
+
setup(props, { emit, slots }) {
|
|
284
|
+
const moveRef = ref(false);
|
|
285
|
+
const delShellClick = (event, item) => {
|
|
286
|
+
emit("handleDelIcon", event, props.item);
|
|
287
|
+
event.stopPropagation();
|
|
288
|
+
};
|
|
289
|
+
const editShellClick = (event, item) => {
|
|
290
|
+
emit("handleEditIcon", event, props.item);
|
|
291
|
+
event.stopPropagation();
|
|
292
|
+
};
|
|
293
|
+
const itemShellClick = (event, item) => {
|
|
294
|
+
if (moveRef.value)
|
|
295
|
+
return;
|
|
296
|
+
emit("handleItemContent", event, props.item);
|
|
297
|
+
event.stopPropagation();
|
|
298
|
+
};
|
|
299
|
+
const swipeDelClick = (event, item) => {
|
|
300
|
+
emit("handelSwipeDel", event, props.item);
|
|
301
|
+
event.stopPropagation();
|
|
302
|
+
};
|
|
303
|
+
const swipestart = () => {
|
|
304
|
+
moveRef.value = false;
|
|
305
|
+
};
|
|
306
|
+
const swipemove = () => {
|
|
307
|
+
moveRef.value = true;
|
|
308
|
+
};
|
|
309
|
+
return {
|
|
310
|
+
delShellClick,
|
|
311
|
+
editShellClick,
|
|
312
|
+
itemShellClick,
|
|
313
|
+
swipeDelClick,
|
|
314
|
+
swipestart,
|
|
315
|
+
swipemove
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
const _hoisted_1$2 = { class: "nut-swipe-shell" };
|
|
320
|
+
const _hoisted_2 = /* @__PURE__ */ createTextVNode("\u5220\u9664");
|
|
321
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
322
|
+
const _component_item_contents = resolveComponent("item-contents");
|
|
323
|
+
const _component_nut_button = resolveComponent("nut-button");
|
|
324
|
+
const _component_nut_swipe = resolveComponent("nut-swipe");
|
|
325
|
+
return openBlock(), createBlock(_component_nut_swipe, null, {
|
|
326
|
+
right: withCtx(() => [
|
|
327
|
+
renderSlot(_ctx.$slots, "swiperightbtn", {}, () => [
|
|
328
|
+
createVNode(_component_nut_button, {
|
|
329
|
+
shape: "square",
|
|
330
|
+
style: { "height": "100%" },
|
|
331
|
+
type: "danger",
|
|
332
|
+
onClick: _ctx.swipeDelClick
|
|
333
|
+
}, {
|
|
334
|
+
default: withCtx(() => [
|
|
335
|
+
_hoisted_2
|
|
336
|
+
]),
|
|
337
|
+
_: 1
|
|
338
|
+
}, 8, ["onClick"])
|
|
339
|
+
])
|
|
340
|
+
]),
|
|
341
|
+
default: withCtx(() => [
|
|
342
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
343
|
+
createVNode(_component_item_contents, {
|
|
344
|
+
item: _ctx.item,
|
|
345
|
+
onDelIconClick: _ctx.delShellClick,
|
|
346
|
+
onEditIconClick: _ctx.editShellClick,
|
|
347
|
+
onItemClick: _ctx.itemShellClick,
|
|
348
|
+
onTouchmove: _ctx.swipemove,
|
|
349
|
+
onTouchstart: _ctx.swipestart
|
|
350
|
+
}, {
|
|
351
|
+
contentTop: withCtx(() => [
|
|
352
|
+
renderSlot(_ctx.$slots, "contentInfo")
|
|
353
|
+
]),
|
|
354
|
+
contentIcon: withCtx(() => [
|
|
355
|
+
renderSlot(_ctx.$slots, "contentIcons")
|
|
356
|
+
]),
|
|
357
|
+
contentAddr: withCtx(() => [
|
|
358
|
+
renderSlot(_ctx.$slots, "contentAddrs")
|
|
359
|
+
]),
|
|
360
|
+
_: 3
|
|
361
|
+
}, 8, ["item", "onDelIconClick", "onEditIconClick", "onItemClick", "onTouchmove", "onTouchstart"])
|
|
362
|
+
])
|
|
363
|
+
]),
|
|
364
|
+
_: 3
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
var SwipeShell = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
368
|
+
const { componentName: componentName$1, create: create$1 } = createComponent("general-shell");
|
|
369
|
+
const _sfc_main$1 = create$1({
|
|
370
|
+
props: {
|
|
371
|
+
item: {
|
|
372
|
+
type: Object,
|
|
373
|
+
default: {}
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
emits: ["handleDelIcon", "handleEditIcon", "handleItemContent", "handelSwipeDel"],
|
|
377
|
+
components: {
|
|
378
|
+
ItemContents
|
|
379
|
+
},
|
|
380
|
+
setup(props, { emit, slots }) {
|
|
381
|
+
const delShellClick = (event, item) => {
|
|
382
|
+
emit("handleDelIcon", event, props.item);
|
|
383
|
+
event.stopPropagation();
|
|
384
|
+
};
|
|
385
|
+
const editShellClick = (event, item) => {
|
|
386
|
+
emit("handleEditIcon", event, props.item);
|
|
387
|
+
event.stopPropagation();
|
|
388
|
+
};
|
|
389
|
+
const itemShellClick = (event, item) => {
|
|
390
|
+
emit("handleItemContent", event, props.item);
|
|
391
|
+
event.stopPropagation();
|
|
392
|
+
};
|
|
393
|
+
const swipeDelClick = (event, item) => {
|
|
394
|
+
emit("handelSwipeDel", event, props.item);
|
|
395
|
+
event.stopPropagation();
|
|
396
|
+
};
|
|
397
|
+
return {
|
|
398
|
+
delShellClick,
|
|
399
|
+
editShellClick,
|
|
400
|
+
itemShellClick,
|
|
401
|
+
swipeDelClick
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
const _hoisted_1$1 = { class: "nut-general-shell" };
|
|
406
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
407
|
+
const _component_item_contents = resolveComponent("item-contents");
|
|
408
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
409
|
+
createVNode(_component_item_contents, {
|
|
410
|
+
item: _ctx.item,
|
|
411
|
+
onDelIconClick: _ctx.delShellClick,
|
|
412
|
+
onEditIconClick: _ctx.editShellClick,
|
|
413
|
+
onItemClick: _ctx.itemShellClick
|
|
414
|
+
}, {
|
|
415
|
+
contentTop: withCtx(() => [
|
|
416
|
+
renderSlot(_ctx.$slots, "contentInfo")
|
|
417
|
+
]),
|
|
418
|
+
contentIcon: withCtx(() => [
|
|
419
|
+
renderSlot(_ctx.$slots, "contentIcons")
|
|
420
|
+
]),
|
|
421
|
+
contentAddr: withCtx(() => [
|
|
422
|
+
renderSlot(_ctx.$slots, "contentAddrs")
|
|
423
|
+
]),
|
|
424
|
+
_: 3
|
|
425
|
+
}, 8, ["item", "onDelIconClick", "onEditIconClick", "onItemClick"])
|
|
426
|
+
]);
|
|
427
|
+
}
|
|
428
|
+
var GeneralShell = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
429
|
+
const { componentName, create, translate } = createComponent("addresslist");
|
|
430
|
+
const _sfc_main = create({
|
|
431
|
+
props: {
|
|
432
|
+
data: {
|
|
433
|
+
type: Array,
|
|
434
|
+
default: []
|
|
435
|
+
},
|
|
436
|
+
longPressEdition: {
|
|
437
|
+
type: Boolean,
|
|
438
|
+
default: false
|
|
439
|
+
},
|
|
440
|
+
swipeEdition: {
|
|
441
|
+
type: Boolean,
|
|
442
|
+
default: false
|
|
443
|
+
},
|
|
444
|
+
showBottomButton: {
|
|
445
|
+
type: Boolean,
|
|
446
|
+
default: true
|
|
447
|
+
},
|
|
448
|
+
dataMapOptions: {
|
|
449
|
+
type: Object,
|
|
450
|
+
default: {}
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
components: {
|
|
454
|
+
LongPressShell,
|
|
455
|
+
SwipeShell,
|
|
456
|
+
GeneralShell
|
|
457
|
+
},
|
|
458
|
+
emits: [
|
|
459
|
+
"handelDelIcon",
|
|
460
|
+
"handelEditIcon",
|
|
461
|
+
"handelItem",
|
|
462
|
+
"longPressCopyClick",
|
|
463
|
+
"longPressSetClick",
|
|
464
|
+
"longPressDelClick",
|
|
465
|
+
"swipeDelClick",
|
|
466
|
+
"addAddressClick"
|
|
467
|
+
],
|
|
468
|
+
setup(props, { emit }) {
|
|
469
|
+
const dataArray = ref([]);
|
|
470
|
+
const dataInfo = reactive({
|
|
471
|
+
id: 2,
|
|
472
|
+
addressName: "\u59D3\u540D",
|
|
473
|
+
phone: "123****4567",
|
|
474
|
+
defaultAddress: false,
|
|
475
|
+
fullAddress: "\u5317\u4EAC\u5E02\u901A\u5DDE\u533A\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5"
|
|
476
|
+
});
|
|
477
|
+
const trowelData = () => {
|
|
478
|
+
console.log("props.data", props.data);
|
|
479
|
+
if (Object.keys(props.dataMapOptions).length > 0 && props.data.length > 0) {
|
|
480
|
+
dataArray.value = props.data.map((item, index2) => {
|
|
481
|
+
return floatData(dataInfo, item, props.dataMapOptions);
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
watch(() => props.data, () => trowelData(), { deep: true });
|
|
486
|
+
const clickDelIcon = (event, item) => {
|
|
487
|
+
emit("handelDelIcon", event, item);
|
|
488
|
+
event.stopPropagation();
|
|
489
|
+
};
|
|
490
|
+
const clickEditIcon = (event, item) => {
|
|
491
|
+
emit("handelEditIcon", event, item);
|
|
492
|
+
event.stopPropagation();
|
|
493
|
+
};
|
|
494
|
+
const clickContentItem = (event, item) => {
|
|
495
|
+
emit("handelItem", event, item);
|
|
496
|
+
event.stopPropagation();
|
|
497
|
+
};
|
|
498
|
+
const clickLongCopy = (event, item) => {
|
|
499
|
+
emit("longPressCopyClick", event, item);
|
|
500
|
+
event.stopPropagation();
|
|
501
|
+
};
|
|
502
|
+
const clickLongSet = (event, item) => {
|
|
503
|
+
emit("longPressSetClick", event, item);
|
|
504
|
+
event.stopPropagation();
|
|
505
|
+
};
|
|
506
|
+
const clickLongDel = (event, item) => {
|
|
507
|
+
emit("longPressDelClick", event, item);
|
|
508
|
+
event.stopPropagation();
|
|
509
|
+
};
|
|
510
|
+
const clickSwipeDel = (event, item) => {
|
|
511
|
+
emit("swipeDelClick", event, item);
|
|
512
|
+
event.stopPropagation();
|
|
513
|
+
};
|
|
514
|
+
const addAddress = (event) => {
|
|
515
|
+
emit("addAddressClick", event);
|
|
516
|
+
event.stopPropagation();
|
|
517
|
+
};
|
|
518
|
+
onMounted(() => {
|
|
519
|
+
trowelData();
|
|
520
|
+
});
|
|
521
|
+
return {
|
|
522
|
+
clickDelIcon,
|
|
523
|
+
clickEditIcon,
|
|
524
|
+
clickContentItem,
|
|
525
|
+
clickLongCopy,
|
|
526
|
+
clickLongSet,
|
|
527
|
+
clickLongDel,
|
|
528
|
+
clickSwipeDel,
|
|
529
|
+
addAddress,
|
|
530
|
+
dataArray,
|
|
531
|
+
translate
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
const _hoisted_1 = { class: "nut-addresslist" };
|
|
536
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
537
|
+
const _component_general_shell = resolveComponent("general-shell");
|
|
538
|
+
const _component_long_press_shell = resolveComponent("long-press-shell");
|
|
539
|
+
const _component_swipe_shell = resolveComponent("swipe-shell");
|
|
540
|
+
const _component_nut_button = resolveComponent("nut-button");
|
|
541
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
542
|
+
!_ctx.longPressEdition && !_ctx.swipeEdition ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.dataArray, (item, index2) => {
|
|
543
|
+
return openBlock(), createBlock(_component_general_shell, {
|
|
544
|
+
key: "general" + index2,
|
|
545
|
+
item,
|
|
546
|
+
onHandleDelIcon: _ctx.clickDelIcon,
|
|
547
|
+
onHandleEditIcon: _ctx.clickEditIcon,
|
|
548
|
+
onHandleItemContent: _ctx.clickContentItem,
|
|
549
|
+
onHandelSwipeDel: _ctx.clickSwipeDel
|
|
550
|
+
}, null, 8, ["item", "onHandleDelIcon", "onHandleEditIcon", "onHandleItemContent", "onHandelSwipeDel"]);
|
|
551
|
+
}), 128)) : createCommentVNode("", true),
|
|
552
|
+
_ctx.longPressEdition && !_ctx.swipeEdition ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.dataArray, (item, index2) => {
|
|
553
|
+
return openBlock(), createBlock(_component_long_press_shell, {
|
|
554
|
+
key: "longpress" + index2,
|
|
555
|
+
item,
|
|
556
|
+
onHandleDelIcon: _ctx.clickDelIcon,
|
|
557
|
+
onHandleEditIcon: _ctx.clickEditIcon,
|
|
558
|
+
onHandleItemContent: _ctx.clickContentItem,
|
|
559
|
+
onHandleCopy: _ctx.clickLongCopy,
|
|
560
|
+
onHandleSet: _ctx.clickLongSet,
|
|
561
|
+
onHandleDel: _ctx.clickLongDel
|
|
562
|
+
}, {
|
|
563
|
+
contentInfo: withCtx(() => [
|
|
564
|
+
renderSlot(_ctx.$slots, "iteminfos")
|
|
565
|
+
]),
|
|
566
|
+
contentIcons: withCtx(() => [
|
|
567
|
+
renderSlot(_ctx.$slots, "itemicon")
|
|
568
|
+
]),
|
|
569
|
+
contentAddrs: withCtx(() => [
|
|
570
|
+
renderSlot(_ctx.$slots, "itemaddr")
|
|
571
|
+
]),
|
|
572
|
+
longpressAll: withCtx(() => [
|
|
573
|
+
renderSlot(_ctx.$slots, "longpressbtns")
|
|
574
|
+
]),
|
|
575
|
+
_: 2
|
|
576
|
+
}, 1032, ["item", "onHandleDelIcon", "onHandleEditIcon", "onHandleItemContent", "onHandleCopy", "onHandleSet", "onHandleDel"]);
|
|
577
|
+
}), 128)) : createCommentVNode("", true),
|
|
578
|
+
!_ctx.longPressEdition && _ctx.swipeEdition ? (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(_ctx.dataArray, (item, index2) => {
|
|
579
|
+
return openBlock(), createBlock(_component_swipe_shell, {
|
|
580
|
+
key: "swipe" + index2,
|
|
581
|
+
item,
|
|
582
|
+
onHandleDelIcon: _ctx.clickDelIcon,
|
|
583
|
+
onHandleEditIcon: _ctx.clickEditIcon,
|
|
584
|
+
onHandleItemContent: _ctx.clickContentItem,
|
|
585
|
+
onHandelSwipeDel: _ctx.clickSwipeDel
|
|
586
|
+
}, {
|
|
587
|
+
contentInfo: withCtx(() => [
|
|
588
|
+
renderSlot(_ctx.$slots, "iteminfos")
|
|
589
|
+
]),
|
|
590
|
+
contentIcons: withCtx(() => [
|
|
591
|
+
renderSlot(_ctx.$slots, "itemicon")
|
|
592
|
+
]),
|
|
593
|
+
contentAddrs: withCtx(() => [
|
|
594
|
+
renderSlot(_ctx.$slots, "itemaddr")
|
|
595
|
+
]),
|
|
596
|
+
swiperightbtn: withCtx(() => [
|
|
597
|
+
renderSlot(_ctx.$slots, "swiperight")
|
|
598
|
+
]),
|
|
599
|
+
_: 2
|
|
600
|
+
}, 1032, ["item", "onHandleDelIcon", "onHandleEditIcon", "onHandleItemContent", "onHandelSwipeDel"]);
|
|
601
|
+
}), 128)) : createCommentVNode("", true),
|
|
602
|
+
_ctx.showBottomButton ? (openBlock(), createElementBlock("div", {
|
|
603
|
+
key: 3,
|
|
604
|
+
class: "nut-addresslist__bottom",
|
|
605
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.addAddress && _ctx.addAddress(...args))
|
|
606
|
+
}, [
|
|
607
|
+
createVNode(_component_nut_button, {
|
|
608
|
+
block: "",
|
|
609
|
+
type: "danger"
|
|
610
|
+
}, {
|
|
611
|
+
default: withCtx(() => [
|
|
612
|
+
createTextVNode(toDisplayString(_ctx.translate("addAddress")), 1)
|
|
613
|
+
]),
|
|
614
|
+
_: 1
|
|
615
|
+
})
|
|
616
|
+
])) : createCommentVNode("", true)
|
|
617
|
+
]);
|
|
618
|
+
}
|
|
619
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
620
|
+
export { index as default };
|