vue-2024-ui 0.2.48 → 0.2.49
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 +989 -988
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ol, { ElForm as wt, ElButtonGroup as Et, ElButton as Ye, ElPopover as xt, ElMessage as rt, ElMessageBox as Lt, ElDialog as nl, ElDrawer as ul } from "element-plus";
|
|
2
|
-
import { mergeModels as ot, ref as
|
|
2
|
+
import { mergeModels as ot, ref as re, useModel as nt, nextTick as mt, onMounted as ht, computed as it, resolveComponent as z, openBlock as p, createElementBlock as R, Fragment as le, createElementVNode as Z, createBlock as q, createCommentVNode as be, unref as N, mergeProps as O, withCtx as E, renderSlot as k, renderList as X, createTextVNode as Oe, toDisplayString as Ce, createSlots as $e, createVNode as ae, normalizeStyle as Ue, normalizeProps as Tt, useSlots as Ht, inject as It, withModifiers as kt, resolveDynamicComponent as Ze, guardReactiveProps as sl, Transition as il, withDirectives as dl, vShow as cl, h as Ee, useAttrs as Ot, onUnmounted as fl, onBeforeUnmount as vl, normalizeClass as zt, watchEffect as pl, onBeforeMount as ml, watch as hl, createApp as yl } from "vue";
|
|
3
3
|
import { Plus as gl, ZoomIn as bl, Delete as Nt, More as $l, Refresh as Pt, Search as wl, CircleCheck as jt, CircleCheckFilled as El, InfoFilled as Wt, Download as Gt, DocumentCopy as _l, View as kl, Edit as Cl, CirclePlus as Dl, Setting as Sl, FullScreen as xl, CopyDocument as Ml } from "@element-plus/icons-vue";
|
|
4
4
|
import Xt from "sortablejs";
|
|
5
5
|
import { Dexie as Tl } from "dexie";
|
|
@@ -189,15 +189,15 @@ var Zt = { exports: {} };
|
|
|
189
189
|
(function(t, l) {
|
|
190
190
|
n.exports = l();
|
|
191
191
|
})(Vl, function() {
|
|
192
|
-
var t = 1e3, l = 6e4, o = 36e5, e = "millisecond", h = "second", f = "minute", D = "hour", c = "day", v = "week", u = "month", i = "quarter", g = "year", te = "date",
|
|
192
|
+
var t = 1e3, l = 6e4, o = 36e5, e = "millisecond", h = "second", f = "minute", D = "hour", c = "day", v = "week", u = "month", i = "quarter", g = "year", te = "date", L = "Invalid Date", Y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, M = /\[([^\]]+)]|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, Q = { 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) {
|
|
193
193
|
var b = ["th", "st", "nd", "rd"], s = w % 100;
|
|
194
194
|
return "[" + w + (b[(s - 20) % 10] || b[s] || b[0]) + "]";
|
|
195
|
-
} },
|
|
195
|
+
} }, de = function(w, b, s) {
|
|
196
196
|
var V = String(w);
|
|
197
197
|
return !V || V.length >= b ? w : "" + Array(b + 1 - V.length).join(s) + w;
|
|
198
|
-
},
|
|
198
|
+
}, me = { s: de, z: function(w) {
|
|
199
199
|
var b = -w.utcOffset(), s = Math.abs(b), V = Math.floor(s / 60), _ = s % 60;
|
|
200
|
-
return (b <= 0 ? "+" : "-") +
|
|
200
|
+
return (b <= 0 ? "+" : "-") + de(V, 2, "0") + ":" + de(_, 2, "0");
|
|
201
201
|
}, m: function w(b, s) {
|
|
202
202
|
if (b.date() < s.date()) return -w(s, b);
|
|
203
203
|
var V = 12 * (s.year() - b.year()) + (s.month() - b.month()), _ = b.clone().add(V, u), A = s - _ < 0, F = b.clone().add(V + (A ? -1 : 1), u);
|
|
@@ -208,47 +208,47 @@ var Zt = { exports: {} };
|
|
|
208
208
|
return { M: u, y: g, w: v, d: c, D: te, h: D, m: f, s: h, ms: e, Q: i }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(w) {
|
|
210
210
|
return w === void 0;
|
|
211
|
-
} },
|
|
212
|
-
|
|
213
|
-
var
|
|
214
|
-
return w instanceof Te || !(!w || !w[
|
|
215
|
-
},
|
|
211
|
+
} }, se = "en", ce = {};
|
|
212
|
+
ce[se] = Q;
|
|
213
|
+
var we = "$isDayjsObject", Fe = function(w) {
|
|
214
|
+
return w instanceof Te || !(!w || !w[we]);
|
|
215
|
+
}, xe = function w(b, s, V) {
|
|
216
216
|
var _;
|
|
217
|
-
if (!b) return
|
|
217
|
+
if (!b) return se;
|
|
218
218
|
if (typeof b == "string") {
|
|
219
219
|
var A = b.toLowerCase();
|
|
220
|
-
|
|
220
|
+
ce[A] && (_ = A), s && (ce[A] = s, _ = A);
|
|
221
221
|
var F = b.split("-");
|
|
222
222
|
if (!_ && F.length > 1) return w(F[0]);
|
|
223
223
|
} else {
|
|
224
224
|
var J = b.name;
|
|
225
|
-
|
|
225
|
+
ce[J] = b, _ = J;
|
|
226
226
|
}
|
|
227
|
-
return !V && _ && (
|
|
227
|
+
return !V && _ && (se = _), _ || !V && se;
|
|
228
228
|
}, ee = function(w, b) {
|
|
229
|
-
if (
|
|
229
|
+
if (Fe(w)) return w.clone();
|
|
230
230
|
var s = typeof b == "object" ? b : {};
|
|
231
231
|
return s.date = w, s.args = arguments, new Te(s);
|
|
232
|
-
},
|
|
233
|
-
|
|
232
|
+
}, oe = me;
|
|
233
|
+
oe.l = xe, oe.i = Fe, oe.w = function(w, b) {
|
|
234
234
|
return ee(w, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
|
|
235
235
|
};
|
|
236
236
|
var Te = function() {
|
|
237
237
|
function w(s) {
|
|
238
|
-
this.$L =
|
|
238
|
+
this.$L = xe(s.locale, null, !0), this.parse(s), this.$x = this.$x || s.x || {}, this[we] = !0;
|
|
239
239
|
}
|
|
240
240
|
var b = w.prototype;
|
|
241
241
|
return b.parse = function(s) {
|
|
242
242
|
this.$d = function(V) {
|
|
243
243
|
var _ = V.date, A = V.utc;
|
|
244
244
|
if (_ === null) return /* @__PURE__ */ new Date(NaN);
|
|
245
|
-
if (
|
|
245
|
+
if (oe.u(_)) return /* @__PURE__ */ new Date();
|
|
246
246
|
if (_ instanceof Date) return new Date(_);
|
|
247
247
|
if (typeof _ == "string" && !/Z$/i.test(_)) {
|
|
248
|
-
var F = _.match(
|
|
248
|
+
var F = _.match(Y);
|
|
249
249
|
if (F) {
|
|
250
|
-
var J = F[2] - 1 || 0,
|
|
251
|
-
return A ? new Date(Date.UTC(F[1], J, F[3] || 1, F[4] || 0, F[5] || 0, F[6] || 0,
|
|
250
|
+
var J = F[2] - 1 || 0, ne = (F[7] || "0").substring(0, 3);
|
|
251
|
+
return A ? new Date(Date.UTC(F[1], J, F[3] || 1, F[4] || 0, F[5] || 0, F[6] || 0, ne)) : new Date(F[1], J, F[3] || 1, F[4] || 0, F[5] || 0, F[6] || 0, ne);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
return new Date(_);
|
|
@@ -257,9 +257,9 @@ var Zt = { exports: {} };
|
|
|
257
257
|
var s = this.$d;
|
|
258
258
|
this.$y = s.getFullYear(), this.$M = s.getMonth(), this.$D = s.getDate(), this.$W = s.getDay(), this.$H = s.getHours(), this.$m = s.getMinutes(), this.$s = s.getSeconds(), this.$ms = s.getMilliseconds();
|
|
259
259
|
}, b.$utils = function() {
|
|
260
|
-
return
|
|
260
|
+
return oe;
|
|
261
261
|
}, b.isValid = function() {
|
|
262
|
-
return this.$d.toString() !==
|
|
262
|
+
return this.$d.toString() !== L;
|
|
263
263
|
}, b.isSame = function(s, V) {
|
|
264
264
|
var _ = ee(s);
|
|
265
265
|
return this.startOf(V) <= _ && _ <= this.endOf(V);
|
|
@@ -268,177 +268,177 @@ var Zt = { exports: {} };
|
|
|
268
268
|
}, b.isBefore = function(s, V) {
|
|
269
269
|
return this.endOf(V) < ee(s);
|
|
270
270
|
}, b.$g = function(s, V, _) {
|
|
271
|
-
return
|
|
271
|
+
return oe.u(s) ? this[V] : this.set(_, s);
|
|
272
272
|
}, b.unix = function() {
|
|
273
273
|
return Math.floor(this.valueOf() / 1e3);
|
|
274
274
|
}, b.valueOf = function() {
|
|
275
275
|
return this.$d.getTime();
|
|
276
276
|
}, b.startOf = function(s, V) {
|
|
277
|
-
var _ = this, A = !!
|
|
278
|
-
var B =
|
|
277
|
+
var _ = this, A = !!oe.u(V) || V, F = oe.p(s), J = function(Ae, De) {
|
|
278
|
+
var B = oe.w(_.$u ? Date.UTC(_.$y, De, Ae) : new Date(_.$y, De, Ae), _);
|
|
279
279
|
return A ? B : B.endOf(c);
|
|
280
|
-
},
|
|
281
|
-
return
|
|
282
|
-
},
|
|
280
|
+
}, ne = function(Ae, De) {
|
|
281
|
+
return oe.w(_.toDate()[Ae].apply(_.toDate("s"), (A ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(De)), _);
|
|
282
|
+
}, ve = this.$W, I = this.$M, j = this.$D, Ve = "set" + (this.$u ? "UTC" : "");
|
|
283
283
|
switch (F) {
|
|
284
284
|
case g:
|
|
285
285
|
return A ? J(1, 0) : J(31, 11);
|
|
286
286
|
case u:
|
|
287
|
-
return A ? J(1,
|
|
287
|
+
return A ? J(1, I) : J(0, I + 1);
|
|
288
288
|
case v:
|
|
289
|
-
var he = this.$locale().weekStart || 0,
|
|
290
|
-
return J(A ?
|
|
289
|
+
var he = this.$locale().weekStart || 0, Re = (ve < he ? ve + 7 : ve) - he;
|
|
290
|
+
return J(A ? j - Re : j + (6 - Re), I);
|
|
291
291
|
case c:
|
|
292
292
|
case te:
|
|
293
|
-
return
|
|
293
|
+
return ne(Ve + "Hours", 0);
|
|
294
294
|
case D:
|
|
295
|
-
return
|
|
295
|
+
return ne(Ve + "Minutes", 1);
|
|
296
296
|
case f:
|
|
297
|
-
return
|
|
297
|
+
return ne(Ve + "Seconds", 2);
|
|
298
298
|
case h:
|
|
299
|
-
return
|
|
299
|
+
return ne(Ve + "Milliseconds", 3);
|
|
300
300
|
default:
|
|
301
301
|
return this.clone();
|
|
302
302
|
}
|
|
303
303
|
}, b.endOf = function(s) {
|
|
304
304
|
return this.startOf(s, !1);
|
|
305
305
|
}, b.$set = function(s, V) {
|
|
306
|
-
var _, A =
|
|
306
|
+
var _, A = oe.p(s), F = "set" + (this.$u ? "UTC" : ""), J = (_ = {}, _[c] = F + "Date", _[te] = F + "Date", _[u] = F + "Month", _[g] = F + "FullYear", _[D] = F + "Hours", _[f] = F + "Minutes", _[h] = F + "Seconds", _[e] = F + "Milliseconds", _)[A], ne = A === c ? this.$D + (V - this.$W) : V;
|
|
307
307
|
if (A === u || A === g) {
|
|
308
|
-
var
|
|
309
|
-
|
|
310
|
-
} else J && this.$d[J](
|
|
308
|
+
var ve = this.clone().set(te, 1);
|
|
309
|
+
ve.$d[J](ne), ve.init(), this.$d = ve.set(te, Math.min(this.$D, ve.daysInMonth())).$d;
|
|
310
|
+
} else J && this.$d[J](ne);
|
|
311
311
|
return this.init(), this;
|
|
312
312
|
}, b.set = function(s, V) {
|
|
313
313
|
return this.clone().$set(s, V);
|
|
314
314
|
}, b.get = function(s) {
|
|
315
|
-
return this[
|
|
315
|
+
return this[oe.p(s)]();
|
|
316
316
|
}, b.add = function(s, V) {
|
|
317
317
|
var _, A = this;
|
|
318
318
|
s = Number(s);
|
|
319
|
-
var F =
|
|
320
|
-
var
|
|
321
|
-
return
|
|
319
|
+
var F = oe.p(V), J = function(I) {
|
|
320
|
+
var j = ee(A);
|
|
321
|
+
return oe.w(j.date(j.date() + Math.round(I * s)), A);
|
|
322
322
|
};
|
|
323
323
|
if (F === u) return this.set(u, this.$M + s);
|
|
324
324
|
if (F === g) return this.set(g, this.$y + s);
|
|
325
325
|
if (F === c) return J(1);
|
|
326
326
|
if (F === v) return J(7);
|
|
327
|
-
var
|
|
328
|
-
return
|
|
327
|
+
var ne = (_ = {}, _[f] = l, _[D] = o, _[h] = t, _)[F] || 1, ve = this.$d.getTime() + s * ne;
|
|
328
|
+
return oe.w(ve, this);
|
|
329
329
|
}, b.subtract = function(s, V) {
|
|
330
330
|
return this.add(-1 * s, V);
|
|
331
331
|
}, b.format = function(s) {
|
|
332
332
|
var V = this, _ = this.$locale();
|
|
333
|
-
if (!this.isValid()) return _.invalidDate ||
|
|
334
|
-
var A = s || "YYYY-MM-DDTHH:mm:ssZ", F =
|
|
335
|
-
return
|
|
336
|
-
},
|
|
337
|
-
return
|
|
338
|
-
},
|
|
339
|
-
var
|
|
340
|
-
return C ?
|
|
333
|
+
if (!this.isValid()) return _.invalidDate || L;
|
|
334
|
+
var A = s || "YYYY-MM-DDTHH:mm:ssZ", F = oe.z(this), J = this.$H, ne = this.$m, ve = this.$M, I = _.weekdays, j = _.months, Ve = _.meridiem, he = function(De, B, C, W) {
|
|
335
|
+
return De && (De[B] || De(V, A)) || C[B].slice(0, W);
|
|
336
|
+
}, Re = function(De) {
|
|
337
|
+
return oe.s(J % 12 || 12, De, "0");
|
|
338
|
+
}, Ae = Ve || function(De, B, C) {
|
|
339
|
+
var W = De < 12 ? "AM" : "PM";
|
|
340
|
+
return C ? W.toLowerCase() : W;
|
|
341
341
|
};
|
|
342
|
-
return A.replace(
|
|
342
|
+
return A.replace(M, function(De, B) {
|
|
343
343
|
return B || function(C) {
|
|
344
344
|
switch (C) {
|
|
345
345
|
case "YY":
|
|
346
346
|
return String(V.$y).slice(-2);
|
|
347
347
|
case "YYYY":
|
|
348
|
-
return
|
|
348
|
+
return oe.s(V.$y, 4, "0");
|
|
349
349
|
case "M":
|
|
350
|
-
return
|
|
350
|
+
return ve + 1;
|
|
351
351
|
case "MM":
|
|
352
|
-
return
|
|
352
|
+
return oe.s(ve + 1, 2, "0");
|
|
353
353
|
case "MMM":
|
|
354
|
-
return he(_.monthsShort,
|
|
354
|
+
return he(_.monthsShort, ve, j, 3);
|
|
355
355
|
case "MMMM":
|
|
356
|
-
return he(
|
|
356
|
+
return he(j, ve);
|
|
357
357
|
case "D":
|
|
358
358
|
return V.$D;
|
|
359
359
|
case "DD":
|
|
360
|
-
return
|
|
360
|
+
return oe.s(V.$D, 2, "0");
|
|
361
361
|
case "d":
|
|
362
362
|
return String(V.$W);
|
|
363
363
|
case "dd":
|
|
364
|
-
return he(_.weekdaysMin, V.$W,
|
|
364
|
+
return he(_.weekdaysMin, V.$W, I, 2);
|
|
365
365
|
case "ddd":
|
|
366
|
-
return he(_.weekdaysShort, V.$W,
|
|
366
|
+
return he(_.weekdaysShort, V.$W, I, 3);
|
|
367
367
|
case "dddd":
|
|
368
|
-
return
|
|
368
|
+
return I[V.$W];
|
|
369
369
|
case "H":
|
|
370
370
|
return String(J);
|
|
371
371
|
case "HH":
|
|
372
|
-
return
|
|
372
|
+
return oe.s(J, 2, "0");
|
|
373
373
|
case "h":
|
|
374
|
-
return
|
|
374
|
+
return Re(1);
|
|
375
375
|
case "hh":
|
|
376
|
-
return
|
|
376
|
+
return Re(2);
|
|
377
377
|
case "a":
|
|
378
|
-
return
|
|
378
|
+
return Ae(J, ne, !0);
|
|
379
379
|
case "A":
|
|
380
|
-
return
|
|
380
|
+
return Ae(J, ne, !1);
|
|
381
381
|
case "m":
|
|
382
|
-
return String(
|
|
382
|
+
return String(ne);
|
|
383
383
|
case "mm":
|
|
384
|
-
return
|
|
384
|
+
return oe.s(ne, 2, "0");
|
|
385
385
|
case "s":
|
|
386
386
|
return String(V.$s);
|
|
387
387
|
case "ss":
|
|
388
|
-
return
|
|
388
|
+
return oe.s(V.$s, 2, "0");
|
|
389
389
|
case "SSS":
|
|
390
|
-
return
|
|
390
|
+
return oe.s(V.$ms, 3, "0");
|
|
391
391
|
case "Z":
|
|
392
392
|
return F;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
|
-
}(
|
|
395
|
+
}(De) || F.replace(":", "");
|
|
396
396
|
});
|
|
397
397
|
}, b.utcOffset = function() {
|
|
398
398
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
399
399
|
}, b.diff = function(s, V, _) {
|
|
400
|
-
var A, F = this, J =
|
|
401
|
-
return
|
|
400
|
+
var A, F = this, J = oe.p(V), ne = ee(s), ve = (ne.utcOffset() - this.utcOffset()) * l, I = this - ne, j = function() {
|
|
401
|
+
return oe.m(F, ne);
|
|
402
402
|
};
|
|
403
403
|
switch (J) {
|
|
404
404
|
case g:
|
|
405
|
-
A =
|
|
405
|
+
A = j() / 12;
|
|
406
406
|
break;
|
|
407
407
|
case u:
|
|
408
|
-
A =
|
|
408
|
+
A = j();
|
|
409
409
|
break;
|
|
410
410
|
case i:
|
|
411
|
-
A =
|
|
411
|
+
A = j() / 3;
|
|
412
412
|
break;
|
|
413
413
|
case v:
|
|
414
|
-
A = (
|
|
414
|
+
A = (I - ve) / 6048e5;
|
|
415
415
|
break;
|
|
416
416
|
case c:
|
|
417
|
-
A = (
|
|
417
|
+
A = (I - ve) / 864e5;
|
|
418
418
|
break;
|
|
419
419
|
case D:
|
|
420
|
-
A =
|
|
420
|
+
A = I / o;
|
|
421
421
|
break;
|
|
422
422
|
case f:
|
|
423
|
-
A =
|
|
423
|
+
A = I / l;
|
|
424
424
|
break;
|
|
425
425
|
case h:
|
|
426
|
-
A =
|
|
426
|
+
A = I / t;
|
|
427
427
|
break;
|
|
428
428
|
default:
|
|
429
|
-
A =
|
|
429
|
+
A = I;
|
|
430
430
|
}
|
|
431
|
-
return _ ? A :
|
|
431
|
+
return _ ? A : oe.a(A);
|
|
432
432
|
}, b.daysInMonth = function() {
|
|
433
433
|
return this.endOf(u).$D;
|
|
434
434
|
}, b.$locale = function() {
|
|
435
|
-
return
|
|
435
|
+
return ce[this.$L];
|
|
436
436
|
}, b.locale = function(s, V) {
|
|
437
437
|
if (!s) return this.$L;
|
|
438
|
-
var _ = this.clone(), A =
|
|
438
|
+
var _ = this.clone(), A = xe(s, V, !0);
|
|
439
439
|
return A && (_.$L = A), _;
|
|
440
440
|
}, b.clone = function() {
|
|
441
|
-
return
|
|
441
|
+
return oe.w(this.$d, this);
|
|
442
442
|
}, b.toDate = function() {
|
|
443
443
|
return new Date(this.valueOf());
|
|
444
444
|
}, b.toJSON = function() {
|
|
@@ -448,16 +448,16 @@ var Zt = { exports: {} };
|
|
|
448
448
|
}, b.toString = function() {
|
|
449
449
|
return this.$d.toUTCString();
|
|
450
450
|
}, w;
|
|
451
|
-
}(),
|
|
452
|
-
return ee.prototype =
|
|
453
|
-
|
|
451
|
+
}(), T = Te.prototype;
|
|
452
|
+
return ee.prototype = T, [["$ms", e], ["$s", h], ["$m", f], ["$H", D], ["$W", c], ["$M", u], ["$y", g], ["$D", te]].forEach(function(w) {
|
|
453
|
+
T[w[1]] = function(b) {
|
|
454
454
|
return this.$g(b, w[0], w[1]);
|
|
455
455
|
};
|
|
456
456
|
}), ee.extend = function(w, b) {
|
|
457
457
|
return w.$i || (w(b, Te, ee), w.$i = !0), ee;
|
|
458
|
-
}, ee.locale =
|
|
458
|
+
}, ee.locale = xe, ee.isDayjs = Fe, ee.unix = function(w) {
|
|
459
459
|
return ee(1e3 * w);
|
|
460
|
-
}, ee.en =
|
|
460
|
+
}, ee.en = ce[se], ee.Ls = ce, ee.p = {}, ee;
|
|
461
461
|
});
|
|
462
462
|
})(Zt);
|
|
463
463
|
var Al = Zt.exports;
|
|
@@ -477,20 +477,20 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
477
477
|
}),
|
|
478
478
|
emits: ["update:modelValue"],
|
|
479
479
|
setup(n) {
|
|
480
|
-
var b, s, V, _, A, F, J,
|
|
481
|
-
const d = n, t =
|
|
482
|
-
!((A = e.value) != null && A.startsWith("text")) && !((F = e.value) != null && F.startsWith("link")) && !((J = e.value) != null && J.startsWith("tag")) && !((
|
|
483
|
-
const g =
|
|
484
|
-
g.value = { ...g.value, justifyContent: te, ...
|
|
485
|
-
const
|
|
486
|
-
const B = Ht(), C = Object.keys(B),
|
|
487
|
-
return C.filter((
|
|
488
|
-
},
|
|
480
|
+
var b, s, V, _, A, F, J, ne, ve, I, j, Ve, he, Re, Ae, De;
|
|
481
|
+
const d = n, t = re(d.item || {}), l = nt(n, "modelValue"), o = re(d.ctrlKey), e = re(d.ctrlType), h = re(d.model), f = re([]), D = re([]), c = re(!1), v = re(!1), u = re(0), i = re((s = (b = h == null ? void 0 : h.value) == null ? void 0 : b.form) != null && s["default-placeholder"] ? (_ = (V = h == null ? void 0 : h.value) == null ? void 0 : V[o == null ? void 0 : o.value]) == null ? void 0 : _.label : "");
|
|
482
|
+
!((A = e.value) != null && A.startsWith("text")) && !((F = e.value) != null && F.startsWith("link")) && !((J = e.value) != null && J.startsWith("tag")) && !((ne = e.value) != null && ne.startsWith("div")) && !((ve = e.value) != null && ve.startsWith("span")) && !((I = e.value) != null && I.startsWith("avatar")) && ((j = t.value) != null && j.style || (t.value.style = { width: ((he = (Ve = t.value) == null ? void 0 : Ve.style) == null ? void 0 : he.width) || "100%" }));
|
|
483
|
+
const g = re({ display: "flex", flex: 1 }), te = d.t === "t" ? "center" : "flex-start", L = ((Re = t.value) == null ? void 0 : Re.style) || {};
|
|
484
|
+
g.value = { ...g.value, justifyContent: te, ...L };
|
|
485
|
+
const Y = () => {
|
|
486
|
+
const B = Ht(), C = Object.keys(B), W = `${d.t}-${o.value}-`;
|
|
487
|
+
return C.filter((qe) => qe.startsWith(W)).map((qe) => qe.replace(W, ""));
|
|
488
|
+
}, M = re({
|
|
489
489
|
multiple: !1,
|
|
490
490
|
"show-file-list": !1,
|
|
491
491
|
"file-list": [],
|
|
492
|
-
showDel: (
|
|
493
|
-
}),
|
|
492
|
+
showDel: (Ae = t.value) != null && Ae.showDel ? (De = t.value) == null ? void 0 : De.showDel : d.t !== "t"
|
|
493
|
+
}), Q = re(t.value.innerHtml), de = (B) => [
|
|
494
494
|
"year",
|
|
495
495
|
"years",
|
|
496
496
|
"month",
|
|
@@ -503,7 +503,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
503
503
|
"daterange",
|
|
504
504
|
"monthrange",
|
|
505
505
|
"yearrange"
|
|
506
|
-
].includes(B),
|
|
506
|
+
].includes(B), me = (B) => ({
|
|
507
507
|
year: "YYYY",
|
|
508
508
|
years: "YYYY",
|
|
509
509
|
month: "YYYY-MM",
|
|
@@ -517,87 +517,87 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
517
517
|
daterange: "YYYY-MM-DD",
|
|
518
518
|
monthrange: "YYYY-MM",
|
|
519
519
|
yearrange: "YYYY"
|
|
520
|
-
})[B] || "YYYY-MM-DD",
|
|
520
|
+
})[B] || "YYYY-MM-DD", se = re({
|
|
521
521
|
filterable: !0,
|
|
522
522
|
remote: !!(t.value && t.value["remote-method"]),
|
|
523
523
|
...t.value
|
|
524
|
-
}),
|
|
524
|
+
}), ce = re((B) => {
|
|
525
525
|
t.value["remote-method"](B, (C) => {
|
|
526
|
-
|
|
526
|
+
mt(() => {
|
|
527
527
|
D.value = C;
|
|
528
528
|
});
|
|
529
529
|
});
|
|
530
|
-
}),
|
|
530
|
+
}), we = async (B = "options") => {
|
|
531
531
|
var C;
|
|
532
532
|
try {
|
|
533
|
-
const
|
|
534
|
-
if (typeof
|
|
535
|
-
D.value = [{ label:
|
|
533
|
+
const W = await ((C = t.value) == null ? void 0 : C.getDicts(d.formInfo));
|
|
534
|
+
if (typeof W == "string")
|
|
535
|
+
D.value = [{ label: W, value: l.value }];
|
|
536
536
|
else {
|
|
537
|
-
const
|
|
538
|
-
...
|
|
539
|
-
value:
|
|
540
|
-
label:
|
|
537
|
+
const _e = W == null ? void 0 : W.map((Be, qe) => ({
|
|
538
|
+
...Be,
|
|
539
|
+
value: Be.value ?? Be.label ?? qe,
|
|
540
|
+
label: Be.label || "未知选项"
|
|
541
541
|
}));
|
|
542
|
-
D.value =
|
|
542
|
+
D.value = _e || [];
|
|
543
543
|
}
|
|
544
|
-
} catch (
|
|
545
|
-
throw console.error("获取选项失败:",
|
|
544
|
+
} catch (W) {
|
|
545
|
+
throw console.error("获取选项失败:", W), W;
|
|
546
546
|
}
|
|
547
|
-
},
|
|
547
|
+
}, Fe = () => {
|
|
548
548
|
var B, C;
|
|
549
549
|
t.value.noSearch !== !0 && d.t === "q" && ((C = (B = h.value) == null ? void 0 : B.table) == null || C.load());
|
|
550
|
-
},
|
|
550
|
+
}, xe = (B) => {
|
|
551
551
|
B.preventDefault(), B.stopPropagation(), l.value = "";
|
|
552
552
|
}, ee = (B) => {
|
|
553
553
|
var C;
|
|
554
554
|
if (t.value["file-list"] && t.value["file-list"].length > 0) {
|
|
555
|
-
const
|
|
556
|
-
(
|
|
555
|
+
const W = t.value["file-list"].findIndex(
|
|
556
|
+
(_e) => _e.url === B.url || _e.uid === B.uid || B.raw && _e.raw && _e.raw.uid === B.raw.uid
|
|
557
557
|
);
|
|
558
|
-
u.value =
|
|
558
|
+
u.value = W >= 0 ? W : 0;
|
|
559
559
|
} else {
|
|
560
|
-
const
|
|
561
|
-
u.value =
|
|
560
|
+
const W = B.url || ((C = B.raw) == null ? void 0 : C.url), _e = w.value.indexOf(W);
|
|
561
|
+
u.value = _e >= 0 ? _e : 0;
|
|
562
562
|
}
|
|
563
563
|
c.value = !0;
|
|
564
|
-
},
|
|
564
|
+
}, oe = (B) => {
|
|
565
565
|
if (B.preventDefault(), B.stopPropagation(), t.value["file-list"] && t.value["file-list"].length > 0) {
|
|
566
|
-
const C = l.value,
|
|
567
|
-
(
|
|
568
|
-
var
|
|
569
|
-
return
|
|
566
|
+
const C = l.value, W = t.value["file-list"].findIndex(
|
|
567
|
+
(_e) => {
|
|
568
|
+
var Be;
|
|
569
|
+
return _e.url === C || ((Be = _e.raw) == null ? void 0 : Be.url) === C;
|
|
570
570
|
}
|
|
571
571
|
);
|
|
572
|
-
u.value =
|
|
572
|
+
u.value = W >= 0 ? W : 0;
|
|
573
573
|
} else
|
|
574
574
|
u.value = 0;
|
|
575
575
|
c.value = !0;
|
|
576
|
-
}, Te =
|
|
576
|
+
}, Te = re(null), T = (B, C = 2) => {
|
|
577
577
|
if (B === "") {
|
|
578
578
|
l.value = "";
|
|
579
579
|
return;
|
|
580
580
|
}
|
|
581
|
-
let
|
|
582
|
-
if (
|
|
583
|
-
const
|
|
584
|
-
|
|
581
|
+
let W = B.replace(/[^-\d.]/g, "");
|
|
582
|
+
if (W.includes("-") && (W.startsWith("-") ? W = "-" + W.substring(1).replace(/-/g, "") : W = W.replace(/-/g, "")), (W.match(/\./g) || []).length > 1) {
|
|
583
|
+
const qe = W.indexOf(".");
|
|
584
|
+
W = W.substring(0, qe + 1) + W.substring(qe + 1).replace(/\./g, "");
|
|
585
585
|
}
|
|
586
|
-
if (
|
|
587
|
-
const [
|
|
588
|
-
Ke.length > C && (
|
|
586
|
+
if (W = W.replace(/^-\./, "-0."), W = W.replace(/^\./, "0."), W = W.replace(/^-0+(\d)/, "-$1"), W = W.replace(/^0+(\d)/, "$1"), (W === "-" || W === "" || W === ".") && (W = "0"), C >= 0 && W.includes(".")) {
|
|
587
|
+
const [qe, Ke] = W.split(".");
|
|
588
|
+
Ke.length > C && (W = qe + "." + Ke.substring(0, C));
|
|
589
589
|
}
|
|
590
|
-
l.value =
|
|
590
|
+
l.value = W;
|
|
591
591
|
};
|
|
592
|
-
|
|
593
|
-
var
|
|
594
|
-
t.value && t.value["remote-method"] && (
|
|
592
|
+
ht(async () => {
|
|
593
|
+
var W, _e, Be, qe, Ke;
|
|
594
|
+
t.value && t.value["remote-method"] && (se.value["remote-method"] = ce), (_e = (W = h.value[o.value]) == null ? void 0 : W.options) != null && _e.length && (D.value = h.value[o.value].options);
|
|
595
595
|
const B = (Le, Pe = "options", je = h.value[o.value]) => {
|
|
596
|
-
typeof t.value.getDicts == "function" &&
|
|
596
|
+
typeof t.value.getDicts == "function" && we(Pe).catch((We) => {
|
|
597
597
|
console.error(`Failed to load ${Pe} for ${Le}:`, We);
|
|
598
598
|
});
|
|
599
599
|
};
|
|
600
|
-
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(e.value) && B(e.value), e.value ===
|
|
600
|
+
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(e.value) && B(e.value), e.value === ke.TREESELECT && await (async () => {
|
|
601
601
|
try {
|
|
602
602
|
typeof t.value.getDicts == "function" ? f.value = await t.value.getDicts(d.formInfo) : f.value = D.value;
|
|
603
603
|
} catch (Pe) {
|
|
@@ -605,7 +605,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
605
605
|
}
|
|
606
606
|
})(), d.t == "q") {
|
|
607
607
|
let Le = t.value.type || e.value;
|
|
608
|
-
(Le === void 0 || e.value === "input" || Le ==
|
|
608
|
+
(Le === void 0 || e.value === "input" || Le == ke.NUMBER || Le == ke.EMAIL || Le == "url" || Le == "text") && t.value.onKeyup == null && (t.value.onKeyup = (Pe) => {
|
|
609
609
|
var je, We;
|
|
610
610
|
(Pe.keyCode === 13 || Pe.key === "Enter") && ((We = (je = h.value) == null ? void 0 : je.table) == null || We.load());
|
|
611
611
|
}), [
|
|
@@ -629,27 +629,27 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
629
629
|
(We = (je = h.value) == null ? void 0 : je.table) == null || We.load();
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
|
-
e.value == "image" && (t.value.width && ((
|
|
632
|
+
e.value == "image" && (t.value.width && ((Be = Te.value) != null && Be.$el) && Te.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && ((qe = Te.value) != null && qe.$el) && Te.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((Ke = Te.value) != null && Ke.$el) && Te.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
|
|
633
633
|
});
|
|
634
|
-
const w =
|
|
634
|
+
const w = it(() => {
|
|
635
635
|
var B;
|
|
636
636
|
return t.value["file-list"] && t.value["file-list"].length ? (B = t.value["file-list"]) == null ? void 0 : B.map((C) => C == null ? void 0 : C.url) : [l.value];
|
|
637
637
|
});
|
|
638
638
|
return (B, C) => {
|
|
639
|
-
var et, tt, Xe, Qe,
|
|
640
|
-
const
|
|
641
|
-
return p(),
|
|
639
|
+
var ue, et, tt, Xe, Qe, st, H, ze, lt, vt;
|
|
640
|
+
const W = z("el-image-viewer"), _e = z("el-radio"), Be = z("el-radio-group"), qe = z("el-radio-button"), Ke = z("el-checkbox"), Le = z("el-checkbox-group"), Pe = z("el-checkbox-button"), je = z("g-select-option"), We = z("el-option"), yt = z("el-select"), a = z("el-tree-select"), r = z("el-time-picker"), m = z("el-time-select"), $ = z("el-date-picker"), x = z("el-color-picker"), U = z("el-rate"), G = z("el-slider"), ge = z("el-switch"), Me = z("el-transfer"), Se = z("el-cascader"), He = z("el-icon"), Ne = z("el-image"), Ge = z("el-tooltip"), ct = z("el-upload"), gt = z("el-autocomplete"), bt = z("el-input-number"), ft = z("el-input"), P = z("el-link"), ie = z("el-text"), S = z("el-avatar"), K = z("el-tag");
|
|
641
|
+
return p(), R(le, null, [
|
|
642
642
|
Z("div", null, [
|
|
643
|
-
c.value ? (p(), q(
|
|
643
|
+
c.value ? (p(), q(W, {
|
|
644
644
|
key: 0,
|
|
645
645
|
teleported: !0,
|
|
646
646
|
"initial-index": u.value,
|
|
647
647
|
"url-list": w.value,
|
|
648
648
|
onClose: C[0] || (C[0] = (y) => c.value = !1)
|
|
649
|
-
}, null, 8, ["initial-index", "url-list"])) :
|
|
649
|
+
}, null, 8, ["initial-index", "url-list"])) : be("", !0)
|
|
650
650
|
]),
|
|
651
651
|
Z("div", ql, [
|
|
652
|
-
e.value == N(
|
|
652
|
+
e.value == N(ke).RADIO ? (p(), q(Be, O({
|
|
653
653
|
key: 0,
|
|
654
654
|
modelValue: l.value,
|
|
655
655
|
"onUpdate:modelValue": C[1] || (C[1] = (y) => l.value = y),
|
|
@@ -657,7 +657,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
657
657
|
}, t.value), {
|
|
658
658
|
default: E(() => [
|
|
659
659
|
k(B.$slots, `${d.t}-${o.value}`, { data: t.value }, () => [
|
|
660
|
-
(p(!0),
|
|
660
|
+
(p(!0), R(le, null, X(D.value, (y) => (p(), q(_e, O({ ref_for: !0 }, y), {
|
|
661
661
|
default: E(() => [
|
|
662
662
|
k(B.$slots, `${d.t}-${o.value}-options`, { option: y }, void 0, !0)
|
|
663
663
|
]),
|
|
@@ -666,7 +666,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
666
666
|
], !0)
|
|
667
667
|
]),
|
|
668
668
|
_: 3
|
|
669
|
-
}, 16, ["modelValue", "disabled"])) : e.value == N(
|
|
669
|
+
}, 16, ["modelValue", "disabled"])) : e.value == N(ke).RADIOBUTTON ? (p(), q(Be, O({
|
|
670
670
|
key: 1,
|
|
671
671
|
modelValue: l.value,
|
|
672
672
|
"onUpdate:modelValue": C[2] || (C[2] = (y) => l.value = y),
|
|
@@ -674,7 +674,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
674
674
|
}, t.value), {
|
|
675
675
|
default: E(() => [
|
|
676
676
|
k(B.$slots, `${d.t}-${o.value}`, { data: t.value }, () => [
|
|
677
|
-
(p(!0),
|
|
677
|
+
(p(!0), R(le, null, X(D.value, (y) => (p(), q(qe, O({ ref_for: !0 }, y), {
|
|
678
678
|
default: E(() => [
|
|
679
679
|
k(B.$slots, `${d.t}-${o.value}-options`, { option: y }, void 0, !0)
|
|
680
680
|
]),
|
|
@@ -683,7 +683,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
683
683
|
], !0)
|
|
684
684
|
]),
|
|
685
685
|
_: 3
|
|
686
|
-
}, 16, ["modelValue", "disabled"])) : e.value == N(
|
|
686
|
+
}, 16, ["modelValue", "disabled"])) : e.value == N(ke).CHECKBOX ? (p(), q(Ke, O({
|
|
687
687
|
key: 2,
|
|
688
688
|
modelValue: l.value,
|
|
689
689
|
"onUpdate:modelValue": C[3] || (C[3] = (y) => l.value = y),
|
|
@@ -691,11 +691,11 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
691
691
|
}, t.value), {
|
|
692
692
|
default: E(() => [
|
|
693
693
|
k(B.$slots, `${d.t}-${o.value}`, { data: t.value }, () => [
|
|
694
|
-
C[29] || (C[29] =
|
|
694
|
+
C[29] || (C[29] = Oe(Ce(" ")))
|
|
695
695
|
], !0)
|
|
696
696
|
]),
|
|
697
697
|
_: 3
|
|
698
|
-
}, 16, ["modelValue", "disabled"])) : e.value == N(
|
|
698
|
+
}, 16, ["modelValue", "disabled"])) : e.value == N(ke).CHECKBOXGROUP ? (p(), q(Le, O({
|
|
699
699
|
key: 3,
|
|
700
700
|
modelValue: l.value,
|
|
701
701
|
"onUpdate:modelValue": C[4] || (C[4] = (y) => l.value = y),
|
|
@@ -703,10 +703,10 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
703
703
|
}, t.value), {
|
|
704
704
|
default: E(() => [
|
|
705
705
|
k(B.$slots, `${d.t}-${o.value}`, { data: t.value }, () => [
|
|
706
|
-
(p(!0),
|
|
706
|
+
(p(!0), R(le, null, X(D.value, (y) => (p(), q(Ke, O({ ref_for: !0 }, y), {
|
|
707
707
|
default: E(() => [
|
|
708
708
|
k(B.$slots, `${d.t}-${o.value}-options`, { option: y }, () => [
|
|
709
|
-
|
|
709
|
+
Oe(Ce(y.label), 1)
|
|
710
710
|
], !0)
|
|
711
711
|
]),
|
|
712
712
|
_: 2
|
|
@@ -714,7 +714,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
714
714
|
], !0)
|
|
715
715
|
]),
|
|
716
716
|
_: 3
|
|
717
|
-
}, 16, ["modelValue", "disabled"])) : e.value == N(
|
|
717
|
+
}, 16, ["modelValue", "disabled"])) : e.value == N(ke).CHECKBOXGROUPBUTTON ? (p(), q(Le, O({
|
|
718
718
|
key: 4,
|
|
719
719
|
modelValue: l.value,
|
|
720
720
|
"onUpdate:modelValue": C[5] || (C[5] = (y) => l.value = y),
|
|
@@ -722,7 +722,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
722
722
|
}, t.value), {
|
|
723
723
|
default: E(() => [
|
|
724
724
|
k(B.$slots, `${d.t}-${o.value}`, { data: t.value }, () => [
|
|
725
|
-
(p(!0),
|
|
725
|
+
(p(!0), R(le, null, X(D.value, (y) => (p(), q(Pe, O({ ref_for: !0 }, y), {
|
|
726
726
|
default: E(() => [
|
|
727
727
|
k(B.$slots, `${d.t}-${o.value}-options`, { option: y }, void 0, !0)
|
|
728
728
|
]),
|
|
@@ -731,7 +731,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
731
731
|
], !0)
|
|
732
732
|
]),
|
|
733
733
|
_: 3
|
|
734
|
-
}, 16, ["modelValue", "disabled"])) : e.value === N(
|
|
734
|
+
}, 16, ["modelValue", "disabled"])) : e.value === N(ke).SELECT ? (p(), q(yt, O({
|
|
735
735
|
key: 5,
|
|
736
736
|
modelValue: l.value,
|
|
737
737
|
"onUpdate:modelValue": C[6] || (C[6] = (y) => l.value = y),
|
|
@@ -741,7 +741,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
741
741
|
d.t == "q" && h.value.table.load();
|
|
742
742
|
}),
|
|
743
743
|
disabled: h.value[o.value].disabled
|
|
744
|
-
},
|
|
744
|
+
}, se.value), $e({
|
|
745
745
|
default: E(() => {
|
|
746
746
|
var y;
|
|
747
747
|
return [
|
|
@@ -749,18 +749,18 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
749
749
|
key: 0,
|
|
750
750
|
options: D.value
|
|
751
751
|
}, () => [
|
|
752
|
-
(p(!0),
|
|
752
|
+
(p(!0), R(le, null, X(D.value, (fe) => (p(), R(le, {
|
|
753
753
|
key: fe.value
|
|
754
754
|
}, [
|
|
755
|
-
ae(We,
|
|
756
|
-
onClick: (
|
|
757
|
-
|
|
755
|
+
ae(We, O({ ref_for: !0 }, N(Je)(fe, (pe) => pe != "children"), {
|
|
756
|
+
onClick: (pe) => {
|
|
757
|
+
se.value.change && se.value.change(fe), Fe();
|
|
758
758
|
}
|
|
759
759
|
}), {
|
|
760
760
|
default: E(() => {
|
|
761
|
-
var
|
|
761
|
+
var pe;
|
|
762
762
|
return [
|
|
763
|
-
(
|
|
763
|
+
(pe = t.value) != null && pe.columns ? k(B.$slots, `${d.t}-${o.value}-options`, {
|
|
764
764
|
key: 0,
|
|
765
765
|
option: fe
|
|
766
766
|
}, () => {
|
|
@@ -771,7 +771,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
771
771
|
data: fe,
|
|
772
772
|
t: d.t
|
|
773
773
|
}, $e({ _: 2 }, [
|
|
774
|
-
|
|
774
|
+
X(B.$slots, (pt, St) => ({
|
|
775
775
|
name: St,
|
|
776
776
|
fn: E(($t) => [
|
|
777
777
|
k(B.$slots, St, {
|
|
@@ -783,18 +783,18 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
783
783
|
}))
|
|
784
784
|
]), 1032, ["columns", "data", "t"])
|
|
785
785
|
];
|
|
786
|
-
}, !0) :
|
|
786
|
+
}, !0) : be("", !0)
|
|
787
787
|
];
|
|
788
788
|
}),
|
|
789
789
|
_: 2
|
|
790
790
|
}, 1040, ["onClick"]),
|
|
791
|
-
fe.children && fe.children.length ? (p(!0),
|
|
791
|
+
fe.children && fe.children.length ? (p(!0), R(le, { key: 0 }, X(fe.children, (pe) => (p(), q(We, O({
|
|
792
792
|
style: { "margin-left": "20px" },
|
|
793
|
-
key:
|
|
793
|
+
key: pe.value,
|
|
794
794
|
ref_for: !0
|
|
795
|
-
}, N(Je)(
|
|
795
|
+
}, N(Je)(pe, (at) => at != "children"), {
|
|
796
796
|
onClick: (at) => {
|
|
797
|
-
|
|
797
|
+
se.value.change && se.value.change(pe), Fe();
|
|
798
798
|
}
|
|
799
799
|
}), {
|
|
800
800
|
default: E(() => {
|
|
@@ -802,20 +802,20 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
802
802
|
return [
|
|
803
803
|
(at = t.value) != null && at.columns ? k(B.$slots, `${d.t}-${o.value}-options`, {
|
|
804
804
|
key: 0,
|
|
805
|
-
option:
|
|
805
|
+
option: pe
|
|
806
806
|
}, () => {
|
|
807
|
-
var
|
|
807
|
+
var pt;
|
|
808
808
|
return [
|
|
809
809
|
ae(je, {
|
|
810
|
-
columns: (
|
|
811
|
-
data:
|
|
810
|
+
columns: (pt = t.value) == null ? void 0 : pt.columns,
|
|
811
|
+
data: pe,
|
|
812
812
|
t: d.t
|
|
813
813
|
}, $e({ _: 2 }, [
|
|
814
|
-
|
|
814
|
+
X(B.$slots, (St, $t) => ({
|
|
815
815
|
name: $t,
|
|
816
816
|
fn: E((rl) => [
|
|
817
817
|
k(B.$slots, $t, {
|
|
818
|
-
option:
|
|
818
|
+
option: pe,
|
|
819
819
|
data: rl,
|
|
820
820
|
form: n.formInfo
|
|
821
821
|
}, void 0, !0)
|
|
@@ -823,18 +823,18 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
823
823
|
}))
|
|
824
824
|
]), 1032, ["columns", "data", "t"])
|
|
825
825
|
];
|
|
826
|
-
}, !0) :
|
|
826
|
+
}, !0) : be("", !0)
|
|
827
827
|
];
|
|
828
828
|
}),
|
|
829
829
|
_: 2
|
|
830
|
-
}, 1040, ["onClick"]))), 128)) :
|
|
830
|
+
}, 1040, ["onClick"]))), 128)) : be("", !0)
|
|
831
831
|
], 64))), 128))
|
|
832
|
-
], !0) :
|
|
832
|
+
], !0) : be("", !0)
|
|
833
833
|
];
|
|
834
834
|
}),
|
|
835
835
|
_: 2
|
|
836
836
|
}, [
|
|
837
|
-
(
|
|
837
|
+
(ue = t.value) != null && ue.columns ? {
|
|
838
838
|
name: "header",
|
|
839
839
|
fn: E(() => {
|
|
840
840
|
var y;
|
|
@@ -844,10 +844,10 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
844
844
|
title: !0,
|
|
845
845
|
t: d.t
|
|
846
846
|
}, $e({ _: 2 }, [
|
|
847
|
-
|
|
848
|
-
name:
|
|
847
|
+
X(B.$slots, (fe, pe) => ({
|
|
848
|
+
name: pe,
|
|
849
849
|
fn: E((at) => [
|
|
850
|
-
k(B.$slots,
|
|
850
|
+
k(B.$slots, pe, { data: at }, void 0, !0)
|
|
851
851
|
])
|
|
852
852
|
}))
|
|
853
853
|
]), 1032, ["columns", "t"])
|
|
@@ -855,32 +855,32 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
855
855
|
}),
|
|
856
856
|
key: "0"
|
|
857
857
|
} : void 0,
|
|
858
|
-
|
|
858
|
+
X(Y(), (y) => ({
|
|
859
859
|
name: y,
|
|
860
860
|
fn: E((fe) => [
|
|
861
861
|
k(B.$slots, `${d.t}-${o.value}-${y}`, { form: n.formInfo }, void 0, !0)
|
|
862
862
|
])
|
|
863
863
|
}))
|
|
864
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == N(
|
|
864
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == N(ke).TREESELECT ? (p(), q(a, O({
|
|
865
865
|
key: 6,
|
|
866
866
|
modelValue: l.value,
|
|
867
867
|
"onUpdate:modelValue": C[8] || (C[8] = (y) => l.value = y),
|
|
868
868
|
placeholder: i.value,
|
|
869
869
|
disabled: h.value[o.value].disabled
|
|
870
870
|
}, t.value, { data: f.value }), $e({ _: 2 }, [
|
|
871
|
-
|
|
871
|
+
X(Y(), (y) => ({
|
|
872
872
|
name: y,
|
|
873
873
|
fn: E((fe) => [
|
|
874
874
|
k(B.$slots, `${d.t}-${o.value}-${y}`, { data: fe }, void 0, !0)
|
|
875
875
|
])
|
|
876
876
|
}))
|
|
877
|
-
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value == N(
|
|
877
|
+
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value == N(ke).TIME ? (p(), q(r, O({
|
|
878
878
|
key: 7,
|
|
879
879
|
modelValue: l.value,
|
|
880
880
|
"onUpdate:modelValue": C[9] || (C[9] = (y) => l.value = y),
|
|
881
881
|
"arrow-control": "",
|
|
882
882
|
disabled: h.value[o.value].disabled
|
|
883
|
-
}, t.value, { placeholder: i.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : e.value == N(
|
|
883
|
+
}, t.value, { placeholder: i.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : e.value == N(ke).TIMESELECT ? (p(), q(m, O({
|
|
884
884
|
key: 8,
|
|
885
885
|
modelValue: l.value,
|
|
886
886
|
"onUpdate:modelValue": C[10] || (C[10] = (y) => l.value = y),
|
|
@@ -889,114 +889,114 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
889
889
|
end: "23:30",
|
|
890
890
|
placeholder: i.value,
|
|
891
891
|
disabled: h.value[o.value].disabled
|
|
892
|
-
}, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) :
|
|
892
|
+
}, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) : de(e.value) ? (p(), q($, O({
|
|
893
893
|
key: 9,
|
|
894
894
|
modelValue: l.value,
|
|
895
895
|
"onUpdate:modelValue": C[11] || (C[11] = (y) => l.value = y),
|
|
896
896
|
type: e.value,
|
|
897
897
|
placeholder: i.value,
|
|
898
|
-
"value-format":
|
|
898
|
+
"value-format": me(e.value),
|
|
899
899
|
disabled: h.value[o.value].disabled
|
|
900
900
|
}, t.value), $e({ _: 2 }, [
|
|
901
|
-
|
|
901
|
+
X(Y(), (y) => ({
|
|
902
902
|
name: y,
|
|
903
903
|
fn: E((fe) => [
|
|
904
904
|
k(B.$slots, `${d.t}-${o.value}-${y}`, { data: fe }, void 0, !0)
|
|
905
905
|
])
|
|
906
906
|
}))
|
|
907
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value == N(
|
|
907
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value == N(ke).COLOR ? (p(), q(x, O({
|
|
908
908
|
key: 10,
|
|
909
909
|
modelValue: l.value,
|
|
910
910
|
"onUpdate:modelValue": C[12] || (C[12] = (y) => l.value = y)
|
|
911
|
-
}, t.value), null, 16, ["modelValue"])) : e.value == N(
|
|
911
|
+
}, t.value), null, 16, ["modelValue"])) : e.value == N(ke).RATE ? (p(), q(U, O({
|
|
912
912
|
key: 11,
|
|
913
913
|
modelValue: l.value,
|
|
914
914
|
"onUpdate:modelValue": C[13] || (C[13] = (y) => l.value = y),
|
|
915
915
|
disabled: h.value[o.value].disabled
|
|
916
|
-
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == N(
|
|
916
|
+
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == N(ke).SLIDER ? (p(), q(G, O({
|
|
917
917
|
key: 12,
|
|
918
918
|
modelValue: l.value,
|
|
919
919
|
"onUpdate:modelValue": C[14] || (C[14] = (y) => l.value = y),
|
|
920
920
|
disabled: h.value[o.value].disabled
|
|
921
|
-
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == N(
|
|
921
|
+
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == N(ke).SWITCH ? (p(), q(ge, O({
|
|
922
922
|
key: 13,
|
|
923
923
|
modelValue: l.value,
|
|
924
924
|
"onUpdate:modelValue": C[15] || (C[15] = (y) => l.value = y),
|
|
925
925
|
inlinePrompt: !0,
|
|
926
926
|
disabled: h.value[o.value].disabled
|
|
927
927
|
}, t.value), $e({ _: 2 }, [
|
|
928
|
-
|
|
928
|
+
X(Y(), (y) => ({
|
|
929
929
|
name: y,
|
|
930
930
|
fn: E((fe) => [
|
|
931
931
|
k(B.$slots, `${d.t}-${o.value}-${y}`, { data: fe }, void 0, !0)
|
|
932
932
|
])
|
|
933
933
|
}))
|
|
934
|
-
]), 1040, ["modelValue", "disabled"])) : e.value == N(
|
|
934
|
+
]), 1040, ["modelValue", "disabled"])) : e.value == N(ke).TRANSFER ? (p(), q(Me, O({
|
|
935
935
|
key: 14,
|
|
936
936
|
modelValue: l.value,
|
|
937
937
|
"onUpdate:modelValue": C[16] || (C[16] = (y) => l.value = y)
|
|
938
938
|
}, t.value), $e({ _: 2 }, [
|
|
939
|
-
|
|
939
|
+
X(Y(), (y) => ({
|
|
940
940
|
name: y,
|
|
941
941
|
fn: E((fe) => [
|
|
942
942
|
k(B.$slots, `${d.t}-${o.value}-${y}`, { data: fe }, void 0, !0)
|
|
943
943
|
])
|
|
944
944
|
}))
|
|
945
|
-
]), 1040, ["modelValue"])) : e.value == N(
|
|
945
|
+
]), 1040, ["modelValue"])) : e.value == N(ke).CASCADER ? (p(), q(Se, O({
|
|
946
946
|
key: 15,
|
|
947
947
|
modelValue: l.value,
|
|
948
948
|
"onUpdate:modelValue": C[17] || (C[17] = (y) => l.value = y)
|
|
949
949
|
}, t.value, { options: D.value }), $e({ _: 2 }, [
|
|
950
|
-
|
|
950
|
+
X(Y(), (y) => ({
|
|
951
951
|
name: y,
|
|
952
952
|
fn: E((fe) => [
|
|
953
953
|
k(B.$slots, `${d.t}-${o.value}-${y}`, { data: fe }, void 0, !0)
|
|
954
954
|
])
|
|
955
955
|
}))
|
|
956
|
-
]), 1040, ["modelValue", "options"])) : e.value == N(
|
|
956
|
+
]), 1040, ["modelValue", "options"])) : e.value == N(ke).IMAGE ? (p(), q(ct, O({
|
|
957
957
|
key: 16,
|
|
958
958
|
"file-list": t.value["file-list"],
|
|
959
959
|
"onUpdate:fileList": C[21] || (C[21] = (y) => t.value["file-list"] = y),
|
|
960
960
|
"list-type": "picture-card",
|
|
961
961
|
class: "custom-upload",
|
|
962
962
|
"on-preview": ee
|
|
963
|
-
}, { ...
|
|
963
|
+
}, { ...M.value, ...t.value }, {
|
|
964
964
|
ref_key: "uploadRef",
|
|
965
965
|
ref: Te
|
|
966
966
|
}), $e({
|
|
967
967
|
default: E(() => {
|
|
968
968
|
var y, fe;
|
|
969
969
|
return [
|
|
970
|
-
!l.value || ((y = t.value) == null ? void 0 : y.multiple) === !0 ? (p(), q(
|
|
970
|
+
!l.value || ((y = t.value) == null ? void 0 : y.multiple) === !0 ? (p(), q(He, { key: 0 }, {
|
|
971
971
|
default: E(() => [
|
|
972
972
|
ae(N(gl))
|
|
973
973
|
]),
|
|
974
974
|
_: 1
|
|
975
|
-
})) : (p(),
|
|
975
|
+
})) : (p(), R("div", {
|
|
976
976
|
key: 1,
|
|
977
|
-
onClick: C[20] || (C[20] = (
|
|
977
|
+
onClick: C[20] || (C[20] = (pe) => pe.stopPropagation()),
|
|
978
978
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
979
979
|
}, [
|
|
980
980
|
Z("div", Bl, [
|
|
981
|
-
ae(
|
|
981
|
+
ae(Ne, O({
|
|
982
982
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
983
983
|
src: l.value
|
|
984
984
|
}, { fit: "cover", lazy: !0, ...(fe = t.value) == null ? void 0 : fe.img }), $e({ _: 2 }, [
|
|
985
|
-
|
|
986
|
-
name:
|
|
987
|
-
fn: E((
|
|
988
|
-
k(B.$slots, `${d.t}-${o.value}-${
|
|
985
|
+
X(Y(), (pe, at) => ({
|
|
986
|
+
name: pe,
|
|
987
|
+
fn: E((pt) => [
|
|
988
|
+
k(B.$slots, `${d.t}-${o.value}-${pe}`, { data: pt }, void 0, !0)
|
|
989
989
|
])
|
|
990
990
|
}))
|
|
991
991
|
]), 1040, ["src"])
|
|
992
992
|
]),
|
|
993
993
|
Z("div", {
|
|
994
994
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "absolute", "align-items": "center", "justify-content": "center" },
|
|
995
|
-
onMouseenter: C[18] || (C[18] = (
|
|
996
|
-
onMouseleave: C[19] || (C[19] = (
|
|
995
|
+
onMouseenter: C[18] || (C[18] = (pe) => v.value = !0),
|
|
996
|
+
onMouseleave: C[19] || (C[19] = (pe) => v.value = !1),
|
|
997
997
|
class: "up-view"
|
|
998
998
|
}, [
|
|
999
|
-
v.value ? (p(), q(
|
|
999
|
+
v.value ? (p(), q(Ge, {
|
|
1000
1000
|
key: 0,
|
|
1001
1001
|
content: "查看大图",
|
|
1002
1002
|
placement: "top"
|
|
@@ -1005,12 +1005,12 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1005
1005
|
ae(N(bl), {
|
|
1006
1006
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
1007
1007
|
color: "white",
|
|
1008
|
-
onClick:
|
|
1008
|
+
onClick: oe
|
|
1009
1009
|
})
|
|
1010
1010
|
]),
|
|
1011
1011
|
_: 1
|
|
1012
|
-
})) :
|
|
1013
|
-
|
|
1012
|
+
})) : be("", !0),
|
|
1013
|
+
M.value.showDel && v.value ? (p(), q(Ge, {
|
|
1014
1014
|
key: 1,
|
|
1015
1015
|
content: "删除",
|
|
1016
1016
|
placement: "top"
|
|
@@ -1019,35 +1019,35 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1019
1019
|
ae(N(Nt), {
|
|
1020
1020
|
style: { width: "1.5em", height: "1.5em" },
|
|
1021
1021
|
color: "white",
|
|
1022
|
-
onClick:
|
|
1022
|
+
onClick: xe
|
|
1023
1023
|
})
|
|
1024
1024
|
]),
|
|
1025
1025
|
_: 1
|
|
1026
|
-
})) :
|
|
1026
|
+
})) : be("", !0)
|
|
1027
1027
|
], 32)
|
|
1028
1028
|
]))
|
|
1029
1029
|
];
|
|
1030
1030
|
}),
|
|
1031
1031
|
_: 2
|
|
1032
1032
|
}, [
|
|
1033
|
-
|
|
1033
|
+
X(Y(), (y, fe) => ({
|
|
1034
1034
|
name: y,
|
|
1035
|
-
fn: E((
|
|
1036
|
-
k(B.$slots, `${d.t}-${o.value}-${y}`, { data:
|
|
1035
|
+
fn: E((pe) => [
|
|
1036
|
+
k(B.$slots, `${d.t}-${o.value}-${y}`, { data: pe }, void 0, !0)
|
|
1037
1037
|
])
|
|
1038
1038
|
}))
|
|
1039
|
-
]), 1040, ["file-list"])) : e.value == N(
|
|
1039
|
+
]), 1040, ["file-list"])) : e.value == N(ke).AUTOCOMPLETE ? (p(), q(gt, O({
|
|
1040
1040
|
key: 17,
|
|
1041
1041
|
modelValue: l.value,
|
|
1042
1042
|
"onUpdate:modelValue": C[22] || (C[22] = (y) => l.value = y)
|
|
1043
1043
|
}, t.value, { placeholder: i.value }), $e({ _: 2 }, [
|
|
1044
|
-
|
|
1044
|
+
X(Y(), (y, fe) => ({
|
|
1045
1045
|
name: y,
|
|
1046
|
-
fn: E((
|
|
1047
|
-
k(B.$slots, `${d.t}-${o.value}-${y}`, { data:
|
|
1046
|
+
fn: E((pe) => [
|
|
1047
|
+
k(B.$slots, `${d.t}-${o.value}-${y}`, { data: pe }, void 0, !0)
|
|
1048
1048
|
])
|
|
1049
1049
|
}))
|
|
1050
|
-
]), 1040, ["modelValue", "placeholder"])) : e.value == N(
|
|
1050
|
+
]), 1040, ["modelValue", "placeholder"])) : e.value == N(ke).INPUTNUMBER ? (p(), q(bt, O({
|
|
1051
1051
|
key: 18,
|
|
1052
1052
|
modelValue: l.value,
|
|
1053
1053
|
"onUpdate:modelValue": C[23] || (C[23] = (y) => l.value = y),
|
|
@@ -1056,78 +1056,78 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1056
1056
|
placeholder: i.value,
|
|
1057
1057
|
disabled: h.value[o.value].disabled
|
|
1058
1058
|
}, t.value), $e({ _: 2 }, [
|
|
1059
|
-
|
|
1059
|
+
X(Y(), (y, fe) => ({
|
|
1060
1060
|
name: y,
|
|
1061
|
-
fn: E((
|
|
1062
|
-
k(B.$slots, `${d.t}-${o.value}-${y}`, { data:
|
|
1061
|
+
fn: E((pe) => [
|
|
1062
|
+
k(B.$slots, `${d.t}-${o.value}-${y}`, { data: pe }, void 0, !0)
|
|
1063
1063
|
])
|
|
1064
1064
|
}))
|
|
1065
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == N(
|
|
1065
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == N(ke).MONEY ? (p(), R("div", {
|
|
1066
1066
|
key: 19,
|
|
1067
|
-
style:
|
|
1067
|
+
style: Ue([{ position: "relative" }, g.value])
|
|
1068
1068
|
}, [
|
|
1069
|
-
ae(
|
|
1069
|
+
ae(ft, O({
|
|
1070
1070
|
modelValue: l.value,
|
|
1071
1071
|
"onUpdate:modelValue": C[24] || (C[24] = (y) => l.value = y),
|
|
1072
1072
|
placeholder: i.value,
|
|
1073
1073
|
type: "number",
|
|
1074
|
-
onInput: C[25] || (C[25] = (y) =>
|
|
1075
|
-
maxlength: ((
|
|
1074
|
+
onInput: C[25] || (C[25] = (y) => T(y, 2)),
|
|
1075
|
+
maxlength: ((et = t.value) == null ? void 0 : et.max) || 25
|
|
1076
1076
|
}, { ...t.value, type: e.value }), $e({
|
|
1077
1077
|
suffix: E(() => [
|
|
1078
1078
|
Z("div", {
|
|
1079
1079
|
title: N(Bt)(l.value),
|
|
1080
1080
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1081
|
-
},
|
|
1081
|
+
}, Ce(N(Bt)(l.value)), 9, Il)
|
|
1082
1082
|
]),
|
|
1083
1083
|
_: 2
|
|
1084
1084
|
}, [
|
|
1085
|
-
|
|
1085
|
+
X(Y(), (y, fe) => ({
|
|
1086
1086
|
name: y,
|
|
1087
|
-
fn: E((
|
|
1088
|
-
k(B.$slots, `${d.t}-${o.value}-${y}`, { data:
|
|
1087
|
+
fn: E((pe) => [
|
|
1088
|
+
k(B.$slots, `${d.t}-${o.value}-${y}`, { data: pe }, void 0, !0)
|
|
1089
1089
|
])
|
|
1090
1090
|
}))
|
|
1091
1091
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
1092
|
-
], 4)) : (
|
|
1092
|
+
], 4)) : (tt = e.value) != null && tt.startsWith("link") ? (p(), R("div", {
|
|
1093
1093
|
key: 20,
|
|
1094
|
-
style:
|
|
1094
|
+
style: Ue(g.value)
|
|
1095
1095
|
}, [
|
|
1096
|
-
ae(
|
|
1096
|
+
ae(P, O(t.value, {
|
|
1097
1097
|
type: e.value.replace("link-", ""),
|
|
1098
|
-
innerHTML:
|
|
1098
|
+
innerHTML: Q.value || l.value
|
|
1099
1099
|
}), null, 16, ["type", "innerHTML"])
|
|
1100
|
-
], 4)) : e.value != "textarea" && ((
|
|
1100
|
+
], 4)) : e.value != "textarea" && ((Xe = e.value) != null && Xe.startsWith("text")) ? (p(), R("div", {
|
|
1101
1101
|
key: 21,
|
|
1102
|
-
style:
|
|
1102
|
+
style: Ue(g.value)
|
|
1103
1103
|
}, [
|
|
1104
|
-
ae(
|
|
1104
|
+
ae(ie, O(t.value, {
|
|
1105
1105
|
type: e.value.replace("text-", ""),
|
|
1106
|
-
innerHTML:
|
|
1106
|
+
innerHTML: Q.value || l.value
|
|
1107
1107
|
}), null, 16, ["type", "innerHTML"])
|
|
1108
|
-
], 4)) : e.value == "avatar" ? (p(),
|
|
1108
|
+
], 4)) : e.value == "avatar" ? (p(), R("div", {
|
|
1109
1109
|
key: 22,
|
|
1110
|
-
style:
|
|
1110
|
+
style: Ue(g.value)
|
|
1111
1111
|
}, [
|
|
1112
|
-
|
|
1112
|
+
Q.value ? (p(), q(S, Tt(O({ key: 0 }, t.value)), {
|
|
1113
1113
|
default: E(() => [
|
|
1114
|
-
Z("div", { innerHTML:
|
|
1114
|
+
Z("div", { innerHTML: Q.value }, null, 8, Ol)
|
|
1115
1115
|
]),
|
|
1116
1116
|
_: 1
|
|
1117
|
-
}, 16)) : (p(), q(
|
|
1118
|
-
], 4)) : (
|
|
1117
|
+
}, 16)) : (p(), q(S, Tt(O({ key: 1 }, t.value)), null, 16))
|
|
1118
|
+
], 4)) : (Qe = e.value) != null && Qe.startsWith("tag") ? (p(), R("div", {
|
|
1119
1119
|
key: 23,
|
|
1120
|
-
style:
|
|
1120
|
+
style: Ue(g.value)
|
|
1121
1121
|
}, [
|
|
1122
|
-
Array.isArray(
|
|
1123
|
-
typeof y == "object" ? (p(), q(
|
|
1122
|
+
Array.isArray(Q.value) && Q.value.length > 0 ? (p(!0), R(le, { key: 0 }, X(Q.value, (y, fe) => (p(), R(le, { key: fe }, [
|
|
1123
|
+
typeof y == "object" ? (p(), q(K, O({
|
|
1124
1124
|
key: 0,
|
|
1125
1125
|
"disable-transitions": "",
|
|
1126
1126
|
ref_for: !0
|
|
1127
1127
|
}, y, {
|
|
1128
1128
|
innerHTML: y == null ? void 0 : y.value,
|
|
1129
1129
|
style: { "margin-right": "3px" }
|
|
1130
|
-
}), null, 16, ["innerHTML"])) : (p(), q(
|
|
1130
|
+
}), null, 16, ["innerHTML"])) : (p(), q(K, O({
|
|
1131
1131
|
key: 1,
|
|
1132
1132
|
"disable-transitions": "",
|
|
1133
1133
|
ref_for: !0
|
|
@@ -1136,36 +1136,36 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1136
1136
|
innerHTML: y,
|
|
1137
1137
|
style: { "margin-right": "3px" }
|
|
1138
1138
|
}), null, 16, ["type", "innerHTML"]))
|
|
1139
|
-
], 64))), 128)) : (p(), q(
|
|
1139
|
+
], 64))), 128)) : (p(), q(K, O({
|
|
1140
1140
|
key: 1,
|
|
1141
1141
|
"disable-transitions": ""
|
|
1142
1142
|
}, t.value, {
|
|
1143
1143
|
type: e.value.replace("tag-", ""),
|
|
1144
|
-
innerHTML:
|
|
1144
|
+
innerHTML: Q.value || l.value
|
|
1145
1145
|
}), null, 16, ["type", "innerHTML"]))
|
|
1146
|
-
], 4)) : e.value == "div" ? (p(),
|
|
1147
|
-
innerHTML:
|
|
1146
|
+
], 4)) : e.value == "div" ? (p(), R("div", O({ key: 24 }, t.value, {
|
|
1147
|
+
innerHTML: Q.value || l.value,
|
|
1148
1148
|
style: g.value
|
|
1149
|
-
}), null, 16, Ul)) : e.value == "span" ? (p(),
|
|
1150
|
-
innerHTML:
|
|
1149
|
+
}), null, 16, Ul)) : e.value == "span" ? (p(), R("span", O({ key: 25 }, t.value, {
|
|
1150
|
+
innerHTML: Q.value || l.value,
|
|
1151
1151
|
style: g.value
|
|
1152
|
-
}), null, 16, Rl)) : (p(), q(
|
|
1152
|
+
}), null, 16, Rl)) : (p(), q(ft, O({
|
|
1153
1153
|
key: 26,
|
|
1154
1154
|
modelValue: l.value,
|
|
1155
1155
|
"onUpdate:modelValue": C[26] || (C[26] = (y) => l.value = y),
|
|
1156
1156
|
placeholder: i.value,
|
|
1157
|
-
maxlength: ((
|
|
1157
|
+
maxlength: ((st = t.value) == null ? void 0 : st.max) || 25,
|
|
1158
1158
|
clearable: !0,
|
|
1159
1159
|
onInput: C[27] || (C[27] = (y) => {
|
|
1160
1160
|
var fe;
|
|
1161
|
-
return e.value == N(
|
|
1161
|
+
return e.value == N(ke).NUMBER ? T(y, ((fe = t.value) == null ? void 0 : fe.precision) || 2) : y;
|
|
1162
1162
|
}),
|
|
1163
1163
|
onClear: C[28] || (C[28] = () => {
|
|
1164
1164
|
d.t == "q" && h.value.table.load();
|
|
1165
1165
|
}),
|
|
1166
1166
|
disabled: h.value[o.value].disabled
|
|
1167
1167
|
}, { ...N(Je)(t.value, (y) => !["suffix", "prefix", "append", "prepend"].includes(y)), type: e.value }), $e({ _: 2 }, [
|
|
1168
|
-
(
|
|
1168
|
+
(H = t.value) != null && H.suffix ? {
|
|
1169
1169
|
name: "suffix",
|
|
1170
1170
|
fn: E(() => {
|
|
1171
1171
|
var y;
|
|
@@ -1177,7 +1177,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1177
1177
|
}),
|
|
1178
1178
|
key: "0"
|
|
1179
1179
|
} : void 0,
|
|
1180
|
-
(
|
|
1180
|
+
(ze = t.value) != null && ze.prefix ? {
|
|
1181
1181
|
name: "prefix",
|
|
1182
1182
|
fn: E(() => {
|
|
1183
1183
|
var y;
|
|
@@ -1189,7 +1189,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1189
1189
|
}),
|
|
1190
1190
|
key: "1"
|
|
1191
1191
|
} : void 0,
|
|
1192
|
-
(
|
|
1192
|
+
(lt = t.value) != null && lt.append ? {
|
|
1193
1193
|
name: "append",
|
|
1194
1194
|
fn: E(() => {
|
|
1195
1195
|
var y;
|
|
@@ -1201,7 +1201,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1201
1201
|
}),
|
|
1202
1202
|
key: "2"
|
|
1203
1203
|
} : void 0,
|
|
1204
|
-
(
|
|
1204
|
+
(vt = t.value) != null && vt.prepend ? {
|
|
1205
1205
|
name: "prepend",
|
|
1206
1206
|
fn: E(() => {
|
|
1207
1207
|
var y;
|
|
@@ -1213,11 +1213,11 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1213
1213
|
}),
|
|
1214
1214
|
key: "3"
|
|
1215
1215
|
} : void 0,
|
|
1216
|
-
|
|
1216
|
+
X(Y(), (y, fe) => ({
|
|
1217
1217
|
name: y,
|
|
1218
|
-
fn: E((
|
|
1218
|
+
fn: E((pe) => [
|
|
1219
1219
|
k(B.$slots, `${d.t}-${o.value}-${y}`, {
|
|
1220
|
-
data:
|
|
1220
|
+
data: pe,
|
|
1221
1221
|
form: n.formInfo
|
|
1222
1222
|
}, void 0, !0)
|
|
1223
1223
|
])
|
|
@@ -1243,22 +1243,22 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1243
1243
|
return typeof u[1].search == "function" ? u[1].search && ((i = u[1].search(l.value, d.value.table)) == null ? void 0 : i.more) === D : u[1].search && u[1].search.more === D;
|
|
1244
1244
|
}).map((u) => [u[0], u[1]]);
|
|
1245
1245
|
c.sort((u, i) => {
|
|
1246
|
-
const g = (
|
|
1247
|
-
var
|
|
1246
|
+
const g = (Q) => {
|
|
1247
|
+
var de;
|
|
1248
1248
|
try {
|
|
1249
|
-
if (typeof
|
|
1250
|
-
const
|
|
1251
|
-
return (
|
|
1249
|
+
if (typeof Q[1].search == "function") {
|
|
1250
|
+
const me = Q[1].search(l.value, d.value.table);
|
|
1251
|
+
return (me == null ? void 0 : me.sort) ?? 0;
|
|
1252
1252
|
} else
|
|
1253
|
-
return ((
|
|
1254
|
-
} catch (
|
|
1255
|
-
return console.warn(`获取 ${
|
|
1253
|
+
return ((de = Q[1].search) == null ? void 0 : de.sort) ?? 0;
|
|
1254
|
+
} catch (me) {
|
|
1255
|
+
return console.warn(`获取 ${Q[0]} 的sort值时出错:`, me), 0;
|
|
1256
1256
|
}
|
|
1257
|
-
}, te = g(u),
|
|
1258
|
-
return
|
|
1257
|
+
}, te = g(u), L = g(i), Y = Number(te) || 0, M = Number(L) || 0;
|
|
1258
|
+
return Y - M;
|
|
1259
1259
|
});
|
|
1260
1260
|
let v = Object.fromEntries(c);
|
|
1261
|
-
return
|
|
1261
|
+
return it(() => v).value;
|
|
1262
1262
|
}, e = (D) => typeof D.search == "function" ? D.search(l.value, d.value.table) : D.search || {}, h = (D) => {
|
|
1263
1263
|
const c = e(D);
|
|
1264
1264
|
return (c == null ? void 0 : c.type) || D.type;
|
|
@@ -1270,13 +1270,13 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1270
1270
|
};
|
|
1271
1271
|
return (D, c) => {
|
|
1272
1272
|
const v = z("el-form-item");
|
|
1273
|
-
return p(!0),
|
|
1273
|
+
return p(!0), R(le, null, X(o(t.more), (u, i) => k(D.$slots, `q-${i}`, {
|
|
1274
1274
|
key: i,
|
|
1275
1275
|
item: u,
|
|
1276
1276
|
queryModel: l.value,
|
|
1277
1277
|
model: d.value
|
|
1278
1278
|
}, () => [
|
|
1279
|
-
ae(v,
|
|
1279
|
+
ae(v, O({
|
|
1280
1280
|
label: u.label,
|
|
1281
1281
|
style: { width: f(u) },
|
|
1282
1282
|
ref_for: !0
|
|
@@ -1298,7 +1298,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1298
1298
|
t: "q",
|
|
1299
1299
|
formInfo: l.value
|
|
1300
1300
|
}, $e({ _: 2 }, [
|
|
1301
|
-
|
|
1301
|
+
X(Object.keys(D.$slots), (g) => ({
|
|
1302
1302
|
name: g,
|
|
1303
1303
|
fn: E((te) => [
|
|
1304
1304
|
k(D.$slots, g, {
|
|
@@ -1328,7 +1328,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1328
1328
|
},
|
|
1329
1329
|
emits: /* @__PURE__ */ ot(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1330
1330
|
setup(n, { emit: d }) {
|
|
1331
|
-
const t = nt(n, "modelValue"), l = d, o = It("options"), e =
|
|
1331
|
+
const t = nt(n, "modelValue"), l = d, o = It("options"), e = re(!1), h = nt(n, "info"), f = {
|
|
1332
1332
|
hidden: !1,
|
|
1333
1333
|
type: "hidden",
|
|
1334
1334
|
labelWidth: 100,
|
|
@@ -1345,7 +1345,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1345
1345
|
hidden: !0,
|
|
1346
1346
|
type: "primary",
|
|
1347
1347
|
label: "更多",
|
|
1348
|
-
icon: () =>
|
|
1348
|
+
icon: () => Ee($l),
|
|
1349
1349
|
click: () => {
|
|
1350
1350
|
e.value = !e.value;
|
|
1351
1351
|
}
|
|
@@ -1355,7 +1355,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1355
1355
|
type: "primary",
|
|
1356
1356
|
hidden: !1,
|
|
1357
1357
|
plain: !1,
|
|
1358
|
-
icon: () =>
|
|
1358
|
+
icon: () => Ee(Pt),
|
|
1359
1359
|
click: () => {
|
|
1360
1360
|
l("reset", h.value);
|
|
1361
1361
|
}
|
|
@@ -1364,7 +1364,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1364
1364
|
hidden: !1,
|
|
1365
1365
|
type: "primary",
|
|
1366
1366
|
label: "查询",
|
|
1367
|
-
icon: () =>
|
|
1367
|
+
icon: () => Ee(wl),
|
|
1368
1368
|
click: () => {
|
|
1369
1369
|
l("query", h.value), e.value = !1;
|
|
1370
1370
|
}
|
|
@@ -1380,7 +1380,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1380
1380
|
}
|
|
1381
1381
|
}
|
|
1382
1382
|
};
|
|
1383
|
-
t.value.query =
|
|
1383
|
+
t.value.query = Ie(f, o == null ? void 0 : o.query, t.value.query);
|
|
1384
1384
|
const D = {
|
|
1385
1385
|
2: {
|
|
1386
1386
|
title: "更多查询",
|
|
@@ -1398,7 +1398,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1398
1398
|
trigger: "click"
|
|
1399
1399
|
}
|
|
1400
1400
|
};
|
|
1401
|
-
t.value.query.more.dialog =
|
|
1401
|
+
t.value.query.more.dialog = Ie(
|
|
1402
1402
|
D[t.value.query.more.mode] || {},
|
|
1403
1403
|
t.value.query.more.dialog
|
|
1404
1404
|
);
|
|
@@ -1411,25 +1411,25 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1411
1411
|
// width: "280px"
|
|
1412
1412
|
}
|
|
1413
1413
|
};
|
|
1414
|
-
t.value.queryItems =
|
|
1415
|
-
const v = (
|
|
1416
|
-
const
|
|
1414
|
+
t.value.queryItems = Ie(c, o == null ? void 0 : o.queryItems, t.value.queryItems);
|
|
1415
|
+
const v = (L, Y) => {
|
|
1416
|
+
const M = Object.keys(L.slots).filter((Q) => Q !== "default").reduce((Q, de) => (Q[de] = (me) => L.slots[de]({
|
|
1417
1417
|
model: t.value
|
|
1418
1418
|
// 传递当前模型数据
|
|
1419
|
-
}),
|
|
1420
|
-
return
|
|
1419
|
+
}), Q), {});
|
|
1420
|
+
return Ee(Ut, {
|
|
1421
1421
|
modelValue: t.value,
|
|
1422
|
-
"onUpdate:modelValue": (
|
|
1422
|
+
"onUpdate:modelValue": (Q) => t.value = Q,
|
|
1423
1423
|
info: h.value,
|
|
1424
|
-
"onUpdate:info": (
|
|
1425
|
-
more:
|
|
1426
|
-
},
|
|
1424
|
+
"onUpdate:info": (Q) => h.value = Q,
|
|
1425
|
+
more: Y
|
|
1426
|
+
}, M);
|
|
1427
1427
|
}, u = Ht(), i = () => {
|
|
1428
|
-
var
|
|
1429
|
-
const
|
|
1428
|
+
var M, Q, de, me, se, ce, we, Fe, xe;
|
|
1429
|
+
const L = [
|
|
1430
1430
|
{
|
|
1431
1431
|
key: "query",
|
|
1432
|
-
hidden: (
|
|
1432
|
+
hidden: (de = (Q = (M = t.value) == null ? void 0 : M.query) == null ? void 0 : Q.query) == null ? void 0 : de.hidden,
|
|
1433
1433
|
component: Ye,
|
|
1434
1434
|
props: {
|
|
1435
1435
|
...t.value.query.query,
|
|
@@ -1440,7 +1440,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1440
1440
|
},
|
|
1441
1441
|
{
|
|
1442
1442
|
key: "reset",
|
|
1443
|
-
hidden: (
|
|
1443
|
+
hidden: (ce = (se = (me = t.value) == null ? void 0 : me.query) == null ? void 0 : se.reset) == null ? void 0 : ce.hidden,
|
|
1444
1444
|
component: Ye,
|
|
1445
1445
|
props: {
|
|
1446
1446
|
...t.value.query.reset,
|
|
@@ -1451,7 +1451,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1451
1451
|
},
|
|
1452
1452
|
{
|
|
1453
1453
|
key: "more",
|
|
1454
|
-
hidden: (
|
|
1454
|
+
hidden: (xe = (Fe = (we = t.value) == null ? void 0 : we.query) == null ? void 0 : Fe.more) == null ? void 0 : xe.hidden,
|
|
1455
1455
|
component: t.value.query.more.mode === 3 ? xt : Ye,
|
|
1456
1456
|
props: t.value.query.more.mode === 3 ? { ...t.value.query.more.dialog } : {
|
|
1457
1457
|
...t.value.query.more,
|
|
@@ -1459,127 +1459,127 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1459
1459
|
},
|
|
1460
1460
|
label: t.value.query.more.label,
|
|
1461
1461
|
sort: t.value.query.more.sort || 0,
|
|
1462
|
-
content: t.value.query.more.mode === 3 ? () =>
|
|
1462
|
+
content: t.value.query.more.mode === 3 ? () => Ee(wt, {
|
|
1463
1463
|
class: "query-form",
|
|
1464
1464
|
...Je(t.value.query, (ee) => !["query", "more", "reset"].includes(ee))
|
|
1465
1465
|
}, () => v({ slots: u }, !0)) : null
|
|
1466
1466
|
}
|
|
1467
1467
|
];
|
|
1468
|
-
return
|
|
1469
|
-
reference: () =>
|
|
1468
|
+
return L.sort((ee, oe) => ee.sort - oe.sort), L.filter((ee) => !ee.hidden).map((ee) => ee.key === "more" && ee.component === xt ? Ee(xt, ee.props, {
|
|
1469
|
+
reference: () => Ee(Ye, t.value.query.more, () => ee.label),
|
|
1470
1470
|
default: ee.content
|
|
1471
|
-
}) : (ee.props.slot = "query-" + ee.key, ee.label ?
|
|
1472
|
-
}, g =
|
|
1471
|
+
}) : (ee.props.slot = "query-" + ee.key, ee.label ? Ee(ee.component, ee.props, () => ee.label) : Ee(ee.component, ee.props)));
|
|
1472
|
+
}, g = it(() => ({
|
|
1473
1473
|
diplay: "flex",
|
|
1474
1474
|
flexDirection: t.value.query.container.mode === "row" ? "row" : "column"
|
|
1475
1475
|
})), te = () => {
|
|
1476
1476
|
alert("查询设置,正在开发中......");
|
|
1477
1477
|
};
|
|
1478
|
-
return (
|
|
1479
|
-
var
|
|
1480
|
-
const
|
|
1481
|
-
return p(),
|
|
1478
|
+
return (L, Y) => {
|
|
1479
|
+
var de, me, se, ce, we, Fe, xe, ee, oe, Te, T, w, b, s, V, _, A;
|
|
1480
|
+
const M = z("el-form-item"), Q = z("el-drawer");
|
|
1481
|
+
return p(), R(le, null, [
|
|
1482
1482
|
Z("div", {
|
|
1483
1483
|
class: "g-query-container",
|
|
1484
|
-
style:
|
|
1484
|
+
style: Ue({ ...g.value, ...((me = (de = t.value.query) == null ? void 0 : de.container) == null ? void 0 : me.style) || {} }),
|
|
1485
1485
|
onDblclick: te
|
|
1486
1486
|
}, [
|
|
1487
|
-
ae(N(wt),
|
|
1488
|
-
onSubmit:
|
|
1487
|
+
ae(N(wt), O({
|
|
1488
|
+
onSubmit: Y[0] || (Y[0] = kt(() => {
|
|
1489
1489
|
}, ["prevent"]))
|
|
1490
1490
|
}, N(Je)(t.value.query, (F) => !["query", "more", "reset", "btns"].includes(F))), {
|
|
1491
1491
|
default: E(() => {
|
|
1492
1492
|
var F, J;
|
|
1493
1493
|
return [
|
|
1494
|
-
(p(), q(Ze(v({ slots:
|
|
1495
|
-
((J = (F = t.value.query) == null ? void 0 : F.container) == null ? void 0 : J.inline) === !0 ? (p(), q(
|
|
1494
|
+
(p(), q(Ze(v({ slots: L.$slots }, void 0)))),
|
|
1495
|
+
((J = (F = t.value.query) == null ? void 0 : F.container) == null ? void 0 : J.inline) === !0 ? (p(), q(M, { key: 0 }, {
|
|
1496
1496
|
default: E(() => {
|
|
1497
|
-
var
|
|
1497
|
+
var ne, ve, I, j, Ve;
|
|
1498
1498
|
return [
|
|
1499
1499
|
Z("div", {
|
|
1500
|
-
style:
|
|
1500
|
+
style: Ue((ve = (ne = t.value.query) == null ? void 0 : ne.btns) == null ? void 0 : ve.style)
|
|
1501
1501
|
}, [
|
|
1502
1502
|
t.value.query.group ? (p(), q(N(Et), { key: 0 }, {
|
|
1503
1503
|
default: E(() => [
|
|
1504
|
-
(p(!0),
|
|
1504
|
+
(p(!0), R(le, null, X(i(), (he) => k(L.$slots, he.props.slot, {}, () => [
|
|
1505
1505
|
(p(), q(Ze(he)))
|
|
1506
1506
|
], !0)), 256)),
|
|
1507
|
-
k(
|
|
1507
|
+
k(L.$slots, "q-btns", {}, void 0, !0)
|
|
1508
1508
|
]),
|
|
1509
1509
|
_: 3
|
|
1510
|
-
})) : (p(),
|
|
1511
|
-
(
|
|
1510
|
+
})) : (p(), R(le, { key: 1 }, [
|
|
1511
|
+
(Ve = (j = (I = t.value) == null ? void 0 : I.query) == null ? void 0 : j.btns) != null && Ve.group ? (p(), q(N(Et), { key: 0 }, {
|
|
1512
1512
|
default: E(() => [
|
|
1513
|
-
(p(!0),
|
|
1513
|
+
(p(!0), R(le, null, X(i(), (he) => k(L.$slots, he.props.slot, {}, () => [
|
|
1514
1514
|
(p(), q(Ze(he)))
|
|
1515
1515
|
], !0)), 256))
|
|
1516
1516
|
]),
|
|
1517
1517
|
_: 3
|
|
1518
|
-
})) : (p(!0),
|
|
1518
|
+
})) : (p(!0), R(le, { key: 1 }, X(i(), (he) => k(L.$slots, he.props.slot, {}, () => [
|
|
1519
1519
|
(p(), q(Ze(he)))
|
|
1520
1520
|
], !0)), 256)),
|
|
1521
|
-
k(
|
|
1521
|
+
k(L.$slots, "q-btns", {}, void 0, !0)
|
|
1522
1522
|
], 64))
|
|
1523
1523
|
], 4)
|
|
1524
1524
|
];
|
|
1525
1525
|
}),
|
|
1526
1526
|
_: 3
|
|
1527
|
-
})) :
|
|
1527
|
+
})) : be("", !0)
|
|
1528
1528
|
];
|
|
1529
1529
|
}),
|
|
1530
1530
|
_: 3
|
|
1531
1531
|
}, 16),
|
|
1532
|
-
((
|
|
1532
|
+
((we = (ce = (se = t.value) == null ? void 0 : se.query) == null ? void 0 : ce.container) == null ? void 0 : we.inline) === !1 ? (p(), R("div", {
|
|
1533
1533
|
key: 0,
|
|
1534
|
-
style:
|
|
1534
|
+
style: Ue((xe = (Fe = t.value.query) == null ? void 0 : Fe.btns) == null ? void 0 : xe.style)
|
|
1535
1535
|
}, [
|
|
1536
1536
|
t.value.query.group ? (p(), q(N(Et), { key: 0 }, {
|
|
1537
1537
|
default: E(() => [
|
|
1538
|
-
(p(!0),
|
|
1538
|
+
(p(!0), R(le, null, X(i(), (F) => k(L.$slots, F.props.slot, {}, () => [
|
|
1539
1539
|
(p(), q(Ze(F)))
|
|
1540
1540
|
], !0)), 256)),
|
|
1541
|
-
k(
|
|
1541
|
+
k(L.$slots, "q-btns", {}, void 0, !0)
|
|
1542
1542
|
]),
|
|
1543
1543
|
_: 3
|
|
1544
|
-
})) : (p(),
|
|
1545
|
-
(
|
|
1544
|
+
})) : (p(), R(le, { key: 1 }, [
|
|
1545
|
+
(oe = (ee = t.value.query) == null ? void 0 : ee.btns) != null && oe.group ? (p(), q(N(Et), { key: 0 }, {
|
|
1546
1546
|
default: E(() => [
|
|
1547
|
-
(p(!0),
|
|
1547
|
+
(p(!0), R(le, null, X(i(), (F) => k(L.$slots, F.props.slot, {}, () => [
|
|
1548
1548
|
(p(), q(Ze(F)))
|
|
1549
1549
|
], !0)), 256))
|
|
1550
1550
|
]),
|
|
1551
1551
|
_: 3
|
|
1552
|
-
})) : (p(!0),
|
|
1552
|
+
})) : (p(!0), R(le, { key: 1 }, X(i(), (F) => k(L.$slots, F.props.slot, {}, () => [
|
|
1553
1553
|
(p(), q(Ze(F)))
|
|
1554
1554
|
], !0)), 256)),
|
|
1555
|
-
k(
|
|
1555
|
+
k(L.$slots, "q-btns", {}, void 0, !0)
|
|
1556
1556
|
], 64))
|
|
1557
|
-
], 4)) :
|
|
1557
|
+
], 4)) : be("", !0)
|
|
1558
1558
|
], 36),
|
|
1559
|
-
e.value && !((w = (
|
|
1559
|
+
e.value && !((w = (T = (Te = t.value) == null ? void 0 : Te.query) == null ? void 0 : T.more) != null && w.hidden) && t.value.query.more.mode == 2 ? (p(), q(Q, O({
|
|
1560
1560
|
key: 0,
|
|
1561
1561
|
modelValue: e.value,
|
|
1562
|
-
"onUpdate:modelValue":
|
|
1562
|
+
"onUpdate:modelValue": Y[6] || (Y[6] = (F) => e.value = F),
|
|
1563
1563
|
title: "更多查询",
|
|
1564
1564
|
"show-close": !1
|
|
1565
1565
|
}, t.value.query.more.dialog), $e({
|
|
1566
1566
|
default: E(() => [
|
|
1567
|
-
ae(N(wt),
|
|
1568
|
-
onSubmit:
|
|
1567
|
+
ae(N(wt), O({
|
|
1568
|
+
onSubmit: Y[3] || (Y[3] = kt(() => {
|
|
1569
1569
|
}, ["prevent"]))
|
|
1570
1570
|
}, N(Je)(t.value.query, (F) => !["query", "more", "reset"].includes(F)), { style: { width: "98%" } }), {
|
|
1571
1571
|
default: E(() => [
|
|
1572
1572
|
ae(Ut, {
|
|
1573
1573
|
modelValue: t.value,
|
|
1574
|
-
"onUpdate:modelValue":
|
|
1574
|
+
"onUpdate:modelValue": Y[1] || (Y[1] = (F) => t.value = F),
|
|
1575
1575
|
info: h.value,
|
|
1576
|
-
"onUpdate:info":
|
|
1576
|
+
"onUpdate:info": Y[2] || (Y[2] = (F) => h.value = F),
|
|
1577
1577
|
more: !0
|
|
1578
1578
|
}, $e({ _: 2 }, [
|
|
1579
|
-
|
|
1579
|
+
X(L.$slots, (F, J, ne) => ({
|
|
1580
1580
|
name: J,
|
|
1581
|
-
fn: E((
|
|
1582
|
-
k(
|
|
1581
|
+
fn: E((ve) => [
|
|
1582
|
+
k(L.$slots, J, { model: t.value }, void 0, !0)
|
|
1583
1583
|
])
|
|
1584
1584
|
}))
|
|
1585
1585
|
]), 1032, ["modelValue", "info"])
|
|
@@ -1593,19 +1593,19 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1593
1593
|
name: "footer",
|
|
1594
1594
|
fn: E(() => [
|
|
1595
1595
|
Z("div", Tt(sl(t.value.query.more.dialog.footer)), [
|
|
1596
|
-
ae(N(Ye),
|
|
1597
|
-
onClick:
|
|
1596
|
+
ae(N(Ye), O(t.value.query.query, {
|
|
1597
|
+
onClick: Y[4] || (Y[4] = (F) => t.value.query.query.click())
|
|
1598
1598
|
}), {
|
|
1599
1599
|
default: E(() => [
|
|
1600
|
-
|
|
1600
|
+
Oe(Ce(t.value.query.query.label), 1)
|
|
1601
1601
|
]),
|
|
1602
1602
|
_: 1
|
|
1603
1603
|
}, 16),
|
|
1604
|
-
ae(N(Ye),
|
|
1605
|
-
onClick:
|
|
1604
|
+
ae(N(Ye), O(t.value.query.reset, {
|
|
1605
|
+
onClick: Y[5] || (Y[5] = (F) => t.value.query.reset.click())
|
|
1606
1606
|
}), {
|
|
1607
1607
|
default: E(() => [
|
|
1608
|
-
|
|
1608
|
+
Oe(Ce(t.value.query.reset.label), 1)
|
|
1609
1609
|
]),
|
|
1610
1610
|
_: 1
|
|
1611
1611
|
}, 16)
|
|
@@ -1613,31 +1613,31 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1613
1613
|
]),
|
|
1614
1614
|
key: "0"
|
|
1615
1615
|
}
|
|
1616
|
-
]), 1040, ["modelValue"])) :
|
|
1616
|
+
]), 1040, ["modelValue"])) : be("", !0),
|
|
1617
1617
|
ae(il, {
|
|
1618
1618
|
duration: 300,
|
|
1619
1619
|
name: "nested",
|
|
1620
1620
|
style: { padding: "10px" }
|
|
1621
1621
|
}, {
|
|
1622
1622
|
default: E(() => {
|
|
1623
|
-
var F, J,
|
|
1623
|
+
var F, J, ne;
|
|
1624
1624
|
return [
|
|
1625
|
-
e.value && !((
|
|
1625
|
+
e.value && !((ne = (J = (F = t.value) == null ? void 0 : F.query) == null ? void 0 : J.more) != null && ne.hidden) && t.value.query.more.mode == 1 ? (p(), R("div", Pl, [
|
|
1626
1626
|
Z("div", jl, [
|
|
1627
|
-
t.value.query.more.mode == 1 ? dl((p(), q(N(wt),
|
|
1627
|
+
t.value.query.more.mode == 1 ? dl((p(), q(N(wt), O({
|
|
1628
1628
|
key: 0,
|
|
1629
|
-
onSubmit:
|
|
1629
|
+
onSubmit: Y[7] || (Y[7] = kt(() => {
|
|
1630
1630
|
}, ["prevent"]))
|
|
1631
|
-
}, N(Je)(t.value.query, (
|
|
1631
|
+
}, N(Je)(t.value.query, (ve) => !["query", "more", "reset"].includes(ve))), {
|
|
1632
1632
|
default: E(() => [
|
|
1633
|
-
(p(), q(Ze(v({ slots:
|
|
1633
|
+
(p(), q(Ze(v({ slots: L.$slots }, !0))))
|
|
1634
1634
|
]),
|
|
1635
1635
|
_: 1
|
|
1636
1636
|
}, 16)), [
|
|
1637
1637
|
[cl, e.value]
|
|
1638
|
-
]) :
|
|
1638
|
+
]) : be("", !0)
|
|
1639
1639
|
])
|
|
1640
|
-
])) :
|
|
1640
|
+
])) : be("", !0)
|
|
1641
1641
|
];
|
|
1642
1642
|
}),
|
|
1643
1643
|
_: 1
|
|
@@ -1676,7 +1676,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1676
1676
|
label: "提交",
|
|
1677
1677
|
plain: !0,
|
|
1678
1678
|
hidden: !1,
|
|
1679
|
-
icon: () =>
|
|
1679
|
+
icon: () => Ee(jt)
|
|
1680
1680
|
},
|
|
1681
1681
|
//保存并提交按钮属性
|
|
1682
1682
|
saveSubmit: {
|
|
@@ -1685,7 +1685,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1685
1685
|
label: "保存提交",
|
|
1686
1686
|
plain: !0,
|
|
1687
1687
|
hidden: !0,
|
|
1688
|
-
icon: () =>
|
|
1688
|
+
icon: () => Ee(El)
|
|
1689
1689
|
},
|
|
1690
1690
|
//表单重置按钮属性
|
|
1691
1691
|
reset: {
|
|
@@ -1693,7 +1693,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1693
1693
|
label: "重置",
|
|
1694
1694
|
hidden: !0,
|
|
1695
1695
|
plain: !0,
|
|
1696
|
-
icon: () =>
|
|
1696
|
+
icon: () => Ee(Pt)
|
|
1697
1697
|
},
|
|
1698
1698
|
slots: {},
|
|
1699
1699
|
tabs: {
|
|
@@ -1711,34 +1711,34 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1711
1711
|
}),
|
|
1712
1712
|
emits: /* @__PURE__ */ ot(["submit", "reset"], ["update:modelValue"]),
|
|
1713
1713
|
setup(n, { expose: d, emit: t }) {
|
|
1714
|
-
var
|
|
1715
|
-
const l = nt(n, "modelValue"), o = t, e =
|
|
1716
|
-
l.value.form =
|
|
1714
|
+
var we, Fe, xe, ee, oe, Te;
|
|
1715
|
+
const l = nt(n, "modelValue"), o = t, e = re(null), h = It("options"), f = re({}), D = re(""), c = n;
|
|
1716
|
+
l.value.form = Ie(
|
|
1717
1717
|
Jt,
|
|
1718
1718
|
h == null ? void 0 : h.form,
|
|
1719
|
-
(
|
|
1720
|
-
), l.value.form.style =
|
|
1721
|
-
(
|
|
1719
|
+
(we = l.value) == null ? void 0 : we.form
|
|
1720
|
+
), l.value.form.style = Ie(
|
|
1721
|
+
(xe = (Fe = l.value) == null ? void 0 : Fe.form) == null ? void 0 : xe.style,
|
|
1722
1722
|
{ ...(ee = Ot()) == null ? void 0 : ee.style }
|
|
1723
1723
|
);
|
|
1724
|
-
const v = async (
|
|
1724
|
+
const v = async (T, w, b) => {
|
|
1725
1725
|
let s = 5;
|
|
1726
1726
|
for (; s > 0; ) {
|
|
1727
|
-
if (await
|
|
1727
|
+
if (await mt(), e.value) {
|
|
1728
1728
|
e.value.validate((V, _) => {
|
|
1729
|
-
V ? o("submit",
|
|
1729
|
+
V ? o("submit", T, w, b) : console.error("表单验证不通过!", _);
|
|
1730
1730
|
});
|
|
1731
1731
|
return;
|
|
1732
1732
|
}
|
|
1733
1733
|
s--, await new Promise((V) => setTimeout(V, 50));
|
|
1734
1734
|
}
|
|
1735
1735
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1736
|
-
}, u = async (
|
|
1736
|
+
}, u = async (T, w) => {
|
|
1737
1737
|
let b = 5;
|
|
1738
1738
|
for (; b > 0; ) {
|
|
1739
|
-
if (await
|
|
1739
|
+
if (await mt(), e.value)
|
|
1740
1740
|
try {
|
|
1741
|
-
e.value.resetFields(), o("reset",
|
|
1741
|
+
e.value.resetFields(), o("reset", T, w);
|
|
1742
1742
|
return;
|
|
1743
1743
|
} catch (s) {
|
|
1744
1744
|
console.error("表单重置失败:", s);
|
|
@@ -1756,24 +1756,24 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1756
1756
|
width: "100%"
|
|
1757
1757
|
}
|
|
1758
1758
|
};
|
|
1759
|
-
l.value.formItems =
|
|
1759
|
+
l.value.formItems = Ie(
|
|
1760
1760
|
i,
|
|
1761
1761
|
h == null ? void 0 : h.formItems,
|
|
1762
|
-
(
|
|
1762
|
+
(oe = l == null ? void 0 : l.value) == null ? void 0 : oe.formItems
|
|
1763
1763
|
);
|
|
1764
1764
|
const g = {
|
|
1765
1765
|
span: 12,
|
|
1766
1766
|
offset: 0
|
|
1767
1767
|
};
|
|
1768
|
-
l.value.form.cols =
|
|
1768
|
+
l.value.form.cols = Ie(
|
|
1769
1769
|
g,
|
|
1770
1770
|
(Te = h == null ? void 0 : h.form) == null ? void 0 : Te.cols,
|
|
1771
1771
|
l.value.form.cols
|
|
1772
1772
|
);
|
|
1773
|
-
const te = (
|
|
1773
|
+
const te = (T) => {
|
|
1774
1774
|
let w = [];
|
|
1775
|
-
if (
|
|
1776
|
-
w =
|
|
1775
|
+
if (T.rules)
|
|
1776
|
+
w = T.rules;
|
|
1777
1777
|
else {
|
|
1778
1778
|
const s = { ...{
|
|
1779
1779
|
required: void 0,
|
|
@@ -1783,7 +1783,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1783
1783
|
url: void 0,
|
|
1784
1784
|
pattern: void 0,
|
|
1785
1785
|
validate: void 0
|
|
1786
|
-
}, ...
|
|
1786
|
+
}, ...T };
|
|
1787
1787
|
s.required && w.push({
|
|
1788
1788
|
required: !0,
|
|
1789
1789
|
message: `${s.label}不能为空!`,
|
|
@@ -1830,66 +1830,66 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1830
1830
|
});
|
|
1831
1831
|
}
|
|
1832
1832
|
return w;
|
|
1833
|
-
},
|
|
1833
|
+
}, L = (T, w = !1) => {
|
|
1834
1834
|
var V, _, A, F, J;
|
|
1835
|
-
const b = w ?
|
|
1835
|
+
const b = w ? T : T == null ? void 0 : T.item, s = typeof (b == null ? void 0 : b.editor) == "function" ? b.editor(f.value, (V = l.value.form) == null ? void 0 : V.modalState) : (b == null ? void 0 : b.editor) || {};
|
|
1836
1836
|
if (((_ = l.value.form) == null ? void 0 : _.modalState) === "edit") {
|
|
1837
|
-
const
|
|
1838
|
-
return { ...s, ...
|
|
1837
|
+
const ne = typeof (b == null ? void 0 : b.editor) == "object" ? (A = b.editor) == null ? void 0 : A.ep : typeof (b == null ? void 0 : b.editor) == "function" ? s == null ? void 0 : s.ep : {};
|
|
1838
|
+
return { ...s, ...ne };
|
|
1839
1839
|
}
|
|
1840
1840
|
if (((F = l.value.form) == null ? void 0 : F.modalState) === "add") {
|
|
1841
|
-
const
|
|
1842
|
-
return { ...s, ...
|
|
1841
|
+
const ne = typeof (b == null ? void 0 : b.editor) == "object" ? (J = b.editor) == null ? void 0 : J.ap : typeof (b == null ? void 0 : b.editor) == "function" ? s == null ? void 0 : s.ap : {};
|
|
1842
|
+
return { ...s, ...ne };
|
|
1843
1843
|
}
|
|
1844
1844
|
return s;
|
|
1845
|
-
},
|
|
1845
|
+
}, Y = (T) => {
|
|
1846
1846
|
var b, s, V, _, A;
|
|
1847
|
-
const w = typeof
|
|
1848
|
-
return ((s = l.value.form) == null ? void 0 : s.modalState) === "edit" ? ((V = w == null ? void 0 : w.ep) == null ? void 0 : V.type) ?? (w == null ? void 0 : w.type) ??
|
|
1847
|
+
const w = typeof T.editor == "function" ? T.editor(f.value, (b = l.value.form) == null ? void 0 : b.modalState) : T.editor;
|
|
1848
|
+
return ((s = l.value.form) == null ? void 0 : s.modalState) === "edit" ? ((V = w == null ? void 0 : w.ep) == null ? void 0 : V.type) ?? (w == null ? void 0 : w.type) ?? T.type : ((_ = l.value.form) == null ? void 0 : _.modalState) === "add" ? ((A = w == null ? void 0 : w.ap) == null ? void 0 : A.type) ?? (w == null ? void 0 : w.type) ?? T.type : (w == null ? void 0 : w.type) ?? T.type;
|
|
1849
1849
|
};
|
|
1850
|
-
|
|
1851
|
-
|
|
1850
|
+
ht(() => {
|
|
1851
|
+
M(), c != null && c.editForm ? f.value = c.editForm : f.value = de.value;
|
|
1852
1852
|
}), fl(() => {
|
|
1853
1853
|
e.value = null;
|
|
1854
1854
|
});
|
|
1855
|
-
const
|
|
1855
|
+
const M = () => {
|
|
1856
1856
|
D.value = Math.random().toString(36).substring(2);
|
|
1857
|
-
for (const [
|
|
1858
|
-
l.value[
|
|
1859
|
-
...l.value[
|
|
1857
|
+
for (const [T, w] of Object.entries(Q.value))
|
|
1858
|
+
l.value[T].formItem = {
|
|
1859
|
+
...l.value[T].formItem,
|
|
1860
1860
|
...w.formItem
|
|
1861
|
-
}, l.value[
|
|
1862
|
-
...l.value[
|
|
1861
|
+
}, l.value[T].formItem.style = {
|
|
1862
|
+
...l.value[T].formItem.style,
|
|
1863
1863
|
...w.formItem.style
|
|
1864
1864
|
};
|
|
1865
|
-
},
|
|
1865
|
+
}, Q = it(
|
|
1866
1866
|
() => Object.fromEntries(
|
|
1867
|
-
Object.entries(l.value).filter((
|
|
1867
|
+
Object.entries(l.value).filter((T) => T[1].type != "hidden").filter((T) => T[1].hidden !== !0).filter((T) => T[1].edit !== !1).filter((T) => T[1].editor !== !1).filter((T) => T[1].type !== "control").filter((T) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(T[0])).filter((T) => {
|
|
1868
1868
|
var b, s, V;
|
|
1869
|
-
const w = typeof
|
|
1869
|
+
const w = typeof T[1].editor == "function" ? T[1].editor(f.value, (b = l.value.form) == null ? void 0 : b.modalState) : T[1].editor;
|
|
1870
1870
|
return l.value.form.modalState === "edit" ? ((s = w == null ? void 0 : w.ep) == null ? void 0 : s.editor) !== !1 : l.value.form.modalState === "add" ? ((V = w == null ? void 0 : w.ap) == null ? void 0 : V.editor) !== !1 : !0;
|
|
1871
|
-
}).map((
|
|
1871
|
+
}).map((T) => [T[0], T[1]])
|
|
1872
1872
|
)
|
|
1873
|
-
),
|
|
1873
|
+
), de = it(
|
|
1874
1874
|
() => Object.fromEntries(
|
|
1875
|
-
Object.entries(l.value).filter((
|
|
1875
|
+
Object.entries(l.value).filter((T) => T[1].type != "hidden").filter((T) => T[1].type != "control").map((T) => [T[0], T[1].value])
|
|
1876
1876
|
)
|
|
1877
|
-
),
|
|
1878
|
-
const
|
|
1879
|
-
return Object.entries(
|
|
1877
|
+
), me = it(() => {
|
|
1878
|
+
const T = /* @__PURE__ */ new Map();
|
|
1879
|
+
return Object.entries(Q.value).forEach(([w, b]) => {
|
|
1880
1880
|
if (b.groupName) {
|
|
1881
1881
|
const s = b.groupName;
|
|
1882
|
-
|
|
1882
|
+
T.has(s) || T.set(s, {
|
|
1883
1883
|
groupName: s,
|
|
1884
1884
|
items: []
|
|
1885
|
-
}),
|
|
1885
|
+
}), T.get(s).items.push({ key: w, item: b });
|
|
1886
1886
|
}
|
|
1887
|
-
}),
|
|
1888
|
-
w.tabPane =
|
|
1887
|
+
}), T.forEach((w) => {
|
|
1888
|
+
w.tabPane = Ie(
|
|
1889
1889
|
...w.items.map(({ item: b }) => b.tabPane || {})
|
|
1890
1890
|
);
|
|
1891
|
-
}), Array.from(
|
|
1892
|
-
}),
|
|
1891
|
+
}), Array.from(T.values());
|
|
1892
|
+
}), se = re([
|
|
1893
1893
|
{
|
|
1894
1894
|
name: "f-submit",
|
|
1895
1895
|
label: l.value.form.submit.label,
|
|
@@ -1928,17 +1928,17 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1928
1928
|
originalOrder: 1
|
|
1929
1929
|
// 添加原始顺序标识
|
|
1930
1930
|
}
|
|
1931
|
-
]),
|
|
1931
|
+
]), ce = it(() => se.value.filter((T) => !T.hidden).sort((T, w) => T.sort - w.sort || T.originalOrder - w.originalOrder));
|
|
1932
1932
|
return d({
|
|
1933
1933
|
submit: v,
|
|
1934
1934
|
saveSubmit: v,
|
|
1935
1935
|
reset: u,
|
|
1936
1936
|
formData: f
|
|
1937
|
-
}), (
|
|
1938
|
-
var J,
|
|
1937
|
+
}), (T, w) => {
|
|
1938
|
+
var J, ne, ve;
|
|
1939
1939
|
const b = z("el-form-item"), s = z("el-col"), V = z("el-tab-pane"), _ = z("el-tabs"), A = z("el-form"), F = z("el-button");
|
|
1940
|
-
return p(),
|
|
1941
|
-
ae(A,
|
|
1940
|
+
return p(), R("div", Xl, [
|
|
1941
|
+
ae(A, O(
|
|
1942
1942
|
{
|
|
1943
1943
|
ref_key: "gform",
|
|
1944
1944
|
ref: e,
|
|
@@ -1952,64 +1952,64 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
1952
1952
|
},
|
|
1953
1953
|
N(Je)(
|
|
1954
1954
|
l.value.form,
|
|
1955
|
-
(
|
|
1955
|
+
(I) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(I)
|
|
1956
1956
|
)
|
|
1957
1957
|
), {
|
|
1958
1958
|
default: E(() => [
|
|
1959
|
-
|
|
1960
|
-
ae(_,
|
|
1959
|
+
me.value.length > 0 ? k(T.$slots, "default", { key: 0 }, () => [
|
|
1960
|
+
ae(_, O({
|
|
1961
1961
|
class: "demo-tabs",
|
|
1962
|
-
modelValue:
|
|
1963
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
1962
|
+
modelValue: me.value[0].groupName,
|
|
1963
|
+
"onUpdate:modelValue": w[0] || (w[0] = (I) => me.value[0].groupName = I),
|
|
1964
1964
|
style: { width: "100%" }
|
|
1965
1965
|
}, l.value.form.tabs), {
|
|
1966
1966
|
default: E(() => [
|
|
1967
|
-
(p(!0),
|
|
1968
|
-
key:
|
|
1969
|
-
label:
|
|
1970
|
-
name:
|
|
1967
|
+
(p(!0), R(le, null, X(me.value, (I) => (p(), q(V, O({
|
|
1968
|
+
key: I.groupName,
|
|
1969
|
+
label: I.groupName,
|
|
1970
|
+
name: I.groupName,
|
|
1971
1971
|
style: { width: "100%", display: "flex", "flex-wrap": "wrap" },
|
|
1972
1972
|
ref_for: !0
|
|
1973
|
-
},
|
|
1973
|
+
}, I.tabPane), {
|
|
1974
1974
|
default: E(() => [
|
|
1975
|
-
(p(!0),
|
|
1976
|
-
key:
|
|
1975
|
+
(p(!0), R(le, null, X(I.items, (j, Ve) => (p(), q(s, O({ ref_for: !0 }, { ...l.value.form.cols, ...j == null ? void 0 : j.item.col }, {
|
|
1976
|
+
key: j.key,
|
|
1977
1977
|
style: { width: "100%" }
|
|
1978
1978
|
}), {
|
|
1979
1979
|
default: E(() => {
|
|
1980
|
-
var he,
|
|
1980
|
+
var he, Re;
|
|
1981
1981
|
return [
|
|
1982
|
-
ae(b,
|
|
1983
|
-
label:
|
|
1984
|
-
prop:
|
|
1985
|
-
rules: te(
|
|
1982
|
+
ae(b, O({
|
|
1983
|
+
label: j == null ? void 0 : j.item.label,
|
|
1984
|
+
prop: j.key,
|
|
1985
|
+
rules: te(j == null ? void 0 : j.item),
|
|
1986
1986
|
ref_for: !0
|
|
1987
|
-
}, { ...(he = l.value) == null ? void 0 : he.formItems, ...(
|
|
1987
|
+
}, { ...(he = l.value) == null ? void 0 : he.formItems, ...(Re = j == null ? void 0 : j.item) == null ? void 0 : Re.formItem }, { style: { width: "100%" } }), {
|
|
1988
1988
|
default: E(() => [
|
|
1989
|
-
k(
|
|
1990
|
-
item:
|
|
1989
|
+
k(T.$slots, "f-" + j.key, {
|
|
1990
|
+
item: j == null ? void 0 : j.item,
|
|
1991
1991
|
formInfo: f.value,
|
|
1992
1992
|
model: l.value,
|
|
1993
1993
|
form: f.value
|
|
1994
1994
|
}, () => [
|
|
1995
1995
|
(p(), q(Dt, {
|
|
1996
|
-
modelValue: f.value[
|
|
1997
|
-
"onUpdate:modelValue": (
|
|
1998
|
-
item:
|
|
1999
|
-
ctrlKey:
|
|
2000
|
-
ctrlType:
|
|
1996
|
+
modelValue: f.value[j.key],
|
|
1997
|
+
"onUpdate:modelValue": (Ae) => f.value[j.key] = Ae,
|
|
1998
|
+
item: L(j),
|
|
1999
|
+
ctrlKey: j.key,
|
|
2000
|
+
ctrlType: Y(j == null ? void 0 : j.item),
|
|
2001
2001
|
model: l.value,
|
|
2002
|
-
key: `${
|
|
2002
|
+
key: `${j.key}-${D.value}`,
|
|
2003
2003
|
class: "g-ctrl-container",
|
|
2004
2004
|
t: "f",
|
|
2005
2005
|
formInfo: f.value
|
|
2006
2006
|
}, $e({ _: 2 }, [
|
|
2007
|
-
|
|
2008
|
-
name:
|
|
2007
|
+
X(T.$slots, (Ae, De) => ({
|
|
2008
|
+
name: De,
|
|
2009
2009
|
fn: E((B) => [
|
|
2010
|
-
k(
|
|
2010
|
+
k(T.$slots, De, {
|
|
2011
2011
|
data: B,
|
|
2012
|
-
item:
|
|
2012
|
+
item: j.item,
|
|
2013
2013
|
model: l.value
|
|
2014
2014
|
}, void 0, !0)
|
|
2015
2015
|
])
|
|
@@ -2029,54 +2029,54 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
2029
2029
|
]),
|
|
2030
2030
|
_: 3
|
|
2031
2031
|
}, 16, ["modelValue"])
|
|
2032
|
-
], !0) : k(
|
|
2033
|
-
(p(!0),
|
|
2034
|
-
key:
|
|
2032
|
+
], !0) : k(T.$slots, "default", { key: 1 }, () => [
|
|
2033
|
+
(p(!0), R(le, null, X(Q.value, (I, j) => (p(), q(s, O({ ref_for: !0 }, { ...l.value.form.cols, ...I.col }, {
|
|
2034
|
+
key: j,
|
|
2035
2035
|
style: { width: "100%" }
|
|
2036
2036
|
}), {
|
|
2037
2037
|
default: E(() => {
|
|
2038
|
-
var
|
|
2038
|
+
var Ve;
|
|
2039
2039
|
return [
|
|
2040
|
-
ae(b,
|
|
2041
|
-
label:
|
|
2042
|
-
prop:
|
|
2043
|
-
rules: te(
|
|
2040
|
+
ae(b, O({
|
|
2041
|
+
label: I.label,
|
|
2042
|
+
prop: j,
|
|
2043
|
+
rules: te(I),
|
|
2044
2044
|
ref_for: !0
|
|
2045
|
-
}, { ...(
|
|
2045
|
+
}, { ...(Ve = l.value) == null ? void 0 : Ve.formItems, ...I == null ? void 0 : I.formItem }, { style: { width: "100%" } }), {
|
|
2046
2046
|
label: E((he) => [
|
|
2047
|
-
k(
|
|
2047
|
+
k(T.$slots, `f-${j}-label`, {
|
|
2048
2048
|
data: he,
|
|
2049
|
-
item:
|
|
2049
|
+
item: I,
|
|
2050
2050
|
model: l.value
|
|
2051
2051
|
}, () => [
|
|
2052
|
-
|
|
2052
|
+
Oe(Ce(I.label), 1)
|
|
2053
2053
|
], !0)
|
|
2054
2054
|
]),
|
|
2055
2055
|
default: E(() => [
|
|
2056
|
-
k(
|
|
2057
|
-
item:
|
|
2056
|
+
k(T.$slots, "f-" + j, {
|
|
2057
|
+
item: I,
|
|
2058
2058
|
formInfo: f.value,
|
|
2059
2059
|
model: l.value,
|
|
2060
2060
|
form: f.value
|
|
2061
2061
|
}, () => [
|
|
2062
2062
|
(p(), q(Dt, {
|
|
2063
|
-
modelValue: f.value[
|
|
2064
|
-
"onUpdate:modelValue": (he) => f.value[
|
|
2065
|
-
item:
|
|
2066
|
-
ctrlKey:
|
|
2067
|
-
ctrlType:
|
|
2068
|
-
key: `${
|
|
2063
|
+
modelValue: f.value[j],
|
|
2064
|
+
"onUpdate:modelValue": (he) => f.value[j] = he,
|
|
2065
|
+
item: L(I, !0),
|
|
2066
|
+
ctrlKey: j,
|
|
2067
|
+
ctrlType: Y(I),
|
|
2068
|
+
key: `${j}-${D.value}`,
|
|
2069
2069
|
model: l.value,
|
|
2070
2070
|
class: "g-ctrl-container",
|
|
2071
2071
|
t: "f",
|
|
2072
2072
|
formInfo: f.value
|
|
2073
2073
|
}, $e({ _: 2 }, [
|
|
2074
|
-
|
|
2075
|
-
name:
|
|
2076
|
-
fn: E((
|
|
2077
|
-
k(
|
|
2078
|
-
data:
|
|
2079
|
-
item:
|
|
2074
|
+
X(T.$slots, (he, Re) => ({
|
|
2075
|
+
name: Re,
|
|
2076
|
+
fn: E((Ae) => [
|
|
2077
|
+
k(T.$slots, Re, {
|
|
2078
|
+
data: Ae,
|
|
2079
|
+
item: I,
|
|
2080
2080
|
model: l.value
|
|
2081
2081
|
}, void 0, !0)
|
|
2082
2082
|
])
|
|
@@ -2094,32 +2094,32 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
2094
2094
|
]),
|
|
2095
2095
|
_: 3
|
|
2096
2096
|
}, 16, ["model"]),
|
|
2097
|
-
(
|
|
2097
|
+
(ve = (ne = (J = l.value) == null ? void 0 : J.form) == null ? void 0 : ne.footer) != null && ve.hidden ? be("", !0) : k(T.$slots, "f-footer", { key: 0 }, () => [
|
|
2098
2098
|
Z("div", {
|
|
2099
|
-
style:
|
|
2099
|
+
style: Ue(l.value.form.footer.style)
|
|
2100
2100
|
}, [
|
|
2101
|
-
k(
|
|
2102
|
-
(p(!0),
|
|
2103
|
-
k(
|
|
2104
|
-
k(
|
|
2105
|
-
var
|
|
2101
|
+
k(T.$slots, "f-footer-left", {}, void 0, !0),
|
|
2102
|
+
(p(!0), R(le, null, X(ce.value, (I) => (p(), R(le, null, [
|
|
2103
|
+
k(T.$slots, I.name + "-left", {}, void 0, !0),
|
|
2104
|
+
k(T.$slots, I.name, {}, () => {
|
|
2105
|
+
var j;
|
|
2106
2106
|
return [
|
|
2107
|
-
(
|
|
2107
|
+
(j = I == null ? void 0 : I.info) != null && j.hidden ? be("", !0) : (p(), q(F, O({
|
|
2108
2108
|
key: 0,
|
|
2109
2109
|
ref_for: !0
|
|
2110
|
-
},
|
|
2111
|
-
onClick: kt((
|
|
2110
|
+
}, I.info, {
|
|
2111
|
+
onClick: kt((Ve) => I.click(f.value, l.value, I.flag), ["stop"])
|
|
2112
2112
|
}), {
|
|
2113
2113
|
default: E(() => [
|
|
2114
|
-
|
|
2114
|
+
Oe(Ce(I == null ? void 0 : I.label), 1)
|
|
2115
2115
|
]),
|
|
2116
2116
|
_: 2
|
|
2117
2117
|
}, 1040, ["onClick"]))
|
|
2118
2118
|
];
|
|
2119
2119
|
}, !0),
|
|
2120
|
-
k(
|
|
2120
|
+
k(T.$slots, I.name + "-right", {}, void 0, !0)
|
|
2121
2121
|
], 64))), 256)),
|
|
2122
|
-
k(
|
|
2122
|
+
k(T.$slots, "f-footer-right", {}, void 0, !0)
|
|
2123
2123
|
], 4)
|
|
2124
2124
|
], !0)
|
|
2125
2125
|
]);
|
|
@@ -2136,7 +2136,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
2136
2136
|
},
|
|
2137
2137
|
emits: ["excel"],
|
|
2138
2138
|
setup(n, { emit: d }) {
|
|
2139
|
-
const t = n, l = d, o =
|
|
2139
|
+
const t = n, l = d, o = re(t.items), e = () => {
|
|
2140
2140
|
o.value.forEach((D) => {
|
|
2141
2141
|
D.value = !0;
|
|
2142
2142
|
});
|
|
@@ -2158,7 +2158,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
2158
2158
|
}
|
|
2159
2159
|
});
|
|
2160
2160
|
};
|
|
2161
|
-
return
|
|
2161
|
+
return ht(() => {
|
|
2162
2162
|
const D = new Xt(document.getElementById("excelSortEl"), {
|
|
2163
2163
|
animation: 150,
|
|
2164
2164
|
onEnd: () => {
|
|
@@ -2170,7 +2170,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
2170
2170
|
});
|
|
2171
2171
|
}), (D, c) => {
|
|
2172
2172
|
const v = z("el-divider"), u = z("el-icon"), i = z("el-text"), g = z("el-checkbox"), te = z("el-button");
|
|
2173
|
-
return p(),
|
|
2173
|
+
return p(), R("div", Zl, [
|
|
2174
2174
|
Z("div", null, [
|
|
2175
2175
|
Z("div", Jl, [
|
|
2176
2176
|
Z("div", Kl, [
|
|
@@ -2196,7 +2196,7 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
2196
2196
|
]),
|
|
2197
2197
|
_: 1
|
|
2198
2198
|
}),
|
|
2199
|
-
c[0] || (c[0] =
|
|
2199
|
+
c[0] || (c[0] = Oe(" 拖动列标题可以改变表格列的生成顺序 ! "))
|
|
2200
2200
|
]),
|
|
2201
2201
|
_: 1
|
|
2202
2202
|
})
|
|
@@ -2204,18 +2204,18 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
2204
2204
|
]),
|
|
2205
2205
|
c[1] || (c[1] = Z("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2206
2206
|
Z("div", ea, [
|
|
2207
|
-
(p(!0),
|
|
2207
|
+
(p(!0), R(le, null, X(o.value, (L) => (p(), q(g, {
|
|
2208
2208
|
class: "check-box-hover",
|
|
2209
2209
|
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" },
|
|
2210
|
-
"data-id":
|
|
2211
|
-
modelValue:
|
|
2212
|
-
"onUpdate:modelValue": (
|
|
2213
|
-
key:
|
|
2214
|
-
title:
|
|
2210
|
+
"data-id": L.key,
|
|
2211
|
+
modelValue: L.value,
|
|
2212
|
+
"onUpdate:modelValue": (Y) => L.value = Y,
|
|
2213
|
+
key: L.key,
|
|
2214
|
+
title: L.label
|
|
2215
2215
|
}, {
|
|
2216
2216
|
default: E(() => [
|
|
2217
2217
|
Z("span", {
|
|
2218
|
-
textContent:
|
|
2218
|
+
textContent: Ce(L.label),
|
|
2219
2219
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2220
2220
|
}, null, 8, ta)
|
|
2221
2221
|
]),
|
|
@@ -2228,10 +2228,10 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
2228
2228
|
type: "primary",
|
|
2229
2229
|
onClick: f,
|
|
2230
2230
|
icon: N(Gt),
|
|
2231
|
-
disabled: o.value.filter((
|
|
2231
|
+
disabled: o.value.filter((L) => L.value).length < 1
|
|
2232
2232
|
}, {
|
|
2233
2233
|
default: E(() => [
|
|
2234
|
-
|
|
2234
|
+
Oe(Ce(t.commitText), 1)
|
|
2235
2235
|
]),
|
|
2236
2236
|
_: 1
|
|
2237
2237
|
}, 8, ["icon", "disabled"])
|
|
@@ -2239,8 +2239,8 @@ const Mt = /* @__PURE__ */ Qt(Al), ut = (n, d) => {
|
|
|
2239
2239
|
]);
|
|
2240
2240
|
};
|
|
2241
2241
|
}
|
|
2242
|
-
}, ra = /* @__PURE__ */ ut(aa, [["__scopeId", "data-v-13575747"]]), oa = "vue-gyc-ui", na = 1,
|
|
2243
|
-
|
|
2242
|
+
}, ra = /* @__PURE__ */ ut(aa, [["__scopeId", "data-v-13575747"]]), oa = "vue-gyc-ui", na = 1, ye = new Tl(oa);
|
|
2243
|
+
ye.version(na).stores({
|
|
2244
2244
|
// 记录表格项设置信息
|
|
2245
2245
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2246
2246
|
// 记录表格分页条数
|
|
@@ -2250,53 +2250,53 @@ me.version(na).stores({
|
|
|
2250
2250
|
// 记录表格列显示状态
|
|
2251
2251
|
tableColsState: "++id,[page+key], page, key"
|
|
2252
2252
|
});
|
|
2253
|
-
const
|
|
2253
|
+
const dt = (n, d) => {
|
|
2254
2254
|
if (!n || typeof n != "string")
|
|
2255
2255
|
throw new Error("page参数必须是非空字符串");
|
|
2256
2256
|
};
|
|
2257
2257
|
async function _t(n, d, t) {
|
|
2258
2258
|
try {
|
|
2259
|
-
const l = await
|
|
2260
|
-
l ? t === "add" ? l.keys.includes(d) || (l.keys.push(d), await
|
|
2259
|
+
const l = await ye.tableColsState.where({ page: n }).first();
|
|
2260
|
+
l ? t === "add" ? l.keys.includes(d) || (l.keys.push(d), await ye.tableColsState.put(l)) : t === "del" ? (l.keys = l.keys.filter((o) => o !== d), await ye.tableColsState.put(l)) : t === "delAll" ? (l.keys = d, await ye.tableColsState.put(l)) : t === "selectAll" && await ye.tableColsState.where({ page: n }).delete() : t === "add" ? await ye.tableColsState.add({ page: n, keys: [d] }) : t === "delAll" && await ye.tableColsState.add({ page: n, keys: d });
|
|
2261
2261
|
} catch (l) {
|
|
2262
2262
|
throw console.error(`处理表格列状态时出错 (page: ${n}, key: ${d}, state: ${t}):`, l), l;
|
|
2263
2263
|
}
|
|
2264
2264
|
}
|
|
2265
2265
|
async function ua(n, d, t) {
|
|
2266
|
-
|
|
2266
|
+
dt(n);
|
|
2267
2267
|
try {
|
|
2268
|
-
const l = await
|
|
2269
|
-
return l ? (await
|
|
2268
|
+
const l = await ye.tableWidths.where({ page: n, key: d }).first();
|
|
2269
|
+
return l ? (await ye.tableWidths.put({ ...l, width: t }), "update success") : (await ye.tableWidths.add({ page: n, key: d, width: t }), "add success");
|
|
2270
2270
|
} catch (l) {
|
|
2271
2271
|
throw console.error(`保存表格项设置信息时出错 (page: ${n}, key: ${d}):`, l), l;
|
|
2272
2272
|
}
|
|
2273
2273
|
}
|
|
2274
2274
|
async function sa(n) {
|
|
2275
|
-
|
|
2275
|
+
dt(n);
|
|
2276
2276
|
try {
|
|
2277
|
-
return await
|
|
2277
|
+
return await ye.tableWidths.where({ page: n }).toArray();
|
|
2278
2278
|
} catch (d) {
|
|
2279
2279
|
throw console.error(`获取表格项设置信息时出错 (page: ${n}):`, d), d;
|
|
2280
2280
|
}
|
|
2281
2281
|
}
|
|
2282
2282
|
async function ia(n) {
|
|
2283
|
-
|
|
2283
|
+
dt(n);
|
|
2284
2284
|
try {
|
|
2285
|
-
const d = await
|
|
2285
|
+
const d = await ye.tableColsState.where({ page: n }).toArray();
|
|
2286
2286
|
return !d || d.length === 0 ? [] : d[0].keys;
|
|
2287
2287
|
} catch (d) {
|
|
2288
2288
|
throw console.error(`获取表格列状态时出错 (page: ${n}):`, d), d;
|
|
2289
2289
|
}
|
|
2290
2290
|
}
|
|
2291
2291
|
async function da(n) {
|
|
2292
|
-
|
|
2292
|
+
dt(n);
|
|
2293
2293
|
try {
|
|
2294
|
-
return await
|
|
2294
|
+
return await ye.transaction("rw", ye.tableWidths, ye.pageInfo, ye.sorts, ye.tableColsState, async () => {
|
|
2295
2295
|
await Promise.all([
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2296
|
+
ye.tableWidths.where({ page: n }).delete(),
|
|
2297
|
+
ye.pageInfo.where({ page: n }).delete(),
|
|
2298
|
+
ye.sorts.where({ page: n }).delete(),
|
|
2299
|
+
ye.tableColsState.where({ page: n }).delete()
|
|
2300
2300
|
]);
|
|
2301
2301
|
});
|
|
2302
2302
|
} catch (d) {
|
|
@@ -2304,36 +2304,36 @@ async function da(n) {
|
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
2306
2306
|
async function ca({ page: n, size: d }) {
|
|
2307
|
-
|
|
2307
|
+
dt(n);
|
|
2308
2308
|
try {
|
|
2309
|
-
const t = await
|
|
2310
|
-
return t ? (await
|
|
2309
|
+
const t = await ye.pageInfo.where({ page: n }).first();
|
|
2310
|
+
return t ? (await ye.pageInfo.put({ ...t, size: d }), "update success") : (await ye.pageInfo.add({ page: n, size: d }), "add success");
|
|
2311
2311
|
} catch (t) {
|
|
2312
2312
|
throw console.error(`保存分页条数时出错 (page: ${n}):`, t), t;
|
|
2313
2313
|
}
|
|
2314
2314
|
}
|
|
2315
2315
|
async function fa(n) {
|
|
2316
|
-
|
|
2316
|
+
dt(n);
|
|
2317
2317
|
try {
|
|
2318
|
-
const d = await
|
|
2318
|
+
const d = await ye.pageInfo.where({ page: n }).first();
|
|
2319
2319
|
return (d == null ? void 0 : d.size) || 20;
|
|
2320
2320
|
} catch (d) {
|
|
2321
2321
|
throw console.error(`获取分页条数时出错 (page: ${n}):`, d), d;
|
|
2322
2322
|
}
|
|
2323
2323
|
}
|
|
2324
2324
|
async function va(n, d) {
|
|
2325
|
-
|
|
2325
|
+
dt(n);
|
|
2326
2326
|
try {
|
|
2327
|
-
const t = await
|
|
2328
|
-
return t ? (await
|
|
2327
|
+
const t = await ye.sorts.where({ page: n }).first();
|
|
2328
|
+
return t ? (await ye.sorts.put({ ...t, keys: d }), "update success") : (await ye.sorts.add({ page: n, keys: d }), "add success");
|
|
2329
2329
|
} catch (t) {
|
|
2330
2330
|
throw console.error(`保存表格字段顺序时出错 (page: ${n}):`, t), t;
|
|
2331
2331
|
}
|
|
2332
2332
|
}
|
|
2333
2333
|
async function pa(n) {
|
|
2334
|
-
|
|
2334
|
+
dt(n);
|
|
2335
2335
|
try {
|
|
2336
|
-
const d = await
|
|
2336
|
+
const d = await ye.sorts.where({ page: n }).first();
|
|
2337
2337
|
return (d == null ? void 0 : d.keys) || [];
|
|
2338
2338
|
} catch (d) {
|
|
2339
2339
|
throw console.error(`获取表格字段顺序时出错 (page: ${n}):`, d), d;
|
|
@@ -2358,7 +2358,7 @@ const ma = { style: { padding: "15px", "box-sizing": "border-box" } }, ha = { st
|
|
|
2358
2358
|
}),
|
|
2359
2359
|
emits: /* @__PURE__ */ ot(["setting-drag-end", "select-all"], ["update:modelValue"]),
|
|
2360
2360
|
setup(n, { emit: d }) {
|
|
2361
|
-
const t = n, l = d, o =
|
|
2361
|
+
const t = n, l = d, o = re([]), e = nt(n, "modelValue"), h = async (u, i) => {
|
|
2362
2362
|
u ? (e.value[i].showCol = !0, await _t(t.tuid, i, "del")) : (e.value[i].showCol = !1, await _t(t.tuid, i, "add"));
|
|
2363
2363
|
}, f = () => {
|
|
2364
2364
|
const u = document.getElementById("cols");
|
|
@@ -2425,7 +2425,7 @@ const ma = { style: { padding: "15px", "box-sizing": "border-box" } }, ha = { st
|
|
|
2425
2425
|
});
|
|
2426
2426
|
});
|
|
2427
2427
|
};
|
|
2428
|
-
return
|
|
2428
|
+
return ht(async () => {
|
|
2429
2429
|
o.value = Object.entries(e.value).filter(([, u]) => u.visible !== !1).filter(([, u]) => u.type != "hidden").map(([u, i]) => ({
|
|
2430
2430
|
label: i.label,
|
|
2431
2431
|
value: u,
|
|
@@ -2435,8 +2435,8 @@ const ma = { style: { padding: "15px", "box-sizing": "border-box" } }, ha = { st
|
|
|
2435
2435
|
width: i == null ? void 0 : i.width
|
|
2436
2436
|
})).sort((u, i) => u.sort - i.sort), f();
|
|
2437
2437
|
}), (u, i) => {
|
|
2438
|
-
const g = z("el-divider"), te = z("el-icon"),
|
|
2439
|
-
return p(),
|
|
2438
|
+
const g = z("el-divider"), te = z("el-icon"), L = z("el-text"), Y = z("el-checkbox");
|
|
2439
|
+
return p(), R("div", ma, [
|
|
2440
2440
|
Z("div", ha, [
|
|
2441
2441
|
Z("div", ya, [
|
|
2442
2442
|
Z("a", { onClick: D }, "全选"),
|
|
@@ -2445,7 +2445,7 @@ const ma = { style: { padding: "15px", "box-sizing": "border-box" } }, ha = { st
|
|
|
2445
2445
|
ae(g, { direction: "vertical" }),
|
|
2446
2446
|
Z("a", { onClick: v }, "复位")
|
|
2447
2447
|
]),
|
|
2448
|
-
ae(
|
|
2448
|
+
ae(L, { type: "warning" }, {
|
|
2449
2449
|
default: E(() => [
|
|
2450
2450
|
ae(te, { size: "16" }, {
|
|
2451
2451
|
default: E(() => [
|
|
@@ -2453,28 +2453,28 @@ const ma = { style: { padding: "15px", "box-sizing": "border-box" } }, ha = { st
|
|
|
2453
2453
|
]),
|
|
2454
2454
|
_: 1
|
|
2455
2455
|
}),
|
|
2456
|
-
i[0] || (i[0] =
|
|
2456
|
+
i[0] || (i[0] = Oe(" 拖动表格列标题可以改变表格列显示顺序 !"))
|
|
2457
2457
|
]),
|
|
2458
2458
|
_: 1
|
|
2459
2459
|
})
|
|
2460
2460
|
]),
|
|
2461
2461
|
Z("div", null, [
|
|
2462
2462
|
Z("div", ga, [
|
|
2463
|
-
(p(!0),
|
|
2464
|
-
modelValue:
|
|
2465
|
-
"onUpdate:modelValue": (
|
|
2466
|
-
"data-id":
|
|
2467
|
-
class: zt(["check-box-hover",
|
|
2468
|
-
onChange: (
|
|
2463
|
+
(p(!0), R(le, null, X(o.value, (M) => (p(), q(Y, {
|
|
2464
|
+
modelValue: M.showCol,
|
|
2465
|
+
"onUpdate:modelValue": (Q) => M.showCol = Q,
|
|
2466
|
+
"data-id": M.value,
|
|
2467
|
+
class: zt(["check-box-hover", M.value == "control" ? "filtered" : ""]),
|
|
2468
|
+
onChange: (Q) => h(Q, M.value),
|
|
2469
2469
|
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" },
|
|
2470
|
-
value:
|
|
2471
|
-
title:
|
|
2472
|
-
disabled:
|
|
2473
|
-
key:
|
|
2470
|
+
value: M.value,
|
|
2471
|
+
title: M.label,
|
|
2472
|
+
disabled: M.alwaysShow,
|
|
2473
|
+
key: M.value
|
|
2474
2474
|
}, {
|
|
2475
2475
|
default: E(() => [
|
|
2476
2476
|
Z("span", {
|
|
2477
|
-
textContent:
|
|
2477
|
+
textContent: Ce(M.label),
|
|
2478
2478
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2479
2479
|
}, null, 8, ba)
|
|
2480
2480
|
]),
|
|
@@ -2501,9 +2501,9 @@ const ma = { style: { padding: "15px", "box-sizing": "border-box" } }, ha = { st
|
|
|
2501
2501
|
const d = n, t = () => {
|
|
2502
2502
|
d.content ? (navigator.clipboard.writeText(d.content), rt.success("复制成功")) : rt.warning("没有内容可复制");
|
|
2503
2503
|
};
|
|
2504
|
-
return (l, o) => (p(),
|
|
2504
|
+
return (l, o) => (p(), R("div", {
|
|
2505
2505
|
class: "g-cell-toopTip",
|
|
2506
|
-
style:
|
|
2506
|
+
style: Ue({ width: d.column.width + "px" })
|
|
2507
2507
|
}, [
|
|
2508
2508
|
Z("div", Ea, [
|
|
2509
2509
|
o[0] || (o[0] = Z("span", { class: "title-text" }, "内容", -1)),
|
|
@@ -2515,7 +2515,7 @@ const ma = { style: { padding: "15px", "box-sizing": "border-box" } }, ha = { st
|
|
|
2515
2515
|
ae(N(_l))
|
|
2516
2516
|
])
|
|
2517
2517
|
]),
|
|
2518
|
-
Z("div", _a,
|
|
2518
|
+
Z("div", _a, Ce(d.content), 1)
|
|
2519
2519
|
], 4));
|
|
2520
2520
|
}
|
|
2521
2521
|
}, Ca = /* @__PURE__ */ ut(ka, [["__scopeId", "data-v-f28912da"]]);
|
|
@@ -2634,9 +2634,9 @@ function xa(n) {
|
|
|
2634
2634
|
for (var f = n.bytesToWords(e), D = e.length * 8, c = 1732584193, v = -271733879, u = -1732584194, i = 271733878, g = 0; g < f.length; g++)
|
|
2635
2635
|
f[g] = (f[g] << 8 | f[g] >>> 24) & 16711935 | (f[g] << 24 | f[g] >>> 8) & 4278255360;
|
|
2636
2636
|
f[D >>> 5] |= 128 << D % 32, f[(D + 64 >>> 9 << 4) + 14] = D;
|
|
2637
|
-
for (var te = o._ff,
|
|
2638
|
-
var
|
|
2639
|
-
c = te(c, v, u, i, f[g + 0], 7, -680876936), i = te(i, c, v, u, f[g + 1], 12, -389564586), u = te(u, i, c, v, f[g + 2], 17, 606105819), v = te(v, u, i, c, f[g + 3], 22, -1044525330), c = te(c, v, u, i, f[g + 4], 7, -176418897), i = te(i, c, v, u, f[g + 5], 12, 1200080426), u = te(u, i, c, v, f[g + 6], 17, -1473231341), v = te(v, u, i, c, f[g + 7], 22, -45705983), c = te(c, v, u, i, f[g + 8], 7, 1770035416), i = te(i, c, v, u, f[g + 9], 12, -1958414417), u = te(u, i, c, v, f[g + 10], 17, -42063), v = te(v, u, i, c, f[g + 11], 22, -1990404162), c = te(c, v, u, i, f[g + 12], 7, 1804603682), i = te(i, c, v, u, f[g + 13], 12, -40341101), u = te(u, i, c, v, f[g + 14], 17, -1502002290), v = te(v, u, i, c, f[g + 15], 22, 1236535329), c =
|
|
2637
|
+
for (var te = o._ff, L = o._gg, Y = o._hh, M = o._ii, g = 0; g < f.length; g += 16) {
|
|
2638
|
+
var Q = c, de = v, me = u, se = i;
|
|
2639
|
+
c = te(c, v, u, i, f[g + 0], 7, -680876936), i = te(i, c, v, u, f[g + 1], 12, -389564586), u = te(u, i, c, v, f[g + 2], 17, 606105819), v = te(v, u, i, c, f[g + 3], 22, -1044525330), c = te(c, v, u, i, f[g + 4], 7, -176418897), i = te(i, c, v, u, f[g + 5], 12, 1200080426), u = te(u, i, c, v, f[g + 6], 17, -1473231341), v = te(v, u, i, c, f[g + 7], 22, -45705983), c = te(c, v, u, i, f[g + 8], 7, 1770035416), i = te(i, c, v, u, f[g + 9], 12, -1958414417), u = te(u, i, c, v, f[g + 10], 17, -42063), v = te(v, u, i, c, f[g + 11], 22, -1990404162), c = te(c, v, u, i, f[g + 12], 7, 1804603682), i = te(i, c, v, u, f[g + 13], 12, -40341101), u = te(u, i, c, v, f[g + 14], 17, -1502002290), v = te(v, u, i, c, f[g + 15], 22, 1236535329), c = L(c, v, u, i, f[g + 1], 5, -165796510), i = L(i, c, v, u, f[g + 6], 9, -1069501632), u = L(u, i, c, v, f[g + 11], 14, 643717713), v = L(v, u, i, c, f[g + 0], 20, -373897302), c = L(c, v, u, i, f[g + 5], 5, -701558691), i = L(i, c, v, u, f[g + 10], 9, 38016083), u = L(u, i, c, v, f[g + 15], 14, -660478335), v = L(v, u, i, c, f[g + 4], 20, -405537848), c = L(c, v, u, i, f[g + 9], 5, 568446438), i = L(i, c, v, u, f[g + 14], 9, -1019803690), u = L(u, i, c, v, f[g + 3], 14, -187363961), v = L(v, u, i, c, f[g + 8], 20, 1163531501), c = L(c, v, u, i, f[g + 13], 5, -1444681467), i = L(i, c, v, u, f[g + 2], 9, -51403784), u = L(u, i, c, v, f[g + 7], 14, 1735328473), v = L(v, u, i, c, f[g + 12], 20, -1926607734), c = Y(c, v, u, i, f[g + 5], 4, -378558), i = Y(i, c, v, u, f[g + 8], 11, -2022574463), u = Y(u, i, c, v, f[g + 11], 16, 1839030562), v = Y(v, u, i, c, f[g + 14], 23, -35309556), c = Y(c, v, u, i, f[g + 1], 4, -1530992060), i = Y(i, c, v, u, f[g + 4], 11, 1272893353), u = Y(u, i, c, v, f[g + 7], 16, -155497632), v = Y(v, u, i, c, f[g + 10], 23, -1094730640), c = Y(c, v, u, i, f[g + 13], 4, 681279174), i = Y(i, c, v, u, f[g + 0], 11, -358537222), u = Y(u, i, c, v, f[g + 3], 16, -722521979), v = Y(v, u, i, c, f[g + 6], 23, 76029189), c = Y(c, v, u, i, f[g + 9], 4, -640364487), i = Y(i, c, v, u, f[g + 12], 11, -421815835), u = Y(u, i, c, v, f[g + 15], 16, 530742520), v = Y(v, u, i, c, f[g + 2], 23, -995338651), c = M(c, v, u, i, f[g + 0], 6, -198630844), i = M(i, c, v, u, f[g + 7], 10, 1126891415), u = M(u, i, c, v, f[g + 14], 15, -1416354905), v = M(v, u, i, c, f[g + 5], 21, -57434055), c = M(c, v, u, i, f[g + 12], 6, 1700485571), i = M(i, c, v, u, f[g + 3], 10, -1894986606), u = M(u, i, c, v, f[g + 10], 15, -1051523), v = M(v, u, i, c, f[g + 1], 21, -2054922799), c = M(c, v, u, i, f[g + 8], 6, 1873313359), i = M(i, c, v, u, f[g + 15], 10, -30611744), u = M(u, i, c, v, f[g + 6], 15, -1560198380), v = M(v, u, i, c, f[g + 13], 21, 1309151649), c = M(c, v, u, i, f[g + 4], 6, -145523070), i = M(i, c, v, u, f[g + 11], 10, -1120210379), u = M(u, i, c, v, f[g + 2], 15, 718787259), v = M(v, u, i, c, f[g + 9], 21, -343485551), c = c + Q >>> 0, v = v + de >>> 0, u = u + me >>> 0, i = i + se >>> 0;
|
|
2640
2640
|
}
|
|
2641
2641
|
return n.endian([c, v, u, i]);
|
|
2642
2642
|
};
|
|
@@ -2685,19 +2685,19 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
2685
2685
|
"row-save"
|
|
2686
2686
|
], ["update:modelValue"]),
|
|
2687
2687
|
setup(n, { expose: d, emit: t }) {
|
|
2688
|
-
var qe,
|
|
2689
|
-
const l =
|
|
2688
|
+
var qe, Ke, Le, Pe, je, We, yt;
|
|
2689
|
+
const l = re(""), o = t, e = nt(n, "modelValue"), h = It("options"), f = re({}), D = re(null), c = re(null), v = Object.entries(e.value).filter(([a, r]) => (r == null ? void 0 : r.search) !== void 0).map(([a, r]) => {
|
|
2690
2690
|
var $;
|
|
2691
2691
|
let m;
|
|
2692
2692
|
if (typeof r.search == "function") {
|
|
2693
|
-
const
|
|
2694
|
-
m = (
|
|
2693
|
+
const x = r.search(f.value);
|
|
2694
|
+
m = (x == null ? void 0 : x.value) ?? r.value;
|
|
2695
2695
|
} else
|
|
2696
2696
|
m = (($ = r.search) == null ? void 0 : $.value) ?? r.value;
|
|
2697
2697
|
return [a, m];
|
|
2698
2698
|
});
|
|
2699
2699
|
f.value = Object.fromEntries(v);
|
|
2700
|
-
const u =
|
|
2700
|
+
const u = re(!1), i = [
|
|
2701
2701
|
"type",
|
|
2702
2702
|
"index",
|
|
2703
2703
|
"label",
|
|
@@ -2726,7 +2726,7 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
2726
2726
|
"filter-multiple",
|
|
2727
2727
|
"filter-method",
|
|
2728
2728
|
"filtered-value"
|
|
2729
|
-
], g =
|
|
2729
|
+
], g = re([]), te = Ot(), L = re({}), Y = re([]), M = re(null), Q = re(""), de = re("/"), me = re({
|
|
2730
2730
|
autoWatch: !1,
|
|
2731
2731
|
data: [],
|
|
2732
2732
|
border: !0,
|
|
@@ -2735,14 +2735,14 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
2735
2735
|
fit: !1,
|
|
2736
2736
|
type: "hidden",
|
|
2737
2737
|
load: async () => {
|
|
2738
|
-
e.value.table.page.pageSize = await fa(
|
|
2738
|
+
e.value.table.page.pageSize = await fa(de.value);
|
|
2739
2739
|
let { currentPage: a, pageSize: r } = e.value.table.page;
|
|
2740
2740
|
try {
|
|
2741
2741
|
o(
|
|
2742
2742
|
"load",
|
|
2743
2743
|
{ currentPage: a, pageSize: r, ...f.value },
|
|
2744
|
-
(m = [], $ = 0, { fields:
|
|
2745
|
-
var
|
|
2744
|
+
(m = [], $ = 0, { fields: x = [], sums: U = {} } = {}) => {
|
|
2745
|
+
var G;
|
|
2746
2746
|
if (!Array.isArray(m)) {
|
|
2747
2747
|
console.error("从 load 事件回调中接收到的数据不是数组格式。"), rt.error("数据加载失败,请检查数据格式。");
|
|
2748
2748
|
return;
|
|
@@ -2751,19 +2751,19 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
2751
2751
|
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), rt.error("数据加载失败,请检查数据格式。");
|
|
2752
2752
|
return;
|
|
2753
2753
|
}
|
|
2754
|
-
e.value.table.data = m, ((
|
|
2754
|
+
e.value.table.data = m, ((G = e.value.control) == null ? void 0 : G.add(M.value, e).inline) === !0 && e.value.table.data.unshift(M.value), e.value.table.page.total = $, Y.value = x, L.value = U, B(), Q.value = Math.random().toString(36).substring(2);
|
|
2755
2755
|
},
|
|
2756
|
-
|
|
2756
|
+
M.value
|
|
2757
2757
|
);
|
|
2758
2758
|
} catch (m) {
|
|
2759
2759
|
console.error("触发 load 事件时出现错误:", m), rt.error("数据加载时出现错误,请稍后重试。");
|
|
2760
2760
|
}
|
|
2761
2761
|
},
|
|
2762
2762
|
onHeaderDragend: (a, r, m) => {
|
|
2763
|
-
ua(
|
|
2763
|
+
ua(de.value, m.property, a);
|
|
2764
2764
|
},
|
|
2765
2765
|
onRowDblclick: (a, r, m) => {
|
|
2766
|
-
e.value.table.dblclickType == "edit" ?
|
|
2766
|
+
e.value.table.dblclickType == "edit" ? b(a, r, m, e) : e.value.table.dblclickType == "view" ? V(a, r, m, e) : e.value.table.dblclickType == "delete" ? s(a, r, m, e) : e.value.table.dblclickType(a, r, m, e);
|
|
2767
2767
|
},
|
|
2768
2768
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
2769
2769
|
page: {
|
|
@@ -2783,7 +2783,7 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
2783
2783
|
e.value.table.page.currentPage = a, e.value.table.load();
|
|
2784
2784
|
},
|
|
2785
2785
|
onSizeChange: (a) => {
|
|
2786
|
-
ca({ page:
|
|
2786
|
+
ca({ page: de.value, size: a }).then(() => {
|
|
2787
2787
|
e.value.table.page.pageSize = a, e.value.table.load();
|
|
2788
2788
|
});
|
|
2789
2789
|
}
|
|
@@ -2793,8 +2793,8 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
2793
2793
|
onSortChange: ({ column: a, prop: r, order: m }, $) => {
|
|
2794
2794
|
}
|
|
2795
2795
|
});
|
|
2796
|
-
e.value.table =
|
|
2797
|
-
|
|
2796
|
+
e.value.table = Ie(
|
|
2797
|
+
me.value,
|
|
2798
2798
|
h == null ? void 0 : h.table,
|
|
2799
2799
|
e.value.table,
|
|
2800
2800
|
te
|
|
@@ -2807,17 +2807,17 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
2807
2807
|
"min-width": 100,
|
|
2808
2808
|
width: 160,
|
|
2809
2809
|
fixed: "right",
|
|
2810
|
-
style: { ...(
|
|
2810
|
+
style: { ...(Ke = (qe = e.value) == null ? void 0 : qe.control) == null ? void 0 : Ke.style },
|
|
2811
2811
|
validate: async (a) => await !0,
|
|
2812
2812
|
view: (a, r, m, $) => ({
|
|
2813
2813
|
label: "查看",
|
|
2814
2814
|
text: !0,
|
|
2815
2815
|
type: "success",
|
|
2816
2816
|
mode: "dialog",
|
|
2817
|
-
icon: () =>
|
|
2817
|
+
icon: () => Ee(kl),
|
|
2818
2818
|
auth: () => {
|
|
2819
|
-
var
|
|
2820
|
-
return !(((
|
|
2819
|
+
var x;
|
|
2820
|
+
return !(((x = $ == null ? void 0 : $.control) == null ? void 0 : x.add(a, $).inline) === !0 && m === 0);
|
|
2821
2821
|
}
|
|
2822
2822
|
}),
|
|
2823
2823
|
edit: (a, r, m, $) => ({
|
|
@@ -2825,20 +2825,20 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
2825
2825
|
text: !0,
|
|
2826
2826
|
type: "primary",
|
|
2827
2827
|
mode: "dialog",
|
|
2828
|
-
icon: () =>
|
|
2828
|
+
icon: () => Ee(Cl),
|
|
2829
2829
|
auth: () => {
|
|
2830
|
-
var
|
|
2831
|
-
return ((
|
|
2830
|
+
var x;
|
|
2831
|
+
return ((x = $ == null ? void 0 : $.control) == null ? void 0 : x.add(a, $).inline) !== !0;
|
|
2832
2832
|
}
|
|
2833
2833
|
}),
|
|
2834
2834
|
delete: (a, r, m, $) => ({
|
|
2835
2835
|
text: !0,
|
|
2836
2836
|
label: "删除",
|
|
2837
2837
|
type: "danger",
|
|
2838
|
-
icon: () =>
|
|
2838
|
+
icon: () => Ee(Nt),
|
|
2839
2839
|
auth: () => {
|
|
2840
|
-
var
|
|
2841
|
-
return !(((
|
|
2840
|
+
var x;
|
|
2841
|
+
return !(((x = $.control) == null ? void 0 : x.add(a, $).inline) === !0 && m === 0);
|
|
2842
2842
|
},
|
|
2843
2843
|
dialog: {
|
|
2844
2844
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -2851,16 +2851,16 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
2851
2851
|
}
|
|
2852
2852
|
}),
|
|
2853
2853
|
save: (a, r, m, $) => {
|
|
2854
|
-
var
|
|
2854
|
+
var x, U;
|
|
2855
2855
|
return {
|
|
2856
|
-
label: ((
|
|
2856
|
+
label: ((x = $.control) == null ? void 0 : x.add(a, $).inline) !== !0 ? "保存" : m === 0 ? "新增" : "保存",
|
|
2857
2857
|
text: !0,
|
|
2858
|
-
icon: () =>
|
|
2859
|
-
type: ((
|
|
2858
|
+
icon: () => Ee(jt),
|
|
2859
|
+
type: ((U = $.control) == null ? void 0 : U.add(a, $).inline) !== !0 || m === 0 ? "primary" : "success",
|
|
2860
2860
|
sort: -1,
|
|
2861
2861
|
auth: () => {
|
|
2862
|
-
var
|
|
2863
|
-
return ((
|
|
2862
|
+
var G;
|
|
2863
|
+
return ((G = $.control) == null ? void 0 : G.add(a, $).inline) === !0;
|
|
2864
2864
|
}
|
|
2865
2865
|
};
|
|
2866
2866
|
},
|
|
@@ -2870,7 +2870,7 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
2870
2870
|
type: "primary",
|
|
2871
2871
|
mode: "dialog",
|
|
2872
2872
|
inline: !1,
|
|
2873
|
-
icon: () =>
|
|
2873
|
+
icon: () => Ee(Dl),
|
|
2874
2874
|
auth: () => !0
|
|
2875
2875
|
}),
|
|
2876
2876
|
download: (a, r) => ({
|
|
@@ -2878,7 +2878,7 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
2878
2878
|
text: !1,
|
|
2879
2879
|
type: "primary",
|
|
2880
2880
|
mode: "dialog",
|
|
2881
|
-
icon: () =>
|
|
2881
|
+
icon: () => Ee(Gt),
|
|
2882
2882
|
excelLabel: "下载EXCEL",
|
|
2883
2883
|
auth: () => !0
|
|
2884
2884
|
}),
|
|
@@ -2887,7 +2887,7 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
2887
2887
|
text: !1,
|
|
2888
2888
|
type: "primary",
|
|
2889
2889
|
mode: "dialog",
|
|
2890
|
-
icon: () =>
|
|
2890
|
+
icon: () => Ee(Sl),
|
|
2891
2891
|
auth: () => !0
|
|
2892
2892
|
}),
|
|
2893
2893
|
dropdown: (a, r, m, $) => ({
|
|
@@ -2898,68 +2898,68 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
2898
2898
|
size: "small",
|
|
2899
2899
|
auth: () => !($.control.add(a, $).inline === !0 && m == 0),
|
|
2900
2900
|
onClick: () => {
|
|
2901
|
-
var
|
|
2902
|
-
let
|
|
2903
|
-
|
|
2901
|
+
var U;
|
|
2902
|
+
let x = (U = we(a, r, m, $)) == null ? void 0 : U.operate;
|
|
2903
|
+
x === "edit" ? b(a, r, m, $) : x === "delete" ? s(a, r, m, $) : x === "view" && V(a, r, m, $);
|
|
2904
2904
|
},
|
|
2905
2905
|
"button-props": { round: !0, plain: !0 }
|
|
2906
2906
|
})
|
|
2907
2907
|
};
|
|
2908
|
-
e.value.control =
|
|
2908
|
+
e.value.control = Ie(
|
|
2909
2909
|
se,
|
|
2910
2910
|
h == null ? void 0 : h.control,
|
|
2911
|
-
(
|
|
2911
|
+
(Le = e.value) == null ? void 0 : Le.control
|
|
2912
2912
|
);
|
|
2913
2913
|
const ce = (a, r = !0) => {
|
|
2914
|
-
const m = e.value.control[a], $ = r ? (
|
|
2915
|
-
var Ne, Ge,
|
|
2916
|
-
if (!
|
|
2914
|
+
const m = e.value.control[a], $ = r ? (x, U, G, ge) => {
|
|
2915
|
+
var Ne, Ge, ct;
|
|
2916
|
+
if (!x || !U || G == null)
|
|
2917
2917
|
return console.warn(`merge${a.charAt(0).toUpperCase() + a.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
2918
|
-
const Me = ((Ne = se[a]) == null ? void 0 : Ne.call(se,
|
|
2919
|
-
return
|
|
2920
|
-
} : (
|
|
2921
|
-
var
|
|
2922
|
-
const
|
|
2923
|
-
return
|
|
2918
|
+
const Me = ((Ne = se[a]) == null ? void 0 : Ne.call(se, x, U, G, ge)) || {}, Se = ((ct = (Ge = h == null ? void 0 : h.control) == null ? void 0 : Ge[a]) == null ? void 0 : ct.call(Ge, x, U, G, ge)) || {}, He = (m == null ? void 0 : m(x, U, G, ge)) || {};
|
|
2919
|
+
return Ie(Me, Se, He) || {};
|
|
2920
|
+
} : (x, U) => {
|
|
2921
|
+
var Se, He, Ne;
|
|
2922
|
+
const G = ((Se = se[a]) == null ? void 0 : Se.call(se, x, U)) || {}, ge = ((Ne = (He = h == null ? void 0 : h.control) == null ? void 0 : He[a]) == null ? void 0 : Ne.call(He, x, U)) || {}, Me = (m == null ? void 0 : m(x, U)) || {};
|
|
2923
|
+
return Ie(G, ge, Me) || {};
|
|
2924
2924
|
};
|
|
2925
2925
|
e.value.control[a] = $;
|
|
2926
2926
|
};
|
|
2927
2927
|
ce("edit"), ce("delete"), ce("view"), ce("save"), ce("add", !1), ce("download", !1), ce("setting", !1);
|
|
2928
|
-
const
|
|
2929
|
-
var
|
|
2928
|
+
const we = (a, r, m, $) => {
|
|
2929
|
+
var ge, Me, Se, He, Ne, Ge;
|
|
2930
2930
|
if (!a || !r || m == null)
|
|
2931
2931
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2932
|
-
const
|
|
2933
|
-
return
|
|
2934
|
-
},
|
|
2932
|
+
const x = ((ge = se.dropdown) == null ? void 0 : ge.call(se, a, r, m, $)) || {}, U = ((Se = (Me = h == null ? void 0 : h.control) == null ? void 0 : Me.dropdown) == null ? void 0 : Se.call(Me, a, r, m, $)) || {}, G = ((Ge = (Ne = (He = e.value) == null ? void 0 : He.control) == null ? void 0 : Ne.dropdown) == null ? void 0 : Ge.call(Ne, a, r, m, $)) || {};
|
|
2933
|
+
return Ie(x, U, G) || {};
|
|
2934
|
+
}, Fe = {
|
|
2935
2935
|
type: "hidden",
|
|
2936
2936
|
"min-width": 100,
|
|
2937
2937
|
align: "center",
|
|
2938
2938
|
formatter: (a, r, m, $) => m,
|
|
2939
|
-
"tooltip-formatter": ({ row: a, column: r, cellValue: m }) =>
|
|
2939
|
+
"tooltip-formatter": ({ row: a, column: r, cellValue: m }) => Ee(Ca, { content: m, column: r })
|
|
2940
2940
|
};
|
|
2941
|
-
e.value.tableColumns =
|
|
2942
|
-
|
|
2941
|
+
e.value.tableColumns = Ie(
|
|
2942
|
+
Fe,
|
|
2943
2943
|
h == null ? void 0 : h.tableColumns,
|
|
2944
|
-
(
|
|
2945
|
-
), e.value.form =
|
|
2944
|
+
(Pe = e.value) == null ? void 0 : Pe.tableColumns
|
|
2945
|
+
), e.value.form = Ie(
|
|
2946
2946
|
Jt,
|
|
2947
2947
|
h == null ? void 0 : h.form,
|
|
2948
|
-
(
|
|
2948
|
+
(je = e.value) == null ? void 0 : je.form
|
|
2949
2949
|
);
|
|
2950
|
-
const
|
|
2950
|
+
const xe = {
|
|
2951
2951
|
type: "hidden",
|
|
2952
2952
|
labelPosition: "right",
|
|
2953
2953
|
style: {
|
|
2954
2954
|
width: "100%"
|
|
2955
2955
|
}
|
|
2956
2956
|
};
|
|
2957
|
-
e.value.formItems =
|
|
2958
|
-
|
|
2957
|
+
e.value.formItems = Ie(
|
|
2958
|
+
xe,
|
|
2959
2959
|
h == null ? void 0 : h.formItems,
|
|
2960
|
-
(
|
|
2960
|
+
(We = e == null ? void 0 : e.value) == null ? void 0 : We.formItems
|
|
2961
2961
|
);
|
|
2962
|
-
const
|
|
2962
|
+
const ee = {
|
|
2963
2963
|
title: "编辑",
|
|
2964
2964
|
mode: "drawer",
|
|
2965
2965
|
type: "hidden",
|
|
@@ -2972,137 +2972,137 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
2972
2972
|
overflow: !0,
|
|
2973
2973
|
max: {
|
|
2974
2974
|
style: {},
|
|
2975
|
-
icon: () =>
|
|
2975
|
+
icon: () => Ee(xl)
|
|
2976
2976
|
},
|
|
2977
2977
|
min: {
|
|
2978
2978
|
style: {},
|
|
2979
|
-
icon: () =>
|
|
2979
|
+
icon: () => Ee(Ml)
|
|
2980
2980
|
// 最小化图标
|
|
2981
2981
|
}
|
|
2982
2982
|
};
|
|
2983
|
-
e.value.dialog =
|
|
2984
|
-
|
|
2983
|
+
e.value.dialog = Ie(
|
|
2984
|
+
ee,
|
|
2985
2985
|
h == null ? void 0 : h.dialog,
|
|
2986
|
-
(
|
|
2986
|
+
(yt = e.value) == null ? void 0 : yt.dialog
|
|
2987
2987
|
);
|
|
2988
|
-
const
|
|
2988
|
+
const oe = (a, r) => {
|
|
2989
2989
|
let m = r;
|
|
2990
2990
|
if (a.precision && !isNaN(parseFloat(r)) && (typeof a.precision == "number" ? m = parseFloat(m).toFixed(a.precision) : typeof a.precision == "object" && a.precision.num && (a.precision.pad ? m = parseFloat(m).toFixed(a.precision.num) : m = parseFloat(
|
|
2991
2991
|
parseFloat(m).toFixed(a.precision.num)
|
|
2992
2992
|
).toString())), ["date", "datetime", "time", "time-select"].includes(a.type) && Mt(r).isValid()) {
|
|
2993
|
-
const
|
|
2993
|
+
const x = {
|
|
2994
2994
|
date: "YYYY-MM-DD",
|
|
2995
2995
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2996
2996
|
time: "HH:mm:ss"
|
|
2997
2997
|
};
|
|
2998
|
-
m = a.format ? Mt(m).format(a.format) : Mt(m).format(
|
|
2998
|
+
m = a.format ? Mt(m).format(a.format) : Mt(m).format(x[a.type]);
|
|
2999
2999
|
}
|
|
3000
3000
|
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, m = `<span title="${Bt(
|
|
3001
3001
|
parseFloat(m)
|
|
3002
3002
|
)}">${or(parseFloat(m), (a == null ? void 0 : a.precision) || 2, (a == null ? void 0 : a.removeZero) || !1)}</span>`), a.prefix && m && (m = `<span>${a.prefix}${m}</span>`), a.suffix && m && (m = `${m}<span>${a.suffix}</span>`), m;
|
|
3003
|
-
}, ne = (a) => {
|
|
3004
|
-
f.value = Object.fromEntries(v), e.value.table.load();
|
|
3005
3003
|
}, Te = (a) => {
|
|
3004
|
+
f.value = Object.fromEntries(v), e.value.table.load();
|
|
3005
|
+
}, T = (a) => {
|
|
3006
3006
|
f.value = a, e.value.table.load();
|
|
3007
|
-
},
|
|
3007
|
+
}, w = async (a = M.value, r) => {
|
|
3008
3008
|
var m, $;
|
|
3009
3009
|
e.value.form.modalState = "add", l.value = "add";
|
|
3010
3010
|
try {
|
|
3011
|
-
if (!await ((m = e.value.control) == null ? void 0 : m.validate("add", { row:
|
|
3012
|
-
} catch (
|
|
3013
|
-
console.error("验证失败:",
|
|
3011
|
+
if (!await ((m = e.value.control) == null ? void 0 : m.validate("add", { row: M.value, m: r }))) return;
|
|
3012
|
+
} catch (x) {
|
|
3013
|
+
console.error("验证失败:", x);
|
|
3014
3014
|
return;
|
|
3015
3015
|
}
|
|
3016
|
-
($ = e.value.control.add(
|
|
3017
|
-
e.value[
|
|
3018
|
-
}), u.value = !0, o("open", "add", { row:
|
|
3019
|
-
},
|
|
3020
|
-
var
|
|
3016
|
+
($ = e.value.control.add(M.value, r)) != null && $.click ? e.value.control.add(M.value, r).click(M.value, r) : e.value.control.add(M.value, r).inline === !0 ? (e.value.table.data.unshift({ ...M.value }), o("open", "row-add", { row: M.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add(M.value, r).mode, e.value.dialog.title = e.value.control.add(M.value, r).title || e.value.control.add(M.value, r).label || "新增", Object.keys(M.value).forEach((x) => {
|
|
3017
|
+
e.value[x] && (e.value[x].value = M.value[x]);
|
|
3018
|
+
}), u.value = !0, o("open", "add", { row: M.value, m: r }), Ct());
|
|
3019
|
+
}, b = async (a, r, m, $) => {
|
|
3020
|
+
var x, U;
|
|
3021
3021
|
e.value.form.modalState = "edit", l.value = "edit";
|
|
3022
3022
|
try {
|
|
3023
|
-
if (!await ((
|
|
3024
|
-
} catch (
|
|
3025
|
-
console.error("验证失败:",
|
|
3023
|
+
if (!await ((x = e.value.control) == null ? void 0 : x.validate("edit", { row: a, column: r, index: m, m: $ }))) return;
|
|
3024
|
+
} catch (G) {
|
|
3025
|
+
console.error("验证失败:", G);
|
|
3026
3026
|
return;
|
|
3027
3027
|
}
|
|
3028
|
-
(
|
|
3029
|
-
e.value[
|
|
3028
|
+
(U = e.value.control.edit(a, r, m, $)) != null && U.click ? e.value.control.edit(a, r, m, $).click(a, r, m, $) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit(a, r, m, $).mode, e.value.dialog.title = e.value.control.edit(a, r, m, $).title || e.value.control.edit(a, r, m, $).label || "编辑", Object.keys(a).forEach((G) => {
|
|
3029
|
+
e.value[G] && (e.value[G].value = a[G]);
|
|
3030
3030
|
}), u.value = !0, o("open", "edit", { m: $, row: a, column: r, index: m }), Ct());
|
|
3031
|
-
},
|
|
3032
|
-
var
|
|
3031
|
+
}, s = async (a, r, m, $) => {
|
|
3032
|
+
var x, U;
|
|
3033
3033
|
try {
|
|
3034
|
-
if (!await ((
|
|
3035
|
-
} catch (
|
|
3036
|
-
console.error("验证失败:",
|
|
3034
|
+
if (!await ((x = e.value.control) == null ? void 0 : x.validate("delete", { row: a, column: r, index: m, m: $ }))) return;
|
|
3035
|
+
} catch (G) {
|
|
3036
|
+
console.error("验证失败:", G);
|
|
3037
3037
|
return;
|
|
3038
3038
|
}
|
|
3039
|
-
if ((
|
|
3039
|
+
if ((U = e.value.control.delete(a, r, m, $)) != null && U.click)
|
|
3040
3040
|
e.value.control.delete(a, r, m, $).click(a, r, m, $);
|
|
3041
3041
|
else {
|
|
3042
|
-
let { message:
|
|
3043
|
-
Lt.confirm(
|
|
3042
|
+
let { message: G, title: ge, options: Me } = e.value.control.delete(a, r, m, $).dialog;
|
|
3043
|
+
Lt.confirm(G, ge, Me).then(() => {
|
|
3044
3044
|
o(
|
|
3045
3045
|
"delete",
|
|
3046
3046
|
{ row: a, column: r, index: m, m: $ },
|
|
3047
|
-
(
|
|
3048
|
-
|
|
3047
|
+
(Se = !0, He = !1) => {
|
|
3048
|
+
Se && (e.value.table.data.splice(m, 1), e.value.table.page.total--), He && e.value.table.load();
|
|
3049
3049
|
}
|
|
3050
3050
|
);
|
|
3051
3051
|
}).catch(() => {
|
|
3052
3052
|
});
|
|
3053
3053
|
}
|
|
3054
|
-
},
|
|
3055
|
-
var
|
|
3054
|
+
}, V = async (a, r, m, $) => {
|
|
3055
|
+
var x, U;
|
|
3056
3056
|
e.value.form.modalState = void 0, l.value = "view";
|
|
3057
3057
|
try {
|
|
3058
|
-
if (!await ((
|
|
3059
|
-
} catch (
|
|
3060
|
-
console.error("验证失败:",
|
|
3058
|
+
if (!await ((x = e.value.control) == null ? void 0 : x.validate("view", { row: a, column: r, index: m, m: $ }))) return;
|
|
3059
|
+
} catch (G) {
|
|
3060
|
+
console.error("验证失败:", G);
|
|
3061
3061
|
return;
|
|
3062
3062
|
}
|
|
3063
|
-
(
|
|
3064
|
-
e.value[
|
|
3063
|
+
(U = e.value.control.view(a, r, m, $)) != null && U.click ? e.value.control.view(a, r, m, $).click(a, r, m, $) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view(a, r, m, $).mode, e.value.dialog.title = e.value.control.view(a, r, m, $).title || e.value.control.view(a, r, m, $).label || "查看", Object.keys(a).forEach((G) => {
|
|
3064
|
+
e.value[G] && (e.value[G].value = a[G]);
|
|
3065
3065
|
}), u.value = !0, o("open", "view", { m: $, row: a, column: r, index: m }), Ct());
|
|
3066
|
-
},
|
|
3066
|
+
}, _ = (a, r = M.value) => {
|
|
3067
3067
|
Object.assign(a, r);
|
|
3068
|
-
},
|
|
3069
|
-
const
|
|
3070
|
-
|
|
3068
|
+
}, A = (a, r, m, $) => {
|
|
3069
|
+
const x = e.value.control.save(a, r, m, $);
|
|
3070
|
+
x != null && x.click ? x.click(a, r, m, $) : o(
|
|
3071
3071
|
"row-save",
|
|
3072
3072
|
{ row: a, column: r, index: m, data: e.value.table.data },
|
|
3073
|
-
async (
|
|
3074
|
-
if (
|
|
3075
|
-
const
|
|
3076
|
-
([Me,
|
|
3073
|
+
async (U = !0, G = !0) => {
|
|
3074
|
+
if (U && e.value.table.load(), G && m === 0) {
|
|
3075
|
+
const ge = Object.entries(e.value).filter(
|
|
3076
|
+
([Me, Se]) => Se.type !== "control" && Se.type !== "hidden" && Se.editor !== !1
|
|
3077
3077
|
);
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
), e.value.table.data[m] = { ...
|
|
3078
|
+
M.value = Object.fromEntries(
|
|
3079
|
+
ge.map(([Me, Se]) => [Me, Se.value])
|
|
3080
|
+
), e.value.table.data[m] = { ...M.value };
|
|
3081
3081
|
}
|
|
3082
3082
|
}
|
|
3083
3083
|
);
|
|
3084
|
-
},
|
|
3084
|
+
}, F = nr((a, r, m) => {
|
|
3085
3085
|
o("submit", e.value.form.modalState, a, r, ($) => {
|
|
3086
|
-
$ && (m === 1 && (u.value = !1),
|
|
3086
|
+
$ && (m === 1 && (u.value = !1), _(a), r.table.load());
|
|
3087
3087
|
});
|
|
3088
|
-
}, 300),
|
|
3089
|
-
|
|
3090
|
-
},
|
|
3088
|
+
}, 300), J = (a, r) => {
|
|
3089
|
+
_(a), o("reset", a, r);
|
|
3090
|
+
}, ne = (a, r, m) => {
|
|
3091
3091
|
var $;
|
|
3092
3092
|
if (($ = r.control.download(a, r)) != null && $.click)
|
|
3093
3093
|
r.control.download(a, r).click(a, r, m);
|
|
3094
3094
|
else {
|
|
3095
|
-
let
|
|
3095
|
+
let x = qt(
|
|
3096
3096
|
{
|
|
3097
3097
|
title: r.control.download(a, r).title || r.control.download(a, r).label || "下载",
|
|
3098
3098
|
size: r.control.download(a, r).size || 480,
|
|
3099
3099
|
width: r.control.download(a, r).width || 600,
|
|
3100
3100
|
slots: {
|
|
3101
|
-
default: () =>
|
|
3101
|
+
default: () => Ee(ra, {
|
|
3102
3102
|
items: m,
|
|
3103
3103
|
commitText: r.control.download(a, r).excelLabel,
|
|
3104
|
-
onExcel: (
|
|
3105
|
-
o("download",
|
|
3104
|
+
onExcel: (U, G) => {
|
|
3105
|
+
o("download", U, f.value, G), x();
|
|
3106
3106
|
}
|
|
3107
3107
|
})
|
|
3108
3108
|
}
|
|
@@ -3110,7 +3110,7 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
3110
3110
|
r.control.download(a, r).mode
|
|
3111
3111
|
);
|
|
3112
3112
|
}
|
|
3113
|
-
},
|
|
3113
|
+
}, ve = (a, r) => {
|
|
3114
3114
|
var m;
|
|
3115
3115
|
(m = r.control.setting(a, r)) != null && m.click ? r.control.setting(a, r).click(a, r) : qt(
|
|
3116
3116
|
{
|
|
@@ -3118,73 +3118,73 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
3118
3118
|
size: r.control.setting(a, r).size || 470,
|
|
3119
3119
|
width: r.control.setting(a, r).width || 600,
|
|
3120
3120
|
slots: {
|
|
3121
|
-
default: () =>
|
|
3121
|
+
default: () => Ee(wa, {
|
|
3122
3122
|
modelValue: r,
|
|
3123
|
-
tuid:
|
|
3123
|
+
tuid: de.value,
|
|
3124
3124
|
onSettingDragEnd: async () => {
|
|
3125
|
-
await
|
|
3125
|
+
await _e(de.value);
|
|
3126
3126
|
},
|
|
3127
3127
|
onSelectAll: async ($) => {
|
|
3128
|
-
await
|
|
3128
|
+
await _e(de.value);
|
|
3129
3129
|
}
|
|
3130
3130
|
})
|
|
3131
3131
|
}
|
|
3132
3132
|
},
|
|
3133
3133
|
r.control.setting(a, r).mode
|
|
3134
3134
|
);
|
|
3135
|
-
},
|
|
3136
|
-
{ type: "add", func:
|
|
3137
|
-
{ type: "download", func:
|
|
3138
|
-
{ type: "setting", func:
|
|
3139
|
-
{ type: "view", func:
|
|
3140
|
-
{ type: "edit", func:
|
|
3141
|
-
{ type: "delete", func:
|
|
3142
|
-
{ type: "save", func:
|
|
3143
|
-
],
|
|
3144
|
-
var
|
|
3135
|
+
}, I = e.value.control, j = [
|
|
3136
|
+
{ type: "add", func: w },
|
|
3137
|
+
{ type: "download", func: ne },
|
|
3138
|
+
{ type: "setting", func: ve },
|
|
3139
|
+
{ type: "view", func: V },
|
|
3140
|
+
{ type: "edit", func: b },
|
|
3141
|
+
{ type: "delete", func: s },
|
|
3142
|
+
{ type: "save", func: A }
|
|
3143
|
+
], Ve = (a, r, m, $, x) => j.filter((U) => a.includes(U.type)).map(({ type: U, func: G }) => {
|
|
3144
|
+
var ge, Me, Se;
|
|
3145
3145
|
return {
|
|
3146
|
-
name: `control-${
|
|
3147
|
-
attr:
|
|
3148
|
-
func:
|
|
3149
|
-
label: (
|
|
3150
|
-
sort: ((Me =
|
|
3151
|
-
groupName: ((
|
|
3146
|
+
name: `control-${U}`,
|
|
3147
|
+
attr: I == null ? void 0 : I[U](r, m, $, x),
|
|
3148
|
+
func: G,
|
|
3149
|
+
label: (ge = I == null ? void 0 : I[U](r, m, $, x)) == null ? void 0 : ge.label,
|
|
3150
|
+
sort: ((Me = I == null ? void 0 : I[U](r, m, $, x)) == null ? void 0 : Me.sort) || 0,
|
|
3151
|
+
groupName: ((Se = I == null ? void 0 : I[U](r, m, $, x)) == null ? void 0 : Se.groupName) || "default"
|
|
3152
3152
|
};
|
|
3153
|
-
}).sort((
|
|
3154
|
-
const
|
|
3155
|
-
return
|
|
3156
|
-
}, {}),
|
|
3153
|
+
}).sort((U, G) => U.sort - G.sort), he = (a, r, m, $, x) => Ve(a, r, m, $, x).reduce((U, G) => {
|
|
3154
|
+
const ge = G.groupName || "default";
|
|
3155
|
+
return U[ge] || (U[ge] = []), U[ge].push(G), U;
|
|
3156
|
+
}, {}), Re = it(
|
|
3157
3157
|
() => Object.fromEntries(
|
|
3158
3158
|
Object.entries(e.value).filter(([a, r]) => r.type !== "hidden").filter(([a, r]) => r.hidden !== !0).filter(([a, r]) => r.visible !== !1).filter(([a, r]) => r.showCol !== !1).map(([a, r]) => (r.sort = typeof r.sort == "number" ? r.sort : 0, [a, r])).sort((a, r) => a[1].sort - r[1].sort)
|
|
3159
3159
|
)
|
|
3160
|
-
), Ae =
|
|
3161
|
-
const m = ($,
|
|
3162
|
-
for (const
|
|
3163
|
-
if (
|
|
3164
|
-
if (
|
|
3165
|
-
const
|
|
3166
|
-
if (
|
|
3160
|
+
), Ae = re({}), De = (a, r) => {
|
|
3161
|
+
const m = ($, x) => {
|
|
3162
|
+
for (const U of $) {
|
|
3163
|
+
if (U.value == x) return U.label;
|
|
3164
|
+
if (U.children) {
|
|
3165
|
+
const G = m(U.children, x);
|
|
3166
|
+
if (G) return G;
|
|
3167
3167
|
}
|
|
3168
3168
|
}
|
|
3169
3169
|
return null;
|
|
3170
3170
|
};
|
|
3171
3171
|
if (a.getDicts) {
|
|
3172
3172
|
const $ = r.toString();
|
|
3173
|
-
return Ae.value[$] ? (a.options = Ae.value[$], a.formatter || (a.formatter = (
|
|
3174
|
-
Ae.value[$] =
|
|
3173
|
+
return Ae.value[$] ? (a.options = Ae.value[$], a.formatter || (a.formatter = (x, U, G, ge) => a.options && m(a.options, G) || G), Promise.resolve()) : a.getDicts(e.value.table.data).then((x) => {
|
|
3174
|
+
Ae.value[$] = x, a.options = x, a.formatter || (a.formatter = (U, G, ge, Me) => a.options && m(a.options, ge) || ge);
|
|
3175
3175
|
});
|
|
3176
3176
|
}
|
|
3177
3177
|
return Promise.resolve();
|
|
3178
|
-
},
|
|
3178
|
+
}, B = () => {
|
|
3179
3179
|
const a = [];
|
|
3180
3180
|
Object.keys(e.value).forEach((r) => {
|
|
3181
3181
|
if (e.value[r].getDicts) {
|
|
3182
|
-
const m =
|
|
3182
|
+
const m = De(e.value[r], r).then(() => {
|
|
3183
3183
|
e.value.table.data.forEach(($) => {
|
|
3184
|
-
var
|
|
3185
|
-
if (e.value[r].getDicts && ((
|
|
3186
|
-
const
|
|
3187
|
-
$[r] =
|
|
3184
|
+
var x;
|
|
3185
|
+
if (e.value[r].getDicts && ((x = e.value[r]) == null ? void 0 : x.forceString) !== !1) {
|
|
3186
|
+
const U = $[r];
|
|
3187
|
+
$[r] = U != null ? U.toString() : U;
|
|
3188
3188
|
}
|
|
3189
3189
|
});
|
|
3190
3190
|
}).catch(($) => {
|
|
@@ -3195,10 +3195,10 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
3195
3195
|
}), Promise.all(a).catch((r) => {
|
|
3196
3196
|
console.error("字典加载过程中发生错误:", r);
|
|
3197
3197
|
});
|
|
3198
|
-
},
|
|
3199
|
-
var
|
|
3200
|
-
return a.table ? (
|
|
3201
|
-
},
|
|
3198
|
+
}, C = (a, r, m, $) => {
|
|
3199
|
+
var x, U;
|
|
3200
|
+
return a.table ? (x = a.table(r, m, $)) != null && x.auth ? (U = a.table(r, m, $)) == null ? void 0 : U.auth(r, m, $) : !0 : !1;
|
|
3201
|
+
}, W = () => {
|
|
3202
3202
|
try {
|
|
3203
3203
|
e.value.dialog.mode == "drawer" ? c.value.handleClose() : e.value.dialog.mode == "dialog" ? D.value.handleClose() : u.value = !1;
|
|
3204
3204
|
} catch (a) {
|
|
@@ -3210,32 +3210,32 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
3210
3210
|
pl(() => {
|
|
3211
3211
|
e.value.table.autoWatch && e.value.table.load();
|
|
3212
3212
|
});
|
|
3213
|
-
const
|
|
3213
|
+
const _e = async () => {
|
|
3214
3214
|
try {
|
|
3215
3215
|
const [a, r, m] = await Promise.all([
|
|
3216
|
-
sa(
|
|
3217
|
-
pa(
|
|
3218
|
-
ia(
|
|
3216
|
+
sa(de.value),
|
|
3217
|
+
pa(de.value),
|
|
3218
|
+
ia(de.value)
|
|
3219
3219
|
]);
|
|
3220
3220
|
a && Array.isArray(a) && a.forEach(($) => {
|
|
3221
|
-
const
|
|
3222
|
-
|
|
3223
|
-
}), r && Array.isArray(r) && r.forEach(($,
|
|
3224
|
-
const
|
|
3225
|
-
|
|
3221
|
+
const x = e.value[$.key];
|
|
3222
|
+
x && (x.width = $.width);
|
|
3223
|
+
}), r && Array.isArray(r) && r.forEach(($, x) => {
|
|
3224
|
+
const U = e.value[$];
|
|
3225
|
+
U && (U.sort = x);
|
|
3226
3226
|
}), m && Array.isArray(m) && m.length > 0 ? m.forEach(($) => {
|
|
3227
|
-
const
|
|
3228
|
-
|
|
3227
|
+
const x = e.value[$];
|
|
3228
|
+
x && (x.showCol = !1);
|
|
3229
3229
|
}) : Object.keys(e.value).filter(($) => e.value[$].type !== "control").forEach(($) => {
|
|
3230
3230
|
e.value[$].showCol = !0;
|
|
3231
3231
|
});
|
|
3232
3232
|
} catch (a) {
|
|
3233
3233
|
console.error("加载表格信息时出错:", a);
|
|
3234
3234
|
}
|
|
3235
|
-
},
|
|
3235
|
+
}, Be = () => Ta(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
|
|
3236
3236
|
return ml(() => {
|
|
3237
|
-
|
|
3238
|
-
}),
|
|
3237
|
+
de.value = Be();
|
|
3238
|
+
}), ht(async () => {
|
|
3239
3239
|
g.value = Object.entries(e.value).filter(
|
|
3240
3240
|
([a, r]) => r.type !== "hidden" && r.type !== "control" && r.visible !== !1
|
|
3241
3241
|
).map(([a, r]) => ({
|
|
@@ -3244,78 +3244,78 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
3244
3244
|
value: !0
|
|
3245
3245
|
}));
|
|
3246
3246
|
try {
|
|
3247
|
-
await
|
|
3247
|
+
await mt();
|
|
3248
3248
|
const a = Object.entries(e.value).filter(
|
|
3249
3249
|
([r, m]) => m.type !== "control" && m.editor !== !1 && m.type !== "hidden"
|
|
3250
3250
|
);
|
|
3251
|
-
|
|
3251
|
+
M.value = Object.fromEntries(
|
|
3252
3252
|
a.map(([r, m]) => [r, m.value])
|
|
3253
|
-
), await
|
|
3253
|
+
), await _e();
|
|
3254
3254
|
} catch (a) {
|
|
3255
3255
|
console.error("Error during component initialization:", a);
|
|
3256
3256
|
}
|
|
3257
3257
|
e.value.table.autoWatch || e.value.table.load();
|
|
3258
|
-
}), d({ addRow:
|
|
3259
|
-
var Ge,
|
|
3260
|
-
const m = z("el-icon"), $ = z("el-dialog"),
|
|
3261
|
-
return p(),
|
|
3262
|
-
e.value.dialog.mode == "dialog" && u.value ? (p(),
|
|
3263
|
-
ae($,
|
|
3258
|
+
}), d({ addRow: w, editRow: b, deleteRow: s, readForm: V, saveRowData: A, closeDialog: W, formData: M }), (a, r) => {
|
|
3259
|
+
var Ge, ct, gt, bt, ft;
|
|
3260
|
+
const m = z("el-icon"), $ = z("el-dialog"), x = z("el-drawer"), U = z("el-button-group"), G = z("el-dropdown-item"), ge = z("el-dropdown-menu"), Me = z("el-dropdown"), Se = z("el-table-column"), He = z("el-table"), Ne = z("el-pagination");
|
|
3261
|
+
return p(), R(le, null, [
|
|
3262
|
+
e.value.dialog.mode == "dialog" && u.value ? (p(), R("div", Fa, [
|
|
3263
|
+
ae($, O(
|
|
3264
3264
|
{
|
|
3265
3265
|
ref_key: "dialogRef",
|
|
3266
3266
|
ref: D,
|
|
3267
3267
|
id: "dialogRef",
|
|
3268
3268
|
modelValue: u.value,
|
|
3269
|
-
"onUpdate:modelValue": r[4] || (r[4] = (
|
|
3269
|
+
"onUpdate:modelValue": r[4] || (r[4] = (P) => u.value = P),
|
|
3270
3270
|
fullscreen: e.value.dialog.fullScreen,
|
|
3271
3271
|
"destroy-on-close": ""
|
|
3272
3272
|
},
|
|
3273
|
-
N(Je)(e.value.dialog, (
|
|
3273
|
+
N(Je)(e.value.dialog, (P) => !["size", "max", "min"].includes(P)),
|
|
3274
3274
|
{
|
|
3275
3275
|
width: N(al)(e.value.dialog.width) + 35
|
|
3276
3276
|
}
|
|
3277
3277
|
), {
|
|
3278
3278
|
header: E(() => {
|
|
3279
|
-
var
|
|
3279
|
+
var P, ie, S, K, ue, et, tt, Xe, Qe, st;
|
|
3280
3280
|
return [
|
|
3281
3281
|
Z("div", Va, [
|
|
3282
3282
|
Z("div", Aa, [
|
|
3283
3283
|
k(a.$slots, "f-header", {}, () => [
|
|
3284
|
-
Z("div", qa,
|
|
3284
|
+
Z("div", qa, Ce(e.value.dialog.title), 1)
|
|
3285
3285
|
], !0)
|
|
3286
3286
|
]),
|
|
3287
|
-
((
|
|
3287
|
+
((ie = (P = e.value) == null ? void 0 : P.dialog) == null ? void 0 : ie.fullScreen) === !1 ? (p(), R("div", {
|
|
3288
3288
|
key: 0,
|
|
3289
|
-
style:
|
|
3290
|
-
onClick: r[0] || (r[0] = (
|
|
3289
|
+
style: Ue((ue = (K = (S = e.value) == null ? void 0 : S.dialog) == null ? void 0 : K.max) == null ? void 0 : ue.style),
|
|
3290
|
+
onClick: r[0] || (r[0] = (H) => e.value.dialog.fullScreen = !0),
|
|
3291
3291
|
class: "max"
|
|
3292
3292
|
}, [
|
|
3293
3293
|
ae(m, null, {
|
|
3294
3294
|
default: E(() => {
|
|
3295
|
-
var
|
|
3295
|
+
var H, ze, lt;
|
|
3296
3296
|
return [
|
|
3297
|
-
(p(), q(Ze((lt = (ze = (
|
|
3297
|
+
(p(), q(Ze((lt = (ze = (H = e.value) == null ? void 0 : H.dialog) == null ? void 0 : ze.max) == null ? void 0 : lt.icon)))
|
|
3298
3298
|
];
|
|
3299
3299
|
}),
|
|
3300
3300
|
_: 1
|
|
3301
3301
|
})
|
|
3302
|
-
], 4)) :
|
|
3303
|
-
((tt = (et = e.value) == null ? void 0 : et.dialog) == null ? void 0 : tt.fullScreen) === !0 ? (p(),
|
|
3302
|
+
], 4)) : be("", !0),
|
|
3303
|
+
((tt = (et = e.value) == null ? void 0 : et.dialog) == null ? void 0 : tt.fullScreen) === !0 ? (p(), R("div", {
|
|
3304
3304
|
key: 1,
|
|
3305
|
-
style:
|
|
3306
|
-
onClick: r[1] || (r[1] = (
|
|
3305
|
+
style: Ue((st = (Qe = (Xe = e.value) == null ? void 0 : Xe.dialog) == null ? void 0 : Qe.min) == null ? void 0 : st.style),
|
|
3306
|
+
onClick: r[1] || (r[1] = (H) => e.value.dialog.fullScreen = !1),
|
|
3307
3307
|
class: "max"
|
|
3308
3308
|
}, [
|
|
3309
3309
|
ae(m, null, {
|
|
3310
3310
|
default: E(() => {
|
|
3311
|
-
var
|
|
3311
|
+
var H, ze, lt;
|
|
3312
3312
|
return [
|
|
3313
|
-
(p(), q(Ze((lt = (ze = (
|
|
3313
|
+
(p(), q(Ze((lt = (ze = (H = e.value) == null ? void 0 : H.dialog) == null ? void 0 : ze.min) == null ? void 0 : lt.icon)))
|
|
3314
3314
|
];
|
|
3315
3315
|
}),
|
|
3316
3316
|
_: 1
|
|
3317
3317
|
})
|
|
3318
|
-
], 4)) :
|
|
3318
|
+
], 4)) : be("", !0)
|
|
3319
3319
|
])
|
|
3320
3320
|
];
|
|
3321
3321
|
}),
|
|
@@ -3324,15 +3324,15 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
3324
3324
|
k(a.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
3325
3325
|
(p(), q(Ze(Ft), {
|
|
3326
3326
|
modelValue: e.value,
|
|
3327
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
3328
|
-
onSubmit: r[3] || (r[3] = (
|
|
3329
|
-
onReset:
|
|
3327
|
+
"onUpdate:modelValue": r[2] || (r[2] = (P) => e.value = P),
|
|
3328
|
+
onSubmit: r[3] || (r[3] = (P, ie, S) => N(F)(P, ie, S)),
|
|
3329
|
+
onReset: J,
|
|
3330
3330
|
flag: l.value
|
|
3331
3331
|
}, $e({ _: 2 }, [
|
|
3332
|
-
|
|
3333
|
-
name:
|
|
3332
|
+
X(a.$slots, (P, ie, S) => ({
|
|
3333
|
+
name: ie,
|
|
3334
3334
|
fn: E((K) => [
|
|
3335
|
-
k(a.$slots,
|
|
3335
|
+
k(a.$slots, ie, { model: K }, void 0, !0)
|
|
3336
3336
|
])
|
|
3337
3337
|
}))
|
|
3338
3338
|
]), 1064, ["modelValue", "flag"]))
|
|
@@ -3341,20 +3341,20 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
3341
3341
|
]),
|
|
3342
3342
|
_: 3
|
|
3343
3343
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
3344
|
-
])) :
|
|
3345
|
-
e.value.dialog.mode == "drawer" && u.value ? (p(),
|
|
3346
|
-
ae(
|
|
3344
|
+
])) : be("", !0),
|
|
3345
|
+
e.value.dialog.mode == "drawer" && u.value ? (p(), R("div", Ia, [
|
|
3346
|
+
ae(x, O({
|
|
3347
3347
|
ref_key: "drawerRef",
|
|
3348
3348
|
ref: c,
|
|
3349
3349
|
modelValue: u.value,
|
|
3350
|
-
"onUpdate:modelValue": r[7] || (r[7] = (
|
|
3350
|
+
"onUpdate:modelValue": r[7] || (r[7] = (P) => u.value = P),
|
|
3351
3351
|
"destroy-on-close": ""
|
|
3352
|
-
}, N(Je)(e.value.dialog, (
|
|
3352
|
+
}, N(Je)(e.value.dialog, (P) => !["width"].includes(P))), {
|
|
3353
3353
|
header: E(() => [
|
|
3354
3354
|
Z("div", Oa, [
|
|
3355
3355
|
Z("div", Ua, [
|
|
3356
3356
|
k(a.$slots, "f-header", {}, () => [
|
|
3357
|
-
Z("div", Ra,
|
|
3357
|
+
Z("div", Ra, Ce(e.value.dialog.title), 1)
|
|
3358
3358
|
], !0)
|
|
3359
3359
|
])
|
|
3360
3360
|
])
|
|
@@ -3363,15 +3363,15 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
3363
3363
|
k(a.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
3364
3364
|
(p(), q(Ze(Ft), {
|
|
3365
3365
|
modelValue: e.value,
|
|
3366
|
-
"onUpdate:modelValue": r[5] || (r[5] = (
|
|
3367
|
-
onSubmit: r[6] || (r[6] = (
|
|
3368
|
-
onReset:
|
|
3366
|
+
"onUpdate:modelValue": r[5] || (r[5] = (P) => e.value = P),
|
|
3367
|
+
onSubmit: r[6] || (r[6] = (P, ie, S) => N(F)(P, ie, S)),
|
|
3368
|
+
onReset: J,
|
|
3369
3369
|
flag: l.value
|
|
3370
3370
|
}, $e({ _: 2 }, [
|
|
3371
|
-
|
|
3372
|
-
name:
|
|
3371
|
+
X(a.$slots, (P, ie, S) => ({
|
|
3372
|
+
name: ie,
|
|
3373
3373
|
fn: E((K) => [
|
|
3374
|
-
k(a.$slots,
|
|
3374
|
+
k(a.$slots, ie, { model: K }, void 0, !0)
|
|
3375
3375
|
])
|
|
3376
3376
|
}))
|
|
3377
3377
|
]), 1064, ["modelValue", "flag"]))
|
|
@@ -3379,68 +3379,68 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
3379
3379
|
]),
|
|
3380
3380
|
_: 3
|
|
3381
3381
|
}, 16, ["modelValue"])
|
|
3382
|
-
])) :
|
|
3382
|
+
])) : be("", !0),
|
|
3383
3383
|
Z("div", Ya, [
|
|
3384
|
-
((
|
|
3384
|
+
((ct = (Ge = e.value) == null ? void 0 : Ge.query) == null ? void 0 : ct.hidden) != !0 ? (p(), R("div", La, [
|
|
3385
3385
|
k(a.$slots, "query", {}, () => [
|
|
3386
3386
|
ae(Gl, {
|
|
3387
3387
|
modelValue: e.value,
|
|
3388
|
-
"onUpdate:modelValue": r[8] || (r[8] = (
|
|
3388
|
+
"onUpdate:modelValue": r[8] || (r[8] = (P) => e.value = P),
|
|
3389
3389
|
info: f.value,
|
|
3390
|
-
"onUpdate:info": r[9] || (r[9] = (
|
|
3391
|
-
onQuery:
|
|
3392
|
-
onReset:
|
|
3390
|
+
"onUpdate:info": r[9] || (r[9] = (P) => f.value = P),
|
|
3391
|
+
onQuery: T,
|
|
3392
|
+
onReset: Te
|
|
3393
3393
|
}, $e({
|
|
3394
3394
|
"q-btns": E(() => [
|
|
3395
3395
|
k(a.$slots, "q-btns", {}, () => [
|
|
3396
|
-
(p(!0),
|
|
3397
|
-
|
|
3396
|
+
(p(!0), R(le, null, X(he(["add", "download", "setting"], M.value, e.value), (P, ie) => (p(), R(le, null, [
|
|
3397
|
+
ie == "default" ? (p(!0), R(le, { key: 0 }, X(P, (S) => (p(), R(le, null, [
|
|
3398
3398
|
k(a.$slots, S.name + "-left", {}, void 0, !0),
|
|
3399
3399
|
(S.name === "control-add" ? S.attr.auth() && S.attr.inline === !1 : S.attr.auth()) ? k(a.$slots, S.name, { key: 0 }, () => [
|
|
3400
|
-
S.label ? (p(), q(N(Ye),
|
|
3400
|
+
S.label ? (p(), q(N(Ye), O({
|
|
3401
3401
|
key: 0,
|
|
3402
3402
|
title: S.label,
|
|
3403
3403
|
ref_for: !0
|
|
3404
3404
|
}, S.attr, {
|
|
3405
|
-
onClick: (K) => S.func(
|
|
3405
|
+
onClick: (K) => S.func(M.value, e.value, g.value)
|
|
3406
3406
|
}), {
|
|
3407
3407
|
default: E(() => [
|
|
3408
|
-
|
|
3408
|
+
Oe(Ce(S.label), 1)
|
|
3409
3409
|
]),
|
|
3410
3410
|
_: 2
|
|
3411
|
-
}, 1040, ["title", "onClick"])) : (p(), q(N(Ye),
|
|
3411
|
+
}, 1040, ["title", "onClick"])) : (p(), q(N(Ye), O({
|
|
3412
3412
|
key: 1,
|
|
3413
3413
|
title: S.label,
|
|
3414
3414
|
ref_for: !0
|
|
3415
3415
|
}, S.attr, {
|
|
3416
|
-
onClick: (K) => S.func(
|
|
3416
|
+
onClick: (K) => S.func(M.value, e.value, g.value)
|
|
3417
3417
|
}), null, 16, ["title", "onClick"]))
|
|
3418
|
-
], !0) :
|
|
3418
|
+
], !0) : be("", !0),
|
|
3419
3419
|
k(a.$slots, S.name + "-right", {}, void 0, !0)
|
|
3420
|
-
], 64))), 256)) : (p(), q(
|
|
3420
|
+
], 64))), 256)) : (p(), q(U, { key: 1 }, {
|
|
3421
3421
|
default: E(() => [
|
|
3422
|
-
(p(!0),
|
|
3422
|
+
(p(!0), R(le, null, X(P, (S) => (p(), R(le, null, [
|
|
3423
3423
|
k(a.$slots, S.name + "-left", {}, void 0, !0),
|
|
3424
3424
|
(S.name === "control-add" ? S.attr.auth() && S.attr.inline === !1 : S.attr.auth()) ? k(a.$slots, S.name, { key: 0 }, () => [
|
|
3425
|
-
S.label ? (p(), q(N(Ye),
|
|
3425
|
+
S.label ? (p(), q(N(Ye), O({
|
|
3426
3426
|
key: 0,
|
|
3427
3427
|
title: S.label,
|
|
3428
3428
|
ref_for: !0
|
|
3429
3429
|
}, S.attr, {
|
|
3430
|
-
onClick: (K) => S.func(
|
|
3430
|
+
onClick: (K) => S.func(M.value, e.value, g.value)
|
|
3431
3431
|
}), {
|
|
3432
3432
|
default: E(() => [
|
|
3433
|
-
|
|
3433
|
+
Oe(Ce(S.label), 1)
|
|
3434
3434
|
]),
|
|
3435
3435
|
_: 2
|
|
3436
|
-
}, 1040, ["title", "onClick"])) : (p(), q(N(Ye),
|
|
3436
|
+
}, 1040, ["title", "onClick"])) : (p(), q(N(Ye), O({
|
|
3437
3437
|
key: 1,
|
|
3438
3438
|
title: S.label,
|
|
3439
3439
|
ref_for: !0
|
|
3440
3440
|
}, S.attr, {
|
|
3441
|
-
onClick: (K) => S.func(
|
|
3441
|
+
onClick: (K) => S.func(M.value, e.value, g.value)
|
|
3442
3442
|
}), null, 16, ["title", "onClick"]))
|
|
3443
|
-
], !0) :
|
|
3443
|
+
], !0) : be("", !0),
|
|
3444
3444
|
k(a.$slots, S.name + "-right", {}, void 0, !0)
|
|
3445
3445
|
], 64))), 256))
|
|
3446
3446
|
]),
|
|
@@ -3451,31 +3451,31 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
3451
3451
|
]),
|
|
3452
3452
|
_: 2
|
|
3453
3453
|
}, [
|
|
3454
|
-
|
|
3455
|
-
name:
|
|
3454
|
+
X(a.$slots, (P, ie, S) => ({
|
|
3455
|
+
name: ie,
|
|
3456
3456
|
fn: E((K) => [
|
|
3457
|
-
k(a.$slots,
|
|
3457
|
+
k(a.$slots, ie, { model: e.value }, void 0, !0)
|
|
3458
3458
|
])
|
|
3459
3459
|
}))
|
|
3460
3460
|
]), 1032, ["modelValue", "info"])
|
|
3461
3461
|
], !0)
|
|
3462
|
-
])) :
|
|
3462
|
+
])) : be("", !0),
|
|
3463
3463
|
k(a.$slots, "table-title", {
|
|
3464
3464
|
model: e.value,
|
|
3465
3465
|
queryInfo: f.value
|
|
3466
3466
|
}, void 0, !0),
|
|
3467
3467
|
Z("div", Ha, [
|
|
3468
|
-
ae(He,
|
|
3468
|
+
ae(He, O({
|
|
3469
3469
|
...a.$attrs,
|
|
3470
3470
|
...N(Je)(
|
|
3471
3471
|
e.value.table,
|
|
3472
|
-
(
|
|
3472
|
+
(P) => !["dblclickType", "page"].includes(P)
|
|
3473
3473
|
)
|
|
3474
3474
|
}, {
|
|
3475
|
-
"summary-method": (
|
|
3476
|
-
onSortChange: r[10] || (r[10] = (
|
|
3477
|
-
var
|
|
3478
|
-
e.value.table.onSortChange(
|
|
3475
|
+
"summary-method": (P) => e.value.table["summary-method"](P, { fields: Y.value, sums: L.value }),
|
|
3476
|
+
onSortChange: r[10] || (r[10] = (P) => {
|
|
3477
|
+
var ie, S;
|
|
3478
|
+
e.value.table.onSortChange(P, f.value), ((ie = P == null ? void 0 : P.column) == null ? void 0 : ie.sortable) === "custom" && ((S = e.value.table) == null || S.load());
|
|
3479
3479
|
})
|
|
3480
3480
|
}), {
|
|
3481
3481
|
append: E(() => [
|
|
@@ -3486,154 +3486,154 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
3486
3486
|
]),
|
|
3487
3487
|
default: E(() => [
|
|
3488
3488
|
k(a.$slots, "default", {}, () => [
|
|
3489
|
-
(p(!0),
|
|
3490
|
-
prop:
|
|
3491
|
-
key:
|
|
3489
|
+
(p(!0), R(le, null, X(Re.value, (P, ie) => (p(), q(Se, O({
|
|
3490
|
+
prop: ie,
|
|
3491
|
+
key: ie,
|
|
3492
3492
|
ref_for: !0
|
|
3493
3493
|
}, {
|
|
3494
3494
|
...e.value.tableColumns,
|
|
3495
|
-
...N(Je)(
|
|
3495
|
+
...N(Je)(P, (S) => i.includes(S))
|
|
3496
3496
|
}), $e({
|
|
3497
3497
|
header: E(({ column: S, $index: K }) => [
|
|
3498
|
-
|
|
3498
|
+
ie == "control" ? k(a.$slots, `${ie}-header`, {
|
|
3499
3499
|
key: 0,
|
|
3500
3500
|
column: S,
|
|
3501
3501
|
index: K
|
|
3502
3502
|
}, () => [
|
|
3503
|
-
Z("span", null,
|
|
3504
|
-
], !0) : k(a.$slots, `${
|
|
3503
|
+
Z("span", null, Ce(S.label), 1)
|
|
3504
|
+
], !0) : k(a.$slots, `${ie}-header`, {
|
|
3505
3505
|
key: 1,
|
|
3506
3506
|
column: S,
|
|
3507
3507
|
index: K
|
|
3508
3508
|
}, void 0, !0)
|
|
3509
3509
|
]),
|
|
3510
3510
|
"filter-icon": E((S) => [
|
|
3511
|
-
k(a.$slots, `${
|
|
3511
|
+
k(a.$slots, `${ie}-filter-icon`, { data: S }, void 0, !0)
|
|
3512
3512
|
]),
|
|
3513
3513
|
_: 2
|
|
3514
3514
|
}, [
|
|
3515
|
-
|
|
3515
|
+
P.type === "expand" ? {
|
|
3516
3516
|
name: "default",
|
|
3517
|
-
fn: E(({ row: S, column: K, $index:
|
|
3518
|
-
k(a.$slots, `${
|
|
3517
|
+
fn: E(({ row: S, column: K, $index: ue }) => [
|
|
3518
|
+
k(a.$slots, `${ie}`, {
|
|
3519
3519
|
row: S,
|
|
3520
3520
|
column: K,
|
|
3521
|
-
index:
|
|
3521
|
+
index: ue
|
|
3522
3522
|
}, void 0, !0)
|
|
3523
3523
|
]),
|
|
3524
3524
|
key: "0"
|
|
3525
|
-
} :
|
|
3525
|
+
} : P.type == "control" ? {
|
|
3526
3526
|
name: "default",
|
|
3527
|
-
fn: E(({ row: S, column: K, $index:
|
|
3527
|
+
fn: E(({ row: S, column: K, $index: ue }) => {
|
|
3528
3528
|
var et, tt;
|
|
3529
3529
|
return [
|
|
3530
3530
|
Z("div", {
|
|
3531
3531
|
class: zt(["control", (et = e.value.control) == null ? void 0 : et.class]),
|
|
3532
|
-
style:
|
|
3532
|
+
style: Ue((tt = e.value.control) == null ? void 0 : tt.style)
|
|
3533
3533
|
}, [
|
|
3534
3534
|
k(a.$slots, "control", {}, () => [
|
|
3535
3535
|
k(a.$slots, "control-left", {
|
|
3536
3536
|
row: S,
|
|
3537
3537
|
column: K,
|
|
3538
|
-
index:
|
|
3538
|
+
index: ue
|
|
3539
3539
|
}, void 0, !0),
|
|
3540
|
-
(p(!0),
|
|
3541
|
-
var
|
|
3542
|
-
return p(),
|
|
3543
|
-
Qe == "default" ? (p(!0),
|
|
3544
|
-
k(a.$slots,
|
|
3540
|
+
(p(!0), R(le, null, X(he(["view", "edit", "delete", "save"], S, K, ue, e.value), (Xe, Qe) => {
|
|
3541
|
+
var st;
|
|
3542
|
+
return p(), R(le, null, [
|
|
3543
|
+
Qe == "default" ? (p(!0), R(le, { key: 0 }, X(Xe, (H) => (p(), R(le, null, [
|
|
3544
|
+
k(a.$slots, H.name + "-left", {
|
|
3545
3545
|
row: S,
|
|
3546
3546
|
column: K,
|
|
3547
|
-
index:
|
|
3547
|
+
index: ue
|
|
3548
3548
|
}, void 0, !0),
|
|
3549
|
-
|
|
3549
|
+
H.attr.auth() ? k(a.$slots, H.name, {
|
|
3550
3550
|
key: 0,
|
|
3551
3551
|
row: S,
|
|
3552
3552
|
column: K,
|
|
3553
|
-
index:
|
|
3553
|
+
index: ue
|
|
3554
3554
|
}, () => [
|
|
3555
|
-
|
|
3555
|
+
H.label ? (p(), q(N(Ye), O({
|
|
3556
3556
|
key: 0,
|
|
3557
|
-
title:
|
|
3557
|
+
title: H.label,
|
|
3558
3558
|
ref_for: !0
|
|
3559
|
-
},
|
|
3560
|
-
onClick: (ze) =>
|
|
3559
|
+
}, H.attr, {
|
|
3560
|
+
onClick: (ze) => H.func(S, K, ue, e.value)
|
|
3561
3561
|
}), {
|
|
3562
3562
|
default: E(() => [
|
|
3563
|
-
|
|
3563
|
+
Oe(Ce(H.label), 1)
|
|
3564
3564
|
]),
|
|
3565
3565
|
_: 2
|
|
3566
|
-
}, 1040, ["title", "onClick"])) : (p(), q(N(Ye),
|
|
3566
|
+
}, 1040, ["title", "onClick"])) : (p(), q(N(Ye), O({
|
|
3567
3567
|
key: 1,
|
|
3568
|
-
title:
|
|
3568
|
+
title: H.label,
|
|
3569
3569
|
ref_for: !0
|
|
3570
|
-
},
|
|
3571
|
-
onClick: (ze) =>
|
|
3570
|
+
}, H.attr, {
|
|
3571
|
+
onClick: (ze) => H.func(S, K, ue, e.value)
|
|
3572
3572
|
}), null, 16, ["title", "onClick"]))
|
|
3573
|
-
], !0) :
|
|
3574
|
-
k(a.$slots,
|
|
3573
|
+
], !0) : be("", !0),
|
|
3574
|
+
k(a.$slots, H.name + "-right", {
|
|
3575
3575
|
row: S,
|
|
3576
3576
|
column: K,
|
|
3577
|
-
index:
|
|
3577
|
+
index: ue
|
|
3578
3578
|
}, void 0, !0)
|
|
3579
|
-
], 64))), 256)) : Qe != null && Qe.startsWith("dropdown") && ((
|
|
3579
|
+
], 64))), 256)) : Qe != null && Qe.startsWith("dropdown") && ((st = we(S, K, ue, e.value)) != null && st.auth()) ? (p(), q(Me, O({
|
|
3580
3580
|
key: 1,
|
|
3581
3581
|
ref_for: !0
|
|
3582
|
-
},
|
|
3582
|
+
}, we(S, K, ue, e.value)), {
|
|
3583
3583
|
dropdown: E(() => [
|
|
3584
|
-
ae(
|
|
3584
|
+
ae(ge, null, {
|
|
3585
3585
|
default: E(() => [
|
|
3586
|
-
(p(!0),
|
|
3587
|
-
var ze, lt,
|
|
3588
|
-
return p(),
|
|
3589
|
-
a.$slots[
|
|
3586
|
+
(p(!0), R(le, null, X(Xe, (H) => {
|
|
3587
|
+
var ze, lt, vt;
|
|
3588
|
+
return p(), R(le, null, [
|
|
3589
|
+
a.$slots[H.name + "-left"] ? k(a.$slots, H.name + "-left", {
|
|
3590
3590
|
key: 0,
|
|
3591
3591
|
row: S,
|
|
3592
3592
|
column: K,
|
|
3593
|
-
index:
|
|
3594
|
-
}, void 0, !0) :
|
|
3595
|
-
|
|
3593
|
+
index: ue
|
|
3594
|
+
}, void 0, !0) : be("", !0),
|
|
3595
|
+
H.attr.auth() ? (p(), q(G, O({
|
|
3596
3596
|
key: 1,
|
|
3597
3597
|
ref_for: !0
|
|
3598
3598
|
}, {
|
|
3599
|
-
command: (ze =
|
|
3600
|
-
divided: (lt =
|
|
3601
|
-
disabled: (
|
|
3599
|
+
command: (ze = H == null ? void 0 : H.attr) == null ? void 0 : ze.command,
|
|
3600
|
+
divided: (lt = H == null ? void 0 : H.attr) == null ? void 0 : lt.divided,
|
|
3601
|
+
disabled: (vt = H == null ? void 0 : H.attr) == null ? void 0 : vt.disabled
|
|
3602
3602
|
}), {
|
|
3603
3603
|
default: E(() => [
|
|
3604
|
-
k(a.$slots,
|
|
3604
|
+
k(a.$slots, H.name, {
|
|
3605
3605
|
row: S,
|
|
3606
3606
|
column: K,
|
|
3607
|
-
index:
|
|
3607
|
+
index: ue
|
|
3608
3608
|
}, () => [
|
|
3609
|
-
|
|
3609
|
+
H.label ? (p(), q(N(Ye), O({
|
|
3610
3610
|
key: 0,
|
|
3611
|
-
title:
|
|
3611
|
+
title: H.label,
|
|
3612
3612
|
ref_for: !0
|
|
3613
|
-
},
|
|
3614
|
-
onClick: (
|
|
3613
|
+
}, H.attr, {
|
|
3614
|
+
onClick: (y) => H.func(S, K, ue, e.value)
|
|
3615
3615
|
}), {
|
|
3616
3616
|
default: E(() => [
|
|
3617
|
-
|
|
3617
|
+
Oe(Ce(H.label), 1)
|
|
3618
3618
|
]),
|
|
3619
3619
|
_: 2
|
|
3620
|
-
}, 1040, ["title", "onClick"])) : (p(), q(N(Ye),
|
|
3620
|
+
}, 1040, ["title", "onClick"])) : (p(), q(N(Ye), O({
|
|
3621
3621
|
key: 1,
|
|
3622
|
-
title:
|
|
3622
|
+
title: H.label,
|
|
3623
3623
|
ref_for: !0
|
|
3624
|
-
},
|
|
3625
|
-
onClick: (
|
|
3624
|
+
}, H.attr, {
|
|
3625
|
+
onClick: (y) => H.func(S, K, ue, e.value)
|
|
3626
3626
|
}), null, 16, ["title", "onClick"]))
|
|
3627
3627
|
], !0)
|
|
3628
3628
|
]),
|
|
3629
3629
|
_: 2
|
|
3630
|
-
}, 1040)) :
|
|
3631
|
-
a.$slots[
|
|
3630
|
+
}, 1040)) : be("", !0),
|
|
3631
|
+
a.$slots[H.name + "-right"] ? k(a.$slots, H.name + "-right", {
|
|
3632
3632
|
key: 2,
|
|
3633
3633
|
row: S,
|
|
3634
3634
|
column: K,
|
|
3635
|
-
index:
|
|
3636
|
-
}, void 0, !0) :
|
|
3635
|
+
index: ue
|
|
3636
|
+
}, void 0, !0) : be("", !0)
|
|
3637
3637
|
], 64);
|
|
3638
3638
|
}), 256))
|
|
3639
3639
|
]),
|
|
@@ -3641,49 +3641,49 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
3641
3641
|
}, 1024)
|
|
3642
3642
|
]),
|
|
3643
3643
|
default: E(() => {
|
|
3644
|
-
var
|
|
3644
|
+
var H;
|
|
3645
3645
|
return [
|
|
3646
|
-
|
|
3646
|
+
Oe(Ce((H = we(S, K, ue, e.value)) == null ? void 0 : H.label) + " ", 1)
|
|
3647
3647
|
];
|
|
3648
3648
|
}),
|
|
3649
3649
|
_: 2
|
|
3650
|
-
}, 1040)) : (p(), q(
|
|
3650
|
+
}, 1040)) : (p(), q(U, { key: 2 }, {
|
|
3651
3651
|
default: E(() => [
|
|
3652
|
-
(p(!0),
|
|
3653
|
-
k(a.$slots,
|
|
3652
|
+
(p(!0), R(le, null, X(Xe, (H) => (p(), R(le, null, [
|
|
3653
|
+
k(a.$slots, H.name + "-left", {
|
|
3654
3654
|
row: S,
|
|
3655
3655
|
column: K,
|
|
3656
|
-
index:
|
|
3656
|
+
index: ue
|
|
3657
3657
|
}, void 0, !0),
|
|
3658
|
-
|
|
3658
|
+
H.attr.auth() ? k(a.$slots, H.name, {
|
|
3659
3659
|
key: 0,
|
|
3660
3660
|
row: S,
|
|
3661
3661
|
column: K,
|
|
3662
|
-
index:
|
|
3662
|
+
index: ue
|
|
3663
3663
|
}, () => [
|
|
3664
|
-
|
|
3664
|
+
H.label ? (p(), q(N(Ye), O({
|
|
3665
3665
|
key: 0,
|
|
3666
|
-
title:
|
|
3666
|
+
title: H.label,
|
|
3667
3667
|
ref_for: !0
|
|
3668
|
-
},
|
|
3669
|
-
onClick: (ze) =>
|
|
3668
|
+
}, H.attr, {
|
|
3669
|
+
onClick: (ze) => H.func(S, K, ue, e.value)
|
|
3670
3670
|
}), {
|
|
3671
3671
|
default: E(() => [
|
|
3672
|
-
|
|
3672
|
+
Oe(Ce(H.label), 1)
|
|
3673
3673
|
]),
|
|
3674
3674
|
_: 2
|
|
3675
|
-
}, 1040, ["title", "onClick"])) : (p(), q(N(Ye),
|
|
3675
|
+
}, 1040, ["title", "onClick"])) : (p(), q(N(Ye), O({
|
|
3676
3676
|
key: 1,
|
|
3677
|
-
title:
|
|
3677
|
+
title: H.label,
|
|
3678
3678
|
ref_for: !0
|
|
3679
|
-
},
|
|
3680
|
-
onClick: (ze) =>
|
|
3679
|
+
}, H.attr, {
|
|
3680
|
+
onClick: (ze) => H.func(S, K, ue, e.value)
|
|
3681
3681
|
}), null, 16, ["title", "onClick"]))
|
|
3682
|
-
], !0) :
|
|
3683
|
-
k(a.$slots,
|
|
3682
|
+
], !0) : be("", !0),
|
|
3683
|
+
k(a.$slots, H.name + "-right", {
|
|
3684
3684
|
row: S,
|
|
3685
3685
|
column: K,
|
|
3686
|
-
index:
|
|
3686
|
+
index: ue
|
|
3687
3687
|
}, void 0, !0)
|
|
3688
3688
|
], 64))), 256))
|
|
3689
3689
|
]),
|
|
@@ -3694,58 +3694,59 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
3694
3694
|
k(a.$slots, "control-right", {
|
|
3695
3695
|
row: S,
|
|
3696
3696
|
column: K,
|
|
3697
|
-
index:
|
|
3697
|
+
index: ue
|
|
3698
3698
|
}, void 0, !0)
|
|
3699
3699
|
], !0)
|
|
3700
3700
|
], 6)
|
|
3701
3701
|
];
|
|
3702
3702
|
}),
|
|
3703
3703
|
key: "1"
|
|
3704
|
-
} :
|
|
3704
|
+
} : P.type != "selection" && P.type != "index" ? {
|
|
3705
3705
|
name: "default",
|
|
3706
|
-
fn: E(({ row: S, column: K, $index:
|
|
3707
|
-
|
|
3706
|
+
fn: E(({ row: S, column: K, $index: ue }) => [
|
|
3707
|
+
C(P, S, K, ue) && ue != -1 ? k(a.$slots, `${ie}`, {
|
|
3708
3708
|
key: 0,
|
|
3709
3709
|
row: S,
|
|
3710
3710
|
column: K,
|
|
3711
|
-
index:
|
|
3711
|
+
index: ue
|
|
3712
3712
|
}, () => {
|
|
3713
3713
|
var et;
|
|
3714
3714
|
return [
|
|
3715
|
-
|
|
3716
|
-
modelValue: S[
|
|
3717
|
-
"onUpdate:modelValue": (tt) => S[
|
|
3718
|
-
item:
|
|
3719
|
-
ctrlKey:
|
|
3720
|
-
|
|
3715
|
+
(p(), q(Dt, {
|
|
3716
|
+
modelValue: S[ie],
|
|
3717
|
+
"onUpdate:modelValue": (tt) => S[ie] = tt,
|
|
3718
|
+
item: P == null ? void 0 : P.table(S, K, ue),
|
|
3719
|
+
ctrlKey: ie,
|
|
3720
|
+
key: `${ie}-${ue} -${Q.value}`,
|
|
3721
|
+
ctrlType: (et = P.table(S, K, ue)) != null && et.type ? P.table(S, K, ue).type : P.type,
|
|
3721
3722
|
model: e.value,
|
|
3722
3723
|
class: "g-ctrl-container",
|
|
3723
3724
|
t: "t",
|
|
3724
3725
|
formInfo: S
|
|
3725
3726
|
}, $e({ _: 2 }, [
|
|
3726
|
-
|
|
3727
|
+
X(a.$slots, (tt, Xe) => ({
|
|
3727
3728
|
name: Xe,
|
|
3728
3729
|
fn: E((Qe) => [
|
|
3729
3730
|
k(a.$slots, Xe, {
|
|
3730
3731
|
data: Qe,
|
|
3731
|
-
item:
|
|
3732
|
+
item: P,
|
|
3732
3733
|
model: e.value
|
|
3733
3734
|
}, void 0, !0)
|
|
3734
3735
|
])
|
|
3735
3736
|
}))
|
|
3736
|
-
]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"])
|
|
3737
|
+
]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"]))
|
|
3737
3738
|
];
|
|
3738
|
-
}, !0) : k(a.$slots, `${
|
|
3739
|
+
}, !0) : k(a.$slots, `${ie}`, {
|
|
3739
3740
|
key: 1,
|
|
3740
3741
|
row: S,
|
|
3741
3742
|
column: K,
|
|
3742
|
-
index:
|
|
3743
|
+
index: ue
|
|
3743
3744
|
}, () => [
|
|
3744
3745
|
Z("div", {
|
|
3745
|
-
style:
|
|
3746
|
-
innerHTML:
|
|
3747
|
-
|
|
3748
|
-
K.formatter(S, K, S[
|
|
3746
|
+
style: Ue([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, P == null ? void 0 : P.style]),
|
|
3747
|
+
innerHTML: oe(
|
|
3748
|
+
P,
|
|
3749
|
+
K.formatter(S, K, S[ie], ue)
|
|
3749
3750
|
)
|
|
3750
3751
|
}, null, 12, za)
|
|
3751
3752
|
], !0)
|
|
@@ -3757,12 +3758,12 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
3757
3758
|
]),
|
|
3758
3759
|
_: 3
|
|
3759
3760
|
}, 16, ["summary-method"]),
|
|
3760
|
-
(
|
|
3761
|
-
ae(Ne,
|
|
3761
|
+
(ft = (bt = (gt = e.value) == null ? void 0 : gt.table) == null ? void 0 : bt.page) != null && ft.hidden ? be("", !0) : k(a.$slots, "page", { key: 0 }, () => [
|
|
3762
|
+
ae(Ne, O({
|
|
3762
3763
|
"page-size": e.value.table.page.pageSize,
|
|
3763
|
-
"onUpdate:pageSize": r[11] || (r[11] = (
|
|
3764
|
+
"onUpdate:pageSize": r[11] || (r[11] = (P) => e.value.table.page.pageSize = P),
|
|
3764
3765
|
"current-page": e.value.table.page.currentPage,
|
|
3765
|
-
"onUpdate:currentPage": r[12] || (r[12] = (
|
|
3766
|
+
"onUpdate:currentPage": r[12] || (r[12] = (P) => e.value.table.page.currentPage = P)
|
|
3766
3767
|
}, e.value.table.page), {
|
|
3767
3768
|
default: E(() => [
|
|
3768
3769
|
k(a.$slots, "table-page", {}, void 0, !0)
|
|
@@ -3775,7 +3776,7 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
3775
3776
|
], 64);
|
|
3776
3777
|
};
|
|
3777
3778
|
}
|
|
3778
|
-
}), Pa = /* @__PURE__ */ ut(Na, [["__scopeId", "data-v-
|
|
3779
|
+
}), Pa = /* @__PURE__ */ ut(Na, [["__scopeId", "data-v-76d93d82"]]), ja = { class: "g-tree-table" }, Wa = { class: "g-tree-container" }, Ga = { class: "g-tree-table-container" }, Xa = /* @__PURE__ */ Object.assign({
|
|
3779
3780
|
name: "g-tree-table",
|
|
3780
3781
|
inheritAttrs: !1
|
|
3781
3782
|
}, {
|
|
@@ -3786,73 +3787,73 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
3786
3787
|
},
|
|
3787
3788
|
emits: /* @__PURE__ */ ot(["load"], ["update:modelValue"]),
|
|
3788
3789
|
setup(n, { emit: d }) {
|
|
3789
|
-
var g, te,
|
|
3790
|
-
const t = d, l = nt(n, "modelValue"), o = Ot(), e =
|
|
3790
|
+
var g, te, L, Y;
|
|
3791
|
+
const t = d, l = nt(n, "modelValue"), o = Ot(), e = re(
|
|
3791
3792
|
typeof ((g = o == null ? void 0 : o.tree) == null ? void 0 : g.width) == "number" ? `${o.tree.width}px` : ((te = o == null ? void 0 : o.tree) == null ? void 0 : te.width) || "180px"
|
|
3792
|
-
), h =
|
|
3793
|
-
var
|
|
3794
|
-
if (!
|
|
3795
|
-
const
|
|
3796
|
-
return
|
|
3797
|
-
}, u = (
|
|
3798
|
-
t("load", f.value,
|
|
3799
|
-
}, i = (
|
|
3800
|
-
f.value =
|
|
3793
|
+
), h = re(((L = o == null ? void 0 : o.tree) == null ? void 0 : L.search) === void 0 ? !0 : (Y = o == null ? void 0 : o.tree) == null ? void 0 : Y.search), f = re({}), D = re(""), c = re(null), v = (M, Q) => {
|
|
3794
|
+
var me, se;
|
|
3795
|
+
if (!M) return !0;
|
|
3796
|
+
const de = ((se = (me = o.tree) == null ? void 0 : me.props) == null ? void 0 : se.label) || "label";
|
|
3797
|
+
return Q[de].includes(M);
|
|
3798
|
+
}, u = (M, Q) => {
|
|
3799
|
+
t("load", f.value, M, Q);
|
|
3800
|
+
}, i = (M) => {
|
|
3801
|
+
f.value = M, l.value.table.load();
|
|
3801
3802
|
};
|
|
3802
|
-
return hl(D, (
|
|
3803
|
-
c.value.filter(
|
|
3804
|
-
}), (
|
|
3805
|
-
const
|
|
3806
|
-
return p(),
|
|
3803
|
+
return hl(D, (M) => {
|
|
3804
|
+
c.value.filter(M);
|
|
3805
|
+
}), (M, Q) => {
|
|
3806
|
+
const de = z("el-input"), me = z("el-tree"), se = z("g-table");
|
|
3807
|
+
return p(), R("div", ja, [
|
|
3807
3808
|
Z("div", {
|
|
3808
3809
|
class: "g-tree-left",
|
|
3809
|
-
style:
|
|
3810
|
+
style: Ue({ width: e.value })
|
|
3810
3811
|
}, [
|
|
3811
|
-
h.value ? (p(), q(
|
|
3812
|
+
h.value ? (p(), q(de, {
|
|
3812
3813
|
key: 0,
|
|
3813
3814
|
modelValue: D.value,
|
|
3814
|
-
"onUpdate:modelValue":
|
|
3815
|
+
"onUpdate:modelValue": Q[0] || (Q[0] = (ce) => D.value = ce),
|
|
3815
3816
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
3816
3817
|
placeholder: "输入节点查询",
|
|
3817
3818
|
clearable: ""
|
|
3818
|
-
}, null, 8, ["modelValue"])) :
|
|
3819
|
+
}, null, 8, ["modelValue"])) : be("", !0),
|
|
3819
3820
|
Z("div", Wa, [
|
|
3820
|
-
ae(
|
|
3821
|
+
ae(me, O({
|
|
3821
3822
|
style: { width: e.value },
|
|
3822
3823
|
"filter-node-method": v,
|
|
3823
3824
|
"expand-on-click-node": !1,
|
|
3824
3825
|
ref_key: "treeRef",
|
|
3825
3826
|
ref: c,
|
|
3826
3827
|
onNodeClick: i
|
|
3827
|
-
},
|
|
3828
|
-
default: E(({ node:
|
|
3829
|
-
k(
|
|
3830
|
-
node:
|
|
3831
|
-
data:
|
|
3828
|
+
}, M.$attrs.tree), $e({
|
|
3829
|
+
default: E(({ node: ce, data: we }) => [
|
|
3830
|
+
k(M.$slots, "tree", {
|
|
3831
|
+
node: ce,
|
|
3832
|
+
data: we
|
|
3832
3833
|
}, () => [
|
|
3833
|
-
Z("span", null,
|
|
3834
|
+
Z("span", null, Ce(ce.label), 1)
|
|
3834
3835
|
], !0)
|
|
3835
3836
|
]),
|
|
3836
3837
|
_: 2
|
|
3837
3838
|
}, [
|
|
3838
|
-
|
|
3839
|
-
name:
|
|
3840
|
-
fn: E((
|
|
3841
|
-
k(
|
|
3839
|
+
X(M.$slots, (ce, we, Fe) => ({
|
|
3840
|
+
name: we,
|
|
3841
|
+
fn: E((xe) => [
|
|
3842
|
+
k(M.$slots, we, { data: xe }, void 0, !0)
|
|
3842
3843
|
])
|
|
3843
3844
|
}))
|
|
3844
3845
|
]), 1040, ["style"])
|
|
3845
3846
|
])
|
|
3846
3847
|
], 4),
|
|
3847
3848
|
Z("div", Ga, [
|
|
3848
|
-
ae(
|
|
3849
|
+
ae(se, O({
|
|
3849
3850
|
modelValue: l.value,
|
|
3850
|
-
"onUpdate:modelValue":
|
|
3851
|
-
},
|
|
3852
|
-
|
|
3853
|
-
name:
|
|
3854
|
-
fn: E((
|
|
3855
|
-
k(
|
|
3851
|
+
"onUpdate:modelValue": Q[1] || (Q[1] = (ce) => l.value = ce)
|
|
3852
|
+
}, M.$attrs, { onLoad: u }), $e({ _: 2 }, [
|
|
3853
|
+
X(M.$slots, (ce, we, Fe) => ({
|
|
3854
|
+
name: we,
|
|
3855
|
+
fn: E((xe) => [
|
|
3856
|
+
k(M.$slots, we, { data: xe }, void 0, !0)
|
|
3856
3857
|
])
|
|
3857
3858
|
}))
|
|
3858
3859
|
]), 1040, ["modelValue"])
|
|
@@ -3889,23 +3890,23 @@ const Ta = /* @__PURE__ */ Qt(Ma), Fa = { key: 0 }, Va = { style: { display: "fl
|
|
|
3889
3890
|
},
|
|
3890
3891
|
setup(n) {
|
|
3891
3892
|
const d = n;
|
|
3892
|
-
return (t, l) => d.title ? (p(),
|
|
3893
|
-
(p(!0),
|
|
3894
|
-
style:
|
|
3893
|
+
return (t, l) => d.title ? (p(), R("div", Za, [
|
|
3894
|
+
(p(!0), R(le, null, X(d.columns, (o) => (p(), R("span", {
|
|
3895
|
+
style: Ue({ width: (o == null ? void 0 : o.width) || Yt, ...o == null ? void 0 : o.titleStyle, textAlign: (o == null ? void 0 : o.align) || "center" }),
|
|
3895
3896
|
key: o.key
|
|
3896
3897
|
}, [
|
|
3897
3898
|
k(t.$slots, `${n.t}-title-${o.key}`, { col: o }, () => [
|
|
3898
|
-
|
|
3899
|
+
Oe(Ce(o.label), 1)
|
|
3899
3900
|
], !0)
|
|
3900
3901
|
], 4))), 128))
|
|
3901
|
-
])) : (p(),
|
|
3902
|
-
(p(!0),
|
|
3903
|
-
style:
|
|
3902
|
+
])) : (p(), R("div", Ja, [
|
|
3903
|
+
(p(!0), R(le, null, X(d.columns, (o) => (p(), R("span", {
|
|
3904
|
+
style: Ue({ width: (o == null ? void 0 : o.width) || Yt, textAlign: (o == null ? void 0 : o.align) || "center", ...o == null ? void 0 : o.style }),
|
|
3904
3905
|
key: o.key,
|
|
3905
3906
|
title: n.data[o.key]
|
|
3906
3907
|
}, [
|
|
3907
3908
|
k(t.$slots, `${n.t}-option-${o.key}`, { col: o }, () => [
|
|
3908
|
-
|
|
3909
|
+
Oe(Ce(n.data[o.key] ?? "-"), 1)
|
|
3909
3910
|
], !0)
|
|
3910
3911
|
], 12, Ka))), 128))
|
|
3911
3912
|
]));
|
|
@@ -3927,7 +3928,7 @@ const mr = {
|
|
|
3927
3928
|
const o = ar(d);
|
|
3928
3929
|
if (!o) return () => {
|
|
3929
3930
|
};
|
|
3930
|
-
const e =
|
|
3931
|
+
const e = re(!0), h = yl({
|
|
3931
3932
|
setup() {
|
|
3932
3933
|
return l = () => {
|
|
3933
3934
|
e.value = !1, setTimeout(() => {
|
|
@@ -3935,7 +3936,7 @@ const mr = {
|
|
|
3935
3936
|
}, 300);
|
|
3936
3937
|
}, () => {
|
|
3937
3938
|
var f, D, c;
|
|
3938
|
-
return
|
|
3939
|
+
return Ee(o, {
|
|
3939
3940
|
modelValue: e.value,
|
|
3940
3941
|
"onUpdate:modelValue": (v) => e.value = v,
|
|
3941
3942
|
appendToBody: !0,
|
|
@@ -3986,7 +3987,7 @@ function al(n, d = window.innerWidth) {
|
|
|
3986
3987
|
}
|
|
3987
3988
|
throw new Error("Unsupported unit in value: " + n);
|
|
3988
3989
|
}
|
|
3989
|
-
const
|
|
3990
|
+
const Ie = (...n) => {
|
|
3990
3991
|
const d = {}, t = (l, o) => (Object.keys(o).forEach((e) => {
|
|
3991
3992
|
l[e] = typeof o[e] == "object" && !Array.isArray(o[e]) ? t(l[e] || {}, o[e]) : o[e];
|
|
3992
3993
|
}), l);
|
|
@@ -4056,7 +4057,7 @@ function hr(n, d) {
|
|
|
4056
4057
|
}, d));
|
|
4057
4058
|
};
|
|
4058
4059
|
}
|
|
4059
|
-
const
|
|
4060
|
+
const ke = {
|
|
4060
4061
|
RADIO: "radio",
|
|
4061
4062
|
RADIOBUTTON: "radio-button",
|
|
4062
4063
|
CHECKBOX: "checkbox",
|
|
@@ -4085,7 +4086,7 @@ const _e = {
|
|
|
4085
4086
|
TEXTAREA: "textarea",
|
|
4086
4087
|
TEL: "tel"
|
|
4087
4088
|
}, Ct = () => {
|
|
4088
|
-
|
|
4089
|
+
mt(() => {
|
|
4089
4090
|
const n = document.querySelector(".el-dialog");
|
|
4090
4091
|
if (!n || n.querySelector(".dialog-resize-handle"))
|
|
4091
4092
|
return;
|
|
@@ -4126,7 +4127,7 @@ const _e = {
|
|
|
4126
4127
|
d.addEventListener("mousedown", f);
|
|
4127
4128
|
};
|
|
4128
4129
|
export {
|
|
4129
|
-
|
|
4130
|
+
ke as CT,
|
|
4130
4131
|
Ct as bindResize,
|
|
4131
4132
|
al as convertToPx,
|
|
4132
4133
|
nr as debounce,
|
|
@@ -4134,7 +4135,7 @@ export {
|
|
|
4134
4135
|
Je as filterObject,
|
|
4135
4136
|
rr as findTreeLabelByValue,
|
|
4136
4137
|
or as formatAmount,
|
|
4137
|
-
|
|
4138
|
+
Ie as mergeObjects,
|
|
4138
4139
|
Bt as moneyToChinese,
|
|
4139
4140
|
qt as openModal,
|
|
4140
4141
|
hr as throttle
|