vue-2024-ui 0.1.9 → 0.1.11
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 +479 -468
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { mergeModels as Le, useModel as Ne, ref as te, nextTick as Qe, onMounted as
|
|
1
|
+
import At, { ElForm as st, ElButtonGroup as it, ElButton as ke, ElPopover as ct, ElMessage as Te, ElMessageBox as Vt, ElDialog as Bt, ElDrawer as It } from "element-plus";
|
|
2
|
+
import { mergeModels as Le, useModel as Ne, ref as te, nextTick as Qe, onMounted as at, computed as Xe, resolveComponent as Y, openBlock as i, createElementBlock as x, Fragment as W, createElementVNode as G, createBlock as M, createCommentVNode as ce, unref as L, mergeProps as q, withCtx as y, renderSlot as h, renderList as R, createTextVNode as _e, toDisplayString as he, createSlots as fe, createVNode as J, useSlots as Mt, inject as gt, useAttrs as bt, onUnmounted as Yt, normalizeStyle as Ae, withModifiers as lt, resolveDynamicComponent as Be, normalizeProps as Ut, guardReactiveProps as Rt, Transition as jt, withDirectives as Lt, vShow as Nt, h as Oe, onBeforeUnmount as zt, normalizeClass as St, watchEffect as Pt, watch as Ht, createApp as Wt } from "vue";
|
|
3
3
|
import { Plus as Xt, ZoomOut as Gt, Delete as Qt, FullScreen as Zt, CopyDocument as Jt } from "@element-plus/icons-vue";
|
|
4
|
-
import
|
|
4
|
+
import Ft from "sortablejs";
|
|
5
5
|
import { Dexie as Kt } from "dexie";
|
|
6
6
|
var el = {
|
|
7
7
|
name: "zh-cn",
|
|
@@ -184,12 +184,12 @@ var el = {
|
|
|
184
184
|
function ll(f) {
|
|
185
185
|
return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var Tt = { exports: {} };
|
|
188
188
|
(function(f, c) {
|
|
189
189
|
(function(r, t) {
|
|
190
190
|
f.exports = t();
|
|
191
191
|
})(tl, function() {
|
|
192
|
-
var r = 1e3, t = 6e4, e = 36e5, d = "millisecond", E = "second",
|
|
192
|
+
var r = 1e3, t = 6e4, e = 36e5, d = "millisecond", E = "second", F = "minute", T = "hour", k = "day", $ = "week", N = "month", ee = "quarter", I = "year", U = "date", re = "Invalid Date", ae = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, Q = /\[([^\]]+)]|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) {
|
|
193
193
|
var a = ["th", "st", "nd", "rd"], p = v % 100;
|
|
194
194
|
return "[" + v + (a[(p - 20) % 10] || a[p] || a[0]) + "]";
|
|
195
195
|
} }, ye = function(v, a, p) {
|
|
@@ -200,12 +200,12 @@ var xt = { exports: {} };
|
|
|
200
200
|
return (a <= 0 ? "+" : "-") + ye(g, 2, "0") + ":" + ye(s, 2, "0");
|
|
201
201
|
}, m: function v(a, p) {
|
|
202
202
|
if (a.date() < p.date()) return -v(p, a);
|
|
203
|
-
var g = 12 * (p.year() - a.year()) + (p.month() - a.month()), s = a.clone().add(g,
|
|
203
|
+
var g = 12 * (p.year() - a.year()) + (p.month() - a.month()), s = a.clone().add(g, N), D = p - s < 0, C = a.clone().add(g + (D ? -1 : 1), N);
|
|
204
204
|
return +(-(g + (p - s) / (D ? s - C : C - s)) || 0);
|
|
205
205
|
}, a: function(v) {
|
|
206
206
|
return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
|
|
207
207
|
}, p: function(v) {
|
|
208
|
-
return { M:
|
|
208
|
+
return { M: N, y: I, w: $, d: k, D: U, h: T, m: F, s: E, ms: d, Q: ee }[v] || String(v || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(v) {
|
|
210
210
|
return v === void 0;
|
|
211
211
|
} }, ie = "en", de = {};
|
|
@@ -221,8 +221,8 @@ var xt = { exports: {} };
|
|
|
221
221
|
var C = a.split("-");
|
|
222
222
|
if (!s && C.length > 1) return v(C[0]);
|
|
223
223
|
} else {
|
|
224
|
-
var
|
|
225
|
-
de[
|
|
224
|
+
var j = a.name;
|
|
225
|
+
de[j] = a, s = j;
|
|
226
226
|
}
|
|
227
227
|
return !g && s && (ie = s), s || !g && ie;
|
|
228
228
|
}, se = function(v, a) {
|
|
@@ -247,8 +247,8 @@ var xt = { exports: {} };
|
|
|
247
247
|
if (typeof s == "string" && !/Z$/i.test(s)) {
|
|
248
248
|
var C = s.match(ae);
|
|
249
249
|
if (C) {
|
|
250
|
-
var
|
|
251
|
-
return D ? new Date(Date.UTC(C[1],
|
|
250
|
+
var j = C[2] - 1 || 0, X = (C[7] || "0").substring(0, 3);
|
|
251
|
+
return D ? new Date(Date.UTC(C[1], j, C[3] || 1, C[4] || 0, C[5] || 0, C[6] || 0, X)) : new Date(C[1], j, C[3] || 1, C[4] || 0, C[5] || 0, C[6] || 0, X);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
return new Date(s);
|
|
@@ -274,7 +274,7 @@ var xt = { exports: {} };
|
|
|
274
274
|
}, a.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
276
|
}, a.startOf = function(p, g) {
|
|
277
|
-
var s = this, D = !!b.u(g) || g, C = b.p(p),
|
|
277
|
+
var s = this, D = !!b.u(g) || g, C = b.p(p), j = function(Ve, $e) {
|
|
278
278
|
var Me = b.w(s.$u ? Date.UTC(s.$y, $e, Ve) : new Date(s.$y, $e, Ve), s);
|
|
279
279
|
return D ? Me : Me.endOf(k);
|
|
280
280
|
}, X = function(Ve, $e) {
|
|
@@ -282,18 +282,18 @@ var xt = { exports: {} };
|
|
|
282
282
|
}, O = this.$W, A = this.$M, ue = this.$D, Ee = "set" + (this.$u ? "UTC" : "");
|
|
283
283
|
switch (C) {
|
|
284
284
|
case I:
|
|
285
|
-
return D ?
|
|
286
|
-
case
|
|
287
|
-
return D ?
|
|
285
|
+
return D ? j(1, 0) : j(31, 11);
|
|
286
|
+
case N:
|
|
287
|
+
return D ? j(1, A) : j(0, A + 1);
|
|
288
288
|
case $:
|
|
289
289
|
var we = this.$locale().weekStart || 0, De = (O < we ? O + 7 : O) - we;
|
|
290
|
-
return
|
|
290
|
+
return j(D ? ue - De : ue + (6 - De), A);
|
|
291
291
|
case k:
|
|
292
|
-
case
|
|
292
|
+
case U:
|
|
293
293
|
return X(Ee + "Hours", 0);
|
|
294
|
-
case S:
|
|
295
|
-
return X(Ee + "Minutes", 1);
|
|
296
294
|
case T:
|
|
295
|
+
return X(Ee + "Minutes", 1);
|
|
296
|
+
case F:
|
|
297
297
|
return X(Ee + "Seconds", 2);
|
|
298
298
|
case E:
|
|
299
299
|
return X(Ee + "Milliseconds", 3);
|
|
@@ -303,11 +303,11 @@ var xt = { exports: {} };
|
|
|
303
303
|
}, a.endOf = function(p) {
|
|
304
304
|
return this.startOf(p, !1);
|
|
305
305
|
}, a.$set = function(p, g) {
|
|
306
|
-
var s, D = b.p(p), C = "set" + (this.$u ? "UTC" : ""),
|
|
307
|
-
if (D ===
|
|
308
|
-
var O = this.clone().set(
|
|
309
|
-
O.$d[
|
|
310
|
-
} else
|
|
306
|
+
var s, D = b.p(p), C = "set" + (this.$u ? "UTC" : ""), j = (s = {}, s[k] = C + "Date", s[U] = C + "Date", s[N] = C + "Month", s[I] = C + "FullYear", s[T] = C + "Hours", s[F] = C + "Minutes", s[E] = C + "Seconds", s[d] = C + "Milliseconds", s)[D], X = D === k ? this.$D + (g - this.$W) : g;
|
|
307
|
+
if (D === N || D === I) {
|
|
308
|
+
var O = this.clone().set(U, 1);
|
|
309
|
+
O.$d[j](X), O.init(), this.$d = O.set(U, Math.min(this.$D, O.daysInMonth())).$d;
|
|
310
|
+
} else j && this.$d[j](X);
|
|
311
311
|
return this.init(), this;
|
|
312
312
|
}, a.set = function(p, g) {
|
|
313
313
|
return this.clone().$set(p, g);
|
|
@@ -316,25 +316,25 @@ var xt = { exports: {} };
|
|
|
316
316
|
}, a.add = function(p, g) {
|
|
317
317
|
var s, D = this;
|
|
318
318
|
p = Number(p);
|
|
319
|
-
var C = b.p(g),
|
|
319
|
+
var C = b.p(g), j = function(A) {
|
|
320
320
|
var ue = se(D);
|
|
321
321
|
return b.w(ue.date(ue.date() + Math.round(A * p)), D);
|
|
322
322
|
};
|
|
323
|
-
if (C ===
|
|
323
|
+
if (C === N) return this.set(N, this.$M + p);
|
|
324
324
|
if (C === I) return this.set(I, this.$y + p);
|
|
325
|
-
if (C === k) return
|
|
326
|
-
if (C === $) return
|
|
327
|
-
var X = (s = {}, s[
|
|
325
|
+
if (C === k) return j(1);
|
|
326
|
+
if (C === $) return j(7);
|
|
327
|
+
var X = (s = {}, s[F] = t, s[T] = e, s[E] = r, s)[C] || 1, O = this.$d.getTime() + p * X;
|
|
328
328
|
return b.w(O, this);
|
|
329
329
|
}, a.subtract = function(p, g) {
|
|
330
330
|
return this.add(-1 * p, g);
|
|
331
331
|
}, a.format = function(p) {
|
|
332
332
|
var g = this, s = this.$locale();
|
|
333
333
|
if (!this.isValid()) return s.invalidDate || re;
|
|
334
|
-
var D = p || "YYYY-MM-DDTHH:mm:ssZ", C = b.z(this),
|
|
334
|
+
var D = p || "YYYY-MM-DDTHH:mm:ssZ", C = b.z(this), j = this.$H, X = this.$m, O = this.$M, A = s.weekdays, ue = s.months, Ee = s.meridiem, we = function($e, Me, Ie, Ye) {
|
|
335
335
|
return $e && ($e[Me] || $e(g, D)) || Ie[Me].slice(0, Ye);
|
|
336
336
|
}, De = function($e) {
|
|
337
|
-
return b.s(
|
|
337
|
+
return b.s(j % 12 || 12, $e, "0");
|
|
338
338
|
}, Ve = Ee || function($e, Me, Ie) {
|
|
339
339
|
var Ye = $e < 12 ? "AM" : "PM";
|
|
340
340
|
return Ie ? Ye.toLowerCase() : Ye;
|
|
@@ -367,17 +367,17 @@ var xt = { exports: {} };
|
|
|
367
367
|
case "dddd":
|
|
368
368
|
return A[g.$W];
|
|
369
369
|
case "H":
|
|
370
|
-
return String(
|
|
370
|
+
return String(j);
|
|
371
371
|
case "HH":
|
|
372
|
-
return b.s(
|
|
372
|
+
return b.s(j, 2, "0");
|
|
373
373
|
case "h":
|
|
374
374
|
return De(1);
|
|
375
375
|
case "hh":
|
|
376
376
|
return De(2);
|
|
377
377
|
case "a":
|
|
378
|
-
return Ve(
|
|
378
|
+
return Ve(j, X, !0);
|
|
379
379
|
case "A":
|
|
380
|
-
return Ve(
|
|
380
|
+
return Ve(j, X, !1);
|
|
381
381
|
case "m":
|
|
382
382
|
return String(X);
|
|
383
383
|
case "mm":
|
|
@@ -397,14 +397,14 @@ var xt = { exports: {} };
|
|
|
397
397
|
}, a.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
399
|
}, a.diff = function(p, g, s) {
|
|
400
|
-
var D, C = this,
|
|
400
|
+
var D, C = this, j = b.p(g), X = se(p), O = (X.utcOffset() - this.utcOffset()) * t, A = this - X, ue = function() {
|
|
401
401
|
return b.m(C, X);
|
|
402
402
|
};
|
|
403
|
-
switch (
|
|
403
|
+
switch (j) {
|
|
404
404
|
case I:
|
|
405
405
|
D = ue() / 12;
|
|
406
406
|
break;
|
|
407
|
-
case
|
|
407
|
+
case N:
|
|
408
408
|
D = ue();
|
|
409
409
|
break;
|
|
410
410
|
case ee:
|
|
@@ -416,10 +416,10 @@ var xt = { exports: {} };
|
|
|
416
416
|
case k:
|
|
417
417
|
D = (A - O) / 864e5;
|
|
418
418
|
break;
|
|
419
|
-
case
|
|
419
|
+
case T:
|
|
420
420
|
D = A / e;
|
|
421
421
|
break;
|
|
422
|
-
case
|
|
422
|
+
case F:
|
|
423
423
|
D = A / t;
|
|
424
424
|
break;
|
|
425
425
|
case E:
|
|
@@ -430,7 +430,7 @@ var xt = { exports: {} };
|
|
|
430
430
|
}
|
|
431
431
|
return s ? D : b.a(D);
|
|
432
432
|
}, a.daysInMonth = function() {
|
|
433
|
-
return this.endOf(
|
|
433
|
+
return this.endOf(N).$D;
|
|
434
434
|
}, a.$locale = function() {
|
|
435
435
|
return de[this.$L];
|
|
436
436
|
}, a.locale = function(p, g) {
|
|
@@ -449,7 +449,7 @@ var xt = { exports: {} };
|
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, v;
|
|
451
451
|
}(), _ = o.prototype;
|
|
452
|
-
return se.prototype = _, [["$ms", d], ["$s", E], ["$m",
|
|
452
|
+
return se.prototype = _, [["$ms", d], ["$s", E], ["$m", F], ["$H", T], ["$W", k], ["$M", N], ["$y", I], ["$D", U]].forEach(function(v) {
|
|
453
453
|
_[v[1]] = function(a) {
|
|
454
454
|
return this.$g(a, v[0], v[1]);
|
|
455
455
|
};
|
|
@@ -459,8 +459,8 @@ var xt = { exports: {} };
|
|
|
459
459
|
return se(1e3 * v);
|
|
460
460
|
}, se.en = de[ie], se.Ls = de, se.p = {}, se;
|
|
461
461
|
});
|
|
462
|
-
})(
|
|
463
|
-
var al =
|
|
462
|
+
})(Tt);
|
|
463
|
+
var al = Tt.exports;
|
|
464
464
|
const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
465
465
|
const r = f.__vccOpts || f;
|
|
466
466
|
for (const [t, e] of c)
|
|
@@ -481,12 +481,12 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
481
481
|
emits: ["update:modelValue"],
|
|
482
482
|
setup(f) {
|
|
483
483
|
var be, se;
|
|
484
|
-
const c = Ne(f, "modelValue"), r = f, t = te(r.item || {}), e = te(r.ctrlKey), d = te(r.ctrlType), E = te(r.model),
|
|
484
|
+
const c = Ne(f, "modelValue"), r = f, t = te(r.item || {}), e = te(r.ctrlKey), d = te(r.ctrlType), E = te(r.model), F = te([]), T = te([]), k = te(!1), $ = te(!1), N = () => Object.keys(Mt()).filter((b) => b.startsWith(`${r.t}-${e}-`)).map((b) => b.replace(`${r.t}-${e}-`, "")), ee = te({
|
|
485
485
|
multiple: !1,
|
|
486
486
|
"show-file-list": !1,
|
|
487
487
|
"file-list": [],
|
|
488
488
|
showDel: (be = t.value) != null && be.showDel ? (se = t.value) == null ? void 0 : se.showDel : r.t !== "t"
|
|
489
|
-
}), I = te(t.value.innerHtml),
|
|
489
|
+
}), I = te(t.value.innerHtml), U = (b) => [
|
|
490
490
|
"year",
|
|
491
491
|
"years",
|
|
492
492
|
"month",
|
|
@@ -520,7 +520,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
520
520
|
}), Q = te((b) => {
|
|
521
521
|
t.value["remote-method"](b, (o) => {
|
|
522
522
|
Qe(() => {
|
|
523
|
-
|
|
523
|
+
T.value = o;
|
|
524
524
|
});
|
|
525
525
|
});
|
|
526
526
|
}), me = async (b = "options") => {
|
|
@@ -528,14 +528,14 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
528
528
|
try {
|
|
529
529
|
const _ = await ((o = t.value) == null ? void 0 : o.getDicts(r.formInfo));
|
|
530
530
|
if (typeof _ == "string")
|
|
531
|
-
|
|
531
|
+
T.value = [{ label: _, value: c.value }];
|
|
532
532
|
else {
|
|
533
533
|
const v = _ == null ? void 0 : _.map((a, p) => ({
|
|
534
534
|
...a,
|
|
535
535
|
value: a.value ?? a.label ?? p,
|
|
536
536
|
label: a.label || "未知选项"
|
|
537
537
|
}));
|
|
538
|
-
|
|
538
|
+
T.value = v || [];
|
|
539
539
|
}
|
|
540
540
|
} catch (_) {
|
|
541
541
|
throw console.error("获取选项失败:", _), _;
|
|
@@ -550,25 +550,25 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
550
550
|
}, de = (b) => {
|
|
551
551
|
b.preventDefault(), b.stopPropagation(), k.value = !0;
|
|
552
552
|
}, ne = te(null);
|
|
553
|
-
|
|
553
|
+
at(async () => {
|
|
554
554
|
var _, v, a, p, g;
|
|
555
|
-
t.value && t.value["remote-method"] && (ae.value["remote-method"] = Q), (v = (_ = E.value[e.value]) == null ? void 0 : _.options) != null && v.length && (
|
|
555
|
+
t.value && t.value["remote-method"] && (ae.value["remote-method"] = Q), (v = (_ = E.value[e.value]) == null ? void 0 : _.options) != null && v.length && (T.value = E.value[e.value].options);
|
|
556
556
|
const b = (s, D = "options", C = E.value[e.value]) => {
|
|
557
|
-
typeof t.value.getDicts == "function" && me(D).catch((
|
|
558
|
-
console.error(`Failed to load ${D} for ${s}:`,
|
|
557
|
+
typeof t.value.getDicts == "function" && me(D).catch((j) => {
|
|
558
|
+
console.error(`Failed to load ${D} for ${s}:`, j);
|
|
559
559
|
});
|
|
560
560
|
};
|
|
561
561
|
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(d.value) && b(d.value), d.value === pe.TREESELECT && await (async () => {
|
|
562
562
|
try {
|
|
563
|
-
typeof t.value.getDicts == "function" ?
|
|
563
|
+
typeof t.value.getDicts == "function" ? F.value = await t.value.getDicts(r.formInfo) : F.value = T.value;
|
|
564
564
|
} catch (D) {
|
|
565
565
|
console.error("Failed to load data for tree-select:", D);
|
|
566
566
|
}
|
|
567
567
|
})(), r.t == "q") {
|
|
568
568
|
let s = t.value.type || d.value;
|
|
569
569
|
(s === void 0 || d.value === "input" || s == pe.NUMBER || s == pe.EMAIL || s == "url" || s == "text") && t.value.onKeyup == null && (t.value.onKeyup = (D) => {
|
|
570
|
-
var C,
|
|
571
|
-
console.log(D.key), (D.keyCode === 13 || D.key === "Enter") && ((
|
|
570
|
+
var C, j;
|
|
571
|
+
console.log(D.key), (D.keyCode === 13 || D.key === "Enter") && ((j = (C = E.value) == null ? void 0 : C.table) == null || j.load());
|
|
572
572
|
}), [
|
|
573
573
|
"radio",
|
|
574
574
|
"switch",
|
|
@@ -586,8 +586,8 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
586
586
|
"datetimerange",
|
|
587
587
|
"week"
|
|
588
588
|
].includes(s) && t.value.onChange === void 0 && (t.value.onChange = (D) => {
|
|
589
|
-
var C,
|
|
590
|
-
(
|
|
589
|
+
var C, j;
|
|
590
|
+
(j = (C = E.value) == null ? void 0 : C.table) == null || j.load();
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
593
|
d.value == "image" && (t.value.width && ((a = ne.value) != null && a.$el) && ne.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && ((p = ne.value) != null && p.$el) && ne.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((g = ne.value) != null && g.$el) && ne.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
|
|
@@ -597,8 +597,8 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
597
597
|
return t.value["file-list"] && t.value["file-list"].length ? (b = t.value["file-list"]) == null ? void 0 : b.map((o) => o == null ? void 0 : o.url) : [c.value];
|
|
598
598
|
});
|
|
599
599
|
return (b, o) => {
|
|
600
|
-
var m,
|
|
601
|
-
const _ = Y("el-image-viewer"), v = Y("el-radio"), a = Y("el-radio-group"), p = Y("el-radio-button"), g = Y("el-checkbox"), s = Y("el-checkbox-group"), D = Y("el-checkbox-button"), C = Y("g-select-option"),
|
|
600
|
+
var m, S, P;
|
|
601
|
+
const _ = Y("el-image-viewer"), v = Y("el-radio"), a = Y("el-radio-group"), p = Y("el-radio-button"), g = Y("el-checkbox"), s = Y("el-checkbox-group"), D = Y("el-checkbox-button"), C = Y("g-select-option"), j = Y("el-option"), X = Y("el-select"), O = Y("el-tree-select"), A = Y("el-time-picker"), ue = Y("el-time-select"), Ee = Y("el-date-picker"), we = Y("el-color-picker"), De = Y("el-rate"), Ve = Y("el-slider"), $e = Y("el-switch"), Me = Y("el-transfer"), Ie = Y("el-cascader"), Ye = Y("el-icon"), ot = Y("el-image"), Ze = Y("el-tooltip"), rt = Y("el-upload"), ut = Y("el-autocomplete"), nt = Y("el-input-number"), Je = Y("el-input"), l = Y("el-link"), u = Y("el-tag");
|
|
602
602
|
return i(), x(W, null, [
|
|
603
603
|
G("div", null, [
|
|
604
604
|
k.value ? (i(), M(_, {
|
|
@@ -609,14 +609,14 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
609
609
|
}, null, 8, ["url-list"])) : ce("", !0)
|
|
610
610
|
]),
|
|
611
611
|
G("div", ol, [
|
|
612
|
-
d.value ==
|
|
612
|
+
d.value == L(pe).RADIO ? (i(), M(a, q({
|
|
613
613
|
key: 0,
|
|
614
614
|
modelValue: c.value,
|
|
615
615
|
"onUpdate:modelValue": o[1] || (o[1] = (n) => c.value = n)
|
|
616
616
|
}, t.value), {
|
|
617
617
|
default: y(() => [
|
|
618
618
|
h(b.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
|
|
619
|
-
(i(!0), x(W, null,
|
|
619
|
+
(i(!0), x(W, null, R(T.value, (n) => (i(), M(v, q({ ref_for: !0 }, n), {
|
|
620
620
|
default: y(() => [
|
|
621
621
|
h(b.$slots, `${r.t}-${e.value}-options`, { option: n }, void 0, !0)
|
|
622
622
|
]),
|
|
@@ -625,14 +625,14 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
625
625
|
], !0)
|
|
626
626
|
]),
|
|
627
627
|
_: 3
|
|
628
|
-
}, 16, ["modelValue"])) : d.value ==
|
|
628
|
+
}, 16, ["modelValue"])) : d.value == L(pe).RADIOBUTTON ? (i(), M(a, q({
|
|
629
629
|
key: 1,
|
|
630
630
|
modelValue: c.value,
|
|
631
631
|
"onUpdate:modelValue": o[2] || (o[2] = (n) => c.value = n)
|
|
632
632
|
}, t.value), {
|
|
633
633
|
default: y(() => [
|
|
634
634
|
h(b.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
|
|
635
|
-
(i(!0), x(W, null,
|
|
635
|
+
(i(!0), x(W, null, R(T.value, (n) => (i(), M(p, q({ ref_for: !0 }, n), {
|
|
636
636
|
default: y(() => [
|
|
637
637
|
h(b.$slots, `${r.t}-${e.value}-options`, { option: n }, void 0, !0)
|
|
638
638
|
]),
|
|
@@ -641,7 +641,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
641
641
|
], !0)
|
|
642
642
|
]),
|
|
643
643
|
_: 3
|
|
644
|
-
}, 16, ["modelValue"])) : d.value ==
|
|
644
|
+
}, 16, ["modelValue"])) : d.value == L(pe).CHECKBOX ? (i(), M(g, q({
|
|
645
645
|
key: 2,
|
|
646
646
|
modelValue: c.value,
|
|
647
647
|
"onUpdate:modelValue": o[3] || (o[3] = (n) => c.value = n)
|
|
@@ -652,14 +652,14 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
652
652
|
], !0)
|
|
653
653
|
]),
|
|
654
654
|
_: 3
|
|
655
|
-
}, 16, ["modelValue"])) : d.value ==
|
|
655
|
+
}, 16, ["modelValue"])) : d.value == L(pe).CHECKBOXGROUP ? (i(), M(s, q({
|
|
656
656
|
key: 3,
|
|
657
657
|
modelValue: c.value,
|
|
658
658
|
"onUpdate:modelValue": o[4] || (o[4] = (n) => c.value = n)
|
|
659
659
|
}, t.value), {
|
|
660
660
|
default: y(() => [
|
|
661
661
|
h(b.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
|
|
662
|
-
(i(!0), x(W, null,
|
|
662
|
+
(i(!0), x(W, null, R(T.value, (n) => (i(), M(g, q({ ref_for: !0 }, n), {
|
|
663
663
|
default: y(() => [
|
|
664
664
|
h(b.$slots, `${r.t}-${e.value}-options`, { option: n }, () => [
|
|
665
665
|
_e(he(n.label), 1)
|
|
@@ -670,14 +670,14 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
670
670
|
], !0)
|
|
671
671
|
]),
|
|
672
672
|
_: 3
|
|
673
|
-
}, 16, ["modelValue"])) : d.value ==
|
|
673
|
+
}, 16, ["modelValue"])) : d.value == L(pe).CHECKBOXGROUPBUTTON ? (i(), M(s, q({
|
|
674
674
|
key: 4,
|
|
675
675
|
modelValue: c.value,
|
|
676
676
|
"onUpdate:modelValue": o[5] || (o[5] = (n) => c.value = n)
|
|
677
677
|
}, t.value), {
|
|
678
678
|
default: y(() => [
|
|
679
679
|
h(b.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
|
|
680
|
-
(i(!0), x(W, null,
|
|
680
|
+
(i(!0), x(W, null, R(T.value, (n) => (i(), M(D, q({ ref_for: !0 }, n), {
|
|
681
681
|
default: y(() => [
|
|
682
682
|
h(b.$slots, `${r.t}-${e.value}-options`, { option: n }, void 0, !0)
|
|
683
683
|
]),
|
|
@@ -686,7 +686,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
686
686
|
], !0)
|
|
687
687
|
]),
|
|
688
688
|
_: 3
|
|
689
|
-
}, 16, ["modelValue"])) : d.value ===
|
|
689
|
+
}, 16, ["modelValue"])) : d.value === L(pe).SELECT ? (i(), M(X, q({
|
|
690
690
|
key: 5,
|
|
691
691
|
modelValue: c.value,
|
|
692
692
|
"onUpdate:modelValue": o[6] || (o[6] = (n) => c.value = n),
|
|
@@ -697,11 +697,11 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
697
697
|
})
|
|
698
698
|
}, ae.value), fe({
|
|
699
699
|
default: y(() => [
|
|
700
|
-
h(b.$slots, `${r.t}-${e.value}`, { options:
|
|
701
|
-
(i(!0), x(W, null,
|
|
700
|
+
h(b.$slots, `${r.t}-${e.value}`, { options: T.value }, () => [
|
|
701
|
+
(i(!0), x(W, null, R(T.value, (n) => (i(), x(W, {
|
|
702
702
|
key: n.value
|
|
703
703
|
}, [
|
|
704
|
-
J(
|
|
704
|
+
J(j, q({ ref_for: !0 }, L(Ce)(n, (V) => V != "children"), {
|
|
705
705
|
onClick: (V) => {
|
|
706
706
|
ae.value.change && ae.value.change(n), ye();
|
|
707
707
|
}
|
|
@@ -720,7 +720,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
720
720
|
data: n,
|
|
721
721
|
t: r.t
|
|
722
722
|
}, fe({ _: 2 }, [
|
|
723
|
-
|
|
723
|
+
R(b.$slots, (ve, qe) => ({
|
|
724
724
|
name: qe,
|
|
725
725
|
fn: y((xe) => [
|
|
726
726
|
h(b.$slots, qe, {
|
|
@@ -736,11 +736,11 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
736
736
|
}),
|
|
737
737
|
_: 2
|
|
738
738
|
}, 1040, ["onClick"]),
|
|
739
|
-
n.children && n.children.length ? (i(!0), x(W, { key: 0 },
|
|
739
|
+
n.children && n.children.length ? (i(!0), x(W, { key: 0 }, R(n.children, (V) => (i(), M(j, q({
|
|
740
740
|
style: { "margin-left": "20px" },
|
|
741
741
|
key: V.value,
|
|
742
742
|
ref_for: !0
|
|
743
|
-
},
|
|
743
|
+
}, L(Ce)(V, (K) => K != "children"), {
|
|
744
744
|
onClick: (K) => {
|
|
745
745
|
ae.value.change && ae.value.change(V), ye();
|
|
746
746
|
}
|
|
@@ -759,7 +759,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
759
759
|
data: V,
|
|
760
760
|
t: r.t
|
|
761
761
|
}, fe({ _: 2 }, [
|
|
762
|
-
|
|
762
|
+
R(b.$slots, (qe, xe) => ({
|
|
763
763
|
name: xe,
|
|
764
764
|
fn: y((ze) => [
|
|
765
765
|
h(b.$slots, xe, {
|
|
@@ -790,7 +790,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
790
790
|
title: !0,
|
|
791
791
|
t: r.t
|
|
792
792
|
}, fe({ _: 2 }, [
|
|
793
|
-
|
|
793
|
+
R(b.$slots, (V, K) => ({
|
|
794
794
|
name: K,
|
|
795
795
|
fn: y((ve) => [
|
|
796
796
|
h(b.$slots, K, { data: ve }, void 0, !0)
|
|
@@ -801,32 +801,32 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
801
801
|
}),
|
|
802
802
|
key: "0"
|
|
803
803
|
} : void 0,
|
|
804
|
-
|
|
804
|
+
R(N(), (n) => ({
|
|
805
805
|
name: n,
|
|
806
806
|
fn: y((V) => [
|
|
807
807
|
h(b.$slots, `${r.t}-${e.value}-${n}`, { data: V }, void 0, !0)
|
|
808
808
|
])
|
|
809
809
|
}))
|
|
810
|
-
]), 1040, ["modelValue", "placeholder"])) : d.value ==
|
|
810
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == L(pe).TREESELECT ? (i(), M(O, q({
|
|
811
811
|
key: 6,
|
|
812
812
|
modelValue: c.value,
|
|
813
813
|
"onUpdate:modelValue": o[8] || (o[8] = (n) => c.value = n),
|
|
814
814
|
placeholder: E.value[e.value].label
|
|
815
|
-
}, t.value, { data:
|
|
816
|
-
|
|
815
|
+
}, t.value, { data: F.value }), fe({ _: 2 }, [
|
|
816
|
+
R(N(), (n) => ({
|
|
817
817
|
name: n,
|
|
818
818
|
fn: y((V) => [
|
|
819
819
|
h(b.$slots, `${r.t}-${e.value}-${n}`, { data: V }, void 0, !0)
|
|
820
820
|
])
|
|
821
821
|
}))
|
|
822
|
-
]), 1040, ["modelValue", "placeholder", "data"])) : d.value ==
|
|
822
|
+
]), 1040, ["modelValue", "placeholder", "data"])) : d.value == L(pe).TIME ? (i(), M(A, q({
|
|
823
823
|
key: 7,
|
|
824
824
|
modelValue: c.value,
|
|
825
825
|
"onUpdate:modelValue": o[9] || (o[9] = (n) => c.value = n),
|
|
826
826
|
"arrow-control": ""
|
|
827
827
|
}, t.value, {
|
|
828
828
|
placeholder: E.value[e.value].label
|
|
829
|
-
}), null, 16, ["modelValue", "placeholder"])) : d.value ==
|
|
829
|
+
}), null, 16, ["modelValue", "placeholder"])) : d.value == L(pe).TIMESELECT ? (i(), M(ue, q({
|
|
830
830
|
key: 8,
|
|
831
831
|
modelValue: c.value,
|
|
832
832
|
"onUpdate:modelValue": o[10] || (o[10] = (n) => c.value = n),
|
|
@@ -834,7 +834,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
834
834
|
step: "00:15",
|
|
835
835
|
end: "23:30",
|
|
836
836
|
placeholder: E.value[e.value].label
|
|
837
|
-
}, t.value), null, 16, ["modelValue", "placeholder"])) :
|
|
837
|
+
}, t.value), null, 16, ["modelValue", "placeholder"])) : U(d.value) ? (i(), M(Ee, q({
|
|
838
838
|
key: 9,
|
|
839
839
|
modelValue: c.value,
|
|
840
840
|
"onUpdate:modelValue": o[11] || (o[11] = (n) => c.value = n),
|
|
@@ -842,58 +842,58 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
842
842
|
placeholder: E.value[e.value].label,
|
|
843
843
|
"value-format": re(d.value)
|
|
844
844
|
}, t.value), fe({ _: 2 }, [
|
|
845
|
-
|
|
845
|
+
R(N(), (n) => ({
|
|
846
846
|
name: n,
|
|
847
847
|
fn: y((V) => [
|
|
848
848
|
h(b.$slots, `${r.t}-${e.value}-${n}`, { data: V }, void 0, !0)
|
|
849
849
|
])
|
|
850
850
|
}))
|
|
851
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : d.value ==
|
|
851
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : d.value == L(pe).COLOR ? (i(), M(we, q({
|
|
852
852
|
key: 10,
|
|
853
853
|
modelValue: c.value,
|
|
854
854
|
"onUpdate:modelValue": o[12] || (o[12] = (n) => c.value = n)
|
|
855
|
-
}, t.value), null, 16, ["modelValue"])) : d.value ==
|
|
855
|
+
}, t.value), null, 16, ["modelValue"])) : d.value == L(pe).RATE ? (i(), M(De, q({
|
|
856
856
|
key: 11,
|
|
857
857
|
modelValue: c.value,
|
|
858
858
|
"onUpdate:modelValue": o[13] || (o[13] = (n) => c.value = n)
|
|
859
|
-
}, t.value), null, 16, ["modelValue"])) : d.value ==
|
|
859
|
+
}, t.value), null, 16, ["modelValue"])) : d.value == L(pe).SLIDER ? (i(), M(Ve, q({
|
|
860
860
|
key: 12,
|
|
861
861
|
modelValue: c.value,
|
|
862
862
|
"onUpdate:modelValue": o[14] || (o[14] = (n) => c.value = n)
|
|
863
|
-
}, t.value), null, 16, ["modelValue"])) : d.value ==
|
|
863
|
+
}, t.value), null, 16, ["modelValue"])) : d.value == L(pe).SWITCH ? (i(), M($e, q({
|
|
864
864
|
key: 13,
|
|
865
865
|
modelValue: c.value,
|
|
866
866
|
"onUpdate:modelValue": o[15] || (o[15] = (n) => c.value = n)
|
|
867
867
|
}, t.value), fe({ _: 2 }, [
|
|
868
|
-
|
|
868
|
+
R(N(), (n) => ({
|
|
869
869
|
name: n,
|
|
870
870
|
fn: y((V) => [
|
|
871
871
|
h(b.$slots, `${r.t}-${e.value}-${n}`, { data: V }, void 0, !0)
|
|
872
872
|
])
|
|
873
873
|
}))
|
|
874
|
-
]), 1040, ["modelValue"])) : d.value ==
|
|
874
|
+
]), 1040, ["modelValue"])) : d.value == L(pe).TRANSFER ? (i(), M(Me, q({
|
|
875
875
|
key: 14,
|
|
876
876
|
modelValue: c.value,
|
|
877
877
|
"onUpdate:modelValue": o[16] || (o[16] = (n) => c.value = n)
|
|
878
878
|
}, t.value), fe({ _: 2 }, [
|
|
879
|
-
|
|
879
|
+
R(N(), (n) => ({
|
|
880
880
|
name: n,
|
|
881
881
|
fn: y((V) => [
|
|
882
882
|
h(b.$slots, `${r.t}-${e.value}-${n}`, { data: V }, void 0, !0)
|
|
883
883
|
])
|
|
884
884
|
}))
|
|
885
|
-
]), 1040, ["modelValue"])) : d.value ==
|
|
885
|
+
]), 1040, ["modelValue"])) : d.value == L(pe).CASCADER ? (i(), M(Ie, q({
|
|
886
886
|
key: 15,
|
|
887
887
|
modelValue: c.value,
|
|
888
888
|
"onUpdate:modelValue": o[17] || (o[17] = (n) => c.value = n)
|
|
889
|
-
}, t.value, { options:
|
|
890
|
-
|
|
889
|
+
}, t.value, { options: T.value }), fe({ _: 2 }, [
|
|
890
|
+
R(N(), (n) => ({
|
|
891
891
|
name: n,
|
|
892
892
|
fn: y((V) => [
|
|
893
893
|
h(b.$slots, `${r.t}-${e.value}-${n}`, { data: V }, void 0, !0)
|
|
894
894
|
])
|
|
895
895
|
}))
|
|
896
|
-
]), 1040, ["modelValue", "options"])) : d.value ==
|
|
896
|
+
]), 1040, ["modelValue", "options"])) : d.value == L(pe).IMAGE ? (i(), M(rt, q({
|
|
897
897
|
key: 16,
|
|
898
898
|
"file-list": t.value["file-list"],
|
|
899
899
|
"onUpdate:fileList": o[21] || (o[21] = (n) => t.value["file-list"] = n),
|
|
@@ -913,11 +913,11 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
913
913
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
914
914
|
}, [
|
|
915
915
|
G("div", rl, [
|
|
916
|
-
J(
|
|
916
|
+
J(ot, q({
|
|
917
917
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
918
918
|
src: c.value
|
|
919
919
|
}, { fit: "cover", lazy: !0, ...(n = t.value) == null ? void 0 : n.img }), fe({ _: 2 }, [
|
|
920
|
-
|
|
920
|
+
R(N(), (V, K) => ({
|
|
921
921
|
name: V,
|
|
922
922
|
fn: y((ve) => [
|
|
923
923
|
h(b.$slots, `${r.t}-${e.value}-${V}`, { data: ve }, void 0, !0)
|
|
@@ -937,7 +937,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
937
937
|
placement: "top"
|
|
938
938
|
}, {
|
|
939
939
|
default: y(() => [
|
|
940
|
-
J(
|
|
940
|
+
J(L(Gt), {
|
|
941
941
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
942
942
|
color: "white",
|
|
943
943
|
onClick: de
|
|
@@ -951,7 +951,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
951
951
|
placement: "top"
|
|
952
952
|
}, {
|
|
953
953
|
default: y(() => [
|
|
954
|
-
J(
|
|
954
|
+
J(L(Qt), {
|
|
955
955
|
style: { width: "1.5em", height: "1.5em" },
|
|
956
956
|
color: "white",
|
|
957
957
|
onClick: ge
|
|
@@ -962,7 +962,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
962
962
|
], 32)
|
|
963
963
|
])) : (i(), M(Ye, { key: 0 }, {
|
|
964
964
|
default: y(() => [
|
|
965
|
-
J(
|
|
965
|
+
J(L(Xt))
|
|
966
966
|
]),
|
|
967
967
|
_: 1
|
|
968
968
|
}))
|
|
@@ -970,26 +970,26 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
970
970
|
}),
|
|
971
971
|
_: 2
|
|
972
972
|
}, [
|
|
973
|
-
|
|
973
|
+
R(N(), (n, V) => ({
|
|
974
974
|
name: n,
|
|
975
975
|
fn: y((K) => [
|
|
976
976
|
h(b.$slots, `${r.t}-${e.value}-${n}`, { data: K }, void 0, !0)
|
|
977
977
|
])
|
|
978
978
|
}))
|
|
979
|
-
]), 1040, ["file-list"])) : d.value ==
|
|
979
|
+
]), 1040, ["file-list"])) : d.value == L(pe).AUTOCOMPLETE ? (i(), M(ut, q({
|
|
980
980
|
key: 17,
|
|
981
981
|
modelValue: c.value,
|
|
982
982
|
"onUpdate:modelValue": o[22] || (o[22] = (n) => c.value = n)
|
|
983
983
|
}, t.value, {
|
|
984
984
|
placeholder: E.value[e.value].label
|
|
985
985
|
}), fe({ _: 2 }, [
|
|
986
|
-
|
|
986
|
+
R(N(), (n, V) => ({
|
|
987
987
|
name: n,
|
|
988
988
|
fn: y((K) => [
|
|
989
989
|
h(b.$slots, `${r.t}-${e.value}-${n}`, { data: K }, void 0, !0)
|
|
990
990
|
])
|
|
991
991
|
}))
|
|
992
|
-
]), 1040, ["modelValue", "placeholder"])) : d.value ==
|
|
992
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == L(pe).INPUTNUMBER ? (i(), M(nt, q({
|
|
993
993
|
key: 18,
|
|
994
994
|
modelValue: c.value,
|
|
995
995
|
"onUpdate:modelValue": o[23] || (o[23] = (n) => c.value = n),
|
|
@@ -997,29 +997,29 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
997
997
|
max: 1e8,
|
|
998
998
|
placeholder: E.value[e.value].label
|
|
999
999
|
}, t.value), fe({ _: 2 }, [
|
|
1000
|
-
|
|
1000
|
+
R(N(), (n, V) => ({
|
|
1001
1001
|
name: n,
|
|
1002
1002
|
fn: y((K) => [
|
|
1003
1003
|
h(b.$slots, `${r.t}-${e.value}-${n}`, { data: K }, void 0, !0)
|
|
1004
1004
|
])
|
|
1005
1005
|
}))
|
|
1006
|
-
]), 1040, ["modelValue", "placeholder"])) : d.value ==
|
|
1006
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == L(pe).MONEY ? (i(), x("div", ul, [
|
|
1007
1007
|
J(Je, q({
|
|
1008
1008
|
modelValue: c.value,
|
|
1009
1009
|
"onUpdate:modelValue": o[24] || (o[24] = (n) => c.value = n),
|
|
1010
1010
|
placeholder: E.value[e.value].label,
|
|
1011
|
-
type:
|
|
1012
|
-
maxlength: ((
|
|
1011
|
+
type: L(pe).NUMBER,
|
|
1012
|
+
maxlength: ((S = t.value) == null ? void 0 : S.max) || 25
|
|
1013
1013
|
}, { ...t.value, type: d.value }), fe({
|
|
1014
1014
|
suffix: y(() => [
|
|
1015
1015
|
G("div", {
|
|
1016
|
-
title:
|
|
1016
|
+
title: L(yt)(c.value),
|
|
1017
1017
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1018
|
-
}, he(
|
|
1018
|
+
}, he(L(yt)(c.value)), 9, nl)
|
|
1019
1019
|
]),
|
|
1020
1020
|
_: 2
|
|
1021
1021
|
}, [
|
|
1022
|
-
|
|
1022
|
+
R(N(), (n, V) => ({
|
|
1023
1023
|
name: n,
|
|
1024
1024
|
fn: y((K) => [
|
|
1025
1025
|
h(b.$slots, `${r.t}-${e.value}-${n}`, { data: K }, void 0, !0)
|
|
@@ -1031,7 +1031,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1031
1031
|
innerHTML: I.value || c.value
|
|
1032
1032
|
}), null, 16, ["innerHTML"])
|
|
1033
1033
|
])) : (d.value === "primary" || d.value === "success" || d.value === "warning" || d.value == "danger" || d.value === "info") && t.value.isTag === !0 ? (i(), x("div", il, [
|
|
1034
|
-
Array.isArray(I.value) && I.value.length > 0 ? (i(!0), x(W, { key: 0 },
|
|
1034
|
+
Array.isArray(I.value) && I.value.length > 0 ? (i(!0), x(W, { key: 0 }, R(I.value, (n, V) => (i(), x(W, { key: V }, [
|
|
1035
1035
|
typeof n == "object" ? (i(), M(u, q({
|
|
1036
1036
|
key: 0,
|
|
1037
1037
|
ref_for: !0
|
|
@@ -1063,7 +1063,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1063
1063
|
r.t == "q" && E.value.table.load();
|
|
1064
1064
|
})
|
|
1065
1065
|
}, { ...t.value, type: d.value }), fe({ _: 2 }, [
|
|
1066
|
-
|
|
1066
|
+
R(N(), (n, V) => ({
|
|
1067
1067
|
name: n,
|
|
1068
1068
|
fn: y((K) => [
|
|
1069
1069
|
h(b.$slots, `${r.t}-${e.value}-${n}`, { data: K }, void 0, !0)
|
|
@@ -1074,7 +1074,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1074
1074
|
], 64);
|
|
1075
1075
|
};
|
|
1076
1076
|
}
|
|
1077
|
-
}),
|
|
1077
|
+
}), ft = /* @__PURE__ */ Ge(cl, [["__scopeId", "data-v-a78297fa"]]), vt = /* @__PURE__ */ Object.assign({
|
|
1078
1078
|
name: "g-form",
|
|
1079
1079
|
inheritAttrs: !1
|
|
1080
1080
|
}, {
|
|
@@ -1086,7 +1086,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1086
1086
|
emits: /* @__PURE__ */ Le(["submit", "reset"], ["update:modelValue"]),
|
|
1087
1087
|
setup(f, { expose: c, emit: r }) {
|
|
1088
1088
|
var le, be, se, b;
|
|
1089
|
-
const t = Ne(f, "modelValue"), e = r, d = te(null), E = gt("options"),
|
|
1089
|
+
const t = Ne(f, "modelValue"), e = r, d = te(null), E = gt("options"), F = te({}), T = te(""), k = f, $ = {
|
|
1090
1090
|
inline: !0,
|
|
1091
1091
|
type: "hidden",
|
|
1092
1092
|
"scroll-to-error": !0,
|
|
@@ -1130,12 +1130,12 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1130
1130
|
editable: !1
|
|
1131
1131
|
}
|
|
1132
1132
|
};
|
|
1133
|
-
t.value.form =
|
|
1133
|
+
t.value.form = Se(
|
|
1134
1134
|
$,
|
|
1135
1135
|
E == null ? void 0 : E.form,
|
|
1136
1136
|
(be = t.value) == null ? void 0 : be.form
|
|
1137
1137
|
);
|
|
1138
|
-
const
|
|
1138
|
+
const N = async (o, _) => {
|
|
1139
1139
|
let v = 5;
|
|
1140
1140
|
for (; v > 0; ) {
|
|
1141
1141
|
if (await Qe(), d.value) {
|
|
@@ -1165,7 +1165,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1167
1167
|
};
|
|
1168
|
-
t.value.form.submit.click =
|
|
1168
|
+
t.value.form.submit.click = N, t.value.form.reset.click = ee;
|
|
1169
1169
|
const I = {
|
|
1170
1170
|
type: "hidden",
|
|
1171
1171
|
labelPosition: "right",
|
|
@@ -1173,17 +1173,17 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1173
1173
|
width: "100%"
|
|
1174
1174
|
}
|
|
1175
1175
|
};
|
|
1176
|
-
t.value.formItems =
|
|
1176
|
+
t.value.formItems = Se(
|
|
1177
1177
|
I,
|
|
1178
1178
|
E == null ? void 0 : E.formItems,
|
|
1179
1179
|
(se = t == null ? void 0 : t.value) == null ? void 0 : se.formItems
|
|
1180
1180
|
);
|
|
1181
|
-
const
|
|
1181
|
+
const U = {
|
|
1182
1182
|
span: 12,
|
|
1183
1183
|
offset: 0
|
|
1184
1184
|
};
|
|
1185
|
-
t.value.form.cols =
|
|
1186
|
-
|
|
1185
|
+
t.value.form.cols = Se(
|
|
1186
|
+
U,
|
|
1187
1187
|
(b = E == null ? void 0 : E.form) == null ? void 0 : b.cols,
|
|
1188
1188
|
t.value.form.cols
|
|
1189
1189
|
);
|
|
@@ -1224,33 +1224,33 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1224
1224
|
return _;
|
|
1225
1225
|
}, ae = (o, _ = !1) => {
|
|
1226
1226
|
var p, g, s, D, C;
|
|
1227
|
-
const v = _ ? o : o == null ? void 0 : o.item, a = typeof (v == null ? void 0 : v.editor) == "function" ? v.editor(
|
|
1227
|
+
const v = _ ? o : o == null ? void 0 : o.item, a = typeof (v == null ? void 0 : v.editor) == "function" ? v.editor(F.value, (p = t.value.form) == null ? void 0 : p.modalState) : (v == null ? void 0 : v.editor) || {};
|
|
1228
1228
|
if (((g = t.value.form) == null ? void 0 : g.modalState) === "edit") {
|
|
1229
|
-
const
|
|
1230
|
-
return { ...a, ...
|
|
1229
|
+
const j = typeof (v == null ? void 0 : v.editor) == "object" ? (s = v.editor) == null ? void 0 : s.ep : typeof (v == null ? void 0 : v.editor) == "function" ? a == null ? void 0 : a.ep : {};
|
|
1230
|
+
return { ...a, ...j };
|
|
1231
1231
|
}
|
|
1232
1232
|
if (((D = t.value.form) == null ? void 0 : D.modalState) === "add") {
|
|
1233
|
-
const
|
|
1234
|
-
return { ...a, ...
|
|
1233
|
+
const j = typeof (v == null ? void 0 : v.editor) == "object" ? (C = v.editor) == null ? void 0 : C.ap : typeof (v == null ? void 0 : v.editor) == "function" ? a == null ? void 0 : a.ap : {};
|
|
1234
|
+
return { ...a, ...j };
|
|
1235
1235
|
}
|
|
1236
1236
|
return a;
|
|
1237
1237
|
}, Q = (o) => {
|
|
1238
1238
|
var v, a, p, g, s;
|
|
1239
|
-
const _ = typeof o.editor == "function" ? o.editor(
|
|
1239
|
+
const _ = typeof o.editor == "function" ? o.editor(F.value, (v = t.value.form) == null ? void 0 : v.modalState) : o.editor;
|
|
1240
1240
|
return ((a = t.value.form) == null ? void 0 : a.modalState) === "edit" ? ((p = _ == null ? void 0 : _.ep) == null ? void 0 : p.type) ?? (_ == null ? void 0 : _.type) ?? o.type : ((g = t.value.form) == null ? void 0 : g.modalState) === "add" ? ((s = _ == null ? void 0 : _.ap) == null ? void 0 : s.type) ?? (_ == null ? void 0 : _.type) ?? o.type : (_ == null ? void 0 : _.type) ?? o.type;
|
|
1241
1241
|
};
|
|
1242
|
-
|
|
1243
|
-
me(), k != null && k.editForm ?
|
|
1244
|
-
}),
|
|
1242
|
+
at(() => {
|
|
1243
|
+
me(), k != null && k.editForm ? F.value = k.editForm : F.value = ge.value;
|
|
1244
|
+
}), Yt(() => {
|
|
1245
1245
|
d.value = null;
|
|
1246
1246
|
});
|
|
1247
1247
|
const me = () => {
|
|
1248
|
-
|
|
1248
|
+
T.value = Math.random().toString(36).substring(2);
|
|
1249
1249
|
for (const [o, _] of Object.entries(ye.value))
|
|
1250
1250
|
t.value[o].formItem = { ...t.value[o].formItem, ..._.formItem }, t.value[o].formItem.style = { ...t.value[o].formItem.style, ..._.formItem.style };
|
|
1251
1251
|
}, ye = Xe(() => Object.fromEntries(Object.entries(t.value).filter((o) => o[1].type != "hidden").filter((o) => o[1].edit !== !1).filter((o) => !["table", "tableColumns", "query", "queryItems"].includes(o[0])).filter((o) => o[1].editor !== !1).filter((o) => o[1].type !== "control").filter((o) => {
|
|
1252
1252
|
var v, a, p;
|
|
1253
|
-
const _ = typeof o[1].editor == "function" ? o[1].editor(
|
|
1253
|
+
const _ = typeof o[1].editor == "function" ? o[1].editor(F.value, (v = t.value.form) == null ? void 0 : v.modalState) : o[1].editor;
|
|
1254
1254
|
return t.value.form.modalState === "edit" ? ((a = _ == null ? void 0 : _.ep) == null ? void 0 : a.editor) !== !1 : t.value.form.modalState === "add" ? ((p = _ == null ? void 0 : _.ap) == null ? void 0 : p.editor) !== !1 : !0;
|
|
1255
1255
|
}).map((o) => [o[0], o[1]]))), ge = Xe(() => Object.fromEntries(Object.entries(t.value).filter((o) => o[1].type != "hidden").filter((o) => o[1].type != "control").map((o) => [o[0], o[1].value]))), ie = Xe(() => {
|
|
1256
1256
|
const o = /* @__PURE__ */ new Map();
|
|
@@ -1263,7 +1263,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1263
1263
|
}), o.get(a).items.push({ key: _, item: v });
|
|
1264
1264
|
}
|
|
1265
1265
|
}), o.forEach((_) => {
|
|
1266
|
-
_.tabPane =
|
|
1266
|
+
_.tabPane = Se(..._.items.map(({ item: v }) => v.tabPane || {}));
|
|
1267
1267
|
}), Array.from(o.values());
|
|
1268
1268
|
}), de = [
|
|
1269
1269
|
{
|
|
@@ -1290,19 +1290,20 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1290
1290
|
}
|
|
1291
1291
|
], ne = Xe(() => de.filter((o) => !o.hidden).sort((o, _) => o.sort - _.sort || o.originalOrder - _.originalOrder));
|
|
1292
1292
|
return c({
|
|
1293
|
-
submitClickHandler:
|
|
1294
|
-
resetClickHandler: ee
|
|
1293
|
+
submitClickHandler: N,
|
|
1294
|
+
resetClickHandler: ee,
|
|
1295
|
+
initFormInfo: F
|
|
1295
1296
|
}), (o, _) => {
|
|
1296
1297
|
const v = Y("el-form-item"), a = Y("el-col"), p = Y("el-tab-pane"), g = Y("el-tabs"), s = Y("el-button"), D = Y("el-form");
|
|
1297
1298
|
return i(), M(D, q({
|
|
1298
1299
|
ref_key: "gform",
|
|
1299
1300
|
ref: d,
|
|
1300
|
-
model:
|
|
1301
|
+
model: F.value,
|
|
1301
1302
|
style: { width: "98%", padding: 0, margin: 0, "box-sizing": "border-box" }
|
|
1302
|
-
},
|
|
1303
|
+
}, L(Ce)(t.value.form, (C) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(C)), { class: "g-form-container" }), {
|
|
1303
1304
|
default: y(() => [
|
|
1304
1305
|
ie.value.length > 0 ? h(o.$slots, "default", { key: 0 }, () => {
|
|
1305
|
-
var C,
|
|
1306
|
+
var C, j, X;
|
|
1306
1307
|
return [
|
|
1307
1308
|
J(g, q({
|
|
1308
1309
|
class: "demo-tabs",
|
|
@@ -1311,7 +1312,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1311
1312
|
style: { width: "100%" }
|
|
1312
1313
|
}, t.value.form.tabs), {
|
|
1313
1314
|
default: y(() => [
|
|
1314
|
-
(i(!0), x(W, null,
|
|
1315
|
+
(i(!0), x(W, null, R(ie.value, (O) => (i(), M(p, q({
|
|
1315
1316
|
key: O.groupName,
|
|
1316
1317
|
label: O.groupName,
|
|
1317
1318
|
name: O.groupName,
|
|
@@ -1319,7 +1320,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1319
1320
|
ref_for: !0
|
|
1320
1321
|
}, O.tabPane), {
|
|
1321
1322
|
default: y(() => [
|
|
1322
|
-
(i(!0), x(W, null,
|
|
1323
|
+
(i(!0), x(W, null, R(O.items, (A, ue) => (i(), M(a, q({ ref_for: !0 }, { ...t.value.form.cols, ...A == null ? void 0 : A.item.col }, {
|
|
1323
1324
|
key: A.key,
|
|
1324
1325
|
style: { width: "100%" }
|
|
1325
1326
|
}), {
|
|
@@ -1335,22 +1336,22 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1335
1336
|
default: y(() => [
|
|
1336
1337
|
h(o.$slots, "f-" + A.key, {
|
|
1337
1338
|
item: A == null ? void 0 : A.item,
|
|
1338
|
-
formInfo:
|
|
1339
|
+
formInfo: F.value,
|
|
1339
1340
|
model: t.value
|
|
1340
1341
|
}, () => [
|
|
1341
|
-
(i(), M(
|
|
1342
|
-
modelValue:
|
|
1343
|
-
"onUpdate:modelValue": (De) =>
|
|
1342
|
+
(i(), M(ft, {
|
|
1343
|
+
modelValue: F.value[A.key],
|
|
1344
|
+
"onUpdate:modelValue": (De) => F.value[A.key] = De,
|
|
1344
1345
|
item: ae(A),
|
|
1345
1346
|
ctrlKey: A.key,
|
|
1346
1347
|
ctrlType: Q(A == null ? void 0 : A.item),
|
|
1347
1348
|
model: t.value,
|
|
1348
|
-
key: `${A.key}-${
|
|
1349
|
+
key: `${A.key}-${T.value}`,
|
|
1349
1350
|
class: "g-ctrl-container",
|
|
1350
1351
|
t: "f",
|
|
1351
|
-
formInfo:
|
|
1352
|
+
formInfo: F.value
|
|
1352
1353
|
}, fe({ _: 2 }, [
|
|
1353
|
-
|
|
1354
|
+
R(o.$slots, (De, Ve) => ({
|
|
1354
1355
|
name: Ve,
|
|
1355
1356
|
fn: y(($e) => [
|
|
1356
1357
|
h(o.$slots, Ve, {
|
|
@@ -1375,16 +1376,16 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1375
1376
|
]),
|
|
1376
1377
|
_: 3
|
|
1377
1378
|
}, 16, ["modelValue"]),
|
|
1378
|
-
(X = (
|
|
1379
|
+
(X = (j = (C = t.value) == null ? void 0 : C.form) == null ? void 0 : j.footer) != null && X.hidden ? ce("", !0) : h(o.$slots, "f-footer", { key: 0 }, () => [
|
|
1379
1380
|
G("div", {
|
|
1380
1381
|
style: Ae(t.value.form.footer.style)
|
|
1381
1382
|
}, [
|
|
1382
1383
|
h(o.$slots, "f-footer-left"),
|
|
1383
|
-
(i(!0), x(W, null,
|
|
1384
|
+
(i(!0), x(W, null, R(ne.value, (O) => (i(), x(W, null, [
|
|
1384
1385
|
h(o.$slots, O.name + "-left"),
|
|
1385
1386
|
h(o.$slots, O.name, {}, () => [
|
|
1386
1387
|
J(s, q({ ref_for: !0 }, O.info, {
|
|
1387
|
-
onClick:
|
|
1388
|
+
onClick: lt((A) => O.click(F.value, t.value), ["stop"])
|
|
1388
1389
|
}), {
|
|
1389
1390
|
default: y(() => [
|
|
1390
1391
|
_e(he(O == null ? void 0 : O.label), 1)
|
|
@@ -1399,9 +1400,9 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1399
1400
|
])
|
|
1400
1401
|
];
|
|
1401
1402
|
}) : h(o.$slots, "default", { key: 1 }, () => {
|
|
1402
|
-
var C,
|
|
1403
|
+
var C, j, X;
|
|
1403
1404
|
return [
|
|
1404
|
-
(i(!0), x(W, null,
|
|
1405
|
+
(i(!0), x(W, null, R(ye.value, (O, A) => (i(), M(a, q({ ref_for: !0 }, { ...t.value.form.cols, ...O.col }, {
|
|
1405
1406
|
key: A,
|
|
1406
1407
|
style: { width: "100%" }
|
|
1407
1408
|
}), {
|
|
@@ -1426,22 +1427,22 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1426
1427
|
default: y(() => [
|
|
1427
1428
|
h(o.$slots, "f-" + A, {
|
|
1428
1429
|
item: O,
|
|
1429
|
-
formInfo:
|
|
1430
|
+
formInfo: F.value,
|
|
1430
1431
|
model: t.value
|
|
1431
1432
|
}, () => [
|
|
1432
|
-
(i(), M(
|
|
1433
|
-
modelValue:
|
|
1434
|
-
"onUpdate:modelValue": (Ee) =>
|
|
1433
|
+
(i(), M(ft, {
|
|
1434
|
+
modelValue: F.value[A],
|
|
1435
|
+
"onUpdate:modelValue": (Ee) => F.value[A] = Ee,
|
|
1435
1436
|
item: ae(O, !0),
|
|
1436
1437
|
ctrlKey: A,
|
|
1437
1438
|
ctrlType: Q(O),
|
|
1438
|
-
key: `${A}-${
|
|
1439
|
+
key: `${A}-${T.value}`,
|
|
1439
1440
|
model: t.value,
|
|
1440
1441
|
class: "g-ctrl-container",
|
|
1441
1442
|
t: "f",
|
|
1442
|
-
formInfo:
|
|
1443
|
+
formInfo: F.value
|
|
1443
1444
|
}, fe({ _: 2 }, [
|
|
1444
|
-
|
|
1445
|
+
R(o.$slots, (Ee, we) => ({
|
|
1445
1446
|
name: we,
|
|
1446
1447
|
fn: y((De) => [
|
|
1447
1448
|
h(o.$slots, we, {
|
|
@@ -1460,16 +1461,16 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1460
1461
|
}),
|
|
1461
1462
|
_: 2
|
|
1462
1463
|
}, 1040))), 128)),
|
|
1463
|
-
(X = (
|
|
1464
|
+
(X = (j = (C = t.value) == null ? void 0 : C.form) == null ? void 0 : j.footer) != null && X.hidden ? ce("", !0) : h(o.$slots, "f-footer", { key: 0 }, () => [
|
|
1464
1465
|
G("div", {
|
|
1465
1466
|
style: Ae(t.value.form.footer.style)
|
|
1466
1467
|
}, [
|
|
1467
1468
|
h(o.$slots, "f-footer-left"),
|
|
1468
|
-
(i(!0), x(W, null,
|
|
1469
|
+
(i(!0), x(W, null, R(ne.value, (O) => (i(), x(W, null, [
|
|
1469
1470
|
h(o.$slots, O.name + "-left"),
|
|
1470
1471
|
h(o.$slots, O.name, {}, () => [
|
|
1471
1472
|
J(s, q({ ref_for: !0 }, O.info, {
|
|
1472
|
-
onClick:
|
|
1473
|
+
onClick: lt((A) => O.click(F.value, t.value), ["stop"])
|
|
1473
1474
|
}), {
|
|
1474
1475
|
default: y(() => [
|
|
1475
1476
|
_e(he(O == null ? void 0 : O.label), 1)
|
|
@@ -1489,7 +1490,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1489
1490
|
}, 16, ["model"]);
|
|
1490
1491
|
};
|
|
1491
1492
|
}
|
|
1492
|
-
}),
|
|
1493
|
+
}), Ct = {
|
|
1493
1494
|
__name: "g-query-item",
|
|
1494
1495
|
props: /* @__PURE__ */ Le(["more"], {
|
|
1495
1496
|
modelValue: { required: !0 },
|
|
@@ -1499,17 +1500,17 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1499
1500
|
}),
|
|
1500
1501
|
emits: ["update:modelValue", "update:info"],
|
|
1501
1502
|
setup(f) {
|
|
1502
|
-
const c = Ne(f, "modelValue"), r = f, t = Ne(f, "info"), e = (
|
|
1503
|
+
const c = Ne(f, "modelValue"), r = f, t = Ne(f, "info"), e = (F) => Xe(() => Object.fromEntries(Object.entries(c.value).filter((T) => {
|
|
1503
1504
|
var k;
|
|
1504
|
-
return typeof
|
|
1505
|
-
}).map((
|
|
1506
|
-
const
|
|
1507
|
-
return (
|
|
1505
|
+
return typeof T[1].search == "function" ? T[1].search && ((k = T[1].search(t.value, c.value.table)) == null ? void 0 : k.more) === F : T[1].search && T[1].search.more === F;
|
|
1506
|
+
}).map((T) => [T[0], T[1]]))).value, d = (F) => typeof F.search == "function" ? F.search(t.value, c.value.table) : F.search || {}, E = (F) => {
|
|
1507
|
+
const T = d(F);
|
|
1508
|
+
return (T == null ? void 0 : T.type) || F.type;
|
|
1508
1509
|
};
|
|
1509
|
-
return (
|
|
1510
|
+
return (F, T) => {
|
|
1510
1511
|
const k = Y("el-form-item");
|
|
1511
|
-
return i(!0), x(W, null,
|
|
1512
|
-
key:
|
|
1512
|
+
return i(!0), x(W, null, R(e(r.more), ($, N) => h(F.$slots, `q-${N}`, {
|
|
1513
|
+
key: N,
|
|
1513
1514
|
item: $,
|
|
1514
1515
|
queryModel: t.value,
|
|
1515
1516
|
model: c.value
|
|
@@ -1519,26 +1520,26 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1519
1520
|
ref_for: !0
|
|
1520
1521
|
}, { ...c.value.queryItems, ...d($) }), {
|
|
1521
1522
|
label: y(() => [
|
|
1522
|
-
h(
|
|
1523
|
+
h(F.$slots, `q-${N}-label`, {
|
|
1523
1524
|
item: $,
|
|
1524
1525
|
model: c.value
|
|
1525
1526
|
})
|
|
1526
1527
|
]),
|
|
1527
1528
|
default: y(() => [
|
|
1528
|
-
J(
|
|
1529
|
-
modelValue: t.value[
|
|
1530
|
-
"onUpdate:modelValue": (ee) => t.value[
|
|
1529
|
+
J(ft, {
|
|
1530
|
+
modelValue: t.value[N],
|
|
1531
|
+
"onUpdate:modelValue": (ee) => t.value[N] = ee,
|
|
1531
1532
|
item: { ...$ == null ? void 0 : $.editor, ...d($) },
|
|
1532
|
-
ctrlKey:
|
|
1533
|
+
ctrlKey: N,
|
|
1533
1534
|
ctrlType: E($),
|
|
1534
1535
|
model: c.value,
|
|
1535
1536
|
t: "q",
|
|
1536
1537
|
formInfo: t.value
|
|
1537
1538
|
}, fe({ _: 2 }, [
|
|
1538
|
-
|
|
1539
|
+
R(Object.keys(F.$slots), (ee) => ({
|
|
1539
1540
|
name: ee,
|
|
1540
1541
|
fn: y((I) => [
|
|
1541
|
-
h(
|
|
1542
|
+
h(F.$slots, ee, {
|
|
1542
1543
|
data: I,
|
|
1543
1544
|
item: $,
|
|
1544
1545
|
model: c.value
|
|
@@ -1565,7 +1566,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1565
1566
|
},
|
|
1566
1567
|
emits: /* @__PURE__ */ Le(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1567
1568
|
setup(f, { emit: c }) {
|
|
1568
|
-
const r = Ne(f, "modelValue"), t = c, e = gt("options"), d = te(!1), E = Ne(f, "info"),
|
|
1569
|
+
const r = Ne(f, "modelValue"), t = c, e = gt("options"), d = te(!1), E = Ne(f, "info"), F = {
|
|
1569
1570
|
hidden: !1,
|
|
1570
1571
|
type: "hidden",
|
|
1571
1572
|
labelWidth: 100,
|
|
@@ -1613,8 +1614,8 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1613
1614
|
}
|
|
1614
1615
|
}
|
|
1615
1616
|
};
|
|
1616
|
-
r.value.query =
|
|
1617
|
-
const
|
|
1617
|
+
r.value.query = Se(F, e == null ? void 0 : e.query, r.value.query);
|
|
1618
|
+
const T = {
|
|
1618
1619
|
2: {
|
|
1619
1620
|
title: "更多查询",
|
|
1620
1621
|
showClose: !1,
|
|
@@ -1631,8 +1632,8 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1631
1632
|
trigger: "click"
|
|
1632
1633
|
}
|
|
1633
1634
|
};
|
|
1634
|
-
r.value.query.more.dialog =
|
|
1635
|
-
|
|
1635
|
+
r.value.query.more.dialog = Se(
|
|
1636
|
+
T[r.value.query.more.mode] || {},
|
|
1636
1637
|
r.value.query.more.dialog
|
|
1637
1638
|
);
|
|
1638
1639
|
const k = {
|
|
@@ -1642,20 +1643,20 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1642
1643
|
width: "280px"
|
|
1643
1644
|
}
|
|
1644
1645
|
};
|
|
1645
|
-
r.value.queryItems =
|
|
1646
|
-
const $ = (I,
|
|
1646
|
+
r.value.queryItems = Se(k, e == null ? void 0 : e.queryItems, r.value.queryItems);
|
|
1647
|
+
const $ = (I, U) => {
|
|
1647
1648
|
const re = Object.keys(I.slots).filter((ae) => ae !== "default").reduce((ae, Q) => (ae[Q] = (me) => I.slots[Q]({
|
|
1648
1649
|
model: r.value
|
|
1649
1650
|
// 传递当前模型数据
|
|
1650
1651
|
}), ae), {});
|
|
1651
|
-
return Oe(
|
|
1652
|
+
return Oe(Ct, {
|
|
1652
1653
|
modelValue: r.value,
|
|
1653
1654
|
"onUpdate:modelValue": (ae) => r.value = ae,
|
|
1654
1655
|
info: E.value,
|
|
1655
1656
|
"onUpdate:info": (ae) => E.value = ae,
|
|
1656
|
-
more:
|
|
1657
|
+
more: U
|
|
1657
1658
|
}, re);
|
|
1658
|
-
},
|
|
1659
|
+
}, N = Mt(), ee = () => {
|
|
1659
1660
|
var re, ae, Q, me, ye, ge, ie, de, ne;
|
|
1660
1661
|
const I = [
|
|
1661
1662
|
{
|
|
@@ -1683,25 +1684,25 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1683
1684
|
{
|
|
1684
1685
|
key: "more",
|
|
1685
1686
|
hidden: (ne = (de = (ie = r.value) == null ? void 0 : ie.query) == null ? void 0 : de.more) == null ? void 0 : ne.hidden,
|
|
1686
|
-
component: r.value.query.more.mode === 3 ?
|
|
1687
|
+
component: r.value.query.more.mode === 3 ? ct : ke,
|
|
1687
1688
|
props: r.value.query.more.mode === 3 ? { ...r.value.query.more.dialog } : {
|
|
1688
1689
|
...r.value.query.more,
|
|
1689
1690
|
onClick: r.value.query.more.click
|
|
1690
1691
|
},
|
|
1691
1692
|
label: r.value.query.more.label,
|
|
1692
1693
|
sort: r.value.query.more.sort || 0,
|
|
1693
|
-
content: r.value.query.more.mode === 3 ? () => Oe(
|
|
1694
|
+
content: r.value.query.more.mode === 3 ? () => Oe(st, {
|
|
1694
1695
|
class: "query-form",
|
|
1695
1696
|
...Ce(r.value.query, (le) => !["query", "more", "reset"].includes(le))
|
|
1696
|
-
}, () => $({ slots:
|
|
1697
|
+
}, () => $({ slots: N }, !0)) : null
|
|
1697
1698
|
}
|
|
1698
1699
|
];
|
|
1699
|
-
return I.sort((le, be) => le.sort - be.sort), I.filter((le) => !le.hidden).map((le) => le.key === "more" && le.component ===
|
|
1700
|
+
return I.sort((le, be) => le.sort - be.sort), I.filter((le) => !le.hidden).map((le) => le.key === "more" && le.component === ct ? Oe(ct, le.props, {
|
|
1700
1701
|
reference: () => Oe(ke, r.value.query.more, () => le.label),
|
|
1701
1702
|
default: le.content
|
|
1702
1703
|
}) : (le.props.slot = "query-" + le.key, le.label ? Oe(le.component, le.props, () => le.label) : Oe(le.component, le.props)));
|
|
1703
1704
|
};
|
|
1704
|
-
return (I,
|
|
1705
|
+
return (I, U) => {
|
|
1705
1706
|
var Q, me, ye, ge, ie, de, ne, le, be, se, b, o, _, v, a, p, g;
|
|
1706
1707
|
const re = Y("el-form-item"), ae = Y("el-drawer");
|
|
1707
1708
|
return i(), x(W, null, [
|
|
@@ -1709,35 +1710,38 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1709
1710
|
class: "g-query-container",
|
|
1710
1711
|
style: Ae((me = (Q = r.value.query) == null ? void 0 : Q.container) == null ? void 0 : me.style)
|
|
1711
1712
|
}, [
|
|
1712
|
-
J(
|
|
1713
|
+
J(L(st), q({
|
|
1714
|
+
onSubmit: U[0] || (U[0] = lt(() => {
|
|
1715
|
+
}, ["prevent"]))
|
|
1716
|
+
}, L(Ce)(r.value.query, (s) => !["query", "more", "reset", "btns"].includes(s))), {
|
|
1713
1717
|
default: y(() => {
|
|
1714
1718
|
var s, D;
|
|
1715
1719
|
return [
|
|
1716
1720
|
(i(), M(Be($({ slots: I.$slots }, void 0)))),
|
|
1717
1721
|
((D = (s = r.value.query) == null ? void 0 : s.container) == null ? void 0 : D.inline) === !0 ? (i(), M(re, { key: 0 }, {
|
|
1718
1722
|
default: y(() => {
|
|
1719
|
-
var C,
|
|
1723
|
+
var C, j, X, O, A;
|
|
1720
1724
|
return [
|
|
1721
1725
|
G("div", {
|
|
1722
|
-
style: Ae((
|
|
1726
|
+
style: Ae((j = (C = r.value.query) == null ? void 0 : C.btns) == null ? void 0 : j.style)
|
|
1723
1727
|
}, [
|
|
1724
|
-
r.value.query.group ? (i(), M(
|
|
1728
|
+
r.value.query.group ? (i(), M(L(it), { key: 0 }, {
|
|
1725
1729
|
default: y(() => [
|
|
1726
|
-
(i(!0), x(W, null,
|
|
1730
|
+
(i(!0), x(W, null, R(ee(), (ue) => h(I.$slots, ue.props.slot, {}, () => [
|
|
1727
1731
|
(i(), M(Be(ue)))
|
|
1728
1732
|
], !0)), 256)),
|
|
1729
1733
|
h(I.$slots, "q-btns", {}, void 0, !0)
|
|
1730
1734
|
]),
|
|
1731
1735
|
_: 3
|
|
1732
1736
|
})) : (i(), x(W, { key: 1 }, [
|
|
1733
|
-
(A = (O = (X = r.value) == null ? void 0 : X.query) == null ? void 0 : O.btns) != null && A.group ? (i(), M(
|
|
1737
|
+
(A = (O = (X = r.value) == null ? void 0 : X.query) == null ? void 0 : O.btns) != null && A.group ? (i(), M(L(it), { key: 0 }, {
|
|
1734
1738
|
default: y(() => [
|
|
1735
|
-
(i(!0), x(W, null,
|
|
1739
|
+
(i(!0), x(W, null, R(ee(), (ue) => h(I.$slots, ue.props.slot, {}, () => [
|
|
1736
1740
|
(i(), M(Be(ue)))
|
|
1737
1741
|
], !0)), 256))
|
|
1738
1742
|
]),
|
|
1739
1743
|
_: 3
|
|
1740
|
-
})) : (i(!0), x(W, { key: 1 },
|
|
1744
|
+
})) : (i(!0), x(W, { key: 1 }, R(ee(), (ue) => h(I.$slots, ue.props.slot, {}, () => [
|
|
1741
1745
|
(i(), M(Be(ue)))
|
|
1742
1746
|
], !0)), 256)),
|
|
1743
1747
|
h(I.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1755,23 +1759,23 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1755
1759
|
key: 0,
|
|
1756
1760
|
style: Ae((ne = (de = r.value.query) == null ? void 0 : de.btns) == null ? void 0 : ne.style)
|
|
1757
1761
|
}, [
|
|
1758
|
-
r.value.query.group ? (i(), M(
|
|
1762
|
+
r.value.query.group ? (i(), M(L(it), { key: 0 }, {
|
|
1759
1763
|
default: y(() => [
|
|
1760
|
-
(i(!0), x(W, null,
|
|
1764
|
+
(i(!0), x(W, null, R(ee(), (s) => h(I.$slots, s.props.slot, {}, () => [
|
|
1761
1765
|
(i(), M(Be(s)))
|
|
1762
1766
|
], !0)), 256)),
|
|
1763
1767
|
h(I.$slots, "q-btns", {}, void 0, !0)
|
|
1764
1768
|
]),
|
|
1765
1769
|
_: 3
|
|
1766
1770
|
})) : (i(), x(W, { key: 1 }, [
|
|
1767
|
-
(be = (le = r.value.query) == null ? void 0 : le.btns) != null && be.group ? (i(), M(
|
|
1771
|
+
(be = (le = r.value.query) == null ? void 0 : le.btns) != null && be.group ? (i(), M(L(it), { key: 0 }, {
|
|
1768
1772
|
default: y(() => [
|
|
1769
|
-
(i(!0), x(W, null,
|
|
1773
|
+
(i(!0), x(W, null, R(ee(), (s) => h(I.$slots, s.props.slot, {}, () => [
|
|
1770
1774
|
(i(), M(Be(s)))
|
|
1771
1775
|
], !0)), 256))
|
|
1772
1776
|
]),
|
|
1773
1777
|
_: 3
|
|
1774
|
-
})) : (i(!0), x(W, { key: 1 },
|
|
1778
|
+
})) : (i(!0), x(W, { key: 1 }, R(ee(), (s) => h(I.$slots, s.props.slot, {}, () => [
|
|
1775
1779
|
(i(), M(Be(s)))
|
|
1776
1780
|
], !0)), 256)),
|
|
1777
1781
|
h(I.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1781,23 +1785,26 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1781
1785
|
d.value && !((o = (b = (se = r.value) == null ? void 0 : se.query) == null ? void 0 : b.more) != null && o.hidden) && r.value.query.more.mode == 2 ? (i(), M(ae, q({
|
|
1782
1786
|
key: 0,
|
|
1783
1787
|
modelValue: d.value,
|
|
1784
|
-
"onUpdate:modelValue":
|
|
1788
|
+
"onUpdate:modelValue": U[6] || (U[6] = (s) => d.value = s),
|
|
1785
1789
|
title: "更多查询",
|
|
1786
1790
|
"show-close": !1
|
|
1787
1791
|
}, r.value.query.more.dialog), fe({
|
|
1788
1792
|
default: y(() => [
|
|
1789
|
-
J(
|
|
1793
|
+
J(L(st), q({
|
|
1794
|
+
onSubmit: U[3] || (U[3] = lt(() => {
|
|
1795
|
+
}, ["prevent"]))
|
|
1796
|
+
}, L(Ce)(r.value.query, (s) => !["query", "more", "reset"].includes(s)), { style: { width: "98%" } }), {
|
|
1790
1797
|
default: y(() => [
|
|
1791
|
-
J(
|
|
1798
|
+
J(Ct, {
|
|
1792
1799
|
modelValue: r.value,
|
|
1793
|
-
"onUpdate:modelValue":
|
|
1800
|
+
"onUpdate:modelValue": U[1] || (U[1] = (s) => r.value = s),
|
|
1794
1801
|
info: E.value,
|
|
1795
|
-
"onUpdate:info":
|
|
1802
|
+
"onUpdate:info": U[2] || (U[2] = (s) => E.value = s),
|
|
1796
1803
|
more: !0
|
|
1797
1804
|
}, fe({ _: 2 }, [
|
|
1798
|
-
|
|
1805
|
+
R(I.$slots, (s, D, C) => ({
|
|
1799
1806
|
name: D,
|
|
1800
|
-
fn: y((
|
|
1807
|
+
fn: y((j) => [
|
|
1801
1808
|
h(I.$slots, D, { model: r.value }, void 0, !0)
|
|
1802
1809
|
])
|
|
1803
1810
|
}))
|
|
@@ -1811,17 +1818,17 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1811
1818
|
(g = (p = (a = (v = (_ = r.value) == null ? void 0 : _.query) == null ? void 0 : v.more) == null ? void 0 : a.dialog) == null ? void 0 : p.footer) != null && g.hidden ? void 0 : {
|
|
1812
1819
|
name: "footer",
|
|
1813
1820
|
fn: y(() => [
|
|
1814
|
-
G("div",
|
|
1815
|
-
J(
|
|
1816
|
-
onClick:
|
|
1821
|
+
G("div", Ut(Rt(r.value.query.more.dialog.footer)), [
|
|
1822
|
+
J(L(ke), q(r.value.query.query, {
|
|
1823
|
+
onClick: U[4] || (U[4] = (s) => r.value.query.query.click())
|
|
1817
1824
|
}), {
|
|
1818
1825
|
default: y(() => [
|
|
1819
1826
|
_e(he(r.value.query.query.label), 1)
|
|
1820
1827
|
]),
|
|
1821
1828
|
_: 1
|
|
1822
1829
|
}, 16),
|
|
1823
|
-
J(
|
|
1824
|
-
onClick:
|
|
1830
|
+
J(L(ke), q(r.value.query.reset, {
|
|
1831
|
+
onClick: U[5] || (U[5] = (s) => r.value.query.reset.click())
|
|
1825
1832
|
}), {
|
|
1826
1833
|
default: y(() => [
|
|
1827
1834
|
_e(he(r.value.query.reset.label), 1)
|
|
@@ -1843,7 +1850,11 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1843
1850
|
return [
|
|
1844
1851
|
d.value && !((C = (D = (s = r.value) == null ? void 0 : s.query) == null ? void 0 : D.more) != null && C.hidden) && r.value.query.more.mode == 1 ? (i(), x("div", ml, [
|
|
1845
1852
|
G("div", vl, [
|
|
1846
|
-
r.value.query.more.mode == 1 ? Lt((i(), M(
|
|
1853
|
+
r.value.query.more.mode == 1 ? Lt((i(), M(L(st), q({
|
|
1854
|
+
key: 0,
|
|
1855
|
+
onSubmit: U[7] || (U[7] = lt(() => {
|
|
1856
|
+
}, ["prevent"]))
|
|
1857
|
+
}, L(Ce)(r.value.query, (j) => !["query", "more", "reset"].includes(j))), {
|
|
1847
1858
|
default: y(() => [
|
|
1848
1859
|
(i(), M(Be($({ slots: I.$slots }, !0))))
|
|
1849
1860
|
]),
|
|
@@ -1860,7 +1871,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1860
1871
|
], 64);
|
|
1861
1872
|
};
|
|
1862
1873
|
}
|
|
1863
|
-
}, hl = /* @__PURE__ */ Ge(pl, [["__scopeId", "data-v-
|
|
1874
|
+
}, hl = /* @__PURE__ */ Ge(pl, [["__scopeId", "data-v-95c100f0"]]), yl = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, gl = { style: { padding: "10px", "box-sizing": "border-box" } }, bl = { style: { margin: "10px" } }, $l = {
|
|
1864
1875
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
1865
1876
|
id: "excelSortEl"
|
|
1866
1877
|
}, wl = ["textContent"], El = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, kl = {
|
|
@@ -1872,40 +1883,40 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1872
1883
|
emits: ["excel"],
|
|
1873
1884
|
setup(f, { emit: c }) {
|
|
1874
1885
|
const r = f, t = c, e = te(r.items), d = () => {
|
|
1875
|
-
e.value.forEach((
|
|
1876
|
-
|
|
1886
|
+
e.value.forEach((T) => {
|
|
1887
|
+
T.value = !0;
|
|
1877
1888
|
});
|
|
1878
1889
|
}, E = () => {
|
|
1879
|
-
e.value.forEach((
|
|
1880
|
-
|
|
1890
|
+
e.value.forEach((T) => {
|
|
1891
|
+
T.value = !1;
|
|
1881
1892
|
});
|
|
1882
|
-
},
|
|
1883
|
-
t("excel", e.value, (
|
|
1884
|
-
if (!
|
|
1893
|
+
}, F = () => {
|
|
1894
|
+
t("excel", e.value, (T, k = "excel.xls") => {
|
|
1895
|
+
if (!T) {
|
|
1885
1896
|
console.error("下载链接无效");
|
|
1886
1897
|
return;
|
|
1887
1898
|
}
|
|
1888
1899
|
try {
|
|
1889
1900
|
const $ = document.createElement("a");
|
|
1890
|
-
$.href =
|
|
1901
|
+
$.href = T, $.download = k, $.style.display = "none", document.body.appendChild($), $.click(), document.body.removeChild($);
|
|
1891
1902
|
} catch ($) {
|
|
1892
1903
|
console.error("下载文件时出现错误:", $);
|
|
1893
1904
|
}
|
|
1894
1905
|
});
|
|
1895
1906
|
};
|
|
1896
|
-
return
|
|
1897
|
-
const
|
|
1907
|
+
return at(() => {
|
|
1908
|
+
const T = new Ft(document.getElementById("excelSortEl"), {
|
|
1898
1909
|
animation: 150,
|
|
1899
1910
|
onEnd: () => {
|
|
1900
|
-
let $ =
|
|
1911
|
+
let $ = T.toArray();
|
|
1901
1912
|
console.log($);
|
|
1902
1913
|
}
|
|
1903
|
-
}), k =
|
|
1914
|
+
}), k = T;
|
|
1904
1915
|
zt(() => {
|
|
1905
1916
|
k && k.destroy();
|
|
1906
1917
|
});
|
|
1907
|
-
}), (
|
|
1908
|
-
const $ = Y("el-divider"),
|
|
1918
|
+
}), (T, k) => {
|
|
1919
|
+
const $ = Y("el-divider"), N = Y("el-alert"), ee = Y("el-checkbox"), I = Y("el-button");
|
|
1909
1920
|
return i(), x("div", yl, [
|
|
1910
1921
|
G("div", gl, [
|
|
1911
1922
|
G("div", bl, [
|
|
@@ -1919,7 +1930,7 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1919
1930
|
style: { cursor: "pointer" }
|
|
1920
1931
|
}, "全不选")
|
|
1921
1932
|
]),
|
|
1922
|
-
J(
|
|
1933
|
+
J(N, {
|
|
1923
1934
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
1924
1935
|
type: "warning",
|
|
1925
1936
|
"show-icon": "",
|
|
@@ -1928,18 +1939,18 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1928
1939
|
}),
|
|
1929
1940
|
k[0] || (k[0] = G("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
1930
1941
|
G("div", $l, [
|
|
1931
|
-
(i(!0), x(W, null,
|
|
1942
|
+
(i(!0), x(W, null, R(e.value, (U) => (i(), M(ee, {
|
|
1932
1943
|
class: "check-box-hover",
|
|
1933
1944
|
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" },
|
|
1934
|
-
"data-id":
|
|
1935
|
-
modelValue:
|
|
1936
|
-
"onUpdate:modelValue": (re) =>
|
|
1937
|
-
key:
|
|
1938
|
-
title:
|
|
1945
|
+
"data-id": U.key,
|
|
1946
|
+
modelValue: U.value,
|
|
1947
|
+
"onUpdate:modelValue": (re) => U.value = re,
|
|
1948
|
+
key: U.key,
|
|
1949
|
+
title: U.label
|
|
1939
1950
|
}, {
|
|
1940
1951
|
default: y(() => [
|
|
1941
1952
|
G("span", {
|
|
1942
|
-
textContent: he(
|
|
1953
|
+
textContent: he(U.label),
|
|
1943
1954
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
1944
1955
|
}, null, 8, wl)
|
|
1945
1956
|
]),
|
|
@@ -1950,8 +1961,8 @@ const mt = /* @__PURE__ */ ll(al), Ge = (f, c) => {
|
|
|
1950
1961
|
G("div", El, [
|
|
1951
1962
|
J(I, {
|
|
1952
1963
|
type: "primary",
|
|
1953
|
-
onClick:
|
|
1954
|
-
disabled: e.value.filter((
|
|
1964
|
+
onClick: F,
|
|
1965
|
+
disabled: e.value.filter((U) => U.value).length < 1
|
|
1955
1966
|
}, {
|
|
1956
1967
|
default: y(() => [
|
|
1957
1968
|
_e(he(r.commitText), 1)
|
|
@@ -1993,10 +2004,10 @@ async function Vl(f) {
|
|
|
1993
2004
|
async function Ml(f) {
|
|
1994
2005
|
return typeof f == "string" && (f = { name: f }), await je.tableList.add(f), "add success";
|
|
1995
2006
|
}
|
|
1996
|
-
const
|
|
2007
|
+
const Sl = {
|
|
1997
2008
|
style: { margin: "10px" },
|
|
1998
2009
|
class: "allcheck"
|
|
1999
|
-
},
|
|
2010
|
+
}, Fl = {
|
|
2000
2011
|
id: "cols",
|
|
2001
2012
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2002
2013
|
}, Tl = ["textContent"], ql = {
|
|
@@ -2015,10 +2026,10 @@ const Fl = {
|
|
|
2015
2026
|
const c = f, r = te([]), t = Ne(f, "modelValue"), e = async (k, $) => {
|
|
2016
2027
|
k ? t.value[$].showCol = !0 : t.value[$].showCol = !1;
|
|
2017
2028
|
try {
|
|
2018
|
-
const
|
|
2019
|
-
console.log(
|
|
2020
|
-
} catch (
|
|
2021
|
-
console.error("列显示状态保存信息时出错:",
|
|
2029
|
+
const N = await tt(t.value.table.user, c.name, $, { showCol: k });
|
|
2030
|
+
console.log(N);
|
|
2031
|
+
} catch (N) {
|
|
2032
|
+
console.error("列显示状态保存信息时出错:", N), Te({
|
|
2022
2033
|
type: "error",
|
|
2023
2034
|
message: "列显示状态保存信息失败!"
|
|
2024
2035
|
});
|
|
@@ -2026,7 +2037,7 @@ const Fl = {
|
|
|
2026
2037
|
}, d = () => {
|
|
2027
2038
|
const k = document.getElementById("cols");
|
|
2028
2039
|
if (k) {
|
|
2029
|
-
let $ =
|
|
2040
|
+
let $ = Ft.create(k, {
|
|
2030
2041
|
animation: 150,
|
|
2031
2042
|
filter: ".filtered",
|
|
2032
2043
|
//
|
|
@@ -2034,9 +2045,9 @@ const Fl = {
|
|
|
2034
2045
|
onEnd: () => {
|
|
2035
2046
|
$.toArray().forEach(async (ee, I) => {
|
|
2036
2047
|
t.value[ee].sort = I;
|
|
2037
|
-
let
|
|
2048
|
+
let U = t.value[ee].width || "auto";
|
|
2038
2049
|
try {
|
|
2039
|
-
const re = await tt(t.value.table.user, c.name, ee, { sort: I, width:
|
|
2050
|
+
const re = await tt(t.value.table.user, c.name, ee, { sort: I, width: U });
|
|
2040
2051
|
console.log(re);
|
|
2041
2052
|
} catch (re) {
|
|
2042
2053
|
console.error("列排序和宽度保存信息时出错:", re), Te({
|
|
@@ -2065,17 +2076,17 @@ const Fl = {
|
|
|
2065
2076
|
message: "全选列保存信息失败!"
|
|
2066
2077
|
});
|
|
2067
2078
|
}
|
|
2068
|
-
},
|
|
2079
|
+
}, F = async () => {
|
|
2069
2080
|
try {
|
|
2070
2081
|
const k = r.value.filter(($) => !$.alwaysShow);
|
|
2071
2082
|
for (const $ of k) {
|
|
2072
2083
|
$.showCol = !1, t.value[$.value].showCol = !1;
|
|
2073
|
-
const
|
|
2084
|
+
const N = await tt(t.value.table.user, c.name, $.value, {
|
|
2074
2085
|
showCol: !1,
|
|
2075
2086
|
width: $.width,
|
|
2076
2087
|
sort: $.sort
|
|
2077
2088
|
});
|
|
2078
|
-
console.log(
|
|
2089
|
+
console.log(N);
|
|
2079
2090
|
}
|
|
2080
2091
|
} catch (k) {
|
|
2081
2092
|
console.error("清除列保存信息时出错:", k), Te({
|
|
@@ -2083,8 +2094,8 @@ const Fl = {
|
|
|
2083
2094
|
message: "清除列保存信息失败!"
|
|
2084
2095
|
});
|
|
2085
2096
|
}
|
|
2086
|
-
},
|
|
2087
|
-
|
|
2097
|
+
}, T = () => {
|
|
2098
|
+
Vt.confirm("确定要复位吗?", "提示", {
|
|
2088
2099
|
confirmButtonText: "确定",
|
|
2089
2100
|
cancelButtonText: "取消",
|
|
2090
2101
|
type: "warning"
|
|
@@ -2099,7 +2110,7 @@ const Fl = {
|
|
|
2099
2110
|
});
|
|
2100
2111
|
});
|
|
2101
2112
|
};
|
|
2102
|
-
return
|
|
2113
|
+
return at(async () => {
|
|
2103
2114
|
r.value = Object.entries(t.value).filter(([, k]) => k.visible !== !1).filter(([, k]) => k.type != "hidden").map(([k, $]) => ({
|
|
2104
2115
|
label: $.label,
|
|
2105
2116
|
value: k,
|
|
@@ -2109,14 +2120,14 @@ const Fl = {
|
|
|
2109
2120
|
width: $.width || "auto"
|
|
2110
2121
|
})).sort((k, $) => k.sort - $.sort), d();
|
|
2111
2122
|
}), (k, $) => {
|
|
2112
|
-
const
|
|
2123
|
+
const N = Y("el-divider"), ee = Y("el-alert"), I = Y("el-checkbox");
|
|
2113
2124
|
return i(), x("div", null, [
|
|
2114
|
-
G("div",
|
|
2125
|
+
G("div", Sl, [
|
|
2115
2126
|
G("a", { onClick: E }, "全选"),
|
|
2116
|
-
J(
|
|
2117
|
-
G("a", { onClick:
|
|
2118
|
-
J(
|
|
2119
|
-
G("a", { onClick:
|
|
2127
|
+
J(N, { direction: "vertical" }),
|
|
2128
|
+
G("a", { onClick: F }, "全不选"),
|
|
2129
|
+
J(N, { direction: "vertical" }),
|
|
2130
|
+
G("a", { onClick: T }, "复位")
|
|
2120
2131
|
]),
|
|
2121
2132
|
J(ee, {
|
|
2122
2133
|
title: "拖动表格列标题可以改变表格列显示顺序 !",
|
|
@@ -2126,22 +2137,22 @@ const Fl = {
|
|
|
2126
2137
|
style: { "margin-bottom": "10px" }
|
|
2127
2138
|
}),
|
|
2128
2139
|
G("div", null, [
|
|
2129
|
-
G("div",
|
|
2130
|
-
(i(!0), x(W, null,
|
|
2131
|
-
modelValue:
|
|
2132
|
-
"onUpdate:modelValue": (re) =>
|
|
2133
|
-
"data-id":
|
|
2134
|
-
class:
|
|
2135
|
-
onChange: (re) => e(re,
|
|
2140
|
+
G("div", Fl, [
|
|
2141
|
+
(i(!0), x(W, null, R(r.value, (U) => (i(), M(I, {
|
|
2142
|
+
modelValue: U.showCol,
|
|
2143
|
+
"onUpdate:modelValue": (re) => U.showCol = re,
|
|
2144
|
+
"data-id": U.value,
|
|
2145
|
+
class: St(["check-box-hover", U.value == "control" ? "filtered" : ""]),
|
|
2146
|
+
onChange: (re) => e(re, U.value),
|
|
2136
2147
|
style: { width: "125px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "2px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
2137
|
-
value:
|
|
2138
|
-
title:
|
|
2139
|
-
disabled:
|
|
2140
|
-
key:
|
|
2148
|
+
value: U.value,
|
|
2149
|
+
title: U.label,
|
|
2150
|
+
disabled: U.alwaysShow,
|
|
2151
|
+
key: U.value
|
|
2141
2152
|
}, {
|
|
2142
2153
|
default: y(() => [
|
|
2143
2154
|
G("span", {
|
|
2144
|
-
textContent: he(
|
|
2155
|
+
textContent: he(U.label),
|
|
2145
2156
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2146
2157
|
}, null, 8, Tl)
|
|
2147
2158
|
]),
|
|
@@ -2172,10 +2183,10 @@ const Fl = {
|
|
|
2172
2183
|
}),
|
|
2173
2184
|
emits: /* @__PURE__ */ Le(["load", "open", "delete", "submit", "reset", "download", "row-save"], ["update:modelValue"]),
|
|
2174
2185
|
setup(f, { expose: c, emit: r }) {
|
|
2175
|
-
var Ye,
|
|
2176
|
-
const t = r, e = Ne(f, "modelValue"), d = gt("options"), E = te({}),
|
|
2186
|
+
var Ye, ot, Ze, rt, ut, nt, Je;
|
|
2187
|
+
const t = r, e = Ne(f, "modelValue"), d = gt("options"), E = te({}), F = te(null), T = te(null), k = Object.entries(e.value).filter(([l, u]) => (u == null ? void 0 : u.search) !== void 0).map(([l, u]) => [l, u.value]);
|
|
2177
2188
|
E.value = Object.fromEntries(k);
|
|
2178
|
-
const $ = te(!1),
|
|
2189
|
+
const $ = te(!1), N = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], ee = te([]), I = f, U = bt(), re = te({}), ae = te([]), Q = te(null), me = te(""), ye = te({
|
|
2179
2190
|
autoWatch: !1,
|
|
2180
2191
|
data: [],
|
|
2181
2192
|
border: !0,
|
|
@@ -2186,25 +2197,25 @@ const Fl = {
|
|
|
2186
2197
|
load: () => {
|
|
2187
2198
|
let { currentPage: l, pageSize: u } = e.value.table.page;
|
|
2188
2199
|
try {
|
|
2189
|
-
t("load", { currentPage: l, pageSize: u, ...E.value }, (m,
|
|
2200
|
+
t("load", { currentPage: l, pageSize: u, ...E.value }, (m, S, { fields: P = [], sums: n = {} } = {}) => {
|
|
2190
2201
|
var V, K;
|
|
2191
2202
|
if (!Array.isArray(m)) {
|
|
2192
2203
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), Te.error("数据加载失败,请检查数据格式。");
|
|
2193
2204
|
return;
|
|
2194
2205
|
}
|
|
2195
|
-
if (typeof
|
|
2206
|
+
if (typeof S != "number") {
|
|
2196
2207
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Te.error("数据加载失败,请检查数据格式。");
|
|
2197
2208
|
return;
|
|
2198
2209
|
}
|
|
2199
|
-
e.value.table.data = m, ((K = (V = e.value.control) == null ? void 0 : V.add) == null ? void 0 : K.inline) === !0 && e.value.table.data.unshift(Q.value), e.value.table.page.total =
|
|
2210
|
+
e.value.table.data = m, ((K = (V = e.value.control) == null ? void 0 : V.add) == null ? void 0 : K.inline) === !0 && e.value.table.data.unshift(Q.value), e.value.table.page.total = S, ae.value = P, re.value = n, Ve(), me.value = Math.random().toString(36).substring(2);
|
|
2200
2211
|
}, Q.value);
|
|
2201
2212
|
} catch (m) {
|
|
2202
2213
|
console.error("触发 load 事件时出现错误:", m), Te.error("数据加载时出现错误,请稍后重试。");
|
|
2203
2214
|
}
|
|
2204
2215
|
},
|
|
2205
2216
|
onHeaderDragend: (l, u, m) => {
|
|
2206
|
-
var
|
|
2207
|
-
tt((
|
|
2217
|
+
var S;
|
|
2218
|
+
tt((S = e.value.table) == null ? void 0 : S.user, I.name, m.property, { width: l });
|
|
2208
2219
|
},
|
|
2209
2220
|
onRowDblclick: (l, u, m) => {
|
|
2210
2221
|
e.value.table.dblclickType == "edit" ? v(l, u, m, e) : e.value.table.dblclickType == "view" && p(l, u, m, e);
|
|
@@ -2232,14 +2243,14 @@ const Fl = {
|
|
|
2232
2243
|
},
|
|
2233
2244
|
dblclickType: "edit",
|
|
2234
2245
|
"summary-method": ({ columns: l, data: u }, m) => m,
|
|
2235
|
-
onSortChange: ({ column: l, prop: u, order: m },
|
|
2246
|
+
onSortChange: ({ column: l, prop: u, order: m }, S) => {
|
|
2236
2247
|
}
|
|
2237
2248
|
});
|
|
2238
|
-
e.value.table =
|
|
2249
|
+
e.value.table = Se(
|
|
2239
2250
|
ye.value,
|
|
2240
2251
|
d == null ? void 0 : d.table,
|
|
2241
2252
|
e.value.table,
|
|
2242
|
-
|
|
2253
|
+
U
|
|
2243
2254
|
// 继承父组件的属性
|
|
2244
2255
|
);
|
|
2245
2256
|
const ge = {
|
|
@@ -2247,7 +2258,7 @@ const Fl = {
|
|
|
2247
2258
|
label: "操作",
|
|
2248
2259
|
width: 250,
|
|
2249
2260
|
fixed: "right",
|
|
2250
|
-
style: { ...(
|
|
2261
|
+
style: { ...(ot = (Ye = e.value) == null ? void 0 : Ye.control) == null ? void 0 : ot.style },
|
|
2251
2262
|
validate: async (l) => await !0,
|
|
2252
2263
|
add: {
|
|
2253
2264
|
label: "新增",
|
|
@@ -2270,8 +2281,8 @@ const Fl = {
|
|
|
2270
2281
|
type: "primary",
|
|
2271
2282
|
mode: "dialog",
|
|
2272
2283
|
auth: (l, u, m) => {
|
|
2273
|
-
var
|
|
2274
|
-
return ((n = (P = (
|
|
2284
|
+
var S, P, n;
|
|
2285
|
+
return ((n = (P = (S = e.value) == null ? void 0 : S.control) == null ? void 0 : P.add) == null ? void 0 : n.inline) === !1;
|
|
2275
2286
|
}
|
|
2276
2287
|
},
|
|
2277
2288
|
delete: {
|
|
@@ -2279,8 +2290,8 @@ const Fl = {
|
|
|
2279
2290
|
label: "删除",
|
|
2280
2291
|
type: "danger",
|
|
2281
2292
|
auth: (l, u, m) => {
|
|
2282
|
-
var
|
|
2283
|
-
return !(((n = (P = (
|
|
2293
|
+
var S, P, n;
|
|
2294
|
+
return !(((n = (P = (S = e.value) == null ? void 0 : S.control) == null ? void 0 : P.add) == null ? void 0 : n.inline) === !0 && m === 0);
|
|
2284
2295
|
},
|
|
2285
2296
|
dialog: {
|
|
2286
2297
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -2314,42 +2325,42 @@ const Fl = {
|
|
|
2314
2325
|
return ((m = (u = (l = e.value) == null ? void 0 : l.control) == null ? void 0 : u.add) == null ? void 0 : m.inline) === !0;
|
|
2315
2326
|
}
|
|
2316
2327
|
},
|
|
2317
|
-
dropdown: (l, u, m,
|
|
2328
|
+
dropdown: (l, u, m, S) => ({
|
|
2318
2329
|
label: "编辑",
|
|
2319
2330
|
operate: "edit",
|
|
2320
2331
|
"split-button": !0,
|
|
2321
2332
|
type: "primary",
|
|
2322
2333
|
size: "small",
|
|
2323
|
-
auth: () => !(
|
|
2334
|
+
auth: () => !(S.control.add.inline === !0 && m == 0),
|
|
2324
2335
|
onClick: () => {
|
|
2325
2336
|
var n;
|
|
2326
|
-
let P = (n = ie(l, u, m,
|
|
2327
|
-
P === "edit" ? v(l, u, m,
|
|
2337
|
+
let P = (n = ie(l, u, m, S)) == null ? void 0 : n.operate;
|
|
2338
|
+
P === "edit" ? v(l, u, m, S) : P === "delete" ? a(l, u, m, S) : P === "view" && p(l, u, m, S);
|
|
2328
2339
|
},
|
|
2329
2340
|
"button-props": { round: !0, plain: !0 }
|
|
2330
2341
|
})
|
|
2331
2342
|
};
|
|
2332
|
-
e.value.control =
|
|
2343
|
+
e.value.control = Se(
|
|
2333
2344
|
ge,
|
|
2334
2345
|
d == null ? void 0 : d.control,
|
|
2335
2346
|
(Ze = e.value) == null ? void 0 : Ze.control
|
|
2336
2347
|
);
|
|
2337
|
-
const ie = (l, u, m,
|
|
2348
|
+
const ie = (l, u, m, S) => {
|
|
2338
2349
|
var K, ve, qe, xe, ze, Ke;
|
|
2339
2350
|
if (!l || !u || m == null)
|
|
2340
2351
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2341
|
-
const P = ((K = ge.dropdown) == null ? void 0 : K.call(ge, l, u, m,
|
|
2342
|
-
return
|
|
2352
|
+
const P = ((K = ge.dropdown) == null ? void 0 : K.call(ge, l, u, m, S)) || {}, n = ((qe = (ve = d == null ? void 0 : d.control) == null ? void 0 : ve.dropdown) == null ? void 0 : qe.call(ve, l, u, m, S)) || {}, V = ((Ke = (ze = (xe = e.value) == null ? void 0 : xe.control) == null ? void 0 : ze.dropdown) == null ? void 0 : Ke.call(ze, l, u, m, S)) || {};
|
|
2353
|
+
return Se(P, n, V) || {};
|
|
2343
2354
|
}, de = {
|
|
2344
2355
|
type: "hidden",
|
|
2345
2356
|
minWidth: 120,
|
|
2346
2357
|
align: "center",
|
|
2347
|
-
formatter: (l, u, m,
|
|
2358
|
+
formatter: (l, u, m, S) => m
|
|
2348
2359
|
};
|
|
2349
|
-
e.value.tableColumns =
|
|
2360
|
+
e.value.tableColumns = Se(
|
|
2350
2361
|
de,
|
|
2351
2362
|
d == null ? void 0 : d.tableColumns,
|
|
2352
|
-
(
|
|
2363
|
+
(rt = e.value) == null ? void 0 : rt.tableColumns
|
|
2353
2364
|
);
|
|
2354
2365
|
const ne = {
|
|
2355
2366
|
type: "hidden",
|
|
@@ -2357,10 +2368,10 @@ const Fl = {
|
|
|
2357
2368
|
footer: { hidden: !1 },
|
|
2358
2369
|
modalState: void 0
|
|
2359
2370
|
};
|
|
2360
|
-
e.value.form =
|
|
2371
|
+
e.value.form = Se(
|
|
2361
2372
|
ne,
|
|
2362
2373
|
d == null ? void 0 : d.form,
|
|
2363
|
-
(
|
|
2374
|
+
(ut = e.value) == null ? void 0 : ut.form
|
|
2364
2375
|
);
|
|
2365
2376
|
const le = {
|
|
2366
2377
|
type: "hidden",
|
|
@@ -2369,10 +2380,10 @@ const Fl = {
|
|
|
2369
2380
|
width: "100%"
|
|
2370
2381
|
}
|
|
2371
2382
|
};
|
|
2372
|
-
e.value.formItems =
|
|
2383
|
+
e.value.formItems = Se(
|
|
2373
2384
|
le,
|
|
2374
2385
|
d == null ? void 0 : d.formItems,
|
|
2375
|
-
(
|
|
2386
|
+
(nt = e == null ? void 0 : e.value) == null ? void 0 : nt.formItems
|
|
2376
2387
|
);
|
|
2377
2388
|
const be = {
|
|
2378
2389
|
title: "编辑",
|
|
@@ -2394,7 +2405,7 @@ const Fl = {
|
|
|
2394
2405
|
// 最小化图标
|
|
2395
2406
|
}
|
|
2396
2407
|
};
|
|
2397
|
-
e.value.dialog =
|
|
2408
|
+
e.value.dialog = Se(
|
|
2398
2409
|
be,
|
|
2399
2410
|
d == null ? void 0 : d.dialog,
|
|
2400
2411
|
(Je = e.value) == null ? void 0 : Je.dialog
|
|
@@ -2419,59 +2430,59 @@ const Fl = {
|
|
|
2419
2430
|
e.value.form.modalState = "add";
|
|
2420
2431
|
try {
|
|
2421
2432
|
if (!await ((u = e.value.control) == null ? void 0 : u.validate("add", { m: l }))) return;
|
|
2422
|
-
} catch (
|
|
2423
|
-
console.error("验证失败:",
|
|
2433
|
+
} catch (S) {
|
|
2434
|
+
console.error("验证失败:", S);
|
|
2424
2435
|
return;
|
|
2425
2436
|
}
|
|
2426
|
-
(m = e.value.control.add) != null && m.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(Q.value), t("open", "row-add", { initFormData: Q.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(Q.value).forEach((
|
|
2427
|
-
e.value[
|
|
2428
|
-
}), $.value = !0, t("open", "add", { m: l }),
|
|
2429
|
-
}, v = async (l, u, m,
|
|
2437
|
+
(m = e.value.control.add) != null && m.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(Q.value), t("open", "row-add", { initFormData: Q.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(Q.value).forEach((S) => {
|
|
2438
|
+
e.value[S] && (e.value[S].value = Q.value[S]);
|
|
2439
|
+
}), $.value = !0, t("open", "add", { m: l }), dt());
|
|
2440
|
+
}, v = async (l, u, m, S) => {
|
|
2430
2441
|
var P, n;
|
|
2431
2442
|
e.value.form.modalState = "edit";
|
|
2432
2443
|
try {
|
|
2433
|
-
if (!await ((P = e.value.control) == null ? void 0 : P.validate("edit", { row: l, column: u, $index: m, m:
|
|
2444
|
+
if (!await ((P = e.value.control) == null ? void 0 : P.validate("edit", { row: l, column: u, $index: m, m: S }))) return;
|
|
2434
2445
|
} catch (V) {
|
|
2435
2446
|
console.error("验证失败:", V);
|
|
2436
2447
|
return;
|
|
2437
2448
|
}
|
|
2438
|
-
(n = e.value.control.edit) != null && n.click ? e.value.control.edit.click(l, u, m,
|
|
2449
|
+
(n = e.value.control.edit) != null && n.click ? e.value.control.edit.click(l, u, m, S) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((V) => {
|
|
2439
2450
|
e.value[V] && (e.value[V].value = l[V]);
|
|
2440
|
-
}), $.value = !0, t("open", "edit", { m:
|
|
2441
|
-
}, a = async (l, u, m,
|
|
2451
|
+
}), $.value = !0, t("open", "edit", { m: S, row: l, column: u, $index: m }), dt());
|
|
2452
|
+
}, a = async (l, u, m, S) => {
|
|
2442
2453
|
var P, n;
|
|
2443
2454
|
try {
|
|
2444
|
-
if (!await ((P = e.value.control) == null ? void 0 : P.validate("delete", { row: l, column: u, $index: m, m:
|
|
2455
|
+
if (!await ((P = e.value.control) == null ? void 0 : P.validate("delete", { row: l, column: u, $index: m, m: S }))) return;
|
|
2445
2456
|
} catch (V) {
|
|
2446
2457
|
console.error("验证失败:", V);
|
|
2447
2458
|
return;
|
|
2448
2459
|
}
|
|
2449
2460
|
if ((n = e.value.control.delete) != null && n.click)
|
|
2450
|
-
e.value.control.delete.click(l, u, m,
|
|
2461
|
+
e.value.control.delete.click(l, u, m, S);
|
|
2451
2462
|
else {
|
|
2452
2463
|
let { message: V, title: K, options: ve } = e.value.control.delete.dialog;
|
|
2453
|
-
|
|
2464
|
+
Vt.confirm(V, K, ve).then(() => {
|
|
2454
2465
|
t("delete", { row: l, column: u, $index: m }, (qe = !0, xe = !1) => {
|
|
2455
2466
|
qe && (e.value.table.data.splice(m, 1), e.value.table.page.total--), xe && e.value.table.load();
|
|
2456
2467
|
});
|
|
2457
2468
|
}).catch(() => {
|
|
2458
2469
|
});
|
|
2459
2470
|
}
|
|
2460
|
-
}, p = async (l, u, m,
|
|
2471
|
+
}, p = async (l, u, m, S) => {
|
|
2461
2472
|
var P, n;
|
|
2462
2473
|
e.value.form.modalState = void 0;
|
|
2463
2474
|
try {
|
|
2464
|
-
if (!await ((P = e.value.control) == null ? void 0 : P.validate("view", { row: l, column: u, $index: m, m:
|
|
2475
|
+
if (!await ((P = e.value.control) == null ? void 0 : P.validate("view", { row: l, column: u, $index: m, m: S }))) return;
|
|
2465
2476
|
} catch (V) {
|
|
2466
2477
|
console.error("验证失败:", V);
|
|
2467
2478
|
return;
|
|
2468
2479
|
}
|
|
2469
|
-
(n = e.value.control.view) != null && n.click ? e.value.control.view.click(l, u, m,
|
|
2480
|
+
(n = e.value.control.view) != null && n.click ? e.value.control.view.click(l, u, m, S) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((V) => {
|
|
2470
2481
|
e.value[V] && (e.value[V].value = l[V]);
|
|
2471
|
-
}), $.value = !0, t("open", "view", { m:
|
|
2472
|
-
}, g = (l, u, m,
|
|
2482
|
+
}), $.value = !0, t("open", "view", { m: S, row: l, column: u, $index: m }), dt());
|
|
2483
|
+
}, g = (l, u, m, S) => {
|
|
2473
2484
|
var P;
|
|
2474
|
-
(P = e.value.control.save) != null && P.click ? e.value.control.save.click(l, u, m,
|
|
2485
|
+
(P = e.value.control.save) != null && P.click ? e.value.control.save.click(l, u, m, S) : t("row-save", { row: l, column: u, $index: m, data: e.value.table.data }, (n = !0, V = !0) => {
|
|
2475
2486
|
n && (e.value.table.load(), console.log("load")), V && Qe(() => {
|
|
2476
2487
|
Q.value = Object.assign({}, Object.fromEntries(Object.entries(Ce(e.value, (K, ve) => ve.type != "control" && ve.editor !== !1 && ve.type != "hidden")).map(([K, ve]) => [K, ve.value])));
|
|
2477
2488
|
});
|
|
@@ -2487,7 +2498,7 @@ const Fl = {
|
|
|
2487
2498
|
if ((m = l.control.download) != null && m.click)
|
|
2488
2499
|
l.control.download.click(l, u);
|
|
2489
2500
|
else {
|
|
2490
|
-
let
|
|
2501
|
+
let S = ht({
|
|
2491
2502
|
title: l.control.download.label,
|
|
2492
2503
|
size: 480,
|
|
2493
2504
|
width: 600,
|
|
@@ -2496,13 +2507,13 @@ const Fl = {
|
|
|
2496
2507
|
items: u,
|
|
2497
2508
|
commitText: l.control.download.excelLabel,
|
|
2498
2509
|
onExcel: (P, n) => {
|
|
2499
|
-
t("download", P, n),
|
|
2510
|
+
t("download", P, n), S();
|
|
2500
2511
|
}
|
|
2501
2512
|
})
|
|
2502
2513
|
}
|
|
2503
2514
|
}, l.control.download.mode);
|
|
2504
2515
|
}
|
|
2505
|
-
},
|
|
2516
|
+
}, j = (l) => {
|
|
2506
2517
|
var u;
|
|
2507
2518
|
(u = l.control.setting) != null && u.click ? l.control.setting.click(l) : ht({
|
|
2508
2519
|
title: l.control.setting.label,
|
|
@@ -2518,29 +2529,29 @@ const Fl = {
|
|
|
2518
2529
|
}, X = e.value.control, O = [
|
|
2519
2530
|
{ type: "add", func: _ },
|
|
2520
2531
|
{ type: "download", func: C },
|
|
2521
|
-
{ type: "setting", func:
|
|
2532
|
+
{ type: "setting", func: j },
|
|
2522
2533
|
{ type: "view", func: p },
|
|
2523
2534
|
{ type: "edit", func: v },
|
|
2524
2535
|
{ type: "delete", func: a },
|
|
2525
2536
|
{ type: "save", func: g }
|
|
2526
2537
|
], A = (l) => O.filter((u) => l.includes(u.type)).map(({ type: u, func: m }) => {
|
|
2527
|
-
var
|
|
2538
|
+
var S, P, n;
|
|
2528
2539
|
return {
|
|
2529
2540
|
name: `control-${u}`,
|
|
2530
2541
|
attr: X == null ? void 0 : X[u],
|
|
2531
2542
|
func: m,
|
|
2532
|
-
label: (
|
|
2543
|
+
label: (S = X == null ? void 0 : X[u]) == null ? void 0 : S.label,
|
|
2533
2544
|
sort: ((P = X == null ? void 0 : X[u]) == null ? void 0 : P.sort) || 0,
|
|
2534
2545
|
groupName: ((n = X == null ? void 0 : X[u]) == null ? void 0 : n.groupName) || "default"
|
|
2535
2546
|
};
|
|
2536
2547
|
}).sort((u, m) => u.sort - m.sort), ue = (l) => A(l).reduce((u, m) => {
|
|
2537
|
-
const
|
|
2538
|
-
return u[
|
|
2548
|
+
const S = m.groupName || "default";
|
|
2549
|
+
return u[S] || (u[S] = []), u[S].push(m), u;
|
|
2539
2550
|
}, {}), Ee = Xe(() => Object.fromEntries(
|
|
2540
2551
|
Object.entries(e.value).filter(([l, u]) => u.type !== "hidden").filter(([l, u]) => u.visible !== !1).filter(([l, u]) => u.showCol !== !1).map(([l, u]) => (u.sort = typeof u.sort == "number" ? u.sort : 0, [l, u])).sort((l, u) => l[1].sort - u[1].sort)
|
|
2541
2552
|
)), we = te({}), De = (l, u) => {
|
|
2542
|
-
const m = (
|
|
2543
|
-
for (const n of
|
|
2553
|
+
const m = (S, P) => {
|
|
2554
|
+
for (const n of S) {
|
|
2544
2555
|
if (n.value == P) return n.label;
|
|
2545
2556
|
if (n.children) {
|
|
2546
2557
|
const V = m(n.children, P);
|
|
@@ -2550,9 +2561,9 @@ const Fl = {
|
|
|
2550
2561
|
return null;
|
|
2551
2562
|
};
|
|
2552
2563
|
if (l.getDicts) {
|
|
2553
|
-
const
|
|
2554
|
-
return we.value[
|
|
2555
|
-
we.value[
|
|
2564
|
+
const S = u.toString();
|
|
2565
|
+
return we.value[S] ? (l.options = we.value[S], l.formatter || (l.formatter = (P, n, V, K) => l.options && m(l.options, V) || V), Promise.resolve()) : l.getDicts(e.value.table.data).then((P) => {
|
|
2566
|
+
we.value[S] = P, l.options = P, l.formatter || (l.formatter = (n, V, K, ve) => l.options && m(l.options, K) || K);
|
|
2556
2567
|
});
|
|
2557
2568
|
}
|
|
2558
2569
|
return Promise.resolve();
|
|
@@ -2561,30 +2572,30 @@ const Fl = {
|
|
|
2561
2572
|
Object.keys(e.value).forEach((u) => {
|
|
2562
2573
|
if (e.value[u].getDicts) {
|
|
2563
2574
|
const m = De(e.value[u], u).then(() => {
|
|
2564
|
-
e.value.table.data.forEach((
|
|
2575
|
+
e.value.table.data.forEach((S) => {
|
|
2565
2576
|
var P;
|
|
2566
2577
|
if (e.value[u].getDicts && ((P = e.value[u]) == null ? void 0 : P.forceString) !== !1) {
|
|
2567
|
-
const n =
|
|
2568
|
-
|
|
2578
|
+
const n = S[u];
|
|
2579
|
+
S[u] = n != null ? n.toString() : n;
|
|
2569
2580
|
}
|
|
2570
2581
|
});
|
|
2571
|
-
}).catch((
|
|
2572
|
-
console.error(`加载字典${u}出错:`,
|
|
2582
|
+
}).catch((S) => {
|
|
2583
|
+
console.error(`加载字典${u}出错:`, S);
|
|
2573
2584
|
});
|
|
2574
2585
|
l.push(m);
|
|
2575
2586
|
}
|
|
2576
2587
|
}), Promise.all(l).catch((u) => {
|
|
2577
2588
|
console.error("字典加载过程中发生错误:", u);
|
|
2578
2589
|
});
|
|
2579
|
-
}, $e = (l, u, m,
|
|
2590
|
+
}, $e = (l, u, m, S) => {
|
|
2580
2591
|
var P, n;
|
|
2581
|
-
return l.table ? (P = l.table(u, m,
|
|
2592
|
+
return l.table ? (P = l.table(u, m, S)) != null && P.auth ? (n = l.table(u, m, S)) == null ? void 0 : n.auth(u, m, S) : !0 : !1;
|
|
2582
2593
|
}, Me = (l, u) => l.name === "control-save" && u === 0 && e.value.control.add.inline === !0 ? l.attr.addLabel : l.label, Ie = () => {
|
|
2583
2594
|
if (e.value.dialog.mode == "drawer")
|
|
2584
|
-
|
|
2595
|
+
T.value.handleClose();
|
|
2585
2596
|
else if (e.value.dialog.mode == "dialog")
|
|
2586
2597
|
try {
|
|
2587
|
-
|
|
2598
|
+
F.value.handleClose();
|
|
2588
2599
|
} catch {
|
|
2589
2600
|
$.value = !1;
|
|
2590
2601
|
}
|
|
@@ -2593,7 +2604,7 @@ const Fl = {
|
|
|
2593
2604
|
};
|
|
2594
2605
|
return Pt(() => {
|
|
2595
2606
|
e.value.table.autoWatch && e.value.table.load();
|
|
2596
|
-
}),
|
|
2607
|
+
}), at(async () => {
|
|
2597
2608
|
var l;
|
|
2598
2609
|
if (ee.value = Object.values(e.value).filter((u) => u.type !== "hidden").filter((u) => u.type !== "control").filter((u) => u.visible !== !1).map((u) => ({ key: u.key || "", label: u.label, value: !0 })), Qe(() => {
|
|
2599
2610
|
Q.value = Object.assign({}, Object.fromEntries(
|
|
@@ -2637,26 +2648,26 @@ const Fl = {
|
|
|
2637
2648
|
closeDialog: Ie
|
|
2638
2649
|
}), (l, u) => {
|
|
2639
2650
|
var Ke, $t, wt, Et, kt;
|
|
2640
|
-
const m = Y("el-button-group"),
|
|
2651
|
+
const m = Y("el-button-group"), S = Y("el-dropdown-item"), P = Y("el-dropdown-menu"), n = Y("el-dropdown"), V = Y("el-table-column"), K = Y("el-table"), ve = Y("el-pagination"), qe = Y("el-icon"), xe = Y("el-dialog"), ze = Y("el-drawer");
|
|
2641
2652
|
return i(), x(W, null, [
|
|
2642
2653
|
G("div", Ol, [
|
|
2643
2654
|
(($t = (Ke = e.value) == null ? void 0 : Ke.query) == null ? void 0 : $t.hidden) != !0 ? (i(), x("div", Al, [
|
|
2644
2655
|
h(l.$slots, "query", {}, () => [
|
|
2645
2656
|
J(hl, {
|
|
2646
2657
|
modelValue: e.value,
|
|
2647
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
2658
|
+
"onUpdate:modelValue": u[0] || (u[0] = (z) => e.value = z),
|
|
2648
2659
|
info: E.value,
|
|
2649
|
-
"onUpdate:info": u[1] || (u[1] = (
|
|
2660
|
+
"onUpdate:info": u[1] || (u[1] = (z) => E.value = z),
|
|
2650
2661
|
onQuery: o,
|
|
2651
2662
|
onReset: b
|
|
2652
2663
|
}, fe({
|
|
2653
2664
|
"q-btns": y(() => [
|
|
2654
2665
|
h(l.$slots, "q-btns", {}, () => [
|
|
2655
|
-
(i(!0), x(W, null,
|
|
2656
|
-
oe == "default" ? (i(!0), x(W, { key: 0 },
|
|
2666
|
+
(i(!0), x(W, null, R(ue(["add", "download", "setting"]), (z, oe) => (i(), x(W, null, [
|
|
2667
|
+
oe == "default" ? (i(!0), x(W, { key: 0 }, R(z, (w) => (i(), x(W, null, [
|
|
2657
2668
|
h(l.$slots, w.name + "-left", {}, void 0, !0),
|
|
2658
2669
|
(w.name === "control-add" ? w.attr.auth() && w.attr.inline === !1 : w.attr.auth()) ? h(l.$slots, w.name, { key: 0 }, () => [
|
|
2659
|
-
w.label ? (i(), M(
|
|
2670
|
+
w.label ? (i(), M(L(ke), q({
|
|
2660
2671
|
key: 0,
|
|
2661
2672
|
title: w.label,
|
|
2662
2673
|
ref_for: !0
|
|
@@ -2667,7 +2678,7 @@ const Fl = {
|
|
|
2667
2678
|
_e(he(w.label), 1)
|
|
2668
2679
|
]),
|
|
2669
2680
|
_: 2
|
|
2670
|
-
}, 1040, ["title", "onClick"])) : (i(), M(
|
|
2681
|
+
}, 1040, ["title", "onClick"])) : (i(), M(L(ke), q({
|
|
2671
2682
|
key: 1,
|
|
2672
2683
|
title: w.label,
|
|
2673
2684
|
ref_for: !0
|
|
@@ -2678,10 +2689,10 @@ const Fl = {
|
|
|
2678
2689
|
h(l.$slots, w.name + "-right", {}, void 0, !0)
|
|
2679
2690
|
], 64))), 256)) : (i(), M(m, { key: 1 }, {
|
|
2680
2691
|
default: y(() => [
|
|
2681
|
-
(i(!0), x(W, null,
|
|
2692
|
+
(i(!0), x(W, null, R(z, (w) => (i(), x(W, null, [
|
|
2682
2693
|
h(l.$slots, w.name + "-left", {}, void 0, !0),
|
|
2683
2694
|
(w.name === "control-add" ? w.attr.auth() && w.attr.inline === !1 : w.attr.auth()) ? h(l.$slots, w.name, { key: 0 }, () => [
|
|
2684
|
-
w.label ? (i(), M(
|
|
2695
|
+
w.label ? (i(), M(L(ke), q({
|
|
2685
2696
|
key: 0,
|
|
2686
2697
|
title: w.label,
|
|
2687
2698
|
ref_for: !0
|
|
@@ -2692,7 +2703,7 @@ const Fl = {
|
|
|
2692
2703
|
_e(he(w.label), 1)
|
|
2693
2704
|
]),
|
|
2694
2705
|
_: 2
|
|
2695
|
-
}, 1040, ["title", "onClick"])) : (i(), M(
|
|
2706
|
+
}, 1040, ["title", "onClick"])) : (i(), M(L(ke), q({
|
|
2696
2707
|
key: 1,
|
|
2697
2708
|
title: w.label,
|
|
2698
2709
|
ref_for: !0
|
|
@@ -2710,7 +2721,7 @@ const Fl = {
|
|
|
2710
2721
|
]),
|
|
2711
2722
|
_: 2
|
|
2712
2723
|
}, [
|
|
2713
|
-
|
|
2724
|
+
R(l.$slots, (z, oe, w) => ({
|
|
2714
2725
|
name: oe,
|
|
2715
2726
|
fn: y((H) => [
|
|
2716
2727
|
h(l.$slots, oe, { model: e.value }, void 0, !0)
|
|
@@ -2720,11 +2731,11 @@ const Fl = {
|
|
|
2720
2731
|
], !0)
|
|
2721
2732
|
])) : ce("", !0),
|
|
2722
2733
|
G("div", Bl, [
|
|
2723
|
-
J(K, q({ ...l.$attrs, ...
|
|
2724
|
-
"summary-method": (
|
|
2725
|
-
onSortChange: u[2] || (u[2] = (
|
|
2734
|
+
J(K, q({ ...l.$attrs, ...L(Ce)(e.value.table, (z) => !["dblclickType", "page"].includes(z)) }, {
|
|
2735
|
+
"summary-method": (z) => e.value.table["summary-method"](z, { fields: ae.value, sums: re.value }),
|
|
2736
|
+
onSortChange: u[2] || (u[2] = (z) => {
|
|
2726
2737
|
var oe, w;
|
|
2727
|
-
e.value.table.onSortChange(
|
|
2738
|
+
e.value.table.onSortChange(z, E.value), ((oe = z == null ? void 0 : z.column) == null ? void 0 : oe.sortable) === "custom" && ((w = e.value.table) == null || w.load());
|
|
2728
2739
|
})
|
|
2729
2740
|
}), {
|
|
2730
2741
|
append: y(() => [
|
|
@@ -2735,11 +2746,11 @@ const Fl = {
|
|
|
2735
2746
|
]),
|
|
2736
2747
|
default: y(() => [
|
|
2737
2748
|
h(l.$slots, "default", {}, () => [
|
|
2738
|
-
(i(!0), x(W, null,
|
|
2749
|
+
(i(!0), x(W, null, R(Ee.value, (z, oe) => (i(), M(V, q({
|
|
2739
2750
|
prop: oe,
|
|
2740
2751
|
key: oe,
|
|
2741
2752
|
ref_for: !0
|
|
2742
|
-
}, { ...e.value.tableColumns, ...
|
|
2753
|
+
}, { ...e.value.tableColumns, ...L(Ce)(z, (w) => N.includes(w)) }, { "header-align": "center" }), fe({
|
|
2743
2754
|
header: y(({ column: w, $index: H }) => [
|
|
2744
2755
|
oe == "control" ? h(l.$slots, `${oe}-header`, {
|
|
2745
2756
|
key: 0,
|
|
@@ -2758,7 +2769,7 @@ const Fl = {
|
|
|
2758
2769
|
]),
|
|
2759
2770
|
_: 2
|
|
2760
2771
|
}, [
|
|
2761
|
-
|
|
2772
|
+
z.type === "expand" ? {
|
|
2762
2773
|
name: "default",
|
|
2763
2774
|
fn: y(({ row: w, column: H, $index: Z }) => [
|
|
2764
2775
|
h(l.$slots, `${oe}`, {
|
|
@@ -2768,13 +2779,13 @@ const Fl = {
|
|
|
2768
2779
|
}, void 0, !0)
|
|
2769
2780
|
]),
|
|
2770
2781
|
key: "0"
|
|
2771
|
-
} :
|
|
2782
|
+
} : z.type == "control" ? {
|
|
2772
2783
|
name: "default",
|
|
2773
2784
|
fn: y(({ row: w, column: H, $index: Z }) => {
|
|
2774
2785
|
var Pe, He;
|
|
2775
2786
|
return [
|
|
2776
2787
|
G("div", {
|
|
2777
|
-
class:
|
|
2788
|
+
class: St(["control", (Pe = e.value.control) == null ? void 0 : Pe.class]),
|
|
2778
2789
|
style: Ae((He = e.value.control) == null ? void 0 : He.style)
|
|
2779
2790
|
}, [
|
|
2780
2791
|
h(l.$slots, "control", {}, () => [
|
|
@@ -2783,10 +2794,10 @@ const Fl = {
|
|
|
2783
2794
|
column: H,
|
|
2784
2795
|
$index: Z
|
|
2785
2796
|
}, void 0, !0),
|
|
2786
|
-
(i(!0), x(W, null,
|
|
2797
|
+
(i(!0), x(W, null, R(ue(["view", "edit", "delete", "save"]), (Ue, Re) => {
|
|
2787
2798
|
var et;
|
|
2788
2799
|
return i(), x(W, null, [
|
|
2789
|
-
Re == "default" ? (i(!0), x(W, { key: 0 },
|
|
2800
|
+
Re == "default" ? (i(!0), x(W, { key: 0 }, R(Ue, (B) => (i(), x(W, null, [
|
|
2790
2801
|
h(l.$slots, B.name + "-left", {
|
|
2791
2802
|
row: w,
|
|
2792
2803
|
column: H,
|
|
@@ -2798,23 +2809,23 @@ const Fl = {
|
|
|
2798
2809
|
column: H,
|
|
2799
2810
|
$index: Z
|
|
2800
2811
|
}, () => [
|
|
2801
|
-
B.label ? (i(), M(
|
|
2812
|
+
B.label ? (i(), M(L(ke), q({
|
|
2802
2813
|
key: 0,
|
|
2803
2814
|
title: B.label,
|
|
2804
2815
|
ref_for: !0
|
|
2805
2816
|
}, B.attr, {
|
|
2806
|
-
onClick: (
|
|
2817
|
+
onClick: (Fe) => B.func(w, H, Z, e.value)
|
|
2807
2818
|
}), {
|
|
2808
2819
|
default: y(() => [
|
|
2809
2820
|
_e(he(Me(B, Z)), 1)
|
|
2810
2821
|
]),
|
|
2811
2822
|
_: 2
|
|
2812
|
-
}, 1040, ["title", "onClick"])) : (i(), M(
|
|
2823
|
+
}, 1040, ["title", "onClick"])) : (i(), M(L(ke), q({
|
|
2813
2824
|
key: 1,
|
|
2814
2825
|
title: B.label,
|
|
2815
2826
|
ref_for: !0
|
|
2816
2827
|
}, B.attr, {
|
|
2817
|
-
onClick: (
|
|
2828
|
+
onClick: (Fe) => B.func(w, H, Z, e.value)
|
|
2818
2829
|
}), null, 16, ["title", "onClick"]))
|
|
2819
2830
|
], !0) : ce("", !0),
|
|
2820
2831
|
h(l.$slots, B.name + "-right", {
|
|
@@ -2829,8 +2840,8 @@ const Fl = {
|
|
|
2829
2840
|
dropdown: y(() => [
|
|
2830
2841
|
J(P, null, {
|
|
2831
2842
|
default: y(() => [
|
|
2832
|
-
(i(!0), x(W, null,
|
|
2833
|
-
var
|
|
2843
|
+
(i(!0), x(W, null, R(Ue, (B) => {
|
|
2844
|
+
var Fe, We, _t;
|
|
2834
2845
|
return i(), x(W, null, [
|
|
2835
2846
|
l.$slots[B.name + "-left"] ? h(l.$slots, B.name + "-left", {
|
|
2836
2847
|
key: 0,
|
|
@@ -2838,33 +2849,33 @@ const Fl = {
|
|
|
2838
2849
|
column: H,
|
|
2839
2850
|
$index: Z
|
|
2840
2851
|
}, void 0, !0) : ce("", !0),
|
|
2841
|
-
B.attr.auth(w, H, Z) ? (i(), M(
|
|
2852
|
+
B.attr.auth(w, H, Z) ? (i(), M(S, q({
|
|
2842
2853
|
key: 1,
|
|
2843
2854
|
ref_for: !0
|
|
2844
|
-
}, { command: (
|
|
2855
|
+
}, { command: (Fe = B == null ? void 0 : B.attr) == null ? void 0 : Fe.command, divided: (We = B == null ? void 0 : B.attr) == null ? void 0 : We.divided, disabled: (_t = B == null ? void 0 : B.attr) == null ? void 0 : _t.disabled }), {
|
|
2845
2856
|
default: y(() => [
|
|
2846
2857
|
h(l.$slots, B.name, {
|
|
2847
2858
|
row: w,
|
|
2848
2859
|
column: H,
|
|
2849
2860
|
$index: Z
|
|
2850
2861
|
}, () => [
|
|
2851
|
-
B.label ? (i(), M(
|
|
2862
|
+
B.label ? (i(), M(L(ke), q({
|
|
2852
2863
|
key: 0,
|
|
2853
2864
|
title: B.label,
|
|
2854
2865
|
ref_for: !0
|
|
2855
2866
|
}, B.attr, {
|
|
2856
|
-
onClick: (
|
|
2867
|
+
onClick: (Ot) => B.func(w, H, Z, e.value)
|
|
2857
2868
|
}), {
|
|
2858
2869
|
default: y(() => [
|
|
2859
2870
|
_e(he(Me(B, Z)), 1)
|
|
2860
2871
|
]),
|
|
2861
2872
|
_: 2
|
|
2862
|
-
}, 1040, ["title", "onClick"])) : (i(), M(
|
|
2873
|
+
}, 1040, ["title", "onClick"])) : (i(), M(L(ke), q({
|
|
2863
2874
|
key: 1,
|
|
2864
2875
|
title: B.label,
|
|
2865
2876
|
ref_for: !0
|
|
2866
2877
|
}, B.attr, {
|
|
2867
|
-
onClick: (
|
|
2878
|
+
onClick: (Ot) => B.func(w, H, Z, e.value)
|
|
2868
2879
|
}), null, 16, ["title", "onClick"]))
|
|
2869
2880
|
], !0)
|
|
2870
2881
|
]),
|
|
@@ -2891,7 +2902,7 @@ const Fl = {
|
|
|
2891
2902
|
_: 2
|
|
2892
2903
|
}, 1040)) : (i(), M(m, { key: 2 }, {
|
|
2893
2904
|
default: y(() => [
|
|
2894
|
-
(i(!0), x(W, null,
|
|
2905
|
+
(i(!0), x(W, null, R(Ue, (B) => (i(), x(W, null, [
|
|
2895
2906
|
h(l.$slots, B.name + "-left", {
|
|
2896
2907
|
row: w,
|
|
2897
2908
|
column: H,
|
|
@@ -2903,23 +2914,23 @@ const Fl = {
|
|
|
2903
2914
|
column: H,
|
|
2904
2915
|
$index: Z
|
|
2905
2916
|
}, () => [
|
|
2906
|
-
B.label ? (i(), M(
|
|
2917
|
+
B.label ? (i(), M(L(ke), q({
|
|
2907
2918
|
key: 0,
|
|
2908
2919
|
title: B.label,
|
|
2909
2920
|
ref_for: !0
|
|
2910
2921
|
}, B.attr, {
|
|
2911
|
-
onClick: (
|
|
2922
|
+
onClick: (Fe) => B.func(w, H, Z, e.value)
|
|
2912
2923
|
}), {
|
|
2913
2924
|
default: y(() => [
|
|
2914
2925
|
_e(he(Me(B, Z)), 1)
|
|
2915
2926
|
]),
|
|
2916
2927
|
_: 2
|
|
2917
|
-
}, 1040, ["title", "onClick"])) : (i(), M(
|
|
2928
|
+
}, 1040, ["title", "onClick"])) : (i(), M(L(ke), q({
|
|
2918
2929
|
key: 1,
|
|
2919
2930
|
title: B.label,
|
|
2920
2931
|
ref_for: !0
|
|
2921
2932
|
}, B.attr, {
|
|
2922
|
-
onClick: (
|
|
2933
|
+
onClick: (Fe) => B.func(w, H, Z, e.value)
|
|
2923
2934
|
}), null, 16, ["title", "onClick"]))
|
|
2924
2935
|
], !0) : ce("", !0),
|
|
2925
2936
|
h(l.$slots, B.name + "-right", {
|
|
@@ -2943,10 +2954,10 @@ const Fl = {
|
|
|
2943
2954
|
];
|
|
2944
2955
|
}),
|
|
2945
2956
|
key: "1"
|
|
2946
|
-
} :
|
|
2957
|
+
} : z.type != "selection" && z.type != "index" ? {
|
|
2947
2958
|
name: "default",
|
|
2948
2959
|
fn: y(({ row: w, column: H, $index: Z }) => [
|
|
2949
|
-
$e(
|
|
2960
|
+
$e(z, w, H, Z) && Z != -1 ? h(l.$slots, `${oe}`, {
|
|
2950
2961
|
key: 0,
|
|
2951
2962
|
row: w,
|
|
2952
2963
|
column: H,
|
|
@@ -2954,24 +2965,24 @@ const Fl = {
|
|
|
2954
2965
|
}, () => {
|
|
2955
2966
|
var Pe;
|
|
2956
2967
|
return [
|
|
2957
|
-
(i(), M(
|
|
2968
|
+
(i(), M(ft, {
|
|
2958
2969
|
modelValue: w[oe],
|
|
2959
2970
|
"onUpdate:modelValue": (He) => w[oe] = He,
|
|
2960
|
-
item:
|
|
2971
|
+
item: z == null ? void 0 : z.table(w, H, Z),
|
|
2961
2972
|
ctrlKey: oe,
|
|
2962
2973
|
key: `${oe}-${Z} -${me.value}`,
|
|
2963
|
-
ctrlType: (Pe =
|
|
2974
|
+
ctrlType: (Pe = z.table(w, H, Z)) != null && Pe.type ? z.table(w, H, Z).type : z.type,
|
|
2964
2975
|
model: e.value,
|
|
2965
2976
|
class: "g-ctrl-container",
|
|
2966
2977
|
t: "t",
|
|
2967
2978
|
formInfo: w
|
|
2968
2979
|
}, fe({ _: 2 }, [
|
|
2969
|
-
|
|
2980
|
+
R(l.$slots, (He, Ue) => ({
|
|
2970
2981
|
name: Ue,
|
|
2971
2982
|
fn: y((Re) => [
|
|
2972
2983
|
h(l.$slots, Ue, {
|
|
2973
2984
|
data: Re,
|
|
2974
|
-
item:
|
|
2985
|
+
item: z,
|
|
2975
2986
|
model: e.value
|
|
2976
2987
|
}, void 0, !0)
|
|
2977
2988
|
])
|
|
@@ -2985,7 +2996,7 @@ const Fl = {
|
|
|
2985
2996
|
$index: Z
|
|
2986
2997
|
}, () => [
|
|
2987
2998
|
G("div", {
|
|
2988
|
-
innerHTML: se(
|
|
2999
|
+
innerHTML: se(z, H.formatter(w, H, w[oe], Z))
|
|
2989
3000
|
}, null, 8, Il)
|
|
2990
3001
|
], !0)
|
|
2991
3002
|
]),
|
|
@@ -2999,9 +3010,9 @@ const Fl = {
|
|
|
2999
3010
|
(kt = (Et = (wt = e.value) == null ? void 0 : wt.table) == null ? void 0 : Et.page) != null && kt.hidden ? ce("", !0) : h(l.$slots, "page", { key: 0 }, () => [
|
|
3000
3011
|
J(ve, q({
|
|
3001
3012
|
"page-size": e.value.table.page.pageSize,
|
|
3002
|
-
"onUpdate:pageSize": u[3] || (u[3] = (
|
|
3013
|
+
"onUpdate:pageSize": u[3] || (u[3] = (z) => e.value.table.page.pageSize = z),
|
|
3003
3014
|
"current-page": e.value.table.page.currentPage,
|
|
3004
|
-
"onUpdate:currentPage": u[4] || (u[4] = (
|
|
3015
|
+
"onUpdate:currentPage": u[4] || (u[4] = (z) => e.value.table.page.currentPage = z)
|
|
3005
3016
|
}, e.value.table.page), {
|
|
3006
3017
|
default: y(() => [
|
|
3007
3018
|
h(l.$slots, "table-page", {}, void 0, !0)
|
|
@@ -3014,16 +3025,16 @@ const Fl = {
|
|
|
3014
3025
|
e.value.dialog.mode == "dialog" && $.value ? (i(), x("div", Yl, [
|
|
3015
3026
|
J(xe, q({
|
|
3016
3027
|
ref_key: "dialogRef",
|
|
3017
|
-
ref:
|
|
3028
|
+
ref: F,
|
|
3018
3029
|
id: "dialogRef",
|
|
3019
3030
|
modelValue: $.value,
|
|
3020
|
-
"onUpdate:modelValue": u[8] || (u[8] = (
|
|
3031
|
+
"onUpdate:modelValue": u[8] || (u[8] = (z) => $.value = z),
|
|
3021
3032
|
fullscreen: e.value.dialog.fullScreen
|
|
3022
|
-
},
|
|
3023
|
-
width:
|
|
3033
|
+
}, L(Ce)(e.value.dialog, (z) => !["size", "max", "min"].includes(z)), {
|
|
3034
|
+
width: L(xt)(e.value.dialog.width) + 35
|
|
3024
3035
|
}), {
|
|
3025
3036
|
header: y(() => {
|
|
3026
|
-
var
|
|
3037
|
+
var z, oe, w, H, Z, Pe, He, Ue, Re, et;
|
|
3027
3038
|
return [
|
|
3028
3039
|
G("div", Ul, [
|
|
3029
3040
|
G("div", Rl, [
|
|
@@ -3031,7 +3042,7 @@ const Fl = {
|
|
|
3031
3042
|
G("div", null, he(e.value.dialog.title), 1)
|
|
3032
3043
|
], !0)
|
|
3033
3044
|
]),
|
|
3034
|
-
((oe = (
|
|
3045
|
+
((oe = (z = e.value) == null ? void 0 : z.dialog) == null ? void 0 : oe.fullScreen) === !1 ? (i(), x("div", {
|
|
3035
3046
|
key: 0,
|
|
3036
3047
|
style: Ae((Z = (H = (w = e.value) == null ? void 0 : w.dialog) == null ? void 0 : H.max) == null ? void 0 : Z.style),
|
|
3037
3048
|
onClick: u[5] || (u[5] = (B) => {
|
|
@@ -3041,9 +3052,9 @@ const Fl = {
|
|
|
3041
3052
|
}, [
|
|
3042
3053
|
J(qe, null, {
|
|
3043
3054
|
default: y(() => {
|
|
3044
|
-
var B,
|
|
3055
|
+
var B, Fe, We;
|
|
3045
3056
|
return [
|
|
3046
|
-
(i(), M(Be((We = (
|
|
3057
|
+
(i(), M(Be((We = (Fe = (B = e.value) == null ? void 0 : B.dialog) == null ? void 0 : Fe.max) == null ? void 0 : We.icon)))
|
|
3047
3058
|
];
|
|
3048
3059
|
}),
|
|
3049
3060
|
_: 1
|
|
@@ -3059,9 +3070,9 @@ const Fl = {
|
|
|
3059
3070
|
}, [
|
|
3060
3071
|
J(qe, null, {
|
|
3061
3072
|
default: y(() => {
|
|
3062
|
-
var B,
|
|
3073
|
+
var B, Fe, We;
|
|
3063
3074
|
return [
|
|
3064
|
-
(i(), M(Be((We = (
|
|
3075
|
+
(i(), M(Be((We = (Fe = (B = e.value) == null ? void 0 : B.dialog) == null ? void 0 : Fe.min) == null ? void 0 : We.icon)))
|
|
3065
3076
|
];
|
|
3066
3077
|
}),
|
|
3067
3078
|
_: 1
|
|
@@ -3075,11 +3086,11 @@ const Fl = {
|
|
|
3075
3086
|
h(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
3076
3087
|
J(vt, {
|
|
3077
3088
|
modelValue: e.value,
|
|
3078
|
-
"onUpdate:modelValue": u[7] || (u[7] = (
|
|
3089
|
+
"onUpdate:modelValue": u[7] || (u[7] = (z) => e.value = z),
|
|
3079
3090
|
onSubmit: s,
|
|
3080
3091
|
onReset: D
|
|
3081
3092
|
}, fe({ _: 2 }, [
|
|
3082
|
-
|
|
3093
|
+
R(l.$slots, (z, oe, w) => ({
|
|
3083
3094
|
name: oe,
|
|
3084
3095
|
fn: y((H) => [
|
|
3085
3096
|
h(l.$slots, oe, { model: H }, void 0, !0)
|
|
@@ -3095,10 +3106,10 @@ const Fl = {
|
|
|
3095
3106
|
e.value.dialog.mode == "drawer" && $.value ? (i(), x("div", Ll, [
|
|
3096
3107
|
J(ze, q({
|
|
3097
3108
|
ref_key: "drawerRef",
|
|
3098
|
-
ref:
|
|
3109
|
+
ref: T,
|
|
3099
3110
|
modelValue: $.value,
|
|
3100
|
-
"onUpdate:modelValue": u[10] || (u[10] = (
|
|
3101
|
-
},
|
|
3111
|
+
"onUpdate:modelValue": u[10] || (u[10] = (z) => $.value = z)
|
|
3112
|
+
}, L(Ce)(e.value.dialog, (z) => !["width"].includes(z))), {
|
|
3102
3113
|
header: y(() => [
|
|
3103
3114
|
G("div", Nl, [
|
|
3104
3115
|
G("div", zl, [
|
|
@@ -3112,11 +3123,11 @@ const Fl = {
|
|
|
3112
3123
|
h(l.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
3113
3124
|
J(vt, {
|
|
3114
3125
|
modelValue: e.value,
|
|
3115
|
-
"onUpdate:modelValue": u[9] || (u[9] = (
|
|
3126
|
+
"onUpdate:modelValue": u[9] || (u[9] = (z) => e.value = z),
|
|
3116
3127
|
onSubmit: s,
|
|
3117
3128
|
onReset: D
|
|
3118
3129
|
}, fe({ _: 2 }, [
|
|
3119
|
-
|
|
3130
|
+
R(l.$slots, (z, oe, w) => ({
|
|
3120
3131
|
name: oe,
|
|
3121
3132
|
fn: y((H) => [
|
|
3122
3133
|
h(l.$slots, oe, { model: H }, void 0, !0)
|
|
@@ -3142,20 +3153,20 @@ const Fl = {
|
|
|
3142
3153
|
},
|
|
3143
3154
|
emits: /* @__PURE__ */ Le(["load"], ["update:modelValue"]),
|
|
3144
3155
|
setup(f, { emit: c }) {
|
|
3145
|
-
var I,
|
|
3156
|
+
var I, U, re, ae;
|
|
3146
3157
|
const r = c, t = Ne(f, "modelValue"), e = bt(), d = te(
|
|
3147
|
-
typeof ((I = e == null ? void 0 : e.tree) == null ? void 0 : I.width) == "number" ? `${e.tree.width}px` : ((
|
|
3148
|
-
), E = te(((re = e == null ? void 0 : e.tree) == null ? void 0 : re.search) === void 0 ? !0 : (ae = e == null ? void 0 : e.tree) == null ? void 0 : ae.search),
|
|
3158
|
+
typeof ((I = e == null ? void 0 : e.tree) == null ? void 0 : I.width) == "number" ? `${e.tree.width}px` : ((U = e == null ? void 0 : e.tree) == null ? void 0 : U.width) || "180px"
|
|
3159
|
+
), E = te(((re = e == null ? void 0 : e.tree) == null ? void 0 : re.search) === void 0 ? !0 : (ae = e == null ? void 0 : e.tree) == null ? void 0 : ae.search), F = te({}), T = te(""), k = te(null), $ = (Q, me) => {
|
|
3149
3160
|
var ge, ie;
|
|
3150
3161
|
if (!Q) return !0;
|
|
3151
3162
|
const ye = ((ie = (ge = e.tree) == null ? void 0 : ge.props) == null ? void 0 : ie.label) || "label";
|
|
3152
3163
|
return me[ye].includes(Q);
|
|
3153
|
-
},
|
|
3154
|
-
r("load",
|
|
3164
|
+
}, N = (Q, me) => {
|
|
3165
|
+
r("load", F.value, Q, me);
|
|
3155
3166
|
}, ee = (Q) => {
|
|
3156
|
-
|
|
3167
|
+
F.value = Q, t.value.table.load();
|
|
3157
3168
|
};
|
|
3158
|
-
return Ht(
|
|
3169
|
+
return Ht(T, (Q) => {
|
|
3159
3170
|
k.value.filter(Q);
|
|
3160
3171
|
}), (Q, me) => {
|
|
3161
3172
|
const ye = Y("el-input"), ge = Y("el-tree"), ie = Y("g-table");
|
|
@@ -3166,8 +3177,8 @@ const Fl = {
|
|
|
3166
3177
|
}, [
|
|
3167
3178
|
E.value ? (i(), M(ye, {
|
|
3168
3179
|
key: 0,
|
|
3169
|
-
modelValue:
|
|
3170
|
-
"onUpdate:modelValue": me[0] || (me[0] = (de) =>
|
|
3180
|
+
modelValue: T.value,
|
|
3181
|
+
"onUpdate:modelValue": me[0] || (me[0] = (de) => T.value = de),
|
|
3171
3182
|
style: { width: "100%", padding: "0 10px", "box-sizing": "border-box" },
|
|
3172
3183
|
placeholder: "输入节点查询",
|
|
3173
3184
|
clearable: ""
|
|
@@ -3191,7 +3202,7 @@ const Fl = {
|
|
|
3191
3202
|
]),
|
|
3192
3203
|
_: 2
|
|
3193
3204
|
}, [
|
|
3194
|
-
|
|
3205
|
+
R(Q.$slots, (de, ne, le) => ({
|
|
3195
3206
|
name: ne,
|
|
3196
3207
|
fn: y((be) => [
|
|
3197
3208
|
h(Q.$slots, ne, { data: be }, void 0, !0)
|
|
@@ -3204,8 +3215,8 @@ const Fl = {
|
|
|
3204
3215
|
J(ie, q({
|
|
3205
3216
|
modelValue: t.value,
|
|
3206
3217
|
"onUpdate:modelValue": me[1] || (me[1] = (de) => t.value = de)
|
|
3207
|
-
}, Q.$attrs, { onLoad:
|
|
3208
|
-
|
|
3218
|
+
}, Q.$attrs, { onLoad: N }), fe({ _: 2 }, [
|
|
3219
|
+
R(Q.$slots, (de, ne, le) => ({
|
|
3209
3220
|
name: ne,
|
|
3210
3221
|
fn: y((be) => [
|
|
3211
3222
|
h(Q.$slots, ne, { data: be }, void 0, !0)
|
|
@@ -3223,7 +3234,7 @@ const Fl = {
|
|
|
3223
3234
|
key: 1,
|
|
3224
3235
|
class: "op-items",
|
|
3225
3236
|
style: { width: "100%", height: "100%" }
|
|
3226
|
-
}, ea = ["title"],
|
|
3237
|
+
}, ea = ["title"], Dt = "100px", ta = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
3227
3238
|
__name: "g-select-option",
|
|
3228
3239
|
props: {
|
|
3229
3240
|
columns: {
|
|
@@ -3246,8 +3257,8 @@ const Fl = {
|
|
|
3246
3257
|
setup(f) {
|
|
3247
3258
|
const c = f;
|
|
3248
3259
|
return (r, t) => c.title ? (i(), x("div", Jl, [
|
|
3249
|
-
(i(!0), x(W, null,
|
|
3250
|
-
style: Ae({ width: (e == null ? void 0 : e.width) ||
|
|
3260
|
+
(i(!0), x(W, null, R(c.columns, (e) => (i(), x("span", {
|
|
3261
|
+
style: Ae({ width: (e == null ? void 0 : e.width) || Dt, ...e == null ? void 0 : e.titleStyle, textAlign: (e == null ? void 0 : e.align) || "center" }),
|
|
3251
3262
|
key: e.key
|
|
3252
3263
|
}, [
|
|
3253
3264
|
h(r.$slots, `${f.t}-title-${e.key}`, { col: e }, () => [
|
|
@@ -3255,8 +3266,8 @@ const Fl = {
|
|
|
3255
3266
|
], !0)
|
|
3256
3267
|
], 4))), 128))
|
|
3257
3268
|
])) : (i(), x("div", Kl, [
|
|
3258
|
-
(i(!0), x(W, null,
|
|
3259
|
-
style: Ae({ width: (e == null ? void 0 : e.width) ||
|
|
3269
|
+
(i(!0), x(W, null, R(c.columns, (e) => (i(), x("span", {
|
|
3270
|
+
style: Ae({ width: (e == null ? void 0 : e.width) || Dt, textAlign: (e == null ? void 0 : e.align) || "center", ...e == null ? void 0 : e.style }),
|
|
3260
3271
|
key: e.key,
|
|
3261
3272
|
title: f.data[e.key]
|
|
3262
3273
|
}, [
|
|
@@ -3266,15 +3277,15 @@ const Fl = {
|
|
|
3266
3277
|
], 12, ea))), 128))
|
|
3267
3278
|
]));
|
|
3268
3279
|
}
|
|
3269
|
-
}), la = /* @__PURE__ */ Ge(ta, [["__scopeId", "data-v-c0ac6b77"]]), aa = Object.freeze({}),
|
|
3280
|
+
}), la = /* @__PURE__ */ Ge(ta, [["__scopeId", "data-v-c0ac6b77"]]), aa = Object.freeze({}), qt = [Hl, vt, Zl, la];
|
|
3270
3281
|
let pt = {};
|
|
3271
3282
|
const pa = {
|
|
3272
3283
|
install: (f, c = {}) => {
|
|
3273
|
-
pt = Object.freeze({ ...aa, ...c }),
|
|
3284
|
+
pt = Object.freeze({ ...aa, ...c }), qt.forEach((r) => {
|
|
3274
3285
|
f.component(r.name, r);
|
|
3275
3286
|
}), f.provide("options", pt), f.config.globalProperties.$openModal = ht;
|
|
3276
3287
|
}
|
|
3277
|
-
}, oa = (f) => ({ dialog:
|
|
3288
|
+
}, oa = (f) => ({ dialog: Bt, drawer: It })[f] || null, ht = (f = {}, c = "dialog") => {
|
|
3278
3289
|
if (typeof document > "u") return () => {
|
|
3279
3290
|
};
|
|
3280
3291
|
const r = document.createElement("div");
|
|
@@ -3290,7 +3301,7 @@ const pa = {
|
|
|
3290
3301
|
E.unmount(), r.remove();
|
|
3291
3302
|
}, 300);
|
|
3292
3303
|
}, () => {
|
|
3293
|
-
var
|
|
3304
|
+
var F, T, k;
|
|
3294
3305
|
return Oe(e, {
|
|
3295
3306
|
modelValue: d.value,
|
|
3296
3307
|
"onUpdate:modelValue": ($) => d.value = $,
|
|
@@ -3301,21 +3312,21 @@ const pa = {
|
|
|
3301
3312
|
"close-on-click-modal": !1,
|
|
3302
3313
|
...f
|
|
3303
3314
|
}, {
|
|
3304
|
-
default: (
|
|
3305
|
-
header: (
|
|
3315
|
+
default: (F = f.slots) == null ? void 0 : F.default,
|
|
3316
|
+
header: (T = f.slots) == null ? void 0 : T.header,
|
|
3306
3317
|
footer: (k = f.slots) == null ? void 0 : k.footer
|
|
3307
3318
|
});
|
|
3308
3319
|
};
|
|
3309
3320
|
},
|
|
3310
3321
|
mounted: () => {
|
|
3311
|
-
|
|
3322
|
+
dt();
|
|
3312
3323
|
}
|
|
3313
3324
|
});
|
|
3314
|
-
return
|
|
3315
|
-
E.component(
|
|
3316
|
-
}), E.provide("options", pt), E.use(
|
|
3325
|
+
return qt.forEach((F) => {
|
|
3326
|
+
E.component(F.name, F);
|
|
3327
|
+
}), E.provide("options", pt), E.use(At, { locale: el }), document.body.appendChild(r), E.mount(r), t;
|
|
3317
3328
|
};
|
|
3318
|
-
function
|
|
3329
|
+
function xt(f, c = window.innerWidth) {
|
|
3319
3330
|
if (typeof f == "number")
|
|
3320
3331
|
return f;
|
|
3321
3332
|
if (f.endsWith("px"))
|
|
@@ -3331,17 +3342,17 @@ function At(f, c = window.innerWidth) {
|
|
|
3331
3342
|
return c * parseFloat(f) / 100;
|
|
3332
3343
|
}
|
|
3333
3344
|
if (f.startsWith("calc(") && f.endsWith(")")) {
|
|
3334
|
-
let d = function(
|
|
3335
|
-
if (/[0-9+\-*/().\s]+$/.test(
|
|
3336
|
-
return new Function("return " +
|
|
3345
|
+
let d = function(F) {
|
|
3346
|
+
if (/[0-9+\-*/().\s]+$/.test(F))
|
|
3347
|
+
return new Function("return " + F)();
|
|
3337
3348
|
throw new Error("Invalid calc expression");
|
|
3338
3349
|
};
|
|
3339
3350
|
const e = f.slice(5, -1).trim();
|
|
3340
|
-
return d(e.replace(/([0-9.]+)([a-z%]+)/g, (
|
|
3351
|
+
return d(e.replace(/([0-9.]+)([a-z%]+)/g, (F, T, k) => xt(T + k, c)));
|
|
3341
3352
|
}
|
|
3342
3353
|
throw new Error("Unsupported unit in value: " + f);
|
|
3343
3354
|
}
|
|
3344
|
-
const
|
|
3355
|
+
const Se = (...f) => {
|
|
3345
3356
|
const c = {}, r = (t, e) => (Object.keys(e).forEach((d) => {
|
|
3346
3357
|
t[d] = typeof e[d] == "object" && !Array.isArray(e[d]) ? r(t[d] || {}, e[d]) : e[d];
|
|
3347
3358
|
}), t);
|
|
@@ -3377,10 +3388,10 @@ function yt(f) {
|
|
|
3377
3388
|
d += (r[Math.floor(f * 10 * Math.pow(10, E)) % 10] + c[E]).replace(/零./, "");
|
|
3378
3389
|
d = d || "整", f = Math.floor(f);
|
|
3379
3390
|
for (let E = 0; E < t[0].length && f > 0; E++) {
|
|
3380
|
-
let
|
|
3381
|
-
for (let
|
|
3382
|
-
|
|
3383
|
-
d =
|
|
3391
|
+
let F = "";
|
|
3392
|
+
for (let T = 0; T < t[1].length && f > 0; T++)
|
|
3393
|
+
F = r[f % 10] + t[1][T] + F, f = Math.floor(f / 10);
|
|
3394
|
+
d = F.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][E] + d;
|
|
3384
3395
|
}
|
|
3385
3396
|
return e + d.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
3386
3397
|
}
|
|
@@ -3418,7 +3429,7 @@ const pe = {
|
|
|
3418
3429
|
PASSWORD: "password",
|
|
3419
3430
|
TEXTAREA: "textarea",
|
|
3420
3431
|
TEL: "tel"
|
|
3421
|
-
},
|
|
3432
|
+
}, dt = () => {
|
|
3422
3433
|
Qe(() => {
|
|
3423
3434
|
const f = document.querySelector(".el-dialog");
|
|
3424
3435
|
if (!f) {
|
|
@@ -3452,26 +3463,26 @@ const pe = {
|
|
|
3452
3463
|
});
|
|
3453
3464
|
}, ia = (f, c) => {
|
|
3454
3465
|
let r = !1, t, e, d, E;
|
|
3455
|
-
const
|
|
3456
|
-
$.preventDefault(), r = !0, t = $.clientX, e = $.clientY, d = parseInt(document.defaultView.getComputedStyle(f).width), E = parseInt(document.defaultView.getComputedStyle(f).height), document.addEventListener("mousemove",
|
|
3457
|
-
},
|
|
3466
|
+
const F = ($) => {
|
|
3467
|
+
$.preventDefault(), r = !0, t = $.clientX, e = $.clientY, d = parseInt(document.defaultView.getComputedStyle(f).width), E = parseInt(document.defaultView.getComputedStyle(f).height), document.addEventListener("mousemove", T), document.addEventListener("mouseup", k);
|
|
3468
|
+
}, T = ($) => {
|
|
3458
3469
|
if (!r) return;
|
|
3459
|
-
const
|
|
3460
|
-
f.style.width = `${
|
|
3470
|
+
const N = Math.max(300, d + $.clientX - t), ee = Math.max(200, E + $.clientY - e);
|
|
3471
|
+
f.style.width = `${N}px`, f.style.height = `${ee}px`;
|
|
3461
3472
|
}, k = () => {
|
|
3462
|
-
r = !1, document.removeEventListener("mousemove",
|
|
3473
|
+
r = !1, document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", k);
|
|
3463
3474
|
};
|
|
3464
|
-
c.addEventListener("mousedown",
|
|
3475
|
+
c.addEventListener("mousedown", F);
|
|
3465
3476
|
};
|
|
3466
3477
|
export {
|
|
3467
3478
|
pe as CT,
|
|
3468
|
-
|
|
3469
|
-
|
|
3479
|
+
dt as bindResize,
|
|
3480
|
+
xt as convertToPx,
|
|
3470
3481
|
pa as default,
|
|
3471
3482
|
Ce as filterObject,
|
|
3472
3483
|
ra as findTreeLabelByValue,
|
|
3473
3484
|
ua as formatAmount,
|
|
3474
|
-
|
|
3485
|
+
Se as mergeObjects,
|
|
3475
3486
|
yt as moneyToChinese,
|
|
3476
3487
|
ht as openModal
|
|
3477
3488
|
};
|