vue-2024-ui 0.2.86 → 0.2.88
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 +908 -905
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Nt, { dayjs as
|
|
2
|
-
import { ref as ae, useModel as lt, nextTick as Ke, onMounted as yt, computed as Fe, resolveComponent as F, openBlock as
|
|
3
|
-
import { Plus as
|
|
1
|
+
import Nt, { dayjs as yl, ElForm as Mt, ElButtonGroup as St, ElButton as je, ElPopover as At, ElIcon as Yt, ElMessage as ut, ElMessageBox as Wt, ElDrawer as gl, ElDialog as bl } from "element-plus";
|
|
2
|
+
import { ref as ae, useModel as lt, nextTick as Ke, onMounted as yt, computed as Fe, resolveComponent as F, openBlock as m, createElementBlock as z, Fragment as re, createElementVNode as Z, createBlock as E, createCommentVNode as be, unref as L, mergeProps as A, withCtx as _, renderSlot as x, 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 $l, withDirectives as wl, vShow as kl, h as _e, useAttrs as It, onUnmounted as _l, onBeforeUnmount as Cl, normalizeClass as Qt, watchEffect as xl, onBeforeMount as Ml, watch as Zt, createApp as Jt } from "vue";
|
|
3
|
+
import { Plus as Sl, ZoomIn as Tl, Delete as Kt, Search as Vl, Refresh as el, More as El, CircleClose as Dl, CircleCheckFilled as Ol, CircleCheck as zt, Minus as Il, Close as ql, Switch as tl, FullScreen as Al, InfoFilled as ll, Download as al, DocumentCopy as Yl, Setting as zl, CirclePlus as Ul, Edit as Ll, View as jl } from "@element-plus/icons-vue";
|
|
4
4
|
import rl from "sortablejs";
|
|
5
5
|
import { Dexie as Hl } from "dexie";
|
|
6
6
|
var nl = {
|
|
@@ -178,51 +178,51 @@ var nl = {
|
|
|
178
178
|
indicator: "幻灯片切换至索引 {index}"
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
},
|
|
181
|
+
}, Fl = 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
|
}
|
|
185
185
|
var ul = { exports: {} };
|
|
186
|
-
(function(r,
|
|
186
|
+
(function(r, u) {
|
|
187
187
|
(function(e, l) {
|
|
188
188
|
r.exports = l();
|
|
189
|
-
})(
|
|
190
|
-
var e = 1e3, l = 6e4, n = 36e5, d = "millisecond", t = "second", c = "minute", T = "hour", v = "day",
|
|
189
|
+
})(Fl, function() {
|
|
190
|
+
var e = 1e3, l = 6e4, n = 36e5, d = "millisecond", t = "second", c = "minute", T = "hour", v = "day", p = "week", f = "month", o = "quarter", y = "year", U = "date", j = "Invalid Date", D = /^(\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, X = { 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
|
} }, J = 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
|
}, ee = { s: J, z: function(w) {
|
|
197
|
-
var $ = -w.utcOffset(), b = Math.abs($),
|
|
198
|
-
return ($ <= 0 ? "+" : "-") + J(
|
|
197
|
+
var $ = -w.utcOffset(), b = Math.abs($), h = Math.floor(b / 60), S = b % 60;
|
|
198
|
+
return ($ <= 0 ? "+" : "-") + J(h, 2, "0") + ":" + J(S, 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()), S = $.clone().add(h, f), O = b - S < 0, I = $.clone().add(h + (O ? -1 : 1), f);
|
|
202
|
+
return +(-(h + (b - S) / (O ? S - I : I - S)) || 0);
|
|
203
203
|
}, a: function(w) {
|
|
204
204
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
|
205
205
|
}, p: function(w) {
|
|
206
|
-
return { M: f, y
|
|
206
|
+
return { M: f, y, w: p, d: v, D: U, h: T, m: c, s: t, ms: d, Q: o }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
207
207
|
}, u: function(w) {
|
|
208
208
|
return w === void 0;
|
|
209
209
|
} }, ne = "en", ue = {};
|
|
210
210
|
ue[ne] = X;
|
|
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 S;
|
|
215
215
|
if (!$) return ne;
|
|
216
216
|
if (typeof $ == "string") {
|
|
217
|
-
var
|
|
218
|
-
ue[
|
|
219
|
-
var
|
|
220
|
-
if (!S &&
|
|
217
|
+
var O = $.toLowerCase();
|
|
218
|
+
ue[O] && (S = O), b && (ue[O] = b, S = O);
|
|
219
|
+
var I = $.split("-");
|
|
220
|
+
if (!S && I.length > 1) return w(I[0]);
|
|
221
221
|
} else {
|
|
222
222
|
var Y = $.name;
|
|
223
223
|
ue[Y] = $, S = Y;
|
|
224
224
|
}
|
|
225
|
-
return !
|
|
225
|
+
return !h && S && (ne = S), S || !h && ne;
|
|
226
226
|
}, me = function(w, $) {
|
|
227
227
|
if (Se(w)) return w.clone();
|
|
228
228
|
var b = typeof $ == "object" ? $ : {};
|
|
@@ -237,16 +237,16 @@ var ul = { exports: {} };
|
|
|
237
237
|
}
|
|
238
238
|
var $ = w.prototype;
|
|
239
239
|
return $.parse = function(b) {
|
|
240
|
-
this.$d = function(
|
|
241
|
-
var S =
|
|
240
|
+
this.$d = function(h) {
|
|
241
|
+
var S = h.date, O = h.utc;
|
|
242
242
|
if (S === null) return /* @__PURE__ */ new Date(NaN);
|
|
243
243
|
if (P.u(S)) return /* @__PURE__ */ new Date();
|
|
244
244
|
if (S instanceof Date) return new Date(S);
|
|
245
245
|
if (typeof S == "string" && !/Z$/i.test(S)) {
|
|
246
|
-
var
|
|
247
|
-
if (
|
|
248
|
-
var Y =
|
|
249
|
-
return
|
|
246
|
+
var I = S.match(D);
|
|
247
|
+
if (I) {
|
|
248
|
+
var Y = I[2] - 1 || 0, le = (I[7] || "0").substring(0, 3);
|
|
249
|
+
return O ? new Date(Date.UTC(I[1], Y, I[3] || 1, I[4] || 0, I[5] || 0, I[6] || 0, le)) : new Date(I[1], Y, I[3] || 1, I[4] || 0, I[5] || 0, I[6] || 0, le);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
return new Date(S);
|
|
@@ -257,37 +257,37 @@ 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 S = 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) <= S && S <= 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, S) {
|
|
269
|
+
return P.u(b) ? this[h] : this.set(S, 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 S = this,
|
|
274
|
+
}, $.startOf = function(b, h) {
|
|
275
|
+
var S = this, O = !!P.u(h) || h, I = P.p(b), Y = function(Ie, V) {
|
|
276
276
|
var M = P.w(S.$u ? Date.UTC(S.$y, V, Ie) : new Date(S.$y, V, Ie), S);
|
|
277
|
-
return
|
|
277
|
+
return O ? M : M.endOf(v);
|
|
278
278
|
}, le = function(Ie, V) {
|
|
279
|
-
return P.w(S.toDate()[Ie].apply(S.toDate("s"), (
|
|
279
|
+
return P.w(S.toDate()[Ie].apply(S.toDate("s"), (O ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(V)), S);
|
|
280
280
|
}, de = this.$W, ye = this.$M, W = this.$D, G = "set" + (this.$u ? "UTC" : "");
|
|
281
|
-
switch (
|
|
282
|
-
case
|
|
283
|
-
return
|
|
281
|
+
switch (I) {
|
|
282
|
+
case y:
|
|
283
|
+
return O ? Y(1, 0) : Y(31, 11);
|
|
284
284
|
case f:
|
|
285
|
-
return
|
|
286
|
-
case
|
|
285
|
+
return O ? Y(1, ye) : Y(0, ye + 1);
|
|
286
|
+
case p:
|
|
287
287
|
var Ve = this.$locale().weekStart || 0, ke = (de < Ve ? de + 7 : de) - Ve;
|
|
288
|
-
return Y(
|
|
288
|
+
return Y(O ? W - ke : W + (6 - ke), ye);
|
|
289
289
|
case v:
|
|
290
|
-
case
|
|
290
|
+
case U:
|
|
291
291
|
return le(G + "Hours", 0);
|
|
292
292
|
case T:
|
|
293
293
|
return le(G + "Minutes", 1);
|
|
@@ -300,50 +300,50 @@ var ul = { exports: {} };
|
|
|
300
300
|
}
|
|
301
301
|
}, $.endOf = function(b) {
|
|
302
302
|
return this.startOf(b, !1);
|
|
303
|
-
}, $.$set = function(b,
|
|
304
|
-
var S,
|
|
305
|
-
if (
|
|
306
|
-
var de = this.clone().set(
|
|
307
|
-
de.$d[Y](le), de.init(), this.$d = de.set(
|
|
303
|
+
}, $.$set = function(b, h) {
|
|
304
|
+
var S, O = P.p(b), I = "set" + (this.$u ? "UTC" : ""), Y = (S = {}, S[v] = I + "Date", S[U] = I + "Date", S[f] = I + "Month", S[y] = I + "FullYear", S[T] = I + "Hours", S[c] = I + "Minutes", S[t] = I + "Seconds", S[d] = I + "Milliseconds", S)[O], le = O === v ? this.$D + (h - this.$W) : h;
|
|
305
|
+
if (O === f || O === y) {
|
|
306
|
+
var de = this.clone().set(U, 1);
|
|
307
|
+
de.$d[Y](le), de.init(), this.$d = de.set(U, 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 S,
|
|
314
|
+
}, $.add = function(b, h) {
|
|
315
|
+
var S, O = this;
|
|
316
316
|
b = Number(b);
|
|
317
|
-
var
|
|
318
|
-
var W = me(
|
|
319
|
-
return P.w(W.date(W.date() + Math.round(ye * b)),
|
|
317
|
+
var I = P.p(h), Y = function(ye) {
|
|
318
|
+
var W = me(O);
|
|
319
|
+
return P.w(W.date(W.date() + Math.round(ye * b)), O);
|
|
320
320
|
};
|
|
321
|
-
if (
|
|
322
|
-
if (
|
|
323
|
-
if (
|
|
324
|
-
if (
|
|
325
|
-
var le = (S = {}, S[c] = l, S[T] = n, S[t] = e, S)[
|
|
321
|
+
if (I === f) return this.set(f, this.$M + b);
|
|
322
|
+
if (I === y) return this.set(y, this.$y + b);
|
|
323
|
+
if (I === v) return Y(1);
|
|
324
|
+
if (I === p) return Y(7);
|
|
325
|
+
var le = (S = {}, S[c] = l, S[T] = n, S[t] = e, S)[I] || 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 S.invalidDate ||
|
|
332
|
-
var
|
|
333
|
-
return V && (V[M] || V(
|
|
330
|
+
var h = this, S = this.$locale();
|
|
331
|
+
if (!this.isValid()) return S.invalidDate || j;
|
|
332
|
+
var O = b || "YYYY-MM-DDTHH:mm:ssZ", I = P.z(this), Y = this.$H, le = this.$m, de = this.$M, ye = S.weekdays, W = S.months, G = S.meridiem, Ve = function(V, M, H, Ce) {
|
|
333
|
+
return V && (V[M] || V(h, O)) || H[M].slice(0, Ce);
|
|
334
334
|
}, ke = function(V) {
|
|
335
335
|
return P.s(Y % 12 || 12, V, "0");
|
|
336
|
-
}, Ie = G || function(V, M,
|
|
336
|
+
}, Ie = G || function(V, M, H) {
|
|
337
337
|
var Ce = V < 12 ? "AM" : "PM";
|
|
338
|
-
return
|
|
338
|
+
return H ? Ce.toLowerCase() : Ce;
|
|
339
339
|
};
|
|
340
|
-
return
|
|
341
|
-
return M || function(
|
|
342
|
-
switch (
|
|
340
|
+
return O.replace(k, function(V, M) {
|
|
341
|
+
return M || function(H) {
|
|
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(S.weekdaysMin,
|
|
362
|
+
return Ve(S.weekdaysMin, h.$W, ye, 2);
|
|
363
363
|
case "ddd":
|
|
364
|
-
return Ve(S.weekdaysShort,
|
|
364
|
+
return Ve(S.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,60 +381,60 @@ 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
|
-
return
|
|
390
|
+
return I;
|
|
391
391
|
}
|
|
392
392
|
return null;
|
|
393
|
-
}(V) ||
|
|
393
|
+
}(V) || I.replace(":", "");
|
|
394
394
|
});
|
|
395
395
|
}, $.utcOffset = function() {
|
|
396
396
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
397
|
-
}, $.diff = function(b,
|
|
398
|
-
var
|
|
399
|
-
return P.m(
|
|
397
|
+
}, $.diff = function(b, h, S) {
|
|
398
|
+
var O, I = this, Y = P.p(h), le = me(b), de = (le.utcOffset() - this.utcOffset()) * l, ye = this - le, W = function() {
|
|
399
|
+
return P.m(I, le);
|
|
400
400
|
};
|
|
401
401
|
switch (Y) {
|
|
402
|
-
case
|
|
403
|
-
|
|
402
|
+
case y:
|
|
403
|
+
O = W() / 12;
|
|
404
404
|
break;
|
|
405
405
|
case f:
|
|
406
|
-
|
|
406
|
+
O = W();
|
|
407
407
|
break;
|
|
408
408
|
case o:
|
|
409
|
-
|
|
409
|
+
O = W() / 3;
|
|
410
410
|
break;
|
|
411
|
-
case
|
|
412
|
-
|
|
411
|
+
case p:
|
|
412
|
+
O = (ye - de) / 6048e5;
|
|
413
413
|
break;
|
|
414
414
|
case v:
|
|
415
|
-
|
|
415
|
+
O = (ye - de) / 864e5;
|
|
416
416
|
break;
|
|
417
417
|
case T:
|
|
418
|
-
|
|
418
|
+
O = ye / n;
|
|
419
419
|
break;
|
|
420
420
|
case c:
|
|
421
|
-
|
|
421
|
+
O = ye / l;
|
|
422
422
|
break;
|
|
423
423
|
case t:
|
|
424
|
-
|
|
424
|
+
O = ye / e;
|
|
425
425
|
break;
|
|
426
426
|
default:
|
|
427
|
-
|
|
427
|
+
O = ye;
|
|
428
428
|
}
|
|
429
|
-
return S ?
|
|
429
|
+
return S ? O : P.a(O);
|
|
430
430
|
}, $.daysInMonth = function() {
|
|
431
431
|
return this.endOf(f).$D;
|
|
432
432
|
}, $.$locale = function() {
|
|
433
433
|
return ue[this.$L];
|
|
434
|
-
}, $.locale = function(b,
|
|
434
|
+
}, $.locale = function(b, h) {
|
|
435
435
|
if (!b) return this.$L;
|
|
436
|
-
var S = this.clone(),
|
|
437
|
-
return
|
|
436
|
+
var S = this.clone(), O = De(b, h, !0);
|
|
437
|
+
return O && (S.$L = O), S;
|
|
438
438
|
}, $.clone = function() {
|
|
439
439
|
return P.w(this.$d, this);
|
|
440
440
|
}, $.toDate = function() {
|
|
@@ -447,7 +447,7 @@ var ul = { exports: {} };
|
|
|
447
447
|
return this.$d.toUTCString();
|
|
448
448
|
}, w;
|
|
449
449
|
}(), We = Te.prototype;
|
|
450
|
-
return me.prototype = We, [["$ms", d], ["$s", t], ["$m", c], ["$H", T], ["$W", v], ["$M", f], ["$y",
|
|
450
|
+
return me.prototype = We, [["$ms", d], ["$s", t], ["$m", c], ["$H", T], ["$W", v], ["$M", f], ["$y", y], ["$D", U]].forEach(function(w) {
|
|
451
451
|
We[w[1]] = function($) {
|
|
452
452
|
return this.$g($, w[0], w[1]);
|
|
453
453
|
};
|
|
@@ -458,16 +458,16 @@ var ul = { exports: {} };
|
|
|
458
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 Rl = ul.exports;
|
|
462
|
+
const Et = /* @__PURE__ */ ol(Rl), et = (r, u) => {
|
|
463
463
|
const e = r.__vccOpts || r;
|
|
464
|
-
for (const [l, n] of
|
|
464
|
+
for (const [l, n] of u)
|
|
465
465
|
e[l] = n;
|
|
466
466
|
return e;
|
|
467
|
-
},
|
|
467
|
+
}, Bl = {
|
|
468
468
|
style: { display: "flex", width: "100%" },
|
|
469
469
|
class: "g-ctrl-container"
|
|
470
|
-
},
|
|
470
|
+
}, Pl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, Nl = ["innerHTML"], Wl = ["innerHTML"], Gl = ["title"], Xl = ["innerHTML"], Ql = ["innerHTML"], Zl = ["innerHTML"], Jl = ["innerHTML"], Kl = ["innerHTML"], ea = ["innerHTML"], ta = ["innerHTML"], la = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
471
471
|
__name: "g-ctrl",
|
|
472
472
|
props: /* @__PURE__ */ at(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
473
473
|
modelValue: { required: !0 },
|
|
@@ -475,23 +475,23 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:modelValue"],
|
|
477
477
|
setup(r) {
|
|
478
|
-
var $, b,
|
|
479
|
-
const
|
|
480
|
-
!((
|
|
481
|
-
const
|
|
482
|
-
|
|
483
|
-
const
|
|
484
|
-
const V = Xt(), M = Object.keys(V),
|
|
485
|
-
return M.filter((Ue) => Ue.startsWith(
|
|
478
|
+
var $, b, h, S, O, I, Y, le, de, ye, W, G, Ve, ke, Ie;
|
|
479
|
+
const u = r, e = ae(u.item || {}), l = lt(r, "modelValue"), n = ae(u.ctrlKey), d = ae(u.ctrlType), t = ae(u.model), c = ae([]), T = ae([]), v = ae(!1), p = ae(!1), f = ae(0), o = ae((b = ($ = t == null ? void 0 : t.value) == null ? void 0 : $.form) != null && b["default-placeholder"] ? (S = (h = t == null ? void 0 : t.value) == null ? void 0 : h[n == null ? void 0 : n.value]) == null ? void 0 : S.label : "");
|
|
480
|
+
!((O = d.value) != null && O.startsWith("text")) && !((I = d.value) != null && I.startsWith("link")) && !((Y = d.value) != null && Y.startsWith("tag")) && !((le = d.value) != null && le.startsWith("div")) && !((de = d.value) != null && de.startsWith("span")) && !((ye = d.value) != null && ye.startsWith("avatar")) && ((W = e.value) != null && W.style || (e.value.style = { width: ((Ve = (G = e.value) == null ? void 0 : G.style) == null ? void 0 : Ve.width) || "100%" }));
|
|
481
|
+
const y = ae({ display: "flex", flex: 1 }), U = u.t === "t" ? "center" : "flex-start", j = ((ke = e.value) == null ? void 0 : ke.style) || {};
|
|
482
|
+
y.value = { ...y.value, justifyContent: U, ...j };
|
|
483
|
+
const D = () => {
|
|
484
|
+
const V = Xt(), M = Object.keys(V), H = `${u.t}-${n.value}-`;
|
|
485
|
+
return M.filter((Ue) => Ue.startsWith(H)).map((Ue) => Ue.replace(H, ""));
|
|
486
486
|
}, k = ae({
|
|
487
487
|
multiple: !1,
|
|
488
488
|
"show-file-list": !1,
|
|
489
489
|
"file-list": [],
|
|
490
|
-
showDel:
|
|
490
|
+
showDel: u.t === "f"
|
|
491
491
|
});
|
|
492
492
|
Object.hasOwn(e.value, "showDel") && (k.value.showDel = e.value.showDel);
|
|
493
493
|
const X = ae(e.value.value);
|
|
494
|
-
(Ie = e == null ? void 0 : e.value) != null && Ie.format && (X.value =
|
|
494
|
+
(Ie = e == null ? void 0 : e.value) != null && Ie.format && (X.value = yl(l.value).format(e.value.format || "YYYY-MM-DD"));
|
|
495
495
|
const J = (V) => [
|
|
496
496
|
"year",
|
|
497
497
|
"years",
|
|
@@ -532,46 +532,46 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
532
532
|
}), pe = async (V = "options") => {
|
|
533
533
|
var M;
|
|
534
534
|
try {
|
|
535
|
-
const
|
|
536
|
-
if (typeof
|
|
537
|
-
T.value = [{ label:
|
|
535
|
+
const H = await ((M = e.value) == null ? void 0 : M.getDicts(u.formInfo));
|
|
536
|
+
if (typeof H == "string")
|
|
537
|
+
T.value = [{ label: H, value: l.value }];
|
|
538
538
|
else {
|
|
539
|
-
const Ce =
|
|
539
|
+
const Ce = H == null ? void 0 : H.map((ze, Ue) => ({
|
|
540
540
|
...ze,
|
|
541
541
|
value: ze.value ?? ze.label ?? Ue,
|
|
542
542
|
label: ze.label || "未知选项"
|
|
543
543
|
}));
|
|
544
544
|
T.value = Ce || [];
|
|
545
545
|
}
|
|
546
|
-
} catch (
|
|
547
|
-
throw console.error("获取选项失败:",
|
|
546
|
+
} catch (H) {
|
|
547
|
+
throw console.error("获取选项失败:", H), H;
|
|
548
548
|
}
|
|
549
549
|
}, Se = () => {
|
|
550
550
|
var V, M;
|
|
551
|
-
e.value.noSearch !== !0 &&
|
|
551
|
+
e.value.noSearch !== !0 && u.t === "q" && ((M = (V = t.value) == null ? void 0 : V.table) == null || M.load());
|
|
552
552
|
}, De = (V) => {
|
|
553
553
|
V.preventDefault(), V.stopPropagation(), l.value = "";
|
|
554
554
|
}, me = (V) => {
|
|
555
555
|
var M;
|
|
556
556
|
if (e.value["file-list"] && e.value["file-list"].length > 0) {
|
|
557
|
-
const
|
|
557
|
+
const H = e.value["file-list"].findIndex(
|
|
558
558
|
(Ce) => Ce.url === V.url || Ce.uid === V.uid || V.raw && Ce.raw && Ce.raw.uid === V.raw.uid
|
|
559
559
|
);
|
|
560
|
-
f.value =
|
|
560
|
+
f.value = H >= 0 ? H : 0;
|
|
561
561
|
} else {
|
|
562
|
-
const
|
|
562
|
+
const H = V.url || ((M = V.raw) == null ? void 0 : M.url), Ce = w.value.indexOf(H);
|
|
563
563
|
f.value = Ce >= 0 ? Ce : 0;
|
|
564
564
|
}
|
|
565
565
|
v.value = !0;
|
|
566
566
|
}, P = (V) => {
|
|
567
567
|
if (V.preventDefault(), V.stopPropagation(), e.value["file-list"] && e.value["file-list"].length > 0) {
|
|
568
|
-
const M = l.value,
|
|
568
|
+
const M = l.value, H = e.value["file-list"].findIndex(
|
|
569
569
|
(Ce) => {
|
|
570
570
|
var ze;
|
|
571
571
|
return Ce.url === M || ((ze = Ce.raw) == null ? void 0 : ze.url) === M;
|
|
572
572
|
}
|
|
573
573
|
);
|
|
574
|
-
f.value =
|
|
574
|
+
f.value = H >= 0 ? H : 0;
|
|
575
575
|
} else
|
|
576
576
|
f.value = 0;
|
|
577
577
|
v.value = !0;
|
|
@@ -580,20 +580,20 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
580
580
|
l.value = "";
|
|
581
581
|
return;
|
|
582
582
|
}
|
|
583
|
-
let
|
|
584
|
-
if (
|
|
585
|
-
const Ue =
|
|
586
|
-
|
|
583
|
+
let H = V.replace(/[^-\d.]/g, "");
|
|
584
|
+
if (H.includes("-") && (H.startsWith("-") ? H = "-" + H.substring(1).replace(/-/g, "") : H = H.replace(/-/g, "")), (H.match(/\./g) || []).length > 1) {
|
|
585
|
+
const Ue = H.indexOf(".");
|
|
586
|
+
H = H.substring(0, Ue + 1) + H.substring(Ue + 1).replace(/\./g, "");
|
|
587
587
|
}
|
|
588
|
-
if (
|
|
589
|
-
const [Ue, tt] =
|
|
590
|
-
tt.length > M && (
|
|
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"), M >= 0 && H.includes(".")) {
|
|
589
|
+
const [Ue, tt] = H.split(".");
|
|
590
|
+
tt.length > M && (H = Ue + "." + tt.substring(0, M));
|
|
591
591
|
}
|
|
592
|
-
l.value =
|
|
592
|
+
l.value = H;
|
|
593
593
|
};
|
|
594
594
|
yt(async () => {
|
|
595
|
-
var
|
|
596
|
-
e.value && e.value["remote-method"] && (ne.value["remote-method"] = ue), (Ce = (
|
|
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 && (T.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);
|
|
@@ -601,11 +601,11 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
601
601
|
};
|
|
602
602
|
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(d.value) && V(d.value), d.value === xe.TREESELECT && await (async () => {
|
|
603
603
|
try {
|
|
604
|
-
typeof e.value.getDicts == "function" ? c.value = await e.value.getDicts(
|
|
604
|
+
typeof e.value.getDicts == "function" ? c.value = await e.value.getDicts(u.formInfo) : c.value = T.value;
|
|
605
605
|
} catch (Qe) {
|
|
606
606
|
console.error("Failed to load data for tree-select:", Qe);
|
|
607
607
|
}
|
|
608
|
-
})(),
|
|
608
|
+
})(), u.t == "q") {
|
|
609
609
|
let Le = e.value.type || d.value;
|
|
610
610
|
(Le === void 0 || d.value === "input" || Le == xe.NUMBER || Le == xe.EMAIL || Le == "url" || Le == "text") && e.value.onKeyup == null && (e.value.onKeyup = (Qe) => {
|
|
611
611
|
var Ge, Xe;
|
|
@@ -639,10 +639,10 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
639
639
|
});
|
|
640
640
|
return (V, M) => {
|
|
641
641
|
var te, Re, Je, rt, K, ie, ve, it, dt, nt, ot, pt;
|
|
642
|
-
const
|
|
643
|
-
return
|
|
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"), He = F("el-input-number"), Ze = F("el-input-tag"), st = F("el-input"), _t = F("el-link"), Ct = F("el-text"), Q = F("el-avatar"), fe = F("el-tag");
|
|
643
|
+
return m(), z(re, null, [
|
|
644
644
|
Z("div", null, [
|
|
645
|
-
v.value ? (
|
|
645
|
+
v.value ? (m(), E(H, {
|
|
646
646
|
key: 0,
|
|
647
647
|
teleported: !0,
|
|
648
648
|
"initial-index": f.value,
|
|
@@ -650,64 +650,64 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
650
650
|
onClose: M[0] || (M[0] = (i) => v.value = !1)
|
|
651
651
|
}, null, 8, ["initial-index", "url-list"])) : be("", !0)
|
|
652
652
|
]),
|
|
653
|
-
Z("div",
|
|
654
|
-
d.value ==
|
|
653
|
+
Z("div", Bl, [
|
|
654
|
+
d.value == L(xe).RADIO ? (m(), E(ze, A({
|
|
655
655
|
key: 0,
|
|
656
656
|
modelValue: l.value,
|
|
657
657
|
"onUpdate:modelValue": M[1] || (M[1] = (i) => l.value = i),
|
|
658
658
|
disabled: t.value[n.value].disabled
|
|
659
659
|
}, e.value), {
|
|
660
660
|
default: _(() => [
|
|
661
|
-
x(V.$slots, `${
|
|
662
|
-
(
|
|
661
|
+
x(V.$slots, `${u.t}-${n.value}`, { data: e.value }, () => [
|
|
662
|
+
(m(!0), z(re, null, N(T.value, (i) => (m(), E(Ce, A({ ref_for: !0 }, i), {
|
|
663
663
|
default: _(() => [
|
|
664
|
-
x(V.$slots, `${
|
|
664
|
+
x(V.$slots, `${u.t}-${n.value}-options`, { option: i }, void 0, !0)
|
|
665
665
|
]),
|
|
666
666
|
_: 2
|
|
667
667
|
}, 1040))), 256))
|
|
668
668
|
], !0)
|
|
669
669
|
]),
|
|
670
670
|
_: 3
|
|
671
|
-
}, 16, ["modelValue", "disabled"])) : d.value ==
|
|
671
|
+
}, 16, ["modelValue", "disabled"])) : d.value == L(xe).RADIOBUTTON ? (m(), E(ze, A({
|
|
672
672
|
key: 1,
|
|
673
673
|
modelValue: l.value,
|
|
674
674
|
"onUpdate:modelValue": M[2] || (M[2] = (i) => l.value = i),
|
|
675
675
|
disabled: t.value[n.value].disabled
|
|
676
676
|
}, e.value), {
|
|
677
677
|
default: _(() => [
|
|
678
|
-
x(V.$slots, `${
|
|
679
|
-
(
|
|
678
|
+
x(V.$slots, `${u.t}-${n.value}`, { data: e.value }, () => [
|
|
679
|
+
(m(!0), z(re, null, N(T.value, (i) => (m(), E(Ue, A({ ref_for: !0 }, i), {
|
|
680
680
|
default: _(() => [
|
|
681
|
-
x(V.$slots, `${
|
|
681
|
+
x(V.$slots, `${u.t}-${n.value}-options`, { option: i }, void 0, !0)
|
|
682
682
|
]),
|
|
683
683
|
_: 2
|
|
684
684
|
}, 1040))), 256))
|
|
685
685
|
], !0)
|
|
686
686
|
]),
|
|
687
687
|
_: 3
|
|
688
|
-
}, 16, ["modelValue", "disabled"])) : d.value ==
|
|
688
|
+
}, 16, ["modelValue", "disabled"])) : d.value == L(xe).CHECKBOX ? (m(), E(tt, A({
|
|
689
689
|
key: 2,
|
|
690
690
|
modelValue: l.value,
|
|
691
691
|
"onUpdate:modelValue": M[3] || (M[3] = (i) => l.value = i),
|
|
692
692
|
disabled: t.value[n.value].disabled
|
|
693
693
|
}, e.value), {
|
|
694
694
|
default: _(() => [
|
|
695
|
-
x(V.$slots, `${
|
|
695
|
+
x(V.$slots, `${u.t}-${n.value}`, { data: e.value }, () => [
|
|
696
696
|
M[30] || (M[30] = Ae(Me(" "), -1))
|
|
697
697
|
], !0)
|
|
698
698
|
]),
|
|
699
699
|
_: 3
|
|
700
|
-
}, 16, ["modelValue", "disabled"])) : d.value ==
|
|
700
|
+
}, 16, ["modelValue", "disabled"])) : d.value == L(xe).CHECKBOXGROUP ? (m(), E(Le, A({
|
|
701
701
|
key: 3,
|
|
702
702
|
modelValue: l.value,
|
|
703
703
|
"onUpdate:modelValue": M[4] || (M[4] = (i) => l.value = i),
|
|
704
704
|
disabled: t.value[n.value].disabled
|
|
705
705
|
}, e.value), {
|
|
706
706
|
default: _(() => [
|
|
707
|
-
x(V.$slots, `${
|
|
708
|
-
(
|
|
707
|
+
x(V.$slots, `${u.t}-${n.value}`, { data: e.value }, () => [
|
|
708
|
+
(m(!0), z(re, null, N(T.value, (i) => (m(), E(tt, A({ ref_for: !0 }, i), {
|
|
709
709
|
default: _(() => [
|
|
710
|
-
x(V.$slots, `${
|
|
710
|
+
x(V.$slots, `${u.t}-${n.value}-options`, { option: i }, () => [
|
|
711
711
|
Ae(Me(i.label), 1)
|
|
712
712
|
], !0)
|
|
713
713
|
]),
|
|
@@ -716,45 +716,45 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
716
716
|
], !0)
|
|
717
717
|
]),
|
|
718
718
|
_: 3
|
|
719
|
-
}, 16, ["modelValue", "disabled"])) : d.value ==
|
|
719
|
+
}, 16, ["modelValue", "disabled"])) : d.value == L(xe).CHECKBOXGROUPBUTTON ? (m(), E(Le, A({
|
|
720
720
|
key: 4,
|
|
721
721
|
modelValue: l.value,
|
|
722
722
|
"onUpdate:modelValue": M[5] || (M[5] = (i) => l.value = i),
|
|
723
723
|
disabled: t.value[n.value].disabled
|
|
724
|
-
},
|
|
724
|
+
}, L(Ne)(e.value, (i) => i != "type")), {
|
|
725
725
|
default: _(() => [
|
|
726
|
-
x(V.$slots, `${
|
|
727
|
-
(
|
|
726
|
+
x(V.$slots, `${u.t}-${n.value}`, { data: e.value }, () => [
|
|
727
|
+
(m(!0), z(re, null, N(T.value, (i) => (m(), E(Qe, A({ ref_for: !0 }, i), {
|
|
728
728
|
default: _(() => [
|
|
729
|
-
x(V.$slots, `${
|
|
729
|
+
x(V.$slots, `${u.t}-${n.value}-options`, { option: i }, void 0, !0)
|
|
730
730
|
]),
|
|
731
731
|
_: 2
|
|
732
732
|
}, 1040))), 256))
|
|
733
733
|
], !0)
|
|
734
734
|
]),
|
|
735
735
|
_: 3
|
|
736
|
-
}, 16, ["modelValue", "disabled"])) : d.value ===
|
|
736
|
+
}, 16, ["modelValue", "disabled"])) : d.value === L(xe).SELECT ? (m(), E(gt, A({
|
|
737
737
|
key: 5,
|
|
738
738
|
modelValue: l.value,
|
|
739
739
|
"onUpdate:modelValue": M[6] || (M[6] = (i) => l.value = i),
|
|
740
740
|
placeholder: o.value,
|
|
741
741
|
clearable: !0,
|
|
742
742
|
onClear: M[7] || (M[7] = () => {
|
|
743
|
-
|
|
743
|
+
u.t == "q" && t.value.table.load();
|
|
744
744
|
}),
|
|
745
745
|
disabled: t.value[n.value].disabled
|
|
746
746
|
}, ne.value), ge({
|
|
747
747
|
default: _(() => {
|
|
748
748
|
var i;
|
|
749
749
|
return [
|
|
750
|
-
((i = T.value) == null ? void 0 : i.length) > 0 ? x(V.$slots, `${
|
|
750
|
+
((i = T.value) == null ? void 0 : i.length) > 0 ? x(V.$slots, `${u.t}-${n.value}`, {
|
|
751
751
|
key: 0,
|
|
752
752
|
options: T.value
|
|
753
753
|
}, () => [
|
|
754
|
-
(
|
|
754
|
+
(m(!0), z(re, null, N(T.value, (oe) => (m(), z(re, {
|
|
755
755
|
key: oe.value
|
|
756
756
|
}, [
|
|
757
|
-
se(Xe, A({ ref_for: !0 },
|
|
757
|
+
se(Xe, A({ ref_for: !0 }, L(Ne)(oe, (ce) => ce != "children"), {
|
|
758
758
|
onClick: (ce) => {
|
|
759
759
|
ne.value.change && ne.value.change(oe), Se();
|
|
760
760
|
}
|
|
@@ -762,7 +762,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
762
762
|
default: _(() => {
|
|
763
763
|
var ce;
|
|
764
764
|
return [
|
|
765
|
-
(ce = e.value) != null && ce.columns ? x(V.$slots, `${
|
|
765
|
+
(ce = e.value) != null && ce.columns ? x(V.$slots, `${u.t}-${n.value}-options`, {
|
|
766
766
|
key: 0,
|
|
767
767
|
option: oe
|
|
768
768
|
}, () => {
|
|
@@ -771,7 +771,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
771
771
|
se(Ge, {
|
|
772
772
|
columns: (Be = e.value) == null ? void 0 : Be.columns,
|
|
773
773
|
data: oe,
|
|
774
|
-
t:
|
|
774
|
+
t: u.t
|
|
775
775
|
}, ge({ _: 2 }, [
|
|
776
776
|
N(V.$slots, (ft, qt) => ({
|
|
777
777
|
name: qt,
|
|
@@ -790,10 +790,10 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
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
|
-
}, { ref_for: !0 },
|
|
796
|
+
}, { ref_for: !0 }, L(Ne)(ce, (Be) => Be != "children"), {
|
|
797
797
|
onClick: (Be) => {
|
|
798
798
|
ne.value.change && ne.value.change(ce), Se();
|
|
799
799
|
}
|
|
@@ -801,7 +801,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
801
801
|
default: _(() => {
|
|
802
802
|
var Be;
|
|
803
803
|
return [
|
|
804
|
-
(Be = e.value) != null && Be.columns ? x(V.$slots, `${
|
|
804
|
+
(Be = e.value) != null && Be.columns ? x(V.$slots, `${u.t}-${n.value}-options`, {
|
|
805
805
|
key: 0,
|
|
806
806
|
option: ce
|
|
807
807
|
}, () => {
|
|
@@ -810,14 +810,14 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
810
810
|
se(Ge, {
|
|
811
811
|
columns: (ft = e.value) == null ? void 0 : ft.columns,
|
|
812
812
|
data: ce,
|
|
813
|
-
t:
|
|
813
|
+
t: u.t
|
|
814
814
|
}, ge({ _: 2 }, [
|
|
815
815
|
N(V.$slots, (qt, xt) => ({
|
|
816
816
|
name: xt,
|
|
817
|
-
fn: _((
|
|
817
|
+
fn: _((hl) => [
|
|
818
818
|
x(V.$slots, xt, {
|
|
819
819
|
option: ce,
|
|
820
|
-
data:
|
|
820
|
+
data: hl,
|
|
821
821
|
form: r.formInfo
|
|
822
822
|
}, void 0, !0)
|
|
823
823
|
])
|
|
@@ -843,7 +843,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
843
843
|
se(Ge, {
|
|
844
844
|
columns: (i = e.value) == null ? void 0 : i.columns,
|
|
845
845
|
title: !0,
|
|
846
|
-
t:
|
|
846
|
+
t: u.t
|
|
847
847
|
}, ge({ _: 2 }, [
|
|
848
848
|
N(V.$slots, (oe, ce) => ({
|
|
849
849
|
name: ce,
|
|
@@ -856,33 +856,33 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
856
856
|
}),
|
|
857
857
|
key: "0"
|
|
858
858
|
} : void 0,
|
|
859
|
-
N(
|
|
859
|
+
N(D(), (i) => ({
|
|
860
860
|
name: i,
|
|
861
861
|
fn: _((oe) => [
|
|
862
|
-
x(V.$slots, `${
|
|
862
|
+
x(V.$slots, `${u.t}-${n.value}-${i}`, { form: r.formInfo }, void 0, !0)
|
|
863
863
|
])
|
|
864
864
|
}))
|
|
865
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : d.value ==
|
|
865
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : d.value == L(xe).TREESELECT ? (m(), E(bt, A({
|
|
866
866
|
key: 6,
|
|
867
867
|
modelValue: l.value,
|
|
868
868
|
"onUpdate:modelValue": M[8] || (M[8] = (i) => l.value = i),
|
|
869
869
|
placeholder: o.value,
|
|
870
870
|
disabled: t.value[n.value].disabled
|
|
871
871
|
}, e.value, { data: c.value }), ge({ _: 2 }, [
|
|
872
|
-
N(
|
|
872
|
+
N(D(), (i) => ({
|
|
873
873
|
name: i,
|
|
874
874
|
fn: _((oe) => [
|
|
875
|
-
x(V.$slots, `${
|
|
875
|
+
x(V.$slots, `${u.t}-${n.value}-${i}`, { data: oe }, void 0, !0)
|
|
876
876
|
])
|
|
877
877
|
}))
|
|
878
|
-
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : d.value ==
|
|
878
|
+
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : d.value == L(xe).TIME ? (m(), E($t, A({
|
|
879
879
|
key: 7,
|
|
880
880
|
modelValue: l.value,
|
|
881
881
|
"onUpdate:modelValue": M[9] || (M[9] = (i) => l.value = i),
|
|
882
882
|
"arrow-control": "",
|
|
883
883
|
format: "HH:mm:ss",
|
|
884
884
|
disabled: t.value[n.value].disabled
|
|
885
|
-
}, e.value, { placeholder: o.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : d.value ==
|
|
885
|
+
}, e.value, { placeholder: o.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : d.value == L(xe).TIMESELECT ? (m(), E(wt, A({
|
|
886
886
|
key: 8,
|
|
887
887
|
modelValue: l.value,
|
|
888
888
|
"onUpdate:modelValue": M[10] || (M[10] = (i) => l.value = i),
|
|
@@ -892,72 +892,72 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
892
892
|
end: "23:30",
|
|
893
893
|
placeholder: o.value,
|
|
894
894
|
disabled: t.value[n.value].disabled
|
|
895
|
-
}, e.value), null, 16, ["modelValue", "placeholder", "disabled"])) : J(d.value) ? (
|
|
895
|
+
}, e.value), null, 16, ["modelValue", "placeholder", "disabled"])) : J(d.value) ? (m(), E(kt, A({
|
|
896
896
|
key: 9,
|
|
897
897
|
modelValue: l.value,
|
|
898
898
|
"onUpdate:modelValue": M[11] || (M[11] = (i) => l.value = i),
|
|
899
899
|
type: d.value,
|
|
900
|
-
format: d.value ===
|
|
900
|
+
format: d.value === L(xe).DATE ? "YYYY-MM-DD" : d.value === L(xe).DATETIME ? "YYYY-MM-DD HH:mm:ss" : "",
|
|
901
901
|
placeholder: o.value,
|
|
902
902
|
"value-format": ee(d.value),
|
|
903
903
|
disabled: t.value[n.value].disabled
|
|
904
904
|
}, e.value), ge({ _: 2 }, [
|
|
905
|
-
N(
|
|
905
|
+
N(D(), (i) => ({
|
|
906
906
|
name: i,
|
|
907
907
|
fn: _((oe) => [
|
|
908
|
-
x(V.$slots, `${
|
|
908
|
+
x(V.$slots, `${u.t}-${n.value}-${i}`, { data: oe }, void 0, !0)
|
|
909
909
|
])
|
|
910
910
|
}))
|
|
911
|
-
]), 1040, ["modelValue", "type", "format", "placeholder", "value-format", "disabled"])) : d.value ==
|
|
911
|
+
]), 1040, ["modelValue", "type", "format", "placeholder", "value-format", "disabled"])) : d.value == L(xe).COLOR ? (m(), E(a, A({
|
|
912
912
|
key: 10,
|
|
913
913
|
modelValue: l.value,
|
|
914
914
|
"onUpdate:modelValue": M[12] || (M[12] = (i) => l.value = i)
|
|
915
|
-
}, e.value), null, 16, ["modelValue"])) : d.value ==
|
|
915
|
+
}, e.value), null, 16, ["modelValue"])) : d.value == L(xe).RATE ? (m(), E(s, A({
|
|
916
916
|
key: 11,
|
|
917
917
|
modelValue: l.value,
|
|
918
918
|
"onUpdate:modelValue": M[13] || (M[13] = (i) => l.value = i),
|
|
919
919
|
disabled: t.value[n.value].disabled
|
|
920
|
-
}, e.value), null, 16, ["modelValue", "disabled"])) : d.value ==
|
|
920
|
+
}, e.value), null, 16, ["modelValue", "disabled"])) : d.value == L(xe).SLIDER ? (m(), E(g, A({
|
|
921
921
|
key: 12,
|
|
922
922
|
modelValue: l.value,
|
|
923
923
|
"onUpdate:modelValue": M[14] || (M[14] = (i) => l.value = i),
|
|
924
924
|
disabled: t.value[n.value].disabled
|
|
925
|
-
}, e.value), null, 16, ["modelValue", "disabled"])) : d.value ==
|
|
925
|
+
}, e.value), null, 16, ["modelValue", "disabled"])) : d.value == L(xe).SWITCH ? (m(), E(C, A({
|
|
926
926
|
key: 13,
|
|
927
927
|
modelValue: l.value,
|
|
928
928
|
"onUpdate:modelValue": M[15] || (M[15] = (i) => l.value = i),
|
|
929
929
|
inlinePrompt: !0,
|
|
930
930
|
disabled: t.value[n.value].disabled
|
|
931
931
|
}, e.value), ge({ _: 2 }, [
|
|
932
|
-
N(
|
|
932
|
+
N(D(), (i) => ({
|
|
933
933
|
name: i,
|
|
934
934
|
fn: _((oe) => [
|
|
935
|
-
x(V.$slots, `${
|
|
935
|
+
x(V.$slots, `${u.t}-${n.value}-${i}`, { data: oe }, void 0, !0)
|
|
936
936
|
])
|
|
937
937
|
}))
|
|
938
|
-
]), 1040, ["modelValue", "disabled"])) : d.value ==
|
|
938
|
+
]), 1040, ["modelValue", "disabled"])) : d.value == L(xe).TRANSFER ? (m(), E(q, A({
|
|
939
939
|
key: 14,
|
|
940
940
|
modelValue: l.value,
|
|
941
941
|
"onUpdate:modelValue": M[16] || (M[16] = (i) => l.value = i)
|
|
942
942
|
}, e.value), ge({ _: 2 }, [
|
|
943
|
-
N(
|
|
943
|
+
N(D(), (i) => ({
|
|
944
944
|
name: i,
|
|
945
945
|
fn: _((oe) => [
|
|
946
|
-
x(V.$slots, `${
|
|
946
|
+
x(V.$slots, `${u.t}-${n.value}-${i}`, { data: oe }, void 0, !0)
|
|
947
947
|
])
|
|
948
948
|
}))
|
|
949
|
-
]), 1040, ["modelValue"])) : d.value ==
|
|
949
|
+
]), 1040, ["modelValue"])) : d.value == L(xe).CASCADER ? (m(), E(R, A({
|
|
950
950
|
key: 15,
|
|
951
951
|
modelValue: l.value,
|
|
952
952
|
"onUpdate:modelValue": M[17] || (M[17] = (i) => l.value = i)
|
|
953
953
|
}, e.value, { options: T.value }), ge({ _: 2 }, [
|
|
954
|
-
N(
|
|
954
|
+
N(D(), (i) => ({
|
|
955
955
|
name: i,
|
|
956
956
|
fn: _((oe) => [
|
|
957
|
-
x(V.$slots, `${
|
|
957
|
+
x(V.$slots, `${u.t}-${n.value}-${i}`, { data: oe }, void 0, !0)
|
|
958
958
|
])
|
|
959
959
|
}))
|
|
960
|
-
]), 1040, ["modelValue", "options"])) : d.value ==
|
|
960
|
+
]), 1040, ["modelValue", "options"])) : d.value == L(xe).IMAGE ? (m(), E(Ee, A({
|
|
961
961
|
key: 16,
|
|
962
962
|
"file-list": e.value["file-list"],
|
|
963
963
|
"onUpdate:fileList": M[21] || (M[21] = (i) => e.value["file-list"] = i),
|
|
@@ -971,42 +971,42 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
971
971
|
default: _(() => {
|
|
972
972
|
var i, oe;
|
|
973
973
|
return [
|
|
974
|
-
!l.value || ((i = e.value) == null ? void 0 : i.multiple) === !0 ? (
|
|
974
|
+
!l.value || ((i = e.value) == null ? void 0 : i.multiple) === !0 ? (m(), E(B, { key: 0 }, {
|
|
975
975
|
default: _(() => [
|
|
976
|
-
se(
|
|
976
|
+
se(L(Sl))
|
|
977
977
|
]),
|
|
978
978
|
_: 1
|
|
979
|
-
})) : (
|
|
979
|
+
})) : (m(), z("div", {
|
|
980
980
|
key: 1,
|
|
981
981
|
onClick: M[20] || (M[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
|
-
Z("div",
|
|
984
|
+
Z("div", Pl, [
|
|
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 }, [
|
|
989
|
-
N(
|
|
989
|
+
N(D(), (ce, Be) => ({
|
|
990
990
|
name: ce,
|
|
991
991
|
fn: _((ft) => [
|
|
992
|
-
x(V.$slots, `${
|
|
992
|
+
x(V.$slots, `${u.t}-${n.value}-${ce}`, { data: ft }, void 0, !0)
|
|
993
993
|
])
|
|
994
994
|
}))
|
|
995
995
|
]), 1040, ["src"])
|
|
996
996
|
]),
|
|
997
997
|
Z("div", {
|
|
998
998
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "absolute", "align-items": "center", "justify-content": "center" },
|
|
999
|
-
onMouseenter: M[18] || (M[18] = (ce) =>
|
|
1000
|
-
onMouseleave: M[19] || (M[19] = (ce) =>
|
|
999
|
+
onMouseenter: M[18] || (M[18] = (ce) => p.value = !0),
|
|
1000
|
+
onMouseleave: M[19] || (M[19] = (ce) => p.value = !1),
|
|
1001
1001
|
class: "up-view"
|
|
1002
1002
|
}, [
|
|
1003
|
-
|
|
1003
|
+
p.value ? (m(), E(we, {
|
|
1004
1004
|
key: 0,
|
|
1005
1005
|
content: "查看大图",
|
|
1006
1006
|
placement: "top"
|
|
1007
1007
|
}, {
|
|
1008
1008
|
default: _(() => [
|
|
1009
|
-
se(
|
|
1009
|
+
se(L(Tl), {
|
|
1010
1010
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
1011
1011
|
color: "white",
|
|
1012
1012
|
onClick: P
|
|
@@ -1014,13 +1014,13 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1014
1014
|
]),
|
|
1015
1015
|
_: 1
|
|
1016
1016
|
})) : be("", !0),
|
|
1017
|
-
k.value.showDel &&
|
|
1017
|
+
k.value.showDel && p.value ? (m(), E(we, {
|
|
1018
1018
|
key: 1,
|
|
1019
1019
|
content: "删除",
|
|
1020
1020
|
placement: "top"
|
|
1021
1021
|
}, {
|
|
1022
1022
|
default: _(() => [
|
|
1023
|
-
se(
|
|
1023
|
+
se(L(Kt), {
|
|
1024
1024
|
style: { width: "1.5em", height: "1.5em" },
|
|
1025
1025
|
color: "white",
|
|
1026
1026
|
onClick: De
|
|
@@ -1034,40 +1034,40 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1034
1034
|
}),
|
|
1035
1035
|
_: 2
|
|
1036
1036
|
}, [
|
|
1037
|
-
N(
|
|
1037
|
+
N(D(), (i, oe) => ({
|
|
1038
1038
|
name: i,
|
|
1039
1039
|
fn: _((ce) => [
|
|
1040
|
-
x(V.$slots, `${
|
|
1040
|
+
x(V.$slots, `${u.t}-${n.value}-${i}`, { data: ce }, void 0, !0)
|
|
1041
1041
|
])
|
|
1042
1042
|
}))
|
|
1043
|
-
]), 1040, ["file-list"])) : d.value ==
|
|
1043
|
+
]), 1040, ["file-list"])) : d.value == L(xe).AUTOCOMPLETE ? (m(), E(Oe, A({
|
|
1044
1044
|
key: 17,
|
|
1045
1045
|
modelValue: l.value,
|
|
1046
1046
|
"onUpdate:modelValue": M[22] || (M[22] = (i) => l.value = i)
|
|
1047
1047
|
}, e.value, { placeholder: o.value }), ge({ _: 2 }, [
|
|
1048
|
-
N(
|
|
1048
|
+
N(D(), (i, oe) => ({
|
|
1049
1049
|
name: i,
|
|
1050
1050
|
fn: _((ce) => [
|
|
1051
|
-
x(V.$slots, `${
|
|
1051
|
+
x(V.$slots, `${u.t}-${n.value}-${i}`, { data: ce }, void 0, !0)
|
|
1052
1052
|
])
|
|
1053
1053
|
}))
|
|
1054
|
-
]), 1040, ["modelValue", "placeholder"])) : d.value ==
|
|
1054
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == L(xe).INPUTNUMBER ? (m(), E(He, A({
|
|
1055
1055
|
key: 18,
|
|
1056
1056
|
modelValue: l.value,
|
|
1057
1057
|
"onUpdate:modelValue": M[23] || (M[23] = (i) => l.value = i),
|
|
1058
1058
|
placeholder: o.value,
|
|
1059
1059
|
disabled: t.value[n.value].disabled
|
|
1060
1060
|
}, e.value), ge({ _: 2 }, [
|
|
1061
|
-
N(
|
|
1061
|
+
N(D(), (i, oe) => ({
|
|
1062
1062
|
name: i,
|
|
1063
1063
|
fn: _((ce) => [
|
|
1064
|
-
x(V.$slots, `${
|
|
1064
|
+
x(V.$slots, `${u.t}-${n.value}-${i}`, {
|
|
1065
1065
|
data: ce,
|
|
1066
1066
|
form: r.formInfo
|
|
1067
1067
|
}, void 0, !0)
|
|
1068
1068
|
])
|
|
1069
1069
|
}))
|
|
1070
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : d.value == "input-tag" ? (
|
|
1070
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : d.value == "input-tag" ? (m(), E(Ze, A({
|
|
1071
1071
|
key: 19,
|
|
1072
1072
|
modelValue: l.value,
|
|
1073
1073
|
"onUpdate:modelValue": M[24] || (M[24] = (i) => l.value = i),
|
|
@@ -1082,7 +1082,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1082
1082
|
return [
|
|
1083
1083
|
Z("div", {
|
|
1084
1084
|
innerHTML: ((i = e.value) == null ? void 0 : i.suffix) || ""
|
|
1085
|
-
}, null, 8,
|
|
1085
|
+
}, null, 8, Nl)
|
|
1086
1086
|
];
|
|
1087
1087
|
}),
|
|
1088
1088
|
key: "0"
|
|
@@ -1094,23 +1094,23 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1094
1094
|
return [
|
|
1095
1095
|
Z("div", {
|
|
1096
1096
|
innerHTML: ((i = e.value) == null ? void 0 : i.prefix) || ""
|
|
1097
|
-
}, null, 8,
|
|
1097
|
+
}, null, 8, Wl)
|
|
1098
1098
|
];
|
|
1099
1099
|
}),
|
|
1100
1100
|
key: "1"
|
|
1101
1101
|
} : void 0,
|
|
1102
|
-
N(
|
|
1102
|
+
N(D(), (i, oe) => ({
|
|
1103
1103
|
name: i,
|
|
1104
1104
|
fn: _((ce) => [
|
|
1105
|
-
x(V.$slots, `${
|
|
1105
|
+
x(V.$slots, `${u.t}-${n.value}-${i}`, {
|
|
1106
1106
|
data: ce,
|
|
1107
1107
|
form: r.formInfo
|
|
1108
1108
|
}, void 0, !0)
|
|
1109
1109
|
])
|
|
1110
1110
|
}))
|
|
1111
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : d.value ==
|
|
1111
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : d.value == L(xe).MONEY ? (m(), z("div", {
|
|
1112
1112
|
key: 20,
|
|
1113
|
-
style: Ye([{ position: "relative" },
|
|
1113
|
+
style: Ye([{ position: "relative" }, y.value])
|
|
1114
1114
|
}, [
|
|
1115
1115
|
se(st, A({
|
|
1116
1116
|
modelValue: l.value,
|
|
@@ -1122,57 +1122,57 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1122
1122
|
}, { ...e.value, type: d.value }), ge({
|
|
1123
1123
|
suffix: _(() => [
|
|
1124
1124
|
Z("div", {
|
|
1125
|
-
title:
|
|
1125
|
+
title: L(jt)(l.value),
|
|
1126
1126
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1127
|
-
}, Me(
|
|
1127
|
+
}, Me(L(jt)(l.value)), 9, Gl)
|
|
1128
1128
|
]),
|
|
1129
1129
|
_: 2
|
|
1130
1130
|
}, [
|
|
1131
|
-
N(
|
|
1131
|
+
N(D(), (i, oe) => ({
|
|
1132
1132
|
name: i,
|
|
1133
1133
|
fn: _((ce) => [
|
|
1134
|
-
x(V.$slots, `${
|
|
1134
|
+
x(V.$slots, `${u.t}-${n.value}-${i}`, { data: ce }, void 0, !0)
|
|
1135
1135
|
])
|
|
1136
1136
|
}))
|
|
1137
1137
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
1138
|
-
], 4)) : (K = d.value) != null && K.startsWith("link") ? (
|
|
1138
|
+
], 4)) : (K = d.value) != null && K.startsWith("link") ? (m(), z("div", {
|
|
1139
1139
|
key: 21,
|
|
1140
|
-
style: Ye(
|
|
1140
|
+
style: Ye(y.value)
|
|
1141
1141
|
}, [
|
|
1142
1142
|
se(_t, A(e.value, {
|
|
1143
1143
|
type: d.value.replace("link-", ""),
|
|
1144
1144
|
innerHTML: X.value || l.value
|
|
1145
1145
|
}), null, 16, ["type", "innerHTML"])
|
|
1146
|
-
], 4)) : d.value != "textarea" && ((ie = d.value) != null && ie.startsWith("text")) ? (
|
|
1146
|
+
], 4)) : d.value != "textarea" && ((ie = d.value) != null && ie.startsWith("text")) ? (m(), z("div", {
|
|
1147
1147
|
key: 22,
|
|
1148
|
-
style: Ye(
|
|
1148
|
+
style: Ye(y.value)
|
|
1149
1149
|
}, [
|
|
1150
1150
|
se(Ct, A(e.value, {
|
|
1151
1151
|
type: d.value.replace("text-", ""),
|
|
1152
1152
|
innerHTML: X.value || l.value
|
|
1153
1153
|
}), null, 16, ["type", "innerHTML"])
|
|
1154
|
-
], 4)) : d.value == "avatar" ? (
|
|
1154
|
+
], 4)) : d.value == "avatar" ? (m(), z("div", {
|
|
1155
1155
|
key: 23,
|
|
1156
|
-
style: Ye(
|
|
1156
|
+
style: Ye(y.value)
|
|
1157
1157
|
}, [
|
|
1158
|
-
X.value ? (
|
|
1158
|
+
X.value ? (m(), E(Q, Vt(A({ key: 0 }, e.value)), {
|
|
1159
1159
|
default: _(() => [
|
|
1160
|
-
Z("div", { innerHTML: X.value }, null, 8,
|
|
1160
|
+
Z("div", { innerHTML: X.value }, null, 8, Xl)
|
|
1161
1161
|
]),
|
|
1162
1162
|
_: 1
|
|
1163
|
-
}, 16)) : (
|
|
1164
|
-
], 4)) : (ve = d.value) != null && ve.startsWith("tag") ? (
|
|
1163
|
+
}, 16)) : (m(), E(Q, Vt(A({ key: 1 }, e.value)), null, 16))
|
|
1164
|
+
], 4)) : (ve = d.value) != null && ve.startsWith("tag") ? (m(), z("div", {
|
|
1165
1165
|
key: 24,
|
|
1166
|
-
style: Ye(
|
|
1166
|
+
style: Ye(y.value)
|
|
1167
1167
|
}, [
|
|
1168
|
-
Array.isArray(X.value) && X.value.length > 0 ? (
|
|
1169
|
-
typeof i == "object" ? (
|
|
1168
|
+
Array.isArray(X.value) && X.value.length > 0 ? (m(!0), z(re, { key: 0 }, N(X.value, (i, oe) => (m(), z(re, { key: oe }, [
|
|
1169
|
+
typeof i == "object" ? (m(), E(fe, A({
|
|
1170
1170
|
key: 0,
|
|
1171
1171
|
"disable-transitions": ""
|
|
1172
1172
|
}, { ref_for: !0 }, i, {
|
|
1173
1173
|
innerHTML: i == null ? void 0 : i.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(Fl), et = (r, s) => {
|
|
|
1180
1180
|
innerHTML: i,
|
|
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: d.value.replace("tag-", ""),
|
|
1188
1188
|
innerHTML: X.value || l.value
|
|
1189
1189
|
}), null, 16, ["type", "innerHTML"]))
|
|
1190
|
-
], 4)) : d.value == "div" ? (
|
|
1190
|
+
], 4)) : d.value == "div" ? (m(), z("div", A({ key: 25 }, e.value, {
|
|
1191
1191
|
innerHTML: X.value || l.value,
|
|
1192
|
-
style:
|
|
1193
|
-
}), null, 16,
|
|
1192
|
+
style: y.value
|
|
1193
|
+
}), null, 16, Ql)) : d.value == "span" ? (m(), z("span", A({ key: 26 }, e.value, {
|
|
1194
1194
|
innerHTML: X.value || l.value,
|
|
1195
|
-
style:
|
|
1196
|
-
}), null, 16,
|
|
1195
|
+
style: y.value
|
|
1196
|
+
}), null, 16, Zl)) : d.value == "custom" ? (m(), z("div", {
|
|
1197
1197
|
key: 27,
|
|
1198
|
-
style: Ye(
|
|
1198
|
+
style: Ye(y.value)
|
|
1199
1199
|
}, [
|
|
1200
|
-
(
|
|
1201
|
-
], 4)) : (
|
|
1200
|
+
(m(), E(Pe(e.value.component), Vt(Gt(L(Ne)(e.value, (i) => i != "component"))), null, 16))
|
|
1201
|
+
], 4)) : (m(), E(st, A({
|
|
1202
1202
|
key: 28,
|
|
1203
1203
|
modelValue: l.value,
|
|
1204
1204
|
"onUpdate:modelValue": M[27] || (M[27] = (i) => l.value = i),
|
|
@@ -1207,13 +1207,13 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1207
1207
|
clearable: !0,
|
|
1208
1208
|
onInput: M[28] || (M[28] = (i) => {
|
|
1209
1209
|
var oe;
|
|
1210
|
-
return d.value ==
|
|
1210
|
+
return d.value == L(xe).NUMBER ? We(i, ((oe = e.value) == null ? void 0 : oe.precision) || 2) : i;
|
|
1211
1211
|
}),
|
|
1212
1212
|
onClear: M[29] || (M[29] = () => {
|
|
1213
|
-
|
|
1213
|
+
u.t == "q" && t.value.table.load();
|
|
1214
1214
|
}),
|
|
1215
1215
|
disabled: t.value[n.value].disabled
|
|
1216
|
-
}, { ...
|
|
1216
|
+
}, { ...L(Ne)(e.value, (i) => !["suffix", "prefix", "append", "prepend"].includes(i)), type: d.value }), ge({ _: 2 }, [
|
|
1217
1217
|
(dt = e.value) != null && dt.suffix ? {
|
|
1218
1218
|
name: "suffix",
|
|
1219
1219
|
fn: _(() => {
|
|
@@ -1221,7 +1221,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1221
1221
|
return [
|
|
1222
1222
|
Z("div", {
|
|
1223
1223
|
innerHTML: ((i = e.value) == null ? void 0 : i.suffix) || ""
|
|
1224
|
-
}, null, 8,
|
|
1224
|
+
}, null, 8, Jl)
|
|
1225
1225
|
];
|
|
1226
1226
|
}),
|
|
1227
1227
|
key: "0"
|
|
@@ -1233,7 +1233,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1233
1233
|
return [
|
|
1234
1234
|
Z("div", {
|
|
1235
1235
|
innerHTML: ((i = e.value) == null ? void 0 : i.prefix) || ""
|
|
1236
|
-
}, null, 8,
|
|
1236
|
+
}, null, 8, Kl)
|
|
1237
1237
|
];
|
|
1238
1238
|
}),
|
|
1239
1239
|
key: "1"
|
|
@@ -1245,7 +1245,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1245
1245
|
return [
|
|
1246
1246
|
Z("div", {
|
|
1247
1247
|
innerHTML: ((i = e.value) == null ? void 0 : i.append) || ""
|
|
1248
|
-
}, null, 8,
|
|
1248
|
+
}, null, 8, ea)
|
|
1249
1249
|
];
|
|
1250
1250
|
}),
|
|
1251
1251
|
key: "2"
|
|
@@ -1257,15 +1257,15 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1257
1257
|
return [
|
|
1258
1258
|
Z("div", {
|
|
1259
1259
|
innerHTML: ((i = e.value) == null ? void 0 : i.prepend) || ""
|
|
1260
|
-
}, null, 8,
|
|
1260
|
+
}, null, 8, ta)
|
|
1261
1261
|
];
|
|
1262
1262
|
}),
|
|
1263
1263
|
key: "3"
|
|
1264
1264
|
} : void 0,
|
|
1265
|
-
N(
|
|
1265
|
+
N(D(), (i, oe) => ({
|
|
1266
1266
|
name: i,
|
|
1267
1267
|
fn: _((ce) => [
|
|
1268
|
-
x(V.$slots, `${
|
|
1268
|
+
x(V.$slots, `${u.t}-${n.value}-${i}`, {
|
|
1269
1269
|
data: ce,
|
|
1270
1270
|
form: r.formInfo
|
|
1271
1271
|
}, void 0, !0)
|
|
@@ -1276,7 +1276,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1276
1276
|
], 64);
|
|
1277
1277
|
};
|
|
1278
1278
|
}
|
|
1279
|
-
}), ht = /* @__PURE__ */ et(
|
|
1279
|
+
}), ht = /* @__PURE__ */ et(la, [["__scopeId", "data-v-70919846"]]), Rt = {
|
|
1280
1280
|
__name: "g-query-item",
|
|
1281
1281
|
props: /* @__PURE__ */ at(["more"], {
|
|
1282
1282
|
modelValue: { required: !0 },
|
|
@@ -1286,68 +1286,68 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1286
1286
|
}),
|
|
1287
1287
|
emits: ["update:modelValue", "update:info"],
|
|
1288
1288
|
setup(r) {
|
|
1289
|
-
const
|
|
1289
|
+
const u = lt(r, "modelValue"), e = r, l = lt(r, "info"), n = (v) => {
|
|
1290
1290
|
if (typeof v.search != "function") return v.search;
|
|
1291
1291
|
try {
|
|
1292
|
-
return v.search(l.value,
|
|
1293
|
-
} catch (
|
|
1294
|
-
return console.warn("解析 search 配置时出错:",
|
|
1292
|
+
return v.search(l.value, u.value.table);
|
|
1293
|
+
} catch (p) {
|
|
1294
|
+
return console.warn("解析 search 配置时出错:", p), null;
|
|
1295
1295
|
}
|
|
1296
1296
|
}, d = (v) => {
|
|
1297
|
-
const
|
|
1297
|
+
const p = Object.entries(u.value).filter(([, f]) => {
|
|
1298
1298
|
const o = n(f);
|
|
1299
1299
|
return f.search && (o == null ? void 0 : o.more) === v && (o == null ? void 0 : o.hidden) !== !0 && (o == null ? void 0 : o.visible) !== !1;
|
|
1300
|
-
}).sort(([f, o], [
|
|
1300
|
+
}).sort(([f, o], [y, U]) => {
|
|
1301
1301
|
var k, X;
|
|
1302
|
-
const
|
|
1303
|
-
return
|
|
1302
|
+
const j = Number((k = n(o)) == null ? void 0 : k.sort) || 0, D = Number((X = n(U)) == null ? void 0 : X.sort) || 0;
|
|
1303
|
+
return j - D;
|
|
1304
1304
|
});
|
|
1305
|
-
return Object.fromEntries(
|
|
1306
|
-
}, t = (v) => typeof v.search == "function" ? v.search(l.value,
|
|
1307
|
-
const
|
|
1308
|
-
return (
|
|
1305
|
+
return Object.fromEntries(p);
|
|
1306
|
+
}, t = (v) => typeof v.search == "function" ? v.search(l.value, u.value.table) : v.search || {}, c = (v) => {
|
|
1307
|
+
const p = t(v);
|
|
1308
|
+
return (p == null ? void 0 : p.type) || v.type;
|
|
1309
1309
|
}, T = (v) => {
|
|
1310
1310
|
var o;
|
|
1311
|
-
const
|
|
1312
|
-
let f = (
|
|
1311
|
+
const p = t(v);
|
|
1312
|
+
let f = (p == null ? void 0 : p.width) || ((o = u.value.queryItems) == null ? void 0 : o.width) || "100%";
|
|
1313
1313
|
return isNaN(f) || (f += "px"), f;
|
|
1314
1314
|
};
|
|
1315
|
-
return (v,
|
|
1315
|
+
return (v, p) => {
|
|
1316
1316
|
const f = F("el-form-item");
|
|
1317
|
-
return
|
|
1318
|
-
key:
|
|
1317
|
+
return m(!0), z(re, null, N(d(e.more), (o, y) => x(v.$slots, `q-${y}`, {
|
|
1318
|
+
key: y,
|
|
1319
1319
|
item: o,
|
|
1320
1320
|
queryModel: l.value,
|
|
1321
|
-
model:
|
|
1321
|
+
model: u.value
|
|
1322
1322
|
}, () => [
|
|
1323
1323
|
se(f, A({
|
|
1324
1324
|
label: o.label,
|
|
1325
1325
|
style: { width: T(o) }
|
|
1326
|
-
}, { ref_for: !0 }, { ...
|
|
1326
|
+
}, { ref_for: !0 }, { ...u.value.queryItems, ...t(o) }), {
|
|
1327
1327
|
label: _(() => [
|
|
1328
|
-
x(v.$slots, `q-${
|
|
1328
|
+
x(v.$slots, `q-${y}-label`, {
|
|
1329
1329
|
item: o,
|
|
1330
|
-
model:
|
|
1330
|
+
model: u.value
|
|
1331
1331
|
})
|
|
1332
1332
|
]),
|
|
1333
1333
|
default: _(() => [
|
|
1334
1334
|
se(ht, {
|
|
1335
|
-
modelValue: l.value[
|
|
1336
|
-
"onUpdate:modelValue": (
|
|
1335
|
+
modelValue: l.value[y],
|
|
1336
|
+
"onUpdate:modelValue": (U) => l.value[y] = U,
|
|
1337
1337
|
item: { getDicts: o == null ? void 0 : o.getDicts, ...o == null ? void 0 : o.editor, ...t(o) },
|
|
1338
|
-
ctrlKey:
|
|
1338
|
+
ctrlKey: y,
|
|
1339
1339
|
ctrlType: c(o),
|
|
1340
|
-
model:
|
|
1340
|
+
model: u.value,
|
|
1341
1341
|
t: "q",
|
|
1342
1342
|
formInfo: l.value
|
|
1343
1343
|
}, ge({ _: 2 }, [
|
|
1344
|
-
N(Object.keys(v.$slots), (
|
|
1345
|
-
name:
|
|
1346
|
-
fn: _((
|
|
1347
|
-
x(v.$slots,
|
|
1348
|
-
data:
|
|
1344
|
+
N(Object.keys(v.$slots), (U) => ({
|
|
1345
|
+
name: U,
|
|
1346
|
+
fn: _((j) => [
|
|
1347
|
+
x(v.$slots, U, {
|
|
1348
|
+
data: j,
|
|
1349
1349
|
item: o,
|
|
1350
|
-
model:
|
|
1350
|
+
model: u.value
|
|
1351
1351
|
})
|
|
1352
1352
|
])
|
|
1353
1353
|
}))
|
|
@@ -1358,10 +1358,10 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1358
1358
|
])), 128);
|
|
1359
1359
|
};
|
|
1360
1360
|
}
|
|
1361
|
-
},
|
|
1361
|
+
}, aa = {
|
|
1362
1362
|
key: 0,
|
|
1363
1363
|
class: "outer"
|
|
1364
|
-
},
|
|
1364
|
+
}, ra = { class: "inner" }, na = {
|
|
1365
1365
|
__name: "g-query",
|
|
1366
1366
|
props: {
|
|
1367
1367
|
modelValue: { required: !0 },
|
|
@@ -1370,12 +1370,12 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1370
1370
|
infoModifiers: {}
|
|
1371
1371
|
},
|
|
1372
1372
|
emits: /* @__PURE__ */ at(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1373
|
-
setup(r, { emit:
|
|
1374
|
-
const e = lt(r, "modelValue"), l =
|
|
1373
|
+
setup(r, { emit: u }) {
|
|
1374
|
+
const e = lt(r, "modelValue"), l = u, n = Ot("options"), d = ae(!1), t = lt(r, "info"), c = Fe(() => {
|
|
1375
1375
|
var X, J, ee;
|
|
1376
|
-
const
|
|
1376
|
+
const D = qe((X = n == null ? void 0 : n.query) == null ? void 0 : X.btns, (ee = (J = e.value) == null ? void 0 : J.query) == null ? void 0 : ee.btns) || { align: "left" };
|
|
1377
1377
|
return {
|
|
1378
|
-
justifyContent: { left: "flex-start", right: "flex-end", center: "center" }[
|
|
1378
|
+
justifyContent: { left: "flex-start", right: "flex-end", center: "center" }[D.align] || "flex-start"
|
|
1379
1379
|
};
|
|
1380
1380
|
}), T = {
|
|
1381
1381
|
hidden: !1,
|
|
@@ -1394,7 +1394,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1394
1394
|
hidden: !0,
|
|
1395
1395
|
type: "primary",
|
|
1396
1396
|
label: "更多",
|
|
1397
|
-
icon: () => _e(
|
|
1397
|
+
icon: () => _e(El),
|
|
1398
1398
|
click: () => {
|
|
1399
1399
|
d.value = !d.value;
|
|
1400
1400
|
}
|
|
@@ -1413,7 +1413,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1413
1413
|
hidden: !1,
|
|
1414
1414
|
type: "primary",
|
|
1415
1415
|
label: "查询",
|
|
1416
|
-
icon: () => _e(
|
|
1416
|
+
icon: () => _e(Vl),
|
|
1417
1417
|
click: () => {
|
|
1418
1418
|
l("query", t.value), d.value = !1;
|
|
1419
1419
|
}
|
|
@@ -1451,7 +1451,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1451
1451
|
v[e.value.query.more.mode] || {},
|
|
1452
1452
|
e.value.query.more.dialog
|
|
1453
1453
|
);
|
|
1454
|
-
const
|
|
1454
|
+
const p = {
|
|
1455
1455
|
type: "hidden",
|
|
1456
1456
|
hidden: !1,
|
|
1457
1457
|
labelPosition: "right",
|
|
@@ -1462,9 +1462,9 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1462
1462
|
alignItems: "flex-start"
|
|
1463
1463
|
}
|
|
1464
1464
|
};
|
|
1465
|
-
e.value.queryItems = qe(
|
|
1466
|
-
const f = (
|
|
1467
|
-
const X = Object.keys(
|
|
1465
|
+
e.value.queryItems = qe(p, n == null ? void 0 : n.queryItems, e.value.queryItems);
|
|
1466
|
+
const f = (D, k) => {
|
|
1467
|
+
const X = Object.keys(D.slots).filter((J) => J !== "default").reduce((J, ee) => (J[ee] = (ne) => D.slots[ee]({
|
|
1468
1468
|
model: e.value
|
|
1469
1469
|
// 传递当前模型数据
|
|
1470
1470
|
}), J), {});
|
|
@@ -1475,13 +1475,13 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1475
1475
|
"onUpdate:info": (J) => t.value = J,
|
|
1476
1476
|
more: k
|
|
1477
1477
|
}, X);
|
|
1478
|
-
}, o = Xt(),
|
|
1478
|
+
}, o = Xt(), y = () => {
|
|
1479
1479
|
var X, J, ee, ne, ue, pe, Se, De, me;
|
|
1480
|
-
const
|
|
1480
|
+
const D = [
|
|
1481
1481
|
{
|
|
1482
1482
|
key: "query",
|
|
1483
1483
|
hidden: (ee = (J = (X = e.value) == null ? void 0 : X.query) == null ? void 0 : J.query) == null ? void 0 : ee.hidden,
|
|
1484
|
-
component:
|
|
1484
|
+
component: je,
|
|
1485
1485
|
props: {
|
|
1486
1486
|
...e.value.query.query,
|
|
1487
1487
|
onClick: e.value.query.query.click
|
|
@@ -1492,7 +1492,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1492
1492
|
{
|
|
1493
1493
|
key: "reset",
|
|
1494
1494
|
hidden: (pe = (ue = (ne = e.value) == null ? void 0 : ne.query) == null ? void 0 : ue.reset) == null ? void 0 : pe.hidden,
|
|
1495
|
-
component:
|
|
1495
|
+
component: je,
|
|
1496
1496
|
props: {
|
|
1497
1497
|
...e.value.query.reset,
|
|
1498
1498
|
onClick: e.value.query.reset.click
|
|
@@ -1503,7 +1503,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1503
1503
|
{
|
|
1504
1504
|
key: "more",
|
|
1505
1505
|
hidden: (me = (De = (Se = e.value) == null ? void 0 : Se.query) == null ? void 0 : De.more) == null ? void 0 : me.hidden,
|
|
1506
|
-
component: e.value.query.more.mode === 3 ? At :
|
|
1506
|
+
component: e.value.query.more.mode === 3 ? At : je,
|
|
1507
1507
|
props: e.value.query.more.mode === 3 ? { ...e.value.query.more.dialog } : {
|
|
1508
1508
|
...e.value.query.more,
|
|
1509
1509
|
onClick: e.value.query.more.click
|
|
@@ -1516,59 +1516,59 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1516
1516
|
}, () => f({ slots: o }, !0)) : null
|
|
1517
1517
|
}
|
|
1518
1518
|
];
|
|
1519
|
-
return
|
|
1520
|
-
reference: () => _e(
|
|
1519
|
+
return D.sort((P, Te) => P.sort - Te.sort), D.filter((P) => !P.hidden).map((P) => P.key === "more" && P.component === At ? _e(At, P.props, {
|
|
1520
|
+
reference: () => _e(je, e.value.query.more, () => P.label),
|
|
1521
1521
|
default: P.content
|
|
1522
1522
|
}) : (P.props.slot = "query-" + P.key, P.label ? _e(P.component, P.props, () => P.label) : _e(P.component, P.props)));
|
|
1523
|
-
},
|
|
1523
|
+
}, U = Fe(() => ({
|
|
1524
1524
|
display: "flex",
|
|
1525
1525
|
flexDirection: e.value.query.container.mode === "row" ? "row" : "column"
|
|
1526
|
-
})),
|
|
1526
|
+
})), j = () => {
|
|
1527
1527
|
};
|
|
1528
|
-
return (
|
|
1529
|
-
var ee, ne, ue, pe, Se, De, me, P, Te, We, w, $, b,
|
|
1528
|
+
return (D, k) => {
|
|
1529
|
+
var ee, ne, ue, pe, Se, De, me, P, Te, We, w, $, b, h, S, O, I;
|
|
1530
1530
|
const X = F("el-form-item"), J = F("el-drawer");
|
|
1531
|
-
return
|
|
1531
|
+
return m(), z(re, null, [
|
|
1532
1532
|
Z("div", {
|
|
1533
1533
|
class: "g-query-container",
|
|
1534
|
-
style: Ye({ ...
|
|
1535
|
-
onDblclick:
|
|
1534
|
+
style: Ye({ ...U.value, ...((ne = (ee = e.value.query) == null ? void 0 : ee.container) == null ? void 0 : ne.style) || {} }),
|
|
1535
|
+
onDblclick: j
|
|
1536
1536
|
}, [
|
|
1537
|
-
se(
|
|
1537
|
+
se(L(Mt), A({
|
|
1538
1538
|
onSubmit: k[0] || (k[0] = vt(() => {
|
|
1539
1539
|
}, ["prevent"]))
|
|
1540
|
-
},
|
|
1540
|
+
}, L(Ne)(e.value.query, (Y) => !["query", "more", "reset", "btns"].includes(Y))), {
|
|
1541
1541
|
default: _(() => {
|
|
1542
1542
|
var Y, le;
|
|
1543
1543
|
return [
|
|
1544
|
-
(
|
|
1545
|
-
((le = (Y = e.value.query) == null ? void 0 : Y.container) == null ? void 0 : le.inline) === !0 ? (
|
|
1544
|
+
(m(), E(Pe(f({ slots: D.$slots }, void 0)))),
|
|
1545
|
+
((le = (Y = e.value.query) == null ? void 0 : Y.container) == null ? void 0 : le.inline) === !0 ? (m(), E(X, { key: 0 }, {
|
|
1546
1546
|
default: _(() => {
|
|
1547
1547
|
var de, ye, W, G, Ve;
|
|
1548
1548
|
return [
|
|
1549
1549
|
Z("div", {
|
|
1550
1550
|
style: Ye((ye = (de = e.value.query) == null ? void 0 : de.btns) == null ? void 0 : ye.style)
|
|
1551
1551
|
}, [
|
|
1552
|
-
e.value.query.group ? (
|
|
1552
|
+
e.value.query.group ? (m(), E(L(St), { key: 0 }, {
|
|
1553
1553
|
default: _(() => [
|
|
1554
|
-
(
|
|
1555
|
-
(
|
|
1554
|
+
(m(!0), z(re, null, N(y(), (ke) => x(D.$slots, ke.props.slot, {}, () => [
|
|
1555
|
+
(m(), E(Pe(ke)))
|
|
1556
1556
|
], !0)), 256)),
|
|
1557
|
-
x(
|
|
1557
|
+
x(D.$slots, "q-btns", {}, void 0, !0)
|
|
1558
1558
|
]),
|
|
1559
1559
|
_: 3
|
|
1560
|
-
})) : (
|
|
1561
|
-
(Ve = (G = (W = e.value) == null ? void 0 : W.query) == null ? void 0 : G.btns) != null && Ve.group ? (
|
|
1560
|
+
})) : (m(), z(re, { key: 1 }, [
|
|
1561
|
+
(Ve = (G = (W = e.value) == null ? void 0 : W.query) == null ? void 0 : G.btns) != null && Ve.group ? (m(), E(L(St), { key: 0 }, {
|
|
1562
1562
|
default: _(() => [
|
|
1563
|
-
(
|
|
1564
|
-
(
|
|
1563
|
+
(m(!0), z(re, null, N(y(), (ke) => x(D.$slots, ke.props.slot, {}, () => [
|
|
1564
|
+
(m(), E(Pe(ke)))
|
|
1565
1565
|
], !0)), 256))
|
|
1566
1566
|
]),
|
|
1567
1567
|
_: 3
|
|
1568
|
-
})) : (
|
|
1569
|
-
(
|
|
1568
|
+
})) : (m(!0), z(re, { key: 1 }, N(y(), (ke) => x(D.$slots, ke.props.slot, {}, () => [
|
|
1569
|
+
(m(), E(Pe(ke)))
|
|
1570
1570
|
], !0)), 256)),
|
|
1571
|
-
x(
|
|
1571
|
+
x(D.$slots, "q-btns", {}, void 0, !0)
|
|
1572
1572
|
], 64))
|
|
1573
1573
|
], 4)
|
|
1574
1574
|
];
|
|
@@ -1579,34 +1579,34 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1579
1579
|
}),
|
|
1580
1580
|
_: 3
|
|
1581
1581
|
}, 16),
|
|
1582
|
-
((Se = (pe = (ue = e.value) == null ? void 0 : ue.query) == null ? void 0 : pe.container) == null ? void 0 : Se.inline) === !1 ? (
|
|
1582
|
+
((Se = (pe = (ue = e.value) == null ? void 0 : ue.query) == null ? void 0 : pe.container) == null ? void 0 : Se.inline) === !1 ? (m(), z("div", {
|
|
1583
1583
|
key: 0,
|
|
1584
1584
|
style: Ye([{ "margin-bottom": "18px" }, (me = (De = e.value.query) == null ? void 0 : De.btns) == null ? void 0 : me.style])
|
|
1585
1585
|
}, [
|
|
1586
|
-
e.value.query.group ? (
|
|
1586
|
+
e.value.query.group ? (m(), E(L(St), { key: 0 }, {
|
|
1587
1587
|
default: _(() => [
|
|
1588
|
-
(
|
|
1589
|
-
(
|
|
1588
|
+
(m(!0), z(re, null, N(y(), (Y) => x(D.$slots, Y.props.slot, {}, () => [
|
|
1589
|
+
(m(), E(Pe(Y)))
|
|
1590
1590
|
], !0)), 256)),
|
|
1591
|
-
x(
|
|
1591
|
+
x(D.$slots, "q-btns", {}, void 0, !0)
|
|
1592
1592
|
]),
|
|
1593
1593
|
_: 3
|
|
1594
|
-
})) : (
|
|
1595
|
-
(Te = (P = e.value.query) == null ? void 0 : P.btns) != null && Te.group ? (
|
|
1594
|
+
})) : (m(), z(re, { key: 1 }, [
|
|
1595
|
+
(Te = (P = e.value.query) == null ? void 0 : P.btns) != null && Te.group ? (m(), E(L(St), { key: 0 }, {
|
|
1596
1596
|
default: _(() => [
|
|
1597
|
-
(
|
|
1598
|
-
(
|
|
1597
|
+
(m(!0), z(re, null, N(y(), (Y) => x(D.$slots, Y.props.slot, {}, () => [
|
|
1598
|
+
(m(), E(Pe(Y)))
|
|
1599
1599
|
], !0)), 256))
|
|
1600
1600
|
]),
|
|
1601
1601
|
_: 3
|
|
1602
|
-
})) : (
|
|
1603
|
-
(
|
|
1602
|
+
})) : (m(!0), z(re, { key: 1 }, N(y(), (Y) => x(D.$slots, Y.props.slot, {}, () => [
|
|
1603
|
+
(m(), E(Pe(Y)))
|
|
1604
1604
|
], !0)), 256)),
|
|
1605
|
-
x(
|
|
1605
|
+
x(D.$slots, "q-btns", {}, void 0, !0)
|
|
1606
1606
|
], 64))
|
|
1607
1607
|
], 4)) : be("", !0)
|
|
1608
1608
|
], 36),
|
|
1609
|
-
d.value && !(($ = (w = (We = e.value) == null ? void 0 : We.query) == null ? void 0 : w.more) != null && $.hidden) && e.value.query.more.mode == 2 ? (
|
|
1609
|
+
d.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(J, A({
|
|
1610
1610
|
key: 0,
|
|
1611
1611
|
modelValue: d.value,
|
|
1612
1612
|
"onUpdate:modelValue": k[6] || (k[6] = (Y) => d.value = Y),
|
|
@@ -1614,10 +1614,10 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1614
1614
|
"show-close": !1
|
|
1615
1615
|
}, e.value.query.more.dialog), ge({
|
|
1616
1616
|
default: _(() => [
|
|
1617
|
-
se(
|
|
1617
|
+
se(L(Mt), A({
|
|
1618
1618
|
onSubmit: k[3] || (k[3] = vt(() => {
|
|
1619
1619
|
}, ["prevent"]))
|
|
1620
|
-
},
|
|
1620
|
+
}, L(Ne)(e.value.query, (Y) => !["query", "more", "reset"].includes(Y)), { style: { width: "98%" } }), {
|
|
1621
1621
|
default: _(() => [
|
|
1622
1622
|
se(Rt, {
|
|
1623
1623
|
modelValue: e.value,
|
|
@@ -1626,10 +1626,10 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1626
1626
|
"onUpdate:info": k[2] || (k[2] = (Y) => t.value = Y),
|
|
1627
1627
|
more: !0
|
|
1628
1628
|
}, ge({ _: 2 }, [
|
|
1629
|
-
N(
|
|
1629
|
+
N(D.$slots, (Y, le, de) => ({
|
|
1630
1630
|
name: le,
|
|
1631
1631
|
fn: _((ye) => [
|
|
1632
|
-
x(
|
|
1632
|
+
x(D.$slots, le, { model: e.value }, void 0, !0)
|
|
1633
1633
|
])
|
|
1634
1634
|
}))
|
|
1635
1635
|
]), 1032, ["modelValue", "info"])
|
|
@@ -1639,11 +1639,11 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1639
1639
|
]),
|
|
1640
1640
|
_: 2
|
|
1641
1641
|
}, [
|
|
1642
|
-
(
|
|
1642
|
+
(I = (O = (S = (h = (b = e.value) == null ? void 0 : b.query) == null ? void 0 : h.more) == null ? void 0 : S.dialog) == null ? void 0 : O.footer) != null && I.hidden ? void 0 : {
|
|
1643
1643
|
name: "footer",
|
|
1644
1644
|
fn: _(() => [
|
|
1645
1645
|
Z("div", Vt(Gt(e.value.query.more.dialog.footer)), [
|
|
1646
|
-
se(
|
|
1646
|
+
se(L(je), A(e.value.query.query, {
|
|
1647
1647
|
onClick: k[4] || (k[4] = (Y) => e.value.query.query.click())
|
|
1648
1648
|
}), {
|
|
1649
1649
|
default: _(() => [
|
|
@@ -1651,7 +1651,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1651
1651
|
]),
|
|
1652
1652
|
_: 1
|
|
1653
1653
|
}, 16),
|
|
1654
|
-
se(
|
|
1654
|
+
se(L(je), A(e.value.query.reset, {
|
|
1655
1655
|
onClick: k[5] || (k[5] = (Y) => e.value.query.reset.click())
|
|
1656
1656
|
}), {
|
|
1657
1657
|
default: _(() => [
|
|
@@ -1664,7 +1664,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1664
1664
|
key: "0"
|
|
1665
1665
|
}
|
|
1666
1666
|
]), 1040, ["modelValue"])) : be("", !0),
|
|
1667
|
-
se(
|
|
1667
|
+
se($l, {
|
|
1668
1668
|
duration: 300,
|
|
1669
1669
|
name: "nested",
|
|
1670
1670
|
style: { padding: "10px" }
|
|
@@ -1672,19 +1672,19 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1672
1672
|
default: _(() => {
|
|
1673
1673
|
var Y, le, de;
|
|
1674
1674
|
return [
|
|
1675
|
-
d.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 ? (
|
|
1676
|
-
Z("div",
|
|
1677
|
-
e.value.query.more.mode == 1 ?
|
|
1675
|
+
d.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", aa, [
|
|
1676
|
+
Z("div", ra, [
|
|
1677
|
+
e.value.query.more.mode == 1 ? wl((m(), E(L(Mt), A({
|
|
1678
1678
|
key: 0,
|
|
1679
1679
|
onSubmit: k[7] || (k[7] = vt(() => {
|
|
1680
1680
|
}, ["prevent"]))
|
|
1681
|
-
},
|
|
1681
|
+
}, L(Ne)(e.value.query, (ye) => !["query", "more", "reset"].includes(ye))), {
|
|
1682
1682
|
default: _(() => [
|
|
1683
|
-
(
|
|
1683
|
+
(m(), E(Pe(f({ slots: D.$slots }, !0))))
|
|
1684
1684
|
]),
|
|
1685
1685
|
_: 1
|
|
1686
1686
|
}, 16)), [
|
|
1687
|
-
[
|
|
1687
|
+
[kl, d.value]
|
|
1688
1688
|
]) : be("", !0)
|
|
1689
1689
|
])
|
|
1690
1690
|
])) : be("", !0)
|
|
@@ -1695,7 +1695,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1695
1695
|
], 64);
|
|
1696
1696
|
};
|
|
1697
1697
|
}
|
|
1698
|
-
},
|
|
1698
|
+
}, oa = /* @__PURE__ */ et(na, [["__scopeId", "data-v-eaca2240"]]), sl = {
|
|
1699
1699
|
inline: !0,
|
|
1700
1700
|
type: "hidden",
|
|
1701
1701
|
"scroll-to-error": !0,
|
|
@@ -1735,7 +1735,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1735
1735
|
label: "保存提交",
|
|
1736
1736
|
plain: !0,
|
|
1737
1737
|
hidden: !0,
|
|
1738
|
-
icon: () => _e(
|
|
1738
|
+
icon: () => _e(Ol)
|
|
1739
1739
|
},
|
|
1740
1740
|
//表单重置按钮属性
|
|
1741
1741
|
reset: {
|
|
@@ -1750,14 +1750,14 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1750
1750
|
label: "取消",
|
|
1751
1751
|
hidden: !0,
|
|
1752
1752
|
plain: !0,
|
|
1753
|
-
icon: () => _e(
|
|
1753
|
+
icon: () => _e(Dl)
|
|
1754
1754
|
},
|
|
1755
1755
|
slots: {},
|
|
1756
1756
|
tabs: {
|
|
1757
1757
|
type: "card",
|
|
1758
1758
|
editable: !1
|
|
1759
1759
|
}
|
|
1760
|
-
}, il = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"],
|
|
1760
|
+
}, il = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"], ua = { class: "g-form-container" }, sa = /* @__PURE__ */ Object.assign({
|
|
1761
1761
|
name: "g-form",
|
|
1762
1762
|
inheritAttrs: !1
|
|
1763
1763
|
}, {
|
|
@@ -1767,7 +1767,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1767
1767
|
modelModifiers: {}
|
|
1768
1768
|
}),
|
|
1769
1769
|
emits: /* @__PURE__ */ at(["submit", "reset"], ["update:modelValue"]),
|
|
1770
|
-
setup(r, { expose:
|
|
1770
|
+
setup(r, { expose: u, emit: e }) {
|
|
1771
1771
|
var Se, De, me, P, Te, We;
|
|
1772
1772
|
const l = lt(r, "modelValue"), n = e, d = ae(null), t = Ot("options"), c = ae({}), T = ae(""), v = r;
|
|
1773
1773
|
l.value.form = qe(
|
|
@@ -1778,16 +1778,16 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1778
1778
|
(me = (De = l.value) == null ? void 0 : De.form) == null ? void 0 : me.style,
|
|
1779
1779
|
{ ...(P = It()) == null ? void 0 : P.style }
|
|
1780
1780
|
);
|
|
1781
|
-
const
|
|
1782
|
-
let
|
|
1783
|
-
for (;
|
|
1781
|
+
const p = async (w, $, b) => {
|
|
1782
|
+
let h = 5;
|
|
1783
|
+
for (; h > 0; ) {
|
|
1784
1784
|
if (await Ke(), d.value) {
|
|
1785
|
-
d.value.validate((S,
|
|
1786
|
-
S ? n("submit", w, $, b) : console.error("表单验证不通过!",
|
|
1785
|
+
d.value.validate((S, O) => {
|
|
1786
|
+
S ? n("submit", w, $, b) : console.error("表单验证不通过!", O);
|
|
1787
1787
|
});
|
|
1788
1788
|
return;
|
|
1789
1789
|
}
|
|
1790
|
-
|
|
1790
|
+
h--, await new Promise((S) => setTimeout(S, 50));
|
|
1791
1791
|
}
|
|
1792
1792
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1793
1793
|
}, f = async (w, $) => {
|
|
@@ -1797,15 +1797,15 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1797
1797
|
try {
|
|
1798
1798
|
d.value.resetFields(), n("reset", w, $);
|
|
1799
1799
|
return;
|
|
1800
|
-
} catch (
|
|
1801
|
-
console.error("表单重置失败:",
|
|
1800
|
+
} catch (h) {
|
|
1801
|
+
console.error("表单重置失败:", h);
|
|
1802
1802
|
return;
|
|
1803
1803
|
}
|
|
1804
|
-
b--, b > 0 && await new Promise((
|
|
1804
|
+
b--, b > 0 && await new Promise((h) => setTimeout(h, 50));
|
|
1805
1805
|
}
|
|
1806
1806
|
console.error("表单实例获取失败,无法重置表单");
|
|
1807
1807
|
};
|
|
1808
|
-
l.value.form.submit.click =
|
|
1808
|
+
l.value.form.submit.click = p, l.value.form.saveSubmit.click = p, l.value.form.reset.click = f;
|
|
1809
1809
|
const o = {
|
|
1810
1810
|
type: "hidden",
|
|
1811
1811
|
labelPosition: "right",
|
|
@@ -1818,21 +1818,21 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1818
1818
|
t == null ? void 0 : t.formItems,
|
|
1819
1819
|
(Te = l == null ? void 0 : l.value) == null ? void 0 : Te.formItems
|
|
1820
1820
|
);
|
|
1821
|
-
const
|
|
1821
|
+
const y = {
|
|
1822
1822
|
span: 12,
|
|
1823
1823
|
offset: 0
|
|
1824
1824
|
};
|
|
1825
1825
|
l.value.form.cols = qe(
|
|
1826
|
-
|
|
1826
|
+
y,
|
|
1827
1827
|
(We = t == null ? void 0 : t.form) == null ? void 0 : We.cols,
|
|
1828
1828
|
l.value.form.cols
|
|
1829
1829
|
);
|
|
1830
|
-
const
|
|
1830
|
+
const U = (w) => {
|
|
1831
1831
|
let $ = [];
|
|
1832
1832
|
if (w.rules)
|
|
1833
1833
|
$ = w.rules;
|
|
1834
1834
|
else {
|
|
1835
|
-
const
|
|
1835
|
+
const h = { ...{
|
|
1836
1836
|
required: void 0,
|
|
1837
1837
|
max: void 0,
|
|
1838
1838
|
min: void 0,
|
|
@@ -1841,72 +1841,72 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1841
1841
|
pattern: void 0,
|
|
1842
1842
|
validate: void 0
|
|
1843
1843
|
}, ...w };
|
|
1844
|
-
|
|
1844
|
+
h.required && $.push({
|
|
1845
1845
|
required: !0,
|
|
1846
|
-
message: `${
|
|
1846
|
+
message: `${h.label}不能为空!`,
|
|
1847
1847
|
trigger: "blur"
|
|
1848
|
-
}),
|
|
1849
|
-
validator: (S,
|
|
1850
|
-
if (
|
|
1851
|
-
|
|
1852
|
-
new Error(`${
|
|
1853
|
-
) :
|
|
1848
|
+
}), h.max !== void 0 && h.max !== null && h.max !== "" && (h.min === void 0 || h.min === null || h.min === "") && $.push({
|
|
1849
|
+
validator: (S, O, I) => {
|
|
1850
|
+
if (O == null || O === "") return I();
|
|
1851
|
+
h.type !== "number" && h.type !== "input-number" ? ((O == null ? void 0 : O.toString()) || "").length > Number(h.max) ? I(
|
|
1852
|
+
new Error(`${h.label}长度不能超过${h.max}个字符!`)
|
|
1853
|
+
) : I() : Number(O) > Number(h.max) ? I(new Error(`${h.label}不能大于${h.max}!`)) : I();
|
|
1854
1854
|
}
|
|
1855
|
-
}),
|
|
1856
|
-
validator: (S,
|
|
1857
|
-
if (
|
|
1858
|
-
|
|
1855
|
+
}), h.min !== void 0 && h.min !== null && h.min !== "" && (h.max === void 0 || h.max === null || h.max === "") && $.push({
|
|
1856
|
+
validator: (S, O, I) => {
|
|
1857
|
+
if (O == null || O === "") return I();
|
|
1858
|
+
h.type !== "number" && h.type !== "input-number" ? Number(h.min) < 1 ? I(
|
|
1859
1859
|
new Error(
|
|
1860
|
-
`${
|
|
1860
|
+
`${h.label}长度最小值${h.min}设置错误!`
|
|
1861
1861
|
)
|
|
1862
|
-
) :
|
|
1862
|
+
) : O.toString().length < Number(h.min) ? I(
|
|
1863
1863
|
new Error(
|
|
1864
|
-
`${
|
|
1864
|
+
`${h.label}长度不能少于${h.min}个字符!`
|
|
1865
1865
|
)
|
|
1866
|
-
) :
|
|
1866
|
+
) : I() : Number(O) < Number(h.min) ? I(new Error(`${h.label}不能小于${h.min}!`)) : I();
|
|
1867
1867
|
}
|
|
1868
|
-
}),
|
|
1869
|
-
validator: (S,
|
|
1870
|
-
if (
|
|
1871
|
-
const Y = Number(
|
|
1872
|
-
|
|
1868
|
+
}), h.min !== void 0 && h.min !== null && h.min !== "" && h.max !== void 0 && h.max !== null && h.max !== "" && $.push({
|
|
1869
|
+
validator: (S, O, I) => {
|
|
1870
|
+
if (O == null || O === "") return I();
|
|
1871
|
+
const Y = Number(h.min), le = Number(h.max);
|
|
1872
|
+
h.type !== "number" && h.type !== "input-number" ? Number(h.min) < 1 ? I(
|
|
1873
1873
|
new Error(
|
|
1874
|
-
`${
|
|
1874
|
+
`${h.label}长度最小值${h.min}设置错误!`
|
|
1875
1875
|
)
|
|
1876
|
-
) :
|
|
1876
|
+
) : O.toString().length < Y || O.toString().length > le ? I(
|
|
1877
1877
|
new Error(
|
|
1878
|
-
`${
|
|
1878
|
+
`${h.label}长度必须在${Y}-${le}个字符之间!`
|
|
1879
1879
|
)
|
|
1880
|
-
) :
|
|
1880
|
+
) : I() : Number(O) < Y || O > le ? I(new Error(`${h.label}必须在${Y}-${le}之间!`)) : I();
|
|
1881
1881
|
}
|
|
1882
|
-
}),
|
|
1883
|
-
pattern:
|
|
1884
|
-
message: (
|
|
1885
|
-
}),
|
|
1886
|
-
validator: (S,
|
|
1882
|
+
}), h.type == "email" && $.push({ type: "email", message: "不是一个正确的邮箱地址!" }), h.type == "url" && $.push({ type: "url", message: "不是一个合正确的URL!" }), h.pattern && $.push({
|
|
1883
|
+
pattern: h == null ? void 0 : h.pattern,
|
|
1884
|
+
message: (h == null ? void 0 : h.message) || "格式不正确!"
|
|
1885
|
+
}), h.validate && $.push({
|
|
1886
|
+
validator: (S, O, I) => h.validate(S, O, I)
|
|
1887
1887
|
});
|
|
1888
1888
|
}
|
|
1889
1889
|
return $;
|
|
1890
|
-
},
|
|
1891
|
-
var S,
|
|
1892
|
-
const b = $ ? w : w == null ? void 0 : w.item,
|
|
1893
|
-
if (((
|
|
1894
|
-
const de = typeof (b == null ? void 0 : b.editor) == "object" ? (
|
|
1895
|
-
return { ...
|
|
1890
|
+
}, j = (w, $ = !1) => {
|
|
1891
|
+
var S, O, I, Y, le;
|
|
1892
|
+
const b = $ ? w : w == null ? void 0 : w.item, h = typeof (b == null ? void 0 : b.editor) == "function" ? b.editor(c.value, (S = l.value.form) == null ? void 0 : S.modalState) : (b == null ? void 0 : b.editor) || {};
|
|
1893
|
+
if (((O = l.value.form) == null ? void 0 : O.modalState) === "edit") {
|
|
1894
|
+
const de = typeof (b == null ? void 0 : b.editor) == "object" ? (I = b.editor) == null ? void 0 : I.ep : typeof (b == null ? void 0 : b.editor) == "function" ? h == null ? void 0 : h.ep : {};
|
|
1895
|
+
return { ...h, ...de };
|
|
1896
1896
|
}
|
|
1897
1897
|
if (((Y = l.value.form) == null ? void 0 : Y.modalState) === "add") {
|
|
1898
|
-
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" ?
|
|
1899
|
-
return { ...
|
|
1898
|
+
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 : {};
|
|
1899
|
+
return { ...h, ...de };
|
|
1900
1900
|
}
|
|
1901
|
-
return
|
|
1902
|
-
},
|
|
1903
|
-
var b,
|
|
1901
|
+
return h;
|
|
1902
|
+
}, D = (w) => {
|
|
1903
|
+
var b, h, S, O, I;
|
|
1904
1904
|
const $ = typeof w.editor == "function" ? w.editor(c.value, (b = l.value.form) == null ? void 0 : b.modalState) : w.editor;
|
|
1905
|
-
return ((
|
|
1905
|
+
return ((h = l.value.form) == null ? void 0 : h.modalState) === "edit" ? ((S = $ == null ? void 0 : $.ep) == null ? void 0 : S.type) ?? ($ == null ? void 0 : $.type) ?? w.type : ((O = l.value.form) == null ? void 0 : O.modalState) === "add" ? ((I = $ == null ? void 0 : $.ap) == null ? void 0 : I.type) ?? ($ == null ? void 0 : $.type) ?? w.type : ($ == null ? void 0 : $.type) ?? w.type;
|
|
1906
1906
|
}, k = (w) => w === "left" ? "flex-start" : w === "right" ? "flex-end" : w === "center" ? "center" : "flex-end";
|
|
1907
1907
|
yt(() => {
|
|
1908
1908
|
X(), v != null && v.editForm ? c.value = v.editForm : c.value = ee.value;
|
|
1909
|
-
}),
|
|
1909
|
+
}), _l(() => {
|
|
1910
1910
|
d.value = null;
|
|
1911
1911
|
});
|
|
1912
1912
|
const X = () => {
|
|
@@ -1922,29 +1922,29 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1922
1922
|
}, J = Fe(
|
|
1923
1923
|
() => Object.fromEntries(
|
|
1924
1924
|
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) => {
|
|
1925
|
-
var b,
|
|
1925
|
+
var b, h, S;
|
|
1926
1926
|
const $ = typeof w[1].editor == "function" ? w[1].editor(c.value, (b = l.value.form) == null ? void 0 : b.modalState) : w[1].editor;
|
|
1927
|
-
return l.value.form.modalState === "edit" ? ((
|
|
1927
|
+
return l.value.form.modalState === "edit" ? ((h = $ == null ? void 0 : $.ep) == null ? void 0 : h.editor) !== !1 : l.value.form.modalState === "add" ? ((S = $ == null ? void 0 : $.ap) == null ? void 0 : S.editor) !== !1 : !0;
|
|
1928
1928
|
}).map((w) => [w[0], w[1]])
|
|
1929
1929
|
)
|
|
1930
1930
|
), ee = Fe(
|
|
1931
1931
|
() => Object.fromEntries(
|
|
1932
1932
|
Object.entries(l.value).filter((w) => w[1].type != "hidden").filter((w) => w[1].type != "control").map(([w, $]) => {
|
|
1933
|
-
var S,
|
|
1933
|
+
var S, O, I;
|
|
1934
1934
|
const b = typeof $.editor == "function" ? $.editor(c.value, (S = l.value.form) == null ? void 0 : S.modalState) : $.editor;
|
|
1935
|
-
let
|
|
1936
|
-
return l.value.form.modalState === "add" ?
|
|
1935
|
+
let h;
|
|
1936
|
+
return l.value.form.modalState === "add" ? h = ((O = b == null ? void 0 : b.ap) == null ? void 0 : O.value) !== void 0 ? b.ap.value : (b == null ? void 0 : b.value) !== void 0 ? b.value : $.value : l.value.form.modalState === "edit" ? h = ((I = b == null ? void 0 : b.ep) == null ? void 0 : I.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];
|
|
1937
1937
|
})
|
|
1938
1938
|
)
|
|
1939
1939
|
), ne = Fe(() => {
|
|
1940
1940
|
const w = /* @__PURE__ */ new Map();
|
|
1941
1941
|
return Object.entries(J.value).forEach(([$, b]) => {
|
|
1942
1942
|
if (b.groupName) {
|
|
1943
|
-
const
|
|
1944
|
-
w.has(
|
|
1945
|
-
groupName:
|
|
1943
|
+
const h = b.groupName;
|
|
1944
|
+
w.has(h) || w.set(h, {
|
|
1945
|
+
groupName: h,
|
|
1946
1946
|
items: []
|
|
1947
|
-
}), w.get(
|
|
1947
|
+
}), w.get(h).items.push({ key: $, item: b });
|
|
1948
1948
|
}
|
|
1949
1949
|
}), w.forEach(($) => {
|
|
1950
1950
|
$.tabPane = qe(
|
|
@@ -1994,16 +1994,16 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1994
1994
|
originalOrder: 1
|
|
1995
1995
|
}
|
|
1996
1996
|
]), pe = Fe(() => ue.value.filter((w) => !w.hidden).sort((w, $) => w.sort - $.sort || w.originalOrder - $.originalOrder));
|
|
1997
|
-
return
|
|
1998
|
-
submit:
|
|
1999
|
-
saveSubmit:
|
|
1997
|
+
return u({
|
|
1998
|
+
submit: p,
|
|
1999
|
+
saveSubmit: p,
|
|
2000
2000
|
reset: f,
|
|
2001
2001
|
formData: c
|
|
2002
2002
|
}), (w, $) => {
|
|
2003
2003
|
var le, de, ye;
|
|
2004
|
-
const b = F("el-form-item"),
|
|
2005
|
-
return
|
|
2006
|
-
se(
|
|
2004
|
+
const b = F("el-form-item"), h = F("el-col"), S = F("el-tab-pane"), O = F("el-tabs"), I = F("el-form"), Y = F("el-button");
|
|
2005
|
+
return m(), z("div", ua, [
|
|
2006
|
+
se(I, A(
|
|
2007
2007
|
{
|
|
2008
2008
|
ref_key: "gform",
|
|
2009
2009
|
ref: d,
|
|
@@ -2015,28 +2015,28 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2015
2015
|
"box-sizing": "border-box"
|
|
2016
2016
|
}
|
|
2017
2017
|
},
|
|
2018
|
-
|
|
2018
|
+
L(Ne)(
|
|
2019
2019
|
l.value.form,
|
|
2020
2020
|
(W) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(W)
|
|
2021
2021
|
)
|
|
2022
2022
|
), {
|
|
2023
2023
|
default: _(() => [
|
|
2024
2024
|
ne.value.length > 0 ? x(w.$slots, "default", { key: 0 }, () => [
|
|
2025
|
-
se(
|
|
2025
|
+
se(O, A({
|
|
2026
2026
|
class: "demo-tabs",
|
|
2027
2027
|
modelValue: ne.value[0].groupName,
|
|
2028
2028
|
"onUpdate:modelValue": $[0] || ($[0] = (W) => ne.value[0].groupName = W),
|
|
2029
2029
|
style: { width: "100%" }
|
|
2030
2030
|
}, l.value.form.tabs), {
|
|
2031
2031
|
default: _(() => [
|
|
2032
|
-
(
|
|
2032
|
+
(m(!0), z(re, null, N(ne.value, (W) => (m(), E(S, A({
|
|
2033
2033
|
key: W.groupName,
|
|
2034
2034
|
label: W.groupName,
|
|
2035
2035
|
name: W.groupName,
|
|
2036
2036
|
style: { width: "100%", display: "flex", "flex-wrap": "wrap" }
|
|
2037
2037
|
}, { ref_for: !0 }, W.tabPane), {
|
|
2038
2038
|
default: _(() => [
|
|
2039
|
-
(
|
|
2039
|
+
(m(!0), z(re, null, N(W.items, (G, Ve) => (m(), E(h, A({ ref_for: !0 }, { ...l.value.form.cols, ...G == null ? void 0 : G.item.col }, {
|
|
2040
2040
|
key: G.key,
|
|
2041
2041
|
style: { width: "100%" }
|
|
2042
2042
|
}), {
|
|
@@ -2046,7 +2046,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2046
2046
|
se(b, A({
|
|
2047
2047
|
label: G == null ? void 0 : G.item.label,
|
|
2048
2048
|
prop: G.key,
|
|
2049
|
-
rules:
|
|
2049
|
+
rules: U(G == null ? void 0 : G.item)
|
|
2050
2050
|
}, { ref_for: !0 }, { ...(ke = l.value) == null ? void 0 : ke.formItems, ...(Ie = G == null ? void 0 : G.item) == null ? void 0 : Ie.formItem }, { style: { width: "100%" } }), {
|
|
2051
2051
|
default: _(() => [
|
|
2052
2052
|
x(w.$slots, "f-" + G.key, {
|
|
@@ -2055,12 +2055,12 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2055
2055
|
model: l.value,
|
|
2056
2056
|
form: c.value
|
|
2057
2057
|
}, () => [
|
|
2058
|
-
(
|
|
2058
|
+
(m(), E(ht, {
|
|
2059
2059
|
modelValue: c.value[G.key],
|
|
2060
2060
|
"onUpdate:modelValue": (V) => c.value[G.key] = V,
|
|
2061
|
-
item:
|
|
2061
|
+
item: j(G),
|
|
2062
2062
|
ctrlKey: G.key,
|
|
2063
|
-
ctrlType:
|
|
2063
|
+
ctrlType: D(G == null ? void 0 : G.item),
|
|
2064
2064
|
model: l.value,
|
|
2065
2065
|
key: `${G.key}-${T.value}`,
|
|
2066
2066
|
class: "g-ctrl-container",
|
|
@@ -2069,9 +2069,9 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2069
2069
|
}, ge({ _: 2 }, [
|
|
2070
2070
|
N(w.$slots, (V, M) => ({
|
|
2071
2071
|
name: M,
|
|
2072
|
-
fn: _((
|
|
2072
|
+
fn: _((H) => [
|
|
2073
2073
|
x(w.$slots, M, {
|
|
2074
|
-
data:
|
|
2074
|
+
data: H,
|
|
2075
2075
|
item: G.item,
|
|
2076
2076
|
model: l.value
|
|
2077
2077
|
}, void 0, !0)
|
|
@@ -2093,7 +2093,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2093
2093
|
_: 3
|
|
2094
2094
|
}, 16, ["modelValue"])
|
|
2095
2095
|
], !0) : x(w.$slots, "default", { key: 1 }, () => [
|
|
2096
|
-
(
|
|
2096
|
+
(m(!0), z(re, null, N(J.value, (W, G) => (m(), E(h, A({ ref_for: !0 }, { ...l.value.form.cols, ...W.col }, {
|
|
2097
2097
|
key: G,
|
|
2098
2098
|
style: { width: "100%" }
|
|
2099
2099
|
}), {
|
|
@@ -2103,7 +2103,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2103
2103
|
se(b, A({
|
|
2104
2104
|
label: W.label,
|
|
2105
2105
|
prop: G,
|
|
2106
|
-
rules:
|
|
2106
|
+
rules: U(W)
|
|
2107
2107
|
}, { ref_for: !0 }, { ...(Ve = l.value) == null ? void 0 : Ve.formItems, ...W == null ? void 0 : W.formItem }, { style: { width: "100%" } }), {
|
|
2108
2108
|
label: _((ke) => [
|
|
2109
2109
|
x(w.$slots, `f-${G}-label`, {
|
|
@@ -2121,12 +2121,12 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2121
2121
|
model: l.value,
|
|
2122
2122
|
form: c.value
|
|
2123
2123
|
}, () => [
|
|
2124
|
-
(
|
|
2124
|
+
(m(), E(ht, {
|
|
2125
2125
|
modelValue: c.value[G],
|
|
2126
2126
|
"onUpdate:modelValue": (ke) => c.value[G] = ke,
|
|
2127
|
-
item:
|
|
2127
|
+
item: j(W, !0),
|
|
2128
2128
|
ctrlKey: G,
|
|
2129
|
-
ctrlType:
|
|
2129
|
+
ctrlType: D(W),
|
|
2130
2130
|
key: `${G}-${T.value}`,
|
|
2131
2131
|
model: l.value,
|
|
2132
2132
|
class: "g-ctrl-container",
|
|
@@ -2161,12 +2161,12 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2161
2161
|
style: Ye({ justifyContent: k(l.value.form.footer.align), ...l.value.form.footer.style })
|
|
2162
2162
|
}, [
|
|
2163
2163
|
x(w.$slots, "f-footer-left", {}, void 0, !0),
|
|
2164
|
-
(
|
|
2164
|
+
(m(!0), z(re, null, N(pe.value, (W) => (m(), z(re, null, [
|
|
2165
2165
|
x(w.$slots, W.name + "-left", {}, void 0, !0),
|
|
2166
2166
|
x(w.$slots, W.name, {}, () => {
|
|
2167
2167
|
var G;
|
|
2168
2168
|
return [
|
|
2169
|
-
(G = W == null ? void 0 : W.info) != null && G.hidden ? be("", !0) : (
|
|
2169
|
+
(G = W == null ? void 0 : W.info) != null && G.hidden ? be("", !0) : (m(), E(Y, A({
|
|
2170
2170
|
key: 0,
|
|
2171
2171
|
ref_for: !0
|
|
2172
2172
|
}, W.info, {
|
|
@@ -2187,10 +2187,10 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2187
2187
|
]);
|
|
2188
2188
|
};
|
|
2189
2189
|
}
|
|
2190
|
-
}), dl = /* @__PURE__ */ et(
|
|
2190
|
+
}), dl = /* @__PURE__ */ et(sa, [["__scopeId", "data-v-6a8d36f6"]]), ia = { class: "dialog-container" }, da = {
|
|
2191
2191
|
key: 1,
|
|
2192
2192
|
style: { overflow: "hidden" }
|
|
2193
|
-
},
|
|
2193
|
+
}, ca = { style: { display: "flex", flex: "1", "margin-left": "10px" } }, fa = /* @__PURE__ */ Object.assign({
|
|
2194
2194
|
name: "g-model",
|
|
2195
2195
|
inheritAttrs: !1
|
|
2196
2196
|
}, {
|
|
@@ -2214,10 +2214,10 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2214
2214
|
maximize: { type: Boolean, default: !1 },
|
|
2215
2215
|
minimize: { type: Boolean, default: !1 },
|
|
2216
2216
|
// 图标配置
|
|
2217
|
-
maxIcon: { type: Object, default: () =>
|
|
2217
|
+
maxIcon: { type: Object, default: () => Al },
|
|
2218
2218
|
resizeIcon: { type: Object, default: () => tl },
|
|
2219
|
-
closeIcon: { type: Object, default: () =>
|
|
2220
|
-
minIcon: { type: Object, default: () =>
|
|
2219
|
+
closeIcon: { type: Object, default: () => ql },
|
|
2220
|
+
minIcon: { type: Object, default: () => Il },
|
|
2221
2221
|
draggable: { type: Boolean, default: !0 },
|
|
2222
2222
|
showClose: { type: Boolean, default: !0 },
|
|
2223
2223
|
fullscreen: { type: Boolean, default: !1 },
|
|
@@ -2234,7 +2234,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2234
2234
|
"maximize",
|
|
2235
2235
|
"restore"
|
|
2236
2236
|
],
|
|
2237
|
-
setup(r, { expose:
|
|
2237
|
+
setup(r, { expose: u, emit: e }) {
|
|
2238
2238
|
const l = r, n = It(), d = e, t = ae(l.fullscreen), c = Fe(() => l.type === "drawer" ? "el-drawer" : "el-dialog"), T = Fe(() => {
|
|
2239
2239
|
const ee = {
|
|
2240
2240
|
modal: l.modal,
|
|
@@ -2258,17 +2258,17 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2258
2258
|
set(ee) {
|
|
2259
2259
|
d("update:modelValue", ee);
|
|
2260
2260
|
}
|
|
2261
|
-
}),
|
|
2262
|
-
function
|
|
2261
|
+
}), p = ae(null), f = ae(t.value), o = ae(!1);
|
|
2262
|
+
function y() {
|
|
2263
2263
|
f.value = !1, o.value = !1, d("open");
|
|
2264
2264
|
}
|
|
2265
|
-
function
|
|
2265
|
+
function U() {
|
|
2266
2266
|
d("opened");
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function j() {
|
|
2269
2269
|
d("close");
|
|
2270
2270
|
}
|
|
2271
|
-
function
|
|
2271
|
+
function D() {
|
|
2272
2272
|
d("closed");
|
|
2273
2273
|
}
|
|
2274
2274
|
function k() {
|
|
@@ -2280,24 +2280,24 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2280
2280
|
function J() {
|
|
2281
2281
|
d("minimize"), o.value = !1;
|
|
2282
2282
|
}
|
|
2283
|
-
return
|
|
2284
|
-
handleClose: () =>
|
|
2285
|
-
}), (ee, ne) => (
|
|
2286
|
-
o.value ? (
|
|
2283
|
+
return u({
|
|
2284
|
+
handleClose: () => p.value.handleClose()
|
|
2285
|
+
}), (ee, ne) => (m(), z("div", ia, [
|
|
2286
|
+
o.value ? (m(), z("div", {
|
|
2287
2287
|
key: 0,
|
|
2288
2288
|
class: "minimize-ball",
|
|
2289
2289
|
onClick: J
|
|
2290
|
-
}, Me(r.title), 1)) : (
|
|
2291
|
-
(
|
|
2290
|
+
}, Me(r.title), 1)) : (m(), z("div", da, [
|
|
2291
|
+
(m(), E(Pe(c.value), A({
|
|
2292
2292
|
ref_key: "dialogExtend",
|
|
2293
|
-
ref:
|
|
2293
|
+
ref: p,
|
|
2294
2294
|
modelValue: v.value,
|
|
2295
2295
|
"onUpdate:modelValue": ne[1] || (ne[1] = (ue) => v.value = ue),
|
|
2296
|
-
onOpen:
|
|
2297
|
-
onOpened:
|
|
2296
|
+
onOpen: y,
|
|
2297
|
+
onOpened: U,
|
|
2298
2298
|
"lock-scroll": !0,
|
|
2299
|
-
onClose:
|
|
2300
|
-
onClosed:
|
|
2299
|
+
onClose: j,
|
|
2300
|
+
onClosed: D,
|
|
2301
2301
|
draggable: ""
|
|
2302
2302
|
}, T.value, {
|
|
2303
2303
|
fullscreen: t.value,
|
|
@@ -2313,36 +2313,36 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2313
2313
|
style: Ye(l.headerStyle)
|
|
2314
2314
|
}, [
|
|
2315
2315
|
x(ee.$slots, "title", {}, () => [
|
|
2316
|
-
Z("span",
|
|
2316
|
+
Z("span", ca, Me(r.title), 1)
|
|
2317
2317
|
], !0),
|
|
2318
2318
|
Z("div", null, [
|
|
2319
|
-
r.minimize ? (
|
|
2319
|
+
r.minimize ? (m(), E(L(Yt), {
|
|
2320
2320
|
key: 0,
|
|
2321
2321
|
class: "btn-icon",
|
|
2322
2322
|
onClick: vt(X, ["stop"])
|
|
2323
2323
|
}, {
|
|
2324
2324
|
default: _(() => [
|
|
2325
|
-
(
|
|
2325
|
+
(m(), E(Pe(r.minIcon)))
|
|
2326
2326
|
]),
|
|
2327
2327
|
_: 1
|
|
2328
2328
|
})) : be("", !0),
|
|
2329
|
-
r.maximize ? (
|
|
2329
|
+
r.maximize ? (m(), E(L(Yt), {
|
|
2330
2330
|
key: 1,
|
|
2331
2331
|
class: "btn-icon",
|
|
2332
2332
|
onClick: vt(k, ["stop"])
|
|
2333
2333
|
}, {
|
|
2334
2334
|
default: _(() => [
|
|
2335
|
-
(
|
|
2335
|
+
(m(), E(Pe(f.value ? r.resizeIcon : r.maxIcon)))
|
|
2336
2336
|
]),
|
|
2337
2337
|
_: 1
|
|
2338
2338
|
})) : be("", !0),
|
|
2339
|
-
l.showClose ? (
|
|
2339
|
+
l.showClose ? (m(), E(L(Yt), {
|
|
2340
2340
|
key: 2,
|
|
2341
2341
|
class: "btn-icon",
|
|
2342
|
-
onClick: ne[0] || (ne[0] = vt((Se) =>
|
|
2342
|
+
onClick: ne[0] || (ne[0] = vt((Se) => p.value.handleClose(), ["stop"]))
|
|
2343
2343
|
}, {
|
|
2344
2344
|
default: _(() => [
|
|
2345
|
-
(
|
|
2345
|
+
(m(), E(Pe(r.closeIcon)))
|
|
2346
2346
|
]),
|
|
2347
2347
|
_: 1
|
|
2348
2348
|
})) : be("", !0)
|
|
@@ -2373,18 +2373,18 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2373
2373
|
]))
|
|
2374
2374
|
]));
|
|
2375
2375
|
}
|
|
2376
|
-
}),
|
|
2376
|
+
}), Ht = /* @__PURE__ */ et(fa, [["__scopeId", "data-v-99d6bb1e"]]), va = { style: { padding: "15px", "box-sizing": "border-box" } }, pa = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, ma = { style: { display: "flex", flex: "1", "align-items": "center" } }, ha = {
|
|
2377
2377
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2378
2378
|
id: "excelSortEl"
|
|
2379
|
-
},
|
|
2379
|
+
}, ya = ["textContent"], ga = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, ba = {
|
|
2380
2380
|
__name: "check-excel-item",
|
|
2381
2381
|
props: {
|
|
2382
2382
|
items: Array,
|
|
2383
2383
|
commitText: String
|
|
2384
2384
|
},
|
|
2385
2385
|
emits: ["excel"],
|
|
2386
|
-
setup(r, { emit:
|
|
2387
|
-
const e = r, l =
|
|
2386
|
+
setup(r, { emit: u }) {
|
|
2387
|
+
const e = r, l = u, n = ae(e.items), d = () => {
|
|
2388
2388
|
n.value.forEach((T) => {
|
|
2389
2389
|
T.value = !0;
|
|
2390
2390
|
});
|
|
@@ -2399,10 +2399,10 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2399
2399
|
return;
|
|
2400
2400
|
}
|
|
2401
2401
|
try {
|
|
2402
|
-
const
|
|
2403
|
-
|
|
2404
|
-
} catch (
|
|
2405
|
-
console.error("下载文件时出现错误:",
|
|
2402
|
+
const p = document.createElement("a");
|
|
2403
|
+
p.href = T, p.download = v, p.style.display = "none", document.body.appendChild(p), p.click(), document.body.removeChild(p);
|
|
2404
|
+
} catch (p) {
|
|
2405
|
+
console.error("下载文件时出现错误:", p);
|
|
2406
2406
|
}
|
|
2407
2407
|
});
|
|
2408
2408
|
};
|
|
@@ -2413,20 +2413,20 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2413
2413
|
T.toArray();
|
|
2414
2414
|
}
|
|
2415
2415
|
}), v = T;
|
|
2416
|
-
|
|
2416
|
+
Cl(() => {
|
|
2417
2417
|
v && v.destroy();
|
|
2418
2418
|
});
|
|
2419
2419
|
}), (T, v) => {
|
|
2420
|
-
const
|
|
2421
|
-
return
|
|
2420
|
+
const p = F("el-divider"), f = F("el-icon"), o = F("el-text"), y = F("el-checkbox"), U = F("el-button");
|
|
2421
|
+
return m(), z("div", va, [
|
|
2422
2422
|
Z("div", null, [
|
|
2423
|
-
Z("div",
|
|
2424
|
-
Z("div",
|
|
2423
|
+
Z("div", pa, [
|
|
2424
|
+
Z("div", ma, [
|
|
2425
2425
|
Z("a", {
|
|
2426
2426
|
onClick: d,
|
|
2427
2427
|
style: { cursor: "pointer" }
|
|
2428
2428
|
}, "全选"),
|
|
2429
|
-
se(
|
|
2429
|
+
se(p, { direction: "vertical" }),
|
|
2430
2430
|
Z("a", {
|
|
2431
2431
|
onClick: t,
|
|
2432
2432
|
style: { cursor: "pointer" }
|
|
@@ -2440,7 +2440,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2440
2440
|
default: _(() => [
|
|
2441
2441
|
se(f, { size: "16" }, {
|
|
2442
2442
|
default: _(() => [
|
|
2443
|
-
se(
|
|
2443
|
+
se(L(ll))
|
|
2444
2444
|
]),
|
|
2445
2445
|
_: 1
|
|
2446
2446
|
}),
|
|
@@ -2451,32 +2451,32 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2451
2451
|
])
|
|
2452
2452
|
]),
|
|
2453
2453
|
v[1] || (v[1] = Z("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2454
|
-
Z("div",
|
|
2455
|
-
(
|
|
2454
|
+
Z("div", ha, [
|
|
2455
|
+
(m(!0), z(re, null, N(n.value, (j) => (m(), E(y, {
|
|
2456
2456
|
class: "check-box-hover",
|
|
2457
2457
|
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" },
|
|
2458
|
-
"data-id":
|
|
2459
|
-
modelValue:
|
|
2460
|
-
"onUpdate:modelValue": (
|
|
2461
|
-
key:
|
|
2462
|
-
title:
|
|
2458
|
+
"data-id": j.key,
|
|
2459
|
+
modelValue: j.value,
|
|
2460
|
+
"onUpdate:modelValue": (D) => j.value = D,
|
|
2461
|
+
key: j.key,
|
|
2462
|
+
title: j.label
|
|
2463
2463
|
}, {
|
|
2464
2464
|
default: _(() => [
|
|
2465
2465
|
Z("span", {
|
|
2466
|
-
textContent: Me(
|
|
2466
|
+
textContent: Me(j.label),
|
|
2467
2467
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2468
|
-
}, null, 8,
|
|
2468
|
+
}, null, 8, ya)
|
|
2469
2469
|
]),
|
|
2470
2470
|
_: 2
|
|
2471
2471
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2472
2472
|
])
|
|
2473
2473
|
]),
|
|
2474
|
-
Z("div",
|
|
2475
|
-
se(
|
|
2474
|
+
Z("div", ga, [
|
|
2475
|
+
se(U, {
|
|
2476
2476
|
type: "primary",
|
|
2477
2477
|
onClick: c,
|
|
2478
|
-
icon:
|
|
2479
|
-
disabled: n.value.filter((
|
|
2478
|
+
icon: L(al),
|
|
2479
|
+
disabled: n.value.filter((j) => j.value).length < 1
|
|
2480
2480
|
}, {
|
|
2481
2481
|
default: _(() => [
|
|
2482
2482
|
Ae(Me(e.commitText), 1)
|
|
@@ -2487,8 +2487,8 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2487
2487
|
]);
|
|
2488
2488
|
};
|
|
2489
2489
|
}
|
|
2490
|
-
},
|
|
2491
|
-
$e.version(
|
|
2490
|
+
}, $a = /* @__PURE__ */ et(ba, [["__scopeId", "data-v-13575747"]]), wa = "vue-gyc-ui", ka = 1, $e = new Hl(wa);
|
|
2491
|
+
$e.version(ka).stores({
|
|
2492
2492
|
// 记录表格项设置信息
|
|
2493
2493
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2494
2494
|
// 记录表格分页条数
|
|
@@ -2498,45 +2498,45 @@ $e.version(wa).stores({
|
|
|
2498
2498
|
// 记录表格列显示状态
|
|
2499
2499
|
tableColsState: "++id,[page+key], page, key"
|
|
2500
2500
|
});
|
|
2501
|
-
const ct = (r,
|
|
2501
|
+
const ct = (r, u) => {
|
|
2502
2502
|
if (!r || typeof r != "string")
|
|
2503
2503
|
throw new Error("page参数必须是非空字符串");
|
|
2504
2504
|
};
|
|
2505
|
-
async function Tt(r,
|
|
2505
|
+
async function Tt(r, u, e) {
|
|
2506
2506
|
try {
|
|
2507
2507
|
const l = await $e.tableColsState.where({ page: r }).first();
|
|
2508
|
-
l ? e === "add" ? l.keys.includes(
|
|
2508
|
+
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 });
|
|
2509
2509
|
} catch (l) {
|
|
2510
|
-
throw console.error(`处理表格列状态时出错 (page: ${r}, key: ${
|
|
2510
|
+
throw console.error(`处理表格列状态时出错 (page: ${r}, key: ${u}, state: ${e}):`, l), l;
|
|
2511
2511
|
}
|
|
2512
2512
|
}
|
|
2513
|
-
async function
|
|
2513
|
+
async function _a(r, u, e) {
|
|
2514
2514
|
ct(r);
|
|
2515
2515
|
try {
|
|
2516
|
-
const l = await $e.tableWidths.where({ page: r, key:
|
|
2517
|
-
return l ? (await $e.tableWidths.put({ ...l, width: e }), "update success") : (await $e.tableWidths.add({ page: r, key:
|
|
2516
|
+
const l = await $e.tableWidths.where({ page: r, key: u }).first();
|
|
2517
|
+
return l ? (await $e.tableWidths.put({ ...l, width: e }), "update success") : (await $e.tableWidths.add({ page: r, key: u, width: e }), "add success");
|
|
2518
2518
|
} catch (l) {
|
|
2519
|
-
throw console.error(`保存表格项设置信息时出错 (page: ${r}, key: ${
|
|
2519
|
+
throw console.error(`保存表格项设置信息时出错 (page: ${r}, key: ${u}):`, l), l;
|
|
2520
2520
|
}
|
|
2521
2521
|
}
|
|
2522
|
-
async function
|
|
2522
|
+
async function Ca(r) {
|
|
2523
2523
|
ct(r);
|
|
2524
2524
|
try {
|
|
2525
2525
|
return await $e.tableWidths.where({ page: r }).toArray();
|
|
2526
|
-
} catch (
|
|
2527
|
-
throw console.error(`获取表格项设置信息时出错 (page: ${r}):`,
|
|
2526
|
+
} catch (u) {
|
|
2527
|
+
throw console.error(`获取表格项设置信息时出错 (page: ${r}):`, u), u;
|
|
2528
2528
|
}
|
|
2529
2529
|
}
|
|
2530
|
-
async function
|
|
2530
|
+
async function xa(r) {
|
|
2531
2531
|
ct(r);
|
|
2532
2532
|
try {
|
|
2533
|
-
const
|
|
2534
|
-
return !
|
|
2535
|
-
} catch (
|
|
2536
|
-
throw console.error(`获取表格列状态时出错 (page: ${r}):`,
|
|
2533
|
+
const u = await $e.tableColsState.where({ page: r }).toArray();
|
|
2534
|
+
return !u || u.length === 0 ? [] : u[0].keys;
|
|
2535
|
+
} catch (u) {
|
|
2536
|
+
throw console.error(`获取表格列状态时出错 (page: ${r}):`, u), u;
|
|
2537
2537
|
}
|
|
2538
2538
|
}
|
|
2539
|
-
async function
|
|
2539
|
+
async function Ma(r) {
|
|
2540
2540
|
ct(r);
|
|
2541
2541
|
try {
|
|
2542
2542
|
return await $e.transaction("rw", $e.tableWidths, $e.pageInfo, $e.sorts, $e.tableColsState, async () => {
|
|
@@ -2547,53 +2547,53 @@ async function xa(r) {
|
|
|
2547
2547
|
$e.tableColsState.where({ page: r }).delete()
|
|
2548
2548
|
]);
|
|
2549
2549
|
});
|
|
2550
|
-
} catch (
|
|
2551
|
-
throw console.error(`删除页面"${r}"的表格设置信息时出错:`,
|
|
2550
|
+
} catch (u) {
|
|
2551
|
+
throw console.error(`删除页面"${r}"的表格设置信息时出错:`, u), u;
|
|
2552
2552
|
}
|
|
2553
2553
|
}
|
|
2554
|
-
async function
|
|
2554
|
+
async function Sa({ page: r, size: u }) {
|
|
2555
2555
|
ct(r);
|
|
2556
2556
|
try {
|
|
2557
2557
|
const e = await $e.pageInfo.where({ page: r }).first();
|
|
2558
|
-
return e ? (await $e.pageInfo.put({ ...e, size:
|
|
2558
|
+
return e ? (await $e.pageInfo.put({ ...e, size: u }), "update success") : (await $e.pageInfo.add({ page: r, size: u }), "add success");
|
|
2559
2559
|
} catch (e) {
|
|
2560
2560
|
throw console.error(`保存分页条数时出错 (page: ${r}):`, e), e;
|
|
2561
2561
|
}
|
|
2562
2562
|
}
|
|
2563
|
-
async function
|
|
2563
|
+
async function Ta(r) {
|
|
2564
2564
|
ct(r);
|
|
2565
2565
|
try {
|
|
2566
|
-
const
|
|
2567
|
-
return
|
|
2568
|
-
} catch (
|
|
2569
|
-
throw console.error(`获取分页条数时出错 (page: ${r}):`,
|
|
2566
|
+
const u = await $e.pageInfo.where({ page: r }).first();
|
|
2567
|
+
return u == null ? void 0 : u.size;
|
|
2568
|
+
} catch (u) {
|
|
2569
|
+
throw console.error(`获取分页条数时出错 (page: ${r}):`, u), u;
|
|
2570
2570
|
}
|
|
2571
2571
|
}
|
|
2572
|
-
async function
|
|
2572
|
+
async function Va(r, u) {
|
|
2573
2573
|
ct(r);
|
|
2574
2574
|
try {
|
|
2575
2575
|
const e = await $e.sorts.where({ page: r }).first();
|
|
2576
|
-
return e ? (await $e.sorts.put({ ...e, keys:
|
|
2576
|
+
return e ? (await $e.sorts.put({ ...e, keys: u }), "update success") : (await $e.sorts.add({ page: r, keys: u }), "add success");
|
|
2577
2577
|
} catch (e) {
|
|
2578
2578
|
throw console.error(`保存表格字段顺序时出错 (page: ${r}):`, e), e;
|
|
2579
2579
|
}
|
|
2580
2580
|
}
|
|
2581
|
-
async function
|
|
2581
|
+
async function Ea(r) {
|
|
2582
2582
|
ct(r);
|
|
2583
2583
|
try {
|
|
2584
|
-
const
|
|
2585
|
-
return (
|
|
2586
|
-
} catch (
|
|
2587
|
-
throw console.error(`获取表格字段顺序时出错 (page: ${r}):`,
|
|
2584
|
+
const u = await $e.sorts.where({ page: r }).first();
|
|
2585
|
+
return (u == null ? void 0 : u.keys) || [];
|
|
2586
|
+
} catch (u) {
|
|
2587
|
+
throw console.error(`获取表格字段顺序时出错 (page: ${r}):`, u), u;
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
|
-
const
|
|
2590
|
+
const Da = { style: { padding: "15px", "box-sizing": "border-box" } }, Oa = { style: { display: "flex", "align-items": "center", height: "30px" } }, Ia = {
|
|
2591
2591
|
style: { display: "flex", flex: "1", "align-items": "center" },
|
|
2592
2592
|
class: "allcheck"
|
|
2593
|
-
},
|
|
2593
|
+
}, qa = {
|
|
2594
2594
|
id: "cols",
|
|
2595
2595
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2596
|
-
},
|
|
2596
|
+
}, Aa = ["textContent"], Ya = {
|
|
2597
2597
|
__name: "columns-setting",
|
|
2598
2598
|
props: /* @__PURE__ */ at({
|
|
2599
2599
|
tuid: {
|
|
@@ -2605,8 +2605,8 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2605
2605
|
modelModifiers: {}
|
|
2606
2606
|
}),
|
|
2607
2607
|
emits: /* @__PURE__ */ at(["setting-drag-end", "select-all"], ["update:modelValue"]),
|
|
2608
|
-
setup(r, { emit:
|
|
2609
|
-
const e = r, l =
|
|
2608
|
+
setup(r, { emit: u }) {
|
|
2609
|
+
const e = r, l = u;
|
|
2610
2610
|
let n = ae([]);
|
|
2611
2611
|
const d = lt(r, "modelValue"), t = async (f, o) => {
|
|
2612
2612
|
f ? (d.value[o].showCol = !0, await Tt(e.tuid, o, "del")) : (d.value[o].showCol = !1, await Tt(e.tuid, o, "add"));
|
|
@@ -2618,13 +2618,13 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2618
2618
|
filter: ".filtered",
|
|
2619
2619
|
sort: !0,
|
|
2620
2620
|
onEnd: async () => {
|
|
2621
|
-
let
|
|
2621
|
+
let y = o.toArray();
|
|
2622
2622
|
try {
|
|
2623
|
-
|
|
2623
|
+
Va(e.tuid, y).then((U) => {
|
|
2624
2624
|
l("setting-drag-end");
|
|
2625
2625
|
});
|
|
2626
|
-
} catch (
|
|
2627
|
-
console.error("列排序保存信息时出错:",
|
|
2626
|
+
} catch (U) {
|
|
2627
|
+
console.error("列排序保存信息时出错:", U), ut({
|
|
2628
2628
|
type: "error",
|
|
2629
2629
|
message: "列排序保存信息失败!"
|
|
2630
2630
|
});
|
|
@@ -2659,13 +2659,13 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2659
2659
|
message: "清除列保存信息失败!"
|
|
2660
2660
|
});
|
|
2661
2661
|
}
|
|
2662
|
-
},
|
|
2662
|
+
}, p = () => {
|
|
2663
2663
|
Wt.confirm("确定要复位吗?", "提示", {
|
|
2664
2664
|
confirmButtonText: "确定",
|
|
2665
2665
|
cancelButtonText: "取消",
|
|
2666
2666
|
type: "warning"
|
|
2667
2667
|
}).then(() => {
|
|
2668
|
-
|
|
2668
|
+
Ma(e.tuid).then((f) => {
|
|
2669
2669
|
window.location.reload();
|
|
2670
2670
|
}).catch((f) => {
|
|
2671
2671
|
console.error("复位操作出错:", f), ut({
|
|
@@ -2685,21 +2685,21 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2685
2685
|
width: o == null ? void 0 : o.width
|
|
2686
2686
|
})).sort((f, o) => f.sort - o.sort), c();
|
|
2687
2687
|
}), (f, o) => {
|
|
2688
|
-
const
|
|
2689
|
-
return
|
|
2690
|
-
Z("div",
|
|
2691
|
-
Z("div",
|
|
2688
|
+
const y = F("el-divider"), U = F("el-icon"), j = F("el-text"), D = F("el-checkbox");
|
|
2689
|
+
return m(), z("div", Da, [
|
|
2690
|
+
Z("div", Oa, [
|
|
2691
|
+
Z("div", Ia, [
|
|
2692
2692
|
Z("a", { onClick: T }, "全选"),
|
|
2693
|
-
se(
|
|
2693
|
+
se(y, { direction: "vertical" }),
|
|
2694
2694
|
Z("a", { onClick: v }, "全不选"),
|
|
2695
|
-
se(
|
|
2696
|
-
Z("a", { onClick:
|
|
2695
|
+
se(y, { direction: "vertical" }),
|
|
2696
|
+
Z("a", { onClick: p }, "复位")
|
|
2697
2697
|
]),
|
|
2698
|
-
se(
|
|
2698
|
+
se(j, { type: "warning" }, {
|
|
2699
2699
|
default: _(() => [
|
|
2700
|
-
se(
|
|
2700
|
+
se(U, { size: "16" }, {
|
|
2701
2701
|
default: _(() => [
|
|
2702
|
-
se(
|
|
2702
|
+
se(L(ll))
|
|
2703
2703
|
]),
|
|
2704
2704
|
_: 1
|
|
2705
2705
|
}),
|
|
@@ -2709,8 +2709,8 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2709
2709
|
})
|
|
2710
2710
|
]),
|
|
2711
2711
|
Z("div", null, [
|
|
2712
|
-
Z("div",
|
|
2713
|
-
(
|
|
2712
|
+
Z("div", qa, [
|
|
2713
|
+
(m(!0), z(re, null, N(L(n), (k) => (m(), E(D, {
|
|
2714
2714
|
modelValue: k.showCol,
|
|
2715
2715
|
"onUpdate:modelValue": (X) => k.showCol = X,
|
|
2716
2716
|
"data-id": k.value,
|
|
@@ -2726,7 +2726,7 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2726
2726
|
Z("span", {
|
|
2727
2727
|
textContent: Me(k.label),
|
|
2728
2728
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2729
|
-
}, null, 8,
|
|
2729
|
+
}, null, 8, Aa)
|
|
2730
2730
|
]),
|
|
2731
2731
|
_: 2
|
|
2732
2732
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2735,7 +2735,7 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2735
2735
|
]);
|
|
2736
2736
|
};
|
|
2737
2737
|
}
|
|
2738
|
-
},
|
|
2738
|
+
}, za = /* @__PURE__ */ et(Ya, [["__scopeId", "data-v-750b37bc"]]), Ua = { class: "title" }, La = { class: "content" }, ja = {
|
|
2739
2739
|
__name: "g-cell-toopTip",
|
|
2740
2740
|
props: {
|
|
2741
2741
|
content: {
|
|
@@ -2748,27 +2748,30 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2748
2748
|
}
|
|
2749
2749
|
},
|
|
2750
2750
|
setup(r) {
|
|
2751
|
-
const
|
|
2752
|
-
|
|
2751
|
+
const u = r, e = () => {
|
|
2752
|
+
u.content ? (navigator.clipboard.writeText(u.content), ut.success("复制成功")) : ut.warning("没有内容可复制");
|
|
2753
2753
|
};
|
|
2754
|
-
return (l, n) => (
|
|
2754
|
+
return (l, n) => (m(), z("div", {
|
|
2755
2755
|
class: "g-cell-toopTip",
|
|
2756
|
-
style: Ye({ width:
|
|
2756
|
+
style: Ye({ width: u.column.width + "px" })
|
|
2757
2757
|
}, [
|
|
2758
|
-
Z("div",
|
|
2758
|
+
Z("div", Ua, [
|
|
2759
2759
|
n[0] || (n[0] = Z("span", { class: "title-text" }, "内容", -1)),
|
|
2760
2760
|
Z("span", {
|
|
2761
2761
|
class: "copy-btn",
|
|
2762
2762
|
onClick: e,
|
|
2763
2763
|
title: "复制内容"
|
|
2764
2764
|
}, [
|
|
2765
|
-
se(
|
|
2765
|
+
se(L(Yl))
|
|
2766
2766
|
])
|
|
2767
2767
|
]),
|
|
2768
|
-
Z("div",
|
|
2768
|
+
Z("div", La, Me(u.content), 1)
|
|
2769
2769
|
], 4));
|
|
2770
2770
|
}
|
|
2771
|
-
}, Ha = /* @__PURE__ */ et(
|
|
2771
|
+
}, Ha = /* @__PURE__ */ et(ja, [["__scopeId", "data-v-f28912da"]]), Fa = /* @__PURE__ */ Object.assign({
|
|
2772
|
+
name: "g-detail",
|
|
2773
|
+
inheritAttrs: !1
|
|
2774
|
+
}, {
|
|
2772
2775
|
__name: "g-detail",
|
|
2773
2776
|
props: {
|
|
2774
2777
|
row: {
|
|
@@ -2786,16 +2789,16 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2786
2789
|
}
|
|
2787
2790
|
},
|
|
2788
2791
|
setup(r) {
|
|
2789
|
-
const
|
|
2792
|
+
const u = r, e = Ot("options"), l = {
|
|
2790
2793
|
border: !0,
|
|
2791
2794
|
labelWidth: "100px",
|
|
2792
2795
|
column: 2
|
|
2793
2796
|
}, n = Fe(() => {
|
|
2794
|
-
var o,
|
|
2797
|
+
var o, y;
|
|
2795
2798
|
return {
|
|
2796
2799
|
...l,
|
|
2797
|
-
...((
|
|
2798
|
-
...
|
|
2800
|
+
...((y = (o = e == null ? void 0 : e.control) == null ? void 0 : o.view(u.row)) == null ? void 0 : y.container) || {},
|
|
2801
|
+
...u == null ? void 0 : u.container
|
|
2799
2802
|
};
|
|
2800
2803
|
}), d = {
|
|
2801
2804
|
"label-align": "right",
|
|
@@ -2804,60 +2807,60 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2804
2807
|
var o;
|
|
2805
2808
|
return {
|
|
2806
2809
|
...d,
|
|
2807
|
-
...((o =
|
|
2810
|
+
...((o = u == null ? void 0 : u.container) == null ? void 0 : o.items) || {}
|
|
2808
2811
|
};
|
|
2809
2812
|
}), c = (o) => {
|
|
2810
|
-
const
|
|
2811
|
-
return { ...typeof
|
|
2813
|
+
const y = u.m[o], U = y == null ? void 0 : y.view, j = typeof U == "function" ? U(u.row, null, 0, u.m) : U || {}, D = y == null ? void 0 : y.table;
|
|
2814
|
+
return { ...typeof D == "function" ? D(u.row) || {} : {}, ...j };
|
|
2812
2815
|
}, T = (o) => {
|
|
2813
|
-
const
|
|
2814
|
-
return (
|
|
2815
|
-
}, v = Fe(() => Object.entries(
|
|
2816
|
-
if (il.includes(o) || (
|
|
2817
|
-
let
|
|
2818
|
-
const
|
|
2819
|
-
return Object.hasOwn(
|
|
2820
|
-
}).sort(([o], [
|
|
2821
|
-
var
|
|
2822
|
-
const
|
|
2823
|
-
return
|
|
2824
|
-
})),
|
|
2816
|
+
const y = c(o);
|
|
2817
|
+
return (y == null ? void 0 : y.type) || "text-info";
|
|
2818
|
+
}, v = Fe(() => Object.entries(u.m).filter(([o, y]) => {
|
|
2819
|
+
if (il.includes(o) || (y == null ? void 0 : y.type) === "hidden") return !1;
|
|
2820
|
+
let U = (y == null ? void 0 : y.visible) !== !1;
|
|
2821
|
+
const j = c(o);
|
|
2822
|
+
return Object.hasOwn(j, "visible") ? U = j.visible : Object.hasOwn(j, "hidden") && (U = !j.hidden), U;
|
|
2823
|
+
}).sort(([o], [y]) => {
|
|
2824
|
+
var D, k;
|
|
2825
|
+
const U = ((D = c(o)) == null ? void 0 : D.sort) ?? 0, j = ((k = c(y)) == null ? void 0 : k.sort) ?? 0;
|
|
2826
|
+
return U - j;
|
|
2827
|
+
})), p = {
|
|
2825
2828
|
date: "YYYY-MM-DD",
|
|
2826
2829
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2827
2830
|
time: "HH:mm:ss"
|
|
2828
|
-
}, f = Fe(() => Object.fromEntries(v.value.map(([
|
|
2829
|
-
const
|
|
2830
|
-
let
|
|
2831
|
-
const
|
|
2832
|
-
return
|
|
2833
|
-
})));
|
|
2834
|
-
return (o,
|
|
2835
|
-
var
|
|
2836
|
-
const
|
|
2837
|
-
return
|
|
2831
|
+
}, f = Fe(() => ({ ...Object.fromEntries(v.value.map(([y, U]) => {
|
|
2832
|
+
const j = c(y);
|
|
2833
|
+
let D = Object.hasOwn(j, "value") ? j.value : U == null ? void 0 : U.value;
|
|
2834
|
+
const k = j.format || p[U == null ? void 0 : U.type];
|
|
2835
|
+
return k && D && (D = Et(D).format(k)), [y, D];
|
|
2836
|
+
})), ...u.row }));
|
|
2837
|
+
return (o, y) => {
|
|
2838
|
+
var D;
|
|
2839
|
+
const U = F("el-descriptions-item"), j = F("el-descriptions");
|
|
2840
|
+
return m(), z("div", {
|
|
2838
2841
|
class: "g-detail-container",
|
|
2839
|
-
style: Ye(((
|
|
2842
|
+
style: Ye(((D = n.value) == null ? void 0 : D.style) || {})
|
|
2840
2843
|
}, [
|
|
2841
|
-
se(
|
|
2844
|
+
se(j, A({ border: "" }, L(Ne)(n.value, (k) => !["container"].includes(k))), ge({
|
|
2842
2845
|
default: _(() => [
|
|
2843
|
-
(
|
|
2846
|
+
(m(!0), z(re, null, N(v.value, ([k, X]) => {
|
|
2844
2847
|
var J, ee;
|
|
2845
|
-
return
|
|
2846
|
-
label: (J =
|
|
2848
|
+
return m(), E(U, A({
|
|
2849
|
+
label: (J = u.m[k]) == null ? void 0 : J.label
|
|
2847
2850
|
}, { ref_for: !0 }, { ...t.value, ...((ee = c(k)) == null ? void 0 : ee.item) || {} }, { key: k }), {
|
|
2848
2851
|
label: _(() => [
|
|
2849
2852
|
x(o.$slots, `view-${k}-label`, {
|
|
2850
|
-
row:
|
|
2853
|
+
row: u.row
|
|
2851
2854
|
}, () => {
|
|
2852
2855
|
var ne;
|
|
2853
2856
|
return [
|
|
2854
|
-
Ae(Me((ne =
|
|
2857
|
+
Ae(Me((ne = u.m[k]) == null ? void 0 : ne.label), 1)
|
|
2855
2858
|
];
|
|
2856
2859
|
}, !0)
|
|
2857
2860
|
]),
|
|
2858
2861
|
default: _(() => [
|
|
2859
2862
|
x(o.$slots, `view-${k}`, {
|
|
2860
|
-
row:
|
|
2863
|
+
row: u.row
|
|
2861
2864
|
}, () => [
|
|
2862
2865
|
se(ht, {
|
|
2863
2866
|
modelValue: f.value[k],
|
|
@@ -2865,8 +2868,8 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2865
2868
|
item: c(k),
|
|
2866
2869
|
ctrlKey: k,
|
|
2867
2870
|
ctrlType: T(k),
|
|
2868
|
-
model:
|
|
2869
|
-
formInfo:
|
|
2871
|
+
model: u.row,
|
|
2872
|
+
formInfo: u.row,
|
|
2870
2873
|
t: "v"
|
|
2871
2874
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"])
|
|
2872
2875
|
], !0)
|
|
@@ -2887,10 +2890,10 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2887
2890
|
], 4);
|
|
2888
2891
|
};
|
|
2889
2892
|
}
|
|
2890
|
-
},
|
|
2891
|
-
var
|
|
2893
|
+
}), cl = /* @__PURE__ */ et(Fa, [["__scopeId", "data-v-4902ce5a"]]);
|
|
2894
|
+
var fl = { exports: {} }, vl = { exports: {} };
|
|
2892
2895
|
(function() {
|
|
2893
|
-
var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
2896
|
+
var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = {
|
|
2894
2897
|
// Bit-wise rotation left
|
|
2895
2898
|
rotl: function(e, l) {
|
|
2896
2899
|
return e << l | e >>> 32 - l;
|
|
@@ -2902,9 +2905,9 @@ var cl = { exports: {} }, fl = { exports: {} };
|
|
|
2902
2905
|
// Swap big-endian to little-endian and vice versa
|
|
2903
2906
|
endian: function(e) {
|
|
2904
2907
|
if (e.constructor == Number)
|
|
2905
|
-
return
|
|
2908
|
+
return u.rotl(e, 8) & 16711935 | u.rotl(e, 24) & 4278255360;
|
|
2906
2909
|
for (var l = 0; l < e.length; l++)
|
|
2907
|
-
e[l] =
|
|
2910
|
+
e[l] = u.endian(e[l]);
|
|
2908
2911
|
return e;
|
|
2909
2912
|
},
|
|
2910
2913
|
// Generate an array of any length of random bytes
|
|
@@ -2952,9 +2955,9 @@ var cl = { exports: {} }, fl = { exports: {} };
|
|
|
2952
2955
|
return l;
|
|
2953
2956
|
}
|
|
2954
2957
|
};
|
|
2955
|
-
|
|
2958
|
+
vl.exports = u;
|
|
2956
2959
|
})();
|
|
2957
|
-
var Ra =
|
|
2960
|
+
var Ra = vl.exports, Ut = {
|
|
2958
2961
|
// UTF-8 encoding
|
|
2959
2962
|
utf8: {
|
|
2960
2963
|
// Convert a string to a byte array
|
|
@@ -2970,15 +2973,15 @@ var Ra = fl.exports, Ut = {
|
|
|
2970
2973
|
bin: {
|
|
2971
2974
|
// Convert a string to a byte array
|
|
2972
2975
|
stringToBytes: function(r) {
|
|
2973
|
-
for (var
|
|
2974
|
-
|
|
2975
|
-
return
|
|
2976
|
+
for (var u = [], e = 0; e < r.length; e++)
|
|
2977
|
+
u.push(r.charCodeAt(e) & 255);
|
|
2978
|
+
return u;
|
|
2976
2979
|
},
|
|
2977
2980
|
// Convert a byte array to a string
|
|
2978
2981
|
bytesToString: function(r) {
|
|
2979
|
-
for (var
|
|
2980
|
-
|
|
2981
|
-
return
|
|
2982
|
+
for (var u = [], e = 0; e < r.length; e++)
|
|
2983
|
+
u.push(String.fromCharCode(r[e]));
|
|
2984
|
+
return u.join("");
|
|
2982
2985
|
}
|
|
2983
2986
|
}
|
|
2984
2987
|
}, Bt = Ut;
|
|
@@ -2989,46 +2992,46 @@ var Ra = fl.exports, Ut = {
|
|
|
2989
2992
|
* @license MIT
|
|
2990
2993
|
*/
|
|
2991
2994
|
var Ba = function(r) {
|
|
2992
|
-
return r != null && (
|
|
2995
|
+
return r != null && (pl(r) || Pa(r) || !!r._isBuffer);
|
|
2993
2996
|
};
|
|
2994
|
-
function
|
|
2997
|
+
function pl(r) {
|
|
2995
2998
|
return !!r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
|
|
2996
2999
|
}
|
|
2997
3000
|
function Pa(r) {
|
|
2998
|
-
return typeof r.readFloatLE == "function" && typeof r.slice == "function" &&
|
|
3001
|
+
return typeof r.readFloatLE == "function" && typeof r.slice == "function" && pl(r.slice(0, 0));
|
|
2999
3002
|
}
|
|
3000
3003
|
(function() {
|
|
3001
|
-
var r = Ra,
|
|
3002
|
-
d.constructor == String ? t && t.encoding === "binary" ? d = l.stringToBytes(d) : d =
|
|
3003
|
-
for (var c = r.bytesToWords(d), T = d.length * 8, v = 1732584193,
|
|
3004
|
-
c[
|
|
3004
|
+
var r = Ra, u = Bt.utf8, e = Ba, l = Bt.bin, n = function(d, t) {
|
|
3005
|
+
d.constructor == String ? t && t.encoding === "binary" ? d = l.stringToBytes(d) : d = u.stringToBytes(d) : e(d) ? d = Array.prototype.slice.call(d, 0) : !Array.isArray(d) && d.constructor !== Uint8Array && (d = d.toString());
|
|
3006
|
+
for (var c = r.bytesToWords(d), T = d.length * 8, v = 1732584193, p = -271733879, f = -1732584194, o = 271733878, y = 0; y < c.length; y++)
|
|
3007
|
+
c[y] = (c[y] << 8 | c[y] >>> 24) & 16711935 | (c[y] << 24 | c[y] >>> 8) & 4278255360;
|
|
3005
3008
|
c[T >>> 5] |= 128 << T % 32, c[(T + 64 >>> 9 << 4) + 14] = T;
|
|
3006
|
-
for (var
|
|
3007
|
-
var X = v, J =
|
|
3008
|
-
v =
|
|
3009
|
+
for (var U = n._ff, j = n._gg, D = n._hh, k = n._ii, y = 0; y < c.length; y += 16) {
|
|
3010
|
+
var X = v, J = p, ee = f, ne = o;
|
|
3011
|
+
v = U(v, p, f, o, c[y + 0], 7, -680876936), o = U(o, v, p, f, c[y + 1], 12, -389564586), f = U(f, o, v, p, c[y + 2], 17, 606105819), p = U(p, f, o, v, c[y + 3], 22, -1044525330), v = U(v, p, f, o, c[y + 4], 7, -176418897), o = U(o, v, p, f, c[y + 5], 12, 1200080426), f = U(f, o, v, p, c[y + 6], 17, -1473231341), p = U(p, f, o, v, c[y + 7], 22, -45705983), v = U(v, p, f, o, c[y + 8], 7, 1770035416), o = U(o, v, p, f, c[y + 9], 12, -1958414417), f = U(f, o, v, p, c[y + 10], 17, -42063), p = U(p, f, o, v, c[y + 11], 22, -1990404162), v = U(v, p, f, o, c[y + 12], 7, 1804603682), o = U(o, v, p, f, c[y + 13], 12, -40341101), f = U(f, o, v, p, c[y + 14], 17, -1502002290), p = U(p, f, o, v, c[y + 15], 22, 1236535329), v = j(v, p, f, o, c[y + 1], 5, -165796510), o = j(o, v, p, f, c[y + 6], 9, -1069501632), f = j(f, o, v, p, c[y + 11], 14, 643717713), p = j(p, f, o, v, c[y + 0], 20, -373897302), v = j(v, p, f, o, c[y + 5], 5, -701558691), o = j(o, v, p, f, c[y + 10], 9, 38016083), f = j(f, o, v, p, c[y + 15], 14, -660478335), p = j(p, f, o, v, c[y + 4], 20, -405537848), v = j(v, p, f, o, c[y + 9], 5, 568446438), o = j(o, v, p, f, c[y + 14], 9, -1019803690), f = j(f, o, v, p, c[y + 3], 14, -187363961), p = j(p, f, o, v, c[y + 8], 20, 1163531501), v = j(v, p, f, o, c[y + 13], 5, -1444681467), o = j(o, v, p, f, c[y + 2], 9, -51403784), f = j(f, o, v, p, c[y + 7], 14, 1735328473), p = j(p, f, o, v, c[y + 12], 20, -1926607734), v = D(v, p, f, o, c[y + 5], 4, -378558), o = D(o, v, p, f, c[y + 8], 11, -2022574463), f = D(f, o, v, p, c[y + 11], 16, 1839030562), p = D(p, f, o, v, c[y + 14], 23, -35309556), v = D(v, p, f, o, c[y + 1], 4, -1530992060), o = D(o, v, p, f, c[y + 4], 11, 1272893353), f = D(f, o, v, p, c[y + 7], 16, -155497632), p = D(p, f, o, v, c[y + 10], 23, -1094730640), v = D(v, p, f, o, c[y + 13], 4, 681279174), o = D(o, v, p, f, c[y + 0], 11, -358537222), f = D(f, o, v, p, c[y + 3], 16, -722521979), p = D(p, f, o, v, c[y + 6], 23, 76029189), v = D(v, p, f, o, c[y + 9], 4, -640364487), o = D(o, v, p, f, c[y + 12], 11, -421815835), f = D(f, o, v, p, c[y + 15], 16, 530742520), p = D(p, f, o, v, c[y + 2], 23, -995338651), v = k(v, p, f, o, c[y + 0], 6, -198630844), o = k(o, v, p, f, c[y + 7], 10, 1126891415), f = k(f, o, v, p, c[y + 14], 15, -1416354905), p = k(p, f, o, v, c[y + 5], 21, -57434055), v = k(v, p, f, o, c[y + 12], 6, 1700485571), o = k(o, v, p, f, c[y + 3], 10, -1894986606), f = k(f, o, v, p, c[y + 10], 15, -1051523), p = k(p, f, o, v, c[y + 1], 21, -2054922799), v = k(v, p, f, o, c[y + 8], 6, 1873313359), o = k(o, v, p, f, c[y + 15], 10, -30611744), f = k(f, o, v, p, c[y + 6], 15, -1560198380), p = k(p, f, o, v, c[y + 13], 21, 1309151649), v = k(v, p, f, o, c[y + 4], 6, -145523070), o = k(o, v, p, f, c[y + 11], 10, -1120210379), f = k(f, o, v, p, c[y + 2], 15, 718787259), p = k(p, f, o, v, c[y + 9], 21, -343485551), v = v + X >>> 0, p = p + J >>> 0, f = f + ee >>> 0, o = o + ne >>> 0;
|
|
3009
3012
|
}
|
|
3010
|
-
return r.endian([v,
|
|
3013
|
+
return r.endian([v, p, f, o]);
|
|
3011
3014
|
};
|
|
3012
|
-
n._ff = function(d, t, c, T, v,
|
|
3015
|
+
n._ff = function(d, t, c, T, v, p, f) {
|
|
3013
3016
|
var o = d + (t & c | ~t & T) + (v >>> 0) + f;
|
|
3014
|
-
return (o <<
|
|
3015
|
-
}, n._gg = function(d, t, c, T, v,
|
|
3017
|
+
return (o << p | o >>> 32 - p) + t;
|
|
3018
|
+
}, n._gg = function(d, t, c, T, v, p, f) {
|
|
3016
3019
|
var o = d + (t & T | c & ~T) + (v >>> 0) + f;
|
|
3017
|
-
return (o <<
|
|
3018
|
-
}, n._hh = function(d, t, c, T, v,
|
|
3020
|
+
return (o << p | o >>> 32 - p) + t;
|
|
3021
|
+
}, n._hh = function(d, t, c, T, v, p, f) {
|
|
3019
3022
|
var o = d + (t ^ c ^ T) + (v >>> 0) + f;
|
|
3020
|
-
return (o <<
|
|
3021
|
-
}, n._ii = function(d, t, c, T, v,
|
|
3023
|
+
return (o << p | o >>> 32 - p) + t;
|
|
3024
|
+
}, n._ii = function(d, t, c, T, v, p, f) {
|
|
3022
3025
|
var o = d + (c ^ (t | ~T)) + (v >>> 0) + f;
|
|
3023
|
-
return (o <<
|
|
3024
|
-
}, n._blocksize = 16, n._digestsize = 16,
|
|
3026
|
+
return (o << p | o >>> 32 - p) + t;
|
|
3027
|
+
}, n._blocksize = 16, n._digestsize = 16, fl.exports = function(d, t) {
|
|
3025
3028
|
if (d == null)
|
|
3026
3029
|
throw new Error("Illegal argument " + d);
|
|
3027
3030
|
var c = r.wordsToBytes(n(d, t));
|
|
3028
3031
|
return t && t.asBytes ? c : t && t.asString ? l.bytesToString(c) : r.bytesToHex(c);
|
|
3029
3032
|
};
|
|
3030
3033
|
})();
|
|
3031
|
-
var Na =
|
|
3034
|
+
var Na = fl.exports;
|
|
3032
3035
|
const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
3033
3036
|
key: 0,
|
|
3034
3037
|
class: "table-query-container"
|
|
@@ -3060,19 +3063,19 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3060
3063
|
"toggleExpand",
|
|
3061
3064
|
"node-init"
|
|
3062
3065
|
], ["update:modelValue", "update:selectedRows"]),
|
|
3063
|
-
setup(r, { expose:
|
|
3066
|
+
setup(r, { expose: u, emit: e }) {
|
|
3064
3067
|
var Ge, Xe, gt, bt, $t, wt, kt;
|
|
3065
|
-
const l = ae(""), n = r, d = e, t = lt(r, "modelValue"), c = Ot("options"), T = ae({}), v = ae(!0),
|
|
3068
|
+
const l = ae(""), n = r, d = e, t = lt(r, "modelValue"), c = Ot("options"), T = ae({}), v = ae(!0), p = Object.entries(t.value).filter(([a, s]) => (s == null ? void 0 : s.search) !== void 0).map(([a, s]) => {
|
|
3066
3069
|
var C;
|
|
3067
3070
|
let g;
|
|
3068
|
-
if (typeof
|
|
3069
|
-
const q =
|
|
3070
|
-
g = (q == null ? void 0 : q.value) ??
|
|
3071
|
+
if (typeof s.search == "function") {
|
|
3072
|
+
const q = s.search(T.value);
|
|
3073
|
+
g = (q == null ? void 0 : q.value) ?? s.value;
|
|
3071
3074
|
} else
|
|
3072
|
-
g = ((C =
|
|
3075
|
+
g = ((C = s.search) == null ? void 0 : C.value) ?? s.value;
|
|
3073
3076
|
return [a, g];
|
|
3074
3077
|
});
|
|
3075
|
-
T.value = Object.fromEntries(
|
|
3078
|
+
T.value = Object.fromEntries(p);
|
|
3076
3079
|
const f = ae(!1), o = [
|
|
3077
3080
|
"type",
|
|
3078
3081
|
"index",
|
|
@@ -3102,7 +3105,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3102
3105
|
"filter-multiple",
|
|
3103
3106
|
"filter-method",
|
|
3104
3107
|
"filtered-value"
|
|
3105
|
-
],
|
|
3108
|
+
], y = ae([]), U = It(), j = ae({}), D = ae([]), k = ae(null), X = ae(""), J = ae("/"), ee = lt(r, "selectedRows"), ne = ae({
|
|
3106
3109
|
autoWatch: !1,
|
|
3107
3110
|
data: [],
|
|
3108
3111
|
border: !0,
|
|
@@ -3112,13 +3115,13 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3112
3115
|
stripe: !0,
|
|
3113
3116
|
type: "hidden",
|
|
3114
3117
|
load: async () => {
|
|
3115
|
-
const a = Number(await
|
|
3118
|
+
const a = Number(await Ta(J.value));
|
|
3116
3119
|
a && a > 0 && (t.value.table.page.pageSize = a);
|
|
3117
|
-
let { currentPage:
|
|
3120
|
+
let { currentPage: s, pageSize: g } = t.value.table.page;
|
|
3118
3121
|
try {
|
|
3119
3122
|
d(
|
|
3120
3123
|
"load",
|
|
3121
|
-
{ currentPage:
|
|
3124
|
+
{ currentPage: s, pageSize: g, ...T.value },
|
|
3122
3125
|
(C = [], q = 0, { fields: R = [], sums: B = {} } = {}) => {
|
|
3123
3126
|
var he;
|
|
3124
3127
|
if (!Array.isArray(C)) {
|
|
@@ -3129,7 +3132,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3129
3132
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), ut.error("数据加载失败,请检查数据格式。");
|
|
3130
3133
|
return;
|
|
3131
3134
|
}
|
|
3132
|
-
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,
|
|
3135
|
+
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, D.value = R, j.value = B, ze(), X.value = Math.random().toString(36).substring(2);
|
|
3133
3136
|
},
|
|
3134
3137
|
k.value
|
|
3135
3138
|
);
|
|
@@ -3137,11 +3140,11 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3137
3140
|
console.error("触发 load 事件时出现错误:", C), ut.error("数据加载时出现错误,请稍后重试。");
|
|
3138
3141
|
}
|
|
3139
3142
|
},
|
|
3140
|
-
onHeaderDragend: (a,
|
|
3141
|
-
|
|
3143
|
+
onHeaderDragend: (a, s, g) => {
|
|
3144
|
+
_a(J.value, g.property, a);
|
|
3142
3145
|
},
|
|
3143
|
-
onRowDblclick: (a,
|
|
3144
|
-
t.value.table.dblclickType == "edit" ? S(a,
|
|
3146
|
+
onRowDblclick: (a, s, g) => {
|
|
3147
|
+
t.value.table.dblclickType == "edit" ? S(a, s, g, t) : t.value.table.dblclickType == "view" ? I(a, s, g, t) : t.value.table.dblclickType == "delete" ? O(a, s, g, t) : t.value.table.dblclickType(a, s, g, t);
|
|
3145
3148
|
},
|
|
3146
3149
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
3147
3150
|
page: {
|
|
@@ -3161,14 +3164,14 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3161
3164
|
t.value.table.page.currentPage = a, t.value.table.load();
|
|
3162
3165
|
},
|
|
3163
3166
|
onSizeChange: (a) => {
|
|
3164
|
-
|
|
3167
|
+
Sa({ page: J.value, size: a }).then(() => {
|
|
3165
3168
|
t.value.table.page.pageSize = a, t.value.table.load();
|
|
3166
3169
|
});
|
|
3167
3170
|
}
|
|
3168
3171
|
},
|
|
3169
3172
|
dblclickType: "edit",
|
|
3170
|
-
"summary-method": ({ columns: a, data:
|
|
3171
|
-
onSortChange: ({ column: a, prop:
|
|
3173
|
+
"summary-method": ({ columns: a, data: s }, g) => g,
|
|
3174
|
+
onSortChange: ({ column: a, prop: s, order: g }, C) => {
|
|
3172
3175
|
},
|
|
3173
3176
|
onSelectionChange: (a) => {
|
|
3174
3177
|
ee.value = a;
|
|
@@ -3178,7 +3181,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3178
3181
|
ne.value,
|
|
3179
3182
|
c == null ? void 0 : c.table,
|
|
3180
3183
|
t.value.table,
|
|
3181
|
-
|
|
3184
|
+
U
|
|
3182
3185
|
// 继承父组件的属性
|
|
3183
3186
|
);
|
|
3184
3187
|
const ue = {
|
|
@@ -3191,31 +3194,31 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3191
3194
|
fixed: "right",
|
|
3192
3195
|
style: { ...(Xe = (Ge = t.value) == null ? void 0 : Ge.control) == null ? void 0 : Xe.style },
|
|
3193
3196
|
validate: async (a) => await !0,
|
|
3194
|
-
view: (a,
|
|
3197
|
+
view: (a, s, g, C) => ({
|
|
3195
3198
|
label: "详情",
|
|
3196
3199
|
text: !0,
|
|
3197
3200
|
type: "success",
|
|
3198
3201
|
mode: "dialog",
|
|
3199
3202
|
"view-mode": "description",
|
|
3200
3203
|
// description || readonly
|
|
3201
|
-
icon: () => _e(
|
|
3204
|
+
icon: () => _e(jl),
|
|
3202
3205
|
auth: () => {
|
|
3203
3206
|
var q;
|
|
3204
3207
|
return !(((q = C == null ? void 0 : C.control) == null ? void 0 : q.add(a, C).inline) === !0 && g === 0);
|
|
3205
3208
|
}
|
|
3206
3209
|
}),
|
|
3207
|
-
edit: (a,
|
|
3210
|
+
edit: (a, s, g, C) => ({
|
|
3208
3211
|
label: "编辑",
|
|
3209
3212
|
text: !0,
|
|
3210
3213
|
type: "primary",
|
|
3211
3214
|
mode: "dialog",
|
|
3212
|
-
icon: () => _e(
|
|
3215
|
+
icon: () => _e(Ll),
|
|
3213
3216
|
auth: () => {
|
|
3214
3217
|
var q;
|
|
3215
3218
|
return ((q = C == null ? void 0 : C.control) == null ? void 0 : q.add(a, C).inline) !== !0;
|
|
3216
3219
|
}
|
|
3217
3220
|
}),
|
|
3218
|
-
delete: (a,
|
|
3221
|
+
delete: (a, s, g, C) => ({
|
|
3219
3222
|
text: !0,
|
|
3220
3223
|
label: "删除",
|
|
3221
3224
|
type: "danger",
|
|
@@ -3234,7 +3237,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3234
3237
|
}
|
|
3235
3238
|
}
|
|
3236
3239
|
}),
|
|
3237
|
-
save: (a,
|
|
3240
|
+
save: (a, s, g, C) => {
|
|
3238
3241
|
var q, R;
|
|
3239
3242
|
return {
|
|
3240
3243
|
label: ((q = C.control) == null ? void 0 : q.add(a, C).inline) !== !0 ? "保存" : g === 0 ? "新增" : "保存",
|
|
@@ -3248,16 +3251,16 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3248
3251
|
}
|
|
3249
3252
|
};
|
|
3250
3253
|
},
|
|
3251
|
-
add: (a,
|
|
3254
|
+
add: (a, s) => ({
|
|
3252
3255
|
label: "新增",
|
|
3253
3256
|
text: !1,
|
|
3254
3257
|
type: "primary",
|
|
3255
3258
|
mode: "dialog",
|
|
3256
3259
|
inline: !1,
|
|
3257
|
-
icon: () => _e(
|
|
3260
|
+
icon: () => _e(Ul),
|
|
3258
3261
|
auth: () => !0
|
|
3259
3262
|
}),
|
|
3260
|
-
toggleExpand: (a,
|
|
3263
|
+
toggleExpand: (a, s) => ({
|
|
3261
3264
|
label: "展开/收起",
|
|
3262
3265
|
text: !1,
|
|
3263
3266
|
type: "primary",
|
|
@@ -3265,7 +3268,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3265
3268
|
icon: () => _e(tl),
|
|
3266
3269
|
auth: () => !1
|
|
3267
3270
|
}),
|
|
3268
|
-
batch: (a,
|
|
3271
|
+
batch: (a, s) => ({
|
|
3269
3272
|
label: "批量操作",
|
|
3270
3273
|
text: !1,
|
|
3271
3274
|
type: "primary",
|
|
@@ -3273,7 +3276,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3273
3276
|
icon: () => _e(zt),
|
|
3274
3277
|
auth: () => !1
|
|
3275
3278
|
}),
|
|
3276
|
-
download: (a,
|
|
3279
|
+
download: (a, s) => ({
|
|
3277
3280
|
label: "下载",
|
|
3278
3281
|
text: !1,
|
|
3279
3282
|
type: "primary",
|
|
@@ -3282,15 +3285,15 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3282
3285
|
excelLabel: "下载EXCEL",
|
|
3283
3286
|
auth: () => !0
|
|
3284
3287
|
}),
|
|
3285
|
-
setting: (a,
|
|
3288
|
+
setting: (a, s) => ({
|
|
3286
3289
|
label: "设置列",
|
|
3287
3290
|
text: !1,
|
|
3288
3291
|
type: "primary",
|
|
3289
3292
|
mode: "dialog",
|
|
3290
|
-
icon: () => _e(
|
|
3293
|
+
icon: () => _e(zl),
|
|
3291
3294
|
auth: () => !0
|
|
3292
3295
|
}),
|
|
3293
|
-
dropdown: (a,
|
|
3296
|
+
dropdown: (a, s, g, C) => ({
|
|
3294
3297
|
label: "编辑",
|
|
3295
3298
|
operate: "edit",
|
|
3296
3299
|
"split-button": !0,
|
|
@@ -3298,8 +3301,8 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3298
3301
|
auth: () => !(C.control.add(a, C).inline === !0 && g == 0),
|
|
3299
3302
|
onClick: () => {
|
|
3300
3303
|
var R;
|
|
3301
|
-
let q = (R = Se(a,
|
|
3302
|
-
q === "edit" ? S(a,
|
|
3304
|
+
let q = (R = Se(a, s, g, C)) == null ? void 0 : R.operate;
|
|
3305
|
+
q === "edit" ? S(a, s, g, C) : q === "delete" ? O(a, s, g, C) : q === "view" && I(a, s, g, C);
|
|
3303
3306
|
},
|
|
3304
3307
|
"button-props": { round: !0, plain: !0 }
|
|
3305
3308
|
})
|
|
@@ -3309,33 +3312,33 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3309
3312
|
c == null ? void 0 : c.control,
|
|
3310
3313
|
(gt = t.value) == null ? void 0 : gt.control
|
|
3311
3314
|
);
|
|
3312
|
-
const pe = (a,
|
|
3313
|
-
const g = t.value.control[a], C =
|
|
3314
|
-
var
|
|
3315
|
+
const pe = (a, s = !0) => {
|
|
3316
|
+
const g = t.value.control[a], C = s ? (q, R, B, he) => {
|
|
3317
|
+
var He, Ze, st;
|
|
3315
3318
|
if (!q || !R || B == null)
|
|
3316
3319
|
return console.warn(`merge${a.charAt(0).toUpperCase() + a.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
3317
|
-
const we = ((
|
|
3320
|
+
const we = ((He = ue[a]) == null ? void 0 : He.call(ue, q, R, B, he)) || {}, Ee = ((st = (Ze = c == null ? void 0 : c.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)) || {};
|
|
3318
3321
|
return qe(we, Ee, Oe) || {};
|
|
3319
3322
|
} : (q, R) => {
|
|
3320
|
-
var Ee, Oe,
|
|
3321
|
-
const B = ((Ee = ue[a]) == null ? void 0 : Ee.call(ue, q, R)) || {}, he = ((
|
|
3323
|
+
var Ee, Oe, He;
|
|
3324
|
+
const B = ((Ee = ue[a]) == null ? void 0 : Ee.call(ue, q, R)) || {}, he = ((He = (Oe = c == null ? void 0 : c.control) == null ? void 0 : Oe[a]) == null ? void 0 : He.call(Oe, q, R)) || {}, we = (g == null ? void 0 : g(q, R)) || {};
|
|
3322
3325
|
return qe(B, he, we) || {};
|
|
3323
3326
|
};
|
|
3324
3327
|
t.value.control[a] = C;
|
|
3325
3328
|
};
|
|
3326
3329
|
pe("edit"), pe("delete"), pe("view"), pe("save"), pe("add", !1), pe("download", !1), pe("setting", !1), pe("batch", !1), pe("toggleExpand", !1);
|
|
3327
|
-
const Se = (a,
|
|
3328
|
-
var he, we, Ee, Oe,
|
|
3329
|
-
if (!a || !
|
|
3330
|
+
const Se = (a, s, g, C) => {
|
|
3331
|
+
var he, we, Ee, Oe, He, Ze;
|
|
3332
|
+
if (!a || !s || g == null)
|
|
3330
3333
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
3331
|
-
const q = ((he = ue.dropdown) == null ? void 0 : he.call(ue, a,
|
|
3334
|
+
const q = ((he = ue.dropdown) == null ? void 0 : he.call(ue, a, s, g, C)) || {}, R = ((Ee = (we = c == null ? void 0 : c.control) == null ? void 0 : we.dropdown) == null ? void 0 : Ee.call(we, a, s, g, C)) || {}, B = ((Ze = (He = (Oe = t.value) == null ? void 0 : Oe.control) == null ? void 0 : He.dropdown) == null ? void 0 : Ze.call(He, a, s, g, C)) || {};
|
|
3332
3335
|
return qe(q, R, B) || {};
|
|
3333
3336
|
}, De = {
|
|
3334
3337
|
type: "hidden",
|
|
3335
3338
|
"min-width": 100,
|
|
3336
3339
|
align: "center",
|
|
3337
|
-
formatter: (a,
|
|
3338
|
-
"tooltip-formatter": ({ row: a, column:
|
|
3340
|
+
formatter: (a, s, g, C) => g,
|
|
3341
|
+
"tooltip-formatter": ({ row: a, column: s, cellValue: g }) => _e(Ha, { content: g, column: s })
|
|
3339
3342
|
};
|
|
3340
3343
|
t.value.tableColumns = qe(
|
|
3341
3344
|
De,
|
|
@@ -3381,11 +3384,11 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3381
3384
|
c == null ? void 0 : c.dialog,
|
|
3382
3385
|
(kt = t.value) == null ? void 0 : kt.dialog
|
|
3383
3386
|
);
|
|
3384
|
-
const Te = (a,
|
|
3385
|
-
let g =
|
|
3386
|
-
if (a.precision && !isNaN(parseFloat(
|
|
3387
|
+
const Te = (a, s) => {
|
|
3388
|
+
let g = s;
|
|
3389
|
+
if (a.precision && !isNaN(parseFloat(s)) && (typeof a.precision == "number" ? g = parseFloat(g).toFixed(a.precision) : typeof a.precision == "object" && a.precision.num && (a.precision.pad ? g = parseFloat(g).toFixed(a.precision.num) : g = parseFloat(
|
|
3387
3390
|
parseFloat(g).toFixed(a.precision.num)
|
|
3388
|
-
).toString())), ["date", "datetime", "time", "time-select"].includes(a.type) && Et(
|
|
3391
|
+
).toString())), ["date", "datetime", "time", "time-select"].includes(a.type) && Et(s).isValid()) {
|
|
3389
3392
|
const q = {
|
|
3390
3393
|
date: "YYYY-MM-DD",
|
|
3391
3394
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
@@ -3393,59 +3396,59 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3393
3396
|
};
|
|
3394
3397
|
g = a.format ? Et(g).format(a.format) : Et(g).format(q[a.type]);
|
|
3395
3398
|
}
|
|
3396
|
-
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, g = `<span title="${
|
|
3399
|
+
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, g = `<span title="${jt(
|
|
3397
3400
|
parseFloat(g)
|
|
3398
3401
|
)}">${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;
|
|
3399
3402
|
}, We = (a) => {
|
|
3400
|
-
T.value = Object.fromEntries(
|
|
3403
|
+
T.value = Object.fromEntries(p), t.value.table.load();
|
|
3401
3404
|
}, w = (a) => {
|
|
3402
3405
|
T.value = a, t.value.table.load();
|
|
3403
|
-
}, $ = async (a = k.value,
|
|
3406
|
+
}, $ = async (a = k.value, s) => {
|
|
3404
3407
|
var g, C;
|
|
3405
3408
|
t.value.form.modalState = "add", l.value = "add";
|
|
3406
3409
|
try {
|
|
3407
|
-
if (!await ((g = t.value.control) == null ? void 0 : g.validate("add", { row: k.value, m:
|
|
3410
|
+
if (!await ((g = t.value.control) == null ? void 0 : g.validate("add", { row: k.value, m: s, node: n.node }))) return;
|
|
3408
3411
|
} catch (q) {
|
|
3409
3412
|
console.error("验证失败:", q);
|
|
3410
3413
|
return;
|
|
3411
3414
|
}
|
|
3412
|
-
(C = t.value.control.add(k.value,
|
|
3415
|
+
(C = t.value.control.add(k.value, s)) != null && C.click ? t.value.control.add(k.value, s).click(k.value, s) : (t.value.control.add(k.value, s).inline === !0 ? (t.value.table.data.unshift({ ...k.value }), await Ke(), d("open", "row-add", { row: k.value, node: n.node })) : (t.value.form.disabled = !1, t.value.dialog.mode = t.value.control.add(k.value, s).mode, t.value.dialog.title = t.value.control.add(k.value, s).title || t.value.control.add(k.value, s).label || "新增", Object.keys(k.value).forEach((q) => {
|
|
3413
3416
|
t.value[q] && (t.value[q].value = k.value[q]);
|
|
3414
|
-
}), f.value = !0, await Ke(), d("open", "add", { row: k.value, node: n.node, m:
|
|
3417
|
+
}), f.value = !0, await Ke(), d("open", "add", { row: k.value, node: n.node, m: s }), mt()), await Ke(), d("node-init", { row: k.value, node: n.node, m: s }));
|
|
3415
3418
|
}, b = () => {
|
|
3416
3419
|
d("batch", ee.value);
|
|
3417
|
-
},
|
|
3420
|
+
}, h = (a, s) => {
|
|
3418
3421
|
d("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(() => {
|
|
3419
3422
|
v.value = !0;
|
|
3420
3423
|
});
|
|
3421
|
-
}, S = async (a,
|
|
3424
|
+
}, S = async (a, s, g, C) => {
|
|
3422
3425
|
var q, R;
|
|
3423
3426
|
t.value.form.modalState = "edit", l.value = "edit";
|
|
3424
3427
|
try {
|
|
3425
|
-
if (!await ((q = t.value.control) == null ? void 0 : q.validate("edit", { row: a, column:
|
|
3428
|
+
if (!await ((q = t.value.control) == null ? void 0 : q.validate("edit", { row: a, column: s, index: g, m: C }))) return;
|
|
3426
3429
|
} catch (B) {
|
|
3427
3430
|
console.error("验证失败:", B);
|
|
3428
3431
|
return;
|
|
3429
3432
|
}
|
|
3430
|
-
(R = t.value.control.edit(a,
|
|
3433
|
+
(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) => {
|
|
3431
3434
|
t.value[B] && (t.value[B].value = a[B]);
|
|
3432
|
-
}), f.value = !0, await Ke(), d("open", "edit", { m: C, row: a, column:
|
|
3433
|
-
},
|
|
3435
|
+
}), f.value = !0, await Ke(), d("open", "edit", { m: C, row: a, column: s, index: g }), mt());
|
|
3436
|
+
}, O = async (a, s, g, C) => {
|
|
3434
3437
|
var q, R;
|
|
3435
3438
|
try {
|
|
3436
|
-
if (!await ((q = t.value.control) == null ? void 0 : q.validate("delete", { row: a, column:
|
|
3439
|
+
if (!await ((q = t.value.control) == null ? void 0 : q.validate("delete", { row: a, column: s, index: g, m: C }))) return;
|
|
3437
3440
|
} catch (B) {
|
|
3438
3441
|
console.error("验证失败:", B);
|
|
3439
3442
|
return;
|
|
3440
3443
|
}
|
|
3441
|
-
if ((R = t.value.control.delete(a,
|
|
3442
|
-
t.value.control.delete(a,
|
|
3444
|
+
if ((R = t.value.control.delete(a, s, g, C)) != null && R.click)
|
|
3445
|
+
t.value.control.delete(a, s, g, C).click(a, s, g, C);
|
|
3443
3446
|
else {
|
|
3444
|
-
let { message: B, title: he, options: we } = t.value.control.delete(a,
|
|
3447
|
+
let { message: B, title: he, options: we } = t.value.control.delete(a, s, g, C).dialog;
|
|
3445
3448
|
Wt.confirm(B, he, we).then(() => {
|
|
3446
3449
|
d(
|
|
3447
3450
|
"delete",
|
|
3448
|
-
{ row: a, column:
|
|
3451
|
+
{ row: a, column: s, index: g, m: C },
|
|
3449
3452
|
(Ee = !0, Oe = !1) => {
|
|
3450
3453
|
Ee && (t.value.table.data.splice(g, 1), t.value.table.page.total--), Oe && t.value.table.load();
|
|
3451
3454
|
}
|
|
@@ -3453,38 +3456,38 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3453
3456
|
}).catch(() => {
|
|
3454
3457
|
});
|
|
3455
3458
|
}
|
|
3456
|
-
},
|
|
3459
|
+
}, I = async (a, s, g, C) => {
|
|
3457
3460
|
var q, R, B, he;
|
|
3458
3461
|
t.value.form.modalState = void 0, l.value = "view";
|
|
3459
3462
|
try {
|
|
3460
|
-
if (!await ((q = t.value.control) == null ? void 0 : q.validate("view", { row: a, column:
|
|
3463
|
+
if (!await ((q = t.value.control) == null ? void 0 : q.validate("view", { row: a, column: s, index: g, m: C }))) return;
|
|
3461
3464
|
} catch (we) {
|
|
3462
3465
|
console.error("验证失败:", we);
|
|
3463
3466
|
return;
|
|
3464
3467
|
}
|
|
3465
|
-
(R = t.value.control.view(a,
|
|
3468
|
+
(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) => {
|
|
3466
3469
|
t.value[we] && (t.value[we].value = a[we]);
|
|
3467
|
-
}), ((B = t.value.control.view(a,
|
|
3470
|
+
}), ((B = t.value.control.view(a, s, g, C)) == null ? void 0 : B["view-mode"]) === "description" ? ml({
|
|
3468
3471
|
...t.value.dialog,
|
|
3469
3472
|
type: t.value.dialog.mode,
|
|
3470
3473
|
slots: {
|
|
3471
3474
|
default: () => {
|
|
3472
3475
|
var we, Ee, Oe;
|
|
3473
|
-
return _e(
|
|
3476
|
+
return _e(cl, {
|
|
3474
3477
|
row: a,
|
|
3475
3478
|
m: C,
|
|
3476
|
-
container: ((we = t.value.control.view(a,
|
|
3477
|
-
}, ((Oe = (Ee = t.value.control.view(a,
|
|
3479
|
+
container: ((we = t.value.control.view(a, s, g, C)) == null ? void 0 : we.container) || {}
|
|
3480
|
+
}, ((Oe = (Ee = t.value.control.view(a, s, g, C)) == null ? void 0 : Ee.container) == null ? void 0 : Oe.slots) || {});
|
|
3478
3481
|
}
|
|
3479
3482
|
}
|
|
3480
|
-
}) : ((he = t.value.control.view(a,
|
|
3481
|
-
}, Y = (a,
|
|
3482
|
-
Object.assign(a,
|
|
3483
|
-
}, le = (a,
|
|
3484
|
-
const q = t.value.control.save(a,
|
|
3485
|
-
q != null && q.click ? q.click(a,
|
|
3483
|
+
}) : ((he = t.value.control.view(a, s, g, C)) == null ? void 0 : he["view-mode"]) === "readonly" && (f.value = !0, mt()), await Ke(), d("open", "view", { m: C, row: a, column: s, index: g }));
|
|
3484
|
+
}, Y = (a, s = k.value) => {
|
|
3485
|
+
Object.assign(a, s);
|
|
3486
|
+
}, le = (a, s, g, C) => {
|
|
3487
|
+
const q = t.value.control.save(a, s, g, C);
|
|
3488
|
+
q != null && q.click ? q.click(a, s, g, C) : d(
|
|
3486
3489
|
"row-save",
|
|
3487
|
-
{ row: a, column:
|
|
3490
|
+
{ row: a, column: s, index: g, data: t.value.table.data },
|
|
3488
3491
|
async (R = !0, B = !0) => {
|
|
3489
3492
|
if (R && t.value.table.load(), B && g === 0) {
|
|
3490
3493
|
const he = Object.entries(t.value).filter(
|
|
@@ -3497,45 +3500,45 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3497
3500
|
}
|
|
3498
3501
|
}
|
|
3499
3502
|
);
|
|
3500
|
-
}, de = mr((a,
|
|
3501
|
-
d("submit", t.value.form.modalState, a,
|
|
3502
|
-
C && (g === 1 && (f.value = !1), Y(a),
|
|
3503
|
+
}, de = mr((a, s, g) => {
|
|
3504
|
+
d("submit", t.value.form.modalState, a, s, (C) => {
|
|
3505
|
+
C && (g === 1 && (f.value = !1), Y(a), s.table.load());
|
|
3503
3506
|
});
|
|
3504
|
-
}, 300), ye = (a,
|
|
3505
|
-
Y(a), d("reset", a,
|
|
3506
|
-
}, W = (a,
|
|
3507
|
+
}, 300), ye = (a, s) => {
|
|
3508
|
+
Y(a), d("reset", a, s);
|
|
3509
|
+
}, W = (a, s, g) => {
|
|
3507
3510
|
var C;
|
|
3508
|
-
if ((C =
|
|
3509
|
-
|
|
3511
|
+
if ((C = s.control.download(a, s)) != null && C.click)
|
|
3512
|
+
s.control.download(a, s).click(a, s, g);
|
|
3510
3513
|
else {
|
|
3511
3514
|
let q = Lt(
|
|
3512
3515
|
{
|
|
3513
|
-
title:
|
|
3514
|
-
size:
|
|
3515
|
-
width:
|
|
3516
|
+
title: s.control.download(a, s).title || s.control.download(a, s).label || "下载",
|
|
3517
|
+
size: s.control.download(a, s).size || 480,
|
|
3518
|
+
width: s.control.download(a, s).width || 600,
|
|
3516
3519
|
slots: {
|
|
3517
|
-
default: () => _e(
|
|
3520
|
+
default: () => _e($a, {
|
|
3518
3521
|
items: g,
|
|
3519
|
-
commitText:
|
|
3522
|
+
commitText: s.control.download(a, s).excelLabel,
|
|
3520
3523
|
onExcel: (R, B) => {
|
|
3521
3524
|
d("download", R, T.value, B), q();
|
|
3522
3525
|
}
|
|
3523
3526
|
})
|
|
3524
3527
|
}
|
|
3525
3528
|
},
|
|
3526
|
-
|
|
3529
|
+
s.control.download(a, s).mode
|
|
3527
3530
|
);
|
|
3528
3531
|
}
|
|
3529
|
-
}, G = (a,
|
|
3532
|
+
}, G = (a, s) => {
|
|
3530
3533
|
var g;
|
|
3531
|
-
(g =
|
|
3534
|
+
(g = s.control.setting(a, s)) != null && g.click ? s.control.setting(a, s).click(a, s) : Lt(
|
|
3532
3535
|
{
|
|
3533
|
-
title:
|
|
3534
|
-
size:
|
|
3535
|
-
width:
|
|
3536
|
+
title: s.control.setting(a, s).title || s.control.setting(a, s).label || "设置",
|
|
3537
|
+
size: s.control.setting(a, s).size || 470,
|
|
3538
|
+
width: s.control.setting(a, s).width || 600,
|
|
3536
3539
|
slots: {
|
|
3537
|
-
default: () => _e(
|
|
3538
|
-
modelValue:
|
|
3540
|
+
default: () => _e(za, {
|
|
3541
|
+
modelValue: s,
|
|
3539
3542
|
tuid: J.value,
|
|
3540
3543
|
onSettingDragEnd: async () => {
|
|
3541
3544
|
await Le(J.value);
|
|
@@ -3546,20 +3549,20 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3546
3549
|
})
|
|
3547
3550
|
}
|
|
3548
3551
|
},
|
|
3549
|
-
|
|
3552
|
+
s.control.setting(a, s).mode
|
|
3550
3553
|
);
|
|
3551
3554
|
}, Ve = t.value.control, ke = {
|
|
3552
3555
|
add: $,
|
|
3553
3556
|
batch: b,
|
|
3554
3557
|
download: W,
|
|
3555
|
-
toggleExpand:
|
|
3558
|
+
toggleExpand: h,
|
|
3556
3559
|
setting: G,
|
|
3557
|
-
view:
|
|
3560
|
+
view: I,
|
|
3558
3561
|
edit: S,
|
|
3559
|
-
delete:
|
|
3562
|
+
delete: O,
|
|
3560
3563
|
save: le
|
|
3561
|
-
}, Ie = (a,
|
|
3562
|
-
const B = Ve == null ? void 0 : Ve[R](
|
|
3564
|
+
}, Ie = (a, s, g, C, q) => a.filter((R) => ke[R]).map((R) => {
|
|
3565
|
+
const B = Ve == null ? void 0 : Ve[R](s, g, C, q);
|
|
3563
3566
|
return {
|
|
3564
3567
|
name: `control-${R}`,
|
|
3565
3568
|
attr: B,
|
|
@@ -3568,14 +3571,14 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3568
3571
|
sort: (B == null ? void 0 : B.sort) || 0,
|
|
3569
3572
|
groupName: (B == null ? void 0 : B.groupName) || "default"
|
|
3570
3573
|
};
|
|
3571
|
-
}).sort((R, B) => R.sort - B.sort), V = (a,
|
|
3574
|
+
}).sort((R, B) => R.sort - B.sort), V = (a, s, g, C, q) => Ie(a, s, g, C, q).reduce((R, B) => {
|
|
3572
3575
|
const he = B.groupName || "default";
|
|
3573
3576
|
return R[he] || (R[he] = []), R[he].push(B), R;
|
|
3574
3577
|
}, {}), M = Fe(() => Object.fromEntries(
|
|
3575
3578
|
Object.entries(t.value).filter(
|
|
3576
|
-
([a,
|
|
3577
|
-
).map(([a,
|
|
3578
|
-
)),
|
|
3579
|
+
([a, s]) => s.type !== "hidden" && s.hidden !== !0 && s.visible !== !1 && s.showCol !== !1
|
|
3580
|
+
).map(([a, s]) => (s.sort = typeof s.sort == "number" ? s.sort : 0, [a, s])).sort((a, s) => a[1].sort - s[1].sort)
|
|
3581
|
+
)), H = ae({}), Ce = (a, s) => {
|
|
3579
3582
|
const g = (C, q) => {
|
|
3580
3583
|
for (const R of C) {
|
|
3581
3584
|
if (R.value == q) return R.label;
|
|
@@ -3587,41 +3590,41 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3587
3590
|
return null;
|
|
3588
3591
|
};
|
|
3589
3592
|
if (a.getDicts) {
|
|
3590
|
-
const C =
|
|
3591
|
-
return
|
|
3592
|
-
|
|
3593
|
+
const C = s.toString();
|
|
3594
|
+
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) => {
|
|
3595
|
+
H.value[C] = q, a.options = q, a.formatter || (a.formatter = (R, B, he, we) => a.options && g(a.options, he) || he);
|
|
3593
3596
|
});
|
|
3594
3597
|
}
|
|
3595
3598
|
return Promise.resolve();
|
|
3596
3599
|
}, ze = async () => {
|
|
3597
3600
|
try {
|
|
3598
|
-
const
|
|
3601
|
+
const s = Object.keys(t.value).filter((g) => t.value[g].getDicts).map(
|
|
3599
3602
|
(g) => Ce(t.value[g], g)
|
|
3600
3603
|
);
|
|
3601
|
-
await Promise.all(
|
|
3604
|
+
await Promise.all(s);
|
|
3602
3605
|
} catch (a) {
|
|
3603
3606
|
console.error("字典加载过程中发生错误:", a);
|
|
3604
3607
|
}
|
|
3605
|
-
}, Ue = (a,
|
|
3608
|
+
}, Ue = (a, s, g, C) => {
|
|
3606
3609
|
var q, R;
|
|
3607
|
-
return a.table ? (q = a.table(
|
|
3610
|
+
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;
|
|
3608
3611
|
}, tt = () => {
|
|
3609
3612
|
f.value = !1;
|
|
3610
3613
|
};
|
|
3611
|
-
|
|
3614
|
+
xl(() => {
|
|
3612
3615
|
t.value.table.autoWatch && t.value.table.load();
|
|
3613
3616
|
});
|
|
3614
3617
|
const Le = async () => {
|
|
3615
3618
|
try {
|
|
3616
|
-
const [a,
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3619
|
+
const [a, s, g] = await Promise.all([
|
|
3620
|
+
Ca(J.value),
|
|
3621
|
+
Ea(J.value),
|
|
3622
|
+
xa(J.value)
|
|
3620
3623
|
]);
|
|
3621
3624
|
a && Array.isArray(a) && a.forEach((C) => {
|
|
3622
3625
|
const q = t.value[C.key];
|
|
3623
3626
|
q && (q.width = C.width);
|
|
3624
|
-
}),
|
|
3627
|
+
}), s && Array.isArray(s) && s.forEach((C, q) => {
|
|
3625
3628
|
const R = t.value[C];
|
|
3626
3629
|
R && (R.sort = q);
|
|
3627
3630
|
}), g && Array.isArray(g) && g.length > 0 ? g.forEach((C) => {
|
|
@@ -3631,48 +3634,48 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3631
3634
|
t.value[C].showCol = !0;
|
|
3632
3635
|
});
|
|
3633
3636
|
} catch (a) {
|
|
3634
|
-
console.error("加载表格信息时出错:", a), Object.keys(t.value).filter((
|
|
3635
|
-
t.value[
|
|
3637
|
+
console.error("加载表格信息时出错:", a), Object.keys(t.value).filter((s) => t.value[s].type !== "control").forEach((s) => {
|
|
3638
|
+
t.value[s].showCol === void 0 && (t.value[s].showCol = !0);
|
|
3636
3639
|
});
|
|
3637
3640
|
}
|
|
3638
3641
|
}, Qe = () => Wa(Object.keys(t.value).toString()).toUpperCase().substring(8, 24);
|
|
3639
|
-
return
|
|
3642
|
+
return Ml(() => {
|
|
3640
3643
|
J.value = Qe();
|
|
3641
3644
|
}), yt(async () => {
|
|
3642
3645
|
try {
|
|
3643
|
-
|
|
3644
|
-
([
|
|
3645
|
-
).map(([
|
|
3646
|
-
key:
|
|
3646
|
+
y.value = Object.entries(t.value).filter(
|
|
3647
|
+
([s, g]) => g.type !== "hidden" && g.type !== "control" && g.visible !== !1
|
|
3648
|
+
).map(([s, g]) => ({
|
|
3649
|
+
key: s || "",
|
|
3647
3650
|
label: g.label,
|
|
3648
3651
|
value: !0
|
|
3649
3652
|
})), await Ke();
|
|
3650
3653
|
const a = Object.entries(t.value).filter(
|
|
3651
|
-
([
|
|
3654
|
+
([s, g]) => g.type !== "control" && g.type !== "hidden"
|
|
3652
3655
|
);
|
|
3653
3656
|
k.value = Object.fromEntries(
|
|
3654
|
-
a.map(([
|
|
3657
|
+
a.map(([s, g]) => [s, g.value])
|
|
3655
3658
|
), await Le(), t.value.table.autoWatch || t.value.table.load();
|
|
3656
3659
|
} catch (a) {
|
|
3657
3660
|
console.error("Error during component initialization:", a), t.value.table.autoWatch || t.value.table.load();
|
|
3658
3661
|
}
|
|
3659
|
-
}),
|
|
3660
|
-
var Ee, Oe,
|
|
3662
|
+
}), u({ addRow: $, editRow: S, deleteRow: O, readForm: I, saveRowData: le, closeDialog: tt, formData: k }), (a, s) => {
|
|
3663
|
+
var Ee, Oe, He, Ze, st, _t, Ct;
|
|
3661
3664
|
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");
|
|
3662
|
-
return
|
|
3663
|
-
f.value ? (
|
|
3665
|
+
return m(), z(re, null, [
|
|
3666
|
+
f.value ? (m(), E(Ht, A({
|
|
3664
3667
|
key: 0,
|
|
3665
3668
|
modelValue: f.value,
|
|
3666
|
-
"onUpdate:modelValue":
|
|
3669
|
+
"onUpdate:modelValue": s[2] || (s[2] = (Q) => f.value = Q)
|
|
3667
3670
|
}, t.value.dialog, {
|
|
3668
3671
|
type: t.value.dialog.mode
|
|
3669
3672
|
}), ge({
|
|
3670
3673
|
default: _(() => [
|
|
3671
|
-
f.value ? (
|
|
3674
|
+
f.value ? (m(), E(Pe(dl), {
|
|
3672
3675
|
key: 0,
|
|
3673
3676
|
modelValue: t.value,
|
|
3674
|
-
"onUpdate:modelValue":
|
|
3675
|
-
onSubmit:
|
|
3677
|
+
"onUpdate:modelValue": s[0] || (s[0] = (Q) => t.value = Q),
|
|
3678
|
+
onSubmit: s[1] || (s[1] = (Q, fe, te) => L(de)(Q, fe, te)),
|
|
3676
3679
|
onReset: ye,
|
|
3677
3680
|
flag: l.value
|
|
3678
3681
|
}, ge({ _: 2 }, [
|
|
@@ -3719,70 +3722,70 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3719
3722
|
} : void 0
|
|
3720
3723
|
]), 1040, ["modelValue", "type"])) : be("", !0),
|
|
3721
3724
|
Z("div", Ga, [
|
|
3722
|
-
((Ze = (
|
|
3725
|
+
((Ze = (He = t.value) == null ? void 0 : He.query) == null ? void 0 : Ze.hidden) != !0 ? (m(), z("div", Xa, [
|
|
3723
3726
|
x(a.$slots, "query", {}, () => [
|
|
3724
|
-
se(
|
|
3727
|
+
se(oa, {
|
|
3725
3728
|
modelValue: t.value,
|
|
3726
|
-
"onUpdate:modelValue":
|
|
3729
|
+
"onUpdate:modelValue": s[3] || (s[3] = (Q) => t.value = Q),
|
|
3727
3730
|
info: T.value,
|
|
3728
|
-
"onUpdate:info":
|
|
3731
|
+
"onUpdate:info": s[4] || (s[4] = (Q) => T.value = Q),
|
|
3729
3732
|
onQuery: w,
|
|
3730
3733
|
onReset: We
|
|
3731
3734
|
}, ge({
|
|
3732
3735
|
"q-btns": _(() => [
|
|
3733
3736
|
x(a.$slots, "q-btns", {}, () => [
|
|
3734
|
-
(
|
|
3735
|
-
fe == "default" ? (
|
|
3737
|
+
(m(!0), z(re, null, N(V(["add", "toggleExpand", "batch", "download", "setting"], k.value, t.value), (Q, fe) => (m(), z(re, null, [
|
|
3738
|
+
fe == "default" ? (m(!0), z(re, { key: 0 }, N(Q, (te) => (m(), z(re, null, [
|
|
3736
3739
|
x(a.$slots, te.name + "-left", {}, void 0, !0),
|
|
3737
3740
|
(te.name === "control-add" ? te.attr.auth() && te.attr.inline === !1 : te.attr.auth()) ? x(a.$slots, te.name, { key: 0 }, () => {
|
|
3738
3741
|
var Re, Je;
|
|
3739
3742
|
return [
|
|
3740
|
-
te.label ? (
|
|
3743
|
+
te.label ? (m(), E(L(je), A({
|
|
3741
3744
|
key: 0,
|
|
3742
3745
|
title: te.label,
|
|
3743
3746
|
disabled: te.name === "control-batch" && ((Re = ee.value) == null ? void 0 : Re.length) === 0
|
|
3744
3747
|
}, { ref_for: !0 }, te.attr, {
|
|
3745
|
-
onClick: (rt) => te.func(k.value, t.value,
|
|
3748
|
+
onClick: (rt) => te.func(k.value, t.value, y.value)
|
|
3746
3749
|
}), {
|
|
3747
3750
|
default: _(() => [
|
|
3748
3751
|
Ae(Me(te.label), 1)
|
|
3749
3752
|
]),
|
|
3750
3753
|
_: 2
|
|
3751
|
-
}, 1040, ["title", "disabled", "onClick"])) : (
|
|
3754
|
+
}, 1040, ["title", "disabled", "onClick"])) : (m(), E(L(je), A({
|
|
3752
3755
|
key: 1,
|
|
3753
3756
|
title: te.label,
|
|
3754
3757
|
disabled: te.name === "control-batch" && ((Je = ee.value) == null ? void 0 : Je.length) === 0
|
|
3755
3758
|
}, { ref_for: !0 }, te.attr, {
|
|
3756
|
-
onClick: (rt) => te.func(k.value, t.value,
|
|
3759
|
+
onClick: (rt) => te.func(k.value, t.value, y.value)
|
|
3757
3760
|
}), null, 16, ["title", "disabled", "onClick"]))
|
|
3758
3761
|
];
|
|
3759
3762
|
}, !0) : be("", !0),
|
|
3760
3763
|
x(a.$slots, te.name + "-right", {}, void 0, !0)
|
|
3761
|
-
], 64))), 256)) : (
|
|
3764
|
+
], 64))), 256)) : (m(), E(g, { key: 1 }, {
|
|
3762
3765
|
default: _(() => [
|
|
3763
|
-
(
|
|
3766
|
+
(m(!0), z(re, null, N(Q, (te) => (m(), z(re, null, [
|
|
3764
3767
|
x(a.$slots, te.name + "-left", {}, void 0, !0),
|
|
3765
3768
|
(te.name === "control-add" ? te.attr.auth() && te.attr.inline === !1 : te.attr.auth()) ? x(a.$slots, te.name, { key: 0 }, () => {
|
|
3766
3769
|
var Re, Je;
|
|
3767
3770
|
return [
|
|
3768
|
-
te.label ? (
|
|
3771
|
+
te.label ? (m(), E(L(je), A({
|
|
3769
3772
|
key: 0,
|
|
3770
3773
|
title: te.label,
|
|
3771
3774
|
disabled: te.name === "control-batch" && ((Re = ee.value) == null ? void 0 : Re.length) === 0,
|
|
3772
3775
|
v: ""
|
|
3773
3776
|
}, { ref_for: !0 }, te.attr, {
|
|
3774
|
-
onClick: (rt) => te.func(k.value, t.value,
|
|
3777
|
+
onClick: (rt) => te.func(k.value, t.value, y.value)
|
|
3775
3778
|
}), {
|
|
3776
3779
|
default: _(() => [
|
|
3777
3780
|
Ae(Me(te.label), 1)
|
|
3778
3781
|
]),
|
|
3779
3782
|
_: 2
|
|
3780
|
-
}, 1040, ["title", "disabled", "onClick"])) : (
|
|
3783
|
+
}, 1040, ["title", "disabled", "onClick"])) : (m(), E(L(je), A({
|
|
3781
3784
|
key: 1,
|
|
3782
3785
|
title: te.label,
|
|
3783
3786
|
disabled: te.name === "control-batch" && ((Je = ee.value) == null ? void 0 : Je.length) === 0
|
|
3784
3787
|
}, { ref_for: !0 }, te.attr, {
|
|
3785
|
-
onClick: (rt) => te.func(k.value, t.value,
|
|
3788
|
+
onClick: (rt) => te.func(k.value, t.value, y.value)
|
|
3786
3789
|
}), null, 16, ["title", "disabled", "onClick"]))
|
|
3787
3790
|
];
|
|
3788
3791
|
}, !0) : be("", !0),
|
|
@@ -3810,15 +3813,15 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3810
3813
|
queryInfo: T.value
|
|
3811
3814
|
}, void 0, !0),
|
|
3812
3815
|
Z("div", Qa, [
|
|
3813
|
-
v.value ? (
|
|
3816
|
+
v.value ? (m(), E(he, A({ key: 0 }, {
|
|
3814
3817
|
...a.$attrs,
|
|
3815
|
-
...
|
|
3818
|
+
...L(Ne)(
|
|
3816
3819
|
t.value.table,
|
|
3817
3820
|
(Q) => !["dblclickType", "page"].includes(Q)
|
|
3818
3821
|
)
|
|
3819
3822
|
}, {
|
|
3820
|
-
"summary-method": (Q) => t.value.table["summary-method"](Q, { fields:
|
|
3821
|
-
onSortChange:
|
|
3823
|
+
"summary-method": (Q) => t.value.table["summary-method"](Q, { fields: D.value, sums: j.value }),
|
|
3824
|
+
onSortChange: s[5] || (s[5] = (Q) => {
|
|
3822
3825
|
var fe, te;
|
|
3823
3826
|
t.value.table.onSortChange(Q, T.value), ((fe = Q == null ? void 0 : Q.column) == null ? void 0 : fe.sortable) === "custom" && ((te = t.value.table) == null || te.load());
|
|
3824
3827
|
})
|
|
@@ -3831,16 +3834,16 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3831
3834
|
]),
|
|
3832
3835
|
default: _(() => [
|
|
3833
3836
|
x(a.$slots, "default", {}, () => [
|
|
3834
|
-
(
|
|
3837
|
+
(m(!0), z(re, null, N(M.value, (Q, fe) => {
|
|
3835
3838
|
var te, Re, Je, rt;
|
|
3836
|
-
return
|
|
3839
|
+
return m(), E(B, A({
|
|
3837
3840
|
prop: fe,
|
|
3838
3841
|
"column-key": fe
|
|
3839
3842
|
}, { ref_for: !0 }, ((Re = (te = t.value) == null ? void 0 : te.table) == null ? void 0 : Re["row-key"]) == fe ? {
|
|
3840
|
-
...
|
|
3843
|
+
...L(Ne)(Q, (K) => ["label", "width", "min-width", "align", "header-align", "formatter"].includes(K))
|
|
3841
3844
|
} : {
|
|
3842
3845
|
...t.value.tableColumns,
|
|
3843
|
-
...
|
|
3846
|
+
...L(Ne)(Q, (K) => o.includes(K))
|
|
3844
3847
|
}), ge({
|
|
3845
3848
|
header: _(({ column: K, $index: ie }) => [
|
|
3846
3849
|
fe == "control" ? x(a.$slots, `${fe}-header`, {
|
|
@@ -3885,10 +3888,10 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3885
3888
|
column: ie,
|
|
3886
3889
|
index: ve
|
|
3887
3890
|
}, void 0, !0),
|
|
3888
|
-
(
|
|
3891
|
+
(m(!0), z(re, null, N(V(["view", "edit", "delete", "save"], K, ie, ve, t.value), (nt, ot) => {
|
|
3889
3892
|
var pt;
|
|
3890
|
-
return
|
|
3891
|
-
ot == "default" ? (
|
|
3893
|
+
return m(), z(re, null, [
|
|
3894
|
+
ot == "default" ? (m(!0), z(re, { key: 0 }, N(nt, (i) => (m(), z(re, null, [
|
|
3892
3895
|
x(a.$slots, i.name + "-left", {
|
|
3893
3896
|
row: K,
|
|
3894
3897
|
column: ie,
|
|
@@ -3900,7 +3903,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3900
3903
|
column: ie,
|
|
3901
3904
|
index: ve
|
|
3902
3905
|
}, () => [
|
|
3903
|
-
i.label ? (
|
|
3906
|
+
i.label ? (m(), E(L(je), A({
|
|
3904
3907
|
key: 0,
|
|
3905
3908
|
title: i.label
|
|
3906
3909
|
}, { ref_for: !0 }, i.attr, {
|
|
@@ -3910,7 +3913,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3910
3913
|
Ae(Me(i.label), 1)
|
|
3911
3914
|
]),
|
|
3912
3915
|
_: 2
|
|
3913
|
-
}, 1040, ["title", "onClick"])) : (
|
|
3916
|
+
}, 1040, ["title", "onClick"])) : (m(), E(L(je), A({
|
|
3914
3917
|
key: 1,
|
|
3915
3918
|
title: i.label
|
|
3916
3919
|
}, { ref_for: !0 }, i.attr, {
|
|
@@ -3922,23 +3925,23 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3922
3925
|
column: ie,
|
|
3923
3926
|
index: ve
|
|
3924
3927
|
}, void 0, !0)
|
|
3925
|
-
], 64))), 256)) : ot != null && ot.startsWith("dropdown") && ((pt = Se(K, ie, ve, t.value)) != null && pt.auth()) ? (
|
|
3928
|
+
], 64))), 256)) : ot != null && ot.startsWith("dropdown") && ((pt = Se(K, ie, ve, t.value)) != null && pt.auth()) ? (m(), E(R, A({
|
|
3926
3929
|
key: 1,
|
|
3927
3930
|
ref_for: !0
|
|
3928
3931
|
}, Se(K, ie, ve, t.value)), {
|
|
3929
3932
|
dropdown: _(() => [
|
|
3930
3933
|
se(q, null, {
|
|
3931
3934
|
default: _(() => [
|
|
3932
|
-
(
|
|
3935
|
+
(m(!0), z(re, null, N(nt, (i) => {
|
|
3933
3936
|
var oe, ce, Be;
|
|
3934
|
-
return
|
|
3937
|
+
return m(), z(re, null, [
|
|
3935
3938
|
a.$slots[i.name + "-left"] ? x(a.$slots, i.name + "-left", {
|
|
3936
3939
|
key: 0,
|
|
3937
3940
|
row: K,
|
|
3938
3941
|
column: ie,
|
|
3939
3942
|
index: ve
|
|
3940
3943
|
}, void 0, !0) : be("", !0),
|
|
3941
|
-
i.attr.auth() ? (
|
|
3944
|
+
i.attr.auth() ? (m(), E(C, A({
|
|
3942
3945
|
key: 1,
|
|
3943
3946
|
ref_for: !0
|
|
3944
3947
|
}, {
|
|
@@ -3952,7 +3955,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3952
3955
|
column: ie,
|
|
3953
3956
|
index: ve
|
|
3954
3957
|
}, () => [
|
|
3955
|
-
i.label ? (
|
|
3958
|
+
i.label ? (m(), E(L(je), A({
|
|
3956
3959
|
key: 0,
|
|
3957
3960
|
title: i.label
|
|
3958
3961
|
}, { ref_for: !0 }, i.attr, {
|
|
@@ -3962,7 +3965,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3962
3965
|
Ae(Me(i.label), 1)
|
|
3963
3966
|
]),
|
|
3964
3967
|
_: 2
|
|
3965
|
-
}, 1040, ["title", "onClick"])) : (
|
|
3968
|
+
}, 1040, ["title", "onClick"])) : (m(), E(L(je), A({
|
|
3966
3969
|
key: 1,
|
|
3967
3970
|
title: i.label
|
|
3968
3971
|
}, { ref_for: !0 }, i.attr, {
|
|
@@ -3991,9 +3994,9 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3991
3994
|
];
|
|
3992
3995
|
}),
|
|
3993
3996
|
_: 2
|
|
3994
|
-
}, 1040)) : (
|
|
3997
|
+
}, 1040)) : (m(), E(g, { key: 2 }, {
|
|
3995
3998
|
default: _(() => [
|
|
3996
|
-
(
|
|
3999
|
+
(m(!0), z(re, null, N(nt, (i) => (m(), z(re, null, [
|
|
3997
4000
|
x(a.$slots, i.name + "-left", {
|
|
3998
4001
|
row: K,
|
|
3999
4002
|
column: ie,
|
|
@@ -4005,7 +4008,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4005
4008
|
column: ie,
|
|
4006
4009
|
index: ve
|
|
4007
4010
|
}, () => [
|
|
4008
|
-
i.label ? (
|
|
4011
|
+
i.label ? (m(), E(L(je), A({
|
|
4009
4012
|
key: 0,
|
|
4010
4013
|
title: i.label
|
|
4011
4014
|
}, { ref_for: !0 }, i.attr, {
|
|
@@ -4015,7 +4018,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4015
4018
|
Ae(Me(i.label), 1)
|
|
4016
4019
|
]),
|
|
4017
4020
|
_: 2
|
|
4018
|
-
}, 1040, ["title", "onClick"])) : (
|
|
4021
|
+
}, 1040, ["title", "onClick"])) : (m(), E(L(je), A({
|
|
4019
4022
|
key: 1,
|
|
4020
4023
|
title: i.label
|
|
4021
4024
|
}, { ref_for: !0 }, i.attr, {
|
|
@@ -4054,7 +4057,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4054
4057
|
}, () => {
|
|
4055
4058
|
var it;
|
|
4056
4059
|
return [
|
|
4057
|
-
(
|
|
4060
|
+
(m(), E(ht, {
|
|
4058
4061
|
modelValue: K[fe],
|
|
4059
4062
|
"onUpdate:modelValue": (dt) => K[fe] = dt,
|
|
4060
4063
|
item: Q == null ? void 0 : Q.table(K, ie, ve),
|
|
@@ -4104,9 +4107,9 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4104
4107
|
(Ct = (_t = (st = t.value) == null ? void 0 : st.table) == null ? void 0 : _t.page) != null && Ct.hidden ? be("", !0) : x(a.$slots, "page", { key: 1 }, () => [
|
|
4105
4108
|
se(we, A({
|
|
4106
4109
|
"page-size": t.value.table.page.pageSize,
|
|
4107
|
-
"onUpdate:pageSize":
|
|
4110
|
+
"onUpdate:pageSize": s[6] || (s[6] = (Q) => t.value.table.page.pageSize = Q),
|
|
4108
4111
|
"current-page": t.value.table.page.currentPage,
|
|
4109
|
-
"onUpdate:currentPage":
|
|
4112
|
+
"onUpdate:currentPage": s[7] || (s[7] = (Q) => t.value.table.page.currentPage = Q)
|
|
4110
4113
|
}, t.value.table.page), {
|
|
4111
4114
|
default: _(() => [
|
|
4112
4115
|
x(a.$slots, "table-page", {}, void 0, !0)
|
|
@@ -4129,11 +4132,11 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4129
4132
|
modelModifiers: {}
|
|
4130
4133
|
},
|
|
4131
4134
|
emits: /* @__PURE__ */ at(["load"], ["update:modelValue"]),
|
|
4132
|
-
setup(r, { emit:
|
|
4133
|
-
var
|
|
4134
|
-
const e =
|
|
4135
|
-
typeof ((
|
|
4136
|
-
), t = ae(((
|
|
4135
|
+
setup(r, { emit: u }) {
|
|
4136
|
+
var y, U, j, D;
|
|
4137
|
+
const e = u, l = lt(r, "modelValue"), n = It(), d = ae(
|
|
4138
|
+
typeof ((y = n == null ? void 0 : n.tree) == null ? void 0 : y.width) == "number" ? `${n.tree.width}px` : ((U = n == null ? void 0 : n.tree) == null ? void 0 : U.width) || "180px"
|
|
4139
|
+
), t = ae(((j = n == null ? void 0 : n.tree) == null ? void 0 : j.search) === void 0 ? !0 : (D = n == null ? void 0 : n.tree) == null ? void 0 : D.search), c = ae({}), T = ae(""), v = ae(null), p = (k, X) => {
|
|
4137
4140
|
var ee, ne;
|
|
4138
4141
|
if (!k) return !0;
|
|
4139
4142
|
const J = ((ne = (ee = n.tree) == null ? void 0 : ee.props) == null ? void 0 : ne.label) || "label";
|
|
@@ -4147,12 +4150,12 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4147
4150
|
v.value.filter(k);
|
|
4148
4151
|
}), (k, X) => {
|
|
4149
4152
|
const J = F("el-input"), ee = F("el-tree"), ne = F("g-table");
|
|
4150
|
-
return
|
|
4153
|
+
return m(), z("div", er, [
|
|
4151
4154
|
Z("div", {
|
|
4152
4155
|
class: "g-tree-left",
|
|
4153
4156
|
style: Ye({ width: d.value })
|
|
4154
4157
|
}, [
|
|
4155
|
-
t.value ? (
|
|
4158
|
+
t.value ? (m(), E(J, {
|
|
4156
4159
|
key: 0,
|
|
4157
4160
|
modelValue: T.value,
|
|
4158
4161
|
"onUpdate:modelValue": X[0] || (X[0] = (ue) => T.value = ue),
|
|
@@ -4163,7 +4166,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4163
4166
|
Z("div", tr, [
|
|
4164
4167
|
se(ee, A({
|
|
4165
4168
|
style: { width: d.value },
|
|
4166
|
-
"filter-node-method":
|
|
4169
|
+
"filter-node-method": p,
|
|
4167
4170
|
"expand-on-click-node": !1,
|
|
4168
4171
|
ref_key: "treeRef",
|
|
4169
4172
|
ref: v,
|
|
@@ -4235,9 +4238,9 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4235
4238
|
}
|
|
4236
4239
|
},
|
|
4237
4240
|
setup(r) {
|
|
4238
|
-
const
|
|
4239
|
-
return (e, l) =>
|
|
4240
|
-
(
|
|
4241
|
+
const u = r;
|
|
4242
|
+
return (e, l) => u.title ? (m(), z("div", nr, [
|
|
4243
|
+
(m(!0), z(re, null, N(u.columns, (n) => (m(), z("span", {
|
|
4241
4244
|
style: Ye({ width: (n == null ? void 0 : n.width) || Pt, ...n == null ? void 0 : n.titleStyle, textAlign: (n == null ? void 0 : n.align) || "center" }),
|
|
4242
4245
|
key: n.key
|
|
4243
4246
|
}, [
|
|
@@ -4245,8 +4248,8 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4245
4248
|
Ae(Me(n.label), 1)
|
|
4246
4249
|
], !0)
|
|
4247
4250
|
], 4))), 128))
|
|
4248
|
-
])) : (
|
|
4249
|
-
(
|
|
4251
|
+
])) : (m(), z("div", or, [
|
|
4252
|
+
(m(!0), z(re, null, N(u.columns, (n) => (m(), z("span", {
|
|
4250
4253
|
style: Ye({ width: (n == null ? void 0 : n.width) || Pt, textAlign: (n == null ? void 0 : n.align) || "center", ...n == null ? void 0 : n.style }),
|
|
4251
4254
|
key: n.key,
|
|
4252
4255
|
title: r.data[n.key]
|
|
@@ -4257,21 +4260,21 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4257
4260
|
], 12, ur))), 128))
|
|
4258
4261
|
]));
|
|
4259
4262
|
}
|
|
4260
|
-
}), ir = /* @__PURE__ */ et(sr, [["__scopeId", "data-v-c0ac6b77"]]), dr = Object.freeze({}), Ft = [Ka, dl, rr, ir,
|
|
4263
|
+
}), ir = /* @__PURE__ */ et(sr, [["__scopeId", "data-v-c0ac6b77"]]), dr = Object.freeze({}), Ft = [Ka, dl, rr, ir, Ht, cl];
|
|
4261
4264
|
let Dt = {};
|
|
4262
4265
|
const Cr = {
|
|
4263
|
-
install: (r,
|
|
4264
|
-
Dt = Object.freeze({ ...dr, ...
|
|
4266
|
+
install: (r, u = {}) => {
|
|
4267
|
+
Dt = Object.freeze({ ...dr, ...u }), Ft.forEach((e) => {
|
|
4265
4268
|
r.component(e.name, e);
|
|
4266
|
-
}), r.provide("options", Dt), r.config.globalProperties.$openModal = Lt, r.config.globalProperties.$open =
|
|
4269
|
+
}), r.provide("options", Dt), r.config.globalProperties.$openModal = Lt, r.config.globalProperties.$open = ml;
|
|
4267
4270
|
}
|
|
4268
|
-
}, cr = (r) => ({ dialog:
|
|
4271
|
+
}, cr = (r) => ({ dialog: bl, drawer: gl })[r] || null, Lt = (r = {}, u = "dialog") => {
|
|
4269
4272
|
if (typeof document > "u") return () => {
|
|
4270
4273
|
};
|
|
4271
4274
|
const e = document.createElement("div");
|
|
4272
4275
|
let l = () => {
|
|
4273
4276
|
};
|
|
4274
|
-
const n = cr(
|
|
4277
|
+
const n = cr(u);
|
|
4275
4278
|
if (!n) return () => {
|
|
4276
4279
|
};
|
|
4277
4280
|
const d = ae(!0), t = Jt({
|
|
@@ -4284,7 +4287,7 @@ const Cr = {
|
|
|
4284
4287
|
var c, T, v;
|
|
4285
4288
|
return _e(n, {
|
|
4286
4289
|
modelValue: d.value,
|
|
4287
|
-
"onUpdate:modelValue": (
|
|
4290
|
+
"onUpdate:modelValue": (p) => d.value = p,
|
|
4288
4291
|
appendToBody: !0,
|
|
4289
4292
|
draggable: !0,
|
|
4290
4293
|
"align-center": !0,
|
|
@@ -4306,21 +4309,21 @@ const Cr = {
|
|
|
4306
4309
|
return Ft.forEach((c) => {
|
|
4307
4310
|
t.component(c.name, c);
|
|
4308
4311
|
}), t.provide("options", Dt), t.use(Nt, { locale: nl }), document.body.appendChild(e), t.mount(e), l;
|
|
4309
|
-
},
|
|
4312
|
+
}, ml = (r = {}) => {
|
|
4310
4313
|
if (typeof document > "u") return () => {
|
|
4311
4314
|
};
|
|
4312
|
-
const
|
|
4315
|
+
const u = document.createElement("div");
|
|
4313
4316
|
let e = () => {
|
|
4314
4317
|
};
|
|
4315
4318
|
const l = ae(!0), n = Jt({
|
|
4316
4319
|
setup() {
|
|
4317
4320
|
e = () => {
|
|
4318
4321
|
l.value = !1, setTimeout(() => {
|
|
4319
|
-
n.unmount(),
|
|
4322
|
+
n.unmount(), u.remove();
|
|
4320
4323
|
}, 300);
|
|
4321
4324
|
}, Zt(l, (T) => {
|
|
4322
4325
|
T || setTimeout(() => {
|
|
4323
|
-
n.unmount(),
|
|
4326
|
+
n.unmount(), u.remove();
|
|
4324
4327
|
}, 300);
|
|
4325
4328
|
});
|
|
4326
4329
|
const { close: d, ...t } = r, c = {
|
|
@@ -4329,7 +4332,7 @@ const Cr = {
|
|
|
4329
4332
|
//'close-on-click-modal': false,
|
|
4330
4333
|
...t
|
|
4331
4334
|
};
|
|
4332
|
-
return d && (c.onClose = d), () => _e(
|
|
4335
|
+
return d && (c.onClose = d), () => _e(Ht, c, r.slots);
|
|
4333
4336
|
},
|
|
4334
4337
|
mounted: () => {
|
|
4335
4338
|
mt();
|
|
@@ -4337,9 +4340,9 @@ const Cr = {
|
|
|
4337
4340
|
});
|
|
4338
4341
|
return Ft.forEach((d) => {
|
|
4339
4342
|
n.component(d.name, d);
|
|
4340
|
-
}), n.provide("options", Dt), n.use(Nt, { locale: nl }), document.body.appendChild(
|
|
4343
|
+
}), n.provide("options", Dt), n.use(Nt, { locale: nl }), document.body.appendChild(u), n.mount(u), e;
|
|
4341
4344
|
};
|
|
4342
|
-
function fr(r,
|
|
4345
|
+
function fr(r, u = window.innerWidth) {
|
|
4343
4346
|
if (typeof r == "number")
|
|
4344
4347
|
return r;
|
|
4345
4348
|
if (r.endsWith("px"))
|
|
@@ -4350,9 +4353,9 @@ function fr(r, s = window.innerWidth) {
|
|
|
4350
4353
|
if (r.endsWith("vw"))
|
|
4351
4354
|
return l * parseFloat(r) / 100;
|
|
4352
4355
|
if (r.endsWith("%")) {
|
|
4353
|
-
if (typeof
|
|
4356
|
+
if (typeof u != "number")
|
|
4354
4357
|
throw new Error("Reference size is required to convert % to px");
|
|
4355
|
-
return
|
|
4358
|
+
return u * parseFloat(r) / 100;
|
|
4356
4359
|
}
|
|
4357
4360
|
if (r.startsWith("calc(") && r.endsWith(")")) {
|
|
4358
4361
|
let d = function(c) {
|
|
@@ -4361,44 +4364,44 @@ function fr(r, s = window.innerWidth) {
|
|
|
4361
4364
|
throw new Error("Invalid calc expression");
|
|
4362
4365
|
};
|
|
4363
4366
|
const n = r.slice(5, -1).trim();
|
|
4364
|
-
return d(n.replace(/([0-9.]+)([a-z%]+)/g, (c, T, v) => fr(T + v,
|
|
4367
|
+
return d(n.replace(/([0-9.]+)([a-z%]+)/g, (c, T, v) => fr(T + v, u)));
|
|
4365
4368
|
}
|
|
4366
4369
|
throw new Error("Unsupported unit in value: " + r);
|
|
4367
4370
|
}
|
|
4368
4371
|
const qe = (...r) => {
|
|
4369
|
-
const
|
|
4372
|
+
const u = {}, e = (l, n) => (Object.keys(n).forEach((d) => {
|
|
4370
4373
|
l[d] = typeof n[d] == "object" && !Array.isArray(n[d]) ? e(l[d] || {}, n[d]) : n[d];
|
|
4371
4374
|
}), l);
|
|
4372
|
-
return r.forEach((l = {}) => e(
|
|
4375
|
+
return r.forEach((l = {}) => e(u, l)), u;
|
|
4373
4376
|
};
|
|
4374
|
-
function Ne(r,
|
|
4377
|
+
function Ne(r, u = (e, l) => l != null) {
|
|
4375
4378
|
const e = {};
|
|
4376
4379
|
for (const l in r)
|
|
4377
|
-
r.hasOwnProperty(l) &&
|
|
4380
|
+
r.hasOwnProperty(l) && u(l, r[l]) && (e[l] = r[l]);
|
|
4378
4381
|
return e;
|
|
4379
4382
|
}
|
|
4380
|
-
function vr(r,
|
|
4383
|
+
function vr(r, u, e = "value", l = "label", n = "children") {
|
|
4381
4384
|
for (const d of r) {
|
|
4382
|
-
if (d[e] ===
|
|
4385
|
+
if (d[e] === u)
|
|
4383
4386
|
return d[l];
|
|
4384
4387
|
if (d[n] && d[n].length > 0) {
|
|
4385
|
-
const t = vr(d[n],
|
|
4388
|
+
const t = vr(d[n], u, e, l, n);
|
|
4386
4389
|
if (t)
|
|
4387
4390
|
return t;
|
|
4388
4391
|
}
|
|
4389
4392
|
}
|
|
4390
4393
|
return null;
|
|
4391
4394
|
}
|
|
4392
|
-
function
|
|
4395
|
+
function jt(r) {
|
|
4393
4396
|
if (!r || isNaN(r)) return "零";
|
|
4394
|
-
const
|
|
4397
|
+
const u = ["角", "分"], e = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], l = [
|
|
4395
4398
|
["元", "万", "亿"],
|
|
4396
4399
|
["", "拾", "佰", "仟"]
|
|
4397
4400
|
], n = r < 0 ? "欠" : "";
|
|
4398
4401
|
r = Math.abs(r);
|
|
4399
4402
|
let d = "";
|
|
4400
|
-
for (let t = 0; t <
|
|
4401
|
-
d += (e[Math.floor(r * 10 * Math.pow(10, t)) % 10] +
|
|
4403
|
+
for (let t = 0; t < u.length; t++)
|
|
4404
|
+
d += (e[Math.floor(r * 10 * Math.pow(10, t)) % 10] + u[t]).replace(/零./, "");
|
|
4402
4405
|
d = d || "整", r = Math.floor(r);
|
|
4403
4406
|
for (let t = 0; t < l[0].length && r > 0; t++) {
|
|
4404
4407
|
let c = "";
|
|
@@ -4408,31 +4411,31 @@ function Ht(r) {
|
|
|
4408
4411
|
}
|
|
4409
4412
|
return n + d.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
4410
4413
|
}
|
|
4411
|
-
function pr(r,
|
|
4414
|
+
function pr(r, u = 2, e = !1) {
|
|
4412
4415
|
let l = Number(r);
|
|
4413
4416
|
if (isNaN(l) || !isFinite(l))
|
|
4414
4417
|
return "0.00";
|
|
4415
4418
|
const n = l < 0;
|
|
4416
4419
|
l = Math.abs(l);
|
|
4417
|
-
let d = l.toFixed(
|
|
4420
|
+
let d = l.toFixed(u);
|
|
4418
4421
|
e && (d = d.replace(/\.?0+$/, ""));
|
|
4419
4422
|
const [t, c] = d.split("."), T = t.replace(/\B(?=(\d{3})+(?!\d))/g, ","), v = c ? `${T}.${c}` : T;
|
|
4420
4423
|
return n ? `-${v}` : v;
|
|
4421
4424
|
}
|
|
4422
|
-
function mr(r,
|
|
4425
|
+
function mr(r, u) {
|
|
4423
4426
|
let e = null;
|
|
4424
4427
|
return function(...l) {
|
|
4425
4428
|
e && clearTimeout(e), e = setTimeout(() => {
|
|
4426
4429
|
r.apply(this, l);
|
|
4427
|
-
},
|
|
4430
|
+
}, u);
|
|
4428
4431
|
};
|
|
4429
4432
|
}
|
|
4430
|
-
function xr(r,
|
|
4433
|
+
function xr(r, u) {
|
|
4431
4434
|
let e = null;
|
|
4432
4435
|
return function(...l) {
|
|
4433
4436
|
e || (e = setTimeout(() => {
|
|
4434
4437
|
r.apply(this, l), e = null;
|
|
4435
|
-
},
|
|
4438
|
+
}, u));
|
|
4436
4439
|
};
|
|
4437
4440
|
}
|
|
4438
4441
|
const xe = {
|
|
@@ -4469,8 +4472,8 @@ const xe = {
|
|
|
4469
4472
|
const r = document.querySelector(".el-dialog");
|
|
4470
4473
|
if (!r || r.querySelector(".dialog-resize-handle"))
|
|
4471
4474
|
return;
|
|
4472
|
-
const
|
|
4473
|
-
r.appendChild(
|
|
4475
|
+
const u = hr();
|
|
4476
|
+
r.appendChild(u), yr(r), gr(r, u);
|
|
4474
4477
|
});
|
|
4475
4478
|
}, hr = () => {
|
|
4476
4479
|
const r = document.createElement("div");
|
|
@@ -4492,18 +4495,18 @@ const xe = {
|
|
|
4492
4495
|
resize: "none"
|
|
4493
4496
|
// 防止与原生resize冲突
|
|
4494
4497
|
});
|
|
4495
|
-
}, gr = (r,
|
|
4498
|
+
}, gr = (r, u) => {
|
|
4496
4499
|
let e = !1, l, n, d, t;
|
|
4497
|
-
const c = (
|
|
4498
|
-
|
|
4499
|
-
}, T = (
|
|
4500
|
+
const c = (p) => {
|
|
4501
|
+
p.preventDefault(), e = !0, l = p.clientX, n = p.clientY, d = parseInt(document.defaultView.getComputedStyle(r).width), t = parseInt(document.defaultView.getComputedStyle(r).height), document.addEventListener("mousemove", T), document.addEventListener("mouseup", v);
|
|
4502
|
+
}, T = (p) => {
|
|
4500
4503
|
if (!e) return;
|
|
4501
|
-
const f = Math.max(300, d +
|
|
4504
|
+
const f = Math.max(300, d + p.clientX - l), o = Math.max(200, t + p.clientY - n);
|
|
4502
4505
|
r.style.width = `${f}px`, r.style.height = `${o}px`;
|
|
4503
4506
|
}, v = () => {
|
|
4504
4507
|
e = !1, document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", v);
|
|
4505
4508
|
};
|
|
4506
|
-
|
|
4509
|
+
u.addEventListener("mousedown", c);
|
|
4507
4510
|
};
|
|
4508
4511
|
export {
|
|
4509
4512
|
xe as CT,
|
|
@@ -4515,8 +4518,8 @@ export {
|
|
|
4515
4518
|
vr as findTreeLabelByValue,
|
|
4516
4519
|
pr as formatAmount,
|
|
4517
4520
|
qe as mergeObjects,
|
|
4518
|
-
|
|
4519
|
-
|
|
4521
|
+
jt as moneyToChinese,
|
|
4522
|
+
ml as open,
|
|
4520
4523
|
Lt as openModal,
|
|
4521
4524
|
xr as throttle
|
|
4522
4525
|
};
|