@nutui/nutui 4.0.0-beta.15 → 4.0.0-beta.17
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/dist/nutui.es.js +1 -1
- package/dist/nutui.umd.cjs +2 -2
- package/dist/packages/_es/Address.js +3 -0
- package/dist/packages/_es/AddressList.js +125 -177
- package/dist/packages/_es/Audio.js +6 -0
- package/dist/packages/_es/AudioOperate.js +1 -0
- package/dist/packages/_es/Avatar.js +2 -0
- package/dist/packages/_es/AvatarGroup.js +1 -0
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Cascader.js +2 -0
- package/dist/packages/_es/Category.js +2 -0
- package/dist/packages/_es/CategoryPane.js +3 -0
- package/dist/packages/_es/Cell.js +1 -0
- package/dist/packages/_es/CollapseItem.js +1 -0
- package/dist/packages/_es/Comment.js +5 -0
- package/dist/packages/_es/Countdown.js +8 -0
- package/dist/packages/_es/Countup.js +10 -0
- package/dist/packages/_es/DatePicker.js +2 -0
- package/dist/packages/_es/Dialog.js +3 -0
- package/dist/packages/_es/Ellipsis.js +2 -0
- package/dist/packages/_es/Empty.js +3 -0
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +2 -1
- package/dist/packages/_es/ImagePreview.js +1 -0
- package/dist/packages/_es/Input.js +2 -0
- package/dist/packages/_es/Invoice.js +5 -3
- package/dist/packages/_es/Navbar.js +6 -0
- package/dist/packages/_es/Noticebar.js +1 -0
- package/dist/packages/_es/Notify.js +3 -0
- package/dist/packages/_es/Picker.js +2 -0
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Searchbar.js +1 -0
- package/dist/packages/_es/ShortPassword.js +1 -0
- package/dist/packages/_es/Skeleton.js +10 -0
- package/dist/packages/_es/Sku.js +14 -0
- package/dist/packages/_es/Swiper.js +1 -0
- package/dist/packages/_es/TabbarItem.js +5 -0
- package/dist/packages/_es/Tabs.js +2 -0
- package/dist/packages/_es/Textarea.js +1 -0
- package/dist/packages/_es/Toast.js +8 -0
- package/dist/packages/_es/Tour.js +1 -0
- package/dist/packages/_es/Uploader.js +2 -0
- package/dist/packages/_es/Video.js +18 -0
- package/dist/packages/_es/{common-ceb98554.js → common-b9a5e726.js} +8 -0
- package/dist/packages/_es/{index-1bf0d8ef.js → index-f3a722c9.js} +37 -0
- package/dist/packages/_es/{index.vue_vue_type_script_lang-1291fceb.js → index.vue_vue_type_script_lang-22dfc112.js} +1 -0
- package/dist/packages/_es/{index.vue_vue_type_script_lang-d4c88f85.js → index.vue_vue_type_script_lang-442e4704.js} +1 -0
- package/dist/packages/actionsheet/style.mjs +2 -0
- package/dist/packages/address/style.mjs +3 -0
- package/dist/packages/addresslist/style.mjs +2 -0
- package/dist/packages/audio/style.mjs +1 -0
- package/dist/packages/audiooperate/style.mjs +1 -0
- package/dist/packages/avatar/index.scss +2 -1
- package/dist/packages/avatargroup/index.scss +1 -1
- package/dist/packages/button/index.scss +63 -1
- package/dist/packages/calendar/index.scss +2 -2
- package/dist/packages/calendar/style.mjs +3 -0
- package/dist/packages/card/style.mjs +2 -0
- package/dist/packages/cascader/style.mjs +5 -0
- package/dist/packages/comment/style.mjs +1 -0
- package/dist/packages/datepicker/style.mjs +3 -0
- package/dist/packages/dialog/style.mjs +3 -0
- package/dist/packages/ecard/style.mjs +1 -0
- package/dist/packages/fixednav/style.mjs +1 -0
- package/dist/packages/form/style.mjs +1 -0
- package/dist/packages/formitem/style.mjs +1 -0
- package/dist/packages/imagepreview/style.mjs +5 -0
- package/dist/packages/invoice/style.mjs +7 -0
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/menuitem/style.mjs +2 -0
- package/dist/packages/notify/style.mjs +2 -0
- package/dist/packages/numberkeyboard/style.mjs +2 -0
- package/dist/packages/picker/style.mjs +2 -0
- package/dist/packages/popover/style.mjs +2 -0
- package/dist/packages/popup/style.mjs +1 -0
- package/dist/packages/shortpassword/style.mjs +2 -0
- package/dist/packages/signature/style.mjs +1 -0
- package/dist/packages/skeleton/style.mjs +1 -0
- package/dist/packages/sku/style.mjs +4 -0
- package/dist/packages/tabbaritem/style.mjs +1 -0
- package/dist/packages/tabs/style.mjs +1 -0
- package/dist/packages/timeselect/style.mjs +2 -0
- package/dist/packages/tour/style.mjs +3 -0
- package/dist/packages/uploader/style.mjs +2 -0
- package/dist/smartips/web-types.json +12 -12
- package/dist/style.css +1 -1
- package/dist/styles/reset.css +3 -0
- package/dist/styles/themes/default.scss +53 -53
- package/dist/styles/themes/jdb.scss +53 -53
- package/dist/styles/themes/jddkh.scss +53 -53
- package/dist/styles/themes/jdt.scss +53 -53
- package/dist/styles/variables-jdb.scss +0 -2
- package/dist/styles/variables-jddkh.scss +0 -2
- package/dist/styles/variables-jdt.scss +1 -3
- package/dist/styles/variables.scss +1 -3
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +22 -6
- package/dist/types/__VUE/addresslist/index.vue.d.ts +2 -2
- package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +0 -26
|
@@ -41,14 +41,17 @@ const _sfc_main = create({
|
|
|
41
41
|
type: Array,
|
|
42
42
|
default: () => []
|
|
43
43
|
},
|
|
44
|
+
// 市
|
|
44
45
|
country: {
|
|
45
46
|
type: Array,
|
|
46
47
|
default: () => []
|
|
47
48
|
},
|
|
49
|
+
// 县
|
|
48
50
|
town: {
|
|
49
51
|
type: Array,
|
|
50
52
|
default: () => []
|
|
51
53
|
},
|
|
54
|
+
// 镇
|
|
52
55
|
isShowCustomAddress: {
|
|
53
56
|
type: Boolean,
|
|
54
57
|
default: true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createVNode, createTextVNode, ref, createBlock, withCtx, reactive, computed, watch, onMounted, normalizeClass, Fragment, renderList, createSlots } from "vue";
|
|
1
|
+
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createVNode, createTextVNode, ref, h, createBlock, resolveDynamicComponent, withCtx, reactive, computed, watch, onMounted, normalizeClass, Fragment, renderList, createSlots } from "vue";
|
|
2
2
|
import { c as createComponent, n as floatData } from "./component-81a4c1d0.js";
|
|
3
3
|
import { Del, Edit } from "@nutui/icons-vue";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -6,9 +6,9 @@ import Button from "./Button.js";
|
|
|
6
6
|
import Swipe from "./Swipe.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
8
|
import "./index-7a7385e4.js";
|
|
9
|
-
const { create: create$
|
|
9
|
+
const { create: create$2 } = createComponent("addresslist-item");
|
|
10
10
|
const { translate: translate$1 } = createComponent("addresslist");
|
|
11
|
-
const _sfc_main$
|
|
11
|
+
const _sfc_main$2 = create$2({
|
|
12
12
|
components: { Del, Edit },
|
|
13
13
|
props: {
|
|
14
14
|
item: {
|
|
@@ -38,7 +38,7 @@ const _sfc_main$3 = create$3({
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
|
-
const _hoisted_1$
|
|
41
|
+
const _hoisted_1$1 = { class: "nut-address-list-item__info" };
|
|
42
42
|
const _hoisted_2$1 = { class: "nut-address-list-item__info-contact" };
|
|
43
43
|
const _hoisted_3$1 = { class: "nut-address-list-item__info-contact-name" };
|
|
44
44
|
const _hoisted_4$1 = { class: "nut-address-list-item__info-contact-tel" };
|
|
@@ -48,14 +48,14 @@ const _hoisted_5$1 = {
|
|
|
48
48
|
};
|
|
49
49
|
const _hoisted_6$1 = { class: "nut-address-list-item__info-handle" };
|
|
50
50
|
const _hoisted_7$1 = { class: "nut-address-list-item__addr" };
|
|
51
|
-
function _sfc_render$
|
|
51
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
52
52
|
const _component_Del = resolveComponent("Del");
|
|
53
53
|
const _component_Edit = resolveComponent("Edit");
|
|
54
54
|
return openBlock(), createElementBlock("div", {
|
|
55
55
|
class: "nut-address-list-item",
|
|
56
56
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.contentsClick && _ctx.contentsClick(...args))
|
|
57
57
|
}, [
|
|
58
|
-
createElementVNode("div", _hoisted_1$
|
|
58
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
59
59
|
createElementVNode("div", _hoisted_2$1, [
|
|
60
60
|
renderSlot(_ctx.$slots, "contentTop", {}, () => [
|
|
61
61
|
createElementVNode("div", _hoisted_3$1, toDisplayString(_ctx.item.addressName), 1),
|
|
@@ -85,103 +85,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
85
85
|
])
|
|
86
86
|
]);
|
|
87
87
|
}
|
|
88
|
-
const ItemContents = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
89
|
-
const { create: create$2 } = createComponent("addresslist-swipe");
|
|
90
|
-
const _sfc_main$2 = create$2({
|
|
91
|
-
props: {
|
|
92
|
-
item: {
|
|
93
|
-
type: Object,
|
|
94
|
-
default: {}
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
emits: ["delIcon", "editIcon", "itemClick", "swipeDel"],
|
|
98
|
-
components: {
|
|
99
|
-
ItemContents
|
|
100
|
-
},
|
|
101
|
-
setup(props, { emit }) {
|
|
102
|
-
const moveRef = ref(false);
|
|
103
|
-
const delClick = (event) => {
|
|
104
|
-
emit("delIcon", event, props.item);
|
|
105
|
-
event.stopPropagation();
|
|
106
|
-
};
|
|
107
|
-
const editClick = (event) => {
|
|
108
|
-
emit("editIcon", event, props.item);
|
|
109
|
-
event.stopPropagation();
|
|
110
|
-
};
|
|
111
|
-
const itemClick = (event) => {
|
|
112
|
-
if (moveRef.value)
|
|
113
|
-
return;
|
|
114
|
-
emit("itemClick", event, props.item);
|
|
115
|
-
event.stopPropagation();
|
|
116
|
-
};
|
|
117
|
-
const swipeDelClick = (event) => {
|
|
118
|
-
emit("swipeDel", event, props.item);
|
|
119
|
-
event.stopPropagation();
|
|
120
|
-
};
|
|
121
|
-
const swipestart = () => {
|
|
122
|
-
moveRef.value = false;
|
|
123
|
-
};
|
|
124
|
-
const swipemove = () => {
|
|
125
|
-
moveRef.value = true;
|
|
126
|
-
};
|
|
127
|
-
return {
|
|
128
|
-
delClick,
|
|
129
|
-
editClick,
|
|
130
|
-
itemClick,
|
|
131
|
-
swipeDelClick,
|
|
132
|
-
swipestart,
|
|
133
|
-
swipemove
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
const _hoisted_1$1 = { class: "nut-address-list-swipe" };
|
|
138
|
-
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
139
|
-
const _component_item_contents = resolveComponent("item-contents");
|
|
140
|
-
const _component_nut_button = resolveComponent("nut-button");
|
|
141
|
-
const _component_nut_swipe = resolveComponent("nut-swipe");
|
|
142
|
-
return openBlock(), createBlock(_component_nut_swipe, null, {
|
|
143
|
-
right: withCtx(() => [
|
|
144
|
-
renderSlot(_ctx.$slots, "swiperightbtn", {}, () => [
|
|
145
|
-
createVNode(_component_nut_button, {
|
|
146
|
-
shape: "square",
|
|
147
|
-
style: { "height": "100%" },
|
|
148
|
-
type: "danger",
|
|
149
|
-
onClick: _ctx.swipeDelClick
|
|
150
|
-
}, {
|
|
151
|
-
default: withCtx(() => [
|
|
152
|
-
createTextVNode("删除")
|
|
153
|
-
]),
|
|
154
|
-
_: 1
|
|
155
|
-
}, 8, ["onClick"])
|
|
156
|
-
])
|
|
157
|
-
]),
|
|
158
|
-
default: withCtx(() => [
|
|
159
|
-
createElementVNode("div", _hoisted_1$1, [
|
|
160
|
-
createVNode(_component_item_contents, {
|
|
161
|
-
item: _ctx.item,
|
|
162
|
-
onDelIcon: _ctx.delClick,
|
|
163
|
-
onEditIcon: _ctx.editClick,
|
|
164
|
-
onItemClick: _ctx.itemClick,
|
|
165
|
-
onTouchmove: _ctx.swipemove,
|
|
166
|
-
onTouchstart: _ctx.swipestart
|
|
167
|
-
}, {
|
|
168
|
-
contentTop: withCtx(() => [
|
|
169
|
-
renderSlot(_ctx.$slots, "contentInfo")
|
|
170
|
-
]),
|
|
171
|
-
contentIcon: withCtx(() => [
|
|
172
|
-
renderSlot(_ctx.$slots, "contentIcons")
|
|
173
|
-
]),
|
|
174
|
-
contentAddr: withCtx(() => [
|
|
175
|
-
renderSlot(_ctx.$slots, "contentAddrs")
|
|
176
|
-
]),
|
|
177
|
-
_: 3
|
|
178
|
-
}, 8, ["item", "onDelIcon", "onEditIcon", "onItemClick", "onTouchmove", "onTouchstart"])
|
|
179
|
-
])
|
|
180
|
-
]),
|
|
181
|
-
_: 3
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
const SwipeShell = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
88
|
+
const ItemContents = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
185
89
|
const { create: create$1 } = createComponent("addresslist-general");
|
|
186
90
|
const _sfc_main$1 = create$1({
|
|
187
91
|
props: {
|
|
@@ -192,27 +96,52 @@ const _sfc_main$1 = create$1({
|
|
|
192
96
|
longPress: {
|
|
193
97
|
type: Boolean,
|
|
194
98
|
default: false
|
|
99
|
+
},
|
|
100
|
+
swipeEdition: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
default: false
|
|
195
103
|
}
|
|
196
104
|
},
|
|
197
|
-
emits: ["delIcon", "editIcon", "itemClick", "longDown", "longCopy", "longSet", "longDel"],
|
|
105
|
+
emits: ["delIcon", "editIcon", "itemClick", "longDown", "longCopy", "longSet", "longDel", "swipeDel"],
|
|
198
106
|
components: {
|
|
199
107
|
ItemContents
|
|
200
108
|
},
|
|
201
109
|
setup(props, { emit }) {
|
|
110
|
+
const renderCompontent = () => {
|
|
111
|
+
return h(ItemContents, {
|
|
112
|
+
item: props.item,
|
|
113
|
+
onDelIcon(event) {
|
|
114
|
+
delClick(event);
|
|
115
|
+
},
|
|
116
|
+
onEditIcon(event) {
|
|
117
|
+
editClick(event);
|
|
118
|
+
},
|
|
119
|
+
onItemClick(event) {
|
|
120
|
+
itemClick(event);
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
};
|
|
202
124
|
let loop = null;
|
|
125
|
+
const moveRef = ref(false);
|
|
203
126
|
const showMaskRef = ref(false);
|
|
204
|
-
const
|
|
127
|
+
const delClick = (event) => {
|
|
205
128
|
emit("delIcon", event, props.item);
|
|
206
129
|
event.stopPropagation();
|
|
207
130
|
};
|
|
208
|
-
const
|
|
131
|
+
const editClick = (event) => {
|
|
209
132
|
emit("editIcon", event, props.item);
|
|
210
133
|
event.stopPropagation();
|
|
211
134
|
};
|
|
212
|
-
const
|
|
135
|
+
const itemClick = (event) => {
|
|
136
|
+
if (moveRef.value)
|
|
137
|
+
return;
|
|
213
138
|
emit("itemClick", event, props.item);
|
|
214
139
|
event.stopPropagation();
|
|
215
140
|
};
|
|
141
|
+
const delLongClick = (event) => {
|
|
142
|
+
emit("longDel", event, props.item);
|
|
143
|
+
event.stopPropagation();
|
|
144
|
+
};
|
|
216
145
|
const holdingFunc = (event) => {
|
|
217
146
|
loop = 0;
|
|
218
147
|
showMaskRef.value = true;
|
|
@@ -240,10 +169,6 @@ const _sfc_main$1 = create$1({
|
|
|
240
169
|
emit("longSet", event, props.item);
|
|
241
170
|
event.stopPropagation();
|
|
242
171
|
};
|
|
243
|
-
const delClick = (event) => {
|
|
244
|
-
emit("longDel", event, props.item);
|
|
245
|
-
event.stopPropagation();
|
|
246
|
-
};
|
|
247
172
|
const maskClick = (event) => {
|
|
248
173
|
if (loop != 0) {
|
|
249
174
|
showMaskRef.value = false;
|
|
@@ -251,23 +176,40 @@ const _sfc_main$1 = create$1({
|
|
|
251
176
|
event.stopPropagation();
|
|
252
177
|
event.preventDefault();
|
|
253
178
|
};
|
|
179
|
+
const swipeDelClick = (event) => {
|
|
180
|
+
emit("swipeDel", event, props.item);
|
|
181
|
+
event.stopPropagation();
|
|
182
|
+
};
|
|
183
|
+
const swipestart = () => {
|
|
184
|
+
moveRef.value = false;
|
|
185
|
+
};
|
|
186
|
+
const swipemove = () => {
|
|
187
|
+
moveRef.value = true;
|
|
188
|
+
};
|
|
254
189
|
return {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
190
|
+
renderCompontent,
|
|
191
|
+
showMaskRef,
|
|
192
|
+
itemClick,
|
|
193
|
+
editClick,
|
|
194
|
+
delClick,
|
|
195
|
+
delLongClick,
|
|
258
196
|
holddownstart,
|
|
259
197
|
holddownmove,
|
|
260
198
|
holddownend,
|
|
261
|
-
showMaskRef,
|
|
262
|
-
delClick,
|
|
263
199
|
copyCLick,
|
|
264
200
|
hideMaskClick,
|
|
265
201
|
setDefault,
|
|
266
|
-
maskClick
|
|
202
|
+
maskClick,
|
|
203
|
+
swipeDelClick,
|
|
204
|
+
swipestart,
|
|
205
|
+
swipemove
|
|
267
206
|
};
|
|
268
207
|
}
|
|
269
208
|
});
|
|
270
|
-
const _hoisted_1 = {
|
|
209
|
+
const _hoisted_1 = {
|
|
210
|
+
key: 0,
|
|
211
|
+
class: "nut-address-list-general"
|
|
212
|
+
};
|
|
271
213
|
const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", { class: "nut-address-list-mask-contain" }, [
|
|
272
214
|
/* @__PURE__ */ createTextVNode(" 复制"),
|
|
273
215
|
/* @__PURE__ */ createElementVNode("br"),
|
|
@@ -292,14 +234,12 @@ const _hoisted_6 = /* @__PURE__ */ createElementVNode("div", { class: "nut-addre
|
|
|
292
234
|
const _hoisted_7 = [
|
|
293
235
|
_hoisted_6
|
|
294
236
|
];
|
|
237
|
+
const _hoisted_8 = { class: "nut-address-list-swipe" };
|
|
295
238
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
296
|
-
const
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
onDelIcon: _ctx.delShellClick,
|
|
301
|
-
onEditIcon: _ctx.editShellClick,
|
|
302
|
-
onItemClick: _ctx.itemShellClick,
|
|
239
|
+
const _component_nut_button = resolveComponent("nut-button");
|
|
240
|
+
const _component_nut_swipe = resolveComponent("nut-swipe");
|
|
241
|
+
return !_ctx.swipeEdition ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
242
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderCompontent()), {
|
|
303
243
|
onTouchstart: _ctx.holddownstart,
|
|
304
244
|
onTouchend: _ctx.holddownend,
|
|
305
245
|
onTouchmove: _ctx.holddownmove
|
|
@@ -314,7 +254,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
314
254
|
renderSlot(_ctx.$slots, "contentAddrs")
|
|
315
255
|
]),
|
|
316
256
|
_: 3
|
|
317
|
-
},
|
|
257
|
+
}, 40, ["onTouchstart", "onTouchend", "onTouchmove"])),
|
|
318
258
|
_ctx.longPress && _ctx.showMaskRef ? (openBlock(), createElementBlock("div", {
|
|
319
259
|
key: 0,
|
|
320
260
|
class: "nut-address-list-general__mask",
|
|
@@ -331,7 +271,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
331
271
|
}, _hoisted_5),
|
|
332
272
|
createElementVNode("div", {
|
|
333
273
|
class: "nut-address-list-general__mask-del",
|
|
334
|
-
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.
|
|
274
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.delLongClick && _ctx.delLongClick(...args))
|
|
335
275
|
}, _hoisted_7)
|
|
336
276
|
])
|
|
337
277
|
])) : createCommentVNode("", true),
|
|
@@ -340,7 +280,43 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
340
280
|
class: "nut-address-list__mask-bottom",
|
|
341
281
|
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.hideMaskClick && _ctx.hideMaskClick(...args))
|
|
342
282
|
})) : createCommentVNode("", true)
|
|
343
|
-
])
|
|
283
|
+
])) : (openBlock(), createBlock(_component_nut_swipe, { key: 1 }, {
|
|
284
|
+
right: withCtx(() => [
|
|
285
|
+
renderSlot(_ctx.$slots, "swiperightbtn", {}, () => [
|
|
286
|
+
createVNode(_component_nut_button, {
|
|
287
|
+
shape: "square",
|
|
288
|
+
style: { "height": "100%" },
|
|
289
|
+
type: "danger",
|
|
290
|
+
onClick: _ctx.swipeDelClick
|
|
291
|
+
}, {
|
|
292
|
+
default: withCtx(() => [
|
|
293
|
+
createTextVNode("删除")
|
|
294
|
+
]),
|
|
295
|
+
_: 1
|
|
296
|
+
}, 8, ["onClick"])
|
|
297
|
+
])
|
|
298
|
+
]),
|
|
299
|
+
default: withCtx(() => [
|
|
300
|
+
createElementVNode("div", _hoisted_8, [
|
|
301
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderCompontent()), {
|
|
302
|
+
onTouchmove: _ctx.swipemove,
|
|
303
|
+
onTouchstart: _ctx.swipestart
|
|
304
|
+
}, {
|
|
305
|
+
contentTop: withCtx(() => [
|
|
306
|
+
renderSlot(_ctx.$slots, "contentInfo")
|
|
307
|
+
]),
|
|
308
|
+
contentIcon: withCtx(() => [
|
|
309
|
+
renderSlot(_ctx.$slots, "contentIcons")
|
|
310
|
+
]),
|
|
311
|
+
contentAddr: withCtx(() => [
|
|
312
|
+
renderSlot(_ctx.$slots, "contentAddrs")
|
|
313
|
+
]),
|
|
314
|
+
_: 3
|
|
315
|
+
}, 40, ["onTouchmove", "onTouchstart"]))
|
|
316
|
+
])
|
|
317
|
+
]),
|
|
318
|
+
_: 3
|
|
319
|
+
}));
|
|
344
320
|
}
|
|
345
321
|
const GeneralShell = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
346
322
|
const { componentName, create, translate } = createComponent("address-list");
|
|
@@ -368,7 +344,6 @@ const _sfc_main = create({
|
|
|
368
344
|
}
|
|
369
345
|
},
|
|
370
346
|
components: {
|
|
371
|
-
SwipeShell,
|
|
372
347
|
GeneralShell,
|
|
373
348
|
[Button.name]: Button,
|
|
374
349
|
[Swipe.name]: Swipe
|
|
@@ -453,16 +428,16 @@ const _sfc_main = create({
|
|
|
453
428
|
});
|
|
454
429
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
455
430
|
const _component_general_shell = resolveComponent("general-shell");
|
|
456
|
-
const _component_swipe_shell = resolveComponent("swipe-shell");
|
|
457
431
|
const _component_nut_button = resolveComponent("nut-button");
|
|
458
432
|
return openBlock(), createElementBlock("div", {
|
|
459
433
|
class: normalizeClass(_ctx.classes)
|
|
460
434
|
}, [
|
|
461
|
-
|
|
435
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dataArray, (item, index2) => {
|
|
462
436
|
return openBlock(), createBlock(_component_general_shell, {
|
|
463
437
|
key: index2,
|
|
464
438
|
item,
|
|
465
439
|
longPress: _ctx.longPress,
|
|
440
|
+
swipeEdition: _ctx.swipeEdition,
|
|
466
441
|
onDelIcon: _ctx.clickDelIcon,
|
|
467
442
|
onEditIcon: _ctx.clickEditIcon,
|
|
468
443
|
onItemClick: _ctx.clickContentItem,
|
|
@@ -470,46 +445,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
470
445
|
onLongCopy: _ctx.clickLongCopy,
|
|
471
446
|
onLongSet: _ctx.clickLongSet,
|
|
472
447
|
onLongDel: _ctx.clickLongDel
|
|
473
|
-
}, createSlots({
|
|
474
|
-
_ctx.longPress ? {
|
|
475
|
-
name: "contentInfo",
|
|
476
|
-
fn: withCtx(() => [
|
|
477
|
-
renderSlot(_ctx.$slots, "iteminfos")
|
|
478
|
-
]),
|
|
479
|
-
key: "0"
|
|
480
|
-
} : void 0,
|
|
481
|
-
_ctx.longPress ? {
|
|
482
|
-
name: "contentIcons",
|
|
483
|
-
fn: withCtx(() => [
|
|
484
|
-
renderSlot(_ctx.$slots, "itemicon")
|
|
485
|
-
]),
|
|
486
|
-
key: "1"
|
|
487
|
-
} : void 0,
|
|
488
|
-
_ctx.longPress ? {
|
|
489
|
-
name: "contentAddrs",
|
|
490
|
-
fn: withCtx(() => [
|
|
491
|
-
renderSlot(_ctx.$slots, "itemaddr")
|
|
492
|
-
]),
|
|
493
|
-
key: "2"
|
|
494
|
-
} : void 0,
|
|
495
|
-
_ctx.longPress ? {
|
|
496
|
-
name: "longpressAll",
|
|
497
|
-
fn: withCtx(() => [
|
|
498
|
-
renderSlot(_ctx.$slots, "longpressbtns")
|
|
499
|
-
]),
|
|
500
|
-
key: "3"
|
|
501
|
-
} : void 0
|
|
502
|
-
]), 1032, ["item", "longPress", "onDelIcon", "onEditIcon", "onItemClick", "onSwipeDel", "onLongCopy", "onLongSet", "onLongDel"]);
|
|
503
|
-
}), 128)) : createCommentVNode("", true),
|
|
504
|
-
_ctx.swipeEdition ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.dataArray, (item, index2) => {
|
|
505
|
-
return openBlock(), createBlock(_component_swipe_shell, {
|
|
506
|
-
key: index2,
|
|
507
|
-
item,
|
|
508
|
-
onDelIcon: _ctx.clickDelIcon,
|
|
509
|
-
onEditIcon: _ctx.clickEditIcon,
|
|
510
|
-
onItemClick: _ctx.clickContentItem,
|
|
511
|
-
onSwipeDel: _ctx.clickSwipeDel
|
|
512
|
-
}, {
|
|
448
|
+
}, createSlots({
|
|
513
449
|
contentInfo: withCtx(() => [
|
|
514
450
|
renderSlot(_ctx.$slots, "iteminfos")
|
|
515
451
|
]),
|
|
@@ -519,14 +455,26 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
519
455
|
contentAddrs: withCtx(() => [
|
|
520
456
|
renderSlot(_ctx.$slots, "itemaddr")
|
|
521
457
|
]),
|
|
522
|
-
swiperightbtn: withCtx(() => [
|
|
523
|
-
renderSlot(_ctx.$slots, "swiperight")
|
|
524
|
-
]),
|
|
525
458
|
_: 2
|
|
526
|
-
},
|
|
527
|
-
|
|
459
|
+
}, [
|
|
460
|
+
_ctx.longPress ? {
|
|
461
|
+
name: "longpressAll",
|
|
462
|
+
fn: withCtx(() => [
|
|
463
|
+
renderSlot(_ctx.$slots, "longpressbtns")
|
|
464
|
+
]),
|
|
465
|
+
key: "0"
|
|
466
|
+
} : void 0,
|
|
467
|
+
_ctx.swipeEdition ? {
|
|
468
|
+
name: "swiperightbtn",
|
|
469
|
+
fn: withCtx(() => [
|
|
470
|
+
renderSlot(_ctx.$slots, "swiperight")
|
|
471
|
+
]),
|
|
472
|
+
key: "1"
|
|
473
|
+
} : void 0
|
|
474
|
+
]), 1032, ["item", "longPress", "swipeEdition", "onDelIcon", "onEditIcon", "onItemClick", "onSwipeDel", "onLongCopy", "onLongSet", "onLongDel"]);
|
|
475
|
+
}), 128)),
|
|
528
476
|
_ctx.showBottomButton ? (openBlock(), createElementBlock("div", {
|
|
529
|
-
key:
|
|
477
|
+
key: 0,
|
|
530
478
|
class: "nut-address-list__bottom",
|
|
531
479
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.addAddress && _ctx.addAddress(...args))
|
|
532
480
|
}, [
|
|
@@ -13,26 +13,32 @@ const _sfc_main = create({
|
|
|
13
13
|
type: String,
|
|
14
14
|
default: ""
|
|
15
15
|
},
|
|
16
|
+
// 静音
|
|
16
17
|
muted: {
|
|
17
18
|
type: Boolean,
|
|
18
19
|
default: false
|
|
19
20
|
},
|
|
21
|
+
// 自动播放
|
|
20
22
|
autoplay: {
|
|
21
23
|
type: Boolean,
|
|
22
24
|
default: false
|
|
23
25
|
},
|
|
26
|
+
// 循环播放
|
|
24
27
|
loop: {
|
|
25
28
|
type: Boolean,
|
|
26
29
|
default: false
|
|
27
30
|
},
|
|
31
|
+
// 是否预加载音频
|
|
28
32
|
preload: {
|
|
29
33
|
type: String,
|
|
30
34
|
default: "auto"
|
|
31
35
|
},
|
|
36
|
+
/* 总时长秒数 */
|
|
32
37
|
second: {
|
|
33
38
|
type: Number,
|
|
34
39
|
default: 0
|
|
35
40
|
},
|
|
41
|
+
// 展示的形式 controls 控制面板 progress 进度条 icon 图标 none 自定义
|
|
36
42
|
type: {
|
|
37
43
|
type: String,
|
|
38
44
|
default: "progress"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, ref, resolveComponent, openBlock, createBlock, withCtx, createSlots, renderSlot, createCommentVNode } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
-
import { C as CalendarItem, U as Utils } from "./index-
|
|
3
|
+
import { C as CalendarItem, U as Utils } from "./index-f3a722c9.js";
|
|
4
4
|
import { P as Popup } from "./index-1006915b.js";
|
|
5
5
|
import { u as useExpose } from "./index-79c5dc33.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -98,6 +98,7 @@ class Tree {
|
|
|
98
98
|
parent.children = formatTree(nodes, parent, this.config);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
+
// for test
|
|
101
102
|
getNodeByValue(value) {
|
|
102
103
|
let foundNode;
|
|
103
104
|
eachTree(this.nodes, (node) => {
|
|
@@ -289,6 +290,7 @@ const _sfc_main$1 = create$1({
|
|
|
289
290
|
emit("update:modelValue", emitValue, pathNodes);
|
|
290
291
|
};
|
|
291
292
|
const methods = {
|
|
293
|
+
// 选中一个节点,静默模式不触发事件
|
|
292
294
|
async handleNode(node, silent) {
|
|
293
295
|
const { disabled, loading } = node;
|
|
294
296
|
if (!silent && disabled || !panes.value[tabsCursor.value]) {
|
|
@@ -5,14 +5,17 @@ import "../locale/lang";
|
|
|
5
5
|
const { componentName, create } = createComponent("category-pane");
|
|
6
6
|
const _sfc_main = create({
|
|
7
7
|
props: {
|
|
8
|
+
//分类模式
|
|
8
9
|
type: {
|
|
9
10
|
type: String,
|
|
10
11
|
default: "classify"
|
|
11
12
|
},
|
|
13
|
+
//右侧导航数据
|
|
12
14
|
categoryChild: {
|
|
13
15
|
type: Array,
|
|
14
16
|
default: () => []
|
|
15
17
|
},
|
|
18
|
+
//模式传入自定义数据
|
|
16
19
|
customCategory: {
|
|
17
20
|
type: Array,
|
|
18
21
|
default: () => []
|
|
@@ -13,6 +13,7 @@ const _sfc_main$3 = create$3({
|
|
|
13
13
|
type: {
|
|
14
14
|
type: String,
|
|
15
15
|
default: "default"
|
|
16
|
+
// default,complex
|
|
16
17
|
},
|
|
17
18
|
info: {
|
|
18
19
|
type: Object,
|
|
@@ -114,6 +115,7 @@ const _sfc_main$2 = create$2({
|
|
|
114
115
|
type: {
|
|
115
116
|
type: String,
|
|
116
117
|
default: "one"
|
|
118
|
+
// one multi
|
|
117
119
|
},
|
|
118
120
|
videos: {
|
|
119
121
|
type: Array,
|
|
@@ -216,6 +218,7 @@ const _sfc_main$1 = create$1({
|
|
|
216
218
|
type: {
|
|
217
219
|
type: String,
|
|
218
220
|
default: "base"
|
|
221
|
+
// simple,base,complex
|
|
219
222
|
},
|
|
220
223
|
info: {
|
|
221
224
|
type: Object,
|
|
@@ -300,10 +303,12 @@ const _sfc_main = create({
|
|
|
300
303
|
headerType: {
|
|
301
304
|
type: String,
|
|
302
305
|
default: "default"
|
|
306
|
+
//头部展示风格 default,complex
|
|
303
307
|
},
|
|
304
308
|
imagesRows: {
|
|
305
309
|
type: String,
|
|
306
310
|
default: "one"
|
|
311
|
+
// 'one' 'multi'
|
|
307
312
|
},
|
|
308
313
|
ellipsis: {
|
|
309
314
|
type: [String, Number, Boolean],
|