lw-cdp-ui 1.1.34 → 1.1.35
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/components/lwUpload/index.vue +37 -31
- package/dist/lw-cdp-ui.esm.js +58 -55
- package/dist/lw-cdp-ui.umd.js +7 -7
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -2,31 +2,34 @@
|
|
|
2
2
|
<div class="lw-upload"
|
|
3
3
|
:class="{ 'lw-upload-round': round }">
|
|
4
4
|
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
<
|
|
26
|
-
|
|
5
|
+
<div v-if="fileList.length > 0"
|
|
6
|
+
class="view-img-list">
|
|
7
|
+
<template v-for="(f, index) in fileList">
|
|
8
|
+
<div class="lw-upload__img"
|
|
9
|
+
:style="style">
|
|
10
|
+
<el-image class="image"
|
|
11
|
+
:src="f"
|
|
12
|
+
:preview-src-list="fileList"
|
|
13
|
+
fit="cover"
|
|
14
|
+
hide-on-click-modal
|
|
15
|
+
append-to-body
|
|
16
|
+
:z-index="9999">
|
|
17
|
+
<template #placeholder>
|
|
18
|
+
<div class="lw-upload__img-slot">
|
|
19
|
+
Loading...
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
</el-image>
|
|
23
|
+
<div class="lw-upload__img-actions"
|
|
24
|
+
v-if="!disabled">
|
|
25
|
+
<span class="del"
|
|
26
|
+
@click="handleRemove(index)">
|
|
27
|
+
<el-icon><el-icon-delete /></el-icon>
|
|
28
|
+
</span>
|
|
29
|
+
</div>
|
|
27
30
|
</div>
|
|
28
|
-
</
|
|
29
|
-
</
|
|
31
|
+
</template>
|
|
32
|
+
</div>
|
|
30
33
|
|
|
31
34
|
<div v-if="file && file.status != 'success'"
|
|
32
35
|
class="lw-upload__uploading">
|
|
@@ -68,13 +71,12 @@
|
|
|
68
71
|
</div>
|
|
69
72
|
</div>
|
|
70
73
|
</slot>
|
|
71
|
-
<template #tip>
|
|
72
|
-
<div class="el-upload__tip">
|
|
73
|
-
{{tip}}
|
|
74
|
-
</div>
|
|
75
|
-
</template>
|
|
76
74
|
</el-upload>
|
|
75
|
+
<div class="el-upload__tip">
|
|
76
|
+
{{tip}}
|
|
77
|
+
</div>
|
|
77
78
|
</div>
|
|
79
|
+
|
|
78
80
|
</template>
|
|
79
81
|
|
|
80
82
|
<script>
|
|
@@ -164,7 +166,7 @@ export default {
|
|
|
164
166
|
if (this.multiple) {
|
|
165
167
|
this.fileList = url
|
|
166
168
|
} else {
|
|
167
|
-
this.fileList = [url]
|
|
169
|
+
this.fileList = url ? [url] : []
|
|
168
170
|
}
|
|
169
171
|
if (url) {
|
|
170
172
|
this.file = {
|
|
@@ -186,7 +188,7 @@ export default {
|
|
|
186
188
|
} else {
|
|
187
189
|
this.value = ""
|
|
188
190
|
}
|
|
189
|
-
|
|
191
|
+
|
|
190
192
|
this.file = null
|
|
191
193
|
this.$nextTick(() => {
|
|
192
194
|
this.$refs.uploader?.clearFiles()
|
|
@@ -397,10 +399,14 @@ export default {
|
|
|
397
399
|
flex-direction: column;
|
|
398
400
|
}
|
|
399
401
|
.lw-upload {
|
|
402
|
+
width: 100%;
|
|
403
|
+
}
|
|
404
|
+
.view-img-list {
|
|
400
405
|
display: flex;
|
|
401
406
|
align-items: center;
|
|
402
407
|
flex-wrap: wrap;
|
|
403
408
|
gap: 10px;
|
|
409
|
+
margin-bottom: 10px;
|
|
404
410
|
}
|
|
405
411
|
|
|
406
412
|
.lw-upload .file-empty i {
|
package/dist/lw-cdp-ui.esm.js
CHANGED
|
@@ -1265,7 +1265,7 @@ const iframeView = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_ren
|
|
|
1265
1265
|
}, _hoisted_5$7 = ["onClick"], _hoisted_6$5 = { class: "adminui-header-right" }, _hoisted_7$5 = { class: "aminui-wrapper" }, _hoisted_8$5 = {
|
|
1266
1266
|
key: 0,
|
|
1267
1267
|
class: "adminui-side-top"
|
|
1268
|
-
}, _hoisted_9$
|
|
1268
|
+
}, _hoisted_9$4 = { class: "adminui-side-scroll" }, _hoisted_10$3 = { class: "aminui-body el-container" }, _hoisted_11$3 = {
|
|
1269
1269
|
class: "adminui-main",
|
|
1270
1270
|
id: "adminui-main"
|
|
1271
1271
|
}, _hoisted_12$2 = {
|
|
@@ -1342,7 +1342,7 @@ function _sfc_render$q(e, t, n, c, a, p) {
|
|
|
1342
1342
|
p.menuIsCollapse ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_8$5, [
|
|
1343
1343
|
createElementVNode("h2", null, toDisplayString(a.pmenu.meta.title), 1)
|
|
1344
1344
|
])),
|
|
1345
|
-
createElementVNode("div", _hoisted_9$
|
|
1345
|
+
createElementVNode("div", _hoisted_9$4, [
|
|
1346
1346
|
createVNode(V, null, {
|
|
1347
1347
|
default: withCtx(() => [
|
|
1348
1348
|
createVNode(b, {
|
|
@@ -3459,7 +3459,7 @@ const JSEncrypt = /* @__PURE__ */ getDefaultExportFromCjs(jsencrypt_minExports),
|
|
|
3459
3459
|
}, _hoisted_4$8 = {
|
|
3460
3460
|
class: "img",
|
|
3461
3461
|
src: _imports_2
|
|
3462
|
-
}, _hoisted_5$6 = { class: "login_main" }, _hoisted_6$4 = { class: "login_registered" }, _hoisted_7$4 = { class: "login-form" }, _hoisted_8$4 = { class: "title-name" }, _hoisted_9$
|
|
3462
|
+
}, _hoisted_5$6 = { class: "login_main" }, _hoisted_6$4 = { class: "login_registered" }, _hoisted_7$4 = { class: "login-form" }, _hoisted_8$4 = { class: "title-name" }, _hoisted_9$3 = { class: "login_config" }, _hoisted_10$2 = { class: "login-form" }, _hoisted_11$2 = { class: "title-name" };
|
|
3463
3463
|
function _sfc_render$p(e, t, n, c, a, p) {
|
|
3464
3464
|
const _ = resolveComponent("el-button"), m = resolveComponent("el-form-item"), g = resolveComponent("el-input"), b = resolveComponent("el-option"), V = resolveComponent("el-select"), v = resolveComponent("el-form"), $ = resolveComponent("Lang"), I = resolveComponent("el-checkbox"), x = resolveComponent("el-col"), L = resolveComponent("el-row");
|
|
3465
3465
|
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
@@ -3611,7 +3611,7 @@ function _sfc_render$p(e, t, n, c, a, p) {
|
|
|
3611
3611
|
}, 8, ["model", "rules"])
|
|
3612
3612
|
])
|
|
3613
3613
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
3614
|
-
createElementVNode("div", _hoisted_9$
|
|
3614
|
+
createElementVNode("div", _hoisted_9$3, [
|
|
3615
3615
|
createVNode($)
|
|
3616
3616
|
]),
|
|
3617
3617
|
createElementVNode("div", _hoisted_10$2, [
|
|
@@ -4011,7 +4011,7 @@ const SearchDate = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_ren
|
|
|
4011
4011
|
displayValue: c
|
|
4012
4012
|
};
|
|
4013
4013
|
}
|
|
4014
|
-
}, _hoisted_1$g = { class: "dates-container" }, _hoisted_2$e = { class: "dates-panel" }, _hoisted_3$a = { class: "panel-label" }, _hoisted_4$7 = { class: "dates-side" }, _hoisted_5$5 = { class: "sidebar-list" }, _hoisted_6$3 = { class: "text" }, _hoisted_7$3 = ["onClick"], _hoisted_8$3 = { class: "panel-label" }, _hoisted_9$
|
|
4014
|
+
}, _hoisted_1$g = { class: "dates-container" }, _hoisted_2$e = { class: "dates-panel" }, _hoisted_3$a = { class: "panel-label" }, _hoisted_4$7 = { class: "dates-side" }, _hoisted_5$5 = { class: "sidebar-list" }, _hoisted_6$3 = { class: "text" }, _hoisted_7$3 = ["onClick"], _hoisted_8$3 = { class: "panel-label" }, _hoisted_9$2 = { class: "dates-side-top" }, _hoisted_10$1 = { class: "sidebar-list" }, _hoisted_11$1 = { class: "item" }, _hoisted_12$1 = { class: "text" };
|
|
4015
4015
|
function _sfc_render$l(e, t, n, c, a, p) {
|
|
4016
4016
|
const _ = resolveComponent("el-icon-calendar"), m = resolveComponent("el-icon"), g = resolveComponent("el-input"), b = resolveComponent("el-date-picker"), V = resolveComponent("Close"), v = resolveComponent("el-tab-pane"), $ = resolveComponent("el-icon-close"), I = resolveComponent("el-tabs");
|
|
4017
4017
|
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
@@ -4127,7 +4127,7 @@ function _sfc_render$l(e, t, n, c, a, p) {
|
|
|
4127
4127
|
key: 0,
|
|
4128
4128
|
to: ".range-picker-" + n.item.prop + " .el-picker-panel__sidebar"
|
|
4129
4129
|
}, [
|
|
4130
|
-
createElementVNode("div", _hoisted_9$
|
|
4130
|
+
createElementVNode("div", _hoisted_9$2, [
|
|
4131
4131
|
createElementVNode("div", _hoisted_10$1, [
|
|
4132
4132
|
withDirectives(createElementVNode("div", _hoisted_11$1, [
|
|
4133
4133
|
createElementVNode("div", _hoisted_12$1, toDisplayString(e.value[0]) + "~" + toDisplayString(e.value[1]), 1),
|
|
@@ -4813,7 +4813,7 @@ const _sfc_main$i = {
|
|
|
4813
4813
|
changeColWidth: U
|
|
4814
4814
|
};
|
|
4815
4815
|
}
|
|
4816
|
-
}, _hoisted_1$d = { class: "baseTablePage-wrap" }, _hoisted_2$b = { key: 0 }, _hoisted_3$9 = { key: 1 }, _hoisted_4$6 = { key: 1 }, _hoisted_5$4 = ["innerHTML", "onClick"], _hoisted_6$2 = ["innerHTML"], _hoisted_7$2 = { key: 2 }, _hoisted_8$2 = { key: 3 }, _hoisted_9 = { key: 0 }, _hoisted_10 = { key: 4 }, _hoisted_11 = { style: { "margin-bottom": "5px" } }, _hoisted_12 = { key: 5 }, _hoisted_13 = { key: 6 }, _hoisted_14 = { key: 7 }, _hoisted_15 = ["src"], _hoisted_16 = { key: 8 }, _hoisted_17 = { key: 9 }, _hoisted_18 = { key: 10 }, _hoisted_19 = ["onClick"], _hoisted_20 = { key: 1 }, _hoisted_21 = ["onClick"], _hoisted_22 = { key: 11 }, _hoisted_23 = {
|
|
4816
|
+
}, _hoisted_1$d = { class: "baseTablePage-wrap" }, _hoisted_2$b = { key: 0 }, _hoisted_3$9 = { key: 1 }, _hoisted_4$6 = { key: 1 }, _hoisted_5$4 = ["innerHTML", "onClick"], _hoisted_6$2 = ["innerHTML"], _hoisted_7$2 = { key: 2 }, _hoisted_8$2 = { key: 3 }, _hoisted_9$1 = { key: 0 }, _hoisted_10 = { key: 4 }, _hoisted_11 = { style: { "margin-bottom": "5px" } }, _hoisted_12 = { key: 5 }, _hoisted_13 = { key: 6 }, _hoisted_14 = { key: 7 }, _hoisted_15 = ["src"], _hoisted_16 = { key: 8 }, _hoisted_17 = { key: 9 }, _hoisted_18 = { key: 10 }, _hoisted_19 = ["onClick"], _hoisted_20 = { key: 1 }, _hoisted_21 = ["onClick"], _hoisted_22 = { key: 11 }, _hoisted_23 = {
|
|
4817
4817
|
key: 0,
|
|
4818
4818
|
class: "pagination-block"
|
|
4819
4819
|
}, _hoisted_24 = { class: "tool-block" }, _hoisted_25 = { class: "dropdown-trigger" }, _hoisted_26 = { class: "fix-num" };
|
|
@@ -5012,7 +5012,7 @@ function _sfc_render$i(e, t, n, c, a, p) {
|
|
|
5012
5012
|
}, 1032, ["value-key", "modelValue", "onUpdate:modelValue", "onChange"])) : (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(B.options, (u, d) => (openBlock(), createElementBlock("span", {
|
|
5013
5013
|
key: u + d
|
|
5014
5014
|
}, [
|
|
5015
|
-
E.row[B.dataIndex] == u[B.editValue || "code"] ? (openBlock(), createElementBlock("span", _hoisted_9, [
|
|
5015
|
+
E.row[B.dataIndex] == u[B.editValue || "code"] ? (openBlock(), createElementBlock("span", _hoisted_9$1, [
|
|
5016
5016
|
u.statusColor ? (openBlock(), createElementBlock("span", {
|
|
5017
5017
|
key: 0,
|
|
5018
5018
|
style: normalizeStyle(`background-color: ${u.statusColor}; border-radius: 100%; padding: 4px; display: inline-block; margin-right: 5px;`)
|
|
@@ -5349,7 +5349,7 @@ const lwTable = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render
|
|
|
5349
5349
|
},
|
|
5350
5350
|
methods: {
|
|
5351
5351
|
newFile(e) {
|
|
5352
|
-
this.multiple ? this.fileList = e : this.fileList = [e], e ? this.file = {
|
|
5352
|
+
this.multiple ? this.fileList = e : this.fileList = e ? [e] : [], e ? this.file = {
|
|
5353
5353
|
status: "success",
|
|
5354
5354
|
url: e
|
|
5355
5355
|
} : this.file = null;
|
|
@@ -5424,50 +5424,55 @@ const lwTable = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render
|
|
|
5424
5424
|
}
|
|
5425
5425
|
}, _hoisted_1$c = {
|
|
5426
5426
|
key: 0,
|
|
5427
|
-
class: "
|
|
5428
|
-
}, _hoisted_2$a =
|
|
5427
|
+
class: "view-img-list"
|
|
5428
|
+
}, _hoisted_2$a = {
|
|
5429
5429
|
key: 0,
|
|
5430
|
+
class: "lw-upload__img-actions"
|
|
5431
|
+
}, _hoisted_3$8 = ["onClick"], _hoisted_4$5 = {
|
|
5432
|
+
key: 1,
|
|
5430
5433
|
class: "lw-upload__uploading"
|
|
5431
|
-
},
|
|
5434
|
+
}, _hoisted_5$3 = { class: "lw-upload__progress" }, _hoisted_6$1 = { class: "el-upload--picture-card" }, _hoisted_7$1 = { class: "file-empty" }, _hoisted_8$1 = { key: 0 }, _hoisted_9 = { class: "el-upload__tip" };
|
|
5432
5435
|
function _sfc_render$h(e, t, n, c, a, p) {
|
|
5433
5436
|
const _ = resolveComponent("el-image"), m = resolveComponent("el-icon-delete"), g = resolveComponent("el-icon"), b = resolveComponent("el-progress"), V = resolveComponent("el-upload");
|
|
5434
5437
|
return openBlock(), createElementBlock("div", {
|
|
5435
5438
|
class: normalizeClass(["lw-upload", { "lw-upload-round": n.round }])
|
|
5436
5439
|
}, [
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5440
|
+
a.fileList.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
5441
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(a.fileList, (v, $) => (openBlock(), createElementBlock("div", {
|
|
5442
|
+
class: "lw-upload__img",
|
|
5443
|
+
style: normalizeStyle(a.style)
|
|
5444
|
+
}, [
|
|
5445
|
+
createVNode(_, {
|
|
5446
|
+
class: "image",
|
|
5447
|
+
src: v,
|
|
5448
|
+
"preview-src-list": a.fileList,
|
|
5449
|
+
fit: "cover",
|
|
5450
|
+
"hide-on-click-modal": "",
|
|
5451
|
+
"append-to-body": "",
|
|
5452
|
+
"z-index": 9999
|
|
5453
|
+
}, {
|
|
5454
|
+
placeholder: withCtx(() => t[0] || (t[0] = [
|
|
5455
|
+
createElementVNode("div", { class: "lw-upload__img-slot" }, " Loading... ", -1)
|
|
5456
|
+
])),
|
|
5457
|
+
_: 2
|
|
5458
|
+
}, 1032, ["src", "preview-src-list"]),
|
|
5459
|
+
n.disabled ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
5460
|
+
createElementVNode("span", {
|
|
5461
|
+
class: "del",
|
|
5462
|
+
onClick: (I) => p.handleRemove($)
|
|
5463
|
+
}, [
|
|
5464
|
+
createVNode(g, null, {
|
|
5465
|
+
default: withCtx(() => [
|
|
5466
|
+
createVNode(m)
|
|
5467
|
+
]),
|
|
5468
|
+
_: 1
|
|
5469
|
+
})
|
|
5470
|
+
], 8, _hoisted_3$8)
|
|
5471
|
+
]))
|
|
5472
|
+
], 4))), 256))
|
|
5473
|
+
])) : createCommentVNode("", !0),
|
|
5474
|
+
a.file && a.file.status != "success" ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
5475
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
5471
5476
|
createVNode(b, {
|
|
5472
5477
|
percentage: a.file.percentage,
|
|
5473
5478
|
"text-inside": !0,
|
|
@@ -5481,7 +5486,7 @@ function _sfc_render$h(e, t, n, c, a, p) {
|
|
|
5481
5486
|
}, null, 8, ["src"])
|
|
5482
5487
|
])) : createCommentVNode("", !0),
|
|
5483
5488
|
a.fileList.length < n.limit ? (openBlock(), createBlock(V, {
|
|
5484
|
-
key:
|
|
5489
|
+
key: 2,
|
|
5485
5490
|
class: "uploader",
|
|
5486
5491
|
style: normalizeStyle(a.style),
|
|
5487
5492
|
ref: "uploader",
|
|
@@ -5500,29 +5505,27 @@ function _sfc_render$h(e, t, n, c, a, p) {
|
|
|
5500
5505
|
"on-error": p.error,
|
|
5501
5506
|
"on-exceed": p.handleExceed
|
|
5502
5507
|
}, {
|
|
5503
|
-
tip: withCtx(() => [
|
|
5504
|
-
createElementVNode("div", _hoisted_8$1, toDisplayString(n.tip), 1)
|
|
5505
|
-
]),
|
|
5506
5508
|
default: withCtx(() => [
|
|
5507
5509
|
renderSlot(e.$slots, "default", {}, () => [
|
|
5508
|
-
createElementVNode("div",
|
|
5509
|
-
createElementVNode("div",
|
|
5510
|
+
createElementVNode("div", _hoisted_6$1, [
|
|
5511
|
+
createElementVNode("div", _hoisted_7$1, [
|
|
5510
5512
|
createVNode(g, null, {
|
|
5511
5513
|
default: withCtx(() => [
|
|
5512
5514
|
(openBlock(), createBlock(resolveDynamicComponent(n.icon)))
|
|
5513
5515
|
]),
|
|
5514
5516
|
_: 1
|
|
5515
5517
|
}),
|
|
5516
|
-
n.title ? (openBlock(), createElementBlock("h4",
|
|
5518
|
+
n.title ? (openBlock(), createElementBlock("h4", _hoisted_8$1, toDisplayString(n.title), 1)) : createCommentVNode("", !0)
|
|
5517
5519
|
])
|
|
5518
5520
|
])
|
|
5519
5521
|
], !0)
|
|
5520
5522
|
]),
|
|
5521
5523
|
_: 3
|
|
5522
|
-
}, 8, ["style", "auto-upload", "disabled", "show-file-list", "action", "name", "data", "accept", "limit", "http-request", "on-change", "before-upload", "on-success", "on-error", "on-exceed"])) : createCommentVNode("", !0)
|
|
5524
|
+
}, 8, ["style", "auto-upload", "disabled", "show-file-list", "action", "name", "data", "accept", "limit", "http-request", "on-change", "before-upload", "on-success", "on-error", "on-exceed"])) : createCommentVNode("", !0),
|
|
5525
|
+
createElementVNode("div", _hoisted_9, toDisplayString(n.tip), 1)
|
|
5523
5526
|
], 2);
|
|
5524
5527
|
}
|
|
5525
|
-
const lwUpload = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-
|
|
5528
|
+
const lwUpload = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-f1a7c1ee"]]), _sfc_main$g = {
|
|
5526
5529
|
components: {
|
|
5527
5530
|
lwUpload
|
|
5528
5531
|
},
|