act-plus 1.1.80 → 1.1.82
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/act-plus.js +1 -1
- package/act-plus.umd.cjs +53 -53
- package/lib/{dialogAddField-356c0203.js → dialogAddField-2e9cd8dd.js} +33 -33
- package/lib/{dialogConfigBtn-b826fbbd.js → dialogConfigBtn-f03ef8a6.js} +21 -21
- package/lib/{dialogSiteComponentsParams-2bd207be.js → dialogSiteComponentsParams-86be6478.js} +7 -7
- package/lib/{index-0ca10994.js → index-2e399e7e.js} +1333 -1365
- package/lib/{index-a1576e42.js → index-46cda8de.js} +5 -5
- package/lib/{index-bb510fb9.js → index-49c791d2.js} +1 -1
- package/lib/index-4c83efe5.js +277 -0
- package/lib/{index-a1929e12.js → index-66a60f4b.js} +67 -53
- package/lib/{index-5cf4016d.js → index-753b774f.js} +4535 -4788
- package/lib/{index-35e3b49c.js → index-7a82a0bc.js} +104 -112
- package/lib/{index-b42134dd.js → index-a34395ac.js} +25 -18
- package/lib/{index-083d66b1.js → index-b33bb0e0.js} +4 -4
- package/lib/{index-07af7560.js → index-d69cc7dd.js} +21 -21
- package/package.json +16 -16
- package/style.css +1 -1
- package/lib/index-ddd5b9be.js +0 -249
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "act-plus",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"private": false,
|
|
5
|
-
"description": "act config",
|
|
6
|
-
"main": "act-plus.js",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
-
},
|
|
10
|
-
"keywords": ["act", "act-plus", "vue"],
|
|
11
|
-
"author": "destiny",
|
|
12
|
-
"license": "ISC",
|
|
13
|
-
"publishConfig": {
|
|
14
|
-
"registry": "https://registry.npmjs.org/"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "act-plus",
|
|
3
|
+
"version": "1.1.82",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "act config",
|
|
6
|
+
"main": "act-plus.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"keywords": ["act", "act-plus", "vue"],
|
|
11
|
+
"author": "destiny",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"registry": "https://registry.npmjs.org/"
|
|
15
|
+
}
|
|
16
|
+
}
|
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 12px}.el-card__body{height:100%;box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}.month-range .el-date-range-picker{width:320px}.month-range .el-date-range-picker .el-picker-panel__body{min-width:320px}.month-range .is-left{width:100%}.month-range .el-date-range-picker__header,.month-range .is-right{display:none}.table-link{cursor:pointer;color:#409eff;text-decoration:underline}.a-loading[data-v-048c6c03]{display:flex;align-items:center;justify-content:center;width:100%;height:50px;font-size:32px}.a-loading .dot[data-v-048c6c03]{animation:antRotate-048c6c03 1.2s infinite linear;transform:rotate(45deg);position:relative;display:inline-block;width:28px;height:28px;box-sizing:border-box}.a-loading .dot i[data-v-048c6c03]{width:12px;height:12px;position:absolute;display:block;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove-048c6c03 1s infinite linear alternate}.a-loading .dot i[data-v-048c6c03]:nth-child(1){top:0;left:0}.a-loading .dot i[data-v-048c6c03]:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}.a-loading .dot i[data-v-048c6c03]:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}.a-loading .dot i[data-v-048c6c03]:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}@keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@-webkit-keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@keyframes antSpinMove-048c6c03{to{opacity:1}}@-webkit-keyframes antSpinMove-048c6c03{to{opacity:1}}[data-v-
|
|
1
|
+
.form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 12px}.el-card__body{height:100%;box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}.month-range .el-date-range-picker{width:320px}.month-range .el-date-range-picker .el-picker-panel__body{min-width:320px}.month-range .is-left{width:100%}.month-range .el-date-range-picker__header,.month-range .is-right{display:none}.table-link{cursor:pointer;color:#409eff;text-decoration:underline}.a-loading[data-v-048c6c03]{display:flex;align-items:center;justify-content:center;width:100%;height:50px;font-size:32px}.a-loading .dot[data-v-048c6c03]{animation:antRotate-048c6c03 1.2s infinite linear;transform:rotate(45deg);position:relative;display:inline-block;width:28px;height:28px;box-sizing:border-box}.a-loading .dot i[data-v-048c6c03]{width:12px;height:12px;position:absolute;display:block;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove-048c6c03 1s infinite linear alternate}.a-loading .dot i[data-v-048c6c03]:nth-child(1){top:0;left:0}.a-loading .dot i[data-v-048c6c03]:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}.a-loading .dot i[data-v-048c6c03]:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}.a-loading .dot i[data-v-048c6c03]:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}@keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@-webkit-keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@keyframes antSpinMove-048c6c03{to{opacity:1}}@-webkit-keyframes antSpinMove-048c6c03{to{opacity:1}}[data-v-b79aaaf7] .el-empty__image{width:100%}.file-image[data-v-b79aaaf7]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-b79aaaf7]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.act-module[data-v-b79aaaf7]{padding:0;margin:0;border:none}.table-opreate-dropdown[data-v-b79aaaf7]{margin:4px 0 0 8px}.table-btn-more[data-v-b79aaaf7]{width:16px;height:16px}.table-btn-more[data-v-b79aaaf7]:hover{cursor:pointer;opacity:.8}.add-icon-btn[data-v-fa895b16]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-fa895b16]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-fa895b16]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-fa895b16]{cursor:pointer;width:12px;height:12px}.card-header[data-v-8c801481]{display:flex;align-items:center}.card-header -operate[data-v-8c801481]{margin-left:auto}.form-list[data-v-8c801481]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-8c801481]:last-child{border:none}.config-list-operate[data-v-8c801481]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-75e750d2]{display:flex;align-items:center}.card-header-operate[data-v-75e750d2]{margin-left:auto}.form-list[data-v-75e750d2]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-75e750d2]:last-child{border:none}.config-list-operate[data-v-75e750d2]{display:flex;align-items:center;justify-content:flex-end}[data-v-75e750d2] .el-badge__content.is-fixed{transform:translateY(-50%) translate(100%) scale(.7)}.submit-operate[data-v-8fa48448]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-8fa48448]{cursor:pointer;width:20px;height:20px}.page-container[data-v-8dfa8a8a]{position:relative}.page-container .header-operate[data-v-8dfa8a8a]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-8dfa8a8a]{display:flex;align-items:center;justify-content:space-between}.page-container .submit-box-r[data-v-8dfa8a8a]{display:flex;align-items:center}.page-container .submit-box-r .menu-select[data-v-8dfa8a8a]{width:360px;margin:0 24px}.search-module-container[data-v-92d7682c] .el-form-item{margin-bottom:8px}.search-module-container[data-v-92d7682c] .el-select__selection{flex-wrap:nowrap;width:100%}.search-module-container .form-content[data-v-92d7682c]{display:grid;grid-template-columns:repeat(var(--table-query-row),minmax(120px,1fr));gap:6px;padding:6px 6px 0}.search-module-container .form-content .search-form-btn[data-v-92d7682c]{justify-self:end;align-self:start;grid-column-start:var(--table-query-row);grid-column-end:var(--table-query-row)}.search-module-container .expand[data-v-92d7682c]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-f0dda1b5]{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap}.header-operate-container .el-btn[data-v-f0dda1b5]{margin:2px}.header-operate-container .header-opreate-dropdown[data-v-f0dda1b5]{margin:4px 0 0 8px}.header-operate-container .header-btn-more[data-v-f0dda1b5]{width:16px;height:16px}.header-operate-container .header-btn-more[data-v-f0dda1b5]:hover{cursor:pointer;opacity:.8}.act-table .table-pagination[data-v-b5ec4a41]{padding:12px 4px;justify-content:flex-end}.no-config[data-v-a7576826]{line-height:32px;font-weight:700}.no-config-field[data-v-a7576826]{color:red}.card-header[data-v-be1c5be6]{display:flex;align-items:center}.card-header-operate[data-v-be1c5be6]{margin-left:auto}.add-icon-btn[data-v-325d2233]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-325d2233]{display:flex;justify-content:center}.condition-box[data-v-325d2233] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-325d2233]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-325d2233]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-6b2ebaa8]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-6b2ebaa8]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-6b2ebaa8]{cursor:pointer;width:20px;height:20px}.select-icon-popover .icon-list{display:grid;grid-template-columns:repeat(8,1fr)}.select-icon-popover .icon-list .icon-item{display:flex;align-items:center;justify-content:center;margin:4px 0;border:1px solid transparent}.select-icon-popover .icon-list .icon-item .icon-svg{cursor:pointer}.select-icon-popover .icon-list .icon-item-checked{border:1px solid #000}.select-icon-container .icon-value[data-v-308d02d4]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-308d02d4]{margin-left:12px}.upload-container[data-v-50a2deea]{width:100%}.upload-container[data-v-50a2deea] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-50a2deea] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-50a2deea]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-50a2deea]{display:flex;align-items:center;justify-content:space-between;margin:6px 0;padding:6px 12px;font-size:14px;border-radius:4px;border:1px solid #dcdfe6}.upload-container .file-list[data-v-50a2deea]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-50a2deea]{text-decoration:underline}.upload-container .file-list-l[data-v-50a2deea]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-50a2deea]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-50a2deea]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-50a2deea]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-50a2deea]{display:flex;justify-content:flex-end;flex-shrink:0;min-width:82px;margin-left:auto}.upload-container .file-list .el-file-operate>i[data-v-50a2deea]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-50a2deea]:hover{opacity:.8}.tox-tinymce-aux{z-index:99999!important}.tinymce.ui.FloatPanel{z-index:99}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#a8abb2}.act-code-mirror[data-v-451d513f]{width:100%}.act-code-mirror .format-code-btn[data-v-451d513f]{margin-bottom:4px}
|
package/lib/index-ddd5b9be.js
DELETED
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
import { ref as U, computed as oe, resolveComponent as w, resolveDirective as ne, openBlock as h, createElementBlock as N, withDirectives as ae, createBlock as C, mergeProps as ie, unref as p, withCtx as D, renderSlot as L, createElementVNode as x, toDisplayString as I, createCommentVNode as z, createVNode as $, createTextVNode as se, Fragment as ce, renderList as re, normalizeClass as ue, nextTick as pe } from "vue";
|
|
2
|
-
import { ElNotification as M } from "element-plus";
|
|
3
|
-
import { _ as de, u as me, z as fe, o as ge, p as _e, q as ye } from "./index-0ca10994.js";
|
|
4
|
-
import "vue-router";
|
|
5
|
-
let S;
|
|
6
|
-
const he = new Uint8Array(16);
|
|
7
|
-
function ve() {
|
|
8
|
-
if (!S && (S = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !S))
|
|
9
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
10
|
-
return S(he);
|
|
11
|
-
}
|
|
12
|
-
const a = [];
|
|
13
|
-
for (let l = 0; l < 256; ++l)
|
|
14
|
-
a.push((l + 256).toString(16).slice(1));
|
|
15
|
-
function we(l, n = 0) {
|
|
16
|
-
return a[l[n + 0]] + a[l[n + 1]] + a[l[n + 2]] + a[l[n + 3]] + "-" + a[l[n + 4]] + a[l[n + 5]] + "-" + a[l[n + 6]] + a[l[n + 7]] + "-" + a[l[n + 8]] + a[l[n + 9]] + "-" + a[l[n + 10]] + a[l[n + 11]] + a[l[n + 12]] + a[l[n + 13]] + a[l[n + 14]] + a[l[n + 15]];
|
|
17
|
-
}
|
|
18
|
-
const xe = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), q = {
|
|
19
|
-
randomUUID: xe
|
|
20
|
-
};
|
|
21
|
-
function Fe(l, n, F) {
|
|
22
|
-
if (q.randomUUID && !n && !l)
|
|
23
|
-
return q.randomUUID();
|
|
24
|
-
l = l || {};
|
|
25
|
-
const m = l.random || (l.rng || ve)();
|
|
26
|
-
if (m[6] = m[6] & 15 | 64, m[8] = m[8] & 63 | 128, n) {
|
|
27
|
-
F = F || 0;
|
|
28
|
-
for (let v = 0; v < 16; ++v)
|
|
29
|
-
n[F + v] = m[v];
|
|
30
|
-
return n;
|
|
31
|
-
}
|
|
32
|
-
return we(m);
|
|
33
|
-
}
|
|
34
|
-
const Te = { class: "upload-container" }, ke = { class: "el-upload__text" }, $e = { class: "tip-text" }, be = { class: "file-list-l" }, Pe = ["onMouseenter", "onMouseleave"], Ve = { class: "el-file-operate" }, Ue = {
|
|
35
|
-
__name: "index",
|
|
36
|
-
props: {
|
|
37
|
-
request: { type: Function, required: !0, default: null },
|
|
38
|
-
modelValue: { type: [Array, String], default: [] },
|
|
39
|
-
action: { type: String, default: "/api/v1/utils/uploadFiles" },
|
|
40
|
-
data: { type: Object, default: () => ({ uploadFileType: 1 }) },
|
|
41
|
-
name: { type: String, default: "files" },
|
|
42
|
-
multiple: { type: Boolean, default: !0 },
|
|
43
|
-
limit: { type: Number, default: 9 },
|
|
44
|
-
accept: { type: String, default: "*" },
|
|
45
|
-
tipText: { type: String, default: "" },
|
|
46
|
-
fileMaxSize: { type: Number, default: 100 },
|
|
47
|
-
autoUpload: { type: Boolean, default: !0 }
|
|
48
|
-
},
|
|
49
|
-
emits: ["update:modelValue", "delete"],
|
|
50
|
-
setup(l, { expose: n, emit: F }) {
|
|
51
|
-
const { getAssetsFileName: m, getAssetsFilePath: v, downloadFile: B } = ye(), { t: g } = me(), b = F, s = l, R = {
|
|
52
|
-
image: /(gif|jpg|jpeg|png|pdf|bmp|webp|GIF|JPG|PDF|PNG|JPEG)$/,
|
|
53
|
-
word: /(doc|docx)$/,
|
|
54
|
-
pdf: /(pdf)$/,
|
|
55
|
-
excel: /(xls|xlsx)$/
|
|
56
|
-
};
|
|
57
|
-
let P = U(!1), j = U({}), A = U(!1), _ = U(null), V = null, y = oe({
|
|
58
|
-
get() {
|
|
59
|
-
return J(s.modelValue);
|
|
60
|
-
},
|
|
61
|
-
set(e) {
|
|
62
|
-
b("update:modelValue", e);
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
const O = (e) => {
|
|
66
|
-
const t = (y.value || []).map((r) => r.filePath);
|
|
67
|
-
if (e == 0)
|
|
68
|
-
return t;
|
|
69
|
-
let o = t.splice(e), i = t.splice(0, e);
|
|
70
|
-
return o.concat(i);
|
|
71
|
-
}, G = (e) => {
|
|
72
|
-
const t = e.substring(e.lastIndexOf(".") + 1);
|
|
73
|
-
let o = null;
|
|
74
|
-
return Object.keys(R).some((i) => {
|
|
75
|
-
if (R[i].test(t))
|
|
76
|
-
return o = i, !0;
|
|
77
|
-
}), o === null && (o = "file"), o;
|
|
78
|
-
}, W = (e) => e.map((t) => ({ uid: t.uid ?? Fe(), name: m(t), filePath: t, fileType: G(t), status: "success" })), J = (e) => {
|
|
79
|
-
const t = Array.isArray(e) ? e.map((o) => o.filePath) : e ? e.split(";") : [];
|
|
80
|
-
return W(t || []);
|
|
81
|
-
}, H = ({ name: e }) => {
|
|
82
|
-
const t = e.lastIndexOf("."), o = e.slice(t), i = s.accept.trim().split(",");
|
|
83
|
-
let r = !1;
|
|
84
|
-
return i.includes(o) && (r = !0), r = i.some((d) => d == "image/*" ? R.image.test(o) : d.startsWith(".") ? e.endsWith(d) : d === o), r || M({
|
|
85
|
-
title: `${g("act.tip")}`,
|
|
86
|
-
message: `【${e}】${g("act.uploadErrorTip")}`,
|
|
87
|
-
type: "warning",
|
|
88
|
-
duration: 2500
|
|
89
|
-
}), r;
|
|
90
|
-
}, K = (e, t, o) => {
|
|
91
|
-
V && (clearTimeout(V), V = null), V = setTimeout(() => {
|
|
92
|
-
e.call(this, t);
|
|
93
|
-
}, o);
|
|
94
|
-
}, Q = (e) => s.request({ url: s.action, method: "POST", data: e, headers: { "Content-Type": "application/x-www-form-urlencoded" } }), X = async (e) => {
|
|
95
|
-
try {
|
|
96
|
-
const t = e.filter((c) => c.status == "ready" && H(c)), o = y.value.length + t.length;
|
|
97
|
-
if (t.length === 0) {
|
|
98
|
-
_.value.clearFiles();
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
if (o > s.limit) {
|
|
102
|
-
M({
|
|
103
|
-
title: `${g("act.tip")}`,
|
|
104
|
-
message: `${g("act.uploadLimitTip")}`,
|
|
105
|
-
type: "warning",
|
|
106
|
-
duration: 2500
|
|
107
|
-
}), _.value.clearFiles();
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
if (!s.autoUpload) {
|
|
111
|
-
const c = t.map((T) => ({ ...T, filePath: null, status: "success" }));
|
|
112
|
-
b("update:modelValue", c), _.value.clearFiles();
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
P.value = !0;
|
|
116
|
-
const i = new FormData();
|
|
117
|
-
Object.keys(s.data).forEach((c) => {
|
|
118
|
-
i.append(c, s.data[c]);
|
|
119
|
-
}), t.forEach((c) => {
|
|
120
|
-
i.append(s.name, c.raw);
|
|
121
|
-
});
|
|
122
|
-
let { data: r } = await Q(i);
|
|
123
|
-
const d = s.multiple ? [...y.value.map((c) => c.filePath), ...r.filePaths || []].join(";") : [...r.filePaths || []].join(";");
|
|
124
|
-
_.value.clearFiles(), b("update:modelValue", d), P.value = !1;
|
|
125
|
-
} catch (t) {
|
|
126
|
-
_.value.clearFiles(), P.value = !1, console.error(t);
|
|
127
|
-
}
|
|
128
|
-
}, Y = (e, t) => {
|
|
129
|
-
K(X, t, 500);
|
|
130
|
-
}, E = (e, t) => {
|
|
131
|
-
const o = j.value[`tooltipRef${t}`];
|
|
132
|
-
A.value = o.scrollWidth <= Math.round(o.getBoundingClientRect().width);
|
|
133
|
-
}, Z = ({ filePath: e, name: t, uid: o }, i) => {
|
|
134
|
-
pe(() => {
|
|
135
|
-
document.querySelector(`.previewImage_${o}`).children[0].click();
|
|
136
|
-
});
|
|
137
|
-
}, ee = ({ filePath: e, name: t }) => {
|
|
138
|
-
B(s.request, e);
|
|
139
|
-
}, te = (e, t) => {
|
|
140
|
-
y.value = y.value.filter((o, i) => i !== t), b("delete", { data: e });
|
|
141
|
-
};
|
|
142
|
-
return n({ clearFiles: () => {
|
|
143
|
-
y.value = [], _.value.clearFiles();
|
|
144
|
-
} }), (e, t) => {
|
|
145
|
-
const o = w("upload-filled"), i = w("el-icon"), r = w("el-upload"), d = w("el-image"), c = w("el-tooltip"), T = w("el-button"), le = ne("loading");
|
|
146
|
-
return h(), N("div", Te, [
|
|
147
|
-
ae((h(), C(r, ie({
|
|
148
|
-
ref_key: "uploadRef",
|
|
149
|
-
ref: _,
|
|
150
|
-
action: "#",
|
|
151
|
-
drag: "",
|
|
152
|
-
accept: s.accept,
|
|
153
|
-
multiple: s.multiple,
|
|
154
|
-
"auto-upload": !1,
|
|
155
|
-
"show-file-list": !1,
|
|
156
|
-
"on-change": Y
|
|
157
|
-
}, e.$attrs, {
|
|
158
|
-
"element-loading-text": p(g)("act.uploadLoading")
|
|
159
|
-
}), {
|
|
160
|
-
tip: D(() => [
|
|
161
|
-
s.tipText ? L(e.$slots, "default", { key: 0 }, () => [
|
|
162
|
-
x("p", $e, I(s.tipText), 1)
|
|
163
|
-
], !0) : z("", !0)
|
|
164
|
-
]),
|
|
165
|
-
default: D(() => [
|
|
166
|
-
$(i, { class: "el-icon--upload" }, {
|
|
167
|
-
default: D(() => [
|
|
168
|
-
$(o)
|
|
169
|
-
]),
|
|
170
|
-
_: 1
|
|
171
|
-
}),
|
|
172
|
-
x("div", ke, [
|
|
173
|
-
se(I(p(g)("act.uploadText")), 1),
|
|
174
|
-
x("em", null, I(p(g)("act.clickUpload")), 1)
|
|
175
|
-
])
|
|
176
|
-
]),
|
|
177
|
-
_: 3
|
|
178
|
-
}, 16, ["accept", "multiple", "element-loading-text"])), [
|
|
179
|
-
[le, p(P)]
|
|
180
|
-
]),
|
|
181
|
-
L(e.$slots, "default", {}, () => [
|
|
182
|
-
(h(!0), N(ce, null, re(p(y), (u, k) => (h(), N("div", {
|
|
183
|
-
class: "file-list",
|
|
184
|
-
key: u.uid
|
|
185
|
-
}, [
|
|
186
|
-
x("div", be, [
|
|
187
|
-
u.fileType === "image" ? (h(), C(d, {
|
|
188
|
-
key: 0,
|
|
189
|
-
class: ue(["file-list-image", { [`previewImage_${u.uid}`]: !0 }]),
|
|
190
|
-
fit: "cover",
|
|
191
|
-
"preview-src-list": O(k),
|
|
192
|
-
"preview-teleported": "",
|
|
193
|
-
src: u.filePath
|
|
194
|
-
}, null, 8, ["class", "preview-src-list", "src"])) : (h(), C(d, {
|
|
195
|
-
key: 1,
|
|
196
|
-
class: "file-list-icon",
|
|
197
|
-
src: p(v)(`images/upload-${u.fileType}.png`)
|
|
198
|
-
}, null, 8, ["src"])),
|
|
199
|
-
$(c, {
|
|
200
|
-
effect: "dark",
|
|
201
|
-
content: u.name,
|
|
202
|
-
placement: "bottom-start",
|
|
203
|
-
disabled: p(A)
|
|
204
|
-
}, {
|
|
205
|
-
default: D(() => [
|
|
206
|
-
x("div", {
|
|
207
|
-
class: "el-file-name",
|
|
208
|
-
ref_for: !0,
|
|
209
|
-
ref: (f) => p(j)[`tooltipRef${k}`] = f,
|
|
210
|
-
onMouseenter: (f) => E(f, k),
|
|
211
|
-
onMouseleave: (f) => E(f, k)
|
|
212
|
-
}, I(u.name), 41, Pe)
|
|
213
|
-
]),
|
|
214
|
-
_: 2
|
|
215
|
-
}, 1032, ["content", "disabled"])
|
|
216
|
-
]),
|
|
217
|
-
x("div", Ve, [
|
|
218
|
-
u.fileType === "image" ? (h(), C(T, {
|
|
219
|
-
key: 0,
|
|
220
|
-
type: "primary",
|
|
221
|
-
size: "small",
|
|
222
|
-
icon: p(fe),
|
|
223
|
-
circle: "",
|
|
224
|
-
onClick: (f) => Z(u)
|
|
225
|
-
}, null, 8, ["icon", "onClick"])) : z("", !0),
|
|
226
|
-
$(T, {
|
|
227
|
-
type: "primary",
|
|
228
|
-
size: "small",
|
|
229
|
-
icon: p(ge),
|
|
230
|
-
circle: "",
|
|
231
|
-
onClick: (f) => ee(u)
|
|
232
|
-
}, null, 8, ["icon", "onClick"]),
|
|
233
|
-
$(T, {
|
|
234
|
-
type: "danger",
|
|
235
|
-
size: "small",
|
|
236
|
-
icon: p(_e),
|
|
237
|
-
circle: "",
|
|
238
|
-
onClick: (f) => te(u, k)
|
|
239
|
-
}, null, 8, ["icon", "onClick"])
|
|
240
|
-
])
|
|
241
|
-
]))), 128))
|
|
242
|
-
], !0)
|
|
243
|
-
]);
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
}, Ne = /* @__PURE__ */ de(Ue, [["__scopeId", "data-v-ba74316a"]]);
|
|
247
|
-
export {
|
|
248
|
-
Ne as default
|
|
249
|
-
};
|