vue-2024-ui 0.0.56 → 0.0.57
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 +354 -346
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import gt, { ElForm as Ne, ElButtonGroup as Le, ElButton as $e, ElPopover as Ge, ElMessage as _e, ElMessageBox as it, ElDialog as bt, ElDrawer as $t } from "element-plus";
|
|
2
|
-
import { mergeModels as Me, useModel as qe, ref as ye, onMounted as je, resolveComponent as N, openBlock as u, createElementBlock as I, unref as l, createBlock as S, mergeProps as B, withCtx as g, renderSlot as m, Fragment as
|
|
2
|
+
import { mergeModels as Me, useModel as qe, ref as ye, onMounted as je, resolveComponent as N, openBlock as u, createElementBlock as I, unref as l, createBlock as S, mergeProps as B, withCtx as g, renderSlot as m, Fragment as G, renderList as j, createTextVNode as ge, toDisplayString as me, createSlots as ie, normalizeProps as Ue, createVNode as Z, createElementVNode as K, useSlots as dt, inject as et, useAttrs as Pe, onUnmounted as Et, computed as Se, normalizeStyle as Ve, withModifiers as ut, createCommentVNode as ve, guardReactiveProps as Xe, resolveDynamicComponent as Te, Transition as wt, withDirectives as ct, vShow as ft, h as Ce, onBeforeUnmount as _t, normalizeClass as mt, watchEffect as kt, watch as Ct, createApp as Dt } from "vue";
|
|
3
3
|
import { FullScreen as Vt, Remove as Ft } from "@element-plus/icons-vue";
|
|
4
4
|
import pt from "sortablejs";
|
|
5
5
|
import { Dexie as Tt } from "dexie";
|
|
@@ -189,55 +189,55 @@ var vt = { exports: {} };
|
|
|
189
189
|
(function(t, e) {
|
|
190
190
|
f.exports = e();
|
|
191
191
|
})(qt, function() {
|
|
192
|
-
var t = 1e3, e = 6e4, r = 36e5, y = "millisecond", _ = "second", x = "minute", V = "hour", w = "day", D = "week", Y = "month", O = "quarter", h = "year", k = "date", F = "Invalid Date",
|
|
193
|
-
var $ = ["th", "st", "nd", "rd"], b =
|
|
194
|
-
return "[" +
|
|
195
|
-
} }, pe = function(
|
|
196
|
-
var c = String(
|
|
197
|
-
return !c || c.length >= $ ?
|
|
198
|
-
}, se = { s: pe, z: function(
|
|
199
|
-
var $ = -
|
|
192
|
+
var t = 1e3, e = 6e4, r = 36e5, y = "millisecond", _ = "second", x = "minute", V = "hour", w = "day", D = "week", Y = "month", O = "quarter", h = "year", k = "date", F = "Invalid Date", re = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ae = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, fe = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
|
|
193
|
+
var $ = ["th", "st", "nd", "rd"], b = M % 100;
|
|
194
|
+
return "[" + M + ($[(b - 20) % 10] || $[b] || $[0]) + "]";
|
|
195
|
+
} }, pe = function(M, $, b) {
|
|
196
|
+
var c = String(M);
|
|
197
|
+
return !c || c.length >= $ ? M : "" + Array($ + 1 - c.length).join(b) + M;
|
|
198
|
+
}, se = { s: pe, z: function(M) {
|
|
199
|
+
var $ = -M.utcOffset(), b = Math.abs($), c = Math.floor(b / 60), s = b % 60;
|
|
200
200
|
return ($ <= 0 ? "+" : "-") + pe(c, 2, "0") + ":" + pe(s, 2, "0");
|
|
201
|
-
}, m: function
|
|
202
|
-
if ($.date() < b.date()) return -
|
|
203
|
-
var c = 12 * (b.year() - $.year()) + (b.month() - $.month()), s = $.clone().add(c, Y), E = b - s < 0,
|
|
204
|
-
return +(-(c + (b - s) / (E ? s -
|
|
205
|
-
}, a: function(
|
|
206
|
-
return
|
|
207
|
-
}, p: function(
|
|
208
|
-
return { M: Y, y: h, w: D, d: w, D: k, h: V, m: x, s: _, ms: y, Q: O }[
|
|
209
|
-
}, u: function(
|
|
210
|
-
return
|
|
211
|
-
} },
|
|
212
|
-
d[
|
|
213
|
-
var C = "$isDayjsObject", U = function(
|
|
214
|
-
return
|
|
215
|
-
}, v = function
|
|
201
|
+
}, m: function M($, b) {
|
|
202
|
+
if ($.date() < b.date()) return -M(b, $);
|
|
203
|
+
var c = 12 * (b.year() - $.year()) + (b.month() - $.month()), s = $.clone().add(c, Y), E = b - s < 0, q = $.clone().add(c + (E ? -1 : 1), Y);
|
|
204
|
+
return +(-(c + (b - s) / (E ? s - q : q - s)) || 0);
|
|
205
|
+
}, a: function(M) {
|
|
206
|
+
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
|
|
207
|
+
}, p: function(M) {
|
|
208
|
+
return { M: Y, y: h, w: D, d: w, D: k, h: V, m: x, s: _, ms: y, Q: O }[M] || String(M || "").toLowerCase().replace(/s$/, "");
|
|
209
|
+
}, u: function(M) {
|
|
210
|
+
return M === void 0;
|
|
211
|
+
} }, ue = "en", d = {};
|
|
212
|
+
d[ue] = fe;
|
|
213
|
+
var C = "$isDayjsObject", U = function(M) {
|
|
214
|
+
return M instanceof z || !(!M || !M[C]);
|
|
215
|
+
}, v = function M($, b, c) {
|
|
216
216
|
var s;
|
|
217
|
-
if (!$) return
|
|
217
|
+
if (!$) return ue;
|
|
218
218
|
if (typeof $ == "string") {
|
|
219
219
|
var E = $.toLowerCase();
|
|
220
220
|
d[E] && (s = E), b && (d[E] = b, s = E);
|
|
221
|
-
var
|
|
222
|
-
if (!s &&
|
|
221
|
+
var q = $.split("-");
|
|
222
|
+
if (!s && q.length > 1) return M(q[0]);
|
|
223
223
|
} else {
|
|
224
224
|
var P = $.name;
|
|
225
225
|
d[P] = $, s = P;
|
|
226
226
|
}
|
|
227
|
-
return !c && s && (
|
|
228
|
-
}, H = function(
|
|
229
|
-
if (U(
|
|
227
|
+
return !c && s && (ue = s), s || !c && ue;
|
|
228
|
+
}, H = function(M, $) {
|
|
229
|
+
if (U(M)) return M.clone();
|
|
230
230
|
var b = typeof $ == "object" ? $ : {};
|
|
231
|
-
return b.date =
|
|
231
|
+
return b.date = M, b.args = arguments, new z(b);
|
|
232
232
|
}, A = se;
|
|
233
|
-
A.l = v, A.i = U, A.w = function(
|
|
234
|
-
return H(
|
|
233
|
+
A.l = v, A.i = U, A.w = function(M, $) {
|
|
234
|
+
return H(M, { locale: $.$L, utc: $.$u, x: $.$x, $offset: $.$offset });
|
|
235
235
|
};
|
|
236
236
|
var z = function() {
|
|
237
|
-
function
|
|
237
|
+
function M(b) {
|
|
238
238
|
this.$L = v(b.locale, null, !0), this.parse(b), this.$x = this.$x || b.x || {}, this[C] = !0;
|
|
239
239
|
}
|
|
240
|
-
var $ =
|
|
240
|
+
var $ = M.prototype;
|
|
241
241
|
return $.parse = function(b) {
|
|
242
242
|
this.$d = function(c) {
|
|
243
243
|
var s = c.date, E = c.utc;
|
|
@@ -245,10 +245,10 @@ var vt = { exports: {} };
|
|
|
245
245
|
if (A.u(s)) return /* @__PURE__ */ new Date();
|
|
246
246
|
if (s instanceof Date) return new Date(s);
|
|
247
247
|
if (typeof s == "string" && !/Z$/i.test(s)) {
|
|
248
|
-
var
|
|
249
|
-
if (
|
|
250
|
-
var P =
|
|
251
|
-
return E ? new Date(Date.UTC(
|
|
248
|
+
var q = s.match(re);
|
|
249
|
+
if (q) {
|
|
250
|
+
var P = q[2] - 1 || 0, J = (q[7] || "0").substring(0, 3);
|
|
251
|
+
return E ? new Date(Date.UTC(q[1], P, q[3] || 1, q[4] || 0, q[5] || 0, q[6] || 0, J)) : new Date(q[1], P, q[3] || 1, q[4] || 0, q[5] || 0, q[6] || 0, J);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
return new Date(s);
|
|
@@ -274,36 +274,36 @@ var vt = { exports: {} };
|
|
|
274
274
|
}, $.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
276
|
}, $.startOf = function(b, c) {
|
|
277
|
-
var s = this, E = !!A.u(c) || c,
|
|
277
|
+
var s = this, E = !!A.u(c) || c, q = A.p(b), P = function(a, p) {
|
|
278
278
|
var R = A.w(s.$u ? Date.UTC(s.$y, p, a) : new Date(s.$y, p, a), s);
|
|
279
279
|
return E ? R : R.endOf(w);
|
|
280
280
|
}, J = function(a, p) {
|
|
281
281
|
return A.w(s.toDate()[a].apply(s.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(p)), s);
|
|
282
|
-
}, le = this.$W, n = this.$M,
|
|
283
|
-
switch (
|
|
282
|
+
}, le = this.$W, n = this.$M, Q = this.$D, X = "set" + (this.$u ? "UTC" : "");
|
|
283
|
+
switch (q) {
|
|
284
284
|
case h:
|
|
285
285
|
return E ? P(1, 0) : P(31, 11);
|
|
286
286
|
case Y:
|
|
287
287
|
return E ? P(1, n) : P(0, n + 1);
|
|
288
288
|
case D:
|
|
289
289
|
var he = this.$locale().weekStart || 0, o = (le < he ? le + 7 : le) - he;
|
|
290
|
-
return P(E ?
|
|
290
|
+
return P(E ? Q - o : Q + (6 - o), n);
|
|
291
291
|
case w:
|
|
292
292
|
case k:
|
|
293
|
-
return J(
|
|
293
|
+
return J(X + "Hours", 0);
|
|
294
294
|
case V:
|
|
295
|
-
return J(
|
|
295
|
+
return J(X + "Minutes", 1);
|
|
296
296
|
case x:
|
|
297
|
-
return J(
|
|
297
|
+
return J(X + "Seconds", 2);
|
|
298
298
|
case _:
|
|
299
|
-
return J(
|
|
299
|
+
return J(X + "Milliseconds", 3);
|
|
300
300
|
default:
|
|
301
301
|
return this.clone();
|
|
302
302
|
}
|
|
303
303
|
}, $.endOf = function(b) {
|
|
304
304
|
return this.startOf(b, !1);
|
|
305
305
|
}, $.$set = function(b, c) {
|
|
306
|
-
var s, E = A.p(b),
|
|
306
|
+
var s, E = A.p(b), q = "set" + (this.$u ? "UTC" : ""), P = (s = {}, s[w] = q + "Date", s[k] = q + "Date", s[Y] = q + "Month", s[h] = q + "FullYear", s[V] = q + "Hours", s[x] = q + "Minutes", s[_] = q + "Seconds", s[y] = q + "Milliseconds", s)[E], J = E === w ? this.$D + (c - this.$W) : c;
|
|
307
307
|
if (E === Y || E === h) {
|
|
308
308
|
var le = this.clone().set(k, 1);
|
|
309
309
|
le.$d[P](J), le.init(), this.$d = le.set(k, Math.min(this.$D, le.daysInMonth())).$d;
|
|
@@ -316,30 +316,30 @@ var vt = { exports: {} };
|
|
|
316
316
|
}, $.add = function(b, c) {
|
|
317
317
|
var s, E = this;
|
|
318
318
|
b = Number(b);
|
|
319
|
-
var
|
|
320
|
-
var
|
|
321
|
-
return A.w(
|
|
319
|
+
var q = A.p(c), P = function(n) {
|
|
320
|
+
var Q = H(E);
|
|
321
|
+
return A.w(Q.date(Q.date() + Math.round(n * b)), E);
|
|
322
322
|
};
|
|
323
|
-
if (
|
|
324
|
-
if (
|
|
325
|
-
if (
|
|
326
|
-
if (
|
|
327
|
-
var J = (s = {}, s[x] = e, s[V] = r, s[_] = t, s)[
|
|
323
|
+
if (q === Y) return this.set(Y, this.$M + b);
|
|
324
|
+
if (q === h) return this.set(h, this.$y + b);
|
|
325
|
+
if (q === w) return P(1);
|
|
326
|
+
if (q === D) return P(7);
|
|
327
|
+
var J = (s = {}, s[x] = e, s[V] = r, s[_] = t, s)[q] || 1, le = this.$d.getTime() + b * J;
|
|
328
328
|
return A.w(le, this);
|
|
329
329
|
}, $.subtract = function(b, c) {
|
|
330
330
|
return this.add(-1 * b, c);
|
|
331
331
|
}, $.format = function(b) {
|
|
332
332
|
var c = this, s = this.$locale();
|
|
333
333
|
if (!this.isValid()) return s.invalidDate || F;
|
|
334
|
-
var E = b || "YYYY-MM-DDTHH:mm:ssZ",
|
|
334
|
+
var E = b || "YYYY-MM-DDTHH:mm:ssZ", q = A.z(this), P = this.$H, J = this.$m, le = this.$M, n = s.weekdays, Q = s.months, X = s.meridiem, he = function(p, R, ee, te) {
|
|
335
335
|
return p && (p[R] || p(c, E)) || ee[R].slice(0, te);
|
|
336
336
|
}, o = function(p) {
|
|
337
337
|
return A.s(P % 12 || 12, p, "0");
|
|
338
|
-
}, a =
|
|
338
|
+
}, a = X || function(p, R, ee) {
|
|
339
339
|
var te = p < 12 ? "AM" : "PM";
|
|
340
340
|
return ee ? te.toLowerCase() : te;
|
|
341
341
|
};
|
|
342
|
-
return E.replace(
|
|
342
|
+
return E.replace(ae, function(p, R) {
|
|
343
343
|
return R || function(ee) {
|
|
344
344
|
switch (ee) {
|
|
345
345
|
case "YY":
|
|
@@ -351,9 +351,9 @@ var vt = { exports: {} };
|
|
|
351
351
|
case "MM":
|
|
352
352
|
return A.s(le + 1, 2, "0");
|
|
353
353
|
case "MMM":
|
|
354
|
-
return he(s.monthsShort, le,
|
|
354
|
+
return he(s.monthsShort, le, Q, 3);
|
|
355
355
|
case "MMMM":
|
|
356
|
-
return he(
|
|
356
|
+
return he(Q, le);
|
|
357
357
|
case "D":
|
|
358
358
|
return c.$D;
|
|
359
359
|
case "DD":
|
|
@@ -389,26 +389,26 @@ var vt = { exports: {} };
|
|
|
389
389
|
case "SSS":
|
|
390
390
|
return A.s(c.$ms, 3, "0");
|
|
391
391
|
case "Z":
|
|
392
|
-
return
|
|
392
|
+
return q;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
|
-
}(p) ||
|
|
395
|
+
}(p) || q.replace(":", "");
|
|
396
396
|
});
|
|
397
397
|
}, $.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
399
|
}, $.diff = function(b, c, s) {
|
|
400
|
-
var E,
|
|
401
|
-
return A.m(
|
|
400
|
+
var E, q = this, P = A.p(c), J = H(b), le = (J.utcOffset() - this.utcOffset()) * e, n = this - J, Q = function() {
|
|
401
|
+
return A.m(q, J);
|
|
402
402
|
};
|
|
403
403
|
switch (P) {
|
|
404
404
|
case h:
|
|
405
|
-
E =
|
|
405
|
+
E = Q() / 12;
|
|
406
406
|
break;
|
|
407
407
|
case Y:
|
|
408
|
-
E =
|
|
408
|
+
E = Q();
|
|
409
409
|
break;
|
|
410
410
|
case O:
|
|
411
|
-
E =
|
|
411
|
+
E = Q() / 3;
|
|
412
412
|
break;
|
|
413
413
|
case D:
|
|
414
414
|
E = (n - le) / 6048e5;
|
|
@@ -447,17 +447,17 @@ var vt = { exports: {} };
|
|
|
447
447
|
return this.$d.toISOString();
|
|
448
448
|
}, $.toString = function() {
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
|
-
},
|
|
450
|
+
}, M;
|
|
451
451
|
}(), be = z.prototype;
|
|
452
|
-
return H.prototype = be, [["$ms", y], ["$s", _], ["$m", x], ["$H", V], ["$W", w], ["$M", Y], ["$y", h], ["$D", k]].forEach(function(
|
|
453
|
-
be[
|
|
454
|
-
return this.$g($,
|
|
452
|
+
return H.prototype = be, [["$ms", y], ["$s", _], ["$m", x], ["$H", V], ["$W", w], ["$M", Y], ["$y", h], ["$D", k]].forEach(function(M) {
|
|
453
|
+
be[M[1]] = function($) {
|
|
454
|
+
return this.$g($, M[0], M[1]);
|
|
455
455
|
};
|
|
456
|
-
}), H.extend = function(
|
|
457
|
-
return
|
|
458
|
-
}, H.locale = v, H.isDayjs = U, H.unix = function(
|
|
459
|
-
return H(1e3 *
|
|
460
|
-
}, H.en = d[
|
|
456
|
+
}), H.extend = function(M, $) {
|
|
457
|
+
return M.$i || (M($, z, H), M.$i = !0), H;
|
|
458
|
+
}, H.locale = v, H.isDayjs = U, H.unix = function(M) {
|
|
459
|
+
return H(1e3 * M);
|
|
460
|
+
}, H.en = d[ue], H.Ls = d, H.p = {}, H;
|
|
461
461
|
});
|
|
462
462
|
})(vt);
|
|
463
463
|
var Ot = vt.exports;
|
|
@@ -485,9 +485,9 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
485
485
|
});
|
|
486
486
|
}, Y = async (O = "options") => {
|
|
487
487
|
try {
|
|
488
|
-
const h = await (e == null ? void 0 : e.getDicts(t.formInfo, i.value)), k = h == null ? void 0 : h.map((F,
|
|
488
|
+
const h = await (e == null ? void 0 : e.getDicts(t.formInfo, i.value)), k = h == null ? void 0 : h.map((F, re) => ({
|
|
489
489
|
...F,
|
|
490
|
-
value: F.value ?? F.label ??
|
|
490
|
+
value: F.value ?? F.label ?? re,
|
|
491
491
|
label: F.label || "未知选项"
|
|
492
492
|
}));
|
|
493
493
|
Object.assign(_[r], { [O]: k });
|
|
@@ -497,9 +497,9 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
497
497
|
};
|
|
498
498
|
return je(async () => {
|
|
499
499
|
e && e["remote-method"] && (w["remote-method"] = D);
|
|
500
|
-
const O = (k, F = "options",
|
|
501
|
-
typeof e.getDicts == "function" && Y(F).catch((
|
|
502
|
-
console.error(`Failed to load ${F} for ${k}:`,
|
|
500
|
+
const O = (k, F = "options", re = _[r]) => {
|
|
501
|
+
typeof e.getDicts == "function" && Y(F).catch((ae) => {
|
|
502
|
+
console.error(`Failed to load ${F} for ${k}:`, ae);
|
|
503
503
|
});
|
|
504
504
|
};
|
|
505
505
|
["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(y) && O(y), y === "tree-select" && await (async () => {
|
|
@@ -511,7 +511,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
511
511
|
})();
|
|
512
512
|
}), (O, h) => {
|
|
513
513
|
var J, le;
|
|
514
|
-
const k = N("el-radio"), F = N("el-radio-group"),
|
|
514
|
+
const k = N("el-radio"), F = N("el-radio-group"), re = N("el-radio-button"), ae = N("el-checkbox"), fe = N("el-checkbox-group"), pe = N("el-checkbox-button"), se = N("el-option"), ue = N("el-option-group"), d = N("el-select"), C = N("el-tree-select"), U = N("el-time-picker"), v = N("el-time-select"), H = N("el-date-picker"), A = N("el-color-picker"), z = N("el-rate"), be = N("el-slider"), M = N("el-switch"), $ = N("el-transfer"), b = N("el-cascader"), c = N("el-button"), s = N("el-upload"), E = N("el-autocomplete"), q = N("el-input-number"), P = N("el-input");
|
|
515
515
|
return u(), I("div", xt, [
|
|
516
516
|
l(y) == l(de).RADIO ? (u(), S(F, B({
|
|
517
517
|
key: 0,
|
|
@@ -520,7 +520,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
520
520
|
}, l(e)), {
|
|
521
521
|
default: g(() => [
|
|
522
522
|
m(O.$slots, `${t.t}-${l(r)}`, { data: l(e) }, () => [
|
|
523
|
-
(u(!0), I(
|
|
523
|
+
(u(!0), I(G, null, j(l(_)[l(r)].options, (n) => (u(), S(k, B({ ref_for: !0 }, n), {
|
|
524
524
|
default: g(() => [
|
|
525
525
|
m(O.$slots, `${t.t}-${l(r)}-options`, { option: n })
|
|
526
526
|
]),
|
|
@@ -536,7 +536,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
536
536
|
}, l(e)), {
|
|
537
537
|
default: g(() => [
|
|
538
538
|
m(O.$slots, `${t.t}-${l(r)}`, { data: l(e) }, () => [
|
|
539
|
-
(u(!0), I(
|
|
539
|
+
(u(!0), I(G, null, j(l(_)[l(r)].options, (n) => (u(), S(re, B({ ref_for: !0 }, n), {
|
|
540
540
|
default: g(() => [
|
|
541
541
|
m(O.$slots, `${t.t}-${l(r)}-options`, { option: n })
|
|
542
542
|
]),
|
|
@@ -545,7 +545,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
545
545
|
])
|
|
546
546
|
]),
|
|
547
547
|
_: 3
|
|
548
|
-
}, 16, ["modelValue"])) : l(y) == l(de).CHECKBOX ? (u(), S(
|
|
548
|
+
}, 16, ["modelValue"])) : l(y) == l(de).CHECKBOX ? (u(), S(ae, B({
|
|
549
549
|
key: 2,
|
|
550
550
|
modelValue: i.value,
|
|
551
551
|
"onUpdate:modelValue": h[2] || (h[2] = (n) => i.value = n)
|
|
@@ -563,7 +563,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
563
563
|
}, l(e)), {
|
|
564
564
|
default: g(() => [
|
|
565
565
|
m(O.$slots, `${t.t}-${l(r)}`, { data: l(e) }, () => [
|
|
566
|
-
(u(!0), I(
|
|
566
|
+
(u(!0), I(G, null, j(l(_)[l(r)].options, (n) => (u(), S(ae, B({ ref_for: !0 }, n), {
|
|
567
567
|
default: g(() => [
|
|
568
568
|
m(O.$slots, `${t.t}-${l(r)}-options`, { option: n }, () => [
|
|
569
569
|
ge(me(n.label), 1)
|
|
@@ -581,7 +581,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
581
581
|
}, l(e)), {
|
|
582
582
|
default: g(() => [
|
|
583
583
|
m(O.$slots, `${t.t}-${l(r)}`, { data: l(e) }, () => [
|
|
584
|
-
(u(!0), I(
|
|
584
|
+
(u(!0), I(G, null, j(l(_)[l(r)].options, (n) => (u(), S(pe, B({ ref_for: !0 }, n), {
|
|
585
585
|
default: g(() => [
|
|
586
586
|
m(O.$slots, `${t.t}-${l(r)}-options`, { option: n })
|
|
587
587
|
]),
|
|
@@ -600,14 +600,14 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
600
600
|
m(O.$slots, `${t.t}-${l(r)}`, {
|
|
601
601
|
options: l(_)[l(r)].options
|
|
602
602
|
}, () => {
|
|
603
|
-
var n,
|
|
603
|
+
var n, Q;
|
|
604
604
|
return [
|
|
605
|
-
(
|
|
606
|
-
key:
|
|
607
|
-
label:
|
|
605
|
+
(Q = (n = l(_)[l(r)]) == null ? void 0 : n.options) != null && Q.some((X) => X.options) ? (u(!0), I(G, { key: 0 }, j(l(_)[l(r)].options, (X) => (u(), S(ue, {
|
|
606
|
+
key: X.label,
|
|
607
|
+
label: X.label
|
|
608
608
|
}, {
|
|
609
609
|
default: g(() => [
|
|
610
|
-
(u(!0), I(
|
|
610
|
+
(u(!0), I(G, null, j(X.options, (he) => (u(), S(se, B({ ref_for: !0 }, he, {
|
|
611
611
|
key: he.value,
|
|
612
612
|
onClick: (o) => w.change && w.change(he)
|
|
613
613
|
}), {
|
|
@@ -618,12 +618,12 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
618
618
|
}, 1040, ["onClick"]))), 128))
|
|
619
619
|
]),
|
|
620
620
|
_: 2
|
|
621
|
-
}, 1032, ["label"]))), 128)) : (u(!0), I(
|
|
622
|
-
key:
|
|
623
|
-
onClick: (he) => w.change && w.change(
|
|
621
|
+
}, 1032, ["label"]))), 128)) : (u(!0), I(G, { key: 1 }, j(l(_)[l(r)].options, (X) => (u(), S(se, B({ ref_for: !0 }, X, {
|
|
622
|
+
key: X.value,
|
|
623
|
+
onClick: (he) => w.change && w.change(X)
|
|
624
624
|
}), {
|
|
625
625
|
default: g(() => [
|
|
626
|
-
m(O.$slots, `${t.t}-${l(r)}-options`, { option:
|
|
626
|
+
m(O.$slots, `${t.t}-${l(r)}-options`, { option: X })
|
|
627
627
|
]),
|
|
628
628
|
_: 2
|
|
629
629
|
}, 1040, ["onClick"]))), 128))
|
|
@@ -634,8 +634,8 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
634
634
|
}, [
|
|
635
635
|
j(V(), (n) => ({
|
|
636
636
|
name: n,
|
|
637
|
-
fn: g((
|
|
638
|
-
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data:
|
|
637
|
+
fn: g((Q) => [
|
|
638
|
+
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data: Q })
|
|
639
639
|
])
|
|
640
640
|
}))
|
|
641
641
|
]), 1040, ["modelValue", "placeholder"])) : l(y) == l(de).TREESELECT ? (u(), S(C, B({
|
|
@@ -646,8 +646,8 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
646
646
|
}, l(e), { data: x.value }), ie({ _: 2 }, [
|
|
647
647
|
j(V(), (n) => ({
|
|
648
648
|
name: n,
|
|
649
|
-
fn: g((
|
|
650
|
-
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data:
|
|
649
|
+
fn: g((Q) => [
|
|
650
|
+
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data: Q })
|
|
651
651
|
])
|
|
652
652
|
}))
|
|
653
653
|
]), 1040, ["modelValue", "placeholder", "data"])) : l(y) == l(de).TIME ? (u(), S(U, B({
|
|
@@ -675,8 +675,8 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
675
675
|
}, l(e)), ie({ _: 2 }, [
|
|
676
676
|
j(V(), (n) => ({
|
|
677
677
|
name: n,
|
|
678
|
-
fn: g((
|
|
679
|
-
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data:
|
|
678
|
+
fn: g((Q) => [
|
|
679
|
+
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data: Q })
|
|
680
680
|
])
|
|
681
681
|
}))
|
|
682
682
|
]), 1040, ["modelValue", "placeholder"])) : l(y) == l(de).DATETIME ? (u(), S(H, B({
|
|
@@ -689,8 +689,8 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
689
689
|
}, l(e)), ie({ _: 2 }, [
|
|
690
690
|
j(V(), (n) => ({
|
|
691
691
|
name: n,
|
|
692
|
-
fn: g((
|
|
693
|
-
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data:
|
|
692
|
+
fn: g((Q) => [
|
|
693
|
+
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data: Q })
|
|
694
694
|
])
|
|
695
695
|
}))
|
|
696
696
|
]), 1040, ["modelValue", "type", "placeholder"])) : l(y) == l(de).COLOR ? (u(), S(A, B({
|
|
@@ -705,15 +705,15 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
705
705
|
key: 13,
|
|
706
706
|
modelValue: i.value,
|
|
707
707
|
"onUpdate:modelValue": h[13] || (h[13] = (n) => i.value = n)
|
|
708
|
-
}, l(e)), null, 16, ["modelValue"])) : l(y) == l(de).SWITCH ? (u(), S(
|
|
708
|
+
}, l(e)), null, 16, ["modelValue"])) : l(y) == l(de).SWITCH ? (u(), S(M, B({
|
|
709
709
|
key: 14,
|
|
710
710
|
modelValue: i.value,
|
|
711
711
|
"onUpdate:modelValue": h[14] || (h[14] = (n) => i.value = n)
|
|
712
712
|
}, l(e)), ie({ _: 2 }, [
|
|
713
713
|
j(V(), (n) => ({
|
|
714
714
|
name: n,
|
|
715
|
-
fn: g((
|
|
716
|
-
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data:
|
|
715
|
+
fn: g((Q) => [
|
|
716
|
+
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data: Q })
|
|
717
717
|
])
|
|
718
718
|
}))
|
|
719
719
|
]), 1040, ["modelValue"])) : l(y) == l(de).TRANSFER ? (u(), S($, B({
|
|
@@ -723,8 +723,8 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
723
723
|
}, l(e)), ie({ _: 2 }, [
|
|
724
724
|
j(V(), (n) => ({
|
|
725
725
|
name: n,
|
|
726
|
-
fn: g((
|
|
727
|
-
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data:
|
|
726
|
+
fn: g((Q) => [
|
|
727
|
+
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data: Q })
|
|
728
728
|
])
|
|
729
729
|
}))
|
|
730
730
|
]), 1040, ["modelValue"])) : l(y) == l(de).CASCADER ? (u(), S(b, B({
|
|
@@ -736,8 +736,8 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
736
736
|
}), ie({ _: 2 }, [
|
|
737
737
|
j(V(), (n) => ({
|
|
738
738
|
name: n,
|
|
739
|
-
fn: g((
|
|
740
|
-
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data:
|
|
739
|
+
fn: g((Q) => [
|
|
740
|
+
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data: Q })
|
|
741
741
|
])
|
|
742
742
|
}))
|
|
743
743
|
]), 1040, ["modelValue", "options"])) : l(y) == l(de).IMAGE ? (u(), S(s, Ue(B({ key: 17 }, l(e))), ie({
|
|
@@ -751,10 +751,10 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
751
751
|
]),
|
|
752
752
|
_: 2
|
|
753
753
|
}, [
|
|
754
|
-
j(V(), (n,
|
|
754
|
+
j(V(), (n, Q) => ({
|
|
755
755
|
name: n,
|
|
756
|
-
fn: g((
|
|
757
|
-
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data:
|
|
756
|
+
fn: g((X) => [
|
|
757
|
+
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data: X })
|
|
758
758
|
])
|
|
759
759
|
}))
|
|
760
760
|
]), 1040)) : l(y) == l(de).AUTOCOMPLETE ? (u(), S(E, B({
|
|
@@ -764,13 +764,13 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
764
764
|
}, l(e), {
|
|
765
765
|
placeholder: l(_)[l(r)].label
|
|
766
766
|
}), ie({ _: 2 }, [
|
|
767
|
-
j(V(), (n,
|
|
767
|
+
j(V(), (n, Q) => ({
|
|
768
768
|
name: n,
|
|
769
|
-
fn: g((
|
|
770
|
-
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data:
|
|
769
|
+
fn: g((X) => [
|
|
770
|
+
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data: X })
|
|
771
771
|
])
|
|
772
772
|
}))
|
|
773
|
-
]), 1040, ["modelValue", "placeholder"])) : l(y) == l(de).INPUTNUMBER ? (u(), S(
|
|
773
|
+
]), 1040, ["modelValue", "placeholder"])) : l(y) == l(de).INPUTNUMBER ? (u(), S(q, B({
|
|
774
774
|
key: 19,
|
|
775
775
|
modelValue: i.value,
|
|
776
776
|
"onUpdate:modelValue": h[18] || (h[18] = (n) => i.value = n),
|
|
@@ -778,10 +778,10 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
778
778
|
max: 1e8,
|
|
779
779
|
placeholder: l(_)[l(r)].label
|
|
780
780
|
}, l(e)), ie({ _: 2 }, [
|
|
781
|
-
j(V(), (n,
|
|
781
|
+
j(V(), (n, Q) => ({
|
|
782
782
|
name: n,
|
|
783
|
-
fn: g((
|
|
784
|
-
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data:
|
|
783
|
+
fn: g((X) => [
|
|
784
|
+
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data: X })
|
|
785
785
|
])
|
|
786
786
|
}))
|
|
787
787
|
]), 1040, ["modelValue", "placeholder"])) : l(y) == l(de).MONEY ? (u(), I("div", At, [
|
|
@@ -802,10 +802,10 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
802
802
|
]),
|
|
803
803
|
key: "0"
|
|
804
804
|
} : void 0,
|
|
805
|
-
j(V(), (n,
|
|
805
|
+
j(V(), (n, Q) => ({
|
|
806
806
|
name: n,
|
|
807
|
-
fn: g((
|
|
808
|
-
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data:
|
|
807
|
+
fn: g((X) => [
|
|
808
|
+
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data: X })
|
|
809
809
|
])
|
|
810
810
|
}))
|
|
811
811
|
]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
|
|
@@ -817,10 +817,10 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
817
817
|
maxlength: ((le = l(e)) == null ? void 0 : le.max) || 25,
|
|
818
818
|
clearable: !0
|
|
819
819
|
}, { ...l(e), type: l(y) }), ie({ _: 2 }, [
|
|
820
|
-
j(V(), (n,
|
|
820
|
+
j(V(), (n, Q) => ({
|
|
821
821
|
name: n,
|
|
822
|
-
fn: g((
|
|
823
|
-
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data:
|
|
822
|
+
fn: g((X) => [
|
|
823
|
+
m(O.$slots, `${t.t}-${l(r)}-${n}`, { data: X })
|
|
824
824
|
])
|
|
825
825
|
}))
|
|
826
826
|
]), 1040, ["modelValue", "placeholder", "maxlength"]))
|
|
@@ -838,7 +838,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
838
838
|
},
|
|
839
839
|
emits: /* @__PURE__ */ Me(["submit", "reset"], ["update:modelValue"]),
|
|
840
840
|
setup(f, { emit: i }) {
|
|
841
|
-
var fe, pe, se,
|
|
841
|
+
var fe, pe, se, ue;
|
|
842
842
|
const t = qe(f, "modelValue"), e = i, r = ye(null), y = et("options"), _ = {
|
|
843
843
|
inline: !0,
|
|
844
844
|
type: "hidden",
|
|
@@ -918,7 +918,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
918
918
|
};
|
|
919
919
|
t.value.form.cols = Ee(
|
|
920
920
|
V,
|
|
921
|
-
(
|
|
921
|
+
(ue = y == null ? void 0 : y.form) == null ? void 0 : ue.cols,
|
|
922
922
|
t.value.form.cols
|
|
923
923
|
);
|
|
924
924
|
const w = (d) => {
|
|
@@ -953,14 +953,14 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
953
953
|
}
|
|
954
954
|
return C;
|
|
955
955
|
}, D = (d, C = !1) => {
|
|
956
|
-
var H, A, z, be,
|
|
956
|
+
var H, A, z, be, M;
|
|
957
957
|
const U = C ? d : d == null ? void 0 : d.item, v = typeof (U == null ? void 0 : U.editor) == "function" ? U.editor(k.value, (H = t.value.form) == null ? void 0 : H.modalState) : (U == null ? void 0 : U.editor) || {};
|
|
958
958
|
if (((A = t.value.form) == null ? void 0 : A.modalState) === "edit") {
|
|
959
959
|
const $ = typeof (U == null ? void 0 : U.editor) == "object" ? (z = U.editor) == null ? void 0 : z.ep : typeof (U == null ? void 0 : U.editor) == "function" ? v == null ? void 0 : v.ep : {};
|
|
960
960
|
return { ...v, ...$ };
|
|
961
961
|
}
|
|
962
962
|
if (((be = t.value.form) == null ? void 0 : be.modalState) === "add") {
|
|
963
|
-
const $ = typeof (U == null ? void 0 : U.editor) == "object" ? (
|
|
963
|
+
const $ = typeof (U == null ? void 0 : U.editor) == "object" ? (M = U.editor) == null ? void 0 : M.ap : typeof (U == null ? void 0 : U.editor) == "function" ? v == null ? void 0 : v.ap : {};
|
|
964
964
|
return { ...v, ...$ };
|
|
965
965
|
}
|
|
966
966
|
return v;
|
|
@@ -994,7 +994,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
994
994
|
}), d.forEach((C) => {
|
|
995
995
|
C.tabPane = Ee(...C.items.map(({ item: U }) => U.tabPane || {}));
|
|
996
996
|
}), Array.from(d.values());
|
|
997
|
-
}),
|
|
997
|
+
}), re = [
|
|
998
998
|
{
|
|
999
999
|
name: "f-submit",
|
|
1000
1000
|
label: t.value.form.submit.label,
|
|
@@ -1017,7 +1017,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1017
1017
|
originalOrder: 1
|
|
1018
1018
|
// 添加原始顺序标识
|
|
1019
1019
|
}
|
|
1020
|
-
],
|
|
1020
|
+
], ae = Se(() => re.filter((d) => !d.hidden).sort((d, C) => d.sort - C.sort || d.originalOrder - C.originalOrder));
|
|
1021
1021
|
return (d, C) => {
|
|
1022
1022
|
const U = N("el-form-item"), v = N("el-col"), H = N("el-tab-pane"), A = N("el-tabs"), z = N("el-button"), be = N("el-form");
|
|
1023
1023
|
return u(), S(be, B({
|
|
@@ -1025,10 +1025,10 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1025
1025
|
ref: r,
|
|
1026
1026
|
model: t.value,
|
|
1027
1027
|
style: { width: "98%", padding: 0, margin: 0, "box-sizing": "border-box" }
|
|
1028
|
-
}, l(ke)(t.value.form, (
|
|
1028
|
+
}, l(ke)(t.value.form, (M) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(M)), { class: "g-form-container" }), {
|
|
1029
1029
|
default: g(() => [
|
|
1030
1030
|
F.value.length > 0 ? m(d.$slots, "default", { key: 0 }, () => {
|
|
1031
|
-
var
|
|
1031
|
+
var M, $, b;
|
|
1032
1032
|
return [
|
|
1033
1033
|
Z(A, B({
|
|
1034
1034
|
class: "demo-tabs",
|
|
@@ -1037,7 +1037,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1037
1037
|
style: { width: "100%" }
|
|
1038
1038
|
}, t.value.form.tabs), {
|
|
1039
1039
|
default: g(() => [
|
|
1040
|
-
(u(!0), I(
|
|
1040
|
+
(u(!0), I(G, null, j(F.value, (c) => (u(), S(H, B({
|
|
1041
1041
|
key: c.groupName,
|
|
1042
1042
|
label: c.groupName,
|
|
1043
1043
|
name: c.groupName,
|
|
@@ -1045,19 +1045,19 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1045
1045
|
ref_for: !0
|
|
1046
1046
|
}, c.tabPane), {
|
|
1047
1047
|
default: g(() => [
|
|
1048
|
-
(u(!0), I(
|
|
1048
|
+
(u(!0), I(G, null, j(c.items, (s, E) => (u(), S(v, B({ ref_for: !0 }, { ...t.value.form.cols, ...s == null ? void 0 : s.item.col }, {
|
|
1049
1049
|
key: s.key,
|
|
1050
1050
|
style: { width: "100%" }
|
|
1051
1051
|
}), {
|
|
1052
1052
|
default: g(() => {
|
|
1053
|
-
var
|
|
1053
|
+
var q, P;
|
|
1054
1054
|
return [
|
|
1055
1055
|
Z(U, B({
|
|
1056
1056
|
label: s == null ? void 0 : s.item.label,
|
|
1057
1057
|
prop: `${s.key}.value`,
|
|
1058
1058
|
rules: w(s == null ? void 0 : s.item),
|
|
1059
1059
|
ref_for: !0
|
|
1060
|
-
}, { ...(
|
|
1060
|
+
}, { ...(q = t.value) == null ? void 0 : q.formItems, ...(P = s == null ? void 0 : s.item) == null ? void 0 : P.formItem }, { style: { width: "100%" } }), {
|
|
1061
1061
|
default: g(() => [
|
|
1062
1062
|
m(d.$slots, "f-" + s.key, {
|
|
1063
1063
|
item: s == null ? void 0 : s.item,
|
|
@@ -1099,12 +1099,12 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1099
1099
|
]),
|
|
1100
1100
|
_: 3
|
|
1101
1101
|
}, 16, ["modelValue"]),
|
|
1102
|
-
(b = ($ = (
|
|
1102
|
+
(b = ($ = (M = t.value) == null ? void 0 : M.form) == null ? void 0 : $.footer) != null && b.hidden ? ve("", !0) : m(d.$slots, "f-footer", { key: 0 }, () => [
|
|
1103
1103
|
K("div", {
|
|
1104
1104
|
style: Ve(t.value.form.footer.style)
|
|
1105
1105
|
}, [
|
|
1106
1106
|
m(d.$slots, "f-footer-left"),
|
|
1107
|
-
(u(!0), I(
|
|
1107
|
+
(u(!0), I(G, null, j(ae.value, (c) => (u(), I(G, null, [
|
|
1108
1108
|
m(d.$slots, c.name + "-left"),
|
|
1109
1109
|
m(d.$slots, c.name, {}, () => [
|
|
1110
1110
|
Z(z, B({ ref_for: !0 }, c.info, {
|
|
@@ -1123,9 +1123,9 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1123
1123
|
])
|
|
1124
1124
|
];
|
|
1125
1125
|
}) : m(d.$slots, "default", { key: 1 }, () => {
|
|
1126
|
-
var
|
|
1126
|
+
var M, $, b;
|
|
1127
1127
|
return [
|
|
1128
|
-
(u(!0), I(
|
|
1128
|
+
(u(!0), I(G, null, j(h.value, (c, s) => (u(), S(v, B({ ref_for: !0 }, { ...t.value.form.cols, ...c.col }, {
|
|
1129
1129
|
key: s,
|
|
1130
1130
|
style: { width: "100%" }
|
|
1131
1131
|
}), {
|
|
@@ -1138,9 +1138,9 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1138
1138
|
rules: w(c),
|
|
1139
1139
|
ref_for: !0
|
|
1140
1140
|
}, { ...(E = t.value) == null ? void 0 : E.formItems, ...c == null ? void 0 : c.formItem }, { style: { width: "100%" } }), {
|
|
1141
|
-
label: g((
|
|
1141
|
+
label: g((q) => [
|
|
1142
1142
|
m(d.$slots, `f-${s}-label`, {
|
|
1143
|
-
data:
|
|
1143
|
+
data: q,
|
|
1144
1144
|
item: c,
|
|
1145
1145
|
model: t.value
|
|
1146
1146
|
}, () => [
|
|
@@ -1154,7 +1154,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1154
1154
|
}, () => [
|
|
1155
1155
|
Z(Ye, {
|
|
1156
1156
|
modelValue: t.value[s].value,
|
|
1157
|
-
"onUpdate:modelValue": (
|
|
1157
|
+
"onUpdate:modelValue": (q) => t.value[s].value = q,
|
|
1158
1158
|
item: D(c, !0),
|
|
1159
1159
|
ctrlKey: s,
|
|
1160
1160
|
ctrlType: Y(c),
|
|
@@ -1163,7 +1163,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1163
1163
|
t: "f",
|
|
1164
1164
|
formInfo: k.value
|
|
1165
1165
|
}, ie({ _: 2 }, [
|
|
1166
|
-
j(d.$slots, (
|
|
1166
|
+
j(d.$slots, (q, P) => ({
|
|
1167
1167
|
name: P,
|
|
1168
1168
|
fn: g((J) => [
|
|
1169
1169
|
m(d.$slots, P, {
|
|
@@ -1182,12 +1182,12 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1182
1182
|
}),
|
|
1183
1183
|
_: 2
|
|
1184
1184
|
}, 1040))), 128)),
|
|
1185
|
-
(b = ($ = (
|
|
1185
|
+
(b = ($ = (M = t.value) == null ? void 0 : M.form) == null ? void 0 : $.footer) != null && b.hidden ? ve("", !0) : m(d.$slots, "f-footer", { key: 0 }, () => [
|
|
1186
1186
|
K("div", {
|
|
1187
1187
|
style: Ve(t.value.form.footer.style)
|
|
1188
1188
|
}, [
|
|
1189
1189
|
m(d.$slots, "f-footer-left"),
|
|
1190
|
-
(u(!0), I(
|
|
1190
|
+
(u(!0), I(G, null, j(ae.value, (c) => (u(), I(G, null, [
|
|
1191
1191
|
m(d.$slots, c.name + "-left"),
|
|
1192
1192
|
m(d.$slots, c.name, {}, () => [
|
|
1193
1193
|
Z(z, B({ ref_for: !0 }, c.info, {
|
|
@@ -1227,7 +1227,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1227
1227
|
};
|
|
1228
1228
|
return (x, V) => {
|
|
1229
1229
|
const w = N("el-form-item");
|
|
1230
|
-
return u(!0), I(
|
|
1230
|
+
return u(!0), I(G, null, j(r(t.more), (D, Y) => m(x.$slots, `q-${Y}`, {
|
|
1231
1231
|
key: Y,
|
|
1232
1232
|
item: D,
|
|
1233
1233
|
model: i.value
|
|
@@ -1364,23 +1364,23 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1364
1364
|
};
|
|
1365
1365
|
t.value.queryItems = Ee(D, r == null ? void 0 : r.queryItems, t.value.queryItems);
|
|
1366
1366
|
const Y = (k, F) => {
|
|
1367
|
-
const
|
|
1367
|
+
const re = Object.keys(k.slots).filter((ae) => ae !== "default").reduce((ae, fe) => (ae[fe] = (pe) => k.slots[fe]({
|
|
1368
1368
|
model: t.value
|
|
1369
1369
|
// 传递当前模型数据
|
|
1370
|
-
}),
|
|
1370
|
+
}), ae), {});
|
|
1371
1371
|
return Ce(nt, {
|
|
1372
1372
|
modelValue: t.value,
|
|
1373
|
-
"onUpdate:modelValue": (
|
|
1373
|
+
"onUpdate:modelValue": (ae) => t.value = ae,
|
|
1374
1374
|
info: x.value,
|
|
1375
|
-
"onUpdate:info": (
|
|
1375
|
+
"onUpdate:info": (ae) => x.value = ae,
|
|
1376
1376
|
more: F
|
|
1377
|
-
},
|
|
1377
|
+
}, re);
|
|
1378
1378
|
}, O = dt(), h = () => {
|
|
1379
|
-
var
|
|
1379
|
+
var re, ae, fe, pe, se, ue, d, C, U;
|
|
1380
1380
|
const k = [
|
|
1381
1381
|
{
|
|
1382
1382
|
key: "query",
|
|
1383
|
-
hidden: (fe = (
|
|
1383
|
+
hidden: (fe = (ae = (re = t.value) == null ? void 0 : re.query) == null ? void 0 : ae.query) == null ? void 0 : fe.hidden,
|
|
1384
1384
|
component: $e,
|
|
1385
1385
|
props: {
|
|
1386
1386
|
...t.value.query.query,
|
|
@@ -1391,7 +1391,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1391
1391
|
},
|
|
1392
1392
|
{
|
|
1393
1393
|
key: "reset",
|
|
1394
|
-
hidden: (
|
|
1394
|
+
hidden: (ue = (se = (pe = t.value) == null ? void 0 : pe.query) == null ? void 0 : se.reset) == null ? void 0 : ue.hidden,
|
|
1395
1395
|
component: $e,
|
|
1396
1396
|
props: {
|
|
1397
1397
|
...t.value.query.reset,
|
|
@@ -1422,42 +1422,42 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1422
1422
|
}) : (v.props.slot = "query-" + v.key, v.label ? Ce(v.component, v.props, () => v.label) : Ce(v.component, v.props)));
|
|
1423
1423
|
};
|
|
1424
1424
|
return (k, F) => {
|
|
1425
|
-
var fe, pe, se,
|
|
1426
|
-
const
|
|
1425
|
+
var fe, pe, se, ue, d, C, U, v, H, A, z, be, M, $, b, c, s;
|
|
1426
|
+
const re = N("el-form-item"), ae = N("el-drawer");
|
|
1427
1427
|
return u(), I("div", {
|
|
1428
1428
|
class: "g-query-container",
|
|
1429
1429
|
style: Ve((pe = (fe = t.value.query) == null ? void 0 : fe.container) == null ? void 0 : pe.style)
|
|
1430
1430
|
}, [
|
|
1431
1431
|
Z(l(Ne), Ue(Xe(l(ke)(t.value.query, (E) => !["query", "more", "reset", "btns"].includes(E)))), {
|
|
1432
1432
|
default: g(() => {
|
|
1433
|
-
var E,
|
|
1433
|
+
var E, q;
|
|
1434
1434
|
return [
|
|
1435
1435
|
(u(), S(Te(Y({ slots: k.$slots }, void 0)))),
|
|
1436
|
-
((
|
|
1436
|
+
((q = (E = t.value.query) == null ? void 0 : E.container) == null ? void 0 : q.inline) === !0 ? (u(), S(re, { key: 0 }, {
|
|
1437
1437
|
default: g(() => {
|
|
1438
|
-
var P, J, le, n,
|
|
1438
|
+
var P, J, le, n, Q;
|
|
1439
1439
|
return [
|
|
1440
1440
|
K("div", {
|
|
1441
1441
|
style: Ve((J = (P = t.value.query) == null ? void 0 : P.btns) == null ? void 0 : J.style)
|
|
1442
1442
|
}, [
|
|
1443
1443
|
t.value.query.group ? (u(), S(l(Le), { key: 0 }, {
|
|
1444
1444
|
default: g(() => [
|
|
1445
|
-
(u(!0), I(
|
|
1446
|
-
(u(), S(Te(
|
|
1445
|
+
(u(!0), I(G, null, j(h(), (X) => m(k.$slots, X.props.slot, {}, () => [
|
|
1446
|
+
(u(), S(Te(X)))
|
|
1447
1447
|
], !0)), 256)),
|
|
1448
1448
|
m(k.$slots, "q-btns", {}, void 0, !0)
|
|
1449
1449
|
]),
|
|
1450
1450
|
_: 3
|
|
1451
|
-
})) : (u(), I(
|
|
1452
|
-
(
|
|
1451
|
+
})) : (u(), I(G, { key: 1 }, [
|
|
1452
|
+
(Q = (n = (le = t.value) == null ? void 0 : le.query) == null ? void 0 : n.btns) != null && Q.group ? (u(), S(l(Le), { key: 0 }, {
|
|
1453
1453
|
default: g(() => [
|
|
1454
|
-
(u(!0), I(
|
|
1455
|
-
(u(), S(Te(
|
|
1454
|
+
(u(!0), I(G, null, j(h(), (X) => m(k.$slots, X.props.slot, {}, () => [
|
|
1455
|
+
(u(), S(Te(X)))
|
|
1456
1456
|
], !0)), 256))
|
|
1457
1457
|
]),
|
|
1458
1458
|
_: 3
|
|
1459
|
-
})) : (u(!0), I(
|
|
1460
|
-
(u(), S(Te(
|
|
1459
|
+
})) : (u(!0), I(G, { key: 1 }, j(h(), (X) => m(k.$slots, X.props.slot, {}, () => [
|
|
1460
|
+
(u(), S(Te(X)))
|
|
1461
1461
|
], !0)), 256)),
|
|
1462
1462
|
m(k.$slots, "q-btns", {}, void 0, !0)
|
|
1463
1463
|
], 64))
|
|
@@ -1470,27 +1470,27 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1470
1470
|
}),
|
|
1471
1471
|
_: 3
|
|
1472
1472
|
}, 16),
|
|
1473
|
-
((d = (
|
|
1473
|
+
((d = (ue = (se = t.value) == null ? void 0 : se.query) == null ? void 0 : ue.container) == null ? void 0 : d.inline) === !1 ? (u(), I("div", {
|
|
1474
1474
|
key: 0,
|
|
1475
1475
|
style: Ve((U = (C = t.value.query) == null ? void 0 : C.btns) == null ? void 0 : U.style)
|
|
1476
1476
|
}, [
|
|
1477
1477
|
t.value.query.group ? (u(), S(l(Le), { key: 0 }, {
|
|
1478
1478
|
default: g(() => [
|
|
1479
|
-
(u(!0), I(
|
|
1479
|
+
(u(!0), I(G, null, j(h(), (E) => m(k.$slots, E.props.slot, {}, () => [
|
|
1480
1480
|
(u(), S(Te(E)))
|
|
1481
1481
|
], !0)), 256)),
|
|
1482
1482
|
m(k.$slots, "q-btns", {}, void 0, !0)
|
|
1483
1483
|
]),
|
|
1484
1484
|
_: 3
|
|
1485
|
-
})) : (u(), I(
|
|
1485
|
+
})) : (u(), I(G, { key: 1 }, [
|
|
1486
1486
|
(H = (v = t.value.query) == null ? void 0 : v.btns) != null && H.group ? (u(), S(l(Le), { key: 0 }, {
|
|
1487
1487
|
default: g(() => [
|
|
1488
|
-
(u(!0), I(
|
|
1488
|
+
(u(!0), I(G, null, j(h(), (E) => m(k.$slots, E.props.slot, {}, () => [
|
|
1489
1489
|
(u(), S(Te(E)))
|
|
1490
1490
|
], !0)), 256))
|
|
1491
1491
|
]),
|
|
1492
1492
|
_: 3
|
|
1493
|
-
})) : (u(!0), I(
|
|
1493
|
+
})) : (u(!0), I(G, { key: 1 }, j(h(), (E) => m(k.$slots, E.props.slot, {}, () => [
|
|
1494
1494
|
(u(), S(Te(E)))
|
|
1495
1495
|
], !0)), 256)),
|
|
1496
1496
|
m(k.$slots, "q-btns", {}, void 0, !0)
|
|
@@ -1501,9 +1501,9 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1501
1501
|
name: "nested"
|
|
1502
1502
|
}, {
|
|
1503
1503
|
default: g(() => {
|
|
1504
|
-
var E,
|
|
1504
|
+
var E, q, P;
|
|
1505
1505
|
return [
|
|
1506
|
-
y.value && !((P = (
|
|
1506
|
+
y.value && !((P = (q = (E = t.value) == null ? void 0 : E.query) == null ? void 0 : q.more) != null && P.hidden) && t.value.query.more.mode == 1 ? (u(), I("div", It, [
|
|
1507
1507
|
K("div", Ut, [
|
|
1508
1508
|
t.value.query.more.mode == 1 ? ct((u(), S(l(Ne), Ue(B({ key: 0 }, l(ke)(t.value.query, (J) => !["query", "more", "reset"].includes(J)))), {
|
|
1509
1509
|
default: g(() => [
|
|
@@ -1519,7 +1519,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1519
1519
|
}),
|
|
1520
1520
|
_: 1
|
|
1521
1521
|
}),
|
|
1522
|
-
y.value && !((be = (z = (A = t.value) == null ? void 0 : A.query) == null ? void 0 : z.more) != null && be.hidden) && t.value.query.more.mode == 2 ? (u(), S(
|
|
1522
|
+
y.value && !((be = (z = (A = t.value) == null ? void 0 : A.query) == null ? void 0 : z.more) != null && be.hidden) && t.value.query.more.mode == 2 ? (u(), S(ae, B({
|
|
1523
1523
|
key: 1,
|
|
1524
1524
|
modelValue: y.value,
|
|
1525
1525
|
"onUpdate:modelValue": F[4] || (F[4] = (E) => y.value = E),
|
|
@@ -1536,10 +1536,10 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1536
1536
|
"onUpdate:info": F[1] || (F[1] = (E) => x.value = E),
|
|
1537
1537
|
more: !0
|
|
1538
1538
|
}, ie({ _: 2 }, [
|
|
1539
|
-
j(k.$slots, (E,
|
|
1540
|
-
name:
|
|
1539
|
+
j(k.$slots, (E, q, P) => ({
|
|
1540
|
+
name: q,
|
|
1541
1541
|
fn: g((J) => [
|
|
1542
|
-
m(k.$slots,
|
|
1542
|
+
m(k.$slots, q, { model: t.value }, void 0, !0)
|
|
1543
1543
|
])
|
|
1544
1544
|
}))
|
|
1545
1545
|
]), 1032, ["modelValue", "info"])
|
|
@@ -1549,7 +1549,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1549
1549
|
]),
|
|
1550
1550
|
_: 2
|
|
1551
1551
|
}, [
|
|
1552
|
-
(s = (c = (b = ($ = (
|
|
1552
|
+
(s = (c = (b = ($ = (M = t.value) == null ? void 0 : M.query) == null ? void 0 : $.more) == null ? void 0 : b.dialog) == null ? void 0 : c.footer) != null && s.hidden ? void 0 : {
|
|
1553
1553
|
name: "footer",
|
|
1554
1554
|
fn: g(() => [
|
|
1555
1555
|
K("div", Ue(Xe(t.value.query.more.dialog.footer)), [
|
|
@@ -1645,7 +1645,7 @@ const Qe = /* @__PURE__ */ St(Ot), xt = {
|
|
|
1645
1645
|
}),
|
|
1646
1646
|
w[0] || (w[0] = K("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
1647
1647
|
K("div", Ht, [
|
|
1648
|
-
(u(!0), I(
|
|
1648
|
+
(u(!0), I(G, null, j(r.value, (k) => (u(), S(O, {
|
|
1649
1649
|
class: "check-box-hover",
|
|
1650
1650
|
style: { width: "120px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "3px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
1651
1651
|
"data-id": k.key,
|
|
@@ -1844,7 +1844,7 @@ const Kt = {
|
|
|
1844
1844
|
}),
|
|
1845
1845
|
K("div", null, [
|
|
1846
1846
|
K("div", el, [
|
|
1847
|
-
(u(!0), I(
|
|
1847
|
+
(u(!0), I(G, null, j(t.value, (k) => (u(), S(h, {
|
|
1848
1848
|
modelValue: k.showCol,
|
|
1849
1849
|
"onUpdate:modelValue": (F) => k.showCol = F,
|
|
1850
1850
|
"data-id": k.value,
|
|
@@ -1872,7 +1872,7 @@ const Kt = {
|
|
|
1872
1872
|
}, ol = /* @__PURE__ */ Oe(ll, [["__scopeId", "data-v-c423ede0"]]), rl = { class: "g-table-container" }, al = {
|
|
1873
1873
|
key: 0,
|
|
1874
1874
|
class: "table-query-container"
|
|
1875
|
-
}, ul = { class: "table-container" }, nl = ["
|
|
1875
|
+
}, ul = { class: "table-container" }, nl = ["src"], sl = ["innerHTML"], il = { key: 0 }, dl = { style: { display: "flex", "margin-top": "-2px" } }, cl = { style: { display: "flex", flex: "1" } }, fl = {
|
|
1876
1876
|
style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
|
|
1877
1877
|
id: "table-form"
|
|
1878
1878
|
}, ml = { key: 1 }, pl = { style: { display: "flex" } }, vl = { style: { display: "flex", flex: "1" } }, yl = /* @__PURE__ */ Object.assign({
|
|
@@ -1889,7 +1889,7 @@ const Kt = {
|
|
|
1889
1889
|
}),
|
|
1890
1890
|
emits: /* @__PURE__ */ Me(["load", "open", "delete", "submit", "reset", "download"], ["update:modelValue"]),
|
|
1891
1891
|
setup(f, { emit: i }) {
|
|
1892
|
-
var P, J, le, n,
|
|
1892
|
+
var P, J, le, n, Q, X, he;
|
|
1893
1893
|
const t = i, e = qe(f, "modelValue"), r = et("options"), y = ye({}), _ = ye(!1), x = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], V = ye([]), w = f, D = {
|
|
1894
1894
|
data: [],
|
|
1895
1895
|
border: !0,
|
|
@@ -1920,7 +1920,7 @@ const Kt = {
|
|
|
1920
1920
|
Ie((R = e.value.table) == null ? void 0 : R.user, w.name, p.property, { width: o });
|
|
1921
1921
|
},
|
|
1922
1922
|
onRowDblclick: (o, a, p) => {
|
|
1923
|
-
e.value.table.dblclickType == "edit" ?
|
|
1923
|
+
e.value.table.dblclickType == "edit" ? ue(o, a, p, e) : e.value.table.dblclickType == "view" && C(o, a, p, e);
|
|
1924
1924
|
},
|
|
1925
1925
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
1926
1926
|
page: {
|
|
@@ -2023,7 +2023,7 @@ const Kt = {
|
|
|
2023
2023
|
e.value.form = Ee(
|
|
2024
2024
|
h,
|
|
2025
2025
|
r == null ? void 0 : r.form,
|
|
2026
|
-
(
|
|
2026
|
+
(Q = e.value) == null ? void 0 : Q.form
|
|
2027
2027
|
);
|
|
2028
2028
|
const k = {
|
|
2029
2029
|
type: "hidden",
|
|
@@ -2035,7 +2035,7 @@ const Kt = {
|
|
|
2035
2035
|
e.value.formItems = Ee(
|
|
2036
2036
|
k,
|
|
2037
2037
|
r == null ? void 0 : r.formItems,
|
|
2038
|
-
(
|
|
2038
|
+
(X = e == null ? void 0 : e.value) == null ? void 0 : X.formItems
|
|
2039
2039
|
);
|
|
2040
2040
|
const F = {
|
|
2041
2041
|
title: "编辑",
|
|
@@ -2050,7 +2050,7 @@ const Kt = {
|
|
|
2050
2050
|
r == null ? void 0 : r.dialog,
|
|
2051
2051
|
(he = e.value) == null ? void 0 : he.dialog
|
|
2052
2052
|
);
|
|
2053
|
-
const
|
|
2053
|
+
const re = Object.fromEntries(Object.entries(ke(e.value, (o, a) => a.type != "control" && a.editor !== !1 && a.type != "hidden")).map(([o, a]) => [o, a.value])), ae = (o, a) => {
|
|
2054
2054
|
let p = a;
|
|
2055
2055
|
if (o.decimals && !isNaN(a) && (typeof o.decimals == "number" ? p = parseFloat(p).toFixed(o.decimals) : typeof o.decimals == "object" && o.decimals.num && (o.decimals.pad ? p = parseFloat(p).toFixed(o.decimals.num) : p = parseFloat(parseFloat(p).toFixed(o.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(o.type) && Qe(a).isValid()) {
|
|
2056
2056
|
const ee = {
|
|
@@ -2067,10 +2067,10 @@ const Kt = {
|
|
|
2067
2067
|
console.log(o), y.value = o, e.value.table.load();
|
|
2068
2068
|
}, se = (o) => {
|
|
2069
2069
|
var a;
|
|
2070
|
-
e.value.form.modalState = "add", (a = e.value.control.add) != null && a.click ? e.value.control.add.click(o) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(
|
|
2071
|
-
e.value[p] && (e.value[p].value =
|
|
2070
|
+
e.value.form.modalState = "add", (a = e.value.control.add) != null && a.click ? e.value.control.add.click(o) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(re).forEach((p) => {
|
|
2071
|
+
e.value[p] && (e.value[p].value = re[p]);
|
|
2072
2072
|
}), _.value = !0, t("open", o, "add"));
|
|
2073
|
-
},
|
|
2073
|
+
}, ue = (o, a, p, R) => {
|
|
2074
2074
|
var ee;
|
|
2075
2075
|
e.value.form.modalState = "edit", (ee = e.value.control.edit) != null && ee.click ? e.value.control.edit.click(o, a, p, R) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(o).forEach((te) => {
|
|
2076
2076
|
e.value[te] && (e.value[te].value = o[te]);
|
|
@@ -2137,9 +2137,9 @@ const Kt = {
|
|
|
2137
2137
|
{ type: "download", func: H },
|
|
2138
2138
|
{ type: "setting", func: A },
|
|
2139
2139
|
{ type: "view", func: C },
|
|
2140
|
-
{ type: "edit", func:
|
|
2140
|
+
{ type: "edit", func: ue },
|
|
2141
2141
|
{ type: "delete", func: d }
|
|
2142
|
-
],
|
|
2142
|
+
], M = (o) => be.filter((a) => o.includes(a.type)).map(({ type: a, func: p }) => {
|
|
2143
2143
|
var R, ee, te;
|
|
2144
2144
|
return {
|
|
2145
2145
|
name: `control-${a}`,
|
|
@@ -2149,7 +2149,7 @@ const Kt = {
|
|
|
2149
2149
|
sort: ((ee = z == null ? void 0 : z[a]) == null ? void 0 : ee.sort) || 0,
|
|
2150
2150
|
groupName: ((te = z == null ? void 0 : z[a]) == null ? void 0 : te.groupName) || "default"
|
|
2151
2151
|
};
|
|
2152
|
-
}).sort((a, p) => a.sort - p.sort), $ = (o) =>
|
|
2152
|
+
}).sort((a, p) => a.sort - p.sort), $ = (o) => M(o).reduce((a, p) => {
|
|
2153
2153
|
const R = p.groupName || "default";
|
|
2154
2154
|
return a[R] || (a[R] = []), a[R].push(p), a;
|
|
2155
2155
|
}, {}), b = Se(() => Object.fromEntries(
|
|
@@ -2192,7 +2192,7 @@ const Kt = {
|
|
|
2192
2192
|
}), Promise.all(o).catch((a) => {
|
|
2193
2193
|
console.error("字典加载过程中发生错误:", a);
|
|
2194
2194
|
});
|
|
2195
|
-
},
|
|
2195
|
+
}, q = (o, a, p, R) => {
|
|
2196
2196
|
var ee, te;
|
|
2197
2197
|
return o.table ? (ee = o.table(a, p, R)) != null && ee.auth ? (te = o.table(a, p, R)) == null ? void 0 : te.auth(a, p, R) : !0 : !1;
|
|
2198
2198
|
};
|
|
@@ -2231,7 +2231,7 @@ const Kt = {
|
|
|
2231
2231
|
}), (o, a) => {
|
|
2232
2232
|
var tt, lt, ot, rt, at;
|
|
2233
2233
|
const p = N("el-button-group"), R = N("el-table-column"), ee = N("el-table"), te = N("el-pagination"), we = N("el-icon"), Fe = N("el-dialog"), Re = N("el-drawer");
|
|
2234
|
-
return u(), I(
|
|
2234
|
+
return u(), I(G, null, [
|
|
2235
2235
|
K("div", rl, [
|
|
2236
2236
|
((lt = (tt = e.value) == null ? void 0 : tt.query) == null ? void 0 : lt.hidden) != !0 ? (u(), I("div", al, [
|
|
2237
2237
|
m(o.$slots, "query", {}, () => [
|
|
@@ -2243,51 +2243,51 @@ const Kt = {
|
|
|
2243
2243
|
}, ie({
|
|
2244
2244
|
"q-btns": g(() => [
|
|
2245
2245
|
m(o.$slots, "q-btns", {}, () => [
|
|
2246
|
-
(u(!0), I(
|
|
2247
|
-
ne == "default" ? (u(!0), I(
|
|
2248
|
-
m(o.$slots,
|
|
2249
|
-
|
|
2250
|
-
|
|
2246
|
+
(u(!0), I(G, null, j($(["add", "download", "setting"]), (L, ne) => (u(), I(G, null, [
|
|
2247
|
+
ne == "default" ? (u(!0), I(G, { key: 0 }, j(L, (T) => (u(), I(G, null, [
|
|
2248
|
+
m(o.$slots, T.name + "-left", {}, void 0, !0),
|
|
2249
|
+
T.attr.auth() ? m(o.$slots, T.name, { key: 0 }, () => [
|
|
2250
|
+
T.label ? (u(), S(l($e), B({
|
|
2251
2251
|
key: 0,
|
|
2252
2252
|
ref_for: !0
|
|
2253
|
-
},
|
|
2254
|
-
onClick: (
|
|
2253
|
+
}, T.attr, {
|
|
2254
|
+
onClick: (W) => T.func(e.value, V.value)
|
|
2255
2255
|
}), {
|
|
2256
2256
|
default: g(() => [
|
|
2257
|
-
ge(me(
|
|
2257
|
+
ge(me(T.label), 1)
|
|
2258
2258
|
]),
|
|
2259
2259
|
_: 2
|
|
2260
2260
|
}, 1040, ["onClick"])) : (u(), S(l($e), B({
|
|
2261
2261
|
key: 1,
|
|
2262
2262
|
ref_for: !0
|
|
2263
|
-
},
|
|
2264
|
-
onClick: (
|
|
2263
|
+
}, T.attr, {
|
|
2264
|
+
onClick: (W) => T.func(e.value, V.value)
|
|
2265
2265
|
}), null, 16, ["onClick"]))
|
|
2266
2266
|
], !0) : ve("", !0),
|
|
2267
|
-
m(o.$slots,
|
|
2267
|
+
m(o.$slots, T.name + "-right", {}, void 0, !0)
|
|
2268
2268
|
], 64))), 256)) : (u(), S(p, { key: 1 }, {
|
|
2269
2269
|
default: g(() => [
|
|
2270
|
-
(u(!0), I(
|
|
2271
|
-
m(o.$slots,
|
|
2272
|
-
|
|
2273
|
-
|
|
2270
|
+
(u(!0), I(G, null, j(L, (T) => (u(), I(G, null, [
|
|
2271
|
+
m(o.$slots, T.name + "-left", {}, void 0, !0),
|
|
2272
|
+
T.attr.auth() ? m(o.$slots, T.name, { key: 0 }, () => [
|
|
2273
|
+
T.label ? (u(), S(l($e), B({
|
|
2274
2274
|
key: 0,
|
|
2275
2275
|
ref_for: !0
|
|
2276
|
-
},
|
|
2277
|
-
onClick: (
|
|
2276
|
+
}, T.attr, {
|
|
2277
|
+
onClick: (W) => T.func(e.value, V.value)
|
|
2278
2278
|
}), {
|
|
2279
2279
|
default: g(() => [
|
|
2280
|
-
ge(me(
|
|
2280
|
+
ge(me(T.label), 1)
|
|
2281
2281
|
]),
|
|
2282
2282
|
_: 2
|
|
2283
2283
|
}, 1040, ["onClick"])) : (u(), S(l($e), B({
|
|
2284
2284
|
key: 1,
|
|
2285
2285
|
ref_for: !0
|
|
2286
|
-
},
|
|
2287
|
-
onClick: (
|
|
2286
|
+
}, T.attr, {
|
|
2287
|
+
onClick: (W) => T.func(e.value, V.value)
|
|
2288
2288
|
}), null, 16, ["onClick"]))
|
|
2289
2289
|
], !0) : ve("", !0),
|
|
2290
|
-
m(o.$slots,
|
|
2290
|
+
m(o.$slots, T.name + "-right", {}, void 0, !0)
|
|
2291
2291
|
], 64))), 256))
|
|
2292
2292
|
]),
|
|
2293
2293
|
_: 2
|
|
@@ -2297,9 +2297,9 @@ const Kt = {
|
|
|
2297
2297
|
]),
|
|
2298
2298
|
_: 2
|
|
2299
2299
|
}, [
|
|
2300
|
-
j(o.$slots, (L, ne,
|
|
2300
|
+
j(o.$slots, (L, ne, T) => ({
|
|
2301
2301
|
name: ne,
|
|
2302
|
-
fn: g((
|
|
2302
|
+
fn: g((W) => [
|
|
2303
2303
|
m(o.$slots, ne, { model: e.value }, void 0, !0)
|
|
2304
2304
|
])
|
|
2305
2305
|
}))
|
|
@@ -2316,89 +2316,51 @@ const Kt = {
|
|
|
2316
2316
|
]),
|
|
2317
2317
|
default: g(() => [
|
|
2318
2318
|
m(o.$slots, "default", {}, () => [
|
|
2319
|
-
(u(!0), I(
|
|
2319
|
+
(u(!0), I(G, null, j(b.value, (L, ne) => (u(), S(R, B({
|
|
2320
2320
|
prop: ne,
|
|
2321
2321
|
key: ne,
|
|
2322
2322
|
ref_for: !0
|
|
2323
|
-
}, { ...e.value.tableColumns, ...l(ke)(L, (
|
|
2324
|
-
header: g(({ column:
|
|
2323
|
+
}, { ...e.value.tableColumns, ...l(ke)(L, (T) => x.includes(T)) }, { "header-align": "center" }), ie({
|
|
2324
|
+
header: g(({ column: T, $index: W }) => [
|
|
2325
2325
|
m(o.$slots, `${ne}-header`, {
|
|
2326
|
-
column:
|
|
2327
|
-
$index:
|
|
2326
|
+
column: T,
|
|
2327
|
+
$index: W
|
|
2328
2328
|
}, void 0, !0)
|
|
2329
2329
|
]),
|
|
2330
|
-
"filter-icon": g((
|
|
2331
|
-
m(o.$slots, `${ne}-filter-icon`, { data:
|
|
2330
|
+
"filter-icon": g((T) => [
|
|
2331
|
+
m(o.$slots, `${ne}-filter-icon`, { data: T }, void 0, !0)
|
|
2332
2332
|
]),
|
|
2333
2333
|
_: 2
|
|
2334
2334
|
}, [
|
|
2335
|
-
L.type != "selection" && L.type != "index" && L.type != "expand" ? {
|
|
2336
|
-
name: "default",
|
|
2337
|
-
fn: g(({ row: q, column: X, $index: ue }) => [
|
|
2338
|
-
M(L, q, X, ue) ? m(o.$slots, `${ne}`, {
|
|
2339
|
-
key: 0,
|
|
2340
|
-
row: q,
|
|
2341
|
-
column: X,
|
|
2342
|
-
$index: ue
|
|
2343
|
-
}, () => {
|
|
2344
|
-
var xe;
|
|
2345
|
-
return [
|
|
2346
|
-
Z(Ye, {
|
|
2347
|
-
modelValue: q[ne],
|
|
2348
|
-
"onUpdate:modelValue": (Ae) => q[ne] = Ae,
|
|
2349
|
-
item: L == null ? void 0 : L.table(q, X, ue),
|
|
2350
|
-
ctrlKey: ne,
|
|
2351
|
-
ctrlType: (xe = L.table(q, X, ue)) != null && xe.type ? L.table(q, X, ue).type : L.type,
|
|
2352
|
-
model: e.value,
|
|
2353
|
-
class: "g-ctrl-container",
|
|
2354
|
-
t: "t",
|
|
2355
|
-
formInfo: e.value.table.data
|
|
2356
|
-
}, ie({ _: 2 }, [
|
|
2357
|
-
j(o.$slots, (Ae, Be) => ({
|
|
2358
|
-
name: Be,
|
|
2359
|
-
fn: g((ze) => [
|
|
2360
|
-
m(o.$slots, Be, {
|
|
2361
|
-
data: ze,
|
|
2362
|
-
item: L,
|
|
2363
|
-
model: e.value
|
|
2364
|
-
}, void 0, !0)
|
|
2365
|
-
])
|
|
2366
|
-
}))
|
|
2367
|
-
]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"])
|
|
2368
|
-
];
|
|
2369
|
-
}, !0) : m(o.$slots, `${ne}`, {
|
|
2370
|
-
key: 1,
|
|
2371
|
-
row: q,
|
|
2372
|
-
column: X,
|
|
2373
|
-
$index: ue
|
|
2374
|
-
}, () => [
|
|
2375
|
-
K("div", {
|
|
2376
|
-
innerHTML: re(L, X.formatter(q, X, q[ne], ue))
|
|
2377
|
-
}, null, 8, nl)
|
|
2378
|
-
], !0)
|
|
2379
|
-
]),
|
|
2380
|
-
key: "0"
|
|
2381
|
-
} : void 0,
|
|
2382
2335
|
L.type === "image" ? {
|
|
2383
2336
|
name: "default",
|
|
2384
|
-
fn: g(({ row:
|
|
2337
|
+
fn: g(({ row: T, column: W, $index: oe }) => [
|
|
2385
2338
|
m(o.$slots, `${ne}`, {
|
|
2386
|
-
row:
|
|
2387
|
-
column:
|
|
2388
|
-
$index:
|
|
2339
|
+
row: T,
|
|
2340
|
+
column: W,
|
|
2341
|
+
$index: oe
|
|
2389
2342
|
}, () => [
|
|
2390
2343
|
K("img", B({
|
|
2391
2344
|
style: { width: "80px", height: "80px", "object-fit": "cover", "border-radius": "3px" },
|
|
2392
2345
|
src: L.value,
|
|
2393
2346
|
ref_for: !0
|
|
2394
|
-
}, L), null, 16,
|
|
2347
|
+
}, L), null, 16, nl)
|
|
2395
2348
|
], !0)
|
|
2396
2349
|
]),
|
|
2350
|
+
key: "0"
|
|
2351
|
+
} : L.type === "expand" ? {
|
|
2352
|
+
name: "default",
|
|
2353
|
+
fn: g(({ row: T, column: W, $index: oe }) => [
|
|
2354
|
+
m(o.$slots, `${ne}`, {
|
|
2355
|
+
row: T,
|
|
2356
|
+
column: W,
|
|
2357
|
+
$index: oe
|
|
2358
|
+
}, void 0, !0)
|
|
2359
|
+
]),
|
|
2397
2360
|
key: "1"
|
|
2398
|
-
} :
|
|
2399
|
-
L.type == "control" ? {
|
|
2361
|
+
} : L.type == "control" ? {
|
|
2400
2362
|
name: "default",
|
|
2401
|
-
fn: g(({ row:
|
|
2363
|
+
fn: g(({ row: T, column: W, $index: oe }) => {
|
|
2402
2364
|
var xe, Ae;
|
|
2403
2365
|
return [
|
|
2404
2366
|
K("div", {
|
|
@@ -2407,28 +2369,28 @@ const Kt = {
|
|
|
2407
2369
|
}, [
|
|
2408
2370
|
m(o.$slots, "control", {}, () => [
|
|
2409
2371
|
m(o.$slots, "control-left", {
|
|
2410
|
-
row:
|
|
2411
|
-
column:
|
|
2412
|
-
$index:
|
|
2372
|
+
row: T,
|
|
2373
|
+
column: W,
|
|
2374
|
+
$index: oe
|
|
2413
2375
|
}, void 0, !0),
|
|
2414
|
-
(u(!0), I(
|
|
2415
|
-
ze == "default" ? (u(!0), I(
|
|
2376
|
+
(u(!0), I(G, null, j($(["view", "edit", "delete"]), (Be, ze) => (u(), I(G, null, [
|
|
2377
|
+
ze == "default" ? (u(!0), I(G, { key: 0 }, j(Be, (ce) => (u(), I(G, null, [
|
|
2416
2378
|
m(o.$slots, ce.name + "-left", {
|
|
2417
|
-
row:
|
|
2418
|
-
column:
|
|
2419
|
-
$index:
|
|
2379
|
+
row: T,
|
|
2380
|
+
column: W,
|
|
2381
|
+
$index: oe
|
|
2420
2382
|
}, void 0, !0),
|
|
2421
|
-
ce.attr.auth(
|
|
2383
|
+
ce.attr.auth(T, W, oe) ? m(o.$slots, ce.name, {
|
|
2422
2384
|
key: 0,
|
|
2423
|
-
row:
|
|
2424
|
-
column:
|
|
2425
|
-
$index:
|
|
2385
|
+
row: T,
|
|
2386
|
+
column: W,
|
|
2387
|
+
$index: oe
|
|
2426
2388
|
}, () => [
|
|
2427
2389
|
ce.label ? (u(), S(l($e), B({
|
|
2428
2390
|
key: 0,
|
|
2429
2391
|
ref_for: !0
|
|
2430
2392
|
}, ce.attr, {
|
|
2431
|
-
onClick: (We) => ce.func(
|
|
2393
|
+
onClick: (We) => ce.func(T, W, oe, e.value)
|
|
2432
2394
|
}), {
|
|
2433
2395
|
default: g(() => [
|
|
2434
2396
|
ge(me(ce.label), 1)
|
|
@@ -2438,33 +2400,33 @@ const Kt = {
|
|
|
2438
2400
|
key: 1,
|
|
2439
2401
|
ref_for: !0
|
|
2440
2402
|
}, ce.attr, {
|
|
2441
|
-
onClick: (We) => ce.func(
|
|
2403
|
+
onClick: (We) => ce.func(T, W, oe, e.value)
|
|
2442
2404
|
}), null, 16, ["onClick"]))
|
|
2443
2405
|
], !0) : ve("", !0),
|
|
2444
2406
|
m(o.$slots, ce.name + "-right", {
|
|
2445
|
-
row:
|
|
2446
|
-
column:
|
|
2447
|
-
$index:
|
|
2407
|
+
row: T,
|
|
2408
|
+
column: W,
|
|
2409
|
+
$index: oe
|
|
2448
2410
|
}, void 0, !0)
|
|
2449
2411
|
], 64))), 256)) : (u(), S(p, { key: 1 }, {
|
|
2450
2412
|
default: g(() => [
|
|
2451
|
-
(u(!0), I(
|
|
2413
|
+
(u(!0), I(G, null, j(Be, (ce) => (u(), I(G, null, [
|
|
2452
2414
|
m(o.$slots, ce.name + "-left", {
|
|
2453
|
-
row:
|
|
2454
|
-
column:
|
|
2455
|
-
$index:
|
|
2415
|
+
row: T,
|
|
2416
|
+
column: W,
|
|
2417
|
+
$index: oe
|
|
2456
2418
|
}, void 0, !0),
|
|
2457
|
-
ce.attr.auth(
|
|
2419
|
+
ce.attr.auth(T, W, oe) ? m(o.$slots, ce.name, {
|
|
2458
2420
|
key: 0,
|
|
2459
|
-
row:
|
|
2460
|
-
column:
|
|
2461
|
-
$index:
|
|
2421
|
+
row: T,
|
|
2422
|
+
column: W,
|
|
2423
|
+
$index: oe
|
|
2462
2424
|
}, () => [
|
|
2463
2425
|
ce.label ? (u(), S(l($e), B({
|
|
2464
2426
|
key: 0,
|
|
2465
2427
|
ref_for: !0
|
|
2466
2428
|
}, ce.attr, {
|
|
2467
|
-
onClick: (We) => ce.func(
|
|
2429
|
+
onClick: (We) => ce.func(T, W, oe, e.value)
|
|
2468
2430
|
}), {
|
|
2469
2431
|
default: g(() => [
|
|
2470
2432
|
ge(me(ce.label), 1)
|
|
@@ -2474,13 +2436,13 @@ const Kt = {
|
|
|
2474
2436
|
key: 1,
|
|
2475
2437
|
ref_for: !0
|
|
2476
2438
|
}, ce.attr, {
|
|
2477
|
-
onClick: (We) => ce.func(
|
|
2439
|
+
onClick: (We) => ce.func(T, W, oe, e.value)
|
|
2478
2440
|
}), null, 16, ["onClick"]))
|
|
2479
2441
|
], !0) : ve("", !0),
|
|
2480
2442
|
m(o.$slots, ce.name + "-right", {
|
|
2481
|
-
row:
|
|
2482
|
-
column:
|
|
2483
|
-
$index:
|
|
2443
|
+
row: T,
|
|
2444
|
+
column: W,
|
|
2445
|
+
$index: oe
|
|
2484
2446
|
}, void 0, !0)
|
|
2485
2447
|
], 64))), 256))
|
|
2486
2448
|
]),
|
|
@@ -2488,15 +2450,61 @@ const Kt = {
|
|
|
2488
2450
|
}, 1024))
|
|
2489
2451
|
], 64))), 256)),
|
|
2490
2452
|
m(o.$slots, "control-right", {
|
|
2491
|
-
row:
|
|
2492
|
-
column:
|
|
2493
|
-
$index:
|
|
2453
|
+
row: T,
|
|
2454
|
+
column: W,
|
|
2455
|
+
$index: oe
|
|
2494
2456
|
}, void 0, !0)
|
|
2495
2457
|
], !0)
|
|
2496
2458
|
], 6)
|
|
2497
2459
|
];
|
|
2498
2460
|
}),
|
|
2499
2461
|
key: "2"
|
|
2462
|
+
} : L.type != "selection" && L.type != "index" ? {
|
|
2463
|
+
name: "default",
|
|
2464
|
+
fn: g(({ row: T, column: W, $index: oe }) => [
|
|
2465
|
+
q(L, T, W, oe) ? m(o.$slots, `${ne}`, {
|
|
2466
|
+
key: 0,
|
|
2467
|
+
row: T,
|
|
2468
|
+
column: W,
|
|
2469
|
+
$index: oe
|
|
2470
|
+
}, () => {
|
|
2471
|
+
var xe;
|
|
2472
|
+
return [
|
|
2473
|
+
Z(Ye, {
|
|
2474
|
+
modelValue: T[ne],
|
|
2475
|
+
"onUpdate:modelValue": (Ae) => T[ne] = Ae,
|
|
2476
|
+
item: L == null ? void 0 : L.table(T, W, oe),
|
|
2477
|
+
ctrlKey: ne,
|
|
2478
|
+
ctrlType: (xe = L.table(T, W, oe)) != null && xe.type ? L.table(T, W, oe).type : L.type,
|
|
2479
|
+
model: e.value,
|
|
2480
|
+
class: "g-ctrl-container",
|
|
2481
|
+
t: "t",
|
|
2482
|
+
formInfo: e.value.table.data
|
|
2483
|
+
}, ie({ _: 2 }, [
|
|
2484
|
+
j(o.$slots, (Ae, Be) => ({
|
|
2485
|
+
name: Be,
|
|
2486
|
+
fn: g((ze) => [
|
|
2487
|
+
m(o.$slots, Be, {
|
|
2488
|
+
data: ze,
|
|
2489
|
+
item: L,
|
|
2490
|
+
model: e.value
|
|
2491
|
+
}, void 0, !0)
|
|
2492
|
+
])
|
|
2493
|
+
}))
|
|
2494
|
+
]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"])
|
|
2495
|
+
];
|
|
2496
|
+
}, !0) : m(o.$slots, `${ne}`, {
|
|
2497
|
+
key: 1,
|
|
2498
|
+
row: T,
|
|
2499
|
+
column: W,
|
|
2500
|
+
$index: oe
|
|
2501
|
+
}, () => [
|
|
2502
|
+
K("div", {
|
|
2503
|
+
innerHTML: ae(L, W.formatter(T, W, T[ne], oe))
|
|
2504
|
+
}, null, 8, sl)
|
|
2505
|
+
], !0)
|
|
2506
|
+
]),
|
|
2507
|
+
key: "3"
|
|
2500
2508
|
} : void 0
|
|
2501
2509
|
]), 1040, ["prop"]))), 128))
|
|
2502
2510
|
], !0)
|
|
@@ -2527,7 +2535,7 @@ const Kt = {
|
|
|
2527
2535
|
width: l(ht)(e.value.dialog.width) + 35
|
|
2528
2536
|
}), {
|
|
2529
2537
|
header: g(() => {
|
|
2530
|
-
var L, ne,
|
|
2538
|
+
var L, ne, T, W;
|
|
2531
2539
|
return [
|
|
2532
2540
|
K("div", dl, [
|
|
2533
2541
|
K("div", cl, [
|
|
@@ -2537,7 +2545,7 @@ const Kt = {
|
|
|
2537
2545
|
]),
|
|
2538
2546
|
((ne = (L = e.value) == null ? void 0 : L.dialog) == null ? void 0 : ne.fullScreen) === !1 ? (u(), I("div", {
|
|
2539
2547
|
key: 0,
|
|
2540
|
-
onClick: a[3] || (a[3] = (
|
|
2548
|
+
onClick: a[3] || (a[3] = (oe) => {
|
|
2541
2549
|
e.value.dialog.fullScreen = !0;
|
|
2542
2550
|
}),
|
|
2543
2551
|
class: "max"
|
|
@@ -2549,9 +2557,9 @@ const Kt = {
|
|
|
2549
2557
|
_: 1
|
|
2550
2558
|
})
|
|
2551
2559
|
])) : ve("", !0),
|
|
2552
|
-
((
|
|
2560
|
+
((W = (T = e.value) == null ? void 0 : T.dialog) == null ? void 0 : W.fullScreen) === !0 ? (u(), I("div", {
|
|
2553
2561
|
key: 1,
|
|
2554
|
-
onClick: a[4] || (a[4] = (
|
|
2562
|
+
onClick: a[4] || (a[4] = (oe) => {
|
|
2555
2563
|
e.value.dialog.fullScreen = !1;
|
|
2556
2564
|
}),
|
|
2557
2565
|
class: "max"
|
|
@@ -2575,10 +2583,10 @@ const Kt = {
|
|
|
2575
2583
|
onSubmit: U,
|
|
2576
2584
|
onReset: v
|
|
2577
2585
|
}, ie({ _: 2 }, [
|
|
2578
|
-
j(o.$slots, (L, ne,
|
|
2586
|
+
j(o.$slots, (L, ne, T) => ({
|
|
2579
2587
|
name: ne,
|
|
2580
|
-
fn: g((
|
|
2581
|
-
m(o.$slots, ne, { model:
|
|
2588
|
+
fn: g((W) => [
|
|
2589
|
+
m(o.$slots, ne, { model: W }, void 0, !0)
|
|
2582
2590
|
])
|
|
2583
2591
|
}))
|
|
2584
2592
|
]), 1032, ["modelValue"])
|
|
@@ -2610,10 +2618,10 @@ const Kt = {
|
|
|
2610
2618
|
onSubmit: U,
|
|
2611
2619
|
onReset: v
|
|
2612
2620
|
}, ie({ _: 2 }, [
|
|
2613
|
-
j(o.$slots, (L, ne,
|
|
2621
|
+
j(o.$slots, (L, ne, T) => ({
|
|
2614
2622
|
name: ne,
|
|
2615
|
-
fn: g((
|
|
2616
|
-
m(o.$slots, ne, { model:
|
|
2623
|
+
fn: g((W) => [
|
|
2624
|
+
m(o.$slots, ne, { model: W }, void 0, !0)
|
|
2617
2625
|
])
|
|
2618
2626
|
}))
|
|
2619
2627
|
]), 1032, ["modelValue"])
|
|
@@ -2633,7 +2641,7 @@ const Kt = {
|
|
|
2633
2641
|
], 64);
|
|
2634
2642
|
};
|
|
2635
2643
|
}
|
|
2636
|
-
}), hl = /* @__PURE__ */ Oe(yl, [["__scopeId", "data-v-
|
|
2644
|
+
}), hl = /* @__PURE__ */ Oe(yl, [["__scopeId", "data-v-953733dc"]]), gl = { class: "g-tree-table" }, bl = { class: "g-tree-container" }, $l = { class: "g-tree-table-container" }, El = /* @__PURE__ */ Object.assign({
|
|
2637
2645
|
name: "g-tree-table",
|
|
2638
2646
|
inheritAttrs: !1
|
|
2639
2647
|
}, {
|
|
@@ -2645,24 +2653,24 @@ const Kt = {
|
|
|
2645
2653
|
emits: /* @__PURE__ */ Me(["load"], ["update:modelValue"]),
|
|
2646
2654
|
setup(f, { emit: i }) {
|
|
2647
2655
|
var O, h, k;
|
|
2648
|
-
const t = i, e = qe(f, "modelValue"), r = ye(((O = Pe()) == null ? void 0 : O.width) || "180px"), y = ye(((h = Pe()) == null ? void 0 : h.search) === void 0 ? !0 : (k = Pe()) == null ? void 0 : k.search), _ = ye({}), x = ye(""), V = ye(null), w = (F,
|
|
2649
|
-
t("load", _.value, F,
|
|
2656
|
+
const t = i, e = qe(f, "modelValue"), r = ye(((O = Pe()) == null ? void 0 : O.width) || "180px"), y = ye(((h = Pe()) == null ? void 0 : h.search) === void 0 ? !0 : (k = Pe()) == null ? void 0 : k.search), _ = ye({}), x = ye(""), V = ye(null), w = (F, re) => F ? re.label.includes(F) : !0, D = (F, re) => {
|
|
2657
|
+
t("load", _.value, F, re);
|
|
2650
2658
|
}, Y = (F) => {
|
|
2651
2659
|
_.value = F, e.value.table.load();
|
|
2652
2660
|
};
|
|
2653
2661
|
return Ct(x, (F) => {
|
|
2654
2662
|
V.value.filter(F);
|
|
2655
|
-
}), (F,
|
|
2656
|
-
const
|
|
2663
|
+
}), (F, re) => {
|
|
2664
|
+
const ae = N("el-input"), fe = N("el-tree"), pe = N("g-table");
|
|
2657
2665
|
return u(), I("div", gl, [
|
|
2658
2666
|
K("div", {
|
|
2659
2667
|
class: "g-tree-left",
|
|
2660
2668
|
style: Ve({ width: r.value })
|
|
2661
2669
|
}, [
|
|
2662
|
-
y.value ? (u(), S(
|
|
2670
|
+
y.value ? (u(), S(ae, {
|
|
2663
2671
|
key: 0,
|
|
2664
2672
|
modelValue: x.value,
|
|
2665
|
-
"onUpdate:modelValue":
|
|
2673
|
+
"onUpdate:modelValue": re[0] || (re[0] = (se) => x.value = se),
|
|
2666
2674
|
style: { width: "100%" },
|
|
2667
2675
|
placeholder: "输入节点查询",
|
|
2668
2676
|
clearable: ""
|
|
@@ -2676,20 +2684,20 @@ const Kt = {
|
|
|
2676
2684
|
ref: V,
|
|
2677
2685
|
onNodeClick: Y
|
|
2678
2686
|
}, F.$attrs), ie({
|
|
2679
|
-
default: g(({ node: se, data:
|
|
2687
|
+
default: g(({ node: se, data: ue }) => [
|
|
2680
2688
|
m(F.$slots, "tree", {
|
|
2681
2689
|
node: se,
|
|
2682
|
-
data:
|
|
2690
|
+
data: ue
|
|
2683
2691
|
}, () => [
|
|
2684
2692
|
K("span", null, me(se.label), 1)
|
|
2685
2693
|
], !0)
|
|
2686
2694
|
]),
|
|
2687
2695
|
_: 2
|
|
2688
2696
|
}, [
|
|
2689
|
-
j(F.$slots, (se,
|
|
2690
|
-
name:
|
|
2697
|
+
j(F.$slots, (se, ue, d) => ({
|
|
2698
|
+
name: ue,
|
|
2691
2699
|
fn: g((C) => [
|
|
2692
|
-
m(F.$slots,
|
|
2700
|
+
m(F.$slots, ue, { data: C }, void 0, !0)
|
|
2693
2701
|
])
|
|
2694
2702
|
}))
|
|
2695
2703
|
]), 1040, ["style"])
|
|
@@ -2698,12 +2706,12 @@ const Kt = {
|
|
|
2698
2706
|
K("div", $l, [
|
|
2699
2707
|
Z(pe, B({
|
|
2700
2708
|
modelValue: e.value,
|
|
2701
|
-
"onUpdate:modelValue":
|
|
2709
|
+
"onUpdate:modelValue": re[1] || (re[1] = (se) => e.value = se)
|
|
2702
2710
|
}, F.$attrs, { onLoad: D }), ie({ _: 2 }, [
|
|
2703
|
-
j(F.$slots, (se,
|
|
2704
|
-
name:
|
|
2711
|
+
j(F.$slots, (se, ue, d) => ({
|
|
2712
|
+
name: ue,
|
|
2705
2713
|
fn: g((C) => [
|
|
2706
|
-
m(F.$slots,
|
|
2714
|
+
m(F.$slots, ue, { data: C }, void 0, !0)
|
|
2707
2715
|
])
|
|
2708
2716
|
}))
|
|
2709
2717
|
]), 1040, ["modelValue"])
|
|
@@ -2736,7 +2744,7 @@ const Kt = {
|
|
|
2736
2744
|
setup(f) {
|
|
2737
2745
|
const i = f;
|
|
2738
2746
|
return (t, e) => i.title ? (u(), I("div", _l, [
|
|
2739
|
-
(u(!0), I(
|
|
2747
|
+
(u(!0), I(G, null, j(i.columns, (r) => (u(), I("span", {
|
|
2740
2748
|
style: Ve({ width: (r == null ? void 0 : r.width) || st, ...r == null ? void 0 : r.titleStyle }),
|
|
2741
2749
|
key: r.key
|
|
2742
2750
|
}, [
|
|
@@ -2745,7 +2753,7 @@ const Kt = {
|
|
|
2745
2753
|
], !0)
|
|
2746
2754
|
], 4))), 128))
|
|
2747
2755
|
])) : (u(), I("div", kl, [
|
|
2748
|
-
(u(!0), I(
|
|
2756
|
+
(u(!0), I(G, null, j(i.columns, (r) => (u(), I("span", {
|
|
2749
2757
|
style: Ve({ width: (r == null ? void 0 : r.width) || st, ...r == null ? void 0 : r.style }),
|
|
2750
2758
|
key: r.key
|
|
2751
2759
|
}, [
|