vue-2024-ui 0.2.107 → 0.2.109
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 +287 -287
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ql, { dayjs as Al, ElForm as Dt, ElButtonGroup as It, ElButton as Ne, ElPopover as Lt, ElIcon as Ht, ElMessage as ft, ElMessageBox as pl } from "element-plus";
|
|
2
|
-
import { ref as re, useModel as
|
|
2
|
+
import { ref as re, useModel as nt, nextTick as at, onMounted as Mt, computed as Be, resolveComponent as H, openBlock as m, createElementBlock as z, Fragment as se, createElementVNode as K, createBlock as D, createCommentVNode as _e, normalizeStyle as Ue, unref as F, mergeProps as Y, withCtx as $, renderSlot as C, renderList as W, createTextVNode as Le, toDisplayString as Ie, createSlots as ke, createVNode as de, normalizeProps as qt, resolveDynamicComponent as Ze, guardReactiveProps as ml, mergeModels as ot, useSlots as hl, inject as jt, withModifiers as bt, Transition as Yl, withDirectives as Fl, vShow as jl, h as Se, useAttrs as zt, onUnmounted as zl, onBeforeUnmount as Ul, normalizeClass as yl, watchEffect as Ll, onBeforeMount as Hl, watch as gl, createApp as Rl } from "vue";
|
|
3
3
|
import { Plus as bl, ZoomIn as Bl, Delete as Wt, Search as Pl, Refresh as Gt, More as Nl, CircleClose as Wl, CircleCheckFilled as Gl, CircleCheck as Rt, Minus as Xl, Close as Ql, Switch as wl, FullScreen as Zl, InfoFilled as $l, Download as kl, DocumentCopy as Jl, Setting as Kl, CirclePlus as ea, Edit as _l, View as ta, ArrowUp as la, ArrowDown as aa } from "@element-plus/icons-vue";
|
|
4
4
|
import xl from "sortablejs";
|
|
5
5
|
import { Dexie as ra } from "dexie";
|
|
@@ -209,7 +209,7 @@ var Ml = { exports: {} };
|
|
|
209
209
|
} }, R = "en", J = {};
|
|
210
210
|
J[R] = Q;
|
|
211
211
|
var fe = "$isDayjsObject", Te = function(B) {
|
|
212
|
-
return B instanceof
|
|
212
|
+
return B instanceof we || !(!B || !B[fe]);
|
|
213
213
|
}, Ve = function B(A, y, _) {
|
|
214
214
|
var w;
|
|
215
215
|
if (!A) return R;
|
|
@@ -226,12 +226,12 @@ var Ml = { exports: {} };
|
|
|
226
226
|
}, ve = function(B, A) {
|
|
227
227
|
if (Te(B)) return B.clone();
|
|
228
228
|
var y = typeof A == "object" ? A : {};
|
|
229
|
-
return y.date = B, y.args = arguments, new
|
|
229
|
+
return y.date = B, y.args = arguments, new we(y);
|
|
230
230
|
}, L = le;
|
|
231
231
|
L.l = Ve, L.i = Te, L.w = function(B, A) {
|
|
232
232
|
return ve(B, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
|
|
233
233
|
};
|
|
234
|
-
var
|
|
234
|
+
var we = function() {
|
|
235
235
|
function B(y) {
|
|
236
236
|
this.$L = Ve(y.locale, null, !0), this.parse(y), this.$x = this.$x || y.x || {}, this[fe] = !0;
|
|
237
237
|
}
|
|
@@ -277,7 +277,7 @@ var Ml = { exports: {} };
|
|
|
277
277
|
return p ? ie : ie.endOf(v);
|
|
278
278
|
}, I = function(Fe, be) {
|
|
279
279
|
return L.w(w.toDate()[Fe].apply(w.toDate("s"), (p ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(be)), w);
|
|
280
|
-
}, ee = this.$W, ae = this.$M,
|
|
280
|
+
}, ee = this.$W, ae = this.$M, xe = this.$D, Ye = "set" + (this.$u ? "UTC" : "");
|
|
281
281
|
switch (S) {
|
|
282
282
|
case c:
|
|
283
283
|
return p ? M(1, 0) : M(31, 11);
|
|
@@ -285,7 +285,7 @@ var Ml = { exports: {} };
|
|
|
285
285
|
return p ? M(1, ae) : M(0, ae + 1);
|
|
286
286
|
case h:
|
|
287
287
|
var oe = this.$locale().weekStart || 0, me = (ee < oe ? ee + 7 : ee) - oe;
|
|
288
|
-
return M(p ?
|
|
288
|
+
return M(p ? xe - me : xe + (6 - me), ae);
|
|
289
289
|
case v:
|
|
290
290
|
case q:
|
|
291
291
|
return I(Ye + "Hours", 0);
|
|
@@ -315,8 +315,8 @@ var Ml = { exports: {} };
|
|
|
315
315
|
var w, p = this;
|
|
316
316
|
y = Number(y);
|
|
317
317
|
var S = L.p(_), M = function(ae) {
|
|
318
|
-
var
|
|
319
|
-
return L.w(
|
|
318
|
+
var xe = ve(p);
|
|
319
|
+
return L.w(xe.date(xe.date() + Math.round(ae * y)), p);
|
|
320
320
|
};
|
|
321
321
|
if (S === u) return this.set(u, this.$M + y);
|
|
322
322
|
if (S === c) return this.set(c, this.$y + y);
|
|
@@ -329,7 +329,7 @@ var Ml = { exports: {} };
|
|
|
329
329
|
}, A.format = function(y) {
|
|
330
330
|
var _ = this, w = this.$locale();
|
|
331
331
|
if (!this.isValid()) return w.invalidDate || U;
|
|
332
|
-
var p = y || "YYYY-MM-DDTHH:mm:ssZ", S = L.z(this), M = this.$H, I = this.$m, ee = this.$M, ae = w.weekdays,
|
|
332
|
+
var p = y || "YYYY-MM-DDTHH:mm:ssZ", S = L.z(this), M = this.$H, I = this.$m, ee = this.$M, ae = w.weekdays, xe = w.months, Ye = w.meridiem, oe = function(be, ie, Ge, j) {
|
|
333
333
|
return be && (be[ie] || be(_, p)) || Ge[ie].slice(0, j);
|
|
334
334
|
}, me = function(be) {
|
|
335
335
|
return L.s(M % 12 || 12, be, "0");
|
|
@@ -349,9 +349,9 @@ var Ml = { exports: {} };
|
|
|
349
349
|
case "MM":
|
|
350
350
|
return L.s(ee + 1, 2, "0");
|
|
351
351
|
case "MMM":
|
|
352
|
-
return oe(w.monthsShort, ee,
|
|
352
|
+
return oe(w.monthsShort, ee, xe, 3);
|
|
353
353
|
case "MMMM":
|
|
354
|
-
return oe(
|
|
354
|
+
return oe(xe, ee);
|
|
355
355
|
case "D":
|
|
356
356
|
return _.$D;
|
|
357
357
|
case "DD":
|
|
@@ -395,18 +395,18 @@ var Ml = { exports: {} };
|
|
|
395
395
|
}, A.utcOffset = function() {
|
|
396
396
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
397
397
|
}, A.diff = function(y, _, w) {
|
|
398
|
-
var p, S = this, M = L.p(_), I = ve(y), ee = (I.utcOffset() - this.utcOffset()) * l, ae = this - I,
|
|
398
|
+
var p, S = this, M = L.p(_), I = ve(y), ee = (I.utcOffset() - this.utcOffset()) * l, ae = this - I, xe = function() {
|
|
399
399
|
return L.m(S, I);
|
|
400
400
|
};
|
|
401
401
|
switch (M) {
|
|
402
402
|
case c:
|
|
403
|
-
p =
|
|
403
|
+
p = xe() / 12;
|
|
404
404
|
break;
|
|
405
405
|
case u:
|
|
406
|
-
p =
|
|
406
|
+
p = xe();
|
|
407
407
|
break;
|
|
408
408
|
case r:
|
|
409
|
-
p =
|
|
409
|
+
p = xe() / 3;
|
|
410
410
|
break;
|
|
411
411
|
case h:
|
|
412
412
|
p = (ae - ee) / 6048e5;
|
|
@@ -446,36 +446,36 @@ var Ml = { exports: {} };
|
|
|
446
446
|
}, A.toString = function() {
|
|
447
447
|
return this.$d.toUTCString();
|
|
448
448
|
}, B;
|
|
449
|
-
}(), Me =
|
|
449
|
+
}(), Me = we.prototype;
|
|
450
450
|
return ve.prototype = Me, [["$ms", o], ["$s", t], ["$m", f], ["$H", T], ["$W", v], ["$M", u], ["$y", c], ["$D", q]].forEach(function(B) {
|
|
451
451
|
Me[B[1]] = function(A) {
|
|
452
452
|
return this.$g(A, B[0], B[1]);
|
|
453
453
|
};
|
|
454
454
|
}), ve.extend = function(B, A) {
|
|
455
|
-
return B.$i || (B(A,
|
|
455
|
+
return B.$i || (B(A, we, ve), B.$i = !0), ve;
|
|
456
456
|
}, ve.locale = Ve, ve.isDayjs = Te, ve.unix = function(B) {
|
|
457
457
|
return ve(1e3 * B);
|
|
458
458
|
}, ve.en = J[R], ve.Ls = J, ve.p = {}, ve;
|
|
459
459
|
});
|
|
460
460
|
})(Ml);
|
|
461
461
|
var sa = Ml.exports;
|
|
462
|
-
const At = /* @__PURE__ */ Cl(sa),
|
|
462
|
+
const At = /* @__PURE__ */ Cl(sa), rt = (n, d) => {
|
|
463
463
|
const e = n.__vccOpts || n;
|
|
464
464
|
for (const [l, s] of d)
|
|
465
465
|
e[l] = s;
|
|
466
466
|
return e;
|
|
467
467
|
}, ua = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, ia = ["innerHTML"], da = ["innerHTML"], ca = ["title"], fa = ["innerHTML"], va = ["innerHTML"], pa = ["innerHTML"], ma = ["innerHTML"], ha = ["innerHTML"], ya = ["innerHTML"], ga = ["innerHTML"], ba = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
468
468
|
__name: "g-ctrl",
|
|
469
|
-
props: /* @__PURE__ */
|
|
469
|
+
props: /* @__PURE__ */ ot(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
470
470
|
modelValue: { required: !0 },
|
|
471
471
|
modelModifiers: {}
|
|
472
472
|
}),
|
|
473
473
|
emits: ["update:modelValue"],
|
|
474
474
|
setup(n) {
|
|
475
|
-
var A, y, _, w, p, S, M, I, ee, ae,
|
|
476
|
-
const d = n, e = re(d.item || {}), l =
|
|
477
|
-
!((p = o.value) != null && p.startsWith("text")) && !((S = o.value) != null && S.startsWith("link")) && !((M = o.value) != null && M.startsWith("tag")) && !((I = o.value) != null && I.startsWith("div")) && !((ee = o.value) != null && ee.startsWith("span")) && !((ae = o.value) != null && ae.startsWith("avatar")) && ((
|
|
478
|
-
const c = re({ display: "flex", flex: 1 });
|
|
475
|
+
var A, y, _, w, p, S, M, I, ee, ae, xe, Ye, oe, me, Fe, be, ie, Ge;
|
|
476
|
+
const d = n, e = re(d.item || {}), l = nt(n, "modelValue"), s = re(d.ctrlKey), o = re(d.ctrlType), t = re(d.model), f = re([]), T = re([]), v = re(!1), h = re(!1), u = re(0), r = re((y = (A = t == null ? void 0 : t.value) == null ? void 0 : A.form) != null && y["default-placeholder"] ? (w = (_ = t == null ? void 0 : t.value) == null ? void 0 : _[s == null ? void 0 : s.value]) == null ? void 0 : w.label : "");
|
|
477
|
+
!((p = o.value) != null && p.startsWith("text")) && !((S = o.value) != null && S.startsWith("link")) && !((M = o.value) != null && M.startsWith("tag")) && !((I = o.value) != null && I.startsWith("div")) && !((ee = o.value) != null && ee.startsWith("span")) && !((ae = o.value) != null && ae.startsWith("avatar")) && ((xe = e.value) != null && xe.style || (e.value.style = { width: ((oe = (Ye = e.value) == null ? void 0 : Ye.style) == null ? void 0 : oe.width) || "100%" }));
|
|
478
|
+
const c = re({ display: "flex", flex: 1, whiteSpace: "pre-wrap" });
|
|
479
479
|
let q = d.t === "t" ? "center" : "flex-start";
|
|
480
480
|
((me = e.value) == null ? void 0 : me.align) == "right" ? q = "flex-end" : ((Fe = e.value) == null ? void 0 : Fe.align) == "left" ? q = "flex-start" : ((be = e.value) == null ? void 0 : be.align) == "center" && (q = "center");
|
|
481
481
|
const U = ((ie = e.value) == null ? void 0 : ie.style) || {};
|
|
@@ -525,7 +525,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
525
525
|
...e.value
|
|
526
526
|
}), J = re((j) => {
|
|
527
527
|
e.value["remote-method"](j, (E) => {
|
|
528
|
-
|
|
528
|
+
at(() => {
|
|
529
529
|
T.value = E;
|
|
530
530
|
});
|
|
531
531
|
});
|
|
@@ -575,7 +575,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
575
575
|
} else
|
|
576
576
|
u.value = 0;
|
|
577
577
|
v.value = !0;
|
|
578
|
-
},
|
|
578
|
+
}, we = re(null), Me = (j, E = 2) => {
|
|
579
579
|
if (j === "") {
|
|
580
580
|
l.value = "";
|
|
581
581
|
return;
|
|
@@ -586,17 +586,17 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
586
586
|
X = X.substring(0, Re + 1) + X.substring(Re + 1).replace(/\./g, "");
|
|
587
587
|
}
|
|
588
588
|
if (X = X.replace(/^-\./, "-0."), X = X.replace(/^\./, "0."), X = X.replace(/^-0+(\d)/, "-$1"), X = X.replace(/^0+(\d)/, "$1"), (X === "-" || X === "" || X === ".") && (X = "0"), E >= 0 && X.includes(".")) {
|
|
589
|
-
const [Re,
|
|
590
|
-
|
|
589
|
+
const [Re, et] = X.split(".");
|
|
590
|
+
et.length > E && (X = Re + "." + et.substring(0, E));
|
|
591
591
|
}
|
|
592
592
|
l.value = X;
|
|
593
593
|
};
|
|
594
|
-
|
|
595
|
-
var X, Oe, Ae, Re,
|
|
594
|
+
Mt(async () => {
|
|
595
|
+
var X, Oe, Ae, Re, et, vt, yt, st;
|
|
596
596
|
e.value && e.value["remote-method"] && (R.value["remote-method"] = J), (Oe = (X = t.value[s.value]) == null ? void 0 : X.options) != null && Oe.length && (T.value = t.value[s.value].options);
|
|
597
|
-
const j = (Xe, Je = "options",
|
|
598
|
-
typeof e.value.getDicts == "function" && fe(Je).catch((
|
|
599
|
-
console.error(`Failed to load ${Je} for ${Xe}:`,
|
|
597
|
+
const j = (Xe, Je = "options", tt = t.value[s.value]) => {
|
|
598
|
+
typeof e.value.getDicts == "function" && fe(Je).catch((a) => {
|
|
599
|
+
console.error(`Failed to load ${Je} for ${Xe}:`, a);
|
|
600
600
|
});
|
|
601
601
|
};
|
|
602
602
|
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(o.value) && j(o.value), o.value === De.TREESELECT && await (async () => {
|
|
@@ -608,8 +608,8 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
608
608
|
})(), d.t == "q") {
|
|
609
609
|
let Xe = e.value.type || o.value;
|
|
610
610
|
(Xe === void 0 || o.value === "input" || Xe == De.NUMBER || Xe == De.EMAIL || Xe == "url" || Xe == "text") && e.value.onKeyup == null && (e.value.onKeyup = (Je) => {
|
|
611
|
-
var
|
|
612
|
-
(Je.keyCode === 13 || Je.key === "Enter") && ((
|
|
611
|
+
var tt, a;
|
|
612
|
+
(Je.keyCode === 13 || Je.key === "Enter") && ((a = (tt = t.value) == null ? void 0 : tt.table) == null || a.load());
|
|
613
613
|
}), [
|
|
614
614
|
"radio",
|
|
615
615
|
"switch",
|
|
@@ -627,19 +627,19 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
627
627
|
"datetimerange",
|
|
628
628
|
"week"
|
|
629
629
|
].includes(Xe) && e.value.onChange === void 0 && (e.value.onChange = (Je) => {
|
|
630
|
-
var
|
|
631
|
-
(
|
|
630
|
+
var tt, a;
|
|
631
|
+
(a = (tt = t.value) == null ? void 0 : tt.table) == null || a.load();
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
|
-
o.value == "image" && (e.value.width && ((Ae =
|
|
634
|
+
o.value == "image" && (e.value.width && ((Ae = we.value) != null && Ae.$el) && we.value.$el.style.setProperty("--up-width", typeof e.value.width == "number" ? e.value.width + "px" : e.value.width), e.value.height && ((Re = we.value) != null && Re.$el) && we.value.$el.style.setProperty("--up-height", typeof e.value.height == "number" ? e.value.height + "px" : e.value.height), e.value.fontSize && ((et = we.value) != null && et.$el) && we.value.$el.style.setProperty("--up-font-size", typeof e.value.fontSize == "number" ? e.value.fontSize + "px" : e.value.fontSize), (vt = e.value.img) != null && vt.fit && ((yt = we.value) != null && yt.$el) && we.value.$el.style.setProperty("--up-fit", (st = e.value.img) == null ? void 0 : st.fit));
|
|
635
635
|
});
|
|
636
636
|
const B = Be(() => {
|
|
637
637
|
var j;
|
|
638
638
|
return e.value["file-list"] && e.value["file-list"].length ? (j = e.value["file-list"]) == null ? void 0 : j.map((E) => E == null ? void 0 : E.url) : [l.value];
|
|
639
639
|
});
|
|
640
640
|
return (j, E) => {
|
|
641
|
-
var ut, ne, ce, pe,
|
|
642
|
-
const X = H("el-image-viewer"), Oe = H("el-radio"), Ae = H("el-radio-group"), Re = H("el-radio-button"),
|
|
641
|
+
var ut, ne, ce, pe, pt, mt, it, dt, $t, Z, ct, kt, _t, Et, Zt, Jt, Kt, el, tl, ll, al, rl, nl, ol, sl, ul, il, dl;
|
|
642
|
+
const X = H("el-image-viewer"), Oe = H("el-radio"), Ae = H("el-radio-group"), Re = H("el-radio-button"), et = H("el-checkbox"), vt = H("el-checkbox-group"), yt = H("el-checkbox-button"), st = H("g-select-option"), Xe = H("el-option"), Je = H("el-select"), tt = H("el-tree-select"), a = H("el-time-picker"), i = H("el-time-select"), g = H("el-date-picker"), x = H("el-color-picker"), O = H("el-rate"), P = H("el-slider"), N = H("el-switch"), $e = H("el-transfer"), Ee = H("el-cascader"), qe = H("el-icon"), je = H("el-image"), Pe = H("el-tooltip"), Ke = H("el-upload"), gt = H("el-autocomplete"), St = H("el-input-number"), Tt = H("el-input-tag"), te = H("el-input"), ye = H("el-link"), ue = H("el-text"), He = H("el-avatar"), Qe = H("el-tag");
|
|
643
643
|
return m(), z(se, null, [
|
|
644
644
|
K("div", null, [
|
|
645
645
|
v.value ? (m(), D(X, {
|
|
@@ -648,7 +648,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
648
648
|
"initial-index": u.value,
|
|
649
649
|
"url-list": B.value,
|
|
650
650
|
onClose: E[0] || (E[0] = (b) => v.value = !1)
|
|
651
|
-
}, null, 8, ["initial-index", "url-list"])) :
|
|
651
|
+
}, null, 8, ["initial-index", "url-list"])) : _e("", !0)
|
|
652
652
|
]),
|
|
653
653
|
K("div", {
|
|
654
654
|
style: Ue([{ display: "flex", width: "100%" }, c.value]),
|
|
@@ -688,7 +688,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
688
688
|
], !0)
|
|
689
689
|
]),
|
|
690
690
|
_: 3
|
|
691
|
-
}, 16, ["modelValue", "disabled"])) : o.value == F(De).CHECKBOX ? (m(), D(
|
|
691
|
+
}, 16, ["modelValue", "disabled"])) : o.value == F(De).CHECKBOX ? (m(), D(et, Y({
|
|
692
692
|
key: 2,
|
|
693
693
|
modelValue: l.value,
|
|
694
694
|
"onUpdate:modelValue": E[3] || (E[3] = (b) => l.value = b),
|
|
@@ -700,7 +700,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
700
700
|
], !0)
|
|
701
701
|
]),
|
|
702
702
|
_: 3
|
|
703
|
-
}, 16, ["modelValue", "disabled"])) : o.value == F(De).CHECKBOXGROUP ? (m(), D(
|
|
703
|
+
}, 16, ["modelValue", "disabled"])) : o.value == F(De).CHECKBOXGROUP ? (m(), D(vt, Y({
|
|
704
704
|
key: 3,
|
|
705
705
|
modelValue: l.value,
|
|
706
706
|
"onUpdate:modelValue": E[4] || (E[4] = (b) => l.value = b),
|
|
@@ -708,7 +708,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
708
708
|
}, e.value), {
|
|
709
709
|
default: $(() => [
|
|
710
710
|
C(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
|
|
711
|
-
(m(!0), z(se, null, W(T.value, (b) => (m(), D(
|
|
711
|
+
(m(!0), z(se, null, W(T.value, (b) => (m(), D(et, Y({ ref_for: !0 }, b), {
|
|
712
712
|
default: $(() => [
|
|
713
713
|
C(j.$slots, `${d.t}-${s.value}-options`, { option: b }, () => [
|
|
714
714
|
Le(Ie(b.label), 1)
|
|
@@ -719,15 +719,15 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
719
719
|
], !0)
|
|
720
720
|
]),
|
|
721
721
|
_: 3
|
|
722
|
-
}, 16, ["modelValue", "disabled"])) : o.value == F(De).CHECKBOXGROUPBUTTON ? (m(), D(
|
|
722
|
+
}, 16, ["modelValue", "disabled"])) : o.value == F(De).CHECKBOXGROUPBUTTON ? (m(), D(vt, Y({
|
|
723
723
|
key: 4,
|
|
724
724
|
modelValue: l.value,
|
|
725
725
|
"onUpdate:modelValue": E[5] || (E[5] = (b) => l.value = b),
|
|
726
|
-
disabled: (
|
|
726
|
+
disabled: (pt = t.value[s.value]) == null ? void 0 : pt.disabled
|
|
727
727
|
}, F(We)(e.value, (b) => b != "type")), {
|
|
728
728
|
default: $(() => [
|
|
729
729
|
C(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
|
|
730
|
-
(m(!0), z(se, null, W(T.value, (b) => (m(), D(
|
|
730
|
+
(m(!0), z(se, null, W(T.value, (b) => (m(), D(yt, Y({ ref_for: !0 }, b), {
|
|
731
731
|
default: $(() => [
|
|
732
732
|
C(j.$slots, `${d.t}-${s.value}-options`, { option: b }, void 0, !0)
|
|
733
733
|
]),
|
|
@@ -736,7 +736,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
736
736
|
], !0)
|
|
737
737
|
]),
|
|
738
738
|
_: 3
|
|
739
|
-
}, 16, ["modelValue", "disabled"])) : o.value === F(De).SELECT ? (m(), D(
|
|
739
|
+
}, 16, ["modelValue", "disabled"])) : o.value === F(De).SELECT ? (m(), D(Je, Y({
|
|
740
740
|
key: 5,
|
|
741
741
|
modelValue: l.value,
|
|
742
742
|
"onUpdate:modelValue": E[6] || (E[6] = (b) => l.value = b),
|
|
@@ -745,8 +745,8 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
745
745
|
onClear: E[7] || (E[7] = () => {
|
|
746
746
|
d.t == "q" && t.value.table.load();
|
|
747
747
|
}),
|
|
748
|
-
disabled: (
|
|
749
|
-
}, R.value),
|
|
748
|
+
disabled: (mt = t.value[s.value]) == null ? void 0 : mt.disabled
|
|
749
|
+
}, R.value), ke({
|
|
750
750
|
default: $(() => {
|
|
751
751
|
var b;
|
|
752
752
|
return [
|
|
@@ -757,7 +757,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
757
757
|
(m(!0), z(se, null, W(T.value, (he) => (m(), z(se, {
|
|
758
758
|
key: he.value
|
|
759
759
|
}, [
|
|
760
|
-
de(
|
|
760
|
+
de(Xe, Y({ ref_for: !0 }, F(We)(he, (ge) => ge != "children"), {
|
|
761
761
|
onClick: (ge) => {
|
|
762
762
|
R.value.change && R.value.change(he), Te();
|
|
763
763
|
}
|
|
@@ -769,14 +769,14 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
769
769
|
key: 0,
|
|
770
770
|
option: he
|
|
771
771
|
}, () => {
|
|
772
|
-
var
|
|
772
|
+
var lt;
|
|
773
773
|
return [
|
|
774
|
-
de(
|
|
775
|
-
columns: (
|
|
774
|
+
de(st, {
|
|
775
|
+
columns: (lt = e.value) == null ? void 0 : lt.columns,
|
|
776
776
|
data: he,
|
|
777
777
|
t: d.t
|
|
778
|
-
},
|
|
779
|
-
W(j.$slots, (
|
|
778
|
+
}, ke({ _: 2 }, [
|
|
779
|
+
W(j.$slots, (xt, Ut) => ({
|
|
780
780
|
name: Ut,
|
|
781
781
|
fn: $((Vt) => [
|
|
782
782
|
C(j.$slots, Ut, {
|
|
@@ -788,33 +788,33 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
788
788
|
}))
|
|
789
789
|
]), 1032, ["columns", "data", "t"])
|
|
790
790
|
];
|
|
791
|
-
}, !0) :
|
|
791
|
+
}, !0) : _e("", !0)
|
|
792
792
|
];
|
|
793
793
|
}),
|
|
794
794
|
_: 2
|
|
795
795
|
}, 1040, ["onClick"]),
|
|
796
|
-
he.children && he.children.length ? (m(!0), z(se, { key: 0 }, W(he.children, (ge) => (m(), D(
|
|
796
|
+
he.children && he.children.length ? (m(!0), z(se, { key: 0 }, W(he.children, (ge) => (m(), D(Xe, Y({
|
|
797
797
|
style: { "margin-left": "20px" },
|
|
798
798
|
key: ge.value
|
|
799
|
-
}, { ref_for: !0 }, F(We)(ge, (
|
|
800
|
-
onClick: (
|
|
799
|
+
}, { ref_for: !0 }, F(We)(ge, (lt) => lt != "children"), {
|
|
800
|
+
onClick: (lt) => {
|
|
801
801
|
R.value.change && R.value.change(ge), Te();
|
|
802
802
|
}
|
|
803
803
|
}), {
|
|
804
804
|
default: $(() => {
|
|
805
|
-
var
|
|
805
|
+
var lt;
|
|
806
806
|
return [
|
|
807
|
-
(
|
|
807
|
+
(lt = e.value) != null && lt.columns ? C(j.$slots, `${d.t}-${s.value}-options`, {
|
|
808
808
|
key: 0,
|
|
809
809
|
option: ge
|
|
810
810
|
}, () => {
|
|
811
|
-
var
|
|
811
|
+
var xt;
|
|
812
812
|
return [
|
|
813
|
-
de(
|
|
814
|
-
columns: (
|
|
813
|
+
de(st, {
|
|
814
|
+
columns: (xt = e.value) == null ? void 0 : xt.columns,
|
|
815
815
|
data: ge,
|
|
816
816
|
t: d.t
|
|
817
|
-
},
|
|
817
|
+
}, ke({ _: 2 }, [
|
|
818
818
|
W(j.$slots, (Ut, Vt) => ({
|
|
819
819
|
name: Vt,
|
|
820
820
|
fn: $((Ol) => [
|
|
@@ -827,13 +827,13 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
827
827
|
}))
|
|
828
828
|
]), 1032, ["columns", "data", "t"])
|
|
829
829
|
];
|
|
830
|
-
}, !0) :
|
|
830
|
+
}, !0) : _e("", !0)
|
|
831
831
|
];
|
|
832
832
|
}),
|
|
833
833
|
_: 2
|
|
834
|
-
}, 1040, ["onClick"]))), 128)) :
|
|
834
|
+
}, 1040, ["onClick"]))), 128)) : _e("", !0)
|
|
835
835
|
], 64))), 128))
|
|
836
|
-
], !0) :
|
|
836
|
+
], !0) : _e("", !0)
|
|
837
837
|
];
|
|
838
838
|
}),
|
|
839
839
|
_: 2
|
|
@@ -843,15 +843,15 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
843
843
|
fn: $(() => {
|
|
844
844
|
var b;
|
|
845
845
|
return [
|
|
846
|
-
de(
|
|
846
|
+
de(st, {
|
|
847
847
|
columns: (b = e.value) == null ? void 0 : b.columns,
|
|
848
848
|
title: !0,
|
|
849
849
|
t: d.t
|
|
850
|
-
},
|
|
850
|
+
}, ke({ _: 2 }, [
|
|
851
851
|
W(j.$slots, (he, ge) => ({
|
|
852
852
|
name: ge,
|
|
853
|
-
fn: $((
|
|
854
|
-
C(j.$slots, ge, { data:
|
|
853
|
+
fn: $((lt) => [
|
|
854
|
+
C(j.$slots, ge, { data: lt }, void 0, !0)
|
|
855
855
|
])
|
|
856
856
|
}))
|
|
857
857
|
]), 1032, ["columns", "t"])
|
|
@@ -865,13 +865,13 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
865
865
|
C(j.$slots, `${d.t}-${s.value}-${b}`, { form: n.formInfo }, void 0, !0)
|
|
866
866
|
])
|
|
867
867
|
}))
|
|
868
|
-
]), 1040, ["modelValue", "placeholder", "clearable", "disabled"])) : o.value == F(De).TREESELECT ? (m(), D(
|
|
868
|
+
]), 1040, ["modelValue", "placeholder", "clearable", "disabled"])) : o.value == F(De).TREESELECT ? (m(), D(tt, Y({
|
|
869
869
|
key: 6,
|
|
870
870
|
modelValue: l.value,
|
|
871
871
|
"onUpdate:modelValue": E[8] || (E[8] = (b) => l.value = b),
|
|
872
872
|
placeholder: r.value,
|
|
873
873
|
disabled: (dt = t.value[s.value]) == null ? void 0 : dt.disabled
|
|
874
|
-
}, e.value, { data: f.value }),
|
|
874
|
+
}, e.value, { data: f.value }), ke({ _: 2 }, [
|
|
875
875
|
W(V(), (b) => ({
|
|
876
876
|
name: b,
|
|
877
877
|
fn: $((he) => [
|
|
@@ -884,7 +884,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
884
884
|
"onUpdate:modelValue": E[9] || (E[9] = (b) => l.value = b),
|
|
885
885
|
"arrow-control": "",
|
|
886
886
|
format: "HH:mm:ss",
|
|
887
|
-
disabled: (
|
|
887
|
+
disabled: ($t = t.value[s.value]) == null ? void 0 : $t.disabled
|
|
888
888
|
}, e.value, { placeholder: r.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : o.value == F(De).TIMESELECT ? (m(), D(i, Y({
|
|
889
889
|
key: 8,
|
|
890
890
|
modelValue: l.value,
|
|
@@ -904,7 +904,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
904
904
|
placeholder: r.value,
|
|
905
905
|
"value-format": le(o.value),
|
|
906
906
|
disabled: (ct = t.value[s.value]) == null ? void 0 : ct.disabled
|
|
907
|
-
}, e.value),
|
|
907
|
+
}, e.value), ke({ _: 2 }, [
|
|
908
908
|
W(V(), (b) => ({
|
|
909
909
|
name: b,
|
|
910
910
|
fn: $((he) => [
|
|
@@ -919,30 +919,30 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
919
919
|
key: 11,
|
|
920
920
|
modelValue: l.value,
|
|
921
921
|
"onUpdate:modelValue": E[13] || (E[13] = (b) => l.value = b),
|
|
922
|
-
disabled: (
|
|
922
|
+
disabled: (kt = t.value[s.value]) == null ? void 0 : kt.disabled
|
|
923
923
|
}, e.value), null, 16, ["modelValue", "disabled"])) : o.value == F(De).SLIDER ? (m(), D(P, Y({
|
|
924
924
|
key: 12,
|
|
925
925
|
modelValue: l.value,
|
|
926
926
|
"onUpdate:modelValue": E[14] || (E[14] = (b) => l.value = b),
|
|
927
|
-
disabled: (
|
|
927
|
+
disabled: (_t = t.value[s.value]) == null ? void 0 : _t.disabled
|
|
928
928
|
}, e.value), null, 16, ["modelValue", "disabled"])) : o.value == F(De).SWITCH ? (m(), D(N, Y({
|
|
929
929
|
key: 13,
|
|
930
930
|
modelValue: l.value,
|
|
931
931
|
"onUpdate:modelValue": E[15] || (E[15] = (b) => l.value = b),
|
|
932
932
|
inlinePrompt: !0,
|
|
933
933
|
disabled: (Et = t.value[s.value]) == null ? void 0 : Et.disabled
|
|
934
|
-
}, e.value),
|
|
934
|
+
}, e.value), ke({ _: 2 }, [
|
|
935
935
|
W(V(), (b) => ({
|
|
936
936
|
name: b,
|
|
937
937
|
fn: $((he) => [
|
|
938
938
|
C(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
|
|
939
939
|
])
|
|
940
940
|
}))
|
|
941
|
-
]), 1040, ["modelValue", "disabled"])) : o.value == F(De).TRANSFER ? (m(), D(
|
|
941
|
+
]), 1040, ["modelValue", "disabled"])) : o.value == F(De).TRANSFER ? (m(), D($e, Y({
|
|
942
942
|
key: 14,
|
|
943
943
|
modelValue: l.value,
|
|
944
944
|
"onUpdate:modelValue": E[16] || (E[16] = (b) => l.value = b)
|
|
945
|
-
}, e.value),
|
|
945
|
+
}, e.value), ke({ _: 2 }, [
|
|
946
946
|
W(V(), (b) => ({
|
|
947
947
|
name: b,
|
|
948
948
|
fn: $((he) => [
|
|
@@ -953,14 +953,14 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
953
953
|
key: 15,
|
|
954
954
|
modelValue: l.value,
|
|
955
955
|
"onUpdate:modelValue": E[17] || (E[17] = (b) => l.value = b)
|
|
956
|
-
}, e.value, { options: T.value }),
|
|
956
|
+
}, e.value, { options: T.value }), ke({ _: 2 }, [
|
|
957
957
|
W(V(), (b) => ({
|
|
958
958
|
name: b,
|
|
959
959
|
fn: $((he) => [
|
|
960
960
|
C(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
|
|
961
961
|
])
|
|
962
962
|
}))
|
|
963
|
-
]), 1040, ["modelValue", "options"])) : o.value == F(De).IMAGE ? (m(), D(
|
|
963
|
+
]), 1040, ["modelValue", "options"])) : o.value == F(De).IMAGE ? (m(), D(Ke, Y({
|
|
964
964
|
key: 16,
|
|
965
965
|
"file-list": e.value["file-list"],
|
|
966
966
|
"onUpdate:fileList": E[21] || (E[21] = (b) => e.value["file-list"] = b),
|
|
@@ -969,8 +969,8 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
969
969
|
"on-preview": ve
|
|
970
970
|
}, { ...k.value, ...e.value }, {
|
|
971
971
|
ref_key: "uploadRef",
|
|
972
|
-
ref:
|
|
973
|
-
}),
|
|
972
|
+
ref: we
|
|
973
|
+
}), ke({
|
|
974
974
|
default: $(() => {
|
|
975
975
|
var b, he;
|
|
976
976
|
return [
|
|
@@ -988,11 +988,11 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
988
988
|
de(je, Y({
|
|
989
989
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
990
990
|
src: l.value
|
|
991
|
-
}, { fit: "cover", lazy: !0, ...(he = e.value) == null ? void 0 : he.img }),
|
|
992
|
-
W(V(), (ge,
|
|
991
|
+
}, { fit: "cover", lazy: !0, ...(he = e.value) == null ? void 0 : he.img }), ke({ _: 2 }, [
|
|
992
|
+
W(V(), (ge, lt) => ({
|
|
993
993
|
name: ge,
|
|
994
|
-
fn: $((
|
|
995
|
-
C(j.$slots, `${d.t}-${s.value}-${ge}`, { data:
|
|
994
|
+
fn: $((xt) => [
|
|
995
|
+
C(j.$slots, `${d.t}-${s.value}-${ge}`, { data: xt }, void 0, !0)
|
|
996
996
|
])
|
|
997
997
|
}))
|
|
998
998
|
]), 1040, ["src"])
|
|
@@ -1016,7 +1016,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1016
1016
|
})
|
|
1017
1017
|
]),
|
|
1018
1018
|
_: 1
|
|
1019
|
-
})) :
|
|
1019
|
+
})) : _e("", !0),
|
|
1020
1020
|
k.value.showDel && h.value ? (m(), D(Pe, {
|
|
1021
1021
|
key: 1,
|
|
1022
1022
|
content: "删除",
|
|
@@ -1030,7 +1030,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1030
1030
|
})
|
|
1031
1031
|
]),
|
|
1032
1032
|
_: 1
|
|
1033
|
-
})) :
|
|
1033
|
+
})) : _e("", !0)
|
|
1034
1034
|
], 32)
|
|
1035
1035
|
]))
|
|
1036
1036
|
];
|
|
@@ -1043,11 +1043,11 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1043
1043
|
C(j.$slots, `${d.t}-${s.value}-${b}`, { data: ge }, void 0, !0)
|
|
1044
1044
|
])
|
|
1045
1045
|
}))
|
|
1046
|
-
]), 1040, ["file-list"])) : o.value == F(De).AUTOCOMPLETE ? (m(), D(
|
|
1046
|
+
]), 1040, ["file-list"])) : o.value == F(De).AUTOCOMPLETE ? (m(), D(gt, Y({
|
|
1047
1047
|
key: 17,
|
|
1048
1048
|
modelValue: l.value,
|
|
1049
1049
|
"onUpdate:modelValue": E[22] || (E[22] = (b) => l.value = b)
|
|
1050
|
-
}, e.value, { placeholder: r.value }),
|
|
1050
|
+
}, e.value, { placeholder: r.value }), ke({ _: 2 }, [
|
|
1051
1051
|
W(V(), (b, he) => ({
|
|
1052
1052
|
name: b,
|
|
1053
1053
|
fn: $((ge) => [
|
|
@@ -1060,7 +1060,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1060
1060
|
"onUpdate:modelValue": E[23] || (E[23] = (b) => l.value = b),
|
|
1061
1061
|
placeholder: r.value,
|
|
1062
1062
|
disabled: (Zt = t.value[s.value]) == null ? void 0 : Zt.disabled
|
|
1063
|
-
}, e.value),
|
|
1063
|
+
}, e.value), ke({ _: 2 }, [
|
|
1064
1064
|
W(V(), (b, he) => ({
|
|
1065
1065
|
name: b,
|
|
1066
1066
|
fn: $((ge) => [
|
|
@@ -1077,7 +1077,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1077
1077
|
placeholder: r.value,
|
|
1078
1078
|
disabled: (Jt = t.value[s.value]) == null ? void 0 : Jt.disabled,
|
|
1079
1079
|
draggable: ""
|
|
1080
|
-
}, e.value),
|
|
1080
|
+
}, e.value), ke({ _: 2 }, [
|
|
1081
1081
|
(Kt = e.value) != null && Kt.suffix ? {
|
|
1082
1082
|
name: "suffix",
|
|
1083
1083
|
fn: $(() => {
|
|
@@ -1122,7 +1122,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1122
1122
|
type: "number",
|
|
1123
1123
|
onInput: E[26] || (E[26] = (b) => Me(b, 2)),
|
|
1124
1124
|
maxlength: ((tl = e.value) == null ? void 0 : tl.max) || 25
|
|
1125
|
-
}, { ...e.value, type: o.value }),
|
|
1125
|
+
}, { ...e.value, type: o.value }), ke({
|
|
1126
1126
|
suffix: $(() => [
|
|
1127
1127
|
K("div", {
|
|
1128
1128
|
title: F(Nt)(l.value),
|
|
@@ -1216,7 +1216,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1216
1216
|
d.t == "q" && t.value.table.load();
|
|
1217
1217
|
}),
|
|
1218
1218
|
disabled: (ol = t.value[s.value]) == null ? void 0 : ol.disabled
|
|
1219
|
-
}, { ...F(We)(e.value, (b) => !["suffix", "prefix", "append", "prepend"].includes(b)), type: o.value }),
|
|
1219
|
+
}, { ...F(We)(e.value, (b) => !["suffix", "prefix", "append", "prepend"].includes(b)), type: o.value }), ke({ _: 2 }, [
|
|
1220
1220
|
(sl = e.value) != null && sl.suffix ? {
|
|
1221
1221
|
name: "suffix",
|
|
1222
1222
|
fn: $(() => {
|
|
@@ -1279,9 +1279,9 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1279
1279
|
], 64);
|
|
1280
1280
|
};
|
|
1281
1281
|
}
|
|
1282
|
-
}),
|
|
1282
|
+
}), Ct = /* @__PURE__ */ rt(ba, [["__scopeId", "data-v-8e8ea23e"]]), cl = {
|
|
1283
1283
|
__name: "g-query-item",
|
|
1284
|
-
props: /* @__PURE__ */
|
|
1284
|
+
props: /* @__PURE__ */ ot(["more"], {
|
|
1285
1285
|
modelValue: { required: !0 },
|
|
1286
1286
|
modelModifiers: {},
|
|
1287
1287
|
info: { required: !0 },
|
|
@@ -1289,7 +1289,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1289
1289
|
}),
|
|
1290
1290
|
emits: ["update:modelValue", "update:info"],
|
|
1291
1291
|
setup(n) {
|
|
1292
|
-
const d =
|
|
1292
|
+
const d = nt(n, "modelValue"), e = n, l = nt(n, "info"), s = (v) => {
|
|
1293
1293
|
if (typeof v.search != "function") return v.search;
|
|
1294
1294
|
try {
|
|
1295
1295
|
return v.search(l.value, d.value.table);
|
|
@@ -1334,7 +1334,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1334
1334
|
})
|
|
1335
1335
|
]),
|
|
1336
1336
|
default: $(() => [
|
|
1337
|
-
de(
|
|
1337
|
+
de(Ct, {
|
|
1338
1338
|
modelValue: l.value[c],
|
|
1339
1339
|
"onUpdate:modelValue": (q) => l.value[c] = q,
|
|
1340
1340
|
item: { getDicts: r == null ? void 0 : r.getDicts, ...r == null ? void 0 : r.editor, ...t(r) },
|
|
@@ -1343,7 +1343,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1343
1343
|
model: d.value,
|
|
1344
1344
|
t: "q",
|
|
1345
1345
|
formInfo: l.value
|
|
1346
|
-
},
|
|
1346
|
+
}, ke({ _: 2 }, [
|
|
1347
1347
|
W(Object.keys(v.$slots), (q) => ({
|
|
1348
1348
|
name: q,
|
|
1349
1349
|
fn: $((U) => [
|
|
@@ -1373,9 +1373,9 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1373
1373
|
info: { required: !0 },
|
|
1374
1374
|
infoModifiers: {}
|
|
1375
1375
|
},
|
|
1376
|
-
emits: /* @__PURE__ */
|
|
1376
|
+
emits: /* @__PURE__ */ ot(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1377
1377
|
setup(n, { emit: d }) {
|
|
1378
|
-
const e =
|
|
1378
|
+
const e = nt(n, "modelValue"), l = d, s = jt("options"), o = re(!1), t = nt(n, "info"), f = Be(() => {
|
|
1379
1379
|
var Q, G, le;
|
|
1380
1380
|
const V = ze((Q = s == null ? void 0 : s.query) == null ? void 0 : Q.btns, (le = (G = e.value) == null ? void 0 : G.query) == null ? void 0 : le.btns) || { align: "left" };
|
|
1381
1381
|
return {
|
|
@@ -1520,7 +1520,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1520
1520
|
}, () => u({ slots: r }, !0)) : null
|
|
1521
1521
|
}
|
|
1522
1522
|
];
|
|
1523
|
-
return V.sort((L,
|
|
1523
|
+
return V.sort((L, we) => L.sort - we.sort), V.filter((L) => !L.hidden).map((L) => L.key === "more" && L.component === Lt ? Se(Lt, L.props, {
|
|
1524
1524
|
reference: () => Se(Ne, e.value.query.more, () => L.label),
|
|
1525
1525
|
default: L.content
|
|
1526
1526
|
}) : (L.props.slot = "query-" + L.key, L.label ? Se(L.component, L.props, () => L.label) : Se(L.component, L.props)));
|
|
@@ -1530,7 +1530,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1530
1530
|
})), U = () => {
|
|
1531
1531
|
};
|
|
1532
1532
|
return (V, k) => {
|
|
1533
|
-
var le, R, J, fe, Te, Ve, ve, L,
|
|
1533
|
+
var le, R, J, fe, Te, Ve, ve, L, we, Me, B, A, y, _, w, p, S;
|
|
1534
1534
|
const Q = H("el-form-item"), G = H("el-drawer");
|
|
1535
1535
|
return m(), z(se, null, [
|
|
1536
1536
|
K("div", {
|
|
@@ -1539,7 +1539,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1539
1539
|
onDblclick: U
|
|
1540
1540
|
}, [
|
|
1541
1541
|
de(F(Dt), Y({
|
|
1542
|
-
onSubmit: k[0] || (k[0] =
|
|
1542
|
+
onSubmit: k[0] || (k[0] = bt(() => {
|
|
1543
1543
|
}, ["prevent"]))
|
|
1544
1544
|
}, F(We)(e.value.query, (M) => !["query", "more", "reset", "btns"].includes(M))), {
|
|
1545
1545
|
default: $(() => {
|
|
@@ -1548,7 +1548,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1548
1548
|
(m(), D(Ze(u({ slots: V.$slots }, void 0)))),
|
|
1549
1549
|
((I = (M = e.value.query) == null ? void 0 : M.container) == null ? void 0 : I.inline) === !0 ? (m(), D(Q, { key: 0 }, {
|
|
1550
1550
|
default: $(() => {
|
|
1551
|
-
var ee, ae,
|
|
1551
|
+
var ee, ae, xe, Ye, oe;
|
|
1552
1552
|
return [
|
|
1553
1553
|
K("div", {
|
|
1554
1554
|
style: Ue((ae = (ee = e.value.query) == null ? void 0 : ee.btns) == null ? void 0 : ae.style)
|
|
@@ -1562,7 +1562,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1562
1562
|
]),
|
|
1563
1563
|
_: 3
|
|
1564
1564
|
})) : (m(), z(se, { key: 1 }, [
|
|
1565
|
-
(oe = (Ye = (
|
|
1565
|
+
(oe = (Ye = (xe = e.value) == null ? void 0 : xe.query) == null ? void 0 : Ye.btns) != null && oe.group ? (m(), D(F(It), { key: 0 }, {
|
|
1566
1566
|
default: $(() => [
|
|
1567
1567
|
(m(!0), z(se, null, W(c(), (me) => C(V.$slots, me.props.slot, {}, () => [
|
|
1568
1568
|
(m(), D(Ze(me)))
|
|
@@ -1578,7 +1578,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1578
1578
|
];
|
|
1579
1579
|
}),
|
|
1580
1580
|
_: 3
|
|
1581
|
-
})) :
|
|
1581
|
+
})) : _e("", !0)
|
|
1582
1582
|
];
|
|
1583
1583
|
}),
|
|
1584
1584
|
_: 3
|
|
@@ -1596,7 +1596,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1596
1596
|
]),
|
|
1597
1597
|
_: 3
|
|
1598
1598
|
})) : (m(), z(se, { key: 1 }, [
|
|
1599
|
-
(
|
|
1599
|
+
(we = (L = e.value.query) == null ? void 0 : L.btns) != null && we.group ? (m(), D(F(It), { key: 0 }, {
|
|
1600
1600
|
default: $(() => [
|
|
1601
1601
|
(m(!0), z(se, null, W(c(), (M) => C(V.$slots, M.props.slot, {}, () => [
|
|
1602
1602
|
(m(), D(Ze(M)))
|
|
@@ -1608,7 +1608,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1608
1608
|
], !0)), 256)),
|
|
1609
1609
|
C(V.$slots, "q-btns", {}, void 0, !0)
|
|
1610
1610
|
], 64))
|
|
1611
|
-
], 4)) :
|
|
1611
|
+
], 4)) : _e("", !0)
|
|
1612
1612
|
], 36),
|
|
1613
1613
|
o.value && !((A = (B = (Me = e.value) == null ? void 0 : Me.query) == null ? void 0 : B.more) != null && A.hidden) && e.value.query.more.mode == 2 ? (m(), D(G, Y({
|
|
1614
1614
|
key: 0,
|
|
@@ -1616,10 +1616,10 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1616
1616
|
"onUpdate:modelValue": k[6] || (k[6] = (M) => o.value = M),
|
|
1617
1617
|
title: "更多查询",
|
|
1618
1618
|
"show-close": !1
|
|
1619
|
-
}, e.value.query.more.dialog),
|
|
1619
|
+
}, e.value.query.more.dialog), ke({
|
|
1620
1620
|
default: $(() => [
|
|
1621
1621
|
de(F(Dt), Y({
|
|
1622
|
-
onSubmit: k[3] || (k[3] =
|
|
1622
|
+
onSubmit: k[3] || (k[3] = bt(() => {
|
|
1623
1623
|
}, ["prevent"]))
|
|
1624
1624
|
}, F(We)(e.value.query, (M) => !["query", "more", "reset"].includes(M)), { style: { width: "98%" } }), {
|
|
1625
1625
|
default: $(() => [
|
|
@@ -1629,7 +1629,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1629
1629
|
info: t.value,
|
|
1630
1630
|
"onUpdate:info": k[2] || (k[2] = (M) => t.value = M),
|
|
1631
1631
|
more: !0
|
|
1632
|
-
},
|
|
1632
|
+
}, ke({ _: 2 }, [
|
|
1633
1633
|
W(V.$slots, (M, I, ee) => ({
|
|
1634
1634
|
name: I,
|
|
1635
1635
|
fn: $((ae) => [
|
|
@@ -1667,7 +1667,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1667
1667
|
]),
|
|
1668
1668
|
key: "0"
|
|
1669
1669
|
}
|
|
1670
|
-
]), 1040, ["modelValue"])) :
|
|
1670
|
+
]), 1040, ["modelValue"])) : _e("", !0),
|
|
1671
1671
|
de(Yl, {
|
|
1672
1672
|
duration: 300,
|
|
1673
1673
|
name: "nested",
|
|
@@ -1680,7 +1680,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1680
1680
|
K("div", $a, [
|
|
1681
1681
|
e.value.query.more.mode == 1 ? Fl((m(), D(F(Dt), Y({
|
|
1682
1682
|
key: 0,
|
|
1683
|
-
onSubmit: k[7] || (k[7] =
|
|
1683
|
+
onSubmit: k[7] || (k[7] = bt(() => {
|
|
1684
1684
|
}, ["prevent"]))
|
|
1685
1685
|
}, F(We)(e.value.query, (ae) => !["query", "more", "reset"].includes(ae))), {
|
|
1686
1686
|
default: $(() => [
|
|
@@ -1689,9 +1689,9 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1689
1689
|
_: 1
|
|
1690
1690
|
}, 16)), [
|
|
1691
1691
|
[jl, o.value]
|
|
1692
|
-
]) :
|
|
1692
|
+
]) : _e("", !0)
|
|
1693
1693
|
])
|
|
1694
|
-
])) :
|
|
1694
|
+
])) : _e("", !0)
|
|
1695
1695
|
];
|
|
1696
1696
|
}),
|
|
1697
1697
|
_: 1
|
|
@@ -1699,7 +1699,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1699
1699
|
], 64);
|
|
1700
1700
|
};
|
|
1701
1701
|
}
|
|
1702
|
-
}, _a = /* @__PURE__ */
|
|
1702
|
+
}, _a = /* @__PURE__ */ rt(ka, [["__scopeId", "data-v-eaca2240"]]), Sl = {
|
|
1703
1703
|
inline: !0,
|
|
1704
1704
|
type: "hidden",
|
|
1705
1705
|
"scroll-to-error": !0,
|
|
@@ -1768,26 +1768,26 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1768
1768
|
inheritAttrs: !1
|
|
1769
1769
|
}, {
|
|
1770
1770
|
__name: "g-form",
|
|
1771
|
-
props: /* @__PURE__ */
|
|
1771
|
+
props: /* @__PURE__ */ ot(["editForm", "flag"], {
|
|
1772
1772
|
modelValue: { required: !0 },
|
|
1773
1773
|
modelModifiers: {}
|
|
1774
1774
|
}),
|
|
1775
|
-
emits: /* @__PURE__ */
|
|
1775
|
+
emits: /* @__PURE__ */ ot(["submit", "reset"], ["update:modelValue"]),
|
|
1776
1776
|
setup(n, { expose: d, emit: e }) {
|
|
1777
|
-
var Ve, ve, L,
|
|
1778
|
-
const l =
|
|
1777
|
+
var Ve, ve, L, we, Me, B, A;
|
|
1778
|
+
const l = nt(n, "modelValue"), s = e, o = re(null), t = jt("options"), f = re({}), T = re(""), v = n;
|
|
1779
1779
|
l.value.form = ze(
|
|
1780
1780
|
Sl,
|
|
1781
1781
|
t == null ? void 0 : t.form,
|
|
1782
1782
|
(Ve = l.value) == null ? void 0 : Ve.form
|
|
1783
1783
|
), l.value.form.style = ze(
|
|
1784
1784
|
(L = (ve = l.value) == null ? void 0 : ve.form) == null ? void 0 : L.style,
|
|
1785
|
-
{ ...(
|
|
1785
|
+
{ ...(we = zt()) == null ? void 0 : we.style }
|
|
1786
1786
|
);
|
|
1787
1787
|
const h = async (y, _, w) => {
|
|
1788
1788
|
let p = 5;
|
|
1789
1789
|
for (; p > 0; ) {
|
|
1790
|
-
if (await
|
|
1790
|
+
if (await at(), o.value) {
|
|
1791
1791
|
o.value.validate((S, M) => {
|
|
1792
1792
|
S ? s("submit", y, _, w) : console.error("表单验证不通过!", M);
|
|
1793
1793
|
});
|
|
@@ -1799,7 +1799,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1799
1799
|
}, u = async (y, _) => {
|
|
1800
1800
|
let w = 5;
|
|
1801
1801
|
for (; w > 0; ) {
|
|
1802
|
-
if (await
|
|
1802
|
+
if (await at(), o.value)
|
|
1803
1803
|
try {
|
|
1804
1804
|
o.value.resetFields(), s("reset", y, _);
|
|
1805
1805
|
return;
|
|
@@ -1897,12 +1897,12 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1897
1897
|
var S, M, I, ee, ae;
|
|
1898
1898
|
const w = _ ? y : y == null ? void 0 : y.item, p = typeof (w == null ? void 0 : w.editor) == "function" ? w.editor(f.value, (S = l.value.form) == null ? void 0 : S.modalState) : (w == null ? void 0 : w.editor) || {};
|
|
1899
1899
|
if (((M = l.value.form) == null ? void 0 : M.modalState) === "edit") {
|
|
1900
|
-
const
|
|
1901
|
-
return { ...p, ...
|
|
1900
|
+
const xe = typeof (w == null ? void 0 : w.editor) == "object" ? (I = w.editor) == null ? void 0 : I.ep : typeof (w == null ? void 0 : w.editor) == "function" ? p == null ? void 0 : p.ep : {};
|
|
1901
|
+
return { ...p, ...xe };
|
|
1902
1902
|
}
|
|
1903
1903
|
if (((ee = l.value.form) == null ? void 0 : ee.modalState) === "add") {
|
|
1904
|
-
const
|
|
1905
|
-
return { ...p, ...
|
|
1904
|
+
const xe = typeof (w == null ? void 0 : w.editor) == "object" ? (ae = w.editor) == null ? void 0 : ae.ap : typeof (w == null ? void 0 : w.editor) == "function" ? p == null ? void 0 : p.ap : {};
|
|
1905
|
+
return { ...p, ...xe };
|
|
1906
1906
|
}
|
|
1907
1907
|
return p;
|
|
1908
1908
|
}, V = (y) => {
|
|
@@ -1910,7 +1910,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1910
1910
|
const _ = typeof y.editor == "function" ? y.editor(f.value, (w = l.value.form) == null ? void 0 : w.modalState) : y.editor;
|
|
1911
1911
|
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) ?? y.type : ((M = l.value.form) == null ? void 0 : M.modalState) === "add" ? ((I = _ == null ? void 0 : _.ap) == null ? void 0 : I.type) ?? (_ == null ? void 0 : _.type) ?? y.type : (_ == null ? void 0 : _.type) ?? y.type;
|
|
1912
1912
|
}, k = (y) => y === "left" ? "flex-start" : y === "right" ? "flex-end" : y === "center" ? "center" : "flex-end";
|
|
1913
|
-
|
|
1913
|
+
Mt(() => {
|
|
1914
1914
|
Q(), v != null && v.editForm ? f.value = v.editForm : f.value = le.value;
|
|
1915
1915
|
}), zl(() => {
|
|
1916
1916
|
o.value = null;
|
|
@@ -1935,10 +1935,10 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
1935
1935
|
});
|
|
1936
1936
|
return _.sort((w, p) => {
|
|
1937
1937
|
const S = (M) => {
|
|
1938
|
-
var
|
|
1938
|
+
var xe, Ye;
|
|
1939
1939
|
const [, I] = M, ee = typeof I.editor == "function" ? I.editor(f.value, y) : I.editor;
|
|
1940
1940
|
let ae;
|
|
1941
|
-
return y === "edit" ? ae = (
|
|
1941
|
+
return y === "edit" ? ae = (xe = ee == null ? void 0 : ee.ep) == null ? void 0 : xe.sort : y === "add" && (ae = (Ye = ee == null ? void 0 : ee.ap) == null ? void 0 : Ye.sort), ae == null && (ae = ee == null ? void 0 : ee.sort), ae == null && (ae = I.sort), ae == null ? 0 : Number(ae);
|
|
1942
1942
|
};
|
|
1943
1943
|
return S(w) - S(p);
|
|
1944
1944
|
}), Object.fromEntries(_);
|
|
@@ -2016,7 +2016,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2016
2016
|
reset: u,
|
|
2017
2017
|
formData: f
|
|
2018
2018
|
}), (y, _) => {
|
|
2019
|
-
var ae,
|
|
2019
|
+
var ae, xe, Ye;
|
|
2020
2020
|
const w = H("el-form-item"), p = H("el-col"), S = H("el-tab-pane"), M = H("el-tabs"), I = H("el-form"), ee = H("el-button");
|
|
2021
2021
|
return m(), z("div", xa, [
|
|
2022
2022
|
de(I, Y(
|
|
@@ -2072,7 +2072,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2072
2072
|
model: l.value,
|
|
2073
2073
|
form: f.value
|
|
2074
2074
|
}, () => [
|
|
2075
|
-
(m(), D(
|
|
2075
|
+
(m(), D(Ct, {
|
|
2076
2076
|
modelValue: f.value[ie.key],
|
|
2077
2077
|
"onUpdate:modelValue": (X) => f.value[ie.key] = X,
|
|
2078
2078
|
item: U(ie),
|
|
@@ -2083,7 +2083,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2083
2083
|
class: "g-ctrl-container",
|
|
2084
2084
|
t: "f",
|
|
2085
2085
|
formInfo: f.value
|
|
2086
|
-
},
|
|
2086
|
+
}, ke({ _: 2 }, [
|
|
2087
2087
|
W(y.$slots, (X, Oe) => ({
|
|
2088
2088
|
name: Oe,
|
|
2089
2089
|
fn: $((Ae) => [
|
|
@@ -2139,7 +2139,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2139
2139
|
model: l.value,
|
|
2140
2140
|
form: f.value
|
|
2141
2141
|
}, () => [
|
|
2142
|
-
(m(), D(
|
|
2142
|
+
(m(), D(Ct, {
|
|
2143
2143
|
modelValue: f.value[me],
|
|
2144
2144
|
"onUpdate:modelValue": (be) => f.value[me] = be,
|
|
2145
2145
|
item: U(oe, !0),
|
|
@@ -2150,7 +2150,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2150
2150
|
class: "g-ctrl-container",
|
|
2151
2151
|
t: "f",
|
|
2152
2152
|
formInfo: f.value
|
|
2153
|
-
},
|
|
2153
|
+
}, ke({ _: 2 }, [
|
|
2154
2154
|
W(y.$slots, (be, ie) => ({
|
|
2155
2155
|
name: ie,
|
|
2156
2156
|
fn: $((Ge) => [
|
|
@@ -2174,7 +2174,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2174
2174
|
]),
|
|
2175
2175
|
_: 3
|
|
2176
2176
|
}, 16, ["model"]),
|
|
2177
|
-
(Ye = (
|
|
2177
|
+
(Ye = (xe = (ae = l.value) == null ? void 0 : ae.form) == null ? void 0 : xe.footer) != null && Ye.hidden ? _e("", !0) : C(y.$slots, "f-footer", { key: 0 }, () => [
|
|
2178
2178
|
K("div", {
|
|
2179
2179
|
style: Ue({ justifyContent: k(l.value.form.footer.align), ...l.value.form.footer.style })
|
|
2180
2180
|
}, [
|
|
@@ -2184,11 +2184,11 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2184
2184
|
C(y.$slots, oe.name, {}, () => {
|
|
2185
2185
|
var me;
|
|
2186
2186
|
return [
|
|
2187
|
-
(me = oe == null ? void 0 : oe.info) != null && me.hidden ?
|
|
2187
|
+
(me = oe == null ? void 0 : oe.info) != null && me.hidden ? _e("", !0) : (m(), D(ee, Y({
|
|
2188
2188
|
key: 0,
|
|
2189
2189
|
ref_for: !0
|
|
2190
2190
|
}, oe.info, {
|
|
2191
|
-
onClick:
|
|
2191
|
+
onClick: bt((Fe) => oe.click(f.value, l.value, oe.flag), ["stop"])
|
|
2192
2192
|
}), {
|
|
2193
2193
|
default: $(() => [
|
|
2194
2194
|
Le(Ie(oe == null ? void 0 : oe.label), 1)
|
|
@@ -2205,7 +2205,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2205
2205
|
]);
|
|
2206
2206
|
};
|
|
2207
2207
|
}
|
|
2208
|
-
}), Ft = /* @__PURE__ */
|
|
2208
|
+
}), Ft = /* @__PURE__ */ rt(Ca, [["__scopeId", "data-v-5a0fe2f9"]]), Ma = { class: "dialog-container" }, Sa = {
|
|
2209
2209
|
key: 1,
|
|
2210
2210
|
style: { overflow: "hidden" }
|
|
2211
2211
|
}, Ta = { style: { display: "flex", flex: "1", "margin-left": "10px" } }, Ea = /* @__PURE__ */ Object.assign({
|
|
@@ -2320,7 +2320,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2320
2320
|
}, T.value, {
|
|
2321
2321
|
fullscreen: t.value,
|
|
2322
2322
|
"show-close": !1
|
|
2323
|
-
}),
|
|
2323
|
+
}), ke({
|
|
2324
2324
|
header: $(({ titleClass: J, closeIconClass: fe }) => [
|
|
2325
2325
|
C(le.$slots, "header", {
|
|
2326
2326
|
titleClass: J,
|
|
@@ -2337,33 +2337,33 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2337
2337
|
n.minimize ? (m(), D(F(Ht), {
|
|
2338
2338
|
key: 0,
|
|
2339
2339
|
class: "btn-icon",
|
|
2340
|
-
onClick:
|
|
2340
|
+
onClick: bt(Q, ["stop"])
|
|
2341
2341
|
}, {
|
|
2342
2342
|
default: $(() => [
|
|
2343
2343
|
(m(), D(Ze(n.minIcon)))
|
|
2344
2344
|
]),
|
|
2345
2345
|
_: 1
|
|
2346
|
-
})) :
|
|
2346
|
+
})) : _e("", !0),
|
|
2347
2347
|
n.maximize ? (m(), D(F(Ht), {
|
|
2348
2348
|
key: 1,
|
|
2349
2349
|
class: "btn-icon",
|
|
2350
|
-
onClick:
|
|
2350
|
+
onClick: bt(k, ["stop"])
|
|
2351
2351
|
}, {
|
|
2352
2352
|
default: $(() => [
|
|
2353
2353
|
(m(), D(Ze(u.value ? n.resizeIcon : n.maxIcon)))
|
|
2354
2354
|
]),
|
|
2355
2355
|
_: 1
|
|
2356
|
-
})) :
|
|
2356
|
+
})) : _e("", !0),
|
|
2357
2357
|
l.showClose ? (m(), D(F(Ht), {
|
|
2358
2358
|
key: 2,
|
|
2359
2359
|
class: "btn-icon",
|
|
2360
|
-
onClick: R[0] || (R[0] =
|
|
2360
|
+
onClick: R[0] || (R[0] = bt((Te) => h.value.handleClose(), ["stop"]))
|
|
2361
2361
|
}, {
|
|
2362
2362
|
default: $(() => [
|
|
2363
2363
|
(m(), D(Ze(n.closeIcon)))
|
|
2364
2364
|
]),
|
|
2365
2365
|
_: 1
|
|
2366
|
-
})) :
|
|
2366
|
+
})) : _e("", !0)
|
|
2367
2367
|
])
|
|
2368
2368
|
], 4)
|
|
2369
2369
|
], !0)
|
|
@@ -2391,7 +2391,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2391
2391
|
]))
|
|
2392
2392
|
]));
|
|
2393
2393
|
}
|
|
2394
|
-
}), Qt = /* @__PURE__ */
|
|
2394
|
+
}), Qt = /* @__PURE__ */ rt(Ea, [["__scopeId", "data-v-99d6bb1e"]]), Va = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, Ia = { style: { display: "flex", flex: "1", "align-items": "center" } }, Oa = {
|
|
2395
2395
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2396
2396
|
id: "excelSortEl"
|
|
2397
2397
|
}, qa = ["textContent"], Aa = { style: { width: "100%", display: "flex", padding: "10px 10px 0 10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Ya = {
|
|
@@ -2424,7 +2424,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2424
2424
|
}
|
|
2425
2425
|
});
|
|
2426
2426
|
};
|
|
2427
|
-
return
|
|
2427
|
+
return Mt(() => {
|
|
2428
2428
|
const T = new xl(document.getElementById("excelSortEl"), {
|
|
2429
2429
|
animation: 150,
|
|
2430
2430
|
onEnd: () => {
|
|
@@ -2505,8 +2505,8 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
|
2505
2505
|
]);
|
|
2506
2506
|
};
|
|
2507
2507
|
}
|
|
2508
|
-
}, Fa = /* @__PURE__ */
|
|
2509
|
-
|
|
2508
|
+
}, Fa = /* @__PURE__ */ rt(Ya, [["__scopeId", "data-v-8d7383f9"]]), ja = "vue-gyc-ui", za = 1, Ce = new ra(ja);
|
|
2509
|
+
Ce.version(za).stores({
|
|
2510
2510
|
// 记录表格项设置信息
|
|
2511
2511
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2512
2512
|
// 记录表格分页条数
|
|
@@ -2516,53 +2516,53 @@ xe.version(za).stores({
|
|
|
2516
2516
|
// 记录表格列显示状态
|
|
2517
2517
|
tableColsState: "++id,[page+key], page, key"
|
|
2518
2518
|
});
|
|
2519
|
-
const
|
|
2519
|
+
const ht = (n, d) => {
|
|
2520
2520
|
if (!n || typeof n != "string")
|
|
2521
2521
|
throw new Error("page参数必须是非空字符串");
|
|
2522
2522
|
};
|
|
2523
2523
|
async function Ot(n, d, e) {
|
|
2524
2524
|
try {
|
|
2525
|
-
const l = await
|
|
2526
|
-
l ? e === "add" ? l.keys.includes(d) || (l.keys.push(d), await
|
|
2525
|
+
const l = await Ce.tableColsState.where({ page: n }).first();
|
|
2526
|
+
l ? e === "add" ? l.keys.includes(d) || (l.keys.push(d), await Ce.tableColsState.put(l)) : e === "del" ? (l.keys = l.keys.filter((s) => s !== d), await Ce.tableColsState.put(l)) : e === "delAll" ? (l.keys = d, await Ce.tableColsState.put(l)) : e === "selectAll" && await Ce.tableColsState.where({ page: n }).delete() : e === "add" ? await Ce.tableColsState.add({ page: n, keys: [d] }) : e === "delAll" && await Ce.tableColsState.add({ page: n, keys: d });
|
|
2527
2527
|
} catch (l) {
|
|
2528
2528
|
throw console.error(`处理表格列状态时出错 (page: ${n}, key: ${d}, state: ${e}):`, l), l;
|
|
2529
2529
|
}
|
|
2530
2530
|
}
|
|
2531
2531
|
async function Ua(n, d, e) {
|
|
2532
|
-
|
|
2532
|
+
ht(n);
|
|
2533
2533
|
try {
|
|
2534
|
-
const l = await
|
|
2535
|
-
return l ? (await
|
|
2534
|
+
const l = await Ce.tableWidths.where({ page: n, key: d }).first();
|
|
2535
|
+
return l ? (await Ce.tableWidths.put({ ...l, width: e }), "update success") : (await Ce.tableWidths.add({ page: n, key: d, width: e }), "add success");
|
|
2536
2536
|
} catch (l) {
|
|
2537
2537
|
throw console.error(`保存表格项设置信息时出错 (page: ${n}, key: ${d}):`, l), l;
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
2540
|
async function La(n) {
|
|
2541
|
-
|
|
2541
|
+
ht(n);
|
|
2542
2542
|
try {
|
|
2543
|
-
return await
|
|
2543
|
+
return await Ce.tableWidths.where({ page: n }).toArray();
|
|
2544
2544
|
} catch (d) {
|
|
2545
2545
|
throw console.error(`获取表格项设置信息时出错 (page: ${n}):`, d), d;
|
|
2546
2546
|
}
|
|
2547
2547
|
}
|
|
2548
2548
|
async function Ha(n) {
|
|
2549
|
-
|
|
2549
|
+
ht(n);
|
|
2550
2550
|
try {
|
|
2551
|
-
const d = await
|
|
2551
|
+
const d = await Ce.tableColsState.where({ page: n }).toArray();
|
|
2552
2552
|
return !d || d.length === 0 ? [] : d[0].keys;
|
|
2553
2553
|
} catch (d) {
|
|
2554
2554
|
throw console.error(`获取表格列状态时出错 (page: ${n}):`, d), d;
|
|
2555
2555
|
}
|
|
2556
2556
|
}
|
|
2557
2557
|
async function Ra(n) {
|
|
2558
|
-
|
|
2558
|
+
ht(n);
|
|
2559
2559
|
try {
|
|
2560
|
-
return await
|
|
2560
|
+
return await Ce.transaction("rw", Ce.tableWidths, Ce.pageInfo, Ce.sorts, Ce.tableColsState, async () => {
|
|
2561
2561
|
await Promise.all([
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2562
|
+
Ce.tableWidths.where({ page: n }).delete(),
|
|
2563
|
+
Ce.pageInfo.where({ page: n }).delete(),
|
|
2564
|
+
Ce.sorts.where({ page: n }).delete(),
|
|
2565
|
+
Ce.tableColsState.where({ page: n }).delete()
|
|
2566
2566
|
]);
|
|
2567
2567
|
});
|
|
2568
2568
|
} catch (d) {
|
|
@@ -2570,36 +2570,36 @@ async function Ra(n) {
|
|
|
2570
2570
|
}
|
|
2571
2571
|
}
|
|
2572
2572
|
async function Ba({ page: n, size: d }) {
|
|
2573
|
-
|
|
2573
|
+
ht(n);
|
|
2574
2574
|
try {
|
|
2575
|
-
const e = await
|
|
2576
|
-
return e ? (await
|
|
2575
|
+
const e = await Ce.pageInfo.where({ page: n }).first();
|
|
2576
|
+
return e ? (await Ce.pageInfo.put({ ...e, size: d }), "update success") : (await Ce.pageInfo.add({ page: n, size: d }), "add success");
|
|
2577
2577
|
} catch (e) {
|
|
2578
2578
|
throw console.error(`保存分页条数时出错 (page: ${n}):`, e), e;
|
|
2579
2579
|
}
|
|
2580
2580
|
}
|
|
2581
2581
|
async function Pa(n) {
|
|
2582
|
-
|
|
2582
|
+
ht(n);
|
|
2583
2583
|
try {
|
|
2584
|
-
const d = await
|
|
2584
|
+
const d = await Ce.pageInfo.where({ page: n }).first();
|
|
2585
2585
|
return d == null ? void 0 : d.size;
|
|
2586
2586
|
} catch (d) {
|
|
2587
2587
|
throw console.error(`获取分页条数时出错 (page: ${n}):`, d), d;
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
2590
|
async function Na(n, d) {
|
|
2591
|
-
|
|
2591
|
+
ht(n);
|
|
2592
2592
|
try {
|
|
2593
|
-
const e = await
|
|
2594
|
-
return e ? (await
|
|
2593
|
+
const e = await Ce.sorts.where({ page: n }).first();
|
|
2594
|
+
return e ? (await Ce.sorts.put({ ...e, keys: d }), "update success") : (await Ce.sorts.add({ page: n, keys: d }), "add success");
|
|
2595
2595
|
} catch (e) {
|
|
2596
2596
|
throw console.error(`保存表格字段顺序时出错 (page: ${n}):`, e), e;
|
|
2597
2597
|
}
|
|
2598
2598
|
}
|
|
2599
2599
|
async function Wa(n) {
|
|
2600
|
-
|
|
2600
|
+
ht(n);
|
|
2601
2601
|
try {
|
|
2602
|
-
const d = await
|
|
2602
|
+
const d = await Ce.sorts.where({ page: n }).first();
|
|
2603
2603
|
return (d == null ? void 0 : d.keys) || [];
|
|
2604
2604
|
} catch (d) {
|
|
2605
2605
|
throw console.error(`获取表格字段顺序时出错 (page: ${n}):`, d), d;
|
|
@@ -2613,7 +2613,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2613
2613
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2614
2614
|
}, Ja = ["textContent"], Ka = {
|
|
2615
2615
|
__name: "columns-setting",
|
|
2616
|
-
props: /* @__PURE__ */
|
|
2616
|
+
props: /* @__PURE__ */ ot({
|
|
2617
2617
|
tuid: {
|
|
2618
2618
|
type: String,
|
|
2619
2619
|
required: !0
|
|
@@ -2622,11 +2622,11 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2622
2622
|
modelValue: { required: !0 },
|
|
2623
2623
|
modelModifiers: {}
|
|
2624
2624
|
}),
|
|
2625
|
-
emits: /* @__PURE__ */
|
|
2625
|
+
emits: /* @__PURE__ */ ot(["setting-drag-end", "select-all"], ["update:modelValue"]),
|
|
2626
2626
|
setup(n, { emit: d }) {
|
|
2627
2627
|
const e = n, l = d;
|
|
2628
2628
|
let s = re([]);
|
|
2629
|
-
const o =
|
|
2629
|
+
const o = nt(n, "modelValue"), t = async (u, r) => {
|
|
2630
2630
|
u ? (o.value[r].showCol = !0, await Ot(e.tuid, r, "del")) : (o.value[r].showCol = !1, await Ot(e.tuid, r, "add"));
|
|
2631
2631
|
}, f = () => {
|
|
2632
2632
|
const u = document.getElementById("cols");
|
|
@@ -2693,7 +2693,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2693
2693
|
});
|
|
2694
2694
|
});
|
|
2695
2695
|
};
|
|
2696
|
-
return
|
|
2696
|
+
return Mt(async () => {
|
|
2697
2697
|
s.value = Object.entries(o.value).filter(([, u]) => u.visible !== !1).filter(([, u]) => !["selection", "index", "expand", "control"].includes(u.type)).filter(([, u]) => u.type != "hidden").map(([u, r]) => ({
|
|
2698
2698
|
label: r.label,
|
|
2699
2699
|
value: u,
|
|
@@ -2753,7 +2753,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2753
2753
|
]);
|
|
2754
2754
|
};
|
|
2755
2755
|
}
|
|
2756
|
-
}, er = /* @__PURE__ */
|
|
2756
|
+
}, er = /* @__PURE__ */ rt(Ka, [["__scopeId", "data-v-750b37bc"]]), tr = { class: "title" }, lr = { class: "content" }, ar = {
|
|
2757
2757
|
__name: "g-cell-toopTip",
|
|
2758
2758
|
props: {
|
|
2759
2759
|
content: {
|
|
@@ -2786,7 +2786,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2786
2786
|
K("div", lr, Ie(d.content), 1)
|
|
2787
2787
|
], 4));
|
|
2788
2788
|
}
|
|
2789
|
-
}, rr = /* @__PURE__ */
|
|
2789
|
+
}, rr = /* @__PURE__ */ rt(ar, [["__scopeId", "data-v-f28912da"]]), nr = /* @__PURE__ */ Object.assign({
|
|
2790
2790
|
name: "g-detail",
|
|
2791
2791
|
inheritAttrs: !1
|
|
2792
2792
|
}, {
|
|
@@ -2859,7 +2859,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2859
2859
|
class: "g-detail-container",
|
|
2860
2860
|
style: Ue(((V = s.value) == null ? void 0 : V.style) || {})
|
|
2861
2861
|
}, [
|
|
2862
|
-
de(U, Y({ border: "" }, F(We)(s.value, (k) => !["container"].includes(k))),
|
|
2862
|
+
de(U, Y({ border: "" }, F(We)(s.value, (k) => !["container"].includes(k))), ke({
|
|
2863
2863
|
default: $(() => [
|
|
2864
2864
|
(m(!0), z(se, null, W(v.value, ([k, Q]) => {
|
|
2865
2865
|
var G, le;
|
|
@@ -2880,7 +2880,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2880
2880
|
C(r.$slots, `view-${k}`, {
|
|
2881
2881
|
row: d.row
|
|
2882
2882
|
}, () => [
|
|
2883
|
-
de(
|
|
2883
|
+
de(Ct, {
|
|
2884
2884
|
modelValue: u.value[k],
|
|
2885
2885
|
"onUpdate:modelValue": (R) => u.value[k] = R,
|
|
2886
2886
|
item: f(k),
|
|
@@ -2908,7 +2908,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2908
2908
|
], 4);
|
|
2909
2909
|
};
|
|
2910
2910
|
}
|
|
2911
|
-
}), Tl = /* @__PURE__ */
|
|
2911
|
+
}), Tl = /* @__PURE__ */ rt(nr, [["__scopeId", "data-v-4902ce5a"]]);
|
|
2912
2912
|
var El = { exports: {} }, Vl = { exports: {} };
|
|
2913
2913
|
(function() {
|
|
2914
2914
|
var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", d = {
|
|
@@ -3058,7 +3058,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3058
3058
|
inheritAttrs: !1
|
|
3059
3059
|
}, {
|
|
3060
3060
|
__name: "g-table",
|
|
3061
|
-
props: /* @__PURE__ */
|
|
3061
|
+
props: /* @__PURE__ */ ot({
|
|
3062
3062
|
node: {
|
|
3063
3063
|
type: Object,
|
|
3064
3064
|
default: () => ({})
|
|
@@ -3069,7 +3069,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3069
3069
|
selectedRows: { default: [], type: Array, required: !1 },
|
|
3070
3070
|
selectedRowsModifiers: {}
|
|
3071
3071
|
}),
|
|
3072
|
-
emits: /* @__PURE__ */
|
|
3072
|
+
emits: /* @__PURE__ */ ot([
|
|
3073
3073
|
"load",
|
|
3074
3074
|
"open",
|
|
3075
3075
|
"delete",
|
|
@@ -3082,8 +3082,8 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3082
3082
|
"node-init"
|
|
3083
3083
|
], ["update:modelValue", "update:selectedRows"]),
|
|
3084
3084
|
setup(n, { expose: d, emit: e }) {
|
|
3085
|
-
var
|
|
3086
|
-
const l = re(""), s = n, o = e, t =
|
|
3085
|
+
var et, vt, yt, st, Xe, Je, tt;
|
|
3086
|
+
const l = re(""), s = n, o = e, t = nt(n, "modelValue"), f = jt("options"), T = re({}), v = re(!0), h = Object.entries(t.value).filter(([a, i]) => (i == null ? void 0 : i.search) !== void 0).map(([a, i]) => {
|
|
3087
3087
|
var x;
|
|
3088
3088
|
let g;
|
|
3089
3089
|
if (typeof i.search == "function") {
|
|
@@ -3123,7 +3123,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3123
3123
|
"filter-multiple",
|
|
3124
3124
|
"filter-method",
|
|
3125
3125
|
"filtered-value"
|
|
3126
|
-
], c = re([]), q = zt(), U = re({}), V = re([]), k = re(null), Q = re(""), G = re("/"), le =
|
|
3126
|
+
], c = re([]), q = zt(), U = re({}), V = re([]), k = re(null), Q = re(""), G = re("/"), le = nt(n, "selectedRows"), R = re({
|
|
3127
3127
|
autoWatch: !1,
|
|
3128
3128
|
data: [],
|
|
3129
3129
|
border: !0,
|
|
@@ -3141,7 +3141,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3141
3141
|
"load",
|
|
3142
3142
|
{ currentPage: i, pageSize: g, ...T.value },
|
|
3143
3143
|
(x = [], O = 0, { fields: P = [], sums: N = {} } = {}) => {
|
|
3144
|
-
var
|
|
3144
|
+
var $e;
|
|
3145
3145
|
if (!Array.isArray(x)) {
|
|
3146
3146
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), ft.error("数据加载失败,请检查数据格式。");
|
|
3147
3147
|
return;
|
|
@@ -3150,7 +3150,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3150
3150
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), ft.error("数据加载失败,请检查数据格式。");
|
|
3151
3151
|
return;
|
|
3152
3152
|
}
|
|
3153
|
-
t.value.table.data = x, ((
|
|
3153
|
+
t.value.table.data = x, (($e = t.value.control) == null ? void 0 : $e.add(k.value, t).inline) === !0 && t.value.table.data.unshift(k.value), t.value.table.page.total = O, V.value = P, U.value = N, E(), Q.value = Math.random().toString(36).substring(2);
|
|
3154
3154
|
},
|
|
3155
3155
|
k.value
|
|
3156
3156
|
);
|
|
@@ -3210,7 +3210,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3210
3210
|
width: 160,
|
|
3211
3211
|
sort: 9999999,
|
|
3212
3212
|
fixed: "right",
|
|
3213
|
-
style: { ...(
|
|
3213
|
+
style: { ...(vt = (et = t.value) == null ? void 0 : et.control) == null ? void 0 : vt.style },
|
|
3214
3214
|
validate: async (a) => await !0,
|
|
3215
3215
|
view: (a, i, g, x) => ({
|
|
3216
3216
|
label: "详情",
|
|
@@ -3328,28 +3328,28 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3328
3328
|
t.value.control = ze(
|
|
3329
3329
|
J,
|
|
3330
3330
|
f == null ? void 0 : f.control,
|
|
3331
|
-
(
|
|
3331
|
+
(yt = t.value) == null ? void 0 : yt.control
|
|
3332
3332
|
);
|
|
3333
3333
|
const fe = (a, i = !0) => {
|
|
3334
|
-
const g = t.value.control[a], x = i ? (O, P, N,
|
|
3335
|
-
var Pe,
|
|
3334
|
+
const g = t.value.control[a], x = i ? (O, P, N, $e) => {
|
|
3335
|
+
var Pe, Ke, gt;
|
|
3336
3336
|
if (!O || !P || N == null)
|
|
3337
3337
|
return console.warn(`merge${a.charAt(0).toUpperCase() + a.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
3338
|
-
const Ee = ((Pe = J[a]) == null ? void 0 : Pe.call(J, O, P, N,
|
|
3338
|
+
const Ee = ((Pe = J[a]) == null ? void 0 : Pe.call(J, O, P, N, $e)) || {}, qe = ((gt = (Ke = f == null ? void 0 : f.control) == null ? void 0 : Ke[a]) == null ? void 0 : gt.call(Ke, O, P, N, $e)) || {}, je = (g == null ? void 0 : g(O, P, N, $e)) || {};
|
|
3339
3339
|
return ze(Ee, qe, je) || {};
|
|
3340
3340
|
} : (O, P) => {
|
|
3341
3341
|
var qe, je, Pe;
|
|
3342
|
-
const N = ((qe = J[a]) == null ? void 0 : qe.call(J, O, P)) || {},
|
|
3343
|
-
return ze(N,
|
|
3342
|
+
const N = ((qe = J[a]) == null ? void 0 : qe.call(J, O, P)) || {}, $e = ((Pe = (je = f == null ? void 0 : f.control) == null ? void 0 : je[a]) == null ? void 0 : Pe.call(je, O, P)) || {}, Ee = (g == null ? void 0 : g(O, P)) || {};
|
|
3343
|
+
return ze(N, $e, Ee) || {};
|
|
3344
3344
|
};
|
|
3345
3345
|
t.value.control[a] = x;
|
|
3346
3346
|
};
|
|
3347
3347
|
fe("edit"), fe("delete"), fe("view"), fe("save"), fe("add", !1), fe("download", !1), fe("setting", !1), fe("batch", !1), fe("toggleExpand", !1);
|
|
3348
3348
|
const Te = (a, i, g, x) => {
|
|
3349
|
-
var
|
|
3349
|
+
var $e, Ee, qe, je, Pe, Ke;
|
|
3350
3350
|
if (!a || !i || g == null)
|
|
3351
3351
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
3352
|
-
const O = ((
|
|
3352
|
+
const O = (($e = J.dropdown) == null ? void 0 : $e.call(J, a, i, g, x)) || {}, P = ((qe = (Ee = f == null ? void 0 : f.control) == null ? void 0 : Ee.dropdown) == null ? void 0 : qe.call(Ee, a, i, g, x)) || {}, N = ((Ke = (Pe = (je = t.value) == null ? void 0 : je.control) == null ? void 0 : Pe.dropdown) == null ? void 0 : Ke.call(Pe, a, i, g, x)) || {};
|
|
3353
3353
|
return ze(O, P, N) || {};
|
|
3354
3354
|
}, Ve = {
|
|
3355
3355
|
type: "hidden",
|
|
@@ -3361,7 +3361,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3361
3361
|
t.value.tableColumns = ze(
|
|
3362
3362
|
Ve,
|
|
3363
3363
|
f == null ? void 0 : f.tableColumns,
|
|
3364
|
-
(
|
|
3364
|
+
(st = t.value) == null ? void 0 : st.tableColumns
|
|
3365
3365
|
), t.value.form = ze(
|
|
3366
3366
|
Sl,
|
|
3367
3367
|
{
|
|
@@ -3371,7 +3371,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3371
3371
|
}
|
|
3372
3372
|
},
|
|
3373
3373
|
f == null ? void 0 : f.form,
|
|
3374
|
-
(
|
|
3374
|
+
(Xe = t.value) == null ? void 0 : Xe.form
|
|
3375
3375
|
);
|
|
3376
3376
|
const ve = {
|
|
3377
3377
|
type: "hidden",
|
|
@@ -3383,7 +3383,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3383
3383
|
t.value.formItems = ze(
|
|
3384
3384
|
ve,
|
|
3385
3385
|
f == null ? void 0 : f.formItems,
|
|
3386
|
-
(
|
|
3386
|
+
(Je = t == null ? void 0 : t.value) == null ? void 0 : Je.formItems
|
|
3387
3387
|
);
|
|
3388
3388
|
const L = {
|
|
3389
3389
|
title: "编辑",
|
|
@@ -3400,9 +3400,9 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3400
3400
|
t.value.dialog = ze(
|
|
3401
3401
|
L,
|
|
3402
3402
|
f == null ? void 0 : f.dialog,
|
|
3403
|
-
(
|
|
3403
|
+
(tt = t.value) == null ? void 0 : tt.dialog
|
|
3404
3404
|
);
|
|
3405
|
-
const
|
|
3405
|
+
const we = (a, i) => {
|
|
3406
3406
|
let g = i;
|
|
3407
3407
|
if (a.precision && !isNaN(parseFloat(i)) && (typeof a.precision == "number" ? g = parseFloat(g).toFixed(a.precision) : typeof a.precision == "object" && a.precision.num && (a.precision.pad ? g = parseFloat(g).toFixed(a.precision.num) : g = parseFloat(
|
|
3408
3408
|
parseFloat(g).toFixed(a.precision.num)
|
|
@@ -3430,13 +3430,13 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3430
3430
|
console.error("验证失败:", O);
|
|
3431
3431
|
return;
|
|
3432
3432
|
}
|
|
3433
|
-
(x = t.value.control.add(k.value, i)) != null && x.click ? t.value.control.add(k.value, i).click(k.value, i) : (t.value.control.add(k.value, i).inline === !0 ? (t.value.table.data.unshift({ ...k.value }), await
|
|
3433
|
+
(x = t.value.control.add(k.value, i)) != null && x.click ? t.value.control.add(k.value, i).click(k.value, i) : (t.value.control.add(k.value, i).inline === !0 ? (t.value.table.data.unshift({ ...k.value }), await at(), o("open", "row-add", { row: k.value, node: s.node })) : (t.value.form.disabled = !1, t.value.dialog.mode = t.value.control.add(k.value, i).mode, t.value.dialog.title = t.value.control.add(k.value, i).title || t.value.control.add(k.value, i).label || "新增", Object.keys(k.value).forEach((O) => {
|
|
3434
3434
|
t.value[O] && (t.value[O].value = k.value[O]);
|
|
3435
|
-
}), u.value = !0, await
|
|
3435
|
+
}), u.value = !0, await at(), o("open", "add", { row: k.value, node: s.node, m: i }), Yt()), await at(), o("node-init", { row: k.value, node: s.node, m: i }));
|
|
3436
3436
|
}, y = () => {
|
|
3437
3437
|
o("batch", le.value);
|
|
3438
3438
|
}, _ = (a, i) => {
|
|
3439
|
-
o("toggleExpand", a), v.value = !1, t.value.table["default-expand-all"] = !t.value.table["default-expand-all"],
|
|
3439
|
+
o("toggleExpand", a), v.value = !1, t.value.table["default-expand-all"] = !t.value.table["default-expand-all"], at(() => {
|
|
3440
3440
|
v.value = !0;
|
|
3441
3441
|
});
|
|
3442
3442
|
}, w = async (a, i, g, x) => {
|
|
@@ -3450,7 +3450,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3450
3450
|
}
|
|
3451
3451
|
(P = t.value.control.edit(a, i, g, x)) != null && P.click ? t.value.control.edit(a, i, g, x).click(a, i, g, x) : (t.value.form.disabled = !1, t.value.dialog.mode = t.value.control.edit(a, i, g, x).mode, t.value.dialog.title = t.value.control.edit(a, i, g, x).title || t.value.control.edit(a, i, g, x).label || "编辑", Object.keys(a).forEach((N) => {
|
|
3452
3452
|
t.value[N] && (t.value[N].value = a[N]);
|
|
3453
|
-
}), u.value = !0, await
|
|
3453
|
+
}), u.value = !0, await at(), o("open", "edit", { m: x, row: a, column: i, index: g }), Yt());
|
|
3454
3454
|
}, p = async (a, i, g, x) => {
|
|
3455
3455
|
var O, P;
|
|
3456
3456
|
try {
|
|
@@ -3462,8 +3462,8 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3462
3462
|
if ((P = t.value.control.delete(a, i, g, x)) != null && P.click)
|
|
3463
3463
|
t.value.control.delete(a, i, g, x).click(a, i, g, x);
|
|
3464
3464
|
else {
|
|
3465
|
-
let { message: N, title:
|
|
3466
|
-
pl.confirm(N,
|
|
3465
|
+
let { message: N, title: $e, options: Ee } = t.value.control.delete(a, i, g, x).dialog;
|
|
3466
|
+
pl.confirm(N, $e, Ee).then(() => {
|
|
3467
3467
|
o(
|
|
3468
3468
|
"delete",
|
|
3469
3469
|
{ row: a, column: i, index: g, m: x },
|
|
@@ -3475,7 +3475,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3475
3475
|
});
|
|
3476
3476
|
}
|
|
3477
3477
|
}, S = async (a, i, g, x) => {
|
|
3478
|
-
var O, P, N,
|
|
3478
|
+
var O, P, N, $e;
|
|
3479
3479
|
t.value.form.modalState = void 0, l.value = "view";
|
|
3480
3480
|
try {
|
|
3481
3481
|
if (!await ((O = t.value.control) == null ? void 0 : O.validate("view", { row: a, column: i, index: g, m: x, node: s.node }))) return;
|
|
@@ -3485,7 +3485,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3485
3485
|
}
|
|
3486
3486
|
(P = t.value.control.view(a, i, g, x)) != null && P.click ? t.value.control.view(a, i, g, x).click(a, i, g, x) : (t.value.form.disabled = !0, t.value.dialog.mode = t.value.control.view(a, i, g, x).mode, t.value.dialog.title = t.value.control.view(a, i, g, x).title || t.value.control.view(a, i, g, x).label || "详情", Object.keys(a).forEach((Ee) => {
|
|
3487
3487
|
t.value[Ee] && (t.value[Ee].value = a[Ee]);
|
|
3488
|
-
}), ((N = t.value.control.view(a, i, g, x)) == null ? void 0 : N["view-mode"]) === "description" ?
|
|
3488
|
+
}), ((N = t.value.control.view(a, i, g, x)) == null ? void 0 : N["view-mode"]) === "description" ? wt({
|
|
3489
3489
|
...t.value.dialog,
|
|
3490
3490
|
type: t.value.dialog.mode,
|
|
3491
3491
|
slots: {
|
|
@@ -3498,7 +3498,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3498
3498
|
}, ((je = (qe = t.value.control.view(a, i, g, x)) == null ? void 0 : qe.container) == null ? void 0 : je.slots) || {});
|
|
3499
3499
|
}
|
|
3500
3500
|
}
|
|
3501
|
-
}) : ((
|
|
3501
|
+
}) : (($e = t.value.control.view(a, i, g, x)) == null ? void 0 : $e["view-mode"]) === "readonly" && (u.value = !0, Yt()), await at(), o("open", "view", { m: x, row: a, column: i, index: g }));
|
|
3502
3502
|
}, M = (a, i = k.value) => {
|
|
3503
3503
|
Object.assign(a, i);
|
|
3504
3504
|
}, I = (a, i, g, x) => {
|
|
@@ -3508,12 +3508,12 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3508
3508
|
{ row: a, column: i, index: g, data: t.value.table.data },
|
|
3509
3509
|
async (P = !0, N = !0) => {
|
|
3510
3510
|
if (P && t.value.table.load(), N && g === 0) {
|
|
3511
|
-
const
|
|
3511
|
+
const $e = Object.entries(t.value).filter(
|
|
3512
3512
|
([Ee, qe]) => qe.type !== "control" && qe.type !== "hidden"
|
|
3513
3513
|
// && val.editor !== false
|
|
3514
3514
|
);
|
|
3515
3515
|
k.value = Object.fromEntries(
|
|
3516
|
-
|
|
3516
|
+
$e.map(([Ee, qe]) => [Ee, qe.value])
|
|
3517
3517
|
), t.value.table.data[g] = { ...k.value };
|
|
3518
3518
|
}
|
|
3519
3519
|
}
|
|
@@ -3524,12 +3524,12 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3524
3524
|
});
|
|
3525
3525
|
}, 300), ae = (a, i) => {
|
|
3526
3526
|
M(a), o("reset", a, i);
|
|
3527
|
-
},
|
|
3527
|
+
}, xe = (a, i, g) => {
|
|
3528
3528
|
var x;
|
|
3529
3529
|
if ((x = i.control.download(a, i)) != null && x.click)
|
|
3530
3530
|
i.control.download(a, i).click(a, i, g);
|
|
3531
3531
|
else {
|
|
3532
|
-
let O =
|
|
3532
|
+
let O = wt(
|
|
3533
3533
|
{
|
|
3534
3534
|
title: i.control.download(a, i).title || i.control.download(a, i).label || "下载",
|
|
3535
3535
|
size: i.control.download(a, i).size || 480,
|
|
@@ -3550,7 +3550,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3550
3550
|
}
|
|
3551
3551
|
}, Ye = (a, i) => {
|
|
3552
3552
|
var g;
|
|
3553
|
-
(g = i.control.setting(a, i)) != null && g.click ? i.control.setting(a, i).click(a, i) :
|
|
3553
|
+
(g = i.control.setting(a, i)) != null && g.click ? i.control.setting(a, i).click(a, i) : wt(
|
|
3554
3554
|
{
|
|
3555
3555
|
title: i.control.setting(a, i).title || i.control.setting(a, i).label || "设置",
|
|
3556
3556
|
size: i.control.setting(a, i).size || 470,
|
|
@@ -3574,7 +3574,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3574
3574
|
}, oe = t.value.control, me = {
|
|
3575
3575
|
add: A,
|
|
3576
3576
|
batch: y,
|
|
3577
|
-
download:
|
|
3577
|
+
download: xe,
|
|
3578
3578
|
toggleExpand: _,
|
|
3579
3579
|
setting: Ye,
|
|
3580
3580
|
view: S,
|
|
@@ -3592,8 +3592,8 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3592
3592
|
groupName: (N == null ? void 0 : N.groupName) || "default"
|
|
3593
3593
|
};
|
|
3594
3594
|
}).sort((P, N) => P.sort - N.sort), be = (a, i, g, x, O) => Fe(a, i, g, x, O).reduce((P, N) => {
|
|
3595
|
-
const
|
|
3596
|
-
return P[
|
|
3595
|
+
const $e = N.groupName || "default";
|
|
3596
|
+
return P[$e] || (P[$e] = []), P[$e].push(N), P;
|
|
3597
3597
|
}, {}), ie = Be(() => Object.fromEntries(
|
|
3598
3598
|
Object.entries(t.value).filter(
|
|
3599
3599
|
([a, i]) => i.type !== "hidden" && i.hidden !== !0 && i.visible !== !1 && i.showCol !== !1
|
|
@@ -3611,8 +3611,8 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3611
3611
|
};
|
|
3612
3612
|
if (a.getDicts) {
|
|
3613
3613
|
const x = i.toString();
|
|
3614
|
-
return Ge.value[x] ? (a.options = Ge.value[x], a.formatter || (a.formatter = (O, P, N,
|
|
3615
|
-
Ge.value[x] = O, a.options = O, a.formatter || (a.formatter = (P, N,
|
|
3614
|
+
return Ge.value[x] ? (a.options = Ge.value[x], a.formatter || (a.formatter = (O, P, N, $e) => a.options && g(a.options, N) || N), Promise.resolve()) : a.getDicts(t.value.table.data).then((O) => {
|
|
3615
|
+
Ge.value[x] = O, a.options = O, a.formatter || (a.formatter = (P, N, $e, Ee) => a.options && g(a.options, $e) || $e);
|
|
3616
3616
|
});
|
|
3617
3617
|
}
|
|
3618
3618
|
return Promise.resolve();
|
|
@@ -3661,7 +3661,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3661
3661
|
}, Re = () => dr(Object.keys(t.value).toString()).toUpperCase().substring(8, 24);
|
|
3662
3662
|
return Hl(() => {
|
|
3663
3663
|
G.value = Re();
|
|
3664
|
-
}),
|
|
3664
|
+
}), Mt(async () => {
|
|
3665
3665
|
try {
|
|
3666
3666
|
c.value = Object.entries(t.value).filter(
|
|
3667
3667
|
([i, g]) => g.type !== "hidden" && g.type !== "control" && g.visible !== !1
|
|
@@ -3669,7 +3669,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3669
3669
|
key: i || "",
|
|
3670
3670
|
label: g.label,
|
|
3671
3671
|
value: !0
|
|
3672
|
-
})), await
|
|
3672
|
+
})), await at();
|
|
3673
3673
|
const a = Object.entries(t.value).filter(
|
|
3674
3674
|
([i, g]) => g.type !== "control" && g.type !== "hidden"
|
|
3675
3675
|
);
|
|
@@ -3680,8 +3680,8 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3680
3680
|
console.error("Error during component initialization:", a), t.value.table.autoWatch || t.value.table.load();
|
|
3681
3681
|
}
|
|
3682
3682
|
}), d({ addRow: A, editRow: w, deleteRow: p, readForm: S, saveRowData: I, closeDialog: Oe, formData: k }), (a, i) => {
|
|
3683
|
-
var qe, je, Pe,
|
|
3684
|
-
const g = H("el-button-group"), x = H("el-dropdown-item"), O = H("el-dropdown-menu"), P = H("el-dropdown"), N = H("el-table-column"),
|
|
3683
|
+
var qe, je, Pe, Ke, gt, St, Tt;
|
|
3684
|
+
const g = H("el-button-group"), x = H("el-dropdown-item"), O = H("el-dropdown-menu"), P = H("el-dropdown"), N = H("el-table-column"), $e = H("el-table"), Ee = H("el-pagination");
|
|
3685
3685
|
return m(), z(se, null, [
|
|
3686
3686
|
u.value ? (m(), D(Qt, Y({
|
|
3687
3687
|
key: 0,
|
|
@@ -3689,7 +3689,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3689
3689
|
"onUpdate:modelValue": i[2] || (i[2] = (te) => u.value = te)
|
|
3690
3690
|
}, t.value.dialog, {
|
|
3691
3691
|
type: t.value.dialog.mode
|
|
3692
|
-
}),
|
|
3692
|
+
}), ke({
|
|
3693
3693
|
default: $(() => [
|
|
3694
3694
|
u.value ? (m(), D(Ze(Ft), {
|
|
3695
3695
|
key: 0,
|
|
@@ -3698,7 +3698,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3698
3698
|
onSubmit: i[1] || (i[1] = (te, ye, ue) => F(ee)(te, ye, ue)),
|
|
3699
3699
|
onReset: ae,
|
|
3700
3700
|
flag: l.value
|
|
3701
|
-
},
|
|
3701
|
+
}, ke({ _: 2 }, [
|
|
3702
3702
|
W(a.$slots, (te, ye, ue) => ({
|
|
3703
3703
|
name: ye,
|
|
3704
3704
|
fn: $((He) => {
|
|
@@ -3711,7 +3711,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3711
3711
|
];
|
|
3712
3712
|
})
|
|
3713
3713
|
}))
|
|
3714
|
-
]), 1064, ["modelValue", "flag"])) :
|
|
3714
|
+
]), 1064, ["modelValue", "flag"])) : _e("", !0)
|
|
3715
3715
|
]),
|
|
3716
3716
|
_: 2
|
|
3717
3717
|
}, [
|
|
@@ -3746,9 +3746,9 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3746
3746
|
]),
|
|
3747
3747
|
key: "3"
|
|
3748
3748
|
} : void 0
|
|
3749
|
-
]), 1040, ["modelValue", "type"])) :
|
|
3749
|
+
]), 1040, ["modelValue", "type"])) : _e("", !0),
|
|
3750
3750
|
K("div", cr, [
|
|
3751
|
-
((
|
|
3751
|
+
((Ke = (Pe = t.value) == null ? void 0 : Pe.query) == null ? void 0 : Ke.hidden) != !0 ? (m(), z("div", fr, [
|
|
3752
3752
|
C(a.$slots, "query", {}, () => [
|
|
3753
3753
|
de(_a, {
|
|
3754
3754
|
modelValue: t.value,
|
|
@@ -3757,7 +3757,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3757
3757
|
"onUpdate:info": i[4] || (i[4] = (te) => T.value = te),
|
|
3758
3758
|
onQuery: B,
|
|
3759
3759
|
onReset: Me
|
|
3760
|
-
},
|
|
3760
|
+
}, ke({
|
|
3761
3761
|
"q-btns": $(() => [
|
|
3762
3762
|
C(a.$slots, "q-btns", {}, () => [
|
|
3763
3763
|
(m(!0), z(se, null, W(be(["add", "toggleExpand", "batch", "download", "setting"], k.value, t.value), (te, ye) => (m(), z(se, null, [
|
|
@@ -3785,7 +3785,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3785
3785
|
onClick: (ut) => ue.func(k.value, t.value, c.value)
|
|
3786
3786
|
}), null, 16, ["title", "disabled", "onClick"]))
|
|
3787
3787
|
];
|
|
3788
|
-
}, !0) :
|
|
3788
|
+
}, !0) : _e("", !0),
|
|
3789
3789
|
C(a.$slots, ue.name + "-right", {}, void 0, !0)
|
|
3790
3790
|
], 64))), 256)) : (m(), D(g, { key: 1 }, {
|
|
3791
3791
|
default: $(() => [
|
|
@@ -3814,7 +3814,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3814
3814
|
onClick: (ut) => ue.func(k.value, t.value, c.value)
|
|
3815
3815
|
}), null, 16, ["title", "disabled", "onClick"]))
|
|
3816
3816
|
];
|
|
3817
|
-
}, !0) :
|
|
3817
|
+
}, !0) : _e("", !0),
|
|
3818
3818
|
C(a.$slots, ue.name + "-right", {}, void 0, !0)
|
|
3819
3819
|
], 64))), 256))
|
|
3820
3820
|
]),
|
|
@@ -3836,13 +3836,13 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3836
3836
|
}))
|
|
3837
3837
|
]), 1032, ["modelValue", "info"])
|
|
3838
3838
|
], !0)
|
|
3839
|
-
])) :
|
|
3839
|
+
])) : _e("", !0),
|
|
3840
3840
|
C(a.$slots, "table-title", {
|
|
3841
3841
|
model: t.value,
|
|
3842
3842
|
queryInfo: T.value
|
|
3843
3843
|
}, void 0, !0),
|
|
3844
3844
|
K("div", vr, [
|
|
3845
|
-
v.value ? (m(), D(
|
|
3845
|
+
v.value ? (m(), D($e, Y({ key: 0 }, {
|
|
3846
3846
|
...a.$attrs,
|
|
3847
3847
|
...F(We)(
|
|
3848
3848
|
t.value.table,
|
|
@@ -3873,7 +3873,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3873
3873
|
} : {
|
|
3874
3874
|
...t.value.tableColumns,
|
|
3875
3875
|
...F(We)(te, (ne) => r.includes(ne))
|
|
3876
|
-
}),
|
|
3876
|
+
}), ke({
|
|
3877
3877
|
header: $(({ column: ne, $index: ce }) => [
|
|
3878
3878
|
ye == "control" ? C(a.$slots, `${ye}-header`, {
|
|
3879
3879
|
key: 0,
|
|
@@ -3905,11 +3905,11 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3905
3905
|
} : te.type == "control" ? {
|
|
3906
3906
|
name: "default",
|
|
3907
3907
|
fn: $(({ row: ne, column: ce, $index: pe }) => {
|
|
3908
|
-
var
|
|
3908
|
+
var pt, mt;
|
|
3909
3909
|
return [
|
|
3910
3910
|
K("div", {
|
|
3911
|
-
class: yl(["control", (
|
|
3912
|
-
style: Ue((
|
|
3911
|
+
class: yl(["control", (pt = t.value.control) == null ? void 0 : pt.class]),
|
|
3912
|
+
style: Ue((mt = t.value.control) == null ? void 0 : mt.style)
|
|
3913
3913
|
}, [
|
|
3914
3914
|
C(a.$slots, "control", {}, () => [
|
|
3915
3915
|
C(a.$slots, "control-left", {
|
|
@@ -3918,7 +3918,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3918
3918
|
index: pe
|
|
3919
3919
|
}, void 0, !0),
|
|
3920
3920
|
(m(!0), z(se, null, W(be(["view", "edit", "delete", "save"], ne, ce, pe, t.value), (it, dt) => {
|
|
3921
|
-
var
|
|
3921
|
+
var $t;
|
|
3922
3922
|
return m(), z(se, null, [
|
|
3923
3923
|
dt == "default" ? (m(!0), z(se, { key: 0 }, W(it, (Z) => (m(), z(se, null, [
|
|
3924
3924
|
C(a.$slots, Z.name + "-left", {
|
|
@@ -3948,13 +3948,13 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3948
3948
|
}, { ref_for: !0 }, Z.attr, {
|
|
3949
3949
|
onClick: (ct) => Z.func(ne, ce, pe, t.value)
|
|
3950
3950
|
}), null, 16, ["title", "onClick"]))
|
|
3951
|
-
], !0) :
|
|
3951
|
+
], !0) : _e("", !0),
|
|
3952
3952
|
C(a.$slots, Z.name + "-right", {
|
|
3953
3953
|
row: ne,
|
|
3954
3954
|
column: ce,
|
|
3955
3955
|
index: pe
|
|
3956
3956
|
}, void 0, !0)
|
|
3957
|
-
], 64))), 256)) : dt != null && dt.startsWith("dropdown") && ((
|
|
3957
|
+
], 64))), 256)) : dt != null && dt.startsWith("dropdown") && (($t = Te(ne, ce, pe, t.value)) != null && $t.auth()) ? (m(), D(P, Y({
|
|
3958
3958
|
key: 1,
|
|
3959
3959
|
ref_for: !0
|
|
3960
3960
|
}, Te(ne, ce, pe, t.value)), {
|
|
@@ -3962,21 +3962,21 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3962
3962
|
de(O, null, {
|
|
3963
3963
|
default: $(() => [
|
|
3964
3964
|
(m(!0), z(se, null, W(it, (Z) => {
|
|
3965
|
-
var ct,
|
|
3965
|
+
var ct, kt, _t;
|
|
3966
3966
|
return m(), z(se, null, [
|
|
3967
3967
|
a.$slots[Z.name + "-left"] ? C(a.$slots, Z.name + "-left", {
|
|
3968
3968
|
key: 0,
|
|
3969
3969
|
row: ne,
|
|
3970
3970
|
column: ce,
|
|
3971
3971
|
index: pe
|
|
3972
|
-
}, void 0, !0) :
|
|
3972
|
+
}, void 0, !0) : _e("", !0),
|
|
3973
3973
|
Z.attr.auth() ? (m(), D(x, Y({
|
|
3974
3974
|
key: 1,
|
|
3975
3975
|
ref_for: !0
|
|
3976
3976
|
}, {
|
|
3977
3977
|
command: (ct = Z == null ? void 0 : Z.attr) == null ? void 0 : ct.command,
|
|
3978
|
-
divided: (
|
|
3979
|
-
disabled: (
|
|
3978
|
+
divided: (kt = Z == null ? void 0 : Z.attr) == null ? void 0 : kt.divided,
|
|
3979
|
+
disabled: (_t = Z == null ? void 0 : Z.attr) == null ? void 0 : _t.disabled
|
|
3980
3980
|
}), {
|
|
3981
3981
|
default: $(() => [
|
|
3982
3982
|
C(a.$slots, Z.name, {
|
|
@@ -4003,13 +4003,13 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4003
4003
|
], !0)
|
|
4004
4004
|
]),
|
|
4005
4005
|
_: 2
|
|
4006
|
-
}, 1040)) :
|
|
4006
|
+
}, 1040)) : _e("", !0),
|
|
4007
4007
|
a.$slots[Z.name + "-right"] ? C(a.$slots, Z.name + "-right", {
|
|
4008
4008
|
key: 2,
|
|
4009
4009
|
row: ne,
|
|
4010
4010
|
column: ce,
|
|
4011
4011
|
index: pe
|
|
4012
|
-
}, void 0, !0) :
|
|
4012
|
+
}, void 0, !0) : _e("", !0)
|
|
4013
4013
|
], 64);
|
|
4014
4014
|
}), 256))
|
|
4015
4015
|
]),
|
|
@@ -4053,7 +4053,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4053
4053
|
}, { ref_for: !0 }, Z.attr, {
|
|
4054
4054
|
onClick: (ct) => Z.func(ne, ce, pe, t.value)
|
|
4055
4055
|
}), null, 16, ["title", "onClick"]))
|
|
4056
|
-
], !0) :
|
|
4056
|
+
], !0) : _e("", !0),
|
|
4057
4057
|
C(a.$slots, Z.name + "-right", {
|
|
4058
4058
|
row: ne,
|
|
4059
4059
|
column: ce,
|
|
@@ -4084,21 +4084,21 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4084
4084
|
column: ce,
|
|
4085
4085
|
index: pe
|
|
4086
4086
|
}, () => {
|
|
4087
|
-
var
|
|
4087
|
+
var pt;
|
|
4088
4088
|
return [
|
|
4089
|
-
(m(), D(
|
|
4089
|
+
(m(), D(Ct, {
|
|
4090
4090
|
modelValue: ne[ye],
|
|
4091
|
-
"onUpdate:modelValue": (
|
|
4091
|
+
"onUpdate:modelValue": (mt) => ne[ye] = mt,
|
|
4092
4092
|
item: te == null ? void 0 : te.table(ne, ce, pe),
|
|
4093
4093
|
ctrlKey: ye,
|
|
4094
4094
|
key: `${ye}-${pe} -${Q.value}`,
|
|
4095
|
-
ctrlType: (
|
|
4095
|
+
ctrlType: (pt = te.table(ne, ce, pe)) != null && pt.type ? te.table(ne, ce, pe).type : te.type,
|
|
4096
4096
|
model: t.value,
|
|
4097
4097
|
class: "g-ctrl-container",
|
|
4098
4098
|
t: "t",
|
|
4099
4099
|
formInfo: ne
|
|
4100
|
-
},
|
|
4101
|
-
W(a.$slots, (
|
|
4100
|
+
}, ke({ _: 2 }, [
|
|
4101
|
+
W(a.$slots, (mt, it) => ({
|
|
4102
4102
|
name: it,
|
|
4103
4103
|
fn: $((dt) => [
|
|
4104
4104
|
C(a.$slots, it, {
|
|
@@ -4118,7 +4118,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4118
4118
|
}, () => [
|
|
4119
4119
|
K("div", {
|
|
4120
4120
|
style: Ue([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, te == null ? void 0 : te.style]),
|
|
4121
|
-
innerHTML:
|
|
4121
|
+
innerHTML: we(
|
|
4122
4122
|
te,
|
|
4123
4123
|
typeof ce.formatter == "function" ? ce.formatter(ne, ce, ne[ye], pe) : ne[ye]
|
|
4124
4124
|
)
|
|
@@ -4132,8 +4132,8 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4132
4132
|
], !0)
|
|
4133
4133
|
]),
|
|
4134
4134
|
_: 3
|
|
4135
|
-
}, 16, ["summary-method"])) :
|
|
4136
|
-
(Tt = (St = (
|
|
4135
|
+
}, 16, ["summary-method"])) : _e("", !0),
|
|
4136
|
+
(Tt = (St = (gt = t.value) == null ? void 0 : gt.table) == null ? void 0 : St.page) != null && Tt.hidden ? _e("", !0) : C(a.$slots, "page", { key: 1 }, () => [
|
|
4137
4137
|
de(Ee, Y({
|
|
4138
4138
|
"page-size": t.value.table.page.pageSize,
|
|
4139
4139
|
"onUpdate:pageSize": i[6] || (i[6] = (te) => t.value.table.page.pageSize = te),
|
|
@@ -4151,7 +4151,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4151
4151
|
], 64);
|
|
4152
4152
|
};
|
|
4153
4153
|
}
|
|
4154
|
-
}), hr = /* @__PURE__ */
|
|
4154
|
+
}), hr = /* @__PURE__ */ rt(mr, [["__scopeId", "data-v-4754c553"]]), yr = {
|
|
4155
4155
|
__name: "g-context-menu",
|
|
4156
4156
|
props: {
|
|
4157
4157
|
nodeInfo: {
|
|
@@ -4198,7 +4198,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4198
4198
|
switch (u) {
|
|
4199
4199
|
case "add":
|
|
4200
4200
|
e.processFormData ? T.value = await e.processFormData({ cmd: u, data: f.value, node: c }) : T.value = f.value;
|
|
4201
|
-
const V =
|
|
4201
|
+
const V = wt({
|
|
4202
4202
|
title: ((q = o == null ? void 0 : o.add) == null ? void 0 : q.label) || "新增子节点",
|
|
4203
4203
|
width: 450,
|
|
4204
4204
|
alignCenter: !0,
|
|
@@ -4217,7 +4217,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4217
4217
|
break;
|
|
4218
4218
|
case "edit":
|
|
4219
4219
|
e.processFormData ? v.value = await e.processFormData({ cmd: u, data: r, node: c }) : v.value = r;
|
|
4220
|
-
const k =
|
|
4220
|
+
const k = wt({
|
|
4221
4221
|
title: ((U = o == null ? void 0 : o.edit) == null ? void 0 : U.label) || "编辑节点",
|
|
4222
4222
|
width: 450,
|
|
4223
4223
|
alignCenter: !0,
|
|
@@ -4300,10 +4300,10 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4300
4300
|
modelValue: { required: !0 },
|
|
4301
4301
|
modelModifiers: {}
|
|
4302
4302
|
},
|
|
4303
|
-
emits: /* @__PURE__ */
|
|
4303
|
+
emits: /* @__PURE__ */ ot(["load", "menu-command"], ["update:modelValue"]),
|
|
4304
4304
|
setup(n, { emit: d }) {
|
|
4305
4305
|
var k, Q, G, le;
|
|
4306
|
-
const e = d, l =
|
|
4306
|
+
const e = d, l = nt(n, "modelValue"), s = re(!0), o = zt(), t = re(
|
|
4307
4307
|
typeof ((k = o == null ? void 0 : o.tree) == null ? void 0 : k.width) == "number" ? `${o.tree.width}px` : ((Q = o == null ? void 0 : o.tree) == null ? void 0 : Q.width) || "180px"
|
|
4308
4308
|
), f = re(((G = o == null ? void 0 : o.tree) == null ? void 0 : G.search) === void 0 ? !0 : (le = o == null ? void 0 : o.tree) == null ? void 0 : le.search), T = re({}), v = re(""), h = re(null), u = re({}), r = (R, J) => {
|
|
4309
4309
|
var Te, Ve;
|
|
@@ -4319,16 +4319,16 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4319
4319
|
}, V = async (R, { data: J, node: fe, m: Te }, Ve) => {
|
|
4320
4320
|
var ve;
|
|
4321
4321
|
if (R === "add") {
|
|
4322
|
-
const L = await new Promise((
|
|
4322
|
+
const L = await new Promise((we) => {
|
|
4323
4323
|
e("menu-command", R, { data: J, node: fe, m: Te }, (Me) => {
|
|
4324
|
-
|
|
4324
|
+
we(Me);
|
|
4325
4325
|
});
|
|
4326
4326
|
});
|
|
4327
4327
|
L && ((ve = h.value) == null || ve.append(J, fe), fe.expanded = !0, Ve(L));
|
|
4328
4328
|
} else if (R === "refresh") {
|
|
4329
|
-
const L = await new Promise((
|
|
4329
|
+
const L = await new Promise((we) => {
|
|
4330
4330
|
e("menu-command", R, { data: J, node: fe }, (Me) => {
|
|
4331
|
-
|
|
4331
|
+
we(Me);
|
|
4332
4332
|
});
|
|
4333
4333
|
});
|
|
4334
4334
|
L ? typeof L == "function" && L() : (s.value = !1, setTimeout(() => {
|
|
@@ -4340,7 +4340,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4340
4340
|
return gl(v, (R) => {
|
|
4341
4341
|
h.value.filter(R);
|
|
4342
4342
|
}), (R, J) => {
|
|
4343
|
-
var L,
|
|
4343
|
+
var L, we;
|
|
4344
4344
|
const fe = H("el-input"), Te = H("el-dropdown"), Ve = H("el-tree"), ve = H("g-table");
|
|
4345
4345
|
return m(), z("div", gr, [
|
|
4346
4346
|
K("div", {
|
|
@@ -4354,7 +4354,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4354
4354
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
4355
4355
|
placeholder: "输入节点查询",
|
|
4356
4356
|
clearable: ""
|
|
4357
|
-
}, (
|
|
4357
|
+
}, (we = (L = F(o)) == null ? void 0 : L.tree) == null ? void 0 : we.search), null, 16, ["modelValue"])) : _e("", !0),
|
|
4358
4358
|
K("div", br, [
|
|
4359
4359
|
s.value ? (m(), D(Ve, Y({
|
|
4360
4360
|
key: 0,
|
|
@@ -4365,7 +4365,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4365
4365
|
ref: h,
|
|
4366
4366
|
onNodeClick: q,
|
|
4367
4367
|
onNodeContextmenu: U
|
|
4368
|
-
}, R.$attrs.tree),
|
|
4368
|
+
}, R.$attrs.tree), ke({
|
|
4369
4369
|
default: $(({ node: Me, data: B }) => [
|
|
4370
4370
|
C(R.$slots, "tree", {
|
|
4371
4371
|
node: Me,
|
|
@@ -4384,7 +4384,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4384
4384
|
},
|
|
4385
4385
|
onMenuCommand: V,
|
|
4386
4386
|
"process-form-data": (w = (_ = F(o)) == null ? void 0 : _.tree) == null ? void 0 : w.processFormData
|
|
4387
|
-
},
|
|
4387
|
+
}, ke({ _: 2 }, [
|
|
4388
4388
|
W(R.$slots, (p, S, M) => ({
|
|
4389
4389
|
name: S,
|
|
4390
4390
|
fn: $((I) => [
|
|
@@ -4414,7 +4414,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4414
4414
|
C(R.$slots, B, { data: y }, void 0, !0)
|
|
4415
4415
|
])
|
|
4416
4416
|
}))
|
|
4417
|
-
]), 1040, ["style"])) :
|
|
4417
|
+
]), 1040, ["style"])) : _e("", !0)
|
|
4418
4418
|
])
|
|
4419
4419
|
], 4),
|
|
4420
4420
|
K("div", $r, [
|
|
@@ -4424,7 +4424,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4424
4424
|
}, F(We)(R.$attrs, (Me) => Me !== "tree"), {
|
|
4425
4425
|
onLoad: c,
|
|
4426
4426
|
node: T.value
|
|
4427
|
-
}),
|
|
4427
|
+
}), ke({ _: 2 }, [
|
|
4428
4428
|
W(R.$slots, (Me, B, A) => ({
|
|
4429
4429
|
name: B,
|
|
4430
4430
|
fn: $((y) => [
|
|
@@ -4436,7 +4436,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4436
4436
|
]);
|
|
4437
4437
|
};
|
|
4438
4438
|
}
|
|
4439
|
-
}), _r = /* @__PURE__ */
|
|
4439
|
+
}), _r = /* @__PURE__ */ rt(kr, [["__scopeId", "data-v-78ecc707"]]), xr = {
|
|
4440
4440
|
key: 0,
|
|
4441
4441
|
class: "op-group"
|
|
4442
4442
|
}, Cr = {
|
|
@@ -4486,15 +4486,15 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4486
4486
|
], 12, Mr))), 128))
|
|
4487
4487
|
]));
|
|
4488
4488
|
}
|
|
4489
|
-
}), Tr = /* @__PURE__ */
|
|
4489
|
+
}), Tr = /* @__PURE__ */ rt(Sr, [["__scopeId", "data-v-c0ac6b77"]]), Er = Object.freeze({}), Il = [hr, Ft, _r, Tr, Qt, Tl];
|
|
4490
4490
|
let Pt = {};
|
|
4491
4491
|
const Hr = {
|
|
4492
4492
|
install: (n, d = {}) => {
|
|
4493
4493
|
Pt = Object.freeze({ ...Er, ...d }), Il.forEach((e) => {
|
|
4494
4494
|
n.component(e.name, e);
|
|
4495
|
-
}), n.provide("options", Pt), n.config.globalProperties.$open =
|
|
4495
|
+
}), n.provide("options", Pt), n.config.globalProperties.$open = wt;
|
|
4496
4496
|
}
|
|
4497
|
-
},
|
|
4497
|
+
}, wt = (n = {}) => {
|
|
4498
4498
|
if (typeof document > "u") return () => {
|
|
4499
4499
|
};
|
|
4500
4500
|
const d = document.createElement("div");
|
|
@@ -4653,7 +4653,7 @@ const De = {
|
|
|
4653
4653
|
TEL: "tel",
|
|
4654
4654
|
INPUTTAG: "input-tag"
|
|
4655
4655
|
}, Yt = () => {
|
|
4656
|
-
|
|
4656
|
+
at(() => {
|
|
4657
4657
|
const n = document.querySelector(".el-dialog");
|
|
4658
4658
|
if (!n || n.querySelector(".dialog-resize-handle"))
|
|
4659
4659
|
return;
|
|
@@ -4704,6 +4704,6 @@ export {
|
|
|
4704
4704
|
Ir as formatAmount,
|
|
4705
4705
|
ze as mergeObjects,
|
|
4706
4706
|
Nt as moneyToChinese,
|
|
4707
|
-
|
|
4707
|
+
wt as open,
|
|
4708
4708
|
Rr as throttle
|
|
4709
4709
|
};
|