@nutui/nutui 4.0.0-beta.14 → 4.0.0-beta.16
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/AddressList.js +125 -177
- 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/smartips/web-types.json +3 -3
- package/dist/style.css +1 -1
- package/dist/styles/reset.css +3 -0
- package/dist/styles/themes/default.scss +54 -54
- package/dist/styles/themes/jdb.scss +54 -54
- package/dist/styles/themes/jddkh.scss +54 -54
- package/dist/styles/themes/jdt.scss +54 -54
- 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/styles/theme-deafult.scss +0 -918
- package/dist/styles/theme-jdt.scss +0 -892
- package/dist/styles/variables-var.scss +0 -854
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +0 -26
|
@@ -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
|
}, [
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
flex: 0 0 auto; // 防止被压缩
|
|
8
8
|
text-align: center;
|
|
9
9
|
img {
|
|
10
|
+
display: block;
|
|
10
11
|
width: 100%;
|
|
11
12
|
height: 100%;
|
|
12
13
|
}
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
}
|
|
36
37
|
.nut-avatar-round {
|
|
37
38
|
border-radius: 50%;
|
|
38
|
-
overflow: hidden;
|
|
39
|
+
// overflow: hidden;
|
|
39
40
|
}
|
|
40
41
|
.nut-avatar-square {
|
|
41
42
|
border-radius: $avatar-square;
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
user-select: none;
|
|
17
17
|
touch-action: manipulation;
|
|
18
18
|
vertical-align: bottom;
|
|
19
|
-
|
|
20
19
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
21
20
|
-webkit-tap-highlight-color: transparent;
|
|
22
21
|
|
|
@@ -174,3 +173,66 @@
|
|
|
174
173
|
border-radius: 0;
|
|
175
174
|
}
|
|
176
175
|
}
|
|
176
|
+
.nut-button--default:not([disabled]):active {
|
|
177
|
+
color: $button-default-color;
|
|
178
|
+
background: $button-default-bg-color;
|
|
179
|
+
border: $button-border-width solid $button-default-border-color;
|
|
180
|
+
}
|
|
181
|
+
.nut-button--primary:not([disabled]):active {
|
|
182
|
+
color: $button-primary-color;
|
|
183
|
+
background: $button-primary-background-color;
|
|
184
|
+
border: $button-border-width solid transparent;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.nut-button--info:not([disabled]):active {
|
|
188
|
+
color: $button-info-color;
|
|
189
|
+
background: $button-info-background-color;
|
|
190
|
+
border: $button-border-width solid transparent;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.nut-button--success:not([disabled]):active {
|
|
194
|
+
color: $button-success-color;
|
|
195
|
+
background: $button-success-background-color;
|
|
196
|
+
border: $button-border-width solid transparent;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.nut-button--danger:not([disabled]):active {
|
|
200
|
+
color: $button-danger-color;
|
|
201
|
+
background: $button-danger-background-color;
|
|
202
|
+
border: $button-border-width solid transparent;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.nut-button--warning:not([disabled]):active {
|
|
206
|
+
color: $button-warning-color;
|
|
207
|
+
background: $button-warning-background-color;
|
|
208
|
+
border: $button-border-width solid transparent;
|
|
209
|
+
}
|
|
210
|
+
.nut-button--plain:not([disabled]):active {
|
|
211
|
+
background: $button-plain-background-color;
|
|
212
|
+
}
|
|
213
|
+
.nut-button--plain {
|
|
214
|
+
&.nut-button--primary:not([disabled]):active {
|
|
215
|
+
color: $button-primary-border-color;
|
|
216
|
+
border-color: $button-primary-border-color;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&.nut-button--info:not([disabled]):active {
|
|
220
|
+
color: $button-info-border-color;
|
|
221
|
+
border-color: $button-info-border-color;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
&.nut-button--success:not([disabled]):active {
|
|
225
|
+
color: $button-success-border-color;
|
|
226
|
+
border-color: $button-success-border-color;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
&.nut-button--danger:not([disabled]):active {
|
|
230
|
+
color: $button-danger-border-color;
|
|
231
|
+
border-color: $button-danger-border-color;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&.nut-button--warning:not([disabled]):active {
|
|
235
|
+
color: $button-warning-border-color;
|
|
236
|
+
border-color: $button-warning-border-color;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "NutUI",
|
|
5
|
-
"version": "4.0.0-beta.
|
|
5
|
+
"version": "4.0.0-beta.16",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"tags": [
|
|
@@ -1500,7 +1500,7 @@
|
|
|
1500
1500
|
{
|
|
1501
1501
|
"name": "speed",
|
|
1502
1502
|
"default": "`1`",
|
|
1503
|
-
"description": "
|
|
1503
|
+
"description": "间隔数字,目前仅支持基础用法",
|
|
1504
1504
|
"value": {
|
|
1505
1505
|
"type": "number",
|
|
1506
1506
|
"kind": "expression"
|
|
@@ -6543,7 +6543,7 @@
|
|
|
6543
6543
|
{
|
|
6544
6544
|
"name": "list-type",
|
|
6545
6545
|
"default": "`\"picture\"`",
|
|
6546
|
-
"description": "
|
|
6546
|
+
"description": "上传列表的内建样式,支持两种基础样式 picture、list",
|
|
6547
6547
|
"value": {
|
|
6548
6548
|
"type": "string",
|
|
6549
6549
|
"kind": "expression"
|