vue-2024-ui 0.2.4 → 0.2.5
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 +393 -393
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Ht, { ElForm as pt, ElButtonGroup as mt, ElButton as
|
|
2
|
-
import { h as _e, mergeModels as Ge, useModel as Qe, ref as re, nextTick as lt, onMounted as ot, computed as Ke, resolveComponent as A, openBlock as u, createElementBlock as q, Fragment as X, createElementVNode as H, createBlock as V, createCommentVNode as ye, unref as
|
|
1
|
+
import Ht, { ElForm as pt, ElButtonGroup as mt, ElButton as Oe, ElPopover as $t, ElMessage as Xe, ElMessageBox as Ft, ElDialog as Pt, ElDrawer as Nt } from "element-plus";
|
|
2
|
+
import { h as _e, mergeModels as Ge, useModel as Qe, ref as re, nextTick as lt, onMounted as ot, computed as Ke, resolveComponent as A, openBlock as u, createElementBlock as q, Fragment as X, createElementVNode as H, createBlock as V, createCommentVNode as ye, unref as U, mergeProps as F, withCtx as b, renderSlot as $, renderList as z, createTextVNode as Ae, toDisplayString as ke, createSlots as ve, createVNode as G, normalizeStyle as qe, normalizeProps as Et, useSlots as qt, inject as Mt, useAttrs as Vt, onUnmounted as Wt, withModifiers as vt, resolveDynamicComponent as We, guardReactiveProps as Xt, Transition as Gt, withDirectives as Qt, vShow as Zt, onBeforeUnmount as Jt, normalizeClass as Ot, watchEffect as Kt, onBeforeMount as el, getCurrentInstance as tl, watch as ll, createApp as al } from "vue";
|
|
3
3
|
import { CircleCheck as It, Refresh as At, Plus as rl, ZoomIn as ol, Delete as Bt, More as ul, Search as nl, Download as Yt, DocumentCopy as sl, View as il, Edit as dl, CirclePlus as cl, Setting as fl, FullScreen as pl, CopyDocument as ml } from "@element-plus/icons-vue";
|
|
4
4
|
import Ut from "sortablejs";
|
|
5
5
|
import { Dexie as vl } from "dexie";
|
|
@@ -190,7 +190,7 @@ var Lt = { exports: {} };
|
|
|
190
190
|
(function(r, l) {
|
|
191
191
|
f.exports = l();
|
|
192
192
|
})(yl, function() {
|
|
193
|
-
var r = 1e3, l = 6e4, e = 36e5, i = "millisecond", M = "second",
|
|
193
|
+
var r = 1e3, l = 6e4, e = 36e5, i = "millisecond", M = "second", Y = "minute", S = "hour", E = "day", k = "week", L = "month", te = "quarter", se = "year", T = "date", Q = "Invalid Date", fe = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, N = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, pe = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(m) {
|
|
194
194
|
var p = ["th", "st", "nd", "rd"], a = m % 100;
|
|
195
195
|
return "[" + m + (p[(a - 20) % 10] || p[a] || p[0]) + "]";
|
|
196
196
|
} }, de = function(m, p, a) {
|
|
@@ -201,12 +201,12 @@ var Lt = { exports: {} };
|
|
|
201
201
|
return (p <= 0 ? "+" : "-") + de(D, 2, "0") + ":" + de(g, 2, "0");
|
|
202
202
|
}, m: function m(p, a) {
|
|
203
203
|
if (p.date() < a.date()) return -m(a, p);
|
|
204
|
-
var D = 12 * (a.year() - p.year()) + (a.month() - p.month()), g = p.clone().add(D,
|
|
204
|
+
var D = 12 * (a.year() - p.year()) + (a.month() - p.month()), g = p.clone().add(D, L), h = a - g < 0, O = p.clone().add(D + (h ? -1 : 1), L);
|
|
205
205
|
return +(-(D + (a - g) / (h ? g - O : O - g)) || 0);
|
|
206
206
|
}, a: function(m) {
|
|
207
207
|
return m < 0 ? Math.ceil(m) || 0 : Math.floor(m);
|
|
208
208
|
}, p: function(m) {
|
|
209
|
-
return { M:
|
|
209
|
+
return { M: L, y: se, w: k, d: E, D: T, h: S, m: Y, s: M, ms: i, Q: te }[m] || String(m || "").toLowerCase().replace(/s$/, "");
|
|
210
210
|
}, u: function(m) {
|
|
211
211
|
return m === void 0;
|
|
212
212
|
} }, ie = "en", ue = {};
|
|
@@ -284,7 +284,7 @@ var Lt = { exports: {} };
|
|
|
284
284
|
switch (O) {
|
|
285
285
|
case se:
|
|
286
286
|
return h ? P(1, 0) : P(31, 11);
|
|
287
|
-
case
|
|
287
|
+
case L:
|
|
288
288
|
return h ? P(1, v) : P(0, v + 1);
|
|
289
289
|
case k:
|
|
290
290
|
var ge = this.$locale().weekStart || 0, me = (Z < ge ? Z + 7 : Z) - ge;
|
|
@@ -294,7 +294,7 @@ var Lt = { exports: {} };
|
|
|
294
294
|
return J(K + "Hours", 0);
|
|
295
295
|
case S:
|
|
296
296
|
return J(K + "Minutes", 1);
|
|
297
|
-
case
|
|
297
|
+
case Y:
|
|
298
298
|
return J(K + "Seconds", 2);
|
|
299
299
|
case M:
|
|
300
300
|
return J(K + "Milliseconds", 3);
|
|
@@ -304,8 +304,8 @@ var Lt = { exports: {} };
|
|
|
304
304
|
}, p.endOf = function(a) {
|
|
305
305
|
return this.startOf(a, !1);
|
|
306
306
|
}, p.$set = function(a, D) {
|
|
307
|
-
var g, h = ae.p(a), O = "set" + (this.$u ? "UTC" : ""), P = (g = {}, g[E] = O + "Date", g[T] = O + "Date", g[
|
|
308
|
-
if (h ===
|
|
307
|
+
var g, h = ae.p(a), O = "set" + (this.$u ? "UTC" : ""), P = (g = {}, g[E] = O + "Date", g[T] = O + "Date", g[L] = O + "Month", g[se] = O + "FullYear", g[S] = O + "Hours", g[Y] = O + "Minutes", g[M] = O + "Seconds", g[i] = O + "Milliseconds", g)[h], J = h === E ? this.$D + (D - this.$W) : D;
|
|
308
|
+
if (h === L || h === se) {
|
|
309
309
|
var Z = this.clone().set(T, 1);
|
|
310
310
|
Z.$d[P](J), Z.init(), this.$d = Z.set(T, Math.min(this.$D, Z.daysInMonth())).$d;
|
|
311
311
|
} else P && this.$d[P](J);
|
|
@@ -321,11 +321,11 @@ var Lt = { exports: {} };
|
|
|
321
321
|
var c = oe(h);
|
|
322
322
|
return ae.w(c.date(c.date() + Math.round(v * a)), h);
|
|
323
323
|
};
|
|
324
|
-
if (O ===
|
|
324
|
+
if (O === L) return this.set(L, this.$M + a);
|
|
325
325
|
if (O === se) return this.set(se, this.$y + a);
|
|
326
326
|
if (O === E) return P(1);
|
|
327
327
|
if (O === k) return P(7);
|
|
328
|
-
var J = (g = {}, g[
|
|
328
|
+
var J = (g = {}, g[Y] = l, g[S] = e, g[M] = r, g)[O] || 1, Z = this.$d.getTime() + a * J;
|
|
329
329
|
return ae.w(Z, this);
|
|
330
330
|
}, p.subtract = function(a, D) {
|
|
331
331
|
return this.add(-1 * a, D);
|
|
@@ -405,7 +405,7 @@ var Lt = { exports: {} };
|
|
|
405
405
|
case se:
|
|
406
406
|
h = c() / 12;
|
|
407
407
|
break;
|
|
408
|
-
case
|
|
408
|
+
case L:
|
|
409
409
|
h = c();
|
|
410
410
|
break;
|
|
411
411
|
case te:
|
|
@@ -420,7 +420,7 @@ var Lt = { exports: {} };
|
|
|
420
420
|
case S:
|
|
421
421
|
h = v / e;
|
|
422
422
|
break;
|
|
423
|
-
case
|
|
423
|
+
case Y:
|
|
424
424
|
h = v / l;
|
|
425
425
|
break;
|
|
426
426
|
case M:
|
|
@@ -431,7 +431,7 @@ var Lt = { exports: {} };
|
|
|
431
431
|
}
|
|
432
432
|
return g ? h : ae.a(h);
|
|
433
433
|
}, p.daysInMonth = function() {
|
|
434
|
-
return this.endOf(
|
|
434
|
+
return this.endOf(L).$D;
|
|
435
435
|
}, p.$locale = function() {
|
|
436
436
|
return ue[this.$L];
|
|
437
437
|
}, p.locale = function(a, D) {
|
|
@@ -450,7 +450,7 @@ var Lt = { exports: {} };
|
|
|
450
450
|
return this.$d.toUTCString();
|
|
451
451
|
}, m;
|
|
452
452
|
}(), w = Ie.prototype;
|
|
453
|
-
return oe.prototype = w, [["$ms", i], ["$s", M], ["$m",
|
|
453
|
+
return oe.prototype = w, [["$ms", i], ["$s", M], ["$m", Y], ["$H", S], ["$W", E], ["$M", L], ["$y", se], ["$D", T]].forEach(function(m) {
|
|
454
454
|
w[m[1]] = function(p) {
|
|
455
455
|
return this.$g(p, m[0], m[1]);
|
|
456
456
|
};
|
|
@@ -462,7 +462,7 @@ var Lt = { exports: {} };
|
|
|
462
462
|
});
|
|
463
463
|
})(Lt);
|
|
464
464
|
var bl = Lt.exports;
|
|
465
|
-
const wt = /* @__PURE__ */ gl(bl),
|
|
465
|
+
const wt = /* @__PURE__ */ gl(bl), zt = {
|
|
466
466
|
inline: !0,
|
|
467
467
|
type: "hidden",
|
|
468
468
|
"scroll-to-error": !0,
|
|
@@ -514,10 +514,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
514
514
|
}, $l = {
|
|
515
515
|
style: { display: "flex", width: "100%" },
|
|
516
516
|
class: "g-ctrl-container"
|
|
517
|
-
}, wl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, El = {
|
|
518
|
-
key: 19,
|
|
519
|
-
style: { position: "relative" }
|
|
520
|
-
}, _l = ["title"], kl = ["innerHTML"], Cl = ["innerHTML"], Dl = ["innerHTML"], Ml = ["innerHTML"], Vl = ["innerHTML"], Sl = ["innerHTML"], Tl = ["innerHTML"], xl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
517
|
+
}, wl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, El = ["title"], _l = ["innerHTML"], kl = ["innerHTML"], Cl = ["innerHTML"], Dl = ["innerHTML"], Ml = ["innerHTML"], Vl = ["innerHTML"], Sl = ["innerHTML"], Tl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
521
518
|
__name: "g-ctrl",
|
|
522
519
|
props: /* @__PURE__ */ Ge(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
523
520
|
modelValue: { required: !0 },
|
|
@@ -526,10 +523,10 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
526
523
|
emits: ["update:modelValue"],
|
|
527
524
|
setup(f) {
|
|
528
525
|
var Ie, w, m, p, a, D, g, h, O, P, J, Z;
|
|
529
|
-
const s = Qe(f, "modelValue"), r = f, l = re(r.item || {}), e = re(r.ctrlKey), i = re(r.ctrlType), M = re(r.model),
|
|
526
|
+
const s = Qe(f, "modelValue"), r = f, l = re(r.item || {}), e = re(r.ctrlKey), i = re(r.ctrlType), M = re(r.model), Y = re([]), S = re([]), E = re(!1), k = re(!1);
|
|
530
527
|
!((Ie = i.value) != null && Ie.startsWith("text")) && !((w = i.value) != null && w.startsWith("link")) && !((m = i.value) != null && m.startsWith("tag")) && !((p = i.value) != null && p.startsWith("div")) && !((a = i.value) != null && a.startsWith("span")) && !((D = i.value) != null && D.startsWith("avatar")) && ((g = l.value) != null && g.style || (l.value.style = { width: ((O = (h = l.value) == null ? void 0 : h.style) == null ? void 0 : O.width) || "100%" }));
|
|
531
|
-
const
|
|
532
|
-
|
|
528
|
+
const L = re({ display: "flex", flex: 1 }), te = r.t === "t" ? "center" : "flex-start", se = ((P = l.value) == null ? void 0 : P.style) || {};
|
|
529
|
+
L.value = { ...L.value, justifyContent: te, ...se };
|
|
533
530
|
const T = () => {
|
|
534
531
|
const v = qt(), c = Object.keys(v), K = `${r.t}-${e.value}-`;
|
|
535
532
|
return c.filter((be) => be.startsWith(K)).map((be) => be.replace(K, ""));
|
|
@@ -610,15 +607,15 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
610
607
|
console.error(`Failed to load ${Se} for ${we}:`, Ue);
|
|
611
608
|
});
|
|
612
609
|
};
|
|
613
|
-
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(i.value) && v(i.value), i.value ===
|
|
610
|
+
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(i.value) && v(i.value), i.value === Ce.TREESELECT && await (async () => {
|
|
614
611
|
try {
|
|
615
|
-
typeof l.value.getDicts == "function" ?
|
|
612
|
+
typeof l.value.getDicts == "function" ? Y.value = await l.value.getDicts(r.formInfo) : Y.value = S.value;
|
|
616
613
|
} catch (Se) {
|
|
617
614
|
console.error("Failed to load data for tree-select:", Se);
|
|
618
615
|
}
|
|
619
616
|
})(), r.t == "q") {
|
|
620
617
|
let we = l.value.type || i.value;
|
|
621
|
-
(we === void 0 || i.value === "input" || we ==
|
|
618
|
+
(we === void 0 || i.value === "input" || we == Ce.NUMBER || we == Ce.EMAIL || we == "url" || we == "text") && l.value.onKeyup == null && (l.value.onKeyup = (Se) => {
|
|
622
619
|
var xe, Ue;
|
|
623
620
|
(Se.keyCode === 13 || Se.key === "Enter") && ((Ue = (xe = M.value) == null ? void 0 : xe.table) == null || Ue.load());
|
|
624
621
|
}), [
|
|
@@ -649,8 +646,8 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
649
646
|
return l.value["file-list"] && l.value["file-list"].length ? (v = l.value["file-list"]) == null ? void 0 : v.map((c) => c == null ? void 0 : c.url) : [s.value];
|
|
650
647
|
});
|
|
651
648
|
return (v, c) => {
|
|
652
|
-
var at, rt, B, ne, _, j, ee, Pe, Ne,
|
|
653
|
-
const K = A("el-image-viewer"), ge = A("el-radio"), me = A("el-radio-group"), be = A("el-radio-button"), $e = A("el-checkbox"), we = A("el-checkbox-group"), Se = A("el-checkbox-button"), xe = A("g-select-option"), Ue = A("el-option"), ut = A("el-select"), nt = A("el-tree-select"), st = A("el-time-picker"), it = A("el-time-select"), dt = A("el-date-picker"), ct = A("el-color-picker"), ft = A("el-rate"), t = A("el-slider"), o = A("el-switch"), n = A("el-transfer"), y = A("el-cascader"), x = A("el-icon"), I = A("el-image"),
|
|
649
|
+
var at, rt, B, ne, _, j, ee, Pe, Ne, ze;
|
|
650
|
+
const K = A("el-image-viewer"), ge = A("el-radio"), me = A("el-radio-group"), be = A("el-radio-button"), $e = A("el-checkbox"), we = A("el-checkbox-group"), Se = A("el-checkbox-button"), xe = A("g-select-option"), Ue = A("el-option"), ut = A("el-select"), nt = A("el-tree-select"), st = A("el-time-picker"), it = A("el-time-select"), dt = A("el-date-picker"), ct = A("el-color-picker"), ft = A("el-rate"), t = A("el-slider"), o = A("el-switch"), n = A("el-transfer"), y = A("el-cascader"), x = A("el-icon"), I = A("el-image"), R = A("el-tooltip"), ce = A("el-upload"), Ee = A("el-autocomplete"), Te = A("el-input-number"), Ye = A("el-input"), He = A("el-link"), Le = A("el-text"), Je = A("el-avatar"), tt = A("el-tag");
|
|
654
651
|
return u(), q(X, null, [
|
|
655
652
|
H("div", null, [
|
|
656
653
|
E.value ? (u(), V(K, {
|
|
@@ -661,14 +658,14 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
661
658
|
}, null, 8, ["url-list"])) : ye("", !0)
|
|
662
659
|
]),
|
|
663
660
|
H("div", $l, [
|
|
664
|
-
i.value ==
|
|
661
|
+
i.value == U(Ce).RADIO ? (u(), V(me, F({
|
|
665
662
|
key: 0,
|
|
666
663
|
modelValue: s.value,
|
|
667
664
|
"onUpdate:modelValue": c[1] || (c[1] = (d) => s.value = d)
|
|
668
665
|
}, l.value), {
|
|
669
666
|
default: b(() => [
|
|
670
667
|
$(v.$slots, `${r.t}-${e.value}`, { data: l.value }, () => [
|
|
671
|
-
(u(!0), q(X, null,
|
|
668
|
+
(u(!0), q(X, null, z(S.value, (d) => (u(), V(ge, F({ ref_for: !0 }, d), {
|
|
672
669
|
default: b(() => [
|
|
673
670
|
$(v.$slots, `${r.t}-${e.value}-options`, { option: d }, void 0, !0)
|
|
674
671
|
]),
|
|
@@ -677,14 +674,14 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
677
674
|
], !0)
|
|
678
675
|
]),
|
|
679
676
|
_: 3
|
|
680
|
-
}, 16, ["modelValue"])) : i.value ==
|
|
677
|
+
}, 16, ["modelValue"])) : i.value == U(Ce).RADIOBUTTON ? (u(), V(me, F({
|
|
681
678
|
key: 1,
|
|
682
679
|
modelValue: s.value,
|
|
683
680
|
"onUpdate:modelValue": c[2] || (c[2] = (d) => s.value = d)
|
|
684
681
|
}, l.value), {
|
|
685
682
|
default: b(() => [
|
|
686
683
|
$(v.$slots, `${r.t}-${e.value}`, { data: l.value }, () => [
|
|
687
|
-
(u(!0), q(X, null,
|
|
684
|
+
(u(!0), q(X, null, z(S.value, (d) => (u(), V(be, F({ ref_for: !0 }, d), {
|
|
688
685
|
default: b(() => [
|
|
689
686
|
$(v.$slots, `${r.t}-${e.value}-options`, { option: d }, void 0, !0)
|
|
690
687
|
]),
|
|
@@ -693,28 +690,28 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
693
690
|
], !0)
|
|
694
691
|
]),
|
|
695
692
|
_: 3
|
|
696
|
-
}, 16, ["modelValue"])) : i.value ==
|
|
693
|
+
}, 16, ["modelValue"])) : i.value == U(Ce).CHECKBOX ? (u(), V($e, F({
|
|
697
694
|
key: 2,
|
|
698
695
|
modelValue: s.value,
|
|
699
696
|
"onUpdate:modelValue": c[3] || (c[3] = (d) => s.value = d)
|
|
700
697
|
}, l.value), {
|
|
701
698
|
default: b(() => [
|
|
702
699
|
$(v.$slots, `${r.t}-${e.value}`, { data: l.value }, () => [
|
|
703
|
-
c[27] || (c[27] = Ae(
|
|
700
|
+
c[27] || (c[27] = Ae(ke(" ")))
|
|
704
701
|
], !0)
|
|
705
702
|
]),
|
|
706
703
|
_: 3
|
|
707
|
-
}, 16, ["modelValue"])) : i.value ==
|
|
704
|
+
}, 16, ["modelValue"])) : i.value == U(Ce).CHECKBOXGROUP ? (u(), V(we, F({
|
|
708
705
|
key: 3,
|
|
709
706
|
modelValue: s.value,
|
|
710
707
|
"onUpdate:modelValue": c[4] || (c[4] = (d) => s.value = d)
|
|
711
708
|
}, l.value), {
|
|
712
709
|
default: b(() => [
|
|
713
710
|
$(v.$slots, `${r.t}-${e.value}`, { data: l.value }, () => [
|
|
714
|
-
(u(!0), q(X, null,
|
|
711
|
+
(u(!0), q(X, null, z(S.value, (d) => (u(), V($e, F({ ref_for: !0 }, d), {
|
|
715
712
|
default: b(() => [
|
|
716
713
|
$(v.$slots, `${r.t}-${e.value}-options`, { option: d }, () => [
|
|
717
|
-
Ae(
|
|
714
|
+
Ae(ke(d.label), 1)
|
|
718
715
|
], !0)
|
|
719
716
|
]),
|
|
720
717
|
_: 2
|
|
@@ -722,14 +719,14 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
722
719
|
], !0)
|
|
723
720
|
]),
|
|
724
721
|
_: 3
|
|
725
|
-
}, 16, ["modelValue"])) : i.value ==
|
|
722
|
+
}, 16, ["modelValue"])) : i.value == U(Ce).CHECKBOXGROUPBUTTON ? (u(), V(we, F({
|
|
726
723
|
key: 4,
|
|
727
724
|
modelValue: s.value,
|
|
728
725
|
"onUpdate:modelValue": c[5] || (c[5] = (d) => s.value = d)
|
|
729
726
|
}, l.value), {
|
|
730
727
|
default: b(() => [
|
|
731
728
|
$(v.$slots, `${r.t}-${e.value}`, { data: l.value }, () => [
|
|
732
|
-
(u(!0), q(X, null,
|
|
729
|
+
(u(!0), q(X, null, z(S.value, (d) => (u(), V(Se, F({ ref_for: !0 }, d), {
|
|
733
730
|
default: b(() => [
|
|
734
731
|
$(v.$slots, `${r.t}-${e.value}-options`, { option: d }, void 0, !0)
|
|
735
732
|
]),
|
|
@@ -738,7 +735,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
738
735
|
], !0)
|
|
739
736
|
]),
|
|
740
737
|
_: 3
|
|
741
|
-
}, 16, ["modelValue"])) : i.value ===
|
|
738
|
+
}, 16, ["modelValue"])) : i.value === U(Ce).SELECT ? (u(), V(ut, F({
|
|
742
739
|
key: 5,
|
|
743
740
|
modelValue: s.value,
|
|
744
741
|
"onUpdate:modelValue": c[6] || (c[6] = (d) => s.value = d),
|
|
@@ -750,10 +747,10 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
750
747
|
}, de.value), ve({
|
|
751
748
|
default: b(() => [
|
|
752
749
|
$(v.$slots, `${r.t}-${e.value}`, { options: S.value }, () => [
|
|
753
|
-
(u(!0), q(X, null,
|
|
750
|
+
(u(!0), q(X, null, z(S.value, (d) => (u(), q(X, {
|
|
754
751
|
key: d.value
|
|
755
752
|
}, [
|
|
756
|
-
G(Ue, F({ ref_for: !0 },
|
|
753
|
+
G(Ue, F({ ref_for: !0 }, U(Be)(d, (W) => W != "children"), {
|
|
757
754
|
onClick: (W) => {
|
|
758
755
|
de.value.change && de.value.change(d), ue();
|
|
759
756
|
}
|
|
@@ -772,10 +769,10 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
772
769
|
data: d,
|
|
773
770
|
t: r.t
|
|
774
771
|
}, ve({ _: 2 }, [
|
|
775
|
-
|
|
776
|
-
name:
|
|
772
|
+
z(v.$slots, (Me, Re) => ({
|
|
773
|
+
name: Re,
|
|
777
774
|
fn: b((et) => [
|
|
778
|
-
$(v.$slots,
|
|
775
|
+
$(v.$slots, Re, {
|
|
779
776
|
option: d,
|
|
780
777
|
data: et
|
|
781
778
|
}, void 0, !0)
|
|
@@ -788,11 +785,11 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
788
785
|
}),
|
|
789
786
|
_: 2
|
|
790
787
|
}, 1040, ["onClick"]),
|
|
791
|
-
d.children && d.children.length ? (u(!0), q(X, { key: 0 },
|
|
788
|
+
d.children && d.children.length ? (u(!0), q(X, { key: 0 }, z(d.children, (W) => (u(), V(Ue, F({
|
|
792
789
|
style: { "margin-left": "20px" },
|
|
793
790
|
key: W.value,
|
|
794
791
|
ref_for: !0
|
|
795
|
-
},
|
|
792
|
+
}, U(Be)(W, (C) => C != "children"), {
|
|
796
793
|
onClick: (C) => {
|
|
797
794
|
de.value.change && de.value.change(W), ue();
|
|
798
795
|
}
|
|
@@ -811,7 +808,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
811
808
|
data: W,
|
|
812
809
|
t: r.t
|
|
813
810
|
}, ve({ _: 2 }, [
|
|
814
|
-
|
|
811
|
+
z(v.$slots, (Re, et) => ({
|
|
815
812
|
name: et,
|
|
816
813
|
fn: b((bt) => [
|
|
817
814
|
$(v.$slots, et, {
|
|
@@ -842,7 +839,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
842
839
|
title: !0,
|
|
843
840
|
t: r.t
|
|
844
841
|
}, ve({ _: 2 }, [
|
|
845
|
-
|
|
842
|
+
z(v.$slots, (W, C) => ({
|
|
846
843
|
name: C,
|
|
847
844
|
fn: b((Me) => [
|
|
848
845
|
$(v.$slots, C, { data: Me }, void 0, !0)
|
|
@@ -853,32 +850,32 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
853
850
|
}),
|
|
854
851
|
key: "0"
|
|
855
852
|
} : void 0,
|
|
856
|
-
|
|
853
|
+
z(T(), (d) => ({
|
|
857
854
|
name: d,
|
|
858
855
|
fn: b((W) => [
|
|
859
856
|
$(v.$slots, `${r.t}-${e.value}-${d}`, { data: W }, void 0, !0)
|
|
860
857
|
])
|
|
861
858
|
}))
|
|
862
|
-
]), 1040, ["modelValue", "placeholder"])) : i.value ==
|
|
859
|
+
]), 1040, ["modelValue", "placeholder"])) : i.value == U(Ce).TREESELECT ? (u(), V(nt, F({
|
|
863
860
|
key: 6,
|
|
864
861
|
modelValue: s.value,
|
|
865
862
|
"onUpdate:modelValue": c[8] || (c[8] = (d) => s.value = d),
|
|
866
863
|
placeholder: M.value[e.value].label
|
|
867
|
-
}, l.value, { data:
|
|
868
|
-
|
|
864
|
+
}, l.value, { data: Y.value }), ve({ _: 2 }, [
|
|
865
|
+
z(T(), (d) => ({
|
|
869
866
|
name: d,
|
|
870
867
|
fn: b((W) => [
|
|
871
868
|
$(v.$slots, `${r.t}-${e.value}-${d}`, { data: W }, void 0, !0)
|
|
872
869
|
])
|
|
873
870
|
}))
|
|
874
|
-
]), 1040, ["modelValue", "placeholder", "data"])) : i.value ==
|
|
871
|
+
]), 1040, ["modelValue", "placeholder", "data"])) : i.value == U(Ce).TIME ? (u(), V(st, F({
|
|
875
872
|
key: 7,
|
|
876
873
|
modelValue: s.value,
|
|
877
874
|
"onUpdate:modelValue": c[9] || (c[9] = (d) => s.value = d),
|
|
878
875
|
"arrow-control": ""
|
|
879
876
|
}, l.value, {
|
|
880
877
|
placeholder: M.value[e.value].label
|
|
881
|
-
}), null, 16, ["modelValue", "placeholder"])) : i.value ==
|
|
878
|
+
}), null, 16, ["modelValue", "placeholder"])) : i.value == U(Ce).TIMESELECT ? (u(), V(it, F({
|
|
882
879
|
key: 8,
|
|
883
880
|
modelValue: s.value,
|
|
884
881
|
"onUpdate:modelValue": c[10] || (c[10] = (d) => s.value = d),
|
|
@@ -894,59 +891,59 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
894
891
|
placeholder: M.value[e.value].label,
|
|
895
892
|
"value-format": pe(i.value)
|
|
896
893
|
}, l.value), ve({ _: 2 }, [
|
|
897
|
-
|
|
894
|
+
z(T(), (d) => ({
|
|
898
895
|
name: d,
|
|
899
896
|
fn: b((W) => [
|
|
900
897
|
$(v.$slots, `${r.t}-${e.value}-${d}`, { data: W }, void 0, !0)
|
|
901
898
|
])
|
|
902
899
|
}))
|
|
903
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : i.value ==
|
|
900
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : i.value == U(Ce).COLOR ? (u(), V(ct, F({
|
|
904
901
|
key: 10,
|
|
905
902
|
modelValue: s.value,
|
|
906
903
|
"onUpdate:modelValue": c[12] || (c[12] = (d) => s.value = d)
|
|
907
|
-
}, l.value), null, 16, ["modelValue"])) : i.value ==
|
|
904
|
+
}, l.value), null, 16, ["modelValue"])) : i.value == U(Ce).RATE ? (u(), V(ft, F({
|
|
908
905
|
key: 11,
|
|
909
906
|
modelValue: s.value,
|
|
910
907
|
"onUpdate:modelValue": c[13] || (c[13] = (d) => s.value = d)
|
|
911
|
-
}, l.value), null, 16, ["modelValue"])) : i.value ==
|
|
908
|
+
}, l.value), null, 16, ["modelValue"])) : i.value == U(Ce).SLIDER ? (u(), V(t, F({
|
|
912
909
|
key: 12,
|
|
913
910
|
modelValue: s.value,
|
|
914
911
|
"onUpdate:modelValue": c[14] || (c[14] = (d) => s.value = d)
|
|
915
|
-
}, l.value), null, 16, ["modelValue"])) : i.value ==
|
|
912
|
+
}, l.value), null, 16, ["modelValue"])) : i.value == U(Ce).SWITCH ? (u(), V(o, F({
|
|
916
913
|
key: 13,
|
|
917
914
|
modelValue: s.value,
|
|
918
915
|
"onUpdate:modelValue": c[15] || (c[15] = (d) => s.value = d),
|
|
919
916
|
inlinePrompt: !0
|
|
920
917
|
}, l.value), ve({ _: 2 }, [
|
|
921
|
-
|
|
918
|
+
z(T(), (d) => ({
|
|
922
919
|
name: d,
|
|
923
920
|
fn: b((W) => [
|
|
924
921
|
$(v.$slots, `${r.t}-${e.value}-${d}`, { data: W }, void 0, !0)
|
|
925
922
|
])
|
|
926
923
|
}))
|
|
927
|
-
]), 1040, ["modelValue"])) : i.value ==
|
|
924
|
+
]), 1040, ["modelValue"])) : i.value == U(Ce).TRANSFER ? (u(), V(n, F({
|
|
928
925
|
key: 14,
|
|
929
926
|
modelValue: s.value,
|
|
930
927
|
"onUpdate:modelValue": c[16] || (c[16] = (d) => s.value = d)
|
|
931
928
|
}, l.value), ve({ _: 2 }, [
|
|
932
|
-
|
|
929
|
+
z(T(), (d) => ({
|
|
933
930
|
name: d,
|
|
934
931
|
fn: b((W) => [
|
|
935
932
|
$(v.$slots, `${r.t}-${e.value}-${d}`, { data: W }, void 0, !0)
|
|
936
933
|
])
|
|
937
934
|
}))
|
|
938
|
-
]), 1040, ["modelValue"])) : i.value ==
|
|
935
|
+
]), 1040, ["modelValue"])) : i.value == U(Ce).CASCADER ? (u(), V(y, F({
|
|
939
936
|
key: 15,
|
|
940
937
|
modelValue: s.value,
|
|
941
938
|
"onUpdate:modelValue": c[17] || (c[17] = (d) => s.value = d)
|
|
942
939
|
}, l.value, { options: S.value }), ve({ _: 2 }, [
|
|
943
|
-
|
|
940
|
+
z(T(), (d) => ({
|
|
944
941
|
name: d,
|
|
945
942
|
fn: b((W) => [
|
|
946
943
|
$(v.$slots, `${r.t}-${e.value}-${d}`, { data: W }, void 0, !0)
|
|
947
944
|
])
|
|
948
945
|
}))
|
|
949
|
-
]), 1040, ["modelValue", "options"])) : i.value ==
|
|
946
|
+
]), 1040, ["modelValue", "options"])) : i.value == U(Ce).IMAGE ? (u(), V(ce, F({
|
|
950
947
|
key: 16,
|
|
951
948
|
"file-list": l.value["file-list"],
|
|
952
949
|
"onUpdate:fileList": c[21] || (c[21] = (d) => l.value["file-list"] = d),
|
|
@@ -970,7 +967,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
970
967
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
971
968
|
src: s.value
|
|
972
969
|
}, { fit: "cover", lazy: !0, ...(d = l.value) == null ? void 0 : d.img }), ve({ _: 2 }, [
|
|
973
|
-
|
|
970
|
+
z(T(), (W, C) => ({
|
|
974
971
|
name: W,
|
|
975
972
|
fn: b((Me) => [
|
|
976
973
|
$(v.$slots, `${r.t}-${e.value}-${W}`, { data: Me }, void 0, !0)
|
|
@@ -984,13 +981,13 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
984
981
|
onMouseleave: c[19] || (c[19] = (W) => k.value = !1),
|
|
985
982
|
class: "up-view"
|
|
986
983
|
}, [
|
|
987
|
-
k.value ? (u(), V(
|
|
984
|
+
k.value ? (u(), V(R, {
|
|
988
985
|
key: 0,
|
|
989
986
|
content: "查看大图",
|
|
990
987
|
placement: "top"
|
|
991
988
|
}, {
|
|
992
989
|
default: b(() => [
|
|
993
|
-
G(
|
|
990
|
+
G(U(ol), {
|
|
994
991
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
995
992
|
color: "white",
|
|
996
993
|
onClick: le
|
|
@@ -998,13 +995,13 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
998
995
|
]),
|
|
999
996
|
_: 1
|
|
1000
997
|
})) : ye("", !0),
|
|
1001
|
-
Q.value.showDel && k.value ? (u(), V(
|
|
998
|
+
Q.value.showDel && k.value ? (u(), V(R, {
|
|
1002
999
|
key: 1,
|
|
1003
1000
|
content: "删除",
|
|
1004
1001
|
placement: "top"
|
|
1005
1002
|
}, {
|
|
1006
1003
|
default: b(() => [
|
|
1007
|
-
G(
|
|
1004
|
+
G(U(Bt), {
|
|
1008
1005
|
style: { width: "1.5em", height: "1.5em" },
|
|
1009
1006
|
color: "white",
|
|
1010
1007
|
onClick: he
|
|
@@ -1015,7 +1012,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1015
1012
|
], 32)
|
|
1016
1013
|
])) : (u(), V(x, { key: 0 }, {
|
|
1017
1014
|
default: b(() => [
|
|
1018
|
-
G(
|
|
1015
|
+
G(U(rl))
|
|
1019
1016
|
]),
|
|
1020
1017
|
_: 1
|
|
1021
1018
|
}))
|
|
@@ -1023,26 +1020,26 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1023
1020
|
}),
|
|
1024
1021
|
_: 2
|
|
1025
1022
|
}, [
|
|
1026
|
-
|
|
1023
|
+
z(T(), (d, W) => ({
|
|
1027
1024
|
name: d,
|
|
1028
1025
|
fn: b((C) => [
|
|
1029
1026
|
$(v.$slots, `${r.t}-${e.value}-${d}`, { data: C }, void 0, !0)
|
|
1030
1027
|
])
|
|
1031
1028
|
}))
|
|
1032
|
-
]), 1040, ["file-list"])) : i.value ==
|
|
1029
|
+
]), 1040, ["file-list"])) : i.value == U(Ce).AUTOCOMPLETE ? (u(), V(Ee, F({
|
|
1033
1030
|
key: 17,
|
|
1034
1031
|
modelValue: s.value,
|
|
1035
1032
|
"onUpdate:modelValue": c[22] || (c[22] = (d) => s.value = d)
|
|
1036
1033
|
}, l.value, {
|
|
1037
1034
|
placeholder: M.value[e.value].label
|
|
1038
1035
|
}), ve({ _: 2 }, [
|
|
1039
|
-
|
|
1036
|
+
z(T(), (d, W) => ({
|
|
1040
1037
|
name: d,
|
|
1041
1038
|
fn: b((C) => [
|
|
1042
1039
|
$(v.$slots, `${r.t}-${e.value}-${d}`, { data: C }, void 0, !0)
|
|
1043
1040
|
])
|
|
1044
1041
|
}))
|
|
1045
|
-
]), 1040, ["modelValue", "placeholder"])) : i.value ==
|
|
1042
|
+
]), 1040, ["modelValue", "placeholder"])) : i.value == U(Ce).INPUTNUMBER ? (u(), V(Te, F({
|
|
1046
1043
|
key: 18,
|
|
1047
1044
|
modelValue: s.value,
|
|
1048
1045
|
"onUpdate:modelValue": c[23] || (c[23] = (d) => s.value = d),
|
|
@@ -1050,38 +1047,41 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1050
1047
|
max: 1e8,
|
|
1051
1048
|
placeholder: M.value[e.value].label
|
|
1052
1049
|
}, l.value), ve({ _: 2 }, [
|
|
1053
|
-
|
|
1050
|
+
z(T(), (d, W) => ({
|
|
1054
1051
|
name: d,
|
|
1055
1052
|
fn: b((C) => [
|
|
1056
1053
|
$(v.$slots, `${r.t}-${e.value}-${d}`, { data: C }, void 0, !0)
|
|
1057
1054
|
])
|
|
1058
1055
|
}))
|
|
1059
|
-
]), 1040, ["modelValue", "placeholder"])) : i.value ==
|
|
1056
|
+
]), 1040, ["modelValue", "placeholder"])) : i.value == U(Ce).MONEY ? (u(), q("div", {
|
|
1057
|
+
key: 19,
|
|
1058
|
+
style: qe([{ position: "relative" }, L.value])
|
|
1059
|
+
}, [
|
|
1060
1060
|
G(Ye, F({
|
|
1061
1061
|
modelValue: s.value,
|
|
1062
1062
|
"onUpdate:modelValue": c[24] || (c[24] = (d) => s.value = d),
|
|
1063
1063
|
placeholder: M.value[e.value].label,
|
|
1064
|
-
type:
|
|
1064
|
+
type: "number",
|
|
1065
1065
|
maxlength: ((rt = l.value) == null ? void 0 : rt.max) || 25
|
|
1066
1066
|
}, { ...l.value, type: i.value }), ve({
|
|
1067
1067
|
suffix: b(() => [
|
|
1068
1068
|
H("div", {
|
|
1069
|
-
title:
|
|
1069
|
+
title: U(Dt)(s.value),
|
|
1070
1070
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1071
|
-
},
|
|
1071
|
+
}, ke(U(Dt)(s.value)), 9, El)
|
|
1072
1072
|
]),
|
|
1073
1073
|
_: 2
|
|
1074
1074
|
}, [
|
|
1075
|
-
|
|
1075
|
+
z(T(), (d, W) => ({
|
|
1076
1076
|
name: d,
|
|
1077
1077
|
fn: b((C) => [
|
|
1078
1078
|
$(v.$slots, `${r.t}-${e.value}-${d}`, { data: C }, void 0, !0)
|
|
1079
1079
|
])
|
|
1080
1080
|
}))
|
|
1081
|
-
]), 1040, ["modelValue", "placeholder", "
|
|
1082
|
-
])) : (B = i.value) != null && B.startsWith("link") ? (u(), q("div", {
|
|
1081
|
+
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
1082
|
+
], 4)) : (B = i.value) != null && B.startsWith("link") ? (u(), q("div", {
|
|
1083
1083
|
key: 20,
|
|
1084
|
-
style:
|
|
1084
|
+
style: qe(L.value)
|
|
1085
1085
|
}, [
|
|
1086
1086
|
G(He, F(l.value, {
|
|
1087
1087
|
type: i.value.replace("link-", ""),
|
|
@@ -1089,7 +1089,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1089
1089
|
}), null, 16, ["type", "innerHTML"])
|
|
1090
1090
|
], 4)) : i.value != "textarea" && ((ne = i.value) != null && ne.startsWith("text")) ? (u(), q("div", {
|
|
1091
1091
|
key: 21,
|
|
1092
|
-
style:
|
|
1092
|
+
style: qe(L.value)
|
|
1093
1093
|
}, [
|
|
1094
1094
|
G(Le, F(l.value, {
|
|
1095
1095
|
type: i.value.replace("text-", ""),
|
|
@@ -1097,19 +1097,19 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1097
1097
|
}), null, 16, ["type", "innerHTML"])
|
|
1098
1098
|
], 4)) : i.value == "avatar" ? (u(), q("div", {
|
|
1099
1099
|
key: 22,
|
|
1100
|
-
style:
|
|
1100
|
+
style: qe(L.value)
|
|
1101
1101
|
}, [
|
|
1102
1102
|
fe.value ? (u(), V(Je, Et(F({ key: 0 }, l.value)), {
|
|
1103
1103
|
default: b(() => [
|
|
1104
|
-
H("div", { innerHTML: fe.value }, null, 8,
|
|
1104
|
+
H("div", { innerHTML: fe.value }, null, 8, _l)
|
|
1105
1105
|
]),
|
|
1106
1106
|
_: 1
|
|
1107
1107
|
}, 16)) : (u(), V(Je, Et(F({ key: 1 }, l.value)), null, 16))
|
|
1108
1108
|
], 4)) : (_ = i.value) != null && _.startsWith("tag") ? (u(), q("div", {
|
|
1109
1109
|
key: 23,
|
|
1110
|
-
style:
|
|
1110
|
+
style: qe(L.value)
|
|
1111
1111
|
}, [
|
|
1112
|
-
Array.isArray(fe.value) && fe.value.length > 0 ? (u(!0), q(X, { key: 0 },
|
|
1112
|
+
Array.isArray(fe.value) && fe.value.length > 0 ? (u(!0), q(X, { key: 0 }, z(fe.value, (d, W) => (u(), q(X, { key: W }, [
|
|
1113
1113
|
typeof d == "object" ? (u(), V(tt, F({
|
|
1114
1114
|
key: 0,
|
|
1115
1115
|
ref_for: !0
|
|
@@ -1130,11 +1130,11 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1130
1130
|
}), null, 16, ["type", "innerHTML"]))
|
|
1131
1131
|
], 4)) : i.value == "div" ? (u(), q("div", F({ key: 24 }, l.value, {
|
|
1132
1132
|
innerHTML: fe.value || s.value,
|
|
1133
|
-
style:
|
|
1134
|
-
}), null, 16,
|
|
1133
|
+
style: L.value
|
|
1134
|
+
}), null, 16, kl)) : i.value == "span" ? (u(), q("span", F({ key: 25 }, l.value, {
|
|
1135
1135
|
innerHTML: fe.value || s.value,
|
|
1136
|
-
style:
|
|
1137
|
-
}), null, 16,
|
|
1136
|
+
style: L.value
|
|
1137
|
+
}), null, 16, Cl)) : (u(), V(Ye, F({
|
|
1138
1138
|
key: 26,
|
|
1139
1139
|
modelValue: s.value,
|
|
1140
1140
|
"onUpdate:modelValue": c[25] || (c[25] = (d) => s.value = d),
|
|
@@ -1144,7 +1144,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1144
1144
|
onClear: c[26] || (c[26] = () => {
|
|
1145
1145
|
r.t == "q" && M.value.table.load();
|
|
1146
1146
|
})
|
|
1147
|
-
}, { ...
|
|
1147
|
+
}, { ...U(Be)(l.value, (d) => !["suffix", "prefix", "append", "prepend"].includes(d)), type: i.value }), ve({ _: 2 }, [
|
|
1148
1148
|
(ee = l.value) != null && ee.suffix ? {
|
|
1149
1149
|
name: "suffix",
|
|
1150
1150
|
fn: b(() => {
|
|
@@ -1152,7 +1152,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1152
1152
|
return [
|
|
1153
1153
|
H("div", {
|
|
1154
1154
|
innerHTML: ((d = l.value) == null ? void 0 : d.suffix) || ""
|
|
1155
|
-
}, null, 8,
|
|
1155
|
+
}, null, 8, Dl)
|
|
1156
1156
|
];
|
|
1157
1157
|
}),
|
|
1158
1158
|
key: "0"
|
|
@@ -1164,7 +1164,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1164
1164
|
return [
|
|
1165
1165
|
H("div", {
|
|
1166
1166
|
innerHTML: ((d = l.value) == null ? void 0 : d.prefix) || ""
|
|
1167
|
-
}, null, 8,
|
|
1167
|
+
}, null, 8, Ml)
|
|
1168
1168
|
];
|
|
1169
1169
|
}),
|
|
1170
1170
|
key: "1"
|
|
@@ -1176,24 +1176,24 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1176
1176
|
return [
|
|
1177
1177
|
H("div", {
|
|
1178
1178
|
innerHTML: ((d = l.value) == null ? void 0 : d.append) || ""
|
|
1179
|
-
}, null, 8,
|
|
1179
|
+
}, null, 8, Vl)
|
|
1180
1180
|
];
|
|
1181
1181
|
}),
|
|
1182
1182
|
key: "2"
|
|
1183
1183
|
} : void 0,
|
|
1184
|
-
(
|
|
1184
|
+
(ze = l.value) != null && ze.prepend ? {
|
|
1185
1185
|
name: "prepend",
|
|
1186
1186
|
fn: b(() => {
|
|
1187
1187
|
var d;
|
|
1188
1188
|
return [
|
|
1189
1189
|
H("div", {
|
|
1190
1190
|
innerHTML: ((d = l.value) == null ? void 0 : d.prepend) || ""
|
|
1191
|
-
}, null, 8,
|
|
1191
|
+
}, null, 8, Sl)
|
|
1192
1192
|
];
|
|
1193
1193
|
}),
|
|
1194
1194
|
key: "3"
|
|
1195
1195
|
} : void 0,
|
|
1196
|
-
|
|
1196
|
+
z(T(), (d, W) => ({
|
|
1197
1197
|
name: d,
|
|
1198
1198
|
fn: b((C) => [
|
|
1199
1199
|
$(v.$slots, `${r.t}-${e.value}-${d}`, { data: C }, void 0, !0)
|
|
@@ -1204,7 +1204,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1204
1204
|
], 64);
|
|
1205
1205
|
};
|
|
1206
1206
|
}
|
|
1207
|
-
}), yt = /* @__PURE__ */ Ze(
|
|
1207
|
+
}), yt = /* @__PURE__ */ Ze(Tl, [["__scopeId", "data-v-667ddbae"]]), xl = { class: "g-form-container" }, Fl = /* @__PURE__ */ Object.assign({
|
|
1208
1208
|
name: "g-form",
|
|
1209
1209
|
inheritAttrs: !1
|
|
1210
1210
|
}, {
|
|
@@ -1216,9 +1216,9 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1216
1216
|
emits: /* @__PURE__ */ Ge(["submit", "reset"], ["update:modelValue"]),
|
|
1217
1217
|
setup(f, { expose: s, emit: r }) {
|
|
1218
1218
|
var he, Ve, le, oe, ae, Ie;
|
|
1219
|
-
const l = Qe(f, "modelValue"), e = r, i = re(null), M = Mt("options"),
|
|
1219
|
+
const l = Qe(f, "modelValue"), e = r, i = re(null), M = Mt("options"), Y = re({}), S = re(""), E = f;
|
|
1220
1220
|
l.value.form = Fe(
|
|
1221
|
-
|
|
1221
|
+
zt,
|
|
1222
1222
|
M == null ? void 0 : M.form,
|
|
1223
1223
|
(he = l.value) == null ? void 0 : he.form
|
|
1224
1224
|
), l.value.form.style = Fe(
|
|
@@ -1237,7 +1237,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1237
1237
|
p--, await new Promise((a) => setTimeout(a, 50));
|
|
1238
1238
|
}
|
|
1239
1239
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1240
|
-
},
|
|
1240
|
+
}, L = async () => {
|
|
1241
1241
|
let w = 5;
|
|
1242
1242
|
for (; w > 0; ) {
|
|
1243
1243
|
if (await lt(), !i.value) {
|
|
@@ -1255,7 +1255,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1255
1255
|
}
|
|
1256
1256
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1257
1257
|
};
|
|
1258
|
-
l.value.form.submit.click = k, l.value.form.reset.click =
|
|
1258
|
+
l.value.form.submit.click = k, l.value.form.reset.click = L;
|
|
1259
1259
|
const te = {
|
|
1260
1260
|
type: "hidden",
|
|
1261
1261
|
labelPosition: "right",
|
|
@@ -1339,7 +1339,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1339
1339
|
return m;
|
|
1340
1340
|
}, Q = (w, m = !1) => {
|
|
1341
1341
|
var D, g, h, O, P;
|
|
1342
|
-
const p = m ? w : w == null ? void 0 : w.item, a = typeof (p == null ? void 0 : p.editor) == "function" ? p.editor(
|
|
1342
|
+
const p = m ? w : w == null ? void 0 : w.item, a = typeof (p == null ? void 0 : p.editor) == "function" ? p.editor(Y.value, (D = l.value.form) == null ? void 0 : D.modalState) : (p == null ? void 0 : p.editor) || {};
|
|
1343
1343
|
if (((g = l.value.form) == null ? void 0 : g.modalState) === "edit") {
|
|
1344
1344
|
const J = typeof (p == null ? void 0 : p.editor) == "object" ? (h = p.editor) == null ? void 0 : h.ep : typeof (p == null ? void 0 : p.editor) == "function" ? a == null ? void 0 : a.ep : {};
|
|
1345
1345
|
return { ...a, ...J };
|
|
@@ -1351,11 +1351,11 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1351
1351
|
return a;
|
|
1352
1352
|
}, fe = (w) => {
|
|
1353
1353
|
var p, a, D, g, h;
|
|
1354
|
-
const m = typeof w.editor == "function" ? w.editor(
|
|
1354
|
+
const m = typeof w.editor == "function" ? w.editor(Y.value, (p = l.value.form) == null ? void 0 : p.modalState) : w.editor;
|
|
1355
1355
|
return ((a = l.value.form) == null ? void 0 : a.modalState) === "edit" ? ((D = m == null ? void 0 : m.ep) == null ? void 0 : D.type) ?? (m == null ? void 0 : m.type) ?? w.type : ((g = l.value.form) == null ? void 0 : g.modalState) === "add" ? ((h = m == null ? void 0 : m.ap) == null ? void 0 : h.type) ?? (m == null ? void 0 : m.type) ?? w.type : (m == null ? void 0 : m.type) ?? w.type;
|
|
1356
1356
|
};
|
|
1357
1357
|
ot(() => {
|
|
1358
|
-
N(), E != null && E.editForm ?
|
|
1358
|
+
N(), E != null && E.editForm ? Y.value = E.editForm : Y.value = de.value;
|
|
1359
1359
|
}), Wt(() => {
|
|
1360
1360
|
i.value = null;
|
|
1361
1361
|
});
|
|
@@ -1371,9 +1371,9 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1371
1371
|
};
|
|
1372
1372
|
}, pe = Ke(
|
|
1373
1373
|
() => Object.fromEntries(
|
|
1374
|
-
Object.entries(l.value).filter((w) => w[1].type != "hidden").filter((w) => w[1].hidden !== !0).filter((w) => w[1].edit !== !1).filter((w) => w[1].editor !== !1).filter((w) => w[1].type !== "control").filter((w) => {
|
|
1374
|
+
Object.entries(l.value).filter((w) => w[1].type != "hidden").filter((w) => w[1].hidden !== !0).filter((w) => w[1].edit !== !1).filter((w) => w[1].editor !== !1).filter((w) => w[1].type !== "control").filter((w) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(w[0])).filter((w) => {
|
|
1375
1375
|
var p, a, D;
|
|
1376
|
-
const m = typeof w[1].editor == "function" ? w[1].editor(
|
|
1376
|
+
const m = typeof w[1].editor == "function" ? w[1].editor(Y.value, (p = l.value.form) == null ? void 0 : p.modalState) : w[1].editor;
|
|
1377
1377
|
return l.value.form.modalState === "edit" ? ((a = m == null ? void 0 : m.ep) == null ? void 0 : a.editor) !== !1 : l.value.form.modalState === "add" ? ((D = m == null ? void 0 : m.ap) == null ? void 0 : D.editor) !== !1 : !0;
|
|
1378
1378
|
}).map((w) => [w[0], w[1]])
|
|
1379
1379
|
)
|
|
@@ -1422,17 +1422,17 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1422
1422
|
], ue = Ke(() => ie.filter((w) => !w.hidden).sort((w, m) => w.sort - m.sort || w.originalOrder - m.originalOrder));
|
|
1423
1423
|
return s({
|
|
1424
1424
|
submit: k,
|
|
1425
|
-
reset:
|
|
1426
|
-
formData:
|
|
1425
|
+
reset: L,
|
|
1426
|
+
formData: Y
|
|
1427
1427
|
}), (w, m) => {
|
|
1428
1428
|
var P, J, Z;
|
|
1429
1429
|
const p = A("el-form-item"), a = A("el-col"), D = A("el-tab-pane"), g = A("el-tabs"), h = A("el-form"), O = A("el-button");
|
|
1430
|
-
return u(), q("div",
|
|
1430
|
+
return u(), q("div", xl, [
|
|
1431
1431
|
G(h, F(
|
|
1432
1432
|
{
|
|
1433
1433
|
ref_key: "gform",
|
|
1434
1434
|
ref: i,
|
|
1435
|
-
model:
|
|
1435
|
+
model: Y.value,
|
|
1436
1436
|
style: {
|
|
1437
1437
|
width: "98%",
|
|
1438
1438
|
padding: 0,
|
|
@@ -1440,7 +1440,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1440
1440
|
"box-sizing": "border-box"
|
|
1441
1441
|
}
|
|
1442
1442
|
},
|
|
1443
|
-
|
|
1443
|
+
U(Be)(
|
|
1444
1444
|
l.value.form,
|
|
1445
1445
|
(v) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(v)
|
|
1446
1446
|
)
|
|
@@ -1454,7 +1454,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1454
1454
|
style: { width: "100%" }
|
|
1455
1455
|
}, l.value.form.tabs), {
|
|
1456
1456
|
default: b(() => [
|
|
1457
|
-
(u(!0), q(X, null,
|
|
1457
|
+
(u(!0), q(X, null, z(De.value, (v) => (u(), V(D, F({
|
|
1458
1458
|
key: v.groupName,
|
|
1459
1459
|
label: v.groupName,
|
|
1460
1460
|
name: v.groupName,
|
|
@@ -1462,7 +1462,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1462
1462
|
ref_for: !0
|
|
1463
1463
|
}, v.tabPane), {
|
|
1464
1464
|
default: b(() => [
|
|
1465
|
-
(u(!0), q(X, null,
|
|
1465
|
+
(u(!0), q(X, null, z(v.items, (c, K) => (u(), V(a, F({ ref_for: !0 }, { ...l.value.form.cols, ...c == null ? void 0 : c.item.col }, {
|
|
1466
1466
|
key: c.key,
|
|
1467
1467
|
style: { width: "100%" }
|
|
1468
1468
|
}), {
|
|
@@ -1478,12 +1478,12 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1478
1478
|
default: b(() => [
|
|
1479
1479
|
$(w.$slots, "f-" + c.key, {
|
|
1480
1480
|
item: c == null ? void 0 : c.item,
|
|
1481
|
-
formInfo:
|
|
1481
|
+
formInfo: Y.value,
|
|
1482
1482
|
model: l.value
|
|
1483
1483
|
}, () => [
|
|
1484
1484
|
(u(), V(yt, {
|
|
1485
|
-
modelValue:
|
|
1486
|
-
"onUpdate:modelValue": (be) =>
|
|
1485
|
+
modelValue: Y.value[c.key],
|
|
1486
|
+
"onUpdate:modelValue": (be) => Y.value[c.key] = be,
|
|
1487
1487
|
item: Q(c),
|
|
1488
1488
|
ctrlKey: c.key,
|
|
1489
1489
|
ctrlType: fe(c == null ? void 0 : c.item),
|
|
@@ -1491,9 +1491,9 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1491
1491
|
key: `${c.key}-${S.value}`,
|
|
1492
1492
|
class: "g-ctrl-container",
|
|
1493
1493
|
t: "f",
|
|
1494
|
-
formInfo:
|
|
1494
|
+
formInfo: Y.value
|
|
1495
1495
|
}, ve({ _: 2 }, [
|
|
1496
|
-
|
|
1496
|
+
z(w.$slots, (be, $e) => ({
|
|
1497
1497
|
name: $e,
|
|
1498
1498
|
fn: b((we) => [
|
|
1499
1499
|
$(w.$slots, $e, {
|
|
@@ -1519,7 +1519,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1519
1519
|
_: 3
|
|
1520
1520
|
}, 16, ["modelValue"])
|
|
1521
1521
|
], !0) : $(w.$slots, "default", { key: 1 }, () => [
|
|
1522
|
-
(u(!0), q(X, null,
|
|
1522
|
+
(u(!0), q(X, null, z(pe.value, (v, c) => (u(), V(a, F({ ref_for: !0 }, { ...l.value.form.cols, ...v.col }, {
|
|
1523
1523
|
key: c,
|
|
1524
1524
|
style: { width: "100%" }
|
|
1525
1525
|
}), {
|
|
@@ -1538,18 +1538,18 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1538
1538
|
item: v,
|
|
1539
1539
|
model: l.value
|
|
1540
1540
|
}, () => [
|
|
1541
|
-
Ae(
|
|
1541
|
+
Ae(ke(v.label), 1)
|
|
1542
1542
|
], !0)
|
|
1543
1543
|
]),
|
|
1544
1544
|
default: b(() => [
|
|
1545
1545
|
$(w.$slots, "f-" + c, {
|
|
1546
1546
|
item: v,
|
|
1547
|
-
formInfo:
|
|
1547
|
+
formInfo: Y.value,
|
|
1548
1548
|
model: l.value
|
|
1549
1549
|
}, () => [
|
|
1550
1550
|
(u(), V(yt, {
|
|
1551
|
-
modelValue:
|
|
1552
|
-
"onUpdate:modelValue": (ge) =>
|
|
1551
|
+
modelValue: Y.value[c],
|
|
1552
|
+
"onUpdate:modelValue": (ge) => Y.value[c] = ge,
|
|
1553
1553
|
item: Q(v, !0),
|
|
1554
1554
|
ctrlKey: c,
|
|
1555
1555
|
ctrlType: fe(v),
|
|
@@ -1557,9 +1557,9 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1557
1557
|
model: l.value,
|
|
1558
1558
|
class: "g-ctrl-container",
|
|
1559
1559
|
t: "f",
|
|
1560
|
-
formInfo:
|
|
1560
|
+
formInfo: Y.value
|
|
1561
1561
|
}, ve({ _: 2 }, [
|
|
1562
|
-
|
|
1562
|
+
z(w.$slots, (ge, me) => ({
|
|
1563
1563
|
name: me,
|
|
1564
1564
|
fn: b((be) => [
|
|
1565
1565
|
$(w.$slots, me, {
|
|
@@ -1584,17 +1584,17 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1584
1584
|
}, 16, ["model"]),
|
|
1585
1585
|
(Z = (J = (P = l.value) == null ? void 0 : P.form) == null ? void 0 : J.footer) != null && Z.hidden ? ye("", !0) : $(w.$slots, "f-footer", { key: 0 }, () => [
|
|
1586
1586
|
H("div", {
|
|
1587
|
-
style:
|
|
1587
|
+
style: qe(l.value.form.footer.style)
|
|
1588
1588
|
}, [
|
|
1589
1589
|
$(w.$slots, "f-footer-left", {}, void 0, !0),
|
|
1590
|
-
(u(!0), q(X, null,
|
|
1590
|
+
(u(!0), q(X, null, z(ue.value, (v) => (u(), q(X, null, [
|
|
1591
1591
|
$(w.$slots, v.name + "-left", {}, void 0, !0),
|
|
1592
1592
|
$(w.$slots, v.name, {}, () => [
|
|
1593
1593
|
G(O, F({ ref_for: !0 }, v.info, {
|
|
1594
|
-
onClick: vt((c) => v.click(
|
|
1594
|
+
onClick: vt((c) => v.click(Y.value, l.value), ["stop"])
|
|
1595
1595
|
}), {
|
|
1596
1596
|
default: b(() => [
|
|
1597
|
-
Ae(
|
|
1597
|
+
Ae(ke(v == null ? void 0 : v.label), 1)
|
|
1598
1598
|
]),
|
|
1599
1599
|
_: 2
|
|
1600
1600
|
}, 1040, ["onClick"])
|
|
@@ -1607,7 +1607,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1607
1607
|
]);
|
|
1608
1608
|
};
|
|
1609
1609
|
}
|
|
1610
|
-
}), _t = /* @__PURE__ */ Ze(
|
|
1610
|
+
}), _t = /* @__PURE__ */ Ze(Fl, [["__scopeId", "data-v-68883be7"]]), St = {
|
|
1611
1611
|
__name: "g-query-item",
|
|
1612
1612
|
props: /* @__PURE__ */ Ge(["more"], {
|
|
1613
1613
|
modelValue: { required: !0 },
|
|
@@ -1623,28 +1623,28 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1623
1623
|
}).map((E) => [E[0], E[1]]))).value, i = (S) => typeof S.search == "function" ? S.search(l.value, s.value.table) : S.search || {}, M = (S) => {
|
|
1624
1624
|
const E = i(S);
|
|
1625
1625
|
return (E == null ? void 0 : E.type) || S.type;
|
|
1626
|
-
},
|
|
1627
|
-
var
|
|
1626
|
+
}, Y = (S) => {
|
|
1627
|
+
var L;
|
|
1628
1628
|
const E = i(S);
|
|
1629
|
-
let k = (E == null ? void 0 : E.width) || ((
|
|
1629
|
+
let k = (E == null ? void 0 : E.width) || ((L = s.value.queryItems) == null ? void 0 : L.width) || "100%";
|
|
1630
1630
|
return isNaN(k) || (k += "px"), k;
|
|
1631
1631
|
};
|
|
1632
1632
|
return (S, E) => {
|
|
1633
1633
|
const k = A("el-form-item");
|
|
1634
|
-
return u(!0), q(X, null,
|
|
1634
|
+
return u(!0), q(X, null, z(e(r.more), (L, te) => $(S.$slots, `q-${te}`, {
|
|
1635
1635
|
key: te,
|
|
1636
|
-
item:
|
|
1636
|
+
item: L,
|
|
1637
1637
|
queryModel: l.value,
|
|
1638
1638
|
model: s.value
|
|
1639
1639
|
}, () => [
|
|
1640
1640
|
G(k, F({
|
|
1641
|
-
label:
|
|
1642
|
-
style: { width:
|
|
1641
|
+
label: L.label,
|
|
1642
|
+
style: { width: Y(L) },
|
|
1643
1643
|
ref_for: !0
|
|
1644
|
-
}, { ...s.value.queryItems, ...i(
|
|
1644
|
+
}, { ...s.value.queryItems, ...i(L) }), {
|
|
1645
1645
|
label: b(() => [
|
|
1646
1646
|
$(S.$slots, `q-${te}-label`, {
|
|
1647
|
-
item:
|
|
1647
|
+
item: L,
|
|
1648
1648
|
model: s.value
|
|
1649
1649
|
})
|
|
1650
1650
|
]),
|
|
@@ -1652,19 +1652,19 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1652
1652
|
G(yt, {
|
|
1653
1653
|
modelValue: l.value[te],
|
|
1654
1654
|
"onUpdate:modelValue": (se) => l.value[te] = se,
|
|
1655
|
-
item: { ...
|
|
1655
|
+
item: { ...L == null ? void 0 : L.editor, ...i(L) },
|
|
1656
1656
|
ctrlKey: te,
|
|
1657
|
-
ctrlType: M(
|
|
1657
|
+
ctrlType: M(L),
|
|
1658
1658
|
model: s.value,
|
|
1659
1659
|
t: "q",
|
|
1660
1660
|
formInfo: l.value
|
|
1661
1661
|
}, ve({ _: 2 }, [
|
|
1662
|
-
|
|
1662
|
+
z(Object.keys(S.$slots), (se) => ({
|
|
1663
1663
|
name: se,
|
|
1664
1664
|
fn: b((T) => [
|
|
1665
1665
|
$(S.$slots, se, {
|
|
1666
1666
|
data: T,
|
|
1667
|
-
item:
|
|
1667
|
+
item: L,
|
|
1668
1668
|
model: s.value
|
|
1669
1669
|
})
|
|
1670
1670
|
])
|
|
@@ -1676,10 +1676,10 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1676
1676
|
])), 128);
|
|
1677
1677
|
};
|
|
1678
1678
|
}
|
|
1679
|
-
},
|
|
1679
|
+
}, ql = {
|
|
1680
1680
|
key: 0,
|
|
1681
1681
|
class: "outer"
|
|
1682
|
-
},
|
|
1682
|
+
}, Ol = { class: "inner" }, Il = {
|
|
1683
1683
|
__name: "g-query",
|
|
1684
1684
|
props: {
|
|
1685
1685
|
modelValue: { required: !0 },
|
|
@@ -1689,7 +1689,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1689
1689
|
},
|
|
1690
1690
|
emits: /* @__PURE__ */ Ge(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1691
1691
|
setup(f, { emit: s }) {
|
|
1692
|
-
const r = Qe(f, "modelValue"), l = s, e = Mt("options"), i = re(!1), M = Qe(f, "info"),
|
|
1692
|
+
const r = Qe(f, "modelValue"), l = s, e = Mt("options"), i = re(!1), M = Qe(f, "info"), Y = {
|
|
1693
1693
|
hidden: !1,
|
|
1694
1694
|
type: "hidden",
|
|
1695
1695
|
labelWidth: 100,
|
|
@@ -1741,7 +1741,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
1743
|
};
|
|
1744
|
-
r.value.query = Fe(
|
|
1744
|
+
r.value.query = Fe(Y, e == null ? void 0 : e.query, r.value.query);
|
|
1745
1745
|
const S = {
|
|
1746
1746
|
2: {
|
|
1747
1747
|
title: "更多查询",
|
|
@@ -1785,13 +1785,13 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1785
1785
|
"onUpdate:info": (N) => M.value = N,
|
|
1786
1786
|
more: Q
|
|
1787
1787
|
}, fe);
|
|
1788
|
-
},
|
|
1788
|
+
}, L = qt(), te = () => {
|
|
1789
1789
|
var fe, N, pe, de, De, ie, ue, he, Ve;
|
|
1790
1790
|
const T = [
|
|
1791
1791
|
{
|
|
1792
1792
|
key: "query",
|
|
1793
1793
|
hidden: (pe = (N = (fe = r.value) == null ? void 0 : fe.query) == null ? void 0 : N.query) == null ? void 0 : pe.hidden,
|
|
1794
|
-
component:
|
|
1794
|
+
component: Oe,
|
|
1795
1795
|
props: {
|
|
1796
1796
|
...r.value.query.query,
|
|
1797
1797
|
onClick: r.value.query.query.click
|
|
@@ -1802,7 +1802,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1802
1802
|
{
|
|
1803
1803
|
key: "reset",
|
|
1804
1804
|
hidden: (ie = (De = (de = r.value) == null ? void 0 : de.query) == null ? void 0 : De.reset) == null ? void 0 : ie.hidden,
|
|
1805
|
-
component:
|
|
1805
|
+
component: Oe,
|
|
1806
1806
|
props: {
|
|
1807
1807
|
...r.value.query.reset,
|
|
1808
1808
|
onClick: r.value.query.reset.click
|
|
@@ -1813,7 +1813,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1813
1813
|
{
|
|
1814
1814
|
key: "more",
|
|
1815
1815
|
hidden: (Ve = (he = (ue = r.value) == null ? void 0 : ue.query) == null ? void 0 : he.more) == null ? void 0 : Ve.hidden,
|
|
1816
|
-
component: r.value.query.more.mode === 3 ? $t :
|
|
1816
|
+
component: r.value.query.more.mode === 3 ? $t : Oe,
|
|
1817
1817
|
props: r.value.query.more.mode === 3 ? { ...r.value.query.more.dialog } : {
|
|
1818
1818
|
...r.value.query.more,
|
|
1819
1819
|
onClick: r.value.query.more.click
|
|
@@ -1823,11 +1823,11 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1823
1823
|
content: r.value.query.more.mode === 3 ? () => _e(pt, {
|
|
1824
1824
|
class: "query-form",
|
|
1825
1825
|
...Be(r.value.query, (le) => !["query", "more", "reset"].includes(le))
|
|
1826
|
-
}, () => k({ slots:
|
|
1826
|
+
}, () => k({ slots: L }, !0)) : null
|
|
1827
1827
|
}
|
|
1828
1828
|
];
|
|
1829
1829
|
return T.sort((le, oe) => le.sort - oe.sort), T.filter((le) => !le.hidden).map((le) => le.key === "more" && le.component === $t ? _e($t, le.props, {
|
|
1830
|
-
reference: () => _e(
|
|
1830
|
+
reference: () => _e(Oe, r.value.query.more, () => le.label),
|
|
1831
1831
|
default: le.content
|
|
1832
1832
|
}) : (le.props.slot = "query-" + le.key, le.label ? _e(le.component, le.props, () => le.label) : _e(le.component, le.props)));
|
|
1833
1833
|
}, se = Ke(() => ({
|
|
@@ -1840,12 +1840,12 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1840
1840
|
return u(), q(X, null, [
|
|
1841
1841
|
H("div", {
|
|
1842
1842
|
class: "g-query-container",
|
|
1843
|
-
style:
|
|
1843
|
+
style: qe({ ...se.value, ...((de = (pe = r.value.query) == null ? void 0 : pe.container) == null ? void 0 : de.style) || {} })
|
|
1844
1844
|
}, [
|
|
1845
|
-
G(
|
|
1845
|
+
G(U(pt), F({
|
|
1846
1846
|
onSubmit: Q[0] || (Q[0] = vt(() => {
|
|
1847
1847
|
}, ["prevent"]))
|
|
1848
|
-
},
|
|
1848
|
+
}, U(Be)(r.value.query, (h) => !["query", "more", "reset", "btns"].includes(h))), {
|
|
1849
1849
|
default: b(() => {
|
|
1850
1850
|
var h, O;
|
|
1851
1851
|
return [
|
|
@@ -1855,25 +1855,25 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1855
1855
|
var P, J, Z, v, c;
|
|
1856
1856
|
return [
|
|
1857
1857
|
H("div", {
|
|
1858
|
-
style:
|
|
1858
|
+
style: qe((J = (P = r.value.query) == null ? void 0 : P.btns) == null ? void 0 : J.style)
|
|
1859
1859
|
}, [
|
|
1860
|
-
r.value.query.group ? (u(), V(
|
|
1860
|
+
r.value.query.group ? (u(), V(U(mt), { key: 0 }, {
|
|
1861
1861
|
default: b(() => [
|
|
1862
|
-
(u(!0), q(X, null,
|
|
1862
|
+
(u(!0), q(X, null, z(te(), (K) => $(T.$slots, K.props.slot, {}, () => [
|
|
1863
1863
|
(u(), V(We(K)))
|
|
1864
1864
|
], !0)), 256)),
|
|
1865
1865
|
$(T.$slots, "q-btns", {}, void 0, !0)
|
|
1866
1866
|
]),
|
|
1867
1867
|
_: 3
|
|
1868
1868
|
})) : (u(), q(X, { key: 1 }, [
|
|
1869
|
-
(c = (v = (Z = r.value) == null ? void 0 : Z.query) == null ? void 0 : v.btns) != null && c.group ? (u(), V(
|
|
1869
|
+
(c = (v = (Z = r.value) == null ? void 0 : Z.query) == null ? void 0 : v.btns) != null && c.group ? (u(), V(U(mt), { key: 0 }, {
|
|
1870
1870
|
default: b(() => [
|
|
1871
|
-
(u(!0), q(X, null,
|
|
1871
|
+
(u(!0), q(X, null, z(te(), (K) => $(T.$slots, K.props.slot, {}, () => [
|
|
1872
1872
|
(u(), V(We(K)))
|
|
1873
1873
|
], !0)), 256))
|
|
1874
1874
|
]),
|
|
1875
1875
|
_: 3
|
|
1876
|
-
})) : (u(!0), q(X, { key: 1 },
|
|
1876
|
+
})) : (u(!0), q(X, { key: 1 }, z(te(), (K) => $(T.$slots, K.props.slot, {}, () => [
|
|
1877
1877
|
(u(), V(We(K)))
|
|
1878
1878
|
], !0)), 256)),
|
|
1879
1879
|
$(T.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1889,25 +1889,25 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1889
1889
|
}, 16),
|
|
1890
1890
|
((ue = (ie = (De = r.value) == null ? void 0 : De.query) == null ? void 0 : ie.container) == null ? void 0 : ue.inline) === !1 ? (u(), q("div", {
|
|
1891
1891
|
key: 0,
|
|
1892
|
-
style:
|
|
1892
|
+
style: qe((Ve = (he = r.value.query) == null ? void 0 : he.btns) == null ? void 0 : Ve.style)
|
|
1893
1893
|
}, [
|
|
1894
|
-
r.value.query.group ? (u(), V(
|
|
1894
|
+
r.value.query.group ? (u(), V(U(mt), { key: 0 }, {
|
|
1895
1895
|
default: b(() => [
|
|
1896
|
-
(u(!0), q(X, null,
|
|
1896
|
+
(u(!0), q(X, null, z(te(), (h) => $(T.$slots, h.props.slot, {}, () => [
|
|
1897
1897
|
(u(), V(We(h)))
|
|
1898
1898
|
], !0)), 256)),
|
|
1899
1899
|
$(T.$slots, "q-btns", {}, void 0, !0)
|
|
1900
1900
|
]),
|
|
1901
1901
|
_: 3
|
|
1902
1902
|
})) : (u(), q(X, { key: 1 }, [
|
|
1903
|
-
(oe = (le = r.value.query) == null ? void 0 : le.btns) != null && oe.group ? (u(), V(
|
|
1903
|
+
(oe = (le = r.value.query) == null ? void 0 : le.btns) != null && oe.group ? (u(), V(U(mt), { key: 0 }, {
|
|
1904
1904
|
default: b(() => [
|
|
1905
|
-
(u(!0), q(X, null,
|
|
1905
|
+
(u(!0), q(X, null, z(te(), (h) => $(T.$slots, h.props.slot, {}, () => [
|
|
1906
1906
|
(u(), V(We(h)))
|
|
1907
1907
|
], !0)), 256))
|
|
1908
1908
|
]),
|
|
1909
1909
|
_: 3
|
|
1910
|
-
})) : (u(!0), q(X, { key: 1 },
|
|
1910
|
+
})) : (u(!0), q(X, { key: 1 }, z(te(), (h) => $(T.$slots, h.props.slot, {}, () => [
|
|
1911
1911
|
(u(), V(We(h)))
|
|
1912
1912
|
], !0)), 256)),
|
|
1913
1913
|
$(T.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1922,10 +1922,10 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1922
1922
|
"show-close": !1
|
|
1923
1923
|
}, r.value.query.more.dialog), ve({
|
|
1924
1924
|
default: b(() => [
|
|
1925
|
-
G(
|
|
1925
|
+
G(U(pt), F({
|
|
1926
1926
|
onSubmit: Q[3] || (Q[3] = vt(() => {
|
|
1927
1927
|
}, ["prevent"]))
|
|
1928
|
-
},
|
|
1928
|
+
}, U(Be)(r.value.query, (h) => !["query", "more", "reset"].includes(h)), { style: { width: "98%" } }), {
|
|
1929
1929
|
default: b(() => [
|
|
1930
1930
|
G(St, {
|
|
1931
1931
|
modelValue: r.value,
|
|
@@ -1934,7 +1934,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1934
1934
|
"onUpdate:info": Q[2] || (Q[2] = (h) => M.value = h),
|
|
1935
1935
|
more: !0
|
|
1936
1936
|
}, ve({ _: 2 }, [
|
|
1937
|
-
|
|
1937
|
+
z(T.$slots, (h, O, P) => ({
|
|
1938
1938
|
name: O,
|
|
1939
1939
|
fn: b((J) => [
|
|
1940
1940
|
$(T.$slots, O, { model: r.value }, void 0, !0)
|
|
@@ -1951,19 +1951,19 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1951
1951
|
name: "footer",
|
|
1952
1952
|
fn: b(() => [
|
|
1953
1953
|
H("div", Et(Xt(r.value.query.more.dialog.footer)), [
|
|
1954
|
-
G(
|
|
1954
|
+
G(U(Oe), F(r.value.query.query, {
|
|
1955
1955
|
onClick: Q[4] || (Q[4] = (h) => r.value.query.query.click())
|
|
1956
1956
|
}), {
|
|
1957
1957
|
default: b(() => [
|
|
1958
|
-
Ae(
|
|
1958
|
+
Ae(ke(r.value.query.query.label), 1)
|
|
1959
1959
|
]),
|
|
1960
1960
|
_: 1
|
|
1961
1961
|
}, 16),
|
|
1962
|
-
G(
|
|
1962
|
+
G(U(Oe), F(r.value.query.reset, {
|
|
1963
1963
|
onClick: Q[5] || (Q[5] = (h) => r.value.query.reset.click())
|
|
1964
1964
|
}), {
|
|
1965
1965
|
default: b(() => [
|
|
1966
|
-
Ae(
|
|
1966
|
+
Ae(ke(r.value.query.reset.label), 1)
|
|
1967
1967
|
]),
|
|
1968
1968
|
_: 1
|
|
1969
1969
|
}, 16)
|
|
@@ -1980,13 +1980,13 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
1980
1980
|
default: b(() => {
|
|
1981
1981
|
var h, O, P;
|
|
1982
1982
|
return [
|
|
1983
|
-
i.value && !((P = (O = (h = r.value) == null ? void 0 : h.query) == null ? void 0 : O.more) != null && P.hidden) && r.value.query.more.mode == 1 ? (u(), q("div",
|
|
1984
|
-
H("div",
|
|
1985
|
-
r.value.query.more.mode == 1 ? Qt((u(), V(
|
|
1983
|
+
i.value && !((P = (O = (h = r.value) == null ? void 0 : h.query) == null ? void 0 : O.more) != null && P.hidden) && r.value.query.more.mode == 1 ? (u(), q("div", ql, [
|
|
1984
|
+
H("div", Ol, [
|
|
1985
|
+
r.value.query.more.mode == 1 ? Qt((u(), V(U(pt), F({
|
|
1986
1986
|
key: 0,
|
|
1987
1987
|
onSubmit: Q[7] || (Q[7] = vt(() => {
|
|
1988
1988
|
}, ["prevent"]))
|
|
1989
|
-
},
|
|
1989
|
+
}, U(Be)(r.value.query, (J) => !["query", "more", "reset"].includes(J))), {
|
|
1990
1990
|
default: b(() => [
|
|
1991
1991
|
(u(), V(We(k({ slots: T.$slots }, !0))))
|
|
1992
1992
|
]),
|
|
@@ -2003,10 +2003,10 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
2003
2003
|
], 64);
|
|
2004
2004
|
};
|
|
2005
2005
|
}
|
|
2006
|
-
},
|
|
2006
|
+
}, Al = /* @__PURE__ */ Ze(Il, [["__scopeId", "data-v-3f2b77d6"]]), Bl = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Yl = { style: { padding: "10px", "box-sizing": "border-box" } }, Ul = { style: { margin: "10px" } }, Ll = {
|
|
2007
2007
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2008
2008
|
id: "excelSortEl"
|
|
2009
|
-
}, zl = ["textContent"],
|
|
2009
|
+
}, zl = ["textContent"], Rl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, jl = {
|
|
2010
2010
|
__name: "check-excel-item",
|
|
2011
2011
|
props: {
|
|
2012
2012
|
items: Array,
|
|
@@ -2022,7 +2022,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
2022
2022
|
e.value.forEach((S) => {
|
|
2023
2023
|
S.value = !1;
|
|
2024
2024
|
});
|
|
2025
|
-
},
|
|
2025
|
+
}, Y = () => {
|
|
2026
2026
|
l("excel", e.value, (S, E = "excel.xls") => {
|
|
2027
2027
|
if (!S) {
|
|
2028
2028
|
console.error("下载链接无效");
|
|
@@ -2047,10 +2047,10 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
2047
2047
|
E && E.destroy();
|
|
2048
2048
|
});
|
|
2049
2049
|
}), (S, E) => {
|
|
2050
|
-
const k = A("el-divider"),
|
|
2051
|
-
return u(), q("div",
|
|
2052
|
-
H("div",
|
|
2053
|
-
H("div",
|
|
2050
|
+
const k = A("el-divider"), L = A("el-alert"), te = A("el-checkbox"), se = A("el-button");
|
|
2051
|
+
return u(), q("div", Bl, [
|
|
2052
|
+
H("div", Yl, [
|
|
2053
|
+
H("div", Ul, [
|
|
2054
2054
|
H("a", {
|
|
2055
2055
|
onClick: i,
|
|
2056
2056
|
style: { cursor: "pointer" }
|
|
@@ -2061,7 +2061,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
2061
2061
|
style: { cursor: "pointer" }
|
|
2062
2062
|
}, "全不选")
|
|
2063
2063
|
]),
|
|
2064
|
-
G(
|
|
2064
|
+
G(L, {
|
|
2065
2065
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
2066
2066
|
type: "warning",
|
|
2067
2067
|
"show-icon": "",
|
|
@@ -2069,8 +2069,8 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
2069
2069
|
style: { "margin-bottom": "10px" }
|
|
2070
2070
|
}),
|
|
2071
2071
|
E[0] || (E[0] = H("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2072
|
-
H("div",
|
|
2073
|
-
(u(!0), q(X, null,
|
|
2072
|
+
H("div", Ll, [
|
|
2073
|
+
(u(!0), q(X, null, z(e.value, (T) => (u(), V(te, {
|
|
2074
2074
|
class: "check-box-hover",
|
|
2075
2075
|
style: { width: "120px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "3px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
2076
2076
|
"data-id": T.key,
|
|
@@ -2081,7 +2081,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
2081
2081
|
}, {
|
|
2082
2082
|
default: b(() => [
|
|
2083
2083
|
H("span", {
|
|
2084
|
-
textContent:
|
|
2084
|
+
textContent: ke(T.label),
|
|
2085
2085
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2086
2086
|
}, null, 8, zl)
|
|
2087
2087
|
]),
|
|
@@ -2089,15 +2089,15 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
2089
2089
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2090
2090
|
])
|
|
2091
2091
|
]),
|
|
2092
|
-
H("div",
|
|
2092
|
+
H("div", Rl, [
|
|
2093
2093
|
G(se, {
|
|
2094
2094
|
type: "primary",
|
|
2095
|
-
onClick:
|
|
2096
|
-
icon:
|
|
2095
|
+
onClick: Y,
|
|
2096
|
+
icon: U(Yt),
|
|
2097
2097
|
disabled: e.value.filter((T) => T.value).length < 1
|
|
2098
2098
|
}, {
|
|
2099
2099
|
default: b(() => [
|
|
2100
|
-
Ae(
|
|
2100
|
+
Ae(ke(r.commitText), 1)
|
|
2101
2101
|
]),
|
|
2102
2102
|
_: 1
|
|
2103
2103
|
}, 8, ["icon", "disabled"])
|
|
@@ -2105,7 +2105,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
|
|
|
2105
2105
|
]);
|
|
2106
2106
|
};
|
|
2107
2107
|
}
|
|
2108
|
-
},
|
|
2108
|
+
}, Hl = /* @__PURE__ */ Ze(jl, [["__scopeId", "data-v-630c4ced"]]), je = new vl("gyc");
|
|
2109
2109
|
je.version(1).stores({
|
|
2110
2110
|
//记录表格项设置信息
|
|
2111
2111
|
tableInfo: "++id,[page+key],page,key,showCol,width,sort",
|
|
@@ -2127,10 +2127,10 @@ async function Tt(f, s, r = {}) {
|
|
|
2127
2127
|
);
|
|
2128
2128
|
return await Promise.all(l), "batch update success";
|
|
2129
2129
|
}
|
|
2130
|
-
async function
|
|
2130
|
+
async function Pl(f) {
|
|
2131
2131
|
return await je.tableInfo.where({ page: f }).toArray();
|
|
2132
2132
|
}
|
|
2133
|
-
async function
|
|
2133
|
+
async function Nl(f) {
|
|
2134
2134
|
try {
|
|
2135
2135
|
const s = await je.tableInfo.where({ page: f }).delete();
|
|
2136
2136
|
return console.log("删除了" + s + "条数据"), s;
|
|
@@ -2138,24 +2138,24 @@ async function Wl(f) {
|
|
|
2138
2138
|
throw console.error("删除表格项设置信息时出错:", s), s;
|
|
2139
2139
|
}
|
|
2140
2140
|
}
|
|
2141
|
-
async function
|
|
2141
|
+
async function Wl(f, s) {
|
|
2142
2142
|
if (await je.pagesize.where({ page: f }).count() > 0) {
|
|
2143
2143
|
let l = await je.pagesize.where({ page: f }).first();
|
|
2144
2144
|
return await je.pagesize.put({ ...l, size: s }), "update success";
|
|
2145
2145
|
} else
|
|
2146
2146
|
return await je.pagesize.add({ page: f, size: s }), "add success";
|
|
2147
2147
|
}
|
|
2148
|
-
async function
|
|
2148
|
+
async function Xl(f) {
|
|
2149
2149
|
let s = await je.pagesize.where({ page: f }).first();
|
|
2150
2150
|
return (s == null ? void 0 : s.size) || 20;
|
|
2151
2151
|
}
|
|
2152
|
-
const
|
|
2152
|
+
const Gl = {
|
|
2153
2153
|
style: { margin: "10px" },
|
|
2154
2154
|
class: "allcheck"
|
|
2155
|
-
},
|
|
2155
|
+
}, Ql = {
|
|
2156
2156
|
id: "cols",
|
|
2157
2157
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2158
|
-
},
|
|
2158
|
+
}, Zl = ["textContent"], Jl = {
|
|
2159
2159
|
__name: "columns-setting",
|
|
2160
2160
|
props: /* @__PURE__ */ Ge({
|
|
2161
2161
|
tuid: {
|
|
@@ -2172,8 +2172,8 @@ const Ql = {
|
|
|
2172
2172
|
E ? l.value[k].showCol = !0 : l.value[k].showCol = !1;
|
|
2173
2173
|
try {
|
|
2174
2174
|
await gt(s.tuid, k, { showCol: E });
|
|
2175
|
-
} catch (
|
|
2176
|
-
console.error("列显示状态保存信息时出错:",
|
|
2175
|
+
} catch (L) {
|
|
2176
|
+
console.error("列显示状态保存信息时出错:", L), Xe({
|
|
2177
2177
|
type: "error",
|
|
2178
2178
|
message: "列显示状态保存信息失败!"
|
|
2179
2179
|
});
|
|
@@ -2212,7 +2212,7 @@ const Ql = {
|
|
|
2212
2212
|
message: "全选列保存信息失败!"
|
|
2213
2213
|
});
|
|
2214
2214
|
}
|
|
2215
|
-
},
|
|
2215
|
+
}, Y = async () => {
|
|
2216
2216
|
try {
|
|
2217
2217
|
const E = r.value.filter((k) => !k.alwaysShow && k.value != "control");
|
|
2218
2218
|
E.forEach((k) => {
|
|
@@ -2230,7 +2230,7 @@ const Ql = {
|
|
|
2230
2230
|
cancelButtonText: "取消",
|
|
2231
2231
|
type: "warning"
|
|
2232
2232
|
}).then(() => {
|
|
2233
|
-
|
|
2233
|
+
Nl(s.tuid).then((E) => {
|
|
2234
2234
|
window.location.reload();
|
|
2235
2235
|
}).catch((E) => {
|
|
2236
2236
|
console.error("复位操作出错:", E), Xe({
|
|
@@ -2250,13 +2250,13 @@ const Ql = {
|
|
|
2250
2250
|
width: k.width || "auto"
|
|
2251
2251
|
})).sort((E, k) => E.sort - k.sort), i();
|
|
2252
2252
|
}), (E, k) => {
|
|
2253
|
-
const
|
|
2253
|
+
const L = A("el-divider"), te = A("el-alert"), se = A("el-checkbox");
|
|
2254
2254
|
return u(), q("div", null, [
|
|
2255
|
-
H("div",
|
|
2255
|
+
H("div", Gl, [
|
|
2256
2256
|
H("a", { onClick: M }, "全选"),
|
|
2257
|
-
G(
|
|
2258
|
-
H("a", { onClick:
|
|
2259
|
-
G(
|
|
2257
|
+
G(L, { direction: "vertical" }),
|
|
2258
|
+
H("a", { onClick: Y }, "全不选"),
|
|
2259
|
+
G(L, { direction: "vertical" }),
|
|
2260
2260
|
H("a", { onClick: S }, "复位")
|
|
2261
2261
|
]),
|
|
2262
2262
|
G(te, {
|
|
@@ -2267,8 +2267,8 @@ const Ql = {
|
|
|
2267
2267
|
style: { "margin-bottom": "10px" }
|
|
2268
2268
|
}),
|
|
2269
2269
|
H("div", null, [
|
|
2270
|
-
H("div",
|
|
2271
|
-
(u(!0), q(X, null,
|
|
2270
|
+
H("div", Ql, [
|
|
2271
|
+
(u(!0), q(X, null, z(r.value, (T) => (u(), V(se, {
|
|
2272
2272
|
modelValue: T.showCol,
|
|
2273
2273
|
"onUpdate:modelValue": (Q) => T.showCol = Q,
|
|
2274
2274
|
"data-id": T.value,
|
|
@@ -2282,9 +2282,9 @@ const Ql = {
|
|
|
2282
2282
|
}, {
|
|
2283
2283
|
default: b(() => [
|
|
2284
2284
|
H("span", {
|
|
2285
|
-
textContent:
|
|
2285
|
+
textContent: ke(T.label),
|
|
2286
2286
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2287
|
-
}, null, 8,
|
|
2287
|
+
}, null, 8, Zl)
|
|
2288
2288
|
]),
|
|
2289
2289
|
_: 2
|
|
2290
2290
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2293,7 +2293,7 @@ const Ql = {
|
|
|
2293
2293
|
]);
|
|
2294
2294
|
};
|
|
2295
2295
|
}
|
|
2296
|
-
},
|
|
2296
|
+
}, Kl = /* @__PURE__ */ Ze(Jl, [["__scopeId", "data-v-70fe569f"]]), ea = { class: "title" }, ta = { class: "content" }, la = {
|
|
2297
2297
|
__name: "g-cell-toopTip",
|
|
2298
2298
|
props: {
|
|
2299
2299
|
content: {
|
|
@@ -2311,28 +2311,28 @@ const Ql = {
|
|
|
2311
2311
|
};
|
|
2312
2312
|
return (l, e) => (u(), q("div", {
|
|
2313
2313
|
class: "g-cell-toopTip",
|
|
2314
|
-
style:
|
|
2314
|
+
style: qe({ width: s.column.width + "px" })
|
|
2315
2315
|
}, [
|
|
2316
|
-
H("div",
|
|
2316
|
+
H("div", ea, [
|
|
2317
2317
|
e[0] || (e[0] = H("span", { class: "title-text" }, "内容", -1)),
|
|
2318
2318
|
H("span", {
|
|
2319
2319
|
class: "copy-btn",
|
|
2320
2320
|
onClick: r,
|
|
2321
2321
|
title: "复制内容"
|
|
2322
2322
|
}, [
|
|
2323
|
-
G(
|
|
2323
|
+
G(U(sl))
|
|
2324
2324
|
])
|
|
2325
2325
|
]),
|
|
2326
|
-
H("div",
|
|
2326
|
+
H("div", ta, ke(s.content), 1)
|
|
2327
2327
|
], 4));
|
|
2328
2328
|
}
|
|
2329
|
-
},
|
|
2329
|
+
}, aa = /* @__PURE__ */ Ze(la, [["__scopeId", "data-v-f28912da"]]), ra = { key: 0 }, oa = { style: { display: "flex", "margin-top": "-2px" } }, ua = { style: { display: "flex", flex: "1" } }, na = {
|
|
2330
2330
|
style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
|
|
2331
2331
|
id: "table-form"
|
|
2332
|
-
},
|
|
2332
|
+
}, sa = { key: 1 }, ia = { style: { display: "flex" } }, da = { style: { display: "flex", flex: "1" } }, ca = { class: "g-table-container" }, fa = {
|
|
2333
2333
|
key: 0,
|
|
2334
2334
|
class: "table-query-container"
|
|
2335
|
-
},
|
|
2335
|
+
}, pa = { class: "table-container" }, ma = ["innerHTML"], va = /* @__PURE__ */ Object.assign({
|
|
2336
2336
|
name: "g-table",
|
|
2337
2337
|
inheritAttrs: !1
|
|
2338
2338
|
}, {
|
|
@@ -2355,9 +2355,9 @@ const Ql = {
|
|
|
2355
2355
|
], ["update:modelValue"]),
|
|
2356
2356
|
setup(f, { expose: s, emit: r }) {
|
|
2357
2357
|
var ut, nt, st, it, dt, ct, ft;
|
|
2358
|
-
const l = r, e = Qe(f, "modelValue"), i = Mt("options"), M = re({}),
|
|
2358
|
+
const l = r, e = Qe(f, "modelValue"), i = Mt("options"), M = re({}), Y = re(null), S = re(null), E = Object.entries(e.value).filter(([t, o]) => (o == null ? void 0 : o.search) !== void 0).map(([t, o]) => [t, o.value]);
|
|
2359
2359
|
M.value = Object.fromEntries(E);
|
|
2360
|
-
const k = re(!1),
|
|
2360
|
+
const k = re(!1), L = [
|
|
2361
2361
|
"type",
|
|
2362
2362
|
"index",
|
|
2363
2363
|
"label",
|
|
@@ -2395,14 +2395,14 @@ const Ql = {
|
|
|
2395
2395
|
fit: !1,
|
|
2396
2396
|
type: "hidden",
|
|
2397
2397
|
load: async () => {
|
|
2398
|
-
e.value.table.page.pageSize = await
|
|
2398
|
+
e.value.table.page.pageSize = await Xl(de.value);
|
|
2399
2399
|
let { currentPage: t, pageSize: o } = e.value.table.page;
|
|
2400
2400
|
try {
|
|
2401
2401
|
l(
|
|
2402
2402
|
"load",
|
|
2403
2403
|
{ currentPage: t, pageSize: o, ...M.value },
|
|
2404
2404
|
(n = [], y = 0, { fields: x = [], sums: I = {} } = {}) => {
|
|
2405
|
-
var
|
|
2405
|
+
var R;
|
|
2406
2406
|
if (!Array.isArray(n)) {
|
|
2407
2407
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), Xe.error("数据加载失败,请检查数据格式。");
|
|
2408
2408
|
return;
|
|
@@ -2411,7 +2411,7 @@ const Ql = {
|
|
|
2411
2411
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Xe.error("数据加载失败,请检查数据格式。");
|
|
2412
2412
|
return;
|
|
2413
2413
|
}
|
|
2414
|
-
e.value.table.data = n, ((
|
|
2414
|
+
e.value.table.data = n, ((R = e.value.control) == null ? void 0 : R.add(e).inline) === !0 && e.value.table.data.unshift(N.value), e.value.table.page.total = y, fe.value = x, Q.value = I, $e(), pe.value = Math.random().toString(36).substring(2);
|
|
2415
2415
|
},
|
|
2416
2416
|
N.value
|
|
2417
2417
|
);
|
|
@@ -2445,7 +2445,7 @@ const Ql = {
|
|
|
2445
2445
|
e.value.table.page.currentPage = t, e.value.table.load();
|
|
2446
2446
|
},
|
|
2447
2447
|
onSizeChange: (t) => {
|
|
2448
|
-
|
|
2448
|
+
Wl(de.value, t).then(() => {
|
|
2449
2449
|
e.value.table.page.pageSize = t, e.value.table.load();
|
|
2450
2450
|
});
|
|
2451
2451
|
}
|
|
@@ -2570,16 +2570,16 @@ const Ql = {
|
|
|
2570
2570
|
(st = e.value) == null ? void 0 : st.control
|
|
2571
2571
|
);
|
|
2572
2572
|
const ue = (t, o = !0) => {
|
|
2573
|
-
const n = e.value.control[t], y = o ? (x, I,
|
|
2573
|
+
const n = e.value.control[t], y = o ? (x, I, R, ce) => {
|
|
2574
2574
|
var He, Le, Je;
|
|
2575
|
-
if (!x || !I ||
|
|
2575
|
+
if (!x || !I || R == null)
|
|
2576
2576
|
return console.warn(`merge${t.charAt(0).toUpperCase() + t.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
2577
|
-
const Ee = ((He = ie[t]) == null ? void 0 : He.call(ie, x, I,
|
|
2577
|
+
const Ee = ((He = ie[t]) == null ? void 0 : He.call(ie, x, I, R, ce)) || {}, Te = ((Je = (Le = i == null ? void 0 : i.control) == null ? void 0 : Le[t]) == null ? void 0 : Je.call(Le, x, I, R, ce)) || {}, Ye = (n == null ? void 0 : n(x, I, R, ce)) || {};
|
|
2578
2578
|
return Fe(Ee, Te, Ye) || {};
|
|
2579
2579
|
} : (x) => {
|
|
2580
2580
|
var Ee, Te, Ye;
|
|
2581
|
-
const I = ((Ee = ie[t]) == null ? void 0 : Ee.call(ie, x)) || {},
|
|
2582
|
-
return Fe(I,
|
|
2581
|
+
const I = ((Ee = ie[t]) == null ? void 0 : Ee.call(ie, x)) || {}, R = ((Ye = (Te = i == null ? void 0 : i.control) == null ? void 0 : Te[t]) == null ? void 0 : Ye.call(Te, x)) || {}, ce = (n == null ? void 0 : n(x)) || {};
|
|
2582
|
+
return Fe(I, R, ce) || {};
|
|
2583
2583
|
};
|
|
2584
2584
|
e.value.control[t] = y;
|
|
2585
2585
|
};
|
|
@@ -2588,21 +2588,21 @@ const Ql = {
|
|
|
2588
2588
|
var ce, Ee, Te, Ye, He, Le;
|
|
2589
2589
|
if (!t || !o || n == null)
|
|
2590
2590
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2591
|
-
const x = ((ce = ie.dropdown) == null ? void 0 : ce.call(ie, t, o, n, y)) || {}, I = ((Te = (Ee = i == null ? void 0 : i.control) == null ? void 0 : Ee.dropdown) == null ? void 0 : Te.call(Ee, t, o, n, y)) || {},
|
|
2592
|
-
return Fe(x, I,
|
|
2591
|
+
const x = ((ce = ie.dropdown) == null ? void 0 : ce.call(ie, t, o, n, y)) || {}, I = ((Te = (Ee = i == null ? void 0 : i.control) == null ? void 0 : Ee.dropdown) == null ? void 0 : Te.call(Ee, t, o, n, y)) || {}, R = ((Le = (He = (Ye = e.value) == null ? void 0 : Ye.control) == null ? void 0 : He.dropdown) == null ? void 0 : Le.call(He, t, o, n, y)) || {};
|
|
2592
|
+
return Fe(x, I, R) || {};
|
|
2593
2593
|
}, Ve = {
|
|
2594
2594
|
type: "hidden",
|
|
2595
2595
|
"min-width": 100,
|
|
2596
2596
|
align: "center",
|
|
2597
2597
|
formatter: (t, o, n, y) => n,
|
|
2598
|
-
"tooltip-formatter": ({ row: t, column: o, cellValue: n }) => _e(
|
|
2598
|
+
"tooltip-formatter": ({ row: t, column: o, cellValue: n }) => _e(aa, { content: n, column: o })
|
|
2599
2599
|
};
|
|
2600
2600
|
e.value.tableColumns = Fe(
|
|
2601
2601
|
Ve,
|
|
2602
2602
|
i == null ? void 0 : i.tableColumns,
|
|
2603
2603
|
(it = e.value) == null ? void 0 : it.tableColumns
|
|
2604
2604
|
), e.value.form = Fe(
|
|
2605
|
-
|
|
2605
|
+
zt,
|
|
2606
2606
|
i == null ? void 0 : i.form,
|
|
2607
2607
|
(dt = e.value) == null ? void 0 : dt.form
|
|
2608
2608
|
);
|
|
@@ -2658,7 +2658,7 @@ const Ql = {
|
|
|
2658
2658
|
}
|
|
2659
2659
|
return t.type === "money" && (t.align = t.align || "right", t.width = t.width || 130, n = `<span title="${Dt(
|
|
2660
2660
|
parseFloat(n)
|
|
2661
|
-
)}">${
|
|
2661
|
+
)}">${Ta(parseFloat(n))}</span>`), t.prefix && n && (n = `<span>${t.prefix}${n}</span>`), t.suffix && n && (n = `${n}<span>${t.suffix}</span>`), n;
|
|
2662
2662
|
}, Ie = (t) => {
|
|
2663
2663
|
M.value = Object.fromEntries(E), e.value.table.load();
|
|
2664
2664
|
}, w = (t) => {
|
|
@@ -2680,26 +2680,26 @@ const Ql = {
|
|
|
2680
2680
|
e.value.form.modalState = "edit";
|
|
2681
2681
|
try {
|
|
2682
2682
|
if (!await ((x = e.value.control) == null ? void 0 : x.validate("edit", { row: t, column: o, index: n, m: y }))) return;
|
|
2683
|
-
} catch (
|
|
2684
|
-
console.error("验证失败:",
|
|
2683
|
+
} catch (R) {
|
|
2684
|
+
console.error("验证失败:", R);
|
|
2685
2685
|
return;
|
|
2686
2686
|
}
|
|
2687
|
-
(I = e.value.control.edit(t, o, n, y)) != null && I.click ? e.value.control.edit(t, o, n, y).click(t, o, n, y) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit(t, o, n, y).mode, e.value.dialog.title = e.value.control.edit(t, o, n, y).title || e.value.control.edit(t, o, n, y).label || "编辑", Object.keys(t).forEach((
|
|
2688
|
-
e.value[
|
|
2687
|
+
(I = e.value.control.edit(t, o, n, y)) != null && I.click ? e.value.control.edit(t, o, n, y).click(t, o, n, y) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit(t, o, n, y).mode, e.value.dialog.title = e.value.control.edit(t, o, n, y).title || e.value.control.edit(t, o, n, y).label || "编辑", Object.keys(t).forEach((R) => {
|
|
2688
|
+
e.value[R] && (e.value[R].value = t[R]);
|
|
2689
2689
|
}), k.value = !0, l("open", "edit", { m: y, row: t, column: o, index: n }), ht());
|
|
2690
2690
|
}, a = async (t, o, n, y) => {
|
|
2691
2691
|
var x, I;
|
|
2692
2692
|
try {
|
|
2693
2693
|
if (!await ((x = e.value.control) == null ? void 0 : x.validate("delete", { row: t, column: o, index: n, m: y }))) return;
|
|
2694
|
-
} catch (
|
|
2695
|
-
console.error("验证失败:",
|
|
2694
|
+
} catch (R) {
|
|
2695
|
+
console.error("验证失败:", R);
|
|
2696
2696
|
return;
|
|
2697
2697
|
}
|
|
2698
2698
|
if ((I = e.value.control.delete(t, o, n, y)) != null && I.click)
|
|
2699
2699
|
e.value.control.delete(t, o, n, y).click(t, o, n, y);
|
|
2700
2700
|
else {
|
|
2701
|
-
let { message:
|
|
2702
|
-
Ft.confirm(
|
|
2701
|
+
let { message: R, title: ce, options: Ee } = e.value.control.delete(t, o, n, y).dialog;
|
|
2702
|
+
Ft.confirm(R, ce, Ee).then(() => {
|
|
2703
2703
|
l(
|
|
2704
2704
|
"delete",
|
|
2705
2705
|
{ row: t, column: o, index: n, m: y },
|
|
@@ -2715,20 +2715,20 @@ const Ql = {
|
|
|
2715
2715
|
e.value.form.modalState = void 0;
|
|
2716
2716
|
try {
|
|
2717
2717
|
if (!await ((x = e.value.control) == null ? void 0 : x.validate("view", { row: t, column: o, index: n, m: y }))) return;
|
|
2718
|
-
} catch (
|
|
2719
|
-
console.error("验证失败:",
|
|
2718
|
+
} catch (R) {
|
|
2719
|
+
console.error("验证失败:", R);
|
|
2720
2720
|
return;
|
|
2721
2721
|
}
|
|
2722
|
-
(I = e.value.control.view(t, o, n, y)) != null && I.click ? e.value.control.view(t, o, n, y).click(t, o, n, y) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view(t, o, n, y).mode, e.value.dialog.title = e.value.control.view(t, o, n, y).title || e.value.control.view(t, o, n, y).label || "查看", Object.keys(t).forEach((
|
|
2723
|
-
e.value[
|
|
2722
|
+
(I = e.value.control.view(t, o, n, y)) != null && I.click ? e.value.control.view(t, o, n, y).click(t, o, n, y) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view(t, o, n, y).mode, e.value.dialog.title = e.value.control.view(t, o, n, y).title || e.value.control.view(t, o, n, y).label || "查看", Object.keys(t).forEach((R) => {
|
|
2723
|
+
e.value[R] && (e.value[R].value = t[R]);
|
|
2724
2724
|
}), k.value = !0, l("open", "view", { m: y, row: t, column: o, index: n }), ht());
|
|
2725
2725
|
}, g = (t, o, n, y) => {
|
|
2726
2726
|
var x;
|
|
2727
2727
|
(x = e.value.control.save(t, o, n, y)) != null && x.click ? e.value.control.save(t, o, n, y).click(t, o, n, y) : l(
|
|
2728
2728
|
"row-save",
|
|
2729
2729
|
{ row: t, column: o, index: n, data: e.value.table.data },
|
|
2730
|
-
(I = !0,
|
|
2731
|
-
I && e.value.table.load(),
|
|
2730
|
+
(I = !0, R = !0) => {
|
|
2731
|
+
I && e.value.table.load(), R && lt(() => {
|
|
2732
2732
|
N.value = Object.assign(
|
|
2733
2733
|
{},
|
|
2734
2734
|
Object.fromEntries(
|
|
@@ -2757,7 +2757,7 @@ const Ql = {
|
|
|
2757
2757
|
size: t.control.download(t).size || 480,
|
|
2758
2758
|
width: t.control.download(t).width || 600,
|
|
2759
2759
|
slots: {
|
|
2760
|
-
default: () => _e(
|
|
2760
|
+
default: () => _e(Hl, {
|
|
2761
2761
|
items: o,
|
|
2762
2762
|
commitText: t.control.download(t).excelLabel,
|
|
2763
2763
|
onExcel: (x, I) => {
|
|
@@ -2777,7 +2777,7 @@ const Ql = {
|
|
|
2777
2777
|
size: t.control.setting(t).size || 470,
|
|
2778
2778
|
width: t.control.setting(t).width || 600,
|
|
2779
2779
|
slots: {
|
|
2780
|
-
default: () => _e(
|
|
2780
|
+
default: () => _e(Kl, {
|
|
2781
2781
|
modelValue: t,
|
|
2782
2782
|
tuid: de.value
|
|
2783
2783
|
})
|
|
@@ -2793,19 +2793,19 @@ const Ql = {
|
|
|
2793
2793
|
{ type: "edit", func: p },
|
|
2794
2794
|
{ type: "delete", func: a },
|
|
2795
2795
|
{ type: "save", func: g }
|
|
2796
|
-
], c = (t, o, n, y, x) => v.filter((I) => t.includes(I.type)).map(({ type: I, func:
|
|
2796
|
+
], c = (t, o, n, y, x) => v.filter((I) => t.includes(I.type)).map(({ type: I, func: R }) => {
|
|
2797
2797
|
var ce, Ee, Te;
|
|
2798
2798
|
return {
|
|
2799
2799
|
name: `control-${I}`,
|
|
2800
2800
|
attr: Z == null ? void 0 : Z[I](o, n, y, x),
|
|
2801
|
-
func:
|
|
2801
|
+
func: R,
|
|
2802
2802
|
label: (ce = Z == null ? void 0 : Z[I](o, n, y, x)) == null ? void 0 : ce.label,
|
|
2803
2803
|
sort: ((Ee = Z == null ? void 0 : Z[I](o, n, y, x)) == null ? void 0 : Ee.sort) || 0,
|
|
2804
2804
|
groupName: ((Te = Z == null ? void 0 : Z[I](o, n, y, x)) == null ? void 0 : Te.groupName) || "default"
|
|
2805
2805
|
};
|
|
2806
|
-
}).sort((I,
|
|
2807
|
-
const ce =
|
|
2808
|
-
return I[ce] || (I[ce] = []), I[ce].push(
|
|
2806
|
+
}).sort((I, R) => I.sort - R.sort), K = (t, o, n, y, x) => c(t, o, n, y, x).reduce((I, R) => {
|
|
2807
|
+
const ce = R.groupName || "default";
|
|
2808
|
+
return I[ce] || (I[ce] = []), I[ce].push(R), I;
|
|
2809
2809
|
}, {}), ge = Ke(
|
|
2810
2810
|
() => Object.fromEntries(
|
|
2811
2811
|
Object.entries(e.value).filter(([t, o]) => o.type !== "hidden").filter(([t, o]) => o.hidden !== !0).filter(([t, o]) => o.visible !== !1).filter(([t, o]) => o.showCol !== !1).map(([t, o]) => (o.sort = typeof o.sort == "number" ? o.sort : 0, [t, o])).sort((t, o) => t[1].sort - o[1].sort)
|
|
@@ -2815,16 +2815,16 @@ const Ql = {
|
|
|
2815
2815
|
for (const I of y) {
|
|
2816
2816
|
if (I.value == x) return I.label;
|
|
2817
2817
|
if (I.children) {
|
|
2818
|
-
const
|
|
2819
|
-
if (
|
|
2818
|
+
const R = n(I.children, x);
|
|
2819
|
+
if (R) return R;
|
|
2820
2820
|
}
|
|
2821
2821
|
}
|
|
2822
2822
|
return null;
|
|
2823
2823
|
};
|
|
2824
2824
|
if (t.getDicts) {
|
|
2825
2825
|
const y = o.toString();
|
|
2826
|
-
return me.value[y] ? (t.options = me.value[y], t.formatter || (t.formatter = (x, I,
|
|
2827
|
-
me.value[y] = x, t.options = x, t.formatter || (t.formatter = (I,
|
|
2826
|
+
return me.value[y] ? (t.options = me.value[y], t.formatter || (t.formatter = (x, I, R, ce) => t.options && n(t.options, R) || R), Promise.resolve()) : t.getDicts(e.value.table.data).then((x) => {
|
|
2827
|
+
me.value[y] = x, t.options = x, t.formatter || (t.formatter = (I, R, ce, Ee) => t.options && n(t.options, ce) || ce);
|
|
2828
2828
|
});
|
|
2829
2829
|
}
|
|
2830
2830
|
return Promise.resolve();
|
|
@@ -2856,7 +2856,7 @@ const Ql = {
|
|
|
2856
2856
|
S.value.handleClose();
|
|
2857
2857
|
else if (e.value.dialog.mode == "dialog")
|
|
2858
2858
|
try {
|
|
2859
|
-
|
|
2859
|
+
Y.value.handleClose();
|
|
2860
2860
|
} catch {
|
|
2861
2861
|
k.value = !1;
|
|
2862
2862
|
}
|
|
@@ -2867,7 +2867,7 @@ const Ql = {
|
|
|
2867
2867
|
e.value.table.autoWatch && e.value.table.load();
|
|
2868
2868
|
});
|
|
2869
2869
|
const xe = async () => {
|
|
2870
|
-
const t = await
|
|
2870
|
+
const t = await Pl(de.value);
|
|
2871
2871
|
t && Array.isArray(t) && t.forEach((o) => {
|
|
2872
2872
|
const n = e.value[o.key];
|
|
2873
2873
|
n && (n.width = o.width, n.showCol = o.showCol, n.sort = o.sort);
|
|
@@ -2913,43 +2913,43 @@ const Ql = {
|
|
|
2913
2913
|
e.value.table.autoWatch || e.value.table.load();
|
|
2914
2914
|
}), s({ addRow: m, editRow: p, deleteRow: a, readForm: D, saveRowData: g, closeDialog: Se }), (t, o) => {
|
|
2915
2915
|
var Le, Je, tt, at, rt;
|
|
2916
|
-
const n = A("el-icon"), y = A("el-dialog"), x = A("el-drawer"), I = A("el-button-group"),
|
|
2916
|
+
const n = A("el-icon"), y = A("el-dialog"), x = A("el-drawer"), I = A("el-button-group"), R = A("el-dropdown-item"), ce = A("el-dropdown-menu"), Ee = A("el-dropdown"), Te = A("el-table-column"), Ye = A("el-table"), He = A("el-pagination");
|
|
2917
2917
|
return u(), q(X, null, [
|
|
2918
|
-
e.value.dialog.mode == "dialog" && k.value ? (u(), q("div",
|
|
2918
|
+
e.value.dialog.mode == "dialog" && k.value ? (u(), q("div", ra, [
|
|
2919
2919
|
G(y, F(
|
|
2920
2920
|
{
|
|
2921
2921
|
ref_key: "dialogRef",
|
|
2922
|
-
ref:
|
|
2922
|
+
ref: Y,
|
|
2923
2923
|
id: "dialogRef",
|
|
2924
2924
|
modelValue: k.value,
|
|
2925
2925
|
"onUpdate:modelValue": o[3] || (o[3] = (B) => k.value = B),
|
|
2926
2926
|
fullscreen: e.value.dialog.fullScreen
|
|
2927
2927
|
},
|
|
2928
|
-
|
|
2928
|
+
U(Be)(e.value.dialog, (B) => !["size", "max", "min"].includes(B)),
|
|
2929
2929
|
{
|
|
2930
|
-
width:
|
|
2930
|
+
width: U(jt)(e.value.dialog.width) + 35
|
|
2931
2931
|
}
|
|
2932
2932
|
), {
|
|
2933
2933
|
header: b(() => {
|
|
2934
|
-
var B, ne, _, j, ee, Pe, Ne,
|
|
2934
|
+
var B, ne, _, j, ee, Pe, Ne, ze, d, W;
|
|
2935
2935
|
return [
|
|
2936
|
-
H("div",
|
|
2937
|
-
H("div",
|
|
2936
|
+
H("div", oa, [
|
|
2937
|
+
H("div", ua, [
|
|
2938
2938
|
$(t.$slots, "f-header", {}, () => [
|
|
2939
|
-
H("div", null,
|
|
2939
|
+
H("div", null, ke(e.value.dialog.title), 1)
|
|
2940
2940
|
], !0)
|
|
2941
2941
|
]),
|
|
2942
2942
|
((ne = (B = e.value) == null ? void 0 : B.dialog) == null ? void 0 : ne.fullScreen) === !1 ? (u(), q("div", {
|
|
2943
2943
|
key: 0,
|
|
2944
|
-
style:
|
|
2944
|
+
style: qe((ee = (j = (_ = e.value) == null ? void 0 : _.dialog) == null ? void 0 : j.max) == null ? void 0 : ee.style),
|
|
2945
2945
|
onClick: o[0] || (o[0] = (C) => e.value.dialog.fullScreen = !0),
|
|
2946
2946
|
class: "max"
|
|
2947
2947
|
}, [
|
|
2948
2948
|
G(n, null, {
|
|
2949
2949
|
default: b(() => {
|
|
2950
|
-
var C, Me,
|
|
2950
|
+
var C, Me, Re;
|
|
2951
2951
|
return [
|
|
2952
|
-
(u(), V(We((
|
|
2952
|
+
(u(), V(We((Re = (Me = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : Me.max) == null ? void 0 : Re.icon)))
|
|
2953
2953
|
];
|
|
2954
2954
|
}),
|
|
2955
2955
|
_: 1
|
|
@@ -2957,15 +2957,15 @@ const Ql = {
|
|
|
2957
2957
|
], 4)) : ye("", !0),
|
|
2958
2958
|
((Ne = (Pe = e.value) == null ? void 0 : Pe.dialog) == null ? void 0 : Ne.fullScreen) === !0 ? (u(), q("div", {
|
|
2959
2959
|
key: 1,
|
|
2960
|
-
style:
|
|
2960
|
+
style: qe((W = (d = (ze = e.value) == null ? void 0 : ze.dialog) == null ? void 0 : d.min) == null ? void 0 : W.style),
|
|
2961
2961
|
onClick: o[1] || (o[1] = (C) => e.value.dialog.fullScreen = !1),
|
|
2962
2962
|
class: "max"
|
|
2963
2963
|
}, [
|
|
2964
2964
|
G(n, null, {
|
|
2965
2965
|
default: b(() => {
|
|
2966
|
-
var C, Me,
|
|
2966
|
+
var C, Me, Re;
|
|
2967
2967
|
return [
|
|
2968
|
-
(u(), V(We((
|
|
2968
|
+
(u(), V(We((Re = (Me = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : Me.min) == null ? void 0 : Re.icon)))
|
|
2969
2969
|
];
|
|
2970
2970
|
}),
|
|
2971
2971
|
_: 1
|
|
@@ -2975,7 +2975,7 @@ const Ql = {
|
|
|
2975
2975
|
];
|
|
2976
2976
|
}),
|
|
2977
2977
|
default: b(() => [
|
|
2978
|
-
H("div",
|
|
2978
|
+
H("div", na, [
|
|
2979
2979
|
$(t.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
2980
2980
|
G(_t, {
|
|
2981
2981
|
modelValue: e.value,
|
|
@@ -2983,7 +2983,7 @@ const Ql = {
|
|
|
2983
2983
|
onSubmit: h,
|
|
2984
2984
|
onReset: O
|
|
2985
2985
|
}, ve({ _: 2 }, [
|
|
2986
|
-
|
|
2986
|
+
z(t.$slots, (B, ne, _) => ({
|
|
2987
2987
|
name: ne,
|
|
2988
2988
|
fn: b((j) => [
|
|
2989
2989
|
$(t.$slots, ne, { model: j }, void 0, !0)
|
|
@@ -2996,18 +2996,18 @@ const Ql = {
|
|
|
2996
2996
|
_: 3
|
|
2997
2997
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
2998
2998
|
])) : ye("", !0),
|
|
2999
|
-
e.value.dialog.mode == "drawer" && k.value ? (u(), q("div",
|
|
2999
|
+
e.value.dialog.mode == "drawer" && k.value ? (u(), q("div", sa, [
|
|
3000
3000
|
G(x, F({
|
|
3001
3001
|
ref_key: "drawerRef",
|
|
3002
3002
|
ref: S,
|
|
3003
3003
|
modelValue: k.value,
|
|
3004
3004
|
"onUpdate:modelValue": o[5] || (o[5] = (B) => k.value = B)
|
|
3005
|
-
},
|
|
3005
|
+
}, U(Be)(e.value.dialog, (B) => !["width"].includes(B))), {
|
|
3006
3006
|
header: b(() => [
|
|
3007
|
-
H("div",
|
|
3008
|
-
H("div",
|
|
3007
|
+
H("div", ia, [
|
|
3008
|
+
H("div", da, [
|
|
3009
3009
|
$(t.$slots, "f-header", {}, () => [
|
|
3010
|
-
H("div", null,
|
|
3010
|
+
H("div", null, ke(e.value.dialog.title), 1)
|
|
3011
3011
|
], !0)
|
|
3012
3012
|
])
|
|
3013
3013
|
])
|
|
@@ -3020,7 +3020,7 @@ const Ql = {
|
|
|
3020
3020
|
onSubmit: h,
|
|
3021
3021
|
onReset: O
|
|
3022
3022
|
}, ve({ _: 2 }, [
|
|
3023
|
-
|
|
3023
|
+
z(t.$slots, (B, ne, _) => ({
|
|
3024
3024
|
name: ne,
|
|
3025
3025
|
fn: b((j) => [
|
|
3026
3026
|
$(t.$slots, ne, { model: j }, void 0, !0)
|
|
@@ -3032,10 +3032,10 @@ const Ql = {
|
|
|
3032
3032
|
_: 3
|
|
3033
3033
|
}, 16, ["modelValue"])
|
|
3034
3034
|
])) : ye("", !0),
|
|
3035
|
-
H("div",
|
|
3036
|
-
((Je = (Le = e.value) == null ? void 0 : Le.query) == null ? void 0 : Je.hidden) != !0 ? (u(), q("div",
|
|
3035
|
+
H("div", ca, [
|
|
3036
|
+
((Je = (Le = e.value) == null ? void 0 : Le.query) == null ? void 0 : Je.hidden) != !0 ? (u(), q("div", fa, [
|
|
3037
3037
|
$(t.$slots, "query", {}, () => [
|
|
3038
|
-
G(
|
|
3038
|
+
G(Al, {
|
|
3039
3039
|
modelValue: e.value,
|
|
3040
3040
|
"onUpdate:modelValue": o[6] || (o[6] = (B) => e.value = B),
|
|
3041
3041
|
info: M.value,
|
|
@@ -3045,11 +3045,11 @@ const Ql = {
|
|
|
3045
3045
|
}, ve({
|
|
3046
3046
|
"q-btns": b(() => [
|
|
3047
3047
|
$(t.$slots, "q-btns", {}, () => [
|
|
3048
|
-
(u(!0), q(X, null,
|
|
3049
|
-
ne == "default" ? (u(!0), q(X, { key: 0 },
|
|
3048
|
+
(u(!0), q(X, null, z(K(["add", "download", "setting"], e.value), (B, ne) => (u(), q(X, null, [
|
|
3049
|
+
ne == "default" ? (u(!0), q(X, { key: 0 }, z(B, (_) => (u(), q(X, null, [
|
|
3050
3050
|
$(t.$slots, _.name + "-left", {}, void 0, !0),
|
|
3051
3051
|
(_.name === "control-add" ? _.attr.auth() && _.attr.inline === !1 : _.attr.auth()) ? $(t.$slots, _.name, { key: 0 }, () => [
|
|
3052
|
-
_.label ? (u(), V(
|
|
3052
|
+
_.label ? (u(), V(U(Oe), F({
|
|
3053
3053
|
key: 0,
|
|
3054
3054
|
title: _.label,
|
|
3055
3055
|
ref_for: !0
|
|
@@ -3057,10 +3057,10 @@ const Ql = {
|
|
|
3057
3057
|
onClick: (j) => _.func(e.value, te.value)
|
|
3058
3058
|
}), {
|
|
3059
3059
|
default: b(() => [
|
|
3060
|
-
Ae(
|
|
3060
|
+
Ae(ke(_.label), 1)
|
|
3061
3061
|
]),
|
|
3062
3062
|
_: 2
|
|
3063
|
-
}, 1040, ["title", "onClick"])) : (u(), V(
|
|
3063
|
+
}, 1040, ["title", "onClick"])) : (u(), V(U(Oe), F({
|
|
3064
3064
|
key: 1,
|
|
3065
3065
|
title: _.label,
|
|
3066
3066
|
ref_for: !0
|
|
@@ -3071,10 +3071,10 @@ const Ql = {
|
|
|
3071
3071
|
$(t.$slots, _.name + "-right", {}, void 0, !0)
|
|
3072
3072
|
], 64))), 256)) : (u(), V(I, { key: 1 }, {
|
|
3073
3073
|
default: b(() => [
|
|
3074
|
-
(u(!0), q(X, null,
|
|
3074
|
+
(u(!0), q(X, null, z(B, (_) => (u(), q(X, null, [
|
|
3075
3075
|
$(t.$slots, _.name + "-left", {}, void 0, !0),
|
|
3076
3076
|
(_.name === "control-add" ? _.attr.auth() && _.attr.inline === !1 : _.attr.auth()) ? $(t.$slots, _.name, { key: 0 }, () => [
|
|
3077
|
-
_.label ? (u(), V(
|
|
3077
|
+
_.label ? (u(), V(U(Oe), F({
|
|
3078
3078
|
key: 0,
|
|
3079
3079
|
title: _.label,
|
|
3080
3080
|
ref_for: !0
|
|
@@ -3082,10 +3082,10 @@ const Ql = {
|
|
|
3082
3082
|
onClick: (j) => _.func(e.value, te.value)
|
|
3083
3083
|
}), {
|
|
3084
3084
|
default: b(() => [
|
|
3085
|
-
Ae(
|
|
3085
|
+
Ae(ke(_.label), 1)
|
|
3086
3086
|
]),
|
|
3087
3087
|
_: 2
|
|
3088
|
-
}, 1040, ["title", "onClick"])) : (u(), V(
|
|
3088
|
+
}, 1040, ["title", "onClick"])) : (u(), V(U(Oe), F({
|
|
3089
3089
|
key: 1,
|
|
3090
3090
|
title: _.label,
|
|
3091
3091
|
ref_for: !0
|
|
@@ -3103,7 +3103,7 @@ const Ql = {
|
|
|
3103
3103
|
]),
|
|
3104
3104
|
_: 2
|
|
3105
3105
|
}, [
|
|
3106
|
-
|
|
3106
|
+
z(t.$slots, (B, ne, _) => ({
|
|
3107
3107
|
name: ne,
|
|
3108
3108
|
fn: b((j) => [
|
|
3109
3109
|
$(t.$slots, ne, { model: e.value }, void 0, !0)
|
|
@@ -3112,10 +3112,10 @@ const Ql = {
|
|
|
3112
3112
|
]), 1032, ["modelValue", "info"])
|
|
3113
3113
|
], !0)
|
|
3114
3114
|
])) : ye("", !0),
|
|
3115
|
-
H("div",
|
|
3115
|
+
H("div", pa, [
|
|
3116
3116
|
G(Ye, F({
|
|
3117
3117
|
...t.$attrs,
|
|
3118
|
-
...
|
|
3118
|
+
...U(Be)(
|
|
3119
3119
|
e.value.table,
|
|
3120
3120
|
(B) => !["dblclickType", "page"].includes(B)
|
|
3121
3121
|
)
|
|
@@ -3134,13 +3134,13 @@ const Ql = {
|
|
|
3134
3134
|
]),
|
|
3135
3135
|
default: b(() => [
|
|
3136
3136
|
$(t.$slots, "default", {}, () => [
|
|
3137
|
-
(u(!0), q(X, null,
|
|
3137
|
+
(u(!0), q(X, null, z(ge.value, (B, ne) => (u(), V(Te, F({
|
|
3138
3138
|
prop: ne,
|
|
3139
3139
|
key: ne,
|
|
3140
3140
|
ref_for: !0
|
|
3141
3141
|
}, {
|
|
3142
3142
|
...e.value.tableColumns,
|
|
3143
|
-
...
|
|
3143
|
+
...U(Be)(B, (_) => L.includes(_))
|
|
3144
3144
|
}), ve({
|
|
3145
3145
|
header: b(({ column: _, $index: j }) => [
|
|
3146
3146
|
ne == "control" ? $(t.$slots, `${ne}-header`, {
|
|
@@ -3148,7 +3148,7 @@ const Ql = {
|
|
|
3148
3148
|
column: _,
|
|
3149
3149
|
index: j
|
|
3150
3150
|
}, () => [
|
|
3151
|
-
H("span", null,
|
|
3151
|
+
H("span", null, ke(_.label), 1)
|
|
3152
3152
|
], !0) : $(t.$slots, `${ne}-header`, {
|
|
3153
3153
|
key: 1,
|
|
3154
3154
|
column: _,
|
|
@@ -3177,7 +3177,7 @@ const Ql = {
|
|
|
3177
3177
|
return [
|
|
3178
3178
|
H("div", {
|
|
3179
3179
|
class: Ot(["control", (Pe = e.value.control) == null ? void 0 : Pe.class]),
|
|
3180
|
-
style:
|
|
3180
|
+
style: qe((Ne = e.value.control) == null ? void 0 : Ne.style)
|
|
3181
3181
|
}, [
|
|
3182
3182
|
$(t.$slots, "control", {}, () => [
|
|
3183
3183
|
$(t.$slots, "control-left", {
|
|
@@ -3185,10 +3185,10 @@ const Ql = {
|
|
|
3185
3185
|
column: j,
|
|
3186
3186
|
index: ee
|
|
3187
3187
|
}, void 0, !0),
|
|
3188
|
-
(u(!0), q(X, null,
|
|
3188
|
+
(u(!0), q(X, null, z(K(["view", "edit", "delete", "save"], _, j, ee, e.value), (ze, d) => {
|
|
3189
3189
|
var W;
|
|
3190
3190
|
return u(), q(X, null, [
|
|
3191
|
-
d == "default" ? (u(!0), q(X, { key: 0 },
|
|
3191
|
+
d == "default" ? (u(!0), q(X, { key: 0 }, z(ze, (C) => (u(), q(X, null, [
|
|
3192
3192
|
$(t.$slots, C.name + "-left", {
|
|
3193
3193
|
row: _,
|
|
3194
3194
|
column: j,
|
|
@@ -3200,7 +3200,7 @@ const Ql = {
|
|
|
3200
3200
|
column: j,
|
|
3201
3201
|
index: ee
|
|
3202
3202
|
}, () => [
|
|
3203
|
-
C.label ? (u(), V(
|
|
3203
|
+
C.label ? (u(), V(U(Oe), F({
|
|
3204
3204
|
key: 0,
|
|
3205
3205
|
title: C.label,
|
|
3206
3206
|
ref_for: !0
|
|
@@ -3208,10 +3208,10 @@ const Ql = {
|
|
|
3208
3208
|
onClick: (Me) => C.func(_, j, ee, e.value)
|
|
3209
3209
|
}), {
|
|
3210
3210
|
default: b(() => [
|
|
3211
|
-
Ae(
|
|
3211
|
+
Ae(ke(C.label), 1)
|
|
3212
3212
|
]),
|
|
3213
3213
|
_: 2
|
|
3214
|
-
}, 1040, ["title", "onClick"])) : (u(), V(
|
|
3214
|
+
}, 1040, ["title", "onClick"])) : (u(), V(U(Oe), F({
|
|
3215
3215
|
key: 1,
|
|
3216
3216
|
title: C.label,
|
|
3217
3217
|
ref_for: !0
|
|
@@ -3231,8 +3231,8 @@ const Ql = {
|
|
|
3231
3231
|
dropdown: b(() => [
|
|
3232
3232
|
G(ce, null, {
|
|
3233
3233
|
default: b(() => [
|
|
3234
|
-
(u(!0), q(X, null,
|
|
3235
|
-
var Me,
|
|
3234
|
+
(u(!0), q(X, null, z(ze, (C) => {
|
|
3235
|
+
var Me, Re, et;
|
|
3236
3236
|
return u(), q(X, null, [
|
|
3237
3237
|
t.$slots[C.name + "-left"] ? $(t.$slots, C.name + "-left", {
|
|
3238
3238
|
key: 0,
|
|
@@ -3240,12 +3240,12 @@ const Ql = {
|
|
|
3240
3240
|
column: j,
|
|
3241
3241
|
index: ee
|
|
3242
3242
|
}, void 0, !0) : ye("", !0),
|
|
3243
|
-
C.attr.auth() ? (u(), V(
|
|
3243
|
+
C.attr.auth() ? (u(), V(R, F({
|
|
3244
3244
|
key: 1,
|
|
3245
3245
|
ref_for: !0
|
|
3246
3246
|
}, {
|
|
3247
3247
|
command: (Me = C == null ? void 0 : C.attr) == null ? void 0 : Me.command,
|
|
3248
|
-
divided: (
|
|
3248
|
+
divided: (Re = C == null ? void 0 : C.attr) == null ? void 0 : Re.divided,
|
|
3249
3249
|
disabled: (et = C == null ? void 0 : C.attr) == null ? void 0 : et.disabled
|
|
3250
3250
|
}), {
|
|
3251
3251
|
default: b(() => [
|
|
@@ -3254,7 +3254,7 @@ const Ql = {
|
|
|
3254
3254
|
column: j,
|
|
3255
3255
|
index: ee
|
|
3256
3256
|
}, () => [
|
|
3257
|
-
C.label ? (u(), V(
|
|
3257
|
+
C.label ? (u(), V(U(Oe), F({
|
|
3258
3258
|
key: 0,
|
|
3259
3259
|
title: C.label,
|
|
3260
3260
|
ref_for: !0
|
|
@@ -3262,10 +3262,10 @@ const Ql = {
|
|
|
3262
3262
|
onClick: (bt) => C.func(_, j, ee, e.value)
|
|
3263
3263
|
}), {
|
|
3264
3264
|
default: b(() => [
|
|
3265
|
-
Ae(
|
|
3265
|
+
Ae(ke(C.label), 1)
|
|
3266
3266
|
]),
|
|
3267
3267
|
_: 2
|
|
3268
|
-
}, 1040, ["title", "onClick"])) : (u(), V(
|
|
3268
|
+
}, 1040, ["title", "onClick"])) : (u(), V(U(Oe), F({
|
|
3269
3269
|
key: 1,
|
|
3270
3270
|
title: C.label,
|
|
3271
3271
|
ref_for: !0
|
|
@@ -3291,13 +3291,13 @@ const Ql = {
|
|
|
3291
3291
|
default: b(() => {
|
|
3292
3292
|
var C;
|
|
3293
3293
|
return [
|
|
3294
|
-
Ae(
|
|
3294
|
+
Ae(ke((C = he(_, j, ee, e.value)) == null ? void 0 : C.label) + " ", 1)
|
|
3295
3295
|
];
|
|
3296
3296
|
}),
|
|
3297
3297
|
_: 2
|
|
3298
3298
|
}, 1040)) : (u(), V(I, { key: 2 }, {
|
|
3299
3299
|
default: b(() => [
|
|
3300
|
-
(u(!0), q(X, null,
|
|
3300
|
+
(u(!0), q(X, null, z(ze, (C) => (u(), q(X, null, [
|
|
3301
3301
|
$(t.$slots, C.name + "-left", {
|
|
3302
3302
|
row: _,
|
|
3303
3303
|
column: j,
|
|
@@ -3309,7 +3309,7 @@ const Ql = {
|
|
|
3309
3309
|
column: j,
|
|
3310
3310
|
index: ee
|
|
3311
3311
|
}, () => [
|
|
3312
|
-
C.label ? (u(), V(
|
|
3312
|
+
C.label ? (u(), V(U(Oe), F({
|
|
3313
3313
|
key: 0,
|
|
3314
3314
|
title: C.label,
|
|
3315
3315
|
ref_for: !0
|
|
@@ -3317,10 +3317,10 @@ const Ql = {
|
|
|
3317
3317
|
onClick: (Me) => C.func(_, j, ee, e.value)
|
|
3318
3318
|
}), {
|
|
3319
3319
|
default: b(() => [
|
|
3320
|
-
Ae(
|
|
3320
|
+
Ae(ke(C.label), 1)
|
|
3321
3321
|
]),
|
|
3322
3322
|
_: 2
|
|
3323
|
-
}, 1040, ["title", "onClick"])) : (u(), V(
|
|
3323
|
+
}, 1040, ["title", "onClick"])) : (u(), V(U(Oe), F({
|
|
3324
3324
|
key: 1,
|
|
3325
3325
|
title: C.label,
|
|
3326
3326
|
ref_for: !0
|
|
@@ -3372,10 +3372,10 @@ const Ql = {
|
|
|
3372
3372
|
t: "t",
|
|
3373
3373
|
formInfo: _
|
|
3374
3374
|
}, ve({ _: 2 }, [
|
|
3375
|
-
|
|
3376
|
-
name:
|
|
3375
|
+
z(t.$slots, (Ne, ze) => ({
|
|
3376
|
+
name: ze,
|
|
3377
3377
|
fn: b((d) => [
|
|
3378
|
-
$(t.$slots,
|
|
3378
|
+
$(t.$slots, ze, {
|
|
3379
3379
|
data: d,
|
|
3380
3380
|
item: B,
|
|
3381
3381
|
model: e.value
|
|
@@ -3391,12 +3391,12 @@ const Ql = {
|
|
|
3391
3391
|
index: ee
|
|
3392
3392
|
}, () => [
|
|
3393
3393
|
H("div", {
|
|
3394
|
-
style:
|
|
3394
|
+
style: qe([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, B == null ? void 0 : B.style]),
|
|
3395
3395
|
innerHTML: ae(
|
|
3396
3396
|
B,
|
|
3397
3397
|
j.formatter(_, j, _[ne], ee)
|
|
3398
3398
|
)
|
|
3399
|
-
}, null, 12,
|
|
3399
|
+
}, null, 12, ma)
|
|
3400
3400
|
], !0)
|
|
3401
3401
|
]),
|
|
3402
3402
|
key: "2"
|
|
@@ -3424,7 +3424,7 @@ const Ql = {
|
|
|
3424
3424
|
], 64);
|
|
3425
3425
|
};
|
|
3426
3426
|
}
|
|
3427
|
-
}),
|
|
3427
|
+
}), ha = /* @__PURE__ */ Ze(va, [["__scopeId", "data-v-f6456089"]]), ya = { class: "g-tree-table" }, ga = { class: "g-tree-container" }, ba = { class: "g-tree-table-container" }, $a = /* @__PURE__ */ Object.assign({
|
|
3428
3428
|
name: "g-tree-table",
|
|
3429
3429
|
inheritAttrs: !1
|
|
3430
3430
|
}, {
|
|
@@ -3438,24 +3438,24 @@ const Ql = {
|
|
|
3438
3438
|
var se, T, Q, fe;
|
|
3439
3439
|
const r = s, l = Qe(f, "modelValue"), e = Vt(), i = re(
|
|
3440
3440
|
typeof ((se = e == null ? void 0 : e.tree) == null ? void 0 : se.width) == "number" ? `${e.tree.width}px` : ((T = e == null ? void 0 : e.tree) == null ? void 0 : T.width) || "180px"
|
|
3441
|
-
), M = re(((Q = e == null ? void 0 : e.tree) == null ? void 0 : Q.search) === void 0 ? !0 : (fe = e == null ? void 0 : e.tree) == null ? void 0 : fe.search),
|
|
3441
|
+
), M = re(((Q = e == null ? void 0 : e.tree) == null ? void 0 : Q.search) === void 0 ? !0 : (fe = e == null ? void 0 : e.tree) == null ? void 0 : fe.search), Y = re({}), S = re(""), E = re(null), k = (N, pe) => {
|
|
3442
3442
|
var De, ie;
|
|
3443
3443
|
if (!N) return !0;
|
|
3444
3444
|
const de = ((ie = (De = e.tree) == null ? void 0 : De.props) == null ? void 0 : ie.label) || "label";
|
|
3445
3445
|
return pe[de].includes(N);
|
|
3446
|
-
},
|
|
3447
|
-
r("load",
|
|
3446
|
+
}, L = (N, pe) => {
|
|
3447
|
+
r("load", Y.value, N, pe);
|
|
3448
3448
|
}, te = (N) => {
|
|
3449
|
-
|
|
3449
|
+
Y.value = N, l.value.table.load();
|
|
3450
3450
|
};
|
|
3451
3451
|
return ll(S, (N) => {
|
|
3452
3452
|
E.value.filter(N);
|
|
3453
3453
|
}), (N, pe) => {
|
|
3454
3454
|
const de = A("el-input"), De = A("el-tree"), ie = A("g-table");
|
|
3455
|
-
return u(), q("div",
|
|
3455
|
+
return u(), q("div", ya, [
|
|
3456
3456
|
H("div", {
|
|
3457
3457
|
class: "g-tree-left",
|
|
3458
|
-
style:
|
|
3458
|
+
style: qe({ width: i.value })
|
|
3459
3459
|
}, [
|
|
3460
3460
|
M.value ? (u(), V(de, {
|
|
3461
3461
|
key: 0,
|
|
@@ -3465,7 +3465,7 @@ const Ql = {
|
|
|
3465
3465
|
placeholder: "输入节点查询",
|
|
3466
3466
|
clearable: ""
|
|
3467
3467
|
}, null, 8, ["modelValue"])) : ye("", !0),
|
|
3468
|
-
H("div",
|
|
3468
|
+
H("div", ga, [
|
|
3469
3469
|
G(De, F({
|
|
3470
3470
|
style: { width: i.value },
|
|
3471
3471
|
"filter-node-method": k,
|
|
@@ -3479,12 +3479,12 @@ const Ql = {
|
|
|
3479
3479
|
node: ue,
|
|
3480
3480
|
data: he
|
|
3481
3481
|
}, () => [
|
|
3482
|
-
H("span", null,
|
|
3482
|
+
H("span", null, ke(ue.label), 1)
|
|
3483
3483
|
], !0)
|
|
3484
3484
|
]),
|
|
3485
3485
|
_: 2
|
|
3486
3486
|
}, [
|
|
3487
|
-
|
|
3487
|
+
z(N.$slots, (ue, he, Ve) => ({
|
|
3488
3488
|
name: he,
|
|
3489
3489
|
fn: b((le) => [
|
|
3490
3490
|
$(N.$slots, he, { data: le }, void 0, !0)
|
|
@@ -3493,12 +3493,12 @@ const Ql = {
|
|
|
3493
3493
|
]), 1040, ["style"])
|
|
3494
3494
|
])
|
|
3495
3495
|
], 4),
|
|
3496
|
-
H("div",
|
|
3496
|
+
H("div", ba, [
|
|
3497
3497
|
G(ie, F({
|
|
3498
3498
|
modelValue: l.value,
|
|
3499
3499
|
"onUpdate:modelValue": pe[1] || (pe[1] = (ue) => l.value = ue)
|
|
3500
|
-
}, N.$attrs, { onLoad:
|
|
3501
|
-
|
|
3500
|
+
}, N.$attrs, { onLoad: L }), ve({ _: 2 }, [
|
|
3501
|
+
z(N.$slots, (ue, he, Ve) => ({
|
|
3502
3502
|
name: he,
|
|
3503
3503
|
fn: b((le) => [
|
|
3504
3504
|
$(N.$slots, he, { data: le }, void 0, !0)
|
|
@@ -3509,14 +3509,14 @@ const Ql = {
|
|
|
3509
3509
|
]);
|
|
3510
3510
|
};
|
|
3511
3511
|
}
|
|
3512
|
-
}),
|
|
3512
|
+
}), wa = /* @__PURE__ */ Ze($a, [["__scopeId", "data-v-c888e4fc"]]), Ea = {
|
|
3513
3513
|
key: 0,
|
|
3514
3514
|
class: "op-group"
|
|
3515
|
-
},
|
|
3515
|
+
}, _a = {
|
|
3516
3516
|
key: 1,
|
|
3517
3517
|
class: "op-items",
|
|
3518
3518
|
style: { width: "100%", height: "100%" }
|
|
3519
|
-
},
|
|
3519
|
+
}, ka = ["title"], xt = "100px", Ca = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
3520
3520
|
__name: "g-select-option",
|
|
3521
3521
|
props: {
|
|
3522
3522
|
columns: {
|
|
@@ -3538,42 +3538,42 @@ const Ql = {
|
|
|
3538
3538
|
},
|
|
3539
3539
|
setup(f) {
|
|
3540
3540
|
const s = f;
|
|
3541
|
-
return (r, l) => s.title ? (u(), q("div",
|
|
3542
|
-
(u(!0), q(X, null,
|
|
3543
|
-
style:
|
|
3541
|
+
return (r, l) => s.title ? (u(), q("div", Ea, [
|
|
3542
|
+
(u(!0), q(X, null, z(s.columns, (e) => (u(), q("span", {
|
|
3543
|
+
style: qe({ width: (e == null ? void 0 : e.width) || xt, ...e == null ? void 0 : e.titleStyle, textAlign: (e == null ? void 0 : e.align) || "center" }),
|
|
3544
3544
|
key: e.key
|
|
3545
3545
|
}, [
|
|
3546
3546
|
$(r.$slots, `${f.t}-title-${e.key}`, { col: e }, () => [
|
|
3547
|
-
Ae(
|
|
3547
|
+
Ae(ke(e.label), 1)
|
|
3548
3548
|
], !0)
|
|
3549
3549
|
], 4))), 128))
|
|
3550
|
-
])) : (u(), q("div",
|
|
3551
|
-
(u(!0), q(X, null,
|
|
3552
|
-
style:
|
|
3550
|
+
])) : (u(), q("div", _a, [
|
|
3551
|
+
(u(!0), q(X, null, z(s.columns, (e) => (u(), q("span", {
|
|
3552
|
+
style: qe({ width: (e == null ? void 0 : e.width) || xt, textAlign: (e == null ? void 0 : e.align) || "center", ...e == null ? void 0 : e.style }),
|
|
3553
3553
|
key: e.key,
|
|
3554
3554
|
title: f.data[e.key]
|
|
3555
3555
|
}, [
|
|
3556
3556
|
$(r.$slots, `${f.t}-option-${e.key}`, { col: e }, () => [
|
|
3557
|
-
Ae(
|
|
3557
|
+
Ae(ke(f.data[e.key] ?? "-"), 1)
|
|
3558
3558
|
], !0)
|
|
3559
|
-
], 12,
|
|
3559
|
+
], 12, ka))), 128))
|
|
3560
3560
|
]));
|
|
3561
3561
|
}
|
|
3562
|
-
}),
|
|
3562
|
+
}), Da = /* @__PURE__ */ Ze(Ca, [["__scopeId", "data-v-c0ac6b77"]]), Ma = Object.freeze({}), Rt = [ha, _t, wa, Da];
|
|
3563
3563
|
let kt = {};
|
|
3564
|
-
const
|
|
3564
|
+
const Ua = {
|
|
3565
3565
|
install: (f, s = {}) => {
|
|
3566
|
-
kt = Object.freeze({ ...
|
|
3566
|
+
kt = Object.freeze({ ...Ma, ...s }), Rt.forEach((r) => {
|
|
3567
3567
|
f.component(r.name, r);
|
|
3568
3568
|
}), f.provide("options", kt), f.config.globalProperties.$openModal = Ct;
|
|
3569
3569
|
}
|
|
3570
|
-
},
|
|
3570
|
+
}, Va = (f) => ({ dialog: Pt, drawer: Nt })[f] || null, Ct = (f = {}, s = "dialog") => {
|
|
3571
3571
|
if (typeof document > "u") return () => {
|
|
3572
3572
|
};
|
|
3573
3573
|
const r = document.createElement("div");
|
|
3574
3574
|
let l = () => {
|
|
3575
3575
|
};
|
|
3576
|
-
const e =
|
|
3576
|
+
const e = Va(s);
|
|
3577
3577
|
if (!e) return () => {
|
|
3578
3578
|
};
|
|
3579
3579
|
const i = re(!0), M = al({
|
|
@@ -3583,7 +3583,7 @@ const La = {
|
|
|
3583
3583
|
M.unmount(), r.remove();
|
|
3584
3584
|
}, 300);
|
|
3585
3585
|
}, () => {
|
|
3586
|
-
var
|
|
3586
|
+
var Y, S, E;
|
|
3587
3587
|
return _e(e, {
|
|
3588
3588
|
modelValue: i.value,
|
|
3589
3589
|
"onUpdate:modelValue": (k) => i.value = k,
|
|
@@ -3595,7 +3595,7 @@ const La = {
|
|
|
3595
3595
|
"close-on-click-modal": !1,
|
|
3596
3596
|
...f
|
|
3597
3597
|
}, {
|
|
3598
|
-
default: (
|
|
3598
|
+
default: (Y = f.slots) == null ? void 0 : Y.default,
|
|
3599
3599
|
header: (S = f.slots) == null ? void 0 : S.header,
|
|
3600
3600
|
footer: (E = f.slots) == null ? void 0 : E.footer
|
|
3601
3601
|
});
|
|
@@ -3605,8 +3605,8 @@ const La = {
|
|
|
3605
3605
|
ht();
|
|
3606
3606
|
}
|
|
3607
3607
|
});
|
|
3608
|
-
return
|
|
3609
|
-
M.component(
|
|
3608
|
+
return Rt.forEach((Y) => {
|
|
3609
|
+
M.component(Y.name, Y);
|
|
3610
3610
|
}), M.provide("options", kt), M.use(Ht, { locale: hl }), document.body.appendChild(r), M.mount(r), l;
|
|
3611
3611
|
};
|
|
3612
3612
|
function jt(f, s = window.innerWidth) {
|
|
@@ -3625,13 +3625,13 @@ function jt(f, s = window.innerWidth) {
|
|
|
3625
3625
|
return s * parseFloat(f) / 100;
|
|
3626
3626
|
}
|
|
3627
3627
|
if (f.startsWith("calc(") && f.endsWith(")")) {
|
|
3628
|
-
let i = function(
|
|
3629
|
-
if (/[0-9+\-*/().\s]+$/.test(
|
|
3630
|
-
return new Function("return " +
|
|
3628
|
+
let i = function(Y) {
|
|
3629
|
+
if (/[0-9+\-*/().\s]+$/.test(Y))
|
|
3630
|
+
return new Function("return " + Y)();
|
|
3631
3631
|
throw new Error("Invalid calc expression");
|
|
3632
3632
|
};
|
|
3633
3633
|
const e = f.slice(5, -1).trim();
|
|
3634
|
-
return i(e.replace(/([0-9.]+)([a-z%]+)/g, (
|
|
3634
|
+
return i(e.replace(/([0-9.]+)([a-z%]+)/g, (Y, S, E) => jt(S + E, s)));
|
|
3635
3635
|
}
|
|
3636
3636
|
throw new Error("Unsupported unit in value: " + f);
|
|
3637
3637
|
}
|
|
@@ -3647,12 +3647,12 @@ function Be(f, s = (r, l) => s(r, l)) {
|
|
|
3647
3647
|
f.hasOwnProperty(l) && s(l, f[l]) && (r[l] = f[l]);
|
|
3648
3648
|
return r;
|
|
3649
3649
|
}
|
|
3650
|
-
function
|
|
3650
|
+
function Sa(f, s, r = "value", l = "label", e = "children") {
|
|
3651
3651
|
for (const i of f) {
|
|
3652
3652
|
if (i[r] === s)
|
|
3653
3653
|
return i[l];
|
|
3654
3654
|
if (i[e] && i[e].length > 0) {
|
|
3655
|
-
const M =
|
|
3655
|
+
const M = Sa(i[e], s, r, l, e);
|
|
3656
3656
|
if (M)
|
|
3657
3657
|
return M;
|
|
3658
3658
|
}
|
|
@@ -3671,20 +3671,20 @@ function Dt(f) {
|
|
|
3671
3671
|
i += (r[Math.floor(f * 10 * Math.pow(10, M)) % 10] + s[M]).replace(/零./, "");
|
|
3672
3672
|
i = i || "整", f = Math.floor(f);
|
|
3673
3673
|
for (let M = 0; M < l[0].length && f > 0; M++) {
|
|
3674
|
-
let
|
|
3674
|
+
let Y = "";
|
|
3675
3675
|
for (let S = 0; S < l[1].length && f > 0; S++)
|
|
3676
|
-
|
|
3677
|
-
i =
|
|
3676
|
+
Y = r[f % 10] + l[1][S] + Y, f = Math.floor(f / 10);
|
|
3677
|
+
i = Y.replace(/(零.)*零$/, "").replace(/^$/, "零") + l[0][M] + i;
|
|
3678
3678
|
}
|
|
3679
3679
|
return e + i.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
3680
3680
|
}
|
|
3681
|
-
function
|
|
3681
|
+
function Ta(f) {
|
|
3682
3682
|
if (typeof f != "number" || isNaN(f) || !isFinite(f))
|
|
3683
3683
|
return "0.00";
|
|
3684
3684
|
const s = f.toFixed(2), [r, l] = s.split(".");
|
|
3685
3685
|
return `${r.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${l}`;
|
|
3686
3686
|
}
|
|
3687
|
-
const
|
|
3687
|
+
const Ce = {
|
|
3688
3688
|
RADIO: "radio",
|
|
3689
3689
|
RADIOBUTTON: "radio-button",
|
|
3690
3690
|
CHECKBOX: "checkbox",
|
|
@@ -3717,10 +3717,10 @@ const ke = {
|
|
|
3717
3717
|
const f = document.querySelector(".el-dialog");
|
|
3718
3718
|
if (!f || f.querySelector(".dialog-resize-handle"))
|
|
3719
3719
|
return;
|
|
3720
|
-
const s =
|
|
3721
|
-
f.appendChild(s),
|
|
3720
|
+
const s = xa();
|
|
3721
|
+
f.appendChild(s), Fa(f), qa(f, s);
|
|
3722
3722
|
});
|
|
3723
|
-
},
|
|
3723
|
+
}, xa = () => {
|
|
3724
3724
|
const f = document.createElement("div");
|
|
3725
3725
|
return Object.assign(f.style, {
|
|
3726
3726
|
position: "absolute",
|
|
@@ -3732,7 +3732,7 @@ const ke = {
|
|
|
3732
3732
|
cursor: "nwse-resize",
|
|
3733
3733
|
zIndex: "999999999999"
|
|
3734
3734
|
}), f.className = "dialog-resize-handle", f;
|
|
3735
|
-
},
|
|
3735
|
+
}, Fa = (f) => {
|
|
3736
3736
|
Object.assign(f.style, {
|
|
3737
3737
|
transition: "none",
|
|
3738
3738
|
minWidth: "300px",
|
|
@@ -3740,27 +3740,27 @@ const ke = {
|
|
|
3740
3740
|
resize: "none"
|
|
3741
3741
|
// 防止与原生resize冲突
|
|
3742
3742
|
});
|
|
3743
|
-
},
|
|
3743
|
+
}, qa = (f, s) => {
|
|
3744
3744
|
let r = !1, l, e, i, M;
|
|
3745
|
-
const
|
|
3745
|
+
const Y = (k) => {
|
|
3746
3746
|
k.preventDefault(), r = !0, l = k.clientX, e = k.clientY, i = parseInt(document.defaultView.getComputedStyle(f).width), M = parseInt(document.defaultView.getComputedStyle(f).height), document.addEventListener("mousemove", S), document.addEventListener("mouseup", E);
|
|
3747
3747
|
}, S = (k) => {
|
|
3748
3748
|
if (!r) return;
|
|
3749
|
-
const
|
|
3750
|
-
f.style.width = `${
|
|
3749
|
+
const L = Math.max(300, i + k.clientX - l), te = Math.max(200, M + k.clientY - e);
|
|
3750
|
+
f.style.width = `${L}px`, f.style.height = `${te}px`;
|
|
3751
3751
|
}, E = () => {
|
|
3752
3752
|
r = !1, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", E);
|
|
3753
3753
|
};
|
|
3754
|
-
s.addEventListener("mousedown",
|
|
3754
|
+
s.addEventListener("mousedown", Y);
|
|
3755
3755
|
};
|
|
3756
3756
|
export {
|
|
3757
|
-
|
|
3757
|
+
Ce as CT,
|
|
3758
3758
|
ht as bindResize,
|
|
3759
3759
|
jt as convertToPx,
|
|
3760
|
-
|
|
3760
|
+
Ua as default,
|
|
3761
3761
|
Be as filterObject,
|
|
3762
|
-
|
|
3763
|
-
|
|
3762
|
+
Sa as findTreeLabelByValue,
|
|
3763
|
+
Ta as formatAmount,
|
|
3764
3764
|
Fe as mergeObjects,
|
|
3765
3765
|
Dt as moneyToChinese,
|
|
3766
3766
|
Ct as openModal
|