vue-2024-ui 0.2.79 → 0.2.81
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 +658 -650
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Nt, { dayjs as hl, ElForm as Mt, ElButtonGroup as St, ElButton as He, ElPopover as At, ElIcon as Yt, ElMessage as ut, ElMessageBox as Wt, ElDrawer as yl, ElDialog as gl } from "element-plus";
|
|
2
|
-
import { ref as ae, useModel as lt, nextTick as Ke, onMounted as yt, computed as
|
|
2
|
+
import { ref as ae, useModel as lt, nextTick as Ke, onMounted as yt, computed as je, resolveComponent as F, openBlock as m, createElementBlock as z, Fragment as re, createElementVNode as K, createBlock as E, createCommentVNode as be, unref as U, mergeProps as A, withCtx as _, renderSlot as M, renderList as N, createTextVNode as Ae, toDisplayString as Me, createSlots as ge, createVNode as se, normalizeStyle as Ye, normalizeProps as Vt, resolveDynamicComponent as Pe, guardReactiveProps as Gt, mergeModels as at, useSlots as Xt, inject as Ot, withModifiers as vt, Transition as bl, withDirectives as $l, vShow as wl, h as _e, useAttrs as It, onUnmounted as kl, onBeforeUnmount as _l, normalizeClass as Qt, watchEffect as Cl, onBeforeMount as xl, watch as Zt, createApp as Jt } from "vue";
|
|
3
3
|
import { Plus as Ml, ZoomIn as Sl, Delete as Kt, Search as Tl, Refresh as el, More as Vl, CircleClose as El, CircleCheckFilled as Dl, CircleCheck as zt, Minus as Ol, Close as Il, Switch as tl, FullScreen as ql, InfoFilled as ll, Download as al, DocumentCopy as Al, Setting as Yl, CirclePlus as zl, Edit as Ul, View as Ll } from "@element-plus/icons-vue";
|
|
4
4
|
import rl from "sortablejs";
|
|
5
5
|
import { Dexie as Hl } from "dexie";
|
|
@@ -178,7 +178,7 @@ var nl = {
|
|
|
178
178
|
indicator: "幻灯片切换至索引 {index}"
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
},
|
|
181
|
+
}, jl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
182
182
|
function ol(r) {
|
|
183
183
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
184
184
|
}
|
|
@@ -186,43 +186,43 @@ var ul = { exports: {} };
|
|
|
186
186
|
(function(r, u) {
|
|
187
187
|
(function(e, l) {
|
|
188
188
|
r.exports = l();
|
|
189
|
-
})(
|
|
190
|
-
var e = 1e3, l = 6e4, n = 36e5, i = "millisecond", t = "second", f = "minute", x = "hour", v = "day", y = "week", o = "month", d = "quarter", p = "year", L = "date",
|
|
189
|
+
})(jl, function() {
|
|
190
|
+
var e = 1e3, l = 6e4, n = 36e5, i = "millisecond", t = "second", f = "minute", x = "hour", v = "day", y = "week", o = "month", d = "quarter", p = "year", L = "date", j = "Invalid Date", I = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, G = { 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(w) {
|
|
191
191
|
var $ = ["th", "st", "nd", "rd"], b = w % 100;
|
|
192
192
|
return "[" + w + ($[(b - 20) % 10] || $[b] || $[0]) + "]";
|
|
193
193
|
} }, Z = function(w, $, b) {
|
|
194
|
-
var
|
|
195
|
-
return !
|
|
194
|
+
var h = String(w);
|
|
195
|
+
return !h || h.length >= $ ? w : "" + Array($ + 1 - h.length).join(b) + w;
|
|
196
196
|
}, X = { s: Z, z: function(w) {
|
|
197
|
-
var $ = -w.utcOffset(), b = Math.abs($),
|
|
198
|
-
return ($ <= 0 ? "+" : "-") + Z(
|
|
197
|
+
var $ = -w.utcOffset(), b = Math.abs($), h = Math.floor(b / 60), T = b % 60;
|
|
198
|
+
return ($ <= 0 ? "+" : "-") + Z(h, 2, "0") + ":" + Z(T, 2, "0");
|
|
199
199
|
}, m: function w($, b) {
|
|
200
200
|
if ($.date() < b.date()) return -w(b, $);
|
|
201
|
-
var
|
|
202
|
-
return +(-(
|
|
201
|
+
var h = 12 * (b.year() - $.year()) + (b.month() - $.month()), T = $.clone().add(h, o), D = b - T < 0, O = $.clone().add(h + (D ? -1 : 1), o);
|
|
202
|
+
return +(-(h + (b - T) / (D ? T - O : O - T)) || 0);
|
|
203
203
|
}, a: function(w) {
|
|
204
204
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
|
205
205
|
}, p: function(w) {
|
|
206
206
|
return { M: o, y: p, w: y, d: v, D: L, h: x, m: f, s: t, ms: i, Q: d }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
207
207
|
}, u: function(w) {
|
|
208
208
|
return w === void 0;
|
|
209
|
-
} }, ne = "en",
|
|
210
|
-
|
|
209
|
+
} }, ne = "en", ue = {};
|
|
210
|
+
ue[ne] = G;
|
|
211
211
|
var pe = "$isDayjsObject", Se = function(w) {
|
|
212
212
|
return w instanceof Te || !(!w || !w[pe]);
|
|
213
|
-
}, De = function w($, b,
|
|
213
|
+
}, De = function w($, b, h) {
|
|
214
214
|
var T;
|
|
215
215
|
if (!$) return ne;
|
|
216
216
|
if (typeof $ == "string") {
|
|
217
|
-
var
|
|
218
|
-
|
|
217
|
+
var D = $.toLowerCase();
|
|
218
|
+
ue[D] && (T = D), b && (ue[D] = b, T = D);
|
|
219
219
|
var O = $.split("-");
|
|
220
220
|
if (!T && O.length > 1) return w(O[0]);
|
|
221
221
|
} else {
|
|
222
222
|
var Y = $.name;
|
|
223
|
-
|
|
223
|
+
ue[Y] = $, T = Y;
|
|
224
224
|
}
|
|
225
|
-
return !
|
|
225
|
+
return !h && T && (ne = T), T || !h && ne;
|
|
226
226
|
}, me = function(w, $) {
|
|
227
227
|
if (Se(w)) return w.clone();
|
|
228
228
|
var b = typeof $ == "object" ? $ : {};
|
|
@@ -237,8 +237,8 @@ var ul = { exports: {} };
|
|
|
237
237
|
}
|
|
238
238
|
var $ = w.prototype;
|
|
239
239
|
return $.parse = function(b) {
|
|
240
|
-
this.$d = function(
|
|
241
|
-
var T =
|
|
240
|
+
this.$d = function(h) {
|
|
241
|
+
var T = h.date, D = h.utc;
|
|
242
242
|
if (T === null) return /* @__PURE__ */ new Date(NaN);
|
|
243
243
|
if (P.u(T)) return /* @__PURE__ */ new Date();
|
|
244
244
|
if (T instanceof Date) return new Date(T);
|
|
@@ -246,7 +246,7 @@ var ul = { exports: {} };
|
|
|
246
246
|
var O = T.match(I);
|
|
247
247
|
if (O) {
|
|
248
248
|
var Y = O[2] - 1 || 0, le = (O[7] || "0").substring(0, 3);
|
|
249
|
-
return
|
|
249
|
+
return D ? new Date(Date.UTC(O[1], Y, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, le)) : new Date(O[1], Y, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, le);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
return new Date(T);
|
|
@@ -257,35 +257,35 @@ var ul = { exports: {} };
|
|
|
257
257
|
}, $.$utils = function() {
|
|
258
258
|
return P;
|
|
259
259
|
}, $.isValid = function() {
|
|
260
|
-
return this.$d.toString() !==
|
|
261
|
-
}, $.isSame = function(b,
|
|
260
|
+
return this.$d.toString() !== j;
|
|
261
|
+
}, $.isSame = function(b, h) {
|
|
262
262
|
var T = me(b);
|
|
263
|
-
return this.startOf(
|
|
264
|
-
}, $.isAfter = function(b,
|
|
265
|
-
return me(b) < this.startOf(
|
|
266
|
-
}, $.isBefore = function(b,
|
|
267
|
-
return this.endOf(
|
|
268
|
-
}, $.$g = function(b,
|
|
269
|
-
return P.u(b) ? this[
|
|
263
|
+
return this.startOf(h) <= T && T <= this.endOf(h);
|
|
264
|
+
}, $.isAfter = function(b, h) {
|
|
265
|
+
return me(b) < this.startOf(h);
|
|
266
|
+
}, $.isBefore = function(b, h) {
|
|
267
|
+
return this.endOf(h) < me(b);
|
|
268
|
+
}, $.$g = function(b, h, T) {
|
|
269
|
+
return P.u(b) ? this[h] : this.set(T, b);
|
|
270
270
|
}, $.unix = function() {
|
|
271
271
|
return Math.floor(this.valueOf() / 1e3);
|
|
272
272
|
}, $.valueOf = function() {
|
|
273
273
|
return this.$d.getTime();
|
|
274
|
-
}, $.startOf = function(b,
|
|
275
|
-
var T = this,
|
|
274
|
+
}, $.startOf = function(b, h) {
|
|
275
|
+
var T = this, D = !!P.u(h) || h, O = P.p(b), Y = function(Ie, V) {
|
|
276
276
|
var S = P.w(T.$u ? Date.UTC(T.$y, V, Ie) : new Date(T.$y, V, Ie), T);
|
|
277
|
-
return
|
|
277
|
+
return D ? S : S.endOf(v);
|
|
278
278
|
}, le = function(Ie, V) {
|
|
279
|
-
return P.w(T.toDate()[Ie].apply(T.toDate("s"), (
|
|
279
|
+
return P.w(T.toDate()[Ie].apply(T.toDate("s"), (D ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(V)), T);
|
|
280
280
|
}, de = this.$W, ye = this.$M, W = this.$D, Q = "set" + (this.$u ? "UTC" : "");
|
|
281
281
|
switch (O) {
|
|
282
282
|
case p:
|
|
283
|
-
return
|
|
283
|
+
return D ? Y(1, 0) : Y(31, 11);
|
|
284
284
|
case o:
|
|
285
|
-
return
|
|
285
|
+
return D ? Y(1, ye) : Y(0, ye + 1);
|
|
286
286
|
case y:
|
|
287
287
|
var Ve = this.$locale().weekStart || 0, ke = (de < Ve ? de + 7 : de) - Ve;
|
|
288
|
-
return Y(
|
|
288
|
+
return Y(D ? W - ke : W + (6 - ke), ye);
|
|
289
289
|
case v:
|
|
290
290
|
case L:
|
|
291
291
|
return le(Q + "Hours", 0);
|
|
@@ -300,23 +300,23 @@ var ul = { exports: {} };
|
|
|
300
300
|
}
|
|
301
301
|
}, $.endOf = function(b) {
|
|
302
302
|
return this.startOf(b, !1);
|
|
303
|
-
}, $.$set = function(b,
|
|
304
|
-
var T,
|
|
305
|
-
if (
|
|
303
|
+
}, $.$set = function(b, h) {
|
|
304
|
+
var T, D = P.p(b), O = "set" + (this.$u ? "UTC" : ""), Y = (T = {}, T[v] = O + "Date", T[L] = O + "Date", T[o] = O + "Month", T[p] = O + "FullYear", T[x] = O + "Hours", T[f] = O + "Minutes", T[t] = O + "Seconds", T[i] = O + "Milliseconds", T)[D], le = D === v ? this.$D + (h - this.$W) : h;
|
|
305
|
+
if (D === o || D === p) {
|
|
306
306
|
var de = this.clone().set(L, 1);
|
|
307
307
|
de.$d[Y](le), de.init(), this.$d = de.set(L, Math.min(this.$D, de.daysInMonth())).$d;
|
|
308
308
|
} else Y && this.$d[Y](le);
|
|
309
309
|
return this.init(), this;
|
|
310
|
-
}, $.set = function(b,
|
|
311
|
-
return this.clone().$set(b,
|
|
310
|
+
}, $.set = function(b, h) {
|
|
311
|
+
return this.clone().$set(b, h);
|
|
312
312
|
}, $.get = function(b) {
|
|
313
313
|
return this[P.p(b)]();
|
|
314
|
-
}, $.add = function(b,
|
|
315
|
-
var T,
|
|
314
|
+
}, $.add = function(b, h) {
|
|
315
|
+
var T, D = this;
|
|
316
316
|
b = Number(b);
|
|
317
|
-
var O = P.p(
|
|
318
|
-
var W = me(
|
|
319
|
-
return P.w(W.date(W.date() + Math.round(ye * b)),
|
|
317
|
+
var O = P.p(h), Y = function(ye) {
|
|
318
|
+
var W = me(D);
|
|
319
|
+
return P.w(W.date(W.date() + Math.round(ye * b)), D);
|
|
320
320
|
};
|
|
321
321
|
if (O === o) return this.set(o, this.$M + b);
|
|
322
322
|
if (O === p) return this.set(p, this.$y + b);
|
|
@@ -324,26 +324,26 @@ var ul = { exports: {} };
|
|
|
324
324
|
if (O === y) return Y(7);
|
|
325
325
|
var le = (T = {}, T[f] = l, T[x] = n, T[t] = e, T)[O] || 1, de = this.$d.getTime() + b * le;
|
|
326
326
|
return P.w(de, this);
|
|
327
|
-
}, $.subtract = function(b,
|
|
328
|
-
return this.add(-1 * b,
|
|
327
|
+
}, $.subtract = function(b, h) {
|
|
328
|
+
return this.add(-1 * b, h);
|
|
329
329
|
}, $.format = function(b) {
|
|
330
|
-
var
|
|
331
|
-
if (!this.isValid()) return T.invalidDate ||
|
|
332
|
-
var
|
|
333
|
-
return V && (V[S] || V(
|
|
330
|
+
var h = this, T = this.$locale();
|
|
331
|
+
if (!this.isValid()) return T.invalidDate || j;
|
|
332
|
+
var D = b || "YYYY-MM-DDTHH:mm:ssZ", O = P.z(this), Y = this.$H, le = this.$m, de = this.$M, ye = T.weekdays, W = T.months, Q = T.meridiem, Ve = function(V, S, H, Ce) {
|
|
333
|
+
return V && (V[S] || V(h, D)) || H[S].slice(0, Ce);
|
|
334
334
|
}, ke = function(V) {
|
|
335
335
|
return P.s(Y % 12 || 12, V, "0");
|
|
336
336
|
}, Ie = Q || function(V, S, H) {
|
|
337
337
|
var Ce = V < 12 ? "AM" : "PM";
|
|
338
338
|
return H ? Ce.toLowerCase() : Ce;
|
|
339
339
|
};
|
|
340
|
-
return
|
|
340
|
+
return D.replace(k, function(V, S) {
|
|
341
341
|
return S || function(H) {
|
|
342
342
|
switch (H) {
|
|
343
343
|
case "YY":
|
|
344
|
-
return String(
|
|
344
|
+
return String(h.$y).slice(-2);
|
|
345
345
|
case "YYYY":
|
|
346
|
-
return P.s(
|
|
346
|
+
return P.s(h.$y, 4, "0");
|
|
347
347
|
case "M":
|
|
348
348
|
return de + 1;
|
|
349
349
|
case "MM":
|
|
@@ -353,17 +353,17 @@ var ul = { exports: {} };
|
|
|
353
353
|
case "MMMM":
|
|
354
354
|
return Ve(W, de);
|
|
355
355
|
case "D":
|
|
356
|
-
return
|
|
356
|
+
return h.$D;
|
|
357
357
|
case "DD":
|
|
358
|
-
return P.s(
|
|
358
|
+
return P.s(h.$D, 2, "0");
|
|
359
359
|
case "d":
|
|
360
|
-
return String(
|
|
360
|
+
return String(h.$W);
|
|
361
361
|
case "dd":
|
|
362
|
-
return Ve(T.weekdaysMin,
|
|
362
|
+
return Ve(T.weekdaysMin, h.$W, ye, 2);
|
|
363
363
|
case "ddd":
|
|
364
|
-
return Ve(T.weekdaysShort,
|
|
364
|
+
return Ve(T.weekdaysShort, h.$W, ye, 3);
|
|
365
365
|
case "dddd":
|
|
366
|
-
return ye[
|
|
366
|
+
return ye[h.$W];
|
|
367
367
|
case "H":
|
|
368
368
|
return String(Y);
|
|
369
369
|
case "HH":
|
|
@@ -381,11 +381,11 @@ var ul = { exports: {} };
|
|
|
381
381
|
case "mm":
|
|
382
382
|
return P.s(le, 2, "0");
|
|
383
383
|
case "s":
|
|
384
|
-
return String(
|
|
384
|
+
return String(h.$s);
|
|
385
385
|
case "ss":
|
|
386
|
-
return P.s(
|
|
386
|
+
return P.s(h.$s, 2, "0");
|
|
387
387
|
case "SSS":
|
|
388
|
-
return P.s(
|
|
388
|
+
return P.s(h.$ms, 3, "0");
|
|
389
389
|
case "Z":
|
|
390
390
|
return O;
|
|
391
391
|
}
|
|
@@ -394,47 +394,47 @@ var ul = { exports: {} };
|
|
|
394
394
|
});
|
|
395
395
|
}, $.utcOffset = function() {
|
|
396
396
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
397
|
-
}, $.diff = function(b,
|
|
398
|
-
var
|
|
397
|
+
}, $.diff = function(b, h, T) {
|
|
398
|
+
var D, O = this, Y = P.p(h), le = me(b), de = (le.utcOffset() - this.utcOffset()) * l, ye = this - le, W = function() {
|
|
399
399
|
return P.m(O, le);
|
|
400
400
|
};
|
|
401
401
|
switch (Y) {
|
|
402
402
|
case p:
|
|
403
|
-
|
|
403
|
+
D = W() / 12;
|
|
404
404
|
break;
|
|
405
405
|
case o:
|
|
406
|
-
|
|
406
|
+
D = W();
|
|
407
407
|
break;
|
|
408
408
|
case d:
|
|
409
|
-
|
|
409
|
+
D = W() / 3;
|
|
410
410
|
break;
|
|
411
411
|
case y:
|
|
412
|
-
|
|
412
|
+
D = (ye - de) / 6048e5;
|
|
413
413
|
break;
|
|
414
414
|
case v:
|
|
415
|
-
|
|
415
|
+
D = (ye - de) / 864e5;
|
|
416
416
|
break;
|
|
417
417
|
case x:
|
|
418
|
-
|
|
418
|
+
D = ye / n;
|
|
419
419
|
break;
|
|
420
420
|
case f:
|
|
421
|
-
|
|
421
|
+
D = ye / l;
|
|
422
422
|
break;
|
|
423
423
|
case t:
|
|
424
|
-
|
|
424
|
+
D = ye / e;
|
|
425
425
|
break;
|
|
426
426
|
default:
|
|
427
|
-
|
|
427
|
+
D = ye;
|
|
428
428
|
}
|
|
429
|
-
return T ?
|
|
429
|
+
return T ? D : P.a(D);
|
|
430
430
|
}, $.daysInMonth = function() {
|
|
431
431
|
return this.endOf(o).$D;
|
|
432
432
|
}, $.$locale = function() {
|
|
433
|
-
return
|
|
434
|
-
}, $.locale = function(b,
|
|
433
|
+
return ue[this.$L];
|
|
434
|
+
}, $.locale = function(b, h) {
|
|
435
435
|
if (!b) return this.$L;
|
|
436
|
-
var T = this.clone(),
|
|
437
|
-
return
|
|
436
|
+
var T = this.clone(), D = De(b, h, !0);
|
|
437
|
+
return D && (T.$L = D), T;
|
|
438
438
|
}, $.clone = function() {
|
|
439
439
|
return P.w(this.$d, this);
|
|
440
440
|
}, $.toDate = function() {
|
|
@@ -455,16 +455,16 @@ var ul = { exports: {} };
|
|
|
455
455
|
return w.$i || (w($, Te, me), w.$i = !0), me;
|
|
456
456
|
}, me.locale = De, me.isDayjs = Se, me.unix = function(w) {
|
|
457
457
|
return me(1e3 * w);
|
|
458
|
-
}, me.en =
|
|
458
|
+
}, me.en = ue[ne], me.Ls = ue, me.p = {}, me;
|
|
459
459
|
});
|
|
460
460
|
})(ul);
|
|
461
|
-
var
|
|
462
|
-
const Et = /* @__PURE__ */ ol(
|
|
461
|
+
var Fl = ul.exports;
|
|
462
|
+
const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
463
463
|
const e = r.__vccOpts || r;
|
|
464
464
|
for (const [l, n] of u)
|
|
465
465
|
e[l] = n;
|
|
466
466
|
return e;
|
|
467
|
-
},
|
|
467
|
+
}, Rl = {
|
|
468
468
|
style: { display: "flex", width: "100%" },
|
|
469
469
|
class: "g-ctrl-container"
|
|
470
470
|
}, Bl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, Pl = ["innerHTML"], Nl = ["innerHTML"], Wl = ["title"], Gl = ["innerHTML"], Xl = ["innerHTML"], Ql = ["innerHTML"], Zl = ["innerHTML"], Jl = ["innerHTML"], Kl = ["innerHTML"], ea = ["innerHTML"], ta = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
@@ -475,14 +475,14 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:modelValue"],
|
|
477
477
|
setup(r) {
|
|
478
|
-
var $, b,
|
|
479
|
-
const u = r, e = ae(u.item || {}), l = lt(r, "modelValue"), n = ae(u.ctrlKey), i = ae(u.ctrlType), t = ae(u.model), f = ae([]), x = ae([]), v = ae(!1), y = ae(!1), o = ae(0), d = ae((b = ($ = t == null ? void 0 : t.value) == null ? void 0 : $.form) != null && b["default-placeholder"] ? (T = (
|
|
480
|
-
!((
|
|
481
|
-
const p = ae({ display: "flex", flex: 1 }), L = u.t === "t" ? "center" : "flex-start",
|
|
482
|
-
p.value = { ...p.value, justifyContent: L, ...
|
|
478
|
+
var $, b, h, T, D, O, Y, le, de, ye, W, Q, Ve, ke, Ie;
|
|
479
|
+
const u = r, e = ae(u.item || {}), l = lt(r, "modelValue"), n = ae(u.ctrlKey), i = ae(u.ctrlType), t = ae(u.model), f = ae([]), x = ae([]), v = ae(!1), y = ae(!1), o = ae(0), d = ae((b = ($ = t == null ? void 0 : t.value) == null ? void 0 : $.form) != null && b["default-placeholder"] ? (T = (h = t == null ? void 0 : t.value) == null ? void 0 : h[n == null ? void 0 : n.value]) == null ? void 0 : T.label : "");
|
|
480
|
+
!((D = i.value) != null && D.startsWith("text")) && !((O = i.value) != null && O.startsWith("link")) && !((Y = i.value) != null && Y.startsWith("tag")) && !((le = i.value) != null && le.startsWith("div")) && !((de = i.value) != null && de.startsWith("span")) && !((ye = i.value) != null && ye.startsWith("avatar")) && ((W = e.value) != null && W.style || (e.value.style = { width: ((Ve = (Q = e.value) == null ? void 0 : Q.style) == null ? void 0 : Ve.width) || "100%" }));
|
|
481
|
+
const p = ae({ display: "flex", flex: 1 }), L = u.t === "t" ? "center" : "flex-start", j = ((ke = e.value) == null ? void 0 : ke.style) || {};
|
|
482
|
+
p.value = { ...p.value, justifyContent: L, ...j };
|
|
483
483
|
const I = () => {
|
|
484
484
|
const V = Xt(), S = Object.keys(V), H = `${u.t}-${n.value}-`;
|
|
485
|
-
return S.filter((
|
|
485
|
+
return S.filter((Ue) => Ue.startsWith(H)).map((Ue) => Ue.replace(H, ""));
|
|
486
486
|
}, k = ae({
|
|
487
487
|
multiple: !1,
|
|
488
488
|
"show-file-list": !1,
|
|
@@ -523,7 +523,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
523
523
|
filterable: !0,
|
|
524
524
|
remote: !!(e.value && e.value["remote-method"]),
|
|
525
525
|
...e.value
|
|
526
|
-
}),
|
|
526
|
+
}), ue = ae((V) => {
|
|
527
527
|
e.value["remote-method"](V, (S) => {
|
|
528
528
|
Ke(() => {
|
|
529
529
|
x.value = S;
|
|
@@ -536,10 +536,10 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
536
536
|
if (typeof H == "string")
|
|
537
537
|
x.value = [{ label: H, value: l.value }];
|
|
538
538
|
else {
|
|
539
|
-
const Ce = H == null ? void 0 : H.map((
|
|
540
|
-
...
|
|
541
|
-
value:
|
|
542
|
-
label:
|
|
539
|
+
const Ce = H == null ? void 0 : H.map((ze, Ue) => ({
|
|
540
|
+
...ze,
|
|
541
|
+
value: ze.value ?? ze.label ?? Ue,
|
|
542
|
+
label: ze.label || "未知选项"
|
|
543
543
|
}));
|
|
544
544
|
x.value = Ce || [];
|
|
545
545
|
}
|
|
@@ -567,8 +567,8 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
567
567
|
if (V.preventDefault(), V.stopPropagation(), e.value["file-list"] && e.value["file-list"].length > 0) {
|
|
568
568
|
const S = l.value, H = e.value["file-list"].findIndex(
|
|
569
569
|
(Ce) => {
|
|
570
|
-
var
|
|
571
|
-
return Ce.url === S || ((
|
|
570
|
+
var ze;
|
|
571
|
+
return Ce.url === S || ((ze = Ce.raw) == null ? void 0 : ze.url) === S;
|
|
572
572
|
}
|
|
573
573
|
);
|
|
574
574
|
o.value = H >= 0 ? H : 0;
|
|
@@ -582,18 +582,18 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
582
582
|
}
|
|
583
583
|
let H = V.replace(/[^-\d.]/g, "");
|
|
584
584
|
if (H.includes("-") && (H.startsWith("-") ? H = "-" + H.substring(1).replace(/-/g, "") : H = H.replace(/-/g, "")), (H.match(/\./g) || []).length > 1) {
|
|
585
|
-
const
|
|
586
|
-
H = H.substring(0,
|
|
585
|
+
const Ue = H.indexOf(".");
|
|
586
|
+
H = H.substring(0, Ue + 1) + H.substring(Ue + 1).replace(/\./g, "");
|
|
587
587
|
}
|
|
588
588
|
if (H = H.replace(/^-\./, "-0."), H = H.replace(/^\./, "0."), H = H.replace(/^-0+(\d)/, "-$1"), H = H.replace(/^0+(\d)/, "$1"), (H === "-" || H === "" || H === ".") && (H = "0"), S >= 0 && H.includes(".")) {
|
|
589
|
-
const [
|
|
590
|
-
tt.length > S && (H =
|
|
589
|
+
const [Ue, tt] = H.split(".");
|
|
590
|
+
tt.length > S && (H = Ue + "." + tt.substring(0, S));
|
|
591
591
|
}
|
|
592
592
|
l.value = H;
|
|
593
593
|
};
|
|
594
594
|
yt(async () => {
|
|
595
|
-
var H, Ce,
|
|
596
|
-
e.value && e.value["remote-method"] && (ne.value["remote-method"] =
|
|
595
|
+
var H, Ce, ze, Ue, tt;
|
|
596
|
+
e.value && e.value["remote-method"] && (ne.value["remote-method"] = ue), (Ce = (H = t.value[n.value]) == null ? void 0 : H.options) != null && Ce.length && (x.value = t.value[n.value].options);
|
|
597
597
|
const V = (Le, Qe = "options", Ge = t.value[n.value]) => {
|
|
598
598
|
typeof e.value.getDicts == "function" && pe(Qe).catch((Xe) => {
|
|
599
599
|
console.error(`Failed to load ${Qe} for ${Le}:`, Xe);
|
|
@@ -631,27 +631,27 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
631
631
|
(Xe = (Ge = t.value) == null ? void 0 : Ge.table) == null || Xe.load();
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
|
-
i.value == "image" && (e.value.width && ((
|
|
634
|
+
i.value == "image" && (e.value.width && ((ze = Te.value) != null && ze.$el) && Te.value.$el.style.setProperty("--up-width", typeof e.value.width == "number" ? e.value.width + "px" : e.value.width), e.value.height && ((Ue = Te.value) != null && Ue.$el) && Te.value.$el.style.setProperty("--up-height", typeof e.value.height == "number" ? e.value.height + "px" : e.value.height), e.value.fontSize && ((tt = Te.value) != null && tt.$el) && Te.value.$el.style.setProperty("--up-font-size", typeof e.value.fontSize == "number" ? e.value.fontSize + "px" : e.value.fontSize));
|
|
635
635
|
});
|
|
636
|
-
const w =
|
|
636
|
+
const w = je(() => {
|
|
637
637
|
var V;
|
|
638
638
|
return e.value["file-list"] && e.value["file-list"].length ? (V = e.value["file-list"]) == null ? void 0 : V.map((S) => S == null ? void 0 : S.url) : [l.value];
|
|
639
639
|
});
|
|
640
640
|
return (V, S) => {
|
|
641
|
-
var te,
|
|
642
|
-
const H =
|
|
643
|
-
return
|
|
641
|
+
var te, Re, Je, rt, ee, ie, ve, it, dt, nt, ot, pt;
|
|
642
|
+
const H = F("el-image-viewer"), Ce = F("el-radio"), ze = F("el-radio-group"), Ue = F("el-radio-button"), tt = F("el-checkbox"), Le = F("el-checkbox-group"), Qe = F("el-checkbox-button"), Ge = F("g-select-option"), Xe = F("el-option"), gt = F("el-select"), bt = F("el-tree-select"), $t = F("el-time-picker"), wt = F("el-time-select"), kt = F("el-date-picker"), a = F("el-color-picker"), s = F("el-rate"), g = F("el-slider"), C = F("el-switch"), q = F("el-transfer"), R = F("el-cascader"), B = F("el-icon"), he = F("el-image"), we = F("el-tooltip"), Ee = F("el-upload"), Oe = F("el-autocomplete"), Fe = F("el-input-number"), Ze = F("el-input-tag"), st = F("el-input"), _t = F("el-link"), Ct = F("el-text"), J = F("el-avatar"), fe = F("el-tag");
|
|
643
|
+
return m(), z(re, null, [
|
|
644
644
|
K("div", null, [
|
|
645
|
-
v.value ? (
|
|
645
|
+
v.value ? (m(), E(H, {
|
|
646
646
|
key: 0,
|
|
647
647
|
teleported: !0,
|
|
648
648
|
"initial-index": o.value,
|
|
649
649
|
"url-list": w.value,
|
|
650
650
|
onClose: S[0] || (S[0] = (c) => v.value = !1)
|
|
651
|
-
}, null, 8, ["initial-index", "url-list"])) :
|
|
651
|
+
}, null, 8, ["initial-index", "url-list"])) : be("", !0)
|
|
652
652
|
]),
|
|
653
|
-
K("div",
|
|
654
|
-
i.value == U(xe).RADIO ? (
|
|
653
|
+
K("div", Rl, [
|
|
654
|
+
i.value == U(xe).RADIO ? (m(), E(ze, A({
|
|
655
655
|
key: 0,
|
|
656
656
|
modelValue: l.value,
|
|
657
657
|
"onUpdate:modelValue": S[1] || (S[1] = (c) => l.value = c),
|
|
@@ -659,7 +659,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
659
659
|
}, e.value), {
|
|
660
660
|
default: _(() => [
|
|
661
661
|
M(V.$slots, `${u.t}-${n.value}`, { data: e.value }, () => [
|
|
662
|
-
(
|
|
662
|
+
(m(!0), z(re, null, N(x.value, (c) => (m(), E(Ce, A({ ref_for: !0 }, c), {
|
|
663
663
|
default: _(() => [
|
|
664
664
|
M(V.$slots, `${u.t}-${n.value}-options`, { option: c }, void 0, !0)
|
|
665
665
|
]),
|
|
@@ -668,7 +668,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
668
668
|
], !0)
|
|
669
669
|
]),
|
|
670
670
|
_: 3
|
|
671
|
-
}, 16, ["modelValue", "disabled"])) : i.value == U(xe).RADIOBUTTON ? (
|
|
671
|
+
}, 16, ["modelValue", "disabled"])) : i.value == U(xe).RADIOBUTTON ? (m(), E(ze, A({
|
|
672
672
|
key: 1,
|
|
673
673
|
modelValue: l.value,
|
|
674
674
|
"onUpdate:modelValue": S[2] || (S[2] = (c) => l.value = c),
|
|
@@ -676,7 +676,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
676
676
|
}, e.value), {
|
|
677
677
|
default: _(() => [
|
|
678
678
|
M(V.$slots, `${u.t}-${n.value}`, { data: e.value }, () => [
|
|
679
|
-
(
|
|
679
|
+
(m(!0), z(re, null, N(x.value, (c) => (m(), E(Ue, A({ ref_for: !0 }, c), {
|
|
680
680
|
default: _(() => [
|
|
681
681
|
M(V.$slots, `${u.t}-${n.value}-options`, { option: c }, void 0, !0)
|
|
682
682
|
]),
|
|
@@ -685,7 +685,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
685
685
|
], !0)
|
|
686
686
|
]),
|
|
687
687
|
_: 3
|
|
688
|
-
}, 16, ["modelValue", "disabled"])) : i.value == U(xe).CHECKBOX ? (
|
|
688
|
+
}, 16, ["modelValue", "disabled"])) : i.value == U(xe).CHECKBOX ? (m(), E(tt, A({
|
|
689
689
|
key: 2,
|
|
690
690
|
modelValue: l.value,
|
|
691
691
|
"onUpdate:modelValue": S[3] || (S[3] = (c) => l.value = c),
|
|
@@ -697,7 +697,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
697
697
|
], !0)
|
|
698
698
|
]),
|
|
699
699
|
_: 3
|
|
700
|
-
}, 16, ["modelValue", "disabled"])) : i.value == U(xe).CHECKBOXGROUP ? (
|
|
700
|
+
}, 16, ["modelValue", "disabled"])) : i.value == U(xe).CHECKBOXGROUP ? (m(), E(Le, A({
|
|
701
701
|
key: 3,
|
|
702
702
|
modelValue: l.value,
|
|
703
703
|
"onUpdate:modelValue": S[4] || (S[4] = (c) => l.value = c),
|
|
@@ -705,7 +705,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
705
705
|
}, e.value), {
|
|
706
706
|
default: _(() => [
|
|
707
707
|
M(V.$slots, `${u.t}-${n.value}`, { data: e.value }, () => [
|
|
708
|
-
(
|
|
708
|
+
(m(!0), z(re, null, N(x.value, (c) => (m(), E(tt, A({ ref_for: !0 }, c), {
|
|
709
709
|
default: _(() => [
|
|
710
710
|
M(V.$slots, `${u.t}-${n.value}-options`, { option: c }, () => [
|
|
711
711
|
Ae(Me(c.label), 1)
|
|
@@ -716,7 +716,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
716
716
|
], !0)
|
|
717
717
|
]),
|
|
718
718
|
_: 3
|
|
719
|
-
}, 16, ["modelValue", "disabled"])) : i.value == U(xe).CHECKBOXGROUPBUTTON ? (
|
|
719
|
+
}, 16, ["modelValue", "disabled"])) : i.value == U(xe).CHECKBOXGROUPBUTTON ? (m(), E(Le, A({
|
|
720
720
|
key: 4,
|
|
721
721
|
modelValue: l.value,
|
|
722
722
|
"onUpdate:modelValue": S[5] || (S[5] = (c) => l.value = c),
|
|
@@ -724,7 +724,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
724
724
|
}, U(Ne)(e.value, (c) => c != "type")), {
|
|
725
725
|
default: _(() => [
|
|
726
726
|
M(V.$slots, `${u.t}-${n.value}`, { data: e.value }, () => [
|
|
727
|
-
(
|
|
727
|
+
(m(!0), z(re, null, N(x.value, (c) => (m(), E(Qe, A({ ref_for: !0 }, c), {
|
|
728
728
|
default: _(() => [
|
|
729
729
|
M(V.$slots, `${u.t}-${n.value}-options`, { option: c }, void 0, !0)
|
|
730
730
|
]),
|
|
@@ -733,7 +733,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
733
733
|
], !0)
|
|
734
734
|
]),
|
|
735
735
|
_: 3
|
|
736
|
-
}, 16, ["modelValue", "disabled"])) : i.value === U(xe).SELECT ? (
|
|
736
|
+
}, 16, ["modelValue", "disabled"])) : i.value === U(xe).SELECT ? (m(), E(gt, A({
|
|
737
737
|
key: 5,
|
|
738
738
|
modelValue: l.value,
|
|
739
739
|
"onUpdate:modelValue": S[6] || (S[6] = (c) => l.value = c),
|
|
@@ -751,10 +751,10 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
751
751
|
key: 0,
|
|
752
752
|
options: x.value
|
|
753
753
|
}, () => [
|
|
754
|
-
(
|
|
754
|
+
(m(!0), z(re, null, N(x.value, (oe) => (m(), z(re, {
|
|
755
755
|
key: oe.value
|
|
756
756
|
}, [
|
|
757
|
-
|
|
757
|
+
se(Xe, A({ ref_for: !0 }, U(Ne)(oe, (ce) => ce != "children"), {
|
|
758
758
|
onClick: (ce) => {
|
|
759
759
|
ne.value.change && ne.value.change(oe), Se();
|
|
760
760
|
}
|
|
@@ -768,7 +768,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
768
768
|
}, () => {
|
|
769
769
|
var Be;
|
|
770
770
|
return [
|
|
771
|
-
|
|
771
|
+
se(Ge, {
|
|
772
772
|
columns: (Be = e.value) == null ? void 0 : Be.columns,
|
|
773
773
|
data: oe,
|
|
774
774
|
t: u.t
|
|
@@ -785,12 +785,12 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
785
785
|
}))
|
|
786
786
|
]), 1032, ["columns", "data", "t"])
|
|
787
787
|
];
|
|
788
|
-
}, !0) :
|
|
788
|
+
}, !0) : be("", !0)
|
|
789
789
|
];
|
|
790
790
|
}),
|
|
791
791
|
_: 2
|
|
792
792
|
}, 1040, ["onClick"]),
|
|
793
|
-
oe.children && oe.children.length ? (
|
|
793
|
+
oe.children && oe.children.length ? (m(!0), z(re, { key: 0 }, N(oe.children, (ce) => (m(), E(Xe, A({
|
|
794
794
|
style: { "margin-left": "20px" },
|
|
795
795
|
key: ce.value
|
|
796
796
|
}, { ref_for: !0 }, U(Ne)(ce, (Be) => Be != "children"), {
|
|
@@ -807,7 +807,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
807
807
|
}, () => {
|
|
808
808
|
var ft;
|
|
809
809
|
return [
|
|
810
|
-
|
|
810
|
+
se(Ge, {
|
|
811
811
|
columns: (ft = e.value) == null ? void 0 : ft.columns,
|
|
812
812
|
data: ce,
|
|
813
813
|
t: u.t
|
|
@@ -824,13 +824,13 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
824
824
|
}))
|
|
825
825
|
]), 1032, ["columns", "data", "t"])
|
|
826
826
|
];
|
|
827
|
-
}, !0) :
|
|
827
|
+
}, !0) : be("", !0)
|
|
828
828
|
];
|
|
829
829
|
}),
|
|
830
830
|
_: 2
|
|
831
|
-
}, 1040, ["onClick"]))), 128)) :
|
|
831
|
+
}, 1040, ["onClick"]))), 128)) : be("", !0)
|
|
832
832
|
], 64))), 128))
|
|
833
|
-
], !0) :
|
|
833
|
+
], !0) : be("", !0)
|
|
834
834
|
];
|
|
835
835
|
}),
|
|
836
836
|
_: 2
|
|
@@ -840,7 +840,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
840
840
|
fn: _(() => {
|
|
841
841
|
var c;
|
|
842
842
|
return [
|
|
843
|
-
|
|
843
|
+
se(Ge, {
|
|
844
844
|
columns: (c = e.value) == null ? void 0 : c.columns,
|
|
845
845
|
title: !0,
|
|
846
846
|
t: u.t
|
|
@@ -862,7 +862,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
862
862
|
M(V.$slots, `${u.t}-${n.value}-${c}`, { form: r.formInfo }, void 0, !0)
|
|
863
863
|
])
|
|
864
864
|
}))
|
|
865
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : i.value == U(xe).TREESELECT ? (
|
|
865
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : i.value == U(xe).TREESELECT ? (m(), E(bt, A({
|
|
866
866
|
key: 6,
|
|
867
867
|
modelValue: l.value,
|
|
868
868
|
"onUpdate:modelValue": S[8] || (S[8] = (c) => l.value = c),
|
|
@@ -875,14 +875,14 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
875
875
|
M(V.$slots, `${u.t}-${n.value}-${c}`, { data: oe }, void 0, !0)
|
|
876
876
|
])
|
|
877
877
|
}))
|
|
878
|
-
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : i.value == U(xe).TIME ? (
|
|
878
|
+
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : i.value == U(xe).TIME ? (m(), E($t, A({
|
|
879
879
|
key: 7,
|
|
880
880
|
modelValue: l.value,
|
|
881
881
|
"onUpdate:modelValue": S[9] || (S[9] = (c) => l.value = c),
|
|
882
882
|
"arrow-control": "",
|
|
883
883
|
format: "HH:mm:ss",
|
|
884
884
|
disabled: t.value[n.value].disabled
|
|
885
|
-
}, e.value, { placeholder: d.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : i.value == U(xe).TIMESELECT ? (
|
|
885
|
+
}, e.value, { placeholder: d.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : i.value == U(xe).TIMESELECT ? (m(), E(wt, A({
|
|
886
886
|
key: 8,
|
|
887
887
|
modelValue: l.value,
|
|
888
888
|
"onUpdate:modelValue": S[10] || (S[10] = (c) => l.value = c),
|
|
@@ -892,7 +892,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
892
892
|
end: "23:30",
|
|
893
893
|
placeholder: d.value,
|
|
894
894
|
disabled: t.value[n.value].disabled
|
|
895
|
-
}, e.value), null, 16, ["modelValue", "placeholder", "disabled"])) : Z(i.value) ? (
|
|
895
|
+
}, e.value), null, 16, ["modelValue", "placeholder", "disabled"])) : Z(i.value) ? (m(), E(kt, A({
|
|
896
896
|
key: 9,
|
|
897
897
|
modelValue: l.value,
|
|
898
898
|
"onUpdate:modelValue": S[11] || (S[11] = (c) => l.value = c),
|
|
@@ -908,21 +908,21 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
908
908
|
M(V.$slots, `${u.t}-${n.value}-${c}`, { data: oe }, void 0, !0)
|
|
909
909
|
])
|
|
910
910
|
}))
|
|
911
|
-
]), 1040, ["modelValue", "type", "format", "placeholder", "value-format", "disabled"])) : i.value == U(xe).COLOR ? (
|
|
911
|
+
]), 1040, ["modelValue", "type", "format", "placeholder", "value-format", "disabled"])) : i.value == U(xe).COLOR ? (m(), E(a, A({
|
|
912
912
|
key: 10,
|
|
913
913
|
modelValue: l.value,
|
|
914
914
|
"onUpdate:modelValue": S[12] || (S[12] = (c) => l.value = c)
|
|
915
|
-
}, e.value), null, 16, ["modelValue"])) : i.value == U(xe).RATE ? (
|
|
915
|
+
}, e.value), null, 16, ["modelValue"])) : i.value == U(xe).RATE ? (m(), E(s, A({
|
|
916
916
|
key: 11,
|
|
917
917
|
modelValue: l.value,
|
|
918
918
|
"onUpdate:modelValue": S[13] || (S[13] = (c) => l.value = c),
|
|
919
919
|
disabled: t.value[n.value].disabled
|
|
920
|
-
}, e.value), null, 16, ["modelValue", "disabled"])) : i.value == U(xe).SLIDER ? (
|
|
920
|
+
}, e.value), null, 16, ["modelValue", "disabled"])) : i.value == U(xe).SLIDER ? (m(), E(g, A({
|
|
921
921
|
key: 12,
|
|
922
922
|
modelValue: l.value,
|
|
923
923
|
"onUpdate:modelValue": S[14] || (S[14] = (c) => l.value = c),
|
|
924
924
|
disabled: t.value[n.value].disabled
|
|
925
|
-
}, e.value), null, 16, ["modelValue", "disabled"])) : i.value == U(xe).SWITCH ? (
|
|
925
|
+
}, e.value), null, 16, ["modelValue", "disabled"])) : i.value == U(xe).SWITCH ? (m(), E(C, A({
|
|
926
926
|
key: 13,
|
|
927
927
|
modelValue: l.value,
|
|
928
928
|
"onUpdate:modelValue": S[15] || (S[15] = (c) => l.value = c),
|
|
@@ -935,7 +935,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
935
935
|
M(V.$slots, `${u.t}-${n.value}-${c}`, { data: oe }, void 0, !0)
|
|
936
936
|
])
|
|
937
937
|
}))
|
|
938
|
-
]), 1040, ["modelValue", "disabled"])) : i.value == U(xe).TRANSFER ? (
|
|
938
|
+
]), 1040, ["modelValue", "disabled"])) : i.value == U(xe).TRANSFER ? (m(), E(q, A({
|
|
939
939
|
key: 14,
|
|
940
940
|
modelValue: l.value,
|
|
941
941
|
"onUpdate:modelValue": S[16] || (S[16] = (c) => l.value = c)
|
|
@@ -946,7 +946,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
946
946
|
M(V.$slots, `${u.t}-${n.value}-${c}`, { data: oe }, void 0, !0)
|
|
947
947
|
])
|
|
948
948
|
}))
|
|
949
|
-
]), 1040, ["modelValue"])) : i.value == U(xe).CASCADER ? (
|
|
949
|
+
]), 1040, ["modelValue"])) : i.value == U(xe).CASCADER ? (m(), E(R, A({
|
|
950
950
|
key: 15,
|
|
951
951
|
modelValue: l.value,
|
|
952
952
|
"onUpdate:modelValue": S[17] || (S[17] = (c) => l.value = c)
|
|
@@ -957,7 +957,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
957
957
|
M(V.$slots, `${u.t}-${n.value}-${c}`, { data: oe }, void 0, !0)
|
|
958
958
|
])
|
|
959
959
|
}))
|
|
960
|
-
]), 1040, ["modelValue", "options"])) : i.value == U(xe).IMAGE ? (
|
|
960
|
+
]), 1040, ["modelValue", "options"])) : i.value == U(xe).IMAGE ? (m(), E(Ee, A({
|
|
961
961
|
key: 16,
|
|
962
962
|
"file-list": e.value["file-list"],
|
|
963
963
|
"onUpdate:fileList": S[21] || (S[21] = (c) => e.value["file-list"] = c),
|
|
@@ -971,18 +971,18 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
971
971
|
default: _(() => {
|
|
972
972
|
var c, oe;
|
|
973
973
|
return [
|
|
974
|
-
!l.value || ((c = e.value) == null ? void 0 : c.multiple) === !0 ? (
|
|
974
|
+
!l.value || ((c = e.value) == null ? void 0 : c.multiple) === !0 ? (m(), E(B, { key: 0 }, {
|
|
975
975
|
default: _(() => [
|
|
976
|
-
|
|
976
|
+
se(U(Ml))
|
|
977
977
|
]),
|
|
978
978
|
_: 1
|
|
979
|
-
})) : (
|
|
979
|
+
})) : (m(), z("div", {
|
|
980
980
|
key: 1,
|
|
981
981
|
onClick: S[20] || (S[20] = (ce) => ce.stopPropagation()),
|
|
982
982
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
983
983
|
}, [
|
|
984
984
|
K("div", Bl, [
|
|
985
|
-
|
|
985
|
+
se(he, A({
|
|
986
986
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
987
987
|
src: l.value
|
|
988
988
|
}, { fit: "cover", lazy: !0, ...(oe = e.value) == null ? void 0 : oe.img }), ge({ _: 2 }, [
|
|
@@ -1000,34 +1000,34 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1000
1000
|
onMouseleave: S[19] || (S[19] = (ce) => y.value = !1),
|
|
1001
1001
|
class: "up-view"
|
|
1002
1002
|
}, [
|
|
1003
|
-
y.value ? (
|
|
1003
|
+
y.value ? (m(), E(we, {
|
|
1004
1004
|
key: 0,
|
|
1005
1005
|
content: "查看大图",
|
|
1006
1006
|
placement: "top"
|
|
1007
1007
|
}, {
|
|
1008
1008
|
default: _(() => [
|
|
1009
|
-
|
|
1009
|
+
se(U(Sl), {
|
|
1010
1010
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
1011
1011
|
color: "white",
|
|
1012
1012
|
onClick: P
|
|
1013
1013
|
})
|
|
1014
1014
|
]),
|
|
1015
1015
|
_: 1
|
|
1016
|
-
})) :
|
|
1017
|
-
k.value.showDel && y.value ? (
|
|
1016
|
+
})) : be("", !0),
|
|
1017
|
+
k.value.showDel && y.value ? (m(), E(we, {
|
|
1018
1018
|
key: 1,
|
|
1019
1019
|
content: "删除",
|
|
1020
1020
|
placement: "top"
|
|
1021
1021
|
}, {
|
|
1022
1022
|
default: _(() => [
|
|
1023
|
-
|
|
1023
|
+
se(U(Kt), {
|
|
1024
1024
|
style: { width: "1.5em", height: "1.5em" },
|
|
1025
1025
|
color: "white",
|
|
1026
1026
|
onClick: De
|
|
1027
1027
|
})
|
|
1028
1028
|
]),
|
|
1029
1029
|
_: 1
|
|
1030
|
-
})) :
|
|
1030
|
+
})) : be("", !0)
|
|
1031
1031
|
], 32)
|
|
1032
1032
|
]))
|
|
1033
1033
|
];
|
|
@@ -1040,7 +1040,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1040
1040
|
M(V.$slots, `${u.t}-${n.value}-${c}`, { data: ce }, void 0, !0)
|
|
1041
1041
|
])
|
|
1042
1042
|
}))
|
|
1043
|
-
]), 1040, ["file-list"])) : i.value == U(xe).AUTOCOMPLETE ? (
|
|
1043
|
+
]), 1040, ["file-list"])) : i.value == U(xe).AUTOCOMPLETE ? (m(), E(Oe, A({
|
|
1044
1044
|
key: 17,
|
|
1045
1045
|
modelValue: l.value,
|
|
1046
1046
|
"onUpdate:modelValue": S[22] || (S[22] = (c) => l.value = c)
|
|
@@ -1051,7 +1051,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1051
1051
|
M(V.$slots, `${u.t}-${n.value}-${c}`, { data: ce }, void 0, !0)
|
|
1052
1052
|
])
|
|
1053
1053
|
}))
|
|
1054
|
-
]), 1040, ["modelValue", "placeholder"])) : i.value == U(xe).INPUTNUMBER ? (
|
|
1054
|
+
]), 1040, ["modelValue", "placeholder"])) : i.value == U(xe).INPUTNUMBER ? (m(), E(Fe, A({
|
|
1055
1055
|
key: 18,
|
|
1056
1056
|
modelValue: l.value,
|
|
1057
1057
|
"onUpdate:modelValue": S[23] || (S[23] = (c) => l.value = c),
|
|
@@ -1067,7 +1067,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1067
1067
|
}, void 0, !0)
|
|
1068
1068
|
])
|
|
1069
1069
|
}))
|
|
1070
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : i.value == "input-tag" ? (
|
|
1070
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : i.value == "input-tag" ? (m(), E(Ze, A({
|
|
1071
1071
|
key: 19,
|
|
1072
1072
|
modelValue: l.value,
|
|
1073
1073
|
"onUpdate:modelValue": S[24] || (S[24] = (c) => l.value = c),
|
|
@@ -1075,7 +1075,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1075
1075
|
disabled: t.value[n.value].disabled,
|
|
1076
1076
|
draggable: ""
|
|
1077
1077
|
}, e.value), ge({ _: 2 }, [
|
|
1078
|
-
(
|
|
1078
|
+
(Re = e.value) != null && Re.suffix ? {
|
|
1079
1079
|
name: "suffix",
|
|
1080
1080
|
fn: _(() => {
|
|
1081
1081
|
var c;
|
|
@@ -1108,11 +1108,11 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1108
1108
|
}, void 0, !0)
|
|
1109
1109
|
])
|
|
1110
1110
|
}))
|
|
1111
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : i.value == U(xe).MONEY ? (
|
|
1111
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : i.value == U(xe).MONEY ? (m(), z("div", {
|
|
1112
1112
|
key: 20,
|
|
1113
|
-
style:
|
|
1113
|
+
style: Ye([{ position: "relative" }, p.value])
|
|
1114
1114
|
}, [
|
|
1115
|
-
|
|
1115
|
+
se(st, A({
|
|
1116
1116
|
modelValue: l.value,
|
|
1117
1117
|
"onUpdate:modelValue": S[25] || (S[25] = (c) => l.value = c),
|
|
1118
1118
|
placeholder: d.value,
|
|
@@ -1135,44 +1135,44 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1135
1135
|
])
|
|
1136
1136
|
}))
|
|
1137
1137
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
1138
|
-
], 4)) : (ee = i.value) != null && ee.startsWith("link") ? (
|
|
1138
|
+
], 4)) : (ee = i.value) != null && ee.startsWith("link") ? (m(), z("div", {
|
|
1139
1139
|
key: 21,
|
|
1140
|
-
style:
|
|
1140
|
+
style: Ye(p.value)
|
|
1141
1141
|
}, [
|
|
1142
|
-
|
|
1142
|
+
se(_t, A(e.value, {
|
|
1143
1143
|
type: i.value.replace("link-", ""),
|
|
1144
1144
|
innerHTML: G.value || l.value
|
|
1145
1145
|
}), null, 16, ["type", "innerHTML"])
|
|
1146
|
-
], 4)) : i.value != "textarea" && ((ie = i.value) != null && ie.startsWith("text")) ? (
|
|
1146
|
+
], 4)) : i.value != "textarea" && ((ie = i.value) != null && ie.startsWith("text")) ? (m(), z("div", {
|
|
1147
1147
|
key: 22,
|
|
1148
|
-
style:
|
|
1148
|
+
style: Ye(p.value)
|
|
1149
1149
|
}, [
|
|
1150
|
-
|
|
1150
|
+
se(Ct, A(e.value, {
|
|
1151
1151
|
type: i.value.replace("text-", ""),
|
|
1152
1152
|
innerHTML: G.value || l.value
|
|
1153
1153
|
}), null, 16, ["type", "innerHTML"])
|
|
1154
|
-
], 4)) : i.value == "avatar" ? (
|
|
1154
|
+
], 4)) : i.value == "avatar" ? (m(), z("div", {
|
|
1155
1155
|
key: 23,
|
|
1156
|
-
style:
|
|
1156
|
+
style: Ye(p.value)
|
|
1157
1157
|
}, [
|
|
1158
|
-
G.value ? (
|
|
1158
|
+
G.value ? (m(), E(J, Vt(A({ key: 0 }, e.value)), {
|
|
1159
1159
|
default: _(() => [
|
|
1160
1160
|
K("div", { innerHTML: G.value }, null, 8, Gl)
|
|
1161
1161
|
]),
|
|
1162
1162
|
_: 1
|
|
1163
|
-
}, 16)) : (
|
|
1164
|
-
], 4)) : (ve = i.value) != null && ve.startsWith("tag") ? (
|
|
1163
|
+
}, 16)) : (m(), E(J, Vt(A({ key: 1 }, e.value)), null, 16))
|
|
1164
|
+
], 4)) : (ve = i.value) != null && ve.startsWith("tag") ? (m(), z("div", {
|
|
1165
1165
|
key: 24,
|
|
1166
|
-
style:
|
|
1166
|
+
style: Ye(p.value)
|
|
1167
1167
|
}, [
|
|
1168
|
-
Array.isArray(G.value) && G.value.length > 0 ? (
|
|
1169
|
-
typeof c == "object" ? (
|
|
1168
|
+
Array.isArray(G.value) && G.value.length > 0 ? (m(!0), z(re, { key: 0 }, N(G.value, (c, oe) => (m(), z(re, { key: oe }, [
|
|
1169
|
+
typeof c == "object" ? (m(), E(fe, A({
|
|
1170
1170
|
key: 0,
|
|
1171
1171
|
"disable-transitions": ""
|
|
1172
1172
|
}, { ref_for: !0 }, c, {
|
|
1173
1173
|
innerHTML: c == null ? void 0 : c.value,
|
|
1174
1174
|
style: { "margin-right": "3px" }
|
|
1175
|
-
}), null, 16, ["innerHTML"])) : (
|
|
1175
|
+
}), null, 16, ["innerHTML"])) : (m(), E(fe, A({
|
|
1176
1176
|
key: 1,
|
|
1177
1177
|
"disable-transitions": ""
|
|
1178
1178
|
}, { ref_for: !0 }, e.value, {
|
|
@@ -1180,25 +1180,25 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1180
1180
|
innerHTML: c,
|
|
1181
1181
|
style: { "margin-right": "3px" }
|
|
1182
1182
|
}), null, 16, ["type", "innerHTML"]))
|
|
1183
|
-
], 64))), 128)) : (
|
|
1183
|
+
], 64))), 128)) : (m(), E(fe, A({
|
|
1184
1184
|
key: 1,
|
|
1185
1185
|
"disable-transitions": ""
|
|
1186
1186
|
}, e.value, {
|
|
1187
1187
|
type: i.value.replace("tag-", ""),
|
|
1188
1188
|
innerHTML: G.value || l.value
|
|
1189
1189
|
}), null, 16, ["type", "innerHTML"]))
|
|
1190
|
-
], 4)) : i.value == "div" ? (
|
|
1190
|
+
], 4)) : i.value == "div" ? (m(), z("div", A({ key: 25 }, e.value, {
|
|
1191
1191
|
innerHTML: G.value || l.value,
|
|
1192
1192
|
style: p.value
|
|
1193
|
-
}), null, 16, Xl)) : i.value == "span" ? (
|
|
1193
|
+
}), null, 16, Xl)) : i.value == "span" ? (m(), z("span", A({ key: 26 }, e.value, {
|
|
1194
1194
|
innerHTML: G.value || l.value,
|
|
1195
1195
|
style: p.value
|
|
1196
|
-
}), null, 16, Ql)) : i.value == "custom" ? (
|
|
1196
|
+
}), null, 16, Ql)) : i.value == "custom" ? (m(), z("div", {
|
|
1197
1197
|
key: 27,
|
|
1198
|
-
style:
|
|
1198
|
+
style: Ye(p.value)
|
|
1199
1199
|
}, [
|
|
1200
|
-
(
|
|
1201
|
-
], 4)) : (
|
|
1200
|
+
(m(), E(Pe(e.value.component), Vt(Gt(U(Ne)(e.value, (c) => c != "component"))), null, 16))
|
|
1201
|
+
], 4)) : (m(), E(st, A({
|
|
1202
1202
|
key: 28,
|
|
1203
1203
|
modelValue: l.value,
|
|
1204
1204
|
"onUpdate:modelValue": S[27] || (S[27] = (c) => l.value = c),
|
|
@@ -1276,7 +1276,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1276
1276
|
], 64);
|
|
1277
1277
|
};
|
|
1278
1278
|
}
|
|
1279
|
-
}), ht = /* @__PURE__ */ et(ta, [["__scopeId", "data-v-70919846"]]),
|
|
1279
|
+
}), ht = /* @__PURE__ */ et(ta, [["__scopeId", "data-v-70919846"]]), Rt = {
|
|
1280
1280
|
__name: "g-query-item",
|
|
1281
1281
|
props: /* @__PURE__ */ at(["more"], {
|
|
1282
1282
|
modelValue: { required: !0 },
|
|
@@ -1303,11 +1303,11 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1303
1303
|
} catch (X) {
|
|
1304
1304
|
return console.warn(`获取 ${G[0]} 的sort值时出错:`, X), 0;
|
|
1305
1305
|
}
|
|
1306
|
-
}, L = p(o),
|
|
1306
|
+
}, L = p(o), j = p(d), I = Number(L) || 0, k = Number(j) || 0;
|
|
1307
1307
|
return I - k;
|
|
1308
1308
|
});
|
|
1309
1309
|
let y = Object.fromEntries(v);
|
|
1310
|
-
return
|
|
1310
|
+
return je(() => y).value;
|
|
1311
1311
|
}, i = (x) => typeof x.search == "function" ? x.search(l.value, u.value.table) : x.search || {}, t = (x) => {
|
|
1312
1312
|
const v = i(x);
|
|
1313
1313
|
return (v == null ? void 0 : v.type) || x.type;
|
|
@@ -1318,14 +1318,14 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1318
1318
|
return isNaN(y) || (y += "px"), y;
|
|
1319
1319
|
};
|
|
1320
1320
|
return (x, v) => {
|
|
1321
|
-
const y =
|
|
1322
|
-
return
|
|
1321
|
+
const y = F("el-form-item");
|
|
1322
|
+
return m(!0), z(re, null, N(n(e.more), (o, d) => M(x.$slots, `q-${d}`, {
|
|
1323
1323
|
key: d,
|
|
1324
1324
|
item: o,
|
|
1325
1325
|
queryModel: l.value,
|
|
1326
1326
|
model: u.value
|
|
1327
1327
|
}, () => [
|
|
1328
|
-
|
|
1328
|
+
se(y, A({
|
|
1329
1329
|
label: o.label,
|
|
1330
1330
|
style: { width: f(o) }
|
|
1331
1331
|
}, { ref_for: !0 }, { ...u.value.queryItems, ...i(o) }), {
|
|
@@ -1336,7 +1336,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1336
1336
|
})
|
|
1337
1337
|
]),
|
|
1338
1338
|
default: _(() => [
|
|
1339
|
-
|
|
1339
|
+
se(ht, {
|
|
1340
1340
|
modelValue: l.value[d],
|
|
1341
1341
|
"onUpdate:modelValue": (p) => l.value[d] = p,
|
|
1342
1342
|
item: { getDicts: o == null ? void 0 : o.getDicts, ...o == null ? void 0 : o.editor, ...i(o) },
|
|
@@ -1376,7 +1376,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1376
1376
|
},
|
|
1377
1377
|
emits: /* @__PURE__ */ at(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1378
1378
|
setup(r, { emit: u }) {
|
|
1379
|
-
const e = lt(r, "modelValue"), l = u, n = Ot("options"), i = ae(!1), t = lt(r, "info"), f =
|
|
1379
|
+
const e = lt(r, "modelValue"), l = u, n = Ot("options"), i = ae(!1), t = lt(r, "info"), f = je(() => {
|
|
1380
1380
|
var G, Z, X;
|
|
1381
1381
|
const I = qe((G = n == null ? void 0 : n.query) == null ? void 0 : G.btns, (X = (Z = e.value) == null ? void 0 : Z.query) == null ? void 0 : X.btns) || { align: "left" };
|
|
1382
1382
|
return {
|
|
@@ -1473,7 +1473,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1473
1473
|
model: e.value
|
|
1474
1474
|
// 传递当前模型数据
|
|
1475
1475
|
}), Z), {});
|
|
1476
|
-
return _e(
|
|
1476
|
+
return _e(Rt, {
|
|
1477
1477
|
modelValue: e.value,
|
|
1478
1478
|
"onUpdate:modelValue": (Z) => e.value = Z,
|
|
1479
1479
|
info: t.value,
|
|
@@ -1481,7 +1481,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1481
1481
|
more: k
|
|
1482
1482
|
}, G);
|
|
1483
1483
|
}, d = Xt(), p = () => {
|
|
1484
|
-
var G, Z, X, ne,
|
|
1484
|
+
var G, Z, X, ne, ue, pe, Se, De, me;
|
|
1485
1485
|
const I = [
|
|
1486
1486
|
{
|
|
1487
1487
|
key: "query",
|
|
@@ -1496,7 +1496,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1496
1496
|
},
|
|
1497
1497
|
{
|
|
1498
1498
|
key: "reset",
|
|
1499
|
-
hidden: (pe = (
|
|
1499
|
+
hidden: (pe = (ue = (ne = e.value) == null ? void 0 : ne.query) == null ? void 0 : ue.reset) == null ? void 0 : pe.hidden,
|
|
1500
1500
|
component: He,
|
|
1501
1501
|
props: {
|
|
1502
1502
|
...e.value.query.reset,
|
|
@@ -1525,53 +1525,53 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1525
1525
|
reference: () => _e(He, e.value.query.more, () => P.label),
|
|
1526
1526
|
default: P.content
|
|
1527
1527
|
}) : (P.props.slot = "query-" + P.key, P.label ? _e(P.component, P.props, () => P.label) : _e(P.component, P.props)));
|
|
1528
|
-
}, L =
|
|
1528
|
+
}, L = je(() => ({
|
|
1529
1529
|
display: "flex",
|
|
1530
1530
|
flexDirection: e.value.query.container.mode === "row" ? "row" : "column"
|
|
1531
|
-
})),
|
|
1531
|
+
})), j = () => {
|
|
1532
1532
|
};
|
|
1533
1533
|
return (I, k) => {
|
|
1534
|
-
var X, ne,
|
|
1535
|
-
const G =
|
|
1536
|
-
return
|
|
1534
|
+
var X, ne, ue, pe, Se, De, me, P, Te, We, w, $, b, h, T, D, O;
|
|
1535
|
+
const G = F("el-form-item"), Z = F("el-drawer");
|
|
1536
|
+
return m(), z(re, null, [
|
|
1537
1537
|
K("div", {
|
|
1538
1538
|
class: "g-query-container",
|
|
1539
|
-
style:
|
|
1540
|
-
onDblclick:
|
|
1539
|
+
style: Ye({ ...L.value, ...((ne = (X = e.value.query) == null ? void 0 : X.container) == null ? void 0 : ne.style) || {} }),
|
|
1540
|
+
onDblclick: j
|
|
1541
1541
|
}, [
|
|
1542
|
-
|
|
1542
|
+
se(U(Mt), A({
|
|
1543
1543
|
onSubmit: k[0] || (k[0] = vt(() => {
|
|
1544
1544
|
}, ["prevent"]))
|
|
1545
1545
|
}, U(Ne)(e.value.query, (Y) => !["query", "more", "reset", "btns"].includes(Y))), {
|
|
1546
1546
|
default: _(() => {
|
|
1547
1547
|
var Y, le;
|
|
1548
1548
|
return [
|
|
1549
|
-
(
|
|
1550
|
-
((le = (Y = e.value.query) == null ? void 0 : Y.container) == null ? void 0 : le.inline) === !0 ? (
|
|
1549
|
+
(m(), E(Pe(o({ slots: I.$slots }, void 0)))),
|
|
1550
|
+
((le = (Y = e.value.query) == null ? void 0 : Y.container) == null ? void 0 : le.inline) === !0 ? (m(), E(G, { key: 0 }, {
|
|
1551
1551
|
default: _(() => {
|
|
1552
1552
|
var de, ye, W, Q, Ve;
|
|
1553
1553
|
return [
|
|
1554
1554
|
K("div", {
|
|
1555
|
-
style:
|
|
1555
|
+
style: Ye((ye = (de = e.value.query) == null ? void 0 : de.btns) == null ? void 0 : ye.style)
|
|
1556
1556
|
}, [
|
|
1557
|
-
e.value.query.group ? (
|
|
1557
|
+
e.value.query.group ? (m(), E(U(St), { key: 0 }, {
|
|
1558
1558
|
default: _(() => [
|
|
1559
|
-
(
|
|
1560
|
-
(
|
|
1559
|
+
(m(!0), z(re, null, N(p(), (ke) => M(I.$slots, ke.props.slot, {}, () => [
|
|
1560
|
+
(m(), E(Pe(ke)))
|
|
1561
1561
|
], !0)), 256)),
|
|
1562
1562
|
M(I.$slots, "q-btns", {}, void 0, !0)
|
|
1563
1563
|
]),
|
|
1564
1564
|
_: 3
|
|
1565
|
-
})) : (
|
|
1566
|
-
(Ve = (Q = (W = e.value) == null ? void 0 : W.query) == null ? void 0 : Q.btns) != null && Ve.group ? (
|
|
1565
|
+
})) : (m(), z(re, { key: 1 }, [
|
|
1566
|
+
(Ve = (Q = (W = e.value) == null ? void 0 : W.query) == null ? void 0 : Q.btns) != null && Ve.group ? (m(), E(U(St), { key: 0 }, {
|
|
1567
1567
|
default: _(() => [
|
|
1568
|
-
(
|
|
1569
|
-
(
|
|
1568
|
+
(m(!0), z(re, null, N(p(), (ke) => M(I.$slots, ke.props.slot, {}, () => [
|
|
1569
|
+
(m(), E(Pe(ke)))
|
|
1570
1570
|
], !0)), 256))
|
|
1571
1571
|
]),
|
|
1572
1572
|
_: 3
|
|
1573
|
-
})) : (
|
|
1574
|
-
(
|
|
1573
|
+
})) : (m(!0), z(re, { key: 1 }, N(p(), (ke) => M(I.$slots, ke.props.slot, {}, () => [
|
|
1574
|
+
(m(), E(Pe(ke)))
|
|
1575
1575
|
], !0)), 256)),
|
|
1576
1576
|
M(I.$slots, "q-btns", {}, void 0, !0)
|
|
1577
1577
|
], 64))
|
|
@@ -1579,39 +1579,39 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1579
1579
|
];
|
|
1580
1580
|
}),
|
|
1581
1581
|
_: 3
|
|
1582
|
-
})) :
|
|
1582
|
+
})) : be("", !0)
|
|
1583
1583
|
];
|
|
1584
1584
|
}),
|
|
1585
1585
|
_: 3
|
|
1586
1586
|
}, 16),
|
|
1587
|
-
((Se = (pe = (
|
|
1587
|
+
((Se = (pe = (ue = e.value) == null ? void 0 : ue.query) == null ? void 0 : pe.container) == null ? void 0 : Se.inline) === !1 ? (m(), z("div", {
|
|
1588
1588
|
key: 0,
|
|
1589
|
-
style:
|
|
1589
|
+
style: Ye([{ "margin-bottom": "18px" }, (me = (De = e.value.query) == null ? void 0 : De.btns) == null ? void 0 : me.style])
|
|
1590
1590
|
}, [
|
|
1591
|
-
e.value.query.group ? (
|
|
1591
|
+
e.value.query.group ? (m(), E(U(St), { key: 0 }, {
|
|
1592
1592
|
default: _(() => [
|
|
1593
|
-
(
|
|
1594
|
-
(
|
|
1593
|
+
(m(!0), z(re, null, N(p(), (Y) => M(I.$slots, Y.props.slot, {}, () => [
|
|
1594
|
+
(m(), E(Pe(Y)))
|
|
1595
1595
|
], !0)), 256)),
|
|
1596
1596
|
M(I.$slots, "q-btns", {}, void 0, !0)
|
|
1597
1597
|
]),
|
|
1598
1598
|
_: 3
|
|
1599
|
-
})) : (
|
|
1600
|
-
(Te = (P = e.value.query) == null ? void 0 : P.btns) != null && Te.group ? (
|
|
1599
|
+
})) : (m(), z(re, { key: 1 }, [
|
|
1600
|
+
(Te = (P = e.value.query) == null ? void 0 : P.btns) != null && Te.group ? (m(), E(U(St), { key: 0 }, {
|
|
1601
1601
|
default: _(() => [
|
|
1602
|
-
(
|
|
1603
|
-
(
|
|
1602
|
+
(m(!0), z(re, null, N(p(), (Y) => M(I.$slots, Y.props.slot, {}, () => [
|
|
1603
|
+
(m(), E(Pe(Y)))
|
|
1604
1604
|
], !0)), 256))
|
|
1605
1605
|
]),
|
|
1606
1606
|
_: 3
|
|
1607
|
-
})) : (
|
|
1608
|
-
(
|
|
1607
|
+
})) : (m(!0), z(re, { key: 1 }, N(p(), (Y) => M(I.$slots, Y.props.slot, {}, () => [
|
|
1608
|
+
(m(), E(Pe(Y)))
|
|
1609
1609
|
], !0)), 256)),
|
|
1610
1610
|
M(I.$slots, "q-btns", {}, void 0, !0)
|
|
1611
1611
|
], 64))
|
|
1612
|
-
], 4)) :
|
|
1612
|
+
], 4)) : be("", !0)
|
|
1613
1613
|
], 36),
|
|
1614
|
-
i.value && !(($ = (w = (We = e.value) == null ? void 0 : We.query) == null ? void 0 : w.more) != null && $.hidden) && e.value.query.more.mode == 2 ? (
|
|
1614
|
+
i.value && !(($ = (w = (We = e.value) == null ? void 0 : We.query) == null ? void 0 : w.more) != null && $.hidden) && e.value.query.more.mode == 2 ? (m(), E(Z, A({
|
|
1615
1615
|
key: 0,
|
|
1616
1616
|
modelValue: i.value,
|
|
1617
1617
|
"onUpdate:modelValue": k[6] || (k[6] = (Y) => i.value = Y),
|
|
@@ -1619,12 +1619,12 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1619
1619
|
"show-close": !1
|
|
1620
1620
|
}, e.value.query.more.dialog), ge({
|
|
1621
1621
|
default: _(() => [
|
|
1622
|
-
|
|
1622
|
+
se(U(Mt), A({
|
|
1623
1623
|
onSubmit: k[3] || (k[3] = vt(() => {
|
|
1624
1624
|
}, ["prevent"]))
|
|
1625
1625
|
}, U(Ne)(e.value.query, (Y) => !["query", "more", "reset"].includes(Y)), { style: { width: "98%" } }), {
|
|
1626
1626
|
default: _(() => [
|
|
1627
|
-
|
|
1627
|
+
se(Rt, {
|
|
1628
1628
|
modelValue: e.value,
|
|
1629
1629
|
"onUpdate:modelValue": k[1] || (k[1] = (Y) => e.value = Y),
|
|
1630
1630
|
info: t.value,
|
|
@@ -1644,11 +1644,11 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1644
1644
|
]),
|
|
1645
1645
|
_: 2
|
|
1646
1646
|
}, [
|
|
1647
|
-
(O = (
|
|
1647
|
+
(O = (D = (T = (h = (b = e.value) == null ? void 0 : b.query) == null ? void 0 : h.more) == null ? void 0 : T.dialog) == null ? void 0 : D.footer) != null && O.hidden ? void 0 : {
|
|
1648
1648
|
name: "footer",
|
|
1649
1649
|
fn: _(() => [
|
|
1650
1650
|
K("div", Vt(Gt(e.value.query.more.dialog.footer)), [
|
|
1651
|
-
|
|
1651
|
+
se(U(He), A(e.value.query.query, {
|
|
1652
1652
|
onClick: k[4] || (k[4] = (Y) => e.value.query.query.click())
|
|
1653
1653
|
}), {
|
|
1654
1654
|
default: _(() => [
|
|
@@ -1656,7 +1656,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1656
1656
|
]),
|
|
1657
1657
|
_: 1
|
|
1658
1658
|
}, 16),
|
|
1659
|
-
|
|
1659
|
+
se(U(He), A(e.value.query.reset, {
|
|
1660
1660
|
onClick: k[5] || (k[5] = (Y) => e.value.query.reset.click())
|
|
1661
1661
|
}), {
|
|
1662
1662
|
default: _(() => [
|
|
@@ -1668,8 +1668,8 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1668
1668
|
]),
|
|
1669
1669
|
key: "0"
|
|
1670
1670
|
}
|
|
1671
|
-
]), 1040, ["modelValue"])) :
|
|
1672
|
-
|
|
1671
|
+
]), 1040, ["modelValue"])) : be("", !0),
|
|
1672
|
+
se(bl, {
|
|
1673
1673
|
duration: 300,
|
|
1674
1674
|
name: "nested",
|
|
1675
1675
|
style: { padding: "10px" }
|
|
@@ -1677,22 +1677,22 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1677
1677
|
default: _(() => {
|
|
1678
1678
|
var Y, le, de;
|
|
1679
1679
|
return [
|
|
1680
|
-
i.value && !((de = (le = (Y = e.value) == null ? void 0 : Y.query) == null ? void 0 : le.more) != null && de.hidden) && e.value.query.more.mode == 1 ? (
|
|
1680
|
+
i.value && !((de = (le = (Y = e.value) == null ? void 0 : Y.query) == null ? void 0 : le.more) != null && de.hidden) && e.value.query.more.mode == 1 ? (m(), z("div", la, [
|
|
1681
1681
|
K("div", aa, [
|
|
1682
|
-
e.value.query.more.mode == 1 ? $l((
|
|
1682
|
+
e.value.query.more.mode == 1 ? $l((m(), E(U(Mt), A({
|
|
1683
1683
|
key: 0,
|
|
1684
1684
|
onSubmit: k[7] || (k[7] = vt(() => {
|
|
1685
1685
|
}, ["prevent"]))
|
|
1686
1686
|
}, U(Ne)(e.value.query, (ye) => !["query", "more", "reset"].includes(ye))), {
|
|
1687
1687
|
default: _(() => [
|
|
1688
|
-
(
|
|
1688
|
+
(m(), E(Pe(o({ slots: I.$slots }, !0))))
|
|
1689
1689
|
]),
|
|
1690
1690
|
_: 1
|
|
1691
1691
|
}, 16)), [
|
|
1692
1692
|
[wl, i.value]
|
|
1693
|
-
]) :
|
|
1693
|
+
]) : be("", !0)
|
|
1694
1694
|
])
|
|
1695
|
-
])) :
|
|
1695
|
+
])) : be("", !0)
|
|
1696
1696
|
];
|
|
1697
1697
|
}),
|
|
1698
1698
|
_: 1
|
|
@@ -1784,15 +1784,15 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1784
1784
|
{ ...(P = It()) == null ? void 0 : P.style }
|
|
1785
1785
|
);
|
|
1786
1786
|
const y = async (w, $, b) => {
|
|
1787
|
-
let
|
|
1788
|
-
for (;
|
|
1787
|
+
let h = 5;
|
|
1788
|
+
for (; h > 0; ) {
|
|
1789
1789
|
if (await Ke(), i.value) {
|
|
1790
|
-
i.value.validate((T,
|
|
1791
|
-
T ? n("submit", w, $, b) : console.error("表单验证不通过!",
|
|
1790
|
+
i.value.validate((T, D) => {
|
|
1791
|
+
T ? n("submit", w, $, b) : console.error("表单验证不通过!", D);
|
|
1792
1792
|
});
|
|
1793
1793
|
return;
|
|
1794
1794
|
}
|
|
1795
|
-
|
|
1795
|
+
h--, await new Promise((T) => setTimeout(T, 50));
|
|
1796
1796
|
}
|
|
1797
1797
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1798
1798
|
}, o = async (w, $) => {
|
|
@@ -1802,11 +1802,11 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1802
1802
|
try {
|
|
1803
1803
|
i.value.resetFields(), n("reset", w, $);
|
|
1804
1804
|
return;
|
|
1805
|
-
} catch (
|
|
1806
|
-
console.error("表单重置失败:",
|
|
1805
|
+
} catch (h) {
|
|
1806
|
+
console.error("表单重置失败:", h);
|
|
1807
1807
|
return;
|
|
1808
1808
|
}
|
|
1809
|
-
b--, b > 0 && await new Promise((
|
|
1809
|
+
b--, b > 0 && await new Promise((h) => setTimeout(h, 50));
|
|
1810
1810
|
}
|
|
1811
1811
|
console.error("表单实例获取失败,无法重置表单");
|
|
1812
1812
|
};
|
|
@@ -1837,7 +1837,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1837
1837
|
if (w.rules)
|
|
1838
1838
|
$ = w.rules;
|
|
1839
1839
|
else {
|
|
1840
|
-
const
|
|
1840
|
+
const h = { ...{
|
|
1841
1841
|
required: void 0,
|
|
1842
1842
|
max: void 0,
|
|
1843
1843
|
min: void 0,
|
|
@@ -1846,68 +1846,68 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1846
1846
|
pattern: void 0,
|
|
1847
1847
|
validate: void 0
|
|
1848
1848
|
}, ...w };
|
|
1849
|
-
|
|
1849
|
+
h.required && $.push({
|
|
1850
1850
|
required: !0,
|
|
1851
|
-
message: `${
|
|
1851
|
+
message: `${h.label}不能为空!`,
|
|
1852
1852
|
trigger: "blur"
|
|
1853
|
-
}),
|
|
1854
|
-
validator: (T,
|
|
1855
|
-
if (
|
|
1856
|
-
|
|
1857
|
-
new Error(`${
|
|
1858
|
-
) : O() : Number(
|
|
1853
|
+
}), h.max !== void 0 && h.max !== null && h.max !== "" && (h.min === void 0 || h.min === null || h.min === "") && $.push({
|
|
1854
|
+
validator: (T, D, O) => {
|
|
1855
|
+
if (D == null || D === "") return O();
|
|
1856
|
+
h.type !== "number" && h.type !== "input-number" ? ((D == null ? void 0 : D.toString()) || "").length > Number(h.max) ? O(
|
|
1857
|
+
new Error(`${h.label}长度不能超过${h.max}个字符!`)
|
|
1858
|
+
) : O() : Number(D) > Number(h.max) ? O(new Error(`${h.label}不能大于${h.max}!`)) : O();
|
|
1859
1859
|
}
|
|
1860
|
-
}),
|
|
1861
|
-
validator: (T,
|
|
1862
|
-
if (
|
|
1863
|
-
|
|
1860
|
+
}), h.min !== void 0 && h.min !== null && h.min !== "" && (h.max === void 0 || h.max === null || h.max === "") && $.push({
|
|
1861
|
+
validator: (T, D, O) => {
|
|
1862
|
+
if (D == null || D === "") return O();
|
|
1863
|
+
h.type !== "number" && h.type !== "input-number" ? Number(h.min) < 1 ? O(
|
|
1864
1864
|
new Error(
|
|
1865
|
-
`${
|
|
1865
|
+
`${h.label}长度最小值${h.min}设置错误!`
|
|
1866
1866
|
)
|
|
1867
|
-
) :
|
|
1867
|
+
) : D.toString().length < Number(h.min) ? O(
|
|
1868
1868
|
new Error(
|
|
1869
|
-
`${
|
|
1869
|
+
`${h.label}长度不能少于${h.min}个字符!`
|
|
1870
1870
|
)
|
|
1871
|
-
) : O() : Number(
|
|
1871
|
+
) : O() : Number(D) < Number(h.min) ? O(new Error(`${h.label}不能小于${h.min}!`)) : O();
|
|
1872
1872
|
}
|
|
1873
|
-
}),
|
|
1874
|
-
validator: (T,
|
|
1875
|
-
if (
|
|
1876
|
-
const Y = Number(
|
|
1877
|
-
|
|
1873
|
+
}), h.min !== void 0 && h.min !== null && h.min !== "" && h.max !== void 0 && h.max !== null && h.max !== "" && $.push({
|
|
1874
|
+
validator: (T, D, O) => {
|
|
1875
|
+
if (D == null || D === "") return O();
|
|
1876
|
+
const Y = Number(h.min), le = Number(h.max);
|
|
1877
|
+
h.type !== "number" && h.type !== "input-number" ? Number(h.min) < 1 ? O(
|
|
1878
1878
|
new Error(
|
|
1879
|
-
`${
|
|
1879
|
+
`${h.label}长度最小值${h.min}设置错误!`
|
|
1880
1880
|
)
|
|
1881
|
-
) :
|
|
1881
|
+
) : D.toString().length < Y || D.toString().length > le ? O(
|
|
1882
1882
|
new Error(
|
|
1883
|
-
`${
|
|
1883
|
+
`${h.label}长度必须在${Y}-${le}个字符之间!`
|
|
1884
1884
|
)
|
|
1885
|
-
) : O() : Number(
|
|
1885
|
+
) : O() : Number(D) < Y || D > le ? O(new Error(`${h.label}必须在${Y}-${le}之间!`)) : O();
|
|
1886
1886
|
}
|
|
1887
|
-
}),
|
|
1888
|
-
pattern:
|
|
1889
|
-
message: (
|
|
1890
|
-
}),
|
|
1891
|
-
validator: (T,
|
|
1887
|
+
}), h.type == "email" && $.push({ type: "email", message: "不是一个正确的邮箱地址!" }), h.type == "url" && $.push({ type: "url", message: "不是一个合正确的URL!" }), h.pattern && $.push({
|
|
1888
|
+
pattern: h == null ? void 0 : h.pattern,
|
|
1889
|
+
message: (h == null ? void 0 : h.message) || "格式不正确!"
|
|
1890
|
+
}), h.validate && $.push({
|
|
1891
|
+
validator: (T, D, O) => h.validate(T, D, O)
|
|
1892
1892
|
});
|
|
1893
1893
|
}
|
|
1894
1894
|
return $;
|
|
1895
|
-
},
|
|
1896
|
-
var T,
|
|
1897
|
-
const b = $ ? w : w == null ? void 0 : w.item,
|
|
1898
|
-
if (((
|
|
1899
|
-
const de = typeof (b == null ? void 0 : b.editor) == "object" ? (O = b.editor) == null ? void 0 : O.ep : typeof (b == null ? void 0 : b.editor) == "function" ?
|
|
1900
|
-
return { ...
|
|
1895
|
+
}, j = (w, $ = !1) => {
|
|
1896
|
+
var T, D, O, Y, le;
|
|
1897
|
+
const b = $ ? w : w == null ? void 0 : w.item, h = typeof (b == null ? void 0 : b.editor) == "function" ? b.editor(f.value, (T = l.value.form) == null ? void 0 : T.modalState) : (b == null ? void 0 : b.editor) || {};
|
|
1898
|
+
if (((D = l.value.form) == null ? void 0 : D.modalState) === "edit") {
|
|
1899
|
+
const de = typeof (b == null ? void 0 : b.editor) == "object" ? (O = b.editor) == null ? void 0 : O.ep : typeof (b == null ? void 0 : b.editor) == "function" ? h == null ? void 0 : h.ep : {};
|
|
1900
|
+
return { ...h, ...de };
|
|
1901
1901
|
}
|
|
1902
1902
|
if (((Y = l.value.form) == null ? void 0 : Y.modalState) === "add") {
|
|
1903
|
-
const de = typeof (b == null ? void 0 : b.editor) == "object" ? (le = b.editor) == null ? void 0 : le.ap : typeof (b == null ? void 0 : b.editor) == "function" ?
|
|
1904
|
-
return { ...
|
|
1903
|
+
const de = typeof (b == null ? void 0 : b.editor) == "object" ? (le = b.editor) == null ? void 0 : le.ap : typeof (b == null ? void 0 : b.editor) == "function" ? h == null ? void 0 : h.ap : {};
|
|
1904
|
+
return { ...h, ...de };
|
|
1905
1905
|
}
|
|
1906
|
-
return
|
|
1906
|
+
return h;
|
|
1907
1907
|
}, I = (w) => {
|
|
1908
|
-
var b,
|
|
1908
|
+
var b, h, T, D, O;
|
|
1909
1909
|
const $ = typeof w.editor == "function" ? w.editor(f.value, (b = l.value.form) == null ? void 0 : b.modalState) : w.editor;
|
|
1910
|
-
return ((
|
|
1910
|
+
return ((h = l.value.form) == null ? void 0 : h.modalState) === "edit" ? ((T = $ == null ? void 0 : $.ep) == null ? void 0 : T.type) ?? ($ == null ? void 0 : $.type) ?? w.type : ((D = l.value.form) == null ? void 0 : D.modalState) === "add" ? ((O = $ == null ? void 0 : $.ap) == null ? void 0 : O.type) ?? ($ == null ? void 0 : $.type) ?? w.type : ($ == null ? void 0 : $.type) ?? w.type;
|
|
1911
1911
|
}, k = (w) => w === "left" ? "flex-start" : w === "right" ? "flex-end" : w === "center" ? "center" : "flex-end";
|
|
1912
1912
|
yt(() => {
|
|
1913
1913
|
G(), v != null && v.editForm ? f.value = v.editForm : f.value = X.value;
|
|
@@ -1924,39 +1924,39 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1924
1924
|
...l.value[w].formItem.style,
|
|
1925
1925
|
...$.formItem.style
|
|
1926
1926
|
};
|
|
1927
|
-
}, Z =
|
|
1927
|
+
}, Z = je(
|
|
1928
1928
|
() => Object.fromEntries(
|
|
1929
1929
|
Object.entries(l.value).filter((w) => w[1].type != "hidden").filter((w) => w[1].hidden !== !0).filter((w) => w[1].edit !== !1).filter((w) => w[1].editor !== !1).filter((w) => w[1].type !== "control").filter((w) => !il.includes(w[0])).filter((w) => {
|
|
1930
|
-
var b,
|
|
1930
|
+
var b, h, T;
|
|
1931
1931
|
const $ = typeof w[1].editor == "function" ? w[1].editor(f.value, (b = l.value.form) == null ? void 0 : b.modalState) : w[1].editor;
|
|
1932
|
-
return l.value.form.modalState === "edit" ? ((
|
|
1932
|
+
return l.value.form.modalState === "edit" ? ((h = $ == null ? void 0 : $.ep) == null ? void 0 : h.editor) !== !1 : l.value.form.modalState === "add" ? ((T = $ == null ? void 0 : $.ap) == null ? void 0 : T.editor) !== !1 : !0;
|
|
1933
1933
|
}).map((w) => [w[0], w[1]])
|
|
1934
1934
|
)
|
|
1935
|
-
), X =
|
|
1935
|
+
), X = je(
|
|
1936
1936
|
() => Object.fromEntries(
|
|
1937
1937
|
Object.entries(l.value).filter((w) => w[1].type != "hidden").filter((w) => w[1].type != "control").map(([w, $]) => {
|
|
1938
|
-
var T,
|
|
1938
|
+
var T, D, O;
|
|
1939
1939
|
const b = typeof $.editor == "function" ? $.editor(f.value, (T = l.value.form) == null ? void 0 : T.modalState) : $.editor;
|
|
1940
|
-
let
|
|
1941
|
-
return l.value.form.modalState === "add" ?
|
|
1940
|
+
let h;
|
|
1941
|
+
return l.value.form.modalState === "add" ? h = ((D = b == null ? void 0 : b.ap) == null ? void 0 : D.value) !== void 0 ? b.ap.value : (b == null ? void 0 : b.value) !== void 0 ? b.value : $.value : l.value.form.modalState === "edit" ? h = ((O = b == null ? void 0 : b.ep) == null ? void 0 : O.value) !== void 0 ? b.ep.value : (b == null ? void 0 : b.value) !== void 0 ? b.value : $.value : h = (b == null ? void 0 : b.value) !== void 0 ? b.value : $.value, [w, h];
|
|
1942
1942
|
})
|
|
1943
1943
|
)
|
|
1944
|
-
), ne =
|
|
1944
|
+
), ne = je(() => {
|
|
1945
1945
|
const w = /* @__PURE__ */ new Map();
|
|
1946
1946
|
return Object.entries(Z.value).forEach(([$, b]) => {
|
|
1947
1947
|
if (b.groupName) {
|
|
1948
|
-
const
|
|
1949
|
-
w.has(
|
|
1950
|
-
groupName:
|
|
1948
|
+
const h = b.groupName;
|
|
1949
|
+
w.has(h) || w.set(h, {
|
|
1950
|
+
groupName: h,
|
|
1951
1951
|
items: []
|
|
1952
|
-
}), w.get(
|
|
1952
|
+
}), w.get(h).items.push({ key: $, item: b });
|
|
1953
1953
|
}
|
|
1954
1954
|
}), w.forEach(($) => {
|
|
1955
1955
|
$.tabPane = qe(
|
|
1956
1956
|
...$.items.map(({ item: b }) => b.tabPane || {})
|
|
1957
1957
|
);
|
|
1958
1958
|
}), Array.from(w.values());
|
|
1959
|
-
}),
|
|
1959
|
+
}), ue = ae([
|
|
1960
1960
|
{
|
|
1961
1961
|
name: "f-submit",
|
|
1962
1962
|
label: l.value.form.submit.label,
|
|
@@ -1998,7 +1998,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
1998
1998
|
sort: l.value.form.cancel.sort ?? 2,
|
|
1999
1999
|
originalOrder: 1
|
|
2000
2000
|
}
|
|
2001
|
-
]), pe =
|
|
2001
|
+
]), pe = je(() => ue.value.filter((w) => !w.hidden).sort((w, $) => w.sort - $.sort || w.originalOrder - $.originalOrder));
|
|
2002
2002
|
return u({
|
|
2003
2003
|
submit: y,
|
|
2004
2004
|
saveSubmit: y,
|
|
@@ -2006,9 +2006,9 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
2006
2006
|
formData: f
|
|
2007
2007
|
}), (w, $) => {
|
|
2008
2008
|
var le, de, ye;
|
|
2009
|
-
const b =
|
|
2010
|
-
return
|
|
2011
|
-
|
|
2009
|
+
const b = F("el-form-item"), h = F("el-col"), T = F("el-tab-pane"), D = F("el-tabs"), O = F("el-form"), Y = F("el-button");
|
|
2010
|
+
return m(), z("div", oa, [
|
|
2011
|
+
se(O, A(
|
|
2012
2012
|
{
|
|
2013
2013
|
ref_key: "gform",
|
|
2014
2014
|
ref: i,
|
|
@@ -2027,28 +2027,28 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
2027
2027
|
), {
|
|
2028
2028
|
default: _(() => [
|
|
2029
2029
|
ne.value.length > 0 ? M(w.$slots, "default", { key: 0 }, () => [
|
|
2030
|
-
|
|
2030
|
+
se(D, A({
|
|
2031
2031
|
class: "demo-tabs",
|
|
2032
2032
|
modelValue: ne.value[0].groupName,
|
|
2033
2033
|
"onUpdate:modelValue": $[0] || ($[0] = (W) => ne.value[0].groupName = W),
|
|
2034
2034
|
style: { width: "100%" }
|
|
2035
2035
|
}, l.value.form.tabs), {
|
|
2036
2036
|
default: _(() => [
|
|
2037
|
-
(
|
|
2037
|
+
(m(!0), z(re, null, N(ne.value, (W) => (m(), E(T, A({
|
|
2038
2038
|
key: W.groupName,
|
|
2039
2039
|
label: W.groupName,
|
|
2040
2040
|
name: W.groupName,
|
|
2041
2041
|
style: { width: "100%", display: "flex", "flex-wrap": "wrap" }
|
|
2042
2042
|
}, { ref_for: !0 }, W.tabPane), {
|
|
2043
2043
|
default: _(() => [
|
|
2044
|
-
(
|
|
2044
|
+
(m(!0), z(re, null, N(W.items, (Q, Ve) => (m(), E(h, A({ ref_for: !0 }, { ...l.value.form.cols, ...Q == null ? void 0 : Q.item.col }, {
|
|
2045
2045
|
key: Q.key,
|
|
2046
2046
|
style: { width: "100%" }
|
|
2047
2047
|
}), {
|
|
2048
2048
|
default: _(() => {
|
|
2049
2049
|
var ke, Ie;
|
|
2050
2050
|
return [
|
|
2051
|
-
|
|
2051
|
+
se(b, A({
|
|
2052
2052
|
label: Q == null ? void 0 : Q.item.label,
|
|
2053
2053
|
prop: Q.key,
|
|
2054
2054
|
rules: L(Q == null ? void 0 : Q.item)
|
|
@@ -2060,10 +2060,10 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
2060
2060
|
model: l.value,
|
|
2061
2061
|
form: f.value
|
|
2062
2062
|
}, () => [
|
|
2063
|
-
(
|
|
2063
|
+
(m(), E(ht, {
|
|
2064
2064
|
modelValue: f.value[Q.key],
|
|
2065
2065
|
"onUpdate:modelValue": (V) => f.value[Q.key] = V,
|
|
2066
|
-
item:
|
|
2066
|
+
item: j(Q),
|
|
2067
2067
|
ctrlKey: Q.key,
|
|
2068
2068
|
ctrlType: I(Q == null ? void 0 : Q.item),
|
|
2069
2069
|
model: l.value,
|
|
@@ -2098,14 +2098,14 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
2098
2098
|
_: 3
|
|
2099
2099
|
}, 16, ["modelValue"])
|
|
2100
2100
|
], !0) : M(w.$slots, "default", { key: 1 }, () => [
|
|
2101
|
-
(
|
|
2101
|
+
(m(!0), z(re, null, N(Z.value, (W, Q) => (m(), E(h, A({ ref_for: !0 }, { ...l.value.form.cols, ...W.col }, {
|
|
2102
2102
|
key: Q,
|
|
2103
2103
|
style: { width: "100%" }
|
|
2104
2104
|
}), {
|
|
2105
2105
|
default: _(() => {
|
|
2106
2106
|
var Ve;
|
|
2107
2107
|
return [
|
|
2108
|
-
|
|
2108
|
+
se(b, A({
|
|
2109
2109
|
label: W.label,
|
|
2110
2110
|
prop: Q,
|
|
2111
2111
|
rules: L(W)
|
|
@@ -2126,10 +2126,10 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
2126
2126
|
model: l.value,
|
|
2127
2127
|
form: f.value
|
|
2128
2128
|
}, () => [
|
|
2129
|
-
(
|
|
2129
|
+
(m(), E(ht, {
|
|
2130
2130
|
modelValue: f.value[Q],
|
|
2131
2131
|
"onUpdate:modelValue": (ke) => f.value[Q] = ke,
|
|
2132
|
-
item:
|
|
2132
|
+
item: j(W, !0),
|
|
2133
2133
|
ctrlKey: Q,
|
|
2134
2134
|
ctrlType: I(W),
|
|
2135
2135
|
key: `${Q}-${x.value}`,
|
|
@@ -2161,17 +2161,17 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
2161
2161
|
]),
|
|
2162
2162
|
_: 3
|
|
2163
2163
|
}, 16, ["model"]),
|
|
2164
|
-
(ye = (de = (le = l.value) == null ? void 0 : le.form) == null ? void 0 : de.footer) != null && ye.hidden ?
|
|
2164
|
+
(ye = (de = (le = l.value) == null ? void 0 : le.form) == null ? void 0 : de.footer) != null && ye.hidden ? be("", !0) : M(w.$slots, "f-footer", { key: 0 }, () => [
|
|
2165
2165
|
K("div", {
|
|
2166
|
-
style:
|
|
2166
|
+
style: Ye({ justifyContent: k(l.value.form.footer.align), ...l.value.form.footer.style })
|
|
2167
2167
|
}, [
|
|
2168
2168
|
M(w.$slots, "f-footer-left", {}, void 0, !0),
|
|
2169
|
-
(
|
|
2169
|
+
(m(!0), z(re, null, N(pe.value, (W) => (m(), z(re, null, [
|
|
2170
2170
|
M(w.$slots, W.name + "-left", {}, void 0, !0),
|
|
2171
2171
|
M(w.$slots, W.name, {}, () => {
|
|
2172
2172
|
var Q;
|
|
2173
2173
|
return [
|
|
2174
|
-
(Q = W == null ? void 0 : W.info) != null && Q.hidden ?
|
|
2174
|
+
(Q = W == null ? void 0 : W.info) != null && Q.hidden ? be("", !0) : (m(), E(Y, A({
|
|
2175
2175
|
key: 0,
|
|
2176
2176
|
ref_for: !0
|
|
2177
2177
|
}, W.info, {
|
|
@@ -2195,7 +2195,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
2195
2195
|
}), dl = /* @__PURE__ */ et(ua, [["__scopeId", "data-v-9a737339"]]), sa = { class: "dialog-container" }, ia = {
|
|
2196
2196
|
key: 1,
|
|
2197
2197
|
style: { overflow: "hidden" }
|
|
2198
|
-
}, da = {
|
|
2198
|
+
}, da = { style: { display: "flex", flex: "1", "margin-left": "10px" } }, ca = /* @__PURE__ */ Object.assign({
|
|
2199
2199
|
name: "g-model",
|
|
2200
2200
|
inheritAttrs: !1
|
|
2201
2201
|
}, {
|
|
@@ -2224,8 +2224,10 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
2224
2224
|
closeIcon: { type: Object, default: () => Il },
|
|
2225
2225
|
minIcon: { type: Object, default: () => Ol },
|
|
2226
2226
|
draggable: { type: Boolean, default: !0 },
|
|
2227
|
-
showClose: { type: Boolean, default: !
|
|
2228
|
-
fullscreen: { type: Boolean, default: !1 }
|
|
2227
|
+
showClose: { type: Boolean, default: !0 },
|
|
2228
|
+
fullscreen: { type: Boolean, default: !1 },
|
|
2229
|
+
headerBorder: { type: Boolean, default: !0 },
|
|
2230
|
+
headerStyle: { type: Object, default: () => ({ borderBottom: "1px solid var(--el-border-color)" }) }
|
|
2229
2231
|
},
|
|
2230
2232
|
emits: [
|
|
2231
2233
|
"update:modelValue",
|
|
@@ -2238,7 +2240,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
2238
2240
|
"restore"
|
|
2239
2241
|
],
|
|
2240
2242
|
setup(r, { expose: u, emit: e }) {
|
|
2241
|
-
const l = r, n = It(), i = e, t = ae(l.fullscreen), f =
|
|
2243
|
+
const l = r, n = It(), i = e, t = ae(l.fullscreen), f = je(() => l.type === "drawer" ? "el-drawer" : "el-dialog"), x = je(() => {
|
|
2242
2244
|
const X = {
|
|
2243
2245
|
modal: l.modal,
|
|
2244
2246
|
closeOnClickModal: l.type !== "dialog",
|
|
@@ -2254,7 +2256,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
2254
2256
|
direction: l.direction,
|
|
2255
2257
|
size: o.value ? "100%" : l.size
|
|
2256
2258
|
};
|
|
2257
|
-
}), v =
|
|
2259
|
+
}), v = je({
|
|
2258
2260
|
get() {
|
|
2259
2261
|
return l.modelValue;
|
|
2260
2262
|
},
|
|
@@ -2268,7 +2270,7 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
2268
2270
|
function L() {
|
|
2269
2271
|
i("opened");
|
|
2270
2272
|
}
|
|
2271
|
-
function
|
|
2273
|
+
function j() {
|
|
2272
2274
|
i("close");
|
|
2273
2275
|
}
|
|
2274
2276
|
function I() {
|
|
@@ -2285,66 +2287,72 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
2285
2287
|
}
|
|
2286
2288
|
return u({
|
|
2287
2289
|
handleClose: () => y.value.handleClose()
|
|
2288
|
-
}), (X, ne) => (
|
|
2289
|
-
d.value ? (
|
|
2290
|
+
}), (X, ne) => (m(), z("div", sa, [
|
|
2291
|
+
d.value ? (m(), z("div", {
|
|
2290
2292
|
key: 0,
|
|
2291
2293
|
class: "minimize-ball",
|
|
2292
2294
|
onClick: Z
|
|
2293
|
-
}, Me(r.title), 1)) : (
|
|
2294
|
-
(
|
|
2295
|
+
}, Me(r.title), 1)) : (m(), z("div", ia, [
|
|
2296
|
+
(m(), E(Pe(f.value), A({
|
|
2295
2297
|
ref_key: "dialogExtend",
|
|
2296
2298
|
ref: y,
|
|
2297
2299
|
modelValue: v.value,
|
|
2298
|
-
"onUpdate:modelValue": ne[1] || (ne[1] = (
|
|
2300
|
+
"onUpdate:modelValue": ne[1] || (ne[1] = (ue) => v.value = ue),
|
|
2299
2301
|
onOpen: p,
|
|
2300
2302
|
onOpened: L,
|
|
2301
2303
|
"lock-scroll": !0,
|
|
2302
|
-
onClose:
|
|
2304
|
+
onClose: j,
|
|
2303
2305
|
onClosed: I,
|
|
2304
|
-
draggable: ""
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2306
|
+
draggable: ""
|
|
2307
|
+
}, x.value, {
|
|
2308
|
+
fullscreen: t.value,
|
|
2309
|
+
"show-close": !1
|
|
2310
|
+
}), ge({
|
|
2311
|
+
header: _(({ titleClass: ue, closeIconClass: pe }) => [
|
|
2308
2312
|
M(X.$slots, "header", {
|
|
2309
|
-
titleClass:
|
|
2313
|
+
titleClass: ue,
|
|
2310
2314
|
closeIconClass: pe
|
|
2311
2315
|
}, () => [
|
|
2312
|
-
K("div",
|
|
2316
|
+
K("div", {
|
|
2317
|
+
class: "custom-header",
|
|
2318
|
+
style: Ye(l.headerStyle)
|
|
2319
|
+
}, [
|
|
2313
2320
|
M(X.$slots, "title", {}, () => [
|
|
2314
|
-
K("span",
|
|
2321
|
+
K("span", da, Me(r.title), 1)
|
|
2315
2322
|
], !0),
|
|
2316
2323
|
K("div", null, [
|
|
2317
|
-
r.minimize ? (
|
|
2324
|
+
r.minimize ? (m(), E(U(Yt), {
|
|
2318
2325
|
key: 0,
|
|
2319
2326
|
class: "btn-icon",
|
|
2320
2327
|
onClick: vt(G, ["stop"])
|
|
2321
2328
|
}, {
|
|
2322
2329
|
default: _(() => [
|
|
2323
|
-
(
|
|
2330
|
+
(m(), E(Pe(r.minIcon)))
|
|
2324
2331
|
]),
|
|
2325
2332
|
_: 1
|
|
2326
|
-
})) :
|
|
2327
|
-
r.maximize ? (
|
|
2333
|
+
})) : be("", !0),
|
|
2334
|
+
r.maximize ? (m(), E(U(Yt), {
|
|
2328
2335
|
key: 1,
|
|
2329
2336
|
class: "btn-icon",
|
|
2330
2337
|
onClick: vt(k, ["stop"])
|
|
2331
2338
|
}, {
|
|
2332
2339
|
default: _(() => [
|
|
2333
|
-
(
|
|
2340
|
+
(m(), E(Pe(o.value ? r.resizeIcon : r.maxIcon)))
|
|
2334
2341
|
]),
|
|
2335
2342
|
_: 1
|
|
2336
|
-
})) :
|
|
2337
|
-
|
|
2343
|
+
})) : be("", !0),
|
|
2344
|
+
l.showClose ? (m(), E(U(Yt), {
|
|
2345
|
+
key: 2,
|
|
2338
2346
|
class: "btn-icon",
|
|
2339
2347
|
onClick: ne[0] || (ne[0] = vt((Se) => y.value.handleClose(), ["stop"]))
|
|
2340
2348
|
}, {
|
|
2341
2349
|
default: _(() => [
|
|
2342
|
-
(
|
|
2350
|
+
(m(), E(Pe(r.closeIcon)))
|
|
2343
2351
|
]),
|
|
2344
2352
|
_: 1
|
|
2345
|
-
})
|
|
2353
|
+
})) : be("", !0)
|
|
2346
2354
|
])
|
|
2347
|
-
])
|
|
2355
|
+
], 4)
|
|
2348
2356
|
], !0)
|
|
2349
2357
|
]),
|
|
2350
2358
|
default: _(() => [
|
|
@@ -2366,14 +2374,14 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
2366
2374
|
]),
|
|
2367
2375
|
key: "1"
|
|
2368
2376
|
} : void 0
|
|
2369
|
-
]), 1040, ["modelValue", "
|
|
2377
|
+
]), 1040, ["modelValue", "fullscreen"]))
|
|
2370
2378
|
]))
|
|
2371
2379
|
]));
|
|
2372
2380
|
}
|
|
2373
|
-
}),
|
|
2381
|
+
}), jt = /* @__PURE__ */ et(ca, [["__scopeId", "data-v-f40faae8"]]), fa = { style: { padding: "15px", "box-sizing": "border-box" } }, va = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, pa = { style: { display: "flex", flex: "1", "align-items": "center" } }, ma = {
|
|
2374
2382
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2375
2383
|
id: "excelSortEl"
|
|
2376
|
-
},
|
|
2384
|
+
}, ha = ["textContent"], ya = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, ga = {
|
|
2377
2385
|
__name: "check-excel-item",
|
|
2378
2386
|
props: {
|
|
2379
2387
|
items: Array,
|
|
@@ -2414,30 +2422,30 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
2414
2422
|
v && v.destroy();
|
|
2415
2423
|
});
|
|
2416
2424
|
}), (x, v) => {
|
|
2417
|
-
const y =
|
|
2418
|
-
return
|
|
2425
|
+
const y = F("el-divider"), o = F("el-icon"), d = F("el-text"), p = F("el-checkbox"), L = F("el-button");
|
|
2426
|
+
return m(), z("div", fa, [
|
|
2419
2427
|
K("div", null, [
|
|
2420
|
-
K("div",
|
|
2421
|
-
K("div",
|
|
2428
|
+
K("div", va, [
|
|
2429
|
+
K("div", pa, [
|
|
2422
2430
|
K("a", {
|
|
2423
2431
|
onClick: i,
|
|
2424
2432
|
style: { cursor: "pointer" }
|
|
2425
2433
|
}, "全选"),
|
|
2426
|
-
|
|
2434
|
+
se(y, { direction: "vertical" }),
|
|
2427
2435
|
K("a", {
|
|
2428
2436
|
onClick: t,
|
|
2429
2437
|
style: { cursor: "pointer" }
|
|
2430
2438
|
}, "全不选")
|
|
2431
2439
|
]),
|
|
2432
2440
|
K("div", null, [
|
|
2433
|
-
|
|
2441
|
+
se(d, {
|
|
2434
2442
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
2435
2443
|
type: "warning"
|
|
2436
2444
|
}, {
|
|
2437
2445
|
default: _(() => [
|
|
2438
|
-
|
|
2446
|
+
se(o, { size: "16" }, {
|
|
2439
2447
|
default: _(() => [
|
|
2440
|
-
|
|
2448
|
+
se(U(ll))
|
|
2441
2449
|
]),
|
|
2442
2450
|
_: 1
|
|
2443
2451
|
}),
|
|
@@ -2448,32 +2456,32 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
2448
2456
|
])
|
|
2449
2457
|
]),
|
|
2450
2458
|
v[1] || (v[1] = K("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2451
|
-
K("div",
|
|
2452
|
-
(
|
|
2459
|
+
K("div", ma, [
|
|
2460
|
+
(m(!0), z(re, null, N(n.value, (j) => (m(), E(p, {
|
|
2453
2461
|
class: "check-box-hover",
|
|
2454
2462
|
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" },
|
|
2455
|
-
"data-id":
|
|
2456
|
-
modelValue:
|
|
2457
|
-
"onUpdate:modelValue": (I) =>
|
|
2458
|
-
key:
|
|
2459
|
-
title:
|
|
2463
|
+
"data-id": j.key,
|
|
2464
|
+
modelValue: j.value,
|
|
2465
|
+
"onUpdate:modelValue": (I) => j.value = I,
|
|
2466
|
+
key: j.key,
|
|
2467
|
+
title: j.label
|
|
2460
2468
|
}, {
|
|
2461
2469
|
default: _(() => [
|
|
2462
2470
|
K("span", {
|
|
2463
|
-
textContent: Me(
|
|
2471
|
+
textContent: Me(j.label),
|
|
2464
2472
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2465
|
-
}, null, 8,
|
|
2473
|
+
}, null, 8, ha)
|
|
2466
2474
|
]),
|
|
2467
2475
|
_: 2
|
|
2468
2476
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2469
2477
|
])
|
|
2470
2478
|
]),
|
|
2471
|
-
K("div",
|
|
2472
|
-
|
|
2479
|
+
K("div", ya, [
|
|
2480
|
+
se(L, {
|
|
2473
2481
|
type: "primary",
|
|
2474
2482
|
onClick: f,
|
|
2475
2483
|
icon: U(al),
|
|
2476
|
-
disabled: n.value.filter((
|
|
2484
|
+
disabled: n.value.filter((j) => j.value).length < 1
|
|
2477
2485
|
}, {
|
|
2478
2486
|
default: _(() => [
|
|
2479
2487
|
Ae(Me(e.commitText), 1)
|
|
@@ -2484,8 +2492,8 @@ const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
|
2484
2492
|
]);
|
|
2485
2493
|
};
|
|
2486
2494
|
}
|
|
2487
|
-
},
|
|
2488
|
-
|
|
2495
|
+
}, ba = /* @__PURE__ */ et(ga, [["__scopeId", "data-v-13575747"]]), $a = "vue-gyc-ui", wa = 1, $e = new Hl($a);
|
|
2496
|
+
$e.version(wa).stores({
|
|
2489
2497
|
// 记录表格项设置信息
|
|
2490
2498
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2491
2499
|
// 记录表格分页条数
|
|
@@ -2501,96 +2509,96 @@ const ct = (r, u) => {
|
|
|
2501
2509
|
};
|
|
2502
2510
|
async function Tt(r, u, e) {
|
|
2503
2511
|
try {
|
|
2504
|
-
const l = await
|
|
2505
|
-
l ? e === "add" ? l.keys.includes(u) || (l.keys.push(u), await
|
|
2512
|
+
const l = await $e.tableColsState.where({ page: r }).first();
|
|
2513
|
+
l ? e === "add" ? l.keys.includes(u) || (l.keys.push(u), await $e.tableColsState.put(l)) : e === "del" ? (l.keys = l.keys.filter((n) => n !== u), await $e.tableColsState.put(l)) : e === "delAll" ? (l.keys = u, await $e.tableColsState.put(l)) : e === "selectAll" && await $e.tableColsState.where({ page: r }).delete() : e === "add" ? await $e.tableColsState.add({ page: r, keys: [u] }) : e === "delAll" && await $e.tableColsState.add({ page: r, keys: u });
|
|
2506
2514
|
} catch (l) {
|
|
2507
2515
|
throw console.error(`处理表格列状态时出错 (page: ${r}, key: ${u}, state: ${e}):`, l), l;
|
|
2508
2516
|
}
|
|
2509
2517
|
}
|
|
2510
|
-
async function
|
|
2518
|
+
async function ka(r, u, e) {
|
|
2511
2519
|
ct(r);
|
|
2512
2520
|
try {
|
|
2513
|
-
const l = await
|
|
2514
|
-
return l ? (await
|
|
2521
|
+
const l = await $e.tableWidths.where({ page: r, key: u }).first();
|
|
2522
|
+
return l ? (await $e.tableWidths.put({ ...l, width: e }), "update success") : (await $e.tableWidths.add({ page: r, key: u, width: e }), "add success");
|
|
2515
2523
|
} catch (l) {
|
|
2516
2524
|
throw console.error(`保存表格项设置信息时出错 (page: ${r}, key: ${u}):`, l), l;
|
|
2517
2525
|
}
|
|
2518
2526
|
}
|
|
2519
|
-
async function
|
|
2527
|
+
async function _a(r) {
|
|
2520
2528
|
ct(r);
|
|
2521
2529
|
try {
|
|
2522
|
-
return await
|
|
2530
|
+
return await $e.tableWidths.where({ page: r }).toArray();
|
|
2523
2531
|
} catch (u) {
|
|
2524
2532
|
throw console.error(`获取表格项设置信息时出错 (page: ${r}):`, u), u;
|
|
2525
2533
|
}
|
|
2526
2534
|
}
|
|
2527
|
-
async function
|
|
2535
|
+
async function Ca(r) {
|
|
2528
2536
|
ct(r);
|
|
2529
2537
|
try {
|
|
2530
|
-
const u = await
|
|
2538
|
+
const u = await $e.tableColsState.where({ page: r }).toArray();
|
|
2531
2539
|
return !u || u.length === 0 ? [] : u[0].keys;
|
|
2532
2540
|
} catch (u) {
|
|
2533
2541
|
throw console.error(`获取表格列状态时出错 (page: ${r}):`, u), u;
|
|
2534
2542
|
}
|
|
2535
2543
|
}
|
|
2536
|
-
async function
|
|
2544
|
+
async function xa(r) {
|
|
2537
2545
|
ct(r);
|
|
2538
2546
|
try {
|
|
2539
|
-
return await
|
|
2547
|
+
return await $e.transaction("rw", $e.tableWidths, $e.pageInfo, $e.sorts, $e.tableColsState, async () => {
|
|
2540
2548
|
await Promise.all([
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2549
|
+
$e.tableWidths.where({ page: r }).delete(),
|
|
2550
|
+
$e.pageInfo.where({ page: r }).delete(),
|
|
2551
|
+
$e.sorts.where({ page: r }).delete(),
|
|
2552
|
+
$e.tableColsState.where({ page: r }).delete()
|
|
2545
2553
|
]);
|
|
2546
2554
|
});
|
|
2547
2555
|
} catch (u) {
|
|
2548
2556
|
throw console.error(`删除页面"${r}"的表格设置信息时出错:`, u), u;
|
|
2549
2557
|
}
|
|
2550
2558
|
}
|
|
2551
|
-
async function
|
|
2559
|
+
async function Ma({ page: r, size: u }) {
|
|
2552
2560
|
ct(r);
|
|
2553
2561
|
try {
|
|
2554
|
-
const e = await
|
|
2555
|
-
return e ? (await
|
|
2562
|
+
const e = await $e.pageInfo.where({ page: r }).first();
|
|
2563
|
+
return e ? (await $e.pageInfo.put({ ...e, size: u }), "update success") : (await $e.pageInfo.add({ page: r, size: u }), "add success");
|
|
2556
2564
|
} catch (e) {
|
|
2557
2565
|
throw console.error(`保存分页条数时出错 (page: ${r}):`, e), e;
|
|
2558
2566
|
}
|
|
2559
2567
|
}
|
|
2560
|
-
async function
|
|
2568
|
+
async function Sa(r) {
|
|
2561
2569
|
ct(r);
|
|
2562
2570
|
try {
|
|
2563
|
-
const u = await
|
|
2571
|
+
const u = await $e.pageInfo.where({ page: r }).first();
|
|
2564
2572
|
return u == null ? void 0 : u.size;
|
|
2565
2573
|
} catch (u) {
|
|
2566
2574
|
throw console.error(`获取分页条数时出错 (page: ${r}):`, u), u;
|
|
2567
2575
|
}
|
|
2568
2576
|
}
|
|
2569
|
-
async function
|
|
2577
|
+
async function Ta(r, u) {
|
|
2570
2578
|
ct(r);
|
|
2571
2579
|
try {
|
|
2572
|
-
const e = await
|
|
2573
|
-
return e ? (await
|
|
2580
|
+
const e = await $e.sorts.where({ page: r }).first();
|
|
2581
|
+
return e ? (await $e.sorts.put({ ...e, keys: u }), "update success") : (await $e.sorts.add({ page: r, keys: u }), "add success");
|
|
2574
2582
|
} catch (e) {
|
|
2575
2583
|
throw console.error(`保存表格字段顺序时出错 (page: ${r}):`, e), e;
|
|
2576
2584
|
}
|
|
2577
2585
|
}
|
|
2578
|
-
async function
|
|
2586
|
+
async function Va(r) {
|
|
2579
2587
|
ct(r);
|
|
2580
2588
|
try {
|
|
2581
|
-
const u = await
|
|
2589
|
+
const u = await $e.sorts.where({ page: r }).first();
|
|
2582
2590
|
return (u == null ? void 0 : u.keys) || [];
|
|
2583
2591
|
} catch (u) {
|
|
2584
2592
|
throw console.error(`获取表格字段顺序时出错 (page: ${r}):`, u), u;
|
|
2585
2593
|
}
|
|
2586
2594
|
}
|
|
2587
|
-
const
|
|
2595
|
+
const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { style: { display: "flex", "align-items": "center", height: "30px" } }, Oa = {
|
|
2588
2596
|
style: { display: "flex", flex: "1", "align-items": "center" },
|
|
2589
2597
|
class: "allcheck"
|
|
2590
|
-
},
|
|
2598
|
+
}, Ia = {
|
|
2591
2599
|
id: "cols",
|
|
2592
2600
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2593
|
-
},
|
|
2601
|
+
}, qa = ["textContent"], Aa = {
|
|
2594
2602
|
__name: "columns-setting",
|
|
2595
2603
|
props: /* @__PURE__ */ at({
|
|
2596
2604
|
tuid: {
|
|
@@ -2617,7 +2625,7 @@ const Da = { style: { padding: "15px", "box-sizing": "border-box" } }, Oa = { st
|
|
|
2617
2625
|
onEnd: async () => {
|
|
2618
2626
|
let p = d.toArray();
|
|
2619
2627
|
try {
|
|
2620
|
-
|
|
2628
|
+
Ta(e.tuid, p).then((L) => {
|
|
2621
2629
|
l("setting-drag-end");
|
|
2622
2630
|
});
|
|
2623
2631
|
} catch (L) {
|
|
@@ -2662,7 +2670,7 @@ const Da = { style: { padding: "15px", "box-sizing": "border-box" } }, Oa = { st
|
|
|
2662
2670
|
cancelButtonText: "取消",
|
|
2663
2671
|
type: "warning"
|
|
2664
2672
|
}).then(() => {
|
|
2665
|
-
|
|
2673
|
+
xa(e.tuid).then((o) => {
|
|
2666
2674
|
window.location.reload();
|
|
2667
2675
|
}).catch((o) => {
|
|
2668
2676
|
console.error("复位操作出错:", o), ut({
|
|
@@ -2682,21 +2690,21 @@ const Da = { style: { padding: "15px", "box-sizing": "border-box" } }, Oa = { st
|
|
|
2682
2690
|
width: d == null ? void 0 : d.width
|
|
2683
2691
|
})).sort((o, d) => o.sort - d.sort), f();
|
|
2684
2692
|
}), (o, d) => {
|
|
2685
|
-
const p =
|
|
2686
|
-
return
|
|
2687
|
-
K("div",
|
|
2688
|
-
K("div",
|
|
2693
|
+
const p = F("el-divider"), L = F("el-icon"), j = F("el-text"), I = F("el-checkbox");
|
|
2694
|
+
return m(), z("div", Ea, [
|
|
2695
|
+
K("div", Da, [
|
|
2696
|
+
K("div", Oa, [
|
|
2689
2697
|
K("a", { onClick: x }, "全选"),
|
|
2690
|
-
|
|
2698
|
+
se(p, { direction: "vertical" }),
|
|
2691
2699
|
K("a", { onClick: v }, "全不选"),
|
|
2692
|
-
|
|
2700
|
+
se(p, { direction: "vertical" }),
|
|
2693
2701
|
K("a", { onClick: y }, "复位")
|
|
2694
2702
|
]),
|
|
2695
|
-
|
|
2703
|
+
se(j, { type: "warning" }, {
|
|
2696
2704
|
default: _(() => [
|
|
2697
|
-
|
|
2705
|
+
se(L, { size: "16" }, {
|
|
2698
2706
|
default: _(() => [
|
|
2699
|
-
|
|
2707
|
+
se(U(ll))
|
|
2700
2708
|
]),
|
|
2701
2709
|
_: 1
|
|
2702
2710
|
}),
|
|
@@ -2706,8 +2714,8 @@ const Da = { style: { padding: "15px", "box-sizing": "border-box" } }, Oa = { st
|
|
|
2706
2714
|
})
|
|
2707
2715
|
]),
|
|
2708
2716
|
K("div", null, [
|
|
2709
|
-
K("div",
|
|
2710
|
-
(
|
|
2717
|
+
K("div", Ia, [
|
|
2718
|
+
(m(!0), z(re, null, N(U(n), (k) => (m(), E(I, {
|
|
2711
2719
|
modelValue: k.showCol,
|
|
2712
2720
|
"onUpdate:modelValue": (G) => k.showCol = G,
|
|
2713
2721
|
"data-id": k.value,
|
|
@@ -2723,7 +2731,7 @@ const Da = { style: { padding: "15px", "box-sizing": "border-box" } }, Oa = { st
|
|
|
2723
2731
|
K("span", {
|
|
2724
2732
|
textContent: Me(k.label),
|
|
2725
2733
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2726
|
-
}, null, 8,
|
|
2734
|
+
}, null, 8, qa)
|
|
2727
2735
|
]),
|
|
2728
2736
|
_: 2
|
|
2729
2737
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2732,7 +2740,7 @@ const Da = { style: { padding: "15px", "box-sizing": "border-box" } }, Oa = { st
|
|
|
2732
2740
|
]);
|
|
2733
2741
|
};
|
|
2734
2742
|
}
|
|
2735
|
-
},
|
|
2743
|
+
}, Ya = /* @__PURE__ */ et(Aa, [["__scopeId", "data-v-750b37bc"]]), za = { class: "title" }, Ua = { class: "content" }, La = {
|
|
2736
2744
|
__name: "g-cell-toopTip",
|
|
2737
2745
|
props: {
|
|
2738
2746
|
content: {
|
|
@@ -2748,24 +2756,24 @@ const Da = { style: { padding: "15px", "box-sizing": "border-box" } }, Oa = { st
|
|
|
2748
2756
|
const u = r, e = () => {
|
|
2749
2757
|
u.content ? (navigator.clipboard.writeText(u.content), ut.success("复制成功")) : ut.warning("没有内容可复制");
|
|
2750
2758
|
};
|
|
2751
|
-
return (l, n) => (
|
|
2759
|
+
return (l, n) => (m(), z("div", {
|
|
2752
2760
|
class: "g-cell-toopTip",
|
|
2753
|
-
style:
|
|
2761
|
+
style: Ye({ width: u.column.width + "px" })
|
|
2754
2762
|
}, [
|
|
2755
|
-
K("div",
|
|
2763
|
+
K("div", za, [
|
|
2756
2764
|
n[0] || (n[0] = K("span", { class: "title-text" }, "内容", -1)),
|
|
2757
2765
|
K("span", {
|
|
2758
2766
|
class: "copy-btn",
|
|
2759
2767
|
onClick: e,
|
|
2760
2768
|
title: "复制内容"
|
|
2761
2769
|
}, [
|
|
2762
|
-
|
|
2770
|
+
se(U(Al))
|
|
2763
2771
|
])
|
|
2764
2772
|
]),
|
|
2765
|
-
K("div",
|
|
2773
|
+
K("div", Ua, Me(u.content), 1)
|
|
2766
2774
|
], 4));
|
|
2767
2775
|
}
|
|
2768
|
-
},
|
|
2776
|
+
}, Ha = /* @__PURE__ */ et(La, [["__scopeId", "data-v-f28912da"]]), ja = {
|
|
2769
2777
|
__name: "g-detail",
|
|
2770
2778
|
props: {
|
|
2771
2779
|
row: {
|
|
@@ -2787,7 +2795,7 @@ const Da = { style: { padding: "15px", "box-sizing": "border-box" } }, Oa = { st
|
|
|
2787
2795
|
border: !0,
|
|
2788
2796
|
labelWidth: "100px",
|
|
2789
2797
|
column: 2
|
|
2790
|
-
}, n =
|
|
2798
|
+
}, n = je(() => {
|
|
2791
2799
|
var d, p;
|
|
2792
2800
|
return {
|
|
2793
2801
|
...l,
|
|
@@ -2797,49 +2805,49 @@ const Da = { style: { padding: "15px", "box-sizing": "border-box" } }, Oa = { st
|
|
|
2797
2805
|
}), i = {
|
|
2798
2806
|
"label-align": "right",
|
|
2799
2807
|
"label-width": "80px"
|
|
2800
|
-
}, t =
|
|
2808
|
+
}, t = je(() => {
|
|
2801
2809
|
var d;
|
|
2802
2810
|
return {
|
|
2803
2811
|
...i,
|
|
2804
2812
|
...((d = u == null ? void 0 : u.container) == null ? void 0 : d.items) || {}
|
|
2805
2813
|
};
|
|
2806
2814
|
}), f = (d) => {
|
|
2807
|
-
const p = u.m[d], L = p == null ? void 0 : p.view,
|
|
2808
|
-
return { ...typeof I == "function" ? I(u.row) || {} : {}, ...
|
|
2815
|
+
const p = u.m[d], L = p == null ? void 0 : p.view, j = typeof L == "function" ? L(u.row, null, 0, u.m) : L || {}, I = p == null ? void 0 : p.table;
|
|
2816
|
+
return { ...typeof I == "function" ? I(u.row) || {} : {}, ...j };
|
|
2809
2817
|
}, x = (d) => {
|
|
2810
2818
|
const p = f(d);
|
|
2811
2819
|
return (p == null ? void 0 : p.type) || "text-info";
|
|
2812
|
-
}, v =
|
|
2820
|
+
}, v = je(() => Object.entries(u.m).filter(([d, p]) => {
|
|
2813
2821
|
if (il.includes(d) || (p == null ? void 0 : p.type) === "hidden") return !1;
|
|
2814
2822
|
let L = (p == null ? void 0 : p.visible) !== !1;
|
|
2815
|
-
const
|
|
2816
|
-
return Object.hasOwn(
|
|
2823
|
+
const j = f(d);
|
|
2824
|
+
return Object.hasOwn(j, "visible") ? L = j.visible : Object.hasOwn(j, "hidden") && (L = !j.hidden), L;
|
|
2817
2825
|
}).sort(([d], [p]) => {
|
|
2818
2826
|
var I, k;
|
|
2819
|
-
const L = ((I = f(d)) == null ? void 0 : I.sort) ?? 0,
|
|
2820
|
-
return L -
|
|
2827
|
+
const L = ((I = f(d)) == null ? void 0 : I.sort) ?? 0, j = ((k = f(p)) == null ? void 0 : k.sort) ?? 0;
|
|
2828
|
+
return L - j;
|
|
2821
2829
|
})), y = {
|
|
2822
2830
|
date: "YYYY-MM-DD",
|
|
2823
2831
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2824
2832
|
time: "HH:mm:ss"
|
|
2825
|
-
}, o =
|
|
2833
|
+
}, o = je(() => Object.fromEntries(v.value.map(([d, p]) => {
|
|
2826
2834
|
const L = f(d);
|
|
2827
|
-
let
|
|
2835
|
+
let j = Object.hasOwn(L, "value") ? L.value : p == null ? void 0 : p.value;
|
|
2828
2836
|
const I = L.format || y[p == null ? void 0 : p.type];
|
|
2829
|
-
return I &&
|
|
2837
|
+
return I && j && (j = Et(j).format(I)), [d, j];
|
|
2830
2838
|
})));
|
|
2831
2839
|
return (d, p) => {
|
|
2832
2840
|
var I;
|
|
2833
|
-
const L =
|
|
2834
|
-
return
|
|
2841
|
+
const L = F("el-descriptions-item"), j = F("el-descriptions");
|
|
2842
|
+
return m(), z("div", {
|
|
2835
2843
|
class: "g-detail-container",
|
|
2836
|
-
style:
|
|
2844
|
+
style: Ye(((I = n.value) == null ? void 0 : I.style) || {})
|
|
2837
2845
|
}, [
|
|
2838
|
-
|
|
2846
|
+
se(j, A({ border: "" }, U(Ne)(n.value, (k) => !["container"].includes(k))), ge({
|
|
2839
2847
|
default: _(() => [
|
|
2840
|
-
(
|
|
2848
|
+
(m(!0), z(re, null, N(v.value, ([k, G]) => {
|
|
2841
2849
|
var Z, X;
|
|
2842
|
-
return
|
|
2850
|
+
return m(), E(L, A({
|
|
2843
2851
|
label: (Z = u.m[k]) == null ? void 0 : Z.label
|
|
2844
2852
|
}, { ref_for: !0 }, { ...t.value, ...((X = f(k)) == null ? void 0 : X.item) || {} }, { key: k }), {
|
|
2845
2853
|
label: _(() => [
|
|
@@ -2856,7 +2864,7 @@ const Da = { style: { padding: "15px", "box-sizing": "border-box" } }, Oa = { st
|
|
|
2856
2864
|
M(d.$slots, `view-${k}`, {
|
|
2857
2865
|
row: u.row
|
|
2858
2866
|
}, () => [
|
|
2859
|
-
|
|
2867
|
+
se(ht, {
|
|
2860
2868
|
modelValue: o.value[k],
|
|
2861
2869
|
"onUpdate:modelValue": (ne) => o.value[k] = ne,
|
|
2862
2870
|
item: f(k),
|
|
@@ -2884,7 +2892,7 @@ const Da = { style: { padding: "15px", "box-sizing": "border-box" } }, Oa = { st
|
|
|
2884
2892
|
], 4);
|
|
2885
2893
|
};
|
|
2886
2894
|
}
|
|
2887
|
-
},
|
|
2895
|
+
}, Fa = /* @__PURE__ */ et(ja, [["__scopeId", "data-v-532cc5ec"]]);
|
|
2888
2896
|
var cl = { exports: {} }, fl = { exports: {} };
|
|
2889
2897
|
(function() {
|
|
2890
2898
|
var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = {
|
|
@@ -2951,7 +2959,7 @@ var cl = { exports: {} }, fl = { exports: {} };
|
|
|
2951
2959
|
};
|
|
2952
2960
|
fl.exports = u;
|
|
2953
2961
|
})();
|
|
2954
|
-
var
|
|
2962
|
+
var Ra = fl.exports, Ut = {
|
|
2955
2963
|
// UTF-8 encoding
|
|
2956
2964
|
utf8: {
|
|
2957
2965
|
// Convert a string to a byte array
|
|
@@ -2985,24 +2993,24 @@ var Ba = fl.exports, Ut = {
|
|
|
2985
2993
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
2986
2994
|
* @license MIT
|
|
2987
2995
|
*/
|
|
2988
|
-
var
|
|
2989
|
-
return r != null && (vl(r) ||
|
|
2996
|
+
var Ba = function(r) {
|
|
2997
|
+
return r != null && (vl(r) || Pa(r) || !!r._isBuffer);
|
|
2990
2998
|
};
|
|
2991
2999
|
function vl(r) {
|
|
2992
3000
|
return !!r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
|
|
2993
3001
|
}
|
|
2994
|
-
function
|
|
3002
|
+
function Pa(r) {
|
|
2995
3003
|
return typeof r.readFloatLE == "function" && typeof r.slice == "function" && vl(r.slice(0, 0));
|
|
2996
3004
|
}
|
|
2997
3005
|
(function() {
|
|
2998
|
-
var r =
|
|
3006
|
+
var r = Ra, u = Bt.utf8, e = Ba, l = Bt.bin, n = function(i, t) {
|
|
2999
3007
|
i.constructor == String ? t && t.encoding === "binary" ? i = l.stringToBytes(i) : i = u.stringToBytes(i) : e(i) ? i = Array.prototype.slice.call(i, 0) : !Array.isArray(i) && i.constructor !== Uint8Array && (i = i.toString());
|
|
3000
3008
|
for (var f = r.bytesToWords(i), x = i.length * 8, v = 1732584193, y = -271733879, o = -1732584194, d = 271733878, p = 0; p < f.length; p++)
|
|
3001
3009
|
f[p] = (f[p] << 8 | f[p] >>> 24) & 16711935 | (f[p] << 24 | f[p] >>> 8) & 4278255360;
|
|
3002
3010
|
f[x >>> 5] |= 128 << x % 32, f[(x + 64 >>> 9 << 4) + 14] = x;
|
|
3003
|
-
for (var L = n._ff,
|
|
3011
|
+
for (var L = n._ff, j = n._gg, I = n._hh, k = n._ii, p = 0; p < f.length; p += 16) {
|
|
3004
3012
|
var G = v, Z = y, X = o, ne = d;
|
|
3005
|
-
v = L(v, y, o, d, f[p + 0], 7, -680876936), d = L(d, v, y, o, f[p + 1], 12, -389564586), o = L(o, d, v, y, f[p + 2], 17, 606105819), y = L(y, o, d, v, f[p + 3], 22, -1044525330), v = L(v, y, o, d, f[p + 4], 7, -176418897), d = L(d, v, y, o, f[p + 5], 12, 1200080426), o = L(o, d, v, y, f[p + 6], 17, -1473231341), y = L(y, o, d, v, f[p + 7], 22, -45705983), v = L(v, y, o, d, f[p + 8], 7, 1770035416), d = L(d, v, y, o, f[p + 9], 12, -1958414417), o = L(o, d, v, y, f[p + 10], 17, -42063), y = L(y, o, d, v, f[p + 11], 22, -1990404162), v = L(v, y, o, d, f[p + 12], 7, 1804603682), d = L(d, v, y, o, f[p + 13], 12, -40341101), o = L(o, d, v, y, f[p + 14], 17, -1502002290), y = L(y, o, d, v, f[p + 15], 22, 1236535329), v =
|
|
3013
|
+
v = L(v, y, o, d, f[p + 0], 7, -680876936), d = L(d, v, y, o, f[p + 1], 12, -389564586), o = L(o, d, v, y, f[p + 2], 17, 606105819), y = L(y, o, d, v, f[p + 3], 22, -1044525330), v = L(v, y, o, d, f[p + 4], 7, -176418897), d = L(d, v, y, o, f[p + 5], 12, 1200080426), o = L(o, d, v, y, f[p + 6], 17, -1473231341), y = L(y, o, d, v, f[p + 7], 22, -45705983), v = L(v, y, o, d, f[p + 8], 7, 1770035416), d = L(d, v, y, o, f[p + 9], 12, -1958414417), o = L(o, d, v, y, f[p + 10], 17, -42063), y = L(y, o, d, v, f[p + 11], 22, -1990404162), v = L(v, y, o, d, f[p + 12], 7, 1804603682), d = L(d, v, y, o, f[p + 13], 12, -40341101), o = L(o, d, v, y, f[p + 14], 17, -1502002290), y = L(y, o, d, v, f[p + 15], 22, 1236535329), v = j(v, y, o, d, f[p + 1], 5, -165796510), d = j(d, v, y, o, f[p + 6], 9, -1069501632), o = j(o, d, v, y, f[p + 11], 14, 643717713), y = j(y, o, d, v, f[p + 0], 20, -373897302), v = j(v, y, o, d, f[p + 5], 5, -701558691), d = j(d, v, y, o, f[p + 10], 9, 38016083), o = j(o, d, v, y, f[p + 15], 14, -660478335), y = j(y, o, d, v, f[p + 4], 20, -405537848), v = j(v, y, o, d, f[p + 9], 5, 568446438), d = j(d, v, y, o, f[p + 14], 9, -1019803690), o = j(o, d, v, y, f[p + 3], 14, -187363961), y = j(y, o, d, v, f[p + 8], 20, 1163531501), v = j(v, y, o, d, f[p + 13], 5, -1444681467), d = j(d, v, y, o, f[p + 2], 9, -51403784), o = j(o, d, v, y, f[p + 7], 14, 1735328473), y = j(y, o, d, v, f[p + 12], 20, -1926607734), v = I(v, y, o, d, f[p + 5], 4, -378558), d = I(d, v, y, o, f[p + 8], 11, -2022574463), o = I(o, d, v, y, f[p + 11], 16, 1839030562), y = I(y, o, d, v, f[p + 14], 23, -35309556), v = I(v, y, o, d, f[p + 1], 4, -1530992060), d = I(d, v, y, o, f[p + 4], 11, 1272893353), o = I(o, d, v, y, f[p + 7], 16, -155497632), y = I(y, o, d, v, f[p + 10], 23, -1094730640), v = I(v, y, o, d, f[p + 13], 4, 681279174), d = I(d, v, y, o, f[p + 0], 11, -358537222), o = I(o, d, v, y, f[p + 3], 16, -722521979), y = I(y, o, d, v, f[p + 6], 23, 76029189), v = I(v, y, o, d, f[p + 9], 4, -640364487), d = I(d, v, y, o, f[p + 12], 11, -421815835), o = I(o, d, v, y, f[p + 15], 16, 530742520), y = I(y, o, d, v, f[p + 2], 23, -995338651), v = k(v, y, o, d, f[p + 0], 6, -198630844), d = k(d, v, y, o, f[p + 7], 10, 1126891415), o = k(o, d, v, y, f[p + 14], 15, -1416354905), y = k(y, o, d, v, f[p + 5], 21, -57434055), v = k(v, y, o, d, f[p + 12], 6, 1700485571), d = k(d, v, y, o, f[p + 3], 10, -1894986606), o = k(o, d, v, y, f[p + 10], 15, -1051523), y = k(y, o, d, v, f[p + 1], 21, -2054922799), v = k(v, y, o, d, f[p + 8], 6, 1873313359), d = k(d, v, y, o, f[p + 15], 10, -30611744), o = k(o, d, v, y, f[p + 6], 15, -1560198380), y = k(y, o, d, v, f[p + 13], 21, 1309151649), v = k(v, y, o, d, f[p + 4], 6, -145523070), d = k(d, v, y, o, f[p + 11], 10, -1120210379), o = k(o, d, v, y, f[p + 2], 15, 718787259), y = k(y, o, d, v, f[p + 9], 21, -343485551), v = v + G >>> 0, y = y + Z >>> 0, o = o + X >>> 0, d = d + ne >>> 0;
|
|
3006
3014
|
}
|
|
3007
3015
|
return r.endian([v, y, o, d]);
|
|
3008
3016
|
};
|
|
@@ -3025,11 +3033,11 @@ function Na(r) {
|
|
|
3025
3033
|
return t && t.asBytes ? f : t && t.asString ? l.bytesToString(f) : r.bytesToHex(f);
|
|
3026
3034
|
};
|
|
3027
3035
|
})();
|
|
3028
|
-
var
|
|
3029
|
-
const
|
|
3036
|
+
var Na = cl.exports;
|
|
3037
|
+
const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
3030
3038
|
key: 0,
|
|
3031
3039
|
class: "table-query-container"
|
|
3032
|
-
},
|
|
3040
|
+
}, Qa = { class: "table-container" }, Za = ["innerHTML"], Ja = /* @__PURE__ */ Object.assign({
|
|
3033
3041
|
name: "g-table",
|
|
3034
3042
|
inheritAttrs: !1
|
|
3035
3043
|
}, {
|
|
@@ -3099,7 +3107,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3099
3107
|
"filter-multiple",
|
|
3100
3108
|
"filter-method",
|
|
3101
3109
|
"filtered-value"
|
|
3102
|
-
], p = ae([]), L = It(),
|
|
3110
|
+
], p = ae([]), L = It(), j = ae({}), I = ae([]), k = ae(null), G = ae(""), Z = ae("/"), X = lt(r, "selectedRows"), ne = ae({
|
|
3103
3111
|
autoWatch: !1,
|
|
3104
3112
|
data: [],
|
|
3105
3113
|
border: !0,
|
|
@@ -3109,14 +3117,14 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3109
3117
|
stripe: !0,
|
|
3110
3118
|
type: "hidden",
|
|
3111
3119
|
load: async () => {
|
|
3112
|
-
const a = Number(await
|
|
3120
|
+
const a = Number(await Sa(Z.value));
|
|
3113
3121
|
a && a > 0 && (t.value.table.page.pageSize = a);
|
|
3114
3122
|
let { currentPage: s, pageSize: g } = t.value.table.page;
|
|
3115
3123
|
try {
|
|
3116
3124
|
i(
|
|
3117
3125
|
"load",
|
|
3118
3126
|
{ currentPage: s, pageSize: g, ...x.value },
|
|
3119
|
-
(C = [], q = 0, { fields:
|
|
3127
|
+
(C = [], q = 0, { fields: R = [], sums: B = {} } = {}) => {
|
|
3120
3128
|
var he;
|
|
3121
3129
|
if (!Array.isArray(C)) {
|
|
3122
3130
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), ut.error("数据加载失败,请检查数据格式。");
|
|
@@ -3126,7 +3134,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3126
3134
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), ut.error("数据加载失败,请检查数据格式。");
|
|
3127
3135
|
return;
|
|
3128
3136
|
}
|
|
3129
|
-
t.value.table.data = C, ((he = t.value.control) == null ? void 0 : he.add(k.value, t).inline) === !0 && t.value.table.data.unshift(k.value), t.value.table.page.total = q, I.value =
|
|
3137
|
+
t.value.table.data = C, ((he = t.value.control) == null ? void 0 : he.add(k.value, t).inline) === !0 && t.value.table.data.unshift(k.value), t.value.table.page.total = q, I.value = R, j.value = B, ze(), G.value = Math.random().toString(36).substring(2);
|
|
3130
3138
|
},
|
|
3131
3139
|
k.value
|
|
3132
3140
|
);
|
|
@@ -3135,10 +3143,10 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3135
3143
|
}
|
|
3136
3144
|
},
|
|
3137
3145
|
onHeaderDragend: (a, s, g) => {
|
|
3138
|
-
|
|
3146
|
+
ka(Z.value, g.property, a);
|
|
3139
3147
|
},
|
|
3140
3148
|
onRowDblclick: (a, s, g) => {
|
|
3141
|
-
t.value.table.dblclickType == "edit" ? T(a, s, g, t) : t.value.table.dblclickType == "view" ? O(a, s, g, t) : t.value.table.dblclickType == "delete" ?
|
|
3149
|
+
t.value.table.dblclickType == "edit" ? T(a, s, g, t) : t.value.table.dblclickType == "view" ? O(a, s, g, t) : t.value.table.dblclickType == "delete" ? D(a, s, g, t) : t.value.table.dblclickType(a, s, g, t);
|
|
3142
3150
|
},
|
|
3143
3151
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
3144
3152
|
page: {
|
|
@@ -3158,7 +3166,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3158
3166
|
t.value.table.page.currentPage = a, t.value.table.load();
|
|
3159
3167
|
},
|
|
3160
3168
|
onSizeChange: (a) => {
|
|
3161
|
-
|
|
3169
|
+
Ma({ page: Z.value, size: a }).then(() => {
|
|
3162
3170
|
t.value.table.page.pageSize = a, t.value.table.load();
|
|
3163
3171
|
});
|
|
3164
3172
|
}
|
|
@@ -3178,7 +3186,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3178
3186
|
L
|
|
3179
3187
|
// 继承父组件的属性
|
|
3180
3188
|
);
|
|
3181
|
-
const
|
|
3189
|
+
const ue = {
|
|
3182
3190
|
type: "control",
|
|
3183
3191
|
label: "操作",
|
|
3184
3192
|
align: "center",
|
|
@@ -3232,12 +3240,12 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3232
3240
|
}
|
|
3233
3241
|
}),
|
|
3234
3242
|
save: (a, s, g, C) => {
|
|
3235
|
-
var q,
|
|
3243
|
+
var q, R;
|
|
3236
3244
|
return {
|
|
3237
3245
|
label: ((q = C.control) == null ? void 0 : q.add(a, C).inline) !== !0 ? "保存" : g === 0 ? "新增" : "保存",
|
|
3238
3246
|
text: !0,
|
|
3239
3247
|
icon: () => _e(zt),
|
|
3240
|
-
type: ((
|
|
3248
|
+
type: ((R = C.control) == null ? void 0 : R.add(a, C).inline) !== !0 || g === 0 ? "primary" : "success",
|
|
3241
3249
|
sort: -1,
|
|
3242
3250
|
auth: () => {
|
|
3243
3251
|
var B;
|
|
@@ -3294,45 +3302,45 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3294
3302
|
type: "primary",
|
|
3295
3303
|
auth: () => !(C.control.add(a, C).inline === !0 && g == 0),
|
|
3296
3304
|
onClick: () => {
|
|
3297
|
-
var
|
|
3298
|
-
let q = (
|
|
3299
|
-
q === "edit" ? T(a, s, g, C) : q === "delete" ?
|
|
3305
|
+
var R;
|
|
3306
|
+
let q = (R = Se(a, s, g, C)) == null ? void 0 : R.operate;
|
|
3307
|
+
q === "edit" ? T(a, s, g, C) : q === "delete" ? D(a, s, g, C) : q === "view" && O(a, s, g, C);
|
|
3300
3308
|
},
|
|
3301
3309
|
"button-props": { round: !0, plain: !0 }
|
|
3302
3310
|
})
|
|
3303
3311
|
};
|
|
3304
3312
|
t.value.control = qe(
|
|
3305
|
-
|
|
3313
|
+
ue,
|
|
3306
3314
|
f == null ? void 0 : f.control,
|
|
3307
3315
|
(gt = t.value) == null ? void 0 : gt.control
|
|
3308
3316
|
);
|
|
3309
3317
|
const pe = (a, s = !0) => {
|
|
3310
|
-
const g = t.value.control[a], C = s ? (q,
|
|
3311
|
-
var
|
|
3312
|
-
if (!q || !
|
|
3318
|
+
const g = t.value.control[a], C = s ? (q, R, B, he) => {
|
|
3319
|
+
var Fe, Ze, st;
|
|
3320
|
+
if (!q || !R || B == null)
|
|
3313
3321
|
return console.warn(`merge${a.charAt(0).toUpperCase() + a.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
3314
|
-
const
|
|
3315
|
-
return qe(
|
|
3316
|
-
} : (q,
|
|
3317
|
-
var Ee, Oe,
|
|
3318
|
-
const B = ((Ee =
|
|
3319
|
-
return qe(B, he,
|
|
3322
|
+
const we = ((Fe = ue[a]) == null ? void 0 : Fe.call(ue, q, R, B, he)) || {}, Ee = ((st = (Ze = f == null ? void 0 : f.control) == null ? void 0 : Ze[a]) == null ? void 0 : st.call(Ze, q, R, B, he)) || {}, Oe = (g == null ? void 0 : g(q, R, B, he)) || {};
|
|
3323
|
+
return qe(we, Ee, Oe) || {};
|
|
3324
|
+
} : (q, R) => {
|
|
3325
|
+
var Ee, Oe, Fe;
|
|
3326
|
+
const B = ((Ee = ue[a]) == null ? void 0 : Ee.call(ue, q, R)) || {}, he = ((Fe = (Oe = f == null ? void 0 : f.control) == null ? void 0 : Oe[a]) == null ? void 0 : Fe.call(Oe, q, R)) || {}, we = (g == null ? void 0 : g(q, R)) || {};
|
|
3327
|
+
return qe(B, he, we) || {};
|
|
3320
3328
|
};
|
|
3321
3329
|
t.value.control[a] = C;
|
|
3322
3330
|
};
|
|
3323
3331
|
pe("edit"), pe("delete"), pe("view"), pe("save"), pe("add", !1), pe("download", !1), pe("setting", !1), pe("batch", !1), pe("toggleExpand", !1);
|
|
3324
3332
|
const Se = (a, s, g, C) => {
|
|
3325
|
-
var he,
|
|
3333
|
+
var he, we, Ee, Oe, Fe, Ze;
|
|
3326
3334
|
if (!a || !s || g == null)
|
|
3327
3335
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
3328
|
-
const q = ((he =
|
|
3329
|
-
return qe(q,
|
|
3336
|
+
const q = ((he = ue.dropdown) == null ? void 0 : he.call(ue, a, s, g, C)) || {}, R = ((Ee = (we = f == null ? void 0 : f.control) == null ? void 0 : we.dropdown) == null ? void 0 : Ee.call(we, a, s, g, C)) || {}, B = ((Ze = (Fe = (Oe = t.value) == null ? void 0 : Oe.control) == null ? void 0 : Fe.dropdown) == null ? void 0 : Ze.call(Fe, a, s, g, C)) || {};
|
|
3337
|
+
return qe(q, R, B) || {};
|
|
3330
3338
|
}, De = {
|
|
3331
3339
|
type: "hidden",
|
|
3332
3340
|
"min-width": 100,
|
|
3333
3341
|
align: "center",
|
|
3334
3342
|
formatter: (a, s, g, C) => g,
|
|
3335
|
-
"tooltip-formatter": ({ row: a, column: s, cellValue: g }) => _e(
|
|
3343
|
+
"tooltip-formatter": ({ row: a, column: s, cellValue: g }) => _e(Ha, { content: g, column: s })
|
|
3336
3344
|
};
|
|
3337
3345
|
t.value.tableColumns = qe(
|
|
3338
3346
|
De,
|
|
@@ -3392,7 +3400,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3392
3400
|
}
|
|
3393
3401
|
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, g = `<span title="${Ht(
|
|
3394
3402
|
parseFloat(g)
|
|
3395
|
-
)}">${
|
|
3403
|
+
)}">${pr(parseFloat(g), (a == null ? void 0 : a.precision) || 2, (a == null ? void 0 : a.removeZero) || !1)}</span>`), a.prefix && g && (g = `<span>${a.prefix}${g}</span>`), a.suffix && g && (g = `${g}<span>${a.suffix}</span>`), g;
|
|
3396
3404
|
}, We = (a) => {
|
|
3397
3405
|
x.value = Object.fromEntries(y), t.value.table.load();
|
|
3398
3406
|
}, w = (a) => {
|
|
@@ -3411,12 +3419,12 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3411
3419
|
}), o.value = !0, await Ke(), i("open", "add", { row: k.value, node: n.node, m: s }), mt()), await Ke(), i("node-init", { row: k.value, node: n.node, m: s }));
|
|
3412
3420
|
}, b = () => {
|
|
3413
3421
|
i("batch", X.value);
|
|
3414
|
-
},
|
|
3422
|
+
}, h = (a, s) => {
|
|
3415
3423
|
i("toggleExpand", a), console.log(t.value.table["default-expand-all"]), v.value = !1, t.value.table["default-expand-all"] = !t.value.table["default-expand-all"], Ke(() => {
|
|
3416
3424
|
v.value = !0;
|
|
3417
3425
|
});
|
|
3418
3426
|
}, T = async (a, s, g, C) => {
|
|
3419
|
-
var q,
|
|
3427
|
+
var q, R;
|
|
3420
3428
|
t.value.form.modalState = "edit", l.value = "edit";
|
|
3421
3429
|
try {
|
|
3422
3430
|
if (!await ((q = t.value.control) == null ? void 0 : q.validate("edit", { row: a, column: s, index: g, m: C }))) return;
|
|
@@ -3424,22 +3432,22 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3424
3432
|
console.error("验证失败:", B);
|
|
3425
3433
|
return;
|
|
3426
3434
|
}
|
|
3427
|
-
(
|
|
3435
|
+
(R = t.value.control.edit(a, s, g, C)) != null && R.click ? t.value.control.edit(a, s, g, C).click(a, s, g, C) : (t.value.form.disabled = !1, t.value.dialog.mode = t.value.control.edit(a, s, g, C).mode, t.value.dialog.title = t.value.control.edit(a, s, g, C).title || t.value.control.edit(a, s, g, C).label || "编辑", Object.keys(a).forEach((B) => {
|
|
3428
3436
|
t.value[B] && (t.value[B].value = a[B]);
|
|
3429
3437
|
}), o.value = !0, await Ke(), i("open", "edit", { m: C, row: a, column: s, index: g }), mt());
|
|
3430
|
-
},
|
|
3431
|
-
var q,
|
|
3438
|
+
}, D = async (a, s, g, C) => {
|
|
3439
|
+
var q, R;
|
|
3432
3440
|
try {
|
|
3433
3441
|
if (!await ((q = t.value.control) == null ? void 0 : q.validate("delete", { row: a, column: s, index: g, m: C }))) return;
|
|
3434
3442
|
} catch (B) {
|
|
3435
3443
|
console.error("验证失败:", B);
|
|
3436
3444
|
return;
|
|
3437
3445
|
}
|
|
3438
|
-
if ((
|
|
3446
|
+
if ((R = t.value.control.delete(a, s, g, C)) != null && R.click)
|
|
3439
3447
|
t.value.control.delete(a, s, g, C).click(a, s, g, C);
|
|
3440
3448
|
else {
|
|
3441
|
-
let { message: B, title: he, options:
|
|
3442
|
-
Wt.confirm(B, he,
|
|
3449
|
+
let { message: B, title: he, options: we } = t.value.control.delete(a, s, g, C).dialog;
|
|
3450
|
+
Wt.confirm(B, he, we).then(() => {
|
|
3443
3451
|
i(
|
|
3444
3452
|
"delete",
|
|
3445
3453
|
{ row: a, column: s, index: g, m: C },
|
|
@@ -3451,26 +3459,26 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3451
3459
|
});
|
|
3452
3460
|
}
|
|
3453
3461
|
}, O = async (a, s, g, C) => {
|
|
3454
|
-
var q,
|
|
3462
|
+
var q, R, B, he;
|
|
3455
3463
|
t.value.form.modalState = void 0, l.value = "view";
|
|
3456
3464
|
try {
|
|
3457
3465
|
if (!await ((q = t.value.control) == null ? void 0 : q.validate("view", { row: a, column: s, index: g, m: C }))) return;
|
|
3458
|
-
} catch (
|
|
3459
|
-
console.error("验证失败:",
|
|
3466
|
+
} catch (we) {
|
|
3467
|
+
console.error("验证失败:", we);
|
|
3460
3468
|
return;
|
|
3461
3469
|
}
|
|
3462
|
-
(
|
|
3463
|
-
t.value[
|
|
3470
|
+
(R = t.value.control.view(a, s, g, C)) != null && R.click ? t.value.control.view(a, s, g, C).click(a, s, g, C) : (t.value.form.disabled = !0, t.value.dialog.mode = t.value.control.view(a, s, g, C).mode, t.value.dialog.title = t.value.control.view(a, s, g, C).title || t.value.control.view(a, s, g, C).label || "详情", Object.keys(a).forEach((we) => {
|
|
3471
|
+
t.value[we] && (t.value[we].value = a[we]);
|
|
3464
3472
|
}), ((B = t.value.control.view(a, s, g, C)) == null ? void 0 : B["view-mode"]) === "description" ? pl({
|
|
3465
3473
|
...t.value.dialog,
|
|
3466
3474
|
type: t.value.dialog.mode,
|
|
3467
3475
|
slots: {
|
|
3468
3476
|
default: () => {
|
|
3469
|
-
var
|
|
3470
|
-
return _e(
|
|
3477
|
+
var we, Ee, Oe;
|
|
3478
|
+
return _e(Fa, {
|
|
3471
3479
|
row: a,
|
|
3472
3480
|
m: C,
|
|
3473
|
-
container: ((
|
|
3481
|
+
container: ((we = t.value.control.view(a, s, g, C)) == null ? void 0 : we.container) || {}
|
|
3474
3482
|
}, ((Oe = (Ee = t.value.control.view(a, s, g, C)) == null ? void 0 : Ee.container) == null ? void 0 : Oe.slots) || {});
|
|
3475
3483
|
}
|
|
3476
3484
|
}
|
|
@@ -3482,19 +3490,19 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3482
3490
|
q != null && q.click ? q.click(a, s, g, C) : i(
|
|
3483
3491
|
"row-save",
|
|
3484
3492
|
{ row: a, column: s, index: g, data: t.value.table.data },
|
|
3485
|
-
async (
|
|
3486
|
-
if (
|
|
3493
|
+
async (R = !0, B = !0) => {
|
|
3494
|
+
if (R && t.value.table.load(), B && g === 0) {
|
|
3487
3495
|
const he = Object.entries(t.value).filter(
|
|
3488
|
-
([
|
|
3496
|
+
([we, Ee]) => Ee.type !== "control" && Ee.type !== "hidden"
|
|
3489
3497
|
// && val.editor !== false
|
|
3490
3498
|
);
|
|
3491
3499
|
k.value = Object.fromEntries(
|
|
3492
|
-
he.map(([
|
|
3500
|
+
he.map(([we, Ee]) => [we, Ee.value])
|
|
3493
3501
|
), t.value.table.data[g] = { ...k.value };
|
|
3494
3502
|
}
|
|
3495
3503
|
}
|
|
3496
3504
|
);
|
|
3497
|
-
}, de =
|
|
3505
|
+
}, de = mr((a, s, g) => {
|
|
3498
3506
|
i("submit", t.value.form.modalState, a, s, (C) => {
|
|
3499
3507
|
C && (g === 1 && (o.value = !1), Y(a), s.table.load());
|
|
3500
3508
|
});
|
|
@@ -3511,11 +3519,11 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3511
3519
|
size: s.control.download(a, s).size || 480,
|
|
3512
3520
|
width: s.control.download(a, s).width || 600,
|
|
3513
3521
|
slots: {
|
|
3514
|
-
default: () => _e(
|
|
3522
|
+
default: () => _e(ba, {
|
|
3515
3523
|
items: g,
|
|
3516
3524
|
commitText: s.control.download(a, s).excelLabel,
|
|
3517
|
-
onExcel: (
|
|
3518
|
-
i("download",
|
|
3525
|
+
onExcel: (R, B) => {
|
|
3526
|
+
i("download", R, x.value, B), q();
|
|
3519
3527
|
}
|
|
3520
3528
|
})
|
|
3521
3529
|
}
|
|
@@ -3531,7 +3539,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3531
3539
|
size: s.control.setting(a, s).size || 470,
|
|
3532
3540
|
width: s.control.setting(a, s).width || 600,
|
|
3533
3541
|
slots: {
|
|
3534
|
-
default: () => _e(
|
|
3542
|
+
default: () => _e(Ya, {
|
|
3535
3543
|
modelValue: s,
|
|
3536
3544
|
tuid: Z.value,
|
|
3537
3545
|
onSettingDragEnd: async () => {
|
|
@@ -3549,35 +3557,35 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3549
3557
|
add: $,
|
|
3550
3558
|
batch: b,
|
|
3551
3559
|
download: W,
|
|
3552
|
-
toggleExpand:
|
|
3560
|
+
toggleExpand: h,
|
|
3553
3561
|
setting: Q,
|
|
3554
3562
|
view: O,
|
|
3555
3563
|
edit: T,
|
|
3556
|
-
delete:
|
|
3564
|
+
delete: D,
|
|
3557
3565
|
save: le
|
|
3558
|
-
}, Ie = (a, s, g, C, q) => a.filter((
|
|
3559
|
-
const B = Ve == null ? void 0 : Ve[
|
|
3566
|
+
}, Ie = (a, s, g, C, q) => a.filter((R) => ke[R]).map((R) => {
|
|
3567
|
+
const B = Ve == null ? void 0 : Ve[R](s, g, C, q);
|
|
3560
3568
|
return {
|
|
3561
|
-
name: `control-${
|
|
3569
|
+
name: `control-${R}`,
|
|
3562
3570
|
attr: B,
|
|
3563
|
-
func: ke[
|
|
3571
|
+
func: ke[R],
|
|
3564
3572
|
label: B == null ? void 0 : B.label,
|
|
3565
3573
|
sort: (B == null ? void 0 : B.sort) || 0,
|
|
3566
3574
|
groupName: (B == null ? void 0 : B.groupName) || "default"
|
|
3567
3575
|
};
|
|
3568
|
-
}).sort((
|
|
3576
|
+
}).sort((R, B) => R.sort - B.sort), V = (a, s, g, C, q) => Ie(a, s, g, C, q).reduce((R, B) => {
|
|
3569
3577
|
const he = B.groupName || "default";
|
|
3570
|
-
return
|
|
3571
|
-
}, {}), S =
|
|
3578
|
+
return R[he] || (R[he] = []), R[he].push(B), R;
|
|
3579
|
+
}, {}), S = je(() => Object.fromEntries(
|
|
3572
3580
|
Object.entries(t.value).filter(
|
|
3573
3581
|
([a, s]) => s.type !== "hidden" && s.hidden !== !0 && s.visible !== !1 && s.showCol !== !1
|
|
3574
3582
|
).map(([a, s]) => (s.sort = typeof s.sort == "number" ? s.sort : 0, [a, s])).sort((a, s) => a[1].sort - s[1].sort)
|
|
3575
3583
|
)), H = ae({}), Ce = (a, s) => {
|
|
3576
3584
|
const g = (C, q) => {
|
|
3577
|
-
for (const
|
|
3578
|
-
if (
|
|
3579
|
-
if (
|
|
3580
|
-
const B = g(
|
|
3585
|
+
for (const R of C) {
|
|
3586
|
+
if (R.value == q) return R.label;
|
|
3587
|
+
if (R.children) {
|
|
3588
|
+
const B = g(R.children, q);
|
|
3581
3589
|
if (B) return B;
|
|
3582
3590
|
}
|
|
3583
3591
|
}
|
|
@@ -3585,12 +3593,12 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3585
3593
|
};
|
|
3586
3594
|
if (a.getDicts) {
|
|
3587
3595
|
const C = s.toString();
|
|
3588
|
-
return H.value[C] ? (a.options = H.value[C], a.formatter || (a.formatter = (q,
|
|
3589
|
-
H.value[C] = q, a.options = q, a.formatter || (a.formatter = (
|
|
3596
|
+
return H.value[C] ? (a.options = H.value[C], a.formatter || (a.formatter = (q, R, B, he) => a.options && g(a.options, B) || B), Promise.resolve()) : a.getDicts(t.value.table.data).then((q) => {
|
|
3597
|
+
H.value[C] = q, a.options = q, a.formatter || (a.formatter = (R, B, he, we) => a.options && g(a.options, he) || he);
|
|
3590
3598
|
});
|
|
3591
3599
|
}
|
|
3592
3600
|
return Promise.resolve();
|
|
3593
|
-
},
|
|
3601
|
+
}, ze = async () => {
|
|
3594
3602
|
try {
|
|
3595
3603
|
const s = Object.keys(t.value).filter((g) => t.value[g].getDicts).map(
|
|
3596
3604
|
(g) => Ce(t.value[g], g)
|
|
@@ -3599,9 +3607,9 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3599
3607
|
} catch (a) {
|
|
3600
3608
|
console.error("字典加载过程中发生错误:", a);
|
|
3601
3609
|
}
|
|
3602
|
-
},
|
|
3603
|
-
var q,
|
|
3604
|
-
return a.table ? (q = a.table(s, g, C)) != null && q.auth ? (
|
|
3610
|
+
}, Ue = (a, s, g, C) => {
|
|
3611
|
+
var q, R;
|
|
3612
|
+
return a.table ? (q = a.table(s, g, C)) != null && q.auth ? (R = a.table(s, g, C)) == null ? void 0 : R.auth(s, g, C) : !0 : !1;
|
|
3605
3613
|
}, tt = () => {
|
|
3606
3614
|
o.value = !1;
|
|
3607
3615
|
};
|
|
@@ -3611,16 +3619,16 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3611
3619
|
const Le = async () => {
|
|
3612
3620
|
try {
|
|
3613
3621
|
const [a, s, g] = await Promise.all([
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3622
|
+
_a(Z.value),
|
|
3623
|
+
Va(Z.value),
|
|
3624
|
+
Ca(Z.value)
|
|
3617
3625
|
]);
|
|
3618
3626
|
a && Array.isArray(a) && a.forEach((C) => {
|
|
3619
3627
|
const q = t.value[C.key];
|
|
3620
3628
|
q && (q.width = C.width);
|
|
3621
3629
|
}), s && Array.isArray(s) && s.forEach((C, q) => {
|
|
3622
|
-
const
|
|
3623
|
-
|
|
3630
|
+
const R = t.value[C];
|
|
3631
|
+
R && (R.sort = q);
|
|
3624
3632
|
}), g && Array.isArray(g) && g.length > 0 ? g.forEach((C) => {
|
|
3625
3633
|
const q = t.value[C];
|
|
3626
3634
|
q && (q.showCol = !1);
|
|
@@ -3632,7 +3640,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3632
3640
|
t.value[s].showCol === void 0 && (t.value[s].showCol = !0);
|
|
3633
3641
|
});
|
|
3634
3642
|
}
|
|
3635
|
-
}, Qe = () =>
|
|
3643
|
+
}, Qe = () => Wa(Object.keys(t.value).toString()).toUpperCase().substring(8, 24);
|
|
3636
3644
|
return xl(() => {
|
|
3637
3645
|
Z.value = Qe();
|
|
3638
3646
|
}), yt(async () => {
|
|
@@ -3653,11 +3661,11 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3653
3661
|
} catch (a) {
|
|
3654
3662
|
console.error("Error during component initialization:", a), t.value.table.autoWatch || t.value.table.load();
|
|
3655
3663
|
}
|
|
3656
|
-
}), u({ addRow: $, editRow: T, deleteRow:
|
|
3657
|
-
var Ee, Oe,
|
|
3658
|
-
const g =
|
|
3659
|
-
return
|
|
3660
|
-
o.value ? (
|
|
3664
|
+
}), u({ addRow: $, editRow: T, deleteRow: D, readForm: O, saveRowData: le, closeDialog: tt, formData: k }), (a, s) => {
|
|
3665
|
+
var Ee, Oe, Fe, Ze, st, _t, Ct;
|
|
3666
|
+
const g = F("el-button-group"), C = F("el-dropdown-item"), q = F("el-dropdown-menu"), R = F("el-dropdown"), B = F("el-table-column"), he = F("el-table"), we = F("el-pagination");
|
|
3667
|
+
return m(), z(re, null, [
|
|
3668
|
+
o.value ? (m(), E(jt, A({
|
|
3661
3669
|
key: 0,
|
|
3662
3670
|
modelValue: o.value,
|
|
3663
3671
|
"onUpdate:modelValue": s[2] || (s[2] = (J) => o.value = J)
|
|
@@ -3665,7 +3673,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3665
3673
|
type: t.value.dialog.mode
|
|
3666
3674
|
}), ge({
|
|
3667
3675
|
default: _(() => [
|
|
3668
|
-
o.value ? (
|
|
3676
|
+
o.value ? (m(), E(Pe(dl), {
|
|
3669
3677
|
key: 0,
|
|
3670
3678
|
modelValue: t.value,
|
|
3671
3679
|
"onUpdate:modelValue": s[0] || (s[0] = (J) => t.value = J),
|
|
@@ -3675,11 +3683,11 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3675
3683
|
}, ge({ _: 2 }, [
|
|
3676
3684
|
N(a.$slots, (J, fe, te) => ({
|
|
3677
3685
|
name: fe,
|
|
3678
|
-
fn: _((
|
|
3679
|
-
M(a.$slots, fe, { model:
|
|
3686
|
+
fn: _((Re) => [
|
|
3687
|
+
M(a.$slots, fe, { model: Re }, void 0, !0)
|
|
3680
3688
|
])
|
|
3681
3689
|
}))
|
|
3682
|
-
]), 1064, ["modelValue", "flag"])) :
|
|
3690
|
+
]), 1064, ["modelValue", "flag"])) : be("", !0)
|
|
3683
3691
|
]),
|
|
3684
3692
|
_: 2
|
|
3685
3693
|
}, [
|
|
@@ -3714,11 +3722,11 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3714
3722
|
]),
|
|
3715
3723
|
key: "3"
|
|
3716
3724
|
} : void 0
|
|
3717
|
-
]), 1040, ["modelValue", "type"])) :
|
|
3718
|
-
K("div",
|
|
3719
|
-
((Ze = (
|
|
3725
|
+
]), 1040, ["modelValue", "type"])) : be("", !0),
|
|
3726
|
+
K("div", Ga, [
|
|
3727
|
+
((Ze = (Fe = t.value) == null ? void 0 : Fe.query) == null ? void 0 : Ze.hidden) != !0 ? (m(), z("div", Xa, [
|
|
3720
3728
|
M(a.$slots, "query", {}, () => [
|
|
3721
|
-
|
|
3729
|
+
se(na, {
|
|
3722
3730
|
modelValue: t.value,
|
|
3723
3731
|
"onUpdate:modelValue": s[3] || (s[3] = (J) => t.value = J),
|
|
3724
3732
|
info: x.value,
|
|
@@ -3728,16 +3736,16 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3728
3736
|
}, ge({
|
|
3729
3737
|
"q-btns": _(() => [
|
|
3730
3738
|
M(a.$slots, "q-btns", {}, () => [
|
|
3731
|
-
(
|
|
3732
|
-
fe == "default" ? (
|
|
3739
|
+
(m(!0), z(re, null, N(V(["add", "toggleExpand", "batch", "download", "setting"], k.value, t.value), (J, fe) => (m(), z(re, null, [
|
|
3740
|
+
fe == "default" ? (m(!0), z(re, { key: 0 }, N(J, (te) => (m(), z(re, null, [
|
|
3733
3741
|
M(a.$slots, te.name + "-left", {}, void 0, !0),
|
|
3734
3742
|
(te.name === "control-add" ? te.attr.auth() && te.attr.inline === !1 : te.attr.auth()) ? M(a.$slots, te.name, { key: 0 }, () => {
|
|
3735
|
-
var
|
|
3743
|
+
var Re, Je;
|
|
3736
3744
|
return [
|
|
3737
|
-
te.label ? (
|
|
3745
|
+
te.label ? (m(), E(U(He), A({
|
|
3738
3746
|
key: 0,
|
|
3739
3747
|
title: te.label,
|
|
3740
|
-
disabled: te.name === "control-batch" && ((
|
|
3748
|
+
disabled: te.name === "control-batch" && ((Re = X.value) == null ? void 0 : Re.length) === 0
|
|
3741
3749
|
}, { ref_for: !0 }, te.attr, {
|
|
3742
3750
|
onClick: (rt) => te.func(k.value, t.value, p.value)
|
|
3743
3751
|
}), {
|
|
@@ -3745,7 +3753,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3745
3753
|
Ae(Me(te.label), 1)
|
|
3746
3754
|
]),
|
|
3747
3755
|
_: 2
|
|
3748
|
-
}, 1040, ["title", "disabled", "onClick"])) : (
|
|
3756
|
+
}, 1040, ["title", "disabled", "onClick"])) : (m(), E(U(He), A({
|
|
3749
3757
|
key: 1,
|
|
3750
3758
|
title: te.label,
|
|
3751
3759
|
disabled: te.name === "control-batch" && ((Je = X.value) == null ? void 0 : Je.length) === 0
|
|
@@ -3753,19 +3761,19 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3753
3761
|
onClick: (rt) => te.func(k.value, t.value, p.value)
|
|
3754
3762
|
}), null, 16, ["title", "disabled", "onClick"]))
|
|
3755
3763
|
];
|
|
3756
|
-
}, !0) :
|
|
3764
|
+
}, !0) : be("", !0),
|
|
3757
3765
|
M(a.$slots, te.name + "-right", {}, void 0, !0)
|
|
3758
|
-
], 64))), 256)) : (
|
|
3766
|
+
], 64))), 256)) : (m(), E(g, { key: 1 }, {
|
|
3759
3767
|
default: _(() => [
|
|
3760
|
-
(
|
|
3768
|
+
(m(!0), z(re, null, N(J, (te) => (m(), z(re, null, [
|
|
3761
3769
|
M(a.$slots, te.name + "-left", {}, void 0, !0),
|
|
3762
3770
|
(te.name === "control-add" ? te.attr.auth() && te.attr.inline === !1 : te.attr.auth()) ? M(a.$slots, te.name, { key: 0 }, () => {
|
|
3763
|
-
var
|
|
3771
|
+
var Re, Je;
|
|
3764
3772
|
return [
|
|
3765
|
-
te.label ? (
|
|
3773
|
+
te.label ? (m(), E(U(He), A({
|
|
3766
3774
|
key: 0,
|
|
3767
3775
|
title: te.label,
|
|
3768
|
-
disabled: te.name === "control-batch" && ((
|
|
3776
|
+
disabled: te.name === "control-batch" && ((Re = X.value) == null ? void 0 : Re.length) === 0,
|
|
3769
3777
|
v: ""
|
|
3770
3778
|
}, { ref_for: !0 }, te.attr, {
|
|
3771
3779
|
onClick: (rt) => te.func(k.value, t.value, p.value)
|
|
@@ -3774,7 +3782,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3774
3782
|
Ae(Me(te.label), 1)
|
|
3775
3783
|
]),
|
|
3776
3784
|
_: 2
|
|
3777
|
-
}, 1040, ["title", "disabled", "onClick"])) : (
|
|
3785
|
+
}, 1040, ["title", "disabled", "onClick"])) : (m(), E(U(He), A({
|
|
3778
3786
|
key: 1,
|
|
3779
3787
|
title: te.label,
|
|
3780
3788
|
disabled: te.name === "control-batch" && ((Je = X.value) == null ? void 0 : Je.length) === 0
|
|
@@ -3782,7 +3790,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3782
3790
|
onClick: (rt) => te.func(k.value, t.value, p.value)
|
|
3783
3791
|
}), null, 16, ["title", "disabled", "onClick"]))
|
|
3784
3792
|
];
|
|
3785
|
-
}, !0) :
|
|
3793
|
+
}, !0) : be("", !0),
|
|
3786
3794
|
M(a.$slots, te.name + "-right", {}, void 0, !0)
|
|
3787
3795
|
], 64))), 256))
|
|
3788
3796
|
]),
|
|
@@ -3795,26 +3803,26 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3795
3803
|
}, [
|
|
3796
3804
|
N(a.$slots, (J, fe, te) => ({
|
|
3797
3805
|
name: fe,
|
|
3798
|
-
fn: _((
|
|
3806
|
+
fn: _((Re) => [
|
|
3799
3807
|
M(a.$slots, fe, { model: t.value }, void 0, !0)
|
|
3800
3808
|
])
|
|
3801
3809
|
}))
|
|
3802
3810
|
]), 1032, ["modelValue", "info"])
|
|
3803
3811
|
], !0)
|
|
3804
|
-
])) :
|
|
3812
|
+
])) : be("", !0),
|
|
3805
3813
|
M(a.$slots, "table-title", {
|
|
3806
3814
|
model: t.value,
|
|
3807
3815
|
queryInfo: x.value
|
|
3808
3816
|
}, void 0, !0),
|
|
3809
|
-
K("div",
|
|
3810
|
-
v.value ? (
|
|
3817
|
+
K("div", Qa, [
|
|
3818
|
+
v.value ? (m(), E(he, A({ key: 0 }, {
|
|
3811
3819
|
...a.$attrs,
|
|
3812
3820
|
...U(Ne)(
|
|
3813
3821
|
t.value.table,
|
|
3814
3822
|
(J) => !["dblclickType", "page"].includes(J)
|
|
3815
3823
|
)
|
|
3816
3824
|
}, {
|
|
3817
|
-
"summary-method": (J) => t.value.table["summary-method"](J, { fields: I.value, sums:
|
|
3825
|
+
"summary-method": (J) => t.value.table["summary-method"](J, { fields: I.value, sums: j.value }),
|
|
3818
3826
|
onSortChange: s[5] || (s[5] = (J) => {
|
|
3819
3827
|
var fe, te;
|
|
3820
3828
|
t.value.table.onSortChange(J, x.value), ((fe = J == null ? void 0 : J.column) == null ? void 0 : fe.sortable) === "custom" && ((te = t.value.table) == null || te.load());
|
|
@@ -3828,12 +3836,12 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3828
3836
|
]),
|
|
3829
3837
|
default: _(() => [
|
|
3830
3838
|
M(a.$slots, "default", {}, () => [
|
|
3831
|
-
(
|
|
3832
|
-
var te,
|
|
3833
|
-
return
|
|
3839
|
+
(m(!0), z(re, null, N(S.value, (J, fe) => {
|
|
3840
|
+
var te, Re, Je, rt;
|
|
3841
|
+
return m(), E(B, A({
|
|
3834
3842
|
prop: fe,
|
|
3835
3843
|
"column-key": fe
|
|
3836
|
-
}, { ref_for: !0 }, ((
|
|
3844
|
+
}, { ref_for: !0 }, ((Re = (te = t.value) == null ? void 0 : te.table) == null ? void 0 : Re["row-key"]) == fe ? {
|
|
3837
3845
|
...U(Ne)(J, (ee) => ["label", "width", "min-width", "align", "header-align", "formatter"].includes(ee))
|
|
3838
3846
|
} : {
|
|
3839
3847
|
...t.value.tableColumns,
|
|
@@ -3874,7 +3882,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3874
3882
|
return [
|
|
3875
3883
|
K("div", {
|
|
3876
3884
|
class: Qt(["control", (it = t.value.control) == null ? void 0 : it.class]),
|
|
3877
|
-
style:
|
|
3885
|
+
style: Ye((dt = t.value.control) == null ? void 0 : dt.style)
|
|
3878
3886
|
}, [
|
|
3879
3887
|
M(a.$slots, "control", {}, () => [
|
|
3880
3888
|
M(a.$slots, "control-left", {
|
|
@@ -3882,10 +3890,10 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3882
3890
|
column: ie,
|
|
3883
3891
|
index: ve
|
|
3884
3892
|
}, void 0, !0),
|
|
3885
|
-
(
|
|
3893
|
+
(m(!0), z(re, null, N(V(["view", "edit", "delete", "save"], ee, ie, ve, t.value), (nt, ot) => {
|
|
3886
3894
|
var pt;
|
|
3887
|
-
return
|
|
3888
|
-
ot == "default" ? (
|
|
3895
|
+
return m(), z(re, null, [
|
|
3896
|
+
ot == "default" ? (m(!0), z(re, { key: 0 }, N(nt, (c) => (m(), z(re, null, [
|
|
3889
3897
|
M(a.$slots, c.name + "-left", {
|
|
3890
3898
|
row: ee,
|
|
3891
3899
|
column: ie,
|
|
@@ -3897,7 +3905,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3897
3905
|
column: ie,
|
|
3898
3906
|
index: ve
|
|
3899
3907
|
}, () => [
|
|
3900
|
-
c.label ? (
|
|
3908
|
+
c.label ? (m(), E(U(He), A({
|
|
3901
3909
|
key: 0,
|
|
3902
3910
|
title: c.label
|
|
3903
3911
|
}, { ref_for: !0 }, c.attr, {
|
|
@@ -3907,35 +3915,35 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3907
3915
|
Ae(Me(c.label), 1)
|
|
3908
3916
|
]),
|
|
3909
3917
|
_: 2
|
|
3910
|
-
}, 1040, ["title", "onClick"])) : (
|
|
3918
|
+
}, 1040, ["title", "onClick"])) : (m(), E(U(He), A({
|
|
3911
3919
|
key: 1,
|
|
3912
3920
|
title: c.label
|
|
3913
3921
|
}, { ref_for: !0 }, c.attr, {
|
|
3914
3922
|
onClick: (oe) => c.func(ee, ie, ve, t.value)
|
|
3915
3923
|
}), null, 16, ["title", "onClick"]))
|
|
3916
|
-
], !0) :
|
|
3924
|
+
], !0) : be("", !0),
|
|
3917
3925
|
M(a.$slots, c.name + "-right", {
|
|
3918
3926
|
row: ee,
|
|
3919
3927
|
column: ie,
|
|
3920
3928
|
index: ve
|
|
3921
3929
|
}, void 0, !0)
|
|
3922
|
-
], 64))), 256)) : ot != null && ot.startsWith("dropdown") && ((pt = Se(ee, ie, ve, t.value)) != null && pt.auth()) ? (
|
|
3930
|
+
], 64))), 256)) : ot != null && ot.startsWith("dropdown") && ((pt = Se(ee, ie, ve, t.value)) != null && pt.auth()) ? (m(), E(R, A({
|
|
3923
3931
|
key: 1,
|
|
3924
3932
|
ref_for: !0
|
|
3925
3933
|
}, Se(ee, ie, ve, t.value)), {
|
|
3926
3934
|
dropdown: _(() => [
|
|
3927
|
-
|
|
3935
|
+
se(q, null, {
|
|
3928
3936
|
default: _(() => [
|
|
3929
|
-
(
|
|
3937
|
+
(m(!0), z(re, null, N(nt, (c) => {
|
|
3930
3938
|
var oe, ce, Be;
|
|
3931
|
-
return
|
|
3939
|
+
return m(), z(re, null, [
|
|
3932
3940
|
a.$slots[c.name + "-left"] ? M(a.$slots, c.name + "-left", {
|
|
3933
3941
|
key: 0,
|
|
3934
3942
|
row: ee,
|
|
3935
3943
|
column: ie,
|
|
3936
3944
|
index: ve
|
|
3937
|
-
}, void 0, !0) :
|
|
3938
|
-
c.attr.auth() ? (
|
|
3945
|
+
}, void 0, !0) : be("", !0),
|
|
3946
|
+
c.attr.auth() ? (m(), E(C, A({
|
|
3939
3947
|
key: 1,
|
|
3940
3948
|
ref_for: !0
|
|
3941
3949
|
}, {
|
|
@@ -3949,7 +3957,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3949
3957
|
column: ie,
|
|
3950
3958
|
index: ve
|
|
3951
3959
|
}, () => [
|
|
3952
|
-
c.label ? (
|
|
3960
|
+
c.label ? (m(), E(U(He), A({
|
|
3953
3961
|
key: 0,
|
|
3954
3962
|
title: c.label
|
|
3955
3963
|
}, { ref_for: !0 }, c.attr, {
|
|
@@ -3959,7 +3967,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3959
3967
|
Ae(Me(c.label), 1)
|
|
3960
3968
|
]),
|
|
3961
3969
|
_: 2
|
|
3962
|
-
}, 1040, ["title", "onClick"])) : (
|
|
3970
|
+
}, 1040, ["title", "onClick"])) : (m(), E(U(He), A({
|
|
3963
3971
|
key: 1,
|
|
3964
3972
|
title: c.label
|
|
3965
3973
|
}, { ref_for: !0 }, c.attr, {
|
|
@@ -3968,13 +3976,13 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3968
3976
|
], !0)
|
|
3969
3977
|
]),
|
|
3970
3978
|
_: 2
|
|
3971
|
-
}, 1040)) :
|
|
3979
|
+
}, 1040)) : be("", !0),
|
|
3972
3980
|
a.$slots[c.name + "-right"] ? M(a.$slots, c.name + "-right", {
|
|
3973
3981
|
key: 2,
|
|
3974
3982
|
row: ee,
|
|
3975
3983
|
column: ie,
|
|
3976
3984
|
index: ve
|
|
3977
|
-
}, void 0, !0) :
|
|
3985
|
+
}, void 0, !0) : be("", !0)
|
|
3978
3986
|
], 64);
|
|
3979
3987
|
}), 256))
|
|
3980
3988
|
]),
|
|
@@ -3988,9 +3996,9 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
3988
3996
|
];
|
|
3989
3997
|
}),
|
|
3990
3998
|
_: 2
|
|
3991
|
-
}, 1040)) : (
|
|
3999
|
+
}, 1040)) : (m(), E(g, { key: 2 }, {
|
|
3992
4000
|
default: _(() => [
|
|
3993
|
-
(
|
|
4001
|
+
(m(!0), z(re, null, N(nt, (c) => (m(), z(re, null, [
|
|
3994
4002
|
M(a.$slots, c.name + "-left", {
|
|
3995
4003
|
row: ee,
|
|
3996
4004
|
column: ie,
|
|
@@ -4002,7 +4010,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4002
4010
|
column: ie,
|
|
4003
4011
|
index: ve
|
|
4004
4012
|
}, () => [
|
|
4005
|
-
c.label ? (
|
|
4013
|
+
c.label ? (m(), E(U(He), A({
|
|
4006
4014
|
key: 0,
|
|
4007
4015
|
title: c.label
|
|
4008
4016
|
}, { ref_for: !0 }, c.attr, {
|
|
@@ -4012,13 +4020,13 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4012
4020
|
Ae(Me(c.label), 1)
|
|
4013
4021
|
]),
|
|
4014
4022
|
_: 2
|
|
4015
|
-
}, 1040, ["title", "onClick"])) : (
|
|
4023
|
+
}, 1040, ["title", "onClick"])) : (m(), E(U(He), A({
|
|
4016
4024
|
key: 1,
|
|
4017
4025
|
title: c.label
|
|
4018
4026
|
}, { ref_for: !0 }, c.attr, {
|
|
4019
4027
|
onClick: (oe) => c.func(ee, ie, ve, t.value)
|
|
4020
4028
|
}), null, 16, ["title", "onClick"]))
|
|
4021
|
-
], !0) :
|
|
4029
|
+
], !0) : be("", !0),
|
|
4022
4030
|
M(a.$slots, c.name + "-right", {
|
|
4023
4031
|
row: ee,
|
|
4024
4032
|
column: ie,
|
|
@@ -4043,7 +4051,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4043
4051
|
} : J.type != "selection" && J.type != "index" && ((rt = (Je = t.value) == null ? void 0 : Je.table) == null ? void 0 : rt["row-key"]) != fe ? {
|
|
4044
4052
|
name: "default",
|
|
4045
4053
|
fn: _(({ row: ee, column: ie, $index: ve }) => [
|
|
4046
|
-
|
|
4054
|
+
Ue(J, ee, ie, ve) && ve != -1 ? M(a.$slots, `${fe}`, {
|
|
4047
4055
|
key: 0,
|
|
4048
4056
|
row: ee,
|
|
4049
4057
|
column: ie,
|
|
@@ -4051,7 +4059,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4051
4059
|
}, () => {
|
|
4052
4060
|
var it;
|
|
4053
4061
|
return [
|
|
4054
|
-
(
|
|
4062
|
+
(m(), E(ht, {
|
|
4055
4063
|
modelValue: ee[fe],
|
|
4056
4064
|
"onUpdate:modelValue": (dt) => ee[fe] = dt,
|
|
4057
4065
|
item: J == null ? void 0 : J.table(ee, ie, ve),
|
|
@@ -4082,12 +4090,12 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4082
4090
|
index: ve
|
|
4083
4091
|
}, () => [
|
|
4084
4092
|
K("div", {
|
|
4085
|
-
style:
|
|
4093
|
+
style: Ye([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, J == null ? void 0 : J.style]),
|
|
4086
4094
|
innerHTML: Te(
|
|
4087
4095
|
J,
|
|
4088
4096
|
typeof ie.formatter == "function" ? ie.formatter(ee, ie, ee[fe], ve) : ee[fe]
|
|
4089
4097
|
)
|
|
4090
|
-
}, null, 12,
|
|
4098
|
+
}, null, 12, Za)
|
|
4091
4099
|
], !0)
|
|
4092
4100
|
]),
|
|
4093
4101
|
key: "2"
|
|
@@ -4097,9 +4105,9 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4097
4105
|
], !0)
|
|
4098
4106
|
]),
|
|
4099
4107
|
_: 3
|
|
4100
|
-
}, 16, ["summary-method"])) :
|
|
4101
|
-
(Ct = (_t = (st = t.value) == null ? void 0 : st.table) == null ? void 0 : _t.page) != null && Ct.hidden ?
|
|
4102
|
-
|
|
4108
|
+
}, 16, ["summary-method"])) : be("", !0),
|
|
4109
|
+
(Ct = (_t = (st = t.value) == null ? void 0 : st.table) == null ? void 0 : _t.page) != null && Ct.hidden ? be("", !0) : M(a.$slots, "page", { key: 1 }, () => [
|
|
4110
|
+
se(we, A({
|
|
4103
4111
|
"page-size": t.value.table.page.pageSize,
|
|
4104
4112
|
"onUpdate:pageSize": s[6] || (s[6] = (J) => t.value.table.page.pageSize = J),
|
|
4105
4113
|
"current-page": t.value.table.page.currentPage,
|
|
@@ -4116,7 +4124,7 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4116
4124
|
], 64);
|
|
4117
4125
|
};
|
|
4118
4126
|
}
|
|
4119
|
-
}),
|
|
4127
|
+
}), Ka = /* @__PURE__ */ et(Ja, [["__scopeId", "data-v-32011496"]]), er = { class: "g-tree-table" }, tr = { class: "g-tree-container" }, lr = { class: "g-tree-table-container" }, ar = /* @__PURE__ */ Object.assign({
|
|
4120
4128
|
name: "g-tree-table",
|
|
4121
4129
|
inheritAttrs: !1
|
|
4122
4130
|
}, {
|
|
@@ -4127,10 +4135,10 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4127
4135
|
},
|
|
4128
4136
|
emits: /* @__PURE__ */ at(["load"], ["update:modelValue"]),
|
|
4129
4137
|
setup(r, { emit: u }) {
|
|
4130
|
-
var p, L,
|
|
4138
|
+
var p, L, j, I;
|
|
4131
4139
|
const e = u, l = lt(r, "modelValue"), n = It(), i = ae(
|
|
4132
4140
|
typeof ((p = n == null ? void 0 : n.tree) == null ? void 0 : p.width) == "number" ? `${n.tree.width}px` : ((L = n == null ? void 0 : n.tree) == null ? void 0 : L.width) || "180px"
|
|
4133
|
-
), t = ae(((
|
|
4141
|
+
), t = ae(((j = n == null ? void 0 : n.tree) == null ? void 0 : j.search) === void 0 ? !0 : (I = n == null ? void 0 : n.tree) == null ? void 0 : I.search), f = ae({}), x = ae(""), v = ae(null), y = (k, G) => {
|
|
4134
4142
|
var X, ne;
|
|
4135
4143
|
if (!k) return !0;
|
|
4136
4144
|
const Z = ((ne = (X = n.tree) == null ? void 0 : X.props) == null ? void 0 : ne.label) || "label";
|
|
@@ -4143,22 +4151,22 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4143
4151
|
return Zt(x, (k) => {
|
|
4144
4152
|
v.value.filter(k);
|
|
4145
4153
|
}), (k, G) => {
|
|
4146
|
-
const Z =
|
|
4147
|
-
return
|
|
4154
|
+
const Z = F("el-input"), X = F("el-tree"), ne = F("g-table");
|
|
4155
|
+
return m(), z("div", er, [
|
|
4148
4156
|
K("div", {
|
|
4149
4157
|
class: "g-tree-left",
|
|
4150
|
-
style:
|
|
4158
|
+
style: Ye({ width: i.value })
|
|
4151
4159
|
}, [
|
|
4152
|
-
t.value ? (
|
|
4160
|
+
t.value ? (m(), E(Z, {
|
|
4153
4161
|
key: 0,
|
|
4154
4162
|
modelValue: x.value,
|
|
4155
|
-
"onUpdate:modelValue": G[0] || (G[0] = (
|
|
4163
|
+
"onUpdate:modelValue": G[0] || (G[0] = (ue) => x.value = ue),
|
|
4156
4164
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
4157
4165
|
placeholder: "输入节点查询",
|
|
4158
4166
|
clearable: ""
|
|
4159
|
-
}, null, 8, ["modelValue"])) :
|
|
4160
|
-
K("div",
|
|
4161
|
-
|
|
4167
|
+
}, null, 8, ["modelValue"])) : be("", !0),
|
|
4168
|
+
K("div", tr, [
|
|
4169
|
+
se(X, A({
|
|
4162
4170
|
style: { width: i.value },
|
|
4163
4171
|
"filter-node-method": y,
|
|
4164
4172
|
"expand-on-click-node": !1,
|
|
@@ -4166,17 +4174,17 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4166
4174
|
ref: v,
|
|
4167
4175
|
onNodeClick: d
|
|
4168
4176
|
}, k.$attrs.tree), ge({
|
|
4169
|
-
default: _(({ node:
|
|
4177
|
+
default: _(({ node: ue, data: pe }) => [
|
|
4170
4178
|
M(k.$slots, "tree", {
|
|
4171
|
-
node:
|
|
4179
|
+
node: ue,
|
|
4172
4180
|
data: pe
|
|
4173
4181
|
}, () => [
|
|
4174
|
-
K("span", null, Me(
|
|
4182
|
+
K("span", null, Me(ue.label), 1)
|
|
4175
4183
|
], !0)
|
|
4176
4184
|
]),
|
|
4177
4185
|
_: 2
|
|
4178
4186
|
}, [
|
|
4179
|
-
N(k.$slots, (
|
|
4187
|
+
N(k.$slots, (ue, pe, Se) => ({
|
|
4180
4188
|
name: pe,
|
|
4181
4189
|
fn: _((De) => [
|
|
4182
4190
|
M(k.$slots, pe, { data: De }, void 0, !0)
|
|
@@ -4185,15 +4193,15 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4185
4193
|
]), 1040, ["style"])
|
|
4186
4194
|
])
|
|
4187
4195
|
], 4),
|
|
4188
|
-
K("div",
|
|
4189
|
-
|
|
4196
|
+
K("div", lr, [
|
|
4197
|
+
se(ne, A({
|
|
4190
4198
|
modelValue: l.value,
|
|
4191
|
-
"onUpdate:modelValue": G[1] || (G[1] = (
|
|
4199
|
+
"onUpdate:modelValue": G[1] || (G[1] = (ue) => l.value = ue)
|
|
4192
4200
|
}, k.$attrs, {
|
|
4193
4201
|
onLoad: o,
|
|
4194
4202
|
node: f.value
|
|
4195
4203
|
}), ge({ _: 2 }, [
|
|
4196
|
-
N(k.$slots, (
|
|
4204
|
+
N(k.$slots, (ue, pe, Se) => ({
|
|
4197
4205
|
name: pe,
|
|
4198
4206
|
fn: _((De) => [
|
|
4199
4207
|
M(k.$slots, pe, { data: De }, void 0, !0)
|
|
@@ -4204,14 +4212,14 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4204
4212
|
]);
|
|
4205
4213
|
};
|
|
4206
4214
|
}
|
|
4207
|
-
}),
|
|
4215
|
+
}), rr = /* @__PURE__ */ et(ar, [["__scopeId", "data-v-30eb4f60"]]), nr = {
|
|
4208
4216
|
key: 0,
|
|
4209
4217
|
class: "op-group"
|
|
4210
|
-
},
|
|
4218
|
+
}, or = {
|
|
4211
4219
|
key: 1,
|
|
4212
4220
|
class: "op-items",
|
|
4213
4221
|
style: { width: "100%", height: "100%" }
|
|
4214
|
-
},
|
|
4222
|
+
}, ur = ["title"], Pt = "100px", sr = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
4215
4223
|
__name: "g-select-option",
|
|
4216
4224
|
props: {
|
|
4217
4225
|
columns: {
|
|
@@ -4233,42 +4241,42 @@ const Ga = /* @__PURE__ */ ol(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
|
4233
4241
|
},
|
|
4234
4242
|
setup(r) {
|
|
4235
4243
|
const u = r;
|
|
4236
|
-
return (e, l) => u.title ? (
|
|
4237
|
-
(
|
|
4238
|
-
style:
|
|
4244
|
+
return (e, l) => u.title ? (m(), z("div", nr, [
|
|
4245
|
+
(m(!0), z(re, null, N(u.columns, (n) => (m(), z("span", {
|
|
4246
|
+
style: Ye({ width: (n == null ? void 0 : n.width) || Pt, ...n == null ? void 0 : n.titleStyle, textAlign: (n == null ? void 0 : n.align) || "center" }),
|
|
4239
4247
|
key: n.key
|
|
4240
4248
|
}, [
|
|
4241
4249
|
M(e.$slots, `${r.t}-title-${n.key}`, { col: n }, () => [
|
|
4242
4250
|
Ae(Me(n.label), 1)
|
|
4243
4251
|
], !0)
|
|
4244
4252
|
], 4))), 128))
|
|
4245
|
-
])) : (
|
|
4246
|
-
(
|
|
4247
|
-
style:
|
|
4253
|
+
])) : (m(), z("div", or, [
|
|
4254
|
+
(m(!0), z(re, null, N(u.columns, (n) => (m(), z("span", {
|
|
4255
|
+
style: Ye({ width: (n == null ? void 0 : n.width) || Pt, textAlign: (n == null ? void 0 : n.align) || "center", ...n == null ? void 0 : n.style }),
|
|
4248
4256
|
key: n.key,
|
|
4249
4257
|
title: r.data[n.key]
|
|
4250
4258
|
}, [
|
|
4251
4259
|
M(e.$slots, `${r.t}-option-${n.key}`, { col: n }, () => [
|
|
4252
4260
|
Ae(Me(r.data[n.key] ?? "-"), 1)
|
|
4253
4261
|
], !0)
|
|
4254
|
-
], 12,
|
|
4262
|
+
], 12, ur))), 128))
|
|
4255
4263
|
]));
|
|
4256
4264
|
}
|
|
4257
|
-
}),
|
|
4265
|
+
}), ir = /* @__PURE__ */ et(sr, [["__scopeId", "data-v-c0ac6b77"]]), dr = Object.freeze({}), Ft = [Ka, dl, rr, ir, jt];
|
|
4258
4266
|
let Dt = {};
|
|
4259
|
-
const
|
|
4267
|
+
const Cr = {
|
|
4260
4268
|
install: (r, u = {}) => {
|
|
4261
|
-
Dt = Object.freeze({ ...
|
|
4269
|
+
Dt = Object.freeze({ ...dr, ...u }), Ft.forEach((e) => {
|
|
4262
4270
|
r.component(e.name, e);
|
|
4263
4271
|
}), r.provide("options", Dt), r.config.globalProperties.$openModal = Lt, r.config.globalProperties.$open = pl;
|
|
4264
4272
|
}
|
|
4265
|
-
},
|
|
4273
|
+
}, cr = (r) => ({ dialog: gl, drawer: yl })[r] || null, Lt = (r = {}, u = "dialog") => {
|
|
4266
4274
|
if (typeof document > "u") return () => {
|
|
4267
4275
|
};
|
|
4268
4276
|
const e = document.createElement("div");
|
|
4269
4277
|
let l = () => {
|
|
4270
4278
|
};
|
|
4271
|
-
const n =
|
|
4279
|
+
const n = cr(u);
|
|
4272
4280
|
if (!n) return () => {
|
|
4273
4281
|
};
|
|
4274
4282
|
const i = ae(!0), t = Jt({
|
|
@@ -4300,7 +4308,7 @@ const xr = {
|
|
|
4300
4308
|
mt();
|
|
4301
4309
|
}
|
|
4302
4310
|
});
|
|
4303
|
-
return
|
|
4311
|
+
return Ft.forEach((f) => {
|
|
4304
4312
|
t.component(f.name, f);
|
|
4305
4313
|
}), t.provide("options", Dt), t.use(Nt, { locale: nl }), document.body.appendChild(e), t.mount(e), l;
|
|
4306
4314
|
}, pl = (r = {}) => {
|
|
@@ -4326,17 +4334,17 @@ const xr = {
|
|
|
4326
4334
|
"close-on-click-modal": !1,
|
|
4327
4335
|
...t
|
|
4328
4336
|
};
|
|
4329
|
-
return i && (f.onClose = i), () => _e(
|
|
4337
|
+
return i && (f.onClose = i), () => _e(jt, f, r.slots);
|
|
4330
4338
|
},
|
|
4331
4339
|
mounted: () => {
|
|
4332
4340
|
mt();
|
|
4333
4341
|
}
|
|
4334
4342
|
});
|
|
4335
|
-
return
|
|
4343
|
+
return Ft.forEach((i) => {
|
|
4336
4344
|
n.component(i.name, i);
|
|
4337
4345
|
}), n.provide("options", Dt), n.use(Nt, { locale: nl }), document.body.appendChild(u), n.mount(u), e;
|
|
4338
4346
|
};
|
|
4339
|
-
function
|
|
4347
|
+
function fr(r, u = window.innerWidth) {
|
|
4340
4348
|
if (typeof r == "number")
|
|
4341
4349
|
return r;
|
|
4342
4350
|
if (r.endsWith("px"))
|
|
@@ -4358,7 +4366,7 @@ function vr(r, u = window.innerWidth) {
|
|
|
4358
4366
|
throw new Error("Invalid calc expression");
|
|
4359
4367
|
};
|
|
4360
4368
|
const n = r.slice(5, -1).trim();
|
|
4361
|
-
return i(n.replace(/([0-9.]+)([a-z%]+)/g, (f, x, v) =>
|
|
4369
|
+
return i(n.replace(/([0-9.]+)([a-z%]+)/g, (f, x, v) => fr(x + v, u)));
|
|
4362
4370
|
}
|
|
4363
4371
|
throw new Error("Unsupported unit in value: " + r);
|
|
4364
4372
|
}
|
|
@@ -4374,12 +4382,12 @@ function Ne(r, u = (e, l) => l != null) {
|
|
|
4374
4382
|
r.hasOwnProperty(l) && u(l, r[l]) && (e[l] = r[l]);
|
|
4375
4383
|
return e;
|
|
4376
4384
|
}
|
|
4377
|
-
function
|
|
4385
|
+
function vr(r, u, e = "value", l = "label", n = "children") {
|
|
4378
4386
|
for (const i of r) {
|
|
4379
4387
|
if (i[e] === u)
|
|
4380
4388
|
return i[l];
|
|
4381
4389
|
if (i[n] && i[n].length > 0) {
|
|
4382
|
-
const t =
|
|
4390
|
+
const t = vr(i[n], u, e, l, n);
|
|
4383
4391
|
if (t)
|
|
4384
4392
|
return t;
|
|
4385
4393
|
}
|
|
@@ -4405,7 +4413,7 @@ function Ht(r) {
|
|
|
4405
4413
|
}
|
|
4406
4414
|
return n + i.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
4407
4415
|
}
|
|
4408
|
-
function
|
|
4416
|
+
function pr(r, u = 2, e = !1) {
|
|
4409
4417
|
let l = Number(r);
|
|
4410
4418
|
if (isNaN(l) || !isFinite(l))
|
|
4411
4419
|
return "0.00";
|
|
@@ -4416,7 +4424,7 @@ function mr(r, u = 2, e = !1) {
|
|
|
4416
4424
|
const [t, f] = i.split("."), x = t.replace(/\B(?=(\d{3})+(?!\d))/g, ","), v = f ? `${x}.${f}` : x;
|
|
4417
4425
|
return n ? `-${v}` : v;
|
|
4418
4426
|
}
|
|
4419
|
-
function
|
|
4427
|
+
function mr(r, u) {
|
|
4420
4428
|
let e = null;
|
|
4421
4429
|
return function(...l) {
|
|
4422
4430
|
e && clearTimeout(e), e = setTimeout(() => {
|
|
@@ -4424,7 +4432,7 @@ function hr(r, u) {
|
|
|
4424
4432
|
}, u);
|
|
4425
4433
|
};
|
|
4426
4434
|
}
|
|
4427
|
-
function
|
|
4435
|
+
function xr(r, u) {
|
|
4428
4436
|
let e = null;
|
|
4429
4437
|
return function(...l) {
|
|
4430
4438
|
e || (e = setTimeout(() => {
|
|
@@ -4466,10 +4474,10 @@ const xe = {
|
|
|
4466
4474
|
const r = document.querySelector(".el-dialog");
|
|
4467
4475
|
if (!r || r.querySelector(".dialog-resize-handle"))
|
|
4468
4476
|
return;
|
|
4469
|
-
const u =
|
|
4470
|
-
r.appendChild(u),
|
|
4477
|
+
const u = hr();
|
|
4478
|
+
r.appendChild(u), yr(r), gr(r, u);
|
|
4471
4479
|
});
|
|
4472
|
-
},
|
|
4480
|
+
}, hr = () => {
|
|
4473
4481
|
const r = document.createElement("div");
|
|
4474
4482
|
return Object.assign(r.style, {
|
|
4475
4483
|
position: "absolute",
|
|
@@ -4481,7 +4489,7 @@ const xe = {
|
|
|
4481
4489
|
cursor: "nwse-resize",
|
|
4482
4490
|
zIndex: "999999999999"
|
|
4483
4491
|
}), r.className = "dialog-resize-handle", r;
|
|
4484
|
-
},
|
|
4492
|
+
}, yr = (r) => {
|
|
4485
4493
|
Object.assign(r.style, {
|
|
4486
4494
|
transition: "none",
|
|
4487
4495
|
minWidth: "300px",
|
|
@@ -4489,7 +4497,7 @@ const xe = {
|
|
|
4489
4497
|
resize: "none"
|
|
4490
4498
|
// 防止与原生resize冲突
|
|
4491
4499
|
});
|
|
4492
|
-
},
|
|
4500
|
+
}, gr = (r, u) => {
|
|
4493
4501
|
let e = !1, l, n, i, t;
|
|
4494
4502
|
const f = (y) => {
|
|
4495
4503
|
y.preventDefault(), e = !0, l = y.clientX, n = y.clientY, i = parseInt(document.defaultView.getComputedStyle(r).width), t = parseInt(document.defaultView.getComputedStyle(r).height), document.addEventListener("mousemove", x), document.addEventListener("mouseup", v);
|
|
@@ -4505,15 +4513,15 @@ const xe = {
|
|
|
4505
4513
|
export {
|
|
4506
4514
|
xe as CT,
|
|
4507
4515
|
mt as bindResize,
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4516
|
+
fr as convertToPx,
|
|
4517
|
+
mr as debounce,
|
|
4518
|
+
Cr as default,
|
|
4511
4519
|
Ne as filterObject,
|
|
4512
|
-
|
|
4513
|
-
|
|
4520
|
+
vr as findTreeLabelByValue,
|
|
4521
|
+
pr as formatAmount,
|
|
4514
4522
|
qe as mergeObjects,
|
|
4515
4523
|
Ht as moneyToChinese,
|
|
4516
4524
|
pl as open,
|
|
4517
4525
|
Lt as openModal,
|
|
4518
|
-
|
|
4526
|
+
xr as throttle
|
|
4519
4527
|
};
|