vue-2024-ui 0.0.84 → 0.0.85
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 +465 -463
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _t, { ElForm as We, ElButtonGroup as Ge, ElButton as _e, ElPopover as Ke, ElMessage as Te, ElMessageBox as vt, ElDialog as kt, ElDrawer as Ct } from "element-plus";
|
|
2
|
-
import { mergeModels as Be, useModel as Ie, ref as
|
|
3
|
-
import { FullScreen as
|
|
2
|
+
import { mergeModels as Be, useModel as Ie, ref as ce, nextTick as yt, onMounted as Ne, resolveComponent as j, openBlock as r, createElementBlock as q, unref as L, createBlock as S, mergeProps as F, withCtx as v, renderSlot as m, Fragment as P, renderList as I, createTextVNode as we, toDisplayString as Ee, createSlots as fe, createVNode as Z, createCommentVNode as $e, normalizeProps as Qe, createElementVNode as J, useSlots as ht, inject as rt, useAttrs as ut, onUnmounted as Dt, computed as Ye, normalizeStyle as xe, withModifiers as ct, guardReactiveProps as ft, resolveDynamicComponent as Ae, Transition as Vt, withDirectives as Mt, vShow as Tt, h as qe, onBeforeUnmount as Ft, normalizeClass as gt, watchEffect as St, watch as qt, createApp as Ot } from "vue";
|
|
3
|
+
import { FullScreen as xt, Remove as At } from "@element-plus/icons-vue";
|
|
4
4
|
import bt from "sortablejs";
|
|
5
5
|
import { Dexie as Bt } from "dexie";
|
|
6
6
|
var It = {
|
|
@@ -189,66 +189,66 @@ var $t = { exports: {} };
|
|
|
189
189
|
(function(t, e) {
|
|
190
190
|
c.exports = e();
|
|
191
191
|
})(Yt, function() {
|
|
192
|
-
var t = 1e3, e = 6e4, o = 36e5, i = "millisecond", Y = "second", M = "minute", T = "hour", $ = "day",
|
|
192
|
+
var t = 1e3, e = 6e4, o = 36e5, i = "millisecond", Y = "second", M = "minute", T = "hour", $ = "day", D = "week", z = "month", ae = "quarter", R = "year", E = "date", g = "Invalid Date", k = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, K = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, oe = { 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(A) {
|
|
193
193
|
var b = ["th", "st", "nd", "rd"], h = A % 100;
|
|
194
194
|
return "[" + A + (b[(h - 20) % 10] || b[h] || b[0]) + "]";
|
|
195
195
|
} }, te = function(A, b, h) {
|
|
196
|
-
var
|
|
197
|
-
return !
|
|
198
|
-
},
|
|
199
|
-
var b = -A.utcOffset(), h = Math.abs(b),
|
|
200
|
-
return (b <= 0 ? "+" : "-") + te(
|
|
196
|
+
var w = String(A);
|
|
197
|
+
return !w || w.length >= b ? A : "" + Array(b + 1 - w.length).join(h) + A;
|
|
198
|
+
}, me = { s: te, z: function(A) {
|
|
199
|
+
var b = -A.utcOffset(), h = Math.abs(b), w = Math.floor(h / 60), n = h % 60;
|
|
200
|
+
return (b <= 0 ? "+" : "-") + te(w, 2, "0") + ":" + te(n, 2, "0");
|
|
201
201
|
}, m: function A(b, h) {
|
|
202
202
|
if (b.date() < h.date()) return -A(h, b);
|
|
203
|
-
var
|
|
204
|
-
return +(-(
|
|
203
|
+
var w = 12 * (h.year() - b.year()) + (h.month() - b.month()), n = b.clone().add(w, z), s = h - n < 0, x = b.clone().add(w + (s ? -1 : 1), z);
|
|
204
|
+
return +(-(w + (h - n) / (s ? n - x : x - n)) || 0);
|
|
205
205
|
}, a: function(A) {
|
|
206
206
|
return A < 0 ? Math.ceil(A) || 0 : Math.floor(A);
|
|
207
207
|
}, p: function(A) {
|
|
208
|
-
return { M: z, y: R, w:
|
|
208
|
+
return { M: z, y: R, w: D, d: $, D: E, h: T, m: M, s: Y, ms: i, Q: ae }[A] || String(A || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(A) {
|
|
210
210
|
return A === void 0;
|
|
211
211
|
} }, pe = "en", ve = {};
|
|
212
212
|
ve[pe] = oe;
|
|
213
213
|
var f = "$isDayjsObject", V = function(A) {
|
|
214
214
|
return A instanceof ee || !(!A || !A[f]);
|
|
215
|
-
},
|
|
215
|
+
}, C = function A(b, h, w) {
|
|
216
216
|
var n;
|
|
217
217
|
if (!b) return pe;
|
|
218
218
|
if (typeof b == "string") {
|
|
219
219
|
var s = b.toLowerCase();
|
|
220
220
|
ve[s] && (n = s), h && (ve[s] = h, n = s);
|
|
221
|
-
var
|
|
222
|
-
if (!n &&
|
|
221
|
+
var x = b.split("-");
|
|
222
|
+
if (!n && x.length > 1) return A(x[0]);
|
|
223
223
|
} else {
|
|
224
224
|
var H = b.name;
|
|
225
225
|
ve[H] = b, n = H;
|
|
226
226
|
}
|
|
227
|
-
return !
|
|
227
|
+
return !w && n && (pe = n), n || !w && pe;
|
|
228
228
|
}, y = function(A, b) {
|
|
229
229
|
if (V(A)) return A.clone();
|
|
230
230
|
var h = typeof b == "object" ? b : {};
|
|
231
231
|
return h.date = A, h.args = arguments, new ee(h);
|
|
232
|
-
}, B =
|
|
233
|
-
B.l =
|
|
232
|
+
}, B = me;
|
|
233
|
+
B.l = C, B.i = V, B.w = function(A, b) {
|
|
234
234
|
return y(A, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
|
|
235
235
|
};
|
|
236
236
|
var ee = function() {
|
|
237
237
|
function A(h) {
|
|
238
|
-
this.$L =
|
|
238
|
+
this.$L = C(h.locale, null, !0), this.parse(h), this.$x = this.$x || h.x || {}, this[f] = !0;
|
|
239
239
|
}
|
|
240
240
|
var b = A.prototype;
|
|
241
241
|
return b.parse = function(h) {
|
|
242
|
-
this.$d = function(
|
|
243
|
-
var n =
|
|
242
|
+
this.$d = function(w) {
|
|
243
|
+
var n = w.date, s = w.utc;
|
|
244
244
|
if (n === null) return /* @__PURE__ */ new Date(NaN);
|
|
245
245
|
if (B.u(n)) return /* @__PURE__ */ new Date();
|
|
246
246
|
if (n instanceof Date) return new Date(n);
|
|
247
247
|
if (typeof n == "string" && !/Z$/i.test(n)) {
|
|
248
|
-
var
|
|
249
|
-
if (
|
|
250
|
-
var H =
|
|
251
|
-
return s ? new Date(Date.UTC(
|
|
248
|
+
var x = n.match(k);
|
|
249
|
+
if (x) {
|
|
250
|
+
var H = x[2] - 1 || 0, X = (x[7] || "0").substring(0, 3);
|
|
251
|
+
return s ? new Date(Date.UTC(x[1], H, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, X)) : new Date(x[1], H, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, X);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
return new Date(n);
|
|
@@ -260,36 +260,36 @@ var $t = { exports: {} };
|
|
|
260
260
|
return B;
|
|
261
261
|
}, b.isValid = function() {
|
|
262
262
|
return this.$d.toString() !== g;
|
|
263
|
-
}, b.isSame = function(h,
|
|
263
|
+
}, b.isSame = function(h, w) {
|
|
264
264
|
var n = y(h);
|
|
265
|
-
return this.startOf(
|
|
266
|
-
}, b.isAfter = function(h,
|
|
267
|
-
return y(h) < this.startOf(
|
|
268
|
-
}, b.isBefore = function(h,
|
|
269
|
-
return this.endOf(
|
|
270
|
-
}, b.$g = function(h,
|
|
271
|
-
return B.u(h) ? this[
|
|
265
|
+
return this.startOf(w) <= n && n <= this.endOf(w);
|
|
266
|
+
}, b.isAfter = function(h, w) {
|
|
267
|
+
return y(h) < this.startOf(w);
|
|
268
|
+
}, b.isBefore = function(h, w) {
|
|
269
|
+
return this.endOf(w) < y(h);
|
|
270
|
+
}, b.$g = function(h, w, n) {
|
|
271
|
+
return B.u(h) ? this[w] : this.set(n, h);
|
|
272
272
|
}, b.unix = function() {
|
|
273
273
|
return Math.floor(this.valueOf() / 1e3);
|
|
274
274
|
}, b.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
|
-
}, b.startOf = function(h,
|
|
277
|
-
var n = this, s = !!B.u(
|
|
276
|
+
}, b.startOf = function(h, w) {
|
|
277
|
+
var n = this, s = !!B.u(w) || w, x = B.p(h), H = function(De, u) {
|
|
278
278
|
var N = B.w(n.$u ? Date.UTC(n.$y, u, De) : new Date(n.$y, u, De), n);
|
|
279
279
|
return s ? N : N.endOf($);
|
|
280
280
|
}, X = function(De, u) {
|
|
281
281
|
return B.w(n.toDate()[De].apply(n.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(u)), n);
|
|
282
|
-
}, se = this.$W,
|
|
283
|
-
switch (
|
|
282
|
+
}, se = this.$W, de = this.$M, he = this.$D, ye = "set" + (this.$u ? "UTC" : "");
|
|
283
|
+
switch (x) {
|
|
284
284
|
case R:
|
|
285
285
|
return s ? H(1, 0) : H(31, 11);
|
|
286
286
|
case z:
|
|
287
|
-
return s ? H(1,
|
|
288
|
-
case
|
|
287
|
+
return s ? H(1, de) : H(0, de + 1);
|
|
288
|
+
case D:
|
|
289
289
|
var Ce = this.$locale().weekStart || 0, Fe = (se < Ce ? se + 7 : se) - Ce;
|
|
290
|
-
return H(s ? he - Fe : he + (6 - Fe),
|
|
290
|
+
return H(s ? he - Fe : he + (6 - Fe), de);
|
|
291
291
|
case $:
|
|
292
|
-
case
|
|
292
|
+
case E:
|
|
293
293
|
return X(ye + "Hours", 0);
|
|
294
294
|
case T:
|
|
295
295
|
return X(ye + "Minutes", 1);
|
|
@@ -302,37 +302,37 @@ var $t = { exports: {} };
|
|
|
302
302
|
}
|
|
303
303
|
}, b.endOf = function(h) {
|
|
304
304
|
return this.startOf(h, !1);
|
|
305
|
-
}, b.$set = function(h,
|
|
306
|
-
var n, s = B.p(h),
|
|
305
|
+
}, b.$set = function(h, w) {
|
|
306
|
+
var n, s = B.p(h), x = "set" + (this.$u ? "UTC" : ""), H = (n = {}, n[$] = x + "Date", n[E] = x + "Date", n[z] = x + "Month", n[R] = x + "FullYear", n[T] = x + "Hours", n[M] = x + "Minutes", n[Y] = x + "Seconds", n[i] = x + "Milliseconds", n)[s], X = s === $ ? this.$D + (w - this.$W) : w;
|
|
307
307
|
if (s === z || s === R) {
|
|
308
|
-
var se = this.clone().set(
|
|
309
|
-
se.$d[H](X), se.init(), this.$d = se.set(
|
|
308
|
+
var se = this.clone().set(E, 1);
|
|
309
|
+
se.$d[H](X), se.init(), this.$d = se.set(E, Math.min(this.$D, se.daysInMonth())).$d;
|
|
310
310
|
} else H && this.$d[H](X);
|
|
311
311
|
return this.init(), this;
|
|
312
|
-
}, b.set = function(h,
|
|
313
|
-
return this.clone().$set(h,
|
|
312
|
+
}, b.set = function(h, w) {
|
|
313
|
+
return this.clone().$set(h, w);
|
|
314
314
|
}, b.get = function(h) {
|
|
315
315
|
return this[B.p(h)]();
|
|
316
|
-
}, b.add = function(h,
|
|
316
|
+
}, b.add = function(h, w) {
|
|
317
317
|
var n, s = this;
|
|
318
318
|
h = Number(h);
|
|
319
|
-
var
|
|
319
|
+
var x = B.p(w), H = function(de) {
|
|
320
320
|
var he = y(s);
|
|
321
|
-
return B.w(he.date(he.date() + Math.round(
|
|
321
|
+
return B.w(he.date(he.date() + Math.round(de * h)), s);
|
|
322
322
|
};
|
|
323
|
-
if (
|
|
324
|
-
if (
|
|
325
|
-
if (
|
|
326
|
-
if (
|
|
327
|
-
var X = (n = {}, n[M] = e, n[T] = o, n[Y] = t, n)[
|
|
323
|
+
if (x === z) return this.set(z, this.$M + h);
|
|
324
|
+
if (x === R) return this.set(R, this.$y + h);
|
|
325
|
+
if (x === $) return H(1);
|
|
326
|
+
if (x === D) return H(7);
|
|
327
|
+
var X = (n = {}, n[M] = e, n[T] = o, n[Y] = t, n)[x] || 1, se = this.$d.getTime() + h * X;
|
|
328
328
|
return B.w(se, this);
|
|
329
|
-
}, b.subtract = function(h,
|
|
330
|
-
return this.add(-1 * h,
|
|
329
|
+
}, b.subtract = function(h, w) {
|
|
330
|
+
return this.add(-1 * h, w);
|
|
331
331
|
}, b.format = function(h) {
|
|
332
|
-
var
|
|
332
|
+
var w = this, n = this.$locale();
|
|
333
333
|
if (!this.isValid()) return n.invalidDate || g;
|
|
334
|
-
var s = h || "YYYY-MM-DDTHH:mm:ssZ",
|
|
335
|
-
return u && (u[N] || u(
|
|
334
|
+
var s = h || "YYYY-MM-DDTHH:mm:ssZ", x = B.z(this), H = this.$H, X = this.$m, se = this.$M, de = n.weekdays, he = n.months, ye = n.meridiem, Ce = function(u, N, ie, Ve) {
|
|
335
|
+
return u && (u[N] || u(w, s)) || ie[N].slice(0, Ve);
|
|
336
336
|
}, Fe = function(u) {
|
|
337
337
|
return B.s(H % 12 || 12, u, "0");
|
|
338
338
|
}, De = ye || function(u, N, ie) {
|
|
@@ -343,9 +343,9 @@ var $t = { exports: {} };
|
|
|
343
343
|
return N || function(ie) {
|
|
344
344
|
switch (ie) {
|
|
345
345
|
case "YY":
|
|
346
|
-
return String(
|
|
346
|
+
return String(w.$y).slice(-2);
|
|
347
347
|
case "YYYY":
|
|
348
|
-
return B.s(
|
|
348
|
+
return B.s(w.$y, 4, "0");
|
|
349
349
|
case "M":
|
|
350
350
|
return se + 1;
|
|
351
351
|
case "MM":
|
|
@@ -355,17 +355,17 @@ var $t = { exports: {} };
|
|
|
355
355
|
case "MMMM":
|
|
356
356
|
return Ce(he, se);
|
|
357
357
|
case "D":
|
|
358
|
-
return
|
|
358
|
+
return w.$D;
|
|
359
359
|
case "DD":
|
|
360
|
-
return B.s(
|
|
360
|
+
return B.s(w.$D, 2, "0");
|
|
361
361
|
case "d":
|
|
362
|
-
return String(
|
|
362
|
+
return String(w.$W);
|
|
363
363
|
case "dd":
|
|
364
|
-
return Ce(n.weekdaysMin,
|
|
364
|
+
return Ce(n.weekdaysMin, w.$W, de, 2);
|
|
365
365
|
case "ddd":
|
|
366
|
-
return Ce(n.weekdaysShort,
|
|
366
|
+
return Ce(n.weekdaysShort, w.$W, de, 3);
|
|
367
367
|
case "dddd":
|
|
368
|
-
return
|
|
368
|
+
return de[w.$W];
|
|
369
369
|
case "H":
|
|
370
370
|
return String(H);
|
|
371
371
|
case "HH":
|
|
@@ -383,22 +383,22 @@ var $t = { exports: {} };
|
|
|
383
383
|
case "mm":
|
|
384
384
|
return B.s(X, 2, "0");
|
|
385
385
|
case "s":
|
|
386
|
-
return String(
|
|
386
|
+
return String(w.$s);
|
|
387
387
|
case "ss":
|
|
388
|
-
return B.s(
|
|
388
|
+
return B.s(w.$s, 2, "0");
|
|
389
389
|
case "SSS":
|
|
390
|
-
return B.s(
|
|
390
|
+
return B.s(w.$ms, 3, "0");
|
|
391
391
|
case "Z":
|
|
392
|
-
return
|
|
392
|
+
return x;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
|
-
}(u) ||
|
|
395
|
+
}(u) || x.replace(":", "");
|
|
396
396
|
});
|
|
397
397
|
}, b.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
|
-
}, b.diff = function(h,
|
|
400
|
-
var s,
|
|
401
|
-
return B.m(
|
|
399
|
+
}, b.diff = function(h, w, n) {
|
|
400
|
+
var s, x = this, H = B.p(w), X = y(h), se = (X.utcOffset() - this.utcOffset()) * e, de = this - X, he = function() {
|
|
401
|
+
return B.m(x, X);
|
|
402
402
|
};
|
|
403
403
|
switch (H) {
|
|
404
404
|
case R:
|
|
@@ -410,32 +410,32 @@ var $t = { exports: {} };
|
|
|
410
410
|
case ae:
|
|
411
411
|
s = he() / 3;
|
|
412
412
|
break;
|
|
413
|
-
case
|
|
414
|
-
s = (
|
|
413
|
+
case D:
|
|
414
|
+
s = (de - se) / 6048e5;
|
|
415
415
|
break;
|
|
416
416
|
case $:
|
|
417
|
-
s = (
|
|
417
|
+
s = (de - se) / 864e5;
|
|
418
418
|
break;
|
|
419
419
|
case T:
|
|
420
|
-
s =
|
|
420
|
+
s = de / o;
|
|
421
421
|
break;
|
|
422
422
|
case M:
|
|
423
|
-
s =
|
|
423
|
+
s = de / e;
|
|
424
424
|
break;
|
|
425
425
|
case Y:
|
|
426
|
-
s =
|
|
426
|
+
s = de / t;
|
|
427
427
|
break;
|
|
428
428
|
default:
|
|
429
|
-
s =
|
|
429
|
+
s = de;
|
|
430
430
|
}
|
|
431
431
|
return n ? s : B.a(s);
|
|
432
432
|
}, b.daysInMonth = function() {
|
|
433
433
|
return this.endOf(z).$D;
|
|
434
434
|
}, b.$locale = function() {
|
|
435
435
|
return ve[this.$L];
|
|
436
|
-
}, b.locale = function(h,
|
|
436
|
+
}, b.locale = function(h, w) {
|
|
437
437
|
if (!h) return this.$L;
|
|
438
|
-
var n = this.clone(), s =
|
|
438
|
+
var n = this.clone(), s = C(h, w, !0);
|
|
439
439
|
return s && (n.$L = s), n;
|
|
440
440
|
}, b.clone = function() {
|
|
441
441
|
return B.w(this.$d, this);
|
|
@@ -449,13 +449,13 @@ var $t = { exports: {} };
|
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, A;
|
|
451
451
|
}(), ne = ee.prototype;
|
|
452
|
-
return y.prototype = ne, [["$ms", i], ["$s", Y], ["$m", M], ["$H", T], ["$W", $], ["$M", z], ["$y", R], ["$D",
|
|
452
|
+
return y.prototype = ne, [["$ms", i], ["$s", Y], ["$m", M], ["$H", T], ["$W", $], ["$M", z], ["$y", R], ["$D", E]].forEach(function(A) {
|
|
453
453
|
ne[A[1]] = function(b) {
|
|
454
454
|
return this.$g(b, A[0], A[1]);
|
|
455
455
|
};
|
|
456
456
|
}), y.extend = function(A, b) {
|
|
457
457
|
return A.$i || (A(b, ee, y), A.$i = !0), y;
|
|
458
|
-
}, y.locale =
|
|
458
|
+
}, y.locale = C, y.isDayjs = V, y.unix = function(A) {
|
|
459
459
|
return y(1e3 * A);
|
|
460
460
|
}, y.en = ve[pe], y.Ls = ve, y.p = {}, y;
|
|
461
461
|
});
|
|
@@ -475,7 +475,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:modelValue"],
|
|
477
477
|
setup(c) {
|
|
478
|
-
const d = Ie(c, "modelValue"), t = c, e =
|
|
478
|
+
const d = Ie(c, "modelValue"), t = c, e = ce(t.item || {}), o = ce(t.ctrlKey), i = ce(t.ctrlType), Y = ce(t.model), M = ce([]), T = ce([]), $ = () => Object.keys(ht()).filter((g) => g.startsWith(`${t.t}-${o}-`)).map((g) => g.replace(`${t.t}-${o}-`, "")), D = (g) => [
|
|
479
479
|
"year",
|
|
480
480
|
"years",
|
|
481
481
|
"month",
|
|
@@ -502,26 +502,26 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
502
502
|
daterange: "YYYY-MM-DD",
|
|
503
503
|
monthrange: "YYYY-MM",
|
|
504
504
|
yearrange: "YYYY"
|
|
505
|
-
})[g] || "YYYY-MM-DD", ae =
|
|
505
|
+
})[g] || "YYYY-MM-DD", ae = ce({
|
|
506
506
|
filterable: !0,
|
|
507
507
|
remote: !!(e.value && e.value["remote-method"]),
|
|
508
508
|
...e.value
|
|
509
|
-
}), R =
|
|
510
|
-
e.value["remote-method"](g, (
|
|
509
|
+
}), R = ce((g) => {
|
|
510
|
+
e.value["remote-method"](g, (k) => {
|
|
511
511
|
yt(() => {
|
|
512
|
-
T.value =
|
|
512
|
+
T.value = k;
|
|
513
513
|
});
|
|
514
514
|
});
|
|
515
|
-
}),
|
|
516
|
-
var
|
|
515
|
+
}), E = async (g = "options") => {
|
|
516
|
+
var k;
|
|
517
517
|
try {
|
|
518
|
-
const K = await ((
|
|
518
|
+
const K = await ((k = e.value) == null ? void 0 : k.getDicts(t.formInfo));
|
|
519
519
|
if (typeof K == "string")
|
|
520
520
|
T.value = [{ label: K, value: d.value }];
|
|
521
521
|
else {
|
|
522
|
-
const oe = K == null ? void 0 : K.map((te,
|
|
522
|
+
const oe = K == null ? void 0 : K.map((te, me) => ({
|
|
523
523
|
...te,
|
|
524
|
-
value: te.value ?? te.label ??
|
|
524
|
+
value: te.value ?? te.label ?? me,
|
|
525
525
|
label: te.label || "未知选项"
|
|
526
526
|
}));
|
|
527
527
|
T.value = oe || [];
|
|
@@ -533,26 +533,26 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
533
533
|
return Ne(async () => {
|
|
534
534
|
var K, oe;
|
|
535
535
|
e.value && e.value["remote-method"] && (ae.value["remote-method"] = R), (oe = (K = Y.value[o.value]) == null ? void 0 : K.options) != null && oe.length && (T.value = Y.value[o.value].options);
|
|
536
|
-
const g = (te,
|
|
537
|
-
typeof e.value.getDicts == "function" &&
|
|
538
|
-
console.error(`Failed to load ${
|
|
536
|
+
const g = (te, me = "options", pe = Y.value[o.value]) => {
|
|
537
|
+
typeof e.value.getDicts == "function" && E(me).catch((ve) => {
|
|
538
|
+
console.error(`Failed to load ${me} for ${te}:`, ve);
|
|
539
539
|
});
|
|
540
540
|
};
|
|
541
541
|
["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(i.value) && g(i.value), i.value === be.TREESELECT && await (async () => {
|
|
542
542
|
try {
|
|
543
543
|
typeof e.value.getDicts == "function" ? M.value = await e.value.getDicts(t.formInfo) : M.value = T.value;
|
|
544
|
-
} catch (
|
|
545
|
-
console.error("Failed to load data for tree-select:",
|
|
544
|
+
} catch (me) {
|
|
545
|
+
console.error("Failed to load data for tree-select:", me);
|
|
546
546
|
}
|
|
547
547
|
})();
|
|
548
|
-
}), (g,
|
|
548
|
+
}), (g, k) => {
|
|
549
549
|
var Ce, Fe, De;
|
|
550
|
-
const K = j("el-radio"), oe = j("el-radio-group"), te = j("el-radio-button"),
|
|
550
|
+
const K = j("el-radio"), oe = j("el-radio-group"), te = j("el-radio-button"), me = j("el-checkbox"), pe = j("el-checkbox-group"), ve = j("el-checkbox-button"), f = j("g-select-option"), V = j("el-option"), C = j("el-select"), y = j("el-tree-select"), B = j("el-time-picker"), ee = j("el-time-select"), ne = j("el-date-picker"), A = j("el-color-picker"), b = j("el-rate"), h = j("el-slider"), w = j("el-switch"), n = j("el-transfer"), s = j("el-cascader"), x = j("el-button"), H = j("el-upload"), X = j("el-autocomplete"), se = j("el-input-number"), de = j("el-input"), he = j("el-link"), ye = j("el-tag");
|
|
551
551
|
return r(), q("div", Lt, [
|
|
552
552
|
i.value == L(be).RADIO ? (r(), S(oe, F({
|
|
553
553
|
key: 0,
|
|
554
554
|
modelValue: d.value,
|
|
555
|
-
"onUpdate:modelValue":
|
|
555
|
+
"onUpdate:modelValue": k[0] || (k[0] = (u) => d.value = u)
|
|
556
556
|
}, e.value), {
|
|
557
557
|
default: v(() => [
|
|
558
558
|
m(g.$slots, `${t.t}-${o.value}`, { data: e.value }, () => [
|
|
@@ -568,7 +568,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
568
568
|
}, 16, ["modelValue"])) : i.value == L(be).RADIOBUTTON ? (r(), S(oe, F({
|
|
569
569
|
key: 1,
|
|
570
570
|
modelValue: d.value,
|
|
571
|
-
"onUpdate:modelValue":
|
|
571
|
+
"onUpdate:modelValue": k[1] || (k[1] = (u) => d.value = u)
|
|
572
572
|
}, e.value), {
|
|
573
573
|
default: v(() => [
|
|
574
574
|
m(g.$slots, `${t.t}-${o.value}`, { data: e.value }, () => [
|
|
@@ -581,25 +581,25 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
581
581
|
])
|
|
582
582
|
]),
|
|
583
583
|
_: 3
|
|
584
|
-
}, 16, ["modelValue"])) : i.value == L(be).CHECKBOX ? (r(), S(
|
|
584
|
+
}, 16, ["modelValue"])) : i.value == L(be).CHECKBOX ? (r(), S(me, F({
|
|
585
585
|
key: 2,
|
|
586
586
|
modelValue: d.value,
|
|
587
|
-
"onUpdate:modelValue":
|
|
587
|
+
"onUpdate:modelValue": k[2] || (k[2] = (u) => d.value = u)
|
|
588
588
|
}, e.value), {
|
|
589
589
|
default: v(() => [
|
|
590
590
|
m(g.$slots, `${t.t}-${o.value}`, { data: e.value }, () => [
|
|
591
|
-
|
|
591
|
+
k[20] || (k[20] = we(Ee(" ")))
|
|
592
592
|
])
|
|
593
593
|
]),
|
|
594
594
|
_: 3
|
|
595
595
|
}, 16, ["modelValue"])) : i.value == L(be).CHECKBOXGROUP ? (r(), S(pe, F({
|
|
596
596
|
key: 3,
|
|
597
597
|
modelValue: d.value,
|
|
598
|
-
"onUpdate:modelValue":
|
|
598
|
+
"onUpdate:modelValue": k[3] || (k[3] = (u) => d.value = u)
|
|
599
599
|
}, e.value), {
|
|
600
600
|
default: v(() => [
|
|
601
601
|
m(g.$slots, `${t.t}-${o.value}`, { data: e.value }, () => [
|
|
602
|
-
(r(!0), q(P, null, I(T.value, (u) => (r(), S(
|
|
602
|
+
(r(!0), q(P, null, I(T.value, (u) => (r(), S(me, F({ ref_for: !0 }, u), {
|
|
603
603
|
default: v(() => [
|
|
604
604
|
m(g.$slots, `${t.t}-${o.value}-options`, { option: u }, () => [
|
|
605
605
|
we(Ee(u.label), 1)
|
|
@@ -613,7 +613,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
613
613
|
}, 16, ["modelValue"])) : i.value == L(be).CHECKBOXGROUPBUTTON ? (r(), S(pe, F({
|
|
614
614
|
key: 4,
|
|
615
615
|
modelValue: d.value,
|
|
616
|
-
"onUpdate:modelValue":
|
|
616
|
+
"onUpdate:modelValue": k[4] || (k[4] = (u) => d.value = u)
|
|
617
617
|
}, e.value), {
|
|
618
618
|
default: v(() => [
|
|
619
619
|
m(g.$slots, `${t.t}-${o.value}`, { data: e.value }, () => [
|
|
@@ -626,10 +626,10 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
626
626
|
])
|
|
627
627
|
]),
|
|
628
628
|
_: 3
|
|
629
|
-
}, 16, ["modelValue"])) : i.value === L(be).SELECT ? (r(), S(
|
|
629
|
+
}, 16, ["modelValue"])) : i.value === L(be).SELECT ? (r(), S(C, F({
|
|
630
630
|
key: 5,
|
|
631
631
|
modelValue: d.value,
|
|
632
|
-
"onUpdate:modelValue":
|
|
632
|
+
"onUpdate:modelValue": k[5] || (k[5] = (u) => d.value = u),
|
|
633
633
|
placeholder: Y.value[o.value].label
|
|
634
634
|
}, ae.value), fe({
|
|
635
635
|
default: v(() => [
|
|
@@ -742,7 +742,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
742
742
|
]), 1040, ["modelValue", "placeholder"])) : i.value == L(be).TREESELECT ? (r(), S(y, F({
|
|
743
743
|
key: 6,
|
|
744
744
|
modelValue: d.value,
|
|
745
|
-
"onUpdate:modelValue":
|
|
745
|
+
"onUpdate:modelValue": k[6] || (k[6] = (u) => d.value = u),
|
|
746
746
|
placeholder: Y.value[o.value].label
|
|
747
747
|
}, e.value, { data: M.value }), fe({ _: 2 }, [
|
|
748
748
|
I($(), (u) => ({
|
|
@@ -754,22 +754,22 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
754
754
|
]), 1040, ["modelValue", "placeholder", "data"])) : i.value == L(be).TIME ? (r(), S(B, F({
|
|
755
755
|
key: 7,
|
|
756
756
|
modelValue: d.value,
|
|
757
|
-
"onUpdate:modelValue":
|
|
757
|
+
"onUpdate:modelValue": k[7] || (k[7] = (u) => d.value = u),
|
|
758
758
|
"arrow-control": ""
|
|
759
759
|
}, e.value, {
|
|
760
760
|
placeholder: Y.value[o.value].label
|
|
761
761
|
}), null, 16, ["modelValue", "placeholder"])) : i.value == L(be).TIMESELECT ? (r(), S(ee, F({
|
|
762
762
|
key: 8,
|
|
763
763
|
modelValue: d.value,
|
|
764
|
-
"onUpdate:modelValue":
|
|
764
|
+
"onUpdate:modelValue": k[8] || (k[8] = (u) => d.value = u),
|
|
765
765
|
start: "06:30",
|
|
766
766
|
step: "00:15",
|
|
767
767
|
end: "23:30",
|
|
768
768
|
placeholder: Y.value[o.value].label
|
|
769
|
-
}, e.value), null, 16, ["modelValue", "placeholder"])) :
|
|
769
|
+
}, e.value), null, 16, ["modelValue", "placeholder"])) : D(i.value) ? (r(), S(ne, F({
|
|
770
770
|
key: 9,
|
|
771
771
|
modelValue: d.value,
|
|
772
|
-
"onUpdate:modelValue":
|
|
772
|
+
"onUpdate:modelValue": k[9] || (k[9] = (u) => d.value = u),
|
|
773
773
|
type: i.value,
|
|
774
774
|
placeholder: Y.value[o.value].label,
|
|
775
775
|
"value-format": z(i.value)
|
|
@@ -783,19 +783,19 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
783
783
|
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : i.value == L(be).COLOR ? (r(), S(A, F({
|
|
784
784
|
key: 10,
|
|
785
785
|
modelValue: d.value,
|
|
786
|
-
"onUpdate:modelValue":
|
|
786
|
+
"onUpdate:modelValue": k[10] || (k[10] = (u) => d.value = u)
|
|
787
787
|
}, e.value), null, 16, ["modelValue"])) : i.value == L(be).RATE ? (r(), S(b, F({
|
|
788
788
|
key: 11,
|
|
789
789
|
modelValue: d.value,
|
|
790
|
-
"onUpdate:modelValue":
|
|
790
|
+
"onUpdate:modelValue": k[11] || (k[11] = (u) => d.value = u)
|
|
791
791
|
}, e.value), null, 16, ["modelValue"])) : i.value == L(be).SLIDER ? (r(), S(h, F({
|
|
792
792
|
key: 12,
|
|
793
793
|
modelValue: d.value,
|
|
794
|
-
"onUpdate:modelValue":
|
|
795
|
-
}, e.value), null, 16, ["modelValue"])) : i.value == L(be).SWITCH ? (r(), S(
|
|
794
|
+
"onUpdate:modelValue": k[12] || (k[12] = (u) => d.value = u)
|
|
795
|
+
}, e.value), null, 16, ["modelValue"])) : i.value == L(be).SWITCH ? (r(), S(w, F({
|
|
796
796
|
key: 13,
|
|
797
797
|
modelValue: d.value,
|
|
798
|
-
"onUpdate:modelValue":
|
|
798
|
+
"onUpdate:modelValue": k[13] || (k[13] = (u) => d.value = u)
|
|
799
799
|
}, e.value), fe({ _: 2 }, [
|
|
800
800
|
I($(), (u) => ({
|
|
801
801
|
name: u,
|
|
@@ -806,7 +806,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
806
806
|
]), 1040, ["modelValue"])) : i.value == L(be).TRANSFER ? (r(), S(n, F({
|
|
807
807
|
key: 14,
|
|
808
808
|
modelValue: d.value,
|
|
809
|
-
"onUpdate:modelValue":
|
|
809
|
+
"onUpdate:modelValue": k[14] || (k[14] = (u) => d.value = u)
|
|
810
810
|
}, e.value), fe({ _: 2 }, [
|
|
811
811
|
I($(), (u) => ({
|
|
812
812
|
name: u,
|
|
@@ -817,7 +817,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
817
817
|
]), 1040, ["modelValue"])) : i.value == L(be).CASCADER ? (r(), S(s, F({
|
|
818
818
|
key: 15,
|
|
819
819
|
modelValue: d.value,
|
|
820
|
-
"onUpdate:modelValue":
|
|
820
|
+
"onUpdate:modelValue": k[15] || (k[15] = (u) => d.value = u)
|
|
821
821
|
}, e.value, { options: T.value }), fe({ _: 2 }, [
|
|
822
822
|
I($(), (u) => ({
|
|
823
823
|
name: u,
|
|
@@ -827,8 +827,8 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
827
827
|
}))
|
|
828
828
|
]), 1040, ["modelValue", "options"])) : i.value == L(be).IMAGE ? (r(), S(H, Qe(F({ key: 16 }, e.value)), fe({
|
|
829
829
|
default: v(() => [
|
|
830
|
-
Z(
|
|
831
|
-
default: v(() =>
|
|
830
|
+
Z(x, { type: "primary" }, {
|
|
831
|
+
default: v(() => k[21] || (k[21] = [
|
|
832
832
|
we("点击上传")
|
|
833
833
|
])),
|
|
834
834
|
_: 1
|
|
@@ -845,7 +845,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
845
845
|
]), 1040)) : i.value == L(be).AUTOCOMPLETE ? (r(), S(X, F({
|
|
846
846
|
key: 17,
|
|
847
847
|
modelValue: d.value,
|
|
848
|
-
"onUpdate:modelValue":
|
|
848
|
+
"onUpdate:modelValue": k[16] || (k[16] = (u) => d.value = u)
|
|
849
849
|
}, e.value, {
|
|
850
850
|
placeholder: Y.value[o.value].label
|
|
851
851
|
}), fe({ _: 2 }, [
|
|
@@ -858,7 +858,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
858
858
|
]), 1040, ["modelValue", "placeholder"])) : i.value == L(be).INPUTNUMBER ? (r(), S(se, F({
|
|
859
859
|
key: 18,
|
|
860
860
|
modelValue: d.value,
|
|
861
|
-
"onUpdate:modelValue":
|
|
861
|
+
"onUpdate:modelValue": k[17] || (k[17] = (u) => d.value = u),
|
|
862
862
|
min: 0,
|
|
863
863
|
max: 1e8,
|
|
864
864
|
placeholder: Y.value[o.value].label
|
|
@@ -870,9 +870,9 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
870
870
|
])
|
|
871
871
|
}))
|
|
872
872
|
]), 1040, ["modelValue", "placeholder"])) : i.value == L(be).MONEY ? (r(), q("div", Rt, [
|
|
873
|
-
Z(
|
|
873
|
+
Z(de, F({
|
|
874
874
|
modelValue: d.value,
|
|
875
|
-
"onUpdate:modelValue":
|
|
875
|
+
"onUpdate:modelValue": k[18] || (k[18] = (u) => d.value = u),
|
|
876
876
|
placeholder: Y.value[o.value].label,
|
|
877
877
|
type: L(be).NUMBER,
|
|
878
878
|
maxlength: ((Fe = e.value) == null ? void 0 : Fe.max) || 25
|
|
@@ -897,7 +897,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
897
897
|
innerHTML: e.value.innerHtml || d.value
|
|
898
898
|
}), null, 16, ["innerHTML"])
|
|
899
899
|
])) : (i.value === "primary" || i.value === "success" || i.value === "warning" || i.value == "danger" || i.value === "info") && e.value.isTag === !0 ? (r(), q("div", Pt, [
|
|
900
|
-
Array.isArray(e.value.innerHtml) && e.value.innerHtml.length >
|
|
900
|
+
Array.isArray(e.value.innerHtml) && e.value.innerHtml.length > 0 ? (r(!0), q(P, { key: 0 }, I(e.value.innerHtml, (u, N) => (r(), q(P, { key: N }, [
|
|
901
901
|
typeof u == "object" ? (r(), S(ye, F({
|
|
902
902
|
key: 0,
|
|
903
903
|
ref_for: !0
|
|
@@ -918,10 +918,10 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
918
918
|
innerHTML: e.value.innerHtml || d.value
|
|
919
919
|
}), null, 16, zt)) : i.value == "span" ? (r(), q("span", F({ key: 23 }, e.value, {
|
|
920
920
|
innerHTML: e.value.innerHtml || d.value
|
|
921
|
-
}), null, 16, Wt)) : (r(), S(
|
|
921
|
+
}), null, 16, Wt)) : (r(), S(de, F({
|
|
922
922
|
key: 24,
|
|
923
923
|
modelValue: d.value,
|
|
924
|
-
"onUpdate:modelValue":
|
|
924
|
+
"onUpdate:modelValue": k[19] || (k[19] = (u) => d.value = u),
|
|
925
925
|
placeholder: Y.value[o.value].label,
|
|
926
926
|
maxlength: ((De = e.value) == null ? void 0 : De.max) || 25,
|
|
927
927
|
clearable: !0
|
|
@@ -947,8 +947,8 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
947
947
|
},
|
|
948
948
|
emits: /* @__PURE__ */ Be(["submit", "reset"], ["update:modelValue"]),
|
|
949
949
|
setup(c, { emit: d }) {
|
|
950
|
-
var te,
|
|
951
|
-
const t = Ie(c, "modelValue"), e = d, o =
|
|
950
|
+
var te, me, pe, ve;
|
|
951
|
+
const t = Ie(c, "modelValue"), e = d, o = ce(null), i = rt("options"), Y = {
|
|
952
952
|
inline: !0,
|
|
953
953
|
type: "hidden",
|
|
954
954
|
"scroll-to-error": !0,
|
|
@@ -1002,18 +1002,18 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1002
1002
|
t.value.form = Me(
|
|
1003
1003
|
Y,
|
|
1004
1004
|
i == null ? void 0 : i.form,
|
|
1005
|
-
(
|
|
1005
|
+
(me = t.value) == null ? void 0 : me.form
|
|
1006
1006
|
);
|
|
1007
1007
|
const M = async (f, V) => {
|
|
1008
|
-
let
|
|
1009
|
-
for (;
|
|
1008
|
+
let C = 5;
|
|
1009
|
+
for (; C > 0; ) {
|
|
1010
1010
|
if (await yt(), o.value) {
|
|
1011
1011
|
o.value.validate((y, B) => {
|
|
1012
1012
|
y ? e("submit", f, V) : console.log("表单验证不通过!", B);
|
|
1013
1013
|
});
|
|
1014
1014
|
return;
|
|
1015
1015
|
}
|
|
1016
|
-
|
|
1016
|
+
C--, await new Promise((y) => setTimeout(y, 50));
|
|
1017
1017
|
}
|
|
1018
1018
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1019
1019
|
};
|
|
@@ -1039,7 +1039,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1039
1039
|
(ve = i == null ? void 0 : i.form) == null ? void 0 : ve.cols,
|
|
1040
1040
|
t.value.form.cols
|
|
1041
1041
|
);
|
|
1042
|
-
const
|
|
1042
|
+
const D = (f) => {
|
|
1043
1043
|
let V = [];
|
|
1044
1044
|
if (f.rules)
|
|
1045
1045
|
V = f.rules;
|
|
@@ -1072,19 +1072,19 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1072
1072
|
return V;
|
|
1073
1073
|
}, z = (f, V = !1) => {
|
|
1074
1074
|
var B, ee, ne, A, b;
|
|
1075
|
-
const
|
|
1075
|
+
const C = V ? f : f == null ? void 0 : f.item, y = typeof (C == null ? void 0 : C.editor) == "function" ? C.editor(g.value, (B = t.value.form) == null ? void 0 : B.modalState) : (C == null ? void 0 : C.editor) || {};
|
|
1076
1076
|
if (((ee = t.value.form) == null ? void 0 : ee.modalState) === "edit") {
|
|
1077
|
-
const h = typeof (
|
|
1077
|
+
const h = typeof (C == null ? void 0 : C.editor) == "object" ? (ne = C.editor) == null ? void 0 : ne.ep : typeof (C == null ? void 0 : C.editor) == "function" ? y == null ? void 0 : y.ep : {};
|
|
1078
1078
|
return { ...y, ...h };
|
|
1079
1079
|
}
|
|
1080
1080
|
if (((A = t.value.form) == null ? void 0 : A.modalState) === "add") {
|
|
1081
|
-
const h = typeof (
|
|
1081
|
+
const h = typeof (C == null ? void 0 : C.editor) == "object" ? (b = C.editor) == null ? void 0 : b.ap : typeof (C == null ? void 0 : C.editor) == "function" ? y == null ? void 0 : y.ap : {};
|
|
1082
1082
|
return { ...y, ...h };
|
|
1083
1083
|
}
|
|
1084
1084
|
return y;
|
|
1085
1085
|
}, ae = (f) => {
|
|
1086
|
-
var
|
|
1087
|
-
const V = typeof f.editor == "function" ? f.editor(g.value, (
|
|
1086
|
+
var C, y, B, ee, ne;
|
|
1087
|
+
const V = typeof f.editor == "function" ? f.editor(g.value, (C = t.value.form) == null ? void 0 : C.modalState) : f.editor;
|
|
1088
1088
|
return ((y = t.value.form) == null ? void 0 : y.modalState) === "edit" ? ((B = V == null ? void 0 : V.ep) == null ? void 0 : B.type) ?? (V == null ? void 0 : V.type) ?? f.type : ((ee = t.value.form) == null ? void 0 : ee.modalState) === "add" ? ((ne = V == null ? void 0 : V.ap) == null ? void 0 : ne.type) ?? (V == null ? void 0 : V.type) ?? f.type : (V == null ? void 0 : V.type) ?? f.type;
|
|
1089
1089
|
};
|
|
1090
1090
|
Ne(() => {
|
|
@@ -1093,24 +1093,24 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1093
1093
|
o.value = null;
|
|
1094
1094
|
});
|
|
1095
1095
|
const R = () => {
|
|
1096
|
-
for (const [f, V] of Object.entries(
|
|
1096
|
+
for (const [f, V] of Object.entries(E.value))
|
|
1097
1097
|
t.value[f].formItem = { ...t.value[f].formItem, ...V.formItem }, t.value[f].formItem.style = { ...t.value[f].formItem.style, ...V.formItem.style };
|
|
1098
|
-
},
|
|
1099
|
-
var
|
|
1100
|
-
const V = typeof f[1].editor == "function" ? f[1].editor(g.value, (
|
|
1098
|
+
}, E = Ye(() => Object.fromEntries(Object.entries(t.value).filter((f) => f[1].type != "hidden").filter((f) => f[1].edit !== !1).filter((f) => !["table", "tableColumns", "query", "queryItems"].includes(f[0])).filter((f) => f[1].editor !== !1).filter((f) => f[1].type !== "control").filter((f) => {
|
|
1099
|
+
var C, y, B;
|
|
1100
|
+
const V = typeof f[1].editor == "function" ? f[1].editor(g.value, (C = t.value.form) == null ? void 0 : C.modalState) : f[1].editor;
|
|
1101
1101
|
return t.value.form.modalState === "edit" ? ((y = V == null ? void 0 : V.ep) == null ? void 0 : y.editor) !== !1 : t.value.form.modalState === "add" ? ((B = V == null ? void 0 : V.ap) == null ? void 0 : B.editor) !== !1 : !0;
|
|
1102
|
-
}).map((f) => [f[0], f[1]]))), g = Ye(() => Object.fromEntries(Object.entries(t.value).filter((f) => f[1].type != "hidden").filter((f) => f[1].type != "control").map((f) => [f[0], f[1].value]))),
|
|
1102
|
+
}).map((f) => [f[0], f[1]]))), g = Ye(() => Object.fromEntries(Object.entries(t.value).filter((f) => f[1].type != "hidden").filter((f) => f[1].type != "control").map((f) => [f[0], f[1].value]))), k = Ye(() => {
|
|
1103
1103
|
const f = /* @__PURE__ */ new Map();
|
|
1104
|
-
return Object.entries(
|
|
1105
|
-
if (
|
|
1106
|
-
const y =
|
|
1104
|
+
return Object.entries(E.value).forEach(([V, C]) => {
|
|
1105
|
+
if (C.groupName) {
|
|
1106
|
+
const y = C.groupName;
|
|
1107
1107
|
f.has(y) || f.set(y, {
|
|
1108
1108
|
groupName: y,
|
|
1109
1109
|
items: []
|
|
1110
|
-
}), f.get(y).items.push({ key: V, item:
|
|
1110
|
+
}), f.get(y).items.push({ key: V, item: C });
|
|
1111
1111
|
}
|
|
1112
1112
|
}), f.forEach((V) => {
|
|
1113
|
-
V.tabPane = Me(...V.items.map(({ item:
|
|
1113
|
+
V.tabPane = Me(...V.items.map(({ item: C }) => C.tabPane || {}));
|
|
1114
1114
|
}), Array.from(f.values());
|
|
1115
1115
|
}), K = [
|
|
1116
1116
|
{
|
|
@@ -1137,7 +1137,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1137
1137
|
}
|
|
1138
1138
|
], oe = Ye(() => K.filter((f) => !f.hidden).sort((f, V) => f.sort - V.sort || f.originalOrder - V.originalOrder));
|
|
1139
1139
|
return (f, V) => {
|
|
1140
|
-
const
|
|
1140
|
+
const C = j("el-form-item"), y = j("el-col"), B = j("el-tab-pane"), ee = j("el-tabs"), ne = j("el-button"), A = j("el-form");
|
|
1141
1141
|
return r(), S(A, F({
|
|
1142
1142
|
ref_key: "gform",
|
|
1143
1143
|
ref: o,
|
|
@@ -1145,17 +1145,17 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1145
1145
|
style: { width: "98%", padding: 0, margin: 0, "box-sizing": "border-box" }
|
|
1146
1146
|
}, L(ke)(t.value.form, (b) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(b)), { class: "g-form-container" }), {
|
|
1147
1147
|
default: v(() => [
|
|
1148
|
-
|
|
1149
|
-
var b, h,
|
|
1148
|
+
k.value.length > 0 ? m(f.$slots, "default", { key: 0 }, () => {
|
|
1149
|
+
var b, h, w;
|
|
1150
1150
|
return [
|
|
1151
1151
|
Z(ee, F({
|
|
1152
1152
|
class: "demo-tabs",
|
|
1153
|
-
modelValue:
|
|
1154
|
-
"onUpdate:modelValue": V[0] || (V[0] = (n) =>
|
|
1153
|
+
modelValue: k.value[0].groupName,
|
|
1154
|
+
"onUpdate:modelValue": V[0] || (V[0] = (n) => k.value[0].groupName = n),
|
|
1155
1155
|
style: { width: "100%" }
|
|
1156
1156
|
}, t.value.form.tabs), {
|
|
1157
1157
|
default: v(() => [
|
|
1158
|
-
(r(!0), q(P, null, I(
|
|
1158
|
+
(r(!0), q(P, null, I(k.value, (n) => (r(), S(B, F({
|
|
1159
1159
|
key: n.groupName,
|
|
1160
1160
|
label: n.groupName,
|
|
1161
1161
|
name: n.groupName,
|
|
@@ -1163,17 +1163,17 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1163
1163
|
ref_for: !0
|
|
1164
1164
|
}, n.tabPane), {
|
|
1165
1165
|
default: v(() => [
|
|
1166
|
-
(r(!0), q(P, null, I(n.items, (s,
|
|
1166
|
+
(r(!0), q(P, null, I(n.items, (s, x) => (r(), S(y, F({ ref_for: !0 }, { ...t.value.form.cols, ...s == null ? void 0 : s.item.col }, {
|
|
1167
1167
|
key: s.key,
|
|
1168
1168
|
style: { width: "100%" }
|
|
1169
1169
|
}), {
|
|
1170
1170
|
default: v(() => {
|
|
1171
1171
|
var H, X;
|
|
1172
1172
|
return [
|
|
1173
|
-
Z(
|
|
1173
|
+
Z(C, F({
|
|
1174
1174
|
label: s == null ? void 0 : s.item.label,
|
|
1175
1175
|
prop: `${s.key}.value`,
|
|
1176
|
-
rules:
|
|
1176
|
+
rules: D(s == null ? void 0 : s.item),
|
|
1177
1177
|
ref_for: !0
|
|
1178
1178
|
}, { ...(H = t.value) == null ? void 0 : H.formItems, ...(X = s == null ? void 0 : s.item) == null ? void 0 : X.formItem }, { style: { width: "100%" } }), {
|
|
1179
1179
|
default: v(() => [
|
|
@@ -1194,10 +1194,10 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1194
1194
|
t: "f",
|
|
1195
1195
|
formInfo: g.value
|
|
1196
1196
|
}, fe({ _: 2 }, [
|
|
1197
|
-
I(f.$slots, (se,
|
|
1198
|
-
name:
|
|
1197
|
+
I(f.$slots, (se, de) => ({
|
|
1198
|
+
name: de,
|
|
1199
1199
|
fn: v((he) => [
|
|
1200
|
-
m(f.$slots,
|
|
1200
|
+
m(f.$slots, de, {
|
|
1201
1201
|
data: he,
|
|
1202
1202
|
item: s.item,
|
|
1203
1203
|
model: t.value
|
|
@@ -1219,9 +1219,9 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1219
1219
|
]),
|
|
1220
1220
|
_: 3
|
|
1221
1221
|
}, 16, ["modelValue"]),
|
|
1222
|
-
(
|
|
1222
|
+
(w = (h = (b = t.value) == null ? void 0 : b.form) == null ? void 0 : h.footer) != null && w.hidden ? $e("", !0) : m(f.$slots, "f-footer", { key: 0 }, () => [
|
|
1223
1223
|
J("div", {
|
|
1224
|
-
style:
|
|
1224
|
+
style: xe(t.value.form.footer.style)
|
|
1225
1225
|
}, [
|
|
1226
1226
|
m(f.$slots, "f-footer-left"),
|
|
1227
1227
|
(r(!0), q(P, null, I(oe.value, (n) => (r(), q(P, null, [
|
|
@@ -1243,21 +1243,21 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1243
1243
|
])
|
|
1244
1244
|
];
|
|
1245
1245
|
}) : m(f.$slots, "default", { key: 1 }, () => {
|
|
1246
|
-
var b, h,
|
|
1246
|
+
var b, h, w;
|
|
1247
1247
|
return [
|
|
1248
|
-
(r(!0), q(P, null, I(
|
|
1248
|
+
(r(!0), q(P, null, I(E.value, (n, s) => (r(), S(y, F({ ref_for: !0 }, { ...t.value.form.cols, ...n.col }, {
|
|
1249
1249
|
key: s,
|
|
1250
1250
|
style: { width: "100%" }
|
|
1251
1251
|
}), {
|
|
1252
1252
|
default: v(() => {
|
|
1253
|
-
var
|
|
1253
|
+
var x;
|
|
1254
1254
|
return [
|
|
1255
|
-
Z(
|
|
1255
|
+
Z(C, F({
|
|
1256
1256
|
label: n.label,
|
|
1257
1257
|
prop: `${s}.value`,
|
|
1258
|
-
rules:
|
|
1258
|
+
rules: D(n),
|
|
1259
1259
|
ref_for: !0
|
|
1260
|
-
}, { ...(
|
|
1260
|
+
}, { ...(x = t.value) == null ? void 0 : x.formItems, ...n == null ? void 0 : n.formItem }, { style: { width: "100%" } }), {
|
|
1261
1261
|
label: v((H) => [
|
|
1262
1262
|
m(f.$slots, `f-${s}-label`, {
|
|
1263
1263
|
data: H,
|
|
@@ -1304,9 +1304,9 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1304
1304
|
}),
|
|
1305
1305
|
_: 2
|
|
1306
1306
|
}, 1040))), 128)),
|
|
1307
|
-
(
|
|
1307
|
+
(w = (h = (b = t.value) == null ? void 0 : b.form) == null ? void 0 : h.footer) != null && w.hidden ? $e("", !0) : m(f.$slots, "f-footer", { key: 0 }, () => [
|
|
1308
1308
|
J("div", {
|
|
1309
|
-
style:
|
|
1309
|
+
style: xe(t.value.form.footer.style)
|
|
1310
1310
|
}, [
|
|
1311
1311
|
m(f.$slots, "f-footer-left"),
|
|
1312
1312
|
(r(!0), q(P, null, I(oe.value, (n) => (r(), q(P, null, [
|
|
@@ -1349,19 +1349,19 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1349
1349
|
};
|
|
1350
1350
|
return (M, T) => {
|
|
1351
1351
|
const $ = j("el-form-item");
|
|
1352
|
-
return r(!0), q(P, null, I(o(t.more), (
|
|
1352
|
+
return r(!0), q(P, null, I(o(t.more), (D, z) => m(M.$slots, `q-${z}`, {
|
|
1353
1353
|
key: z,
|
|
1354
|
-
item:
|
|
1354
|
+
item: D,
|
|
1355
1355
|
queryModel: e.value,
|
|
1356
1356
|
model: d.value
|
|
1357
1357
|
}, () => [
|
|
1358
1358
|
Z($, F({
|
|
1359
|
-
label:
|
|
1359
|
+
label: D.label,
|
|
1360
1360
|
ref_for: !0
|
|
1361
|
-
}, { ...d.value.queryItems, ...i(
|
|
1361
|
+
}, { ...d.value.queryItems, ...i(D) }), {
|
|
1362
1362
|
label: v(() => [
|
|
1363
1363
|
m(M.$slots, `q-${z}-label`, {
|
|
1364
|
-
item:
|
|
1364
|
+
item: D,
|
|
1365
1365
|
model: d.value
|
|
1366
1366
|
})
|
|
1367
1367
|
]),
|
|
@@ -1369,9 +1369,9 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1369
1369
|
Z(Xe, {
|
|
1370
1370
|
modelValue: e.value[z],
|
|
1371
1371
|
"onUpdate:modelValue": (ae) => e.value[z] = ae,
|
|
1372
|
-
item: { ...
|
|
1372
|
+
item: { ...D == null ? void 0 : D.editor, ...i(D) },
|
|
1373
1373
|
ctrlKey: z,
|
|
1374
|
-
ctrlType: Y(
|
|
1374
|
+
ctrlType: Y(D),
|
|
1375
1375
|
model: d.value,
|
|
1376
1376
|
t: "q",
|
|
1377
1377
|
formInfo: e.value
|
|
@@ -1381,7 +1381,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1381
1381
|
fn: v((R) => [
|
|
1382
1382
|
m(M.$slots, ae, {
|
|
1383
1383
|
data: R,
|
|
1384
|
-
item:
|
|
1384
|
+
item: D,
|
|
1385
1385
|
model: d.value
|
|
1386
1386
|
})
|
|
1387
1387
|
])
|
|
@@ -1409,9 +1409,9 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1409
1409
|
},
|
|
1410
1410
|
emits: /* @__PURE__ */ Be(["query", "reset"], ["update:modelValue"]),
|
|
1411
1411
|
setup(c, { emit: d }) {
|
|
1412
|
-
const t = Ie(c, "modelValue"), e = d, o = rt("options"), i =
|
|
1413
|
-
let Y = Object.fromEntries(Object.entries(t.value).filter((
|
|
1414
|
-
const M =
|
|
1412
|
+
const t = Ie(c, "modelValue"), e = d, o = rt("options"), i = ce(!1);
|
|
1413
|
+
let Y = Object.fromEntries(Object.entries(t.value).filter((E) => E[1].search).map(([E, g]) => [E, g.value]));
|
|
1414
|
+
const M = ce(Y), T = {
|
|
1415
1415
|
hidden: !1,
|
|
1416
1416
|
type: "hidden",
|
|
1417
1417
|
labelWidth: 100,
|
|
@@ -1437,7 +1437,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1437
1437
|
hidden: !1,
|
|
1438
1438
|
plain: !1,
|
|
1439
1439
|
click: () => {
|
|
1440
|
-
M.value =
|
|
1440
|
+
M.value = ce(Y), e("reset", M.value);
|
|
1441
1441
|
}
|
|
1442
1442
|
},
|
|
1443
1443
|
query: {
|
|
@@ -1481,16 +1481,16 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1481
1481
|
$[t.value.query.more.mode] || {},
|
|
1482
1482
|
t.value.query.more.dialog
|
|
1483
1483
|
);
|
|
1484
|
-
const
|
|
1484
|
+
const D = {
|
|
1485
1485
|
type: "hidden",
|
|
1486
1486
|
labelPosition: "right",
|
|
1487
1487
|
style: {
|
|
1488
1488
|
width: "280px"
|
|
1489
1489
|
}
|
|
1490
1490
|
};
|
|
1491
|
-
t.value.queryItems = Me(
|
|
1492
|
-
const z = (
|
|
1493
|
-
const
|
|
1491
|
+
t.value.queryItems = Me(D, o == null ? void 0 : o.queryItems, t.value.queryItems);
|
|
1492
|
+
const z = (E, g) => {
|
|
1493
|
+
const k = Object.keys(E.slots).filter((K) => K !== "default").reduce((K, oe) => (K[oe] = (te) => E.slots[oe]({
|
|
1494
1494
|
model: t.value
|
|
1495
1495
|
// 传递当前模型数据
|
|
1496
1496
|
}), K), {});
|
|
@@ -1500,13 +1500,13 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1500
1500
|
info: M.value,
|
|
1501
1501
|
"onUpdate:info": (K) => M.value = K,
|
|
1502
1502
|
more: g
|
|
1503
|
-
},
|
|
1503
|
+
}, k);
|
|
1504
1504
|
}, ae = ht(), R = () => {
|
|
1505
|
-
var
|
|
1506
|
-
const
|
|
1505
|
+
var k, K, oe, te, me, pe, ve, f, V;
|
|
1506
|
+
const E = [
|
|
1507
1507
|
{
|
|
1508
1508
|
key: "query",
|
|
1509
|
-
hidden: (oe = (K = (
|
|
1509
|
+
hidden: (oe = (K = (k = t.value) == null ? void 0 : k.query) == null ? void 0 : K.query) == null ? void 0 : oe.hidden,
|
|
1510
1510
|
component: _e,
|
|
1511
1511
|
props: {
|
|
1512
1512
|
...t.value.query.query,
|
|
@@ -1517,7 +1517,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1517
1517
|
},
|
|
1518
1518
|
{
|
|
1519
1519
|
key: "reset",
|
|
1520
|
-
hidden: (pe = (
|
|
1520
|
+
hidden: (pe = (me = (te = t.value) == null ? void 0 : te.query) == null ? void 0 : me.reset) == null ? void 0 : pe.hidden,
|
|
1521
1521
|
component: _e,
|
|
1522
1522
|
props: {
|
|
1523
1523
|
...t.value.query.reset,
|
|
@@ -1538,55 +1538,55 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1538
1538
|
sort: t.value.query.more.sort || 0,
|
|
1539
1539
|
content: t.value.query.more.mode === 3 ? () => qe(We, {
|
|
1540
1540
|
class: "query-form",
|
|
1541
|
-
...ke(t.value.query, (
|
|
1541
|
+
...ke(t.value.query, (C) => !["query", "more", "reset"].includes(C))
|
|
1542
1542
|
}, () => z({ slots: ae }, !0)) : null
|
|
1543
1543
|
}
|
|
1544
1544
|
];
|
|
1545
|
-
return
|
|
1546
|
-
reference: () => qe(_e, t.value.query.more, () =>
|
|
1547
|
-
default:
|
|
1548
|
-
}) : (
|
|
1545
|
+
return E.sort((C, y) => C.sort - y.sort), E.filter((C) => !C.hidden).map((C) => C.key === "more" && C.component === Ke ? qe(Ke, C.props, {
|
|
1546
|
+
reference: () => qe(_e, t.value.query.more, () => C.label),
|
|
1547
|
+
default: C.content
|
|
1548
|
+
}) : (C.props.slot = "query-" + C.key, C.label ? qe(C.component, C.props, () => C.label) : qe(C.component, C.props)));
|
|
1549
1549
|
};
|
|
1550
|
-
return (
|
|
1551
|
-
var oe, te,
|
|
1552
|
-
const
|
|
1550
|
+
return (E, g) => {
|
|
1551
|
+
var oe, te, me, pe, ve, f, V, C, y, B, ee, ne, A, b, h, w, n;
|
|
1552
|
+
const k = j("el-form-item"), K = j("el-drawer");
|
|
1553
1553
|
return r(), q(P, null, [
|
|
1554
1554
|
J("div", {
|
|
1555
1555
|
class: "g-query-container",
|
|
1556
|
-
style:
|
|
1556
|
+
style: xe((te = (oe = t.value.query) == null ? void 0 : oe.container) == null ? void 0 : te.style)
|
|
1557
1557
|
}, [
|
|
1558
1558
|
Z(L(We), Qe(ft(L(ke)(t.value.query, (s) => !["query", "more", "reset", "btns"].includes(s)))), {
|
|
1559
1559
|
default: v(() => {
|
|
1560
|
-
var s,
|
|
1560
|
+
var s, x;
|
|
1561
1561
|
return [
|
|
1562
|
-
(r(), S(Ae(z({ slots:
|
|
1563
|
-
((
|
|
1562
|
+
(r(), S(Ae(z({ slots: E.$slots }, void 0)))),
|
|
1563
|
+
((x = (s = t.value.query) == null ? void 0 : s.container) == null ? void 0 : x.inline) === !0 ? (r(), S(k, { key: 0 }, {
|
|
1564
1564
|
default: v(() => {
|
|
1565
|
-
var H, X, se,
|
|
1565
|
+
var H, X, se, de, he;
|
|
1566
1566
|
return [
|
|
1567
1567
|
J("div", {
|
|
1568
|
-
style:
|
|
1568
|
+
style: xe((X = (H = t.value.query) == null ? void 0 : H.btns) == null ? void 0 : X.style)
|
|
1569
1569
|
}, [
|
|
1570
1570
|
t.value.query.group ? (r(), S(L(Ge), { key: 0 }, {
|
|
1571
1571
|
default: v(() => [
|
|
1572
|
-
(r(!0), q(P, null, I(R(), (ye) => m(
|
|
1572
|
+
(r(!0), q(P, null, I(R(), (ye) => m(E.$slots, ye.props.slot, {}, () => [
|
|
1573
1573
|
(r(), S(Ae(ye)))
|
|
1574
1574
|
], !0)), 256)),
|
|
1575
|
-
m(
|
|
1575
|
+
m(E.$slots, "q-btns", {}, void 0, !0)
|
|
1576
1576
|
]),
|
|
1577
1577
|
_: 3
|
|
1578
1578
|
})) : (r(), q(P, { key: 1 }, [
|
|
1579
|
-
(he = (
|
|
1579
|
+
(he = (de = (se = t.value) == null ? void 0 : se.query) == null ? void 0 : de.btns) != null && he.group ? (r(), S(L(Ge), { key: 0 }, {
|
|
1580
1580
|
default: v(() => [
|
|
1581
|
-
(r(!0), q(P, null, I(R(), (ye) => m(
|
|
1581
|
+
(r(!0), q(P, null, I(R(), (ye) => m(E.$slots, ye.props.slot, {}, () => [
|
|
1582
1582
|
(r(), S(Ae(ye)))
|
|
1583
1583
|
], !0)), 256))
|
|
1584
1584
|
]),
|
|
1585
1585
|
_: 3
|
|
1586
|
-
})) : (r(!0), q(P, { key: 1 }, I(R(), (ye) => m(
|
|
1586
|
+
})) : (r(!0), q(P, { key: 1 }, I(R(), (ye) => m(E.$slots, ye.props.slot, {}, () => [
|
|
1587
1587
|
(r(), S(Ae(ye)))
|
|
1588
1588
|
], !0)), 256)),
|
|
1589
|
-
m(
|
|
1589
|
+
m(E.$slots, "q-btns", {}, void 0, !0)
|
|
1590
1590
|
], 64))
|
|
1591
1591
|
], 4)
|
|
1592
1592
|
];
|
|
@@ -1597,30 +1597,30 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1597
1597
|
}),
|
|
1598
1598
|
_: 3
|
|
1599
1599
|
}, 16),
|
|
1600
|
-
((ve = (pe = (
|
|
1600
|
+
((ve = (pe = (me = t.value) == null ? void 0 : me.query) == null ? void 0 : pe.container) == null ? void 0 : ve.inline) === !1 ? (r(), q("div", {
|
|
1601
1601
|
key: 0,
|
|
1602
|
-
style:
|
|
1602
|
+
style: xe((V = (f = t.value.query) == null ? void 0 : f.btns) == null ? void 0 : V.style)
|
|
1603
1603
|
}, [
|
|
1604
1604
|
t.value.query.group ? (r(), S(L(Ge), { key: 0 }, {
|
|
1605
1605
|
default: v(() => [
|
|
1606
|
-
(r(!0), q(P, null, I(R(), (s) => m(
|
|
1606
|
+
(r(!0), q(P, null, I(R(), (s) => m(E.$slots, s.props.slot, {}, () => [
|
|
1607
1607
|
(r(), S(Ae(s)))
|
|
1608
1608
|
], !0)), 256)),
|
|
1609
|
-
m(
|
|
1609
|
+
m(E.$slots, "q-btns", {}, void 0, !0)
|
|
1610
1610
|
]),
|
|
1611
1611
|
_: 3
|
|
1612
1612
|
})) : (r(), q(P, { key: 1 }, [
|
|
1613
|
-
(y = (
|
|
1613
|
+
(y = (C = t.value.query) == null ? void 0 : C.btns) != null && y.group ? (r(), S(L(Ge), { key: 0 }, {
|
|
1614
1614
|
default: v(() => [
|
|
1615
|
-
(r(!0), q(P, null, I(R(), (s) => m(
|
|
1615
|
+
(r(!0), q(P, null, I(R(), (s) => m(E.$slots, s.props.slot, {}, () => [
|
|
1616
1616
|
(r(), S(Ae(s)))
|
|
1617
1617
|
], !0)), 256))
|
|
1618
1618
|
]),
|
|
1619
1619
|
_: 3
|
|
1620
|
-
})) : (r(!0), q(P, { key: 1 }, I(R(), (s) => m(
|
|
1620
|
+
})) : (r(!0), q(P, { key: 1 }, I(R(), (s) => m(E.$slots, s.props.slot, {}, () => [
|
|
1621
1621
|
(r(), S(Ae(s)))
|
|
1622
1622
|
], !0)), 256)),
|
|
1623
|
-
m(
|
|
1623
|
+
m(E.$slots, "q-btns", {}, void 0, !0)
|
|
1624
1624
|
], 64))
|
|
1625
1625
|
], 4)) : $e("", !0)
|
|
1626
1626
|
], 4),
|
|
@@ -1641,10 +1641,10 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1641
1641
|
"onUpdate:info": g[1] || (g[1] = (s) => M.value = s),
|
|
1642
1642
|
more: !0
|
|
1643
1643
|
}, fe({ _: 2 }, [
|
|
1644
|
-
I(
|
|
1645
|
-
name:
|
|
1644
|
+
I(E.$slots, (s, x, H) => ({
|
|
1645
|
+
name: x,
|
|
1646
1646
|
fn: v((X) => [
|
|
1647
|
-
m(
|
|
1647
|
+
m(E.$slots, x, { model: t.value }, void 0, !0)
|
|
1648
1648
|
])
|
|
1649
1649
|
}))
|
|
1650
1650
|
]), 1032, ["modelValue", "info"])
|
|
@@ -1654,7 +1654,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1654
1654
|
]),
|
|
1655
1655
|
_: 2
|
|
1656
1656
|
}, [
|
|
1657
|
-
(n = (
|
|
1657
|
+
(n = (w = (h = (b = (A = t.value) == null ? void 0 : A.query) == null ? void 0 : b.more) == null ? void 0 : h.dialog) == null ? void 0 : w.footer) != null && n.hidden ? void 0 : {
|
|
1658
1658
|
name: "footer",
|
|
1659
1659
|
fn: v(() => [
|
|
1660
1660
|
J("div", Qe(ft(t.value.query.more.dialog.footer)), [
|
|
@@ -1685,13 +1685,13 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1685
1685
|
style: { padding: "10px" }
|
|
1686
1686
|
}, {
|
|
1687
1687
|
default: v(() => {
|
|
1688
|
-
var s,
|
|
1688
|
+
var s, x, H;
|
|
1689
1689
|
return [
|
|
1690
|
-
i.value && !((H = (
|
|
1690
|
+
i.value && !((H = (x = (s = t.value) == null ? void 0 : s.query) == null ? void 0 : x.more) != null && H.hidden) && t.value.query.more.mode == 1 ? (r(), q("div", Gt, [
|
|
1691
1691
|
J("div", Qt, [
|
|
1692
1692
|
t.value.query.more.mode == 1 ? Mt((r(), S(L(We), Qe(F({ key: 0 }, L(ke)(t.value.query, (X) => !["query", "more", "reset"].includes(X)))), {
|
|
1693
1693
|
default: v(() => [
|
|
1694
|
-
(r(), S(Ae(z({ slots:
|
|
1694
|
+
(r(), S(Ae(z({ slots: E.$slots }, !0))))
|
|
1695
1695
|
]),
|
|
1696
1696
|
_: 1
|
|
1697
1697
|
}, 16)), [
|
|
@@ -1717,7 +1717,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1717
1717
|
},
|
|
1718
1718
|
emits: ["excel"],
|
|
1719
1719
|
setup(c, { emit: d }) {
|
|
1720
|
-
const t = c, e = d, o =
|
|
1720
|
+
const t = c, e = d, o = ce(t.items), i = () => {
|
|
1721
1721
|
o.value.forEach((T) => {
|
|
1722
1722
|
T.value = !0;
|
|
1723
1723
|
});
|
|
@@ -1732,10 +1732,10 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1732
1732
|
return;
|
|
1733
1733
|
}
|
|
1734
1734
|
try {
|
|
1735
|
-
const
|
|
1736
|
-
|
|
1737
|
-
} catch (
|
|
1738
|
-
console.error("下载文件时出现错误:",
|
|
1735
|
+
const D = document.createElement("a");
|
|
1736
|
+
D.href = T, D.download = $, D.style.display = "none", document.body.appendChild(D), D.click(), document.body.removeChild(D);
|
|
1737
|
+
} catch (D) {
|
|
1738
|
+
console.error("下载文件时出现错误:", D);
|
|
1739
1739
|
}
|
|
1740
1740
|
});
|
|
1741
1741
|
};
|
|
@@ -1743,15 +1743,15 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1743
1743
|
const T = new bt(document.getElementById("excelSortEl"), {
|
|
1744
1744
|
animation: 150,
|
|
1745
1745
|
onEnd: () => {
|
|
1746
|
-
let
|
|
1747
|
-
console.log(
|
|
1746
|
+
let D = T.toArray();
|
|
1747
|
+
console.log(D);
|
|
1748
1748
|
}
|
|
1749
1749
|
}), $ = T;
|
|
1750
1750
|
Ft(() => {
|
|
1751
1751
|
$ && $.destroy();
|
|
1752
1752
|
});
|
|
1753
1753
|
}), (T, $) => {
|
|
1754
|
-
const
|
|
1754
|
+
const D = j("el-divider"), z = j("el-alert"), ae = j("el-checkbox"), R = j("el-button");
|
|
1755
1755
|
return r(), q("div", Zt, [
|
|
1756
1756
|
J("div", Kt, [
|
|
1757
1757
|
J("div", el, [
|
|
@@ -1759,7 +1759,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1759
1759
|
onClick: i,
|
|
1760
1760
|
style: { cursor: "pointer" }
|
|
1761
1761
|
}, "全选"),
|
|
1762
|
-
Z(
|
|
1762
|
+
Z(D, { direction: "vertical" }),
|
|
1763
1763
|
J("a", {
|
|
1764
1764
|
onClick: Y,
|
|
1765
1765
|
style: { cursor: "pointer" }
|
|
@@ -1774,18 +1774,18 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1774
1774
|
}),
|
|
1775
1775
|
$[0] || ($[0] = J("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
1776
1776
|
J("div", tl, [
|
|
1777
|
-
(r(!0), q(P, null, I(o.value, (
|
|
1777
|
+
(r(!0), q(P, null, I(o.value, (E) => (r(), S(ae, {
|
|
1778
1778
|
class: "check-box-hover",
|
|
1779
1779
|
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" },
|
|
1780
|
-
"data-id":
|
|
1781
|
-
modelValue:
|
|
1782
|
-
"onUpdate:modelValue": (g) =>
|
|
1783
|
-
key:
|
|
1784
|
-
title:
|
|
1780
|
+
"data-id": E.key,
|
|
1781
|
+
modelValue: E.value,
|
|
1782
|
+
"onUpdate:modelValue": (g) => E.value = g,
|
|
1783
|
+
key: E.key,
|
|
1784
|
+
title: E.label
|
|
1785
1785
|
}, {
|
|
1786
1786
|
default: v(() => [
|
|
1787
1787
|
J("span", {
|
|
1788
|
-
textContent: Ee(
|
|
1788
|
+
textContent: Ee(E.label),
|
|
1789
1789
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
1790
1790
|
}, null, 8, ll)
|
|
1791
1791
|
]),
|
|
@@ -1797,7 +1797,7 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1797
1797
|
Z(R, {
|
|
1798
1798
|
type: "primary",
|
|
1799
1799
|
onClick: M,
|
|
1800
|
-
disabled: o.value.filter((
|
|
1800
|
+
disabled: o.value.filter((E) => E.value).length < 1
|
|
1801
1801
|
}, {
|
|
1802
1802
|
default: v(() => [
|
|
1803
1803
|
we(Ee(t.commitText), 1)
|
|
@@ -1808,36 +1808,36 @@ const et = /* @__PURE__ */ Ut(jt), Lt = {
|
|
|
1808
1808
|
]);
|
|
1809
1809
|
};
|
|
1810
1810
|
}
|
|
1811
|
-
}, rl = /* @__PURE__ */ Ue(ol, [["__scopeId", "data-v-51dfb7ef"]]),
|
|
1812
|
-
|
|
1811
|
+
}, rl = /* @__PURE__ */ Ue(ol, [["__scopeId", "data-v-51dfb7ef"]]), Oe = new Bt("gyc");
|
|
1812
|
+
Oe.version(1).stores({
|
|
1813
1813
|
tableInfo: "++id,[user+page+key],user,page,key,showCol,width,sort",
|
|
1814
1814
|
tableList: "++id,name"
|
|
1815
1815
|
});
|
|
1816
1816
|
async function He(c, d, t, e = {}) {
|
|
1817
|
-
if (await
|
|
1818
|
-
let i = await
|
|
1819
|
-
return await
|
|
1817
|
+
if (await Oe.tableInfo.where({ user: c, page: d, key: t }).count() > 0) {
|
|
1818
|
+
let i = await Oe.tableInfo.where({ user: c, page: d, key: t }).first();
|
|
1819
|
+
return await Oe.tableInfo.put({ ...i, ...e }), "update success";
|
|
1820
1820
|
} else {
|
|
1821
1821
|
let i = { showCol: !0, width: "auto", sort: 0, ...e };
|
|
1822
|
-
return await
|
|
1822
|
+
return await Oe.tableInfo.add({ user: c, page: d, key: t, ...i }), "add success";
|
|
1823
1823
|
}
|
|
1824
1824
|
}
|
|
1825
1825
|
async function ul(c, d) {
|
|
1826
|
-
return await
|
|
1826
|
+
return await Oe.tableInfo.where({ user: c, page: d }).toArray();
|
|
1827
1827
|
}
|
|
1828
1828
|
async function nl(c, d) {
|
|
1829
1829
|
try {
|
|
1830
|
-
const t = await
|
|
1830
|
+
const t = await Oe.tableInfo.where({ user: c, page: d }).delete();
|
|
1831
1831
|
return console.log("删除了" + t + "条数据"), t;
|
|
1832
1832
|
} catch (t) {
|
|
1833
1833
|
throw console.error("删除表格项设置信息时出错:", t), t;
|
|
1834
1834
|
}
|
|
1835
1835
|
}
|
|
1836
1836
|
async function sl(c) {
|
|
1837
|
-
return await
|
|
1837
|
+
return await Oe.tableList.where({ name: c }).first();
|
|
1838
1838
|
}
|
|
1839
1839
|
async function il(c) {
|
|
1840
|
-
return typeof c == "string" && (c = { name: c }), await
|
|
1840
|
+
return typeof c == "string" && (c = { name: c }), await Oe.tableList.add(c), "add success";
|
|
1841
1841
|
}
|
|
1842
1842
|
const dl = {
|
|
1843
1843
|
style: { margin: "10px" },
|
|
@@ -1858,10 +1858,10 @@ const dl = {
|
|
|
1858
1858
|
}),
|
|
1859
1859
|
emits: ["update:modelValue"],
|
|
1860
1860
|
setup(c) {
|
|
1861
|
-
const d = c, t =
|
|
1862
|
-
$ ? e.value[
|
|
1861
|
+
const d = c, t = ce([]), e = Ie(c, "modelValue"), o = async ($, D) => {
|
|
1862
|
+
$ ? e.value[D].showCol = !0 : e.value[D].showCol = !1;
|
|
1863
1863
|
try {
|
|
1864
|
-
const z = await He(e.value.table.user, d.name,
|
|
1864
|
+
const z = await He(e.value.table.user, d.name, D, { showCol: $ });
|
|
1865
1865
|
console.log(z);
|
|
1866
1866
|
} catch (z) {
|
|
1867
1867
|
console.error("列显示状态保存信息时出错:", z), Te({
|
|
@@ -1872,17 +1872,17 @@ const dl = {
|
|
|
1872
1872
|
}, i = () => {
|
|
1873
1873
|
const $ = document.getElementById("cols");
|
|
1874
1874
|
if ($) {
|
|
1875
|
-
let
|
|
1875
|
+
let D = bt.create($, {
|
|
1876
1876
|
animation: 150,
|
|
1877
1877
|
filter: ".filtered",
|
|
1878
1878
|
//
|
|
1879
1879
|
sort: !0,
|
|
1880
1880
|
onEnd: () => {
|
|
1881
|
-
|
|
1881
|
+
D.toArray().forEach(async (ae, R) => {
|
|
1882
1882
|
e.value[ae].sort = R;
|
|
1883
|
-
let
|
|
1883
|
+
let E = e.value[ae].width || "auto";
|
|
1884
1884
|
try {
|
|
1885
|
-
const g = await He(e.value.table.user, d.name, ae, { sort: R, width:
|
|
1885
|
+
const g = await He(e.value.table.user, d.name, ae, { sort: R, width: E });
|
|
1886
1886
|
console.log(g);
|
|
1887
1887
|
} catch (g) {
|
|
1888
1888
|
console.error("列排序和宽度保存信息时出错:", g), Te({
|
|
@@ -1898,12 +1898,12 @@ const dl = {
|
|
|
1898
1898
|
try {
|
|
1899
1899
|
for (const $ of t.value) {
|
|
1900
1900
|
$.showCol = !0, e.value[$.value].showCol = !0;
|
|
1901
|
-
const
|
|
1901
|
+
const D = await He(e.value.table.user, d.name, $.value, {
|
|
1902
1902
|
showCol: !0,
|
|
1903
1903
|
width: $.width,
|
|
1904
1904
|
sort: $.sort
|
|
1905
1905
|
});
|
|
1906
|
-
console.log(
|
|
1906
|
+
console.log(D);
|
|
1907
1907
|
}
|
|
1908
1908
|
} catch ($) {
|
|
1909
1909
|
console.error("全选列保存信息时出错:", $), Te({
|
|
@@ -1913,13 +1913,13 @@ const dl = {
|
|
|
1913
1913
|
}
|
|
1914
1914
|
}, M = async () => {
|
|
1915
1915
|
try {
|
|
1916
|
-
const $ = t.value.filter((
|
|
1917
|
-
for (const
|
|
1918
|
-
|
|
1919
|
-
const z = await He(e.value.table.user, d.name,
|
|
1916
|
+
const $ = t.value.filter((D) => !D.alwaysShow);
|
|
1917
|
+
for (const D of $) {
|
|
1918
|
+
D.showCol = !1, e.value[D.value].showCol = !1;
|
|
1919
|
+
const z = await He(e.value.table.user, d.name, D.value, {
|
|
1920
1920
|
showCol: !1,
|
|
1921
|
-
width:
|
|
1922
|
-
sort:
|
|
1921
|
+
width: D.width,
|
|
1922
|
+
sort: D.sort
|
|
1923
1923
|
});
|
|
1924
1924
|
console.log(z);
|
|
1925
1925
|
}
|
|
@@ -1946,15 +1946,15 @@ const dl = {
|
|
|
1946
1946
|
});
|
|
1947
1947
|
};
|
|
1948
1948
|
return Ne(async () => {
|
|
1949
|
-
t.value = Object.entries(e.value).filter(([, $]) => $.visible !== !1).filter(([, $]) => $.type != "hidden").map(([$,
|
|
1950
|
-
label:
|
|
1949
|
+
t.value = Object.entries(e.value).filter(([, $]) => $.visible !== !1).filter(([, $]) => $.type != "hidden").map(([$, D]) => ({
|
|
1950
|
+
label: D.label,
|
|
1951
1951
|
value: $,
|
|
1952
|
-
alwaysShow:
|
|
1953
|
-
showCol:
|
|
1954
|
-
sort:
|
|
1955
|
-
width:
|
|
1956
|
-
})).sort(($,
|
|
1957
|
-
}), ($,
|
|
1952
|
+
alwaysShow: D.alwaysShow,
|
|
1953
|
+
showCol: D.showCol !== !1,
|
|
1954
|
+
sort: D.sort || 0,
|
|
1955
|
+
width: D.width || "auto"
|
|
1956
|
+
})).sort(($, D) => $.sort - D.sort), i();
|
|
1957
|
+
}), ($, D) => {
|
|
1958
1958
|
const z = j("el-divider"), ae = j("el-alert"), R = j("el-checkbox");
|
|
1959
1959
|
return r(), q("div", null, [
|
|
1960
1960
|
J("div", dl, [
|
|
@@ -1973,21 +1973,21 @@ const dl = {
|
|
|
1973
1973
|
}),
|
|
1974
1974
|
J("div", null, [
|
|
1975
1975
|
J("div", cl, [
|
|
1976
|
-
(r(!0), q(P, null, I(t.value, (
|
|
1977
|
-
modelValue:
|
|
1978
|
-
"onUpdate:modelValue": (g) =>
|
|
1979
|
-
"data-id":
|
|
1980
|
-
class: gt(["check-box-hover",
|
|
1981
|
-
onChange: (g) => o(g,
|
|
1976
|
+
(r(!0), q(P, null, I(t.value, (E) => (r(), S(R, {
|
|
1977
|
+
modelValue: E.showCol,
|
|
1978
|
+
"onUpdate:modelValue": (g) => E.showCol = g,
|
|
1979
|
+
"data-id": E.value,
|
|
1980
|
+
class: gt(["check-box-hover", E.value == "control" ? "filtered" : ""]),
|
|
1981
|
+
onChange: (g) => o(g, E.value),
|
|
1982
1982
|
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" },
|
|
1983
|
-
value:
|
|
1984
|
-
title:
|
|
1985
|
-
disabled:
|
|
1986
|
-
key:
|
|
1983
|
+
value: E.value,
|
|
1984
|
+
title: E.label,
|
|
1985
|
+
disabled: E.alwaysShow,
|
|
1986
|
+
key: E.value
|
|
1987
1987
|
}, {
|
|
1988
1988
|
default: v(() => [
|
|
1989
1989
|
J("span", {
|
|
1990
|
-
textContent: Ee(
|
|
1990
|
+
textContent: Ee(E.label),
|
|
1991
1991
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
1992
1992
|
}, null, 8, fl)
|
|
1993
1993
|
]),
|
|
@@ -2019,9 +2019,11 @@ const dl = {
|
|
|
2019
2019
|
emits: /* @__PURE__ */ Be(["load", "open", "delete", "submit", "reset", "download", "row-save"], ["update:modelValue"]),
|
|
2020
2020
|
setup(c, { emit: d }) {
|
|
2021
2021
|
var Ce, Fe, De, u, N, ie, Ve;
|
|
2022
|
-
const t = d, e = Ie(c, "modelValue"), o = rt("options"), i =
|
|
2022
|
+
const t = d, e = Ie(c, "modelValue"), o = rt("options"), i = ce({}), Y = Object.entries(e.value).filter(([l, a]) => (a == null ? void 0 : a.search) !== void 0).map(([l, a]) => [l, a.value]);
|
|
2023
2023
|
i.value = Object.fromEntries(Y);
|
|
2024
|
-
const M =
|
|
2024
|
+
const M = ce(!1), T = ["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"], $ = ce([]), D = c, z = ut(), ae = ce({}), R = ce([]), E = ce(null);
|
|
2025
|
+
E.value = Object.assign({}, Object.fromEntries(Object.entries(ke(e.value, (l, a) => a.type != "control" && a.editor !== !1 && a.type != "hidden")).map(([l, a]) => [l, a.value]))), console.log(E.value);
|
|
2026
|
+
const g = {
|
|
2025
2027
|
autoWatch: !1,
|
|
2026
2028
|
data: [],
|
|
2027
2029
|
border: !0,
|
|
@@ -2032,28 +2034,28 @@ const dl = {
|
|
|
2032
2034
|
load: () => {
|
|
2033
2035
|
let { currentPage: l, pageSize: a } = e.value.table.page;
|
|
2034
2036
|
try {
|
|
2035
|
-
t("load", { currentPage: l, pageSize: a, ...i.value }, (p,
|
|
2037
|
+
t("load", { currentPage: l, pageSize: a, ...i.value }, (p, O, { fields: G = [], sums: Q = {} } = {}) => {
|
|
2036
2038
|
var re, Se;
|
|
2037
2039
|
if (!Array.isArray(p)) {
|
|
2038
2040
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), Te.error("数据加载失败,请检查数据格式。");
|
|
2039
2041
|
return;
|
|
2040
2042
|
}
|
|
2041
|
-
if (typeof
|
|
2043
|
+
if (typeof O != "number") {
|
|
2042
2044
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Te.error("数据加载失败,请检查数据格式。");
|
|
2043
2045
|
return;
|
|
2044
2046
|
}
|
|
2045
|
-
e.value.table.data = p, ((Se = (re = e.value.control) == null ? void 0 : re.add) == null ? void 0 : Se.inline) === !0 && e.value.table.data.unshift(
|
|
2046
|
-
});
|
|
2047
|
+
e.value.table.data = p, ((Se = (re = e.value.control) == null ? void 0 : re.add) == null ? void 0 : Se.inline) === !0 && (e.value.table.data.unshift(E.value), console.log("ok")), e.value.table.page.total = O, R.value = G, ae.value = Q, de();
|
|
2048
|
+
}, E.value);
|
|
2047
2049
|
} catch (p) {
|
|
2048
2050
|
console.error("触发 load 事件时出现错误:", p), Te.error("数据加载时出现错误,请稍后重试。");
|
|
2049
2051
|
}
|
|
2050
2052
|
},
|
|
2051
2053
|
onHeaderDragend: (l, a, p) => {
|
|
2052
|
-
var
|
|
2053
|
-
He((
|
|
2054
|
+
var O;
|
|
2055
|
+
He((O = e.value.table) == null ? void 0 : O.user, D.name, p.property, { width: l });
|
|
2054
2056
|
},
|
|
2055
2057
|
onRowDblclick: (l, a, p) => {
|
|
2056
|
-
e.value.table.dblclickType == "edit" ?
|
|
2058
|
+
e.value.table.dblclickType == "edit" ? C(l, a, p, e) : e.value.table.dblclickType == "view" && B(l, a, p, e);
|
|
2057
2059
|
},
|
|
2058
2060
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
2059
2061
|
page: {
|
|
@@ -2078,17 +2080,17 @@ const dl = {
|
|
|
2078
2080
|
},
|
|
2079
2081
|
dblclickType: "edit",
|
|
2080
2082
|
"summary-method": ({ columns: l, data: a }, p) => p,
|
|
2081
|
-
onSortChange: ({ column: l, prop: a, order: p },
|
|
2083
|
+
onSortChange: ({ column: l, prop: a, order: p }, O) => {
|
|
2082
2084
|
}
|
|
2083
2085
|
};
|
|
2084
2086
|
e.value.table = Me(
|
|
2085
|
-
|
|
2087
|
+
g,
|
|
2086
2088
|
o == null ? void 0 : o.table,
|
|
2087
2089
|
e.value.table,
|
|
2088
2090
|
z
|
|
2089
2091
|
// 继承父组件的属性
|
|
2090
2092
|
);
|
|
2091
|
-
const
|
|
2093
|
+
const k = {
|
|
2092
2094
|
type: "control",
|
|
2093
2095
|
label: "操作",
|
|
2094
2096
|
width: 250,
|
|
@@ -2116,8 +2118,8 @@ const dl = {
|
|
|
2116
2118
|
type: "primary",
|
|
2117
2119
|
mode: "dialog",
|
|
2118
2120
|
auth: (l, a, p) => {
|
|
2119
|
-
var
|
|
2120
|
-
return ((Q = (G = (
|
|
2121
|
+
var O, G, Q;
|
|
2122
|
+
return ((Q = (G = (O = e.value) == null ? void 0 : O.control) == null ? void 0 : G.add) == null ? void 0 : Q.inline) === !1;
|
|
2121
2123
|
}
|
|
2122
2124
|
},
|
|
2123
2125
|
delete: {
|
|
@@ -2125,8 +2127,8 @@ const dl = {
|
|
|
2125
2127
|
label: "删除",
|
|
2126
2128
|
type: "danger",
|
|
2127
2129
|
auth: (l, a, p) => {
|
|
2128
|
-
var
|
|
2129
|
-
return !(((Q = (G = (
|
|
2130
|
+
var O, G, Q;
|
|
2131
|
+
return !(((Q = (G = (O = e.value) == null ? void 0 : O.control) == null ? void 0 : G.add) == null ? void 0 : Q.inline) === !0 && p === 0);
|
|
2130
2132
|
},
|
|
2131
2133
|
dialog: {
|
|
2132
2134
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -2162,33 +2164,33 @@ const dl = {
|
|
|
2162
2164
|
}
|
|
2163
2165
|
};
|
|
2164
2166
|
e.value.control = Me(
|
|
2165
|
-
|
|
2167
|
+
k,
|
|
2166
2168
|
o == null ? void 0 : o.control,
|
|
2167
2169
|
(De = e.value) == null ? void 0 : De.control
|
|
2168
2170
|
);
|
|
2169
|
-
const
|
|
2171
|
+
const K = {
|
|
2170
2172
|
type: "hidden",
|
|
2171
2173
|
minWidth: 120,
|
|
2172
2174
|
align: "center",
|
|
2173
|
-
formatter: (l, a, p,
|
|
2175
|
+
formatter: (l, a, p, O) => p
|
|
2174
2176
|
};
|
|
2175
2177
|
e.value.tableColumns = Me(
|
|
2176
|
-
|
|
2178
|
+
K,
|
|
2177
2179
|
o == null ? void 0 : o.tableColumns,
|
|
2178
2180
|
(u = e.value) == null ? void 0 : u.tableColumns
|
|
2179
2181
|
);
|
|
2180
|
-
const
|
|
2182
|
+
const oe = {
|
|
2181
2183
|
type: "hidden",
|
|
2182
2184
|
disabled: void 0,
|
|
2183
2185
|
footer: { hidden: !1 },
|
|
2184
2186
|
modalState: void 0
|
|
2185
2187
|
};
|
|
2186
2188
|
e.value.form = Me(
|
|
2187
|
-
|
|
2189
|
+
oe,
|
|
2188
2190
|
o == null ? void 0 : o.form,
|
|
2189
2191
|
(N = e.value) == null ? void 0 : N.form
|
|
2190
2192
|
);
|
|
2191
|
-
const
|
|
2193
|
+
const te = {
|
|
2192
2194
|
type: "hidden",
|
|
2193
2195
|
labelPosition: "right",
|
|
2194
2196
|
style: {
|
|
@@ -2196,11 +2198,11 @@ const dl = {
|
|
|
2196
2198
|
}
|
|
2197
2199
|
};
|
|
2198
2200
|
e.value.formItems = Me(
|
|
2199
|
-
|
|
2201
|
+
te,
|
|
2200
2202
|
o == null ? void 0 : o.formItems,
|
|
2201
2203
|
(ie = e == null ? void 0 : e.value) == null ? void 0 : ie.formItems
|
|
2202
2204
|
);
|
|
2203
|
-
const
|
|
2205
|
+
const me = {
|
|
2204
2206
|
title: "编辑",
|
|
2205
2207
|
mode: "drawer",
|
|
2206
2208
|
type: "hidden",
|
|
@@ -2209,11 +2211,11 @@ const dl = {
|
|
|
2209
2211
|
fullScreen: !1
|
|
2210
2212
|
};
|
|
2211
2213
|
e.value.dialog = Me(
|
|
2212
|
-
|
|
2214
|
+
me,
|
|
2213
2215
|
o == null ? void 0 : o.dialog,
|
|
2214
2216
|
(Ve = e.value) == null ? void 0 : Ve.dialog
|
|
2215
2217
|
);
|
|
2216
|
-
const
|
|
2218
|
+
const pe = (l, a) => {
|
|
2217
2219
|
let p = a;
|
|
2218
2220
|
if (l.decimals && !isNaN(parseFloat(a)) && (typeof l.decimals == "number" ? p = parseFloat(p).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? p = parseFloat(p).toFixed(l.decimals.num) : p = parseFloat(parseFloat(p).toFixed(l.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && et(a).isValid()) {
|
|
2219
2221
|
const G = {
|
|
@@ -2233,35 +2235,35 @@ const dl = {
|
|
|
2233
2235
|
e.value.form.modalState = "add";
|
|
2234
2236
|
try {
|
|
2235
2237
|
if (!await ((a = e.value.control) == null ? void 0 : a.validate("add", { m: l }))) return;
|
|
2236
|
-
} catch (
|
|
2237
|
-
console.error("验证失败:",
|
|
2238
|
+
} catch (O) {
|
|
2239
|
+
console.error("验证失败:", O);
|
|
2238
2240
|
return;
|
|
2239
2241
|
}
|
|
2240
|
-
(p = e.value.control.add) != null && p.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (
|
|
2241
|
-
e.value[
|
|
2242
|
+
(p = e.value.control.add) != null && p.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(E.value), t("open", "row-add", { initFormData: E.value })) : (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(E.value).forEach((O) => {
|
|
2243
|
+
e.value[O] && (e.value[O].value = E.value[O]);
|
|
2242
2244
|
}), M.value = !0, t("open", "add", { m: l }));
|
|
2243
|
-
},
|
|
2245
|
+
}, C = async (l, a, p, O) => {
|
|
2244
2246
|
var G, Q;
|
|
2245
2247
|
e.value.form.modalState = "edit";
|
|
2246
2248
|
try {
|
|
2247
|
-
if (!await ((G = e.value.control) == null ? void 0 : G.validate("edit", { row: l, column: a, $index: p, m:
|
|
2249
|
+
if (!await ((G = e.value.control) == null ? void 0 : G.validate("edit", { row: l, column: a, $index: p, m: O }))) return;
|
|
2248
2250
|
} catch (re) {
|
|
2249
2251
|
console.error("验证失败:", re);
|
|
2250
2252
|
return;
|
|
2251
2253
|
}
|
|
2252
|
-
(Q = e.value.control.edit) != null && Q.click ? e.value.control.edit.click(l, a, p,
|
|
2254
|
+
(Q = e.value.control.edit) != null && Q.click ? e.value.control.edit.click(l, a, p, O) : (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((re) => {
|
|
2253
2255
|
e.value[re] && (e.value[re].value = l[re]);
|
|
2254
|
-
}), M.value = !0, t("open", "edit", { m:
|
|
2255
|
-
}, y = async (l, a, p,
|
|
2256
|
+
}), M.value = !0, t("open", "edit", { m: O, row: l, column: a, $index: p }));
|
|
2257
|
+
}, y = async (l, a, p, O) => {
|
|
2256
2258
|
var G, Q;
|
|
2257
2259
|
try {
|
|
2258
|
-
if (!await ((G = e.value.control) == null ? void 0 : G.validate("delete", { row: l, column: a, $index: p, m:
|
|
2260
|
+
if (!await ((G = e.value.control) == null ? void 0 : G.validate("delete", { row: l, column: a, $index: p, m: O }))) return;
|
|
2259
2261
|
} catch (re) {
|
|
2260
2262
|
console.error("验证失败:", re);
|
|
2261
2263
|
return;
|
|
2262
2264
|
}
|
|
2263
2265
|
if ((Q = e.value.control.delete) != null && Q.click)
|
|
2264
|
-
e.value.control.delete.click(l, a, p,
|
|
2266
|
+
e.value.control.delete.click(l, a, p, O);
|
|
2265
2267
|
else {
|
|
2266
2268
|
let { message: re, title: Se, options: Pe } = e.value.control.delete.dialog;
|
|
2267
2269
|
vt.confirm(re, Se, Pe).then(() => {
|
|
@@ -2271,21 +2273,21 @@ const dl = {
|
|
|
2271
2273
|
}).catch(() => {
|
|
2272
2274
|
});
|
|
2273
2275
|
}
|
|
2274
|
-
}, B = async (l, a, p,
|
|
2276
|
+
}, B = async (l, a, p, O) => {
|
|
2275
2277
|
var G, Q;
|
|
2276
2278
|
e.value.form.modalState = void 0;
|
|
2277
2279
|
try {
|
|
2278
|
-
if (!await ((G = e.value.control) == null ? void 0 : G.validate("view", { row: l, column: a, $index: p, m:
|
|
2280
|
+
if (!await ((G = e.value.control) == null ? void 0 : G.validate("view", { row: l, column: a, $index: p, m: O }))) return;
|
|
2279
2281
|
} catch (re) {
|
|
2280
2282
|
console.error("验证失败:", re);
|
|
2281
2283
|
return;
|
|
2282
2284
|
}
|
|
2283
|
-
(Q = e.value.control.view) != null && Q.click ? e.value.control.view.click(l, a, p,
|
|
2285
|
+
(Q = e.value.control.view) != null && Q.click ? e.value.control.view.click(l, a, p, O) : (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((re) => {
|
|
2284
2286
|
e.value[re] && (e.value[re].value = l[re]);
|
|
2285
|
-
}), M.value = !0, t("open", "view", { m:
|
|
2286
|
-
}, ee = (l, a, p,
|
|
2287
|
+
}), M.value = !0, t("open", "view", { m: O, row: l, column: a, $index: p }));
|
|
2288
|
+
}, ee = (l, a, p, O) => {
|
|
2287
2289
|
var G;
|
|
2288
|
-
(G = e.value.control.save) != null && G.click ? e.value.control.save.click(l, a, p,
|
|
2290
|
+
(G = e.value.control.save) != null && G.click ? e.value.control.save.click(l, a, p, O) : t("row-save", { row: l, column: a, $index: p, data: e.value.table.data }, (Q) => {
|
|
2289
2291
|
Q && e.value.table.load();
|
|
2290
2292
|
});
|
|
2291
2293
|
}, ne = (l, a) => {
|
|
@@ -2299,7 +2301,7 @@ const dl = {
|
|
|
2299
2301
|
if ((p = l.control.download) != null && p.click)
|
|
2300
2302
|
l.control.download.click(l, a);
|
|
2301
2303
|
else {
|
|
2302
|
-
let
|
|
2304
|
+
let O = at({
|
|
2303
2305
|
title: l.control.download.label,
|
|
2304
2306
|
size: 480,
|
|
2305
2307
|
width: 600,
|
|
@@ -2308,7 +2310,7 @@ const dl = {
|
|
|
2308
2310
|
items: a,
|
|
2309
2311
|
commitText: l.control.download.excelLabel,
|
|
2310
2312
|
onExcel: (G, Q) => {
|
|
2311
|
-
t("download", G, Q),
|
|
2313
|
+
t("download", G, Q), O();
|
|
2312
2314
|
}
|
|
2313
2315
|
})
|
|
2314
2316
|
}
|
|
@@ -2323,36 +2325,36 @@ const dl = {
|
|
|
2323
2325
|
slots: {
|
|
2324
2326
|
default: () => qe(pl, {
|
|
2325
2327
|
modelValue: l,
|
|
2326
|
-
name:
|
|
2328
|
+
name: D.name
|
|
2327
2329
|
})
|
|
2328
2330
|
}
|
|
2329
2331
|
}, l.control.setting.mode);
|
|
2330
|
-
},
|
|
2332
|
+
}, w = e.value.control, n = [
|
|
2331
2333
|
{ type: "add", func: V },
|
|
2332
2334
|
{ type: "download", func: b },
|
|
2333
2335
|
{ type: "setting", func: h },
|
|
2334
2336
|
{ type: "view", func: B },
|
|
2335
|
-
{ type: "edit", func:
|
|
2337
|
+
{ type: "edit", func: C },
|
|
2336
2338
|
{ type: "delete", func: y },
|
|
2337
2339
|
{ type: "save", func: ee }
|
|
2338
2340
|
], s = (l) => n.filter((a) => l.includes(a.type)).map(({ type: a, func: p }) => {
|
|
2339
|
-
var
|
|
2341
|
+
var O, G, Q;
|
|
2340
2342
|
return {
|
|
2341
2343
|
name: `control-${a}`,
|
|
2342
|
-
attr:
|
|
2344
|
+
attr: w == null ? void 0 : w[a],
|
|
2343
2345
|
func: p,
|
|
2344
|
-
label: (
|
|
2345
|
-
sort: ((G =
|
|
2346
|
-
groupName: ((Q =
|
|
2346
|
+
label: (O = w == null ? void 0 : w[a]) == null ? void 0 : O.label,
|
|
2347
|
+
sort: ((G = w == null ? void 0 : w[a]) == null ? void 0 : G.sort) || 0,
|
|
2348
|
+
groupName: ((Q = w == null ? void 0 : w[a]) == null ? void 0 : Q.groupName) || "default"
|
|
2347
2349
|
};
|
|
2348
|
-
}).sort((a, p) => a.sort - p.sort),
|
|
2349
|
-
const
|
|
2350
|
-
return a[
|
|
2350
|
+
}).sort((a, p) => a.sort - p.sort), x = (l) => s(l).reduce((a, p) => {
|
|
2351
|
+
const O = p.groupName || "default";
|
|
2352
|
+
return a[O] || (a[O] = []), a[O].push(p), a;
|
|
2351
2353
|
}, {}), H = Ye(() => Object.fromEntries(
|
|
2352
2354
|
Object.entries(e.value).filter(([l, a]) => a.type !== "hidden").filter(([l, a]) => a.visible !== !1).filter(([l, a]) => a.showCol !== !1).map(([l, a]) => (a.sort = typeof a.sort == "number" ? a.sort : 0, [l, a])).sort((l, a) => l[1].sort - a[1].sort)
|
|
2353
|
-
)), X =
|
|
2354
|
-
const p = (
|
|
2355
|
-
for (const Q of
|
|
2355
|
+
)), X = ce({}), se = (l, a) => {
|
|
2356
|
+
const p = (O, G) => {
|
|
2357
|
+
for (const Q of O) {
|
|
2356
2358
|
if (Q.value == G) return Q.label;
|
|
2357
2359
|
if (Q.children) {
|
|
2358
2360
|
const re = p(Q.children, G);
|
|
@@ -2362,35 +2364,35 @@ const dl = {
|
|
|
2362
2364
|
return null;
|
|
2363
2365
|
};
|
|
2364
2366
|
if (l.getDicts) {
|
|
2365
|
-
const
|
|
2366
|
-
return X.value[
|
|
2367
|
-
X.value[
|
|
2367
|
+
const O = a.toString();
|
|
2368
|
+
return X.value[O] ? (l.options = X.value[O], l.formatter || (l.formatter = (G, Q, re, Se) => l.options && p(l.options, re) || re), Promise.resolve()) : l.getDicts(e.value.table.data).then((G) => {
|
|
2369
|
+
X.value[O] = G, l.options = G, l.formatter || (l.formatter = (Q, re, Se, Pe) => l.options && p(l.options, Se) || Se);
|
|
2368
2370
|
});
|
|
2369
2371
|
}
|
|
2370
2372
|
return Promise.resolve();
|
|
2371
|
-
},
|
|
2373
|
+
}, de = () => {
|
|
2372
2374
|
const l = [];
|
|
2373
2375
|
Object.keys(e.value).forEach((a) => {
|
|
2374
2376
|
if (e.value[a].getDicts) {
|
|
2375
2377
|
const p = se(e.value[a], a).then(() => {
|
|
2376
|
-
e.value.table.data.forEach((
|
|
2378
|
+
e.value.table.data.forEach((O) => {
|
|
2377
2379
|
var G;
|
|
2378
2380
|
if (e.value[a].getDicts && ((G = e.value[a]) == null ? void 0 : G.forceString) !== !1) {
|
|
2379
|
-
const Q =
|
|
2380
|
-
|
|
2381
|
+
const Q = O[a];
|
|
2382
|
+
O[a] = Q != null ? Q.toString() : Q;
|
|
2381
2383
|
}
|
|
2382
2384
|
});
|
|
2383
|
-
}).catch((
|
|
2384
|
-
console.error(`加载字典${a}出错:`,
|
|
2385
|
+
}).catch((O) => {
|
|
2386
|
+
console.error(`加载字典${a}出错:`, O);
|
|
2385
2387
|
});
|
|
2386
2388
|
l.push(p);
|
|
2387
2389
|
}
|
|
2388
2390
|
}), Promise.all(l).catch((a) => {
|
|
2389
2391
|
console.error("字典加载过程中发生错误:", a);
|
|
2390
2392
|
});
|
|
2391
|
-
}, he = (l, a, p,
|
|
2393
|
+
}, he = (l, a, p, O) => {
|
|
2392
2394
|
var G, Q;
|
|
2393
|
-
return l.table ? (G = l.table(a, p,
|
|
2395
|
+
return l.table ? (G = l.table(a, p, O)) != null && G.auth ? (Q = l.table(a, p, O)) == null ? void 0 : Q.auth(a, p, O) : !0 : !1;
|
|
2394
2396
|
}, ye = (l, a) => l.name === "control-save" && a === 0 && e.value.control.add.inline === !0 ? l.attr.addLabel : l.label;
|
|
2395
2397
|
return St(() => {
|
|
2396
2398
|
e.value.table.autoWatch && e.value.table.load();
|
|
@@ -2400,24 +2402,24 @@ const dl = {
|
|
|
2400
2402
|
Te.error("必须给使用此表格的用户一个名字!");
|
|
2401
2403
|
return;
|
|
2402
2404
|
}
|
|
2403
|
-
if (!
|
|
2405
|
+
if (!D.name) {
|
|
2404
2406
|
Te.error("必须给表格一个唯一的name属性");
|
|
2405
2407
|
return;
|
|
2406
2408
|
}
|
|
2407
2409
|
try {
|
|
2408
|
-
let a = await sl(
|
|
2410
|
+
let a = await sl(D.name);
|
|
2409
2411
|
if (a) {
|
|
2410
|
-
if (
|
|
2412
|
+
if (D.name !== a.name) {
|
|
2411
2413
|
Te.error("此表格已经存在,请换一个名字!");
|
|
2412
2414
|
return;
|
|
2413
2415
|
}
|
|
2414
2416
|
} else
|
|
2415
|
-
await il({ name:
|
|
2417
|
+
await il({ name: D.name });
|
|
2416
2418
|
} catch (a) {
|
|
2417
2419
|
console.error("检查表格名称时出现错误:", a), Te.error("检查表格名称时出现错误,请稍后重试。");
|
|
2418
2420
|
}
|
|
2419
2421
|
try {
|
|
2420
|
-
const a = await ul(e.value.table.user,
|
|
2422
|
+
const a = await ul(e.value.table.user, D.name);
|
|
2421
2423
|
a && a.forEach((p) => {
|
|
2422
2424
|
e.value[p.key] && (e.value[p.key].width = p.width, e.value[p.key].showCol = p.showCol, e.value[p.key].sort = p.sort);
|
|
2423
2425
|
});
|
|
@@ -2427,7 +2429,7 @@ const dl = {
|
|
|
2427
2429
|
e.value.table.autoWatch || e.value.table.load();
|
|
2428
2430
|
}), (l, a) => {
|
|
2429
2431
|
var ze, nt, st, it, dt;
|
|
2430
|
-
const p = j("el-button-group"),
|
|
2432
|
+
const p = j("el-button-group"), O = j("el-table-column"), G = j("el-table"), Q = j("el-pagination"), re = j("el-icon"), Se = j("el-dialog"), Pe = j("el-drawer");
|
|
2431
2433
|
return r(), q(P, null, [
|
|
2432
2434
|
J("div", vl, [
|
|
2433
2435
|
((nt = (ze = e.value) == null ? void 0 : ze.query) == null ? void 0 : nt.hidden) != !0 ? (r(), q("div", yl, [
|
|
@@ -2440,51 +2442,51 @@ const dl = {
|
|
|
2440
2442
|
}, fe({
|
|
2441
2443
|
"q-btns": v(() => [
|
|
2442
2444
|
m(l.$slots, "q-btns", {}, () => [
|
|
2443
|
-
(r(!0), q(P, null, I(
|
|
2444
|
-
le == "default" ? (r(!0), q(P, { key: 0 }, I(U, (
|
|
2445
|
-
m(l.$slots,
|
|
2446
|
-
(
|
|
2447
|
-
|
|
2445
|
+
(r(!0), q(P, null, I(x(["add", "download", "setting"]), (U, le) => (r(), q(P, null, [
|
|
2446
|
+
le == "default" ? (r(!0), q(P, { key: 0 }, I(U, (_) => (r(), q(P, null, [
|
|
2447
|
+
m(l.$slots, _.name + "-left", {}, void 0, !0),
|
|
2448
|
+
(_.name === "control-add" ? _.attr.auth() && _.attr.inline === !1 : _.attr.auth()) ? m(l.$slots, _.name, { key: 0 }, () => [
|
|
2449
|
+
_.label ? (r(), S(L(_e), F({
|
|
2448
2450
|
key: 0,
|
|
2449
2451
|
ref_for: !0
|
|
2450
|
-
},
|
|
2451
|
-
onClick: (W) =>
|
|
2452
|
+
}, _.attr, {
|
|
2453
|
+
onClick: (W) => _.func(e.value, $.value)
|
|
2452
2454
|
}), {
|
|
2453
2455
|
default: v(() => [
|
|
2454
|
-
we(Ee(
|
|
2456
|
+
we(Ee(_.label), 1)
|
|
2455
2457
|
]),
|
|
2456
2458
|
_: 2
|
|
2457
2459
|
}, 1040, ["onClick"])) : (r(), S(L(_e), F({
|
|
2458
2460
|
key: 1,
|
|
2459
2461
|
ref_for: !0
|
|
2460
|
-
},
|
|
2461
|
-
onClick: (W) =>
|
|
2462
|
+
}, _.attr, {
|
|
2463
|
+
onClick: (W) => _.func(e.value, $.value)
|
|
2462
2464
|
}), null, 16, ["onClick"]))
|
|
2463
2465
|
], !0) : $e("", !0),
|
|
2464
|
-
m(l.$slots,
|
|
2466
|
+
m(l.$slots, _.name + "-right", {}, void 0, !0)
|
|
2465
2467
|
], 64))), 256)) : (r(), S(p, { key: 1 }, {
|
|
2466
2468
|
default: v(() => [
|
|
2467
|
-
(r(!0), q(P, null, I(U, (
|
|
2468
|
-
m(l.$slots,
|
|
2469
|
-
(
|
|
2470
|
-
|
|
2469
|
+
(r(!0), q(P, null, I(U, (_) => (r(), q(P, null, [
|
|
2470
|
+
m(l.$slots, _.name + "-left", {}, void 0, !0),
|
|
2471
|
+
(_.name === "control-add" ? _.attr.auth() && _.attr.inline === !1 : _.attr.auth()) ? m(l.$slots, _.name, { key: 0 }, () => [
|
|
2472
|
+
_.label ? (r(), S(L(_e), F({
|
|
2471
2473
|
key: 0,
|
|
2472
2474
|
ref_for: !0
|
|
2473
|
-
},
|
|
2474
|
-
onClick: (W) =>
|
|
2475
|
+
}, _.attr, {
|
|
2476
|
+
onClick: (W) => _.func(e.value, $.value)
|
|
2475
2477
|
}), {
|
|
2476
2478
|
default: v(() => [
|
|
2477
|
-
we(Ee(
|
|
2479
|
+
we(Ee(_.label), 1)
|
|
2478
2480
|
]),
|
|
2479
2481
|
_: 2
|
|
2480
2482
|
}, 1040, ["onClick"])) : (r(), S(L(_e), F({
|
|
2481
2483
|
key: 1,
|
|
2482
2484
|
ref_for: !0
|
|
2483
|
-
},
|
|
2484
|
-
onClick: (W) =>
|
|
2485
|
+
}, _.attr, {
|
|
2486
|
+
onClick: (W) => _.func(e.value, $.value)
|
|
2485
2487
|
}), null, 16, ["onClick"]))
|
|
2486
2488
|
], !0) : $e("", !0),
|
|
2487
|
-
m(l.$slots,
|
|
2489
|
+
m(l.$slots, _.name + "-right", {}, void 0, !0)
|
|
2488
2490
|
], 64))), 256))
|
|
2489
2491
|
]),
|
|
2490
2492
|
_: 2
|
|
@@ -2494,7 +2496,7 @@ const dl = {
|
|
|
2494
2496
|
]),
|
|
2495
2497
|
_: 2
|
|
2496
2498
|
}, [
|
|
2497
|
-
I(l.$slots, (U, le,
|
|
2499
|
+
I(l.$slots, (U, le, _) => ({
|
|
2498
2500
|
name: le,
|
|
2499
2501
|
fn: v((W) => [
|
|
2500
2502
|
m(l.$slots, le, { model: e.value }, void 0, !0)
|
|
@@ -2507,8 +2509,8 @@ const dl = {
|
|
|
2507
2509
|
Z(G, F({ ...l.$attrs, ...L(ke)(e.value.table, (U) => !["dblclickType", "page"].includes(U)) }, {
|
|
2508
2510
|
"summary-method": (U) => e.value.table["summary-method"](U, { fields: R.value, sums: ae.value }),
|
|
2509
2511
|
onSortChange: a[1] || (a[1] = (U) => {
|
|
2510
|
-
var le,
|
|
2511
|
-
e.value.table.onSortChange(U, i.value), ((le = U == null ? void 0 : U.column) == null ? void 0 : le.sortable) === "custom" && ((
|
|
2512
|
+
var le, _;
|
|
2513
|
+
e.value.table.onSortChange(U, i.value), ((le = U == null ? void 0 : U.column) == null ? void 0 : le.sortable) === "custom" && ((_ = e.value.table) == null || _.load());
|
|
2512
2514
|
})
|
|
2513
2515
|
}), {
|
|
2514
2516
|
append: v(() => [
|
|
@@ -2519,40 +2521,40 @@ const dl = {
|
|
|
2519
2521
|
]),
|
|
2520
2522
|
default: v(() => [
|
|
2521
2523
|
m(l.$slots, "default", {}, () => [
|
|
2522
|
-
(r(!0), q(P, null, I(H.value, (U, le) => (r(), S(
|
|
2524
|
+
(r(!0), q(P, null, I(H.value, (U, le) => (r(), S(O, F({
|
|
2523
2525
|
prop: le,
|
|
2524
2526
|
key: le,
|
|
2525
2527
|
ref_for: !0
|
|
2526
|
-
}, { ...e.value.tableColumns, ...L(ke)(U, (
|
|
2527
|
-
header: v(({ column:
|
|
2528
|
+
}, { ...e.value.tableColumns, ...L(ke)(U, (_) => T.includes(_)) }, { "header-align": "center" }), fe({
|
|
2529
|
+
header: v(({ column: _, $index: W }) => [
|
|
2528
2530
|
le == "control" ? m(l.$slots, `${le}-header`, {
|
|
2529
2531
|
key: 0,
|
|
2530
|
-
column:
|
|
2532
|
+
column: _,
|
|
2531
2533
|
$index: W
|
|
2532
2534
|
}, () => [
|
|
2533
2535
|
a[10] || (a[10] = J("span", null, "操作", -1))
|
|
2534
2536
|
], !0) : m(l.$slots, `${le}-header`, {
|
|
2535
2537
|
key: 1,
|
|
2536
|
-
column:
|
|
2538
|
+
column: _,
|
|
2537
2539
|
$index: W
|
|
2538
2540
|
}, void 0, !0)
|
|
2539
2541
|
]),
|
|
2540
|
-
"filter-icon": v((
|
|
2541
|
-
m(l.$slots, `${le}-filter-icon`, { data:
|
|
2542
|
+
"filter-icon": v((_) => [
|
|
2543
|
+
m(l.$slots, `${le}-filter-icon`, { data: _ }, void 0, !0)
|
|
2542
2544
|
]),
|
|
2543
2545
|
_: 2
|
|
2544
2546
|
}, [
|
|
2545
2547
|
U.type === "image" ? {
|
|
2546
2548
|
name: "default",
|
|
2547
|
-
fn: v(({ row:
|
|
2549
|
+
fn: v(({ row: _, column: W, $index: ue }) => [
|
|
2548
2550
|
m(l.$slots, `${le}`, {
|
|
2549
|
-
row:
|
|
2551
|
+
row: _,
|
|
2550
2552
|
column: W,
|
|
2551
2553
|
$index: ue
|
|
2552
2554
|
}, () => [
|
|
2553
2555
|
J("img", F({
|
|
2554
2556
|
style: { width: "80px", height: "80px", "object-fit": "cover", "border-radius": "3px" },
|
|
2555
|
-
src:
|
|
2557
|
+
src: _[le],
|
|
2556
2558
|
ref_for: !0
|
|
2557
2559
|
}, U), null, 16, gl)
|
|
2558
2560
|
], !0)
|
|
@@ -2560,9 +2562,9 @@ const dl = {
|
|
|
2560
2562
|
key: "0"
|
|
2561
2563
|
} : U.type === "expand" ? {
|
|
2562
2564
|
name: "default",
|
|
2563
|
-
fn: v(({ row:
|
|
2565
|
+
fn: v(({ row: _, column: W, $index: ue }) => [
|
|
2564
2566
|
m(l.$slots, `${le}`, {
|
|
2565
|
-
row:
|
|
2567
|
+
row: _,
|
|
2566
2568
|
column: W,
|
|
2567
2569
|
$index: ue
|
|
2568
2570
|
}, void 0, !0)
|
|
@@ -2570,29 +2572,29 @@ const dl = {
|
|
|
2570
2572
|
key: "1"
|
|
2571
2573
|
} : U.type == "control" ? {
|
|
2572
2574
|
name: "default",
|
|
2573
|
-
fn: v(({ row:
|
|
2575
|
+
fn: v(({ row: _, column: W, $index: ue }) => {
|
|
2574
2576
|
var je, Le;
|
|
2575
2577
|
return [
|
|
2576
2578
|
J("div", {
|
|
2577
2579
|
class: gt(["control", (je = e.value.control) == null ? void 0 : je.class]),
|
|
2578
|
-
style:
|
|
2580
|
+
style: xe((Le = e.value.control) == null ? void 0 : Le.style)
|
|
2579
2581
|
}, [
|
|
2580
2582
|
m(l.$slots, "control", {}, () => [
|
|
2581
2583
|
m(l.$slots, "control-left", {
|
|
2582
|
-
row:
|
|
2584
|
+
row: _,
|
|
2583
2585
|
column: W,
|
|
2584
2586
|
$index: ue
|
|
2585
2587
|
}, void 0, !0),
|
|
2586
|
-
(r(!0), q(P, null, I(
|
|
2588
|
+
(r(!0), q(P, null, I(x(["view", "edit", "delete", "save"]), (Re, Je) => (r(), q(P, null, [
|
|
2587
2589
|
Je == "default" ? (r(!0), q(P, { key: 0 }, I(Re, (ge) => (r(), q(P, null, [
|
|
2588
2590
|
m(l.$slots, ge.name + "-left", {
|
|
2589
|
-
row:
|
|
2591
|
+
row: _,
|
|
2590
2592
|
column: W,
|
|
2591
2593
|
$index: ue
|
|
2592
2594
|
}, void 0, !0),
|
|
2593
|
-
ge.attr.auth(
|
|
2595
|
+
ge.attr.auth(_, W, ue) ? m(l.$slots, ge.name, {
|
|
2594
2596
|
key: 0,
|
|
2595
|
-
row:
|
|
2597
|
+
row: _,
|
|
2596
2598
|
column: W,
|
|
2597
2599
|
$index: ue
|
|
2598
2600
|
}, () => [
|
|
@@ -2600,7 +2602,7 @@ const dl = {
|
|
|
2600
2602
|
key: 0,
|
|
2601
2603
|
ref_for: !0
|
|
2602
2604
|
}, ge.attr, {
|
|
2603
|
-
onClick: (Ze) => ge.func(
|
|
2605
|
+
onClick: (Ze) => ge.func(_, W, ue, e.value)
|
|
2604
2606
|
}), {
|
|
2605
2607
|
default: v(() => [
|
|
2606
2608
|
we(Ee(ye(ge, ue)), 1)
|
|
@@ -2610,11 +2612,11 @@ const dl = {
|
|
|
2610
2612
|
key: 1,
|
|
2611
2613
|
ref_for: !0
|
|
2612
2614
|
}, ge.attr, {
|
|
2613
|
-
onClick: (Ze) => ge.func(
|
|
2615
|
+
onClick: (Ze) => ge.func(_, W, ue, e.value)
|
|
2614
2616
|
}), null, 16, ["onClick"]))
|
|
2615
2617
|
], !0) : $e("", !0),
|
|
2616
2618
|
m(l.$slots, ge.name + "-right", {
|
|
2617
|
-
row:
|
|
2619
|
+
row: _,
|
|
2618
2620
|
column: W,
|
|
2619
2621
|
$index: ue
|
|
2620
2622
|
}, void 0, !0)
|
|
@@ -2622,13 +2624,13 @@ const dl = {
|
|
|
2622
2624
|
default: v(() => [
|
|
2623
2625
|
(r(!0), q(P, null, I(Re, (ge) => (r(), q(P, null, [
|
|
2624
2626
|
m(l.$slots, ge.name + "-left", {
|
|
2625
|
-
row:
|
|
2627
|
+
row: _,
|
|
2626
2628
|
column: W,
|
|
2627
2629
|
$index: ue
|
|
2628
2630
|
}, void 0, !0),
|
|
2629
|
-
ge.attr.auth(
|
|
2631
|
+
ge.attr.auth(_, W, ue) ? m(l.$slots, ge.name, {
|
|
2630
2632
|
key: 0,
|
|
2631
|
-
row:
|
|
2633
|
+
row: _,
|
|
2632
2634
|
column: W,
|
|
2633
2635
|
$index: ue
|
|
2634
2636
|
}, () => [
|
|
@@ -2636,7 +2638,7 @@ const dl = {
|
|
|
2636
2638
|
key: 0,
|
|
2637
2639
|
ref_for: !0
|
|
2638
2640
|
}, ge.attr, {
|
|
2639
|
-
onClick: (Ze) => ge.func(
|
|
2641
|
+
onClick: (Ze) => ge.func(_, W, ue, e.value)
|
|
2640
2642
|
}), {
|
|
2641
2643
|
default: v(() => [
|
|
2642
2644
|
we(Ee(ye(ge, ue)), 1)
|
|
@@ -2646,11 +2648,11 @@ const dl = {
|
|
|
2646
2648
|
key: 1,
|
|
2647
2649
|
ref_for: !0
|
|
2648
2650
|
}, ge.attr, {
|
|
2649
|
-
onClick: (Ze) => ge.func(
|
|
2651
|
+
onClick: (Ze) => ge.func(_, W, ue, e.value)
|
|
2650
2652
|
}), null, 16, ["onClick"]))
|
|
2651
2653
|
], !0) : $e("", !0),
|
|
2652
2654
|
m(l.$slots, ge.name + "-right", {
|
|
2653
|
-
row:
|
|
2655
|
+
row: _,
|
|
2654
2656
|
column: W,
|
|
2655
2657
|
$index: ue
|
|
2656
2658
|
}, void 0, !0)
|
|
@@ -2660,7 +2662,7 @@ const dl = {
|
|
|
2660
2662
|
}, 1024))
|
|
2661
2663
|
], 64))), 256)),
|
|
2662
2664
|
m(l.$slots, "control-right", {
|
|
2663
|
-
row:
|
|
2665
|
+
row: _,
|
|
2664
2666
|
column: W,
|
|
2665
2667
|
$index: ue
|
|
2666
2668
|
}, void 0, !0)
|
|
@@ -2671,26 +2673,26 @@ const dl = {
|
|
|
2671
2673
|
key: "2"
|
|
2672
2674
|
} : U.type != "selection" && U.type != "index" ? {
|
|
2673
2675
|
name: "default",
|
|
2674
|
-
fn: v(({ row:
|
|
2675
|
-
he(U,
|
|
2676
|
+
fn: v(({ row: _, column: W, $index: ue }) => [
|
|
2677
|
+
he(U, _, W, ue) && ue != -1 ? m(l.$slots, `${le}`, {
|
|
2676
2678
|
key: 0,
|
|
2677
|
-
row:
|
|
2679
|
+
row: _,
|
|
2678
2680
|
column: W,
|
|
2679
2681
|
$index: ue
|
|
2680
2682
|
}, () => {
|
|
2681
2683
|
var je;
|
|
2682
2684
|
return [
|
|
2683
2685
|
(r(), S(Xe, {
|
|
2684
|
-
modelValue:
|
|
2685
|
-
"onUpdate:modelValue": (Le) =>
|
|
2686
|
-
item: U == null ? void 0 : U.table(
|
|
2686
|
+
modelValue: _[le],
|
|
2687
|
+
"onUpdate:modelValue": (Le) => _[le] = Le,
|
|
2688
|
+
item: U == null ? void 0 : U.table(_, W, ue),
|
|
2687
2689
|
ctrlKey: le,
|
|
2688
2690
|
key: le + "-" + ue,
|
|
2689
|
-
ctrlType: (je = U.table(
|
|
2691
|
+
ctrlType: (je = U.table(_, W, ue)) != null && je.type ? U.table(_, W, ue).type : U.type,
|
|
2690
2692
|
model: e.value,
|
|
2691
2693
|
class: "g-ctrl-container",
|
|
2692
2694
|
t: "t",
|
|
2693
|
-
formInfo:
|
|
2695
|
+
formInfo: _
|
|
2694
2696
|
}, fe({ _: 2 }, [
|
|
2695
2697
|
I(l.$slots, (Le, Re) => ({
|
|
2696
2698
|
name: Re,
|
|
@@ -2706,12 +2708,12 @@ const dl = {
|
|
|
2706
2708
|
];
|
|
2707
2709
|
}, !0) : m(l.$slots, `${le}`, {
|
|
2708
2710
|
key: 1,
|
|
2709
|
-
row:
|
|
2711
|
+
row: _,
|
|
2710
2712
|
column: W,
|
|
2711
2713
|
$index: ue
|
|
2712
2714
|
}, () => [
|
|
2713
2715
|
J("div", {
|
|
2714
|
-
innerHTML: pe(U, W.formatter(
|
|
2716
|
+
innerHTML: pe(U, W.formatter(_, W, _[le], ue))
|
|
2715
2717
|
}, null, 8, bl)
|
|
2716
2718
|
], !0)
|
|
2717
2719
|
]),
|
|
@@ -2746,7 +2748,7 @@ const dl = {
|
|
|
2746
2748
|
width: L(wt)(e.value.dialog.width) + 35
|
|
2747
2749
|
}), {
|
|
2748
2750
|
header: v(() => {
|
|
2749
|
-
var U, le,
|
|
2751
|
+
var U, le, _, W;
|
|
2750
2752
|
return [
|
|
2751
2753
|
J("div", El, [
|
|
2752
2754
|
J("div", wl, [
|
|
@@ -2763,12 +2765,12 @@ const dl = {
|
|
|
2763
2765
|
}, [
|
|
2764
2766
|
Z(re, null, {
|
|
2765
2767
|
default: v(() => [
|
|
2766
|
-
Z(L(
|
|
2768
|
+
Z(L(xt))
|
|
2767
2769
|
]),
|
|
2768
2770
|
_: 1
|
|
2769
2771
|
})
|
|
2770
2772
|
])) : $e("", !0),
|
|
2771
|
-
((W = (
|
|
2773
|
+
((W = (_ = e.value) == null ? void 0 : _.dialog) == null ? void 0 : W.fullScreen) === !0 ? (r(), q("div", {
|
|
2772
2774
|
key: 1,
|
|
2773
2775
|
onClick: a[5] || (a[5] = (ue) => {
|
|
2774
2776
|
e.value.dialog.fullScreen = !1;
|
|
@@ -2794,7 +2796,7 @@ const dl = {
|
|
|
2794
2796
|
onSubmit: ne,
|
|
2795
2797
|
onReset: A
|
|
2796
2798
|
}, fe({ _: 2 }, [
|
|
2797
|
-
I(l.$slots, (U, le,
|
|
2799
|
+
I(l.$slots, (U, le, _) => ({
|
|
2798
2800
|
name: le,
|
|
2799
2801
|
fn: v((W) => [
|
|
2800
2802
|
m(l.$slots, le, { model: W }, void 0, !0)
|
|
@@ -2829,7 +2831,7 @@ const dl = {
|
|
|
2829
2831
|
onSubmit: ne,
|
|
2830
2832
|
onReset: A
|
|
2831
2833
|
}, fe({ _: 2 }, [
|
|
2832
|
-
I(l.$slots, (U, le,
|
|
2834
|
+
I(l.$slots, (U, le, _) => ({
|
|
2833
2835
|
name: le,
|
|
2834
2836
|
fn: v((W) => [
|
|
2835
2837
|
m(l.$slots, le, { model: W }, void 0, !0)
|
|
@@ -2844,7 +2846,7 @@ const dl = {
|
|
|
2844
2846
|
], 64);
|
|
2845
2847
|
};
|
|
2846
2848
|
}
|
|
2847
|
-
}), Ml = /* @__PURE__ */ Ue(Vl, [["__scopeId", "data-v-
|
|
2849
|
+
}), Ml = /* @__PURE__ */ Ue(Vl, [["__scopeId", "data-v-8fe5a29e"]]), Tl = { class: "g-tree-table" }, Fl = { class: "g-tree-container" }, Sl = { class: "g-tree-table-container" }, ql = /* @__PURE__ */ Object.assign({
|
|
2848
2850
|
name: "g-tree-table",
|
|
2849
2851
|
inheritAttrs: !1
|
|
2850
2852
|
}, {
|
|
@@ -2855,37 +2857,37 @@ const dl = {
|
|
|
2855
2857
|
},
|
|
2856
2858
|
emits: /* @__PURE__ */ Be(["load"], ["update:modelValue"]),
|
|
2857
2859
|
setup(c, { emit: d }) {
|
|
2858
|
-
const t = d, e = Ie(c, "modelValue"), o = ut(), i =
|
|
2859
|
-
var
|
|
2860
|
+
const t = d, e = Ie(c, "modelValue"), o = ut(), i = ce((o == null ? void 0 : o.width) || "180px"), Y = ce((o == null ? void 0 : o.search) === void 0 ? !0 : o == null ? void 0 : o.search), M = ce({}), T = ce(""), $ = ce(null), D = (R, E) => {
|
|
2861
|
+
var k, K;
|
|
2860
2862
|
if (!R) return !0;
|
|
2861
|
-
const g = ((K = (
|
|
2862
|
-
return
|
|
2863
|
-
}, z = (R,
|
|
2864
|
-
t("load", M.value, R,
|
|
2863
|
+
const g = ((K = (k = o.tree) == null ? void 0 : k.props) == null ? void 0 : K.label) || "label";
|
|
2864
|
+
return E[g].includes(R);
|
|
2865
|
+
}, z = (R, E) => {
|
|
2866
|
+
t("load", M.value, R, E);
|
|
2865
2867
|
}, ae = (R) => {
|
|
2866
2868
|
M.value = R, e.value.table.load();
|
|
2867
2869
|
};
|
|
2868
2870
|
return qt(T, (R) => {
|
|
2869
2871
|
$.value.filter(R);
|
|
2870
|
-
}), (R,
|
|
2871
|
-
const g = j("el-input"),
|
|
2872
|
+
}), (R, E) => {
|
|
2873
|
+
const g = j("el-input"), k = j("el-tree"), K = j("g-table");
|
|
2872
2874
|
return r(), q("div", Tl, [
|
|
2873
2875
|
J("div", {
|
|
2874
2876
|
class: "g-tree-left",
|
|
2875
|
-
style:
|
|
2877
|
+
style: xe({ width: i.value })
|
|
2876
2878
|
}, [
|
|
2877
2879
|
Y.value ? (r(), S(g, {
|
|
2878
2880
|
key: 0,
|
|
2879
2881
|
modelValue: T.value,
|
|
2880
|
-
"onUpdate:modelValue":
|
|
2882
|
+
"onUpdate:modelValue": E[0] || (E[0] = (oe) => T.value = oe),
|
|
2881
2883
|
style: { width: "100%", padding: "0 10px", "box-sizing": "border-box" },
|
|
2882
2884
|
placeholder: "输入节点查询",
|
|
2883
2885
|
clearable: ""
|
|
2884
2886
|
}, null, 8, ["modelValue"])) : $e("", !0),
|
|
2885
2887
|
J("div", Fl, [
|
|
2886
|
-
Z(
|
|
2888
|
+
Z(k, F({
|
|
2887
2889
|
style: { width: i.value },
|
|
2888
|
-
"filter-node-method":
|
|
2890
|
+
"filter-node-method": D,
|
|
2889
2891
|
"expand-on-click-node": !1,
|
|
2890
2892
|
ref_key: "treeRef",
|
|
2891
2893
|
ref: $,
|
|
@@ -2901,7 +2903,7 @@ const dl = {
|
|
|
2901
2903
|
]),
|
|
2902
2904
|
_: 2
|
|
2903
2905
|
}, [
|
|
2904
|
-
I(R.$slots, (oe, te,
|
|
2906
|
+
I(R.$slots, (oe, te, me) => ({
|
|
2905
2907
|
name: te,
|
|
2906
2908
|
fn: v((pe) => [
|
|
2907
2909
|
m(R.$slots, te, { data: pe }, void 0, !0)
|
|
@@ -2913,9 +2915,9 @@ const dl = {
|
|
|
2913
2915
|
J("div", Sl, [
|
|
2914
2916
|
Z(K, F({
|
|
2915
2917
|
modelValue: e.value,
|
|
2916
|
-
"onUpdate:modelValue":
|
|
2918
|
+
"onUpdate:modelValue": E[1] || (E[1] = (oe) => e.value = oe)
|
|
2917
2919
|
}, R.$attrs, { onLoad: z }), fe({ _: 2 }, [
|
|
2918
|
-
I(R.$slots, (oe, te,
|
|
2920
|
+
I(R.$slots, (oe, te, me) => ({
|
|
2919
2921
|
name: te,
|
|
2920
2922
|
fn: v((pe) => [
|
|
2921
2923
|
m(R.$slots, te, { data: pe }, void 0, !0)
|
|
@@ -2926,7 +2928,7 @@ const dl = {
|
|
|
2926
2928
|
]);
|
|
2927
2929
|
};
|
|
2928
2930
|
}
|
|
2929
|
-
}),
|
|
2931
|
+
}), Ol = /* @__PURE__ */ Ue(ql, [["__scopeId", "data-v-5fb88c8a"]]), xl = {
|
|
2930
2932
|
key: 0,
|
|
2931
2933
|
class: "op-group"
|
|
2932
2934
|
}, Al = {
|
|
@@ -2954,9 +2956,9 @@ const dl = {
|
|
|
2954
2956
|
},
|
|
2955
2957
|
setup(c) {
|
|
2956
2958
|
const d = c;
|
|
2957
|
-
return (t, e) => d.title ? (r(), q("div",
|
|
2959
|
+
return (t, e) => d.title ? (r(), q("div", xl, [
|
|
2958
2960
|
(r(!0), q(P, null, I(d.columns, (o) => (r(), q("span", {
|
|
2959
|
-
style:
|
|
2961
|
+
style: xe({ width: (o == null ? void 0 : o.width) || pt, ...o == null ? void 0 : o.titleStyle, textAlign: (o == null ? void 0 : o.align) || "center" }),
|
|
2960
2962
|
key: o.key
|
|
2961
2963
|
}, [
|
|
2962
2964
|
m(t.$slots, `${c.t}-title-${o.key}`, { col: o }, () => [
|
|
@@ -2965,7 +2967,7 @@ const dl = {
|
|
|
2965
2967
|
], 4))), 128))
|
|
2966
2968
|
])) : (r(), q("div", Al, [
|
|
2967
2969
|
(r(!0), q(P, null, I(d.columns, (o) => (r(), q("span", {
|
|
2968
|
-
style:
|
|
2970
|
+
style: xe({ width: (o == null ? void 0 : o.width) || pt, textAlign: (o == null ? void 0 : o.align) || "center", ...o == null ? void 0 : o.style }),
|
|
2969
2971
|
key: o.key,
|
|
2970
2972
|
title: c.data[o.key]
|
|
2971
2973
|
}, [
|
|
@@ -2975,7 +2977,7 @@ const dl = {
|
|
|
2975
2977
|
], 12, Bl))), 128))
|
|
2976
2978
|
]));
|
|
2977
2979
|
}
|
|
2978
|
-
}), Yl = /* @__PURE__ */ Ue(Il, [["__scopeId", "data-v-ba0fcda6"]]), Ul = Object.freeze({}), Et = [Ml, tt,
|
|
2980
|
+
}), Yl = /* @__PURE__ */ Ue(Il, [["__scopeId", "data-v-ba0fcda6"]]), Ul = Object.freeze({}), Et = [Ml, tt, Ol, Yl];
|
|
2979
2981
|
let lt = {};
|
|
2980
2982
|
const Gl = {
|
|
2981
2983
|
install: (c, d = {}) => {
|
|
@@ -2992,7 +2994,7 @@ const Gl = {
|
|
|
2992
2994
|
const o = jl(d);
|
|
2993
2995
|
if (!o) return () => {
|
|
2994
2996
|
};
|
|
2995
|
-
const i =
|
|
2997
|
+
const i = ce(!0), Y = Ot({
|
|
2996
2998
|
setup() {
|
|
2997
2999
|
return e = () => {
|
|
2998
3000
|
i.value = !1, setTimeout(() => {
|
|
@@ -3002,7 +3004,7 @@ const Gl = {
|
|
|
3002
3004
|
var M, T, $;
|
|
3003
3005
|
return qe(o, {
|
|
3004
3006
|
modelValue: i.value,
|
|
3005
|
-
"onUpdate:modelValue": (
|
|
3007
|
+
"onUpdate:modelValue": (D) => i.value = D,
|
|
3006
3008
|
...c,
|
|
3007
3009
|
appendToBody: !0,
|
|
3008
3010
|
destroyOnClose: !0
|