dform-designer 2.2.4 → 2.2.6
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/form/FormDesign.es.js +40480 -40283
- package/dist/form/designer.style.css +1 -1
- package/dist/plug/SetpPlug.es.js +154 -142
- package/dist/plug/plug.style.css +1 -1
- package/package.json +1 -1
package/dist/plug/SetpPlug.es.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
var Q = Object.defineProperty;
|
|
2
2
|
var Z = (e, n, r) => n in e ? Q(e, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[n] = r;
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as P, createVNode as
|
|
3
|
+
var T = (e, n, r) => Z(e, typeof n != "symbol" ? n + "" : n, r);
|
|
4
|
+
import { defineComponent as P, createVNode as D, Fragment as A, h as f, nextTick as G, computed as I, inject as K, resolveComponent as V, openBlock as N, createElementBlock as C, renderList as B, createElementVNode as j, normalizeStyle as Y, unref as q, toDisplayString as X, createTextVNode as ee, renderSlot as te, withCtx as ne, createCommentVNode as re } from "vue";
|
|
5
5
|
import { ElTag as ae, ElImage as F, ElIcon as L } from "element-plus";
|
|
6
6
|
import { Download as H } from "@element-plus/icons-vue";
|
|
7
7
|
const oe = (e, n) => (e.install = (r) => {
|
|
8
|
-
for (const
|
|
9
|
-
r.component(
|
|
10
|
-
}, e), se = BigInt(16224768e5), J = 5n, E = 5n, $ = 12n,
|
|
11
|
-
class
|
|
8
|
+
for (const o of [e, ...Object.values({})])
|
|
9
|
+
r.component(o.name, o);
|
|
10
|
+
}, e), se = BigInt(16224768e5), J = 5n, E = 5n, $ = 12n, le = -1n ^ -1n << J, ie = -1n ^ -1n << E, ue = $ + J + E, ce = $ + E, de = $, fe = -1n ^ -1n << $;
|
|
11
|
+
class me {
|
|
12
12
|
// 构造函数,接受数据中心 ID 和工作节点 ID 作为参数,同时初始化上一次的时间戳和序列号
|
|
13
13
|
constructor(n, r) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (n < 0n || n >
|
|
14
|
+
T(this, "dataCenterId");
|
|
15
|
+
T(this, "workerId");
|
|
16
|
+
T(this, "lastTimestamp");
|
|
17
|
+
T(this, "sequence");
|
|
18
|
+
if (n < 0n || n > le)
|
|
19
19
|
throw new Error("data center id is out of range");
|
|
20
|
-
if (r < 0n || r >
|
|
20
|
+
if (r < 0n || r > ie)
|
|
21
21
|
throw new Error("worker id is out of range");
|
|
22
22
|
this.dataCenterId = n, this.workerId = r, this.lastTimestamp = -1n, this.sequence = 0n;
|
|
23
23
|
}
|
|
@@ -26,7 +26,7 @@ class ge {
|
|
|
26
26
|
let n = BigInt(Date.now());
|
|
27
27
|
if (n < this.lastTimestamp)
|
|
28
28
|
throw new Error("clock moved backwards");
|
|
29
|
-
return n === this.lastTimestamp ? (this.sequence = this.sequence + 1n & fe, this.sequence === 0n && (n = this.waitNextMillisecond(n))) : this.sequence = 0n, this.lastTimestamp = n, (n - se <<
|
|
29
|
+
return n === this.lastTimestamp ? (this.sequence = this.sequence + 1n & fe, this.sequence === 0n && (n = this.waitNextMillisecond(n))) : this.sequence = 0n, this.lastTimestamp = n, (n - se << ue) + (this.dataCenterId << ce) + (this.workerId << de) + this.sequence;
|
|
30
30
|
}
|
|
31
31
|
// 等待下一毫秒的方法,返回一个 BigInt 类型的时间戳
|
|
32
32
|
waitNextMillisecond(n) {
|
|
@@ -35,8 +35,8 @@ class ge {
|
|
|
35
35
|
return n;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
new
|
|
39
|
-
const
|
|
38
|
+
new me(1n, 1n);
|
|
39
|
+
const ge = /* @__PURE__ */ P({
|
|
40
40
|
props: {
|
|
41
41
|
attr: {
|
|
42
42
|
type: Object
|
|
@@ -75,34 +75,34 @@ const me = /* @__PURE__ */ P({
|
|
|
75
75
|
const n = (t) => typeof t == "string" || typeof t == "number" || typeof t == "boolean", r = (t) => {
|
|
76
76
|
if (typeof t == "string" && t.trim().startsWith("[") && t.endsWith("]"))
|
|
77
77
|
try {
|
|
78
|
-
const
|
|
79
|
-
if (Array.isArray(
|
|
80
|
-
return
|
|
78
|
+
const a = JSON.parse(t);
|
|
79
|
+
if (Array.isArray(a))
|
|
80
|
+
return a.join("、");
|
|
81
81
|
} catch {
|
|
82
82
|
return t;
|
|
83
83
|
}
|
|
84
84
|
return Array.isArray(t) ? t.join("、") : n(t) ? t : JSON.stringify(t);
|
|
85
|
-
},
|
|
86
|
-
var t,
|
|
85
|
+
}, o = () => {
|
|
86
|
+
var t, a, d, i, x, p, u, h, b;
|
|
87
87
|
if (e.value === null || e.value === void 0 || e.value === "")
|
|
88
|
-
return e.showNull ?
|
|
88
|
+
return e.showNull ? f("div", {
|
|
89
89
|
class: "no-txt"
|
|
90
90
|
}) : null;
|
|
91
91
|
if (["Radio", "Checkbox", "Select"].includes(e.type))
|
|
92
|
-
return
|
|
92
|
+
return w();
|
|
93
93
|
switch (e.type) {
|
|
94
94
|
case "Sign":
|
|
95
95
|
case "Qrcode":
|
|
96
96
|
case "Barcode":
|
|
97
|
-
return
|
|
97
|
+
return s(e.value);
|
|
98
98
|
case "Upload":
|
|
99
99
|
if (typeof e.value == "string" && z(e.value)) {
|
|
100
100
|
const k = JSON.parse(e.value);
|
|
101
|
-
return
|
|
101
|
+
return l(k);
|
|
102
102
|
}
|
|
103
|
-
return
|
|
103
|
+
return l(e.value);
|
|
104
104
|
case "Editor":
|
|
105
|
-
return
|
|
105
|
+
return f("div", {
|
|
106
106
|
innerHTML: e.value || "",
|
|
107
107
|
style: {
|
|
108
108
|
maxHeight: "220px",
|
|
@@ -111,28 +111,28 @@ const me = /* @__PURE__ */ P({
|
|
|
111
111
|
class: "rich-text-content"
|
|
112
112
|
});
|
|
113
113
|
case "Number":
|
|
114
|
-
return
|
|
114
|
+
return g(e);
|
|
115
115
|
case "Amount":
|
|
116
|
-
return
|
|
116
|
+
return g(e);
|
|
117
117
|
case "Location":
|
|
118
|
-
return
|
|
118
|
+
return v(e.value ? c(e.value) : {});
|
|
119
119
|
case "SubTable":
|
|
120
120
|
return e.row[`${e.columnName}_ct`];
|
|
121
121
|
case "Related":
|
|
122
|
-
return
|
|
122
|
+
return m(e);
|
|
123
123
|
case "Formula":
|
|
124
124
|
return ye(e.value, e == null ? void 0 : e.attr);
|
|
125
125
|
case "Region":
|
|
126
|
-
return
|
|
126
|
+
return S(e.value, "/");
|
|
127
127
|
case "User":
|
|
128
|
-
return
|
|
128
|
+
return Se(e.value);
|
|
129
129
|
case "Role":
|
|
130
130
|
case "Dept":
|
|
131
|
-
return
|
|
131
|
+
return S(e.value, "、");
|
|
132
132
|
case "Cascader":
|
|
133
133
|
return e.row[`${(t = e == null ? void 0 : e.attr) == null ? void 0 : t.prop}_text`];
|
|
134
134
|
case "Date":
|
|
135
|
-
return (((
|
|
135
|
+
return (((d = (a = e == null ? void 0 : e.attr) == null ? void 0 : a.props) == null ? void 0 : d.type) === "daterange" || ((x = (i = e == null ? void 0 : e.attr) == null ? void 0 : i.props) == null ? void 0 : x.type) === "datetimerange") && Array.isArray(e.value) ? e.value.join(" - ") : we((u = (p = e == null ? void 0 : e.attr) == null ? void 0 : p.props) == null ? void 0 : u.type, e.value);
|
|
136
136
|
default:
|
|
137
137
|
return (b = (h = e == null ? void 0 : e.attr) == null ? void 0 : h.props) != null && b.showPassword ? "********" : r(e.value);
|
|
138
138
|
}
|
|
@@ -146,36 +146,36 @@ const me = /* @__PURE__ */ P({
|
|
|
146
146
|
name: ""
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
},
|
|
150
|
-
const
|
|
151
|
-
return
|
|
152
|
-
},
|
|
153
|
-
var
|
|
154
|
-
return t.row[`${t.columnName}_related`] ? t.row[`${t.columnName}_related`] : (
|
|
155
|
-
var
|
|
156
|
-
return
|
|
149
|
+
}, v = (t) => {
|
|
150
|
+
const a = [t.district, t.address, t.name].filter(Boolean);
|
|
151
|
+
return a.length ? a.join("") : "";
|
|
152
|
+
}, m = (t) => {
|
|
153
|
+
var a;
|
|
154
|
+
return t.row[`${t.columnName}_related`] ? t.row[`${t.columnName}_related`] : (a = t.row[`${t.columnName}_related_data`]) == null ? void 0 : a.map((d) => {
|
|
155
|
+
var i;
|
|
156
|
+
return d[((i = t.attr.props) == null ? void 0 : i.title) || t.attr.prop];
|
|
157
157
|
}).join("、");
|
|
158
|
-
},
|
|
159
|
-
var
|
|
160
|
-
let
|
|
161
|
-
return (
|
|
162
|
-
},
|
|
158
|
+
}, g = (t) => {
|
|
159
|
+
var d, i, x, p, u;
|
|
160
|
+
let a = "";
|
|
161
|
+
return (d = t.attr.props) != null && d.showPassword ? a = a + "********" : ((i = t.attr) != null && i.prefix && (a = a + ((x = t.attr) == null ? void 0 : x.prefix)), a = a + t.value, (p = t.attr) != null && p.suffix && (a = a + ((u = t.attr) == null ? void 0 : u.suffix))), a;
|
|
162
|
+
}, S = (t, a) => Array.isArray(t) ? t.filter(Boolean).join(a) : t || "", s = (t) => f(F, {
|
|
163
163
|
style: {
|
|
164
164
|
height: "80px"
|
|
165
165
|
},
|
|
166
166
|
src: t,
|
|
167
167
|
previewSrcList: [t],
|
|
168
168
|
previewTeleported: !0,
|
|
169
|
-
onContextmenu: (
|
|
169
|
+
onContextmenu: (a) => a.preventDefault(),
|
|
170
170
|
draggable: !1,
|
|
171
171
|
hideOnClickModal: !0
|
|
172
|
-
}),
|
|
173
|
-
const
|
|
174
|
-
const h =
|
|
172
|
+
}), l = (t) => {
|
|
173
|
+
const a = (u) => {
|
|
174
|
+
const h = u.match(/\.([a-zA-Z0-9]+)$/);
|
|
175
175
|
return h ? h[1].toLowerCase() : "jpg";
|
|
176
|
-
},
|
|
176
|
+
}, d = async (u, h) => {
|
|
177
177
|
try {
|
|
178
|
-
const b = await fetch(
|
|
178
|
+
const b = await fetch(u, {
|
|
179
179
|
mode: "cors",
|
|
180
180
|
headers: {
|
|
181
181
|
Accept: "image/*"
|
|
@@ -187,20 +187,20 @@ const me = /* @__PURE__ */ P({
|
|
|
187
187
|
document.body.removeChild(_), URL.revokeObjectURL(y);
|
|
188
188
|
}, 100);
|
|
189
189
|
} catch (b) {
|
|
190
|
-
console.error("下载失败:", b), window.open(
|
|
190
|
+
console.error("下载失败:", b), window.open(u, "_blank");
|
|
191
191
|
}
|
|
192
|
-
},
|
|
192
|
+
}, i = (u) => /\.(jpg|jpeg|png|gif|bmp|svg|webp)$/i.test(u), p = (Array.isArray(t) ? t : t ? [{
|
|
193
193
|
url: typeof t == "string" ? t : t.url || "",
|
|
194
194
|
name: t.name || ""
|
|
195
|
-
}] : []).map((
|
|
196
|
-
const b =
|
|
197
|
-
return
|
|
195
|
+
}] : []).map((u, h) => {
|
|
196
|
+
const b = a(u.url), k = u.name || `image_${h + 1}.${b}`;
|
|
197
|
+
return i(u.url) ? f("div", {
|
|
198
198
|
class: "thumbnail-item image-item",
|
|
199
199
|
key: `thumb-${h}`
|
|
200
|
-
}, [
|
|
200
|
+
}, [f("div", {
|
|
201
201
|
class: "image-wrapper"
|
|
202
202
|
}, [
|
|
203
|
-
|
|
203
|
+
f(F, {
|
|
204
204
|
class: "preview-image",
|
|
205
205
|
style: {
|
|
206
206
|
height: "80px",
|
|
@@ -209,11 +209,11 @@ const me = /* @__PURE__ */ P({
|
|
|
209
209
|
"max-width": "120px",
|
|
210
210
|
"object-fit": "cover"
|
|
211
211
|
},
|
|
212
|
-
src:
|
|
212
|
+
src: u.url,
|
|
213
213
|
// 小图禁用右键
|
|
214
214
|
onContextmenu: (y) => y.preventDefault(),
|
|
215
215
|
draggable: !1,
|
|
216
|
-
previewSrcList: [
|
|
216
|
+
previewSrcList: [u.url],
|
|
217
217
|
previewTeleported: !0,
|
|
218
218
|
hideOnClickModal: !0,
|
|
219
219
|
// 🔥 关键:预览弹窗加载后,给预览图也禁用右键
|
|
@@ -227,64 +227,64 @@ const me = /* @__PURE__ */ P({
|
|
|
227
227
|
}
|
|
228
228
|
}),
|
|
229
229
|
// 下载按钮受控
|
|
230
|
-
e.download !== !1 &&
|
|
230
|
+
e.download !== !1 && f("div", {
|
|
231
231
|
class: "image-overlay",
|
|
232
232
|
onMouseenter: (y) => y.currentTarget.style.opacity = "1",
|
|
233
233
|
onMouseleave: (y) => y.currentTarget.style.opacity = "0"
|
|
234
|
-
}, [
|
|
234
|
+
}, [f("div", {
|
|
235
235
|
class: "download-btn",
|
|
236
236
|
onClick: async (y) => {
|
|
237
|
-
y.stopPropagation(), await
|
|
237
|
+
y.stopPropagation(), await d(u.url, k);
|
|
238
238
|
}
|
|
239
|
-
}, [
|
|
239
|
+
}, [f(L, {
|
|
240
240
|
class: "download-icon"
|
|
241
|
-
}, [
|
|
242
|
-
])]) :
|
|
241
|
+
}, [f(H)])])])
|
|
242
|
+
])]) : f("div", {
|
|
243
243
|
class: "thumbnail-item file-item",
|
|
244
244
|
key: `file-${h}`
|
|
245
245
|
}, [
|
|
246
|
-
|
|
246
|
+
f("span", {
|
|
247
247
|
class: "file-name"
|
|
248
|
-
},
|
|
248
|
+
}, u.name || "未命名文件"),
|
|
249
249
|
// 文件下载按钮受控
|
|
250
|
-
e.download !== !1 &&
|
|
250
|
+
e.download !== !1 && f(L, {
|
|
251
251
|
class: "file-download-btn",
|
|
252
|
-
onClick: async () => await
|
|
253
|
-
}, [
|
|
252
|
+
onClick: async () => await d(u.url, k)
|
|
253
|
+
}, [f(H)])
|
|
254
254
|
]);
|
|
255
255
|
});
|
|
256
|
-
return
|
|
256
|
+
return f("div", {
|
|
257
257
|
class: "upload-preview"
|
|
258
|
-
},
|
|
259
|
-
},
|
|
258
|
+
}, p);
|
|
259
|
+
}, w = () => {
|
|
260
260
|
if (e.value === null || e.value === void 0) return null;
|
|
261
261
|
let t;
|
|
262
|
-
return e.value.indexOf("[") !== -1 ? t = JSON.parse(e.value) : t = Array.isArray(e.value) ? e.value : [e.value], t.map((
|
|
263
|
-
var
|
|
264
|
-
const
|
|
265
|
-
label: String(
|
|
262
|
+
return e.value.indexOf("[") !== -1 ? t = JSON.parse(e.value) : t = Array.isArray(e.value) ? e.value : [e.value], t.map((a) => {
|
|
263
|
+
var i;
|
|
264
|
+
const d = ((i = e.enum) == null ? void 0 : i.find((x) => String(x.value) === String(a))) || {
|
|
265
|
+
label: String(a)
|
|
266
266
|
};
|
|
267
|
-
return
|
|
267
|
+
return f(ae, {
|
|
268
268
|
class: "tagClass",
|
|
269
269
|
round: !0,
|
|
270
|
-
color: e.isColor ?
|
|
270
|
+
color: e.isColor ? d.color : void 0,
|
|
271
271
|
style: {
|
|
272
272
|
margin: "2px 5px 2px 0",
|
|
273
273
|
border: "none",
|
|
274
274
|
color: "#ffffff"
|
|
275
275
|
}
|
|
276
|
-
},
|
|
276
|
+
}, d.label);
|
|
277
277
|
});
|
|
278
278
|
};
|
|
279
279
|
return () => {
|
|
280
|
-
const t =
|
|
280
|
+
const t = o();
|
|
281
281
|
if (typeof t == "string" && t.includes("#~#")) {
|
|
282
|
-
const [
|
|
283
|
-
return
|
|
282
|
+
const [a, d] = t.split("#~#");
|
|
283
|
+
return D(A, null, [D("div", {
|
|
284
284
|
class: "item-detail"
|
|
285
|
-
}, [
|
|
285
|
+
}, [a]), D("div", {
|
|
286
286
|
class: "item-add"
|
|
287
|
-
}, [
|
|
287
|
+
}, [d])]);
|
|
288
288
|
}
|
|
289
289
|
return t;
|
|
290
290
|
};
|
|
@@ -292,26 +292,26 @@ const me = /* @__PURE__ */ P({
|
|
|
292
292
|
});
|
|
293
293
|
function we(e, n) {
|
|
294
294
|
const r = e.toLowerCase();
|
|
295
|
-
let
|
|
295
|
+
let o;
|
|
296
296
|
if (n instanceof Date)
|
|
297
|
-
|
|
297
|
+
o = n;
|
|
298
298
|
else if (typeof n == "string")
|
|
299
299
|
if (/^\d{1,2}:\d{2}(:\d{2})?$/.test(n)) {
|
|
300
|
-
const c = /* @__PURE__ */ new Date(), [
|
|
301
|
-
|
|
300
|
+
const c = /* @__PURE__ */ new Date(), [v, m, g] = n.split(":").map(Number);
|
|
301
|
+
o = new Date(c.getFullYear(), c.getMonth(), c.getDate(), v, m, g || 0);
|
|
302
302
|
} else
|
|
303
|
-
|
|
303
|
+
o = new Date(n), isNaN(o.getTime()) && (o = /* @__PURE__ */ new Date());
|
|
304
304
|
else
|
|
305
|
-
|
|
305
|
+
o = /* @__PURE__ */ new Date();
|
|
306
306
|
if (r === "daterange") {
|
|
307
|
-
const c = new Date(
|
|
308
|
-
return c.setDate(
|
|
307
|
+
const c = new Date(o);
|
|
308
|
+
return c.setDate(o.getDate() - 1), [M(c), M(o)];
|
|
309
309
|
}
|
|
310
310
|
if (r === "datetimerange") {
|
|
311
|
-
const c = new Date(
|
|
312
|
-
return c.setHours(0, 0, 0, 0), [O(c), O(
|
|
311
|
+
const c = new Date(o);
|
|
312
|
+
return c.setHours(0, 0, 0, 0), [O(c), O(o)];
|
|
313
313
|
}
|
|
314
|
-
return r === "datetime" ? O(
|
|
314
|
+
return r === "datetime" ? O(o) : r.includes("hh:mm:ss") ? U(o) : r.includes("hh:mm") ? he(o) : r === "month" ? `${o.getFullYear()}-${(o.getMonth() + 1).toString().padStart(2, "0")}` : r === "year" ? o.getFullYear().toString() : M(o);
|
|
315
315
|
}
|
|
316
316
|
function M(e) {
|
|
317
317
|
return [e.getFullYear(), (e.getMonth() + 1).toString().padStart(2, "0"), e.getDate().toString().padStart(2, "0")].join("-");
|
|
@@ -338,16 +338,16 @@ function z(e) {
|
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
const ye = (e, n) => {
|
|
341
|
-
var
|
|
341
|
+
var o, c, v, m, g, S;
|
|
342
342
|
let r = e;
|
|
343
|
-
return ((
|
|
344
|
-
},
|
|
343
|
+
return ((o = n == null ? void 0 : n.config) == null ? void 0 : o.prepend) === "prefix" && (r = ((c = n == null ? void 0 : n.config) == null ? void 0 : c.unit) || "" + r), ((v = n == null ? void 0 : n.config) == null ? void 0 : v.format) === "subtract" && (r = ve(e, (m = n == null ? void 0 : n.subtract) == null ? void 0 : m.format)), ((g = n == null ? void 0 : n.config) == null ? void 0 : g.prepend) === "suffix" && (r = r + ((S = n == null ? void 0 : n.config) == null ? void 0 : S.unit) || ""), r;
|
|
344
|
+
}, ve = (e, n = "YYYY-MM-DD HH:mm:ss") => {
|
|
345
345
|
if (!e) return "";
|
|
346
346
|
const r = new Date(Number(e));
|
|
347
347
|
if (isNaN(r.getTime())) return "";
|
|
348
|
-
const
|
|
349
|
-
return n.replace("YYYY", String(
|
|
350
|
-
},
|
|
348
|
+
const o = r.getFullYear(), c = String(r.getMonth() + 1).padStart(2, "0"), v = String(r.getDate()).padStart(2, "0"), m = String(r.getHours()).padStart(2, "0"), g = String(r.getMinutes()).padStart(2, "0"), S = String(r.getSeconds()).padStart(2, "0");
|
|
349
|
+
return n.replace("YYYY", String(o)).replace("MM", c).replace("DD", v).replace("HH", m).replace("mm", g).replace("ss", S);
|
|
350
|
+
}, Se = (e) => {
|
|
351
351
|
const n = (r) => r.includes("_") ? r.split("_")[0] : r;
|
|
352
352
|
if (e) {
|
|
353
353
|
if (z(e) && (e = JSON.parse(e)), Array.isArray(e))
|
|
@@ -362,12 +362,12 @@ const ye = (e, n) => {
|
|
|
362
362
|
class: "item-box"
|
|
363
363
|
}, _e = {
|
|
364
364
|
class: "title-txt"
|
|
365
|
-
},
|
|
365
|
+
}, pe = {
|
|
366
366
|
class: "item-content"
|
|
367
|
-
},
|
|
367
|
+
}, De = {
|
|
368
368
|
key: 0,
|
|
369
369
|
class: "link-box"
|
|
370
|
-
},
|
|
370
|
+
}, ke = /* @__PURE__ */ P({
|
|
371
371
|
name: "SetpPlug",
|
|
372
372
|
__name: "index",
|
|
373
373
|
props: {
|
|
@@ -376,72 +376,84 @@ const ye = (e, n) => {
|
|
|
376
376
|
},
|
|
377
377
|
setup(e) {
|
|
378
378
|
const n = e, r = I(() => {
|
|
379
|
-
var s,
|
|
380
|
-
return ((
|
|
381
|
-
}),
|
|
382
|
-
var s,
|
|
383
|
-
return ((
|
|
379
|
+
var s, l;
|
|
380
|
+
return ((l = (s = n.attr) == null ? void 0 : s.props) == null ? void 0 : l.title) || "title";
|
|
381
|
+
}), o = I(() => {
|
|
382
|
+
var s, l;
|
|
383
|
+
return ((l = (s = n.attr) == null ? void 0 : s.props) == null ? void 0 : l.state) || "status";
|
|
384
384
|
}), c = I(() => {
|
|
385
|
-
var
|
|
386
|
-
const s = (
|
|
385
|
+
var l, w;
|
|
386
|
+
const s = (w = (l = n.attr) == null ? void 0 : l.columns) == null ? void 0 : w.find((t) => t.prop === o.value);
|
|
387
387
|
return (s == null ? void 0 : s.enum) || [];
|
|
388
|
-
}),
|
|
389
|
-
var s,
|
|
390
|
-
return ((
|
|
391
|
-
const
|
|
392
|
-
return
|
|
388
|
+
}), v = I(() => {
|
|
389
|
+
var s, l;
|
|
390
|
+
return ((l = (s = n.attr) == null ? void 0 : s.columns) == null ? void 0 : l.filter((w) => {
|
|
391
|
+
const t = w.columnName ?? w.prop;
|
|
392
|
+
return t && t !== r.value && t !== o.value;
|
|
393
393
|
})) || [];
|
|
394
|
-
}),
|
|
394
|
+
}), m = I(() => {
|
|
395
|
+
var s, l;
|
|
396
|
+
return (l = (s = n.attr) == null ? void 0 : s.columns) == null ? void 0 : l.find((w) => w.prop === r.value);
|
|
397
|
+
}), g = (s) => c.value.find((w) => w.value === s) || {
|
|
395
398
|
color: "#909399",
|
|
396
399
|
label: ""
|
|
397
|
-
},
|
|
398
|
-
return (s,
|
|
399
|
-
const
|
|
400
|
-
return N(), C("div", be, [(N(!0), C(
|
|
401
|
-
key:
|
|
402
|
-
}, [
|
|
400
|
+
}, S = K("TableCellRenderer", ge);
|
|
401
|
+
return (s, l) => {
|
|
402
|
+
const w = V("ArrowRight"), t = V("el-icon");
|
|
403
|
+
return N(), C("div", be, [(N(!0), C(A, null, B(e.data, (a, d) => (N(), C(A, {
|
|
404
|
+
key: a.id || d
|
|
405
|
+
}, [j("div", xe, [j("div", {
|
|
403
406
|
class: "title-box",
|
|
404
407
|
style: Y({
|
|
405
|
-
background: g(
|
|
408
|
+
background: g(a[o.value]).color
|
|
406
409
|
})
|
|
407
|
-
}, [
|
|
410
|
+
}, [j("span", _e, [D(q(S), {
|
|
411
|
+
attr: m.value,
|
|
412
|
+
type: m.value.type,
|
|
413
|
+
value: a[m.value.prop],
|
|
414
|
+
enum: m.value.enum,
|
|
415
|
+
"is-color": m.value.isColor,
|
|
416
|
+
row: a,
|
|
417
|
+
"column-name": m.value.prop,
|
|
418
|
+
showNull: !1
|
|
419
|
+
}, null, 8, ["attr", "type", "value", "enum", "is-color", "row", "column-name"])])], 4), j("div", {
|
|
408
420
|
class: "item-state mg",
|
|
409
421
|
style: Y({
|
|
410
|
-
color: g(
|
|
422
|
+
color: g(a[o.value]).color
|
|
411
423
|
})
|
|
412
|
-
},
|
|
424
|
+
}, X(g(a[o.value]).label), 5), j("div", pe, [(N(!0), C(A, null, B(v.value, (i) => (N(), C("div", {
|
|
413
425
|
key: i.prop,
|
|
414
426
|
class: "mg"
|
|
415
|
-
}, [
|
|
427
|
+
}, [D(q(S), {
|
|
416
428
|
attr: i,
|
|
417
429
|
type: i.type,
|
|
418
|
-
value:
|
|
430
|
+
value: a[i.prop],
|
|
419
431
|
enum: i.enum,
|
|
420
432
|
"is-color": i.isColor,
|
|
421
|
-
row:
|
|
433
|
+
row: a,
|
|
422
434
|
"column-name": i.prop,
|
|
423
435
|
showNull: !1
|
|
424
|
-
}, null, 8, ["attr", "type", "value", "enum", "is-color", "row", "column-name"]),
|
|
436
|
+
}, null, 8, ["attr", "type", "value", "enum", "is-color", "row", "column-name"]), l[0] || (l[0] = ee(" ", -1))]))), 128))])]), d < e.data.length - 1 ? (N(), C("div", De, [te(s.$slots, "link-icon", {}, () => [D(t, {
|
|
425
437
|
size: "16"
|
|
426
438
|
}, {
|
|
427
|
-
default: ne(() => [
|
|
439
|
+
default: ne(() => [D(w)]),
|
|
428
440
|
_: 1
|
|
429
441
|
})], !0)])) : re("", !0)], 64))), 128))]);
|
|
430
442
|
};
|
|
431
443
|
}
|
|
432
|
-
}),
|
|
444
|
+
}), Ne = (e, n) => {
|
|
433
445
|
const r = e.__vccOpts || e;
|
|
434
|
-
for (const [
|
|
435
|
-
r[
|
|
446
|
+
for (const [o, c] of n)
|
|
447
|
+
r[o] = c;
|
|
436
448
|
return r;
|
|
437
|
-
},
|
|
449
|
+
}, Ce = /* @__PURE__ */ Ne(ke, [["__scopeId", "data-v-c1be2763"]]), R = oe(Ce), Te = (e) => {
|
|
438
450
|
e.component(R.name, R);
|
|
439
451
|
}, $e = {
|
|
440
|
-
install:
|
|
452
|
+
install: Te,
|
|
441
453
|
SetpPlug: R
|
|
442
454
|
};
|
|
443
455
|
export {
|
|
444
456
|
R as SetpPlug,
|
|
445
457
|
$e as default,
|
|
446
|
-
|
|
458
|
+
Te as install
|
|
447
459
|
};
|
package/dist/plug/plug.style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";body[data-v-
|
|
1
|
+
@charset "UTF-8";body[data-v-c1be2763]{height:100%;margin:0!important;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Segoe UI,Helvetica Neue,Helvetica,Hiragino Sans GB,Microsoft YaHei,Arial,sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}html[data-v-c1be2763],#app[data-v-c1be2763]{height:100%}[data-v-c1be2763],[data-v-c1be2763]:before,[data-v-c1be2763]:after{box-sizing:border-box}a[data-v-c1be2763],a[data-v-c1be2763]:focus,a[data-v-c1be2763]:hover{color:inherit;text-decoration:none;outline:none}div[data-v-c1be2763]:focus{outline:none}.clearfix[data-v-c1be2763]:after{display:table;clear:both;content:""}.text-center[data-v-c1be2763]{text-align:center}.no-padding[data-v-c1be2763]{padding:0!important}.flx-center[data-v-c1be2763]{display:flex;align-items:center;justify-content:center}.flx-justify-between[data-v-c1be2763]{display:flex;align-items:center;justify-content:space-between}.flx-align-center[data-v-c1be2763]{display:flex;align-items:center}.clearfix-after[data-v-c1be2763]{display:block;height:0;overflow:hidden;clear:both;content:""}.sle[data-v-c1be2763]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mle[data-v-c1be2763]{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.break-word[data-v-c1be2763]{word-break:break-all;word-wrap:break-word}[data-v-c1be2763]::-webkit-scrollbar{width:8px;height:8px}[data-v-c1be2763]::-webkit-scrollbar-thumb{background-color:#d3d3d3;border-radius:20px;box-shadow:inset 0 0 #fff}#nprogress .bar[data-v-c1be2763]{background:var(--df-color-primary)!important}#nprogress .spinner-icon[data-v-c1be2763]{border-top-color:var(--df-color-primary)!important;border-left-color:var(--df-color-primary)!important}#nprogress .peg[data-v-c1be2763]{box-shadow:0 0 10px var(--df-color-primary),0 0 5px var(--df-color-primary)!important}.main-maximize .aside-split[data-v-c1be2763],.main-maximize .df-aside[data-v-c1be2763],.main-maximize .df-header[data-v-c1be2763],.main-maximize .df-footer[data-v-c1be2763],.main-maximize .tabs-nav[data-v-c1be2763]{display:none!important}.antd-message[data-v-c1be2763]{padding:10px 13px!important;background:#fff!important;border-width:0!important;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d!important}.antd-message.df-message.is-closable .df-message__content[data-v-c1be2763]{padding-right:17px!important}.antd-message .df-message__content[data-v-c1be2763]{color:#000000d9!important;pointer-events:all!important;background-image:initial!important}.antd-message .df-message__icon[data-v-c1be2763]{margin-right:8px!important}.antd-message .df-message__closeBtn[data-v-c1be2763]{right:9px!important;border-radius:4px;outline:none;transition:background-color .2s,color .2s}.antd-message .df-message__closeBtn[data-v-c1be2763]:hover{background-color:#0000000f}.card[data-v-c1be2763]{box-sizing:border-box;padding:20px;overflow-x:hidden;background-color:var(--df-fill-color-blank);border:1px solid var(--df-border-color-light);border-radius:4px;box-shadow:0 0 12px #0000000d}.theme-color-hover[data-v-c1be2763]:hover{color:var(--df-color-primary)}.df-drawer .df-drawer__header[data-v-c1be2763]{padding:15px 20px 14px;margin-bottom:0;border-bottom:1px solid var(--df-border-color-lighter)}.df-drawer .df-drawer__footer[data-v-c1be2763]{border-top:1px solid var(--df-border-color-lighter)}.df-drawer .df-select[data-v-c1be2763]{width:100%}.df-drawer .drawer-multiColumn-form[data-v-c1be2763]{display:flex;flex-wrap:wrap}.df-drawer .drawer-multiColumn-form .df-form-item[data-v-c1be2763]{width:47%}.df-drawer .drawer-multiColumn-form .df-form-item[data-v-c1be2763]:nth-child(2n-1){margin-right:5%}.df-dialog .df-dialog__header[data-v-c1be2763]{border-bottom:1px solid var(--df-border-color-lighter)}.df-dialog .df-dialog__body[data-v-c1be2763]{padding-top:15px}.df-dialog .df-dialog__footer[data-v-c1be2763]{border-top:1px solid var(--df-border-color-lighter)}.m-5[data-v-c1be2763]{margin:5px}.mt-5[data-v-c1be2763]{margin-top:5px}.mb-5[data-v-c1be2763]{margin-bottom:5px}.ml-5[data-v-c1be2763]{margin-left:5px}.mr-5[data-v-c1be2763]{margin-right:5px}.p-5[data-v-c1be2763]{padding:5px}.pt-5[data-v-c1be2763]{padding-top:5px}.pb-5[data-v-c1be2763]{padding-bottom:5px}.pl-5[data-v-c1be2763]{padding-left:5px}.pr-5[data-v-c1be2763]{padding-right:5px}.m-10[data-v-c1be2763]{margin:10px}.mt-10[data-v-c1be2763]{margin-top:10px}.mb-10[data-v-c1be2763]{margin-bottom:10px}.ml-10[data-v-c1be2763]{margin-left:10px}.mr-10[data-v-c1be2763]{margin-right:10px}.p-10[data-v-c1be2763]{padding:10px}.pt-10[data-v-c1be2763]{padding-top:10px}.pb-10[data-v-c1be2763]{padding-bottom:10px}.pl-10[data-v-c1be2763]{padding-left:10px}.pr-10[data-v-c1be2763]{padding-right:10px}.m-15[data-v-c1be2763]{margin:15px}.mt-15[data-v-c1be2763]{margin-top:15px}.mb-15[data-v-c1be2763]{margin-bottom:15px}.ml-15[data-v-c1be2763]{margin-left:15px}.mr-15[data-v-c1be2763]{margin-right:15px}.p-15[data-v-c1be2763]{padding:15px}.pt-15[data-v-c1be2763]{padding-top:15px}.pb-15[data-v-c1be2763]{padding-bottom:15px}.pl-15[data-v-c1be2763]{padding-left:15px}.pr-15[data-v-c1be2763]{padding-right:15px}.m-20[data-v-c1be2763]{margin:20px}.mt-20[data-v-c1be2763]{margin-top:20px}.mb-20[data-v-c1be2763]{margin-bottom:20px}.ml-20[data-v-c1be2763]{margin-left:20px}.mr-20[data-v-c1be2763]{margin-right:20px}.p-20[data-v-c1be2763]{padding:20px}.pt-20[data-v-c1be2763]{padding-top:20px}.pb-20[data-v-c1be2763]{padding-bottom:20px}.pl-20[data-v-c1be2763]{padding-left:20px}.pr-20[data-v-c1be2763]{padding-right:20px}.m-25[data-v-c1be2763]{margin:25px}.mt-25[data-v-c1be2763]{margin-top:25px}.mb-25[data-v-c1be2763]{margin-bottom:25px}.ml-25[data-v-c1be2763]{margin-left:25px}.mr-25[data-v-c1be2763]{margin-right:25px}.p-25[data-v-c1be2763]{padding:25px}.pt-25[data-v-c1be2763]{padding-top:25px}.pb-25[data-v-c1be2763]{padding-bottom:25px}.pl-25[data-v-c1be2763]{padding-left:25px}.pr-25[data-v-c1be2763]{padding-right:25px}.m-30[data-v-c1be2763]{margin:30px}.mt-30[data-v-c1be2763]{margin-top:30px}.mb-30[data-v-c1be2763]{margin-bottom:30px}.ml-30[data-v-c1be2763]{margin-left:30px}.mr-30[data-v-c1be2763]{margin-right:30px}.p-30[data-v-c1be2763]{padding:30px}.pt-30[data-v-c1be2763]{padding-top:30px}.pb-30[data-v-c1be2763]{padding-bottom:30px}.pl-30[data-v-c1be2763]{padding-left:30px}.pr-30[data-v-c1be2763]{padding-right:30px}.fz-14[data-v-c1be2763]{font-size:14px}.fz-15[data-v-c1be2763]{font-size:15px}.fz-16[data-v-c1be2763]{font-size:16px}.fz-17[data-v-c1be2763]{font-size:17px}.fz-18[data-v-c1be2763]{font-size:18px}.fz-19[data-v-c1be2763]{font-size:19px}.fz-20[data-v-c1be2763]{font-size:20px}.fz-21[data-v-c1be2763]{font-size:21px}.fz-22[data-v-c1be2763]{font-size:22px}.fz-23[data-v-c1be2763]{font-size:23px}.fz-24[data-v-c1be2763]{font-size:24px}.mg[data-v-c1be2763]{text-align:left;margin:4px 0;white-space:nowrap;height:20px;line-height:20px}.setp-box[data-v-c1be2763]{display:flex;width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.setp-box .item-box[data-v-c1be2763]{width:160px;background:#fff0;overflow:hidden;padding:6px 8px;flex-shrink:0}.setp-box .item-box .title-box[data-v-c1be2763]{height:32px;background:#ffd164;border-radius:16px;overflow:hidden;display:flex;align-items:center;justify-content:center}.setp-box .item-box .title-box .title-txt[data-v-c1be2763]{height:20px;font-weight:500;font-size:14px;color:#fff;line-height:20px;overflow:hidden}.setp-box .item-box .item-state[data-v-c1be2763]{height:20px;font-weight:400;font-size:14px;color:#ffd164;line-height:20px;text-align:center;overflow:hidden}.setp-box .item-box .item-content[data-v-c1be2763]{display:flex;max-height:115px;overflow-y:auto;overflow-x:hidden;flex-direction:column;align-items:center;font-weight:400;font-size:14px;color:#5c5f66;line-height:20px}.setp-box .link-box[data-v-c1be2763]{margin-top:10px;width:16px;height:16px;color:#919191}
|