vue-2024-ui 0.2.24 → 0.2.26
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 +297 -296
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ll, { ElForm as gt, ElButtonGroup as bt, ElButton as Be, ElPopover as Ct, ElMessage as et, ElMessageBox as Ut, ElDialog as al, ElDrawer as rl } from "element-plus";
|
|
2
|
-
import { h as we, mergeModels as tt, useModel as lt, ref as re, nextTick as dt, onMounted as
|
|
2
|
+
import { h as we, mergeModels as tt, useModel as lt, ref as re, nextTick as dt, onMounted as ct, computed as nt, resolveComponent as L, openBlock as p, createElementBlock as Y, Fragment as te, createElementVNode as X, createBlock as A, createCommentVNode as $e, unref as P, mergeProps as O, withCtx as _, renderSlot as k, renderList as W, createTextVNode as Ve, toDisplayString as Ee, createSlots as be, createVNode as ee, normalizeStyle as qe, normalizeProps as St, useSlots as Yt, inject as qt, useAttrs as At, onUnmounted as ol, withModifiers as wt, resolveDynamicComponent as Ke, guardReactiveProps as nl, Transition as ul, withDirectives as sl, vShow as il, onBeforeUnmount as dl, normalizeClass as Rt, watchEffect as fl, onBeforeMount as cl, watch as vl, createApp as pl } from "vue";
|
|
3
3
|
import { CircleCheck as Lt, CircleCheckFilled as ml, Refresh as Ht, Plus as hl, ZoomIn as yl, Delete as zt, More as gl, Search as bl, InfoFilled as Pt, Download as jt, DocumentCopy as $l, View as wl, Edit as _l, CirclePlus as El, Setting as kl, FullScreen as Cl, CopyDocument as Dl } from "@element-plus/icons-vue";
|
|
4
4
|
import Nt from "sortablejs";
|
|
5
5
|
import { Dexie as Sl } from "dexie";
|
|
@@ -189,15 +189,15 @@ var Gt = { exports: {} };
|
|
|
189
189
|
(function(a, t) {
|
|
190
190
|
n.exports = t();
|
|
191
191
|
})(Ml, function() {
|
|
192
|
-
var a = 1e3, t = 6e4, r = 36e5, e = "millisecond", h = "second",
|
|
192
|
+
var a = 1e3, t = 6e4, r = 36e5, e = "millisecond", h = "second", c = "minute", S = "hour", f = "day", v = "week", u = "month", d = "quarter", $ = "year", le = "date", B = "Invalid Date", G = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, D = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, ue = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
|
|
193
193
|
var g = ["th", "st", "nd", "rd"], i = w % 100;
|
|
194
194
|
return "[" + w + (g[(i - 20) % 10] || g[i] || g[0]) + "]";
|
|
195
|
-
} },
|
|
195
|
+
} }, fe = function(w, g, i) {
|
|
196
196
|
var V = String(w);
|
|
197
197
|
return !V || V.length >= g ? w : "" + Array(g + 1 - V.length).join(i) + w;
|
|
198
|
-
}, pe = { s:
|
|
198
|
+
}, pe = { s: fe, z: function(w) {
|
|
199
199
|
var g = -w.utcOffset(), i = Math.abs(g), V = Math.floor(i / 60), E = i % 60;
|
|
200
|
-
return (g <= 0 ? "+" : "-") +
|
|
200
|
+
return (g <= 0 ? "+" : "-") + fe(V, 2, "0") + ":" + fe(E, 2, "0");
|
|
201
201
|
}, m: function w(g, i) {
|
|
202
202
|
if (g.date() < i.date()) return -w(i, g);
|
|
203
203
|
var V = 12 * (i.year() - g.year()) + (i.month() - g.month()), E = g.clone().add(V, u), q = i - E < 0, T = g.clone().add(V + (q ? -1 : 1), u);
|
|
@@ -205,16 +205,16 @@ var Gt = { exports: {} };
|
|
|
205
205
|
}, a: function(w) {
|
|
206
206
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
|
207
207
|
}, p: function(w) {
|
|
208
|
-
return { M: u, y: $, w: v, d:
|
|
208
|
+
return { M: u, y: $, w: v, d: f, D: le, h: S, m: c, s: h, ms: e, Q: d }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(w) {
|
|
210
210
|
return w === void 0;
|
|
211
|
-
} },
|
|
212
|
-
ie[
|
|
211
|
+
} }, ce = "en", ie = {};
|
|
212
|
+
ie[ce] = ue;
|
|
213
213
|
var ge = "$isDayjsObject", Me = function(w) {
|
|
214
214
|
return w instanceof Le || !(!w || !w[ge]);
|
|
215
215
|
}, De = function w(g, i, V) {
|
|
216
216
|
var E;
|
|
217
|
-
if (!g) return
|
|
217
|
+
if (!g) return ce;
|
|
218
218
|
if (typeof g == "string") {
|
|
219
219
|
var q = g.toLowerCase();
|
|
220
220
|
ie[q] && (E = q), i && (ie[q] = i, E = q);
|
|
@@ -224,7 +224,7 @@ var Gt = { exports: {} };
|
|
|
224
224
|
var Q = g.name;
|
|
225
225
|
ie[Q] = g, E = Q;
|
|
226
226
|
}
|
|
227
|
-
return !V && E && (
|
|
227
|
+
return !V && E && (ce = E), E || !V && ce;
|
|
228
228
|
}, J = function(w, g) {
|
|
229
229
|
if (Me(w)) return w.clone();
|
|
230
230
|
var i = typeof g == "object" ? g : {};
|
|
@@ -276,7 +276,7 @@ var Gt = { exports: {} };
|
|
|
276
276
|
}, g.startOf = function(i, V) {
|
|
277
277
|
var E = this, q = !!K.u(V) || V, T = K.p(i), Q = function(I, C) {
|
|
278
278
|
var he = K.w(E.$u ? Date.UTC(E.$y, C, I) : new Date(E.$y, C, I), E);
|
|
279
|
-
return q ? he : he.endOf(
|
|
279
|
+
return q ? he : he.endOf(f);
|
|
280
280
|
}, oe = function(I, C) {
|
|
281
281
|
return K.w(E.toDate()[I].apply(E.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(C)), E);
|
|
282
282
|
}, ae = this.$W, H = this.$M, z = this.$D, Se = "set" + (this.$u ? "UTC" : "");
|
|
@@ -288,12 +288,12 @@ var Gt = { exports: {} };
|
|
|
288
288
|
case v:
|
|
289
289
|
var me = this.$locale().weekStart || 0, Te = (ae < me ? ae + 7 : ae) - me;
|
|
290
290
|
return Q(q ? z - Te : z + (6 - Te), H);
|
|
291
|
-
case
|
|
291
|
+
case f:
|
|
292
292
|
case le:
|
|
293
293
|
return oe(Se + "Hours", 0);
|
|
294
|
-
case
|
|
294
|
+
case S:
|
|
295
295
|
return oe(Se + "Minutes", 1);
|
|
296
|
-
case
|
|
296
|
+
case c:
|
|
297
297
|
return oe(Se + "Seconds", 2);
|
|
298
298
|
case h:
|
|
299
299
|
return oe(Se + "Milliseconds", 3);
|
|
@@ -303,7 +303,7 @@ var Gt = { exports: {} };
|
|
|
303
303
|
}, g.endOf = function(i) {
|
|
304
304
|
return this.startOf(i, !1);
|
|
305
305
|
}, g.$set = function(i, V) {
|
|
306
|
-
var E, q = K.p(i), T = "set" + (this.$u ? "UTC" : ""), Q = (E = {}, E[
|
|
306
|
+
var E, q = K.p(i), T = "set" + (this.$u ? "UTC" : ""), Q = (E = {}, E[f] = T + "Date", E[le] = T + "Date", E[u] = T + "Month", E[$] = T + "FullYear", E[S] = T + "Hours", E[c] = T + "Minutes", E[h] = T + "Seconds", E[e] = T + "Milliseconds", E)[q], oe = q === f ? this.$D + (V - this.$W) : V;
|
|
307
307
|
if (q === u || q === $) {
|
|
308
308
|
var ae = this.clone().set(le, 1);
|
|
309
309
|
ae.$d[Q](oe), ae.init(), this.$d = ae.set(le, Math.min(this.$D, ae.daysInMonth())).$d;
|
|
@@ -322,9 +322,9 @@ var Gt = { exports: {} };
|
|
|
322
322
|
};
|
|
323
323
|
if (T === u) return this.set(u, this.$M + i);
|
|
324
324
|
if (T === $) return this.set($, this.$y + i);
|
|
325
|
-
if (T ===
|
|
325
|
+
if (T === f) return Q(1);
|
|
326
326
|
if (T === v) return Q(7);
|
|
327
|
-
var oe = (E = {}, E[
|
|
327
|
+
var oe = (E = {}, E[c] = t, E[S] = r, E[h] = a, E)[T] || 1, ae = this.$d.getTime() + i * oe;
|
|
328
328
|
return K.w(ae, this);
|
|
329
329
|
}, g.subtract = function(i, V) {
|
|
330
330
|
return this.add(-1 * i, V);
|
|
@@ -339,7 +339,7 @@ var Gt = { exports: {} };
|
|
|
339
339
|
var xe = C < 12 ? "AM" : "PM";
|
|
340
340
|
return Oe ? xe.toLowerCase() : xe;
|
|
341
341
|
};
|
|
342
|
-
return q.replace(
|
|
342
|
+
return q.replace(D, function(C, he) {
|
|
343
343
|
return he || function(Oe) {
|
|
344
344
|
switch (Oe) {
|
|
345
345
|
case "YY":
|
|
@@ -413,13 +413,13 @@ var Gt = { exports: {} };
|
|
|
413
413
|
case v:
|
|
414
414
|
q = (H - ae) / 6048e5;
|
|
415
415
|
break;
|
|
416
|
-
case
|
|
416
|
+
case f:
|
|
417
417
|
q = (H - ae) / 864e5;
|
|
418
418
|
break;
|
|
419
|
-
case
|
|
419
|
+
case S:
|
|
420
420
|
q = H / r;
|
|
421
421
|
break;
|
|
422
|
-
case
|
|
422
|
+
case c:
|
|
423
423
|
q = H / t;
|
|
424
424
|
break;
|
|
425
425
|
case h:
|
|
@@ -449,7 +449,7 @@ var Gt = { exports: {} };
|
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, w;
|
|
451
451
|
}(), x = Le.prototype;
|
|
452
|
-
return J.prototype = x, [["$ms", e], ["$s", h], ["$m",
|
|
452
|
+
return J.prototype = x, [["$ms", e], ["$s", h], ["$m", c], ["$H", S], ["$W", f], ["$M", u], ["$y", $], ["$D", le]].forEach(function(w) {
|
|
453
453
|
x[w[1]] = function(g) {
|
|
454
454
|
return this.$g(g, w[0], w[1]);
|
|
455
455
|
};
|
|
@@ -457,7 +457,7 @@ var Gt = { exports: {} };
|
|
|
457
457
|
return w.$i || (w(g, Le, J), w.$i = !0), J;
|
|
458
458
|
}, J.locale = De, J.isDayjs = Me, J.unix = function(w) {
|
|
459
459
|
return J(1e3 * w);
|
|
460
|
-
}, J.en = ie[
|
|
460
|
+
}, J.en = ie[ce], J.Ls = ie, J.p = {}, J;
|
|
461
461
|
});
|
|
462
462
|
})(Gt);
|
|
463
463
|
var Tl = Gt.exports;
|
|
@@ -471,7 +471,8 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
471
471
|
"default-placeholder": !0,
|
|
472
472
|
style: {
|
|
473
473
|
display: "flex",
|
|
474
|
-
flexWrap: "wrap"
|
|
474
|
+
flexWrap: "wrap",
|
|
475
|
+
padding: "20px"
|
|
475
476
|
},
|
|
476
477
|
// 表单底部属性
|
|
477
478
|
footer: {
|
|
@@ -532,7 +533,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
532
533
|
emits: ["update:modelValue"],
|
|
533
534
|
setup(n) {
|
|
534
535
|
var x, w, g, i, V, E, q, T, Q, oe, ae, H, z, Se, me, Te;
|
|
535
|
-
const s = lt(n, "modelValue"), a = n, t = re(a.item || {}), r = re(a.ctrlKey), e = re(a.ctrlType), h = re(a.model),
|
|
536
|
+
const s = lt(n, "modelValue"), a = n, t = re(a.item || {}), r = re(a.ctrlKey), e = re(a.ctrlType), h = re(a.model), c = re([]), S = re([]), f = re(!1), v = re(!1), u = re((w = (x = h == null ? void 0 : h.value) == null ? void 0 : x.form) != null && w["default-placeholder"] ? (i = (g = h == null ? void 0 : h.value) == null ? void 0 : g[r == null ? void 0 : r.value]) == null ? void 0 : i.label : "");
|
|
536
537
|
!((V = e.value) != null && V.startsWith("text")) && !((E = e.value) != null && E.startsWith("link")) && !((q = e.value) != null && q.startsWith("tag")) && !((T = e.value) != null && T.startsWith("div")) && !((Q = e.value) != null && Q.startsWith("span")) && !((oe = e.value) != null && oe.startsWith("avatar")) && ((ae = t.value) != null && ae.style || (t.value.style = { width: ((z = (H = t.value) == null ? void 0 : H.style) == null ? void 0 : z.width) || "100%" }));
|
|
537
538
|
const d = re({ display: "flex", flex: 1 }), $ = a.t === "t" ? "center" : "flex-start", le = ((Se = t.value) == null ? void 0 : Se.style) || {};
|
|
538
539
|
d.value = { ...d.value, justifyContent: $, ...le };
|
|
@@ -544,7 +545,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
544
545
|
"show-file-list": !1,
|
|
545
546
|
"file-list": [],
|
|
546
547
|
showDel: (me = t.value) != null && me.showDel ? (Te = t.value) == null ? void 0 : Te.showDel : a.t !== "t"
|
|
547
|
-
}),
|
|
548
|
+
}), D = re(t.value.innerHtml), ue = (I) => [
|
|
548
549
|
"year",
|
|
549
550
|
"years",
|
|
550
551
|
"month",
|
|
@@ -557,7 +558,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
557
558
|
"daterange",
|
|
558
559
|
"monthrange",
|
|
559
560
|
"yearrange"
|
|
560
|
-
].includes(I),
|
|
561
|
+
].includes(I), fe = (I) => ({
|
|
561
562
|
year: "YYYY",
|
|
562
563
|
years: "YYYY",
|
|
563
564
|
month: "YYYY-MM",
|
|
@@ -575,10 +576,10 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
575
576
|
filterable: !0,
|
|
576
577
|
remote: !!(t.value && t.value["remote-method"]),
|
|
577
578
|
...t.value
|
|
578
|
-
}),
|
|
579
|
+
}), ce = re((I) => {
|
|
579
580
|
t.value["remote-method"](I, (C) => {
|
|
580
581
|
dt(() => {
|
|
581
|
-
|
|
582
|
+
S.value = C;
|
|
582
583
|
});
|
|
583
584
|
});
|
|
584
585
|
}), ie = async (I = "options") => {
|
|
@@ -586,14 +587,14 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
586
587
|
try {
|
|
587
588
|
const he = await ((C = t.value) == null ? void 0 : C.getDicts(a.formInfo));
|
|
588
589
|
if (typeof he == "string")
|
|
589
|
-
|
|
590
|
+
S.value = [{ label: he, value: s.value }];
|
|
590
591
|
else {
|
|
591
592
|
const Oe = he == null ? void 0 : he.map((xe, Ne) => ({
|
|
592
593
|
...xe,
|
|
593
594
|
value: xe.value ?? xe.label ?? Ne,
|
|
594
595
|
label: xe.label || "未知选项"
|
|
595
596
|
}));
|
|
596
|
-
|
|
597
|
+
S.value = Oe || [];
|
|
597
598
|
}
|
|
598
599
|
} catch (he) {
|
|
599
600
|
throw console.error("获取选项失败:", he), he;
|
|
@@ -604,13 +605,13 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
604
605
|
}, Me = (I) => {
|
|
605
606
|
I.preventDefault(), I.stopPropagation(), s.value = "";
|
|
606
607
|
}, De = (I) => {
|
|
607
|
-
|
|
608
|
+
f.value = !0;
|
|
608
609
|
}, J = (I) => {
|
|
609
|
-
I.preventDefault(), I.stopPropagation(),
|
|
610
|
+
I.preventDefault(), I.stopPropagation(), f.value = !0;
|
|
610
611
|
}, K = re(null);
|
|
611
|
-
|
|
612
|
+
ct(async () => {
|
|
612
613
|
var he, Oe, xe, Ne, rt;
|
|
613
|
-
t.value && t.value["remote-method"] && (pe.value["remote-method"] =
|
|
614
|
+
t.value && t.value["remote-method"] && (pe.value["remote-method"] = ce), (Oe = (he = h.value[r.value]) == null ? void 0 : he.options) != null && Oe.length && (S.value = h.value[r.value].options);
|
|
614
615
|
const I = (Ie, He = "options", ze = h.value[r.value]) => {
|
|
615
616
|
typeof t.value.getDicts == "function" && ie(He).catch((Pe) => {
|
|
616
617
|
console.error(`Failed to load ${He} for ${Ie}:`, Pe);
|
|
@@ -618,7 +619,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
618
619
|
};
|
|
619
620
|
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(e.value) && I(e.value), e.value === Ce.TREESELECT && await (async () => {
|
|
620
621
|
try {
|
|
621
|
-
typeof t.value.getDicts == "function" ?
|
|
622
|
+
typeof t.value.getDicts == "function" ? c.value = await t.value.getDicts(a.formInfo) : c.value = S.value;
|
|
622
623
|
} catch (He) {
|
|
623
624
|
console.error("Failed to load data for tree-select:", He);
|
|
624
625
|
}
|
|
@@ -656,14 +657,14 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
656
657
|
});
|
|
657
658
|
return (I, C) => {
|
|
658
659
|
var Z, se, Qe, Ze, Ge, Xe, ot, R, Re, Je;
|
|
659
|
-
const he = L("el-image-viewer"), Oe = L("el-radio"), xe = L("el-radio-group"), Ne = L("el-radio-button"), rt = L("el-checkbox"), Ie = L("el-checkbox-group"), He = L("el-checkbox-button"), ze = L("g-select-option"), Pe = L("el-option"), vt = L("el-select"), pt = L("el-tree-select"), l = L("el-time-picker"), o = L("el-time-select"), m = L("el-date-picker"), b = L("el-color-picker"), F = L("el-rate"), U = L("el-slider"), N = L("el-switch"), ye = L("el-transfer"), _e = L("el-cascader"), Ae = L("el-icon"), Ue = L("el-image"), Ye = L("el-tooltip"), We = L("el-upload"), st = L("el-autocomplete"), mt = L("el-input-number"),
|
|
660
|
+
const he = L("el-image-viewer"), Oe = L("el-radio"), xe = L("el-radio-group"), Ne = L("el-radio-button"), rt = L("el-checkbox"), Ie = L("el-checkbox-group"), He = L("el-checkbox-button"), ze = L("g-select-option"), Pe = L("el-option"), vt = L("el-select"), pt = L("el-tree-select"), l = L("el-time-picker"), o = L("el-time-select"), m = L("el-date-picker"), b = L("el-color-picker"), F = L("el-rate"), U = L("el-slider"), N = L("el-switch"), ye = L("el-transfer"), _e = L("el-cascader"), Ae = L("el-icon"), Ue = L("el-image"), Ye = L("el-tooltip"), We = L("el-upload"), st = L("el-autocomplete"), mt = L("el-input-number"), ft = L("el-input"), ht = L("el-link"), j = L("el-text"), de = L("el-avatar"), M = L("el-tag");
|
|
660
661
|
return p(), Y(te, null, [
|
|
661
662
|
X("div", null, [
|
|
662
|
-
|
|
663
|
+
f.value ? (p(), A(he, {
|
|
663
664
|
key: 0,
|
|
664
665
|
teleported: !0,
|
|
665
666
|
"url-list": Le.value,
|
|
666
|
-
onClose: C[0] || (C[0] = (y) =>
|
|
667
|
+
onClose: C[0] || (C[0] = (y) => f.value = !1)
|
|
667
668
|
}, null, 8, ["url-list"])) : $e("", !0)
|
|
668
669
|
]),
|
|
669
670
|
X("div", Fl, [
|
|
@@ -675,7 +676,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
675
676
|
}, t.value), {
|
|
676
677
|
default: _(() => [
|
|
677
678
|
k(I.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
|
|
678
|
-
(p(!0), Y(te, null, W(
|
|
679
|
+
(p(!0), Y(te, null, W(S.value, (y) => (p(), A(Oe, O({ ref_for: !0 }, y), {
|
|
679
680
|
default: _(() => [
|
|
680
681
|
k(I.$slots, `${a.t}-${r.value}-options`, { option: y }, void 0, !0)
|
|
681
682
|
]),
|
|
@@ -692,7 +693,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
692
693
|
}, t.value), {
|
|
693
694
|
default: _(() => [
|
|
694
695
|
k(I.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
|
|
695
|
-
(p(!0), Y(te, null, W(
|
|
696
|
+
(p(!0), Y(te, null, W(S.value, (y) => (p(), A(Ne, O({ ref_for: !0 }, y), {
|
|
696
697
|
default: _(() => [
|
|
697
698
|
k(I.$slots, `${a.t}-${r.value}-options`, { option: y }, void 0, !0)
|
|
698
699
|
]),
|
|
@@ -721,7 +722,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
721
722
|
}, t.value), {
|
|
722
723
|
default: _(() => [
|
|
723
724
|
k(I.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
|
|
724
|
-
(p(!0), Y(te, null, W(
|
|
725
|
+
(p(!0), Y(te, null, W(S.value, (y) => (p(), A(rt, O({ ref_for: !0 }, y), {
|
|
725
726
|
default: _(() => [
|
|
726
727
|
k(I.$slots, `${a.t}-${r.value}-options`, { option: y }, () => [
|
|
727
728
|
Ve(Ee(y.label), 1)
|
|
@@ -740,7 +741,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
740
741
|
}, t.value), {
|
|
741
742
|
default: _(() => [
|
|
742
743
|
k(I.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
|
|
743
|
-
(p(!0), Y(te, null, W(
|
|
744
|
+
(p(!0), Y(te, null, W(S.value, (y) => (p(), A(He, O({ ref_for: !0 }, y), {
|
|
744
745
|
default: _(() => [
|
|
745
746
|
k(I.$slots, `${a.t}-${r.value}-options`, { option: y }, void 0, !0)
|
|
746
747
|
]),
|
|
@@ -761,8 +762,8 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
761
762
|
disabled: h.value[r.value].disabled
|
|
762
763
|
}, pe.value), be({
|
|
763
764
|
default: _(() => [
|
|
764
|
-
k(I.$slots, `${a.t}-${r.value}`, { options:
|
|
765
|
-
(p(!0), Y(te, null, W(
|
|
765
|
+
k(I.$slots, `${a.t}-${r.value}`, { options: S.value }, () => [
|
|
766
|
+
(p(!0), Y(te, null, W(S.value, (y) => (p(), Y(te, {
|
|
766
767
|
key: y.value
|
|
767
768
|
}, [
|
|
768
769
|
ee(Pe, O({ ref_for: !0 }, P(je)(y, (ne) => ne != "children"), {
|
|
@@ -879,7 +880,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
879
880
|
"onUpdate:modelValue": C[8] || (C[8] = (y) => s.value = y),
|
|
880
881
|
placeholder: u.value,
|
|
881
882
|
disabled: h.value[r.value].disabled
|
|
882
|
-
}, t.value, { data:
|
|
883
|
+
}, t.value, { data: c.value }), be({ _: 2 }, [
|
|
883
884
|
W(B(), (y) => ({
|
|
884
885
|
name: y,
|
|
885
886
|
fn: _((ne) => [
|
|
@@ -907,7 +908,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
907
908
|
"onUpdate:modelValue": C[11] || (C[11] = (y) => s.value = y),
|
|
908
909
|
type: e.value,
|
|
909
910
|
placeholder: u.value,
|
|
910
|
-
"value-format":
|
|
911
|
+
"value-format": fe(e.value),
|
|
911
912
|
disabled: h.value[r.value].disabled
|
|
912
913
|
}, t.value), be({ _: 2 }, [
|
|
913
914
|
W(B(), (y) => ({
|
|
@@ -958,7 +959,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
958
959
|
key: 15,
|
|
959
960
|
modelValue: s.value,
|
|
960
961
|
"onUpdate:modelValue": C[17] || (C[17] = (y) => s.value = y)
|
|
961
|
-
}, t.value, { options:
|
|
962
|
+
}, t.value, { options: S.value }), be({ _: 2 }, [
|
|
962
963
|
W(B(), (y) => ({
|
|
963
964
|
name: y,
|
|
964
965
|
fn: _((ne) => [
|
|
@@ -1078,7 +1079,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1078
1079
|
key: 19,
|
|
1079
1080
|
style: qe([{ position: "relative" }, d.value])
|
|
1080
1081
|
}, [
|
|
1081
|
-
ee(
|
|
1082
|
+
ee(ft, O({
|
|
1082
1083
|
modelValue: s.value,
|
|
1083
1084
|
"onUpdate:modelValue": C[24] || (C[24] = (y) => s.value = y),
|
|
1084
1085
|
placeholder: u.value,
|
|
@@ -1106,7 +1107,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1106
1107
|
}, [
|
|
1107
1108
|
ee(ht, O(t.value, {
|
|
1108
1109
|
type: e.value.replace("link-", ""),
|
|
1109
|
-
innerHTML:
|
|
1110
|
+
innerHTML: D.value || s.value
|
|
1110
1111
|
}), null, 16, ["type", "innerHTML"])
|
|
1111
1112
|
], 4)) : e.value != "textarea" && ((Ze = e.value) != null && Ze.startsWith("text")) ? (p(), Y("div", {
|
|
1112
1113
|
key: 21,
|
|
@@ -1114,15 +1115,15 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1114
1115
|
}, [
|
|
1115
1116
|
ee(j, O(t.value, {
|
|
1116
1117
|
type: e.value.replace("text-", ""),
|
|
1117
|
-
innerHTML:
|
|
1118
|
+
innerHTML: D.value || s.value
|
|
1118
1119
|
}), null, 16, ["type", "innerHTML"])
|
|
1119
1120
|
], 4)) : e.value == "avatar" ? (p(), Y("div", {
|
|
1120
1121
|
key: 22,
|
|
1121
1122
|
style: qe(d.value)
|
|
1122
1123
|
}, [
|
|
1123
|
-
|
|
1124
|
+
D.value ? (p(), A(de, St(O({ key: 0 }, t.value)), {
|
|
1124
1125
|
default: _(() => [
|
|
1125
|
-
X("div", { innerHTML:
|
|
1126
|
+
X("div", { innerHTML: D.value }, null, 8, Al)
|
|
1126
1127
|
]),
|
|
1127
1128
|
_: 1
|
|
1128
1129
|
}, 16)) : (p(), A(de, St(O({ key: 1 }, t.value)), null, 16))
|
|
@@ -1130,7 +1131,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1130
1131
|
key: 23,
|
|
1131
1132
|
style: qe(d.value)
|
|
1132
1133
|
}, [
|
|
1133
|
-
Array.isArray(
|
|
1134
|
+
Array.isArray(D.value) && D.value.length > 0 ? (p(!0), Y(te, { key: 0 }, W(D.value, (y, ne) => (p(), Y(te, { key: ne }, [
|
|
1134
1135
|
typeof y == "object" ? (p(), A(M, O({
|
|
1135
1136
|
key: 0,
|
|
1136
1137
|
ref_for: !0
|
|
@@ -1147,15 +1148,15 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1147
1148
|
}), null, 16, ["type", "innerHTML"]))
|
|
1148
1149
|
], 64))), 128)) : (p(), A(M, O({ key: 1 }, t.value, {
|
|
1149
1150
|
type: e.value.replace("tag-", ""),
|
|
1150
|
-
innerHTML:
|
|
1151
|
+
innerHTML: D.value || s.value
|
|
1151
1152
|
}), null, 16, ["type", "innerHTML"]))
|
|
1152
1153
|
], 4)) : e.value == "div" ? (p(), Y("div", O({ key: 24 }, t.value, {
|
|
1153
|
-
innerHTML:
|
|
1154
|
+
innerHTML: D.value || s.value,
|
|
1154
1155
|
style: d.value
|
|
1155
1156
|
}), null, 16, Bl)) : e.value == "span" ? (p(), Y("span", O({ key: 25 }, t.value, {
|
|
1156
|
-
innerHTML:
|
|
1157
|
+
innerHTML: D.value || s.value,
|
|
1157
1158
|
style: d.value
|
|
1158
|
-
}), null, 16, Ol)) : (p(), A(
|
|
1159
|
+
}), null, 16, Ol)) : (p(), A(ft, O({
|
|
1159
1160
|
key: 26,
|
|
1160
1161
|
modelValue: s.value,
|
|
1161
1162
|
"onUpdate:modelValue": C[25] || (C[25] = (y) => s.value = y),
|
|
@@ -1241,7 +1242,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1241
1242
|
emits: /* @__PURE__ */ tt(["submit", "reset"], ["update:modelValue"]),
|
|
1242
1243
|
setup(n, { expose: s, emit: a }) {
|
|
1243
1244
|
var ge, Me, De, J, K, Le;
|
|
1244
|
-
const t = lt(n, "modelValue"), r = a, e = re(null), h = qt("options"),
|
|
1245
|
+
const t = lt(n, "modelValue"), r = a, e = re(null), h = qt("options"), c = re({}), S = re(""), f = n;
|
|
1245
1246
|
t.value.form = Fe(
|
|
1246
1247
|
Xt,
|
|
1247
1248
|
h == null ? void 0 : h.form,
|
|
@@ -1361,7 +1362,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1361
1362
|
return w;
|
|
1362
1363
|
}, B = (x, w = !1) => {
|
|
1363
1364
|
var V, E, q, T, Q;
|
|
1364
|
-
const g = w ? x : x == null ? void 0 : x.item, i = typeof (g == null ? void 0 : g.editor) == "function" ? g.editor(
|
|
1365
|
+
const g = w ? x : x == null ? void 0 : x.item, i = typeof (g == null ? void 0 : g.editor) == "function" ? g.editor(c.value, (V = t.value.form) == null ? void 0 : V.modalState) : (g == null ? void 0 : g.editor) || {};
|
|
1365
1366
|
if (((E = t.value.form) == null ? void 0 : E.modalState) === "edit") {
|
|
1366
1367
|
const oe = typeof (g == null ? void 0 : g.editor) == "object" ? (q = g.editor) == null ? void 0 : q.ep : typeof (g == null ? void 0 : g.editor) == "function" ? i == null ? void 0 : i.ep : {};
|
|
1367
1368
|
return { ...i, ...oe };
|
|
@@ -1373,16 +1374,16 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1373
1374
|
return i;
|
|
1374
1375
|
}, G = (x) => {
|
|
1375
1376
|
var g, i, V, E, q;
|
|
1376
|
-
const w = typeof x.editor == "function" ? x.editor(
|
|
1377
|
+
const w = typeof x.editor == "function" ? x.editor(c.value, (g = t.value.form) == null ? void 0 : g.modalState) : x.editor;
|
|
1377
1378
|
return ((i = t.value.form) == null ? void 0 : i.modalState) === "edit" ? ((V = w == null ? void 0 : w.ep) == null ? void 0 : V.type) ?? (w == null ? void 0 : w.type) ?? x.type : ((E = t.value.form) == null ? void 0 : E.modalState) === "add" ? ((q = w == null ? void 0 : w.ap) == null ? void 0 : q.type) ?? (w == null ? void 0 : w.type) ?? x.type : (w == null ? void 0 : w.type) ?? x.type;
|
|
1378
1379
|
};
|
|
1379
|
-
|
|
1380
|
-
|
|
1380
|
+
ct(() => {
|
|
1381
|
+
D(), f != null && f.editForm ? c.value = f.editForm : c.value = fe.value;
|
|
1381
1382
|
}), ol(() => {
|
|
1382
1383
|
e.value = null;
|
|
1383
1384
|
});
|
|
1384
|
-
const
|
|
1385
|
-
|
|
1385
|
+
const D = () => {
|
|
1386
|
+
S.value = Math.random().toString(36).substring(2);
|
|
1386
1387
|
for (const [x, w] of Object.entries(ue.value))
|
|
1387
1388
|
t.value[x].formItem = {
|
|
1388
1389
|
...t.value[x].formItem,
|
|
@@ -1395,11 +1396,11 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1395
1396
|
() => Object.fromEntries(
|
|
1396
1397
|
Object.entries(t.value).filter((x) => x[1].type != "hidden").filter((x) => x[1].hidden !== !0).filter((x) => x[1].edit !== !1).filter((x) => x[1].editor !== !1).filter((x) => x[1].type !== "control").filter((x) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(x[0])).filter((x) => {
|
|
1397
1398
|
var g, i, V;
|
|
1398
|
-
const w = typeof x[1].editor == "function" ? x[1].editor(
|
|
1399
|
+
const w = typeof x[1].editor == "function" ? x[1].editor(c.value, (g = t.value.form) == null ? void 0 : g.modalState) : x[1].editor;
|
|
1399
1400
|
return t.value.form.modalState === "edit" ? ((i = w == null ? void 0 : w.ep) == null ? void 0 : i.editor) !== !1 : t.value.form.modalState === "add" ? ((V = w == null ? void 0 : w.ap) == null ? void 0 : V.editor) !== !1 : !0;
|
|
1400
1401
|
}).map((x) => [x[0], x[1]])
|
|
1401
1402
|
)
|
|
1402
|
-
),
|
|
1403
|
+
), fe = nt(
|
|
1403
1404
|
() => Object.fromEntries(
|
|
1404
1405
|
Object.entries(t.value).filter((x) => x[1].type != "hidden").filter((x) => x[1].type != "control").map((x) => [x[0], x[1].value])
|
|
1405
1406
|
)
|
|
@@ -1418,12 +1419,12 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1418
1419
|
...w.items.map(({ item: g }) => g.tabPane || {})
|
|
1419
1420
|
);
|
|
1420
1421
|
}), Array.from(x.values());
|
|
1421
|
-
}),
|
|
1422
|
+
}), ce = re([
|
|
1422
1423
|
{
|
|
1423
1424
|
name: "f-submit",
|
|
1424
1425
|
label: t.value.form.submit.label,
|
|
1425
1426
|
click: t.value.form.submit.click,
|
|
1426
|
-
hidden:
|
|
1427
|
+
hidden: f.flag === "view" ? !0 : t.value.form.submit.hidden,
|
|
1427
1428
|
info: t.value.form.submit,
|
|
1428
1429
|
// filterObject(model.value.form.submit, (k) => !["click"].includes(k)),
|
|
1429
1430
|
sort: t.value.form.submit.sort ?? 1,
|
|
@@ -1436,7 +1437,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1436
1437
|
name: "f-save-submit",
|
|
1437
1438
|
label: t.value.form.saveSubmit.label,
|
|
1438
1439
|
click: t.value.form.saveSubmit.click,
|
|
1439
|
-
hidden: !(
|
|
1440
|
+
hidden: !(f.flag == "add" && t.value.form.saveSubmit.hidden === !1),
|
|
1440
1441
|
info: t.value.form.saveSubmit,
|
|
1441
1442
|
// filterObject(model.value.form.saveSubmit, (k) => !["click"].includes(k)),
|
|
1442
1443
|
sort: t.value.form.saveSubmit.sort ?? 1,
|
|
@@ -1451,18 +1452,18 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1451
1452
|
click: t.value.form.reset.click,
|
|
1452
1453
|
info: t.value.form.reset,
|
|
1453
1454
|
// filterObject(model.value.form.reset, (k) => !["click"].includes(k)),
|
|
1454
|
-
hidden: !(
|
|
1455
|
+
hidden: !(f.flag === "add" && t.value.form.reset.hidden === !1),
|
|
1455
1456
|
sort: t.value.form.reset.sort ?? 2,
|
|
1456
1457
|
// 使用空值合并运算符
|
|
1457
1458
|
originalOrder: 1
|
|
1458
1459
|
// 添加原始顺序标识
|
|
1459
1460
|
}
|
|
1460
|
-
]), ie = nt(() =>
|
|
1461
|
+
]), ie = nt(() => ce.value.filter((x) => !x.hidden).sort((x, w) => x.sort - w.sort || x.originalOrder - w.originalOrder));
|
|
1461
1462
|
return s({
|
|
1462
1463
|
submit: v,
|
|
1463
1464
|
saveSubmit: v,
|
|
1464
1465
|
reset: u,
|
|
1465
|
-
formData:
|
|
1466
|
+
formData: c
|
|
1466
1467
|
}), (x, w) => {
|
|
1467
1468
|
var Q, oe, ae;
|
|
1468
1469
|
const g = L("el-form-item"), i = L("el-col"), V = L("el-tab-pane"), E = L("el-tabs"), q = L("el-form"), T = L("el-button");
|
|
@@ -1471,9 +1472,9 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1471
1472
|
{
|
|
1472
1473
|
ref_key: "gform",
|
|
1473
1474
|
ref: e,
|
|
1474
|
-
model:
|
|
1475
|
+
model: c.value,
|
|
1475
1476
|
style: {
|
|
1476
|
-
width: "
|
|
1477
|
+
width: "100%",
|
|
1477
1478
|
padding: 0,
|
|
1478
1479
|
margin: 0,
|
|
1479
1480
|
"box-sizing": "border-box"
|
|
@@ -1517,21 +1518,21 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1517
1518
|
default: _(() => [
|
|
1518
1519
|
k(x.$slots, "f-" + z.key, {
|
|
1519
1520
|
item: z == null ? void 0 : z.item,
|
|
1520
|
-
formInfo:
|
|
1521
|
+
formInfo: c.value,
|
|
1521
1522
|
model: t.value,
|
|
1522
|
-
form:
|
|
1523
|
+
form: c.value
|
|
1523
1524
|
}, () => [
|
|
1524
1525
|
(p(), A(Et, {
|
|
1525
|
-
modelValue:
|
|
1526
|
-
"onUpdate:modelValue": (I) =>
|
|
1526
|
+
modelValue: c.value[z.key],
|
|
1527
|
+
"onUpdate:modelValue": (I) => c.value[z.key] = I,
|
|
1527
1528
|
item: B(z),
|
|
1528
1529
|
ctrlKey: z.key,
|
|
1529
1530
|
ctrlType: G(z == null ? void 0 : z.item),
|
|
1530
1531
|
model: t.value,
|
|
1531
|
-
key: `${z.key}-${
|
|
1532
|
+
key: `${z.key}-${S.value}`,
|
|
1532
1533
|
class: "g-ctrl-container",
|
|
1533
1534
|
t: "f",
|
|
1534
|
-
formInfo:
|
|
1535
|
+
formInfo: c.value
|
|
1535
1536
|
}, be({ _: 2 }, [
|
|
1536
1537
|
W(x.$slots, (I, C) => ({
|
|
1537
1538
|
name: C,
|
|
@@ -1584,21 +1585,21 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1584
1585
|
default: _(() => [
|
|
1585
1586
|
k(x.$slots, "f-" + z, {
|
|
1586
1587
|
item: H,
|
|
1587
|
-
formInfo:
|
|
1588
|
+
formInfo: c.value,
|
|
1588
1589
|
model: t.value,
|
|
1589
|
-
form:
|
|
1590
|
+
form: c.value
|
|
1590
1591
|
}, () => [
|
|
1591
1592
|
(p(), A(Et, {
|
|
1592
|
-
modelValue:
|
|
1593
|
-
"onUpdate:modelValue": (me) =>
|
|
1593
|
+
modelValue: c.value[z],
|
|
1594
|
+
"onUpdate:modelValue": (me) => c.value[z] = me,
|
|
1594
1595
|
item: B(H, !0),
|
|
1595
1596
|
ctrlKey: z,
|
|
1596
1597
|
ctrlType: G(H),
|
|
1597
|
-
key: `${z}-${
|
|
1598
|
+
key: `${z}-${S.value}`,
|
|
1598
1599
|
model: t.value,
|
|
1599
1600
|
class: "g-ctrl-container",
|
|
1600
1601
|
t: "f",
|
|
1601
|
-
formInfo:
|
|
1602
|
+
formInfo: c.value
|
|
1602
1603
|
}, be({ _: 2 }, [
|
|
1603
1604
|
W(x.$slots, (me, Te) => ({
|
|
1604
1605
|
name: Te,
|
|
@@ -1637,7 +1638,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1637
1638
|
key: 0,
|
|
1638
1639
|
ref_for: !0
|
|
1639
1640
|
}, H.info, {
|
|
1640
|
-
onClick: wt((Se) => H.click(
|
|
1641
|
+
onClick: wt((Se) => H.click(c.value, t.value, H.flag), ["stop"])
|
|
1641
1642
|
}), {
|
|
1642
1643
|
default: _(() => [
|
|
1643
1644
|
Ve(Ee(H == null ? void 0 : H.label), 1)
|
|
@@ -1654,7 +1655,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1654
1655
|
]);
|
|
1655
1656
|
};
|
|
1656
1657
|
}
|
|
1657
|
-
}), xt = /* @__PURE__ */ at(zl, [["__scopeId", "data-v-
|
|
1658
|
+
}), xt = /* @__PURE__ */ at(zl, [["__scopeId", "data-v-3b3ffd4d"]]), Bt = {
|
|
1658
1659
|
__name: "g-query-item",
|
|
1659
1660
|
props: /* @__PURE__ */ tt(["more"], {
|
|
1660
1661
|
modelValue: { required: !0 },
|
|
@@ -1664,24 +1665,24 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1664
1665
|
}),
|
|
1665
1666
|
emits: ["update:modelValue", "update:info"],
|
|
1666
1667
|
setup(n) {
|
|
1667
|
-
const s = lt(n, "modelValue"), a = n, t = lt(n, "info"), r = (
|
|
1668
|
-
let
|
|
1668
|
+
const s = lt(n, "modelValue"), a = n, t = lt(n, "info"), r = (S) => {
|
|
1669
|
+
let f = Object.entries(s.value).filter((u) => {
|
|
1669
1670
|
var d;
|
|
1670
|
-
return typeof u[1].search == "function" ? u[1].search && ((d = u[1].search(t.value, s.value.table)) == null ? void 0 : d.more) ===
|
|
1671
|
-
}).map((u) => [u[0], u[1]]), v = Object.fromEntries(
|
|
1671
|
+
return typeof u[1].search == "function" ? u[1].search && ((d = u[1].search(t.value, s.value.table)) == null ? void 0 : d.more) === S : u[1].search && u[1].search.more === S;
|
|
1672
|
+
}).map((u) => [u[0], u[1]]), v = Object.fromEntries(f);
|
|
1672
1673
|
return nt(() => v).value;
|
|
1673
|
-
}, e = (
|
|
1674
|
-
const
|
|
1675
|
-
return (
|
|
1676
|
-
},
|
|
1674
|
+
}, e = (S) => typeof S.search == "function" ? S.search(t.value, s.value.table) : S.search || {}, h = (S) => {
|
|
1675
|
+
const f = e(S);
|
|
1676
|
+
return (f == null ? void 0 : f.type) || S.type;
|
|
1677
|
+
}, c = (S) => {
|
|
1677
1678
|
var u;
|
|
1678
|
-
const
|
|
1679
|
-
let v = (
|
|
1679
|
+
const f = e(S);
|
|
1680
|
+
let v = (f == null ? void 0 : f.width) || ((u = s.value.queryItems) == null ? void 0 : u.width) || "100%";
|
|
1680
1681
|
return isNaN(v) || (v += "px"), v;
|
|
1681
1682
|
};
|
|
1682
|
-
return (
|
|
1683
|
+
return (S, f) => {
|
|
1683
1684
|
const v = L("el-form-item");
|
|
1684
|
-
return p(!0), Y(te, null, W(r(a.more), (u, d) => k(
|
|
1685
|
+
return p(!0), Y(te, null, W(r(a.more), (u, d) => k(S.$slots, `q-${d}`, {
|
|
1685
1686
|
key: d,
|
|
1686
1687
|
item: u,
|
|
1687
1688
|
queryModel: t.value,
|
|
@@ -1689,11 +1690,11 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1689
1690
|
}, () => [
|
|
1690
1691
|
ee(v, O({
|
|
1691
1692
|
label: u.label,
|
|
1692
|
-
style: { width:
|
|
1693
|
+
style: { width: c(u) },
|
|
1693
1694
|
ref_for: !0
|
|
1694
1695
|
}, { ...s.value.queryItems, ...e(u) }), {
|
|
1695
1696
|
label: _(() => [
|
|
1696
|
-
k(
|
|
1697
|
+
k(S.$slots, `q-${d}-label`, {
|
|
1697
1698
|
item: u,
|
|
1698
1699
|
model: s.value
|
|
1699
1700
|
})
|
|
@@ -1709,10 +1710,10 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1709
1710
|
t: "q",
|
|
1710
1711
|
formInfo: t.value
|
|
1711
1712
|
}, be({ _: 2 }, [
|
|
1712
|
-
W(Object.keys(
|
|
1713
|
+
W(Object.keys(S.$slots), ($) => ({
|
|
1713
1714
|
name: $,
|
|
1714
1715
|
fn: _((le) => [
|
|
1715
|
-
k(
|
|
1716
|
+
k(S.$slots, $, {
|
|
1716
1717
|
data: le,
|
|
1717
1718
|
item: u,
|
|
1718
1719
|
model: s.value
|
|
@@ -1739,7 +1740,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1739
1740
|
},
|
|
1740
1741
|
emits: /* @__PURE__ */ tt(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1741
1742
|
setup(n, { emit: s }) {
|
|
1742
|
-
const a = lt(n, "modelValue"), t = s, r = qt("options"), e = re(!1), h = lt(n, "info"),
|
|
1743
|
+
const a = lt(n, "modelValue"), t = s, r = qt("options"), e = re(!1), h = lt(n, "info"), c = {
|
|
1743
1744
|
hidden: !1,
|
|
1744
1745
|
type: "hidden",
|
|
1745
1746
|
labelWidth: 100,
|
|
@@ -1791,8 +1792,8 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1791
1792
|
}
|
|
1792
1793
|
}
|
|
1793
1794
|
};
|
|
1794
|
-
a.value.query = Fe(
|
|
1795
|
-
const
|
|
1795
|
+
a.value.query = Fe(c, r == null ? void 0 : r.query, a.value.query);
|
|
1796
|
+
const S = {
|
|
1796
1797
|
2: {
|
|
1797
1798
|
title: "更多查询",
|
|
1798
1799
|
showClose: !1,
|
|
@@ -1810,10 +1811,10 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1810
1811
|
}
|
|
1811
1812
|
};
|
|
1812
1813
|
a.value.query.more.dialog = Fe(
|
|
1813
|
-
|
|
1814
|
+
S[a.value.query.more.mode] || {},
|
|
1814
1815
|
a.value.query.more.dialog
|
|
1815
1816
|
);
|
|
1816
|
-
const
|
|
1817
|
+
const f = {
|
|
1817
1818
|
type: "hidden",
|
|
1818
1819
|
hidden: !1,
|
|
1819
1820
|
labelPosition: "right",
|
|
@@ -1822,9 +1823,9 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1822
1823
|
// width: "280px"
|
|
1823
1824
|
}
|
|
1824
1825
|
};
|
|
1825
|
-
a.value.queryItems = Fe(
|
|
1826
|
+
a.value.queryItems = Fe(f, r == null ? void 0 : r.queryItems, a.value.queryItems);
|
|
1826
1827
|
const v = (B, G) => {
|
|
1827
|
-
const
|
|
1828
|
+
const D = Object.keys(B.slots).filter((ue) => ue !== "default").reduce((ue, fe) => (ue[fe] = (pe) => B.slots[fe]({
|
|
1828
1829
|
model: a.value
|
|
1829
1830
|
// 传递当前模型数据
|
|
1830
1831
|
}), ue), {});
|
|
@@ -1834,13 +1835,13 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1834
1835
|
info: h.value,
|
|
1835
1836
|
"onUpdate:info": (ue) => h.value = ue,
|
|
1836
1837
|
more: G
|
|
1837
|
-
},
|
|
1838
|
+
}, D);
|
|
1838
1839
|
}, u = Yt(), d = () => {
|
|
1839
|
-
var
|
|
1840
|
+
var D, ue, fe, pe, ce, ie, ge, Me, De;
|
|
1840
1841
|
const B = [
|
|
1841
1842
|
{
|
|
1842
1843
|
key: "query",
|
|
1843
|
-
hidden: (
|
|
1844
|
+
hidden: (fe = (ue = (D = a.value) == null ? void 0 : D.query) == null ? void 0 : ue.query) == null ? void 0 : fe.hidden,
|
|
1844
1845
|
component: Be,
|
|
1845
1846
|
props: {
|
|
1846
1847
|
...a.value.query.query,
|
|
@@ -1851,7 +1852,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1851
1852
|
},
|
|
1852
1853
|
{
|
|
1853
1854
|
key: "reset",
|
|
1854
|
-
hidden: (ie = (
|
|
1855
|
+
hidden: (ie = (ce = (pe = a.value) == null ? void 0 : pe.query) == null ? void 0 : ce.reset) == null ? void 0 : ie.hidden,
|
|
1855
1856
|
component: Be,
|
|
1856
1857
|
props: {
|
|
1857
1858
|
...a.value.query.reset,
|
|
@@ -1887,12 +1888,12 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1887
1888
|
alert("查询设置,正在开发中......");
|
|
1888
1889
|
};
|
|
1889
1890
|
return (B, G) => {
|
|
1890
|
-
var
|
|
1891
|
-
const
|
|
1891
|
+
var fe, pe, ce, ie, ge, Me, De, J, K, Le, x, w, g, i, V, E, q;
|
|
1892
|
+
const D = L("el-form-item"), ue = L("el-drawer");
|
|
1892
1893
|
return p(), Y(te, null, [
|
|
1893
1894
|
X("div", {
|
|
1894
1895
|
class: "g-query-container",
|
|
1895
|
-
style: qe({ ...$.value, ...((pe = (
|
|
1896
|
+
style: qe({ ...$.value, ...((pe = (fe = a.value.query) == null ? void 0 : fe.container) == null ? void 0 : pe.style) || {} }),
|
|
1896
1897
|
onDblclick: le
|
|
1897
1898
|
}, [
|
|
1898
1899
|
ee(P(gt), O({
|
|
@@ -1903,7 +1904,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1903
1904
|
var T, Q;
|
|
1904
1905
|
return [
|
|
1905
1906
|
(p(), A(Ke(v({ slots: B.$slots }, void 0)))),
|
|
1906
|
-
((Q = (T = a.value.query) == null ? void 0 : T.container) == null ? void 0 : Q.inline) === !0 ? (p(), A(
|
|
1907
|
+
((Q = (T = a.value.query) == null ? void 0 : T.container) == null ? void 0 : Q.inline) === !0 ? (p(), A(D, { key: 0 }, {
|
|
1907
1908
|
default: _(() => {
|
|
1908
1909
|
var oe, ae, H, z, Se;
|
|
1909
1910
|
return [
|
|
@@ -1940,7 +1941,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
1940
1941
|
}),
|
|
1941
1942
|
_: 3
|
|
1942
1943
|
}, 16),
|
|
1943
|
-
((ge = (ie = (
|
|
1944
|
+
((ge = (ie = (ce = a.value) == null ? void 0 : ce.query) == null ? void 0 : ie.container) == null ? void 0 : ge.inline) === !1 ? (p(), Y("div", {
|
|
1944
1945
|
key: 0,
|
|
1945
1946
|
style: qe((De = (Me = a.value.query) == null ? void 0 : Me.btns) == null ? void 0 : De.style)
|
|
1946
1947
|
}, [
|
|
@@ -2056,10 +2057,10 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
2056
2057
|
], 64);
|
|
2057
2058
|
};
|
|
2058
2059
|
}
|
|
2059
|
-
}, Wl = /* @__PURE__ */ at(Nl, [["__scopeId", "data-v-fbc339ad"]]), Gl = { style: { padding: "
|
|
2060
|
+
}, Wl = /* @__PURE__ */ at(Nl, [["__scopeId", "data-v-fbc339ad"]]), Gl = { style: { padding: "15px", "box-sizing": "border-box" } }, Xl = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, Ql = { style: { display: "flex", flex: "1", "align-items": "center" } }, Zl = {
|
|
2060
2061
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2061
2062
|
id: "excelSortEl"
|
|
2062
|
-
},
|
|
2063
|
+
}, Jl = ["textContent"], Kl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, ea = {
|
|
2063
2064
|
__name: "check-excel-item",
|
|
2064
2065
|
props: {
|
|
2065
2066
|
items: Array,
|
|
@@ -2068,43 +2069,43 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
2068
2069
|
emits: ["excel"],
|
|
2069
2070
|
setup(n, { emit: s }) {
|
|
2070
2071
|
const a = n, t = s, r = re(a.items), e = () => {
|
|
2071
|
-
r.value.forEach((
|
|
2072
|
-
|
|
2072
|
+
r.value.forEach((S) => {
|
|
2073
|
+
S.value = !0;
|
|
2073
2074
|
});
|
|
2074
2075
|
}, h = () => {
|
|
2075
|
-
r.value.forEach((
|
|
2076
|
-
|
|
2076
|
+
r.value.forEach((S) => {
|
|
2077
|
+
S.value = !1;
|
|
2077
2078
|
});
|
|
2078
|
-
},
|
|
2079
|
-
t("excel", r.value, (
|
|
2080
|
-
if (!
|
|
2079
|
+
}, c = () => {
|
|
2080
|
+
t("excel", r.value, (S, f = "excel.xls") => {
|
|
2081
|
+
if (!S) {
|
|
2081
2082
|
console.error("下载链接无效");
|
|
2082
2083
|
return;
|
|
2083
2084
|
}
|
|
2084
2085
|
try {
|
|
2085
2086
|
const v = document.createElement("a");
|
|
2086
|
-
v.href =
|
|
2087
|
+
v.href = S, v.download = f, v.style.display = "none", document.body.appendChild(v), v.click(), document.body.removeChild(v);
|
|
2087
2088
|
} catch (v) {
|
|
2088
2089
|
console.error("下载文件时出现错误:", v);
|
|
2089
2090
|
}
|
|
2090
2091
|
});
|
|
2091
2092
|
};
|
|
2092
|
-
return
|
|
2093
|
-
const
|
|
2093
|
+
return ct(() => {
|
|
2094
|
+
const S = new Nt(document.getElementById("excelSortEl"), {
|
|
2094
2095
|
animation: 150,
|
|
2095
2096
|
onEnd: () => {
|
|
2096
|
-
|
|
2097
|
+
S.toArray();
|
|
2097
2098
|
}
|
|
2098
|
-
}),
|
|
2099
|
+
}), f = S;
|
|
2099
2100
|
dl(() => {
|
|
2100
|
-
|
|
2101
|
+
f && f.destroy();
|
|
2101
2102
|
});
|
|
2102
|
-
}), (
|
|
2103
|
+
}), (S, f) => {
|
|
2103
2104
|
const v = L("el-divider"), u = L("el-icon"), d = L("el-text"), $ = L("el-checkbox"), le = L("el-button");
|
|
2104
2105
|
return p(), Y("div", Gl, [
|
|
2105
|
-
X("div",
|
|
2106
|
-
X("div",
|
|
2107
|
-
X("div",
|
|
2106
|
+
X("div", null, [
|
|
2107
|
+
X("div", Xl, [
|
|
2108
|
+
X("div", Ql, [
|
|
2108
2109
|
X("a", {
|
|
2109
2110
|
onClick: e,
|
|
2110
2111
|
style: { cursor: "pointer" }
|
|
@@ -2127,14 +2128,14 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
2127
2128
|
]),
|
|
2128
2129
|
_: 1
|
|
2129
2130
|
}),
|
|
2130
|
-
|
|
2131
|
+
f[0] || (f[0] = Ve(" 拖动列标题可以改变表格列的生成顺序 ! "))
|
|
2131
2132
|
]),
|
|
2132
2133
|
_: 1
|
|
2133
2134
|
})
|
|
2134
2135
|
])
|
|
2135
2136
|
]),
|
|
2136
|
-
|
|
2137
|
-
X("div",
|
|
2137
|
+
f[1] || (f[1] = X("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2138
|
+
X("div", Zl, [
|
|
2138
2139
|
(p(!0), Y(te, null, W(r.value, (B) => (p(), A($, {
|
|
2139
2140
|
class: "check-box-hover",
|
|
2140
2141
|
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" },
|
|
@@ -2148,16 +2149,16 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
2148
2149
|
X("span", {
|
|
2149
2150
|
textContent: Ee(B.label),
|
|
2150
2151
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2151
|
-
}, null, 8,
|
|
2152
|
+
}, null, 8, Jl)
|
|
2152
2153
|
]),
|
|
2153
2154
|
_: 2
|
|
2154
2155
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2155
2156
|
])
|
|
2156
2157
|
]),
|
|
2157
|
-
X("div",
|
|
2158
|
+
X("div", Kl, [
|
|
2158
2159
|
ee(le, {
|
|
2159
2160
|
type: "primary",
|
|
2160
|
-
onClick:
|
|
2161
|
+
onClick: c,
|
|
2161
2162
|
icon: P(jt),
|
|
2162
2163
|
disabled: r.value.filter((B) => B.value).length < 1
|
|
2163
2164
|
}, {
|
|
@@ -2170,8 +2171,8 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
|
|
|
2170
2171
|
]);
|
|
2171
2172
|
};
|
|
2172
2173
|
}
|
|
2173
|
-
},
|
|
2174
|
-
ve.version(
|
|
2174
|
+
}, ta = /* @__PURE__ */ at(ea, [["__scopeId", "data-v-13575747"]]), la = "vue-gyc-ui", aa = 1, ve = new Sl(la);
|
|
2175
|
+
ve.version(aa).stores({
|
|
2175
2176
|
// 记录表格项设置信息
|
|
2176
2177
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2177
2178
|
// 记录表格分页条数
|
|
@@ -2193,7 +2194,7 @@ async function $t(n, s, a) {
|
|
|
2193
2194
|
throw console.error(`处理表格列状态时出错 (page: ${n}, key: ${s}, state: ${a}):`, t), t;
|
|
2194
2195
|
}
|
|
2195
2196
|
}
|
|
2196
|
-
async function
|
|
2197
|
+
async function ra(n, s, a) {
|
|
2197
2198
|
ut(n);
|
|
2198
2199
|
try {
|
|
2199
2200
|
const t = await ve.tableWidths.where({ page: n, key: s }).first();
|
|
@@ -2202,7 +2203,7 @@ async function oa(n, s, a) {
|
|
|
2202
2203
|
throw console.error(`保存表格项设置信息时出错 (page: ${n}, key: ${s}):`, t), t;
|
|
2203
2204
|
}
|
|
2204
2205
|
}
|
|
2205
|
-
async function
|
|
2206
|
+
async function oa(n) {
|
|
2206
2207
|
ut(n);
|
|
2207
2208
|
try {
|
|
2208
2209
|
return await ve.tableWidths.where({ page: n }).toArray();
|
|
@@ -2210,7 +2211,7 @@ async function na(n) {
|
|
|
2210
2211
|
throw console.error(`获取表格项设置信息时出错 (page: ${n}):`, s), s;
|
|
2211
2212
|
}
|
|
2212
2213
|
}
|
|
2213
|
-
async function
|
|
2214
|
+
async function na(n) {
|
|
2214
2215
|
ut(n);
|
|
2215
2216
|
try {
|
|
2216
2217
|
const s = await ve.tableColsState.where({ page: n }).toArray();
|
|
@@ -2219,7 +2220,7 @@ async function ua(n) {
|
|
|
2219
2220
|
throw console.error(`获取表格列状态时出错 (page: ${n}):`, s), s;
|
|
2220
2221
|
}
|
|
2221
2222
|
}
|
|
2222
|
-
async function
|
|
2223
|
+
async function ua(n) {
|
|
2223
2224
|
ut(n);
|
|
2224
2225
|
try {
|
|
2225
2226
|
return await ve.transaction("rw", ve.tableWidths, ve.pageInfo, ve.sorts, ve.tableColsState, async () => {
|
|
@@ -2234,7 +2235,7 @@ async function sa(n) {
|
|
|
2234
2235
|
throw console.error(`删除页面"${n}"的表格设置信息时出错:`, s), s;
|
|
2235
2236
|
}
|
|
2236
2237
|
}
|
|
2237
|
-
async function
|
|
2238
|
+
async function sa({ page: n, size: s }) {
|
|
2238
2239
|
ut(n);
|
|
2239
2240
|
try {
|
|
2240
2241
|
const a = await ve.pageInfo.where({ page: n }).first();
|
|
@@ -2243,7 +2244,7 @@ async function ia({ page: n, size: s }) {
|
|
|
2243
2244
|
throw console.error(`保存分页条数时出错 (page: ${n}):`, a), a;
|
|
2244
2245
|
}
|
|
2245
2246
|
}
|
|
2246
|
-
async function
|
|
2247
|
+
async function ia(n) {
|
|
2247
2248
|
ut(n);
|
|
2248
2249
|
try {
|
|
2249
2250
|
const s = await ve.pageInfo.where({ page: n }).first();
|
|
@@ -2252,7 +2253,7 @@ async function da(n) {
|
|
|
2252
2253
|
throw console.error(`获取分页条数时出错 (page: ${n}):`, s), s;
|
|
2253
2254
|
}
|
|
2254
2255
|
}
|
|
2255
|
-
async function
|
|
2256
|
+
async function da(n, s) {
|
|
2256
2257
|
ut(n);
|
|
2257
2258
|
try {
|
|
2258
2259
|
const a = await ve.sorts.where({ page: n }).first();
|
|
@@ -2270,7 +2271,7 @@ async function fa(n) {
|
|
|
2270
2271
|
throw console.error(`获取表格字段顺序时出错 (page: ${n}):`, s), s;
|
|
2271
2272
|
}
|
|
2272
2273
|
}
|
|
2273
|
-
const
|
|
2274
|
+
const ca = { style: { padding: "15px", "box-sizing": "border-box" } }, va = { style: { display: "flex", "align-items": "center", height: "30px" } }, pa = {
|
|
2274
2275
|
style: { display: "flex", flex: "1", "align-items": "center" },
|
|
2275
2276
|
class: "allcheck"
|
|
2276
2277
|
}, ma = {
|
|
@@ -2291,7 +2292,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
|
|
|
2291
2292
|
setup(n, { emit: s }) {
|
|
2292
2293
|
const a = n, t = s, r = re([]), e = lt(n, "modelValue"), h = async (u, d) => {
|
|
2293
2294
|
u ? (e.value[d].showCol = !0, await $t(a.tuid, d, "del")) : (e.value[d].showCol = !1, await $t(a.tuid, d, "add"));
|
|
2294
|
-
},
|
|
2295
|
+
}, c = () => {
|
|
2295
2296
|
const u = document.getElementById("cols");
|
|
2296
2297
|
if (u) {
|
|
2297
2298
|
let d = Nt.create(u, {
|
|
@@ -2301,7 +2302,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
|
|
|
2301
2302
|
onEnd: async () => {
|
|
2302
2303
|
let $ = d.toArray();
|
|
2303
2304
|
try {
|
|
2304
|
-
|
|
2305
|
+
da(a.tuid, $).then((le) => {
|
|
2305
2306
|
t("setting-drag-end");
|
|
2306
2307
|
});
|
|
2307
2308
|
} catch (le) {
|
|
@@ -2313,7 +2314,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
|
|
|
2313
2314
|
}
|
|
2314
2315
|
});
|
|
2315
2316
|
}
|
|
2316
|
-
},
|
|
2317
|
+
}, S = async () => {
|
|
2317
2318
|
try {
|
|
2318
2319
|
r.value.forEach((u) => {
|
|
2319
2320
|
u.showCol = !0;
|
|
@@ -2326,7 +2327,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
|
|
|
2326
2327
|
message: "全选列保存信息失败!"
|
|
2327
2328
|
});
|
|
2328
2329
|
}
|
|
2329
|
-
},
|
|
2330
|
+
}, f = async () => {
|
|
2330
2331
|
try {
|
|
2331
2332
|
let u = r.value.filter((d) => !d.alwaysShow && d.value != "control" && d.value != "hidden");
|
|
2332
2333
|
u.forEach((d) => {
|
|
@@ -2346,7 +2347,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
|
|
|
2346
2347
|
cancelButtonText: "取消",
|
|
2347
2348
|
type: "warning"
|
|
2348
2349
|
}).then(() => {
|
|
2349
|
-
|
|
2350
|
+
ua(a.tuid).then((u) => {
|
|
2350
2351
|
window.location.reload();
|
|
2351
2352
|
}).catch((u) => {
|
|
2352
2353
|
console.error("复位操作出错:", u), et({
|
|
@@ -2356,7 +2357,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
|
|
|
2356
2357
|
});
|
|
2357
2358
|
});
|
|
2358
2359
|
};
|
|
2359
|
-
return
|
|
2360
|
+
return ct(async () => {
|
|
2360
2361
|
r.value = Object.entries(e.value).filter(([, u]) => u.visible !== !1).filter(([, u]) => u.type != "hidden").map(([u, d]) => ({
|
|
2361
2362
|
label: d.label,
|
|
2362
2363
|
value: u,
|
|
@@ -2364,15 +2365,15 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
|
|
|
2364
2365
|
showCol: d.showCol !== !1,
|
|
2365
2366
|
sort: d.sort || 0,
|
|
2366
2367
|
width: d == null ? void 0 : d.width
|
|
2367
|
-
})).sort((u, d) => u.sort - d.sort),
|
|
2368
|
+
})).sort((u, d) => u.sort - d.sort), c();
|
|
2368
2369
|
}), (u, d) => {
|
|
2369
2370
|
const $ = L("el-divider"), le = L("el-icon"), B = L("el-text"), G = L("el-checkbox");
|
|
2370
|
-
return p(), Y("div",
|
|
2371
|
+
return p(), Y("div", ca, [
|
|
2371
2372
|
X("div", va, [
|
|
2372
2373
|
X("div", pa, [
|
|
2373
|
-
X("a", { onClick:
|
|
2374
|
+
X("a", { onClick: S }, "全选"),
|
|
2374
2375
|
ee($, { direction: "vertical" }),
|
|
2375
|
-
X("a", { onClick:
|
|
2376
|
+
X("a", { onClick: f }, "全不选"),
|
|
2376
2377
|
ee($, { direction: "vertical" }),
|
|
2377
2378
|
X("a", { onClick: v }, "复位")
|
|
2378
2379
|
]),
|
|
@@ -2391,21 +2392,21 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
|
|
|
2391
2392
|
]),
|
|
2392
2393
|
X("div", null, [
|
|
2393
2394
|
X("div", ma, [
|
|
2394
|
-
(p(!0), Y(te, null, W(r.value, (
|
|
2395
|
-
modelValue:
|
|
2396
|
-
"onUpdate:modelValue": (ue) =>
|
|
2397
|
-
"data-id":
|
|
2398
|
-
class: Rt(["check-box-hover",
|
|
2399
|
-
onChange: (ue) => h(ue,
|
|
2395
|
+
(p(!0), Y(te, null, W(r.value, (D) => (p(), A(G, {
|
|
2396
|
+
modelValue: D.showCol,
|
|
2397
|
+
"onUpdate:modelValue": (ue) => D.showCol = ue,
|
|
2398
|
+
"data-id": D.value,
|
|
2399
|
+
class: Rt(["check-box-hover", D.value == "control" ? "filtered" : ""]),
|
|
2400
|
+
onChange: (ue) => h(ue, D.value),
|
|
2400
2401
|
style: { width: "125px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "2px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
2401
|
-
value:
|
|
2402
|
-
title:
|
|
2403
|
-
disabled:
|
|
2404
|
-
key:
|
|
2402
|
+
value: D.value,
|
|
2403
|
+
title: D.label,
|
|
2404
|
+
disabled: D.alwaysShow,
|
|
2405
|
+
key: D.value
|
|
2405
2406
|
}, {
|
|
2406
2407
|
default: _(() => [
|
|
2407
2408
|
X("span", {
|
|
2408
|
-
textContent: Ee(
|
|
2409
|
+
textContent: Ee(D.label),
|
|
2409
2410
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2410
2411
|
}, null, 8, ha)
|
|
2411
2412
|
]),
|
|
@@ -2416,7 +2417,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
|
|
|
2416
2417
|
]);
|
|
2417
2418
|
};
|
|
2418
2419
|
}
|
|
2419
|
-
}, ga = /* @__PURE__ */ at(ya, [["__scopeId", "data-v-
|
|
2420
|
+
}, ga = /* @__PURE__ */ at(ya, [["__scopeId", "data-v-428381ae"]]), ba = { class: "title" }, $a = { class: "content" }, wa = {
|
|
2420
2421
|
__name: "g-cell-toopTip",
|
|
2421
2422
|
props: {
|
|
2422
2423
|
content: {
|
|
@@ -2562,32 +2563,32 @@ function Ca(n) {
|
|
|
2562
2563
|
(function() {
|
|
2563
2564
|
var n = Ea, s = Ot.utf8, a = ka, t = Ot.bin, r = function(e, h) {
|
|
2564
2565
|
e.constructor == String ? h && h.encoding === "binary" ? e = t.stringToBytes(e) : e = s.stringToBytes(e) : a(e) ? e = Array.prototype.slice.call(e, 0) : !Array.isArray(e) && e.constructor !== Uint8Array && (e = e.toString());
|
|
2565
|
-
for (var
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
for (var le = r._ff, B = r._gg, G = r._hh,
|
|
2569
|
-
var ue =
|
|
2570
|
-
|
|
2566
|
+
for (var c = n.bytesToWords(e), S = e.length * 8, f = 1732584193, v = -271733879, u = -1732584194, d = 271733878, $ = 0; $ < c.length; $++)
|
|
2567
|
+
c[$] = (c[$] << 8 | c[$] >>> 24) & 16711935 | (c[$] << 24 | c[$] >>> 8) & 4278255360;
|
|
2568
|
+
c[S >>> 5] |= 128 << S % 32, c[(S + 64 >>> 9 << 4) + 14] = S;
|
|
2569
|
+
for (var le = r._ff, B = r._gg, G = r._hh, D = r._ii, $ = 0; $ < c.length; $ += 16) {
|
|
2570
|
+
var ue = f, fe = v, pe = u, ce = d;
|
|
2571
|
+
f = le(f, v, u, d, c[$ + 0], 7, -680876936), d = le(d, f, v, u, c[$ + 1], 12, -389564586), u = le(u, d, f, v, c[$ + 2], 17, 606105819), v = le(v, u, d, f, c[$ + 3], 22, -1044525330), f = le(f, v, u, d, c[$ + 4], 7, -176418897), d = le(d, f, v, u, c[$ + 5], 12, 1200080426), u = le(u, d, f, v, c[$ + 6], 17, -1473231341), v = le(v, u, d, f, c[$ + 7], 22, -45705983), f = le(f, v, u, d, c[$ + 8], 7, 1770035416), d = le(d, f, v, u, c[$ + 9], 12, -1958414417), u = le(u, d, f, v, c[$ + 10], 17, -42063), v = le(v, u, d, f, c[$ + 11], 22, -1990404162), f = le(f, v, u, d, c[$ + 12], 7, 1804603682), d = le(d, f, v, u, c[$ + 13], 12, -40341101), u = le(u, d, f, v, c[$ + 14], 17, -1502002290), v = le(v, u, d, f, c[$ + 15], 22, 1236535329), f = B(f, v, u, d, c[$ + 1], 5, -165796510), d = B(d, f, v, u, c[$ + 6], 9, -1069501632), u = B(u, d, f, v, c[$ + 11], 14, 643717713), v = B(v, u, d, f, c[$ + 0], 20, -373897302), f = B(f, v, u, d, c[$ + 5], 5, -701558691), d = B(d, f, v, u, c[$ + 10], 9, 38016083), u = B(u, d, f, v, c[$ + 15], 14, -660478335), v = B(v, u, d, f, c[$ + 4], 20, -405537848), f = B(f, v, u, d, c[$ + 9], 5, 568446438), d = B(d, f, v, u, c[$ + 14], 9, -1019803690), u = B(u, d, f, v, c[$ + 3], 14, -187363961), v = B(v, u, d, f, c[$ + 8], 20, 1163531501), f = B(f, v, u, d, c[$ + 13], 5, -1444681467), d = B(d, f, v, u, c[$ + 2], 9, -51403784), u = B(u, d, f, v, c[$ + 7], 14, 1735328473), v = B(v, u, d, f, c[$ + 12], 20, -1926607734), f = G(f, v, u, d, c[$ + 5], 4, -378558), d = G(d, f, v, u, c[$ + 8], 11, -2022574463), u = G(u, d, f, v, c[$ + 11], 16, 1839030562), v = G(v, u, d, f, c[$ + 14], 23, -35309556), f = G(f, v, u, d, c[$ + 1], 4, -1530992060), d = G(d, f, v, u, c[$ + 4], 11, 1272893353), u = G(u, d, f, v, c[$ + 7], 16, -155497632), v = G(v, u, d, f, c[$ + 10], 23, -1094730640), f = G(f, v, u, d, c[$ + 13], 4, 681279174), d = G(d, f, v, u, c[$ + 0], 11, -358537222), u = G(u, d, f, v, c[$ + 3], 16, -722521979), v = G(v, u, d, f, c[$ + 6], 23, 76029189), f = G(f, v, u, d, c[$ + 9], 4, -640364487), d = G(d, f, v, u, c[$ + 12], 11, -421815835), u = G(u, d, f, v, c[$ + 15], 16, 530742520), v = G(v, u, d, f, c[$ + 2], 23, -995338651), f = D(f, v, u, d, c[$ + 0], 6, -198630844), d = D(d, f, v, u, c[$ + 7], 10, 1126891415), u = D(u, d, f, v, c[$ + 14], 15, -1416354905), v = D(v, u, d, f, c[$ + 5], 21, -57434055), f = D(f, v, u, d, c[$ + 12], 6, 1700485571), d = D(d, f, v, u, c[$ + 3], 10, -1894986606), u = D(u, d, f, v, c[$ + 10], 15, -1051523), v = D(v, u, d, f, c[$ + 1], 21, -2054922799), f = D(f, v, u, d, c[$ + 8], 6, 1873313359), d = D(d, f, v, u, c[$ + 15], 10, -30611744), u = D(u, d, f, v, c[$ + 6], 15, -1560198380), v = D(v, u, d, f, c[$ + 13], 21, 1309151649), f = D(f, v, u, d, c[$ + 4], 6, -145523070), d = D(d, f, v, u, c[$ + 11], 10, -1120210379), u = D(u, d, f, v, c[$ + 2], 15, 718787259), v = D(v, u, d, f, c[$ + 9], 21, -343485551), f = f + ue >>> 0, v = v + fe >>> 0, u = u + pe >>> 0, d = d + ce >>> 0;
|
|
2571
2572
|
}
|
|
2572
|
-
return n.endian([
|
|
2573
|
+
return n.endian([f, v, u, d]);
|
|
2573
2574
|
};
|
|
2574
|
-
r._ff = function(e, h,
|
|
2575
|
-
var d = e + (h &
|
|
2575
|
+
r._ff = function(e, h, c, S, f, v, u) {
|
|
2576
|
+
var d = e + (h & c | ~h & S) + (f >>> 0) + u;
|
|
2576
2577
|
return (d << v | d >>> 32 - v) + h;
|
|
2577
|
-
}, r._gg = function(e, h,
|
|
2578
|
-
var d = e + (h &
|
|
2578
|
+
}, r._gg = function(e, h, c, S, f, v, u) {
|
|
2579
|
+
var d = e + (h & S | c & ~S) + (f >>> 0) + u;
|
|
2579
2580
|
return (d << v | d >>> 32 - v) + h;
|
|
2580
|
-
}, r._hh = function(e, h,
|
|
2581
|
-
var d = e + (h ^
|
|
2581
|
+
}, r._hh = function(e, h, c, S, f, v, u) {
|
|
2582
|
+
var d = e + (h ^ c ^ S) + (f >>> 0) + u;
|
|
2582
2583
|
return (d << v | d >>> 32 - v) + h;
|
|
2583
|
-
}, r._ii = function(e, h,
|
|
2584
|
-
var d = e + (
|
|
2584
|
+
}, r._ii = function(e, h, c, S, f, v, u) {
|
|
2585
|
+
var d = e + (c ^ (h | ~S)) + (f >>> 0) + u;
|
|
2585
2586
|
return (d << v | d >>> 32 - v) + h;
|
|
2586
2587
|
}, r._blocksize = 16, r._digestsize = 16, Qt.exports = function(e, h) {
|
|
2587
2588
|
if (e == null)
|
|
2588
2589
|
throw new Error("Illegal argument " + e);
|
|
2589
|
-
var
|
|
2590
|
-
return h && h.asBytes ?
|
|
2590
|
+
var c = n.wordsToBytes(r(e, h));
|
|
2591
|
+
return h && h.asBytes ? c : h && h.asString ? t.bytesToString(c) : n.bytesToHex(c);
|
|
2591
2592
|
};
|
|
2592
2593
|
})();
|
|
2593
2594
|
var Da = Qt.exports;
|
|
@@ -2617,8 +2618,8 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
2617
2618
|
], ["update:modelValue"]),
|
|
2618
2619
|
setup(n, { expose: s, emit: a }) {
|
|
2619
2620
|
var rt, Ie, He, ze, Pe, vt, pt;
|
|
2620
|
-
const t = re(""), r = a, e = lt(n, "modelValue"), h = qt("options"),
|
|
2621
|
-
|
|
2621
|
+
const t = re(""), r = a, e = lt(n, "modelValue"), h = qt("options"), c = re({}), S = re(null), f = re(null), v = Object.entries(e.value).filter(([l, o]) => (o == null ? void 0 : o.search) !== void 0).map(([l, o]) => [l, o.value]);
|
|
2622
|
+
c.value = Object.fromEntries(v);
|
|
2622
2623
|
const u = re(!1), d = [
|
|
2623
2624
|
"type",
|
|
2624
2625
|
"index",
|
|
@@ -2648,7 +2649,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
2648
2649
|
"filter-multiple",
|
|
2649
2650
|
"filter-method",
|
|
2650
2651
|
"filtered-value"
|
|
2651
|
-
], $ = re([]), le = At(), B = re({}), G = re([]),
|
|
2652
|
+
], $ = re([]), le = At(), B = re({}), G = re([]), D = re(null), ue = re(""), fe = re("/"), pe = re({
|
|
2652
2653
|
autoWatch: !1,
|
|
2653
2654
|
data: [],
|
|
2654
2655
|
border: !0,
|
|
@@ -2657,12 +2658,12 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
2657
2658
|
fit: !1,
|
|
2658
2659
|
type: "hidden",
|
|
2659
2660
|
load: async () => {
|
|
2660
|
-
e.value.table.page.pageSize = await
|
|
2661
|
+
e.value.table.page.pageSize = await ia(fe.value);
|
|
2661
2662
|
let { currentPage: l, pageSize: o } = e.value.table.page;
|
|
2662
2663
|
try {
|
|
2663
2664
|
r(
|
|
2664
2665
|
"load",
|
|
2665
|
-
{ currentPage: l, pageSize: o, ...
|
|
2666
|
+
{ currentPage: l, pageSize: o, ...c.value },
|
|
2666
2667
|
(m = [], b = 0, { fields: F = [], sums: U = {} } = {}) => {
|
|
2667
2668
|
var N;
|
|
2668
2669
|
if (!Array.isArray(m)) {
|
|
@@ -2673,16 +2674,16 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
2673
2674
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), et.error("数据加载失败,请检查数据格式。");
|
|
2674
2675
|
return;
|
|
2675
2676
|
}
|
|
2676
|
-
e.value.table.data = m, ((N = e.value.control) == null ? void 0 : N.add(
|
|
2677
|
+
e.value.table.data = m, ((N = e.value.control) == null ? void 0 : N.add(D.value, e).inline) === !0 && e.value.table.data.unshift(D.value), e.value.table.page.total = b, G.value = F, B.value = U, C(), ue.value = Math.random().toString(36).substring(2);
|
|
2677
2678
|
},
|
|
2678
|
-
|
|
2679
|
+
D.value
|
|
2679
2680
|
);
|
|
2680
2681
|
} catch (m) {
|
|
2681
2682
|
console.error("触发 load 事件时出现错误:", m), et.error("数据加载时出现错误,请稍后重试。");
|
|
2682
2683
|
}
|
|
2683
2684
|
},
|
|
2684
2685
|
onHeaderDragend: (l, o, m) => {
|
|
2685
|
-
|
|
2686
|
+
ra(fe.value, m.property, l);
|
|
2686
2687
|
},
|
|
2687
2688
|
onRowDblclick: (l, o, m) => {
|
|
2688
2689
|
e.value.table.dblclickType == "edit" ? g(l, o, m, e) : e.value.table.dblclickType == "view" ? V(l, o, m, e) : e.value.table.dblclickType == "delete" ? i(l, o, m, e) : e.value.table.dblclickType(l, o, m, e);
|
|
@@ -2705,7 +2706,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
2705
2706
|
e.value.table.page.currentPage = l, e.value.table.load();
|
|
2706
2707
|
},
|
|
2707
2708
|
onSizeChange: (l) => {
|
|
2708
|
-
|
|
2709
|
+
sa({ page: fe.value, size: l }).then(() => {
|
|
2709
2710
|
e.value.table.page.pageSize = l, e.value.table.load();
|
|
2710
2711
|
});
|
|
2711
2712
|
}
|
|
@@ -2722,7 +2723,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
2722
2723
|
le
|
|
2723
2724
|
// 继承父组件的属性
|
|
2724
2725
|
);
|
|
2725
|
-
const
|
|
2726
|
+
const ce = {
|
|
2726
2727
|
type: "control",
|
|
2727
2728
|
label: "操作",
|
|
2728
2729
|
align: "center",
|
|
@@ -2828,7 +2829,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
2828
2829
|
})
|
|
2829
2830
|
};
|
|
2830
2831
|
e.value.control = Fe(
|
|
2831
|
-
|
|
2832
|
+
ce,
|
|
2832
2833
|
h == null ? void 0 : h.control,
|
|
2833
2834
|
(He = e.value) == null ? void 0 : He.control
|
|
2834
2835
|
);
|
|
@@ -2837,11 +2838,11 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
2837
2838
|
var Ye, We, st;
|
|
2838
2839
|
if (!F || !U || N == null)
|
|
2839
2840
|
return console.warn(`merge${l.charAt(0).toUpperCase() + l.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
2840
|
-
const _e = ((Ye =
|
|
2841
|
+
const _e = ((Ye = ce[l]) == null ? void 0 : Ye.call(ce, F, U, N, ye)) || {}, Ae = ((st = (We = h == null ? void 0 : h.control) == null ? void 0 : We[l]) == null ? void 0 : st.call(We, F, U, N, ye)) || {}, Ue = (m == null ? void 0 : m(F, U, N, ye)) || {};
|
|
2841
2842
|
return Fe(_e, Ae, Ue) || {};
|
|
2842
2843
|
} : (F, U) => {
|
|
2843
2844
|
var Ae, Ue, Ye;
|
|
2844
|
-
const N = ((Ae =
|
|
2845
|
+
const N = ((Ae = ce[l]) == null ? void 0 : Ae.call(ce, F, U)) || {}, ye = ((Ye = (Ue = h == null ? void 0 : h.control) == null ? void 0 : Ue[l]) == null ? void 0 : Ye.call(Ue, F, U)) || {}, _e = (m == null ? void 0 : m(F, U)) || {};
|
|
2845
2846
|
return Fe(N, ye, _e) || {};
|
|
2846
2847
|
};
|
|
2847
2848
|
e.value.control[l] = b;
|
|
@@ -2851,7 +2852,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
2851
2852
|
var ye, _e, Ae, Ue, Ye, We;
|
|
2852
2853
|
if (!l || !o || m == null)
|
|
2853
2854
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2854
|
-
const F = ((ye =
|
|
2855
|
+
const F = ((ye = ce.dropdown) == null ? void 0 : ye.call(ce, l, o, m, b)) || {}, U = ((Ae = (_e = h == null ? void 0 : h.control) == null ? void 0 : _e.dropdown) == null ? void 0 : Ae.call(_e, l, o, m, b)) || {}, N = ((We = (Ye = (Ue = e.value) == null ? void 0 : Ue.control) == null ? void 0 : Ye.dropdown) == null ? void 0 : We.call(Ye, l, o, m, b)) || {};
|
|
2855
2856
|
return Fe(F, U, N) || {};
|
|
2856
2857
|
}, Me = {
|
|
2857
2858
|
type: "hidden",
|
|
@@ -2923,21 +2924,21 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
2923
2924
|
parseFloat(m)
|
|
2924
2925
|
)}">${lr(parseFloat(m))}</span>`), l.prefix && m && (m = `<span>${l.prefix}${m}</span>`), l.suffix && m && (m = `${m}<span>${l.suffix}</span>`), m;
|
|
2925
2926
|
}, Le = (l) => {
|
|
2926
|
-
|
|
2927
|
+
c.value = Object.fromEntries(v), e.value.table.load();
|
|
2927
2928
|
}, x = (l) => {
|
|
2928
|
-
|
|
2929
|
+
c.value = l, e.value.table.load();
|
|
2929
2930
|
}, w = async (l, o) => {
|
|
2930
2931
|
var m, b;
|
|
2931
2932
|
e.value.form.modalState = "add", t.value = "add";
|
|
2932
2933
|
try {
|
|
2933
|
-
if (!await ((m = e.value.control) == null ? void 0 : m.validate("add", { row:
|
|
2934
|
+
if (!await ((m = e.value.control) == null ? void 0 : m.validate("add", { row: D.value, m: o }))) return;
|
|
2934
2935
|
} catch (F) {
|
|
2935
2936
|
console.error("验证失败:", F);
|
|
2936
2937
|
return;
|
|
2937
2938
|
}
|
|
2938
|
-
(b = e.value.control.add(l, o)) != null && b.click ? e.value.control.add(l, o).click(
|
|
2939
|
-
e.value[F] && (e.value[F].value =
|
|
2940
|
-
}), u.value = !0, r("open", "add", { row:
|
|
2939
|
+
(b = e.value.control.add(l, o)) != null && b.click ? e.value.control.add(l, o).click(D.value, o) : e.value.control.add(l, o).inline === !0 ? (e.value.table.data.unshift(D.value), r("open", "row-add", { row: D.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add(l, o).mode, e.value.dialog.title = e.value.control.add(l, o).title || e.value.control.add(l, o).label || "新增", Object.keys(D.value).forEach((F) => {
|
|
2940
|
+
e.value[F] && (e.value[F].value = D.value[F]);
|
|
2941
|
+
}), u.value = !0, r("open", "add", { row: D.value, m: o }), _t());
|
|
2941
2942
|
}, g = async (l, o, m, b) => {
|
|
2942
2943
|
var F, U;
|
|
2943
2944
|
e.value.form.modalState = "edit", t.value = "edit";
|
|
@@ -2992,7 +2993,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
2992
2993
|
{ row: l, column: o, index: m, data: e.value.table.data },
|
|
2993
2994
|
(U = !0, N = !0) => {
|
|
2994
2995
|
U && e.value.table.load(), N && dt(() => {
|
|
2995
|
-
|
|
2996
|
+
D.value = Object.assign(
|
|
2996
2997
|
{},
|
|
2997
2998
|
Object.fromEntries(
|
|
2998
2999
|
Object.entries(
|
|
@@ -3005,13 +3006,13 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3005
3006
|
);
|
|
3006
3007
|
}, q = (l, o, m) => {
|
|
3007
3008
|
r("submit", e.value.form.modalState, l, o, (b) => {
|
|
3008
|
-
b && (m === 1 && (u.value = !1), Object.keys(
|
|
3009
|
-
l[F] =
|
|
3009
|
+
b && (m === 1 && (u.value = !1), Object.keys(D.value).forEach((F) => {
|
|
3010
|
+
l[F] = D.value[F];
|
|
3010
3011
|
}), o.table.load());
|
|
3011
3012
|
});
|
|
3012
3013
|
}, T = (l, o) => {
|
|
3013
|
-
Object.keys(
|
|
3014
|
-
l[m] =
|
|
3014
|
+
Object.keys(D.value).forEach((m) => {
|
|
3015
|
+
l[m] = D.value[m];
|
|
3015
3016
|
}), r("reset", l, o);
|
|
3016
3017
|
}, Q = (l, o, m) => {
|
|
3017
3018
|
var b;
|
|
@@ -3024,11 +3025,11 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3024
3025
|
size: o.control.download(l, o).size || 480,
|
|
3025
3026
|
width: o.control.download(l, o).width || 600,
|
|
3026
3027
|
slots: {
|
|
3027
|
-
default: () => we(
|
|
3028
|
+
default: () => we(ta, {
|
|
3028
3029
|
items: m,
|
|
3029
3030
|
commitText: o.control.download(l, o).excelLabel,
|
|
3030
3031
|
onExcel: (U, N) => {
|
|
3031
|
-
r("download", U,
|
|
3032
|
+
r("download", U, c.value, N), F();
|
|
3032
3033
|
}
|
|
3033
3034
|
})
|
|
3034
3035
|
}
|
|
@@ -3046,12 +3047,12 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3046
3047
|
slots: {
|
|
3047
3048
|
default: () => we(ga, {
|
|
3048
3049
|
modelValue: o,
|
|
3049
|
-
tuid:
|
|
3050
|
+
tuid: fe.value,
|
|
3050
3051
|
onSettingDragEnd: async () => {
|
|
3051
|
-
await xe(
|
|
3052
|
+
await xe(fe.value);
|
|
3052
3053
|
},
|
|
3053
3054
|
onSelectAll: async (b) => {
|
|
3054
|
-
await xe(
|
|
3055
|
+
await xe(fe.value);
|
|
3055
3056
|
}
|
|
3056
3057
|
})
|
|
3057
3058
|
}
|
|
@@ -3126,25 +3127,25 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3126
3127
|
return l.table ? (F = l.table(o, m, b)) != null && F.auth ? (U = l.table(o, m, b)) == null ? void 0 : U.auth(o, m, b) : !0 : !1;
|
|
3127
3128
|
}, Oe = () => {
|
|
3128
3129
|
if (e.value.dialog.mode == "drawer")
|
|
3129
|
-
|
|
3130
|
+
f.value.handleClose();
|
|
3130
3131
|
else if (e.value.dialog.mode == "dialog")
|
|
3131
3132
|
try {
|
|
3132
|
-
|
|
3133
|
+
S.value.handleClose();
|
|
3133
3134
|
} catch {
|
|
3134
3135
|
u.value = !1;
|
|
3135
3136
|
}
|
|
3136
3137
|
else
|
|
3137
3138
|
u.value = !1;
|
|
3138
3139
|
};
|
|
3139
|
-
|
|
3140
|
+
fl(() => {
|
|
3140
3141
|
e.value.table.autoWatch && e.value.table.load();
|
|
3141
3142
|
});
|
|
3142
3143
|
const xe = async () => {
|
|
3143
3144
|
try {
|
|
3144
3145
|
const [l, o, m] = await Promise.all([
|
|
3145
|
-
|
|
3146
|
-
fa(
|
|
3147
|
-
|
|
3146
|
+
oa(fe.value),
|
|
3147
|
+
fa(fe.value),
|
|
3148
|
+
na(fe.value)
|
|
3148
3149
|
]);
|
|
3149
3150
|
l && Array.isArray(l) && l.forEach((b) => {
|
|
3150
3151
|
const F = e.value[b.key];
|
|
@@ -3162,9 +3163,9 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3162
3163
|
console.error("加载表格信息时出错:", l);
|
|
3163
3164
|
}
|
|
3164
3165
|
}, Ne = () => Sa(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
|
|
3165
|
-
return
|
|
3166
|
-
|
|
3167
|
-
}),
|
|
3166
|
+
return cl(() => {
|
|
3167
|
+
fe.value = Ne();
|
|
3168
|
+
}), ct(async () => {
|
|
3168
3169
|
$.value = Object.entries(e.value).filter(
|
|
3169
3170
|
([l, o]) => o.type !== "hidden" && o.type !== "control" && o.visible !== !1
|
|
3170
3171
|
).map(([l, o]) => ({
|
|
@@ -3177,22 +3178,22 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3177
3178
|
const l = Object.entries(e.value).filter(
|
|
3178
3179
|
([o, m]) => m.type !== "control" && m.editor !== !1 && m.type !== "hidden"
|
|
3179
3180
|
);
|
|
3180
|
-
|
|
3181
|
+
D.value = Object.fromEntries(
|
|
3181
3182
|
l.map(([o, m]) => [o, m.value])
|
|
3182
3183
|
), await xe();
|
|
3183
3184
|
} catch (l) {
|
|
3184
3185
|
console.error("Error during component initialization:", l);
|
|
3185
3186
|
}
|
|
3186
3187
|
e.value.table.autoWatch || e.value.table.load();
|
|
3187
|
-
}), s({ addRow: w, editRow: g, deleteRow: i, readForm: V, saveRowData: E, closeDialog: Oe }), (l, o) => {
|
|
3188
|
-
var We, st, mt,
|
|
3188
|
+
}), s({ addRow: w, editRow: g, deleteRow: i, readForm: V, saveRowData: E, closeDialog: Oe, formData: D.value }), (l, o) => {
|
|
3189
|
+
var We, st, mt, ft, ht;
|
|
3189
3190
|
const m = L("el-icon"), b = L("el-dialog"), F = L("el-drawer"), U = L("el-button-group"), N = L("el-dropdown-item"), ye = L("el-dropdown-menu"), _e = L("el-dropdown"), Ae = L("el-table-column"), Ue = L("el-table"), Ye = L("el-pagination");
|
|
3190
3191
|
return p(), Y(te, null, [
|
|
3191
3192
|
e.value.dialog.mode == "dialog" && u.value ? (p(), Y("div", xa, [
|
|
3192
3193
|
ee(b, O(
|
|
3193
3194
|
{
|
|
3194
3195
|
ref_key: "dialogRef",
|
|
3195
|
-
ref:
|
|
3196
|
+
ref: S,
|
|
3196
3197
|
id: "dialogRef",
|
|
3197
3198
|
modelValue: u.value,
|
|
3198
3199
|
"onUpdate:modelValue": o[3] || (o[3] = (j) => u.value = j),
|
|
@@ -3273,7 +3274,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3273
3274
|
e.value.dialog.mode == "drawer" && u.value ? (p(), Y("div", qa, [
|
|
3274
3275
|
ee(F, O({
|
|
3275
3276
|
ref_key: "drawerRef",
|
|
3276
|
-
ref:
|
|
3277
|
+
ref: f,
|
|
3277
3278
|
modelValue: u.value,
|
|
3278
3279
|
"onUpdate:modelValue": o[5] || (o[5] = (j) => u.value = j)
|
|
3279
3280
|
}, P(je)(e.value.dialog, (j) => !["width"].includes(j))), {
|
|
@@ -3313,14 +3314,14 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3313
3314
|
ee(Wl, {
|
|
3314
3315
|
modelValue: e.value,
|
|
3315
3316
|
"onUpdate:modelValue": o[6] || (o[6] = (j) => e.value = j),
|
|
3316
|
-
info:
|
|
3317
|
-
"onUpdate:info": o[7] || (o[7] = (j) =>
|
|
3317
|
+
info: c.value,
|
|
3318
|
+
"onUpdate:info": o[7] || (o[7] = (j) => c.value = j),
|
|
3318
3319
|
onQuery: x,
|
|
3319
3320
|
onReset: Le
|
|
3320
3321
|
}, be({
|
|
3321
3322
|
"q-btns": _(() => [
|
|
3322
3323
|
k(l.$slots, "q-btns", {}, () => [
|
|
3323
|
-
(p(!0), Y(te, null, W(Se(["add", "download", "setting"],
|
|
3324
|
+
(p(!0), Y(te, null, W(Se(["add", "download", "setting"], D.value, e.value), (j, de) => (p(), Y(te, null, [
|
|
3324
3325
|
de == "default" ? (p(!0), Y(te, { key: 0 }, W(j, (M) => (p(), Y(te, null, [
|
|
3325
3326
|
k(l.$slots, M.name + "-left", {}, void 0, !0),
|
|
3326
3327
|
(M.name === "control-add" ? M.attr.auth() && M.attr.inline === !1 : M.attr.auth()) ? k(l.$slots, M.name, { key: 0 }, () => [
|
|
@@ -3329,7 +3330,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3329
3330
|
title: M.label,
|
|
3330
3331
|
ref_for: !0
|
|
3331
3332
|
}, M.attr, {
|
|
3332
|
-
onClick: (Z) => M.func(
|
|
3333
|
+
onClick: (Z) => M.func(D.value, e.value, $.value)
|
|
3333
3334
|
}), {
|
|
3334
3335
|
default: _(() => [
|
|
3335
3336
|
Ve(Ee(M.label), 1)
|
|
@@ -3340,7 +3341,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3340
3341
|
title: M.label,
|
|
3341
3342
|
ref_for: !0
|
|
3342
3343
|
}, M.attr, {
|
|
3343
|
-
onClick: (Z) => M.func(
|
|
3344
|
+
onClick: (Z) => M.func(D.value, e.value, $.value)
|
|
3344
3345
|
}), null, 16, ["title", "onClick"]))
|
|
3345
3346
|
], !0) : $e("", !0),
|
|
3346
3347
|
k(l.$slots, M.name + "-right", {}, void 0, !0)
|
|
@@ -3354,7 +3355,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3354
3355
|
title: M.label,
|
|
3355
3356
|
ref_for: !0
|
|
3356
3357
|
}, M.attr, {
|
|
3357
|
-
onClick: (Z) => M.func(
|
|
3358
|
+
onClick: (Z) => M.func(D.value, e.value, $.value)
|
|
3358
3359
|
}), {
|
|
3359
3360
|
default: _(() => [
|
|
3360
3361
|
Ve(Ee(M.label), 1)
|
|
@@ -3365,7 +3366,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3365
3366
|
title: M.label,
|
|
3366
3367
|
ref_for: !0
|
|
3367
3368
|
}, M.attr, {
|
|
3368
|
-
onClick: (Z) => M.func(
|
|
3369
|
+
onClick: (Z) => M.func(D.value, e.value, $.value)
|
|
3369
3370
|
}), null, 16, ["title", "onClick"]))
|
|
3370
3371
|
], !0) : $e("", !0),
|
|
3371
3372
|
k(l.$slots, M.name + "-right", {}, void 0, !0)
|
|
@@ -3398,7 +3399,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3398
3399
|
"summary-method": (j) => e.value.table["summary-method"](j, { fields: G.value, sums: B.value }),
|
|
3399
3400
|
onSortChange: o[8] || (o[8] = (j) => {
|
|
3400
3401
|
var de, M;
|
|
3401
|
-
e.value.table.onSortChange(j,
|
|
3402
|
+
e.value.table.onSortChange(j, c.value), ((de = j == null ? void 0 : j.column) == null ? void 0 : de.sortable) === "custom" && ((M = e.value.table) == null || M.load());
|
|
3402
3403
|
})
|
|
3403
3404
|
}), {
|
|
3404
3405
|
append: _(() => [
|
|
@@ -3681,7 +3682,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3681
3682
|
]),
|
|
3682
3683
|
_: 3
|
|
3683
3684
|
}, 16, ["summary-method"]),
|
|
3684
|
-
(ht = (
|
|
3685
|
+
(ht = (ft = (mt = e.value) == null ? void 0 : mt.table) == null ? void 0 : ft.page) != null && ht.hidden ? $e("", !0) : k(l.$slots, "page", { key: 0 }, () => [
|
|
3685
3686
|
ee(Ye, O({
|
|
3686
3687
|
"page-size": e.value.table.page.pageSize,
|
|
3687
3688
|
"onUpdate:pageSize": o[9] || (o[9] = (j) => e.value.table.page.pageSize = j),
|
|
@@ -3699,7 +3700,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3699
3700
|
], 64);
|
|
3700
3701
|
};
|
|
3701
3702
|
}
|
|
3702
|
-
}), Ha = /* @__PURE__ */ at(La, [["__scopeId", "data-v-
|
|
3703
|
+
}), Ha = /* @__PURE__ */ at(La, [["__scopeId", "data-v-a16f5918"]]), za = { class: "g-tree-table" }, Pa = { class: "g-tree-container" }, ja = { class: "g-tree-table-container" }, Na = /* @__PURE__ */ Object.assign({
|
|
3703
3704
|
name: "g-tree-table",
|
|
3704
3705
|
inheritAttrs: !1
|
|
3705
3706
|
}, {
|
|
@@ -3713,29 +3714,29 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3713
3714
|
var $, le, B, G;
|
|
3714
3715
|
const a = s, t = lt(n, "modelValue"), r = At(), e = re(
|
|
3715
3716
|
typeof (($ = r == null ? void 0 : r.tree) == null ? void 0 : $.width) == "number" ? `${r.tree.width}px` : ((le = r == null ? void 0 : r.tree) == null ? void 0 : le.width) || "180px"
|
|
3716
|
-
), h = re(((B = r == null ? void 0 : r.tree) == null ? void 0 : B.search) === void 0 ? !0 : (G = r == null ? void 0 : r.tree) == null ? void 0 : G.search),
|
|
3717
|
-
var pe,
|
|
3718
|
-
if (!
|
|
3719
|
-
const
|
|
3720
|
-
return ue[
|
|
3721
|
-
}, u = (
|
|
3722
|
-
a("load",
|
|
3723
|
-
}, d = (
|
|
3724
|
-
|
|
3717
|
+
), h = re(((B = r == null ? void 0 : r.tree) == null ? void 0 : B.search) === void 0 ? !0 : (G = r == null ? void 0 : r.tree) == null ? void 0 : G.search), c = re({}), S = re(""), f = re(null), v = (D, ue) => {
|
|
3718
|
+
var pe, ce;
|
|
3719
|
+
if (!D) return !0;
|
|
3720
|
+
const fe = ((ce = (pe = r.tree) == null ? void 0 : pe.props) == null ? void 0 : ce.label) || "label";
|
|
3721
|
+
return ue[fe].includes(D);
|
|
3722
|
+
}, u = (D, ue) => {
|
|
3723
|
+
a("load", c.value, D, ue);
|
|
3724
|
+
}, d = (D) => {
|
|
3725
|
+
c.value = D, t.value.table.load();
|
|
3725
3726
|
};
|
|
3726
|
-
return vl(
|
|
3727
|
-
|
|
3728
|
-
}), (
|
|
3729
|
-
const
|
|
3727
|
+
return vl(S, (D) => {
|
|
3728
|
+
f.value.filter(D);
|
|
3729
|
+
}), (D, ue) => {
|
|
3730
|
+
const fe = L("el-input"), pe = L("el-tree"), ce = L("g-table");
|
|
3730
3731
|
return p(), Y("div", za, [
|
|
3731
3732
|
X("div", {
|
|
3732
3733
|
class: "g-tree-left",
|
|
3733
3734
|
style: qe({ width: e.value })
|
|
3734
3735
|
}, [
|
|
3735
|
-
h.value ? (p(), A(
|
|
3736
|
+
h.value ? (p(), A(fe, {
|
|
3736
3737
|
key: 0,
|
|
3737
|
-
modelValue:
|
|
3738
|
-
"onUpdate:modelValue": ue[0] || (ue[0] = (ie) =>
|
|
3738
|
+
modelValue: S.value,
|
|
3739
|
+
"onUpdate:modelValue": ue[0] || (ue[0] = (ie) => S.value = ie),
|
|
3739
3740
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
3740
3741
|
placeholder: "输入节点查询",
|
|
3741
3742
|
clearable: ""
|
|
@@ -3746,11 +3747,11 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3746
3747
|
"filter-node-method": v,
|
|
3747
3748
|
"expand-on-click-node": !1,
|
|
3748
3749
|
ref_key: "treeRef",
|
|
3749
|
-
ref:
|
|
3750
|
+
ref: f,
|
|
3750
3751
|
onNodeClick: d
|
|
3751
|
-
},
|
|
3752
|
+
}, D.$attrs.tree), be({
|
|
3752
3753
|
default: _(({ node: ie, data: ge }) => [
|
|
3753
|
-
k(
|
|
3754
|
+
k(D.$slots, "tree", {
|
|
3754
3755
|
node: ie,
|
|
3755
3756
|
data: ge
|
|
3756
3757
|
}, () => [
|
|
@@ -3759,24 +3760,24 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3759
3760
|
]),
|
|
3760
3761
|
_: 2
|
|
3761
3762
|
}, [
|
|
3762
|
-
W(
|
|
3763
|
+
W(D.$slots, (ie, ge, Me) => ({
|
|
3763
3764
|
name: ge,
|
|
3764
3765
|
fn: _((De) => [
|
|
3765
|
-
k(
|
|
3766
|
+
k(D.$slots, ge, { data: De }, void 0, !0)
|
|
3766
3767
|
])
|
|
3767
3768
|
}))
|
|
3768
3769
|
]), 1040, ["style"])
|
|
3769
3770
|
])
|
|
3770
3771
|
], 4),
|
|
3771
3772
|
X("div", ja, [
|
|
3772
|
-
ee(
|
|
3773
|
+
ee(ce, O({
|
|
3773
3774
|
modelValue: t.value,
|
|
3774
3775
|
"onUpdate:modelValue": ue[1] || (ue[1] = (ie) => t.value = ie)
|
|
3775
|
-
},
|
|
3776
|
-
W(
|
|
3776
|
+
}, D.$attrs, { onLoad: u }), be({ _: 2 }, [
|
|
3777
|
+
W(D.$slots, (ie, ge, Me) => ({
|
|
3777
3778
|
name: ge,
|
|
3778
3779
|
fn: _((De) => [
|
|
3779
|
-
k(
|
|
3780
|
+
k(D.$slots, ge, { data: De }, void 0, !0)
|
|
3780
3781
|
])
|
|
3781
3782
|
}))
|
|
3782
3783
|
]), 1040, ["modelValue"])
|
|
@@ -3836,7 +3837,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
|
|
|
3836
3837
|
}
|
|
3837
3838
|
}), Ja = /* @__PURE__ */ at(Za, [["__scopeId", "data-v-c0ac6b77"]]), Ka = Object.freeze({}), Kt = [Ha, xt, Wa, Ja];
|
|
3838
3839
|
let Tt = {};
|
|
3839
|
-
const
|
|
3840
|
+
const fr = {
|
|
3840
3841
|
install: (n, s = {}) => {
|
|
3841
3842
|
Tt = Object.freeze({ ...Ka, ...s }), Kt.forEach((a) => {
|
|
3842
3843
|
n.component(a.name, a);
|
|
@@ -3858,7 +3859,7 @@ const cr = {
|
|
|
3858
3859
|
h.unmount(), a.remove();
|
|
3859
3860
|
}, 300);
|
|
3860
3861
|
}, () => {
|
|
3861
|
-
var
|
|
3862
|
+
var c, S, f;
|
|
3862
3863
|
return we(r, {
|
|
3863
3864
|
modelValue: e.value,
|
|
3864
3865
|
"onUpdate:modelValue": (v) => e.value = v,
|
|
@@ -3870,9 +3871,9 @@ const cr = {
|
|
|
3870
3871
|
"close-on-click-modal": !1,
|
|
3871
3872
|
...n
|
|
3872
3873
|
}, {
|
|
3873
|
-
default: (
|
|
3874
|
-
header: (
|
|
3875
|
-
footer: (
|
|
3874
|
+
default: (c = n.slots) == null ? void 0 : c.default,
|
|
3875
|
+
header: (S = n.slots) == null ? void 0 : S.header,
|
|
3876
|
+
footer: (f = n.slots) == null ? void 0 : f.footer
|
|
3876
3877
|
});
|
|
3877
3878
|
};
|
|
3878
3879
|
},
|
|
@@ -3880,8 +3881,8 @@ const cr = {
|
|
|
3880
3881
|
_t();
|
|
3881
3882
|
}
|
|
3882
3883
|
});
|
|
3883
|
-
return Kt.forEach((
|
|
3884
|
-
h.component(
|
|
3884
|
+
return Kt.forEach((c) => {
|
|
3885
|
+
h.component(c.name, c);
|
|
3885
3886
|
}), h.provide("options", Tt), h.use(ll, { locale: xl }), document.body.appendChild(a), h.mount(a), t;
|
|
3886
3887
|
};
|
|
3887
3888
|
function el(n, s = window.innerWidth) {
|
|
@@ -3900,13 +3901,13 @@ function el(n, s = window.innerWidth) {
|
|
|
3900
3901
|
return s * parseFloat(n) / 100;
|
|
3901
3902
|
}
|
|
3902
3903
|
if (n.startsWith("calc(") && n.endsWith(")")) {
|
|
3903
|
-
let e = function(
|
|
3904
|
-
if (/[0-9+\-*/().\s]+$/.test(
|
|
3905
|
-
return new Function("return " +
|
|
3904
|
+
let e = function(c) {
|
|
3905
|
+
if (/[0-9+\-*/().\s]+$/.test(c))
|
|
3906
|
+
return new Function("return " + c)();
|
|
3906
3907
|
throw new Error("Invalid calc expression");
|
|
3907
3908
|
};
|
|
3908
3909
|
const r = n.slice(5, -1).trim();
|
|
3909
|
-
return e(r.replace(/([0-9.]+)([a-z%]+)/g, (
|
|
3910
|
+
return e(r.replace(/([0-9.]+)([a-z%]+)/g, (c, S, f) => el(S + f, s)));
|
|
3910
3911
|
}
|
|
3911
3912
|
throw new Error("Unsupported unit in value: " + n);
|
|
3912
3913
|
}
|
|
@@ -3946,10 +3947,10 @@ function Vt(n) {
|
|
|
3946
3947
|
e += (a[Math.floor(n * 10 * Math.pow(10, h)) % 10] + s[h]).replace(/零./, "");
|
|
3947
3948
|
e = e || "整", n = Math.floor(n);
|
|
3948
3949
|
for (let h = 0; h < t[0].length && n > 0; h++) {
|
|
3949
|
-
let
|
|
3950
|
-
for (let
|
|
3951
|
-
|
|
3952
|
-
e =
|
|
3950
|
+
let c = "";
|
|
3951
|
+
for (let S = 0; S < t[1].length && n > 0; S++)
|
|
3952
|
+
c = a[n % 10] + t[1][S] + c, n = Math.floor(n / 10);
|
|
3953
|
+
e = c.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][h] + e;
|
|
3953
3954
|
}
|
|
3954
3955
|
return r + e.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
3955
3956
|
}
|
|
@@ -4017,22 +4018,22 @@ const Ce = {
|
|
|
4017
4018
|
});
|
|
4018
4019
|
}, or = (n, s) => {
|
|
4019
4020
|
let a = !1, t, r, e, h;
|
|
4020
|
-
const
|
|
4021
|
-
v.preventDefault(), a = !0, t = v.clientX, r = v.clientY, e = parseInt(document.defaultView.getComputedStyle(n).width), h = parseInt(document.defaultView.getComputedStyle(n).height), document.addEventListener("mousemove",
|
|
4022
|
-
},
|
|
4021
|
+
const c = (v) => {
|
|
4022
|
+
v.preventDefault(), a = !0, t = v.clientX, r = v.clientY, e = parseInt(document.defaultView.getComputedStyle(n).width), h = parseInt(document.defaultView.getComputedStyle(n).height), document.addEventListener("mousemove", S), document.addEventListener("mouseup", f);
|
|
4023
|
+
}, S = (v) => {
|
|
4023
4024
|
if (!a) return;
|
|
4024
4025
|
const u = Math.max(300, e + v.clientX - t), d = Math.max(200, h + v.clientY - r);
|
|
4025
4026
|
n.style.width = `${u}px`, n.style.height = `${d}px`;
|
|
4026
|
-
},
|
|
4027
|
-
a = !1, document.removeEventListener("mousemove",
|
|
4027
|
+
}, f = () => {
|
|
4028
|
+
a = !1, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", f);
|
|
4028
4029
|
};
|
|
4029
|
-
s.addEventListener("mousedown",
|
|
4030
|
+
s.addEventListener("mousedown", c);
|
|
4030
4031
|
};
|
|
4031
4032
|
export {
|
|
4032
4033
|
Ce as CT,
|
|
4033
4034
|
_t as bindResize,
|
|
4034
4035
|
el as convertToPx,
|
|
4035
|
-
|
|
4036
|
+
fr as default,
|
|
4036
4037
|
je as filterObject,
|
|
4037
4038
|
tr as findTreeLabelByValue,
|
|
4038
4039
|
lr as formatAmount,
|