vue-2024-ui 0.2.95 → 0.2.96
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 +407 -407
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ref as ne, useModel as ot, nextTick as rt, onMounted as
|
|
3
|
-
import { Plus as
|
|
4
|
-
import
|
|
5
|
-
import { Dexie as
|
|
6
|
-
var
|
|
1
|
+
import cl, { dayjs as Al, ElForm as Dt, ElButtonGroup as Ot, ElButton as Re, ElPopover as jt, ElIcon as Ft, ElMessage as ft, ElMessageBox as fl, ElDrawer as Yl, ElDialog as zl } from "element-plus";
|
|
2
|
+
import { ref as ne, useModel as ot, nextTick as rt, onMounted as Ct, computed as Ne, resolveComponent as j, openBlock as m, createElementBlock as U, Fragment as oe, createElementVNode as J, createBlock as V, createCommentVNode as _e, normalizeStyle as Ue, unref as L, mergeProps as Y, withCtx as k, renderSlot as x, renderList as N, createTextVNode as He, toDisplayString as Ee, createSlots as ke, createVNode as de, normalizeProps as qt, resolveDynamicComponent as Ge, guardReactiveProps as vl, mergeModels as ut, useSlots as pl, inject as Ut, withModifiers as yt, Transition as Ul, withDirectives as Ll, vShow as Hl, h as Me, useAttrs as Lt, onUnmounted as jl, onBeforeUnmount as Fl, normalizeClass as ml, watchEffect as Rl, onBeforeMount as Bl, watch as hl, createApp as yl } from "vue";
|
|
3
|
+
import { Plus as Pl, ZoomIn as Nl, Delete as gl, Search as Wl, Refresh as bl, More as Gl, CircleClose as Xl, CircleCheckFilled as Ql, CircleCheck as Rt, Minus as Zl, Close as Jl, Switch as $l, FullScreen as Kl, InfoFilled as wl, Download as kl, DocumentCopy as ea, Setting as ta, CirclePlus as la, Edit as aa, View as ra } from "@element-plus/icons-vue";
|
|
4
|
+
import _l from "sortablejs";
|
|
5
|
+
import { Dexie as na } from "dexie";
|
|
6
|
+
var Cl = {
|
|
7
7
|
name: "zh-cn",
|
|
8
8
|
el: {
|
|
9
9
|
breadcrumb: { label: "面包屑" },
|
|
@@ -178,15 +178,15 @@ var sl = {
|
|
|
178
178
|
indicator: "幻灯片切换至索引 {index}"
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
},
|
|
182
|
-
function
|
|
181
|
+
}, oa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
182
|
+
function xl(r) {
|
|
183
183
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
184
184
|
}
|
|
185
|
-
var
|
|
185
|
+
var Ml = { exports: {} };
|
|
186
186
|
(function(r, s) {
|
|
187
187
|
(function(e, l) {
|
|
188
188
|
r.exports = l();
|
|
189
|
-
})(
|
|
189
|
+
})(oa, function() {
|
|
190
190
|
var e = 1e3, l = 6e4, n = 36e5, d = "millisecond", t = "second", i = "minute", T = "hour", f = "day", p = "week", c = "month", o = "quarter", h = "year", z = "date", H = "Invalid Date", D = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, $ = /\[([^\]]+)]|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, X = { 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(W) {
|
|
191
191
|
var q = ["th", "st", "nd", "rd"], g = W % 100;
|
|
192
192
|
return "[" + W + (q[(g - 20) % 10] || q[g] || q[0]) + "]";
|
|
@@ -284,8 +284,8 @@ var dl = { exports: {} };
|
|
|
284
284
|
case c:
|
|
285
285
|
return v ? M(1, K) : M(0, K + 1);
|
|
286
286
|
case p:
|
|
287
|
-
var ae = this.$locale().weekStart || 0,
|
|
288
|
-
return M(v ? we -
|
|
287
|
+
var ae = this.$locale().weekStart || 0, ve = (Q < ae ? Q + 7 : Q) - ae;
|
|
288
|
+
return M(v ? we - ve : we + (6 - ve), K);
|
|
289
289
|
case f:
|
|
290
290
|
case z:
|
|
291
291
|
return I(Ae + "Hours", 0);
|
|
@@ -331,7 +331,7 @@ var dl = { exports: {} };
|
|
|
331
331
|
if (!this.isValid()) return w.invalidDate || H;
|
|
332
332
|
var v = g || "YYYY-MM-DDTHH:mm:ssZ", E = B.z(this), M = this.$H, I = this.$m, Q = this.$M, K = w.weekdays, we = w.months, Ae = w.meridiem, ae = function(ye, ue, Be, A) {
|
|
333
333
|
return ye && (ye[ue] || ye(C, v)) || Be[ue].slice(0, A);
|
|
334
|
-
},
|
|
334
|
+
}, ve = function(ye) {
|
|
335
335
|
return B.s(M % 12 || 12, ye, "0");
|
|
336
336
|
}, Ye = Ae || function(ye, ue, Be) {
|
|
337
337
|
var A = ye < 12 ? "AM" : "PM";
|
|
@@ -369,9 +369,9 @@ var dl = { exports: {} };
|
|
|
369
369
|
case "HH":
|
|
370
370
|
return B.s(M, 2, "0");
|
|
371
371
|
case "h":
|
|
372
|
-
return
|
|
372
|
+
return ve(1);
|
|
373
373
|
case "hh":
|
|
374
|
-
return
|
|
374
|
+
return ve(2);
|
|
375
375
|
case "a":
|
|
376
376
|
return Ye(M, I, !0);
|
|
377
377
|
case "A":
|
|
@@ -457,14 +457,14 @@ var dl = { exports: {} };
|
|
|
457
457
|
return be(1e3 * W);
|
|
458
458
|
}, be.en = ie[se], be.Ls = ie, be.p = {}, be;
|
|
459
459
|
});
|
|
460
|
-
})(
|
|
461
|
-
var
|
|
462
|
-
const
|
|
460
|
+
})(Ml);
|
|
461
|
+
var ua = Ml.exports;
|
|
462
|
+
const At = /* @__PURE__ */ xl(ua), nt = (r, s) => {
|
|
463
463
|
const e = r.__vccOpts || r;
|
|
464
464
|
for (const [l, n] of s)
|
|
465
465
|
e[l] = n;
|
|
466
466
|
return e;
|
|
467
|
-
},
|
|
467
|
+
}, sa = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, ia = ["innerHTML"], da = ["innerHTML"], ca = ["title"], fa = ["innerHTML"], va = ["innerHTML"], pa = ["innerHTML"], ma = ["innerHTML"], ha = ["innerHTML"], ya = ["innerHTML"], ga = ["innerHTML"], ba = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
468
468
|
__name: "g-ctrl",
|
|
469
469
|
props: /* @__PURE__ */ ut(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
470
470
|
modelValue: { required: !0 },
|
|
@@ -472,16 +472,16 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
472
472
|
}),
|
|
473
473
|
emits: ["update:modelValue"],
|
|
474
474
|
setup(r) {
|
|
475
|
-
var q, g, C, w, v, E, M, I, Q, K, we, Ae, ae,
|
|
475
|
+
var q, g, C, w, v, E, M, I, Q, K, we, Ae, ae, ve, Ye, ye, ue, Be;
|
|
476
476
|
const s = r, e = ne(s.item || {}), l = ot(r, "modelValue"), n = ne(s.ctrlKey), d = ne(s.ctrlType), t = ne(s.model), i = ne([]), T = ne([]), f = ne(!1), p = ne(!1), c = ne(0), o = ne((g = (q = t == null ? void 0 : t.value) == null ? void 0 : q.form) != null && g["default-placeholder"] ? (w = (C = t == null ? void 0 : t.value) == null ? void 0 : C[n == null ? void 0 : n.value]) == null ? void 0 : w.label : "");
|
|
477
477
|
!((v = d.value) != null && v.startsWith("text")) && !((E = d.value) != null && E.startsWith("link")) && !((M = d.value) != null && M.startsWith("tag")) && !((I = d.value) != null && I.startsWith("div")) && !((Q = d.value) != null && Q.startsWith("span")) && !((K = d.value) != null && K.startsWith("avatar")) && ((we = e.value) != null && we.style || (e.value.style = { width: ((ae = (Ae = e.value) == null ? void 0 : Ae.style) == null ? void 0 : ae.width) || "100%" }));
|
|
478
478
|
const h = ne({ display: "flex", flex: 1 });
|
|
479
479
|
let z = s.t === "t" ? "center" : "flex-start";
|
|
480
|
-
((
|
|
480
|
+
((ve = e.value) == null ? void 0 : ve.align) == "right" ? z = "flex-end" : ((Ye = e.value) == null ? void 0 : Ye.align) == "left" ? z = "flex-start" : ((ye = e.value) == null ? void 0 : ye.align) == "center" && (z = "center");
|
|
481
481
|
const H = ((ue = e.value) == null ? void 0 : ue.style) || {};
|
|
482
482
|
h.value = { ...h.value, justifyContent: z, ...H };
|
|
483
483
|
const D = () => {
|
|
484
|
-
const A =
|
|
484
|
+
const A = pl(), S = Object.keys(A), P = `${s.t}-${n.value}-`;
|
|
485
485
|
return S.filter((je) => je.startsWith(P)).map((je) => je.replace(P, ""));
|
|
486
486
|
}, $ = ne({
|
|
487
487
|
multiple: !1,
|
|
@@ -491,7 +491,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
491
491
|
});
|
|
492
492
|
Object.hasOwn(e.value, "showDel") && ($.value.showDel = e.value.showDel);
|
|
493
493
|
const X = ne(e.value.value);
|
|
494
|
-
(Be = e == null ? void 0 : e.value) != null && Be.format && (X.value =
|
|
494
|
+
(Be = e == null ? void 0 : e.value) != null && Be.format && (X.value = Al(l.value).format(e.value.format || "YYYY-MM-DD"));
|
|
495
495
|
const ee = (A) => [
|
|
496
496
|
"year",
|
|
497
497
|
"years",
|
|
@@ -591,7 +591,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
591
591
|
}
|
|
592
592
|
l.value = P;
|
|
593
593
|
};
|
|
594
|
-
|
|
594
|
+
Ct(async () => {
|
|
595
595
|
var P, Te, qe, je, lt;
|
|
596
596
|
e.value && e.value["remote-method"] && (se.value["remote-method"] = ie), (Te = (P = t.value[n.value]) == null ? void 0 : P.options) != null && Te.length && (T.value = t.value[n.value].options);
|
|
597
597
|
const A = (Pe, Ze = "options", Je = t.value[n.value]) => {
|
|
@@ -638,8 +638,8 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
638
638
|
return e.value["file-list"] && e.value["file-list"].length ? (A = e.value["file-list"]) == null ? void 0 : A.map((S) => S == null ? void 0 : S.url) : [l.value];
|
|
639
639
|
});
|
|
640
640
|
return (A, S) => {
|
|
641
|
-
var st, te, ce,
|
|
642
|
-
const P = j("el-image-viewer"), Te = j("el-radio"), qe = j("el-radio-group"), je = j("el-radio-button"), lt = j("el-checkbox"), Pe = j("el-checkbox-group"), Ze = j("el-checkbox-button"), Je = j("g-select-option"), Ke = j("el-option"),
|
|
641
|
+
var st, te, ce, fe, vt, pt, it, dt, gt, G, ct, bt, $t, Et, Gt, Xt, Qt, Zt, Jt, Kt, el, tl, ll, al, rl, nl, ol, ul;
|
|
642
|
+
const P = j("el-image-viewer"), Te = j("el-radio"), qe = j("el-radio-group"), je = j("el-radio-button"), lt = j("el-checkbox"), Pe = j("el-checkbox-group"), Ze = j("el-checkbox-button"), Je = j("g-select-option"), Ke = j("el-option"), xt = j("el-select"), Mt = j("el-tree-select"), a = j("el-time-picker"), u = j("el-time-select"), y = j("el-date-picker"), _ = j("el-color-picker"), O = j("el-rate"), F = j("el-slider"), R = j("el-switch"), $e = j("el-transfer"), xe = j("el-cascader"), Oe = j("el-icon"), ze = j("el-image"), Fe = j("el-tooltip"), et = j("el-upload"), ht = j("el-autocomplete"), St = j("el-input-number"), Tt = j("el-input-tag"), Z = j("el-input"), me = j("el-link"), re = j("el-text"), We = j("el-avatar"), tt = j("el-tag");
|
|
643
643
|
return m(), U(oe, null, [
|
|
644
644
|
J("div", null, [
|
|
645
645
|
f.value ? (m(), V(P, {
|
|
@@ -658,7 +658,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
658
658
|
key: 0,
|
|
659
659
|
modelValue: l.value,
|
|
660
660
|
"onUpdate:modelValue": S[1] || (S[1] = (b) => l.value = b),
|
|
661
|
-
disabled: t.value[n.value].disabled
|
|
661
|
+
disabled: (st = t.value[n.value]) == null ? void 0 : st.disabled
|
|
662
662
|
}, e.value), {
|
|
663
663
|
default: k(() => [
|
|
664
664
|
x(A.$slots, `${s.t}-${n.value}`, { data: e.value }, () => [
|
|
@@ -675,7 +675,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
675
675
|
key: 1,
|
|
676
676
|
modelValue: l.value,
|
|
677
677
|
"onUpdate:modelValue": S[2] || (S[2] = (b) => l.value = b),
|
|
678
|
-
disabled: t.value[n.value].disabled
|
|
678
|
+
disabled: (te = t.value[n.value]) == null ? void 0 : te.disabled
|
|
679
679
|
}, e.value), {
|
|
680
680
|
default: k(() => [
|
|
681
681
|
x(A.$slots, `${s.t}-${n.value}`, { data: e.value }, () => [
|
|
@@ -692,7 +692,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
692
692
|
key: 2,
|
|
693
693
|
modelValue: l.value,
|
|
694
694
|
"onUpdate:modelValue": S[3] || (S[3] = (b) => l.value = b),
|
|
695
|
-
disabled: t.value[n.value].disabled
|
|
695
|
+
disabled: (ce = t.value[n.value]) == null ? void 0 : ce.disabled
|
|
696
696
|
}, e.value), {
|
|
697
697
|
default: k(() => [
|
|
698
698
|
x(A.$slots, `${s.t}-${n.value}`, { data: e.value }, () => [
|
|
@@ -704,7 +704,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
704
704
|
key: 3,
|
|
705
705
|
modelValue: l.value,
|
|
706
706
|
"onUpdate:modelValue": S[4] || (S[4] = (b) => l.value = b),
|
|
707
|
-
disabled: t.value[n.value].disabled
|
|
707
|
+
disabled: (fe = t.value[n.value]) == null ? void 0 : fe.disabled
|
|
708
708
|
}, e.value), {
|
|
709
709
|
default: k(() => [
|
|
710
710
|
x(A.$slots, `${s.t}-${n.value}`, { data: e.value }, () => [
|
|
@@ -723,7 +723,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
723
723
|
key: 4,
|
|
724
724
|
modelValue: l.value,
|
|
725
725
|
"onUpdate:modelValue": S[5] || (S[5] = (b) => l.value = b),
|
|
726
|
-
disabled: t.value[n.value].disabled
|
|
726
|
+
disabled: (vt = t.value[n.value]) == null ? void 0 : vt.disabled
|
|
727
727
|
}, L(Xe)(e.value, (b) => b != "type")), {
|
|
728
728
|
default: k(() => [
|
|
729
729
|
x(A.$slots, `${s.t}-${n.value}`, { data: e.value }, () => [
|
|
@@ -736,7 +736,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
736
736
|
], !0)
|
|
737
737
|
]),
|
|
738
738
|
_: 3
|
|
739
|
-
}, 16, ["modelValue", "disabled"])) : d.value === L(Se).SELECT ? (m(), V(
|
|
739
|
+
}, 16, ["modelValue", "disabled"])) : d.value === L(Se).SELECT ? (m(), V(xt, Y({
|
|
740
740
|
key: 5,
|
|
741
741
|
modelValue: l.value,
|
|
742
742
|
"onUpdate:modelValue": S[6] || (S[6] = (b) => l.value = b),
|
|
@@ -745,7 +745,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
745
745
|
onClear: S[7] || (S[7] = () => {
|
|
746
746
|
s.t == "q" && t.value.table.load();
|
|
747
747
|
}),
|
|
748
|
-
disabled: t.value[n.value].disabled
|
|
748
|
+
disabled: (pt = t.value[n.value]) == null ? void 0 : pt.disabled
|
|
749
749
|
}, se.value), ke({
|
|
750
750
|
default: k(() => {
|
|
751
751
|
var b;
|
|
@@ -754,12 +754,12 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
754
754
|
key: 0,
|
|
755
755
|
options: T.value
|
|
756
756
|
}, () => [
|
|
757
|
-
(m(!0), U(oe, null, N(T.value, (
|
|
758
|
-
key:
|
|
757
|
+
(m(!0), U(oe, null, N(T.value, (pe) => (m(), U(oe, {
|
|
758
|
+
key: pe.value
|
|
759
759
|
}, [
|
|
760
|
-
de(Ke, Y({ ref_for: !0 }, L(Xe)(
|
|
760
|
+
de(Ke, Y({ ref_for: !0 }, L(Xe)(pe, (he) => he != "children"), {
|
|
761
761
|
onClick: (he) => {
|
|
762
|
-
se.value.change && se.value.change(
|
|
762
|
+
se.value.change && se.value.change(pe), Ve();
|
|
763
763
|
}
|
|
764
764
|
}), {
|
|
765
765
|
default: k(() => {
|
|
@@ -767,21 +767,21 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
767
767
|
return [
|
|
768
768
|
(he = e.value) != null && he.columns ? x(A.$slots, `${s.t}-${n.value}-options`, {
|
|
769
769
|
key: 0,
|
|
770
|
-
option:
|
|
770
|
+
option: pe
|
|
771
771
|
}, () => {
|
|
772
772
|
var at;
|
|
773
773
|
return [
|
|
774
774
|
de(Je, {
|
|
775
775
|
columns: (at = e.value) == null ? void 0 : at.columns,
|
|
776
|
-
data:
|
|
776
|
+
data: pe,
|
|
777
777
|
t: s.t
|
|
778
778
|
}, ke({ _: 2 }, [
|
|
779
|
-
N(A.$slots, (
|
|
780
|
-
name:
|
|
781
|
-
fn: k((
|
|
782
|
-
x(A.$slots,
|
|
783
|
-
option:
|
|
784
|
-
data:
|
|
779
|
+
N(A.$slots, (wt, Ht) => ({
|
|
780
|
+
name: Ht,
|
|
781
|
+
fn: k((Vt) => [
|
|
782
|
+
x(A.$slots, Ht, {
|
|
783
|
+
option: pe,
|
|
784
|
+
data: Vt,
|
|
785
785
|
form: r.formInfo
|
|
786
786
|
}, void 0, !0)
|
|
787
787
|
])
|
|
@@ -793,7 +793,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
793
793
|
}),
|
|
794
794
|
_: 2
|
|
795
795
|
}, 1040, ["onClick"]),
|
|
796
|
-
|
|
796
|
+
pe.children && pe.children.length ? (m(!0), U(oe, { key: 0 }, N(pe.children, (he) => (m(), V(Ke, Y({
|
|
797
797
|
style: { "margin-left": "20px" },
|
|
798
798
|
key: he.value
|
|
799
799
|
}, { ref_for: !0 }, L(Xe)(he, (at) => at != "children"), {
|
|
@@ -808,19 +808,19 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
808
808
|
key: 0,
|
|
809
809
|
option: he
|
|
810
810
|
}, () => {
|
|
811
|
-
var
|
|
811
|
+
var wt;
|
|
812
812
|
return [
|
|
813
813
|
de(Je, {
|
|
814
|
-
columns: (
|
|
814
|
+
columns: (wt = e.value) == null ? void 0 : wt.columns,
|
|
815
815
|
data: he,
|
|
816
816
|
t: s.t
|
|
817
817
|
}, ke({ _: 2 }, [
|
|
818
|
-
N(A.$slots, (
|
|
819
|
-
name:
|
|
820
|
-
fn: k((
|
|
821
|
-
x(A.$slots,
|
|
818
|
+
N(A.$slots, (Ht, Vt) => ({
|
|
819
|
+
name: Vt,
|
|
820
|
+
fn: k((ql) => [
|
|
821
|
+
x(A.$slots, Vt, {
|
|
822
822
|
option: he,
|
|
823
|
-
data:
|
|
823
|
+
data: ql,
|
|
824
824
|
form: r.formInfo
|
|
825
825
|
}, void 0, !0)
|
|
826
826
|
])
|
|
@@ -838,7 +838,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
838
838
|
}),
|
|
839
839
|
_: 2
|
|
840
840
|
}, [
|
|
841
|
-
(
|
|
841
|
+
(it = e.value) != null && it.columns ? {
|
|
842
842
|
name: "header",
|
|
843
843
|
fn: k(() => {
|
|
844
844
|
var b;
|
|
@@ -848,7 +848,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
848
848
|
title: !0,
|
|
849
849
|
t: s.t
|
|
850
850
|
}, ke({ _: 2 }, [
|
|
851
|
-
N(A.$slots, (
|
|
851
|
+
N(A.$slots, (pe, he) => ({
|
|
852
852
|
name: he,
|
|
853
853
|
fn: k((at) => [
|
|
854
854
|
x(A.$slots, he, { data: at }, void 0, !0)
|
|
@@ -861,21 +861,21 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
861
861
|
} : void 0,
|
|
862
862
|
N(D(), (b) => ({
|
|
863
863
|
name: b,
|
|
864
|
-
fn: k((
|
|
864
|
+
fn: k((pe) => [
|
|
865
865
|
x(A.$slots, `${s.t}-${n.value}-${b}`, { form: r.formInfo }, void 0, !0)
|
|
866
866
|
])
|
|
867
867
|
}))
|
|
868
|
-
]), 1040, ["modelValue", "placeholder", "clearable", "disabled"])) : d.value == L(Se).TREESELECT ? (m(), V(
|
|
868
|
+
]), 1040, ["modelValue", "placeholder", "clearable", "disabled"])) : d.value == L(Se).TREESELECT ? (m(), V(Mt, Y({
|
|
869
869
|
key: 6,
|
|
870
870
|
modelValue: l.value,
|
|
871
871
|
"onUpdate:modelValue": S[8] || (S[8] = (b) => l.value = b),
|
|
872
872
|
placeholder: o.value,
|
|
873
|
-
disabled: t.value[n.value].disabled
|
|
873
|
+
disabled: (dt = t.value[n.value]) == null ? void 0 : dt.disabled
|
|
874
874
|
}, e.value, { data: i.value }), ke({ _: 2 }, [
|
|
875
875
|
N(D(), (b) => ({
|
|
876
876
|
name: b,
|
|
877
|
-
fn: k((
|
|
878
|
-
x(A.$slots, `${s.t}-${n.value}-${b}`, { data:
|
|
877
|
+
fn: k((pe) => [
|
|
878
|
+
x(A.$slots, `${s.t}-${n.value}-${b}`, { data: pe }, void 0, !0)
|
|
879
879
|
])
|
|
880
880
|
}))
|
|
881
881
|
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : d.value == L(Se).TIME ? (m(), V(a, Y({
|
|
@@ -884,7 +884,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
884
884
|
"onUpdate:modelValue": S[9] || (S[9] = (b) => l.value = b),
|
|
885
885
|
"arrow-control": "",
|
|
886
886
|
format: "HH:mm:ss",
|
|
887
|
-
disabled: t.value[n.value].disabled
|
|
887
|
+
disabled: (gt = t.value[n.value]) == null ? void 0 : gt.disabled
|
|
888
888
|
}, e.value, { placeholder: o.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : d.value == L(Se).TIMESELECT ? (m(), V(u, Y({
|
|
889
889
|
key: 8,
|
|
890
890
|
modelValue: l.value,
|
|
@@ -894,7 +894,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
894
894
|
step: "00:15",
|
|
895
895
|
end: "23:30",
|
|
896
896
|
placeholder: o.value,
|
|
897
|
-
disabled: t.value[n.value].disabled
|
|
897
|
+
disabled: (G = t.value[n.value]) == null ? void 0 : G.disabled
|
|
898
898
|
}, e.value), null, 16, ["modelValue", "placeholder", "disabled"])) : ee(d.value) ? (m(), V(y, Y({
|
|
899
899
|
key: 9,
|
|
900
900
|
modelValue: l.value,
|
|
@@ -903,12 +903,12 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
903
903
|
format: d.value === L(Se).DATE ? "YYYY-MM-DD" : d.value === L(Se).DATETIME ? "YYYY-MM-DD HH:mm:ss" : "",
|
|
904
904
|
placeholder: o.value,
|
|
905
905
|
"value-format": le(d.value),
|
|
906
|
-
disabled: t.value[n.value].disabled
|
|
906
|
+
disabled: (ct = t.value[n.value]) == null ? void 0 : ct.disabled
|
|
907
907
|
}, e.value), ke({ _: 2 }, [
|
|
908
908
|
N(D(), (b) => ({
|
|
909
909
|
name: b,
|
|
910
|
-
fn: k((
|
|
911
|
-
x(A.$slots, `${s.t}-${n.value}-${b}`, { data:
|
|
910
|
+
fn: k((pe) => [
|
|
911
|
+
x(A.$slots, `${s.t}-${n.value}-${b}`, { data: pe }, void 0, !0)
|
|
912
912
|
])
|
|
913
913
|
}))
|
|
914
914
|
]), 1040, ["modelValue", "type", "format", "placeholder", "value-format", "disabled"])) : d.value == L(Se).COLOR ? (m(), V(_, Y({
|
|
@@ -919,23 +919,23 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
919
919
|
key: 11,
|
|
920
920
|
modelValue: l.value,
|
|
921
921
|
"onUpdate:modelValue": S[13] || (S[13] = (b) => l.value = b),
|
|
922
|
-
disabled: t.value[n.value].disabled
|
|
922
|
+
disabled: (bt = t.value[n.value]) == null ? void 0 : bt.disabled
|
|
923
923
|
}, e.value), null, 16, ["modelValue", "disabled"])) : d.value == L(Se).SLIDER ? (m(), V(F, Y({
|
|
924
924
|
key: 12,
|
|
925
925
|
modelValue: l.value,
|
|
926
926
|
"onUpdate:modelValue": S[14] || (S[14] = (b) => l.value = b),
|
|
927
|
-
disabled: t.value[n.value].disabled
|
|
927
|
+
disabled: ($t = t.value[n.value]) == null ? void 0 : $t.disabled
|
|
928
928
|
}, e.value), null, 16, ["modelValue", "disabled"])) : d.value == L(Se).SWITCH ? (m(), V(R, Y({
|
|
929
929
|
key: 13,
|
|
930
930
|
modelValue: l.value,
|
|
931
931
|
"onUpdate:modelValue": S[15] || (S[15] = (b) => l.value = b),
|
|
932
932
|
inlinePrompt: !0,
|
|
933
|
-
disabled: t.value[n.value].disabled
|
|
933
|
+
disabled: (Et = t.value[n.value]) == null ? void 0 : Et.disabled
|
|
934
934
|
}, e.value), ke({ _: 2 }, [
|
|
935
935
|
N(D(), (b) => ({
|
|
936
936
|
name: b,
|
|
937
|
-
fn: k((
|
|
938
|
-
x(A.$slots, `${s.t}-${n.value}-${b}`, { data:
|
|
937
|
+
fn: k((pe) => [
|
|
938
|
+
x(A.$slots, `${s.t}-${n.value}-${b}`, { data: pe }, void 0, !0)
|
|
939
939
|
])
|
|
940
940
|
}))
|
|
941
941
|
]), 1040, ["modelValue", "disabled"])) : d.value == L(Se).TRANSFER ? (m(), V($e, Y({
|
|
@@ -945,8 +945,8 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
945
945
|
}, e.value), ke({ _: 2 }, [
|
|
946
946
|
N(D(), (b) => ({
|
|
947
947
|
name: b,
|
|
948
|
-
fn: k((
|
|
949
|
-
x(A.$slots, `${s.t}-${n.value}-${b}`, { data:
|
|
948
|
+
fn: k((pe) => [
|
|
949
|
+
x(A.$slots, `${s.t}-${n.value}-${b}`, { data: pe }, void 0, !0)
|
|
950
950
|
])
|
|
951
951
|
}))
|
|
952
952
|
]), 1040, ["modelValue"])) : d.value == L(Se).CASCADER ? (m(), V(xe, Y({
|
|
@@ -956,8 +956,8 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
956
956
|
}, e.value, { options: T.value }), ke({ _: 2 }, [
|
|
957
957
|
N(D(), (b) => ({
|
|
958
958
|
name: b,
|
|
959
|
-
fn: k((
|
|
960
|
-
x(A.$slots, `${s.t}-${n.value}-${b}`, { data:
|
|
959
|
+
fn: k((pe) => [
|
|
960
|
+
x(A.$slots, `${s.t}-${n.value}-${b}`, { data: pe }, void 0, !0)
|
|
961
961
|
])
|
|
962
962
|
}))
|
|
963
963
|
]), 1040, ["modelValue", "options"])) : d.value == L(Se).IMAGE ? (m(), V(et, Y({
|
|
@@ -972,11 +972,11 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
972
972
|
ref: De
|
|
973
973
|
}), ke({
|
|
974
974
|
default: k(() => {
|
|
975
|
-
var b,
|
|
975
|
+
var b, pe;
|
|
976
976
|
return [
|
|
977
977
|
!l.value || ((b = e.value) == null ? void 0 : b.multiple) === !0 ? (m(), V(Oe, { key: 0 }, {
|
|
978
978
|
default: k(() => [
|
|
979
|
-
de(L(
|
|
979
|
+
de(L(Pl))
|
|
980
980
|
]),
|
|
981
981
|
_: 1
|
|
982
982
|
})) : (m(), U("div", {
|
|
@@ -984,15 +984,15 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
984
984
|
onClick: S[20] || (S[20] = (he) => he.stopPropagation()),
|
|
985
985
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
986
986
|
}, [
|
|
987
|
-
J("div",
|
|
987
|
+
J("div", sa, [
|
|
988
988
|
de(ze, Y({
|
|
989
989
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
990
990
|
src: l.value
|
|
991
|
-
}, { fit: "cover", lazy: !0, ...(
|
|
991
|
+
}, { fit: "cover", lazy: !0, ...(pe = e.value) == null ? void 0 : pe.img }), ke({ _: 2 }, [
|
|
992
992
|
N(D(), (he, at) => ({
|
|
993
993
|
name: he,
|
|
994
|
-
fn: k((
|
|
995
|
-
x(A.$slots, `${s.t}-${n.value}-${he}`, { data:
|
|
994
|
+
fn: k((wt) => [
|
|
995
|
+
x(A.$slots, `${s.t}-${n.value}-${he}`, { data: wt }, void 0, !0)
|
|
996
996
|
])
|
|
997
997
|
}))
|
|
998
998
|
]), 1040, ["src"])
|
|
@@ -1009,7 +1009,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1009
1009
|
placement: "top"
|
|
1010
1010
|
}, {
|
|
1011
1011
|
default: k(() => [
|
|
1012
|
-
de(L(
|
|
1012
|
+
de(L(Nl), {
|
|
1013
1013
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
1014
1014
|
color: "white",
|
|
1015
1015
|
onClick: B
|
|
@@ -1023,7 +1023,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1023
1023
|
placement: "top"
|
|
1024
1024
|
}, {
|
|
1025
1025
|
default: k(() => [
|
|
1026
|
-
de(L(
|
|
1026
|
+
de(L(gl), {
|
|
1027
1027
|
style: { width: "1.5em", height: "1.5em" },
|
|
1028
1028
|
color: "white",
|
|
1029
1029
|
onClick: Ie
|
|
@@ -1037,7 +1037,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1037
1037
|
}),
|
|
1038
1038
|
_: 2
|
|
1039
1039
|
}, [
|
|
1040
|
-
N(D(), (b,
|
|
1040
|
+
N(D(), (b, pe) => ({
|
|
1041
1041
|
name: b,
|
|
1042
1042
|
fn: k((he) => [
|
|
1043
1043
|
x(A.$slots, `${s.t}-${n.value}-${b}`, { data: he }, void 0, !0)
|
|
@@ -1048,20 +1048,20 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1048
1048
|
modelValue: l.value,
|
|
1049
1049
|
"onUpdate:modelValue": S[22] || (S[22] = (b) => l.value = b)
|
|
1050
1050
|
}, e.value, { placeholder: o.value }), ke({ _: 2 }, [
|
|
1051
|
-
N(D(), (b,
|
|
1051
|
+
N(D(), (b, pe) => ({
|
|
1052
1052
|
name: b,
|
|
1053
1053
|
fn: k((he) => [
|
|
1054
1054
|
x(A.$slots, `${s.t}-${n.value}-${b}`, { data: he }, void 0, !0)
|
|
1055
1055
|
])
|
|
1056
1056
|
}))
|
|
1057
|
-
]), 1040, ["modelValue", "placeholder"])) : d.value == L(Se).INPUTNUMBER ? (m(), V(
|
|
1057
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == L(Se).INPUTNUMBER ? (m(), V(St, Y({
|
|
1058
1058
|
key: 18,
|
|
1059
1059
|
modelValue: l.value,
|
|
1060
1060
|
"onUpdate:modelValue": S[23] || (S[23] = (b) => l.value = b),
|
|
1061
1061
|
placeholder: o.value,
|
|
1062
|
-
disabled: t.value[n.value].disabled
|
|
1062
|
+
disabled: (Gt = t.value[n.value]) == null ? void 0 : Gt.disabled
|
|
1063
1063
|
}, e.value), ke({ _: 2 }, [
|
|
1064
|
-
N(D(), (b,
|
|
1064
|
+
N(D(), (b, pe) => ({
|
|
1065
1065
|
name: b,
|
|
1066
1066
|
fn: k((he) => [
|
|
1067
1067
|
x(A.$slots, `${s.t}-${n.value}-${b}`, {
|
|
@@ -1070,39 +1070,39 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1070
1070
|
}, void 0, !0)
|
|
1071
1071
|
])
|
|
1072
1072
|
}))
|
|
1073
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : d.value == "input-tag" ? (m(), V(
|
|
1073
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : d.value == "input-tag" ? (m(), V(Tt, Y({
|
|
1074
1074
|
key: 19,
|
|
1075
1075
|
modelValue: l.value,
|
|
1076
1076
|
"onUpdate:modelValue": S[24] || (S[24] = (b) => l.value = b),
|
|
1077
1077
|
placeholder: o.value,
|
|
1078
|
-
disabled: t.value[n.value].disabled,
|
|
1078
|
+
disabled: (Xt = t.value[n.value]) == null ? void 0 : Xt.disabled,
|
|
1079
1079
|
draggable: ""
|
|
1080
1080
|
}, e.value), ke({ _: 2 }, [
|
|
1081
|
-
(
|
|
1081
|
+
(Qt = e.value) != null && Qt.suffix ? {
|
|
1082
1082
|
name: "suffix",
|
|
1083
1083
|
fn: k(() => {
|
|
1084
1084
|
var b;
|
|
1085
1085
|
return [
|
|
1086
1086
|
J("div", {
|
|
1087
1087
|
innerHTML: ((b = e.value) == null ? void 0 : b.suffix) || ""
|
|
1088
|
-
}, null, 8,
|
|
1088
|
+
}, null, 8, ia)
|
|
1089
1089
|
];
|
|
1090
1090
|
}),
|
|
1091
1091
|
key: "0"
|
|
1092
1092
|
} : void 0,
|
|
1093
|
-
(
|
|
1093
|
+
(Zt = e.value) != null && Zt.prefix ? {
|
|
1094
1094
|
name: "prefix",
|
|
1095
1095
|
fn: k(() => {
|
|
1096
1096
|
var b;
|
|
1097
1097
|
return [
|
|
1098
1098
|
J("div", {
|
|
1099
1099
|
innerHTML: ((b = e.value) == null ? void 0 : b.prefix) || ""
|
|
1100
|
-
}, null, 8,
|
|
1100
|
+
}, null, 8, da)
|
|
1101
1101
|
];
|
|
1102
1102
|
}),
|
|
1103
1103
|
key: "1"
|
|
1104
1104
|
} : void 0,
|
|
1105
|
-
N(D(), (b,
|
|
1105
|
+
N(D(), (b, pe) => ({
|
|
1106
1106
|
name: b,
|
|
1107
1107
|
fn: k((he) => [
|
|
1108
1108
|
x(A.$slots, `${s.t}-${n.value}-${b}`, {
|
|
@@ -1121,24 +1121,24 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1121
1121
|
placeholder: o.value,
|
|
1122
1122
|
type: "number",
|
|
1123
1123
|
onInput: S[26] || (S[26] = (b) => Qe(b, 2)),
|
|
1124
|
-
maxlength: ((
|
|
1124
|
+
maxlength: ((Jt = e.value) == null ? void 0 : Jt.max) || 25
|
|
1125
1125
|
}, { ...e.value, type: d.value }), ke({
|
|
1126
1126
|
suffix: k(() => [
|
|
1127
1127
|
J("div", {
|
|
1128
|
-
title: L(
|
|
1128
|
+
title: L(Pt)(l.value),
|
|
1129
1129
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1130
|
-
}, Ee(L(
|
|
1130
|
+
}, Ee(L(Pt)(l.value)), 9, ca)
|
|
1131
1131
|
]),
|
|
1132
1132
|
_: 2
|
|
1133
1133
|
}, [
|
|
1134
|
-
N(D(), (b,
|
|
1134
|
+
N(D(), (b, pe) => ({
|
|
1135
1135
|
name: b,
|
|
1136
1136
|
fn: k((he) => [
|
|
1137
1137
|
x(A.$slots, `${s.t}-${n.value}-${b}`, { data: he }, void 0, !0)
|
|
1138
1138
|
])
|
|
1139
1139
|
}))
|
|
1140
1140
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
1141
|
-
], 4)) : (
|
|
1141
|
+
], 4)) : (Kt = d.value) != null && Kt.startsWith("link") ? (m(), U("div", {
|
|
1142
1142
|
key: 21,
|
|
1143
1143
|
style: Ue(h.value)
|
|
1144
1144
|
}, [
|
|
@@ -1146,7 +1146,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1146
1146
|
type: d.value.replace("link-", ""),
|
|
1147
1147
|
innerHTML: X.value || l.value
|
|
1148
1148
|
}), null, 16, ["type", "innerHTML"])
|
|
1149
|
-
], 4)) : d.value != "textarea" && ((
|
|
1149
|
+
], 4)) : d.value != "textarea" && ((el = d.value) != null && el.startsWith("text")) ? (m(), U("div", {
|
|
1150
1150
|
key: 22,
|
|
1151
1151
|
style: Ue(h.value)
|
|
1152
1152
|
}, [
|
|
@@ -1158,17 +1158,17 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1158
1158
|
key: 23,
|
|
1159
1159
|
style: Ue(h.value)
|
|
1160
1160
|
}, [
|
|
1161
|
-
X.value ? (m(), V(We,
|
|
1161
|
+
X.value ? (m(), V(We, qt(Y({ key: 0 }, e.value)), {
|
|
1162
1162
|
default: k(() => [
|
|
1163
|
-
J("div", { innerHTML: X.value }, null, 8,
|
|
1163
|
+
J("div", { innerHTML: X.value }, null, 8, fa)
|
|
1164
1164
|
]),
|
|
1165
1165
|
_: 1
|
|
1166
|
-
}, 16)) : (m(), V(We,
|
|
1167
|
-
], 4)) : (
|
|
1166
|
+
}, 16)) : (m(), V(We, qt(Y({ key: 1 }, e.value)), null, 16))
|
|
1167
|
+
], 4)) : (tl = d.value) != null && tl.startsWith("tag") ? (m(), U("div", {
|
|
1168
1168
|
key: 24,
|
|
1169
1169
|
style: Ue(h.value)
|
|
1170
1170
|
}, [
|
|
1171
|
-
Array.isArray(X.value) && X.value.length > 0 ? (m(!0), U(oe, { key: 0 }, N(X.value, (b,
|
|
1171
|
+
Array.isArray(X.value) && X.value.length > 0 ? (m(!0), U(oe, { key: 0 }, N(X.value, (b, pe) => (m(), U(oe, { key: pe }, [
|
|
1172
1172
|
typeof b == "object" ? (m(), V(tt, Y({
|
|
1173
1173
|
key: 0,
|
|
1174
1174
|
"disable-transitions": ""
|
|
@@ -1193,79 +1193,79 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1193
1193
|
], 4)) : d.value == "div" ? (m(), U("div", Y({ key: 25 }, e.value, {
|
|
1194
1194
|
innerHTML: X.value || l.value,
|
|
1195
1195
|
style: h.value
|
|
1196
|
-
}), null, 16,
|
|
1196
|
+
}), null, 16, va)) : d.value == "span" ? (m(), U("span", Y({ key: 26 }, e.value, {
|
|
1197
1197
|
innerHTML: X.value || l.value,
|
|
1198
1198
|
style: h.value
|
|
1199
|
-
}), null, 16,
|
|
1199
|
+
}), null, 16, pa)) : d.value == "custom" ? (m(), U("div", {
|
|
1200
1200
|
key: 27,
|
|
1201
1201
|
style: Ue(h.value)
|
|
1202
1202
|
}, [
|
|
1203
|
-
(m(), V(Ge(e.value.component),
|
|
1203
|
+
(m(), V(Ge(e.value.component), qt(vl(L(Xe)(e.value, (b) => b != "component"))), null, 16))
|
|
1204
1204
|
], 4)) : (m(), V(Z, Y({
|
|
1205
1205
|
key: 28,
|
|
1206
1206
|
modelValue: l.value,
|
|
1207
1207
|
"onUpdate:modelValue": S[27] || (S[27] = (b) => l.value = b),
|
|
1208
1208
|
placeholder: o.value,
|
|
1209
|
-
maxlength: ((
|
|
1209
|
+
maxlength: ((ll = e.value) == null ? void 0 : ll.max) || 25,
|
|
1210
1210
|
clearable: !0,
|
|
1211
1211
|
onInput: S[28] || (S[28] = (b) => {
|
|
1212
|
-
var
|
|
1213
|
-
return d.value == L(Se).NUMBER ? Qe(b, ((
|
|
1212
|
+
var pe;
|
|
1213
|
+
return d.value == L(Se).NUMBER ? Qe(b, ((pe = e.value) == null ? void 0 : pe.precision) || 2) : b;
|
|
1214
1214
|
}),
|
|
1215
1215
|
onClear: S[29] || (S[29] = () => {
|
|
1216
1216
|
s.t == "q" && t.value.table.load();
|
|
1217
1217
|
}),
|
|
1218
|
-
disabled: t.value[n.value].disabled
|
|
1218
|
+
disabled: (al = t.value[n.value]) == null ? void 0 : al.disabled
|
|
1219
1219
|
}, { ...L(Xe)(e.value, (b) => !["suffix", "prefix", "append", "prepend"].includes(b)), type: d.value }), ke({ _: 2 }, [
|
|
1220
|
-
(
|
|
1220
|
+
(rl = e.value) != null && rl.suffix ? {
|
|
1221
1221
|
name: "suffix",
|
|
1222
1222
|
fn: k(() => {
|
|
1223
1223
|
var b;
|
|
1224
1224
|
return [
|
|
1225
1225
|
J("div", {
|
|
1226
1226
|
innerHTML: ((b = e.value) == null ? void 0 : b.suffix) || ""
|
|
1227
|
-
}, null, 8,
|
|
1227
|
+
}, null, 8, ma)
|
|
1228
1228
|
];
|
|
1229
1229
|
}),
|
|
1230
1230
|
key: "0"
|
|
1231
1231
|
} : void 0,
|
|
1232
|
-
(
|
|
1232
|
+
(nl = e.value) != null && nl.prefix ? {
|
|
1233
1233
|
name: "prefix",
|
|
1234
1234
|
fn: k(() => {
|
|
1235
1235
|
var b;
|
|
1236
1236
|
return [
|
|
1237
1237
|
J("div", {
|
|
1238
1238
|
innerHTML: ((b = e.value) == null ? void 0 : b.prefix) || ""
|
|
1239
|
-
}, null, 8,
|
|
1239
|
+
}, null, 8, ha)
|
|
1240
1240
|
];
|
|
1241
1241
|
}),
|
|
1242
1242
|
key: "1"
|
|
1243
1243
|
} : void 0,
|
|
1244
|
-
(
|
|
1244
|
+
(ol = e.value) != null && ol.append ? {
|
|
1245
1245
|
name: "append",
|
|
1246
1246
|
fn: k(() => {
|
|
1247
1247
|
var b;
|
|
1248
1248
|
return [
|
|
1249
1249
|
J("div", {
|
|
1250
1250
|
innerHTML: ((b = e.value) == null ? void 0 : b.append) || ""
|
|
1251
|
-
}, null, 8,
|
|
1251
|
+
}, null, 8, ya)
|
|
1252
1252
|
];
|
|
1253
1253
|
}),
|
|
1254
1254
|
key: "2"
|
|
1255
1255
|
} : void 0,
|
|
1256
|
-
(
|
|
1256
|
+
(ul = e.value) != null && ul.prepend ? {
|
|
1257
1257
|
name: "prepend",
|
|
1258
1258
|
fn: k(() => {
|
|
1259
1259
|
var b;
|
|
1260
1260
|
return [
|
|
1261
1261
|
J("div", {
|
|
1262
1262
|
innerHTML: ((b = e.value) == null ? void 0 : b.prepend) || ""
|
|
1263
|
-
}, null, 8,
|
|
1263
|
+
}, null, 8, ga)
|
|
1264
1264
|
];
|
|
1265
1265
|
}),
|
|
1266
1266
|
key: "3"
|
|
1267
1267
|
} : void 0,
|
|
1268
|
-
N(D(), (b,
|
|
1268
|
+
N(D(), (b, pe) => ({
|
|
1269
1269
|
name: b,
|
|
1270
1270
|
fn: k((he) => [
|
|
1271
1271
|
x(A.$slots, `${s.t}-${n.value}-${b}`, {
|
|
@@ -1279,7 +1279,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1279
1279
|
], 64);
|
|
1280
1280
|
};
|
|
1281
1281
|
}
|
|
1282
|
-
}),
|
|
1282
|
+
}), _t = /* @__PURE__ */ nt(ba, [["__scopeId", "data-v-9c7a0580"]]), sl = {
|
|
1283
1283
|
__name: "g-query-item",
|
|
1284
1284
|
props: /* @__PURE__ */ ut(["more"], {
|
|
1285
1285
|
modelValue: { required: !0 },
|
|
@@ -1334,7 +1334,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1334
1334
|
})
|
|
1335
1335
|
]),
|
|
1336
1336
|
default: k(() => [
|
|
1337
|
-
de(
|
|
1337
|
+
de(_t, {
|
|
1338
1338
|
modelValue: l.value[h],
|
|
1339
1339
|
"onUpdate:modelValue": (z) => l.value[h] = z,
|
|
1340
1340
|
item: { getDicts: o == null ? void 0 : o.getDicts, ...o == null ? void 0 : o.editor, ...t(o) },
|
|
@@ -1361,10 +1361,10 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1361
1361
|
])), 128);
|
|
1362
1362
|
};
|
|
1363
1363
|
}
|
|
1364
|
-
},
|
|
1364
|
+
}, $a = {
|
|
1365
1365
|
key: 0,
|
|
1366
1366
|
class: "outer"
|
|
1367
|
-
},
|
|
1367
|
+
}, wa = { class: "inner" }, ka = {
|
|
1368
1368
|
__name: "g-query",
|
|
1369
1369
|
props: {
|
|
1370
1370
|
modelValue: { required: !0 },
|
|
@@ -1374,7 +1374,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1374
1374
|
},
|
|
1375
1375
|
emits: /* @__PURE__ */ ut(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1376
1376
|
setup(r, { emit: s }) {
|
|
1377
|
-
const e = ot(r, "modelValue"), l = s, n =
|
|
1377
|
+
const e = ot(r, "modelValue"), l = s, n = Ut("options"), d = ne(!1), t = ot(r, "info"), i = Ne(() => {
|
|
1378
1378
|
var X, ee, le;
|
|
1379
1379
|
const D = Le((X = n == null ? void 0 : n.query) == null ? void 0 : X.btns, (le = (ee = e.value) == null ? void 0 : ee.query) == null ? void 0 : le.btns) || { align: "left" };
|
|
1380
1380
|
return {
|
|
@@ -1397,7 +1397,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1397
1397
|
hidden: !0,
|
|
1398
1398
|
type: "primary",
|
|
1399
1399
|
label: "更多",
|
|
1400
|
-
icon: () => Me(
|
|
1400
|
+
icon: () => Me(Gl),
|
|
1401
1401
|
click: () => {
|
|
1402
1402
|
d.value = !d.value;
|
|
1403
1403
|
}
|
|
@@ -1407,7 +1407,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1407
1407
|
type: "primary",
|
|
1408
1408
|
hidden: !1,
|
|
1409
1409
|
plain: !1,
|
|
1410
|
-
icon: () => Me(
|
|
1410
|
+
icon: () => Me(bl),
|
|
1411
1411
|
click: () => {
|
|
1412
1412
|
l("reset", t.value);
|
|
1413
1413
|
}
|
|
@@ -1416,7 +1416,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1416
1416
|
hidden: !1,
|
|
1417
1417
|
type: "primary",
|
|
1418
1418
|
label: "查询",
|
|
1419
|
-
icon: () => Me(
|
|
1419
|
+
icon: () => Me(Wl),
|
|
1420
1420
|
click: () => {
|
|
1421
1421
|
l("query", t.value), d.value = !1;
|
|
1422
1422
|
}
|
|
@@ -1471,14 +1471,14 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1471
1471
|
model: e.value
|
|
1472
1472
|
// 传递当前模型数据
|
|
1473
1473
|
}), ee), {});
|
|
1474
|
-
return Me(
|
|
1474
|
+
return Me(sl, {
|
|
1475
1475
|
modelValue: e.value,
|
|
1476
1476
|
"onUpdate:modelValue": (ee) => e.value = ee,
|
|
1477
1477
|
info: t.value,
|
|
1478
1478
|
"onUpdate:info": (ee) => t.value = ee,
|
|
1479
1479
|
more: $
|
|
1480
1480
|
}, X);
|
|
1481
|
-
}, o =
|
|
1481
|
+
}, o = pl(), h = () => {
|
|
1482
1482
|
var X, ee, le, se, ie, ge, Ve, Ie, be;
|
|
1483
1483
|
const D = [
|
|
1484
1484
|
{
|
|
@@ -1506,20 +1506,20 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1506
1506
|
{
|
|
1507
1507
|
key: "more",
|
|
1508
1508
|
hidden: (be = (Ie = (Ve = e.value) == null ? void 0 : Ve.query) == null ? void 0 : Ie.more) == null ? void 0 : be.hidden,
|
|
1509
|
-
component: e.value.query.more.mode === 3 ?
|
|
1509
|
+
component: e.value.query.more.mode === 3 ? jt : Re,
|
|
1510
1510
|
props: e.value.query.more.mode === 3 ? { ...e.value.query.more.dialog } : {
|
|
1511
1511
|
...e.value.query.more,
|
|
1512
1512
|
onClick: e.value.query.more.click
|
|
1513
1513
|
},
|
|
1514
1514
|
label: e.value.query.more.label,
|
|
1515
1515
|
sort: e.value.query.more.sort || 0,
|
|
1516
|
-
content: e.value.query.more.mode === 3 ? () => Me(
|
|
1516
|
+
content: e.value.query.more.mode === 3 ? () => Me(Dt, {
|
|
1517
1517
|
class: "query-form",
|
|
1518
1518
|
...Xe(e.value.query, (B) => !["query", "more", "reset"].includes(B))
|
|
1519
1519
|
}, () => c({ slots: o }, !0)) : null
|
|
1520
1520
|
}
|
|
1521
1521
|
];
|
|
1522
|
-
return D.sort((B, De) => B.sort - De.sort), D.filter((B) => !B.hidden).map((B) => B.key === "more" && B.component ===
|
|
1522
|
+
return D.sort((B, De) => B.sort - De.sort), D.filter((B) => !B.hidden).map((B) => B.key === "more" && B.component === jt ? Me(jt, B.props, {
|
|
1523
1523
|
reference: () => Me(Re, e.value.query.more, () => B.label),
|
|
1524
1524
|
default: B.content
|
|
1525
1525
|
}) : (B.props.slot = "query-" + B.key, B.label ? Me(B.component, B.props, () => B.label) : Me(B.component, B.props)));
|
|
@@ -1537,7 +1537,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1537
1537
|
style: Ue({ ...z.value, ...((se = (le = e.value.query) == null ? void 0 : le.container) == null ? void 0 : se.style) || {} }),
|
|
1538
1538
|
onDblclick: H
|
|
1539
1539
|
}, [
|
|
1540
|
-
de(L(
|
|
1540
|
+
de(L(Dt), Y({
|
|
1541
1541
|
onSubmit: $[0] || ($[0] = yt(() => {
|
|
1542
1542
|
}, ["prevent"]))
|
|
1543
1543
|
}, L(Xe)(e.value.query, (M) => !["query", "more", "reset", "btns"].includes(M))), {
|
|
@@ -1552,24 +1552,24 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1552
1552
|
J("div", {
|
|
1553
1553
|
style: Ue((K = (Q = e.value.query) == null ? void 0 : Q.btns) == null ? void 0 : K.style)
|
|
1554
1554
|
}, [
|
|
1555
|
-
e.value.query.group ? (m(), V(L(
|
|
1555
|
+
e.value.query.group ? (m(), V(L(Ot), { key: 0 }, {
|
|
1556
1556
|
default: k(() => [
|
|
1557
|
-
(m(!0), U(oe, null, N(h(), (
|
|
1558
|
-
(m(), V(Ge(
|
|
1557
|
+
(m(!0), U(oe, null, N(h(), (ve) => x(D.$slots, ve.props.slot, {}, () => [
|
|
1558
|
+
(m(), V(Ge(ve)))
|
|
1559
1559
|
], !0)), 256)),
|
|
1560
1560
|
x(D.$slots, "q-btns", {}, void 0, !0)
|
|
1561
1561
|
]),
|
|
1562
1562
|
_: 3
|
|
1563
1563
|
})) : (m(), U(oe, { key: 1 }, [
|
|
1564
|
-
(ae = (Ae = (we = e.value) == null ? void 0 : we.query) == null ? void 0 : Ae.btns) != null && ae.group ? (m(), V(L(
|
|
1564
|
+
(ae = (Ae = (we = e.value) == null ? void 0 : we.query) == null ? void 0 : Ae.btns) != null && ae.group ? (m(), V(L(Ot), { key: 0 }, {
|
|
1565
1565
|
default: k(() => [
|
|
1566
|
-
(m(!0), U(oe, null, N(h(), (
|
|
1567
|
-
(m(), V(Ge(
|
|
1566
|
+
(m(!0), U(oe, null, N(h(), (ve) => x(D.$slots, ve.props.slot, {}, () => [
|
|
1567
|
+
(m(), V(Ge(ve)))
|
|
1568
1568
|
], !0)), 256))
|
|
1569
1569
|
]),
|
|
1570
1570
|
_: 3
|
|
1571
|
-
})) : (m(!0), U(oe, { key: 1 }, N(h(), (
|
|
1572
|
-
(m(), V(Ge(
|
|
1571
|
+
})) : (m(!0), U(oe, { key: 1 }, N(h(), (ve) => x(D.$slots, ve.props.slot, {}, () => [
|
|
1572
|
+
(m(), V(Ge(ve)))
|
|
1573
1573
|
], !0)), 256)),
|
|
1574
1574
|
x(D.$slots, "q-btns", {}, void 0, !0)
|
|
1575
1575
|
], 64))
|
|
@@ -1586,7 +1586,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1586
1586
|
key: 0,
|
|
1587
1587
|
style: Ue([{ "margin-bottom": "18px" }, (be = (Ie = e.value.query) == null ? void 0 : Ie.btns) == null ? void 0 : be.style])
|
|
1588
1588
|
}, [
|
|
1589
|
-
e.value.query.group ? (m(), V(L(
|
|
1589
|
+
e.value.query.group ? (m(), V(L(Ot), { key: 0 }, {
|
|
1590
1590
|
default: k(() => [
|
|
1591
1591
|
(m(!0), U(oe, null, N(h(), (M) => x(D.$slots, M.props.slot, {}, () => [
|
|
1592
1592
|
(m(), V(Ge(M)))
|
|
@@ -1595,7 +1595,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1595
1595
|
]),
|
|
1596
1596
|
_: 3
|
|
1597
1597
|
})) : (m(), U(oe, { key: 1 }, [
|
|
1598
|
-
(De = (B = e.value.query) == null ? void 0 : B.btns) != null && De.group ? (m(), V(L(
|
|
1598
|
+
(De = (B = e.value.query) == null ? void 0 : B.btns) != null && De.group ? (m(), V(L(Ot), { key: 0 }, {
|
|
1599
1599
|
default: k(() => [
|
|
1600
1600
|
(m(!0), U(oe, null, N(h(), (M) => x(D.$slots, M.props.slot, {}, () => [
|
|
1601
1601
|
(m(), V(Ge(M)))
|
|
@@ -1617,12 +1617,12 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1617
1617
|
"show-close": !1
|
|
1618
1618
|
}, e.value.query.more.dialog), ke({
|
|
1619
1619
|
default: k(() => [
|
|
1620
|
-
de(L(
|
|
1620
|
+
de(L(Dt), Y({
|
|
1621
1621
|
onSubmit: $[3] || ($[3] = yt(() => {
|
|
1622
1622
|
}, ["prevent"]))
|
|
1623
1623
|
}, L(Xe)(e.value.query, (M) => !["query", "more", "reset"].includes(M)), { style: { width: "98%" } }), {
|
|
1624
1624
|
default: k(() => [
|
|
1625
|
-
de(
|
|
1625
|
+
de(sl, {
|
|
1626
1626
|
modelValue: e.value,
|
|
1627
1627
|
"onUpdate:modelValue": $[1] || ($[1] = (M) => e.value = M),
|
|
1628
1628
|
info: t.value,
|
|
@@ -1645,7 +1645,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1645
1645
|
(E = (v = (w = (C = (g = e.value) == null ? void 0 : g.query) == null ? void 0 : C.more) == null ? void 0 : w.dialog) == null ? void 0 : v.footer) != null && E.hidden ? void 0 : {
|
|
1646
1646
|
name: "footer",
|
|
1647
1647
|
fn: k(() => [
|
|
1648
|
-
J("div",
|
|
1648
|
+
J("div", qt(vl(e.value.query.more.dialog.footer)), [
|
|
1649
1649
|
de(L(Re), Y(e.value.query.query, {
|
|
1650
1650
|
onClick: $[4] || ($[4] = (M) => e.value.query.query.click())
|
|
1651
1651
|
}), {
|
|
@@ -1667,7 +1667,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1667
1667
|
key: "0"
|
|
1668
1668
|
}
|
|
1669
1669
|
]), 1040, ["modelValue"])) : _e("", !0),
|
|
1670
|
-
de(
|
|
1670
|
+
de(Ul, {
|
|
1671
1671
|
duration: 300,
|
|
1672
1672
|
name: "nested",
|
|
1673
1673
|
style: { padding: "10px" }
|
|
@@ -1675,9 +1675,9 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1675
1675
|
default: k(() => {
|
|
1676
1676
|
var M, I, Q;
|
|
1677
1677
|
return [
|
|
1678
|
-
d.value && !((Q = (I = (M = e.value) == null ? void 0 : M.query) == null ? void 0 : I.more) != null && Q.hidden) && e.value.query.more.mode == 1 ? (m(), U("div",
|
|
1679
|
-
J("div",
|
|
1680
|
-
e.value.query.more.mode == 1 ?
|
|
1678
|
+
d.value && !((Q = (I = (M = e.value) == null ? void 0 : M.query) == null ? void 0 : I.more) != null && Q.hidden) && e.value.query.more.mode == 1 ? (m(), U("div", $a, [
|
|
1679
|
+
J("div", wa, [
|
|
1680
|
+
e.value.query.more.mode == 1 ? Ll((m(), V(L(Dt), Y({
|
|
1681
1681
|
key: 0,
|
|
1682
1682
|
onSubmit: $[7] || ($[7] = yt(() => {
|
|
1683
1683
|
}, ["prevent"]))
|
|
@@ -1687,7 +1687,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1687
1687
|
]),
|
|
1688
1688
|
_: 1
|
|
1689
1689
|
}, 16)), [
|
|
1690
|
-
[
|
|
1690
|
+
[Hl, d.value]
|
|
1691
1691
|
]) : _e("", !0)
|
|
1692
1692
|
])
|
|
1693
1693
|
])) : _e("", !0)
|
|
@@ -1698,7 +1698,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1698
1698
|
], 64);
|
|
1699
1699
|
};
|
|
1700
1700
|
}
|
|
1701
|
-
},
|
|
1701
|
+
}, _a = /* @__PURE__ */ nt(ka, [["__scopeId", "data-v-eaca2240"]]), Sl = {
|
|
1702
1702
|
inline: !0,
|
|
1703
1703
|
type: "hidden",
|
|
1704
1704
|
"scroll-to-error": !0,
|
|
@@ -1729,7 +1729,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1729
1729
|
label: "提交",
|
|
1730
1730
|
plain: !0,
|
|
1731
1731
|
hidden: !1,
|
|
1732
|
-
icon: () => Me(
|
|
1732
|
+
icon: () => Me(Rt)
|
|
1733
1733
|
},
|
|
1734
1734
|
//保存并提交按钮属性
|
|
1735
1735
|
saveSubmit: {
|
|
@@ -1738,7 +1738,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1738
1738
|
label: "保存提交",
|
|
1739
1739
|
plain: !0,
|
|
1740
1740
|
hidden: !0,
|
|
1741
|
-
icon: () => Me(
|
|
1741
|
+
icon: () => Me(Ql)
|
|
1742
1742
|
},
|
|
1743
1743
|
//表单重置按钮属性
|
|
1744
1744
|
reset: {
|
|
@@ -1746,14 +1746,14 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1746
1746
|
label: "重置",
|
|
1747
1747
|
hidden: !0,
|
|
1748
1748
|
plain: !0,
|
|
1749
|
-
icon: () => Me(
|
|
1749
|
+
icon: () => Me(bl)
|
|
1750
1750
|
},
|
|
1751
1751
|
cancel: {
|
|
1752
1752
|
disabled: !1,
|
|
1753
1753
|
label: "取消",
|
|
1754
1754
|
hidden: !0,
|
|
1755
1755
|
plain: !0,
|
|
1756
|
-
icon: () => Me(
|
|
1756
|
+
icon: () => Me(Xl)
|
|
1757
1757
|
},
|
|
1758
1758
|
slots: {},
|
|
1759
1759
|
tabs: {
|
|
@@ -1762,7 +1762,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1762
1762
|
height: "200px",
|
|
1763
1763
|
style: { minHeight: "200px" }
|
|
1764
1764
|
}
|
|
1765
|
-
},
|
|
1765
|
+
}, Tl = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"], Ca = { class: "g-form-container" }, xa = /* @__PURE__ */ Object.assign({
|
|
1766
1766
|
name: "g-form",
|
|
1767
1767
|
inheritAttrs: !1
|
|
1768
1768
|
}, {
|
|
@@ -1774,14 +1774,14 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1774
1774
|
emits: /* @__PURE__ */ ut(["submit", "reset"], ["update:modelValue"]),
|
|
1775
1775
|
setup(r, { expose: s, emit: e }) {
|
|
1776
1776
|
var Ie, be, B, De, Qe, W, q;
|
|
1777
|
-
const l = ot(r, "modelValue"), n = e, d = ne(null), t =
|
|
1777
|
+
const l = ot(r, "modelValue"), n = e, d = ne(null), t = Ut("options"), i = ne({}), T = ne(""), f = r;
|
|
1778
1778
|
l.value.form = Le(
|
|
1779
|
-
|
|
1779
|
+
Sl,
|
|
1780
1780
|
t == null ? void 0 : t.form,
|
|
1781
1781
|
(Ie = l.value) == null ? void 0 : Ie.form
|
|
1782
1782
|
), l.value.form.style = Le(
|
|
1783
1783
|
(B = (be = l.value) == null ? void 0 : be.form) == null ? void 0 : B.style,
|
|
1784
|
-
{ ...(De =
|
|
1784
|
+
{ ...(De = Lt()) == null ? void 0 : De.style }
|
|
1785
1785
|
);
|
|
1786
1786
|
const p = async (g, C, w) => {
|
|
1787
1787
|
let v = 5;
|
|
@@ -1909,9 +1909,9 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1909
1909
|
const C = typeof g.editor == "function" ? g.editor(i.value, (w = l.value.form) == null ? void 0 : w.modalState) : g.editor;
|
|
1910
1910
|
return ((v = l.value.form) == null ? void 0 : v.modalState) === "edit" ? ((E = C == null ? void 0 : C.ep) == null ? void 0 : E.type) ?? (C == null ? void 0 : C.type) ?? g.type : ((M = l.value.form) == null ? void 0 : M.modalState) === "add" ? ((I = C == null ? void 0 : C.ap) == null ? void 0 : I.type) ?? (C == null ? void 0 : C.type) ?? g.type : (C == null ? void 0 : C.type) ?? g.type;
|
|
1911
1911
|
}, $ = (g) => g === "left" ? "flex-start" : g === "right" ? "flex-end" : g === "center" ? "center" : "flex-end";
|
|
1912
|
-
|
|
1912
|
+
Ct(() => {
|
|
1913
1913
|
X(), f != null && f.editForm ? i.value = f.editForm : i.value = le.value;
|
|
1914
|
-
}),
|
|
1914
|
+
}), jl(() => {
|
|
1915
1915
|
d.value = null;
|
|
1916
1916
|
});
|
|
1917
1917
|
const X = () => {
|
|
@@ -1928,7 +1928,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
1928
1928
|
const g = l.value.form.modalState;
|
|
1929
1929
|
let C = Object.entries(l.value).filter(([w, v]) => {
|
|
1930
1930
|
var M, I;
|
|
1931
|
-
if (v.type === "hidden" || v.type === "control" || v.hidden === !0 || v.edit === !1 || v.editor === !1 ||
|
|
1931
|
+
if (v.type === "hidden" || v.type === "control" || v.hidden === !0 || v.edit === !1 || v.editor === !1 || Tl.includes(w)) return !1;
|
|
1932
1932
|
const E = typeof v.editor == "function" ? v.editor(i.value, g) : v.editor;
|
|
1933
1933
|
return g === "edit" ? ((M = E == null ? void 0 : E.ep) == null ? void 0 : M.editor) !== !1 : g === "add" ? ((I = E == null ? void 0 : E.ap) == null ? void 0 : I.editor) !== !1 : !0;
|
|
1934
1934
|
});
|
|
@@ -2017,7 +2017,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2017
2017
|
}), (g, C) => {
|
|
2018
2018
|
var K, we, Ae;
|
|
2019
2019
|
const w = j("el-form-item"), v = j("el-col"), E = j("el-tab-pane"), M = j("el-tabs"), I = j("el-form"), Q = j("el-button");
|
|
2020
|
-
return m(), U("div",
|
|
2020
|
+
return m(), U("div", Ca, [
|
|
2021
2021
|
de(I, Y(
|
|
2022
2022
|
{
|
|
2023
2023
|
ref_key: "gform",
|
|
@@ -2037,12 +2037,12 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2037
2037
|
), {
|
|
2038
2038
|
default: k(() => [
|
|
2039
2039
|
se.value.length > 0 ? x(g.$slots, "default", { key: 0 }, () => {
|
|
2040
|
-
var ae,
|
|
2040
|
+
var ae, ve, Ye;
|
|
2041
2041
|
return [
|
|
2042
2042
|
de(M, Y({
|
|
2043
2043
|
modelValue: ie.value,
|
|
2044
2044
|
"onUpdate:modelValue": C[0] || (C[0] = (ye) => ie.value = ye),
|
|
2045
|
-
style: [{ width: "100%" }, { height: (Ye = (
|
|
2045
|
+
style: [{ width: "100%" }, { height: (Ye = (ve = (ae = l.value) == null ? void 0 : ae.form) == null ? void 0 : ve.tabs) == null ? void 0 : Ye.height }]
|
|
2046
2046
|
}, l.value.form.tabs), {
|
|
2047
2047
|
default: k(() => [
|
|
2048
2048
|
(m(!0), U(oe, null, N(se.value, (ye) => (m(), V(E, Y({
|
|
@@ -2071,7 +2071,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2071
2071
|
model: l.value,
|
|
2072
2072
|
form: i.value
|
|
2073
2073
|
}, () => [
|
|
2074
|
-
(m(), V(
|
|
2074
|
+
(m(), V(_t, {
|
|
2075
2075
|
modelValue: i.value[ue.key],
|
|
2076
2076
|
"onUpdate:modelValue": (P) => i.value[ue.key] = P,
|
|
2077
2077
|
item: H(ue),
|
|
@@ -2110,8 +2110,8 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2110
2110
|
}, 16, ["modelValue", "style"])
|
|
2111
2111
|
];
|
|
2112
2112
|
}, !0) : x(g.$slots, "default", { key: 1 }, () => [
|
|
2113
|
-
(m(!0), U(oe, null, N(ee.value, (ae,
|
|
2114
|
-
key:
|
|
2113
|
+
(m(!0), U(oe, null, N(ee.value, (ae, ve) => (m(), V(v, Y({ ref_for: !0 }, { ...l.value.form.cols, ...ae.col }, {
|
|
2114
|
+
key: ve,
|
|
2115
2115
|
style: { width: "100%" }
|
|
2116
2116
|
}), {
|
|
2117
2117
|
default: k(() => {
|
|
@@ -2119,11 +2119,11 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2119
2119
|
return [
|
|
2120
2120
|
de(w, Y({
|
|
2121
2121
|
label: ae.label,
|
|
2122
|
-
prop:
|
|
2122
|
+
prop: ve,
|
|
2123
2123
|
rules: z(ae)
|
|
2124
2124
|
}, { ref_for: !0 }, { ...(Ye = l.value) == null ? void 0 : Ye.formItems, ...ae == null ? void 0 : ae.formItem }, { style: { width: "100%" } }), {
|
|
2125
2125
|
label: k((ye) => [
|
|
2126
|
-
x(g.$slots, `f-${
|
|
2126
|
+
x(g.$slots, `f-${ve}-label`, {
|
|
2127
2127
|
data: ye,
|
|
2128
2128
|
item: ae,
|
|
2129
2129
|
model: l.value
|
|
@@ -2132,19 +2132,19 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2132
2132
|
], !0)
|
|
2133
2133
|
]),
|
|
2134
2134
|
default: k(() => [
|
|
2135
|
-
x(g.$slots, "f-" +
|
|
2135
|
+
x(g.$slots, "f-" + ve, {
|
|
2136
2136
|
item: ae,
|
|
2137
2137
|
formInfo: i.value,
|
|
2138
2138
|
model: l.value,
|
|
2139
2139
|
form: i.value
|
|
2140
2140
|
}, () => [
|
|
2141
|
-
(m(), V(
|
|
2142
|
-
modelValue: i.value[
|
|
2143
|
-
"onUpdate:modelValue": (ye) => i.value[
|
|
2141
|
+
(m(), V(_t, {
|
|
2142
|
+
modelValue: i.value[ve],
|
|
2143
|
+
"onUpdate:modelValue": (ye) => i.value[ve] = ye,
|
|
2144
2144
|
item: H(ae, !0),
|
|
2145
|
-
ctrlKey:
|
|
2145
|
+
ctrlKey: ve,
|
|
2146
2146
|
ctrlType: D(ae),
|
|
2147
|
-
key: `${
|
|
2147
|
+
key: `${ve}-${T.value}`,
|
|
2148
2148
|
model: l.value,
|
|
2149
2149
|
class: "g-ctrl-container",
|
|
2150
2150
|
t: "f",
|
|
@@ -2181,9 +2181,9 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2181
2181
|
(m(!0), U(oe, null, N(Ve.value, (ae) => (m(), U(oe, null, [
|
|
2182
2182
|
x(g.$slots, ae.name + "-left", {}, void 0, !0),
|
|
2183
2183
|
x(g.$slots, ae.name, {}, () => {
|
|
2184
|
-
var
|
|
2184
|
+
var ve;
|
|
2185
2185
|
return [
|
|
2186
|
-
(
|
|
2186
|
+
(ve = ae == null ? void 0 : ae.info) != null && ve.hidden ? _e("", !0) : (m(), V(Q, Y({
|
|
2187
2187
|
key: 0,
|
|
2188
2188
|
ref_for: !0
|
|
2189
2189
|
}, ae.info, {
|
|
@@ -2204,10 +2204,10 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2204
2204
|
]);
|
|
2205
2205
|
};
|
|
2206
2206
|
}
|
|
2207
|
-
}),
|
|
2207
|
+
}), El = /* @__PURE__ */ nt(xa, [["__scopeId", "data-v-5a0fe2f9"]]), Ma = { class: "dialog-container" }, Sa = {
|
|
2208
2208
|
key: 1,
|
|
2209
2209
|
style: { overflow: "hidden" }
|
|
2210
|
-
},
|
|
2210
|
+
}, Ta = { style: { display: "flex", flex: "1", "margin-left": "10px" } }, Ea = /* @__PURE__ */ Object.assign({
|
|
2211
2211
|
name: "g-model",
|
|
2212
2212
|
inheritAttrs: !1
|
|
2213
2213
|
}, {
|
|
@@ -2231,10 +2231,10 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2231
2231
|
maximize: { type: Boolean, default: !1 },
|
|
2232
2232
|
minimize: { type: Boolean, default: !1 },
|
|
2233
2233
|
// 图标配置
|
|
2234
|
-
maxIcon: { type: Object, default: () =>
|
|
2235
|
-
resizeIcon: { type: Object, default: () =>
|
|
2236
|
-
closeIcon: { type: Object, default: () =>
|
|
2237
|
-
minIcon: { type: Object, default: () =>
|
|
2234
|
+
maxIcon: { type: Object, default: () => Kl },
|
|
2235
|
+
resizeIcon: { type: Object, default: () => $l },
|
|
2236
|
+
closeIcon: { type: Object, default: () => Jl },
|
|
2237
|
+
minIcon: { type: Object, default: () => Zl },
|
|
2238
2238
|
draggable: { type: Boolean, default: !0 },
|
|
2239
2239
|
showClose: { type: Boolean, default: !0 },
|
|
2240
2240
|
fullscreen: { type: Boolean, default: !1 },
|
|
@@ -2252,7 +2252,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2252
2252
|
"restore"
|
|
2253
2253
|
],
|
|
2254
2254
|
setup(r, { expose: s, emit: e }) {
|
|
2255
|
-
const l = r, n =
|
|
2255
|
+
const l = r, n = Lt(), d = e, t = ne(l.fullscreen), i = Ne(() => l.type === "drawer" ? "el-drawer" : "el-dialog"), T = Ne(() => {
|
|
2256
2256
|
const le = {
|
|
2257
2257
|
modal: l.modal,
|
|
2258
2258
|
closeOnClickModal: l.type !== "dialog",
|
|
@@ -2299,12 +2299,12 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2299
2299
|
}
|
|
2300
2300
|
return s({
|
|
2301
2301
|
handleClose: () => p.value.handleClose()
|
|
2302
|
-
}), (le, se) => (m(), U("div",
|
|
2302
|
+
}), (le, se) => (m(), U("div", Ma, [
|
|
2303
2303
|
o.value ? (m(), U("div", {
|
|
2304
2304
|
key: 0,
|
|
2305
2305
|
class: "minimize-ball",
|
|
2306
2306
|
onClick: ee
|
|
2307
|
-
}, Ee(r.title), 1)) : (m(), U("div",
|
|
2307
|
+
}, Ee(r.title), 1)) : (m(), U("div", Sa, [
|
|
2308
2308
|
(m(), V(Ge(i.value), Y({
|
|
2309
2309
|
ref_key: "dialogExtend",
|
|
2310
2310
|
ref: p,
|
|
@@ -2330,10 +2330,10 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2330
2330
|
style: Ue(l.headerStyle)
|
|
2331
2331
|
}, [
|
|
2332
2332
|
x(le.$slots, "title", {}, () => [
|
|
2333
|
-
J("span",
|
|
2333
|
+
J("span", Ta, Ee(r.title), 1)
|
|
2334
2334
|
], !0),
|
|
2335
2335
|
J("div", null, [
|
|
2336
|
-
r.minimize ? (m(), V(L(
|
|
2336
|
+
r.minimize ? (m(), V(L(Ft), {
|
|
2337
2337
|
key: 0,
|
|
2338
2338
|
class: "btn-icon",
|
|
2339
2339
|
onClick: yt(X, ["stop"])
|
|
@@ -2343,7 +2343,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2343
2343
|
]),
|
|
2344
2344
|
_: 1
|
|
2345
2345
|
})) : _e("", !0),
|
|
2346
|
-
r.maximize ? (m(), V(L(
|
|
2346
|
+
r.maximize ? (m(), V(L(Ft), {
|
|
2347
2347
|
key: 1,
|
|
2348
2348
|
class: "btn-icon",
|
|
2349
2349
|
onClick: yt($, ["stop"])
|
|
@@ -2353,7 +2353,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2353
2353
|
]),
|
|
2354
2354
|
_: 1
|
|
2355
2355
|
})) : _e("", !0),
|
|
2356
|
-
l.showClose ? (m(), V(L(
|
|
2356
|
+
l.showClose ? (m(), V(L(Ft), {
|
|
2357
2357
|
key: 2,
|
|
2358
2358
|
class: "btn-icon",
|
|
2359
2359
|
onClick: se[0] || (se[0] = yt((Ve) => p.value.handleClose(), ["stop"]))
|
|
@@ -2390,10 +2390,10 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2390
2390
|
]))
|
|
2391
2391
|
]));
|
|
2392
2392
|
}
|
|
2393
|
-
}),
|
|
2393
|
+
}), Nt = /* @__PURE__ */ nt(Ea, [["__scopeId", "data-v-99d6bb1e"]]), Va = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, Oa = { style: { display: "flex", flex: "1", "align-items": "center" } }, Ia = {
|
|
2394
2394
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2395
2395
|
id: "excelSortEl"
|
|
2396
|
-
},
|
|
2396
|
+
}, qa = ["textContent"], Aa = { style: { width: "100%", display: "flex", padding: "10px 10px 0 10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Ya = {
|
|
2397
2397
|
__name: "check-excel-item",
|
|
2398
2398
|
props: {
|
|
2399
2399
|
items: Array,
|
|
@@ -2423,22 +2423,22 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2423
2423
|
}
|
|
2424
2424
|
});
|
|
2425
2425
|
};
|
|
2426
|
-
return
|
|
2427
|
-
const T = new
|
|
2426
|
+
return Ct(() => {
|
|
2427
|
+
const T = new _l(document.getElementById("excelSortEl"), {
|
|
2428
2428
|
animation: 150,
|
|
2429
2429
|
onEnd: () => {
|
|
2430
2430
|
T.toArray();
|
|
2431
2431
|
}
|
|
2432
2432
|
}), f = T;
|
|
2433
|
-
|
|
2433
|
+
Fl(() => {
|
|
2434
2434
|
f && f.destroy();
|
|
2435
2435
|
});
|
|
2436
2436
|
}), (T, f) => {
|
|
2437
2437
|
const p = j("el-divider"), c = j("el-icon"), o = j("el-text"), h = j("el-checkbox"), z = j("el-button");
|
|
2438
|
-
return m(), U("div",
|
|
2438
|
+
return m(), U("div", Va, [
|
|
2439
2439
|
J("div", null, [
|
|
2440
|
-
J("div",
|
|
2441
|
-
J("div",
|
|
2440
|
+
J("div", Da, [
|
|
2441
|
+
J("div", Oa, [
|
|
2442
2442
|
J("a", {
|
|
2443
2443
|
onClick: d,
|
|
2444
2444
|
style: { cursor: "pointer" }
|
|
@@ -2457,7 +2457,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2457
2457
|
default: k(() => [
|
|
2458
2458
|
de(c, { size: "16" }, {
|
|
2459
2459
|
default: k(() => [
|
|
2460
|
-
de(L(
|
|
2460
|
+
de(L(wl))
|
|
2461
2461
|
]),
|
|
2462
2462
|
_: 1
|
|
2463
2463
|
}),
|
|
@@ -2468,7 +2468,7 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2468
2468
|
])
|
|
2469
2469
|
]),
|
|
2470
2470
|
f[1] || (f[1] = J("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2471
|
-
J("div",
|
|
2471
|
+
J("div", Ia, [
|
|
2472
2472
|
(m(!0), U(oe, null, N(n.value, (H) => (m(), V(h, {
|
|
2473
2473
|
class: "check-box-hover",
|
|
2474
2474
|
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" },
|
|
@@ -2482,17 +2482,17 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2482
2482
|
J("span", {
|
|
2483
2483
|
textContent: Ee(H.label),
|
|
2484
2484
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2485
|
-
}, null, 8,
|
|
2485
|
+
}, null, 8, qa)
|
|
2486
2486
|
]),
|
|
2487
2487
|
_: 2
|
|
2488
2488
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2489
2489
|
])
|
|
2490
2490
|
]),
|
|
2491
|
-
J("div",
|
|
2491
|
+
J("div", Aa, [
|
|
2492
2492
|
de(z, {
|
|
2493
2493
|
type: "primary",
|
|
2494
2494
|
onClick: i,
|
|
2495
|
-
icon: L(
|
|
2495
|
+
icon: L(kl),
|
|
2496
2496
|
disabled: n.value.filter((H) => H.value).length < 1
|
|
2497
2497
|
}, {
|
|
2498
2498
|
default: k(() => [
|
|
@@ -2504,8 +2504,8 @@ const It = /* @__PURE__ */ il(Pl), nt = (r, s) => {
|
|
|
2504
2504
|
]);
|
|
2505
2505
|
};
|
|
2506
2506
|
}
|
|
2507
|
-
},
|
|
2508
|
-
Ce.version(
|
|
2507
|
+
}, za = /* @__PURE__ */ nt(Ya, [["__scopeId", "data-v-8d7383f9"]]), Ua = "vue-gyc-ui", La = 1, Ce = new na(Ua);
|
|
2508
|
+
Ce.version(La).stores({
|
|
2509
2509
|
// 记录表格项设置信息
|
|
2510
2510
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2511
2511
|
// 记录表格分页条数
|
|
@@ -2519,7 +2519,7 @@ const mt = (r, s) => {
|
|
|
2519
2519
|
if (!r || typeof r != "string")
|
|
2520
2520
|
throw new Error("page参数必须是非空字符串");
|
|
2521
2521
|
};
|
|
2522
|
-
async function
|
|
2522
|
+
async function It(r, s, e) {
|
|
2523
2523
|
try {
|
|
2524
2524
|
const l = await Ce.tableColsState.where({ page: r }).first();
|
|
2525
2525
|
l ? e === "add" ? l.keys.includes(s) || (l.keys.push(s), await Ce.tableColsState.put(l)) : e === "del" ? (l.keys = l.keys.filter((n) => n !== s), await Ce.tableColsState.put(l)) : e === "delAll" ? (l.keys = s, await Ce.tableColsState.put(l)) : e === "selectAll" && await Ce.tableColsState.where({ page: r }).delete() : e === "add" ? await Ce.tableColsState.add({ page: r, keys: [s] }) : e === "delAll" && await Ce.tableColsState.add({ page: r, keys: s });
|
|
@@ -2527,7 +2527,7 @@ async function Dt(r, s, e) {
|
|
|
2527
2527
|
throw console.error(`处理表格列状态时出错 (page: ${r}, key: ${s}, state: ${e}):`, l), l;
|
|
2528
2528
|
}
|
|
2529
2529
|
}
|
|
2530
|
-
async function
|
|
2530
|
+
async function Ha(r, s, e) {
|
|
2531
2531
|
mt(r);
|
|
2532
2532
|
try {
|
|
2533
2533
|
const l = await Ce.tableWidths.where({ page: r, key: s }).first();
|
|
@@ -2536,7 +2536,7 @@ async function Ca(r, s, e) {
|
|
|
2536
2536
|
throw console.error(`保存表格项设置信息时出错 (page: ${r}, key: ${s}):`, l), l;
|
|
2537
2537
|
}
|
|
2538
2538
|
}
|
|
2539
|
-
async function
|
|
2539
|
+
async function ja(r) {
|
|
2540
2540
|
mt(r);
|
|
2541
2541
|
try {
|
|
2542
2542
|
return await Ce.tableWidths.where({ page: r }).toArray();
|
|
@@ -2544,7 +2544,7 @@ async function xa(r) {
|
|
|
2544
2544
|
throw console.error(`获取表格项设置信息时出错 (page: ${r}):`, s), s;
|
|
2545
2545
|
}
|
|
2546
2546
|
}
|
|
2547
|
-
async function
|
|
2547
|
+
async function Fa(r) {
|
|
2548
2548
|
mt(r);
|
|
2549
2549
|
try {
|
|
2550
2550
|
const s = await Ce.tableColsState.where({ page: r }).toArray();
|
|
@@ -2553,7 +2553,7 @@ async function Ma(r) {
|
|
|
2553
2553
|
throw console.error(`获取表格列状态时出错 (page: ${r}):`, s), s;
|
|
2554
2554
|
}
|
|
2555
2555
|
}
|
|
2556
|
-
async function
|
|
2556
|
+
async function Ra(r) {
|
|
2557
2557
|
mt(r);
|
|
2558
2558
|
try {
|
|
2559
2559
|
return await Ce.transaction("rw", Ce.tableWidths, Ce.pageInfo, Ce.sorts, Ce.tableColsState, async () => {
|
|
@@ -2568,7 +2568,7 @@ async function Sa(r) {
|
|
|
2568
2568
|
throw console.error(`删除页面"${r}"的表格设置信息时出错:`, s), s;
|
|
2569
2569
|
}
|
|
2570
2570
|
}
|
|
2571
|
-
async function
|
|
2571
|
+
async function Ba({ page: r, size: s }) {
|
|
2572
2572
|
mt(r);
|
|
2573
2573
|
try {
|
|
2574
2574
|
const e = await Ce.pageInfo.where({ page: r }).first();
|
|
@@ -2577,7 +2577,7 @@ async function Ta({ page: r, size: s }) {
|
|
|
2577
2577
|
throw console.error(`保存分页条数时出错 (page: ${r}):`, e), e;
|
|
2578
2578
|
}
|
|
2579
2579
|
}
|
|
2580
|
-
async function
|
|
2580
|
+
async function Pa(r) {
|
|
2581
2581
|
mt(r);
|
|
2582
2582
|
try {
|
|
2583
2583
|
const s = await Ce.pageInfo.where({ page: r }).first();
|
|
@@ -2586,7 +2586,7 @@ async function Ea(r) {
|
|
|
2586
2586
|
throw console.error(`获取分页条数时出错 (page: ${r}):`, s), s;
|
|
2587
2587
|
}
|
|
2588
2588
|
}
|
|
2589
|
-
async function
|
|
2589
|
+
async function Na(r, s) {
|
|
2590
2590
|
mt(r);
|
|
2591
2591
|
try {
|
|
2592
2592
|
const e = await Ce.sorts.where({ page: r }).first();
|
|
@@ -2595,7 +2595,7 @@ async function Va(r, s) {
|
|
|
2595
2595
|
throw console.error(`保存表格字段顺序时出错 (page: ${r}):`, e), e;
|
|
2596
2596
|
}
|
|
2597
2597
|
}
|
|
2598
|
-
async function
|
|
2598
|
+
async function Wa(r) {
|
|
2599
2599
|
mt(r);
|
|
2600
2600
|
try {
|
|
2601
2601
|
const s = await Ce.sorts.where({ page: r }).first();
|
|
@@ -2604,13 +2604,13 @@ async function Da(r) {
|
|
|
2604
2604
|
throw console.error(`获取表格字段顺序时出错 (page: ${r}):`, s), s;
|
|
2605
2605
|
}
|
|
2606
2606
|
}
|
|
2607
|
-
const
|
|
2607
|
+
const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { style: { display: "flex", "align-items": "center", height: "30px" } }, Qa = {
|
|
2608
2608
|
style: { display: "flex", flex: "1", "align-items": "center" },
|
|
2609
2609
|
class: "allcheck"
|
|
2610
|
-
},
|
|
2610
|
+
}, Za = {
|
|
2611
2611
|
id: "cols",
|
|
2612
2612
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2613
|
-
},
|
|
2613
|
+
}, Ja = ["textContent"], Ka = {
|
|
2614
2614
|
__name: "columns-setting",
|
|
2615
2615
|
props: /* @__PURE__ */ ut({
|
|
2616
2616
|
tuid: {
|
|
@@ -2626,18 +2626,18 @@ const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { st
|
|
|
2626
2626
|
const e = r, l = s;
|
|
2627
2627
|
let n = ne([]);
|
|
2628
2628
|
const d = ot(r, "modelValue"), t = async (c, o) => {
|
|
2629
|
-
c ? (d.value[o].showCol = !0, await
|
|
2629
|
+
c ? (d.value[o].showCol = !0, await It(e.tuid, o, "del")) : (d.value[o].showCol = !1, await It(e.tuid, o, "add"));
|
|
2630
2630
|
}, i = () => {
|
|
2631
2631
|
const c = document.getElementById("cols");
|
|
2632
2632
|
if (c) {
|
|
2633
|
-
let o =
|
|
2633
|
+
let o = _l.create(c, {
|
|
2634
2634
|
animation: 150,
|
|
2635
2635
|
filter: ".filtered",
|
|
2636
2636
|
sort: !0,
|
|
2637
2637
|
onEnd: async () => {
|
|
2638
2638
|
let h = o.toArray();
|
|
2639
2639
|
try {
|
|
2640
|
-
|
|
2640
|
+
Na(e.tuid, h).then((z) => {
|
|
2641
2641
|
l("setting-drag-end");
|
|
2642
2642
|
});
|
|
2643
2643
|
} catch (z) {
|
|
@@ -2653,7 +2653,7 @@ const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { st
|
|
|
2653
2653
|
try {
|
|
2654
2654
|
n.value.forEach((c) => {
|
|
2655
2655
|
c.showCol = !0;
|
|
2656
|
-
}),
|
|
2656
|
+
}), It(e.tuid, [], "selectAll").then((c) => {
|
|
2657
2657
|
l("select-all");
|
|
2658
2658
|
});
|
|
2659
2659
|
} catch (c) {
|
|
@@ -2667,7 +2667,7 @@ const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { st
|
|
|
2667
2667
|
let c = n.value.filter((o) => !o.alwaysShow && o.value != "control" && o.value != "hidden");
|
|
2668
2668
|
c.forEach((o) => {
|
|
2669
2669
|
o.showCol = !1;
|
|
2670
|
-
}),
|
|
2670
|
+
}), It(e.tuid, c.map((o) => o.value), "delAll").then((o) => {
|
|
2671
2671
|
l("select-all");
|
|
2672
2672
|
});
|
|
2673
2673
|
} catch (c) {
|
|
@@ -2677,12 +2677,12 @@ const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { st
|
|
|
2677
2677
|
});
|
|
2678
2678
|
}
|
|
2679
2679
|
}, p = () => {
|
|
2680
|
-
|
|
2680
|
+
fl.confirm("确定要复位吗?", "提示", {
|
|
2681
2681
|
confirmButtonText: "确定",
|
|
2682
2682
|
cancelButtonText: "取消",
|
|
2683
2683
|
type: "warning"
|
|
2684
2684
|
}).then(() => {
|
|
2685
|
-
|
|
2685
|
+
Ra(e.tuid).then((c) => {
|
|
2686
2686
|
window.location.reload();
|
|
2687
2687
|
}).catch((c) => {
|
|
2688
2688
|
console.error("复位操作出错:", c), ft({
|
|
@@ -2692,7 +2692,7 @@ const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { st
|
|
|
2692
2692
|
});
|
|
2693
2693
|
});
|
|
2694
2694
|
};
|
|
2695
|
-
return
|
|
2695
|
+
return Ct(async () => {
|
|
2696
2696
|
n.value = Object.entries(d.value).filter(([, c]) => c.visible !== !1).filter(([, c]) => !["selection", "index", "expand", "control"].includes(c.type)).filter(([, c]) => c.type != "hidden").map(([c, o]) => ({
|
|
2697
2697
|
label: o.label,
|
|
2698
2698
|
value: c,
|
|
@@ -2703,9 +2703,9 @@ const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { st
|
|
|
2703
2703
|
})).sort((c, o) => c.sort - o.sort), i();
|
|
2704
2704
|
}), (c, o) => {
|
|
2705
2705
|
const h = j("el-divider"), z = j("el-icon"), H = j("el-text"), D = j("el-checkbox");
|
|
2706
|
-
return m(), U("div",
|
|
2707
|
-
J("div",
|
|
2708
|
-
J("div",
|
|
2706
|
+
return m(), U("div", Ga, [
|
|
2707
|
+
J("div", Xa, [
|
|
2708
|
+
J("div", Qa, [
|
|
2709
2709
|
J("a", { onClick: T }, "全选"),
|
|
2710
2710
|
de(h, { direction: "vertical" }),
|
|
2711
2711
|
J("a", { onClick: f }, "全不选"),
|
|
@@ -2716,7 +2716,7 @@ const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { st
|
|
|
2716
2716
|
default: k(() => [
|
|
2717
2717
|
de(z, { size: "16" }, {
|
|
2718
2718
|
default: k(() => [
|
|
2719
|
-
de(L(
|
|
2719
|
+
de(L(wl))
|
|
2720
2720
|
]),
|
|
2721
2721
|
_: 1
|
|
2722
2722
|
}),
|
|
@@ -2726,12 +2726,12 @@ const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { st
|
|
|
2726
2726
|
})
|
|
2727
2727
|
]),
|
|
2728
2728
|
J("div", null, [
|
|
2729
|
-
J("div",
|
|
2729
|
+
J("div", Za, [
|
|
2730
2730
|
(m(!0), U(oe, null, N(L(n), ($) => (m(), V(D, {
|
|
2731
2731
|
modelValue: $.showCol,
|
|
2732
2732
|
"onUpdate:modelValue": (X) => $.showCol = X,
|
|
2733
2733
|
"data-id": $.value,
|
|
2734
|
-
class:
|
|
2734
|
+
class: ml(["check-box-hover", $.value == "control" ? "filtered" : ""]),
|
|
2735
2735
|
onChange: (X) => t(X, $.value),
|
|
2736
2736
|
style: { width: "125px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "2px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
2737
2737
|
value: $.value,
|
|
@@ -2743,7 +2743,7 @@ const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { st
|
|
|
2743
2743
|
J("span", {
|
|
2744
2744
|
textContent: Ee($.label),
|
|
2745
2745
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2746
|
-
}, null, 8,
|
|
2746
|
+
}, null, 8, Ja)
|
|
2747
2747
|
]),
|
|
2748
2748
|
_: 2
|
|
2749
2749
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2752,7 +2752,7 @@ const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { st
|
|
|
2752
2752
|
]);
|
|
2753
2753
|
};
|
|
2754
2754
|
}
|
|
2755
|
-
},
|
|
2755
|
+
}, er = /* @__PURE__ */ nt(Ka, [["__scopeId", "data-v-750b37bc"]]), tr = { class: "title" }, lr = { class: "content" }, ar = {
|
|
2756
2756
|
__name: "g-cell-toopTip",
|
|
2757
2757
|
props: {
|
|
2758
2758
|
content: {
|
|
@@ -2772,20 +2772,20 @@ const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { st
|
|
|
2772
2772
|
class: "g-cell-toopTip",
|
|
2773
2773
|
style: Ue({ width: s.column.width + "px" })
|
|
2774
2774
|
}, [
|
|
2775
|
-
J("div",
|
|
2775
|
+
J("div", tr, [
|
|
2776
2776
|
n[0] || (n[0] = J("span", { class: "title-text" }, "内容", -1)),
|
|
2777
2777
|
J("span", {
|
|
2778
2778
|
class: "copy-btn",
|
|
2779
2779
|
onClick: e,
|
|
2780
2780
|
title: "复制内容"
|
|
2781
2781
|
}, [
|
|
2782
|
-
de(L(
|
|
2782
|
+
de(L(ea))
|
|
2783
2783
|
])
|
|
2784
2784
|
]),
|
|
2785
|
-
J("div",
|
|
2785
|
+
J("div", lr, Ee(s.content), 1)
|
|
2786
2786
|
], 4));
|
|
2787
2787
|
}
|
|
2788
|
-
},
|
|
2788
|
+
}, rr = /* @__PURE__ */ nt(ar, [["__scopeId", "data-v-f28912da"]]), nr = /* @__PURE__ */ Object.assign({
|
|
2789
2789
|
name: "g-detail",
|
|
2790
2790
|
inheritAttrs: !1
|
|
2791
2791
|
}, {
|
|
@@ -2806,7 +2806,7 @@ const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { st
|
|
|
2806
2806
|
}
|
|
2807
2807
|
},
|
|
2808
2808
|
setup(r) {
|
|
2809
|
-
const s = r, e =
|
|
2809
|
+
const s = r, e = Ut("options"), l = {
|
|
2810
2810
|
border: !0,
|
|
2811
2811
|
labelWidth: "100px",
|
|
2812
2812
|
column: 2
|
|
@@ -2833,7 +2833,7 @@ const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { st
|
|
|
2833
2833
|
const h = i(o);
|
|
2834
2834
|
return (h == null ? void 0 : h.type) || "text-info";
|
|
2835
2835
|
}, f = Ne(() => Object.entries(s.m).filter(([o, h]) => {
|
|
2836
|
-
if (
|
|
2836
|
+
if (Tl.includes(o) || (h == null ? void 0 : h.type) === "hidden") return !1;
|
|
2837
2837
|
let z = (h == null ? void 0 : h.visible) !== !1;
|
|
2838
2838
|
const H = i(o);
|
|
2839
2839
|
return Object.hasOwn(H, "visible") ? z = H.visible : Object.hasOwn(H, "hidden") && (z = !H.hidden), z;
|
|
@@ -2849,7 +2849,7 @@ const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { st
|
|
|
2849
2849
|
const H = i(h);
|
|
2850
2850
|
let D = Object.hasOwn(H, "value") ? H.value : z == null ? void 0 : z.value;
|
|
2851
2851
|
const $ = H.format || p[z == null ? void 0 : z.type];
|
|
2852
|
-
return $ && D && (D =
|
|
2852
|
+
return $ && D && (D = At(D).format($)), [h, D];
|
|
2853
2853
|
})), ...s.row }));
|
|
2854
2854
|
return (o, h) => {
|
|
2855
2855
|
var D;
|
|
@@ -2879,7 +2879,7 @@ const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { st
|
|
|
2879
2879
|
x(o.$slots, `view-${$}`, {
|
|
2880
2880
|
row: s.row
|
|
2881
2881
|
}, () => [
|
|
2882
|
-
de(
|
|
2882
|
+
de(_t, {
|
|
2883
2883
|
modelValue: c.value[$],
|
|
2884
2884
|
"onUpdate:modelValue": (se) => c.value[$] = se,
|
|
2885
2885
|
item: i($),
|
|
@@ -2907,8 +2907,8 @@ const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { st
|
|
|
2907
2907
|
], 4);
|
|
2908
2908
|
};
|
|
2909
2909
|
}
|
|
2910
|
-
}),
|
|
2911
|
-
var
|
|
2910
|
+
}), Vl = /* @__PURE__ */ nt(nr, [["__scopeId", "data-v-4902ce5a"]]);
|
|
2911
|
+
var Dl = { exports: {} }, Ol = { exports: {} };
|
|
2912
2912
|
(function() {
|
|
2913
2913
|
var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = {
|
|
2914
2914
|
// Bit-wise rotation left
|
|
@@ -2972,18 +2972,18 @@ var ml = { exports: {} }, hl = { exports: {} };
|
|
|
2972
2972
|
return l;
|
|
2973
2973
|
}
|
|
2974
2974
|
};
|
|
2975
|
-
|
|
2975
|
+
Ol.exports = s;
|
|
2976
2976
|
})();
|
|
2977
|
-
var
|
|
2977
|
+
var or = Ol.exports, Bt = {
|
|
2978
2978
|
// UTF-8 encoding
|
|
2979
2979
|
utf8: {
|
|
2980
2980
|
// Convert a string to a byte array
|
|
2981
2981
|
stringToBytes: function(r) {
|
|
2982
|
-
return
|
|
2982
|
+
return Bt.bin.stringToBytes(unescape(encodeURIComponent(r)));
|
|
2983
2983
|
},
|
|
2984
2984
|
// Convert a byte array to a string
|
|
2985
2985
|
bytesToString: function(r) {
|
|
2986
|
-
return decodeURIComponent(escape(
|
|
2986
|
+
return decodeURIComponent(escape(Bt.bin.bytesToString(r)));
|
|
2987
2987
|
}
|
|
2988
2988
|
},
|
|
2989
2989
|
// Binary encoding
|
|
@@ -3001,24 +3001,24 @@ var Ba = hl.exports, Ft = {
|
|
|
3001
3001
|
return s.join("");
|
|
3002
3002
|
}
|
|
3003
3003
|
}
|
|
3004
|
-
},
|
|
3004
|
+
}, il = Bt;
|
|
3005
3005
|
/*!
|
|
3006
3006
|
* Determine if an object is a Buffer
|
|
3007
3007
|
*
|
|
3008
3008
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
3009
3009
|
* @license MIT
|
|
3010
3010
|
*/
|
|
3011
|
-
var
|
|
3012
|
-
return r != null && (
|
|
3011
|
+
var ur = function(r) {
|
|
3012
|
+
return r != null && (Il(r) || sr(r) || !!r._isBuffer);
|
|
3013
3013
|
};
|
|
3014
|
-
function
|
|
3014
|
+
function Il(r) {
|
|
3015
3015
|
return !!r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
|
|
3016
3016
|
}
|
|
3017
|
-
function
|
|
3018
|
-
return typeof r.readFloatLE == "function" && typeof r.slice == "function" &&
|
|
3017
|
+
function sr(r) {
|
|
3018
|
+
return typeof r.readFloatLE == "function" && typeof r.slice == "function" && Il(r.slice(0, 0));
|
|
3019
3019
|
}
|
|
3020
3020
|
(function() {
|
|
3021
|
-
var r =
|
|
3021
|
+
var r = or, s = il.utf8, e = ur, l = il.bin, n = function(d, t) {
|
|
3022
3022
|
d.constructor == String ? t && t.encoding === "binary" ? d = l.stringToBytes(d) : d = s.stringToBytes(d) : e(d) ? d = Array.prototype.slice.call(d, 0) : !Array.isArray(d) && d.constructor !== Uint8Array && (d = d.toString());
|
|
3023
3023
|
for (var i = r.bytesToWords(d), T = d.length * 8, f = 1732584193, p = -271733879, c = -1732584194, o = 271733878, h = 0; h < i.length; h++)
|
|
3024
3024
|
i[h] = (i[h] << 8 | i[h] >>> 24) & 16711935 | (i[h] << 24 | i[h] >>> 8) & 4278255360;
|
|
@@ -3041,18 +3041,18 @@ function Na(r) {
|
|
|
3041
3041
|
}, n._ii = function(d, t, i, T, f, p, c) {
|
|
3042
3042
|
var o = d + (i ^ (t | ~T)) + (f >>> 0) + c;
|
|
3043
3043
|
return (o << p | o >>> 32 - p) + t;
|
|
3044
|
-
}, n._blocksize = 16, n._digestsize = 16,
|
|
3044
|
+
}, n._blocksize = 16, n._digestsize = 16, Dl.exports = function(d, t) {
|
|
3045
3045
|
if (d == null)
|
|
3046
3046
|
throw new Error("Illegal argument " + d);
|
|
3047
3047
|
var i = r.wordsToBytes(n(d, t));
|
|
3048
3048
|
return t && t.asBytes ? i : t && t.asString ? l.bytesToString(i) : r.bytesToHex(i);
|
|
3049
3049
|
};
|
|
3050
3050
|
})();
|
|
3051
|
-
var
|
|
3052
|
-
const
|
|
3051
|
+
var ir = Dl.exports;
|
|
3052
|
+
const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
3053
3053
|
key: 0,
|
|
3054
3054
|
class: "table-query-container"
|
|
3055
|
-
},
|
|
3055
|
+
}, vr = { class: "table-container" }, pr = ["innerHTML"], mr = /* @__PURE__ */ Object.assign({
|
|
3056
3056
|
name: "g-table",
|
|
3057
3057
|
inheritAttrs: !1
|
|
3058
3058
|
}, {
|
|
@@ -3081,8 +3081,8 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3081
3081
|
"node-init"
|
|
3082
3082
|
], ["update:modelValue", "update:selectedRows"]),
|
|
3083
3083
|
setup(r, { expose: s, emit: e }) {
|
|
3084
|
-
var lt, Pe, Ze, Je, Ke,
|
|
3085
|
-
const l = ne(""), n = r, d = e, t = ot(r, "modelValue"), i =
|
|
3084
|
+
var lt, Pe, Ze, Je, Ke, xt, Mt;
|
|
3085
|
+
const l = ne(""), n = r, d = e, t = ot(r, "modelValue"), i = Ut("options"), T = ne({}), f = ne(!0), p = Object.entries(t.value).filter(([a, u]) => (u == null ? void 0 : u.search) !== void 0).map(([a, u]) => {
|
|
3086
3086
|
var _;
|
|
3087
3087
|
let y;
|
|
3088
3088
|
if (typeof u.search == "function") {
|
|
@@ -3122,7 +3122,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3122
3122
|
"filter-multiple",
|
|
3123
3123
|
"filter-method",
|
|
3124
3124
|
"filtered-value"
|
|
3125
|
-
], h = ne([]), z =
|
|
3125
|
+
], h = ne([]), z = Lt(), H = ne({}), D = ne([]), $ = ne(null), X = ne(""), ee = ne("/"), le = ot(r, "selectedRows"), se = ne({
|
|
3126
3126
|
autoWatch: !1,
|
|
3127
3127
|
data: [],
|
|
3128
3128
|
border: !0,
|
|
@@ -3132,7 +3132,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3132
3132
|
stripe: !0,
|
|
3133
3133
|
type: "hidden",
|
|
3134
3134
|
load: async () => {
|
|
3135
|
-
const a = Number(await
|
|
3135
|
+
const a = Number(await Pa(ee.value));
|
|
3136
3136
|
a && a > 0 && (t.value.table.page.pageSize = a);
|
|
3137
3137
|
let { currentPage: u, pageSize: y } = t.value.table.page;
|
|
3138
3138
|
try {
|
|
@@ -3158,7 +3158,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3158
3158
|
}
|
|
3159
3159
|
},
|
|
3160
3160
|
onHeaderDragend: (a, u, y) => {
|
|
3161
|
-
|
|
3161
|
+
Ha(ee.value, y.property, a);
|
|
3162
3162
|
},
|
|
3163
3163
|
onRowDblclick: (a, u, y) => {
|
|
3164
3164
|
t.value.table.dblclickType == "edit" ? w(a, u, y, t) : t.value.table.dblclickType == "view" ? E(a, u, y, t) : t.value.table.dblclickType == "delete" ? v(a, u, y, t) : t.value.table.dblclickType(a, u, y, t);
|
|
@@ -3181,7 +3181,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3181
3181
|
t.value.table.page.currentPage = a, t.value.table.load();
|
|
3182
3182
|
},
|
|
3183
3183
|
onSizeChange: (a) => {
|
|
3184
|
-
|
|
3184
|
+
Ba({ page: ee.value, size: a }).then(() => {
|
|
3185
3185
|
t.value.table.page.pageSize = a, t.value.table.load();
|
|
3186
3186
|
});
|
|
3187
3187
|
}
|
|
@@ -3218,7 +3218,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3218
3218
|
mode: "dialog",
|
|
3219
3219
|
"view-mode": "description",
|
|
3220
3220
|
// description || readonly
|
|
3221
|
-
icon: () => Me(
|
|
3221
|
+
icon: () => Me(ra),
|
|
3222
3222
|
auth: () => {
|
|
3223
3223
|
var O;
|
|
3224
3224
|
return !(((O = _ == null ? void 0 : _.control) == null ? void 0 : O.add(a, _).inline) === !0 && y === 0);
|
|
@@ -3229,7 +3229,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3229
3229
|
text: !0,
|
|
3230
3230
|
type: "primary",
|
|
3231
3231
|
mode: "dialog",
|
|
3232
|
-
icon: () => Me(
|
|
3232
|
+
icon: () => Me(aa),
|
|
3233
3233
|
auth: () => {
|
|
3234
3234
|
var O;
|
|
3235
3235
|
return ((O = _ == null ? void 0 : _.control) == null ? void 0 : O.add(a, _).inline) !== !0;
|
|
@@ -3239,7 +3239,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3239
3239
|
text: !0,
|
|
3240
3240
|
label: "删除",
|
|
3241
3241
|
type: "danger",
|
|
3242
|
-
icon: () => Me(
|
|
3242
|
+
icon: () => Me(gl),
|
|
3243
3243
|
auth: () => {
|
|
3244
3244
|
var O;
|
|
3245
3245
|
return !(((O = _.control) == null ? void 0 : O.add(a, _).inline) === !0 && y === 0);
|
|
@@ -3259,7 +3259,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3259
3259
|
return {
|
|
3260
3260
|
label: ((O = _.control) == null ? void 0 : O.add(a, _).inline) !== !0 ? "保存" : y === 0 ? "新增" : "保存",
|
|
3261
3261
|
text: !0,
|
|
3262
|
-
icon: () => Me(
|
|
3262
|
+
icon: () => Me(Rt),
|
|
3263
3263
|
type: ((F = _.control) == null ? void 0 : F.add(a, _).inline) !== !0 || y === 0 ? "primary" : "success",
|
|
3264
3264
|
sort: -1,
|
|
3265
3265
|
auth: () => {
|
|
@@ -3274,7 +3274,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3274
3274
|
type: "primary",
|
|
3275
3275
|
mode: "dialog",
|
|
3276
3276
|
inline: !1,
|
|
3277
|
-
icon: () => Me(
|
|
3277
|
+
icon: () => Me(la),
|
|
3278
3278
|
auth: () => !0
|
|
3279
3279
|
}),
|
|
3280
3280
|
toggleExpand: (a, u) => ({
|
|
@@ -3282,7 +3282,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3282
3282
|
text: !1,
|
|
3283
3283
|
type: "primary",
|
|
3284
3284
|
mode: "dialog",
|
|
3285
|
-
icon: () => Me(
|
|
3285
|
+
icon: () => Me($l),
|
|
3286
3286
|
auth: () => !1
|
|
3287
3287
|
}),
|
|
3288
3288
|
batch: (a, u) => ({
|
|
@@ -3290,7 +3290,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3290
3290
|
text: !1,
|
|
3291
3291
|
type: "primary",
|
|
3292
3292
|
mode: "dialog",
|
|
3293
|
-
icon: () => Me(
|
|
3293
|
+
icon: () => Me(Rt),
|
|
3294
3294
|
auth: () => !1
|
|
3295
3295
|
}),
|
|
3296
3296
|
download: (a, u) => ({
|
|
@@ -3298,7 +3298,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3298
3298
|
text: !1,
|
|
3299
3299
|
type: "primary",
|
|
3300
3300
|
mode: "dialog",
|
|
3301
|
-
icon: () => Me(
|
|
3301
|
+
icon: () => Me(kl),
|
|
3302
3302
|
excelLabel: "下载EXCEL",
|
|
3303
3303
|
auth: () => !0
|
|
3304
3304
|
}),
|
|
@@ -3307,7 +3307,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3307
3307
|
text: !1,
|
|
3308
3308
|
type: "primary",
|
|
3309
3309
|
mode: "dialog",
|
|
3310
|
-
icon: () => Me(
|
|
3310
|
+
icon: () => Me(ta),
|
|
3311
3311
|
auth: () => !0
|
|
3312
3312
|
}),
|
|
3313
3313
|
dropdown: (a, u, y, _) => ({
|
|
@@ -3355,14 +3355,14 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3355
3355
|
"min-width": 100,
|
|
3356
3356
|
align: "center",
|
|
3357
3357
|
formatter: (a, u, y, _) => y,
|
|
3358
|
-
"tooltip-formatter": ({ row: a, column: u, cellValue: y }) => Me(
|
|
3358
|
+
"tooltip-formatter": ({ row: a, column: u, cellValue: y }) => Me(rr, { content: y, column: u })
|
|
3359
3359
|
};
|
|
3360
3360
|
t.value.tableColumns = Le(
|
|
3361
3361
|
Ie,
|
|
3362
3362
|
i == null ? void 0 : i.tableColumns,
|
|
3363
3363
|
(Je = t.value) == null ? void 0 : Je.tableColumns
|
|
3364
3364
|
), t.value.form = Le(
|
|
3365
|
-
|
|
3365
|
+
Sl,
|
|
3366
3366
|
{
|
|
3367
3367
|
cancel: {
|
|
3368
3368
|
hidden: !1,
|
|
@@ -3382,7 +3382,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3382
3382
|
t.value.formItems = Le(
|
|
3383
3383
|
be,
|
|
3384
3384
|
i == null ? void 0 : i.formItems,
|
|
3385
|
-
(
|
|
3385
|
+
(xt = t == null ? void 0 : t.value) == null ? void 0 : xt.formItems
|
|
3386
3386
|
);
|
|
3387
3387
|
const B = {
|
|
3388
3388
|
title: "编辑",
|
|
@@ -3399,23 +3399,23 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3399
3399
|
t.value.dialog = Le(
|
|
3400
3400
|
B,
|
|
3401
3401
|
i == null ? void 0 : i.dialog,
|
|
3402
|
-
(
|
|
3402
|
+
(Mt = t.value) == null ? void 0 : Mt.dialog
|
|
3403
3403
|
);
|
|
3404
3404
|
const De = (a, u) => {
|
|
3405
3405
|
let y = u;
|
|
3406
3406
|
if (a.precision && !isNaN(parseFloat(u)) && (typeof a.precision == "number" ? y = parseFloat(y).toFixed(a.precision) : typeof a.precision == "object" && a.precision.num && (a.precision.pad ? y = parseFloat(y).toFixed(a.precision.num) : y = parseFloat(
|
|
3407
3407
|
parseFloat(y).toFixed(a.precision.num)
|
|
3408
|
-
).toString())), ["date", "datetime", "time", "time-select"].includes(a.type) &&
|
|
3408
|
+
).toString())), ["date", "datetime", "time", "time-select"].includes(a.type) && At(u).isValid()) {
|
|
3409
3409
|
const O = {
|
|
3410
3410
|
date: "YYYY-MM-DD",
|
|
3411
3411
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
3412
3412
|
time: "HH:mm:ss"
|
|
3413
3413
|
};
|
|
3414
|
-
y = a.format ?
|
|
3414
|
+
y = a.format ? At(y).format(a.format) : At(y).format(O[a.type]);
|
|
3415
3415
|
}
|
|
3416
|
-
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, y = `<span title="${
|
|
3416
|
+
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, y = `<span title="${Pt(
|
|
3417
3417
|
parseFloat(y)
|
|
3418
|
-
)}">${
|
|
3418
|
+
)}">${Or(parseFloat(y), (a == null ? void 0 : a.precision) || 2, (a == null ? void 0 : a.removeZero) || !1)}</span>`), a.prefix && y && (y = `<span>${a.prefix}${y}</span>`), a.suffix && y && (y = `${y}<span>${a.suffix}</span>`), y;
|
|
3419
3419
|
}, Qe = (a) => {
|
|
3420
3420
|
T.value = Object.fromEntries(p), t.value.table.load();
|
|
3421
3421
|
}, W = (a) => {
|
|
@@ -3431,7 +3431,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3431
3431
|
}
|
|
3432
3432
|
(_ = t.value.control.add($.value, u)) != null && _.click ? t.value.control.add($.value, u).click($.value, u) : (t.value.control.add($.value, u).inline === !0 ? (t.value.table.data.unshift({ ...$.value }), await rt(), d("open", "row-add", { row: $.value, node: n.node })) : (t.value.form.disabled = !1, t.value.dialog.mode = t.value.control.add($.value, u).mode, t.value.dialog.title = t.value.control.add($.value, u).title || t.value.control.add($.value, u).label || "新增", Object.keys($.value).forEach((O) => {
|
|
3433
3433
|
t.value[O] && (t.value[O].value = $.value[O]);
|
|
3434
|
-
}), c.value = !0, await rt(), d("open", "add", { row: $.value, node: n.node, m: u }),
|
|
3434
|
+
}), c.value = !0, await rt(), d("open", "add", { row: $.value, node: n.node, m: u }), kt()), await rt(), d("node-init", { row: $.value, node: n.node, m: u }));
|
|
3435
3435
|
}, g = () => {
|
|
3436
3436
|
d("batch", le.value);
|
|
3437
3437
|
}, C = (a, u) => {
|
|
@@ -3449,7 +3449,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3449
3449
|
}
|
|
3450
3450
|
(F = t.value.control.edit(a, u, y, _)) != null && F.click ? t.value.control.edit(a, u, y, _).click(a, u, y, _) : (t.value.form.disabled = !1, t.value.dialog.mode = t.value.control.edit(a, u, y, _).mode, t.value.dialog.title = t.value.control.edit(a, u, y, _).title || t.value.control.edit(a, u, y, _).label || "编辑", Object.keys(a).forEach((R) => {
|
|
3451
3451
|
t.value[R] && (t.value[R].value = a[R]);
|
|
3452
|
-
}), c.value = !0, await rt(), d("open", "edit", { m: _, row: a, column: u, index: y }),
|
|
3452
|
+
}), c.value = !0, await rt(), d("open", "edit", { m: _, row: a, column: u, index: y }), kt());
|
|
3453
3453
|
}, v = async (a, u, y, _) => {
|
|
3454
3454
|
var O, F;
|
|
3455
3455
|
try {
|
|
@@ -3462,7 +3462,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3462
3462
|
t.value.control.delete(a, u, y, _).click(a, u, y, _);
|
|
3463
3463
|
else {
|
|
3464
3464
|
let { message: R, title: $e, options: xe } = t.value.control.delete(a, u, y, _).dialog;
|
|
3465
|
-
|
|
3465
|
+
fl.confirm(R, $e, xe).then(() => {
|
|
3466
3466
|
d(
|
|
3467
3467
|
"delete",
|
|
3468
3468
|
{ row: a, column: u, index: y, m: _ },
|
|
@@ -3484,20 +3484,20 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3484
3484
|
}
|
|
3485
3485
|
(F = t.value.control.view(a, u, y, _)) != null && F.click ? t.value.control.view(a, u, y, _).click(a, u, y, _) : (t.value.form.disabled = !0, t.value.dialog.mode = t.value.control.view(a, u, y, _).mode, t.value.dialog.title = t.value.control.view(a, u, y, _).title || t.value.control.view(a, u, y, _).label || "详情", Object.keys(a).forEach((xe) => {
|
|
3486
3486
|
t.value[xe] && (t.value[xe].value = a[xe]);
|
|
3487
|
-
}), ((R = t.value.control.view(a, u, y, _)) == null ? void 0 : R["view-mode"]) === "description" ?
|
|
3487
|
+
}), ((R = t.value.control.view(a, u, y, _)) == null ? void 0 : R["view-mode"]) === "description" ? Yt({
|
|
3488
3488
|
...t.value.dialog,
|
|
3489
3489
|
type: t.value.dialog.mode,
|
|
3490
3490
|
slots: {
|
|
3491
3491
|
default: () => {
|
|
3492
3492
|
var xe, Oe, ze;
|
|
3493
|
-
return Me(
|
|
3493
|
+
return Me(Vl, {
|
|
3494
3494
|
row: a,
|
|
3495
3495
|
m: _,
|
|
3496
3496
|
container: ((xe = t.value.control.view(a, u, y, _)) == null ? void 0 : xe.container) || {}
|
|
3497
3497
|
}, ((ze = (Oe = t.value.control.view(a, u, y, _)) == null ? void 0 : Oe.container) == null ? void 0 : ze.slots) || {});
|
|
3498
3498
|
}
|
|
3499
3499
|
}
|
|
3500
|
-
}) : (($e = t.value.control.view(a, u, y, _)) == null ? void 0 : $e["view-mode"]) === "readonly" && (c.value = !0,
|
|
3500
|
+
}) : (($e = t.value.control.view(a, u, y, _)) == null ? void 0 : $e["view-mode"]) === "readonly" && (c.value = !0, kt()), await rt(), d("open", "view", { m: _, row: a, column: u, index: y }));
|
|
3501
3501
|
}, M = (a, u = $.value) => {
|
|
3502
3502
|
Object.assign(a, u);
|
|
3503
3503
|
}, I = (a, u, y, _) => {
|
|
@@ -3517,7 +3517,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3517
3517
|
}
|
|
3518
3518
|
}
|
|
3519
3519
|
);
|
|
3520
|
-
}, Q =
|
|
3520
|
+
}, Q = Ir((a, u, y) => {
|
|
3521
3521
|
d("submit", t.value.form.modalState, a, u, (_) => {
|
|
3522
3522
|
_ && (y === 1 && (c.value = !1), M(a), u.table.load());
|
|
3523
3523
|
});
|
|
@@ -3528,7 +3528,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3528
3528
|
if ((_ = u.control.download(a, u)) != null && _.click)
|
|
3529
3529
|
u.control.download(a, u).click(a, u, y);
|
|
3530
3530
|
else {
|
|
3531
|
-
let O =
|
|
3531
|
+
let O = Yt(
|
|
3532
3532
|
{
|
|
3533
3533
|
title: u.control.download(a, u).title || u.control.download(a, u).label || "下载",
|
|
3534
3534
|
size: u.control.download(a, u).size || 480,
|
|
@@ -3536,7 +3536,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3536
3536
|
type: u.control.download(a, u).mode || "dialog",
|
|
3537
3537
|
alignCenter: u.control.download(a, u).alignCenter || !0,
|
|
3538
3538
|
slots: {
|
|
3539
|
-
default: () => Me(
|
|
3539
|
+
default: () => Me(za, {
|
|
3540
3540
|
items: y,
|
|
3541
3541
|
commitText: u.control.download(a, u).excelLabel,
|
|
3542
3542
|
onExcel: (F, R) => {
|
|
@@ -3549,7 +3549,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3549
3549
|
}
|
|
3550
3550
|
}, Ae = (a, u) => {
|
|
3551
3551
|
var y;
|
|
3552
|
-
(y = u.control.setting(a, u)) != null && y.click ? u.control.setting(a, u).click(a, u) :
|
|
3552
|
+
(y = u.control.setting(a, u)) != null && y.click ? u.control.setting(a, u).click(a, u) : Yt(
|
|
3553
3553
|
{
|
|
3554
3554
|
title: u.control.setting(a, u).title || u.control.setting(a, u).label || "设置",
|
|
3555
3555
|
size: u.control.setting(a, u).size || 470,
|
|
@@ -3557,7 +3557,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3557
3557
|
type: u.control.setting(a, u).mode || "dialog",
|
|
3558
3558
|
alignCenter: u.control.setting(a, u).alignCenter || !0,
|
|
3559
3559
|
slots: {
|
|
3560
|
-
default: () => Me(
|
|
3560
|
+
default: () => Me(er, {
|
|
3561
3561
|
modelValue: u,
|
|
3562
3562
|
tuid: ee.value,
|
|
3563
3563
|
onSettingDragEnd: async () => {
|
|
@@ -3570,7 +3570,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3570
3570
|
}
|
|
3571
3571
|
}
|
|
3572
3572
|
);
|
|
3573
|
-
}, ae = t.value.control,
|
|
3573
|
+
}, ae = t.value.control, ve = {
|
|
3574
3574
|
add: q,
|
|
3575
3575
|
batch: g,
|
|
3576
3576
|
download: we,
|
|
@@ -3580,12 +3580,12 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3580
3580
|
edit: w,
|
|
3581
3581
|
delete: v,
|
|
3582
3582
|
save: I
|
|
3583
|
-
}, Ye = (a, u, y, _, O) => a.filter((F) =>
|
|
3583
|
+
}, Ye = (a, u, y, _, O) => a.filter((F) => ve[F]).map((F) => {
|
|
3584
3584
|
const R = ae == null ? void 0 : ae[F](u, y, _, O);
|
|
3585
3585
|
return {
|
|
3586
3586
|
name: `control-${F}`,
|
|
3587
3587
|
attr: R,
|
|
3588
|
-
func:
|
|
3588
|
+
func: ve[F],
|
|
3589
3589
|
label: R == null ? void 0 : R.label,
|
|
3590
3590
|
sort: (R == null ? void 0 : R.sort) || 0,
|
|
3591
3591
|
groupName: (R == null ? void 0 : R.groupName) || "default"
|
|
@@ -3630,15 +3630,15 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3630
3630
|
}, Te = () => {
|
|
3631
3631
|
c.value = !1;
|
|
3632
3632
|
};
|
|
3633
|
-
|
|
3633
|
+
Rl(() => {
|
|
3634
3634
|
t.value.table.autoWatch && t.value.table.load();
|
|
3635
3635
|
});
|
|
3636
3636
|
const qe = async () => {
|
|
3637
3637
|
try {
|
|
3638
3638
|
const [a, u, y] = await Promise.all([
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3639
|
+
ja(ee.value),
|
|
3640
|
+
Wa(ee.value),
|
|
3641
|
+
Fa(ee.value)
|
|
3642
3642
|
]);
|
|
3643
3643
|
a && Array.isArray(a) && a.forEach((_) => {
|
|
3644
3644
|
const O = t.value[_.key];
|
|
@@ -3657,10 +3657,10 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3657
3657
|
t.value[u].showCol === void 0 && (t.value[u].showCol = !0);
|
|
3658
3658
|
});
|
|
3659
3659
|
}
|
|
3660
|
-
}, je = () =>
|
|
3661
|
-
return
|
|
3660
|
+
}, je = () => dr(Object.keys(t.value).toString()).toUpperCase().substring(8, 24);
|
|
3661
|
+
return Bl(() => {
|
|
3662
3662
|
ee.value = je();
|
|
3663
|
-
}),
|
|
3663
|
+
}), Ct(async () => {
|
|
3664
3664
|
try {
|
|
3665
3665
|
h.value = Object.entries(t.value).filter(
|
|
3666
3666
|
([u, y]) => y.type !== "hidden" && y.type !== "control" && y.visible !== !1
|
|
@@ -3679,10 +3679,10 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3679
3679
|
console.error("Error during component initialization:", a), t.value.table.autoWatch || t.value.table.load();
|
|
3680
3680
|
}
|
|
3681
3681
|
}), s({ addRow: q, editRow: w, deleteRow: v, readForm: E, saveRowData: I, closeDialog: Te, formData: $ }), (a, u) => {
|
|
3682
|
-
var Oe, ze, Fe, et, ht,
|
|
3682
|
+
var Oe, ze, Fe, et, ht, St, Tt;
|
|
3683
3683
|
const y = j("el-button-group"), _ = j("el-dropdown-item"), O = j("el-dropdown-menu"), F = j("el-dropdown"), R = j("el-table-column"), $e = j("el-table"), xe = j("el-pagination");
|
|
3684
3684
|
return m(), U(oe, null, [
|
|
3685
|
-
c.value ? (m(), V(
|
|
3685
|
+
c.value ? (m(), V(Nt, Y({
|
|
3686
3686
|
key: 0,
|
|
3687
3687
|
modelValue: c.value,
|
|
3688
3688
|
"onUpdate:modelValue": u[2] || (u[2] = (Z) => c.value = Z)
|
|
@@ -3690,7 +3690,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3690
3690
|
type: t.value.dialog.mode
|
|
3691
3691
|
}), ke({
|
|
3692
3692
|
default: k(() => [
|
|
3693
|
-
c.value ? (m(), V(Ge(
|
|
3693
|
+
c.value ? (m(), V(Ge(El), {
|
|
3694
3694
|
key: 0,
|
|
3695
3695
|
modelValue: t.value,
|
|
3696
3696
|
"onUpdate:modelValue": u[0] || (u[0] = (Z) => t.value = Z),
|
|
@@ -3740,10 +3740,10 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3740
3740
|
key: "3"
|
|
3741
3741
|
} : void 0
|
|
3742
3742
|
]), 1040, ["modelValue", "type"])) : _e("", !0),
|
|
3743
|
-
J("div",
|
|
3744
|
-
((et = (Fe = t.value) == null ? void 0 : Fe.query) == null ? void 0 : et.hidden) != !0 ? (m(), U("div",
|
|
3743
|
+
J("div", cr, [
|
|
3744
|
+
((et = (Fe = t.value) == null ? void 0 : Fe.query) == null ? void 0 : et.hidden) != !0 ? (m(), U("div", fr, [
|
|
3745
3745
|
x(a.$slots, "query", {}, () => [
|
|
3746
|
-
de(
|
|
3746
|
+
de(_a, {
|
|
3747
3747
|
modelValue: t.value,
|
|
3748
3748
|
"onUpdate:modelValue": u[3] || (u[3] = (Z) => t.value = Z),
|
|
3749
3749
|
info: T.value,
|
|
@@ -3831,7 +3831,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3831
3831
|
model: t.value,
|
|
3832
3832
|
queryInfo: T.value
|
|
3833
3833
|
}, void 0, !0),
|
|
3834
|
-
J("div",
|
|
3834
|
+
J("div", vr, [
|
|
3835
3835
|
f.value ? (m(), V($e, Y({ key: 0 }, {
|
|
3836
3836
|
...a.$attrs,
|
|
3837
3837
|
...L(Xe)(
|
|
@@ -3884,49 +3884,49 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3884
3884
|
}, [
|
|
3885
3885
|
Z.type === "expand" ? {
|
|
3886
3886
|
name: "default",
|
|
3887
|
-
fn: k(({ row: te, column: ce, $index:
|
|
3887
|
+
fn: k(({ row: te, column: ce, $index: fe }) => [
|
|
3888
3888
|
x(a.$slots, `${me}`, {
|
|
3889
3889
|
row: te,
|
|
3890
3890
|
column: ce,
|
|
3891
|
-
index:
|
|
3891
|
+
index: fe
|
|
3892
3892
|
}, void 0, !0)
|
|
3893
3893
|
]),
|
|
3894
3894
|
key: "0"
|
|
3895
3895
|
} : Z.type == "control" ? {
|
|
3896
3896
|
name: "default",
|
|
3897
|
-
fn: k(({ row: te, column: ce, $index:
|
|
3897
|
+
fn: k(({ row: te, column: ce, $index: fe }) => {
|
|
3898
3898
|
var vt, pt;
|
|
3899
3899
|
return [
|
|
3900
3900
|
J("div", {
|
|
3901
|
-
class:
|
|
3901
|
+
class: ml(["control", (vt = t.value.control) == null ? void 0 : vt.class]),
|
|
3902
3902
|
style: Ue((pt = t.value.control) == null ? void 0 : pt.style)
|
|
3903
3903
|
}, [
|
|
3904
3904
|
x(a.$slots, "control", {}, () => [
|
|
3905
3905
|
x(a.$slots, "control-left", {
|
|
3906
3906
|
row: te,
|
|
3907
3907
|
column: ce,
|
|
3908
|
-
index:
|
|
3908
|
+
index: fe
|
|
3909
3909
|
}, void 0, !0),
|
|
3910
|
-
(m(!0), U(oe, null, N(ye(["view", "edit", "delete", "save"], te, ce,
|
|
3910
|
+
(m(!0), U(oe, null, N(ye(["view", "edit", "delete", "save"], te, ce, fe, t.value), (it, dt) => {
|
|
3911
3911
|
var gt;
|
|
3912
3912
|
return m(), U(oe, null, [
|
|
3913
3913
|
dt == "default" ? (m(!0), U(oe, { key: 0 }, N(it, (G) => (m(), U(oe, null, [
|
|
3914
3914
|
x(a.$slots, G.name + "-left", {
|
|
3915
3915
|
row: te,
|
|
3916
3916
|
column: ce,
|
|
3917
|
-
index:
|
|
3917
|
+
index: fe
|
|
3918
3918
|
}, void 0, !0),
|
|
3919
3919
|
G.attr.auth() ? x(a.$slots, G.name, {
|
|
3920
3920
|
key: 0,
|
|
3921
3921
|
row: te,
|
|
3922
3922
|
column: ce,
|
|
3923
|
-
index:
|
|
3923
|
+
index: fe
|
|
3924
3924
|
}, () => [
|
|
3925
3925
|
G.label ? (m(), V(L(Re), Y({
|
|
3926
3926
|
key: 0,
|
|
3927
3927
|
title: G.label
|
|
3928
3928
|
}, { ref_for: !0 }, G.attr, {
|
|
3929
|
-
onClick: (ct) => G.func(te, ce,
|
|
3929
|
+
onClick: (ct) => G.func(te, ce, fe, t.value)
|
|
3930
3930
|
}), {
|
|
3931
3931
|
default: k(() => [
|
|
3932
3932
|
He(Ee(G.label), 1)
|
|
@@ -3936,29 +3936,29 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3936
3936
|
key: 1,
|
|
3937
3937
|
title: G.label
|
|
3938
3938
|
}, { ref_for: !0 }, G.attr, {
|
|
3939
|
-
onClick: (ct) => G.func(te, ce,
|
|
3939
|
+
onClick: (ct) => G.func(te, ce, fe, t.value)
|
|
3940
3940
|
}), null, 16, ["title", "onClick"]))
|
|
3941
3941
|
], !0) : _e("", !0),
|
|
3942
3942
|
x(a.$slots, G.name + "-right", {
|
|
3943
3943
|
row: te,
|
|
3944
3944
|
column: ce,
|
|
3945
|
-
index:
|
|
3945
|
+
index: fe
|
|
3946
3946
|
}, void 0, !0)
|
|
3947
|
-
], 64))), 256)) : dt != null && dt.startsWith("dropdown") && ((gt = Ve(te, ce,
|
|
3947
|
+
], 64))), 256)) : dt != null && dt.startsWith("dropdown") && ((gt = Ve(te, ce, fe, t.value)) != null && gt.auth()) ? (m(), V(F, Y({
|
|
3948
3948
|
key: 1,
|
|
3949
3949
|
ref_for: !0
|
|
3950
|
-
}, Ve(te, ce,
|
|
3950
|
+
}, Ve(te, ce, fe, t.value)), {
|
|
3951
3951
|
dropdown: k(() => [
|
|
3952
3952
|
de(O, null, {
|
|
3953
3953
|
default: k(() => [
|
|
3954
3954
|
(m(!0), U(oe, null, N(it, (G) => {
|
|
3955
|
-
var ct, bt,
|
|
3955
|
+
var ct, bt, $t;
|
|
3956
3956
|
return m(), U(oe, null, [
|
|
3957
3957
|
a.$slots[G.name + "-left"] ? x(a.$slots, G.name + "-left", {
|
|
3958
3958
|
key: 0,
|
|
3959
3959
|
row: te,
|
|
3960
3960
|
column: ce,
|
|
3961
|
-
index:
|
|
3961
|
+
index: fe
|
|
3962
3962
|
}, void 0, !0) : _e("", !0),
|
|
3963
3963
|
G.attr.auth() ? (m(), V(_, Y({
|
|
3964
3964
|
key: 1,
|
|
@@ -3966,19 +3966,19 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3966
3966
|
}, {
|
|
3967
3967
|
command: (ct = G == null ? void 0 : G.attr) == null ? void 0 : ct.command,
|
|
3968
3968
|
divided: (bt = G == null ? void 0 : G.attr) == null ? void 0 : bt.divided,
|
|
3969
|
-
disabled: (
|
|
3969
|
+
disabled: ($t = G == null ? void 0 : G.attr) == null ? void 0 : $t.disabled
|
|
3970
3970
|
}), {
|
|
3971
3971
|
default: k(() => [
|
|
3972
3972
|
x(a.$slots, G.name, {
|
|
3973
3973
|
row: te,
|
|
3974
3974
|
column: ce,
|
|
3975
|
-
index:
|
|
3975
|
+
index: fe
|
|
3976
3976
|
}, () => [
|
|
3977
3977
|
G.label ? (m(), V(L(Re), Y({
|
|
3978
3978
|
key: 0,
|
|
3979
3979
|
title: G.label
|
|
3980
3980
|
}, { ref_for: !0 }, G.attr, {
|
|
3981
|
-
onClick: (
|
|
3981
|
+
onClick: (Et) => G.func(te, ce, fe, t.value)
|
|
3982
3982
|
}), {
|
|
3983
3983
|
default: k(() => [
|
|
3984
3984
|
He(Ee(G.label), 1)
|
|
@@ -3988,7 +3988,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3988
3988
|
key: 1,
|
|
3989
3989
|
title: G.label
|
|
3990
3990
|
}, { ref_for: !0 }, G.attr, {
|
|
3991
|
-
onClick: (
|
|
3991
|
+
onClick: (Et) => G.func(te, ce, fe, t.value)
|
|
3992
3992
|
}), null, 16, ["title", "onClick"]))
|
|
3993
3993
|
], !0)
|
|
3994
3994
|
]),
|
|
@@ -3998,7 +3998,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3998
3998
|
key: 2,
|
|
3999
3999
|
row: te,
|
|
4000
4000
|
column: ce,
|
|
4001
|
-
index:
|
|
4001
|
+
index: fe
|
|
4002
4002
|
}, void 0, !0) : _e("", !0)
|
|
4003
4003
|
], 64);
|
|
4004
4004
|
}), 256))
|
|
@@ -4009,7 +4009,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4009
4009
|
default: k(() => {
|
|
4010
4010
|
var G;
|
|
4011
4011
|
return [
|
|
4012
|
-
He(Ee((G = Ve(te, ce,
|
|
4012
|
+
He(Ee((G = Ve(te, ce, fe, t.value)) == null ? void 0 : G.label) + " ", 1)
|
|
4013
4013
|
];
|
|
4014
4014
|
}),
|
|
4015
4015
|
_: 2
|
|
@@ -4019,19 +4019,19 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4019
4019
|
x(a.$slots, G.name + "-left", {
|
|
4020
4020
|
row: te,
|
|
4021
4021
|
column: ce,
|
|
4022
|
-
index:
|
|
4022
|
+
index: fe
|
|
4023
4023
|
}, void 0, !0),
|
|
4024
4024
|
G.attr.auth() ? x(a.$slots, G.name, {
|
|
4025
4025
|
key: 0,
|
|
4026
4026
|
row: te,
|
|
4027
4027
|
column: ce,
|
|
4028
|
-
index:
|
|
4028
|
+
index: fe
|
|
4029
4029
|
}, () => [
|
|
4030
4030
|
G.label ? (m(), V(L(Re), Y({
|
|
4031
4031
|
key: 0,
|
|
4032
4032
|
title: G.label
|
|
4033
4033
|
}, { ref_for: !0 }, G.attr, {
|
|
4034
|
-
onClick: (ct) => G.func(te, ce,
|
|
4034
|
+
onClick: (ct) => G.func(te, ce, fe, t.value)
|
|
4035
4035
|
}), {
|
|
4036
4036
|
default: k(() => [
|
|
4037
4037
|
He(Ee(G.label), 1)
|
|
@@ -4041,13 +4041,13 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4041
4041
|
key: 1,
|
|
4042
4042
|
title: G.label
|
|
4043
4043
|
}, { ref_for: !0 }, G.attr, {
|
|
4044
|
-
onClick: (ct) => G.func(te, ce,
|
|
4044
|
+
onClick: (ct) => G.func(te, ce, fe, t.value)
|
|
4045
4045
|
}), null, 16, ["title", "onClick"]))
|
|
4046
4046
|
], !0) : _e("", !0),
|
|
4047
4047
|
x(a.$slots, G.name + "-right", {
|
|
4048
4048
|
row: te,
|
|
4049
4049
|
column: ce,
|
|
4050
|
-
index:
|
|
4050
|
+
index: fe
|
|
4051
4051
|
}, void 0, !0)
|
|
4052
4052
|
], 64))), 256))
|
|
4053
4053
|
]),
|
|
@@ -4058,7 +4058,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4058
4058
|
x(a.$slots, "control-right", {
|
|
4059
4059
|
row: te,
|
|
4060
4060
|
column: ce,
|
|
4061
|
-
index:
|
|
4061
|
+
index: fe
|
|
4062
4062
|
}, void 0, !0)
|
|
4063
4063
|
], !0)
|
|
4064
4064
|
], 6)
|
|
@@ -4067,22 +4067,22 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4067
4067
|
key: "1"
|
|
4068
4068
|
} : Z.type != "selection" && Z.type != "index" && ((st = (tt = t.value) == null ? void 0 : tt.table) == null ? void 0 : st["row-key"]) != me ? {
|
|
4069
4069
|
name: "default",
|
|
4070
|
-
fn: k(({ row: te, column: ce, $index:
|
|
4071
|
-
P(Z, te, ce,
|
|
4070
|
+
fn: k(({ row: te, column: ce, $index: fe }) => [
|
|
4071
|
+
P(Z, te, ce, fe) && fe != -1 ? x(a.$slots, `${me}`, {
|
|
4072
4072
|
key: 0,
|
|
4073
4073
|
row: te,
|
|
4074
4074
|
column: ce,
|
|
4075
|
-
index:
|
|
4075
|
+
index: fe
|
|
4076
4076
|
}, () => {
|
|
4077
4077
|
var vt;
|
|
4078
4078
|
return [
|
|
4079
|
-
(m(), V(
|
|
4079
|
+
(m(), V(_t, {
|
|
4080
4080
|
modelValue: te[me],
|
|
4081
4081
|
"onUpdate:modelValue": (pt) => te[me] = pt,
|
|
4082
|
-
item: Z == null ? void 0 : Z.table(te, ce,
|
|
4082
|
+
item: Z == null ? void 0 : Z.table(te, ce, fe),
|
|
4083
4083
|
ctrlKey: me,
|
|
4084
|
-
key: `${me}-${
|
|
4085
|
-
ctrlType: (vt = Z.table(te, ce,
|
|
4084
|
+
key: `${me}-${fe} -${X.value}`,
|
|
4085
|
+
ctrlType: (vt = Z.table(te, ce, fe)) != null && vt.type ? Z.table(te, ce, fe).type : Z.type,
|
|
4086
4086
|
model: t.value,
|
|
4087
4087
|
class: "g-ctrl-container",
|
|
4088
4088
|
t: "t",
|
|
@@ -4104,15 +4104,15 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4104
4104
|
key: 1,
|
|
4105
4105
|
row: te,
|
|
4106
4106
|
column: ce,
|
|
4107
|
-
index:
|
|
4107
|
+
index: fe
|
|
4108
4108
|
}, () => [
|
|
4109
4109
|
J("div", {
|
|
4110
4110
|
style: Ue([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, Z == null ? void 0 : Z.style]),
|
|
4111
4111
|
innerHTML: De(
|
|
4112
4112
|
Z,
|
|
4113
|
-
typeof ce.formatter == "function" ? ce.formatter(te, ce, te[me],
|
|
4113
|
+
typeof ce.formatter == "function" ? ce.formatter(te, ce, te[me], fe) : te[me]
|
|
4114
4114
|
)
|
|
4115
|
-
}, null, 12,
|
|
4115
|
+
}, null, 12, pr)
|
|
4116
4116
|
], !0)
|
|
4117
4117
|
]),
|
|
4118
4118
|
key: "2"
|
|
@@ -4123,7 +4123,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4123
4123
|
]),
|
|
4124
4124
|
_: 3
|
|
4125
4125
|
}, 16, ["summary-method"])) : _e("", !0),
|
|
4126
|
-
(
|
|
4126
|
+
(Tt = (St = (ht = t.value) == null ? void 0 : ht.table) == null ? void 0 : St.page) != null && Tt.hidden ? _e("", !0) : x(a.$slots, "page", { key: 1 }, () => [
|
|
4127
4127
|
de(xe, Y({
|
|
4128
4128
|
"page-size": t.value.table.page.pageSize,
|
|
4129
4129
|
"onUpdate:pageSize": u[6] || (u[6] = (Z) => t.value.table.page.pageSize = Z),
|
|
@@ -4141,7 +4141,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4141
4141
|
], 64);
|
|
4142
4142
|
};
|
|
4143
4143
|
}
|
|
4144
|
-
}),
|
|
4144
|
+
}), hr = /* @__PURE__ */ nt(mr, [["__scopeId", "data-v-307159fe"]]), yr = { class: "g-tree-table" }, gr = { class: "g-tree-container" }, br = { class: "g-tree-table-container" }, $r = /* @__PURE__ */ Object.assign({
|
|
4145
4145
|
name: "g-tree-table",
|
|
4146
4146
|
inheritAttrs: !1
|
|
4147
4147
|
}, {
|
|
@@ -4153,7 +4153,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4153
4153
|
emits: /* @__PURE__ */ ut(["load"], ["update:modelValue"]),
|
|
4154
4154
|
setup(r, { emit: s }) {
|
|
4155
4155
|
var h, z, H, D;
|
|
4156
|
-
const e = s, l = ot(r, "modelValue"), n =
|
|
4156
|
+
const e = s, l = ot(r, "modelValue"), n = Lt(), d = ne(
|
|
4157
4157
|
typeof ((h = n == null ? void 0 : n.tree) == null ? void 0 : h.width) == "number" ? `${n.tree.width}px` : ((z = n == null ? void 0 : n.tree) == null ? void 0 : z.width) || "180px"
|
|
4158
4158
|
), t = ne(((H = n == null ? void 0 : n.tree) == null ? void 0 : H.search) === void 0 ? !0 : (D = n == null ? void 0 : n.tree) == null ? void 0 : D.search), i = ne({}), T = ne(""), f = ne(null), p = ($, X) => {
|
|
4159
4159
|
var le, se;
|
|
@@ -4165,11 +4165,11 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4165
4165
|
}, o = ($) => {
|
|
4166
4166
|
i.value = $, l.value.table.load();
|
|
4167
4167
|
};
|
|
4168
|
-
return
|
|
4168
|
+
return hl(T, ($) => {
|
|
4169
4169
|
f.value.filter($);
|
|
4170
4170
|
}), ($, X) => {
|
|
4171
4171
|
const ee = j("el-input"), le = j("el-tree"), se = j("g-table");
|
|
4172
|
-
return m(), U("div",
|
|
4172
|
+
return m(), U("div", yr, [
|
|
4173
4173
|
J("div", {
|
|
4174
4174
|
class: "g-tree-left",
|
|
4175
4175
|
style: Ue({ width: d.value })
|
|
@@ -4182,7 +4182,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4182
4182
|
placeholder: "输入节点查询",
|
|
4183
4183
|
clearable: ""
|
|
4184
4184
|
}, null, 8, ["modelValue"])) : _e("", !0),
|
|
4185
|
-
J("div",
|
|
4185
|
+
J("div", gr, [
|
|
4186
4186
|
de(le, Y({
|
|
4187
4187
|
style: { width: d.value },
|
|
4188
4188
|
"filter-node-method": p,
|
|
@@ -4210,7 +4210,7 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4210
4210
|
]), 1040, ["style"])
|
|
4211
4211
|
])
|
|
4212
4212
|
], 4),
|
|
4213
|
-
J("div",
|
|
4213
|
+
J("div", br, [
|
|
4214
4214
|
de(se, Y({
|
|
4215
4215
|
modelValue: l.value,
|
|
4216
4216
|
"onUpdate:modelValue": X[1] || (X[1] = (ie) => l.value = ie)
|
|
@@ -4229,14 +4229,14 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4229
4229
|
]);
|
|
4230
4230
|
};
|
|
4231
4231
|
}
|
|
4232
|
-
}),
|
|
4232
|
+
}), wr = /* @__PURE__ */ nt($r, [["__scopeId", "data-v-30eb4f60"]]), kr = {
|
|
4233
4233
|
key: 0,
|
|
4234
4234
|
class: "op-group"
|
|
4235
|
-
},
|
|
4235
|
+
}, _r = {
|
|
4236
4236
|
key: 1,
|
|
4237
4237
|
class: "op-items",
|
|
4238
4238
|
style: { width: "100%", height: "100%" }
|
|
4239
|
-
},
|
|
4239
|
+
}, Cr = ["title"], dl = "100px", xr = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
4240
4240
|
__name: "g-select-option",
|
|
4241
4241
|
props: {
|
|
4242
4242
|
columns: {
|
|
@@ -4258,45 +4258,45 @@ const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4258
4258
|
},
|
|
4259
4259
|
setup(r) {
|
|
4260
4260
|
const s = r;
|
|
4261
|
-
return (e, l) => s.title ? (m(), U("div",
|
|
4261
|
+
return (e, l) => s.title ? (m(), U("div", kr, [
|
|
4262
4262
|
(m(!0), U(oe, null, N(s.columns, (n) => (m(), U("span", {
|
|
4263
|
-
style: Ue({ width: (n == null ? void 0 : n.width) ||
|
|
4263
|
+
style: Ue({ width: (n == null ? void 0 : n.width) || dl, ...n == null ? void 0 : n.titleStyle, textAlign: (n == null ? void 0 : n.align) || "center" }),
|
|
4264
4264
|
key: n.key
|
|
4265
4265
|
}, [
|
|
4266
4266
|
x(e.$slots, `${r.t}-title-${n.key}`, { col: n }, () => [
|
|
4267
4267
|
He(Ee(n.label), 1)
|
|
4268
4268
|
], !0)
|
|
4269
4269
|
], 4))), 128))
|
|
4270
|
-
])) : (m(), U("div",
|
|
4270
|
+
])) : (m(), U("div", _r, [
|
|
4271
4271
|
(m(!0), U(oe, null, N(s.columns, (n) => (m(), U("span", {
|
|
4272
|
-
style: Ue({ width: (n == null ? void 0 : n.width) ||
|
|
4272
|
+
style: Ue({ width: (n == null ? void 0 : n.width) || dl, textAlign: (n == null ? void 0 : n.align) || "center", ...n == null ? void 0 : n.style }),
|
|
4273
4273
|
key: n.key,
|
|
4274
4274
|
title: r.data[n.key]
|
|
4275
4275
|
}, [
|
|
4276
4276
|
x(e.$slots, `${r.t}-option-${n.key}`, { col: n }, () => [
|
|
4277
4277
|
He(Ee(r.data[n.key] ?? "-"), 1)
|
|
4278
4278
|
], !0)
|
|
4279
|
-
], 12,
|
|
4279
|
+
], 12, Cr))), 128))
|
|
4280
4280
|
]));
|
|
4281
4281
|
}
|
|
4282
|
-
}),
|
|
4283
|
-
let
|
|
4284
|
-
const
|
|
4282
|
+
}), Mr = /* @__PURE__ */ nt(xr, [["__scopeId", "data-v-c0ac6b77"]]), Sr = Object.freeze({}), Wt = [hr, El, wr, Mr, Nt, Vl];
|
|
4283
|
+
let zt = {};
|
|
4284
|
+
const Fr = {
|
|
4285
4285
|
install: (r, s = {}) => {
|
|
4286
|
-
|
|
4286
|
+
zt = Object.freeze({ ...Sr, ...s }), Wt.forEach((e) => {
|
|
4287
4287
|
r.component(e.name, e);
|
|
4288
|
-
}), r.provide("options",
|
|
4288
|
+
}), r.provide("options", zt), r.config.globalProperties.$openModal = Er, r.config.globalProperties.$open = Yt;
|
|
4289
4289
|
}
|
|
4290
|
-
},
|
|
4290
|
+
}, Tr = (r) => ({ dialog: zl, drawer: Yl })[r] || null, Er = (r = {}, s = "dialog") => {
|
|
4291
4291
|
if (typeof document > "u") return () => {
|
|
4292
4292
|
};
|
|
4293
4293
|
const e = document.createElement("div");
|
|
4294
4294
|
let l = () => {
|
|
4295
4295
|
};
|
|
4296
|
-
const n =
|
|
4296
|
+
const n = Tr(s);
|
|
4297
4297
|
if (!n) return () => {
|
|
4298
4298
|
};
|
|
4299
|
-
const d = ne(!0), t =
|
|
4299
|
+
const d = ne(!0), t = yl({
|
|
4300
4300
|
setup() {
|
|
4301
4301
|
return l = () => {
|
|
4302
4302
|
d.value = !1, setTimeout(() => {
|
|
@@ -4322,25 +4322,25 @@ const Mr = {
|
|
|
4322
4322
|
};
|
|
4323
4323
|
},
|
|
4324
4324
|
mounted: () => {
|
|
4325
|
-
|
|
4325
|
+
kt();
|
|
4326
4326
|
}
|
|
4327
4327
|
});
|
|
4328
|
-
return
|
|
4328
|
+
return Wt.forEach((i) => {
|
|
4329
4329
|
t.component(i.name, i);
|
|
4330
|
-
}), t.provide("options",
|
|
4331
|
-
},
|
|
4330
|
+
}), t.provide("options", zt), t.use(cl, { locale: Cl }), document.body.appendChild(e), t.mount(e), l;
|
|
4331
|
+
}, Yt = (r = {}) => {
|
|
4332
4332
|
if (typeof document > "u") return () => {
|
|
4333
4333
|
};
|
|
4334
4334
|
const s = document.createElement("div");
|
|
4335
4335
|
let e = () => {
|
|
4336
4336
|
};
|
|
4337
|
-
const l = ne(!0), n =
|
|
4337
|
+
const l = ne(!0), n = yl({
|
|
4338
4338
|
setup() {
|
|
4339
4339
|
e = () => {
|
|
4340
4340
|
l.value = !1, setTimeout(() => {
|
|
4341
4341
|
n.unmount(), s.remove();
|
|
4342
4342
|
}, 300);
|
|
4343
|
-
},
|
|
4343
|
+
}, hl(l, (T) => {
|
|
4344
4344
|
T || setTimeout(() => {
|
|
4345
4345
|
n.unmount(), s.remove();
|
|
4346
4346
|
}, 300);
|
|
@@ -4351,17 +4351,17 @@ const Mr = {
|
|
|
4351
4351
|
//'close-on-click-modal': false,
|
|
4352
4352
|
...t
|
|
4353
4353
|
};
|
|
4354
|
-
return d && (i.onClose = d), () => Me(
|
|
4354
|
+
return d && (i.onClose = d), () => Me(Nt, i, r.slots);
|
|
4355
4355
|
},
|
|
4356
4356
|
mounted: () => {
|
|
4357
|
-
|
|
4357
|
+
kt();
|
|
4358
4358
|
}
|
|
4359
4359
|
});
|
|
4360
|
-
return
|
|
4360
|
+
return Wt.forEach((d) => {
|
|
4361
4361
|
n.component(d.name, d);
|
|
4362
|
-
}), n.provide("options",
|
|
4362
|
+
}), n.provide("options", zt), n.use(cl, { locale: Cl }), document.body.appendChild(s), n.mount(s), e;
|
|
4363
4363
|
};
|
|
4364
|
-
function
|
|
4364
|
+
function Vr(r, s = window.innerWidth) {
|
|
4365
4365
|
if (typeof r == "number")
|
|
4366
4366
|
return r;
|
|
4367
4367
|
if (r.endsWith("px"))
|
|
@@ -4383,7 +4383,7 @@ function pr(r, s = window.innerWidth) {
|
|
|
4383
4383
|
throw new Error("Invalid calc expression");
|
|
4384
4384
|
};
|
|
4385
4385
|
const n = r.slice(5, -1).trim();
|
|
4386
|
-
return d(n.replace(/([0-9.]+)([a-z%]+)/g, (i, T, f) =>
|
|
4386
|
+
return d(n.replace(/([0-9.]+)([a-z%]+)/g, (i, T, f) => Vr(T + f, s)));
|
|
4387
4387
|
}
|
|
4388
4388
|
throw new Error("Unsupported unit in value: " + r);
|
|
4389
4389
|
}
|
|
@@ -4399,19 +4399,19 @@ function Xe(r, s = (e, l) => l != null) {
|
|
|
4399
4399
|
r.hasOwnProperty(l) && s(l, r[l]) && (e[l] = r[l]);
|
|
4400
4400
|
return e;
|
|
4401
4401
|
}
|
|
4402
|
-
function
|
|
4402
|
+
function Dr(r, s, e = "value", l = "label", n = "children") {
|
|
4403
4403
|
for (const d of r) {
|
|
4404
4404
|
if (d[e] === s)
|
|
4405
4405
|
return d[l];
|
|
4406
4406
|
if (d[n] && d[n].length > 0) {
|
|
4407
|
-
const t =
|
|
4407
|
+
const t = Dr(d[n], s, e, l, n);
|
|
4408
4408
|
if (t)
|
|
4409
4409
|
return t;
|
|
4410
4410
|
}
|
|
4411
4411
|
}
|
|
4412
4412
|
return null;
|
|
4413
4413
|
}
|
|
4414
|
-
function
|
|
4414
|
+
function Pt(r) {
|
|
4415
4415
|
if (!r || isNaN(r)) return "零";
|
|
4416
4416
|
const s = ["角", "分"], e = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], l = [
|
|
4417
4417
|
["元", "万", "亿"],
|
|
@@ -4430,7 +4430,7 @@ function Rt(r) {
|
|
|
4430
4430
|
}
|
|
4431
4431
|
return n + d.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
4432
4432
|
}
|
|
4433
|
-
function
|
|
4433
|
+
function Or(r, s = 2, e = !1) {
|
|
4434
4434
|
let l = Number(r);
|
|
4435
4435
|
if (isNaN(l) || !isFinite(l))
|
|
4436
4436
|
return "0.00";
|
|
@@ -4441,7 +4441,7 @@ function hr(r, s = 2, e = !1) {
|
|
|
4441
4441
|
const [t, i] = d.split("."), T = t.replace(/\B(?=(\d{3})+(?!\d))/g, ","), f = i ? `${T}.${i}` : T;
|
|
4442
4442
|
return n ? `-${f}` : f;
|
|
4443
4443
|
}
|
|
4444
|
-
function
|
|
4444
|
+
function Ir(r, s) {
|
|
4445
4445
|
let e = null;
|
|
4446
4446
|
return function(...l) {
|
|
4447
4447
|
e && clearTimeout(e), e = setTimeout(() => {
|
|
@@ -4449,7 +4449,7 @@ function yr(r, s) {
|
|
|
4449
4449
|
}, s);
|
|
4450
4450
|
};
|
|
4451
4451
|
}
|
|
4452
|
-
function
|
|
4452
|
+
function Rr(r, s) {
|
|
4453
4453
|
let e = null;
|
|
4454
4454
|
return function(...l) {
|
|
4455
4455
|
e || (e = setTimeout(() => {
|
|
@@ -4486,15 +4486,15 @@ const Se = {
|
|
|
4486
4486
|
TEXTAREA: "textarea",
|
|
4487
4487
|
TEL: "tel",
|
|
4488
4488
|
INPUTTAG: "input-tag"
|
|
4489
|
-
},
|
|
4489
|
+
}, kt = () => {
|
|
4490
4490
|
rt(() => {
|
|
4491
4491
|
const r = document.querySelector(".el-dialog");
|
|
4492
4492
|
if (!r || r.querySelector(".dialog-resize-handle"))
|
|
4493
4493
|
return;
|
|
4494
|
-
const s =
|
|
4495
|
-
r.appendChild(s),
|
|
4494
|
+
const s = qr();
|
|
4495
|
+
r.appendChild(s), Ar(r), Yr(r, s);
|
|
4496
4496
|
});
|
|
4497
|
-
},
|
|
4497
|
+
}, qr = () => {
|
|
4498
4498
|
const r = document.createElement("div");
|
|
4499
4499
|
return Object.assign(r.style, {
|
|
4500
4500
|
position: "absolute",
|
|
@@ -4506,7 +4506,7 @@ const Se = {
|
|
|
4506
4506
|
cursor: "nwse-resize",
|
|
4507
4507
|
zIndex: "999999999999"
|
|
4508
4508
|
}), r.className = "dialog-resize-handle", r;
|
|
4509
|
-
},
|
|
4509
|
+
}, Ar = (r) => {
|
|
4510
4510
|
Object.assign(r.style, {
|
|
4511
4511
|
transition: "none",
|
|
4512
4512
|
minWidth: "300px",
|
|
@@ -4514,7 +4514,7 @@ const Se = {
|
|
|
4514
4514
|
resize: "none"
|
|
4515
4515
|
// 防止与原生resize冲突
|
|
4516
4516
|
});
|
|
4517
|
-
},
|
|
4517
|
+
}, Yr = (r, s) => {
|
|
4518
4518
|
let e = !1, l, n, d, t;
|
|
4519
4519
|
const i = (p) => {
|
|
4520
4520
|
p.preventDefault(), e = !0, l = p.clientX, n = p.clientY, d = parseInt(document.defaultView.getComputedStyle(r).width), t = parseInt(document.defaultView.getComputedStyle(r).height), document.addEventListener("mousemove", T), document.addEventListener("mouseup", f);
|
|
@@ -4529,16 +4529,16 @@ const Se = {
|
|
|
4529
4529
|
};
|
|
4530
4530
|
export {
|
|
4531
4531
|
Se as CT,
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4532
|
+
kt as bindResize,
|
|
4533
|
+
Vr as convertToPx,
|
|
4534
|
+
Ir as debounce,
|
|
4535
|
+
Fr as default,
|
|
4536
4536
|
Xe as filterObject,
|
|
4537
|
-
|
|
4538
|
-
|
|
4537
|
+
Dr as findTreeLabelByValue,
|
|
4538
|
+
Or as formatAmount,
|
|
4539
4539
|
Le as mergeObjects,
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4540
|
+
Pt as moneyToChinese,
|
|
4541
|
+
Yt as open,
|
|
4542
|
+
Er as openModal,
|
|
4543
|
+
Rr as throttle
|
|
4544
4544
|
};
|