vue-2024-ui 0.2.16 → 0.2.17
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 +362 -363
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Qt, { ElForm as mt, ElButtonGroup as pt, ElButton as Be, ElPopover as wt, ElMessage as Ge, ElMessageBox as At, ElDialog as Zt, ElDrawer as Jt } from "element-plus";
|
|
2
|
-
import { h as ke, mergeModels as Xe, useModel as Qe, ref as re, nextTick as at, onMounted as nt, computed as Ke, resolveComponent as L, openBlock as m, createElementBlock as U, Fragment as Z, createElementVNode as X, createBlock as B, createCommentVNode as ge, unref as z, mergeProps as O, withCtx as D, renderSlot as S, renderList as N, createTextVNode as
|
|
3
|
-
import { CircleCheck as It, CircleCheckFilled as il, Refresh as Ut, Plus as dl, ZoomIn as
|
|
2
|
+
import { h as ke, mergeModels as Xe, useModel as Qe, ref as re, nextTick as at, onMounted as nt, computed as Ke, resolveComponent as L, openBlock as m, createElementBlock as U, Fragment as Z, createElementVNode as X, createBlock as B, createCommentVNode as ge, unref as z, mergeProps as O, withCtx as D, renderSlot as S, renderList as N, createTextVNode as Ue, toDisplayString as De, createSlots as he, createVNode as K, normalizeStyle as Ae, normalizeProps as _t, useSlots as Bt, inject as Tt, useAttrs as Ft, onUnmounted as Kt, withModifiers as yt, resolveDynamicComponent as We, guardReactiveProps as el, Transition as tl, withDirectives as ll, vShow as al, onBeforeUnmount as rl, normalizeClass as Ot, watchEffect as ol, onBeforeMount as nl, watch as ul, createApp as sl } from "vue";
|
|
3
|
+
import { CircleCheck as It, CircleCheckFilled as il, Refresh as Ut, Plus as dl, ZoomIn as cl, Delete as Yt, More as fl, Search as vl, Download as Rt, DocumentCopy as ml, View as pl, Edit as hl, CirclePlus as yl, Setting as gl, FullScreen as bl, CopyDocument as $l } from "@element-plus/icons-vue";
|
|
4
4
|
import Lt from "sortablejs";
|
|
5
5
|
import { Dexie as wl } from "dexie";
|
|
6
6
|
var El = {
|
|
@@ -189,13 +189,13 @@ var zt = { exports: {} };
|
|
|
189
189
|
(function(a, t) {
|
|
190
190
|
o.exports = t();
|
|
191
191
|
})(_l, function() {
|
|
192
|
-
var a = 1e3, t = 6e4, r = 36e5, e = "millisecond", p = "second",
|
|
192
|
+
var a = 1e3, t = 6e4, r = 36e5, e = "millisecond", p = "second", f = "minute", T = "hour", d = "day", v = "week", n = "month", c = "quarter", w = "year", q = "date", j = "Invalid Date", P = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|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, fe = { 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(_) {
|
|
193
193
|
var b = ["th", "st", "nd", "rd"], s = _ % 100;
|
|
194
194
|
return "[" + _ + (b[(s - 20) % 10] || b[s] || b[0]) + "]";
|
|
195
195
|
} }, ue = function(_, b, s) {
|
|
196
196
|
var x = String(_);
|
|
197
197
|
return !x || x.length >= b ? _ : "" + Array(b + 1 - x.length).join(s) + _;
|
|
198
|
-
},
|
|
198
|
+
}, Ce = { s: ue, z: function(_) {
|
|
199
199
|
var b = -_.utcOffset(), s = Math.abs(b), x = Math.floor(s / 60), k = s % 60;
|
|
200
200
|
return (b <= 0 ? "+" : "-") + ue(x, 2, "0") + ":" + ue(k, 2, "0");
|
|
201
201
|
}, m: function _(b, s) {
|
|
@@ -205,16 +205,16 @@ var zt = { exports: {} };
|
|
|
205
205
|
}, a: function(_) {
|
|
206
206
|
return _ < 0 ? Math.ceil(_) || 0 : Math.floor(_);
|
|
207
207
|
}, p: function(_) {
|
|
208
|
-
return { M: n, y: w, w: v, d
|
|
208
|
+
return { M: n, y: w, w: v, d, D: q, h: T, m: f, s: p, ms: e, Q: c }[_] || String(_ || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(_) {
|
|
210
210
|
return _ === void 0;
|
|
211
|
-
} },
|
|
212
|
-
ie[
|
|
211
|
+
} }, ce = "en", ie = {};
|
|
212
|
+
ie[ce] = fe;
|
|
213
213
|
var ye = "$isDayjsObject", Fe = function(_) {
|
|
214
|
-
return _ instanceof
|
|
214
|
+
return _ instanceof Ie || !(!_ || !_[ye]);
|
|
215
215
|
}, oe = function _(b, s, x) {
|
|
216
216
|
var k;
|
|
217
|
-
if (!b) return
|
|
217
|
+
if (!b) return ce;
|
|
218
218
|
if (typeof b == "string") {
|
|
219
219
|
var C = b.toLowerCase();
|
|
220
220
|
ie[C] && (k = C), s && (ie[C] = s, k = C);
|
|
@@ -224,16 +224,16 @@ var zt = { exports: {} };
|
|
|
224
224
|
var Q = b.name;
|
|
225
225
|
ie[Q] = b, k = Q;
|
|
226
226
|
}
|
|
227
|
-
return !x && k && (
|
|
227
|
+
return !x && k && (ce = k), k || !x && ce;
|
|
228
228
|
}, se = function(_, b) {
|
|
229
229
|
if (Fe(_)) return _.clone();
|
|
230
230
|
var s = typeof b == "object" ? b : {};
|
|
231
|
-
return s.date = _, s.args = arguments, new
|
|
232
|
-
}, ne =
|
|
231
|
+
return s.date = _, s.args = arguments, new Ie(s);
|
|
232
|
+
}, ne = Ce;
|
|
233
233
|
ne.l = oe, ne.i = Fe, ne.w = function(_, b) {
|
|
234
234
|
return se(_, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
|
|
235
235
|
};
|
|
236
|
-
var
|
|
236
|
+
var Ie = function() {
|
|
237
237
|
function _(s) {
|
|
238
238
|
this.$L = oe(s.locale, null, !0), this.parse(s), this.$x = this.$x || s.x || {}, this[ye] = !0;
|
|
239
239
|
}
|
|
@@ -276,7 +276,7 @@ var zt = { exports: {} };
|
|
|
276
276
|
}, b.startOf = function(s, x) {
|
|
277
277
|
var k = this, C = !!ne.u(x) || x, Y = ne.p(s), Q = function($e, we) {
|
|
278
278
|
var Ee = ne.w(k.$u ? Date.UTC(k.$y, we, $e) : new Date(k.$y, we, $e), k);
|
|
279
|
-
return C ? Ee : Ee.endOf(
|
|
279
|
+
return C ? Ee : Ee.endOf(d);
|
|
280
280
|
}, te = function($e, we) {
|
|
281
281
|
return ne.w(k.toDate()[$e].apply(k.toDate("s"), (C ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(we)), k);
|
|
282
282
|
}, ee = this.$W, E = this.$M, g = this.$D, le = "set" + (this.$u ? "UTC" : "");
|
|
@@ -288,12 +288,12 @@ var zt = { exports: {} };
|
|
|
288
288
|
case v:
|
|
289
289
|
var be = this.$locale().weekStart || 0, pe = (ee < be ? ee + 7 : ee) - be;
|
|
290
290
|
return Q(C ? g - pe : g + (6 - pe), E);
|
|
291
|
-
case
|
|
291
|
+
case d:
|
|
292
292
|
case q:
|
|
293
293
|
return te(le + "Hours", 0);
|
|
294
294
|
case T:
|
|
295
295
|
return te(le + "Minutes", 1);
|
|
296
|
-
case
|
|
296
|
+
case f:
|
|
297
297
|
return te(le + "Seconds", 2);
|
|
298
298
|
case p:
|
|
299
299
|
return te(le + "Milliseconds", 3);
|
|
@@ -303,7 +303,7 @@ var zt = { exports: {} };
|
|
|
303
303
|
}, b.endOf = function(s) {
|
|
304
304
|
return this.startOf(s, !1);
|
|
305
305
|
}, b.$set = function(s, x) {
|
|
306
|
-
var k, C = ne.p(s), Y = "set" + (this.$u ? "UTC" : ""), Q = (k = {}, k[
|
|
306
|
+
var k, C = ne.p(s), Y = "set" + (this.$u ? "UTC" : ""), Q = (k = {}, k[d] = Y + "Date", k[q] = Y + "Date", k[n] = Y + "Month", k[w] = Y + "FullYear", k[T] = Y + "Hours", k[f] = Y + "Minutes", k[p] = Y + "Seconds", k[e] = Y + "Milliseconds", k)[C], te = C === d ? this.$D + (x - this.$W) : x;
|
|
307
307
|
if (C === n || C === w) {
|
|
308
308
|
var ee = this.clone().set(q, 1);
|
|
309
309
|
ee.$d[Q](te), ee.init(), this.$d = ee.set(q, Math.min(this.$D, ee.daysInMonth())).$d;
|
|
@@ -322,9 +322,9 @@ var zt = { exports: {} };
|
|
|
322
322
|
};
|
|
323
323
|
if (Y === n) return this.set(n, this.$M + s);
|
|
324
324
|
if (Y === w) return this.set(w, this.$y + s);
|
|
325
|
-
if (Y ===
|
|
325
|
+
if (Y === d) return Q(1);
|
|
326
326
|
if (Y === v) return Q(7);
|
|
327
|
-
var te = (k = {}, k[
|
|
327
|
+
var te = (k = {}, k[f] = t, k[T] = r, k[p] = a, k)[Y] || 1, ee = this.$d.getTime() + s * te;
|
|
328
328
|
return ne.w(ee, this);
|
|
329
329
|
}, b.subtract = function(s, x) {
|
|
330
330
|
return this.add(-1 * s, x);
|
|
@@ -407,19 +407,19 @@ var zt = { exports: {} };
|
|
|
407
407
|
case n:
|
|
408
408
|
C = g();
|
|
409
409
|
break;
|
|
410
|
-
case
|
|
410
|
+
case c:
|
|
411
411
|
C = g() / 3;
|
|
412
412
|
break;
|
|
413
413
|
case v:
|
|
414
414
|
C = (E - ee) / 6048e5;
|
|
415
415
|
break;
|
|
416
|
-
case
|
|
416
|
+
case d:
|
|
417
417
|
C = (E - ee) / 864e5;
|
|
418
418
|
break;
|
|
419
419
|
case T:
|
|
420
420
|
C = E / r;
|
|
421
421
|
break;
|
|
422
|
-
case
|
|
422
|
+
case f:
|
|
423
423
|
C = E / t;
|
|
424
424
|
break;
|
|
425
425
|
case p:
|
|
@@ -448,16 +448,16 @@ var zt = { exports: {} };
|
|
|
448
448
|
}, b.toString = function() {
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, _;
|
|
451
|
-
}(), M =
|
|
452
|
-
return se.prototype = M, [["$ms", e], ["$s", p], ["$m",
|
|
451
|
+
}(), M = Ie.prototype;
|
|
452
|
+
return se.prototype = M, [["$ms", e], ["$s", p], ["$m", f], ["$H", T], ["$W", d], ["$M", n], ["$y", w], ["$D", q]].forEach(function(_) {
|
|
453
453
|
M[_[1]] = function(b) {
|
|
454
454
|
return this.$g(b, _[0], _[1]);
|
|
455
455
|
};
|
|
456
456
|
}), se.extend = function(_, b) {
|
|
457
|
-
return _.$i || (_(b,
|
|
457
|
+
return _.$i || (_(b, Ie, se), _.$i = !0), se;
|
|
458
458
|
}, se.locale = oe, se.isDayjs = Fe, se.unix = function(_) {
|
|
459
459
|
return se(1e3 * _);
|
|
460
|
-
}, se.en = ie[
|
|
460
|
+
}, se.en = ie[ce], se.Ls = ie, se.p = {}, se;
|
|
461
461
|
});
|
|
462
462
|
})(zt);
|
|
463
463
|
var kl = zt.exports;
|
|
@@ -530,11 +530,11 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
530
530
|
}),
|
|
531
531
|
emits: ["update:modelValue"],
|
|
532
532
|
setup(o) {
|
|
533
|
-
var
|
|
534
|
-
const u = Qe(o, "modelValue"), a = o, t = re(a.item || {}), r = re(a.ctrlKey), e = re(a.ctrlType), p = re(a.model),
|
|
535
|
-
!((
|
|
536
|
-
const n = re({ display: "flex", flex: 1 }),
|
|
537
|
-
n.value = { ...n.value, justifyContent:
|
|
533
|
+
var Ie, M, _, b, s, x, k, C, Y, Q, te, ee;
|
|
534
|
+
const u = Qe(o, "modelValue"), a = o, t = re(a.item || {}), r = re(a.ctrlKey), e = re(a.ctrlType), p = re(a.model), f = re([]), T = re([]), d = re(!1), v = re(!1);
|
|
535
|
+
!((Ie = e.value) != null && Ie.startsWith("text")) && !((M = e.value) != null && M.startsWith("link")) && !((_ = e.value) != null && _.startsWith("tag")) && !((b = e.value) != null && b.startsWith("div")) && !((s = e.value) != null && s.startsWith("span")) && !((x = e.value) != null && x.startsWith("avatar")) && ((k = t.value) != null && k.style || (t.value.style = { width: ((Y = (C = t.value) == null ? void 0 : C.style) == null ? void 0 : Y.width) || "100%" }));
|
|
536
|
+
const n = re({ display: "flex", flex: 1 }), c = a.t === "t" ? "center" : "flex-start", w = ((Q = t.value) == null ? void 0 : Q.style) || {};
|
|
537
|
+
n.value = { ...n.value, justifyContent: c, ...w };
|
|
538
538
|
const q = () => {
|
|
539
539
|
const E = Bt(), g = Object.keys(E), le = `${a.t}-${r.value}-`;
|
|
540
540
|
return g.filter(($e) => $e.startsWith(le)).map(($e) => $e.replace(le, ""));
|
|
@@ -556,7 +556,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
556
556
|
"daterange",
|
|
557
557
|
"monthrange",
|
|
558
558
|
"yearrange"
|
|
559
|
-
].includes(E),
|
|
559
|
+
].includes(E), fe = (E) => ({
|
|
560
560
|
year: "YYYY",
|
|
561
561
|
years: "YYYY",
|
|
562
562
|
month: "YYYY-MM",
|
|
@@ -574,13 +574,13 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
574
574
|
filterable: !0,
|
|
575
575
|
remote: !!(t.value && t.value["remote-method"]),
|
|
576
576
|
...t.value
|
|
577
|
-
}),
|
|
577
|
+
}), Ce = re((E) => {
|
|
578
578
|
t.value["remote-method"](E, (g) => {
|
|
579
579
|
at(() => {
|
|
580
580
|
T.value = g;
|
|
581
581
|
});
|
|
582
582
|
});
|
|
583
|
-
}),
|
|
583
|
+
}), ce = async (E = "options") => {
|
|
584
584
|
var g;
|
|
585
585
|
try {
|
|
586
586
|
const le = await ((g = t.value) == null ? void 0 : g.getDicts(a.formInfo));
|
|
@@ -603,21 +603,21 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
603
603
|
}, ye = (E) => {
|
|
604
604
|
E.preventDefault(), E.stopPropagation(), u.value = "";
|
|
605
605
|
}, Fe = (E) => {
|
|
606
|
-
|
|
606
|
+
d.value = !0;
|
|
607
607
|
}, oe = (E) => {
|
|
608
|
-
E.preventDefault(), E.stopPropagation(),
|
|
608
|
+
E.preventDefault(), E.stopPropagation(), d.value = !0;
|
|
609
609
|
}, se = re(null);
|
|
610
610
|
nt(async () => {
|
|
611
611
|
var le, be, pe, $e, we;
|
|
612
|
-
t.value && t.value["remote-method"] && (ue.value["remote-method"] =
|
|
612
|
+
t.value && t.value["remote-method"] && (ue.value["remote-method"] = Ce), (be = (le = p.value[r.value]) == null ? void 0 : le.options) != null && be.length && (T.value = p.value[r.value].options);
|
|
613
613
|
const E = (Ee, xe = "options", Te = p.value[r.value]) => {
|
|
614
|
-
typeof t.value.getDicts == "function" &&
|
|
614
|
+
typeof t.value.getDicts == "function" && ce(xe).catch((Re) => {
|
|
615
615
|
console.error(`Failed to load ${xe} for ${Ee}:`, Re);
|
|
616
616
|
});
|
|
617
617
|
};
|
|
618
618
|
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(e.value) && E(e.value), e.value === Se.TREESELECT && await (async () => {
|
|
619
619
|
try {
|
|
620
|
-
typeof t.value.getDicts == "function" ?
|
|
620
|
+
typeof t.value.getDicts == "function" ? f.value = await t.value.getDicts(a.formInfo) : f.value = T.value;
|
|
621
621
|
} catch (xe) {
|
|
622
622
|
console.error("Failed to load data for tree-select:", xe);
|
|
623
623
|
}
|
|
@@ -655,14 +655,14 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
655
655
|
});
|
|
656
656
|
return (E, g) => {
|
|
657
657
|
var rt, ot, H, de, F, G, ae, je, Ne, He;
|
|
658
|
-
const le = L("el-image-viewer"), be = L("el-radio"), pe = L("el-radio-group"), $e = L("el-radio-button"), we = L("el-checkbox"), Ee = L("el-checkbox-group"), xe = L("el-checkbox-button"), Te = L("g-select-option"), Re = L("el-option"), ut = L("el-select"), st = L("el-tree-select"), it = L("el-time-picker"), dt = L("el-time-select"),
|
|
658
|
+
const le = L("el-image-viewer"), be = L("el-radio"), pe = L("el-radio-group"), $e = L("el-radio-button"), we = L("el-checkbox"), Ee = L("el-checkbox-group"), xe = L("el-checkbox-button"), Te = L("g-select-option"), Re = L("el-option"), ut = L("el-select"), st = L("el-tree-select"), it = L("el-time-picker"), dt = L("el-time-select"), ct = L("el-date-picker"), ft = L("el-color-picker"), vt = L("el-rate"), l = L("el-slider"), i = L("el-switch"), h = L("el-transfer"), $ = L("el-cascader"), A = L("el-icon"), R = L("el-image"), W = L("el-tooltip"), me = L("el-upload"), _e = L("el-autocomplete"), Ve = L("el-input-number"), Ye = L("el-input"), Pe = L("el-link"), Le = L("el-text"), Je = L("el-avatar"), lt = L("el-tag");
|
|
659
659
|
return m(), U(Z, null, [
|
|
660
660
|
X("div", null, [
|
|
661
|
-
|
|
661
|
+
d.value ? (m(), B(le, {
|
|
662
662
|
key: 0,
|
|
663
663
|
teleported: !0,
|
|
664
664
|
"url-list": ne.value,
|
|
665
|
-
onClose: g[0] || (g[0] = (y) =>
|
|
665
|
+
onClose: g[0] || (g[0] = (y) => d.value = !1)
|
|
666
666
|
}, null, 8, ["url-list"])) : ge("", !0)
|
|
667
667
|
]),
|
|
668
668
|
X("div", Cl, [
|
|
@@ -708,7 +708,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
708
708
|
}, t.value), {
|
|
709
709
|
default: D(() => [
|
|
710
710
|
S(E.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
|
|
711
|
-
g[27] || (g[27] =
|
|
711
|
+
g[27] || (g[27] = Ue(De(" ")))
|
|
712
712
|
], !0)
|
|
713
713
|
]),
|
|
714
714
|
_: 3
|
|
@@ -723,7 +723,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
723
723
|
(m(!0), U(Z, null, N(T.value, (y) => (m(), B(we, O({ ref_for: !0 }, y), {
|
|
724
724
|
default: D(() => [
|
|
725
725
|
S(E.$slots, `${a.t}-${r.value}-options`, { option: y }, () => [
|
|
726
|
-
|
|
726
|
+
Ue(De(y.label), 1)
|
|
727
727
|
], !0)
|
|
728
728
|
]),
|
|
729
729
|
_: 2
|
|
@@ -764,7 +764,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
764
764
|
(m(!0), U(Z, null, N(T.value, (y) => (m(), U(Z, {
|
|
765
765
|
key: y.value
|
|
766
766
|
}, [
|
|
767
|
-
K(Re, O({ ref_for: !0 }, z(
|
|
767
|
+
K(Re, O({ ref_for: !0 }, z(Oe)(y, (J) => J != "children"), {
|
|
768
768
|
onClick: (J) => {
|
|
769
769
|
ue.value.change && ue.value.change(y), ie();
|
|
770
770
|
}
|
|
@@ -804,7 +804,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
804
804
|
style: { "margin-left": "20px" },
|
|
805
805
|
key: J.value,
|
|
806
806
|
ref_for: !0
|
|
807
|
-
}, z(
|
|
807
|
+
}, z(Oe)(J, (V) => V != "children"), {
|
|
808
808
|
onClick: (V) => {
|
|
809
809
|
ue.value.change && ue.value.change(J), ie();
|
|
810
810
|
}
|
|
@@ -878,7 +878,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
878
878
|
"onUpdate:modelValue": g[8] || (g[8] = (y) => u.value = y),
|
|
879
879
|
placeholder: p.value[r.value].label,
|
|
880
880
|
disabled: p.value[r.value].disabled
|
|
881
|
-
}, t.value, { data:
|
|
881
|
+
}, t.value, { data: f.value }), he({ _: 2 }, [
|
|
882
882
|
N(q(), (y) => ({
|
|
883
883
|
name: y,
|
|
884
884
|
fn: D((J) => [
|
|
@@ -902,13 +902,13 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
902
902
|
end: "23:30",
|
|
903
903
|
placeholder: p.value[r.value].label,
|
|
904
904
|
disabled: p.value[r.value].disabled
|
|
905
|
-
}, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) : I(e.value) ? (m(), B(
|
|
905
|
+
}, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) : I(e.value) ? (m(), B(ct, O({
|
|
906
906
|
key: 9,
|
|
907
907
|
modelValue: u.value,
|
|
908
908
|
"onUpdate:modelValue": g[11] || (g[11] = (y) => u.value = y),
|
|
909
909
|
type: e.value,
|
|
910
910
|
placeholder: p.value[r.value].label,
|
|
911
|
-
"value-format":
|
|
911
|
+
"value-format": fe(e.value),
|
|
912
912
|
disabled: p.value[r.value].disabled
|
|
913
913
|
}, t.value), he({ _: 2 }, [
|
|
914
914
|
N(q(), (y) => ({
|
|
@@ -917,7 +917,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
917
917
|
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: J }, void 0, !0)
|
|
918
918
|
])
|
|
919
919
|
}))
|
|
920
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value == z(Se).COLOR ? (m(), B(
|
|
920
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value == z(Se).COLOR ? (m(), B(ft, O({
|
|
921
921
|
key: 10,
|
|
922
922
|
modelValue: u.value,
|
|
923
923
|
"onUpdate:modelValue": g[12] || (g[12] = (y) => u.value = y)
|
|
@@ -931,7 +931,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
931
931
|
modelValue: u.value,
|
|
932
932
|
"onUpdate:modelValue": g[14] || (g[14] = (y) => u.value = y),
|
|
933
933
|
disabled: p.value[r.value].disabled
|
|
934
|
-
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == z(Se).SWITCH ? (m(), B(
|
|
934
|
+
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == z(Se).SWITCH ? (m(), B(i, O({
|
|
935
935
|
key: 13,
|
|
936
936
|
modelValue: u.value,
|
|
937
937
|
"onUpdate:modelValue": g[15] || (g[15] = (y) => u.value = y),
|
|
@@ -1010,7 +1010,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1010
1010
|
placement: "top"
|
|
1011
1011
|
}, {
|
|
1012
1012
|
default: D(() => [
|
|
1013
|
-
K(z(
|
|
1013
|
+
K(z(cl), {
|
|
1014
1014
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
1015
1015
|
color: "white",
|
|
1016
1016
|
onClick: oe
|
|
@@ -1092,7 +1092,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1092
1092
|
X("div", {
|
|
1093
1093
|
title: z(Mt)(u.value),
|
|
1094
1094
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1095
|
-
},
|
|
1095
|
+
}, De(z(Mt)(u.value)), 9, Sl)
|
|
1096
1096
|
]),
|
|
1097
1097
|
_: 2
|
|
1098
1098
|
}, [
|
|
@@ -1169,7 +1169,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1169
1169
|
a.t == "q" && p.value.table.load();
|
|
1170
1170
|
}),
|
|
1171
1171
|
disabled: p.value[r.value].disabled
|
|
1172
|
-
}, { ...z(
|
|
1172
|
+
}, { ...z(Oe)(t.value, (y) => !["suffix", "prefix", "append", "prepend"].includes(y)), type: e.value }), he({ _: 2 }, [
|
|
1173
1173
|
(ae = t.value) != null && ae.suffix ? {
|
|
1174
1174
|
name: "suffix",
|
|
1175
1175
|
fn: D(() => {
|
|
@@ -1243,8 +1243,8 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1243
1243
|
}),
|
|
1244
1244
|
emits: /* @__PURE__ */ Xe(["submit", "reset"], ["update:modelValue"]),
|
|
1245
1245
|
setup(o, { expose: u, emit: a }) {
|
|
1246
|
-
var ye, Fe, oe, se, ne,
|
|
1247
|
-
const t = Qe(o, "modelValue"), r = a, e = re(null), p = Tt("options"),
|
|
1246
|
+
var ye, Fe, oe, se, ne, Ie;
|
|
1247
|
+
const t = Qe(o, "modelValue"), r = a, e = re(null), p = Tt("options"), f = re({}), T = re(""), d = o;
|
|
1248
1248
|
t.value.form = qe(
|
|
1249
1249
|
Pt,
|
|
1250
1250
|
p == null ? void 0 : p.form,
|
|
@@ -1284,7 +1284,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1284
1284
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1285
1285
|
};
|
|
1286
1286
|
t.value.form.submit.click = v, t.value.form.saveSubmit.click = v, t.value.form.reset.click = n;
|
|
1287
|
-
const
|
|
1287
|
+
const c = {
|
|
1288
1288
|
type: "hidden",
|
|
1289
1289
|
labelPosition: "right",
|
|
1290
1290
|
style: {
|
|
@@ -1292,7 +1292,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1292
1292
|
}
|
|
1293
1293
|
};
|
|
1294
1294
|
t.value.formItems = qe(
|
|
1295
|
-
|
|
1295
|
+
c,
|
|
1296
1296
|
p == null ? void 0 : p.formItems,
|
|
1297
1297
|
(ne = t == null ? void 0 : t.value) == null ? void 0 : ne.formItems
|
|
1298
1298
|
);
|
|
@@ -1302,7 +1302,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1302
1302
|
};
|
|
1303
1303
|
t.value.form.cols = qe(
|
|
1304
1304
|
w,
|
|
1305
|
-
(
|
|
1305
|
+
(Ie = p == null ? void 0 : p.form) == null ? void 0 : Ie.cols,
|
|
1306
1306
|
t.value.form.cols
|
|
1307
1307
|
);
|
|
1308
1308
|
const q = (M) => {
|
|
@@ -1367,7 +1367,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1367
1367
|
return _;
|
|
1368
1368
|
}, j = (M, _ = !1) => {
|
|
1369
1369
|
var x, k, C, Y, Q;
|
|
1370
|
-
const b = _ ? M : M == null ? void 0 : M.item, s = typeof (b == null ? void 0 : b.editor) == "function" ? b.editor(
|
|
1370
|
+
const b = _ ? M : M == null ? void 0 : M.item, s = typeof (b == null ? void 0 : b.editor) == "function" ? b.editor(f.value, (x = t.value.form) == null ? void 0 : x.modalState) : (b == null ? void 0 : b.editor) || {};
|
|
1371
1371
|
if (((k = t.value.form) == null ? void 0 : k.modalState) === "edit") {
|
|
1372
1372
|
const te = typeof (b == null ? void 0 : b.editor) == "object" ? (C = b.editor) == null ? void 0 : C.ep : typeof (b == null ? void 0 : b.editor) == "function" ? s == null ? void 0 : s.ep : {};
|
|
1373
1373
|
return { ...s, ...te };
|
|
@@ -1379,17 +1379,17 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1379
1379
|
return s;
|
|
1380
1380
|
}, P = (M) => {
|
|
1381
1381
|
var b, s, x, k, C;
|
|
1382
|
-
const _ = typeof M.editor == "function" ? M.editor(
|
|
1382
|
+
const _ = typeof M.editor == "function" ? M.editor(f.value, (b = t.value.form) == null ? void 0 : b.modalState) : M.editor;
|
|
1383
1383
|
return ((s = t.value.form) == null ? void 0 : s.modalState) === "edit" ? ((x = _ == null ? void 0 : _.ep) == null ? void 0 : x.type) ?? (_ == null ? void 0 : _.type) ?? M.type : ((k = t.value.form) == null ? void 0 : k.modalState) === "add" ? ((C = _ == null ? void 0 : _.ap) == null ? void 0 : C.type) ?? (_ == null ? void 0 : _.type) ?? M.type : (_ == null ? void 0 : _.type) ?? M.type;
|
|
1384
1384
|
};
|
|
1385
1385
|
nt(() => {
|
|
1386
|
-
I(),
|
|
1386
|
+
I(), d != null && d.editForm ? f.value = d.editForm : f.value = ue.value;
|
|
1387
1387
|
}), Kt(() => {
|
|
1388
1388
|
e.value = null;
|
|
1389
1389
|
});
|
|
1390
1390
|
const I = () => {
|
|
1391
1391
|
T.value = Math.random().toString(36).substring(2);
|
|
1392
|
-
for (const [M, _] of Object.entries(
|
|
1392
|
+
for (const [M, _] of Object.entries(fe.value))
|
|
1393
1393
|
t.value[M].formItem = {
|
|
1394
1394
|
...t.value[M].formItem,
|
|
1395
1395
|
..._.formItem
|
|
@@ -1397,11 +1397,11 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1397
1397
|
...t.value[M].formItem.style,
|
|
1398
1398
|
..._.formItem.style
|
|
1399
1399
|
};
|
|
1400
|
-
},
|
|
1400
|
+
}, fe = Ke(
|
|
1401
1401
|
() => Object.fromEntries(
|
|
1402
1402
|
Object.entries(t.value).filter((M) => M[1].type != "hidden").filter((M) => M[1].hidden !== !0).filter((M) => M[1].edit !== !1).filter((M) => M[1].editor !== !1).filter((M) => M[1].type !== "control").filter((M) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(M[0])).filter((M) => {
|
|
1403
1403
|
var b, s, x;
|
|
1404
|
-
const _ = typeof M[1].editor == "function" ? M[1].editor(
|
|
1404
|
+
const _ = typeof M[1].editor == "function" ? M[1].editor(f.value, (b = t.value.form) == null ? void 0 : b.modalState) : M[1].editor;
|
|
1405
1405
|
return t.value.form.modalState === "edit" ? ((s = _ == null ? void 0 : _.ep) == null ? void 0 : s.editor) !== !1 : t.value.form.modalState === "add" ? ((x = _ == null ? void 0 : _.ap) == null ? void 0 : x.editor) !== !1 : !0;
|
|
1406
1406
|
}).map((M) => [M[0], M[1]])
|
|
1407
1407
|
)
|
|
@@ -1409,9 +1409,9 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1409
1409
|
() => Object.fromEntries(
|
|
1410
1410
|
Object.entries(t.value).filter((M) => M[1].type != "hidden").filter((M) => M[1].type != "control").map((M) => [M[0], M[1].value])
|
|
1411
1411
|
)
|
|
1412
|
-
),
|
|
1412
|
+
), Ce = Ke(() => {
|
|
1413
1413
|
const M = /* @__PURE__ */ new Map();
|
|
1414
|
-
return Object.entries(
|
|
1414
|
+
return Object.entries(fe.value).forEach(([_, b]) => {
|
|
1415
1415
|
if (b.groupName) {
|
|
1416
1416
|
const s = b.groupName;
|
|
1417
1417
|
M.has(s) || M.set(s, {
|
|
@@ -1424,13 +1424,13 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1424
1424
|
..._.items.map(({ item: b }) => b.tabPane || {})
|
|
1425
1425
|
);
|
|
1426
1426
|
}), Array.from(M.values());
|
|
1427
|
-
}),
|
|
1427
|
+
}), ce = [
|
|
1428
1428
|
{
|
|
1429
1429
|
name: "f-submit",
|
|
1430
1430
|
label: t.value.form.submit.label,
|
|
1431
1431
|
click: t.value.form.submit.click,
|
|
1432
1432
|
hidden: t.value.form.submit.hidden,
|
|
1433
|
-
info:
|
|
1433
|
+
info: Oe(t.value.form.submit, (M) => !["click"].includes(M)),
|
|
1434
1434
|
sort: t.value.form.submit.sort ?? 1,
|
|
1435
1435
|
// 使用空值合并运算符
|
|
1436
1436
|
originalOrder: -1,
|
|
@@ -1441,8 +1441,8 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1441
1441
|
name: "f-save-submit",
|
|
1442
1442
|
label: t.value.form.saveSubmit.label,
|
|
1443
1443
|
click: t.value.form.saveSubmit.click,
|
|
1444
|
-
hidden: !(
|
|
1445
|
-
info:
|
|
1444
|
+
hidden: !(d.flag == "add" && t.value.form.saveSubmit.hidden === !1),
|
|
1445
|
+
info: Oe(t.value.form.saveSubmit, (M) => !["click"].includes(M)),
|
|
1446
1446
|
sort: t.value.form.saveSubmit.sort ?? 1,
|
|
1447
1447
|
// 使用空值合并运算符
|
|
1448
1448
|
originalOrder: 0,
|
|
@@ -1453,29 +1453,28 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1453
1453
|
name: "f-reset",
|
|
1454
1454
|
label: t.value.form.reset.label,
|
|
1455
1455
|
click: t.value.form.reset.click,
|
|
1456
|
-
info:
|
|
1456
|
+
info: Oe(t.value.form.reset, (M) => !["click"].includes(M)),
|
|
1457
1457
|
hidden: t.value.form.reset.hidden,
|
|
1458
1458
|
sort: t.value.form.reset.sort ?? 2,
|
|
1459
1459
|
// 使用空值合并运算符
|
|
1460
1460
|
originalOrder: 1
|
|
1461
1461
|
// 添加原始顺序标识
|
|
1462
1462
|
}
|
|
1463
|
-
], ie = Ke(() =>
|
|
1463
|
+
], ie = Ke(() => ce.filter((M) => !M.hidden).sort((M, _) => M.sort - _.sort || M.originalOrder - _.originalOrder));
|
|
1464
1464
|
return u({
|
|
1465
1465
|
submit: v,
|
|
1466
1466
|
saveSubmit: v,
|
|
1467
1467
|
reset: n,
|
|
1468
|
-
formData:
|
|
1468
|
+
formData: f
|
|
1469
1469
|
}), (M, _) => {
|
|
1470
1470
|
var Q, te, ee;
|
|
1471
1471
|
const b = L("el-form-item"), s = L("el-col"), x = L("el-tab-pane"), k = L("el-tabs"), C = L("el-form"), Y = L("el-button");
|
|
1472
1472
|
return m(), U("div", Ol, [
|
|
1473
|
-
Oe(Ce(i.flag) + " ", 1),
|
|
1474
1473
|
K(C, O(
|
|
1475
1474
|
{
|
|
1476
1475
|
ref_key: "gform",
|
|
1477
1476
|
ref: e,
|
|
1478
|
-
model:
|
|
1477
|
+
model: f.value,
|
|
1479
1478
|
style: {
|
|
1480
1479
|
width: "98%",
|
|
1481
1480
|
padding: 0,
|
|
@@ -1483,21 +1482,21 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1483
1482
|
"box-sizing": "border-box"
|
|
1484
1483
|
}
|
|
1485
1484
|
},
|
|
1486
|
-
z(
|
|
1485
|
+
z(Oe)(
|
|
1487
1486
|
t.value.form,
|
|
1488
1487
|
(E) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(E)
|
|
1489
1488
|
)
|
|
1490
1489
|
), {
|
|
1491
1490
|
default: D(() => [
|
|
1492
|
-
|
|
1491
|
+
Ce.value.length > 0 ? S(M.$slots, "default", { key: 0 }, () => [
|
|
1493
1492
|
K(k, O({
|
|
1494
1493
|
class: "demo-tabs",
|
|
1495
|
-
modelValue:
|
|
1496
|
-
"onUpdate:modelValue": _[0] || (_[0] = (E) =>
|
|
1494
|
+
modelValue: Ce.value[0].groupName,
|
|
1495
|
+
"onUpdate:modelValue": _[0] || (_[0] = (E) => Ce.value[0].groupName = E),
|
|
1497
1496
|
style: { width: "100%" }
|
|
1498
1497
|
}, t.value.form.tabs), {
|
|
1499
1498
|
default: D(() => [
|
|
1500
|
-
(m(!0), U(Z, null, N(
|
|
1499
|
+
(m(!0), U(Z, null, N(Ce.value, (E) => (m(), B(x, O({
|
|
1501
1500
|
key: E.groupName,
|
|
1502
1501
|
label: E.groupName,
|
|
1503
1502
|
name: E.groupName,
|
|
@@ -1521,13 +1520,13 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1521
1520
|
default: D(() => [
|
|
1522
1521
|
S(M.$slots, "f-" + g.key, {
|
|
1523
1522
|
item: g == null ? void 0 : g.item,
|
|
1524
|
-
formInfo:
|
|
1523
|
+
formInfo: f.value,
|
|
1525
1524
|
model: t.value,
|
|
1526
|
-
form:
|
|
1525
|
+
form: f.value
|
|
1527
1526
|
}, () => [
|
|
1528
1527
|
(m(), B(bt, {
|
|
1529
|
-
modelValue:
|
|
1530
|
-
"onUpdate:modelValue": ($e) =>
|
|
1528
|
+
modelValue: f.value[g.key],
|
|
1529
|
+
"onUpdate:modelValue": ($e) => f.value[g.key] = $e,
|
|
1531
1530
|
item: j(g),
|
|
1532
1531
|
ctrlKey: g.key,
|
|
1533
1532
|
ctrlType: P(g == null ? void 0 : g.item),
|
|
@@ -1535,7 +1534,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1535
1534
|
key: `${g.key}-${T.value}`,
|
|
1536
1535
|
class: "g-ctrl-container",
|
|
1537
1536
|
t: "f",
|
|
1538
|
-
formInfo:
|
|
1537
|
+
formInfo: f.value
|
|
1539
1538
|
}, he({ _: 2 }, [
|
|
1540
1539
|
N(M.$slots, ($e, we) => ({
|
|
1541
1540
|
name: we,
|
|
@@ -1563,7 +1562,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1563
1562
|
_: 3
|
|
1564
1563
|
}, 16, ["modelValue"])
|
|
1565
1564
|
], !0) : S(M.$slots, "default", { key: 1 }, () => [
|
|
1566
|
-
(m(!0), U(Z, null, N(
|
|
1565
|
+
(m(!0), U(Z, null, N(fe.value, (E, g) => (m(), B(s, O({ ref_for: !0 }, { ...t.value.form.cols, ...E.col }, {
|
|
1567
1566
|
key: g,
|
|
1568
1567
|
style: { width: "100%" }
|
|
1569
1568
|
}), {
|
|
@@ -1582,19 +1581,19 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1582
1581
|
item: E,
|
|
1583
1582
|
model: t.value
|
|
1584
1583
|
}, () => [
|
|
1585
|
-
|
|
1584
|
+
Ue(De(E.label), 1)
|
|
1586
1585
|
], !0)
|
|
1587
1586
|
]),
|
|
1588
1587
|
default: D(() => [
|
|
1589
1588
|
S(M.$slots, "f-" + g, {
|
|
1590
1589
|
item: E,
|
|
1591
|
-
formInfo:
|
|
1590
|
+
formInfo: f.value,
|
|
1592
1591
|
model: t.value,
|
|
1593
|
-
form:
|
|
1592
|
+
form: f.value
|
|
1594
1593
|
}, () => [
|
|
1595
1594
|
(m(), B(bt, {
|
|
1596
|
-
modelValue:
|
|
1597
|
-
"onUpdate:modelValue": (be) =>
|
|
1595
|
+
modelValue: f.value[g],
|
|
1596
|
+
"onUpdate:modelValue": (be) => f.value[g] = be,
|
|
1598
1597
|
item: j(E, !0),
|
|
1599
1598
|
ctrlKey: g,
|
|
1600
1599
|
ctrlType: P(E),
|
|
@@ -1602,7 +1601,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1602
1601
|
model: t.value,
|
|
1603
1602
|
class: "g-ctrl-container",
|
|
1604
1603
|
t: "f",
|
|
1605
|
-
formInfo:
|
|
1604
|
+
formInfo: f.value
|
|
1606
1605
|
}, he({ _: 2 }, [
|
|
1607
1606
|
N(M.$slots, (be, pe) => ({
|
|
1608
1607
|
name: pe,
|
|
@@ -1636,10 +1635,10 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1636
1635
|
S(M.$slots, E.name + "-left", {}, void 0, !0),
|
|
1637
1636
|
S(M.$slots, E.name, {}, () => [
|
|
1638
1637
|
K(Y, O({ ref_for: !0 }, E.info, {
|
|
1639
|
-
onClick: yt((g) => E.click(
|
|
1638
|
+
onClick: yt((g) => E.click(f.value, t.value, E.flag), ["stop"])
|
|
1640
1639
|
}), {
|
|
1641
1640
|
default: D(() => [
|
|
1642
|
-
|
|
1641
|
+
Ue(De(E == null ? void 0 : E.label), 1)
|
|
1643
1642
|
]),
|
|
1644
1643
|
_: 2
|
|
1645
1644
|
}, 1040, ["onClick"])
|
|
@@ -1652,7 +1651,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1652
1651
|
]);
|
|
1653
1652
|
};
|
|
1654
1653
|
}
|
|
1655
|
-
}), kt = /* @__PURE__ */ Ze(Il, [["__scopeId", "data-v-
|
|
1654
|
+
}), kt = /* @__PURE__ */ Ze(Il, [["__scopeId", "data-v-de09465f"]]), xt = {
|
|
1656
1655
|
__name: "g-query-item",
|
|
1657
1656
|
props: /* @__PURE__ */ Xe(["more"], {
|
|
1658
1657
|
modelValue: { required: !0 },
|
|
@@ -1662,43 +1661,43 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1662
1661
|
}),
|
|
1663
1662
|
emits: ["update:modelValue", "update:info"],
|
|
1664
1663
|
setup(o) {
|
|
1665
|
-
const u = Qe(o, "modelValue"), a = o, t = Qe(o, "info"), r = (T) => Ke(() => Object.fromEntries(Object.entries(u.value).filter((
|
|
1664
|
+
const u = Qe(o, "modelValue"), a = o, t = Qe(o, "info"), r = (T) => Ke(() => Object.fromEntries(Object.entries(u.value).filter((d) => {
|
|
1666
1665
|
var v;
|
|
1667
|
-
return typeof
|
|
1668
|
-
}).map((
|
|
1669
|
-
const
|
|
1670
|
-
return (
|
|
1671
|
-
},
|
|
1666
|
+
return typeof d[1].search == "function" ? d[1].search && ((v = d[1].search(t.value, u.value.table)) == null ? void 0 : v.more) === T : d[1].search && d[1].search.more === T;
|
|
1667
|
+
}).map((d) => [d[0], d[1]]))).value, e = (T) => typeof T.search == "function" ? T.search(t.value, u.value.table) : T.search || {}, p = (T) => {
|
|
1668
|
+
const d = e(T);
|
|
1669
|
+
return (d == null ? void 0 : d.type) || T.type;
|
|
1670
|
+
}, f = (T) => {
|
|
1672
1671
|
var n;
|
|
1673
|
-
const
|
|
1674
|
-
let v = (
|
|
1672
|
+
const d = e(T);
|
|
1673
|
+
let v = (d == null ? void 0 : d.width) || ((n = u.value.queryItems) == null ? void 0 : n.width) || "100%";
|
|
1675
1674
|
return isNaN(v) || (v += "px"), v;
|
|
1676
1675
|
};
|
|
1677
|
-
return (T,
|
|
1676
|
+
return (T, d) => {
|
|
1678
1677
|
const v = L("el-form-item");
|
|
1679
|
-
return m(!0), U(Z, null, N(r(a.more), (n,
|
|
1680
|
-
key:
|
|
1678
|
+
return m(!0), U(Z, null, N(r(a.more), (n, c) => S(T.$slots, `q-${c}`, {
|
|
1679
|
+
key: c,
|
|
1681
1680
|
item: n,
|
|
1682
1681
|
queryModel: t.value,
|
|
1683
1682
|
model: u.value
|
|
1684
1683
|
}, () => [
|
|
1685
1684
|
K(v, O({
|
|
1686
1685
|
label: n.label,
|
|
1687
|
-
style: { width:
|
|
1686
|
+
style: { width: f(n) },
|
|
1688
1687
|
ref_for: !0
|
|
1689
1688
|
}, { ...u.value.queryItems, ...e(n) }), {
|
|
1690
1689
|
label: D(() => [
|
|
1691
|
-
S(T.$slots, `q-${
|
|
1690
|
+
S(T.$slots, `q-${c}-label`, {
|
|
1692
1691
|
item: n,
|
|
1693
1692
|
model: u.value
|
|
1694
1693
|
})
|
|
1695
1694
|
]),
|
|
1696
1695
|
default: D(() => [
|
|
1697
1696
|
K(bt, {
|
|
1698
|
-
modelValue: t.value[
|
|
1699
|
-
"onUpdate:modelValue": (w) => t.value[
|
|
1697
|
+
modelValue: t.value[c],
|
|
1698
|
+
"onUpdate:modelValue": (w) => t.value[c] = w,
|
|
1700
1699
|
item: { ...n == null ? void 0 : n.editor, ...e(n) },
|
|
1701
|
-
ctrlKey:
|
|
1700
|
+
ctrlKey: c,
|
|
1702
1701
|
ctrlType: p(n),
|
|
1703
1702
|
model: u.value,
|
|
1704
1703
|
t: "q",
|
|
@@ -1734,7 +1733,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1734
1733
|
},
|
|
1735
1734
|
emits: /* @__PURE__ */ Xe(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1736
1735
|
setup(o, { emit: u }) {
|
|
1737
|
-
const a = Qe(o, "modelValue"), t = u, r = Tt("options"), e = re(!1), p = Qe(o, "info"),
|
|
1736
|
+
const a = Qe(o, "modelValue"), t = u, r = Tt("options"), e = re(!1), p = Qe(o, "info"), f = {
|
|
1738
1737
|
hidden: !1,
|
|
1739
1738
|
type: "hidden",
|
|
1740
1739
|
labelWidth: 100,
|
|
@@ -1751,7 +1750,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1751
1750
|
hidden: !0,
|
|
1752
1751
|
type: "primary",
|
|
1753
1752
|
label: "更多",
|
|
1754
|
-
icon: () => ke(
|
|
1753
|
+
icon: () => ke(fl),
|
|
1755
1754
|
click: () => {
|
|
1756
1755
|
e.value = !e.value;
|
|
1757
1756
|
}
|
|
@@ -1786,7 +1785,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1786
1785
|
}
|
|
1787
1786
|
}
|
|
1788
1787
|
};
|
|
1789
|
-
a.value.query = qe(
|
|
1788
|
+
a.value.query = qe(f, r == null ? void 0 : r.query, a.value.query);
|
|
1790
1789
|
const T = {
|
|
1791
1790
|
2: {
|
|
1792
1791
|
title: "更多查询",
|
|
@@ -1808,7 +1807,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1808
1807
|
T[a.value.query.more.mode] || {},
|
|
1809
1808
|
a.value.query.more.dialog
|
|
1810
1809
|
);
|
|
1811
|
-
const
|
|
1810
|
+
const d = {
|
|
1812
1811
|
type: "hidden",
|
|
1813
1812
|
hidden: !1,
|
|
1814
1813
|
labelPosition: "right",
|
|
@@ -1817,9 +1816,9 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1817
1816
|
// width: "280px"
|
|
1818
1817
|
}
|
|
1819
1818
|
};
|
|
1820
|
-
a.value.queryItems = qe(
|
|
1819
|
+
a.value.queryItems = qe(d, r == null ? void 0 : r.queryItems, a.value.queryItems);
|
|
1821
1820
|
const v = (q, j) => {
|
|
1822
|
-
const P = Object.keys(q.slots).filter((I) => I !== "default").reduce((I,
|
|
1821
|
+
const P = Object.keys(q.slots).filter((I) => I !== "default").reduce((I, fe) => (I[fe] = (ue) => q.slots[fe]({
|
|
1823
1822
|
model: a.value
|
|
1824
1823
|
// 传递当前模型数据
|
|
1825
1824
|
}), I), {});
|
|
@@ -1830,12 +1829,12 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1830
1829
|
"onUpdate:info": (I) => p.value = I,
|
|
1831
1830
|
more: j
|
|
1832
1831
|
}, P);
|
|
1833
|
-
}, n = Bt(),
|
|
1834
|
-
var P, I,
|
|
1832
|
+
}, n = Bt(), c = () => {
|
|
1833
|
+
var P, I, fe, ue, Ce, ce, ie, ye, Fe;
|
|
1835
1834
|
const q = [
|
|
1836
1835
|
{
|
|
1837
1836
|
key: "query",
|
|
1838
|
-
hidden: (
|
|
1837
|
+
hidden: (fe = (I = (P = a.value) == null ? void 0 : P.query) == null ? void 0 : I.query) == null ? void 0 : fe.hidden,
|
|
1839
1838
|
component: Be,
|
|
1840
1839
|
props: {
|
|
1841
1840
|
...a.value.query.query,
|
|
@@ -1846,7 +1845,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1846
1845
|
},
|
|
1847
1846
|
{
|
|
1848
1847
|
key: "reset",
|
|
1849
|
-
hidden: (
|
|
1848
|
+
hidden: (ce = (Ce = (ue = a.value) == null ? void 0 : ue.query) == null ? void 0 : Ce.reset) == null ? void 0 : ce.hidden,
|
|
1850
1849
|
component: Be,
|
|
1851
1850
|
props: {
|
|
1852
1851
|
...a.value.query.reset,
|
|
@@ -1867,7 +1866,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1867
1866
|
sort: a.value.query.more.sort || 0,
|
|
1868
1867
|
content: a.value.query.more.mode === 3 ? () => ke(mt, {
|
|
1869
1868
|
class: "query-form",
|
|
1870
|
-
...
|
|
1869
|
+
...Oe(a.value.query, (oe) => !["query", "more", "reset"].includes(oe))
|
|
1871
1870
|
}, () => v({ slots: n }, !0)) : null
|
|
1872
1871
|
}
|
|
1873
1872
|
];
|
|
@@ -1880,17 +1879,17 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1880
1879
|
flexDirection: a.value.query.container.mode === "row" ? "row" : "column"
|
|
1881
1880
|
}));
|
|
1882
1881
|
return (q, j) => {
|
|
1883
|
-
var
|
|
1882
|
+
var fe, ue, Ce, ce, ie, ye, Fe, oe, se, ne, Ie, M, _, b, s, x, k;
|
|
1884
1883
|
const P = L("el-form-item"), I = L("el-drawer");
|
|
1885
1884
|
return m(), U(Z, null, [
|
|
1886
1885
|
X("div", {
|
|
1887
1886
|
class: "g-query-container",
|
|
1888
|
-
style: Ae({ ...w.value, ...((ue = (
|
|
1887
|
+
style: Ae({ ...w.value, ...((ue = (fe = a.value.query) == null ? void 0 : fe.container) == null ? void 0 : ue.style) || {} })
|
|
1889
1888
|
}, [
|
|
1890
1889
|
K(z(mt), O({
|
|
1891
1890
|
onSubmit: j[0] || (j[0] = yt(() => {
|
|
1892
1891
|
}, ["prevent"]))
|
|
1893
|
-
}, z(
|
|
1892
|
+
}, z(Oe)(a.value.query, (C) => !["query", "more", "reset", "btns"].includes(C))), {
|
|
1894
1893
|
default: D(() => {
|
|
1895
1894
|
var C, Y;
|
|
1896
1895
|
return [
|
|
@@ -1904,7 +1903,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1904
1903
|
}, [
|
|
1905
1904
|
a.value.query.group ? (m(), B(z(pt), { key: 0 }, {
|
|
1906
1905
|
default: D(() => [
|
|
1907
|
-
(m(!0), U(Z, null, N(
|
|
1906
|
+
(m(!0), U(Z, null, N(c(), (le) => S(q.$slots, le.props.slot, {}, () => [
|
|
1908
1907
|
(m(), B(We(le)))
|
|
1909
1908
|
], !0)), 256)),
|
|
1910
1909
|
S(q.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1913,12 +1912,12 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1913
1912
|
})) : (m(), U(Z, { key: 1 }, [
|
|
1914
1913
|
(g = (E = (ee = a.value) == null ? void 0 : ee.query) == null ? void 0 : E.btns) != null && g.group ? (m(), B(z(pt), { key: 0 }, {
|
|
1915
1914
|
default: D(() => [
|
|
1916
|
-
(m(!0), U(Z, null, N(
|
|
1915
|
+
(m(!0), U(Z, null, N(c(), (le) => S(q.$slots, le.props.slot, {}, () => [
|
|
1917
1916
|
(m(), B(We(le)))
|
|
1918
1917
|
], !0)), 256))
|
|
1919
1918
|
]),
|
|
1920
1919
|
_: 3
|
|
1921
|
-
})) : (m(!0), U(Z, { key: 1 }, N(
|
|
1920
|
+
})) : (m(!0), U(Z, { key: 1 }, N(c(), (le) => S(q.$slots, le.props.slot, {}, () => [
|
|
1922
1921
|
(m(), B(We(le)))
|
|
1923
1922
|
], !0)), 256)),
|
|
1924
1923
|
S(q.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1932,13 +1931,13 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1932
1931
|
}),
|
|
1933
1932
|
_: 3
|
|
1934
1933
|
}, 16),
|
|
1935
|
-
((ie = (
|
|
1934
|
+
((ie = (ce = (Ce = a.value) == null ? void 0 : Ce.query) == null ? void 0 : ce.container) == null ? void 0 : ie.inline) === !1 ? (m(), U("div", {
|
|
1936
1935
|
key: 0,
|
|
1937
1936
|
style: Ae((Fe = (ye = a.value.query) == null ? void 0 : ye.btns) == null ? void 0 : Fe.style)
|
|
1938
1937
|
}, [
|
|
1939
1938
|
a.value.query.group ? (m(), B(z(pt), { key: 0 }, {
|
|
1940
1939
|
default: D(() => [
|
|
1941
|
-
(m(!0), U(Z, null, N(
|
|
1940
|
+
(m(!0), U(Z, null, N(c(), (C) => S(q.$slots, C.props.slot, {}, () => [
|
|
1942
1941
|
(m(), B(We(C)))
|
|
1943
1942
|
], !0)), 256)),
|
|
1944
1943
|
S(q.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1947,19 +1946,19 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1947
1946
|
})) : (m(), U(Z, { key: 1 }, [
|
|
1948
1947
|
(se = (oe = a.value.query) == null ? void 0 : oe.btns) != null && se.group ? (m(), B(z(pt), { key: 0 }, {
|
|
1949
1948
|
default: D(() => [
|
|
1950
|
-
(m(!0), U(Z, null, N(
|
|
1949
|
+
(m(!0), U(Z, null, N(c(), (C) => S(q.$slots, C.props.slot, {}, () => [
|
|
1951
1950
|
(m(), B(We(C)))
|
|
1952
1951
|
], !0)), 256))
|
|
1953
1952
|
]),
|
|
1954
1953
|
_: 3
|
|
1955
|
-
})) : (m(!0), U(Z, { key: 1 }, N(
|
|
1954
|
+
})) : (m(!0), U(Z, { key: 1 }, N(c(), (C) => S(q.$slots, C.props.slot, {}, () => [
|
|
1956
1955
|
(m(), B(We(C)))
|
|
1957
1956
|
], !0)), 256)),
|
|
1958
1957
|
S(q.$slots, "q-btns", {}, void 0, !0)
|
|
1959
1958
|
], 64))
|
|
1960
1959
|
], 4)) : ge("", !0)
|
|
1961
1960
|
], 4),
|
|
1962
|
-
e.value && !((M = (
|
|
1961
|
+
e.value && !((M = (Ie = (ne = a.value) == null ? void 0 : ne.query) == null ? void 0 : Ie.more) != null && M.hidden) && a.value.query.more.mode == 2 ? (m(), B(I, O({
|
|
1963
1962
|
key: 0,
|
|
1964
1963
|
modelValue: e.value,
|
|
1965
1964
|
"onUpdate:modelValue": j[6] || (j[6] = (C) => e.value = C),
|
|
@@ -1970,7 +1969,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1970
1969
|
K(z(mt), O({
|
|
1971
1970
|
onSubmit: j[3] || (j[3] = yt(() => {
|
|
1972
1971
|
}, ["prevent"]))
|
|
1973
|
-
}, z(
|
|
1972
|
+
}, z(Oe)(a.value.query, (C) => !["query", "more", "reset"].includes(C)), { style: { width: "98%" } }), {
|
|
1974
1973
|
default: D(() => [
|
|
1975
1974
|
K(xt, {
|
|
1976
1975
|
modelValue: a.value,
|
|
@@ -2000,7 +1999,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2000
1999
|
onClick: j[4] || (j[4] = (C) => a.value.query.query.click())
|
|
2001
2000
|
}), {
|
|
2002
2001
|
default: D(() => [
|
|
2003
|
-
|
|
2002
|
+
Ue(De(a.value.query.query.label), 1)
|
|
2004
2003
|
]),
|
|
2005
2004
|
_: 1
|
|
2006
2005
|
}, 16),
|
|
@@ -2008,7 +2007,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2008
2007
|
onClick: j[5] || (j[5] = (C) => a.value.query.reset.click())
|
|
2009
2008
|
}), {
|
|
2010
2009
|
default: D(() => [
|
|
2011
|
-
|
|
2010
|
+
Ue(De(a.value.query.reset.label), 1)
|
|
2012
2011
|
]),
|
|
2013
2012
|
_: 1
|
|
2014
2013
|
}, 16)
|
|
@@ -2031,7 +2030,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2031
2030
|
key: 0,
|
|
2032
2031
|
onSubmit: j[7] || (j[7] = yt(() => {
|
|
2033
2032
|
}, ["prevent"]))
|
|
2034
|
-
}, z(
|
|
2033
|
+
}, z(Oe)(a.value.query, (te) => !["query", "more", "reset"].includes(te))), {
|
|
2035
2034
|
default: D(() => [
|
|
2036
2035
|
(m(), B(We(v({ slots: q.$slots }, !0))))
|
|
2037
2036
|
]),
|
|
@@ -2067,15 +2066,15 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2067
2066
|
r.value.forEach((T) => {
|
|
2068
2067
|
T.value = !1;
|
|
2069
2068
|
});
|
|
2070
|
-
},
|
|
2071
|
-
t("excel", r.value, (T,
|
|
2069
|
+
}, f = () => {
|
|
2070
|
+
t("excel", r.value, (T, d = "excel.xls") => {
|
|
2072
2071
|
if (!T) {
|
|
2073
2072
|
console.error("下载链接无效");
|
|
2074
2073
|
return;
|
|
2075
2074
|
}
|
|
2076
2075
|
try {
|
|
2077
2076
|
const v = document.createElement("a");
|
|
2078
|
-
v.href = T, v.download =
|
|
2077
|
+
v.href = T, v.download = d, v.style.display = "none", document.body.appendChild(v), v.click(), document.body.removeChild(v);
|
|
2079
2078
|
} catch (v) {
|
|
2080
2079
|
console.error("下载文件时出现错误:", v);
|
|
2081
2080
|
}
|
|
@@ -2087,12 +2086,12 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2087
2086
|
onEnd: () => {
|
|
2088
2087
|
T.toArray();
|
|
2089
2088
|
}
|
|
2090
|
-
}),
|
|
2089
|
+
}), d = T;
|
|
2091
2090
|
rl(() => {
|
|
2092
|
-
|
|
2091
|
+
d && d.destroy();
|
|
2093
2092
|
});
|
|
2094
|
-
}), (T,
|
|
2095
|
-
const v = L("el-divider"), n = L("el-alert"),
|
|
2093
|
+
}), (T, d) => {
|
|
2094
|
+
const v = L("el-divider"), n = L("el-alert"), c = L("el-checkbox"), w = L("el-button");
|
|
2096
2095
|
return m(), U("div", Hl, [
|
|
2097
2096
|
X("div", zl, [
|
|
2098
2097
|
X("div", Pl, [
|
|
@@ -2113,9 +2112,9 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2113
2112
|
closable: !1,
|
|
2114
2113
|
style: { "margin-bottom": "10px" }
|
|
2115
2114
|
}),
|
|
2116
|
-
|
|
2115
|
+
d[0] || (d[0] = X("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2117
2116
|
X("div", jl, [
|
|
2118
|
-
(m(!0), U(Z, null, N(r.value, (q) => (m(), B(
|
|
2117
|
+
(m(!0), U(Z, null, N(r.value, (q) => (m(), B(c, {
|
|
2119
2118
|
class: "check-box-hover",
|
|
2120
2119
|
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" },
|
|
2121
2120
|
"data-id": q.key,
|
|
@@ -2126,7 +2125,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2126
2125
|
}, {
|
|
2127
2126
|
default: D(() => [
|
|
2128
2127
|
X("span", {
|
|
2129
|
-
textContent:
|
|
2128
|
+
textContent: De(q.label),
|
|
2130
2129
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2131
2130
|
}, null, 8, Nl)
|
|
2132
2131
|
]),
|
|
@@ -2137,12 +2136,12 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2137
2136
|
X("div", Wl, [
|
|
2138
2137
|
K(w, {
|
|
2139
2138
|
type: "primary",
|
|
2140
|
-
onClick:
|
|
2139
|
+
onClick: f,
|
|
2141
2140
|
icon: z(Rt),
|
|
2142
2141
|
disabled: r.value.filter((q) => q.value).length < 1
|
|
2143
2142
|
}, {
|
|
2144
2143
|
default: D(() => [
|
|
2145
|
-
|
|
2144
|
+
Ue(De(a.commitText), 1)
|
|
2146
2145
|
]),
|
|
2147
2146
|
_: 1
|
|
2148
2147
|
}, 8, ["icon", "disabled"])
|
|
@@ -2269,17 +2268,17 @@ const na = {
|
|
|
2269
2268
|
}),
|
|
2270
2269
|
emits: /* @__PURE__ */ Xe(["setting-drag-end", "select-all"], ["update:modelValue"]),
|
|
2271
2270
|
setup(o, { emit: u }) {
|
|
2272
|
-
const a = o, t = u, r = re([]), e = Qe(o, "modelValue"), p = async (n,
|
|
2273
|
-
n ? (e.value[
|
|
2274
|
-
},
|
|
2271
|
+
const a = o, t = u, r = re([]), e = Qe(o, "modelValue"), p = async (n, c) => {
|
|
2272
|
+
n ? (e.value[c].showCol = !0, await ht(a.tuid, c, "del")) : (e.value[c].showCol = !1, await ht(a.tuid, c, "add"));
|
|
2273
|
+
}, f = () => {
|
|
2275
2274
|
const n = document.getElementById("cols");
|
|
2276
2275
|
if (n) {
|
|
2277
|
-
let
|
|
2276
|
+
let c = Lt.create(n, {
|
|
2278
2277
|
animation: 150,
|
|
2279
2278
|
filter: ".filtered",
|
|
2280
2279
|
sort: !0,
|
|
2281
2280
|
onEnd: async () => {
|
|
2282
|
-
let w =
|
|
2281
|
+
let w = c.toArray();
|
|
2283
2282
|
try {
|
|
2284
2283
|
ra(a.tuid, w).then((q) => {
|
|
2285
2284
|
t("setting-drag-end");
|
|
@@ -2306,12 +2305,12 @@ const na = {
|
|
|
2306
2305
|
message: "全选列保存信息失败!"
|
|
2307
2306
|
});
|
|
2308
2307
|
}
|
|
2309
|
-
},
|
|
2308
|
+
}, d = async () => {
|
|
2310
2309
|
try {
|
|
2311
|
-
let n = r.value.filter((
|
|
2312
|
-
n.forEach((
|
|
2313
|
-
|
|
2314
|
-
}), ht(a.tuid, n.map((
|
|
2310
|
+
let n = r.value.filter((c) => !c.alwaysShow && c.value != "control" && c.value != "hidden");
|
|
2311
|
+
n.forEach((c) => {
|
|
2312
|
+
c.showCol = !1;
|
|
2313
|
+
}), ht(a.tuid, n.map((c) => c.value), "delAll").then((c) => {
|
|
2315
2314
|
t("select-all");
|
|
2316
2315
|
});
|
|
2317
2316
|
} catch (n) {
|
|
@@ -2337,21 +2336,21 @@ const na = {
|
|
|
2337
2336
|
});
|
|
2338
2337
|
};
|
|
2339
2338
|
return nt(async () => {
|
|
2340
|
-
r.value = Object.entries(e.value).filter(([, n]) => n.visible !== !1).filter(([, n]) => n.type != "hidden").map(([n,
|
|
2341
|
-
label:
|
|
2339
|
+
r.value = Object.entries(e.value).filter(([, n]) => n.visible !== !1).filter(([, n]) => n.type != "hidden").map(([n, c]) => ({
|
|
2340
|
+
label: c.label,
|
|
2342
2341
|
value: n,
|
|
2343
|
-
alwaysShow:
|
|
2344
|
-
showCol:
|
|
2345
|
-
sort:
|
|
2346
|
-
width:
|
|
2347
|
-
})).sort((n,
|
|
2348
|
-
}), (n,
|
|
2342
|
+
alwaysShow: c.alwaysShow,
|
|
2343
|
+
showCol: c.showCol !== !1,
|
|
2344
|
+
sort: c.sort || 0,
|
|
2345
|
+
width: c == null ? void 0 : c.width
|
|
2346
|
+
})).sort((n, c) => n.sort - c.sort), f();
|
|
2347
|
+
}), (n, c) => {
|
|
2349
2348
|
const w = L("el-divider"), q = L("el-alert"), j = L("el-checkbox");
|
|
2350
2349
|
return m(), U("div", null, [
|
|
2351
2350
|
X("div", na, [
|
|
2352
2351
|
X("a", { onClick: T }, "全选"),
|
|
2353
2352
|
K(w, { direction: "vertical" }),
|
|
2354
|
-
X("a", { onClick:
|
|
2353
|
+
X("a", { onClick: d }, "全不选"),
|
|
2355
2354
|
K(w, { direction: "vertical" }),
|
|
2356
2355
|
X("a", { onClick: v }, "复位")
|
|
2357
2356
|
]),
|
|
@@ -2378,7 +2377,7 @@ const na = {
|
|
|
2378
2377
|
}, {
|
|
2379
2378
|
default: D(() => [
|
|
2380
2379
|
X("span", {
|
|
2381
|
-
textContent:
|
|
2380
|
+
textContent: De(P.label),
|
|
2382
2381
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2383
2382
|
}, null, 8, sa)
|
|
2384
2383
|
]),
|
|
@@ -2389,7 +2388,7 @@ const na = {
|
|
|
2389
2388
|
]);
|
|
2390
2389
|
};
|
|
2391
2390
|
}
|
|
2392
|
-
}, da = /* @__PURE__ */ Ze(ia, [["__scopeId", "data-v-adb08f30"]]),
|
|
2391
|
+
}, da = /* @__PURE__ */ Ze(ia, [["__scopeId", "data-v-adb08f30"]]), ca = { class: "title" }, fa = { class: "content" }, va = {
|
|
2393
2392
|
__name: "g-cell-toopTip",
|
|
2394
2393
|
props: {
|
|
2395
2394
|
content: {
|
|
@@ -2409,7 +2408,7 @@ const na = {
|
|
|
2409
2408
|
class: "g-cell-toopTip",
|
|
2410
2409
|
style: Ae({ width: u.column.width + "px" })
|
|
2411
2410
|
}, [
|
|
2412
|
-
X("div",
|
|
2411
|
+
X("div", ca, [
|
|
2413
2412
|
r[0] || (r[0] = X("span", { class: "title-text" }, "内容", -1)),
|
|
2414
2413
|
X("span", {
|
|
2415
2414
|
class: "copy-btn",
|
|
@@ -2419,7 +2418,7 @@ const na = {
|
|
|
2419
2418
|
K(z(ml))
|
|
2420
2419
|
])
|
|
2421
2420
|
]),
|
|
2422
|
-
X("div",
|
|
2421
|
+
X("div", fa, De(u.content), 1)
|
|
2423
2422
|
], 4));
|
|
2424
2423
|
}
|
|
2425
2424
|
}, ma = /* @__PURE__ */ Ze(va, [["__scopeId", "data-v-f28912da"]]);
|
|
@@ -2535,32 +2534,32 @@ function ya(o) {
|
|
|
2535
2534
|
(function() {
|
|
2536
2535
|
var o = pa, u = Vt.utf8, a = ha, t = Vt.bin, r = function(e, p) {
|
|
2537
2536
|
e.constructor == String ? p && p.encoding === "binary" ? e = t.stringToBytes(e) : e = u.stringToBytes(e) : a(e) ? e = Array.prototype.slice.call(e, 0) : !Array.isArray(e) && e.constructor !== Uint8Array && (e = e.toString());
|
|
2538
|
-
for (var
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
for (var q = r._ff, j = r._gg, P = r._hh, I = r._ii, w = 0; w <
|
|
2542
|
-
var
|
|
2543
|
-
|
|
2537
|
+
for (var f = o.bytesToWords(e), T = e.length * 8, d = 1732584193, v = -271733879, n = -1732584194, c = 271733878, w = 0; w < f.length; w++)
|
|
2538
|
+
f[w] = (f[w] << 8 | f[w] >>> 24) & 16711935 | (f[w] << 24 | f[w] >>> 8) & 4278255360;
|
|
2539
|
+
f[T >>> 5] |= 128 << T % 32, f[(T + 64 >>> 9 << 4) + 14] = T;
|
|
2540
|
+
for (var q = r._ff, j = r._gg, P = r._hh, I = r._ii, w = 0; w < f.length; w += 16) {
|
|
2541
|
+
var fe = d, ue = v, Ce = n, ce = c;
|
|
2542
|
+
d = q(d, v, n, c, f[w + 0], 7, -680876936), c = q(c, d, v, n, f[w + 1], 12, -389564586), n = q(n, c, d, v, f[w + 2], 17, 606105819), v = q(v, n, c, d, f[w + 3], 22, -1044525330), d = q(d, v, n, c, f[w + 4], 7, -176418897), c = q(c, d, v, n, f[w + 5], 12, 1200080426), n = q(n, c, d, v, f[w + 6], 17, -1473231341), v = q(v, n, c, d, f[w + 7], 22, -45705983), d = q(d, v, n, c, f[w + 8], 7, 1770035416), c = q(c, d, v, n, f[w + 9], 12, -1958414417), n = q(n, c, d, v, f[w + 10], 17, -42063), v = q(v, n, c, d, f[w + 11], 22, -1990404162), d = q(d, v, n, c, f[w + 12], 7, 1804603682), c = q(c, d, v, n, f[w + 13], 12, -40341101), n = q(n, c, d, v, f[w + 14], 17, -1502002290), v = q(v, n, c, d, f[w + 15], 22, 1236535329), d = j(d, v, n, c, f[w + 1], 5, -165796510), c = j(c, d, v, n, f[w + 6], 9, -1069501632), n = j(n, c, d, v, f[w + 11], 14, 643717713), v = j(v, n, c, d, f[w + 0], 20, -373897302), d = j(d, v, n, c, f[w + 5], 5, -701558691), c = j(c, d, v, n, f[w + 10], 9, 38016083), n = j(n, c, d, v, f[w + 15], 14, -660478335), v = j(v, n, c, d, f[w + 4], 20, -405537848), d = j(d, v, n, c, f[w + 9], 5, 568446438), c = j(c, d, v, n, f[w + 14], 9, -1019803690), n = j(n, c, d, v, f[w + 3], 14, -187363961), v = j(v, n, c, d, f[w + 8], 20, 1163531501), d = j(d, v, n, c, f[w + 13], 5, -1444681467), c = j(c, d, v, n, f[w + 2], 9, -51403784), n = j(n, c, d, v, f[w + 7], 14, 1735328473), v = j(v, n, c, d, f[w + 12], 20, -1926607734), d = P(d, v, n, c, f[w + 5], 4, -378558), c = P(c, d, v, n, f[w + 8], 11, -2022574463), n = P(n, c, d, v, f[w + 11], 16, 1839030562), v = P(v, n, c, d, f[w + 14], 23, -35309556), d = P(d, v, n, c, f[w + 1], 4, -1530992060), c = P(c, d, v, n, f[w + 4], 11, 1272893353), n = P(n, c, d, v, f[w + 7], 16, -155497632), v = P(v, n, c, d, f[w + 10], 23, -1094730640), d = P(d, v, n, c, f[w + 13], 4, 681279174), c = P(c, d, v, n, f[w + 0], 11, -358537222), n = P(n, c, d, v, f[w + 3], 16, -722521979), v = P(v, n, c, d, f[w + 6], 23, 76029189), d = P(d, v, n, c, f[w + 9], 4, -640364487), c = P(c, d, v, n, f[w + 12], 11, -421815835), n = P(n, c, d, v, f[w + 15], 16, 530742520), v = P(v, n, c, d, f[w + 2], 23, -995338651), d = I(d, v, n, c, f[w + 0], 6, -198630844), c = I(c, d, v, n, f[w + 7], 10, 1126891415), n = I(n, c, d, v, f[w + 14], 15, -1416354905), v = I(v, n, c, d, f[w + 5], 21, -57434055), d = I(d, v, n, c, f[w + 12], 6, 1700485571), c = I(c, d, v, n, f[w + 3], 10, -1894986606), n = I(n, c, d, v, f[w + 10], 15, -1051523), v = I(v, n, c, d, f[w + 1], 21, -2054922799), d = I(d, v, n, c, f[w + 8], 6, 1873313359), c = I(c, d, v, n, f[w + 15], 10, -30611744), n = I(n, c, d, v, f[w + 6], 15, -1560198380), v = I(v, n, c, d, f[w + 13], 21, 1309151649), d = I(d, v, n, c, f[w + 4], 6, -145523070), c = I(c, d, v, n, f[w + 11], 10, -1120210379), n = I(n, c, d, v, f[w + 2], 15, 718787259), v = I(v, n, c, d, f[w + 9], 21, -343485551), d = d + fe >>> 0, v = v + ue >>> 0, n = n + Ce >>> 0, c = c + ce >>> 0;
|
|
2544
2543
|
}
|
|
2545
|
-
return o.endian([
|
|
2544
|
+
return o.endian([d, v, n, c]);
|
|
2546
2545
|
};
|
|
2547
|
-
r._ff = function(e, p,
|
|
2548
|
-
var
|
|
2549
|
-
return (
|
|
2550
|
-
}, r._gg = function(e, p,
|
|
2551
|
-
var
|
|
2552
|
-
return (
|
|
2553
|
-
}, r._hh = function(e, p,
|
|
2554
|
-
var
|
|
2555
|
-
return (
|
|
2556
|
-
}, r._ii = function(e, p,
|
|
2557
|
-
var
|
|
2558
|
-
return (
|
|
2546
|
+
r._ff = function(e, p, f, T, d, v, n) {
|
|
2547
|
+
var c = e + (p & f | ~p & T) + (d >>> 0) + n;
|
|
2548
|
+
return (c << v | c >>> 32 - v) + p;
|
|
2549
|
+
}, r._gg = function(e, p, f, T, d, v, n) {
|
|
2550
|
+
var c = e + (p & T | f & ~T) + (d >>> 0) + n;
|
|
2551
|
+
return (c << v | c >>> 32 - v) + p;
|
|
2552
|
+
}, r._hh = function(e, p, f, T, d, v, n) {
|
|
2553
|
+
var c = e + (p ^ f ^ T) + (d >>> 0) + n;
|
|
2554
|
+
return (c << v | c >>> 32 - v) + p;
|
|
2555
|
+
}, r._ii = function(e, p, f, T, d, v, n) {
|
|
2556
|
+
var c = e + (f ^ (p | ~T)) + (d >>> 0) + n;
|
|
2557
|
+
return (c << v | c >>> 32 - v) + p;
|
|
2559
2558
|
}, r._blocksize = 16, r._digestsize = 16, jt.exports = function(e, p) {
|
|
2560
2559
|
if (e == null)
|
|
2561
2560
|
throw new Error("Illegal argument " + e);
|
|
2562
|
-
var
|
|
2563
|
-
return p && p.asBytes ?
|
|
2561
|
+
var f = o.wordsToBytes(r(e, p));
|
|
2562
|
+
return p && p.asBytes ? f : p && p.asString ? t.bytesToString(f) : o.bytesToHex(f);
|
|
2564
2563
|
};
|
|
2565
2564
|
})();
|
|
2566
2565
|
var ga = jt.exports;
|
|
@@ -2589,10 +2588,10 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2589
2588
|
"row-save"
|
|
2590
2589
|
], ["update:modelValue"]),
|
|
2591
2590
|
setup(o, { expose: u, emit: a }) {
|
|
2592
|
-
var ut, st, it, dt,
|
|
2593
|
-
const t = re(""), r = a, e = Qe(o, "modelValue"), p = Tt("options"),
|
|
2594
|
-
|
|
2595
|
-
const n = re(!1),
|
|
2591
|
+
var ut, st, it, dt, ct, ft, vt;
|
|
2592
|
+
const t = re(""), r = a, e = Qe(o, "modelValue"), p = Tt("options"), f = re({}), T = re(null), d = re(null), v = Object.entries(e.value).filter(([l, i]) => (i == null ? void 0 : i.search) !== void 0).map(([l, i]) => [l, i.value]);
|
|
2593
|
+
f.value = Object.fromEntries(v);
|
|
2594
|
+
const n = re(!1), c = [
|
|
2596
2595
|
"type",
|
|
2597
2596
|
"index",
|
|
2598
2597
|
"label",
|
|
@@ -2621,7 +2620,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2621
2620
|
"filter-multiple",
|
|
2622
2621
|
"filter-method",
|
|
2623
2622
|
"filtered-value"
|
|
2624
|
-
], w = re([]), q = Ft(), j = re({}), P = re([]), I = re(null),
|
|
2623
|
+
], w = re([]), q = Ft(), j = re({}), P = re([]), I = re(null), fe = re(""), ue = re("/"), Ce = re({
|
|
2625
2624
|
autoWatch: !1,
|
|
2626
2625
|
data: [],
|
|
2627
2626
|
border: !0,
|
|
@@ -2631,11 +2630,11 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2631
2630
|
type: "hidden",
|
|
2632
2631
|
load: async () => {
|
|
2633
2632
|
e.value.table.page.pageSize = await aa(ue.value);
|
|
2634
|
-
let { currentPage: l, pageSize:
|
|
2633
|
+
let { currentPage: l, pageSize: i } = e.value.table.page;
|
|
2635
2634
|
try {
|
|
2636
2635
|
r(
|
|
2637
2636
|
"load",
|
|
2638
|
-
{ currentPage: l, pageSize:
|
|
2637
|
+
{ currentPage: l, pageSize: i, ...f.value },
|
|
2639
2638
|
(h = [], $ = 0, { fields: A = [], sums: R = {} } = {}) => {
|
|
2640
2639
|
var W;
|
|
2641
2640
|
if (!Array.isArray(h)) {
|
|
@@ -2646,7 +2645,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2646
2645
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Ge.error("数据加载失败,请检查数据格式。");
|
|
2647
2646
|
return;
|
|
2648
2647
|
}
|
|
2649
|
-
e.value.table.data = h, ((W = e.value.control) == null ? void 0 : W.add(e).inline) === !0 && e.value.table.data.unshift(I.value), e.value.table.page.total = $, P.value = A, j.value = R, we(),
|
|
2648
|
+
e.value.table.data = h, ((W = e.value.control) == null ? void 0 : W.add(e).inline) === !0 && e.value.table.data.unshift(I.value), e.value.table.page.total = $, P.value = A, j.value = R, we(), fe.value = Math.random().toString(36).substring(2);
|
|
2650
2649
|
},
|
|
2651
2650
|
I.value
|
|
2652
2651
|
);
|
|
@@ -2654,11 +2653,11 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2654
2653
|
console.error("触发 load 事件时出现错误:", h), Ge.error("数据加载时出现错误,请稍后重试。");
|
|
2655
2654
|
}
|
|
2656
2655
|
},
|
|
2657
|
-
onHeaderDragend: (l,
|
|
2656
|
+
onHeaderDragend: (l, i, h) => {
|
|
2658
2657
|
Jl(ue.value, h.property, l);
|
|
2659
2658
|
},
|
|
2660
|
-
onRowDblclick: (l,
|
|
2661
|
-
e.value.table.dblclickType == "edit" ? b(l,
|
|
2659
|
+
onRowDblclick: (l, i, h) => {
|
|
2660
|
+
e.value.table.dblclickType == "edit" ? b(l, i, h, e) : e.value.table.dblclickType == "view" ? x(l, i, h, e) : e.value.table.dblclickType == "delete" ? s(l, i, h, e) : e.value.table.dblclickType(l, i, h, e);
|
|
2662
2661
|
},
|
|
2663
2662
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
2664
2663
|
page: {
|
|
@@ -2684,18 +2683,18 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2684
2683
|
}
|
|
2685
2684
|
},
|
|
2686
2685
|
dblclickType: "edit",
|
|
2687
|
-
"summary-method": ({ columns: l, data:
|
|
2688
|
-
onSortChange: ({ column: l, prop:
|
|
2686
|
+
"summary-method": ({ columns: l, data: i }, h) => h,
|
|
2687
|
+
onSortChange: ({ column: l, prop: i, order: h }, $) => {
|
|
2689
2688
|
}
|
|
2690
2689
|
});
|
|
2691
2690
|
e.value.table = qe(
|
|
2692
|
-
|
|
2691
|
+
Ce.value,
|
|
2693
2692
|
p == null ? void 0 : p.table,
|
|
2694
2693
|
e.value.table,
|
|
2695
2694
|
q
|
|
2696
2695
|
// 继承父组件的属性
|
|
2697
2696
|
);
|
|
2698
|
-
const
|
|
2697
|
+
const ce = {
|
|
2699
2698
|
type: "control",
|
|
2700
2699
|
label: "操作",
|
|
2701
2700
|
align: "center",
|
|
@@ -2704,7 +2703,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2704
2703
|
fixed: "right",
|
|
2705
2704
|
style: { ...(st = (ut = e.value) == null ? void 0 : ut.control) == null ? void 0 : st.style },
|
|
2706
2705
|
validate: async (l) => await !0,
|
|
2707
|
-
view: (l,
|
|
2706
|
+
view: (l, i, h, $) => ({
|
|
2708
2707
|
label: "查看",
|
|
2709
2708
|
text: !0,
|
|
2710
2709
|
type: "success",
|
|
@@ -2715,7 +2714,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2715
2714
|
return !(((A = $ == null ? void 0 : $.control) == null ? void 0 : A.add($).inline) === !0 && h === 0);
|
|
2716
2715
|
}
|
|
2717
2716
|
}),
|
|
2718
|
-
edit: (l,
|
|
2717
|
+
edit: (l, i, h, $) => ({
|
|
2719
2718
|
label: "编辑",
|
|
2720
2719
|
text: !0,
|
|
2721
2720
|
type: "primary",
|
|
@@ -2726,7 +2725,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2726
2725
|
return ((A = $ == null ? void 0 : $.control) == null ? void 0 : A.add($).inline) !== !0;
|
|
2727
2726
|
}
|
|
2728
2727
|
}),
|
|
2729
|
-
delete: (l,
|
|
2728
|
+
delete: (l, i, h, $) => ({
|
|
2730
2729
|
text: !0,
|
|
2731
2730
|
label: "删除",
|
|
2732
2731
|
type: "danger",
|
|
@@ -2745,7 +2744,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2745
2744
|
}
|
|
2746
2745
|
}
|
|
2747
2746
|
}),
|
|
2748
|
-
save: (l,
|
|
2747
|
+
save: (l, i, h, $) => ({
|
|
2749
2748
|
label: $.control.add($).inline !== !0 ? "保存" : h === 0 ? "新增" : "保存",
|
|
2750
2749
|
text: !0,
|
|
2751
2750
|
icon: () => ke(It),
|
|
@@ -2782,7 +2781,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2782
2781
|
icon: () => ke(gl),
|
|
2783
2782
|
auth: () => !0
|
|
2784
2783
|
}),
|
|
2785
|
-
dropdown: (l,
|
|
2784
|
+
dropdown: (l, i, h, $) => ({
|
|
2786
2785
|
label: "编辑",
|
|
2787
2786
|
operate: "edit",
|
|
2788
2787
|
"split-button": !0,
|
|
@@ -2791,44 +2790,44 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2791
2790
|
auth: () => !($.control.add($).inline === !0 && h == 0),
|
|
2792
2791
|
onClick: () => {
|
|
2793
2792
|
var R;
|
|
2794
|
-
let A = (R = ye(l,
|
|
2795
|
-
A === "edit" ? b(l,
|
|
2793
|
+
let A = (R = ye(l, i, h, $)) == null ? void 0 : R.operate;
|
|
2794
|
+
A === "edit" ? b(l, i, h, $) : A === "delete" ? s(l, i, h, $) : A === "view" && x(l, i, h, $);
|
|
2796
2795
|
},
|
|
2797
2796
|
"button-props": { round: !0, plain: !0 }
|
|
2798
2797
|
})
|
|
2799
2798
|
};
|
|
2800
2799
|
e.value.control = qe(
|
|
2801
|
-
|
|
2800
|
+
ce,
|
|
2802
2801
|
p == null ? void 0 : p.control,
|
|
2803
2802
|
(it = e.value) == null ? void 0 : it.control
|
|
2804
2803
|
);
|
|
2805
|
-
const ie = (l,
|
|
2806
|
-
const h = e.value.control[l], $ =
|
|
2804
|
+
const ie = (l, i = !0) => {
|
|
2805
|
+
const h = e.value.control[l], $ = i ? (A, R, W, me) => {
|
|
2807
2806
|
var Pe, Le, Je;
|
|
2808
2807
|
if (!A || !R || W == null)
|
|
2809
2808
|
return console.warn(`merge${l.charAt(0).toUpperCase() + l.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
2810
|
-
const _e = ((Pe =
|
|
2809
|
+
const _e = ((Pe = ce[l]) == null ? void 0 : Pe.call(ce, A, R, W, me)) || {}, Ve = ((Je = (Le = p == null ? void 0 : p.control) == null ? void 0 : Le[l]) == null ? void 0 : Je.call(Le, A, R, W, me)) || {}, Ye = (h == null ? void 0 : h(A, R, W, me)) || {};
|
|
2811
2810
|
return qe(_e, Ve, Ye) || {};
|
|
2812
2811
|
} : (A) => {
|
|
2813
2812
|
var _e, Ve, Ye;
|
|
2814
|
-
const R = ((_e =
|
|
2813
|
+
const R = ((_e = ce[l]) == null ? void 0 : _e.call(ce, A)) || {}, W = ((Ye = (Ve = p == null ? void 0 : p.control) == null ? void 0 : Ve[l]) == null ? void 0 : Ye.call(Ve, A)) || {}, me = (h == null ? void 0 : h(A)) || {};
|
|
2815
2814
|
return qe(R, W, me) || {};
|
|
2816
2815
|
};
|
|
2817
2816
|
e.value.control[l] = $;
|
|
2818
2817
|
};
|
|
2819
2818
|
ie("edit"), ie("delete"), ie("view"), ie("save"), ie("add", !1), ie("download", !1), ie("setting", !1);
|
|
2820
|
-
const ye = (l,
|
|
2819
|
+
const ye = (l, i, h, $) => {
|
|
2821
2820
|
var me, _e, Ve, Ye, Pe, Le;
|
|
2822
|
-
if (!l || !
|
|
2821
|
+
if (!l || !i || h == null)
|
|
2823
2822
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2824
|
-
const A = ((me =
|
|
2823
|
+
const A = ((me = ce.dropdown) == null ? void 0 : me.call(ce, l, i, h, $)) || {}, R = ((Ve = (_e = p == null ? void 0 : p.control) == null ? void 0 : _e.dropdown) == null ? void 0 : Ve.call(_e, l, i, h, $)) || {}, W = ((Le = (Pe = (Ye = e.value) == null ? void 0 : Ye.control) == null ? void 0 : Pe.dropdown) == null ? void 0 : Le.call(Pe, l, i, h, $)) || {};
|
|
2825
2824
|
return qe(A, R, W) || {};
|
|
2826
2825
|
}, Fe = {
|
|
2827
2826
|
type: "hidden",
|
|
2828
2827
|
"min-width": 100,
|
|
2829
2828
|
align: "center",
|
|
2830
|
-
formatter: (l,
|
|
2831
|
-
"tooltip-formatter": ({ row: l, column:
|
|
2829
|
+
formatter: (l, i, h, $) => h,
|
|
2830
|
+
"tooltip-formatter": ({ row: l, column: i, cellValue: h }) => ke(ma, { content: h, column: i })
|
|
2832
2831
|
};
|
|
2833
2832
|
e.value.tableColumns = qe(
|
|
2834
2833
|
Fe,
|
|
@@ -2837,7 +2836,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2837
2836
|
), e.value.form = qe(
|
|
2838
2837
|
Pt,
|
|
2839
2838
|
p == null ? void 0 : p.form,
|
|
2840
|
-
(
|
|
2839
|
+
(ct = e.value) == null ? void 0 : ct.form
|
|
2841
2840
|
);
|
|
2842
2841
|
const oe = {
|
|
2843
2842
|
type: "hidden",
|
|
@@ -2849,7 +2848,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2849
2848
|
e.value.formItems = qe(
|
|
2850
2849
|
oe,
|
|
2851
2850
|
p == null ? void 0 : p.formItems,
|
|
2852
|
-
(
|
|
2851
|
+
(ft = e == null ? void 0 : e.value) == null ? void 0 : ft.formItems
|
|
2853
2852
|
);
|
|
2854
2853
|
const se = {
|
|
2855
2854
|
title: "编辑",
|
|
@@ -2877,11 +2876,11 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2877
2876
|
p == null ? void 0 : p.dialog,
|
|
2878
2877
|
(vt = e.value) == null ? void 0 : vt.dialog
|
|
2879
2878
|
);
|
|
2880
|
-
const ne = (l,
|
|
2881
|
-
let h =
|
|
2882
|
-
if (l.decimals && !isNaN(parseFloat(
|
|
2879
|
+
const ne = (l, i) => {
|
|
2880
|
+
let h = i;
|
|
2881
|
+
if (l.decimals && !isNaN(parseFloat(i)) && (typeof l.decimals == "number" ? h = parseFloat(h).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? h = parseFloat(h).toFixed(l.decimals.num) : h = parseFloat(
|
|
2883
2882
|
parseFloat(h).toFixed(l.decimals.num)
|
|
2884
|
-
).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && Et(
|
|
2883
|
+
).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && Et(i).isValid()) {
|
|
2885
2884
|
const A = {
|
|
2886
2885
|
date: "YYYY-MM-DD",
|
|
2887
2886
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
@@ -2892,15 +2891,15 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2892
2891
|
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, h = `<span title="${Mt(
|
|
2893
2892
|
parseFloat(h)
|
|
2894
2893
|
)}">${Na(parseFloat(h))}</span>`), l.prefix && h && (h = `<span>${l.prefix}${h}</span>`), l.suffix && h && (h = `${h}<span>${l.suffix}</span>`), h;
|
|
2895
|
-
},
|
|
2896
|
-
|
|
2894
|
+
}, Ie = (l) => {
|
|
2895
|
+
f.value = Object.fromEntries(v), e.value.table.load();
|
|
2897
2896
|
}, M = (l) => {
|
|
2898
|
-
|
|
2897
|
+
f.value = l, e.value.table.load();
|
|
2899
2898
|
}, _ = async (l) => {
|
|
2900
|
-
var
|
|
2899
|
+
var i, h;
|
|
2901
2900
|
e.value.form.modalState = "add", t.value = "add";
|
|
2902
2901
|
try {
|
|
2903
|
-
if (!await ((
|
|
2902
|
+
if (!await ((i = e.value.control) == null ? void 0 : i.validate("add", { row: I.value, m: l }))) return;
|
|
2904
2903
|
} catch ($) {
|
|
2905
2904
|
console.error("验证失败:", $);
|
|
2906
2905
|
return;
|
|
@@ -2908,34 +2907,34 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2908
2907
|
(h = e.value.control.add(l)) != null && h.click ? e.value.control.add(l).click(l) : e.value.control.add(l).inline === !0 ? (e.value.table.data.unshift(I.value), r("open", "row-add", { row: I.value })) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.add(l).mode, e.value.dialog.title = e.value.control.add(l).title || e.value.control.add(l).label || "新增", Object.keys(I.value).forEach(($) => {
|
|
2909
2908
|
e.value[$] && (e.value[$].value = I.value[$]);
|
|
2910
2909
|
}), n.value = !0, r("open", "add", { row: I.value, m: l }), gt());
|
|
2911
|
-
}, b = async (l,
|
|
2910
|
+
}, b = async (l, i, h, $) => {
|
|
2912
2911
|
var A, R;
|
|
2913
2912
|
e.value.form.modalState = "edit", t.value = "edit";
|
|
2914
2913
|
try {
|
|
2915
|
-
if (!await ((A = e.value.control) == null ? void 0 : A.validate("edit", { row: l, column:
|
|
2914
|
+
if (!await ((A = e.value.control) == null ? void 0 : A.validate("edit", { row: l, column: i, index: h, m: $ }))) return;
|
|
2916
2915
|
} catch (W) {
|
|
2917
2916
|
console.error("验证失败:", W);
|
|
2918
2917
|
return;
|
|
2919
2918
|
}
|
|
2920
|
-
(R = e.value.control.edit(l,
|
|
2919
|
+
(R = e.value.control.edit(l, i, h, $)) != null && R.click ? e.value.control.edit(l, i, h, $).click(l, i, h, $) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit(l, i, h, $).mode, e.value.dialog.title = e.value.control.edit(l, i, h, $).title || e.value.control.edit(l, i, h, $).label || "编辑", Object.keys(l).forEach((W) => {
|
|
2921
2920
|
e.value[W] && (e.value[W].value = l[W]);
|
|
2922
|
-
}), n.value = !0, r("open", "edit", { m: $, row: l, column:
|
|
2923
|
-
}, s = async (l,
|
|
2921
|
+
}), n.value = !0, r("open", "edit", { m: $, row: l, column: i, index: h }), gt());
|
|
2922
|
+
}, s = async (l, i, h, $) => {
|
|
2924
2923
|
var A, R;
|
|
2925
2924
|
try {
|
|
2926
|
-
if (!await ((A = e.value.control) == null ? void 0 : A.validate("delete", { row: l, column:
|
|
2925
|
+
if (!await ((A = e.value.control) == null ? void 0 : A.validate("delete", { row: l, column: i, index: h, m: $ }))) return;
|
|
2927
2926
|
} catch (W) {
|
|
2928
2927
|
console.error("验证失败:", W);
|
|
2929
2928
|
return;
|
|
2930
2929
|
}
|
|
2931
|
-
if ((R = e.value.control.delete(l,
|
|
2932
|
-
e.value.control.delete(l,
|
|
2930
|
+
if ((R = e.value.control.delete(l, i, h, $)) != null && R.click)
|
|
2931
|
+
e.value.control.delete(l, i, h, $).click(l, i, h, $);
|
|
2933
2932
|
else {
|
|
2934
|
-
let { message: W, title: me, options: _e } = e.value.control.delete(l,
|
|
2933
|
+
let { message: W, title: me, options: _e } = e.value.control.delete(l, i, h, $).dialog;
|
|
2935
2934
|
At.confirm(W, me, _e).then(() => {
|
|
2936
2935
|
r(
|
|
2937
2936
|
"delete",
|
|
2938
|
-
{ row: l, column:
|
|
2937
|
+
{ row: l, column: i, index: h, m: $ },
|
|
2939
2938
|
(Ve = !0, Ye = !1) => {
|
|
2940
2939
|
Ve && (e.value.table.data.splice(h, 1), e.value.table.page.total--), Ye && e.value.table.load();
|
|
2941
2940
|
}
|
|
@@ -2943,48 +2942,48 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2943
2942
|
}).catch(() => {
|
|
2944
2943
|
});
|
|
2945
2944
|
}
|
|
2946
|
-
}, x = async (l,
|
|
2945
|
+
}, x = async (l, i, h, $) => {
|
|
2947
2946
|
var A, R;
|
|
2948
2947
|
e.value.form.modalState = void 0, t.value = "view";
|
|
2949
2948
|
try {
|
|
2950
|
-
if (!await ((A = e.value.control) == null ? void 0 : A.validate("view", { row: l, column:
|
|
2949
|
+
if (!await ((A = e.value.control) == null ? void 0 : A.validate("view", { row: l, column: i, index: h, m: $ }))) return;
|
|
2951
2950
|
} catch (W) {
|
|
2952
2951
|
console.error("验证失败:", W);
|
|
2953
2952
|
return;
|
|
2954
2953
|
}
|
|
2955
|
-
(R = e.value.control.view(l,
|
|
2954
|
+
(R = e.value.control.view(l, i, h, $)) != null && R.click ? e.value.control.view(l, i, h, $).click(l, i, h, $) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view(l, i, h, $).mode, e.value.dialog.title = e.value.control.view(l, i, h, $).title || e.value.control.view(l, i, h, $).label || "查看", Object.keys(l).forEach((W) => {
|
|
2956
2955
|
e.value[W] && (e.value[W].value = l[W]);
|
|
2957
|
-
}), n.value = !0, r("open", "view", { m: $, row: l, column:
|
|
2958
|
-
}, k = (l,
|
|
2956
|
+
}), n.value = !0, r("open", "view", { m: $, row: l, column: i, index: h }), gt());
|
|
2957
|
+
}, k = (l, i, h, $) => {
|
|
2959
2958
|
var A;
|
|
2960
|
-
(A = e.value.control.save(l,
|
|
2959
|
+
(A = e.value.control.save(l, i, h, $)) != null && A.click ? e.value.control.save(l, i, h, $).click(l, i, h, $) : r(
|
|
2961
2960
|
"row-save",
|
|
2962
|
-
{ row: l, column:
|
|
2961
|
+
{ row: l, column: i, index: h, data: e.value.table.data },
|
|
2963
2962
|
(R = !0, W = !0) => {
|
|
2964
2963
|
R && e.value.table.load(), W && at(() => {
|
|
2965
2964
|
I.value = Object.assign(
|
|
2966
2965
|
{},
|
|
2967
2966
|
Object.fromEntries(
|
|
2968
2967
|
Object.entries(
|
|
2969
|
-
|
|
2968
|
+
Oe(e.value, (me, _e) => _e.type != "control" && _e.editor !== !1 && _e.type != "hidden")
|
|
2970
2969
|
).map(([me, _e]) => [me, _e.value])
|
|
2971
2970
|
)
|
|
2972
2971
|
);
|
|
2973
2972
|
});
|
|
2974
2973
|
}
|
|
2975
2974
|
);
|
|
2976
|
-
}, C = (l,
|
|
2977
|
-
r("submit", e.value.form.modalState, l,
|
|
2975
|
+
}, C = (l, i, h) => {
|
|
2976
|
+
r("submit", e.value.form.modalState, l, i, ($) => {
|
|
2978
2977
|
$ && (h === 1 && (n.value = !1), Object.keys(I.value).forEach((A) => {
|
|
2979
2978
|
l[A] = I.value[A];
|
|
2980
|
-
}),
|
|
2979
|
+
}), i.table.load());
|
|
2981
2980
|
});
|
|
2982
2981
|
}, Y = (l) => {
|
|
2983
2982
|
r("reset", l);
|
|
2984
|
-
}, Q = (l,
|
|
2983
|
+
}, Q = (l, i) => {
|
|
2985
2984
|
var h;
|
|
2986
2985
|
if ((h = l.control.download(l)) != null && h.click)
|
|
2987
|
-
l.control.download(l).click(l,
|
|
2986
|
+
l.control.download(l).click(l, i);
|
|
2988
2987
|
else {
|
|
2989
2988
|
let $ = St(
|
|
2990
2989
|
{
|
|
@@ -2993,10 +2992,10 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2993
2992
|
width: l.control.download(l).width || 600,
|
|
2994
2993
|
slots: {
|
|
2995
2994
|
default: () => ke(Xl, {
|
|
2996
|
-
items:
|
|
2995
|
+
items: i,
|
|
2997
2996
|
commitText: l.control.download(l).excelLabel,
|
|
2998
2997
|
onExcel: (A, R) => {
|
|
2999
|
-
r("download", A,
|
|
2998
|
+
r("download", A, f.value, R), $();
|
|
3000
2999
|
}
|
|
3001
3000
|
})
|
|
3002
3001
|
}
|
|
@@ -3005,8 +3004,8 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3005
3004
|
);
|
|
3006
3005
|
}
|
|
3007
3006
|
}, te = (l) => {
|
|
3008
|
-
var
|
|
3009
|
-
(
|
|
3007
|
+
var i;
|
|
3008
|
+
(i = l.control.setting(l)) != null && i.click ? l.control.setting(l).click(l) : St(
|
|
3010
3009
|
{
|
|
3011
3010
|
title: l.control.setting(l).title || l.control.setting(l).label || "设置",
|
|
3012
3011
|
size: l.control.setting(l).size || 470,
|
|
@@ -3034,24 +3033,24 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3034
3033
|
{ type: "edit", func: b },
|
|
3035
3034
|
{ type: "delete", func: s },
|
|
3036
3035
|
{ type: "save", func: k }
|
|
3037
|
-
], g = (l,
|
|
3036
|
+
], g = (l, i, h, $, A) => E.filter((R) => l.includes(R.type)).map(({ type: R, func: W }) => {
|
|
3038
3037
|
var me, _e, Ve;
|
|
3039
3038
|
return {
|
|
3040
3039
|
name: `control-${R}`,
|
|
3041
|
-
attr: ee == null ? void 0 : ee[R](
|
|
3040
|
+
attr: ee == null ? void 0 : ee[R](i, h, $, A),
|
|
3042
3041
|
func: W,
|
|
3043
|
-
label: (me = ee == null ? void 0 : ee[R](
|
|
3044
|
-
sort: ((_e = ee == null ? void 0 : ee[R](
|
|
3045
|
-
groupName: ((Ve = ee == null ? void 0 : ee[R](
|
|
3042
|
+
label: (me = ee == null ? void 0 : ee[R](i, h, $, A)) == null ? void 0 : me.label,
|
|
3043
|
+
sort: ((_e = ee == null ? void 0 : ee[R](i, h, $, A)) == null ? void 0 : _e.sort) || 0,
|
|
3044
|
+
groupName: ((Ve = ee == null ? void 0 : ee[R](i, h, $, A)) == null ? void 0 : Ve.groupName) || "default"
|
|
3046
3045
|
};
|
|
3047
|
-
}).sort((R, W) => R.sort - W.sort), le = (l,
|
|
3046
|
+
}).sort((R, W) => R.sort - W.sort), le = (l, i, h, $, A) => g(l, i, h, $, A).reduce((R, W) => {
|
|
3048
3047
|
const me = W.groupName || "default";
|
|
3049
3048
|
return R[me] || (R[me] = []), R[me].push(W), R;
|
|
3050
3049
|
}, {}), be = Ke(
|
|
3051
3050
|
() => Object.fromEntries(
|
|
3052
|
-
Object.entries(e.value).filter(([l,
|
|
3051
|
+
Object.entries(e.value).filter(([l, i]) => i.type !== "hidden").filter(([l, i]) => i.hidden !== !0).filter(([l, i]) => i.visible !== !1).filter(([l, i]) => i.showCol !== !1).map(([l, i]) => (i.sort = typeof i.sort == "number" ? i.sort : 0, [l, i])).sort((l, i) => l[1].sort - i[1].sort)
|
|
3053
3052
|
)
|
|
3054
|
-
), pe = re({}), $e = (l,
|
|
3053
|
+
), pe = re({}), $e = (l, i) => {
|
|
3055
3054
|
const h = ($, A) => {
|
|
3056
3055
|
for (const R of $) {
|
|
3057
3056
|
if (R.value == A) return R.label;
|
|
@@ -3063,7 +3062,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3063
3062
|
return null;
|
|
3064
3063
|
};
|
|
3065
3064
|
if (l.getDicts) {
|
|
3066
|
-
const $ =
|
|
3065
|
+
const $ = i.toString();
|
|
3067
3066
|
return pe.value[$] ? (l.options = pe.value[$], l.formatter || (l.formatter = (A, R, W, me) => l.options && h(l.options, W) || W), Promise.resolve()) : l.getDicts(e.value.table.data).then((A) => {
|
|
3068
3067
|
pe.value[$] = A, l.options = A, l.formatter || (l.formatter = (R, W, me, _e) => l.options && h(l.options, me) || me);
|
|
3069
3068
|
});
|
|
@@ -3071,30 +3070,30 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3071
3070
|
return Promise.resolve();
|
|
3072
3071
|
}, we = () => {
|
|
3073
3072
|
const l = [];
|
|
3074
|
-
Object.keys(e.value).forEach((
|
|
3075
|
-
if (e.value[
|
|
3076
|
-
const h = $e(e.value[
|
|
3073
|
+
Object.keys(e.value).forEach((i) => {
|
|
3074
|
+
if (e.value[i].getDicts) {
|
|
3075
|
+
const h = $e(e.value[i], i).then(() => {
|
|
3077
3076
|
e.value.table.data.forEach(($) => {
|
|
3078
3077
|
var A;
|
|
3079
|
-
if (e.value[
|
|
3080
|
-
const R = $[
|
|
3081
|
-
$[
|
|
3078
|
+
if (e.value[i].getDicts && ((A = e.value[i]) == null ? void 0 : A.forceString) !== !1) {
|
|
3079
|
+
const R = $[i];
|
|
3080
|
+
$[i] = R != null ? R.toString() : R;
|
|
3082
3081
|
}
|
|
3083
3082
|
});
|
|
3084
3083
|
}).catch(($) => {
|
|
3085
|
-
console.error(`加载字典${
|
|
3084
|
+
console.error(`加载字典${i}出错:`, $);
|
|
3086
3085
|
});
|
|
3087
3086
|
l.push(h);
|
|
3088
3087
|
}
|
|
3089
|
-
}), Promise.all(l).catch((
|
|
3090
|
-
console.error("字典加载过程中发生错误:",
|
|
3088
|
+
}), Promise.all(l).catch((i) => {
|
|
3089
|
+
console.error("字典加载过程中发生错误:", i);
|
|
3091
3090
|
});
|
|
3092
|
-
}, Ee = (l,
|
|
3091
|
+
}, Ee = (l, i, h, $) => {
|
|
3093
3092
|
var A, R;
|
|
3094
|
-
return l.table ? (A = l.table(
|
|
3093
|
+
return l.table ? (A = l.table(i, h, $)) != null && A.auth ? (R = l.table(i, h, $)) == null ? void 0 : R.auth(i, h, $) : !0 : !1;
|
|
3095
3094
|
}, xe = () => {
|
|
3096
3095
|
if (e.value.dialog.mode == "drawer")
|
|
3097
|
-
|
|
3096
|
+
d.value.handleClose();
|
|
3098
3097
|
else if (e.value.dialog.mode == "dialog")
|
|
3099
3098
|
try {
|
|
3100
3099
|
T.value.handleClose();
|
|
@@ -3109,7 +3108,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3109
3108
|
});
|
|
3110
3109
|
const Te = async () => {
|
|
3111
3110
|
try {
|
|
3112
|
-
const [l,
|
|
3111
|
+
const [l, i, h] = await Promise.all([
|
|
3113
3112
|
Kl(ue.value),
|
|
3114
3113
|
oa(ue.value),
|
|
3115
3114
|
ea(ue.value)
|
|
@@ -3117,7 +3116,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3117
3116
|
l && Array.isArray(l) && l.forEach(($) => {
|
|
3118
3117
|
const A = e.value[$.key];
|
|
3119
3118
|
A && (A.width = $.width);
|
|
3120
|
-
}),
|
|
3119
|
+
}), i && Array.isArray(i) && i.forEach(($, A) => {
|
|
3121
3120
|
const R = e.value[$];
|
|
3122
3121
|
R && (R.sort = A);
|
|
3123
3122
|
}), h && Array.isArray(h) && h.length > 0 ? h.forEach(($) => {
|
|
@@ -3134,25 +3133,25 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3134
3133
|
ue.value = Re();
|
|
3135
3134
|
}), nt(async () => {
|
|
3136
3135
|
w.value = Object.entries(e.value).filter(
|
|
3137
|
-
([l,
|
|
3138
|
-
).map(([l,
|
|
3136
|
+
([l, i]) => i.type !== "hidden" && i.type !== "control" && i.visible !== !1
|
|
3137
|
+
).map(([l, i]) => ({
|
|
3139
3138
|
key: l || "",
|
|
3140
|
-
label:
|
|
3139
|
+
label: i.label,
|
|
3141
3140
|
value: !0
|
|
3142
3141
|
}));
|
|
3143
3142
|
try {
|
|
3144
3143
|
await at();
|
|
3145
3144
|
const l = Object.entries(e.value).filter(
|
|
3146
|
-
([
|
|
3145
|
+
([i, h]) => h.type !== "control" && h.editor !== !1 && h.type !== "hidden"
|
|
3147
3146
|
);
|
|
3148
3147
|
I.value = Object.fromEntries(
|
|
3149
|
-
l.map(([
|
|
3148
|
+
l.map(([i, h]) => [i, h.value])
|
|
3150
3149
|
), await Te();
|
|
3151
3150
|
} catch (l) {
|
|
3152
3151
|
console.error("Error during component initialization:", l);
|
|
3153
3152
|
}
|
|
3154
3153
|
e.value.table.autoWatch || e.value.table.load();
|
|
3155
|
-
}), u({ addRow: _, editRow: b, deleteRow: s, readForm: x, saveRowData: k, closeDialog: xe }), (l,
|
|
3154
|
+
}), u({ addRow: _, editRow: b, deleteRow: s, readForm: x, saveRowData: k, closeDialog: xe }), (l, i) => {
|
|
3156
3155
|
var Le, Je, lt, rt, ot;
|
|
3157
3156
|
const h = L("el-icon"), $ = L("el-dialog"), A = L("el-drawer"), R = L("el-button-group"), W = L("el-dropdown-item"), me = L("el-dropdown-menu"), _e = L("el-dropdown"), Ve = L("el-table-column"), Ye = L("el-table"), Pe = L("el-pagination");
|
|
3158
3157
|
return m(), U(Z, null, [
|
|
@@ -3163,10 +3162,10 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3163
3162
|
ref: T,
|
|
3164
3163
|
id: "dialogRef",
|
|
3165
3164
|
modelValue: n.value,
|
|
3166
|
-
"onUpdate:modelValue":
|
|
3165
|
+
"onUpdate:modelValue": i[3] || (i[3] = (H) => n.value = H),
|
|
3167
3166
|
fullscreen: e.value.dialog.fullScreen
|
|
3168
3167
|
},
|
|
3169
|
-
z(
|
|
3168
|
+
z(Oe)(e.value.dialog, (H) => !["size", "max", "min"].includes(H)),
|
|
3170
3169
|
{
|
|
3171
3170
|
width: z(Xt)(e.value.dialog.width) + 35
|
|
3172
3171
|
}
|
|
@@ -3177,13 +3176,13 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3177
3176
|
X("div", wa, [
|
|
3178
3177
|
X("div", Ea, [
|
|
3179
3178
|
S(l.$slots, "f-header", {}, () => [
|
|
3180
|
-
X("div", null,
|
|
3179
|
+
X("div", null, De(e.value.dialog.title), 1)
|
|
3181
3180
|
], !0)
|
|
3182
3181
|
]),
|
|
3183
3182
|
((de = (H = e.value) == null ? void 0 : H.dialog) == null ? void 0 : de.fullScreen) === !1 ? (m(), U("div", {
|
|
3184
3183
|
key: 0,
|
|
3185
3184
|
style: Ae((ae = (G = (F = e.value) == null ? void 0 : F.dialog) == null ? void 0 : G.max) == null ? void 0 : ae.style),
|
|
3186
|
-
onClick:
|
|
3185
|
+
onClick: i[0] || (i[0] = (V) => e.value.dialog.fullScreen = !0),
|
|
3187
3186
|
class: "max"
|
|
3188
3187
|
}, [
|
|
3189
3188
|
K(h, null, {
|
|
@@ -3199,7 +3198,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3199
3198
|
((Ne = (je = e.value) == null ? void 0 : je.dialog) == null ? void 0 : Ne.fullScreen) === !0 ? (m(), U("div", {
|
|
3200
3199
|
key: 1,
|
|
3201
3200
|
style: Ae((J = (y = (He = e.value) == null ? void 0 : He.dialog) == null ? void 0 : y.min) == null ? void 0 : J.style),
|
|
3202
|
-
onClick:
|
|
3201
|
+
onClick: i[1] || (i[1] = (V) => e.value.dialog.fullScreen = !1),
|
|
3203
3202
|
class: "max"
|
|
3204
3203
|
}, [
|
|
3205
3204
|
K(h, null, {
|
|
@@ -3220,7 +3219,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3220
3219
|
S(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
3221
3220
|
K(kt, {
|
|
3222
3221
|
modelValue: e.value,
|
|
3223
|
-
"onUpdate:modelValue":
|
|
3222
|
+
"onUpdate:modelValue": i[2] || (i[2] = (H) => e.value = H),
|
|
3224
3223
|
onSubmit: C,
|
|
3225
3224
|
onReset: Y,
|
|
3226
3225
|
flag: t.value
|
|
@@ -3241,15 +3240,15 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3241
3240
|
e.value.dialog.mode == "drawer" && n.value ? (m(), U("div", ka, [
|
|
3242
3241
|
K(A, O({
|
|
3243
3242
|
ref_key: "drawerRef",
|
|
3244
|
-
ref:
|
|
3243
|
+
ref: d,
|
|
3245
3244
|
modelValue: n.value,
|
|
3246
|
-
"onUpdate:modelValue":
|
|
3247
|
-
}, z(
|
|
3245
|
+
"onUpdate:modelValue": i[5] || (i[5] = (H) => n.value = H)
|
|
3246
|
+
}, z(Oe)(e.value.dialog, (H) => !["width"].includes(H))), {
|
|
3248
3247
|
header: D(() => [
|
|
3249
3248
|
X("div", Ca, [
|
|
3250
3249
|
X("div", Da, [
|
|
3251
3250
|
S(l.$slots, "f-header", {}, () => [
|
|
3252
|
-
X("div", null,
|
|
3251
|
+
X("div", null, De(e.value.dialog.title), 1)
|
|
3253
3252
|
], !0)
|
|
3254
3253
|
])
|
|
3255
3254
|
])
|
|
@@ -3258,7 +3257,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3258
3257
|
S(l.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
3259
3258
|
K(kt, {
|
|
3260
3259
|
modelValue: e.value,
|
|
3261
|
-
"onUpdate:modelValue":
|
|
3260
|
+
"onUpdate:modelValue": i[4] || (i[4] = (H) => e.value = H),
|
|
3262
3261
|
onSubmit: C,
|
|
3263
3262
|
onReset: Y,
|
|
3264
3263
|
flag: t.value
|
|
@@ -3280,11 +3279,11 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3280
3279
|
S(l.$slots, "query", {}, () => [
|
|
3281
3280
|
K(Ll, {
|
|
3282
3281
|
modelValue: e.value,
|
|
3283
|
-
"onUpdate:modelValue":
|
|
3284
|
-
info:
|
|
3285
|
-
"onUpdate:info":
|
|
3282
|
+
"onUpdate:modelValue": i[6] || (i[6] = (H) => e.value = H),
|
|
3283
|
+
info: f.value,
|
|
3284
|
+
"onUpdate:info": i[7] || (i[7] = (H) => f.value = H),
|
|
3286
3285
|
onQuery: M,
|
|
3287
|
-
onReset:
|
|
3286
|
+
onReset: Ie
|
|
3288
3287
|
}, he({
|
|
3289
3288
|
"q-btns": D(() => [
|
|
3290
3289
|
S(l.$slots, "q-btns", {}, () => [
|
|
@@ -3300,7 +3299,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3300
3299
|
onClick: (G) => F.func(e.value, w.value)
|
|
3301
3300
|
}), {
|
|
3302
3301
|
default: D(() => [
|
|
3303
|
-
|
|
3302
|
+
Ue(De(F.label), 1)
|
|
3304
3303
|
]),
|
|
3305
3304
|
_: 2
|
|
3306
3305
|
}, 1040, ["title", "onClick"])) : (m(), B(z(Be), O({
|
|
@@ -3325,7 +3324,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3325
3324
|
onClick: (G) => F.func(e.value, w.value)
|
|
3326
3325
|
}), {
|
|
3327
3326
|
default: D(() => [
|
|
3328
|
-
|
|
3327
|
+
Ue(De(F.label), 1)
|
|
3329
3328
|
]),
|
|
3330
3329
|
_: 2
|
|
3331
3330
|
}, 1040, ["title", "onClick"])) : (m(), B(z(Be), O({
|
|
@@ -3358,15 +3357,15 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3358
3357
|
X("div", Ta, [
|
|
3359
3358
|
K(Ye, O({
|
|
3360
3359
|
...l.$attrs,
|
|
3361
|
-
...z(
|
|
3360
|
+
...z(Oe)(
|
|
3362
3361
|
e.value.table,
|
|
3363
3362
|
(H) => !["dblclickType", "page"].includes(H)
|
|
3364
3363
|
)
|
|
3365
3364
|
}, {
|
|
3366
3365
|
"summary-method": (H) => e.value.table["summary-method"](H, { fields: P.value, sums: j.value }),
|
|
3367
|
-
onSortChange:
|
|
3366
|
+
onSortChange: i[8] || (i[8] = (H) => {
|
|
3368
3367
|
var de, F;
|
|
3369
|
-
e.value.table.onSortChange(H,
|
|
3368
|
+
e.value.table.onSortChange(H, f.value), ((de = H == null ? void 0 : H.column) == null ? void 0 : de.sortable) === "custom" && ((F = e.value.table) == null || F.load());
|
|
3370
3369
|
})
|
|
3371
3370
|
}), {
|
|
3372
3371
|
append: D(() => [
|
|
@@ -3383,7 +3382,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3383
3382
|
ref_for: !0
|
|
3384
3383
|
}, {
|
|
3385
3384
|
...e.value.tableColumns,
|
|
3386
|
-
...z(
|
|
3385
|
+
...z(Oe)(H, (F) => c.includes(F))
|
|
3387
3386
|
}), he({
|
|
3388
3387
|
header: D(({ column: F, $index: G }) => [
|
|
3389
3388
|
de == "control" ? S(l.$slots, `${de}-header`, {
|
|
@@ -3391,7 +3390,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3391
3390
|
column: F,
|
|
3392
3391
|
index: G
|
|
3393
3392
|
}, () => [
|
|
3394
|
-
X("span", null,
|
|
3393
|
+
X("span", null, De(F.label), 1)
|
|
3395
3394
|
], !0) : S(l.$slots, `${de}-header`, {
|
|
3396
3395
|
key: 1,
|
|
3397
3396
|
column: F,
|
|
@@ -3451,7 +3450,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3451
3450
|
onClick: (Me) => V.func(F, G, ae, e.value)
|
|
3452
3451
|
}), {
|
|
3453
3452
|
default: D(() => [
|
|
3454
|
-
|
|
3453
|
+
Ue(De(V.label), 1)
|
|
3455
3454
|
]),
|
|
3456
3455
|
_: 2
|
|
3457
3456
|
}, 1040, ["title", "onClick"])) : (m(), B(z(Be), O({
|
|
@@ -3505,7 +3504,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3505
3504
|
onClick: ($t) => V.func(F, G, ae, e.value)
|
|
3506
3505
|
}), {
|
|
3507
3506
|
default: D(() => [
|
|
3508
|
-
|
|
3507
|
+
Ue(De(V.label), 1)
|
|
3509
3508
|
]),
|
|
3510
3509
|
_: 2
|
|
3511
3510
|
}, 1040, ["title", "onClick"])) : (m(), B(z(Be), O({
|
|
@@ -3534,7 +3533,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3534
3533
|
default: D(() => {
|
|
3535
3534
|
var V;
|
|
3536
3535
|
return [
|
|
3537
|
-
|
|
3536
|
+
Ue(De((V = ye(F, G, ae, e.value)) == null ? void 0 : V.label) + " ", 1)
|
|
3538
3537
|
];
|
|
3539
3538
|
}),
|
|
3540
3539
|
_: 2
|
|
@@ -3560,7 +3559,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3560
3559
|
onClick: (Me) => V.func(F, G, ae, e.value)
|
|
3561
3560
|
}), {
|
|
3562
3561
|
default: D(() => [
|
|
3563
|
-
|
|
3562
|
+
Ue(De(V.label), 1)
|
|
3564
3563
|
]),
|
|
3565
3564
|
_: 2
|
|
3566
3565
|
}, 1040, ["title", "onClick"])) : (m(), B(z(Be), O({
|
|
@@ -3608,7 +3607,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3608
3607
|
"onUpdate:modelValue": (Ne) => F[de] = Ne,
|
|
3609
3608
|
item: H == null ? void 0 : H.table(F, G, ae),
|
|
3610
3609
|
ctrlKey: de,
|
|
3611
|
-
key: `${de}-${ae} -${
|
|
3610
|
+
key: `${de}-${ae} -${fe.value}`,
|
|
3612
3611
|
ctrlType: (je = H.table(F, G, ae)) != null && je.type ? H.table(F, G, ae).type : H.type,
|
|
3613
3612
|
model: e.value,
|
|
3614
3613
|
class: "g-ctrl-container",
|
|
@@ -3652,9 +3651,9 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3652
3651
|
(ot = (rt = (lt = e.value) == null ? void 0 : lt.table) == null ? void 0 : rt.page) != null && ot.hidden ? ge("", !0) : S(l.$slots, "page", { key: 0 }, () => [
|
|
3653
3652
|
K(Pe, O({
|
|
3654
3653
|
"page-size": e.value.table.page.pageSize,
|
|
3655
|
-
"onUpdate:pageSize":
|
|
3654
|
+
"onUpdate:pageSize": i[9] || (i[9] = (H) => e.value.table.page.pageSize = H),
|
|
3656
3655
|
"current-page": e.value.table.page.currentPage,
|
|
3657
|
-
"onUpdate:currentPage":
|
|
3656
|
+
"onUpdate:currentPage": i[10] || (i[10] = (H) => e.value.table.page.currentPage = H)
|
|
3658
3657
|
}, e.value.table.page), {
|
|
3659
3658
|
default: D(() => [
|
|
3660
3659
|
S(l.$slots, "table-page", {}, void 0, !0)
|
|
@@ -3681,20 +3680,20 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3681
3680
|
var w, q, j, P;
|
|
3682
3681
|
const a = u, t = Qe(o, "modelValue"), r = Ft(), e = re(
|
|
3683
3682
|
typeof ((w = r == null ? void 0 : r.tree) == null ? void 0 : w.width) == "number" ? `${r.tree.width}px` : ((q = r == null ? void 0 : r.tree) == null ? void 0 : q.width) || "180px"
|
|
3684
|
-
), p = re(((j = r == null ? void 0 : r.tree) == null ? void 0 : j.search) === void 0 ? !0 : (P = r == null ? void 0 : r.tree) == null ? void 0 : P.search),
|
|
3685
|
-
var
|
|
3683
|
+
), p = re(((j = r == null ? void 0 : r.tree) == null ? void 0 : j.search) === void 0 ? !0 : (P = r == null ? void 0 : r.tree) == null ? void 0 : P.search), f = re({}), T = re(""), d = re(null), v = (I, fe) => {
|
|
3684
|
+
var Ce, ce;
|
|
3686
3685
|
if (!I) return !0;
|
|
3687
|
-
const ue = ((
|
|
3688
|
-
return
|
|
3689
|
-
}, n = (I,
|
|
3690
|
-
a("load",
|
|
3691
|
-
},
|
|
3692
|
-
|
|
3686
|
+
const ue = ((ce = (Ce = r.tree) == null ? void 0 : Ce.props) == null ? void 0 : ce.label) || "label";
|
|
3687
|
+
return fe[ue].includes(I);
|
|
3688
|
+
}, n = (I, fe) => {
|
|
3689
|
+
a("load", f.value, I, fe);
|
|
3690
|
+
}, c = (I) => {
|
|
3691
|
+
f.value = I, t.value.table.load();
|
|
3693
3692
|
};
|
|
3694
3693
|
return ul(T, (I) => {
|
|
3695
|
-
|
|
3696
|
-
}), (I,
|
|
3697
|
-
const ue = L("el-input"),
|
|
3694
|
+
d.value.filter(I);
|
|
3695
|
+
}), (I, fe) => {
|
|
3696
|
+
const ue = L("el-input"), Ce = L("el-tree"), ce = L("g-table");
|
|
3698
3697
|
return m(), U("div", qa, [
|
|
3699
3698
|
X("div", {
|
|
3700
3699
|
class: "g-tree-left",
|
|
@@ -3703,26 +3702,26 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3703
3702
|
p.value ? (m(), B(ue, {
|
|
3704
3703
|
key: 0,
|
|
3705
3704
|
modelValue: T.value,
|
|
3706
|
-
"onUpdate:modelValue":
|
|
3705
|
+
"onUpdate:modelValue": fe[0] || (fe[0] = (ie) => T.value = ie),
|
|
3707
3706
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
3708
3707
|
placeholder: "输入节点查询",
|
|
3709
3708
|
clearable: ""
|
|
3710
3709
|
}, null, 8, ["modelValue"])) : ge("", !0),
|
|
3711
3710
|
X("div", Aa, [
|
|
3712
|
-
K(
|
|
3711
|
+
K(Ce, O({
|
|
3713
3712
|
style: { width: e.value },
|
|
3714
3713
|
"filter-node-method": v,
|
|
3715
3714
|
"expand-on-click-node": !1,
|
|
3716
3715
|
ref_key: "treeRef",
|
|
3717
|
-
ref:
|
|
3718
|
-
onNodeClick:
|
|
3716
|
+
ref: d,
|
|
3717
|
+
onNodeClick: c
|
|
3719
3718
|
}, I.$attrs.tree), he({
|
|
3720
3719
|
default: D(({ node: ie, data: ye }) => [
|
|
3721
3720
|
S(I.$slots, "tree", {
|
|
3722
3721
|
node: ie,
|
|
3723
3722
|
data: ye
|
|
3724
3723
|
}, () => [
|
|
3725
|
-
X("span", null,
|
|
3724
|
+
X("span", null, De(ie.label), 1)
|
|
3726
3725
|
], !0)
|
|
3727
3726
|
]),
|
|
3728
3727
|
_: 2
|
|
@@ -3737,9 +3736,9 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3737
3736
|
])
|
|
3738
3737
|
], 4),
|
|
3739
3738
|
X("div", Ba, [
|
|
3740
|
-
K(
|
|
3739
|
+
K(ce, O({
|
|
3741
3740
|
modelValue: t.value,
|
|
3742
|
-
"onUpdate:modelValue":
|
|
3741
|
+
"onUpdate:modelValue": fe[1] || (fe[1] = (ie) => t.value = ie)
|
|
3743
3742
|
}, I.$attrs, { onLoad: n }), he({ _: 2 }, [
|
|
3744
3743
|
N(I.$slots, (ie, ye, Fe) => ({
|
|
3745
3744
|
name: ye,
|
|
@@ -3787,7 +3786,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3787
3786
|
key: r.key
|
|
3788
3787
|
}, [
|
|
3789
3788
|
S(a.$slots, `${o.t}-title-${r.key}`, { col: r }, () => [
|
|
3790
|
-
|
|
3789
|
+
Ue(De(r.label), 1)
|
|
3791
3790
|
], !0)
|
|
3792
3791
|
], 4))), 128))
|
|
3793
3792
|
])) : (m(), U("div", Ya, [
|
|
@@ -3797,7 +3796,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3797
3796
|
title: o.data[r.key]
|
|
3798
3797
|
}, [
|
|
3799
3798
|
S(a.$slots, `${o.t}-option-${r.key}`, { col: r }, () => [
|
|
3800
|
-
|
|
3799
|
+
Ue(De(o.data[r.key] ?? "-"), 1)
|
|
3801
3800
|
], !0)
|
|
3802
3801
|
], 12, Ra))), 128))
|
|
3803
3802
|
]));
|
|
@@ -3826,7 +3825,7 @@ const tr = {
|
|
|
3826
3825
|
p.unmount(), a.remove();
|
|
3827
3826
|
}, 300);
|
|
3828
3827
|
}, () => {
|
|
3829
|
-
var
|
|
3828
|
+
var f, T, d;
|
|
3830
3829
|
return ke(r, {
|
|
3831
3830
|
modelValue: e.value,
|
|
3832
3831
|
"onUpdate:modelValue": (v) => e.value = v,
|
|
@@ -3838,9 +3837,9 @@ const tr = {
|
|
|
3838
3837
|
"close-on-click-modal": !1,
|
|
3839
3838
|
...o
|
|
3840
3839
|
}, {
|
|
3841
|
-
default: (
|
|
3840
|
+
default: (f = o.slots) == null ? void 0 : f.default,
|
|
3842
3841
|
header: (T = o.slots) == null ? void 0 : T.header,
|
|
3843
|
-
footer: (
|
|
3842
|
+
footer: (d = o.slots) == null ? void 0 : d.footer
|
|
3844
3843
|
});
|
|
3845
3844
|
};
|
|
3846
3845
|
},
|
|
@@ -3848,8 +3847,8 @@ const tr = {
|
|
|
3848
3847
|
gt();
|
|
3849
3848
|
}
|
|
3850
3849
|
});
|
|
3851
|
-
return Gt.forEach((
|
|
3852
|
-
p.component(
|
|
3850
|
+
return Gt.forEach((f) => {
|
|
3851
|
+
p.component(f.name, f);
|
|
3853
3852
|
}), p.provide("options", Dt), p.use(Qt, { locale: El }), document.body.appendChild(a), p.mount(a), t;
|
|
3854
3853
|
};
|
|
3855
3854
|
function Xt(o, u = window.innerWidth) {
|
|
@@ -3868,13 +3867,13 @@ function Xt(o, u = window.innerWidth) {
|
|
|
3868
3867
|
return u * parseFloat(o) / 100;
|
|
3869
3868
|
}
|
|
3870
3869
|
if (o.startsWith("calc(") && o.endsWith(")")) {
|
|
3871
|
-
let e = function(
|
|
3872
|
-
if (/[0-9+\-*/().\s]+$/.test(
|
|
3873
|
-
return new Function("return " +
|
|
3870
|
+
let e = function(f) {
|
|
3871
|
+
if (/[0-9+\-*/().\s]+$/.test(f))
|
|
3872
|
+
return new Function("return " + f)();
|
|
3874
3873
|
throw new Error("Invalid calc expression");
|
|
3875
3874
|
};
|
|
3876
3875
|
const r = o.slice(5, -1).trim();
|
|
3877
|
-
return e(r.replace(/([0-9.]+)([a-z%]+)/g, (
|
|
3876
|
+
return e(r.replace(/([0-9.]+)([a-z%]+)/g, (f, T, d) => Xt(T + d, u)));
|
|
3878
3877
|
}
|
|
3879
3878
|
throw new Error("Unsupported unit in value: " + o);
|
|
3880
3879
|
}
|
|
@@ -3884,7 +3883,7 @@ const qe = (...o) => {
|
|
|
3884
3883
|
}), t);
|
|
3885
3884
|
return o.forEach((t = {}) => a(u, t)), u;
|
|
3886
3885
|
};
|
|
3887
|
-
function
|
|
3886
|
+
function Oe(o, u = (a, t) => u(a, t)) {
|
|
3888
3887
|
const a = {};
|
|
3889
3888
|
for (const t in o)
|
|
3890
3889
|
o.hasOwnProperty(t) && u(t, o[t]) && (a[t] = o[t]);
|
|
@@ -3914,10 +3913,10 @@ function Mt(o) {
|
|
|
3914
3913
|
e += (a[Math.floor(o * 10 * Math.pow(10, p)) % 10] + u[p]).replace(/零./, "");
|
|
3915
3914
|
e = e || "整", o = Math.floor(o);
|
|
3916
3915
|
for (let p = 0; p < t[0].length && o > 0; p++) {
|
|
3917
|
-
let
|
|
3916
|
+
let f = "";
|
|
3918
3917
|
for (let T = 0; T < t[1].length && o > 0; T++)
|
|
3919
|
-
|
|
3920
|
-
e =
|
|
3918
|
+
f = a[o % 10] + t[1][T] + f, o = Math.floor(o / 10);
|
|
3919
|
+
e = f.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][p] + e;
|
|
3921
3920
|
}
|
|
3922
3921
|
return r + e.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
3923
3922
|
}
|
|
@@ -3985,23 +3984,23 @@ const Se = {
|
|
|
3985
3984
|
});
|
|
3986
3985
|
}, Xa = (o, u) => {
|
|
3987
3986
|
let a = !1, t, r, e, p;
|
|
3988
|
-
const
|
|
3989
|
-
v.preventDefault(), a = !0, t = v.clientX, r = v.clientY, e = parseInt(document.defaultView.getComputedStyle(o).width), p = parseInt(document.defaultView.getComputedStyle(o).height), document.addEventListener("mousemove", T), document.addEventListener("mouseup",
|
|
3987
|
+
const f = (v) => {
|
|
3988
|
+
v.preventDefault(), a = !0, t = v.clientX, r = v.clientY, e = parseInt(document.defaultView.getComputedStyle(o).width), p = parseInt(document.defaultView.getComputedStyle(o).height), document.addEventListener("mousemove", T), document.addEventListener("mouseup", d);
|
|
3990
3989
|
}, T = (v) => {
|
|
3991
3990
|
if (!a) return;
|
|
3992
|
-
const n = Math.max(300, e + v.clientX - t),
|
|
3993
|
-
o.style.width = `${n}px`, o.style.height = `${
|
|
3994
|
-
},
|
|
3995
|
-
a = !1, document.removeEventListener("mousemove", T), document.removeEventListener("mouseup",
|
|
3991
|
+
const n = Math.max(300, e + v.clientX - t), c = Math.max(200, p + v.clientY - r);
|
|
3992
|
+
o.style.width = `${n}px`, o.style.height = `${c}px`;
|
|
3993
|
+
}, d = () => {
|
|
3994
|
+
a = !1, document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", d);
|
|
3996
3995
|
};
|
|
3997
|
-
u.addEventListener("mousedown",
|
|
3996
|
+
u.addEventListener("mousedown", f);
|
|
3998
3997
|
};
|
|
3999
3998
|
export {
|
|
4000
3999
|
Se as CT,
|
|
4001
4000
|
gt as bindResize,
|
|
4002
4001
|
Xt as convertToPx,
|
|
4003
4002
|
tr as default,
|
|
4004
|
-
|
|
4003
|
+
Oe as filterObject,
|
|
4005
4004
|
ja as findTreeLabelByValue,
|
|
4006
4005
|
Na as formatAmount,
|
|
4007
4006
|
qe as mergeObjects,
|