vue-2024-ui 0.0.68 → 0.0.69
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 +616 -615
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import wt, { ElForm as
|
|
2
|
-
import { mergeModels as
|
|
1
|
+
import wt, { ElForm as We, ElButtonGroup as He, ElButton as be, ElPopover as Je, ElMessage as ke, ElMessageBox as ct, ElDialog as kt, ElDrawer as _t } from "element-plus";
|
|
2
|
+
import { mergeModels as Oe, useModel as xe, ref as ye, onMounted as Le, watch as mt, resolveComponent as R, openBlock as s, createElementBlock as A, unref as o, createBlock as S, mergeProps as x, withCtx as b, renderSlot as p, Fragment as Y, renderList as I, createTextVNode as $e, toDisplayString as me, createSlots as de, createVNode as G, createCommentVNode as ve, normalizeProps as Ne, createElementVNode as Q, useSlots as pt, nextTick as Ct, inject as ot, useAttrs as rt, onUnmounted as Dt, computed as Ae, normalizeStyle as Te, withModifiers as it, guardReactiveProps as Ke, resolveDynamicComponent as Se, Transition as Vt, withDirectives as vt, vShow as yt, h as Ve, onBeforeUnmount as Ft, normalizeClass as ht, watchEffect as Tt, createApp as Mt } from "vue";
|
|
3
3
|
import { FullScreen as qt, Remove as St } from "@element-plus/icons-vue";
|
|
4
4
|
import gt from "sortablejs";
|
|
5
|
-
import { Dexie as
|
|
6
|
-
var
|
|
5
|
+
import { Dexie as Ot } from "dexie";
|
|
6
|
+
var xt = {
|
|
7
7
|
name: "zh-cn",
|
|
8
8
|
el: {
|
|
9
9
|
breadcrumb: {
|
|
@@ -189,23 +189,23 @@ var bt = { exports: {} };
|
|
|
189
189
|
(function(t, e) {
|
|
190
190
|
c.exports = e();
|
|
191
191
|
})(At, function() {
|
|
192
|
-
var t = 1e3, e = 6e4, r = 36e5, v = "millisecond", V = "second", T = "minute", M = "hour", w = "day", k = "week",
|
|
192
|
+
var t = 1e3, e = 6e4, r = 36e5, v = "millisecond", V = "second", T = "minute", M = "hour", w = "day", k = "week", z = "month", se = "quarter", E = "year", u = "date", N = "Invalid Date", ae = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ee = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, J = { 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(q) {
|
|
193
193
|
var h = ["th", "st", "nd", "rd"], $ = q % 100;
|
|
194
194
|
return "[" + q + (h[($ - 20) % 10] || h[$] || h[0]) + "]";
|
|
195
195
|
} }, ne = function(q, h, $) {
|
|
196
196
|
var m = String(q);
|
|
197
197
|
return !m || m.length >= h ? q : "" + Array(h + 1 - m.length).join($) + q;
|
|
198
|
-
},
|
|
198
|
+
}, he = { s: ne, z: function(q) {
|
|
199
199
|
var h = -q.utcOffset(), $ = Math.abs(h), m = Math.floor($ / 60), i = $ % 60;
|
|
200
200
|
return (h <= 0 ? "+" : "-") + ne(m, 2, "0") + ":" + ne(i, 2, "0");
|
|
201
201
|
}, m: function q(h, $) {
|
|
202
202
|
if (h.date() < $.date()) return -q($, h);
|
|
203
|
-
var m = 12 * ($.year() - h.year()) + ($.month() - h.month()), i = h.clone().add(m,
|
|
203
|
+
var m = 12 * ($.year() - h.year()) + ($.month() - h.month()), i = h.clone().add(m, z), _ = $ - i < 0, F = h.clone().add(m + (_ ? -1 : 1), z);
|
|
204
204
|
return +(-(m + ($ - i) / (_ ? i - F : F - i)) || 0);
|
|
205
205
|
}, a: function(q) {
|
|
206
206
|
return q < 0 ? Math.ceil(q) || 0 : Math.floor(q);
|
|
207
207
|
}, p: function(q) {
|
|
208
|
-
return { M:
|
|
208
|
+
return { M: z, y: E, w: k, d: w, D: u, h: M, m: T, s: V, ms: v, Q: se }[q] || String(q || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(q) {
|
|
210
210
|
return q === void 0;
|
|
211
211
|
} }, fe = "en", d = {};
|
|
@@ -221,17 +221,17 @@ var bt = { exports: {} };
|
|
|
221
221
|
var F = h.split("-");
|
|
222
222
|
if (!i && F.length > 1) return q(F[0]);
|
|
223
223
|
} else {
|
|
224
|
-
var
|
|
225
|
-
d[
|
|
224
|
+
var P = h.name;
|
|
225
|
+
d[P] = h, i = P;
|
|
226
226
|
}
|
|
227
227
|
return !m && i && (fe = i), i || !m && fe;
|
|
228
|
-
},
|
|
228
|
+
}, L = function(q, h) {
|
|
229
229
|
if (B(q)) return q.clone();
|
|
230
230
|
var $ = typeof h == "object" ? h : {};
|
|
231
231
|
return $.date = q, $.args = arguments, new Z($);
|
|
232
|
-
},
|
|
233
|
-
|
|
234
|
-
return
|
|
232
|
+
}, O = he;
|
|
233
|
+
O.l = y, O.i = B, O.w = function(q, h) {
|
|
234
|
+
return L(q, { locale: h.$L, utc: h.$u, x: h.$x, $offset: h.$offset });
|
|
235
235
|
};
|
|
236
236
|
var Z = function() {
|
|
237
237
|
function q($) {
|
|
@@ -242,13 +242,13 @@ var bt = { exports: {} };
|
|
|
242
242
|
this.$d = function(m) {
|
|
243
243
|
var i = m.date, _ = m.utc;
|
|
244
244
|
if (i === null) return /* @__PURE__ */ new Date(NaN);
|
|
245
|
-
if (
|
|
245
|
+
if (O.u(i)) return /* @__PURE__ */ new Date();
|
|
246
246
|
if (i instanceof Date) return new Date(i);
|
|
247
247
|
if (typeof i == "string" && !/Z$/i.test(i)) {
|
|
248
248
|
var F = i.match(ae);
|
|
249
249
|
if (F) {
|
|
250
|
-
var
|
|
251
|
-
return _ ? new Date(Date.UTC(F[1],
|
|
250
|
+
var P = F[2] - 1 || 0, X = (F[7] || "0").substring(0, 3);
|
|
251
|
+
return _ ? new Date(Date.UTC(F[1], P, F[3] || 1, F[4] || 0, F[5] || 0, F[6] || 0, X)) : new Date(F[1], P, F[3] || 1, F[4] || 0, F[5] || 0, F[6] || 0, X);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
return new Date(i);
|
|
@@ -257,37 +257,37 @@ var bt = { exports: {} };
|
|
|
257
257
|
var $ = this.$d;
|
|
258
258
|
this.$y = $.getFullYear(), this.$M = $.getMonth(), this.$D = $.getDate(), this.$W = $.getDay(), this.$H = $.getHours(), this.$m = $.getMinutes(), this.$s = $.getSeconds(), this.$ms = $.getMilliseconds();
|
|
259
259
|
}, h.$utils = function() {
|
|
260
|
-
return
|
|
260
|
+
return O;
|
|
261
261
|
}, h.isValid = function() {
|
|
262
|
-
return this.$d.toString() !==
|
|
262
|
+
return this.$d.toString() !== N;
|
|
263
263
|
}, h.isSame = function($, m) {
|
|
264
|
-
var i =
|
|
264
|
+
var i = L($);
|
|
265
265
|
return this.startOf(m) <= i && i <= this.endOf(m);
|
|
266
266
|
}, h.isAfter = function($, m) {
|
|
267
|
-
return
|
|
267
|
+
return L($) < this.startOf(m);
|
|
268
268
|
}, h.isBefore = function($, m) {
|
|
269
|
-
return this.endOf(m) <
|
|
269
|
+
return this.endOf(m) < L($);
|
|
270
270
|
}, h.$g = function($, m, i) {
|
|
271
|
-
return
|
|
271
|
+
return O.u($) ? this[m] : this.set(i, $);
|
|
272
272
|
}, h.unix = function() {
|
|
273
273
|
return Math.floor(this.valueOf() / 1e3);
|
|
274
274
|
}, h.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
276
|
}, h.startOf = function($, m) {
|
|
277
|
-
var i = this, _ = !!
|
|
278
|
-
var l =
|
|
277
|
+
var i = this, _ = !!O.u(m) || m, F = O.p($), P = function(De, ge) {
|
|
278
|
+
var l = O.w(i.$u ? Date.UTC(i.$y, ge, De) : new Date(i.$y, ge, De), i);
|
|
279
279
|
return _ ? l : l.endOf(w);
|
|
280
|
-
}, X = function(De,
|
|
281
|
-
return
|
|
282
|
-
}, oe = this.$W, n = this.$M,
|
|
280
|
+
}, X = function(De, ge) {
|
|
281
|
+
return O.w(i.toDate()[De].apply(i.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ge)), i);
|
|
282
|
+
}, oe = this.$W, n = this.$M, W = this.$D, re = "set" + (this.$u ? "UTC" : "");
|
|
283
283
|
switch (F) {
|
|
284
284
|
case E:
|
|
285
|
-
return _ ?
|
|
286
|
-
case
|
|
287
|
-
return _ ?
|
|
285
|
+
return _ ? P(1, 0) : P(31, 11);
|
|
286
|
+
case z:
|
|
287
|
+
return _ ? P(1, n) : P(0, n + 1);
|
|
288
288
|
case k:
|
|
289
289
|
var Ce = this.$locale().weekStart || 0, Me = (oe < Ce ? oe + 7 : oe) - Ce;
|
|
290
|
-
return
|
|
290
|
+
return P(_ ? W - Me : W + (6 - Me), n);
|
|
291
291
|
case w:
|
|
292
292
|
case u:
|
|
293
293
|
return X(re + "Hours", 0);
|
|
@@ -303,61 +303,61 @@ var bt = { exports: {} };
|
|
|
303
303
|
}, h.endOf = function($) {
|
|
304
304
|
return this.startOf($, !1);
|
|
305
305
|
}, h.$set = function($, m) {
|
|
306
|
-
var i, _ =
|
|
307
|
-
if (_ ===
|
|
306
|
+
var i, _ = O.p($), F = "set" + (this.$u ? "UTC" : ""), P = (i = {}, i[w] = F + "Date", i[u] = F + "Date", i[z] = F + "Month", i[E] = F + "FullYear", i[M] = F + "Hours", i[T] = F + "Minutes", i[V] = F + "Seconds", i[v] = F + "Milliseconds", i)[_], X = _ === w ? this.$D + (m - this.$W) : m;
|
|
307
|
+
if (_ === z || _ === E) {
|
|
308
308
|
var oe = this.clone().set(u, 1);
|
|
309
|
-
oe.$d[
|
|
310
|
-
} else
|
|
309
|
+
oe.$d[P](X), oe.init(), this.$d = oe.set(u, Math.min(this.$D, oe.daysInMonth())).$d;
|
|
310
|
+
} else P && this.$d[P](X);
|
|
311
311
|
return this.init(), this;
|
|
312
312
|
}, h.set = function($, m) {
|
|
313
313
|
return this.clone().$set($, m);
|
|
314
314
|
}, h.get = function($) {
|
|
315
|
-
return this[
|
|
315
|
+
return this[O.p($)]();
|
|
316
316
|
}, h.add = function($, m) {
|
|
317
317
|
var i, _ = this;
|
|
318
318
|
$ = Number($);
|
|
319
|
-
var F =
|
|
320
|
-
var
|
|
321
|
-
return
|
|
319
|
+
var F = O.p(m), P = function(n) {
|
|
320
|
+
var W = L(_);
|
|
321
|
+
return O.w(W.date(W.date() + Math.round(n * $)), _);
|
|
322
322
|
};
|
|
323
|
-
if (F ===
|
|
323
|
+
if (F === z) return this.set(z, this.$M + $);
|
|
324
324
|
if (F === E) return this.set(E, this.$y + $);
|
|
325
|
-
if (F === w) return
|
|
326
|
-
if (F === k) return
|
|
325
|
+
if (F === w) return P(1);
|
|
326
|
+
if (F === k) return P(7);
|
|
327
327
|
var X = (i = {}, i[T] = e, i[M] = r, i[V] = t, i)[F] || 1, oe = this.$d.getTime() + $ * X;
|
|
328
|
-
return
|
|
328
|
+
return O.w(oe, this);
|
|
329
329
|
}, h.subtract = function($, m) {
|
|
330
330
|
return this.add(-1 * $, m);
|
|
331
331
|
}, h.format = function($) {
|
|
332
332
|
var m = this, i = this.$locale();
|
|
333
|
-
if (!this.isValid()) return i.invalidDate ||
|
|
334
|
-
var _ = $ || "YYYY-MM-DDTHH:mm:ssZ", F =
|
|
335
|
-
return
|
|
336
|
-
}, Me = function(
|
|
337
|
-
return
|
|
338
|
-
}, De = re || function(
|
|
339
|
-
var
|
|
340
|
-
return a ?
|
|
333
|
+
if (!this.isValid()) return i.invalidDate || N;
|
|
334
|
+
var _ = $ || "YYYY-MM-DDTHH:mm:ssZ", F = O.z(this), P = this.$H, X = this.$m, oe = this.$M, n = i.weekdays, W = i.months, re = i.meridiem, Ce = function(ge, l, a, g) {
|
|
335
|
+
return ge && (ge[l] || ge(m, _)) || a[l].slice(0, g);
|
|
336
|
+
}, Me = function(ge) {
|
|
337
|
+
return O.s(P % 12 || 12, ge, "0");
|
|
338
|
+
}, De = re || function(ge, l, a) {
|
|
339
|
+
var g = ge < 12 ? "AM" : "PM";
|
|
340
|
+
return a ? g.toLowerCase() : g;
|
|
341
341
|
};
|
|
342
|
-
return _.replace(
|
|
342
|
+
return _.replace(ee, function(ge, l) {
|
|
343
343
|
return l || function(a) {
|
|
344
344
|
switch (a) {
|
|
345
345
|
case "YY":
|
|
346
346
|
return String(m.$y).slice(-2);
|
|
347
347
|
case "YYYY":
|
|
348
|
-
return
|
|
348
|
+
return O.s(m.$y, 4, "0");
|
|
349
349
|
case "M":
|
|
350
350
|
return oe + 1;
|
|
351
351
|
case "MM":
|
|
352
|
-
return
|
|
352
|
+
return O.s(oe + 1, 2, "0");
|
|
353
353
|
case "MMM":
|
|
354
|
-
return Ce(i.monthsShort, oe,
|
|
354
|
+
return Ce(i.monthsShort, oe, W, 3);
|
|
355
355
|
case "MMMM":
|
|
356
|
-
return Ce(
|
|
356
|
+
return Ce(W, oe);
|
|
357
357
|
case "D":
|
|
358
358
|
return m.$D;
|
|
359
359
|
case "DD":
|
|
360
|
-
return
|
|
360
|
+
return O.s(m.$D, 2, "0");
|
|
361
361
|
case "d":
|
|
362
362
|
return String(m.$W);
|
|
363
363
|
case "dd":
|
|
@@ -367,48 +367,48 @@ var bt = { exports: {} };
|
|
|
367
367
|
case "dddd":
|
|
368
368
|
return n[m.$W];
|
|
369
369
|
case "H":
|
|
370
|
-
return String(
|
|
370
|
+
return String(P);
|
|
371
371
|
case "HH":
|
|
372
|
-
return
|
|
372
|
+
return O.s(P, 2, "0");
|
|
373
373
|
case "h":
|
|
374
374
|
return Me(1);
|
|
375
375
|
case "hh":
|
|
376
376
|
return Me(2);
|
|
377
377
|
case "a":
|
|
378
|
-
return De(
|
|
378
|
+
return De(P, X, !0);
|
|
379
379
|
case "A":
|
|
380
|
-
return De(
|
|
380
|
+
return De(P, X, !1);
|
|
381
381
|
case "m":
|
|
382
382
|
return String(X);
|
|
383
383
|
case "mm":
|
|
384
|
-
return
|
|
384
|
+
return O.s(X, 2, "0");
|
|
385
385
|
case "s":
|
|
386
386
|
return String(m.$s);
|
|
387
387
|
case "ss":
|
|
388
|
-
return
|
|
388
|
+
return O.s(m.$s, 2, "0");
|
|
389
389
|
case "SSS":
|
|
390
|
-
return
|
|
390
|
+
return O.s(m.$ms, 3, "0");
|
|
391
391
|
case "Z":
|
|
392
392
|
return F;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
|
-
}(
|
|
395
|
+
}(ge) || F.replace(":", "");
|
|
396
396
|
});
|
|
397
397
|
}, h.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
399
|
}, h.diff = function($, m, i) {
|
|
400
|
-
var _, F = this,
|
|
401
|
-
return
|
|
400
|
+
var _, F = this, P = O.p(m), X = L($), oe = (X.utcOffset() - this.utcOffset()) * e, n = this - X, W = function() {
|
|
401
|
+
return O.m(F, X);
|
|
402
402
|
};
|
|
403
|
-
switch (
|
|
403
|
+
switch (P) {
|
|
404
404
|
case E:
|
|
405
|
-
_ =
|
|
405
|
+
_ = W() / 12;
|
|
406
406
|
break;
|
|
407
|
-
case
|
|
408
|
-
_ =
|
|
407
|
+
case z:
|
|
408
|
+
_ = W();
|
|
409
409
|
break;
|
|
410
410
|
case se:
|
|
411
|
-
_ =
|
|
411
|
+
_ = W() / 3;
|
|
412
412
|
break;
|
|
413
413
|
case k:
|
|
414
414
|
_ = (n - oe) / 6048e5;
|
|
@@ -428,9 +428,9 @@ var bt = { exports: {} };
|
|
|
428
428
|
default:
|
|
429
429
|
_ = n;
|
|
430
430
|
}
|
|
431
|
-
return i ? _ :
|
|
431
|
+
return i ? _ : O.a(_);
|
|
432
432
|
}, h.daysInMonth = function() {
|
|
433
|
-
return this.endOf(
|
|
433
|
+
return this.endOf(z).$D;
|
|
434
434
|
}, h.$locale = function() {
|
|
435
435
|
return d[this.$L];
|
|
436
436
|
}, h.locale = function($, m) {
|
|
@@ -438,7 +438,7 @@ var bt = { exports: {} };
|
|
|
438
438
|
var i = this.clone(), _ = y($, m, !0);
|
|
439
439
|
return _ && (i.$L = _), i;
|
|
440
440
|
}, h.clone = function() {
|
|
441
|
-
return
|
|
441
|
+
return O.w(this.$d, this);
|
|
442
442
|
}, h.toDate = function() {
|
|
443
443
|
return new Date(this.valueOf());
|
|
444
444
|
}, h.toJSON = function() {
|
|
@@ -448,38 +448,38 @@ var bt = { exports: {} };
|
|
|
448
448
|
}, h.toString = function() {
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, q;
|
|
451
|
-
}(),
|
|
452
|
-
return
|
|
453
|
-
|
|
451
|
+
}(), Ee = Z.prototype;
|
|
452
|
+
return L.prototype = Ee, [["$ms", v], ["$s", V], ["$m", T], ["$H", M], ["$W", w], ["$M", z], ["$y", E], ["$D", u]].forEach(function(q) {
|
|
453
|
+
Ee[q[1]] = function(h) {
|
|
454
454
|
return this.$g(h, q[0], q[1]);
|
|
455
455
|
};
|
|
456
|
-
}),
|
|
457
|
-
return q.$i || (q(h, Z,
|
|
458
|
-
},
|
|
459
|
-
return
|
|
460
|
-
},
|
|
456
|
+
}), L.extend = function(q, h) {
|
|
457
|
+
return q.$i || (q(h, Z, L), q.$i = !0), L;
|
|
458
|
+
}, L.locale = y, L.isDayjs = B, L.unix = function(q) {
|
|
459
|
+
return L(1e3 * q);
|
|
460
|
+
}, L.en = d[fe], L.Ls = d, L.p = {}, L;
|
|
461
461
|
});
|
|
462
462
|
})(bt);
|
|
463
463
|
var It = bt.exports;
|
|
464
|
-
const
|
|
464
|
+
const Ze = /* @__PURE__ */ Bt(It), Ut = {
|
|
465
465
|
style: { display: "flex", width: "100%" },
|
|
466
466
|
class: "g-ctrl-container"
|
|
467
467
|
}, Rt = {
|
|
468
468
|
key: 20,
|
|
469
469
|
style: { position: "relative" }
|
|
470
|
-
}, jt = ["title"],
|
|
470
|
+
}, jt = ["title"], Ge = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
471
471
|
__name: "g-ctrl",
|
|
472
|
-
props: /* @__PURE__ */
|
|
472
|
+
props: /* @__PURE__ */ Oe(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
473
473
|
modelValue: { required: !0 },
|
|
474
474
|
modelModifiers: {}
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:modelValue"],
|
|
477
477
|
setup(c) {
|
|
478
|
-
const f =
|
|
478
|
+
const f = xe(c, "modelValue"), t = c, e = t.item || {}, r = t.ctrlKey, v = t.ctrlType, V = t.model, T = ye([]), M = ye([]), w = () => Object.keys(pt()).filter((E) => E.startsWith(`${t.t}-${r}-`)).map((E) => E.replace(`${t.t}-${r}-`, "")), k = {
|
|
479
479
|
filterable: !0,
|
|
480
480
|
remote: !!(e && e["remote-method"]),
|
|
481
481
|
...e
|
|
482
|
-
},
|
|
482
|
+
}, z = (E) => {
|
|
483
483
|
e["remote-method"](E, (u) => {
|
|
484
484
|
Ct(() => {
|
|
485
485
|
M.value = u;
|
|
@@ -491,23 +491,23 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
491
491
|
if (typeof u == "string")
|
|
492
492
|
M.value = [{ label: u, value: f.value }];
|
|
493
493
|
else {
|
|
494
|
-
const
|
|
494
|
+
const N = u == null ? void 0 : u.map((ae, ee) => ({
|
|
495
495
|
...ae,
|
|
496
|
-
value: ae.value ?? ae.label ??
|
|
496
|
+
value: ae.value ?? ae.label ?? ee,
|
|
497
497
|
label: ae.label || "未知选项"
|
|
498
498
|
}));
|
|
499
|
-
M.value =
|
|
499
|
+
M.value = N || [];
|
|
500
500
|
}
|
|
501
501
|
} catch (u) {
|
|
502
502
|
throw console.error("获取选项失败:", u), u;
|
|
503
503
|
}
|
|
504
504
|
};
|
|
505
505
|
return Le(async () => {
|
|
506
|
-
var
|
|
507
|
-
e && e["remote-method"] && (k["remote-method"] =
|
|
508
|
-
const E = (
|
|
509
|
-
typeof e.getDicts == "function" && se(J).catch((
|
|
510
|
-
console.error(`Failed to load ${J} for ${
|
|
506
|
+
var N, ae;
|
|
507
|
+
e && e["remote-method"] && (k["remote-method"] = z), (ae = (N = V[r]) == null ? void 0 : N.options) != null && ae.length && (M.value = V[r].options);
|
|
508
|
+
const E = (ee, J = "options", ne = V[r]) => {
|
|
509
|
+
typeof e.getDicts == "function" && se(J).catch((he) => {
|
|
510
|
+
console.error(`Failed to load ${J} for ${ee}:`, he);
|
|
511
511
|
});
|
|
512
512
|
};
|
|
513
513
|
["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(v) && E(v), v === ie.TREESELECT && await (async () => {
|
|
@@ -524,17 +524,17 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
524
524
|
}
|
|
525
525
|
}, { deep: !0 }), (E, u) => {
|
|
526
526
|
var X, oe;
|
|
527
|
-
const
|
|
527
|
+
const N = R("el-radio"), ae = R("el-radio-group"), ee = R("el-radio-button"), J = R("el-checkbox"), ne = R("el-checkbox-group"), he = R("el-checkbox-button"), fe = R("el-option"), d = R("el-select"), D = R("el-tree-select"), B = R("el-time-picker"), y = R("el-time-select"), L = R("el-date-picker"), O = R("el-color-picker"), Z = R("el-rate"), Ee = R("el-slider"), q = R("el-switch"), h = R("el-transfer"), $ = R("el-cascader"), m = R("el-button"), i = R("el-upload"), _ = R("el-autocomplete"), F = R("el-input-number"), P = R("el-input");
|
|
528
528
|
return s(), A("div", Ut, [
|
|
529
|
-
o(v) == o(ie).RADIO ? (s(), S(ae,
|
|
529
|
+
o(v) == o(ie).RADIO ? (s(), S(ae, x({
|
|
530
530
|
key: 0,
|
|
531
531
|
modelValue: f.value,
|
|
532
532
|
"onUpdate:modelValue": u[0] || (u[0] = (n) => f.value = n)
|
|
533
533
|
}, o(e)), {
|
|
534
|
-
default:
|
|
534
|
+
default: b(() => [
|
|
535
535
|
p(E.$slots, `${t.t}-${o(r)}`, { data: o(e) }, () => [
|
|
536
|
-
(s(!0), A(Y, null, I(M.value, (n) => (s(), S(
|
|
537
|
-
default:
|
|
536
|
+
(s(!0), A(Y, null, I(M.value, (n) => (s(), S(N, x({ ref_for: !0 }, n), {
|
|
537
|
+
default: b(() => [
|
|
538
538
|
p(E.$slots, `${t.t}-${o(r)}-options`, { option: n })
|
|
539
539
|
]),
|
|
540
540
|
_: 2
|
|
@@ -542,15 +542,15 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
542
542
|
])
|
|
543
543
|
]),
|
|
544
544
|
_: 3
|
|
545
|
-
}, 16, ["modelValue"])) : o(v) == o(ie).RADIOBUTTON ? (s(), S(ae,
|
|
545
|
+
}, 16, ["modelValue"])) : o(v) == o(ie).RADIOBUTTON ? (s(), S(ae, x({
|
|
546
546
|
key: 1,
|
|
547
547
|
modelValue: f.value,
|
|
548
548
|
"onUpdate:modelValue": u[1] || (u[1] = (n) => f.value = n)
|
|
549
549
|
}, o(e)), {
|
|
550
|
-
default:
|
|
550
|
+
default: b(() => [
|
|
551
551
|
p(E.$slots, `${t.t}-${o(r)}`, { data: o(e) }, () => [
|
|
552
|
-
(s(!0), A(Y, null, I(M.value, (n) => (s(), S(
|
|
553
|
-
default:
|
|
552
|
+
(s(!0), A(Y, null, I(M.value, (n) => (s(), S(ee, x({ ref_for: !0 }, n), {
|
|
553
|
+
default: b(() => [
|
|
554
554
|
p(E.$slots, `${t.t}-${o(r)}-options`, { option: n })
|
|
555
555
|
]),
|
|
556
556
|
_: 2
|
|
@@ -558,28 +558,28 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
558
558
|
])
|
|
559
559
|
]),
|
|
560
560
|
_: 3
|
|
561
|
-
}, 16, ["modelValue"])) : o(v) == o(ie).CHECKBOX ? (s(), S(J,
|
|
561
|
+
}, 16, ["modelValue"])) : o(v) == o(ie).CHECKBOX ? (s(), S(J, x({
|
|
562
562
|
key: 2,
|
|
563
563
|
modelValue: f.value,
|
|
564
564
|
"onUpdate:modelValue": u[2] || (u[2] = (n) => f.value = n)
|
|
565
565
|
}, o(e)), {
|
|
566
|
-
default:
|
|
566
|
+
default: b(() => [
|
|
567
567
|
p(E.$slots, `${t.t}-${o(r)}`, { data: o(e) }, () => [
|
|
568
|
-
u[21] || (u[21] =
|
|
568
|
+
u[21] || (u[21] = $e(me(" ")))
|
|
569
569
|
])
|
|
570
570
|
]),
|
|
571
571
|
_: 3
|
|
572
|
-
}, 16, ["modelValue"])) : o(v) == o(ie).CHECKBOXGROUP ? (s(), S(ne,
|
|
572
|
+
}, 16, ["modelValue"])) : o(v) == o(ie).CHECKBOXGROUP ? (s(), S(ne, x({
|
|
573
573
|
key: 3,
|
|
574
574
|
modelValue: f.value,
|
|
575
575
|
"onUpdate:modelValue": u[3] || (u[3] = (n) => f.value = n)
|
|
576
576
|
}, o(e)), {
|
|
577
|
-
default:
|
|
577
|
+
default: b(() => [
|
|
578
578
|
p(E.$slots, `${t.t}-${o(r)}`, { data: o(e) }, () => [
|
|
579
|
-
(s(!0), A(Y, null, I(M.value, (n) => (s(), S(J,
|
|
580
|
-
default:
|
|
579
|
+
(s(!0), A(Y, null, I(M.value, (n) => (s(), S(J, x({ ref_for: !0 }, n), {
|
|
580
|
+
default: b(() => [
|
|
581
581
|
p(E.$slots, `${t.t}-${o(r)}-options`, { option: n }, () => [
|
|
582
|
-
|
|
582
|
+
$e(me(n.label), 1)
|
|
583
583
|
])
|
|
584
584
|
]),
|
|
585
585
|
_: 2
|
|
@@ -587,15 +587,15 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
587
587
|
])
|
|
588
588
|
]),
|
|
589
589
|
_: 3
|
|
590
|
-
}, 16, ["modelValue"])) : o(v) == o(ie).CHECKBOXGROUPBUTTON ? (s(), S(ne,
|
|
590
|
+
}, 16, ["modelValue"])) : o(v) == o(ie).CHECKBOXGROUPBUTTON ? (s(), S(ne, x({
|
|
591
591
|
key: 4,
|
|
592
592
|
modelValue: f.value,
|
|
593
593
|
"onUpdate:modelValue": u[4] || (u[4] = (n) => f.value = n)
|
|
594
594
|
}, o(e)), {
|
|
595
|
-
default:
|
|
595
|
+
default: b(() => [
|
|
596
596
|
p(E.$slots, `${t.t}-${o(r)}`, { data: o(e) }, () => [
|
|
597
|
-
(s(!0), A(Y, null, I(M.value, (n) => (s(), S(
|
|
598
|
-
default:
|
|
597
|
+
(s(!0), A(Y, null, I(M.value, (n) => (s(), S(he, x({ ref_for: !0 }, n), {
|
|
598
|
+
default: b(() => [
|
|
599
599
|
p(E.$slots, `${t.t}-${o(r)}-options`, { option: n })
|
|
600
600
|
]),
|
|
601
601
|
_: 2
|
|
@@ -603,36 +603,36 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
603
603
|
])
|
|
604
604
|
]),
|
|
605
605
|
_: 3
|
|
606
|
-
}, 16, ["modelValue"])) : o(v) === o(ie).SELECT ? (s(), S(d,
|
|
606
|
+
}, 16, ["modelValue"])) : o(v) === o(ie).SELECT ? (s(), S(d, x({
|
|
607
607
|
key: 5,
|
|
608
608
|
modelValue: f.value,
|
|
609
609
|
"onUpdate:modelValue": u[5] || (u[5] = (n) => f.value = n),
|
|
610
610
|
placeholder: o(V)[o(r)].label
|
|
611
611
|
}, k), de({
|
|
612
|
-
default:
|
|
612
|
+
default: b(() => [
|
|
613
613
|
p(E.$slots, `${t.t}-${o(r)}`, { options: M.value }, () => [
|
|
614
614
|
(s(!0), A(Y, null, I(M.value, (n) => (s(), A(Y, {
|
|
615
615
|
key: n.value
|
|
616
616
|
}, [
|
|
617
|
-
G(fe,
|
|
618
|
-
onClick: (
|
|
617
|
+
G(fe, x({ ref_for: !0 }, n, {
|
|
618
|
+
onClick: (W) => k.change && k.change(n)
|
|
619
619
|
}), {
|
|
620
|
-
default:
|
|
620
|
+
default: b(() => [
|
|
621
621
|
p(E.$slots, `${t.t}-${o(r)}-options`, { option: n })
|
|
622
622
|
]),
|
|
623
623
|
_: 2
|
|
624
624
|
}, 1040, ["onClick"]),
|
|
625
|
-
n.children && n.children.length ? (s(!0), A(Y, { key: 0 }, I(n.children, (
|
|
626
|
-
key:
|
|
625
|
+
n.children && n.children.length ? (s(!0), A(Y, { key: 0 }, I(n.children, (W) => (s(), S(fe, x({
|
|
626
|
+
key: W.value,
|
|
627
627
|
ref_for: !0
|
|
628
|
-
},
|
|
629
|
-
onClick: (re) => k.change && k.change(
|
|
628
|
+
}, W, {
|
|
629
|
+
onClick: (re) => k.change && k.change(W)
|
|
630
630
|
}), {
|
|
631
|
-
default:
|
|
632
|
-
p(E.$slots, `${t.t}-${o(r)}-options`, { option:
|
|
631
|
+
default: b(() => [
|
|
632
|
+
p(E.$slots, `${t.t}-${o(r)}-options`, { option: W })
|
|
633
633
|
]),
|
|
634
634
|
_: 2
|
|
635
|
-
}, 1040, ["onClick"]))), 128)) :
|
|
635
|
+
}, 1040, ["onClick"]))), 128)) : ve("", !0)
|
|
636
636
|
], 64))), 128))
|
|
637
637
|
])
|
|
638
638
|
]),
|
|
@@ -640,11 +640,11 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
640
640
|
}, [
|
|
641
641
|
I(w(), (n) => ({
|
|
642
642
|
name: n,
|
|
643
|
-
fn:
|
|
644
|
-
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data:
|
|
643
|
+
fn: b((W) => [
|
|
644
|
+
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data: W })
|
|
645
645
|
])
|
|
646
646
|
}))
|
|
647
|
-
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(ie).TREESELECT ? (s(), S(D,
|
|
647
|
+
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(ie).TREESELECT ? (s(), S(D, x({
|
|
648
648
|
key: 6,
|
|
649
649
|
modelValue: f.value,
|
|
650
650
|
"onUpdate:modelValue": u[6] || (u[6] = (n) => f.value = n),
|
|
@@ -652,18 +652,18 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
652
652
|
}, o(e), { data: T.value }), de({ _: 2 }, [
|
|
653
653
|
I(w(), (n) => ({
|
|
654
654
|
name: n,
|
|
655
|
-
fn:
|
|
656
|
-
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data:
|
|
655
|
+
fn: b((W) => [
|
|
656
|
+
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data: W })
|
|
657
657
|
])
|
|
658
658
|
}))
|
|
659
|
-
]), 1040, ["modelValue", "placeholder", "data"])) : o(v) == o(ie).TIME ? (s(), S(B,
|
|
659
|
+
]), 1040, ["modelValue", "placeholder", "data"])) : o(v) == o(ie).TIME ? (s(), S(B, x({
|
|
660
660
|
key: 7,
|
|
661
661
|
modelValue: f.value,
|
|
662
662
|
"onUpdate:modelValue": u[7] || (u[7] = (n) => f.value = n),
|
|
663
663
|
"arrow-control": ""
|
|
664
664
|
}, o(e), {
|
|
665
665
|
placeholder: o(V)[o(r)].label
|
|
666
|
-
}), null, 16, ["modelValue", "placeholder"])) : o(v) == o(ie).TIMESELECT ? (s(), S(y,
|
|
666
|
+
}), null, 16, ["modelValue", "placeholder"])) : o(v) == o(ie).TIMESELECT ? (s(), S(y, x({
|
|
667
667
|
key: 8,
|
|
668
668
|
modelValue: f.value,
|
|
669
669
|
"onUpdate:modelValue": u[8] || (u[8] = (n) => f.value = n),
|
|
@@ -671,7 +671,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
671
671
|
step: "00:15",
|
|
672
672
|
end: "23:30",
|
|
673
673
|
placeholder: o(V)[o(r)].label
|
|
674
|
-
}, o(e)), null, 16, ["modelValue", "placeholder"])) : o(v) == o(ie).DATE ? (s(), S(
|
|
674
|
+
}, o(e)), null, 16, ["modelValue", "placeholder"])) : o(v) == o(ie).DATE ? (s(), S(L, x({
|
|
675
675
|
key: 9,
|
|
676
676
|
modelValue: f.value,
|
|
677
677
|
"onUpdate:modelValue": u[9] || (u[9] = (n) => f.value = n),
|
|
@@ -681,11 +681,11 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
681
681
|
}, o(e)), de({ _: 2 }, [
|
|
682
682
|
I(w(), (n) => ({
|
|
683
683
|
name: n,
|
|
684
|
-
fn:
|
|
685
|
-
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data:
|
|
684
|
+
fn: b((W) => [
|
|
685
|
+
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data: W })
|
|
686
686
|
])
|
|
687
687
|
}))
|
|
688
|
-
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(ie).DATETIME ? (s(), S(
|
|
688
|
+
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(ie).DATETIME ? (s(), S(L, x({
|
|
689
689
|
key: 10,
|
|
690
690
|
modelValue: f.value,
|
|
691
691
|
"onUpdate:modelValue": u[10] || (u[10] = (n) => f.value = n),
|
|
@@ -695,86 +695,86 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
695
695
|
}, o(e)), de({ _: 2 }, [
|
|
696
696
|
I(w(), (n) => ({
|
|
697
697
|
name: n,
|
|
698
|
-
fn:
|
|
699
|
-
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data:
|
|
698
|
+
fn: b((W) => [
|
|
699
|
+
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data: W })
|
|
700
700
|
])
|
|
701
701
|
}))
|
|
702
|
-
]), 1040, ["modelValue", "type", "placeholder"])) : o(v) == o(ie).COLOR ? (s(), S(
|
|
702
|
+
]), 1040, ["modelValue", "type", "placeholder"])) : o(v) == o(ie).COLOR ? (s(), S(O, x({
|
|
703
703
|
key: 11,
|
|
704
704
|
modelValue: f.value,
|
|
705
705
|
"onUpdate:modelValue": u[11] || (u[11] = (n) => f.value = n)
|
|
706
|
-
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(ie).RATE ? (s(), S(Z,
|
|
706
|
+
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(ie).RATE ? (s(), S(Z, x({
|
|
707
707
|
key: 12,
|
|
708
708
|
modelValue: f.value,
|
|
709
709
|
"onUpdate:modelValue": u[12] || (u[12] = (n) => f.value = n)
|
|
710
|
-
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(ie).SLIDER ? (s(), S(
|
|
710
|
+
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(ie).SLIDER ? (s(), S(Ee, x({
|
|
711
711
|
key: 13,
|
|
712
712
|
modelValue: f.value,
|
|
713
713
|
"onUpdate:modelValue": u[13] || (u[13] = (n) => f.value = n)
|
|
714
|
-
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(ie).SWITCH ? (s(), S(q,
|
|
714
|
+
}, o(e)), null, 16, ["modelValue"])) : o(v) == o(ie).SWITCH ? (s(), S(q, x({
|
|
715
715
|
key: 14,
|
|
716
716
|
modelValue: f.value,
|
|
717
717
|
"onUpdate:modelValue": u[14] || (u[14] = (n) => f.value = n)
|
|
718
718
|
}, o(e)), de({ _: 2 }, [
|
|
719
719
|
I(w(), (n) => ({
|
|
720
720
|
name: n,
|
|
721
|
-
fn:
|
|
722
|
-
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data:
|
|
721
|
+
fn: b((W) => [
|
|
722
|
+
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data: W })
|
|
723
723
|
])
|
|
724
724
|
}))
|
|
725
|
-
]), 1040, ["modelValue"])) : o(v) == o(ie).TRANSFER ? (s(), S(h,
|
|
725
|
+
]), 1040, ["modelValue"])) : o(v) == o(ie).TRANSFER ? (s(), S(h, x({
|
|
726
726
|
key: 15,
|
|
727
727
|
modelValue: f.value,
|
|
728
728
|
"onUpdate:modelValue": u[15] || (u[15] = (n) => f.value = n)
|
|
729
729
|
}, o(e)), de({ _: 2 }, [
|
|
730
730
|
I(w(), (n) => ({
|
|
731
731
|
name: n,
|
|
732
|
-
fn:
|
|
733
|
-
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data:
|
|
732
|
+
fn: b((W) => [
|
|
733
|
+
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data: W })
|
|
734
734
|
])
|
|
735
735
|
}))
|
|
736
|
-
]), 1040, ["modelValue"])) : o(v) == o(ie).CASCADER ? (s(), S($,
|
|
736
|
+
]), 1040, ["modelValue"])) : o(v) == o(ie).CASCADER ? (s(), S($, x({
|
|
737
737
|
key: 16,
|
|
738
738
|
modelValue: f.value,
|
|
739
739
|
"onUpdate:modelValue": u[16] || (u[16] = (n) => f.value = n)
|
|
740
740
|
}, o(e), { options: M.value }), de({ _: 2 }, [
|
|
741
741
|
I(w(), (n) => ({
|
|
742
742
|
name: n,
|
|
743
|
-
fn:
|
|
744
|
-
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data:
|
|
743
|
+
fn: b((W) => [
|
|
744
|
+
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data: W })
|
|
745
745
|
])
|
|
746
746
|
}))
|
|
747
|
-
]), 1040, ["modelValue", "options"])) : o(v) == o(ie).IMAGE ? (s(), S(i, Ne(
|
|
748
|
-
default:
|
|
747
|
+
]), 1040, ["modelValue", "options"])) : o(v) == o(ie).IMAGE ? (s(), S(i, Ne(x({ key: 17 }, o(e))), de({
|
|
748
|
+
default: b(() => [
|
|
749
749
|
G(m, { type: "primary" }, {
|
|
750
|
-
default:
|
|
751
|
-
|
|
750
|
+
default: b(() => u[22] || (u[22] = [
|
|
751
|
+
$e("点击上传")
|
|
752
752
|
])),
|
|
753
753
|
_: 1
|
|
754
754
|
})
|
|
755
755
|
]),
|
|
756
756
|
_: 2
|
|
757
757
|
}, [
|
|
758
|
-
I(w(), (n,
|
|
758
|
+
I(w(), (n, W) => ({
|
|
759
759
|
name: n,
|
|
760
|
-
fn:
|
|
760
|
+
fn: b((re) => [
|
|
761
761
|
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data: re })
|
|
762
762
|
])
|
|
763
763
|
}))
|
|
764
|
-
]), 1040)) : o(v) == o(ie).AUTOCOMPLETE ? (s(), S(_,
|
|
764
|
+
]), 1040)) : o(v) == o(ie).AUTOCOMPLETE ? (s(), S(_, x({
|
|
765
765
|
key: 18,
|
|
766
766
|
modelValue: f.value,
|
|
767
767
|
"onUpdate:modelValue": u[17] || (u[17] = (n) => f.value = n)
|
|
768
768
|
}, o(e), {
|
|
769
769
|
placeholder: o(V)[o(r)].label
|
|
770
770
|
}), de({ _: 2 }, [
|
|
771
|
-
I(w(), (n,
|
|
771
|
+
I(w(), (n, W) => ({
|
|
772
772
|
name: n,
|
|
773
|
-
fn:
|
|
773
|
+
fn: b((re) => [
|
|
774
774
|
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data: re })
|
|
775
775
|
])
|
|
776
776
|
}))
|
|
777
|
-
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(ie).INPUTNUMBER ? (s(), S(F,
|
|
777
|
+
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(ie).INPUTNUMBER ? (s(), S(F, x({
|
|
778
778
|
key: 19,
|
|
779
779
|
modelValue: f.value,
|
|
780
780
|
"onUpdate:modelValue": u[18] || (u[18] = (n) => f.value = n),
|
|
@@ -782,36 +782,36 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
782
782
|
max: 1e8,
|
|
783
783
|
placeholder: o(V)[o(r)].label
|
|
784
784
|
}, o(e)), de({ _: 2 }, [
|
|
785
|
-
I(w(), (n,
|
|
785
|
+
I(w(), (n, W) => ({
|
|
786
786
|
name: n,
|
|
787
|
-
fn:
|
|
787
|
+
fn: b((re) => [
|
|
788
788
|
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data: re })
|
|
789
789
|
])
|
|
790
790
|
}))
|
|
791
791
|
]), 1040, ["modelValue", "placeholder"])) : o(v) == o(ie).MONEY ? (s(), A("div", Rt, [
|
|
792
|
-
G(
|
|
792
|
+
G(P, x({
|
|
793
793
|
modelValue: f.value,
|
|
794
794
|
"onUpdate:modelValue": u[19] || (u[19] = (n) => f.value = n),
|
|
795
795
|
placeholder: o(V)[o(r)].label,
|
|
796
796
|
type: o(ie).NUMBER,
|
|
797
797
|
maxlength: ((X = o(e)) == null ? void 0 : X.max) || 25
|
|
798
798
|
}, { ...o(e), type: o(v) }), de({
|
|
799
|
-
suffix:
|
|
799
|
+
suffix: b(() => [
|
|
800
800
|
Q("div", {
|
|
801
|
-
title: o(
|
|
801
|
+
title: o(lt)(f.value),
|
|
802
802
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
803
|
-
}, me(o(
|
|
803
|
+
}, me(o(lt)(f.value)), 9, jt)
|
|
804
804
|
]),
|
|
805
805
|
_: 2
|
|
806
806
|
}, [
|
|
807
|
-
I(w(), (n,
|
|
807
|
+
I(w(), (n, W) => ({
|
|
808
808
|
name: n,
|
|
809
|
-
fn:
|
|
809
|
+
fn: b((re) => [
|
|
810
810
|
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data: re })
|
|
811
811
|
])
|
|
812
812
|
}))
|
|
813
813
|
]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
|
|
814
|
-
])) : (s(), S(
|
|
814
|
+
])) : (s(), S(P, x({
|
|
815
815
|
key: 21,
|
|
816
816
|
modelValue: f.value,
|
|
817
817
|
"onUpdate:modelValue": u[20] || (u[20] = (n) => f.value = n),
|
|
@@ -819,9 +819,9 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
819
819
|
maxlength: ((oe = o(e)) == null ? void 0 : oe.max) || 25,
|
|
820
820
|
clearable: !0
|
|
821
821
|
}, { ...o(e), type: o(v) }), de({ _: 2 }, [
|
|
822
|
-
I(w(), (n,
|
|
822
|
+
I(w(), (n, W) => ({
|
|
823
823
|
name: n,
|
|
824
|
-
fn:
|
|
824
|
+
fn: b((re) => [
|
|
825
825
|
p(E.$slots, `${t.t}-${o(r)}-${n}`, { data: re })
|
|
826
826
|
])
|
|
827
827
|
}))
|
|
@@ -829,7 +829,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
829
829
|
]);
|
|
830
830
|
};
|
|
831
831
|
}
|
|
832
|
-
}),
|
|
832
|
+
}), Ye = /* @__PURE__ */ Object.assign({
|
|
833
833
|
name: "g-form",
|
|
834
834
|
inheritAttrs: !1
|
|
835
835
|
}, {
|
|
@@ -838,10 +838,10 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
838
838
|
modelValue: { required: !0 },
|
|
839
839
|
modelModifiers: {}
|
|
840
840
|
},
|
|
841
|
-
emits: /* @__PURE__ */
|
|
841
|
+
emits: /* @__PURE__ */ Oe(["submit", "reset"], ["update:modelValue"]),
|
|
842
842
|
setup(c, { emit: f }) {
|
|
843
|
-
var J, ne,
|
|
844
|
-
const t =
|
|
843
|
+
var J, ne, he, fe;
|
|
844
|
+
const t = xe(c, "modelValue"), e = f, r = ye(null), v = ot("options"), V = {
|
|
845
845
|
inline: !0,
|
|
846
846
|
type: "hidden",
|
|
847
847
|
"scroll-to-error": !0,
|
|
@@ -851,7 +851,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
851
851
|
style: {
|
|
852
852
|
display: "flex",
|
|
853
853
|
flexWrap: "wrap",
|
|
854
|
-
...(J =
|
|
854
|
+
...(J = rt()) == null ? void 0 : J.style
|
|
855
855
|
},
|
|
856
856
|
// 表单底部属性
|
|
857
857
|
footer: {
|
|
@@ -897,7 +897,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
897
897
|
editable: !1
|
|
898
898
|
}
|
|
899
899
|
};
|
|
900
|
-
t.value.form =
|
|
900
|
+
t.value.form = we(
|
|
901
901
|
V,
|
|
902
902
|
v == null ? void 0 : v.form,
|
|
903
903
|
(ne = t.value) == null ? void 0 : ne.form
|
|
@@ -909,16 +909,16 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
909
909
|
width: "100%"
|
|
910
910
|
}
|
|
911
911
|
};
|
|
912
|
-
t.value.formItems =
|
|
912
|
+
t.value.formItems = we(
|
|
913
913
|
T,
|
|
914
914
|
v == null ? void 0 : v.formItems,
|
|
915
|
-
(
|
|
915
|
+
(he = t == null ? void 0 : t.value) == null ? void 0 : he.formItems
|
|
916
916
|
);
|
|
917
917
|
const M = {
|
|
918
918
|
span: 12,
|
|
919
919
|
offset: 0
|
|
920
920
|
};
|
|
921
|
-
t.value.form.cols =
|
|
921
|
+
t.value.form.cols = we(
|
|
922
922
|
M,
|
|
923
923
|
(fe = v == null ? void 0 : v.form) == null ? void 0 : fe.cols,
|
|
924
924
|
t.value.form.cols
|
|
@@ -938,38 +938,38 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
938
938
|
validate: void 0
|
|
939
939
|
}, ...d };
|
|
940
940
|
y.required && D.push({ required: !0, message: `${y.label}不能为空!`, trigger: "blur" }), y.max && y.min && D.push({
|
|
941
|
-
validator: (
|
|
942
|
-
|
|
941
|
+
validator: (L, O, Z) => {
|
|
942
|
+
O && d.type == "number" && (O < y.min || O > y.max) ? Z(new Error(`${y.label} 必须在 ${y.min} 和 ${y.max} 之间!`)) : O && d.type !== "number" && (O.toString().length < y.min || O.toString().length > y.max) ? Z(new Error(`字符长度必须在 ${y.min} 和 ${y.max} 之间!`)) : Z();
|
|
943
943
|
}
|
|
944
944
|
}), y.max && !y.min && d.type == "number" && D.push({
|
|
945
|
-
validator: (
|
|
946
|
-
|
|
945
|
+
validator: (L, O, Z) => {
|
|
946
|
+
O && O > y.max ? Z(new Error(`${y.label}不能大于${y.max}!`)) : Z();
|
|
947
947
|
}
|
|
948
948
|
}), y.min && !y.max && d.type == "number" && D.push({
|
|
949
|
-
validator: (
|
|
950
|
-
|
|
949
|
+
validator: (L, O, Z) => {
|
|
950
|
+
O && O < y.min ? Z(new Error(`${y.label}不能小于${y.min}!`)) : Z();
|
|
951
951
|
}
|
|
952
952
|
}), y.type == "email" && D.push({ type: "email", message: "不是一个正确的邮箱地址!" }), y.type == "url" && D.push({ type: "url", message: "不是一个合正确的URL!" }), y.pattern && D.push({ pattern: y == null ? void 0 : y.pattern, message: (y == null ? void 0 : y.message) || "格式不正确!" }), y.validate && D.push({
|
|
953
|
-
validator: (
|
|
953
|
+
validator: (L, O, Z) => y.validate(L, O, Z)
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
956
|
return D;
|
|
957
957
|
}, k = (d, D = !1) => {
|
|
958
|
-
var
|
|
959
|
-
const B = D ? d : d == null ? void 0 : d.item, y = typeof (B == null ? void 0 : B.editor) == "function" ? B.editor(u.value, (
|
|
960
|
-
if (((
|
|
958
|
+
var L, O, Z, Ee, q;
|
|
959
|
+
const B = D ? d : d == null ? void 0 : d.item, y = typeof (B == null ? void 0 : B.editor) == "function" ? B.editor(u.value, (L = t.value.form) == null ? void 0 : L.modalState) : (B == null ? void 0 : B.editor) || {};
|
|
960
|
+
if (((O = t.value.form) == null ? void 0 : O.modalState) === "edit") {
|
|
961
961
|
const h = typeof (B == null ? void 0 : B.editor) == "object" ? (Z = B.editor) == null ? void 0 : Z.ep : typeof (B == null ? void 0 : B.editor) == "function" ? y == null ? void 0 : y.ep : {};
|
|
962
962
|
return { ...y, ...h };
|
|
963
963
|
}
|
|
964
|
-
if (((
|
|
964
|
+
if (((Ee = t.value.form) == null ? void 0 : Ee.modalState) === "add") {
|
|
965
965
|
const h = typeof (B == null ? void 0 : B.editor) == "object" ? (q = B.editor) == null ? void 0 : q.ap : typeof (B == null ? void 0 : B.editor) == "function" ? y == null ? void 0 : y.ap : {};
|
|
966
966
|
return { ...y, ...h };
|
|
967
967
|
}
|
|
968
968
|
return y;
|
|
969
|
-
},
|
|
970
|
-
var B, y,
|
|
969
|
+
}, z = (d) => {
|
|
970
|
+
var B, y, L, O, Z;
|
|
971
971
|
const D = typeof d.editor == "function" ? d.editor(u.value, (B = t.value.form) == null ? void 0 : B.modalState) : d.editor;
|
|
972
|
-
return ((y = t.value.form) == null ? void 0 : y.modalState) === "edit" ? ((
|
|
972
|
+
return ((y = t.value.form) == null ? void 0 : y.modalState) === "edit" ? ((L = D == null ? void 0 : D.ep) == null ? void 0 : L.type) ?? (D == null ? void 0 : D.type) ?? d.type : ((O = t.value.form) == null ? void 0 : O.modalState) === "add" ? ((Z = D == null ? void 0 : D.ap) == null ? void 0 : Z.type) ?? (D == null ? void 0 : D.type) ?? d.type : (D == null ? void 0 : D.type) ?? d.type;
|
|
973
973
|
};
|
|
974
974
|
Le(() => {
|
|
975
975
|
se();
|
|
@@ -980,10 +980,10 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
980
980
|
for (const [d, D] of Object.entries(E.value))
|
|
981
981
|
t.value[d].formItem = { ...t.value[d].formItem, ...D.formItem }, t.value[d].formItem.style = { ...t.value[d].formItem.style, ...D.formItem.style };
|
|
982
982
|
}, E = Ae(() => Object.fromEntries(Object.entries(t.value).filter((d) => d[1].type != "hidden").filter((d) => !["table", "tableColumns", "query", "queryItems"].includes(d[0])).filter((d) => d[1].editor !== !1).filter((d) => d[1].type !== "control").filter((d) => {
|
|
983
|
-
var B, y,
|
|
983
|
+
var B, y, L;
|
|
984
984
|
const D = typeof d[1].editor == "function" ? d[1].editor(u.value, (B = t.value.form) == null ? void 0 : B.modalState) : d[1].editor;
|
|
985
|
-
return t.value.form.modalState === "edit" ? ((y = D == null ? void 0 : D.ep) == null ? void 0 : y.editor) !== !1 : t.value.form.modalState === "add" ? ((
|
|
986
|
-
}).map((d) => [d[0], d[1]]))), u = Ae(() => Object.fromEntries(Object.entries(t.value).filter((d) => d[1].type != "hidden").filter((d) => d[1].type != "control").map((d) => [d[0], d[1].value]))),
|
|
985
|
+
return t.value.form.modalState === "edit" ? ((y = D == null ? void 0 : D.ep) == null ? void 0 : y.editor) !== !1 : t.value.form.modalState === "add" ? ((L = D == null ? void 0 : D.ap) == null ? void 0 : L.editor) !== !1 : !0;
|
|
986
|
+
}).map((d) => [d[0], d[1]]))), u = Ae(() => Object.fromEntries(Object.entries(t.value).filter((d) => d[1].type != "hidden").filter((d) => d[1].type != "control").map((d) => [d[0], d[1].value]))), N = Ae(() => {
|
|
987
987
|
const d = /* @__PURE__ */ new Map();
|
|
988
988
|
return Object.entries(E.value).forEach(([D, B]) => {
|
|
989
989
|
if (B.groupName) {
|
|
@@ -994,7 +994,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
994
994
|
}), d.get(y).items.push({ key: D, item: B });
|
|
995
995
|
}
|
|
996
996
|
}), d.forEach((D) => {
|
|
997
|
-
D.tabPane =
|
|
997
|
+
D.tabPane = we(...D.items.map(({ item: B }) => B.tabPane || {}));
|
|
998
998
|
}), Array.from(d.values());
|
|
999
999
|
}), ae = [
|
|
1000
1000
|
{
|
|
@@ -1019,58 +1019,58 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1019
1019
|
originalOrder: 1
|
|
1020
1020
|
// 添加原始顺序标识
|
|
1021
1021
|
}
|
|
1022
|
-
],
|
|
1022
|
+
], ee = Ae(() => ae.filter((d) => !d.hidden).sort((d, D) => d.sort - D.sort || d.originalOrder - D.originalOrder));
|
|
1023
1023
|
return (d, D) => {
|
|
1024
|
-
const B =
|
|
1025
|
-
return s(), S(
|
|
1024
|
+
const B = R("el-form-item"), y = R("el-col"), L = R("el-tab-pane"), O = R("el-tabs"), Z = R("el-button"), Ee = R("el-form");
|
|
1025
|
+
return s(), S(Ee, x({
|
|
1026
1026
|
ref_key: "gform",
|
|
1027
1027
|
ref: r,
|
|
1028
1028
|
model: t.value,
|
|
1029
1029
|
style: { width: "98%", padding: 0, margin: 0, "box-sizing": "border-box" }
|
|
1030
1030
|
}, o(_e)(t.value.form, (q) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(q)), { class: "g-form-container" }), {
|
|
1031
|
-
default:
|
|
1032
|
-
|
|
1031
|
+
default: b(() => [
|
|
1032
|
+
N.value.length > 0 ? p(d.$slots, "default", { key: 0 }, () => {
|
|
1033
1033
|
var q, h, $;
|
|
1034
1034
|
return [
|
|
1035
|
-
G(
|
|
1035
|
+
G(O, x({
|
|
1036
1036
|
class: "demo-tabs",
|
|
1037
|
-
modelValue:
|
|
1038
|
-
"onUpdate:modelValue": D[0] || (D[0] = (m) =>
|
|
1037
|
+
modelValue: N.value[0].groupName,
|
|
1038
|
+
"onUpdate:modelValue": D[0] || (D[0] = (m) => N.value[0].groupName = m),
|
|
1039
1039
|
style: { width: "100%" }
|
|
1040
1040
|
}, t.value.form.tabs), {
|
|
1041
|
-
default:
|
|
1042
|
-
(s(!0), A(Y, null, I(
|
|
1041
|
+
default: b(() => [
|
|
1042
|
+
(s(!0), A(Y, null, I(N.value, (m) => (s(), S(L, x({
|
|
1043
1043
|
key: m.groupName,
|
|
1044
1044
|
label: m.groupName,
|
|
1045
1045
|
name: m.groupName,
|
|
1046
1046
|
style: { width: "100%", display: "flex", "flex-wrap": "wrap" },
|
|
1047
1047
|
ref_for: !0
|
|
1048
1048
|
}, m.tabPane), {
|
|
1049
|
-
default:
|
|
1050
|
-
(s(!0), A(Y, null, I(m.items, (i, _) => (s(), S(y,
|
|
1049
|
+
default: b(() => [
|
|
1050
|
+
(s(!0), A(Y, null, I(m.items, (i, _) => (s(), S(y, x({ ref_for: !0 }, { ...t.value.form.cols, ...i == null ? void 0 : i.item.col }, {
|
|
1051
1051
|
key: i.key,
|
|
1052
1052
|
style: { width: "100%" }
|
|
1053
1053
|
}), {
|
|
1054
|
-
default:
|
|
1055
|
-
var F,
|
|
1054
|
+
default: b(() => {
|
|
1055
|
+
var F, P;
|
|
1056
1056
|
return [
|
|
1057
|
-
G(B,
|
|
1057
|
+
G(B, x({
|
|
1058
1058
|
label: i == null ? void 0 : i.item.label,
|
|
1059
1059
|
prop: `${i.key}.value`,
|
|
1060
1060
|
rules: w(i == null ? void 0 : i.item),
|
|
1061
1061
|
ref_for: !0
|
|
1062
|
-
}, { ...(F = t.value) == null ? void 0 : F.formItems, ...(
|
|
1063
|
-
default:
|
|
1062
|
+
}, { ...(F = t.value) == null ? void 0 : F.formItems, ...(P = i == null ? void 0 : i.item) == null ? void 0 : P.formItem }, { style: { width: "100%" } }), {
|
|
1063
|
+
default: b(() => [
|
|
1064
1064
|
p(d.$slots, "f-" + i.key, {
|
|
1065
1065
|
item: i == null ? void 0 : i.item,
|
|
1066
1066
|
model: t.value
|
|
1067
1067
|
}, () => [
|
|
1068
|
-
G(
|
|
1068
|
+
G(Ge, {
|
|
1069
1069
|
modelValue: t.value[i.key].value,
|
|
1070
1070
|
"onUpdate:modelValue": (X) => t.value[i.key].value = X,
|
|
1071
1071
|
item: k(i),
|
|
1072
1072
|
ctrlKey: i.key,
|
|
1073
|
-
ctrlType:
|
|
1073
|
+
ctrlType: z(i == null ? void 0 : i.item),
|
|
1074
1074
|
model: t.value,
|
|
1075
1075
|
class: "g-ctrl-container",
|
|
1076
1076
|
t: "f",
|
|
@@ -1078,7 +1078,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1078
1078
|
}, de({ _: 2 }, [
|
|
1079
1079
|
I(d.$slots, (X, oe) => ({
|
|
1080
1080
|
name: oe,
|
|
1081
|
-
fn:
|
|
1081
|
+
fn: b((n) => [
|
|
1082
1082
|
p(d.$slots, oe, {
|
|
1083
1083
|
data: n,
|
|
1084
1084
|
item: i.item,
|
|
@@ -1101,19 +1101,19 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1101
1101
|
]),
|
|
1102
1102
|
_: 3
|
|
1103
1103
|
}, 16, ["modelValue"]),
|
|
1104
|
-
($ = (h = (q = t.value) == null ? void 0 : q.form) == null ? void 0 : h.footer) != null && $.hidden ?
|
|
1104
|
+
($ = (h = (q = t.value) == null ? void 0 : q.form) == null ? void 0 : h.footer) != null && $.hidden ? ve("", !0) : p(d.$slots, "f-footer", { key: 0 }, () => [
|
|
1105
1105
|
Q("div", {
|
|
1106
1106
|
style: Te(t.value.form.footer.style)
|
|
1107
1107
|
}, [
|
|
1108
1108
|
p(d.$slots, "f-footer-left"),
|
|
1109
|
-
(s(!0), A(Y, null, I(
|
|
1109
|
+
(s(!0), A(Y, null, I(ee.value, (m) => (s(), A(Y, null, [
|
|
1110
1110
|
p(d.$slots, m.name + "-left"),
|
|
1111
1111
|
p(d.$slots, m.name, {}, () => [
|
|
1112
|
-
G(Z,
|
|
1112
|
+
G(Z, x({ ref_for: !0 }, m.info, {
|
|
1113
1113
|
onClick: it((i) => m.click(u.value, t.value), ["stop"])
|
|
1114
1114
|
}), {
|
|
1115
|
-
default:
|
|
1116
|
-
|
|
1115
|
+
default: b(() => [
|
|
1116
|
+
$e(me(m == null ? void 0 : m.label), 1)
|
|
1117
1117
|
]),
|
|
1118
1118
|
_: 2
|
|
1119
1119
|
}, 1040, ["onClick"])
|
|
@@ -1127,48 +1127,48 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1127
1127
|
}) : p(d.$slots, "default", { key: 1 }, () => {
|
|
1128
1128
|
var q, h, $;
|
|
1129
1129
|
return [
|
|
1130
|
-
(s(!0), A(Y, null, I(E.value, (m, i) => (s(), S(y,
|
|
1130
|
+
(s(!0), A(Y, null, I(E.value, (m, i) => (s(), S(y, x({ ref_for: !0 }, { ...t.value.form.cols, ...m.col }, {
|
|
1131
1131
|
key: i,
|
|
1132
1132
|
style: { width: "100%" }
|
|
1133
1133
|
}), {
|
|
1134
|
-
default:
|
|
1134
|
+
default: b(() => {
|
|
1135
1135
|
var _;
|
|
1136
1136
|
return [
|
|
1137
|
-
G(B,
|
|
1137
|
+
G(B, x({
|
|
1138
1138
|
label: m.label,
|
|
1139
1139
|
prop: `${i}.value`,
|
|
1140
1140
|
rules: w(m),
|
|
1141
1141
|
ref_for: !0
|
|
1142
1142
|
}, { ...(_ = t.value) == null ? void 0 : _.formItems, ...m == null ? void 0 : m.formItem }, { style: { width: "100%" } }), {
|
|
1143
|
-
label:
|
|
1143
|
+
label: b((F) => [
|
|
1144
1144
|
p(d.$slots, `f-${i}-label`, {
|
|
1145
1145
|
data: F,
|
|
1146
1146
|
item: m,
|
|
1147
1147
|
model: t.value
|
|
1148
1148
|
}, () => [
|
|
1149
|
-
|
|
1149
|
+
$e(me(m.label), 1)
|
|
1150
1150
|
])
|
|
1151
1151
|
]),
|
|
1152
|
-
default:
|
|
1152
|
+
default: b(() => [
|
|
1153
1153
|
p(d.$slots, "f-" + i, {
|
|
1154
1154
|
item: m,
|
|
1155
1155
|
model: t.value
|
|
1156
1156
|
}, () => [
|
|
1157
|
-
G(
|
|
1157
|
+
G(Ge, {
|
|
1158
1158
|
modelValue: t.value[i].value,
|
|
1159
1159
|
"onUpdate:modelValue": (F) => t.value[i].value = F,
|
|
1160
1160
|
item: k(m, !0),
|
|
1161
1161
|
ctrlKey: i,
|
|
1162
|
-
ctrlType:
|
|
1162
|
+
ctrlType: z(m),
|
|
1163
1163
|
model: t.value,
|
|
1164
1164
|
class: "g-ctrl-container",
|
|
1165
1165
|
t: "f",
|
|
1166
1166
|
formInfo: u.value
|
|
1167
1167
|
}, de({ _: 2 }, [
|
|
1168
|
-
I(d.$slots, (F,
|
|
1169
|
-
name:
|
|
1170
|
-
fn:
|
|
1171
|
-
p(d.$slots,
|
|
1168
|
+
I(d.$slots, (F, P) => ({
|
|
1169
|
+
name: P,
|
|
1170
|
+
fn: b((X) => [
|
|
1171
|
+
p(d.$slots, P, {
|
|
1172
1172
|
data: X,
|
|
1173
1173
|
item: m,
|
|
1174
1174
|
model: t.value
|
|
@@ -1184,19 +1184,19 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1184
1184
|
}),
|
|
1185
1185
|
_: 2
|
|
1186
1186
|
}, 1040))), 128)),
|
|
1187
|
-
($ = (h = (q = t.value) == null ? void 0 : q.form) == null ? void 0 : h.footer) != null && $.hidden ?
|
|
1187
|
+
($ = (h = (q = t.value) == null ? void 0 : q.form) == null ? void 0 : h.footer) != null && $.hidden ? ve("", !0) : p(d.$slots, "f-footer", { key: 0 }, () => [
|
|
1188
1188
|
Q("div", {
|
|
1189
1189
|
style: Te(t.value.form.footer.style)
|
|
1190
1190
|
}, [
|
|
1191
1191
|
p(d.$slots, "f-footer-left"),
|
|
1192
|
-
(s(!0), A(Y, null, I(
|
|
1192
|
+
(s(!0), A(Y, null, I(ee.value, (m) => (s(), A(Y, null, [
|
|
1193
1193
|
p(d.$slots, m.name + "-left"),
|
|
1194
1194
|
p(d.$slots, m.name, {}, () => [
|
|
1195
|
-
G(Z,
|
|
1195
|
+
G(Z, x({ ref_for: !0 }, m.info, {
|
|
1196
1196
|
onClick: it((i) => m.click(u.value, t.value), ["stop"])
|
|
1197
1197
|
}), {
|
|
1198
|
-
default:
|
|
1199
|
-
|
|
1198
|
+
default: b(() => [
|
|
1199
|
+
$e(me(m == null ? void 0 : m.label), 1)
|
|
1200
1200
|
]),
|
|
1201
1201
|
_: 2
|
|
1202
1202
|
}, 1040, ["onClick"])
|
|
@@ -1215,7 +1215,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
}), dt = {
|
|
1217
1217
|
__name: "g-query-item",
|
|
1218
|
-
props: /* @__PURE__ */
|
|
1218
|
+
props: /* @__PURE__ */ Oe(["more"], {
|
|
1219
1219
|
modelValue: { required: !0 },
|
|
1220
1220
|
modelModifiers: {},
|
|
1221
1221
|
info: { required: !0 },
|
|
@@ -1223,33 +1223,33 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1223
1223
|
}),
|
|
1224
1224
|
emits: ["update:modelValue", "update:info"],
|
|
1225
1225
|
setup(c) {
|
|
1226
|
-
const f =
|
|
1226
|
+
const f = xe(c, "modelValue"), t = c, e = xe(c, "info"), r = (T) => Ae(() => Object.fromEntries(Object.entries(f.value).filter((M) => M[1].search && M[1].search.more === T).map((M) => [M[0], M[1]]))).value, v = (T) => typeof T.search == "function" ? T.search(e.value) : T.search || {}, V = (T) => {
|
|
1227
1227
|
const M = v(T);
|
|
1228
1228
|
return (M == null ? void 0 : M.type) || T.type;
|
|
1229
1229
|
};
|
|
1230
1230
|
return (T, M) => {
|
|
1231
|
-
const w =
|
|
1232
|
-
return s(!0), A(Y, null, I(r(t.more), (k,
|
|
1233
|
-
key:
|
|
1231
|
+
const w = R("el-form-item");
|
|
1232
|
+
return s(!0), A(Y, null, I(r(t.more), (k, z) => p(T.$slots, `q-${z}`, {
|
|
1233
|
+
key: z,
|
|
1234
1234
|
item: k,
|
|
1235
1235
|
model: f.value
|
|
1236
1236
|
}, () => [
|
|
1237
|
-
G(w,
|
|
1237
|
+
G(w, x({
|
|
1238
1238
|
label: k.label,
|
|
1239
1239
|
ref_for: !0
|
|
1240
1240
|
}, { ...f.value.queryItems, ...v(k) }), {
|
|
1241
|
-
label:
|
|
1242
|
-
p(T.$slots, `q-${
|
|
1241
|
+
label: b(() => [
|
|
1242
|
+
p(T.$slots, `q-${z}-label`, {
|
|
1243
1243
|
item: k,
|
|
1244
1244
|
model: f.value
|
|
1245
1245
|
})
|
|
1246
1246
|
]),
|
|
1247
|
-
default:
|
|
1248
|
-
G(
|
|
1249
|
-
modelValue: e.value[
|
|
1250
|
-
"onUpdate:modelValue": (se) => e.value[
|
|
1247
|
+
default: b(() => [
|
|
1248
|
+
G(Ge, {
|
|
1249
|
+
modelValue: e.value[z],
|
|
1250
|
+
"onUpdate:modelValue": (se) => e.value[z] = se,
|
|
1251
1251
|
item: { ...k == null ? void 0 : k.editor, ...v(k) },
|
|
1252
|
-
ctrlKey:
|
|
1252
|
+
ctrlKey: z,
|
|
1253
1253
|
ctrlType: V(k),
|
|
1254
1254
|
model: f.value,
|
|
1255
1255
|
t: "q",
|
|
@@ -1257,7 +1257,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1257
1257
|
}, de({ _: 2 }, [
|
|
1258
1258
|
I(Object.keys(T.$slots), (se) => ({
|
|
1259
1259
|
name: se,
|
|
1260
|
-
fn:
|
|
1260
|
+
fn: b((E) => [
|
|
1261
1261
|
p(T.$slots, se, {
|
|
1262
1262
|
data: E,
|
|
1263
1263
|
item: k,
|
|
@@ -1286,11 +1286,11 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1286
1286
|
modelValue: { required: !0 },
|
|
1287
1287
|
modelModifiers: {}
|
|
1288
1288
|
},
|
|
1289
|
-
emits: /* @__PURE__ */
|
|
1289
|
+
emits: /* @__PURE__ */ Oe(["query", "reset"], ["update:modelValue"]),
|
|
1290
1290
|
setup(c, { emit: f }) {
|
|
1291
|
-
const t =
|
|
1292
|
-
let V = Object.fromEntries(Object.entries(t.value).filter((u) => u[1].search).map(([u,
|
|
1293
|
-
const T =
|
|
1291
|
+
const t = xe(c, "modelValue"), e = f, r = ot("options"), v = ye(!1);
|
|
1292
|
+
let V = Object.fromEntries(Object.entries(t.value).filter((u) => u[1].search).map(([u, N]) => [u, N.value]));
|
|
1293
|
+
const T = ye(V), M = {
|
|
1294
1294
|
hidden: !1,
|
|
1295
1295
|
type: "hidden",
|
|
1296
1296
|
labelWidth: 100,
|
|
@@ -1316,7 +1316,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1316
1316
|
hidden: !1,
|
|
1317
1317
|
plain: !1,
|
|
1318
1318
|
click: () => {
|
|
1319
|
-
T.value =
|
|
1319
|
+
T.value = ye(V), e("reset", T.value);
|
|
1320
1320
|
}
|
|
1321
1321
|
},
|
|
1322
1322
|
query: {
|
|
@@ -1336,7 +1336,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
1338
|
};
|
|
1339
|
-
t.value.query =
|
|
1339
|
+
t.value.query = we(M, r == null ? void 0 : r.query, t.value.query);
|
|
1340
1340
|
const w = {
|
|
1341
1341
|
2: {
|
|
1342
1342
|
title: "更多查询",
|
|
@@ -1354,7 +1354,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1354
1354
|
trigger: "click"
|
|
1355
1355
|
}
|
|
1356
1356
|
};
|
|
1357
|
-
t.value.query.more.dialog =
|
|
1357
|
+
t.value.query.more.dialog = we(
|
|
1358
1358
|
w[t.value.query.more.mode] || {},
|
|
1359
1359
|
t.value.query.more.dialog
|
|
1360
1360
|
);
|
|
@@ -1365,26 +1365,26 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1365
1365
|
width: "280px"
|
|
1366
1366
|
}
|
|
1367
1367
|
};
|
|
1368
|
-
t.value.queryItems =
|
|
1369
|
-
const
|
|
1370
|
-
const ae = Object.keys(u.slots).filter((
|
|
1368
|
+
t.value.queryItems = we(k, r == null ? void 0 : r.queryItems, t.value.queryItems);
|
|
1369
|
+
const z = (u, N) => {
|
|
1370
|
+
const ae = Object.keys(u.slots).filter((ee) => ee !== "default").reduce((ee, J) => (ee[J] = (ne) => u.slots[J]({
|
|
1371
1371
|
model: t.value
|
|
1372
1372
|
// 传递当前模型数据
|
|
1373
|
-
}),
|
|
1373
|
+
}), ee), {});
|
|
1374
1374
|
return Ve(dt, {
|
|
1375
1375
|
modelValue: t.value,
|
|
1376
|
-
"onUpdate:modelValue": (
|
|
1376
|
+
"onUpdate:modelValue": (ee) => t.value = ee,
|
|
1377
1377
|
info: T.value,
|
|
1378
|
-
"onUpdate:info": (
|
|
1379
|
-
more:
|
|
1378
|
+
"onUpdate:info": (ee) => T.value = ee,
|
|
1379
|
+
more: N
|
|
1380
1380
|
}, ae);
|
|
1381
1381
|
}, se = pt(), E = () => {
|
|
1382
|
-
var ae,
|
|
1382
|
+
var ae, ee, J, ne, he, fe, d, D, B;
|
|
1383
1383
|
const u = [
|
|
1384
1384
|
{
|
|
1385
1385
|
key: "query",
|
|
1386
|
-
hidden: (J = (
|
|
1387
|
-
component:
|
|
1386
|
+
hidden: (J = (ee = (ae = t.value) == null ? void 0 : ae.query) == null ? void 0 : ee.query) == null ? void 0 : J.hidden,
|
|
1387
|
+
component: be,
|
|
1388
1388
|
props: {
|
|
1389
1389
|
...t.value.query.query,
|
|
1390
1390
|
onClick: t.value.query.query.click
|
|
@@ -1394,8 +1394,8 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1394
1394
|
},
|
|
1395
1395
|
{
|
|
1396
1396
|
key: "reset",
|
|
1397
|
-
hidden: (fe = (
|
|
1398
|
-
component:
|
|
1397
|
+
hidden: (fe = (he = (ne = t.value) == null ? void 0 : ne.query) == null ? void 0 : he.reset) == null ? void 0 : fe.hidden,
|
|
1398
|
+
component: be,
|
|
1399
1399
|
props: {
|
|
1400
1400
|
...t.value.query.reset,
|
|
1401
1401
|
onClick: t.value.query.reset.click
|
|
@@ -1406,45 +1406,45 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1406
1406
|
{
|
|
1407
1407
|
key: "more",
|
|
1408
1408
|
hidden: (B = (D = (d = t.value) == null ? void 0 : d.query) == null ? void 0 : D.more) == null ? void 0 : B.hidden,
|
|
1409
|
-
component: t.value.query.more.mode === 3 ?
|
|
1409
|
+
component: t.value.query.more.mode === 3 ? Je : be,
|
|
1410
1410
|
props: t.value.query.more.mode === 3 ? { ...t.value.query.more.dialog } : {
|
|
1411
1411
|
...t.value.query.more,
|
|
1412
1412
|
onClick: t.value.query.more.click
|
|
1413
1413
|
},
|
|
1414
1414
|
label: t.value.query.more.label,
|
|
1415
1415
|
sort: t.value.query.more.sort || 0,
|
|
1416
|
-
content: t.value.query.more.mode === 3 ? () => Ve(
|
|
1416
|
+
content: t.value.query.more.mode === 3 ? () => Ve(We, {
|
|
1417
1417
|
class: "query-form",
|
|
1418
1418
|
..._e(t.value.query, (y) => !["query", "more", "reset"].includes(y))
|
|
1419
|
-
}, () =>
|
|
1419
|
+
}, () => z({ slots: se }, !0)) : null
|
|
1420
1420
|
}
|
|
1421
1421
|
];
|
|
1422
|
-
return u.sort((y,
|
|
1423
|
-
reference: () => Ve(
|
|
1422
|
+
return u.sort((y, L) => y.sort - L.sort), u.filter((y) => !y.hidden).map((y) => y.key === "more" && y.component === Je ? Ve(Je, y.props, {
|
|
1423
|
+
reference: () => Ve(be, t.value.query.more, () => y.label),
|
|
1424
1424
|
default: y.content
|
|
1425
1425
|
}) : (y.props.slot = "query-" + y.key, y.label ? Ve(y.component, y.props, () => y.label) : Ve(y.component, y.props)));
|
|
1426
1426
|
};
|
|
1427
|
-
return (u,
|
|
1428
|
-
var J, ne,
|
|
1429
|
-
const ae =
|
|
1427
|
+
return (u, N) => {
|
|
1428
|
+
var J, ne, he, fe, d, D, B, y, L, O, Z, Ee, q, h, $, m, i;
|
|
1429
|
+
const ae = R("el-form-item"), ee = R("el-drawer");
|
|
1430
1430
|
return s(), A("div", {
|
|
1431
1431
|
class: "g-query-container",
|
|
1432
1432
|
style: Te((ne = (J = t.value.query) == null ? void 0 : J.container) == null ? void 0 : ne.style)
|
|
1433
1433
|
}, [
|
|
1434
|
-
G(o(
|
|
1435
|
-
default:
|
|
1434
|
+
G(o(We), Ne(Ke(o(_e)(t.value.query, (_) => !["query", "more", "reset", "btns"].includes(_)))), {
|
|
1435
|
+
default: b(() => {
|
|
1436
1436
|
var _, F;
|
|
1437
1437
|
return [
|
|
1438
|
-
(s(), S(Se(
|
|
1438
|
+
(s(), S(Se(z({ slots: u.$slots }, void 0)))),
|
|
1439
1439
|
((F = (_ = t.value.query) == null ? void 0 : _.container) == null ? void 0 : F.inline) === !0 ? (s(), S(ae, { key: 0 }, {
|
|
1440
|
-
default:
|
|
1441
|
-
var
|
|
1440
|
+
default: b(() => {
|
|
1441
|
+
var P, X, oe, n, W;
|
|
1442
1442
|
return [
|
|
1443
1443
|
Q("div", {
|
|
1444
|
-
style: Te((X = (
|
|
1444
|
+
style: Te((X = (P = t.value.query) == null ? void 0 : P.btns) == null ? void 0 : X.style)
|
|
1445
1445
|
}, [
|
|
1446
|
-
t.value.query.group ? (s(), S(o(
|
|
1447
|
-
default:
|
|
1446
|
+
t.value.query.group ? (s(), S(o(He), { key: 0 }, {
|
|
1447
|
+
default: b(() => [
|
|
1448
1448
|
(s(!0), A(Y, null, I(E(), (re) => p(u.$slots, re.props.slot, {}, () => [
|
|
1449
1449
|
(s(), S(Se(re)))
|
|
1450
1450
|
], !0)), 256)),
|
|
@@ -1452,8 +1452,8 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1452
1452
|
]),
|
|
1453
1453
|
_: 3
|
|
1454
1454
|
})) : (s(), A(Y, { key: 1 }, [
|
|
1455
|
-
(
|
|
1456
|
-
default:
|
|
1455
|
+
(W = (n = (oe = t.value) == null ? void 0 : oe.query) == null ? void 0 : n.btns) != null && W.group ? (s(), S(o(He), { key: 0 }, {
|
|
1456
|
+
default: b(() => [
|
|
1457
1457
|
(s(!0), A(Y, null, I(E(), (re) => p(u.$slots, re.props.slot, {}, () => [
|
|
1458
1458
|
(s(), S(Se(re)))
|
|
1459
1459
|
], !0)), 256))
|
|
@@ -1468,17 +1468,17 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1468
1468
|
];
|
|
1469
1469
|
}),
|
|
1470
1470
|
_: 3
|
|
1471
|
-
})) :
|
|
1471
|
+
})) : ve("", !0)
|
|
1472
1472
|
];
|
|
1473
1473
|
}),
|
|
1474
1474
|
_: 3
|
|
1475
1475
|
}, 16),
|
|
1476
|
-
((d = (fe = (
|
|
1476
|
+
((d = (fe = (he = t.value) == null ? void 0 : he.query) == null ? void 0 : fe.container) == null ? void 0 : d.inline) === !1 ? (s(), A("div", {
|
|
1477
1477
|
key: 0,
|
|
1478
1478
|
style: Te((B = (D = t.value.query) == null ? void 0 : D.btns) == null ? void 0 : B.style)
|
|
1479
1479
|
}, [
|
|
1480
|
-
t.value.query.group ? (s(), S(o(
|
|
1481
|
-
default:
|
|
1480
|
+
t.value.query.group ? (s(), S(o(He), { key: 0 }, {
|
|
1481
|
+
default: b(() => [
|
|
1482
1482
|
(s(!0), A(Y, null, I(E(), (_) => p(u.$slots, _.props.slot, {}, () => [
|
|
1483
1483
|
(s(), S(Se(_)))
|
|
1484
1484
|
], !0)), 256)),
|
|
@@ -1486,8 +1486,8 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1486
1486
|
]),
|
|
1487
1487
|
_: 3
|
|
1488
1488
|
})) : (s(), A(Y, { key: 1 }, [
|
|
1489
|
-
(
|
|
1490
|
-
default:
|
|
1489
|
+
(L = (y = t.value.query) == null ? void 0 : y.btns) != null && L.group ? (s(), S(o(He), { key: 0 }, {
|
|
1490
|
+
default: b(() => [
|
|
1491
1491
|
(s(!0), A(Y, null, I(E(), (_) => p(u.$slots, _.props.slot, {}, () => [
|
|
1492
1492
|
(s(), S(Se(_)))
|
|
1493
1493
|
], !0)), 256))
|
|
@@ -1498,50 +1498,50 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1498
1498
|
], !0)), 256)),
|
|
1499
1499
|
p(u.$slots, "q-btns", {}, void 0, !0)
|
|
1500
1500
|
], 64))
|
|
1501
|
-
], 4)) :
|
|
1501
|
+
], 4)) : ve("", !0),
|
|
1502
1502
|
G(Vt, {
|
|
1503
1503
|
duration: 300,
|
|
1504
1504
|
name: "nested"
|
|
1505
1505
|
}, {
|
|
1506
|
-
default:
|
|
1507
|
-
var _, F,
|
|
1506
|
+
default: b(() => {
|
|
1507
|
+
var _, F, P;
|
|
1508
1508
|
return [
|
|
1509
|
-
v.value && !((
|
|
1509
|
+
v.value && !((P = (F = (_ = t.value) == null ? void 0 : _.query) == null ? void 0 : F.more) != null && P.hidden) && t.value.query.more.mode == 1 ? (s(), A("div", Nt, [
|
|
1510
1510
|
Q("div", Lt, [
|
|
1511
|
-
t.value.query.more.mode == 1 ? vt((s(), S(o(
|
|
1512
|
-
default:
|
|
1513
|
-
(s(), S(Se(
|
|
1511
|
+
t.value.query.more.mode == 1 ? vt((s(), S(o(We), Ne(x({ key: 0 }, o(_e)(t.value.query, (X) => !["query", "more", "reset"].includes(X)))), {
|
|
1512
|
+
default: b(() => [
|
|
1513
|
+
(s(), S(Se(z({ slots: u.$slots }, !0))))
|
|
1514
1514
|
]),
|
|
1515
1515
|
_: 1
|
|
1516
1516
|
}, 16)), [
|
|
1517
1517
|
[yt, v.value]
|
|
1518
|
-
]) :
|
|
1518
|
+
]) : ve("", !0)
|
|
1519
1519
|
])
|
|
1520
|
-
])) :
|
|
1520
|
+
])) : ve("", !0)
|
|
1521
1521
|
];
|
|
1522
1522
|
}),
|
|
1523
1523
|
_: 1
|
|
1524
1524
|
}),
|
|
1525
|
-
v.value && !((
|
|
1525
|
+
v.value && !((Ee = (Z = (O = t.value) == null ? void 0 : O.query) == null ? void 0 : Z.more) != null && Ee.hidden) && t.value.query.more.mode == 2 ? (s(), S(ee, x({
|
|
1526
1526
|
key: 1,
|
|
1527
1527
|
modelValue: v.value,
|
|
1528
|
-
"onUpdate:modelValue":
|
|
1528
|
+
"onUpdate:modelValue": N[4] || (N[4] = (_) => v.value = _),
|
|
1529
1529
|
title: "更多查询",
|
|
1530
1530
|
"show-close": !1
|
|
1531
1531
|
}, t.value.query.more.dialog), de({
|
|
1532
|
-
default:
|
|
1533
|
-
G(o(
|
|
1534
|
-
default:
|
|
1532
|
+
default: b(() => [
|
|
1533
|
+
G(o(We), x(o(_e)(t.value.query, (_) => !["query", "more", "reset"].includes(_)), { style: { width: "98%" } }), {
|
|
1534
|
+
default: b(() => [
|
|
1535
1535
|
G(dt, {
|
|
1536
1536
|
modelValue: t.value,
|
|
1537
|
-
"onUpdate:modelValue":
|
|
1537
|
+
"onUpdate:modelValue": N[0] || (N[0] = (_) => t.value = _),
|
|
1538
1538
|
info: T.value,
|
|
1539
|
-
"onUpdate:info":
|
|
1539
|
+
"onUpdate:info": N[1] || (N[1] = (_) => T.value = _),
|
|
1540
1540
|
more: !0
|
|
1541
1541
|
}, de({ _: 2 }, [
|
|
1542
|
-
I(u.$slots, (_, F,
|
|
1542
|
+
I(u.$slots, (_, F, P) => ({
|
|
1543
1543
|
name: F,
|
|
1544
|
-
fn:
|
|
1544
|
+
fn: b((X) => [
|
|
1545
1545
|
p(u.$slots, F, { model: t.value }, void 0, !0)
|
|
1546
1546
|
])
|
|
1547
1547
|
}))
|
|
@@ -1554,21 +1554,21 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1554
1554
|
}, [
|
|
1555
1555
|
(i = (m = ($ = (h = (q = t.value) == null ? void 0 : q.query) == null ? void 0 : h.more) == null ? void 0 : $.dialog) == null ? void 0 : m.footer) != null && i.hidden ? void 0 : {
|
|
1556
1556
|
name: "footer",
|
|
1557
|
-
fn:
|
|
1558
|
-
Q("div", Ne(
|
|
1559
|
-
G(o(
|
|
1560
|
-
onClick:
|
|
1557
|
+
fn: b(() => [
|
|
1558
|
+
Q("div", Ne(Ke(t.value.query.more.dialog.footer)), [
|
|
1559
|
+
G(o(be), x(t.value.query.query, {
|
|
1560
|
+
onClick: N[2] || (N[2] = (_) => t.value.query.query.click())
|
|
1561
1561
|
}), {
|
|
1562
|
-
default:
|
|
1563
|
-
|
|
1562
|
+
default: b(() => [
|
|
1563
|
+
$e(me(t.value.query.query.label), 1)
|
|
1564
1564
|
]),
|
|
1565
1565
|
_: 1
|
|
1566
1566
|
}, 16),
|
|
1567
|
-
G(o(
|
|
1568
|
-
onClick:
|
|
1567
|
+
G(o(be), x(t.value.query.reset, {
|
|
1568
|
+
onClick: N[3] || (N[3] = (_) => t.value.query.reset.click())
|
|
1569
1569
|
}), {
|
|
1570
|
-
default:
|
|
1571
|
-
|
|
1570
|
+
default: b(() => [
|
|
1571
|
+
$e(me(t.value.query.reset.label), 1)
|
|
1572
1572
|
]),
|
|
1573
1573
|
_: 1
|
|
1574
1574
|
}, 16)
|
|
@@ -1576,7 +1576,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1576
1576
|
]),
|
|
1577
1577
|
key: "0"
|
|
1578
1578
|
}
|
|
1579
|
-
]), 1040, ["modelValue"])) :
|
|
1579
|
+
]), 1040, ["modelValue"])) : ve("", !0)
|
|
1580
1580
|
], 4);
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
@@ -1591,7 +1591,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1591
1591
|
},
|
|
1592
1592
|
emits: ["excel"],
|
|
1593
1593
|
setup(c, { emit: f }) {
|
|
1594
|
-
const t = c, e = f, r =
|
|
1594
|
+
const t = c, e = f, r = ye(t.items), v = () => {
|
|
1595
1595
|
r.value.forEach((M) => {
|
|
1596
1596
|
M.value = !0;
|
|
1597
1597
|
});
|
|
@@ -1625,7 +1625,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1625
1625
|
w && w.destroy();
|
|
1626
1626
|
});
|
|
1627
1627
|
}), (M, w) => {
|
|
1628
|
-
const k =
|
|
1628
|
+
const k = R("el-divider"), z = R("el-alert"), se = R("el-checkbox"), E = R("el-button");
|
|
1629
1629
|
return s(), A("div", Wt, [
|
|
1630
1630
|
Q("div", Ht, [
|
|
1631
1631
|
Q("div", Yt, [
|
|
@@ -1639,7 +1639,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1639
1639
|
style: { cursor: "pointer" }
|
|
1640
1640
|
}, "全不选")
|
|
1641
1641
|
]),
|
|
1642
|
-
G(
|
|
1642
|
+
G(z, {
|
|
1643
1643
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
1644
1644
|
type: "warning",
|
|
1645
1645
|
"show-icon": "",
|
|
@@ -1653,11 +1653,11 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1653
1653
|
style: { width: "120px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "3px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
1654
1654
|
"data-id": u.key,
|
|
1655
1655
|
modelValue: u.value,
|
|
1656
|
-
"onUpdate:modelValue": (
|
|
1656
|
+
"onUpdate:modelValue": (N) => u.value = N,
|
|
1657
1657
|
key: u.key,
|
|
1658
1658
|
title: u.label
|
|
1659
1659
|
}, {
|
|
1660
|
-
default:
|
|
1660
|
+
default: b(() => [
|
|
1661
1661
|
Q("span", {
|
|
1662
1662
|
textContent: me(u.label),
|
|
1663
1663
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
@@ -1673,8 +1673,8 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1673
1673
|
onClick: T,
|
|
1674
1674
|
disabled: r.value.filter((u) => u.value).length < 1
|
|
1675
1675
|
}, {
|
|
1676
|
-
default:
|
|
1677
|
-
|
|
1676
|
+
default: b(() => [
|
|
1677
|
+
$e(me(t.commitText), 1)
|
|
1678
1678
|
]),
|
|
1679
1679
|
_: 1
|
|
1680
1680
|
}, 8, ["disabled"])
|
|
@@ -1682,7 +1682,7 @@ const Je = /* @__PURE__ */ Bt(It), Ut = {
|
|
|
1682
1682
|
]);
|
|
1683
1683
|
};
|
|
1684
1684
|
}
|
|
1685
|
-
}, Zt = /* @__PURE__ */ Be(Jt, [["__scopeId", "data-v-51dfb7ef"]]), Fe = new
|
|
1685
|
+
}, Zt = /* @__PURE__ */ Be(Jt, [["__scopeId", "data-v-51dfb7ef"]]), Fe = new Ot("gyc");
|
|
1686
1686
|
Fe.version(1).stores({
|
|
1687
1687
|
tableInfo: "++id,[user+page+key],user,page,key,showCol,width,sort",
|
|
1688
1688
|
tableList: "++id,name"
|
|
@@ -1721,7 +1721,7 @@ const ol = {
|
|
|
1721
1721
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
1722
1722
|
}, al = ["textContent"], ul = {
|
|
1723
1723
|
__name: "columns-setting",
|
|
1724
|
-
props: /* @__PURE__ */
|
|
1724
|
+
props: /* @__PURE__ */ Oe({
|
|
1725
1725
|
name: {
|
|
1726
1726
|
type: String,
|
|
1727
1727
|
required: !0
|
|
@@ -1732,13 +1732,13 @@ const ol = {
|
|
|
1732
1732
|
}),
|
|
1733
1733
|
emits: ["update:modelValue"],
|
|
1734
1734
|
setup(c) {
|
|
1735
|
-
const f = c, t =
|
|
1735
|
+
const f = c, t = ye([]), e = xe(c, "modelValue"), r = async (w, k) => {
|
|
1736
1736
|
w ? e.value[k].showCol = !0 : e.value[k].showCol = !1;
|
|
1737
1737
|
try {
|
|
1738
|
-
const
|
|
1739
|
-
console.log(
|
|
1740
|
-
} catch (
|
|
1741
|
-
console.error("列显示状态保存信息时出错:",
|
|
1738
|
+
const z = await je(e.value.table.user, f.name, k, { showCol: w });
|
|
1739
|
+
console.log(z);
|
|
1740
|
+
} catch (z) {
|
|
1741
|
+
console.error("列显示状态保存信息时出错:", z), ke({
|
|
1742
1742
|
type: "error",
|
|
1743
1743
|
message: "列显示状态保存信息失败!"
|
|
1744
1744
|
});
|
|
@@ -1756,10 +1756,10 @@ const ol = {
|
|
|
1756
1756
|
e.value[se].sort = E;
|
|
1757
1757
|
let u = e.value[se].width || "auto";
|
|
1758
1758
|
try {
|
|
1759
|
-
const
|
|
1760
|
-
console.log(
|
|
1761
|
-
} catch (
|
|
1762
|
-
console.error("列排序和宽度保存信息时出错:",
|
|
1759
|
+
const N = await je(e.value.table.user, f.name, se, { sort: E, width: u });
|
|
1760
|
+
console.log(N);
|
|
1761
|
+
} catch (N) {
|
|
1762
|
+
console.error("列排序和宽度保存信息时出错:", N), ke({
|
|
1763
1763
|
type: "error",
|
|
1764
1764
|
message: "列排序和宽度保存信息失败!"
|
|
1765
1765
|
});
|
|
@@ -1790,12 +1790,12 @@ const ol = {
|
|
|
1790
1790
|
const w = t.value.filter((k) => !k.alwaysShow);
|
|
1791
1791
|
for (const k of w) {
|
|
1792
1792
|
k.showCol = !1, e.value[k.value].showCol = !1;
|
|
1793
|
-
const
|
|
1793
|
+
const z = await je(e.value.table.user, f.name, k.value, {
|
|
1794
1794
|
showCol: !1,
|
|
1795
1795
|
width: k.width,
|
|
1796
1796
|
sort: k.sort
|
|
1797
1797
|
});
|
|
1798
|
-
console.log(
|
|
1798
|
+
console.log(z);
|
|
1799
1799
|
}
|
|
1800
1800
|
} catch (w) {
|
|
1801
1801
|
console.error("清除列保存信息时出错:", w), ke({
|
|
@@ -1829,13 +1829,13 @@ const ol = {
|
|
|
1829
1829
|
width: k.width || "auto"
|
|
1830
1830
|
})).sort((w, k) => w.sort - k.sort), v();
|
|
1831
1831
|
}), (w, k) => {
|
|
1832
|
-
const
|
|
1832
|
+
const z = R("el-divider"), se = R("el-alert"), E = R("el-checkbox");
|
|
1833
1833
|
return s(), A("div", null, [
|
|
1834
1834
|
Q("div", ol, [
|
|
1835
1835
|
Q("a", { onClick: V }, "全选"),
|
|
1836
|
-
G(
|
|
1836
|
+
G(z, { direction: "vertical" }),
|
|
1837
1837
|
Q("a", { onClick: T }, "全不选"),
|
|
1838
|
-
G(
|
|
1838
|
+
G(z, { direction: "vertical" }),
|
|
1839
1839
|
Q("a", { onClick: M }, "复位")
|
|
1840
1840
|
]),
|
|
1841
1841
|
G(se, {
|
|
@@ -1849,17 +1849,17 @@ const ol = {
|
|
|
1849
1849
|
Q("div", rl, [
|
|
1850
1850
|
(s(!0), A(Y, null, I(t.value, (u) => (s(), S(E, {
|
|
1851
1851
|
modelValue: u.showCol,
|
|
1852
|
-
"onUpdate:modelValue": (
|
|
1852
|
+
"onUpdate:modelValue": (N) => u.showCol = N,
|
|
1853
1853
|
"data-id": u.value,
|
|
1854
1854
|
class: ht(["check-box-hover", u.value == "control" ? "filtered" : ""]),
|
|
1855
|
-
onChange: (
|
|
1855
|
+
onChange: (N) => r(N, u.value),
|
|
1856
1856
|
style: { width: "125px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "2px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
1857
1857
|
value: u.value,
|
|
1858
1858
|
title: u.label,
|
|
1859
1859
|
disabled: u.alwaysShow,
|
|
1860
1860
|
key: u.value
|
|
1861
1861
|
}, {
|
|
1862
|
-
default:
|
|
1862
|
+
default: b(() => [
|
|
1863
1863
|
Q("span", {
|
|
1864
1864
|
textContent: me(u.label),
|
|
1865
1865
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
@@ -1883,17 +1883,17 @@ const ol = {
|
|
|
1883
1883
|
inheritAttrs: !1
|
|
1884
1884
|
}, {
|
|
1885
1885
|
__name: "g-table",
|
|
1886
|
-
props: /* @__PURE__ */
|
|
1886
|
+
props: /* @__PURE__ */ Oe({
|
|
1887
1887
|
name: String,
|
|
1888
1888
|
require: !0
|
|
1889
1889
|
}, {
|
|
1890
1890
|
modelValue: { required: !0 },
|
|
1891
1891
|
modelModifiers: {}
|
|
1892
1892
|
}),
|
|
1893
|
-
emits: /* @__PURE__ */
|
|
1893
|
+
emits: /* @__PURE__ */ Oe(["load", "open", "delete", "submit", "reset", "download", "row-save"], ["update:modelValue"]),
|
|
1894
1894
|
setup(c, { emit: f }) {
|
|
1895
|
-
var n,
|
|
1896
|
-
const t = f, e =
|
|
1895
|
+
var n, W, re, Ce, Me, De, ge;
|
|
1896
|
+
const t = f, e = xe(c, "modelValue"), r = ot("options"), v = ye({}), V = ye(!1), T = ye(!1), M = ["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"], w = ye([]), k = c, z = rt(), se = {
|
|
1897
1897
|
autoWatch: !0,
|
|
1898
1898
|
data: [],
|
|
1899
1899
|
border: !0,
|
|
@@ -1904,28 +1904,27 @@ const ol = {
|
|
|
1904
1904
|
load: () => {
|
|
1905
1905
|
let { currentPage: l, pageSize: a } = e.value.table.page;
|
|
1906
1906
|
try {
|
|
1907
|
-
t("load", { currentPage: l, pageSize: a, ...v.value }, (
|
|
1908
|
-
if (!Array.isArray(
|
|
1907
|
+
t("load", { currentPage: l, pageSize: a, ...v.value }, (g, U) => {
|
|
1908
|
+
if (!Array.isArray(g)) {
|
|
1909
1909
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), ke.error("数据加载失败,请检查数据格式。");
|
|
1910
1910
|
return;
|
|
1911
1911
|
}
|
|
1912
|
-
if (typeof
|
|
1912
|
+
if (typeof U != "number") {
|
|
1913
1913
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), ke.error("数据加载失败,请检查数据格式。");
|
|
1914
1914
|
return;
|
|
1915
1915
|
}
|
|
1916
|
-
e.value.table.data =
|
|
1916
|
+
e.value.table.data = g, e.value.table.page.total = U, X();
|
|
1917
1917
|
});
|
|
1918
|
-
} catch (
|
|
1919
|
-
console.error("触发 load 事件时出现错误:",
|
|
1918
|
+
} catch (g) {
|
|
1919
|
+
console.error("触发 load 事件时出现错误:", g), ke.error("数据加载时出现错误,请稍后重试。");
|
|
1920
1920
|
}
|
|
1921
|
-
console.log("---");
|
|
1922
1921
|
},
|
|
1923
|
-
onHeaderDragend: (l, a,
|
|
1924
|
-
var
|
|
1925
|
-
je((
|
|
1922
|
+
onHeaderDragend: (l, a, g) => {
|
|
1923
|
+
var U;
|
|
1924
|
+
je((U = e.value.table) == null ? void 0 : U.user, k.name, g.property, { width: l });
|
|
1926
1925
|
},
|
|
1927
|
-
onRowDblclick: (l, a,
|
|
1928
|
-
e.value.table.dblclickType == "edit" ? D(l, a,
|
|
1926
|
+
onRowDblclick: (l, a, g) => {
|
|
1927
|
+
e.value.table.dblclickType == "edit" ? D(l, a, g, e) : e.value.table.dblclickType == "view" && y(l, a, g, e);
|
|
1929
1928
|
},
|
|
1930
1929
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
1931
1930
|
page: {
|
|
@@ -1944,11 +1943,11 @@ const ol = {
|
|
|
1944
1943
|
},
|
|
1945
1944
|
dblclickType: "edit"
|
|
1946
1945
|
};
|
|
1947
|
-
e.value.table =
|
|
1946
|
+
e.value.table = we(
|
|
1948
1947
|
se,
|
|
1949
1948
|
r == null ? void 0 : r.table,
|
|
1950
1949
|
e.value.table,
|
|
1951
|
-
|
|
1950
|
+
z
|
|
1952
1951
|
// 继承父组件的属性
|
|
1953
1952
|
);
|
|
1954
1953
|
const E = {
|
|
@@ -1956,7 +1955,8 @@ const ol = {
|
|
|
1956
1955
|
label: "操作",
|
|
1957
1956
|
width: 250,
|
|
1958
1957
|
fixed: "right",
|
|
1959
|
-
style: { ...(
|
|
1958
|
+
style: { ...(W = (n = e.value) == null ? void 0 : n.control) == null ? void 0 : W.style },
|
|
1959
|
+
validate: (l) => !0,
|
|
1960
1960
|
add: {
|
|
1961
1961
|
label: "新增",
|
|
1962
1962
|
text: !1,
|
|
@@ -1970,20 +1970,20 @@ const ol = {
|
|
|
1970
1970
|
text: !0,
|
|
1971
1971
|
type: "success",
|
|
1972
1972
|
mode: "dialog",
|
|
1973
|
-
auth: (l, a,
|
|
1973
|
+
auth: (l, a, g) => !1
|
|
1974
1974
|
},
|
|
1975
1975
|
edit: {
|
|
1976
1976
|
label: "编辑",
|
|
1977
1977
|
text: !0,
|
|
1978
1978
|
type: "primary",
|
|
1979
1979
|
mode: "dialog",
|
|
1980
|
-
auth: (l, a,
|
|
1980
|
+
auth: (l, a, g) => !0
|
|
1981
1981
|
},
|
|
1982
1982
|
delete: {
|
|
1983
1983
|
text: !0,
|
|
1984
1984
|
label: "删除",
|
|
1985
1985
|
type: "danger",
|
|
1986
|
-
auth: (l, a,
|
|
1986
|
+
auth: (l, a, g) => !0,
|
|
1987
1987
|
dialog: {
|
|
1988
1988
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
1989
1989
|
title: "提示",
|
|
@@ -2013,7 +2013,7 @@ const ol = {
|
|
|
2013
2013
|
auth: () => !1
|
|
2014
2014
|
}
|
|
2015
2015
|
};
|
|
2016
|
-
e.value.control =
|
|
2016
|
+
e.value.control = we(
|
|
2017
2017
|
E,
|
|
2018
2018
|
r == null ? void 0 : r.control,
|
|
2019
2019
|
(re = e.value) == null ? void 0 : re.control
|
|
@@ -2022,21 +2022,21 @@ const ol = {
|
|
|
2022
2022
|
type: "hidden",
|
|
2023
2023
|
minWidth: 120,
|
|
2024
2024
|
align: "center",
|
|
2025
|
-
formatter: (l, a,
|
|
2025
|
+
formatter: (l, a, g, U) => g
|
|
2026
2026
|
};
|
|
2027
|
-
e.value.tableColumns =
|
|
2027
|
+
e.value.tableColumns = we(
|
|
2028
2028
|
u,
|
|
2029
2029
|
r == null ? void 0 : r.tableColumns,
|
|
2030
2030
|
(Ce = e.value) == null ? void 0 : Ce.tableColumns
|
|
2031
2031
|
);
|
|
2032
|
-
const
|
|
2032
|
+
const N = {
|
|
2033
2033
|
type: "hidden",
|
|
2034
2034
|
disabled: void 0,
|
|
2035
2035
|
footer: { hidden: !1 },
|
|
2036
2036
|
modalState: void 0
|
|
2037
2037
|
};
|
|
2038
|
-
e.value.form =
|
|
2039
|
-
|
|
2038
|
+
e.value.form = we(
|
|
2039
|
+
N,
|
|
2040
2040
|
r == null ? void 0 : r.form,
|
|
2041
2041
|
(Me = e.value) == null ? void 0 : Me.form
|
|
2042
2042
|
);
|
|
@@ -2047,12 +2047,12 @@ const ol = {
|
|
|
2047
2047
|
width: "100%"
|
|
2048
2048
|
}
|
|
2049
2049
|
};
|
|
2050
|
-
e.value.formItems =
|
|
2050
|
+
e.value.formItems = we(
|
|
2051
2051
|
ae,
|
|
2052
2052
|
r == null ? void 0 : r.formItems,
|
|
2053
2053
|
(De = e == null ? void 0 : e.value) == null ? void 0 : De.formItems
|
|
2054
2054
|
);
|
|
2055
|
-
const
|
|
2055
|
+
const ee = {
|
|
2056
2056
|
title: "编辑",
|
|
2057
2057
|
mode: "drawer",
|
|
2058
2058
|
type: "hidden",
|
|
@@ -2060,71 +2060,72 @@ const ol = {
|
|
|
2060
2060
|
size: 700,
|
|
2061
2061
|
fullScreen: !1
|
|
2062
2062
|
};
|
|
2063
|
-
e.value.dialog =
|
|
2064
|
-
|
|
2063
|
+
e.value.dialog = we(
|
|
2064
|
+
ee,
|
|
2065
2065
|
r == null ? void 0 : r.dialog,
|
|
2066
|
-
(
|
|
2066
|
+
(ge = e.value) == null ? void 0 : ge.dialog
|
|
2067
2067
|
);
|
|
2068
2068
|
const J = Object.fromEntries(Object.entries(_e(e.value, (l, a) => a.type != "control" && a.editor !== !1 && a.type != "hidden")).map(([l, a]) => [l, a.value])), ne = (l, a) => {
|
|
2069
|
-
let
|
|
2070
|
-
if (l.decimals && !isNaN(a) && (typeof l.decimals == "number" ?
|
|
2069
|
+
let g = a;
|
|
2070
|
+
if (l.decimals && !isNaN(a) && (typeof l.decimals == "number" ? g = parseFloat(g).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? g = parseFloat(g).toFixed(l.decimals.num) : g = parseFloat(parseFloat(g).toFixed(l.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && Ze(a).isValid()) {
|
|
2071
2071
|
const K = {
|
|
2072
2072
|
date: "YYYY-MM-DD",
|
|
2073
2073
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2074
2074
|
time: "HH:mm:ss"
|
|
2075
2075
|
};
|
|
2076
|
-
|
|
2076
|
+
g = l.format ? Ze(g).format(l.format) : Ze(g).format(K[l.type]);
|
|
2077
2077
|
}
|
|
2078
|
-
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130,
|
|
2079
|
-
},
|
|
2078
|
+
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, g = `<span title="${lt(parseFloat(g))}">${xl(parseFloat(g))}</span>`), l.prefix && g && (g = `<span>${l.prefix}${g}</span>`), l.suffix && g && (g = `${g}<span>${l.suffix}</span>`), g;
|
|
2079
|
+
}, he = (l) => {
|
|
2080
2080
|
v.value = l.value;
|
|
2081
2081
|
}, fe = (l) => {
|
|
2082
2082
|
console.log(l), v.value = l, e.value.table.load();
|
|
2083
2083
|
}, d = (l) => {
|
|
2084
|
-
var a;
|
|
2085
|
-
e.value.form.modalState = "add", (a = e.value.control.add) != null &&
|
|
2086
|
-
e.value[
|
|
2087
|
-
}), V.value = !0, t("open",
|
|
2088
|
-
}, D = (l, a,
|
|
2089
|
-
var K;
|
|
2090
|
-
e.value.form.modalState = "edit", (K = e.value.control.edit) != null &&
|
|
2091
|
-
e.value[
|
|
2092
|
-
}), V.value = !0, t("open",
|
|
2093
|
-
}, B = (l, a,
|
|
2094
|
-
var K;
|
|
2095
|
-
if ((K = e.value.control
|
|
2096
|
-
e.value.control.delete
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2084
|
+
var a, g;
|
|
2085
|
+
e.value.form.modalState = "add", (a = e.value.control) != null && a.validate("add", { m: l }) && ((g = e.value.control.add) != null && g.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(J), T.value = !0, t("open", "row-add", { initFormData: J, addingRow: T.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(J).forEach((U) => {
|
|
2086
|
+
e.value[U] && (e.value[U].value = J[U]);
|
|
2087
|
+
}), V.value = !0, t("open", "add", { m: l })));
|
|
2088
|
+
}, D = (l, a, g, U) => {
|
|
2089
|
+
var K, te;
|
|
2090
|
+
e.value.form.modalState = "edit", (K = e.value.control) != null && K.validate("edit", { row: l, column: a, $index: g, m: U }) && ((te = e.value.control.edit) != null && te.click ? e.value.control.edit.click(l, a, g, U) : (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((pe) => {
|
|
2091
|
+
e.value[pe] && (e.value[pe].value = l[pe]);
|
|
2092
|
+
}), V.value = !0, t("open", "edit", { m: U, row: l, column: a, $index: g })));
|
|
2093
|
+
}, B = (l, a, g, U) => {
|
|
2094
|
+
var K, te;
|
|
2095
|
+
if ((K = e.value.control) != null && K.validate("delete", { row: l, column: a, $index: g, m: U }))
|
|
2096
|
+
if ((te = e.value.control.delete) != null && te.click)
|
|
2097
|
+
e.value.control.delete.click(l, a, g, U);
|
|
2098
|
+
else {
|
|
2099
|
+
let { message: pe, title: qe, options: Pe } = e.value.control.delete.dialog;
|
|
2100
|
+
ct.confirm(pe, qe, Pe).then(() => {
|
|
2101
|
+
t("delete", { row: l, column: a, $index: g }, (ze) => {
|
|
2102
|
+
ze && (e.value.table.data.splice(g, 1), e.value.table.page.total--);
|
|
2103
|
+
});
|
|
2104
|
+
}).catch(() => {
|
|
2102
2105
|
});
|
|
2103
|
-
}
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
}), V.value = !0, t("open", W, "view", l, a, b));
|
|
2111
|
-
}, N = (l, a, b, W) => {
|
|
2106
|
+
}
|
|
2107
|
+
}, y = (l, a, g, U) => {
|
|
2108
|
+
var K, te;
|
|
2109
|
+
e.value.form.modalState = void 0, (K = e.value.control) != null && K.validate("view", { row: l, column: a, $index: g, m: U }) && ((te = e.value.control.view) != null && te.click ? e.value.control.view.click(l, a, g, U) : (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((pe) => {
|
|
2110
|
+
e.value[pe] && (e.value[pe].value = l[pe]);
|
|
2111
|
+
}), V.value = !0, t("open", "view", { m: U, row: l, column: a, $index: g })));
|
|
2112
|
+
}, L = (l, a, g, U) => {
|
|
2112
2113
|
var K;
|
|
2113
|
-
(K = e.value.control.save) != null && K.click ? e.value.control.save.click(l, a,
|
|
2114
|
-
|
|
2114
|
+
(K = e.value.control.save) != null && K.click ? e.value.control.save.click(l, a, g, U) : t("row-save", { row: l, column: a, $index: g, data: e.value.table.data }, (te) => {
|
|
2115
|
+
te && (e.value.table.load(), T.value = !1);
|
|
2115
2116
|
});
|
|
2116
|
-
},
|
|
2117
|
-
t("submit", e.value.form.modalState, l, a, (
|
|
2118
|
-
|
|
2117
|
+
}, O = (l, a) => {
|
|
2118
|
+
t("submit", e.value.form.modalState, l, a, (g) => {
|
|
2119
|
+
g && (V.value = !1, a.table.load());
|
|
2119
2120
|
});
|
|
2120
2121
|
}, Z = (l) => {
|
|
2121
2122
|
t("reset", l);
|
|
2122
|
-
},
|
|
2123
|
-
var
|
|
2124
|
-
if ((
|
|
2123
|
+
}, Ee = (l, a) => {
|
|
2124
|
+
var g;
|
|
2125
|
+
if ((g = l.control.download) != null && g.click)
|
|
2125
2126
|
l.control.download.click(l, a);
|
|
2126
2127
|
else {
|
|
2127
|
-
let
|
|
2128
|
+
let U = tt({
|
|
2128
2129
|
title: l.control.download.label,
|
|
2129
2130
|
size: 480,
|
|
2130
2131
|
width: 600,
|
|
@@ -2132,8 +2133,8 @@ const ol = {
|
|
|
2132
2133
|
default: () => Ve(Zt, {
|
|
2133
2134
|
items: a,
|
|
2134
2135
|
commitText: l.control.download.excelLabel,
|
|
2135
|
-
onExcel: (K,
|
|
2136
|
-
t("download", K,
|
|
2136
|
+
onExcel: (K, te) => {
|
|
2137
|
+
t("download", K, te), U();
|
|
2137
2138
|
}
|
|
2138
2139
|
})
|
|
2139
2140
|
}
|
|
@@ -2141,7 +2142,7 @@ const ol = {
|
|
|
2141
2142
|
}
|
|
2142
2143
|
}, q = (l) => {
|
|
2143
2144
|
var a;
|
|
2144
|
-
(a = l.control.setting) != null && a.click ? l.control.setting.click(l) :
|
|
2145
|
+
(a = l.control.setting) != null && a.click ? l.control.setting.click(l) : tt({
|
|
2145
2146
|
title: l.control.setting.label,
|
|
2146
2147
|
size: 470,
|
|
2147
2148
|
width: 600,
|
|
@@ -2154,42 +2155,42 @@ const ol = {
|
|
|
2154
2155
|
}, l.control.setting.mode);
|
|
2155
2156
|
}, h = e.value.control, $ = [
|
|
2156
2157
|
{ type: "add", func: d },
|
|
2157
|
-
{ type: "download", func:
|
|
2158
|
+
{ type: "download", func: Ee },
|
|
2158
2159
|
{ type: "setting", func: q },
|
|
2159
2160
|
{ type: "view", func: y },
|
|
2160
2161
|
{ type: "edit", func: D },
|
|
2161
2162
|
{ type: "delete", func: B },
|
|
2162
|
-
{ type: "save", func:
|
|
2163
|
-
], m = (l) => $.filter((a) => l.includes(a.type)).map(({ type: a, func:
|
|
2164
|
-
var
|
|
2163
|
+
{ type: "save", func: L }
|
|
2164
|
+
], m = (l) => $.filter((a) => l.includes(a.type)).map(({ type: a, func: g }) => {
|
|
2165
|
+
var U, K, te;
|
|
2165
2166
|
return {
|
|
2166
2167
|
name: `control-${a}`,
|
|
2167
2168
|
attr: h == null ? void 0 : h[a],
|
|
2168
|
-
func:
|
|
2169
|
-
label: (
|
|
2169
|
+
func: g,
|
|
2170
|
+
label: (U = h == null ? void 0 : h[a]) == null ? void 0 : U.label,
|
|
2170
2171
|
sort: ((K = h == null ? void 0 : h[a]) == null ? void 0 : K.sort) || 0,
|
|
2171
|
-
groupName: ((
|
|
2172
|
+
groupName: ((te = h == null ? void 0 : h[a]) == null ? void 0 : te.groupName) || "default"
|
|
2172
2173
|
};
|
|
2173
|
-
}).sort((a,
|
|
2174
|
-
const
|
|
2175
|
-
return a[
|
|
2174
|
+
}).sort((a, g) => a.sort - g.sort), i = (l) => m(l).reduce((a, g) => {
|
|
2175
|
+
const U = g.groupName || "default";
|
|
2176
|
+
return a[U] || (a[U] = []), a[U].push(g), a;
|
|
2176
2177
|
}, {}), _ = Ae(() => Object.fromEntries(
|
|
2177
2178
|
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)
|
|
2178
|
-
)), F =
|
|
2179
|
-
const
|
|
2180
|
-
for (const
|
|
2181
|
-
if (
|
|
2182
|
-
if (
|
|
2183
|
-
const
|
|
2184
|
-
if (
|
|
2179
|
+
)), F = ye({}), P = (l, a) => {
|
|
2180
|
+
const g = (U, K) => {
|
|
2181
|
+
for (const te of U) {
|
|
2182
|
+
if (te.value == K) return te.label;
|
|
2183
|
+
if (te.children) {
|
|
2184
|
+
const pe = g(te.children, K);
|
|
2185
|
+
if (pe) return pe;
|
|
2185
2186
|
}
|
|
2186
2187
|
}
|
|
2187
2188
|
return null;
|
|
2188
2189
|
};
|
|
2189
2190
|
if (l.getDicts) {
|
|
2190
|
-
const
|
|
2191
|
-
return F.value[
|
|
2192
|
-
F.value[
|
|
2191
|
+
const U = a.toString();
|
|
2192
|
+
return F.value[U] ? (l.options = F.value[U], l.formatter || (l.formatter = (K, te, pe, qe) => l.options && g(l.options, pe) || pe), Promise.resolve()) : l.getDicts(e.value.table.data).then((K) => {
|
|
2193
|
+
F.value[U] = K, l.options = K, l.formatter || (l.formatter = (te, pe, qe, Pe) => l.options && g(l.options, qe) || qe);
|
|
2193
2194
|
});
|
|
2194
2195
|
}
|
|
2195
2196
|
return Promise.resolve();
|
|
@@ -2197,25 +2198,25 @@ const ol = {
|
|
|
2197
2198
|
const l = [];
|
|
2198
2199
|
Object.keys(e.value).forEach((a) => {
|
|
2199
2200
|
if (e.value[a].getDicts) {
|
|
2200
|
-
const
|
|
2201
|
-
e.value.table.data.forEach((
|
|
2201
|
+
const g = P(e.value[a], a).then(() => {
|
|
2202
|
+
e.value.table.data.forEach((U) => {
|
|
2202
2203
|
var K;
|
|
2203
2204
|
if (e.value[a].getDicts && ((K = e.value[a]) == null ? void 0 : K.forceString) !== !1) {
|
|
2204
|
-
const
|
|
2205
|
-
|
|
2205
|
+
const te = U[a];
|
|
2206
|
+
U[a] = te != null ? te.toString() : te;
|
|
2206
2207
|
}
|
|
2207
2208
|
});
|
|
2208
|
-
}).catch((
|
|
2209
|
-
console.error(`加载字典${a}出错:`,
|
|
2209
|
+
}).catch((U) => {
|
|
2210
|
+
console.error(`加载字典${a}出错:`, U);
|
|
2210
2211
|
});
|
|
2211
|
-
l.push(
|
|
2212
|
+
l.push(g);
|
|
2212
2213
|
}
|
|
2213
2214
|
}), Promise.all(l).catch((a) => {
|
|
2214
2215
|
console.error("字典加载过程中发生错误:", a);
|
|
2215
2216
|
});
|
|
2216
|
-
}, oe = (l, a,
|
|
2217
|
-
var K,
|
|
2218
|
-
return l.table ? (K = l.table(a,
|
|
2217
|
+
}, oe = (l, a, g, U) => {
|
|
2218
|
+
var K, te;
|
|
2219
|
+
return l.table ? (K = l.table(a, g, U)) != null && K.auth ? (te = l.table(a, g, U)) == null ? void 0 : te.auth(a, g, U) : !0 : !1;
|
|
2219
2220
|
};
|
|
2220
2221
|
return Tt(() => {
|
|
2221
2222
|
e.value.table.autoWatch && e.value.table.load();
|
|
@@ -2243,72 +2244,72 @@ const ol = {
|
|
|
2243
2244
|
}
|
|
2244
2245
|
try {
|
|
2245
2246
|
const a = await Kt(e.value.table.user, k.name);
|
|
2246
|
-
a && a.forEach((
|
|
2247
|
-
e.value[
|
|
2247
|
+
a && a.forEach((g) => {
|
|
2248
|
+
e.value[g.key] && (e.value[g.key].width = g.width, e.value[g.key].showCol = g.showCol, e.value[g.key].sort = g.sort);
|
|
2248
2249
|
});
|
|
2249
2250
|
} catch (a) {
|
|
2250
2251
|
console.error("Error fetching table column settings:", a);
|
|
2251
2252
|
}
|
|
2252
2253
|
e.value.table.autoWatch || e.value.table.load();
|
|
2253
2254
|
}), (l, a) => {
|
|
2254
|
-
var
|
|
2255
|
-
const
|
|
2255
|
+
var ze, at, ut, nt, st;
|
|
2256
|
+
const g = R("el-button-group"), U = R("el-table-column"), K = R("el-table"), te = R("el-pagination"), pe = R("el-icon"), qe = R("el-dialog"), Pe = R("el-drawer");
|
|
2256
2257
|
return s(), A(Y, null, [
|
|
2257
2258
|
Q("div", sl, [
|
|
2258
|
-
((at = (
|
|
2259
|
+
((at = (ze = e.value) == null ? void 0 : ze.query) == null ? void 0 : at.hidden) != !0 ? (s(), A("div", il, [
|
|
2259
2260
|
p(l.$slots, "query", {}, () => [
|
|
2260
2261
|
G(zt, {
|
|
2261
2262
|
modelValue: e.value,
|
|
2262
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
2263
|
+
"onUpdate:modelValue": a[0] || (a[0] = (j) => e.value = j),
|
|
2263
2264
|
onQuery: fe,
|
|
2264
|
-
onReset:
|
|
2265
|
+
onReset: he
|
|
2265
2266
|
}, de({
|
|
2266
|
-
"q-btns":
|
|
2267
|
+
"q-btns": b(() => [
|
|
2267
2268
|
p(l.$slots, "q-btns", {}, () => [
|
|
2268
|
-
(s(!0), A(Y, null, I(i(["add", "download", "setting"]), (
|
|
2269
|
-
ue == "default" ? (s(!0), A(Y, { key: 0 }, I(
|
|
2269
|
+
(s(!0), A(Y, null, I(i(["add", "download", "setting"]), (j, ue) => (s(), A(Y, null, [
|
|
2270
|
+
ue == "default" ? (s(!0), A(Y, { key: 0 }, I(j, (C) => (s(), A(Y, null, [
|
|
2270
2271
|
p(l.$slots, C.name + "-left", {}, void 0, !0),
|
|
2271
2272
|
(C.name === "control-add" ? C.attr.auth() && C.attr.inline === !1 : C.attr.auth()) ? p(l.$slots, C.name, { key: 0 }, () => [
|
|
2272
|
-
C.label ? (s(), S(o(
|
|
2273
|
+
C.label ? (s(), S(o(be), x({
|
|
2273
2274
|
key: 0,
|
|
2274
2275
|
ref_for: !0
|
|
2275
2276
|
}, C.attr, {
|
|
2276
2277
|
onClick: (H) => C.func(e.value, w.value)
|
|
2277
2278
|
}), {
|
|
2278
|
-
default:
|
|
2279
|
-
|
|
2279
|
+
default: b(() => [
|
|
2280
|
+
$e(me(C.label), 1)
|
|
2280
2281
|
]),
|
|
2281
2282
|
_: 2
|
|
2282
|
-
}, 1040, ["onClick"])) : (s(), S(o(
|
|
2283
|
+
}, 1040, ["onClick"])) : (s(), S(o(be), x({
|
|
2283
2284
|
key: 1,
|
|
2284
2285
|
ref_for: !0
|
|
2285
2286
|
}, C.attr, {
|
|
2286
2287
|
onClick: (H) => C.func(e.value, w.value)
|
|
2287
2288
|
}), null, 16, ["onClick"]))
|
|
2288
|
-
], !0) :
|
|
2289
|
+
], !0) : ve("", !0),
|
|
2289
2290
|
p(l.$slots, C.name + "-right", {}, void 0, !0)
|
|
2290
|
-
], 64))), 256)) : (s(), S(
|
|
2291
|
-
default:
|
|
2292
|
-
(s(!0), A(Y, null, I(
|
|
2291
|
+
], 64))), 256)) : (s(), S(g, { key: 1 }, {
|
|
2292
|
+
default: b(() => [
|
|
2293
|
+
(s(!0), A(Y, null, I(j, (C) => (s(), A(Y, null, [
|
|
2293
2294
|
p(l.$slots, C.name + "-left", {}, void 0, !0),
|
|
2294
2295
|
(C.name === "control-add" ? C.attr.auth() && C.attr.inline === !1 : C.attr.auth()) ? p(l.$slots, C.name, { key: 0 }, () => [
|
|
2295
|
-
C.label ? (s(), S(o(
|
|
2296
|
+
C.label ? (s(), S(o(be), x({
|
|
2296
2297
|
key: 0,
|
|
2297
2298
|
ref_for: !0
|
|
2298
2299
|
}, C.attr, {
|
|
2299
2300
|
onClick: (H) => C.func(e.value, w.value)
|
|
2300
2301
|
}), {
|
|
2301
|
-
default:
|
|
2302
|
-
|
|
2302
|
+
default: b(() => [
|
|
2303
|
+
$e(me(C.label), 1)
|
|
2303
2304
|
]),
|
|
2304
2305
|
_: 2
|
|
2305
|
-
}, 1040, ["onClick"])) : (s(), S(o(
|
|
2306
|
+
}, 1040, ["onClick"])) : (s(), S(o(be), x({
|
|
2306
2307
|
key: 1,
|
|
2307
2308
|
ref_for: !0
|
|
2308
2309
|
}, C.attr, {
|
|
2309
2310
|
onClick: (H) => C.func(e.value, w.value)
|
|
2310
2311
|
}), null, 16, ["onClick"]))
|
|
2311
|
-
], !0) :
|
|
2312
|
+
], !0) : ve("", !0),
|
|
2312
2313
|
p(l.$slots, C.name + "-right", {}, void 0, !0)
|
|
2313
2314
|
], 64))), 256))
|
|
2314
2315
|
]),
|
|
@@ -2319,31 +2320,31 @@ const ol = {
|
|
|
2319
2320
|
]),
|
|
2320
2321
|
_: 2
|
|
2321
2322
|
}, [
|
|
2322
|
-
I(l.$slots, (
|
|
2323
|
+
I(l.$slots, (j, ue, C) => ({
|
|
2323
2324
|
name: ue,
|
|
2324
|
-
fn:
|
|
2325
|
+
fn: b((H) => [
|
|
2325
2326
|
p(l.$slots, ue, { model: e.value }, void 0, !0)
|
|
2326
2327
|
])
|
|
2327
2328
|
}))
|
|
2328
2329
|
]), 1032, ["modelValue"])
|
|
2329
2330
|
], !0)
|
|
2330
|
-
])) :
|
|
2331
|
+
])) : ve("", !0),
|
|
2331
2332
|
Q("div", dl, [
|
|
2332
|
-
G(K, Ne(
|
|
2333
|
-
append:
|
|
2333
|
+
G(K, Ne(Ke({ ...l.$attrs, ...o(_e)(e.value.table, (j) => !["dblclickType", "page"].includes(j)) })), {
|
|
2334
|
+
append: b(() => [
|
|
2334
2335
|
p(l.$slots, "append", {}, void 0, !0)
|
|
2335
2336
|
]),
|
|
2336
|
-
empty:
|
|
2337
|
+
empty: b(() => [
|
|
2337
2338
|
p(l.$slots, "empty", {}, void 0, !0)
|
|
2338
2339
|
]),
|
|
2339
|
-
default:
|
|
2340
|
+
default: b(() => [
|
|
2340
2341
|
p(l.$slots, "default", {}, () => [
|
|
2341
|
-
(s(!0), A(Y, null, I(_.value, (
|
|
2342
|
+
(s(!0), A(Y, null, I(_.value, (j, ue) => (s(), S(U, x({
|
|
2342
2343
|
prop: ue,
|
|
2343
2344
|
key: ue,
|
|
2344
2345
|
ref_for: !0
|
|
2345
|
-
}, { ...e.value.tableColumns, ...o(_e)(
|
|
2346
|
-
header:
|
|
2346
|
+
}, { ...e.value.tableColumns, ...o(_e)(j, (C) => M.includes(C)) }, { "header-align": "center" }), de({
|
|
2347
|
+
header: b(({ column: C, $index: H }) => [
|
|
2347
2348
|
ue == "control" ? p(l.$slots, `${ue}-header`, {
|
|
2348
2349
|
key: 0,
|
|
2349
2350
|
column: C,
|
|
@@ -2351,7 +2352,7 @@ const ol = {
|
|
|
2351
2352
|
}, () => [
|
|
2352
2353
|
a[12] || (a[12] = Q("span", null, "操作", -1)),
|
|
2353
2354
|
e.value.control.add.inline === !0 && !T.value ? (s(), A(Y, { key: 0 }, [
|
|
2354
|
-
e.value.control.add.label ? (s(), S(o(
|
|
2355
|
+
e.value.control.add.label ? (s(), S(o(be), x({
|
|
2355
2356
|
key: 0,
|
|
2356
2357
|
title: "新增",
|
|
2357
2358
|
size: "small",
|
|
@@ -2359,11 +2360,11 @@ const ol = {
|
|
|
2359
2360
|
}, e.value.control.add, {
|
|
2360
2361
|
onClick: a[1] || (a[1] = (le) => d(e.value))
|
|
2361
2362
|
}), {
|
|
2362
|
-
default:
|
|
2363
|
-
|
|
2363
|
+
default: b(() => [
|
|
2364
|
+
$e(me(e.value.control.add.label), 1)
|
|
2364
2365
|
]),
|
|
2365
2366
|
_: 1
|
|
2366
|
-
}, 16)) : (s(), S(o(
|
|
2367
|
+
}, 16)) : (s(), S(o(be), x({
|
|
2367
2368
|
key: 1,
|
|
2368
2369
|
title: "新增",
|
|
2369
2370
|
size: "small",
|
|
@@ -2371,37 +2372,37 @@ const ol = {
|
|
|
2371
2372
|
}, e.value.control.add, {
|
|
2372
2373
|
onClick: a[2] || (a[2] = (le) => d(e.value))
|
|
2373
2374
|
}), null, 16))
|
|
2374
|
-
], 64)) :
|
|
2375
|
+
], 64)) : ve("", !0)
|
|
2375
2376
|
], !0) : p(l.$slots, `${ue}-header`, {
|
|
2376
2377
|
key: 1,
|
|
2377
2378
|
column: C,
|
|
2378
2379
|
$index: H
|
|
2379
2380
|
}, void 0, !0)
|
|
2380
2381
|
]),
|
|
2381
|
-
"filter-icon":
|
|
2382
|
+
"filter-icon": b((C) => [
|
|
2382
2383
|
p(l.$slots, `${ue}-filter-icon`, { data: C }, void 0, !0)
|
|
2383
2384
|
]),
|
|
2384
2385
|
_: 2
|
|
2385
2386
|
}, [
|
|
2386
|
-
|
|
2387
|
+
j.type === "image" ? {
|
|
2387
2388
|
name: "default",
|
|
2388
|
-
fn:
|
|
2389
|
+
fn: b(({ row: C, column: H, $index: le }) => [
|
|
2389
2390
|
p(l.$slots, `${ue}`, {
|
|
2390
2391
|
row: C,
|
|
2391
2392
|
column: H,
|
|
2392
2393
|
$index: le
|
|
2393
2394
|
}, () => [
|
|
2394
|
-
Q("img",
|
|
2395
|
+
Q("img", x({
|
|
2395
2396
|
style: { width: "80px", height: "80px", "object-fit": "cover", "border-radius": "3px" },
|
|
2396
|
-
src:
|
|
2397
|
+
src: j.value,
|
|
2397
2398
|
ref_for: !0
|
|
2398
|
-
},
|
|
2399
|
+
}, j), null, 16, fl)
|
|
2399
2400
|
], !0)
|
|
2400
2401
|
]),
|
|
2401
2402
|
key: "0"
|
|
2402
|
-
} :
|
|
2403
|
+
} : j.type === "expand" ? {
|
|
2403
2404
|
name: "default",
|
|
2404
|
-
fn:
|
|
2405
|
+
fn: b(({ row: C, column: H, $index: le }) => [
|
|
2405
2406
|
p(l.$slots, `${ue}`, {
|
|
2406
2407
|
row: C,
|
|
2407
2408
|
column: H,
|
|
@@ -2409,9 +2410,9 @@ const ol = {
|
|
|
2409
2410
|
}, void 0, !0)
|
|
2410
2411
|
]),
|
|
2411
2412
|
key: "1"
|
|
2412
|
-
} :
|
|
2413
|
+
} : j.type == "control" ? {
|
|
2413
2414
|
name: "default",
|
|
2414
|
-
fn:
|
|
2415
|
+
fn: b(({ row: C, column: H, $index: le }) => {
|
|
2415
2416
|
var Ie, Ue;
|
|
2416
2417
|
return [
|
|
2417
2418
|
Q("div", {
|
|
@@ -2424,8 +2425,8 @@ const ol = {
|
|
|
2424
2425
|
column: H,
|
|
2425
2426
|
$index: le
|
|
2426
2427
|
}, void 0, !0),
|
|
2427
|
-
(s(!0), A(Y, null, I(i(["view", "edit", "delete", "save"]), (Re,
|
|
2428
|
-
|
|
2428
|
+
(s(!0), A(Y, null, I(i(["view", "edit", "delete", "save"]), (Re, Qe) => (s(), A(Y, null, [
|
|
2429
|
+
Qe == "default" ? (s(!0), A(Y, { key: 0 }, I(Re, (ce) => (s(), A(Y, null, [
|
|
2429
2430
|
p(l.$slots, ce.name + "-left", {
|
|
2430
2431
|
row: C,
|
|
2431
2432
|
column: H,
|
|
@@ -2437,30 +2438,30 @@ const ol = {
|
|
|
2437
2438
|
column: H,
|
|
2438
2439
|
$index: le
|
|
2439
2440
|
}, () => [
|
|
2440
|
-
ce.label ? (s(), S(o(
|
|
2441
|
+
ce.label ? (s(), S(o(be), x({
|
|
2441
2442
|
key: 0,
|
|
2442
2443
|
ref_for: !0
|
|
2443
2444
|
}, ce.attr, {
|
|
2444
|
-
onClick: (
|
|
2445
|
+
onClick: (Xe) => ce.func(C, H, le, e.value)
|
|
2445
2446
|
}), {
|
|
2446
|
-
default:
|
|
2447
|
-
|
|
2447
|
+
default: b(() => [
|
|
2448
|
+
$e(me(ce.label), 1)
|
|
2448
2449
|
]),
|
|
2449
2450
|
_: 2
|
|
2450
|
-
}, 1040, ["onClick"])) : (s(), S(o(
|
|
2451
|
+
}, 1040, ["onClick"])) : (s(), S(o(be), x({
|
|
2451
2452
|
key: 1,
|
|
2452
2453
|
ref_for: !0
|
|
2453
2454
|
}, ce.attr, {
|
|
2454
|
-
onClick: (
|
|
2455
|
+
onClick: (Xe) => ce.func(C, H, le, e.value)
|
|
2455
2456
|
}), null, 16, ["onClick"]))
|
|
2456
|
-
], !0) :
|
|
2457
|
+
], !0) : ve("", !0),
|
|
2457
2458
|
p(l.$slots, ce.name + "-right", {
|
|
2458
2459
|
row: C,
|
|
2459
2460
|
column: H,
|
|
2460
2461
|
$index: le
|
|
2461
2462
|
}, void 0, !0)
|
|
2462
|
-
], 64))), 256)) : (s(), S(
|
|
2463
|
-
default:
|
|
2463
|
+
], 64))), 256)) : (s(), S(g, { key: 1 }, {
|
|
2464
|
+
default: b(() => [
|
|
2464
2465
|
(s(!0), A(Y, null, I(Re, (ce) => (s(), A(Y, null, [
|
|
2465
2466
|
p(l.$slots, ce.name + "-left", {
|
|
2466
2467
|
row: C,
|
|
@@ -2473,23 +2474,23 @@ const ol = {
|
|
|
2473
2474
|
column: H,
|
|
2474
2475
|
$index: le
|
|
2475
2476
|
}, () => [
|
|
2476
|
-
ce.label ? (s(), S(o(
|
|
2477
|
+
ce.label ? (s(), S(o(be), x({
|
|
2477
2478
|
key: 0,
|
|
2478
2479
|
ref_for: !0
|
|
2479
2480
|
}, ce.attr, {
|
|
2480
|
-
onClick: (
|
|
2481
|
+
onClick: (Xe) => ce.func(C, H, le, e.value)
|
|
2481
2482
|
}), {
|
|
2482
|
-
default:
|
|
2483
|
-
|
|
2483
|
+
default: b(() => [
|
|
2484
|
+
$e(me(ce.label), 1)
|
|
2484
2485
|
]),
|
|
2485
2486
|
_: 2
|
|
2486
|
-
}, 1040, ["onClick"])) : (s(), S(o(
|
|
2487
|
+
}, 1040, ["onClick"])) : (s(), S(o(be), x({
|
|
2487
2488
|
key: 1,
|
|
2488
2489
|
ref_for: !0
|
|
2489
2490
|
}, ce.attr, {
|
|
2490
|
-
onClick: (
|
|
2491
|
+
onClick: (Xe) => ce.func(C, H, le, e.value)
|
|
2491
2492
|
}), null, 16, ["onClick"]))
|
|
2492
|
-
], !0) :
|
|
2493
|
+
], !0) : ve("", !0),
|
|
2493
2494
|
p(l.$slots, ce.name + "-right", {
|
|
2494
2495
|
row: C,
|
|
2495
2496
|
column: H,
|
|
@@ -2510,10 +2511,10 @@ const ol = {
|
|
|
2510
2511
|
];
|
|
2511
2512
|
}),
|
|
2512
2513
|
key: "2"
|
|
2513
|
-
} :
|
|
2514
|
+
} : j.type != "selection" && j.type != "index" ? {
|
|
2514
2515
|
name: "default",
|
|
2515
|
-
fn:
|
|
2516
|
-
oe(
|
|
2516
|
+
fn: b(({ row: C, column: H, $index: le }) => [
|
|
2517
|
+
oe(j, C, H, le) && le != -1 ? p(l.$slots, `${ue}`, {
|
|
2517
2518
|
key: 0,
|
|
2518
2519
|
row: C,
|
|
2519
2520
|
column: H,
|
|
@@ -2521,12 +2522,12 @@ const ol = {
|
|
|
2521
2522
|
}, () => {
|
|
2522
2523
|
var Ie;
|
|
2523
2524
|
return [
|
|
2524
|
-
G(
|
|
2525
|
+
G(Ge, {
|
|
2525
2526
|
modelValue: C[ue],
|
|
2526
2527
|
"onUpdate:modelValue": (Ue) => C[ue] = Ue,
|
|
2527
|
-
item:
|
|
2528
|
+
item: j == null ? void 0 : j.table(C, H, le, T.value),
|
|
2528
2529
|
ctrlKey: ue,
|
|
2529
|
-
ctrlType: (Ie =
|
|
2530
|
+
ctrlType: (Ie = j.table(C, H, le, T.value)) != null && Ie.type ? j.table(C, H, le, T.value).type : j.type,
|
|
2530
2531
|
model: e.value,
|
|
2531
2532
|
class: "g-ctrl-container",
|
|
2532
2533
|
t: "t",
|
|
@@ -2534,10 +2535,10 @@ const ol = {
|
|
|
2534
2535
|
}, de({ _: 2 }, [
|
|
2535
2536
|
I(l.$slots, (Ue, Re) => ({
|
|
2536
2537
|
name: Re,
|
|
2537
|
-
fn:
|
|
2538
|
+
fn: b((Qe) => [
|
|
2538
2539
|
p(l.$slots, Re, {
|
|
2539
|
-
data:
|
|
2540
|
-
item:
|
|
2540
|
+
data: Qe,
|
|
2541
|
+
item: j,
|
|
2541
2542
|
model: e.value
|
|
2542
2543
|
}, void 0, !0)
|
|
2543
2544
|
])
|
|
@@ -2551,7 +2552,7 @@ const ol = {
|
|
|
2551
2552
|
$index: le
|
|
2552
2553
|
}, () => [
|
|
2553
2554
|
Q("div", {
|
|
2554
|
-
innerHTML: ne(
|
|
2555
|
+
innerHTML: ne(j, H.formatter(C, H, C[ue], le))
|
|
2555
2556
|
}, null, 8, cl)
|
|
2556
2557
|
], !0)
|
|
2557
2558
|
]),
|
|
@@ -2562,14 +2563,14 @@ const ol = {
|
|
|
2562
2563
|
]),
|
|
2563
2564
|
_: 3
|
|
2564
2565
|
}, 16),
|
|
2565
|
-
(st = (nt = (ut = e.value) == null ? void 0 : ut.table) == null ? void 0 : nt.page) != null && st.hidden ?
|
|
2566
|
-
G(
|
|
2566
|
+
(st = (nt = (ut = e.value) == null ? void 0 : ut.table) == null ? void 0 : nt.page) != null && st.hidden ? ve("", !0) : p(l.$slots, "page", { key: 0 }, () => [
|
|
2567
|
+
G(te, x({
|
|
2567
2568
|
"page-size": e.value.table.page.pageSize,
|
|
2568
|
-
"onUpdate:pageSize": a[3] || (a[3] = (
|
|
2569
|
+
"onUpdate:pageSize": a[3] || (a[3] = (j) => e.value.table.page.pageSize = j),
|
|
2569
2570
|
"current-page": e.value.table.page.currentPage,
|
|
2570
|
-
"onUpdate:currentPage": a[4] || (a[4] = (
|
|
2571
|
+
"onUpdate:currentPage": a[4] || (a[4] = (j) => e.value.table.page.currentPage = j)
|
|
2571
2572
|
}, e.value.table.page), {
|
|
2572
|
-
default:
|
|
2573
|
+
default: b(() => [
|
|
2573
2574
|
p(l.$slots, "table-page", {}, void 0, !0)
|
|
2574
2575
|
]),
|
|
2575
2576
|
_: 3
|
|
@@ -2578,15 +2579,15 @@ const ol = {
|
|
|
2578
2579
|
])
|
|
2579
2580
|
]),
|
|
2580
2581
|
e.value.dialog.mode == "dialog" && V.value ? (s(), A("div", ml, [
|
|
2581
|
-
G(qe,
|
|
2582
|
+
G(qe, x({
|
|
2582
2583
|
modelValue: V.value,
|
|
2583
|
-
"onUpdate:modelValue": a[8] || (a[8] = (
|
|
2584
|
+
"onUpdate:modelValue": a[8] || (a[8] = (j) => V.value = j),
|
|
2584
2585
|
fullscreen: e.value.dialog.fullScreen
|
|
2585
|
-
}, o(_e)(e.value.dialog, (
|
|
2586
|
+
}, o(_e)(e.value.dialog, (j) => !["size"].includes(j)), {
|
|
2586
2587
|
width: o(Et)(e.value.dialog.width) + 35
|
|
2587
2588
|
}), {
|
|
2588
|
-
header:
|
|
2589
|
-
var
|
|
2589
|
+
header: b(() => {
|
|
2590
|
+
var j, ue, C, H;
|
|
2590
2591
|
return [
|
|
2591
2592
|
Q("div", pl, [
|
|
2592
2593
|
Q("div", vl, [
|
|
@@ -2594,20 +2595,20 @@ const ol = {
|
|
|
2594
2595
|
Q("div", null, me(e.value.dialog.title), 1)
|
|
2595
2596
|
], !0)
|
|
2596
2597
|
]),
|
|
2597
|
-
((ue = (
|
|
2598
|
+
((ue = (j = e.value) == null ? void 0 : j.dialog) == null ? void 0 : ue.fullScreen) === !1 ? (s(), A("div", {
|
|
2598
2599
|
key: 0,
|
|
2599
2600
|
onClick: a[5] || (a[5] = (le) => {
|
|
2600
2601
|
e.value.dialog.fullScreen = !0;
|
|
2601
2602
|
}),
|
|
2602
2603
|
class: "max"
|
|
2603
2604
|
}, [
|
|
2604
|
-
G(
|
|
2605
|
-
default:
|
|
2605
|
+
G(pe, null, {
|
|
2606
|
+
default: b(() => [
|
|
2606
2607
|
G(o(qt))
|
|
2607
2608
|
]),
|
|
2608
2609
|
_: 1
|
|
2609
2610
|
})
|
|
2610
|
-
])) :
|
|
2611
|
+
])) : ve("", !0),
|
|
2611
2612
|
((H = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : H.fullScreen) === !0 ? (s(), A("div", {
|
|
2612
2613
|
key: 1,
|
|
2613
2614
|
onClick: a[6] || (a[6] = (le) => {
|
|
@@ -2615,28 +2616,28 @@ const ol = {
|
|
|
2615
2616
|
}),
|
|
2616
2617
|
class: "max"
|
|
2617
2618
|
}, [
|
|
2618
|
-
G(
|
|
2619
|
-
default:
|
|
2619
|
+
G(pe, null, {
|
|
2620
|
+
default: b(() => [
|
|
2620
2621
|
G(o(St))
|
|
2621
2622
|
]),
|
|
2622
2623
|
_: 1
|
|
2623
2624
|
})
|
|
2624
|
-
])) :
|
|
2625
|
+
])) : ve("", !0)
|
|
2625
2626
|
])
|
|
2626
2627
|
];
|
|
2627
2628
|
}),
|
|
2628
|
-
default:
|
|
2629
|
+
default: b(() => [
|
|
2629
2630
|
Q("div", yl, [
|
|
2630
2631
|
p(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
2631
|
-
G(
|
|
2632
|
+
G(Ye, {
|
|
2632
2633
|
modelValue: e.value,
|
|
2633
|
-
"onUpdate:modelValue": a[7] || (a[7] = (
|
|
2634
|
-
onSubmit:
|
|
2634
|
+
"onUpdate:modelValue": a[7] || (a[7] = (j) => e.value = j),
|
|
2635
|
+
onSubmit: O,
|
|
2635
2636
|
onReset: Z
|
|
2636
2637
|
}, de({ _: 2 }, [
|
|
2637
|
-
I(l.$slots, (
|
|
2638
|
+
I(l.$slots, (j, ue, C) => ({
|
|
2638
2639
|
name: ue,
|
|
2639
|
-
fn:
|
|
2640
|
+
fn: b((H) => [
|
|
2640
2641
|
p(l.$slots, ue, { model: H }, void 0, !0)
|
|
2641
2642
|
])
|
|
2642
2643
|
}))
|
|
@@ -2646,13 +2647,13 @@ const ol = {
|
|
|
2646
2647
|
]),
|
|
2647
2648
|
_: 3
|
|
2648
2649
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
2649
|
-
])) :
|
|
2650
|
+
])) : ve("", !0),
|
|
2650
2651
|
e.value.dialog.mode == "drawer" && V.value ? (s(), A("div", hl, [
|
|
2651
|
-
G(Pe,
|
|
2652
|
+
G(Pe, x({
|
|
2652
2653
|
modelValue: V.value,
|
|
2653
|
-
"onUpdate:modelValue": a[10] || (a[10] = (
|
|
2654
|
-
}, o(_e)(e.value.dialog, (
|
|
2655
|
-
header:
|
|
2654
|
+
"onUpdate:modelValue": a[10] || (a[10] = (j) => V.value = j)
|
|
2655
|
+
}, o(_e)(e.value.dialog, (j) => !["width"].includes(j))), {
|
|
2656
|
+
header: b(() => [
|
|
2656
2657
|
Q("div", gl, [
|
|
2657
2658
|
Q("div", bl, [
|
|
2658
2659
|
p(l.$slots, "f-header", {}, () => [
|
|
@@ -2661,17 +2662,17 @@ const ol = {
|
|
|
2661
2662
|
])
|
|
2662
2663
|
])
|
|
2663
2664
|
]),
|
|
2664
|
-
default:
|
|
2665
|
+
default: b(() => [
|
|
2665
2666
|
p(l.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
2666
|
-
G(
|
|
2667
|
+
G(Ye, {
|
|
2667
2668
|
modelValue: e.value,
|
|
2668
|
-
"onUpdate:modelValue": a[9] || (a[9] = (
|
|
2669
|
-
onSubmit:
|
|
2669
|
+
"onUpdate:modelValue": a[9] || (a[9] = (j) => e.value = j),
|
|
2670
|
+
onSubmit: O,
|
|
2670
2671
|
onReset: Z
|
|
2671
2672
|
}, de({ _: 2 }, [
|
|
2672
|
-
I(l.$slots, (
|
|
2673
|
+
I(l.$slots, (j, ue, C) => ({
|
|
2673
2674
|
name: ue,
|
|
2674
|
-
fn:
|
|
2675
|
+
fn: b((H) => [
|
|
2675
2676
|
p(l.$slots, ue, { model: H }, void 0, !0)
|
|
2676
2677
|
])
|
|
2677
2678
|
}))
|
|
@@ -2680,11 +2681,11 @@ const ol = {
|
|
|
2680
2681
|
]),
|
|
2681
2682
|
_: 3
|
|
2682
2683
|
}, 16, ["modelValue"])
|
|
2683
|
-
])) :
|
|
2684
|
-
vt(G(
|
|
2684
|
+
])) : ve("", !0),
|
|
2685
|
+
vt(G(Ye, {
|
|
2685
2686
|
modelValue: e.value,
|
|
2686
|
-
"onUpdate:modelValue": a[11] || (a[11] = (
|
|
2687
|
-
onSubmit:
|
|
2687
|
+
"onUpdate:modelValue": a[11] || (a[11] = (j) => e.value = j),
|
|
2688
|
+
onSubmit: O,
|
|
2688
2689
|
onReset: Z
|
|
2689
2690
|
}, null, 8, ["modelValue"]), [
|
|
2690
2691
|
[yt, !1]
|
|
@@ -2692,7 +2693,7 @@ const ol = {
|
|
|
2692
2693
|
], 64);
|
|
2693
2694
|
};
|
|
2694
2695
|
}
|
|
2695
|
-
}), El = /* @__PURE__ */ Be($l, [["__scopeId", "data-v-
|
|
2696
|
+
}), El = /* @__PURE__ */ Be($l, [["__scopeId", "data-v-8d9ce1e0"]]), wl = { class: "g-tree-table" }, kl = { class: "g-tree-container" }, _l = { class: "g-tree-table-container" }, Cl = /* @__PURE__ */ Object.assign({
|
|
2696
2697
|
name: "g-tree-table",
|
|
2697
2698
|
inheritAttrs: !1
|
|
2698
2699
|
}, {
|
|
@@ -2701,14 +2702,14 @@ const ol = {
|
|
|
2701
2702
|
modelValue: { required: !0 },
|
|
2702
2703
|
modelModifiers: {}
|
|
2703
2704
|
},
|
|
2704
|
-
emits: /* @__PURE__ */
|
|
2705
|
+
emits: /* @__PURE__ */ Oe(["load"], ["update:modelValue"]),
|
|
2705
2706
|
setup(c, { emit: f }) {
|
|
2706
|
-
const t = f, e =
|
|
2707
|
-
var ae,
|
|
2707
|
+
const t = f, e = xe(c, "modelValue"), r = rt(), v = ye((r == null ? void 0 : r.width) || "180px"), V = ye((r == null ? void 0 : r.search) === void 0 ? !0 : r == null ? void 0 : r.search), T = ye({}), M = ye(""), w = ye(null), k = (E, u) => {
|
|
2708
|
+
var ae, ee;
|
|
2708
2709
|
if (!E) return !0;
|
|
2709
|
-
const
|
|
2710
|
-
return u[
|
|
2711
|
-
},
|
|
2710
|
+
const N = ((ee = (ae = r.tree) == null ? void 0 : ae.props) == null ? void 0 : ee.label) || "label";
|
|
2711
|
+
return u[N].includes(E);
|
|
2712
|
+
}, z = (E, u) => {
|
|
2712
2713
|
t("load", T.value, E, u);
|
|
2713
2714
|
}, se = (E) => {
|
|
2714
2715
|
T.value = E, e.value.table.load();
|
|
@@ -2716,22 +2717,22 @@ const ol = {
|
|
|
2716
2717
|
return mt(M, (E) => {
|
|
2717
2718
|
w.value.filter(E);
|
|
2718
2719
|
}), (E, u) => {
|
|
2719
|
-
const
|
|
2720
|
+
const N = R("el-input"), ae = R("el-tree"), ee = R("g-table");
|
|
2720
2721
|
return s(), A("div", wl, [
|
|
2721
2722
|
Q("div", {
|
|
2722
2723
|
class: "g-tree-left",
|
|
2723
2724
|
style: Te({ width: v.value })
|
|
2724
2725
|
}, [
|
|
2725
|
-
V.value ? (s(), S(
|
|
2726
|
+
V.value ? (s(), S(N, {
|
|
2726
2727
|
key: 0,
|
|
2727
2728
|
modelValue: M.value,
|
|
2728
2729
|
"onUpdate:modelValue": u[0] || (u[0] = (J) => M.value = J),
|
|
2729
2730
|
style: { width: "100%", padding: "0 10px", "box-sizing": "border-box" },
|
|
2730
2731
|
placeholder: "输入节点查询",
|
|
2731
2732
|
clearable: ""
|
|
2732
|
-
}, null, 8, ["modelValue"])) :
|
|
2733
|
+
}, null, 8, ["modelValue"])) : ve("", !0),
|
|
2733
2734
|
Q("div", kl, [
|
|
2734
|
-
G(ae,
|
|
2735
|
+
G(ae, x({
|
|
2735
2736
|
style: { width: v.value },
|
|
2736
2737
|
"filter-node-method": k,
|
|
2737
2738
|
"expand-on-click-node": !1,
|
|
@@ -2739,7 +2740,7 @@ const ol = {
|
|
|
2739
2740
|
ref: w,
|
|
2740
2741
|
onNodeClick: se
|
|
2741
2742
|
}, E.$attrs.tree), de({
|
|
2742
|
-
default:
|
|
2743
|
+
default: b(({ node: J, data: ne }) => [
|
|
2743
2744
|
p(E.$slots, "tree", {
|
|
2744
2745
|
node: J,
|
|
2745
2746
|
data: ne
|
|
@@ -2749,9 +2750,9 @@ const ol = {
|
|
|
2749
2750
|
]),
|
|
2750
2751
|
_: 2
|
|
2751
2752
|
}, [
|
|
2752
|
-
I(E.$slots, (J, ne,
|
|
2753
|
+
I(E.$slots, (J, ne, he) => ({
|
|
2753
2754
|
name: ne,
|
|
2754
|
-
fn:
|
|
2755
|
+
fn: b((fe) => [
|
|
2755
2756
|
p(E.$slots, ne, { data: fe }, void 0, !0)
|
|
2756
2757
|
])
|
|
2757
2758
|
}))
|
|
@@ -2759,13 +2760,13 @@ const ol = {
|
|
|
2759
2760
|
])
|
|
2760
2761
|
], 4),
|
|
2761
2762
|
Q("div", _l, [
|
|
2762
|
-
G(
|
|
2763
|
+
G(ee, x({
|
|
2763
2764
|
modelValue: e.value,
|
|
2764
2765
|
"onUpdate:modelValue": u[1] || (u[1] = (J) => e.value = J)
|
|
2765
|
-
}, E.$attrs, { onLoad:
|
|
2766
|
-
I(E.$slots, (J, ne,
|
|
2766
|
+
}, E.$attrs, { onLoad: z }), de({ _: 2 }, [
|
|
2767
|
+
I(E.$slots, (J, ne, he) => ({
|
|
2767
2768
|
name: ne,
|
|
2768
|
-
fn:
|
|
2769
|
+
fn: b((fe) => [
|
|
2769
2770
|
p(E.$slots, ne, { data: fe }, void 0, !0)
|
|
2770
2771
|
])
|
|
2771
2772
|
}))
|
|
@@ -2804,7 +2805,7 @@ const ol = {
|
|
|
2804
2805
|
key: r.key
|
|
2805
2806
|
}, [
|
|
2806
2807
|
p(t.$slots, r.key + "-title", { col: r }, () => [
|
|
2807
|
-
|
|
2808
|
+
$e(me(r.label), 1)
|
|
2808
2809
|
], !0)
|
|
2809
2810
|
], 4))), 128))
|
|
2810
2811
|
])) : (s(), A("div", Fl, [
|
|
@@ -2813,20 +2814,20 @@ const ol = {
|
|
|
2813
2814
|
key: r.key
|
|
2814
2815
|
}, [
|
|
2815
2816
|
p(t.$slots, r.key, { col: r }, () => [
|
|
2816
|
-
|
|
2817
|
+
$e(me(c.data.option[r.key]), 1)
|
|
2817
2818
|
], !0)
|
|
2818
2819
|
], 4))), 128))
|
|
2819
2820
|
]));
|
|
2820
2821
|
}
|
|
2821
|
-
}), Ml = /* @__PURE__ */ Be(Tl, [["__scopeId", "data-v-422d5210"]]), ql = Object.freeze({}), $t = [El,
|
|
2822
|
-
let
|
|
2822
|
+
}), Ml = /* @__PURE__ */ Be(Tl, [["__scopeId", "data-v-422d5210"]]), ql = Object.freeze({}), $t = [El, Ye, Dl, Ml];
|
|
2823
|
+
let et = {};
|
|
2823
2824
|
const jl = {
|
|
2824
2825
|
install: (c, f = {}) => {
|
|
2825
|
-
|
|
2826
|
+
et = Object.freeze({ ...ql, ...f }), $t.forEach((t) => {
|
|
2826
2827
|
c.component(t.name, t);
|
|
2827
|
-
}), c.provide("options",
|
|
2828
|
+
}), c.provide("options", et), c.config.globalProperties.$openModal = tt;
|
|
2828
2829
|
}
|
|
2829
|
-
}, Sl = (c) => ({ dialog: kt, drawer: _t })[c] || null,
|
|
2830
|
+
}, Sl = (c) => ({ dialog: kt, drawer: _t })[c] || null, tt = (c = {}, f = "dialog") => {
|
|
2830
2831
|
if (typeof document > "u") return () => {
|
|
2831
2832
|
};
|
|
2832
2833
|
const t = document.createElement("div");
|
|
@@ -2835,7 +2836,7 @@ const jl = {
|
|
|
2835
2836
|
const r = Sl(f);
|
|
2836
2837
|
if (!r) return () => {
|
|
2837
2838
|
};
|
|
2838
|
-
const v =
|
|
2839
|
+
const v = ye(!0), V = Mt({
|
|
2839
2840
|
setup() {
|
|
2840
2841
|
return e = () => {
|
|
2841
2842
|
v.value = !1, setTimeout(() => {
|
|
@@ -2859,7 +2860,7 @@ const jl = {
|
|
|
2859
2860
|
});
|
|
2860
2861
|
return $t.forEach((T) => {
|
|
2861
2862
|
V.component(T.name, T);
|
|
2862
|
-
}), V.provide("options",
|
|
2863
|
+
}), V.provide("options", et), V.use(wt, { locale: xt }), document.body.appendChild(t), V.mount(t), e;
|
|
2863
2864
|
};
|
|
2864
2865
|
function Et(c, f = window.innerWidth) {
|
|
2865
2866
|
if (typeof c == "number")
|
|
@@ -2887,7 +2888,7 @@ function Et(c, f = window.innerWidth) {
|
|
|
2887
2888
|
}
|
|
2888
2889
|
throw new Error("Unsupported unit in value: " + c);
|
|
2889
2890
|
}
|
|
2890
|
-
const
|
|
2891
|
+
const we = (...c) => {
|
|
2891
2892
|
const f = {}, t = (e, r) => (Object.keys(r).forEach((v) => {
|
|
2892
2893
|
e[v] = typeof r[v] == "object" && !Array.isArray(r[v]) ? t(e[v] || {}, r[v]) : r[v];
|
|
2893
2894
|
}), e);
|
|
@@ -2899,19 +2900,19 @@ function _e(c, f = (t, e) => f(t, e)) {
|
|
|
2899
2900
|
c.hasOwnProperty(e) && f(e, c[e]) && (t[e] = c[e]);
|
|
2900
2901
|
return t;
|
|
2901
2902
|
}
|
|
2902
|
-
function
|
|
2903
|
+
function Ol(c, f, t = "value", e = "label", r = "children") {
|
|
2903
2904
|
for (const v of c) {
|
|
2904
2905
|
if (v[t] === f)
|
|
2905
2906
|
return v[e];
|
|
2906
2907
|
if (v[r] && v[r].length > 0) {
|
|
2907
|
-
const V =
|
|
2908
|
+
const V = Ol(v[r], f, t, e, r);
|
|
2908
2909
|
if (V)
|
|
2909
2910
|
return V;
|
|
2910
2911
|
}
|
|
2911
2912
|
}
|
|
2912
2913
|
return null;
|
|
2913
2914
|
}
|
|
2914
|
-
function
|
|
2915
|
+
function lt(c) {
|
|
2915
2916
|
if (!c || isNaN(c)) return "零";
|
|
2916
2917
|
const f = ["角", "分"], t = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], e = [
|
|
2917
2918
|
["元", "万", "亿"],
|
|
@@ -2930,7 +2931,7 @@ function tt(c) {
|
|
|
2930
2931
|
}
|
|
2931
2932
|
return r + v.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
2932
2933
|
}
|
|
2933
|
-
function
|
|
2934
|
+
function xl(c) {
|
|
2934
2935
|
if (typeof c != "number")
|
|
2935
2936
|
return "0.00";
|
|
2936
2937
|
const f = c.toFixed(2), [t, e] = f.split(".");
|
|
@@ -2970,9 +2971,9 @@ export {
|
|
|
2970
2971
|
Et as convertToPx,
|
|
2971
2972
|
jl as default,
|
|
2972
2973
|
_e as filterObject,
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2974
|
+
Ol as findTreeLabelByValue,
|
|
2975
|
+
xl as formatAmount,
|
|
2976
|
+
we as mergeObjects,
|
|
2977
|
+
lt as moneyToChinese,
|
|
2978
|
+
tt as openModal
|
|
2978
2979
|
};
|