act-plus 1.1.55 → 1.1.57
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 +2 -5
- package/act-plus.umd.cjs +78 -98
- package/lib/{dialogAddField-03dd89f3.js → dialogAddField-60cfebf1.js} +4 -6
- package/lib/{dialogConfigBtn-ef3ee544.js → dialogConfigBtn-cd2bc45e.js} +6 -6
- package/lib/{dialogSiteComponentsParams-9ec43656.js → dialogSiteComponentsParams-93e56ef4.js} +13 -13
- package/lib/index-05ace06d.js +293 -0
- package/lib/{index-0dfce03e.js → index-1a086cf9.js} +11 -13
- package/lib/{index-0fdb6943.js → index-3795bacd.js} +4 -6
- package/lib/index-5fa8f416.js +5929 -0
- package/lib/index-61ed059b.js +20475 -0
- package/lib/{index-c932841c.js → index-7c778ce0.js} +3 -5
- package/lib/{index-0565f321.js → index-9761529e.js} +3 -5
- package/lib/{index-1889e30b.js → index-9fcf56d6.js} +45 -47
- package/lib/index-b4e44c7a.js +147 -0
- package/lib/index-e2f2023d.js +35 -0
- package/lib/index-ee1ece16.js +378 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/index-2693b9c5.js +0 -62987
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { defineAsyncComponent as re, inject as E, reactive as de, ref as A, watch as se, resolveComponent as C, resolveDirective as ie, openBlock as r, createBlock as i, withCtx as a, createElementVNode as L, createVNode as l, unref as m, createTextVNode as S, withDirectives as me, createElementBlock as c, Fragment as y, renderList as g, createCommentVNode as U, toDisplayString as pe } from "vue";
|
|
2
|
-
import { _ as fe, U as M, F as be, k as ce, l as ye, S as Ce, T as ge, A as _e, C as Ve, m as ve } from "./index-
|
|
2
|
+
import { _ as fe, U as M, F as be, k as ce, l as ye, S as Ce, T as ge, A as _e, C as Ve, m as ve } from "./index-5fa8f416.js";
|
|
3
3
|
import "vue-router";
|
|
4
|
-
import "js-base64";
|
|
5
4
|
import "element-plus";
|
|
6
|
-
import "monaco-editor";
|
|
7
5
|
const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
|
|
8
6
|
__name: "dialogAddField",
|
|
9
7
|
props: {
|
|
@@ -13,7 +11,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
|
|
|
13
11
|
},
|
|
14
12
|
emits: ["update:visible", "refresh"],
|
|
15
13
|
setup(Q, { emit: I }) {
|
|
16
|
-
const K = re(() => import("./dialogSiteComponentsParams-
|
|
14
|
+
const K = re(() => import("./dialogSiteComponentsParams-93e56ef4.js")), h = I, P = Q, N = E("pageKey")(), O = E("conditionList")(), W = E("configData")();
|
|
17
15
|
let k = de((() => ({
|
|
18
16
|
btnLoading: !1,
|
|
19
17
|
showSiteComponentsParamsDialog: !1
|
|
@@ -935,7 +933,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
|
|
|
935
933
|
}, 8, ["model-value", "title"]);
|
|
936
934
|
};
|
|
937
935
|
}
|
|
938
|
-
},
|
|
936
|
+
}, Re = /* @__PURE__ */ fe(Ue, [["__scopeId", "data-v-7a6069a6"]]);
|
|
939
937
|
export {
|
|
940
|
-
|
|
938
|
+
Re as default
|
|
941
939
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { defineAsyncComponent as O, inject as N, computed as ue, reactive as ne, ref as q, watch as de, resolveComponent as y, resolveDirective as re, openBlock as d, createBlock as m, withCtx as e, createElementVNode as se, createVNode as l, unref as o, createTextVNode as U, withDirectives as ie, toDisplayString as A, createCommentVNode as C, createElementBlock as b, Fragment as f, renderList as _ } from "vue";
|
|
2
|
-
import { _ as me, B as pe, c as ce, d as be, e as fe, f as _e, g as ge, h as Ve, i as ye, j as he } from "./index-
|
|
2
|
+
import { _ as me, B as pe, c as ce, d as be, e as fe, f as _e, g as ge, h as Ve, i as ye, j as he } from "./index-5fa8f416.js";
|
|
3
3
|
import { useRoute as Ce } from "vue-router";
|
|
4
|
-
import "js-base64";
|
|
5
4
|
import "element-plus";
|
|
6
|
-
import "monaco-editor";
|
|
7
5
|
const ve = { class: "dialog-footer" }, Fe = {
|
|
8
6
|
__name: "dialogConfigBtn",
|
|
9
7
|
props: {
|
|
@@ -13,7 +11,7 @@ const ve = { class: "dialog-footer" }, Fe = {
|
|
|
13
11
|
},
|
|
14
12
|
emits: ["update:visible", "refresh"],
|
|
15
13
|
setup(x, { emit: D }) {
|
|
16
|
-
const P = O(() => import("./index-
|
|
14
|
+
const P = O(() => import("./index-1a086cf9.js")), E = O(() => import("./index-61ed059b.js")), W = Ce(), R = N("request"), I = D, T = x, Y = ue(() => W.params.key);
|
|
17
15
|
let k = ne((() => ({
|
|
18
16
|
btnLoading: !1
|
|
19
17
|
}))());
|
|
@@ -74,6 +72,8 @@ const ve = { class: "dialog-footer" }, Fe = {
|
|
|
74
72
|
width: "1200",
|
|
75
73
|
draggable: "",
|
|
76
74
|
overflow: "",
|
|
75
|
+
"append-to-body": "",
|
|
76
|
+
"append-to": "body",
|
|
77
77
|
"close-on-click-modal": !1,
|
|
78
78
|
"before-close": Z
|
|
79
79
|
}, {
|
|
@@ -802,7 +802,7 @@ const ve = { class: "dialog-footer" }, Fe = {
|
|
|
802
802
|
}, 8, ["model-value", "title"]);
|
|
803
803
|
};
|
|
804
804
|
}
|
|
805
|
-
},
|
|
805
|
+
}, Se = /* @__PURE__ */ me(Fe, [["__scopeId", "data-v-ca54e816"]]);
|
|
806
806
|
export {
|
|
807
|
-
|
|
807
|
+
Se as default
|
|
808
808
|
};
|
package/lib/{dialogSiteComponentsParams-9ec43656.js → dialogSiteComponentsParams-93e56ef4.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineAsyncComponent as _, ref as
|
|
2
|
-
const B = { class: "dialog-footer" },
|
|
1
|
+
import { defineAsyncComponent as _, ref as C, watch as y, resolveComponent as u, openBlock as k, createBlock as w, withCtx as a, createElementVNode as x, createVNode as s, createTextVNode as m, unref as p, isRef as S } from "vue";
|
|
2
|
+
const B = { class: "dialog-footer" }, A = {
|
|
3
3
|
__name: "dialogSiteComponentsParams",
|
|
4
4
|
props: {
|
|
5
5
|
visible: { type: Boolean, default: !1 },
|
|
@@ -8,9 +8,9 @@ const B = { class: "dialog-footer" }, h = {
|
|
|
8
8
|
},
|
|
9
9
|
emits: ["update:visible", "refresh", "update:modelValue"],
|
|
10
10
|
setup(f, { emit: c }) {
|
|
11
|
-
const v = _(() => import("./index-
|
|
12
|
-
let t =
|
|
13
|
-
|
|
11
|
+
const v = _(() => import("./index-61ed059b.js")), n = c, o = f;
|
|
12
|
+
let t = C();
|
|
13
|
+
y(
|
|
14
14
|
() => o.visible,
|
|
15
15
|
async (l, e) => {
|
|
16
16
|
l && (t.value = o.modelValue);
|
|
@@ -25,7 +25,7 @@ const B = { class: "dialog-footer" }, h = {
|
|
|
25
25
|
};
|
|
26
26
|
return (l, e) => {
|
|
27
27
|
const r = u("el-button"), g = u("el-dialog");
|
|
28
|
-
return k(),
|
|
28
|
+
return k(), w(g, {
|
|
29
29
|
"model-value": o.visible,
|
|
30
30
|
title: o.title,
|
|
31
31
|
top: "5vh",
|
|
@@ -36,10 +36,10 @@ const B = { class: "dialog-footer" }, h = {
|
|
|
36
36
|
"before-close": b
|
|
37
37
|
}, {
|
|
38
38
|
footer: a(() => [
|
|
39
|
-
|
|
39
|
+
x("span", B, [
|
|
40
40
|
s(r, { onClick: d }, {
|
|
41
41
|
default: a(() => e[2] || (e[2] = [
|
|
42
|
-
|
|
42
|
+
m("取消")
|
|
43
43
|
])),
|
|
44
44
|
_: 1
|
|
45
45
|
}),
|
|
@@ -48,17 +48,17 @@ const B = { class: "dialog-footer" }, h = {
|
|
|
48
48
|
onClick: e[1] || (e[1] = (i) => V())
|
|
49
49
|
}, {
|
|
50
50
|
default: a(() => e[3] || (e[3] = [
|
|
51
|
-
|
|
51
|
+
m("保存")
|
|
52
52
|
])),
|
|
53
53
|
_: 1
|
|
54
54
|
})
|
|
55
55
|
])
|
|
56
56
|
]),
|
|
57
57
|
default: a(() => [
|
|
58
|
-
s(
|
|
59
|
-
modelValue:
|
|
58
|
+
s(p(v), {
|
|
59
|
+
modelValue: p(t),
|
|
60
60
|
"onUpdate:modelValue": e[0] || (e[0] = (i) => S(t) ? t.value = i : t = i),
|
|
61
|
-
|
|
61
|
+
height: 600
|
|
62
62
|
}, null, 8, ["modelValue"])
|
|
63
63
|
]),
|
|
64
64
|
_: 1
|
|
@@ -67,5 +67,5 @@ const B = { class: "dialog-footer" }, h = {
|
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
A as default
|
|
71
71
|
};
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import { defineComponent as L, openBlock as d, createElementBlock as T, createElementVNode as _, ref as D, computed as oe, resolveComponent as F, resolveDirective as ne, withDirectives as ie, createBlock as U, mergeProps as se, unref as p, withCtx as z, renderSlot as j, toDisplayString as I, createCommentVNode as A, createVNode as $, createTextVNode as re, Fragment as ce, renderList as ue, normalizeClass as pe, nextTick as de } from "vue";
|
|
2
|
+
import { ElNotification as E } from "element-plus";
|
|
3
|
+
import { _ as me, u as _e, n as fe } from "./index-5fa8f416.js";
|
|
4
|
+
import "vue-router";
|
|
5
|
+
/*! Element Plus Icons Vue v2.3.1 */
|
|
6
|
+
var ge = /* @__PURE__ */ L({
|
|
7
|
+
name: "Delete",
|
|
8
|
+
__name: "delete",
|
|
9
|
+
setup(l) {
|
|
10
|
+
return (a, f) => (d(), T("svg", {
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
viewBox: "0 0 1024 1024"
|
|
13
|
+
}, [
|
|
14
|
+
_("path", {
|
|
15
|
+
fill: "currentColor",
|
|
16
|
+
d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
|
|
17
|
+
})
|
|
18
|
+
]));
|
|
19
|
+
}
|
|
20
|
+
}), ve = ge, he = /* @__PURE__ */ L({
|
|
21
|
+
name: "Download",
|
|
22
|
+
__name: "download",
|
|
23
|
+
setup(l) {
|
|
24
|
+
return (a, f) => (d(), T("svg", {
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
+
viewBox: "0 0 1024 1024"
|
|
27
|
+
}, [
|
|
28
|
+
_("path", {
|
|
29
|
+
fill: "currentColor",
|
|
30
|
+
d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"
|
|
31
|
+
})
|
|
32
|
+
]));
|
|
33
|
+
}
|
|
34
|
+
}), ye = he, we = /* @__PURE__ */ L({
|
|
35
|
+
name: "ZoomIn",
|
|
36
|
+
__name: "zoom-in",
|
|
37
|
+
setup(l) {
|
|
38
|
+
return (a, f) => (d(), T("svg", {
|
|
39
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
40
|
+
viewBox: "0 0 1024 1024"
|
|
41
|
+
}, [
|
|
42
|
+
_("path", {
|
|
43
|
+
fill: "currentColor",
|
|
44
|
+
d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"
|
|
45
|
+
})
|
|
46
|
+
]));
|
|
47
|
+
}
|
|
48
|
+
}), xe = we;
|
|
49
|
+
let S;
|
|
50
|
+
const Fe = new Uint8Array(16);
|
|
51
|
+
function Te() {
|
|
52
|
+
if (!S && (S = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !S))
|
|
53
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
54
|
+
return S(Fe);
|
|
55
|
+
}
|
|
56
|
+
const n = [];
|
|
57
|
+
for (let l = 0; l < 256; ++l)
|
|
58
|
+
n.push((l + 256).toString(16).slice(1));
|
|
59
|
+
function Ve(l, a = 0) {
|
|
60
|
+
return n[l[a + 0]] + n[l[a + 1]] + n[l[a + 2]] + n[l[a + 3]] + "-" + n[l[a + 4]] + n[l[a + 5]] + "-" + n[l[a + 6]] + n[l[a + 7]] + "-" + n[l[a + 8]] + n[l[a + 9]] + "-" + n[l[a + 10]] + n[l[a + 11]] + n[l[a + 12]] + n[l[a + 13]] + n[l[a + 14]] + n[l[a + 15]];
|
|
61
|
+
}
|
|
62
|
+
const ke = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), H = {
|
|
63
|
+
randomUUID: ke
|
|
64
|
+
};
|
|
65
|
+
function $e(l, a, f) {
|
|
66
|
+
if (H.randomUUID && !a && !l)
|
|
67
|
+
return H.randomUUID();
|
|
68
|
+
l = l || {};
|
|
69
|
+
const g = l.random || (l.rng || Te)();
|
|
70
|
+
if (g[6] = g[6] & 15 | 64, g[8] = g[8] & 63 | 128, a) {
|
|
71
|
+
f = f || 0;
|
|
72
|
+
for (let x = 0; x < 16; ++x)
|
|
73
|
+
a[f + x] = g[x];
|
|
74
|
+
return a;
|
|
75
|
+
}
|
|
76
|
+
return Ve(g);
|
|
77
|
+
}
|
|
78
|
+
const be = { class: "upload-container" }, Ce = { class: "el-upload__text" }, Pe = { class: "tip-text" }, De = { class: "file-list-l" }, Ue = ["onMouseenter", "onMouseleave"], ze = { class: "el-file-operate" }, Ie = {
|
|
79
|
+
__name: "index",
|
|
80
|
+
props: {
|
|
81
|
+
request: { type: Function, required: !0, default: null },
|
|
82
|
+
modelValue: { type: [Array, String], default: [] },
|
|
83
|
+
action: { type: String, default: "/api/v1/utils/uploadFiles" },
|
|
84
|
+
data: { type: Object, default: () => ({ uploadFileType: 1 }) },
|
|
85
|
+
name: { type: String, default: "files" },
|
|
86
|
+
multiple: { type: Boolean, default: !0 },
|
|
87
|
+
limit: { type: Number, default: 9 },
|
|
88
|
+
accept: { type: String, default: "*" },
|
|
89
|
+
tipText: { type: String, default: "" },
|
|
90
|
+
fileMaxSize: { type: Number, default: 100 },
|
|
91
|
+
autoUpload: { type: Boolean, default: !0 }
|
|
92
|
+
},
|
|
93
|
+
emits: ["update:modelValue", "delete"],
|
|
94
|
+
setup(l, { expose: a, emit: f }) {
|
|
95
|
+
const { getAssetsFileName: g, getAssetsFilePath: x, downloadFile: O } = fe(), { t: h } = _e(), b = f, s = l, R = {
|
|
96
|
+
image: /(gif|jpg|jpeg|png|pdf|bmp|webp|GIF|JPG|PDF|PNG|JPEG)$/,
|
|
97
|
+
word: /(doc|docx)$/,
|
|
98
|
+
pdf: /(pdf)$/,
|
|
99
|
+
excel: /(xls|xlsx)$/
|
|
100
|
+
};
|
|
101
|
+
let C = D(!1), M = D({}), B = D(!1), y = D(null), P = null, w = oe({
|
|
102
|
+
get() {
|
|
103
|
+
return J(s.modelValue);
|
|
104
|
+
},
|
|
105
|
+
set(e) {
|
|
106
|
+
b("update:modelValue", e);
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
const q = (e) => {
|
|
110
|
+
const t = (w.value || []).map((c) => c.filePath);
|
|
111
|
+
if (e == 0)
|
|
112
|
+
return t;
|
|
113
|
+
let o = t.splice(e), i = t.splice(0, e);
|
|
114
|
+
return o.concat(i);
|
|
115
|
+
}, G = (e) => {
|
|
116
|
+
const t = e.substring(e.lastIndexOf(".") + 1);
|
|
117
|
+
let o = null;
|
|
118
|
+
return Object.keys(R).some((i) => {
|
|
119
|
+
if (R[i].test(t))
|
|
120
|
+
return o = i, !0;
|
|
121
|
+
}), o === null && (o = "file"), o;
|
|
122
|
+
}, W = (e) => e.map((t) => ({ uid: t.uid ?? $e(), name: g(t), filePath: t, fileType: G(t), status: "success" })), J = (e) => {
|
|
123
|
+
const t = Array.isArray(e) ? e.map((o) => o.filePath) : e ? e.split(";") : [];
|
|
124
|
+
return W(t || []);
|
|
125
|
+
}, Z = ({ name: e }) => {
|
|
126
|
+
const t = e.lastIndexOf("."), o = e.slice(t), i = s.accept.trim().split(",");
|
|
127
|
+
let c = !1;
|
|
128
|
+
return i.includes(o) && (c = !0), c = i.some((m) => m == "image/*" ? R.image.test(o) : m.startsWith(".") ? e.endsWith(m) : m === o), c || E({
|
|
129
|
+
title: `${h("act.tip")}`,
|
|
130
|
+
message: `【${e}】${h("act.uploadErrorTip")}`,
|
|
131
|
+
type: "warning",
|
|
132
|
+
duration: 2500
|
|
133
|
+
}), c;
|
|
134
|
+
}, K = (e, t, o) => {
|
|
135
|
+
P && (clearTimeout(P), P = null), P = setTimeout(() => {
|
|
136
|
+
e.call(this, t);
|
|
137
|
+
}, o);
|
|
138
|
+
}, Q = (e) => s.request({ url: s.action, method: "POST", data: e, headers: { "Content-Type": "application/x-www-form-urlencoded" } }), X = async (e) => {
|
|
139
|
+
try {
|
|
140
|
+
const t = e.filter((r) => r.status == "ready" && Z(r)), o = w.value.length + t.length;
|
|
141
|
+
if (t.length === 0) {
|
|
142
|
+
y.value.clearFiles();
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
if (o > s.limit) {
|
|
146
|
+
E({
|
|
147
|
+
title: `${h("act.tip")}`,
|
|
148
|
+
message: `${h("act.uploadLimitTip")}`,
|
|
149
|
+
type: "warning",
|
|
150
|
+
duration: 2500
|
|
151
|
+
}), y.value.clearFiles();
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
if (!s.autoUpload) {
|
|
155
|
+
const r = t.map((V) => ({ ...V, filePath: null, status: "success" }));
|
|
156
|
+
b("update:modelValue", r), y.value.clearFiles();
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
C.value = !0;
|
|
160
|
+
const i = new FormData();
|
|
161
|
+
Object.keys(s.data).forEach((r) => {
|
|
162
|
+
i.append(r, s.data[r]);
|
|
163
|
+
}), t.forEach((r) => {
|
|
164
|
+
i.append(s.name, r.raw);
|
|
165
|
+
});
|
|
166
|
+
let { data: c } = await Q(i);
|
|
167
|
+
const m = s.multiple ? [...w.value.map((r) => r.filePath), ...c.filePaths || []].join(";") : [...c.filePaths || []].join(";");
|
|
168
|
+
y.value.clearFiles(), b("update:modelValue", m), C.value = !1;
|
|
169
|
+
} catch (t) {
|
|
170
|
+
y.value.clearFiles(), C.value = !1, console.error(t);
|
|
171
|
+
}
|
|
172
|
+
}, Y = (e, t) => {
|
|
173
|
+
K(X, t, 500);
|
|
174
|
+
}, N = (e, t) => {
|
|
175
|
+
const o = M.value[`tooltipRef${t}`];
|
|
176
|
+
B.value = o.scrollWidth <= Math.round(o.getBoundingClientRect().width);
|
|
177
|
+
}, ee = ({ filePath: e, name: t, uid: o }, i) => {
|
|
178
|
+
de(() => {
|
|
179
|
+
document.querySelector(`.previewImage_${o}`).children[0].click();
|
|
180
|
+
});
|
|
181
|
+
}, te = ({ filePath: e, name: t }) => {
|
|
182
|
+
O(s.request, e);
|
|
183
|
+
}, le = (e, t) => {
|
|
184
|
+
w.value = w.value.filter((o, i) => i !== t), b("delete", { data: e });
|
|
185
|
+
};
|
|
186
|
+
return a({ clearFiles: () => {
|
|
187
|
+
w.value = [], y.value.clearFiles();
|
|
188
|
+
} }), (e, t) => {
|
|
189
|
+
const o = F("upload-filled"), i = F("el-icon"), c = F("el-upload"), m = F("el-image"), r = F("el-tooltip"), V = F("el-button"), ae = ne("loading");
|
|
190
|
+
return d(), T("div", be, [
|
|
191
|
+
ie((d(), U(c, se({
|
|
192
|
+
ref_key: "uploadRef",
|
|
193
|
+
ref: y,
|
|
194
|
+
action: "#",
|
|
195
|
+
drag: "",
|
|
196
|
+
accept: s.accept,
|
|
197
|
+
multiple: s.multiple,
|
|
198
|
+
"auto-upload": !1,
|
|
199
|
+
"show-file-list": !1,
|
|
200
|
+
"on-change": Y
|
|
201
|
+
}, e.$attrs, {
|
|
202
|
+
"element-loading-text": p(h)("act.uploadLoading")
|
|
203
|
+
}), {
|
|
204
|
+
tip: z(() => [
|
|
205
|
+
s.tipText ? j(e.$slots, "default", { key: 0 }, () => [
|
|
206
|
+
_("p", Pe, I(s.tipText), 1)
|
|
207
|
+
], !0) : A("", !0)
|
|
208
|
+
]),
|
|
209
|
+
default: z(() => [
|
|
210
|
+
$(i, { class: "el-icon--upload" }, {
|
|
211
|
+
default: z(() => [
|
|
212
|
+
$(o)
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
}),
|
|
216
|
+
_("div", Ce, [
|
|
217
|
+
re(I(p(h)("act.uploadText")), 1),
|
|
218
|
+
_("em", null, I(p(h)("act.clickUpload")), 1)
|
|
219
|
+
])
|
|
220
|
+
]),
|
|
221
|
+
_: 3
|
|
222
|
+
}, 16, ["accept", "multiple", "element-loading-text"])), [
|
|
223
|
+
[ae, p(C)]
|
|
224
|
+
]),
|
|
225
|
+
j(e.$slots, "default", {}, () => [
|
|
226
|
+
(d(!0), T(ce, null, ue(p(w), (u, k) => (d(), T("div", {
|
|
227
|
+
class: "file-list",
|
|
228
|
+
key: u.uid
|
|
229
|
+
}, [
|
|
230
|
+
_("div", De, [
|
|
231
|
+
u.fileType === "image" ? (d(), U(m, {
|
|
232
|
+
key: 0,
|
|
233
|
+
class: pe(["file-list-image", { [`previewImage_${u.uid}`]: !0 }]),
|
|
234
|
+
fit: "cover",
|
|
235
|
+
"preview-src-list": q(k),
|
|
236
|
+
"preview-teleported": "",
|
|
237
|
+
src: u.filePath
|
|
238
|
+
}, null, 8, ["class", "preview-src-list", "src"])) : (d(), U(m, {
|
|
239
|
+
key: 1,
|
|
240
|
+
class: "file-list-icon",
|
|
241
|
+
src: p(x)(`images/upload-${u.fileType}.png`)
|
|
242
|
+
}, null, 8, ["src"])),
|
|
243
|
+
$(r, {
|
|
244
|
+
effect: "dark",
|
|
245
|
+
content: u.name,
|
|
246
|
+
placement: "bottom-start",
|
|
247
|
+
disabled: p(B)
|
|
248
|
+
}, {
|
|
249
|
+
default: z(() => [
|
|
250
|
+
_("div", {
|
|
251
|
+
class: "el-file-name",
|
|
252
|
+
ref_for: !0,
|
|
253
|
+
ref: (v) => p(M)[`tooltipRef${k}`] = v,
|
|
254
|
+
onMouseenter: (v) => N(v, k),
|
|
255
|
+
onMouseleave: (v) => N(v, k)
|
|
256
|
+
}, I(u.name), 41, Ue)
|
|
257
|
+
]),
|
|
258
|
+
_: 2
|
|
259
|
+
}, 1032, ["content", "disabled"])
|
|
260
|
+
]),
|
|
261
|
+
_("div", ze, [
|
|
262
|
+
u.fileType === "image" ? (d(), U(V, {
|
|
263
|
+
key: 0,
|
|
264
|
+
type: "primary",
|
|
265
|
+
size: "small",
|
|
266
|
+
icon: p(xe),
|
|
267
|
+
circle: "",
|
|
268
|
+
onClick: (v) => ee(u)
|
|
269
|
+
}, null, 8, ["icon", "onClick"])) : A("", !0),
|
|
270
|
+
$(V, {
|
|
271
|
+
type: "primary",
|
|
272
|
+
size: "small",
|
|
273
|
+
icon: p(ye),
|
|
274
|
+
circle: "",
|
|
275
|
+
onClick: (v) => te(u)
|
|
276
|
+
}, null, 8, ["icon", "onClick"]),
|
|
277
|
+
$(V, {
|
|
278
|
+
type: "danger",
|
|
279
|
+
size: "small",
|
|
280
|
+
icon: p(ve),
|
|
281
|
+
circle: "",
|
|
282
|
+
onClick: (v) => le(u, k)
|
|
283
|
+
}, null, 8, ["icon", "onClick"])
|
|
284
|
+
])
|
|
285
|
+
]))), 128))
|
|
286
|
+
], !0)
|
|
287
|
+
]);
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
}, Ne = /* @__PURE__ */ me(Ie, [["__scopeId", "data-v-f839bee6"]]);
|
|
291
|
+
export {
|
|
292
|
+
Ne as default
|
|
293
|
+
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { _ as P } from "./index-
|
|
1
|
+
import { ref as p, watch as h, resolveComponent as _, openBlock as r, createElementBlock as m, createVNode as v, unref as u, isRef as w, withCtx as f, createElementVNode as g, createBlock as C, createCommentVNode as N, createTextVNode as $, Fragment as B, renderList as E, normalizeClass as L } from "vue";
|
|
2
|
+
import { _ as P } from "./index-5fa8f416.js";
|
|
3
3
|
import "vue-router";
|
|
4
|
-
import "js-base64";
|
|
5
4
|
import "element-plus";
|
|
6
|
-
import "monaco-editor";
|
|
7
5
|
const R = { class: "select-icon-container" }, S = { class: "icon-list" }, j = ["onClick"], z = {
|
|
8
6
|
class: "icon-value",
|
|
9
7
|
slot: "reference"
|
|
@@ -20,7 +18,7 @@ const R = { class: "select-icon-container" }, S = { class: "icon-list" }, j = ["
|
|
|
20
18
|
emits: ["update:modelValue"],
|
|
21
19
|
setup(x, { emit: V }) {
|
|
22
20
|
const y = V, s = x;
|
|
23
|
-
let c =
|
|
21
|
+
let c = p(!1), n = p(-1), i = p([]);
|
|
24
22
|
const b = () => n.value == -1 ? "" : i.value[n.value];
|
|
25
23
|
h(
|
|
26
24
|
() => s.icons,
|
|
@@ -47,8 +45,8 @@ const R = { class: "select-icon-container" }, S = { class: "icon-list" }, j = ["
|
|
|
47
45
|
n.value = e, y("update:modelValue", b()), c.value = !1;
|
|
48
46
|
};
|
|
49
47
|
return (l, e) => {
|
|
50
|
-
const t =
|
|
51
|
-
return r(),
|
|
48
|
+
const t = _("a-svg-icon"), o = _("el-button"), I = _("el-popover");
|
|
49
|
+
return r(), m("div", R, [
|
|
52
50
|
v(I, {
|
|
53
51
|
"popper-class": "select-icon-popover",
|
|
54
52
|
placement: "bottom-start",
|
|
@@ -79,10 +77,10 @@ const R = { class: "select-icon-container" }, S = { class: "icon-list" }, j = ["
|
|
|
79
77
|
]),
|
|
80
78
|
default: f(() => [
|
|
81
79
|
g("ul", S, [
|
|
82
|
-
(r(!0),
|
|
83
|
-
class: L(["icon-item", { "icon-item-checked": u(n) ==
|
|
84
|
-
key:
|
|
85
|
-
onClick: (F) => k(a,
|
|
80
|
+
(r(!0), m(B, null, E(u(i), (a, d) => (r(), m("li", {
|
|
81
|
+
class: L(["icon-item", { "icon-item-checked": u(n) == d }]),
|
|
82
|
+
key: d,
|
|
83
|
+
onClick: (F) => k(a, d)
|
|
86
84
|
}, [
|
|
87
85
|
v(t, {
|
|
88
86
|
class: "icon-svg",
|
|
@@ -99,7 +97,7 @@ const R = { class: "select-icon-container" }, S = { class: "icon-list" }, j = ["
|
|
|
99
97
|
]);
|
|
100
98
|
};
|
|
101
99
|
}
|
|
102
|
-
},
|
|
100
|
+
}, D = /* @__PURE__ */ P(A, [["__scopeId", "data-v-308d02d4"]]);
|
|
103
101
|
export {
|
|
104
|
-
|
|
102
|
+
D as default
|
|
105
103
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { defineAsyncComponent as O, inject as K, ref as N, watch as Te, resolveComponent as _, resolveDirective as le, openBlock as u, createBlock as y, withCtx as D, createElementVNode as ae, createVNode as te, createTextVNode as J, toDisplayString as A, unref as r, withDirectives as oe, createElementBlock as k, Fragment as q, renderList as Q, mergeProps as F, createCommentVNode as se, resolveDynamicComponent as De, toRaw as Ke } from "vue";
|
|
2
|
-
import { _ as we, u as Ne, P as Pe, a as Ue, b as ke } from "./index-
|
|
2
|
+
import { _ as we, u as Ne, P as Pe, a as Ue, b as ke } from "./index-5fa8f416.js";
|
|
3
3
|
import { ElNotification as Se } from "element-plus";
|
|
4
4
|
import "vue-router";
|
|
5
|
-
import "js-base64";
|
|
6
|
-
import "monaco-editor";
|
|
7
5
|
const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
8
6
|
__name: "index",
|
|
9
7
|
props: {
|
|
@@ -13,7 +11,7 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
13
11
|
},
|
|
14
12
|
emits: ["update:visible", "refresh"],
|
|
15
13
|
setup(P, { emit: ie }) {
|
|
16
|
-
const re = O(() => import("./index-
|
|
14
|
+
const re = O(() => import("./index-e2f2023d.js")), de = O(() => import("./index-1a086cf9.js")), ne = O(() => import("./index-05ace06d.js")), ue = O(() => import("./index-ee1ece16.js")), { t: b } = Ne(), M = K("request"), ce = K("loadComponents"), w = K("formatDataType"), x = K("globalProps"), fe = K("stringToBoolean"), h = K("getFieldUiProps"), pe = K("disposeRequestData"), X = ie, f = P, S = N(!1), L = N(!1), E = N(null), R = N([]), t = N({}), j = N({}), me = (l) => l.formColumnCol == null ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, ye = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), be = async ({ node: l, resolve: p }, a) => {
|
|
17
15
|
const i = h(a), { label: m, value: n, children: g, isLeaf: o } = { ...ke, ...i.treeProps || {} };
|
|
18
16
|
if (l[o])
|
|
19
17
|
return p([]);
|
|
@@ -403,7 +401,7 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
403
401
|
}, 8, ["model-value", "title", "width"]);
|
|
404
402
|
};
|
|
405
403
|
}
|
|
406
|
-
},
|
|
404
|
+
}, xe = /* @__PURE__ */ we($e, [["__scopeId", "data-v-c6e7e23b"]]);
|
|
407
405
|
export {
|
|
408
|
-
|
|
406
|
+
xe as default
|
|
409
407
|
};
|