vue-2024-ui 0.2.70 → 0.2.72
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 +243 -239
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Gt, { dayjs as yl, ElForm as Tt, ElButtonGroup as Vt, ElButton as je, ElPopover as zt, ElIcon as Bt, ElMessage as it, ElMessageBox as Xt, ElDrawer as gl, ElDialog as bl } from "element-plus";
|
|
2
|
-
import { ref as ne, useModel as rt, nextTick as ht, onMounted as kt, computed as Pe, resolveComponent as F, openBlock as v, createElementBlock as U, Fragment as re, createElementVNode as K, createBlock as E, createCommentVNode as
|
|
2
|
+
import { ref as ne, useModel as rt, nextTick as ht, onMounted as kt, computed as Pe, resolveComponent as F, openBlock as v, createElementBlock as U, Fragment as re, createElementVNode as K, createBlock as E, createCommentVNode as $e, unref as Y, mergeProps as A, withCtx as k, renderSlot as C, renderList as W, createTextVNode as Re, toDisplayString as Me, createSlots as ge, createVNode as oe, normalizeStyle as Ye, normalizeProps as Dt, resolveDynamicComponent as Je, guardReactiveProps as Qt, mergeModels as dt, useSlots as Zt, inject as Ot, withModifiers as mt, Transition as $l, withDirectives as wl, vShow as kl, h as ke, useAttrs as qt, onUnmounted as _l, onBeforeUnmount as Cl, normalizeClass as Jt, watchEffect as xl, onBeforeMount as Ml, watch as Kt, createApp as el } from "vue";
|
|
3
3
|
import { Plus as Sl, ZoomIn as Tl, Delete as tl, Search as Vl, Refresh as ll, More as El, CircleClose as Dl, CircleCheckFilled as Il, CircleCheck as Lt, Minus as Ol, Switch as al, FullScreen as ql, InfoFilled as rl, Download as nl, DocumentCopy as Al, Setting as zl, CirclePlus as Ul, Edit as Ll, View as Rl } from "@element-plus/icons-vue";
|
|
4
4
|
import ol from "sortablejs";
|
|
5
5
|
import { Dexie as Yl } from "dexie";
|
|
@@ -198,8 +198,8 @@ var il = { exports: {} };
|
|
|
198
198
|
return ($ <= 0 ? "+" : "-") + B(p, 2, "0") + ":" + B(S, 2, "0");
|
|
199
199
|
}, m: function g($, w) {
|
|
200
200
|
if ($.date() < w.date()) return -g(w, $);
|
|
201
|
-
var p = 12 * (w.year() - $.year()) + (w.month() - $.month()), S = $.clone().add(p, o),
|
|
202
|
-
return +(-(p + (w - S) / (
|
|
201
|
+
var p = 12 * (w.year() - $.year()) + (w.month() - $.month()), S = $.clone().add(p, o), I = w - S < 0, O = $.clone().add(p + (I ? -1 : 1), o);
|
|
202
|
+
return +(-(p + (w - S) / (I ? S - O : O - S)) || 0);
|
|
203
203
|
}, a: function(g) {
|
|
204
204
|
return g < 0 ? Math.ceil(g) || 0 : Math.floor(g);
|
|
205
205
|
}, p: function(g) {
|
|
@@ -214,8 +214,8 @@ var il = { exports: {} };
|
|
|
214
214
|
var S;
|
|
215
215
|
if (!$) return le;
|
|
216
216
|
if (typeof $ == "string") {
|
|
217
|
-
var
|
|
218
|
-
se[
|
|
217
|
+
var I = $.toLowerCase();
|
|
218
|
+
se[I] && (S = I), w && (se[I] = w, S = I);
|
|
219
219
|
var O = $.split("-");
|
|
220
220
|
if (!S && O.length > 1) return g(O[0]);
|
|
221
221
|
} else {
|
|
@@ -238,7 +238,7 @@ var il = { exports: {} };
|
|
|
238
238
|
var $ = g.prototype;
|
|
239
239
|
return $.parse = function(w) {
|
|
240
240
|
this.$d = function(p) {
|
|
241
|
-
var S = p.date,
|
|
241
|
+
var S = p.date, I = p.utc;
|
|
242
242
|
if (S === null) return /* @__PURE__ */ new Date(NaN);
|
|
243
243
|
if (N.u(S)) return /* @__PURE__ */ new Date();
|
|
244
244
|
if (S instanceof Date) return new Date(S);
|
|
@@ -246,7 +246,7 @@ var il = { exports: {} };
|
|
|
246
246
|
var O = S.match(x);
|
|
247
247
|
if (O) {
|
|
248
248
|
var z = O[2] - 1 || 0, ae = (O[7] || "0").substring(0, 3);
|
|
249
|
-
return
|
|
249
|
+
return I ? new Date(Date.UTC(O[1], z, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, ae)) : new Date(O[1], z, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, ae);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
return new Date(S);
|
|
@@ -272,20 +272,20 @@ var il = { exports: {} };
|
|
|
272
272
|
}, $.valueOf = function() {
|
|
273
273
|
return this.$d.getTime();
|
|
274
274
|
}, $.startOf = function(w, p) {
|
|
275
|
-
var S = this,
|
|
275
|
+
var S = this, I = !!N.u(p) || p, O = N.p(w), z = function(qe, xe) {
|
|
276
276
|
var Ue = N.w(S.$u ? Date.UTC(S.$y, xe, qe) : new Date(S.$y, xe, qe), S);
|
|
277
|
-
return
|
|
277
|
+
return I ? Ue : Ue.endOf(f);
|
|
278
278
|
}, ae = function(qe, xe) {
|
|
279
|
-
return N.w(S.toDate()[qe].apply(S.toDate("s"), (
|
|
280
|
-
}, de = this.$W,
|
|
279
|
+
return N.w(S.toDate()[qe].apply(S.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(xe)), S);
|
|
280
|
+
}, de = this.$W, ye = this.$M, G = this.$D, X = "set" + (this.$u ? "UTC" : "");
|
|
281
281
|
switch (O) {
|
|
282
282
|
case b:
|
|
283
|
-
return
|
|
283
|
+
return I ? z(1, 0) : z(31, 11);
|
|
284
284
|
case o:
|
|
285
|
-
return
|
|
285
|
+
return I ? z(1, ye) : z(0, ye + 1);
|
|
286
286
|
case i:
|
|
287
287
|
var De = this.$locale().weekStart || 0, _e = (de < De ? de + 7 : de) - De;
|
|
288
|
-
return z(
|
|
288
|
+
return z(I ? G - _e : G + (6 - _e), ye);
|
|
289
289
|
case f:
|
|
290
290
|
case P:
|
|
291
291
|
return ae(X + "Hours", 0);
|
|
@@ -301,8 +301,8 @@ var il = { exports: {} };
|
|
|
301
301
|
}, $.endOf = function(w) {
|
|
302
302
|
return this.startOf(w, !1);
|
|
303
303
|
}, $.$set = function(w, p) {
|
|
304
|
-
var S,
|
|
305
|
-
if (
|
|
304
|
+
var S, I = N.p(w), O = "set" + (this.$u ? "UTC" : ""), z = (S = {}, S[f] = O + "Date", S[P] = O + "Date", S[o] = O + "Month", S[b] = O + "FullYear", S[M] = O + "Hours", S[c] = O + "Minutes", S[h] = O + "Seconds", S[e] = O + "Milliseconds", S)[I], ae = I === f ? this.$D + (p - this.$W) : p;
|
|
305
|
+
if (I === o || I === b) {
|
|
306
306
|
var de = this.clone().set(P, 1);
|
|
307
307
|
de.$d[z](ae), de.init(), this.$d = de.set(P, Math.min(this.$D, de.daysInMonth())).$d;
|
|
308
308
|
} else z && this.$d[z](ae);
|
|
@@ -312,11 +312,11 @@ var il = { exports: {} };
|
|
|
312
312
|
}, $.get = function(w) {
|
|
313
313
|
return this[N.p(w)]();
|
|
314
314
|
}, $.add = function(w, p) {
|
|
315
|
-
var S,
|
|
315
|
+
var S, I = this;
|
|
316
316
|
w = Number(w);
|
|
317
|
-
var O = N.p(p), z = function(
|
|
318
|
-
var G = me(
|
|
319
|
-
return N.w(G.date(G.date() + Math.round(
|
|
317
|
+
var O = N.p(p), z = function(ye) {
|
|
318
|
+
var G = me(I);
|
|
319
|
+
return N.w(G.date(G.date() + Math.round(ye * w)), I);
|
|
320
320
|
};
|
|
321
321
|
if (O === o) return this.set(o, this.$M + w);
|
|
322
322
|
if (O === b) return this.set(b, this.$y + w);
|
|
@@ -329,15 +329,15 @@ var il = { exports: {} };
|
|
|
329
329
|
}, $.format = function(w) {
|
|
330
330
|
var p = this, S = this.$locale();
|
|
331
331
|
if (!this.isValid()) return S.invalidDate || L;
|
|
332
|
-
var
|
|
333
|
-
return xe && (xe[Ue] || xe(p,
|
|
332
|
+
var I = w || "YYYY-MM-DDTHH:mm:ssZ", O = N.z(this), z = this.$H, ae = this.$m, de = this.$M, ye = S.weekdays, G = S.months, X = S.meridiem, De = function(xe, Ue, q, T) {
|
|
333
|
+
return xe && (xe[Ue] || xe(p, I)) || q[Ue].slice(0, T);
|
|
334
334
|
}, _e = function(xe) {
|
|
335
335
|
return N.s(z % 12 || 12, xe, "0");
|
|
336
336
|
}, qe = X || function(xe, Ue, q) {
|
|
337
337
|
var T = xe < 12 ? "AM" : "PM";
|
|
338
338
|
return q ? T.toLowerCase() : T;
|
|
339
339
|
};
|
|
340
|
-
return
|
|
340
|
+
return I.replace(V, function(xe, Ue) {
|
|
341
341
|
return Ue || function(q) {
|
|
342
342
|
switch (q) {
|
|
343
343
|
case "YY":
|
|
@@ -359,11 +359,11 @@ var il = { exports: {} };
|
|
|
359
359
|
case "d":
|
|
360
360
|
return String(p.$W);
|
|
361
361
|
case "dd":
|
|
362
|
-
return De(S.weekdaysMin, p.$W,
|
|
362
|
+
return De(S.weekdaysMin, p.$W, ye, 2);
|
|
363
363
|
case "ddd":
|
|
364
|
-
return De(S.weekdaysShort, p.$W,
|
|
364
|
+
return De(S.weekdaysShort, p.$W, ye, 3);
|
|
365
365
|
case "dddd":
|
|
366
|
-
return
|
|
366
|
+
return ye[p.$W];
|
|
367
367
|
case "H":
|
|
368
368
|
return String(z);
|
|
369
369
|
case "HH":
|
|
@@ -395,46 +395,46 @@ var il = { exports: {} };
|
|
|
395
395
|
}, $.utcOffset = function() {
|
|
396
396
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
397
397
|
}, $.diff = function(w, p, S) {
|
|
398
|
-
var
|
|
398
|
+
var I, O = this, z = N.p(p), ae = me(w), de = (ae.utcOffset() - this.utcOffset()) * l, ye = this - ae, G = function() {
|
|
399
399
|
return N.m(O, ae);
|
|
400
400
|
};
|
|
401
401
|
switch (z) {
|
|
402
402
|
case b:
|
|
403
|
-
|
|
403
|
+
I = G() / 12;
|
|
404
404
|
break;
|
|
405
405
|
case o:
|
|
406
|
-
|
|
406
|
+
I = G();
|
|
407
407
|
break;
|
|
408
408
|
case d:
|
|
409
|
-
|
|
409
|
+
I = G() / 3;
|
|
410
410
|
break;
|
|
411
411
|
case i:
|
|
412
|
-
|
|
412
|
+
I = (ye - de) / 6048e5;
|
|
413
413
|
break;
|
|
414
414
|
case f:
|
|
415
|
-
|
|
415
|
+
I = (ye - de) / 864e5;
|
|
416
416
|
break;
|
|
417
417
|
case M:
|
|
418
|
-
|
|
418
|
+
I = ye / n;
|
|
419
419
|
break;
|
|
420
420
|
case c:
|
|
421
|
-
|
|
421
|
+
I = ye / l;
|
|
422
422
|
break;
|
|
423
423
|
case h:
|
|
424
|
-
|
|
424
|
+
I = ye / t;
|
|
425
425
|
break;
|
|
426
426
|
default:
|
|
427
|
-
|
|
427
|
+
I = ye;
|
|
428
428
|
}
|
|
429
|
-
return S ?
|
|
429
|
+
return S ? I : N.a(I);
|
|
430
430
|
}, $.daysInMonth = function() {
|
|
431
431
|
return this.endOf(o).$D;
|
|
432
432
|
}, $.$locale = function() {
|
|
433
433
|
return se[this.$L];
|
|
434
434
|
}, $.locale = function(w, p) {
|
|
435
435
|
if (!w) return this.$L;
|
|
436
|
-
var S = this.clone(),
|
|
437
|
-
return
|
|
436
|
+
var S = this.clone(), I = Ee(w, p, !0);
|
|
437
|
+
return I && (S.$L = I), S;
|
|
438
438
|
}, $.clone = function() {
|
|
439
439
|
return N.w(this.$d, this);
|
|
440
440
|
}, $.toDate = function() {
|
|
@@ -475,9 +475,9 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:modelValue"],
|
|
477
477
|
setup(r) {
|
|
478
|
-
var $, w, p, S,
|
|
478
|
+
var $, w, p, S, I, O, z, ae, de, ye, G, X, De, _e, qe, xe, Ue;
|
|
479
479
|
const u = r, t = ne(u.item || {}), l = rt(r, "modelValue"), n = ne(u.ctrlKey), e = ne(u.ctrlType), h = ne(u.model), c = ne([]), M = ne([]), f = ne(!1), i = ne(!1), o = ne(0), d = ne((w = ($ = h == null ? void 0 : h.value) == null ? void 0 : $.form) != null && w["default-placeholder"] ? (S = (p = h == null ? void 0 : h.value) == null ? void 0 : p[n == null ? void 0 : n.value]) == null ? void 0 : S.label : "");
|
|
480
|
-
!((
|
|
480
|
+
!((I = e.value) != null && I.startsWith("text")) && !((O = e.value) != null && O.startsWith("link")) && !((z = e.value) != null && z.startsWith("tag")) && !((ae = e.value) != null && ae.startsWith("div")) && !((de = e.value) != null && de.startsWith("span")) && !((ye = e.value) != null && ye.startsWith("avatar")) && ((G = t.value) != null && G.style || (t.value.style = { width: ((De = (X = t.value) == null ? void 0 : X.style) == null ? void 0 : De.width) || "100%" }));
|
|
481
481
|
const b = ne({ display: "flex", flex: 1 }), P = u.t === "t" ? "center" : "flex-start", L = ((_e = t.value) == null ? void 0 : _e.style) || {};
|
|
482
482
|
b.value = { ...b.value, justifyContent: P, ...L };
|
|
483
483
|
const x = () => {
|
|
@@ -637,7 +637,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
637
637
|
});
|
|
638
638
|
return (q, T) => {
|
|
639
639
|
var nt, ee, ue, fe, ct, ft, ot, ut, yt, Q, st, gt;
|
|
640
|
-
const Z = F("el-image-viewer"), Ie = F("el-radio"), Ae = F("el-radio-group"), Fe = F("el-radio-button"), tt = F("el-checkbox"), Be = F("el-checkbox-group"), Xe = F("el-checkbox-button"), Qe = F("g-select-option"), Ze = F("el-option"), _t = F("el-select"), Ct = F("el-tree-select"), a = F("el-time-picker"), s = F("el-time-select"), m = F("el-date-picker"), _ = F("el-color-picker"),
|
|
640
|
+
const Z = F("el-image-viewer"), Ie = F("el-radio"), Ae = F("el-radio-group"), Fe = F("el-radio-button"), tt = F("el-checkbox"), Be = F("el-checkbox-group"), Xe = F("el-checkbox-button"), Qe = F("g-select-option"), Ze = F("el-option"), _t = F("el-select"), Ct = F("el-tree-select"), a = F("el-time-picker"), s = F("el-time-select"), m = F("el-date-picker"), _ = F("el-color-picker"), D = F("el-rate"), H = F("el-slider"), j = F("el-switch"), he = F("el-transfer"), we = F("el-cascader"), Ve = F("el-icon"), ze = F("el-image"), He = F("el-tooltip"), Ke = F("el-upload"), pt = F("el-autocomplete"), xt = F("el-input-number"), Mt = F("el-input-tag"), J = F("el-input"), ve = F("el-link"), te = F("el-text"), Ne = F("el-avatar"), et = F("el-tag");
|
|
641
641
|
return v(), U(re, null, [
|
|
642
642
|
K("div", null, [
|
|
643
643
|
f.value ? (v(), E(Z, {
|
|
@@ -646,7 +646,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
646
646
|
"initial-index": o.value,
|
|
647
647
|
"url-list": g.value,
|
|
648
648
|
onClose: T[0] || (T[0] = (y) => f.value = !1)
|
|
649
|
-
}, null, 8, ["initial-index", "url-list"])) :
|
|
649
|
+
}, null, 8, ["initial-index", "url-list"])) : $e("", !0)
|
|
650
650
|
]),
|
|
651
651
|
K("div", jl, [
|
|
652
652
|
e.value == Y(Se).RADIO ? (v(), E(Ae, A({
|
|
@@ -741,7 +741,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
741
741
|
u.t == "q" && h.value.table.load();
|
|
742
742
|
}),
|
|
743
743
|
disabled: h.value[n.value].disabled
|
|
744
|
-
}, le.value),
|
|
744
|
+
}, le.value), ge({
|
|
745
745
|
default: k(() => {
|
|
746
746
|
var y;
|
|
747
747
|
return [
|
|
@@ -770,7 +770,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
770
770
|
columns: (lt = t.value) == null ? void 0 : lt.columns,
|
|
771
771
|
data: ce,
|
|
772
772
|
t: u.t
|
|
773
|
-
},
|
|
773
|
+
}, ge({ _: 2 }, [
|
|
774
774
|
W(q.$slots, (bt, At) => ({
|
|
775
775
|
name: At,
|
|
776
776
|
fn: k((St) => [
|
|
@@ -783,7 +783,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
783
783
|
}))
|
|
784
784
|
]), 1032, ["columns", "data", "t"])
|
|
785
785
|
];
|
|
786
|
-
}, !0) :
|
|
786
|
+
}, !0) : $e("", !0)
|
|
787
787
|
];
|
|
788
788
|
}),
|
|
789
789
|
_: 2
|
|
@@ -809,7 +809,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
809
809
|
columns: (bt = t.value) == null ? void 0 : bt.columns,
|
|
810
810
|
data: pe,
|
|
811
811
|
t: u.t
|
|
812
|
-
},
|
|
812
|
+
}, ge({ _: 2 }, [
|
|
813
813
|
W(q.$slots, (At, St) => ({
|
|
814
814
|
name: St,
|
|
815
815
|
fn: k((hl) => [
|
|
@@ -822,13 +822,13 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
822
822
|
}))
|
|
823
823
|
]), 1032, ["columns", "data", "t"])
|
|
824
824
|
];
|
|
825
|
-
}, !0) :
|
|
825
|
+
}, !0) : $e("", !0)
|
|
826
826
|
];
|
|
827
827
|
}),
|
|
828
828
|
_: 2
|
|
829
|
-
}, 1040, ["onClick"]))), 128)) :
|
|
829
|
+
}, 1040, ["onClick"]))), 128)) : $e("", !0)
|
|
830
830
|
], 64))), 128))
|
|
831
|
-
], !0) :
|
|
831
|
+
], !0) : $e("", !0)
|
|
832
832
|
];
|
|
833
833
|
}),
|
|
834
834
|
_: 2
|
|
@@ -842,7 +842,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
842
842
|
columns: (y = t.value) == null ? void 0 : y.columns,
|
|
843
843
|
title: !0,
|
|
844
844
|
t: u.t
|
|
845
|
-
},
|
|
845
|
+
}, ge({ _: 2 }, [
|
|
846
846
|
W(q.$slots, (ce, pe) => ({
|
|
847
847
|
name: pe,
|
|
848
848
|
fn: k((lt) => [
|
|
@@ -866,7 +866,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
866
866
|
"onUpdate:modelValue": T[8] || (T[8] = (y) => l.value = y),
|
|
867
867
|
placeholder: d.value,
|
|
868
868
|
disabled: h.value[n.value].disabled
|
|
869
|
-
}, t.value, { data: c.value }),
|
|
869
|
+
}, t.value, { data: c.value }), ge({ _: 2 }, [
|
|
870
870
|
W(x(), (y) => ({
|
|
871
871
|
name: y,
|
|
872
872
|
fn: k((ce) => [
|
|
@@ -896,7 +896,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
896
896
|
placeholder: d.value,
|
|
897
897
|
"value-format": ie(e.value),
|
|
898
898
|
disabled: h.value[n.value].disabled
|
|
899
|
-
}, t.value),
|
|
899
|
+
}, t.value), ge({ _: 2 }, [
|
|
900
900
|
W(x(), (y) => ({
|
|
901
901
|
name: y,
|
|
902
902
|
fn: k((ce) => [
|
|
@@ -907,7 +907,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
907
907
|
key: 10,
|
|
908
908
|
modelValue: l.value,
|
|
909
909
|
"onUpdate:modelValue": T[12] || (T[12] = (y) => l.value = y)
|
|
910
|
-
}, t.value), null, 16, ["modelValue"])) : e.value == Y(Se).RATE ? (v(), E(
|
|
910
|
+
}, t.value), null, 16, ["modelValue"])) : e.value == Y(Se).RATE ? (v(), E(D, A({
|
|
911
911
|
key: 11,
|
|
912
912
|
modelValue: l.value,
|
|
913
913
|
"onUpdate:modelValue": T[13] || (T[13] = (y) => l.value = y),
|
|
@@ -923,18 +923,18 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
923
923
|
"onUpdate:modelValue": T[15] || (T[15] = (y) => l.value = y),
|
|
924
924
|
inlinePrompt: !0,
|
|
925
925
|
disabled: h.value[n.value].disabled
|
|
926
|
-
}, t.value),
|
|
926
|
+
}, t.value), ge({ _: 2 }, [
|
|
927
927
|
W(x(), (y) => ({
|
|
928
928
|
name: y,
|
|
929
929
|
fn: k((ce) => [
|
|
930
930
|
C(q.$slots, `${u.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
|
|
931
931
|
])
|
|
932
932
|
}))
|
|
933
|
-
]), 1040, ["modelValue", "disabled"])) : e.value == Y(Se).TRANSFER ? (v(), E(
|
|
933
|
+
]), 1040, ["modelValue", "disabled"])) : e.value == Y(Se).TRANSFER ? (v(), E(he, A({
|
|
934
934
|
key: 14,
|
|
935
935
|
modelValue: l.value,
|
|
936
936
|
"onUpdate:modelValue": T[16] || (T[16] = (y) => l.value = y)
|
|
937
|
-
}, t.value),
|
|
937
|
+
}, t.value), ge({ _: 2 }, [
|
|
938
938
|
W(x(), (y) => ({
|
|
939
939
|
name: y,
|
|
940
940
|
fn: k((ce) => [
|
|
@@ -945,7 +945,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
945
945
|
key: 15,
|
|
946
946
|
modelValue: l.value,
|
|
947
947
|
"onUpdate:modelValue": T[17] || (T[17] = (y) => l.value = y)
|
|
948
|
-
}, t.value, { options: M.value }),
|
|
948
|
+
}, t.value, { options: M.value }), ge({ _: 2 }, [
|
|
949
949
|
W(x(), (y) => ({
|
|
950
950
|
name: y,
|
|
951
951
|
fn: k((ce) => [
|
|
@@ -962,7 +962,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
962
962
|
}, { ...V.value, ...t.value }, {
|
|
963
963
|
ref_key: "uploadRef",
|
|
964
964
|
ref: Te
|
|
965
|
-
}),
|
|
965
|
+
}), ge({
|
|
966
966
|
default: k(() => {
|
|
967
967
|
var y, ce;
|
|
968
968
|
return [
|
|
@@ -980,7 +980,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
980
980
|
oe(ze, A({
|
|
981
981
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
982
982
|
src: l.value
|
|
983
|
-
}, { fit: "cover", lazy: !0, ...(ce = t.value) == null ? void 0 : ce.img }),
|
|
983
|
+
}, { fit: "cover", lazy: !0, ...(ce = t.value) == null ? void 0 : ce.img }), ge({ _: 2 }, [
|
|
984
984
|
W(x(), (pe, lt) => ({
|
|
985
985
|
name: pe,
|
|
986
986
|
fn: k((bt) => [
|
|
@@ -1008,7 +1008,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1008
1008
|
})
|
|
1009
1009
|
]),
|
|
1010
1010
|
_: 1
|
|
1011
|
-
})) :
|
|
1011
|
+
})) : $e("", !0),
|
|
1012
1012
|
V.value.showDel && i.value ? (v(), E(He, {
|
|
1013
1013
|
key: 1,
|
|
1014
1014
|
content: "删除",
|
|
@@ -1022,7 +1022,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1022
1022
|
})
|
|
1023
1023
|
]),
|
|
1024
1024
|
_: 1
|
|
1025
|
-
})) :
|
|
1025
|
+
})) : $e("", !0)
|
|
1026
1026
|
], 32)
|
|
1027
1027
|
]))
|
|
1028
1028
|
];
|
|
@@ -1039,7 +1039,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1039
1039
|
key: 17,
|
|
1040
1040
|
modelValue: l.value,
|
|
1041
1041
|
"onUpdate:modelValue": T[22] || (T[22] = (y) => l.value = y)
|
|
1042
|
-
}, t.value, { placeholder: d.value }),
|
|
1042
|
+
}, t.value, { placeholder: d.value }), ge({ _: 2 }, [
|
|
1043
1043
|
W(x(), (y, ce) => ({
|
|
1044
1044
|
name: y,
|
|
1045
1045
|
fn: k((pe) => [
|
|
@@ -1052,7 +1052,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1052
1052
|
"onUpdate:modelValue": T[23] || (T[23] = (y) => l.value = y),
|
|
1053
1053
|
placeholder: d.value,
|
|
1054
1054
|
disabled: h.value[n.value].disabled
|
|
1055
|
-
}, t.value),
|
|
1055
|
+
}, t.value), ge({ _: 2 }, [
|
|
1056
1056
|
W(x(), (y, ce) => ({
|
|
1057
1057
|
name: y,
|
|
1058
1058
|
fn: k((pe) => [
|
|
@@ -1069,7 +1069,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1069
1069
|
placeholder: d.value,
|
|
1070
1070
|
disabled: h.value[n.value].disabled,
|
|
1071
1071
|
draggable: ""
|
|
1072
|
-
}, t.value),
|
|
1072
|
+
}, t.value), ge({ _: 2 }, [
|
|
1073
1073
|
(ee = t.value) != null && ee.suffix ? {
|
|
1074
1074
|
name: "suffix",
|
|
1075
1075
|
fn: k(() => {
|
|
@@ -1114,7 +1114,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1114
1114
|
type: "number",
|
|
1115
1115
|
onInput: T[26] || (T[26] = (y) => Ge(y, 2)),
|
|
1116
1116
|
maxlength: ((fe = t.value) == null ? void 0 : fe.max) || 25
|
|
1117
|
-
}, { ...t.value, type: e.value }),
|
|
1117
|
+
}, { ...t.value, type: e.value }), ge({
|
|
1118
1118
|
suffix: k(() => [
|
|
1119
1119
|
K("div", {
|
|
1120
1120
|
title: Y(Ft)(l.value),
|
|
@@ -1208,7 +1208,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1208
1208
|
u.t == "q" && h.value.table.load();
|
|
1209
1209
|
}),
|
|
1210
1210
|
disabled: h.value[n.value].disabled
|
|
1211
|
-
}, { ...Y(We)(t.value, (y) => !["suffix", "prefix", "append", "prepend"].includes(y)), type: e.value }),
|
|
1211
|
+
}, { ...Y(We)(t.value, (y) => !["suffix", "prefix", "append", "prepend"].includes(y)), type: e.value }), ge({ _: 2 }, [
|
|
1212
1212
|
(yt = t.value) != null && yt.suffix ? {
|
|
1213
1213
|
name: "suffix",
|
|
1214
1214
|
fn: k(() => {
|
|
@@ -1340,7 +1340,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1340
1340
|
model: u.value,
|
|
1341
1341
|
t: "q",
|
|
1342
1342
|
formInfo: l.value
|
|
1343
|
-
},
|
|
1343
|
+
}, ge({ _: 2 }, [
|
|
1344
1344
|
W(Object.keys(M.$slots), (b) => ({
|
|
1345
1345
|
name: b,
|
|
1346
1346
|
fn: k((P) => [
|
|
@@ -1386,7 +1386,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1386
1386
|
style: { display: "flex", flex: 1, "flex-wrap": "wrap" },
|
|
1387
1387
|
container: {
|
|
1388
1388
|
mode: "row",
|
|
1389
|
-
inline: !
|
|
1389
|
+
inline: !0,
|
|
1390
1390
|
style: { paddingBottom: "0px", paddingTop: "18px", boxSizing: "border-box" }
|
|
1391
1391
|
},
|
|
1392
1392
|
more: {
|
|
@@ -1524,10 +1524,9 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1524
1524
|
display: "flex",
|
|
1525
1525
|
flexDirection: t.value.query.container.mode === "row" ? "row" : "column"
|
|
1526
1526
|
})), L = () => {
|
|
1527
|
-
alert("查询设置,正在开发中......");
|
|
1528
1527
|
};
|
|
1529
1528
|
return (x, V) => {
|
|
1530
|
-
var ie, le, se, Ce, Oe, Ee, me, N, Te, Ge, g, $, w, p, S,
|
|
1529
|
+
var ie, le, se, Ce, Oe, Ee, me, N, Te, Ge, g, $, w, p, S, I, O;
|
|
1531
1530
|
const R = F("el-form-item"), B = F("el-drawer");
|
|
1532
1531
|
return v(), U(re, null, [
|
|
1533
1532
|
K("div", {
|
|
@@ -1545,10 +1544,10 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1545
1544
|
(v(), E(Je(o({ slots: x.$slots }, void 0)))),
|
|
1546
1545
|
((ae = (z = t.value.query) == null ? void 0 : z.container) == null ? void 0 : ae.inline) === !0 ? (v(), E(R, { key: 0 }, {
|
|
1547
1546
|
default: k(() => {
|
|
1548
|
-
var de,
|
|
1547
|
+
var de, ye, G, X, De;
|
|
1549
1548
|
return [
|
|
1550
1549
|
K("div", {
|
|
1551
|
-
style: Ye((
|
|
1550
|
+
style: Ye((ye = (de = t.value.query) == null ? void 0 : de.btns) == null ? void 0 : ye.style)
|
|
1552
1551
|
}, [
|
|
1553
1552
|
t.value.query.group ? (v(), E(Y(Vt), { key: 0 }, {
|
|
1554
1553
|
default: k(() => [
|
|
@@ -1575,7 +1574,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1575
1574
|
];
|
|
1576
1575
|
}),
|
|
1577
1576
|
_: 3
|
|
1578
|
-
})) :
|
|
1577
|
+
})) : $e("", !0)
|
|
1579
1578
|
];
|
|
1580
1579
|
}),
|
|
1581
1580
|
_: 3
|
|
@@ -1605,7 +1604,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1605
1604
|
], !0)), 256)),
|
|
1606
1605
|
C(x.$slots, "q-btns", {}, void 0, !0)
|
|
1607
1606
|
], 64))
|
|
1608
|
-
], 4)) :
|
|
1607
|
+
], 4)) : $e("", !0)
|
|
1609
1608
|
], 36),
|
|
1610
1609
|
e.value && !(($ = (g = (Ge = t.value) == null ? void 0 : Ge.query) == null ? void 0 : g.more) != null && $.hidden) && t.value.query.more.mode == 2 ? (v(), E(B, A({
|
|
1611
1610
|
key: 0,
|
|
@@ -1613,7 +1612,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1613
1612
|
"onUpdate:modelValue": V[6] || (V[6] = (z) => e.value = z),
|
|
1614
1613
|
title: "更多查询",
|
|
1615
1614
|
"show-close": !1
|
|
1616
|
-
}, t.value.query.more.dialog),
|
|
1615
|
+
}, t.value.query.more.dialog), ge({
|
|
1617
1616
|
default: k(() => [
|
|
1618
1617
|
oe(Y(Tt), A({
|
|
1619
1618
|
onSubmit: V[3] || (V[3] = mt(() => {
|
|
@@ -1626,10 +1625,10 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1626
1625
|
info: h.value,
|
|
1627
1626
|
"onUpdate:info": V[2] || (V[2] = (z) => h.value = z),
|
|
1628
1627
|
more: !0
|
|
1629
|
-
},
|
|
1628
|
+
}, ge({ _: 2 }, [
|
|
1630
1629
|
W(x.$slots, (z, ae, de) => ({
|
|
1631
1630
|
name: ae,
|
|
1632
|
-
fn: k((
|
|
1631
|
+
fn: k((ye) => [
|
|
1633
1632
|
C(x.$slots, ae, { model: t.value }, void 0, !0)
|
|
1634
1633
|
])
|
|
1635
1634
|
}))
|
|
@@ -1640,7 +1639,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1640
1639
|
]),
|
|
1641
1640
|
_: 2
|
|
1642
1641
|
}, [
|
|
1643
|
-
(O = (
|
|
1642
|
+
(O = (I = (S = (p = (w = t.value) == null ? void 0 : w.query) == null ? void 0 : p.more) == null ? void 0 : S.dialog) == null ? void 0 : I.footer) != null && O.hidden ? void 0 : {
|
|
1644
1643
|
name: "footer",
|
|
1645
1644
|
fn: k(() => [
|
|
1646
1645
|
K("div", Dt(Qt(t.value.query.more.dialog.footer)), [
|
|
@@ -1664,7 +1663,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1664
1663
|
]),
|
|
1665
1664
|
key: "0"
|
|
1666
1665
|
}
|
|
1667
|
-
]), 1040, ["modelValue"])) :
|
|
1666
|
+
]), 1040, ["modelValue"])) : $e("", !0),
|
|
1668
1667
|
oe($l, {
|
|
1669
1668
|
duration: 300,
|
|
1670
1669
|
name: "nested",
|
|
@@ -1679,16 +1678,16 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1679
1678
|
key: 0,
|
|
1680
1679
|
onSubmit: V[7] || (V[7] = mt(() => {
|
|
1681
1680
|
}, ["prevent"]))
|
|
1682
|
-
}, Y(We)(t.value.query, (
|
|
1681
|
+
}, Y(We)(t.value.query, (ye) => !["query", "more", "reset"].includes(ye))), {
|
|
1683
1682
|
default: k(() => [
|
|
1684
1683
|
(v(), E(Je(o({ slots: x.$slots }, !0))))
|
|
1685
1684
|
]),
|
|
1686
1685
|
_: 1
|
|
1687
1686
|
}, 16)), [
|
|
1688
1687
|
[kl, e.value]
|
|
1689
|
-
]) :
|
|
1688
|
+
]) : $e("", !0)
|
|
1690
1689
|
])
|
|
1691
|
-
])) :
|
|
1690
|
+
])) : $e("", !0)
|
|
1692
1691
|
];
|
|
1693
1692
|
}),
|
|
1694
1693
|
_: 1
|
|
@@ -1696,7 +1695,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1696
1695
|
], 64);
|
|
1697
1696
|
};
|
|
1698
1697
|
}
|
|
1699
|
-
}, na = /* @__PURE__ */ at(ra, [["__scopeId", "data-v-
|
|
1698
|
+
}, na = /* @__PURE__ */ at(ra, [["__scopeId", "data-v-eaca2240"]]), dl = {
|
|
1700
1699
|
inline: !0,
|
|
1701
1700
|
type: "hidden",
|
|
1702
1701
|
"scroll-to-error": !0,
|
|
@@ -1783,8 +1782,8 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1783
1782
|
let p = 5;
|
|
1784
1783
|
for (; p > 0; ) {
|
|
1785
1784
|
if (await ht(), e.value) {
|
|
1786
|
-
e.value.validate((S,
|
|
1787
|
-
S ? n("submit", g, $, w) : console.error("表单验证不通过!",
|
|
1785
|
+
e.value.validate((S, I) => {
|
|
1786
|
+
S ? n("submit", g, $, w) : console.error("表单验证不通过!", I);
|
|
1788
1787
|
});
|
|
1789
1788
|
return;
|
|
1790
1789
|
}
|
|
@@ -1847,51 +1846,51 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1847
1846
|
message: `${p.label}不能为空!`,
|
|
1848
1847
|
trigger: "blur"
|
|
1849
1848
|
}), p.max !== void 0 && p.max !== null && p.max !== "" && (p.min === void 0 || p.min === null || p.min === "") && $.push({
|
|
1850
|
-
validator: (S,
|
|
1851
|
-
if (
|
|
1852
|
-
p.type !== "number" && p.type !== "input-number" ? ((
|
|
1849
|
+
validator: (S, I, O) => {
|
|
1850
|
+
if (I == null || I === "") return O();
|
|
1851
|
+
p.type !== "number" && p.type !== "input-number" ? ((I == null ? void 0 : I.toString()) || "").length > Number(p.max) ? O(
|
|
1853
1852
|
new Error(`${p.label}长度不能超过${p.max}个字符!`)
|
|
1854
|
-
) : O() : Number(
|
|
1853
|
+
) : O() : Number(I) > Number(p.max) ? O(new Error(`${p.label}不能大于${p.max}!`)) : O();
|
|
1855
1854
|
}
|
|
1856
1855
|
}), p.min !== void 0 && p.min !== null && p.min !== "" && (p.max === void 0 || p.max === null || p.max === "") && $.push({
|
|
1857
|
-
validator: (S,
|
|
1858
|
-
if (
|
|
1856
|
+
validator: (S, I, O) => {
|
|
1857
|
+
if (I == null || I === "") return O();
|
|
1859
1858
|
p.type !== "number" && p.type !== "input-number" ? Number(p.min) < 1 ? O(
|
|
1860
1859
|
new Error(
|
|
1861
1860
|
`${p.label}长度最小值${p.min}设置错误!`
|
|
1862
1861
|
)
|
|
1863
|
-
) :
|
|
1862
|
+
) : I.toString().length < Number(p.min) ? O(
|
|
1864
1863
|
new Error(
|
|
1865
1864
|
`${p.label}长度不能少于${p.min}个字符!`
|
|
1866
1865
|
)
|
|
1867
|
-
) : O() : Number(
|
|
1866
|
+
) : O() : Number(I) < Number(p.min) ? O(new Error(`${p.label}不能小于${p.min}!`)) : O();
|
|
1868
1867
|
}
|
|
1869
1868
|
}), p.min !== void 0 && p.min !== null && p.min !== "" && p.max !== void 0 && p.max !== null && p.max !== "" && $.push({
|
|
1870
|
-
validator: (S,
|
|
1871
|
-
if (
|
|
1869
|
+
validator: (S, I, O) => {
|
|
1870
|
+
if (I == null || I === "") return O();
|
|
1872
1871
|
const z = Number(p.min), ae = Number(p.max);
|
|
1873
1872
|
p.type !== "number" && p.type !== "input-number" ? Number(p.min) < 1 ? O(
|
|
1874
1873
|
new Error(
|
|
1875
1874
|
`${p.label}长度最小值${p.min}设置错误!`
|
|
1876
1875
|
)
|
|
1877
|
-
) :
|
|
1876
|
+
) : I.toString().length < z || I.toString().length > ae ? O(
|
|
1878
1877
|
new Error(
|
|
1879
1878
|
`${p.label}长度必须在${z}-${ae}个字符之间!`
|
|
1880
1879
|
)
|
|
1881
|
-
) : O() : Number(
|
|
1880
|
+
) : O() : Number(I) < z || I > ae ? O(new Error(`${p.label}必须在${z}-${ae}之间!`)) : O();
|
|
1882
1881
|
}
|
|
1883
1882
|
}), p.type == "email" && $.push({ type: "email", message: "不是一个正确的邮箱地址!" }), p.type == "url" && $.push({ type: "url", message: "不是一个合正确的URL!" }), p.pattern && $.push({
|
|
1884
1883
|
pattern: p == null ? void 0 : p.pattern,
|
|
1885
1884
|
message: (p == null ? void 0 : p.message) || "格式不正确!"
|
|
1886
1885
|
}), p.validate && $.push({
|
|
1887
|
-
validator: (S,
|
|
1886
|
+
validator: (S, I, O) => p.validate(S, I, O)
|
|
1888
1887
|
});
|
|
1889
1888
|
}
|
|
1890
1889
|
return $;
|
|
1891
1890
|
}, L = (g, $ = !1) => {
|
|
1892
|
-
var S,
|
|
1891
|
+
var S, I, O, z, ae;
|
|
1893
1892
|
const w = $ ? g : g == null ? void 0 : g.item, p = typeof (w == null ? void 0 : w.editor) == "function" ? w.editor(c.value, (S = l.value.form) == null ? void 0 : S.modalState) : (w == null ? void 0 : w.editor) || {};
|
|
1894
|
-
if (((
|
|
1893
|
+
if (((I = l.value.form) == null ? void 0 : I.modalState) === "edit") {
|
|
1895
1894
|
const de = typeof (w == null ? void 0 : w.editor) == "object" ? (O = w.editor) == null ? void 0 : O.ep : typeof (w == null ? void 0 : w.editor) == "function" ? p == null ? void 0 : p.ep : {};
|
|
1896
1895
|
return { ...p, ...de };
|
|
1897
1896
|
}
|
|
@@ -1901,9 +1900,9 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
1901
1900
|
}
|
|
1902
1901
|
return p;
|
|
1903
1902
|
}, x = (g) => {
|
|
1904
|
-
var w, p, S,
|
|
1903
|
+
var w, p, S, I, O;
|
|
1905
1904
|
const $ = typeof g.editor == "function" ? g.editor(c.value, (w = l.value.form) == null ? void 0 : w.modalState) : g.editor;
|
|
1906
|
-
return ((p = l.value.form) == null ? void 0 : p.modalState) === "edit" ? ((S = $ == null ? void 0 : $.ep) == null ? void 0 : S.type) ?? ($ == null ? void 0 : $.type) ?? g.type : ((
|
|
1905
|
+
return ((p = l.value.form) == null ? void 0 : p.modalState) === "edit" ? ((S = $ == null ? void 0 : $.ep) == null ? void 0 : S.type) ?? ($ == null ? void 0 : $.type) ?? g.type : ((I = l.value.form) == null ? void 0 : I.modalState) === "add" ? ((O = $ == null ? void 0 : $.ap) == null ? void 0 : O.type) ?? ($ == null ? void 0 : $.type) ?? g.type : ($ == null ? void 0 : $.type) ?? g.type;
|
|
1907
1906
|
}, V = (g) => g === "left" ? "flex-start" : g === "right" ? "flex-end" : g === "center" ? "center" : "flex-end";
|
|
1908
1907
|
kt(() => {
|
|
1909
1908
|
R(), f != null && f.editForm ? c.value = f.editForm : c.value = ie.value;
|
|
@@ -2005,8 +2004,8 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
2005
2004
|
reset: o,
|
|
2006
2005
|
formData: c
|
|
2007
2006
|
}), (g, $) => {
|
|
2008
|
-
var ae, de,
|
|
2009
|
-
const w = F("el-form-item"), p = F("el-col"), S = F("el-tab-pane"),
|
|
2007
|
+
var ae, de, ye;
|
|
2008
|
+
const w = F("el-form-item"), p = F("el-col"), S = F("el-tab-pane"), I = F("el-tabs"), O = F("el-form"), z = F("el-button");
|
|
2010
2009
|
return v(), U("div", oa, [
|
|
2011
2010
|
oe(O, A(
|
|
2012
2011
|
{
|
|
@@ -2027,7 +2026,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
2027
2026
|
), {
|
|
2028
2027
|
default: k(() => [
|
|
2029
2028
|
le.value.length > 0 ? C(g.$slots, "default", { key: 0 }, () => [
|
|
2030
|
-
oe(
|
|
2029
|
+
oe(I, A({
|
|
2031
2030
|
class: "demo-tabs",
|
|
2032
2031
|
modelValue: le.value[0].groupName,
|
|
2033
2032
|
"onUpdate:modelValue": $[0] || ($[0] = (G) => le.value[0].groupName = G),
|
|
@@ -2071,7 +2070,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
2071
2070
|
class: "g-ctrl-container",
|
|
2072
2071
|
t: "f",
|
|
2073
2072
|
formInfo: c.value
|
|
2074
|
-
},
|
|
2073
|
+
}, ge({ _: 2 }, [
|
|
2075
2074
|
W(g.$slots, (xe, Ue) => ({
|
|
2076
2075
|
name: Ue,
|
|
2077
2076
|
fn: k((q) => [
|
|
@@ -2137,7 +2136,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
2137
2136
|
class: "g-ctrl-container",
|
|
2138
2137
|
t: "f",
|
|
2139
2138
|
formInfo: c.value
|
|
2140
|
-
},
|
|
2139
|
+
}, ge({ _: 2 }, [
|
|
2141
2140
|
W(g.$slots, (_e, qe) => ({
|
|
2142
2141
|
name: qe,
|
|
2143
2142
|
fn: k((xe) => [
|
|
@@ -2161,7 +2160,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
2161
2160
|
]),
|
|
2162
2161
|
_: 3
|
|
2163
2162
|
}, 16, ["model"]),
|
|
2164
|
-
(
|
|
2163
|
+
(ye = (de = (ae = l.value) == null ? void 0 : ae.form) == null ? void 0 : de.footer) != null && ye.hidden ? $e("", !0) : C(g.$slots, "f-footer", { key: 0 }, () => [
|
|
2165
2164
|
K("div", {
|
|
2166
2165
|
style: Ye({ justifyContent: V(l.value.form.footer.align), ...l.value.form.footer.style })
|
|
2167
2166
|
}, [
|
|
@@ -2171,7 +2170,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
2171
2170
|
C(g.$slots, G.name, {}, () => {
|
|
2172
2171
|
var X;
|
|
2173
2172
|
return [
|
|
2174
|
-
(X = G == null ? void 0 : G.info) != null && X.hidden ?
|
|
2173
|
+
(X = G == null ? void 0 : G.info) != null && X.hidden ? $e("", !0) : (v(), E(z, A({
|
|
2175
2174
|
key: 0,
|
|
2176
2175
|
ref_for: !0
|
|
2177
2176
|
}, G.info, {
|
|
@@ -2192,7 +2191,10 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
2192
2191
|
]);
|
|
2193
2192
|
};
|
|
2194
2193
|
}
|
|
2195
|
-
}), cl = /* @__PURE__ */ at(ua, [["__scopeId", "data-v-884b921e"]]), sa = { class: "dialog-extend-container" }, ia = {
|
|
2194
|
+
}), cl = /* @__PURE__ */ at(ua, [["__scopeId", "data-v-884b921e"]]), sa = { class: "dialog-extend-container" }, ia = {
|
|
2195
|
+
key: 1,
|
|
2196
|
+
style: { overflow: "hidden" }
|
|
2197
|
+
}, da = { class: "header-btn-group" }, ca = /* @__PURE__ */ Object.assign({
|
|
2196
2198
|
name: "g-model",
|
|
2197
2199
|
inheritAttrs: !1
|
|
2198
2200
|
}, {
|
|
@@ -2296,7 +2298,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
2296
2298
|
onClose: P,
|
|
2297
2299
|
onClosed: L,
|
|
2298
2300
|
draggable: ""
|
|
2299
|
-
}, c.value),
|
|
2301
|
+
}, c.value), ge({
|
|
2300
2302
|
header: k(({ titleClass: le, closeIconClass: se }) => [
|
|
2301
2303
|
C(B.$slots, "header", {
|
|
2302
2304
|
titleClass: le,
|
|
@@ -2320,7 +2322,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
2320
2322
|
(v(), E(Je(r.minIcon)))
|
|
2321
2323
|
]),
|
|
2322
2324
|
_: 1
|
|
2323
|
-
})) :
|
|
2325
|
+
})) : $e("", !0),
|
|
2324
2326
|
r.maximize ? (v(), E(Y(Bt), {
|
|
2325
2327
|
key: 1,
|
|
2326
2328
|
class: "btn-icon",
|
|
@@ -2330,7 +2332,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
2330
2332
|
(v(), E(Je(i.value ? r.resizeIcon : r.maxIcon)))
|
|
2331
2333
|
]),
|
|
2332
2334
|
_: 1
|
|
2333
|
-
})) :
|
|
2335
|
+
})) : $e("", !0)
|
|
2334
2336
|
])
|
|
2335
2337
|
], 36)
|
|
2336
2338
|
], !0)
|
|
@@ -2358,7 +2360,7 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
2358
2360
|
]))
|
|
2359
2361
|
]));
|
|
2360
2362
|
}
|
|
2361
|
-
}), Ht = /* @__PURE__ */ at(ca, [["__scopeId", "data-v-
|
|
2363
|
+
}), Ht = /* @__PURE__ */ at(ca, [["__scopeId", "data-v-a910b54a"]]), fa = { style: { padding: "15px", "box-sizing": "border-box" } }, va = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, pa = { style: { display: "flex", flex: "1", "align-items": "center" } }, ma = {
|
|
2362
2364
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2363
2365
|
id: "excelSortEl"
|
|
2364
2366
|
}, ha = ["textContent"], ya = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, ga = {
|
|
@@ -2472,8 +2474,8 @@ const Ut = /* @__PURE__ */ sl(Hl), at = (r, u) => {
|
|
|
2472
2474
|
]);
|
|
2473
2475
|
};
|
|
2474
2476
|
}
|
|
2475
|
-
}, ba = /* @__PURE__ */ at(ga, [["__scopeId", "data-v-13575747"]]), $a = "vue-gyc-ui", wa = 1,
|
|
2476
|
-
|
|
2477
|
+
}, ba = /* @__PURE__ */ at(ga, [["__scopeId", "data-v-13575747"]]), $a = "vue-gyc-ui", wa = 1, be = new Yl($a);
|
|
2478
|
+
be.version(wa).stores({
|
|
2477
2479
|
// 记录表格项设置信息
|
|
2478
2480
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2479
2481
|
// 记录表格分页条数
|
|
@@ -2489,8 +2491,8 @@ const vt = (r, u) => {
|
|
|
2489
2491
|
};
|
|
2490
2492
|
async function Et(r, u, t) {
|
|
2491
2493
|
try {
|
|
2492
|
-
const l = await
|
|
2493
|
-
l ? t === "add" ? l.keys.includes(u) || (l.keys.push(u), await
|
|
2494
|
+
const l = await be.tableColsState.where({ page: r }).first();
|
|
2495
|
+
l ? t === "add" ? l.keys.includes(u) || (l.keys.push(u), await be.tableColsState.put(l)) : t === "del" ? (l.keys = l.keys.filter((n) => n !== u), await be.tableColsState.put(l)) : t === "delAll" ? (l.keys = u, await be.tableColsState.put(l)) : t === "selectAll" && await be.tableColsState.where({ page: r }).delete() : t === "add" ? await be.tableColsState.add({ page: r, keys: [u] }) : t === "delAll" && await be.tableColsState.add({ page: r, keys: u });
|
|
2494
2496
|
} catch (l) {
|
|
2495
2497
|
throw console.error(`处理表格列状态时出错 (page: ${r}, key: ${u}, state: ${t}):`, l), l;
|
|
2496
2498
|
}
|
|
@@ -2498,8 +2500,8 @@ async function Et(r, u, t) {
|
|
|
2498
2500
|
async function ka(r, u, t) {
|
|
2499
2501
|
vt(r);
|
|
2500
2502
|
try {
|
|
2501
|
-
const l = await
|
|
2502
|
-
return l ? (await
|
|
2503
|
+
const l = await be.tableWidths.where({ page: r, key: u }).first();
|
|
2504
|
+
return l ? (await be.tableWidths.put({ ...l, width: t }), "update success") : (await be.tableWidths.add({ page: r, key: u, width: t }), "add success");
|
|
2503
2505
|
} catch (l) {
|
|
2504
2506
|
throw console.error(`保存表格项设置信息时出错 (page: ${r}, key: ${u}):`, l), l;
|
|
2505
2507
|
}
|
|
@@ -2507,7 +2509,7 @@ async function ka(r, u, t) {
|
|
|
2507
2509
|
async function _a(r) {
|
|
2508
2510
|
vt(r);
|
|
2509
2511
|
try {
|
|
2510
|
-
return await
|
|
2512
|
+
return await be.tableWidths.where({ page: r }).toArray();
|
|
2511
2513
|
} catch (u) {
|
|
2512
2514
|
throw console.error(`获取表格项设置信息时出错 (page: ${r}):`, u), u;
|
|
2513
2515
|
}
|
|
@@ -2515,7 +2517,7 @@ async function _a(r) {
|
|
|
2515
2517
|
async function Ca(r) {
|
|
2516
2518
|
vt(r);
|
|
2517
2519
|
try {
|
|
2518
|
-
const u = await
|
|
2520
|
+
const u = await be.tableColsState.where({ page: r }).toArray();
|
|
2519
2521
|
return !u || u.length === 0 ? [] : u[0].keys;
|
|
2520
2522
|
} catch (u) {
|
|
2521
2523
|
throw console.error(`获取表格列状态时出错 (page: ${r}):`, u), u;
|
|
@@ -2524,12 +2526,12 @@ async function Ca(r) {
|
|
|
2524
2526
|
async function xa(r) {
|
|
2525
2527
|
vt(r);
|
|
2526
2528
|
try {
|
|
2527
|
-
return await
|
|
2529
|
+
return await be.transaction("rw", be.tableWidths, be.pageInfo, be.sorts, be.tableColsState, async () => {
|
|
2528
2530
|
await Promise.all([
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2531
|
+
be.tableWidths.where({ page: r }).delete(),
|
|
2532
|
+
be.pageInfo.where({ page: r }).delete(),
|
|
2533
|
+
be.sorts.where({ page: r }).delete(),
|
|
2534
|
+
be.tableColsState.where({ page: r }).delete()
|
|
2533
2535
|
]);
|
|
2534
2536
|
});
|
|
2535
2537
|
} catch (u) {
|
|
@@ -2539,8 +2541,8 @@ async function xa(r) {
|
|
|
2539
2541
|
async function Ma({ page: r, size: u }) {
|
|
2540
2542
|
vt(r);
|
|
2541
2543
|
try {
|
|
2542
|
-
const t = await
|
|
2543
|
-
return t ? (await
|
|
2544
|
+
const t = await be.pageInfo.where({ page: r }).first();
|
|
2545
|
+
return t ? (await be.pageInfo.put({ ...t, size: u }), "update success") : (await be.pageInfo.add({ page: r, size: u }), "add success");
|
|
2544
2546
|
} catch (t) {
|
|
2545
2547
|
throw console.error(`保存分页条数时出错 (page: ${r}):`, t), t;
|
|
2546
2548
|
}
|
|
@@ -2548,8 +2550,8 @@ async function Ma({ page: r, size: u }) {
|
|
|
2548
2550
|
async function Sa(r) {
|
|
2549
2551
|
vt(r);
|
|
2550
2552
|
try {
|
|
2551
|
-
const u = await
|
|
2552
|
-
return
|
|
2553
|
+
const u = await be.pageInfo.where({ page: r }).first();
|
|
2554
|
+
return u == null ? void 0 : u.size;
|
|
2553
2555
|
} catch (u) {
|
|
2554
2556
|
throw console.error(`获取分页条数时出错 (page: ${r}):`, u), u;
|
|
2555
2557
|
}
|
|
@@ -2557,8 +2559,8 @@ async function Sa(r) {
|
|
|
2557
2559
|
async function Ta(r, u) {
|
|
2558
2560
|
vt(r);
|
|
2559
2561
|
try {
|
|
2560
|
-
const t = await
|
|
2561
|
-
return t ? (await
|
|
2562
|
+
const t = await be.sorts.where({ page: r }).first();
|
|
2563
|
+
return t ? (await be.sorts.put({ ...t, keys: u }), "update success") : (await be.sorts.add({ page: r, keys: u }), "add success");
|
|
2562
2564
|
} catch (t) {
|
|
2563
2565
|
throw console.error(`保存表格字段顺序时出错 (page: ${r}):`, t), t;
|
|
2564
2566
|
}
|
|
@@ -2566,7 +2568,7 @@ async function Ta(r, u) {
|
|
|
2566
2568
|
async function Va(r) {
|
|
2567
2569
|
vt(r);
|
|
2568
2570
|
try {
|
|
2569
|
-
const u = await
|
|
2571
|
+
const u = await be.sorts.where({ page: r }).first();
|
|
2570
2572
|
return (u == null ? void 0 : u.keys) || [];
|
|
2571
2573
|
} catch (u) {
|
|
2572
2574
|
throw console.error(`获取表格字段顺序时出错 (page: ${r}):`, u), u;
|
|
@@ -2661,7 +2663,7 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2661
2663
|
});
|
|
2662
2664
|
};
|
|
2663
2665
|
return kt(async () => {
|
|
2664
|
-
n.value = Object.entries(e.value).filter(([, o]) => o.visible !== !1).filter(([, o]) => o.type != "hidden").map(([o, d]) => ({
|
|
2666
|
+
n.value = Object.entries(e.value).filter(([, o]) => o.visible !== !1).filter(([, o]) => !["selection", "index", "expand", "control"].includes(o.type)).filter(([, o]) => o.type != "hidden").map(([o, d]) => ({
|
|
2665
2667
|
label: d.label,
|
|
2666
2668
|
value: o,
|
|
2667
2669
|
alwaysShow: d.alwaysShow,
|
|
@@ -2720,7 +2722,7 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2720
2722
|
]);
|
|
2721
2723
|
};
|
|
2722
2724
|
}
|
|
2723
|
-
}, za = /* @__PURE__ */ at(Aa, [["__scopeId", "data-v-
|
|
2725
|
+
}, za = /* @__PURE__ */ at(Aa, [["__scopeId", "data-v-750b37bc"]]), Ua = { class: "title" }, La = { class: "content" }, Ra = {
|
|
2724
2726
|
__name: "g-cell-toopTip",
|
|
2725
2727
|
props: {
|
|
2726
2728
|
content: {
|
|
@@ -2817,7 +2819,7 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2817
2819
|
class: "g-detail-container",
|
|
2818
2820
|
style: Ye(((P = n.value) == null ? void 0 : P.style) || {})
|
|
2819
2821
|
}, [
|
|
2820
|
-
oe(b, A({ border: "" }, Y(We)(n.value, (L) => !["container"].includes(L))),
|
|
2822
|
+
oe(b, A({ border: "" }, Y(We)(n.value, (L) => !["container"].includes(L))), ge({
|
|
2821
2823
|
default: k(() => [
|
|
2822
2824
|
(v(!0), U(re, null, W(f.value, ([L, x]) => {
|
|
2823
2825
|
var V, R;
|
|
@@ -3038,8 +3040,8 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3038
3040
|
var _;
|
|
3039
3041
|
let m;
|
|
3040
3042
|
if (typeof s.search == "function") {
|
|
3041
|
-
const
|
|
3042
|
-
m = (
|
|
3043
|
+
const D = s.search(c.value);
|
|
3044
|
+
m = (D == null ? void 0 : D.value) ?? s.value;
|
|
3043
3045
|
} else
|
|
3044
3046
|
m = ((_ = s.search) == null ? void 0 : _.value) ?? s.value;
|
|
3045
3047
|
return [a, m];
|
|
@@ -3084,42 +3086,43 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3084
3086
|
stripe: !0,
|
|
3085
3087
|
type: "hidden",
|
|
3086
3088
|
load: async () => {
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
+
const a = Number(await Sa(R.value));
|
|
3090
|
+
a && a > 0 && (e.value.table.page.pageSize = a);
|
|
3091
|
+
let { currentPage: s, pageSize: m } = e.value.table.page;
|
|
3089
3092
|
try {
|
|
3090
3093
|
n(
|
|
3091
3094
|
"load",
|
|
3092
|
-
{ currentPage:
|
|
3093
|
-
(
|
|
3094
|
-
var
|
|
3095
|
-
if (!Array.isArray(
|
|
3095
|
+
{ currentPage: s, pageSize: m, ...c.value },
|
|
3096
|
+
(_ = [], D = 0, { fields: H = [], sums: j = {} } = {}) => {
|
|
3097
|
+
var he;
|
|
3098
|
+
if (!Array.isArray(_)) {
|
|
3096
3099
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), it.error("数据加载失败,请检查数据格式。");
|
|
3097
3100
|
return;
|
|
3098
3101
|
}
|
|
3099
|
-
if (typeof
|
|
3102
|
+
if (typeof D != "number") {
|
|
3100
3103
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), it.error("数据加载失败,请检查数据格式。");
|
|
3101
3104
|
return;
|
|
3102
3105
|
}
|
|
3103
|
-
e.value.table.data =
|
|
3106
|
+
e.value.table.data = _, ((he = e.value.control) == null ? void 0 : he.add(x.value, e).inline) === !0 && e.value.table.data.unshift(x.value), e.value.table.page.total = D, L.value = H, P.value = j, T(), V.value = Math.random().toString(36).substring(2);
|
|
3104
3107
|
},
|
|
3105
3108
|
x.value
|
|
3106
3109
|
);
|
|
3107
|
-
} catch (
|
|
3108
|
-
console.error("触发 load 事件时出现错误:",
|
|
3110
|
+
} catch (_) {
|
|
3111
|
+
console.error("触发 load 事件时出现错误:", _), it.error("数据加载时出现错误,请稍后重试。");
|
|
3109
3112
|
}
|
|
3110
3113
|
},
|
|
3111
3114
|
onHeaderDragend: (a, s, m) => {
|
|
3112
3115
|
ka(R.value, m.property, a);
|
|
3113
3116
|
},
|
|
3114
3117
|
onRowDblclick: (a, s, m) => {
|
|
3115
|
-
e.value.table.dblclickType == "edit" ? p(a, s, m, e) : e.value.table.dblclickType == "view" ?
|
|
3118
|
+
e.value.table.dblclickType == "edit" ? p(a, s, m, e) : e.value.table.dblclickType == "view" ? I(a, s, m, e) : e.value.table.dblclickType == "delete" ? S(a, s, m, e) : e.value.table.dblclickType(a, s, m, e);
|
|
3116
3119
|
},
|
|
3117
3120
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
3118
3121
|
page: {
|
|
3119
3122
|
total: 0,
|
|
3120
3123
|
pageSize: 20,
|
|
3121
3124
|
currentPage: 1,
|
|
3122
|
-
pageSizes: [5, 10, 20, 30, 40, 50],
|
|
3125
|
+
pageSizes: [5, 10, 20, 30, 40, 50, 100],
|
|
3123
3126
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
3124
3127
|
style: {
|
|
3125
3128
|
display: "flex",
|
|
@@ -3158,6 +3161,7 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3158
3161
|
align: "center",
|
|
3159
3162
|
"min-width": 100,
|
|
3160
3163
|
width: 160,
|
|
3164
|
+
sort: 9999999,
|
|
3161
3165
|
fixed: "right",
|
|
3162
3166
|
style: { ...(Be = (tt = e.value) == null ? void 0 : tt.control) == null ? void 0 : Be.style },
|
|
3163
3167
|
validate: async (a) => await !0,
|
|
@@ -3170,8 +3174,8 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3170
3174
|
// description || readonly
|
|
3171
3175
|
icon: () => ke(Rl),
|
|
3172
3176
|
auth: () => {
|
|
3173
|
-
var
|
|
3174
|
-
return !(((
|
|
3177
|
+
var D;
|
|
3178
|
+
return !(((D = _ == null ? void 0 : _.control) == null ? void 0 : D.add(a, _).inline) === !0 && m === 0);
|
|
3175
3179
|
}
|
|
3176
3180
|
}),
|
|
3177
3181
|
edit: (a, s, m, _) => ({
|
|
@@ -3181,8 +3185,8 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3181
3185
|
mode: "dialog",
|
|
3182
3186
|
icon: () => ke(Ll),
|
|
3183
3187
|
auth: () => {
|
|
3184
|
-
var
|
|
3185
|
-
return ((
|
|
3188
|
+
var D;
|
|
3189
|
+
return ((D = _ == null ? void 0 : _.control) == null ? void 0 : D.add(a, _).inline) !== !0;
|
|
3186
3190
|
}
|
|
3187
3191
|
}),
|
|
3188
3192
|
delete: (a, s, m, _) => ({
|
|
@@ -3191,8 +3195,8 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3191
3195
|
type: "danger",
|
|
3192
3196
|
icon: () => ke(tl),
|
|
3193
3197
|
auth: () => {
|
|
3194
|
-
var
|
|
3195
|
-
return !(((
|
|
3198
|
+
var D;
|
|
3199
|
+
return !(((D = _.control) == null ? void 0 : D.add(a, _).inline) === !0 && m === 0);
|
|
3196
3200
|
},
|
|
3197
3201
|
dialog: {
|
|
3198
3202
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -3205,9 +3209,9 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3205
3209
|
}
|
|
3206
3210
|
}),
|
|
3207
3211
|
save: (a, s, m, _) => {
|
|
3208
|
-
var
|
|
3212
|
+
var D, H;
|
|
3209
3213
|
return {
|
|
3210
|
-
label: ((
|
|
3214
|
+
label: ((D = _.control) == null ? void 0 : D.add(a, _).inline) !== !0 ? "保存" : m === 0 ? "新增" : "保存",
|
|
3211
3215
|
text: !0,
|
|
3212
3216
|
icon: () => ke(Lt),
|
|
3213
3217
|
type: ((H = _.control) == null ? void 0 : H.add(a, _).inline) !== !0 || m === 0 ? "primary" : "success",
|
|
@@ -3268,8 +3272,8 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3268
3272
|
auth: () => !(_.control.add(a, _).inline === !0 && m == 0),
|
|
3269
3273
|
onClick: () => {
|
|
3270
3274
|
var H;
|
|
3271
|
-
let
|
|
3272
|
-
|
|
3275
|
+
let D = (H = Ce(a, s, m, _)) == null ? void 0 : H.operate;
|
|
3276
|
+
D === "edit" ? p(a, s, m, _) : D === "delete" ? S(a, s, m, _) : D === "view" && I(a, s, m, _);
|
|
3273
3277
|
},
|
|
3274
3278
|
"button-props": { round: !0, plain: !0 }
|
|
3275
3279
|
})
|
|
@@ -3280,26 +3284,26 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3280
3284
|
(Xe = e.value) == null ? void 0 : Xe.control
|
|
3281
3285
|
);
|
|
3282
3286
|
const se = (a, s = !0) => {
|
|
3283
|
-
const m = e.value.control[a], _ = s ? (
|
|
3287
|
+
const m = e.value.control[a], _ = s ? (D, H, j, he) => {
|
|
3284
3288
|
var He, Ke, pt;
|
|
3285
|
-
if (!
|
|
3289
|
+
if (!D || !H || j == null)
|
|
3286
3290
|
return console.warn(`merge${a.charAt(0).toUpperCase() + a.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
3287
|
-
const we = ((He = le[a]) == null ? void 0 : He.call(le,
|
|
3291
|
+
const we = ((He = le[a]) == null ? void 0 : He.call(le, D, H, j, he)) || {}, Ve = ((pt = (Ke = h == null ? void 0 : h.control) == null ? void 0 : Ke[a]) == null ? void 0 : pt.call(Ke, D, H, j, he)) || {}, ze = (m == null ? void 0 : m(D, H, j, he)) || {};
|
|
3288
3292
|
return Le(we, Ve, ze) || {};
|
|
3289
|
-
} : (
|
|
3293
|
+
} : (D, H) => {
|
|
3290
3294
|
var Ve, ze, He;
|
|
3291
|
-
const j = ((Ve = le[a]) == null ? void 0 : Ve.call(le,
|
|
3292
|
-
return Le(j,
|
|
3295
|
+
const j = ((Ve = le[a]) == null ? void 0 : Ve.call(le, D, H)) || {}, he = ((He = (ze = h == null ? void 0 : h.control) == null ? void 0 : ze[a]) == null ? void 0 : He.call(ze, D, H)) || {}, we = (m == null ? void 0 : m(D, H)) || {};
|
|
3296
|
+
return Le(j, he, we) || {};
|
|
3293
3297
|
};
|
|
3294
3298
|
e.value.control[a] = _;
|
|
3295
3299
|
};
|
|
3296
3300
|
se("edit"), se("delete"), se("view"), se("save"), se("add", !1), se("download", !1), se("setting", !1), se("batch", !1), se("toggleExpand", !1);
|
|
3297
3301
|
const Ce = (a, s, m, _) => {
|
|
3298
|
-
var
|
|
3302
|
+
var he, we, Ve, ze, He, Ke;
|
|
3299
3303
|
if (!a || !s || m == null)
|
|
3300
3304
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
3301
|
-
const
|
|
3302
|
-
return Le(
|
|
3305
|
+
const D = ((he = le.dropdown) == null ? void 0 : he.call(le, a, s, m, _)) || {}, H = ((Ve = (we = h == null ? void 0 : h.control) == null ? void 0 : we.dropdown) == null ? void 0 : Ve.call(we, a, s, m, _)) || {}, j = ((Ke = (He = (ze = e.value) == null ? void 0 : ze.control) == null ? void 0 : He.dropdown) == null ? void 0 : Ke.call(He, a, s, m, _)) || {};
|
|
3306
|
+
return Le(D, H, j) || {};
|
|
3303
3307
|
}, Oe = {
|
|
3304
3308
|
type: "hidden",
|
|
3305
3309
|
"min-width": 100,
|
|
@@ -3356,12 +3360,12 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3356
3360
|
if (a.precision && !isNaN(parseFloat(s)) && (typeof a.precision == "number" ? m = parseFloat(m).toFixed(a.precision) : typeof a.precision == "object" && a.precision.num && (a.precision.pad ? m = parseFloat(m).toFixed(a.precision.num) : m = parseFloat(
|
|
3357
3361
|
parseFloat(m).toFixed(a.precision.num)
|
|
3358
3362
|
).toString())), ["date", "datetime", "time", "time-select"].includes(a.type) && Ut(s).isValid()) {
|
|
3359
|
-
const
|
|
3363
|
+
const D = {
|
|
3360
3364
|
date: "YYYY-MM-DD",
|
|
3361
3365
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
3362
3366
|
time: "HH:mm:ss"
|
|
3363
3367
|
};
|
|
3364
|
-
m = a.format ? Ut(m).format(a.format) : Ut(m).format(
|
|
3368
|
+
m = a.format ? Ut(m).format(a.format) : Ut(m).format(D[a.type]);
|
|
3365
3369
|
}
|
|
3366
3370
|
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, m = `<span title="${Ft(
|
|
3367
3371
|
parseFloat(m)
|
|
@@ -3375,12 +3379,12 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3375
3379
|
e.value.form.modalState = "add", l.value = "add";
|
|
3376
3380
|
try {
|
|
3377
3381
|
if (!await ((m = e.value.control) == null ? void 0 : m.validate("add", { row: x.value, m: s }))) return;
|
|
3378
|
-
} catch (
|
|
3379
|
-
console.error("验证失败:",
|
|
3382
|
+
} catch (D) {
|
|
3383
|
+
console.error("验证失败:", D);
|
|
3380
3384
|
return;
|
|
3381
3385
|
}
|
|
3382
|
-
(_ = e.value.control.add(x.value, s)) != null && _.click ? e.value.control.add(x.value, s).click(x.value, s) : e.value.control.add(x.value, s).inline === !0 ? (e.value.table.data.unshift({ ...x.value }), n("open", "row-add", { row: x.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add(x.value, s).mode, e.value.dialog.title = e.value.control.add(x.value, s).title || e.value.control.add(x.value, s).label || "新增", Object.keys(x.value).forEach((
|
|
3383
|
-
e.value[
|
|
3386
|
+
(_ = e.value.control.add(x.value, s)) != null && _.click ? e.value.control.add(x.value, s).click(x.value, s) : e.value.control.add(x.value, s).inline === !0 ? (e.value.table.data.unshift({ ...x.value }), n("open", "row-add", { row: x.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add(x.value, s).mode, e.value.dialog.title = e.value.control.add(x.value, s).title || e.value.control.add(x.value, s).label || "新增", Object.keys(x.value).forEach((D) => {
|
|
3387
|
+
e.value[D] && (e.value[D].value = x.value[D]);
|
|
3384
3388
|
}), i.value = !0, n("open", "add", { row: x.value, m: s }), $t());
|
|
3385
3389
|
}, $ = () => {
|
|
3386
3390
|
n("batch", B.value);
|
|
@@ -3389,10 +3393,10 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3389
3393
|
M.value = !0;
|
|
3390
3394
|
});
|
|
3391
3395
|
}, p = async (a, s, m, _) => {
|
|
3392
|
-
var
|
|
3396
|
+
var D, H;
|
|
3393
3397
|
e.value.form.modalState = "edit", l.value = "edit";
|
|
3394
3398
|
try {
|
|
3395
|
-
if (!await ((
|
|
3399
|
+
if (!await ((D = e.value.control) == null ? void 0 : D.validate("edit", { row: a, column: s, index: m, m: _ }))) return;
|
|
3396
3400
|
} catch (j) {
|
|
3397
3401
|
console.error("验证失败:", j);
|
|
3398
3402
|
return;
|
|
@@ -3401,9 +3405,9 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3401
3405
|
e.value[j] && (e.value[j].value = a[j]);
|
|
3402
3406
|
}), i.value = !0, n("open", "edit", { m: _, row: a, column: s, index: m }), $t());
|
|
3403
3407
|
}, S = async (a, s, m, _) => {
|
|
3404
|
-
var
|
|
3408
|
+
var D, H;
|
|
3405
3409
|
try {
|
|
3406
|
-
if (!await ((
|
|
3410
|
+
if (!await ((D = e.value.control) == null ? void 0 : D.validate("delete", { row: a, column: s, index: m, m: _ }))) return;
|
|
3407
3411
|
} catch (j) {
|
|
3408
3412
|
console.error("验证失败:", j);
|
|
3409
3413
|
return;
|
|
@@ -3411,8 +3415,8 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3411
3415
|
if ((H = e.value.control.delete(a, s, m, _)) != null && H.click)
|
|
3412
3416
|
e.value.control.delete(a, s, m, _).click(a, s, m, _);
|
|
3413
3417
|
else {
|
|
3414
|
-
let { message: j, title:
|
|
3415
|
-
Xt.confirm(j,
|
|
3418
|
+
let { message: j, title: he, options: we } = e.value.control.delete(a, s, m, _).dialog;
|
|
3419
|
+
Xt.confirm(j, he, we).then(() => {
|
|
3416
3420
|
n(
|
|
3417
3421
|
"delete",
|
|
3418
3422
|
{ row: a, column: s, index: m, m: _ },
|
|
@@ -3423,11 +3427,11 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3423
3427
|
}).catch(() => {
|
|
3424
3428
|
});
|
|
3425
3429
|
}
|
|
3426
|
-
},
|
|
3427
|
-
var
|
|
3430
|
+
}, I = async (a, s, m, _) => {
|
|
3431
|
+
var D, H, j, he;
|
|
3428
3432
|
e.value.form.modalState = void 0, l.value = "view";
|
|
3429
3433
|
try {
|
|
3430
|
-
if (!await ((
|
|
3434
|
+
if (!await ((D = e.value.control) == null ? void 0 : D.validate("view", { row: a, column: s, index: m, m: _ }))) return;
|
|
3431
3435
|
} catch (we) {
|
|
3432
3436
|
console.error("验证失败:", we);
|
|
3433
3437
|
return;
|
|
@@ -3447,22 +3451,22 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3447
3451
|
}, ((ze = (Ve = e.value.control.view(a, s, m, _)) == null ? void 0 : Ve.container) == null ? void 0 : ze.slots) || {});
|
|
3448
3452
|
}
|
|
3449
3453
|
}
|
|
3450
|
-
}) : ((
|
|
3454
|
+
}) : ((he = e.value.control.view(a, s, m, _)) == null ? void 0 : he["view-mode"]) === "readonly" && (i.value = !0, $t()), n("open", "view", { m: _, row: a, column: s, index: m }));
|
|
3451
3455
|
}, O = (a, s = x.value) => {
|
|
3452
3456
|
Object.assign(a, s);
|
|
3453
3457
|
}, z = (a, s, m, _) => {
|
|
3454
|
-
const
|
|
3455
|
-
|
|
3458
|
+
const D = e.value.control.save(a, s, m, _);
|
|
3459
|
+
D != null && D.click ? D.click(a, s, m, _) : n(
|
|
3456
3460
|
"row-save",
|
|
3457
3461
|
{ row: a, column: s, index: m, data: e.value.table.data },
|
|
3458
3462
|
async (H = !0, j = !0) => {
|
|
3459
3463
|
if (H && e.value.table.load(), j && m === 0) {
|
|
3460
|
-
const
|
|
3464
|
+
const he = Object.entries(e.value).filter(
|
|
3461
3465
|
([we, Ve]) => Ve.type !== "control" && Ve.type !== "hidden"
|
|
3462
3466
|
// && val.editor !== false
|
|
3463
3467
|
);
|
|
3464
3468
|
x.value = Object.fromEntries(
|
|
3465
|
-
|
|
3469
|
+
he.map(([we, Ve]) => [we, Ve.value])
|
|
3466
3470
|
), e.value.table.data[m] = { ...x.value };
|
|
3467
3471
|
}
|
|
3468
3472
|
}
|
|
@@ -3473,12 +3477,12 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3473
3477
|
});
|
|
3474
3478
|
}, 300), de = (a, s) => {
|
|
3475
3479
|
O(a), n("reset", a, s);
|
|
3476
|
-
},
|
|
3480
|
+
}, ye = (a, s, m) => {
|
|
3477
3481
|
var _;
|
|
3478
3482
|
if ((_ = s.control.download(a, s)) != null && _.click)
|
|
3479
3483
|
s.control.download(a, s).click(a, s, m);
|
|
3480
3484
|
else {
|
|
3481
|
-
let
|
|
3485
|
+
let D = Yt(
|
|
3482
3486
|
{
|
|
3483
3487
|
title: s.control.download(a, s).title || s.control.download(a, s).label || "下载",
|
|
3484
3488
|
size: s.control.download(a, s).size || 480,
|
|
@@ -3488,7 +3492,7 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3488
3492
|
items: m,
|
|
3489
3493
|
commitText: s.control.download(a, s).excelLabel,
|
|
3490
3494
|
onExcel: (H, j) => {
|
|
3491
|
-
n("download", H, c.value, j),
|
|
3495
|
+
n("download", H, c.value, j), D();
|
|
3492
3496
|
}
|
|
3493
3497
|
})
|
|
3494
3498
|
}
|
|
@@ -3521,15 +3525,15 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3521
3525
|
}, X = e.value.control, De = {
|
|
3522
3526
|
add: g,
|
|
3523
3527
|
batch: $,
|
|
3524
|
-
download:
|
|
3528
|
+
download: ye,
|
|
3525
3529
|
toggleExpand: w,
|
|
3526
3530
|
setting: G,
|
|
3527
|
-
view:
|
|
3531
|
+
view: I,
|
|
3528
3532
|
edit: p,
|
|
3529
3533
|
delete: S,
|
|
3530
3534
|
save: z
|
|
3531
|
-
}, _e = (a, s, m, _,
|
|
3532
|
-
const j = X == null ? void 0 : X[H](s, m, _,
|
|
3535
|
+
}, _e = (a, s, m, _, D) => a.filter((H) => De[H]).map((H) => {
|
|
3536
|
+
const j = X == null ? void 0 : X[H](s, m, _, D);
|
|
3533
3537
|
return {
|
|
3534
3538
|
name: `control-${H}`,
|
|
3535
3539
|
attr: j,
|
|
@@ -3538,19 +3542,19 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3538
3542
|
sort: (j == null ? void 0 : j.sort) || 0,
|
|
3539
3543
|
groupName: (j == null ? void 0 : j.groupName) || "default"
|
|
3540
3544
|
};
|
|
3541
|
-
}).sort((H, j) => H.sort - j.sort), qe = (a, s, m, _,
|
|
3542
|
-
const
|
|
3543
|
-
return H[
|
|
3545
|
+
}).sort((H, j) => H.sort - j.sort), qe = (a, s, m, _, D) => _e(a, s, m, _, D).reduce((H, j) => {
|
|
3546
|
+
const he = j.groupName || "default";
|
|
3547
|
+
return H[he] || (H[he] = []), H[he].push(j), H;
|
|
3544
3548
|
}, {}), xe = Pe(() => Object.fromEntries(
|
|
3545
3549
|
Object.entries(e.value).filter(
|
|
3546
3550
|
([a, s]) => s.type !== "hidden" && s.hidden !== !0 && s.visible !== !1 && s.showCol !== !1
|
|
3547
3551
|
).map(([a, s]) => (s.sort = typeof s.sort == "number" ? s.sort : 0, [a, s])).sort((a, s) => a[1].sort - s[1].sort)
|
|
3548
3552
|
)), Ue = ne({}), q = (a, s) => {
|
|
3549
|
-
const m = (_,
|
|
3553
|
+
const m = (_, D) => {
|
|
3550
3554
|
for (const H of _) {
|
|
3551
|
-
if (H.value ==
|
|
3555
|
+
if (H.value == D) return H.label;
|
|
3552
3556
|
if (H.children) {
|
|
3553
|
-
const j = m(H.children,
|
|
3557
|
+
const j = m(H.children, D);
|
|
3554
3558
|
if (j) return j;
|
|
3555
3559
|
}
|
|
3556
3560
|
}
|
|
@@ -3558,8 +3562,8 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3558
3562
|
};
|
|
3559
3563
|
if (a.getDicts) {
|
|
3560
3564
|
const _ = s.toString();
|
|
3561
|
-
return Ue.value[_] ? (a.options = Ue.value[_], a.formatter || (a.formatter = (
|
|
3562
|
-
Ue.value[_] =
|
|
3565
|
+
return Ue.value[_] ? (a.options = Ue.value[_], a.formatter || (a.formatter = (D, H, j, he) => a.options && m(a.options, j) || j), Promise.resolve()) : a.getDicts(e.value.table.data).then((D) => {
|
|
3566
|
+
Ue.value[_] = D, a.options = D, a.formatter || (a.formatter = (H, j, he, we) => a.options && m(a.options, he) || he);
|
|
3563
3567
|
});
|
|
3564
3568
|
}
|
|
3565
3569
|
return Promise.resolve();
|
|
@@ -3573,8 +3577,8 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3573
3577
|
console.error("字典加载过程中发生错误:", a);
|
|
3574
3578
|
}
|
|
3575
3579
|
}, Z = (a, s, m, _) => {
|
|
3576
|
-
var
|
|
3577
|
-
return a.table ? (
|
|
3580
|
+
var D, H;
|
|
3581
|
+
return a.table ? (D = a.table(s, m, _)) != null && D.auth ? (H = a.table(s, m, _)) == null ? void 0 : H.auth(s, m, _) : !0 : !1;
|
|
3578
3582
|
}, Ie = () => {
|
|
3579
3583
|
i.value = !1;
|
|
3580
3584
|
};
|
|
@@ -3589,14 +3593,14 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3589
3593
|
Ca(R.value)
|
|
3590
3594
|
]);
|
|
3591
3595
|
a && Array.isArray(a) && a.forEach((_) => {
|
|
3592
|
-
const
|
|
3593
|
-
|
|
3594
|
-
}), s && Array.isArray(s) && s.forEach((_,
|
|
3596
|
+
const D = e.value[_.key];
|
|
3597
|
+
D && (D.width = _.width);
|
|
3598
|
+
}), s && Array.isArray(s) && s.forEach((_, D) => {
|
|
3595
3599
|
const H = e.value[_];
|
|
3596
|
-
H && (H.sort =
|
|
3600
|
+
H && (H.sort = D);
|
|
3597
3601
|
}), m && Array.isArray(m) && m.length > 0 ? m.forEach((_) => {
|
|
3598
|
-
const
|
|
3599
|
-
|
|
3602
|
+
const D = e.value[_];
|
|
3603
|
+
D && (D.showCol = !1);
|
|
3600
3604
|
}) : Object.keys(e.value).filter((_) => e.value[_].type !== "control").forEach((_) => {
|
|
3601
3605
|
e.value[_].showCol = !0;
|
|
3602
3606
|
});
|
|
@@ -3626,9 +3630,9 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3626
3630
|
} catch (a) {
|
|
3627
3631
|
console.error("Error during component initialization:", a), e.value.table.autoWatch || e.value.table.load();
|
|
3628
3632
|
}
|
|
3629
|
-
}), u({ addRow: g, editRow: p, deleteRow: S, readForm:
|
|
3633
|
+
}), u({ addRow: g, editRow: p, deleteRow: S, readForm: I, saveRowData: z, closeDialog: Ie, formData: x }), (a, s) => {
|
|
3630
3634
|
var Ve, ze, He, Ke, pt, xt, Mt;
|
|
3631
|
-
const m = F("el-button-group"), _ = F("el-dropdown-item"),
|
|
3635
|
+
const m = F("el-button-group"), _ = F("el-dropdown-item"), D = F("el-dropdown-menu"), H = F("el-dropdown"), j = F("el-table-column"), he = F("el-table"), we = F("el-pagination");
|
|
3632
3636
|
return v(), U(re, null, [
|
|
3633
3637
|
i.value ? (v(), E(Ht, A({
|
|
3634
3638
|
key: 0,
|
|
@@ -3636,7 +3640,7 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3636
3640
|
"onUpdate:modelValue": s[2] || (s[2] = (J) => i.value = J)
|
|
3637
3641
|
}, e.value.dialog, {
|
|
3638
3642
|
type: e.value.dialog.mode
|
|
3639
|
-
}),
|
|
3643
|
+
}), ge({
|
|
3640
3644
|
default: k(() => [
|
|
3641
3645
|
i.value ? (v(), E(Je(cl), {
|
|
3642
3646
|
key: 0,
|
|
@@ -3645,14 +3649,14 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3645
3649
|
onSubmit: s[1] || (s[1] = (J, ve, te) => Y(ae)(J, ve, te)),
|
|
3646
3650
|
onReset: de,
|
|
3647
3651
|
flag: l.value
|
|
3648
|
-
},
|
|
3652
|
+
}, ge({ _: 2 }, [
|
|
3649
3653
|
W(a.$slots, (J, ve, te) => ({
|
|
3650
3654
|
name: ve,
|
|
3651
3655
|
fn: k((Ne) => [
|
|
3652
3656
|
C(a.$slots, ve, { model: Ne }, void 0, !0)
|
|
3653
3657
|
])
|
|
3654
3658
|
}))
|
|
3655
|
-
]), 1064, ["modelValue", "flag"])) :
|
|
3659
|
+
]), 1064, ["modelValue", "flag"])) : $e("", !0)
|
|
3656
3660
|
]),
|
|
3657
3661
|
_: 2
|
|
3658
3662
|
}, [
|
|
@@ -3687,7 +3691,7 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3687
3691
|
]),
|
|
3688
3692
|
key: "3"
|
|
3689
3693
|
} : void 0
|
|
3690
|
-
]), 1040, ["modelValue", "type"])) :
|
|
3694
|
+
]), 1040, ["modelValue", "type"])) : $e("", !0),
|
|
3691
3695
|
K("div", Ga, [
|
|
3692
3696
|
((Ke = (He = e.value) == null ? void 0 : He.query) == null ? void 0 : Ke.hidden) != !0 ? (v(), U("div", Xa, [
|
|
3693
3697
|
C(a.$slots, "query", {}, () => [
|
|
@@ -3698,7 +3702,7 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3698
3702
|
"onUpdate:info": s[4] || (s[4] = (J) => c.value = J),
|
|
3699
3703
|
onQuery: Ge,
|
|
3700
3704
|
onReset: Te
|
|
3701
|
-
},
|
|
3705
|
+
}, ge({
|
|
3702
3706
|
"q-btns": k(() => [
|
|
3703
3707
|
C(a.$slots, "q-btns", {}, () => [
|
|
3704
3708
|
(v(!0), U(re, null, W(qe(["add", "toggleExpand", "batch", "download", "setting"], x.value, e.value), (J, ve) => (v(), U(re, null, [
|
|
@@ -3726,7 +3730,7 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3726
3730
|
onClick: (nt) => te.func(x.value, e.value, d.value)
|
|
3727
3731
|
}), null, 16, ["title", "disabled", "onClick"]))
|
|
3728
3732
|
];
|
|
3729
|
-
}, !0) :
|
|
3733
|
+
}, !0) : $e("", !0),
|
|
3730
3734
|
C(a.$slots, te.name + "-right", {}, void 0, !0)
|
|
3731
3735
|
], 64))), 256)) : (v(), E(m, { key: 1 }, {
|
|
3732
3736
|
default: k(() => [
|
|
@@ -3755,7 +3759,7 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3755
3759
|
onClick: (nt) => te.func(x.value, e.value, d.value)
|
|
3756
3760
|
}), null, 16, ["title", "disabled", "onClick"]))
|
|
3757
3761
|
];
|
|
3758
|
-
}, !0) :
|
|
3762
|
+
}, !0) : $e("", !0),
|
|
3759
3763
|
C(a.$slots, te.name + "-right", {}, void 0, !0)
|
|
3760
3764
|
], 64))), 256))
|
|
3761
3765
|
]),
|
|
@@ -3774,13 +3778,13 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3774
3778
|
}))
|
|
3775
3779
|
]), 1032, ["modelValue", "info"])
|
|
3776
3780
|
], !0)
|
|
3777
|
-
])) :
|
|
3781
|
+
])) : $e("", !0),
|
|
3778
3782
|
C(a.$slots, "table-title", {
|
|
3779
3783
|
model: e.value,
|
|
3780
3784
|
queryInfo: c.value
|
|
3781
3785
|
}, void 0, !0),
|
|
3782
3786
|
K("div", Qa, [
|
|
3783
|
-
M.value ? (v(), E(
|
|
3787
|
+
M.value ? (v(), E(he, A({ key: 0 }, {
|
|
3784
3788
|
...a.$attrs,
|
|
3785
3789
|
...Y(We)(
|
|
3786
3790
|
e.value.table,
|
|
@@ -3811,7 +3815,7 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3811
3815
|
} : {
|
|
3812
3816
|
...e.value.tableColumns,
|
|
3813
3817
|
...Y(We)(J, (ee) => o.includes(ee))
|
|
3814
|
-
}),
|
|
3818
|
+
}), ge({
|
|
3815
3819
|
header: k(({ column: ee, $index: ue }) => [
|
|
3816
3820
|
ve == "control" ? C(a.$slots, `${ve}-header`, {
|
|
3817
3821
|
key: 0,
|
|
@@ -3886,7 +3890,7 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3886
3890
|
}, { ref_for: !0 }, Q.attr, {
|
|
3887
3891
|
onClick: (st) => Q.func(ee, ue, fe, e.value)
|
|
3888
3892
|
}), null, 16, ["title", "onClick"]))
|
|
3889
|
-
], !0) :
|
|
3893
|
+
], !0) : $e("", !0),
|
|
3890
3894
|
C(a.$slots, Q.name + "-right", {
|
|
3891
3895
|
row: ee,
|
|
3892
3896
|
column: ue,
|
|
@@ -3897,7 +3901,7 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3897
3901
|
ref_for: !0
|
|
3898
3902
|
}, Ce(ee, ue, fe, e.value)), {
|
|
3899
3903
|
dropdown: k(() => [
|
|
3900
|
-
oe(
|
|
3904
|
+
oe(D, null, {
|
|
3901
3905
|
default: k(() => [
|
|
3902
3906
|
(v(!0), U(re, null, W(ot, (Q) => {
|
|
3903
3907
|
var st, gt, y;
|
|
@@ -3907,7 +3911,7 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3907
3911
|
row: ee,
|
|
3908
3912
|
column: ue,
|
|
3909
3913
|
index: fe
|
|
3910
|
-
}, void 0, !0) :
|
|
3914
|
+
}, void 0, !0) : $e("", !0),
|
|
3911
3915
|
Q.attr.auth() ? (v(), E(_, A({
|
|
3912
3916
|
key: 1,
|
|
3913
3917
|
ref_for: !0
|
|
@@ -3941,13 +3945,13 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3941
3945
|
], !0)
|
|
3942
3946
|
]),
|
|
3943
3947
|
_: 2
|
|
3944
|
-
}, 1040)) :
|
|
3948
|
+
}, 1040)) : $e("", !0),
|
|
3945
3949
|
a.$slots[Q.name + "-right"] ? C(a.$slots, Q.name + "-right", {
|
|
3946
3950
|
key: 2,
|
|
3947
3951
|
row: ee,
|
|
3948
3952
|
column: ue,
|
|
3949
3953
|
index: fe
|
|
3950
|
-
}, void 0, !0) :
|
|
3954
|
+
}, void 0, !0) : $e("", !0)
|
|
3951
3955
|
], 64);
|
|
3952
3956
|
}), 256))
|
|
3953
3957
|
]),
|
|
@@ -3991,7 +3995,7 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3991
3995
|
}, { ref_for: !0 }, Q.attr, {
|
|
3992
3996
|
onClick: (st) => Q.func(ee, ue, fe, e.value)
|
|
3993
3997
|
}), null, 16, ["title", "onClick"]))
|
|
3994
|
-
], !0) :
|
|
3998
|
+
], !0) : $e("", !0),
|
|
3995
3999
|
C(a.$slots, Q.name + "-right", {
|
|
3996
4000
|
row: ee,
|
|
3997
4001
|
column: ue,
|
|
@@ -4035,7 +4039,7 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4035
4039
|
class: "g-ctrl-container",
|
|
4036
4040
|
t: "t",
|
|
4037
4041
|
formInfo: ee
|
|
4038
|
-
},
|
|
4042
|
+
}, ge({ _: 2 }, [
|
|
4039
4043
|
W(a.$slots, (ft, ot) => ({
|
|
4040
4044
|
name: ot,
|
|
4041
4045
|
fn: k((ut) => [
|
|
@@ -4070,8 +4074,8 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4070
4074
|
], !0)
|
|
4071
4075
|
]),
|
|
4072
4076
|
_: 3
|
|
4073
|
-
}, 16, ["summary-method"])) :
|
|
4074
|
-
(Mt = (xt = (pt = e.value) == null ? void 0 : pt.table) == null ? void 0 : xt.page) != null && Mt.hidden ?
|
|
4077
|
+
}, 16, ["summary-method"])) : $e("", !0),
|
|
4078
|
+
(Mt = (xt = (pt = e.value) == null ? void 0 : pt.table) == null ? void 0 : xt.page) != null && Mt.hidden ? $e("", !0) : C(a.$slots, "page", { key: 1 }, () => [
|
|
4075
4079
|
oe(we, A({
|
|
4076
4080
|
"page-size": e.value.table.page.pageSize,
|
|
4077
4081
|
"onUpdate:pageSize": s[6] || (s[6] = (J) => e.value.table.page.pageSize = J),
|
|
@@ -4089,7 +4093,7 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4089
4093
|
], 64);
|
|
4090
4094
|
};
|
|
4091
4095
|
}
|
|
4092
|
-
}), Ka = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-
|
|
4096
|
+
}), Ka = /* @__PURE__ */ at(Ja, [["__scopeId", "data-v-0d4992ad"]]), er = { class: "g-tree-table" }, tr = { class: "g-tree-container" }, lr = { class: "g-tree-table-container" }, ar = /* @__PURE__ */ Object.assign({
|
|
4093
4097
|
name: "g-tree-table",
|
|
4094
4098
|
inheritAttrs: !1
|
|
4095
4099
|
}, {
|
|
@@ -4129,7 +4133,7 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4129
4133
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
4130
4134
|
placeholder: "输入节点查询",
|
|
4131
4135
|
clearable: ""
|
|
4132
|
-
}, null, 8, ["modelValue"])) :
|
|
4136
|
+
}, null, 8, ["modelValue"])) : $e("", !0),
|
|
4133
4137
|
K("div", tr, [
|
|
4134
4138
|
oe(ie, A({
|
|
4135
4139
|
style: { width: e.value },
|
|
@@ -4138,7 +4142,7 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4138
4142
|
ref_key: "treeRef",
|
|
4139
4143
|
ref: f,
|
|
4140
4144
|
onNodeClick: d
|
|
4141
|
-
}, V.$attrs.tree),
|
|
4145
|
+
}, V.$attrs.tree), ge({
|
|
4142
4146
|
default: k(({ node: se, data: Ce }) => [
|
|
4143
4147
|
C(V.$slots, "tree", {
|
|
4144
4148
|
node: se,
|
|
@@ -4162,7 +4166,7 @@ const Wa = /* @__PURE__ */ sl(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4162
4166
|
oe(le, A({
|
|
4163
4167
|
modelValue: l.value,
|
|
4164
4168
|
"onUpdate:modelValue": R[1] || (R[1] = (se) => l.value = se)
|
|
4165
|
-
}, V.$attrs, { onLoad: o }),
|
|
4169
|
+
}, V.$attrs, { onLoad: o }), ge({ _: 2 }, [
|
|
4166
4170
|
W(V.$slots, (se, Ce, Oe) => ({
|
|
4167
4171
|
name: Ce,
|
|
4168
4172
|
fn: k((Ee) => [
|