vue-2024-ui 0.0.61 → 0.0.62
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 +750 -753
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { mergeModels as Se, useModel as Oe, ref as
|
|
1
|
+
import Et, { ElForm as Pe, ElButtonGroup as ze, ElButton as he, ElPopover as Xe, ElMessage as we, ElMessageBox as ft, ElDialog as wt, ElDrawer as _t } from "element-plus";
|
|
2
|
+
import { mergeModels as Se, useModel as Oe, ref as ye, onMounted as Ne, watch as ct, resolveComponent as R, openBlock as s, createElementBlock as B, unref as o, createBlock as S, mergeProps as x, withCtx as g, renderSlot as p, Fragment as W, renderList as U, createTextVNode as ge, toDisplayString as pe, createSlots as de, createVNode as G, createCommentVNode as ve, normalizeProps as je, createElementVNode as Q, useSlots as mt, inject as lt, useAttrs as He, onUnmounted as kt, computed as xe, normalizeStyle as Fe, withModifiers as st, guardReactiveProps as Ze, resolveDynamicComponent as qe, Transition as Ct, withDirectives as pt, vShow as vt, h as De, onBeforeUnmount as Dt, normalizeClass as yt, watchEffect as Vt, createApp as Ft } from "vue";
|
|
3
3
|
import { FullScreen as Tt, Remove as Mt } from "@element-plus/icons-vue";
|
|
4
|
-
import
|
|
4
|
+
import ht from "sortablejs";
|
|
5
5
|
import { Dexie as qt } from "dexie";
|
|
6
6
|
var St = {
|
|
7
7
|
name: "zh-cn",
|
|
@@ -184,52 +184,52 @@ var St = {
|
|
|
184
184
|
function xt(m) {
|
|
185
185
|
return m && m.__esModule && Object.prototype.hasOwnProperty.call(m, "default") ? m.default : m;
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var gt = { exports: {} };
|
|
188
188
|
(function(m, f) {
|
|
189
189
|
(function(t, e) {
|
|
190
190
|
m.exports = e();
|
|
191
191
|
})(Ot, function() {
|
|
192
|
-
var t = 1e3, e = 6e4, a = 36e5, v = "millisecond", F = "second", T = "minute", q = "hour", E = "day", _ = "week",
|
|
192
|
+
var t = 1e3, e = 6e4, a = 36e5, v = "millisecond", F = "second", T = "minute", q = "hour", E = "day", _ = "week", z = "month", ne = "quarter", V = "year", u = "date", A = "Invalid Date", K = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ee = /\[([^\]]+)]|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, se = { 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(k) {
|
|
193
193
|
var $ = ["th", "st", "nd", "rd"], b = k % 100;
|
|
194
194
|
return "[" + k + ($[(b - 20) % 10] || $[b] || $[0]) + "]";
|
|
195
|
-
} },
|
|
195
|
+
} }, ce = function(k, $, b) {
|
|
196
196
|
var c = String(k);
|
|
197
197
|
return !c || c.length >= $ ? k : "" + Array($ + 1 - c.length).join(b) + k;
|
|
198
|
-
},
|
|
198
|
+
}, ie = { s: ce, z: function(k) {
|
|
199
199
|
var $ = -k.utcOffset(), b = Math.abs($), c = Math.floor(b / 60), i = b % 60;
|
|
200
|
-
return ($ <= 0 ? "+" : "-") +
|
|
200
|
+
return ($ <= 0 ? "+" : "-") + ce(c, 2, "0") + ":" + ce(i, 2, "0");
|
|
201
201
|
}, m: function k($, b) {
|
|
202
202
|
if ($.date() < b.date()) return -k(b, $);
|
|
203
|
-
var c = 12 * (b.year() - $.year()) + (b.month() - $.month()), i = $.clone().add(c,
|
|
204
|
-
return +(-(c + (b - i) / (w ? i -
|
|
203
|
+
var c = 12 * (b.year() - $.year()) + (b.month() - $.month()), i = $.clone().add(c, z), w = b - i < 0, M = $.clone().add(c + (w ? -1 : 1), z);
|
|
204
|
+
return +(-(c + (b - i) / (w ? i - M : M - i)) || 0);
|
|
205
205
|
}, a: function(k) {
|
|
206
206
|
return k < 0 ? Math.ceil(k) || 0 : Math.floor(k);
|
|
207
207
|
}, p: function(k) {
|
|
208
|
-
return { M:
|
|
208
|
+
return { M: z, y: V, w: _, d: E, D: u, h: q, m: T, s: F, ms: v, Q: ne }[k] || String(k || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(k) {
|
|
210
210
|
return k === void 0;
|
|
211
|
-
} },
|
|
212
|
-
d[
|
|
211
|
+
} }, re = "en", d = {};
|
|
212
|
+
d[re] = se;
|
|
213
213
|
var D = "$isDayjsObject", I = function(k) {
|
|
214
214
|
return k instanceof te || !(!k || !k[D]);
|
|
215
215
|
}, y = function k($, b, c) {
|
|
216
216
|
var i;
|
|
217
|
-
if (!$) return
|
|
217
|
+
if (!$) return re;
|
|
218
218
|
if (typeof $ == "string") {
|
|
219
219
|
var w = $.toLowerCase();
|
|
220
220
|
d[w] && (i = w), b && (d[w] = b, i = w);
|
|
221
|
-
var
|
|
222
|
-
if (!i &&
|
|
221
|
+
var M = $.split("-");
|
|
222
|
+
if (!i && M.length > 1) return k(M[0]);
|
|
223
223
|
} else {
|
|
224
|
-
var
|
|
225
|
-
d[
|
|
224
|
+
var P = $.name;
|
|
225
|
+
d[P] = $, i = P;
|
|
226
226
|
}
|
|
227
|
-
return !c && i && (
|
|
227
|
+
return !c && i && (re = i), i || !c && re;
|
|
228
228
|
}, L = function(k, $) {
|
|
229
229
|
if (I(k)) return k.clone();
|
|
230
230
|
var b = typeof $ == "object" ? $ : {};
|
|
231
231
|
return b.date = k, b.args = arguments, new te(b);
|
|
232
|
-
}, O =
|
|
232
|
+
}, O = ie;
|
|
233
233
|
O.l = y, O.i = I, O.w = function(k, $) {
|
|
234
234
|
return L(k, { locale: $.$L, utc: $.$u, x: $.$x, $offset: $.$offset });
|
|
235
235
|
};
|
|
@@ -245,10 +245,10 @@ var ht = { exports: {} };
|
|
|
245
245
|
if (O.u(i)) return /* @__PURE__ */ new Date();
|
|
246
246
|
if (i instanceof Date) return new Date(i);
|
|
247
247
|
if (typeof i == "string" && !/Z$/i.test(i)) {
|
|
248
|
-
var
|
|
249
|
-
if (
|
|
250
|
-
var
|
|
251
|
-
return w ? new Date(Date.UTC(
|
|
248
|
+
var M = i.match(K);
|
|
249
|
+
if (M) {
|
|
250
|
+
var P = M[2] - 1 || 0, X = (M[7] || "0").substring(0, 3);
|
|
251
|
+
return w ? new Date(Date.UTC(M[1], P, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, X)) : new Date(M[1], P, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, X);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
return new Date(i);
|
|
@@ -274,40 +274,40 @@ var ht = { exports: {} };
|
|
|
274
274
|
}, $.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
276
|
}, $.startOf = function(b, c) {
|
|
277
|
-
var i = this, w = !!O.u(c) || c,
|
|
278
|
-
var r = O.w(i.$u ? Date.UTC(i.$y, l,
|
|
277
|
+
var i = this, w = !!O.u(c) || c, M = O.p(b), P = function(Ce, l) {
|
|
278
|
+
var r = O.w(i.$u ? Date.UTC(i.$y, l, Ce) : new Date(i.$y, l, Ce), i);
|
|
279
279
|
return w ? r : r.endOf(E);
|
|
280
|
-
}, X = function(
|
|
281
|
-
return O.w(i.toDate()[
|
|
282
|
-
}, oe = this.$W,
|
|
283
|
-
switch (
|
|
280
|
+
}, X = function(Ce, l) {
|
|
281
|
+
return O.w(i.toDate()[Ce].apply(i.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(l)), i);
|
|
282
|
+
}, oe = this.$W, n = this.$M, H = this.$D, ae = "set" + (this.$u ? "UTC" : "");
|
|
283
|
+
switch (M) {
|
|
284
284
|
case V:
|
|
285
|
-
return w ?
|
|
286
|
-
case
|
|
287
|
-
return w ?
|
|
285
|
+
return w ? P(1, 0) : P(31, 11);
|
|
286
|
+
case z:
|
|
287
|
+
return w ? P(1, n) : P(0, n + 1);
|
|
288
288
|
case _:
|
|
289
|
-
var
|
|
290
|
-
return
|
|
289
|
+
var ke = this.$locale().weekStart || 0, Te = (oe < ke ? oe + 7 : oe) - ke;
|
|
290
|
+
return P(w ? H - Te : H + (6 - Te), n);
|
|
291
291
|
case E:
|
|
292
292
|
case u:
|
|
293
|
-
return X(
|
|
293
|
+
return X(ae + "Hours", 0);
|
|
294
294
|
case q:
|
|
295
|
-
return X(
|
|
295
|
+
return X(ae + "Minutes", 1);
|
|
296
296
|
case T:
|
|
297
|
-
return X(
|
|
297
|
+
return X(ae + "Seconds", 2);
|
|
298
298
|
case F:
|
|
299
|
-
return X(
|
|
299
|
+
return X(ae + "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 i, w = O.p(b),
|
|
307
|
-
if (w ===
|
|
306
|
+
var i, w = O.p(b), M = "set" + (this.$u ? "UTC" : ""), P = (i = {}, i[E] = M + "Date", i[u] = M + "Date", i[z] = M + "Month", i[V] = M + "FullYear", i[q] = M + "Hours", i[T] = M + "Minutes", i[F] = M + "Seconds", i[v] = M + "Milliseconds", i)[w], X = w === E ? this.$D + (c - this.$W) : c;
|
|
307
|
+
if (w === z || w === V) {
|
|
308
308
|
var oe = this.clone().set(u, 1);
|
|
309
|
-
oe.$d[
|
|
310
|
-
} else
|
|
309
|
+
oe.$d[P](X), oe.init(), this.$d = oe.set(u, Math.min(this.$D, oe.daysInMonth())).$d;
|
|
310
|
+
} else P && this.$d[P](X);
|
|
311
311
|
return this.init(), this;
|
|
312
312
|
}, $.set = function(b, c) {
|
|
313
313
|
return this.clone().$set(b, c);
|
|
@@ -316,32 +316,32 @@ var ht = { exports: {} };
|
|
|
316
316
|
}, $.add = function(b, c) {
|
|
317
317
|
var i, w = this;
|
|
318
318
|
b = Number(b);
|
|
319
|
-
var
|
|
320
|
-
var
|
|
321
|
-
return O.w(
|
|
319
|
+
var M = O.p(c), P = function(n) {
|
|
320
|
+
var H = L(w);
|
|
321
|
+
return O.w(H.date(H.date() + Math.round(n * b)), w);
|
|
322
322
|
};
|
|
323
|
-
if (
|
|
324
|
-
if (
|
|
325
|
-
if (
|
|
326
|
-
if (
|
|
327
|
-
var X = (i = {}, i[T] = e, i[q] = a, i[F] = t, i)[
|
|
323
|
+
if (M === z) return this.set(z, this.$M + b);
|
|
324
|
+
if (M === V) return this.set(V, this.$y + b);
|
|
325
|
+
if (M === E) return P(1);
|
|
326
|
+
if (M === _) return P(7);
|
|
327
|
+
var X = (i = {}, i[T] = e, i[q] = a, i[F] = t, i)[M] || 1, oe = this.$d.getTime() + b * X;
|
|
328
328
|
return O.w(oe, 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, i = this.$locale();
|
|
333
333
|
if (!this.isValid()) return i.invalidDate || A;
|
|
334
|
-
var w = b || "YYYY-MM-DDTHH:mm:ssZ",
|
|
335
|
-
return l && (l[r] || l(c, w)) ||
|
|
336
|
-
},
|
|
337
|
-
return O.s(
|
|
338
|
-
},
|
|
334
|
+
var w = b || "YYYY-MM-DDTHH:mm:ssZ", M = O.z(this), P = this.$H, X = this.$m, oe = this.$M, n = i.weekdays, H = i.months, ae = i.meridiem, ke = function(l, r, h, j) {
|
|
335
|
+
return l && (l[r] || l(c, w)) || h[r].slice(0, j);
|
|
336
|
+
}, Te = function(l) {
|
|
337
|
+
return O.s(P % 12 || 12, l, "0");
|
|
338
|
+
}, Ce = ae || function(l, r, h) {
|
|
339
339
|
var j = l < 12 ? "AM" : "PM";
|
|
340
|
-
return
|
|
340
|
+
return h ? j.toLowerCase() : j;
|
|
341
341
|
};
|
|
342
342
|
return w.replace(ee, function(l, r) {
|
|
343
|
-
return r || function(
|
|
344
|
-
switch (
|
|
343
|
+
return r || function(h) {
|
|
344
|
+
switch (h) {
|
|
345
345
|
case "YY":
|
|
346
346
|
return String(c.$y).slice(-2);
|
|
347
347
|
case "YYYY":
|
|
@@ -351,9 +351,9 @@ var ht = { exports: {} };
|
|
|
351
351
|
case "MM":
|
|
352
352
|
return O.s(oe + 1, 2, "0");
|
|
353
353
|
case "MMM":
|
|
354
|
-
return
|
|
354
|
+
return ke(i.monthsShort, oe, H, 3);
|
|
355
355
|
case "MMMM":
|
|
356
|
-
return
|
|
356
|
+
return ke(H, oe);
|
|
357
357
|
case "D":
|
|
358
358
|
return c.$D;
|
|
359
359
|
case "DD":
|
|
@@ -361,23 +361,23 @@ var ht = { exports: {} };
|
|
|
361
361
|
case "d":
|
|
362
362
|
return String(c.$W);
|
|
363
363
|
case "dd":
|
|
364
|
-
return
|
|
364
|
+
return ke(i.weekdaysMin, c.$W, n, 2);
|
|
365
365
|
case "ddd":
|
|
366
|
-
return
|
|
366
|
+
return ke(i.weekdaysShort, c.$W, n, 3);
|
|
367
367
|
case "dddd":
|
|
368
|
-
return
|
|
368
|
+
return n[c.$W];
|
|
369
369
|
case "H":
|
|
370
|
-
return String(
|
|
370
|
+
return String(P);
|
|
371
371
|
case "HH":
|
|
372
|
-
return O.s(
|
|
372
|
+
return O.s(P, 2, "0");
|
|
373
373
|
case "h":
|
|
374
|
-
return
|
|
374
|
+
return Te(1);
|
|
375
375
|
case "hh":
|
|
376
|
-
return
|
|
376
|
+
return Te(2);
|
|
377
377
|
case "a":
|
|
378
|
-
return
|
|
378
|
+
return Ce(P, X, !0);
|
|
379
379
|
case "A":
|
|
380
|
-
return
|
|
380
|
+
return Ce(P, X, !1);
|
|
381
381
|
case "m":
|
|
382
382
|
return String(X);
|
|
383
383
|
case "mm":
|
|
@@ -389,48 +389,48 @@ var ht = { exports: {} };
|
|
|
389
389
|
case "SSS":
|
|
390
390
|
return O.s(c.$ms, 3, "0");
|
|
391
391
|
case "Z":
|
|
392
|
-
return
|
|
392
|
+
return M;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
|
-
}(l) ||
|
|
395
|
+
}(l) || M.replace(":", "");
|
|
396
396
|
});
|
|
397
397
|
}, $.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
399
|
}, $.diff = function(b, c, i) {
|
|
400
|
-
var w,
|
|
401
|
-
return O.m(
|
|
400
|
+
var w, M = this, P = O.p(c), X = L(b), oe = (X.utcOffset() - this.utcOffset()) * e, n = this - X, H = function() {
|
|
401
|
+
return O.m(M, X);
|
|
402
402
|
};
|
|
403
|
-
switch (
|
|
403
|
+
switch (P) {
|
|
404
404
|
case V:
|
|
405
|
-
w =
|
|
405
|
+
w = H() / 12;
|
|
406
406
|
break;
|
|
407
|
-
case
|
|
408
|
-
w =
|
|
407
|
+
case z:
|
|
408
|
+
w = H();
|
|
409
409
|
break;
|
|
410
|
-
case
|
|
411
|
-
w =
|
|
410
|
+
case ne:
|
|
411
|
+
w = H() / 3;
|
|
412
412
|
break;
|
|
413
413
|
case _:
|
|
414
|
-
w = (
|
|
414
|
+
w = (n - oe) / 6048e5;
|
|
415
415
|
break;
|
|
416
416
|
case E:
|
|
417
|
-
w = (
|
|
417
|
+
w = (n - oe) / 864e5;
|
|
418
418
|
break;
|
|
419
419
|
case q:
|
|
420
|
-
w =
|
|
420
|
+
w = n / a;
|
|
421
421
|
break;
|
|
422
422
|
case T:
|
|
423
|
-
w =
|
|
423
|
+
w = n / e;
|
|
424
424
|
break;
|
|
425
425
|
case F:
|
|
426
|
-
w =
|
|
426
|
+
w = n / t;
|
|
427
427
|
break;
|
|
428
428
|
default:
|
|
429
|
-
w =
|
|
429
|
+
w = n;
|
|
430
430
|
}
|
|
431
431
|
return i ? w : O.a(w);
|
|
432
432
|
}, $.daysInMonth = function() {
|
|
433
|
-
return this.endOf(
|
|
433
|
+
return this.endOf(z).$D;
|
|
434
434
|
}, $.$locale = function() {
|
|
435
435
|
return d[this.$L];
|
|
436
436
|
}, $.locale = function(b, c) {
|
|
@@ -448,19 +448,19 @@ var ht = { exports: {} };
|
|
|
448
448
|
}, $.toString = function() {
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, k;
|
|
451
|
-
}(),
|
|
452
|
-
return L.prototype =
|
|
453
|
-
|
|
451
|
+
}(), be = te.prototype;
|
|
452
|
+
return L.prototype = be, [["$ms", v], ["$s", F], ["$m", T], ["$H", q], ["$W", E], ["$M", z], ["$y", V], ["$D", u]].forEach(function(k) {
|
|
453
|
+
be[k[1]] = function($) {
|
|
454
454
|
return this.$g($, k[0], k[1]);
|
|
455
455
|
};
|
|
456
456
|
}), L.extend = function(k, $) {
|
|
457
457
|
return k.$i || (k($, te, L), k.$i = !0), L;
|
|
458
458
|
}, L.locale = y, L.isDayjs = I, L.unix = function(k) {
|
|
459
459
|
return L(1e3 * k);
|
|
460
|
-
}, L.en = d[
|
|
460
|
+
}, L.en = d[re], L.Ls = d, L.p = {}, L;
|
|
461
461
|
});
|
|
462
|
-
})(
|
|
463
|
-
var At =
|
|
462
|
+
})(gt);
|
|
463
|
+
var At = gt.exports;
|
|
464
464
|
const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
465
465
|
style: { display: "flex", width: "100%" },
|
|
466
466
|
class: "g-ctrl-container"
|
|
@@ -475,15 +475,15 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:modelValue"],
|
|
477
477
|
setup(m) {
|
|
478
|
-
const f = Oe(m, "modelValue"), t = m, e = t.item || {}, a = t.ctrlKey, v = t.ctrlType, F = t.model, T =
|
|
478
|
+
const f = Oe(m, "modelValue"), t = m, e = t.item || {}, a = t.ctrlKey, v = t.ctrlType, F = t.model, T = ye([]), q = ye([]), E = () => Object.keys(mt()).filter((V) => V.startsWith(`${t.t}-${a}-`)).map((V) => V.replace(`${t.t}-${a}-`, "")), _ = {
|
|
479
479
|
filterable: !0,
|
|
480
480
|
remote: !!(e && e["remote-method"]),
|
|
481
481
|
...e
|
|
482
|
-
},
|
|
482
|
+
}, z = (V) => {
|
|
483
483
|
e["remote-method"](V, (u) => {
|
|
484
484
|
q.value = u;
|
|
485
485
|
});
|
|
486
|
-
},
|
|
486
|
+
}, ne = async (V = "options") => {
|
|
487
487
|
try {
|
|
488
488
|
const u = await (e == null ? void 0 : e.getDicts(t.formInfo));
|
|
489
489
|
if (typeof u == "string")
|
|
@@ -502,77 +502,79 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
502
502
|
};
|
|
503
503
|
return Ne(async () => {
|
|
504
504
|
var A, K;
|
|
505
|
-
e && e["remote-method"] && (_["remote-method"] =
|
|
506
|
-
const V = (ee,
|
|
507
|
-
typeof e.getDicts == "function" && se
|
|
508
|
-
console.error(`Failed to load ${
|
|
505
|
+
e && e["remote-method"] && (_["remote-method"] = z), (K = (A = F[a]) == null ? void 0 : A.options) != null && K.length && (q.value = F[a].options);
|
|
506
|
+
const V = (ee, se = "options", ce = F[a]) => {
|
|
507
|
+
typeof e.getDicts == "function" && ne(se).catch((ie) => {
|
|
508
|
+
console.error(`Failed to load ${se} for ${ee}:`, ie);
|
|
509
509
|
});
|
|
510
510
|
};
|
|
511
511
|
["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(v) && V(v), v === "tree-select" && await (async () => {
|
|
512
512
|
try {
|
|
513
513
|
typeof e.getDicts == "function" ? T.value = await e.getDicts(t.formInfo) : T.value = q.value;
|
|
514
|
-
} catch (
|
|
515
|
-
console.error("Failed to load data for tree-select:",
|
|
514
|
+
} catch (se) {
|
|
515
|
+
console.error("Failed to load data for tree-select:", se);
|
|
516
516
|
}
|
|
517
517
|
})();
|
|
518
|
-
}), (
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
518
|
+
}), ct(() => t.formInfo, () => {
|
|
519
|
+
typeof e.getDicts == "function" && ne();
|
|
520
|
+
}, { deep: !0 }), (V, u) => {
|
|
521
|
+
var X, oe;
|
|
522
|
+
const A = R("el-radio"), K = R("el-radio-group"), ee = R("el-radio-button"), se = R("el-checkbox"), ce = R("el-checkbox-group"), ie = R("el-checkbox-button"), re = R("el-option"), d = R("el-select"), D = R("el-tree-select"), I = R("el-time-picker"), y = R("el-time-select"), L = R("el-date-picker"), O = R("el-color-picker"), te = R("el-rate"), be = R("el-slider"), k = R("el-switch"), $ = R("el-transfer"), b = R("el-cascader"), c = R("el-button"), i = R("el-upload"), w = R("el-autocomplete"), M = R("el-input-number"), P = R("el-input");
|
|
523
|
+
return s(), B("div", Bt, [
|
|
524
|
+
o(v) == o(fe).RADIO ? (s(), S(K, x({
|
|
523
525
|
key: 0,
|
|
524
526
|
modelValue: f.value,
|
|
525
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
527
|
+
"onUpdate:modelValue": u[0] || (u[0] = (n) => f.value = n)
|
|
526
528
|
}, o(e)), {
|
|
527
|
-
default:
|
|
529
|
+
default: g(() => [
|
|
528
530
|
p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
|
|
529
|
-
(
|
|
530
|
-
default:
|
|
531
|
-
p(V.$slots, `${t.t}-${o(a)}-options`, { option:
|
|
531
|
+
(s(!0), B(W, null, U(q.value, (n) => (s(), S(A, x({ ref_for: !0 }, n), {
|
|
532
|
+
default: g(() => [
|
|
533
|
+
p(V.$slots, `${t.t}-${o(a)}-options`, { option: n })
|
|
532
534
|
]),
|
|
533
535
|
_: 2
|
|
534
536
|
}, 1040))), 256))
|
|
535
537
|
])
|
|
536
538
|
]),
|
|
537
539
|
_: 3
|
|
538
|
-
}, 16, ["modelValue"])) : o(v) == o(
|
|
540
|
+
}, 16, ["modelValue"])) : o(v) == o(fe).RADIOBUTTON ? (s(), S(K, x({
|
|
539
541
|
key: 1,
|
|
540
542
|
modelValue: f.value,
|
|
541
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
|
543
|
+
"onUpdate:modelValue": u[1] || (u[1] = (n) => f.value = n)
|
|
542
544
|
}, o(e)), {
|
|
543
|
-
default:
|
|
545
|
+
default: g(() => [
|
|
544
546
|
p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
|
|
545
|
-
(
|
|
546
|
-
default:
|
|
547
|
-
p(V.$slots, `${t.t}-${o(a)}-options`, { option:
|
|
547
|
+
(s(!0), B(W, null, U(q.value, (n) => (s(), S(ee, x({ ref_for: !0 }, n), {
|
|
548
|
+
default: g(() => [
|
|
549
|
+
p(V.$slots, `${t.t}-${o(a)}-options`, { option: n })
|
|
548
550
|
]),
|
|
549
551
|
_: 2
|
|
550
552
|
}, 1040))), 256))
|
|
551
553
|
])
|
|
552
554
|
]),
|
|
553
555
|
_: 3
|
|
554
|
-
}, 16, ["modelValue"])) : o(v) == o(
|
|
556
|
+
}, 16, ["modelValue"])) : o(v) == o(fe).CHECKBOX ? (s(), S(se, x({
|
|
555
557
|
key: 2,
|
|
556
558
|
modelValue: f.value,
|
|
557
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
559
|
+
"onUpdate:modelValue": u[2] || (u[2] = (n) => f.value = n)
|
|
558
560
|
}, o(e)), {
|
|
559
|
-
default:
|
|
561
|
+
default: g(() => [
|
|
560
562
|
p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
|
|
561
|
-
u[21] || (u[21] =
|
|
563
|
+
u[21] || (u[21] = ge(pe(" ")))
|
|
562
564
|
])
|
|
563
565
|
]),
|
|
564
566
|
_: 3
|
|
565
|
-
}, 16, ["modelValue"])) : o(v) == o(
|
|
567
|
+
}, 16, ["modelValue"])) : o(v) == o(fe).CHECKBOXGROUP ? (s(), S(ce, x({
|
|
566
568
|
key: 3,
|
|
567
569
|
modelValue: f.value,
|
|
568
|
-
"onUpdate:modelValue": u[3] || (u[3] = (
|
|
570
|
+
"onUpdate:modelValue": u[3] || (u[3] = (n) => f.value = n)
|
|
569
571
|
}, o(e)), {
|
|
570
|
-
default:
|
|
572
|
+
default: g(() => [
|
|
571
573
|
p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
|
|
572
|
-
(
|
|
573
|
-
default:
|
|
574
|
-
p(V.$slots, `${t.t}-${o(a)}-options`, { option:
|
|
575
|
-
|
|
574
|
+
(s(!0), B(W, null, U(q.value, (n) => (s(), S(se, x({ ref_for: !0 }, n), {
|
|
575
|
+
default: g(() => [
|
|
576
|
+
p(V.$slots, `${t.t}-${o(a)}-options`, { option: n }, () => [
|
|
577
|
+
ge(pe(n.label), 1)
|
|
576
578
|
])
|
|
577
579
|
]),
|
|
578
580
|
_: 2
|
|
@@ -580,249 +582,244 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
580
582
|
])
|
|
581
583
|
]),
|
|
582
584
|
_: 3
|
|
583
|
-
}, 16, ["modelValue"])) : o(v) == o(
|
|
585
|
+
}, 16, ["modelValue"])) : o(v) == o(fe).CHECKBOXGROUPBUTTON ? (s(), S(ce, x({
|
|
584
586
|
key: 4,
|
|
585
587
|
modelValue: f.value,
|
|
586
|
-
"onUpdate:modelValue": u[4] || (u[4] = (
|
|
588
|
+
"onUpdate:modelValue": u[4] || (u[4] = (n) => f.value = n)
|
|
587
589
|
}, o(e)), {
|
|
588
|
-
default:
|
|
590
|
+
default: g(() => [
|
|
589
591
|
p(V.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
|
|
590
|
-
(
|
|
591
|
-
default:
|
|
592
|
-
p(V.$slots, `${t.t}-${o(a)}-options`, { option:
|
|
592
|
+
(s(!0), B(W, null, U(q.value, (n) => (s(), S(ie, x({ ref_for: !0 }, n), {
|
|
593
|
+
default: g(() => [
|
|
594
|
+
p(V.$slots, `${t.t}-${o(a)}-options`, { option: n })
|
|
593
595
|
]),
|
|
594
596
|
_: 2
|
|
595
597
|
}, 1040))), 256))
|
|
596
598
|
])
|
|
597
599
|
]),
|
|
598
600
|
_: 3
|
|
599
|
-
}, 16, ["modelValue"])) : o(v) === o(
|
|
601
|
+
}, 16, ["modelValue"])) : o(v) === o(fe).SELECT ? (s(), S(d, x({
|
|
600
602
|
key: 5,
|
|
601
603
|
modelValue: f.value,
|
|
602
|
-
"onUpdate:modelValue": u[5] || (u[5] = (
|
|
604
|
+
"onUpdate:modelValue": u[5] || (u[5] = (n) => f.value = n),
|
|
603
605
|
placeholder: o(F)[o(a)].label
|
|
604
|
-
}, _),
|
|
605
|
-
default:
|
|
606
|
-
p(V.$slots, `${t.t}-${o(a)}`, { options: q.value }, () =>
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
}, {
|
|
613
|
-
default:
|
|
614
|
-
(
|
|
615
|
-
key: Ee.value,
|
|
616
|
-
onClick: (De) => _.change && _.change(Ee)
|
|
617
|
-
}), {
|
|
618
|
-
default: h(() => [
|
|
619
|
-
p(V.$slots, `${t.t}-${o(a)}-options`, { option: Ee })
|
|
620
|
-
]),
|
|
621
|
-
_: 2
|
|
622
|
-
}, 1040, ["onClick"]))), 128))
|
|
606
|
+
}, _), de({
|
|
607
|
+
default: g(() => [
|
|
608
|
+
p(V.$slots, `${t.t}-${o(a)}`, { options: q.value }, () => [
|
|
609
|
+
(s(!0), B(W, null, U(q.value, (n) => (s(), B(W, {
|
|
610
|
+
key: n.value
|
|
611
|
+
}, [
|
|
612
|
+
G(re, x({ ref_for: !0 }, n, {
|
|
613
|
+
onClick: (H) => _.change && _.change(n)
|
|
614
|
+
}), {
|
|
615
|
+
default: g(() => [
|
|
616
|
+
p(V.$slots, `${t.t}-${o(a)}-options`, { option: n })
|
|
623
617
|
]),
|
|
624
618
|
_: 2
|
|
625
|
-
},
|
|
626
|
-
|
|
627
|
-
|
|
619
|
+
}, 1040, ["onClick"]),
|
|
620
|
+
n.children && n.children.length ? (s(!0), B(W, { key: 0 }, U(n.children, (H) => (s(), S(re, x({
|
|
621
|
+
key: H.value,
|
|
622
|
+
ref_for: !0
|
|
623
|
+
}, H, {
|
|
624
|
+
onClick: (ae) => _.change && _.change(H)
|
|
628
625
|
}), {
|
|
629
|
-
default:
|
|
630
|
-
p(V.$slots, `${t.t}-${o(a)}-options`, { option:
|
|
626
|
+
default: g(() => [
|
|
627
|
+
p(V.$slots, `${t.t}-${o(a)}-options`, { option: H })
|
|
631
628
|
]),
|
|
632
629
|
_: 2
|
|
633
|
-
}, 1040, ["onClick"]))), 128))
|
|
634
|
-
]
|
|
635
|
-
|
|
630
|
+
}, 1040, ["onClick"]))), 128)) : ve("", !0)
|
|
631
|
+
], 64))), 128))
|
|
632
|
+
])
|
|
636
633
|
]),
|
|
637
634
|
_: 2
|
|
638
635
|
}, [
|
|
639
|
-
U(E(), (
|
|
640
|
-
name:
|
|
641
|
-
fn:
|
|
642
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
636
|
+
U(E(), (n) => ({
|
|
637
|
+
name: n,
|
|
638
|
+
fn: g((H) => [
|
|
639
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
|
|
643
640
|
])
|
|
644
641
|
}))
|
|
645
|
-
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(
|
|
642
|
+
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).TREESELECT ? (s(), S(D, x({
|
|
646
643
|
key: 6,
|
|
647
644
|
modelValue: f.value,
|
|
648
|
-
"onUpdate:modelValue": u[6] || (u[6] = (
|
|
645
|
+
"onUpdate:modelValue": u[6] || (u[6] = (n) => f.value = n),
|
|
649
646
|
placeholder: o(F)[o(a)].label
|
|
650
|
-
}, o(e), { data: T.value }),
|
|
651
|
-
U(E(), (
|
|
652
|
-
name:
|
|
653
|
-
fn:
|
|
654
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
647
|
+
}, o(e), { data: T.value }), de({ _: 2 }, [
|
|
648
|
+
U(E(), (n) => ({
|
|
649
|
+
name: n,
|
|
650
|
+
fn: g((H) => [
|
|
651
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
|
|
655
652
|
])
|
|
656
653
|
}))
|
|
657
|
-
]), 1040, ["modelValue", "placeholder", "data"])) : o(v) == o(
|
|
654
|
+
]), 1040, ["modelValue", "placeholder", "data"])) : o(v) == o(fe).TIME ? (s(), S(I, x({
|
|
658
655
|
key: 7,
|
|
659
656
|
modelValue: f.value,
|
|
660
|
-
"onUpdate:modelValue": u[7] || (u[7] = (
|
|
657
|
+
"onUpdate:modelValue": u[7] || (u[7] = (n) => f.value = n),
|
|
661
658
|
"arrow-control": ""
|
|
662
659
|
}, o(e), {
|
|
663
660
|
placeholder: o(F)[o(a)].label
|
|
664
|
-
}), null, 16, ["modelValue", "placeholder"])) : o(v) == o(
|
|
661
|
+
}), null, 16, ["modelValue", "placeholder"])) : o(v) == o(fe).TIMESELECT ? (s(), S(y, x({
|
|
665
662
|
key: 8,
|
|
666
663
|
modelValue: f.value,
|
|
667
|
-
"onUpdate:modelValue": u[8] || (u[8] = (
|
|
664
|
+
"onUpdate:modelValue": u[8] || (u[8] = (n) => f.value = n),
|
|
668
665
|
start: "06:30",
|
|
669
666
|
step: "00:15",
|
|
670
667
|
end: "23:30",
|
|
671
668
|
placeholder: o(F)[o(a)].label
|
|
672
|
-
}, o(e)), null, 16, ["modelValue", "placeholder"])) : o(v) == o(
|
|
669
|
+
}, o(e)), null, 16, ["modelValue", "placeholder"])) : o(v) == o(fe).DATE ? (s(), S(L, x({
|
|
673
670
|
key: 9,
|
|
674
671
|
modelValue: f.value,
|
|
675
|
-
"onUpdate:modelValue": u[9] || (u[9] = (
|
|
672
|
+
"onUpdate:modelValue": u[9] || (u[9] = (n) => f.value = n),
|
|
676
673
|
type: "date",
|
|
677
674
|
placeholder: o(F)[o(a)].label,
|
|
678
675
|
"value-format": "YYYY-MM-DD"
|
|
679
|
-
}, o(e)),
|
|
680
|
-
U(E(), (
|
|
681
|
-
name:
|
|
682
|
-
fn:
|
|
683
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
676
|
+
}, o(e)), de({ _: 2 }, [
|
|
677
|
+
U(E(), (n) => ({
|
|
678
|
+
name: n,
|
|
679
|
+
fn: g((H) => [
|
|
680
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
|
|
684
681
|
])
|
|
685
682
|
}))
|
|
686
|
-
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(
|
|
683
|
+
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).DATETIME ? (s(), S(L, x({
|
|
687
684
|
key: 10,
|
|
688
685
|
modelValue: f.value,
|
|
689
|
-
"onUpdate:modelValue": u[10] || (u[10] = (
|
|
690
|
-
type: o(
|
|
686
|
+
"onUpdate:modelValue": u[10] || (u[10] = (n) => f.value = n),
|
|
687
|
+
type: o(fe).DATETIME,
|
|
691
688
|
placeholder: o(F)[o(a)].label,
|
|
692
689
|
"value-format": "YYYY-MM-DD HH:mm:ss"
|
|
693
|
-
}, o(e)),
|
|
694
|
-
U(E(), (
|
|
695
|
-
name:
|
|
696
|
-
fn:
|
|
697
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
690
|
+
}, o(e)), de({ _: 2 }, [
|
|
691
|
+
U(E(), (n) => ({
|
|
692
|
+
name: n,
|
|
693
|
+
fn: g((H) => [
|
|
694
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
|
|
698
695
|
])
|
|
699
696
|
}))
|
|
700
|
-
]), 1040, ["modelValue", "type", "placeholder"])) : o(v) == o(
|
|
697
|
+
]), 1040, ["modelValue", "type", "placeholder"])) : o(v) == o(fe).COLOR ? (s(), S(O, x({
|
|
701
698
|
key: 11,
|
|
702
699
|
modelValue: f.value,
|
|
703
|
-
"onUpdate:modelValue": u[11] || (u[11] = (
|
|
704
|
-
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(
|
|
700
|
+
"onUpdate:modelValue": u[11] || (u[11] = (n) => f.value = n)
|
|
701
|
+
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(fe).RATE ? (s(), S(te, x({
|
|
705
702
|
key: 12,
|
|
706
703
|
modelValue: f.value,
|
|
707
|
-
"onUpdate:modelValue": u[12] || (u[12] = (
|
|
708
|
-
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(
|
|
704
|
+
"onUpdate:modelValue": u[12] || (u[12] = (n) => f.value = n)
|
|
705
|
+
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(fe).SLIDER ? (s(), S(be, x({
|
|
709
706
|
key: 13,
|
|
710
707
|
modelValue: f.value,
|
|
711
|
-
"onUpdate:modelValue": u[13] || (u[13] = (
|
|
712
|
-
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(
|
|
708
|
+
"onUpdate:modelValue": u[13] || (u[13] = (n) => f.value = n)
|
|
709
|
+
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(fe).SWITCH ? (s(), S(k, x({
|
|
713
710
|
key: 14,
|
|
714
711
|
modelValue: f.value,
|
|
715
|
-
"onUpdate:modelValue": u[14] || (u[14] = (
|
|
716
|
-
}, o(e)),
|
|
717
|
-
U(E(), (
|
|
718
|
-
name:
|
|
719
|
-
fn:
|
|
720
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
712
|
+
"onUpdate:modelValue": u[14] || (u[14] = (n) => f.value = n)
|
|
713
|
+
}, o(e)), de({ _: 2 }, [
|
|
714
|
+
U(E(), (n) => ({
|
|
715
|
+
name: n,
|
|
716
|
+
fn: g((H) => [
|
|
717
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
|
|
721
718
|
])
|
|
722
719
|
}))
|
|
723
|
-
]), 1040, ["modelValue"])) : o(v) == o(
|
|
720
|
+
]), 1040, ["modelValue"])) : o(v) == o(fe).TRANSFER ? (s(), S($, x({
|
|
724
721
|
key: 15,
|
|
725
722
|
modelValue: f.value,
|
|
726
|
-
"onUpdate:modelValue": u[15] || (u[15] = (
|
|
727
|
-
}, o(e)),
|
|
728
|
-
U(E(), (
|
|
729
|
-
name:
|
|
730
|
-
fn:
|
|
731
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
723
|
+
"onUpdate:modelValue": u[15] || (u[15] = (n) => f.value = n)
|
|
724
|
+
}, o(e)), de({ _: 2 }, [
|
|
725
|
+
U(E(), (n) => ({
|
|
726
|
+
name: n,
|
|
727
|
+
fn: g((H) => [
|
|
728
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
|
|
732
729
|
])
|
|
733
730
|
}))
|
|
734
|
-
]), 1040, ["modelValue"])) : o(v) == o(
|
|
731
|
+
]), 1040, ["modelValue"])) : o(v) == o(fe).CASCADER ? (s(), S(b, x({
|
|
735
732
|
key: 16,
|
|
736
733
|
modelValue: f.value,
|
|
737
|
-
"onUpdate:modelValue": u[16] || (u[16] = (
|
|
738
|
-
}, o(e), { options: q.value }),
|
|
739
|
-
U(E(), (
|
|
740
|
-
name:
|
|
741
|
-
fn:
|
|
742
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
734
|
+
"onUpdate:modelValue": u[16] || (u[16] = (n) => f.value = n)
|
|
735
|
+
}, o(e), { options: q.value }), de({ _: 2 }, [
|
|
736
|
+
U(E(), (n) => ({
|
|
737
|
+
name: n,
|
|
738
|
+
fn: g((H) => [
|
|
739
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: H })
|
|
743
740
|
])
|
|
744
741
|
}))
|
|
745
|
-
]), 1040, ["modelValue", "options"])) : o(v) == o(
|
|
746
|
-
default:
|
|
747
|
-
G(
|
|
748
|
-
default:
|
|
749
|
-
|
|
742
|
+
]), 1040, ["modelValue", "options"])) : o(v) == o(fe).IMAGE ? (s(), S(i, je(x({ key: 17 }, o(e))), de({
|
|
743
|
+
default: g(() => [
|
|
744
|
+
G(c, { type: "primary" }, {
|
|
745
|
+
default: g(() => u[22] || (u[22] = [
|
|
746
|
+
ge("点击上传")
|
|
750
747
|
])),
|
|
751
748
|
_: 1
|
|
752
749
|
})
|
|
753
750
|
]),
|
|
754
751
|
_: 2
|
|
755
752
|
}, [
|
|
756
|
-
U(E(), (
|
|
757
|
-
name:
|
|
758
|
-
fn:
|
|
759
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
753
|
+
U(E(), (n, H) => ({
|
|
754
|
+
name: n,
|
|
755
|
+
fn: g((ae) => [
|
|
756
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: ae })
|
|
760
757
|
])
|
|
761
758
|
}))
|
|
762
|
-
]), 1040)) : o(v) == o(
|
|
759
|
+
]), 1040)) : o(v) == o(fe).AUTOCOMPLETE ? (s(), S(w, x({
|
|
763
760
|
key: 18,
|
|
764
761
|
modelValue: f.value,
|
|
765
|
-
"onUpdate:modelValue": u[17] || (u[17] = (
|
|
762
|
+
"onUpdate:modelValue": u[17] || (u[17] = (n) => f.value = n)
|
|
766
763
|
}, o(e), {
|
|
767
764
|
placeholder: o(F)[o(a)].label
|
|
768
|
-
}),
|
|
769
|
-
U(E(), (
|
|
770
|
-
name:
|
|
771
|
-
fn:
|
|
772
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
765
|
+
}), de({ _: 2 }, [
|
|
766
|
+
U(E(), (n, H) => ({
|
|
767
|
+
name: n,
|
|
768
|
+
fn: g((ae) => [
|
|
769
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: ae })
|
|
773
770
|
])
|
|
774
771
|
}))
|
|
775
|
-
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(
|
|
772
|
+
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).INPUTNUMBER ? (s(), S(M, x({
|
|
776
773
|
key: 19,
|
|
777
774
|
modelValue: f.value,
|
|
778
|
-
"onUpdate:modelValue": u[18] || (u[18] = (
|
|
775
|
+
"onUpdate:modelValue": u[18] || (u[18] = (n) => f.value = n),
|
|
779
776
|
min: 0,
|
|
780
777
|
max: 1e8,
|
|
781
778
|
placeholder: o(F)[o(a)].label
|
|
782
|
-
}, o(e)),
|
|
783
|
-
U(E(), (
|
|
784
|
-
name:
|
|
785
|
-
fn:
|
|
786
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
779
|
+
}, o(e)), de({ _: 2 }, [
|
|
780
|
+
U(E(), (n, H) => ({
|
|
781
|
+
name: n,
|
|
782
|
+
fn: g((ae) => [
|
|
783
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: ae })
|
|
787
784
|
])
|
|
788
785
|
}))
|
|
789
|
-
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(
|
|
790
|
-
G(
|
|
786
|
+
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(fe).MONEY ? (s(), B("div", It, [
|
|
787
|
+
G(P, x({
|
|
791
788
|
modelValue: f.value,
|
|
792
|
-
"onUpdate:modelValue": u[19] || (u[19] = (
|
|
789
|
+
"onUpdate:modelValue": u[19] || (u[19] = (n) => f.value = n),
|
|
793
790
|
placeholder: o(F)[o(a)].label,
|
|
794
|
-
type: o(
|
|
795
|
-
maxlength: ((
|
|
796
|
-
}, { ...o(e), type: o(v) }),
|
|
791
|
+
type: o(fe).NUMBER,
|
|
792
|
+
maxlength: ((X = o(e)) == null ? void 0 : X.max) || 25
|
|
793
|
+
}, { ...o(e), type: o(v) }), de({ _: 2 }, [
|
|
797
794
|
f.value ? {
|
|
798
795
|
name: "suffix",
|
|
799
|
-
fn:
|
|
796
|
+
fn: g(() => [
|
|
800
797
|
Q("div", {
|
|
801
798
|
title: o(tt)(f.value),
|
|
802
799
|
style: { "font-size": "10px", display: "block", width: "120px", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
803
|
-
},
|
|
800
|
+
}, pe(o(tt)(f.value)), 9, Ut)
|
|
804
801
|
]),
|
|
805
802
|
key: "0"
|
|
806
803
|
} : void 0,
|
|
807
|
-
U(E(), (
|
|
808
|
-
name:
|
|
809
|
-
fn:
|
|
810
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
804
|
+
U(E(), (n, H) => ({
|
|
805
|
+
name: n,
|
|
806
|
+
fn: g((ae) => [
|
|
807
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: ae })
|
|
811
808
|
])
|
|
812
809
|
}))
|
|
813
810
|
]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
|
|
814
|
-
])) : (
|
|
811
|
+
])) : (s(), S(P, x({
|
|
815
812
|
key: 21,
|
|
816
813
|
modelValue: f.value,
|
|
817
|
-
"onUpdate:modelValue": u[20] || (u[20] = (
|
|
814
|
+
"onUpdate:modelValue": u[20] || (u[20] = (n) => f.value = n),
|
|
818
815
|
placeholder: o(F)[o(a)].label,
|
|
819
|
-
maxlength: ((
|
|
816
|
+
maxlength: ((oe = o(e)) == null ? void 0 : oe.max) || 25,
|
|
820
817
|
clearable: !0
|
|
821
|
-
}, { ...o(e), type: o(v) }),
|
|
822
|
-
U(E(), (
|
|
823
|
-
name:
|
|
824
|
-
fn:
|
|
825
|
-
p(V.$slots, `${t.t}-${o(a)}-${
|
|
818
|
+
}, { ...o(e), type: o(v) }), de({ _: 2 }, [
|
|
819
|
+
U(E(), (n, H) => ({
|
|
820
|
+
name: n,
|
|
821
|
+
fn: g((ae) => [
|
|
822
|
+
p(V.$slots, `${t.t}-${o(a)}-${n}`, { data: ae })
|
|
826
823
|
])
|
|
827
824
|
}))
|
|
828
825
|
]), 1040, ["modelValue", "placeholder", "maxlength"]))
|
|
@@ -840,8 +837,8 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
840
837
|
},
|
|
841
838
|
emits: /* @__PURE__ */ Se(["submit", "reset"], ["update:modelValue"]),
|
|
842
839
|
setup(m, { emit: f }) {
|
|
843
|
-
var
|
|
844
|
-
const t = Oe(m, "modelValue"), e = f, a =
|
|
840
|
+
var se, ce, ie, re;
|
|
841
|
+
const t = Oe(m, "modelValue"), e = f, a = ye(null), v = lt("options"), F = {
|
|
845
842
|
inline: !0,
|
|
846
843
|
type: "hidden",
|
|
847
844
|
"scroll-to-error": !0,
|
|
@@ -851,7 +848,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
851
848
|
style: {
|
|
852
849
|
display: "flex",
|
|
853
850
|
flexWrap: "wrap",
|
|
854
|
-
...(
|
|
851
|
+
...(se = He()) == null ? void 0 : se.style
|
|
855
852
|
},
|
|
856
853
|
// 表单底部属性
|
|
857
854
|
footer: {
|
|
@@ -897,10 +894,10 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
897
894
|
editable: !1
|
|
898
895
|
}
|
|
899
896
|
};
|
|
900
|
-
t.value.form =
|
|
897
|
+
t.value.form = $e(
|
|
901
898
|
F,
|
|
902
899
|
v == null ? void 0 : v.form,
|
|
903
|
-
(
|
|
900
|
+
(ce = t.value) == null ? void 0 : ce.form
|
|
904
901
|
);
|
|
905
902
|
const T = {
|
|
906
903
|
type: "hidden",
|
|
@@ -909,18 +906,18 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
909
906
|
width: "100%"
|
|
910
907
|
}
|
|
911
908
|
};
|
|
912
|
-
t.value.formItems =
|
|
909
|
+
t.value.formItems = $e(
|
|
913
910
|
T,
|
|
914
911
|
v == null ? void 0 : v.formItems,
|
|
915
|
-
(
|
|
912
|
+
(ie = t == null ? void 0 : t.value) == null ? void 0 : ie.formItems
|
|
916
913
|
);
|
|
917
914
|
const q = {
|
|
918
915
|
span: 12,
|
|
919
916
|
offset: 0
|
|
920
917
|
};
|
|
921
|
-
t.value.form.cols =
|
|
918
|
+
t.value.form.cols = $e(
|
|
922
919
|
q,
|
|
923
|
-
(
|
|
920
|
+
(re = v == null ? void 0 : v.form) == null ? void 0 : re.cols,
|
|
924
921
|
t.value.form.cols
|
|
925
922
|
);
|
|
926
923
|
const E = (d) => {
|
|
@@ -955,28 +952,28 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
955
952
|
}
|
|
956
953
|
return D;
|
|
957
954
|
}, _ = (d, D = !1) => {
|
|
958
|
-
var L, O, te,
|
|
955
|
+
var L, O, te, be, k;
|
|
959
956
|
const I = D ? d : d == null ? void 0 : d.item, y = typeof (I == null ? void 0 : I.editor) == "function" ? I.editor(u.value, (L = t.value.form) == null ? void 0 : L.modalState) : (I == null ? void 0 : I.editor) || {};
|
|
960
957
|
if (((O = t.value.form) == null ? void 0 : O.modalState) === "edit") {
|
|
961
958
|
const $ = typeof (I == null ? void 0 : I.editor) == "object" ? (te = I.editor) == null ? void 0 : te.ep : typeof (I == null ? void 0 : I.editor) == "function" ? y == null ? void 0 : y.ep : {};
|
|
962
959
|
return { ...y, ...$ };
|
|
963
960
|
}
|
|
964
|
-
if (((
|
|
961
|
+
if (((be = t.value.form) == null ? void 0 : be.modalState) === "add") {
|
|
965
962
|
const $ = typeof (I == null ? void 0 : I.editor) == "object" ? (k = I.editor) == null ? void 0 : k.ap : typeof (I == null ? void 0 : I.editor) == "function" ? y == null ? void 0 : y.ap : {};
|
|
966
963
|
return { ...y, ...$ };
|
|
967
964
|
}
|
|
968
965
|
return y;
|
|
969
|
-
},
|
|
966
|
+
}, z = (d) => {
|
|
970
967
|
var I, y, L, O, te;
|
|
971
968
|
const D = typeof d.editor == "function" ? d.editor(u.value, (I = t.value.form) == null ? void 0 : I.modalState) : d.editor;
|
|
972
969
|
return ((y = t.value.form) == null ? void 0 : y.modalState) === "edit" ? ((L = D == null ? void 0 : D.ep) == null ? void 0 : L.type) ?? (D == null ? void 0 : D.type) ?? d.type : ((O = t.value.form) == null ? void 0 : O.modalState) === "add" ? ((te = D == null ? void 0 : D.ap) == null ? void 0 : te.type) ?? (D == null ? void 0 : D.type) ?? d.type : (D == null ? void 0 : D.type) ?? d.type;
|
|
973
970
|
};
|
|
974
971
|
Ne(() => {
|
|
975
|
-
|
|
976
|
-
}),
|
|
972
|
+
ne();
|
|
973
|
+
}), kt(() => {
|
|
977
974
|
a.value = null;
|
|
978
975
|
});
|
|
979
|
-
const
|
|
976
|
+
const ne = () => {
|
|
980
977
|
for (const [d, D] of Object.entries(V.value))
|
|
981
978
|
t.value[d].formItem = { ...t.value[d].formItem, ...D.formItem }, t.value[d].formItem.style = { ...t.value[d].formItem.style, ...D.formItem.style };
|
|
982
979
|
}, V = xe(() => Object.fromEntries(Object.entries(t.value).filter((d) => d[1].type != "hidden").filter((d) => !["table", "tableColumns", "query", "queryItems"].includes(d[0])).filter((d) => d[1].editor !== !1).filter((d) => d[1].type !== "control").filter((d) => {
|
|
@@ -994,7 +991,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
994
991
|
}), d.get(y).items.push({ key: D, item: I });
|
|
995
992
|
}
|
|
996
993
|
}), d.forEach((D) => {
|
|
997
|
-
D.tabPane =
|
|
994
|
+
D.tabPane = $e(...D.items.map(({ item: I }) => I.tabPane || {}));
|
|
998
995
|
}), Array.from(d.values());
|
|
999
996
|
}), K = [
|
|
1000
997
|
{
|
|
@@ -1002,7 +999,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1002
999
|
label: t.value.form.submit.label,
|
|
1003
1000
|
click: t.value.form.submit.click,
|
|
1004
1001
|
hidden: t.value.form.submit.hidden,
|
|
1005
|
-
info:
|
|
1002
|
+
info: _e(t.value.form.submit, (d) => !["click"].includes(d)),
|
|
1006
1003
|
sort: t.value.form.submit.sort ?? 1,
|
|
1007
1004
|
// 使用空值合并运算符
|
|
1008
1005
|
originalOrder: 0
|
|
@@ -1012,7 +1009,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1012
1009
|
name: "f-reset",
|
|
1013
1010
|
label: t.value.form.reset.label,
|
|
1014
1011
|
click: t.value.form.reset.click,
|
|
1015
|
-
info:
|
|
1012
|
+
info: _e(t.value.form.reset, (d) => !["click"].includes(d)),
|
|
1016
1013
|
hidden: t.value.form.reset.hidden,
|
|
1017
1014
|
sort: t.value.form.reset.sort ?? 2,
|
|
1018
1015
|
// 使用空值合并运算符
|
|
@@ -1021,14 +1018,14 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1021
1018
|
}
|
|
1022
1019
|
], ee = xe(() => K.filter((d) => !d.hidden).sort((d, D) => d.sort - D.sort || d.originalOrder - D.originalOrder));
|
|
1023
1020
|
return (d, D) => {
|
|
1024
|
-
const I = R("el-form-item"), y = R("el-col"), L = R("el-tab-pane"), O = R("el-tabs"), te = R("el-button"),
|
|
1025
|
-
return
|
|
1021
|
+
const I = R("el-form-item"), y = R("el-col"), L = R("el-tab-pane"), O = R("el-tabs"), te = R("el-button"), be = R("el-form");
|
|
1022
|
+
return s(), S(be, x({
|
|
1026
1023
|
ref_key: "gform",
|
|
1027
1024
|
ref: a,
|
|
1028
1025
|
model: t.value,
|
|
1029
1026
|
style: { width: "98%", padding: 0, margin: 0, "box-sizing": "border-box" }
|
|
1030
|
-
}, o(
|
|
1031
|
-
default:
|
|
1027
|
+
}, o(_e)(t.value.form, (k) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(k)), { class: "g-form-container" }), {
|
|
1028
|
+
default: g(() => [
|
|
1032
1029
|
A.value.length > 0 ? p(d.$slots, "default", { key: 0 }, () => {
|
|
1033
1030
|
var k, $, b;
|
|
1034
1031
|
return [
|
|
@@ -1038,29 +1035,29 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1038
1035
|
"onUpdate:modelValue": D[0] || (D[0] = (c) => A.value[0].groupName = c),
|
|
1039
1036
|
style: { width: "100%" }
|
|
1040
1037
|
}, t.value.form.tabs), {
|
|
1041
|
-
default:
|
|
1042
|
-
(
|
|
1038
|
+
default: g(() => [
|
|
1039
|
+
(s(!0), B(W, null, U(A.value, (c) => (s(), S(L, x({
|
|
1043
1040
|
key: c.groupName,
|
|
1044
1041
|
label: c.groupName,
|
|
1045
1042
|
name: c.groupName,
|
|
1046
1043
|
style: { width: "100%", display: "flex", "flex-wrap": "wrap" },
|
|
1047
1044
|
ref_for: !0
|
|
1048
1045
|
}, c.tabPane), {
|
|
1049
|
-
default:
|
|
1050
|
-
(
|
|
1046
|
+
default: g(() => [
|
|
1047
|
+
(s(!0), B(W, null, U(c.items, (i, w) => (s(), S(y, x({ ref_for: !0 }, { ...t.value.form.cols, ...i == null ? void 0 : i.item.col }, {
|
|
1051
1048
|
key: i.key,
|
|
1052
1049
|
style: { width: "100%" }
|
|
1053
1050
|
}), {
|
|
1054
|
-
default:
|
|
1055
|
-
var
|
|
1051
|
+
default: g(() => {
|
|
1052
|
+
var M, P;
|
|
1056
1053
|
return [
|
|
1057
1054
|
G(I, x({
|
|
1058
1055
|
label: i == null ? void 0 : i.item.label,
|
|
1059
1056
|
prop: `${i.key}.value`,
|
|
1060
1057
|
rules: E(i == null ? void 0 : i.item),
|
|
1061
1058
|
ref_for: !0
|
|
1062
|
-
}, { ...(
|
|
1063
|
-
default:
|
|
1059
|
+
}, { ...(M = t.value) == null ? void 0 : M.formItems, ...(P = i == null ? void 0 : i.item) == null ? void 0 : P.formItem }, { style: { width: "100%" } }), {
|
|
1060
|
+
default: g(() => [
|
|
1064
1061
|
p(d.$slots, "f-" + i.key, {
|
|
1065
1062
|
item: i == null ? void 0 : i.item,
|
|
1066
1063
|
model: t.value
|
|
@@ -1070,17 +1067,17 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1070
1067
|
"onUpdate:modelValue": (X) => t.value[i.key].value = X,
|
|
1071
1068
|
item: _(i),
|
|
1072
1069
|
ctrlKey: i.key,
|
|
1073
|
-
ctrlType:
|
|
1070
|
+
ctrlType: z(i == null ? void 0 : i.item),
|
|
1074
1071
|
model: t.value,
|
|
1075
1072
|
class: "g-ctrl-container",
|
|
1076
1073
|
t: "f",
|
|
1077
1074
|
formInfo: u.value
|
|
1078
|
-
},
|
|
1075
|
+
}, de({ _: 2 }, [
|
|
1079
1076
|
U(d.$slots, (X, oe) => ({
|
|
1080
1077
|
name: oe,
|
|
1081
|
-
fn:
|
|
1078
|
+
fn: g((n) => [
|
|
1082
1079
|
p(d.$slots, oe, {
|
|
1083
|
-
data:
|
|
1080
|
+
data: n,
|
|
1084
1081
|
item: i.item,
|
|
1085
1082
|
model: t.value
|
|
1086
1083
|
})
|
|
@@ -1101,19 +1098,19 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1101
1098
|
]),
|
|
1102
1099
|
_: 3
|
|
1103
1100
|
}, 16, ["modelValue"]),
|
|
1104
|
-
(b = ($ = (k = t.value) == null ? void 0 : k.form) == null ? void 0 : $.footer) != null && b.hidden ?
|
|
1101
|
+
(b = ($ = (k = t.value) == null ? void 0 : k.form) == null ? void 0 : $.footer) != null && b.hidden ? ve("", !0) : p(d.$slots, "f-footer", { key: 0 }, () => [
|
|
1105
1102
|
Q("div", {
|
|
1106
|
-
style:
|
|
1103
|
+
style: Fe(t.value.form.footer.style)
|
|
1107
1104
|
}, [
|
|
1108
1105
|
p(d.$slots, "f-footer-left"),
|
|
1109
|
-
(
|
|
1106
|
+
(s(!0), B(W, null, U(ee.value, (c) => (s(), B(W, null, [
|
|
1110
1107
|
p(d.$slots, c.name + "-left"),
|
|
1111
1108
|
p(d.$slots, c.name, {}, () => [
|
|
1112
1109
|
G(te, x({ ref_for: !0 }, c.info, {
|
|
1113
1110
|
onClick: st((i) => c.click(u.value, t.value), ["stop"])
|
|
1114
1111
|
}), {
|
|
1115
|
-
default:
|
|
1116
|
-
|
|
1112
|
+
default: g(() => [
|
|
1113
|
+
ge(pe(c == null ? void 0 : c.label), 1)
|
|
1117
1114
|
]),
|
|
1118
1115
|
_: 2
|
|
1119
1116
|
}, 1040, ["onClick"])
|
|
@@ -1127,11 +1124,11 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1127
1124
|
}) : p(d.$slots, "default", { key: 1 }, () => {
|
|
1128
1125
|
var k, $, b;
|
|
1129
1126
|
return [
|
|
1130
|
-
(
|
|
1127
|
+
(s(!0), B(W, null, U(V.value, (c, i) => (s(), S(y, x({ ref_for: !0 }, { ...t.value.form.cols, ...c.col }, {
|
|
1131
1128
|
key: i,
|
|
1132
1129
|
style: { width: "100%" }
|
|
1133
1130
|
}), {
|
|
1134
|
-
default:
|
|
1131
|
+
default: g(() => {
|
|
1135
1132
|
var w;
|
|
1136
1133
|
return [
|
|
1137
1134
|
G(I, x({
|
|
@@ -1140,35 +1137,35 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1140
1137
|
rules: E(c),
|
|
1141
1138
|
ref_for: !0
|
|
1142
1139
|
}, { ...(w = t.value) == null ? void 0 : w.formItems, ...c == null ? void 0 : c.formItem }, { style: { width: "100%" } }), {
|
|
1143
|
-
label:
|
|
1140
|
+
label: g((M) => [
|
|
1144
1141
|
p(d.$slots, `f-${i}-label`, {
|
|
1145
|
-
data:
|
|
1142
|
+
data: M,
|
|
1146
1143
|
item: c,
|
|
1147
1144
|
model: t.value
|
|
1148
1145
|
}, () => [
|
|
1149
|
-
|
|
1146
|
+
ge(pe(c.label), 1)
|
|
1150
1147
|
])
|
|
1151
1148
|
]),
|
|
1152
|
-
default:
|
|
1149
|
+
default: g(() => [
|
|
1153
1150
|
p(d.$slots, "f-" + i, {
|
|
1154
1151
|
item: c,
|
|
1155
1152
|
model: t.value
|
|
1156
1153
|
}, () => [
|
|
1157
1154
|
G(We, {
|
|
1158
1155
|
modelValue: t.value[i].value,
|
|
1159
|
-
"onUpdate:modelValue": (
|
|
1156
|
+
"onUpdate:modelValue": (M) => t.value[i].value = M,
|
|
1160
1157
|
item: _(c, !0),
|
|
1161
1158
|
ctrlKey: i,
|
|
1162
|
-
ctrlType:
|
|
1159
|
+
ctrlType: z(c),
|
|
1163
1160
|
model: t.value,
|
|
1164
1161
|
class: "g-ctrl-container",
|
|
1165
1162
|
t: "f",
|
|
1166
1163
|
formInfo: u.value
|
|
1167
|
-
},
|
|
1168
|
-
U(d.$slots, (
|
|
1169
|
-
name:
|
|
1170
|
-
fn:
|
|
1171
|
-
p(d.$slots,
|
|
1164
|
+
}, de({ _: 2 }, [
|
|
1165
|
+
U(d.$slots, (M, P) => ({
|
|
1166
|
+
name: P,
|
|
1167
|
+
fn: g((X) => [
|
|
1168
|
+
p(d.$slots, P, {
|
|
1172
1169
|
data: X,
|
|
1173
1170
|
item: c,
|
|
1174
1171
|
model: t.value
|
|
@@ -1184,19 +1181,19 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1184
1181
|
}),
|
|
1185
1182
|
_: 2
|
|
1186
1183
|
}, 1040))), 128)),
|
|
1187
|
-
(b = ($ = (k = t.value) == null ? void 0 : k.form) == null ? void 0 : $.footer) != null && b.hidden ?
|
|
1184
|
+
(b = ($ = (k = t.value) == null ? void 0 : k.form) == null ? void 0 : $.footer) != null && b.hidden ? ve("", !0) : p(d.$slots, "f-footer", { key: 0 }, () => [
|
|
1188
1185
|
Q("div", {
|
|
1189
|
-
style:
|
|
1186
|
+
style: Fe(t.value.form.footer.style)
|
|
1190
1187
|
}, [
|
|
1191
1188
|
p(d.$slots, "f-footer-left"),
|
|
1192
|
-
(
|
|
1189
|
+
(s(!0), B(W, null, U(ee.value, (c) => (s(), B(W, null, [
|
|
1193
1190
|
p(d.$slots, c.name + "-left"),
|
|
1194
1191
|
p(d.$slots, c.name, {}, () => [
|
|
1195
1192
|
G(te, x({ ref_for: !0 }, c.info, {
|
|
1196
1193
|
onClick: st((i) => c.click(u.value, t.value), ["stop"])
|
|
1197
1194
|
}), {
|
|
1198
|
-
default:
|
|
1199
|
-
|
|
1195
|
+
default: g(() => [
|
|
1196
|
+
ge(pe(c == null ? void 0 : c.label), 1)
|
|
1200
1197
|
]),
|
|
1201
1198
|
_: 2
|
|
1202
1199
|
}, 1040, ["onClick"])
|
|
@@ -1229,8 +1226,8 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1229
1226
|
};
|
|
1230
1227
|
return (T, q) => {
|
|
1231
1228
|
const E = R("el-form-item");
|
|
1232
|
-
return
|
|
1233
|
-
key:
|
|
1229
|
+
return s(!0), B(W, null, U(a(t.more), (_, z) => p(T.$slots, `q-${z}`, {
|
|
1230
|
+
key: z,
|
|
1234
1231
|
item: _,
|
|
1235
1232
|
model: f.value
|
|
1236
1233
|
}, () => [
|
|
@@ -1238,27 +1235,27 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1238
1235
|
label: _.label,
|
|
1239
1236
|
ref_for: !0
|
|
1240
1237
|
}, { ...f.value.queryItems, ...v(_) }), {
|
|
1241
|
-
label:
|
|
1242
|
-
p(T.$slots, `q-${
|
|
1238
|
+
label: g(() => [
|
|
1239
|
+
p(T.$slots, `q-${z}-label`, {
|
|
1243
1240
|
item: _,
|
|
1244
1241
|
model: f.value
|
|
1245
1242
|
})
|
|
1246
1243
|
]),
|
|
1247
|
-
default:
|
|
1244
|
+
default: g(() => [
|
|
1248
1245
|
G(We, {
|
|
1249
|
-
modelValue: e.value[
|
|
1250
|
-
"onUpdate:modelValue": (
|
|
1246
|
+
modelValue: e.value[z],
|
|
1247
|
+
"onUpdate:modelValue": (ne) => e.value[z] = ne,
|
|
1251
1248
|
item: { ..._ == null ? void 0 : _.editor, ...v(_) },
|
|
1252
|
-
ctrlKey:
|
|
1249
|
+
ctrlKey: z,
|
|
1253
1250
|
ctrlType: F(_),
|
|
1254
1251
|
model: f.value,
|
|
1255
1252
|
t: "q",
|
|
1256
1253
|
formInfo: e.value
|
|
1257
|
-
},
|
|
1258
|
-
U(Object.keys(T.$slots), (
|
|
1259
|
-
name:
|
|
1260
|
-
fn:
|
|
1261
|
-
p(T.$slots,
|
|
1254
|
+
}, de({ _: 2 }, [
|
|
1255
|
+
U(Object.keys(T.$slots), (ne) => ({
|
|
1256
|
+
name: ne,
|
|
1257
|
+
fn: g((V) => [
|
|
1258
|
+
p(T.$slots, ne, {
|
|
1262
1259
|
data: V,
|
|
1263
1260
|
item: _,
|
|
1264
1261
|
model: f.value
|
|
@@ -1288,9 +1285,9 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1288
1285
|
},
|
|
1289
1286
|
emits: /* @__PURE__ */ Se(["query", "reset"], ["update:modelValue"]),
|
|
1290
1287
|
setup(m, { emit: f }) {
|
|
1291
|
-
const t = Oe(m, "modelValue"), e = f, a = lt("options"), v =
|
|
1288
|
+
const t = Oe(m, "modelValue"), e = f, a = lt("options"), v = ye(!1);
|
|
1292
1289
|
let F = Object.fromEntries(Object.entries(t.value).filter((u) => u[1].search).map(([u, A]) => [u, A.value]));
|
|
1293
|
-
const T =
|
|
1290
|
+
const T = ye(F), q = {
|
|
1294
1291
|
hidden: !1,
|
|
1295
1292
|
type: "hidden",
|
|
1296
1293
|
labelWidth: 100,
|
|
@@ -1316,7 +1313,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1316
1313
|
hidden: !1,
|
|
1317
1314
|
plain: !1,
|
|
1318
1315
|
click: () => {
|
|
1319
|
-
T.value =
|
|
1316
|
+
T.value = ye(F), e("reset", T.value);
|
|
1320
1317
|
}
|
|
1321
1318
|
},
|
|
1322
1319
|
query: {
|
|
@@ -1336,7 +1333,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1336
1333
|
}
|
|
1337
1334
|
}
|
|
1338
1335
|
};
|
|
1339
|
-
t.value.query =
|
|
1336
|
+
t.value.query = $e(q, a == null ? void 0 : a.query, t.value.query);
|
|
1340
1337
|
const E = {
|
|
1341
1338
|
2: {
|
|
1342
1339
|
title: "更多查询",
|
|
@@ -1354,7 +1351,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1354
1351
|
trigger: "click"
|
|
1355
1352
|
}
|
|
1356
1353
|
};
|
|
1357
|
-
t.value.query.more.dialog =
|
|
1354
|
+
t.value.query.more.dialog = $e(
|
|
1358
1355
|
E[t.value.query.more.mode] || {},
|
|
1359
1356
|
t.value.query.more.dialog
|
|
1360
1357
|
);
|
|
@@ -1365,26 +1362,26 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1365
1362
|
width: "280px"
|
|
1366
1363
|
}
|
|
1367
1364
|
};
|
|
1368
|
-
t.value.queryItems =
|
|
1369
|
-
const
|
|
1370
|
-
const K = Object.keys(u.slots).filter((ee) => ee !== "default").reduce((ee,
|
|
1365
|
+
t.value.queryItems = $e(_, a == null ? void 0 : a.queryItems, t.value.queryItems);
|
|
1366
|
+
const z = (u, A) => {
|
|
1367
|
+
const K = Object.keys(u.slots).filter((ee) => ee !== "default").reduce((ee, se) => (ee[se] = (ce) => u.slots[se]({
|
|
1371
1368
|
model: t.value
|
|
1372
1369
|
// 传递当前模型数据
|
|
1373
1370
|
}), ee), {});
|
|
1374
|
-
return
|
|
1371
|
+
return De(it, {
|
|
1375
1372
|
modelValue: t.value,
|
|
1376
1373
|
"onUpdate:modelValue": (ee) => t.value = ee,
|
|
1377
1374
|
info: T.value,
|
|
1378
1375
|
"onUpdate:info": (ee) => T.value = ee,
|
|
1379
1376
|
more: A
|
|
1380
1377
|
}, K);
|
|
1381
|
-
},
|
|
1382
|
-
var K, ee,
|
|
1378
|
+
}, ne = mt(), V = () => {
|
|
1379
|
+
var K, ee, se, ce, ie, re, d, D, I;
|
|
1383
1380
|
const u = [
|
|
1384
1381
|
{
|
|
1385
1382
|
key: "query",
|
|
1386
|
-
hidden: (
|
|
1387
|
-
component:
|
|
1383
|
+
hidden: (se = (ee = (K = t.value) == null ? void 0 : K.query) == null ? void 0 : ee.query) == null ? void 0 : se.hidden,
|
|
1384
|
+
component: he,
|
|
1388
1385
|
props: {
|
|
1389
1386
|
...t.value.query.query,
|
|
1390
1387
|
onClick: t.value.query.query.click
|
|
@@ -1394,8 +1391,8 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1394
1391
|
},
|
|
1395
1392
|
{
|
|
1396
1393
|
key: "reset",
|
|
1397
|
-
hidden: (
|
|
1398
|
-
component:
|
|
1394
|
+
hidden: (re = (ie = (ce = t.value) == null ? void 0 : ce.query) == null ? void 0 : ie.reset) == null ? void 0 : re.hidden,
|
|
1395
|
+
component: he,
|
|
1399
1396
|
props: {
|
|
1400
1397
|
...t.value.query.reset,
|
|
1401
1398
|
onClick: t.value.query.reset.click
|
|
@@ -1406,61 +1403,61 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1406
1403
|
{
|
|
1407
1404
|
key: "more",
|
|
1408
1405
|
hidden: (I = (D = (d = t.value) == null ? void 0 : d.query) == null ? void 0 : D.more) == null ? void 0 : I.hidden,
|
|
1409
|
-
component: t.value.query.more.mode === 3 ? Xe :
|
|
1406
|
+
component: t.value.query.more.mode === 3 ? Xe : he,
|
|
1410
1407
|
props: t.value.query.more.mode === 3 ? { ...t.value.query.more.dialog } : {
|
|
1411
1408
|
...t.value.query.more,
|
|
1412
1409
|
onClick: t.value.query.more.click
|
|
1413
1410
|
},
|
|
1414
1411
|
label: t.value.query.more.label,
|
|
1415
1412
|
sort: t.value.query.more.sort || 0,
|
|
1416
|
-
content: t.value.query.more.mode === 3 ? () =>
|
|
1413
|
+
content: t.value.query.more.mode === 3 ? () => De(Pe, {
|
|
1417
1414
|
class: "query-form",
|
|
1418
|
-
...
|
|
1419
|
-
}, () =>
|
|
1415
|
+
..._e(t.value.query, (y) => !["query", "more", "reset"].includes(y))
|
|
1416
|
+
}, () => z({ slots: ne }, !0)) : null
|
|
1420
1417
|
}
|
|
1421
1418
|
];
|
|
1422
|
-
return u.sort((y, L) => y.sort - L.sort), u.filter((y) => !y.hidden).map((y) => y.key === "more" && y.component === Xe ?
|
|
1423
|
-
reference: () =>
|
|
1419
|
+
return u.sort((y, L) => y.sort - L.sort), u.filter((y) => !y.hidden).map((y) => y.key === "more" && y.component === Xe ? De(Xe, y.props, {
|
|
1420
|
+
reference: () => De(he, t.value.query.more, () => y.label),
|
|
1424
1421
|
default: y.content
|
|
1425
|
-
}) : (y.props.slot = "query-" + y.key, y.label ?
|
|
1422
|
+
}) : (y.props.slot = "query-" + y.key, y.label ? De(y.component, y.props, () => y.label) : De(y.component, y.props)));
|
|
1426
1423
|
};
|
|
1427
1424
|
return (u, A) => {
|
|
1428
|
-
var
|
|
1425
|
+
var se, ce, ie, re, d, D, I, y, L, O, te, be, k, $, b, c, i;
|
|
1429
1426
|
const K = R("el-form-item"), ee = R("el-drawer");
|
|
1430
|
-
return
|
|
1427
|
+
return s(), B("div", {
|
|
1431
1428
|
class: "g-query-container",
|
|
1432
|
-
style:
|
|
1429
|
+
style: Fe((ce = (se = t.value.query) == null ? void 0 : se.container) == null ? void 0 : ce.style)
|
|
1433
1430
|
}, [
|
|
1434
|
-
G(o(Pe), je(Ze(o(
|
|
1435
|
-
default:
|
|
1436
|
-
var w,
|
|
1431
|
+
G(o(Pe), je(Ze(o(_e)(t.value.query, (w) => !["query", "more", "reset", "btns"].includes(w)))), {
|
|
1432
|
+
default: g(() => {
|
|
1433
|
+
var w, M;
|
|
1437
1434
|
return [
|
|
1438
|
-
(
|
|
1439
|
-
((
|
|
1440
|
-
default:
|
|
1441
|
-
var
|
|
1435
|
+
(s(), S(qe(z({ slots: u.$slots }, void 0)))),
|
|
1436
|
+
((M = (w = t.value.query) == null ? void 0 : w.container) == null ? void 0 : M.inline) === !0 ? (s(), S(K, { key: 0 }, {
|
|
1437
|
+
default: g(() => {
|
|
1438
|
+
var P, X, oe, n, H;
|
|
1442
1439
|
return [
|
|
1443
1440
|
Q("div", {
|
|
1444
|
-
style:
|
|
1441
|
+
style: Fe((X = (P = t.value.query) == null ? void 0 : P.btns) == null ? void 0 : X.style)
|
|
1445
1442
|
}, [
|
|
1446
|
-
t.value.query.group ? (
|
|
1447
|
-
default:
|
|
1448
|
-
(
|
|
1449
|
-
(
|
|
1443
|
+
t.value.query.group ? (s(), S(o(ze), { key: 0 }, {
|
|
1444
|
+
default: g(() => [
|
|
1445
|
+
(s(!0), B(W, null, U(V(), (ae) => p(u.$slots, ae.props.slot, {}, () => [
|
|
1446
|
+
(s(), S(qe(ae)))
|
|
1450
1447
|
], !0)), 256)),
|
|
1451
1448
|
p(u.$slots, "q-btns", {}, void 0, !0)
|
|
1452
1449
|
]),
|
|
1453
1450
|
_: 3
|
|
1454
|
-
})) : (
|
|
1455
|
-
(
|
|
1456
|
-
default:
|
|
1457
|
-
(
|
|
1458
|
-
(
|
|
1451
|
+
})) : (s(), B(W, { key: 1 }, [
|
|
1452
|
+
(H = (n = (oe = t.value) == null ? void 0 : oe.query) == null ? void 0 : n.btns) != null && H.group ? (s(), S(o(ze), { key: 0 }, {
|
|
1453
|
+
default: g(() => [
|
|
1454
|
+
(s(!0), B(W, null, U(V(), (ae) => p(u.$slots, ae.props.slot, {}, () => [
|
|
1455
|
+
(s(), S(qe(ae)))
|
|
1459
1456
|
], !0)), 256))
|
|
1460
1457
|
]),
|
|
1461
1458
|
_: 3
|
|
1462
|
-
})) : (
|
|
1463
|
-
(
|
|
1459
|
+
})) : (s(!0), B(W, { key: 1 }, U(V(), (ae) => p(u.$slots, ae.props.slot, {}, () => [
|
|
1460
|
+
(s(), S(qe(ae)))
|
|
1464
1461
|
], !0)), 256)),
|
|
1465
1462
|
p(u.$slots, "q-btns", {}, void 0, !0)
|
|
1466
1463
|
], 64))
|
|
@@ -1468,81 +1465,81 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1468
1465
|
];
|
|
1469
1466
|
}),
|
|
1470
1467
|
_: 3
|
|
1471
|
-
})) :
|
|
1468
|
+
})) : ve("", !0)
|
|
1472
1469
|
];
|
|
1473
1470
|
}),
|
|
1474
1471
|
_: 3
|
|
1475
1472
|
}, 16),
|
|
1476
|
-
((d = (
|
|
1473
|
+
((d = (re = (ie = t.value) == null ? void 0 : ie.query) == null ? void 0 : re.container) == null ? void 0 : d.inline) === !1 ? (s(), B("div", {
|
|
1477
1474
|
key: 0,
|
|
1478
|
-
style:
|
|
1475
|
+
style: Fe((I = (D = t.value.query) == null ? void 0 : D.btns) == null ? void 0 : I.style)
|
|
1479
1476
|
}, [
|
|
1480
|
-
t.value.query.group ? (
|
|
1481
|
-
default:
|
|
1482
|
-
(
|
|
1483
|
-
(
|
|
1477
|
+
t.value.query.group ? (s(), S(o(ze), { key: 0 }, {
|
|
1478
|
+
default: g(() => [
|
|
1479
|
+
(s(!0), B(W, null, U(V(), (w) => p(u.$slots, w.props.slot, {}, () => [
|
|
1480
|
+
(s(), S(qe(w)))
|
|
1484
1481
|
], !0)), 256)),
|
|
1485
1482
|
p(u.$slots, "q-btns", {}, void 0, !0)
|
|
1486
1483
|
]),
|
|
1487
1484
|
_: 3
|
|
1488
|
-
})) : (
|
|
1489
|
-
(L = (y = t.value.query) == null ? void 0 : y.btns) != null && L.group ? (
|
|
1490
|
-
default:
|
|
1491
|
-
(
|
|
1492
|
-
(
|
|
1485
|
+
})) : (s(), B(W, { key: 1 }, [
|
|
1486
|
+
(L = (y = t.value.query) == null ? void 0 : y.btns) != null && L.group ? (s(), S(o(ze), { key: 0 }, {
|
|
1487
|
+
default: g(() => [
|
|
1488
|
+
(s(!0), B(W, null, U(V(), (w) => p(u.$slots, w.props.slot, {}, () => [
|
|
1489
|
+
(s(), S(qe(w)))
|
|
1493
1490
|
], !0)), 256))
|
|
1494
1491
|
]),
|
|
1495
1492
|
_: 3
|
|
1496
|
-
})) : (
|
|
1497
|
-
(
|
|
1493
|
+
})) : (s(!0), B(W, { key: 1 }, U(V(), (w) => p(u.$slots, w.props.slot, {}, () => [
|
|
1494
|
+
(s(), S(qe(w)))
|
|
1498
1495
|
], !0)), 256)),
|
|
1499
1496
|
p(u.$slots, "q-btns", {}, void 0, !0)
|
|
1500
1497
|
], 64))
|
|
1501
|
-
], 4)) :
|
|
1502
|
-
G(
|
|
1498
|
+
], 4)) : ve("", !0),
|
|
1499
|
+
G(Ct, {
|
|
1503
1500
|
duration: 300,
|
|
1504
1501
|
name: "nested"
|
|
1505
1502
|
}, {
|
|
1506
|
-
default:
|
|
1507
|
-
var w,
|
|
1503
|
+
default: g(() => {
|
|
1504
|
+
var w, M, P;
|
|
1508
1505
|
return [
|
|
1509
|
-
v.value && !((
|
|
1506
|
+
v.value && !((P = (M = (w = t.value) == null ? void 0 : w.query) == null ? void 0 : M.more) != null && P.hidden) && t.value.query.more.mode == 1 ? (s(), B("div", Rt, [
|
|
1510
1507
|
Q("div", jt, [
|
|
1511
|
-
t.value.query.more.mode == 1 ?
|
|
1512
|
-
default:
|
|
1513
|
-
(
|
|
1508
|
+
t.value.query.more.mode == 1 ? pt((s(), S(o(Pe), je(x({ key: 0 }, o(_e)(t.value.query, (X) => !["query", "more", "reset"].includes(X)))), {
|
|
1509
|
+
default: g(() => [
|
|
1510
|
+
(s(), S(qe(z({ slots: u.$slots }, !0))))
|
|
1514
1511
|
]),
|
|
1515
1512
|
_: 1
|
|
1516
1513
|
}, 16)), [
|
|
1517
|
-
[
|
|
1518
|
-
]) :
|
|
1514
|
+
[vt, v.value]
|
|
1515
|
+
]) : ve("", !0)
|
|
1519
1516
|
])
|
|
1520
|
-
])) :
|
|
1517
|
+
])) : ve("", !0)
|
|
1521
1518
|
];
|
|
1522
1519
|
}),
|
|
1523
1520
|
_: 1
|
|
1524
1521
|
}),
|
|
1525
|
-
v.value && !((
|
|
1522
|
+
v.value && !((be = (te = (O = t.value) == null ? void 0 : O.query) == null ? void 0 : te.more) != null && be.hidden) && t.value.query.more.mode == 2 ? (s(), S(ee, x({
|
|
1526
1523
|
key: 1,
|
|
1527
1524
|
modelValue: v.value,
|
|
1528
1525
|
"onUpdate:modelValue": A[4] || (A[4] = (w) => v.value = w),
|
|
1529
1526
|
title: "更多查询",
|
|
1530
1527
|
"show-close": !1
|
|
1531
|
-
}, t.value.query.more.dialog),
|
|
1532
|
-
default:
|
|
1533
|
-
G(o(Pe), x(o(
|
|
1534
|
-
default:
|
|
1528
|
+
}, t.value.query.more.dialog), de({
|
|
1529
|
+
default: g(() => [
|
|
1530
|
+
G(o(Pe), x(o(_e)(t.value.query, (w) => !["query", "more", "reset"].includes(w)), { style: { width: "98%" } }), {
|
|
1531
|
+
default: g(() => [
|
|
1535
1532
|
G(it, {
|
|
1536
1533
|
modelValue: t.value,
|
|
1537
1534
|
"onUpdate:modelValue": A[0] || (A[0] = (w) => t.value = w),
|
|
1538
1535
|
info: T.value,
|
|
1539
1536
|
"onUpdate:info": A[1] || (A[1] = (w) => T.value = w),
|
|
1540
1537
|
more: !0
|
|
1541
|
-
},
|
|
1542
|
-
U(u.$slots, (w,
|
|
1543
|
-
name:
|
|
1544
|
-
fn:
|
|
1545
|
-
p(u.$slots,
|
|
1538
|
+
}, de({ _: 2 }, [
|
|
1539
|
+
U(u.$slots, (w, M, P) => ({
|
|
1540
|
+
name: M,
|
|
1541
|
+
fn: g((X) => [
|
|
1542
|
+
p(u.$slots, M, { model: t.value }, void 0, !0)
|
|
1546
1543
|
])
|
|
1547
1544
|
}))
|
|
1548
1545
|
]), 1032, ["modelValue", "info"])
|
|
@@ -1554,21 +1551,21 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1554
1551
|
}, [
|
|
1555
1552
|
(i = (c = (b = ($ = (k = t.value) == null ? void 0 : k.query) == null ? void 0 : $.more) == null ? void 0 : b.dialog) == null ? void 0 : c.footer) != null && i.hidden ? void 0 : {
|
|
1556
1553
|
name: "footer",
|
|
1557
|
-
fn:
|
|
1554
|
+
fn: g(() => [
|
|
1558
1555
|
Q("div", je(Ze(t.value.query.more.dialog.footer)), [
|
|
1559
|
-
G(o(
|
|
1556
|
+
G(o(he), x(t.value.query.query, {
|
|
1560
1557
|
onClick: A[2] || (A[2] = (w) => t.value.query.query.click())
|
|
1561
1558
|
}), {
|
|
1562
|
-
default:
|
|
1563
|
-
|
|
1559
|
+
default: g(() => [
|
|
1560
|
+
ge(pe(t.value.query.query.label), 1)
|
|
1564
1561
|
]),
|
|
1565
1562
|
_: 1
|
|
1566
1563
|
}, 16),
|
|
1567
|
-
G(o(
|
|
1564
|
+
G(o(he), x(t.value.query.reset, {
|
|
1568
1565
|
onClick: A[3] || (A[3] = (w) => t.value.query.reset.click())
|
|
1569
1566
|
}), {
|
|
1570
|
-
default:
|
|
1571
|
-
|
|
1567
|
+
default: g(() => [
|
|
1568
|
+
ge(pe(t.value.query.reset.label), 1)
|
|
1572
1569
|
]),
|
|
1573
1570
|
_: 1
|
|
1574
1571
|
}, 16)
|
|
@@ -1576,7 +1573,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1576
1573
|
]),
|
|
1577
1574
|
key: "0"
|
|
1578
1575
|
}
|
|
1579
|
-
]), 1040, ["modelValue"])) :
|
|
1576
|
+
]), 1040, ["modelValue"])) : ve("", !0)
|
|
1580
1577
|
], 4);
|
|
1581
1578
|
};
|
|
1582
1579
|
}
|
|
@@ -1591,7 +1588,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1591
1588
|
},
|
|
1592
1589
|
emits: ["excel"],
|
|
1593
1590
|
setup(m, { emit: f }) {
|
|
1594
|
-
const t = m, e = f, a =
|
|
1591
|
+
const t = m, e = f, a = ye(t.items), v = () => {
|
|
1595
1592
|
a.value.forEach((q) => {
|
|
1596
1593
|
q.value = !0;
|
|
1597
1594
|
});
|
|
@@ -1614,19 +1611,19 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1614
1611
|
});
|
|
1615
1612
|
};
|
|
1616
1613
|
return Ne(() => {
|
|
1617
|
-
const q = new
|
|
1614
|
+
const q = new ht(document.getElementById("excelSortEl"), {
|
|
1618
1615
|
animation: 150,
|
|
1619
1616
|
onEnd: () => {
|
|
1620
1617
|
let _ = q.toArray();
|
|
1621
1618
|
console.log(_);
|
|
1622
1619
|
}
|
|
1623
1620
|
}), E = q;
|
|
1624
|
-
|
|
1621
|
+
Dt(() => {
|
|
1625
1622
|
E && E.destroy();
|
|
1626
1623
|
});
|
|
1627
1624
|
}), (q, E) => {
|
|
1628
|
-
const _ = R("el-divider"),
|
|
1629
|
-
return
|
|
1625
|
+
const _ = R("el-divider"), z = R("el-alert"), ne = R("el-checkbox"), V = R("el-button");
|
|
1626
|
+
return s(), B("div", Pt, [
|
|
1630
1627
|
Q("div", zt, [
|
|
1631
1628
|
Q("div", Ht, [
|
|
1632
1629
|
Q("a", {
|
|
@@ -1639,7 +1636,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1639
1636
|
style: { cursor: "pointer" }
|
|
1640
1637
|
}, "全不选")
|
|
1641
1638
|
]),
|
|
1642
|
-
G(
|
|
1639
|
+
G(z, {
|
|
1643
1640
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
1644
1641
|
type: "warning",
|
|
1645
1642
|
"show-icon": "",
|
|
@@ -1648,7 +1645,7 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1648
1645
|
}),
|
|
1649
1646
|
E[0] || (E[0] = Q("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
1650
1647
|
Q("div", Yt, [
|
|
1651
|
-
(
|
|
1648
|
+
(s(!0), B(W, null, U(a.value, (u) => (s(), S(ne, {
|
|
1652
1649
|
class: "check-box-hover",
|
|
1653
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" },
|
|
1654
1651
|
"data-id": u.key,
|
|
@@ -1657,9 +1654,9 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1657
1654
|
key: u.key,
|
|
1658
1655
|
title: u.label
|
|
1659
1656
|
}, {
|
|
1660
|
-
default:
|
|
1657
|
+
default: g(() => [
|
|
1661
1658
|
Q("span", {
|
|
1662
|
-
textContent:
|
|
1659
|
+
textContent: pe(u.label),
|
|
1663
1660
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
1664
1661
|
}, null, 8, Wt)
|
|
1665
1662
|
]),
|
|
@@ -1673,8 +1670,8 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1673
1670
|
onClick: T,
|
|
1674
1671
|
disabled: a.value.filter((u) => u.value).length < 1
|
|
1675
1672
|
}, {
|
|
1676
|
-
default:
|
|
1677
|
-
|
|
1673
|
+
default: g(() => [
|
|
1674
|
+
ge(pe(t.commitText), 1)
|
|
1678
1675
|
]),
|
|
1679
1676
|
_: 1
|
|
1680
1677
|
}, 8, ["disabled"])
|
|
@@ -1682,36 +1679,36 @@ const Je = /* @__PURE__ */ xt(At), Bt = {
|
|
|
1682
1679
|
]);
|
|
1683
1680
|
};
|
|
1684
1681
|
}
|
|
1685
|
-
}, Xt = /* @__PURE__ */ Ae(Qt, [["__scopeId", "data-v-51dfb7ef"]]),
|
|
1686
|
-
|
|
1682
|
+
}, Xt = /* @__PURE__ */ Ae(Qt, [["__scopeId", "data-v-51dfb7ef"]]), Ve = new qt("gyc");
|
|
1683
|
+
Ve.version(1).stores({
|
|
1687
1684
|
tableInfo: "++id,[user+page+key],user,page,key,showCol,width,sort",
|
|
1688
1685
|
tableList: "++id,name"
|
|
1689
1686
|
});
|
|
1690
1687
|
async function Re(m, f, t, e = {}) {
|
|
1691
|
-
if (await
|
|
1692
|
-
let v = await
|
|
1693
|
-
return await
|
|
1688
|
+
if (await Ve.tableInfo.where({ user: m, page: f, key: t }).count() > 0) {
|
|
1689
|
+
let v = await Ve.tableInfo.where({ user: m, page: f, key: t }).first();
|
|
1690
|
+
return await Ve.tableInfo.put({ ...v, ...e }), "update success";
|
|
1694
1691
|
} else {
|
|
1695
1692
|
let v = { showCol: !0, width: "auto", sort: 0, ...e };
|
|
1696
|
-
return await
|
|
1693
|
+
return await Ve.tableInfo.add({ user: m, page: f, key: t, ...v }), "add success";
|
|
1697
1694
|
}
|
|
1698
1695
|
}
|
|
1699
1696
|
async function Jt(m, f) {
|
|
1700
|
-
return await
|
|
1697
|
+
return await Ve.tableInfo.where({ user: m, page: f }).toArray();
|
|
1701
1698
|
}
|
|
1702
1699
|
async function Zt(m, f) {
|
|
1703
1700
|
try {
|
|
1704
|
-
const t = await
|
|
1701
|
+
const t = await Ve.tableInfo.where({ user: m, page: f }).delete();
|
|
1705
1702
|
return console.log("删除了" + t + "条数据"), t;
|
|
1706
1703
|
} catch (t) {
|
|
1707
1704
|
throw console.error("删除表格项设置信息时出错:", t), t;
|
|
1708
1705
|
}
|
|
1709
1706
|
}
|
|
1710
1707
|
async function Kt(m) {
|
|
1711
|
-
return await
|
|
1708
|
+
return await Ve.tableList.where({ name: m }).first();
|
|
1712
1709
|
}
|
|
1713
1710
|
async function el(m) {
|
|
1714
|
-
return typeof m == "string" && (m = { name: m }), await
|
|
1711
|
+
return typeof m == "string" && (m = { name: m }), await Ve.tableList.add(m), "add success";
|
|
1715
1712
|
}
|
|
1716
1713
|
const tl = {
|
|
1717
1714
|
style: { margin: "10px" },
|
|
@@ -1732,13 +1729,13 @@ const tl = {
|
|
|
1732
1729
|
}),
|
|
1733
1730
|
emits: ["update:modelValue"],
|
|
1734
1731
|
setup(m) {
|
|
1735
|
-
const f = m, t =
|
|
1732
|
+
const f = m, t = ye([]), e = Oe(m, "modelValue"), a = async (E, _) => {
|
|
1736
1733
|
E ? e.value[_].showCol = !0 : e.value[_].showCol = !1;
|
|
1737
1734
|
try {
|
|
1738
|
-
const
|
|
1739
|
-
console.log(
|
|
1740
|
-
} catch (
|
|
1741
|
-
console.error("列显示状态保存信息时出错:",
|
|
1735
|
+
const z = await Re(e.value.table.user, f.name, _, { showCol: E });
|
|
1736
|
+
console.log(z);
|
|
1737
|
+
} catch (z) {
|
|
1738
|
+
console.error("列显示状态保存信息时出错:", z), we({
|
|
1742
1739
|
type: "error",
|
|
1743
1740
|
message: "列显示状态保存信息失败!"
|
|
1744
1741
|
});
|
|
@@ -1746,20 +1743,20 @@ const tl = {
|
|
|
1746
1743
|
}, v = () => {
|
|
1747
1744
|
const E = document.getElementById("cols");
|
|
1748
1745
|
if (E) {
|
|
1749
|
-
let _ =
|
|
1746
|
+
let _ = ht.create(E, {
|
|
1750
1747
|
animation: 150,
|
|
1751
1748
|
filter: ".filtered",
|
|
1752
1749
|
//
|
|
1753
1750
|
sort: !0,
|
|
1754
1751
|
onEnd: () => {
|
|
1755
|
-
_.toArray().forEach(async (
|
|
1756
|
-
e.value[
|
|
1757
|
-
let u = e.value[
|
|
1752
|
+
_.toArray().forEach(async (ne, V) => {
|
|
1753
|
+
e.value[ne].sort = V;
|
|
1754
|
+
let u = e.value[ne].width || "auto";
|
|
1758
1755
|
try {
|
|
1759
|
-
const A = await Re(e.value.table.user, f.name,
|
|
1756
|
+
const A = await Re(e.value.table.user, f.name, ne, { sort: V, width: u });
|
|
1760
1757
|
console.log(A);
|
|
1761
1758
|
} catch (A) {
|
|
1762
|
-
console.error("列排序和宽度保存信息时出错:", A),
|
|
1759
|
+
console.error("列排序和宽度保存信息时出错:", A), we({
|
|
1763
1760
|
type: "error",
|
|
1764
1761
|
message: "列排序和宽度保存信息失败!"
|
|
1765
1762
|
});
|
|
@@ -1780,7 +1777,7 @@ const tl = {
|
|
|
1780
1777
|
console.log(_);
|
|
1781
1778
|
}
|
|
1782
1779
|
} catch (E) {
|
|
1783
|
-
console.error("全选列保存信息时出错:", E),
|
|
1780
|
+
console.error("全选列保存信息时出错:", E), we({
|
|
1784
1781
|
type: "error",
|
|
1785
1782
|
message: "全选列保存信息失败!"
|
|
1786
1783
|
});
|
|
@@ -1790,15 +1787,15 @@ const tl = {
|
|
|
1790
1787
|
const E = t.value.filter((_) => !_.alwaysShow);
|
|
1791
1788
|
for (const _ of E) {
|
|
1792
1789
|
_.showCol = !1, e.value[_.value].showCol = !1;
|
|
1793
|
-
const
|
|
1790
|
+
const z = await Re(e.value.table.user, f.name, _.value, {
|
|
1794
1791
|
showCol: !1,
|
|
1795
1792
|
width: _.width,
|
|
1796
1793
|
sort: _.sort
|
|
1797
1794
|
});
|
|
1798
|
-
console.log(
|
|
1795
|
+
console.log(z);
|
|
1799
1796
|
}
|
|
1800
1797
|
} catch (E) {
|
|
1801
|
-
console.error("清除列保存信息时出错:", E),
|
|
1798
|
+
console.error("清除列保存信息时出错:", E), we({
|
|
1802
1799
|
type: "error",
|
|
1803
1800
|
message: "清除列保存信息失败!"
|
|
1804
1801
|
});
|
|
@@ -1812,7 +1809,7 @@ const tl = {
|
|
|
1812
1809
|
Zt(e.value.table.user, f.name).then((E) => {
|
|
1813
1810
|
console.log(E), window.location.reload();
|
|
1814
1811
|
}).catch((E) => {
|
|
1815
|
-
console.error("复位操作出错:", E),
|
|
1812
|
+
console.error("复位操作出错:", E), we({
|
|
1816
1813
|
type: "info",
|
|
1817
1814
|
message: "复位失败!"
|
|
1818
1815
|
});
|
|
@@ -1829,16 +1826,16 @@ const tl = {
|
|
|
1829
1826
|
width: _.width || "auto"
|
|
1830
1827
|
})).sort((E, _) => E.sort - _.sort), v();
|
|
1831
1828
|
}), (E, _) => {
|
|
1832
|
-
const
|
|
1833
|
-
return
|
|
1829
|
+
const z = R("el-divider"), ne = R("el-alert"), V = R("el-checkbox");
|
|
1830
|
+
return s(), B("div", null, [
|
|
1834
1831
|
Q("div", tl, [
|
|
1835
1832
|
Q("a", { onClick: F }, "全选"),
|
|
1836
|
-
G(
|
|
1833
|
+
G(z, { direction: "vertical" }),
|
|
1837
1834
|
Q("a", { onClick: T }, "全不选"),
|
|
1838
|
-
G(
|
|
1835
|
+
G(z, { direction: "vertical" }),
|
|
1839
1836
|
Q("a", { onClick: q }, "复位")
|
|
1840
1837
|
]),
|
|
1841
|
-
G(
|
|
1838
|
+
G(ne, {
|
|
1842
1839
|
title: "拖动表格列标题可以改变表格列显示顺序 !",
|
|
1843
1840
|
type: "warning",
|
|
1844
1841
|
"show-icon": "",
|
|
@@ -1847,11 +1844,11 @@ const tl = {
|
|
|
1847
1844
|
}),
|
|
1848
1845
|
Q("div", null, [
|
|
1849
1846
|
Q("div", ll, [
|
|
1850
|
-
(
|
|
1847
|
+
(s(!0), B(W, null, U(t.value, (u) => (s(), S(V, {
|
|
1851
1848
|
modelValue: u.showCol,
|
|
1852
1849
|
"onUpdate:modelValue": (A) => u.showCol = A,
|
|
1853
1850
|
"data-id": u.value,
|
|
1854
|
-
class:
|
|
1851
|
+
class: yt(["check-box-hover", u.value == "control" ? "filtered" : ""]),
|
|
1855
1852
|
onChange: (A) => a(A, u.value),
|
|
1856
1853
|
style: { width: "125px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "2px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
1857
1854
|
value: u.value,
|
|
@@ -1859,9 +1856,9 @@ const tl = {
|
|
|
1859
1856
|
disabled: u.alwaysShow,
|
|
1860
1857
|
key: u.value
|
|
1861
1858
|
}, {
|
|
1862
|
-
default:
|
|
1859
|
+
default: g(() => [
|
|
1863
1860
|
Q("span", {
|
|
1864
|
-
textContent:
|
|
1861
|
+
textContent: pe(u.label),
|
|
1865
1862
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
1866
1863
|
}, null, 8, ol)
|
|
1867
1864
|
]),
|
|
@@ -1892,8 +1889,8 @@ const tl = {
|
|
|
1892
1889
|
}),
|
|
1893
1890
|
emits: /* @__PURE__ */ Se(["load", "open", "delete", "submit", "reset", "download", "row-save"], ["update:modelValue"]),
|
|
1894
1891
|
setup(m, { emit: f }) {
|
|
1895
|
-
var oe,
|
|
1896
|
-
const t = f, e = Oe(m, "modelValue"), a = lt("options"), v =
|
|
1892
|
+
var oe, n, H, ae, ke, Te, Ce;
|
|
1893
|
+
const t = f, e = Oe(m, "modelValue"), a = lt("options"), v = ye({}), F = ye(!1), T = ye(!1), q = ["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"], E = ye([]), _ = m, z = {
|
|
1897
1894
|
data: [],
|
|
1898
1895
|
border: !0,
|
|
1899
1896
|
stripe: !0,
|
|
@@ -1903,27 +1900,27 @@ const tl = {
|
|
|
1903
1900
|
load: () => {
|
|
1904
1901
|
let { currentPage: l, pageSize: r } = e.value.table.page;
|
|
1905
1902
|
try {
|
|
1906
|
-
t("load", { currentPage: l, pageSize: r, ...v.value }, (
|
|
1907
|
-
if (!Array.isArray(
|
|
1908
|
-
console.error("从 load 事件回调中接收到的数据不是数组格式。"),
|
|
1903
|
+
t("load", { currentPage: l, pageSize: r, ...v.value }, (h, j) => {
|
|
1904
|
+
if (!Array.isArray(h)) {
|
|
1905
|
+
console.error("从 load 事件回调中接收到的数据不是数组格式。"), we.error("数据加载失败,请检查数据格式。");
|
|
1909
1906
|
return;
|
|
1910
1907
|
}
|
|
1911
1908
|
if (typeof j != "number") {
|
|
1912
|
-
console.error("从 load 事件回调中接收到的 total 不是数字格式。"),
|
|
1909
|
+
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), we.error("数据加载失败,请检查数据格式。");
|
|
1913
1910
|
return;
|
|
1914
1911
|
}
|
|
1915
|
-
e.value.table.data =
|
|
1912
|
+
e.value.table.data = h, e.value.table.page.total = j, P();
|
|
1916
1913
|
});
|
|
1917
|
-
} catch (
|
|
1918
|
-
console.error("触发 load 事件时出现错误:",
|
|
1914
|
+
} catch (h) {
|
|
1915
|
+
console.error("触发 load 事件时出现错误:", h), we.error("数据加载时出现错误,请稍后重试。");
|
|
1919
1916
|
}
|
|
1920
1917
|
},
|
|
1921
|
-
onHeaderDragend: (l, r,
|
|
1918
|
+
onHeaderDragend: (l, r, h) => {
|
|
1922
1919
|
var j;
|
|
1923
|
-
Re((j = e.value.table) == null ? void 0 : j.user, _.name,
|
|
1920
|
+
Re((j = e.value.table) == null ? void 0 : j.user, _.name, h.property, { width: l });
|
|
1924
1921
|
},
|
|
1925
|
-
onRowDblclick: (l, r,
|
|
1926
|
-
e.value.table.dblclickType == "edit" ? d(l, r,
|
|
1922
|
+
onRowDblclick: (l, r, h) => {
|
|
1923
|
+
e.value.table.dblclickType == "edit" ? d(l, r, h, e) : e.value.table.dblclickType == "view" && I(l, r, h, e);
|
|
1927
1924
|
},
|
|
1928
1925
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
1929
1926
|
page: {
|
|
@@ -1942,17 +1939,17 @@ const tl = {
|
|
|
1942
1939
|
},
|
|
1943
1940
|
dblclickType: "edit"
|
|
1944
1941
|
};
|
|
1945
|
-
e.value.table =
|
|
1946
|
-
|
|
1942
|
+
e.value.table = $e(
|
|
1943
|
+
z,
|
|
1947
1944
|
a == null ? void 0 : a.table,
|
|
1948
1945
|
e.value.table
|
|
1949
1946
|
);
|
|
1950
|
-
const
|
|
1947
|
+
const ne = {
|
|
1951
1948
|
type: "control",
|
|
1952
1949
|
label: "操作",
|
|
1953
1950
|
width: 250,
|
|
1954
1951
|
fixed: "right",
|
|
1955
|
-
style: { ...(
|
|
1952
|
+
style: { ...(n = (oe = e.value) == null ? void 0 : oe.control) == null ? void 0 : n.style },
|
|
1956
1953
|
add: {
|
|
1957
1954
|
label: "新增",
|
|
1958
1955
|
text: !1,
|
|
@@ -1966,20 +1963,20 @@ const tl = {
|
|
|
1966
1963
|
text: !0,
|
|
1967
1964
|
type: "success",
|
|
1968
1965
|
mode: "dialog",
|
|
1969
|
-
auth: (l, r,
|
|
1966
|
+
auth: (l, r, h) => !1
|
|
1970
1967
|
},
|
|
1971
1968
|
edit: {
|
|
1972
1969
|
label: "编辑",
|
|
1973
1970
|
text: !0,
|
|
1974
1971
|
type: "primary",
|
|
1975
1972
|
mode: "dialog",
|
|
1976
|
-
auth: (l, r,
|
|
1973
|
+
auth: (l, r, h) => !0
|
|
1977
1974
|
},
|
|
1978
1975
|
delete: {
|
|
1979
1976
|
text: !0,
|
|
1980
1977
|
label: "删除",
|
|
1981
1978
|
type: "danger",
|
|
1982
|
-
auth: (l, r,
|
|
1979
|
+
auth: (l, r, h) => !0,
|
|
1983
1980
|
dialog: {
|
|
1984
1981
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
1985
1982
|
title: "提示",
|
|
@@ -2009,21 +2006,21 @@ const tl = {
|
|
|
2009
2006
|
auth: () => !1
|
|
2010
2007
|
}
|
|
2011
2008
|
};
|
|
2012
|
-
e.value.control =
|
|
2013
|
-
|
|
2009
|
+
e.value.control = $e(
|
|
2010
|
+
ne,
|
|
2014
2011
|
a == null ? void 0 : a.control,
|
|
2015
|
-
(
|
|
2012
|
+
(H = e.value) == null ? void 0 : H.control
|
|
2016
2013
|
);
|
|
2017
2014
|
const V = {
|
|
2018
2015
|
type: "hidden",
|
|
2019
2016
|
minWidth: 120,
|
|
2020
2017
|
align: "center",
|
|
2021
|
-
formatter: (l, r,
|
|
2018
|
+
formatter: (l, r, h, j) => h
|
|
2022
2019
|
};
|
|
2023
|
-
e.value.tableColumns =
|
|
2020
|
+
e.value.tableColumns = $e(
|
|
2024
2021
|
V,
|
|
2025
2022
|
a == null ? void 0 : a.tableColumns,
|
|
2026
|
-
(
|
|
2023
|
+
(ae = e.value) == null ? void 0 : ae.tableColumns
|
|
2027
2024
|
);
|
|
2028
2025
|
const u = {
|
|
2029
2026
|
type: "hidden",
|
|
@@ -2031,10 +2028,10 @@ const tl = {
|
|
|
2031
2028
|
footer: { hidden: !1 },
|
|
2032
2029
|
modalState: void 0
|
|
2033
2030
|
};
|
|
2034
|
-
e.value.form =
|
|
2031
|
+
e.value.form = $e(
|
|
2035
2032
|
u,
|
|
2036
2033
|
a == null ? void 0 : a.form,
|
|
2037
|
-
(
|
|
2034
|
+
(ke = e.value) == null ? void 0 : ke.form
|
|
2038
2035
|
);
|
|
2039
2036
|
const A = {
|
|
2040
2037
|
type: "hidden",
|
|
@@ -2043,10 +2040,10 @@ const tl = {
|
|
|
2043
2040
|
width: "100%"
|
|
2044
2041
|
}
|
|
2045
2042
|
};
|
|
2046
|
-
e.value.formItems =
|
|
2043
|
+
e.value.formItems = $e(
|
|
2047
2044
|
A,
|
|
2048
2045
|
a == null ? void 0 : a.formItems,
|
|
2049
|
-
(
|
|
2046
|
+
(Te = e == null ? void 0 : e.value) == null ? void 0 : Te.formItems
|
|
2050
2047
|
);
|
|
2051
2048
|
const K = {
|
|
2052
2049
|
title: "编辑",
|
|
@@ -2056,68 +2053,68 @@ const tl = {
|
|
|
2056
2053
|
size: 700,
|
|
2057
2054
|
fullScreen: !1
|
|
2058
2055
|
};
|
|
2059
|
-
e.value.dialog =
|
|
2056
|
+
e.value.dialog = $e(
|
|
2060
2057
|
K,
|
|
2061
2058
|
a == null ? void 0 : a.dialog,
|
|
2062
|
-
(
|
|
2059
|
+
(Ce = e.value) == null ? void 0 : Ce.dialog
|
|
2063
2060
|
);
|
|
2064
|
-
const ee = Object.fromEntries(Object.entries(
|
|
2065
|
-
let
|
|
2066
|
-
if (l.decimals && !isNaN(r) && (typeof l.decimals == "number" ?
|
|
2061
|
+
const ee = Object.fromEntries(Object.entries(_e(e.value, (l, r) => r.type != "control" && r.editor !== !1 && r.type != "hidden")).map(([l, r]) => [l, r.value])), se = (l, r) => {
|
|
2062
|
+
let h = r;
|
|
2063
|
+
if (l.decimals && !isNaN(r) && (typeof l.decimals == "number" ? h = parseFloat(h).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? h = parseFloat(h).toFixed(l.decimals.num) : h = parseFloat(parseFloat(h).toFixed(l.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && Je(r).isValid()) {
|
|
2067
2064
|
const J = {
|
|
2068
2065
|
date: "YYYY-MM-DD",
|
|
2069
2066
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2070
2067
|
time: "HH:mm:ss"
|
|
2071
2068
|
};
|
|
2072
|
-
|
|
2069
|
+
h = l.format ? Je(h).format(l.format) : Je(h).format(J[l.type]);
|
|
2073
2070
|
}
|
|
2074
|
-
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130,
|
|
2075
|
-
},
|
|
2071
|
+
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, h = `<span title="${tt(parseFloat(h))}">${Sl(parseFloat(h))}</span>`), l.prefix && h && (h = `<span>${l.prefix}${h}</span>`), l.suffix && h && (h = `${h}<span>${l.suffix}</span>`), h;
|
|
2072
|
+
}, ce = (l) => {
|
|
2076
2073
|
v.value = l.value;
|
|
2077
|
-
},
|
|
2074
|
+
}, ie = (l) => {
|
|
2078
2075
|
console.log(l), v.value = l, e.value.table.load();
|
|
2079
|
-
},
|
|
2076
|
+
}, re = (l) => {
|
|
2080
2077
|
var r;
|
|
2081
|
-
e.value.form.modalState = "add", (r = e.value.control.add) != null && r.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(ee), T.value = !0, t("open", ee, T.value, "row-add")) : (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(ee).forEach((
|
|
2082
|
-
e.value[
|
|
2078
|
+
e.value.form.modalState = "add", (r = e.value.control.add) != null && r.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(ee), T.value = !0, t("open", ee, T.value, "row-add")) : (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(ee).forEach((h) => {
|
|
2079
|
+
e.value[h] && (e.value[h].value = ee[h]);
|
|
2083
2080
|
}), F.value = !0, t("open", l, "add"));
|
|
2084
|
-
}, d = (l, r,
|
|
2081
|
+
}, d = (l, r, h, j) => {
|
|
2085
2082
|
var J;
|
|
2086
|
-
e.value.form.modalState = "edit", (J = e.value.control.edit) != null && J.click ? e.value.control.edit.click(l, r,
|
|
2083
|
+
e.value.form.modalState = "edit", (J = e.value.control.edit) != null && J.click ? e.value.control.edit.click(l, r, h, j) : (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(l).forEach((Z) => {
|
|
2087
2084
|
e.value[Z] && (e.value[Z].value = l[Z]);
|
|
2088
|
-
}), F.value = !0, t("open", j, "edit", l, r,
|
|
2089
|
-
}, D = (l, r,
|
|
2085
|
+
}), F.value = !0, t("open", j, "edit", l, r, h));
|
|
2086
|
+
}, D = (l, r, h, j) => {
|
|
2090
2087
|
var J;
|
|
2091
2088
|
if ((J = e.value.control.delete) != null && J.click)
|
|
2092
|
-
e.value.control.delete.click(l, r,
|
|
2089
|
+
e.value.control.delete.click(l, r, h, j);
|
|
2093
2090
|
else {
|
|
2094
|
-
let { message: Z, title:
|
|
2095
|
-
ft.confirm(Z,
|
|
2096
|
-
t("delete", { row: l, column: r, $index:
|
|
2097
|
-
Le && (e.value.table.data.splice(
|
|
2091
|
+
let { message: Z, title: Ee, options: Me } = e.value.control.delete.dialog;
|
|
2092
|
+
ft.confirm(Z, Ee, Me).then(() => {
|
|
2093
|
+
t("delete", { row: l, column: r, $index: h }, (Le) => {
|
|
2094
|
+
Le && (e.value.table.data.splice(h, 1), e.value.table.page.total--);
|
|
2098
2095
|
});
|
|
2099
2096
|
}).catch(() => {
|
|
2100
2097
|
});
|
|
2101
2098
|
}
|
|
2102
|
-
}, I = (l, r,
|
|
2099
|
+
}, I = (l, r, h, j) => {
|
|
2103
2100
|
var J;
|
|
2104
|
-
e.value.form.modalState = void 0, (J = e.value.control.view) != null && J.click ? e.value.control.view.click(l, r,
|
|
2101
|
+
e.value.form.modalState = void 0, (J = e.value.control.view) != null && J.click ? e.value.control.view.click(l, r, h, j) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((Z) => {
|
|
2105
2102
|
e.value[Z] && (e.value[Z].value = l[Z]);
|
|
2106
|
-
}), F.value = !0, t("open", j, "view", l, r,
|
|
2107
|
-
}, y = (l, r,
|
|
2103
|
+
}), F.value = !0, t("open", j, "view", l, r, h));
|
|
2104
|
+
}, y = (l, r, h, j) => {
|
|
2108
2105
|
var J;
|
|
2109
|
-
(J = e.value.control.save) != null && J.click ? e.value.control.save.click(l, r,
|
|
2106
|
+
(J = e.value.control.save) != null && J.click ? e.value.control.save.click(l, r, h, j) : t("row-save", { row: l, column: r, $index: h, data: e.value.table.data }, (Z) => {
|
|
2110
2107
|
Z && (e.value.table.load(), T.value = !1);
|
|
2111
2108
|
});
|
|
2112
2109
|
}, L = (l, r) => {
|
|
2113
|
-
t("submit", e.value.form.modalState, l, r, (
|
|
2114
|
-
|
|
2110
|
+
t("submit", e.value.form.modalState, l, r, (h) => {
|
|
2111
|
+
h && (F.value = !1, r.table.load());
|
|
2115
2112
|
});
|
|
2116
2113
|
}, O = (l) => {
|
|
2117
2114
|
t("reset", l);
|
|
2118
2115
|
}, te = (l, r) => {
|
|
2119
|
-
var
|
|
2120
|
-
if ((
|
|
2116
|
+
var h;
|
|
2117
|
+
if ((h = l.control.download) != null && h.click)
|
|
2121
2118
|
l.control.download.click(l, r);
|
|
2122
2119
|
else {
|
|
2123
2120
|
let j = et({
|
|
@@ -2125,7 +2122,7 @@ const tl = {
|
|
|
2125
2122
|
size: 480,
|
|
2126
2123
|
width: 600,
|
|
2127
2124
|
slots: {
|
|
2128
|
-
default: () =>
|
|
2125
|
+
default: () => De(Xt, {
|
|
2129
2126
|
items: r,
|
|
2130
2127
|
commitText: l.control.download.excelLabel,
|
|
2131
2128
|
onExcel: (J, Z) => {
|
|
@@ -2135,65 +2132,65 @@ const tl = {
|
|
|
2135
2132
|
}
|
|
2136
2133
|
}, l.control.download.mode);
|
|
2137
2134
|
}
|
|
2138
|
-
},
|
|
2135
|
+
}, be = (l) => {
|
|
2139
2136
|
var r;
|
|
2140
2137
|
(r = l.control.setting) != null && r.click ? l.control.setting.click(l) : et({
|
|
2141
2138
|
title: l.control.setting.label,
|
|
2142
2139
|
size: 470,
|
|
2143
2140
|
width: 600,
|
|
2144
2141
|
slots: {
|
|
2145
|
-
default: () =>
|
|
2142
|
+
default: () => De(al, {
|
|
2146
2143
|
modelValue: l,
|
|
2147
2144
|
name: _.name
|
|
2148
2145
|
})
|
|
2149
2146
|
}
|
|
2150
2147
|
}, l.control.setting.mode);
|
|
2151
2148
|
}, k = e.value.control, $ = [
|
|
2152
|
-
{ type: "add", func:
|
|
2149
|
+
{ type: "add", func: re },
|
|
2153
2150
|
{ type: "download", func: te },
|
|
2154
|
-
{ type: "setting", func:
|
|
2151
|
+
{ type: "setting", func: be },
|
|
2155
2152
|
{ type: "view", func: I },
|
|
2156
2153
|
{ type: "edit", func: d },
|
|
2157
2154
|
{ type: "delete", func: D },
|
|
2158
2155
|
{ type: "save", func: y }
|
|
2159
|
-
], b = (l) => $.filter((r) => l.includes(r.type)).map(({ type: r, func:
|
|
2156
|
+
], b = (l) => $.filter((r) => l.includes(r.type)).map(({ type: r, func: h }) => {
|
|
2160
2157
|
var j, J, Z;
|
|
2161
2158
|
return {
|
|
2162
2159
|
name: `control-${r}`,
|
|
2163
2160
|
attr: k == null ? void 0 : k[r],
|
|
2164
|
-
func:
|
|
2161
|
+
func: h,
|
|
2165
2162
|
label: (j = k == null ? void 0 : k[r]) == null ? void 0 : j.label,
|
|
2166
2163
|
sort: ((J = k == null ? void 0 : k[r]) == null ? void 0 : J.sort) || 0,
|
|
2167
2164
|
groupName: ((Z = k == null ? void 0 : k[r]) == null ? void 0 : Z.groupName) || "default"
|
|
2168
2165
|
};
|
|
2169
|
-
}).sort((r,
|
|
2170
|
-
const j =
|
|
2171
|
-
return r[j] || (r[j] = []), r[j].push(
|
|
2166
|
+
}).sort((r, h) => r.sort - h.sort), c = (l) => b(l).reduce((r, h) => {
|
|
2167
|
+
const j = h.groupName || "default";
|
|
2168
|
+
return r[j] || (r[j] = []), r[j].push(h), r;
|
|
2172
2169
|
}, {}), i = xe(() => Object.fromEntries(
|
|
2173
2170
|
Object.entries(e.value).filter(([l, r]) => r.type !== "hidden").filter(([l, r]) => r.visible !== !1).filter(([l, r]) => r.showCol !== !1).map(([l, r]) => (r.sort = typeof r.sort == "number" ? r.sort : 0, [l, r])).sort((l, r) => l[1].sort - r[1].sort)
|
|
2174
|
-
)), w =
|
|
2175
|
-
const
|
|
2171
|
+
)), w = ye({}), M = (l, r) => {
|
|
2172
|
+
const h = (j, J) => {
|
|
2176
2173
|
for (const Z of j) {
|
|
2177
2174
|
if (Z.value == J) return Z.label;
|
|
2178
2175
|
if (Z.children) {
|
|
2179
|
-
const
|
|
2180
|
-
if (
|
|
2176
|
+
const Ee = h(Z.children, J);
|
|
2177
|
+
if (Ee) return Ee;
|
|
2181
2178
|
}
|
|
2182
2179
|
}
|
|
2183
2180
|
return null;
|
|
2184
2181
|
};
|
|
2185
2182
|
if (l.getDicts) {
|
|
2186
2183
|
const j = r.toString();
|
|
2187
|
-
return w.value[j] ? (l.options = w.value[j], l.formatter || (l.formatter = (J, Z,
|
|
2188
|
-
w.value[j] = J, l.options = J, l.formatter || (l.formatter = (Z,
|
|
2184
|
+
return w.value[j] ? (l.options = w.value[j], l.formatter || (l.formatter = (J, Z, Ee, Me) => l.options && h(l.options, Ee) || Ee), Promise.resolve()) : l.getDicts(e.value.table.data).then((J) => {
|
|
2185
|
+
w.value[j] = J, l.options = J, l.formatter || (l.formatter = (Z, Ee, Me, Le) => l.options && h(l.options, Me) || Me);
|
|
2189
2186
|
});
|
|
2190
2187
|
}
|
|
2191
2188
|
return Promise.resolve();
|
|
2192
|
-
},
|
|
2189
|
+
}, P = () => {
|
|
2193
2190
|
const l = [];
|
|
2194
2191
|
Object.keys(e.value).forEach((r) => {
|
|
2195
2192
|
if (e.value[r].getDicts) {
|
|
2196
|
-
const
|
|
2193
|
+
const h = M(e.value[r], r).then(() => {
|
|
2197
2194
|
e.value.table.data.forEach((j) => {
|
|
2198
2195
|
var J;
|
|
2199
2196
|
if (e.value[r].getDicts && ((J = e.value[r]) == null ? void 0 : J.forceString) !== !1) {
|
|
@@ -2204,106 +2201,106 @@ const tl = {
|
|
|
2204
2201
|
}).catch((j) => {
|
|
2205
2202
|
console.error(`加载字典${r}出错:`, j);
|
|
2206
2203
|
});
|
|
2207
|
-
l.push(
|
|
2204
|
+
l.push(h);
|
|
2208
2205
|
}
|
|
2209
2206
|
}), Promise.all(l).catch((r) => {
|
|
2210
2207
|
console.error("字典加载过程中发生错误:", r);
|
|
2211
2208
|
});
|
|
2212
|
-
}, X = (l, r,
|
|
2209
|
+
}, X = (l, r, h, j) => {
|
|
2213
2210
|
var J, Z;
|
|
2214
|
-
return l.table ? (J = l.table(r,
|
|
2211
|
+
return l.table ? (J = l.table(r, h, j)) != null && J.auth ? (Z = l.table(r, h, j)) == null ? void 0 : Z.auth(r, h, j) : !0 : !1;
|
|
2215
2212
|
};
|
|
2216
|
-
return
|
|
2213
|
+
return Vt(() => {
|
|
2217
2214
|
e.value.table.load();
|
|
2218
2215
|
}), Ne(async () => {
|
|
2219
2216
|
var l;
|
|
2220
2217
|
if (E.value = Object.values(e.value).filter((r) => r.type !== "hidden").filter((r) => r.type !== "control").filter((r) => r.visible !== !1).map((r) => ({ key: r.key || "", label: r.label, value: !0 })), !((l = e.value.table) != null && l.user)) {
|
|
2221
|
-
|
|
2218
|
+
we.error("必须给使用此表格的用户一个名字!");
|
|
2222
2219
|
return;
|
|
2223
2220
|
}
|
|
2224
2221
|
if (!_.name) {
|
|
2225
|
-
|
|
2222
|
+
we.error("必须给表格一个唯一的name属性");
|
|
2226
2223
|
return;
|
|
2227
2224
|
}
|
|
2228
2225
|
try {
|
|
2229
2226
|
let r = await Kt(_.name);
|
|
2230
2227
|
if (r) {
|
|
2231
2228
|
if (_.name !== r.name) {
|
|
2232
|
-
|
|
2229
|
+
we.error("此表格已经存在,请换一个名字!");
|
|
2233
2230
|
return;
|
|
2234
2231
|
}
|
|
2235
2232
|
} else
|
|
2236
2233
|
await el({ name: _.name });
|
|
2237
2234
|
} catch (r) {
|
|
2238
|
-
console.error("检查表格名称时出现错误:", r),
|
|
2235
|
+
console.error("检查表格名称时出现错误:", r), we.error("检查表格名称时出现错误,请稍后重试。");
|
|
2239
2236
|
}
|
|
2240
2237
|
try {
|
|
2241
2238
|
const r = await Jt(e.value.table.user, _.name);
|
|
2242
|
-
r && r.forEach((
|
|
2243
|
-
e.value[
|
|
2239
|
+
r && r.forEach((h) => {
|
|
2240
|
+
e.value[h.key] && (e.value[h.key].width = h.width, e.value[h.key].showCol = h.showCol, e.value[h.key].sort = h.sort);
|
|
2244
2241
|
});
|
|
2245
2242
|
} catch (r) {
|
|
2246
2243
|
console.error("Error fetching table column settings:", r);
|
|
2247
2244
|
}
|
|
2248
2245
|
}), (l, r) => {
|
|
2249
2246
|
var ot, rt, at, ut, nt;
|
|
2250
|
-
const
|
|
2251
|
-
return
|
|
2247
|
+
const h = R("el-button-group"), j = R("el-table-column"), J = R("el-table"), Z = R("el-pagination"), Ee = R("el-icon"), Me = R("el-dialog"), Le = R("el-drawer");
|
|
2248
|
+
return s(), B(W, null, [
|
|
2252
2249
|
Q("div", ul, [
|
|
2253
|
-
((rt = (ot = e.value) == null ? void 0 : ot.query) == null ? void 0 : rt.hidden) != !0 ? (
|
|
2250
|
+
((rt = (ot = e.value) == null ? void 0 : ot.query) == null ? void 0 : rt.hidden) != !0 ? (s(), B("div", nl, [
|
|
2254
2251
|
p(l.$slots, "query", {}, () => [
|
|
2255
2252
|
G(Lt, {
|
|
2256
2253
|
modelValue: e.value,
|
|
2257
2254
|
"onUpdate:modelValue": r[0] || (r[0] = (N) => e.value = N),
|
|
2258
|
-
onQuery:
|
|
2259
|
-
onReset:
|
|
2260
|
-
},
|
|
2261
|
-
"q-btns":
|
|
2255
|
+
onQuery: ie,
|
|
2256
|
+
onReset: ce
|
|
2257
|
+
}, de({
|
|
2258
|
+
"q-btns": g(() => [
|
|
2262
2259
|
p(l.$slots, "q-btns", {}, () => [
|
|
2263
|
-
(
|
|
2264
|
-
ue == "default" ? (
|
|
2260
|
+
(s(!0), B(W, null, U(c(["add", "download", "setting"]), (N, ue) => (s(), B(W, null, [
|
|
2261
|
+
ue == "default" ? (s(!0), B(W, { key: 0 }, U(N, (C) => (s(), B(W, null, [
|
|
2265
2262
|
p(l.$slots, C.name + "-left", {}, void 0, !0),
|
|
2266
2263
|
(C.name === "control-add" ? C.attr.auth() && C.attr.inline === !1 : C.attr.auth()) ? p(l.$slots, C.name, { key: 0 }, () => [
|
|
2267
|
-
C.label ? (
|
|
2264
|
+
C.label ? (s(), S(o(he), x({
|
|
2268
2265
|
key: 0,
|
|
2269
2266
|
ref_for: !0
|
|
2270
2267
|
}, C.attr, {
|
|
2271
|
-
onClick: (
|
|
2268
|
+
onClick: (Y) => C.func(e.value, E.value)
|
|
2272
2269
|
}), {
|
|
2273
|
-
default:
|
|
2274
|
-
|
|
2270
|
+
default: g(() => [
|
|
2271
|
+
ge(pe(C.label), 1)
|
|
2275
2272
|
]),
|
|
2276
2273
|
_: 2
|
|
2277
|
-
}, 1040, ["onClick"])) : (
|
|
2274
|
+
}, 1040, ["onClick"])) : (s(), S(o(he), x({
|
|
2278
2275
|
key: 1,
|
|
2279
2276
|
ref_for: !0
|
|
2280
2277
|
}, C.attr, {
|
|
2281
|
-
onClick: (
|
|
2278
|
+
onClick: (Y) => C.func(e.value, E.value)
|
|
2282
2279
|
}), null, 16, ["onClick"]))
|
|
2283
|
-
], !0) :
|
|
2280
|
+
], !0) : ve("", !0),
|
|
2284
2281
|
p(l.$slots, C.name + "-right", {}, void 0, !0)
|
|
2285
|
-
], 64))), 256)) : (
|
|
2286
|
-
default:
|
|
2287
|
-
(
|
|
2282
|
+
], 64))), 256)) : (s(), S(h, { key: 1 }, {
|
|
2283
|
+
default: g(() => [
|
|
2284
|
+
(s(!0), B(W, null, U(N, (C) => (s(), B(W, null, [
|
|
2288
2285
|
p(l.$slots, C.name + "-left", {}, void 0, !0),
|
|
2289
2286
|
(C.name === "control-add" ? C.attr.auth() && C.attr.inline === !1 : C.attr.auth()) ? p(l.$slots, C.name, { key: 0 }, () => [
|
|
2290
|
-
C.label ? (
|
|
2287
|
+
C.label ? (s(), S(o(he), x({
|
|
2291
2288
|
key: 0,
|
|
2292
2289
|
ref_for: !0
|
|
2293
2290
|
}, C.attr, {
|
|
2294
|
-
onClick: (
|
|
2291
|
+
onClick: (Y) => C.func(e.value, E.value)
|
|
2295
2292
|
}), {
|
|
2296
|
-
default:
|
|
2297
|
-
|
|
2293
|
+
default: g(() => [
|
|
2294
|
+
ge(pe(C.label), 1)
|
|
2298
2295
|
]),
|
|
2299
2296
|
_: 2
|
|
2300
|
-
}, 1040, ["onClick"])) : (
|
|
2297
|
+
}, 1040, ["onClick"])) : (s(), S(o(he), x({
|
|
2301
2298
|
key: 1,
|
|
2302
2299
|
ref_for: !0
|
|
2303
2300
|
}, C.attr, {
|
|
2304
|
-
onClick: (
|
|
2301
|
+
onClick: (Y) => C.func(e.value, E.value)
|
|
2305
2302
|
}), null, 16, ["onClick"]))
|
|
2306
|
-
], !0) :
|
|
2303
|
+
], !0) : ve("", !0),
|
|
2307
2304
|
p(l.$slots, C.name + "-right", {}, void 0, !0)
|
|
2308
2305
|
], 64))), 256))
|
|
2309
2306
|
]),
|
|
@@ -2316,75 +2313,75 @@ const tl = {
|
|
|
2316
2313
|
}, [
|
|
2317
2314
|
U(l.$slots, (N, ue, C) => ({
|
|
2318
2315
|
name: ue,
|
|
2319
|
-
fn:
|
|
2316
|
+
fn: g((Y) => [
|
|
2320
2317
|
p(l.$slots, ue, { model: e.value }, void 0, !0)
|
|
2321
2318
|
])
|
|
2322
2319
|
}))
|
|
2323
2320
|
]), 1032, ["modelValue"])
|
|
2324
2321
|
], !0)
|
|
2325
|
-
])) :
|
|
2322
|
+
])) : ve("", !0),
|
|
2326
2323
|
Q("div", sl, [
|
|
2327
|
-
G(J, je(Ze({ ...l.$attrs, ...o(
|
|
2328
|
-
append:
|
|
2324
|
+
G(J, je(Ze({ ...l.$attrs, ...o(_e)(e.value.table, (N) => !["dblclickType", "page"].includes(N)) })), {
|
|
2325
|
+
append: g(() => [
|
|
2329
2326
|
p(l.$slots, "append", {}, void 0, !0)
|
|
2330
2327
|
]),
|
|
2331
|
-
empty:
|
|
2328
|
+
empty: g(() => [
|
|
2332
2329
|
p(l.$slots, "empty", {}, void 0, !0)
|
|
2333
2330
|
]),
|
|
2334
|
-
default:
|
|
2331
|
+
default: g(() => [
|
|
2335
2332
|
p(l.$slots, "default", {}, () => [
|
|
2336
|
-
(
|
|
2333
|
+
(s(!0), B(W, null, U(i.value, (N, ue) => (s(), S(j, x({
|
|
2337
2334
|
prop: ue,
|
|
2338
2335
|
key: ue,
|
|
2339
2336
|
ref_for: !0
|
|
2340
|
-
}, { ...e.value.tableColumns, ...o(
|
|
2341
|
-
header:
|
|
2337
|
+
}, { ...e.value.tableColumns, ...o(_e)(N, (C) => q.includes(C)) }, { "header-align": "center" }), de({
|
|
2338
|
+
header: g(({ column: C, $index: Y }) => [
|
|
2342
2339
|
ue == "control" ? p(l.$slots, `${ue}-header`, {
|
|
2343
2340
|
key: 0,
|
|
2344
2341
|
column: C,
|
|
2345
|
-
$index:
|
|
2342
|
+
$index: Y
|
|
2346
2343
|
}, () => [
|
|
2347
2344
|
r[12] || (r[12] = Q("span", null, "操作", -1)),
|
|
2348
|
-
e.value.control.add.inline === !0 && !T.value ? (
|
|
2349
|
-
e.value.control.add.label ? (
|
|
2345
|
+
e.value.control.add.inline === !0 && !T.value ? (s(), B(W, { key: 0 }, [
|
|
2346
|
+
e.value.control.add.label ? (s(), S(o(he), x({
|
|
2350
2347
|
key: 0,
|
|
2351
2348
|
title: "新增",
|
|
2352
2349
|
size: "small",
|
|
2353
2350
|
ref_for: !0
|
|
2354
2351
|
}, e.value.control.add, {
|
|
2355
|
-
onClick: r[1] || (r[1] = (
|
|
2352
|
+
onClick: r[1] || (r[1] = (le) => re(e.value))
|
|
2356
2353
|
}), {
|
|
2357
|
-
default:
|
|
2358
|
-
|
|
2354
|
+
default: g(() => [
|
|
2355
|
+
ge(pe(e.value.control.add.label), 1)
|
|
2359
2356
|
]),
|
|
2360
2357
|
_: 1
|
|
2361
|
-
}, 16)) : (
|
|
2358
|
+
}, 16)) : (s(), S(o(he), x({
|
|
2362
2359
|
key: 1,
|
|
2363
2360
|
title: "新增",
|
|
2364
2361
|
size: "small",
|
|
2365
2362
|
ref_for: !0
|
|
2366
2363
|
}, e.value.control.add, {
|
|
2367
|
-
onClick: r[2] || (r[2] = (
|
|
2364
|
+
onClick: r[2] || (r[2] = (le) => re(e.value))
|
|
2368
2365
|
}), null, 16))
|
|
2369
|
-
], 64)) :
|
|
2366
|
+
], 64)) : ve("", !0)
|
|
2370
2367
|
], !0) : p(l.$slots, `${ue}-header`, {
|
|
2371
2368
|
key: 1,
|
|
2372
2369
|
column: C,
|
|
2373
|
-
$index:
|
|
2370
|
+
$index: Y
|
|
2374
2371
|
}, void 0, !0)
|
|
2375
2372
|
]),
|
|
2376
|
-
"filter-icon":
|
|
2373
|
+
"filter-icon": g((C) => [
|
|
2377
2374
|
p(l.$slots, `${ue}-filter-icon`, { data: C }, void 0, !0)
|
|
2378
2375
|
]),
|
|
2379
2376
|
_: 2
|
|
2380
2377
|
}, [
|
|
2381
2378
|
N.type === "image" ? {
|
|
2382
2379
|
name: "default",
|
|
2383
|
-
fn:
|
|
2380
|
+
fn: g(({ row: C, column: Y, $index: le }) => [
|
|
2384
2381
|
p(l.$slots, `${ue}`, {
|
|
2385
2382
|
row: C,
|
|
2386
|
-
column:
|
|
2387
|
-
$index:
|
|
2383
|
+
column: Y,
|
|
2384
|
+
$index: le
|
|
2388
2385
|
}, () => [
|
|
2389
2386
|
Q("img", x({
|
|
2390
2387
|
style: { width: "80px", height: "80px", "object-fit": "cover", "border-radius": "3px" },
|
|
@@ -2396,99 +2393,99 @@ const tl = {
|
|
|
2396
2393
|
key: "0"
|
|
2397
2394
|
} : N.type === "expand" ? {
|
|
2398
2395
|
name: "default",
|
|
2399
|
-
fn:
|
|
2396
|
+
fn: g(({ row: C, column: Y, $index: le }) => [
|
|
2400
2397
|
p(l.$slots, `${ue}`, {
|
|
2401
2398
|
row: C,
|
|
2402
|
-
column:
|
|
2403
|
-
$index:
|
|
2399
|
+
column: Y,
|
|
2400
|
+
$index: le
|
|
2404
2401
|
}, void 0, !0)
|
|
2405
2402
|
]),
|
|
2406
2403
|
key: "1"
|
|
2407
2404
|
} : N.type == "control" ? {
|
|
2408
2405
|
name: "default",
|
|
2409
|
-
fn:
|
|
2406
|
+
fn: g(({ row: C, column: Y, $index: le }) => {
|
|
2410
2407
|
var Be, Ie;
|
|
2411
2408
|
return [
|
|
2412
2409
|
Q("div", {
|
|
2413
|
-
class:
|
|
2414
|
-
style:
|
|
2410
|
+
class: yt(["control", (Be = e.value.control) == null ? void 0 : Be.class]),
|
|
2411
|
+
style: Fe((Ie = e.value.control) == null ? void 0 : Ie.style)
|
|
2415
2412
|
}, [
|
|
2416
2413
|
p(l.$slots, "control", {}, () => [
|
|
2417
2414
|
p(l.$slots, "control-left", {
|
|
2418
2415
|
row: C,
|
|
2419
|
-
column:
|
|
2420
|
-
$index:
|
|
2416
|
+
column: Y,
|
|
2417
|
+
$index: le
|
|
2421
2418
|
}, void 0, !0),
|
|
2422
|
-
(
|
|
2423
|
-
Ge == "default" ? (
|
|
2424
|
-
p(l.$slots,
|
|
2419
|
+
(s(!0), B(W, null, U(c(["view", "edit", "delete", "save"]), (Ue, Ge) => (s(), B(W, null, [
|
|
2420
|
+
Ge == "default" ? (s(!0), B(W, { key: 0 }, U(Ue, (me) => (s(), B(W, null, [
|
|
2421
|
+
p(l.$slots, me.name + "-left", {
|
|
2425
2422
|
row: C,
|
|
2426
|
-
column:
|
|
2427
|
-
$index:
|
|
2423
|
+
column: Y,
|
|
2424
|
+
$index: le
|
|
2428
2425
|
}, void 0, !0),
|
|
2429
|
-
|
|
2426
|
+
me.attr.auth(C, Y, le) ? p(l.$slots, me.name, {
|
|
2430
2427
|
key: 0,
|
|
2431
2428
|
row: C,
|
|
2432
|
-
column:
|
|
2433
|
-
$index:
|
|
2429
|
+
column: Y,
|
|
2430
|
+
$index: le
|
|
2434
2431
|
}, () => [
|
|
2435
|
-
|
|
2432
|
+
me.label ? (s(), S(o(he), x({
|
|
2436
2433
|
key: 0,
|
|
2437
2434
|
ref_for: !0
|
|
2438
|
-
},
|
|
2439
|
-
onClick: (Qe) =>
|
|
2435
|
+
}, me.attr, {
|
|
2436
|
+
onClick: (Qe) => me.func(C, Y, le, e.value)
|
|
2440
2437
|
}), {
|
|
2441
|
-
default:
|
|
2442
|
-
|
|
2438
|
+
default: g(() => [
|
|
2439
|
+
ge(pe(me.label), 1)
|
|
2443
2440
|
]),
|
|
2444
2441
|
_: 2
|
|
2445
|
-
}, 1040, ["onClick"])) : (
|
|
2442
|
+
}, 1040, ["onClick"])) : (s(), S(o(he), x({
|
|
2446
2443
|
key: 1,
|
|
2447
2444
|
ref_for: !0
|
|
2448
|
-
},
|
|
2449
|
-
onClick: (Qe) =>
|
|
2445
|
+
}, me.attr, {
|
|
2446
|
+
onClick: (Qe) => me.func(C, Y, le, e.value)
|
|
2450
2447
|
}), null, 16, ["onClick"]))
|
|
2451
|
-
], !0) :
|
|
2452
|
-
p(l.$slots,
|
|
2448
|
+
], !0) : ve("", !0),
|
|
2449
|
+
p(l.$slots, me.name + "-right", {
|
|
2453
2450
|
row: C,
|
|
2454
|
-
column:
|
|
2455
|
-
$index:
|
|
2451
|
+
column: Y,
|
|
2452
|
+
$index: le
|
|
2456
2453
|
}, void 0, !0)
|
|
2457
|
-
], 64))), 256)) : (
|
|
2458
|
-
default:
|
|
2459
|
-
(
|
|
2460
|
-
p(l.$slots,
|
|
2454
|
+
], 64))), 256)) : (s(), S(h, { key: 1 }, {
|
|
2455
|
+
default: g(() => [
|
|
2456
|
+
(s(!0), B(W, null, U(Ue, (me) => (s(), B(W, null, [
|
|
2457
|
+
p(l.$slots, me.name + "-left", {
|
|
2461
2458
|
row: C,
|
|
2462
|
-
column:
|
|
2463
|
-
$index:
|
|
2459
|
+
column: Y,
|
|
2460
|
+
$index: le
|
|
2464
2461
|
}, void 0, !0),
|
|
2465
|
-
|
|
2462
|
+
me.attr.auth(C, Y, le) ? p(l.$slots, me.name, {
|
|
2466
2463
|
key: 0,
|
|
2467
2464
|
row: C,
|
|
2468
|
-
column:
|
|
2469
|
-
$index:
|
|
2465
|
+
column: Y,
|
|
2466
|
+
$index: le
|
|
2470
2467
|
}, () => [
|
|
2471
|
-
|
|
2468
|
+
me.label ? (s(), S(o(he), x({
|
|
2472
2469
|
key: 0,
|
|
2473
2470
|
ref_for: !0
|
|
2474
|
-
},
|
|
2475
|
-
onClick: (Qe) =>
|
|
2471
|
+
}, me.attr, {
|
|
2472
|
+
onClick: (Qe) => me.func(C, Y, le, e.value)
|
|
2476
2473
|
}), {
|
|
2477
|
-
default:
|
|
2478
|
-
|
|
2474
|
+
default: g(() => [
|
|
2475
|
+
ge(pe(me.label), 1)
|
|
2479
2476
|
]),
|
|
2480
2477
|
_: 2
|
|
2481
|
-
}, 1040, ["onClick"])) : (
|
|
2478
|
+
}, 1040, ["onClick"])) : (s(), S(o(he), x({
|
|
2482
2479
|
key: 1,
|
|
2483
2480
|
ref_for: !0
|
|
2484
|
-
},
|
|
2485
|
-
onClick: (Qe) =>
|
|
2481
|
+
}, me.attr, {
|
|
2482
|
+
onClick: (Qe) => me.func(C, Y, le, e.value)
|
|
2486
2483
|
}), null, 16, ["onClick"]))
|
|
2487
|
-
], !0) :
|
|
2488
|
-
p(l.$slots,
|
|
2484
|
+
], !0) : ve("", !0),
|
|
2485
|
+
p(l.$slots, me.name + "-right", {
|
|
2489
2486
|
row: C,
|
|
2490
|
-
column:
|
|
2491
|
-
$index:
|
|
2487
|
+
column: Y,
|
|
2488
|
+
$index: le
|
|
2492
2489
|
}, void 0, !0)
|
|
2493
2490
|
], 64))), 256))
|
|
2494
2491
|
]),
|
|
@@ -2497,8 +2494,8 @@ const tl = {
|
|
|
2497
2494
|
], 64))), 256)),
|
|
2498
2495
|
p(l.$slots, "control-right", {
|
|
2499
2496
|
row: C,
|
|
2500
|
-
column:
|
|
2501
|
-
$index:
|
|
2497
|
+
column: Y,
|
|
2498
|
+
$index: le
|
|
2502
2499
|
}, void 0, !0)
|
|
2503
2500
|
], !0)
|
|
2504
2501
|
], 6)
|
|
@@ -2507,29 +2504,29 @@ const tl = {
|
|
|
2507
2504
|
key: "2"
|
|
2508
2505
|
} : N.type != "selection" && N.type != "index" ? {
|
|
2509
2506
|
name: "default",
|
|
2510
|
-
fn:
|
|
2511
|
-
X(N, C,
|
|
2507
|
+
fn: g(({ row: C, column: Y, $index: le }) => [
|
|
2508
|
+
X(N, C, Y, le) && le != -1 ? p(l.$slots, `${ue}`, {
|
|
2512
2509
|
key: 0,
|
|
2513
2510
|
row: C,
|
|
2514
|
-
column:
|
|
2515
|
-
$index:
|
|
2511
|
+
column: Y,
|
|
2512
|
+
$index: le
|
|
2516
2513
|
}, () => {
|
|
2517
2514
|
var Be;
|
|
2518
2515
|
return [
|
|
2519
2516
|
G(We, {
|
|
2520
2517
|
modelValue: C[ue],
|
|
2521
2518
|
"onUpdate:modelValue": (Ie) => C[ue] = Ie,
|
|
2522
|
-
item: N == null ? void 0 : N.table(C,
|
|
2519
|
+
item: N == null ? void 0 : N.table(C, Y, le, T.value),
|
|
2523
2520
|
ctrlKey: ue,
|
|
2524
|
-
ctrlType: (Be = N.table(C,
|
|
2521
|
+
ctrlType: (Be = N.table(C, Y, le, T.value)) != null && Be.type ? N.table(C, Y, le, T.value).type : N.type,
|
|
2525
2522
|
model: e.value,
|
|
2526
2523
|
class: "g-ctrl-container",
|
|
2527
2524
|
t: "t",
|
|
2528
2525
|
formInfo: C
|
|
2529
|
-
},
|
|
2526
|
+
}, de({ _: 2 }, [
|
|
2530
2527
|
U(l.$slots, (Ie, Ue) => ({
|
|
2531
2528
|
name: Ue,
|
|
2532
|
-
fn:
|
|
2529
|
+
fn: g((Ge) => [
|
|
2533
2530
|
p(l.$slots, Ue, {
|
|
2534
2531
|
data: Ge,
|
|
2535
2532
|
item: N,
|
|
@@ -2542,11 +2539,11 @@ const tl = {
|
|
|
2542
2539
|
}, !0) : p(l.$slots, `${ue}`, {
|
|
2543
2540
|
key: 1,
|
|
2544
2541
|
row: C,
|
|
2545
|
-
column:
|
|
2546
|
-
$index:
|
|
2542
|
+
column: Y,
|
|
2543
|
+
$index: le
|
|
2547
2544
|
}, () => [
|
|
2548
2545
|
Q("div", {
|
|
2549
|
-
innerHTML:
|
|
2546
|
+
innerHTML: se(N, Y.formatter(C, Y, C[ue], le))
|
|
2550
2547
|
}, null, 8, dl)
|
|
2551
2548
|
], !0)
|
|
2552
2549
|
]),
|
|
@@ -2557,14 +2554,14 @@ const tl = {
|
|
|
2557
2554
|
]),
|
|
2558
2555
|
_: 3
|
|
2559
2556
|
}, 16),
|
|
2560
|
-
(nt = (ut = (at = e.value) == null ? void 0 : at.table) == null ? void 0 : ut.page) != null && nt.hidden ?
|
|
2557
|
+
(nt = (ut = (at = e.value) == null ? void 0 : at.table) == null ? void 0 : ut.page) != null && nt.hidden ? ve("", !0) : p(l.$slots, "page", { key: 0 }, () => [
|
|
2561
2558
|
G(Z, x({
|
|
2562
2559
|
"page-size": e.value.table.page.pageSize,
|
|
2563
2560
|
"onUpdate:pageSize": r[3] || (r[3] = (N) => e.value.table.page.pageSize = N),
|
|
2564
2561
|
"current-page": e.value.table.page.currentPage,
|
|
2565
2562
|
"onUpdate:currentPage": r[4] || (r[4] = (N) => e.value.table.page.currentPage = N)
|
|
2566
2563
|
}, e.value.table.page), {
|
|
2567
|
-
default:
|
|
2564
|
+
default: g(() => [
|
|
2568
2565
|
p(l.$slots, "table-page", {}, void 0, !0)
|
|
2569
2566
|
]),
|
|
2570
2567
|
_: 3
|
|
@@ -2572,55 +2569,55 @@ const tl = {
|
|
|
2572
2569
|
], !0)
|
|
2573
2570
|
])
|
|
2574
2571
|
]),
|
|
2575
|
-
e.value.dialog.mode == "dialog" && F.value ? (
|
|
2572
|
+
e.value.dialog.mode == "dialog" && F.value ? (s(), B("div", fl, [
|
|
2576
2573
|
G(Me, x({
|
|
2577
2574
|
modelValue: F.value,
|
|
2578
2575
|
"onUpdate:modelValue": r[8] || (r[8] = (N) => F.value = N),
|
|
2579
2576
|
fullscreen: e.value.dialog.fullScreen
|
|
2580
|
-
}, o(
|
|
2581
|
-
width: o(
|
|
2577
|
+
}, o(_e)(e.value.dialog, (N) => !["size"].includes(N)), {
|
|
2578
|
+
width: o($t)(e.value.dialog.width) + 35
|
|
2582
2579
|
}), {
|
|
2583
|
-
header:
|
|
2584
|
-
var N, ue, C,
|
|
2580
|
+
header: g(() => {
|
|
2581
|
+
var N, ue, C, Y;
|
|
2585
2582
|
return [
|
|
2586
2583
|
Q("div", cl, [
|
|
2587
2584
|
Q("div", ml, [
|
|
2588
2585
|
p(l.$slots, "f-header", {}, () => [
|
|
2589
|
-
Q("div", null,
|
|
2586
|
+
Q("div", null, pe(e.value.dialog.title), 1)
|
|
2590
2587
|
], !0)
|
|
2591
2588
|
]),
|
|
2592
|
-
((ue = (N = e.value) == null ? void 0 : N.dialog) == null ? void 0 : ue.fullScreen) === !1 ? (
|
|
2589
|
+
((ue = (N = e.value) == null ? void 0 : N.dialog) == null ? void 0 : ue.fullScreen) === !1 ? (s(), B("div", {
|
|
2593
2590
|
key: 0,
|
|
2594
|
-
onClick: r[5] || (r[5] = (
|
|
2591
|
+
onClick: r[5] || (r[5] = (le) => {
|
|
2595
2592
|
e.value.dialog.fullScreen = !0;
|
|
2596
2593
|
}),
|
|
2597
2594
|
class: "max"
|
|
2598
2595
|
}, [
|
|
2599
|
-
G(
|
|
2600
|
-
default:
|
|
2596
|
+
G(Ee, null, {
|
|
2597
|
+
default: g(() => [
|
|
2601
2598
|
G(o(Tt))
|
|
2602
2599
|
]),
|
|
2603
2600
|
_: 1
|
|
2604
2601
|
})
|
|
2605
|
-
])) :
|
|
2606
|
-
((
|
|
2602
|
+
])) : ve("", !0),
|
|
2603
|
+
((Y = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : Y.fullScreen) === !0 ? (s(), B("div", {
|
|
2607
2604
|
key: 1,
|
|
2608
|
-
onClick: r[6] || (r[6] = (
|
|
2605
|
+
onClick: r[6] || (r[6] = (le) => {
|
|
2609
2606
|
e.value.dialog.fullScreen = !1;
|
|
2610
2607
|
}),
|
|
2611
2608
|
class: "max"
|
|
2612
2609
|
}, [
|
|
2613
|
-
G(
|
|
2614
|
-
default:
|
|
2610
|
+
G(Ee, null, {
|
|
2611
|
+
default: g(() => [
|
|
2615
2612
|
G(o(Mt))
|
|
2616
2613
|
]),
|
|
2617
2614
|
_: 1
|
|
2618
2615
|
})
|
|
2619
|
-
])) :
|
|
2616
|
+
])) : ve("", !0)
|
|
2620
2617
|
])
|
|
2621
2618
|
];
|
|
2622
2619
|
}),
|
|
2623
|
-
default:
|
|
2620
|
+
default: g(() => [
|
|
2624
2621
|
Q("div", pl, [
|
|
2625
2622
|
p(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
2626
2623
|
G(Ye, {
|
|
@@ -2628,11 +2625,11 @@ const tl = {
|
|
|
2628
2625
|
"onUpdate:modelValue": r[7] || (r[7] = (N) => e.value = N),
|
|
2629
2626
|
onSubmit: L,
|
|
2630
2627
|
onReset: O
|
|
2631
|
-
},
|
|
2628
|
+
}, de({ _: 2 }, [
|
|
2632
2629
|
U(l.$slots, (N, ue, C) => ({
|
|
2633
2630
|
name: ue,
|
|
2634
|
-
fn:
|
|
2635
|
-
p(l.$slots, ue, { model:
|
|
2631
|
+
fn: g((Y) => [
|
|
2632
|
+
p(l.$slots, ue, { model: Y }, void 0, !0)
|
|
2636
2633
|
])
|
|
2637
2634
|
}))
|
|
2638
2635
|
]), 1032, ["modelValue"])
|
|
@@ -2641,33 +2638,33 @@ const tl = {
|
|
|
2641
2638
|
]),
|
|
2642
2639
|
_: 3
|
|
2643
2640
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
2644
|
-
])) :
|
|
2645
|
-
e.value.dialog.mode == "drawer" && F.value ? (
|
|
2641
|
+
])) : ve("", !0),
|
|
2642
|
+
e.value.dialog.mode == "drawer" && F.value ? (s(), B("div", vl, [
|
|
2646
2643
|
G(Le, x({
|
|
2647
2644
|
modelValue: F.value,
|
|
2648
2645
|
"onUpdate:modelValue": r[10] || (r[10] = (N) => F.value = N)
|
|
2649
|
-
}, o(
|
|
2650
|
-
header:
|
|
2646
|
+
}, o(_e)(e.value.dialog, (N) => !["width"].includes(N))), {
|
|
2647
|
+
header: g(() => [
|
|
2651
2648
|
Q("div", yl, [
|
|
2652
2649
|
Q("div", hl, [
|
|
2653
2650
|
p(l.$slots, "f-header", {}, () => [
|
|
2654
|
-
Q("div", null,
|
|
2651
|
+
Q("div", null, pe(e.value.dialog.title), 1)
|
|
2655
2652
|
], !0)
|
|
2656
2653
|
])
|
|
2657
2654
|
])
|
|
2658
2655
|
]),
|
|
2659
|
-
default:
|
|
2656
|
+
default: g(() => [
|
|
2660
2657
|
p(l.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
2661
2658
|
G(Ye, {
|
|
2662
2659
|
modelValue: e.value,
|
|
2663
2660
|
"onUpdate:modelValue": r[9] || (r[9] = (N) => e.value = N),
|
|
2664
2661
|
onSubmit: L,
|
|
2665
2662
|
onReset: O
|
|
2666
|
-
},
|
|
2663
|
+
}, de({ _: 2 }, [
|
|
2667
2664
|
U(l.$slots, (N, ue, C) => ({
|
|
2668
2665
|
name: ue,
|
|
2669
|
-
fn:
|
|
2670
|
-
p(l.$slots, ue, { model:
|
|
2666
|
+
fn: g((Y) => [
|
|
2667
|
+
p(l.$slots, ue, { model: Y }, void 0, !0)
|
|
2671
2668
|
])
|
|
2672
2669
|
}))
|
|
2673
2670
|
]), 1032, ["modelValue"])
|
|
@@ -2675,19 +2672,19 @@ const tl = {
|
|
|
2675
2672
|
]),
|
|
2676
2673
|
_: 3
|
|
2677
2674
|
}, 16, ["modelValue"])
|
|
2678
|
-
])) :
|
|
2679
|
-
|
|
2675
|
+
])) : ve("", !0),
|
|
2676
|
+
pt(G(Ye, {
|
|
2680
2677
|
modelValue: e.value,
|
|
2681
2678
|
"onUpdate:modelValue": r[11] || (r[11] = (N) => e.value = N),
|
|
2682
2679
|
onSubmit: L,
|
|
2683
2680
|
onReset: O
|
|
2684
2681
|
}, null, 8, ["modelValue"]), [
|
|
2685
|
-
[
|
|
2682
|
+
[vt, !1]
|
|
2686
2683
|
])
|
|
2687
2684
|
], 64);
|
|
2688
2685
|
};
|
|
2689
2686
|
}
|
|
2690
|
-
}), bl = /* @__PURE__ */ Ae(gl, [["__scopeId", "data-v-
|
|
2687
|
+
}), bl = /* @__PURE__ */ Ae(gl, [["__scopeId", "data-v-23ac23e4"]]), $l = { class: "g-tree-table" }, El = { class: "g-tree-container" }, wl = { class: "g-tree-table-container" }, _l = /* @__PURE__ */ Object.assign({
|
|
2691
2688
|
name: "g-tree-table",
|
|
2692
2689
|
inheritAttrs: !1
|
|
2693
2690
|
}, {
|
|
@@ -2698,66 +2695,66 @@ const tl = {
|
|
|
2698
2695
|
},
|
|
2699
2696
|
emits: /* @__PURE__ */ Se(["load"], ["update:modelValue"]),
|
|
2700
2697
|
setup(m, { emit: f }) {
|
|
2701
|
-
var
|
|
2702
|
-
const t = f, e = Oe(m, "modelValue"), a =
|
|
2698
|
+
var ne, V, u;
|
|
2699
|
+
const t = f, e = Oe(m, "modelValue"), a = ye(((ne = He()) == null ? void 0 : ne.width) || "180px"), v = ye(((V = He()) == null ? void 0 : V.search) === void 0 ? !0 : (u = He()) == null ? void 0 : u.search), F = ye({}), T = ye(""), q = ye(null), E = (A, K) => A ? K.label.includes(A) : !0, _ = (A, K) => {
|
|
2703
2700
|
t("load", F.value, A, K);
|
|
2704
|
-
},
|
|
2701
|
+
}, z = (A) => {
|
|
2705
2702
|
F.value = A, e.value.table.load();
|
|
2706
2703
|
};
|
|
2707
|
-
return
|
|
2704
|
+
return ct(T, (A) => {
|
|
2708
2705
|
q.value.filter(A);
|
|
2709
2706
|
}), (A, K) => {
|
|
2710
|
-
const ee = R("el-input"),
|
|
2711
|
-
return
|
|
2707
|
+
const ee = R("el-input"), se = R("el-tree"), ce = R("g-table");
|
|
2708
|
+
return s(), B("div", $l, [
|
|
2712
2709
|
Q("div", {
|
|
2713
2710
|
class: "g-tree-left",
|
|
2714
|
-
style:
|
|
2711
|
+
style: Fe({ width: a.value })
|
|
2715
2712
|
}, [
|
|
2716
|
-
v.value ? (
|
|
2713
|
+
v.value ? (s(), S(ee, {
|
|
2717
2714
|
key: 0,
|
|
2718
2715
|
modelValue: T.value,
|
|
2719
|
-
"onUpdate:modelValue": K[0] || (K[0] = (
|
|
2716
|
+
"onUpdate:modelValue": K[0] || (K[0] = (ie) => T.value = ie),
|
|
2720
2717
|
style: { width: "100%" },
|
|
2721
2718
|
placeholder: "输入节点查询",
|
|
2722
2719
|
clearable: ""
|
|
2723
|
-
}, null, 8, ["modelValue"])) :
|
|
2720
|
+
}, null, 8, ["modelValue"])) : ve("", !0),
|
|
2724
2721
|
Q("div", El, [
|
|
2725
|
-
G(
|
|
2722
|
+
G(se, x({
|
|
2726
2723
|
style: { width: a.value },
|
|
2727
2724
|
"filter-node-method": E,
|
|
2728
2725
|
"expand-on-click-node": !1,
|
|
2729
2726
|
ref_key: "treeRef",
|
|
2730
2727
|
ref: q,
|
|
2731
|
-
onNodeClick:
|
|
2732
|
-
}, A.$attrs),
|
|
2733
|
-
default:
|
|
2728
|
+
onNodeClick: z
|
|
2729
|
+
}, A.$attrs), de({
|
|
2730
|
+
default: g(({ node: ie, data: re }) => [
|
|
2734
2731
|
p(A.$slots, "tree", {
|
|
2735
|
-
node:
|
|
2736
|
-
data:
|
|
2732
|
+
node: ie,
|
|
2733
|
+
data: re
|
|
2737
2734
|
}, () => [
|
|
2738
|
-
Q("span", null,
|
|
2735
|
+
Q("span", null, pe(ie.label), 1)
|
|
2739
2736
|
], !0)
|
|
2740
2737
|
]),
|
|
2741
2738
|
_: 2
|
|
2742
2739
|
}, [
|
|
2743
|
-
U(A.$slots, (
|
|
2744
|
-
name:
|
|
2745
|
-
fn:
|
|
2746
|
-
p(A.$slots,
|
|
2740
|
+
U(A.$slots, (ie, re, d) => ({
|
|
2741
|
+
name: re,
|
|
2742
|
+
fn: g((D) => [
|
|
2743
|
+
p(A.$slots, re, { data: D }, void 0, !0)
|
|
2747
2744
|
])
|
|
2748
2745
|
}))
|
|
2749
2746
|
]), 1040, ["style"])
|
|
2750
2747
|
])
|
|
2751
2748
|
], 4),
|
|
2752
2749
|
Q("div", wl, [
|
|
2753
|
-
G(
|
|
2750
|
+
G(ce, x({
|
|
2754
2751
|
modelValue: e.value,
|
|
2755
|
-
"onUpdate:modelValue": K[1] || (K[1] = (
|
|
2756
|
-
}, A.$attrs, { onLoad: _ }),
|
|
2757
|
-
U(A.$slots, (
|
|
2758
|
-
name:
|
|
2759
|
-
fn:
|
|
2760
|
-
p(A.$slots,
|
|
2752
|
+
"onUpdate:modelValue": K[1] || (K[1] = (ie) => e.value = ie)
|
|
2753
|
+
}, A.$attrs, { onLoad: _ }), de({ _: 2 }, [
|
|
2754
|
+
U(A.$slots, (ie, re, d) => ({
|
|
2755
|
+
name: re,
|
|
2756
|
+
fn: g((D) => [
|
|
2757
|
+
p(A.$slots, re, { data: D }, void 0, !0)
|
|
2761
2758
|
])
|
|
2762
2759
|
}))
|
|
2763
2760
|
]), 1040, ["modelValue"])
|
|
@@ -2789,35 +2786,35 @@ const tl = {
|
|
|
2789
2786
|
},
|
|
2790
2787
|
setup(m) {
|
|
2791
2788
|
const f = m;
|
|
2792
|
-
return (t, e) => f.title ? (
|
|
2793
|
-
(
|
|
2794
|
-
style:
|
|
2789
|
+
return (t, e) => f.title ? (s(), B("div", Cl, [
|
|
2790
|
+
(s(!0), B(W, null, U(f.columns, (a) => (s(), B("span", {
|
|
2791
|
+
style: Fe({ width: (a == null ? void 0 : a.width) || dt, ...a == null ? void 0 : a.titleStyle }),
|
|
2795
2792
|
key: a.key
|
|
2796
2793
|
}, [
|
|
2797
2794
|
p(t.$slots, a.key + "-title", { col: a }, () => [
|
|
2798
|
-
|
|
2795
|
+
ge(pe(a.label), 1)
|
|
2799
2796
|
], !0)
|
|
2800
2797
|
], 4))), 128))
|
|
2801
|
-
])) : (
|
|
2802
|
-
(
|
|
2803
|
-
style:
|
|
2798
|
+
])) : (s(), B("div", Dl, [
|
|
2799
|
+
(s(!0), B(W, null, U(f.columns, (a) => (s(), B("span", {
|
|
2800
|
+
style: Fe({ width: (a == null ? void 0 : a.width) || dt, textAlign: (a == null ? void 0 : a.align) || "center", ...a == null ? void 0 : a.style }),
|
|
2804
2801
|
key: a.key
|
|
2805
2802
|
}, [
|
|
2806
2803
|
p(t.$slots, a.key, { col: a }, () => [
|
|
2807
|
-
|
|
2804
|
+
ge(pe(m.data.option[a.key]), 1)
|
|
2808
2805
|
], !0)
|
|
2809
2806
|
], 4))), 128))
|
|
2810
2807
|
]));
|
|
2811
2808
|
}
|
|
2812
|
-
}), Fl = /* @__PURE__ */ Ae(Vl, [["__scopeId", "data-v-422d5210"]]), Tl = Object.freeze({}),
|
|
2809
|
+
}), Fl = /* @__PURE__ */ Ae(Vl, [["__scopeId", "data-v-422d5210"]]), Tl = Object.freeze({}), bt = [bl, Ye, kl, Fl];
|
|
2813
2810
|
let Ke = {};
|
|
2814
2811
|
const Ul = {
|
|
2815
2812
|
install: (m, f = {}) => {
|
|
2816
|
-
Ke = Object.freeze({ ...Tl, ...f }),
|
|
2813
|
+
Ke = Object.freeze({ ...Tl, ...f }), bt.forEach((t) => {
|
|
2817
2814
|
m.component(t.name, t);
|
|
2818
2815
|
}), m.provide("options", Ke), m.config.globalProperties.$openModal = et;
|
|
2819
2816
|
}
|
|
2820
|
-
}, Ml = (m) => ({ dialog:
|
|
2817
|
+
}, Ml = (m) => ({ dialog: wt, drawer: _t })[m] || null, et = (m = {}, f = "dialog") => {
|
|
2821
2818
|
if (typeof document > "u") return () => {
|
|
2822
2819
|
};
|
|
2823
2820
|
const t = document.createElement("div");
|
|
@@ -2826,7 +2823,7 @@ const Ul = {
|
|
|
2826
2823
|
const a = Ml(f);
|
|
2827
2824
|
if (!a) return () => {
|
|
2828
2825
|
};
|
|
2829
|
-
const v =
|
|
2826
|
+
const v = ye(!0), F = Ft({
|
|
2830
2827
|
setup() {
|
|
2831
2828
|
return e = () => {
|
|
2832
2829
|
v.value = !1, setTimeout(() => {
|
|
@@ -2834,7 +2831,7 @@ const Ul = {
|
|
|
2834
2831
|
}, 300);
|
|
2835
2832
|
}, () => {
|
|
2836
2833
|
var T, q, E;
|
|
2837
|
-
return
|
|
2834
|
+
return De(a, {
|
|
2838
2835
|
modelValue: v.value,
|
|
2839
2836
|
"onUpdate:modelValue": (_) => v.value = _,
|
|
2840
2837
|
...m,
|
|
@@ -2848,11 +2845,11 @@ const Ul = {
|
|
|
2848
2845
|
};
|
|
2849
2846
|
}
|
|
2850
2847
|
});
|
|
2851
|
-
return
|
|
2848
|
+
return bt.forEach((T) => {
|
|
2852
2849
|
F.component(T.name, T);
|
|
2853
|
-
}), F.provide("options", Ke), F.use(
|
|
2850
|
+
}), F.provide("options", Ke), F.use(Et, { locale: St }), document.body.appendChild(t), F.mount(t), e;
|
|
2854
2851
|
};
|
|
2855
|
-
function
|
|
2852
|
+
function $t(m, f = window.innerWidth) {
|
|
2856
2853
|
if (typeof m == "number")
|
|
2857
2854
|
return m;
|
|
2858
2855
|
if (m.endsWith("px"))
|
|
@@ -2874,17 +2871,17 @@ function bt(m, f = window.innerWidth) {
|
|
|
2874
2871
|
throw new Error("Invalid calc expression");
|
|
2875
2872
|
};
|
|
2876
2873
|
const a = m.slice(5, -1).trim();
|
|
2877
|
-
return v(a.replace(/([0-9.]+)([a-z%]+)/g, (T, q, E) =>
|
|
2874
|
+
return v(a.replace(/([0-9.]+)([a-z%]+)/g, (T, q, E) => $t(q + E, f)));
|
|
2878
2875
|
}
|
|
2879
2876
|
throw new Error("Unsupported unit in value: " + m);
|
|
2880
2877
|
}
|
|
2881
|
-
const
|
|
2878
|
+
const $e = (...m) => {
|
|
2882
2879
|
const f = {}, t = (e, a) => (Object.keys(a).forEach((v) => {
|
|
2883
2880
|
e[v] = typeof a[v] == "object" && !Array.isArray(a[v]) ? t(e[v] || {}, a[v]) : a[v];
|
|
2884
2881
|
}), e);
|
|
2885
2882
|
return m.forEach((e = {}) => t(f, e)), f;
|
|
2886
2883
|
};
|
|
2887
|
-
function
|
|
2884
|
+
function _e(m, f = (t, e) => f(t, e)) {
|
|
2888
2885
|
const t = {};
|
|
2889
2886
|
for (const e in m)
|
|
2890
2887
|
m.hasOwnProperty(e) && f(e, m[e]) && (t[e] = m[e]);
|
|
@@ -2926,7 +2923,7 @@ function Sl(m) {
|
|
|
2926
2923
|
const f = m.toFixed(2), [t, e] = f.split(".");
|
|
2927
2924
|
return `${t.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${e}`;
|
|
2928
2925
|
}
|
|
2929
|
-
const
|
|
2926
|
+
const fe = {
|
|
2930
2927
|
RADIO: "radio",
|
|
2931
2928
|
RADIOBUTTON: "radio-button",
|
|
2932
2929
|
CHECKBOX: "checkbox",
|
|
@@ -2956,13 +2953,13 @@ const ce = {
|
|
|
2956
2953
|
TEL: "tel"
|
|
2957
2954
|
};
|
|
2958
2955
|
export {
|
|
2959
|
-
|
|
2960
|
-
|
|
2956
|
+
fe as CT,
|
|
2957
|
+
$t as convertToPx,
|
|
2961
2958
|
Ul as default,
|
|
2962
|
-
|
|
2959
|
+
_e as filterObject,
|
|
2963
2960
|
ql as findTreeLabelByValue,
|
|
2964
2961
|
Sl as formatAmount,
|
|
2965
|
-
|
|
2962
|
+
$e as mergeObjects,
|
|
2966
2963
|
tt as moneyToChinese,
|
|
2967
2964
|
et as openModal
|
|
2968
2965
|
};
|