vue-2024-ui 0.2.1 → 0.2.2
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/index.es.js +578 -565
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { mergeModels as Xe, useModel as Ge, ref as le, nextTick as tt, onMounted as rt, computed as Ke, resolveComponent as A, openBlock as n, createElementBlock as x, Fragment as X, createElementVNode as N, createBlock as M, createCommentVNode as ye, unref as U, mergeProps as F, withCtx as b, renderSlot as $, renderList as
|
|
3
|
-
import { Plus as
|
|
4
|
-
import
|
|
5
|
-
import { Dexie as
|
|
6
|
-
var
|
|
1
|
+
import Lt, { ElForm as ft, ElButtonGroup as mt, ElButton as qe, ElPopover as gt, ElMessage as We, ElMessageBox as Ft, ElDialog as Ht, ElDrawer as Nt } from "element-plus";
|
|
2
|
+
import { h as Ee, mergeModels as Xe, useModel as Ge, ref as le, nextTick as tt, onMounted as rt, computed as Ke, resolveComponent as A, openBlock as n, createElementBlock as x, Fragment as X, createElementVNode as N, createBlock as M, createCommentVNode as ye, unref as U, mergeProps as F, withCtx as b, renderSlot as $, renderList as R, createTextVNode as Ae, toDisplayString as ke, createSlots as pe, createVNode as G, normalizeStyle as Oe, normalizeProps as $t, useSlots as xt, inject as Ct, useAttrs as Dt, onUnmounted as Wt, withModifiers as pt, resolveDynamicComponent as Ne, guardReactiveProps as Xt, Transition as Gt, withDirectives as Qt, vShow as Zt, onBeforeUnmount as Jt, normalizeClass as qt, watchEffect as Kt, onBeforeMount as el, getCurrentInstance as tl, watch as ll, createApp as al } from "vue";
|
|
3
|
+
import { CircleCheck as Ot, Refresh as It, Plus as rl, ZoomIn as ol, Delete as At, More as ul, Search as nl, Download as Bt, DocumentCopy as sl, View as il, Edit as dl, CirclePlus as cl, Setting as fl, FullScreen as ml, CopyDocument as pl } from "@element-plus/icons-vue";
|
|
4
|
+
import Yt from "sortablejs";
|
|
5
|
+
import { Dexie as vl } from "dexie";
|
|
6
|
+
var hl = {
|
|
7
7
|
name: "zh-cn",
|
|
8
8
|
el: {
|
|
9
9
|
breadcrumb: {
|
|
@@ -181,38 +181,38 @@ var nl = {
|
|
|
181
181
|
indicator: "幻灯片切换至索引 {index}"
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
},
|
|
185
|
-
function
|
|
184
|
+
}, yl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
185
|
+
function gl(c) {
|
|
186
186
|
return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var Ut = { exports: {} };
|
|
189
189
|
(function(c, i) {
|
|
190
190
|
(function(r, l) {
|
|
191
191
|
c.exports = l();
|
|
192
|
-
})(
|
|
193
|
-
var r = 1e3, l = 6e4, e = 36e5, d = "millisecond", D = "second", Y = "minute", V = "hour", E = "day", k = "week",
|
|
192
|
+
})(yl, function() {
|
|
193
|
+
var r = 1e3, l = 6e4, e = 36e5, d = "millisecond", D = "second", Y = "minute", V = "hour", E = "day", k = "week", z = "month", K = "quarter", ne = "year", S = "date", Q = "Invalid Date", fe = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, W = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, me = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(v) {
|
|
194
194
|
var m = ["th", "st", "nd", "rd"], a = v % 100;
|
|
195
195
|
return "[" + v + (m[(a - 20) % 10] || m[a] || m[0]) + "]";
|
|
196
196
|
} }, de = function(v, m, a) {
|
|
197
197
|
var C = String(v);
|
|
198
198
|
return !C || C.length >= m ? v : "" + Array(m + 1 - C.length).join(a) + v;
|
|
199
|
-
},
|
|
199
|
+
}, Ce = { s: de, z: function(v) {
|
|
200
200
|
var m = -v.utcOffset(), a = Math.abs(m), C = Math.floor(a / 60), g = a % 60;
|
|
201
201
|
return (m <= 0 ? "+" : "-") + de(C, 2, "0") + ":" + de(g, 2, "0");
|
|
202
202
|
}, m: function v(m, a) {
|
|
203
203
|
if (m.date() < a.date()) return -v(a, m);
|
|
204
|
-
var C = 12 * (a.year() - m.year()) + (a.month() - m.month()), g = m.clone().add(C,
|
|
204
|
+
var C = 12 * (a.year() - m.year()) + (a.month() - m.month()), g = m.clone().add(C, z), h = a - g < 0, q = m.clone().add(C + (h ? -1 : 1), z);
|
|
205
205
|
return +(-(C + (a - g) / (h ? g - q : q - g)) || 0);
|
|
206
206
|
}, a: function(v) {
|
|
207
207
|
return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
|
|
208
208
|
}, p: function(v) {
|
|
209
|
-
return { M:
|
|
209
|
+
return { M: z, y: ne, w: k, d: E, D: S, h: V, m: Y, s: D, ms: d, Q: K }[v] || String(v || "").toLowerCase().replace(/s$/, "");
|
|
210
210
|
}, u: function(v) {
|
|
211
211
|
return v === void 0;
|
|
212
212
|
} }, se = "en", oe = {};
|
|
213
213
|
oe[se] = me;
|
|
214
|
-
var ve = "$isDayjsObject",
|
|
215
|
-
return v instanceof
|
|
214
|
+
var ve = "$isDayjsObject", Me = function(v) {
|
|
215
|
+
return v instanceof Ie || !(!v || !v[ve]);
|
|
216
216
|
}, ee = function v(m, a, C) {
|
|
217
217
|
var g;
|
|
218
218
|
if (!m) return se;
|
|
@@ -222,19 +222,19 @@ var It = { exports: {} };
|
|
|
222
222
|
var q = m.split("-");
|
|
223
223
|
if (!g && q.length > 1) return v(q[0]);
|
|
224
224
|
} else {
|
|
225
|
-
var
|
|
226
|
-
oe[
|
|
225
|
+
var L = m.name;
|
|
226
|
+
oe[L] = m, g = L;
|
|
227
227
|
}
|
|
228
228
|
return !C && g && (se = g), g || !C && se;
|
|
229
229
|
}, ae = function(v, m) {
|
|
230
|
-
if (
|
|
230
|
+
if (Me(v)) return v.clone();
|
|
231
231
|
var a = typeof m == "object" ? m : {};
|
|
232
|
-
return a.date = v, a.args = arguments, new
|
|
233
|
-
}, te =
|
|
234
|
-
te.l = ee, te.i =
|
|
232
|
+
return a.date = v, a.args = arguments, new Ie(a);
|
|
233
|
+
}, te = Ce;
|
|
234
|
+
te.l = ee, te.i = Me, te.w = function(v, m) {
|
|
235
235
|
return ae(v, { locale: m.$L, utc: m.$u, x: m.$x, $offset: m.$offset });
|
|
236
236
|
};
|
|
237
|
-
var
|
|
237
|
+
var Ie = function() {
|
|
238
238
|
function v(a) {
|
|
239
239
|
this.$L = ee(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[ve] = !0;
|
|
240
240
|
}
|
|
@@ -248,8 +248,8 @@ var It = { exports: {} };
|
|
|
248
248
|
if (typeof g == "string" && !/Z$/i.test(g)) {
|
|
249
249
|
var q = g.match(fe);
|
|
250
250
|
if (q) {
|
|
251
|
-
var
|
|
252
|
-
return h ? new Date(Date.UTC(q[1],
|
|
251
|
+
var L = q[2] - 1 || 0, J = (q[7] || "0").substring(0, 3);
|
|
252
|
+
return h ? new Date(Date.UTC(q[1], L, q[3] || 1, q[4] || 0, q[5] || 0, q[6] || 0, J)) : new Date(q[1], L, q[3] || 1, q[4] || 0, q[5] || 0, q[6] || 0, J);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
return new Date(g);
|
|
@@ -275,20 +275,20 @@ var It = { exports: {} };
|
|
|
275
275
|
}, m.valueOf = function() {
|
|
276
276
|
return this.$d.getTime();
|
|
277
277
|
}, m.startOf = function(a, C) {
|
|
278
|
-
var g = this, h = !!te.u(C) || C, q = te.p(a),
|
|
279
|
-
var be = te.w(g.$u ? Date.UTC(g.$y, ge,
|
|
278
|
+
var g = this, h = !!te.u(C) || C, q = te.p(a), L = function(De, ge) {
|
|
279
|
+
var be = te.w(g.$u ? Date.UTC(g.$y, ge, De) : new Date(g.$y, ge, De), g);
|
|
280
280
|
return h ? be : be.endOf(E);
|
|
281
|
-
}, J = function(
|
|
282
|
-
return te.w(g.toDate()[
|
|
281
|
+
}, J = function(De, ge) {
|
|
282
|
+
return te.w(g.toDate()[De].apply(g.toDate("s"), (h ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ge)), g);
|
|
283
283
|
}, Z = this.$W, p = this.$M, f = this.$D, re = "set" + (this.$u ? "UTC" : "");
|
|
284
284
|
switch (q) {
|
|
285
285
|
case ne:
|
|
286
|
-
return h ?
|
|
287
|
-
case
|
|
288
|
-
return h ?
|
|
286
|
+
return h ? L(1, 0) : L(31, 11);
|
|
287
|
+
case z:
|
|
288
|
+
return h ? L(1, p) : L(0, p + 1);
|
|
289
289
|
case k:
|
|
290
290
|
var we = this.$locale().weekStart || 0, he = (Z < we ? Z + 7 : Z) - we;
|
|
291
|
-
return
|
|
291
|
+
return L(h ? f - he : f + (6 - he), p);
|
|
292
292
|
case E:
|
|
293
293
|
case S:
|
|
294
294
|
return J(re + "Hours", 0);
|
|
@@ -304,11 +304,11 @@ var It = { exports: {} };
|
|
|
304
304
|
}, m.endOf = function(a) {
|
|
305
305
|
return this.startOf(a, !1);
|
|
306
306
|
}, m.$set = function(a, C) {
|
|
307
|
-
var g, h = te.p(a), q = "set" + (this.$u ? "UTC" : ""),
|
|
308
|
-
if (h ===
|
|
307
|
+
var g, h = te.p(a), q = "set" + (this.$u ? "UTC" : ""), L = (g = {}, g[E] = q + "Date", g[S] = q + "Date", g[z] = q + "Month", g[ne] = q + "FullYear", g[V] = q + "Hours", g[Y] = q + "Minutes", g[D] = q + "Seconds", g[d] = q + "Milliseconds", g)[h], J = h === E ? this.$D + (C - this.$W) : C;
|
|
308
|
+
if (h === z || h === ne) {
|
|
309
309
|
var Z = this.clone().set(S, 1);
|
|
310
|
-
Z.$d[
|
|
311
|
-
} else
|
|
310
|
+
Z.$d[L](J), Z.init(), this.$d = Z.set(S, Math.min(this.$D, Z.daysInMonth())).$d;
|
|
311
|
+
} else L && this.$d[L](J);
|
|
312
312
|
return this.init(), this;
|
|
313
313
|
}, m.set = function(a, C) {
|
|
314
314
|
return this.clone().$set(a, C);
|
|
@@ -317,14 +317,14 @@ var It = { exports: {} };
|
|
|
317
317
|
}, m.add = function(a, C) {
|
|
318
318
|
var g, h = this;
|
|
319
319
|
a = Number(a);
|
|
320
|
-
var q = te.p(C),
|
|
320
|
+
var q = te.p(C), L = function(p) {
|
|
321
321
|
var f = ae(h);
|
|
322
322
|
return te.w(f.date(f.date() + Math.round(p * a)), h);
|
|
323
323
|
};
|
|
324
|
-
if (q ===
|
|
324
|
+
if (q === z) return this.set(z, this.$M + a);
|
|
325
325
|
if (q === ne) return this.set(ne, this.$y + a);
|
|
326
|
-
if (q === E) return
|
|
327
|
-
if (q === k) return
|
|
326
|
+
if (q === E) return L(1);
|
|
327
|
+
if (q === k) return L(7);
|
|
328
328
|
var J = (g = {}, g[Y] = l, g[V] = e, g[D] = r, g)[q] || 1, Z = this.$d.getTime() + a * J;
|
|
329
329
|
return te.w(Z, this);
|
|
330
330
|
}, m.subtract = function(a, C) {
|
|
@@ -332,17 +332,17 @@ var It = { exports: {} };
|
|
|
332
332
|
}, m.format = function(a) {
|
|
333
333
|
var C = this, g = this.$locale();
|
|
334
334
|
if (!this.isValid()) return g.invalidDate || Q;
|
|
335
|
-
var h = a || "YYYY-MM-DDTHH:mm:ssZ", q = te.z(this),
|
|
336
|
-
return ge && (ge[be] || ge(C, h)) ||
|
|
335
|
+
var h = a || "YYYY-MM-DDTHH:mm:ssZ", q = te.z(this), L = this.$H, J = this.$m, Z = this.$M, p = g.weekdays, f = g.months, re = g.meridiem, we = function(ge, be, Ve, Te) {
|
|
336
|
+
return ge && (ge[be] || ge(C, h)) || Ve[be].slice(0, Te);
|
|
337
337
|
}, he = function(ge) {
|
|
338
|
-
return te.s(
|
|
339
|
-
},
|
|
340
|
-
var
|
|
341
|
-
return
|
|
338
|
+
return te.s(L % 12 || 12, ge, "0");
|
|
339
|
+
}, De = re || function(ge, be, Ve) {
|
|
340
|
+
var Te = ge < 12 ? "AM" : "PM";
|
|
341
|
+
return Ve ? Te.toLowerCase() : Te;
|
|
342
342
|
};
|
|
343
343
|
return h.replace(W, function(ge, be) {
|
|
344
|
-
return be || function(
|
|
345
|
-
switch (
|
|
344
|
+
return be || function(Ve) {
|
|
345
|
+
switch (Ve) {
|
|
346
346
|
case "YY":
|
|
347
347
|
return String(C.$y).slice(-2);
|
|
348
348
|
case "YYYY":
|
|
@@ -368,17 +368,17 @@ var It = { exports: {} };
|
|
|
368
368
|
case "dddd":
|
|
369
369
|
return p[C.$W];
|
|
370
370
|
case "H":
|
|
371
|
-
return String(
|
|
371
|
+
return String(L);
|
|
372
372
|
case "HH":
|
|
373
|
-
return te.s(
|
|
373
|
+
return te.s(L, 2, "0");
|
|
374
374
|
case "h":
|
|
375
375
|
return he(1);
|
|
376
376
|
case "hh":
|
|
377
377
|
return he(2);
|
|
378
378
|
case "a":
|
|
379
|
-
return
|
|
379
|
+
return De(L, J, !0);
|
|
380
380
|
case "A":
|
|
381
|
-
return
|
|
381
|
+
return De(L, J, !1);
|
|
382
382
|
case "m":
|
|
383
383
|
return String(J);
|
|
384
384
|
case "mm":
|
|
@@ -398,14 +398,14 @@ var It = { exports: {} };
|
|
|
398
398
|
}, m.utcOffset = function() {
|
|
399
399
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
400
400
|
}, m.diff = function(a, C, g) {
|
|
401
|
-
var h, q = this,
|
|
401
|
+
var h, q = this, L = te.p(C), J = ae(a), Z = (J.utcOffset() - this.utcOffset()) * l, p = this - J, f = function() {
|
|
402
402
|
return te.m(q, J);
|
|
403
403
|
};
|
|
404
|
-
switch (
|
|
404
|
+
switch (L) {
|
|
405
405
|
case ne:
|
|
406
406
|
h = f() / 12;
|
|
407
407
|
break;
|
|
408
|
-
case
|
|
408
|
+
case z:
|
|
409
409
|
h = f();
|
|
410
410
|
break;
|
|
411
411
|
case K:
|
|
@@ -431,7 +431,7 @@ var It = { exports: {} };
|
|
|
431
431
|
}
|
|
432
432
|
return g ? h : te.a(h);
|
|
433
433
|
}, m.daysInMonth = function() {
|
|
434
|
-
return this.endOf(
|
|
434
|
+
return this.endOf(z).$D;
|
|
435
435
|
}, m.$locale = function() {
|
|
436
436
|
return oe[this.$L];
|
|
437
437
|
}, m.locale = function(a, C) {
|
|
@@ -449,20 +449,20 @@ var It = { exports: {} };
|
|
|
449
449
|
}, m.toString = function() {
|
|
450
450
|
return this.$d.toUTCString();
|
|
451
451
|
}, v;
|
|
452
|
-
}(), w =
|
|
453
|
-
return ae.prototype = w, [["$ms", d], ["$s", D], ["$m", Y], ["$H", V], ["$W", E], ["$M",
|
|
452
|
+
}(), w = Ie.prototype;
|
|
453
|
+
return ae.prototype = w, [["$ms", d], ["$s", D], ["$m", Y], ["$H", V], ["$W", E], ["$M", z], ["$y", ne], ["$D", S]].forEach(function(v) {
|
|
454
454
|
w[v[1]] = function(m) {
|
|
455
455
|
return this.$g(m, v[0], v[1]);
|
|
456
456
|
};
|
|
457
457
|
}), ae.extend = function(v, m) {
|
|
458
|
-
return v.$i || (v(m,
|
|
459
|
-
}, ae.locale = ee, ae.isDayjs =
|
|
458
|
+
return v.$i || (v(m, Ie, ae), v.$i = !0), ae;
|
|
459
|
+
}, ae.locale = ee, ae.isDayjs = Me, ae.unix = function(v) {
|
|
460
460
|
return ae(1e3 * v);
|
|
461
461
|
}, ae.en = oe[se], ae.Ls = oe, ae.p = {}, ae;
|
|
462
462
|
});
|
|
463
|
-
})(
|
|
464
|
-
var
|
|
465
|
-
const bt = /* @__PURE__ */
|
|
463
|
+
})(Ut);
|
|
464
|
+
var bl = Ut.exports;
|
|
465
|
+
const bt = /* @__PURE__ */ gl(bl), Rt = {
|
|
466
466
|
inline: !0,
|
|
467
467
|
type: "hidden",
|
|
468
468
|
"scroll-to-error": !0,
|
|
@@ -490,14 +490,16 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
490
490
|
disabled: !1,
|
|
491
491
|
label: "提交",
|
|
492
492
|
plain: !0,
|
|
493
|
-
hidden: !1
|
|
493
|
+
hidden: !1,
|
|
494
|
+
icon: () => Ee(Ot)
|
|
494
495
|
},
|
|
495
496
|
//表单重置按钮属性
|
|
496
497
|
reset: {
|
|
497
498
|
disabled: !1,
|
|
498
499
|
label: "重置",
|
|
499
500
|
hidden: !1,
|
|
500
|
-
plain: !0
|
|
501
|
+
plain: !0,
|
|
502
|
+
icon: () => Ee(It)
|
|
501
503
|
},
|
|
502
504
|
slots: {},
|
|
503
505
|
tabs: {
|
|
@@ -509,13 +511,13 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
509
511
|
for (const [l, e] of i)
|
|
510
512
|
r[l] = e;
|
|
511
513
|
return r;
|
|
512
|
-
},
|
|
514
|
+
}, $l = {
|
|
513
515
|
style: { display: "flex", width: "100%" },
|
|
514
516
|
class: "g-ctrl-container"
|
|
515
|
-
},
|
|
517
|
+
}, wl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, El = {
|
|
516
518
|
key: 19,
|
|
517
519
|
style: { position: "relative" }
|
|
518
|
-
},
|
|
520
|
+
}, _l = ["title"], kl = ["innerHTML"], Cl = ["innerHTML"], Dl = ["innerHTML"], Ml = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
519
521
|
__name: "g-ctrl",
|
|
520
522
|
props: /* @__PURE__ */ Xe(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
521
523
|
modelValue: { required: !0 },
|
|
@@ -523,11 +525,11 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
523
525
|
}),
|
|
524
526
|
emits: ["update:modelValue"],
|
|
525
527
|
setup(c) {
|
|
526
|
-
var
|
|
528
|
+
var Ie, w, v, m, a, C, g, h, q, L, J, Z;
|
|
527
529
|
const i = Ge(c, "modelValue"), r = c, l = le(r.item || {}), e = le(r.ctrlKey), d = le(r.ctrlType), D = le(r.model), Y = le([]), V = le([]), E = le(!1), k = le(!1);
|
|
528
|
-
!((
|
|
529
|
-
const
|
|
530
|
-
|
|
530
|
+
!((Ie = d.value) != null && Ie.startsWith("text")) && !((w = d.value) != null && w.startsWith("link")) && !((v = d.value) != null && v.startsWith("tag")) && !((m = d.value) != null && m.startsWith("div")) && !((a = d.value) != null && a.startsWith("span")) && !((C = d.value) != null && C.startsWith("avatar")) && ((g = l.value) != null && g.style || (l.value.style = { width: ((q = (h = l.value) == null ? void 0 : h.style) == null ? void 0 : q.width) || "100%" }));
|
|
531
|
+
const z = le({ display: "flex", flex: 1 }), K = r.t === "t" ? "center" : "flex-start", ne = ((L = l.value) == null ? void 0 : L.style) || {};
|
|
532
|
+
z.value = { ...z.value, justifyContent: K, ...ne };
|
|
531
533
|
const S = () => Object.keys(xt()).filter((p) => p.startsWith(`${r.t}-${e}-`)).map((p) => p.replace(`${r.t}-${e}-`, "")), Q = le({
|
|
532
534
|
multiple: !1,
|
|
533
535
|
"show-file-list": !1,
|
|
@@ -564,7 +566,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
564
566
|
filterable: !0,
|
|
565
567
|
remote: !!(l.value && l.value["remote-method"]),
|
|
566
568
|
...l.value
|
|
567
|
-
}),
|
|
569
|
+
}), Ce = le((p) => {
|
|
568
570
|
l.value["remote-method"](p, (f) => {
|
|
569
571
|
tt(() => {
|
|
570
572
|
V.value = f;
|
|
@@ -577,9 +579,9 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
577
579
|
if (typeof re == "string")
|
|
578
580
|
V.value = [{ label: re, value: i.value }];
|
|
579
581
|
else {
|
|
580
|
-
const we = re == null ? void 0 : re.map((he,
|
|
582
|
+
const we = re == null ? void 0 : re.map((he, De) => ({
|
|
581
583
|
...he,
|
|
582
|
-
value: he.value ?? he.label ??
|
|
584
|
+
value: he.value ?? he.label ?? De,
|
|
583
585
|
label: he.label || "未知选项"
|
|
584
586
|
}));
|
|
585
587
|
V.value = we || [];
|
|
@@ -592,30 +594,30 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
592
594
|
l.value.noSearch !== !0 && r.t === "q" && ((f = (p = D.value) == null ? void 0 : p.table) == null || f.load());
|
|
593
595
|
}, ve = (p) => {
|
|
594
596
|
p.preventDefault(), p.stopPropagation(), i.value = "";
|
|
595
|
-
},
|
|
597
|
+
}, Me = (p) => {
|
|
596
598
|
E.value = !0;
|
|
597
599
|
}, ee = (p) => {
|
|
598
600
|
p.preventDefault(), p.stopPropagation(), E.value = !0;
|
|
599
601
|
}, ae = le(null);
|
|
600
602
|
rt(async () => {
|
|
601
|
-
var re, we, he,
|
|
602
|
-
l.value && l.value["remote-method"] && (de.value["remote-method"] =
|
|
603
|
-
const p = (be,
|
|
604
|
-
typeof l.value.getDicts == "function" && se(
|
|
605
|
-
console.error(`Failed to load ${
|
|
603
|
+
var re, we, he, De, ge;
|
|
604
|
+
l.value && l.value["remote-method"] && (de.value["remote-method"] = Ce), (we = (re = D.value[e.value]) == null ? void 0 : re.options) != null && we.length && (V.value = D.value[e.value].options);
|
|
605
|
+
const p = (be, Ve = "options", Te = D.value[e.value]) => {
|
|
606
|
+
typeof l.value.getDicts == "function" && se(Ve).catch((Re) => {
|
|
607
|
+
console.error(`Failed to load ${Ve} for ${be}:`, Re);
|
|
606
608
|
});
|
|
607
609
|
};
|
|
608
|
-
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(d.value) && p(d.value), d.value ===
|
|
610
|
+
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(d.value) && p(d.value), d.value === _e.TREESELECT && await (async () => {
|
|
609
611
|
try {
|
|
610
612
|
typeof l.value.getDicts == "function" ? Y.value = await l.value.getDicts(r.formInfo) : Y.value = V.value;
|
|
611
|
-
} catch (
|
|
612
|
-
console.error("Failed to load data for tree-select:",
|
|
613
|
+
} catch (Ve) {
|
|
614
|
+
console.error("Failed to load data for tree-select:", Ve);
|
|
613
615
|
}
|
|
614
616
|
})(), r.t == "q") {
|
|
615
617
|
let be = l.value.type || d.value;
|
|
616
|
-
(be === void 0 || d.value === "input" || be ==
|
|
617
|
-
var
|
|
618
|
-
(
|
|
618
|
+
(be === void 0 || d.value === "input" || be == _e.NUMBER || be == _e.EMAIL || be == "url" || be == "text") && l.value.onKeyup == null && (l.value.onKeyup = (Ve) => {
|
|
619
|
+
var Te, Re;
|
|
620
|
+
(Ve.keyCode === 13 || Ve.key === "Enter") && ((Re = (Te = D.value) == null ? void 0 : Te.table) == null || Re.load());
|
|
619
621
|
}), [
|
|
620
622
|
"radio",
|
|
621
623
|
"switch",
|
|
@@ -632,20 +634,20 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
632
634
|
"datetime",
|
|
633
635
|
"datetimerange",
|
|
634
636
|
"week"
|
|
635
|
-
].includes(be) && l.value.onChange === void 0 && (l.value.onChange = (
|
|
636
|
-
var
|
|
637
|
-
(
|
|
637
|
+
].includes(be) && l.value.onChange === void 0 && (l.value.onChange = (Ve) => {
|
|
638
|
+
var Te, Re;
|
|
639
|
+
(Re = (Te = D.value) == null ? void 0 : Te.table) == null || Re.load();
|
|
638
640
|
});
|
|
639
641
|
}
|
|
640
|
-
d.value == "image" && (l.value.width && ((he = ae.value) != null && he.$el) && ae.value.$el.style.setProperty("--up-width", typeof l.value.width == "number" ? l.value.width + "px" : l.value.width), l.value.height && ((
|
|
642
|
+
d.value == "image" && (l.value.width && ((he = ae.value) != null && he.$el) && ae.value.$el.style.setProperty("--up-width", typeof l.value.width == "number" ? l.value.width + "px" : l.value.width), l.value.height && ((De = ae.value) != null && De.$el) && ae.value.$el.style.setProperty("--up-height", typeof l.value.height == "number" ? l.value.height + "px" : l.value.height), l.value.fontSize && ((ge = ae.value) != null && ge.$el) && ae.value.$el.style.setProperty("--up-font-size", typeof l.value.fontSize == "number" ? l.value.fontSize + "px" : l.value.fontSize));
|
|
641
643
|
});
|
|
642
644
|
const te = Ke(() => {
|
|
643
645
|
var p;
|
|
644
646
|
return l.value["file-list"] && l.value["file-list"].length ? (p = l.value["file-list"]) == null ? void 0 : p.map((f) => f == null ? void 0 : f.url) : [i.value];
|
|
645
647
|
});
|
|
646
648
|
return (p, f) => {
|
|
647
|
-
var lt, at, B, ue, _,
|
|
648
|
-
const re = A("el-image-viewer"), we = A("el-radio"), he = A("el-radio-group"),
|
|
649
|
+
var lt, at, B, ue, _, P;
|
|
650
|
+
const re = A("el-image-viewer"), we = A("el-radio"), he = A("el-radio-group"), De = A("el-radio-button"), ge = A("el-checkbox"), be = A("el-checkbox-group"), Ve = A("el-checkbox-button"), Te = A("g-select-option"), Re = A("el-option"), ot = A("el-select"), ut = A("el-tree-select"), nt = A("el-time-picker"), st = A("el-time-select"), it = A("el-date-picker"), dt = A("el-color-picker"), ct = A("el-rate"), t = A("el-slider"), o = A("el-switch"), s = A("el-transfer"), y = A("el-cascader"), T = A("el-icon"), O = A("el-image"), j = A("el-tooltip"), ce = A("el-upload"), $e = A("el-autocomplete"), Se = A("el-input-number"), Be = A("el-input"), Le = A("el-link"), ze = A("el-text"), Ze = A("el-avatar"), et = A("el-tag");
|
|
649
651
|
return n(), x(X, null, [
|
|
650
652
|
N("div", null, [
|
|
651
653
|
E.value ? (n(), M(re, {
|
|
@@ -655,15 +657,15 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
655
657
|
onClose: f[0] || (f[0] = (u) => E.value = !1)
|
|
656
658
|
}, null, 8, ["url-list"])) : ye("", !0)
|
|
657
659
|
]),
|
|
658
|
-
N("div",
|
|
659
|
-
d.value == U(
|
|
660
|
+
N("div", $l, [
|
|
661
|
+
d.value == U(_e).RADIO ? (n(), M(he, F({
|
|
660
662
|
key: 0,
|
|
661
663
|
modelValue: i.value,
|
|
662
664
|
"onUpdate:modelValue": f[1] || (f[1] = (u) => i.value = u)
|
|
663
665
|
}, l.value), {
|
|
664
666
|
default: b(() => [
|
|
665
667
|
$(p.$slots, `${r.t}-${e.value}`, { data: l.value }, () => [
|
|
666
|
-
(n(!0), x(X, null,
|
|
668
|
+
(n(!0), x(X, null, R(V.value, (u) => (n(), M(we, F({ ref_for: !0 }, u), {
|
|
667
669
|
default: b(() => [
|
|
668
670
|
$(p.$slots, `${r.t}-${e.value}-options`, { option: u }, void 0, !0)
|
|
669
671
|
]),
|
|
@@ -672,14 +674,14 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
672
674
|
], !0)
|
|
673
675
|
]),
|
|
674
676
|
_: 3
|
|
675
|
-
}, 16, ["modelValue"])) : d.value == U(
|
|
677
|
+
}, 16, ["modelValue"])) : d.value == U(_e).RADIOBUTTON ? (n(), M(he, F({
|
|
676
678
|
key: 1,
|
|
677
679
|
modelValue: i.value,
|
|
678
680
|
"onUpdate:modelValue": f[2] || (f[2] = (u) => i.value = u)
|
|
679
681
|
}, l.value), {
|
|
680
682
|
default: b(() => [
|
|
681
683
|
$(p.$slots, `${r.t}-${e.value}`, { data: l.value }, () => [
|
|
682
|
-
(n(!0), x(X, null,
|
|
684
|
+
(n(!0), x(X, null, R(V.value, (u) => (n(), M(De, F({ ref_for: !0 }, u), {
|
|
683
685
|
default: b(() => [
|
|
684
686
|
$(p.$slots, `${r.t}-${e.value}-options`, { option: u }, void 0, !0)
|
|
685
687
|
]),
|
|
@@ -688,28 +690,28 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
688
690
|
], !0)
|
|
689
691
|
]),
|
|
690
692
|
_: 3
|
|
691
|
-
}, 16, ["modelValue"])) : d.value == U(
|
|
693
|
+
}, 16, ["modelValue"])) : d.value == U(_e).CHECKBOX ? (n(), M(ge, F({
|
|
692
694
|
key: 2,
|
|
693
695
|
modelValue: i.value,
|
|
694
696
|
"onUpdate:modelValue": f[3] || (f[3] = (u) => i.value = u)
|
|
695
697
|
}, l.value), {
|
|
696
698
|
default: b(() => [
|
|
697
699
|
$(p.$slots, `${r.t}-${e.value}`, { data: l.value }, () => [
|
|
698
|
-
f[27] || (f[27] =
|
|
700
|
+
f[27] || (f[27] = Ae(ke(" ")))
|
|
699
701
|
], !0)
|
|
700
702
|
]),
|
|
701
703
|
_: 3
|
|
702
|
-
}, 16, ["modelValue"])) : d.value == U(
|
|
704
|
+
}, 16, ["modelValue"])) : d.value == U(_e).CHECKBOXGROUP ? (n(), M(be, F({
|
|
703
705
|
key: 3,
|
|
704
706
|
modelValue: i.value,
|
|
705
707
|
"onUpdate:modelValue": f[4] || (f[4] = (u) => i.value = u)
|
|
706
708
|
}, l.value), {
|
|
707
709
|
default: b(() => [
|
|
708
710
|
$(p.$slots, `${r.t}-${e.value}`, { data: l.value }, () => [
|
|
709
|
-
(n(!0), x(X, null,
|
|
711
|
+
(n(!0), x(X, null, R(V.value, (u) => (n(), M(ge, F({ ref_for: !0 }, u), {
|
|
710
712
|
default: b(() => [
|
|
711
713
|
$(p.$slots, `${r.t}-${e.value}-options`, { option: u }, () => [
|
|
712
|
-
|
|
714
|
+
Ae(ke(u.label), 1)
|
|
713
715
|
], !0)
|
|
714
716
|
]),
|
|
715
717
|
_: 2
|
|
@@ -717,14 +719,14 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
717
719
|
], !0)
|
|
718
720
|
]),
|
|
719
721
|
_: 3
|
|
720
|
-
}, 16, ["modelValue"])) : d.value == U(
|
|
722
|
+
}, 16, ["modelValue"])) : d.value == U(_e).CHECKBOXGROUPBUTTON ? (n(), M(be, F({
|
|
721
723
|
key: 4,
|
|
722
724
|
modelValue: i.value,
|
|
723
725
|
"onUpdate:modelValue": f[5] || (f[5] = (u) => i.value = u)
|
|
724
726
|
}, l.value), {
|
|
725
727
|
default: b(() => [
|
|
726
728
|
$(p.$slots, `${r.t}-${e.value}`, { data: l.value }, () => [
|
|
727
|
-
(n(!0), x(X, null,
|
|
729
|
+
(n(!0), x(X, null, R(V.value, (u) => (n(), M(Ve, F({ ref_for: !0 }, u), {
|
|
728
730
|
default: b(() => [
|
|
729
731
|
$(p.$slots, `${r.t}-${e.value}-options`, { option: u }, void 0, !0)
|
|
730
732
|
]),
|
|
@@ -733,7 +735,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
733
735
|
], !0)
|
|
734
736
|
]),
|
|
735
737
|
_: 3
|
|
736
|
-
}, 16, ["modelValue"])) : d.value === U(
|
|
738
|
+
}, 16, ["modelValue"])) : d.value === U(_e).SELECT ? (n(), M(ot, F({
|
|
737
739
|
key: 5,
|
|
738
740
|
modelValue: i.value,
|
|
739
741
|
"onUpdate:modelValue": f[6] || (f[6] = (u) => i.value = u),
|
|
@@ -745,10 +747,10 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
745
747
|
}, de.value), pe({
|
|
746
748
|
default: b(() => [
|
|
747
749
|
$(p.$slots, `${r.t}-${e.value}`, { options: V.value }, () => [
|
|
748
|
-
(n(!0), x(X, null,
|
|
750
|
+
(n(!0), x(X, null, R(V.value, (u) => (n(), x(X, {
|
|
749
751
|
key: u.value
|
|
750
752
|
}, [
|
|
751
|
-
G(
|
|
753
|
+
G(Re, F({ ref_for: !0 }, U(Ye)(u, (H) => H != "children"), {
|
|
752
754
|
onClick: (H) => {
|
|
753
755
|
de.value.change && de.value.change(u), oe();
|
|
754
756
|
}
|
|
@@ -762,15 +764,15 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
762
764
|
}, () => {
|
|
763
765
|
var ie;
|
|
764
766
|
return [
|
|
765
|
-
G(
|
|
767
|
+
G(Te, {
|
|
766
768
|
columns: (ie = l.value) == null ? void 0 : ie.columns,
|
|
767
769
|
data: u,
|
|
768
770
|
t: r.t
|
|
769
771
|
}, pe({ _: 2 }, [
|
|
770
|
-
|
|
771
|
-
name:
|
|
772
|
+
R(p.$slots, (Fe, Ue) => ({
|
|
773
|
+
name: Ue,
|
|
772
774
|
fn: b((He) => [
|
|
773
|
-
$(p.$slots,
|
|
775
|
+
$(p.$slots, Ue, {
|
|
774
776
|
option: u,
|
|
775
777
|
data: He
|
|
776
778
|
}, void 0, !0)
|
|
@@ -783,11 +785,11 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
783
785
|
}),
|
|
784
786
|
_: 2
|
|
785
787
|
}, 1040, ["onClick"]),
|
|
786
|
-
u.children && u.children.length ? (n(!0), x(X, { key: 0 },
|
|
788
|
+
u.children && u.children.length ? (n(!0), x(X, { key: 0 }, R(u.children, (H) => (n(), M(Re, F({
|
|
787
789
|
style: { "margin-left": "20px" },
|
|
788
790
|
key: H.value,
|
|
789
791
|
ref_for: !0
|
|
790
|
-
}, U(
|
|
792
|
+
}, U(Ye)(H, (ie) => ie != "children"), {
|
|
791
793
|
onClick: (ie) => {
|
|
792
794
|
de.value.change && de.value.change(H), oe();
|
|
793
795
|
}
|
|
@@ -799,14 +801,14 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
799
801
|
key: 0,
|
|
800
802
|
option: H
|
|
801
803
|
}, () => {
|
|
802
|
-
var
|
|
804
|
+
var Fe;
|
|
803
805
|
return [
|
|
804
|
-
G(
|
|
805
|
-
columns: (
|
|
806
|
+
G(Te, {
|
|
807
|
+
columns: (Fe = l.value) == null ? void 0 : Fe.columns,
|
|
806
808
|
data: H,
|
|
807
809
|
t: r.t
|
|
808
810
|
}, pe({ _: 2 }, [
|
|
809
|
-
|
|
811
|
+
R(p.$slots, (Ue, He) => ({
|
|
810
812
|
name: He,
|
|
811
813
|
fn: b((I) => [
|
|
812
814
|
$(p.$slots, He, {
|
|
@@ -832,15 +834,15 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
832
834
|
fn: b(() => {
|
|
833
835
|
var u;
|
|
834
836
|
return [
|
|
835
|
-
G(
|
|
837
|
+
G(Te, {
|
|
836
838
|
columns: (u = l.value) == null ? void 0 : u.columns,
|
|
837
839
|
title: !0,
|
|
838
840
|
t: r.t
|
|
839
841
|
}, pe({ _: 2 }, [
|
|
840
|
-
|
|
842
|
+
R(p.$slots, (H, ie) => ({
|
|
841
843
|
name: ie,
|
|
842
|
-
fn: b((
|
|
843
|
-
$(p.$slots, ie, { data:
|
|
844
|
+
fn: b((Fe) => [
|
|
845
|
+
$(p.$slots, ie, { data: Fe }, void 0, !0)
|
|
844
846
|
])
|
|
845
847
|
}))
|
|
846
848
|
]), 1032, ["columns", "t"])
|
|
@@ -848,32 +850,32 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
848
850
|
}),
|
|
849
851
|
key: "0"
|
|
850
852
|
} : void 0,
|
|
851
|
-
|
|
853
|
+
R(S(), (u) => ({
|
|
852
854
|
name: u,
|
|
853
855
|
fn: b((H) => [
|
|
854
856
|
$(p.$slots, `${r.t}-${e.value}-${u}`, { data: H }, void 0, !0)
|
|
855
857
|
])
|
|
856
858
|
}))
|
|
857
|
-
]), 1040, ["modelValue", "placeholder"])) : d.value == U(
|
|
859
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == U(_e).TREESELECT ? (n(), M(ut, F({
|
|
858
860
|
key: 6,
|
|
859
861
|
modelValue: i.value,
|
|
860
862
|
"onUpdate:modelValue": f[8] || (f[8] = (u) => i.value = u),
|
|
861
863
|
placeholder: D.value[e.value].label
|
|
862
864
|
}, l.value, { data: Y.value }), pe({ _: 2 }, [
|
|
863
|
-
|
|
865
|
+
R(S(), (u) => ({
|
|
864
866
|
name: u,
|
|
865
867
|
fn: b((H) => [
|
|
866
868
|
$(p.$slots, `${r.t}-${e.value}-${u}`, { data: H }, void 0, !0)
|
|
867
869
|
])
|
|
868
870
|
}))
|
|
869
|
-
]), 1040, ["modelValue", "placeholder", "data"])) : d.value == U(
|
|
871
|
+
]), 1040, ["modelValue", "placeholder", "data"])) : d.value == U(_e).TIME ? (n(), M(nt, F({
|
|
870
872
|
key: 7,
|
|
871
873
|
modelValue: i.value,
|
|
872
874
|
"onUpdate:modelValue": f[9] || (f[9] = (u) => i.value = u),
|
|
873
875
|
"arrow-control": ""
|
|
874
876
|
}, l.value, {
|
|
875
877
|
placeholder: D.value[e.value].label
|
|
876
|
-
}), null, 16, ["modelValue", "placeholder"])) : d.value == U(
|
|
878
|
+
}), null, 16, ["modelValue", "placeholder"])) : d.value == U(_e).TIMESELECT ? (n(), M(st, F({
|
|
877
879
|
key: 8,
|
|
878
880
|
modelValue: i.value,
|
|
879
881
|
"onUpdate:modelValue": f[10] || (f[10] = (u) => i.value = u),
|
|
@@ -889,65 +891,65 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
889
891
|
placeholder: D.value[e.value].label,
|
|
890
892
|
"value-format": me(d.value)
|
|
891
893
|
}, l.value), pe({ _: 2 }, [
|
|
892
|
-
|
|
894
|
+
R(S(), (u) => ({
|
|
893
895
|
name: u,
|
|
894
896
|
fn: b((H) => [
|
|
895
897
|
$(p.$slots, `${r.t}-${e.value}-${u}`, { data: H }, void 0, !0)
|
|
896
898
|
])
|
|
897
899
|
}))
|
|
898
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : d.value == U(
|
|
900
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : d.value == U(_e).COLOR ? (n(), M(dt, F({
|
|
899
901
|
key: 10,
|
|
900
902
|
modelValue: i.value,
|
|
901
903
|
"onUpdate:modelValue": f[12] || (f[12] = (u) => i.value = u)
|
|
902
|
-
}, l.value), null, 16, ["modelValue"])) : d.value == U(
|
|
904
|
+
}, l.value), null, 16, ["modelValue"])) : d.value == U(_e).RATE ? (n(), M(ct, F({
|
|
903
905
|
key: 11,
|
|
904
906
|
modelValue: i.value,
|
|
905
907
|
"onUpdate:modelValue": f[13] || (f[13] = (u) => i.value = u)
|
|
906
|
-
}, l.value), null, 16, ["modelValue"])) : d.value == U(
|
|
908
|
+
}, l.value), null, 16, ["modelValue"])) : d.value == U(_e).SLIDER ? (n(), M(t, F({
|
|
907
909
|
key: 12,
|
|
908
910
|
modelValue: i.value,
|
|
909
911
|
"onUpdate:modelValue": f[14] || (f[14] = (u) => i.value = u)
|
|
910
|
-
}, l.value), null, 16, ["modelValue"])) : d.value == U(
|
|
912
|
+
}, l.value), null, 16, ["modelValue"])) : d.value == U(_e).SWITCH ? (n(), M(o, F({
|
|
911
913
|
key: 13,
|
|
912
914
|
modelValue: i.value,
|
|
913
915
|
"onUpdate:modelValue": f[15] || (f[15] = (u) => i.value = u),
|
|
914
916
|
inlinePrompt: !0
|
|
915
917
|
}, l.value), pe({ _: 2 }, [
|
|
916
|
-
|
|
918
|
+
R(S(), (u) => ({
|
|
917
919
|
name: u,
|
|
918
920
|
fn: b((H) => [
|
|
919
921
|
$(p.$slots, `${r.t}-${e.value}-${u}`, { data: H }, void 0, !0)
|
|
920
922
|
])
|
|
921
923
|
}))
|
|
922
|
-
]), 1040, ["modelValue"])) : d.value == U(
|
|
924
|
+
]), 1040, ["modelValue"])) : d.value == U(_e).TRANSFER ? (n(), M(s, F({
|
|
923
925
|
key: 14,
|
|
924
926
|
modelValue: i.value,
|
|
925
927
|
"onUpdate:modelValue": f[16] || (f[16] = (u) => i.value = u)
|
|
926
928
|
}, l.value), pe({ _: 2 }, [
|
|
927
|
-
|
|
929
|
+
R(S(), (u) => ({
|
|
928
930
|
name: u,
|
|
929
931
|
fn: b((H) => [
|
|
930
932
|
$(p.$slots, `${r.t}-${e.value}-${u}`, { data: H }, void 0, !0)
|
|
931
933
|
])
|
|
932
934
|
}))
|
|
933
|
-
]), 1040, ["modelValue"])) : d.value == U(
|
|
935
|
+
]), 1040, ["modelValue"])) : d.value == U(_e).CASCADER ? (n(), M(y, F({
|
|
934
936
|
key: 15,
|
|
935
937
|
modelValue: i.value,
|
|
936
938
|
"onUpdate:modelValue": f[17] || (f[17] = (u) => i.value = u)
|
|
937
939
|
}, l.value, { options: V.value }), pe({ _: 2 }, [
|
|
938
|
-
|
|
940
|
+
R(S(), (u) => ({
|
|
939
941
|
name: u,
|
|
940
942
|
fn: b((H) => [
|
|
941
943
|
$(p.$slots, `${r.t}-${e.value}-${u}`, { data: H }, void 0, !0)
|
|
942
944
|
])
|
|
943
945
|
}))
|
|
944
|
-
]), 1040, ["modelValue", "options"])) : d.value == U(
|
|
946
|
+
]), 1040, ["modelValue", "options"])) : d.value == U(_e).IMAGE ? (n(), M(ce, F({
|
|
945
947
|
key: 16,
|
|
946
948
|
"file-list": l.value["file-list"],
|
|
947
949
|
"onUpdate:fileList": f[21] || (f[21] = (u) => l.value["file-list"] = u),
|
|
948
950
|
"list-type": "picture-card",
|
|
949
951
|
class: "custom-upload",
|
|
950
|
-
"on-preview":
|
|
952
|
+
"on-preview": Me
|
|
951
953
|
}, { ...Q.value, ...l.value }, {
|
|
952
954
|
ref_key: "uploadRef",
|
|
953
955
|
ref: ae
|
|
@@ -960,15 +962,15 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
960
962
|
onClick: f[20] || (f[20] = (H) => H.stopPropagation()),
|
|
961
963
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
962
964
|
}, [
|
|
963
|
-
N("div",
|
|
965
|
+
N("div", wl, [
|
|
964
966
|
G(O, F({
|
|
965
967
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
966
968
|
src: i.value
|
|
967
969
|
}, { fit: "cover", lazy: !0, ...(u = l.value) == null ? void 0 : u.img }), pe({ _: 2 }, [
|
|
968
|
-
|
|
970
|
+
R(S(), (H, ie) => ({
|
|
969
971
|
name: H,
|
|
970
|
-
fn: b((
|
|
971
|
-
$(p.$slots, `${r.t}-${e.value}-${H}`, { data:
|
|
972
|
+
fn: b((Fe) => [
|
|
973
|
+
$(p.$slots, `${r.t}-${e.value}-${H}`, { data: Fe }, void 0, !0)
|
|
972
974
|
])
|
|
973
975
|
}))
|
|
974
976
|
]), 1040, ["src"])
|
|
@@ -985,7 +987,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
985
987
|
placement: "top"
|
|
986
988
|
}, {
|
|
987
989
|
default: b(() => [
|
|
988
|
-
G(U(
|
|
990
|
+
G(U(ol), {
|
|
989
991
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
990
992
|
color: "white",
|
|
991
993
|
onClick: ee
|
|
@@ -999,7 +1001,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
999
1001
|
placement: "top"
|
|
1000
1002
|
}, {
|
|
1001
1003
|
default: b(() => [
|
|
1002
|
-
G(U(
|
|
1004
|
+
G(U(At), {
|
|
1003
1005
|
style: { width: "1.5em", height: "1.5em" },
|
|
1004
1006
|
color: "white",
|
|
1005
1007
|
onClick: ve
|
|
@@ -1010,7 +1012,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1010
1012
|
], 32)
|
|
1011
1013
|
])) : (n(), M(T, { key: 0 }, {
|
|
1012
1014
|
default: b(() => [
|
|
1013
|
-
G(U(
|
|
1015
|
+
G(U(rl))
|
|
1014
1016
|
]),
|
|
1015
1017
|
_: 1
|
|
1016
1018
|
}))
|
|
@@ -1018,26 +1020,26 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1018
1020
|
}),
|
|
1019
1021
|
_: 2
|
|
1020
1022
|
}, [
|
|
1021
|
-
|
|
1023
|
+
R(S(), (u, H) => ({
|
|
1022
1024
|
name: u,
|
|
1023
1025
|
fn: b((ie) => [
|
|
1024
1026
|
$(p.$slots, `${r.t}-${e.value}-${u}`, { data: ie }, void 0, !0)
|
|
1025
1027
|
])
|
|
1026
1028
|
}))
|
|
1027
|
-
]), 1040, ["file-list"])) : d.value == U(
|
|
1029
|
+
]), 1040, ["file-list"])) : d.value == U(_e).AUTOCOMPLETE ? (n(), M($e, F({
|
|
1028
1030
|
key: 17,
|
|
1029
1031
|
modelValue: i.value,
|
|
1030
1032
|
"onUpdate:modelValue": f[22] || (f[22] = (u) => i.value = u)
|
|
1031
1033
|
}, l.value, {
|
|
1032
1034
|
placeholder: D.value[e.value].label
|
|
1033
1035
|
}), pe({ _: 2 }, [
|
|
1034
|
-
|
|
1036
|
+
R(S(), (u, H) => ({
|
|
1035
1037
|
name: u,
|
|
1036
1038
|
fn: b((ie) => [
|
|
1037
1039
|
$(p.$slots, `${r.t}-${e.value}-${u}`, { data: ie }, void 0, !0)
|
|
1038
1040
|
])
|
|
1039
1041
|
}))
|
|
1040
|
-
]), 1040, ["modelValue", "placeholder"])) : d.value == U(
|
|
1042
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == U(_e).INPUTNUMBER ? (n(), M(Se, F({
|
|
1041
1043
|
key: 18,
|
|
1042
1044
|
modelValue: i.value,
|
|
1043
1045
|
"onUpdate:modelValue": f[23] || (f[23] = (u) => i.value = u),
|
|
@@ -1045,29 +1047,29 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1045
1047
|
max: 1e8,
|
|
1046
1048
|
placeholder: D.value[e.value].label
|
|
1047
1049
|
}, l.value), pe({ _: 2 }, [
|
|
1048
|
-
|
|
1050
|
+
R(S(), (u, H) => ({
|
|
1049
1051
|
name: u,
|
|
1050
1052
|
fn: b((ie) => [
|
|
1051
1053
|
$(p.$slots, `${r.t}-${e.value}-${u}`, { data: ie }, void 0, !0)
|
|
1052
1054
|
])
|
|
1053
1055
|
}))
|
|
1054
|
-
]), 1040, ["modelValue", "placeholder"])) : d.value == U(
|
|
1055
|
-
G(
|
|
1056
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == U(_e).MONEY ? (n(), x("div", El, [
|
|
1057
|
+
G(Be, F({
|
|
1056
1058
|
modelValue: i.value,
|
|
1057
1059
|
"onUpdate:modelValue": f[24] || (f[24] = (u) => i.value = u),
|
|
1058
1060
|
placeholder: D.value[e.value].label,
|
|
1059
|
-
type: U(
|
|
1061
|
+
type: U(_e).NUMBER,
|
|
1060
1062
|
maxlength: ((at = l.value) == null ? void 0 : at.max) || 25
|
|
1061
1063
|
}, { ...l.value, type: d.value }), pe({
|
|
1062
1064
|
suffix: b(() => [
|
|
1063
1065
|
N("div", {
|
|
1064
1066
|
title: U(kt)(i.value),
|
|
1065
1067
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1066
|
-
},
|
|
1068
|
+
}, ke(U(kt)(i.value)), 9, _l)
|
|
1067
1069
|
]),
|
|
1068
1070
|
_: 2
|
|
1069
1071
|
}, [
|
|
1070
|
-
|
|
1072
|
+
R(S(), (u, H) => ({
|
|
1071
1073
|
name: u,
|
|
1072
1074
|
fn: b((ie) => [
|
|
1073
1075
|
$(p.$slots, `${r.t}-${e.value}-${u}`, { data: ie }, void 0, !0)
|
|
@@ -1076,15 +1078,15 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1076
1078
|
]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
|
|
1077
1079
|
])) : (B = d.value) != null && B.startsWith("link") ? (n(), x("div", {
|
|
1078
1080
|
key: 20,
|
|
1079
|
-
style:
|
|
1081
|
+
style: Oe(z.value)
|
|
1080
1082
|
}, [
|
|
1081
|
-
G(
|
|
1083
|
+
G(Le, F(l.value, {
|
|
1082
1084
|
type: d.value.replace("link-", ""),
|
|
1083
1085
|
innerHTML: fe.value || i.value
|
|
1084
1086
|
}), null, 16, ["type", "innerHTML"])
|
|
1085
1087
|
], 4)) : d.value != "textarea" && ((ue = d.value) != null && ue.startsWith("text")) ? (n(), x("div", {
|
|
1086
1088
|
key: 21,
|
|
1087
|
-
style:
|
|
1089
|
+
style: Oe(z.value)
|
|
1088
1090
|
}, [
|
|
1089
1091
|
G(ze, F(l.value, {
|
|
1090
1092
|
type: d.value.replace("text-", ""),
|
|
@@ -1092,19 +1094,19 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1092
1094
|
}), null, 16, ["type", "innerHTML"])
|
|
1093
1095
|
], 4)) : d.value == "avatar" ? (n(), x("div", {
|
|
1094
1096
|
key: 22,
|
|
1095
|
-
style:
|
|
1097
|
+
style: Oe(z.value)
|
|
1096
1098
|
}, [
|
|
1097
1099
|
fe.value ? (n(), M(Ze, $t(F({ key: 0 }, l.value)), {
|
|
1098
1100
|
default: b(() => [
|
|
1099
|
-
N("div", { innerHTML: fe.value }, null, 8,
|
|
1101
|
+
N("div", { innerHTML: fe.value }, null, 8, kl)
|
|
1100
1102
|
]),
|
|
1101
1103
|
_: 1
|
|
1102
1104
|
}, 16)) : (n(), M(Ze, $t(F({ key: 1 }, l.value)), null, 16))
|
|
1103
1105
|
], 4)) : (_ = d.value) != null && _.startsWith("tag") ? (n(), x("div", {
|
|
1104
1106
|
key: 23,
|
|
1105
|
-
style:
|
|
1107
|
+
style: Oe(z.value)
|
|
1106
1108
|
}, [
|
|
1107
|
-
Array.isArray(fe.value) && fe.value.length > 0 ? (n(!0), x(X, { key: 0 },
|
|
1109
|
+
Array.isArray(fe.value) && fe.value.length > 0 ? (n(!0), x(X, { key: 0 }, R(fe.value, (u, H) => (n(), x(X, { key: H }, [
|
|
1108
1110
|
typeof u == "object" ? (n(), M(et, F({
|
|
1109
1111
|
key: 0,
|
|
1110
1112
|
ref_for: !0
|
|
@@ -1125,22 +1127,22 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1125
1127
|
}), null, 16, ["type", "innerHTML"]))
|
|
1126
1128
|
], 4)) : d.value == "div" ? (n(), x("div", F({ key: 24 }, l.value, {
|
|
1127
1129
|
innerHTML: fe.value || i.value,
|
|
1128
|
-
style:
|
|
1129
|
-
}), null, 16,
|
|
1130
|
+
style: z.value
|
|
1131
|
+
}), null, 16, Cl)) : d.value == "span" ? (n(), x("span", F({ key: 25 }, l.value, {
|
|
1130
1132
|
innerHTML: fe.value || i.value,
|
|
1131
|
-
style:
|
|
1132
|
-
}), null, 16,
|
|
1133
|
+
style: z.value
|
|
1134
|
+
}), null, 16, Dl)) : (n(), M(Be, F({
|
|
1133
1135
|
key: 26,
|
|
1134
1136
|
modelValue: i.value,
|
|
1135
1137
|
"onUpdate:modelValue": f[25] || (f[25] = (u) => i.value = u),
|
|
1136
1138
|
placeholder: D.value[e.value].label,
|
|
1137
|
-
maxlength: ((
|
|
1139
|
+
maxlength: ((P = l.value) == null ? void 0 : P.max) || 25,
|
|
1138
1140
|
clearable: !0,
|
|
1139
1141
|
onClear: f[26] || (f[26] = () => {
|
|
1140
1142
|
r.t == "q" && D.value.table.load();
|
|
1141
1143
|
})
|
|
1142
1144
|
}, { ...l.value, type: d.value }), pe({ _: 2 }, [
|
|
1143
|
-
|
|
1145
|
+
R(S(), (u, H) => ({
|
|
1144
1146
|
name: u,
|
|
1145
1147
|
fn: b((ie) => [
|
|
1146
1148
|
$(p.$slots, `${r.t}-${e.value}-${u}`, { data: ie }, void 0, !0)
|
|
@@ -1151,7 +1153,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1151
1153
|
], 64);
|
|
1152
1154
|
};
|
|
1153
1155
|
}
|
|
1154
|
-
}), ht = /* @__PURE__ */ Qe(
|
|
1156
|
+
}), ht = /* @__PURE__ */ Qe(Ml, [["__scopeId", "data-v-f4bcf7b8"]]), Vl = { class: "g-form-container" }, Sl = /* @__PURE__ */ Object.assign({
|
|
1155
1157
|
name: "g-form",
|
|
1156
1158
|
inheritAttrs: !1
|
|
1157
1159
|
}, {
|
|
@@ -1162,14 +1164,14 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1162
1164
|
}),
|
|
1163
1165
|
emits: /* @__PURE__ */ Xe(["submit", "reset"], ["update:modelValue"]),
|
|
1164
1166
|
setup(c, { expose: i, emit: r }) {
|
|
1165
|
-
var ve,
|
|
1167
|
+
var ve, Me, ee, ae, te, Ie;
|
|
1166
1168
|
const l = Ge(c, "modelValue"), e = r, d = le(null), D = Ct("options"), Y = le({}), V = le(""), E = c;
|
|
1167
|
-
l.value.form =
|
|
1168
|
-
|
|
1169
|
+
l.value.form = xe(
|
|
1170
|
+
Rt,
|
|
1169
1171
|
D == null ? void 0 : D.form,
|
|
1170
1172
|
(ve = l.value) == null ? void 0 : ve.form
|
|
1171
|
-
), l.value.form.style =
|
|
1172
|
-
(ee = (
|
|
1173
|
+
), l.value.form.style = xe(
|
|
1174
|
+
(ee = (Me = l.value) == null ? void 0 : Me.form) == null ? void 0 : ee.style,
|
|
1173
1175
|
{ ...(ae = Dt()) == null ? void 0 : ae.style }
|
|
1174
1176
|
);
|
|
1175
1177
|
const k = async (w, v) => {
|
|
@@ -1184,7 +1186,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1184
1186
|
m--, await new Promise((a) => setTimeout(a, 50));
|
|
1185
1187
|
}
|
|
1186
1188
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1187
|
-
},
|
|
1189
|
+
}, z = async () => {
|
|
1188
1190
|
let w = 5;
|
|
1189
1191
|
for (; w > 0; ) {
|
|
1190
1192
|
if (await tt(), !d.value) {
|
|
@@ -1202,7 +1204,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1202
1204
|
}
|
|
1203
1205
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1204
1206
|
};
|
|
1205
|
-
l.value.form.submit.click = k, l.value.form.reset.click =
|
|
1207
|
+
l.value.form.submit.click = k, l.value.form.reset.click = z;
|
|
1206
1208
|
const K = {
|
|
1207
1209
|
type: "hidden",
|
|
1208
1210
|
labelPosition: "right",
|
|
@@ -1210,7 +1212,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1210
1212
|
width: "100%"
|
|
1211
1213
|
}
|
|
1212
1214
|
};
|
|
1213
|
-
l.value.formItems =
|
|
1215
|
+
l.value.formItems = xe(
|
|
1214
1216
|
K,
|
|
1215
1217
|
D == null ? void 0 : D.formItems,
|
|
1216
1218
|
(te = l == null ? void 0 : l.value) == null ? void 0 : te.formItems
|
|
@@ -1219,9 +1221,9 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1219
1221
|
span: 12,
|
|
1220
1222
|
offset: 0
|
|
1221
1223
|
};
|
|
1222
|
-
l.value.form.cols =
|
|
1224
|
+
l.value.form.cols = xe(
|
|
1223
1225
|
ne,
|
|
1224
|
-
(
|
|
1226
|
+
(Ie = D == null ? void 0 : D.form) == null ? void 0 : Ie.cols,
|
|
1225
1227
|
l.value.form.cols
|
|
1226
1228
|
);
|
|
1227
1229
|
const S = (w) => {
|
|
@@ -1265,16 +1267,16 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1265
1267
|
}), a.min !== void 0 && a.min !== null && a.min !== "" && a.max !== void 0 && a.max !== null && a.max !== "" && v.push({
|
|
1266
1268
|
validator: (C, g, h) => {
|
|
1267
1269
|
if (g == null || g === "") return h();
|
|
1268
|
-
const q = Number(a.min),
|
|
1270
|
+
const q = Number(a.min), L = Number(a.max);
|
|
1269
1271
|
a.type !== "number" && a.type !== "input-number" ? Number(a.min) < 1 ? h(
|
|
1270
1272
|
new Error(
|
|
1271
1273
|
`${a.label}长度最小值${a.min}设置错误!`
|
|
1272
1274
|
)
|
|
1273
|
-
) : g.toString().length < q || g.toString().length >
|
|
1275
|
+
) : g.toString().length < q || g.toString().length > L ? h(
|
|
1274
1276
|
new Error(
|
|
1275
|
-
`${a.label}长度必须在${q}-${
|
|
1277
|
+
`${a.label}长度必须在${q}-${L}个字符之间!`
|
|
1276
1278
|
)
|
|
1277
|
-
) : h() : Number(g) < q || g >
|
|
1279
|
+
) : h() : Number(g) < q || g > L ? h(new Error(`${a.label}必须在${q}-${L}之间!`)) : h();
|
|
1278
1280
|
}
|
|
1279
1281
|
}), a.type == "email" && v.push({ type: "email", message: "不是一个正确的邮箱地址!" }), a.type == "url" && v.push({ type: "url", message: "不是一个合正确的URL!" }), a.pattern && v.push({
|
|
1280
1282
|
pattern: a == null ? void 0 : a.pattern,
|
|
@@ -1285,14 +1287,14 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1285
1287
|
}
|
|
1286
1288
|
return v;
|
|
1287
1289
|
}, Q = (w, v = !1) => {
|
|
1288
|
-
var C, g, h, q,
|
|
1290
|
+
var C, g, h, q, L;
|
|
1289
1291
|
const m = v ? w : w == null ? void 0 : w.item, a = typeof (m == null ? void 0 : m.editor) == "function" ? m.editor(Y.value, (C = l.value.form) == null ? void 0 : C.modalState) : (m == null ? void 0 : m.editor) || {};
|
|
1290
1292
|
if (((g = l.value.form) == null ? void 0 : g.modalState) === "edit") {
|
|
1291
1293
|
const J = typeof (m == null ? void 0 : m.editor) == "object" ? (h = m.editor) == null ? void 0 : h.ep : typeof (m == null ? void 0 : m.editor) == "function" ? a == null ? void 0 : a.ep : {};
|
|
1292
1294
|
return { ...a, ...J };
|
|
1293
1295
|
}
|
|
1294
1296
|
if (((q = l.value.form) == null ? void 0 : q.modalState) === "add") {
|
|
1295
|
-
const J = typeof (m == null ? void 0 : m.editor) == "object" ? (
|
|
1297
|
+
const J = typeof (m == null ? void 0 : m.editor) == "object" ? (L = m.editor) == null ? void 0 : L.ap : typeof (m == null ? void 0 : m.editor) == "function" ? a == null ? void 0 : a.ap : {};
|
|
1296
1298
|
return { ...a, ...J };
|
|
1297
1299
|
}
|
|
1298
1300
|
return a;
|
|
@@ -1303,7 +1305,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1303
1305
|
};
|
|
1304
1306
|
rt(() => {
|
|
1305
1307
|
W(), E != null && E.editForm ? Y.value = E.editForm : Y.value = de.value;
|
|
1306
|
-
}),
|
|
1308
|
+
}), Wt(() => {
|
|
1307
1309
|
d.value = null;
|
|
1308
1310
|
});
|
|
1309
1311
|
const W = () => {
|
|
@@ -1328,7 +1330,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1328
1330
|
() => Object.fromEntries(
|
|
1329
1331
|
Object.entries(l.value).filter((w) => w[1].type != "hidden").filter((w) => w[1].type != "control").map((w) => [w[0], w[1].value])
|
|
1330
1332
|
)
|
|
1331
|
-
),
|
|
1333
|
+
), Ce = Ke(() => {
|
|
1332
1334
|
const w = /* @__PURE__ */ new Map();
|
|
1333
1335
|
return Object.entries(me.value).forEach(([v, m]) => {
|
|
1334
1336
|
if (m.groupName) {
|
|
@@ -1339,7 +1341,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1339
1341
|
}), w.get(a).items.push({ key: v, item: m });
|
|
1340
1342
|
}
|
|
1341
1343
|
}), w.forEach((v) => {
|
|
1342
|
-
v.tabPane =
|
|
1344
|
+
v.tabPane = xe(
|
|
1343
1345
|
...v.items.map(({ item: m }) => m.tabPane || {})
|
|
1344
1346
|
);
|
|
1345
1347
|
}), Array.from(w.values());
|
|
@@ -1349,7 +1351,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1349
1351
|
label: l.value.form.submit.label,
|
|
1350
1352
|
click: l.value.form.submit.click,
|
|
1351
1353
|
hidden: l.value.form.submit.hidden,
|
|
1352
|
-
info:
|
|
1354
|
+
info: Ye(l.value.form.submit, (w) => !["click"].includes(w)),
|
|
1353
1355
|
sort: l.value.form.submit.sort ?? 1,
|
|
1354
1356
|
// 使用空值合并运算符
|
|
1355
1357
|
originalOrder: 0
|
|
@@ -1359,7 +1361,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1359
1361
|
name: "f-reset",
|
|
1360
1362
|
label: l.value.form.reset.label,
|
|
1361
1363
|
click: l.value.form.reset.click,
|
|
1362
|
-
info:
|
|
1364
|
+
info: Ye(l.value.form.reset, (w) => !["click"].includes(w)),
|
|
1363
1365
|
hidden: l.value.form.reset.hidden,
|
|
1364
1366
|
sort: l.value.form.reset.sort ?? 2,
|
|
1365
1367
|
// 使用空值合并运算符
|
|
@@ -1369,12 +1371,12 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1369
1371
|
], oe = Ke(() => se.filter((w) => !w.hidden).sort((w, v) => w.sort - v.sort || w.originalOrder - v.originalOrder));
|
|
1370
1372
|
return i({
|
|
1371
1373
|
submit: k,
|
|
1372
|
-
reset:
|
|
1374
|
+
reset: z,
|
|
1373
1375
|
formData: Y
|
|
1374
1376
|
}), (w, v) => {
|
|
1375
|
-
var
|
|
1377
|
+
var L, J, Z;
|
|
1376
1378
|
const m = A("el-form-item"), a = A("el-col"), C = A("el-tab-pane"), g = A("el-tabs"), h = A("el-form"), q = A("el-button");
|
|
1377
|
-
return n(), x("div",
|
|
1379
|
+
return n(), x("div", Vl, [
|
|
1378
1380
|
G(h, F(
|
|
1379
1381
|
{
|
|
1380
1382
|
ref_key: "gform",
|
|
@@ -1387,21 +1389,21 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1387
1389
|
"box-sizing": "border-box"
|
|
1388
1390
|
}
|
|
1389
1391
|
},
|
|
1390
|
-
U(
|
|
1392
|
+
U(Ye)(
|
|
1391
1393
|
l.value.form,
|
|
1392
1394
|
(p) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(p)
|
|
1393
1395
|
)
|
|
1394
1396
|
), {
|
|
1395
1397
|
default: b(() => [
|
|
1396
|
-
|
|
1398
|
+
Ce.value.length > 0 ? $(w.$slots, "default", { key: 0 }, () => [
|
|
1397
1399
|
G(g, F({
|
|
1398
1400
|
class: "demo-tabs",
|
|
1399
|
-
modelValue:
|
|
1400
|
-
"onUpdate:modelValue": v[0] || (v[0] = (p) =>
|
|
1401
|
+
modelValue: Ce.value[0].groupName,
|
|
1402
|
+
"onUpdate:modelValue": v[0] || (v[0] = (p) => Ce.value[0].groupName = p),
|
|
1401
1403
|
style: { width: "100%" }
|
|
1402
1404
|
}, l.value.form.tabs), {
|
|
1403
1405
|
default: b(() => [
|
|
1404
|
-
(n(!0), x(X, null,
|
|
1406
|
+
(n(!0), x(X, null, R(Ce.value, (p) => (n(), M(C, F({
|
|
1405
1407
|
key: p.groupName,
|
|
1406
1408
|
label: p.groupName,
|
|
1407
1409
|
name: p.groupName,
|
|
@@ -1409,7 +1411,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1409
1411
|
ref_for: !0
|
|
1410
1412
|
}, p.tabPane), {
|
|
1411
1413
|
default: b(() => [
|
|
1412
|
-
(n(!0), x(X, null,
|
|
1414
|
+
(n(!0), x(X, null, R(p.items, (f, re) => (n(), M(a, F({ ref_for: !0 }, { ...l.value.form.cols, ...f == null ? void 0 : f.item.col }, {
|
|
1413
1415
|
key: f.key,
|
|
1414
1416
|
style: { width: "100%" }
|
|
1415
1417
|
}), {
|
|
@@ -1430,7 +1432,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1430
1432
|
}, () => [
|
|
1431
1433
|
(n(), M(ht, {
|
|
1432
1434
|
modelValue: Y.value[f.key],
|
|
1433
|
-
"onUpdate:modelValue": (
|
|
1435
|
+
"onUpdate:modelValue": (De) => Y.value[f.key] = De,
|
|
1434
1436
|
item: Q(f),
|
|
1435
1437
|
ctrlKey: f.key,
|
|
1436
1438
|
ctrlType: fe(f == null ? void 0 : f.item),
|
|
@@ -1440,7 +1442,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1440
1442
|
t: "f",
|
|
1441
1443
|
formInfo: Y.value
|
|
1442
1444
|
}, pe({ _: 2 }, [
|
|
1443
|
-
|
|
1445
|
+
R(w.$slots, (De, ge) => ({
|
|
1444
1446
|
name: ge,
|
|
1445
1447
|
fn: b((be) => [
|
|
1446
1448
|
$(w.$slots, ge, {
|
|
@@ -1466,7 +1468,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1466
1468
|
_: 3
|
|
1467
1469
|
}, 16, ["modelValue"])
|
|
1468
1470
|
], !0) : $(w.$slots, "default", { key: 1 }, () => [
|
|
1469
|
-
(n(!0), x(X, null,
|
|
1471
|
+
(n(!0), x(X, null, R(me.value, (p, f) => (n(), M(a, F({ ref_for: !0 }, { ...l.value.form.cols, ...p.col }, {
|
|
1470
1472
|
key: f,
|
|
1471
1473
|
style: { width: "100%" }
|
|
1472
1474
|
}), {
|
|
@@ -1485,7 +1487,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1485
1487
|
item: p,
|
|
1486
1488
|
model: l.value
|
|
1487
1489
|
}, () => [
|
|
1488
|
-
|
|
1490
|
+
Ae(ke(p.label), 1)
|
|
1489
1491
|
], !0)
|
|
1490
1492
|
]),
|
|
1491
1493
|
default: b(() => [
|
|
@@ -1506,11 +1508,11 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1506
1508
|
t: "f",
|
|
1507
1509
|
formInfo: Y.value
|
|
1508
1510
|
}, pe({ _: 2 }, [
|
|
1509
|
-
|
|
1511
|
+
R(w.$slots, (we, he) => ({
|
|
1510
1512
|
name: he,
|
|
1511
|
-
fn: b((
|
|
1513
|
+
fn: b((De) => [
|
|
1512
1514
|
$(w.$slots, he, {
|
|
1513
|
-
data:
|
|
1515
|
+
data: De,
|
|
1514
1516
|
item: p,
|
|
1515
1517
|
model: l.value
|
|
1516
1518
|
}, void 0, !0)
|
|
@@ -1529,19 +1531,19 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1529
1531
|
]),
|
|
1530
1532
|
_: 3
|
|
1531
1533
|
}, 16, ["model"]),
|
|
1532
|
-
(Z = (J = (
|
|
1534
|
+
(Z = (J = (L = l.value) == null ? void 0 : L.form) == null ? void 0 : J.footer) != null && Z.hidden ? ye("", !0) : $(w.$slots, "f-footer", { key: 0 }, () => [
|
|
1533
1535
|
N("div", {
|
|
1534
|
-
style:
|
|
1536
|
+
style: Oe(l.value.form.footer.style)
|
|
1535
1537
|
}, [
|
|
1536
1538
|
$(w.$slots, "f-footer-left", {}, void 0, !0),
|
|
1537
|
-
(n(!0), x(X, null,
|
|
1539
|
+
(n(!0), x(X, null, R(oe.value, (p) => (n(), x(X, null, [
|
|
1538
1540
|
$(w.$slots, p.name + "-left", {}, void 0, !0),
|
|
1539
1541
|
$(w.$slots, p.name, {}, () => [
|
|
1540
1542
|
G(q, F({ ref_for: !0 }, p.info, {
|
|
1541
1543
|
onClick: pt((f) => p.click(Y.value, l.value), ["stop"])
|
|
1542
1544
|
}), {
|
|
1543
1545
|
default: b(() => [
|
|
1544
|
-
|
|
1546
|
+
Ae(ke(p == null ? void 0 : p.label), 1)
|
|
1545
1547
|
]),
|
|
1546
1548
|
_: 2
|
|
1547
1549
|
}, 1040, ["onClick"])
|
|
@@ -1554,7 +1556,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1554
1556
|
]);
|
|
1555
1557
|
};
|
|
1556
1558
|
}
|
|
1557
|
-
}), wt = /* @__PURE__ */ Qe(
|
|
1559
|
+
}), wt = /* @__PURE__ */ Qe(Sl, [["__scopeId", "data-v-01434945"]]), Vt = {
|
|
1558
1560
|
__name: "g-query-item",
|
|
1559
1561
|
props: /* @__PURE__ */ Xe(["more"], {
|
|
1560
1562
|
modelValue: { required: !0 },
|
|
@@ -1571,27 +1573,27 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1571
1573
|
const E = d(V);
|
|
1572
1574
|
return (E == null ? void 0 : E.type) || V.type;
|
|
1573
1575
|
}, Y = (V) => {
|
|
1574
|
-
var
|
|
1576
|
+
var z;
|
|
1575
1577
|
const E = d(V);
|
|
1576
|
-
let k = (E == null ? void 0 : E.width) || ((
|
|
1578
|
+
let k = (E == null ? void 0 : E.width) || ((z = i.value.queryItems) == null ? void 0 : z.width) || "100%";
|
|
1577
1579
|
return isNaN(k) || (k += "px"), k;
|
|
1578
1580
|
};
|
|
1579
1581
|
return (V, E) => {
|
|
1580
1582
|
const k = A("el-form-item");
|
|
1581
|
-
return n(!0), x(X, null,
|
|
1583
|
+
return n(!0), x(X, null, R(e(r.more), (z, K) => $(V.$slots, `q-${K}`, {
|
|
1582
1584
|
key: K,
|
|
1583
|
-
item:
|
|
1585
|
+
item: z,
|
|
1584
1586
|
queryModel: l.value,
|
|
1585
1587
|
model: i.value
|
|
1586
1588
|
}, () => [
|
|
1587
1589
|
G(k, F({
|
|
1588
|
-
label:
|
|
1589
|
-
style: { width: Y(
|
|
1590
|
+
label: z.label,
|
|
1591
|
+
style: { width: Y(z) },
|
|
1590
1592
|
ref_for: !0
|
|
1591
|
-
}, { ...i.value.queryItems, ...d(
|
|
1593
|
+
}, { ...i.value.queryItems, ...d(z) }), {
|
|
1592
1594
|
label: b(() => [
|
|
1593
1595
|
$(V.$slots, `q-${K}-label`, {
|
|
1594
|
-
item:
|
|
1596
|
+
item: z,
|
|
1595
1597
|
model: i.value
|
|
1596
1598
|
})
|
|
1597
1599
|
]),
|
|
@@ -1599,19 +1601,19 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1599
1601
|
G(ht, {
|
|
1600
1602
|
modelValue: l.value[K],
|
|
1601
1603
|
"onUpdate:modelValue": (ne) => l.value[K] = ne,
|
|
1602
|
-
item: { ...
|
|
1604
|
+
item: { ...z == null ? void 0 : z.editor, ...d(z) },
|
|
1603
1605
|
ctrlKey: K,
|
|
1604
|
-
ctrlType: D(
|
|
1606
|
+
ctrlType: D(z),
|
|
1605
1607
|
model: i.value,
|
|
1606
1608
|
t: "q",
|
|
1607
1609
|
formInfo: l.value
|
|
1608
1610
|
}, pe({ _: 2 }, [
|
|
1609
|
-
|
|
1611
|
+
R(Object.keys(V.$slots), (ne) => ({
|
|
1610
1612
|
name: ne,
|
|
1611
1613
|
fn: b((S) => [
|
|
1612
1614
|
$(V.$slots, ne, {
|
|
1613
1615
|
data: S,
|
|
1614
|
-
item:
|
|
1616
|
+
item: z,
|
|
1615
1617
|
model: i.value
|
|
1616
1618
|
})
|
|
1617
1619
|
])
|
|
@@ -1623,10 +1625,10 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1623
1625
|
])), 128);
|
|
1624
1626
|
};
|
|
1625
1627
|
}
|
|
1626
|
-
},
|
|
1628
|
+
}, Tl = {
|
|
1627
1629
|
key: 0,
|
|
1628
1630
|
class: "outer"
|
|
1629
|
-
},
|
|
1631
|
+
}, Fl = { class: "inner" }, xl = {
|
|
1630
1632
|
__name: "g-query",
|
|
1631
1633
|
props: {
|
|
1632
1634
|
modelValue: { required: !0 },
|
|
@@ -1653,6 +1655,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1653
1655
|
hidden: !0,
|
|
1654
1656
|
type: "primary",
|
|
1655
1657
|
label: "更多",
|
|
1658
|
+
icon: () => Ee(ul),
|
|
1656
1659
|
click: () => {
|
|
1657
1660
|
d.value = !d.value;
|
|
1658
1661
|
}
|
|
@@ -1662,6 +1665,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1662
1665
|
type: "primary",
|
|
1663
1666
|
hidden: !1,
|
|
1664
1667
|
plain: !1,
|
|
1668
|
+
icon: () => Ee(It),
|
|
1665
1669
|
click: () => {
|
|
1666
1670
|
l("reset", D.value);
|
|
1667
1671
|
}
|
|
@@ -1670,6 +1674,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1670
1674
|
hidden: !1,
|
|
1671
1675
|
type: "primary",
|
|
1672
1676
|
label: "查询",
|
|
1677
|
+
icon: () => Ee(nl),
|
|
1673
1678
|
click: () => {
|
|
1674
1679
|
l("query", D.value), d.value = !1;
|
|
1675
1680
|
}
|
|
@@ -1685,7 +1690,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1685
1690
|
}
|
|
1686
1691
|
}
|
|
1687
1692
|
};
|
|
1688
|
-
r.value.query =
|
|
1693
|
+
r.value.query = xe(Y, e == null ? void 0 : e.query, r.value.query);
|
|
1689
1694
|
const V = {
|
|
1690
1695
|
2: {
|
|
1691
1696
|
title: "更多查询",
|
|
@@ -1703,7 +1708,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1703
1708
|
trigger: "click"
|
|
1704
1709
|
}
|
|
1705
1710
|
};
|
|
1706
|
-
r.value.query.more.dialog =
|
|
1711
|
+
r.value.query.more.dialog = xe(
|
|
1707
1712
|
V[r.value.query.more.mode] || {},
|
|
1708
1713
|
r.value.query.more.dialog
|
|
1709
1714
|
);
|
|
@@ -1716,26 +1721,26 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1716
1721
|
// width: "280px"
|
|
1717
1722
|
}
|
|
1718
1723
|
};
|
|
1719
|
-
r.value.queryItems =
|
|
1724
|
+
r.value.queryItems = xe(E, e == null ? void 0 : e.queryItems, r.value.queryItems);
|
|
1720
1725
|
const k = (S, Q) => {
|
|
1721
1726
|
const fe = Object.keys(S.slots).filter((W) => W !== "default").reduce((W, me) => (W[me] = (de) => S.slots[me]({
|
|
1722
1727
|
model: r.value
|
|
1723
1728
|
// 传递当前模型数据
|
|
1724
1729
|
}), W), {});
|
|
1725
|
-
return
|
|
1730
|
+
return Ee(Vt, {
|
|
1726
1731
|
modelValue: r.value,
|
|
1727
1732
|
"onUpdate:modelValue": (W) => r.value = W,
|
|
1728
1733
|
info: D.value,
|
|
1729
1734
|
"onUpdate:info": (W) => D.value = W,
|
|
1730
1735
|
more: Q
|
|
1731
1736
|
}, fe);
|
|
1732
|
-
},
|
|
1733
|
-
var fe, W, me, de,
|
|
1737
|
+
}, z = xt(), K = () => {
|
|
1738
|
+
var fe, W, me, de, Ce, se, oe, ve, Me;
|
|
1734
1739
|
const S = [
|
|
1735
1740
|
{
|
|
1736
1741
|
key: "query",
|
|
1737
1742
|
hidden: (me = (W = (fe = r.value) == null ? void 0 : fe.query) == null ? void 0 : W.query) == null ? void 0 : me.hidden,
|
|
1738
|
-
component:
|
|
1743
|
+
component: qe,
|
|
1739
1744
|
props: {
|
|
1740
1745
|
...r.value.query.query,
|
|
1741
1746
|
onClick: r.value.query.query.click
|
|
@@ -1745,8 +1750,8 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1745
1750
|
},
|
|
1746
1751
|
{
|
|
1747
1752
|
key: "reset",
|
|
1748
|
-
hidden: (se = (
|
|
1749
|
-
component:
|
|
1753
|
+
hidden: (se = (Ce = (de = r.value) == null ? void 0 : de.query) == null ? void 0 : Ce.reset) == null ? void 0 : se.hidden,
|
|
1754
|
+
component: qe,
|
|
1750
1755
|
props: {
|
|
1751
1756
|
...r.value.query.reset,
|
|
1752
1757
|
onClick: r.value.query.reset.click
|
|
@@ -1756,54 +1761,54 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1756
1761
|
},
|
|
1757
1762
|
{
|
|
1758
1763
|
key: "more",
|
|
1759
|
-
hidden: (
|
|
1760
|
-
component: r.value.query.more.mode === 3 ? gt :
|
|
1764
|
+
hidden: (Me = (ve = (oe = r.value) == null ? void 0 : oe.query) == null ? void 0 : ve.more) == null ? void 0 : Me.hidden,
|
|
1765
|
+
component: r.value.query.more.mode === 3 ? gt : qe,
|
|
1761
1766
|
props: r.value.query.more.mode === 3 ? { ...r.value.query.more.dialog } : {
|
|
1762
1767
|
...r.value.query.more,
|
|
1763
1768
|
onClick: r.value.query.more.click
|
|
1764
1769
|
},
|
|
1765
1770
|
label: r.value.query.more.label,
|
|
1766
1771
|
sort: r.value.query.more.sort || 0,
|
|
1767
|
-
content: r.value.query.more.mode === 3 ? () =>
|
|
1772
|
+
content: r.value.query.more.mode === 3 ? () => Ee(ft, {
|
|
1768
1773
|
class: "query-form",
|
|
1769
|
-
...
|
|
1770
|
-
}, () => k({ slots:
|
|
1774
|
+
...Ye(r.value.query, (ee) => !["query", "more", "reset"].includes(ee))
|
|
1775
|
+
}, () => k({ slots: z }, !0)) : null
|
|
1771
1776
|
}
|
|
1772
1777
|
];
|
|
1773
|
-
return S.sort((ee, ae) => ee.sort - ae.sort), S.filter((ee) => !ee.hidden).map((ee) => ee.key === "more" && ee.component === gt ?
|
|
1774
|
-
reference: () =>
|
|
1778
|
+
return S.sort((ee, ae) => ee.sort - ae.sort), S.filter((ee) => !ee.hidden).map((ee) => ee.key === "more" && ee.component === gt ? Ee(gt, ee.props, {
|
|
1779
|
+
reference: () => Ee(qe, r.value.query.more, () => ee.label),
|
|
1775
1780
|
default: ee.content
|
|
1776
|
-
}) : (ee.props.slot = "query-" + ee.key, ee.label ?
|
|
1781
|
+
}) : (ee.props.slot = "query-" + ee.key, ee.label ? Ee(ee.component, ee.props, () => ee.label) : Ee(ee.component, ee.props)));
|
|
1777
1782
|
}, ne = Ke(() => ({
|
|
1778
1783
|
diplay: "flex",
|
|
1779
1784
|
flexDirection: r.value.query.container.mode === "row" ? "row" : "column"
|
|
1780
1785
|
}));
|
|
1781
1786
|
return (S, Q) => {
|
|
1782
|
-
var me, de,
|
|
1787
|
+
var me, de, Ce, se, oe, ve, Me, ee, ae, te, Ie, w, v, m, a, C, g;
|
|
1783
1788
|
const fe = A("el-form-item"), W = A("el-drawer");
|
|
1784
1789
|
return n(), x(X, null, [
|
|
1785
1790
|
N("div", {
|
|
1786
1791
|
class: "g-query-container",
|
|
1787
|
-
style:
|
|
1792
|
+
style: Oe({ ...ne.value, ...((de = (me = r.value.query) == null ? void 0 : me.container) == null ? void 0 : de.style) || {} })
|
|
1788
1793
|
}, [
|
|
1789
1794
|
G(U(ft), F({
|
|
1790
1795
|
onSubmit: Q[0] || (Q[0] = pt(() => {
|
|
1791
1796
|
}, ["prevent"]))
|
|
1792
|
-
}, U(
|
|
1797
|
+
}, U(Ye)(r.value.query, (h) => !["query", "more", "reset", "btns"].includes(h))), {
|
|
1793
1798
|
default: b(() => {
|
|
1794
1799
|
var h, q;
|
|
1795
1800
|
return [
|
|
1796
1801
|
(n(), M(Ne(k({ slots: S.$slots }, void 0)))),
|
|
1797
1802
|
((q = (h = r.value.query) == null ? void 0 : h.container) == null ? void 0 : q.inline) === !0 ? (n(), M(fe, { key: 0 }, {
|
|
1798
1803
|
default: b(() => {
|
|
1799
|
-
var
|
|
1804
|
+
var L, J, Z, p, f;
|
|
1800
1805
|
return [
|
|
1801
1806
|
N("div", {
|
|
1802
|
-
style:
|
|
1807
|
+
style: Oe((J = (L = r.value.query) == null ? void 0 : L.btns) == null ? void 0 : J.style)
|
|
1803
1808
|
}, [
|
|
1804
1809
|
r.value.query.group ? (n(), M(U(mt), { key: 0 }, {
|
|
1805
1810
|
default: b(() => [
|
|
1806
|
-
(n(!0), x(X, null,
|
|
1811
|
+
(n(!0), x(X, null, R(K(), (re) => $(S.$slots, re.props.slot, {}, () => [
|
|
1807
1812
|
(n(), M(Ne(re)))
|
|
1808
1813
|
], !0)), 256)),
|
|
1809
1814
|
$(S.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1812,12 +1817,12 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1812
1817
|
})) : (n(), x(X, { key: 1 }, [
|
|
1813
1818
|
(f = (p = (Z = r.value) == null ? void 0 : Z.query) == null ? void 0 : p.btns) != null && f.group ? (n(), M(U(mt), { key: 0 }, {
|
|
1814
1819
|
default: b(() => [
|
|
1815
|
-
(n(!0), x(X, null,
|
|
1820
|
+
(n(!0), x(X, null, R(K(), (re) => $(S.$slots, re.props.slot, {}, () => [
|
|
1816
1821
|
(n(), M(Ne(re)))
|
|
1817
1822
|
], !0)), 256))
|
|
1818
1823
|
]),
|
|
1819
1824
|
_: 3
|
|
1820
|
-
})) : (n(!0), x(X, { key: 1 },
|
|
1825
|
+
})) : (n(!0), x(X, { key: 1 }, R(K(), (re) => $(S.$slots, re.props.slot, {}, () => [
|
|
1821
1826
|
(n(), M(Ne(re)))
|
|
1822
1827
|
], !0)), 256)),
|
|
1823
1828
|
$(S.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1831,13 +1836,13 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1831
1836
|
}),
|
|
1832
1837
|
_: 3
|
|
1833
1838
|
}, 16),
|
|
1834
|
-
((oe = (se = (
|
|
1839
|
+
((oe = (se = (Ce = r.value) == null ? void 0 : Ce.query) == null ? void 0 : se.container) == null ? void 0 : oe.inline) === !1 ? (n(), x("div", {
|
|
1835
1840
|
key: 0,
|
|
1836
|
-
style:
|
|
1841
|
+
style: Oe((Me = (ve = r.value.query) == null ? void 0 : ve.btns) == null ? void 0 : Me.style)
|
|
1837
1842
|
}, [
|
|
1838
1843
|
r.value.query.group ? (n(), M(U(mt), { key: 0 }, {
|
|
1839
1844
|
default: b(() => [
|
|
1840
|
-
(n(!0), x(X, null,
|
|
1845
|
+
(n(!0), x(X, null, R(K(), (h) => $(S.$slots, h.props.slot, {}, () => [
|
|
1841
1846
|
(n(), M(Ne(h)))
|
|
1842
1847
|
], !0)), 256)),
|
|
1843
1848
|
$(S.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1846,19 +1851,19 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1846
1851
|
})) : (n(), x(X, { key: 1 }, [
|
|
1847
1852
|
(ae = (ee = r.value.query) == null ? void 0 : ee.btns) != null && ae.group ? (n(), M(U(mt), { key: 0 }, {
|
|
1848
1853
|
default: b(() => [
|
|
1849
|
-
(n(!0), x(X, null,
|
|
1854
|
+
(n(!0), x(X, null, R(K(), (h) => $(S.$slots, h.props.slot, {}, () => [
|
|
1850
1855
|
(n(), M(Ne(h)))
|
|
1851
1856
|
], !0)), 256))
|
|
1852
1857
|
]),
|
|
1853
1858
|
_: 3
|
|
1854
|
-
})) : (n(!0), x(X, { key: 1 },
|
|
1859
|
+
})) : (n(!0), x(X, { key: 1 }, R(K(), (h) => $(S.$slots, h.props.slot, {}, () => [
|
|
1855
1860
|
(n(), M(Ne(h)))
|
|
1856
1861
|
], !0)), 256)),
|
|
1857
1862
|
$(S.$slots, "q-btns", {}, void 0, !0)
|
|
1858
1863
|
], 64))
|
|
1859
1864
|
], 4)) : ye("", !0)
|
|
1860
1865
|
], 4),
|
|
1861
|
-
d.value && !((w = (
|
|
1866
|
+
d.value && !((w = (Ie = (te = r.value) == null ? void 0 : te.query) == null ? void 0 : Ie.more) != null && w.hidden) && r.value.query.more.mode == 2 ? (n(), M(W, F({
|
|
1862
1867
|
key: 0,
|
|
1863
1868
|
modelValue: d.value,
|
|
1864
1869
|
"onUpdate:modelValue": Q[6] || (Q[6] = (h) => d.value = h),
|
|
@@ -1869,7 +1874,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1869
1874
|
G(U(ft), F({
|
|
1870
1875
|
onSubmit: Q[3] || (Q[3] = pt(() => {
|
|
1871
1876
|
}, ["prevent"]))
|
|
1872
|
-
}, U(
|
|
1877
|
+
}, U(Ye)(r.value.query, (h) => !["query", "more", "reset"].includes(h)), { style: { width: "98%" } }), {
|
|
1873
1878
|
default: b(() => [
|
|
1874
1879
|
G(Vt, {
|
|
1875
1880
|
modelValue: r.value,
|
|
@@ -1878,7 +1883,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1878
1883
|
"onUpdate:info": Q[2] || (Q[2] = (h) => D.value = h),
|
|
1879
1884
|
more: !0
|
|
1880
1885
|
}, pe({ _: 2 }, [
|
|
1881
|
-
|
|
1886
|
+
R(S.$slots, (h, q, L) => ({
|
|
1882
1887
|
name: q,
|
|
1883
1888
|
fn: b((J) => [
|
|
1884
1889
|
$(S.$slots, q, { model: r.value }, void 0, !0)
|
|
@@ -1894,20 +1899,20 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1894
1899
|
(g = (C = (a = (m = (v = r.value) == null ? void 0 : v.query) == null ? void 0 : m.more) == null ? void 0 : a.dialog) == null ? void 0 : C.footer) != null && g.hidden ? void 0 : {
|
|
1895
1900
|
name: "footer",
|
|
1896
1901
|
fn: b(() => [
|
|
1897
|
-
N("div", $t(
|
|
1898
|
-
G(U(
|
|
1902
|
+
N("div", $t(Xt(r.value.query.more.dialog.footer)), [
|
|
1903
|
+
G(U(qe), F(r.value.query.query, {
|
|
1899
1904
|
onClick: Q[4] || (Q[4] = (h) => r.value.query.query.click())
|
|
1900
1905
|
}), {
|
|
1901
1906
|
default: b(() => [
|
|
1902
|
-
|
|
1907
|
+
Ae(ke(r.value.query.query.label), 1)
|
|
1903
1908
|
]),
|
|
1904
1909
|
_: 1
|
|
1905
1910
|
}, 16),
|
|
1906
|
-
G(U(
|
|
1911
|
+
G(U(qe), F(r.value.query.reset, {
|
|
1907
1912
|
onClick: Q[5] || (Q[5] = (h) => r.value.query.reset.click())
|
|
1908
1913
|
}), {
|
|
1909
1914
|
default: b(() => [
|
|
1910
|
-
|
|
1915
|
+
Ae(ke(r.value.query.reset.label), 1)
|
|
1911
1916
|
]),
|
|
1912
1917
|
_: 1
|
|
1913
1918
|
}, 16)
|
|
@@ -1916,27 +1921,27 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1916
1921
|
key: "0"
|
|
1917
1922
|
}
|
|
1918
1923
|
]), 1040, ["modelValue"])) : ye("", !0),
|
|
1919
|
-
G(
|
|
1924
|
+
G(Gt, {
|
|
1920
1925
|
duration: 300,
|
|
1921
1926
|
name: "nested",
|
|
1922
1927
|
style: { padding: "10px" }
|
|
1923
1928
|
}, {
|
|
1924
1929
|
default: b(() => {
|
|
1925
|
-
var h, q,
|
|
1930
|
+
var h, q, L;
|
|
1926
1931
|
return [
|
|
1927
|
-
d.value && !((
|
|
1928
|
-
N("div",
|
|
1929
|
-
r.value.query.more.mode == 1 ?
|
|
1932
|
+
d.value && !((L = (q = (h = r.value) == null ? void 0 : h.query) == null ? void 0 : q.more) != null && L.hidden) && r.value.query.more.mode == 1 ? (n(), x("div", Tl, [
|
|
1933
|
+
N("div", Fl, [
|
|
1934
|
+
r.value.query.more.mode == 1 ? Qt((n(), M(U(ft), F({
|
|
1930
1935
|
key: 0,
|
|
1931
1936
|
onSubmit: Q[7] || (Q[7] = pt(() => {
|
|
1932
1937
|
}, ["prevent"]))
|
|
1933
|
-
}, U(
|
|
1938
|
+
}, U(Ye)(r.value.query, (J) => !["query", "more", "reset"].includes(J))), {
|
|
1934
1939
|
default: b(() => [
|
|
1935
1940
|
(n(), M(Ne(k({ slots: S.$slots }, !0))))
|
|
1936
1941
|
]),
|
|
1937
1942
|
_: 1
|
|
1938
1943
|
}, 16)), [
|
|
1939
|
-
[
|
|
1944
|
+
[Zt, d.value]
|
|
1940
1945
|
]) : ye("", !0)
|
|
1941
1946
|
])
|
|
1942
1947
|
])) : ye("", !0)
|
|
@@ -1947,10 +1952,10 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1947
1952
|
], 64);
|
|
1948
1953
|
};
|
|
1949
1954
|
}
|
|
1950
|
-
},
|
|
1955
|
+
}, ql = /* @__PURE__ */ Qe(xl, [["__scopeId", "data-v-3f2b77d6"]]), Ol = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Il = { style: { padding: "10px", "box-sizing": "border-box" } }, Al = { style: { margin: "10px" } }, Bl = {
|
|
1951
1956
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
1952
1957
|
id: "excelSortEl"
|
|
1953
|
-
},
|
|
1958
|
+
}, Yl = ["textContent"], Ul = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Rl = {
|
|
1954
1959
|
__name: "check-excel-item",
|
|
1955
1960
|
props: {
|
|
1956
1961
|
items: Array,
|
|
@@ -1981,20 +1986,20 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
1981
1986
|
});
|
|
1982
1987
|
};
|
|
1983
1988
|
return rt(() => {
|
|
1984
|
-
const V = new
|
|
1989
|
+
const V = new Yt(document.getElementById("excelSortEl"), {
|
|
1985
1990
|
animation: 150,
|
|
1986
1991
|
onEnd: () => {
|
|
1987
1992
|
V.toArray();
|
|
1988
1993
|
}
|
|
1989
1994
|
}), E = V;
|
|
1990
|
-
|
|
1995
|
+
Jt(() => {
|
|
1991
1996
|
E && E.destroy();
|
|
1992
1997
|
});
|
|
1993
1998
|
}), (V, E) => {
|
|
1994
|
-
const k = A("el-divider"),
|
|
1995
|
-
return n(), x("div",
|
|
1996
|
-
N("div",
|
|
1997
|
-
N("div",
|
|
1999
|
+
const k = A("el-divider"), z = A("el-alert"), K = A("el-checkbox"), ne = A("el-button");
|
|
2000
|
+
return n(), x("div", Ol, [
|
|
2001
|
+
N("div", Il, [
|
|
2002
|
+
N("div", Al, [
|
|
1998
2003
|
N("a", {
|
|
1999
2004
|
onClick: d,
|
|
2000
2005
|
style: { cursor: "pointer" }
|
|
@@ -2005,7 +2010,7 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
2005
2010
|
style: { cursor: "pointer" }
|
|
2006
2011
|
}, "全不选")
|
|
2007
2012
|
]),
|
|
2008
|
-
G(
|
|
2013
|
+
G(z, {
|
|
2009
2014
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
2010
2015
|
type: "warning",
|
|
2011
2016
|
"show-icon": "",
|
|
@@ -2013,8 +2018,8 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
2013
2018
|
style: { "margin-bottom": "10px" }
|
|
2014
2019
|
}),
|
|
2015
2020
|
E[0] || (E[0] = N("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2016
|
-
N("div",
|
|
2017
|
-
(n(!0), x(X, null,
|
|
2021
|
+
N("div", Bl, [
|
|
2022
|
+
(n(!0), x(X, null, R(e.value, (S) => (n(), M(K, {
|
|
2018
2023
|
class: "check-box-hover",
|
|
2019
2024
|
style: { width: "120px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "3px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
2020
2025
|
"data-id": S.key,
|
|
@@ -2025,43 +2030,44 @@ const bt = /* @__PURE__ */ il(dl), At = {
|
|
|
2025
2030
|
}, {
|
|
2026
2031
|
default: b(() => [
|
|
2027
2032
|
N("span", {
|
|
2028
|
-
textContent:
|
|
2033
|
+
textContent: ke(S.label),
|
|
2029
2034
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2030
|
-
}, null, 8,
|
|
2035
|
+
}, null, 8, Yl)
|
|
2031
2036
|
]),
|
|
2032
2037
|
_: 2
|
|
2033
2038
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2034
2039
|
])
|
|
2035
2040
|
]),
|
|
2036
|
-
N("div",
|
|
2041
|
+
N("div", Ul, [
|
|
2037
2042
|
G(ne, {
|
|
2038
2043
|
type: "primary",
|
|
2039
2044
|
onClick: Y,
|
|
2045
|
+
icon: U(Bt),
|
|
2040
2046
|
disabled: e.value.filter((S) => S.value).length < 1
|
|
2041
2047
|
}, {
|
|
2042
2048
|
default: b(() => [
|
|
2043
|
-
|
|
2049
|
+
Ae(ke(r.commitText), 1)
|
|
2044
2050
|
]),
|
|
2045
2051
|
_: 1
|
|
2046
|
-
}, 8, ["disabled"])
|
|
2052
|
+
}, 8, ["icon", "disabled"])
|
|
2047
2053
|
])
|
|
2048
2054
|
]);
|
|
2049
2055
|
};
|
|
2050
2056
|
}
|
|
2051
|
-
},
|
|
2052
|
-
|
|
2057
|
+
}, zl = /* @__PURE__ */ Qe(Rl, [["__scopeId", "data-v-630c4ced"]]), Pe = new vl("gyc");
|
|
2058
|
+
Pe.version(1).stores({
|
|
2053
2059
|
//记录表格项设置信息
|
|
2054
2060
|
tableInfo: "++id,[page+key],page,key,showCol,width,sort",
|
|
2055
2061
|
//记录表格分页条数
|
|
2056
2062
|
pagesize: "++id,page,size"
|
|
2057
2063
|
});
|
|
2058
2064
|
async function yt(c, i, r = {}) {
|
|
2059
|
-
if (await
|
|
2060
|
-
let e = await
|
|
2061
|
-
return await
|
|
2065
|
+
if (await Pe.tableInfo.where({ page: c, key: i }).count() > 0) {
|
|
2066
|
+
let e = await Pe.tableInfo.where({ page: c, key: i }).first();
|
|
2067
|
+
return await Pe.tableInfo.put({ ...e, ...r }), "update success";
|
|
2062
2068
|
} else {
|
|
2063
2069
|
let e = { showCol: !0, width: "auto", sort: 0, ...r };
|
|
2064
|
-
return await
|
|
2070
|
+
return await Pe.tableInfo.add({ page: c, key: i, ...e }), "add success";
|
|
2065
2071
|
}
|
|
2066
2072
|
}
|
|
2067
2073
|
async function St(c, i, r = {}) {
|
|
@@ -2070,35 +2076,35 @@ async function St(c, i, r = {}) {
|
|
|
2070
2076
|
);
|
|
2071
2077
|
return await Promise.all(l), "batch update success";
|
|
2072
2078
|
}
|
|
2073
|
-
async function
|
|
2074
|
-
return await
|
|
2079
|
+
async function jl(c) {
|
|
2080
|
+
return await Pe.tableInfo.where({ page: c }).toArray();
|
|
2075
2081
|
}
|
|
2076
|
-
async function
|
|
2082
|
+
async function Pl(c) {
|
|
2077
2083
|
try {
|
|
2078
|
-
const i = await
|
|
2084
|
+
const i = await Pe.tableInfo.where({ page: c }).delete();
|
|
2079
2085
|
return console.log("删除了" + i + "条数据"), i;
|
|
2080
2086
|
} catch (i) {
|
|
2081
2087
|
throw console.error("删除表格项设置信息时出错:", i), i;
|
|
2082
2088
|
}
|
|
2083
2089
|
}
|
|
2084
|
-
async function
|
|
2085
|
-
if (await
|
|
2086
|
-
let l = await
|
|
2087
|
-
return await
|
|
2090
|
+
async function Ll(c, i) {
|
|
2091
|
+
if (await Pe.pagesize.where({ page: c }).count() > 0) {
|
|
2092
|
+
let l = await Pe.pagesize.where({ page: c }).first();
|
|
2093
|
+
return await Pe.pagesize.put({ ...l, size: i }), "update success";
|
|
2088
2094
|
} else
|
|
2089
|
-
return await
|
|
2095
|
+
return await Pe.pagesize.add({ page: c, size: i }), "add success";
|
|
2090
2096
|
}
|
|
2091
|
-
async function
|
|
2092
|
-
let i = await
|
|
2097
|
+
async function Hl(c) {
|
|
2098
|
+
let i = await Pe.pagesize.where({ page: c }).first();
|
|
2093
2099
|
return (i == null ? void 0 : i.size) || 20;
|
|
2094
2100
|
}
|
|
2095
|
-
const
|
|
2101
|
+
const Nl = {
|
|
2096
2102
|
style: { margin: "10px" },
|
|
2097
2103
|
class: "allcheck"
|
|
2098
|
-
},
|
|
2104
|
+
}, Wl = {
|
|
2099
2105
|
id: "cols",
|
|
2100
2106
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2101
|
-
},
|
|
2107
|
+
}, Xl = ["textContent"], Gl = {
|
|
2102
2108
|
__name: "columns-setting",
|
|
2103
2109
|
props: /* @__PURE__ */ Xe({
|
|
2104
2110
|
tuid: {
|
|
@@ -2115,8 +2121,8 @@ const Bl = {
|
|
|
2115
2121
|
E ? l.value[k].showCol = !0 : l.value[k].showCol = !1;
|
|
2116
2122
|
try {
|
|
2117
2123
|
await yt(i.tuid, k, { showCol: E });
|
|
2118
|
-
} catch (
|
|
2119
|
-
console.error("列显示状态保存信息时出错:",
|
|
2124
|
+
} catch (z) {
|
|
2125
|
+
console.error("列显示状态保存信息时出错:", z), We({
|
|
2120
2126
|
type: "error",
|
|
2121
2127
|
message: "列显示状态保存信息失败!"
|
|
2122
2128
|
});
|
|
@@ -2124,7 +2130,7 @@ const Bl = {
|
|
|
2124
2130
|
}, d = () => {
|
|
2125
2131
|
const E = document.getElementById("cols");
|
|
2126
2132
|
if (E) {
|
|
2127
|
-
let k =
|
|
2133
|
+
let k = Yt.create(E, {
|
|
2128
2134
|
animation: 150,
|
|
2129
2135
|
filter: ".filtered",
|
|
2130
2136
|
//
|
|
@@ -2173,7 +2179,7 @@ const Bl = {
|
|
|
2173
2179
|
cancelButtonText: "取消",
|
|
2174
2180
|
type: "warning"
|
|
2175
2181
|
}).then(() => {
|
|
2176
|
-
|
|
2182
|
+
Pl(i.tuid).then((E) => {
|
|
2177
2183
|
window.location.reload();
|
|
2178
2184
|
}).catch((E) => {
|
|
2179
2185
|
console.error("复位操作出错:", E), We({
|
|
@@ -2193,13 +2199,13 @@ const Bl = {
|
|
|
2193
2199
|
width: k.width || "auto"
|
|
2194
2200
|
})).sort((E, k) => E.sort - k.sort), d();
|
|
2195
2201
|
}), (E, k) => {
|
|
2196
|
-
const
|
|
2202
|
+
const z = A("el-divider"), K = A("el-alert"), ne = A("el-checkbox");
|
|
2197
2203
|
return n(), x("div", null, [
|
|
2198
|
-
N("div",
|
|
2204
|
+
N("div", Nl, [
|
|
2199
2205
|
N("a", { onClick: D }, "全选"),
|
|
2200
|
-
G(
|
|
2206
|
+
G(z, { direction: "vertical" }),
|
|
2201
2207
|
N("a", { onClick: Y }, "全不选"),
|
|
2202
|
-
G(
|
|
2208
|
+
G(z, { direction: "vertical" }),
|
|
2203
2209
|
N("a", { onClick: V }, "复位")
|
|
2204
2210
|
]),
|
|
2205
2211
|
G(K, {
|
|
@@ -2210,8 +2216,8 @@ const Bl = {
|
|
|
2210
2216
|
style: { "margin-bottom": "10px" }
|
|
2211
2217
|
}),
|
|
2212
2218
|
N("div", null, [
|
|
2213
|
-
N("div",
|
|
2214
|
-
(n(!0), x(X, null,
|
|
2219
|
+
N("div", Wl, [
|
|
2220
|
+
(n(!0), x(X, null, R(r.value, (S) => (n(), M(ne, {
|
|
2215
2221
|
modelValue: S.showCol,
|
|
2216
2222
|
"onUpdate:modelValue": (Q) => S.showCol = Q,
|
|
2217
2223
|
"data-id": S.value,
|
|
@@ -2225,9 +2231,9 @@ const Bl = {
|
|
|
2225
2231
|
}, {
|
|
2226
2232
|
default: b(() => [
|
|
2227
2233
|
N("span", {
|
|
2228
|
-
textContent:
|
|
2234
|
+
textContent: ke(S.label),
|
|
2229
2235
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2230
|
-
}, null, 8,
|
|
2236
|
+
}, null, 8, Xl)
|
|
2231
2237
|
]),
|
|
2232
2238
|
_: 2
|
|
2233
2239
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2236,7 +2242,7 @@ const Bl = {
|
|
|
2236
2242
|
]);
|
|
2237
2243
|
};
|
|
2238
2244
|
}
|
|
2239
|
-
},
|
|
2245
|
+
}, Ql = /* @__PURE__ */ Qe(Gl, [["__scopeId", "data-v-70fe569f"]]), Zl = { class: "title" }, Jl = { class: "content" }, Kl = {
|
|
2240
2246
|
__name: "g-cell-toopTip",
|
|
2241
2247
|
props: {
|
|
2242
2248
|
content: {
|
|
@@ -2254,28 +2260,28 @@ const Bl = {
|
|
|
2254
2260
|
};
|
|
2255
2261
|
return (l, e) => (n(), x("div", {
|
|
2256
2262
|
class: "g-cell-toopTip",
|
|
2257
|
-
style:
|
|
2263
|
+
style: Oe({ width: i.column.width + "px" })
|
|
2258
2264
|
}, [
|
|
2259
|
-
N("div",
|
|
2265
|
+
N("div", Zl, [
|
|
2260
2266
|
e[0] || (e[0] = N("span", { class: "title-text" }, "内容", -1)),
|
|
2261
2267
|
N("span", {
|
|
2262
2268
|
class: "copy-btn",
|
|
2263
2269
|
onClick: r,
|
|
2264
2270
|
title: "复制内容"
|
|
2265
2271
|
}, [
|
|
2266
|
-
G(U(
|
|
2272
|
+
G(U(sl))
|
|
2267
2273
|
])
|
|
2268
2274
|
]),
|
|
2269
|
-
N("div",
|
|
2275
|
+
N("div", Jl, ke(i.content), 1)
|
|
2270
2276
|
], 4));
|
|
2271
2277
|
}
|
|
2272
|
-
},
|
|
2278
|
+
}, ea = /* @__PURE__ */ Qe(Kl, [["__scopeId", "data-v-f28912da"]]), ta = { key: 0 }, la = { style: { display: "flex", "margin-top": "-2px" } }, aa = { style: { display: "flex", flex: "1" } }, ra = {
|
|
2273
2279
|
style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
|
|
2274
2280
|
id: "table-form"
|
|
2275
|
-
},
|
|
2281
|
+
}, oa = { key: 1 }, ua = { style: { display: "flex" } }, na = { style: { display: "flex", flex: "1" } }, sa = { class: "g-table-container" }, ia = {
|
|
2276
2282
|
key: 0,
|
|
2277
2283
|
class: "table-query-container"
|
|
2278
|
-
},
|
|
2284
|
+
}, da = { class: "table-container" }, ca = ["innerHTML"], fa = /* @__PURE__ */ Object.assign({
|
|
2279
2285
|
name: "g-table",
|
|
2280
2286
|
inheritAttrs: !1
|
|
2281
2287
|
}, {
|
|
@@ -2300,7 +2306,7 @@ const Bl = {
|
|
|
2300
2306
|
var ot, ut, nt, st, it, dt, ct;
|
|
2301
2307
|
const l = r, e = Ge(c, "modelValue"), d = Ct("options"), D = le({}), Y = le(null), V = le(null), E = Object.entries(e.value).filter(([t, o]) => (o == null ? void 0 : o.search) !== void 0).map(([t, o]) => [t, o.value]);
|
|
2302
2308
|
D.value = Object.fromEntries(E);
|
|
2303
|
-
const k = le(!1),
|
|
2309
|
+
const k = le(!1), z = [
|
|
2304
2310
|
"type",
|
|
2305
2311
|
"index",
|
|
2306
2312
|
"label",
|
|
@@ -2329,7 +2335,7 @@ const Bl = {
|
|
|
2329
2335
|
"filter-multiple",
|
|
2330
2336
|
"filter-method",
|
|
2331
2337
|
"filtered-value"
|
|
2332
|
-
], K = le([]), ne = c, S = Dt(), Q = le({}), fe = le([]), W = le(null), me = le(""), de = le("/"),
|
|
2338
|
+
], K = le([]), ne = c, S = Dt(), Q = le({}), fe = le([]), W = le(null), me = le(""), de = le("/"), Ce = le({
|
|
2333
2339
|
autoWatch: !1,
|
|
2334
2340
|
data: [],
|
|
2335
2341
|
border: !0,
|
|
@@ -2338,7 +2344,7 @@ const Bl = {
|
|
|
2338
2344
|
fit: !1,
|
|
2339
2345
|
type: "hidden",
|
|
2340
2346
|
load: async () => {
|
|
2341
|
-
e.value.table.page.pageSize = await
|
|
2347
|
+
e.value.table.page.pageSize = await Hl(de.value);
|
|
2342
2348
|
let { currentPage: t, pageSize: o } = e.value.table.page;
|
|
2343
2349
|
try {
|
|
2344
2350
|
l(
|
|
@@ -2388,7 +2394,7 @@ const Bl = {
|
|
|
2388
2394
|
e.value.table.page.currentPage = t, e.value.table.load();
|
|
2389
2395
|
},
|
|
2390
2396
|
onSizeChange: (t) => {
|
|
2391
|
-
|
|
2397
|
+
Ll(de.value, t).then(() => {
|
|
2392
2398
|
e.value.table.page.pageSize = t, e.value.table.load();
|
|
2393
2399
|
});
|
|
2394
2400
|
}
|
|
@@ -2398,8 +2404,8 @@ const Bl = {
|
|
|
2398
2404
|
onSortChange: ({ column: t, prop: o, order: s }, y) => {
|
|
2399
2405
|
}
|
|
2400
2406
|
});
|
|
2401
|
-
e.value.table =
|
|
2402
|
-
|
|
2407
|
+
e.value.table = xe(
|
|
2408
|
+
Ce.value,
|
|
2403
2409
|
d == null ? void 0 : d.table,
|
|
2404
2410
|
e.value.table,
|
|
2405
2411
|
S
|
|
@@ -2419,6 +2425,7 @@ const Bl = {
|
|
|
2419
2425
|
text: !0,
|
|
2420
2426
|
type: "success",
|
|
2421
2427
|
mode: "dialog",
|
|
2428
|
+
icon: () => Ee(il),
|
|
2422
2429
|
auth: () => {
|
|
2423
2430
|
var T;
|
|
2424
2431
|
return !(((T = y == null ? void 0 : y.control) == null ? void 0 : T.add(y).inline) === !0 && s === 0);
|
|
@@ -2429,6 +2436,7 @@ const Bl = {
|
|
|
2429
2436
|
text: !0,
|
|
2430
2437
|
type: "primary",
|
|
2431
2438
|
mode: "dialog",
|
|
2439
|
+
icon: () => Ee(dl),
|
|
2432
2440
|
auth: () => {
|
|
2433
2441
|
var T;
|
|
2434
2442
|
return ((T = y == null ? void 0 : y.control) == null ? void 0 : T.add(y).inline) !== !0;
|
|
@@ -2438,6 +2446,7 @@ const Bl = {
|
|
|
2438
2446
|
text: !0,
|
|
2439
2447
|
label: "删除",
|
|
2440
2448
|
type: "danger",
|
|
2449
|
+
icon: () => Ee(At),
|
|
2441
2450
|
auth: () => {
|
|
2442
2451
|
var T;
|
|
2443
2452
|
return !(((T = y.control) == null ? void 0 : T.add(y).inline) === !0 && s === 0);
|
|
@@ -2455,6 +2464,7 @@ const Bl = {
|
|
|
2455
2464
|
save: (t, o, s, y) => ({
|
|
2456
2465
|
label: y.control.add(y).inline !== !0 ? "保存" : s === 0 ? "新增" : "保存",
|
|
2457
2466
|
text: !0,
|
|
2467
|
+
icon: () => Ee(Ot),
|
|
2458
2468
|
type: y.control.add(y).inline !== !0 || s === 0 ? "primary" : "success",
|
|
2459
2469
|
sort: -1,
|
|
2460
2470
|
auth: () => {
|
|
@@ -2468,6 +2478,7 @@ const Bl = {
|
|
|
2468
2478
|
type: "primary",
|
|
2469
2479
|
mode: "dialog",
|
|
2470
2480
|
inline: !1,
|
|
2481
|
+
icon: () => Ee(cl),
|
|
2471
2482
|
auth: () => !0
|
|
2472
2483
|
}),
|
|
2473
2484
|
download: (t) => ({
|
|
@@ -2475,7 +2486,8 @@ const Bl = {
|
|
|
2475
2486
|
text: !1,
|
|
2476
2487
|
type: "primary",
|
|
2477
2488
|
mode: "dialog",
|
|
2478
|
-
|
|
2489
|
+
icon: () => Ee(Bt),
|
|
2490
|
+
excelLabel: "下载EXCEL",
|
|
2479
2491
|
auth: () => !0
|
|
2480
2492
|
}),
|
|
2481
2493
|
setting: (t) => ({
|
|
@@ -2483,6 +2495,7 @@ const Bl = {
|
|
|
2483
2495
|
text: !1,
|
|
2484
2496
|
type: "primary",
|
|
2485
2497
|
mode: "dialog",
|
|
2498
|
+
icon: () => Ee(fl),
|
|
2486
2499
|
auth: () => !0
|
|
2487
2500
|
}),
|
|
2488
2501
|
dropdown: (t, o, s, y) => ({
|
|
@@ -2500,45 +2513,45 @@ const Bl = {
|
|
|
2500
2513
|
"button-props": { round: !0, plain: !0 }
|
|
2501
2514
|
})
|
|
2502
2515
|
};
|
|
2503
|
-
e.value.control =
|
|
2516
|
+
e.value.control = xe(
|
|
2504
2517
|
se,
|
|
2505
2518
|
d == null ? void 0 : d.control,
|
|
2506
2519
|
(nt = e.value) == null ? void 0 : nt.control
|
|
2507
2520
|
);
|
|
2508
2521
|
const oe = (t, o = !0) => {
|
|
2509
2522
|
const s = e.value.control[t], y = o ? (T, O, j, ce) => {
|
|
2510
|
-
var
|
|
2523
|
+
var Le, ze, Ze;
|
|
2511
2524
|
if (!T || !O || j == null)
|
|
2512
2525
|
return console.warn(`merge${t.charAt(0).toUpperCase() + t.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
2513
|
-
const $e = ((
|
|
2514
|
-
return
|
|
2526
|
+
const $e = ((Le = se[t]) == null ? void 0 : Le.call(se, T, O, j, ce)) || {}, Se = ((Ze = (ze = d == null ? void 0 : d.control) == null ? void 0 : ze[t]) == null ? void 0 : Ze.call(ze, T, O, j, ce)) || {}, Be = (s == null ? void 0 : s(T, O, j, ce)) || {};
|
|
2527
|
+
return xe($e, Se, Be) || {};
|
|
2515
2528
|
} : (T) => {
|
|
2516
|
-
var $e,
|
|
2517
|
-
const O = (($e = se[t]) == null ? void 0 : $e.call(se, T)) || {}, j = ((
|
|
2518
|
-
return
|
|
2529
|
+
var $e, Se, Be;
|
|
2530
|
+
const O = (($e = se[t]) == null ? void 0 : $e.call(se, T)) || {}, j = ((Be = (Se = d == null ? void 0 : d.control) == null ? void 0 : Se[t]) == null ? void 0 : Be.call(Se, T)) || {}, ce = (s == null ? void 0 : s(T)) || {};
|
|
2531
|
+
return xe(O, j, ce) || {};
|
|
2519
2532
|
};
|
|
2520
2533
|
e.value.control[t] = y;
|
|
2521
2534
|
};
|
|
2522
2535
|
oe("edit"), oe("delete"), oe("view"), oe("save"), oe("add", !1), oe("download", !1), oe("setting", !1);
|
|
2523
2536
|
const ve = (t, o, s, y) => {
|
|
2524
|
-
var ce, $e,
|
|
2537
|
+
var ce, $e, Se, Be, Le, ze;
|
|
2525
2538
|
if (!t || !o || s == null)
|
|
2526
2539
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2527
|
-
const T = ((ce = se.dropdown) == null ? void 0 : ce.call(se, t, o, s, y)) || {}, O = ((
|
|
2528
|
-
return
|
|
2529
|
-
},
|
|
2540
|
+
const T = ((ce = se.dropdown) == null ? void 0 : ce.call(se, t, o, s, y)) || {}, O = ((Se = ($e = d == null ? void 0 : d.control) == null ? void 0 : $e.dropdown) == null ? void 0 : Se.call($e, t, o, s, y)) || {}, j = ((ze = (Le = (Be = e.value) == null ? void 0 : Be.control) == null ? void 0 : Le.dropdown) == null ? void 0 : ze.call(Le, t, o, s, y)) || {};
|
|
2541
|
+
return xe(T, O, j) || {};
|
|
2542
|
+
}, Me = {
|
|
2530
2543
|
type: "hidden",
|
|
2531
2544
|
"min-width": 100,
|
|
2532
2545
|
align: "center",
|
|
2533
2546
|
formatter: (t, o, s, y) => s,
|
|
2534
|
-
"tooltip-formatter": ({ row: t, column: o, cellValue: s }) =>
|
|
2547
|
+
"tooltip-formatter": ({ row: t, column: o, cellValue: s }) => Ee(ea, { content: s, column: o })
|
|
2535
2548
|
};
|
|
2536
|
-
e.value.tableColumns =
|
|
2537
|
-
|
|
2549
|
+
e.value.tableColumns = xe(
|
|
2550
|
+
Me,
|
|
2538
2551
|
d == null ? void 0 : d.tableColumns,
|
|
2539
2552
|
(st = e.value) == null ? void 0 : st.tableColumns
|
|
2540
|
-
), e.value.form =
|
|
2541
|
-
|
|
2553
|
+
), e.value.form = xe(
|
|
2554
|
+
Rt,
|
|
2542
2555
|
d == null ? void 0 : d.form,
|
|
2543
2556
|
(it = e.value) == null ? void 0 : it.form
|
|
2544
2557
|
);
|
|
@@ -2549,7 +2562,7 @@ const Bl = {
|
|
|
2549
2562
|
width: "100%"
|
|
2550
2563
|
}
|
|
2551
2564
|
};
|
|
2552
|
-
e.value.formItems =
|
|
2565
|
+
e.value.formItems = xe(
|
|
2553
2566
|
ee,
|
|
2554
2567
|
d == null ? void 0 : d.formItems,
|
|
2555
2568
|
(dt = e == null ? void 0 : e.value) == null ? void 0 : dt.formItems
|
|
@@ -2567,15 +2580,15 @@ const Bl = {
|
|
|
2567
2580
|
overflow: !0,
|
|
2568
2581
|
max: {
|
|
2569
2582
|
style: {},
|
|
2570
|
-
icon: () =>
|
|
2583
|
+
icon: () => Ee(ml)
|
|
2571
2584
|
},
|
|
2572
2585
|
min: {
|
|
2573
2586
|
style: {},
|
|
2574
|
-
icon: () =>
|
|
2587
|
+
icon: () => Ee(pl)
|
|
2575
2588
|
// 最小化图标
|
|
2576
2589
|
}
|
|
2577
2590
|
};
|
|
2578
|
-
e.value.dialog =
|
|
2591
|
+
e.value.dialog = xe(
|
|
2579
2592
|
ae,
|
|
2580
2593
|
d == null ? void 0 : d.dialog,
|
|
2581
2594
|
(ct = e.value) == null ? void 0 : ct.dialog
|
|
@@ -2594,8 +2607,8 @@ const Bl = {
|
|
|
2594
2607
|
}
|
|
2595
2608
|
return t.type === "money" && (t.align = t.align || "right", t.width = t.width || 130, s = `<span title="${kt(
|
|
2596
2609
|
parseFloat(s)
|
|
2597
|
-
)}">${
|
|
2598
|
-
},
|
|
2610
|
+
)}">${Ma(parseFloat(s))}</span>`), t.prefix && s && (s = `<span>${t.prefix}${s}</span>`), t.suffix && s && (s = `${s}<span>${t.suffix}</span>`), s;
|
|
2611
|
+
}, Ie = (t) => {
|
|
2599
2612
|
D.value = Object.fromEntries(E), e.value.table.load();
|
|
2600
2613
|
}, w = (t) => {
|
|
2601
2614
|
D.value = t, e.value.table.load();
|
|
@@ -2615,18 +2628,18 @@ const Bl = {
|
|
|
2615
2628
|
var T, O;
|
|
2616
2629
|
e.value.form.modalState = "edit";
|
|
2617
2630
|
try {
|
|
2618
|
-
if (!await ((T = e.value.control) == null ? void 0 : T.validate("edit", { row: t, column: o,
|
|
2631
|
+
if (!await ((T = e.value.control) == null ? void 0 : T.validate("edit", { row: t, column: o, index: s, m: y }))) return;
|
|
2619
2632
|
} catch (j) {
|
|
2620
2633
|
console.error("验证失败:", j);
|
|
2621
2634
|
return;
|
|
2622
2635
|
}
|
|
2623
2636
|
(O = e.value.control.edit(t, o, s, y)) != null && O.click ? e.value.control.edit(t, o, s, y).click(t, o, s, y) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit(t, o, s, y).mode, e.value.dialog.title = e.value.control.edit(t, o, s, y).title || e.value.control.edit(t, o, s, y).label || "编辑", Object.keys(t).forEach((j) => {
|
|
2624
2637
|
e.value[j] && (e.value[j].value = t[j]);
|
|
2625
|
-
}), k.value = !0, l("open", "edit", { m: y, row: t, column: o,
|
|
2638
|
+
}), k.value = !0, l("open", "edit", { m: y, row: t, column: o, index: s }), vt());
|
|
2626
2639
|
}, a = async (t, o, s, y) => {
|
|
2627
2640
|
var T, O;
|
|
2628
2641
|
try {
|
|
2629
|
-
if (!await ((T = e.value.control) == null ? void 0 : T.validate("delete", { row: t, column: o,
|
|
2642
|
+
if (!await ((T = e.value.control) == null ? void 0 : T.validate("delete", { row: t, column: o, index: s, m: y }))) return;
|
|
2630
2643
|
} catch (j) {
|
|
2631
2644
|
console.error("验证失败:", j);
|
|
2632
2645
|
return;
|
|
@@ -2638,9 +2651,9 @@ const Bl = {
|
|
|
2638
2651
|
Ft.confirm(j, ce, $e).then(() => {
|
|
2639
2652
|
l(
|
|
2640
2653
|
"delete",
|
|
2641
|
-
{ row: t, column: o,
|
|
2642
|
-
(
|
|
2643
|
-
|
|
2654
|
+
{ row: t, column: o, index: s, m: y },
|
|
2655
|
+
(Se = !0, Be = !1) => {
|
|
2656
|
+
Se && (e.value.table.data.splice(s, 1), e.value.table.page.total--), Be && e.value.table.load();
|
|
2644
2657
|
}
|
|
2645
2658
|
);
|
|
2646
2659
|
}).catch(() => {
|
|
@@ -2650,26 +2663,26 @@ const Bl = {
|
|
|
2650
2663
|
var T, O;
|
|
2651
2664
|
e.value.form.modalState = void 0;
|
|
2652
2665
|
try {
|
|
2653
|
-
if (!await ((T = e.value.control) == null ? void 0 : T.validate("view", { row: t, column: o,
|
|
2666
|
+
if (!await ((T = e.value.control) == null ? void 0 : T.validate("view", { row: t, column: o, index: s, m: y }))) return;
|
|
2654
2667
|
} catch (j) {
|
|
2655
2668
|
console.error("验证失败:", j);
|
|
2656
2669
|
return;
|
|
2657
2670
|
}
|
|
2658
2671
|
(O = e.value.control.view(t, o, s, y)) != null && O.click ? e.value.control.view(t, o, s, y).click(t, o, s, y) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view(t, o, s, y).mode, e.value.dialog.title = e.value.control.view(t, o, s, y).title || e.value.control.view(t, o, s, y).label || "查看", Object.keys(t).forEach((j) => {
|
|
2659
2672
|
e.value[j] && (e.value[j].value = t[j]);
|
|
2660
|
-
}), k.value = !0, l("open", "view", { m: y, row: t, column: o,
|
|
2673
|
+
}), k.value = !0, l("open", "view", { m: y, row: t, column: o, index: s }), vt());
|
|
2661
2674
|
}, g = (t, o, s, y) => {
|
|
2662
2675
|
var T;
|
|
2663
2676
|
(T = e.value.control.save(t, o, s, y)) != null && T.click ? e.value.control.save(t, o, s, y).click(t, o, s, y) : l(
|
|
2664
2677
|
"row-save",
|
|
2665
|
-
{ row: t, column: o,
|
|
2678
|
+
{ row: t, column: o, index: s, data: e.value.table.data },
|
|
2666
2679
|
(O = !0, j = !0) => {
|
|
2667
2680
|
O && e.value.table.load(), j && tt(() => {
|
|
2668
2681
|
W.value = Object.assign(
|
|
2669
2682
|
{},
|
|
2670
2683
|
Object.fromEntries(
|
|
2671
2684
|
Object.entries(
|
|
2672
|
-
|
|
2685
|
+
Ye(e.value, (ce, $e) => $e.type != "control" && $e.editor !== !1 && $e.type != "hidden")
|
|
2673
2686
|
).map(([ce, $e]) => [ce, $e.value])
|
|
2674
2687
|
)
|
|
2675
2688
|
);
|
|
@@ -2682,7 +2695,7 @@ const Bl = {
|
|
|
2682
2695
|
});
|
|
2683
2696
|
}, q = (t) => {
|
|
2684
2697
|
l("reset", t);
|
|
2685
|
-
},
|
|
2698
|
+
}, L = (t, o) => {
|
|
2686
2699
|
var s;
|
|
2687
2700
|
if ((s = t.control.download(t)) != null && s.click)
|
|
2688
2701
|
t.control.download(t).click(t, o);
|
|
@@ -2693,7 +2706,7 @@ const Bl = {
|
|
|
2693
2706
|
size: t.control.download(t).size || 480,
|
|
2694
2707
|
width: t.control.download(t).width || 600,
|
|
2695
2708
|
slots: {
|
|
2696
|
-
default: () =>
|
|
2709
|
+
default: () => Ee(zl, {
|
|
2697
2710
|
items: o,
|
|
2698
2711
|
commitText: t.control.download(t).excelLabel,
|
|
2699
2712
|
onExcel: (T, O) => {
|
|
@@ -2713,7 +2726,7 @@ const Bl = {
|
|
|
2713
2726
|
size: t.control.setting(t).size || 470,
|
|
2714
2727
|
width: t.control.setting(t).width || 600,
|
|
2715
2728
|
slots: {
|
|
2716
|
-
default: () =>
|
|
2729
|
+
default: () => Ee(Ql, {
|
|
2717
2730
|
modelValue: t,
|
|
2718
2731
|
tuid: de.value
|
|
2719
2732
|
})
|
|
@@ -2723,21 +2736,21 @@ const Bl = {
|
|
|
2723
2736
|
);
|
|
2724
2737
|
}, Z = e.value.control, p = [
|
|
2725
2738
|
{ type: "add", func: v },
|
|
2726
|
-
{ type: "download", func:
|
|
2739
|
+
{ type: "download", func: L },
|
|
2727
2740
|
{ type: "setting", func: J },
|
|
2728
2741
|
{ type: "view", func: C },
|
|
2729
2742
|
{ type: "edit", func: m },
|
|
2730
2743
|
{ type: "delete", func: a },
|
|
2731
2744
|
{ type: "save", func: g }
|
|
2732
2745
|
], f = (t, o, s, y, T) => p.filter((O) => t.includes(O.type)).map(({ type: O, func: j }) => {
|
|
2733
|
-
var ce, $e,
|
|
2746
|
+
var ce, $e, Se;
|
|
2734
2747
|
return {
|
|
2735
2748
|
name: `control-${O}`,
|
|
2736
2749
|
attr: Z == null ? void 0 : Z[O](o, s, y, T),
|
|
2737
2750
|
func: j,
|
|
2738
2751
|
label: (ce = Z == null ? void 0 : Z[O](o, s, y, T)) == null ? void 0 : ce.label,
|
|
2739
2752
|
sort: (($e = Z == null ? void 0 : Z[O](o, s, y, T)) == null ? void 0 : $e.sort) || 0,
|
|
2740
|
-
groupName: ((
|
|
2753
|
+
groupName: ((Se = Z == null ? void 0 : Z[O](o, s, y, T)) == null ? void 0 : Se.groupName) || "default"
|
|
2741
2754
|
};
|
|
2742
2755
|
}).sort((O, j) => O.sort - j.sort), re = (t, o, s, y, T) => f(t, o, s, y, T).reduce((O, j) => {
|
|
2743
2756
|
const ce = j.groupName || "default";
|
|
@@ -2746,7 +2759,7 @@ const Bl = {
|
|
|
2746
2759
|
() => Object.fromEntries(
|
|
2747
2760
|
Object.entries(e.value).filter(([t, o]) => o.type !== "hidden").filter(([t, o]) => o.hidden !== !0).filter(([t, o]) => o.visible !== !1).filter(([t, o]) => o.showCol !== !1).map(([t, o]) => (o.sort = typeof o.sort == "number" ? o.sort : 0, [t, o])).sort((t, o) => t[1].sort - o[1].sort)
|
|
2748
2761
|
)
|
|
2749
|
-
), he = le({}),
|
|
2762
|
+
), he = le({}), De = (t, o) => {
|
|
2750
2763
|
const s = (y, T) => {
|
|
2751
2764
|
for (const O of y) {
|
|
2752
2765
|
if (O.value == T) return O.label;
|
|
@@ -2768,7 +2781,7 @@ const Bl = {
|
|
|
2768
2781
|
const t = [];
|
|
2769
2782
|
Object.keys(e.value).forEach((o) => {
|
|
2770
2783
|
if (e.value[o].getDicts) {
|
|
2771
|
-
const s =
|
|
2784
|
+
const s = De(e.value[o], o).then(() => {
|
|
2772
2785
|
e.value.table.data.forEach((y) => {
|
|
2773
2786
|
var T;
|
|
2774
2787
|
if (e.value[o].getDicts && ((T = e.value[o]) == null ? void 0 : T.forceString) !== !1) {
|
|
@@ -2787,7 +2800,7 @@ const Bl = {
|
|
|
2787
2800
|
}, be = (t, o, s, y) => {
|
|
2788
2801
|
var T, O;
|
|
2789
2802
|
return t.table ? (T = t.table(o, s, y)) != null && T.auth ? (O = t.table(o, s, y)) == null ? void 0 : O.auth(o, s, y) : !0 : !1;
|
|
2790
|
-
},
|
|
2803
|
+
}, Ve = () => {
|
|
2791
2804
|
if (e.value.dialog.mode == "drawer")
|
|
2792
2805
|
V.value.handleClose();
|
|
2793
2806
|
else if (e.value.dialog.mode == "dialog")
|
|
@@ -2799,18 +2812,18 @@ const Bl = {
|
|
|
2799
2812
|
else
|
|
2800
2813
|
k.value = !1;
|
|
2801
2814
|
};
|
|
2802
|
-
|
|
2815
|
+
Kt(() => {
|
|
2803
2816
|
e.value.table.autoWatch && e.value.table.load();
|
|
2804
2817
|
});
|
|
2805
|
-
const
|
|
2806
|
-
const t = await
|
|
2818
|
+
const Te = async () => {
|
|
2819
|
+
const t = await jl(de.value);
|
|
2807
2820
|
t && Array.isArray(t) && t.forEach((o) => {
|
|
2808
2821
|
const s = e.value[o.key];
|
|
2809
2822
|
s && (s.width = o.width, s.showCol = o.showCol, s.sort = o.sort);
|
|
2810
2823
|
});
|
|
2811
|
-
},
|
|
2824
|
+
}, Re = () => {
|
|
2812
2825
|
var y, T;
|
|
2813
|
-
const t =
|
|
2826
|
+
const t = tl();
|
|
2814
2827
|
if (!t)
|
|
2815
2828
|
return console.warn("无法获取组件实例"), "";
|
|
2816
2829
|
let o = t.parent;
|
|
@@ -2825,8 +2838,8 @@ const Bl = {
|
|
|
2825
2838
|
return console.error("处理文件路径时出错:", O), "";
|
|
2826
2839
|
}
|
|
2827
2840
|
};
|
|
2828
|
-
return
|
|
2829
|
-
de.value =
|
|
2841
|
+
return el(() => {
|
|
2842
|
+
de.value = Re() + (ne.suffix || "");
|
|
2830
2843
|
}), rt(async () => {
|
|
2831
2844
|
K.value = Object.entries(e.value).filter(
|
|
2832
2845
|
([t, o]) => o.type !== "hidden" && o.type !== "control" && o.visible !== !1
|
|
@@ -2842,16 +2855,16 @@ const Bl = {
|
|
|
2842
2855
|
);
|
|
2843
2856
|
W.value = Object.fromEntries(
|
|
2844
2857
|
t.map(([o, s]) => [o, s.value])
|
|
2845
|
-
), await
|
|
2858
|
+
), await Te();
|
|
2846
2859
|
} catch (t) {
|
|
2847
2860
|
console.error("Error during component initialization:", t);
|
|
2848
2861
|
}
|
|
2849
2862
|
e.value.table.autoWatch || e.value.table.load();
|
|
2850
|
-
}), i({ addRow: v, editRow: m, deleteRow: a, readForm: C, saveRowData: g, closeDialog:
|
|
2863
|
+
}), i({ addRow: v, editRow: m, deleteRow: a, readForm: C, saveRowData: g, closeDialog: Ve }), (t, o) => {
|
|
2851
2864
|
var ze, Ze, et, lt, at;
|
|
2852
|
-
const s = A("el-icon"), y = A("el-dialog"), T = A("el-drawer"), O = A("el-button-group"), j = A("el-dropdown-item"), ce = A("el-dropdown-menu"), $e = A("el-dropdown"),
|
|
2865
|
+
const s = A("el-icon"), y = A("el-dialog"), T = A("el-drawer"), O = A("el-button-group"), j = A("el-dropdown-item"), ce = A("el-dropdown-menu"), $e = A("el-dropdown"), Se = A("el-table-column"), Be = A("el-table"), Le = A("el-pagination");
|
|
2853
2866
|
return n(), x(X, null, [
|
|
2854
|
-
e.value.dialog.mode == "dialog" && k.value ? (n(), x("div",
|
|
2867
|
+
e.value.dialog.mode == "dialog" && k.value ? (n(), x("div", ta, [
|
|
2855
2868
|
G(y, F(
|
|
2856
2869
|
{
|
|
2857
2870
|
ref_key: "dialogRef",
|
|
@@ -2861,31 +2874,31 @@ const Bl = {
|
|
|
2861
2874
|
"onUpdate:modelValue": o[3] || (o[3] = (B) => k.value = B),
|
|
2862
2875
|
fullscreen: e.value.dialog.fullScreen
|
|
2863
2876
|
},
|
|
2864
|
-
U(
|
|
2877
|
+
U(Ye)(e.value.dialog, (B) => !["size", "max", "min"].includes(B)),
|
|
2865
2878
|
{
|
|
2866
|
-
width: U(
|
|
2879
|
+
width: U(jt)(e.value.dialog.width) + 35
|
|
2867
2880
|
}
|
|
2868
2881
|
), {
|
|
2869
2882
|
header: b(() => {
|
|
2870
|
-
var B, ue, _,
|
|
2883
|
+
var B, ue, _, P, u, H, ie, Fe, Ue, He;
|
|
2871
2884
|
return [
|
|
2872
|
-
N("div",
|
|
2873
|
-
N("div",
|
|
2885
|
+
N("div", la, [
|
|
2886
|
+
N("div", aa, [
|
|
2874
2887
|
$(t.$slots, "f-header", {}, () => [
|
|
2875
|
-
N("div", null,
|
|
2888
|
+
N("div", null, ke(e.value.dialog.title), 1)
|
|
2876
2889
|
], !0)
|
|
2877
2890
|
]),
|
|
2878
2891
|
((ue = (B = e.value) == null ? void 0 : B.dialog) == null ? void 0 : ue.fullScreen) === !1 ? (n(), x("div", {
|
|
2879
2892
|
key: 0,
|
|
2880
|
-
style:
|
|
2893
|
+
style: Oe((u = (P = (_ = e.value) == null ? void 0 : _.dialog) == null ? void 0 : P.max) == null ? void 0 : u.style),
|
|
2881
2894
|
onClick: o[0] || (o[0] = (I) => e.value.dialog.fullScreen = !0),
|
|
2882
2895
|
class: "max"
|
|
2883
2896
|
}, [
|
|
2884
2897
|
G(s, null, {
|
|
2885
2898
|
default: b(() => {
|
|
2886
|
-
var I,
|
|
2899
|
+
var I, je, Je;
|
|
2887
2900
|
return [
|
|
2888
|
-
(n(), M(Ne((Je = (
|
|
2901
|
+
(n(), M(Ne((Je = (je = (I = e.value) == null ? void 0 : I.dialog) == null ? void 0 : je.max) == null ? void 0 : Je.icon)))
|
|
2889
2902
|
];
|
|
2890
2903
|
}),
|
|
2891
2904
|
_: 1
|
|
@@ -2893,15 +2906,15 @@ const Bl = {
|
|
|
2893
2906
|
], 4)) : ye("", !0),
|
|
2894
2907
|
((ie = (H = e.value) == null ? void 0 : H.dialog) == null ? void 0 : ie.fullScreen) === !0 ? (n(), x("div", {
|
|
2895
2908
|
key: 1,
|
|
2896
|
-
style:
|
|
2909
|
+
style: Oe((He = (Ue = (Fe = e.value) == null ? void 0 : Fe.dialog) == null ? void 0 : Ue.min) == null ? void 0 : He.style),
|
|
2897
2910
|
onClick: o[1] || (o[1] = (I) => e.value.dialog.fullScreen = !1),
|
|
2898
2911
|
class: "max"
|
|
2899
2912
|
}, [
|
|
2900
2913
|
G(s, null, {
|
|
2901
2914
|
default: b(() => {
|
|
2902
|
-
var I,
|
|
2915
|
+
var I, je, Je;
|
|
2903
2916
|
return [
|
|
2904
|
-
(n(), M(Ne((Je = (
|
|
2917
|
+
(n(), M(Ne((Je = (je = (I = e.value) == null ? void 0 : I.dialog) == null ? void 0 : je.min) == null ? void 0 : Je.icon)))
|
|
2905
2918
|
];
|
|
2906
2919
|
}),
|
|
2907
2920
|
_: 1
|
|
@@ -2911,7 +2924,7 @@ const Bl = {
|
|
|
2911
2924
|
];
|
|
2912
2925
|
}),
|
|
2913
2926
|
default: b(() => [
|
|
2914
|
-
N("div",
|
|
2927
|
+
N("div", ra, [
|
|
2915
2928
|
$(t.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
2916
2929
|
G(wt, {
|
|
2917
2930
|
modelValue: e.value,
|
|
@@ -2919,10 +2932,10 @@ const Bl = {
|
|
|
2919
2932
|
onSubmit: h,
|
|
2920
2933
|
onReset: q
|
|
2921
2934
|
}, pe({ _: 2 }, [
|
|
2922
|
-
|
|
2935
|
+
R(t.$slots, (B, ue, _) => ({
|
|
2923
2936
|
name: ue,
|
|
2924
|
-
fn: b((
|
|
2925
|
-
$(t.$slots, ue, { model:
|
|
2937
|
+
fn: b((P) => [
|
|
2938
|
+
$(t.$slots, ue, { model: P }, void 0, !0)
|
|
2926
2939
|
])
|
|
2927
2940
|
}))
|
|
2928
2941
|
]), 1032, ["modelValue"])
|
|
@@ -2932,18 +2945,18 @@ const Bl = {
|
|
|
2932
2945
|
_: 3
|
|
2933
2946
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
2934
2947
|
])) : ye("", !0),
|
|
2935
|
-
e.value.dialog.mode == "drawer" && k.value ? (n(), x("div",
|
|
2948
|
+
e.value.dialog.mode == "drawer" && k.value ? (n(), x("div", oa, [
|
|
2936
2949
|
G(T, F({
|
|
2937
2950
|
ref_key: "drawerRef",
|
|
2938
2951
|
ref: V,
|
|
2939
2952
|
modelValue: k.value,
|
|
2940
2953
|
"onUpdate:modelValue": o[5] || (o[5] = (B) => k.value = B)
|
|
2941
|
-
}, U(
|
|
2954
|
+
}, U(Ye)(e.value.dialog, (B) => !["width"].includes(B))), {
|
|
2942
2955
|
header: b(() => [
|
|
2943
|
-
N("div",
|
|
2944
|
-
N("div",
|
|
2956
|
+
N("div", ua, [
|
|
2957
|
+
N("div", na, [
|
|
2945
2958
|
$(t.$slots, "f-header", {}, () => [
|
|
2946
|
-
N("div", null,
|
|
2959
|
+
N("div", null, ke(e.value.dialog.title), 1)
|
|
2947
2960
|
], !0)
|
|
2948
2961
|
])
|
|
2949
2962
|
])
|
|
@@ -2956,10 +2969,10 @@ const Bl = {
|
|
|
2956
2969
|
onSubmit: h,
|
|
2957
2970
|
onReset: q
|
|
2958
2971
|
}, pe({ _: 2 }, [
|
|
2959
|
-
|
|
2972
|
+
R(t.$slots, (B, ue, _) => ({
|
|
2960
2973
|
name: ue,
|
|
2961
|
-
fn: b((
|
|
2962
|
-
$(t.$slots, ue, { model:
|
|
2974
|
+
fn: b((P) => [
|
|
2975
|
+
$(t.$slots, ue, { model: P }, void 0, !0)
|
|
2963
2976
|
])
|
|
2964
2977
|
}))
|
|
2965
2978
|
]), 1032, ["modelValue"])
|
|
@@ -2968,65 +2981,65 @@ const Bl = {
|
|
|
2968
2981
|
_: 3
|
|
2969
2982
|
}, 16, ["modelValue"])
|
|
2970
2983
|
])) : ye("", !0),
|
|
2971
|
-
N("div",
|
|
2972
|
-
((Ze = (ze = e.value) == null ? void 0 : ze.query) == null ? void 0 : Ze.hidden) != !0 ? (n(), x("div",
|
|
2984
|
+
N("div", sa, [
|
|
2985
|
+
((Ze = (ze = e.value) == null ? void 0 : ze.query) == null ? void 0 : Ze.hidden) != !0 ? (n(), x("div", ia, [
|
|
2973
2986
|
$(t.$slots, "query", {}, () => [
|
|
2974
|
-
G(
|
|
2987
|
+
G(ql, {
|
|
2975
2988
|
modelValue: e.value,
|
|
2976
2989
|
"onUpdate:modelValue": o[6] || (o[6] = (B) => e.value = B),
|
|
2977
2990
|
info: D.value,
|
|
2978
2991
|
"onUpdate:info": o[7] || (o[7] = (B) => D.value = B),
|
|
2979
2992
|
onQuery: w,
|
|
2980
|
-
onReset:
|
|
2993
|
+
onReset: Ie
|
|
2981
2994
|
}, pe({
|
|
2982
2995
|
"q-btns": b(() => [
|
|
2983
2996
|
$(t.$slots, "q-btns", {}, () => [
|
|
2984
|
-
(n(!0), x(X, null,
|
|
2985
|
-
ue == "default" ? (n(!0), x(X, { key: 0 },
|
|
2997
|
+
(n(!0), x(X, null, R(re(["add", "download", "setting"], e.value), (B, ue) => (n(), x(X, null, [
|
|
2998
|
+
ue == "default" ? (n(!0), x(X, { key: 0 }, R(B, (_) => (n(), x(X, null, [
|
|
2986
2999
|
$(t.$slots, _.name + "-left", {}, void 0, !0),
|
|
2987
3000
|
(_.name === "control-add" ? _.attr.auth() && _.attr.inline === !1 : _.attr.auth()) ? $(t.$slots, _.name, { key: 0 }, () => [
|
|
2988
|
-
_.label ? (n(), M(U(
|
|
3001
|
+
_.label ? (n(), M(U(qe), F({
|
|
2989
3002
|
key: 0,
|
|
2990
3003
|
title: _.label,
|
|
2991
3004
|
ref_for: !0
|
|
2992
3005
|
}, _.attr, {
|
|
2993
|
-
onClick: (
|
|
3006
|
+
onClick: (P) => _.func(e.value, K.value)
|
|
2994
3007
|
}), {
|
|
2995
3008
|
default: b(() => [
|
|
2996
|
-
|
|
3009
|
+
Ae(ke(_.label), 1)
|
|
2997
3010
|
]),
|
|
2998
3011
|
_: 2
|
|
2999
|
-
}, 1040, ["title", "onClick"])) : (n(), M(U(
|
|
3012
|
+
}, 1040, ["title", "onClick"])) : (n(), M(U(qe), F({
|
|
3000
3013
|
key: 1,
|
|
3001
3014
|
title: _.label,
|
|
3002
3015
|
ref_for: !0
|
|
3003
3016
|
}, _.attr, {
|
|
3004
|
-
onClick: (
|
|
3017
|
+
onClick: (P) => _.func(e.value, K.value)
|
|
3005
3018
|
}), null, 16, ["title", "onClick"]))
|
|
3006
3019
|
], !0) : ye("", !0),
|
|
3007
3020
|
$(t.$slots, _.name + "-right", {}, void 0, !0)
|
|
3008
3021
|
], 64))), 256)) : (n(), M(O, { key: 1 }, {
|
|
3009
3022
|
default: b(() => [
|
|
3010
|
-
(n(!0), x(X, null,
|
|
3023
|
+
(n(!0), x(X, null, R(B, (_) => (n(), x(X, null, [
|
|
3011
3024
|
$(t.$slots, _.name + "-left", {}, void 0, !0),
|
|
3012
3025
|
(_.name === "control-add" ? _.attr.auth() && _.attr.inline === !1 : _.attr.auth()) ? $(t.$slots, _.name, { key: 0 }, () => [
|
|
3013
|
-
_.label ? (n(), M(U(
|
|
3026
|
+
_.label ? (n(), M(U(qe), F({
|
|
3014
3027
|
key: 0,
|
|
3015
3028
|
title: _.label,
|
|
3016
3029
|
ref_for: !0
|
|
3017
3030
|
}, _.attr, {
|
|
3018
|
-
onClick: (
|
|
3031
|
+
onClick: (P) => _.func(e.value, K.value)
|
|
3019
3032
|
}), {
|
|
3020
3033
|
default: b(() => [
|
|
3021
|
-
|
|
3034
|
+
Ae(ke(_.label), 1)
|
|
3022
3035
|
]),
|
|
3023
3036
|
_: 2
|
|
3024
|
-
}, 1040, ["title", "onClick"])) : (n(), M(U(
|
|
3037
|
+
}, 1040, ["title", "onClick"])) : (n(), M(U(qe), F({
|
|
3025
3038
|
key: 1,
|
|
3026
3039
|
title: _.label,
|
|
3027
3040
|
ref_for: !0
|
|
3028
3041
|
}, _.attr, {
|
|
3029
|
-
onClick: (
|
|
3042
|
+
onClick: (P) => _.func(e.value, K.value)
|
|
3030
3043
|
}), null, 16, ["title", "onClick"]))
|
|
3031
3044
|
], !0) : ye("", !0),
|
|
3032
3045
|
$(t.$slots, _.name + "-right", {}, void 0, !0)
|
|
@@ -3039,19 +3052,19 @@ const Bl = {
|
|
|
3039
3052
|
]),
|
|
3040
3053
|
_: 2
|
|
3041
3054
|
}, [
|
|
3042
|
-
|
|
3055
|
+
R(t.$slots, (B, ue, _) => ({
|
|
3043
3056
|
name: ue,
|
|
3044
|
-
fn: b((
|
|
3057
|
+
fn: b((P) => [
|
|
3045
3058
|
$(t.$slots, ue, { model: e.value }, void 0, !0)
|
|
3046
3059
|
])
|
|
3047
3060
|
}))
|
|
3048
3061
|
]), 1032, ["modelValue", "info"])
|
|
3049
3062
|
], !0)
|
|
3050
3063
|
])) : ye("", !0),
|
|
3051
|
-
N("div",
|
|
3052
|
-
G(
|
|
3064
|
+
N("div", da, [
|
|
3065
|
+
G(Be, F({
|
|
3053
3066
|
...t.$attrs,
|
|
3054
|
-
...U(
|
|
3067
|
+
...U(Ye)(
|
|
3055
3068
|
e.value.table,
|
|
3056
3069
|
(B) => !["dblclickType", "page"].includes(B)
|
|
3057
3070
|
)
|
|
@@ -3070,25 +3083,25 @@ const Bl = {
|
|
|
3070
3083
|
]),
|
|
3071
3084
|
default: b(() => [
|
|
3072
3085
|
$(t.$slots, "default", {}, () => [
|
|
3073
|
-
(n(!0), x(X, null,
|
|
3086
|
+
(n(!0), x(X, null, R(we.value, (B, ue) => (n(), M(Se, F({
|
|
3074
3087
|
prop: ue,
|
|
3075
3088
|
key: ue,
|
|
3076
3089
|
ref_for: !0
|
|
3077
3090
|
}, {
|
|
3078
3091
|
...e.value.tableColumns,
|
|
3079
|
-
...U(
|
|
3092
|
+
...U(Ye)(B, (_) => z.includes(_))
|
|
3080
3093
|
}), pe({
|
|
3081
|
-
header: b(({ column: _, $index:
|
|
3094
|
+
header: b(({ column: _, $index: P }) => [
|
|
3082
3095
|
ue == "control" ? $(t.$slots, `${ue}-header`, {
|
|
3083
3096
|
key: 0,
|
|
3084
3097
|
column: _,
|
|
3085
|
-
|
|
3098
|
+
index: P
|
|
3086
3099
|
}, () => [
|
|
3087
|
-
N("span", null,
|
|
3100
|
+
N("span", null, ke(_.label), 1)
|
|
3088
3101
|
], !0) : $(t.$slots, `${ue}-header`, {
|
|
3089
3102
|
key: 1,
|
|
3090
3103
|
column: _,
|
|
3091
|
-
|
|
3104
|
+
index: P
|
|
3092
3105
|
}, void 0, !0)
|
|
3093
3106
|
]),
|
|
3094
3107
|
"filter-icon": b((_) => [
|
|
@@ -3098,115 +3111,115 @@ const Bl = {
|
|
|
3098
3111
|
}, [
|
|
3099
3112
|
B.type === "expand" ? {
|
|
3100
3113
|
name: "default",
|
|
3101
|
-
fn: b(({ row: _, column:
|
|
3114
|
+
fn: b(({ row: _, column: P, $index: u }) => [
|
|
3102
3115
|
$(t.$slots, `${ue}`, {
|
|
3103
3116
|
row: _,
|
|
3104
|
-
column:
|
|
3105
|
-
|
|
3117
|
+
column: P,
|
|
3118
|
+
index: u
|
|
3106
3119
|
}, void 0, !0)
|
|
3107
3120
|
]),
|
|
3108
3121
|
key: "0"
|
|
3109
3122
|
} : B.type == "control" ? {
|
|
3110
3123
|
name: "default",
|
|
3111
|
-
fn: b(({ row: _, column:
|
|
3124
|
+
fn: b(({ row: _, column: P, $index: u }) => {
|
|
3112
3125
|
var H, ie;
|
|
3113
3126
|
return [
|
|
3114
3127
|
N("div", {
|
|
3115
3128
|
class: qt(["control", (H = e.value.control) == null ? void 0 : H.class]),
|
|
3116
|
-
style:
|
|
3129
|
+
style: Oe((ie = e.value.control) == null ? void 0 : ie.style)
|
|
3117
3130
|
}, [
|
|
3118
3131
|
$(t.$slots, "control", {}, () => [
|
|
3119
3132
|
$(t.$slots, "control-left", {
|
|
3120
3133
|
row: _,
|
|
3121
|
-
column:
|
|
3122
|
-
|
|
3134
|
+
column: P,
|
|
3135
|
+
index: u
|
|
3123
3136
|
}, void 0, !0),
|
|
3124
|
-
(n(!0), x(X, null,
|
|
3137
|
+
(n(!0), x(X, null, R(re(["view", "edit", "delete", "save"], _, P, u, e.value), (Fe, Ue) => {
|
|
3125
3138
|
var He;
|
|
3126
3139
|
return n(), x(X, null, [
|
|
3127
|
-
|
|
3140
|
+
Ue == "default" ? (n(!0), x(X, { key: 0 }, R(Fe, (I) => (n(), x(X, null, [
|
|
3128
3141
|
$(t.$slots, I.name + "-left", {
|
|
3129
3142
|
row: _,
|
|
3130
|
-
column:
|
|
3131
|
-
|
|
3143
|
+
column: P,
|
|
3144
|
+
index: u
|
|
3132
3145
|
}, void 0, !0),
|
|
3133
3146
|
I.attr.auth() ? $(t.$slots, I.name, {
|
|
3134
3147
|
key: 0,
|
|
3135
3148
|
row: _,
|
|
3136
|
-
column:
|
|
3137
|
-
|
|
3149
|
+
column: P,
|
|
3150
|
+
index: u
|
|
3138
3151
|
}, () => [
|
|
3139
|
-
I.label ? (n(), M(U(
|
|
3152
|
+
I.label ? (n(), M(U(qe), F({
|
|
3140
3153
|
key: 0,
|
|
3141
3154
|
title: I.label,
|
|
3142
3155
|
ref_for: !0
|
|
3143
3156
|
}, I.attr, {
|
|
3144
|
-
onClick: (
|
|
3157
|
+
onClick: (je) => I.func(_, P, u, e.value)
|
|
3145
3158
|
}), {
|
|
3146
3159
|
default: b(() => [
|
|
3147
|
-
|
|
3160
|
+
Ae(ke(I.label), 1)
|
|
3148
3161
|
]),
|
|
3149
3162
|
_: 2
|
|
3150
|
-
}, 1040, ["title", "onClick"])) : (n(), M(U(
|
|
3163
|
+
}, 1040, ["title", "onClick"])) : (n(), M(U(qe), F({
|
|
3151
3164
|
key: 1,
|
|
3152
3165
|
title: I.label,
|
|
3153
3166
|
ref_for: !0
|
|
3154
3167
|
}, I.attr, {
|
|
3155
|
-
onClick: (
|
|
3168
|
+
onClick: (je) => I.func(_, P, u, e.value)
|
|
3156
3169
|
}), null, 16, ["title", "onClick"]))
|
|
3157
3170
|
], !0) : ye("", !0),
|
|
3158
3171
|
$(t.$slots, I.name + "-right", {
|
|
3159
3172
|
row: _,
|
|
3160
|
-
column:
|
|
3161
|
-
|
|
3173
|
+
column: P,
|
|
3174
|
+
index: u
|
|
3162
3175
|
}, void 0, !0)
|
|
3163
|
-
], 64))), 256)) :
|
|
3176
|
+
], 64))), 256)) : Ue != null && Ue.startsWith("dropdown") && ((He = ve(_, P, u, e.value)) != null && He.auth()) ? (n(), M($e, F({
|
|
3164
3177
|
key: 1,
|
|
3165
3178
|
ref_for: !0
|
|
3166
|
-
}, ve(_,
|
|
3179
|
+
}, ve(_, P, u, e.value)), {
|
|
3167
3180
|
dropdown: b(() => [
|
|
3168
3181
|
G(ce, null, {
|
|
3169
3182
|
default: b(() => [
|
|
3170
|
-
(n(!0), x(X, null,
|
|
3171
|
-
var
|
|
3183
|
+
(n(!0), x(X, null, R(Fe, (I) => {
|
|
3184
|
+
var je, Je, Mt;
|
|
3172
3185
|
return n(), x(X, null, [
|
|
3173
3186
|
t.$slots[I.name + "-left"] ? $(t.$slots, I.name + "-left", {
|
|
3174
3187
|
key: 0,
|
|
3175
3188
|
row: _,
|
|
3176
|
-
column:
|
|
3177
|
-
|
|
3189
|
+
column: P,
|
|
3190
|
+
index: u
|
|
3178
3191
|
}, void 0, !0) : ye("", !0),
|
|
3179
3192
|
I.attr.auth() ? (n(), M(j, F({
|
|
3180
3193
|
key: 1,
|
|
3181
3194
|
ref_for: !0
|
|
3182
3195
|
}, {
|
|
3183
|
-
command: (
|
|
3196
|
+
command: (je = I == null ? void 0 : I.attr) == null ? void 0 : je.command,
|
|
3184
3197
|
divided: (Je = I == null ? void 0 : I.attr) == null ? void 0 : Je.divided,
|
|
3185
3198
|
disabled: (Mt = I == null ? void 0 : I.attr) == null ? void 0 : Mt.disabled
|
|
3186
3199
|
}), {
|
|
3187
3200
|
default: b(() => [
|
|
3188
3201
|
$(t.$slots, I.name, {
|
|
3189
3202
|
row: _,
|
|
3190
|
-
column:
|
|
3191
|
-
|
|
3203
|
+
column: P,
|
|
3204
|
+
index: u
|
|
3192
3205
|
}, () => [
|
|
3193
|
-
I.label ? (n(), M(U(
|
|
3206
|
+
I.label ? (n(), M(U(qe), F({
|
|
3194
3207
|
key: 0,
|
|
3195
3208
|
title: I.label,
|
|
3196
3209
|
ref_for: !0
|
|
3197
3210
|
}, I.attr, {
|
|
3198
|
-
onClick: (
|
|
3211
|
+
onClick: (Pt) => I.func(_, P, u, e.value)
|
|
3199
3212
|
}), {
|
|
3200
3213
|
default: b(() => [
|
|
3201
|
-
|
|
3214
|
+
Ae(ke(I.label), 1)
|
|
3202
3215
|
]),
|
|
3203
3216
|
_: 2
|
|
3204
|
-
}, 1040, ["title", "onClick"])) : (n(), M(U(
|
|
3217
|
+
}, 1040, ["title", "onClick"])) : (n(), M(U(qe), F({
|
|
3205
3218
|
key: 1,
|
|
3206
3219
|
title: I.label,
|
|
3207
3220
|
ref_for: !0
|
|
3208
3221
|
}, I.attr, {
|
|
3209
|
-
onClick: (
|
|
3222
|
+
onClick: (Pt) => I.func(_, P, u, e.value)
|
|
3210
3223
|
}), null, 16, ["title", "onClick"]))
|
|
3211
3224
|
], !0)
|
|
3212
3225
|
]),
|
|
@@ -3215,8 +3228,8 @@ const Bl = {
|
|
|
3215
3228
|
t.$slots[I.name + "-right"] ? $(t.$slots, I.name + "-right", {
|
|
3216
3229
|
key: 2,
|
|
3217
3230
|
row: _,
|
|
3218
|
-
column:
|
|
3219
|
-
|
|
3231
|
+
column: P,
|
|
3232
|
+
index: u
|
|
3220
3233
|
}, void 0, !0) : ye("", !0)
|
|
3221
3234
|
], 64);
|
|
3222
3235
|
}), 256))
|
|
@@ -3227,47 +3240,47 @@ const Bl = {
|
|
|
3227
3240
|
default: b(() => {
|
|
3228
3241
|
var I;
|
|
3229
3242
|
return [
|
|
3230
|
-
|
|
3243
|
+
Ae(ke((I = ve(_, P, u, e.value)) == null ? void 0 : I.label) + " ", 1)
|
|
3231
3244
|
];
|
|
3232
3245
|
}),
|
|
3233
3246
|
_: 2
|
|
3234
3247
|
}, 1040)) : (n(), M(O, { key: 2 }, {
|
|
3235
3248
|
default: b(() => [
|
|
3236
|
-
(n(!0), x(X, null,
|
|
3249
|
+
(n(!0), x(X, null, R(Fe, (I) => (n(), x(X, null, [
|
|
3237
3250
|
$(t.$slots, I.name + "-left", {
|
|
3238
3251
|
row: _,
|
|
3239
|
-
column:
|
|
3240
|
-
|
|
3252
|
+
column: P,
|
|
3253
|
+
index: u
|
|
3241
3254
|
}, void 0, !0),
|
|
3242
3255
|
I.attr.auth() ? $(t.$slots, I.name, {
|
|
3243
3256
|
key: 0,
|
|
3244
3257
|
row: _,
|
|
3245
|
-
column:
|
|
3246
|
-
|
|
3258
|
+
column: P,
|
|
3259
|
+
index: u
|
|
3247
3260
|
}, () => [
|
|
3248
|
-
I.label ? (n(), M(U(
|
|
3261
|
+
I.label ? (n(), M(U(qe), F({
|
|
3249
3262
|
key: 0,
|
|
3250
3263
|
title: I.label,
|
|
3251
3264
|
ref_for: !0
|
|
3252
3265
|
}, I.attr, {
|
|
3253
|
-
onClick: (
|
|
3266
|
+
onClick: (je) => I.func(_, P, u, e.value)
|
|
3254
3267
|
}), {
|
|
3255
3268
|
default: b(() => [
|
|
3256
|
-
|
|
3269
|
+
Ae(ke(I.label), 1)
|
|
3257
3270
|
]),
|
|
3258
3271
|
_: 2
|
|
3259
|
-
}, 1040, ["title", "onClick"])) : (n(), M(U(
|
|
3272
|
+
}, 1040, ["title", "onClick"])) : (n(), M(U(qe), F({
|
|
3260
3273
|
key: 1,
|
|
3261
3274
|
title: I.label,
|
|
3262
3275
|
ref_for: !0
|
|
3263
3276
|
}, I.attr, {
|
|
3264
|
-
onClick: (
|
|
3277
|
+
onClick: (je) => I.func(_, P, u, e.value)
|
|
3265
3278
|
}), null, 16, ["title", "onClick"]))
|
|
3266
3279
|
], !0) : ye("", !0),
|
|
3267
3280
|
$(t.$slots, I.name + "-right", {
|
|
3268
3281
|
row: _,
|
|
3269
|
-
column:
|
|
3270
|
-
|
|
3282
|
+
column: P,
|
|
3283
|
+
index: u
|
|
3271
3284
|
}, void 0, !0)
|
|
3272
3285
|
], 64))), 256))
|
|
3273
3286
|
]),
|
|
@@ -3277,8 +3290,8 @@ const Bl = {
|
|
|
3277
3290
|
}), 256)),
|
|
3278
3291
|
$(t.$slots, "control-right", {
|
|
3279
3292
|
row: _,
|
|
3280
|
-
column:
|
|
3281
|
-
|
|
3293
|
+
column: P,
|
|
3294
|
+
index: u
|
|
3282
3295
|
}, void 0, !0)
|
|
3283
3296
|
], !0)
|
|
3284
3297
|
], 6)
|
|
@@ -3287,32 +3300,32 @@ const Bl = {
|
|
|
3287
3300
|
key: "1"
|
|
3288
3301
|
} : B.type != "selection" && B.type != "index" ? {
|
|
3289
3302
|
name: "default",
|
|
3290
|
-
fn: b(({ row: _, column:
|
|
3291
|
-
be(B, _,
|
|
3303
|
+
fn: b(({ row: _, column: P, $index: u }) => [
|
|
3304
|
+
be(B, _, P, u) && u != -1 ? $(t.$slots, `${ue}`, {
|
|
3292
3305
|
key: 0,
|
|
3293
3306
|
row: _,
|
|
3294
|
-
column:
|
|
3295
|
-
|
|
3307
|
+
column: P,
|
|
3308
|
+
index: u
|
|
3296
3309
|
}, () => {
|
|
3297
3310
|
var H;
|
|
3298
3311
|
return [
|
|
3299
3312
|
(n(), M(ht, {
|
|
3300
3313
|
modelValue: _[ue],
|
|
3301
3314
|
"onUpdate:modelValue": (ie) => _[ue] = ie,
|
|
3302
|
-
item: B == null ? void 0 : B.table(_,
|
|
3315
|
+
item: B == null ? void 0 : B.table(_, P, u),
|
|
3303
3316
|
ctrlKey: ue,
|
|
3304
3317
|
key: `${ue}-${u} -${me.value}`,
|
|
3305
|
-
ctrlType: (H = B.table(_,
|
|
3318
|
+
ctrlType: (H = B.table(_, P, u)) != null && H.type ? B.table(_, P, u).type : B.type,
|
|
3306
3319
|
model: e.value,
|
|
3307
3320
|
class: "g-ctrl-container",
|
|
3308
3321
|
t: "t",
|
|
3309
3322
|
formInfo: _
|
|
3310
3323
|
}, pe({ _: 2 }, [
|
|
3311
|
-
|
|
3312
|
-
name:
|
|
3313
|
-
fn: b((
|
|
3314
|
-
$(t.$slots,
|
|
3315
|
-
data:
|
|
3324
|
+
R(t.$slots, (ie, Fe) => ({
|
|
3325
|
+
name: Fe,
|
|
3326
|
+
fn: b((Ue) => [
|
|
3327
|
+
$(t.$slots, Fe, {
|
|
3328
|
+
data: Ue,
|
|
3316
3329
|
item: B,
|
|
3317
3330
|
model: e.value
|
|
3318
3331
|
}, void 0, !0)
|
|
@@ -3323,16 +3336,16 @@ const Bl = {
|
|
|
3323
3336
|
}, !0) : $(t.$slots, `${ue}`, {
|
|
3324
3337
|
key: 1,
|
|
3325
3338
|
row: _,
|
|
3326
|
-
column:
|
|
3327
|
-
|
|
3339
|
+
column: P,
|
|
3340
|
+
index: u
|
|
3328
3341
|
}, () => [
|
|
3329
3342
|
N("div", {
|
|
3330
|
-
style:
|
|
3343
|
+
style: Oe([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, B == null ? void 0 : B.style]),
|
|
3331
3344
|
innerHTML: te(
|
|
3332
3345
|
B,
|
|
3333
|
-
|
|
3346
|
+
P.formatter(_, P, _[ue], u)
|
|
3334
3347
|
)
|
|
3335
|
-
}, null, 12,
|
|
3348
|
+
}, null, 12, ca)
|
|
3336
3349
|
], !0)
|
|
3337
3350
|
]),
|
|
3338
3351
|
key: "2"
|
|
@@ -3343,7 +3356,7 @@ const Bl = {
|
|
|
3343
3356
|
_: 3
|
|
3344
3357
|
}, 16, ["summary-method"]),
|
|
3345
3358
|
(at = (lt = (et = e.value) == null ? void 0 : et.table) == null ? void 0 : lt.page) != null && at.hidden ? ye("", !0) : $(t.$slots, "page", { key: 0 }, () => [
|
|
3346
|
-
G(
|
|
3359
|
+
G(Le, F({
|
|
3347
3360
|
"page-size": e.value.table.page.pageSize,
|
|
3348
3361
|
"onUpdate:pageSize": o[9] || (o[9] = (B) => e.value.table.page.pageSize = B),
|
|
3349
3362
|
"current-page": e.value.table.page.currentPage,
|
|
@@ -3360,7 +3373,7 @@ const Bl = {
|
|
|
3360
3373
|
], 64);
|
|
3361
3374
|
};
|
|
3362
3375
|
}
|
|
3363
|
-
}),
|
|
3376
|
+
}), ma = /* @__PURE__ */ Qe(fa, [["__scopeId", "data-v-e2885a33"]]), pa = { class: "g-tree-table" }, va = { class: "g-tree-container" }, ha = { class: "g-tree-table-container" }, ya = /* @__PURE__ */ Object.assign({
|
|
3364
3377
|
name: "g-tree-table",
|
|
3365
3378
|
inheritAttrs: !1
|
|
3366
3379
|
}, {
|
|
@@ -3375,23 +3388,23 @@ const Bl = {
|
|
|
3375
3388
|
const r = i, l = Ge(c, "modelValue"), e = Dt(), d = le(
|
|
3376
3389
|
typeof ((ne = e == null ? void 0 : e.tree) == null ? void 0 : ne.width) == "number" ? `${e.tree.width}px` : ((S = e == null ? void 0 : e.tree) == null ? void 0 : S.width) || "180px"
|
|
3377
3390
|
), D = le(((Q = e == null ? void 0 : e.tree) == null ? void 0 : Q.search) === void 0 ? !0 : (fe = e == null ? void 0 : e.tree) == null ? void 0 : fe.search), Y = le({}), V = le(""), E = le(null), k = (W, me) => {
|
|
3378
|
-
var
|
|
3391
|
+
var Ce, se;
|
|
3379
3392
|
if (!W) return !0;
|
|
3380
|
-
const de = ((se = (
|
|
3393
|
+
const de = ((se = (Ce = e.tree) == null ? void 0 : Ce.props) == null ? void 0 : se.label) || "label";
|
|
3381
3394
|
return me[de].includes(W);
|
|
3382
|
-
},
|
|
3395
|
+
}, z = (W, me) => {
|
|
3383
3396
|
r("load", Y.value, W, me);
|
|
3384
3397
|
}, K = (W) => {
|
|
3385
3398
|
Y.value = W, l.value.table.load();
|
|
3386
3399
|
};
|
|
3387
|
-
return
|
|
3400
|
+
return ll(V, (W) => {
|
|
3388
3401
|
E.value.filter(W);
|
|
3389
3402
|
}), (W, me) => {
|
|
3390
|
-
const de = A("el-input"),
|
|
3391
|
-
return n(), x("div",
|
|
3403
|
+
const de = A("el-input"), Ce = A("el-tree"), se = A("g-table");
|
|
3404
|
+
return n(), x("div", pa, [
|
|
3392
3405
|
N("div", {
|
|
3393
3406
|
class: "g-tree-left",
|
|
3394
|
-
style:
|
|
3407
|
+
style: Oe({ width: d.value })
|
|
3395
3408
|
}, [
|
|
3396
3409
|
D.value ? (n(), M(de, {
|
|
3397
3410
|
key: 0,
|
|
@@ -3401,8 +3414,8 @@ const Bl = {
|
|
|
3401
3414
|
placeholder: "输入节点查询",
|
|
3402
3415
|
clearable: ""
|
|
3403
3416
|
}, null, 8, ["modelValue"])) : ye("", !0),
|
|
3404
|
-
N("div",
|
|
3405
|
-
G(
|
|
3417
|
+
N("div", va, [
|
|
3418
|
+
G(Ce, F({
|
|
3406
3419
|
style: { width: d.value },
|
|
3407
3420
|
"filter-node-method": k,
|
|
3408
3421
|
"expand-on-click-node": !1,
|
|
@@ -3415,12 +3428,12 @@ const Bl = {
|
|
|
3415
3428
|
node: oe,
|
|
3416
3429
|
data: ve
|
|
3417
3430
|
}, () => [
|
|
3418
|
-
N("span", null,
|
|
3431
|
+
N("span", null, ke(oe.label), 1)
|
|
3419
3432
|
], !0)
|
|
3420
3433
|
]),
|
|
3421
3434
|
_: 2
|
|
3422
3435
|
}, [
|
|
3423
|
-
|
|
3436
|
+
R(W.$slots, (oe, ve, Me) => ({
|
|
3424
3437
|
name: ve,
|
|
3425
3438
|
fn: b((ee) => [
|
|
3426
3439
|
$(W.$slots, ve, { data: ee }, void 0, !0)
|
|
@@ -3429,12 +3442,12 @@ const Bl = {
|
|
|
3429
3442
|
]), 1040, ["style"])
|
|
3430
3443
|
])
|
|
3431
3444
|
], 4),
|
|
3432
|
-
N("div",
|
|
3445
|
+
N("div", ha, [
|
|
3433
3446
|
G(se, F({
|
|
3434
3447
|
modelValue: l.value,
|
|
3435
3448
|
"onUpdate:modelValue": me[1] || (me[1] = (oe) => l.value = oe)
|
|
3436
|
-
}, W.$attrs, { onLoad:
|
|
3437
|
-
|
|
3449
|
+
}, W.$attrs, { onLoad: z }), pe({ _: 2 }, [
|
|
3450
|
+
R(W.$slots, (oe, ve, Me) => ({
|
|
3438
3451
|
name: ve,
|
|
3439
3452
|
fn: b((ee) => [
|
|
3440
3453
|
$(W.$slots, ve, { data: ee }, void 0, !0)
|
|
@@ -3445,14 +3458,14 @@ const Bl = {
|
|
|
3445
3458
|
]);
|
|
3446
3459
|
};
|
|
3447
3460
|
}
|
|
3448
|
-
}),
|
|
3461
|
+
}), ga = /* @__PURE__ */ Qe(ya, [["__scopeId", "data-v-2d8b16ed"]]), ba = {
|
|
3449
3462
|
key: 0,
|
|
3450
3463
|
class: "op-group"
|
|
3451
|
-
},
|
|
3464
|
+
}, $a = {
|
|
3452
3465
|
key: 1,
|
|
3453
3466
|
class: "op-items",
|
|
3454
3467
|
style: { width: "100%", height: "100%" }
|
|
3455
|
-
},
|
|
3468
|
+
}, wa = ["title"], Tt = "100px", Ea = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
3456
3469
|
__name: "g-select-option",
|
|
3457
3470
|
props: {
|
|
3458
3471
|
columns: {
|
|
@@ -3474,45 +3487,45 @@ const Bl = {
|
|
|
3474
3487
|
},
|
|
3475
3488
|
setup(c) {
|
|
3476
3489
|
const i = c;
|
|
3477
|
-
return (r, l) => i.title ? (n(), x("div",
|
|
3478
|
-
(n(!0), x(X, null,
|
|
3479
|
-
style:
|
|
3490
|
+
return (r, l) => i.title ? (n(), x("div", ba, [
|
|
3491
|
+
(n(!0), x(X, null, R(i.columns, (e) => (n(), x("span", {
|
|
3492
|
+
style: Oe({ width: (e == null ? void 0 : e.width) || Tt, ...e == null ? void 0 : e.titleStyle, textAlign: (e == null ? void 0 : e.align) || "center" }),
|
|
3480
3493
|
key: e.key
|
|
3481
3494
|
}, [
|
|
3482
3495
|
$(r.$slots, `${c.t}-title-${e.key}`, { col: e }, () => [
|
|
3483
|
-
|
|
3496
|
+
Ae(ke(e.label), 1)
|
|
3484
3497
|
], !0)
|
|
3485
3498
|
], 4))), 128))
|
|
3486
|
-
])) : (n(), x("div",
|
|
3487
|
-
(n(!0), x(X, null,
|
|
3488
|
-
style:
|
|
3499
|
+
])) : (n(), x("div", $a, [
|
|
3500
|
+
(n(!0), x(X, null, R(i.columns, (e) => (n(), x("span", {
|
|
3501
|
+
style: Oe({ width: (e == null ? void 0 : e.width) || Tt, textAlign: (e == null ? void 0 : e.align) || "center", ...e == null ? void 0 : e.style }),
|
|
3489
3502
|
key: e.key,
|
|
3490
3503
|
title: c.data[e.key]
|
|
3491
3504
|
}, [
|
|
3492
3505
|
$(r.$slots, `${c.t}-option-${e.key}`, { col: e }, () => [
|
|
3493
|
-
|
|
3506
|
+
Ae(ke(c.data[e.key] ?? "-"), 1)
|
|
3494
3507
|
], !0)
|
|
3495
|
-
], 12,
|
|
3508
|
+
], 12, wa))), 128))
|
|
3496
3509
|
]));
|
|
3497
3510
|
}
|
|
3498
|
-
}),
|
|
3511
|
+
}), _a = /* @__PURE__ */ Qe(Ea, [["__scopeId", "data-v-c0ac6b77"]]), ka = Object.freeze({}), zt = [ma, wt, ga, _a];
|
|
3499
3512
|
let Et = {};
|
|
3500
|
-
const
|
|
3513
|
+
const Aa = {
|
|
3501
3514
|
install: (c, i = {}) => {
|
|
3502
|
-
Et = Object.freeze({ ...
|
|
3515
|
+
Et = Object.freeze({ ...ka, ...i }), zt.forEach((r) => {
|
|
3503
3516
|
c.component(r.name, r);
|
|
3504
3517
|
}), c.provide("options", Et), c.config.globalProperties.$openModal = _t;
|
|
3505
3518
|
}
|
|
3506
|
-
},
|
|
3519
|
+
}, Ca = (c) => ({ dialog: Ht, drawer: Nt })[c] || null, _t = (c = {}, i = "dialog") => {
|
|
3507
3520
|
if (typeof document > "u") return () => {
|
|
3508
3521
|
};
|
|
3509
3522
|
const r = document.createElement("div");
|
|
3510
3523
|
let l = () => {
|
|
3511
3524
|
};
|
|
3512
|
-
const e =
|
|
3525
|
+
const e = Ca(i);
|
|
3513
3526
|
if (!e) return () => {
|
|
3514
3527
|
};
|
|
3515
|
-
const d = le(!0), D =
|
|
3528
|
+
const d = le(!0), D = al({
|
|
3516
3529
|
setup() {
|
|
3517
3530
|
return l = () => {
|
|
3518
3531
|
d.value = !1, setTimeout(() => {
|
|
@@ -3520,7 +3533,7 @@ const Ma = {
|
|
|
3520
3533
|
}, 300);
|
|
3521
3534
|
}, () => {
|
|
3522
3535
|
var Y, V, E;
|
|
3523
|
-
return
|
|
3536
|
+
return Ee(e, {
|
|
3524
3537
|
modelValue: d.value,
|
|
3525
3538
|
"onUpdate:modelValue": (k) => d.value = k,
|
|
3526
3539
|
appendToBody: !0,
|
|
@@ -3541,11 +3554,11 @@ const Ma = {
|
|
|
3541
3554
|
vt();
|
|
3542
3555
|
}
|
|
3543
3556
|
});
|
|
3544
|
-
return
|
|
3557
|
+
return zt.forEach((Y) => {
|
|
3545
3558
|
D.component(Y.name, Y);
|
|
3546
|
-
}), D.provide("options", Et), D.use(
|
|
3559
|
+
}), D.provide("options", Et), D.use(Lt, { locale: hl }), document.body.appendChild(r), D.mount(r), l;
|
|
3547
3560
|
};
|
|
3548
|
-
function
|
|
3561
|
+
function jt(c, i = window.innerWidth) {
|
|
3549
3562
|
if (typeof c == "number")
|
|
3550
3563
|
return c;
|
|
3551
3564
|
if (c.endsWith("px"))
|
|
@@ -3567,28 +3580,28 @@ function Yt(c, i = window.innerWidth) {
|
|
|
3567
3580
|
throw new Error("Invalid calc expression");
|
|
3568
3581
|
};
|
|
3569
3582
|
const e = c.slice(5, -1).trim();
|
|
3570
|
-
return d(e.replace(/([0-9.]+)([a-z%]+)/g, (Y, V, E) =>
|
|
3583
|
+
return d(e.replace(/([0-9.]+)([a-z%]+)/g, (Y, V, E) => jt(V + E, i)));
|
|
3571
3584
|
}
|
|
3572
3585
|
throw new Error("Unsupported unit in value: " + c);
|
|
3573
3586
|
}
|
|
3574
|
-
const
|
|
3587
|
+
const xe = (...c) => {
|
|
3575
3588
|
const i = {}, r = (l, e) => (Object.keys(e).forEach((d) => {
|
|
3576
3589
|
l[d] = typeof e[d] == "object" && !Array.isArray(e[d]) ? r(l[d] || {}, e[d]) : e[d];
|
|
3577
3590
|
}), l);
|
|
3578
3591
|
return c.forEach((l = {}) => r(i, l)), i;
|
|
3579
3592
|
};
|
|
3580
|
-
function
|
|
3593
|
+
function Ye(c, i = (r, l) => i(r, l)) {
|
|
3581
3594
|
const r = {};
|
|
3582
3595
|
for (const l in c)
|
|
3583
3596
|
c.hasOwnProperty(l) && i(l, c[l]) && (r[l] = c[l]);
|
|
3584
3597
|
return r;
|
|
3585
3598
|
}
|
|
3586
|
-
function
|
|
3599
|
+
function Da(c, i, r = "value", l = "label", e = "children") {
|
|
3587
3600
|
for (const d of c) {
|
|
3588
3601
|
if (d[r] === i)
|
|
3589
3602
|
return d[l];
|
|
3590
3603
|
if (d[e] && d[e].length > 0) {
|
|
3591
|
-
const D =
|
|
3604
|
+
const D = Da(d[e], i, r, l, e);
|
|
3592
3605
|
if (D)
|
|
3593
3606
|
return D;
|
|
3594
3607
|
}
|
|
@@ -3614,13 +3627,13 @@ function kt(c) {
|
|
|
3614
3627
|
}
|
|
3615
3628
|
return e + d.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
3616
3629
|
}
|
|
3617
|
-
function
|
|
3630
|
+
function Ma(c) {
|
|
3618
3631
|
if (typeof c != "number" || isNaN(c) || !isFinite(c))
|
|
3619
3632
|
return "0.00";
|
|
3620
3633
|
const i = c.toFixed(2), [r, l] = i.split(".");
|
|
3621
3634
|
return `${r.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${l}`;
|
|
3622
3635
|
}
|
|
3623
|
-
const
|
|
3636
|
+
const _e = {
|
|
3624
3637
|
RADIO: "radio",
|
|
3625
3638
|
RADIOBUTTON: "radio-button",
|
|
3626
3639
|
CHECKBOX: "checkbox",
|
|
@@ -3653,10 +3666,10 @@ const Ee = {
|
|
|
3653
3666
|
const c = document.querySelector(".el-dialog");
|
|
3654
3667
|
if (!c || c.querySelector(".dialog-resize-handle"))
|
|
3655
3668
|
return;
|
|
3656
|
-
const i =
|
|
3657
|
-
c.appendChild(i),
|
|
3669
|
+
const i = Va();
|
|
3670
|
+
c.appendChild(i), Sa(c), Ta(c, i);
|
|
3658
3671
|
});
|
|
3659
|
-
},
|
|
3672
|
+
}, Va = () => {
|
|
3660
3673
|
const c = document.createElement("div");
|
|
3661
3674
|
return Object.assign(c.style, {
|
|
3662
3675
|
position: "absolute",
|
|
@@ -3668,7 +3681,7 @@ const Ee = {
|
|
|
3668
3681
|
cursor: "nwse-resize",
|
|
3669
3682
|
zIndex: "999999999999"
|
|
3670
3683
|
}), c.className = "dialog-resize-handle", c;
|
|
3671
|
-
},
|
|
3684
|
+
}, Sa = (c) => {
|
|
3672
3685
|
Object.assign(c.style, {
|
|
3673
3686
|
transition: "none",
|
|
3674
3687
|
minWidth: "300px",
|
|
@@ -3676,28 +3689,28 @@ const Ee = {
|
|
|
3676
3689
|
resize: "none"
|
|
3677
3690
|
// 防止与原生resize冲突
|
|
3678
3691
|
});
|
|
3679
|
-
},
|
|
3692
|
+
}, Ta = (c, i) => {
|
|
3680
3693
|
let r = !1, l, e, d, D;
|
|
3681
3694
|
const Y = (k) => {
|
|
3682
3695
|
k.preventDefault(), r = !0, l = k.clientX, e = k.clientY, d = parseInt(document.defaultView.getComputedStyle(c).width), D = parseInt(document.defaultView.getComputedStyle(c).height), document.addEventListener("mousemove", V), document.addEventListener("mouseup", E);
|
|
3683
3696
|
}, V = (k) => {
|
|
3684
3697
|
if (!r) return;
|
|
3685
|
-
const
|
|
3686
|
-
c.style.width = `${
|
|
3698
|
+
const z = Math.max(300, d + k.clientX - l), K = Math.max(200, D + k.clientY - e);
|
|
3699
|
+
c.style.width = `${z}px`, c.style.height = `${K}px`;
|
|
3687
3700
|
}, E = () => {
|
|
3688
3701
|
r = !1, document.removeEventListener("mousemove", V), document.removeEventListener("mouseup", E);
|
|
3689
3702
|
};
|
|
3690
3703
|
i.addEventListener("mousedown", Y);
|
|
3691
3704
|
};
|
|
3692
3705
|
export {
|
|
3693
|
-
|
|
3706
|
+
_e as CT,
|
|
3694
3707
|
vt as bindResize,
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3708
|
+
jt as convertToPx,
|
|
3709
|
+
Aa as default,
|
|
3710
|
+
Ye as filterObject,
|
|
3711
|
+
Da as findTreeLabelByValue,
|
|
3712
|
+
Ma as formatAmount,
|
|
3713
|
+
xe as mergeObjects,
|
|
3701
3714
|
kt as moneyToChinese,
|
|
3702
3715
|
_t as openModal
|
|
3703
3716
|
};
|