vue-2024-ui 0.2.106 → 0.2.107
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 +384 -384
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ql, { dayjs as Al, ElForm as Dt, ElButtonGroup as It, ElButton as Ne, ElPopover as Lt, ElIcon as Ht, ElMessage as ft, ElMessageBox as pl } from "element-plus";
|
|
2
|
-
import { ref as re, useModel as ot, nextTick as rt, onMounted as
|
|
2
|
+
import { ref as re, useModel as ot, nextTick as rt, onMounted as xt, computed as Be, resolveComponent as H, openBlock as m, createElementBlock as z, Fragment as se, createElementVNode as K, createBlock as D, createCommentVNode as ke, normalizeStyle as Ue, unref as F, mergeProps as Y, withCtx as $, renderSlot as C, renderList as W, createTextVNode as Le, toDisplayString as Ie, createSlots as $e, createVNode as de, normalizeProps as qt, resolveDynamicComponent as Ze, guardReactiveProps as ml, mergeModels as st, useSlots as hl, inject as jt, withModifiers as yt, Transition as Yl, withDirectives as Fl, vShow as jl, h as Se, useAttrs as zt, onUnmounted as zl, onBeforeUnmount as Ul, normalizeClass as yl, watchEffect as Ll, onBeforeMount as Hl, watch as gl, createApp as Rl } from "vue";
|
|
3
3
|
import { Plus as bl, ZoomIn as Bl, Delete as Wt, Search as Pl, Refresh as Gt, More as Nl, CircleClose as Wl, CircleCheckFilled as Gl, CircleCheck as Rt, Minus as Xl, Close as Ql, Switch as wl, FullScreen as Zl, InfoFilled as $l, Download as kl, DocumentCopy as Jl, Setting as Kl, CirclePlus as ea, Edit as _l, View as ta, ArrowUp as la, ArrowDown as aa } from "@element-plus/icons-vue";
|
|
4
|
-
import
|
|
4
|
+
import xl from "sortablejs";
|
|
5
5
|
import { Dexie as ra } from "dexie";
|
|
6
6
|
var na = {
|
|
7
7
|
name: "zh-cn",
|
|
@@ -179,7 +179,7 @@ var na = {
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
}, oa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
182
|
-
function
|
|
182
|
+
function Cl(n) {
|
|
183
183
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
184
184
|
}
|
|
185
185
|
var Ml = { exports: {} };
|
|
@@ -187,7 +187,7 @@ var Ml = { exports: {} };
|
|
|
187
187
|
(function(e, l) {
|
|
188
188
|
n.exports = l();
|
|
189
189
|
})(oa, function() {
|
|
190
|
-
var e = 1e3, l = 6e4, s = 36e5, o = "millisecond", t = "second", f = "minute",
|
|
190
|
+
var e = 1e3, l = 6e4, s = 36e5, o = "millisecond", t = "second", f = "minute", T = "hour", v = "day", h = "week", u = "month", r = "quarter", c = "year", q = "date", U = "Invalid Date", V = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|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, Q = { 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(B) {
|
|
191
191
|
var A = ["th", "st", "nd", "rd"], y = B % 100;
|
|
192
192
|
return "[" + B + (A[(y - 20) % 10] || A[y] || A[0]) + "]";
|
|
193
193
|
} }, G = function(B, A, y) {
|
|
@@ -198,26 +198,26 @@ var Ml = { exports: {} };
|
|
|
198
198
|
return (A <= 0 ? "+" : "-") + G(_, 2, "0") + ":" + G(w, 2, "0");
|
|
199
199
|
}, m: function B(A, y) {
|
|
200
200
|
if (A.date() < y.date()) return -B(y, A);
|
|
201
|
-
var _ = 12 * (y.year() - A.year()) + (y.month() - A.month()), w = A.clone().add(_, u), p = y - w < 0,
|
|
202
|
-
return +(-(_ + (y - w) / (p ? w -
|
|
201
|
+
var _ = 12 * (y.year() - A.year()) + (y.month() - A.month()), w = A.clone().add(_, u), p = y - w < 0, S = A.clone().add(_ + (p ? -1 : 1), u);
|
|
202
|
+
return +(-(_ + (y - w) / (p ? w - S : S - w)) || 0);
|
|
203
203
|
}, a: function(B) {
|
|
204
204
|
return B < 0 ? Math.ceil(B) || 0 : Math.floor(B);
|
|
205
205
|
}, p: function(B) {
|
|
206
|
-
return { M: u, y: c, w: h, d: v, D: q, h:
|
|
206
|
+
return { M: u, y: c, w: h, d: v, D: q, h: T, m: f, s: t, ms: o, Q: r }[B] || String(B || "").toLowerCase().replace(/s$/, "");
|
|
207
207
|
}, u: function(B) {
|
|
208
208
|
return B === void 0;
|
|
209
209
|
} }, R = "en", J = {};
|
|
210
210
|
J[R] = Q;
|
|
211
211
|
var fe = "$isDayjsObject", Te = function(B) {
|
|
212
|
-
return B instanceof
|
|
212
|
+
return B instanceof Ce || !(!B || !B[fe]);
|
|
213
213
|
}, Ve = function B(A, y, _) {
|
|
214
214
|
var w;
|
|
215
215
|
if (!A) return R;
|
|
216
216
|
if (typeof A == "string") {
|
|
217
217
|
var p = A.toLowerCase();
|
|
218
218
|
J[p] && (w = p), y && (J[p] = y, w = p);
|
|
219
|
-
var
|
|
220
|
-
if (!w &&
|
|
219
|
+
var S = A.split("-");
|
|
220
|
+
if (!w && S.length > 1) return B(S[0]);
|
|
221
221
|
} else {
|
|
222
222
|
var M = A.name;
|
|
223
223
|
J[M] = A, w = M;
|
|
@@ -226,12 +226,12 @@ var Ml = { exports: {} };
|
|
|
226
226
|
}, ve = function(B, A) {
|
|
227
227
|
if (Te(B)) return B.clone();
|
|
228
228
|
var y = typeof A == "object" ? A : {};
|
|
229
|
-
return y.date = B, y.args = arguments, new
|
|
229
|
+
return y.date = B, y.args = arguments, new Ce(y);
|
|
230
230
|
}, L = le;
|
|
231
231
|
L.l = Ve, L.i = Te, L.w = function(B, A) {
|
|
232
232
|
return ve(B, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
|
|
233
233
|
};
|
|
234
|
-
var
|
|
234
|
+
var Ce = function() {
|
|
235
235
|
function B(y) {
|
|
236
236
|
this.$L = Ve(y.locale, null, !0), this.parse(y), this.$x = this.$x || y.x || {}, this[fe] = !0;
|
|
237
237
|
}
|
|
@@ -243,10 +243,10 @@ var Ml = { exports: {} };
|
|
|
243
243
|
if (L.u(w)) return /* @__PURE__ */ new Date();
|
|
244
244
|
if (w instanceof Date) return new Date(w);
|
|
245
245
|
if (typeof w == "string" && !/Z$/i.test(w)) {
|
|
246
|
-
var
|
|
247
|
-
if (
|
|
248
|
-
var M =
|
|
249
|
-
return p ? new Date(Date.UTC(
|
|
246
|
+
var S = w.match(V);
|
|
247
|
+
if (S) {
|
|
248
|
+
var M = S[2] - 1 || 0, I = (S[7] || "0").substring(0, 3);
|
|
249
|
+
return p ? new Date(Date.UTC(S[1], M, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, I)) : new Date(S[1], M, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, I);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
return new Date(w);
|
|
@@ -272,13 +272,13 @@ var Ml = { exports: {} };
|
|
|
272
272
|
}, A.valueOf = function() {
|
|
273
273
|
return this.$d.getTime();
|
|
274
274
|
}, A.startOf = function(y, _) {
|
|
275
|
-
var w = this, p = !!L.u(_) || _,
|
|
275
|
+
var w = this, p = !!L.u(_) || _, S = L.p(y), M = function(Fe, be) {
|
|
276
276
|
var ie = L.w(w.$u ? Date.UTC(w.$y, be, Fe) : new Date(w.$y, be, Fe), w);
|
|
277
277
|
return p ? ie : ie.endOf(v);
|
|
278
278
|
}, I = function(Fe, be) {
|
|
279
279
|
return L.w(w.toDate()[Fe].apply(w.toDate("s"), (p ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(be)), w);
|
|
280
280
|
}, ee = this.$W, ae = this.$M, _e = this.$D, Ye = "set" + (this.$u ? "UTC" : "");
|
|
281
|
-
switch (
|
|
281
|
+
switch (S) {
|
|
282
282
|
case c:
|
|
283
283
|
return p ? M(1, 0) : M(31, 11);
|
|
284
284
|
case u:
|
|
@@ -289,7 +289,7 @@ var Ml = { exports: {} };
|
|
|
289
289
|
case v:
|
|
290
290
|
case q:
|
|
291
291
|
return I(Ye + "Hours", 0);
|
|
292
|
-
case
|
|
292
|
+
case T:
|
|
293
293
|
return I(Ye + "Minutes", 1);
|
|
294
294
|
case f:
|
|
295
295
|
return I(Ye + "Seconds", 2);
|
|
@@ -301,7 +301,7 @@ var Ml = { exports: {} };
|
|
|
301
301
|
}, A.endOf = function(y) {
|
|
302
302
|
return this.startOf(y, !1);
|
|
303
303
|
}, A.$set = function(y, _) {
|
|
304
|
-
var w, p = L.p(y),
|
|
304
|
+
var w, p = L.p(y), S = "set" + (this.$u ? "UTC" : ""), M = (w = {}, w[v] = S + "Date", w[q] = S + "Date", w[u] = S + "Month", w[c] = S + "FullYear", w[T] = S + "Hours", w[f] = S + "Minutes", w[t] = S + "Seconds", w[o] = S + "Milliseconds", w)[p], I = p === v ? this.$D + (_ - this.$W) : _;
|
|
305
305
|
if (p === u || p === c) {
|
|
306
306
|
var ee = this.clone().set(q, 1);
|
|
307
307
|
ee.$d[M](I), ee.init(), this.$d = ee.set(q, Math.min(this.$D, ee.daysInMonth())).$d;
|
|
@@ -314,22 +314,22 @@ var Ml = { exports: {} };
|
|
|
314
314
|
}, A.add = function(y, _) {
|
|
315
315
|
var w, p = this;
|
|
316
316
|
y = Number(y);
|
|
317
|
-
var
|
|
317
|
+
var S = L.p(_), M = function(ae) {
|
|
318
318
|
var _e = ve(p);
|
|
319
319
|
return L.w(_e.date(_e.date() + Math.round(ae * y)), p);
|
|
320
320
|
};
|
|
321
|
-
if (
|
|
322
|
-
if (
|
|
323
|
-
if (
|
|
324
|
-
if (
|
|
325
|
-
var I = (w = {}, w[f] = l, w[
|
|
321
|
+
if (S === u) return this.set(u, this.$M + y);
|
|
322
|
+
if (S === c) return this.set(c, this.$y + y);
|
|
323
|
+
if (S === v) return M(1);
|
|
324
|
+
if (S === h) return M(7);
|
|
325
|
+
var I = (w = {}, w[f] = l, w[T] = s, w[t] = e, w)[S] || 1, ee = this.$d.getTime() + y * I;
|
|
326
326
|
return L.w(ee, this);
|
|
327
327
|
}, A.subtract = function(y, _) {
|
|
328
328
|
return this.add(-1 * y, _);
|
|
329
329
|
}, A.format = function(y) {
|
|
330
330
|
var _ = this, w = this.$locale();
|
|
331
331
|
if (!this.isValid()) return w.invalidDate || U;
|
|
332
|
-
var p = y || "YYYY-MM-DDTHH:mm:ssZ",
|
|
332
|
+
var p = y || "YYYY-MM-DDTHH:mm:ssZ", S = L.z(this), M = this.$H, I = this.$m, ee = this.$M, ae = w.weekdays, _e = w.months, Ye = w.meridiem, oe = function(be, ie, Ge, j) {
|
|
333
333
|
return be && (be[ie] || be(_, p)) || Ge[ie].slice(0, j);
|
|
334
334
|
}, me = function(be) {
|
|
335
335
|
return L.s(M % 12 || 12, be, "0");
|
|
@@ -387,16 +387,16 @@ var Ml = { exports: {} };
|
|
|
387
387
|
case "SSS":
|
|
388
388
|
return L.s(_.$ms, 3, "0");
|
|
389
389
|
case "Z":
|
|
390
|
-
return
|
|
390
|
+
return S;
|
|
391
391
|
}
|
|
392
392
|
return null;
|
|
393
|
-
}(be) ||
|
|
393
|
+
}(be) || S.replace(":", "");
|
|
394
394
|
});
|
|
395
395
|
}, A.utcOffset = function() {
|
|
396
396
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
397
397
|
}, A.diff = function(y, _, w) {
|
|
398
|
-
var p,
|
|
399
|
-
return L.m(
|
|
398
|
+
var p, S = this, M = L.p(_), I = ve(y), ee = (I.utcOffset() - this.utcOffset()) * l, ae = this - I, _e = function() {
|
|
399
|
+
return L.m(S, I);
|
|
400
400
|
};
|
|
401
401
|
switch (M) {
|
|
402
402
|
case c:
|
|
@@ -414,7 +414,7 @@ var Ml = { exports: {} };
|
|
|
414
414
|
case v:
|
|
415
415
|
p = (ae - ee) / 864e5;
|
|
416
416
|
break;
|
|
417
|
-
case
|
|
417
|
+
case T:
|
|
418
418
|
p = ae / s;
|
|
419
419
|
break;
|
|
420
420
|
case f:
|
|
@@ -446,20 +446,20 @@ var Ml = { exports: {} };
|
|
|
446
446
|
}, A.toString = function() {
|
|
447
447
|
return this.$d.toUTCString();
|
|
448
448
|
}, B;
|
|
449
|
-
}(), Me =
|
|
450
|
-
return ve.prototype = Me, [["$ms", o], ["$s", t], ["$m", f], ["$H",
|
|
449
|
+
}(), Me = Ce.prototype;
|
|
450
|
+
return ve.prototype = Me, [["$ms", o], ["$s", t], ["$m", f], ["$H", T], ["$W", v], ["$M", u], ["$y", c], ["$D", q]].forEach(function(B) {
|
|
451
451
|
Me[B[1]] = function(A) {
|
|
452
452
|
return this.$g(A, B[0], B[1]);
|
|
453
453
|
};
|
|
454
454
|
}), ve.extend = function(B, A) {
|
|
455
|
-
return B.$i || (B(A,
|
|
455
|
+
return B.$i || (B(A, Ce, ve), B.$i = !0), ve;
|
|
456
456
|
}, ve.locale = Ve, ve.isDayjs = Te, ve.unix = function(B) {
|
|
457
457
|
return ve(1e3 * B);
|
|
458
458
|
}, ve.en = J[R], ve.Ls = J, ve.p = {}, ve;
|
|
459
459
|
});
|
|
460
460
|
})(Ml);
|
|
461
461
|
var sa = Ml.exports;
|
|
462
|
-
const At = /* @__PURE__ */
|
|
462
|
+
const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
|
|
463
463
|
const e = n.__vccOpts || n;
|
|
464
464
|
for (const [l, s] of d)
|
|
465
465
|
e[l] = s;
|
|
@@ -472,9 +472,9 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
472
472
|
}),
|
|
473
473
|
emits: ["update:modelValue"],
|
|
474
474
|
setup(n) {
|
|
475
|
-
var A, y, _, w, p,
|
|
476
|
-
const d = n, e = re(d.item || {}), l = ot(n, "modelValue"), s = re(d.ctrlKey), o = re(d.ctrlType), t = re(d.model), f = re([]),
|
|
477
|
-
!((p = o.value) != null && p.startsWith("text")) && !((
|
|
475
|
+
var A, y, _, w, p, S, M, I, ee, ae, _e, Ye, oe, me, Fe, be, ie, Ge;
|
|
476
|
+
const d = n, e = re(d.item || {}), l = ot(n, "modelValue"), s = re(d.ctrlKey), o = re(d.ctrlType), t = re(d.model), f = re([]), T = re([]), v = re(!1), h = re(!1), u = re(0), r = re((y = (A = t == null ? void 0 : t.value) == null ? void 0 : A.form) != null && y["default-placeholder"] ? (w = (_ = t == null ? void 0 : t.value) == null ? void 0 : _[s == null ? void 0 : s.value]) == null ? void 0 : w.label : "");
|
|
477
|
+
!((p = o.value) != null && p.startsWith("text")) && !((S = o.value) != null && S.startsWith("link")) && !((M = o.value) != null && M.startsWith("tag")) && !((I = o.value) != null && I.startsWith("div")) && !((ee = o.value) != null && ee.startsWith("span")) && !((ae = o.value) != null && ae.startsWith("avatar")) && ((_e = e.value) != null && _e.style || (e.value.style = { width: ((oe = (Ye = e.value) == null ? void 0 : Ye.style) == null ? void 0 : oe.width) || "100%" }));
|
|
478
478
|
const c = re({ display: "flex", flex: 1 });
|
|
479
479
|
let q = d.t === "t" ? "center" : "flex-start";
|
|
480
480
|
((me = e.value) == null ? void 0 : me.align) == "right" ? q = "flex-end" : ((Fe = e.value) == null ? void 0 : Fe.align) == "left" ? q = "flex-start" : ((be = e.value) == null ? void 0 : be.align) == "center" && (q = "center");
|
|
@@ -526,7 +526,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
526
526
|
}), J = re((j) => {
|
|
527
527
|
e.value["remote-method"](j, (E) => {
|
|
528
528
|
rt(() => {
|
|
529
|
-
|
|
529
|
+
T.value = E;
|
|
530
530
|
});
|
|
531
531
|
});
|
|
532
532
|
}), fe = async (j = "options") => {
|
|
@@ -534,14 +534,14 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
534
534
|
try {
|
|
535
535
|
const X = await ((E = e.value) == null ? void 0 : E.getDicts(d.formInfo));
|
|
536
536
|
if (typeof X == "string")
|
|
537
|
-
|
|
537
|
+
T.value = [{ label: X, value: l.value }];
|
|
538
538
|
else {
|
|
539
539
|
const Oe = X == null ? void 0 : X.map((Ae, Re) => ({
|
|
540
540
|
...Ae,
|
|
541
541
|
value: Ae.value ?? Ae.label ?? Re,
|
|
542
542
|
label: Ae.label || "未知选项"
|
|
543
543
|
}));
|
|
544
|
-
|
|
544
|
+
T.value = Oe || [];
|
|
545
545
|
}
|
|
546
546
|
} catch (X) {
|
|
547
547
|
throw console.error("获取选项失败:", X), X;
|
|
@@ -575,7 +575,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
575
575
|
} else
|
|
576
576
|
u.value = 0;
|
|
577
577
|
v.value = !0;
|
|
578
|
-
},
|
|
578
|
+
}, Ce = re(null), Me = (j, E = 2) => {
|
|
579
579
|
if (j === "") {
|
|
580
580
|
l.value = "";
|
|
581
581
|
return;
|
|
@@ -591,9 +591,9 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
591
591
|
}
|
|
592
592
|
l.value = X;
|
|
593
593
|
};
|
|
594
|
-
|
|
594
|
+
xt(async () => {
|
|
595
595
|
var X, Oe, Ae, Re, lt;
|
|
596
|
-
e.value && e.value["remote-method"] && (R.value["remote-method"] = J), (Oe = (X = t.value[s.value]) == null ? void 0 : X.options) != null && Oe.length && (
|
|
596
|
+
e.value && e.value["remote-method"] && (R.value["remote-method"] = J), (Oe = (X = t.value[s.value]) == null ? void 0 : X.options) != null && Oe.length && (T.value = t.value[s.value].options);
|
|
597
597
|
const j = (Xe, Je = "options", Ke = t.value[s.value]) => {
|
|
598
598
|
typeof e.value.getDicts == "function" && fe(Je).catch((et) => {
|
|
599
599
|
console.error(`Failed to load ${Je} for ${Xe}:`, et);
|
|
@@ -601,7 +601,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
601
601
|
};
|
|
602
602
|
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(o.value) && j(o.value), o.value === De.TREESELECT && await (async () => {
|
|
603
603
|
try {
|
|
604
|
-
typeof e.value.getDicts == "function" ? f.value = await e.value.getDicts(d.formInfo) : f.value =
|
|
604
|
+
typeof e.value.getDicts == "function" ? f.value = await e.value.getDicts(d.formInfo) : f.value = T.value;
|
|
605
605
|
} catch (Je) {
|
|
606
606
|
console.error("Failed to load data for tree-select:", Je);
|
|
607
607
|
}
|
|
@@ -631,7 +631,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
631
631
|
(et = (Ke = t.value) == null ? void 0 : Ke.table) == null || et.load();
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
|
-
o.value == "image" && (e.value.width && ((Ae =
|
|
634
|
+
o.value == "image" && (e.value.width && ((Ae = Ce.value) != null && Ae.$el) && Ce.value.$el.style.setProperty("--up-width", typeof e.value.width == "number" ? e.value.width + "px" : e.value.width), e.value.height && ((Re = Ce.value) != null && Re.$el) && Ce.value.$el.style.setProperty("--up-height", typeof e.value.height == "number" ? e.value.height + "px" : e.value.height), e.value.fontSize && ((lt = Ce.value) != null && lt.$el) && Ce.value.$el.style.setProperty("--up-font-size", typeof e.value.fontSize == "number" ? e.value.fontSize + "px" : e.value.fontSize));
|
|
635
635
|
});
|
|
636
636
|
const B = Be(() => {
|
|
637
637
|
var j;
|
|
@@ -639,7 +639,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
639
639
|
});
|
|
640
640
|
return (j, E) => {
|
|
641
641
|
var ut, ne, ce, pe, vt, pt, it, dt, bt, Z, ct, wt, $t, Et, Zt, Jt, Kt, el, tl, ll, al, rl, nl, ol, sl, ul, il, dl;
|
|
642
|
-
const X = H("el-image-viewer"), Oe = H("el-radio"), Ae = H("el-radio-group"), Re = H("el-radio-button"), lt = H("el-checkbox"), Xe = H("el-checkbox-group"), Je = H("el-checkbox-button"), Ke = H("g-select-option"), et = H("el-option"),
|
|
642
|
+
const X = H("el-image-viewer"), Oe = H("el-radio"), Ae = H("el-radio-group"), Re = H("el-radio-button"), lt = H("el-checkbox"), Xe = H("el-checkbox-group"), Je = H("el-checkbox-button"), Ke = H("g-select-option"), et = H("el-option"), Ct = H("el-select"), Mt = H("el-tree-select"), a = H("el-time-picker"), i = H("el-time-select"), g = H("el-date-picker"), x = H("el-color-picker"), O = H("el-rate"), P = H("el-slider"), N = H("el-switch"), we = H("el-transfer"), Ee = H("el-cascader"), qe = H("el-icon"), je = H("el-image"), Pe = H("el-tooltip"), tt = H("el-upload"), ht = H("el-autocomplete"), St = H("el-input-number"), Tt = H("el-input-tag"), te = H("el-input"), ye = H("el-link"), ue = H("el-text"), He = H("el-avatar"), Qe = H("el-tag");
|
|
643
643
|
return m(), z(se, null, [
|
|
644
644
|
K("div", null, [
|
|
645
645
|
v.value ? (m(), D(X, {
|
|
@@ -661,10 +661,10 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
661
661
|
disabled: (ut = t.value[s.value]) == null ? void 0 : ut.disabled
|
|
662
662
|
}, e.value), {
|
|
663
663
|
default: $(() => [
|
|
664
|
-
|
|
665
|
-
(m(!0), z(se, null, W(
|
|
664
|
+
C(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
|
|
665
|
+
(m(!0), z(se, null, W(T.value, (b) => (m(), D(Oe, Y({ ref_for: !0 }, b), {
|
|
666
666
|
default: $(() => [
|
|
667
|
-
|
|
667
|
+
C(j.$slots, `${d.t}-${s.value}-options`, { option: b }, void 0, !0)
|
|
668
668
|
]),
|
|
669
669
|
_: 2
|
|
670
670
|
}, 1040))), 256))
|
|
@@ -678,10 +678,10 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
678
678
|
disabled: (ne = t.value[s.value]) == null ? void 0 : ne.disabled
|
|
679
679
|
}, e.value), {
|
|
680
680
|
default: $(() => [
|
|
681
|
-
|
|
682
|
-
(m(!0), z(se, null, W(
|
|
681
|
+
C(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
|
|
682
|
+
(m(!0), z(se, null, W(T.value, (b) => (m(), D(Re, Y({ ref_for: !0 }, b), {
|
|
683
683
|
default: $(() => [
|
|
684
|
-
|
|
684
|
+
C(j.$slots, `${d.t}-${s.value}-options`, { option: b }, void 0, !0)
|
|
685
685
|
]),
|
|
686
686
|
_: 2
|
|
687
687
|
}, 1040))), 256))
|
|
@@ -695,7 +695,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
695
695
|
disabled: (ce = t.value[s.value]) == null ? void 0 : ce.disabled
|
|
696
696
|
}, e.value), {
|
|
697
697
|
default: $(() => [
|
|
698
|
-
|
|
698
|
+
C(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
|
|
699
699
|
E[30] || (E[30] = Le(Ie(" "), -1))
|
|
700
700
|
], !0)
|
|
701
701
|
]),
|
|
@@ -707,10 +707,10 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
707
707
|
disabled: (pe = t.value[s.value]) == null ? void 0 : pe.disabled
|
|
708
708
|
}, e.value), {
|
|
709
709
|
default: $(() => [
|
|
710
|
-
|
|
711
|
-
(m(!0), z(se, null, W(
|
|
710
|
+
C(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
|
|
711
|
+
(m(!0), z(se, null, W(T.value, (b) => (m(), D(lt, Y({ ref_for: !0 }, b), {
|
|
712
712
|
default: $(() => [
|
|
713
|
-
|
|
713
|
+
C(j.$slots, `${d.t}-${s.value}-options`, { option: b }, () => [
|
|
714
714
|
Le(Ie(b.label), 1)
|
|
715
715
|
], !0)
|
|
716
716
|
]),
|
|
@@ -726,17 +726,17 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
726
726
|
disabled: (vt = t.value[s.value]) == null ? void 0 : vt.disabled
|
|
727
727
|
}, F(We)(e.value, (b) => b != "type")), {
|
|
728
728
|
default: $(() => [
|
|
729
|
-
|
|
730
|
-
(m(!0), z(se, null, W(
|
|
729
|
+
C(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
|
|
730
|
+
(m(!0), z(se, null, W(T.value, (b) => (m(), D(Je, Y({ ref_for: !0 }, b), {
|
|
731
731
|
default: $(() => [
|
|
732
|
-
|
|
732
|
+
C(j.$slots, `${d.t}-${s.value}-options`, { option: b }, void 0, !0)
|
|
733
733
|
]),
|
|
734
734
|
_: 2
|
|
735
735
|
}, 1040))), 256))
|
|
736
736
|
], !0)
|
|
737
737
|
]),
|
|
738
738
|
_: 3
|
|
739
|
-
}, 16, ["modelValue", "disabled"])) : o.value === F(De).SELECT ? (m(), D(
|
|
739
|
+
}, 16, ["modelValue", "disabled"])) : o.value === F(De).SELECT ? (m(), D(Ct, Y({
|
|
740
740
|
key: 5,
|
|
741
741
|
modelValue: l.value,
|
|
742
742
|
"onUpdate:modelValue": E[6] || (E[6] = (b) => l.value = b),
|
|
@@ -750,11 +750,11 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
750
750
|
default: $(() => {
|
|
751
751
|
var b;
|
|
752
752
|
return [
|
|
753
|
-
((b =
|
|
753
|
+
((b = T.value) == null ? void 0 : b.length) > 0 ? C(j.$slots, `${d.t}-${s.value}`, {
|
|
754
754
|
key: 0,
|
|
755
|
-
options:
|
|
755
|
+
options: T.value
|
|
756
756
|
}, () => [
|
|
757
|
-
(m(!0), z(se, null, W(
|
|
757
|
+
(m(!0), z(se, null, W(T.value, (he) => (m(), z(se, {
|
|
758
758
|
key: he.value
|
|
759
759
|
}, [
|
|
760
760
|
de(et, Y({ ref_for: !0 }, F(We)(he, (ge) => ge != "children"), {
|
|
@@ -765,7 +765,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
765
765
|
default: $(() => {
|
|
766
766
|
var ge;
|
|
767
767
|
return [
|
|
768
|
-
(ge = e.value) != null && ge.columns ?
|
|
768
|
+
(ge = e.value) != null && ge.columns ? C(j.$slots, `${d.t}-${s.value}-options`, {
|
|
769
769
|
key: 0,
|
|
770
770
|
option: he
|
|
771
771
|
}, () => {
|
|
@@ -779,7 +779,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
779
779
|
W(j.$slots, (kt, Ut) => ({
|
|
780
780
|
name: Ut,
|
|
781
781
|
fn: $((Vt) => [
|
|
782
|
-
|
|
782
|
+
C(j.$slots, Ut, {
|
|
783
783
|
option: he,
|
|
784
784
|
data: Vt,
|
|
785
785
|
form: n.formInfo
|
|
@@ -804,7 +804,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
804
804
|
default: $(() => {
|
|
805
805
|
var at;
|
|
806
806
|
return [
|
|
807
|
-
(at = e.value) != null && at.columns ?
|
|
807
|
+
(at = e.value) != null && at.columns ? C(j.$slots, `${d.t}-${s.value}-options`, {
|
|
808
808
|
key: 0,
|
|
809
809
|
option: ge
|
|
810
810
|
}, () => {
|
|
@@ -818,7 +818,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
818
818
|
W(j.$slots, (Ut, Vt) => ({
|
|
819
819
|
name: Vt,
|
|
820
820
|
fn: $((Ol) => [
|
|
821
|
-
|
|
821
|
+
C(j.$slots, Vt, {
|
|
822
822
|
option: ge,
|
|
823
823
|
data: Ol,
|
|
824
824
|
form: n.formInfo
|
|
@@ -851,7 +851,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
851
851
|
W(j.$slots, (he, ge) => ({
|
|
852
852
|
name: ge,
|
|
853
853
|
fn: $((at) => [
|
|
854
|
-
|
|
854
|
+
C(j.$slots, ge, { data: at }, void 0, !0)
|
|
855
855
|
])
|
|
856
856
|
}))
|
|
857
857
|
]), 1032, ["columns", "t"])
|
|
@@ -862,7 +862,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
862
862
|
W(V(), (b) => ({
|
|
863
863
|
name: b,
|
|
864
864
|
fn: $((he) => [
|
|
865
|
-
|
|
865
|
+
C(j.$slots, `${d.t}-${s.value}-${b}`, { form: n.formInfo }, void 0, !0)
|
|
866
866
|
])
|
|
867
867
|
}))
|
|
868
868
|
]), 1040, ["modelValue", "placeholder", "clearable", "disabled"])) : o.value == F(De).TREESELECT ? (m(), D(Mt, Y({
|
|
@@ -875,7 +875,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
875
875
|
W(V(), (b) => ({
|
|
876
876
|
name: b,
|
|
877
877
|
fn: $((he) => [
|
|
878
|
-
|
|
878
|
+
C(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
|
|
879
879
|
])
|
|
880
880
|
}))
|
|
881
881
|
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : o.value == F(De).TIME ? (m(), D(a, Y({
|
|
@@ -908,10 +908,10 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
908
908
|
W(V(), (b) => ({
|
|
909
909
|
name: b,
|
|
910
910
|
fn: $((he) => [
|
|
911
|
-
|
|
911
|
+
C(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
|
|
912
912
|
])
|
|
913
913
|
}))
|
|
914
|
-
]), 1040, ["modelValue", "type", "format", "placeholder", "value-format", "disabled"])) : o.value == F(De).COLOR ? (m(), D(
|
|
914
|
+
]), 1040, ["modelValue", "type", "format", "placeholder", "value-format", "disabled"])) : o.value == F(De).COLOR ? (m(), D(x, Y({
|
|
915
915
|
key: 10,
|
|
916
916
|
modelValue: l.value,
|
|
917
917
|
"onUpdate:modelValue": E[12] || (E[12] = (b) => l.value = b)
|
|
@@ -935,7 +935,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
935
935
|
W(V(), (b) => ({
|
|
936
936
|
name: b,
|
|
937
937
|
fn: $((he) => [
|
|
938
|
-
|
|
938
|
+
C(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
|
|
939
939
|
])
|
|
940
940
|
}))
|
|
941
941
|
]), 1040, ["modelValue", "disabled"])) : o.value == F(De).TRANSFER ? (m(), D(we, Y({
|
|
@@ -946,18 +946,18 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
946
946
|
W(V(), (b) => ({
|
|
947
947
|
name: b,
|
|
948
948
|
fn: $((he) => [
|
|
949
|
-
|
|
949
|
+
C(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
|
|
950
950
|
])
|
|
951
951
|
}))
|
|
952
952
|
]), 1040, ["modelValue"])) : o.value == F(De).CASCADER ? (m(), D(Ee, Y({
|
|
953
953
|
key: 15,
|
|
954
954
|
modelValue: l.value,
|
|
955
955
|
"onUpdate:modelValue": E[17] || (E[17] = (b) => l.value = b)
|
|
956
|
-
}, e.value, { options:
|
|
956
|
+
}, e.value, { options: T.value }), $e({ _: 2 }, [
|
|
957
957
|
W(V(), (b) => ({
|
|
958
958
|
name: b,
|
|
959
959
|
fn: $((he) => [
|
|
960
|
-
|
|
960
|
+
C(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
|
|
961
961
|
])
|
|
962
962
|
}))
|
|
963
963
|
]), 1040, ["modelValue", "options"])) : o.value == F(De).IMAGE ? (m(), D(tt, Y({
|
|
@@ -969,7 +969,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
969
969
|
"on-preview": ve
|
|
970
970
|
}, { ...k.value, ...e.value }, {
|
|
971
971
|
ref_key: "uploadRef",
|
|
972
|
-
ref:
|
|
972
|
+
ref: Ce
|
|
973
973
|
}), $e({
|
|
974
974
|
default: $(() => {
|
|
975
975
|
var b, he;
|
|
@@ -992,7 +992,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
992
992
|
W(V(), (ge, at) => ({
|
|
993
993
|
name: ge,
|
|
994
994
|
fn: $((kt) => [
|
|
995
|
-
|
|
995
|
+
C(j.$slots, `${d.t}-${s.value}-${ge}`, { data: kt }, void 0, !0)
|
|
996
996
|
])
|
|
997
997
|
}))
|
|
998
998
|
]), 1040, ["src"])
|
|
@@ -1040,7 +1040,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1040
1040
|
W(V(), (b, he) => ({
|
|
1041
1041
|
name: b,
|
|
1042
1042
|
fn: $((ge) => [
|
|
1043
|
-
|
|
1043
|
+
C(j.$slots, `${d.t}-${s.value}-${b}`, { data: ge }, void 0, !0)
|
|
1044
1044
|
])
|
|
1045
1045
|
}))
|
|
1046
1046
|
]), 1040, ["file-list"])) : o.value == F(De).AUTOCOMPLETE ? (m(), D(ht, Y({
|
|
@@ -1051,7 +1051,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1051
1051
|
W(V(), (b, he) => ({
|
|
1052
1052
|
name: b,
|
|
1053
1053
|
fn: $((ge) => [
|
|
1054
|
-
|
|
1054
|
+
C(j.$slots, `${d.t}-${s.value}-${b}`, { data: ge }, void 0, !0)
|
|
1055
1055
|
])
|
|
1056
1056
|
}))
|
|
1057
1057
|
]), 1040, ["modelValue", "placeholder"])) : o.value == F(De).INPUTNUMBER ? (m(), D(St, Y({
|
|
@@ -1064,7 +1064,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1064
1064
|
W(V(), (b, he) => ({
|
|
1065
1065
|
name: b,
|
|
1066
1066
|
fn: $((ge) => [
|
|
1067
|
-
|
|
1067
|
+
C(j.$slots, `${d.t}-${s.value}-${b}`, {
|
|
1068
1068
|
data: ge,
|
|
1069
1069
|
form: n.formInfo
|
|
1070
1070
|
}, void 0, !0)
|
|
@@ -1105,7 +1105,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1105
1105
|
W(V(), (b, he) => ({
|
|
1106
1106
|
name: b,
|
|
1107
1107
|
fn: $((ge) => [
|
|
1108
|
-
|
|
1108
|
+
C(j.$slots, `${d.t}-${s.value}-${b}`, {
|
|
1109
1109
|
data: ge,
|
|
1110
1110
|
form: n.formInfo
|
|
1111
1111
|
}, void 0, !0)
|
|
@@ -1134,7 +1134,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1134
1134
|
W(V(), (b, he) => ({
|
|
1135
1135
|
name: b,
|
|
1136
1136
|
fn: $((ge) => [
|
|
1137
|
-
|
|
1137
|
+
C(j.$slots, `${d.t}-${s.value}-${b}`, { data: ge }, void 0, !0)
|
|
1138
1138
|
])
|
|
1139
1139
|
}))
|
|
1140
1140
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
@@ -1268,7 +1268,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1268
1268
|
W(V(), (b, he) => ({
|
|
1269
1269
|
name: b,
|
|
1270
1270
|
fn: $((ge) => [
|
|
1271
|
-
|
|
1271
|
+
C(j.$slots, `${d.t}-${s.value}-${b}`, {
|
|
1272
1272
|
data: ge,
|
|
1273
1273
|
form: n.formInfo
|
|
1274
1274
|
}, void 0, !0)
|
|
@@ -1309,7 +1309,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1309
1309
|
}, t = (v) => typeof v.search == "function" ? v.search(l.value, d.value.table) : v.search || {}, f = (v) => {
|
|
1310
1310
|
const h = t(v);
|
|
1311
1311
|
return (h == null ? void 0 : h.type) || v.type;
|
|
1312
|
-
},
|
|
1312
|
+
}, T = (v) => {
|
|
1313
1313
|
var r;
|
|
1314
1314
|
const h = t(v);
|
|
1315
1315
|
let u = (h == null ? void 0 : h.width) || ((r = d.value.queryItems) == null ? void 0 : r.width) || "100%";
|
|
@@ -1317,7 +1317,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1317
1317
|
};
|
|
1318
1318
|
return (v, h) => {
|
|
1319
1319
|
const u = H("el-form-item");
|
|
1320
|
-
return m(!0), z(se, null, W(o(e.more), (r, c) =>
|
|
1320
|
+
return m(!0), z(se, null, W(o(e.more), (r, c) => C(v.$slots, `q-${c}`, {
|
|
1321
1321
|
key: c,
|
|
1322
1322
|
item: r,
|
|
1323
1323
|
queryModel: l.value,
|
|
@@ -1325,10 +1325,10 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1325
1325
|
}, () => [
|
|
1326
1326
|
de(u, Y({
|
|
1327
1327
|
label: r.label,
|
|
1328
|
-
style: { width:
|
|
1328
|
+
style: { width: T(r) }
|
|
1329
1329
|
}, { ref_for: !0 }, { ...d.value.queryItems, ...F(We)(t(r), (q) => q != "onClick") }), {
|
|
1330
1330
|
label: $(() => [
|
|
1331
|
-
|
|
1331
|
+
C(v.$slots, `q-${c}-label`, {
|
|
1332
1332
|
item: r,
|
|
1333
1333
|
model: d.value
|
|
1334
1334
|
})
|
|
@@ -1347,7 +1347,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1347
1347
|
W(Object.keys(v.$slots), (q) => ({
|
|
1348
1348
|
name: q,
|
|
1349
1349
|
fn: $((U) => [
|
|
1350
|
-
|
|
1350
|
+
C(v.$slots, q, {
|
|
1351
1351
|
data: U,
|
|
1352
1352
|
item: r,
|
|
1353
1353
|
model: d.value,
|
|
@@ -1381,7 +1381,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1381
1381
|
return {
|
|
1382
1382
|
justifyContent: { left: "flex-start", right: "flex-end", center: "center" }[V.align] || "flex-start"
|
|
1383
1383
|
};
|
|
1384
|
-
}),
|
|
1384
|
+
}), T = {
|
|
1385
1385
|
hidden: !1,
|
|
1386
1386
|
type: "hidden",
|
|
1387
1387
|
labelWidth: 100,
|
|
@@ -1433,7 +1433,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
}
|
|
1435
1435
|
};
|
|
1436
|
-
e.value.query = ze(
|
|
1436
|
+
e.value.query = ze(T, s == null ? void 0 : s.query, e.value.query);
|
|
1437
1437
|
const v = {
|
|
1438
1438
|
2: {
|
|
1439
1439
|
title: "更多查询",
|
|
@@ -1520,7 +1520,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1520
1520
|
}, () => u({ slots: r }, !0)) : null
|
|
1521
1521
|
}
|
|
1522
1522
|
];
|
|
1523
|
-
return V.sort((L,
|
|
1523
|
+
return V.sort((L, Ce) => L.sort - Ce.sort), V.filter((L) => !L.hidden).map((L) => L.key === "more" && L.component === Lt ? Se(Lt, L.props, {
|
|
1524
1524
|
reference: () => Se(Ne, e.value.query.more, () => L.label),
|
|
1525
1525
|
default: L.content
|
|
1526
1526
|
}) : (L.props.slot = "query-" + L.key, L.label ? Se(L.component, L.props, () => L.label) : Se(L.component, L.props)));
|
|
@@ -1530,7 +1530,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1530
1530
|
})), U = () => {
|
|
1531
1531
|
};
|
|
1532
1532
|
return (V, k) => {
|
|
1533
|
-
var le, R, J, fe, Te, Ve, ve, L,
|
|
1533
|
+
var le, R, J, fe, Te, Ve, ve, L, Ce, Me, B, A, y, _, w, p, S;
|
|
1534
1534
|
const Q = H("el-form-item"), G = H("el-drawer");
|
|
1535
1535
|
return m(), z(se, null, [
|
|
1536
1536
|
K("div", {
|
|
@@ -1555,24 +1555,24 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1555
1555
|
}, [
|
|
1556
1556
|
e.value.query.group ? (m(), D(F(It), { key: 0 }, {
|
|
1557
1557
|
default: $(() => [
|
|
1558
|
-
(m(!0), z(se, null, W(c(), (me) =>
|
|
1558
|
+
(m(!0), z(se, null, W(c(), (me) => C(V.$slots, me.props.slot, {}, () => [
|
|
1559
1559
|
(m(), D(Ze(me)))
|
|
1560
1560
|
], !0)), 256)),
|
|
1561
|
-
|
|
1561
|
+
C(V.$slots, "q-btns", {}, void 0, !0)
|
|
1562
1562
|
]),
|
|
1563
1563
|
_: 3
|
|
1564
1564
|
})) : (m(), z(se, { key: 1 }, [
|
|
1565
1565
|
(oe = (Ye = (_e = e.value) == null ? void 0 : _e.query) == null ? void 0 : Ye.btns) != null && oe.group ? (m(), D(F(It), { key: 0 }, {
|
|
1566
1566
|
default: $(() => [
|
|
1567
|
-
(m(!0), z(se, null, W(c(), (me) =>
|
|
1567
|
+
(m(!0), z(se, null, W(c(), (me) => C(V.$slots, me.props.slot, {}, () => [
|
|
1568
1568
|
(m(), D(Ze(me)))
|
|
1569
1569
|
], !0)), 256))
|
|
1570
1570
|
]),
|
|
1571
1571
|
_: 3
|
|
1572
|
-
})) : (m(!0), z(se, { key: 1 }, W(c(), (me) =>
|
|
1572
|
+
})) : (m(!0), z(se, { key: 1 }, W(c(), (me) => C(V.$slots, me.props.slot, {}, () => [
|
|
1573
1573
|
(m(), D(Ze(me)))
|
|
1574
1574
|
], !0)), 256)),
|
|
1575
|
-
|
|
1575
|
+
C(V.$slots, "q-btns", {}, void 0, !0)
|
|
1576
1576
|
], 64))
|
|
1577
1577
|
], 4)
|
|
1578
1578
|
];
|
|
@@ -1589,24 +1589,24 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1589
1589
|
}, [
|
|
1590
1590
|
e.value.query.group ? (m(), D(F(It), { key: 0 }, {
|
|
1591
1591
|
default: $(() => [
|
|
1592
|
-
(m(!0), z(se, null, W(c(), (M) =>
|
|
1592
|
+
(m(!0), z(se, null, W(c(), (M) => C(V.$slots, M.props.slot, {}, () => [
|
|
1593
1593
|
(m(), D(Ze(M)))
|
|
1594
1594
|
], !0)), 256)),
|
|
1595
|
-
|
|
1595
|
+
C(V.$slots, "q-btns", {}, void 0, !0)
|
|
1596
1596
|
]),
|
|
1597
1597
|
_: 3
|
|
1598
1598
|
})) : (m(), z(se, { key: 1 }, [
|
|
1599
|
-
(
|
|
1599
|
+
(Ce = (L = e.value.query) == null ? void 0 : L.btns) != null && Ce.group ? (m(), D(F(It), { key: 0 }, {
|
|
1600
1600
|
default: $(() => [
|
|
1601
|
-
(m(!0), z(se, null, W(c(), (M) =>
|
|
1601
|
+
(m(!0), z(se, null, W(c(), (M) => C(V.$slots, M.props.slot, {}, () => [
|
|
1602
1602
|
(m(), D(Ze(M)))
|
|
1603
1603
|
], !0)), 256))
|
|
1604
1604
|
]),
|
|
1605
1605
|
_: 3
|
|
1606
|
-
})) : (m(!0), z(se, { key: 1 }, W(c(), (M) =>
|
|
1606
|
+
})) : (m(!0), z(se, { key: 1 }, W(c(), (M) => C(V.$slots, M.props.slot, {}, () => [
|
|
1607
1607
|
(m(), D(Ze(M)))
|
|
1608
1608
|
], !0)), 256)),
|
|
1609
|
-
|
|
1609
|
+
C(V.$slots, "q-btns", {}, void 0, !0)
|
|
1610
1610
|
], 64))
|
|
1611
1611
|
], 4)) : ke("", !0)
|
|
1612
1612
|
], 36),
|
|
@@ -1633,7 +1633,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1633
1633
|
W(V.$slots, (M, I, ee) => ({
|
|
1634
1634
|
name: I,
|
|
1635
1635
|
fn: $((ae) => [
|
|
1636
|
-
|
|
1636
|
+
C(V.$slots, I, { model: e.value }, void 0, !0)
|
|
1637
1637
|
])
|
|
1638
1638
|
}))
|
|
1639
1639
|
]), 1032, ["modelValue", "info"])
|
|
@@ -1643,7 +1643,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1643
1643
|
]),
|
|
1644
1644
|
_: 2
|
|
1645
1645
|
}, [
|
|
1646
|
-
(
|
|
1646
|
+
(S = (p = (w = (_ = (y = e.value) == null ? void 0 : y.query) == null ? void 0 : _.more) == null ? void 0 : w.dialog) == null ? void 0 : p.footer) != null && S.hidden ? void 0 : {
|
|
1647
1647
|
name: "footer",
|
|
1648
1648
|
fn: $(() => [
|
|
1649
1649
|
K("div", qt(ml(e.value.query.more.dialog.footer)), [
|
|
@@ -1763,7 +1763,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1763
1763
|
height: "200px",
|
|
1764
1764
|
style: { minHeight: "200px" }
|
|
1765
1765
|
}
|
|
1766
|
-
}, Xt = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"],
|
|
1766
|
+
}, Xt = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"], xa = { class: "g-form-container" }, Ca = /* @__PURE__ */ Object.assign({
|
|
1767
1767
|
name: "g-form",
|
|
1768
1768
|
inheritAttrs: !1
|
|
1769
1769
|
}, {
|
|
@@ -1774,26 +1774,26 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1774
1774
|
}),
|
|
1775
1775
|
emits: /* @__PURE__ */ st(["submit", "reset"], ["update:modelValue"]),
|
|
1776
1776
|
setup(n, { expose: d, emit: e }) {
|
|
1777
|
-
var Ve, ve, L,
|
|
1778
|
-
const l = ot(n, "modelValue"), s = e, o = re(null), t = jt("options"), f = re({}),
|
|
1777
|
+
var Ve, ve, L, Ce, Me, B, A;
|
|
1778
|
+
const l = ot(n, "modelValue"), s = e, o = re(null), t = jt("options"), f = re({}), T = re(""), v = n;
|
|
1779
1779
|
l.value.form = ze(
|
|
1780
1780
|
Sl,
|
|
1781
1781
|
t == null ? void 0 : t.form,
|
|
1782
1782
|
(Ve = l.value) == null ? void 0 : Ve.form
|
|
1783
1783
|
), l.value.form.style = ze(
|
|
1784
1784
|
(L = (ve = l.value) == null ? void 0 : ve.form) == null ? void 0 : L.style,
|
|
1785
|
-
{ ...(
|
|
1785
|
+
{ ...(Ce = zt()) == null ? void 0 : Ce.style }
|
|
1786
1786
|
);
|
|
1787
1787
|
const h = async (y, _, w) => {
|
|
1788
1788
|
let p = 5;
|
|
1789
1789
|
for (; p > 0; ) {
|
|
1790
1790
|
if (await rt(), o.value) {
|
|
1791
|
-
o.value.validate((
|
|
1792
|
-
|
|
1791
|
+
o.value.validate((S, M) => {
|
|
1792
|
+
S ? s("submit", y, _, w) : console.error("表单验证不通过!", M);
|
|
1793
1793
|
});
|
|
1794
1794
|
return;
|
|
1795
1795
|
}
|
|
1796
|
-
p--, await new Promise((
|
|
1796
|
+
p--, await new Promise((S) => setTimeout(S, 50));
|
|
1797
1797
|
}
|
|
1798
1798
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1799
1799
|
}, u = async (y, _) => {
|
|
@@ -1852,14 +1852,14 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1852
1852
|
message: `${p.label}不能为空!`,
|
|
1853
1853
|
trigger: "blur"
|
|
1854
1854
|
}), p.max !== void 0 && p.max !== null && p.max !== "" && (p.min === void 0 || p.min === null || p.min === "") && _.push({
|
|
1855
|
-
validator: (
|
|
1855
|
+
validator: (S, M, I) => {
|
|
1856
1856
|
if (M == null || M === "") return I();
|
|
1857
1857
|
p.type !== "number" && p.type !== "input-number" ? ((M == null ? void 0 : M.toString()) || "").length > Number(p.max) ? I(
|
|
1858
1858
|
new Error(`${p.label}长度不能超过${p.max}个字符!`)
|
|
1859
1859
|
) : I() : Number(M) > Number(p.max) ? I(new Error(`${p.label}不能大于${p.max}!`)) : I();
|
|
1860
1860
|
}
|
|
1861
1861
|
}), p.min !== void 0 && p.min !== null && p.min !== "" && (p.max === void 0 || p.max === null || p.max === "") && _.push({
|
|
1862
|
-
validator: (
|
|
1862
|
+
validator: (S, M, I) => {
|
|
1863
1863
|
if (M == null || M === "") return I();
|
|
1864
1864
|
p.type !== "number" && p.type !== "input-number" ? Number(p.min) < 1 ? I(
|
|
1865
1865
|
new Error(
|
|
@@ -1872,7 +1872,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1872
1872
|
) : I() : Number(M) < Number(p.min) ? I(new Error(`${p.label}不能小于${p.min}!`)) : I();
|
|
1873
1873
|
}
|
|
1874
1874
|
}), p.min !== void 0 && p.min !== null && p.min !== "" && p.max !== void 0 && p.max !== null && p.max !== "" && _.push({
|
|
1875
|
-
validator: (
|
|
1875
|
+
validator: (S, M, I) => {
|
|
1876
1876
|
if (M == null || M === "") return I();
|
|
1877
1877
|
const ee = Number(p.min), ae = Number(p.max);
|
|
1878
1878
|
p.type !== "number" && p.type !== "input-number" ? Number(p.min) < 1 ? I(
|
|
@@ -1889,13 +1889,13 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1889
1889
|
pattern: p == null ? void 0 : p.pattern,
|
|
1890
1890
|
message: (p == null ? void 0 : p.message) || "格式不正确!"
|
|
1891
1891
|
}), p.validate && _.push({
|
|
1892
|
-
validator: (
|
|
1892
|
+
validator: (S, M, I) => p.validate(S, M, I)
|
|
1893
1893
|
});
|
|
1894
1894
|
}
|
|
1895
1895
|
return _;
|
|
1896
1896
|
}, U = (y, _ = !1) => {
|
|
1897
|
-
var
|
|
1898
|
-
const w = _ ? y : y == null ? void 0 : y.item, p = typeof (w == null ? void 0 : w.editor) == "function" ? w.editor(f.value, (
|
|
1897
|
+
var S, M, I, ee, ae;
|
|
1898
|
+
const w = _ ? y : y == null ? void 0 : y.item, p = typeof (w == null ? void 0 : w.editor) == "function" ? w.editor(f.value, (S = l.value.form) == null ? void 0 : S.modalState) : (w == null ? void 0 : w.editor) || {};
|
|
1899
1899
|
if (((M = l.value.form) == null ? void 0 : M.modalState) === "edit") {
|
|
1900
1900
|
const _e = typeof (w == null ? void 0 : w.editor) == "object" ? (I = w.editor) == null ? void 0 : I.ep : typeof (w == null ? void 0 : w.editor) == "function" ? p == null ? void 0 : p.ep : {};
|
|
1901
1901
|
return { ...p, ..._e };
|
|
@@ -1906,17 +1906,17 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1906
1906
|
}
|
|
1907
1907
|
return p;
|
|
1908
1908
|
}, V = (y) => {
|
|
1909
|
-
var w, p,
|
|
1909
|
+
var w, p, S, M, I;
|
|
1910
1910
|
const _ = typeof y.editor == "function" ? y.editor(f.value, (w = l.value.form) == null ? void 0 : w.modalState) : y.editor;
|
|
1911
|
-
return ((p = l.value.form) == null ? void 0 : p.modalState) === "edit" ? ((
|
|
1911
|
+
return ((p = l.value.form) == null ? void 0 : p.modalState) === "edit" ? ((S = _ == null ? void 0 : _.ep) == null ? void 0 : S.type) ?? (_ == null ? void 0 : _.type) ?? y.type : ((M = l.value.form) == null ? void 0 : M.modalState) === "add" ? ((I = _ == null ? void 0 : _.ap) == null ? void 0 : I.type) ?? (_ == null ? void 0 : _.type) ?? y.type : (_ == null ? void 0 : _.type) ?? y.type;
|
|
1912
1912
|
}, k = (y) => y === "left" ? "flex-start" : y === "right" ? "flex-end" : y === "center" ? "center" : "flex-end";
|
|
1913
|
-
|
|
1913
|
+
xt(() => {
|
|
1914
1914
|
Q(), v != null && v.editForm ? f.value = v.editForm : f.value = le.value;
|
|
1915
1915
|
}), zl(() => {
|
|
1916
1916
|
o.value = null;
|
|
1917
1917
|
});
|
|
1918
1918
|
const Q = () => {
|
|
1919
|
-
|
|
1919
|
+
T.value = Math.random().toString(36).substring(2);
|
|
1920
1920
|
for (const [y, _] of Object.entries(G.value))
|
|
1921
1921
|
l.value[y].formItem = {
|
|
1922
1922
|
...l.value[y].formItem,
|
|
@@ -1930,27 +1930,27 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
1930
1930
|
let _ = Object.entries(l.value).filter(([w, p]) => {
|
|
1931
1931
|
var M, I;
|
|
1932
1932
|
if (p.type === "hidden" || p.type === "control" || p.hidden === !0 || p.edit === !1 || p.editor === !1 || Xt.includes(w)) return !1;
|
|
1933
|
-
const
|
|
1934
|
-
return y === "edit" ? ((M =
|
|
1933
|
+
const S = typeof p.editor == "function" ? p.editor(f.value, y) : p.editor;
|
|
1934
|
+
return y === "edit" ? ((M = S == null ? void 0 : S.ep) == null ? void 0 : M.editor) !== !1 : y === "add" ? ((I = S == null ? void 0 : S.ap) == null ? void 0 : I.editor) !== !1 : !0;
|
|
1935
1935
|
});
|
|
1936
1936
|
return _.sort((w, p) => {
|
|
1937
|
-
const
|
|
1937
|
+
const S = (M) => {
|
|
1938
1938
|
var _e, Ye;
|
|
1939
1939
|
const [, I] = M, ee = typeof I.editor == "function" ? I.editor(f.value, y) : I.editor;
|
|
1940
1940
|
let ae;
|
|
1941
1941
|
return y === "edit" ? ae = (_e = ee == null ? void 0 : ee.ep) == null ? void 0 : _e.sort : y === "add" && (ae = (Ye = ee == null ? void 0 : ee.ap) == null ? void 0 : Ye.sort), ae == null && (ae = ee == null ? void 0 : ee.sort), ae == null && (ae = I.sort), ae == null ? 0 : Number(ae);
|
|
1942
1942
|
};
|
|
1943
|
-
return
|
|
1943
|
+
return S(w) - S(p);
|
|
1944
1944
|
}), Object.fromEntries(_);
|
|
1945
1945
|
}), le = Be(() => {
|
|
1946
1946
|
var w;
|
|
1947
1947
|
const y = (w = l.value.form) == null ? void 0 : w.modalState, _ = (p) => {
|
|
1948
1948
|
var I;
|
|
1949
|
-
const
|
|
1950
|
-
return M && ((I =
|
|
1949
|
+
const S = typeof p.editor == "function" ? p.editor(f.value, y) : p.editor, M = y === "add" ? "ap" : y === "edit" ? "ep" : null;
|
|
1950
|
+
return M && ((I = S == null ? void 0 : S[M]) == null ? void 0 : I.value) !== void 0 ? S[M].value : (S == null ? void 0 : S.value) !== void 0 ? S.value : p.value;
|
|
1951
1951
|
};
|
|
1952
1952
|
return Object.fromEntries(
|
|
1953
|
-
Object.entries(l.value).filter(([, p]) => p.type !== "hidden" && p.type !== "control").map(([p,
|
|
1953
|
+
Object.entries(l.value).filter(([, p]) => p.type !== "hidden" && p.type !== "control").map(([p, S]) => [p, _(S)])
|
|
1954
1954
|
);
|
|
1955
1955
|
}), R = Be(() => {
|
|
1956
1956
|
const y = /* @__PURE__ */ new Map();
|
|
@@ -2017,8 +2017,8 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2017
2017
|
formData: f
|
|
2018
2018
|
}), (y, _) => {
|
|
2019
2019
|
var ae, _e, Ye;
|
|
2020
|
-
const w = H("el-form-item"), p = H("el-col"),
|
|
2021
|
-
return m(), z("div",
|
|
2020
|
+
const w = H("el-form-item"), p = H("el-col"), S = H("el-tab-pane"), M = H("el-tabs"), I = H("el-form"), ee = H("el-button");
|
|
2021
|
+
return m(), z("div", xa, [
|
|
2022
2022
|
de(I, Y(
|
|
2023
2023
|
{
|
|
2024
2024
|
ref_key: "gform",
|
|
@@ -2037,7 +2037,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2037
2037
|
)
|
|
2038
2038
|
), {
|
|
2039
2039
|
default: $(() => [
|
|
2040
|
-
R.value.length > 0 ?
|
|
2040
|
+
R.value.length > 0 ? C(y.$slots, "default", { key: 0 }, () => {
|
|
2041
2041
|
var oe, me, Fe;
|
|
2042
2042
|
return [
|
|
2043
2043
|
de(M, Y({
|
|
@@ -2046,7 +2046,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2046
2046
|
style: [{ width: "100%" }, { height: (Fe = (me = (oe = l.value) == null ? void 0 : oe.form) == null ? void 0 : me.tabs) == null ? void 0 : Fe.height }]
|
|
2047
2047
|
}, l.value.form.tabs), {
|
|
2048
2048
|
default: $(() => [
|
|
2049
|
-
(m(!0), z(se, null, W(R.value, (be) => (m(), D(
|
|
2049
|
+
(m(!0), z(se, null, W(R.value, (be) => (m(), D(S, Y({
|
|
2050
2050
|
key: be.groupName,
|
|
2051
2051
|
label: be.groupName,
|
|
2052
2052
|
name: be.groupName,
|
|
@@ -2066,7 +2066,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2066
2066
|
rules: q(ie == null ? void 0 : ie.item)
|
|
2067
2067
|
}, { ref_for: !0 }, { ...(j = l.value) == null ? void 0 : j.formItems, ...(E = ie == null ? void 0 : ie.item) == null ? void 0 : E.formItem }, { style: { width: "100%" } }), {
|
|
2068
2068
|
default: $(() => [
|
|
2069
|
-
|
|
2069
|
+
C(y.$slots, "f-" + ie.key, {
|
|
2070
2070
|
item: ie == null ? void 0 : ie.item,
|
|
2071
2071
|
formInfo: f.value,
|
|
2072
2072
|
model: l.value,
|
|
@@ -2079,7 +2079,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2079
2079
|
ctrlKey: ie.key,
|
|
2080
2080
|
ctrlType: V(ie == null ? void 0 : ie.item),
|
|
2081
2081
|
model: l.value,
|
|
2082
|
-
key: `${ie.key}-${
|
|
2082
|
+
key: `${ie.key}-${T.value}`,
|
|
2083
2083
|
class: "g-ctrl-container",
|
|
2084
2084
|
t: "f",
|
|
2085
2085
|
formInfo: f.value
|
|
@@ -2087,7 +2087,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2087
2087
|
W(y.$slots, (X, Oe) => ({
|
|
2088
2088
|
name: Oe,
|
|
2089
2089
|
fn: $((Ae) => [
|
|
2090
|
-
|
|
2090
|
+
C(y.$slots, Oe, {
|
|
2091
2091
|
data: Ae,
|
|
2092
2092
|
item: ie.item,
|
|
2093
2093
|
model: l.value
|
|
@@ -2110,7 +2110,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2110
2110
|
_: 3
|
|
2111
2111
|
}, 16, ["modelValue", "style"])
|
|
2112
2112
|
];
|
|
2113
|
-
}, !0) :
|
|
2113
|
+
}, !0) : C(y.$slots, "default", { key: 1 }, () => [
|
|
2114
2114
|
(m(!0), z(se, null, W(G.value, (oe, me) => (m(), D(p, Y({ ref_for: !0 }, { ...l.value.form.cols, ...oe.col }, {
|
|
2115
2115
|
key: me,
|
|
2116
2116
|
style: { width: "100%" }
|
|
@@ -2124,7 +2124,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2124
2124
|
rules: q(oe)
|
|
2125
2125
|
}, { ref_for: !0 }, { ...(Fe = l.value) == null ? void 0 : Fe.formItems, ...oe == null ? void 0 : oe.formItem }, { style: { width: "100%" } }), {
|
|
2126
2126
|
label: $((be) => [
|
|
2127
|
-
|
|
2127
|
+
C(y.$slots, `f-${me}-label`, {
|
|
2128
2128
|
data: be,
|
|
2129
2129
|
item: oe,
|
|
2130
2130
|
model: l.value
|
|
@@ -2133,7 +2133,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2133
2133
|
], !0)
|
|
2134
2134
|
]),
|
|
2135
2135
|
default: $(() => [
|
|
2136
|
-
|
|
2136
|
+
C(y.$slots, "f-" + me, {
|
|
2137
2137
|
item: oe,
|
|
2138
2138
|
formInfo: f.value,
|
|
2139
2139
|
model: l.value,
|
|
@@ -2145,7 +2145,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2145
2145
|
item: U(oe, !0),
|
|
2146
2146
|
ctrlKey: me,
|
|
2147
2147
|
ctrlType: V(oe),
|
|
2148
|
-
key: `${me}-${
|
|
2148
|
+
key: `${me}-${T.value}`,
|
|
2149
2149
|
model: l.value,
|
|
2150
2150
|
class: "g-ctrl-container",
|
|
2151
2151
|
t: "f",
|
|
@@ -2154,7 +2154,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2154
2154
|
W(y.$slots, (be, ie) => ({
|
|
2155
2155
|
name: ie,
|
|
2156
2156
|
fn: $((Ge) => [
|
|
2157
|
-
|
|
2157
|
+
C(y.$slots, ie, {
|
|
2158
2158
|
data: Ge,
|
|
2159
2159
|
item: oe,
|
|
2160
2160
|
model: l.value
|
|
@@ -2174,14 +2174,14 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2174
2174
|
]),
|
|
2175
2175
|
_: 3
|
|
2176
2176
|
}, 16, ["model"]),
|
|
2177
|
-
(Ye = (_e = (ae = l.value) == null ? void 0 : ae.form) == null ? void 0 : _e.footer) != null && Ye.hidden ? ke("", !0) :
|
|
2177
|
+
(Ye = (_e = (ae = l.value) == null ? void 0 : ae.form) == null ? void 0 : _e.footer) != null && Ye.hidden ? ke("", !0) : C(y.$slots, "f-footer", { key: 0 }, () => [
|
|
2178
2178
|
K("div", {
|
|
2179
2179
|
style: Ue({ justifyContent: k(l.value.form.footer.align), ...l.value.form.footer.style })
|
|
2180
2180
|
}, [
|
|
2181
|
-
|
|
2181
|
+
C(y.$slots, "f-footer-left", {}, void 0, !0),
|
|
2182
2182
|
(m(!0), z(se, null, W(Te.value, (oe) => (m(), z(se, null, [
|
|
2183
|
-
|
|
2184
|
-
|
|
2183
|
+
C(y.$slots, oe.name + "-left", {}, void 0, !0),
|
|
2184
|
+
C(y.$slots, oe.name, {}, () => {
|
|
2185
2185
|
var me;
|
|
2186
2186
|
return [
|
|
2187
2187
|
(me = oe == null ? void 0 : oe.info) != null && me.hidden ? ke("", !0) : (m(), D(ee, Y({
|
|
@@ -2197,15 +2197,15 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2197
2197
|
}, 1040, ["onClick"]))
|
|
2198
2198
|
];
|
|
2199
2199
|
}, !0),
|
|
2200
|
-
|
|
2200
|
+
C(y.$slots, oe.name + "-right", {}, void 0, !0)
|
|
2201
2201
|
], 64))), 256)),
|
|
2202
|
-
|
|
2202
|
+
C(y.$slots, "f-footer-right", {}, void 0, !0)
|
|
2203
2203
|
], 4)
|
|
2204
2204
|
], !0)
|
|
2205
2205
|
]);
|
|
2206
2206
|
};
|
|
2207
2207
|
}
|
|
2208
|
-
}), Ft = /* @__PURE__ */ nt(
|
|
2208
|
+
}), Ft = /* @__PURE__ */ nt(Ca, [["__scopeId", "data-v-5a0fe2f9"]]), Ma = { class: "dialog-container" }, Sa = {
|
|
2209
2209
|
key: 1,
|
|
2210
2210
|
style: { overflow: "hidden" }
|
|
2211
2211
|
}, Ta = { style: { display: "flex", flex: "1", "margin-left": "10px" } }, Ea = /* @__PURE__ */ Object.assign({
|
|
@@ -2253,7 +2253,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2253
2253
|
"restore"
|
|
2254
2254
|
],
|
|
2255
2255
|
setup(n, { expose: d, emit: e }) {
|
|
2256
|
-
const l = n, s = zt(), o = e, t = re(l.fullscreen), f = Be(() => l.type === "drawer" ? "el-drawer" : "el-dialog"),
|
|
2256
|
+
const l = n, s = zt(), o = e, t = re(l.fullscreen), f = Be(() => l.type === "drawer" ? "el-drawer" : "el-dialog"), T = Be(() => {
|
|
2257
2257
|
const le = {
|
|
2258
2258
|
modal: l.modal,
|
|
2259
2259
|
closeOnClickModal: l.type !== "dialog",
|
|
@@ -2317,12 +2317,12 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2317
2317
|
onClose: U,
|
|
2318
2318
|
onClosed: V,
|
|
2319
2319
|
draggable: ""
|
|
2320
|
-
},
|
|
2320
|
+
}, T.value, {
|
|
2321
2321
|
fullscreen: t.value,
|
|
2322
2322
|
"show-close": !1
|
|
2323
2323
|
}), $e({
|
|
2324
2324
|
header: $(({ titleClass: J, closeIconClass: fe }) => [
|
|
2325
|
-
|
|
2325
|
+
C(le.$slots, "header", {
|
|
2326
2326
|
titleClass: J,
|
|
2327
2327
|
closeIconClass: fe
|
|
2328
2328
|
}, () => [
|
|
@@ -2330,7 +2330,7 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2330
2330
|
class: "custom-header",
|
|
2331
2331
|
style: Ue(l.headerStyle)
|
|
2332
2332
|
}, [
|
|
2333
|
-
|
|
2333
|
+
C(le.$slots, "title", {}, () => [
|
|
2334
2334
|
K("span", Ta, Ie(n.title), 1)
|
|
2335
2335
|
], !0),
|
|
2336
2336
|
K("div", null, [
|
|
@@ -2369,21 +2369,21 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2369
2369
|
], !0)
|
|
2370
2370
|
]),
|
|
2371
2371
|
default: $(() => [
|
|
2372
|
-
|
|
2372
|
+
C(le.$slots, "default", {}, void 0, !0)
|
|
2373
2373
|
]),
|
|
2374
2374
|
_: 2
|
|
2375
2375
|
}, [
|
|
2376
2376
|
le.$slots.footer ? {
|
|
2377
2377
|
name: "footer",
|
|
2378
2378
|
fn: $(() => [
|
|
2379
|
-
|
|
2379
|
+
C(le.$slots, "footer", {}, void 0, !0)
|
|
2380
2380
|
]),
|
|
2381
2381
|
key: "0"
|
|
2382
2382
|
} : void 0,
|
|
2383
2383
|
l.type === "drawer" ? {
|
|
2384
2384
|
name: "trigger",
|
|
2385
2385
|
fn: $(() => [
|
|
2386
|
-
|
|
2386
|
+
C(le.$slots, "trigger", {}, void 0, !0)
|
|
2387
2387
|
]),
|
|
2388
2388
|
key: "1"
|
|
2389
2389
|
} : void 0
|
|
@@ -2403,38 +2403,38 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2403
2403
|
emits: ["excel"],
|
|
2404
2404
|
setup(n, { emit: d }) {
|
|
2405
2405
|
const e = n, l = d, s = re(e.items), o = () => {
|
|
2406
|
-
s.value.forEach((
|
|
2407
|
-
|
|
2406
|
+
s.value.forEach((T) => {
|
|
2407
|
+
T.value = !0;
|
|
2408
2408
|
});
|
|
2409
2409
|
}, t = () => {
|
|
2410
|
-
s.value.forEach((
|
|
2411
|
-
|
|
2410
|
+
s.value.forEach((T) => {
|
|
2411
|
+
T.value = !1;
|
|
2412
2412
|
});
|
|
2413
2413
|
}, f = () => {
|
|
2414
|
-
l("excel", s.value, (
|
|
2415
|
-
if (!
|
|
2414
|
+
l("excel", s.value, (T, v = "excel.xls") => {
|
|
2415
|
+
if (!T) {
|
|
2416
2416
|
console.error("下载链接无效");
|
|
2417
2417
|
return;
|
|
2418
2418
|
}
|
|
2419
2419
|
try {
|
|
2420
2420
|
const h = document.createElement("a");
|
|
2421
|
-
h.href =
|
|
2421
|
+
h.href = T, h.download = v, h.style.display = "none", document.body.appendChild(h), h.click(), document.body.removeChild(h);
|
|
2422
2422
|
} catch (h) {
|
|
2423
2423
|
console.error("下载文件时出现错误:", h);
|
|
2424
2424
|
}
|
|
2425
2425
|
});
|
|
2426
2426
|
};
|
|
2427
|
-
return
|
|
2428
|
-
const
|
|
2427
|
+
return xt(() => {
|
|
2428
|
+
const T = new xl(document.getElementById("excelSortEl"), {
|
|
2429
2429
|
animation: 150,
|
|
2430
2430
|
onEnd: () => {
|
|
2431
|
-
|
|
2431
|
+
T.toArray();
|
|
2432
2432
|
}
|
|
2433
|
-
}), v =
|
|
2433
|
+
}), v = T;
|
|
2434
2434
|
Ul(() => {
|
|
2435
2435
|
v && v.destroy();
|
|
2436
2436
|
});
|
|
2437
|
-
}), (
|
|
2437
|
+
}), (T, v) => {
|
|
2438
2438
|
const h = H("el-divider"), u = H("el-icon"), r = H("el-text"), c = H("el-checkbox"), q = H("el-button");
|
|
2439
2439
|
return m(), z("div", Va, [
|
|
2440
2440
|
K("div", null, [
|
|
@@ -2505,8 +2505,8 @@ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
|
|
|
2505
2505
|
]);
|
|
2506
2506
|
};
|
|
2507
2507
|
}
|
|
2508
|
-
}, Fa = /* @__PURE__ */ nt(Ya, [["__scopeId", "data-v-8d7383f9"]]), ja = "vue-gyc-ui", za = 1,
|
|
2509
|
-
|
|
2508
|
+
}, Fa = /* @__PURE__ */ nt(Ya, [["__scopeId", "data-v-8d7383f9"]]), ja = "vue-gyc-ui", za = 1, xe = new ra(ja);
|
|
2509
|
+
xe.version(za).stores({
|
|
2510
2510
|
// 记录表格项设置信息
|
|
2511
2511
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2512
2512
|
// 记录表格分页条数
|
|
@@ -2522,8 +2522,8 @@ const mt = (n, d) => {
|
|
|
2522
2522
|
};
|
|
2523
2523
|
async function Ot(n, d, e) {
|
|
2524
2524
|
try {
|
|
2525
|
-
const l = await
|
|
2526
|
-
l ? e === "add" ? l.keys.includes(d) || (l.keys.push(d), await
|
|
2525
|
+
const l = await xe.tableColsState.where({ page: n }).first();
|
|
2526
|
+
l ? e === "add" ? l.keys.includes(d) || (l.keys.push(d), await xe.tableColsState.put(l)) : e === "del" ? (l.keys = l.keys.filter((s) => s !== d), await xe.tableColsState.put(l)) : e === "delAll" ? (l.keys = d, await xe.tableColsState.put(l)) : e === "selectAll" && await xe.tableColsState.where({ page: n }).delete() : e === "add" ? await xe.tableColsState.add({ page: n, keys: [d] }) : e === "delAll" && await xe.tableColsState.add({ page: n, keys: d });
|
|
2527
2527
|
} catch (l) {
|
|
2528
2528
|
throw console.error(`处理表格列状态时出错 (page: ${n}, key: ${d}, state: ${e}):`, l), l;
|
|
2529
2529
|
}
|
|
@@ -2531,8 +2531,8 @@ async function Ot(n, d, e) {
|
|
|
2531
2531
|
async function Ua(n, d, e) {
|
|
2532
2532
|
mt(n);
|
|
2533
2533
|
try {
|
|
2534
|
-
const l = await
|
|
2535
|
-
return l ? (await
|
|
2534
|
+
const l = await xe.tableWidths.where({ page: n, key: d }).first();
|
|
2535
|
+
return l ? (await xe.tableWidths.put({ ...l, width: e }), "update success") : (await xe.tableWidths.add({ page: n, key: d, width: e }), "add success");
|
|
2536
2536
|
} catch (l) {
|
|
2537
2537
|
throw console.error(`保存表格项设置信息时出错 (page: ${n}, key: ${d}):`, l), l;
|
|
2538
2538
|
}
|
|
@@ -2540,7 +2540,7 @@ async function Ua(n, d, e) {
|
|
|
2540
2540
|
async function La(n) {
|
|
2541
2541
|
mt(n);
|
|
2542
2542
|
try {
|
|
2543
|
-
return await
|
|
2543
|
+
return await xe.tableWidths.where({ page: n }).toArray();
|
|
2544
2544
|
} catch (d) {
|
|
2545
2545
|
throw console.error(`获取表格项设置信息时出错 (page: ${n}):`, d), d;
|
|
2546
2546
|
}
|
|
@@ -2548,7 +2548,7 @@ async function La(n) {
|
|
|
2548
2548
|
async function Ha(n) {
|
|
2549
2549
|
mt(n);
|
|
2550
2550
|
try {
|
|
2551
|
-
const d = await
|
|
2551
|
+
const d = await xe.tableColsState.where({ page: n }).toArray();
|
|
2552
2552
|
return !d || d.length === 0 ? [] : d[0].keys;
|
|
2553
2553
|
} catch (d) {
|
|
2554
2554
|
throw console.error(`获取表格列状态时出错 (page: ${n}):`, d), d;
|
|
@@ -2557,12 +2557,12 @@ async function Ha(n) {
|
|
|
2557
2557
|
async function Ra(n) {
|
|
2558
2558
|
mt(n);
|
|
2559
2559
|
try {
|
|
2560
|
-
return await
|
|
2560
|
+
return await xe.transaction("rw", xe.tableWidths, xe.pageInfo, xe.sorts, xe.tableColsState, async () => {
|
|
2561
2561
|
await Promise.all([
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2562
|
+
xe.tableWidths.where({ page: n }).delete(),
|
|
2563
|
+
xe.pageInfo.where({ page: n }).delete(),
|
|
2564
|
+
xe.sorts.where({ page: n }).delete(),
|
|
2565
|
+
xe.tableColsState.where({ page: n }).delete()
|
|
2566
2566
|
]);
|
|
2567
2567
|
});
|
|
2568
2568
|
} catch (d) {
|
|
@@ -2572,8 +2572,8 @@ async function Ra(n) {
|
|
|
2572
2572
|
async function Ba({ page: n, size: d }) {
|
|
2573
2573
|
mt(n);
|
|
2574
2574
|
try {
|
|
2575
|
-
const e = await
|
|
2576
|
-
return e ? (await
|
|
2575
|
+
const e = await xe.pageInfo.where({ page: n }).first();
|
|
2576
|
+
return e ? (await xe.pageInfo.put({ ...e, size: d }), "update success") : (await xe.pageInfo.add({ page: n, size: d }), "add success");
|
|
2577
2577
|
} catch (e) {
|
|
2578
2578
|
throw console.error(`保存分页条数时出错 (page: ${n}):`, e), e;
|
|
2579
2579
|
}
|
|
@@ -2581,7 +2581,7 @@ async function Ba({ page: n, size: d }) {
|
|
|
2581
2581
|
async function Pa(n) {
|
|
2582
2582
|
mt(n);
|
|
2583
2583
|
try {
|
|
2584
|
-
const d = await
|
|
2584
|
+
const d = await xe.pageInfo.where({ page: n }).first();
|
|
2585
2585
|
return d == null ? void 0 : d.size;
|
|
2586
2586
|
} catch (d) {
|
|
2587
2587
|
throw console.error(`获取分页条数时出错 (page: ${n}):`, d), d;
|
|
@@ -2590,8 +2590,8 @@ async function Pa(n) {
|
|
|
2590
2590
|
async function Na(n, d) {
|
|
2591
2591
|
mt(n);
|
|
2592
2592
|
try {
|
|
2593
|
-
const e = await
|
|
2594
|
-
return e ? (await
|
|
2593
|
+
const e = await xe.sorts.where({ page: n }).first();
|
|
2594
|
+
return e ? (await xe.sorts.put({ ...e, keys: d }), "update success") : (await xe.sorts.add({ page: n, keys: d }), "add success");
|
|
2595
2595
|
} catch (e) {
|
|
2596
2596
|
throw console.error(`保存表格字段顺序时出错 (page: ${n}):`, e), e;
|
|
2597
2597
|
}
|
|
@@ -2599,7 +2599,7 @@ async function Na(n, d) {
|
|
|
2599
2599
|
async function Wa(n) {
|
|
2600
2600
|
mt(n);
|
|
2601
2601
|
try {
|
|
2602
|
-
const d = await
|
|
2602
|
+
const d = await xe.sorts.where({ page: n }).first();
|
|
2603
2603
|
return (d == null ? void 0 : d.keys) || [];
|
|
2604
2604
|
} catch (d) {
|
|
2605
2605
|
throw console.error(`获取表格字段顺序时出错 (page: ${n}):`, d), d;
|
|
@@ -2631,7 +2631,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2631
2631
|
}, f = () => {
|
|
2632
2632
|
const u = document.getElementById("cols");
|
|
2633
2633
|
if (u) {
|
|
2634
|
-
let r =
|
|
2634
|
+
let r = xl.create(u, {
|
|
2635
2635
|
animation: 150,
|
|
2636
2636
|
filter: ".filtered",
|
|
2637
2637
|
sort: !0,
|
|
@@ -2650,7 +2650,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2650
2650
|
}
|
|
2651
2651
|
});
|
|
2652
2652
|
}
|
|
2653
|
-
},
|
|
2653
|
+
}, T = async () => {
|
|
2654
2654
|
try {
|
|
2655
2655
|
s.value.forEach((u) => {
|
|
2656
2656
|
u.showCol = !0;
|
|
@@ -2693,7 +2693,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2693
2693
|
});
|
|
2694
2694
|
});
|
|
2695
2695
|
};
|
|
2696
|
-
return
|
|
2696
|
+
return xt(async () => {
|
|
2697
2697
|
s.value = Object.entries(o.value).filter(([, u]) => u.visible !== !1).filter(([, u]) => !["selection", "index", "expand", "control"].includes(u.type)).filter(([, u]) => u.type != "hidden").map(([u, r]) => ({
|
|
2698
2698
|
label: r.label,
|
|
2699
2699
|
value: u,
|
|
@@ -2707,7 +2707,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2707
2707
|
return m(), z("div", Ga, [
|
|
2708
2708
|
K("div", Xa, [
|
|
2709
2709
|
K("div", Qa, [
|
|
2710
|
-
K("a", { onClick:
|
|
2710
|
+
K("a", { onClick: T }, "全选"),
|
|
2711
2711
|
de(c, { direction: "vertical" }),
|
|
2712
2712
|
K("a", { onClick: v }, "全不选"),
|
|
2713
2713
|
de(c, { direction: "vertical" }),
|
|
@@ -2830,7 +2830,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2830
2830
|
}), f = (r) => {
|
|
2831
2831
|
const c = d.m[r], q = c == null ? void 0 : c.view, U = typeof q == "function" ? q(d.row, null, 0, d.m) : q || {}, V = c == null ? void 0 : c.table;
|
|
2832
2832
|
return { ...typeof V == "function" ? V(d.row) || {} : {}, ...U };
|
|
2833
|
-
},
|
|
2833
|
+
}, T = (r) => {
|
|
2834
2834
|
const c = f(r);
|
|
2835
2835
|
return (c == null ? void 0 : c.type) || "text-info";
|
|
2836
2836
|
}, v = Be(() => Object.entries(d.m).filter(([r, c]) => {
|
|
@@ -2867,7 +2867,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2867
2867
|
label: (G = d.m[k]) == null ? void 0 : G.label
|
|
2868
2868
|
}, { ref_for: !0 }, { ...t.value, ...((le = f(k)) == null ? void 0 : le.item) || {} }, { key: k }), {
|
|
2869
2869
|
label: $(() => [
|
|
2870
|
-
|
|
2870
|
+
C(r.$slots, `view-${k}-label`, {
|
|
2871
2871
|
row: d.row
|
|
2872
2872
|
}, () => {
|
|
2873
2873
|
var R;
|
|
@@ -2877,7 +2877,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2877
2877
|
}, !0)
|
|
2878
2878
|
]),
|
|
2879
2879
|
default: $(() => [
|
|
2880
|
-
|
|
2880
|
+
C(r.$slots, `view-${k}`, {
|
|
2881
2881
|
row: d.row
|
|
2882
2882
|
}, () => [
|
|
2883
2883
|
de(_t, {
|
|
@@ -2885,7 +2885,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2885
2885
|
"onUpdate:modelValue": (R) => u.value[k] = R,
|
|
2886
2886
|
item: f(k),
|
|
2887
2887
|
ctrlKey: k,
|
|
2888
|
-
ctrlType:
|
|
2888
|
+
ctrlType: T(k),
|
|
2889
2889
|
model: d.row,
|
|
2890
2890
|
formInfo: d.row,
|
|
2891
2891
|
t: "v"
|
|
@@ -2901,7 +2901,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
|
|
|
2901
2901
|
W(r.$slots, (k, Q, G) => ({
|
|
2902
2902
|
name: Q,
|
|
2903
2903
|
fn: $((le) => [
|
|
2904
|
-
|
|
2904
|
+
C(r.$slots, Q, { model: le }, void 0, !0)
|
|
2905
2905
|
])
|
|
2906
2906
|
}))
|
|
2907
2907
|
]), 1040)
|
|
@@ -3021,26 +3021,26 @@ function ur(n) {
|
|
|
3021
3021
|
(function() {
|
|
3022
3022
|
var n = or, d = fl.utf8, e = sr, l = fl.bin, s = function(o, t) {
|
|
3023
3023
|
o.constructor == String ? t && t.encoding === "binary" ? o = l.stringToBytes(o) : o = d.stringToBytes(o) : e(o) ? o = Array.prototype.slice.call(o, 0) : !Array.isArray(o) && o.constructor !== Uint8Array && (o = o.toString());
|
|
3024
|
-
for (var f = n.bytesToWords(o),
|
|
3024
|
+
for (var f = n.bytesToWords(o), T = o.length * 8, v = 1732584193, h = -271733879, u = -1732584194, r = 271733878, c = 0; c < f.length; c++)
|
|
3025
3025
|
f[c] = (f[c] << 8 | f[c] >>> 24) & 16711935 | (f[c] << 24 | f[c] >>> 8) & 4278255360;
|
|
3026
|
-
f[
|
|
3026
|
+
f[T >>> 5] |= 128 << T % 32, f[(T + 64 >>> 9 << 4) + 14] = T;
|
|
3027
3027
|
for (var q = s._ff, U = s._gg, V = s._hh, k = s._ii, c = 0; c < f.length; c += 16) {
|
|
3028
3028
|
var Q = v, G = h, le = u, R = r;
|
|
3029
3029
|
v = q(v, h, u, r, f[c + 0], 7, -680876936), r = q(r, v, h, u, f[c + 1], 12, -389564586), u = q(u, r, v, h, f[c + 2], 17, 606105819), h = q(h, u, r, v, f[c + 3], 22, -1044525330), v = q(v, h, u, r, f[c + 4], 7, -176418897), r = q(r, v, h, u, f[c + 5], 12, 1200080426), u = q(u, r, v, h, f[c + 6], 17, -1473231341), h = q(h, u, r, v, f[c + 7], 22, -45705983), v = q(v, h, u, r, f[c + 8], 7, 1770035416), r = q(r, v, h, u, f[c + 9], 12, -1958414417), u = q(u, r, v, h, f[c + 10], 17, -42063), h = q(h, u, r, v, f[c + 11], 22, -1990404162), v = q(v, h, u, r, f[c + 12], 7, 1804603682), r = q(r, v, h, u, f[c + 13], 12, -40341101), u = q(u, r, v, h, f[c + 14], 17, -1502002290), h = q(h, u, r, v, f[c + 15], 22, 1236535329), v = U(v, h, u, r, f[c + 1], 5, -165796510), r = U(r, v, h, u, f[c + 6], 9, -1069501632), u = U(u, r, v, h, f[c + 11], 14, 643717713), h = U(h, u, r, v, f[c + 0], 20, -373897302), v = U(v, h, u, r, f[c + 5], 5, -701558691), r = U(r, v, h, u, f[c + 10], 9, 38016083), u = U(u, r, v, h, f[c + 15], 14, -660478335), h = U(h, u, r, v, f[c + 4], 20, -405537848), v = U(v, h, u, r, f[c + 9], 5, 568446438), r = U(r, v, h, u, f[c + 14], 9, -1019803690), u = U(u, r, v, h, f[c + 3], 14, -187363961), h = U(h, u, r, v, f[c + 8], 20, 1163531501), v = U(v, h, u, r, f[c + 13], 5, -1444681467), r = U(r, v, h, u, f[c + 2], 9, -51403784), u = U(u, r, v, h, f[c + 7], 14, 1735328473), h = U(h, u, r, v, f[c + 12], 20, -1926607734), v = V(v, h, u, r, f[c + 5], 4, -378558), r = V(r, v, h, u, f[c + 8], 11, -2022574463), u = V(u, r, v, h, f[c + 11], 16, 1839030562), h = V(h, u, r, v, f[c + 14], 23, -35309556), v = V(v, h, u, r, f[c + 1], 4, -1530992060), r = V(r, v, h, u, f[c + 4], 11, 1272893353), u = V(u, r, v, h, f[c + 7], 16, -155497632), h = V(h, u, r, v, f[c + 10], 23, -1094730640), v = V(v, h, u, r, f[c + 13], 4, 681279174), r = V(r, v, h, u, f[c + 0], 11, -358537222), u = V(u, r, v, h, f[c + 3], 16, -722521979), h = V(h, u, r, v, f[c + 6], 23, 76029189), v = V(v, h, u, r, f[c + 9], 4, -640364487), r = V(r, v, h, u, f[c + 12], 11, -421815835), u = V(u, r, v, h, f[c + 15], 16, 530742520), h = V(h, u, r, v, f[c + 2], 23, -995338651), v = k(v, h, u, r, f[c + 0], 6, -198630844), r = k(r, v, h, u, f[c + 7], 10, 1126891415), u = k(u, r, v, h, f[c + 14], 15, -1416354905), h = k(h, u, r, v, f[c + 5], 21, -57434055), v = k(v, h, u, r, f[c + 12], 6, 1700485571), r = k(r, v, h, u, f[c + 3], 10, -1894986606), u = k(u, r, v, h, f[c + 10], 15, -1051523), h = k(h, u, r, v, f[c + 1], 21, -2054922799), v = k(v, h, u, r, f[c + 8], 6, 1873313359), r = k(r, v, h, u, f[c + 15], 10, -30611744), u = k(u, r, v, h, f[c + 6], 15, -1560198380), h = k(h, u, r, v, f[c + 13], 21, 1309151649), v = k(v, h, u, r, f[c + 4], 6, -145523070), r = k(r, v, h, u, f[c + 11], 10, -1120210379), u = k(u, r, v, h, f[c + 2], 15, 718787259), h = k(h, u, r, v, f[c + 9], 21, -343485551), v = v + Q >>> 0, h = h + G >>> 0, u = u + le >>> 0, r = r + R >>> 0;
|
|
3030
3030
|
}
|
|
3031
3031
|
return n.endian([v, h, u, r]);
|
|
3032
3032
|
};
|
|
3033
|
-
s._ff = function(o, t, f,
|
|
3034
|
-
var r = o + (t & f | ~t &
|
|
3033
|
+
s._ff = function(o, t, f, T, v, h, u) {
|
|
3034
|
+
var r = o + (t & f | ~t & T) + (v >>> 0) + u;
|
|
3035
3035
|
return (r << h | r >>> 32 - h) + t;
|
|
3036
|
-
}, s._gg = function(o, t, f,
|
|
3037
|
-
var r = o + (t &
|
|
3036
|
+
}, s._gg = function(o, t, f, T, v, h, u) {
|
|
3037
|
+
var r = o + (t & T | f & ~T) + (v >>> 0) + u;
|
|
3038
3038
|
return (r << h | r >>> 32 - h) + t;
|
|
3039
|
-
}, s._hh = function(o, t, f,
|
|
3040
|
-
var r = o + (t ^ f ^
|
|
3039
|
+
}, s._hh = function(o, t, f, T, v, h, u) {
|
|
3040
|
+
var r = o + (t ^ f ^ T) + (v >>> 0) + u;
|
|
3041
3041
|
return (r << h | r >>> 32 - h) + t;
|
|
3042
|
-
}, s._ii = function(o, t, f,
|
|
3043
|
-
var r = o + (f ^ (t | ~
|
|
3042
|
+
}, s._ii = function(o, t, f, T, v, h, u) {
|
|
3043
|
+
var r = o + (f ^ (t | ~T)) + (v >>> 0) + u;
|
|
3044
3044
|
return (r << h | r >>> 32 - h) + t;
|
|
3045
3045
|
}, s._blocksize = 16, s._digestsize = 16, El.exports = function(o, t) {
|
|
3046
3046
|
if (o == null)
|
|
@@ -3050,7 +3050,7 @@ function ur(n) {
|
|
|
3050
3050
|
};
|
|
3051
3051
|
})();
|
|
3052
3052
|
var ir = El.exports;
|
|
3053
|
-
const dr = /* @__PURE__ */
|
|
3053
|
+
const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
|
|
3054
3054
|
key: 0,
|
|
3055
3055
|
class: "table-query-container"
|
|
3056
3056
|
}, vr = { class: "table-container" }, pr = ["innerHTML"], mr = /* @__PURE__ */ Object.assign({
|
|
@@ -3082,18 +3082,18 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3082
3082
|
"node-init"
|
|
3083
3083
|
], ["update:modelValue", "update:selectedRows"]),
|
|
3084
3084
|
setup(n, { expose: d, emit: e }) {
|
|
3085
|
-
var lt, Xe, Je, Ke, et,
|
|
3086
|
-
const l = re(""), s = n, o = e, t = ot(n, "modelValue"), f = jt("options"),
|
|
3087
|
-
var
|
|
3085
|
+
var lt, Xe, Je, Ke, et, Ct, Mt;
|
|
3086
|
+
const l = re(""), s = n, o = e, t = ot(n, "modelValue"), f = jt("options"), T = re({}), v = re(!0), h = Object.entries(t.value).filter(([a, i]) => (i == null ? void 0 : i.search) !== void 0).map(([a, i]) => {
|
|
3087
|
+
var x;
|
|
3088
3088
|
let g;
|
|
3089
3089
|
if (typeof i.search == "function") {
|
|
3090
|
-
const O = i.search(
|
|
3090
|
+
const O = i.search(T.value);
|
|
3091
3091
|
g = (O == null ? void 0 : O.value) ?? i.value;
|
|
3092
3092
|
} else
|
|
3093
|
-
g = ((
|
|
3093
|
+
g = ((x = i.search) == null ? void 0 : x.value) ?? i.value;
|
|
3094
3094
|
return [a, g];
|
|
3095
3095
|
});
|
|
3096
|
-
|
|
3096
|
+
T.value = Object.fromEntries(h);
|
|
3097
3097
|
const u = re(!1), r = [
|
|
3098
3098
|
"type",
|
|
3099
3099
|
"index",
|
|
@@ -3139,10 +3139,10 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3139
3139
|
try {
|
|
3140
3140
|
o(
|
|
3141
3141
|
"load",
|
|
3142
|
-
{ currentPage: i, pageSize: g, ...
|
|
3143
|
-
(
|
|
3142
|
+
{ currentPage: i, pageSize: g, ...T.value },
|
|
3143
|
+
(x = [], O = 0, { fields: P = [], sums: N = {} } = {}) => {
|
|
3144
3144
|
var we;
|
|
3145
|
-
if (!Array.isArray(
|
|
3145
|
+
if (!Array.isArray(x)) {
|
|
3146
3146
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), ft.error("数据加载失败,请检查数据格式。");
|
|
3147
3147
|
return;
|
|
3148
3148
|
}
|
|
@@ -3150,19 +3150,19 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3150
3150
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), ft.error("数据加载失败,请检查数据格式。");
|
|
3151
3151
|
return;
|
|
3152
3152
|
}
|
|
3153
|
-
t.value.table.data =
|
|
3153
|
+
t.value.table.data = x, ((we = t.value.control) == null ? void 0 : we.add(k.value, t).inline) === !0 && t.value.table.data.unshift(k.value), t.value.table.page.total = O, V.value = P, U.value = N, E(), Q.value = Math.random().toString(36).substring(2);
|
|
3154
3154
|
},
|
|
3155
3155
|
k.value
|
|
3156
3156
|
);
|
|
3157
|
-
} catch (
|
|
3158
|
-
console.error("触发 load 事件时出现错误:",
|
|
3157
|
+
} catch (x) {
|
|
3158
|
+
console.error("触发 load 事件时出现错误:", x), ft.error("数据加载时出现错误,请稍后重试。");
|
|
3159
3159
|
}
|
|
3160
3160
|
},
|
|
3161
3161
|
onHeaderDragend: (a, i, g) => {
|
|
3162
3162
|
Ua(G.value, g.property, a);
|
|
3163
3163
|
},
|
|
3164
3164
|
onRowDblclick: (a, i, g) => {
|
|
3165
|
-
t.value.table.dblclickType == "edit" ? w(a, i, g, t) : t.value.table.dblclickType == "view" ?
|
|
3165
|
+
t.value.table.dblclickType == "edit" ? w(a, i, g, t) : t.value.table.dblclickType == "view" ? S(a, i, g, t) : t.value.table.dblclickType == "delete" ? p(a, i, g, t) : t.value.table.dblclickType(a, i, g, t);
|
|
3166
3166
|
},
|
|
3167
3167
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
3168
3168
|
page: {
|
|
@@ -3189,7 +3189,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3189
3189
|
},
|
|
3190
3190
|
dblclickType: "edit",
|
|
3191
3191
|
"summary-method": ({ columns: a, data: i }, g) => g,
|
|
3192
|
-
onSortChange: ({ column: a, prop: i, order: g },
|
|
3192
|
+
onSortChange: ({ column: a, prop: i, order: g }, x) => {
|
|
3193
3193
|
},
|
|
3194
3194
|
onSelectionChange: (a) => {
|
|
3195
3195
|
le.value = a;
|
|
@@ -3212,7 +3212,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3212
3212
|
fixed: "right",
|
|
3213
3213
|
style: { ...(Xe = (lt = t.value) == null ? void 0 : lt.control) == null ? void 0 : Xe.style },
|
|
3214
3214
|
validate: async (a) => await !0,
|
|
3215
|
-
view: (a, i, g,
|
|
3215
|
+
view: (a, i, g, x) => ({
|
|
3216
3216
|
label: "详情",
|
|
3217
3217
|
text: !0,
|
|
3218
3218
|
type: "success",
|
|
@@ -3222,10 +3222,10 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3222
3222
|
icon: () => Se(ta),
|
|
3223
3223
|
auth: () => {
|
|
3224
3224
|
var O;
|
|
3225
|
-
return !(((O =
|
|
3225
|
+
return !(((O = x == null ? void 0 : x.control) == null ? void 0 : O.add(a, x).inline) === !0 && g === 0);
|
|
3226
3226
|
}
|
|
3227
3227
|
}),
|
|
3228
|
-
edit: (a, i, g,
|
|
3228
|
+
edit: (a, i, g, x) => ({
|
|
3229
3229
|
label: "编辑",
|
|
3230
3230
|
text: !0,
|
|
3231
3231
|
type: "primary",
|
|
@@ -3233,17 +3233,17 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3233
3233
|
icon: () => Se(_l),
|
|
3234
3234
|
auth: () => {
|
|
3235
3235
|
var O;
|
|
3236
|
-
return ((O =
|
|
3236
|
+
return ((O = x == null ? void 0 : x.control) == null ? void 0 : O.add(a, x).inline) !== !0;
|
|
3237
3237
|
}
|
|
3238
3238
|
}),
|
|
3239
|
-
delete: (a, i, g,
|
|
3239
|
+
delete: (a, i, g, x) => ({
|
|
3240
3240
|
text: !0,
|
|
3241
3241
|
label: "删除",
|
|
3242
3242
|
type: "danger",
|
|
3243
3243
|
icon: () => Se(Wt),
|
|
3244
3244
|
auth: () => {
|
|
3245
3245
|
var O;
|
|
3246
|
-
return !(((O =
|
|
3246
|
+
return !(((O = x.control) == null ? void 0 : O.add(a, x).inline) === !0 && g === 0);
|
|
3247
3247
|
},
|
|
3248
3248
|
dialog: {
|
|
3249
3249
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -3255,17 +3255,17 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3255
3255
|
}
|
|
3256
3256
|
}
|
|
3257
3257
|
}),
|
|
3258
|
-
save: (a, i, g,
|
|
3258
|
+
save: (a, i, g, x) => {
|
|
3259
3259
|
var O, P;
|
|
3260
3260
|
return {
|
|
3261
|
-
label: ((O =
|
|
3261
|
+
label: ((O = x.control) == null ? void 0 : O.add(a, x).inline) !== !0 ? "保存" : g === 0 ? "新增" : "保存",
|
|
3262
3262
|
text: !0,
|
|
3263
3263
|
icon: () => Se(Rt),
|
|
3264
|
-
type: ((P =
|
|
3264
|
+
type: ((P = x.control) == null ? void 0 : P.add(a, x).inline) !== !0 || g === 0 ? "primary" : "success",
|
|
3265
3265
|
sort: -1,
|
|
3266
3266
|
auth: () => {
|
|
3267
3267
|
var N;
|
|
3268
|
-
return ((N =
|
|
3268
|
+
return ((N = x.control) == null ? void 0 : N.add(a, x).inline) === !0;
|
|
3269
3269
|
}
|
|
3270
3270
|
};
|
|
3271
3271
|
},
|
|
@@ -3311,16 +3311,16 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3311
3311
|
icon: () => Se(Kl),
|
|
3312
3312
|
auth: () => !0
|
|
3313
3313
|
}),
|
|
3314
|
-
dropdown: (a, i, g,
|
|
3314
|
+
dropdown: (a, i, g, x) => ({
|
|
3315
3315
|
label: "编辑",
|
|
3316
3316
|
operate: "edit",
|
|
3317
3317
|
"split-button": !0,
|
|
3318
3318
|
type: "primary",
|
|
3319
|
-
auth: () => !(
|
|
3319
|
+
auth: () => !(x.control.add(a, x).inline === !0 && g == 0),
|
|
3320
3320
|
onClick: () => {
|
|
3321
3321
|
var P;
|
|
3322
|
-
let O = (P = Te(a, i, g,
|
|
3323
|
-
O === "edit" ? w(a, i, g,
|
|
3322
|
+
let O = (P = Te(a, i, g, x)) == null ? void 0 : P.operate;
|
|
3323
|
+
O === "edit" ? w(a, i, g, x) : O === "delete" ? p(a, i, g, x) : O === "view" && S(a, i, g, x);
|
|
3324
3324
|
},
|
|
3325
3325
|
"button-props": { round: !0, plain: !0 }
|
|
3326
3326
|
})
|
|
@@ -3331,7 +3331,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3331
3331
|
(Je = t.value) == null ? void 0 : Je.control
|
|
3332
3332
|
);
|
|
3333
3333
|
const fe = (a, i = !0) => {
|
|
3334
|
-
const g = t.value.control[a],
|
|
3334
|
+
const g = t.value.control[a], x = i ? (O, P, N, we) => {
|
|
3335
3335
|
var Pe, tt, ht;
|
|
3336
3336
|
if (!O || !P || N == null)
|
|
3337
3337
|
return console.warn(`merge${a.charAt(0).toUpperCase() + a.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
@@ -3342,20 +3342,20 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3342
3342
|
const N = ((qe = J[a]) == null ? void 0 : qe.call(J, O, P)) || {}, we = ((Pe = (je = f == null ? void 0 : f.control) == null ? void 0 : je[a]) == null ? void 0 : Pe.call(je, O, P)) || {}, Ee = (g == null ? void 0 : g(O, P)) || {};
|
|
3343
3343
|
return ze(N, we, Ee) || {};
|
|
3344
3344
|
};
|
|
3345
|
-
t.value.control[a] =
|
|
3345
|
+
t.value.control[a] = x;
|
|
3346
3346
|
};
|
|
3347
3347
|
fe("edit"), fe("delete"), fe("view"), fe("save"), fe("add", !1), fe("download", !1), fe("setting", !1), fe("batch", !1), fe("toggleExpand", !1);
|
|
3348
|
-
const Te = (a, i, g,
|
|
3348
|
+
const Te = (a, i, g, x) => {
|
|
3349
3349
|
var we, Ee, qe, je, Pe, tt;
|
|
3350
3350
|
if (!a || !i || g == null)
|
|
3351
3351
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
3352
|
-
const O = ((we = J.dropdown) == null ? void 0 : we.call(J, a, i, g,
|
|
3352
|
+
const O = ((we = J.dropdown) == null ? void 0 : we.call(J, a, i, g, x)) || {}, P = ((qe = (Ee = f == null ? void 0 : f.control) == null ? void 0 : Ee.dropdown) == null ? void 0 : qe.call(Ee, a, i, g, x)) || {}, N = ((tt = (Pe = (je = t.value) == null ? void 0 : je.control) == null ? void 0 : Pe.dropdown) == null ? void 0 : tt.call(Pe, a, i, g, x)) || {};
|
|
3353
3353
|
return ze(O, P, N) || {};
|
|
3354
3354
|
}, Ve = {
|
|
3355
3355
|
type: "hidden",
|
|
3356
3356
|
"min-width": 100,
|
|
3357
3357
|
align: "center",
|
|
3358
|
-
formatter: (a, i, g,
|
|
3358
|
+
formatter: (a, i, g, x) => g,
|
|
3359
3359
|
"tooltip-formatter": ({ row: a, column: i, cellValue: g }) => Se(rr, { content: g, column: i })
|
|
3360
3360
|
};
|
|
3361
3361
|
t.value.tableColumns = ze(
|
|
@@ -3383,7 +3383,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3383
3383
|
t.value.formItems = ze(
|
|
3384
3384
|
ve,
|
|
3385
3385
|
f == null ? void 0 : f.formItems,
|
|
3386
|
-
(
|
|
3386
|
+
(Ct = t == null ? void 0 : t.value) == null ? void 0 : Ct.formItems
|
|
3387
3387
|
);
|
|
3388
3388
|
const L = {
|
|
3389
3389
|
title: "编辑",
|
|
@@ -3402,7 +3402,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3402
3402
|
f == null ? void 0 : f.dialog,
|
|
3403
3403
|
(Mt = t.value) == null ? void 0 : Mt.dialog
|
|
3404
3404
|
);
|
|
3405
|
-
const
|
|
3405
|
+
const Ce = (a, i) => {
|
|
3406
3406
|
let g = i;
|
|
3407
3407
|
if (a.precision && !isNaN(parseFloat(i)) && (typeof a.precision == "number" ? g = parseFloat(g).toFixed(a.precision) : typeof a.precision == "object" && a.precision.num && (a.precision.pad ? g = parseFloat(g).toFixed(a.precision.num) : g = parseFloat(
|
|
3408
3408
|
parseFloat(g).toFixed(a.precision.num)
|
|
@@ -3418,11 +3418,11 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3418
3418
|
parseFloat(g)
|
|
3419
3419
|
)}">${Ir(parseFloat(g), (a == null ? void 0 : a.precision) || 2, (a == null ? void 0 : a.removeZero) || !1)}</span>`), a.prefix && g && (g = `<span>${a.prefix}${g}</span>`), a.suffix && g && (g = `${g}<span>${a.suffix}</span>`), g;
|
|
3420
3420
|
}, Me = (a) => {
|
|
3421
|
-
|
|
3421
|
+
T.value = Object.fromEntries(h), t.value.table.load();
|
|
3422
3422
|
}, B = (a) => {
|
|
3423
|
-
|
|
3423
|
+
T.value = a, t.value.table.load();
|
|
3424
3424
|
}, A = async (a = k.value, i) => {
|
|
3425
|
-
var g,
|
|
3425
|
+
var g, x;
|
|
3426
3426
|
t.value.form.modalState = "add", l.value = "add";
|
|
3427
3427
|
try {
|
|
3428
3428
|
if (!await ((g = t.value.control) == null ? void 0 : g.validate("add", { row: k.value, m: i, node: s.node }))) return;
|
|
@@ -3430,7 +3430,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3430
3430
|
console.error("验证失败:", O);
|
|
3431
3431
|
return;
|
|
3432
3432
|
}
|
|
3433
|
-
(
|
|
3433
|
+
(x = t.value.control.add(k.value, i)) != null && x.click ? t.value.control.add(k.value, i).click(k.value, i) : (t.value.control.add(k.value, i).inline === !0 ? (t.value.table.data.unshift({ ...k.value }), await rt(), o("open", "row-add", { row: k.value, node: s.node })) : (t.value.form.disabled = !1, t.value.dialog.mode = t.value.control.add(k.value, i).mode, t.value.dialog.title = t.value.control.add(k.value, i).title || t.value.control.add(k.value, i).label || "新增", Object.keys(k.value).forEach((O) => {
|
|
3434
3434
|
t.value[O] && (t.value[O].value = k.value[O]);
|
|
3435
3435
|
}), u.value = !0, await rt(), o("open", "add", { row: k.value, node: s.node, m: i }), Yt()), await rt(), o("node-init", { row: k.value, node: s.node, m: i }));
|
|
3436
3436
|
}, y = () => {
|
|
@@ -3439,34 +3439,34 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3439
3439
|
o("toggleExpand", a), v.value = !1, t.value.table["default-expand-all"] = !t.value.table["default-expand-all"], rt(() => {
|
|
3440
3440
|
v.value = !0;
|
|
3441
3441
|
});
|
|
3442
|
-
}, w = async (a, i, g,
|
|
3442
|
+
}, w = async (a, i, g, x) => {
|
|
3443
3443
|
var O, P;
|
|
3444
3444
|
t.value.form.modalState = "edit", l.value = "edit";
|
|
3445
3445
|
try {
|
|
3446
|
-
if (!await ((O = t.value.control) == null ? void 0 : O.validate("edit", { row: a, column: i, index: g, m:
|
|
3446
|
+
if (!await ((O = t.value.control) == null ? void 0 : O.validate("edit", { row: a, column: i, index: g, m: x, node: s.node }))) return;
|
|
3447
3447
|
} catch (N) {
|
|
3448
3448
|
console.error("验证失败:", N);
|
|
3449
3449
|
return;
|
|
3450
3450
|
}
|
|
3451
|
-
(P = t.value.control.edit(a, i, g,
|
|
3451
|
+
(P = t.value.control.edit(a, i, g, x)) != null && P.click ? t.value.control.edit(a, i, g, x).click(a, i, g, x) : (t.value.form.disabled = !1, t.value.dialog.mode = t.value.control.edit(a, i, g, x).mode, t.value.dialog.title = t.value.control.edit(a, i, g, x).title || t.value.control.edit(a, i, g, x).label || "编辑", Object.keys(a).forEach((N) => {
|
|
3452
3452
|
t.value[N] && (t.value[N].value = a[N]);
|
|
3453
|
-
}), u.value = !0, await rt(), o("open", "edit", { m:
|
|
3454
|
-
}, p = async (a, i, g,
|
|
3453
|
+
}), u.value = !0, await rt(), o("open", "edit", { m: x, row: a, column: i, index: g }), Yt());
|
|
3454
|
+
}, p = async (a, i, g, x) => {
|
|
3455
3455
|
var O, P;
|
|
3456
3456
|
try {
|
|
3457
|
-
if (!await ((O = t.value.control) == null ? void 0 : O.validate("delete", { row: a, column: i, index: g, m:
|
|
3457
|
+
if (!await ((O = t.value.control) == null ? void 0 : O.validate("delete", { row: a, column: i, index: g, m: x, node: s.node }))) return;
|
|
3458
3458
|
} catch (N) {
|
|
3459
3459
|
console.error("验证失败:", N);
|
|
3460
3460
|
return;
|
|
3461
3461
|
}
|
|
3462
|
-
if ((P = t.value.control.delete(a, i, g,
|
|
3463
|
-
t.value.control.delete(a, i, g,
|
|
3462
|
+
if ((P = t.value.control.delete(a, i, g, x)) != null && P.click)
|
|
3463
|
+
t.value.control.delete(a, i, g, x).click(a, i, g, x);
|
|
3464
3464
|
else {
|
|
3465
|
-
let { message: N, title: we, options: Ee } = t.value.control.delete(a, i, g,
|
|
3465
|
+
let { message: N, title: we, options: Ee } = t.value.control.delete(a, i, g, x).dialog;
|
|
3466
3466
|
pl.confirm(N, we, Ee).then(() => {
|
|
3467
3467
|
o(
|
|
3468
3468
|
"delete",
|
|
3469
|
-
{ row: a, column: i, index: g, m:
|
|
3469
|
+
{ row: a, column: i, index: g, m: x },
|
|
3470
3470
|
(qe = !0, je = !1) => {
|
|
3471
3471
|
qe && (t.value.table.data.splice(g, 1), t.value.table.page.total--), je && t.value.table.load();
|
|
3472
3472
|
}
|
|
@@ -3474,18 +3474,18 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3474
3474
|
}).catch(() => {
|
|
3475
3475
|
});
|
|
3476
3476
|
}
|
|
3477
|
-
},
|
|
3477
|
+
}, S = async (a, i, g, x) => {
|
|
3478
3478
|
var O, P, N, we;
|
|
3479
3479
|
t.value.form.modalState = void 0, l.value = "view";
|
|
3480
3480
|
try {
|
|
3481
|
-
if (!await ((O = t.value.control) == null ? void 0 : O.validate("view", { row: a, column: i, index: g, m:
|
|
3481
|
+
if (!await ((O = t.value.control) == null ? void 0 : O.validate("view", { row: a, column: i, index: g, m: x, node: s.node }))) return;
|
|
3482
3482
|
} catch (Ee) {
|
|
3483
3483
|
console.error("验证失败:", Ee);
|
|
3484
3484
|
return;
|
|
3485
3485
|
}
|
|
3486
|
-
(P = t.value.control.view(a, i, g,
|
|
3486
|
+
(P = t.value.control.view(a, i, g, x)) != null && P.click ? t.value.control.view(a, i, g, x).click(a, i, g, x) : (t.value.form.disabled = !0, t.value.dialog.mode = t.value.control.view(a, i, g, x).mode, t.value.dialog.title = t.value.control.view(a, i, g, x).title || t.value.control.view(a, i, g, x).label || "详情", Object.keys(a).forEach((Ee) => {
|
|
3487
3487
|
t.value[Ee] && (t.value[Ee].value = a[Ee]);
|
|
3488
|
-
}), ((N = t.value.control.view(a, i, g,
|
|
3488
|
+
}), ((N = t.value.control.view(a, i, g, x)) == null ? void 0 : N["view-mode"]) === "description" ? gt({
|
|
3489
3489
|
...t.value.dialog,
|
|
3490
3490
|
type: t.value.dialog.mode,
|
|
3491
3491
|
slots: {
|
|
@@ -3493,17 +3493,17 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3493
3493
|
var Ee, qe, je;
|
|
3494
3494
|
return Se(Tl, {
|
|
3495
3495
|
row: a,
|
|
3496
|
-
m:
|
|
3497
|
-
container: ((Ee = t.value.control.view(a, i, g,
|
|
3498
|
-
}, ((je = (qe = t.value.control.view(a, i, g,
|
|
3496
|
+
m: x,
|
|
3497
|
+
container: ((Ee = t.value.control.view(a, i, g, x)) == null ? void 0 : Ee.container) || {}
|
|
3498
|
+
}, ((je = (qe = t.value.control.view(a, i, g, x)) == null ? void 0 : qe.container) == null ? void 0 : je.slots) || {});
|
|
3499
3499
|
}
|
|
3500
3500
|
}
|
|
3501
|
-
}) : ((we = t.value.control.view(a, i, g,
|
|
3501
|
+
}) : ((we = t.value.control.view(a, i, g, x)) == null ? void 0 : we["view-mode"]) === "readonly" && (u.value = !0, Yt()), await rt(), o("open", "view", { m: x, row: a, column: i, index: g }));
|
|
3502
3502
|
}, M = (a, i = k.value) => {
|
|
3503
3503
|
Object.assign(a, i);
|
|
3504
|
-
}, I = (a, i, g,
|
|
3505
|
-
const O = t.value.control.save(a, i, g,
|
|
3506
|
-
O != null && O.click ? O.click(a, i, g,
|
|
3504
|
+
}, I = (a, i, g, x) => {
|
|
3505
|
+
const O = t.value.control.save(a, i, g, x);
|
|
3506
|
+
O != null && O.click ? O.click(a, i, g, x) : o(
|
|
3507
3507
|
"row-save",
|
|
3508
3508
|
{ row: a, column: i, index: g, data: t.value.table.data },
|
|
3509
3509
|
async (P = !0, N = !0) => {
|
|
@@ -3519,14 +3519,14 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3519
3519
|
}
|
|
3520
3520
|
);
|
|
3521
3521
|
}, ee = Or((a, i, g) => {
|
|
3522
|
-
o("submit", t.value.form.modalState, a, i, (
|
|
3523
|
-
|
|
3522
|
+
o("submit", t.value.form.modalState, a, i, (x) => {
|
|
3523
|
+
x && (g === 1 && (u.value = !1), M(a), i.table.load());
|
|
3524
3524
|
});
|
|
3525
3525
|
}, 300), ae = (a, i) => {
|
|
3526
3526
|
M(a), o("reset", a, i);
|
|
3527
3527
|
}, _e = (a, i, g) => {
|
|
3528
|
-
var
|
|
3529
|
-
if ((
|
|
3528
|
+
var x;
|
|
3529
|
+
if ((x = i.control.download(a, i)) != null && x.click)
|
|
3530
3530
|
i.control.download(a, i).click(a, i, g);
|
|
3531
3531
|
else {
|
|
3532
3532
|
let O = gt(
|
|
@@ -3541,7 +3541,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3541
3541
|
items: g,
|
|
3542
3542
|
commitText: i.control.download(a, i).excelLabel,
|
|
3543
3543
|
onExcel: (P, N) => {
|
|
3544
|
-
o("download", P,
|
|
3544
|
+
o("download", P, T.value, N), O();
|
|
3545
3545
|
}
|
|
3546
3546
|
})
|
|
3547
3547
|
}
|
|
@@ -3564,7 +3564,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3564
3564
|
onSettingDragEnd: async () => {
|
|
3565
3565
|
await Ae(G.value);
|
|
3566
3566
|
},
|
|
3567
|
-
onSelectAll: async (
|
|
3567
|
+
onSelectAll: async (x) => {
|
|
3568
3568
|
await Ae(G.value);
|
|
3569
3569
|
}
|
|
3570
3570
|
})
|
|
@@ -3577,12 +3577,12 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3577
3577
|
download: _e,
|
|
3578
3578
|
toggleExpand: _,
|
|
3579
3579
|
setting: Ye,
|
|
3580
|
-
view:
|
|
3580
|
+
view: S,
|
|
3581
3581
|
edit: w,
|
|
3582
3582
|
delete: p,
|
|
3583
3583
|
save: I
|
|
3584
|
-
}, Fe = (a, i, g,
|
|
3585
|
-
const N = oe == null ? void 0 : oe[P](i, g,
|
|
3584
|
+
}, Fe = (a, i, g, x, O) => a.filter((P) => me[P]).map((P) => {
|
|
3585
|
+
const N = oe == null ? void 0 : oe[P](i, g, x, O);
|
|
3586
3586
|
return {
|
|
3587
3587
|
name: `control-${P}`,
|
|
3588
3588
|
attr: N,
|
|
@@ -3591,7 +3591,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3591
3591
|
sort: (N == null ? void 0 : N.sort) || 0,
|
|
3592
3592
|
groupName: (N == null ? void 0 : N.groupName) || "default"
|
|
3593
3593
|
};
|
|
3594
|
-
}).sort((P, N) => P.sort - N.sort), be = (a, i, g,
|
|
3594
|
+
}).sort((P, N) => P.sort - N.sort), be = (a, i, g, x, O) => Fe(a, i, g, x, O).reduce((P, N) => {
|
|
3595
3595
|
const we = N.groupName || "default";
|
|
3596
3596
|
return P[we] || (P[we] = []), P[we].push(N), P;
|
|
3597
3597
|
}, {}), ie = Be(() => Object.fromEntries(
|
|
@@ -3599,8 +3599,8 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3599
3599
|
([a, i]) => i.type !== "hidden" && i.hidden !== !0 && i.visible !== !1 && i.showCol !== !1
|
|
3600
3600
|
).map(([a, i]) => (i.sort = typeof i.sort == "number" ? i.sort : 0, [a, i])).sort((a, i) => a[1].sort - i[1].sort)
|
|
3601
3601
|
)), Ge = re({}), j = (a, i) => {
|
|
3602
|
-
const g = (
|
|
3603
|
-
for (const P of
|
|
3602
|
+
const g = (x, O) => {
|
|
3603
|
+
for (const P of x) {
|
|
3604
3604
|
if (P.value == O) return P.label;
|
|
3605
3605
|
if (P.children) {
|
|
3606
3606
|
const N = g(P.children, O);
|
|
@@ -3610,9 +3610,9 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3610
3610
|
return null;
|
|
3611
3611
|
};
|
|
3612
3612
|
if (a.getDicts) {
|
|
3613
|
-
const
|
|
3614
|
-
return Ge.value[
|
|
3615
|
-
Ge.value[
|
|
3613
|
+
const x = i.toString();
|
|
3614
|
+
return Ge.value[x] ? (a.options = Ge.value[x], a.formatter || (a.formatter = (O, P, N, we) => a.options && g(a.options, N) || N), Promise.resolve()) : a.getDicts(t.value.table.data).then((O) => {
|
|
3615
|
+
Ge.value[x] = O, a.options = O, a.formatter || (a.formatter = (P, N, we, Ee) => a.options && g(a.options, we) || we);
|
|
3616
3616
|
});
|
|
3617
3617
|
}
|
|
3618
3618
|
return Promise.resolve();
|
|
@@ -3625,9 +3625,9 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3625
3625
|
} catch (a) {
|
|
3626
3626
|
console.error("字典加载过程中发生错误:", a);
|
|
3627
3627
|
}
|
|
3628
|
-
}, X = (a, i, g,
|
|
3628
|
+
}, X = (a, i, g, x) => {
|
|
3629
3629
|
var O, P;
|
|
3630
|
-
return a.table ? (O = a.table(i, g,
|
|
3630
|
+
return a.table ? (O = a.table(i, g, x)) != null && O.auth ? (P = a.table(i, g, x)) == null ? void 0 : P.auth(i, g, x) : !0 : !1;
|
|
3631
3631
|
}, Oe = () => {
|
|
3632
3632
|
u.value = !1;
|
|
3633
3633
|
};
|
|
@@ -3641,17 +3641,17 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3641
3641
|
Wa(G.value),
|
|
3642
3642
|
Ha(G.value)
|
|
3643
3643
|
]);
|
|
3644
|
-
a && Array.isArray(a) && a.forEach((
|
|
3645
|
-
const O = t.value[
|
|
3646
|
-
O && (O.width =
|
|
3647
|
-
}), i && Array.isArray(i) && i.forEach((
|
|
3648
|
-
const P = t.value[
|
|
3644
|
+
a && Array.isArray(a) && a.forEach((x) => {
|
|
3645
|
+
const O = t.value[x.key];
|
|
3646
|
+
O && (O.width = x.width);
|
|
3647
|
+
}), i && Array.isArray(i) && i.forEach((x, O) => {
|
|
3648
|
+
const P = t.value[x];
|
|
3649
3649
|
P && (P.sort = O);
|
|
3650
|
-
}), g && Array.isArray(g) && g.length > 0 ? g.forEach((
|
|
3651
|
-
const O = t.value[
|
|
3650
|
+
}), g && Array.isArray(g) && g.length > 0 ? g.forEach((x) => {
|
|
3651
|
+
const O = t.value[x];
|
|
3652
3652
|
O && (O.showCol = !1);
|
|
3653
|
-
}) : Object.keys(t.value).filter((
|
|
3654
|
-
t.value[
|
|
3653
|
+
}) : Object.keys(t.value).filter((x) => t.value[x].type !== "control").forEach((x) => {
|
|
3654
|
+
t.value[x].showCol = !0;
|
|
3655
3655
|
});
|
|
3656
3656
|
} catch (a) {
|
|
3657
3657
|
console.error("加载表格信息时出错:", a), Object.keys(t.value).filter((i) => t.value[i].type !== "control").forEach((i) => {
|
|
@@ -3661,7 +3661,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3661
3661
|
}, Re = () => dr(Object.keys(t.value).toString()).toUpperCase().substring(8, 24);
|
|
3662
3662
|
return Hl(() => {
|
|
3663
3663
|
G.value = Re();
|
|
3664
|
-
}),
|
|
3664
|
+
}), xt(async () => {
|
|
3665
3665
|
try {
|
|
3666
3666
|
c.value = Object.entries(t.value).filter(
|
|
3667
3667
|
([i, g]) => g.type !== "hidden" && g.type !== "control" && g.visible !== !1
|
|
@@ -3679,9 +3679,9 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3679
3679
|
} catch (a) {
|
|
3680
3680
|
console.error("Error during component initialization:", a), t.value.table.autoWatch || t.value.table.load();
|
|
3681
3681
|
}
|
|
3682
|
-
}), d({ addRow: A, editRow: w, deleteRow: p, readForm:
|
|
3682
|
+
}), d({ addRow: A, editRow: w, deleteRow: p, readForm: S, saveRowData: I, closeDialog: Oe, formData: k }), (a, i) => {
|
|
3683
3683
|
var qe, je, Pe, tt, ht, St, Tt;
|
|
3684
|
-
const g = H("el-button-group"),
|
|
3684
|
+
const g = H("el-button-group"), x = H("el-dropdown-item"), O = H("el-dropdown-menu"), P = H("el-dropdown"), N = H("el-table-column"), we = H("el-table"), Ee = H("el-pagination");
|
|
3685
3685
|
return m(), z(se, null, [
|
|
3686
3686
|
u.value ? (m(), D(Qt, Y({
|
|
3687
3687
|
key: 0,
|
|
@@ -3704,7 +3704,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3704
3704
|
fn: $((He) => {
|
|
3705
3705
|
var Qe;
|
|
3706
3706
|
return [
|
|
3707
|
-
|
|
3707
|
+
C(a.$slots, ye, {
|
|
3708
3708
|
model: He,
|
|
3709
3709
|
form: (Qe = He == null ? void 0 : He.data) == null ? void 0 : Qe.form
|
|
3710
3710
|
}, void 0, !0)
|
|
@@ -3718,7 +3718,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3718
3718
|
a.$slots.header ? {
|
|
3719
3719
|
name: "header",
|
|
3720
3720
|
fn: $(({ titleClass: te, closeIconClass: ye }) => [
|
|
3721
|
-
|
|
3721
|
+
C(a.$slots, "header", {
|
|
3722
3722
|
titleClass: te,
|
|
3723
3723
|
closeIconClass: ye
|
|
3724
3724
|
}, void 0, !0)
|
|
@@ -3728,42 +3728,42 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3728
3728
|
a.$slots.title ? {
|
|
3729
3729
|
name: "title",
|
|
3730
3730
|
fn: $(() => [
|
|
3731
|
-
|
|
3731
|
+
C(a.$slots, "title", {}, void 0, !0)
|
|
3732
3732
|
]),
|
|
3733
3733
|
key: "1"
|
|
3734
3734
|
} : void 0,
|
|
3735
3735
|
a.$slots.footer ? {
|
|
3736
3736
|
name: "footer",
|
|
3737
3737
|
fn: $(() => [
|
|
3738
|
-
|
|
3738
|
+
C(a.$slots, "footer", {}, void 0, !0)
|
|
3739
3739
|
]),
|
|
3740
3740
|
key: "2"
|
|
3741
3741
|
} : void 0,
|
|
3742
3742
|
((je = (qe = t.value) == null ? void 0 : qe.dialog) == null ? void 0 : je.type) === "drawer" && a.$slots.trigger ? {
|
|
3743
3743
|
name: "trigger",
|
|
3744
3744
|
fn: $(() => [
|
|
3745
|
-
|
|
3745
|
+
C(a.$slots, "trigger", {}, void 0, !0)
|
|
3746
3746
|
]),
|
|
3747
3747
|
key: "3"
|
|
3748
3748
|
} : void 0
|
|
3749
3749
|
]), 1040, ["modelValue", "type"])) : ke("", !0),
|
|
3750
3750
|
K("div", cr, [
|
|
3751
3751
|
((tt = (Pe = t.value) == null ? void 0 : Pe.query) == null ? void 0 : tt.hidden) != !0 ? (m(), z("div", fr, [
|
|
3752
|
-
|
|
3752
|
+
C(a.$slots, "query", {}, () => [
|
|
3753
3753
|
de(_a, {
|
|
3754
3754
|
modelValue: t.value,
|
|
3755
3755
|
"onUpdate:modelValue": i[3] || (i[3] = (te) => t.value = te),
|
|
3756
|
-
info:
|
|
3757
|
-
"onUpdate:info": i[4] || (i[4] = (te) =>
|
|
3756
|
+
info: T.value,
|
|
3757
|
+
"onUpdate:info": i[4] || (i[4] = (te) => T.value = te),
|
|
3758
3758
|
onQuery: B,
|
|
3759
3759
|
onReset: Me
|
|
3760
3760
|
}, $e({
|
|
3761
3761
|
"q-btns": $(() => [
|
|
3762
|
-
|
|
3762
|
+
C(a.$slots, "q-btns", {}, () => [
|
|
3763
3763
|
(m(!0), z(se, null, W(be(["add", "toggleExpand", "batch", "download", "setting"], k.value, t.value), (te, ye) => (m(), z(se, null, [
|
|
3764
3764
|
ye == "default" ? (m(!0), z(se, { key: 0 }, W(te, (ue) => (m(), z(se, null, [
|
|
3765
|
-
|
|
3766
|
-
(ue.name === "control-add" ? ue.attr.auth() && ue.attr.inline === !1 : ue.attr.auth()) ?
|
|
3765
|
+
C(a.$slots, ue.name + "-left", {}, void 0, !0),
|
|
3766
|
+
(ue.name === "control-add" ? ue.attr.auth() && ue.attr.inline === !1 : ue.attr.auth()) ? C(a.$slots, ue.name, { key: 0 }, () => {
|
|
3767
3767
|
var He, Qe;
|
|
3768
3768
|
return [
|
|
3769
3769
|
ue.label ? (m(), D(F(Ne), Y({
|
|
@@ -3786,12 +3786,12 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3786
3786
|
}), null, 16, ["title", "disabled", "onClick"]))
|
|
3787
3787
|
];
|
|
3788
3788
|
}, !0) : ke("", !0),
|
|
3789
|
-
|
|
3789
|
+
C(a.$slots, ue.name + "-right", {}, void 0, !0)
|
|
3790
3790
|
], 64))), 256)) : (m(), D(g, { key: 1 }, {
|
|
3791
3791
|
default: $(() => [
|
|
3792
3792
|
(m(!0), z(se, null, W(te, (ue) => (m(), z(se, null, [
|
|
3793
|
-
|
|
3794
|
-
(ue.name === "control-add" ? ue.attr.auth() && ue.attr.inline === !1 : ue.attr.auth()) ?
|
|
3793
|
+
C(a.$slots, ue.name + "-left", {}, void 0, !0),
|
|
3794
|
+
(ue.name === "control-add" ? ue.attr.auth() && ue.attr.inline === !1 : ue.attr.auth()) ? C(a.$slots, ue.name, { key: 0 }, () => {
|
|
3795
3795
|
var He, Qe;
|
|
3796
3796
|
return [
|
|
3797
3797
|
ue.label ? (m(), D(F(Ne), Y({
|
|
@@ -3815,7 +3815,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3815
3815
|
}), null, 16, ["title", "disabled", "onClick"]))
|
|
3816
3816
|
];
|
|
3817
3817
|
}, !0) : ke("", !0),
|
|
3818
|
-
|
|
3818
|
+
C(a.$slots, ue.name + "-right", {}, void 0, !0)
|
|
3819
3819
|
], 64))), 256))
|
|
3820
3820
|
]),
|
|
3821
3821
|
_: 2
|
|
@@ -3828,18 +3828,18 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3828
3828
|
W(a.$slots, (te, ye, ue) => ({
|
|
3829
3829
|
name: ye,
|
|
3830
3830
|
fn: $((He) => [
|
|
3831
|
-
|
|
3831
|
+
C(a.$slots, ye, {
|
|
3832
3832
|
model: He,
|
|
3833
|
-
form:
|
|
3833
|
+
form: T.value
|
|
3834
3834
|
}, void 0, !0)
|
|
3835
3835
|
])
|
|
3836
3836
|
}))
|
|
3837
3837
|
]), 1032, ["modelValue", "info"])
|
|
3838
3838
|
], !0)
|
|
3839
3839
|
])) : ke("", !0),
|
|
3840
|
-
|
|
3840
|
+
C(a.$slots, "table-title", {
|
|
3841
3841
|
model: t.value,
|
|
3842
|
-
queryInfo:
|
|
3842
|
+
queryInfo: T.value
|
|
3843
3843
|
}, void 0, !0),
|
|
3844
3844
|
K("div", vr, [
|
|
3845
3845
|
v.value ? (m(), D(we, Y({ key: 0 }, {
|
|
@@ -3852,17 +3852,17 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3852
3852
|
"summary-method": (te) => t.value.table["summary-method"](te, { fields: V.value, sums: U.value }),
|
|
3853
3853
|
onSortChange: i[5] || (i[5] = (te) => {
|
|
3854
3854
|
var ye, ue;
|
|
3855
|
-
t.value.table.onSortChange(te,
|
|
3855
|
+
t.value.table.onSortChange(te, T.value), ((ye = te == null ? void 0 : te.column) == null ? void 0 : ye.sortable) === "custom" && ((ue = t.value.table) == null || ue.load());
|
|
3856
3856
|
})
|
|
3857
3857
|
}), {
|
|
3858
3858
|
append: $(() => [
|
|
3859
|
-
|
|
3859
|
+
C(a.$slots, "append", {}, void 0, !0)
|
|
3860
3860
|
]),
|
|
3861
3861
|
empty: $(() => [
|
|
3862
|
-
|
|
3862
|
+
C(a.$slots, "empty", {}, void 0, !0)
|
|
3863
3863
|
]),
|
|
3864
3864
|
default: $(() => [
|
|
3865
|
-
|
|
3865
|
+
C(a.$slots, "default", {}, () => [
|
|
3866
3866
|
(m(!0), z(se, null, W(ie.value, (te, ye) => {
|
|
3867
3867
|
var ue, He, Qe, ut;
|
|
3868
3868
|
return m(), D(N, Y({
|
|
@@ -3875,27 +3875,27 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3875
3875
|
...F(We)(te, (ne) => r.includes(ne))
|
|
3876
3876
|
}), $e({
|
|
3877
3877
|
header: $(({ column: ne, $index: ce }) => [
|
|
3878
|
-
ye == "control" ?
|
|
3878
|
+
ye == "control" ? C(a.$slots, `${ye}-header`, {
|
|
3879
3879
|
key: 0,
|
|
3880
3880
|
column: ne,
|
|
3881
3881
|
index: ce
|
|
3882
3882
|
}, () => [
|
|
3883
3883
|
K("span", null, Ie(ne.label), 1)
|
|
3884
|
-
], !0) :
|
|
3884
|
+
], !0) : C(a.$slots, `${ye}-header`, {
|
|
3885
3885
|
key: 1,
|
|
3886
3886
|
column: ne,
|
|
3887
3887
|
index: ce
|
|
3888
3888
|
}, void 0, !0)
|
|
3889
3889
|
]),
|
|
3890
3890
|
"filter-icon": $((ne) => [
|
|
3891
|
-
|
|
3891
|
+
C(a.$slots, `${ye}-filter-icon`, { data: ne }, void 0, !0)
|
|
3892
3892
|
]),
|
|
3893
3893
|
_: 2
|
|
3894
3894
|
}, [
|
|
3895
3895
|
te.type === "expand" ? {
|
|
3896
3896
|
name: "default",
|
|
3897
3897
|
fn: $(({ row: ne, column: ce, $index: pe }) => [
|
|
3898
|
-
|
|
3898
|
+
C(a.$slots, `${ye}`, {
|
|
3899
3899
|
row: ne,
|
|
3900
3900
|
column: ce,
|
|
3901
3901
|
index: pe
|
|
@@ -3911,8 +3911,8 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3911
3911
|
class: yl(["control", (vt = t.value.control) == null ? void 0 : vt.class]),
|
|
3912
3912
|
style: Ue((pt = t.value.control) == null ? void 0 : pt.style)
|
|
3913
3913
|
}, [
|
|
3914
|
-
|
|
3915
|
-
|
|
3914
|
+
C(a.$slots, "control", {}, () => [
|
|
3915
|
+
C(a.$slots, "control-left", {
|
|
3916
3916
|
row: ne,
|
|
3917
3917
|
column: ce,
|
|
3918
3918
|
index: pe
|
|
@@ -3921,12 +3921,12 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3921
3921
|
var bt;
|
|
3922
3922
|
return m(), z(se, null, [
|
|
3923
3923
|
dt == "default" ? (m(!0), z(se, { key: 0 }, W(it, (Z) => (m(), z(se, null, [
|
|
3924
|
-
|
|
3924
|
+
C(a.$slots, Z.name + "-left", {
|
|
3925
3925
|
row: ne,
|
|
3926
3926
|
column: ce,
|
|
3927
3927
|
index: pe
|
|
3928
3928
|
}, void 0, !0),
|
|
3929
|
-
Z.attr.auth() ?
|
|
3929
|
+
Z.attr.auth() ? C(a.$slots, Z.name, {
|
|
3930
3930
|
key: 0,
|
|
3931
3931
|
row: ne,
|
|
3932
3932
|
column: ce,
|
|
@@ -3949,7 +3949,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3949
3949
|
onClick: (ct) => Z.func(ne, ce, pe, t.value)
|
|
3950
3950
|
}), null, 16, ["title", "onClick"]))
|
|
3951
3951
|
], !0) : ke("", !0),
|
|
3952
|
-
|
|
3952
|
+
C(a.$slots, Z.name + "-right", {
|
|
3953
3953
|
row: ne,
|
|
3954
3954
|
column: ce,
|
|
3955
3955
|
index: pe
|
|
@@ -3964,13 +3964,13 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3964
3964
|
(m(!0), z(se, null, W(it, (Z) => {
|
|
3965
3965
|
var ct, wt, $t;
|
|
3966
3966
|
return m(), z(se, null, [
|
|
3967
|
-
a.$slots[Z.name + "-left"] ?
|
|
3967
|
+
a.$slots[Z.name + "-left"] ? C(a.$slots, Z.name + "-left", {
|
|
3968
3968
|
key: 0,
|
|
3969
3969
|
row: ne,
|
|
3970
3970
|
column: ce,
|
|
3971
3971
|
index: pe
|
|
3972
3972
|
}, void 0, !0) : ke("", !0),
|
|
3973
|
-
Z.attr.auth() ? (m(), D(
|
|
3973
|
+
Z.attr.auth() ? (m(), D(x, Y({
|
|
3974
3974
|
key: 1,
|
|
3975
3975
|
ref_for: !0
|
|
3976
3976
|
}, {
|
|
@@ -3979,7 +3979,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
3979
3979
|
disabled: ($t = Z == null ? void 0 : Z.attr) == null ? void 0 : $t.disabled
|
|
3980
3980
|
}), {
|
|
3981
3981
|
default: $(() => [
|
|
3982
|
-
|
|
3982
|
+
C(a.$slots, Z.name, {
|
|
3983
3983
|
row: ne,
|
|
3984
3984
|
column: ce,
|
|
3985
3985
|
index: pe
|
|
@@ -4004,7 +4004,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4004
4004
|
]),
|
|
4005
4005
|
_: 2
|
|
4006
4006
|
}, 1040)) : ke("", !0),
|
|
4007
|
-
a.$slots[Z.name + "-right"] ?
|
|
4007
|
+
a.$slots[Z.name + "-right"] ? C(a.$slots, Z.name + "-right", {
|
|
4008
4008
|
key: 2,
|
|
4009
4009
|
row: ne,
|
|
4010
4010
|
column: ce,
|
|
@@ -4026,12 +4026,12 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4026
4026
|
}, 1040)) : (m(), D(g, { key: 2 }, {
|
|
4027
4027
|
default: $(() => [
|
|
4028
4028
|
(m(!0), z(se, null, W(it, (Z) => (m(), z(se, null, [
|
|
4029
|
-
|
|
4029
|
+
C(a.$slots, Z.name + "-left", {
|
|
4030
4030
|
row: ne,
|
|
4031
4031
|
column: ce,
|
|
4032
4032
|
index: pe
|
|
4033
4033
|
}, void 0, !0),
|
|
4034
|
-
Z.attr.auth() ?
|
|
4034
|
+
Z.attr.auth() ? C(a.$slots, Z.name, {
|
|
4035
4035
|
key: 0,
|
|
4036
4036
|
row: ne,
|
|
4037
4037
|
column: ce,
|
|
@@ -4054,7 +4054,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4054
4054
|
onClick: (ct) => Z.func(ne, ce, pe, t.value)
|
|
4055
4055
|
}), null, 16, ["title", "onClick"]))
|
|
4056
4056
|
], !0) : ke("", !0),
|
|
4057
|
-
|
|
4057
|
+
C(a.$slots, Z.name + "-right", {
|
|
4058
4058
|
row: ne,
|
|
4059
4059
|
column: ce,
|
|
4060
4060
|
index: pe
|
|
@@ -4065,7 +4065,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4065
4065
|
}, 1024))
|
|
4066
4066
|
], 64);
|
|
4067
4067
|
}), 256)),
|
|
4068
|
-
|
|
4068
|
+
C(a.$slots, "control-right", {
|
|
4069
4069
|
row: ne,
|
|
4070
4070
|
column: ce,
|
|
4071
4071
|
index: pe
|
|
@@ -4078,7 +4078,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4078
4078
|
} : te.type != "selection" && te.type != "index" && ((ut = (Qe = t.value) == null ? void 0 : Qe.table) == null ? void 0 : ut["row-key"]) != ye ? {
|
|
4079
4079
|
name: "default",
|
|
4080
4080
|
fn: $(({ row: ne, column: ce, $index: pe }) => [
|
|
4081
|
-
X(te, ne, ce, pe) && pe != -1 ?
|
|
4081
|
+
X(te, ne, ce, pe) && pe != -1 ? C(a.$slots, `${ye}`, {
|
|
4082
4082
|
key: 0,
|
|
4083
4083
|
row: ne,
|
|
4084
4084
|
column: ce,
|
|
@@ -4101,7 +4101,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4101
4101
|
W(a.$slots, (pt, it) => ({
|
|
4102
4102
|
name: it,
|
|
4103
4103
|
fn: $((dt) => [
|
|
4104
|
-
|
|
4104
|
+
C(a.$slots, it, {
|
|
4105
4105
|
data: dt,
|
|
4106
4106
|
item: te,
|
|
4107
4107
|
model: t.value
|
|
@@ -4110,7 +4110,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4110
4110
|
}))
|
|
4111
4111
|
]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"]))
|
|
4112
4112
|
];
|
|
4113
|
-
}, !0) :
|
|
4113
|
+
}, !0) : C(a.$slots, `${ye}`, {
|
|
4114
4114
|
key: 1,
|
|
4115
4115
|
row: ne,
|
|
4116
4116
|
column: ce,
|
|
@@ -4118,7 +4118,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4118
4118
|
}, () => [
|
|
4119
4119
|
K("div", {
|
|
4120
4120
|
style: Ue([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, te == null ? void 0 : te.style]),
|
|
4121
|
-
innerHTML:
|
|
4121
|
+
innerHTML: Ce(
|
|
4122
4122
|
te,
|
|
4123
4123
|
typeof ce.formatter == "function" ? ce.formatter(ne, ce, ne[ye], pe) : ne[ye]
|
|
4124
4124
|
)
|
|
@@ -4133,7 +4133,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4133
4133
|
]),
|
|
4134
4134
|
_: 3
|
|
4135
4135
|
}, 16, ["summary-method"])) : ke("", !0),
|
|
4136
|
-
(Tt = (St = (ht = t.value) == null ? void 0 : ht.table) == null ? void 0 : St.page) != null && Tt.hidden ? ke("", !0) :
|
|
4136
|
+
(Tt = (St = (ht = t.value) == null ? void 0 : ht.table) == null ? void 0 : St.page) != null && Tt.hidden ? ke("", !0) : C(a.$slots, "page", { key: 1 }, () => [
|
|
4137
4137
|
de(Ee, Y({
|
|
4138
4138
|
"page-size": t.value.table.page.pageSize,
|
|
4139
4139
|
"onUpdate:pageSize": i[6] || (i[6] = (te) => t.value.table.page.pageSize = te),
|
|
@@ -4141,7 +4141,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4141
4141
|
"onUpdate:currentPage": i[7] || (i[7] = (te) => t.value.table.page.currentPage = te)
|
|
4142
4142
|
}, t.value.table.page), {
|
|
4143
4143
|
default: $(() => [
|
|
4144
|
-
|
|
4144
|
+
C(a.$slots, "table-page", {}, void 0, !0)
|
|
4145
4145
|
]),
|
|
4146
4146
|
_: 3
|
|
4147
4147
|
}, 16, ["page-size", "current-page"])
|
|
@@ -4151,7 +4151,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4151
4151
|
], 64);
|
|
4152
4152
|
};
|
|
4153
4153
|
}
|
|
4154
|
-
}), hr = /* @__PURE__ */ nt(mr, [["__scopeId", "data-v-
|
|
4154
|
+
}), hr = /* @__PURE__ */ nt(mr, [["__scopeId", "data-v-4754c553"]]), yr = {
|
|
4155
4155
|
__name: "g-context-menu",
|
|
4156
4156
|
props: {
|
|
4157
4157
|
nodeInfo: {
|
|
@@ -4191,13 +4191,13 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4191
4191
|
(c == null ? void 0 : c.value) || ""
|
|
4192
4192
|
]);
|
|
4193
4193
|
return Object.fromEntries(u);
|
|
4194
|
-
}),
|
|
4194
|
+
}), T = re({}), v = re({}), h = async (u) => {
|
|
4195
4195
|
var q, U;
|
|
4196
4196
|
if (!e.nodeInfo) return;
|
|
4197
4197
|
const { data: r, node: c } = e.nodeInfo;
|
|
4198
4198
|
switch (u) {
|
|
4199
4199
|
case "add":
|
|
4200
|
-
e.processFormData ?
|
|
4200
|
+
e.processFormData ? T.value = await e.processFormData({ cmd: u, data: f.value, node: c }) : T.value = f.value;
|
|
4201
4201
|
const V = gt({
|
|
4202
4202
|
title: ((q = o == null ? void 0 : o.add) == null ? void 0 : q.label) || "新增子节点",
|
|
4203
4203
|
width: 450,
|
|
@@ -4205,7 +4205,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4205
4205
|
slots: {
|
|
4206
4206
|
default: () => Se(Ft, {
|
|
4207
4207
|
modelValue: e.columns,
|
|
4208
|
-
editForm:
|
|
4208
|
+
editForm: T.value,
|
|
4209
4209
|
onSubmit: (Q, G) => {
|
|
4210
4210
|
l("menu-command", u, { data: Q, node: c, m: G }, (le) => {
|
|
4211
4211
|
le && V();
|
|
@@ -4263,7 +4263,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4263
4263
|
(m(!0), z(se, null, W(t.value, (V, k) => {
|
|
4264
4264
|
var Q;
|
|
4265
4265
|
return m(), z(se, { key: k }, [
|
|
4266
|
-
|
|
4266
|
+
C(u.$slots, `menu-${k}-left`, {
|
|
4267
4267
|
nodeInfo: e.nodeInfo
|
|
4268
4268
|
}),
|
|
4269
4269
|
de(q, {
|
|
@@ -4281,7 +4281,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4281
4281
|
]),
|
|
4282
4282
|
_: 2
|
|
4283
4283
|
}, 1032, ["onClick", "divided"]),
|
|
4284
|
-
|
|
4284
|
+
C(u.$slots, `menu-${k}-right`, {
|
|
4285
4285
|
data: ((Q = e.nodeInfo) == null ? void 0 : Q.data) || {}
|
|
4286
4286
|
})
|
|
4287
4287
|
], 64);
|
|
@@ -4305,30 +4305,30 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4305
4305
|
var k, Q, G, le;
|
|
4306
4306
|
const e = d, l = ot(n, "modelValue"), s = re(!0), o = zt(), t = re(
|
|
4307
4307
|
typeof ((k = o == null ? void 0 : o.tree) == null ? void 0 : k.width) == "number" ? `${o.tree.width}px` : ((Q = o == null ? void 0 : o.tree) == null ? void 0 : Q.width) || "180px"
|
|
4308
|
-
), f = re(((G = o == null ? void 0 : o.tree) == null ? void 0 : G.search) === void 0 ? !0 : (le = o == null ? void 0 : o.tree) == null ? void 0 : le.search),
|
|
4308
|
+
), f = re(((G = o == null ? void 0 : o.tree) == null ? void 0 : G.search) === void 0 ? !0 : (le = o == null ? void 0 : o.tree) == null ? void 0 : le.search), T = re({}), v = re(""), h = re(null), u = re({}), r = (R, J) => {
|
|
4309
4309
|
var Te, Ve;
|
|
4310
4310
|
if (!R) return !0;
|
|
4311
4311
|
const fe = ((Ve = (Te = o == null ? void 0 : o.tree) == null ? void 0 : Te.props) == null ? void 0 : Ve.label) || "label";
|
|
4312
4312
|
return J[fe].includes(R);
|
|
4313
4313
|
}, c = (R, J) => {
|
|
4314
|
-
e("load",
|
|
4314
|
+
e("load", T.value, R, J);
|
|
4315
4315
|
}, q = (R, J) => {
|
|
4316
|
-
|
|
4316
|
+
T.value = { data: R, node: J }, l.value.table.load();
|
|
4317
4317
|
}, U = async (R, J, fe) => {
|
|
4318
4318
|
R.preventDefault(), u.value = { data: J, node: fe };
|
|
4319
4319
|
}, V = async (R, { data: J, node: fe, m: Te }, Ve) => {
|
|
4320
4320
|
var ve;
|
|
4321
4321
|
if (R === "add") {
|
|
4322
|
-
const L = await new Promise((
|
|
4322
|
+
const L = await new Promise((Ce) => {
|
|
4323
4323
|
e("menu-command", R, { data: J, node: fe, m: Te }, (Me) => {
|
|
4324
|
-
|
|
4324
|
+
Ce(Me);
|
|
4325
4325
|
});
|
|
4326
4326
|
});
|
|
4327
4327
|
L && ((ve = h.value) == null || ve.append(J, fe), fe.expanded = !0, Ve(L));
|
|
4328
4328
|
} else if (R === "refresh") {
|
|
4329
|
-
const L = await new Promise((
|
|
4329
|
+
const L = await new Promise((Ce) => {
|
|
4330
4330
|
e("menu-command", R, { data: J, node: fe }, (Me) => {
|
|
4331
|
-
|
|
4331
|
+
Ce(Me);
|
|
4332
4332
|
});
|
|
4333
4333
|
});
|
|
4334
4334
|
L ? typeof L == "function" && L() : (s.value = !1, setTimeout(() => {
|
|
@@ -4340,7 +4340,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4340
4340
|
return gl(v, (R) => {
|
|
4341
4341
|
h.value.filter(R);
|
|
4342
4342
|
}), (R, J) => {
|
|
4343
|
-
var L,
|
|
4343
|
+
var L, Ce;
|
|
4344
4344
|
const fe = H("el-input"), Te = H("el-dropdown"), Ve = H("el-tree"), ve = H("g-table");
|
|
4345
4345
|
return m(), z("div", gr, [
|
|
4346
4346
|
K("div", {
|
|
@@ -4354,7 +4354,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4354
4354
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
4355
4355
|
placeholder: "输入节点查询",
|
|
4356
4356
|
clearable: ""
|
|
4357
|
-
}, (
|
|
4357
|
+
}, (Ce = (L = F(o)) == null ? void 0 : L.tree) == null ? void 0 : Ce.search), null, 16, ["modelValue"])) : ke("", !0),
|
|
4358
4358
|
K("div", br, [
|
|
4359
4359
|
s.value ? (m(), D(Ve, Y({
|
|
4360
4360
|
key: 0,
|
|
@@ -4367,7 +4367,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4367
4367
|
onNodeContextmenu: U
|
|
4368
4368
|
}, R.$attrs.tree), $e({
|
|
4369
4369
|
default: $(({ node: Me, data: B }) => [
|
|
4370
|
-
|
|
4370
|
+
C(R.$slots, "tree", {
|
|
4371
4371
|
node: Me,
|
|
4372
4372
|
data: B
|
|
4373
4373
|
}, () => [
|
|
@@ -4379,16 +4379,16 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4379
4379
|
"node-info": u.value,
|
|
4380
4380
|
columns: (y = (A = F(o)) == null ? void 0 : A.tree) == null ? void 0 : y.columns,
|
|
4381
4381
|
menu: () => {
|
|
4382
|
-
var p,
|
|
4383
|
-
return ((
|
|
4382
|
+
var p, S, M, I;
|
|
4383
|
+
return ((S = (p = F(o)) == null ? void 0 : p.tree) == null ? void 0 : S.menu) && ((I = (M = F(o)) == null ? void 0 : M.tree) == null ? void 0 : I.menu({ node: Me, data: B }));
|
|
4384
4384
|
},
|
|
4385
4385
|
onMenuCommand: V,
|
|
4386
4386
|
"process-form-data": (w = (_ = F(o)) == null ? void 0 : _.tree) == null ? void 0 : w.processFormData
|
|
4387
4387
|
}, $e({ _: 2 }, [
|
|
4388
|
-
W(R.$slots, (p,
|
|
4389
|
-
name:
|
|
4388
|
+
W(R.$slots, (p, S, M) => ({
|
|
4389
|
+
name: S,
|
|
4390
4390
|
fn: $((I) => [
|
|
4391
|
-
|
|
4391
|
+
C(R.$slots, S, {
|
|
4392
4392
|
data: (I == null ? void 0 : I.data) || {}
|
|
4393
4393
|
}, void 0, !0)
|
|
4394
4394
|
])
|
|
@@ -4411,7 +4411,7 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4411
4411
|
W(R.$slots, (Me, B, A) => ({
|
|
4412
4412
|
name: B,
|
|
4413
4413
|
fn: $((y) => [
|
|
4414
|
-
|
|
4414
|
+
C(R.$slots, B, { data: y }, void 0, !0)
|
|
4415
4415
|
])
|
|
4416
4416
|
}))
|
|
4417
4417
|
]), 1040, ["style"])) : ke("", !0)
|
|
@@ -4423,12 +4423,12 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4423
4423
|
"onUpdate:modelValue": J[1] || (J[1] = (Me) => l.value = Me)
|
|
4424
4424
|
}, F(We)(R.$attrs, (Me) => Me !== "tree"), {
|
|
4425
4425
|
onLoad: c,
|
|
4426
|
-
node:
|
|
4426
|
+
node: T.value
|
|
4427
4427
|
}), $e({ _: 2 }, [
|
|
4428
4428
|
W(R.$slots, (Me, B, A) => ({
|
|
4429
4429
|
name: B,
|
|
4430
4430
|
fn: $((y) => [
|
|
4431
|
-
|
|
4431
|
+
C(R.$slots, B, { data: y }, void 0, !0)
|
|
4432
4432
|
])
|
|
4433
4433
|
}))
|
|
4434
4434
|
]), 1040, ["modelValue", "node"])
|
|
@@ -4436,10 +4436,10 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4436
4436
|
]);
|
|
4437
4437
|
};
|
|
4438
4438
|
}
|
|
4439
|
-
}), _r = /* @__PURE__ */ nt(kr, [["__scopeId", "data-v-
|
|
4439
|
+
}), _r = /* @__PURE__ */ nt(kr, [["__scopeId", "data-v-78ecc707"]]), xr = {
|
|
4440
4440
|
key: 0,
|
|
4441
4441
|
class: "op-group"
|
|
4442
|
-
},
|
|
4442
|
+
}, Cr = {
|
|
4443
4443
|
key: 1,
|
|
4444
4444
|
class: "op-items",
|
|
4445
4445
|
style: { width: "100%", height: "100%" }
|
|
@@ -4465,22 +4465,22 @@ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
|
|
|
4465
4465
|
},
|
|
4466
4466
|
setup(n) {
|
|
4467
4467
|
const d = n;
|
|
4468
|
-
return (e, l) => d.title ? (m(), z("div",
|
|
4468
|
+
return (e, l) => d.title ? (m(), z("div", xr, [
|
|
4469
4469
|
(m(!0), z(se, null, W(d.columns, (s) => (m(), z("span", {
|
|
4470
4470
|
style: Ue({ width: (s == null ? void 0 : s.width) || vl, ...s == null ? void 0 : s.titleStyle, textAlign: (s == null ? void 0 : s.align) || "center" }),
|
|
4471
4471
|
key: s.key
|
|
4472
4472
|
}, [
|
|
4473
|
-
|
|
4473
|
+
C(e.$slots, `${n.t}-title-${s.key}`, { col: s }, () => [
|
|
4474
4474
|
Le(Ie(s.label), 1)
|
|
4475
4475
|
], !0)
|
|
4476
4476
|
], 4))), 128))
|
|
4477
|
-
])) : (m(), z("div",
|
|
4477
|
+
])) : (m(), z("div", Cr, [
|
|
4478
4478
|
(m(!0), z(se, null, W(d.columns, (s) => (m(), z("span", {
|
|
4479
4479
|
style: Ue({ width: (s == null ? void 0 : s.width) || vl, textAlign: (s == null ? void 0 : s.align) || "center", ...s == null ? void 0 : s.style }),
|
|
4480
4480
|
key: s.key,
|
|
4481
4481
|
title: n.data[s.key]
|
|
4482
4482
|
}, [
|
|
4483
|
-
|
|
4483
|
+
C(e.$slots, `${n.t}-option-${s.key}`, { col: s }, () => [
|
|
4484
4484
|
Le(Ie(n.data[s.key] ?? "-"), 1)
|
|
4485
4485
|
], !0)
|
|
4486
4486
|
], 12, Mr))), 128))
|
|
@@ -4506,14 +4506,14 @@ const Hr = {
|
|
|
4506
4506
|
l.value = !1, setTimeout(() => {
|
|
4507
4507
|
s.unmount(), d.remove();
|
|
4508
4508
|
}, 300);
|
|
4509
|
-
}, gl(l, (
|
|
4510
|
-
|
|
4509
|
+
}, gl(l, (T) => {
|
|
4510
|
+
T || setTimeout(() => {
|
|
4511
4511
|
s.unmount(), d.remove();
|
|
4512
4512
|
}, 300);
|
|
4513
4513
|
});
|
|
4514
4514
|
const { close: o, ...t } = n, f = {
|
|
4515
4515
|
modelValue: l.value,
|
|
4516
|
-
"onUpdate:modelValue": (
|
|
4516
|
+
"onUpdate:modelValue": (T) => l.value = T,
|
|
4517
4517
|
//'close-on-click-modal': false,
|
|
4518
4518
|
...t
|
|
4519
4519
|
};
|
|
@@ -4549,7 +4549,7 @@ function Vr(n, d = window.innerWidth) {
|
|
|
4549
4549
|
throw new Error("Invalid calc expression");
|
|
4550
4550
|
};
|
|
4551
4551
|
const s = n.slice(5, -1).trim();
|
|
4552
|
-
return o(s.replace(/([0-9.]+)([a-z%]+)/g, (f,
|
|
4552
|
+
return o(s.replace(/([0-9.]+)([a-z%]+)/g, (f, T, v) => Vr(T + v, d)));
|
|
4553
4553
|
}
|
|
4554
4554
|
throw new Error("Unsupported unit in value: " + n);
|
|
4555
4555
|
}
|
|
@@ -4590,8 +4590,8 @@ function Nt(n) {
|
|
|
4590
4590
|
o = o || "整", n = Math.floor(n);
|
|
4591
4591
|
for (let t = 0; t < l[0].length && n > 0; t++) {
|
|
4592
4592
|
let f = "";
|
|
4593
|
-
for (let
|
|
4594
|
-
f = e[n % 10] + l[1][
|
|
4593
|
+
for (let T = 0; T < l[1].length && n > 0; T++)
|
|
4594
|
+
f = e[n % 10] + l[1][T] + f, n = Math.floor(n / 10);
|
|
4595
4595
|
o = f.replace(/(零.)*零$/, "").replace(/^$/, "零") + l[0][t] + o;
|
|
4596
4596
|
}
|
|
4597
4597
|
return s + o.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
@@ -4604,7 +4604,7 @@ function Ir(n, d = 2, e = !1) {
|
|
|
4604
4604
|
l = Math.abs(l);
|
|
4605
4605
|
let o = l.toFixed(d);
|
|
4606
4606
|
e && (o = o.replace(/\.?0+$/, ""));
|
|
4607
|
-
const [t, f] = o.split("."),
|
|
4607
|
+
const [t, f] = o.split("."), T = t.replace(/\B(?=(\d{3})+(?!\d))/g, ","), v = f ? `${T}.${f}` : T;
|
|
4608
4608
|
return s ? `-${v}` : v;
|
|
4609
4609
|
}
|
|
4610
4610
|
function Or(n, d) {
|
|
@@ -4683,13 +4683,13 @@ const De = {
|
|
|
4683
4683
|
}, Yr = (n, d) => {
|
|
4684
4684
|
let e = !1, l, s, o, t;
|
|
4685
4685
|
const f = (h) => {
|
|
4686
|
-
h.preventDefault(), e = !0, l = h.clientX, s = h.clientY, o = parseInt(document.defaultView.getComputedStyle(n).width), t = parseInt(document.defaultView.getComputedStyle(n).height), document.addEventListener("mousemove",
|
|
4687
|
-
},
|
|
4686
|
+
h.preventDefault(), e = !0, l = h.clientX, s = h.clientY, o = parseInt(document.defaultView.getComputedStyle(n).width), t = parseInt(document.defaultView.getComputedStyle(n).height), document.addEventListener("mousemove", T), document.addEventListener("mouseup", v);
|
|
4687
|
+
}, T = (h) => {
|
|
4688
4688
|
if (!e) return;
|
|
4689
4689
|
const u = Math.max(300, o + h.clientX - l), r = Math.max(200, t + h.clientY - s);
|
|
4690
4690
|
n.style.width = `${u}px`, n.style.height = `${r}px`;
|
|
4691
4691
|
}, v = () => {
|
|
4692
|
-
e = !1, document.removeEventListener("mousemove",
|
|
4692
|
+
e = !1, document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", v);
|
|
4693
4693
|
};
|
|
4694
4694
|
d.addEventListener("mousedown", f);
|
|
4695
4695
|
};
|