vue-2024-ui 0.2.83 → 0.2.86
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 +1291 -1296
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Nt, { dayjs as hl, ElForm as Mt, ElButtonGroup as St, ElButton as He, ElPopover as At, ElIcon as Yt, ElMessage as ut, ElMessageBox as Wt, ElDrawer as yl, ElDialog as gl } from "element-plus";
|
|
2
|
-
import { ref as ae, useModel as lt, nextTick as Ke, onMounted as yt, computed as
|
|
2
|
+
import { ref as ae, useModel as lt, nextTick as Ke, onMounted as yt, computed as Fe, resolveComponent as F, openBlock as h, createElementBlock as z, Fragment as re, createElementVNode as Z, createBlock as E, createCommentVNode as be, unref as U, 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 bl, withDirectives as $l, vShow as wl, h as _e, useAttrs as It, onUnmounted as kl, onBeforeUnmount as _l, normalizeClass as Qt, watchEffect as Cl, onBeforeMount as xl, watch as Zt, createApp as Jt } from "vue";
|
|
3
3
|
import { Plus as Ml, ZoomIn as Sl, Delete as Kt, Search as Tl, Refresh as el, More as Vl, CircleClose as El, CircleCheckFilled as Dl, CircleCheck as zt, Minus as Ol, Close as Il, Switch as tl, FullScreen as ql, InfoFilled as ll, Download as al, DocumentCopy as Al, Setting as Yl, CirclePlus as zl, Edit as Ul, View as Ll } from "@element-plus/icons-vue";
|
|
4
4
|
import rl from "sortablejs";
|
|
5
5
|
import { Dexie as Hl } from "dexie";
|
|
@@ -183,51 +183,51 @@ 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, s) {
|
|
187
187
|
(function(e, l) {
|
|
188
188
|
r.exports = l();
|
|
189
189
|
})(jl, function() {
|
|
190
|
-
var e = 1e3, l = 6e4, n = 36e5,
|
|
190
|
+
var e = 1e3, l = 6e4, n = 36e5, d = "millisecond", t = "second", c = "minute", T = "hour", v = "day", m = "week", f = "month", o = "quarter", p = "year", L = "date", H = "Invalid Date", I = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, 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
|
-
} },
|
|
194
|
-
var
|
|
195
|
-
return !
|
|
196
|
-
},
|
|
197
|
-
var $ = -w.utcOffset(), b = Math.abs($),
|
|
198
|
-
return ($ <= 0 ? "+" : "-") +
|
|
193
|
+
} }, J = function(w, $, b) {
|
|
194
|
+
var y = String(w);
|
|
195
|
+
return !y || y.length >= $ ? w : "" + Array($ + 1 - y.length).join(b) + w;
|
|
196
|
+
}, ee = { s: J, z: function(w) {
|
|
197
|
+
var $ = -w.utcOffset(), b = Math.abs($), y = Math.floor(b / 60), S = b % 60;
|
|
198
|
+
return ($ <= 0 ? "+" : "-") + J(y, 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 y = 12 * (b.year() - $.year()) + (b.month() - $.month()), S = $.clone().add(y, f), D = b - S < 0, O = $.clone().add(y + (D ? -1 : 1), f);
|
|
202
|
+
return +(-(y + (b - S) / (D ? S - O : O - 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:
|
|
206
|
+
return { M: f, y: p, w: m, d: v, D: L, 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
|
-
ue[ne] =
|
|
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,
|
|
214
|
-
var
|
|
213
|
+
}, De = function w($, b, y) {
|
|
214
|
+
var S;
|
|
215
215
|
if (!$) return ne;
|
|
216
216
|
if (typeof $ == "string") {
|
|
217
217
|
var D = $.toLowerCase();
|
|
218
|
-
ue[D] && (
|
|
218
|
+
ue[D] && (S = D), b && (ue[D] = b, S = D);
|
|
219
219
|
var O = $.split("-");
|
|
220
|
-
if (!
|
|
220
|
+
if (!S && O.length > 1) return w(O[0]);
|
|
221
221
|
} else {
|
|
222
222
|
var Y = $.name;
|
|
223
|
-
ue[Y] = $,
|
|
223
|
+
ue[Y] = $, S = Y;
|
|
224
224
|
}
|
|
225
|
-
return !
|
|
225
|
+
return !y && S && (ne = S), S || !y && ne;
|
|
226
226
|
}, me = function(w, $) {
|
|
227
227
|
if (Se(w)) return w.clone();
|
|
228
228
|
var b = typeof $ == "object" ? $ : {};
|
|
229
229
|
return b.date = w, b.args = arguments, new Te(b);
|
|
230
|
-
}, P =
|
|
230
|
+
}, P = ee;
|
|
231
231
|
P.l = De, P.i = Se, P.w = function(w, $) {
|
|
232
232
|
return me(w, { locale: $.$L, utc: $.$u, x: $.$x, $offset: $.$offset });
|
|
233
233
|
};
|
|
@@ -237,19 +237,19 @@ var ul = { exports: {} };
|
|
|
237
237
|
}
|
|
238
238
|
var $ = w.prototype;
|
|
239
239
|
return $.parse = function(b) {
|
|
240
|
-
this.$d = function(
|
|
241
|
-
var
|
|
242
|
-
if (
|
|
243
|
-
if (P.u(
|
|
244
|
-
if (
|
|
245
|
-
if (typeof
|
|
246
|
-
var O =
|
|
240
|
+
this.$d = function(y) {
|
|
241
|
+
var S = y.date, D = y.utc;
|
|
242
|
+
if (S === null) return /* @__PURE__ */ new Date(NaN);
|
|
243
|
+
if (P.u(S)) return /* @__PURE__ */ new Date();
|
|
244
|
+
if (S instanceof Date) return new Date(S);
|
|
245
|
+
if (typeof S == "string" && !/Z$/i.test(S)) {
|
|
246
|
+
var O = S.match(I);
|
|
247
247
|
if (O) {
|
|
248
248
|
var Y = O[2] - 1 || 0, le = (O[7] || "0").substring(0, 3);
|
|
249
249
|
return D ? new Date(Date.UTC(O[1], Y, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, le)) : new Date(O[1], Y, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, le);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
return new Date(
|
|
252
|
+
return new Date(S);
|
|
253
253
|
}(b), this.init();
|
|
254
254
|
}, $.init = function() {
|
|
255
255
|
var b = this.$d;
|
|
@@ -257,113 +257,113 @@ var ul = { exports: {} };
|
|
|
257
257
|
}, $.$utils = function() {
|
|
258
258
|
return P;
|
|
259
259
|
}, $.isValid = function() {
|
|
260
|
-
return this.$d.toString() !==
|
|
261
|
-
}, $.isSame = function(b,
|
|
262
|
-
var
|
|
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[
|
|
260
|
+
return this.$d.toString() !== H;
|
|
261
|
+
}, $.isSame = function(b, y) {
|
|
262
|
+
var S = me(b);
|
|
263
|
+
return this.startOf(y) <= S && S <= this.endOf(y);
|
|
264
|
+
}, $.isAfter = function(b, y) {
|
|
265
|
+
return me(b) < this.startOf(y);
|
|
266
|
+
}, $.isBefore = function(b, y) {
|
|
267
|
+
return this.endOf(y) < me(b);
|
|
268
|
+
}, $.$g = function(b, y, S) {
|
|
269
|
+
return P.u(b) ? this[y] : 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
|
|
276
|
-
var
|
|
277
|
-
return D ?
|
|
274
|
+
}, $.startOf = function(b, y) {
|
|
275
|
+
var S = this, D = !!P.u(y) || y, O = P.p(b), Y = function(Ie, V) {
|
|
276
|
+
var M = P.w(S.$u ? Date.UTC(S.$y, V, Ie) : new Date(S.$y, V, Ie), S);
|
|
277
|
+
return D ? M : M.endOf(v);
|
|
278
278
|
}, le = function(Ie, V) {
|
|
279
|
-
return P.w(
|
|
280
|
-
}, de = this.$W, ye = this.$M, W = this.$D,
|
|
279
|
+
return P.w(S.toDate()[Ie].apply(S.toDate("s"), (D ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(V)), S);
|
|
280
|
+
}, de = this.$W, ye = this.$M, W = this.$D, G = "set" + (this.$u ? "UTC" : "");
|
|
281
281
|
switch (O) {
|
|
282
282
|
case p:
|
|
283
283
|
return D ? Y(1, 0) : Y(31, 11);
|
|
284
|
-
case
|
|
284
|
+
case f:
|
|
285
285
|
return D ? Y(1, ye) : Y(0, ye + 1);
|
|
286
|
-
case
|
|
286
|
+
case m:
|
|
287
287
|
var Ve = this.$locale().weekStart || 0, ke = (de < Ve ? de + 7 : de) - Ve;
|
|
288
288
|
return Y(D ? W - ke : W + (6 - ke), ye);
|
|
289
289
|
case v:
|
|
290
290
|
case L:
|
|
291
|
-
return le(
|
|
292
|
-
case
|
|
293
|
-
return le(
|
|
294
|
-
case
|
|
295
|
-
return le(
|
|
291
|
+
return le(G + "Hours", 0);
|
|
292
|
+
case T:
|
|
293
|
+
return le(G + "Minutes", 1);
|
|
294
|
+
case c:
|
|
295
|
+
return le(G + "Seconds", 2);
|
|
296
296
|
case t:
|
|
297
|
-
return le(
|
|
297
|
+
return le(G + "Milliseconds", 3);
|
|
298
298
|
default:
|
|
299
299
|
return this.clone();
|
|
300
300
|
}
|
|
301
301
|
}, $.endOf = function(b) {
|
|
302
302
|
return this.startOf(b, !1);
|
|
303
|
-
}, $.$set = function(b,
|
|
304
|
-
var
|
|
305
|
-
if (D ===
|
|
303
|
+
}, $.$set = function(b, y) {
|
|
304
|
+
var S, D = P.p(b), O = "set" + (this.$u ? "UTC" : ""), Y = (S = {}, S[v] = O + "Date", S[L] = O + "Date", S[f] = O + "Month", S[p] = O + "FullYear", S[T] = O + "Hours", S[c] = O + "Minutes", S[t] = O + "Seconds", S[d] = O + "Milliseconds", S)[D], le = D === v ? this.$D + (y - this.$W) : y;
|
|
305
|
+
if (D === f || D === p) {
|
|
306
306
|
var de = this.clone().set(L, 1);
|
|
307
307
|
de.$d[Y](le), de.init(), this.$d = de.set(L, Math.min(this.$D, de.daysInMonth())).$d;
|
|
308
308
|
} else Y && this.$d[Y](le);
|
|
309
309
|
return this.init(), this;
|
|
310
|
-
}, $.set = function(b,
|
|
311
|
-
return this.clone().$set(b,
|
|
310
|
+
}, $.set = function(b, y) {
|
|
311
|
+
return this.clone().$set(b, y);
|
|
312
312
|
}, $.get = function(b) {
|
|
313
313
|
return this[P.p(b)]();
|
|
314
|
-
}, $.add = function(b,
|
|
315
|
-
var
|
|
314
|
+
}, $.add = function(b, y) {
|
|
315
|
+
var S, D = this;
|
|
316
316
|
b = Number(b);
|
|
317
|
-
var O = P.p(
|
|
317
|
+
var O = P.p(y), Y = function(ye) {
|
|
318
318
|
var W = me(D);
|
|
319
319
|
return P.w(W.date(W.date() + Math.round(ye * b)), D);
|
|
320
320
|
};
|
|
321
|
-
if (O ===
|
|
321
|
+
if (O === f) return this.set(f, this.$M + b);
|
|
322
322
|
if (O === p) return this.set(p, this.$y + b);
|
|
323
323
|
if (O === v) return Y(1);
|
|
324
|
-
if (O ===
|
|
325
|
-
var le = (
|
|
324
|
+
if (O === m) return Y(7);
|
|
325
|
+
var le = (S = {}, S[c] = l, S[T] = n, S[t] = e, S)[O] || 1, de = this.$d.getTime() + b * le;
|
|
326
326
|
return P.w(de, this);
|
|
327
|
-
}, $.subtract = function(b,
|
|
328
|
-
return this.add(-1 * b,
|
|
327
|
+
}, $.subtract = function(b, y) {
|
|
328
|
+
return this.add(-1 * b, y);
|
|
329
329
|
}, $.format = function(b) {
|
|
330
|
-
var
|
|
331
|
-
if (!this.isValid()) return
|
|
332
|
-
var D = b || "YYYY-MM-DDTHH:mm:ssZ", O = P.z(this), Y = this.$H, le = this.$m, de = this.$M, ye =
|
|
333
|
-
return V && (V[
|
|
330
|
+
var y = this, S = this.$locale();
|
|
331
|
+
if (!this.isValid()) return S.invalidDate || H;
|
|
332
|
+
var D = b || "YYYY-MM-DDTHH:mm:ssZ", O = 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, j, Ce) {
|
|
333
|
+
return V && (V[M] || V(y, D)) || j[M].slice(0, Ce);
|
|
334
334
|
}, ke = function(V) {
|
|
335
335
|
return P.s(Y % 12 || 12, V, "0");
|
|
336
|
-
}, Ie =
|
|
336
|
+
}, Ie = G || function(V, M, j) {
|
|
337
337
|
var Ce = V < 12 ? "AM" : "PM";
|
|
338
|
-
return
|
|
338
|
+
return j ? Ce.toLowerCase() : Ce;
|
|
339
339
|
};
|
|
340
|
-
return D.replace(k, function(V,
|
|
341
|
-
return
|
|
342
|
-
switch (
|
|
340
|
+
return D.replace(k, function(V, M) {
|
|
341
|
+
return M || function(j) {
|
|
342
|
+
switch (j) {
|
|
343
343
|
case "YY":
|
|
344
|
-
return String(
|
|
344
|
+
return String(y.$y).slice(-2);
|
|
345
345
|
case "YYYY":
|
|
346
|
-
return P.s(
|
|
346
|
+
return P.s(y.$y, 4, "0");
|
|
347
347
|
case "M":
|
|
348
348
|
return de + 1;
|
|
349
349
|
case "MM":
|
|
350
350
|
return P.s(de + 1, 2, "0");
|
|
351
351
|
case "MMM":
|
|
352
|
-
return Ve(
|
|
352
|
+
return Ve(S.monthsShort, de, W, 3);
|
|
353
353
|
case "MMMM":
|
|
354
354
|
return Ve(W, de);
|
|
355
355
|
case "D":
|
|
356
|
-
return
|
|
356
|
+
return y.$D;
|
|
357
357
|
case "DD":
|
|
358
|
-
return P.s(
|
|
358
|
+
return P.s(y.$D, 2, "0");
|
|
359
359
|
case "d":
|
|
360
|
-
return String(
|
|
360
|
+
return String(y.$W);
|
|
361
361
|
case "dd":
|
|
362
|
-
return Ve(
|
|
362
|
+
return Ve(S.weekdaysMin, y.$W, ye, 2);
|
|
363
363
|
case "ddd":
|
|
364
|
-
return Ve(
|
|
364
|
+
return Ve(S.weekdaysShort, y.$W, ye, 3);
|
|
365
365
|
case "dddd":
|
|
366
|
-
return ye[
|
|
366
|
+
return ye[y.$W];
|
|
367
367
|
case "H":
|
|
368
368
|
return String(Y);
|
|
369
369
|
case "HH":
|
|
@@ -381,11 +381,11 @@ var ul = { exports: {} };
|
|
|
381
381
|
case "mm":
|
|
382
382
|
return P.s(le, 2, "0");
|
|
383
383
|
case "s":
|
|
384
|
-
return String(
|
|
384
|
+
return String(y.$s);
|
|
385
385
|
case "ss":
|
|
386
|
-
return P.s(
|
|
386
|
+
return P.s(y.$s, 2, "0");
|
|
387
387
|
case "SSS":
|
|
388
|
-
return P.s(
|
|
388
|
+
return P.s(y.$ms, 3, "0");
|
|
389
389
|
case "Z":
|
|
390
390
|
return O;
|
|
391
391
|
}
|
|
@@ -394,30 +394,30 @@ var ul = { exports: {} };
|
|
|
394
394
|
});
|
|
395
395
|
}, $.utcOffset = function() {
|
|
396
396
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
397
|
-
}, $.diff = function(b,
|
|
398
|
-
var D, O = this, Y = P.p(
|
|
397
|
+
}, $.diff = function(b, y, S) {
|
|
398
|
+
var D, O = this, Y = P.p(y), le = me(b), de = (le.utcOffset() - this.utcOffset()) * l, ye = this - le, W = function() {
|
|
399
399
|
return P.m(O, le);
|
|
400
400
|
};
|
|
401
401
|
switch (Y) {
|
|
402
402
|
case p:
|
|
403
403
|
D = W() / 12;
|
|
404
404
|
break;
|
|
405
|
-
case
|
|
405
|
+
case f:
|
|
406
406
|
D = W();
|
|
407
407
|
break;
|
|
408
|
-
case
|
|
408
|
+
case o:
|
|
409
409
|
D = W() / 3;
|
|
410
410
|
break;
|
|
411
|
-
case
|
|
411
|
+
case m:
|
|
412
412
|
D = (ye - de) / 6048e5;
|
|
413
413
|
break;
|
|
414
414
|
case v:
|
|
415
415
|
D = (ye - de) / 864e5;
|
|
416
416
|
break;
|
|
417
|
-
case
|
|
417
|
+
case T:
|
|
418
418
|
D = ye / n;
|
|
419
419
|
break;
|
|
420
|
-
case
|
|
420
|
+
case c:
|
|
421
421
|
D = ye / l;
|
|
422
422
|
break;
|
|
423
423
|
case t:
|
|
@@ -426,15 +426,15 @@ var ul = { exports: {} };
|
|
|
426
426
|
default:
|
|
427
427
|
D = ye;
|
|
428
428
|
}
|
|
429
|
-
return
|
|
429
|
+
return S ? D : P.a(D);
|
|
430
430
|
}, $.daysInMonth = function() {
|
|
431
|
-
return this.endOf(
|
|
431
|
+
return this.endOf(f).$D;
|
|
432
432
|
}, $.$locale = function() {
|
|
433
433
|
return ue[this.$L];
|
|
434
|
-
}, $.locale = function(b,
|
|
434
|
+
}, $.locale = function(b, y) {
|
|
435
435
|
if (!b) return this.$L;
|
|
436
|
-
var
|
|
437
|
-
return D && (
|
|
436
|
+
var S = this.clone(), D = De(b, y, !0);
|
|
437
|
+
return D && (S.$L = D), 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",
|
|
450
|
+
return me.prototype = We, [["$ms", d], ["$s", t], ["$m", c], ["$H", T], ["$W", v], ["$M", f], ["$y", p], ["$D", L]].forEach(function(w) {
|
|
451
451
|
We[w[1]] = function($) {
|
|
452
452
|
return this.$g($, w[0], w[1]);
|
|
453
453
|
};
|
|
@@ -459,9 +459,9 @@ var ul = { exports: {} };
|
|
|
459
459
|
});
|
|
460
460
|
})(ul);
|
|
461
461
|
var Fl = ul.exports;
|
|
462
|
-
const Et = /* @__PURE__ */ ol(Fl), et = (r,
|
|
462
|
+
const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
463
463
|
const e = r.__vccOpts || r;
|
|
464
|
-
for (const [l, n] of
|
|
464
|
+
for (const [l, n] of s)
|
|
465
465
|
e[l] = n;
|
|
466
466
|
return e;
|
|
467
467
|
}, Rl = {
|
|
@@ -475,24 +475,24 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:modelValue"],
|
|
477
477
|
setup(r) {
|
|
478
|
-
var $, b,
|
|
479
|
-
const
|
|
480
|
-
!((D =
|
|
481
|
-
const p = ae({ display: "flex", flex: 1 }), L =
|
|
482
|
-
p.value = { ...p.value, justifyContent: L, ...
|
|
478
|
+
var $, b, y, S, D, O, Y, le, de, ye, W, G, Ve, ke, Ie;
|
|
479
|
+
const s = r, e = ae(s.item || {}), l = lt(r, "modelValue"), n = ae(s.ctrlKey), d = ae(s.ctrlType), t = ae(s.model), c = ae([]), T = ae([]), v = ae(!1), m = ae(!1), f = ae(0), o = ae((b = ($ = t == null ? void 0 : t.value) == null ? void 0 : $.form) != null && b["default-placeholder"] ? (S = (y = t == null ? void 0 : t.value) == null ? void 0 : y[n == null ? void 0 : n.value]) == null ? void 0 : S.label : "");
|
|
480
|
+
!((D = d.value) != null && D.startsWith("text")) && !((O = d.value) != null && O.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 p = ae({ display: "flex", flex: 1 }), L = s.t === "t" ? "center" : "flex-start", H = ((ke = e.value) == null ? void 0 : ke.style) || {};
|
|
482
|
+
p.value = { ...p.value, justifyContent: L, ...H };
|
|
483
483
|
const I = () => {
|
|
484
|
-
const V = Xt(),
|
|
485
|
-
return
|
|
484
|
+
const V = Xt(), M = Object.keys(V), j = `${s.t}-${n.value}-`;
|
|
485
|
+
return M.filter((Ue) => Ue.startsWith(j)).map((Ue) => Ue.replace(j, ""));
|
|
486
486
|
}, k = ae({
|
|
487
487
|
multiple: !1,
|
|
488
488
|
"show-file-list": !1,
|
|
489
489
|
"file-list": [],
|
|
490
|
-
showDel:
|
|
490
|
+
showDel: s.t === "f"
|
|
491
491
|
});
|
|
492
492
|
Object.hasOwn(e.value, "showDel") && (k.value.showDel = e.value.showDel);
|
|
493
|
-
const
|
|
494
|
-
(Ie = e == null ? void 0 : e.value) != null && Ie.format && (
|
|
495
|
-
const
|
|
493
|
+
const X = ae(e.value.value);
|
|
494
|
+
(Ie = e == null ? void 0 : e.value) != null && Ie.format && (X.value = hl(l.value).format(e.value.format || "YYYY-MM-DD"));
|
|
495
|
+
const J = (V) => [
|
|
496
496
|
"year",
|
|
497
497
|
"years",
|
|
498
498
|
"month",
|
|
@@ -505,7 +505,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
505
505
|
"daterange",
|
|
506
506
|
"monthrange",
|
|
507
507
|
"yearrange"
|
|
508
|
-
].includes(V),
|
|
508
|
+
].includes(V), ee = (V) => ({
|
|
509
509
|
year: "YYYY",
|
|
510
510
|
years: "YYYY",
|
|
511
511
|
month: "YYYY-MM",
|
|
@@ -524,90 +524,90 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
524
524
|
remote: !!(e.value && e.value["remote-method"]),
|
|
525
525
|
...e.value
|
|
526
526
|
}), ue = ae((V) => {
|
|
527
|
-
e.value["remote-method"](V, (
|
|
527
|
+
e.value["remote-method"](V, (M) => {
|
|
528
528
|
Ke(() => {
|
|
529
|
-
|
|
529
|
+
T.value = M;
|
|
530
530
|
});
|
|
531
531
|
});
|
|
532
532
|
}), pe = async (V = "options") => {
|
|
533
|
-
var
|
|
533
|
+
var M;
|
|
534
534
|
try {
|
|
535
|
-
const
|
|
536
|
-
if (typeof
|
|
537
|
-
|
|
535
|
+
const j = await ((M = e.value) == null ? void 0 : M.getDicts(s.formInfo));
|
|
536
|
+
if (typeof j == "string")
|
|
537
|
+
T.value = [{ label: j, value: l.value }];
|
|
538
538
|
else {
|
|
539
|
-
const Ce =
|
|
539
|
+
const Ce = j == null ? void 0 : j.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 (j) {
|
|
547
|
+
throw console.error("获取选项失败:", j), j;
|
|
548
548
|
}
|
|
549
549
|
}, Se = () => {
|
|
550
|
-
var V,
|
|
551
|
-
e.value.noSearch !== !0 &&
|
|
550
|
+
var V, M;
|
|
551
|
+
e.value.noSearch !== !0 && s.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
|
-
var
|
|
555
|
+
var M;
|
|
556
556
|
if (e.value["file-list"] && e.value["file-list"].length > 0) {
|
|
557
|
-
const
|
|
557
|
+
const j = 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
|
-
|
|
560
|
+
f.value = j >= 0 ? j : 0;
|
|
561
561
|
} else {
|
|
562
|
-
const
|
|
563
|
-
|
|
562
|
+
const j = V.url || ((M = V.raw) == null ? void 0 : M.url), Ce = w.value.indexOf(j);
|
|
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
|
|
568
|
+
const M = l.value, j = e.value["file-list"].findIndex(
|
|
569
569
|
(Ce) => {
|
|
570
570
|
var ze;
|
|
571
|
-
return Ce.url ===
|
|
571
|
+
return Ce.url === M || ((ze = Ce.raw) == null ? void 0 : ze.url) === M;
|
|
572
572
|
}
|
|
573
573
|
);
|
|
574
|
-
|
|
574
|
+
f.value = j >= 0 ? j : 0;
|
|
575
575
|
} else
|
|
576
|
-
|
|
576
|
+
f.value = 0;
|
|
577
577
|
v.value = !0;
|
|
578
|
-
}, Te = ae(null), We = (V,
|
|
578
|
+
}, Te = ae(null), We = (V, M = 2) => {
|
|
579
579
|
if (V === "") {
|
|
580
580
|
l.value = "";
|
|
581
581
|
return;
|
|
582
582
|
}
|
|
583
|
-
let
|
|
584
|
-
if (
|
|
585
|
-
const Ue =
|
|
586
|
-
|
|
583
|
+
let j = V.replace(/[^-\d.]/g, "");
|
|
584
|
+
if (j.includes("-") && (j.startsWith("-") ? j = "-" + j.substring(1).replace(/-/g, "") : j = j.replace(/-/g, "")), (j.match(/\./g) || []).length > 1) {
|
|
585
|
+
const Ue = j.indexOf(".");
|
|
586
|
+
j = j.substring(0, Ue + 1) + j.substring(Ue + 1).replace(/\./g, "");
|
|
587
587
|
}
|
|
588
|
-
if (
|
|
589
|
-
const [Ue, tt] =
|
|
590
|
-
tt.length >
|
|
588
|
+
if (j = j.replace(/^-\./, "-0."), j = j.replace(/^\./, "0."), j = j.replace(/^-0+(\d)/, "-$1"), j = j.replace(/^0+(\d)/, "$1"), (j === "-" || j === "" || j === ".") && (j = "0"), M >= 0 && j.includes(".")) {
|
|
589
|
+
const [Ue, tt] = j.split(".");
|
|
590
|
+
tt.length > M && (j = Ue + "." + tt.substring(0, M));
|
|
591
591
|
}
|
|
592
|
-
l.value =
|
|
592
|
+
l.value = j;
|
|
593
593
|
};
|
|
594
594
|
yt(async () => {
|
|
595
|
-
var
|
|
596
|
-
e.value && e.value["remote-method"] && (ne.value["remote-method"] = ue), (Ce = (
|
|
595
|
+
var j, Ce, ze, Ue, tt;
|
|
596
|
+
e.value && e.value["remote-method"] && (ne.value["remote-method"] = ue), (Ce = (j = t.value[n.value]) == null ? void 0 : j.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);
|
|
600
600
|
});
|
|
601
601
|
};
|
|
602
|
-
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(
|
|
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" ?
|
|
604
|
+
typeof e.value.getDicts == "function" ? c.value = await e.value.getDicts(s.formInfo) : c.value = T.value;
|
|
605
605
|
} catch (Qe) {
|
|
606
606
|
console.error("Failed to load data for tree-select:", Qe);
|
|
607
607
|
}
|
|
608
|
-
})(),
|
|
609
|
-
let Le = e.value.type ||
|
|
610
|
-
(Le === void 0 ||
|
|
608
|
+
})(), s.t == "q") {
|
|
609
|
+
let Le = e.value.type || d.value;
|
|
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;
|
|
612
612
|
(Qe.keyCode === 13 || Qe.key === "Enter") && ((Xe = (Ge = t.value) == null ? void 0 : Ge.table) == null || Xe.load());
|
|
613
613
|
}), [
|
|
@@ -631,84 +631,84 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
631
631
|
(Xe = (Ge = t.value) == null ? void 0 : Ge.table) == null || Xe.load();
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
|
-
|
|
634
|
+
d.value == "image" && (e.value.width && ((ze = Te.value) != null && ze.$el) && Te.value.$el.style.setProperty("--up-width", typeof e.value.width == "number" ? e.value.width + "px" : e.value.width), e.value.height && ((Ue = Te.value) != null && Ue.$el) && Te.value.$el.style.setProperty("--up-height", typeof e.value.height == "number" ? e.value.height + "px" : e.value.height), e.value.fontSize && ((tt = Te.value) != null && tt.$el) && Te.value.$el.style.setProperty("--up-font-size", typeof e.value.fontSize == "number" ? e.value.fontSize + "px" : e.value.fontSize));
|
|
635
635
|
});
|
|
636
|
-
const w =
|
|
636
|
+
const w = Fe(() => {
|
|
637
637
|
var V;
|
|
638
|
-
return e.value["file-list"] && e.value["file-list"].length ? (V = e.value["file-list"]) == null ? void 0 : V.map((
|
|
638
|
+
return e.value["file-list"] && e.value["file-list"].length ? (V = e.value["file-list"]) == null ? void 0 : V.map((M) => M == null ? void 0 : M.url) : [l.value];
|
|
639
639
|
});
|
|
640
|
-
return (V,
|
|
641
|
-
var te, Re, Je, rt,
|
|
642
|
-
const
|
|
643
|
-
return
|
|
644
|
-
|
|
645
|
-
v.value ? (
|
|
640
|
+
return (V, M) => {
|
|
641
|
+
var te, Re, Je, rt, K, ie, ve, it, dt, nt, ot, pt;
|
|
642
|
+
const j = 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"), u = 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"), je = 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 h(), z(re, null, [
|
|
644
|
+
Z("div", null, [
|
|
645
|
+
v.value ? (h(), E(j, {
|
|
646
646
|
key: 0,
|
|
647
647
|
teleported: !0,
|
|
648
|
-
"initial-index":
|
|
648
|
+
"initial-index": f.value,
|
|
649
649
|
"url-list": w.value,
|
|
650
|
-
onClose:
|
|
650
|
+
onClose: M[0] || (M[0] = (i) => v.value = !1)
|
|
651
651
|
}, null, 8, ["initial-index", "url-list"])) : be("", !0)
|
|
652
652
|
]),
|
|
653
|
-
|
|
654
|
-
|
|
653
|
+
Z("div", Rl, [
|
|
654
|
+
d.value == U(xe).RADIO ? (h(), E(ze, A({
|
|
655
655
|
key: 0,
|
|
656
656
|
modelValue: l.value,
|
|
657
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
662
|
-
(
|
|
661
|
+
x(V.$slots, `${s.t}-${n.value}`, { data: e.value }, () => [
|
|
662
|
+
(h(!0), z(re, null, N(T.value, (i) => (h(), E(Ce, A({ ref_for: !0 }, i), {
|
|
663
663
|
default: _(() => [
|
|
664
|
-
|
|
664
|
+
x(V.$slots, `${s.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"])) :
|
|
671
|
+
}, 16, ["modelValue", "disabled"])) : d.value == U(xe).RADIOBUTTON ? (h(), E(ze, A({
|
|
672
672
|
key: 1,
|
|
673
673
|
modelValue: l.value,
|
|
674
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
679
|
-
(
|
|
678
|
+
x(V.$slots, `${s.t}-${n.value}`, { data: e.value }, () => [
|
|
679
|
+
(h(!0), z(re, null, N(T.value, (i) => (h(), E(Ue, A({ ref_for: !0 }, i), {
|
|
680
680
|
default: _(() => [
|
|
681
|
-
|
|
681
|
+
x(V.$slots, `${s.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"])) :
|
|
688
|
+
}, 16, ["modelValue", "disabled"])) : d.value == U(xe).CHECKBOX ? (h(), E(tt, A({
|
|
689
689
|
key: 2,
|
|
690
690
|
modelValue: l.value,
|
|
691
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
696
|
-
|
|
695
|
+
x(V.$slots, `${s.t}-${n.value}`, { data: e.value }, () => [
|
|
696
|
+
M[30] || (M[30] = Ae(Me(" "), -1))
|
|
697
697
|
], !0)
|
|
698
698
|
]),
|
|
699
699
|
_: 3
|
|
700
|
-
}, 16, ["modelValue", "disabled"])) :
|
|
700
|
+
}, 16, ["modelValue", "disabled"])) : d.value == U(xe).CHECKBOXGROUP ? (h(), E(Le, A({
|
|
701
701
|
key: 3,
|
|
702
702
|
modelValue: l.value,
|
|
703
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
708
|
-
(
|
|
707
|
+
x(V.$slots, `${s.t}-${n.value}`, { data: e.value }, () => [
|
|
708
|
+
(h(!0), z(re, null, N(T.value, (i) => (h(), E(tt, A({ ref_for: !0 }, i), {
|
|
709
709
|
default: _(() => [
|
|
710
|
-
|
|
711
|
-
Ae(Me(
|
|
710
|
+
x(V.$slots, `${s.t}-${n.value}-options`, { option: i }, () => [
|
|
711
|
+
Ae(Me(i.label), 1)
|
|
712
712
|
], !0)
|
|
713
713
|
]),
|
|
714
714
|
_: 2
|
|
@@ -716,42 +716,42 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
716
716
|
], !0)
|
|
717
717
|
]),
|
|
718
718
|
_: 3
|
|
719
|
-
}, 16, ["modelValue", "disabled"])) :
|
|
719
|
+
}, 16, ["modelValue", "disabled"])) : d.value == U(xe).CHECKBOXGROUPBUTTON ? (h(), E(Le, A({
|
|
720
720
|
key: 4,
|
|
721
721
|
modelValue: l.value,
|
|
722
|
-
"onUpdate:modelValue":
|
|
722
|
+
"onUpdate:modelValue": M[5] || (M[5] = (i) => l.value = i),
|
|
723
723
|
disabled: t.value[n.value].disabled
|
|
724
|
-
}, U(Ne)(e.value, (
|
|
724
|
+
}, U(Ne)(e.value, (i) => i != "type")), {
|
|
725
725
|
default: _(() => [
|
|
726
|
-
|
|
727
|
-
(
|
|
726
|
+
x(V.$slots, `${s.t}-${n.value}`, { data: e.value }, () => [
|
|
727
|
+
(h(!0), z(re, null, N(T.value, (i) => (h(), E(Qe, A({ ref_for: !0 }, i), {
|
|
728
728
|
default: _(() => [
|
|
729
|
-
|
|
729
|
+
x(V.$slots, `${s.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"])) :
|
|
736
|
+
}, 16, ["modelValue", "disabled"])) : d.value === U(xe).SELECT ? (h(), E(gt, A({
|
|
737
737
|
key: 5,
|
|
738
738
|
modelValue: l.value,
|
|
739
|
-
"onUpdate:modelValue":
|
|
740
|
-
placeholder:
|
|
739
|
+
"onUpdate:modelValue": M[6] || (M[6] = (i) => l.value = i),
|
|
740
|
+
placeholder: o.value,
|
|
741
741
|
clearable: !0,
|
|
742
|
-
onClear:
|
|
743
|
-
|
|
742
|
+
onClear: M[7] || (M[7] = () => {
|
|
743
|
+
s.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
|
-
var
|
|
748
|
+
var i;
|
|
749
749
|
return [
|
|
750
|
-
((
|
|
750
|
+
((i = T.value) == null ? void 0 : i.length) > 0 ? x(V.$slots, `${s.t}-${n.value}`, {
|
|
751
751
|
key: 0,
|
|
752
|
-
options:
|
|
752
|
+
options: T.value
|
|
753
753
|
}, () => [
|
|
754
|
-
(
|
|
754
|
+
(h(!0), z(re, null, N(T.value, (oe) => (h(), z(re, {
|
|
755
755
|
key: oe.value
|
|
756
756
|
}, [
|
|
757
757
|
se(Xe, A({ ref_for: !0 }, U(Ne)(oe, (ce) => ce != "children"), {
|
|
@@ -762,7 +762,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
762
762
|
default: _(() => {
|
|
763
763
|
var ce;
|
|
764
764
|
return [
|
|
765
|
-
(ce = e.value) != null && ce.columns ?
|
|
765
|
+
(ce = e.value) != null && ce.columns ? x(V.$slots, `${s.t}-${n.value}-options`, {
|
|
766
766
|
key: 0,
|
|
767
767
|
option: oe
|
|
768
768
|
}, () => {
|
|
@@ -771,12 +771,12 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
771
771
|
se(Ge, {
|
|
772
772
|
columns: (Be = e.value) == null ? void 0 : Be.columns,
|
|
773
773
|
data: oe,
|
|
774
|
-
t:
|
|
774
|
+
t: s.t
|
|
775
775
|
}, ge({ _: 2 }, [
|
|
776
776
|
N(V.$slots, (ft, qt) => ({
|
|
777
777
|
name: qt,
|
|
778
778
|
fn: _((xt) => [
|
|
779
|
-
|
|
779
|
+
x(V.$slots, qt, {
|
|
780
780
|
option: oe,
|
|
781
781
|
data: xt,
|
|
782
782
|
form: r.formInfo
|
|
@@ -790,7 +790,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
790
790
|
}),
|
|
791
791
|
_: 2
|
|
792
792
|
}, 1040, ["onClick"]),
|
|
793
|
-
oe.children && oe.children.length ? (
|
|
793
|
+
oe.children && oe.children.length ? (h(!0), z(re, { key: 0 }, N(oe.children, (ce) => (h(), E(Xe, A({
|
|
794
794
|
style: { "margin-left": "20px" },
|
|
795
795
|
key: ce.value
|
|
796
796
|
}, { ref_for: !0 }, U(Ne)(ce, (Be) => Be != "children"), {
|
|
@@ -801,7 +801,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
801
801
|
default: _(() => {
|
|
802
802
|
var Be;
|
|
803
803
|
return [
|
|
804
|
-
(Be = e.value) != null && Be.columns ?
|
|
804
|
+
(Be = e.value) != null && Be.columns ? x(V.$slots, `${s.t}-${n.value}-options`, {
|
|
805
805
|
key: 0,
|
|
806
806
|
option: ce
|
|
807
807
|
}, () => {
|
|
@@ -810,12 +810,12 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
810
810
|
se(Ge, {
|
|
811
811
|
columns: (ft = e.value) == null ? void 0 : ft.columns,
|
|
812
812
|
data: ce,
|
|
813
|
-
t:
|
|
813
|
+
t: s.t
|
|
814
814
|
}, ge({ _: 2 }, [
|
|
815
815
|
N(V.$slots, (qt, xt) => ({
|
|
816
816
|
name: xt,
|
|
817
817
|
fn: _((ml) => [
|
|
818
|
-
|
|
818
|
+
x(V.$slots, xt, {
|
|
819
819
|
option: ce,
|
|
820
820
|
data: ml,
|
|
821
821
|
form: r.formInfo
|
|
@@ -838,17 +838,17 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
838
838
|
(te = e.value) != null && te.columns ? {
|
|
839
839
|
name: "header",
|
|
840
840
|
fn: _(() => {
|
|
841
|
-
var
|
|
841
|
+
var i;
|
|
842
842
|
return [
|
|
843
843
|
se(Ge, {
|
|
844
|
-
columns: (
|
|
844
|
+
columns: (i = e.value) == null ? void 0 : i.columns,
|
|
845
845
|
title: !0,
|
|
846
|
-
t:
|
|
846
|
+
t: s.t
|
|
847
847
|
}, ge({ _: 2 }, [
|
|
848
848
|
N(V.$slots, (oe, ce) => ({
|
|
849
849
|
name: ce,
|
|
850
850
|
fn: _((Be) => [
|
|
851
|
-
|
|
851
|
+
x(V.$slots, ce, { data: Be }, void 0, !0)
|
|
852
852
|
])
|
|
853
853
|
}))
|
|
854
854
|
]), 1032, ["columns", "t"])
|
|
@@ -856,111 +856,111 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
856
856
|
}),
|
|
857
857
|
key: "0"
|
|
858
858
|
} : void 0,
|
|
859
|
-
N(I(), (
|
|
860
|
-
name:
|
|
859
|
+
N(I(), (i) => ({
|
|
860
|
+
name: i,
|
|
861
861
|
fn: _((oe) => [
|
|
862
|
-
|
|
862
|
+
x(V.$slots, `${s.t}-${n.value}-${i}`, { form: r.formInfo }, void 0, !0)
|
|
863
863
|
])
|
|
864
864
|
}))
|
|
865
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) :
|
|
865
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : d.value == U(xe).TREESELECT ? (h(), E(bt, A({
|
|
866
866
|
key: 6,
|
|
867
867
|
modelValue: l.value,
|
|
868
|
-
"onUpdate:modelValue":
|
|
869
|
-
placeholder:
|
|
868
|
+
"onUpdate:modelValue": M[8] || (M[8] = (i) => l.value = i),
|
|
869
|
+
placeholder: o.value,
|
|
870
870
|
disabled: t.value[n.value].disabled
|
|
871
|
-
}, e.value, { data:
|
|
872
|
-
N(I(), (
|
|
873
|
-
name:
|
|
871
|
+
}, e.value, { data: c.value }), ge({ _: 2 }, [
|
|
872
|
+
N(I(), (i) => ({
|
|
873
|
+
name: i,
|
|
874
874
|
fn: _((oe) => [
|
|
875
|
-
|
|
875
|
+
x(V.$slots, `${s.t}-${n.value}-${i}`, { data: oe }, void 0, !0)
|
|
876
876
|
])
|
|
877
877
|
}))
|
|
878
|
-
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) :
|
|
878
|
+
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : d.value == U(xe).TIME ? (h(), E($t, A({
|
|
879
879
|
key: 7,
|
|
880
880
|
modelValue: l.value,
|
|
881
|
-
"onUpdate:modelValue":
|
|
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:
|
|
885
|
+
}, e.value, { placeholder: o.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : d.value == U(xe).TIMESELECT ? (h(), E(wt, A({
|
|
886
886
|
key: 8,
|
|
887
887
|
modelValue: l.value,
|
|
888
|
-
"onUpdate:modelValue":
|
|
888
|
+
"onUpdate:modelValue": M[10] || (M[10] = (i) => l.value = i),
|
|
889
889
|
start: "06:30",
|
|
890
890
|
format: "mm:ss",
|
|
891
891
|
step: "00:15",
|
|
892
892
|
end: "23:30",
|
|
893
|
-
placeholder:
|
|
893
|
+
placeholder: o.value,
|
|
894
894
|
disabled: t.value[n.value].disabled
|
|
895
|
-
}, e.value), null, 16, ["modelValue", "placeholder", "disabled"])) :
|
|
895
|
+
}, e.value), null, 16, ["modelValue", "placeholder", "disabled"])) : J(d.value) ? (h(), E(kt, A({
|
|
896
896
|
key: 9,
|
|
897
897
|
modelValue: l.value,
|
|
898
|
-
"onUpdate:modelValue":
|
|
899
|
-
type:
|
|
900
|
-
format:
|
|
901
|
-
placeholder:
|
|
902
|
-
"value-format":
|
|
898
|
+
"onUpdate:modelValue": M[11] || (M[11] = (i) => l.value = i),
|
|
899
|
+
type: d.value,
|
|
900
|
+
format: d.value === U(xe).DATE ? "YYYY-MM-DD" : d.value === U(xe).DATETIME ? "YYYY-MM-DD HH:mm:ss" : "",
|
|
901
|
+
placeholder: o.value,
|
|
902
|
+
"value-format": ee(d.value),
|
|
903
903
|
disabled: t.value[n.value].disabled
|
|
904
904
|
}, e.value), ge({ _: 2 }, [
|
|
905
|
-
N(I(), (
|
|
906
|
-
name:
|
|
905
|
+
N(I(), (i) => ({
|
|
906
|
+
name: i,
|
|
907
907
|
fn: _((oe) => [
|
|
908
|
-
|
|
908
|
+
x(V.$slots, `${s.t}-${n.value}-${i}`, { data: oe }, void 0, !0)
|
|
909
909
|
])
|
|
910
910
|
}))
|
|
911
|
-
]), 1040, ["modelValue", "type", "format", "placeholder", "value-format", "disabled"])) :
|
|
911
|
+
]), 1040, ["modelValue", "type", "format", "placeholder", "value-format", "disabled"])) : d.value == U(xe).COLOR ? (h(), E(a, A({
|
|
912
912
|
key: 10,
|
|
913
913
|
modelValue: l.value,
|
|
914
|
-
"onUpdate:modelValue":
|
|
915
|
-
}, e.value), null, 16, ["modelValue"])) :
|
|
914
|
+
"onUpdate:modelValue": M[12] || (M[12] = (i) => l.value = i)
|
|
915
|
+
}, e.value), null, 16, ["modelValue"])) : d.value == U(xe).RATE ? (h(), E(u, A({
|
|
916
916
|
key: 11,
|
|
917
917
|
modelValue: l.value,
|
|
918
|
-
"onUpdate:modelValue":
|
|
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"])) :
|
|
920
|
+
}, e.value), null, 16, ["modelValue", "disabled"])) : d.value == U(xe).SLIDER ? (h(), E(g, A({
|
|
921
921
|
key: 12,
|
|
922
922
|
modelValue: l.value,
|
|
923
|
-
"onUpdate:modelValue":
|
|
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"])) :
|
|
925
|
+
}, e.value), null, 16, ["modelValue", "disabled"])) : d.value == U(xe).SWITCH ? (h(), E(C, A({
|
|
926
926
|
key: 13,
|
|
927
927
|
modelValue: l.value,
|
|
928
|
-
"onUpdate:modelValue":
|
|
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(I(), (
|
|
933
|
-
name:
|
|
932
|
+
N(I(), (i) => ({
|
|
933
|
+
name: i,
|
|
934
934
|
fn: _((oe) => [
|
|
935
|
-
|
|
935
|
+
x(V.$slots, `${s.t}-${n.value}-${i}`, { data: oe }, void 0, !0)
|
|
936
936
|
])
|
|
937
937
|
}))
|
|
938
|
-
]), 1040, ["modelValue", "disabled"])) :
|
|
938
|
+
]), 1040, ["modelValue", "disabled"])) : d.value == U(xe).TRANSFER ? (h(), E(q, A({
|
|
939
939
|
key: 14,
|
|
940
940
|
modelValue: l.value,
|
|
941
|
-
"onUpdate:modelValue":
|
|
941
|
+
"onUpdate:modelValue": M[16] || (M[16] = (i) => l.value = i)
|
|
942
942
|
}, e.value), ge({ _: 2 }, [
|
|
943
|
-
N(I(), (
|
|
944
|
-
name:
|
|
943
|
+
N(I(), (i) => ({
|
|
944
|
+
name: i,
|
|
945
945
|
fn: _((oe) => [
|
|
946
|
-
|
|
946
|
+
x(V.$slots, `${s.t}-${n.value}-${i}`, { data: oe }, void 0, !0)
|
|
947
947
|
])
|
|
948
948
|
}))
|
|
949
|
-
]), 1040, ["modelValue"])) :
|
|
949
|
+
]), 1040, ["modelValue"])) : d.value == U(xe).CASCADER ? (h(), E(R, A({
|
|
950
950
|
key: 15,
|
|
951
951
|
modelValue: l.value,
|
|
952
|
-
"onUpdate:modelValue":
|
|
953
|
-
}, e.value, { options:
|
|
954
|
-
N(I(), (
|
|
955
|
-
name:
|
|
952
|
+
"onUpdate:modelValue": M[17] || (M[17] = (i) => l.value = i)
|
|
953
|
+
}, e.value, { options: T.value }), ge({ _: 2 }, [
|
|
954
|
+
N(I(), (i) => ({
|
|
955
|
+
name: i,
|
|
956
956
|
fn: _((oe) => [
|
|
957
|
-
|
|
957
|
+
x(V.$slots, `${s.t}-${n.value}-${i}`, { data: oe }, void 0, !0)
|
|
958
958
|
])
|
|
959
959
|
}))
|
|
960
|
-
]), 1040, ["modelValue", "options"])) :
|
|
960
|
+
]), 1040, ["modelValue", "options"])) : d.value == U(xe).IMAGE ? (h(), E(Ee, A({
|
|
961
961
|
key: 16,
|
|
962
962
|
"file-list": e.value["file-list"],
|
|
963
|
-
"onUpdate:fileList":
|
|
963
|
+
"onUpdate:fileList": M[21] || (M[21] = (i) => e.value["file-list"] = i),
|
|
964
964
|
"list-type": "picture-card",
|
|
965
965
|
class: "custom-upload",
|
|
966
966
|
"on-preview": me
|
|
@@ -969,19 +969,19 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
969
969
|
ref: Te
|
|
970
970
|
}), ge({
|
|
971
971
|
default: _(() => {
|
|
972
|
-
var
|
|
972
|
+
var i, oe;
|
|
973
973
|
return [
|
|
974
|
-
!l.value || ((
|
|
974
|
+
!l.value || ((i = e.value) == null ? void 0 : i.multiple) === !0 ? (h(), E(B, { key: 0 }, {
|
|
975
975
|
default: _(() => [
|
|
976
976
|
se(U(Ml))
|
|
977
977
|
]),
|
|
978
978
|
_: 1
|
|
979
|
-
})) : (
|
|
979
|
+
})) : (h(), z("div", {
|
|
980
980
|
key: 1,
|
|
981
|
-
onClick:
|
|
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
|
-
|
|
984
|
+
Z("div", Bl, [
|
|
985
985
|
se(he, A({
|
|
986
986
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
987
987
|
src: l.value
|
|
@@ -989,18 +989,18 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
989
989
|
N(I(), (ce, Be) => ({
|
|
990
990
|
name: ce,
|
|
991
991
|
fn: _((ft) => [
|
|
992
|
-
|
|
992
|
+
x(V.$slots, `${s.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:
|
|
1000
|
-
onMouseleave:
|
|
999
|
+
onMouseenter: M[18] || (M[18] = (ce) => m.value = !0),
|
|
1000
|
+
onMouseleave: M[19] || (M[19] = (ce) => m.value = !1),
|
|
1001
1001
|
class: "up-view"
|
|
1002
1002
|
}, [
|
|
1003
|
-
|
|
1003
|
+
m.value ? (h(), E(we, {
|
|
1004
1004
|
key: 0,
|
|
1005
1005
|
content: "查看大图",
|
|
1006
1006
|
placement: "top"
|
|
@@ -1014,7 +1014,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1014
1014
|
]),
|
|
1015
1015
|
_: 1
|
|
1016
1016
|
})) : be("", !0),
|
|
1017
|
-
k.value.showDel &&
|
|
1017
|
+
k.value.showDel && m.value ? (h(), E(we, {
|
|
1018
1018
|
key: 1,
|
|
1019
1019
|
content: "删除",
|
|
1020
1020
|
placement: "top"
|
|
@@ -1034,54 +1034,54 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1034
1034
|
}),
|
|
1035
1035
|
_: 2
|
|
1036
1036
|
}, [
|
|
1037
|
-
N(I(), (
|
|
1038
|
-
name:
|
|
1037
|
+
N(I(), (i, oe) => ({
|
|
1038
|
+
name: i,
|
|
1039
1039
|
fn: _((ce) => [
|
|
1040
|
-
|
|
1040
|
+
x(V.$slots, `${s.t}-${n.value}-${i}`, { data: ce }, void 0, !0)
|
|
1041
1041
|
])
|
|
1042
1042
|
}))
|
|
1043
|
-
]), 1040, ["file-list"])) :
|
|
1043
|
+
]), 1040, ["file-list"])) : d.value == U(xe).AUTOCOMPLETE ? (h(), E(Oe, A({
|
|
1044
1044
|
key: 17,
|
|
1045
1045
|
modelValue: l.value,
|
|
1046
|
-
"onUpdate:modelValue":
|
|
1047
|
-
}, e.value, { placeholder:
|
|
1048
|
-
N(I(), (
|
|
1049
|
-
name:
|
|
1046
|
+
"onUpdate:modelValue": M[22] || (M[22] = (i) => l.value = i)
|
|
1047
|
+
}, e.value, { placeholder: o.value }), ge({ _: 2 }, [
|
|
1048
|
+
N(I(), (i, oe) => ({
|
|
1049
|
+
name: i,
|
|
1050
1050
|
fn: _((ce) => [
|
|
1051
|
-
|
|
1051
|
+
x(V.$slots, `${s.t}-${n.value}-${i}`, { data: ce }, void 0, !0)
|
|
1052
1052
|
])
|
|
1053
1053
|
}))
|
|
1054
|
-
]), 1040, ["modelValue", "placeholder"])) :
|
|
1054
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == U(xe).INPUTNUMBER ? (h(), E(je, A({
|
|
1055
1055
|
key: 18,
|
|
1056
1056
|
modelValue: l.value,
|
|
1057
|
-
"onUpdate:modelValue":
|
|
1058
|
-
placeholder:
|
|
1057
|
+
"onUpdate:modelValue": M[23] || (M[23] = (i) => l.value = i),
|
|
1058
|
+
placeholder: o.value,
|
|
1059
1059
|
disabled: t.value[n.value].disabled
|
|
1060
1060
|
}, e.value), ge({ _: 2 }, [
|
|
1061
|
-
N(I(), (
|
|
1062
|
-
name:
|
|
1061
|
+
N(I(), (i, oe) => ({
|
|
1062
|
+
name: i,
|
|
1063
1063
|
fn: _((ce) => [
|
|
1064
|
-
|
|
1064
|
+
x(V.$slots, `${s.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"])) :
|
|
1070
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : d.value == "input-tag" ? (h(), E(Ze, A({
|
|
1071
1071
|
key: 19,
|
|
1072
1072
|
modelValue: l.value,
|
|
1073
|
-
"onUpdate:modelValue":
|
|
1074
|
-
placeholder:
|
|
1073
|
+
"onUpdate:modelValue": M[24] || (M[24] = (i) => l.value = i),
|
|
1074
|
+
placeholder: o.value,
|
|
1075
1075
|
disabled: t.value[n.value].disabled,
|
|
1076
1076
|
draggable: ""
|
|
1077
1077
|
}, e.value), ge({ _: 2 }, [
|
|
1078
1078
|
(Re = e.value) != null && Re.suffix ? {
|
|
1079
1079
|
name: "suffix",
|
|
1080
1080
|
fn: _(() => {
|
|
1081
|
-
var
|
|
1081
|
+
var i;
|
|
1082
1082
|
return [
|
|
1083
|
-
|
|
1084
|
-
innerHTML: ((
|
|
1083
|
+
Z("div", {
|
|
1084
|
+
innerHTML: ((i = e.value) == null ? void 0 : i.suffix) || ""
|
|
1085
1085
|
}, null, 8, Pl)
|
|
1086
1086
|
];
|
|
1087
1087
|
}),
|
|
@@ -1090,137 +1090,137 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1090
1090
|
(Je = e.value) != null && Je.prefix ? {
|
|
1091
1091
|
name: "prefix",
|
|
1092
1092
|
fn: _(() => {
|
|
1093
|
-
var
|
|
1093
|
+
var i;
|
|
1094
1094
|
return [
|
|
1095
|
-
|
|
1096
|
-
innerHTML: ((
|
|
1095
|
+
Z("div", {
|
|
1096
|
+
innerHTML: ((i = e.value) == null ? void 0 : i.prefix) || ""
|
|
1097
1097
|
}, null, 8, Nl)
|
|
1098
1098
|
];
|
|
1099
1099
|
}),
|
|
1100
1100
|
key: "1"
|
|
1101
1101
|
} : void 0,
|
|
1102
|
-
N(I(), (
|
|
1103
|
-
name:
|
|
1102
|
+
N(I(), (i, oe) => ({
|
|
1103
|
+
name: i,
|
|
1104
1104
|
fn: _((ce) => [
|
|
1105
|
-
|
|
1105
|
+
x(V.$slots, `${s.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"])) :
|
|
1111
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : d.value == U(xe).MONEY ? (h(), z("div", {
|
|
1112
1112
|
key: 20,
|
|
1113
1113
|
style: Ye([{ position: "relative" }, p.value])
|
|
1114
1114
|
}, [
|
|
1115
1115
|
se(st, A({
|
|
1116
1116
|
modelValue: l.value,
|
|
1117
|
-
"onUpdate:modelValue":
|
|
1118
|
-
placeholder:
|
|
1117
|
+
"onUpdate:modelValue": M[25] || (M[25] = (i) => l.value = i),
|
|
1118
|
+
placeholder: o.value,
|
|
1119
1119
|
type: "number",
|
|
1120
|
-
onInput:
|
|
1120
|
+
onInput: M[26] || (M[26] = (i) => We(i, 2)),
|
|
1121
1121
|
maxlength: ((rt = e.value) == null ? void 0 : rt.max) || 25
|
|
1122
|
-
}, { ...e.value, type:
|
|
1122
|
+
}, { ...e.value, type: d.value }), ge({
|
|
1123
1123
|
suffix: _(() => [
|
|
1124
|
-
|
|
1124
|
+
Z("div", {
|
|
1125
1125
|
title: U(Ht)(l.value),
|
|
1126
1126
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1127
1127
|
}, Me(U(Ht)(l.value)), 9, Wl)
|
|
1128
1128
|
]),
|
|
1129
1129
|
_: 2
|
|
1130
1130
|
}, [
|
|
1131
|
-
N(I(), (
|
|
1132
|
-
name:
|
|
1131
|
+
N(I(), (i, oe) => ({
|
|
1132
|
+
name: i,
|
|
1133
1133
|
fn: _((ce) => [
|
|
1134
|
-
|
|
1134
|
+
x(V.$slots, `${s.t}-${n.value}-${i}`, { data: ce }, void 0, !0)
|
|
1135
1135
|
])
|
|
1136
1136
|
}))
|
|
1137
1137
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
1138
|
-
], 4)) : (
|
|
1138
|
+
], 4)) : (K = d.value) != null && K.startsWith("link") ? (h(), z("div", {
|
|
1139
1139
|
key: 21,
|
|
1140
1140
|
style: Ye(p.value)
|
|
1141
1141
|
}, [
|
|
1142
1142
|
se(_t, A(e.value, {
|
|
1143
|
-
type:
|
|
1144
|
-
innerHTML:
|
|
1143
|
+
type: d.value.replace("link-", ""),
|
|
1144
|
+
innerHTML: X.value || l.value
|
|
1145
1145
|
}), null, 16, ["type", "innerHTML"])
|
|
1146
|
-
], 4)) :
|
|
1146
|
+
], 4)) : d.value != "textarea" && ((ie = d.value) != null && ie.startsWith("text")) ? (h(), z("div", {
|
|
1147
1147
|
key: 22,
|
|
1148
1148
|
style: Ye(p.value)
|
|
1149
1149
|
}, [
|
|
1150
1150
|
se(Ct, A(e.value, {
|
|
1151
|
-
type:
|
|
1152
|
-
innerHTML:
|
|
1151
|
+
type: d.value.replace("text-", ""),
|
|
1152
|
+
innerHTML: X.value || l.value
|
|
1153
1153
|
}), null, 16, ["type", "innerHTML"])
|
|
1154
|
-
], 4)) :
|
|
1154
|
+
], 4)) : d.value == "avatar" ? (h(), z("div", {
|
|
1155
1155
|
key: 23,
|
|
1156
1156
|
style: Ye(p.value)
|
|
1157
1157
|
}, [
|
|
1158
|
-
|
|
1158
|
+
X.value ? (h(), E(Q, Vt(A({ key: 0 }, e.value)), {
|
|
1159
1159
|
default: _(() => [
|
|
1160
|
-
|
|
1160
|
+
Z("div", { innerHTML: X.value }, null, 8, Gl)
|
|
1161
1161
|
]),
|
|
1162
1162
|
_: 1
|
|
1163
|
-
}, 16)) : (
|
|
1164
|
-
], 4)) : (ve =
|
|
1163
|
+
}, 16)) : (h(), E(Q, Vt(A({ key: 1 }, e.value)), null, 16))
|
|
1164
|
+
], 4)) : (ve = d.value) != null && ve.startsWith("tag") ? (h(), z("div", {
|
|
1165
1165
|
key: 24,
|
|
1166
1166
|
style: Ye(p.value)
|
|
1167
1167
|
}, [
|
|
1168
|
-
Array.isArray(
|
|
1169
|
-
typeof
|
|
1168
|
+
Array.isArray(X.value) && X.value.length > 0 ? (h(!0), z(re, { key: 0 }, N(X.value, (i, oe) => (h(), z(re, { key: oe }, [
|
|
1169
|
+
typeof i == "object" ? (h(), E(fe, A({
|
|
1170
1170
|
key: 0,
|
|
1171
1171
|
"disable-transitions": ""
|
|
1172
|
-
}, { ref_for: !0 },
|
|
1173
|
-
innerHTML:
|
|
1172
|
+
}, { ref_for: !0 }, i, {
|
|
1173
|
+
innerHTML: i == null ? void 0 : i.value,
|
|
1174
1174
|
style: { "margin-right": "3px" }
|
|
1175
|
-
}), null, 16, ["innerHTML"])) : (
|
|
1175
|
+
}), null, 16, ["innerHTML"])) : (h(), E(fe, A({
|
|
1176
1176
|
key: 1,
|
|
1177
1177
|
"disable-transitions": ""
|
|
1178
1178
|
}, { ref_for: !0 }, e.value, {
|
|
1179
|
-
type:
|
|
1180
|
-
innerHTML:
|
|
1179
|
+
type: d.value.replace("tag-", ""),
|
|
1180
|
+
innerHTML: i,
|
|
1181
1181
|
style: { "margin-right": "3px" }
|
|
1182
1182
|
}), null, 16, ["type", "innerHTML"]))
|
|
1183
|
-
], 64))), 128)) : (
|
|
1183
|
+
], 64))), 128)) : (h(), E(fe, A({
|
|
1184
1184
|
key: 1,
|
|
1185
1185
|
"disable-transitions": ""
|
|
1186
1186
|
}, e.value, {
|
|
1187
|
-
type:
|
|
1188
|
-
innerHTML:
|
|
1187
|
+
type: d.value.replace("tag-", ""),
|
|
1188
|
+
innerHTML: X.value || l.value
|
|
1189
1189
|
}), null, 16, ["type", "innerHTML"]))
|
|
1190
|
-
], 4)) :
|
|
1191
|
-
innerHTML:
|
|
1190
|
+
], 4)) : d.value == "div" ? (h(), z("div", A({ key: 25 }, e.value, {
|
|
1191
|
+
innerHTML: X.value || l.value,
|
|
1192
1192
|
style: p.value
|
|
1193
|
-
}), null, 16, Xl)) :
|
|
1194
|
-
innerHTML:
|
|
1193
|
+
}), null, 16, Xl)) : d.value == "span" ? (h(), z("span", A({ key: 26 }, e.value, {
|
|
1194
|
+
innerHTML: X.value || l.value,
|
|
1195
1195
|
style: p.value
|
|
1196
|
-
}), null, 16, Ql)) :
|
|
1196
|
+
}), null, 16, Ql)) : d.value == "custom" ? (h(), z("div", {
|
|
1197
1197
|
key: 27,
|
|
1198
1198
|
style: Ye(p.value)
|
|
1199
1199
|
}, [
|
|
1200
|
-
(
|
|
1201
|
-
], 4)) : (
|
|
1200
|
+
(h(), E(Pe(e.value.component), Vt(Gt(U(Ne)(e.value, (i) => i != "component"))), null, 16))
|
|
1201
|
+
], 4)) : (h(), E(st, A({
|
|
1202
1202
|
key: 28,
|
|
1203
1203
|
modelValue: l.value,
|
|
1204
|
-
"onUpdate:modelValue":
|
|
1205
|
-
placeholder:
|
|
1204
|
+
"onUpdate:modelValue": M[27] || (M[27] = (i) => l.value = i),
|
|
1205
|
+
placeholder: o.value,
|
|
1206
1206
|
maxlength: ((it = e.value) == null ? void 0 : it.max) || 25,
|
|
1207
1207
|
clearable: !0,
|
|
1208
|
-
onInput:
|
|
1208
|
+
onInput: M[28] || (M[28] = (i) => {
|
|
1209
1209
|
var oe;
|
|
1210
|
-
return
|
|
1210
|
+
return d.value == U(xe).NUMBER ? We(i, ((oe = e.value) == null ? void 0 : oe.precision) || 2) : i;
|
|
1211
1211
|
}),
|
|
1212
|
-
onClear:
|
|
1213
|
-
|
|
1212
|
+
onClear: M[29] || (M[29] = () => {
|
|
1213
|
+
s.t == "q" && t.value.table.load();
|
|
1214
1214
|
}),
|
|
1215
1215
|
disabled: t.value[n.value].disabled
|
|
1216
|
-
}, { ...U(Ne)(e.value, (
|
|
1216
|
+
}, { ...U(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: _(() => {
|
|
1220
|
-
var
|
|
1220
|
+
var i;
|
|
1221
1221
|
return [
|
|
1222
|
-
|
|
1223
|
-
innerHTML: ((
|
|
1222
|
+
Z("div", {
|
|
1223
|
+
innerHTML: ((i = e.value) == null ? void 0 : i.suffix) || ""
|
|
1224
1224
|
}, null, 8, Zl)
|
|
1225
1225
|
];
|
|
1226
1226
|
}),
|
|
@@ -1229,10 +1229,10 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1229
1229
|
(nt = e.value) != null && nt.prefix ? {
|
|
1230
1230
|
name: "prefix",
|
|
1231
1231
|
fn: _(() => {
|
|
1232
|
-
var
|
|
1232
|
+
var i;
|
|
1233
1233
|
return [
|
|
1234
|
-
|
|
1235
|
-
innerHTML: ((
|
|
1234
|
+
Z("div", {
|
|
1235
|
+
innerHTML: ((i = e.value) == null ? void 0 : i.prefix) || ""
|
|
1236
1236
|
}, null, 8, Jl)
|
|
1237
1237
|
];
|
|
1238
1238
|
}),
|
|
@@ -1241,10 +1241,10 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1241
1241
|
(ot = e.value) != null && ot.append ? {
|
|
1242
1242
|
name: "append",
|
|
1243
1243
|
fn: _(() => {
|
|
1244
|
-
var
|
|
1244
|
+
var i;
|
|
1245
1245
|
return [
|
|
1246
|
-
|
|
1247
|
-
innerHTML: ((
|
|
1246
|
+
Z("div", {
|
|
1247
|
+
innerHTML: ((i = e.value) == null ? void 0 : i.append) || ""
|
|
1248
1248
|
}, null, 8, Kl)
|
|
1249
1249
|
];
|
|
1250
1250
|
}),
|
|
@@ -1253,19 +1253,19 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1253
1253
|
(pt = e.value) != null && pt.prepend ? {
|
|
1254
1254
|
name: "prepend",
|
|
1255
1255
|
fn: _(() => {
|
|
1256
|
-
var
|
|
1256
|
+
var i;
|
|
1257
1257
|
return [
|
|
1258
|
-
|
|
1259
|
-
innerHTML: ((
|
|
1258
|
+
Z("div", {
|
|
1259
|
+
innerHTML: ((i = e.value) == null ? void 0 : i.prepend) || ""
|
|
1260
1260
|
}, null, 8, ea)
|
|
1261
1261
|
];
|
|
1262
1262
|
}),
|
|
1263
1263
|
key: "3"
|
|
1264
1264
|
} : void 0,
|
|
1265
|
-
N(I(), (
|
|
1266
|
-
name:
|
|
1265
|
+
N(I(), (i, oe) => ({
|
|
1266
|
+
name: i,
|
|
1267
1267
|
fn: _((ce) => [
|
|
1268
|
-
|
|
1268
|
+
x(V.$slots, `${s.t}-${n.value}-${i}`, {
|
|
1269
1269
|
data: ce,
|
|
1270
1270
|
form: r.formInfo
|
|
1271
1271
|
}, void 0, !0)
|
|
@@ -1286,73 +1286,68 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1286
1286
|
}),
|
|
1287
1287
|
emits: ["update:modelValue", "update:info"],
|
|
1288
1288
|
setup(r) {
|
|
1289
|
-
const
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
return
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
return console.warn(`获取 ${G[0]} 的sort值时出错:`, X), 0;
|
|
1305
|
-
}
|
|
1306
|
-
}, L = p(o), j = p(d), I = Number(L) || 0, k = Number(j) || 0;
|
|
1307
|
-
return I - k;
|
|
1289
|
+
const s = lt(r, "modelValue"), e = r, l = lt(r, "info"), n = (v) => {
|
|
1290
|
+
if (typeof v.search != "function") return v.search;
|
|
1291
|
+
try {
|
|
1292
|
+
return v.search(l.value, s.value.table);
|
|
1293
|
+
} catch (m) {
|
|
1294
|
+
return console.warn("解析 search 配置时出错:", m), null;
|
|
1295
|
+
}
|
|
1296
|
+
}, d = (v) => {
|
|
1297
|
+
const m = Object.entries(s.value).filter(([, f]) => {
|
|
1298
|
+
const o = n(f);
|
|
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], [p, L]) => {
|
|
1301
|
+
var k, X;
|
|
1302
|
+
const H = Number((k = n(o)) == null ? void 0 : k.sort) || 0, I = Number((X = n(L)) == null ? void 0 : X.sort) || 0;
|
|
1303
|
+
return H - I;
|
|
1308
1304
|
});
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
}, f = (x) => {
|
|
1305
|
+
return Object.fromEntries(m);
|
|
1306
|
+
}, t = (v) => typeof v.search == "function" ? v.search(l.value, s.value.table) : v.search || {}, c = (v) => {
|
|
1307
|
+
const m = t(v);
|
|
1308
|
+
return (m == null ? void 0 : m.type) || v.type;
|
|
1309
|
+
}, T = (v) => {
|
|
1315
1310
|
var o;
|
|
1316
|
-
const
|
|
1317
|
-
let
|
|
1318
|
-
return isNaN(
|
|
1311
|
+
const m = t(v);
|
|
1312
|
+
let f = (m == null ? void 0 : m.width) || ((o = s.value.queryItems) == null ? void 0 : o.width) || "100%";
|
|
1313
|
+
return isNaN(f) || (f += "px"), f;
|
|
1319
1314
|
};
|
|
1320
|
-
return (
|
|
1321
|
-
const
|
|
1322
|
-
return
|
|
1323
|
-
key:
|
|
1315
|
+
return (v, m) => {
|
|
1316
|
+
const f = F("el-form-item");
|
|
1317
|
+
return h(!0), z(re, null, N(d(e.more), (o, p) => x(v.$slots, `q-${p}`, {
|
|
1318
|
+
key: p,
|
|
1324
1319
|
item: o,
|
|
1325
1320
|
queryModel: l.value,
|
|
1326
|
-
model:
|
|
1321
|
+
model: s.value
|
|
1327
1322
|
}, () => [
|
|
1328
|
-
se(
|
|
1323
|
+
se(f, A({
|
|
1329
1324
|
label: o.label,
|
|
1330
|
-
style: { width:
|
|
1331
|
-
}, { ref_for: !0 }, { ...
|
|
1325
|
+
style: { width: T(o) }
|
|
1326
|
+
}, { ref_for: !0 }, { ...s.value.queryItems, ...t(o) }), {
|
|
1332
1327
|
label: _(() => [
|
|
1333
|
-
|
|
1328
|
+
x(v.$slots, `q-${p}-label`, {
|
|
1334
1329
|
item: o,
|
|
1335
|
-
model:
|
|
1330
|
+
model: s.value
|
|
1336
1331
|
})
|
|
1337
1332
|
]),
|
|
1338
1333
|
default: _(() => [
|
|
1339
1334
|
se(ht, {
|
|
1340
|
-
modelValue: l.value[
|
|
1341
|
-
"onUpdate:modelValue": (
|
|
1342
|
-
item: { getDicts: o == null ? void 0 : o.getDicts, ...o == null ? void 0 : o.editor, ...
|
|
1343
|
-
ctrlKey:
|
|
1344
|
-
ctrlType:
|
|
1345
|
-
model:
|
|
1335
|
+
modelValue: l.value[p],
|
|
1336
|
+
"onUpdate:modelValue": (L) => l.value[p] = L,
|
|
1337
|
+
item: { getDicts: o == null ? void 0 : o.getDicts, ...o == null ? void 0 : o.editor, ...t(o) },
|
|
1338
|
+
ctrlKey: p,
|
|
1339
|
+
ctrlType: c(o),
|
|
1340
|
+
model: s.value,
|
|
1346
1341
|
t: "q",
|
|
1347
1342
|
formInfo: l.value
|
|
1348
1343
|
}, ge({ _: 2 }, [
|
|
1349
|
-
N(Object.keys(
|
|
1350
|
-
name:
|
|
1351
|
-
fn: _((
|
|
1352
|
-
|
|
1353
|
-
data:
|
|
1344
|
+
N(Object.keys(v.$slots), (L) => ({
|
|
1345
|
+
name: L,
|
|
1346
|
+
fn: _((H) => [
|
|
1347
|
+
x(v.$slots, L, {
|
|
1348
|
+
data: H,
|
|
1354
1349
|
item: o,
|
|
1355
|
-
model:
|
|
1350
|
+
model: s.value
|
|
1356
1351
|
})
|
|
1357
1352
|
])
|
|
1358
1353
|
}))
|
|
@@ -1375,14 +1370,14 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1375
1370
|
infoModifiers: {}
|
|
1376
1371
|
},
|
|
1377
1372
|
emits: /* @__PURE__ */ at(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1378
|
-
setup(r, { emit:
|
|
1379
|
-
const e = lt(r, "modelValue"), l =
|
|
1380
|
-
var
|
|
1381
|
-
const I = qe((
|
|
1373
|
+
setup(r, { emit: s }) {
|
|
1374
|
+
const e = lt(r, "modelValue"), l = s, n = Ot("options"), d = ae(!1), t = lt(r, "info"), c = Fe(() => {
|
|
1375
|
+
var X, J, ee;
|
|
1376
|
+
const I = 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" };
|
|
1382
1377
|
return {
|
|
1383
1378
|
justifyContent: { left: "flex-start", right: "flex-end", center: "center" }[I.align] || "flex-start"
|
|
1384
1379
|
};
|
|
1385
|
-
}),
|
|
1380
|
+
}), T = {
|
|
1386
1381
|
hidden: !1,
|
|
1387
1382
|
type: "hidden",
|
|
1388
1383
|
labelWidth: 100,
|
|
@@ -1401,7 +1396,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1401
1396
|
label: "更多",
|
|
1402
1397
|
icon: () => _e(Vl),
|
|
1403
1398
|
click: () => {
|
|
1404
|
-
|
|
1399
|
+
d.value = !d.value;
|
|
1405
1400
|
}
|
|
1406
1401
|
},
|
|
1407
1402
|
reset: {
|
|
@@ -1420,7 +1415,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1420
1415
|
label: "查询",
|
|
1421
1416
|
icon: () => _e(Tl),
|
|
1422
1417
|
click: () => {
|
|
1423
|
-
l("query", t.value),
|
|
1418
|
+
l("query", t.value), d.value = !1;
|
|
1424
1419
|
}
|
|
1425
1420
|
},
|
|
1426
1421
|
btns: {
|
|
@@ -1429,12 +1424,12 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1429
1424
|
style: {
|
|
1430
1425
|
display: "flex",
|
|
1431
1426
|
flexWrap: "wrap",
|
|
1432
|
-
justifyContent:
|
|
1427
|
+
justifyContent: c.value.justifyContent,
|
|
1433
1428
|
boxSizing: "border-box"
|
|
1434
1429
|
}
|
|
1435
1430
|
}
|
|
1436
1431
|
};
|
|
1437
|
-
e.value.query = qe(
|
|
1432
|
+
e.value.query = qe(T, n == null ? void 0 : n.query, e.value.query);
|
|
1438
1433
|
const v = {
|
|
1439
1434
|
2: {
|
|
1440
1435
|
title: "更多查询",
|
|
@@ -1456,7 +1451,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1456
1451
|
v[e.value.query.more.mode] || {},
|
|
1457
1452
|
e.value.query.more.dialog
|
|
1458
1453
|
);
|
|
1459
|
-
const
|
|
1454
|
+
const m = {
|
|
1460
1455
|
type: "hidden",
|
|
1461
1456
|
hidden: !1,
|
|
1462
1457
|
labelPosition: "right",
|
|
@@ -1467,25 +1462,25 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1467
1462
|
alignItems: "flex-start"
|
|
1468
1463
|
}
|
|
1469
1464
|
};
|
|
1470
|
-
e.value.queryItems = qe(
|
|
1471
|
-
const
|
|
1472
|
-
const
|
|
1465
|
+
e.value.queryItems = qe(m, n == null ? void 0 : n.queryItems, e.value.queryItems);
|
|
1466
|
+
const f = (I, k) => {
|
|
1467
|
+
const X = Object.keys(I.slots).filter((J) => J !== "default").reduce((J, ee) => (J[ee] = (ne) => I.slots[ee]({
|
|
1473
1468
|
model: e.value
|
|
1474
1469
|
// 传递当前模型数据
|
|
1475
|
-
}),
|
|
1470
|
+
}), J), {});
|
|
1476
1471
|
return _e(Rt, {
|
|
1477
1472
|
modelValue: e.value,
|
|
1478
|
-
"onUpdate:modelValue": (
|
|
1473
|
+
"onUpdate:modelValue": (J) => e.value = J,
|
|
1479
1474
|
info: t.value,
|
|
1480
|
-
"onUpdate:info": (
|
|
1475
|
+
"onUpdate:info": (J) => t.value = J,
|
|
1481
1476
|
more: k
|
|
1482
|
-
},
|
|
1483
|
-
},
|
|
1484
|
-
var
|
|
1477
|
+
}, X);
|
|
1478
|
+
}, o = Xt(), p = () => {
|
|
1479
|
+
var X, J, ee, ne, ue, pe, Se, De, me;
|
|
1485
1480
|
const I = [
|
|
1486
1481
|
{
|
|
1487
1482
|
key: "query",
|
|
1488
|
-
hidden: (
|
|
1483
|
+
hidden: (ee = (J = (X = e.value) == null ? void 0 : X.query) == null ? void 0 : J.query) == null ? void 0 : ee.hidden,
|
|
1489
1484
|
component: He,
|
|
1490
1485
|
props: {
|
|
1491
1486
|
...e.value.query.query,
|
|
@@ -1518,26 +1513,26 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1518
1513
|
content: e.value.query.more.mode === 3 ? () => _e(Mt, {
|
|
1519
1514
|
class: "query-form",
|
|
1520
1515
|
...Ne(e.value.query, (P) => !["query", "more", "reset"].includes(P))
|
|
1521
|
-
}, () =>
|
|
1516
|
+
}, () => f({ slots: o }, !0)) : null
|
|
1522
1517
|
}
|
|
1523
1518
|
];
|
|
1524
1519
|
return I.sort((P, Te) => P.sort - Te.sort), I.filter((P) => !P.hidden).map((P) => P.key === "more" && P.component === At ? _e(At, P.props, {
|
|
1525
1520
|
reference: () => _e(He, e.value.query.more, () => P.label),
|
|
1526
1521
|
default: P.content
|
|
1527
1522
|
}) : (P.props.slot = "query-" + P.key, P.label ? _e(P.component, P.props, () => P.label) : _e(P.component, P.props)));
|
|
1528
|
-
}, L =
|
|
1523
|
+
}, L = Fe(() => ({
|
|
1529
1524
|
display: "flex",
|
|
1530
1525
|
flexDirection: e.value.query.container.mode === "row" ? "row" : "column"
|
|
1531
|
-
})),
|
|
1526
|
+
})), H = () => {
|
|
1532
1527
|
};
|
|
1533
1528
|
return (I, k) => {
|
|
1534
|
-
var
|
|
1535
|
-
const
|
|
1536
|
-
return
|
|
1537
|
-
|
|
1529
|
+
var ee, ne, ue, pe, Se, De, me, P, Te, We, w, $, b, y, S, D, O;
|
|
1530
|
+
const X = F("el-form-item"), J = F("el-drawer");
|
|
1531
|
+
return h(), z(re, null, [
|
|
1532
|
+
Z("div", {
|
|
1538
1533
|
class: "g-query-container",
|
|
1539
|
-
style: Ye({ ...L.value, ...((ne = (
|
|
1540
|
-
onDblclick:
|
|
1534
|
+
style: Ye({ ...L.value, ...((ne = (ee = e.value.query) == null ? void 0 : ee.container) == null ? void 0 : ne.style) || {} }),
|
|
1535
|
+
onDblclick: H
|
|
1541
1536
|
}, [
|
|
1542
1537
|
se(U(Mt), A({
|
|
1543
1538
|
onSubmit: k[0] || (k[0] = vt(() => {
|
|
@@ -1546,34 +1541,34 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1546
1541
|
default: _(() => {
|
|
1547
1542
|
var Y, le;
|
|
1548
1543
|
return [
|
|
1549
|
-
(
|
|
1550
|
-
((le = (Y = e.value.query) == null ? void 0 : Y.container) == null ? void 0 : le.inline) === !0 ? (
|
|
1544
|
+
(h(), E(Pe(f({ slots: I.$slots }, void 0)))),
|
|
1545
|
+
((le = (Y = e.value.query) == null ? void 0 : Y.container) == null ? void 0 : le.inline) === !0 ? (h(), E(X, { key: 0 }, {
|
|
1551
1546
|
default: _(() => {
|
|
1552
|
-
var de, ye, W,
|
|
1547
|
+
var de, ye, W, G, Ve;
|
|
1553
1548
|
return [
|
|
1554
|
-
|
|
1549
|
+
Z("div", {
|
|
1555
1550
|
style: Ye((ye = (de = e.value.query) == null ? void 0 : de.btns) == null ? void 0 : ye.style)
|
|
1556
1551
|
}, [
|
|
1557
|
-
e.value.query.group ? (
|
|
1552
|
+
e.value.query.group ? (h(), E(U(St), { key: 0 }, {
|
|
1558
1553
|
default: _(() => [
|
|
1559
|
-
(
|
|
1560
|
-
(
|
|
1554
|
+
(h(!0), z(re, null, N(p(), (ke) => x(I.$slots, ke.props.slot, {}, () => [
|
|
1555
|
+
(h(), E(Pe(ke)))
|
|
1561
1556
|
], !0)), 256)),
|
|
1562
|
-
|
|
1557
|
+
x(I.$slots, "q-btns", {}, void 0, !0)
|
|
1563
1558
|
]),
|
|
1564
1559
|
_: 3
|
|
1565
|
-
})) : (
|
|
1566
|
-
(Ve = (
|
|
1560
|
+
})) : (h(), z(re, { key: 1 }, [
|
|
1561
|
+
(Ve = (G = (W = e.value) == null ? void 0 : W.query) == null ? void 0 : G.btns) != null && Ve.group ? (h(), E(U(St), { key: 0 }, {
|
|
1567
1562
|
default: _(() => [
|
|
1568
|
-
(
|
|
1569
|
-
(
|
|
1563
|
+
(h(!0), z(re, null, N(p(), (ke) => x(I.$slots, ke.props.slot, {}, () => [
|
|
1564
|
+
(h(), E(Pe(ke)))
|
|
1570
1565
|
], !0)), 256))
|
|
1571
1566
|
]),
|
|
1572
1567
|
_: 3
|
|
1573
|
-
})) : (
|
|
1574
|
-
(
|
|
1568
|
+
})) : (h(!0), z(re, { key: 1 }, N(p(), (ke) => x(I.$slots, ke.props.slot, {}, () => [
|
|
1569
|
+
(h(), E(Pe(ke)))
|
|
1575
1570
|
], !0)), 256)),
|
|
1576
|
-
|
|
1571
|
+
x(I.$slots, "q-btns", {}, void 0, !0)
|
|
1577
1572
|
], 64))
|
|
1578
1573
|
], 4)
|
|
1579
1574
|
];
|
|
@@ -1584,37 +1579,37 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1584
1579
|
}),
|
|
1585
1580
|
_: 3
|
|
1586
1581
|
}, 16),
|
|
1587
|
-
((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 ? (h(), z("div", {
|
|
1588
1583
|
key: 0,
|
|
1589
1584
|
style: Ye([{ "margin-bottom": "18px" }, (me = (De = e.value.query) == null ? void 0 : De.btns) == null ? void 0 : me.style])
|
|
1590
1585
|
}, [
|
|
1591
|
-
e.value.query.group ? (
|
|
1586
|
+
e.value.query.group ? (h(), E(U(St), { key: 0 }, {
|
|
1592
1587
|
default: _(() => [
|
|
1593
|
-
(
|
|
1594
|
-
(
|
|
1588
|
+
(h(!0), z(re, null, N(p(), (Y) => x(I.$slots, Y.props.slot, {}, () => [
|
|
1589
|
+
(h(), E(Pe(Y)))
|
|
1595
1590
|
], !0)), 256)),
|
|
1596
|
-
|
|
1591
|
+
x(I.$slots, "q-btns", {}, void 0, !0)
|
|
1597
1592
|
]),
|
|
1598
1593
|
_: 3
|
|
1599
|
-
})) : (
|
|
1600
|
-
(Te = (P = e.value.query) == null ? void 0 : P.btns) != null && Te.group ? (
|
|
1594
|
+
})) : (h(), z(re, { key: 1 }, [
|
|
1595
|
+
(Te = (P = e.value.query) == null ? void 0 : P.btns) != null && Te.group ? (h(), E(U(St), { key: 0 }, {
|
|
1601
1596
|
default: _(() => [
|
|
1602
|
-
(
|
|
1603
|
-
(
|
|
1597
|
+
(h(!0), z(re, null, N(p(), (Y) => x(I.$slots, Y.props.slot, {}, () => [
|
|
1598
|
+
(h(), E(Pe(Y)))
|
|
1604
1599
|
], !0)), 256))
|
|
1605
1600
|
]),
|
|
1606
1601
|
_: 3
|
|
1607
|
-
})) : (
|
|
1608
|
-
(
|
|
1602
|
+
})) : (h(!0), z(re, { key: 1 }, N(p(), (Y) => x(I.$slots, Y.props.slot, {}, () => [
|
|
1603
|
+
(h(), E(Pe(Y)))
|
|
1609
1604
|
], !0)), 256)),
|
|
1610
|
-
|
|
1605
|
+
x(I.$slots, "q-btns", {}, void 0, !0)
|
|
1611
1606
|
], 64))
|
|
1612
1607
|
], 4)) : be("", !0)
|
|
1613
1608
|
], 36),
|
|
1614
|
-
|
|
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 ? (h(), E(J, A({
|
|
1615
1610
|
key: 0,
|
|
1616
|
-
modelValue:
|
|
1617
|
-
"onUpdate:modelValue": k[6] || (k[6] = (Y) =>
|
|
1611
|
+
modelValue: d.value,
|
|
1612
|
+
"onUpdate:modelValue": k[6] || (k[6] = (Y) => d.value = Y),
|
|
1618
1613
|
title: "更多查询",
|
|
1619
1614
|
"show-close": !1
|
|
1620
1615
|
}, e.value.query.more.dialog), ge({
|
|
@@ -1634,7 +1629,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1634
1629
|
N(I.$slots, (Y, le, de) => ({
|
|
1635
1630
|
name: le,
|
|
1636
1631
|
fn: _((ye) => [
|
|
1637
|
-
|
|
1632
|
+
x(I.$slots, le, { model: e.value }, void 0, !0)
|
|
1638
1633
|
])
|
|
1639
1634
|
}))
|
|
1640
1635
|
]), 1032, ["modelValue", "info"])
|
|
@@ -1644,10 +1639,10 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1644
1639
|
]),
|
|
1645
1640
|
_: 2
|
|
1646
1641
|
}, [
|
|
1647
|
-
(O = (D = (
|
|
1642
|
+
(O = (D = (S = (y = (b = e.value) == null ? void 0 : b.query) == null ? void 0 : y.more) == null ? void 0 : S.dialog) == null ? void 0 : D.footer) != null && O.hidden ? void 0 : {
|
|
1648
1643
|
name: "footer",
|
|
1649
1644
|
fn: _(() => [
|
|
1650
|
-
|
|
1645
|
+
Z("div", Vt(Gt(e.value.query.more.dialog.footer)), [
|
|
1651
1646
|
se(U(He), A(e.value.query.query, {
|
|
1652
1647
|
onClick: k[4] || (k[4] = (Y) => e.value.query.query.click())
|
|
1653
1648
|
}), {
|
|
@@ -1677,19 +1672,19 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1677
1672
|
default: _(() => {
|
|
1678
1673
|
var Y, le, de;
|
|
1679
1674
|
return [
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
e.value.query.more.mode == 1 ? $l((
|
|
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 ? (h(), z("div", la, [
|
|
1676
|
+
Z("div", aa, [
|
|
1677
|
+
e.value.query.more.mode == 1 ? $l((h(), E(U(Mt), A({
|
|
1683
1678
|
key: 0,
|
|
1684
1679
|
onSubmit: k[7] || (k[7] = vt(() => {
|
|
1685
1680
|
}, ["prevent"]))
|
|
1686
1681
|
}, U(Ne)(e.value.query, (ye) => !["query", "more", "reset"].includes(ye))), {
|
|
1687
1682
|
default: _(() => [
|
|
1688
|
-
(
|
|
1683
|
+
(h(), E(Pe(f({ slots: I.$slots }, !0))))
|
|
1689
1684
|
]),
|
|
1690
1685
|
_: 1
|
|
1691
1686
|
}, 16)), [
|
|
1692
|
-
[wl,
|
|
1687
|
+
[wl, d.value]
|
|
1693
1688
|
]) : be("", !0)
|
|
1694
1689
|
])
|
|
1695
1690
|
])) : be("", !0)
|
|
@@ -1772,9 +1767,9 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1772
1767
|
modelModifiers: {}
|
|
1773
1768
|
}),
|
|
1774
1769
|
emits: /* @__PURE__ */ at(["submit", "reset"], ["update:modelValue"]),
|
|
1775
|
-
setup(r, { expose:
|
|
1770
|
+
setup(r, { expose: s, emit: e }) {
|
|
1776
1771
|
var Se, De, me, P, Te, We;
|
|
1777
|
-
const l = lt(r, "modelValue"), n = e,
|
|
1772
|
+
const l = lt(r, "modelValue"), n = e, d = ae(null), t = Ot("options"), c = ae({}), T = ae(""), v = r;
|
|
1778
1773
|
l.value.form = qe(
|
|
1779
1774
|
sl,
|
|
1780
1775
|
t == null ? void 0 : t.form,
|
|
@@ -1783,35 +1778,35 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1783
1778
|
(me = (De = l.value) == null ? void 0 : De.form) == null ? void 0 : me.style,
|
|
1784
1779
|
{ ...(P = It()) == null ? void 0 : P.style }
|
|
1785
1780
|
);
|
|
1786
|
-
const
|
|
1787
|
-
let
|
|
1788
|
-
for (;
|
|
1789
|
-
if (await Ke(),
|
|
1790
|
-
|
|
1791
|
-
|
|
1781
|
+
const m = async (w, $, b) => {
|
|
1782
|
+
let y = 5;
|
|
1783
|
+
for (; y > 0; ) {
|
|
1784
|
+
if (await Ke(), d.value) {
|
|
1785
|
+
d.value.validate((S, D) => {
|
|
1786
|
+
S ? n("submit", w, $, b) : console.error("表单验证不通过!", D);
|
|
1792
1787
|
});
|
|
1793
1788
|
return;
|
|
1794
1789
|
}
|
|
1795
|
-
|
|
1790
|
+
y--, await new Promise((S) => setTimeout(S, 50));
|
|
1796
1791
|
}
|
|
1797
1792
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1798
|
-
},
|
|
1793
|
+
}, f = async (w, $) => {
|
|
1799
1794
|
let b = 5;
|
|
1800
1795
|
for (; b > 0; ) {
|
|
1801
|
-
if (await Ke(),
|
|
1796
|
+
if (await Ke(), d.value)
|
|
1802
1797
|
try {
|
|
1803
|
-
|
|
1798
|
+
d.value.resetFields(), n("reset", w, $);
|
|
1804
1799
|
return;
|
|
1805
|
-
} catch (
|
|
1806
|
-
console.error("表单重置失败:",
|
|
1800
|
+
} catch (y) {
|
|
1801
|
+
console.error("表单重置失败:", y);
|
|
1807
1802
|
return;
|
|
1808
1803
|
}
|
|
1809
|
-
b--, b > 0 && await new Promise((
|
|
1804
|
+
b--, b > 0 && await new Promise((y) => setTimeout(y, 50));
|
|
1810
1805
|
}
|
|
1811
1806
|
console.error("表单实例获取失败,无法重置表单");
|
|
1812
1807
|
};
|
|
1813
|
-
l.value.form.submit.click =
|
|
1814
|
-
const
|
|
1808
|
+
l.value.form.submit.click = m, l.value.form.saveSubmit.click = m, l.value.form.reset.click = f;
|
|
1809
|
+
const o = {
|
|
1815
1810
|
type: "hidden",
|
|
1816
1811
|
labelPosition: "right",
|
|
1817
1812
|
style: {
|
|
@@ -1819,7 +1814,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1819
1814
|
}
|
|
1820
1815
|
};
|
|
1821
1816
|
l.value.formItems = qe(
|
|
1822
|
-
|
|
1817
|
+
o,
|
|
1823
1818
|
t == null ? void 0 : t.formItems,
|
|
1824
1819
|
(Te = l == null ? void 0 : l.value) == null ? void 0 : Te.formItems
|
|
1825
1820
|
);
|
|
@@ -1837,7 +1832,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1837
1832
|
if (w.rules)
|
|
1838
1833
|
$ = w.rules;
|
|
1839
1834
|
else {
|
|
1840
|
-
const
|
|
1835
|
+
const y = { ...{
|
|
1841
1836
|
required: void 0,
|
|
1842
1837
|
max: void 0,
|
|
1843
1838
|
min: void 0,
|
|
@@ -1846,77 +1841,77 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1846
1841
|
pattern: void 0,
|
|
1847
1842
|
validate: void 0
|
|
1848
1843
|
}, ...w };
|
|
1849
|
-
|
|
1844
|
+
y.required && $.push({
|
|
1850
1845
|
required: !0,
|
|
1851
|
-
message: `${
|
|
1846
|
+
message: `${y.label}不能为空!`,
|
|
1852
1847
|
trigger: "blur"
|
|
1853
|
-
}),
|
|
1854
|
-
validator: (
|
|
1848
|
+
}), y.max !== void 0 && y.max !== null && y.max !== "" && (y.min === void 0 || y.min === null || y.min === "") && $.push({
|
|
1849
|
+
validator: (S, D, O) => {
|
|
1855
1850
|
if (D == null || D === "") return O();
|
|
1856
|
-
|
|
1857
|
-
new Error(`${
|
|
1858
|
-
) : O() : Number(D) > Number(
|
|
1851
|
+
y.type !== "number" && y.type !== "input-number" ? ((D == null ? void 0 : D.toString()) || "").length > Number(y.max) ? O(
|
|
1852
|
+
new Error(`${y.label}长度不能超过${y.max}个字符!`)
|
|
1853
|
+
) : O() : Number(D) > Number(y.max) ? O(new Error(`${y.label}不能大于${y.max}!`)) : O();
|
|
1859
1854
|
}
|
|
1860
|
-
}),
|
|
1861
|
-
validator: (
|
|
1855
|
+
}), y.min !== void 0 && y.min !== null && y.min !== "" && (y.max === void 0 || y.max === null || y.max === "") && $.push({
|
|
1856
|
+
validator: (S, D, O) => {
|
|
1862
1857
|
if (D == null || D === "") return O();
|
|
1863
|
-
|
|
1858
|
+
y.type !== "number" && y.type !== "input-number" ? Number(y.min) < 1 ? O(
|
|
1864
1859
|
new Error(
|
|
1865
|
-
`${
|
|
1860
|
+
`${y.label}长度最小值${y.min}设置错误!`
|
|
1866
1861
|
)
|
|
1867
|
-
) : D.toString().length < Number(
|
|
1862
|
+
) : D.toString().length < Number(y.min) ? O(
|
|
1868
1863
|
new Error(
|
|
1869
|
-
`${
|
|
1864
|
+
`${y.label}长度不能少于${y.min}个字符!`
|
|
1870
1865
|
)
|
|
1871
|
-
) : O() : Number(D) < Number(
|
|
1866
|
+
) : O() : Number(D) < Number(y.min) ? O(new Error(`${y.label}不能小于${y.min}!`)) : O();
|
|
1872
1867
|
}
|
|
1873
|
-
}),
|
|
1874
|
-
validator: (
|
|
1868
|
+
}), y.min !== void 0 && y.min !== null && y.min !== "" && y.max !== void 0 && y.max !== null && y.max !== "" && $.push({
|
|
1869
|
+
validator: (S, D, O) => {
|
|
1875
1870
|
if (D == null || D === "") return O();
|
|
1876
|
-
const Y = Number(
|
|
1877
|
-
|
|
1871
|
+
const Y = Number(y.min), le = Number(y.max);
|
|
1872
|
+
y.type !== "number" && y.type !== "input-number" ? Number(y.min) < 1 ? O(
|
|
1878
1873
|
new Error(
|
|
1879
|
-
`${
|
|
1874
|
+
`${y.label}长度最小值${y.min}设置错误!`
|
|
1880
1875
|
)
|
|
1881
1876
|
) : D.toString().length < Y || D.toString().length > le ? O(
|
|
1882
1877
|
new Error(
|
|
1883
|
-
`${
|
|
1878
|
+
`${y.label}长度必须在${Y}-${le}个字符之间!`
|
|
1884
1879
|
)
|
|
1885
|
-
) : O() : Number(D) < Y || D > le ? O(new Error(`${
|
|
1880
|
+
) : O() : Number(D) < Y || D > le ? O(new Error(`${y.label}必须在${Y}-${le}之间!`)) : O();
|
|
1886
1881
|
}
|
|
1887
|
-
}),
|
|
1888
|
-
pattern:
|
|
1889
|
-
message: (
|
|
1890
|
-
}),
|
|
1891
|
-
validator: (
|
|
1882
|
+
}), y.type == "email" && $.push({ type: "email", message: "不是一个正确的邮箱地址!" }), y.type == "url" && $.push({ type: "url", message: "不是一个合正确的URL!" }), y.pattern && $.push({
|
|
1883
|
+
pattern: y == null ? void 0 : y.pattern,
|
|
1884
|
+
message: (y == null ? void 0 : y.message) || "格式不正确!"
|
|
1885
|
+
}), y.validate && $.push({
|
|
1886
|
+
validator: (S, D, O) => y.validate(S, D, O)
|
|
1892
1887
|
});
|
|
1893
1888
|
}
|
|
1894
1889
|
return $;
|
|
1895
|
-
},
|
|
1896
|
-
var
|
|
1897
|
-
const b = $ ? w : w == null ? void 0 : w.item,
|
|
1890
|
+
}, H = (w, $ = !1) => {
|
|
1891
|
+
var S, D, O, Y, le;
|
|
1892
|
+
const b = $ ? w : w == null ? void 0 : w.item, y = 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) || {};
|
|
1898
1893
|
if (((D = l.value.form) == null ? void 0 : D.modalState) === "edit") {
|
|
1899
|
-
const de = typeof (b == null ? void 0 : b.editor) == "object" ? (O = b.editor) == null ? void 0 : O.ep : typeof (b == null ? void 0 : b.editor) == "function" ?
|
|
1900
|
-
return { ...
|
|
1894
|
+
const de = typeof (b == null ? void 0 : b.editor) == "object" ? (O = b.editor) == null ? void 0 : O.ep : typeof (b == null ? void 0 : b.editor) == "function" ? y == null ? void 0 : y.ep : {};
|
|
1895
|
+
return { ...y, ...de };
|
|
1901
1896
|
}
|
|
1902
1897
|
if (((Y = l.value.form) == null ? void 0 : Y.modalState) === "add") {
|
|
1903
|
-
const de = typeof (b == null ? void 0 : b.editor) == "object" ? (le = b.editor) == null ? void 0 : le.ap : typeof (b == null ? void 0 : b.editor) == "function" ?
|
|
1904
|
-
return { ...
|
|
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" ? y == null ? void 0 : y.ap : {};
|
|
1899
|
+
return { ...y, ...de };
|
|
1905
1900
|
}
|
|
1906
|
-
return
|
|
1901
|
+
return y;
|
|
1907
1902
|
}, I = (w) => {
|
|
1908
|
-
var b,
|
|
1909
|
-
const $ = typeof w.editor == "function" ? w.editor(
|
|
1910
|
-
return ((
|
|
1903
|
+
var b, y, S, D, O;
|
|
1904
|
+
const $ = typeof w.editor == "function" ? w.editor(c.value, (b = l.value.form) == null ? void 0 : b.modalState) : w.editor;
|
|
1905
|
+
return ((y = l.value.form) == null ? void 0 : y.modalState) === "edit" ? ((S = $ == null ? void 0 : $.ep) == null ? void 0 : S.type) ?? ($ == null ? void 0 : $.type) ?? w.type : ((D = l.value.form) == null ? void 0 : D.modalState) === "add" ? ((O = $ == null ? void 0 : $.ap) == null ? void 0 : O.type) ?? ($ == null ? void 0 : $.type) ?? w.type : ($ == null ? void 0 : $.type) ?? w.type;
|
|
1911
1906
|
}, k = (w) => w === "left" ? "flex-start" : w === "right" ? "flex-end" : w === "center" ? "center" : "flex-end";
|
|
1912
1907
|
yt(() => {
|
|
1913
|
-
|
|
1908
|
+
X(), v != null && v.editForm ? c.value = v.editForm : c.value = ee.value;
|
|
1914
1909
|
}), kl(() => {
|
|
1915
|
-
|
|
1910
|
+
d.value = null;
|
|
1916
1911
|
});
|
|
1917
|
-
const
|
|
1918
|
-
|
|
1919
|
-
for (const [w, $] of Object.entries(
|
|
1912
|
+
const X = () => {
|
|
1913
|
+
T.value = Math.random().toString(36).substring(2);
|
|
1914
|
+
for (const [w, $] of Object.entries(J.value))
|
|
1920
1915
|
l.value[w].formItem = {
|
|
1921
1916
|
...l.value[w].formItem,
|
|
1922
1917
|
...$.formItem
|
|
@@ -1924,32 +1919,32 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1924
1919
|
...l.value[w].formItem.style,
|
|
1925
1920
|
...$.formItem.style
|
|
1926
1921
|
};
|
|
1927
|
-
},
|
|
1922
|
+
}, J = Fe(
|
|
1928
1923
|
() => Object.fromEntries(
|
|
1929
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) => {
|
|
1930
|
-
var b,
|
|
1931
|
-
const $ = typeof w[1].editor == "function" ? w[1].editor(
|
|
1932
|
-
return l.value.form.modalState === "edit" ? ((
|
|
1925
|
+
var b, y, S;
|
|
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" ? ((y = $ == null ? void 0 : $.ep) == null ? void 0 : y.editor) !== !1 : l.value.form.modalState === "add" ? ((S = $ == null ? void 0 : $.ap) == null ? void 0 : S.editor) !== !1 : !0;
|
|
1933
1928
|
}).map((w) => [w[0], w[1]])
|
|
1934
1929
|
)
|
|
1935
|
-
),
|
|
1930
|
+
), ee = Fe(
|
|
1936
1931
|
() => Object.fromEntries(
|
|
1937
1932
|
Object.entries(l.value).filter((w) => w[1].type != "hidden").filter((w) => w[1].type != "control").map(([w, $]) => {
|
|
1938
|
-
var
|
|
1939
|
-
const b = typeof $.editor == "function" ? $.editor(
|
|
1940
|
-
let
|
|
1941
|
-
return l.value.form.modalState === "add" ?
|
|
1933
|
+
var S, D, O;
|
|
1934
|
+
const b = typeof $.editor == "function" ? $.editor(c.value, (S = l.value.form) == null ? void 0 : S.modalState) : $.editor;
|
|
1935
|
+
let y;
|
|
1936
|
+
return l.value.form.modalState === "add" ? y = ((D = b == null ? void 0 : b.ap) == null ? void 0 : D.value) !== void 0 ? b.ap.value : (b == null ? void 0 : b.value) !== void 0 ? b.value : $.value : l.value.form.modalState === "edit" ? y = ((O = b == null ? void 0 : b.ep) == null ? void 0 : O.value) !== void 0 ? b.ep.value : (b == null ? void 0 : b.value) !== void 0 ? b.value : $.value : y = (b == null ? void 0 : b.value) !== void 0 ? b.value : $.value, [w, y];
|
|
1942
1937
|
})
|
|
1943
1938
|
)
|
|
1944
|
-
), ne =
|
|
1939
|
+
), ne = Fe(() => {
|
|
1945
1940
|
const w = /* @__PURE__ */ new Map();
|
|
1946
|
-
return Object.entries(
|
|
1941
|
+
return Object.entries(J.value).forEach(([$, b]) => {
|
|
1947
1942
|
if (b.groupName) {
|
|
1948
|
-
const
|
|
1949
|
-
w.has(
|
|
1950
|
-
groupName:
|
|
1943
|
+
const y = b.groupName;
|
|
1944
|
+
w.has(y) || w.set(y, {
|
|
1945
|
+
groupName: y,
|
|
1951
1946
|
items: []
|
|
1952
|
-
}), w.get(
|
|
1947
|
+
}), w.get(y).items.push({ key: $, item: b });
|
|
1953
1948
|
}
|
|
1954
1949
|
}), w.forEach(($) => {
|
|
1955
1950
|
$.tabPane = qe(
|
|
@@ -1998,21 +1993,21 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
1998
1993
|
sort: l.value.form.cancel.sort ?? 2,
|
|
1999
1994
|
originalOrder: 1
|
|
2000
1995
|
}
|
|
2001
|
-
]), pe =
|
|
2002
|
-
return
|
|
2003
|
-
submit:
|
|
2004
|
-
saveSubmit:
|
|
2005
|
-
reset:
|
|
2006
|
-
formData:
|
|
1996
|
+
]), pe = Fe(() => ue.value.filter((w) => !w.hidden).sort((w, $) => w.sort - $.sort || w.originalOrder - $.originalOrder));
|
|
1997
|
+
return s({
|
|
1998
|
+
submit: m,
|
|
1999
|
+
saveSubmit: m,
|
|
2000
|
+
reset: f,
|
|
2001
|
+
formData: c
|
|
2007
2002
|
}), (w, $) => {
|
|
2008
2003
|
var le, de, ye;
|
|
2009
|
-
const b = F("el-form-item"),
|
|
2010
|
-
return
|
|
2004
|
+
const b = F("el-form-item"), y = F("el-col"), S = F("el-tab-pane"), D = F("el-tabs"), O = F("el-form"), Y = F("el-button");
|
|
2005
|
+
return h(), z("div", oa, [
|
|
2011
2006
|
se(O, A(
|
|
2012
2007
|
{
|
|
2013
2008
|
ref_key: "gform",
|
|
2014
|
-
ref:
|
|
2015
|
-
model:
|
|
2009
|
+
ref: d,
|
|
2010
|
+
model: c.value,
|
|
2016
2011
|
style: {
|
|
2017
2012
|
width: "100%",
|
|
2018
2013
|
padding: 0,
|
|
@@ -2026,7 +2021,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
2026
2021
|
)
|
|
2027
2022
|
), {
|
|
2028
2023
|
default: _(() => [
|
|
2029
|
-
ne.value.length > 0 ?
|
|
2024
|
+
ne.value.length > 0 ? x(w.$slots, "default", { key: 0 }, () => [
|
|
2030
2025
|
se(D, A({
|
|
2031
2026
|
class: "demo-tabs",
|
|
2032
2027
|
modelValue: ne.value[0].groupName,
|
|
@@ -2034,50 +2029,50 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
2034
2029
|
style: { width: "100%" }
|
|
2035
2030
|
}, l.value.form.tabs), {
|
|
2036
2031
|
default: _(() => [
|
|
2037
|
-
(
|
|
2032
|
+
(h(!0), z(re, null, N(ne.value, (W) => (h(), E(S, A({
|
|
2038
2033
|
key: W.groupName,
|
|
2039
2034
|
label: W.groupName,
|
|
2040
2035
|
name: W.groupName,
|
|
2041
2036
|
style: { width: "100%", display: "flex", "flex-wrap": "wrap" }
|
|
2042
2037
|
}, { ref_for: !0 }, W.tabPane), {
|
|
2043
2038
|
default: _(() => [
|
|
2044
|
-
(
|
|
2045
|
-
key:
|
|
2039
|
+
(h(!0), z(re, null, N(W.items, (G, Ve) => (h(), E(y, A({ ref_for: !0 }, { ...l.value.form.cols, ...G == null ? void 0 : G.item.col }, {
|
|
2040
|
+
key: G.key,
|
|
2046
2041
|
style: { width: "100%" }
|
|
2047
2042
|
}), {
|
|
2048
2043
|
default: _(() => {
|
|
2049
2044
|
var ke, Ie;
|
|
2050
2045
|
return [
|
|
2051
2046
|
se(b, A({
|
|
2052
|
-
label:
|
|
2053
|
-
prop:
|
|
2054
|
-
rules: L(
|
|
2055
|
-
}, { ref_for: !0 }, { ...(ke = l.value) == null ? void 0 : ke.formItems, ...(Ie =
|
|
2047
|
+
label: G == null ? void 0 : G.item.label,
|
|
2048
|
+
prop: G.key,
|
|
2049
|
+
rules: L(G == null ? void 0 : G.item)
|
|
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%" } }), {
|
|
2056
2051
|
default: _(() => [
|
|
2057
|
-
|
|
2058
|
-
item:
|
|
2059
|
-
formInfo:
|
|
2052
|
+
x(w.$slots, "f-" + G.key, {
|
|
2053
|
+
item: G == null ? void 0 : G.item,
|
|
2054
|
+
formInfo: c.value,
|
|
2060
2055
|
model: l.value,
|
|
2061
|
-
form:
|
|
2056
|
+
form: c.value
|
|
2062
2057
|
}, () => [
|
|
2063
|
-
(
|
|
2064
|
-
modelValue:
|
|
2065
|
-
"onUpdate:modelValue": (V) =>
|
|
2066
|
-
item:
|
|
2067
|
-
ctrlKey:
|
|
2068
|
-
ctrlType: I(
|
|
2058
|
+
(h(), E(ht, {
|
|
2059
|
+
modelValue: c.value[G.key],
|
|
2060
|
+
"onUpdate:modelValue": (V) => c.value[G.key] = V,
|
|
2061
|
+
item: H(G),
|
|
2062
|
+
ctrlKey: G.key,
|
|
2063
|
+
ctrlType: I(G == null ? void 0 : G.item),
|
|
2069
2064
|
model: l.value,
|
|
2070
|
-
key: `${
|
|
2065
|
+
key: `${G.key}-${T.value}`,
|
|
2071
2066
|
class: "g-ctrl-container",
|
|
2072
2067
|
t: "f",
|
|
2073
|
-
formInfo:
|
|
2068
|
+
formInfo: c.value
|
|
2074
2069
|
}, ge({ _: 2 }, [
|
|
2075
|
-
N(w.$slots, (V,
|
|
2076
|
-
name:
|
|
2077
|
-
fn: _((
|
|
2078
|
-
|
|
2079
|
-
data:
|
|
2080
|
-
item:
|
|
2070
|
+
N(w.$slots, (V, M) => ({
|
|
2071
|
+
name: M,
|
|
2072
|
+
fn: _((j) => [
|
|
2073
|
+
x(w.$slots, M, {
|
|
2074
|
+
data: j,
|
|
2075
|
+
item: G.item,
|
|
2081
2076
|
model: l.value
|
|
2082
2077
|
}, void 0, !0)
|
|
2083
2078
|
])
|
|
@@ -2097,9 +2092,9 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
2097
2092
|
]),
|
|
2098
2093
|
_: 3
|
|
2099
2094
|
}, 16, ["modelValue"])
|
|
2100
|
-
], !0) :
|
|
2101
|
-
(
|
|
2102
|
-
key:
|
|
2095
|
+
], !0) : x(w.$slots, "default", { key: 1 }, () => [
|
|
2096
|
+
(h(!0), z(re, null, N(J.value, (W, G) => (h(), E(y, A({ ref_for: !0 }, { ...l.value.form.cols, ...W.col }, {
|
|
2097
|
+
key: G,
|
|
2103
2098
|
style: { width: "100%" }
|
|
2104
2099
|
}), {
|
|
2105
2100
|
default: _(() => {
|
|
@@ -2107,11 +2102,11 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
2107
2102
|
return [
|
|
2108
2103
|
se(b, A({
|
|
2109
2104
|
label: W.label,
|
|
2110
|
-
prop:
|
|
2105
|
+
prop: G,
|
|
2111
2106
|
rules: L(W)
|
|
2112
2107
|
}, { ref_for: !0 }, { ...(Ve = l.value) == null ? void 0 : Ve.formItems, ...W == null ? void 0 : W.formItem }, { style: { width: "100%" } }), {
|
|
2113
2108
|
label: _((ke) => [
|
|
2114
|
-
|
|
2109
|
+
x(w.$slots, `f-${G}-label`, {
|
|
2115
2110
|
data: ke,
|
|
2116
2111
|
item: W,
|
|
2117
2112
|
model: l.value
|
|
@@ -2120,28 +2115,28 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
2120
2115
|
], !0)
|
|
2121
2116
|
]),
|
|
2122
2117
|
default: _(() => [
|
|
2123
|
-
|
|
2118
|
+
x(w.$slots, "f-" + G, {
|
|
2124
2119
|
item: W,
|
|
2125
|
-
formInfo:
|
|
2120
|
+
formInfo: c.value,
|
|
2126
2121
|
model: l.value,
|
|
2127
|
-
form:
|
|
2122
|
+
form: c.value
|
|
2128
2123
|
}, () => [
|
|
2129
|
-
(
|
|
2130
|
-
modelValue:
|
|
2131
|
-
"onUpdate:modelValue": (ke) =>
|
|
2132
|
-
item:
|
|
2133
|
-
ctrlKey:
|
|
2124
|
+
(h(), E(ht, {
|
|
2125
|
+
modelValue: c.value[G],
|
|
2126
|
+
"onUpdate:modelValue": (ke) => c.value[G] = ke,
|
|
2127
|
+
item: H(W, !0),
|
|
2128
|
+
ctrlKey: G,
|
|
2134
2129
|
ctrlType: I(W),
|
|
2135
|
-
key: `${
|
|
2130
|
+
key: `${G}-${T.value}`,
|
|
2136
2131
|
model: l.value,
|
|
2137
2132
|
class: "g-ctrl-container",
|
|
2138
2133
|
t: "f",
|
|
2139
|
-
formInfo:
|
|
2134
|
+
formInfo: c.value
|
|
2140
2135
|
}, ge({ _: 2 }, [
|
|
2141
2136
|
N(w.$slots, (ke, Ie) => ({
|
|
2142
2137
|
name: Ie,
|
|
2143
2138
|
fn: _((V) => [
|
|
2144
|
-
|
|
2139
|
+
x(w.$slots, Ie, {
|
|
2145
2140
|
data: V,
|
|
2146
2141
|
item: W,
|
|
2147
2142
|
model: l.value
|
|
@@ -2161,21 +2156,21 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
2161
2156
|
]),
|
|
2162
2157
|
_: 3
|
|
2163
2158
|
}, 16, ["model"]),
|
|
2164
|
-
(ye = (de = (le = l.value) == null ? void 0 : le.form) == null ? void 0 : de.footer) != null && ye.hidden ? be("", !0) :
|
|
2165
|
-
|
|
2159
|
+
(ye = (de = (le = l.value) == null ? void 0 : le.form) == null ? void 0 : de.footer) != null && ye.hidden ? be("", !0) : x(w.$slots, "f-footer", { key: 0 }, () => [
|
|
2160
|
+
Z("div", {
|
|
2166
2161
|
style: Ye({ justifyContent: k(l.value.form.footer.align), ...l.value.form.footer.style })
|
|
2167
2162
|
}, [
|
|
2168
|
-
|
|
2169
|
-
(
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
var
|
|
2163
|
+
x(w.$slots, "f-footer-left", {}, void 0, !0),
|
|
2164
|
+
(h(!0), z(re, null, N(pe.value, (W) => (h(), z(re, null, [
|
|
2165
|
+
x(w.$slots, W.name + "-left", {}, void 0, !0),
|
|
2166
|
+
x(w.$slots, W.name, {}, () => {
|
|
2167
|
+
var G;
|
|
2173
2168
|
return [
|
|
2174
|
-
(
|
|
2169
|
+
(G = W == null ? void 0 : W.info) != null && G.hidden ? be("", !0) : (h(), E(Y, A({
|
|
2175
2170
|
key: 0,
|
|
2176
2171
|
ref_for: !0
|
|
2177
2172
|
}, W.info, {
|
|
2178
|
-
onClick: vt((Ve) => W.click(
|
|
2173
|
+
onClick: vt((Ve) => W.click(c.value, l.value, W.flag), ["stop"])
|
|
2179
2174
|
}), {
|
|
2180
2175
|
default: _(() => [
|
|
2181
2176
|
Ae(Me(W == null ? void 0 : W.label), 1)
|
|
@@ -2184,9 +2179,9 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
2184
2179
|
}, 1040, ["onClick"]))
|
|
2185
2180
|
];
|
|
2186
2181
|
}, !0),
|
|
2187
|
-
|
|
2182
|
+
x(w.$slots, W.name + "-right", {}, void 0, !0)
|
|
2188
2183
|
], 64))), 256)),
|
|
2189
|
-
|
|
2184
|
+
x(w.$slots, "f-footer-right", {}, void 0, !0)
|
|
2190
2185
|
], 4)
|
|
2191
2186
|
], !0)
|
|
2192
2187
|
]);
|
|
@@ -2239,115 +2234,115 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
2239
2234
|
"maximize",
|
|
2240
2235
|
"restore"
|
|
2241
2236
|
],
|
|
2242
|
-
setup(r, { expose:
|
|
2243
|
-
const l = r, n = It(),
|
|
2244
|
-
const
|
|
2237
|
+
setup(r, { expose: s, emit: e }) {
|
|
2238
|
+
const l = r, n = It(), d = e, t = ae(l.fullscreen), c = Fe(() => l.type === "drawer" ? "el-drawer" : "el-dialog"), T = Fe(() => {
|
|
2239
|
+
const ee = {
|
|
2245
2240
|
modal: l.modal,
|
|
2246
2241
|
closeOnClickModal: l.type !== "dialog",
|
|
2247
2242
|
...n
|
|
2248
2243
|
};
|
|
2249
2244
|
return l.type === "dialog" ? {
|
|
2250
|
-
...
|
|
2245
|
+
...ee,
|
|
2251
2246
|
width: l.width,
|
|
2252
2247
|
top: l.top,
|
|
2253
2248
|
fullscreen: l.fullscreen
|
|
2254
2249
|
} : {
|
|
2255
|
-
...
|
|
2250
|
+
...ee,
|
|
2256
2251
|
direction: l.direction,
|
|
2257
|
-
size:
|
|
2252
|
+
size: f.value ? "100%" : l.size
|
|
2258
2253
|
};
|
|
2259
|
-
}), v =
|
|
2254
|
+
}), v = Fe({
|
|
2260
2255
|
get() {
|
|
2261
2256
|
return l.modelValue;
|
|
2262
2257
|
},
|
|
2263
|
-
set(
|
|
2264
|
-
|
|
2258
|
+
set(ee) {
|
|
2259
|
+
d("update:modelValue", ee);
|
|
2265
2260
|
}
|
|
2266
|
-
}),
|
|
2261
|
+
}), m = ae(null), f = ae(t.value), o = ae(!1);
|
|
2267
2262
|
function p() {
|
|
2268
|
-
|
|
2263
|
+
f.value = !1, o.value = !1, d("open");
|
|
2269
2264
|
}
|
|
2270
2265
|
function L() {
|
|
2271
|
-
|
|
2266
|
+
d("opened");
|
|
2272
2267
|
}
|
|
2273
|
-
function
|
|
2274
|
-
|
|
2268
|
+
function H() {
|
|
2269
|
+
d("close");
|
|
2275
2270
|
}
|
|
2276
2271
|
function I() {
|
|
2277
|
-
|
|
2272
|
+
d("closed");
|
|
2278
2273
|
}
|
|
2279
2274
|
function k() {
|
|
2280
|
-
|
|
2275
|
+
f.value = !f.value, f.value === !0 ? (t.value = !0, d("maximize")) : (t.value = !1, d("restore"));
|
|
2281
2276
|
}
|
|
2282
|
-
function
|
|
2283
|
-
|
|
2277
|
+
function X() {
|
|
2278
|
+
o.value = !0, d("minimize");
|
|
2284
2279
|
}
|
|
2285
|
-
function
|
|
2286
|
-
|
|
2280
|
+
function J() {
|
|
2281
|
+
d("minimize"), o.value = !1;
|
|
2287
2282
|
}
|
|
2288
|
-
return
|
|
2289
|
-
handleClose: () =>
|
|
2290
|
-
}), (
|
|
2291
|
-
|
|
2283
|
+
return s({
|
|
2284
|
+
handleClose: () => m.value.handleClose()
|
|
2285
|
+
}), (ee, ne) => (h(), z("div", sa, [
|
|
2286
|
+
o.value ? (h(), z("div", {
|
|
2292
2287
|
key: 0,
|
|
2293
2288
|
class: "minimize-ball",
|
|
2294
|
-
onClick:
|
|
2295
|
-
}, Me(r.title), 1)) : (
|
|
2296
|
-
(
|
|
2289
|
+
onClick: J
|
|
2290
|
+
}, Me(r.title), 1)) : (h(), z("div", ia, [
|
|
2291
|
+
(h(), E(Pe(c.value), A({
|
|
2297
2292
|
ref_key: "dialogExtend",
|
|
2298
|
-
ref:
|
|
2293
|
+
ref: m,
|
|
2299
2294
|
modelValue: v.value,
|
|
2300
2295
|
"onUpdate:modelValue": ne[1] || (ne[1] = (ue) => v.value = ue),
|
|
2301
2296
|
onOpen: p,
|
|
2302
2297
|
onOpened: L,
|
|
2303
2298
|
"lock-scroll": !0,
|
|
2304
|
-
onClose:
|
|
2299
|
+
onClose: H,
|
|
2305
2300
|
onClosed: I,
|
|
2306
2301
|
draggable: ""
|
|
2307
|
-
},
|
|
2302
|
+
}, T.value, {
|
|
2308
2303
|
fullscreen: t.value,
|
|
2309
2304
|
"show-close": !1
|
|
2310
2305
|
}), ge({
|
|
2311
2306
|
header: _(({ titleClass: ue, closeIconClass: pe }) => [
|
|
2312
|
-
|
|
2307
|
+
x(ee.$slots, "header", {
|
|
2313
2308
|
titleClass: ue,
|
|
2314
2309
|
closeIconClass: pe
|
|
2315
2310
|
}, () => [
|
|
2316
|
-
|
|
2311
|
+
Z("div", {
|
|
2317
2312
|
class: "custom-header",
|
|
2318
2313
|
style: Ye(l.headerStyle)
|
|
2319
2314
|
}, [
|
|
2320
|
-
|
|
2321
|
-
|
|
2315
|
+
x(ee.$slots, "title", {}, () => [
|
|
2316
|
+
Z("span", da, Me(r.title), 1)
|
|
2322
2317
|
], !0),
|
|
2323
|
-
|
|
2324
|
-
r.minimize ? (
|
|
2318
|
+
Z("div", null, [
|
|
2319
|
+
r.minimize ? (h(), E(U(Yt), {
|
|
2325
2320
|
key: 0,
|
|
2326
2321
|
class: "btn-icon",
|
|
2327
|
-
onClick: vt(
|
|
2322
|
+
onClick: vt(X, ["stop"])
|
|
2328
2323
|
}, {
|
|
2329
2324
|
default: _(() => [
|
|
2330
|
-
(
|
|
2325
|
+
(h(), E(Pe(r.minIcon)))
|
|
2331
2326
|
]),
|
|
2332
2327
|
_: 1
|
|
2333
2328
|
})) : be("", !0),
|
|
2334
|
-
r.maximize ? (
|
|
2329
|
+
r.maximize ? (h(), E(U(Yt), {
|
|
2335
2330
|
key: 1,
|
|
2336
2331
|
class: "btn-icon",
|
|
2337
2332
|
onClick: vt(k, ["stop"])
|
|
2338
2333
|
}, {
|
|
2339
2334
|
default: _(() => [
|
|
2340
|
-
(
|
|
2335
|
+
(h(), E(Pe(f.value ? r.resizeIcon : r.maxIcon)))
|
|
2341
2336
|
]),
|
|
2342
2337
|
_: 1
|
|
2343
2338
|
})) : be("", !0),
|
|
2344
|
-
l.showClose ? (
|
|
2339
|
+
l.showClose ? (h(), E(U(Yt), {
|
|
2345
2340
|
key: 2,
|
|
2346
2341
|
class: "btn-icon",
|
|
2347
|
-
onClick: ne[0] || (ne[0] = vt((Se) =>
|
|
2342
|
+
onClick: ne[0] || (ne[0] = vt((Se) => m.value.handleClose(), ["stop"]))
|
|
2348
2343
|
}, {
|
|
2349
2344
|
default: _(() => [
|
|
2350
|
-
(
|
|
2345
|
+
(h(), E(Pe(r.closeIcon)))
|
|
2351
2346
|
]),
|
|
2352
2347
|
_: 1
|
|
2353
2348
|
})) : be("", !0)
|
|
@@ -2356,21 +2351,21 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
2356
2351
|
], !0)
|
|
2357
2352
|
]),
|
|
2358
2353
|
default: _(() => [
|
|
2359
|
-
|
|
2354
|
+
x(ee.$slots, "default", {}, void 0, !0)
|
|
2360
2355
|
]),
|
|
2361
2356
|
_: 2
|
|
2362
2357
|
}, [
|
|
2363
|
-
|
|
2358
|
+
ee.$slots.footer ? {
|
|
2364
2359
|
name: "footer",
|
|
2365
2360
|
fn: _(() => [
|
|
2366
|
-
|
|
2361
|
+
x(ee.$slots, "footer", {}, void 0, !0)
|
|
2367
2362
|
]),
|
|
2368
2363
|
key: "0"
|
|
2369
2364
|
} : void 0,
|
|
2370
2365
|
l.type === "drawer" ? {
|
|
2371
2366
|
name: "trigger",
|
|
2372
2367
|
fn: _(() => [
|
|
2373
|
-
|
|
2368
|
+
x(ee.$slots, "trigger", {}, void 0, !0)
|
|
2374
2369
|
]),
|
|
2375
2370
|
key: "1"
|
|
2376
2371
|
} : void 0
|
|
@@ -2378,7 +2373,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
2378
2373
|
]))
|
|
2379
2374
|
]));
|
|
2380
2375
|
}
|
|
2381
|
-
}), jt = /* @__PURE__ */ et(ca, [["__scopeId", "data-v-
|
|
2376
|
+
}), jt = /* @__PURE__ */ et(ca, [["__scopeId", "data-v-99d6bb1e"]]), fa = { style: { padding: "15px", "box-sizing": "border-box" } }, va = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, pa = { style: { display: "flex", flex: "1", "align-items": "center" } }, ma = {
|
|
2382
2377
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2383
2378
|
id: "excelSortEl"
|
|
2384
2379
|
}, ha = ["textContent"], ya = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, ga = {
|
|
@@ -2388,62 +2383,62 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
2388
2383
|
commitText: String
|
|
2389
2384
|
},
|
|
2390
2385
|
emits: ["excel"],
|
|
2391
|
-
setup(r, { emit:
|
|
2392
|
-
const e = r, l =
|
|
2393
|
-
n.value.forEach((
|
|
2394
|
-
|
|
2386
|
+
setup(r, { emit: s }) {
|
|
2387
|
+
const e = r, l = s, n = ae(e.items), d = () => {
|
|
2388
|
+
n.value.forEach((T) => {
|
|
2389
|
+
T.value = !0;
|
|
2395
2390
|
});
|
|
2396
2391
|
}, t = () => {
|
|
2397
|
-
n.value.forEach((
|
|
2398
|
-
|
|
2392
|
+
n.value.forEach((T) => {
|
|
2393
|
+
T.value = !1;
|
|
2399
2394
|
});
|
|
2400
|
-
},
|
|
2401
|
-
l("excel", n.value, (
|
|
2402
|
-
if (!
|
|
2395
|
+
}, c = () => {
|
|
2396
|
+
l("excel", n.value, (T, v = "excel.xls") => {
|
|
2397
|
+
if (!T) {
|
|
2403
2398
|
console.error("下载链接无效");
|
|
2404
2399
|
return;
|
|
2405
2400
|
}
|
|
2406
2401
|
try {
|
|
2407
|
-
const
|
|
2408
|
-
|
|
2409
|
-
} catch (
|
|
2410
|
-
console.error("下载文件时出现错误:",
|
|
2402
|
+
const m = document.createElement("a");
|
|
2403
|
+
m.href = T, m.download = v, m.style.display = "none", document.body.appendChild(m), m.click(), document.body.removeChild(m);
|
|
2404
|
+
} catch (m) {
|
|
2405
|
+
console.error("下载文件时出现错误:", m);
|
|
2411
2406
|
}
|
|
2412
2407
|
});
|
|
2413
2408
|
};
|
|
2414
2409
|
return yt(() => {
|
|
2415
|
-
const
|
|
2410
|
+
const T = new rl(document.getElementById("excelSortEl"), {
|
|
2416
2411
|
animation: 150,
|
|
2417
2412
|
onEnd: () => {
|
|
2418
|
-
|
|
2413
|
+
T.toArray();
|
|
2419
2414
|
}
|
|
2420
|
-
}), v =
|
|
2415
|
+
}), v = T;
|
|
2421
2416
|
_l(() => {
|
|
2422
2417
|
v && v.destroy();
|
|
2423
2418
|
});
|
|
2424
|
-
}), (
|
|
2425
|
-
const
|
|
2426
|
-
return
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
onClick:
|
|
2419
|
+
}), (T, v) => {
|
|
2420
|
+
const m = F("el-divider"), f = F("el-icon"), o = F("el-text"), p = F("el-checkbox"), L = F("el-button");
|
|
2421
|
+
return h(), z("div", fa, [
|
|
2422
|
+
Z("div", null, [
|
|
2423
|
+
Z("div", va, [
|
|
2424
|
+
Z("div", pa, [
|
|
2425
|
+
Z("a", {
|
|
2426
|
+
onClick: d,
|
|
2432
2427
|
style: { cursor: "pointer" }
|
|
2433
2428
|
}, "全选"),
|
|
2434
|
-
se(
|
|
2435
|
-
|
|
2429
|
+
se(m, { direction: "vertical" }),
|
|
2430
|
+
Z("a", {
|
|
2436
2431
|
onClick: t,
|
|
2437
2432
|
style: { cursor: "pointer" }
|
|
2438
2433
|
}, "全不选")
|
|
2439
2434
|
]),
|
|
2440
|
-
|
|
2441
|
-
se(
|
|
2435
|
+
Z("div", null, [
|
|
2436
|
+
se(o, {
|
|
2442
2437
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
2443
2438
|
type: "warning"
|
|
2444
2439
|
}, {
|
|
2445
2440
|
default: _(() => [
|
|
2446
|
-
se(
|
|
2441
|
+
se(f, { size: "16" }, {
|
|
2447
2442
|
default: _(() => [
|
|
2448
2443
|
se(U(ll))
|
|
2449
2444
|
]),
|
|
@@ -2455,20 +2450,20 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
2455
2450
|
})
|
|
2456
2451
|
])
|
|
2457
2452
|
]),
|
|
2458
|
-
v[1] || (v[1] =
|
|
2459
|
-
|
|
2460
|
-
(
|
|
2453
|
+
v[1] || (v[1] = Z("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2454
|
+
Z("div", ma, [
|
|
2455
|
+
(h(!0), z(re, null, N(n.value, (H) => (h(), E(p, {
|
|
2461
2456
|
class: "check-box-hover",
|
|
2462
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" },
|
|
2463
|
-
"data-id":
|
|
2464
|
-
modelValue:
|
|
2465
|
-
"onUpdate:modelValue": (I) =>
|
|
2466
|
-
key:
|
|
2467
|
-
title:
|
|
2458
|
+
"data-id": H.key,
|
|
2459
|
+
modelValue: H.value,
|
|
2460
|
+
"onUpdate:modelValue": (I) => H.value = I,
|
|
2461
|
+
key: H.key,
|
|
2462
|
+
title: H.label
|
|
2468
2463
|
}, {
|
|
2469
2464
|
default: _(() => [
|
|
2470
|
-
|
|
2471
|
-
textContent: Me(
|
|
2465
|
+
Z("span", {
|
|
2466
|
+
textContent: Me(H.label),
|
|
2472
2467
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2473
2468
|
}, null, 8, ha)
|
|
2474
2469
|
]),
|
|
@@ -2476,12 +2471,12 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, u) => {
|
|
|
2476
2471
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2477
2472
|
])
|
|
2478
2473
|
]),
|
|
2479
|
-
|
|
2474
|
+
Z("div", ya, [
|
|
2480
2475
|
se(L, {
|
|
2481
2476
|
type: "primary",
|
|
2482
|
-
onClick:
|
|
2477
|
+
onClick: c,
|
|
2483
2478
|
icon: U(al),
|
|
2484
|
-
disabled: n.value.filter((
|
|
2479
|
+
disabled: n.value.filter((H) => H.value).length < 1
|
|
2485
2480
|
}, {
|
|
2486
2481
|
default: _(() => [
|
|
2487
2482
|
Ae(Me(e.commitText), 1)
|
|
@@ -2503,42 +2498,42 @@ $e.version(wa).stores({
|
|
|
2503
2498
|
// 记录表格列显示状态
|
|
2504
2499
|
tableColsState: "++id,[page+key], page, key"
|
|
2505
2500
|
});
|
|
2506
|
-
const ct = (r,
|
|
2501
|
+
const ct = (r, s) => {
|
|
2507
2502
|
if (!r || typeof r != "string")
|
|
2508
2503
|
throw new Error("page参数必须是非空字符串");
|
|
2509
2504
|
};
|
|
2510
|
-
async function Tt(r,
|
|
2505
|
+
async function Tt(r, s, e) {
|
|
2511
2506
|
try {
|
|
2512
2507
|
const l = await $e.tableColsState.where({ page: r }).first();
|
|
2513
|
-
l ? e === "add" ? l.keys.includes(
|
|
2508
|
+
l ? e === "add" ? l.keys.includes(s) || (l.keys.push(s), await $e.tableColsState.put(l)) : e === "del" ? (l.keys = l.keys.filter((n) => n !== s), await $e.tableColsState.put(l)) : e === "delAll" ? (l.keys = s, await $e.tableColsState.put(l)) : e === "selectAll" && await $e.tableColsState.where({ page: r }).delete() : e === "add" ? await $e.tableColsState.add({ page: r, keys: [s] }) : e === "delAll" && await $e.tableColsState.add({ page: r, keys: s });
|
|
2514
2509
|
} catch (l) {
|
|
2515
|
-
throw console.error(`处理表格列状态时出错 (page: ${r}, key: ${
|
|
2510
|
+
throw console.error(`处理表格列状态时出错 (page: ${r}, key: ${s}, state: ${e}):`, l), l;
|
|
2516
2511
|
}
|
|
2517
2512
|
}
|
|
2518
|
-
async function ka(r,
|
|
2513
|
+
async function ka(r, s, e) {
|
|
2519
2514
|
ct(r);
|
|
2520
2515
|
try {
|
|
2521
|
-
const l = await $e.tableWidths.where({ page: r, key:
|
|
2522
|
-
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: s }).first();
|
|
2517
|
+
return l ? (await $e.tableWidths.put({ ...l, width: e }), "update success") : (await $e.tableWidths.add({ page: r, key: s, width: e }), "add success");
|
|
2523
2518
|
} catch (l) {
|
|
2524
|
-
throw console.error(`保存表格项设置信息时出错 (page: ${r}, key: ${
|
|
2519
|
+
throw console.error(`保存表格项设置信息时出错 (page: ${r}, key: ${s}):`, l), l;
|
|
2525
2520
|
}
|
|
2526
2521
|
}
|
|
2527
2522
|
async function _a(r) {
|
|
2528
2523
|
ct(r);
|
|
2529
2524
|
try {
|
|
2530
2525
|
return await $e.tableWidths.where({ page: r }).toArray();
|
|
2531
|
-
} catch (
|
|
2532
|
-
throw console.error(`获取表格项设置信息时出错 (page: ${r}):`,
|
|
2526
|
+
} catch (s) {
|
|
2527
|
+
throw console.error(`获取表格项设置信息时出错 (page: ${r}):`, s), s;
|
|
2533
2528
|
}
|
|
2534
2529
|
}
|
|
2535
2530
|
async function Ca(r) {
|
|
2536
2531
|
ct(r);
|
|
2537
2532
|
try {
|
|
2538
|
-
const
|
|
2539
|
-
return !
|
|
2540
|
-
} catch (
|
|
2541
|
-
throw console.error(`获取表格列状态时出错 (page: ${r}):`,
|
|
2533
|
+
const s = await $e.tableColsState.where({ page: r }).toArray();
|
|
2534
|
+
return !s || s.length === 0 ? [] : s[0].keys;
|
|
2535
|
+
} catch (s) {
|
|
2536
|
+
throw console.error(`获取表格列状态时出错 (page: ${r}):`, s), s;
|
|
2542
2537
|
}
|
|
2543
2538
|
}
|
|
2544
2539
|
async function xa(r) {
|
|
@@ -2552,15 +2547,15 @@ async function xa(r) {
|
|
|
2552
2547
|
$e.tableColsState.where({ page: r }).delete()
|
|
2553
2548
|
]);
|
|
2554
2549
|
});
|
|
2555
|
-
} catch (
|
|
2556
|
-
throw console.error(`删除页面"${r}"的表格设置信息时出错:`,
|
|
2550
|
+
} catch (s) {
|
|
2551
|
+
throw console.error(`删除页面"${r}"的表格设置信息时出错:`, s), s;
|
|
2557
2552
|
}
|
|
2558
2553
|
}
|
|
2559
|
-
async function Ma({ page: r, size:
|
|
2554
|
+
async function Ma({ page: r, size: s }) {
|
|
2560
2555
|
ct(r);
|
|
2561
2556
|
try {
|
|
2562
2557
|
const e = await $e.pageInfo.where({ page: r }).first();
|
|
2563
|
-
return e ? (await $e.pageInfo.put({ ...e, size:
|
|
2558
|
+
return e ? (await $e.pageInfo.put({ ...e, size: s }), "update success") : (await $e.pageInfo.add({ page: r, size: s }), "add success");
|
|
2564
2559
|
} catch (e) {
|
|
2565
2560
|
throw console.error(`保存分页条数时出错 (page: ${r}):`, e), e;
|
|
2566
2561
|
}
|
|
@@ -2568,17 +2563,17 @@ async function Ma({ page: r, size: u }) {
|
|
|
2568
2563
|
async function Sa(r) {
|
|
2569
2564
|
ct(r);
|
|
2570
2565
|
try {
|
|
2571
|
-
const
|
|
2572
|
-
return
|
|
2573
|
-
} catch (
|
|
2574
|
-
throw console.error(`获取分页条数时出错 (page: ${r}):`,
|
|
2566
|
+
const s = await $e.pageInfo.where({ page: r }).first();
|
|
2567
|
+
return s == null ? void 0 : s.size;
|
|
2568
|
+
} catch (s) {
|
|
2569
|
+
throw console.error(`获取分页条数时出错 (page: ${r}):`, s), s;
|
|
2575
2570
|
}
|
|
2576
2571
|
}
|
|
2577
|
-
async function Ta(r,
|
|
2572
|
+
async function Ta(r, s) {
|
|
2578
2573
|
ct(r);
|
|
2579
2574
|
try {
|
|
2580
2575
|
const e = await $e.sorts.where({ page: r }).first();
|
|
2581
|
-
return e ? (await $e.sorts.put({ ...e, keys:
|
|
2576
|
+
return e ? (await $e.sorts.put({ ...e, keys: s }), "update success") : (await $e.sorts.add({ page: r, keys: s }), "add success");
|
|
2582
2577
|
} catch (e) {
|
|
2583
2578
|
throw console.error(`保存表格字段顺序时出错 (page: ${r}):`, e), e;
|
|
2584
2579
|
}
|
|
@@ -2586,10 +2581,10 @@ async function Ta(r, u) {
|
|
|
2586
2581
|
async function Va(r) {
|
|
2587
2582
|
ct(r);
|
|
2588
2583
|
try {
|
|
2589
|
-
const
|
|
2590
|
-
return (
|
|
2591
|
-
} catch (
|
|
2592
|
-
throw console.error(`获取表格字段顺序时出错 (page: ${r}):`,
|
|
2584
|
+
const s = await $e.sorts.where({ page: r }).first();
|
|
2585
|
+
return (s == null ? void 0 : s.keys) || [];
|
|
2586
|
+
} catch (s) {
|
|
2587
|
+
throw console.error(`获取表格字段顺序时出错 (page: ${r}):`, s), s;
|
|
2593
2588
|
}
|
|
2594
2589
|
}
|
|
2595
2590
|
const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { style: { display: "flex", "align-items": "center", height: "30px" } }, Oa = {
|
|
@@ -2610,20 +2605,20 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2610
2605
|
modelModifiers: {}
|
|
2611
2606
|
}),
|
|
2612
2607
|
emits: /* @__PURE__ */ at(["setting-drag-end", "select-all"], ["update:modelValue"]),
|
|
2613
|
-
setup(r, { emit:
|
|
2614
|
-
const e = r, l =
|
|
2608
|
+
setup(r, { emit: s }) {
|
|
2609
|
+
const e = r, l = s;
|
|
2615
2610
|
let n = ae([]);
|
|
2616
|
-
const
|
|
2617
|
-
|
|
2618
|
-
},
|
|
2619
|
-
const
|
|
2620
|
-
if (
|
|
2621
|
-
let
|
|
2611
|
+
const d = lt(r, "modelValue"), t = async (f, o) => {
|
|
2612
|
+
f ? (d.value[o].showCol = !0, await Tt(e.tuid, o, "del")) : (d.value[o].showCol = !1, await Tt(e.tuid, o, "add"));
|
|
2613
|
+
}, c = () => {
|
|
2614
|
+
const f = document.getElementById("cols");
|
|
2615
|
+
if (f) {
|
|
2616
|
+
let o = rl.create(f, {
|
|
2622
2617
|
animation: 150,
|
|
2623
2618
|
filter: ".filtered",
|
|
2624
2619
|
sort: !0,
|
|
2625
2620
|
onEnd: async () => {
|
|
2626
|
-
let p =
|
|
2621
|
+
let p = o.toArray();
|
|
2627
2622
|
try {
|
|
2628
2623
|
Ta(e.tuid, p).then((L) => {
|
|
2629
2624
|
l("setting-drag-end");
|
|
@@ -2637,43 +2632,43 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2637
2632
|
}
|
|
2638
2633
|
});
|
|
2639
2634
|
}
|
|
2640
|
-
},
|
|
2635
|
+
}, T = async () => {
|
|
2641
2636
|
try {
|
|
2642
|
-
n.value.forEach((
|
|
2643
|
-
|
|
2644
|
-
}), Tt(e.tuid, [], "selectAll").then((
|
|
2637
|
+
n.value.forEach((f) => {
|
|
2638
|
+
f.showCol = !0;
|
|
2639
|
+
}), Tt(e.tuid, [], "selectAll").then((f) => {
|
|
2645
2640
|
l("select-all");
|
|
2646
2641
|
});
|
|
2647
|
-
} catch (
|
|
2648
|
-
console.error("全选列保存信息时出错:",
|
|
2642
|
+
} catch (f) {
|
|
2643
|
+
console.error("全选列保存信息时出错:", f), ut({
|
|
2649
2644
|
type: "error",
|
|
2650
2645
|
message: "全选列保存信息失败!"
|
|
2651
2646
|
});
|
|
2652
2647
|
}
|
|
2653
2648
|
}, v = async () => {
|
|
2654
2649
|
try {
|
|
2655
|
-
let
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
}), Tt(e.tuid,
|
|
2650
|
+
let f = n.value.filter((o) => !o.alwaysShow && o.value != "control" && o.value != "hidden");
|
|
2651
|
+
f.forEach((o) => {
|
|
2652
|
+
o.showCol = !1;
|
|
2653
|
+
}), Tt(e.tuid, f.map((o) => o.value), "delAll").then((o) => {
|
|
2659
2654
|
l("select-all");
|
|
2660
2655
|
});
|
|
2661
|
-
} catch (
|
|
2662
|
-
console.error("清除列保存信息时出错:",
|
|
2656
|
+
} catch (f) {
|
|
2657
|
+
console.error("清除列保存信息时出错:", f), ut({
|
|
2663
2658
|
type: "error",
|
|
2664
2659
|
message: "清除列保存信息失败!"
|
|
2665
2660
|
});
|
|
2666
2661
|
}
|
|
2667
|
-
},
|
|
2662
|
+
}, m = () => {
|
|
2668
2663
|
Wt.confirm("确定要复位吗?", "提示", {
|
|
2669
2664
|
confirmButtonText: "确定",
|
|
2670
2665
|
cancelButtonText: "取消",
|
|
2671
2666
|
type: "warning"
|
|
2672
2667
|
}).then(() => {
|
|
2673
|
-
xa(e.tuid).then((
|
|
2668
|
+
xa(e.tuid).then((f) => {
|
|
2674
2669
|
window.location.reload();
|
|
2675
|
-
}).catch((
|
|
2676
|
-
console.error("复位操作出错:",
|
|
2670
|
+
}).catch((f) => {
|
|
2671
|
+
console.error("复位操作出错:", f), ut({
|
|
2677
2672
|
type: "info",
|
|
2678
2673
|
message: "复位失败!"
|
|
2679
2674
|
});
|
|
@@ -2681,26 +2676,26 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2681
2676
|
});
|
|
2682
2677
|
};
|
|
2683
2678
|
return yt(async () => {
|
|
2684
|
-
n.value = Object.entries(
|
|
2685
|
-
label:
|
|
2686
|
-
value:
|
|
2687
|
-
alwaysShow:
|
|
2688
|
-
showCol:
|
|
2689
|
-
sort:
|
|
2690
|
-
width:
|
|
2691
|
-
})).sort((
|
|
2692
|
-
}), (
|
|
2693
|
-
const p = F("el-divider"), L = F("el-icon"),
|
|
2694
|
-
return
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2679
|
+
n.value = Object.entries(d.value).filter(([, f]) => f.visible !== !1).filter(([, f]) => !["selection", "index", "expand", "control"].includes(f.type)).filter(([, f]) => f.type != "hidden").map(([f, o]) => ({
|
|
2680
|
+
label: o.label,
|
|
2681
|
+
value: f,
|
|
2682
|
+
alwaysShow: o.alwaysShow,
|
|
2683
|
+
showCol: o.showCol !== !1,
|
|
2684
|
+
sort: o.sort || 0,
|
|
2685
|
+
width: o == null ? void 0 : o.width
|
|
2686
|
+
})).sort((f, o) => f.sort - o.sort), c();
|
|
2687
|
+
}), (f, o) => {
|
|
2688
|
+
const p = F("el-divider"), L = F("el-icon"), H = F("el-text"), I = F("el-checkbox");
|
|
2689
|
+
return h(), z("div", Ea, [
|
|
2690
|
+
Z("div", Da, [
|
|
2691
|
+
Z("div", Oa, [
|
|
2692
|
+
Z("a", { onClick: T }, "全选"),
|
|
2698
2693
|
se(p, { direction: "vertical" }),
|
|
2699
|
-
|
|
2694
|
+
Z("a", { onClick: v }, "全不选"),
|
|
2700
2695
|
se(p, { direction: "vertical" }),
|
|
2701
|
-
|
|
2696
|
+
Z("a", { onClick: m }, "复位")
|
|
2702
2697
|
]),
|
|
2703
|
-
se(
|
|
2698
|
+
se(H, { type: "warning" }, {
|
|
2704
2699
|
default: _(() => [
|
|
2705
2700
|
se(L, { size: "16" }, {
|
|
2706
2701
|
default: _(() => [
|
|
@@ -2708,19 +2703,19 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2708
2703
|
]),
|
|
2709
2704
|
_: 1
|
|
2710
2705
|
}),
|
|
2711
|
-
|
|
2706
|
+
o[0] || (o[0] = Ae(" 拖动表格列标题可以改变表格列显示顺序 !", -1))
|
|
2712
2707
|
]),
|
|
2713
2708
|
_: 1
|
|
2714
2709
|
})
|
|
2715
2710
|
]),
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
(
|
|
2711
|
+
Z("div", null, [
|
|
2712
|
+
Z("div", Ia, [
|
|
2713
|
+
(h(!0), z(re, null, N(U(n), (k) => (h(), E(I, {
|
|
2719
2714
|
modelValue: k.showCol,
|
|
2720
|
-
"onUpdate:modelValue": (
|
|
2715
|
+
"onUpdate:modelValue": (X) => k.showCol = X,
|
|
2721
2716
|
"data-id": k.value,
|
|
2722
2717
|
class: Qt(["check-box-hover", k.value == "control" ? "filtered" : ""]),
|
|
2723
|
-
onChange: (
|
|
2718
|
+
onChange: (X) => t(X, k.value),
|
|
2724
2719
|
style: { width: "125px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "2px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
2725
2720
|
value: k.value,
|
|
2726
2721
|
title: k.label,
|
|
@@ -2728,7 +2723,7 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2728
2723
|
key: k.value
|
|
2729
2724
|
}, {
|
|
2730
2725
|
default: _(() => [
|
|
2731
|
-
|
|
2726
|
+
Z("span", {
|
|
2732
2727
|
textContent: Me(k.label),
|
|
2733
2728
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2734
2729
|
}, null, 8, qa)
|
|
@@ -2753,16 +2748,16 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2753
2748
|
}
|
|
2754
2749
|
},
|
|
2755
2750
|
setup(r) {
|
|
2756
|
-
const
|
|
2757
|
-
|
|
2751
|
+
const s = r, e = () => {
|
|
2752
|
+
s.content ? (navigator.clipboard.writeText(s.content), ut.success("复制成功")) : ut.warning("没有内容可复制");
|
|
2758
2753
|
};
|
|
2759
|
-
return (l, n) => (
|
|
2754
|
+
return (l, n) => (h(), z("div", {
|
|
2760
2755
|
class: "g-cell-toopTip",
|
|
2761
|
-
style: Ye({ width:
|
|
2756
|
+
style: Ye({ width: s.column.width + "px" })
|
|
2762
2757
|
}, [
|
|
2763
|
-
|
|
2764
|
-
n[0] || (n[0] =
|
|
2765
|
-
|
|
2758
|
+
Z("div", za, [
|
|
2759
|
+
n[0] || (n[0] = Z("span", { class: "title-text" }, "内容", -1)),
|
|
2760
|
+
Z("span", {
|
|
2766
2761
|
class: "copy-btn",
|
|
2767
2762
|
onClick: e,
|
|
2768
2763
|
title: "复制内容"
|
|
@@ -2770,7 +2765,7 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2770
2765
|
se(U(Al))
|
|
2771
2766
|
])
|
|
2772
2767
|
]),
|
|
2773
|
-
|
|
2768
|
+
Z("div", Ua, Me(s.content), 1)
|
|
2774
2769
|
], 4));
|
|
2775
2770
|
}
|
|
2776
2771
|
}, Ha = /* @__PURE__ */ et(La, [["__scopeId", "data-v-f28912da"]]), ja = {
|
|
@@ -2791,87 +2786,87 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2791
2786
|
}
|
|
2792
2787
|
},
|
|
2793
2788
|
setup(r) {
|
|
2794
|
-
const
|
|
2789
|
+
const s = r, e = Ot("options"), l = {
|
|
2795
2790
|
border: !0,
|
|
2796
2791
|
labelWidth: "100px",
|
|
2797
2792
|
column: 2
|
|
2798
|
-
}, n =
|
|
2799
|
-
var
|
|
2793
|
+
}, n = Fe(() => {
|
|
2794
|
+
var o, p;
|
|
2800
2795
|
return {
|
|
2801
2796
|
...l,
|
|
2802
|
-
...((p = (
|
|
2803
|
-
...
|
|
2797
|
+
...((p = (o = e == null ? void 0 : e.control) == null ? void 0 : o.view(s.row)) == null ? void 0 : p.container) || {},
|
|
2798
|
+
...s == null ? void 0 : s.container
|
|
2804
2799
|
};
|
|
2805
|
-
}),
|
|
2800
|
+
}), d = {
|
|
2806
2801
|
"label-align": "right",
|
|
2807
2802
|
"label-width": "80px"
|
|
2808
|
-
}, t =
|
|
2809
|
-
var
|
|
2803
|
+
}, t = Fe(() => {
|
|
2804
|
+
var o;
|
|
2810
2805
|
return {
|
|
2811
|
-
...
|
|
2812
|
-
...((
|
|
2806
|
+
...d,
|
|
2807
|
+
...((o = s == null ? void 0 : s.container) == null ? void 0 : o.items) || {}
|
|
2813
2808
|
};
|
|
2814
|
-
}),
|
|
2815
|
-
const p =
|
|
2816
|
-
return { ...typeof I == "function" ? I(
|
|
2817
|
-
},
|
|
2818
|
-
const p =
|
|
2809
|
+
}), c = (o) => {
|
|
2810
|
+
const p = s.m[o], L = p == null ? void 0 : p.view, H = typeof L == "function" ? L(s.row, null, 0, s.m) : L || {}, I = p == null ? void 0 : p.table;
|
|
2811
|
+
return { ...typeof I == "function" ? I(s.row) || {} : {}, ...H };
|
|
2812
|
+
}, T = (o) => {
|
|
2813
|
+
const p = c(o);
|
|
2819
2814
|
return (p == null ? void 0 : p.type) || "text-info";
|
|
2820
|
-
}, v =
|
|
2821
|
-
if (il.includes(
|
|
2815
|
+
}, v = Fe(() => Object.entries(s.m).filter(([o, p]) => {
|
|
2816
|
+
if (il.includes(o) || (p == null ? void 0 : p.type) === "hidden") return !1;
|
|
2822
2817
|
let L = (p == null ? void 0 : p.visible) !== !1;
|
|
2823
|
-
const
|
|
2824
|
-
return Object.hasOwn(
|
|
2825
|
-
}).sort(([
|
|
2818
|
+
const H = c(o);
|
|
2819
|
+
return Object.hasOwn(H, "visible") ? L = H.visible : Object.hasOwn(H, "hidden") && (L = !H.hidden), L;
|
|
2820
|
+
}).sort(([o], [p]) => {
|
|
2826
2821
|
var I, k;
|
|
2827
|
-
const L = ((I =
|
|
2828
|
-
return L -
|
|
2829
|
-
})),
|
|
2822
|
+
const L = ((I = c(o)) == null ? void 0 : I.sort) ?? 0, H = ((k = c(p)) == null ? void 0 : k.sort) ?? 0;
|
|
2823
|
+
return L - H;
|
|
2824
|
+
})), m = {
|
|
2830
2825
|
date: "YYYY-MM-DD",
|
|
2831
2826
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2832
2827
|
time: "HH:mm:ss"
|
|
2833
|
-
},
|
|
2834
|
-
const L =
|
|
2835
|
-
let
|
|
2836
|
-
const I = L.format ||
|
|
2837
|
-
return I &&
|
|
2828
|
+
}, f = Fe(() => Object.fromEntries(v.value.map(([o, p]) => {
|
|
2829
|
+
const L = c(o);
|
|
2830
|
+
let H = Object.hasOwn(L, "value") ? L.value : p == null ? void 0 : p.value;
|
|
2831
|
+
const I = L.format || m[p == null ? void 0 : p.type];
|
|
2832
|
+
return I && H && (H = Et(H).format(I)), [o, H];
|
|
2838
2833
|
})));
|
|
2839
|
-
return (
|
|
2834
|
+
return (o, p) => {
|
|
2840
2835
|
var I;
|
|
2841
|
-
const L = F("el-descriptions-item"),
|
|
2842
|
-
return
|
|
2836
|
+
const L = F("el-descriptions-item"), H = F("el-descriptions");
|
|
2837
|
+
return h(), z("div", {
|
|
2843
2838
|
class: "g-detail-container",
|
|
2844
2839
|
style: Ye(((I = n.value) == null ? void 0 : I.style) || {})
|
|
2845
2840
|
}, [
|
|
2846
|
-
se(
|
|
2841
|
+
se(H, A({ border: "" }, U(Ne)(n.value, (k) => !["container"].includes(k))), ge({
|
|
2847
2842
|
default: _(() => [
|
|
2848
|
-
(
|
|
2849
|
-
var
|
|
2850
|
-
return
|
|
2851
|
-
label: (
|
|
2852
|
-
}, { ref_for: !0 }, { ...t.value, ...((
|
|
2843
|
+
(h(!0), z(re, null, N(v.value, ([k, X]) => {
|
|
2844
|
+
var J, ee;
|
|
2845
|
+
return h(), E(L, A({
|
|
2846
|
+
label: (J = s.m[k]) == null ? void 0 : J.label
|
|
2847
|
+
}, { ref_for: !0 }, { ...t.value, ...((ee = c(k)) == null ? void 0 : ee.item) || {} }, { key: k }), {
|
|
2853
2848
|
label: _(() => [
|
|
2854
|
-
|
|
2855
|
-
row:
|
|
2849
|
+
x(o.$slots, `view-${k}-label`, {
|
|
2850
|
+
row: s.row
|
|
2856
2851
|
}, () => {
|
|
2857
2852
|
var ne;
|
|
2858
2853
|
return [
|
|
2859
|
-
Ae(Me((ne =
|
|
2854
|
+
Ae(Me((ne = s.m[k]) == null ? void 0 : ne.label), 1)
|
|
2860
2855
|
];
|
|
2861
2856
|
}, !0)
|
|
2862
2857
|
]),
|
|
2863
2858
|
default: _(() => [
|
|
2864
|
-
|
|
2865
|
-
row:
|
|
2859
|
+
x(o.$slots, `view-${k}`, {
|
|
2860
|
+
row: s.row
|
|
2866
2861
|
}, () => [
|
|
2867
2862
|
se(ht, {
|
|
2868
|
-
modelValue:
|
|
2869
|
-
"onUpdate:modelValue": (ne) =>
|
|
2870
|
-
item:
|
|
2863
|
+
modelValue: f.value[k],
|
|
2864
|
+
"onUpdate:modelValue": (ne) => f.value[k] = ne,
|
|
2865
|
+
item: c(k),
|
|
2871
2866
|
ctrlKey: k,
|
|
2872
|
-
ctrlType:
|
|
2873
|
-
model:
|
|
2874
|
-
formInfo:
|
|
2867
|
+
ctrlType: T(k),
|
|
2868
|
+
model: s.row,
|
|
2869
|
+
formInfo: s.row,
|
|
2875
2870
|
t: "v"
|
|
2876
2871
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"])
|
|
2877
2872
|
], !0)
|
|
@@ -2882,10 +2877,10 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2882
2877
|
]),
|
|
2883
2878
|
_: 2
|
|
2884
2879
|
}, [
|
|
2885
|
-
N(
|
|
2886
|
-
name:
|
|
2887
|
-
fn: _((
|
|
2888
|
-
|
|
2880
|
+
N(o.$slots, (k, X, J) => ({
|
|
2881
|
+
name: X,
|
|
2882
|
+
fn: _((ee) => [
|
|
2883
|
+
x(o.$slots, X, { model: ee }, void 0, !0)
|
|
2889
2884
|
])
|
|
2890
2885
|
}))
|
|
2891
2886
|
]), 1040)
|
|
@@ -2895,7 +2890,7 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2895
2890
|
}, Fa = /* @__PURE__ */ et(ja, [["__scopeId", "data-v-532cc5ec"]]);
|
|
2896
2891
|
var cl = { exports: {} }, fl = { exports: {} };
|
|
2897
2892
|
(function() {
|
|
2898
|
-
var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
2893
|
+
var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = {
|
|
2899
2894
|
// Bit-wise rotation left
|
|
2900
2895
|
rotl: function(e, l) {
|
|
2901
2896
|
return e << l | e >>> 32 - l;
|
|
@@ -2907,9 +2902,9 @@ var cl = { exports: {} }, fl = { exports: {} };
|
|
|
2907
2902
|
// Swap big-endian to little-endian and vice versa
|
|
2908
2903
|
endian: function(e) {
|
|
2909
2904
|
if (e.constructor == Number)
|
|
2910
|
-
return
|
|
2905
|
+
return s.rotl(e, 8) & 16711935 | s.rotl(e, 24) & 4278255360;
|
|
2911
2906
|
for (var l = 0; l < e.length; l++)
|
|
2912
|
-
e[l] =
|
|
2907
|
+
e[l] = s.endian(e[l]);
|
|
2913
2908
|
return e;
|
|
2914
2909
|
},
|
|
2915
2910
|
// Generate an array of any length of random bytes
|
|
@@ -2920,8 +2915,8 @@ var cl = { exports: {} }, fl = { exports: {} };
|
|
|
2920
2915
|
},
|
|
2921
2916
|
// Convert a byte array to big-endian 32-bit words
|
|
2922
2917
|
bytesToWords: function(e) {
|
|
2923
|
-
for (var l = [], n = 0,
|
|
2924
|
-
l[
|
|
2918
|
+
for (var l = [], n = 0, d = 0; n < e.length; n++, d += 8)
|
|
2919
|
+
l[d >>> 5] |= e[n] << 24 - d % 32;
|
|
2925
2920
|
return l;
|
|
2926
2921
|
},
|
|
2927
2922
|
// Convert big-endian 32-bit words to a byte array
|
|
@@ -2945,19 +2940,19 @@ var cl = { exports: {} }, fl = { exports: {} };
|
|
|
2945
2940
|
// Convert a byte array to a base-64 string
|
|
2946
2941
|
bytesToBase64: function(e) {
|
|
2947
2942
|
for (var l = [], n = 0; n < e.length; n += 3)
|
|
2948
|
-
for (var
|
|
2949
|
-
n * 8 + t * 6 <= e.length * 8 ? l.push(r.charAt(
|
|
2943
|
+
for (var d = e[n] << 16 | e[n + 1] << 8 | e[n + 2], t = 0; t < 4; t++)
|
|
2944
|
+
n * 8 + t * 6 <= e.length * 8 ? l.push(r.charAt(d >>> 6 * (3 - t) & 63)) : l.push("=");
|
|
2950
2945
|
return l.join("");
|
|
2951
2946
|
},
|
|
2952
2947
|
// Convert a base-64 string to a byte array
|
|
2953
2948
|
base64ToBytes: function(e) {
|
|
2954
2949
|
e = e.replace(/[^A-Z0-9+\/]/ig, "");
|
|
2955
|
-
for (var l = [], n = 0,
|
|
2956
|
-
|
|
2950
|
+
for (var l = [], n = 0, d = 0; n < e.length; d = ++n % 4)
|
|
2951
|
+
d != 0 && l.push((r.indexOf(e.charAt(n - 1)) & Math.pow(2, -2 * d + 8) - 1) << d * 2 | r.indexOf(e.charAt(n)) >>> 6 - d * 2);
|
|
2957
2952
|
return l;
|
|
2958
2953
|
}
|
|
2959
2954
|
};
|
|
2960
|
-
fl.exports =
|
|
2955
|
+
fl.exports = s;
|
|
2961
2956
|
})();
|
|
2962
2957
|
var Ra = fl.exports, Ut = {
|
|
2963
2958
|
// UTF-8 encoding
|
|
@@ -2975,15 +2970,15 @@ var Ra = fl.exports, Ut = {
|
|
|
2975
2970
|
bin: {
|
|
2976
2971
|
// Convert a string to a byte array
|
|
2977
2972
|
stringToBytes: function(r) {
|
|
2978
|
-
for (var
|
|
2979
|
-
|
|
2980
|
-
return
|
|
2973
|
+
for (var s = [], e = 0; e < r.length; e++)
|
|
2974
|
+
s.push(r.charCodeAt(e) & 255);
|
|
2975
|
+
return s;
|
|
2981
2976
|
},
|
|
2982
2977
|
// Convert a byte array to a string
|
|
2983
2978
|
bytesToString: function(r) {
|
|
2984
|
-
for (var
|
|
2985
|
-
|
|
2986
|
-
return
|
|
2979
|
+
for (var s = [], e = 0; e < r.length; e++)
|
|
2980
|
+
s.push(String.fromCharCode(r[e]));
|
|
2981
|
+
return s.join("");
|
|
2987
2982
|
}
|
|
2988
2983
|
}
|
|
2989
2984
|
}, Bt = Ut;
|
|
@@ -3003,34 +2998,34 @@ function Pa(r) {
|
|
|
3003
2998
|
return typeof r.readFloatLE == "function" && typeof r.slice == "function" && vl(r.slice(0, 0));
|
|
3004
2999
|
}
|
|
3005
3000
|
(function() {
|
|
3006
|
-
var r = Ra,
|
|
3007
|
-
|
|
3008
|
-
for (var
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
for (var L = n._ff,
|
|
3012
|
-
var
|
|
3013
|
-
v = L(v,
|
|
3001
|
+
var r = Ra, s = Bt.utf8, e = Ba, l = Bt.bin, n = function(d, t) {
|
|
3002
|
+
d.constructor == String ? t && t.encoding === "binary" ? d = l.stringToBytes(d) : d = s.stringToBytes(d) : e(d) ? d = Array.prototype.slice.call(d, 0) : !Array.isArray(d) && d.constructor !== Uint8Array && (d = d.toString());
|
|
3003
|
+
for (var c = r.bytesToWords(d), T = d.length * 8, v = 1732584193, m = -271733879, f = -1732584194, o = 271733878, p = 0; p < c.length; p++)
|
|
3004
|
+
c[p] = (c[p] << 8 | c[p] >>> 24) & 16711935 | (c[p] << 24 | c[p] >>> 8) & 4278255360;
|
|
3005
|
+
c[T >>> 5] |= 128 << T % 32, c[(T + 64 >>> 9 << 4) + 14] = T;
|
|
3006
|
+
for (var L = n._ff, H = n._gg, I = n._hh, k = n._ii, p = 0; p < c.length; p += 16) {
|
|
3007
|
+
var X = v, J = m, ee = f, ne = o;
|
|
3008
|
+
v = L(v, m, f, o, c[p + 0], 7, -680876936), o = L(o, v, m, f, c[p + 1], 12, -389564586), f = L(f, o, v, m, c[p + 2], 17, 606105819), m = L(m, f, o, v, c[p + 3], 22, -1044525330), v = L(v, m, f, o, c[p + 4], 7, -176418897), o = L(o, v, m, f, c[p + 5], 12, 1200080426), f = L(f, o, v, m, c[p + 6], 17, -1473231341), m = L(m, f, o, v, c[p + 7], 22, -45705983), v = L(v, m, f, o, c[p + 8], 7, 1770035416), o = L(o, v, m, f, c[p + 9], 12, -1958414417), f = L(f, o, v, m, c[p + 10], 17, -42063), m = L(m, f, o, v, c[p + 11], 22, -1990404162), v = L(v, m, f, o, c[p + 12], 7, 1804603682), o = L(o, v, m, f, c[p + 13], 12, -40341101), f = L(f, o, v, m, c[p + 14], 17, -1502002290), m = L(m, f, o, v, c[p + 15], 22, 1236535329), v = H(v, m, f, o, c[p + 1], 5, -165796510), o = H(o, v, m, f, c[p + 6], 9, -1069501632), f = H(f, o, v, m, c[p + 11], 14, 643717713), m = H(m, f, o, v, c[p + 0], 20, -373897302), v = H(v, m, f, o, c[p + 5], 5, -701558691), o = H(o, v, m, f, c[p + 10], 9, 38016083), f = H(f, o, v, m, c[p + 15], 14, -660478335), m = H(m, f, o, v, c[p + 4], 20, -405537848), v = H(v, m, f, o, c[p + 9], 5, 568446438), o = H(o, v, m, f, c[p + 14], 9, -1019803690), f = H(f, o, v, m, c[p + 3], 14, -187363961), m = H(m, f, o, v, c[p + 8], 20, 1163531501), v = H(v, m, f, o, c[p + 13], 5, -1444681467), o = H(o, v, m, f, c[p + 2], 9, -51403784), f = H(f, o, v, m, c[p + 7], 14, 1735328473), m = H(m, f, o, v, c[p + 12], 20, -1926607734), v = I(v, m, f, o, c[p + 5], 4, -378558), o = I(o, v, m, f, c[p + 8], 11, -2022574463), f = I(f, o, v, m, c[p + 11], 16, 1839030562), m = I(m, f, o, v, c[p + 14], 23, -35309556), v = I(v, m, f, o, c[p + 1], 4, -1530992060), o = I(o, v, m, f, c[p + 4], 11, 1272893353), f = I(f, o, v, m, c[p + 7], 16, -155497632), m = I(m, f, o, v, c[p + 10], 23, -1094730640), v = I(v, m, f, o, c[p + 13], 4, 681279174), o = I(o, v, m, f, c[p + 0], 11, -358537222), f = I(f, o, v, m, c[p + 3], 16, -722521979), m = I(m, f, o, v, c[p + 6], 23, 76029189), v = I(v, m, f, o, c[p + 9], 4, -640364487), o = I(o, v, m, f, c[p + 12], 11, -421815835), f = I(f, o, v, m, c[p + 15], 16, 530742520), m = I(m, f, o, v, c[p + 2], 23, -995338651), v = k(v, m, f, o, c[p + 0], 6, -198630844), o = k(o, v, m, f, c[p + 7], 10, 1126891415), f = k(f, o, v, m, c[p + 14], 15, -1416354905), m = k(m, f, o, v, c[p + 5], 21, -57434055), v = k(v, m, f, o, c[p + 12], 6, 1700485571), o = k(o, v, m, f, c[p + 3], 10, -1894986606), f = k(f, o, v, m, c[p + 10], 15, -1051523), m = k(m, f, o, v, c[p + 1], 21, -2054922799), v = k(v, m, f, o, c[p + 8], 6, 1873313359), o = k(o, v, m, f, c[p + 15], 10, -30611744), f = k(f, o, v, m, c[p + 6], 15, -1560198380), m = k(m, f, o, v, c[p + 13], 21, 1309151649), v = k(v, m, f, o, c[p + 4], 6, -145523070), o = k(o, v, m, f, c[p + 11], 10, -1120210379), f = k(f, o, v, m, c[p + 2], 15, 718787259), m = k(m, f, o, v, c[p + 9], 21, -343485551), v = v + X >>> 0, m = m + J >>> 0, f = f + ee >>> 0, o = o + ne >>> 0;
|
|
3014
3009
|
}
|
|
3015
|
-
return r.endian([v,
|
|
3010
|
+
return r.endian([v, m, f, o]);
|
|
3016
3011
|
};
|
|
3017
|
-
n._ff = function(
|
|
3018
|
-
var
|
|
3019
|
-
return (
|
|
3020
|
-
}, n._gg = function(
|
|
3021
|
-
var
|
|
3022
|
-
return (
|
|
3023
|
-
}, n._hh = function(
|
|
3024
|
-
var
|
|
3025
|
-
return (
|
|
3026
|
-
}, n._ii = function(
|
|
3027
|
-
var
|
|
3028
|
-
return (
|
|
3029
|
-
}, n._blocksize = 16, n._digestsize = 16, cl.exports = function(
|
|
3030
|
-
if (
|
|
3031
|
-
throw new Error("Illegal argument " +
|
|
3032
|
-
var
|
|
3033
|
-
return t && t.asBytes ?
|
|
3012
|
+
n._ff = function(d, t, c, T, v, m, f) {
|
|
3013
|
+
var o = d + (t & c | ~t & T) + (v >>> 0) + f;
|
|
3014
|
+
return (o << m | o >>> 32 - m) + t;
|
|
3015
|
+
}, n._gg = function(d, t, c, T, v, m, f) {
|
|
3016
|
+
var o = d + (t & T | c & ~T) + (v >>> 0) + f;
|
|
3017
|
+
return (o << m | o >>> 32 - m) + t;
|
|
3018
|
+
}, n._hh = function(d, t, c, T, v, m, f) {
|
|
3019
|
+
var o = d + (t ^ c ^ T) + (v >>> 0) + f;
|
|
3020
|
+
return (o << m | o >>> 32 - m) + t;
|
|
3021
|
+
}, n._ii = function(d, t, c, T, v, m, f) {
|
|
3022
|
+
var o = d + (c ^ (t | ~T)) + (v >>> 0) + f;
|
|
3023
|
+
return (o << m | o >>> 32 - m) + t;
|
|
3024
|
+
}, n._blocksize = 16, n._digestsize = 16, cl.exports = function(d, t) {
|
|
3025
|
+
if (d == null)
|
|
3026
|
+
throw new Error("Illegal argument " + d);
|
|
3027
|
+
var c = r.wordsToBytes(n(d, t));
|
|
3028
|
+
return t && t.asBytes ? c : t && t.asString ? l.bytesToString(c) : r.bytesToHex(c);
|
|
3034
3029
|
};
|
|
3035
3030
|
})();
|
|
3036
3031
|
var Na = cl.exports;
|
|
@@ -3065,20 +3060,20 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3065
3060
|
"toggleExpand",
|
|
3066
3061
|
"node-init"
|
|
3067
3062
|
], ["update:modelValue", "update:selectedRows"]),
|
|
3068
|
-
setup(r, { expose:
|
|
3063
|
+
setup(r, { expose: s, emit: e }) {
|
|
3069
3064
|
var Ge, Xe, gt, bt, $t, wt, kt;
|
|
3070
|
-
const l = ae(""), n = r,
|
|
3065
|
+
const l = ae(""), n = r, d = e, t = lt(r, "modelValue"), c = Ot("options"), T = ae({}), v = ae(!0), m = Object.entries(t.value).filter(([a, u]) => (u == null ? void 0 : u.search) !== void 0).map(([a, u]) => {
|
|
3071
3066
|
var C;
|
|
3072
3067
|
let g;
|
|
3073
|
-
if (typeof
|
|
3074
|
-
const q =
|
|
3075
|
-
g = (q == null ? void 0 : q.value) ??
|
|
3068
|
+
if (typeof u.search == "function") {
|
|
3069
|
+
const q = u.search(T.value);
|
|
3070
|
+
g = (q == null ? void 0 : q.value) ?? u.value;
|
|
3076
3071
|
} else
|
|
3077
|
-
g = ((C =
|
|
3072
|
+
g = ((C = u.search) == null ? void 0 : C.value) ?? u.value;
|
|
3078
3073
|
return [a, g];
|
|
3079
3074
|
});
|
|
3080
|
-
|
|
3081
|
-
const
|
|
3075
|
+
T.value = Object.fromEntries(m);
|
|
3076
|
+
const f = ae(!1), o = [
|
|
3082
3077
|
"type",
|
|
3083
3078
|
"index",
|
|
3084
3079
|
"label",
|
|
@@ -3107,7 +3102,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3107
3102
|
"filter-multiple",
|
|
3108
3103
|
"filter-method",
|
|
3109
3104
|
"filtered-value"
|
|
3110
|
-
], p = ae([]), L = It(),
|
|
3105
|
+
], p = ae([]), L = It(), H = ae({}), I = ae([]), k = ae(null), X = ae(""), J = ae("/"), ee = lt(r, "selectedRows"), ne = ae({
|
|
3111
3106
|
autoWatch: !1,
|
|
3112
3107
|
data: [],
|
|
3113
3108
|
border: !0,
|
|
@@ -3117,13 +3112,13 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3117
3112
|
stripe: !0,
|
|
3118
3113
|
type: "hidden",
|
|
3119
3114
|
load: async () => {
|
|
3120
|
-
const a = Number(await Sa(
|
|
3115
|
+
const a = Number(await Sa(J.value));
|
|
3121
3116
|
a && a > 0 && (t.value.table.page.pageSize = a);
|
|
3122
|
-
let { currentPage:
|
|
3117
|
+
let { currentPage: u, pageSize: g } = t.value.table.page;
|
|
3123
3118
|
try {
|
|
3124
|
-
|
|
3119
|
+
d(
|
|
3125
3120
|
"load",
|
|
3126
|
-
{ currentPage:
|
|
3121
|
+
{ currentPage: u, pageSize: g, ...T.value },
|
|
3127
3122
|
(C = [], q = 0, { fields: R = [], sums: B = {} } = {}) => {
|
|
3128
3123
|
var he;
|
|
3129
3124
|
if (!Array.isArray(C)) {
|
|
@@ -3134,7 +3129,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3134
3129
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), ut.error("数据加载失败,请检查数据格式。");
|
|
3135
3130
|
return;
|
|
3136
3131
|
}
|
|
3137
|
-
t.value.table.data = C, ((he = t.value.control) == null ? void 0 : he.add(k.value, t).inline) === !0 && t.value.table.data.unshift(k.value), t.value.table.page.total = q, I.value = R,
|
|
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, I.value = R, H.value = B, ze(), X.value = Math.random().toString(36).substring(2);
|
|
3138
3133
|
},
|
|
3139
3134
|
k.value
|
|
3140
3135
|
);
|
|
@@ -3142,11 +3137,11 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3142
3137
|
console.error("触发 load 事件时出现错误:", C), ut.error("数据加载时出现错误,请稍后重试。");
|
|
3143
3138
|
}
|
|
3144
3139
|
},
|
|
3145
|
-
onHeaderDragend: (a,
|
|
3146
|
-
ka(
|
|
3140
|
+
onHeaderDragend: (a, u, g) => {
|
|
3141
|
+
ka(J.value, g.property, a);
|
|
3147
3142
|
},
|
|
3148
|
-
onRowDblclick: (a,
|
|
3149
|
-
t.value.table.dblclickType == "edit" ?
|
|
3143
|
+
onRowDblclick: (a, u, g) => {
|
|
3144
|
+
t.value.table.dblclickType == "edit" ? S(a, u, g, t) : t.value.table.dblclickType == "view" ? O(a, u, g, t) : t.value.table.dblclickType == "delete" ? D(a, u, g, t) : t.value.table.dblclickType(a, u, g, t);
|
|
3150
3145
|
},
|
|
3151
3146
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
3152
3147
|
page: {
|
|
@@ -3166,22 +3161,22 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3166
3161
|
t.value.table.page.currentPage = a, t.value.table.load();
|
|
3167
3162
|
},
|
|
3168
3163
|
onSizeChange: (a) => {
|
|
3169
|
-
Ma({ page:
|
|
3164
|
+
Ma({ page: J.value, size: a }).then(() => {
|
|
3170
3165
|
t.value.table.page.pageSize = a, t.value.table.load();
|
|
3171
3166
|
});
|
|
3172
3167
|
}
|
|
3173
3168
|
},
|
|
3174
3169
|
dblclickType: "edit",
|
|
3175
|
-
"summary-method": ({ columns: a, data:
|
|
3176
|
-
onSortChange: ({ column: a, prop:
|
|
3170
|
+
"summary-method": ({ columns: a, data: u }, g) => g,
|
|
3171
|
+
onSortChange: ({ column: a, prop: u, order: g }, C) => {
|
|
3177
3172
|
},
|
|
3178
3173
|
onSelectionChange: (a) => {
|
|
3179
|
-
|
|
3174
|
+
ee.value = a;
|
|
3180
3175
|
}
|
|
3181
3176
|
});
|
|
3182
3177
|
t.value.table = qe(
|
|
3183
3178
|
ne.value,
|
|
3184
|
-
|
|
3179
|
+
c == null ? void 0 : c.table,
|
|
3185
3180
|
t.value.table,
|
|
3186
3181
|
L
|
|
3187
3182
|
// 继承父组件的属性
|
|
@@ -3196,7 +3191,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3196
3191
|
fixed: "right",
|
|
3197
3192
|
style: { ...(Xe = (Ge = t.value) == null ? void 0 : Ge.control) == null ? void 0 : Xe.style },
|
|
3198
3193
|
validate: async (a) => await !0,
|
|
3199
|
-
view: (a,
|
|
3194
|
+
view: (a, u, g, C) => ({
|
|
3200
3195
|
label: "详情",
|
|
3201
3196
|
text: !0,
|
|
3202
3197
|
type: "success",
|
|
@@ -3209,7 +3204,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3209
3204
|
return !(((q = C == null ? void 0 : C.control) == null ? void 0 : q.add(a, C).inline) === !0 && g === 0);
|
|
3210
3205
|
}
|
|
3211
3206
|
}),
|
|
3212
|
-
edit: (a,
|
|
3207
|
+
edit: (a, u, g, C) => ({
|
|
3213
3208
|
label: "编辑",
|
|
3214
3209
|
text: !0,
|
|
3215
3210
|
type: "primary",
|
|
@@ -3220,7 +3215,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3220
3215
|
return ((q = C == null ? void 0 : C.control) == null ? void 0 : q.add(a, C).inline) !== !0;
|
|
3221
3216
|
}
|
|
3222
3217
|
}),
|
|
3223
|
-
delete: (a,
|
|
3218
|
+
delete: (a, u, g, C) => ({
|
|
3224
3219
|
text: !0,
|
|
3225
3220
|
label: "删除",
|
|
3226
3221
|
type: "danger",
|
|
@@ -3239,7 +3234,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3239
3234
|
}
|
|
3240
3235
|
}
|
|
3241
3236
|
}),
|
|
3242
|
-
save: (a,
|
|
3237
|
+
save: (a, u, g, C) => {
|
|
3243
3238
|
var q, R;
|
|
3244
3239
|
return {
|
|
3245
3240
|
label: ((q = C.control) == null ? void 0 : q.add(a, C).inline) !== !0 ? "保存" : g === 0 ? "新增" : "保存",
|
|
@@ -3253,7 +3248,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3253
3248
|
}
|
|
3254
3249
|
};
|
|
3255
3250
|
},
|
|
3256
|
-
add: (a,
|
|
3251
|
+
add: (a, u) => ({
|
|
3257
3252
|
label: "新增",
|
|
3258
3253
|
text: !1,
|
|
3259
3254
|
type: "primary",
|
|
@@ -3262,7 +3257,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3262
3257
|
icon: () => _e(zl),
|
|
3263
3258
|
auth: () => !0
|
|
3264
3259
|
}),
|
|
3265
|
-
toggleExpand: (a,
|
|
3260
|
+
toggleExpand: (a, u) => ({
|
|
3266
3261
|
label: "展开/收起",
|
|
3267
3262
|
text: !1,
|
|
3268
3263
|
type: "primary",
|
|
@@ -3270,7 +3265,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3270
3265
|
icon: () => _e(tl),
|
|
3271
3266
|
auth: () => !1
|
|
3272
3267
|
}),
|
|
3273
|
-
batch: (a,
|
|
3268
|
+
batch: (a, u) => ({
|
|
3274
3269
|
label: "批量操作",
|
|
3275
3270
|
text: !1,
|
|
3276
3271
|
type: "primary",
|
|
@@ -3278,7 +3273,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3278
3273
|
icon: () => _e(zt),
|
|
3279
3274
|
auth: () => !1
|
|
3280
3275
|
}),
|
|
3281
|
-
download: (a,
|
|
3276
|
+
download: (a, u) => ({
|
|
3282
3277
|
label: "下载",
|
|
3283
3278
|
text: !1,
|
|
3284
3279
|
type: "primary",
|
|
@@ -3287,7 +3282,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3287
3282
|
excelLabel: "下载EXCEL",
|
|
3288
3283
|
auth: () => !0
|
|
3289
3284
|
}),
|
|
3290
|
-
setting: (a,
|
|
3285
|
+
setting: (a, u) => ({
|
|
3291
3286
|
label: "设置列",
|
|
3292
3287
|
text: !1,
|
|
3293
3288
|
type: "primary",
|
|
@@ -3295,7 +3290,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3295
3290
|
icon: () => _e(Yl),
|
|
3296
3291
|
auth: () => !0
|
|
3297
3292
|
}),
|
|
3298
|
-
dropdown: (a,
|
|
3293
|
+
dropdown: (a, u, g, C) => ({
|
|
3299
3294
|
label: "编辑",
|
|
3300
3295
|
operate: "edit",
|
|
3301
3296
|
"split-button": !0,
|
|
@@ -3303,58 +3298,58 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3303
3298
|
auth: () => !(C.control.add(a, C).inline === !0 && g == 0),
|
|
3304
3299
|
onClick: () => {
|
|
3305
3300
|
var R;
|
|
3306
|
-
let q = (R = Se(a,
|
|
3307
|
-
q === "edit" ?
|
|
3301
|
+
let q = (R = Se(a, u, g, C)) == null ? void 0 : R.operate;
|
|
3302
|
+
q === "edit" ? S(a, u, g, C) : q === "delete" ? D(a, u, g, C) : q === "view" && O(a, u, g, C);
|
|
3308
3303
|
},
|
|
3309
3304
|
"button-props": { round: !0, plain: !0 }
|
|
3310
3305
|
})
|
|
3311
3306
|
};
|
|
3312
3307
|
t.value.control = qe(
|
|
3313
3308
|
ue,
|
|
3314
|
-
|
|
3309
|
+
c == null ? void 0 : c.control,
|
|
3315
3310
|
(gt = t.value) == null ? void 0 : gt.control
|
|
3316
3311
|
);
|
|
3317
|
-
const pe = (a,
|
|
3318
|
-
const g = t.value.control[a], C =
|
|
3319
|
-
var
|
|
3312
|
+
const pe = (a, u = !0) => {
|
|
3313
|
+
const g = t.value.control[a], C = u ? (q, R, B, he) => {
|
|
3314
|
+
var je, Ze, st;
|
|
3320
3315
|
if (!q || !R || B == null)
|
|
3321
3316
|
return console.warn(`merge${a.charAt(0).toUpperCase() + a.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
3322
|
-
const we = ((
|
|
3317
|
+
const we = ((je = ue[a]) == null ? void 0 : je.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)) || {};
|
|
3323
3318
|
return qe(we, Ee, Oe) || {};
|
|
3324
3319
|
} : (q, R) => {
|
|
3325
|
-
var Ee, Oe,
|
|
3326
|
-
const B = ((Ee = ue[a]) == null ? void 0 : Ee.call(ue, q, R)) || {}, he = ((
|
|
3320
|
+
var Ee, Oe, je;
|
|
3321
|
+
const B = ((Ee = ue[a]) == null ? void 0 : Ee.call(ue, q, R)) || {}, he = ((je = (Oe = c == null ? void 0 : c.control) == null ? void 0 : Oe[a]) == null ? void 0 : je.call(Oe, q, R)) || {}, we = (g == null ? void 0 : g(q, R)) || {};
|
|
3327
3322
|
return qe(B, he, we) || {};
|
|
3328
3323
|
};
|
|
3329
3324
|
t.value.control[a] = C;
|
|
3330
3325
|
};
|
|
3331
3326
|
pe("edit"), pe("delete"), pe("view"), pe("save"), pe("add", !1), pe("download", !1), pe("setting", !1), pe("batch", !1), pe("toggleExpand", !1);
|
|
3332
|
-
const Se = (a,
|
|
3333
|
-
var he, we, Ee, Oe,
|
|
3334
|
-
if (!a || !
|
|
3327
|
+
const Se = (a, u, g, C) => {
|
|
3328
|
+
var he, we, Ee, Oe, je, Ze;
|
|
3329
|
+
if (!a || !u || g == null)
|
|
3335
3330
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
3336
|
-
const q = ((he = ue.dropdown) == null ? void 0 : he.call(ue, a,
|
|
3331
|
+
const q = ((he = ue.dropdown) == null ? void 0 : he.call(ue, a, u, g, C)) || {}, R = ((Ee = (we = c == null ? void 0 : c.control) == null ? void 0 : we.dropdown) == null ? void 0 : Ee.call(we, a, u, g, C)) || {}, B = ((Ze = (je = (Oe = t.value) == null ? void 0 : Oe.control) == null ? void 0 : je.dropdown) == null ? void 0 : Ze.call(je, a, u, g, C)) || {};
|
|
3337
3332
|
return qe(q, R, B) || {};
|
|
3338
3333
|
}, De = {
|
|
3339
3334
|
type: "hidden",
|
|
3340
3335
|
"min-width": 100,
|
|
3341
3336
|
align: "center",
|
|
3342
|
-
formatter: (a,
|
|
3343
|
-
"tooltip-formatter": ({ row: a, column:
|
|
3337
|
+
formatter: (a, u, g, C) => g,
|
|
3338
|
+
"tooltip-formatter": ({ row: a, column: u, cellValue: g }) => _e(Ha, { content: g, column: u })
|
|
3344
3339
|
};
|
|
3345
3340
|
t.value.tableColumns = qe(
|
|
3346
3341
|
De,
|
|
3347
|
-
|
|
3342
|
+
c == null ? void 0 : c.tableColumns,
|
|
3348
3343
|
(bt = t.value) == null ? void 0 : bt.tableColumns
|
|
3349
3344
|
), t.value.form = qe(
|
|
3350
3345
|
sl,
|
|
3351
3346
|
{
|
|
3352
3347
|
cancel: {
|
|
3353
3348
|
hidden: !1,
|
|
3354
|
-
click: () =>
|
|
3349
|
+
click: () => f.value = !1
|
|
3355
3350
|
}
|
|
3356
3351
|
},
|
|
3357
|
-
|
|
3352
|
+
c == null ? void 0 : c.form,
|
|
3358
3353
|
($t = t.value) == null ? void 0 : $t.form
|
|
3359
3354
|
);
|
|
3360
3355
|
const me = {
|
|
@@ -3366,7 +3361,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3366
3361
|
};
|
|
3367
3362
|
t.value.formItems = qe(
|
|
3368
3363
|
me,
|
|
3369
|
-
|
|
3364
|
+
c == null ? void 0 : c.formItems,
|
|
3370
3365
|
(wt = t == null ? void 0 : t.value) == null ? void 0 : wt.formItems
|
|
3371
3366
|
);
|
|
3372
3367
|
const P = {
|
|
@@ -3383,14 +3378,14 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3383
3378
|
};
|
|
3384
3379
|
t.value.dialog = qe(
|
|
3385
3380
|
P,
|
|
3386
|
-
|
|
3381
|
+
c == null ? void 0 : c.dialog,
|
|
3387
3382
|
(kt = t.value) == null ? void 0 : kt.dialog
|
|
3388
3383
|
);
|
|
3389
|
-
const Te = (a,
|
|
3390
|
-
let g =
|
|
3391
|
-
if (a.precision && !isNaN(parseFloat(
|
|
3384
|
+
const Te = (a, u) => {
|
|
3385
|
+
let g = u;
|
|
3386
|
+
if (a.precision && !isNaN(parseFloat(u)) && (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(
|
|
3392
3387
|
parseFloat(g).toFixed(a.precision.num)
|
|
3393
|
-
).toString())), ["date", "datetime", "time", "time-select"].includes(a.type) && Et(
|
|
3388
|
+
).toString())), ["date", "datetime", "time", "time-select"].includes(a.type) && Et(u).isValid()) {
|
|
3394
3389
|
const q = {
|
|
3395
3390
|
date: "YYYY-MM-DD",
|
|
3396
3391
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
@@ -3402,55 +3397,55 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3402
3397
|
parseFloat(g)
|
|
3403
3398
|
)}">${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;
|
|
3404
3399
|
}, We = (a) => {
|
|
3405
|
-
|
|
3400
|
+
T.value = Object.fromEntries(m), t.value.table.load();
|
|
3406
3401
|
}, w = (a) => {
|
|
3407
|
-
|
|
3408
|
-
}, $ = async (a = k.value,
|
|
3402
|
+
T.value = a, t.value.table.load();
|
|
3403
|
+
}, $ = async (a = k.value, u) => {
|
|
3409
3404
|
var g, C;
|
|
3410
3405
|
t.value.form.modalState = "add", l.value = "add";
|
|
3411
3406
|
try {
|
|
3412
|
-
if (!await ((g = t.value.control) == null ? void 0 : g.validate("add", { row: k.value, m:
|
|
3407
|
+
if (!await ((g = t.value.control) == null ? void 0 : g.validate("add", { row: k.value, m: u, node: n.node }))) return;
|
|
3413
3408
|
} catch (q) {
|
|
3414
3409
|
console.error("验证失败:", q);
|
|
3415
3410
|
return;
|
|
3416
3411
|
}
|
|
3417
|
-
(C = t.value.control.add(k.value,
|
|
3412
|
+
(C = t.value.control.add(k.value, u)) != null && C.click ? t.value.control.add(k.value, u).click(k.value, u) : (t.value.control.add(k.value, u).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, u).mode, t.value.dialog.title = t.value.control.add(k.value, u).title || t.value.control.add(k.value, u).label || "新增", Object.keys(k.value).forEach((q) => {
|
|
3418
3413
|
t.value[q] && (t.value[q].value = k.value[q]);
|
|
3419
|
-
}),
|
|
3414
|
+
}), f.value = !0, await Ke(), d("open", "add", { row: k.value, node: n.node, m: u }), mt()), await Ke(), d("node-init", { row: k.value, node: n.node, m: u }));
|
|
3420
3415
|
}, b = () => {
|
|
3421
|
-
|
|
3422
|
-
},
|
|
3423
|
-
|
|
3416
|
+
d("batch", ee.value);
|
|
3417
|
+
}, y = (a, u) => {
|
|
3418
|
+
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(() => {
|
|
3424
3419
|
v.value = !0;
|
|
3425
3420
|
});
|
|
3426
|
-
},
|
|
3421
|
+
}, S = async (a, u, g, C) => {
|
|
3427
3422
|
var q, R;
|
|
3428
3423
|
t.value.form.modalState = "edit", l.value = "edit";
|
|
3429
3424
|
try {
|
|
3430
|
-
if (!await ((q = t.value.control) == null ? void 0 : q.validate("edit", { row: a, column:
|
|
3425
|
+
if (!await ((q = t.value.control) == null ? void 0 : q.validate("edit", { row: a, column: u, index: g, m: C }))) return;
|
|
3431
3426
|
} catch (B) {
|
|
3432
3427
|
console.error("验证失败:", B);
|
|
3433
3428
|
return;
|
|
3434
3429
|
}
|
|
3435
|
-
(R = t.value.control.edit(a,
|
|
3430
|
+
(R = t.value.control.edit(a, u, g, C)) != null && R.click ? t.value.control.edit(a, u, g, C).click(a, u, g, C) : (t.value.form.disabled = !1, t.value.dialog.mode = t.value.control.edit(a, u, g, C).mode, t.value.dialog.title = t.value.control.edit(a, u, g, C).title || t.value.control.edit(a, u, g, C).label || "编辑", Object.keys(a).forEach((B) => {
|
|
3436
3431
|
t.value[B] && (t.value[B].value = a[B]);
|
|
3437
|
-
}),
|
|
3438
|
-
}, D = async (a,
|
|
3432
|
+
}), f.value = !0, await Ke(), d("open", "edit", { m: C, row: a, column: u, index: g }), mt());
|
|
3433
|
+
}, D = async (a, u, g, C) => {
|
|
3439
3434
|
var q, R;
|
|
3440
3435
|
try {
|
|
3441
|
-
if (!await ((q = t.value.control) == null ? void 0 : q.validate("delete", { row: a, column:
|
|
3436
|
+
if (!await ((q = t.value.control) == null ? void 0 : q.validate("delete", { row: a, column: u, index: g, m: C }))) return;
|
|
3442
3437
|
} catch (B) {
|
|
3443
3438
|
console.error("验证失败:", B);
|
|
3444
3439
|
return;
|
|
3445
3440
|
}
|
|
3446
|
-
if ((R = t.value.control.delete(a,
|
|
3447
|
-
t.value.control.delete(a,
|
|
3441
|
+
if ((R = t.value.control.delete(a, u, g, C)) != null && R.click)
|
|
3442
|
+
t.value.control.delete(a, u, g, C).click(a, u, g, C);
|
|
3448
3443
|
else {
|
|
3449
|
-
let { message: B, title: he, options: we } = t.value.control.delete(a,
|
|
3444
|
+
let { message: B, title: he, options: we } = t.value.control.delete(a, u, g, C).dialog;
|
|
3450
3445
|
Wt.confirm(B, he, we).then(() => {
|
|
3451
|
-
|
|
3446
|
+
d(
|
|
3452
3447
|
"delete",
|
|
3453
|
-
{ row: a, column:
|
|
3448
|
+
{ row: a, column: u, index: g, m: C },
|
|
3454
3449
|
(Ee = !0, Oe = !1) => {
|
|
3455
3450
|
Ee && (t.value.table.data.splice(g, 1), t.value.table.page.total--), Oe && t.value.table.load();
|
|
3456
3451
|
}
|
|
@@ -3458,18 +3453,18 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3458
3453
|
}).catch(() => {
|
|
3459
3454
|
});
|
|
3460
3455
|
}
|
|
3461
|
-
}, O = async (a,
|
|
3456
|
+
}, O = async (a, u, g, C) => {
|
|
3462
3457
|
var q, R, B, he;
|
|
3463
3458
|
t.value.form.modalState = void 0, l.value = "view";
|
|
3464
3459
|
try {
|
|
3465
|
-
if (!await ((q = t.value.control) == null ? void 0 : q.validate("view", { row: a, column:
|
|
3460
|
+
if (!await ((q = t.value.control) == null ? void 0 : q.validate("view", { row: a, column: u, index: g, m: C }))) return;
|
|
3466
3461
|
} catch (we) {
|
|
3467
3462
|
console.error("验证失败:", we);
|
|
3468
3463
|
return;
|
|
3469
3464
|
}
|
|
3470
|
-
(R = t.value.control.view(a,
|
|
3465
|
+
(R = t.value.control.view(a, u, g, C)) != null && R.click ? t.value.control.view(a, u, g, C).click(a, u, g, C) : (t.value.form.disabled = !0, t.value.dialog.mode = t.value.control.view(a, u, g, C).mode, t.value.dialog.title = t.value.control.view(a, u, g, C).title || t.value.control.view(a, u, g, C).label || "详情", Object.keys(a).forEach((we) => {
|
|
3471
3466
|
t.value[we] && (t.value[we].value = a[we]);
|
|
3472
|
-
}), ((B = t.value.control.view(a,
|
|
3467
|
+
}), ((B = t.value.control.view(a, u, g, C)) == null ? void 0 : B["view-mode"]) === "description" ? pl({
|
|
3473
3468
|
...t.value.dialog,
|
|
3474
3469
|
type: t.value.dialog.mode,
|
|
3475
3470
|
slots: {
|
|
@@ -3478,18 +3473,18 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3478
3473
|
return _e(Fa, {
|
|
3479
3474
|
row: a,
|
|
3480
3475
|
m: C,
|
|
3481
|
-
container: ((we = t.value.control.view(a,
|
|
3482
|
-
}, ((Oe = (Ee = t.value.control.view(a,
|
|
3476
|
+
container: ((we = t.value.control.view(a, u, g, C)) == null ? void 0 : we.container) || {}
|
|
3477
|
+
}, ((Oe = (Ee = t.value.control.view(a, u, g, C)) == null ? void 0 : Ee.container) == null ? void 0 : Oe.slots) || {});
|
|
3483
3478
|
}
|
|
3484
3479
|
}
|
|
3485
|
-
}) : ((he = t.value.control.view(a,
|
|
3486
|
-
}, Y = (a,
|
|
3487
|
-
Object.assign(a,
|
|
3488
|
-
}, le = (a,
|
|
3489
|
-
const q = t.value.control.save(a,
|
|
3490
|
-
q != null && q.click ? q.click(a,
|
|
3480
|
+
}) : ((he = t.value.control.view(a, u, g, C)) == null ? void 0 : he["view-mode"]) === "readonly" && (f.value = !0, mt()), await Ke(), d("open", "view", { m: C, row: a, column: u, index: g }));
|
|
3481
|
+
}, Y = (a, u = k.value) => {
|
|
3482
|
+
Object.assign(a, u);
|
|
3483
|
+
}, le = (a, u, g, C) => {
|
|
3484
|
+
const q = t.value.control.save(a, u, g, C);
|
|
3485
|
+
q != null && q.click ? q.click(a, u, g, C) : d(
|
|
3491
3486
|
"row-save",
|
|
3492
|
-
{ row: a, column:
|
|
3487
|
+
{ row: a, column: u, index: g, data: t.value.table.data },
|
|
3493
3488
|
async (R = !0, B = !0) => {
|
|
3494
3489
|
if (R && t.value.table.load(), B && g === 0) {
|
|
3495
3490
|
const he = Object.entries(t.value).filter(
|
|
@@ -3502,69 +3497,69 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3502
3497
|
}
|
|
3503
3498
|
}
|
|
3504
3499
|
);
|
|
3505
|
-
}, de = mr((a,
|
|
3506
|
-
|
|
3507
|
-
C && (g === 1 && (
|
|
3500
|
+
}, de = mr((a, u, g) => {
|
|
3501
|
+
d("submit", t.value.form.modalState, a, u, (C) => {
|
|
3502
|
+
C && (g === 1 && (f.value = !1), Y(a), u.table.load());
|
|
3508
3503
|
});
|
|
3509
|
-
}, 300), ye = (a,
|
|
3510
|
-
Y(a),
|
|
3511
|
-
}, W = (a,
|
|
3504
|
+
}, 300), ye = (a, u) => {
|
|
3505
|
+
Y(a), d("reset", a, u);
|
|
3506
|
+
}, W = (a, u, g) => {
|
|
3512
3507
|
var C;
|
|
3513
|
-
if ((C =
|
|
3514
|
-
|
|
3508
|
+
if ((C = u.control.download(a, u)) != null && C.click)
|
|
3509
|
+
u.control.download(a, u).click(a, u, g);
|
|
3515
3510
|
else {
|
|
3516
3511
|
let q = Lt(
|
|
3517
3512
|
{
|
|
3518
|
-
title:
|
|
3519
|
-
size:
|
|
3520
|
-
width:
|
|
3513
|
+
title: u.control.download(a, u).title || u.control.download(a, u).label || "下载",
|
|
3514
|
+
size: u.control.download(a, u).size || 480,
|
|
3515
|
+
width: u.control.download(a, u).width || 600,
|
|
3521
3516
|
slots: {
|
|
3522
3517
|
default: () => _e(ba, {
|
|
3523
3518
|
items: g,
|
|
3524
|
-
commitText:
|
|
3519
|
+
commitText: u.control.download(a, u).excelLabel,
|
|
3525
3520
|
onExcel: (R, B) => {
|
|
3526
|
-
|
|
3521
|
+
d("download", R, T.value, B), q();
|
|
3527
3522
|
}
|
|
3528
3523
|
})
|
|
3529
3524
|
}
|
|
3530
3525
|
},
|
|
3531
|
-
|
|
3526
|
+
u.control.download(a, u).mode
|
|
3532
3527
|
);
|
|
3533
3528
|
}
|
|
3534
|
-
},
|
|
3529
|
+
}, G = (a, u) => {
|
|
3535
3530
|
var g;
|
|
3536
|
-
(g =
|
|
3531
|
+
(g = u.control.setting(a, u)) != null && g.click ? u.control.setting(a, u).click(a, u) : Lt(
|
|
3537
3532
|
{
|
|
3538
|
-
title:
|
|
3539
|
-
size:
|
|
3540
|
-
width:
|
|
3533
|
+
title: u.control.setting(a, u).title || u.control.setting(a, u).label || "设置",
|
|
3534
|
+
size: u.control.setting(a, u).size || 470,
|
|
3535
|
+
width: u.control.setting(a, u).width || 600,
|
|
3541
3536
|
slots: {
|
|
3542
3537
|
default: () => _e(Ya, {
|
|
3543
|
-
modelValue:
|
|
3544
|
-
tuid:
|
|
3538
|
+
modelValue: u,
|
|
3539
|
+
tuid: J.value,
|
|
3545
3540
|
onSettingDragEnd: async () => {
|
|
3546
|
-
await Le(
|
|
3541
|
+
await Le(J.value);
|
|
3547
3542
|
},
|
|
3548
3543
|
onSelectAll: async (C) => {
|
|
3549
|
-
await Le(
|
|
3544
|
+
await Le(J.value);
|
|
3550
3545
|
}
|
|
3551
3546
|
})
|
|
3552
3547
|
}
|
|
3553
3548
|
},
|
|
3554
|
-
|
|
3549
|
+
u.control.setting(a, u).mode
|
|
3555
3550
|
);
|
|
3556
3551
|
}, Ve = t.value.control, ke = {
|
|
3557
3552
|
add: $,
|
|
3558
3553
|
batch: b,
|
|
3559
3554
|
download: W,
|
|
3560
|
-
toggleExpand:
|
|
3561
|
-
setting:
|
|
3555
|
+
toggleExpand: y,
|
|
3556
|
+
setting: G,
|
|
3562
3557
|
view: O,
|
|
3563
|
-
edit:
|
|
3558
|
+
edit: S,
|
|
3564
3559
|
delete: D,
|
|
3565
3560
|
save: le
|
|
3566
|
-
}, Ie = (a,
|
|
3567
|
-
const B = Ve == null ? void 0 : Ve[R](
|
|
3561
|
+
}, Ie = (a, u, g, C, q) => a.filter((R) => ke[R]).map((R) => {
|
|
3562
|
+
const B = Ve == null ? void 0 : Ve[R](u, g, C, q);
|
|
3568
3563
|
return {
|
|
3569
3564
|
name: `control-${R}`,
|
|
3570
3565
|
attr: B,
|
|
@@ -3573,14 +3568,14 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3573
3568
|
sort: (B == null ? void 0 : B.sort) || 0,
|
|
3574
3569
|
groupName: (B == null ? void 0 : B.groupName) || "default"
|
|
3575
3570
|
};
|
|
3576
|
-
}).sort((R, B) => R.sort - B.sort), V = (a,
|
|
3571
|
+
}).sort((R, B) => R.sort - B.sort), V = (a, u, g, C, q) => Ie(a, u, g, C, q).reduce((R, B) => {
|
|
3577
3572
|
const he = B.groupName || "default";
|
|
3578
3573
|
return R[he] || (R[he] = []), R[he].push(B), R;
|
|
3579
|
-
}, {}),
|
|
3574
|
+
}, {}), M = Fe(() => Object.fromEntries(
|
|
3580
3575
|
Object.entries(t.value).filter(
|
|
3581
|
-
([a,
|
|
3582
|
-
).map(([a,
|
|
3583
|
-
)),
|
|
3576
|
+
([a, u]) => u.type !== "hidden" && u.hidden !== !0 && u.visible !== !1 && u.showCol !== !1
|
|
3577
|
+
).map(([a, u]) => (u.sort = typeof u.sort == "number" ? u.sort : 0, [a, u])).sort((a, u) => a[1].sort - u[1].sort)
|
|
3578
|
+
)), j = ae({}), Ce = (a, u) => {
|
|
3584
3579
|
const g = (C, q) => {
|
|
3585
3580
|
for (const R of C) {
|
|
3586
3581
|
if (R.value == q) return R.label;
|
|
@@ -3592,41 +3587,41 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3592
3587
|
return null;
|
|
3593
3588
|
};
|
|
3594
3589
|
if (a.getDicts) {
|
|
3595
|
-
const C =
|
|
3596
|
-
return
|
|
3597
|
-
|
|
3590
|
+
const C = u.toString();
|
|
3591
|
+
return j.value[C] ? (a.options = j.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) => {
|
|
3592
|
+
j.value[C] = q, a.options = q, a.formatter || (a.formatter = (R, B, he, we) => a.options && g(a.options, he) || he);
|
|
3598
3593
|
});
|
|
3599
3594
|
}
|
|
3600
3595
|
return Promise.resolve();
|
|
3601
3596
|
}, ze = async () => {
|
|
3602
3597
|
try {
|
|
3603
|
-
const
|
|
3598
|
+
const u = Object.keys(t.value).filter((g) => t.value[g].getDicts).map(
|
|
3604
3599
|
(g) => Ce(t.value[g], g)
|
|
3605
3600
|
);
|
|
3606
|
-
await Promise.all(
|
|
3601
|
+
await Promise.all(u);
|
|
3607
3602
|
} catch (a) {
|
|
3608
3603
|
console.error("字典加载过程中发生错误:", a);
|
|
3609
3604
|
}
|
|
3610
|
-
}, Ue = (a,
|
|
3605
|
+
}, Ue = (a, u, g, C) => {
|
|
3611
3606
|
var q, R;
|
|
3612
|
-
return a.table ? (q = a.table(
|
|
3607
|
+
return a.table ? (q = a.table(u, g, C)) != null && q.auth ? (R = a.table(u, g, C)) == null ? void 0 : R.auth(u, g, C) : !0 : !1;
|
|
3613
3608
|
}, tt = () => {
|
|
3614
|
-
|
|
3609
|
+
f.value = !1;
|
|
3615
3610
|
};
|
|
3616
3611
|
Cl(() => {
|
|
3617
3612
|
t.value.table.autoWatch && t.value.table.load();
|
|
3618
3613
|
});
|
|
3619
3614
|
const Le = async () => {
|
|
3620
3615
|
try {
|
|
3621
|
-
const [a,
|
|
3622
|
-
_a(
|
|
3623
|
-
Va(
|
|
3624
|
-
Ca(
|
|
3616
|
+
const [a, u, g] = await Promise.all([
|
|
3617
|
+
_a(J.value),
|
|
3618
|
+
Va(J.value),
|
|
3619
|
+
Ca(J.value)
|
|
3625
3620
|
]);
|
|
3626
3621
|
a && Array.isArray(a) && a.forEach((C) => {
|
|
3627
3622
|
const q = t.value[C.key];
|
|
3628
3623
|
q && (q.width = C.width);
|
|
3629
|
-
}),
|
|
3624
|
+
}), u && Array.isArray(u) && u.forEach((C, q) => {
|
|
3630
3625
|
const R = t.value[C];
|
|
3631
3626
|
R && (R.sort = q);
|
|
3632
3627
|
}), g && Array.isArray(g) && g.length > 0 ? g.forEach((C) => {
|
|
@@ -3636,55 +3631,55 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3636
3631
|
t.value[C].showCol = !0;
|
|
3637
3632
|
});
|
|
3638
3633
|
} catch (a) {
|
|
3639
|
-
console.error("加载表格信息时出错:", a), Object.keys(t.value).filter((
|
|
3640
|
-
t.value[
|
|
3634
|
+
console.error("加载表格信息时出错:", a), Object.keys(t.value).filter((u) => t.value[u].type !== "control").forEach((u) => {
|
|
3635
|
+
t.value[u].showCol === void 0 && (t.value[u].showCol = !0);
|
|
3641
3636
|
});
|
|
3642
3637
|
}
|
|
3643
3638
|
}, Qe = () => Wa(Object.keys(t.value).toString()).toUpperCase().substring(8, 24);
|
|
3644
3639
|
return xl(() => {
|
|
3645
|
-
|
|
3640
|
+
J.value = Qe();
|
|
3646
3641
|
}), yt(async () => {
|
|
3647
3642
|
try {
|
|
3648
3643
|
p.value = Object.entries(t.value).filter(
|
|
3649
|
-
([
|
|
3650
|
-
).map(([
|
|
3651
|
-
key:
|
|
3644
|
+
([u, g]) => g.type !== "hidden" && g.type !== "control" && g.visible !== !1
|
|
3645
|
+
).map(([u, g]) => ({
|
|
3646
|
+
key: u || "",
|
|
3652
3647
|
label: g.label,
|
|
3653
3648
|
value: !0
|
|
3654
3649
|
})), await Ke();
|
|
3655
3650
|
const a = Object.entries(t.value).filter(
|
|
3656
|
-
([
|
|
3651
|
+
([u, g]) => g.type !== "control" && g.type !== "hidden"
|
|
3657
3652
|
);
|
|
3658
3653
|
k.value = Object.fromEntries(
|
|
3659
|
-
a.map(([
|
|
3654
|
+
a.map(([u, g]) => [u, g.value])
|
|
3660
3655
|
), await Le(), t.value.table.autoWatch || t.value.table.load();
|
|
3661
3656
|
} catch (a) {
|
|
3662
3657
|
console.error("Error during component initialization:", a), t.value.table.autoWatch || t.value.table.load();
|
|
3663
3658
|
}
|
|
3664
|
-
}),
|
|
3665
|
-
var Ee, Oe,
|
|
3659
|
+
}), s({ addRow: $, editRow: S, deleteRow: D, readForm: O, saveRowData: le, closeDialog: tt, formData: k }), (a, u) => {
|
|
3660
|
+
var Ee, Oe, je, Ze, st, _t, Ct;
|
|
3666
3661
|
const g = F("el-button-group"), C = F("el-dropdown-item"), q = F("el-dropdown-menu"), R = F("el-dropdown"), B = F("el-table-column"), he = F("el-table"), we = F("el-pagination");
|
|
3667
|
-
return
|
|
3668
|
-
|
|
3662
|
+
return h(), z(re, null, [
|
|
3663
|
+
f.value ? (h(), E(jt, A({
|
|
3669
3664
|
key: 0,
|
|
3670
|
-
modelValue:
|
|
3671
|
-
"onUpdate:modelValue":
|
|
3665
|
+
modelValue: f.value,
|
|
3666
|
+
"onUpdate:modelValue": u[2] || (u[2] = (Q) => f.value = Q)
|
|
3672
3667
|
}, t.value.dialog, {
|
|
3673
3668
|
type: t.value.dialog.mode
|
|
3674
3669
|
}), ge({
|
|
3675
3670
|
default: _(() => [
|
|
3676
|
-
|
|
3671
|
+
f.value ? (h(), E(Pe(dl), {
|
|
3677
3672
|
key: 0,
|
|
3678
3673
|
modelValue: t.value,
|
|
3679
|
-
"onUpdate:modelValue":
|
|
3680
|
-
onSubmit:
|
|
3674
|
+
"onUpdate:modelValue": u[0] || (u[0] = (Q) => t.value = Q),
|
|
3675
|
+
onSubmit: u[1] || (u[1] = (Q, fe, te) => U(de)(Q, fe, te)),
|
|
3681
3676
|
onReset: ye,
|
|
3682
3677
|
flag: l.value
|
|
3683
3678
|
}, ge({ _: 2 }, [
|
|
3684
|
-
N(a.$slots, (
|
|
3679
|
+
N(a.$slots, (Q, fe, te) => ({
|
|
3685
3680
|
name: fe,
|
|
3686
3681
|
fn: _((Re) => [
|
|
3687
|
-
|
|
3682
|
+
x(a.$slots, fe, { model: Re }, void 0, !0)
|
|
3688
3683
|
])
|
|
3689
3684
|
}))
|
|
3690
3685
|
]), 1064, ["modelValue", "flag"])) : be("", !0)
|
|
@@ -3693,9 +3688,9 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3693
3688
|
}, [
|
|
3694
3689
|
a.$slots.header ? {
|
|
3695
3690
|
name: "header",
|
|
3696
|
-
fn: _(({ titleClass:
|
|
3697
|
-
|
|
3698
|
-
titleClass:
|
|
3691
|
+
fn: _(({ titleClass: Q, closeIconClass: fe }) => [
|
|
3692
|
+
x(a.$slots, "header", {
|
|
3693
|
+
titleClass: Q,
|
|
3699
3694
|
closeIconClass: fe
|
|
3700
3695
|
}, void 0, !0)
|
|
3701
3696
|
]),
|
|
@@ -3704,48 +3699,48 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3704
3699
|
a.$slots.title ? {
|
|
3705
3700
|
name: "title",
|
|
3706
3701
|
fn: _(() => [
|
|
3707
|
-
|
|
3702
|
+
x(a.$slots, "title", {}, void 0, !0)
|
|
3708
3703
|
]),
|
|
3709
3704
|
key: "1"
|
|
3710
3705
|
} : void 0,
|
|
3711
3706
|
a.$slots.footer ? {
|
|
3712
3707
|
name: "footer",
|
|
3713
3708
|
fn: _(() => [
|
|
3714
|
-
|
|
3709
|
+
x(a.$slots, "footer", {}, void 0, !0)
|
|
3715
3710
|
]),
|
|
3716
3711
|
key: "2"
|
|
3717
3712
|
} : void 0,
|
|
3718
3713
|
((Oe = (Ee = t.value) == null ? void 0 : Ee.dialog) == null ? void 0 : Oe.type) === "drawer" && a.$slots.trigger ? {
|
|
3719
3714
|
name: "trigger",
|
|
3720
3715
|
fn: _(() => [
|
|
3721
|
-
|
|
3716
|
+
x(a.$slots, "trigger", {}, void 0, !0)
|
|
3722
3717
|
]),
|
|
3723
3718
|
key: "3"
|
|
3724
3719
|
} : void 0
|
|
3725
3720
|
]), 1040, ["modelValue", "type"])) : be("", !0),
|
|
3726
|
-
|
|
3727
|
-
((Ze = (
|
|
3728
|
-
|
|
3721
|
+
Z("div", Ga, [
|
|
3722
|
+
((Ze = (je = t.value) == null ? void 0 : je.query) == null ? void 0 : Ze.hidden) != !0 ? (h(), z("div", Xa, [
|
|
3723
|
+
x(a.$slots, "query", {}, () => [
|
|
3729
3724
|
se(na, {
|
|
3730
3725
|
modelValue: t.value,
|
|
3731
|
-
"onUpdate:modelValue":
|
|
3732
|
-
info:
|
|
3733
|
-
"onUpdate:info":
|
|
3726
|
+
"onUpdate:modelValue": u[3] || (u[3] = (Q) => t.value = Q),
|
|
3727
|
+
info: T.value,
|
|
3728
|
+
"onUpdate:info": u[4] || (u[4] = (Q) => T.value = Q),
|
|
3734
3729
|
onQuery: w,
|
|
3735
3730
|
onReset: We
|
|
3736
3731
|
}, ge({
|
|
3737
3732
|
"q-btns": _(() => [
|
|
3738
|
-
|
|
3739
|
-
(
|
|
3740
|
-
fe == "default" ? (
|
|
3741
|
-
|
|
3742
|
-
(te.name === "control-add" ? te.attr.auth() && te.attr.inline === !1 : te.attr.auth()) ?
|
|
3733
|
+
x(a.$slots, "q-btns", {}, () => [
|
|
3734
|
+
(h(!0), z(re, null, N(V(["add", "toggleExpand", "batch", "download", "setting"], k.value, t.value), (Q, fe) => (h(), z(re, null, [
|
|
3735
|
+
fe == "default" ? (h(!0), z(re, { key: 0 }, N(Q, (te) => (h(), z(re, null, [
|
|
3736
|
+
x(a.$slots, te.name + "-left", {}, void 0, !0),
|
|
3737
|
+
(te.name === "control-add" ? te.attr.auth() && te.attr.inline === !1 : te.attr.auth()) ? x(a.$slots, te.name, { key: 0 }, () => {
|
|
3743
3738
|
var Re, Je;
|
|
3744
3739
|
return [
|
|
3745
|
-
te.label ? (
|
|
3740
|
+
te.label ? (h(), E(U(He), A({
|
|
3746
3741
|
key: 0,
|
|
3747
3742
|
title: te.label,
|
|
3748
|
-
disabled: te.name === "control-batch" && ((Re =
|
|
3743
|
+
disabled: te.name === "control-batch" && ((Re = ee.value) == null ? void 0 : Re.length) === 0
|
|
3749
3744
|
}, { ref_for: !0 }, te.attr, {
|
|
3750
3745
|
onClick: (rt) => te.func(k.value, t.value, p.value)
|
|
3751
3746
|
}), {
|
|
@@ -3753,27 +3748,27 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3753
3748
|
Ae(Me(te.label), 1)
|
|
3754
3749
|
]),
|
|
3755
3750
|
_: 2
|
|
3756
|
-
}, 1040, ["title", "disabled", "onClick"])) : (
|
|
3751
|
+
}, 1040, ["title", "disabled", "onClick"])) : (h(), E(U(He), A({
|
|
3757
3752
|
key: 1,
|
|
3758
3753
|
title: te.label,
|
|
3759
|
-
disabled: te.name === "control-batch" && ((Je =
|
|
3754
|
+
disabled: te.name === "control-batch" && ((Je = ee.value) == null ? void 0 : Je.length) === 0
|
|
3760
3755
|
}, { ref_for: !0 }, te.attr, {
|
|
3761
3756
|
onClick: (rt) => te.func(k.value, t.value, p.value)
|
|
3762
3757
|
}), null, 16, ["title", "disabled", "onClick"]))
|
|
3763
3758
|
];
|
|
3764
3759
|
}, !0) : be("", !0),
|
|
3765
|
-
|
|
3766
|
-
], 64))), 256)) : (
|
|
3760
|
+
x(a.$slots, te.name + "-right", {}, void 0, !0)
|
|
3761
|
+
], 64))), 256)) : (h(), E(g, { key: 1 }, {
|
|
3767
3762
|
default: _(() => [
|
|
3768
|
-
(
|
|
3769
|
-
|
|
3770
|
-
(te.name === "control-add" ? te.attr.auth() && te.attr.inline === !1 : te.attr.auth()) ?
|
|
3763
|
+
(h(!0), z(re, null, N(Q, (te) => (h(), z(re, null, [
|
|
3764
|
+
x(a.$slots, te.name + "-left", {}, void 0, !0),
|
|
3765
|
+
(te.name === "control-add" ? te.attr.auth() && te.attr.inline === !1 : te.attr.auth()) ? x(a.$slots, te.name, { key: 0 }, () => {
|
|
3771
3766
|
var Re, Je;
|
|
3772
3767
|
return [
|
|
3773
|
-
te.label ? (
|
|
3768
|
+
te.label ? (h(), E(U(He), A({
|
|
3774
3769
|
key: 0,
|
|
3775
3770
|
title: te.label,
|
|
3776
|
-
disabled: te.name === "control-batch" && ((Re =
|
|
3771
|
+
disabled: te.name === "control-batch" && ((Re = ee.value) == null ? void 0 : Re.length) === 0,
|
|
3777
3772
|
v: ""
|
|
3778
3773
|
}, { ref_for: !0 }, te.attr, {
|
|
3779
3774
|
onClick: (rt) => te.func(k.value, t.value, p.value)
|
|
@@ -3782,16 +3777,16 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3782
3777
|
Ae(Me(te.label), 1)
|
|
3783
3778
|
]),
|
|
3784
3779
|
_: 2
|
|
3785
|
-
}, 1040, ["title", "disabled", "onClick"])) : (
|
|
3780
|
+
}, 1040, ["title", "disabled", "onClick"])) : (h(), E(U(He), A({
|
|
3786
3781
|
key: 1,
|
|
3787
3782
|
title: te.label,
|
|
3788
|
-
disabled: te.name === "control-batch" && ((Je =
|
|
3783
|
+
disabled: te.name === "control-batch" && ((Je = ee.value) == null ? void 0 : Je.length) === 0
|
|
3789
3784
|
}, { ref_for: !0 }, te.attr, {
|
|
3790
3785
|
onClick: (rt) => te.func(k.value, t.value, p.value)
|
|
3791
3786
|
}), null, 16, ["title", "disabled", "onClick"]))
|
|
3792
3787
|
];
|
|
3793
3788
|
}, !0) : be("", !0),
|
|
3794
|
-
|
|
3789
|
+
x(a.$slots, te.name + "-right", {}, void 0, !0)
|
|
3795
3790
|
], 64))), 256))
|
|
3796
3791
|
]),
|
|
3797
3792
|
_: 2
|
|
@@ -3801,185 +3796,185 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3801
3796
|
]),
|
|
3802
3797
|
_: 2
|
|
3803
3798
|
}, [
|
|
3804
|
-
N(a.$slots, (
|
|
3799
|
+
N(a.$slots, (Q, fe, te) => ({
|
|
3805
3800
|
name: fe,
|
|
3806
3801
|
fn: _((Re) => [
|
|
3807
|
-
|
|
3802
|
+
x(a.$slots, fe, { model: t.value }, void 0, !0)
|
|
3808
3803
|
])
|
|
3809
3804
|
}))
|
|
3810
3805
|
]), 1032, ["modelValue", "info"])
|
|
3811
3806
|
], !0)
|
|
3812
3807
|
])) : be("", !0),
|
|
3813
|
-
|
|
3808
|
+
x(a.$slots, "table-title", {
|
|
3814
3809
|
model: t.value,
|
|
3815
|
-
queryInfo:
|
|
3810
|
+
queryInfo: T.value
|
|
3816
3811
|
}, void 0, !0),
|
|
3817
|
-
|
|
3818
|
-
v.value ? (
|
|
3812
|
+
Z("div", Qa, [
|
|
3813
|
+
v.value ? (h(), E(he, A({ key: 0 }, {
|
|
3819
3814
|
...a.$attrs,
|
|
3820
3815
|
...U(Ne)(
|
|
3821
3816
|
t.value.table,
|
|
3822
|
-
(
|
|
3817
|
+
(Q) => !["dblclickType", "page"].includes(Q)
|
|
3823
3818
|
)
|
|
3824
3819
|
}, {
|
|
3825
|
-
"summary-method": (
|
|
3826
|
-
onSortChange:
|
|
3820
|
+
"summary-method": (Q) => t.value.table["summary-method"](Q, { fields: I.value, sums: H.value }),
|
|
3821
|
+
onSortChange: u[5] || (u[5] = (Q) => {
|
|
3827
3822
|
var fe, te;
|
|
3828
|
-
t.value.table.onSortChange(
|
|
3823
|
+
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());
|
|
3829
3824
|
})
|
|
3830
3825
|
}), {
|
|
3831
3826
|
append: _(() => [
|
|
3832
|
-
|
|
3827
|
+
x(a.$slots, "append", {}, void 0, !0)
|
|
3833
3828
|
]),
|
|
3834
3829
|
empty: _(() => [
|
|
3835
|
-
|
|
3830
|
+
x(a.$slots, "empty", {}, void 0, !0)
|
|
3836
3831
|
]),
|
|
3837
3832
|
default: _(() => [
|
|
3838
|
-
|
|
3839
|
-
(
|
|
3833
|
+
x(a.$slots, "default", {}, () => [
|
|
3834
|
+
(h(!0), z(re, null, N(M.value, (Q, fe) => {
|
|
3840
3835
|
var te, Re, Je, rt;
|
|
3841
|
-
return
|
|
3836
|
+
return h(), E(B, A({
|
|
3842
3837
|
prop: fe,
|
|
3843
3838
|
"column-key": fe
|
|
3844
3839
|
}, { ref_for: !0 }, ((Re = (te = t.value) == null ? void 0 : te.table) == null ? void 0 : Re["row-key"]) == fe ? {
|
|
3845
|
-
...U(Ne)(
|
|
3840
|
+
...U(Ne)(Q, (K) => ["label", "width", "min-width", "align", "header-align", "formatter"].includes(K))
|
|
3846
3841
|
} : {
|
|
3847
3842
|
...t.value.tableColumns,
|
|
3848
|
-
...U(Ne)(
|
|
3843
|
+
...U(Ne)(Q, (K) => o.includes(K))
|
|
3849
3844
|
}), ge({
|
|
3850
|
-
header: _(({ column:
|
|
3851
|
-
fe == "control" ?
|
|
3845
|
+
header: _(({ column: K, $index: ie }) => [
|
|
3846
|
+
fe == "control" ? x(a.$slots, `${fe}-header`, {
|
|
3852
3847
|
key: 0,
|
|
3853
|
-
column:
|
|
3848
|
+
column: K,
|
|
3854
3849
|
index: ie
|
|
3855
3850
|
}, () => [
|
|
3856
|
-
|
|
3857
|
-
], !0) :
|
|
3851
|
+
Z("span", null, Me(K.label), 1)
|
|
3852
|
+
], !0) : x(a.$slots, `${fe}-header`, {
|
|
3858
3853
|
key: 1,
|
|
3859
|
-
column:
|
|
3854
|
+
column: K,
|
|
3860
3855
|
index: ie
|
|
3861
3856
|
}, void 0, !0)
|
|
3862
3857
|
]),
|
|
3863
|
-
"filter-icon": _((
|
|
3864
|
-
|
|
3858
|
+
"filter-icon": _((K) => [
|
|
3859
|
+
x(a.$slots, `${fe}-filter-icon`, { data: K }, void 0, !0)
|
|
3865
3860
|
]),
|
|
3866
3861
|
_: 2
|
|
3867
3862
|
}, [
|
|
3868
|
-
|
|
3863
|
+
Q.type === "expand" ? {
|
|
3869
3864
|
name: "default",
|
|
3870
|
-
fn: _(({ row:
|
|
3871
|
-
|
|
3872
|
-
row:
|
|
3865
|
+
fn: _(({ row: K, column: ie, $index: ve }) => [
|
|
3866
|
+
x(a.$slots, `${fe}`, {
|
|
3867
|
+
row: K,
|
|
3873
3868
|
column: ie,
|
|
3874
3869
|
index: ve
|
|
3875
3870
|
}, void 0, !0)
|
|
3876
3871
|
]),
|
|
3877
3872
|
key: "0"
|
|
3878
|
-
} :
|
|
3873
|
+
} : Q.type == "control" ? {
|
|
3879
3874
|
name: "default",
|
|
3880
|
-
fn: _(({ row:
|
|
3875
|
+
fn: _(({ row: K, column: ie, $index: ve }) => {
|
|
3881
3876
|
var it, dt;
|
|
3882
3877
|
return [
|
|
3883
|
-
|
|
3878
|
+
Z("div", {
|
|
3884
3879
|
class: Qt(["control", (it = t.value.control) == null ? void 0 : it.class]),
|
|
3885
3880
|
style: Ye((dt = t.value.control) == null ? void 0 : dt.style)
|
|
3886
3881
|
}, [
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
row:
|
|
3882
|
+
x(a.$slots, "control", {}, () => [
|
|
3883
|
+
x(a.$slots, "control-left", {
|
|
3884
|
+
row: K,
|
|
3890
3885
|
column: ie,
|
|
3891
3886
|
index: ve
|
|
3892
3887
|
}, void 0, !0),
|
|
3893
|
-
(
|
|
3888
|
+
(h(!0), z(re, null, N(V(["view", "edit", "delete", "save"], K, ie, ve, t.value), (nt, ot) => {
|
|
3894
3889
|
var pt;
|
|
3895
|
-
return
|
|
3896
|
-
ot == "default" ? (
|
|
3897
|
-
|
|
3898
|
-
row:
|
|
3890
|
+
return h(), z(re, null, [
|
|
3891
|
+
ot == "default" ? (h(!0), z(re, { key: 0 }, N(nt, (i) => (h(), z(re, null, [
|
|
3892
|
+
x(a.$slots, i.name + "-left", {
|
|
3893
|
+
row: K,
|
|
3899
3894
|
column: ie,
|
|
3900
3895
|
index: ve
|
|
3901
3896
|
}, void 0, !0),
|
|
3902
|
-
|
|
3897
|
+
i.attr.auth() ? x(a.$slots, i.name, {
|
|
3903
3898
|
key: 0,
|
|
3904
|
-
row:
|
|
3899
|
+
row: K,
|
|
3905
3900
|
column: ie,
|
|
3906
3901
|
index: ve
|
|
3907
3902
|
}, () => [
|
|
3908
|
-
|
|
3903
|
+
i.label ? (h(), E(U(He), A({
|
|
3909
3904
|
key: 0,
|
|
3910
|
-
title:
|
|
3911
|
-
}, { ref_for: !0 },
|
|
3912
|
-
onClick: (oe) =>
|
|
3905
|
+
title: i.label
|
|
3906
|
+
}, { ref_for: !0 }, i.attr, {
|
|
3907
|
+
onClick: (oe) => i.func(K, ie, ve, t.value)
|
|
3913
3908
|
}), {
|
|
3914
3909
|
default: _(() => [
|
|
3915
|
-
Ae(Me(
|
|
3910
|
+
Ae(Me(i.label), 1)
|
|
3916
3911
|
]),
|
|
3917
3912
|
_: 2
|
|
3918
|
-
}, 1040, ["title", "onClick"])) : (
|
|
3913
|
+
}, 1040, ["title", "onClick"])) : (h(), E(U(He), A({
|
|
3919
3914
|
key: 1,
|
|
3920
|
-
title:
|
|
3921
|
-
}, { ref_for: !0 },
|
|
3922
|
-
onClick: (oe) =>
|
|
3915
|
+
title: i.label
|
|
3916
|
+
}, { ref_for: !0 }, i.attr, {
|
|
3917
|
+
onClick: (oe) => i.func(K, ie, ve, t.value)
|
|
3923
3918
|
}), null, 16, ["title", "onClick"]))
|
|
3924
3919
|
], !0) : be("", !0),
|
|
3925
|
-
|
|
3926
|
-
row:
|
|
3920
|
+
x(a.$slots, i.name + "-right", {
|
|
3921
|
+
row: K,
|
|
3927
3922
|
column: ie,
|
|
3928
3923
|
index: ve
|
|
3929
3924
|
}, void 0, !0)
|
|
3930
|
-
], 64))), 256)) : ot != null && ot.startsWith("dropdown") && ((pt = Se(
|
|
3925
|
+
], 64))), 256)) : ot != null && ot.startsWith("dropdown") && ((pt = Se(K, ie, ve, t.value)) != null && pt.auth()) ? (h(), E(R, A({
|
|
3931
3926
|
key: 1,
|
|
3932
3927
|
ref_for: !0
|
|
3933
|
-
}, Se(
|
|
3928
|
+
}, Se(K, ie, ve, t.value)), {
|
|
3934
3929
|
dropdown: _(() => [
|
|
3935
3930
|
se(q, null, {
|
|
3936
3931
|
default: _(() => [
|
|
3937
|
-
(
|
|
3932
|
+
(h(!0), z(re, null, N(nt, (i) => {
|
|
3938
3933
|
var oe, ce, Be;
|
|
3939
|
-
return
|
|
3940
|
-
a.$slots[
|
|
3934
|
+
return h(), z(re, null, [
|
|
3935
|
+
a.$slots[i.name + "-left"] ? x(a.$slots, i.name + "-left", {
|
|
3941
3936
|
key: 0,
|
|
3942
|
-
row:
|
|
3937
|
+
row: K,
|
|
3943
3938
|
column: ie,
|
|
3944
3939
|
index: ve
|
|
3945
3940
|
}, void 0, !0) : be("", !0),
|
|
3946
|
-
|
|
3941
|
+
i.attr.auth() ? (h(), E(C, A({
|
|
3947
3942
|
key: 1,
|
|
3948
3943
|
ref_for: !0
|
|
3949
3944
|
}, {
|
|
3950
|
-
command: (oe =
|
|
3951
|
-
divided: (ce =
|
|
3952
|
-
disabled: (Be =
|
|
3945
|
+
command: (oe = i == null ? void 0 : i.attr) == null ? void 0 : oe.command,
|
|
3946
|
+
divided: (ce = i == null ? void 0 : i.attr) == null ? void 0 : ce.divided,
|
|
3947
|
+
disabled: (Be = i == null ? void 0 : i.attr) == null ? void 0 : Be.disabled
|
|
3953
3948
|
}), {
|
|
3954
3949
|
default: _(() => [
|
|
3955
|
-
|
|
3956
|
-
row:
|
|
3950
|
+
x(a.$slots, i.name, {
|
|
3951
|
+
row: K,
|
|
3957
3952
|
column: ie,
|
|
3958
3953
|
index: ve
|
|
3959
3954
|
}, () => [
|
|
3960
|
-
|
|
3955
|
+
i.label ? (h(), E(U(He), A({
|
|
3961
3956
|
key: 0,
|
|
3962
|
-
title:
|
|
3963
|
-
}, { ref_for: !0 },
|
|
3964
|
-
onClick: (ft) =>
|
|
3957
|
+
title: i.label
|
|
3958
|
+
}, { ref_for: !0 }, i.attr, {
|
|
3959
|
+
onClick: (ft) => i.func(K, ie, ve, t.value)
|
|
3965
3960
|
}), {
|
|
3966
3961
|
default: _(() => [
|
|
3967
|
-
Ae(Me(
|
|
3962
|
+
Ae(Me(i.label), 1)
|
|
3968
3963
|
]),
|
|
3969
3964
|
_: 2
|
|
3970
|
-
}, 1040, ["title", "onClick"])) : (
|
|
3965
|
+
}, 1040, ["title", "onClick"])) : (h(), E(U(He), A({
|
|
3971
3966
|
key: 1,
|
|
3972
|
-
title:
|
|
3973
|
-
}, { ref_for: !0 },
|
|
3974
|
-
onClick: (ft) =>
|
|
3967
|
+
title: i.label
|
|
3968
|
+
}, { ref_for: !0 }, i.attr, {
|
|
3969
|
+
onClick: (ft) => i.func(K, ie, ve, t.value)
|
|
3975
3970
|
}), null, 16, ["title", "onClick"]))
|
|
3976
3971
|
], !0)
|
|
3977
3972
|
]),
|
|
3978
3973
|
_: 2
|
|
3979
3974
|
}, 1040)) : be("", !0),
|
|
3980
|
-
a.$slots[
|
|
3975
|
+
a.$slots[i.name + "-right"] ? x(a.$slots, i.name + "-right", {
|
|
3981
3976
|
key: 2,
|
|
3982
|
-
row:
|
|
3977
|
+
row: K,
|
|
3983
3978
|
column: ie,
|
|
3984
3979
|
index: ve
|
|
3985
3980
|
}, void 0, !0) : be("", !0)
|
|
@@ -3990,45 +3985,45 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3990
3985
|
}, 1024)
|
|
3991
3986
|
]),
|
|
3992
3987
|
default: _(() => {
|
|
3993
|
-
var
|
|
3988
|
+
var i;
|
|
3994
3989
|
return [
|
|
3995
|
-
Ae(Me((
|
|
3990
|
+
Ae(Me((i = Se(K, ie, ve, t.value)) == null ? void 0 : i.label) + " ", 1)
|
|
3996
3991
|
];
|
|
3997
3992
|
}),
|
|
3998
3993
|
_: 2
|
|
3999
|
-
}, 1040)) : (
|
|
3994
|
+
}, 1040)) : (h(), E(g, { key: 2 }, {
|
|
4000
3995
|
default: _(() => [
|
|
4001
|
-
(
|
|
4002
|
-
|
|
4003
|
-
row:
|
|
3996
|
+
(h(!0), z(re, null, N(nt, (i) => (h(), z(re, null, [
|
|
3997
|
+
x(a.$slots, i.name + "-left", {
|
|
3998
|
+
row: K,
|
|
4004
3999
|
column: ie,
|
|
4005
4000
|
index: ve
|
|
4006
4001
|
}, void 0, !0),
|
|
4007
|
-
|
|
4002
|
+
i.attr.auth() ? x(a.$slots, i.name, {
|
|
4008
4003
|
key: 0,
|
|
4009
|
-
row:
|
|
4004
|
+
row: K,
|
|
4010
4005
|
column: ie,
|
|
4011
4006
|
index: ve
|
|
4012
4007
|
}, () => [
|
|
4013
|
-
|
|
4008
|
+
i.label ? (h(), E(U(He), A({
|
|
4014
4009
|
key: 0,
|
|
4015
|
-
title:
|
|
4016
|
-
}, { ref_for: !0 },
|
|
4017
|
-
onClick: (oe) =>
|
|
4010
|
+
title: i.label
|
|
4011
|
+
}, { ref_for: !0 }, i.attr, {
|
|
4012
|
+
onClick: (oe) => i.func(K, ie, ve, t.value)
|
|
4018
4013
|
}), {
|
|
4019
4014
|
default: _(() => [
|
|
4020
|
-
Ae(Me(
|
|
4015
|
+
Ae(Me(i.label), 1)
|
|
4021
4016
|
]),
|
|
4022
4017
|
_: 2
|
|
4023
|
-
}, 1040, ["title", "onClick"])) : (
|
|
4018
|
+
}, 1040, ["title", "onClick"])) : (h(), E(U(He), A({
|
|
4024
4019
|
key: 1,
|
|
4025
|
-
title:
|
|
4026
|
-
}, { ref_for: !0 },
|
|
4027
|
-
onClick: (oe) =>
|
|
4020
|
+
title: i.label
|
|
4021
|
+
}, { ref_for: !0 }, i.attr, {
|
|
4022
|
+
onClick: (oe) => i.func(K, ie, ve, t.value)
|
|
4028
4023
|
}), null, 16, ["title", "onClick"]))
|
|
4029
4024
|
], !0) : be("", !0),
|
|
4030
|
-
|
|
4031
|
-
row:
|
|
4025
|
+
x(a.$slots, i.name + "-right", {
|
|
4026
|
+
row: K,
|
|
4032
4027
|
column: ie,
|
|
4033
4028
|
index: ve
|
|
4034
4029
|
}, void 0, !0)
|
|
@@ -4038,8 +4033,8 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4038
4033
|
}, 1024))
|
|
4039
4034
|
], 64);
|
|
4040
4035
|
}), 256)),
|
|
4041
|
-
|
|
4042
|
-
row:
|
|
4036
|
+
x(a.$slots, "control-right", {
|
|
4037
|
+
row: K,
|
|
4043
4038
|
column: ie,
|
|
4044
4039
|
index: ve
|
|
4045
4040
|
}, void 0, !0)
|
|
@@ -4048,52 +4043,52 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4048
4043
|
];
|
|
4049
4044
|
}),
|
|
4050
4045
|
key: "1"
|
|
4051
|
-
} :
|
|
4046
|
+
} : Q.type != "selection" && Q.type != "index" && ((rt = (Je = t.value) == null ? void 0 : Je.table) == null ? void 0 : rt["row-key"]) != fe ? {
|
|
4052
4047
|
name: "default",
|
|
4053
|
-
fn: _(({ row:
|
|
4054
|
-
Ue(
|
|
4048
|
+
fn: _(({ row: K, column: ie, $index: ve }) => [
|
|
4049
|
+
Ue(Q, K, ie, ve) && ve != -1 ? x(a.$slots, `${fe}`, {
|
|
4055
4050
|
key: 0,
|
|
4056
|
-
row:
|
|
4051
|
+
row: K,
|
|
4057
4052
|
column: ie,
|
|
4058
4053
|
index: ve
|
|
4059
4054
|
}, () => {
|
|
4060
4055
|
var it;
|
|
4061
4056
|
return [
|
|
4062
|
-
(
|
|
4063
|
-
modelValue:
|
|
4064
|
-
"onUpdate:modelValue": (dt) =>
|
|
4065
|
-
item:
|
|
4057
|
+
(h(), E(ht, {
|
|
4058
|
+
modelValue: K[fe],
|
|
4059
|
+
"onUpdate:modelValue": (dt) => K[fe] = dt,
|
|
4060
|
+
item: Q == null ? void 0 : Q.table(K, ie, ve),
|
|
4066
4061
|
ctrlKey: fe,
|
|
4067
|
-
key: `${fe}-${ve} -${
|
|
4068
|
-
ctrlType: (it =
|
|
4062
|
+
key: `${fe}-${ve} -${X.value}`,
|
|
4063
|
+
ctrlType: (it = Q.table(K, ie, ve)) != null && it.type ? Q.table(K, ie, ve).type : Q.type,
|
|
4069
4064
|
model: t.value,
|
|
4070
4065
|
class: "g-ctrl-container",
|
|
4071
4066
|
t: "t",
|
|
4072
|
-
formInfo:
|
|
4067
|
+
formInfo: K
|
|
4073
4068
|
}, ge({ _: 2 }, [
|
|
4074
4069
|
N(a.$slots, (dt, nt) => ({
|
|
4075
4070
|
name: nt,
|
|
4076
4071
|
fn: _((ot) => [
|
|
4077
|
-
|
|
4072
|
+
x(a.$slots, nt, {
|
|
4078
4073
|
data: ot,
|
|
4079
|
-
item:
|
|
4074
|
+
item: Q,
|
|
4080
4075
|
model: t.value
|
|
4081
4076
|
}, void 0, !0)
|
|
4082
4077
|
])
|
|
4083
4078
|
}))
|
|
4084
4079
|
]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"]))
|
|
4085
4080
|
];
|
|
4086
|
-
}, !0) :
|
|
4081
|
+
}, !0) : x(a.$slots, `${fe}`, {
|
|
4087
4082
|
key: 1,
|
|
4088
|
-
row:
|
|
4083
|
+
row: K,
|
|
4089
4084
|
column: ie,
|
|
4090
4085
|
index: ve
|
|
4091
4086
|
}, () => [
|
|
4092
|
-
|
|
4093
|
-
style: Ye([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" },
|
|
4087
|
+
Z("div", {
|
|
4088
|
+
style: Ye([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, Q == null ? void 0 : Q.style]),
|
|
4094
4089
|
innerHTML: Te(
|
|
4095
|
-
|
|
4096
|
-
typeof ie.formatter == "function" ? ie.formatter(
|
|
4090
|
+
Q,
|
|
4091
|
+
typeof ie.formatter == "function" ? ie.formatter(K, ie, K[fe], ve) : K[fe]
|
|
4097
4092
|
)
|
|
4098
4093
|
}, null, 12, Za)
|
|
4099
4094
|
], !0)
|
|
@@ -4106,15 +4101,15 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4106
4101
|
]),
|
|
4107
4102
|
_: 3
|
|
4108
4103
|
}, 16, ["summary-method"])) : be("", !0),
|
|
4109
|
-
(Ct = (_t = (st = t.value) == null ? void 0 : st.table) == null ? void 0 : _t.page) != null && Ct.hidden ? be("", !0) :
|
|
4104
|
+
(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 }, () => [
|
|
4110
4105
|
se(we, A({
|
|
4111
4106
|
"page-size": t.value.table.page.pageSize,
|
|
4112
|
-
"onUpdate:pageSize":
|
|
4107
|
+
"onUpdate:pageSize": u[6] || (u[6] = (Q) => t.value.table.page.pageSize = Q),
|
|
4113
4108
|
"current-page": t.value.table.page.currentPage,
|
|
4114
|
-
"onUpdate:currentPage":
|
|
4109
|
+
"onUpdate:currentPage": u[7] || (u[7] = (Q) => t.value.table.page.currentPage = Q)
|
|
4115
4110
|
}, t.value.table.page), {
|
|
4116
4111
|
default: _(() => [
|
|
4117
|
-
|
|
4112
|
+
x(a.$slots, "table-page", {}, void 0, !0)
|
|
4118
4113
|
]),
|
|
4119
4114
|
_: 3
|
|
4120
4115
|
}, 16, ["page-size", "current-page"])
|
|
@@ -4134,52 +4129,52 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4134
4129
|
modelModifiers: {}
|
|
4135
4130
|
},
|
|
4136
4131
|
emits: /* @__PURE__ */ at(["load"], ["update:modelValue"]),
|
|
4137
|
-
setup(r, { emit:
|
|
4138
|
-
var p, L,
|
|
4139
|
-
const e =
|
|
4132
|
+
setup(r, { emit: s }) {
|
|
4133
|
+
var p, L, H, I;
|
|
4134
|
+
const e = s, l = lt(r, "modelValue"), n = It(), d = ae(
|
|
4140
4135
|
typeof ((p = n == null ? void 0 : n.tree) == null ? void 0 : p.width) == "number" ? `${n.tree.width}px` : ((L = n == null ? void 0 : n.tree) == null ? void 0 : L.width) || "180px"
|
|
4141
|
-
), t = ae(((
|
|
4142
|
-
var
|
|
4136
|
+
), t = ae(((H = n == null ? void 0 : n.tree) == null ? void 0 : H.search) === void 0 ? !0 : (I = n == null ? void 0 : n.tree) == null ? void 0 : I.search), c = ae({}), T = ae(""), v = ae(null), m = (k, X) => {
|
|
4137
|
+
var ee, ne;
|
|
4143
4138
|
if (!k) return !0;
|
|
4144
|
-
const
|
|
4145
|
-
return
|
|
4146
|
-
},
|
|
4147
|
-
e("load",
|
|
4148
|
-
},
|
|
4149
|
-
|
|
4139
|
+
const J = ((ne = (ee = n.tree) == null ? void 0 : ee.props) == null ? void 0 : ne.label) || "label";
|
|
4140
|
+
return X[J].includes(k);
|
|
4141
|
+
}, f = (k, X) => {
|
|
4142
|
+
e("load", c.value, k, X);
|
|
4143
|
+
}, o = (k) => {
|
|
4144
|
+
c.value = k, l.value.table.load();
|
|
4150
4145
|
};
|
|
4151
|
-
return Zt(
|
|
4146
|
+
return Zt(T, (k) => {
|
|
4152
4147
|
v.value.filter(k);
|
|
4153
|
-
}), (k,
|
|
4154
|
-
const
|
|
4155
|
-
return
|
|
4156
|
-
|
|
4148
|
+
}), (k, X) => {
|
|
4149
|
+
const J = F("el-input"), ee = F("el-tree"), ne = F("g-table");
|
|
4150
|
+
return h(), z("div", er, [
|
|
4151
|
+
Z("div", {
|
|
4157
4152
|
class: "g-tree-left",
|
|
4158
|
-
style: Ye({ width:
|
|
4153
|
+
style: Ye({ width: d.value })
|
|
4159
4154
|
}, [
|
|
4160
|
-
t.value ? (
|
|
4155
|
+
t.value ? (h(), E(J, {
|
|
4161
4156
|
key: 0,
|
|
4162
|
-
modelValue:
|
|
4163
|
-
"onUpdate:modelValue":
|
|
4157
|
+
modelValue: T.value,
|
|
4158
|
+
"onUpdate:modelValue": X[0] || (X[0] = (ue) => T.value = ue),
|
|
4164
4159
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
4165
4160
|
placeholder: "输入节点查询",
|
|
4166
4161
|
clearable: ""
|
|
4167
4162
|
}, null, 8, ["modelValue"])) : be("", !0),
|
|
4168
|
-
|
|
4169
|
-
se(
|
|
4170
|
-
style: { width:
|
|
4171
|
-
"filter-node-method":
|
|
4163
|
+
Z("div", tr, [
|
|
4164
|
+
se(ee, A({
|
|
4165
|
+
style: { width: d.value },
|
|
4166
|
+
"filter-node-method": m,
|
|
4172
4167
|
"expand-on-click-node": !1,
|
|
4173
4168
|
ref_key: "treeRef",
|
|
4174
4169
|
ref: v,
|
|
4175
|
-
onNodeClick:
|
|
4170
|
+
onNodeClick: o
|
|
4176
4171
|
}, k.$attrs.tree), ge({
|
|
4177
4172
|
default: _(({ node: ue, data: pe }) => [
|
|
4178
|
-
|
|
4173
|
+
x(k.$slots, "tree", {
|
|
4179
4174
|
node: ue,
|
|
4180
4175
|
data: pe
|
|
4181
4176
|
}, () => [
|
|
4182
|
-
|
|
4177
|
+
Z("span", null, Me(ue.label), 1)
|
|
4183
4178
|
], !0)
|
|
4184
4179
|
]),
|
|
4185
4180
|
_: 2
|
|
@@ -4187,24 +4182,24 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4187
4182
|
N(k.$slots, (ue, pe, Se) => ({
|
|
4188
4183
|
name: pe,
|
|
4189
4184
|
fn: _((De) => [
|
|
4190
|
-
|
|
4185
|
+
x(k.$slots, pe, { data: De }, void 0, !0)
|
|
4191
4186
|
])
|
|
4192
4187
|
}))
|
|
4193
4188
|
]), 1040, ["style"])
|
|
4194
4189
|
])
|
|
4195
4190
|
], 4),
|
|
4196
|
-
|
|
4191
|
+
Z("div", lr, [
|
|
4197
4192
|
se(ne, A({
|
|
4198
4193
|
modelValue: l.value,
|
|
4199
|
-
"onUpdate:modelValue":
|
|
4194
|
+
"onUpdate:modelValue": X[1] || (X[1] = (ue) => l.value = ue)
|
|
4200
4195
|
}, k.$attrs, {
|
|
4201
|
-
onLoad:
|
|
4202
|
-
node:
|
|
4196
|
+
onLoad: f,
|
|
4197
|
+
node: c.value
|
|
4203
4198
|
}), ge({ _: 2 }, [
|
|
4204
4199
|
N(k.$slots, (ue, pe, Se) => ({
|
|
4205
4200
|
name: pe,
|
|
4206
4201
|
fn: _((De) => [
|
|
4207
|
-
|
|
4202
|
+
x(k.$slots, pe, { data: De }, void 0, !0)
|
|
4208
4203
|
])
|
|
4209
4204
|
}))
|
|
4210
4205
|
]), 1040, ["modelValue", "node"])
|
|
@@ -4240,23 +4235,23 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4240
4235
|
}
|
|
4241
4236
|
},
|
|
4242
4237
|
setup(r) {
|
|
4243
|
-
const
|
|
4244
|
-
return (e, l) =>
|
|
4245
|
-
(
|
|
4238
|
+
const s = r;
|
|
4239
|
+
return (e, l) => s.title ? (h(), z("div", nr, [
|
|
4240
|
+
(h(!0), z(re, null, N(s.columns, (n) => (h(), z("span", {
|
|
4246
4241
|
style: Ye({ width: (n == null ? void 0 : n.width) || Pt, ...n == null ? void 0 : n.titleStyle, textAlign: (n == null ? void 0 : n.align) || "center" }),
|
|
4247
4242
|
key: n.key
|
|
4248
4243
|
}, [
|
|
4249
|
-
|
|
4244
|
+
x(e.$slots, `${r.t}-title-${n.key}`, { col: n }, () => [
|
|
4250
4245
|
Ae(Me(n.label), 1)
|
|
4251
4246
|
], !0)
|
|
4252
4247
|
], 4))), 128))
|
|
4253
|
-
])) : (
|
|
4254
|
-
(
|
|
4248
|
+
])) : (h(), z("div", or, [
|
|
4249
|
+
(h(!0), z(re, null, N(s.columns, (n) => (h(), z("span", {
|
|
4255
4250
|
style: Ye({ width: (n == null ? void 0 : n.width) || Pt, textAlign: (n == null ? void 0 : n.align) || "center", ...n == null ? void 0 : n.style }),
|
|
4256
4251
|
key: n.key,
|
|
4257
4252
|
title: r.data[n.key]
|
|
4258
4253
|
}, [
|
|
4259
|
-
|
|
4254
|
+
x(e.$slots, `${r.t}-option-${n.key}`, { col: n }, () => [
|
|
4260
4255
|
Ae(Me(r.data[n.key] ?? "-"), 1)
|
|
4261
4256
|
], !0)
|
|
4262
4257
|
], 12, ur))), 128))
|
|
@@ -4265,31 +4260,31 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4265
4260
|
}), ir = /* @__PURE__ */ et(sr, [["__scopeId", "data-v-c0ac6b77"]]), dr = Object.freeze({}), Ft = [Ka, dl, rr, ir, jt];
|
|
4266
4261
|
let Dt = {};
|
|
4267
4262
|
const Cr = {
|
|
4268
|
-
install: (r,
|
|
4269
|
-
Dt = Object.freeze({ ...dr, ...
|
|
4263
|
+
install: (r, s = {}) => {
|
|
4264
|
+
Dt = Object.freeze({ ...dr, ...s }), Ft.forEach((e) => {
|
|
4270
4265
|
r.component(e.name, e);
|
|
4271
4266
|
}), r.provide("options", Dt), r.config.globalProperties.$openModal = Lt, r.config.globalProperties.$open = pl;
|
|
4272
4267
|
}
|
|
4273
|
-
}, cr = (r) => ({ dialog: gl, drawer: yl })[r] || null, Lt = (r = {},
|
|
4268
|
+
}, cr = (r) => ({ dialog: gl, drawer: yl })[r] || null, Lt = (r = {}, s = "dialog") => {
|
|
4274
4269
|
if (typeof document > "u") return () => {
|
|
4275
4270
|
};
|
|
4276
4271
|
const e = document.createElement("div");
|
|
4277
4272
|
let l = () => {
|
|
4278
4273
|
};
|
|
4279
|
-
const n = cr(
|
|
4274
|
+
const n = cr(s);
|
|
4280
4275
|
if (!n) return () => {
|
|
4281
4276
|
};
|
|
4282
|
-
const
|
|
4277
|
+
const d = ae(!0), t = Jt({
|
|
4283
4278
|
setup() {
|
|
4284
4279
|
return l = () => {
|
|
4285
|
-
|
|
4280
|
+
d.value = !1, setTimeout(() => {
|
|
4286
4281
|
t.unmount(), e.remove();
|
|
4287
4282
|
}, 300);
|
|
4288
4283
|
}, () => {
|
|
4289
|
-
var
|
|
4284
|
+
var c, T, v;
|
|
4290
4285
|
return _e(n, {
|
|
4291
|
-
modelValue:
|
|
4292
|
-
"onUpdate:modelValue": (
|
|
4286
|
+
modelValue: d.value,
|
|
4287
|
+
"onUpdate:modelValue": (m) => d.value = m,
|
|
4293
4288
|
appendToBody: !0,
|
|
4294
4289
|
draggable: !0,
|
|
4295
4290
|
"align-center": !0,
|
|
@@ -4298,8 +4293,8 @@ const Cr = {
|
|
|
4298
4293
|
"close-on-click-modal": !1,
|
|
4299
4294
|
...r
|
|
4300
4295
|
}, {
|
|
4301
|
-
default: (
|
|
4302
|
-
header: (
|
|
4296
|
+
default: (c = r.slots) == null ? void 0 : c.default,
|
|
4297
|
+
header: (T = r.slots) == null ? void 0 : T.header,
|
|
4303
4298
|
footer: (v = r.slots) == null ? void 0 : v.footer
|
|
4304
4299
|
});
|
|
4305
4300
|
};
|
|
@@ -4308,43 +4303,43 @@ const Cr = {
|
|
|
4308
4303
|
mt();
|
|
4309
4304
|
}
|
|
4310
4305
|
});
|
|
4311
|
-
return Ft.forEach((
|
|
4312
|
-
t.component(
|
|
4306
|
+
return Ft.forEach((c) => {
|
|
4307
|
+
t.component(c.name, c);
|
|
4313
4308
|
}), t.provide("options", Dt), t.use(Nt, { locale: nl }), document.body.appendChild(e), t.mount(e), l;
|
|
4314
4309
|
}, pl = (r = {}) => {
|
|
4315
4310
|
if (typeof document > "u") return () => {
|
|
4316
4311
|
};
|
|
4317
|
-
const
|
|
4312
|
+
const s = document.createElement("div");
|
|
4318
4313
|
let e = () => {
|
|
4319
4314
|
};
|
|
4320
4315
|
const l = ae(!0), n = Jt({
|
|
4321
4316
|
setup() {
|
|
4322
4317
|
e = () => {
|
|
4323
4318
|
l.value = !1, setTimeout(() => {
|
|
4324
|
-
n.unmount(),
|
|
4319
|
+
n.unmount(), s.remove();
|
|
4325
4320
|
}, 300);
|
|
4326
|
-
}, Zt(l, (
|
|
4327
|
-
|
|
4328
|
-
n.unmount(),
|
|
4321
|
+
}, Zt(l, (T) => {
|
|
4322
|
+
T || setTimeout(() => {
|
|
4323
|
+
n.unmount(), s.remove();
|
|
4329
4324
|
}, 300);
|
|
4330
4325
|
});
|
|
4331
|
-
const { close:
|
|
4326
|
+
const { close: d, ...t } = r, c = {
|
|
4332
4327
|
modelValue: l.value,
|
|
4333
|
-
"onUpdate:modelValue": (
|
|
4328
|
+
"onUpdate:modelValue": (T) => l.value = T,
|
|
4334
4329
|
//'close-on-click-modal': false,
|
|
4335
4330
|
...t
|
|
4336
4331
|
};
|
|
4337
|
-
return
|
|
4332
|
+
return d && (c.onClose = d), () => _e(jt, c, r.slots);
|
|
4338
4333
|
},
|
|
4339
4334
|
mounted: () => {
|
|
4340
4335
|
mt();
|
|
4341
4336
|
}
|
|
4342
4337
|
});
|
|
4343
|
-
return Ft.forEach((
|
|
4344
|
-
n.component(
|
|
4345
|
-
}), n.provide("options", Dt), n.use(Nt, { locale: nl }), document.body.appendChild(
|
|
4338
|
+
return Ft.forEach((d) => {
|
|
4339
|
+
n.component(d.name, d);
|
|
4340
|
+
}), n.provide("options", Dt), n.use(Nt, { locale: nl }), document.body.appendChild(s), n.mount(s), e;
|
|
4346
4341
|
};
|
|
4347
|
-
function fr(r,
|
|
4342
|
+
function fr(r, s = window.innerWidth) {
|
|
4348
4343
|
if (typeof r == "number")
|
|
4349
4344
|
return r;
|
|
4350
4345
|
if (r.endsWith("px"))
|
|
@@ -4355,39 +4350,39 @@ function fr(r, u = window.innerWidth) {
|
|
|
4355
4350
|
if (r.endsWith("vw"))
|
|
4356
4351
|
return l * parseFloat(r) / 100;
|
|
4357
4352
|
if (r.endsWith("%")) {
|
|
4358
|
-
if (typeof
|
|
4353
|
+
if (typeof s != "number")
|
|
4359
4354
|
throw new Error("Reference size is required to convert % to px");
|
|
4360
|
-
return
|
|
4355
|
+
return s * parseFloat(r) / 100;
|
|
4361
4356
|
}
|
|
4362
4357
|
if (r.startsWith("calc(") && r.endsWith(")")) {
|
|
4363
|
-
let
|
|
4364
|
-
if (/[0-9+\-*/().\s]+$/.test(
|
|
4365
|
-
return new Function("return " +
|
|
4358
|
+
let d = function(c) {
|
|
4359
|
+
if (/[0-9+\-*/().\s]+$/.test(c))
|
|
4360
|
+
return new Function("return " + c)();
|
|
4366
4361
|
throw new Error("Invalid calc expression");
|
|
4367
4362
|
};
|
|
4368
4363
|
const n = r.slice(5, -1).trim();
|
|
4369
|
-
return
|
|
4364
|
+
return d(n.replace(/([0-9.]+)([a-z%]+)/g, (c, T, v) => fr(T + v, s)));
|
|
4370
4365
|
}
|
|
4371
4366
|
throw new Error("Unsupported unit in value: " + r);
|
|
4372
4367
|
}
|
|
4373
4368
|
const qe = (...r) => {
|
|
4374
|
-
const
|
|
4375
|
-
l[
|
|
4369
|
+
const s = {}, e = (l, n) => (Object.keys(n).forEach((d) => {
|
|
4370
|
+
l[d] = typeof n[d] == "object" && !Array.isArray(n[d]) ? e(l[d] || {}, n[d]) : n[d];
|
|
4376
4371
|
}), l);
|
|
4377
|
-
return r.forEach((l = {}) => e(
|
|
4372
|
+
return r.forEach((l = {}) => e(s, l)), s;
|
|
4378
4373
|
};
|
|
4379
|
-
function Ne(r,
|
|
4374
|
+
function Ne(r, s = (e, l) => l != null) {
|
|
4380
4375
|
const e = {};
|
|
4381
4376
|
for (const l in r)
|
|
4382
|
-
r.hasOwnProperty(l) &&
|
|
4377
|
+
r.hasOwnProperty(l) && s(l, r[l]) && (e[l] = r[l]);
|
|
4383
4378
|
return e;
|
|
4384
4379
|
}
|
|
4385
|
-
function vr(r,
|
|
4386
|
-
for (const
|
|
4387
|
-
if (
|
|
4388
|
-
return
|
|
4389
|
-
if (
|
|
4390
|
-
const t = vr(
|
|
4380
|
+
function vr(r, s, e = "value", l = "label", n = "children") {
|
|
4381
|
+
for (const d of r) {
|
|
4382
|
+
if (d[e] === s)
|
|
4383
|
+
return d[l];
|
|
4384
|
+
if (d[n] && d[n].length > 0) {
|
|
4385
|
+
const t = vr(d[n], s, e, l, n);
|
|
4391
4386
|
if (t)
|
|
4392
4387
|
return t;
|
|
4393
4388
|
}
|
|
@@ -4396,48 +4391,48 @@ function vr(r, u, e = "value", l = "label", n = "children") {
|
|
|
4396
4391
|
}
|
|
4397
4392
|
function Ht(r) {
|
|
4398
4393
|
if (!r || isNaN(r)) return "零";
|
|
4399
|
-
const
|
|
4394
|
+
const s = ["角", "分"], e = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], l = [
|
|
4400
4395
|
["元", "万", "亿"],
|
|
4401
4396
|
["", "拾", "佰", "仟"]
|
|
4402
4397
|
], n = r < 0 ? "欠" : "";
|
|
4403
4398
|
r = Math.abs(r);
|
|
4404
|
-
let
|
|
4405
|
-
for (let t = 0; t <
|
|
4406
|
-
|
|
4407
|
-
|
|
4399
|
+
let d = "";
|
|
4400
|
+
for (let t = 0; t < s.length; t++)
|
|
4401
|
+
d += (e[Math.floor(r * 10 * Math.pow(10, t)) % 10] + s[t]).replace(/零./, "");
|
|
4402
|
+
d = d || "整", r = Math.floor(r);
|
|
4408
4403
|
for (let t = 0; t < l[0].length && r > 0; t++) {
|
|
4409
|
-
let
|
|
4410
|
-
for (let
|
|
4411
|
-
|
|
4412
|
-
|
|
4404
|
+
let c = "";
|
|
4405
|
+
for (let T = 0; T < l[1].length && r > 0; T++)
|
|
4406
|
+
c = e[r % 10] + l[1][T] + c, r = Math.floor(r / 10);
|
|
4407
|
+
d = c.replace(/(零.)*零$/, "").replace(/^$/, "零") + l[0][t] + d;
|
|
4413
4408
|
}
|
|
4414
|
-
return n +
|
|
4409
|
+
return n + d.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
4415
4410
|
}
|
|
4416
|
-
function pr(r,
|
|
4411
|
+
function pr(r, s = 2, e = !1) {
|
|
4417
4412
|
let l = Number(r);
|
|
4418
4413
|
if (isNaN(l) || !isFinite(l))
|
|
4419
4414
|
return "0.00";
|
|
4420
4415
|
const n = l < 0;
|
|
4421
4416
|
l = Math.abs(l);
|
|
4422
|
-
let
|
|
4423
|
-
e && (
|
|
4424
|
-
const [t,
|
|
4417
|
+
let d = l.toFixed(s);
|
|
4418
|
+
e && (d = d.replace(/\.?0+$/, ""));
|
|
4419
|
+
const [t, c] = d.split("."), T = t.replace(/\B(?=(\d{3})+(?!\d))/g, ","), v = c ? `${T}.${c}` : T;
|
|
4425
4420
|
return n ? `-${v}` : v;
|
|
4426
4421
|
}
|
|
4427
|
-
function mr(r,
|
|
4422
|
+
function mr(r, s) {
|
|
4428
4423
|
let e = null;
|
|
4429
4424
|
return function(...l) {
|
|
4430
4425
|
e && clearTimeout(e), e = setTimeout(() => {
|
|
4431
4426
|
r.apply(this, l);
|
|
4432
|
-
},
|
|
4427
|
+
}, s);
|
|
4433
4428
|
};
|
|
4434
4429
|
}
|
|
4435
|
-
function xr(r,
|
|
4430
|
+
function xr(r, s) {
|
|
4436
4431
|
let e = null;
|
|
4437
4432
|
return function(...l) {
|
|
4438
4433
|
e || (e = setTimeout(() => {
|
|
4439
4434
|
r.apply(this, l), e = null;
|
|
4440
|
-
},
|
|
4435
|
+
}, s));
|
|
4441
4436
|
};
|
|
4442
4437
|
}
|
|
4443
4438
|
const xe = {
|
|
@@ -4474,8 +4469,8 @@ const xe = {
|
|
|
4474
4469
|
const r = document.querySelector(".el-dialog");
|
|
4475
4470
|
if (!r || r.querySelector(".dialog-resize-handle"))
|
|
4476
4471
|
return;
|
|
4477
|
-
const
|
|
4478
|
-
r.appendChild(
|
|
4472
|
+
const s = hr();
|
|
4473
|
+
r.appendChild(s), yr(r), gr(r, s);
|
|
4479
4474
|
});
|
|
4480
4475
|
}, hr = () => {
|
|
4481
4476
|
const r = document.createElement("div");
|
|
@@ -4497,18 +4492,18 @@ const xe = {
|
|
|
4497
4492
|
resize: "none"
|
|
4498
4493
|
// 防止与原生resize冲突
|
|
4499
4494
|
});
|
|
4500
|
-
}, gr = (r,
|
|
4501
|
-
let e = !1, l, n,
|
|
4502
|
-
const
|
|
4503
|
-
|
|
4504
|
-
},
|
|
4495
|
+
}, gr = (r, s) => {
|
|
4496
|
+
let e = !1, l, n, d, t;
|
|
4497
|
+
const c = (m) => {
|
|
4498
|
+
m.preventDefault(), e = !0, l = m.clientX, n = m.clientY, d = parseInt(document.defaultView.getComputedStyle(r).width), t = parseInt(document.defaultView.getComputedStyle(r).height), document.addEventListener("mousemove", T), document.addEventListener("mouseup", v);
|
|
4499
|
+
}, T = (m) => {
|
|
4505
4500
|
if (!e) return;
|
|
4506
|
-
const
|
|
4507
|
-
r.style.width = `${
|
|
4501
|
+
const f = Math.max(300, d + m.clientX - l), o = Math.max(200, t + m.clientY - n);
|
|
4502
|
+
r.style.width = `${f}px`, r.style.height = `${o}px`;
|
|
4508
4503
|
}, v = () => {
|
|
4509
|
-
e = !1, document.removeEventListener("mousemove",
|
|
4504
|
+
e = !1, document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", v);
|
|
4510
4505
|
};
|
|
4511
|
-
|
|
4506
|
+
s.addEventListener("mousedown", c);
|
|
4512
4507
|
};
|
|
4513
4508
|
export {
|
|
4514
4509
|
xe as CT,
|