vue-2024-ui 0.2.16 → 0.2.18
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 +831 -829
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Qt, { ElForm as mt, ElButtonGroup as pt, ElButton as
|
|
2
|
-
import { h as
|
|
3
|
-
import { CircleCheck as It, CircleCheckFilled as il, Refresh as Ut, Plus as dl, ZoomIn as
|
|
1
|
+
import Qt, { ElForm as mt, ElButtonGroup as pt, ElButton as Oe, ElPopover as wt, ElMessage as Ge, ElMessageBox as At, ElDialog as Zt, ElDrawer as Jt } from "element-plus";
|
|
2
|
+
import { h as _e, mergeModels as Xe, useModel as Qe, ref as re, nextTick as at, onMounted as nt, computed as Ke, resolveComponent as L, openBlock as m, createElementBlock as Y, Fragment as Z, createElementVNode as X, createBlock as O, createCommentVNode as ge, unref as z, mergeProps as I, withCtx as D, renderSlot as S, renderList as W, createTextVNode as Ye, toDisplayString as De, createSlots as he, createVNode as K, normalizeStyle as qe, normalizeProps as _t, useSlots as Bt, inject as Tt, useAttrs as Ft, onUnmounted as Kt, withModifiers as yt, resolveDynamicComponent as We, guardReactiveProps as el, Transition as tl, withDirectives as ll, vShow as al, onBeforeUnmount as rl, normalizeClass as Ot, watchEffect as ol, onBeforeMount as nl, watch as ul, createApp as sl } from "vue";
|
|
3
|
+
import { CircleCheck as It, CircleCheckFilled as il, Refresh as Ut, Plus as dl, ZoomIn as cl, Delete as Yt, More as fl, Search as vl, Download as Rt, DocumentCopy as ml, View as pl, Edit as hl, CirclePlus as yl, Setting as gl, FullScreen as bl, CopyDocument as $l } from "@element-plus/icons-vue";
|
|
4
4
|
import Lt from "sortablejs";
|
|
5
5
|
import { Dexie as wl } from "dexie";
|
|
6
6
|
var El = {
|
|
@@ -189,47 +189,47 @@ var zt = { exports: {} };
|
|
|
189
189
|
(function(a, t) {
|
|
190
190
|
o.exports = t();
|
|
191
191
|
})(_l, function() {
|
|
192
|
-
var a = 1e3, t = 6e4, r = 36e5, e = "millisecond", p = "second",
|
|
192
|
+
var a = 1e3, t = 6e4, r = 36e5, e = "millisecond", p = "second", f = "minute", T = "hour", d = "day", v = "week", n = "month", c = "quarter", w = "year", A = "date", j = "Invalid Date", P = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, fe = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(_) {
|
|
193
193
|
var b = ["th", "st", "nd", "rd"], s = _ % 100;
|
|
194
194
|
return "[" + _ + (b[(s - 20) % 10] || b[s] || b[0]) + "]";
|
|
195
195
|
} }, ue = function(_, b, s) {
|
|
196
|
-
var
|
|
197
|
-
return !
|
|
198
|
-
},
|
|
199
|
-
var b = -_.utcOffset(), s = Math.abs(b),
|
|
200
|
-
return (b <= 0 ? "+" : "-") + ue(
|
|
196
|
+
var V = String(_);
|
|
197
|
+
return !V || V.length >= b ? _ : "" + Array(b + 1 - V.length).join(s) + _;
|
|
198
|
+
}, Ce = { s: ue, z: function(_) {
|
|
199
|
+
var b = -_.utcOffset(), s = Math.abs(b), V = Math.floor(s / 60), k = s % 60;
|
|
200
|
+
return (b <= 0 ? "+" : "-") + ue(V, 2, "0") + ":" + ue(k, 2, "0");
|
|
201
201
|
}, m: function _(b, s) {
|
|
202
202
|
if (b.date() < s.date()) return -_(s, b);
|
|
203
|
-
var
|
|
204
|
-
return +(-(
|
|
203
|
+
var V = 12 * (s.year() - b.year()) + (s.month() - b.month()), k = b.clone().add(V, n), C = s - k < 0, R = b.clone().add(V + (C ? -1 : 1), n);
|
|
204
|
+
return +(-(V + (s - k) / (C ? k - R : R - k)) || 0);
|
|
205
205
|
}, a: function(_) {
|
|
206
206
|
return _ < 0 ? Math.ceil(_) || 0 : Math.floor(_);
|
|
207
207
|
}, p: function(_) {
|
|
208
|
-
return { M: n, y: w, w: v, d
|
|
208
|
+
return { M: n, y: w, w: v, d, D: A, h: T, m: f, s: p, ms: e, Q: c }[_] || String(_ || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(_) {
|
|
210
210
|
return _ === void 0;
|
|
211
|
-
} },
|
|
212
|
-
ie[
|
|
211
|
+
} }, ce = "en", ie = {};
|
|
212
|
+
ie[ce] = fe;
|
|
213
213
|
var ye = "$isDayjsObject", Fe = function(_) {
|
|
214
214
|
return _ instanceof Ue || !(!_ || !_[ye]);
|
|
215
|
-
}, oe = function _(b, s,
|
|
215
|
+
}, oe = function _(b, s, V) {
|
|
216
216
|
var k;
|
|
217
|
-
if (!b) return
|
|
217
|
+
if (!b) return ce;
|
|
218
218
|
if (typeof b == "string") {
|
|
219
219
|
var C = b.toLowerCase();
|
|
220
220
|
ie[C] && (k = C), s && (ie[C] = s, k = C);
|
|
221
|
-
var
|
|
222
|
-
if (!k &&
|
|
221
|
+
var R = b.split("-");
|
|
222
|
+
if (!k && R.length > 1) return _(R[0]);
|
|
223
223
|
} else {
|
|
224
224
|
var Q = b.name;
|
|
225
225
|
ie[Q] = b, k = Q;
|
|
226
226
|
}
|
|
227
|
-
return !
|
|
227
|
+
return !V && k && (ce = k), k || !V && ce;
|
|
228
228
|
}, se = function(_, b) {
|
|
229
229
|
if (Fe(_)) return _.clone();
|
|
230
230
|
var s = typeof b == "object" ? b : {};
|
|
231
231
|
return s.date = _, s.args = arguments, new Ue(s);
|
|
232
|
-
}, ne =
|
|
232
|
+
}, ne = Ce;
|
|
233
233
|
ne.l = oe, ne.i = Fe, ne.w = function(_, b) {
|
|
234
234
|
return se(_, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
|
|
235
235
|
};
|
|
@@ -239,16 +239,16 @@ var zt = { exports: {} };
|
|
|
239
239
|
}
|
|
240
240
|
var b = _.prototype;
|
|
241
241
|
return b.parse = function(s) {
|
|
242
|
-
this.$d = function(
|
|
243
|
-
var k =
|
|
242
|
+
this.$d = function(V) {
|
|
243
|
+
var k = V.date, C = V.utc;
|
|
244
244
|
if (k === null) return /* @__PURE__ */ new Date(NaN);
|
|
245
245
|
if (ne.u(k)) return /* @__PURE__ */ new Date();
|
|
246
246
|
if (k instanceof Date) return new Date(k);
|
|
247
247
|
if (typeof k == "string" && !/Z$/i.test(k)) {
|
|
248
|
-
var
|
|
249
|
-
if (
|
|
250
|
-
var Q =
|
|
251
|
-
return C ? new Date(Date.UTC(
|
|
248
|
+
var R = k.match(P);
|
|
249
|
+
if (R) {
|
|
250
|
+
var Q = R[2] - 1 || 0, te = (R[7] || "0").substring(0, 3);
|
|
251
|
+
return C ? new Date(Date.UTC(R[1], Q, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, te)) : new Date(R[1], Q, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, te);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
return new Date(k);
|
|
@@ -260,27 +260,27 @@ var zt = { exports: {} };
|
|
|
260
260
|
return ne;
|
|
261
261
|
}, b.isValid = function() {
|
|
262
262
|
return this.$d.toString() !== j;
|
|
263
|
-
}, b.isSame = function(s,
|
|
263
|
+
}, b.isSame = function(s, V) {
|
|
264
264
|
var k = se(s);
|
|
265
|
-
return this.startOf(
|
|
266
|
-
}, b.isAfter = function(s,
|
|
267
|
-
return se(s) < this.startOf(
|
|
268
|
-
}, b.isBefore = function(s,
|
|
269
|
-
return this.endOf(
|
|
270
|
-
}, b.$g = function(s,
|
|
271
|
-
return ne.u(s) ? this[
|
|
265
|
+
return this.startOf(V) <= k && k <= this.endOf(V);
|
|
266
|
+
}, b.isAfter = function(s, V) {
|
|
267
|
+
return se(s) < this.startOf(V);
|
|
268
|
+
}, b.isBefore = function(s, V) {
|
|
269
|
+
return this.endOf(V) < se(s);
|
|
270
|
+
}, b.$g = function(s, V, k) {
|
|
271
|
+
return ne.u(s) ? this[V] : this.set(k, s);
|
|
272
272
|
}, b.unix = function() {
|
|
273
273
|
return Math.floor(this.valueOf() / 1e3);
|
|
274
274
|
}, b.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
|
-
}, b.startOf = function(s,
|
|
277
|
-
var k = this, C = !!ne.u(
|
|
276
|
+
}, b.startOf = function(s, V) {
|
|
277
|
+
var k = this, C = !!ne.u(V) || V, R = ne.p(s), Q = function($e, we) {
|
|
278
278
|
var Ee = ne.w(k.$u ? Date.UTC(k.$y, we, $e) : new Date(k.$y, we, $e), k);
|
|
279
|
-
return C ? Ee : Ee.endOf(
|
|
279
|
+
return C ? Ee : Ee.endOf(d);
|
|
280
280
|
}, te = function($e, we) {
|
|
281
281
|
return ne.w(k.toDate()[$e].apply(k.toDate("s"), (C ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(we)), k);
|
|
282
282
|
}, ee = this.$W, E = this.$M, g = this.$D, le = "set" + (this.$u ? "UTC" : "");
|
|
283
|
-
switch (
|
|
283
|
+
switch (R) {
|
|
284
284
|
case w:
|
|
285
285
|
return C ? Q(1, 0) : Q(31, 11);
|
|
286
286
|
case n:
|
|
@@ -288,12 +288,12 @@ var zt = { exports: {} };
|
|
|
288
288
|
case v:
|
|
289
289
|
var be = this.$locale().weekStart || 0, pe = (ee < be ? ee + 7 : ee) - be;
|
|
290
290
|
return Q(C ? g - pe : g + (6 - pe), E);
|
|
291
|
-
case
|
|
292
|
-
case
|
|
291
|
+
case d:
|
|
292
|
+
case A:
|
|
293
293
|
return te(le + "Hours", 0);
|
|
294
294
|
case T:
|
|
295
295
|
return te(le + "Minutes", 1);
|
|
296
|
-
case
|
|
296
|
+
case f:
|
|
297
297
|
return te(le + "Seconds", 2);
|
|
298
298
|
case p:
|
|
299
299
|
return te(le + "Milliseconds", 3);
|
|
@@ -302,50 +302,50 @@ var zt = { exports: {} };
|
|
|
302
302
|
}
|
|
303
303
|
}, b.endOf = function(s) {
|
|
304
304
|
return this.startOf(s, !1);
|
|
305
|
-
}, b.$set = function(s,
|
|
306
|
-
var k, C = ne.p(s),
|
|
305
|
+
}, b.$set = function(s, V) {
|
|
306
|
+
var k, C = ne.p(s), R = "set" + (this.$u ? "UTC" : ""), Q = (k = {}, k[d] = R + "Date", k[A] = R + "Date", k[n] = R + "Month", k[w] = R + "FullYear", k[T] = R + "Hours", k[f] = R + "Minutes", k[p] = R + "Seconds", k[e] = R + "Milliseconds", k)[C], te = C === d ? this.$D + (V - this.$W) : V;
|
|
307
307
|
if (C === n || C === w) {
|
|
308
|
-
var ee = this.clone().set(
|
|
309
|
-
ee.$d[Q](te), ee.init(), this.$d = ee.set(
|
|
308
|
+
var ee = this.clone().set(A, 1);
|
|
309
|
+
ee.$d[Q](te), ee.init(), this.$d = ee.set(A, Math.min(this.$D, ee.daysInMonth())).$d;
|
|
310
310
|
} else Q && this.$d[Q](te);
|
|
311
311
|
return this.init(), this;
|
|
312
|
-
}, b.set = function(s,
|
|
313
|
-
return this.clone().$set(s,
|
|
312
|
+
}, b.set = function(s, V) {
|
|
313
|
+
return this.clone().$set(s, V);
|
|
314
314
|
}, b.get = function(s) {
|
|
315
315
|
return this[ne.p(s)]();
|
|
316
|
-
}, b.add = function(s,
|
|
316
|
+
}, b.add = function(s, V) {
|
|
317
317
|
var k, C = this;
|
|
318
318
|
s = Number(s);
|
|
319
|
-
var
|
|
319
|
+
var R = ne.p(V), Q = function(E) {
|
|
320
320
|
var g = se(C);
|
|
321
321
|
return ne.w(g.date(g.date() + Math.round(E * s)), C);
|
|
322
322
|
};
|
|
323
|
-
if (
|
|
324
|
-
if (
|
|
325
|
-
if (
|
|
326
|
-
if (
|
|
327
|
-
var te = (k = {}, k[
|
|
323
|
+
if (R === n) return this.set(n, this.$M + s);
|
|
324
|
+
if (R === w) return this.set(w, this.$y + s);
|
|
325
|
+
if (R === d) return Q(1);
|
|
326
|
+
if (R === v) return Q(7);
|
|
327
|
+
var te = (k = {}, k[f] = t, k[T] = r, k[p] = a, k)[R] || 1, ee = this.$d.getTime() + s * te;
|
|
328
328
|
return ne.w(ee, this);
|
|
329
|
-
}, b.subtract = function(s,
|
|
330
|
-
return this.add(-1 * s,
|
|
329
|
+
}, b.subtract = function(s, V) {
|
|
330
|
+
return this.add(-1 * s, V);
|
|
331
331
|
}, b.format = function(s) {
|
|
332
|
-
var
|
|
332
|
+
var V = this, k = this.$locale();
|
|
333
333
|
if (!this.isValid()) return k.invalidDate || j;
|
|
334
|
-
var C = s || "YYYY-MM-DDTHH:mm:ssZ",
|
|
335
|
-
return we && (we[Ee] || we(
|
|
334
|
+
var C = s || "YYYY-MM-DDTHH:mm:ssZ", R = ne.z(this), Q = this.$H, te = this.$m, ee = this.$M, E = k.weekdays, g = k.months, le = k.meridiem, be = function(we, Ee, xe, Te) {
|
|
335
|
+
return we && (we[Ee] || we(V, C)) || xe[Ee].slice(0, Te);
|
|
336
336
|
}, pe = function(we) {
|
|
337
337
|
return ne.s(Q % 12 || 12, we, "0");
|
|
338
338
|
}, $e = le || function(we, Ee, xe) {
|
|
339
339
|
var Te = we < 12 ? "AM" : "PM";
|
|
340
340
|
return xe ? Te.toLowerCase() : Te;
|
|
341
341
|
};
|
|
342
|
-
return C.replace(
|
|
342
|
+
return C.replace(B, function(we, Ee) {
|
|
343
343
|
return Ee || function(xe) {
|
|
344
344
|
switch (xe) {
|
|
345
345
|
case "YY":
|
|
346
|
-
return String(
|
|
346
|
+
return String(V.$y).slice(-2);
|
|
347
347
|
case "YYYY":
|
|
348
|
-
return ne.s(
|
|
348
|
+
return ne.s(V.$y, 4, "0");
|
|
349
349
|
case "M":
|
|
350
350
|
return ee + 1;
|
|
351
351
|
case "MM":
|
|
@@ -355,17 +355,17 @@ var zt = { exports: {} };
|
|
|
355
355
|
case "MMMM":
|
|
356
356
|
return be(g, ee);
|
|
357
357
|
case "D":
|
|
358
|
-
return
|
|
358
|
+
return V.$D;
|
|
359
359
|
case "DD":
|
|
360
|
-
return ne.s(
|
|
360
|
+
return ne.s(V.$D, 2, "0");
|
|
361
361
|
case "d":
|
|
362
|
-
return String(
|
|
362
|
+
return String(V.$W);
|
|
363
363
|
case "dd":
|
|
364
|
-
return be(k.weekdaysMin,
|
|
364
|
+
return be(k.weekdaysMin, V.$W, E, 2);
|
|
365
365
|
case "ddd":
|
|
366
|
-
return be(k.weekdaysShort,
|
|
366
|
+
return be(k.weekdaysShort, V.$W, E, 3);
|
|
367
367
|
case "dddd":
|
|
368
|
-
return E[
|
|
368
|
+
return E[V.$W];
|
|
369
369
|
case "H":
|
|
370
370
|
return String(Q);
|
|
371
371
|
case "HH":
|
|
@@ -383,22 +383,22 @@ var zt = { exports: {} };
|
|
|
383
383
|
case "mm":
|
|
384
384
|
return ne.s(te, 2, "0");
|
|
385
385
|
case "s":
|
|
386
|
-
return String(
|
|
386
|
+
return String(V.$s);
|
|
387
387
|
case "ss":
|
|
388
|
-
return ne.s(
|
|
388
|
+
return ne.s(V.$s, 2, "0");
|
|
389
389
|
case "SSS":
|
|
390
|
-
return ne.s(
|
|
390
|
+
return ne.s(V.$ms, 3, "0");
|
|
391
391
|
case "Z":
|
|
392
|
-
return
|
|
392
|
+
return R;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
|
-
}(we) ||
|
|
395
|
+
}(we) || R.replace(":", "");
|
|
396
396
|
});
|
|
397
397
|
}, b.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
|
-
}, b.diff = function(s,
|
|
400
|
-
var C,
|
|
401
|
-
return ne.m(
|
|
399
|
+
}, b.diff = function(s, V, k) {
|
|
400
|
+
var C, R = this, Q = ne.p(V), te = se(s), ee = (te.utcOffset() - this.utcOffset()) * t, E = this - te, g = function() {
|
|
401
|
+
return ne.m(R, te);
|
|
402
402
|
};
|
|
403
403
|
switch (Q) {
|
|
404
404
|
case w:
|
|
@@ -407,19 +407,19 @@ var zt = { exports: {} };
|
|
|
407
407
|
case n:
|
|
408
408
|
C = g();
|
|
409
409
|
break;
|
|
410
|
-
case
|
|
410
|
+
case c:
|
|
411
411
|
C = g() / 3;
|
|
412
412
|
break;
|
|
413
413
|
case v:
|
|
414
414
|
C = (E - ee) / 6048e5;
|
|
415
415
|
break;
|
|
416
|
-
case
|
|
416
|
+
case d:
|
|
417
417
|
C = (E - ee) / 864e5;
|
|
418
418
|
break;
|
|
419
419
|
case T:
|
|
420
420
|
C = E / r;
|
|
421
421
|
break;
|
|
422
|
-
case
|
|
422
|
+
case f:
|
|
423
423
|
C = E / t;
|
|
424
424
|
break;
|
|
425
425
|
case p:
|
|
@@ -433,9 +433,9 @@ var zt = { exports: {} };
|
|
|
433
433
|
return this.endOf(n).$D;
|
|
434
434
|
}, b.$locale = function() {
|
|
435
435
|
return ie[this.$L];
|
|
436
|
-
}, b.locale = function(s,
|
|
436
|
+
}, b.locale = function(s, V) {
|
|
437
437
|
if (!s) return this.$L;
|
|
438
|
-
var k = this.clone(), C = oe(s,
|
|
438
|
+
var k = this.clone(), C = oe(s, V, !0);
|
|
439
439
|
return C && (k.$L = C), k;
|
|
440
440
|
}, b.clone = function() {
|
|
441
441
|
return ne.w(this.$d, this);
|
|
@@ -449,7 +449,7 @@ var zt = { exports: {} };
|
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, _;
|
|
451
451
|
}(), M = Ue.prototype;
|
|
452
|
-
return se.prototype = M, [["$ms", e], ["$s", p], ["$m",
|
|
452
|
+
return se.prototype = M, [["$ms", e], ["$s", p], ["$m", f], ["$H", T], ["$W", d], ["$M", n], ["$y", w], ["$D", A]].forEach(function(_) {
|
|
453
453
|
M[_[1]] = function(b) {
|
|
454
454
|
return this.$g(b, _[0], _[1]);
|
|
455
455
|
};
|
|
@@ -457,7 +457,7 @@ var zt = { exports: {} };
|
|
|
457
457
|
return _.$i || (_(b, Ue, se), _.$i = !0), se;
|
|
458
458
|
}, se.locale = oe, se.isDayjs = Fe, se.unix = function(_) {
|
|
459
459
|
return se(1e3 * _);
|
|
460
|
-
}, se.en = ie[
|
|
460
|
+
}, se.en = ie[ce], se.Ls = ie, se.p = {}, se;
|
|
461
461
|
});
|
|
462
462
|
})(zt);
|
|
463
463
|
var kl = zt.exports;
|
|
@@ -490,7 +490,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
490
490
|
label: "提交",
|
|
491
491
|
plain: !0,
|
|
492
492
|
hidden: !1,
|
|
493
|
-
icon: () =>
|
|
493
|
+
icon: () => _e(It)
|
|
494
494
|
},
|
|
495
495
|
//保存并提交按钮属性
|
|
496
496
|
saveSubmit: {
|
|
@@ -499,7 +499,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
499
499
|
label: "保存提交",
|
|
500
500
|
plain: !0,
|
|
501
501
|
hidden: !0,
|
|
502
|
-
icon: () =>
|
|
502
|
+
icon: () => _e(il)
|
|
503
503
|
},
|
|
504
504
|
//表单重置按钮属性
|
|
505
505
|
reset: {
|
|
@@ -507,7 +507,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
507
507
|
label: "重置",
|
|
508
508
|
hidden: !1,
|
|
509
509
|
plain: !0,
|
|
510
|
-
icon: () =>
|
|
510
|
+
icon: () => _e(Ut)
|
|
511
511
|
},
|
|
512
512
|
slots: {},
|
|
513
513
|
tabs: {
|
|
@@ -530,12 +530,12 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
530
530
|
}),
|
|
531
531
|
emits: ["update:modelValue"],
|
|
532
532
|
setup(o) {
|
|
533
|
-
var Ue, M, _, b, s,
|
|
534
|
-
const u = Qe(o, "modelValue"), a = o, t = re(a.item || {}), r = re(a.ctrlKey), e = re(a.ctrlType), p = re(a.model),
|
|
535
|
-
!((Ue = e.value) != null && Ue.startsWith("text")) && !((M = e.value) != null && M.startsWith("link")) && !((_ = e.value) != null && _.startsWith("tag")) && !((b = e.value) != null && b.startsWith("div")) && !((s = e.value) != null && s.startsWith("span")) && !((
|
|
536
|
-
const n = re({ display: "flex", flex: 1 }),
|
|
537
|
-
n.value = { ...n.value, justifyContent:
|
|
538
|
-
const
|
|
533
|
+
var Ue, M, _, b, s, V, k, C, R, Q, te, ee;
|
|
534
|
+
const u = Qe(o, "modelValue"), a = o, t = re(a.item || {}), r = re(a.ctrlKey), e = re(a.ctrlType), p = re(a.model), f = re([]), T = re([]), d = re(!1), v = re(!1);
|
|
535
|
+
!((Ue = e.value) != null && Ue.startsWith("text")) && !((M = e.value) != null && M.startsWith("link")) && !((_ = e.value) != null && _.startsWith("tag")) && !((b = e.value) != null && b.startsWith("div")) && !((s = e.value) != null && s.startsWith("span")) && !((V = e.value) != null && V.startsWith("avatar")) && ((k = t.value) != null && k.style || (t.value.style = { width: ((R = (C = t.value) == null ? void 0 : C.style) == null ? void 0 : R.width) || "100%" }));
|
|
536
|
+
const n = re({ display: "flex", flex: 1 }), c = a.t === "t" ? "center" : "flex-start", w = ((Q = t.value) == null ? void 0 : Q.style) || {};
|
|
537
|
+
n.value = { ...n.value, justifyContent: c, ...w };
|
|
538
|
+
const A = () => {
|
|
539
539
|
const E = Bt(), g = Object.keys(E), le = `${a.t}-${r.value}-`;
|
|
540
540
|
return g.filter(($e) => $e.startsWith(le)).map(($e) => $e.replace(le, ""));
|
|
541
541
|
}, j = re({
|
|
@@ -543,7 +543,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
543
543
|
"show-file-list": !1,
|
|
544
544
|
"file-list": [],
|
|
545
545
|
showDel: (te = t.value) != null && te.showDel ? (ee = t.value) == null ? void 0 : ee.showDel : a.t !== "t"
|
|
546
|
-
}), P = re(t.value.innerHtml),
|
|
546
|
+
}), P = re(t.value.innerHtml), B = (E) => [
|
|
547
547
|
"year",
|
|
548
548
|
"years",
|
|
549
549
|
"month",
|
|
@@ -556,7 +556,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
556
556
|
"daterange",
|
|
557
557
|
"monthrange",
|
|
558
558
|
"yearrange"
|
|
559
|
-
].includes(E),
|
|
559
|
+
].includes(E), fe = (E) => ({
|
|
560
560
|
year: "YYYY",
|
|
561
561
|
years: "YYYY",
|
|
562
562
|
month: "YYYY-MM",
|
|
@@ -574,13 +574,13 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
574
574
|
filterable: !0,
|
|
575
575
|
remote: !!(t.value && t.value["remote-method"]),
|
|
576
576
|
...t.value
|
|
577
|
-
}),
|
|
577
|
+
}), Ce = re((E) => {
|
|
578
578
|
t.value["remote-method"](E, (g) => {
|
|
579
579
|
at(() => {
|
|
580
580
|
T.value = g;
|
|
581
581
|
});
|
|
582
582
|
});
|
|
583
|
-
}),
|
|
583
|
+
}), ce = async (E = "options") => {
|
|
584
584
|
var g;
|
|
585
585
|
try {
|
|
586
586
|
const le = await ((g = t.value) == null ? void 0 : g.getDicts(a.formInfo));
|
|
@@ -603,29 +603,29 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
603
603
|
}, ye = (E) => {
|
|
604
604
|
E.preventDefault(), E.stopPropagation(), u.value = "";
|
|
605
605
|
}, Fe = (E) => {
|
|
606
|
-
|
|
606
|
+
d.value = !0;
|
|
607
607
|
}, oe = (E) => {
|
|
608
|
-
E.preventDefault(), E.stopPropagation(),
|
|
608
|
+
E.preventDefault(), E.stopPropagation(), d.value = !0;
|
|
609
609
|
}, se = re(null);
|
|
610
610
|
nt(async () => {
|
|
611
611
|
var le, be, pe, $e, we;
|
|
612
|
-
t.value && t.value["remote-method"] && (ue.value["remote-method"] =
|
|
612
|
+
t.value && t.value["remote-method"] && (ue.value["remote-method"] = Ce), (be = (le = p.value[r.value]) == null ? void 0 : le.options) != null && be.length && (T.value = p.value[r.value].options);
|
|
613
613
|
const E = (Ee, xe = "options", Te = p.value[r.value]) => {
|
|
614
|
-
typeof t.value.getDicts == "function" &&
|
|
615
|
-
console.error(`Failed to load ${xe} for ${Ee}:`,
|
|
614
|
+
typeof t.value.getDicts == "function" && ce(xe).catch((Le) => {
|
|
615
|
+
console.error(`Failed to load ${xe} for ${Ee}:`, Le);
|
|
616
616
|
});
|
|
617
617
|
};
|
|
618
618
|
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(e.value) && E(e.value), e.value === Se.TREESELECT && await (async () => {
|
|
619
619
|
try {
|
|
620
|
-
typeof t.value.getDicts == "function" ?
|
|
620
|
+
typeof t.value.getDicts == "function" ? f.value = await t.value.getDicts(a.formInfo) : f.value = T.value;
|
|
621
621
|
} catch (xe) {
|
|
622
622
|
console.error("Failed to load data for tree-select:", xe);
|
|
623
623
|
}
|
|
624
624
|
})(), a.t == "q") {
|
|
625
625
|
let Ee = t.value.type || e.value;
|
|
626
626
|
(Ee === void 0 || e.value === "input" || Ee == Se.NUMBER || Ee == Se.EMAIL || Ee == "url" || Ee == "text") && t.value.onKeyup == null && (t.value.onKeyup = (xe) => {
|
|
627
|
-
var Te,
|
|
628
|
-
(xe.keyCode === 13 || xe.key === "Enter") && ((
|
|
627
|
+
var Te, Le;
|
|
628
|
+
(xe.keyCode === 13 || xe.key === "Enter") && ((Le = (Te = p.value) == null ? void 0 : Te.table) == null || Le.load());
|
|
629
629
|
}), [
|
|
630
630
|
"radio",
|
|
631
631
|
"switch",
|
|
@@ -643,8 +643,8 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
643
643
|
"datetimerange",
|
|
644
644
|
"week"
|
|
645
645
|
].includes(Ee) && t.value.onChange === void 0 && (t.value.onChange = (xe) => {
|
|
646
|
-
var Te,
|
|
647
|
-
(
|
|
646
|
+
var Te, Le;
|
|
647
|
+
(Le = (Te = p.value) == null ? void 0 : Te.table) == null || Le.load();
|
|
648
648
|
});
|
|
649
649
|
}
|
|
650
650
|
e.value == "image" && (t.value.width && ((pe = se.value) != null && pe.$el) && se.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && (($e = se.value) != null && $e.$el) && se.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((we = se.value) != null && we.$el) && se.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
|
|
@@ -654,19 +654,19 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
654
654
|
return t.value["file-list"] && t.value["file-list"].length ? (E = t.value["file-list"]) == null ? void 0 : E.map((g) => g == null ? void 0 : g.url) : [u.value];
|
|
655
655
|
});
|
|
656
656
|
return (E, g) => {
|
|
657
|
-
var rt, ot, H, de, F, G, ae, je, Ne,
|
|
658
|
-
const le = L("el-image-viewer"), be = L("el-radio"), pe = L("el-radio-group"), $e = L("el-radio-button"), we = L("el-checkbox"), Ee = L("el-checkbox-group"), xe = L("el-checkbox-button"), Te = L("g-select-option"),
|
|
659
|
-
return m(),
|
|
657
|
+
var rt, ot, H, de, F, G, ae, je, Ne, ze;
|
|
658
|
+
const le = L("el-image-viewer"), be = L("el-radio"), pe = L("el-radio-group"), $e = L("el-radio-button"), we = L("el-checkbox"), Ee = L("el-checkbox-group"), xe = L("el-checkbox-button"), Te = L("g-select-option"), Le = L("el-option"), ut = L("el-select"), st = L("el-tree-select"), it = L("el-time-picker"), dt = L("el-time-select"), ct = L("el-date-picker"), ft = L("el-color-picker"), vt = L("el-rate"), l = L("el-slider"), i = L("el-switch"), h = L("el-transfer"), $ = L("el-cascader"), x = L("el-icon"), U = L("el-image"), N = L("el-tooltip"), me = L("el-upload"), ke = L("el-autocomplete"), Ae = L("el-input-number"), Be = L("el-input"), Re = L("el-link"), He = L("el-text"), Je = L("el-avatar"), lt = L("el-tag");
|
|
659
|
+
return m(), Y(Z, null, [
|
|
660
660
|
X("div", null, [
|
|
661
|
-
|
|
661
|
+
d.value ? (m(), O(le, {
|
|
662
662
|
key: 0,
|
|
663
663
|
teleported: !0,
|
|
664
664
|
"url-list": ne.value,
|
|
665
|
-
onClose: g[0] || (g[0] = (y) =>
|
|
665
|
+
onClose: g[0] || (g[0] = (y) => d.value = !1)
|
|
666
666
|
}, null, 8, ["url-list"])) : ge("", !0)
|
|
667
667
|
]),
|
|
668
668
|
X("div", Cl, [
|
|
669
|
-
e.value == z(Se).RADIO ? (m(),
|
|
669
|
+
e.value == z(Se).RADIO ? (m(), O(pe, I({
|
|
670
670
|
key: 0,
|
|
671
671
|
modelValue: u.value,
|
|
672
672
|
"onUpdate:modelValue": g[1] || (g[1] = (y) => u.value = y),
|
|
@@ -674,7 +674,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
674
674
|
}, t.value), {
|
|
675
675
|
default: D(() => [
|
|
676
676
|
S(E.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
|
|
677
|
-
(m(!0),
|
|
677
|
+
(m(!0), Y(Z, null, W(T.value, (y) => (m(), O(be, I({ ref_for: !0 }, y), {
|
|
678
678
|
default: D(() => [
|
|
679
679
|
S(E.$slots, `${a.t}-${r.value}-options`, { option: y }, void 0, !0)
|
|
680
680
|
]),
|
|
@@ -683,7 +683,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
683
683
|
], !0)
|
|
684
684
|
]),
|
|
685
685
|
_: 3
|
|
686
|
-
}, 16, ["modelValue", "disabled"])) : e.value == z(Se).RADIOBUTTON ? (m(),
|
|
686
|
+
}, 16, ["modelValue", "disabled"])) : e.value == z(Se).RADIOBUTTON ? (m(), O(pe, I({
|
|
687
687
|
key: 1,
|
|
688
688
|
modelValue: u.value,
|
|
689
689
|
"onUpdate:modelValue": g[2] || (g[2] = (y) => u.value = y),
|
|
@@ -691,7 +691,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
691
691
|
}, t.value), {
|
|
692
692
|
default: D(() => [
|
|
693
693
|
S(E.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
|
|
694
|
-
(m(!0),
|
|
694
|
+
(m(!0), Y(Z, null, W(T.value, (y) => (m(), O($e, I({ ref_for: !0 }, y), {
|
|
695
695
|
default: D(() => [
|
|
696
696
|
S(E.$slots, `${a.t}-${r.value}-options`, { option: y }, void 0, !0)
|
|
697
697
|
]),
|
|
@@ -700,7 +700,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
700
700
|
], !0)
|
|
701
701
|
]),
|
|
702
702
|
_: 3
|
|
703
|
-
}, 16, ["modelValue", "disabled"])) : e.value == z(Se).CHECKBOX ? (m(),
|
|
703
|
+
}, 16, ["modelValue", "disabled"])) : e.value == z(Se).CHECKBOX ? (m(), O(we, I({
|
|
704
704
|
key: 2,
|
|
705
705
|
modelValue: u.value,
|
|
706
706
|
"onUpdate:modelValue": g[3] || (g[3] = (y) => u.value = y),
|
|
@@ -708,11 +708,11 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
708
708
|
}, t.value), {
|
|
709
709
|
default: D(() => [
|
|
710
710
|
S(E.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
|
|
711
|
-
g[27] || (g[27] =
|
|
711
|
+
g[27] || (g[27] = Ye(De(" ")))
|
|
712
712
|
], !0)
|
|
713
713
|
]),
|
|
714
714
|
_: 3
|
|
715
|
-
}, 16, ["modelValue", "disabled"])) : e.value == z(Se).CHECKBOXGROUP ? (m(),
|
|
715
|
+
}, 16, ["modelValue", "disabled"])) : e.value == z(Se).CHECKBOXGROUP ? (m(), O(Ee, I({
|
|
716
716
|
key: 3,
|
|
717
717
|
modelValue: u.value,
|
|
718
718
|
"onUpdate:modelValue": g[4] || (g[4] = (y) => u.value = y),
|
|
@@ -720,10 +720,10 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
720
720
|
}, t.value), {
|
|
721
721
|
default: D(() => [
|
|
722
722
|
S(E.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
|
|
723
|
-
(m(!0),
|
|
723
|
+
(m(!0), Y(Z, null, W(T.value, (y) => (m(), O(we, I({ ref_for: !0 }, y), {
|
|
724
724
|
default: D(() => [
|
|
725
725
|
S(E.$slots, `${a.t}-${r.value}-options`, { option: y }, () => [
|
|
726
|
-
|
|
726
|
+
Ye(De(y.label), 1)
|
|
727
727
|
], !0)
|
|
728
728
|
]),
|
|
729
729
|
_: 2
|
|
@@ -731,7 +731,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
731
731
|
], !0)
|
|
732
732
|
]),
|
|
733
733
|
_: 3
|
|
734
|
-
}, 16, ["modelValue", "disabled"])) : e.value == z(Se).CHECKBOXGROUPBUTTON ? (m(),
|
|
734
|
+
}, 16, ["modelValue", "disabled"])) : e.value == z(Se).CHECKBOXGROUPBUTTON ? (m(), O(Ee, I({
|
|
735
735
|
key: 4,
|
|
736
736
|
modelValue: u.value,
|
|
737
737
|
"onUpdate:modelValue": g[5] || (g[5] = (y) => u.value = y),
|
|
@@ -739,7 +739,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
739
739
|
}, t.value), {
|
|
740
740
|
default: D(() => [
|
|
741
741
|
S(E.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
|
|
742
|
-
(m(!0),
|
|
742
|
+
(m(!0), Y(Z, null, W(T.value, (y) => (m(), O(xe, I({ ref_for: !0 }, y), {
|
|
743
743
|
default: D(() => [
|
|
744
744
|
S(E.$slots, `${a.t}-${r.value}-options`, { option: y }, void 0, !0)
|
|
745
745
|
]),
|
|
@@ -748,7 +748,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
748
748
|
], !0)
|
|
749
749
|
]),
|
|
750
750
|
_: 3
|
|
751
|
-
}, 16, ["modelValue", "disabled"])) : e.value === z(Se).SELECT ? (m(),
|
|
751
|
+
}, 16, ["modelValue", "disabled"])) : e.value === z(Se).SELECT ? (m(), O(ut, I({
|
|
752
752
|
key: 5,
|
|
753
753
|
modelValue: u.value,
|
|
754
754
|
"onUpdate:modelValue": g[6] || (g[6] = (y) => u.value = y),
|
|
@@ -761,10 +761,10 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
761
761
|
}, ue.value), he({
|
|
762
762
|
default: D(() => [
|
|
763
763
|
S(E.$slots, `${a.t}-${r.value}`, { options: T.value }, () => [
|
|
764
|
-
(m(!0),
|
|
764
|
+
(m(!0), Y(Z, null, W(T.value, (y) => (m(), Y(Z, {
|
|
765
765
|
key: y.value
|
|
766
766
|
}, [
|
|
767
|
-
K(
|
|
767
|
+
K(Le, I({ ref_for: !0 }, z(Ie)(y, (J) => J != "children"), {
|
|
768
768
|
onClick: (J) => {
|
|
769
769
|
ue.value.change && ue.value.change(y), ie();
|
|
770
770
|
}
|
|
@@ -776,17 +776,17 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
776
776
|
key: 0,
|
|
777
777
|
option: y
|
|
778
778
|
}, () => {
|
|
779
|
-
var
|
|
779
|
+
var q;
|
|
780
780
|
return [
|
|
781
781
|
K(Te, {
|
|
782
|
-
columns: (
|
|
782
|
+
columns: (q = t.value) == null ? void 0 : q.columns,
|
|
783
783
|
data: y,
|
|
784
784
|
t: a.t
|
|
785
785
|
}, he({ _: 2 }, [
|
|
786
|
-
|
|
787
|
-
name:
|
|
786
|
+
W(E.$slots, (Me, Pe) => ({
|
|
787
|
+
name: Pe,
|
|
788
788
|
fn: D((tt) => [
|
|
789
|
-
S(E.$slots,
|
|
789
|
+
S(E.$slots, Pe, {
|
|
790
790
|
option: y,
|
|
791
791
|
data: tt,
|
|
792
792
|
form: o.formInfo
|
|
@@ -800,19 +800,19 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
800
800
|
}),
|
|
801
801
|
_: 2
|
|
802
802
|
}, 1040, ["onClick"]),
|
|
803
|
-
y.children && y.children.length ? (m(!0),
|
|
803
|
+
y.children && y.children.length ? (m(!0), Y(Z, { key: 0 }, W(y.children, (J) => (m(), O(Le, I({
|
|
804
804
|
style: { "margin-left": "20px" },
|
|
805
805
|
key: J.value,
|
|
806
806
|
ref_for: !0
|
|
807
|
-
}, z(Ie)(J, (
|
|
808
|
-
onClick: (
|
|
807
|
+
}, z(Ie)(J, (q) => q != "children"), {
|
|
808
|
+
onClick: (q) => {
|
|
809
809
|
ue.value.change && ue.value.change(J), ie();
|
|
810
810
|
}
|
|
811
811
|
}), {
|
|
812
812
|
default: D(() => {
|
|
813
|
-
var
|
|
813
|
+
var q;
|
|
814
814
|
return [
|
|
815
|
-
(
|
|
815
|
+
(q = t.value) != null && q.columns ? S(E.$slots, `${a.t}-${r.value}-options`, {
|
|
816
816
|
key: 0,
|
|
817
817
|
option: J
|
|
818
818
|
}, () => {
|
|
@@ -823,7 +823,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
823
823
|
data: J,
|
|
824
824
|
t: a.t
|
|
825
825
|
}, he({ _: 2 }, [
|
|
826
|
-
|
|
826
|
+
W(E.$slots, (Pe, tt) => ({
|
|
827
827
|
name: tt,
|
|
828
828
|
fn: D(($t) => [
|
|
829
829
|
S(E.$slots, tt, {
|
|
@@ -855,10 +855,10 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
855
855
|
title: !0,
|
|
856
856
|
t: a.t
|
|
857
857
|
}, he({ _: 2 }, [
|
|
858
|
-
|
|
859
|
-
name:
|
|
858
|
+
W(E.$slots, (J, q) => ({
|
|
859
|
+
name: q,
|
|
860
860
|
fn: D((Me) => [
|
|
861
|
-
S(E.$slots,
|
|
861
|
+
S(E.$slots, q, { data: Me }, void 0, !0)
|
|
862
862
|
])
|
|
863
863
|
}))
|
|
864
864
|
]), 1032, ["columns", "t"])
|
|
@@ -866,26 +866,26 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
866
866
|
}),
|
|
867
867
|
key: "0"
|
|
868
868
|
} : void 0,
|
|
869
|
-
|
|
869
|
+
W(A(), (y) => ({
|
|
870
870
|
name: y,
|
|
871
871
|
fn: D((J) => [
|
|
872
872
|
S(E.$slots, `${a.t}-${r.value}-${y}`, { form: o.formInfo }, void 0, !0)
|
|
873
873
|
])
|
|
874
874
|
}))
|
|
875
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == z(Se).TREESELECT ? (m(),
|
|
875
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == z(Se).TREESELECT ? (m(), O(st, I({
|
|
876
876
|
key: 6,
|
|
877
877
|
modelValue: u.value,
|
|
878
878
|
"onUpdate:modelValue": g[8] || (g[8] = (y) => u.value = y),
|
|
879
879
|
placeholder: p.value[r.value].label,
|
|
880
880
|
disabled: p.value[r.value].disabled
|
|
881
|
-
}, t.value, { data:
|
|
882
|
-
|
|
881
|
+
}, t.value, { data: f.value }), he({ _: 2 }, [
|
|
882
|
+
W(A(), (y) => ({
|
|
883
883
|
name: y,
|
|
884
884
|
fn: D((J) => [
|
|
885
885
|
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: J }, void 0, !0)
|
|
886
886
|
])
|
|
887
887
|
}))
|
|
888
|
-
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value == z(Se).TIME ? (m(),
|
|
888
|
+
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value == z(Se).TIME ? (m(), O(it, I({
|
|
889
889
|
key: 7,
|
|
890
890
|
modelValue: u.value,
|
|
891
891
|
"onUpdate:modelValue": g[9] || (g[9] = (y) => u.value = y),
|
|
@@ -893,7 +893,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
893
893
|
disabled: p.value[r.value].disabled
|
|
894
894
|
}, t.value, {
|
|
895
895
|
placeholder: p.value[r.value].label
|
|
896
|
-
}), null, 16, ["modelValue", "disabled", "placeholder"])) : e.value == z(Se).TIMESELECT ? (m(),
|
|
896
|
+
}), null, 16, ["modelValue", "disabled", "placeholder"])) : e.value == z(Se).TIMESELECT ? (m(), O(dt, I({
|
|
897
897
|
key: 8,
|
|
898
898
|
modelValue: u.value,
|
|
899
899
|
"onUpdate:modelValue": g[10] || (g[10] = (y) => u.value = y),
|
|
@@ -902,71 +902,71 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
902
902
|
end: "23:30",
|
|
903
903
|
placeholder: p.value[r.value].label,
|
|
904
904
|
disabled: p.value[r.value].disabled
|
|
905
|
-
}, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) :
|
|
905
|
+
}, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) : B(e.value) ? (m(), O(ct, I({
|
|
906
906
|
key: 9,
|
|
907
907
|
modelValue: u.value,
|
|
908
908
|
"onUpdate:modelValue": g[11] || (g[11] = (y) => u.value = y),
|
|
909
909
|
type: e.value,
|
|
910
910
|
placeholder: p.value[r.value].label,
|
|
911
|
-
"value-format":
|
|
911
|
+
"value-format": fe(e.value),
|
|
912
912
|
disabled: p.value[r.value].disabled
|
|
913
913
|
}, t.value), he({ _: 2 }, [
|
|
914
|
-
|
|
914
|
+
W(A(), (y) => ({
|
|
915
915
|
name: y,
|
|
916
916
|
fn: D((J) => [
|
|
917
917
|
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: J }, void 0, !0)
|
|
918
918
|
])
|
|
919
919
|
}))
|
|
920
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value == z(Se).COLOR ? (m(),
|
|
920
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value == z(Se).COLOR ? (m(), O(ft, I({
|
|
921
921
|
key: 10,
|
|
922
922
|
modelValue: u.value,
|
|
923
923
|
"onUpdate:modelValue": g[12] || (g[12] = (y) => u.value = y)
|
|
924
|
-
}, t.value), null, 16, ["modelValue"])) : e.value == z(Se).RATE ? (m(),
|
|
924
|
+
}, t.value), null, 16, ["modelValue"])) : e.value == z(Se).RATE ? (m(), O(vt, I({
|
|
925
925
|
key: 11,
|
|
926
926
|
modelValue: u.value,
|
|
927
927
|
"onUpdate:modelValue": g[13] || (g[13] = (y) => u.value = y),
|
|
928
928
|
disabled: p.value[r.value].disabled
|
|
929
|
-
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == z(Se).SLIDER ? (m(),
|
|
929
|
+
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == z(Se).SLIDER ? (m(), O(l, I({
|
|
930
930
|
key: 12,
|
|
931
931
|
modelValue: u.value,
|
|
932
932
|
"onUpdate:modelValue": g[14] || (g[14] = (y) => u.value = y),
|
|
933
933
|
disabled: p.value[r.value].disabled
|
|
934
|
-
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == z(Se).SWITCH ? (m(),
|
|
934
|
+
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == z(Se).SWITCH ? (m(), O(i, I({
|
|
935
935
|
key: 13,
|
|
936
936
|
modelValue: u.value,
|
|
937
937
|
"onUpdate:modelValue": g[15] || (g[15] = (y) => u.value = y),
|
|
938
938
|
inlinePrompt: !0,
|
|
939
939
|
disabled: p.value[r.value].disabled
|
|
940
940
|
}, t.value), he({ _: 2 }, [
|
|
941
|
-
|
|
941
|
+
W(A(), (y) => ({
|
|
942
942
|
name: y,
|
|
943
943
|
fn: D((J) => [
|
|
944
944
|
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: J }, void 0, !0)
|
|
945
945
|
])
|
|
946
946
|
}))
|
|
947
|
-
]), 1040, ["modelValue", "disabled"])) : e.value == z(Se).TRANSFER ? (m(),
|
|
947
|
+
]), 1040, ["modelValue", "disabled"])) : e.value == z(Se).TRANSFER ? (m(), O(h, I({
|
|
948
948
|
key: 14,
|
|
949
949
|
modelValue: u.value,
|
|
950
950
|
"onUpdate:modelValue": g[16] || (g[16] = (y) => u.value = y)
|
|
951
951
|
}, t.value), he({ _: 2 }, [
|
|
952
|
-
|
|
952
|
+
W(A(), (y) => ({
|
|
953
953
|
name: y,
|
|
954
954
|
fn: D((J) => [
|
|
955
955
|
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: J }, void 0, !0)
|
|
956
956
|
])
|
|
957
957
|
}))
|
|
958
|
-
]), 1040, ["modelValue"])) : e.value == z(Se).CASCADER ? (m(),
|
|
958
|
+
]), 1040, ["modelValue"])) : e.value == z(Se).CASCADER ? (m(), O($, I({
|
|
959
959
|
key: 15,
|
|
960
960
|
modelValue: u.value,
|
|
961
961
|
"onUpdate:modelValue": g[17] || (g[17] = (y) => u.value = y)
|
|
962
962
|
}, t.value, { options: T.value }), he({ _: 2 }, [
|
|
963
|
-
|
|
963
|
+
W(A(), (y) => ({
|
|
964
964
|
name: y,
|
|
965
965
|
fn: D((J) => [
|
|
966
966
|
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: J }, void 0, !0)
|
|
967
967
|
])
|
|
968
968
|
}))
|
|
969
|
-
]), 1040, ["modelValue", "options"])) : e.value == z(Se).IMAGE ? (m(),
|
|
969
|
+
]), 1040, ["modelValue", "options"])) : e.value == z(Se).IMAGE ? (m(), O(me, I({
|
|
970
970
|
key: 16,
|
|
971
971
|
"file-list": t.value["file-list"],
|
|
972
972
|
"onUpdate:fileList": g[21] || (g[21] = (y) => t.value["file-list"] = y),
|
|
@@ -980,17 +980,17 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
980
980
|
default: D(() => {
|
|
981
981
|
var y;
|
|
982
982
|
return [
|
|
983
|
-
u.value ? (m(),
|
|
983
|
+
u.value ? (m(), Y("div", {
|
|
984
984
|
key: 1,
|
|
985
985
|
onClick: g[20] || (g[20] = (J) => J.stopPropagation()),
|
|
986
986
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
987
987
|
}, [
|
|
988
988
|
X("div", Dl, [
|
|
989
|
-
K(
|
|
989
|
+
K(U, I({
|
|
990
990
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
991
991
|
src: u.value
|
|
992
992
|
}, { fit: "cover", lazy: !0, ...(y = t.value) == null ? void 0 : y.img }), he({ _: 2 }, [
|
|
993
|
-
|
|
993
|
+
W(A(), (J, q) => ({
|
|
994
994
|
name: J,
|
|
995
995
|
fn: D((Me) => [
|
|
996
996
|
S(E.$slots, `${a.t}-${r.value}-${J}`, { data: Me }, void 0, !0)
|
|
@@ -1004,13 +1004,13 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1004
1004
|
onMouseleave: g[19] || (g[19] = (J) => v.value = !1),
|
|
1005
1005
|
class: "up-view"
|
|
1006
1006
|
}, [
|
|
1007
|
-
v.value ? (m(),
|
|
1007
|
+
v.value ? (m(), O(N, {
|
|
1008
1008
|
key: 0,
|
|
1009
1009
|
content: "查看大图",
|
|
1010
1010
|
placement: "top"
|
|
1011
1011
|
}, {
|
|
1012
1012
|
default: D(() => [
|
|
1013
|
-
K(z(
|
|
1013
|
+
K(z(cl), {
|
|
1014
1014
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
1015
1015
|
color: "white",
|
|
1016
1016
|
onClick: oe
|
|
@@ -1018,7 +1018,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1018
1018
|
]),
|
|
1019
1019
|
_: 1
|
|
1020
1020
|
})) : ge("", !0),
|
|
1021
|
-
j.value.showDel && v.value ? (m(),
|
|
1021
|
+
j.value.showDel && v.value ? (m(), O(N, {
|
|
1022
1022
|
key: 1,
|
|
1023
1023
|
content: "删除",
|
|
1024
1024
|
placement: "top"
|
|
@@ -1033,7 +1033,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1033
1033
|
_: 1
|
|
1034
1034
|
})) : ge("", !0)
|
|
1035
1035
|
], 32)
|
|
1036
|
-
])) : (m(),
|
|
1036
|
+
])) : (m(), O(x, { key: 0 }, {
|
|
1037
1037
|
default: D(() => [
|
|
1038
1038
|
K(z(dl))
|
|
1039
1039
|
]),
|
|
@@ -1043,26 +1043,26 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1043
1043
|
}),
|
|
1044
1044
|
_: 2
|
|
1045
1045
|
}, [
|
|
1046
|
-
|
|
1046
|
+
W(A(), (y, J) => ({
|
|
1047
1047
|
name: y,
|
|
1048
|
-
fn: D((
|
|
1049
|
-
S(E.$slots, `${a.t}-${r.value}-${y}`, { data:
|
|
1048
|
+
fn: D((q) => [
|
|
1049
|
+
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: q }, void 0, !0)
|
|
1050
1050
|
])
|
|
1051
1051
|
}))
|
|
1052
|
-
]), 1040, ["file-list"])) : e.value == z(Se).AUTOCOMPLETE ? (m(),
|
|
1052
|
+
]), 1040, ["file-list"])) : e.value == z(Se).AUTOCOMPLETE ? (m(), O(ke, I({
|
|
1053
1053
|
key: 17,
|
|
1054
1054
|
modelValue: u.value,
|
|
1055
1055
|
"onUpdate:modelValue": g[22] || (g[22] = (y) => u.value = y)
|
|
1056
1056
|
}, t.value, {
|
|
1057
1057
|
placeholder: p.value[r.value].label
|
|
1058
1058
|
}), he({ _: 2 }, [
|
|
1059
|
-
|
|
1059
|
+
W(A(), (y, J) => ({
|
|
1060
1060
|
name: y,
|
|
1061
|
-
fn: D((
|
|
1062
|
-
S(E.$slots, `${a.t}-${r.value}-${y}`, { data:
|
|
1061
|
+
fn: D((q) => [
|
|
1062
|
+
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: q }, void 0, !0)
|
|
1063
1063
|
])
|
|
1064
1064
|
}))
|
|
1065
|
-
]), 1040, ["modelValue", "placeholder"])) : e.value == z(Se).INPUTNUMBER ? (m(),
|
|
1065
|
+
]), 1040, ["modelValue", "placeholder"])) : e.value == z(Se).INPUTNUMBER ? (m(), O(Ae, I({
|
|
1066
1066
|
key: 18,
|
|
1067
1067
|
modelValue: u.value,
|
|
1068
1068
|
"onUpdate:modelValue": g[23] || (g[23] = (y) => u.value = y),
|
|
@@ -1071,17 +1071,17 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1071
1071
|
placeholder: p.value[r.value].label,
|
|
1072
1072
|
disabled: p.value[r.value].disabled
|
|
1073
1073
|
}, t.value), he({ _: 2 }, [
|
|
1074
|
-
|
|
1074
|
+
W(A(), (y, J) => ({
|
|
1075
1075
|
name: y,
|
|
1076
|
-
fn: D((
|
|
1077
|
-
S(E.$slots, `${a.t}-${r.value}-${y}`, { data:
|
|
1076
|
+
fn: D((q) => [
|
|
1077
|
+
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: q }, void 0, !0)
|
|
1078
1078
|
])
|
|
1079
1079
|
}))
|
|
1080
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == z(Se).MONEY ? (m(),
|
|
1080
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == z(Se).MONEY ? (m(), Y("div", {
|
|
1081
1081
|
key: 19,
|
|
1082
|
-
style:
|
|
1082
|
+
style: qe([{ position: "relative" }, n.value])
|
|
1083
1083
|
}, [
|
|
1084
|
-
K(
|
|
1084
|
+
K(Be, I({
|
|
1085
1085
|
modelValue: u.value,
|
|
1086
1086
|
"onUpdate:modelValue": g[24] || (g[24] = (y) => u.value = y),
|
|
1087
1087
|
placeholder: p.value[r.value].label,
|
|
@@ -1092,55 +1092,55 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1092
1092
|
X("div", {
|
|
1093
1093
|
title: z(Mt)(u.value),
|
|
1094
1094
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1095
|
-
},
|
|
1095
|
+
}, De(z(Mt)(u.value)), 9, Sl)
|
|
1096
1096
|
]),
|
|
1097
1097
|
_: 2
|
|
1098
1098
|
}, [
|
|
1099
|
-
|
|
1099
|
+
W(A(), (y, J) => ({
|
|
1100
1100
|
name: y,
|
|
1101
|
-
fn: D((
|
|
1102
|
-
S(E.$slots, `${a.t}-${r.value}-${y}`, { data:
|
|
1101
|
+
fn: D((q) => [
|
|
1102
|
+
S(E.$slots, `${a.t}-${r.value}-${y}`, { data: q }, void 0, !0)
|
|
1103
1103
|
])
|
|
1104
1104
|
}))
|
|
1105
1105
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
1106
|
-
], 4)) : (H = e.value) != null && H.startsWith("link") ? (m(),
|
|
1106
|
+
], 4)) : (H = e.value) != null && H.startsWith("link") ? (m(), Y("div", {
|
|
1107
1107
|
key: 20,
|
|
1108
|
-
style:
|
|
1108
|
+
style: qe(n.value)
|
|
1109
1109
|
}, [
|
|
1110
|
-
K(
|
|
1110
|
+
K(Re, I(t.value, {
|
|
1111
1111
|
type: e.value.replace("link-", ""),
|
|
1112
1112
|
innerHTML: P.value || u.value
|
|
1113
1113
|
}), null, 16, ["type", "innerHTML"])
|
|
1114
|
-
], 4)) : e.value != "textarea" && ((de = e.value) != null && de.startsWith("text")) ? (m(),
|
|
1114
|
+
], 4)) : e.value != "textarea" && ((de = e.value) != null && de.startsWith("text")) ? (m(), Y("div", {
|
|
1115
1115
|
key: 21,
|
|
1116
|
-
style:
|
|
1116
|
+
style: qe(n.value)
|
|
1117
1117
|
}, [
|
|
1118
|
-
K(
|
|
1118
|
+
K(He, I(t.value, {
|
|
1119
1119
|
type: e.value.replace("text-", ""),
|
|
1120
1120
|
innerHTML: P.value || u.value
|
|
1121
1121
|
}), null, 16, ["type", "innerHTML"])
|
|
1122
|
-
], 4)) : e.value == "avatar" ? (m(),
|
|
1122
|
+
], 4)) : e.value == "avatar" ? (m(), Y("div", {
|
|
1123
1123
|
key: 22,
|
|
1124
|
-
style:
|
|
1124
|
+
style: qe(n.value)
|
|
1125
1125
|
}, [
|
|
1126
|
-
P.value ? (m(),
|
|
1126
|
+
P.value ? (m(), O(Je, _t(I({ key: 0 }, t.value)), {
|
|
1127
1127
|
default: D(() => [
|
|
1128
1128
|
X("div", { innerHTML: P.value }, null, 8, Ml)
|
|
1129
1129
|
]),
|
|
1130
1130
|
_: 1
|
|
1131
|
-
}, 16)) : (m(),
|
|
1132
|
-
], 4)) : (F = e.value) != null && F.startsWith("tag") ? (m(),
|
|
1131
|
+
}, 16)) : (m(), O(Je, _t(I({ key: 1 }, t.value)), null, 16))
|
|
1132
|
+
], 4)) : (F = e.value) != null && F.startsWith("tag") ? (m(), Y("div", {
|
|
1133
1133
|
key: 23,
|
|
1134
|
-
style:
|
|
1134
|
+
style: qe(n.value)
|
|
1135
1135
|
}, [
|
|
1136
|
-
Array.isArray(P.value) && P.value.length > 0 ? (m(!0),
|
|
1137
|
-
typeof y == "object" ? (m(),
|
|
1136
|
+
Array.isArray(P.value) && P.value.length > 0 ? (m(!0), Y(Z, { key: 0 }, W(P.value, (y, J) => (m(), Y(Z, { key: J }, [
|
|
1137
|
+
typeof y == "object" ? (m(), O(lt, I({
|
|
1138
1138
|
key: 0,
|
|
1139
1139
|
ref_for: !0
|
|
1140
1140
|
}, y, {
|
|
1141
1141
|
innerHTML: y == null ? void 0 : y.value,
|
|
1142
1142
|
style: { "margin-right": "3px" }
|
|
1143
|
-
}), null, 16, ["innerHTML"])) : (m(),
|
|
1143
|
+
}), null, 16, ["innerHTML"])) : (m(), O(lt, I({
|
|
1144
1144
|
key: 1,
|
|
1145
1145
|
ref_for: !0
|
|
1146
1146
|
}, t.value, {
|
|
@@ -1148,17 +1148,17 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1148
1148
|
innerHTML: y,
|
|
1149
1149
|
style: { "margin-right": "3px" }
|
|
1150
1150
|
}), null, 16, ["type", "innerHTML"]))
|
|
1151
|
-
], 64))), 128)) : (m(),
|
|
1151
|
+
], 64))), 128)) : (m(), O(lt, I({ key: 1 }, t.value, {
|
|
1152
1152
|
type: e.value.replace("tag-", ""),
|
|
1153
1153
|
innerHTML: P.value || u.value
|
|
1154
1154
|
}), null, 16, ["type", "innerHTML"]))
|
|
1155
|
-
], 4)) : e.value == "div" ? (m(),
|
|
1155
|
+
], 4)) : e.value == "div" ? (m(), Y("div", I({ key: 24 }, t.value, {
|
|
1156
1156
|
innerHTML: P.value || u.value,
|
|
1157
1157
|
style: n.value
|
|
1158
|
-
}), null, 16, Tl)) : e.value == "span" ? (m(),
|
|
1158
|
+
}), null, 16, Tl)) : e.value == "span" ? (m(), Y("span", I({ key: 25 }, t.value, {
|
|
1159
1159
|
innerHTML: P.value || u.value,
|
|
1160
1160
|
style: n.value
|
|
1161
|
-
}), null, 16, Fl)) : (m(),
|
|
1161
|
+
}), null, 16, Fl)) : (m(), O(Be, I({
|
|
1162
1162
|
key: 26,
|
|
1163
1163
|
modelValue: u.value,
|
|
1164
1164
|
"onUpdate:modelValue": g[25] || (g[25] = (y) => u.value = y),
|
|
@@ -1206,7 +1206,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1206
1206
|
}),
|
|
1207
1207
|
key: "2"
|
|
1208
1208
|
} : void 0,
|
|
1209
|
-
(
|
|
1209
|
+
(ze = t.value) != null && ze.prepend ? {
|
|
1210
1210
|
name: "prepend",
|
|
1211
1211
|
fn: D(() => {
|
|
1212
1212
|
var y;
|
|
@@ -1218,11 +1218,11 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1218
1218
|
}),
|
|
1219
1219
|
key: "3"
|
|
1220
1220
|
} : void 0,
|
|
1221
|
-
|
|
1221
|
+
W(A(), (y, J) => ({
|
|
1222
1222
|
name: y,
|
|
1223
|
-
fn: D((
|
|
1223
|
+
fn: D((q) => [
|
|
1224
1224
|
S(E.$slots, `${a.t}-${r.value}-${y}`, {
|
|
1225
|
-
data:
|
|
1225
|
+
data: q,
|
|
1226
1226
|
form: o.formInfo
|
|
1227
1227
|
}, void 0, !0)
|
|
1228
1228
|
])
|
|
@@ -1244,12 +1244,12 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1244
1244
|
emits: /* @__PURE__ */ Xe(["submit", "reset"], ["update:modelValue"]),
|
|
1245
1245
|
setup(o, { expose: u, emit: a }) {
|
|
1246
1246
|
var ye, Fe, oe, se, ne, Ue;
|
|
1247
|
-
const t = Qe(o, "modelValue"), r = a, e = re(null), p = Tt("options"),
|
|
1248
|
-
t.value.form =
|
|
1247
|
+
const t = Qe(o, "modelValue"), r = a, e = re(null), p = Tt("options"), f = re({}), T = re(""), d = o;
|
|
1248
|
+
t.value.form = Ve(
|
|
1249
1249
|
Pt,
|
|
1250
1250
|
p == null ? void 0 : p.form,
|
|
1251
1251
|
(ye = t.value) == null ? void 0 : ye.form
|
|
1252
|
-
), t.value.form.style =
|
|
1252
|
+
), t.value.form.style = Ve(
|
|
1253
1253
|
(oe = (Fe = t.value) == null ? void 0 : Fe.form) == null ? void 0 : oe.style,
|
|
1254
1254
|
{ ...(se = Ft()) == null ? void 0 : se.style }
|
|
1255
1255
|
);
|
|
@@ -1257,12 +1257,12 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1257
1257
|
let s = 5;
|
|
1258
1258
|
for (; s > 0; ) {
|
|
1259
1259
|
if (await at(), e.value) {
|
|
1260
|
-
e.value.validate((
|
|
1261
|
-
|
|
1260
|
+
e.value.validate((V, k) => {
|
|
1261
|
+
V ? r("submit", M, _, b) : console.error("表单验证不通过!", k);
|
|
1262
1262
|
});
|
|
1263
1263
|
return;
|
|
1264
1264
|
}
|
|
1265
|
-
s--, await new Promise((
|
|
1265
|
+
s--, await new Promise((V) => setTimeout(V, 50));
|
|
1266
1266
|
}
|
|
1267
1267
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1268
1268
|
}, n = async () => {
|
|
@@ -1284,15 +1284,15 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1284
1284
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1285
1285
|
};
|
|
1286
1286
|
t.value.form.submit.click = v, t.value.form.saveSubmit.click = v, t.value.form.reset.click = n;
|
|
1287
|
-
const
|
|
1287
|
+
const c = {
|
|
1288
1288
|
type: "hidden",
|
|
1289
1289
|
labelPosition: "right",
|
|
1290
1290
|
style: {
|
|
1291
1291
|
width: "100%"
|
|
1292
1292
|
}
|
|
1293
1293
|
};
|
|
1294
|
-
t.value.formItems =
|
|
1295
|
-
|
|
1294
|
+
t.value.formItems = Ve(
|
|
1295
|
+
c,
|
|
1296
1296
|
p == null ? void 0 : p.formItems,
|
|
1297
1297
|
(ne = t == null ? void 0 : t.value) == null ? void 0 : ne.formItems
|
|
1298
1298
|
);
|
|
@@ -1300,12 +1300,12 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1300
1300
|
span: 12,
|
|
1301
1301
|
offset: 0
|
|
1302
1302
|
};
|
|
1303
|
-
t.value.form.cols =
|
|
1303
|
+
t.value.form.cols = Ve(
|
|
1304
1304
|
w,
|
|
1305
1305
|
(Ue = p == null ? void 0 : p.form) == null ? void 0 : Ue.cols,
|
|
1306
1306
|
t.value.form.cols
|
|
1307
1307
|
);
|
|
1308
|
-
const
|
|
1308
|
+
const A = (M) => {
|
|
1309
1309
|
let _ = [];
|
|
1310
1310
|
if (M.rules)
|
|
1311
1311
|
_ = M.rules;
|
|
@@ -1324,14 +1324,14 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1324
1324
|
message: `${s.label}不能为空!`,
|
|
1325
1325
|
trigger: "blur"
|
|
1326
1326
|
}), s.max !== void 0 && s.max !== null && s.max !== "" && (s.min === void 0 || s.min === null || s.min === "") && _.push({
|
|
1327
|
-
validator: (
|
|
1327
|
+
validator: (V, k, C) => {
|
|
1328
1328
|
if (k == null || k === "") return C();
|
|
1329
1329
|
s.type !== "number" && s.type !== "input-number" ? ((k == null ? void 0 : k.toString()) || "").length > Number(s.max) ? C(
|
|
1330
1330
|
new Error(`${s.label}长度不能超过${s.max}个字符!`)
|
|
1331
1331
|
) : C() : Number(k) > Number(s.max) ? C(new Error(`${s.label}不能大于${s.max}!`)) : C();
|
|
1332
1332
|
}
|
|
1333
1333
|
}), s.min !== void 0 && s.min !== null && s.min !== "" && (s.max === void 0 || s.max === null || s.max === "") && _.push({
|
|
1334
|
-
validator: (
|
|
1334
|
+
validator: (V, k, C) => {
|
|
1335
1335
|
if (k == null || k === "") return C();
|
|
1336
1336
|
s.type !== "number" && s.type !== "input-number" ? Number(s.min) < 1 ? C(
|
|
1337
1337
|
new Error(
|
|
@@ -1344,52 +1344,52 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1344
1344
|
) : C() : Number(k) < Number(s.min) ? C(new Error(`${s.label}不能小于${s.min}!`)) : C();
|
|
1345
1345
|
}
|
|
1346
1346
|
}), s.min !== void 0 && s.min !== null && s.min !== "" && s.max !== void 0 && s.max !== null && s.max !== "" && _.push({
|
|
1347
|
-
validator: (
|
|
1347
|
+
validator: (V, k, C) => {
|
|
1348
1348
|
if (k == null || k === "") return C();
|
|
1349
|
-
const
|
|
1349
|
+
const R = Number(s.min), Q = Number(s.max);
|
|
1350
1350
|
s.type !== "number" && s.type !== "input-number" ? Number(s.min) < 1 ? C(
|
|
1351
1351
|
new Error(
|
|
1352
1352
|
`${s.label}长度最小值${s.min}设置错误!`
|
|
1353
1353
|
)
|
|
1354
|
-
) : k.toString().length <
|
|
1354
|
+
) : k.toString().length < R || k.toString().length > Q ? C(
|
|
1355
1355
|
new Error(
|
|
1356
|
-
`${s.label}长度必须在${
|
|
1356
|
+
`${s.label}长度必须在${R}-${Q}个字符之间!`
|
|
1357
1357
|
)
|
|
1358
|
-
) : C() : Number(k) <
|
|
1358
|
+
) : C() : Number(k) < R || k > Q ? C(new Error(`${s.label}必须在${R}-${Q}之间!`)) : C();
|
|
1359
1359
|
}
|
|
1360
1360
|
}), s.type == "email" && _.push({ type: "email", message: "不是一个正确的邮箱地址!" }), s.type == "url" && _.push({ type: "url", message: "不是一个合正确的URL!" }), s.pattern && _.push({
|
|
1361
1361
|
pattern: s == null ? void 0 : s.pattern,
|
|
1362
1362
|
message: (s == null ? void 0 : s.message) || "格式不正确!"
|
|
1363
1363
|
}), s.validate && _.push({
|
|
1364
|
-
validator: (
|
|
1364
|
+
validator: (V, k, C) => s.validate(V, k, C)
|
|
1365
1365
|
});
|
|
1366
1366
|
}
|
|
1367
1367
|
return _;
|
|
1368
1368
|
}, j = (M, _ = !1) => {
|
|
1369
|
-
var
|
|
1370
|
-
const b = _ ? M : M == null ? void 0 : M.item, s = typeof (b == null ? void 0 : b.editor) == "function" ? b.editor(
|
|
1369
|
+
var V, k, C, R, Q;
|
|
1370
|
+
const b = _ ? M : M == null ? void 0 : M.item, s = typeof (b == null ? void 0 : b.editor) == "function" ? b.editor(f.value, (V = t.value.form) == null ? void 0 : V.modalState) : (b == null ? void 0 : b.editor) || {};
|
|
1371
1371
|
if (((k = t.value.form) == null ? void 0 : k.modalState) === "edit") {
|
|
1372
1372
|
const te = typeof (b == null ? void 0 : b.editor) == "object" ? (C = b.editor) == null ? void 0 : C.ep : typeof (b == null ? void 0 : b.editor) == "function" ? s == null ? void 0 : s.ep : {};
|
|
1373
1373
|
return { ...s, ...te };
|
|
1374
1374
|
}
|
|
1375
|
-
if (((
|
|
1375
|
+
if (((R = t.value.form) == null ? void 0 : R.modalState) === "add") {
|
|
1376
1376
|
const te = typeof (b == null ? void 0 : b.editor) == "object" ? (Q = b.editor) == null ? void 0 : Q.ap : typeof (b == null ? void 0 : b.editor) == "function" ? s == null ? void 0 : s.ap : {};
|
|
1377
1377
|
return { ...s, ...te };
|
|
1378
1378
|
}
|
|
1379
1379
|
return s;
|
|
1380
1380
|
}, P = (M) => {
|
|
1381
|
-
var b, s,
|
|
1382
|
-
const _ = typeof M.editor == "function" ? M.editor(
|
|
1383
|
-
return ((s = t.value.form) == null ? void 0 : s.modalState) === "edit" ? ((
|
|
1381
|
+
var b, s, V, k, C;
|
|
1382
|
+
const _ = typeof M.editor == "function" ? M.editor(f.value, (b = t.value.form) == null ? void 0 : b.modalState) : M.editor;
|
|
1383
|
+
return ((s = t.value.form) == null ? void 0 : s.modalState) === "edit" ? ((V = _ == null ? void 0 : _.ep) == null ? void 0 : V.type) ?? (_ == null ? void 0 : _.type) ?? M.type : ((k = t.value.form) == null ? void 0 : k.modalState) === "add" ? ((C = _ == null ? void 0 : _.ap) == null ? void 0 : C.type) ?? (_ == null ? void 0 : _.type) ?? M.type : (_ == null ? void 0 : _.type) ?? M.type;
|
|
1384
1384
|
};
|
|
1385
1385
|
nt(() => {
|
|
1386
|
-
|
|
1386
|
+
B(), d != null && d.editForm ? f.value = d.editForm : f.value = ue.value;
|
|
1387
1387
|
}), Kt(() => {
|
|
1388
1388
|
e.value = null;
|
|
1389
1389
|
});
|
|
1390
|
-
const
|
|
1390
|
+
const B = () => {
|
|
1391
1391
|
T.value = Math.random().toString(36).substring(2);
|
|
1392
|
-
for (const [M, _] of Object.entries(
|
|
1392
|
+
for (const [M, _] of Object.entries(fe.value))
|
|
1393
1393
|
t.value[M].formItem = {
|
|
1394
1394
|
...t.value[M].formItem,
|
|
1395
1395
|
..._.formItem
|
|
@@ -1397,21 +1397,21 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1397
1397
|
...t.value[M].formItem.style,
|
|
1398
1398
|
..._.formItem.style
|
|
1399
1399
|
};
|
|
1400
|
-
},
|
|
1400
|
+
}, fe = Ke(
|
|
1401
1401
|
() => Object.fromEntries(
|
|
1402
1402
|
Object.entries(t.value).filter((M) => M[1].type != "hidden").filter((M) => M[1].hidden !== !0).filter((M) => M[1].edit !== !1).filter((M) => M[1].editor !== !1).filter((M) => M[1].type !== "control").filter((M) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(M[0])).filter((M) => {
|
|
1403
|
-
var b, s,
|
|
1404
|
-
const _ = typeof M[1].editor == "function" ? M[1].editor(
|
|
1405
|
-
return t.value.form.modalState === "edit" ? ((s = _ == null ? void 0 : _.ep) == null ? void 0 : s.editor) !== !1 : t.value.form.modalState === "add" ? ((
|
|
1403
|
+
var b, s, V;
|
|
1404
|
+
const _ = typeof M[1].editor == "function" ? M[1].editor(f.value, (b = t.value.form) == null ? void 0 : b.modalState) : M[1].editor;
|
|
1405
|
+
return t.value.form.modalState === "edit" ? ((s = _ == null ? void 0 : _.ep) == null ? void 0 : s.editor) !== !1 : t.value.form.modalState === "add" ? ((V = _ == null ? void 0 : _.ap) == null ? void 0 : V.editor) !== !1 : !0;
|
|
1406
1406
|
}).map((M) => [M[0], M[1]])
|
|
1407
1407
|
)
|
|
1408
1408
|
), ue = Ke(
|
|
1409
1409
|
() => Object.fromEntries(
|
|
1410
1410
|
Object.entries(t.value).filter((M) => M[1].type != "hidden").filter((M) => M[1].type != "control").map((M) => [M[0], M[1].value])
|
|
1411
1411
|
)
|
|
1412
|
-
),
|
|
1412
|
+
), Ce = Ke(() => {
|
|
1413
1413
|
const M = /* @__PURE__ */ new Map();
|
|
1414
|
-
return Object.entries(
|
|
1414
|
+
return Object.entries(fe.value).forEach(([_, b]) => {
|
|
1415
1415
|
if (b.groupName) {
|
|
1416
1416
|
const s = b.groupName;
|
|
1417
1417
|
M.has(s) || M.set(s, {
|
|
@@ -1420,11 +1420,11 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1420
1420
|
}), M.get(s).items.push({ key: _, item: b });
|
|
1421
1421
|
}
|
|
1422
1422
|
}), M.forEach((_) => {
|
|
1423
|
-
_.tabPane =
|
|
1423
|
+
_.tabPane = Ve(
|
|
1424
1424
|
..._.items.map(({ item: b }) => b.tabPane || {})
|
|
1425
1425
|
);
|
|
1426
1426
|
}), Array.from(M.values());
|
|
1427
|
-
}),
|
|
1427
|
+
}), ce = [
|
|
1428
1428
|
{
|
|
1429
1429
|
name: "f-submit",
|
|
1430
1430
|
label: t.value.form.submit.label,
|
|
@@ -1441,7 +1441,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1441
1441
|
name: "f-save-submit",
|
|
1442
1442
|
label: t.value.form.saveSubmit.label,
|
|
1443
1443
|
click: t.value.form.saveSubmit.click,
|
|
1444
|
-
hidden: !(
|
|
1444
|
+
hidden: !(d.flag == "add" && t.value.form.saveSubmit.hidden === !1),
|
|
1445
1445
|
info: Ie(t.value.form.saveSubmit, (M) => !["click"].includes(M)),
|
|
1446
1446
|
sort: t.value.form.saveSubmit.sort ?? 1,
|
|
1447
1447
|
// 使用空值合并运算符
|
|
@@ -1460,22 +1460,21 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1460
1460
|
originalOrder: 1
|
|
1461
1461
|
// 添加原始顺序标识
|
|
1462
1462
|
}
|
|
1463
|
-
], ie = Ke(() =>
|
|
1463
|
+
], ie = Ke(() => ce.filter((M) => !M.hidden).sort((M, _) => M.sort - _.sort || M.originalOrder - _.originalOrder));
|
|
1464
1464
|
return u({
|
|
1465
1465
|
submit: v,
|
|
1466
1466
|
saveSubmit: v,
|
|
1467
1467
|
reset: n,
|
|
1468
|
-
formData:
|
|
1468
|
+
formData: f
|
|
1469
1469
|
}), (M, _) => {
|
|
1470
1470
|
var Q, te, ee;
|
|
1471
|
-
const b = L("el-form-item"), s = L("el-col"),
|
|
1472
|
-
return m(),
|
|
1473
|
-
|
|
1474
|
-
K(C, O(
|
|
1471
|
+
const b = L("el-form-item"), s = L("el-col"), V = L("el-tab-pane"), k = L("el-tabs"), C = L("el-form"), R = L("el-button");
|
|
1472
|
+
return m(), Y("div", Ol, [
|
|
1473
|
+
K(C, I(
|
|
1475
1474
|
{
|
|
1476
1475
|
ref_key: "gform",
|
|
1477
1476
|
ref: e,
|
|
1478
|
-
model:
|
|
1477
|
+
model: f.value,
|
|
1479
1478
|
style: {
|
|
1480
1479
|
width: "98%",
|
|
1481
1480
|
padding: 0,
|
|
@@ -1489,15 +1488,15 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1489
1488
|
)
|
|
1490
1489
|
), {
|
|
1491
1490
|
default: D(() => [
|
|
1492
|
-
|
|
1493
|
-
K(k,
|
|
1491
|
+
Ce.value.length > 0 ? S(M.$slots, "default", { key: 0 }, () => [
|
|
1492
|
+
K(k, I({
|
|
1494
1493
|
class: "demo-tabs",
|
|
1495
|
-
modelValue:
|
|
1496
|
-
"onUpdate:modelValue": _[0] || (_[0] = (E) =>
|
|
1494
|
+
modelValue: Ce.value[0].groupName,
|
|
1495
|
+
"onUpdate:modelValue": _[0] || (_[0] = (E) => Ce.value[0].groupName = E),
|
|
1497
1496
|
style: { width: "100%" }
|
|
1498
1497
|
}, t.value.form.tabs), {
|
|
1499
1498
|
default: D(() => [
|
|
1500
|
-
(m(!0),
|
|
1499
|
+
(m(!0), Y(Z, null, W(Ce.value, (E) => (m(), O(V, I({
|
|
1501
1500
|
key: E.groupName,
|
|
1502
1501
|
label: E.groupName,
|
|
1503
1502
|
name: E.groupName,
|
|
@@ -1505,29 +1504,29 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1505
1504
|
ref_for: !0
|
|
1506
1505
|
}, E.tabPane), {
|
|
1507
1506
|
default: D(() => [
|
|
1508
|
-
(m(!0),
|
|
1507
|
+
(m(!0), Y(Z, null, W(E.items, (g, le) => (m(), O(s, I({ ref_for: !0 }, { ...t.value.form.cols, ...g == null ? void 0 : g.item.col }, {
|
|
1509
1508
|
key: g.key,
|
|
1510
1509
|
style: { width: "100%" }
|
|
1511
1510
|
}), {
|
|
1512
1511
|
default: D(() => {
|
|
1513
1512
|
var be, pe;
|
|
1514
1513
|
return [
|
|
1515
|
-
K(b,
|
|
1514
|
+
K(b, I({
|
|
1516
1515
|
label: g == null ? void 0 : g.item.label,
|
|
1517
1516
|
prop: g.key,
|
|
1518
|
-
rules:
|
|
1517
|
+
rules: A(g == null ? void 0 : g.item),
|
|
1519
1518
|
ref_for: !0
|
|
1520
1519
|
}, { ...(be = t.value) == null ? void 0 : be.formItems, ...(pe = g == null ? void 0 : g.item) == null ? void 0 : pe.formItem }, { style: { width: "100%" } }), {
|
|
1521
1520
|
default: D(() => [
|
|
1522
1521
|
S(M.$slots, "f-" + g.key, {
|
|
1523
1522
|
item: g == null ? void 0 : g.item,
|
|
1524
|
-
formInfo:
|
|
1523
|
+
formInfo: f.value,
|
|
1525
1524
|
model: t.value,
|
|
1526
|
-
form:
|
|
1525
|
+
form: f.value
|
|
1527
1526
|
}, () => [
|
|
1528
|
-
(m(),
|
|
1529
|
-
modelValue:
|
|
1530
|
-
"onUpdate:modelValue": ($e) =>
|
|
1527
|
+
(m(), O(bt, {
|
|
1528
|
+
modelValue: f.value[g.key],
|
|
1529
|
+
"onUpdate:modelValue": ($e) => f.value[g.key] = $e,
|
|
1531
1530
|
item: j(g),
|
|
1532
1531
|
ctrlKey: g.key,
|
|
1533
1532
|
ctrlType: P(g == null ? void 0 : g.item),
|
|
@@ -1535,9 +1534,9 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1535
1534
|
key: `${g.key}-${T.value}`,
|
|
1536
1535
|
class: "g-ctrl-container",
|
|
1537
1536
|
t: "f",
|
|
1538
|
-
formInfo:
|
|
1537
|
+
formInfo: f.value
|
|
1539
1538
|
}, he({ _: 2 }, [
|
|
1540
|
-
|
|
1539
|
+
W(M.$slots, ($e, we) => ({
|
|
1541
1540
|
name: we,
|
|
1542
1541
|
fn: D((Ee) => [
|
|
1543
1542
|
S(M.$slots, we, {
|
|
@@ -1563,17 +1562,17 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1563
1562
|
_: 3
|
|
1564
1563
|
}, 16, ["modelValue"])
|
|
1565
1564
|
], !0) : S(M.$slots, "default", { key: 1 }, () => [
|
|
1566
|
-
(m(!0),
|
|
1565
|
+
(m(!0), Y(Z, null, W(fe.value, (E, g) => (m(), O(s, I({ ref_for: !0 }, { ...t.value.form.cols, ...E.col }, {
|
|
1567
1566
|
key: g,
|
|
1568
1567
|
style: { width: "100%" }
|
|
1569
1568
|
}), {
|
|
1570
1569
|
default: D(() => {
|
|
1571
1570
|
var le;
|
|
1572
1571
|
return [
|
|
1573
|
-
K(b,
|
|
1572
|
+
K(b, I({
|
|
1574
1573
|
label: E.label,
|
|
1575
1574
|
prop: g,
|
|
1576
|
-
rules:
|
|
1575
|
+
rules: A(E),
|
|
1577
1576
|
ref_for: !0
|
|
1578
1577
|
}, { ...(le = t.value) == null ? void 0 : le.formItems, ...E == null ? void 0 : E.formItem }, { style: { width: "100%" } }), {
|
|
1579
1578
|
label: D((be) => [
|
|
@@ -1582,19 +1581,19 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1582
1581
|
item: E,
|
|
1583
1582
|
model: t.value
|
|
1584
1583
|
}, () => [
|
|
1585
|
-
|
|
1584
|
+
Ye(De(E.label), 1)
|
|
1586
1585
|
], !0)
|
|
1587
1586
|
]),
|
|
1588
1587
|
default: D(() => [
|
|
1589
1588
|
S(M.$slots, "f-" + g, {
|
|
1590
1589
|
item: E,
|
|
1591
|
-
formInfo:
|
|
1590
|
+
formInfo: f.value,
|
|
1592
1591
|
model: t.value,
|
|
1593
|
-
form:
|
|
1592
|
+
form: f.value
|
|
1594
1593
|
}, () => [
|
|
1595
|
-
(m(),
|
|
1596
|
-
modelValue:
|
|
1597
|
-
"onUpdate:modelValue": (be) =>
|
|
1594
|
+
(m(), O(bt, {
|
|
1595
|
+
modelValue: f.value[g],
|
|
1596
|
+
"onUpdate:modelValue": (be) => f.value[g] = be,
|
|
1598
1597
|
item: j(E, !0),
|
|
1599
1598
|
ctrlKey: g,
|
|
1600
1599
|
ctrlType: P(E),
|
|
@@ -1602,9 +1601,9 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1602
1601
|
model: t.value,
|
|
1603
1602
|
class: "g-ctrl-container",
|
|
1604
1603
|
t: "f",
|
|
1605
|
-
formInfo:
|
|
1604
|
+
formInfo: f.value
|
|
1606
1605
|
}, he({ _: 2 }, [
|
|
1607
|
-
|
|
1606
|
+
W(M.$slots, (be, pe) => ({
|
|
1608
1607
|
name: pe,
|
|
1609
1608
|
fn: D(($e) => [
|
|
1610
1609
|
S(M.$slots, pe, {
|
|
@@ -1629,17 +1628,17 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1629
1628
|
}, 16, ["model"]),
|
|
1630
1629
|
(ee = (te = (Q = t.value) == null ? void 0 : Q.form) == null ? void 0 : te.footer) != null && ee.hidden ? ge("", !0) : S(M.$slots, "f-footer", { key: 0 }, () => [
|
|
1631
1630
|
X("div", {
|
|
1632
|
-
style:
|
|
1631
|
+
style: qe(t.value.form.footer.style)
|
|
1633
1632
|
}, [
|
|
1634
1633
|
S(M.$slots, "f-footer-left", {}, void 0, !0),
|
|
1635
|
-
(m(!0),
|
|
1634
|
+
(m(!0), Y(Z, null, W(ie.value, (E) => (m(), Y(Z, null, [
|
|
1636
1635
|
S(M.$slots, E.name + "-left", {}, void 0, !0),
|
|
1637
1636
|
S(M.$slots, E.name, {}, () => [
|
|
1638
|
-
K(
|
|
1639
|
-
onClick: yt((g) => E.click(
|
|
1637
|
+
K(R, I({ ref_for: !0 }, E.info, {
|
|
1638
|
+
onClick: yt((g) => E.click(f.value, t.value, E.flag), ["stop"])
|
|
1640
1639
|
}), {
|
|
1641
1640
|
default: D(() => [
|
|
1642
|
-
|
|
1641
|
+
Ye(De(E == null ? void 0 : E.label), 1)
|
|
1643
1642
|
]),
|
|
1644
1643
|
_: 2
|
|
1645
1644
|
}, 1040, ["onClick"])
|
|
@@ -1652,7 +1651,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1652
1651
|
]);
|
|
1653
1652
|
};
|
|
1654
1653
|
}
|
|
1655
|
-
}), kt = /* @__PURE__ */ Ze(Il, [["__scopeId", "data-v-
|
|
1654
|
+
}), kt = /* @__PURE__ */ Ze(Il, [["__scopeId", "data-v-de09465f"]]), xt = {
|
|
1656
1655
|
__name: "g-query-item",
|
|
1657
1656
|
props: /* @__PURE__ */ Xe(["more"], {
|
|
1658
1657
|
modelValue: { required: !0 },
|
|
@@ -1662,53 +1661,53 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1662
1661
|
}),
|
|
1663
1662
|
emits: ["update:modelValue", "update:info"],
|
|
1664
1663
|
setup(o) {
|
|
1665
|
-
const u = Qe(o, "modelValue"), a = o, t = Qe(o, "info"), r = (T) => Ke(() => Object.fromEntries(Object.entries(u.value).filter((
|
|
1664
|
+
const u = Qe(o, "modelValue"), a = o, t = Qe(o, "info"), r = (T) => Ke(() => Object.fromEntries(Object.entries(u.value).filter((d) => {
|
|
1666
1665
|
var v;
|
|
1667
|
-
return typeof
|
|
1668
|
-
}).map((
|
|
1669
|
-
const
|
|
1670
|
-
return (
|
|
1671
|
-
},
|
|
1666
|
+
return typeof d[1].search == "function" ? d[1].search && ((v = d[1].search(t.value, u.value.table)) == null ? void 0 : v.more) === T : d[1].search && d[1].search.more === T;
|
|
1667
|
+
}).map((d) => [d[0], d[1]]))).value, e = (T) => typeof T.search == "function" ? T.search(t.value, u.value.table) : T.search || {}, p = (T) => {
|
|
1668
|
+
const d = e(T);
|
|
1669
|
+
return (d == null ? void 0 : d.type) || T.type;
|
|
1670
|
+
}, f = (T) => {
|
|
1672
1671
|
var n;
|
|
1673
|
-
const
|
|
1674
|
-
let v = (
|
|
1672
|
+
const d = e(T);
|
|
1673
|
+
let v = (d == null ? void 0 : d.width) || ((n = u.value.queryItems) == null ? void 0 : n.width) || "100%";
|
|
1675
1674
|
return isNaN(v) || (v += "px"), v;
|
|
1676
1675
|
};
|
|
1677
|
-
return (T,
|
|
1676
|
+
return (T, d) => {
|
|
1678
1677
|
const v = L("el-form-item");
|
|
1679
|
-
return m(!0),
|
|
1680
|
-
key:
|
|
1678
|
+
return m(!0), Y(Z, null, W(r(a.more), (n, c) => S(T.$slots, `q-${c}`, {
|
|
1679
|
+
key: c,
|
|
1681
1680
|
item: n,
|
|
1682
1681
|
queryModel: t.value,
|
|
1683
1682
|
model: u.value
|
|
1684
1683
|
}, () => [
|
|
1685
|
-
K(v,
|
|
1684
|
+
K(v, I({
|
|
1686
1685
|
label: n.label,
|
|
1687
|
-
style: { width:
|
|
1686
|
+
style: { width: f(n) },
|
|
1688
1687
|
ref_for: !0
|
|
1689
1688
|
}, { ...u.value.queryItems, ...e(n) }), {
|
|
1690
1689
|
label: D(() => [
|
|
1691
|
-
S(T.$slots, `q-${
|
|
1690
|
+
S(T.$slots, `q-${c}-label`, {
|
|
1692
1691
|
item: n,
|
|
1693
1692
|
model: u.value
|
|
1694
1693
|
})
|
|
1695
1694
|
]),
|
|
1696
1695
|
default: D(() => [
|
|
1697
1696
|
K(bt, {
|
|
1698
|
-
modelValue: t.value[
|
|
1699
|
-
"onUpdate:modelValue": (w) => t.value[
|
|
1697
|
+
modelValue: t.value[c],
|
|
1698
|
+
"onUpdate:modelValue": (w) => t.value[c] = w,
|
|
1700
1699
|
item: { ...n == null ? void 0 : n.editor, ...e(n) },
|
|
1701
|
-
ctrlKey:
|
|
1700
|
+
ctrlKey: c,
|
|
1702
1701
|
ctrlType: p(n),
|
|
1703
1702
|
model: u.value,
|
|
1704
1703
|
t: "q",
|
|
1705
1704
|
formInfo: t.value
|
|
1706
1705
|
}, he({ _: 2 }, [
|
|
1707
|
-
|
|
1706
|
+
W(Object.keys(T.$slots), (w) => ({
|
|
1708
1707
|
name: w,
|
|
1709
|
-
fn: D((
|
|
1708
|
+
fn: D((A) => [
|
|
1710
1709
|
S(T.$slots, w, {
|
|
1711
|
-
data:
|
|
1710
|
+
data: A,
|
|
1712
1711
|
item: n,
|
|
1713
1712
|
model: u.value
|
|
1714
1713
|
})
|
|
@@ -1734,7 +1733,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1734
1733
|
},
|
|
1735
1734
|
emits: /* @__PURE__ */ Xe(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1736
1735
|
setup(o, { emit: u }) {
|
|
1737
|
-
const a = Qe(o, "modelValue"), t = u, r = Tt("options"), e = re(!1), p = Qe(o, "info"),
|
|
1736
|
+
const a = Qe(o, "modelValue"), t = u, r = Tt("options"), e = re(!1), p = Qe(o, "info"), f = {
|
|
1738
1737
|
hidden: !1,
|
|
1739
1738
|
type: "hidden",
|
|
1740
1739
|
labelWidth: 100,
|
|
@@ -1751,7 +1750,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1751
1750
|
hidden: !0,
|
|
1752
1751
|
type: "primary",
|
|
1753
1752
|
label: "更多",
|
|
1754
|
-
icon: () =>
|
|
1753
|
+
icon: () => _e(fl),
|
|
1755
1754
|
click: () => {
|
|
1756
1755
|
e.value = !e.value;
|
|
1757
1756
|
}
|
|
@@ -1761,7 +1760,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1761
1760
|
type: "primary",
|
|
1762
1761
|
hidden: !1,
|
|
1763
1762
|
plain: !1,
|
|
1764
|
-
icon: () =>
|
|
1763
|
+
icon: () => _e(Ut),
|
|
1765
1764
|
click: () => {
|
|
1766
1765
|
t("reset", p.value);
|
|
1767
1766
|
}
|
|
@@ -1770,7 +1769,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1770
1769
|
hidden: !1,
|
|
1771
1770
|
type: "primary",
|
|
1772
1771
|
label: "查询",
|
|
1773
|
-
icon: () =>
|
|
1772
|
+
icon: () => _e(vl),
|
|
1774
1773
|
click: () => {
|
|
1775
1774
|
t("query", p.value), e.value = !1;
|
|
1776
1775
|
}
|
|
@@ -1786,7 +1785,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1786
1785
|
}
|
|
1787
1786
|
}
|
|
1788
1787
|
};
|
|
1789
|
-
a.value.query =
|
|
1788
|
+
a.value.query = Ve(f, r == null ? void 0 : r.query, a.value.query);
|
|
1790
1789
|
const T = {
|
|
1791
1790
|
2: {
|
|
1792
1791
|
title: "更多查询",
|
|
@@ -1804,11 +1803,11 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1804
1803
|
trigger: "click"
|
|
1805
1804
|
}
|
|
1806
1805
|
};
|
|
1807
|
-
a.value.query.more.dialog =
|
|
1806
|
+
a.value.query.more.dialog = Ve(
|
|
1808
1807
|
T[a.value.query.more.mode] || {},
|
|
1809
1808
|
a.value.query.more.dialog
|
|
1810
1809
|
);
|
|
1811
|
-
const
|
|
1810
|
+
const d = {
|
|
1812
1811
|
type: "hidden",
|
|
1813
1812
|
hidden: !1,
|
|
1814
1813
|
labelPosition: "right",
|
|
@@ -1817,26 +1816,26 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1817
1816
|
// width: "280px"
|
|
1818
1817
|
}
|
|
1819
1818
|
};
|
|
1820
|
-
a.value.queryItems =
|
|
1821
|
-
const v = (
|
|
1822
|
-
const P = Object.keys(
|
|
1819
|
+
a.value.queryItems = Ve(d, r == null ? void 0 : r.queryItems, a.value.queryItems);
|
|
1820
|
+
const v = (A, j) => {
|
|
1821
|
+
const P = Object.keys(A.slots).filter((B) => B !== "default").reduce((B, fe) => (B[fe] = (ue) => A.slots[fe]({
|
|
1823
1822
|
model: a.value
|
|
1824
1823
|
// 传递当前模型数据
|
|
1825
|
-
}),
|
|
1826
|
-
return
|
|
1824
|
+
}), B), {});
|
|
1825
|
+
return _e(xt, {
|
|
1827
1826
|
modelValue: a.value,
|
|
1828
|
-
"onUpdate:modelValue": (
|
|
1827
|
+
"onUpdate:modelValue": (B) => a.value = B,
|
|
1829
1828
|
info: p.value,
|
|
1830
|
-
"onUpdate:info": (
|
|
1829
|
+
"onUpdate:info": (B) => p.value = B,
|
|
1831
1830
|
more: j
|
|
1832
1831
|
}, P);
|
|
1833
|
-
}, n = Bt(),
|
|
1834
|
-
var P,
|
|
1835
|
-
const
|
|
1832
|
+
}, n = Bt(), c = () => {
|
|
1833
|
+
var P, B, fe, ue, Ce, ce, ie, ye, Fe;
|
|
1834
|
+
const A = [
|
|
1836
1835
|
{
|
|
1837
1836
|
key: "query",
|
|
1838
|
-
hidden: (
|
|
1839
|
-
component:
|
|
1837
|
+
hidden: (fe = (B = (P = a.value) == null ? void 0 : P.query) == null ? void 0 : B.query) == null ? void 0 : fe.hidden,
|
|
1838
|
+
component: Oe,
|
|
1840
1839
|
props: {
|
|
1841
1840
|
...a.value.query.query,
|
|
1842
1841
|
onClick: a.value.query.query.click
|
|
@@ -1846,8 +1845,8 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1846
1845
|
},
|
|
1847
1846
|
{
|
|
1848
1847
|
key: "reset",
|
|
1849
|
-
hidden: (
|
|
1850
|
-
component:
|
|
1848
|
+
hidden: (ce = (Ce = (ue = a.value) == null ? void 0 : ue.query) == null ? void 0 : Ce.reset) == null ? void 0 : ce.hidden,
|
|
1849
|
+
component: Oe,
|
|
1851
1850
|
props: {
|
|
1852
1851
|
...a.value.query.reset,
|
|
1853
1852
|
onClick: a.value.query.reset.click
|
|
@@ -1858,70 +1857,70 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1858
1857
|
{
|
|
1859
1858
|
key: "more",
|
|
1860
1859
|
hidden: (Fe = (ye = (ie = a.value) == null ? void 0 : ie.query) == null ? void 0 : ye.more) == null ? void 0 : Fe.hidden,
|
|
1861
|
-
component: a.value.query.more.mode === 3 ? wt :
|
|
1860
|
+
component: a.value.query.more.mode === 3 ? wt : Oe,
|
|
1862
1861
|
props: a.value.query.more.mode === 3 ? { ...a.value.query.more.dialog } : {
|
|
1863
1862
|
...a.value.query.more,
|
|
1864
1863
|
onClick: a.value.query.more.click
|
|
1865
1864
|
},
|
|
1866
1865
|
label: a.value.query.more.label,
|
|
1867
1866
|
sort: a.value.query.more.sort || 0,
|
|
1868
|
-
content: a.value.query.more.mode === 3 ? () =>
|
|
1867
|
+
content: a.value.query.more.mode === 3 ? () => _e(mt, {
|
|
1869
1868
|
class: "query-form",
|
|
1870
1869
|
...Ie(a.value.query, (oe) => !["query", "more", "reset"].includes(oe))
|
|
1871
1870
|
}, () => v({ slots: n }, !0)) : null
|
|
1872
1871
|
}
|
|
1873
1872
|
];
|
|
1874
|
-
return
|
|
1875
|
-
reference: () =>
|
|
1873
|
+
return A.sort((oe, se) => oe.sort - se.sort), A.filter((oe) => !oe.hidden).map((oe) => oe.key === "more" && oe.component === wt ? _e(wt, oe.props, {
|
|
1874
|
+
reference: () => _e(Oe, a.value.query.more, () => oe.label),
|
|
1876
1875
|
default: oe.content
|
|
1877
|
-
}) : (oe.props.slot = "query-" + oe.key, oe.label ?
|
|
1876
|
+
}) : (oe.props.slot = "query-" + oe.key, oe.label ? _e(oe.component, oe.props, () => oe.label) : _e(oe.component, oe.props)));
|
|
1878
1877
|
}, w = Ke(() => ({
|
|
1879
1878
|
diplay: "flex",
|
|
1880
1879
|
flexDirection: a.value.query.container.mode === "row" ? "row" : "column"
|
|
1881
1880
|
}));
|
|
1882
|
-
return (
|
|
1883
|
-
var
|
|
1884
|
-
const P = L("el-form-item"),
|
|
1885
|
-
return m(),
|
|
1881
|
+
return (A, j) => {
|
|
1882
|
+
var fe, ue, Ce, ce, ie, ye, Fe, oe, se, ne, Ue, M, _, b, s, V, k;
|
|
1883
|
+
const P = L("el-form-item"), B = L("el-drawer");
|
|
1884
|
+
return m(), Y(Z, null, [
|
|
1886
1885
|
X("div", {
|
|
1887
1886
|
class: "g-query-container",
|
|
1888
|
-
style:
|
|
1887
|
+
style: qe({ ...w.value, ...((ue = (fe = a.value.query) == null ? void 0 : fe.container) == null ? void 0 : ue.style) || {} })
|
|
1889
1888
|
}, [
|
|
1890
|
-
K(z(mt),
|
|
1889
|
+
K(z(mt), I({
|
|
1891
1890
|
onSubmit: j[0] || (j[0] = yt(() => {
|
|
1892
1891
|
}, ["prevent"]))
|
|
1893
1892
|
}, z(Ie)(a.value.query, (C) => !["query", "more", "reset", "btns"].includes(C))), {
|
|
1894
1893
|
default: D(() => {
|
|
1895
|
-
var C,
|
|
1894
|
+
var C, R;
|
|
1896
1895
|
return [
|
|
1897
|
-
(m(),
|
|
1898
|
-
((
|
|
1896
|
+
(m(), O(We(v({ slots: A.$slots }, void 0)))),
|
|
1897
|
+
((R = (C = a.value.query) == null ? void 0 : C.container) == null ? void 0 : R.inline) === !0 ? (m(), O(P, { key: 0 }, {
|
|
1899
1898
|
default: D(() => {
|
|
1900
1899
|
var Q, te, ee, E, g;
|
|
1901
1900
|
return [
|
|
1902
1901
|
X("div", {
|
|
1903
|
-
style:
|
|
1902
|
+
style: qe((te = (Q = a.value.query) == null ? void 0 : Q.btns) == null ? void 0 : te.style)
|
|
1904
1903
|
}, [
|
|
1905
|
-
a.value.query.group ? (m(),
|
|
1904
|
+
a.value.query.group ? (m(), O(z(pt), { key: 0 }, {
|
|
1906
1905
|
default: D(() => [
|
|
1907
|
-
(m(!0),
|
|
1908
|
-
(m(),
|
|
1906
|
+
(m(!0), Y(Z, null, W(c(), (le) => S(A.$slots, le.props.slot, {}, () => [
|
|
1907
|
+
(m(), O(We(le)))
|
|
1909
1908
|
], !0)), 256)),
|
|
1910
|
-
S(
|
|
1909
|
+
S(A.$slots, "q-btns", {}, void 0, !0)
|
|
1911
1910
|
]),
|
|
1912
1911
|
_: 3
|
|
1913
|
-
})) : (m(),
|
|
1914
|
-
(g = (E = (ee = a.value) == null ? void 0 : ee.query) == null ? void 0 : E.btns) != null && g.group ? (m(),
|
|
1912
|
+
})) : (m(), Y(Z, { key: 1 }, [
|
|
1913
|
+
(g = (E = (ee = a.value) == null ? void 0 : ee.query) == null ? void 0 : E.btns) != null && g.group ? (m(), O(z(pt), { key: 0 }, {
|
|
1915
1914
|
default: D(() => [
|
|
1916
|
-
(m(!0),
|
|
1917
|
-
(m(),
|
|
1915
|
+
(m(!0), Y(Z, null, W(c(), (le) => S(A.$slots, le.props.slot, {}, () => [
|
|
1916
|
+
(m(), O(We(le)))
|
|
1918
1917
|
], !0)), 256))
|
|
1919
1918
|
]),
|
|
1920
1919
|
_: 3
|
|
1921
|
-
})) : (m(!0),
|
|
1922
|
-
(m(),
|
|
1920
|
+
})) : (m(!0), Y(Z, { key: 1 }, W(c(), (le) => S(A.$slots, le.props.slot, {}, () => [
|
|
1921
|
+
(m(), O(We(le)))
|
|
1923
1922
|
], !0)), 256)),
|
|
1924
|
-
S(
|
|
1923
|
+
S(A.$slots, "q-btns", {}, void 0, !0)
|
|
1925
1924
|
], 64))
|
|
1926
1925
|
], 4)
|
|
1927
1926
|
];
|
|
@@ -1932,34 +1931,34 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1932
1931
|
}),
|
|
1933
1932
|
_: 3
|
|
1934
1933
|
}, 16),
|
|
1935
|
-
((ie = (
|
|
1934
|
+
((ie = (ce = (Ce = a.value) == null ? void 0 : Ce.query) == null ? void 0 : ce.container) == null ? void 0 : ie.inline) === !1 ? (m(), Y("div", {
|
|
1936
1935
|
key: 0,
|
|
1937
|
-
style:
|
|
1936
|
+
style: qe((Fe = (ye = a.value.query) == null ? void 0 : ye.btns) == null ? void 0 : Fe.style)
|
|
1938
1937
|
}, [
|
|
1939
|
-
a.value.query.group ? (m(),
|
|
1938
|
+
a.value.query.group ? (m(), O(z(pt), { key: 0 }, {
|
|
1940
1939
|
default: D(() => [
|
|
1941
|
-
(m(!0),
|
|
1942
|
-
(m(),
|
|
1940
|
+
(m(!0), Y(Z, null, W(c(), (C) => S(A.$slots, C.props.slot, {}, () => [
|
|
1941
|
+
(m(), O(We(C)))
|
|
1943
1942
|
], !0)), 256)),
|
|
1944
|
-
S(
|
|
1943
|
+
S(A.$slots, "q-btns", {}, void 0, !0)
|
|
1945
1944
|
]),
|
|
1946
1945
|
_: 3
|
|
1947
|
-
})) : (m(),
|
|
1948
|
-
(se = (oe = a.value.query) == null ? void 0 : oe.btns) != null && se.group ? (m(),
|
|
1946
|
+
})) : (m(), Y(Z, { key: 1 }, [
|
|
1947
|
+
(se = (oe = a.value.query) == null ? void 0 : oe.btns) != null && se.group ? (m(), O(z(pt), { key: 0 }, {
|
|
1949
1948
|
default: D(() => [
|
|
1950
|
-
(m(!0),
|
|
1951
|
-
(m(),
|
|
1949
|
+
(m(!0), Y(Z, null, W(c(), (C) => S(A.$slots, C.props.slot, {}, () => [
|
|
1950
|
+
(m(), O(We(C)))
|
|
1952
1951
|
], !0)), 256))
|
|
1953
1952
|
]),
|
|
1954
1953
|
_: 3
|
|
1955
|
-
})) : (m(!0),
|
|
1956
|
-
(m(),
|
|
1954
|
+
})) : (m(!0), Y(Z, { key: 1 }, W(c(), (C) => S(A.$slots, C.props.slot, {}, () => [
|
|
1955
|
+
(m(), O(We(C)))
|
|
1957
1956
|
], !0)), 256)),
|
|
1958
|
-
S(
|
|
1957
|
+
S(A.$slots, "q-btns", {}, void 0, !0)
|
|
1959
1958
|
], 64))
|
|
1960
1959
|
], 4)) : ge("", !0)
|
|
1961
1960
|
], 4),
|
|
1962
|
-
e.value && !((M = (Ue = (ne = a.value) == null ? void 0 : ne.query) == null ? void 0 : Ue.more) != null && M.hidden) && a.value.query.more.mode == 2 ? (m(), B
|
|
1961
|
+
e.value && !((M = (Ue = (ne = a.value) == null ? void 0 : ne.query) == null ? void 0 : Ue.more) != null && M.hidden) && a.value.query.more.mode == 2 ? (m(), O(B, I({
|
|
1963
1962
|
key: 0,
|
|
1964
1963
|
modelValue: e.value,
|
|
1965
1964
|
"onUpdate:modelValue": j[6] || (j[6] = (C) => e.value = C),
|
|
@@ -1967,7 +1966,7 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1967
1966
|
"show-close": !1
|
|
1968
1967
|
}, a.value.query.more.dialog), he({
|
|
1969
1968
|
default: D(() => [
|
|
1970
|
-
K(z(mt),
|
|
1969
|
+
K(z(mt), I({
|
|
1971
1970
|
onSubmit: j[3] || (j[3] = yt(() => {
|
|
1972
1971
|
}, ["prevent"]))
|
|
1973
1972
|
}, z(Ie)(a.value.query, (C) => !["query", "more", "reset"].includes(C)), { style: { width: "98%" } }), {
|
|
@@ -1979,10 +1978,10 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1979
1978
|
"onUpdate:info": j[2] || (j[2] = (C) => p.value = C),
|
|
1980
1979
|
more: !0
|
|
1981
1980
|
}, he({ _: 2 }, [
|
|
1982
|
-
|
|
1983
|
-
name:
|
|
1981
|
+
W(A.$slots, (C, R, Q) => ({
|
|
1982
|
+
name: R,
|
|
1984
1983
|
fn: D((te) => [
|
|
1985
|
-
S(
|
|
1984
|
+
S(A.$slots, R, { model: a.value }, void 0, !0)
|
|
1986
1985
|
])
|
|
1987
1986
|
}))
|
|
1988
1987
|
]), 1032, ["modelValue", "info"])
|
|
@@ -1992,23 +1991,23 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
1992
1991
|
]),
|
|
1993
1992
|
_: 2
|
|
1994
1993
|
}, [
|
|
1995
|
-
(k = (
|
|
1994
|
+
(k = (V = (s = (b = (_ = a.value) == null ? void 0 : _.query) == null ? void 0 : b.more) == null ? void 0 : s.dialog) == null ? void 0 : V.footer) != null && k.hidden ? void 0 : {
|
|
1996
1995
|
name: "footer",
|
|
1997
1996
|
fn: D(() => [
|
|
1998
1997
|
X("div", _t(el(a.value.query.more.dialog.footer)), [
|
|
1999
|
-
K(z(
|
|
1998
|
+
K(z(Oe), I(a.value.query.query, {
|
|
2000
1999
|
onClick: j[4] || (j[4] = (C) => a.value.query.query.click())
|
|
2001
2000
|
}), {
|
|
2002
2001
|
default: D(() => [
|
|
2003
|
-
|
|
2002
|
+
Ye(De(a.value.query.query.label), 1)
|
|
2004
2003
|
]),
|
|
2005
2004
|
_: 1
|
|
2006
2005
|
}, 16),
|
|
2007
|
-
K(z(
|
|
2006
|
+
K(z(Oe), I(a.value.query.reset, {
|
|
2008
2007
|
onClick: j[5] || (j[5] = (C) => a.value.query.reset.click())
|
|
2009
2008
|
}), {
|
|
2010
2009
|
default: D(() => [
|
|
2011
|
-
|
|
2010
|
+
Ye(De(a.value.query.reset.label), 1)
|
|
2012
2011
|
]),
|
|
2013
2012
|
_: 1
|
|
2014
2013
|
}, 16)
|
|
@@ -2023,17 +2022,17 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2023
2022
|
style: { padding: "10px" }
|
|
2024
2023
|
}, {
|
|
2025
2024
|
default: D(() => {
|
|
2026
|
-
var C,
|
|
2025
|
+
var C, R, Q;
|
|
2027
2026
|
return [
|
|
2028
|
-
e.value && !((Q = (
|
|
2027
|
+
e.value && !((Q = (R = (C = a.value) == null ? void 0 : C.query) == null ? void 0 : R.more) != null && Q.hidden) && a.value.query.more.mode == 1 ? (m(), Y("div", Ul, [
|
|
2029
2028
|
X("div", Yl, [
|
|
2030
|
-
a.value.query.more.mode == 1 ? ll((m(),
|
|
2029
|
+
a.value.query.more.mode == 1 ? ll((m(), O(z(mt), I({
|
|
2031
2030
|
key: 0,
|
|
2032
2031
|
onSubmit: j[7] || (j[7] = yt(() => {
|
|
2033
2032
|
}, ["prevent"]))
|
|
2034
2033
|
}, z(Ie)(a.value.query, (te) => !["query", "more", "reset"].includes(te))), {
|
|
2035
2034
|
default: D(() => [
|
|
2036
|
-
(m(),
|
|
2035
|
+
(m(), O(We(v({ slots: A.$slots }, !0))))
|
|
2037
2036
|
]),
|
|
2038
2037
|
_: 1
|
|
2039
2038
|
}, 16)), [
|
|
@@ -2067,15 +2066,15 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2067
2066
|
r.value.forEach((T) => {
|
|
2068
2067
|
T.value = !1;
|
|
2069
2068
|
});
|
|
2070
|
-
},
|
|
2071
|
-
t("excel", r.value, (T,
|
|
2069
|
+
}, f = () => {
|
|
2070
|
+
t("excel", r.value, (T, d = "excel.xls") => {
|
|
2072
2071
|
if (!T) {
|
|
2073
2072
|
console.error("下载链接无效");
|
|
2074
2073
|
return;
|
|
2075
2074
|
}
|
|
2076
2075
|
try {
|
|
2077
2076
|
const v = document.createElement("a");
|
|
2078
|
-
v.href = T, v.download =
|
|
2077
|
+
v.href = T, v.download = d, v.style.display = "none", document.body.appendChild(v), v.click(), document.body.removeChild(v);
|
|
2079
2078
|
} catch (v) {
|
|
2080
2079
|
console.error("下载文件时出现错误:", v);
|
|
2081
2080
|
}
|
|
@@ -2087,13 +2086,13 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2087
2086
|
onEnd: () => {
|
|
2088
2087
|
T.toArray();
|
|
2089
2088
|
}
|
|
2090
|
-
}),
|
|
2089
|
+
}), d = T;
|
|
2091
2090
|
rl(() => {
|
|
2092
|
-
|
|
2091
|
+
d && d.destroy();
|
|
2093
2092
|
});
|
|
2094
|
-
}), (T,
|
|
2095
|
-
const v = L("el-divider"), n = L("el-alert"),
|
|
2096
|
-
return m(),
|
|
2093
|
+
}), (T, d) => {
|
|
2094
|
+
const v = L("el-divider"), n = L("el-alert"), c = L("el-checkbox"), w = L("el-button");
|
|
2095
|
+
return m(), Y("div", Hl, [
|
|
2097
2096
|
X("div", zl, [
|
|
2098
2097
|
X("div", Pl, [
|
|
2099
2098
|
X("a", {
|
|
@@ -2113,20 +2112,20 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2113
2112
|
closable: !1,
|
|
2114
2113
|
style: { "margin-bottom": "10px" }
|
|
2115
2114
|
}),
|
|
2116
|
-
|
|
2115
|
+
d[0] || (d[0] = X("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2117
2116
|
X("div", jl, [
|
|
2118
|
-
(m(!0),
|
|
2117
|
+
(m(!0), Y(Z, null, W(r.value, (A) => (m(), O(c, {
|
|
2119
2118
|
class: "check-box-hover",
|
|
2120
2119
|
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" },
|
|
2121
|
-
"data-id":
|
|
2122
|
-
modelValue:
|
|
2123
|
-
"onUpdate:modelValue": (j) =>
|
|
2124
|
-
key:
|
|
2125
|
-
title:
|
|
2120
|
+
"data-id": A.key,
|
|
2121
|
+
modelValue: A.value,
|
|
2122
|
+
"onUpdate:modelValue": (j) => A.value = j,
|
|
2123
|
+
key: A.key,
|
|
2124
|
+
title: A.label
|
|
2126
2125
|
}, {
|
|
2127
2126
|
default: D(() => [
|
|
2128
2127
|
X("span", {
|
|
2129
|
-
textContent:
|
|
2128
|
+
textContent: De(A.label),
|
|
2130
2129
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2131
2130
|
}, null, 8, Nl)
|
|
2132
2131
|
]),
|
|
@@ -2137,12 +2136,12 @@ const Et = /* @__PURE__ */ Ht(kl), Pt = {
|
|
|
2137
2136
|
X("div", Wl, [
|
|
2138
2137
|
K(w, {
|
|
2139
2138
|
type: "primary",
|
|
2140
|
-
onClick:
|
|
2139
|
+
onClick: f,
|
|
2141
2140
|
icon: z(Rt),
|
|
2142
|
-
disabled: r.value.filter((
|
|
2141
|
+
disabled: r.value.filter((A) => A.value).length < 1
|
|
2143
2142
|
}, {
|
|
2144
2143
|
default: D(() => [
|
|
2145
|
-
|
|
2144
|
+
Ye(De(a.commitText), 1)
|
|
2146
2145
|
]),
|
|
2147
2146
|
_: 1
|
|
2148
2147
|
}, 8, ["icon", "disabled"])
|
|
@@ -2269,23 +2268,23 @@ const na = {
|
|
|
2269
2268
|
}),
|
|
2270
2269
|
emits: /* @__PURE__ */ Xe(["setting-drag-end", "select-all"], ["update:modelValue"]),
|
|
2271
2270
|
setup(o, { emit: u }) {
|
|
2272
|
-
const a = o, t = u, r = re([]), e = Qe(o, "modelValue"), p = async (n,
|
|
2273
|
-
n ? (e.value[
|
|
2274
|
-
},
|
|
2271
|
+
const a = o, t = u, r = re([]), e = Qe(o, "modelValue"), p = async (n, c) => {
|
|
2272
|
+
n ? (e.value[c].showCol = !0, await ht(a.tuid, c, "del")) : (e.value[c].showCol = !1, await ht(a.tuid, c, "add"));
|
|
2273
|
+
}, f = () => {
|
|
2275
2274
|
const n = document.getElementById("cols");
|
|
2276
2275
|
if (n) {
|
|
2277
|
-
let
|
|
2276
|
+
let c = Lt.create(n, {
|
|
2278
2277
|
animation: 150,
|
|
2279
2278
|
filter: ".filtered",
|
|
2280
2279
|
sort: !0,
|
|
2281
2280
|
onEnd: async () => {
|
|
2282
|
-
let w =
|
|
2281
|
+
let w = c.toArray();
|
|
2283
2282
|
try {
|
|
2284
|
-
ra(a.tuid, w).then((
|
|
2283
|
+
ra(a.tuid, w).then((A) => {
|
|
2285
2284
|
t("setting-drag-end");
|
|
2286
2285
|
});
|
|
2287
|
-
} catch (
|
|
2288
|
-
console.error("列排序保存信息时出错:",
|
|
2286
|
+
} catch (A) {
|
|
2287
|
+
console.error("列排序保存信息时出错:", A), Ge({
|
|
2289
2288
|
type: "error",
|
|
2290
2289
|
message: "列排序保存信息失败!"
|
|
2291
2290
|
});
|
|
@@ -2306,12 +2305,12 @@ const na = {
|
|
|
2306
2305
|
message: "全选列保存信息失败!"
|
|
2307
2306
|
});
|
|
2308
2307
|
}
|
|
2309
|
-
},
|
|
2308
|
+
}, d = async () => {
|
|
2310
2309
|
try {
|
|
2311
|
-
let n = r.value.filter((
|
|
2312
|
-
n.forEach((
|
|
2313
|
-
|
|
2314
|
-
}), ht(a.tuid, n.map((
|
|
2310
|
+
let n = r.value.filter((c) => !c.alwaysShow && c.value != "control" && c.value != "hidden");
|
|
2311
|
+
n.forEach((c) => {
|
|
2312
|
+
c.showCol = !1;
|
|
2313
|
+
}), ht(a.tuid, n.map((c) => c.value), "delAll").then((c) => {
|
|
2315
2314
|
t("select-all");
|
|
2316
2315
|
});
|
|
2317
2316
|
} catch (n) {
|
|
@@ -2337,25 +2336,25 @@ const na = {
|
|
|
2337
2336
|
});
|
|
2338
2337
|
};
|
|
2339
2338
|
return nt(async () => {
|
|
2340
|
-
r.value = Object.entries(e.value).filter(([, n]) => n.visible !== !1).filter(([, n]) => n.type != "hidden").map(([n,
|
|
2341
|
-
label:
|
|
2339
|
+
r.value = Object.entries(e.value).filter(([, n]) => n.visible !== !1).filter(([, n]) => n.type != "hidden").map(([n, c]) => ({
|
|
2340
|
+
label: c.label,
|
|
2342
2341
|
value: n,
|
|
2343
|
-
alwaysShow:
|
|
2344
|
-
showCol:
|
|
2345
|
-
sort:
|
|
2346
|
-
width:
|
|
2347
|
-
})).sort((n,
|
|
2348
|
-
}), (n,
|
|
2349
|
-
const w = L("el-divider"),
|
|
2350
|
-
return m(),
|
|
2342
|
+
alwaysShow: c.alwaysShow,
|
|
2343
|
+
showCol: c.showCol !== !1,
|
|
2344
|
+
sort: c.sort || 0,
|
|
2345
|
+
width: c == null ? void 0 : c.width
|
|
2346
|
+
})).sort((n, c) => n.sort - c.sort), f();
|
|
2347
|
+
}), (n, c) => {
|
|
2348
|
+
const w = L("el-divider"), A = L("el-alert"), j = L("el-checkbox");
|
|
2349
|
+
return m(), Y("div", null, [
|
|
2351
2350
|
X("div", na, [
|
|
2352
2351
|
X("a", { onClick: T }, "全选"),
|
|
2353
2352
|
K(w, { direction: "vertical" }),
|
|
2354
|
-
X("a", { onClick:
|
|
2353
|
+
X("a", { onClick: d }, "全不选"),
|
|
2355
2354
|
K(w, { direction: "vertical" }),
|
|
2356
2355
|
X("a", { onClick: v }, "复位")
|
|
2357
2356
|
]),
|
|
2358
|
-
K(
|
|
2357
|
+
K(A, {
|
|
2359
2358
|
title: "拖动表格列标题可以改变表格列显示顺序 !",
|
|
2360
2359
|
type: "warning",
|
|
2361
2360
|
"show-icon": "",
|
|
@@ -2364,12 +2363,12 @@ const na = {
|
|
|
2364
2363
|
}),
|
|
2365
2364
|
X("div", null, [
|
|
2366
2365
|
X("div", ua, [
|
|
2367
|
-
(m(!0),
|
|
2366
|
+
(m(!0), Y(Z, null, W(r.value, (P) => (m(), O(j, {
|
|
2368
2367
|
modelValue: P.showCol,
|
|
2369
|
-
"onUpdate:modelValue": (
|
|
2368
|
+
"onUpdate:modelValue": (B) => P.showCol = B,
|
|
2370
2369
|
"data-id": P.value,
|
|
2371
2370
|
class: Ot(["check-box-hover", P.value == "control" ? "filtered" : ""]),
|
|
2372
|
-
onChange: (
|
|
2371
|
+
onChange: (B) => p(B, P.value),
|
|
2373
2372
|
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" },
|
|
2374
2373
|
value: P.value,
|
|
2375
2374
|
title: P.label,
|
|
@@ -2378,7 +2377,7 @@ const na = {
|
|
|
2378
2377
|
}, {
|
|
2379
2378
|
default: D(() => [
|
|
2380
2379
|
X("span", {
|
|
2381
|
-
textContent:
|
|
2380
|
+
textContent: De(P.label),
|
|
2382
2381
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2383
2382
|
}, null, 8, sa)
|
|
2384
2383
|
]),
|
|
@@ -2389,7 +2388,7 @@ const na = {
|
|
|
2389
2388
|
]);
|
|
2390
2389
|
};
|
|
2391
2390
|
}
|
|
2392
|
-
}, da = /* @__PURE__ */ Ze(ia, [["__scopeId", "data-v-adb08f30"]]),
|
|
2391
|
+
}, da = /* @__PURE__ */ Ze(ia, [["__scopeId", "data-v-adb08f30"]]), ca = { class: "title" }, fa = { class: "content" }, va = {
|
|
2393
2392
|
__name: "g-cell-toopTip",
|
|
2394
2393
|
props: {
|
|
2395
2394
|
content: {
|
|
@@ -2405,11 +2404,11 @@ const na = {
|
|
|
2405
2404
|
const u = o, a = () => {
|
|
2406
2405
|
u.content ? (navigator.clipboard.writeText(u.content), Ge.success("复制成功")) : Ge.warning("没有内容可复制");
|
|
2407
2406
|
};
|
|
2408
|
-
return (t, r) => (m(),
|
|
2407
|
+
return (t, r) => (m(), Y("div", {
|
|
2409
2408
|
class: "g-cell-toopTip",
|
|
2410
|
-
style:
|
|
2409
|
+
style: qe({ width: u.column.width + "px" })
|
|
2411
2410
|
}, [
|
|
2412
|
-
X("div",
|
|
2411
|
+
X("div", ca, [
|
|
2413
2412
|
r[0] || (r[0] = X("span", { class: "title-text" }, "内容", -1)),
|
|
2414
2413
|
X("span", {
|
|
2415
2414
|
class: "copy-btn",
|
|
@@ -2419,7 +2418,7 @@ const na = {
|
|
|
2419
2418
|
K(z(ml))
|
|
2420
2419
|
])
|
|
2421
2420
|
]),
|
|
2422
|
-
X("div",
|
|
2421
|
+
X("div", fa, De(u.content), 1)
|
|
2423
2422
|
], 4));
|
|
2424
2423
|
}
|
|
2425
2424
|
}, ma = /* @__PURE__ */ Ze(va, [["__scopeId", "data-v-f28912da"]]);
|
|
@@ -2535,32 +2534,32 @@ function ya(o) {
|
|
|
2535
2534
|
(function() {
|
|
2536
2535
|
var o = pa, u = Vt.utf8, a = ha, t = Vt.bin, r = function(e, p) {
|
|
2537
2536
|
e.constructor == String ? p && p.encoding === "binary" ? e = t.stringToBytes(e) : e = u.stringToBytes(e) : a(e) ? e = Array.prototype.slice.call(e, 0) : !Array.isArray(e) && e.constructor !== Uint8Array && (e = e.toString());
|
|
2538
|
-
for (var
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
for (var
|
|
2542
|
-
var
|
|
2543
|
-
|
|
2537
|
+
for (var f = o.bytesToWords(e), T = e.length * 8, d = 1732584193, v = -271733879, n = -1732584194, c = 271733878, w = 0; w < f.length; w++)
|
|
2538
|
+
f[w] = (f[w] << 8 | f[w] >>> 24) & 16711935 | (f[w] << 24 | f[w] >>> 8) & 4278255360;
|
|
2539
|
+
f[T >>> 5] |= 128 << T % 32, f[(T + 64 >>> 9 << 4) + 14] = T;
|
|
2540
|
+
for (var A = r._ff, j = r._gg, P = r._hh, B = r._ii, w = 0; w < f.length; w += 16) {
|
|
2541
|
+
var fe = d, ue = v, Ce = n, ce = c;
|
|
2542
|
+
d = A(d, v, n, c, f[w + 0], 7, -680876936), c = A(c, d, v, n, f[w + 1], 12, -389564586), n = A(n, c, d, v, f[w + 2], 17, 606105819), v = A(v, n, c, d, f[w + 3], 22, -1044525330), d = A(d, v, n, c, f[w + 4], 7, -176418897), c = A(c, d, v, n, f[w + 5], 12, 1200080426), n = A(n, c, d, v, f[w + 6], 17, -1473231341), v = A(v, n, c, d, f[w + 7], 22, -45705983), d = A(d, v, n, c, f[w + 8], 7, 1770035416), c = A(c, d, v, n, f[w + 9], 12, -1958414417), n = A(n, c, d, v, f[w + 10], 17, -42063), v = A(v, n, c, d, f[w + 11], 22, -1990404162), d = A(d, v, n, c, f[w + 12], 7, 1804603682), c = A(c, d, v, n, f[w + 13], 12, -40341101), n = A(n, c, d, v, f[w + 14], 17, -1502002290), v = A(v, n, c, d, f[w + 15], 22, 1236535329), d = j(d, v, n, c, f[w + 1], 5, -165796510), c = j(c, d, v, n, f[w + 6], 9, -1069501632), n = j(n, c, d, v, f[w + 11], 14, 643717713), v = j(v, n, c, d, f[w + 0], 20, -373897302), d = j(d, v, n, c, f[w + 5], 5, -701558691), c = j(c, d, v, n, f[w + 10], 9, 38016083), n = j(n, c, d, v, f[w + 15], 14, -660478335), v = j(v, n, c, d, f[w + 4], 20, -405537848), d = j(d, v, n, c, f[w + 9], 5, 568446438), c = j(c, d, v, n, f[w + 14], 9, -1019803690), n = j(n, c, d, v, f[w + 3], 14, -187363961), v = j(v, n, c, d, f[w + 8], 20, 1163531501), d = j(d, v, n, c, f[w + 13], 5, -1444681467), c = j(c, d, v, n, f[w + 2], 9, -51403784), n = j(n, c, d, v, f[w + 7], 14, 1735328473), v = j(v, n, c, d, f[w + 12], 20, -1926607734), d = P(d, v, n, c, f[w + 5], 4, -378558), c = P(c, d, v, n, f[w + 8], 11, -2022574463), n = P(n, c, d, v, f[w + 11], 16, 1839030562), v = P(v, n, c, d, f[w + 14], 23, -35309556), d = P(d, v, n, c, f[w + 1], 4, -1530992060), c = P(c, d, v, n, f[w + 4], 11, 1272893353), n = P(n, c, d, v, f[w + 7], 16, -155497632), v = P(v, n, c, d, f[w + 10], 23, -1094730640), d = P(d, v, n, c, f[w + 13], 4, 681279174), c = P(c, d, v, n, f[w + 0], 11, -358537222), n = P(n, c, d, v, f[w + 3], 16, -722521979), v = P(v, n, c, d, f[w + 6], 23, 76029189), d = P(d, v, n, c, f[w + 9], 4, -640364487), c = P(c, d, v, n, f[w + 12], 11, -421815835), n = P(n, c, d, v, f[w + 15], 16, 530742520), v = P(v, n, c, d, f[w + 2], 23, -995338651), d = B(d, v, n, c, f[w + 0], 6, -198630844), c = B(c, d, v, n, f[w + 7], 10, 1126891415), n = B(n, c, d, v, f[w + 14], 15, -1416354905), v = B(v, n, c, d, f[w + 5], 21, -57434055), d = B(d, v, n, c, f[w + 12], 6, 1700485571), c = B(c, d, v, n, f[w + 3], 10, -1894986606), n = B(n, c, d, v, f[w + 10], 15, -1051523), v = B(v, n, c, d, f[w + 1], 21, -2054922799), d = B(d, v, n, c, f[w + 8], 6, 1873313359), c = B(c, d, v, n, f[w + 15], 10, -30611744), n = B(n, c, d, v, f[w + 6], 15, -1560198380), v = B(v, n, c, d, f[w + 13], 21, 1309151649), d = B(d, v, n, c, f[w + 4], 6, -145523070), c = B(c, d, v, n, f[w + 11], 10, -1120210379), n = B(n, c, d, v, f[w + 2], 15, 718787259), v = B(v, n, c, d, f[w + 9], 21, -343485551), d = d + fe >>> 0, v = v + ue >>> 0, n = n + Ce >>> 0, c = c + ce >>> 0;
|
|
2544
2543
|
}
|
|
2545
|
-
return o.endian([
|
|
2544
|
+
return o.endian([d, v, n, c]);
|
|
2546
2545
|
};
|
|
2547
|
-
r._ff = function(e, p,
|
|
2548
|
-
var
|
|
2549
|
-
return (
|
|
2550
|
-
}, r._gg = function(e, p,
|
|
2551
|
-
var
|
|
2552
|
-
return (
|
|
2553
|
-
}, r._hh = function(e, p,
|
|
2554
|
-
var
|
|
2555
|
-
return (
|
|
2556
|
-
}, r._ii = function(e, p,
|
|
2557
|
-
var
|
|
2558
|
-
return (
|
|
2546
|
+
r._ff = function(e, p, f, T, d, v, n) {
|
|
2547
|
+
var c = e + (p & f | ~p & T) + (d >>> 0) + n;
|
|
2548
|
+
return (c << v | c >>> 32 - v) + p;
|
|
2549
|
+
}, r._gg = function(e, p, f, T, d, v, n) {
|
|
2550
|
+
var c = e + (p & T | f & ~T) + (d >>> 0) + n;
|
|
2551
|
+
return (c << v | c >>> 32 - v) + p;
|
|
2552
|
+
}, r._hh = function(e, p, f, T, d, v, n) {
|
|
2553
|
+
var c = e + (p ^ f ^ T) + (d >>> 0) + n;
|
|
2554
|
+
return (c << v | c >>> 32 - v) + p;
|
|
2555
|
+
}, r._ii = function(e, p, f, T, d, v, n) {
|
|
2556
|
+
var c = e + (f ^ (p | ~T)) + (d >>> 0) + n;
|
|
2557
|
+
return (c << v | c >>> 32 - v) + p;
|
|
2559
2558
|
}, r._blocksize = 16, r._digestsize = 16, jt.exports = function(e, p) {
|
|
2560
2559
|
if (e == null)
|
|
2561
2560
|
throw new Error("Illegal argument " + e);
|
|
2562
|
-
var
|
|
2563
|
-
return p && p.asBytes ?
|
|
2561
|
+
var f = o.wordsToBytes(r(e, p));
|
|
2562
|
+
return p && p.asBytes ? f : p && p.asString ? t.bytesToString(f) : o.bytesToHex(f);
|
|
2564
2563
|
};
|
|
2565
2564
|
})();
|
|
2566
2565
|
var ga = jt.exports;
|
|
@@ -2589,10 +2588,10 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2589
2588
|
"row-save"
|
|
2590
2589
|
], ["update:modelValue"]),
|
|
2591
2590
|
setup(o, { expose: u, emit: a }) {
|
|
2592
|
-
var ut, st, it, dt,
|
|
2593
|
-
const t = re(""), r = a, e = Qe(o, "modelValue"), p = Tt("options"),
|
|
2594
|
-
|
|
2595
|
-
const n = re(!1),
|
|
2591
|
+
var ut, st, it, dt, ct, ft, vt;
|
|
2592
|
+
const t = re(""), r = a, e = Qe(o, "modelValue"), p = Tt("options"), f = re({}), T = re(null), d = re(null), v = Object.entries(e.value).filter(([l, i]) => (i == null ? void 0 : i.search) !== void 0).map(([l, i]) => [l, i.value]);
|
|
2593
|
+
f.value = Object.fromEntries(v);
|
|
2594
|
+
const n = re(!1), c = [
|
|
2596
2595
|
"type",
|
|
2597
2596
|
"index",
|
|
2598
2597
|
"label",
|
|
@@ -2621,7 +2620,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2621
2620
|
"filter-multiple",
|
|
2622
2621
|
"filter-method",
|
|
2623
2622
|
"filtered-value"
|
|
2624
|
-
], w = re([]),
|
|
2623
|
+
], w = re([]), A = Ft(), j = re({}), P = re([]), B = re(null), fe = re(""), ue = re("/"), Ce = re({
|
|
2625
2624
|
autoWatch: !1,
|
|
2626
2625
|
data: [],
|
|
2627
2626
|
border: !0,
|
|
@@ -2631,13 +2630,13 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2631
2630
|
type: "hidden",
|
|
2632
2631
|
load: async () => {
|
|
2633
2632
|
e.value.table.page.pageSize = await aa(ue.value);
|
|
2634
|
-
let { currentPage: l, pageSize:
|
|
2633
|
+
let { currentPage: l, pageSize: i } = e.value.table.page;
|
|
2635
2634
|
try {
|
|
2636
2635
|
r(
|
|
2637
2636
|
"load",
|
|
2638
|
-
{ currentPage: l, pageSize:
|
|
2639
|
-
(h = [], $ = 0, { fields:
|
|
2640
|
-
var
|
|
2637
|
+
{ currentPage: l, pageSize: i, ...f.value },
|
|
2638
|
+
(h = [], $ = 0, { fields: x = [], sums: U = {} } = {}) => {
|
|
2639
|
+
var N;
|
|
2641
2640
|
if (!Array.isArray(h)) {
|
|
2642
2641
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), Ge.error("数据加载失败,请检查数据格式。");
|
|
2643
2642
|
return;
|
|
@@ -2646,19 +2645,19 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2646
2645
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Ge.error("数据加载失败,请检查数据格式。");
|
|
2647
2646
|
return;
|
|
2648
2647
|
}
|
|
2649
|
-
e.value.table.data = h, ((
|
|
2648
|
+
e.value.table.data = h, ((N = e.value.control) == null ? void 0 : N.add(B.value, e).inline) === !0 && e.value.table.data.unshift(B.value), e.value.table.page.total = $, P.value = x, j.value = U, we(), fe.value = Math.random().toString(36).substring(2);
|
|
2650
2649
|
},
|
|
2651
|
-
|
|
2650
|
+
B.value
|
|
2652
2651
|
);
|
|
2653
2652
|
} catch (h) {
|
|
2654
2653
|
console.error("触发 load 事件时出现错误:", h), Ge.error("数据加载时出现错误,请稍后重试。");
|
|
2655
2654
|
}
|
|
2656
2655
|
},
|
|
2657
|
-
onHeaderDragend: (l,
|
|
2656
|
+
onHeaderDragend: (l, i, h) => {
|
|
2658
2657
|
Jl(ue.value, h.property, l);
|
|
2659
2658
|
},
|
|
2660
|
-
onRowDblclick: (l,
|
|
2661
|
-
e.value.table.dblclickType == "edit" ? b(l,
|
|
2659
|
+
onRowDblclick: (l, i, h) => {
|
|
2660
|
+
e.value.table.dblclickType == "edit" ? b(l, i, h, e) : e.value.table.dblclickType == "view" ? V(l, i, h, e) : e.value.table.dblclickType == "delete" ? s(l, i, h, e) : e.value.table.dblclickType(l, i, h, e);
|
|
2662
2661
|
},
|
|
2663
2662
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
2664
2663
|
page: {
|
|
@@ -2684,18 +2683,18 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2684
2683
|
}
|
|
2685
2684
|
},
|
|
2686
2685
|
dblclickType: "edit",
|
|
2687
|
-
"summary-method": ({ columns: l, data:
|
|
2688
|
-
onSortChange: ({ column: l, prop:
|
|
2686
|
+
"summary-method": ({ columns: l, data: i }, h) => h,
|
|
2687
|
+
onSortChange: ({ column: l, prop: i, order: h }, $) => {
|
|
2689
2688
|
}
|
|
2690
2689
|
});
|
|
2691
|
-
e.value.table =
|
|
2692
|
-
|
|
2690
|
+
e.value.table = Ve(
|
|
2691
|
+
Ce.value,
|
|
2693
2692
|
p == null ? void 0 : p.table,
|
|
2694
2693
|
e.value.table,
|
|
2695
|
-
|
|
2694
|
+
A
|
|
2696
2695
|
// 继承父组件的属性
|
|
2697
2696
|
);
|
|
2698
|
-
const
|
|
2697
|
+
const ce = {
|
|
2699
2698
|
type: "control",
|
|
2700
2699
|
label: "操作",
|
|
2701
2700
|
align: "center",
|
|
@@ -2704,36 +2703,36 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2704
2703
|
fixed: "right",
|
|
2705
2704
|
style: { ...(st = (ut = e.value) == null ? void 0 : ut.control) == null ? void 0 : st.style },
|
|
2706
2705
|
validate: async (l) => await !0,
|
|
2707
|
-
view: (l,
|
|
2706
|
+
view: (l, i, h, $) => ({
|
|
2708
2707
|
label: "查看",
|
|
2709
2708
|
text: !0,
|
|
2710
2709
|
type: "success",
|
|
2711
2710
|
mode: "dialog",
|
|
2712
|
-
icon: () =>
|
|
2711
|
+
icon: () => _e(pl),
|
|
2713
2712
|
auth: () => {
|
|
2714
|
-
var
|
|
2715
|
-
return !(((
|
|
2713
|
+
var x;
|
|
2714
|
+
return !(((x = $ == null ? void 0 : $.control) == null ? void 0 : x.add(l, $).inline) === !0 && h === 0);
|
|
2716
2715
|
}
|
|
2717
2716
|
}),
|
|
2718
|
-
edit: (l,
|
|
2717
|
+
edit: (l, i, h, $) => ({
|
|
2719
2718
|
label: "编辑",
|
|
2720
2719
|
text: !0,
|
|
2721
2720
|
type: "primary",
|
|
2722
2721
|
mode: "dialog",
|
|
2723
|
-
icon: () =>
|
|
2722
|
+
icon: () => _e(hl),
|
|
2724
2723
|
auth: () => {
|
|
2725
|
-
var
|
|
2726
|
-
return ((
|
|
2724
|
+
var x;
|
|
2725
|
+
return ((x = $ == null ? void 0 : $.control) == null ? void 0 : x.add(l, $).inline) !== !0;
|
|
2727
2726
|
}
|
|
2728
2727
|
}),
|
|
2729
|
-
delete: (l,
|
|
2728
|
+
delete: (l, i, h, $) => ({
|
|
2730
2729
|
text: !0,
|
|
2731
2730
|
label: "删除",
|
|
2732
2731
|
type: "danger",
|
|
2733
|
-
icon: () =>
|
|
2732
|
+
icon: () => _e(Yt),
|
|
2734
2733
|
auth: () => {
|
|
2735
|
-
var
|
|
2736
|
-
return !(((
|
|
2734
|
+
var x;
|
|
2735
|
+
return !(((x = $.control) == null ? void 0 : x.add(l, $).inline) === !0 && h === 0);
|
|
2737
2736
|
},
|
|
2738
2737
|
dialog: {
|
|
2739
2738
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -2745,24 +2744,27 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2745
2744
|
}
|
|
2746
2745
|
}
|
|
2747
2746
|
}),
|
|
2748
|
-
save: (l,
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2747
|
+
save: (l, i, h, $) => {
|
|
2748
|
+
var x, U;
|
|
2749
|
+
return {
|
|
2750
|
+
label: ((x = $.control) == null ? void 0 : x.add(l, $).inline) !== !0 ? "保存" : h === 0 ? "新增" : "保存",
|
|
2751
|
+
text: !0,
|
|
2752
|
+
icon: () => _e(It),
|
|
2753
|
+
type: ((U = $.control) == null ? void 0 : U.add(l, $).inline) !== !0 || h === 0 ? "primary" : "success",
|
|
2754
|
+
sort: -1,
|
|
2755
|
+
auth: () => {
|
|
2756
|
+
var N;
|
|
2757
|
+
return ((N = $.control) == null ? void 0 : N.add(l, $).inline) === !0;
|
|
2758
|
+
}
|
|
2759
|
+
};
|
|
2760
|
+
},
|
|
2761
|
+
add: (l, i) => ({
|
|
2760
2762
|
label: "新增",
|
|
2761
2763
|
text: !1,
|
|
2762
2764
|
type: "primary",
|
|
2763
2765
|
mode: "dialog",
|
|
2764
2766
|
inline: !1,
|
|
2765
|
-
icon: () =>
|
|
2767
|
+
icon: () => _e(yl),
|
|
2766
2768
|
auth: () => !0
|
|
2767
2769
|
}),
|
|
2768
2770
|
download: (l) => ({
|
|
@@ -2770,7 +2772,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2770
2772
|
text: !1,
|
|
2771
2773
|
type: "primary",
|
|
2772
2774
|
mode: "dialog",
|
|
2773
|
-
icon: () =>
|
|
2775
|
+
icon: () => _e(Rt),
|
|
2774
2776
|
excelLabel: "下载EXCEL",
|
|
2775
2777
|
auth: () => !0
|
|
2776
2778
|
}),
|
|
@@ -2779,65 +2781,65 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2779
2781
|
text: !1,
|
|
2780
2782
|
type: "primary",
|
|
2781
2783
|
mode: "dialog",
|
|
2782
|
-
icon: () =>
|
|
2784
|
+
icon: () => _e(gl),
|
|
2783
2785
|
auth: () => !0
|
|
2784
2786
|
}),
|
|
2785
|
-
dropdown: (l,
|
|
2787
|
+
dropdown: (l, i, h, $) => ({
|
|
2786
2788
|
label: "编辑",
|
|
2787
2789
|
operate: "edit",
|
|
2788
2790
|
"split-button": !0,
|
|
2789
2791
|
type: "primary",
|
|
2790
2792
|
size: "small",
|
|
2791
|
-
auth: () => !($.control.add($).inline === !0 && h == 0),
|
|
2793
|
+
auth: () => !($.control.add(l, $).inline === !0 && h == 0),
|
|
2792
2794
|
onClick: () => {
|
|
2793
|
-
var
|
|
2794
|
-
let
|
|
2795
|
-
|
|
2795
|
+
var U;
|
|
2796
|
+
let x = (U = ye(l, i, h, $)) == null ? void 0 : U.operate;
|
|
2797
|
+
x === "edit" ? b(l, i, h, $) : x === "delete" ? s(l, i, h, $) : x === "view" && V(l, i, h, $);
|
|
2796
2798
|
},
|
|
2797
2799
|
"button-props": { round: !0, plain: !0 }
|
|
2798
2800
|
})
|
|
2799
2801
|
};
|
|
2800
|
-
e.value.control =
|
|
2801
|
-
|
|
2802
|
+
e.value.control = Ve(
|
|
2803
|
+
ce,
|
|
2802
2804
|
p == null ? void 0 : p.control,
|
|
2803
2805
|
(it = e.value) == null ? void 0 : it.control
|
|
2804
2806
|
);
|
|
2805
|
-
const ie = (l,
|
|
2806
|
-
const h = e.value.control[l], $ =
|
|
2807
|
-
var
|
|
2808
|
-
if (!
|
|
2807
|
+
const ie = (l, i = !0) => {
|
|
2808
|
+
const h = e.value.control[l], $ = i ? (x, U, N, me) => {
|
|
2809
|
+
var Re, He, Je;
|
|
2810
|
+
if (!x || !U || N == null)
|
|
2809
2811
|
return console.warn(`merge${l.charAt(0).toUpperCase() + l.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
2810
|
-
const
|
|
2811
|
-
return
|
|
2812
|
-
} : (
|
|
2813
|
-
var
|
|
2814
|
-
const
|
|
2815
|
-
return
|
|
2812
|
+
const ke = ((Re = ce[l]) == null ? void 0 : Re.call(ce, x, U, N, me)) || {}, Ae = ((Je = (He = p == null ? void 0 : p.control) == null ? void 0 : He[l]) == null ? void 0 : Je.call(He, x, U, N, me)) || {}, Be = (h == null ? void 0 : h(x, U, N, me)) || {};
|
|
2813
|
+
return Ve(ke, Ae, Be) || {};
|
|
2814
|
+
} : (x, U) => {
|
|
2815
|
+
var Ae, Be, Re;
|
|
2816
|
+
const N = ((Ae = ce[l]) == null ? void 0 : Ae.call(ce, x, U)) || {}, me = ((Re = (Be = p == null ? void 0 : p.control) == null ? void 0 : Be[l]) == null ? void 0 : Re.call(Be, x, U)) || {}, ke = (h == null ? void 0 : h(x, U)) || {};
|
|
2817
|
+
return Ve(N, me, ke) || {};
|
|
2816
2818
|
};
|
|
2817
2819
|
e.value.control[l] = $;
|
|
2818
2820
|
};
|
|
2819
2821
|
ie("edit"), ie("delete"), ie("view"), ie("save"), ie("add", !1), ie("download", !1), ie("setting", !1);
|
|
2820
|
-
const ye = (l,
|
|
2821
|
-
var me,
|
|
2822
|
-
if (!l || !
|
|
2822
|
+
const ye = (l, i, h, $) => {
|
|
2823
|
+
var me, ke, Ae, Be, Re, He;
|
|
2824
|
+
if (!l || !i || h == null)
|
|
2823
2825
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2824
|
-
const
|
|
2825
|
-
return
|
|
2826
|
+
const x = ((me = ce.dropdown) == null ? void 0 : me.call(ce, l, i, h, $)) || {}, U = ((Ae = (ke = p == null ? void 0 : p.control) == null ? void 0 : ke.dropdown) == null ? void 0 : Ae.call(ke, l, i, h, $)) || {}, N = ((He = (Re = (Be = e.value) == null ? void 0 : Be.control) == null ? void 0 : Re.dropdown) == null ? void 0 : He.call(Re, l, i, h, $)) || {};
|
|
2827
|
+
return Ve(x, U, N) || {};
|
|
2826
2828
|
}, Fe = {
|
|
2827
2829
|
type: "hidden",
|
|
2828
2830
|
"min-width": 100,
|
|
2829
2831
|
align: "center",
|
|
2830
|
-
formatter: (l,
|
|
2831
|
-
"tooltip-formatter": ({ row: l, column:
|
|
2832
|
+
formatter: (l, i, h, $) => h,
|
|
2833
|
+
"tooltip-formatter": ({ row: l, column: i, cellValue: h }) => _e(ma, { content: h, column: i })
|
|
2832
2834
|
};
|
|
2833
|
-
e.value.tableColumns =
|
|
2835
|
+
e.value.tableColumns = Ve(
|
|
2834
2836
|
Fe,
|
|
2835
2837
|
p == null ? void 0 : p.tableColumns,
|
|
2836
2838
|
(dt = e.value) == null ? void 0 : dt.tableColumns
|
|
2837
|
-
), e.value.form =
|
|
2839
|
+
), e.value.form = Ve(
|
|
2838
2840
|
Pt,
|
|
2839
2841
|
p == null ? void 0 : p.form,
|
|
2840
|
-
(
|
|
2842
|
+
(ct = e.value) == null ? void 0 : ct.form
|
|
2841
2843
|
);
|
|
2842
2844
|
const oe = {
|
|
2843
2845
|
type: "hidden",
|
|
@@ -2846,10 +2848,10 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2846
2848
|
width: "100%"
|
|
2847
2849
|
}
|
|
2848
2850
|
};
|
|
2849
|
-
e.value.formItems =
|
|
2851
|
+
e.value.formItems = Ve(
|
|
2850
2852
|
oe,
|
|
2851
2853
|
p == null ? void 0 : p.formItems,
|
|
2852
|
-
(
|
|
2854
|
+
(ft = e == null ? void 0 : e.value) == null ? void 0 : ft.formItems
|
|
2853
2855
|
);
|
|
2854
2856
|
const se = {
|
|
2855
2857
|
title: "编辑",
|
|
@@ -2864,127 +2866,127 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2864
2866
|
overflow: !0,
|
|
2865
2867
|
max: {
|
|
2866
2868
|
style: {},
|
|
2867
|
-
icon: () =>
|
|
2869
|
+
icon: () => _e(bl)
|
|
2868
2870
|
},
|
|
2869
2871
|
min: {
|
|
2870
2872
|
style: {},
|
|
2871
|
-
icon: () =>
|
|
2873
|
+
icon: () => _e($l)
|
|
2872
2874
|
// 最小化图标
|
|
2873
2875
|
}
|
|
2874
2876
|
};
|
|
2875
|
-
e.value.dialog =
|
|
2877
|
+
e.value.dialog = Ve(
|
|
2876
2878
|
se,
|
|
2877
2879
|
p == null ? void 0 : p.dialog,
|
|
2878
2880
|
(vt = e.value) == null ? void 0 : vt.dialog
|
|
2879
2881
|
);
|
|
2880
|
-
const ne = (l,
|
|
2881
|
-
let h =
|
|
2882
|
-
if (l.decimals && !isNaN(parseFloat(
|
|
2882
|
+
const ne = (l, i) => {
|
|
2883
|
+
let h = i;
|
|
2884
|
+
if (l.decimals && !isNaN(parseFloat(i)) && (typeof l.decimals == "number" ? h = parseFloat(h).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? h = parseFloat(h).toFixed(l.decimals.num) : h = parseFloat(
|
|
2883
2885
|
parseFloat(h).toFixed(l.decimals.num)
|
|
2884
|
-
).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && Et(
|
|
2885
|
-
const
|
|
2886
|
+
).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && Et(i).isValid()) {
|
|
2887
|
+
const x = {
|
|
2886
2888
|
date: "YYYY-MM-DD",
|
|
2887
2889
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2888
2890
|
time: "HH:mm:ss"
|
|
2889
2891
|
};
|
|
2890
|
-
h = l.format ? Et(h).format(l.format) : Et(h).format(
|
|
2892
|
+
h = l.format ? Et(h).format(l.format) : Et(h).format(x[l.type]);
|
|
2891
2893
|
}
|
|
2892
2894
|
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, h = `<span title="${Mt(
|
|
2893
2895
|
parseFloat(h)
|
|
2894
2896
|
)}">${Na(parseFloat(h))}</span>`), l.prefix && h && (h = `<span>${l.prefix}${h}</span>`), l.suffix && h && (h = `${h}<span>${l.suffix}</span>`), h;
|
|
2895
2897
|
}, Ue = (l) => {
|
|
2896
|
-
|
|
2898
|
+
f.value = Object.fromEntries(v), e.value.table.load();
|
|
2897
2899
|
}, M = (l) => {
|
|
2898
|
-
|
|
2899
|
-
}, _ = async (l) => {
|
|
2900
|
-
var
|
|
2900
|
+
f.value = l, e.value.table.load();
|
|
2901
|
+
}, _ = async (l, i) => {
|
|
2902
|
+
var h, $;
|
|
2901
2903
|
e.value.form.modalState = "add", t.value = "add";
|
|
2902
2904
|
try {
|
|
2903
|
-
if (!await ((
|
|
2904
|
-
} catch (
|
|
2905
|
-
console.error("验证失败:",
|
|
2905
|
+
if (!await ((h = e.value.control) == null ? void 0 : h.validate("add", { row: B.value, m: i }))) return;
|
|
2906
|
+
} catch (x) {
|
|
2907
|
+
console.error("验证失败:", x);
|
|
2906
2908
|
return;
|
|
2907
2909
|
}
|
|
2908
|
-
(
|
|
2909
|
-
e.value[
|
|
2910
|
-
}), n.value = !0, r("open", "add", { row:
|
|
2911
|
-
}, b = async (l,
|
|
2912
|
-
var
|
|
2910
|
+
($ = e.value.control.add(l, i)) != null && $.click ? e.value.control.add(l, i).click(B.value, i) : e.value.control.add(l, i).inline === !0 ? (e.value.table.data.unshift(B.value), r("open", "row-add", { row: B.value })) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.add(l, i).mode, e.value.dialog.title = e.value.control.add(l, i).title || e.value.control.add(l, i).label || "新增", Object.keys(B.value).forEach((x) => {
|
|
2911
|
+
e.value[x] && (e.value[x].value = B.value[x]);
|
|
2912
|
+
}), n.value = !0, r("open", "add", { row: B.value, m: i }), gt());
|
|
2913
|
+
}, b = async (l, i, h, $) => {
|
|
2914
|
+
var x, U;
|
|
2913
2915
|
e.value.form.modalState = "edit", t.value = "edit";
|
|
2914
2916
|
try {
|
|
2915
|
-
if (!await ((
|
|
2916
|
-
} catch (
|
|
2917
|
-
console.error("验证失败:",
|
|
2917
|
+
if (!await ((x = e.value.control) == null ? void 0 : x.validate("edit", { row: l, column: i, index: h, m: $ }))) return;
|
|
2918
|
+
} catch (N) {
|
|
2919
|
+
console.error("验证失败:", N);
|
|
2918
2920
|
return;
|
|
2919
2921
|
}
|
|
2920
|
-
(
|
|
2921
|
-
e.value[
|
|
2922
|
-
}), n.value = !0, r("open", "edit", { m: $, row: l, column:
|
|
2923
|
-
}, s = async (l,
|
|
2924
|
-
var
|
|
2922
|
+
(U = e.value.control.edit(l, i, h, $)) != null && U.click ? e.value.control.edit(l, i, h, $).click(l, i, h, $) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit(l, i, h, $).mode, e.value.dialog.title = e.value.control.edit(l, i, h, $).title || e.value.control.edit(l, i, h, $).label || "编辑", Object.keys(l).forEach((N) => {
|
|
2923
|
+
e.value[N] && (e.value[N].value = l[N]);
|
|
2924
|
+
}), n.value = !0, r("open", "edit", { m: $, row: l, column: i, index: h }), gt());
|
|
2925
|
+
}, s = async (l, i, h, $) => {
|
|
2926
|
+
var x, U;
|
|
2925
2927
|
try {
|
|
2926
|
-
if (!await ((
|
|
2927
|
-
} catch (
|
|
2928
|
-
console.error("验证失败:",
|
|
2928
|
+
if (!await ((x = e.value.control) == null ? void 0 : x.validate("delete", { row: l, column: i, index: h, m: $ }))) return;
|
|
2929
|
+
} catch (N) {
|
|
2930
|
+
console.error("验证失败:", N);
|
|
2929
2931
|
return;
|
|
2930
2932
|
}
|
|
2931
|
-
if ((
|
|
2932
|
-
e.value.control.delete(l,
|
|
2933
|
+
if ((U = e.value.control.delete(l, i, h, $)) != null && U.click)
|
|
2934
|
+
e.value.control.delete(l, i, h, $).click(l, i, h, $);
|
|
2933
2935
|
else {
|
|
2934
|
-
let { message:
|
|
2935
|
-
At.confirm(
|
|
2936
|
+
let { message: N, title: me, options: ke } = e.value.control.delete(l, i, h, $).dialog;
|
|
2937
|
+
At.confirm(N, me, ke).then(() => {
|
|
2936
2938
|
r(
|
|
2937
2939
|
"delete",
|
|
2938
|
-
{ row: l, column:
|
|
2939
|
-
(
|
|
2940
|
-
|
|
2940
|
+
{ row: l, column: i, index: h, m: $ },
|
|
2941
|
+
(Ae = !0, Be = !1) => {
|
|
2942
|
+
Ae && (e.value.table.data.splice(h, 1), e.value.table.page.total--), Be && e.value.table.load();
|
|
2941
2943
|
}
|
|
2942
2944
|
);
|
|
2943
2945
|
}).catch(() => {
|
|
2944
2946
|
});
|
|
2945
2947
|
}
|
|
2946
|
-
},
|
|
2947
|
-
var
|
|
2948
|
+
}, V = async (l, i, h, $) => {
|
|
2949
|
+
var x, U;
|
|
2948
2950
|
e.value.form.modalState = void 0, t.value = "view";
|
|
2949
2951
|
try {
|
|
2950
|
-
if (!await ((
|
|
2951
|
-
} catch (
|
|
2952
|
-
console.error("验证失败:",
|
|
2952
|
+
if (!await ((x = e.value.control) == null ? void 0 : x.validate("view", { row: l, column: i, index: h, m: $ }))) return;
|
|
2953
|
+
} catch (N) {
|
|
2954
|
+
console.error("验证失败:", N);
|
|
2953
2955
|
return;
|
|
2954
2956
|
}
|
|
2955
|
-
(
|
|
2956
|
-
e.value[
|
|
2957
|
-
}), n.value = !0, r("open", "view", { m: $, row: l, column:
|
|
2958
|
-
}, k = (l,
|
|
2959
|
-
var
|
|
2960
|
-
(
|
|
2957
|
+
(U = e.value.control.view(l, i, h, $)) != null && U.click ? e.value.control.view(l, i, h, $).click(l, i, h, $) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view(l, i, h, $).mode, e.value.dialog.title = e.value.control.view(l, i, h, $).title || e.value.control.view(l, i, h, $).label || "查看", Object.keys(l).forEach((N) => {
|
|
2958
|
+
e.value[N] && (e.value[N].value = l[N]);
|
|
2959
|
+
}), n.value = !0, r("open", "view", { m: $, row: l, column: i, index: h }), gt());
|
|
2960
|
+
}, k = (l, i, h, $) => {
|
|
2961
|
+
var x;
|
|
2962
|
+
(x = e.value.control.save(l, i, h, $)) != null && x.click ? e.value.control.save(l, i, h, $).click(l, i, h, $) : r(
|
|
2961
2963
|
"row-save",
|
|
2962
|
-
{ row: l, column:
|
|
2963
|
-
(
|
|
2964
|
-
|
|
2965
|
-
|
|
2964
|
+
{ row: l, column: i, index: h, data: e.value.table.data },
|
|
2965
|
+
(U = !0, N = !0) => {
|
|
2966
|
+
U && e.value.table.load(), N && at(() => {
|
|
2967
|
+
B.value = Object.assign(
|
|
2966
2968
|
{},
|
|
2967
2969
|
Object.fromEntries(
|
|
2968
2970
|
Object.entries(
|
|
2969
|
-
Ie(e.value, (me,
|
|
2970
|
-
).map(([me,
|
|
2971
|
+
Ie(e.value, (me, ke) => ke.type != "control" && ke.editor !== !1 && ke.type != "hidden")
|
|
2972
|
+
).map(([me, ke]) => [me, ke.value])
|
|
2971
2973
|
)
|
|
2972
2974
|
);
|
|
2973
2975
|
});
|
|
2974
2976
|
}
|
|
2975
2977
|
);
|
|
2976
|
-
}, C = (l,
|
|
2977
|
-
r("submit", e.value.form.modalState, l,
|
|
2978
|
-
$ && (h === 1 && (n.value = !1), Object.keys(
|
|
2979
|
-
l[
|
|
2980
|
-
}),
|
|
2978
|
+
}, C = (l, i, h) => {
|
|
2979
|
+
r("submit", e.value.form.modalState, l, i, ($) => {
|
|
2980
|
+
$ && (h === 1 && (n.value = !1), Object.keys(B.value).forEach((x) => {
|
|
2981
|
+
l[x] = B.value[x];
|
|
2982
|
+
}), i.table.load());
|
|
2981
2983
|
});
|
|
2982
|
-
},
|
|
2984
|
+
}, R = (l) => {
|
|
2983
2985
|
r("reset", l);
|
|
2984
|
-
}, Q = (l,
|
|
2986
|
+
}, Q = (l, i) => {
|
|
2985
2987
|
var h;
|
|
2986
2988
|
if ((h = l.control.download(l)) != null && h.click)
|
|
2987
|
-
l.control.download(l).click(l,
|
|
2989
|
+
l.control.download(l).click(l, i);
|
|
2988
2990
|
else {
|
|
2989
2991
|
let $ = St(
|
|
2990
2992
|
{
|
|
@@ -2992,11 +2994,11 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
2992
2994
|
size: l.control.download(l).size || 480,
|
|
2993
2995
|
width: l.control.download(l).width || 600,
|
|
2994
2996
|
slots: {
|
|
2995
|
-
default: () =>
|
|
2996
|
-
items:
|
|
2997
|
+
default: () => _e(Xl, {
|
|
2998
|
+
items: i,
|
|
2997
2999
|
commitText: l.control.download(l).excelLabel,
|
|
2998
|
-
onExcel: (
|
|
2999
|
-
r("download",
|
|
3000
|
+
onExcel: (x, U) => {
|
|
3001
|
+
r("download", x, f.value, U), $();
|
|
3000
3002
|
}
|
|
3001
3003
|
})
|
|
3002
3004
|
}
|
|
@@ -3005,14 +3007,14 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3005
3007
|
);
|
|
3006
3008
|
}
|
|
3007
3009
|
}, te = (l) => {
|
|
3008
|
-
var
|
|
3009
|
-
(
|
|
3010
|
+
var i;
|
|
3011
|
+
(i = l.control.setting(l)) != null && i.click ? l.control.setting(l).click(l) : St(
|
|
3010
3012
|
{
|
|
3011
3013
|
title: l.control.setting(l).title || l.control.setting(l).label || "设置",
|
|
3012
3014
|
size: l.control.setting(l).size || 470,
|
|
3013
3015
|
width: l.control.setting(l).width || 600,
|
|
3014
3016
|
slots: {
|
|
3015
|
-
default: () =>
|
|
3017
|
+
default: () => _e(da, {
|
|
3016
3018
|
modelValue: l,
|
|
3017
3019
|
tuid: ue.value,
|
|
3018
3020
|
onSettingDragEnd: async () => {
|
|
@@ -3030,71 +3032,71 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3030
3032
|
{ type: "add", func: _ },
|
|
3031
3033
|
{ type: "download", func: Q },
|
|
3032
3034
|
{ type: "setting", func: te },
|
|
3033
|
-
{ type: "view", func:
|
|
3035
|
+
{ type: "view", func: V },
|
|
3034
3036
|
{ type: "edit", func: b },
|
|
3035
3037
|
{ type: "delete", func: s },
|
|
3036
3038
|
{ type: "save", func: k }
|
|
3037
|
-
], g = (l,
|
|
3038
|
-
var me,
|
|
3039
|
+
], g = (l, i, h, $, x) => E.filter((U) => l.includes(U.type)).map(({ type: U, func: N }) => {
|
|
3040
|
+
var me, ke, Ae;
|
|
3039
3041
|
return {
|
|
3040
|
-
name: `control-${
|
|
3041
|
-
attr: ee == null ? void 0 : ee[
|
|
3042
|
-
func:
|
|
3043
|
-
label: (me = ee == null ? void 0 : ee[
|
|
3044
|
-
sort: ((
|
|
3045
|
-
groupName: ((
|
|
3042
|
+
name: `control-${U}`,
|
|
3043
|
+
attr: ee == null ? void 0 : ee[U](i, h, $, x),
|
|
3044
|
+
func: N,
|
|
3045
|
+
label: (me = ee == null ? void 0 : ee[U](i, h, $, x)) == null ? void 0 : me.label,
|
|
3046
|
+
sort: ((ke = ee == null ? void 0 : ee[U](i, h, $, x)) == null ? void 0 : ke.sort) || 0,
|
|
3047
|
+
groupName: ((Ae = ee == null ? void 0 : ee[U](i, h, $, x)) == null ? void 0 : Ae.groupName) || "default"
|
|
3046
3048
|
};
|
|
3047
|
-
}).sort((
|
|
3048
|
-
const me =
|
|
3049
|
-
return
|
|
3049
|
+
}).sort((U, N) => U.sort - N.sort), le = (l, i, h, $, x) => g(l, i, h, $, x).reduce((U, N) => {
|
|
3050
|
+
const me = N.groupName || "default";
|
|
3051
|
+
return U[me] || (U[me] = []), U[me].push(N), U;
|
|
3050
3052
|
}, {}), be = Ke(
|
|
3051
3053
|
() => Object.fromEntries(
|
|
3052
|
-
Object.entries(e.value).filter(([l,
|
|
3054
|
+
Object.entries(e.value).filter(([l, i]) => i.type !== "hidden").filter(([l, i]) => i.hidden !== !0).filter(([l, i]) => i.visible !== !1).filter(([l, i]) => i.showCol !== !1).map(([l, i]) => (i.sort = typeof i.sort == "number" ? i.sort : 0, [l, i])).sort((l, i) => l[1].sort - i[1].sort)
|
|
3053
3055
|
)
|
|
3054
|
-
), pe = re({}), $e = (l,
|
|
3055
|
-
const h = ($,
|
|
3056
|
-
for (const
|
|
3057
|
-
if (
|
|
3058
|
-
if (
|
|
3059
|
-
const
|
|
3060
|
-
if (
|
|
3056
|
+
), pe = re({}), $e = (l, i) => {
|
|
3057
|
+
const h = ($, x) => {
|
|
3058
|
+
for (const U of $) {
|
|
3059
|
+
if (U.value == x) return U.label;
|
|
3060
|
+
if (U.children) {
|
|
3061
|
+
const N = h(U.children, x);
|
|
3062
|
+
if (N) return N;
|
|
3061
3063
|
}
|
|
3062
3064
|
}
|
|
3063
3065
|
return null;
|
|
3064
3066
|
};
|
|
3065
3067
|
if (l.getDicts) {
|
|
3066
|
-
const $ =
|
|
3067
|
-
return pe.value[$] ? (l.options = pe.value[$], l.formatter || (l.formatter = (
|
|
3068
|
-
pe.value[$] =
|
|
3068
|
+
const $ = i.toString();
|
|
3069
|
+
return pe.value[$] ? (l.options = pe.value[$], l.formatter || (l.formatter = (x, U, N, me) => l.options && h(l.options, N) || N), Promise.resolve()) : l.getDicts(e.value.table.data).then((x) => {
|
|
3070
|
+
pe.value[$] = x, l.options = x, l.formatter || (l.formatter = (U, N, me, ke) => l.options && h(l.options, me) || me);
|
|
3069
3071
|
});
|
|
3070
3072
|
}
|
|
3071
3073
|
return Promise.resolve();
|
|
3072
3074
|
}, we = () => {
|
|
3073
3075
|
const l = [];
|
|
3074
|
-
Object.keys(e.value).forEach((
|
|
3075
|
-
if (e.value[
|
|
3076
|
-
const h = $e(e.value[
|
|
3076
|
+
Object.keys(e.value).forEach((i) => {
|
|
3077
|
+
if (e.value[i].getDicts) {
|
|
3078
|
+
const h = $e(e.value[i], i).then(() => {
|
|
3077
3079
|
e.value.table.data.forEach(($) => {
|
|
3078
|
-
var
|
|
3079
|
-
if (e.value[
|
|
3080
|
-
const
|
|
3081
|
-
$[
|
|
3080
|
+
var x;
|
|
3081
|
+
if (e.value[i].getDicts && ((x = e.value[i]) == null ? void 0 : x.forceString) !== !1) {
|
|
3082
|
+
const U = $[i];
|
|
3083
|
+
$[i] = U != null ? U.toString() : U;
|
|
3082
3084
|
}
|
|
3083
3085
|
});
|
|
3084
3086
|
}).catch(($) => {
|
|
3085
|
-
console.error(`加载字典${
|
|
3087
|
+
console.error(`加载字典${i}出错:`, $);
|
|
3086
3088
|
});
|
|
3087
3089
|
l.push(h);
|
|
3088
3090
|
}
|
|
3089
|
-
}), Promise.all(l).catch((
|
|
3090
|
-
console.error("字典加载过程中发生错误:",
|
|
3091
|
+
}), Promise.all(l).catch((i) => {
|
|
3092
|
+
console.error("字典加载过程中发生错误:", i);
|
|
3091
3093
|
});
|
|
3092
|
-
}, Ee = (l,
|
|
3093
|
-
var
|
|
3094
|
-
return l.table ? (
|
|
3094
|
+
}, Ee = (l, i, h, $) => {
|
|
3095
|
+
var x, U;
|
|
3096
|
+
return l.table ? (x = l.table(i, h, $)) != null && x.auth ? (U = l.table(i, h, $)) == null ? void 0 : U.auth(i, h, $) : !0 : !1;
|
|
3095
3097
|
}, xe = () => {
|
|
3096
3098
|
if (e.value.dialog.mode == "drawer")
|
|
3097
|
-
|
|
3099
|
+
d.value.handleClose();
|
|
3098
3100
|
else if (e.value.dialog.mode == "dialog")
|
|
3099
3101
|
try {
|
|
3100
3102
|
T.value.handleClose();
|
|
@@ -3109,61 +3111,61 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3109
3111
|
});
|
|
3110
3112
|
const Te = async () => {
|
|
3111
3113
|
try {
|
|
3112
|
-
const [l,
|
|
3114
|
+
const [l, i, h] = await Promise.all([
|
|
3113
3115
|
Kl(ue.value),
|
|
3114
3116
|
oa(ue.value),
|
|
3115
3117
|
ea(ue.value)
|
|
3116
3118
|
]);
|
|
3117
3119
|
l && Array.isArray(l) && l.forEach(($) => {
|
|
3118
|
-
const
|
|
3119
|
-
|
|
3120
|
-
}),
|
|
3121
|
-
const
|
|
3122
|
-
|
|
3120
|
+
const x = e.value[$.key];
|
|
3121
|
+
x && (x.width = $.width);
|
|
3122
|
+
}), i && Array.isArray(i) && i.forEach(($, x) => {
|
|
3123
|
+
const U = e.value[$];
|
|
3124
|
+
U && (U.sort = x);
|
|
3123
3125
|
}), h && Array.isArray(h) && h.length > 0 ? h.forEach(($) => {
|
|
3124
|
-
const
|
|
3125
|
-
|
|
3126
|
+
const x = e.value[$];
|
|
3127
|
+
x && (x.showCol = !1);
|
|
3126
3128
|
}) : Object.keys(e.value).filter(($) => e.value[$].type !== "control").forEach(($) => {
|
|
3127
3129
|
e.value[$].showCol = !0;
|
|
3128
3130
|
});
|
|
3129
3131
|
} catch (l) {
|
|
3130
3132
|
console.error("加载表格信息时出错:", l);
|
|
3131
3133
|
}
|
|
3132
|
-
},
|
|
3134
|
+
}, Le = () => ba(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
|
|
3133
3135
|
return nl(() => {
|
|
3134
|
-
ue.value =
|
|
3136
|
+
ue.value = Le();
|
|
3135
3137
|
}), nt(async () => {
|
|
3136
3138
|
w.value = Object.entries(e.value).filter(
|
|
3137
|
-
([l,
|
|
3138
|
-
).map(([l,
|
|
3139
|
+
([l, i]) => i.type !== "hidden" && i.type !== "control" && i.visible !== !1
|
|
3140
|
+
).map(([l, i]) => ({
|
|
3139
3141
|
key: l || "",
|
|
3140
|
-
label:
|
|
3142
|
+
label: i.label,
|
|
3141
3143
|
value: !0
|
|
3142
3144
|
}));
|
|
3143
3145
|
try {
|
|
3144
3146
|
await at();
|
|
3145
3147
|
const l = Object.entries(e.value).filter(
|
|
3146
|
-
([
|
|
3148
|
+
([i, h]) => h.type !== "control" && h.editor !== !1 && h.type !== "hidden"
|
|
3147
3149
|
);
|
|
3148
|
-
|
|
3149
|
-
l.map(([
|
|
3150
|
+
B.value = Object.fromEntries(
|
|
3151
|
+
l.map(([i, h]) => [i, h.value])
|
|
3150
3152
|
), await Te();
|
|
3151
3153
|
} catch (l) {
|
|
3152
3154
|
console.error("Error during component initialization:", l);
|
|
3153
3155
|
}
|
|
3154
3156
|
e.value.table.autoWatch || e.value.table.load();
|
|
3155
|
-
}), u({ addRow: _, editRow: b, deleteRow: s, readForm:
|
|
3156
|
-
var
|
|
3157
|
-
const h = L("el-icon"), $ = L("el-dialog"),
|
|
3158
|
-
return m(),
|
|
3159
|
-
e.value.dialog.mode == "dialog" && n.value ? (m(),
|
|
3160
|
-
K($,
|
|
3157
|
+
}), u({ addRow: _, editRow: b, deleteRow: s, readForm: V, saveRowData: k, closeDialog: xe }), (l, i) => {
|
|
3158
|
+
var He, Je, lt, rt, ot;
|
|
3159
|
+
const h = L("el-icon"), $ = L("el-dialog"), x = L("el-drawer"), U = L("el-button-group"), N = L("el-dropdown-item"), me = L("el-dropdown-menu"), ke = L("el-dropdown"), Ae = L("el-table-column"), Be = L("el-table"), Re = L("el-pagination");
|
|
3160
|
+
return m(), Y(Z, null, [
|
|
3161
|
+
e.value.dialog.mode == "dialog" && n.value ? (m(), Y("div", $a, [
|
|
3162
|
+
K($, I(
|
|
3161
3163
|
{
|
|
3162
3164
|
ref_key: "dialogRef",
|
|
3163
3165
|
ref: T,
|
|
3164
3166
|
id: "dialogRef",
|
|
3165
3167
|
modelValue: n.value,
|
|
3166
|
-
"onUpdate:modelValue":
|
|
3168
|
+
"onUpdate:modelValue": i[3] || (i[3] = (H) => n.value = H),
|
|
3167
3169
|
fullscreen: e.value.dialog.fullScreen
|
|
3168
3170
|
},
|
|
3169
3171
|
z(Ie)(e.value.dialog, (H) => !["size", "max", "min"].includes(H)),
|
|
@@ -3172,41 +3174,41 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3172
3174
|
}
|
|
3173
3175
|
), {
|
|
3174
3176
|
header: D(() => {
|
|
3175
|
-
var H, de, F, G, ae, je, Ne,
|
|
3177
|
+
var H, de, F, G, ae, je, Ne, ze, y, J;
|
|
3176
3178
|
return [
|
|
3177
3179
|
X("div", wa, [
|
|
3178
3180
|
X("div", Ea, [
|
|
3179
3181
|
S(l.$slots, "f-header", {}, () => [
|
|
3180
|
-
X("div", null,
|
|
3182
|
+
X("div", null, De(e.value.dialog.title), 1)
|
|
3181
3183
|
], !0)
|
|
3182
3184
|
]),
|
|
3183
|
-
((de = (H = e.value) == null ? void 0 : H.dialog) == null ? void 0 : de.fullScreen) === !1 ? (m(),
|
|
3185
|
+
((de = (H = e.value) == null ? void 0 : H.dialog) == null ? void 0 : de.fullScreen) === !1 ? (m(), Y("div", {
|
|
3184
3186
|
key: 0,
|
|
3185
|
-
style:
|
|
3186
|
-
onClick:
|
|
3187
|
+
style: qe((ae = (G = (F = e.value) == null ? void 0 : F.dialog) == null ? void 0 : G.max) == null ? void 0 : ae.style),
|
|
3188
|
+
onClick: i[0] || (i[0] = (q) => e.value.dialog.fullScreen = !0),
|
|
3187
3189
|
class: "max"
|
|
3188
3190
|
}, [
|
|
3189
3191
|
K(h, null, {
|
|
3190
3192
|
default: D(() => {
|
|
3191
|
-
var
|
|
3193
|
+
var q, Me, Pe;
|
|
3192
3194
|
return [
|
|
3193
|
-
(m(),
|
|
3195
|
+
(m(), O(We((Pe = (Me = (q = e.value) == null ? void 0 : q.dialog) == null ? void 0 : Me.max) == null ? void 0 : Pe.icon)))
|
|
3194
3196
|
];
|
|
3195
3197
|
}),
|
|
3196
3198
|
_: 1
|
|
3197
3199
|
})
|
|
3198
3200
|
], 4)) : ge("", !0),
|
|
3199
|
-
((Ne = (je = e.value) == null ? void 0 : je.dialog) == null ? void 0 : Ne.fullScreen) === !0 ? (m(),
|
|
3201
|
+
((Ne = (je = e.value) == null ? void 0 : je.dialog) == null ? void 0 : Ne.fullScreen) === !0 ? (m(), Y("div", {
|
|
3200
3202
|
key: 1,
|
|
3201
|
-
style:
|
|
3202
|
-
onClick:
|
|
3203
|
+
style: qe((J = (y = (ze = e.value) == null ? void 0 : ze.dialog) == null ? void 0 : y.min) == null ? void 0 : J.style),
|
|
3204
|
+
onClick: i[1] || (i[1] = (q) => e.value.dialog.fullScreen = !1),
|
|
3203
3205
|
class: "max"
|
|
3204
3206
|
}, [
|
|
3205
3207
|
K(h, null, {
|
|
3206
3208
|
default: D(() => {
|
|
3207
|
-
var
|
|
3209
|
+
var q, Me, Pe;
|
|
3208
3210
|
return [
|
|
3209
|
-
(m(),
|
|
3211
|
+
(m(), O(We((Pe = (Me = (q = e.value) == null ? void 0 : q.dialog) == null ? void 0 : Me.min) == null ? void 0 : Pe.icon)))
|
|
3210
3212
|
];
|
|
3211
3213
|
}),
|
|
3212
3214
|
_: 1
|
|
@@ -3220,12 +3222,12 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3220
3222
|
S(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
3221
3223
|
K(kt, {
|
|
3222
3224
|
modelValue: e.value,
|
|
3223
|
-
"onUpdate:modelValue":
|
|
3225
|
+
"onUpdate:modelValue": i[2] || (i[2] = (H) => e.value = H),
|
|
3224
3226
|
onSubmit: C,
|
|
3225
|
-
onReset:
|
|
3227
|
+
onReset: R,
|
|
3226
3228
|
flag: t.value
|
|
3227
3229
|
}, he({ _: 2 }, [
|
|
3228
|
-
|
|
3230
|
+
W(l.$slots, (H, de, F) => ({
|
|
3229
3231
|
name: de,
|
|
3230
3232
|
fn: D((G) => [
|
|
3231
3233
|
S(l.$slots, de, { model: G }, void 0, !0)
|
|
@@ -3238,18 +3240,18 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3238
3240
|
_: 3
|
|
3239
3241
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
3240
3242
|
])) : ge("", !0),
|
|
3241
|
-
e.value.dialog.mode == "drawer" && n.value ? (m(),
|
|
3242
|
-
K(
|
|
3243
|
+
e.value.dialog.mode == "drawer" && n.value ? (m(), Y("div", ka, [
|
|
3244
|
+
K(x, I({
|
|
3243
3245
|
ref_key: "drawerRef",
|
|
3244
|
-
ref:
|
|
3246
|
+
ref: d,
|
|
3245
3247
|
modelValue: n.value,
|
|
3246
|
-
"onUpdate:modelValue":
|
|
3248
|
+
"onUpdate:modelValue": i[5] || (i[5] = (H) => n.value = H)
|
|
3247
3249
|
}, z(Ie)(e.value.dialog, (H) => !["width"].includes(H))), {
|
|
3248
3250
|
header: D(() => [
|
|
3249
3251
|
X("div", Ca, [
|
|
3250
3252
|
X("div", Da, [
|
|
3251
3253
|
S(l.$slots, "f-header", {}, () => [
|
|
3252
|
-
X("div", null,
|
|
3254
|
+
X("div", null, De(e.value.dialog.title), 1)
|
|
3253
3255
|
], !0)
|
|
3254
3256
|
])
|
|
3255
3257
|
])
|
|
@@ -3258,12 +3260,12 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3258
3260
|
S(l.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
3259
3261
|
K(kt, {
|
|
3260
3262
|
modelValue: e.value,
|
|
3261
|
-
"onUpdate:modelValue":
|
|
3263
|
+
"onUpdate:modelValue": i[4] || (i[4] = (H) => e.value = H),
|
|
3262
3264
|
onSubmit: C,
|
|
3263
|
-
onReset:
|
|
3265
|
+
onReset: R,
|
|
3264
3266
|
flag: t.value
|
|
3265
3267
|
}, he({ _: 2 }, [
|
|
3266
|
-
|
|
3268
|
+
W(l.$slots, (H, de, F) => ({
|
|
3267
3269
|
name: de,
|
|
3268
3270
|
fn: D((G) => [
|
|
3269
3271
|
S(l.$slots, de, { model: G }, void 0, !0)
|
|
@@ -3276,64 +3278,64 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3276
3278
|
}, 16, ["modelValue"])
|
|
3277
3279
|
])) : ge("", !0),
|
|
3278
3280
|
X("div", Sa, [
|
|
3279
|
-
((Je = (
|
|
3281
|
+
((Je = (He = e.value) == null ? void 0 : He.query) == null ? void 0 : Je.hidden) != !0 ? (m(), Y("div", Ma, [
|
|
3280
3282
|
S(l.$slots, "query", {}, () => [
|
|
3281
3283
|
K(Ll, {
|
|
3282
3284
|
modelValue: e.value,
|
|
3283
|
-
"onUpdate:modelValue":
|
|
3284
|
-
info:
|
|
3285
|
-
"onUpdate:info":
|
|
3285
|
+
"onUpdate:modelValue": i[6] || (i[6] = (H) => e.value = H),
|
|
3286
|
+
info: f.value,
|
|
3287
|
+
"onUpdate:info": i[7] || (i[7] = (H) => f.value = H),
|
|
3286
3288
|
onQuery: M,
|
|
3287
3289
|
onReset: Ue
|
|
3288
3290
|
}, he({
|
|
3289
3291
|
"q-btns": D(() => [
|
|
3290
3292
|
S(l.$slots, "q-btns", {}, () => [
|
|
3291
|
-
(m(!0),
|
|
3292
|
-
de == "default" ? (m(!0),
|
|
3293
|
+
(m(!0), Y(Z, null, W(le(["add", "download", "setting"], B.value, e.value), (H, de) => (m(), Y(Z, null, [
|
|
3294
|
+
de == "default" ? (m(!0), Y(Z, { key: 0 }, W(H, (F) => (m(), Y(Z, null, [
|
|
3293
3295
|
S(l.$slots, F.name + "-left", {}, void 0, !0),
|
|
3294
3296
|
(F.name === "control-add" ? F.attr.auth() && F.attr.inline === !1 : F.attr.auth()) ? S(l.$slots, F.name, { key: 0 }, () => [
|
|
3295
|
-
F.label ? (m(),
|
|
3297
|
+
F.label ? (m(), O(z(Oe), I({
|
|
3296
3298
|
key: 0,
|
|
3297
3299
|
title: F.label,
|
|
3298
3300
|
ref_for: !0
|
|
3299
3301
|
}, F.attr, {
|
|
3300
|
-
onClick: (G) => F.func(e.value, w.value)
|
|
3302
|
+
onClick: (G) => F.func(B.value, e.value, w.value)
|
|
3301
3303
|
}), {
|
|
3302
3304
|
default: D(() => [
|
|
3303
|
-
|
|
3305
|
+
Ye(De(F.label), 1)
|
|
3304
3306
|
]),
|
|
3305
3307
|
_: 2
|
|
3306
|
-
}, 1040, ["title", "onClick"])) : (m(),
|
|
3308
|
+
}, 1040, ["title", "onClick"])) : (m(), O(z(Oe), I({
|
|
3307
3309
|
key: 1,
|
|
3308
3310
|
title: F.label,
|
|
3309
3311
|
ref_for: !0
|
|
3310
3312
|
}, F.attr, {
|
|
3311
|
-
onClick: (G) => F.func(e.value, w.value)
|
|
3313
|
+
onClick: (G) => F.func(B.value, e.value, w.value)
|
|
3312
3314
|
}), null, 16, ["title", "onClick"]))
|
|
3313
3315
|
], !0) : ge("", !0),
|
|
3314
3316
|
S(l.$slots, F.name + "-right", {}, void 0, !0)
|
|
3315
|
-
], 64))), 256)) : (m(),
|
|
3317
|
+
], 64))), 256)) : (m(), O(U, { key: 1 }, {
|
|
3316
3318
|
default: D(() => [
|
|
3317
|
-
(m(!0),
|
|
3319
|
+
(m(!0), Y(Z, null, W(H, (F) => (m(), Y(Z, null, [
|
|
3318
3320
|
S(l.$slots, F.name + "-left", {}, void 0, !0),
|
|
3319
3321
|
(F.name === "control-add" ? F.attr.auth() && F.attr.inline === !1 : F.attr.auth()) ? S(l.$slots, F.name, { key: 0 }, () => [
|
|
3320
|
-
F.label ? (m(),
|
|
3322
|
+
F.label ? (m(), O(z(Oe), I({
|
|
3321
3323
|
key: 0,
|
|
3322
3324
|
title: F.label,
|
|
3323
3325
|
ref_for: !0
|
|
3324
3326
|
}, F.attr, {
|
|
3325
|
-
onClick: (G) => F.func(e.value, w.value)
|
|
3327
|
+
onClick: (G) => F.func(B.value, e.value, w.value)
|
|
3326
3328
|
}), {
|
|
3327
3329
|
default: D(() => [
|
|
3328
|
-
|
|
3330
|
+
Ye(De(F.label), 1)
|
|
3329
3331
|
]),
|
|
3330
3332
|
_: 2
|
|
3331
|
-
}, 1040, ["title", "onClick"])) : (m(),
|
|
3333
|
+
}, 1040, ["title", "onClick"])) : (m(), O(z(Oe), I({
|
|
3332
3334
|
key: 1,
|
|
3333
3335
|
title: F.label,
|
|
3334
3336
|
ref_for: !0
|
|
3335
3337
|
}, F.attr, {
|
|
3336
|
-
onClick: (G) => F.func(e.value, w.value)
|
|
3338
|
+
onClick: (G) => F.func(B.value, e.value, w.value)
|
|
3337
3339
|
}), null, 16, ["title", "onClick"]))
|
|
3338
3340
|
], !0) : ge("", !0),
|
|
3339
3341
|
S(l.$slots, F.name + "-right", {}, void 0, !0)
|
|
@@ -3346,7 +3348,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3346
3348
|
]),
|
|
3347
3349
|
_: 2
|
|
3348
3350
|
}, [
|
|
3349
|
-
|
|
3351
|
+
W(l.$slots, (H, de, F) => ({
|
|
3350
3352
|
name: de,
|
|
3351
3353
|
fn: D((G) => [
|
|
3352
3354
|
S(l.$slots, de, { model: e.value }, void 0, !0)
|
|
@@ -3356,7 +3358,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3356
3358
|
], !0)
|
|
3357
3359
|
])) : ge("", !0),
|
|
3358
3360
|
X("div", Ta, [
|
|
3359
|
-
K(
|
|
3361
|
+
K(Be, I({
|
|
3360
3362
|
...l.$attrs,
|
|
3361
3363
|
...z(Ie)(
|
|
3362
3364
|
e.value.table,
|
|
@@ -3364,9 +3366,9 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3364
3366
|
)
|
|
3365
3367
|
}, {
|
|
3366
3368
|
"summary-method": (H) => e.value.table["summary-method"](H, { fields: P.value, sums: j.value }),
|
|
3367
|
-
onSortChange:
|
|
3369
|
+
onSortChange: i[8] || (i[8] = (H) => {
|
|
3368
3370
|
var de, F;
|
|
3369
|
-
e.value.table.onSortChange(H,
|
|
3371
|
+
e.value.table.onSortChange(H, f.value), ((de = H == null ? void 0 : H.column) == null ? void 0 : de.sortable) === "custom" && ((F = e.value.table) == null || F.load());
|
|
3370
3372
|
})
|
|
3371
3373
|
}), {
|
|
3372
3374
|
append: D(() => [
|
|
@@ -3377,13 +3379,13 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3377
3379
|
]),
|
|
3378
3380
|
default: D(() => [
|
|
3379
3381
|
S(l.$slots, "default", {}, () => [
|
|
3380
|
-
(m(!0),
|
|
3382
|
+
(m(!0), Y(Z, null, W(be.value, (H, de) => (m(), O(Ae, I({
|
|
3381
3383
|
prop: de,
|
|
3382
3384
|
key: de,
|
|
3383
3385
|
ref_for: !0
|
|
3384
3386
|
}, {
|
|
3385
3387
|
...e.value.tableColumns,
|
|
3386
|
-
...z(Ie)(H, (F) =>
|
|
3388
|
+
...z(Ie)(H, (F) => c.includes(F))
|
|
3387
3389
|
}), he({
|
|
3388
3390
|
header: D(({ column: F, $index: G }) => [
|
|
3389
3391
|
de == "control" ? S(l.$slots, `${de}-header`, {
|
|
@@ -3391,7 +3393,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3391
3393
|
column: F,
|
|
3392
3394
|
index: G
|
|
3393
3395
|
}, () => [
|
|
3394
|
-
X("span", null,
|
|
3396
|
+
X("span", null, De(F.label), 1)
|
|
3395
3397
|
], !0) : S(l.$slots, `${de}-header`, {
|
|
3396
3398
|
key: 1,
|
|
3397
3399
|
column: F,
|
|
@@ -3420,7 +3422,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3420
3422
|
return [
|
|
3421
3423
|
X("div", {
|
|
3422
3424
|
class: Ot(["control", (je = e.value.control) == null ? void 0 : je.class]),
|
|
3423
|
-
style:
|
|
3425
|
+
style: qe((Ne = e.value.control) == null ? void 0 : Ne.style)
|
|
3424
3426
|
}, [
|
|
3425
3427
|
S(l.$slots, "control", {}, () => [
|
|
3426
3428
|
S(l.$slots, "control-left", {
|
|
@@ -3428,98 +3430,98 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3428
3430
|
column: G,
|
|
3429
3431
|
index: ae
|
|
3430
3432
|
}, void 0, !0),
|
|
3431
|
-
(m(!0),
|
|
3433
|
+
(m(!0), Y(Z, null, W(le(["view", "edit", "delete", "save"], F, G, ae, e.value), (ze, y) => {
|
|
3432
3434
|
var J;
|
|
3433
|
-
return m(),
|
|
3434
|
-
y == "default" ? (m(!0),
|
|
3435
|
-
S(l.$slots,
|
|
3435
|
+
return m(), Y(Z, null, [
|
|
3436
|
+
y == "default" ? (m(!0), Y(Z, { key: 0 }, W(ze, (q) => (m(), Y(Z, null, [
|
|
3437
|
+
S(l.$slots, q.name + "-left", {
|
|
3436
3438
|
row: F,
|
|
3437
3439
|
column: G,
|
|
3438
3440
|
index: ae
|
|
3439
3441
|
}, void 0, !0),
|
|
3440
|
-
|
|
3442
|
+
q.attr.auth() ? S(l.$slots, q.name, {
|
|
3441
3443
|
key: 0,
|
|
3442
3444
|
row: F,
|
|
3443
3445
|
column: G,
|
|
3444
3446
|
index: ae
|
|
3445
3447
|
}, () => [
|
|
3446
|
-
|
|
3448
|
+
q.label ? (m(), O(z(Oe), I({
|
|
3447
3449
|
key: 0,
|
|
3448
|
-
title:
|
|
3450
|
+
title: q.label,
|
|
3449
3451
|
ref_for: !0
|
|
3450
|
-
},
|
|
3451
|
-
onClick: (Me) =>
|
|
3452
|
+
}, q.attr, {
|
|
3453
|
+
onClick: (Me) => q.func(F, G, ae, e.value)
|
|
3452
3454
|
}), {
|
|
3453
3455
|
default: D(() => [
|
|
3454
|
-
|
|
3456
|
+
Ye(De(q.label), 1)
|
|
3455
3457
|
]),
|
|
3456
3458
|
_: 2
|
|
3457
|
-
}, 1040, ["title", "onClick"])) : (m(),
|
|
3459
|
+
}, 1040, ["title", "onClick"])) : (m(), O(z(Oe), I({
|
|
3458
3460
|
key: 1,
|
|
3459
|
-
title:
|
|
3461
|
+
title: q.label,
|
|
3460
3462
|
ref_for: !0
|
|
3461
|
-
},
|
|
3462
|
-
onClick: (Me) =>
|
|
3463
|
+
}, q.attr, {
|
|
3464
|
+
onClick: (Me) => q.func(F, G, ae, e.value)
|
|
3463
3465
|
}), null, 16, ["title", "onClick"]))
|
|
3464
3466
|
], !0) : ge("", !0),
|
|
3465
|
-
S(l.$slots,
|
|
3467
|
+
S(l.$slots, q.name + "-right", {
|
|
3466
3468
|
row: F,
|
|
3467
3469
|
column: G,
|
|
3468
3470
|
index: ae
|
|
3469
3471
|
}, void 0, !0)
|
|
3470
|
-
], 64))), 256)) : y != null && y.startsWith("dropdown") && ((J = ye(F, G, ae, e.value)) != null && J.auth()) ? (m(),
|
|
3472
|
+
], 64))), 256)) : y != null && y.startsWith("dropdown") && ((J = ye(F, G, ae, e.value)) != null && J.auth()) ? (m(), O(ke, I({
|
|
3471
3473
|
key: 1,
|
|
3472
3474
|
ref_for: !0
|
|
3473
3475
|
}, ye(F, G, ae, e.value)), {
|
|
3474
3476
|
dropdown: D(() => [
|
|
3475
3477
|
K(me, null, {
|
|
3476
3478
|
default: D(() => [
|
|
3477
|
-
(m(!0),
|
|
3478
|
-
var Me,
|
|
3479
|
-
return m(),
|
|
3480
|
-
l.$slots[
|
|
3479
|
+
(m(!0), Y(Z, null, W(ze, (q) => {
|
|
3480
|
+
var Me, Pe, tt;
|
|
3481
|
+
return m(), Y(Z, null, [
|
|
3482
|
+
l.$slots[q.name + "-left"] ? S(l.$slots, q.name + "-left", {
|
|
3481
3483
|
key: 0,
|
|
3482
3484
|
row: F,
|
|
3483
3485
|
column: G,
|
|
3484
3486
|
index: ae
|
|
3485
3487
|
}, void 0, !0) : ge("", !0),
|
|
3486
|
-
|
|
3488
|
+
q.attr.auth() ? (m(), O(N, I({
|
|
3487
3489
|
key: 1,
|
|
3488
3490
|
ref_for: !0
|
|
3489
3491
|
}, {
|
|
3490
|
-
command: (Me =
|
|
3491
|
-
divided: (
|
|
3492
|
-
disabled: (tt =
|
|
3492
|
+
command: (Me = q == null ? void 0 : q.attr) == null ? void 0 : Me.command,
|
|
3493
|
+
divided: (Pe = q == null ? void 0 : q.attr) == null ? void 0 : Pe.divided,
|
|
3494
|
+
disabled: (tt = q == null ? void 0 : q.attr) == null ? void 0 : tt.disabled
|
|
3493
3495
|
}), {
|
|
3494
3496
|
default: D(() => [
|
|
3495
|
-
S(l.$slots,
|
|
3497
|
+
S(l.$slots, q.name, {
|
|
3496
3498
|
row: F,
|
|
3497
3499
|
column: G,
|
|
3498
3500
|
index: ae
|
|
3499
3501
|
}, () => [
|
|
3500
|
-
|
|
3502
|
+
q.label ? (m(), O(z(Oe), I({
|
|
3501
3503
|
key: 0,
|
|
3502
|
-
title:
|
|
3504
|
+
title: q.label,
|
|
3503
3505
|
ref_for: !0
|
|
3504
|
-
},
|
|
3505
|
-
onClick: ($t) =>
|
|
3506
|
+
}, q.attr, {
|
|
3507
|
+
onClick: ($t) => q.func(F, G, ae, e.value)
|
|
3506
3508
|
}), {
|
|
3507
3509
|
default: D(() => [
|
|
3508
|
-
|
|
3510
|
+
Ye(De(q.label), 1)
|
|
3509
3511
|
]),
|
|
3510
3512
|
_: 2
|
|
3511
|
-
}, 1040, ["title", "onClick"])) : (m(),
|
|
3513
|
+
}, 1040, ["title", "onClick"])) : (m(), O(z(Oe), I({
|
|
3512
3514
|
key: 1,
|
|
3513
|
-
title:
|
|
3515
|
+
title: q.label,
|
|
3514
3516
|
ref_for: !0
|
|
3515
|
-
},
|
|
3516
|
-
onClick: ($t) =>
|
|
3517
|
+
}, q.attr, {
|
|
3518
|
+
onClick: ($t) => q.func(F, G, ae, e.value)
|
|
3517
3519
|
}), null, 16, ["title", "onClick"]))
|
|
3518
3520
|
], !0)
|
|
3519
3521
|
]),
|
|
3520
3522
|
_: 2
|
|
3521
3523
|
}, 1040)) : ge("", !0),
|
|
3522
|
-
l.$slots[
|
|
3524
|
+
l.$slots[q.name + "-right"] ? S(l.$slots, q.name + "-right", {
|
|
3523
3525
|
key: 2,
|
|
3524
3526
|
row: F,
|
|
3525
3527
|
column: G,
|
|
@@ -3532,46 +3534,46 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3532
3534
|
}, 1024)
|
|
3533
3535
|
]),
|
|
3534
3536
|
default: D(() => {
|
|
3535
|
-
var
|
|
3537
|
+
var q;
|
|
3536
3538
|
return [
|
|
3537
|
-
|
|
3539
|
+
Ye(De((q = ye(F, G, ae, e.value)) == null ? void 0 : q.label) + " ", 1)
|
|
3538
3540
|
];
|
|
3539
3541
|
}),
|
|
3540
3542
|
_: 2
|
|
3541
|
-
}, 1040)) : (m(),
|
|
3543
|
+
}, 1040)) : (m(), O(U, { key: 2 }, {
|
|
3542
3544
|
default: D(() => [
|
|
3543
|
-
(m(!0),
|
|
3544
|
-
S(l.$slots,
|
|
3545
|
+
(m(!0), Y(Z, null, W(ze, (q) => (m(), Y(Z, null, [
|
|
3546
|
+
S(l.$slots, q.name + "-left", {
|
|
3545
3547
|
row: F,
|
|
3546
3548
|
column: G,
|
|
3547
3549
|
index: ae
|
|
3548
3550
|
}, void 0, !0),
|
|
3549
|
-
|
|
3551
|
+
q.attr.auth() ? S(l.$slots, q.name, {
|
|
3550
3552
|
key: 0,
|
|
3551
3553
|
row: F,
|
|
3552
3554
|
column: G,
|
|
3553
3555
|
index: ae
|
|
3554
3556
|
}, () => [
|
|
3555
|
-
|
|
3557
|
+
q.label ? (m(), O(z(Oe), I({
|
|
3556
3558
|
key: 0,
|
|
3557
|
-
title:
|
|
3559
|
+
title: q.label,
|
|
3558
3560
|
ref_for: !0
|
|
3559
|
-
},
|
|
3560
|
-
onClick: (Me) =>
|
|
3561
|
+
}, q.attr, {
|
|
3562
|
+
onClick: (Me) => q.func(F, G, ae, e.value)
|
|
3561
3563
|
}), {
|
|
3562
3564
|
default: D(() => [
|
|
3563
|
-
|
|
3565
|
+
Ye(De(q.label), 1)
|
|
3564
3566
|
]),
|
|
3565
3567
|
_: 2
|
|
3566
|
-
}, 1040, ["title", "onClick"])) : (m(),
|
|
3568
|
+
}, 1040, ["title", "onClick"])) : (m(), O(z(Oe), I({
|
|
3567
3569
|
key: 1,
|
|
3568
|
-
title:
|
|
3570
|
+
title: q.label,
|
|
3569
3571
|
ref_for: !0
|
|
3570
|
-
},
|
|
3571
|
-
onClick: (Me) =>
|
|
3572
|
+
}, q.attr, {
|
|
3573
|
+
onClick: (Me) => q.func(F, G, ae, e.value)
|
|
3572
3574
|
}), null, 16, ["title", "onClick"]))
|
|
3573
3575
|
], !0) : ge("", !0),
|
|
3574
|
-
S(l.$slots,
|
|
3576
|
+
S(l.$slots, q.name + "-right", {
|
|
3575
3577
|
row: F,
|
|
3576
3578
|
column: G,
|
|
3577
3579
|
index: ae
|
|
@@ -3603,22 +3605,22 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3603
3605
|
}, () => {
|
|
3604
3606
|
var je;
|
|
3605
3607
|
return [
|
|
3606
|
-
(m(),
|
|
3608
|
+
(m(), O(bt, {
|
|
3607
3609
|
modelValue: F[de],
|
|
3608
3610
|
"onUpdate:modelValue": (Ne) => F[de] = Ne,
|
|
3609
3611
|
item: H == null ? void 0 : H.table(F, G, ae),
|
|
3610
3612
|
ctrlKey: de,
|
|
3611
|
-
key: `${de}-${ae} -${
|
|
3613
|
+
key: `${de}-${ae} -${fe.value}`,
|
|
3612
3614
|
ctrlType: (je = H.table(F, G, ae)) != null && je.type ? H.table(F, G, ae).type : H.type,
|
|
3613
3615
|
model: e.value,
|
|
3614
3616
|
class: "g-ctrl-container",
|
|
3615
3617
|
t: "t",
|
|
3616
3618
|
formInfo: F
|
|
3617
3619
|
}, he({ _: 2 }, [
|
|
3618
|
-
|
|
3619
|
-
name:
|
|
3620
|
+
W(l.$slots, (Ne, ze) => ({
|
|
3621
|
+
name: ze,
|
|
3620
3622
|
fn: D((y) => [
|
|
3621
|
-
S(l.$slots,
|
|
3623
|
+
S(l.$slots, ze, {
|
|
3622
3624
|
data: y,
|
|
3623
3625
|
item: H,
|
|
3624
3626
|
model: e.value
|
|
@@ -3634,7 +3636,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3634
3636
|
index: ae
|
|
3635
3637
|
}, () => [
|
|
3636
3638
|
X("div", {
|
|
3637
|
-
style:
|
|
3639
|
+
style: qe([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, H == null ? void 0 : H.style]),
|
|
3638
3640
|
innerHTML: ne(
|
|
3639
3641
|
H,
|
|
3640
3642
|
G.formatter(F, G, F[de], ae)
|
|
@@ -3650,11 +3652,11 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3650
3652
|
_: 3
|
|
3651
3653
|
}, 16, ["summary-method"]),
|
|
3652
3654
|
(ot = (rt = (lt = e.value) == null ? void 0 : lt.table) == null ? void 0 : rt.page) != null && ot.hidden ? ge("", !0) : S(l.$slots, "page", { key: 0 }, () => [
|
|
3653
|
-
K(
|
|
3655
|
+
K(Re, I({
|
|
3654
3656
|
"page-size": e.value.table.page.pageSize,
|
|
3655
|
-
"onUpdate:pageSize":
|
|
3657
|
+
"onUpdate:pageSize": i[9] || (i[9] = (H) => e.value.table.page.pageSize = H),
|
|
3656
3658
|
"current-page": e.value.table.page.currentPage,
|
|
3657
|
-
"onUpdate:currentPage":
|
|
3659
|
+
"onUpdate:currentPage": i[10] || (i[10] = (H) => e.value.table.page.currentPage = H)
|
|
3658
3660
|
}, e.value.table.page), {
|
|
3659
3661
|
default: D(() => [
|
|
3660
3662
|
S(l.$slots, "table-page", {}, void 0, !0)
|
|
@@ -3667,7 +3669,7 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3667
3669
|
], 64);
|
|
3668
3670
|
};
|
|
3669
3671
|
}
|
|
3670
|
-
}), Va = /* @__PURE__ */ Ze(xa, [["__scopeId", "data-v-
|
|
3672
|
+
}), Va = /* @__PURE__ */ Ze(xa, [["__scopeId", "data-v-d8ec842c"]]), qa = { class: "g-tree-table" }, Aa = { class: "g-tree-container" }, Ba = { class: "g-tree-table-container" }, Oa = /* @__PURE__ */ Object.assign({
|
|
3671
3673
|
name: "g-tree-table",
|
|
3672
3674
|
inheritAttrs: !1
|
|
3673
3675
|
}, {
|
|
@@ -3678,73 +3680,73 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3678
3680
|
},
|
|
3679
3681
|
emits: /* @__PURE__ */ Xe(["load"], ["update:modelValue"]),
|
|
3680
3682
|
setup(o, { emit: u }) {
|
|
3681
|
-
var w,
|
|
3683
|
+
var w, A, j, P;
|
|
3682
3684
|
const a = u, t = Qe(o, "modelValue"), r = Ft(), e = re(
|
|
3683
|
-
typeof ((w = r == null ? void 0 : r.tree) == null ? void 0 : w.width) == "number" ? `${r.tree.width}px` : ((
|
|
3684
|
-
), p = re(((j = r == null ? void 0 : r.tree) == null ? void 0 : j.search) === void 0 ? !0 : (P = r == null ? void 0 : r.tree) == null ? void 0 : P.search),
|
|
3685
|
-
var
|
|
3686
|
-
if (!
|
|
3687
|
-
const ue = ((
|
|
3688
|
-
return
|
|
3689
|
-
}, n = (
|
|
3690
|
-
a("load",
|
|
3691
|
-
},
|
|
3692
|
-
|
|
3685
|
+
typeof ((w = r == null ? void 0 : r.tree) == null ? void 0 : w.width) == "number" ? `${r.tree.width}px` : ((A = r == null ? void 0 : r.tree) == null ? void 0 : A.width) || "180px"
|
|
3686
|
+
), p = re(((j = r == null ? void 0 : r.tree) == null ? void 0 : j.search) === void 0 ? !0 : (P = r == null ? void 0 : r.tree) == null ? void 0 : P.search), f = re({}), T = re(""), d = re(null), v = (B, fe) => {
|
|
3687
|
+
var Ce, ce;
|
|
3688
|
+
if (!B) return !0;
|
|
3689
|
+
const ue = ((ce = (Ce = r.tree) == null ? void 0 : Ce.props) == null ? void 0 : ce.label) || "label";
|
|
3690
|
+
return fe[ue].includes(B);
|
|
3691
|
+
}, n = (B, fe) => {
|
|
3692
|
+
a("load", f.value, B, fe);
|
|
3693
|
+
}, c = (B) => {
|
|
3694
|
+
f.value = B, t.value.table.load();
|
|
3693
3695
|
};
|
|
3694
|
-
return ul(T, (
|
|
3695
|
-
|
|
3696
|
-
}), (
|
|
3697
|
-
const ue = L("el-input"),
|
|
3698
|
-
return m(),
|
|
3696
|
+
return ul(T, (B) => {
|
|
3697
|
+
d.value.filter(B);
|
|
3698
|
+
}), (B, fe) => {
|
|
3699
|
+
const ue = L("el-input"), Ce = L("el-tree"), ce = L("g-table");
|
|
3700
|
+
return m(), Y("div", qa, [
|
|
3699
3701
|
X("div", {
|
|
3700
3702
|
class: "g-tree-left",
|
|
3701
|
-
style:
|
|
3703
|
+
style: qe({ width: e.value })
|
|
3702
3704
|
}, [
|
|
3703
|
-
p.value ? (m(),
|
|
3705
|
+
p.value ? (m(), O(ue, {
|
|
3704
3706
|
key: 0,
|
|
3705
3707
|
modelValue: T.value,
|
|
3706
|
-
"onUpdate:modelValue":
|
|
3708
|
+
"onUpdate:modelValue": fe[0] || (fe[0] = (ie) => T.value = ie),
|
|
3707
3709
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
3708
3710
|
placeholder: "输入节点查询",
|
|
3709
3711
|
clearable: ""
|
|
3710
3712
|
}, null, 8, ["modelValue"])) : ge("", !0),
|
|
3711
3713
|
X("div", Aa, [
|
|
3712
|
-
K(
|
|
3714
|
+
K(Ce, I({
|
|
3713
3715
|
style: { width: e.value },
|
|
3714
3716
|
"filter-node-method": v,
|
|
3715
3717
|
"expand-on-click-node": !1,
|
|
3716
3718
|
ref_key: "treeRef",
|
|
3717
|
-
ref:
|
|
3718
|
-
onNodeClick:
|
|
3719
|
-
},
|
|
3719
|
+
ref: d,
|
|
3720
|
+
onNodeClick: c
|
|
3721
|
+
}, B.$attrs.tree), he({
|
|
3720
3722
|
default: D(({ node: ie, data: ye }) => [
|
|
3721
|
-
S(
|
|
3723
|
+
S(B.$slots, "tree", {
|
|
3722
3724
|
node: ie,
|
|
3723
3725
|
data: ye
|
|
3724
3726
|
}, () => [
|
|
3725
|
-
X("span", null,
|
|
3727
|
+
X("span", null, De(ie.label), 1)
|
|
3726
3728
|
], !0)
|
|
3727
3729
|
]),
|
|
3728
3730
|
_: 2
|
|
3729
3731
|
}, [
|
|
3730
|
-
|
|
3732
|
+
W(B.$slots, (ie, ye, Fe) => ({
|
|
3731
3733
|
name: ye,
|
|
3732
3734
|
fn: D((oe) => [
|
|
3733
|
-
S(
|
|
3735
|
+
S(B.$slots, ye, { data: oe }, void 0, !0)
|
|
3734
3736
|
])
|
|
3735
3737
|
}))
|
|
3736
3738
|
]), 1040, ["style"])
|
|
3737
3739
|
])
|
|
3738
3740
|
], 4),
|
|
3739
3741
|
X("div", Ba, [
|
|
3740
|
-
K(
|
|
3742
|
+
K(ce, I({
|
|
3741
3743
|
modelValue: t.value,
|
|
3742
|
-
"onUpdate:modelValue":
|
|
3743
|
-
},
|
|
3744
|
-
|
|
3744
|
+
"onUpdate:modelValue": fe[1] || (fe[1] = (ie) => t.value = ie)
|
|
3745
|
+
}, B.$attrs, { onLoad: n }), he({ _: 2 }, [
|
|
3746
|
+
W(B.$slots, (ie, ye, Fe) => ({
|
|
3745
3747
|
name: ye,
|
|
3746
3748
|
fn: D((oe) => [
|
|
3747
|
-
S(
|
|
3749
|
+
S(B.$slots, ye, { data: oe }, void 0, !0)
|
|
3748
3750
|
])
|
|
3749
3751
|
}))
|
|
3750
3752
|
]), 1040, ["modelValue"])
|
|
@@ -3781,23 +3783,23 @@ const ba = /* @__PURE__ */ Ht(ga), $a = { key: 0 }, wa = { style: { display: "fl
|
|
|
3781
3783
|
},
|
|
3782
3784
|
setup(o) {
|
|
3783
3785
|
const u = o;
|
|
3784
|
-
return (a, t) => u.title ? (m(),
|
|
3785
|
-
(m(!0),
|
|
3786
|
-
style:
|
|
3786
|
+
return (a, t) => u.title ? (m(), Y("div", Ua, [
|
|
3787
|
+
(m(!0), Y(Z, null, W(u.columns, (r) => (m(), Y("span", {
|
|
3788
|
+
style: qe({ width: (r == null ? void 0 : r.width) || qt, ...r == null ? void 0 : r.titleStyle, textAlign: (r == null ? void 0 : r.align) || "center" }),
|
|
3787
3789
|
key: r.key
|
|
3788
3790
|
}, [
|
|
3789
3791
|
S(a.$slots, `${o.t}-title-${r.key}`, { col: r }, () => [
|
|
3790
|
-
|
|
3792
|
+
Ye(De(r.label), 1)
|
|
3791
3793
|
], !0)
|
|
3792
3794
|
], 4))), 128))
|
|
3793
|
-
])) : (m(),
|
|
3794
|
-
(m(!0),
|
|
3795
|
-
style:
|
|
3795
|
+
])) : (m(), Y("div", Ya, [
|
|
3796
|
+
(m(!0), Y(Z, null, W(u.columns, (r) => (m(), Y("span", {
|
|
3797
|
+
style: qe({ width: (r == null ? void 0 : r.width) || qt, textAlign: (r == null ? void 0 : r.align) || "center", ...r == null ? void 0 : r.style }),
|
|
3796
3798
|
key: r.key,
|
|
3797
3799
|
title: o.data[r.key]
|
|
3798
3800
|
}, [
|
|
3799
3801
|
S(a.$slots, `${o.t}-option-${r.key}`, { col: r }, () => [
|
|
3800
|
-
|
|
3802
|
+
Ye(De(o.data[r.key] ?? "-"), 1)
|
|
3801
3803
|
], !0)
|
|
3802
3804
|
], 12, Ra))), 128))
|
|
3803
3805
|
]));
|
|
@@ -3826,8 +3828,8 @@ const tr = {
|
|
|
3826
3828
|
p.unmount(), a.remove();
|
|
3827
3829
|
}, 300);
|
|
3828
3830
|
}, () => {
|
|
3829
|
-
var
|
|
3830
|
-
return
|
|
3831
|
+
var f, T, d;
|
|
3832
|
+
return _e(r, {
|
|
3831
3833
|
modelValue: e.value,
|
|
3832
3834
|
"onUpdate:modelValue": (v) => e.value = v,
|
|
3833
3835
|
appendToBody: !0,
|
|
@@ -3838,9 +3840,9 @@ const tr = {
|
|
|
3838
3840
|
"close-on-click-modal": !1,
|
|
3839
3841
|
...o
|
|
3840
3842
|
}, {
|
|
3841
|
-
default: (
|
|
3843
|
+
default: (f = o.slots) == null ? void 0 : f.default,
|
|
3842
3844
|
header: (T = o.slots) == null ? void 0 : T.header,
|
|
3843
|
-
footer: (
|
|
3845
|
+
footer: (d = o.slots) == null ? void 0 : d.footer
|
|
3844
3846
|
});
|
|
3845
3847
|
};
|
|
3846
3848
|
},
|
|
@@ -3848,8 +3850,8 @@ const tr = {
|
|
|
3848
3850
|
gt();
|
|
3849
3851
|
}
|
|
3850
3852
|
});
|
|
3851
|
-
return Gt.forEach((
|
|
3852
|
-
p.component(
|
|
3853
|
+
return Gt.forEach((f) => {
|
|
3854
|
+
p.component(f.name, f);
|
|
3853
3855
|
}), p.provide("options", Dt), p.use(Qt, { locale: El }), document.body.appendChild(a), p.mount(a), t;
|
|
3854
3856
|
};
|
|
3855
3857
|
function Xt(o, u = window.innerWidth) {
|
|
@@ -3868,17 +3870,17 @@ function Xt(o, u = window.innerWidth) {
|
|
|
3868
3870
|
return u * parseFloat(o) / 100;
|
|
3869
3871
|
}
|
|
3870
3872
|
if (o.startsWith("calc(") && o.endsWith(")")) {
|
|
3871
|
-
let e = function(
|
|
3872
|
-
if (/[0-9+\-*/().\s]+$/.test(
|
|
3873
|
-
return new Function("return " +
|
|
3873
|
+
let e = function(f) {
|
|
3874
|
+
if (/[0-9+\-*/().\s]+$/.test(f))
|
|
3875
|
+
return new Function("return " + f)();
|
|
3874
3876
|
throw new Error("Invalid calc expression");
|
|
3875
3877
|
};
|
|
3876
3878
|
const r = o.slice(5, -1).trim();
|
|
3877
|
-
return e(r.replace(/([0-9.]+)([a-z%]+)/g, (
|
|
3879
|
+
return e(r.replace(/([0-9.]+)([a-z%]+)/g, (f, T, d) => Xt(T + d, u)));
|
|
3878
3880
|
}
|
|
3879
3881
|
throw new Error("Unsupported unit in value: " + o);
|
|
3880
3882
|
}
|
|
3881
|
-
const
|
|
3883
|
+
const Ve = (...o) => {
|
|
3882
3884
|
const u = {}, a = (t, r) => (Object.keys(r).forEach((e) => {
|
|
3883
3885
|
t[e] = typeof r[e] == "object" && !Array.isArray(r[e]) ? a(t[e] || {}, r[e]) : r[e];
|
|
3884
3886
|
}), t);
|
|
@@ -3914,10 +3916,10 @@ function Mt(o) {
|
|
|
3914
3916
|
e += (a[Math.floor(o * 10 * Math.pow(10, p)) % 10] + u[p]).replace(/零./, "");
|
|
3915
3917
|
e = e || "整", o = Math.floor(o);
|
|
3916
3918
|
for (let p = 0; p < t[0].length && o > 0; p++) {
|
|
3917
|
-
let
|
|
3919
|
+
let f = "";
|
|
3918
3920
|
for (let T = 0; T < t[1].length && o > 0; T++)
|
|
3919
|
-
|
|
3920
|
-
e =
|
|
3921
|
+
f = a[o % 10] + t[1][T] + f, o = Math.floor(o / 10);
|
|
3922
|
+
e = f.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][p] + e;
|
|
3921
3923
|
}
|
|
3922
3924
|
return r + e.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
3923
3925
|
}
|
|
@@ -3985,16 +3987,16 @@ const Se = {
|
|
|
3985
3987
|
});
|
|
3986
3988
|
}, Xa = (o, u) => {
|
|
3987
3989
|
let a = !1, t, r, e, p;
|
|
3988
|
-
const
|
|
3989
|
-
v.preventDefault(), a = !0, t = v.clientX, r = v.clientY, e = parseInt(document.defaultView.getComputedStyle(o).width), p = parseInt(document.defaultView.getComputedStyle(o).height), document.addEventListener("mousemove", T), document.addEventListener("mouseup",
|
|
3990
|
+
const f = (v) => {
|
|
3991
|
+
v.preventDefault(), a = !0, t = v.clientX, r = v.clientY, e = parseInt(document.defaultView.getComputedStyle(o).width), p = parseInt(document.defaultView.getComputedStyle(o).height), document.addEventListener("mousemove", T), document.addEventListener("mouseup", d);
|
|
3990
3992
|
}, T = (v) => {
|
|
3991
3993
|
if (!a) return;
|
|
3992
|
-
const n = Math.max(300, e + v.clientX - t),
|
|
3993
|
-
o.style.width = `${n}px`, o.style.height = `${
|
|
3994
|
-
},
|
|
3995
|
-
a = !1, document.removeEventListener("mousemove", T), document.removeEventListener("mouseup",
|
|
3994
|
+
const n = Math.max(300, e + v.clientX - t), c = Math.max(200, p + v.clientY - r);
|
|
3995
|
+
o.style.width = `${n}px`, o.style.height = `${c}px`;
|
|
3996
|
+
}, d = () => {
|
|
3997
|
+
a = !1, document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", d);
|
|
3996
3998
|
};
|
|
3997
|
-
u.addEventListener("mousedown",
|
|
3999
|
+
u.addEventListener("mousedown", f);
|
|
3998
4000
|
};
|
|
3999
4001
|
export {
|
|
4000
4002
|
Se as CT,
|
|
@@ -4004,7 +4006,7 @@ export {
|
|
|
4004
4006
|
Ie as filterObject,
|
|
4005
4007
|
ja as findTreeLabelByValue,
|
|
4006
4008
|
Na as formatAmount,
|
|
4007
|
-
|
|
4009
|
+
Ve as mergeObjects,
|
|
4008
4010
|
Mt as moneyToChinese,
|
|
4009
4011
|
St as openModal
|
|
4010
4012
|
};
|