vue-2024-ui 0.1.27 → 0.1.29
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 +997 -990
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { mergeModels as
|
|
3
|
-
import { Plus as
|
|
4
|
-
import
|
|
5
|
-
import { Dexie as
|
|
6
|
-
var
|
|
1
|
+
import Yt, { ElForm as dt, ElButtonGroup as ft, ElButton as Me, ElPopover as ht, ElMessage as Ie, ElMessageBox as xt, ElDialog as Ut, ElDrawer as Rt } from "element-plus";
|
|
2
|
+
import { mergeModels as Ne, useModel as We, ref as le, nextTick as tt, onMounted as rt, computed as Ke, resolveComponent as I, openBlock as u, createElementBlock as F, Fragment as X, createElementVNode as W, createBlock as C, createCommentVNode as me, unref as j, mergeProps as x, withCtx as h, renderSlot as y, renderList as L, createTextVNode as Te, toDisplayString as be, createSlots as fe, createVNode as G, normalizeStyle as Se, normalizeProps as gt, useSlots as Tt, inject as _t, useAttrs as kt, onUnmounted as jt, withModifiers as ct, resolveDynamicComponent as Ue, guardReactiveProps as Lt, Transition as zt, withDirectives as Ht, vShow as Pt, h as Ae, onBeforeUnmount as Nt, normalizeClass as St, watchEffect as Wt, onActivated as Xt, watch as Gt, createApp as Qt } from "vue";
|
|
3
|
+
import { Plus as Zt, ZoomIn as Jt, Delete as Kt, DocumentCopy as el, FullScreen as tl, CopyDocument as ll } from "@element-plus/icons-vue";
|
|
4
|
+
import Ft from "sortablejs";
|
|
5
|
+
import { Dexie as al } from "dexie";
|
|
6
|
+
var ol = {
|
|
7
7
|
name: "zh-cn",
|
|
8
8
|
el: {
|
|
9
9
|
breadcrumb: {
|
|
@@ -181,64 +181,64 @@ var al = {
|
|
|
181
181
|
indicator: "幻灯片切换至索引 {index}"
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
},
|
|
185
|
-
function
|
|
184
|
+
}, rl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
185
|
+
function ul(f) {
|
|
186
186
|
return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var qt = { exports: {} };
|
|
189
189
|
(function(f, i) {
|
|
190
190
|
(function(o, t) {
|
|
191
191
|
f.exports = t();
|
|
192
|
-
})(
|
|
193
|
-
var o = 1e3, t = 6e4, e = 36e5, d = "millisecond", k = "second",
|
|
194
|
-
var s = ["th", "st", "nd", "rd"], a =
|
|
195
|
-
return "[" +
|
|
196
|
-
} }, we = function(
|
|
197
|
-
var _ = String(
|
|
198
|
-
return !_ || _.length >= s ?
|
|
199
|
-
}, he = { s: we, z: function(
|
|
200
|
-
var s = -
|
|
192
|
+
})(rl, function() {
|
|
193
|
+
var o = 1e3, t = 6e4, e = 36e5, d = "millisecond", k = "second", T = "minute", V = "hour", D = "day", w = "week", z = "month", ee = "quarter", B = "year", U = "date", se = "Invalid Date", re = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, K = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, ce = { 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(m) {
|
|
194
|
+
var s = ["th", "st", "nd", "rd"], a = m % 100;
|
|
195
|
+
return "[" + m + (s[(a - 20) % 10] || s[a] || s[0]) + "]";
|
|
196
|
+
} }, we = function(m, s, a) {
|
|
197
|
+
var _ = String(m);
|
|
198
|
+
return !_ || _.length >= s ? m : "" + Array(s + 1 - _.length).join(a) + m;
|
|
199
|
+
}, he = { s: we, z: function(m) {
|
|
200
|
+
var s = -m.utcOffset(), a = Math.abs(s), _ = Math.floor(a / 60), n = a % 60;
|
|
201
201
|
return (s <= 0 ? "+" : "-") + we(_, 2, "0") + ":" + we(n, 2, "0");
|
|
202
|
-
}, m: function
|
|
203
|
-
if (s.date() < a.date()) return -
|
|
204
|
-
var _ = 12 * (a.year() - s.year()) + (a.month() - s.month()), n = s.clone().add(_,
|
|
202
|
+
}, m: function m(s, a) {
|
|
203
|
+
if (s.date() < a.date()) return -m(a, s);
|
|
204
|
+
var _ = 12 * (a.year() - s.year()) + (a.month() - s.month()), n = s.clone().add(_, z), b = a - n < 0, M = s.clone().add(_ + (b ? -1 : 1), z);
|
|
205
205
|
return +(-(_ + (a - n) / (b ? n - M : M - n)) || 0);
|
|
206
|
-
}, a: function(
|
|
207
|
-
return
|
|
208
|
-
}, p: function(
|
|
209
|
-
return { M:
|
|
210
|
-
}, u: function(
|
|
211
|
-
return
|
|
212
|
-
} }, pe = "en",
|
|
213
|
-
|
|
214
|
-
var
|
|
215
|
-
return
|
|
216
|
-
}, $e = function
|
|
206
|
+
}, a: function(m) {
|
|
207
|
+
return m < 0 ? Math.ceil(m) || 0 : Math.floor(m);
|
|
208
|
+
}, p: function(m) {
|
|
209
|
+
return { M: z, y: B, w, d: D, D: U, h: V, m: T, s: k, ms: d, Q: ee }[m] || String(m || "").toLowerCase().replace(/s$/, "");
|
|
210
|
+
}, u: function(m) {
|
|
211
|
+
return m === void 0;
|
|
212
|
+
} }, pe = "en", ie = {};
|
|
213
|
+
ie[pe] = ce;
|
|
214
|
+
var ue = "$isDayjsObject", ae = function(m) {
|
|
215
|
+
return m instanceof E || !(!m || !m[ue]);
|
|
216
|
+
}, $e = function m(s, a, _) {
|
|
217
217
|
var n;
|
|
218
218
|
if (!s) return pe;
|
|
219
219
|
if (typeof s == "string") {
|
|
220
220
|
var b = s.toLowerCase();
|
|
221
|
-
|
|
221
|
+
ie[b] && (n = b), a && (ie[b] = a, n = b);
|
|
222
222
|
var M = s.split("-");
|
|
223
|
-
if (!n && M.length > 1) return
|
|
223
|
+
if (!n && M.length > 1) return m(M[0]);
|
|
224
224
|
} else {
|
|
225
225
|
var q = s.name;
|
|
226
|
-
|
|
226
|
+
ie[q] = s, n = q;
|
|
227
227
|
}
|
|
228
228
|
return !_ && n && (pe = n), n || !_ && pe;
|
|
229
|
-
},
|
|
230
|
-
if (
|
|
229
|
+
}, ne = function(m, s) {
|
|
230
|
+
if (ae(m)) return m.clone();
|
|
231
231
|
var a = typeof s == "object" ? s : {};
|
|
232
|
-
return a.date =
|
|
232
|
+
return a.date = m, a.args = arguments, new E(a);
|
|
233
233
|
}, g = he;
|
|
234
|
-
g.l = $e, g.i =
|
|
235
|
-
return
|
|
234
|
+
g.l = $e, g.i = ae, g.w = function(m, s) {
|
|
235
|
+
return ne(m, { locale: s.$L, utc: s.$u, x: s.$x, $offset: s.$offset });
|
|
236
236
|
};
|
|
237
237
|
var E = function() {
|
|
238
|
-
function
|
|
239
|
-
this.$L = $e(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[
|
|
238
|
+
function m(a) {
|
|
239
|
+
this.$L = $e(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[ue] = !0;
|
|
240
240
|
}
|
|
241
|
-
var s =
|
|
241
|
+
var s = m.prototype;
|
|
242
242
|
return s.parse = function(a) {
|
|
243
243
|
this.$d = function(_) {
|
|
244
244
|
var n = _.date, b = _.utc;
|
|
@@ -246,10 +246,10 @@ var Ft = { exports: {} };
|
|
|
246
246
|
if (g.u(n)) return /* @__PURE__ */ new Date();
|
|
247
247
|
if (n instanceof Date) return new Date(n);
|
|
248
248
|
if (typeof n == "string" && !/Z$/i.test(n)) {
|
|
249
|
-
var M = n.match(
|
|
249
|
+
var M = n.match(re);
|
|
250
250
|
if (M) {
|
|
251
|
-
var q = M[2] - 1 || 0,
|
|
252
|
-
return b ? new Date(Date.UTC(M[1], q, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0,
|
|
251
|
+
var q = M[2] - 1 || 0, oe = (M[7] || "0").substring(0, 3);
|
|
252
|
+
return b ? new Date(Date.UTC(M[1], q, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, oe)) : new Date(M[1], q, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, oe);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
return new Date(n);
|
|
@@ -260,14 +260,14 @@ var Ft = { exports: {} };
|
|
|
260
260
|
}, s.$utils = function() {
|
|
261
261
|
return g;
|
|
262
262
|
}, s.isValid = function() {
|
|
263
|
-
return this.$d.toString() !==
|
|
263
|
+
return this.$d.toString() !== se;
|
|
264
264
|
}, s.isSame = function(a, _) {
|
|
265
|
-
var n =
|
|
265
|
+
var n = ne(a);
|
|
266
266
|
return this.startOf(_) <= n && n <= this.endOf(_);
|
|
267
267
|
}, s.isAfter = function(a, _) {
|
|
268
|
-
return
|
|
268
|
+
return ne(a) < this.startOf(_);
|
|
269
269
|
}, s.isBefore = function(a, _) {
|
|
270
|
-
return this.endOf(_) <
|
|
270
|
+
return this.endOf(_) < ne(a);
|
|
271
271
|
}, s.$g = function(a, _, n) {
|
|
272
272
|
return g.u(a) ? this[_] : this.set(n, a);
|
|
273
273
|
}, s.unix = function() {
|
|
@@ -276,39 +276,39 @@ var Ft = { exports: {} };
|
|
|
276
276
|
return this.$d.getTime();
|
|
277
277
|
}, s.startOf = function(a, _) {
|
|
278
278
|
var n = this, b = !!g.u(_) || _, M = g.p(a), q = function(De, ye) {
|
|
279
|
-
var
|
|
280
|
-
return b ?
|
|
281
|
-
},
|
|
279
|
+
var Fe = g.w(n.$u ? Date.UTC(n.$y, ye, De) : new Date(n.$y, ye, De), n);
|
|
280
|
+
return b ? Fe : Fe.endOf(D);
|
|
281
|
+
}, oe = function(De, ye) {
|
|
282
282
|
return g.w(n.toDate()[De].apply(n.toDate("s"), (b ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ye)), n);
|
|
283
|
-
},
|
|
283
|
+
}, de = this.$W, R = this.$M, O = this.$D, Ce = "set" + (this.$u ? "UTC" : "");
|
|
284
284
|
switch (M) {
|
|
285
|
-
case
|
|
285
|
+
case B:
|
|
286
286
|
return b ? q(1, 0) : q(31, 11);
|
|
287
|
-
case
|
|
287
|
+
case z:
|
|
288
288
|
return b ? q(1, R) : q(0, R + 1);
|
|
289
289
|
case w:
|
|
290
|
-
var _e = this.$locale().weekStart || 0, Ve = (
|
|
290
|
+
var _e = this.$locale().weekStart || 0, Ve = (de < _e ? de + 7 : de) - _e;
|
|
291
291
|
return q(b ? O - Ve : O + (6 - Ve), R);
|
|
292
292
|
case D:
|
|
293
|
-
case
|
|
294
|
-
return
|
|
293
|
+
case U:
|
|
294
|
+
return oe(Ce + "Hours", 0);
|
|
295
295
|
case V:
|
|
296
|
-
return
|
|
297
|
-
case
|
|
298
|
-
return
|
|
296
|
+
return oe(Ce + "Minutes", 1);
|
|
297
|
+
case T:
|
|
298
|
+
return oe(Ce + "Seconds", 2);
|
|
299
299
|
case k:
|
|
300
|
-
return
|
|
300
|
+
return oe(Ce + "Milliseconds", 3);
|
|
301
301
|
default:
|
|
302
302
|
return this.clone();
|
|
303
303
|
}
|
|
304
304
|
}, s.endOf = function(a) {
|
|
305
305
|
return this.startOf(a, !1);
|
|
306
306
|
}, s.$set = function(a, _) {
|
|
307
|
-
var n, b = g.p(a), M = "set" + (this.$u ? "UTC" : ""), q = (n = {}, n[D] = M + "Date", n[
|
|
308
|
-
if (b ===
|
|
309
|
-
var
|
|
310
|
-
|
|
311
|
-
} else q && this.$d[q](
|
|
307
|
+
var n, b = g.p(a), M = "set" + (this.$u ? "UTC" : ""), q = (n = {}, n[D] = M + "Date", n[U] = M + "Date", n[z] = M + "Month", n[B] = M + "FullYear", n[V] = M + "Hours", n[T] = M + "Minutes", n[k] = M + "Seconds", n[d] = M + "Milliseconds", n)[b], oe = b === D ? this.$D + (_ - this.$W) : _;
|
|
308
|
+
if (b === z || b === B) {
|
|
309
|
+
var de = this.clone().set(U, 1);
|
|
310
|
+
de.$d[q](oe), de.init(), this.$d = de.set(U, Math.min(this.$D, de.daysInMonth())).$d;
|
|
311
|
+
} else q && this.$d[q](oe);
|
|
312
312
|
return this.init(), this;
|
|
313
313
|
}, s.set = function(a, _) {
|
|
314
314
|
return this.clone().$set(a, _);
|
|
@@ -318,43 +318,43 @@ var Ft = { exports: {} };
|
|
|
318
318
|
var n, b = this;
|
|
319
319
|
a = Number(a);
|
|
320
320
|
var M = g.p(_), q = function(R) {
|
|
321
|
-
var O =
|
|
321
|
+
var O = ne(b);
|
|
322
322
|
return g.w(O.date(O.date() + Math.round(R * a)), b);
|
|
323
323
|
};
|
|
324
|
-
if (M ===
|
|
325
|
-
if (M ===
|
|
324
|
+
if (M === z) return this.set(z, this.$M + a);
|
|
325
|
+
if (M === B) return this.set(B, this.$y + a);
|
|
326
326
|
if (M === D) return q(1);
|
|
327
327
|
if (M === w) return q(7);
|
|
328
|
-
var
|
|
329
|
-
return g.w(
|
|
328
|
+
var oe = (n = {}, n[T] = t, n[V] = e, n[k] = o, n)[M] || 1, de = this.$d.getTime() + a * oe;
|
|
329
|
+
return g.w(de, this);
|
|
330
330
|
}, s.subtract = function(a, _) {
|
|
331
331
|
return this.add(-1 * a, _);
|
|
332
332
|
}, s.format = function(a) {
|
|
333
333
|
var _ = this, n = this.$locale();
|
|
334
|
-
if (!this.isValid()) return n.invalidDate ||
|
|
335
|
-
var b = a || "YYYY-MM-DDTHH:mm:ssZ", M = g.z(this), q = this.$H,
|
|
336
|
-
return ye && (ye[
|
|
334
|
+
if (!this.isValid()) return n.invalidDate || se;
|
|
335
|
+
var b = a || "YYYY-MM-DDTHH:mm:ssZ", M = g.z(this), q = this.$H, oe = this.$m, de = this.$M, R = n.weekdays, O = n.months, Ce = n.meridiem, _e = function(ye, Fe, Be, Re) {
|
|
336
|
+
return ye && (ye[Fe] || ye(_, b)) || Be[Fe].slice(0, Re);
|
|
337
337
|
}, Ve = function(ye) {
|
|
338
338
|
return g.s(q % 12 || 12, ye, "0");
|
|
339
|
-
}, De = Ce || function(ye,
|
|
340
|
-
var
|
|
341
|
-
return
|
|
339
|
+
}, De = Ce || function(ye, Fe, Be) {
|
|
340
|
+
var Re = ye < 12 ? "AM" : "PM";
|
|
341
|
+
return Be ? Re.toLowerCase() : Re;
|
|
342
342
|
};
|
|
343
|
-
return b.replace(
|
|
344
|
-
return
|
|
345
|
-
switch (
|
|
343
|
+
return b.replace(K, function(ye, Fe) {
|
|
344
|
+
return Fe || function(Be) {
|
|
345
|
+
switch (Be) {
|
|
346
346
|
case "YY":
|
|
347
347
|
return String(_.$y).slice(-2);
|
|
348
348
|
case "YYYY":
|
|
349
349
|
return g.s(_.$y, 4, "0");
|
|
350
350
|
case "M":
|
|
351
|
-
return
|
|
351
|
+
return de + 1;
|
|
352
352
|
case "MM":
|
|
353
|
-
return g.s(
|
|
353
|
+
return g.s(de + 1, 2, "0");
|
|
354
354
|
case "MMM":
|
|
355
|
-
return _e(n.monthsShort,
|
|
355
|
+
return _e(n.monthsShort, de, O, 3);
|
|
356
356
|
case "MMMM":
|
|
357
|
-
return _e(O,
|
|
357
|
+
return _e(O, de);
|
|
358
358
|
case "D":
|
|
359
359
|
return _.$D;
|
|
360
360
|
case "DD":
|
|
@@ -376,13 +376,13 @@ var Ft = { exports: {} };
|
|
|
376
376
|
case "hh":
|
|
377
377
|
return Ve(2);
|
|
378
378
|
case "a":
|
|
379
|
-
return De(q,
|
|
379
|
+
return De(q, oe, !0);
|
|
380
380
|
case "A":
|
|
381
|
-
return De(q,
|
|
381
|
+
return De(q, oe, !1);
|
|
382
382
|
case "m":
|
|
383
|
-
return String(
|
|
383
|
+
return String(oe);
|
|
384
384
|
case "mm":
|
|
385
|
-
return g.s(
|
|
385
|
+
return g.s(oe, 2, "0");
|
|
386
386
|
case "s":
|
|
387
387
|
return String(_.$s);
|
|
388
388
|
case "ss":
|
|
@@ -398,29 +398,29 @@ var Ft = { exports: {} };
|
|
|
398
398
|
}, s.utcOffset = function() {
|
|
399
399
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
400
400
|
}, s.diff = function(a, _, n) {
|
|
401
|
-
var b, M = this, q = g.p(_),
|
|
402
|
-
return g.m(M,
|
|
401
|
+
var b, M = this, q = g.p(_), oe = ne(a), de = (oe.utcOffset() - this.utcOffset()) * t, R = this - oe, O = function() {
|
|
402
|
+
return g.m(M, oe);
|
|
403
403
|
};
|
|
404
404
|
switch (q) {
|
|
405
|
-
case
|
|
405
|
+
case B:
|
|
406
406
|
b = O() / 12;
|
|
407
407
|
break;
|
|
408
|
-
case
|
|
408
|
+
case z:
|
|
409
409
|
b = O();
|
|
410
410
|
break;
|
|
411
|
-
case
|
|
411
|
+
case ee:
|
|
412
412
|
b = O() / 3;
|
|
413
413
|
break;
|
|
414
414
|
case w:
|
|
415
|
-
b = (R -
|
|
415
|
+
b = (R - de) / 6048e5;
|
|
416
416
|
break;
|
|
417
417
|
case D:
|
|
418
|
-
b = (R -
|
|
418
|
+
b = (R - de) / 864e5;
|
|
419
419
|
break;
|
|
420
420
|
case V:
|
|
421
421
|
b = R / e;
|
|
422
422
|
break;
|
|
423
|
-
case
|
|
423
|
+
case T:
|
|
424
424
|
b = R / t;
|
|
425
425
|
break;
|
|
426
426
|
case k:
|
|
@@ -431,9 +431,9 @@ var Ft = { exports: {} };
|
|
|
431
431
|
}
|
|
432
432
|
return n ? b : g.a(b);
|
|
433
433
|
}, s.daysInMonth = function() {
|
|
434
|
-
return this.endOf(
|
|
434
|
+
return this.endOf(z).$D;
|
|
435
435
|
}, s.$locale = function() {
|
|
436
|
-
return
|
|
436
|
+
return ie[this.$L];
|
|
437
437
|
}, s.locale = function(a, _) {
|
|
438
438
|
if (!a) return this.$L;
|
|
439
439
|
var n = this.clone(), b = $e(a, _, !0);
|
|
@@ -448,21 +448,21 @@ var Ft = { exports: {} };
|
|
|
448
448
|
return this.$d.toISOString();
|
|
449
449
|
}, s.toString = function() {
|
|
450
450
|
return this.$d.toUTCString();
|
|
451
|
-
},
|
|
451
|
+
}, m;
|
|
452
452
|
}(), v = E.prototype;
|
|
453
|
-
return
|
|
454
|
-
v[
|
|
455
|
-
return this.$g(s,
|
|
453
|
+
return ne.prototype = v, [["$ms", d], ["$s", k], ["$m", T], ["$H", V], ["$W", D], ["$M", z], ["$y", B], ["$D", U]].forEach(function(m) {
|
|
454
|
+
v[m[1]] = function(s) {
|
|
455
|
+
return this.$g(s, m[0], m[1]);
|
|
456
456
|
};
|
|
457
|
-
}),
|
|
458
|
-
return
|
|
459
|
-
},
|
|
460
|
-
return
|
|
461
|
-
},
|
|
457
|
+
}), ne.extend = function(m, s) {
|
|
458
|
+
return m.$i || (m(s, E, ne), m.$i = !0), ne;
|
|
459
|
+
}, ne.locale = $e, ne.isDayjs = ae, ne.unix = function(m) {
|
|
460
|
+
return ne(1e3 * m);
|
|
461
|
+
}, ne.en = ie[pe], ne.Ls = ie, ne.p = {}, ne;
|
|
462
462
|
});
|
|
463
|
-
})(
|
|
464
|
-
var
|
|
465
|
-
const
|
|
463
|
+
})(qt);
|
|
464
|
+
var nl = qt.exports;
|
|
465
|
+
const yt = /* @__PURE__ */ ul(nl), Ot = {
|
|
466
466
|
inline: !0,
|
|
467
467
|
type: "hidden",
|
|
468
468
|
"scroll-to-error": !0,
|
|
@@ -504,32 +504,32 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
504
504
|
type: "card",
|
|
505
505
|
editable: !1
|
|
506
506
|
}
|
|
507
|
-
},
|
|
507
|
+
}, Xe = (f, i) => {
|
|
508
508
|
const o = f.__vccOpts || f;
|
|
509
509
|
for (const [t, e] of i)
|
|
510
510
|
o[t] = e;
|
|
511
511
|
return o;
|
|
512
|
-
},
|
|
512
|
+
}, sl = {
|
|
513
513
|
style: { display: "flex", width: "100%" },
|
|
514
514
|
class: "g-ctrl-container"
|
|
515
|
-
},
|
|
515
|
+
}, il = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, dl = {
|
|
516
516
|
key: 19,
|
|
517
517
|
style: { position: "relative" }
|
|
518
|
-
},
|
|
518
|
+
}, fl = ["title"], cl = { key: 22 }, ml = ["innerHTML"], pl = ["innerHTML"], vl = ["innerHTML"], hl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
519
519
|
__name: "g-ctrl",
|
|
520
|
-
props: /* @__PURE__ */
|
|
520
|
+
props: /* @__PURE__ */ Ne(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
521
521
|
modelValue: { required: !0 },
|
|
522
522
|
modelModifiers: {}
|
|
523
523
|
}),
|
|
524
524
|
emits: ["update:modelValue"],
|
|
525
525
|
setup(f) {
|
|
526
|
-
var $e,
|
|
527
|
-
const i =
|
|
526
|
+
var $e, ne;
|
|
527
|
+
const i = We(f, "modelValue"), o = f, t = le(o.item || {}), e = le(o.ctrlKey), d = le(o.ctrlType), k = le(o.model), T = le([]), V = le([]), D = le(!1), w = le(!1), z = () => Object.keys(Tt()).filter((g) => g.startsWith(`${o.t}-${e}-`)).map((g) => g.replace(`${o.t}-${e}-`, "")), ee = le({
|
|
528
528
|
multiple: !1,
|
|
529
529
|
"show-file-list": !1,
|
|
530
530
|
"file-list": [],
|
|
531
|
-
showDel: ($e = t.value) != null && $e.showDel ? (
|
|
532
|
-
}),
|
|
531
|
+
showDel: ($e = t.value) != null && $e.showDel ? (ne = t.value) == null ? void 0 : ne.showDel : o.t !== "t"
|
|
532
|
+
}), B = le(t.value.innerHtml), U = (g) => [
|
|
533
533
|
"year",
|
|
534
534
|
"years",
|
|
535
535
|
"month",
|
|
@@ -542,7 +542,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
542
542
|
"daterange",
|
|
543
543
|
"monthrange",
|
|
544
544
|
"yearrange"
|
|
545
|
-
].includes(g),
|
|
545
|
+
].includes(g), se = (g) => ({
|
|
546
546
|
year: "YYYY",
|
|
547
547
|
years: "YYYY",
|
|
548
548
|
month: "YYYY-MM",
|
|
@@ -556,29 +556,29 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
556
556
|
daterange: "YYYY-MM-DD",
|
|
557
557
|
monthrange: "YYYY-MM",
|
|
558
558
|
yearrange: "YYYY"
|
|
559
|
-
})[g] || "YYYY-MM-DD",
|
|
559
|
+
})[g] || "YYYY-MM-DD", re = le({
|
|
560
560
|
filterable: !0,
|
|
561
561
|
remote: !!(t.value && t.value["remote-method"]),
|
|
562
562
|
...t.value
|
|
563
|
-
}),
|
|
563
|
+
}), K = le((g) => {
|
|
564
564
|
t.value["remote-method"](g, (E) => {
|
|
565
|
-
|
|
565
|
+
tt(() => {
|
|
566
566
|
V.value = E;
|
|
567
567
|
});
|
|
568
568
|
});
|
|
569
|
-
}),
|
|
569
|
+
}), ce = async (g = "options") => {
|
|
570
570
|
var E;
|
|
571
571
|
try {
|
|
572
572
|
const v = await ((E = t.value) == null ? void 0 : E.getDicts(o.formInfo));
|
|
573
573
|
if (typeof v == "string")
|
|
574
574
|
V.value = [{ label: v, value: i.value }];
|
|
575
575
|
else {
|
|
576
|
-
const
|
|
576
|
+
const m = v == null ? void 0 : v.map((s, a) => ({
|
|
577
577
|
...s,
|
|
578
578
|
value: s.value ?? s.label ?? a,
|
|
579
579
|
label: s.label || "未知选项"
|
|
580
580
|
}));
|
|
581
|
-
V.value =
|
|
581
|
+
V.value = m || [];
|
|
582
582
|
}
|
|
583
583
|
} catch (v) {
|
|
584
584
|
throw console.error("获取选项失败:", v), v;
|
|
@@ -590,20 +590,20 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
590
590
|
g.preventDefault(), g.stopPropagation(), i.value = "";
|
|
591
591
|
}, pe = (g) => {
|
|
592
592
|
D.value = !0;
|
|
593
|
-
},
|
|
593
|
+
}, ie = (g) => {
|
|
594
594
|
g.preventDefault(), g.stopPropagation(), D.value = !0;
|
|
595
|
-
},
|
|
596
|
-
|
|
597
|
-
var v,
|
|
598
|
-
t.value && t.value["remote-method"] && (
|
|
595
|
+
}, ue = le(null);
|
|
596
|
+
rt(async () => {
|
|
597
|
+
var v, m, s, a, _;
|
|
598
|
+
t.value && t.value["remote-method"] && (re.value["remote-method"] = K), (m = (v = k.value[e.value]) == null ? void 0 : v.options) != null && m.length && (V.value = k.value[e.value].options);
|
|
599
599
|
const g = (n, b = "options", M = k.value[e.value]) => {
|
|
600
|
-
typeof t.value.getDicts == "function" &&
|
|
600
|
+
typeof t.value.getDicts == "function" && ce(b).catch((q) => {
|
|
601
601
|
console.error(`Failed to load ${b} for ${n}:`, q);
|
|
602
602
|
});
|
|
603
603
|
};
|
|
604
604
|
if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(d.value) && g(d.value), d.value === ge.TREESELECT && await (async () => {
|
|
605
605
|
try {
|
|
606
|
-
typeof t.value.getDicts == "function" ?
|
|
606
|
+
typeof t.value.getDicts == "function" ? T.value = await t.value.getDicts(o.formInfo) : T.value = V.value;
|
|
607
607
|
} catch (b) {
|
|
608
608
|
console.error("Failed to load data for tree-select:", b);
|
|
609
609
|
}
|
|
@@ -633,35 +633,35 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
633
633
|
(q = (M = k.value) == null ? void 0 : M.table) == null || q.load();
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
|
-
d.value == "image" && (t.value.width && ((s =
|
|
636
|
+
d.value == "image" && (t.value.width && ((s = ue.value) != null && s.$el) && ue.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && ((a = ue.value) != null && a.$el) && ue.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((_ = ue.value) != null && _.$el) && ue.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
|
|
637
637
|
});
|
|
638
|
-
const
|
|
638
|
+
const ae = Ke(() => {
|
|
639
639
|
var g;
|
|
640
640
|
return t.value["file-list"] && t.value["file-list"].length ? (g = t.value["file-list"]) == null ? void 0 : g.map((E) => E == null ? void 0 : E.url) : [i.value];
|
|
641
641
|
});
|
|
642
642
|
return (g, E) => {
|
|
643
|
-
var N, Z, Ee, ke,
|
|
644
|
-
const v =
|
|
643
|
+
var P, N, Z, Ee, ke, je, Le, ze, Ge;
|
|
644
|
+
const v = I("el-image-viewer"), m = I("el-radio"), s = I("el-radio-group"), a = I("el-radio-button"), _ = I("el-checkbox"), n = I("el-checkbox-group"), b = I("el-checkbox-button"), M = I("g-select-option"), q = I("el-option"), oe = I("el-select"), de = I("el-tree-select"), R = I("el-time-picker"), O = I("el-time-select"), Ce = I("el-date-picker"), _e = I("el-color-picker"), Ve = I("el-rate"), De = I("el-slider"), ye = I("el-switch"), Fe = I("el-transfer"), Be = I("el-cascader"), Re = I("el-icon"), ut = I("el-image"), lt = I("el-tooltip"), nt = I("el-upload"), st = I("el-autocomplete"), it = I("el-input-number"), at = I("el-input"), l = I("el-link"), r = I("el-text"), p = I("el-avatar"), S = I("el-tag");
|
|
645
645
|
return u(), F(X, null, [
|
|
646
646
|
W("div", null, [
|
|
647
647
|
D.value ? (u(), C(v, {
|
|
648
648
|
key: 0,
|
|
649
649
|
teleported: !0,
|
|
650
|
-
"url-list":
|
|
651
|
-
onClose: E[0] || (E[0] = (
|
|
650
|
+
"url-list": ae.value,
|
|
651
|
+
onClose: E[0] || (E[0] = (c) => D.value = !1)
|
|
652
652
|
}, null, 8, ["url-list"])) : me("", !0)
|
|
653
653
|
]),
|
|
654
|
-
W("div",
|
|
654
|
+
W("div", sl, [
|
|
655
655
|
d.value == j(ge).RADIO ? (u(), C(s, x({
|
|
656
656
|
key: 0,
|
|
657
657
|
modelValue: i.value,
|
|
658
|
-
"onUpdate:modelValue": E[1] || (E[1] = (
|
|
658
|
+
"onUpdate:modelValue": E[1] || (E[1] = (c) => i.value = c)
|
|
659
659
|
}, t.value), {
|
|
660
660
|
default: h(() => [
|
|
661
661
|
y(g.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
|
|
662
|
-
(u(!0), F(X, null, L(V.value, (
|
|
662
|
+
(u(!0), F(X, null, L(V.value, (c) => (u(), C(m, x({ ref_for: !0 }, c), {
|
|
663
663
|
default: h(() => [
|
|
664
|
-
y(g.$slots, `${o.t}-${e.value}-options`, { option:
|
|
664
|
+
y(g.$slots, `${o.t}-${e.value}-options`, { option: c }, void 0, !0)
|
|
665
665
|
]),
|
|
666
666
|
_: 2
|
|
667
667
|
}, 1040))), 256))
|
|
@@ -671,13 +671,13 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
671
671
|
}, 16, ["modelValue"])) : d.value == j(ge).RADIOBUTTON ? (u(), C(s, x({
|
|
672
672
|
key: 1,
|
|
673
673
|
modelValue: i.value,
|
|
674
|
-
"onUpdate:modelValue": E[2] || (E[2] = (
|
|
674
|
+
"onUpdate:modelValue": E[2] || (E[2] = (c) => i.value = c)
|
|
675
675
|
}, t.value), {
|
|
676
676
|
default: h(() => [
|
|
677
677
|
y(g.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
|
|
678
|
-
(u(!0), F(X, null, L(V.value, (
|
|
678
|
+
(u(!0), F(X, null, L(V.value, (c) => (u(), C(a, x({ ref_for: !0 }, c), {
|
|
679
679
|
default: h(() => [
|
|
680
|
-
y(g.$slots, `${o.t}-${e.value}-options`, { option:
|
|
680
|
+
y(g.$slots, `${o.t}-${e.value}-options`, { option: c }, void 0, !0)
|
|
681
681
|
]),
|
|
682
682
|
_: 2
|
|
683
683
|
}, 1040))), 256))
|
|
@@ -687,25 +687,25 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
687
687
|
}, 16, ["modelValue"])) : d.value == j(ge).CHECKBOX ? (u(), C(_, x({
|
|
688
688
|
key: 2,
|
|
689
689
|
modelValue: i.value,
|
|
690
|
-
"onUpdate:modelValue": E[3] || (E[3] = (
|
|
690
|
+
"onUpdate:modelValue": E[3] || (E[3] = (c) => i.value = c)
|
|
691
691
|
}, t.value), {
|
|
692
692
|
default: h(() => [
|
|
693
693
|
y(g.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
|
|
694
|
-
E[27] || (E[27] =
|
|
694
|
+
E[27] || (E[27] = Te(be(" ")))
|
|
695
695
|
], !0)
|
|
696
696
|
]),
|
|
697
697
|
_: 3
|
|
698
698
|
}, 16, ["modelValue"])) : d.value == j(ge).CHECKBOXGROUP ? (u(), C(n, x({
|
|
699
699
|
key: 3,
|
|
700
700
|
modelValue: i.value,
|
|
701
|
-
"onUpdate:modelValue": E[4] || (E[4] = (
|
|
701
|
+
"onUpdate:modelValue": E[4] || (E[4] = (c) => i.value = c)
|
|
702
702
|
}, t.value), {
|
|
703
703
|
default: h(() => [
|
|
704
704
|
y(g.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
|
|
705
|
-
(u(!0), F(X, null, L(V.value, (
|
|
705
|
+
(u(!0), F(X, null, L(V.value, (c) => (u(), C(_, x({ ref_for: !0 }, c), {
|
|
706
706
|
default: h(() => [
|
|
707
|
-
y(g.$slots, `${o.t}-${e.value}-options`, { option:
|
|
708
|
-
|
|
707
|
+
y(g.$slots, `${o.t}-${e.value}-options`, { option: c }, () => [
|
|
708
|
+
Te(be(c.label), 1)
|
|
709
709
|
], !0)
|
|
710
710
|
]),
|
|
711
711
|
_: 2
|
|
@@ -716,37 +716,37 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
716
716
|
}, 16, ["modelValue"])) : d.value == j(ge).CHECKBOXGROUPBUTTON ? (u(), C(n, x({
|
|
717
717
|
key: 4,
|
|
718
718
|
modelValue: i.value,
|
|
719
|
-
"onUpdate:modelValue": E[5] || (E[5] = (
|
|
719
|
+
"onUpdate:modelValue": E[5] || (E[5] = (c) => i.value = c)
|
|
720
720
|
}, t.value), {
|
|
721
721
|
default: h(() => [
|
|
722
722
|
y(g.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
|
|
723
|
-
(u(!0), F(X, null, L(V.value, (
|
|
723
|
+
(u(!0), F(X, null, L(V.value, (c) => (u(), C(b, x({ ref_for: !0 }, c), {
|
|
724
724
|
default: h(() => [
|
|
725
|
-
y(g.$slots, `${o.t}-${e.value}-options`, { option:
|
|
725
|
+
y(g.$slots, `${o.t}-${e.value}-options`, { option: c }, void 0, !0)
|
|
726
726
|
]),
|
|
727
727
|
_: 2
|
|
728
728
|
}, 1040))), 256))
|
|
729
729
|
], !0)
|
|
730
730
|
]),
|
|
731
731
|
_: 3
|
|
732
|
-
}, 16, ["modelValue"])) : d.value === j(ge).SELECT ? (u(), C(
|
|
732
|
+
}, 16, ["modelValue"])) : d.value === j(ge).SELECT ? (u(), C(oe, x({
|
|
733
733
|
key: 5,
|
|
734
734
|
modelValue: i.value,
|
|
735
|
-
"onUpdate:modelValue": E[6] || (E[6] = (
|
|
735
|
+
"onUpdate:modelValue": E[6] || (E[6] = (c) => i.value = c),
|
|
736
736
|
placeholder: k.value[e.value].label,
|
|
737
737
|
clearable: !0,
|
|
738
738
|
onClear: E[7] || (E[7] = () => {
|
|
739
739
|
o.t == "q" && k.value.table.load();
|
|
740
740
|
})
|
|
741
|
-
},
|
|
741
|
+
}, re.value), fe({
|
|
742
742
|
default: h(() => [
|
|
743
743
|
y(g.$slots, `${o.t}-${e.value}`, { options: V.value }, () => [
|
|
744
|
-
(u(!0), F(X, null, L(V.value, (
|
|
745
|
-
key:
|
|
744
|
+
(u(!0), F(X, null, L(V.value, (c) => (u(), F(X, {
|
|
745
|
+
key: c.value
|
|
746
746
|
}, [
|
|
747
|
-
G(q, x({ ref_for: !0 }, j(
|
|
747
|
+
G(q, x({ ref_for: !0 }, j(qe)(c, (Q) => Q != "children"), {
|
|
748
748
|
onClick: (Q) => {
|
|
749
|
-
|
|
749
|
+
re.value.change && re.value.change(c), we();
|
|
750
750
|
}
|
|
751
751
|
}), {
|
|
752
752
|
default: h(() => {
|
|
@@ -754,21 +754,21 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
754
754
|
return [
|
|
755
755
|
(Q = t.value) != null && Q.columns ? y(g.$slots, `${o.t}-${e.value}-options`, {
|
|
756
756
|
key: 0,
|
|
757
|
-
option:
|
|
757
|
+
option: c
|
|
758
758
|
}, () => {
|
|
759
759
|
var ve;
|
|
760
760
|
return [
|
|
761
761
|
G(M, {
|
|
762
762
|
columns: (ve = t.value) == null ? void 0 : ve.columns,
|
|
763
|
-
data:
|
|
763
|
+
data: c,
|
|
764
764
|
t: o.t
|
|
765
|
-
},
|
|
766
|
-
L(g.$slots, (
|
|
767
|
-
name:
|
|
768
|
-
fn: h((
|
|
769
|
-
y(g.$slots,
|
|
770
|
-
option:
|
|
771
|
-
data:
|
|
765
|
+
}, fe({ _: 2 }, [
|
|
766
|
+
L(g.$slots, (Ye, Y) => ({
|
|
767
|
+
name: Y,
|
|
768
|
+
fn: h((te) => [
|
|
769
|
+
y(g.$slots, Y, {
|
|
770
|
+
option: c,
|
|
771
|
+
data: te
|
|
772
772
|
}, void 0, !0)
|
|
773
773
|
])
|
|
774
774
|
}))
|
|
@@ -779,13 +779,13 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
779
779
|
}),
|
|
780
780
|
_: 2
|
|
781
781
|
}, 1040, ["onClick"]),
|
|
782
|
-
|
|
782
|
+
c.children && c.children.length ? (u(!0), F(X, { key: 0 }, L(c.children, (Q) => (u(), C(q, x({
|
|
783
783
|
style: { "margin-left": "20px" },
|
|
784
784
|
key: Q.value,
|
|
785
785
|
ref_for: !0
|
|
786
|
-
}, j(
|
|
786
|
+
}, j(qe)(Q, (ve) => ve != "children"), {
|
|
787
787
|
onClick: (ve) => {
|
|
788
|
-
|
|
788
|
+
re.value.change && re.value.change(Q), we();
|
|
789
789
|
}
|
|
790
790
|
}), {
|
|
791
791
|
default: h(() => {
|
|
@@ -795,19 +795,19 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
795
795
|
key: 0,
|
|
796
796
|
option: Q
|
|
797
797
|
}, () => {
|
|
798
|
-
var
|
|
798
|
+
var Ye;
|
|
799
799
|
return [
|
|
800
800
|
G(M, {
|
|
801
|
-
columns: (
|
|
801
|
+
columns: (Ye = t.value) == null ? void 0 : Ye.columns,
|
|
802
802
|
data: Q,
|
|
803
803
|
t: o.t
|
|
804
|
-
},
|
|
805
|
-
L(g.$slots, (
|
|
806
|
-
name:
|
|
807
|
-
fn: h((
|
|
808
|
-
y(g.$slots,
|
|
804
|
+
}, fe({ _: 2 }, [
|
|
805
|
+
L(g.$slots, (Y, te) => ({
|
|
806
|
+
name: te,
|
|
807
|
+
fn: h(($) => [
|
|
808
|
+
y(g.$slots, te, {
|
|
809
809
|
option: Q,
|
|
810
|
-
data:
|
|
810
|
+
data: $
|
|
811
811
|
}, void 0, !0)
|
|
812
812
|
])
|
|
813
813
|
}))
|
|
@@ -823,20 +823,20 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
823
823
|
]),
|
|
824
824
|
_: 2
|
|
825
825
|
}, [
|
|
826
|
-
(
|
|
826
|
+
(P = t.value) != null && P.columns ? {
|
|
827
827
|
name: "header",
|
|
828
828
|
fn: h(() => {
|
|
829
|
-
var
|
|
829
|
+
var c;
|
|
830
830
|
return [
|
|
831
831
|
G(M, {
|
|
832
|
-
columns: (
|
|
832
|
+
columns: (c = t.value) == null ? void 0 : c.columns,
|
|
833
833
|
title: !0,
|
|
834
834
|
t: o.t
|
|
835
|
-
},
|
|
835
|
+
}, fe({ _: 2 }, [
|
|
836
836
|
L(g.$slots, (Q, ve) => ({
|
|
837
837
|
name: ve,
|
|
838
|
-
fn: h((
|
|
839
|
-
y(g.$slots, ve, { data:
|
|
838
|
+
fn: h((Ye) => [
|
|
839
|
+
y(g.$slots, ve, { data: Ye }, void 0, !0)
|
|
840
840
|
])
|
|
841
841
|
}))
|
|
842
842
|
]), 1032, ["columns", "t"])
|
|
@@ -844,127 +844,127 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
844
844
|
}),
|
|
845
845
|
key: "0"
|
|
846
846
|
} : void 0,
|
|
847
|
-
L(
|
|
848
|
-
name:
|
|
847
|
+
L(z(), (c) => ({
|
|
848
|
+
name: c,
|
|
849
849
|
fn: h((Q) => [
|
|
850
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
850
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: Q }, void 0, !0)
|
|
851
851
|
])
|
|
852
852
|
}))
|
|
853
|
-
]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).TREESELECT ? (u(), C(
|
|
853
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).TREESELECT ? (u(), C(de, x({
|
|
854
854
|
key: 6,
|
|
855
855
|
modelValue: i.value,
|
|
856
|
-
"onUpdate:modelValue": E[8] || (E[8] = (
|
|
856
|
+
"onUpdate:modelValue": E[8] || (E[8] = (c) => i.value = c),
|
|
857
857
|
placeholder: k.value[e.value].label
|
|
858
|
-
}, t.value, { data:
|
|
859
|
-
L(
|
|
860
|
-
name:
|
|
858
|
+
}, t.value, { data: T.value }), fe({ _: 2 }, [
|
|
859
|
+
L(z(), (c) => ({
|
|
860
|
+
name: c,
|
|
861
861
|
fn: h((Q) => [
|
|
862
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
862
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: Q }, void 0, !0)
|
|
863
863
|
])
|
|
864
864
|
}))
|
|
865
865
|
]), 1040, ["modelValue", "placeholder", "data"])) : d.value == j(ge).TIME ? (u(), C(R, x({
|
|
866
866
|
key: 7,
|
|
867
867
|
modelValue: i.value,
|
|
868
|
-
"onUpdate:modelValue": E[9] || (E[9] = (
|
|
868
|
+
"onUpdate:modelValue": E[9] || (E[9] = (c) => i.value = c),
|
|
869
869
|
"arrow-control": ""
|
|
870
870
|
}, t.value, {
|
|
871
871
|
placeholder: k.value[e.value].label
|
|
872
872
|
}), null, 16, ["modelValue", "placeholder"])) : d.value == j(ge).TIMESELECT ? (u(), C(O, x({
|
|
873
873
|
key: 8,
|
|
874
874
|
modelValue: i.value,
|
|
875
|
-
"onUpdate:modelValue": E[10] || (E[10] = (
|
|
875
|
+
"onUpdate:modelValue": E[10] || (E[10] = (c) => i.value = c),
|
|
876
876
|
start: "06:30",
|
|
877
877
|
step: "00:15",
|
|
878
878
|
end: "23:30",
|
|
879
879
|
placeholder: k.value[e.value].label
|
|
880
|
-
}, t.value), null, 16, ["modelValue", "placeholder"])) :
|
|
880
|
+
}, t.value), null, 16, ["modelValue", "placeholder"])) : U(d.value) ? (u(), C(Ce, x({
|
|
881
881
|
key: 9,
|
|
882
882
|
modelValue: i.value,
|
|
883
|
-
"onUpdate:modelValue": E[11] || (E[11] = (
|
|
883
|
+
"onUpdate:modelValue": E[11] || (E[11] = (c) => i.value = c),
|
|
884
884
|
type: d.value,
|
|
885
885
|
placeholder: k.value[e.value].label,
|
|
886
|
-
"value-format":
|
|
887
|
-
}, t.value),
|
|
888
|
-
L(
|
|
889
|
-
name:
|
|
886
|
+
"value-format": se(d.value)
|
|
887
|
+
}, t.value), fe({ _: 2 }, [
|
|
888
|
+
L(z(), (c) => ({
|
|
889
|
+
name: c,
|
|
890
890
|
fn: h((Q) => [
|
|
891
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
891
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: Q }, void 0, !0)
|
|
892
892
|
])
|
|
893
893
|
}))
|
|
894
894
|
]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : d.value == j(ge).COLOR ? (u(), C(_e, x({
|
|
895
895
|
key: 10,
|
|
896
896
|
modelValue: i.value,
|
|
897
|
-
"onUpdate:modelValue": E[12] || (E[12] = (
|
|
897
|
+
"onUpdate:modelValue": E[12] || (E[12] = (c) => i.value = c)
|
|
898
898
|
}, t.value), null, 16, ["modelValue"])) : d.value == j(ge).RATE ? (u(), C(Ve, x({
|
|
899
899
|
key: 11,
|
|
900
900
|
modelValue: i.value,
|
|
901
|
-
"onUpdate:modelValue": E[13] || (E[13] = (
|
|
901
|
+
"onUpdate:modelValue": E[13] || (E[13] = (c) => i.value = c)
|
|
902
902
|
}, t.value), null, 16, ["modelValue"])) : d.value == j(ge).SLIDER ? (u(), C(De, x({
|
|
903
903
|
key: 12,
|
|
904
904
|
modelValue: i.value,
|
|
905
|
-
"onUpdate:modelValue": E[14] || (E[14] = (
|
|
905
|
+
"onUpdate:modelValue": E[14] || (E[14] = (c) => i.value = c)
|
|
906
906
|
}, t.value), null, 16, ["modelValue"])) : d.value == j(ge).SWITCH ? (u(), C(ye, x({
|
|
907
907
|
key: 13,
|
|
908
908
|
modelValue: i.value,
|
|
909
|
-
"onUpdate:modelValue": E[15] || (E[15] = (
|
|
909
|
+
"onUpdate:modelValue": E[15] || (E[15] = (c) => i.value = c),
|
|
910
910
|
inlinePrompt: !0
|
|
911
|
-
}, t.value),
|
|
912
|
-
L(
|
|
913
|
-
name:
|
|
911
|
+
}, t.value), fe({ _: 2 }, [
|
|
912
|
+
L(z(), (c) => ({
|
|
913
|
+
name: c,
|
|
914
914
|
fn: h((Q) => [
|
|
915
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
915
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: Q }, void 0, !0)
|
|
916
916
|
])
|
|
917
917
|
}))
|
|
918
|
-
]), 1040, ["modelValue"])) : d.value == j(ge).TRANSFER ? (u(), C(
|
|
918
|
+
]), 1040, ["modelValue"])) : d.value == j(ge).TRANSFER ? (u(), C(Fe, x({
|
|
919
919
|
key: 14,
|
|
920
920
|
modelValue: i.value,
|
|
921
|
-
"onUpdate:modelValue": E[16] || (E[16] = (
|
|
922
|
-
}, t.value),
|
|
923
|
-
L(
|
|
924
|
-
name:
|
|
921
|
+
"onUpdate:modelValue": E[16] || (E[16] = (c) => i.value = c)
|
|
922
|
+
}, t.value), fe({ _: 2 }, [
|
|
923
|
+
L(z(), (c) => ({
|
|
924
|
+
name: c,
|
|
925
925
|
fn: h((Q) => [
|
|
926
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
926
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: Q }, void 0, !0)
|
|
927
927
|
])
|
|
928
928
|
}))
|
|
929
|
-
]), 1040, ["modelValue"])) : d.value == j(ge).CASCADER ? (u(), C(
|
|
929
|
+
]), 1040, ["modelValue"])) : d.value == j(ge).CASCADER ? (u(), C(Be, x({
|
|
930
930
|
key: 15,
|
|
931
931
|
modelValue: i.value,
|
|
932
|
-
"onUpdate:modelValue": E[17] || (E[17] = (
|
|
933
|
-
}, t.value, { options: V.value }),
|
|
934
|
-
L(
|
|
935
|
-
name:
|
|
932
|
+
"onUpdate:modelValue": E[17] || (E[17] = (c) => i.value = c)
|
|
933
|
+
}, t.value, { options: V.value }), fe({ _: 2 }, [
|
|
934
|
+
L(z(), (c) => ({
|
|
935
|
+
name: c,
|
|
936
936
|
fn: h((Q) => [
|
|
937
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
937
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: Q }, void 0, !0)
|
|
938
938
|
])
|
|
939
939
|
}))
|
|
940
|
-
]), 1040, ["modelValue", "options"])) : d.value == j(ge).IMAGE ? (u(), C(
|
|
940
|
+
]), 1040, ["modelValue", "options"])) : d.value == j(ge).IMAGE ? (u(), C(nt, x({
|
|
941
941
|
key: 16,
|
|
942
942
|
"file-list": t.value["file-list"],
|
|
943
|
-
"onUpdate:fileList": E[21] || (E[21] = (
|
|
943
|
+
"onUpdate:fileList": E[21] || (E[21] = (c) => t.value["file-list"] = c),
|
|
944
944
|
"list-type": "picture-card",
|
|
945
945
|
class: "custom-upload",
|
|
946
946
|
"on-preview": pe
|
|
947
|
-
}, { ...
|
|
947
|
+
}, { ...ee.value, ...t.value }, {
|
|
948
948
|
ref_key: "uploadRef",
|
|
949
|
-
ref:
|
|
950
|
-
}),
|
|
949
|
+
ref: ue
|
|
950
|
+
}), fe({
|
|
951
951
|
default: h(() => {
|
|
952
|
-
var
|
|
952
|
+
var c;
|
|
953
953
|
return [
|
|
954
954
|
i.value ? (u(), F("div", {
|
|
955
955
|
key: 1,
|
|
956
956
|
onClick: E[20] || (E[20] = (Q) => Q.stopPropagation()),
|
|
957
957
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
958
958
|
}, [
|
|
959
|
-
W("div",
|
|
960
|
-
G(
|
|
959
|
+
W("div", il, [
|
|
960
|
+
G(ut, x({
|
|
961
961
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
962
962
|
src: i.value
|
|
963
|
-
}, { fit: "cover", lazy: !0, ...(
|
|
964
|
-
L(
|
|
963
|
+
}, { fit: "cover", lazy: !0, ...(c = t.value) == null ? void 0 : c.img }), fe({ _: 2 }, [
|
|
964
|
+
L(z(), (Q, ve) => ({
|
|
965
965
|
name: Q,
|
|
966
|
-
fn: h((
|
|
967
|
-
y(g.$slots, `${o.t}-${e.value}-${Q}`, { data:
|
|
966
|
+
fn: h((Ye) => [
|
|
967
|
+
y(g.$slots, `${o.t}-${e.value}-${Q}`, { data: Ye }, void 0, !0)
|
|
968
968
|
])
|
|
969
969
|
}))
|
|
970
970
|
]), 1040, ["src"])
|
|
@@ -975,27 +975,27 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
975
975
|
onMouseleave: E[19] || (E[19] = (Q) => w.value = !1),
|
|
976
976
|
class: "up-view"
|
|
977
977
|
}, [
|
|
978
|
-
w.value ? (u(), C(
|
|
978
|
+
w.value ? (u(), C(lt, {
|
|
979
979
|
key: 0,
|
|
980
980
|
content: "查看大图",
|
|
981
981
|
placement: "top"
|
|
982
982
|
}, {
|
|
983
983
|
default: h(() => [
|
|
984
|
-
G(j(
|
|
984
|
+
G(j(Jt), {
|
|
985
985
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
986
986
|
color: "white",
|
|
987
|
-
onClick:
|
|
987
|
+
onClick: ie
|
|
988
988
|
})
|
|
989
989
|
]),
|
|
990
990
|
_: 1
|
|
991
991
|
})) : me("", !0),
|
|
992
|
-
|
|
992
|
+
ee.value.showDel && w.value ? (u(), C(lt, {
|
|
993
993
|
key: 1,
|
|
994
994
|
content: "删除",
|
|
995
995
|
placement: "top"
|
|
996
996
|
}, {
|
|
997
997
|
default: h(() => [
|
|
998
|
-
G(j(
|
|
998
|
+
G(j(Kt), {
|
|
999
999
|
style: { width: "1.5em", height: "1.5em" },
|
|
1000
1000
|
color: "white",
|
|
1001
1001
|
onClick: he
|
|
@@ -1004,9 +1004,9 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1004
1004
|
_: 1
|
|
1005
1005
|
})) : me("", !0)
|
|
1006
1006
|
], 32)
|
|
1007
|
-
])) : (u(), C(
|
|
1007
|
+
])) : (u(), C(Re, { key: 0 }, {
|
|
1008
1008
|
default: h(() => [
|
|
1009
|
-
G(j(
|
|
1009
|
+
G(j(Zt))
|
|
1010
1010
|
]),
|
|
1011
1011
|
_: 1
|
|
1012
1012
|
}))
|
|
@@ -1014,127 +1014,127 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1014
1014
|
}),
|
|
1015
1015
|
_: 2
|
|
1016
1016
|
}, [
|
|
1017
|
-
L(
|
|
1018
|
-
name:
|
|
1017
|
+
L(z(), (c, Q) => ({
|
|
1018
|
+
name: c,
|
|
1019
1019
|
fn: h((ve) => [
|
|
1020
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
1020
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: ve }, void 0, !0)
|
|
1021
1021
|
])
|
|
1022
1022
|
}))
|
|
1023
|
-
]), 1040, ["file-list"])) : d.value == j(ge).AUTOCOMPLETE ? (u(), C(
|
|
1023
|
+
]), 1040, ["file-list"])) : d.value == j(ge).AUTOCOMPLETE ? (u(), C(st, x({
|
|
1024
1024
|
key: 17,
|
|
1025
1025
|
modelValue: i.value,
|
|
1026
|
-
"onUpdate:modelValue": E[22] || (E[22] = (
|
|
1026
|
+
"onUpdate:modelValue": E[22] || (E[22] = (c) => i.value = c)
|
|
1027
1027
|
}, t.value, {
|
|
1028
1028
|
placeholder: k.value[e.value].label
|
|
1029
|
-
}),
|
|
1030
|
-
L(
|
|
1031
|
-
name:
|
|
1029
|
+
}), fe({ _: 2 }, [
|
|
1030
|
+
L(z(), (c, Q) => ({
|
|
1031
|
+
name: c,
|
|
1032
1032
|
fn: h((ve) => [
|
|
1033
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
1033
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: ve }, void 0, !0)
|
|
1034
1034
|
])
|
|
1035
1035
|
}))
|
|
1036
|
-
]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).INPUTNUMBER ? (u(), C(
|
|
1036
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).INPUTNUMBER ? (u(), C(it, x({
|
|
1037
1037
|
key: 18,
|
|
1038
1038
|
modelValue: i.value,
|
|
1039
|
-
"onUpdate:modelValue": E[23] || (E[23] = (
|
|
1039
|
+
"onUpdate:modelValue": E[23] || (E[23] = (c) => i.value = c),
|
|
1040
1040
|
min: 0,
|
|
1041
1041
|
max: 1e8,
|
|
1042
1042
|
placeholder: k.value[e.value].label
|
|
1043
|
-
}, t.value),
|
|
1044
|
-
L(
|
|
1045
|
-
name:
|
|
1043
|
+
}, t.value), fe({ _: 2 }, [
|
|
1044
|
+
L(z(), (c, Q) => ({
|
|
1045
|
+
name: c,
|
|
1046
1046
|
fn: h((ve) => [
|
|
1047
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
1047
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: ve }, void 0, !0)
|
|
1048
1048
|
])
|
|
1049
1049
|
}))
|
|
1050
|
-
]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).MONEY ? (u(), F("div",
|
|
1051
|
-
G(
|
|
1050
|
+
]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).MONEY ? (u(), F("div", dl, [
|
|
1051
|
+
G(at, x({
|
|
1052
1052
|
modelValue: i.value,
|
|
1053
|
-
"onUpdate:modelValue": E[24] || (E[24] = (
|
|
1053
|
+
"onUpdate:modelValue": E[24] || (E[24] = (c) => i.value = c),
|
|
1054
1054
|
placeholder: k.value[e.value].label,
|
|
1055
1055
|
type: j(ge).NUMBER,
|
|
1056
|
-
maxlength: ((
|
|
1057
|
-
}, { ...t.value, type: d.value }),
|
|
1056
|
+
maxlength: ((N = t.value) == null ? void 0 : N.max) || 25
|
|
1057
|
+
}, { ...t.value, type: d.value }), fe({
|
|
1058
1058
|
suffix: h(() => [
|
|
1059
1059
|
W("div", {
|
|
1060
|
-
title: j(
|
|
1060
|
+
title: j(Et)(i.value),
|
|
1061
1061
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1062
|
-
}, be(j(
|
|
1062
|
+
}, be(j(Et)(i.value)), 9, fl)
|
|
1063
1063
|
]),
|
|
1064
1064
|
_: 2
|
|
1065
1065
|
}, [
|
|
1066
|
-
L(
|
|
1067
|
-
name:
|
|
1066
|
+
L(z(), (c, Q) => ({
|
|
1067
|
+
name: c,
|
|
1068
1068
|
fn: h((ve) => [
|
|
1069
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
1069
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: ve }, void 0, !0)
|
|
1070
1070
|
])
|
|
1071
1071
|
}))
|
|
1072
1072
|
]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
|
|
1073
|
-
])) : (
|
|
1073
|
+
])) : (Z = d.value) != null && Z.startsWith("link") ? (u(), F("div", {
|
|
1074
1074
|
key: 20,
|
|
1075
|
-
style:
|
|
1075
|
+
style: Se([{ display: "flex", flex: "1", "justify-content": "center" }, ((Ee = t.value) == null ? void 0 : Ee.style) || {}])
|
|
1076
1076
|
}, [
|
|
1077
|
-
G(
|
|
1077
|
+
G(l, x(t.value, {
|
|
1078
1078
|
type: d.value.replace("link-", ""),
|
|
1079
|
-
innerHTML:
|
|
1079
|
+
innerHTML: B.value || i.value
|
|
1080
1080
|
}), null, 16, ["type", "innerHTML"])
|
|
1081
|
-
], 4)) : d.value != "textarea" && ((
|
|
1081
|
+
], 4)) : d.value != "textarea" && ((ke = d.value) != null && ke.startsWith("text")) ? (u(), F("div", {
|
|
1082
1082
|
key: 21,
|
|
1083
|
-
style:
|
|
1083
|
+
style: Se([{ display: "flex", flex: "1", "justify-content": "center" }, ((je = t.value) == null ? void 0 : je.style) || {}])
|
|
1084
1084
|
}, [
|
|
1085
|
-
G(
|
|
1085
|
+
G(r, x(t.value, {
|
|
1086
1086
|
type: d.value.replace("text-", ""),
|
|
1087
|
-
innerHTML:
|
|
1087
|
+
innerHTML: B.value || i.value
|
|
1088
1088
|
}), null, 16, ["type", "innerHTML"])
|
|
1089
|
-
], 4)) : d.value == "avatar" ? (u(), F("div",
|
|
1090
|
-
|
|
1089
|
+
], 4)) : d.value == "avatar" ? (u(), F("div", cl, [
|
|
1090
|
+
B.value ? (u(), C(p, gt(x({ key: 0 }, t.value)), {
|
|
1091
1091
|
default: h(() => [
|
|
1092
|
-
W("div", { innerHTML:
|
|
1092
|
+
W("div", { innerHTML: B.value }, null, 8, ml)
|
|
1093
1093
|
]),
|
|
1094
1094
|
_: 1
|
|
1095
|
-
}, 16)) : (u(), C(
|
|
1095
|
+
}, 16)) : (u(), C(p, gt(x({ key: 1 }, t.value)), null, 16))
|
|
1096
1096
|
])) : (Le = d.value) != null && Le.startsWith("tag") ? (u(), F("div", {
|
|
1097
1097
|
key: 23,
|
|
1098
|
-
style:
|
|
1098
|
+
style: Se([{ display: "flex", flex: "1", "justify-content": "center" }, ((ze = t.value) == null ? void 0 : ze.style) || {}])
|
|
1099
1099
|
}, [
|
|
1100
|
-
Array.isArray(
|
|
1101
|
-
typeof
|
|
1100
|
+
Array.isArray(B.value) && B.value.length > 0 ? (u(!0), F(X, { key: 0 }, L(B.value, (c, Q) => (u(), F(X, { key: Q }, [
|
|
1101
|
+
typeof c == "object" ? (u(), C(S, x({
|
|
1102
1102
|
key: 0,
|
|
1103
1103
|
ref_for: !0
|
|
1104
|
-
},
|
|
1105
|
-
innerHTML:
|
|
1104
|
+
}, c, {
|
|
1105
|
+
innerHTML: c == null ? void 0 : c.value,
|
|
1106
1106
|
style: { "margin-right": "3px" }
|
|
1107
|
-
}), null, 16, ["innerHTML"])) : (u(), C(
|
|
1107
|
+
}), null, 16, ["innerHTML"])) : (u(), C(S, x({
|
|
1108
1108
|
key: 1,
|
|
1109
1109
|
ref_for: !0
|
|
1110
1110
|
}, t.value, {
|
|
1111
1111
|
type: d.value.replace("tag-", ""),
|
|
1112
|
-
innerHTML:
|
|
1112
|
+
innerHTML: c,
|
|
1113
1113
|
style: { "margin-right": "3px" }
|
|
1114
1114
|
}), null, 16, ["type", "innerHTML"]))
|
|
1115
|
-
], 64))), 128)) : (u(), C(
|
|
1115
|
+
], 64))), 128)) : (u(), C(S, x({ key: 1 }, t.value, {
|
|
1116
1116
|
type: d.value.replace("tag-", ""),
|
|
1117
|
-
innerHTML:
|
|
1117
|
+
innerHTML: B.value || i.value
|
|
1118
1118
|
}), null, 16, ["type", "innerHTML"]))
|
|
1119
1119
|
], 4)) : d.value == "div" ? (u(), F("div", x({ key: 24 }, t.value, {
|
|
1120
|
-
innerHTML:
|
|
1121
|
-
}), null, 16,
|
|
1122
|
-
innerHTML:
|
|
1123
|
-
}), null, 16,
|
|
1120
|
+
innerHTML: B.value || i.value
|
|
1121
|
+
}), null, 16, pl)) : d.value == "span" ? (u(), F("span", x({ key: 25 }, t.value, {
|
|
1122
|
+
innerHTML: B.value || i.value
|
|
1123
|
+
}), null, 16, vl)) : (u(), C(at, x({
|
|
1124
1124
|
key: 26,
|
|
1125
1125
|
modelValue: i.value,
|
|
1126
|
-
"onUpdate:modelValue": E[25] || (E[25] = (
|
|
1126
|
+
"onUpdate:modelValue": E[25] || (E[25] = (c) => i.value = c),
|
|
1127
1127
|
placeholder: k.value[e.value].label,
|
|
1128
|
-
maxlength: ((
|
|
1128
|
+
maxlength: ((Ge = t.value) == null ? void 0 : Ge.max) || 25,
|
|
1129
1129
|
clearable: !0,
|
|
1130
1130
|
onClear: E[26] || (E[26] = () => {
|
|
1131
1131
|
o.t == "q" && k.value.table.load();
|
|
1132
1132
|
})
|
|
1133
|
-
}, { ...t.value, type: d.value }),
|
|
1134
|
-
L(
|
|
1135
|
-
name:
|
|
1133
|
+
}, { ...t.value, type: d.value }), fe({ _: 2 }, [
|
|
1134
|
+
L(z(), (c, Q) => ({
|
|
1135
|
+
name: c,
|
|
1136
1136
|
fn: h((ve) => [
|
|
1137
|
-
y(g.$slots, `${o.t}-${e.value}-${
|
|
1137
|
+
y(g.$slots, `${o.t}-${e.value}-${c}`, { data: ve }, void 0, !0)
|
|
1138
1138
|
])
|
|
1139
1139
|
}))
|
|
1140
1140
|
]), 1040, ["modelValue", "placeholder", "maxlength"]))
|
|
@@ -1142,50 +1142,50 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1142
1142
|
], 64);
|
|
1143
1143
|
};
|
|
1144
1144
|
}
|
|
1145
|
-
}),
|
|
1145
|
+
}), pt = /* @__PURE__ */ Xe(hl, [["__scopeId", "data-v-a4d7ef5d"]]), yl = { class: "g-form-container" }, gl = /* @__PURE__ */ Object.assign({
|
|
1146
1146
|
name: "g-form",
|
|
1147
1147
|
inheritAttrs: !1
|
|
1148
1148
|
}, {
|
|
1149
1149
|
__name: "g-form",
|
|
1150
|
-
props: /* @__PURE__ */
|
|
1150
|
+
props: /* @__PURE__ */ Ne(["editForm"], {
|
|
1151
1151
|
modelValue: { required: !0 },
|
|
1152
1152
|
modelModifiers: {}
|
|
1153
1153
|
}),
|
|
1154
|
-
emits: /* @__PURE__ */
|
|
1154
|
+
emits: /* @__PURE__ */ Ne(["submit", "reset"], ["update:modelValue"]),
|
|
1155
1155
|
setup(f, { expose: i, emit: o }) {
|
|
1156
|
-
var
|
|
1157
|
-
const t =
|
|
1156
|
+
var ue, ae, $e, ne, g, E;
|
|
1157
|
+
const t = We(f, "modelValue"), e = o, d = le(null), k = _t("options"), T = le({}), V = le(""), D = f;
|
|
1158
1158
|
t.value.form = xe(
|
|
1159
|
-
|
|
1159
|
+
Ot,
|
|
1160
1160
|
k == null ? void 0 : k.form,
|
|
1161
|
-
(
|
|
1161
|
+
(ue = t.value) == null ? void 0 : ue.form
|
|
1162
1162
|
), t.value.form.style = xe(
|
|
1163
|
-
($e = (
|
|
1164
|
-
{ ...(
|
|
1163
|
+
($e = (ae = t.value) == null ? void 0 : ae.form) == null ? void 0 : $e.style,
|
|
1164
|
+
{ ...(ne = kt()) == null ? void 0 : ne.style }
|
|
1165
1165
|
);
|
|
1166
|
-
const w = async (v,
|
|
1166
|
+
const w = async (v, m) => {
|
|
1167
1167
|
let s = 5;
|
|
1168
1168
|
for (; s > 0; ) {
|
|
1169
|
-
if (await
|
|
1169
|
+
if (await tt(), d.value) {
|
|
1170
1170
|
d.value.validate((a, _) => {
|
|
1171
|
-
a ? e("submit", v,
|
|
1171
|
+
a ? e("submit", v, m) : console.error("表单验证不通过!", _);
|
|
1172
1172
|
});
|
|
1173
1173
|
return;
|
|
1174
1174
|
}
|
|
1175
1175
|
s--, await new Promise((a) => setTimeout(a, 50));
|
|
1176
1176
|
}
|
|
1177
1177
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1178
|
-
},
|
|
1178
|
+
}, z = async () => {
|
|
1179
1179
|
let v = 5;
|
|
1180
1180
|
for (; v > 0; ) {
|
|
1181
|
-
if (await
|
|
1181
|
+
if (await tt(), !d.value) {
|
|
1182
1182
|
v--, await new Promise((s) => setTimeout(s, 50));
|
|
1183
1183
|
continue;
|
|
1184
1184
|
}
|
|
1185
|
-
let
|
|
1185
|
+
let m = !0;
|
|
1186
1186
|
if (e("reset", (s) => {
|
|
1187
|
-
|
|
1188
|
-
}),
|
|
1187
|
+
m = s;
|
|
1188
|
+
}), m) {
|
|
1189
1189
|
d.value.resetFields();
|
|
1190
1190
|
return;
|
|
1191
1191
|
}
|
|
@@ -1193,8 +1193,8 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1193
1193
|
}
|
|
1194
1194
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1195
1195
|
};
|
|
1196
|
-
t.value.form.submit.click = w, t.value.form.reset.click =
|
|
1197
|
-
const
|
|
1196
|
+
t.value.form.submit.click = w, t.value.form.reset.click = z;
|
|
1197
|
+
const ee = {
|
|
1198
1198
|
type: "hidden",
|
|
1199
1199
|
labelPosition: "right",
|
|
1200
1200
|
style: {
|
|
@@ -1202,23 +1202,23 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
};
|
|
1204
1204
|
t.value.formItems = xe(
|
|
1205
|
-
|
|
1205
|
+
ee,
|
|
1206
1206
|
k == null ? void 0 : k.formItems,
|
|
1207
1207
|
(g = t == null ? void 0 : t.value) == null ? void 0 : g.formItems
|
|
1208
1208
|
);
|
|
1209
|
-
const
|
|
1209
|
+
const B = {
|
|
1210
1210
|
span: 12,
|
|
1211
1211
|
offset: 0
|
|
1212
1212
|
};
|
|
1213
1213
|
t.value.form.cols = xe(
|
|
1214
|
-
|
|
1214
|
+
B,
|
|
1215
1215
|
(E = k == null ? void 0 : k.form) == null ? void 0 : E.cols,
|
|
1216
1216
|
t.value.form.cols
|
|
1217
1217
|
);
|
|
1218
|
-
const
|
|
1219
|
-
let
|
|
1218
|
+
const U = (v) => {
|
|
1219
|
+
let m = [];
|
|
1220
1220
|
if (v.rules)
|
|
1221
|
-
|
|
1221
|
+
m = v.rules;
|
|
1222
1222
|
else {
|
|
1223
1223
|
const a = { ...{
|
|
1224
1224
|
required: void 0,
|
|
@@ -1229,18 +1229,18 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1229
1229
|
pattern: void 0,
|
|
1230
1230
|
validate: void 0
|
|
1231
1231
|
}, ...v };
|
|
1232
|
-
a.required &&
|
|
1232
|
+
a.required && m.push({
|
|
1233
1233
|
required: !0,
|
|
1234
1234
|
message: `${a.label}不能为空!`,
|
|
1235
1235
|
trigger: "blur"
|
|
1236
|
-
}), a.max !== void 0 && a.max !== null && a.max !== "" && (a.min === void 0 || a.min === null || a.min === "") &&
|
|
1236
|
+
}), a.max !== void 0 && a.max !== null && a.max !== "" && (a.min === void 0 || a.min === null || a.min === "") && m.push({
|
|
1237
1237
|
validator: (_, n, b) => {
|
|
1238
1238
|
if (n == null || n === "") return b();
|
|
1239
1239
|
a.type !== "number" && a.type !== "input-number" ? ((n == null ? void 0 : n.toString()) || "").length > Number(a.max) ? b(
|
|
1240
1240
|
new Error(`${a.label}长度不能超过${a.max}个字符!`)
|
|
1241
1241
|
) : b() : Number(n) > Number(a.max) ? b(new Error(`${a.label}不能大于${a.max}!`)) : b();
|
|
1242
1242
|
}
|
|
1243
|
-
}), a.min !== void 0 && a.min !== null && a.min !== "" && (a.max === void 0 || a.max === null || a.max === "") &&
|
|
1243
|
+
}), a.min !== void 0 && a.min !== null && a.min !== "" && (a.max === void 0 || a.max === null || a.max === "") && m.push({
|
|
1244
1244
|
validator: (_, n, b) => {
|
|
1245
1245
|
if (n == null || n === "") return b();
|
|
1246
1246
|
a.type !== "number" && a.type !== "input-number" ? Number(a.min) < 1 ? b(
|
|
@@ -1253,7 +1253,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1253
1253
|
)
|
|
1254
1254
|
) : b() : Number(n) < Number(a.min) ? b(new Error(`${a.label}不能小于${a.min}!`)) : b();
|
|
1255
1255
|
}
|
|
1256
|
-
}), a.min !== void 0 && a.min !== null && a.min !== "" && a.max !== void 0 && a.max !== null && a.max !== "" &&
|
|
1256
|
+
}), a.min !== void 0 && a.min !== null && a.min !== "" && a.max !== void 0 && a.max !== null && a.max !== "" && m.push({
|
|
1257
1257
|
validator: (_, n, b) => {
|
|
1258
1258
|
if (n == null || n === "") return b();
|
|
1259
1259
|
const M = Number(a.min), q = Number(a.max);
|
|
@@ -1267,73 +1267,73 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1267
1267
|
)
|
|
1268
1268
|
) : b() : Number(n) < M || n > q ? b(new Error(`${a.label}必须在${M}-${q}之间!`)) : b();
|
|
1269
1269
|
}
|
|
1270
|
-
}), a.type == "email" &&
|
|
1270
|
+
}), a.type == "email" && m.push({ type: "email", message: "不是一个正确的邮箱地址!" }), a.type == "url" && m.push({ type: "url", message: "不是一个合正确的URL!" }), a.pattern && m.push({
|
|
1271
1271
|
pattern: a == null ? void 0 : a.pattern,
|
|
1272
1272
|
message: (a == null ? void 0 : a.message) || "格式不正确!"
|
|
1273
|
-
}), a.validate &&
|
|
1273
|
+
}), a.validate && m.push({
|
|
1274
1274
|
validator: (_, n, b) => a.validate(_, n, b)
|
|
1275
1275
|
});
|
|
1276
1276
|
}
|
|
1277
|
-
return
|
|
1278
|
-
},
|
|
1277
|
+
return m;
|
|
1278
|
+
}, se = (v, m = !1) => {
|
|
1279
1279
|
var _, n, b, M, q;
|
|
1280
|
-
const s =
|
|
1280
|
+
const s = m ? v : v == null ? void 0 : v.item, a = typeof (s == null ? void 0 : s.editor) == "function" ? s.editor(T.value, (_ = t.value.form) == null ? void 0 : _.modalState) : (s == null ? void 0 : s.editor) || {};
|
|
1281
1281
|
if (((n = t.value.form) == null ? void 0 : n.modalState) === "edit") {
|
|
1282
|
-
const
|
|
1283
|
-
return { ...a, ...
|
|
1282
|
+
const oe = typeof (s == null ? void 0 : s.editor) == "object" ? (b = s.editor) == null ? void 0 : b.ep : typeof (s == null ? void 0 : s.editor) == "function" ? a == null ? void 0 : a.ep : {};
|
|
1283
|
+
return { ...a, ...oe };
|
|
1284
1284
|
}
|
|
1285
1285
|
if (((M = t.value.form) == null ? void 0 : M.modalState) === "add") {
|
|
1286
|
-
const
|
|
1287
|
-
return { ...a, ...
|
|
1286
|
+
const oe = typeof (s == null ? void 0 : s.editor) == "object" ? (q = s.editor) == null ? void 0 : q.ap : typeof (s == null ? void 0 : s.editor) == "function" ? a == null ? void 0 : a.ap : {};
|
|
1287
|
+
return { ...a, ...oe };
|
|
1288
1288
|
}
|
|
1289
1289
|
return a;
|
|
1290
|
-
},
|
|
1290
|
+
}, re = (v) => {
|
|
1291
1291
|
var s, a, _, n, b;
|
|
1292
|
-
const
|
|
1293
|
-
return ((a = t.value.form) == null ? void 0 : a.modalState) === "edit" ? ((_ =
|
|
1292
|
+
const m = typeof v.editor == "function" ? v.editor(T.value, (s = t.value.form) == null ? void 0 : s.modalState) : v.editor;
|
|
1293
|
+
return ((a = t.value.form) == null ? void 0 : a.modalState) === "edit" ? ((_ = m == null ? void 0 : m.ep) == null ? void 0 : _.type) ?? (m == null ? void 0 : m.type) ?? v.type : ((n = t.value.form) == null ? void 0 : n.modalState) === "add" ? ((b = m == null ? void 0 : m.ap) == null ? void 0 : b.type) ?? (m == null ? void 0 : m.type) ?? v.type : (m == null ? void 0 : m.type) ?? v.type;
|
|
1294
1294
|
};
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
}),
|
|
1295
|
+
rt(() => {
|
|
1296
|
+
K(), D != null && D.editForm ? T.value = D.editForm : T.value = we.value;
|
|
1297
|
+
}), jt(() => {
|
|
1298
1298
|
d.value = null;
|
|
1299
1299
|
});
|
|
1300
|
-
const
|
|
1300
|
+
const K = () => {
|
|
1301
1301
|
V.value = Math.random().toString(36).substring(2);
|
|
1302
|
-
for (const [v,
|
|
1302
|
+
for (const [v, m] of Object.entries(ce.value))
|
|
1303
1303
|
t.value[v].formItem = {
|
|
1304
1304
|
...t.value[v].formItem,
|
|
1305
|
-
...
|
|
1305
|
+
...m.formItem
|
|
1306
1306
|
}, t.value[v].formItem.style = {
|
|
1307
1307
|
...t.value[v].formItem.style,
|
|
1308
|
-
...
|
|
1308
|
+
...m.formItem.style
|
|
1309
1309
|
};
|
|
1310
|
-
},
|
|
1310
|
+
}, ce = Ke(
|
|
1311
1311
|
() => Object.fromEntries(
|
|
1312
1312
|
Object.entries(t.value).filter((v) => v[1].type != "hidden").filter((v) => v[1].edit !== !1).filter(
|
|
1313
1313
|
(v) => !["table", "tableColumns", "query", "queryItems"].includes(v[0])
|
|
1314
1314
|
).filter((v) => v[1].editor !== !1).filter((v) => v[1].type !== "control").filter((v) => {
|
|
1315
1315
|
var s, a, _;
|
|
1316
|
-
const
|
|
1317
|
-
return t.value.form.modalState === "edit" ? ((a =
|
|
1316
|
+
const m = typeof v[1].editor == "function" ? v[1].editor(T.value, (s = t.value.form) == null ? void 0 : s.modalState) : v[1].editor;
|
|
1317
|
+
return t.value.form.modalState === "edit" ? ((a = m == null ? void 0 : m.ep) == null ? void 0 : a.editor) !== !1 : t.value.form.modalState === "add" ? ((_ = m == null ? void 0 : m.ap) == null ? void 0 : _.editor) !== !1 : !0;
|
|
1318
1318
|
}).map((v) => [v[0], v[1]])
|
|
1319
1319
|
)
|
|
1320
|
-
), we =
|
|
1320
|
+
), we = Ke(
|
|
1321
1321
|
() => Object.fromEntries(
|
|
1322
1322
|
Object.entries(t.value).filter((v) => v[1].type != "hidden").filter((v) => v[1].type != "control").map((v) => [v[0], v[1].value])
|
|
1323
1323
|
)
|
|
1324
|
-
), he =
|
|
1324
|
+
), he = Ke(() => {
|
|
1325
1325
|
const v = /* @__PURE__ */ new Map();
|
|
1326
|
-
return Object.entries(
|
|
1326
|
+
return Object.entries(ce.value).forEach(([m, s]) => {
|
|
1327
1327
|
if (s.groupName) {
|
|
1328
1328
|
const a = s.groupName;
|
|
1329
1329
|
v.has(a) || v.set(a, {
|
|
1330
1330
|
groupName: a,
|
|
1331
1331
|
items: []
|
|
1332
|
-
}), v.get(a).items.push({ key:
|
|
1332
|
+
}), v.get(a).items.push({ key: m, item: s });
|
|
1333
1333
|
}
|
|
1334
|
-
}), v.forEach((
|
|
1335
|
-
|
|
1336
|
-
...
|
|
1334
|
+
}), v.forEach((m) => {
|
|
1335
|
+
m.tabPane = xe(
|
|
1336
|
+
...m.items.map(({ item: s }) => s.tabPane || {})
|
|
1337
1337
|
);
|
|
1338
1338
|
}), Array.from(v.values());
|
|
1339
1339
|
}), pe = [
|
|
@@ -1342,7 +1342,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1342
1342
|
label: t.value.form.submit.label,
|
|
1343
1343
|
click: t.value.form.submit.click,
|
|
1344
1344
|
hidden: t.value.form.submit.hidden,
|
|
1345
|
-
info:
|
|
1345
|
+
info: qe(t.value.form.submit, (v) => !["click"].includes(v)),
|
|
1346
1346
|
sort: t.value.form.submit.sort ?? 1,
|
|
1347
1347
|
// 使用空值合并运算符
|
|
1348
1348
|
originalOrder: 0
|
|
@@ -1352,27 +1352,27 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1352
1352
|
name: "f-reset",
|
|
1353
1353
|
label: t.value.form.reset.label,
|
|
1354
1354
|
click: t.value.form.reset.click,
|
|
1355
|
-
info:
|
|
1355
|
+
info: qe(t.value.form.reset, (v) => !["click"].includes(v)),
|
|
1356
1356
|
hidden: t.value.form.reset.hidden,
|
|
1357
1357
|
sort: t.value.form.reset.sort ?? 2,
|
|
1358
1358
|
// 使用空值合并运算符
|
|
1359
1359
|
originalOrder: 1
|
|
1360
1360
|
// 添加原始顺序标识
|
|
1361
1361
|
}
|
|
1362
|
-
],
|
|
1362
|
+
], ie = Ke(() => pe.filter((v) => !v.hidden).sort((v, m) => v.sort - m.sort || v.originalOrder - m.originalOrder));
|
|
1363
1363
|
return i({
|
|
1364
1364
|
submit: w,
|
|
1365
|
-
reset:
|
|
1366
|
-
formData:
|
|
1367
|
-
}), (v,
|
|
1368
|
-
var q,
|
|
1369
|
-
const s =
|
|
1370
|
-
return u(), F("div",
|
|
1365
|
+
reset: z,
|
|
1366
|
+
formData: T
|
|
1367
|
+
}), (v, m) => {
|
|
1368
|
+
var q, oe, de;
|
|
1369
|
+
const s = I("el-form-item"), a = I("el-col"), _ = I("el-tab-pane"), n = I("el-tabs"), b = I("el-form"), M = I("el-button");
|
|
1370
|
+
return u(), F("div", yl, [
|
|
1371
1371
|
G(b, x(
|
|
1372
1372
|
{
|
|
1373
1373
|
ref_key: "gform",
|
|
1374
1374
|
ref: d,
|
|
1375
|
-
model:
|
|
1375
|
+
model: T.value,
|
|
1376
1376
|
style: {
|
|
1377
1377
|
width: "98%",
|
|
1378
1378
|
padding: 0,
|
|
@@ -1380,7 +1380,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1380
1380
|
"box-sizing": "border-box"
|
|
1381
1381
|
}
|
|
1382
1382
|
},
|
|
1383
|
-
j(
|
|
1383
|
+
j(qe)(
|
|
1384
1384
|
t.value.form,
|
|
1385
1385
|
(R) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(R)
|
|
1386
1386
|
)
|
|
@@ -1390,7 +1390,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1390
1390
|
G(n, x({
|
|
1391
1391
|
class: "demo-tabs",
|
|
1392
1392
|
modelValue: he.value[0].groupName,
|
|
1393
|
-
"onUpdate:modelValue":
|
|
1393
|
+
"onUpdate:modelValue": m[0] || (m[0] = (R) => he.value[0].groupName = R),
|
|
1394
1394
|
style: { width: "100%" }
|
|
1395
1395
|
}, t.value.form.tabs), {
|
|
1396
1396
|
default: h(() => [
|
|
@@ -1412,32 +1412,32 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1412
1412
|
G(s, x({
|
|
1413
1413
|
label: O == null ? void 0 : O.item.label,
|
|
1414
1414
|
prop: O.key,
|
|
1415
|
-
rules:
|
|
1415
|
+
rules: U(O == null ? void 0 : O.item),
|
|
1416
1416
|
ref_for: !0
|
|
1417
1417
|
}, { ...(_e = t.value) == null ? void 0 : _e.formItems, ...(Ve = O == null ? void 0 : O.item) == null ? void 0 : Ve.formItem }, { style: { width: "100%" } }), {
|
|
1418
1418
|
default: h(() => [
|
|
1419
1419
|
y(v.$slots, "f-" + O.key, {
|
|
1420
1420
|
item: O == null ? void 0 : O.item,
|
|
1421
|
-
formInfo:
|
|
1421
|
+
formInfo: T.value,
|
|
1422
1422
|
model: t.value
|
|
1423
1423
|
}, () => [
|
|
1424
|
-
(u(), C(
|
|
1425
|
-
modelValue:
|
|
1426
|
-
"onUpdate:modelValue": (De) =>
|
|
1427
|
-
item:
|
|
1424
|
+
(u(), C(pt, {
|
|
1425
|
+
modelValue: T.value[O.key],
|
|
1426
|
+
"onUpdate:modelValue": (De) => T.value[O.key] = De,
|
|
1427
|
+
item: se(O),
|
|
1428
1428
|
ctrlKey: O.key,
|
|
1429
|
-
ctrlType:
|
|
1429
|
+
ctrlType: re(O == null ? void 0 : O.item),
|
|
1430
1430
|
model: t.value,
|
|
1431
1431
|
key: `${O.key}-${V.value}`,
|
|
1432
1432
|
class: "g-ctrl-container",
|
|
1433
1433
|
t: "f",
|
|
1434
|
-
formInfo:
|
|
1435
|
-
},
|
|
1434
|
+
formInfo: T.value
|
|
1435
|
+
}, fe({ _: 2 }, [
|
|
1436
1436
|
L(v.$slots, (De, ye) => ({
|
|
1437
1437
|
name: ye,
|
|
1438
|
-
fn: h((
|
|
1438
|
+
fn: h((Fe) => [
|
|
1439
1439
|
y(v.$slots, ye, {
|
|
1440
|
-
data:
|
|
1440
|
+
data: Fe,
|
|
1441
1441
|
item: O.item,
|
|
1442
1442
|
model: t.value
|
|
1443
1443
|
}, void 0, !0)
|
|
@@ -1459,7 +1459,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1459
1459
|
_: 3
|
|
1460
1460
|
}, 16, ["modelValue"])
|
|
1461
1461
|
], !0) : y(v.$slots, "default", { key: 1 }, () => [
|
|
1462
|
-
(u(!0), F(X, null, L(
|
|
1462
|
+
(u(!0), F(X, null, L(ce.value, (R, O) => (u(), C(a, x({ ref_for: !0 }, { ...t.value.form.cols, ...R.col }, {
|
|
1463
1463
|
key: O,
|
|
1464
1464
|
style: { width: "100%" }
|
|
1465
1465
|
}), {
|
|
@@ -1469,7 +1469,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1469
1469
|
G(s, x({
|
|
1470
1470
|
label: R.label,
|
|
1471
1471
|
prop: O,
|
|
1472
|
-
rules:
|
|
1472
|
+
rules: U(R),
|
|
1473
1473
|
ref_for: !0
|
|
1474
1474
|
}, { ...(Ce = t.value) == null ? void 0 : Ce.formItems, ...R == null ? void 0 : R.formItem }, { style: { width: "100%" } }), {
|
|
1475
1475
|
label: h((_e) => [
|
|
@@ -1478,27 +1478,27 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1478
1478
|
item: R,
|
|
1479
1479
|
model: t.value
|
|
1480
1480
|
}, () => [
|
|
1481
|
-
|
|
1481
|
+
Te(be(R.label), 1)
|
|
1482
1482
|
], !0)
|
|
1483
1483
|
]),
|
|
1484
1484
|
default: h(() => [
|
|
1485
1485
|
y(v.$slots, "f-" + O, {
|
|
1486
1486
|
item: R,
|
|
1487
|
-
formInfo:
|
|
1487
|
+
formInfo: T.value,
|
|
1488
1488
|
model: t.value
|
|
1489
1489
|
}, () => [
|
|
1490
|
-
(u(), C(
|
|
1491
|
-
modelValue:
|
|
1492
|
-
"onUpdate:modelValue": (_e) =>
|
|
1493
|
-
item:
|
|
1490
|
+
(u(), C(pt, {
|
|
1491
|
+
modelValue: T.value[O],
|
|
1492
|
+
"onUpdate:modelValue": (_e) => T.value[O] = _e,
|
|
1493
|
+
item: se(R, !0),
|
|
1494
1494
|
ctrlKey: O,
|
|
1495
|
-
ctrlType:
|
|
1495
|
+
ctrlType: re(R),
|
|
1496
1496
|
key: `${O}-${V.value}`,
|
|
1497
1497
|
model: t.value,
|
|
1498
1498
|
class: "g-ctrl-container",
|
|
1499
1499
|
t: "f",
|
|
1500
|
-
formInfo:
|
|
1501
|
-
},
|
|
1500
|
+
formInfo: T.value
|
|
1501
|
+
}, fe({ _: 2 }, [
|
|
1502
1502
|
L(v.$slots, (_e, Ve) => ({
|
|
1503
1503
|
name: Ve,
|
|
1504
1504
|
fn: h((De) => [
|
|
@@ -1522,19 +1522,19 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1522
1522
|
]),
|
|
1523
1523
|
_: 3
|
|
1524
1524
|
}, 16, ["model"]),
|
|
1525
|
-
(
|
|
1525
|
+
(de = (oe = (q = t.value) == null ? void 0 : q.form) == null ? void 0 : oe.footer) != null && de.hidden ? me("", !0) : y(v.$slots, "f-footer", { key: 0 }, () => [
|
|
1526
1526
|
W("div", {
|
|
1527
|
-
style:
|
|
1527
|
+
style: Se(t.value.form.footer.style)
|
|
1528
1528
|
}, [
|
|
1529
1529
|
y(v.$slots, "f-footer-left", {}, void 0, !0),
|
|
1530
|
-
(u(!0), F(X, null, L(
|
|
1530
|
+
(u(!0), F(X, null, L(ie.value, (R) => (u(), F(X, null, [
|
|
1531
1531
|
y(v.$slots, R.name + "-left", {}, void 0, !0),
|
|
1532
1532
|
y(v.$slots, R.name, {}, () => [
|
|
1533
1533
|
G(M, x({ ref_for: !0 }, R.info, {
|
|
1534
|
-
onClick:
|
|
1534
|
+
onClick: ct((O) => R.click(T.value, t.value), ["stop"])
|
|
1535
1535
|
}), {
|
|
1536
1536
|
default: h(() => [
|
|
1537
|
-
|
|
1537
|
+
Te(be(R == null ? void 0 : R.label), 1)
|
|
1538
1538
|
]),
|
|
1539
1539
|
_: 2
|
|
1540
1540
|
}, 1040, ["onClick"])
|
|
@@ -1547,9 +1547,9 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1547
1547
|
]);
|
|
1548
1548
|
};
|
|
1549
1549
|
}
|
|
1550
|
-
}),
|
|
1550
|
+
}), bt = /* @__PURE__ */ Xe(gl, [["__scopeId", "data-v-82750c6a"]]), Dt = {
|
|
1551
1551
|
__name: "g-query-item",
|
|
1552
|
-
props: /* @__PURE__ */
|
|
1552
|
+
props: /* @__PURE__ */ Ne(["more"], {
|
|
1553
1553
|
modelValue: { required: !0 },
|
|
1554
1554
|
modelModifiers: {},
|
|
1555
1555
|
info: { required: !0 },
|
|
@@ -1557,17 +1557,17 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1557
1557
|
}),
|
|
1558
1558
|
emits: ["update:modelValue", "update:info"],
|
|
1559
1559
|
setup(f) {
|
|
1560
|
-
const i =
|
|
1560
|
+
const i = We(f, "modelValue"), o = f, t = We(f, "info"), e = (T) => Ke(() => Object.fromEntries(Object.entries(i.value).filter((V) => {
|
|
1561
1561
|
var D;
|
|
1562
|
-
return typeof V[1].search == "function" ? V[1].search && ((D = V[1].search(t.value, i.value.table)) == null ? void 0 : D.more) ===
|
|
1563
|
-
}).map((V) => [V[0], V[1]]))).value, d = (
|
|
1564
|
-
const V = d(
|
|
1565
|
-
return (V == null ? void 0 : V.type) ||
|
|
1562
|
+
return typeof V[1].search == "function" ? V[1].search && ((D = V[1].search(t.value, i.value.table)) == null ? void 0 : D.more) === T : V[1].search && V[1].search.more === T;
|
|
1563
|
+
}).map((V) => [V[0], V[1]]))).value, d = (T) => typeof T.search == "function" ? T.search(t.value, i.value.table) : T.search || {}, k = (T) => {
|
|
1564
|
+
const V = d(T);
|
|
1565
|
+
return (V == null ? void 0 : V.type) || T.type;
|
|
1566
1566
|
};
|
|
1567
|
-
return (
|
|
1568
|
-
const D =
|
|
1569
|
-
return u(!0), F(X, null, L(e(o.more), (w,
|
|
1570
|
-
key:
|
|
1567
|
+
return (T, V) => {
|
|
1568
|
+
const D = I("el-form-item");
|
|
1569
|
+
return u(!0), F(X, null, L(e(o.more), (w, z) => y(T.$slots, `q-${z}`, {
|
|
1570
|
+
key: z,
|
|
1571
1571
|
item: w,
|
|
1572
1572
|
queryModel: t.value,
|
|
1573
1573
|
model: i.value
|
|
@@ -1577,27 +1577,27 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1577
1577
|
ref_for: !0
|
|
1578
1578
|
}, { ...i.value.queryItems, ...d(w) }), {
|
|
1579
1579
|
label: h(() => [
|
|
1580
|
-
y(
|
|
1580
|
+
y(T.$slots, `q-${z}-label`, {
|
|
1581
1581
|
item: w,
|
|
1582
1582
|
model: i.value
|
|
1583
1583
|
})
|
|
1584
1584
|
]),
|
|
1585
1585
|
default: h(() => [
|
|
1586
|
-
G(
|
|
1587
|
-
modelValue: t.value[
|
|
1588
|
-
"onUpdate:modelValue": (
|
|
1586
|
+
G(pt, {
|
|
1587
|
+
modelValue: t.value[z],
|
|
1588
|
+
"onUpdate:modelValue": (ee) => t.value[z] = ee,
|
|
1589
1589
|
item: { ...w == null ? void 0 : w.editor, ...d(w) },
|
|
1590
|
-
ctrlKey:
|
|
1590
|
+
ctrlKey: z,
|
|
1591
1591
|
ctrlType: k(w),
|
|
1592
1592
|
model: i.value,
|
|
1593
1593
|
t: "q",
|
|
1594
1594
|
formInfo: t.value
|
|
1595
|
-
},
|
|
1596
|
-
L(Object.keys(
|
|
1597
|
-
name:
|
|
1598
|
-
fn: h((
|
|
1599
|
-
y(
|
|
1600
|
-
data:
|
|
1595
|
+
}, fe({ _: 2 }, [
|
|
1596
|
+
L(Object.keys(T.$slots), (ee) => ({
|
|
1597
|
+
name: ee,
|
|
1598
|
+
fn: h((B) => [
|
|
1599
|
+
y(T.$slots, ee, {
|
|
1600
|
+
data: B,
|
|
1601
1601
|
item: w,
|
|
1602
1602
|
model: i.value
|
|
1603
1603
|
})
|
|
@@ -1610,10 +1610,10 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1610
1610
|
])), 128);
|
|
1611
1611
|
};
|
|
1612
1612
|
}
|
|
1613
|
-
},
|
|
1613
|
+
}, bl = {
|
|
1614
1614
|
key: 0,
|
|
1615
1615
|
class: "outer"
|
|
1616
|
-
},
|
|
1616
|
+
}, $l = { class: "inner" }, wl = {
|
|
1617
1617
|
__name: "g-query",
|
|
1618
1618
|
props: {
|
|
1619
1619
|
modelValue: { required: !0 },
|
|
@@ -1621,9 +1621,9 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1621
1621
|
info: { required: !0 },
|
|
1622
1622
|
infoModifiers: {}
|
|
1623
1623
|
},
|
|
1624
|
-
emits: /* @__PURE__ */
|
|
1624
|
+
emits: /* @__PURE__ */ Ne(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1625
1625
|
setup(f, { emit: i }) {
|
|
1626
|
-
const o =
|
|
1626
|
+
const o = We(f, "modelValue"), t = i, e = _t("options"), d = le(!1), k = We(f, "info"), T = {
|
|
1627
1627
|
hidden: !1,
|
|
1628
1628
|
type: "hidden",
|
|
1629
1629
|
labelWidth: 100,
|
|
@@ -1671,7 +1671,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
}
|
|
1673
1673
|
};
|
|
1674
|
-
o.value.query = xe(
|
|
1674
|
+
o.value.query = xe(T, e == null ? void 0 : e.query, o.value.query);
|
|
1675
1675
|
const V = {
|
|
1676
1676
|
2: {
|
|
1677
1677
|
title: "更多查询",
|
|
@@ -1701,24 +1701,24 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1701
1701
|
}
|
|
1702
1702
|
};
|
|
1703
1703
|
o.value.queryItems = xe(D, e == null ? void 0 : e.queryItems, o.value.queryItems);
|
|
1704
|
-
const w = (
|
|
1705
|
-
const
|
|
1704
|
+
const w = (B, U) => {
|
|
1705
|
+
const se = Object.keys(B.slots).filter((re) => re !== "default").reduce((re, K) => (re[K] = (ce) => B.slots[K]({
|
|
1706
1706
|
model: o.value
|
|
1707
1707
|
// 传递当前模型数据
|
|
1708
|
-
}),
|
|
1709
|
-
return
|
|
1708
|
+
}), re), {});
|
|
1709
|
+
return Ae(Dt, {
|
|
1710
1710
|
modelValue: o.value,
|
|
1711
|
-
"onUpdate:modelValue": (
|
|
1711
|
+
"onUpdate:modelValue": (re) => o.value = re,
|
|
1712
1712
|
info: k.value,
|
|
1713
|
-
"onUpdate:info": (
|
|
1714
|
-
more:
|
|
1715
|
-
},
|
|
1716
|
-
},
|
|
1717
|
-
var
|
|
1718
|
-
const
|
|
1713
|
+
"onUpdate:info": (re) => k.value = re,
|
|
1714
|
+
more: U
|
|
1715
|
+
}, se);
|
|
1716
|
+
}, z = Tt(), ee = () => {
|
|
1717
|
+
var se, re, K, ce, we, he, pe, ie, ue;
|
|
1718
|
+
const B = [
|
|
1719
1719
|
{
|
|
1720
1720
|
key: "query",
|
|
1721
|
-
hidden: (
|
|
1721
|
+
hidden: (K = (re = (se = o.value) == null ? void 0 : se.query) == null ? void 0 : re.query) == null ? void 0 : K.hidden,
|
|
1722
1722
|
component: Me,
|
|
1723
1723
|
props: {
|
|
1724
1724
|
...o.value.query.query,
|
|
@@ -1729,7 +1729,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1729
1729
|
},
|
|
1730
1730
|
{
|
|
1731
1731
|
key: "reset",
|
|
1732
|
-
hidden: (he = (we = (
|
|
1732
|
+
hidden: (he = (we = (ce = o.value) == null ? void 0 : ce.query) == null ? void 0 : we.reset) == null ? void 0 : he.hidden,
|
|
1733
1733
|
component: Me,
|
|
1734
1734
|
props: {
|
|
1735
1735
|
...o.value.query.reset,
|
|
@@ -1740,68 +1740,68 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1740
1740
|
},
|
|
1741
1741
|
{
|
|
1742
1742
|
key: "more",
|
|
1743
|
-
hidden: (
|
|
1744
|
-
component: o.value.query.more.mode === 3 ?
|
|
1743
|
+
hidden: (ue = (ie = (pe = o.value) == null ? void 0 : pe.query) == null ? void 0 : ie.more) == null ? void 0 : ue.hidden,
|
|
1744
|
+
component: o.value.query.more.mode === 3 ? ht : Me,
|
|
1745
1745
|
props: o.value.query.more.mode === 3 ? { ...o.value.query.more.dialog } : {
|
|
1746
1746
|
...o.value.query.more,
|
|
1747
1747
|
onClick: o.value.query.more.click
|
|
1748
1748
|
},
|
|
1749
1749
|
label: o.value.query.more.label,
|
|
1750
1750
|
sort: o.value.query.more.sort || 0,
|
|
1751
|
-
content: o.value.query.more.mode === 3 ? () =>
|
|
1751
|
+
content: o.value.query.more.mode === 3 ? () => Ae(dt, {
|
|
1752
1752
|
class: "query-form",
|
|
1753
|
-
...
|
|
1754
|
-
}, () => w({ slots:
|
|
1753
|
+
...qe(o.value.query, (ae) => !["query", "more", "reset"].includes(ae))
|
|
1754
|
+
}, () => w({ slots: z }, !0)) : null
|
|
1755
1755
|
}
|
|
1756
1756
|
];
|
|
1757
|
-
return
|
|
1758
|
-
reference: () =>
|
|
1759
|
-
default:
|
|
1760
|
-
}) : (
|
|
1757
|
+
return B.sort((ae, $e) => ae.sort - $e.sort), B.filter((ae) => !ae.hidden).map((ae) => ae.key === "more" && ae.component === ht ? Ae(ht, ae.props, {
|
|
1758
|
+
reference: () => Ae(Me, o.value.query.more, () => ae.label),
|
|
1759
|
+
default: ae.content
|
|
1760
|
+
}) : (ae.props.slot = "query-" + ae.key, ae.label ? Ae(ae.component, ae.props, () => ae.label) : Ae(ae.component, ae.props)));
|
|
1761
1761
|
};
|
|
1762
|
-
return (
|
|
1763
|
-
var
|
|
1764
|
-
const
|
|
1762
|
+
return (B, U) => {
|
|
1763
|
+
var K, ce, we, he, pe, ie, ue, ae, $e, ne, g, E, v, m, s, a, _;
|
|
1764
|
+
const se = I("el-form-item"), re = I("el-drawer");
|
|
1765
1765
|
return u(), F(X, null, [
|
|
1766
1766
|
W("div", {
|
|
1767
1767
|
class: "g-query-container",
|
|
1768
|
-
style:
|
|
1768
|
+
style: Se((ce = (K = o.value.query) == null ? void 0 : K.container) == null ? void 0 : ce.style)
|
|
1769
1769
|
}, [
|
|
1770
|
-
G(j(
|
|
1771
|
-
onSubmit:
|
|
1770
|
+
G(j(dt), x({
|
|
1771
|
+
onSubmit: U[0] || (U[0] = ct(() => {
|
|
1772
1772
|
}, ["prevent"]))
|
|
1773
|
-
}, j(
|
|
1773
|
+
}, j(qe)(o.value.query, (n) => !["query", "more", "reset", "btns"].includes(n))), {
|
|
1774
1774
|
default: h(() => {
|
|
1775
1775
|
var n, b;
|
|
1776
1776
|
return [
|
|
1777
|
-
(u(), C(
|
|
1778
|
-
((b = (n = o.value.query) == null ? void 0 : n.container) == null ? void 0 : b.inline) === !0 ? (u(), C(
|
|
1777
|
+
(u(), C(Ue(w({ slots: B.$slots }, void 0)))),
|
|
1778
|
+
((b = (n = o.value.query) == null ? void 0 : n.container) == null ? void 0 : b.inline) === !0 ? (u(), C(se, { key: 0 }, {
|
|
1779
1779
|
default: h(() => {
|
|
1780
|
-
var M, q,
|
|
1780
|
+
var M, q, oe, de, R;
|
|
1781
1781
|
return [
|
|
1782
1782
|
W("div", {
|
|
1783
|
-
style:
|
|
1783
|
+
style: Se((q = (M = o.value.query) == null ? void 0 : M.btns) == null ? void 0 : q.style)
|
|
1784
1784
|
}, [
|
|
1785
|
-
o.value.query.group ? (u(), C(j(
|
|
1785
|
+
o.value.query.group ? (u(), C(j(ft), { key: 0 }, {
|
|
1786
1786
|
default: h(() => [
|
|
1787
|
-
(u(!0), F(X, null, L(
|
|
1788
|
-
(u(), C(
|
|
1787
|
+
(u(!0), F(X, null, L(ee(), (O) => y(B.$slots, O.props.slot, {}, () => [
|
|
1788
|
+
(u(), C(Ue(O)))
|
|
1789
1789
|
], !0)), 256)),
|
|
1790
|
-
y(
|
|
1790
|
+
y(B.$slots, "q-btns", {}, void 0, !0)
|
|
1791
1791
|
]),
|
|
1792
1792
|
_: 3
|
|
1793
1793
|
})) : (u(), F(X, { key: 1 }, [
|
|
1794
|
-
(R = (
|
|
1794
|
+
(R = (de = (oe = o.value) == null ? void 0 : oe.query) == null ? void 0 : de.btns) != null && R.group ? (u(), C(j(ft), { key: 0 }, {
|
|
1795
1795
|
default: h(() => [
|
|
1796
|
-
(u(!0), F(X, null, L(
|
|
1797
|
-
(u(), C(
|
|
1796
|
+
(u(!0), F(X, null, L(ee(), (O) => y(B.$slots, O.props.slot, {}, () => [
|
|
1797
|
+
(u(), C(Ue(O)))
|
|
1798
1798
|
], !0)), 256))
|
|
1799
1799
|
]),
|
|
1800
1800
|
_: 3
|
|
1801
|
-
})) : (u(!0), F(X, { key: 1 }, L(
|
|
1802
|
-
(u(), C(
|
|
1801
|
+
})) : (u(!0), F(X, { key: 1 }, L(ee(), (O) => y(B.$slots, O.props.slot, {}, () => [
|
|
1802
|
+
(u(), C(Ue(O)))
|
|
1803
1803
|
], !0)), 256)),
|
|
1804
|
-
y(
|
|
1804
|
+
y(B.$slots, "q-btns", {}, void 0, !0)
|
|
1805
1805
|
], 64))
|
|
1806
1806
|
], 4)
|
|
1807
1807
|
];
|
|
@@ -1814,55 +1814,55 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1814
1814
|
}, 16),
|
|
1815
1815
|
((pe = (he = (we = o.value) == null ? void 0 : we.query) == null ? void 0 : he.container) == null ? void 0 : pe.inline) === !1 ? (u(), F("div", {
|
|
1816
1816
|
key: 0,
|
|
1817
|
-
style:
|
|
1817
|
+
style: Se((ue = (ie = o.value.query) == null ? void 0 : ie.btns) == null ? void 0 : ue.style)
|
|
1818
1818
|
}, [
|
|
1819
|
-
o.value.query.group ? (u(), C(j(
|
|
1819
|
+
o.value.query.group ? (u(), C(j(ft), { key: 0 }, {
|
|
1820
1820
|
default: h(() => [
|
|
1821
|
-
(u(!0), F(X, null, L(
|
|
1822
|
-
(u(), C(
|
|
1821
|
+
(u(!0), F(X, null, L(ee(), (n) => y(B.$slots, n.props.slot, {}, () => [
|
|
1822
|
+
(u(), C(Ue(n)))
|
|
1823
1823
|
], !0)), 256)),
|
|
1824
|
-
y(
|
|
1824
|
+
y(B.$slots, "q-btns", {}, void 0, !0)
|
|
1825
1825
|
]),
|
|
1826
1826
|
_: 3
|
|
1827
1827
|
})) : (u(), F(X, { key: 1 }, [
|
|
1828
|
-
($e = (
|
|
1828
|
+
($e = (ae = o.value.query) == null ? void 0 : ae.btns) != null && $e.group ? (u(), C(j(ft), { key: 0 }, {
|
|
1829
1829
|
default: h(() => [
|
|
1830
|
-
(u(!0), F(X, null, L(
|
|
1831
|
-
(u(), C(
|
|
1830
|
+
(u(!0), F(X, null, L(ee(), (n) => y(B.$slots, n.props.slot, {}, () => [
|
|
1831
|
+
(u(), C(Ue(n)))
|
|
1832
1832
|
], !0)), 256))
|
|
1833
1833
|
]),
|
|
1834
1834
|
_: 3
|
|
1835
|
-
})) : (u(!0), F(X, { key: 1 }, L(
|
|
1836
|
-
(u(), C(
|
|
1835
|
+
})) : (u(!0), F(X, { key: 1 }, L(ee(), (n) => y(B.$slots, n.props.slot, {}, () => [
|
|
1836
|
+
(u(), C(Ue(n)))
|
|
1837
1837
|
], !0)), 256)),
|
|
1838
|
-
y(
|
|
1838
|
+
y(B.$slots, "q-btns", {}, void 0, !0)
|
|
1839
1839
|
], 64))
|
|
1840
1840
|
], 4)) : me("", !0)
|
|
1841
1841
|
], 4),
|
|
1842
|
-
d.value && !((E = (g = (
|
|
1842
|
+
d.value && !((E = (g = (ne = o.value) == null ? void 0 : ne.query) == null ? void 0 : g.more) != null && E.hidden) && o.value.query.more.mode == 2 ? (u(), C(re, x({
|
|
1843
1843
|
key: 0,
|
|
1844
1844
|
modelValue: d.value,
|
|
1845
|
-
"onUpdate:modelValue":
|
|
1845
|
+
"onUpdate:modelValue": U[6] || (U[6] = (n) => d.value = n),
|
|
1846
1846
|
title: "更多查询",
|
|
1847
1847
|
"show-close": !1
|
|
1848
|
-
}, o.value.query.more.dialog),
|
|
1848
|
+
}, o.value.query.more.dialog), fe({
|
|
1849
1849
|
default: h(() => [
|
|
1850
|
-
G(j(
|
|
1851
|
-
onSubmit:
|
|
1850
|
+
G(j(dt), x({
|
|
1851
|
+
onSubmit: U[3] || (U[3] = ct(() => {
|
|
1852
1852
|
}, ["prevent"]))
|
|
1853
|
-
}, j(
|
|
1853
|
+
}, j(qe)(o.value.query, (n) => !["query", "more", "reset"].includes(n)), { style: { width: "98%" } }), {
|
|
1854
1854
|
default: h(() => [
|
|
1855
|
-
G(
|
|
1855
|
+
G(Dt, {
|
|
1856
1856
|
modelValue: o.value,
|
|
1857
|
-
"onUpdate:modelValue":
|
|
1857
|
+
"onUpdate:modelValue": U[1] || (U[1] = (n) => o.value = n),
|
|
1858
1858
|
info: k.value,
|
|
1859
|
-
"onUpdate:info":
|
|
1859
|
+
"onUpdate:info": U[2] || (U[2] = (n) => k.value = n),
|
|
1860
1860
|
more: !0
|
|
1861
|
-
},
|
|
1862
|
-
L(
|
|
1861
|
+
}, fe({ _: 2 }, [
|
|
1862
|
+
L(B.$slots, (n, b, M) => ({
|
|
1863
1863
|
name: b,
|
|
1864
1864
|
fn: h((q) => [
|
|
1865
|
-
y(
|
|
1865
|
+
y(B.$slots, b, { model: o.value }, void 0, !0)
|
|
1866
1866
|
])
|
|
1867
1867
|
}))
|
|
1868
1868
|
]), 1032, ["modelValue", "info"])
|
|
@@ -1872,23 +1872,23 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1872
1872
|
]),
|
|
1873
1873
|
_: 2
|
|
1874
1874
|
}, [
|
|
1875
|
-
(_ = (a = (s = (
|
|
1875
|
+
(_ = (a = (s = (m = (v = o.value) == null ? void 0 : v.query) == null ? void 0 : m.more) == null ? void 0 : s.dialog) == null ? void 0 : a.footer) != null && _.hidden ? void 0 : {
|
|
1876
1876
|
name: "footer",
|
|
1877
1877
|
fn: h(() => [
|
|
1878
|
-
W("div",
|
|
1878
|
+
W("div", gt(Lt(o.value.query.more.dialog.footer)), [
|
|
1879
1879
|
G(j(Me), x(o.value.query.query, {
|
|
1880
|
-
onClick:
|
|
1880
|
+
onClick: U[4] || (U[4] = (n) => o.value.query.query.click())
|
|
1881
1881
|
}), {
|
|
1882
1882
|
default: h(() => [
|
|
1883
|
-
|
|
1883
|
+
Te(be(o.value.query.query.label), 1)
|
|
1884
1884
|
]),
|
|
1885
1885
|
_: 1
|
|
1886
1886
|
}, 16),
|
|
1887
1887
|
G(j(Me), x(o.value.query.reset, {
|
|
1888
|
-
onClick:
|
|
1888
|
+
onClick: U[5] || (U[5] = (n) => o.value.query.reset.click())
|
|
1889
1889
|
}), {
|
|
1890
1890
|
default: h(() => [
|
|
1891
|
-
|
|
1891
|
+
Te(be(o.value.query.reset.label), 1)
|
|
1892
1892
|
]),
|
|
1893
1893
|
_: 1
|
|
1894
1894
|
}, 16)
|
|
@@ -1897,7 +1897,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1897
1897
|
key: "0"
|
|
1898
1898
|
}
|
|
1899
1899
|
]), 1040, ["modelValue"])) : me("", !0),
|
|
1900
|
-
G(
|
|
1900
|
+
G(zt, {
|
|
1901
1901
|
duration: 300,
|
|
1902
1902
|
name: "nested",
|
|
1903
1903
|
style: { padding: "10px" }
|
|
@@ -1905,19 +1905,19 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1905
1905
|
default: h(() => {
|
|
1906
1906
|
var n, b, M;
|
|
1907
1907
|
return [
|
|
1908
|
-
d.value && !((M = (b = (n = o.value) == null ? void 0 : n.query) == null ? void 0 : b.more) != null && M.hidden) && o.value.query.more.mode == 1 ? (u(), F("div",
|
|
1909
|
-
W("div",
|
|
1910
|
-
o.value.query.more.mode == 1 ?
|
|
1908
|
+
d.value && !((M = (b = (n = o.value) == null ? void 0 : n.query) == null ? void 0 : b.more) != null && M.hidden) && o.value.query.more.mode == 1 ? (u(), F("div", bl, [
|
|
1909
|
+
W("div", $l, [
|
|
1910
|
+
o.value.query.more.mode == 1 ? Ht((u(), C(j(dt), x({
|
|
1911
1911
|
key: 0,
|
|
1912
|
-
onSubmit:
|
|
1912
|
+
onSubmit: U[7] || (U[7] = ct(() => {
|
|
1913
1913
|
}, ["prevent"]))
|
|
1914
|
-
}, j(
|
|
1914
|
+
}, j(qe)(o.value.query, (q) => !["query", "more", "reset"].includes(q))), {
|
|
1915
1915
|
default: h(() => [
|
|
1916
|
-
(u(), C(
|
|
1916
|
+
(u(), C(Ue(w({ slots: B.$slots }, !0))))
|
|
1917
1917
|
]),
|
|
1918
1918
|
_: 1
|
|
1919
1919
|
}, 16)), [
|
|
1920
|
-
[
|
|
1920
|
+
[Pt, d.value]
|
|
1921
1921
|
]) : me("", !0)
|
|
1922
1922
|
])
|
|
1923
1923
|
])) : me("", !0)
|
|
@@ -1928,10 +1928,10 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1928
1928
|
], 64);
|
|
1929
1929
|
};
|
|
1930
1930
|
}
|
|
1931
|
-
},
|
|
1931
|
+
}, El = /* @__PURE__ */ Xe(wl, [["__scopeId", "data-v-9adf0bb6"]]), _l = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, kl = { style: { padding: "10px", "box-sizing": "border-box" } }, Cl = { style: { margin: "10px" } }, Dl = {
|
|
1932
1932
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
1933
1933
|
id: "excelSortEl"
|
|
1934
|
-
},
|
|
1934
|
+
}, Ml = ["textContent"], Vl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, xl = {
|
|
1935
1935
|
__name: "check-excel-item",
|
|
1936
1936
|
props: {
|
|
1937
1937
|
items: Array,
|
|
@@ -1939,7 +1939,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1939
1939
|
},
|
|
1940
1940
|
emits: ["excel"],
|
|
1941
1941
|
setup(f, { emit: i }) {
|
|
1942
|
-
const o = f, t = i, e =
|
|
1942
|
+
const o = f, t = i, e = le(o.items), d = () => {
|
|
1943
1943
|
e.value.forEach((V) => {
|
|
1944
1944
|
V.value = !0;
|
|
1945
1945
|
});
|
|
@@ -1947,7 +1947,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1947
1947
|
e.value.forEach((V) => {
|
|
1948
1948
|
V.value = !1;
|
|
1949
1949
|
});
|
|
1950
|
-
},
|
|
1950
|
+
}, T = () => {
|
|
1951
1951
|
t("excel", e.value, (V, D = "excel.xls") => {
|
|
1952
1952
|
if (!V) {
|
|
1953
1953
|
console.error("下载链接无效");
|
|
@@ -1961,21 +1961,21 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
});
|
|
1963
1963
|
};
|
|
1964
|
-
return
|
|
1965
|
-
const V = new
|
|
1964
|
+
return rt(() => {
|
|
1965
|
+
const V = new Ft(document.getElementById("excelSortEl"), {
|
|
1966
1966
|
animation: 150,
|
|
1967
1967
|
onEnd: () => {
|
|
1968
1968
|
V.toArray();
|
|
1969
1969
|
}
|
|
1970
1970
|
}), D = V;
|
|
1971
|
-
|
|
1971
|
+
Nt(() => {
|
|
1972
1972
|
D && D.destroy();
|
|
1973
1973
|
});
|
|
1974
1974
|
}), (V, D) => {
|
|
1975
|
-
const w =
|
|
1976
|
-
return u(), F("div",
|
|
1977
|
-
W("div",
|
|
1978
|
-
W("div",
|
|
1975
|
+
const w = I("el-divider"), z = I("el-alert"), ee = I("el-checkbox"), B = I("el-button");
|
|
1976
|
+
return u(), F("div", _l, [
|
|
1977
|
+
W("div", kl, [
|
|
1978
|
+
W("div", Cl, [
|
|
1979
1979
|
W("a", {
|
|
1980
1980
|
onClick: d,
|
|
1981
1981
|
style: { cursor: "pointer" }
|
|
@@ -1986,7 +1986,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1986
1986
|
style: { cursor: "pointer" }
|
|
1987
1987
|
}, "全不选")
|
|
1988
1988
|
]),
|
|
1989
|
-
G(
|
|
1989
|
+
G(z, {
|
|
1990
1990
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
1991
1991
|
type: "warning",
|
|
1992
1992
|
"show-icon": "",
|
|
@@ -1994,34 +1994,34 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
1994
1994
|
style: { "margin-bottom": "10px" }
|
|
1995
1995
|
}),
|
|
1996
1996
|
D[0] || (D[0] = W("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
1997
|
-
W("div",
|
|
1998
|
-
(u(!0), F(X, null, L(e.value, (
|
|
1997
|
+
W("div", Dl, [
|
|
1998
|
+
(u(!0), F(X, null, L(e.value, (U) => (u(), C(ee, {
|
|
1999
1999
|
class: "check-box-hover",
|
|
2000
2000
|
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" },
|
|
2001
|
-
"data-id":
|
|
2002
|
-
modelValue:
|
|
2003
|
-
"onUpdate:modelValue": (
|
|
2004
|
-
key:
|
|
2005
|
-
title:
|
|
2001
|
+
"data-id": U.key,
|
|
2002
|
+
modelValue: U.value,
|
|
2003
|
+
"onUpdate:modelValue": (se) => U.value = se,
|
|
2004
|
+
key: U.key,
|
|
2005
|
+
title: U.label
|
|
2006
2006
|
}, {
|
|
2007
2007
|
default: h(() => [
|
|
2008
2008
|
W("span", {
|
|
2009
|
-
textContent: be(
|
|
2009
|
+
textContent: be(U.label),
|
|
2010
2010
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2011
|
-
}, null, 8,
|
|
2011
|
+
}, null, 8, Ml)
|
|
2012
2012
|
]),
|
|
2013
2013
|
_: 2
|
|
2014
2014
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2015
2015
|
])
|
|
2016
2016
|
]),
|
|
2017
|
-
W("div",
|
|
2018
|
-
G(
|
|
2017
|
+
W("div", Vl, [
|
|
2018
|
+
G(B, {
|
|
2019
2019
|
type: "primary",
|
|
2020
|
-
onClick:
|
|
2021
|
-
disabled: e.value.filter((
|
|
2020
|
+
onClick: T,
|
|
2021
|
+
disabled: e.value.filter((U) => U.value).length < 1
|
|
2022
2022
|
}, {
|
|
2023
2023
|
default: h(() => [
|
|
2024
|
-
|
|
2024
|
+
Te(be(o.commitText), 1)
|
|
2025
2025
|
]),
|
|
2026
2026
|
_: 1
|
|
2027
2027
|
}, 8, ["disabled"])
|
|
@@ -2029,45 +2029,45 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
|
|
|
2029
2029
|
]);
|
|
2030
2030
|
};
|
|
2031
2031
|
}
|
|
2032
|
-
},
|
|
2033
|
-
|
|
2032
|
+
}, Tl = /* @__PURE__ */ Xe(xl, [["__scopeId", "data-v-04791df1"]]), et = new al("gyc");
|
|
2033
|
+
et.version(1).stores({
|
|
2034
2034
|
tableInfo: "++id,[page+key],page,key,showCol,width,sort"
|
|
2035
2035
|
});
|
|
2036
|
-
async function
|
|
2037
|
-
if (await
|
|
2038
|
-
let e = await
|
|
2039
|
-
return await
|
|
2036
|
+
async function vt(f, i, o = {}) {
|
|
2037
|
+
if (await et.tableInfo.where({ page: f, key: i }).count() > 0) {
|
|
2038
|
+
let e = await et.tableInfo.where({ page: f, key: i }).first();
|
|
2039
|
+
return await et.tableInfo.put({ ...e, ...o }), "update success";
|
|
2040
2040
|
} else {
|
|
2041
2041
|
let e = { showCol: !0, width: "auto", sort: 0, ...o };
|
|
2042
|
-
return await
|
|
2042
|
+
return await et.tableInfo.add({ page: f, key: i, ...e }), "add success";
|
|
2043
2043
|
}
|
|
2044
2044
|
}
|
|
2045
|
-
async function
|
|
2045
|
+
async function Mt(f, i, o = {}) {
|
|
2046
2046
|
const t = i.map(
|
|
2047
|
-
(e) =>
|
|
2047
|
+
(e) => vt(f, e.value, { ...e, ...o })
|
|
2048
2048
|
);
|
|
2049
2049
|
return await Promise.all(t), "batch update success";
|
|
2050
2050
|
}
|
|
2051
2051
|
async function Sl(f) {
|
|
2052
|
-
return await
|
|
2052
|
+
return await et.tableInfo.where({ page: f }).toArray();
|
|
2053
2053
|
}
|
|
2054
|
-
async function
|
|
2054
|
+
async function Fl(f) {
|
|
2055
2055
|
try {
|
|
2056
|
-
const i = await
|
|
2056
|
+
const i = await et.tableInfo.where({ page: f }).delete();
|
|
2057
2057
|
return console.log("删除了" + i + "条数据"), i;
|
|
2058
2058
|
} catch (i) {
|
|
2059
2059
|
throw console.error("删除表格项设置信息时出错:", i), i;
|
|
2060
2060
|
}
|
|
2061
2061
|
}
|
|
2062
|
-
const
|
|
2062
|
+
const ql = {
|
|
2063
2063
|
style: { margin: "10px" },
|
|
2064
2064
|
class: "allcheck"
|
|
2065
|
-
},
|
|
2065
|
+
}, Ol = {
|
|
2066
2066
|
id: "cols",
|
|
2067
2067
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2068
|
-
},
|
|
2068
|
+
}, Al = ["textContent"], Il = {
|
|
2069
2069
|
__name: "columns-setting",
|
|
2070
|
-
props: /* @__PURE__ */
|
|
2070
|
+
props: /* @__PURE__ */ Ne({
|
|
2071
2071
|
tuid: {
|
|
2072
2072
|
type: String,
|
|
2073
2073
|
required: !0
|
|
@@ -2078,12 +2078,12 @@ const Fl = {
|
|
|
2078
2078
|
}),
|
|
2079
2079
|
emits: ["update:modelValue"],
|
|
2080
2080
|
setup(f) {
|
|
2081
|
-
const i = f, o =
|
|
2081
|
+
const i = f, o = le([]), t = We(f, "modelValue"), e = async (D, w) => {
|
|
2082
2082
|
D ? t.value[w].showCol = !0 : t.value[w].showCol = !1;
|
|
2083
2083
|
try {
|
|
2084
|
-
await
|
|
2085
|
-
} catch (
|
|
2086
|
-
console.error("列显示状态保存信息时出错:",
|
|
2084
|
+
await vt(i.tuid, w, { showCol: D });
|
|
2085
|
+
} catch (z) {
|
|
2086
|
+
console.error("列显示状态保存信息时出错:", z), Ie({
|
|
2087
2087
|
type: "error",
|
|
2088
2088
|
message: "列显示状态保存信息失败!"
|
|
2089
2089
|
});
|
|
@@ -2091,19 +2091,19 @@ const Fl = {
|
|
|
2091
2091
|
}, d = () => {
|
|
2092
2092
|
const D = document.getElementById("cols");
|
|
2093
2093
|
if (D) {
|
|
2094
|
-
let w =
|
|
2094
|
+
let w = Ft.create(D, {
|
|
2095
2095
|
animation: 150,
|
|
2096
2096
|
filter: ".filtered",
|
|
2097
2097
|
//
|
|
2098
2098
|
sort: !0,
|
|
2099
2099
|
onEnd: () => {
|
|
2100
|
-
w.toArray().forEach(async (
|
|
2101
|
-
t.value[
|
|
2102
|
-
let
|
|
2100
|
+
w.toArray().forEach(async (ee, B) => {
|
|
2101
|
+
t.value[ee].sort = B;
|
|
2102
|
+
let U = t.value[ee].width || "auto";
|
|
2103
2103
|
try {
|
|
2104
|
-
await
|
|
2105
|
-
} catch (
|
|
2106
|
-
console.error("列排序和宽度保存信息时出错:",
|
|
2104
|
+
await vt(i.tuid, ee, { sort: B, width: U });
|
|
2105
|
+
} catch (se) {
|
|
2106
|
+
console.error("列排序和宽度保存信息时出错:", se), Ie({
|
|
2107
2107
|
type: "error",
|
|
2108
2108
|
message: "列排序和宽度保存信息失败!"
|
|
2109
2109
|
});
|
|
@@ -2115,42 +2115,42 @@ const Fl = {
|
|
|
2115
2115
|
}, k = async () => {
|
|
2116
2116
|
try {
|
|
2117
2117
|
const D = o.value.map((w) => (w.showCol = !0, t.value[w.value].showCol = !0, w));
|
|
2118
|
-
await
|
|
2118
|
+
await Mt(i.tuid, D, { showCol: !0 });
|
|
2119
2119
|
} catch (D) {
|
|
2120
|
-
console.error("全选列保存信息时出错:", D),
|
|
2120
|
+
console.error("全选列保存信息时出错:", D), Ie({
|
|
2121
2121
|
type: "error",
|
|
2122
2122
|
message: "全选列保存信息失败!"
|
|
2123
2123
|
});
|
|
2124
2124
|
}
|
|
2125
|
-
},
|
|
2125
|
+
}, T = async () => {
|
|
2126
2126
|
try {
|
|
2127
2127
|
const D = o.value.filter((w) => !w.alwaysShow && w.value != "control");
|
|
2128
2128
|
D.forEach((w) => {
|
|
2129
2129
|
w.showCol = !1, t.value[w.value].showCol = !1;
|
|
2130
|
-
}), await
|
|
2130
|
+
}), await Mt(i.tuid, D, { showCol: !1 });
|
|
2131
2131
|
} catch (D) {
|
|
2132
|
-
console.error("清除列保存信息时出错:", D),
|
|
2132
|
+
console.error("清除列保存信息时出错:", D), Ie({
|
|
2133
2133
|
type: "error",
|
|
2134
2134
|
message: "清除列保存信息失败!"
|
|
2135
2135
|
});
|
|
2136
2136
|
}
|
|
2137
2137
|
}, V = () => {
|
|
2138
|
-
|
|
2138
|
+
xt.confirm("确定要复位吗?", "提示", {
|
|
2139
2139
|
confirmButtonText: "确定",
|
|
2140
2140
|
cancelButtonText: "取消",
|
|
2141
2141
|
type: "warning"
|
|
2142
2142
|
}).then(() => {
|
|
2143
|
-
|
|
2143
|
+
Fl(i.tuid).then((D) => {
|
|
2144
2144
|
window.location.reload();
|
|
2145
2145
|
}).catch((D) => {
|
|
2146
|
-
console.error("复位操作出错:", D),
|
|
2146
|
+
console.error("复位操作出错:", D), Ie({
|
|
2147
2147
|
type: "info",
|
|
2148
2148
|
message: "复位失败!"
|
|
2149
2149
|
});
|
|
2150
2150
|
});
|
|
2151
2151
|
});
|
|
2152
2152
|
};
|
|
2153
|
-
return
|
|
2153
|
+
return rt(async () => {
|
|
2154
2154
|
o.value = Object.entries(t.value).filter(([, D]) => D.visible !== !1).filter(([, D]) => D.type != "hidden").map(([D, w]) => ({
|
|
2155
2155
|
label: w.label,
|
|
2156
2156
|
value: D,
|
|
@@ -2160,16 +2160,16 @@ const Fl = {
|
|
|
2160
2160
|
width: w.width || "auto"
|
|
2161
2161
|
})).sort((D, w) => D.sort - w.sort), d();
|
|
2162
2162
|
}), (D, w) => {
|
|
2163
|
-
const
|
|
2163
|
+
const z = I("el-divider"), ee = I("el-alert"), B = I("el-checkbox");
|
|
2164
2164
|
return u(), F("div", null, [
|
|
2165
|
-
W("div",
|
|
2165
|
+
W("div", ql, [
|
|
2166
2166
|
W("a", { onClick: k }, "全选"),
|
|
2167
|
-
G(
|
|
2168
|
-
W("a", { onClick:
|
|
2169
|
-
G(
|
|
2167
|
+
G(z, { direction: "vertical" }),
|
|
2168
|
+
W("a", { onClick: T }, "全不选"),
|
|
2169
|
+
G(z, { direction: "vertical" }),
|
|
2170
2170
|
W("a", { onClick: V }, "复位")
|
|
2171
2171
|
]),
|
|
2172
|
-
G(
|
|
2172
|
+
G(ee, {
|
|
2173
2173
|
title: "拖动表格列标题可以改变表格列显示顺序 !",
|
|
2174
2174
|
type: "warning",
|
|
2175
2175
|
"show-icon": "",
|
|
@@ -2177,24 +2177,24 @@ const Fl = {
|
|
|
2177
2177
|
style: { "margin-bottom": "10px" }
|
|
2178
2178
|
}),
|
|
2179
2179
|
W("div", null, [
|
|
2180
|
-
W("div",
|
|
2181
|
-
(u(!0), F(X, null, L(o.value, (
|
|
2182
|
-
modelValue:
|
|
2183
|
-
"onUpdate:modelValue": (
|
|
2184
|
-
"data-id":
|
|
2185
|
-
class: St(["check-box-hover",
|
|
2186
|
-
onChange: (
|
|
2180
|
+
W("div", Ol, [
|
|
2181
|
+
(u(!0), F(X, null, L(o.value, (U) => (u(), C(B, {
|
|
2182
|
+
modelValue: U.showCol,
|
|
2183
|
+
"onUpdate:modelValue": (se) => U.showCol = se,
|
|
2184
|
+
"data-id": U.value,
|
|
2185
|
+
class: St(["check-box-hover", U.value == "control" ? "filtered" : ""]),
|
|
2186
|
+
onChange: (se) => e(se, U.value),
|
|
2187
2187
|
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" },
|
|
2188
|
-
value:
|
|
2189
|
-
title:
|
|
2190
|
-
disabled:
|
|
2191
|
-
key:
|
|
2188
|
+
value: U.value,
|
|
2189
|
+
title: U.label,
|
|
2190
|
+
disabled: U.alwaysShow,
|
|
2191
|
+
key: U.value
|
|
2192
2192
|
}, {
|
|
2193
2193
|
default: h(() => [
|
|
2194
2194
|
W("span", {
|
|
2195
|
-
textContent: be(
|
|
2195
|
+
textContent: be(U.label),
|
|
2196
2196
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2197
|
-
}, null, 8,
|
|
2197
|
+
}, null, 8, Al)
|
|
2198
2198
|
]),
|
|
2199
2199
|
_: 2
|
|
2200
2200
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2203,7 +2203,7 @@ const Fl = {
|
|
|
2203
2203
|
]);
|
|
2204
2204
|
};
|
|
2205
2205
|
}
|
|
2206
|
-
},
|
|
2206
|
+
}, Bl = /* @__PURE__ */ Xe(Il, [["__scopeId", "data-v-70fe569f"]]), Yl = { class: "title" }, Ul = { class: "content" }, Rl = {
|
|
2207
2207
|
__name: "g-cell-toopTip",
|
|
2208
2208
|
props: {
|
|
2209
2209
|
content: {
|
|
@@ -2217,44 +2217,44 @@ const Fl = {
|
|
|
2217
2217
|
},
|
|
2218
2218
|
setup(f) {
|
|
2219
2219
|
const i = f, o = () => {
|
|
2220
|
-
i.content ? (navigator.clipboard.writeText(i.content),
|
|
2220
|
+
i.content ? (navigator.clipboard.writeText(i.content), Ie.success("复制成功")) : Ie.warning("没有内容可复制");
|
|
2221
2221
|
};
|
|
2222
2222
|
return (t, e) => (u(), F("div", {
|
|
2223
2223
|
class: "g-cell-toopTip",
|
|
2224
|
-
style:
|
|
2224
|
+
style: Se({ width: i.column.width + "px" })
|
|
2225
2225
|
}, [
|
|
2226
|
-
W("div",
|
|
2226
|
+
W("div", Yl, [
|
|
2227
2227
|
e[0] || (e[0] = W("span", { class: "title-text" }, "内容", -1)),
|
|
2228
2228
|
W("span", {
|
|
2229
2229
|
class: "copy-btn",
|
|
2230
2230
|
onClick: o,
|
|
2231
2231
|
title: "复制内容"
|
|
2232
2232
|
}, [
|
|
2233
|
-
G(j(
|
|
2233
|
+
G(j(el))
|
|
2234
2234
|
])
|
|
2235
2235
|
]),
|
|
2236
|
-
W("div",
|
|
2236
|
+
W("div", Ul, be(i.content), 1)
|
|
2237
2237
|
], 4));
|
|
2238
2238
|
}
|
|
2239
|
-
},
|
|
2239
|
+
}, jl = /* @__PURE__ */ Xe(Rl, [["__scopeId", "data-v-f28912da"]]), Ll = { key: 0 }, zl = { style: { display: "flex", "margin-top": "-2px" } }, Hl = { style: { display: "flex", flex: "1" } }, Pl = {
|
|
2240
2240
|
style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
|
|
2241
2241
|
id: "table-form"
|
|
2242
|
-
},
|
|
2242
|
+
}, Nl = { key: 1 }, Wl = { style: { display: "flex" } }, Xl = { style: { display: "flex", flex: "1" } }, Gl = { class: "g-table-container" }, Ql = {
|
|
2243
2243
|
key: 0,
|
|
2244
2244
|
class: "table-query-container"
|
|
2245
|
-
},
|
|
2245
|
+
}, Zl = { class: "table-container" }, Jl = ["innerHTML"], Kl = /* @__PURE__ */ Object.assign({
|
|
2246
2246
|
name: "g-table",
|
|
2247
2247
|
inheritAttrs: !1
|
|
2248
2248
|
}, {
|
|
2249
2249
|
__name: "g-table",
|
|
2250
|
-
props: /* @__PURE__ */
|
|
2250
|
+
props: /* @__PURE__ */ Ne({
|
|
2251
2251
|
name: String,
|
|
2252
2252
|
require: !0
|
|
2253
2253
|
}, {
|
|
2254
2254
|
modelValue: { required: !0 },
|
|
2255
2255
|
modelModifiers: {}
|
|
2256
2256
|
}),
|
|
2257
|
-
emits: /* @__PURE__ */
|
|
2257
|
+
emits: /* @__PURE__ */ Ne([
|
|
2258
2258
|
"load",
|
|
2259
2259
|
"open",
|
|
2260
2260
|
"delete",
|
|
@@ -2264,10 +2264,10 @@ const Fl = {
|
|
|
2264
2264
|
"row-save"
|
|
2265
2265
|
], ["update:modelValue"]),
|
|
2266
2266
|
setup(f, { expose: i, emit: o }) {
|
|
2267
|
-
var
|
|
2268
|
-
const t = o, e =
|
|
2267
|
+
var Re, ut, lt, nt, st, it, at;
|
|
2268
|
+
const t = o, e = We(f, "modelValue"), d = _t("options"), k = le({}), T = le(null), V = le(null), D = Object.entries(e.value).filter(([l, r]) => (r == null ? void 0 : r.search) !== void 0).map(([l, r]) => [l, r.value]);
|
|
2269
2269
|
k.value = Object.fromEntries(D);
|
|
2270
|
-
const w =
|
|
2270
|
+
const w = le(!1), z = [
|
|
2271
2271
|
"type",
|
|
2272
2272
|
"index",
|
|
2273
2273
|
"label",
|
|
@@ -2296,7 +2296,7 @@ const Fl = {
|
|
|
2296
2296
|
"filter-multiple",
|
|
2297
2297
|
"filter-method",
|
|
2298
2298
|
"filtered-value"
|
|
2299
|
-
],
|
|
2299
|
+
], ee = le([]), B = f, U = kt(), se = le({}), re = le([]), K = le(null), ce = le(""), we = le({
|
|
2300
2300
|
autoWatch: !1,
|
|
2301
2301
|
data: [],
|
|
2302
2302
|
border: !0,
|
|
@@ -2310,31 +2310,31 @@ const Fl = {
|
|
|
2310
2310
|
t(
|
|
2311
2311
|
"load",
|
|
2312
2312
|
{ currentPage: l, pageSize: r, ...k.value },
|
|
2313
|
-
(
|
|
2313
|
+
(p = [], S = 0, { fields: P = [], sums: N = {} } = {}) => {
|
|
2314
2314
|
var Z, Ee;
|
|
2315
|
-
if (!Array.isArray(
|
|
2316
|
-
console.error("从 load 事件回调中接收到的数据不是数组格式。"),
|
|
2315
|
+
if (!Array.isArray(p)) {
|
|
2316
|
+
console.error("从 load 事件回调中接收到的数据不是数组格式。"), Ie.error("数据加载失败,请检查数据格式。");
|
|
2317
2317
|
return;
|
|
2318
2318
|
}
|
|
2319
|
-
if (typeof
|
|
2320
|
-
console.error("从 load 事件回调中接收到的 total 不是数字格式。"),
|
|
2319
|
+
if (typeof S != "number") {
|
|
2320
|
+
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Ie.error("数据加载失败,请检查数据格式。");
|
|
2321
2321
|
return;
|
|
2322
2322
|
}
|
|
2323
|
-
e.value.table.data =
|
|
2323
|
+
e.value.table.data = p, ((Ee = (Z = e.value.control) == null ? void 0 : Z.add) == null ? void 0 : Ee.inline) === !0 && e.value.table.data.unshift(K.value), e.value.table.page.total = S, re.value = P, se.value = N, Ve(), ce.value = Math.random().toString(36).substring(2);
|
|
2324
2324
|
},
|
|
2325
|
-
|
|
2325
|
+
K.value
|
|
2326
2326
|
);
|
|
2327
|
-
} catch (
|
|
2328
|
-
console.error("触发 load 事件时出现错误:",
|
|
2327
|
+
} catch (p) {
|
|
2328
|
+
console.error("触发 load 事件时出现错误:", p), Ie.error("数据加载时出现错误,请稍后重试。");
|
|
2329
2329
|
}
|
|
2330
2330
|
},
|
|
2331
|
-
onHeaderDragend: (l, r,
|
|
2332
|
-
|
|
2331
|
+
onHeaderDragend: (l, r, p) => {
|
|
2332
|
+
vt(B.name, p.property, {
|
|
2333
2333
|
width: l
|
|
2334
2334
|
});
|
|
2335
2335
|
},
|
|
2336
|
-
onRowDblclick: (l, r,
|
|
2337
|
-
e.value.table.dblclickType == "edit" ? v(l, r,
|
|
2336
|
+
onRowDblclick: (l, r, p) => {
|
|
2337
|
+
e.value.table.dblclickType == "edit" ? v(l, r, p, e) : e.value.table.dblclickType == "view" && s(l, r, p, e);
|
|
2338
2338
|
},
|
|
2339
2339
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
2340
2340
|
page: {
|
|
@@ -2358,8 +2358,8 @@ const Fl = {
|
|
|
2358
2358
|
}
|
|
2359
2359
|
},
|
|
2360
2360
|
dblclickType: "edit",
|
|
2361
|
-
"summary-method": ({ columns: l, data: r },
|
|
2362
|
-
onSortChange: ({ column: l, prop: r, order:
|
|
2361
|
+
"summary-method": ({ columns: l, data: r }, p) => p,
|
|
2362
|
+
onSortChange: ({ column: l, prop: r, order: p }, S) => {
|
|
2363
2363
|
}
|
|
2364
2364
|
});
|
|
2365
2365
|
e.value.table = xe(
|
|
@@ -2376,7 +2376,7 @@ const Fl = {
|
|
|
2376
2376
|
"min-width": 100,
|
|
2377
2377
|
width: 160,
|
|
2378
2378
|
fixed: "right",
|
|
2379
|
-
style: { ...(
|
|
2379
|
+
style: { ...(ut = (Re = e.value) == null ? void 0 : Re.control) == null ? void 0 : ut.style },
|
|
2380
2380
|
validate: async (l) => await !0,
|
|
2381
2381
|
add: {
|
|
2382
2382
|
label: "新增",
|
|
@@ -2391,22 +2391,22 @@ const Fl = {
|
|
|
2391
2391
|
text: !0,
|
|
2392
2392
|
type: "success",
|
|
2393
2393
|
mode: "dialog",
|
|
2394
|
-
auth: (l, r,
|
|
2394
|
+
auth: (l, r, p, S) => !1
|
|
2395
2395
|
},
|
|
2396
2396
|
edit: {
|
|
2397
2397
|
label: "编辑",
|
|
2398
2398
|
text: !0,
|
|
2399
2399
|
type: "primary",
|
|
2400
2400
|
mode: "dialog",
|
|
2401
|
-
auth: (l, r,
|
|
2401
|
+
auth: (l, r, p, S) => !0
|
|
2402
2402
|
},
|
|
2403
2403
|
delete: {
|
|
2404
2404
|
text: !0,
|
|
2405
2405
|
label: "删除",
|
|
2406
2406
|
type: "danger",
|
|
2407
|
-
auth: (l, r,
|
|
2407
|
+
auth: (l, r, p, S) => {
|
|
2408
2408
|
var P, N, Z;
|
|
2409
|
-
return !(((Z = (N = (P =
|
|
2409
|
+
return !(((Z = (N = (P = S.value) == null ? void 0 : P.control) == null ? void 0 : N.add) == null ? void 0 : Z.inline) === !0 && p === 0);
|
|
2410
2410
|
},
|
|
2411
2411
|
dialog: {
|
|
2412
2412
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -2440,21 +2440,21 @@ const Fl = {
|
|
|
2440
2440
|
sort: -1,
|
|
2441
2441
|
addLabel: "新增",
|
|
2442
2442
|
auth: () => {
|
|
2443
|
-
var l, r,
|
|
2444
|
-
return ((
|
|
2443
|
+
var l, r, p;
|
|
2444
|
+
return ((p = (r = (l = e.value) == null ? void 0 : l.control) == null ? void 0 : r.add) == null ? void 0 : p.inline) === !0;
|
|
2445
2445
|
}
|
|
2446
2446
|
},
|
|
2447
|
-
dropdown: (l, r,
|
|
2447
|
+
dropdown: (l, r, p, S) => ({
|
|
2448
2448
|
label: "编辑",
|
|
2449
2449
|
operate: "edit",
|
|
2450
2450
|
"split-button": !0,
|
|
2451
2451
|
type: "primary",
|
|
2452
2452
|
size: "small",
|
|
2453
|
-
auth: () => !(
|
|
2453
|
+
auth: () => !(S.control.add.inline === !0 && p == 0),
|
|
2454
2454
|
onClick: () => {
|
|
2455
2455
|
var N;
|
|
2456
|
-
let P = (N = pe(l, r,
|
|
2457
|
-
P === "edit" ? v(l, r,
|
|
2456
|
+
let P = (N = pe(l, r, p, S)) == null ? void 0 : N.operate;
|
|
2457
|
+
P === "edit" ? v(l, r, p, S) : P === "delete" ? m(l, r, p, S) : P === "view" && s(l, r, p, S);
|
|
2458
2458
|
},
|
|
2459
2459
|
"button-props": { round: !0, plain: !0 }
|
|
2460
2460
|
})
|
|
@@ -2462,31 +2462,31 @@ const Fl = {
|
|
|
2462
2462
|
e.value.control = xe(
|
|
2463
2463
|
he,
|
|
2464
2464
|
d == null ? void 0 : d.control,
|
|
2465
|
-
(
|
|
2465
|
+
(lt = e.value) == null ? void 0 : lt.control
|
|
2466
2466
|
);
|
|
2467
|
-
const pe = (l, r,
|
|
2468
|
-
var Ee, ke,
|
|
2469
|
-
if (!l || !r ||
|
|
2467
|
+
const pe = (l, r, p, S) => {
|
|
2468
|
+
var Ee, ke, je, Le, ze, Ge;
|
|
2469
|
+
if (!l || !r || p == null)
|
|
2470
2470
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
2471
|
-
const P = ((Ee = he.dropdown) == null ? void 0 : Ee.call(he, l, r,
|
|
2471
|
+
const P = ((Ee = he.dropdown) == null ? void 0 : Ee.call(he, l, r, p, S)) || {}, N = ((je = (ke = d == null ? void 0 : d.control) == null ? void 0 : ke.dropdown) == null ? void 0 : je.call(ke, l, r, p, S)) || {}, Z = ((Ge = (ze = (Le = e.value) == null ? void 0 : Le.control) == null ? void 0 : ze.dropdown) == null ? void 0 : Ge.call(ze, l, r, p, S)) || {};
|
|
2472
2472
|
return xe(P, N, Z) || {};
|
|
2473
|
-
},
|
|
2473
|
+
}, ie = {
|
|
2474
2474
|
type: "hidden",
|
|
2475
2475
|
"min-width": 100,
|
|
2476
2476
|
align: "center",
|
|
2477
|
-
formatter: (l, r,
|
|
2478
|
-
"tooltip-formatter": ({ row: l, column: r, cellValue:
|
|
2477
|
+
formatter: (l, r, p, S) => p,
|
|
2478
|
+
"tooltip-formatter": ({ row: l, column: r, cellValue: p }) => Ae(jl, { content: p, column: r })
|
|
2479
2479
|
};
|
|
2480
2480
|
e.value.tableColumns = xe(
|
|
2481
|
-
|
|
2481
|
+
ie,
|
|
2482
2482
|
d == null ? void 0 : d.tableColumns,
|
|
2483
|
-
(
|
|
2483
|
+
(nt = e.value) == null ? void 0 : nt.tableColumns
|
|
2484
2484
|
), e.value.form = xe(
|
|
2485
|
-
|
|
2485
|
+
Ot,
|
|
2486
2486
|
d == null ? void 0 : d.form,
|
|
2487
|
-
(
|
|
2487
|
+
(st = e.value) == null ? void 0 : st.form
|
|
2488
2488
|
);
|
|
2489
|
-
const
|
|
2489
|
+
const ue = {
|
|
2490
2490
|
type: "hidden",
|
|
2491
2491
|
labelPosition: "right",
|
|
2492
2492
|
style: {
|
|
@@ -2494,11 +2494,11 @@ const Fl = {
|
|
|
2494
2494
|
}
|
|
2495
2495
|
};
|
|
2496
2496
|
e.value.formItems = xe(
|
|
2497
|
-
|
|
2497
|
+
ue,
|
|
2498
2498
|
d == null ? void 0 : d.formItems,
|
|
2499
|
-
(
|
|
2499
|
+
(it = e == null ? void 0 : e.value) == null ? void 0 : it.formItems
|
|
2500
2500
|
);
|
|
2501
|
-
const
|
|
2501
|
+
const ae = {
|
|
2502
2502
|
title: "编辑",
|
|
2503
2503
|
mode: "drawer",
|
|
2504
2504
|
type: "hidden",
|
|
@@ -2511,109 +2511,109 @@ const Fl = {
|
|
|
2511
2511
|
overflow: !0,
|
|
2512
2512
|
max: {
|
|
2513
2513
|
style: {},
|
|
2514
|
-
icon: () =>
|
|
2514
|
+
icon: () => Ae(tl)
|
|
2515
2515
|
},
|
|
2516
2516
|
min: {
|
|
2517
2517
|
style: {},
|
|
2518
|
-
icon: () =>
|
|
2518
|
+
icon: () => Ae(ll)
|
|
2519
2519
|
// 最小化图标
|
|
2520
2520
|
}
|
|
2521
2521
|
};
|
|
2522
2522
|
e.value.dialog = xe(
|
|
2523
|
-
|
|
2523
|
+
ae,
|
|
2524
2524
|
d == null ? void 0 : d.dialog,
|
|
2525
|
-
(
|
|
2525
|
+
(at = e.value) == null ? void 0 : at.dialog
|
|
2526
2526
|
);
|
|
2527
2527
|
const $e = (l, r) => {
|
|
2528
|
-
let
|
|
2529
|
-
if (l.decimals && !isNaN(parseFloat(r)) && (typeof l.decimals == "number" ?
|
|
2530
|
-
parseFloat(
|
|
2531
|
-
).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) &&
|
|
2528
|
+
let p = r;
|
|
2529
|
+
if (l.decimals && !isNaN(parseFloat(r)) && (typeof l.decimals == "number" ? p = parseFloat(p).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? p = parseFloat(p).toFixed(l.decimals.num) : p = parseFloat(
|
|
2530
|
+
parseFloat(p).toFixed(l.decimals.num)
|
|
2531
|
+
).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && yt(r).isValid()) {
|
|
2532
2532
|
const P = {
|
|
2533
2533
|
date: "YYYY-MM-DD",
|
|
2534
2534
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
2535
2535
|
time: "HH:mm:ss"
|
|
2536
2536
|
};
|
|
2537
|
-
|
|
2537
|
+
p = l.format ? yt(p).format(l.format) : yt(p).format(P[l.type]);
|
|
2538
2538
|
}
|
|
2539
|
-
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130,
|
|
2540
|
-
parseFloat(
|
|
2541
|
-
)}">${
|
|
2542
|
-
},
|
|
2539
|
+
return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, p = `<span title="${Et(
|
|
2540
|
+
parseFloat(p)
|
|
2541
|
+
)}">${pa(parseFloat(p))}</span>`), l.prefix && p && (p = `<span>${l.prefix}${p}</span>`), l.suffix && p && (p = `${p}<span>${l.suffix}</span>`), p;
|
|
2542
|
+
}, ne = (l) => {
|
|
2543
2543
|
k.value = Object.fromEntries(D), e.value.table.load();
|
|
2544
2544
|
}, g = (l) => {
|
|
2545
2545
|
k.value = l, e.value.table.load();
|
|
2546
2546
|
}, E = async (l) => {
|
|
2547
|
-
var r,
|
|
2547
|
+
var r, p;
|
|
2548
2548
|
e.value.form.modalState = "add";
|
|
2549
2549
|
try {
|
|
2550
2550
|
if (!await ((r = e.value.control) == null ? void 0 : r.validate("add", { m: l }))) return;
|
|
2551
|
-
} catch (
|
|
2552
|
-
console.error("验证失败:",
|
|
2551
|
+
} catch (S) {
|
|
2552
|
+
console.error("验证失败:", S);
|
|
2553
2553
|
return;
|
|
2554
2554
|
}
|
|
2555
|
-
(
|
|
2556
|
-
e.value[
|
|
2557
|
-
}), w.value = !0, t("open", "add", { m: l }),
|
|
2558
|
-
}, v = async (l, r,
|
|
2555
|
+
(p = e.value.control.add) != null && p.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(K.value), t("open", "row-add", { initFormData: K.value })) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(K.value).forEach((S) => {
|
|
2556
|
+
e.value[S] && (e.value[S].value = K.value[S]);
|
|
2557
|
+
}), w.value = !0, t("open", "add", { m: l }), mt());
|
|
2558
|
+
}, v = async (l, r, p, S) => {
|
|
2559
2559
|
var P, N;
|
|
2560
2560
|
e.value.form.modalState = "edit";
|
|
2561
2561
|
try {
|
|
2562
|
-
if (!await ((P = e.value.control) == null ? void 0 : P.validate("edit", { row: l, column: r, $index:
|
|
2562
|
+
if (!await ((P = e.value.control) == null ? void 0 : P.validate("edit", { row: l, column: r, $index: p, m: S }))) return;
|
|
2563
2563
|
} catch (Z) {
|
|
2564
2564
|
console.error("验证失败:", Z);
|
|
2565
2565
|
return;
|
|
2566
2566
|
}
|
|
2567
|
-
(N = e.value.control.edit) != null && N.click ? e.value.control.edit.click(l, r,
|
|
2567
|
+
(N = e.value.control.edit) != null && N.click ? e.value.control.edit.click(l, r, p, S) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((Z) => {
|
|
2568
2568
|
e.value[Z] && (e.value[Z].value = l[Z]);
|
|
2569
|
-
}), w.value = !0, t("open", "edit", { m:
|
|
2570
|
-
},
|
|
2569
|
+
}), w.value = !0, t("open", "edit", { m: S, row: l, column: r, $index: p }), mt());
|
|
2570
|
+
}, m = async (l, r, p, S) => {
|
|
2571
2571
|
var P, N;
|
|
2572
2572
|
try {
|
|
2573
|
-
if (!await ((P = e.value.control) == null ? void 0 : P.validate("delete", { row: l, column: r, $index:
|
|
2573
|
+
if (!await ((P = e.value.control) == null ? void 0 : P.validate("delete", { row: l, column: r, $index: p, m: S }))) return;
|
|
2574
2574
|
} catch (Z) {
|
|
2575
2575
|
console.error("验证失败:", Z);
|
|
2576
2576
|
return;
|
|
2577
2577
|
}
|
|
2578
2578
|
if ((N = e.value.control.delete) != null && N.click)
|
|
2579
|
-
e.value.control.delete.click(l, r,
|
|
2579
|
+
e.value.control.delete.click(l, r, p, S);
|
|
2580
2580
|
else {
|
|
2581
2581
|
let { message: Z, title: Ee, options: ke } = e.value.control.delete.dialog;
|
|
2582
|
-
|
|
2582
|
+
xt.confirm(Z, Ee, ke).then(() => {
|
|
2583
2583
|
t(
|
|
2584
2584
|
"delete",
|
|
2585
|
-
{ row: l, column: r, $index:
|
|
2586
|
-
(
|
|
2587
|
-
|
|
2585
|
+
{ row: l, column: r, $index: p, m: S },
|
|
2586
|
+
(je = !0, Le = !1) => {
|
|
2587
|
+
je && (e.value.table.data.splice(p, 1), e.value.table.page.total--), Le && e.value.table.load();
|
|
2588
2588
|
}
|
|
2589
2589
|
);
|
|
2590
2590
|
}).catch(() => {
|
|
2591
2591
|
});
|
|
2592
2592
|
}
|
|
2593
|
-
}, s = async (l, r,
|
|
2593
|
+
}, s = async (l, r, p, S) => {
|
|
2594
2594
|
var P, N;
|
|
2595
2595
|
e.value.form.modalState = void 0;
|
|
2596
2596
|
try {
|
|
2597
|
-
if (!await ((P = e.value.control) == null ? void 0 : P.validate("view", { row: l, column: r, $index:
|
|
2597
|
+
if (!await ((P = e.value.control) == null ? void 0 : P.validate("view", { row: l, column: r, $index: p, m: S }))) return;
|
|
2598
2598
|
} catch (Z) {
|
|
2599
2599
|
console.error("验证失败:", Z);
|
|
2600
2600
|
return;
|
|
2601
2601
|
}
|
|
2602
|
-
(N = e.value.control.view) != null && N.click ? e.value.control.view.click(l, r,
|
|
2602
|
+
(N = e.value.control.view) != null && N.click ? e.value.control.view.click(l, r, p, S) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((Z) => {
|
|
2603
2603
|
e.value[Z] && (e.value[Z].value = l[Z]);
|
|
2604
|
-
}), w.value = !0, t("open", "view", { m:
|
|
2605
|
-
}, a = (l, r,
|
|
2604
|
+
}), w.value = !0, t("open", "view", { m: S, row: l, column: r, $index: p }), mt());
|
|
2605
|
+
}, a = (l, r, p, S) => {
|
|
2606
2606
|
var P;
|
|
2607
|
-
(P = e.value.control.save) != null && P.click ? e.value.control.save.click(l, r,
|
|
2607
|
+
(P = e.value.control.save) != null && P.click ? e.value.control.save.click(l, r, p, S) : t(
|
|
2608
2608
|
"row-save",
|
|
2609
|
-
{ row: l, column: r, $index:
|
|
2609
|
+
{ row: l, column: r, $index: p, data: e.value.table.data },
|
|
2610
2610
|
(N = !0, Z = !0) => {
|
|
2611
|
-
N && e.value.table.load(), Z &&
|
|
2612
|
-
|
|
2611
|
+
N && e.value.table.load(), Z && tt(() => {
|
|
2612
|
+
K.value = Object.assign(
|
|
2613
2613
|
{},
|
|
2614
2614
|
Object.fromEntries(
|
|
2615
2615
|
Object.entries(
|
|
2616
|
-
|
|
2616
|
+
qe(e.value, (Ee, ke) => ke.type != "control" && ke.editor !== !1 && ke.type != "hidden")
|
|
2617
2617
|
).map(([Ee, ke]) => [Ee, ke.value])
|
|
2618
2618
|
)
|
|
2619
2619
|
);
|
|
@@ -2621,27 +2621,27 @@ const Fl = {
|
|
|
2621
2621
|
}
|
|
2622
2622
|
);
|
|
2623
2623
|
}, _ = (l, r) => {
|
|
2624
|
-
t("submit", e.value.form.modalState, l, r, (
|
|
2625
|
-
|
|
2624
|
+
t("submit", e.value.form.modalState, l, r, (p) => {
|
|
2625
|
+
p && (w.value = !1, r.table.load());
|
|
2626
2626
|
});
|
|
2627
2627
|
}, n = (l) => {
|
|
2628
2628
|
t("reset", l);
|
|
2629
2629
|
}, b = (l, r) => {
|
|
2630
|
-
var
|
|
2631
|
-
if ((
|
|
2630
|
+
var p;
|
|
2631
|
+
if ((p = l.control.download) != null && p.click)
|
|
2632
2632
|
l.control.download.click(l, r);
|
|
2633
2633
|
else {
|
|
2634
|
-
let
|
|
2634
|
+
let S = wt(
|
|
2635
2635
|
{
|
|
2636
2636
|
title: l.control.download.label || l.control.download.title,
|
|
2637
2637
|
size: l.control.download.size || 480,
|
|
2638
2638
|
width: l.control.download.width || 600,
|
|
2639
2639
|
slots: {
|
|
2640
|
-
default: () =>
|
|
2640
|
+
default: () => Ae(Tl, {
|
|
2641
2641
|
items: r,
|
|
2642
2642
|
commitText: l.control.download.excelLabel,
|
|
2643
2643
|
onExcel: (P, N) => {
|
|
2644
|
-
t("download", P, k.value, N),
|
|
2644
|
+
t("download", P, k.value, N), S();
|
|
2645
2645
|
}
|
|
2646
2646
|
})
|
|
2647
2647
|
}
|
|
@@ -2651,60 +2651,60 @@ const Fl = {
|
|
|
2651
2651
|
}
|
|
2652
2652
|
}, M = (l) => {
|
|
2653
2653
|
var r;
|
|
2654
|
-
(r = l.control.setting) != null && r.click ? l.control.setting.click(l) :
|
|
2654
|
+
(r = l.control.setting) != null && r.click ? l.control.setting.click(l) : wt(
|
|
2655
2655
|
{
|
|
2656
2656
|
title: l.control.setting.label || l.control.setting.title,
|
|
2657
2657
|
size: l.control.setting.size || 470,
|
|
2658
2658
|
width: l.control.setting.width || 600,
|
|
2659
2659
|
slots: {
|
|
2660
|
-
default: () =>
|
|
2660
|
+
default: () => Ae(Bl, {
|
|
2661
2661
|
modelValue: l,
|
|
2662
|
-
tuid:
|
|
2662
|
+
tuid: B.name
|
|
2663
2663
|
})
|
|
2664
2664
|
}
|
|
2665
2665
|
},
|
|
2666
2666
|
l.control.setting.mode
|
|
2667
2667
|
);
|
|
2668
|
-
}, q = e.value.control,
|
|
2668
|
+
}, q = e.value.control, oe = [
|
|
2669
2669
|
{ type: "add", func: E },
|
|
2670
2670
|
{ type: "download", func: b },
|
|
2671
2671
|
{ type: "setting", func: M },
|
|
2672
2672
|
{ type: "view", func: s },
|
|
2673
2673
|
{ type: "edit", func: v },
|
|
2674
|
-
{ type: "delete", func:
|
|
2674
|
+
{ type: "delete", func: m },
|
|
2675
2675
|
{ type: "save", func: a }
|
|
2676
|
-
],
|
|
2677
|
-
var
|
|
2676
|
+
], de = (l) => oe.filter((r) => l.includes(r.type)).map(({ type: r, func: p }) => {
|
|
2677
|
+
var S, P, N;
|
|
2678
2678
|
return {
|
|
2679
2679
|
name: `control-${r}`,
|
|
2680
2680
|
attr: q == null ? void 0 : q[r],
|
|
2681
|
-
func:
|
|
2682
|
-
label: (
|
|
2681
|
+
func: p,
|
|
2682
|
+
label: (S = q == null ? void 0 : q[r]) == null ? void 0 : S.label,
|
|
2683
2683
|
sort: ((P = q == null ? void 0 : q[r]) == null ? void 0 : P.sort) || 0,
|
|
2684
2684
|
groupName: ((N = q == null ? void 0 : q[r]) == null ? void 0 : N.groupName) || "default"
|
|
2685
2685
|
};
|
|
2686
|
-
}).sort((r,
|
|
2687
|
-
const
|
|
2688
|
-
return r[
|
|
2689
|
-
}, {}), O =
|
|
2686
|
+
}).sort((r, p) => r.sort - p.sort), R = (l) => de(l).reduce((r, p) => {
|
|
2687
|
+
const S = p.groupName || "default";
|
|
2688
|
+
return r[S] || (r[S] = []), r[S].push(p), r;
|
|
2689
|
+
}, {}), O = Ke(
|
|
2690
2690
|
() => Object.fromEntries(
|
|
2691
2691
|
Object.entries(e.value).filter(([l, r]) => r.type !== "hidden").filter(([l, r]) => r.visible !== !1).filter(([l, r]) => r.showCol !== !1).map(([l, r]) => (r.sort = typeof r.sort == "number" ? r.sort : 0, [l, r])).sort((l, r) => l[1].sort - r[1].sort)
|
|
2692
2692
|
)
|
|
2693
|
-
), Ce =
|
|
2694
|
-
const
|
|
2695
|
-
for (const N of
|
|
2693
|
+
), Ce = le({}), _e = (l, r) => {
|
|
2694
|
+
const p = (S, P) => {
|
|
2695
|
+
for (const N of S) {
|
|
2696
2696
|
if (N.value == P) return N.label;
|
|
2697
2697
|
if (N.children) {
|
|
2698
|
-
const Z =
|
|
2698
|
+
const Z = p(N.children, P);
|
|
2699
2699
|
if (Z) return Z;
|
|
2700
2700
|
}
|
|
2701
2701
|
}
|
|
2702
2702
|
return null;
|
|
2703
2703
|
};
|
|
2704
2704
|
if (l.getDicts) {
|
|
2705
|
-
const
|
|
2706
|
-
return Ce.value[
|
|
2707
|
-
Ce.value[
|
|
2705
|
+
const S = r.toString();
|
|
2706
|
+
return Ce.value[S] ? (l.options = Ce.value[S], l.formatter || (l.formatter = (P, N, Z, Ee) => l.options && p(l.options, Z) || Z), Promise.resolve()) : l.getDicts(e.value.table.data).then((P) => {
|
|
2707
|
+
Ce.value[S] = P, l.options = P, l.formatter || (l.formatter = (N, Z, Ee, ke) => l.options && p(l.options, Ee) || Ee);
|
|
2708
2708
|
});
|
|
2709
2709
|
}
|
|
2710
2710
|
return Promise.resolve();
|
|
@@ -2712,121 +2712,128 @@ const Fl = {
|
|
|
2712
2712
|
const l = [];
|
|
2713
2713
|
Object.keys(e.value).forEach((r) => {
|
|
2714
2714
|
if (e.value[r].getDicts) {
|
|
2715
|
-
const
|
|
2716
|
-
e.value.table.data.forEach((
|
|
2715
|
+
const p = _e(e.value[r], r).then(() => {
|
|
2716
|
+
e.value.table.data.forEach((S) => {
|
|
2717
2717
|
var P;
|
|
2718
2718
|
if (e.value[r].getDicts && ((P = e.value[r]) == null ? void 0 : P.forceString) !== !1) {
|
|
2719
|
-
const N =
|
|
2720
|
-
|
|
2719
|
+
const N = S[r];
|
|
2720
|
+
S[r] = N != null ? N.toString() : N;
|
|
2721
2721
|
}
|
|
2722
2722
|
});
|
|
2723
|
-
}).catch((
|
|
2724
|
-
console.error(`加载字典${r}出错:`,
|
|
2723
|
+
}).catch((S) => {
|
|
2724
|
+
console.error(`加载字典${r}出错:`, S);
|
|
2725
2725
|
});
|
|
2726
|
-
l.push(
|
|
2726
|
+
l.push(p);
|
|
2727
2727
|
}
|
|
2728
2728
|
}), Promise.all(l).catch((r) => {
|
|
2729
2729
|
console.error("字典加载过程中发生错误:", r);
|
|
2730
2730
|
});
|
|
2731
|
-
}, De = (l, r,
|
|
2731
|
+
}, De = (l, r, p, S) => {
|
|
2732
2732
|
var P, N;
|
|
2733
|
-
return l.table ? (P = l.table(r,
|
|
2734
|
-
}, ye = (l, r) => l.name === "control-save" && r === 0 && e.value.control.add.inline === !0 ? l.attr.addLabel : l.label,
|
|
2733
|
+
return l.table ? (P = l.table(r, p, S)) != null && P.auth ? (N = l.table(r, p, S)) == null ? void 0 : N.auth(r, p, S) : !0 : !1;
|
|
2734
|
+
}, ye = (l, r) => l.name === "control-save" && r === 0 && e.value.control.add.inline === !0 ? l.attr.addLabel : l.label, Fe = () => {
|
|
2735
2735
|
if (e.value.dialog.mode == "drawer")
|
|
2736
2736
|
V.value.handleClose();
|
|
2737
2737
|
else if (e.value.dialog.mode == "dialog")
|
|
2738
2738
|
try {
|
|
2739
|
-
|
|
2739
|
+
T.value.handleClose();
|
|
2740
2740
|
} catch {
|
|
2741
2741
|
w.value = !1;
|
|
2742
2742
|
}
|
|
2743
2743
|
else
|
|
2744
2744
|
w.value = !1;
|
|
2745
2745
|
};
|
|
2746
|
-
|
|
2746
|
+
Wt(() => {
|
|
2747
2747
|
e.value.table.autoWatch && e.value.table.load();
|
|
2748
|
-
})
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
(
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
{},
|
|
2759
|
-
Object.fromEntries(
|
|
2760
|
-
Object.entries(
|
|
2761
|
-
Te(e.value, (r, c) => c.type != "control" && c.editor !== !1 && c.type != "hidden")
|
|
2762
|
-
).map(([r, c]) => [r, c.value])
|
|
2763
|
-
)
|
|
2764
|
-
);
|
|
2748
|
+
});
|
|
2749
|
+
const Be = async () => {
|
|
2750
|
+
if (!B.name) {
|
|
2751
|
+
Ie.error("请指定表格名称");
|
|
2752
|
+
return;
|
|
2753
|
+
}
|
|
2754
|
+
const l = await Sl(B.name);
|
|
2755
|
+
l && Array.isArray(l) && l.forEach((r) => {
|
|
2756
|
+
const p = e.value[r.key];
|
|
2757
|
+
p && (p.width = r.width, p.showCol = r.showCol, p.sort = r.sort);
|
|
2765
2758
|
});
|
|
2759
|
+
};
|
|
2760
|
+
return rt(async () => {
|
|
2761
|
+
ee.value = Object.entries(e.value).filter(
|
|
2762
|
+
([l, r]) => r.type !== "hidden" && r.type !== "control" && r.visible !== !1
|
|
2763
|
+
).map(([l, r]) => ({
|
|
2764
|
+
key: l || "",
|
|
2765
|
+
label: r.label,
|
|
2766
|
+
value: !0
|
|
2767
|
+
}));
|
|
2766
2768
|
try {
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2769
|
+
await tt();
|
|
2770
|
+
const l = Object.entries(e.value).filter(
|
|
2771
|
+
([r, p]) => p.type !== "control" && p.editor !== !1 && p.type !== "hidden"
|
|
2772
|
+
);
|
|
2773
|
+
K.value = Object.fromEntries(
|
|
2774
|
+
l.map(([r, p]) => [r, p.value])
|
|
2775
|
+
), await Be();
|
|
2776
|
+
} catch (l) {
|
|
2777
|
+
console.error("Error during component initialization:", l);
|
|
2773
2778
|
}
|
|
2774
2779
|
e.value.table.autoWatch || e.value.table.load();
|
|
2775
|
-
}),
|
|
2776
|
-
|
|
2777
|
-
|
|
2780
|
+
}), Xt(async () => {
|
|
2781
|
+
await Be();
|
|
2782
|
+
}), i({ addRow: E, editRow: v, deleteRow: m, readForm: s, saveRowData: a, closeDialog: Fe }), (l, r) => {
|
|
2783
|
+
var Ge, c, Q, ve, Ye;
|
|
2784
|
+
const p = I("el-icon"), S = I("el-dialog"), P = I("el-drawer"), N = I("el-button-group"), Z = I("el-dropdown-item"), Ee = I("el-dropdown-menu"), ke = I("el-dropdown"), je = I("el-table-column"), Le = I("el-table"), ze = I("el-pagination");
|
|
2778
2785
|
return u(), F(X, null, [
|
|
2779
|
-
e.value.dialog.mode == "dialog" && w.value ? (u(), F("div",
|
|
2780
|
-
G(
|
|
2786
|
+
e.value.dialog.mode == "dialog" && w.value ? (u(), F("div", Ll, [
|
|
2787
|
+
G(S, x(
|
|
2781
2788
|
{
|
|
2782
2789
|
ref_key: "dialogRef",
|
|
2783
|
-
ref:
|
|
2790
|
+
ref: T,
|
|
2784
2791
|
id: "dialogRef",
|
|
2785
2792
|
modelValue: w.value,
|
|
2786
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
2793
|
+
"onUpdate:modelValue": r[3] || (r[3] = (Y) => w.value = Y),
|
|
2787
2794
|
fullscreen: e.value.dialog.fullScreen
|
|
2788
2795
|
},
|
|
2789
|
-
j(
|
|
2796
|
+
j(qe)(e.value.dialog, (Y) => !["size", "max", "min"].includes(Y)),
|
|
2790
2797
|
{
|
|
2791
2798
|
width: j(It)(e.value.dialog.width) + 35
|
|
2792
2799
|
}
|
|
2793
2800
|
), {
|
|
2794
2801
|
header: h(() => {
|
|
2795
|
-
var
|
|
2802
|
+
var Y, te, $, H, J, Qe, Ze, He, Pe, ot;
|
|
2796
2803
|
return [
|
|
2797
|
-
W("div",
|
|
2798
|
-
W("div",
|
|
2804
|
+
W("div", zl, [
|
|
2805
|
+
W("div", Hl, [
|
|
2799
2806
|
y(l.$slots, "f-header", {}, () => [
|
|
2800
2807
|
W("div", null, be(e.value.dialog.title), 1)
|
|
2801
2808
|
], !0)
|
|
2802
2809
|
]),
|
|
2803
|
-
((
|
|
2810
|
+
((te = (Y = e.value) == null ? void 0 : Y.dialog) == null ? void 0 : te.fullScreen) === !1 ? (u(), F("div", {
|
|
2804
2811
|
key: 0,
|
|
2805
|
-
style:
|
|
2812
|
+
style: Se((J = (H = ($ = e.value) == null ? void 0 : $.dialog) == null ? void 0 : H.max) == null ? void 0 : J.style),
|
|
2806
2813
|
onClick: r[0] || (r[0] = (A) => e.value.dialog.fullScreen = !0),
|
|
2807
2814
|
class: "max"
|
|
2808
2815
|
}, [
|
|
2809
|
-
G(
|
|
2816
|
+
G(p, null, {
|
|
2810
2817
|
default: h(() => {
|
|
2811
|
-
var A, Oe,
|
|
2818
|
+
var A, Oe, Je;
|
|
2812
2819
|
return [
|
|
2813
|
-
(u(), C(
|
|
2820
|
+
(u(), C(Ue((Je = (Oe = (A = e.value) == null ? void 0 : A.dialog) == null ? void 0 : Oe.max) == null ? void 0 : Je.icon)))
|
|
2814
2821
|
];
|
|
2815
2822
|
}),
|
|
2816
2823
|
_: 1
|
|
2817
2824
|
})
|
|
2818
2825
|
], 4)) : me("", !0),
|
|
2819
|
-
((
|
|
2826
|
+
((Ze = (Qe = e.value) == null ? void 0 : Qe.dialog) == null ? void 0 : Ze.fullScreen) === !0 ? (u(), F("div", {
|
|
2820
2827
|
key: 1,
|
|
2821
|
-
style:
|
|
2828
|
+
style: Se((ot = (Pe = (He = e.value) == null ? void 0 : He.dialog) == null ? void 0 : Pe.min) == null ? void 0 : ot.style),
|
|
2822
2829
|
onClick: r[1] || (r[1] = (A) => e.value.dialog.fullScreen = !1),
|
|
2823
2830
|
class: "max"
|
|
2824
2831
|
}, [
|
|
2825
|
-
G(
|
|
2832
|
+
G(p, null, {
|
|
2826
2833
|
default: h(() => {
|
|
2827
|
-
var A, Oe,
|
|
2834
|
+
var A, Oe, Je;
|
|
2828
2835
|
return [
|
|
2829
|
-
(u(), C(
|
|
2836
|
+
(u(), C(Ue((Je = (Oe = (A = e.value) == null ? void 0 : A.dialog) == null ? void 0 : Oe.min) == null ? void 0 : Je.icon)))
|
|
2830
2837
|
];
|
|
2831
2838
|
}),
|
|
2832
2839
|
_: 1
|
|
@@ -2836,18 +2843,18 @@ const Fl = {
|
|
|
2836
2843
|
];
|
|
2837
2844
|
}),
|
|
2838
2845
|
default: h(() => [
|
|
2839
|
-
W("div",
|
|
2846
|
+
W("div", Pl, [
|
|
2840
2847
|
y(l.$slots, "table-dialog-form", { model: e.value }, () => [
|
|
2841
|
-
G(
|
|
2848
|
+
G(bt, {
|
|
2842
2849
|
modelValue: e.value,
|
|
2843
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
2850
|
+
"onUpdate:modelValue": r[2] || (r[2] = (Y) => e.value = Y),
|
|
2844
2851
|
onSubmit: _,
|
|
2845
2852
|
onReset: n
|
|
2846
|
-
},
|
|
2847
|
-
L(l.$slots, (
|
|
2848
|
-
name:
|
|
2849
|
-
fn: h((
|
|
2850
|
-
y(l.$slots,
|
|
2853
|
+
}, fe({ _: 2 }, [
|
|
2854
|
+
L(l.$slots, (Y, te, $) => ({
|
|
2855
|
+
name: te,
|
|
2856
|
+
fn: h((H) => [
|
|
2857
|
+
y(l.$slots, te, { model: H }, void 0, !0)
|
|
2851
2858
|
])
|
|
2852
2859
|
}))
|
|
2853
2860
|
]), 1032, ["modelValue"])
|
|
@@ -2857,16 +2864,16 @@ const Fl = {
|
|
|
2857
2864
|
_: 3
|
|
2858
2865
|
}, 16, ["modelValue", "fullscreen", "width"])
|
|
2859
2866
|
])) : me("", !0),
|
|
2860
|
-
e.value.dialog.mode == "drawer" && w.value ? (u(), F("div",
|
|
2867
|
+
e.value.dialog.mode == "drawer" && w.value ? (u(), F("div", Nl, [
|
|
2861
2868
|
G(P, x({
|
|
2862
2869
|
ref_key: "drawerRef",
|
|
2863
2870
|
ref: V,
|
|
2864
2871
|
modelValue: w.value,
|
|
2865
|
-
"onUpdate:modelValue": r[5] || (r[5] = (
|
|
2866
|
-
}, j(
|
|
2872
|
+
"onUpdate:modelValue": r[5] || (r[5] = (Y) => w.value = Y)
|
|
2873
|
+
}, j(qe)(e.value.dialog, (Y) => !["width"].includes(Y))), {
|
|
2867
2874
|
header: h(() => [
|
|
2868
|
-
W("div",
|
|
2869
|
-
W("div",
|
|
2875
|
+
W("div", Wl, [
|
|
2876
|
+
W("div", Xl, [
|
|
2870
2877
|
y(l.$slots, "f-header", {}, () => [
|
|
2871
2878
|
W("div", null, be(e.value.dialog.title), 1)
|
|
2872
2879
|
], !0)
|
|
@@ -2875,16 +2882,16 @@ const Fl = {
|
|
|
2875
2882
|
]),
|
|
2876
2883
|
default: h(() => [
|
|
2877
2884
|
y(l.$slots, "table-drawer-form", { model: e.value }, () => [
|
|
2878
|
-
G(
|
|
2885
|
+
G(bt, {
|
|
2879
2886
|
modelValue: e.value,
|
|
2880
|
-
"onUpdate:modelValue": r[4] || (r[4] = (
|
|
2887
|
+
"onUpdate:modelValue": r[4] || (r[4] = (Y) => e.value = Y),
|
|
2881
2888
|
onSubmit: _,
|
|
2882
2889
|
onReset: n
|
|
2883
|
-
},
|
|
2884
|
-
L(l.$slots, (
|
|
2885
|
-
name:
|
|
2886
|
-
fn: h((
|
|
2887
|
-
y(l.$slots,
|
|
2890
|
+
}, fe({ _: 2 }, [
|
|
2891
|
+
L(l.$slots, (Y, te, $) => ({
|
|
2892
|
+
name: te,
|
|
2893
|
+
fn: h((H) => [
|
|
2894
|
+
y(l.$slots, te, { model: H }, void 0, !0)
|
|
2888
2895
|
])
|
|
2889
2896
|
}))
|
|
2890
2897
|
]), 1032, ["modelValue"])
|
|
@@ -2893,21 +2900,21 @@ const Fl = {
|
|
|
2893
2900
|
_: 3
|
|
2894
2901
|
}, 16, ["modelValue"])
|
|
2895
2902
|
])) : me("", !0),
|
|
2896
|
-
W("div",
|
|
2897
|
-
((
|
|
2903
|
+
W("div", Gl, [
|
|
2904
|
+
((c = (Ge = e.value) == null ? void 0 : Ge.query) == null ? void 0 : c.hidden) != !0 ? (u(), F("div", Ql, [
|
|
2898
2905
|
y(l.$slots, "query", {}, () => [
|
|
2899
|
-
G(
|
|
2906
|
+
G(El, {
|
|
2900
2907
|
modelValue: e.value,
|
|
2901
|
-
"onUpdate:modelValue": r[6] || (r[6] = (
|
|
2908
|
+
"onUpdate:modelValue": r[6] || (r[6] = (Y) => e.value = Y),
|
|
2902
2909
|
info: k.value,
|
|
2903
|
-
"onUpdate:info": r[7] || (r[7] = (
|
|
2910
|
+
"onUpdate:info": r[7] || (r[7] = (Y) => k.value = Y),
|
|
2904
2911
|
onQuery: g,
|
|
2905
|
-
onReset:
|
|
2906
|
-
},
|
|
2912
|
+
onReset: ne
|
|
2913
|
+
}, fe({
|
|
2907
2914
|
"q-btns": h(() => [
|
|
2908
2915
|
y(l.$slots, "q-btns", {}, () => [
|
|
2909
|
-
(u(!0), F(X, null, L(R(["add", "download", "setting"]), (
|
|
2910
|
-
|
|
2916
|
+
(u(!0), F(X, null, L(R(["add", "download", "setting"]), (Y, te) => (u(), F(X, null, [
|
|
2917
|
+
te == "default" ? (u(!0), F(X, { key: 0 }, L(Y, ($) => (u(), F(X, null, [
|
|
2911
2918
|
y(l.$slots, $.name + "-left", {}, void 0, !0),
|
|
2912
2919
|
($.name === "control-add" ? $.attr.auth(e.value) && $.attr.inline === !1 : $.attr.auth(e.value)) ? y(l.$slots, $.name, { key: 0 }, () => [
|
|
2913
2920
|
$.label ? (u(), C(j(Me), x({
|
|
@@ -2915,10 +2922,10 @@ const Fl = {
|
|
|
2915
2922
|
title: $.label,
|
|
2916
2923
|
ref_for: !0
|
|
2917
2924
|
}, $.attr, {
|
|
2918
|
-
onClick: (
|
|
2925
|
+
onClick: (H) => $.func(e.value, ee.value)
|
|
2919
2926
|
}), {
|
|
2920
2927
|
default: h(() => [
|
|
2921
|
-
|
|
2928
|
+
Te(be($.label), 1)
|
|
2922
2929
|
]),
|
|
2923
2930
|
_: 2
|
|
2924
2931
|
}, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
|
|
@@ -2926,13 +2933,13 @@ const Fl = {
|
|
|
2926
2933
|
title: $.label,
|
|
2927
2934
|
ref_for: !0
|
|
2928
2935
|
}, $.attr, {
|
|
2929
|
-
onClick: (
|
|
2936
|
+
onClick: (H) => $.func(e.value, ee.value)
|
|
2930
2937
|
}), null, 16, ["title", "onClick"]))
|
|
2931
2938
|
], !0) : me("", !0),
|
|
2932
2939
|
y(l.$slots, $.name + "-right", {}, void 0, !0)
|
|
2933
2940
|
], 64))), 256)) : (u(), C(N, { key: 1 }, {
|
|
2934
2941
|
default: h(() => [
|
|
2935
|
-
(u(!0), F(X, null, L(
|
|
2942
|
+
(u(!0), F(X, null, L(Y, ($) => (u(), F(X, null, [
|
|
2936
2943
|
y(l.$slots, $.name + "-left", {}, void 0, !0),
|
|
2937
2944
|
($.name === "control-add" ? $.attr.auth(e.value) && $.attr.inline === !1 : $.attr.auth(e.value)) ? y(l.$slots, $.name, { key: 0 }, () => [
|
|
2938
2945
|
$.label ? (u(), C(j(Me), x({
|
|
@@ -2940,10 +2947,10 @@ const Fl = {
|
|
|
2940
2947
|
title: $.label,
|
|
2941
2948
|
ref_for: !0
|
|
2942
2949
|
}, $.attr, {
|
|
2943
|
-
onClick: (
|
|
2950
|
+
onClick: (H) => $.func(e.value, ee.value)
|
|
2944
2951
|
}), {
|
|
2945
2952
|
default: h(() => [
|
|
2946
|
-
|
|
2953
|
+
Te(be($.label), 1)
|
|
2947
2954
|
]),
|
|
2948
2955
|
_: 2
|
|
2949
2956
|
}, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
|
|
@@ -2951,7 +2958,7 @@ const Fl = {
|
|
|
2951
2958
|
title: $.label,
|
|
2952
2959
|
ref_for: !0
|
|
2953
2960
|
}, $.attr, {
|
|
2954
|
-
onClick: (
|
|
2961
|
+
onClick: (H) => $.func(e.value, ee.value)
|
|
2955
2962
|
}), null, 16, ["title", "onClick"]))
|
|
2956
2963
|
], !0) : me("", !0),
|
|
2957
2964
|
y(l.$slots, $.name + "-right", {}, void 0, !0)
|
|
@@ -2964,27 +2971,27 @@ const Fl = {
|
|
|
2964
2971
|
]),
|
|
2965
2972
|
_: 2
|
|
2966
2973
|
}, [
|
|
2967
|
-
L(l.$slots, (
|
|
2968
|
-
name:
|
|
2969
|
-
fn: h((
|
|
2970
|
-
y(l.$slots,
|
|
2974
|
+
L(l.$slots, (Y, te, $) => ({
|
|
2975
|
+
name: te,
|
|
2976
|
+
fn: h((H) => [
|
|
2977
|
+
y(l.$slots, te, { model: e.value }, void 0, !0)
|
|
2971
2978
|
])
|
|
2972
2979
|
}))
|
|
2973
2980
|
]), 1032, ["modelValue", "info"])
|
|
2974
2981
|
], !0)
|
|
2975
2982
|
])) : me("", !0),
|
|
2976
|
-
W("div",
|
|
2977
|
-
G(
|
|
2983
|
+
W("div", Zl, [
|
|
2984
|
+
G(Le, x({
|
|
2978
2985
|
...l.$attrs,
|
|
2979
|
-
...j(
|
|
2986
|
+
...j(qe)(
|
|
2980
2987
|
e.value.table,
|
|
2981
|
-
(
|
|
2988
|
+
(Y) => !["dblclickType", "page"].includes(Y)
|
|
2982
2989
|
)
|
|
2983
2990
|
}, {
|
|
2984
|
-
"summary-method": (
|
|
2985
|
-
onSortChange: r[8] || (r[8] = (
|
|
2986
|
-
var
|
|
2987
|
-
e.value.table.onSortChange(
|
|
2991
|
+
"summary-method": (Y) => e.value.table["summary-method"](Y, { fields: re.value, sums: se.value }),
|
|
2992
|
+
onSortChange: r[8] || (r[8] = (Y) => {
|
|
2993
|
+
var te, $;
|
|
2994
|
+
e.value.table.onSortChange(Y, k.value), ((te = Y == null ? void 0 : Y.column) == null ? void 0 : te.sortable) === "custom" && (($ = e.value.table) == null || $.load());
|
|
2988
2995
|
})
|
|
2989
2996
|
}), {
|
|
2990
2997
|
append: h(() => [
|
|
@@ -2995,70 +3002,70 @@ const Fl = {
|
|
|
2995
3002
|
]),
|
|
2996
3003
|
default: h(() => [
|
|
2997
3004
|
y(l.$slots, "default", {}, () => [
|
|
2998
|
-
(u(!0), F(X, null, L(O.value, (
|
|
2999
|
-
prop:
|
|
3000
|
-
key:
|
|
3005
|
+
(u(!0), F(X, null, L(O.value, (Y, te) => (u(), C(je, x({
|
|
3006
|
+
prop: te,
|
|
3007
|
+
key: te,
|
|
3001
3008
|
ref_for: !0
|
|
3002
3009
|
}, {
|
|
3003
3010
|
...e.value.tableColumns,
|
|
3004
|
-
...j(
|
|
3005
|
-
}),
|
|
3006
|
-
header: h(({ column: $, $index:
|
|
3007
|
-
|
|
3011
|
+
...j(qe)(Y, ($) => z.includes($))
|
|
3012
|
+
}), fe({
|
|
3013
|
+
header: h(({ column: $, $index: H }) => [
|
|
3014
|
+
te == "control" ? y(l.$slots, `${te}-header`, {
|
|
3008
3015
|
key: 0,
|
|
3009
3016
|
column: $,
|
|
3010
|
-
$index:
|
|
3017
|
+
$index: H
|
|
3011
3018
|
}, () => [
|
|
3012
3019
|
W("span", null, be($.label), 1)
|
|
3013
|
-
], !0) : y(l.$slots, `${
|
|
3020
|
+
], !0) : y(l.$slots, `${te}-header`, {
|
|
3014
3021
|
key: 1,
|
|
3015
3022
|
column: $,
|
|
3016
|
-
$index:
|
|
3023
|
+
$index: H
|
|
3017
3024
|
}, void 0, !0)
|
|
3018
3025
|
]),
|
|
3019
3026
|
"filter-icon": h(($) => [
|
|
3020
|
-
y(l.$slots, `${
|
|
3027
|
+
y(l.$slots, `${te}-filter-icon`, { data: $ }, void 0, !0)
|
|
3021
3028
|
]),
|
|
3022
3029
|
_: 2
|
|
3023
3030
|
}, [
|
|
3024
|
-
|
|
3031
|
+
Y.type === "expand" ? {
|
|
3025
3032
|
name: "default",
|
|
3026
|
-
fn: h(({ row: $, column:
|
|
3027
|
-
y(l.$slots, `${
|
|
3033
|
+
fn: h(({ row: $, column: H, $index: J }) => [
|
|
3034
|
+
y(l.$slots, `${te}`, {
|
|
3028
3035
|
row: $,
|
|
3029
|
-
column:
|
|
3036
|
+
column: H,
|
|
3030
3037
|
$index: J
|
|
3031
3038
|
}, void 0, !0)
|
|
3032
3039
|
]),
|
|
3033
3040
|
key: "0"
|
|
3034
|
-
} :
|
|
3041
|
+
} : Y.type == "control" ? {
|
|
3035
3042
|
name: "default",
|
|
3036
|
-
fn: h(({ row: $, column:
|
|
3037
|
-
var
|
|
3043
|
+
fn: h(({ row: $, column: H, $index: J }) => {
|
|
3044
|
+
var Qe, Ze;
|
|
3038
3045
|
return [
|
|
3039
3046
|
W("div", {
|
|
3040
|
-
class: St(["control", (
|
|
3041
|
-
style:
|
|
3047
|
+
class: St(["control", (Qe = e.value.control) == null ? void 0 : Qe.class]),
|
|
3048
|
+
style: Se((Ze = e.value.control) == null ? void 0 : Ze.style)
|
|
3042
3049
|
}, [
|
|
3043
3050
|
y(l.$slots, "control", {}, () => [
|
|
3044
3051
|
y(l.$slots, "control-left", {
|
|
3045
3052
|
row: $,
|
|
3046
|
-
column:
|
|
3053
|
+
column: H,
|
|
3047
3054
|
$index: J
|
|
3048
3055
|
}, void 0, !0),
|
|
3049
|
-
(u(!0), F(X, null, L(R(["view", "edit", "delete", "save"]), (
|
|
3050
|
-
var
|
|
3056
|
+
(u(!0), F(X, null, L(R(["view", "edit", "delete", "save"]), (He, Pe) => {
|
|
3057
|
+
var ot;
|
|
3051
3058
|
return u(), F(X, null, [
|
|
3052
|
-
|
|
3059
|
+
Pe == "default" ? (u(!0), F(X, { key: 0 }, L(He, (A) => (u(), F(X, null, [
|
|
3053
3060
|
y(l.$slots, A.name + "-left", {
|
|
3054
3061
|
row: $,
|
|
3055
|
-
column:
|
|
3062
|
+
column: H,
|
|
3056
3063
|
$index: J
|
|
3057
3064
|
}, void 0, !0),
|
|
3058
|
-
A.attr.auth($,
|
|
3065
|
+
A.attr.auth($, H, J, e.value) ? y(l.$slots, A.name, {
|
|
3059
3066
|
key: 0,
|
|
3060
3067
|
row: $,
|
|
3061
|
-
column:
|
|
3068
|
+
column: H,
|
|
3062
3069
|
$index: J
|
|
3063
3070
|
}, () => [
|
|
3064
3071
|
A.label ? (u(), C(j(Me), x({
|
|
@@ -3066,10 +3073,10 @@ const Fl = {
|
|
|
3066
3073
|
title: A.label,
|
|
3067
3074
|
ref_for: !0
|
|
3068
3075
|
}, A.attr, {
|
|
3069
|
-
onClick: (Oe) => A.func($,
|
|
3076
|
+
onClick: (Oe) => A.func($, H, J, e.value)
|
|
3070
3077
|
}), {
|
|
3071
3078
|
default: h(() => [
|
|
3072
|
-
|
|
3079
|
+
Te(be(ye(A, J)), 1)
|
|
3073
3080
|
]),
|
|
3074
3081
|
_: 2
|
|
3075
3082
|
}, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
|
|
@@ -3077,42 +3084,42 @@ const Fl = {
|
|
|
3077
3084
|
title: A.label,
|
|
3078
3085
|
ref_for: !0
|
|
3079
3086
|
}, A.attr, {
|
|
3080
|
-
onClick: (Oe) => A.func($,
|
|
3087
|
+
onClick: (Oe) => A.func($, H, J, e.value)
|
|
3081
3088
|
}), null, 16, ["title", "onClick"]))
|
|
3082
3089
|
], !0) : me("", !0),
|
|
3083
3090
|
y(l.$slots, A.name + "-right", {
|
|
3084
3091
|
row: $,
|
|
3085
|
-
column:
|
|
3092
|
+
column: H,
|
|
3086
3093
|
$index: J
|
|
3087
3094
|
}, void 0, !0)
|
|
3088
|
-
], 64))), 256)) :
|
|
3095
|
+
], 64))), 256)) : Pe != null && Pe.startsWith("dropdown") && ((ot = pe($, H, J, e.value)) != null && ot.auth()) ? (u(), C(ke, x({
|
|
3089
3096
|
key: 1,
|
|
3090
3097
|
ref_for: !0
|
|
3091
|
-
}, pe($,
|
|
3098
|
+
}, pe($, H, J, e.value)), {
|
|
3092
3099
|
dropdown: h(() => [
|
|
3093
3100
|
G(Ee, null, {
|
|
3094
3101
|
default: h(() => [
|
|
3095
|
-
(u(!0), F(X, null, L(
|
|
3096
|
-
var Oe,
|
|
3102
|
+
(u(!0), F(X, null, L(He, (A) => {
|
|
3103
|
+
var Oe, Je, Ct;
|
|
3097
3104
|
return u(), F(X, null, [
|
|
3098
3105
|
l.$slots[A.name + "-left"] ? y(l.$slots, A.name + "-left", {
|
|
3099
3106
|
key: 0,
|
|
3100
3107
|
row: $,
|
|
3101
|
-
column:
|
|
3108
|
+
column: H,
|
|
3102
3109
|
$index: J
|
|
3103
3110
|
}, void 0, !0) : me("", !0),
|
|
3104
|
-
A.attr.auth($,
|
|
3111
|
+
A.attr.auth($, H, J, e.value) ? (u(), C(Z, x({
|
|
3105
3112
|
key: 1,
|
|
3106
3113
|
ref_for: !0
|
|
3107
3114
|
}, {
|
|
3108
3115
|
command: (Oe = A == null ? void 0 : A.attr) == null ? void 0 : Oe.command,
|
|
3109
|
-
divided: (
|
|
3110
|
-
disabled: (
|
|
3116
|
+
divided: (Je = A == null ? void 0 : A.attr) == null ? void 0 : Je.divided,
|
|
3117
|
+
disabled: (Ct = A == null ? void 0 : A.attr) == null ? void 0 : Ct.disabled
|
|
3111
3118
|
}), {
|
|
3112
3119
|
default: h(() => [
|
|
3113
3120
|
y(l.$slots, A.name, {
|
|
3114
3121
|
row: $,
|
|
3115
|
-
column:
|
|
3122
|
+
column: H,
|
|
3116
3123
|
$index: J
|
|
3117
3124
|
}, () => [
|
|
3118
3125
|
A.label ? (u(), C(j(Me), x({
|
|
@@ -3120,10 +3127,10 @@ const Fl = {
|
|
|
3120
3127
|
title: A.label,
|
|
3121
3128
|
ref_for: !0
|
|
3122
3129
|
}, A.attr, {
|
|
3123
|
-
onClick: (
|
|
3130
|
+
onClick: (Bt) => A.func($, H, J, e.value)
|
|
3124
3131
|
}), {
|
|
3125
3132
|
default: h(() => [
|
|
3126
|
-
|
|
3133
|
+
Te(be(ye(A, J)), 1)
|
|
3127
3134
|
]),
|
|
3128
3135
|
_: 2
|
|
3129
3136
|
}, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
|
|
@@ -3131,7 +3138,7 @@ const Fl = {
|
|
|
3131
3138
|
title: A.label,
|
|
3132
3139
|
ref_for: !0
|
|
3133
3140
|
}, A.attr, {
|
|
3134
|
-
onClick: (
|
|
3141
|
+
onClick: (Bt) => A.func($, H, J, e.value)
|
|
3135
3142
|
}), null, 16, ["title", "onClick"]))
|
|
3136
3143
|
], !0)
|
|
3137
3144
|
]),
|
|
@@ -3140,7 +3147,7 @@ const Fl = {
|
|
|
3140
3147
|
l.$slots[A.name + "-right"] ? y(l.$slots, A.name + "-right", {
|
|
3141
3148
|
key: 2,
|
|
3142
3149
|
row: $,
|
|
3143
|
-
column:
|
|
3150
|
+
column: H,
|
|
3144
3151
|
$index: J
|
|
3145
3152
|
}, void 0, !0) : me("", !0)
|
|
3146
3153
|
], 64);
|
|
@@ -3152,22 +3159,22 @@ const Fl = {
|
|
|
3152
3159
|
default: h(() => {
|
|
3153
3160
|
var A;
|
|
3154
3161
|
return [
|
|
3155
|
-
|
|
3162
|
+
Te(be((A = pe($, H, J, e.value)) == null ? void 0 : A.label) + " ", 1)
|
|
3156
3163
|
];
|
|
3157
3164
|
}),
|
|
3158
3165
|
_: 2
|
|
3159
3166
|
}, 1040)) : (u(), C(N, { key: 2 }, {
|
|
3160
3167
|
default: h(() => [
|
|
3161
|
-
(u(!0), F(X, null, L(
|
|
3168
|
+
(u(!0), F(X, null, L(He, (A) => (u(), F(X, null, [
|
|
3162
3169
|
y(l.$slots, A.name + "-left", {
|
|
3163
3170
|
row: $,
|
|
3164
|
-
column:
|
|
3171
|
+
column: H,
|
|
3165
3172
|
$index: J
|
|
3166
3173
|
}, void 0, !0),
|
|
3167
|
-
A.attr.auth($,
|
|
3174
|
+
A.attr.auth($, H, J, e.value) ? y(l.$slots, A.name, {
|
|
3168
3175
|
key: 0,
|
|
3169
3176
|
row: $,
|
|
3170
|
-
column:
|
|
3177
|
+
column: H,
|
|
3171
3178
|
$index: J
|
|
3172
3179
|
}, () => [
|
|
3173
3180
|
A.label ? (u(), C(j(Me), x({
|
|
@@ -3175,10 +3182,10 @@ const Fl = {
|
|
|
3175
3182
|
title: A.label,
|
|
3176
3183
|
ref_for: !0
|
|
3177
3184
|
}, A.attr, {
|
|
3178
|
-
onClick: (Oe) => A.func($,
|
|
3185
|
+
onClick: (Oe) => A.func($, H, J, e.value)
|
|
3179
3186
|
}), {
|
|
3180
3187
|
default: h(() => [
|
|
3181
|
-
|
|
3188
|
+
Te(be(ye(A, J)), 1)
|
|
3182
3189
|
]),
|
|
3183
3190
|
_: 2
|
|
3184
3191
|
}, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
|
|
@@ -3186,12 +3193,12 @@ const Fl = {
|
|
|
3186
3193
|
title: A.label,
|
|
3187
3194
|
ref_for: !0
|
|
3188
3195
|
}, A.attr, {
|
|
3189
|
-
onClick: (Oe) => A.func($,
|
|
3196
|
+
onClick: (Oe) => A.func($, H, J, e.value)
|
|
3190
3197
|
}), null, 16, ["title", "onClick"]))
|
|
3191
3198
|
], !0) : me("", !0),
|
|
3192
3199
|
y(l.$slots, A.name + "-right", {
|
|
3193
3200
|
row: $,
|
|
3194
|
-
column:
|
|
3201
|
+
column: H,
|
|
3195
3202
|
$index: J
|
|
3196
3203
|
}, void 0, !0)
|
|
3197
3204
|
], 64))), 256))
|
|
@@ -3202,7 +3209,7 @@ const Fl = {
|
|
|
3202
3209
|
}), 256)),
|
|
3203
3210
|
y(l.$slots, "control-right", {
|
|
3204
3211
|
row: $,
|
|
3205
|
-
column:
|
|
3212
|
+
column: H,
|
|
3206
3213
|
$index: J
|
|
3207
3214
|
}, void 0, !0)
|
|
3208
3215
|
], !0)
|
|
@@ -3210,54 +3217,54 @@ const Fl = {
|
|
|
3210
3217
|
];
|
|
3211
3218
|
}),
|
|
3212
3219
|
key: "1"
|
|
3213
|
-
} :
|
|
3220
|
+
} : Y.type != "selection" && Y.type != "index" ? {
|
|
3214
3221
|
name: "default",
|
|
3215
|
-
fn: h(({ row: $, column:
|
|
3216
|
-
De(
|
|
3222
|
+
fn: h(({ row: $, column: H, $index: J }) => [
|
|
3223
|
+
De(Y, $, H, J) && J != -1 ? y(l.$slots, `${te}`, {
|
|
3217
3224
|
key: 0,
|
|
3218
3225
|
row: $,
|
|
3219
|
-
column:
|
|
3226
|
+
column: H,
|
|
3220
3227
|
$index: J
|
|
3221
3228
|
}, () => {
|
|
3222
|
-
var
|
|
3229
|
+
var Qe;
|
|
3223
3230
|
return [
|
|
3224
|
-
(u(), C(
|
|
3225
|
-
modelValue: $[
|
|
3226
|
-
"onUpdate:modelValue": (
|
|
3227
|
-
item:
|
|
3228
|
-
ctrlKey:
|
|
3229
|
-
key: `${
|
|
3230
|
-
ctrlType: (
|
|
3231
|
+
(u(), C(pt, {
|
|
3232
|
+
modelValue: $[te],
|
|
3233
|
+
"onUpdate:modelValue": (Ze) => $[te] = Ze,
|
|
3234
|
+
item: Y == null ? void 0 : Y.table($, H, J),
|
|
3235
|
+
ctrlKey: te,
|
|
3236
|
+
key: `${te}-${J} -${ce.value}`,
|
|
3237
|
+
ctrlType: (Qe = Y.table($, H, J)) != null && Qe.type ? Y.table($, H, J).type : Y.type,
|
|
3231
3238
|
model: e.value,
|
|
3232
3239
|
class: "g-ctrl-container",
|
|
3233
3240
|
t: "t",
|
|
3234
3241
|
formInfo: $
|
|
3235
|
-
},
|
|
3236
|
-
L(l.$slots, (
|
|
3237
|
-
name:
|
|
3238
|
-
fn: h((
|
|
3239
|
-
y(l.$slots,
|
|
3240
|
-
data:
|
|
3241
|
-
item:
|
|
3242
|
+
}, fe({ _: 2 }, [
|
|
3243
|
+
L(l.$slots, (Ze, He) => ({
|
|
3244
|
+
name: He,
|
|
3245
|
+
fn: h((Pe) => [
|
|
3246
|
+
y(l.$slots, He, {
|
|
3247
|
+
data: Pe,
|
|
3248
|
+
item: Y,
|
|
3242
3249
|
model: e.value
|
|
3243
3250
|
}, void 0, !0)
|
|
3244
3251
|
])
|
|
3245
3252
|
}))
|
|
3246
3253
|
]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"]))
|
|
3247
3254
|
];
|
|
3248
|
-
}, !0) : y(l.$slots, `${
|
|
3255
|
+
}, !0) : y(l.$slots, `${te}`, {
|
|
3249
3256
|
key: 1,
|
|
3250
3257
|
row: $,
|
|
3251
|
-
column:
|
|
3258
|
+
column: H,
|
|
3252
3259
|
$index: J
|
|
3253
3260
|
}, () => [
|
|
3254
3261
|
W("div", {
|
|
3255
|
-
style:
|
|
3262
|
+
style: Se([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, Y == null ? void 0 : Y.style]),
|
|
3256
3263
|
innerHTML: $e(
|
|
3257
|
-
|
|
3258
|
-
|
|
3264
|
+
Y,
|
|
3265
|
+
H.formatter($, H, $[te], J)
|
|
3259
3266
|
)
|
|
3260
|
-
}, null, 12,
|
|
3267
|
+
}, null, 12, Jl)
|
|
3261
3268
|
], !0)
|
|
3262
3269
|
]),
|
|
3263
3270
|
key: "2"
|
|
@@ -3267,12 +3274,12 @@ const Fl = {
|
|
|
3267
3274
|
]),
|
|
3268
3275
|
_: 3
|
|
3269
3276
|
}, 16, ["summary-method"]),
|
|
3270
|
-
(
|
|
3271
|
-
G(
|
|
3277
|
+
(Ye = (ve = (Q = e.value) == null ? void 0 : Q.table) == null ? void 0 : ve.page) != null && Ye.hidden ? me("", !0) : y(l.$slots, "page", { key: 0 }, () => [
|
|
3278
|
+
G(ze, x({
|
|
3272
3279
|
"page-size": e.value.table.page.pageSize,
|
|
3273
|
-
"onUpdate:pageSize": r[9] || (r[9] = (
|
|
3280
|
+
"onUpdate:pageSize": r[9] || (r[9] = (Y) => e.value.table.page.pageSize = Y),
|
|
3274
3281
|
"current-page": e.value.table.page.currentPage,
|
|
3275
|
-
"onUpdate:currentPage": r[10] || (r[10] = (
|
|
3282
|
+
"onUpdate:currentPage": r[10] || (r[10] = (Y) => e.value.table.page.currentPage = Y)
|
|
3276
3283
|
}, e.value.table.page), {
|
|
3277
3284
|
default: h(() => [
|
|
3278
3285
|
y(l.$slots, "table-page", {}, void 0, !0)
|
|
@@ -3285,7 +3292,7 @@ const Fl = {
|
|
|
3285
3292
|
], 64);
|
|
3286
3293
|
};
|
|
3287
3294
|
}
|
|
3288
|
-
}),
|
|
3295
|
+
}), ea = /* @__PURE__ */ Xe(Kl, [["__scopeId", "data-v-f987e370"]]), ta = { class: "g-tree-table" }, la = { class: "g-tree-container" }, aa = { class: "g-tree-table-container" }, oa = /* @__PURE__ */ Object.assign({
|
|
3289
3296
|
name: "g-tree-table",
|
|
3290
3297
|
inheritAttrs: !1
|
|
3291
3298
|
}, {
|
|
@@ -3294,75 +3301,75 @@ const Fl = {
|
|
|
3294
3301
|
modelValue: { required: !0 },
|
|
3295
3302
|
modelModifiers: {}
|
|
3296
3303
|
},
|
|
3297
|
-
emits: /* @__PURE__ */
|
|
3304
|
+
emits: /* @__PURE__ */ Ne(["load"], ["update:modelValue"]),
|
|
3298
3305
|
setup(f, { emit: i }) {
|
|
3299
|
-
var
|
|
3300
|
-
const o = i, t =
|
|
3301
|
-
typeof ((
|
|
3302
|
-
), k =
|
|
3306
|
+
var B, U, se, re;
|
|
3307
|
+
const o = i, t = We(f, "modelValue"), e = kt(), d = le(
|
|
3308
|
+
typeof ((B = e == null ? void 0 : e.tree) == null ? void 0 : B.width) == "number" ? `${e.tree.width}px` : ((U = e == null ? void 0 : e.tree) == null ? void 0 : U.width) || "180px"
|
|
3309
|
+
), k = le(((se = e == null ? void 0 : e.tree) == null ? void 0 : se.search) === void 0 ? !0 : (re = e == null ? void 0 : e.tree) == null ? void 0 : re.search), T = le({}), V = le(""), D = le(null), w = (K, ce) => {
|
|
3303
3310
|
var he, pe;
|
|
3304
|
-
if (!
|
|
3311
|
+
if (!K) return !0;
|
|
3305
3312
|
const we = ((pe = (he = e.tree) == null ? void 0 : he.props) == null ? void 0 : pe.label) || "label";
|
|
3306
|
-
return
|
|
3307
|
-
},
|
|
3308
|
-
o("load",
|
|
3309
|
-
},
|
|
3310
|
-
|
|
3313
|
+
return ce[we].includes(K);
|
|
3314
|
+
}, z = (K, ce) => {
|
|
3315
|
+
o("load", T.value, K, ce);
|
|
3316
|
+
}, ee = (K) => {
|
|
3317
|
+
T.value = K, t.value.table.load();
|
|
3311
3318
|
};
|
|
3312
|
-
return
|
|
3313
|
-
D.value.filter(
|
|
3314
|
-
}), (
|
|
3315
|
-
const we =
|
|
3316
|
-
return u(), F("div",
|
|
3319
|
+
return Gt(V, (K) => {
|
|
3320
|
+
D.value.filter(K);
|
|
3321
|
+
}), (K, ce) => {
|
|
3322
|
+
const we = I("el-input"), he = I("el-tree"), pe = I("g-table");
|
|
3323
|
+
return u(), F("div", ta, [
|
|
3317
3324
|
W("div", {
|
|
3318
3325
|
class: "g-tree-left",
|
|
3319
|
-
style:
|
|
3326
|
+
style: Se({ width: d.value })
|
|
3320
3327
|
}, [
|
|
3321
3328
|
k.value ? (u(), C(we, {
|
|
3322
3329
|
key: 0,
|
|
3323
3330
|
modelValue: V.value,
|
|
3324
|
-
"onUpdate:modelValue":
|
|
3331
|
+
"onUpdate:modelValue": ce[0] || (ce[0] = (ie) => V.value = ie),
|
|
3325
3332
|
style: { width: "100%", padding: "0 10px", "box-sizing": "border-box" },
|
|
3326
3333
|
placeholder: "输入节点查询",
|
|
3327
3334
|
clearable: ""
|
|
3328
3335
|
}, null, 8, ["modelValue"])) : me("", !0),
|
|
3329
|
-
W("div",
|
|
3336
|
+
W("div", la, [
|
|
3330
3337
|
G(he, x({
|
|
3331
3338
|
style: { width: d.value },
|
|
3332
3339
|
"filter-node-method": w,
|
|
3333
3340
|
"expand-on-click-node": !1,
|
|
3334
3341
|
ref_key: "treeRef",
|
|
3335
3342
|
ref: D,
|
|
3336
|
-
onNodeClick:
|
|
3337
|
-
},
|
|
3338
|
-
default: h(({ node:
|
|
3339
|
-
y(
|
|
3340
|
-
node:
|
|
3341
|
-
data:
|
|
3343
|
+
onNodeClick: ee
|
|
3344
|
+
}, K.$attrs.tree), fe({
|
|
3345
|
+
default: h(({ node: ie, data: ue }) => [
|
|
3346
|
+
y(K.$slots, "tree", {
|
|
3347
|
+
node: ie,
|
|
3348
|
+
data: ue
|
|
3342
3349
|
}, () => [
|
|
3343
|
-
W("span", null, be(
|
|
3350
|
+
W("span", null, be(ie.label), 1)
|
|
3344
3351
|
], !0)
|
|
3345
3352
|
]),
|
|
3346
3353
|
_: 2
|
|
3347
3354
|
}, [
|
|
3348
|
-
L(
|
|
3349
|
-
name:
|
|
3355
|
+
L(K.$slots, (ie, ue, ae) => ({
|
|
3356
|
+
name: ue,
|
|
3350
3357
|
fn: h(($e) => [
|
|
3351
|
-
y(
|
|
3358
|
+
y(K.$slots, ue, { data: $e }, void 0, !0)
|
|
3352
3359
|
])
|
|
3353
3360
|
}))
|
|
3354
3361
|
]), 1040, ["style"])
|
|
3355
3362
|
])
|
|
3356
3363
|
], 4),
|
|
3357
|
-
W("div",
|
|
3364
|
+
W("div", aa, [
|
|
3358
3365
|
G(pe, x({
|
|
3359
3366
|
modelValue: t.value,
|
|
3360
|
-
"onUpdate:modelValue":
|
|
3361
|
-
},
|
|
3362
|
-
L(
|
|
3363
|
-
name:
|
|
3367
|
+
"onUpdate:modelValue": ce[1] || (ce[1] = (ie) => t.value = ie)
|
|
3368
|
+
}, K.$attrs, { onLoad: z }), fe({ _: 2 }, [
|
|
3369
|
+
L(K.$slots, (ie, ue, ae) => ({
|
|
3370
|
+
name: ue,
|
|
3364
3371
|
fn: h(($e) => [
|
|
3365
|
-
y(
|
|
3372
|
+
y(K.$slots, ue, { data: $e }, void 0, !0)
|
|
3366
3373
|
])
|
|
3367
3374
|
}))
|
|
3368
3375
|
]), 1040, ["modelValue"])
|
|
@@ -3370,14 +3377,14 @@ const Fl = {
|
|
|
3370
3377
|
]);
|
|
3371
3378
|
};
|
|
3372
3379
|
}
|
|
3373
|
-
}),
|
|
3380
|
+
}), ra = /* @__PURE__ */ Xe(oa, [["__scopeId", "data-v-2d8b16ed"]]), ua = {
|
|
3374
3381
|
key: 0,
|
|
3375
3382
|
class: "op-group"
|
|
3376
|
-
},
|
|
3383
|
+
}, na = {
|
|
3377
3384
|
key: 1,
|
|
3378
3385
|
class: "op-items",
|
|
3379
3386
|
style: { width: "100%", height: "100%" }
|
|
3380
|
-
},
|
|
3387
|
+
}, sa = ["title"], Vt = "100px", ia = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
3381
3388
|
__name: "g-select-option",
|
|
3382
3389
|
props: {
|
|
3383
3390
|
columns: {
|
|
@@ -3399,53 +3406,53 @@ const Fl = {
|
|
|
3399
3406
|
},
|
|
3400
3407
|
setup(f) {
|
|
3401
3408
|
const i = f;
|
|
3402
|
-
return (o, t) => i.title ? (u(), F("div",
|
|
3409
|
+
return (o, t) => i.title ? (u(), F("div", ua, [
|
|
3403
3410
|
(u(!0), F(X, null, L(i.columns, (e) => (u(), F("span", {
|
|
3404
|
-
style:
|
|
3411
|
+
style: Se({ width: (e == null ? void 0 : e.width) || Vt, ...e == null ? void 0 : e.titleStyle, textAlign: (e == null ? void 0 : e.align) || "center" }),
|
|
3405
3412
|
key: e.key
|
|
3406
3413
|
}, [
|
|
3407
3414
|
y(o.$slots, `${f.t}-title-${e.key}`, { col: e }, () => [
|
|
3408
|
-
|
|
3415
|
+
Te(be(e.label), 1)
|
|
3409
3416
|
], !0)
|
|
3410
3417
|
], 4))), 128))
|
|
3411
|
-
])) : (u(), F("div",
|
|
3418
|
+
])) : (u(), F("div", na, [
|
|
3412
3419
|
(u(!0), F(X, null, L(i.columns, (e) => (u(), F("span", {
|
|
3413
|
-
style:
|
|
3420
|
+
style: Se({ width: (e == null ? void 0 : e.width) || Vt, textAlign: (e == null ? void 0 : e.align) || "center", ...e == null ? void 0 : e.style }),
|
|
3414
3421
|
key: e.key,
|
|
3415
3422
|
title: f.data[e.key]
|
|
3416
3423
|
}, [
|
|
3417
3424
|
y(o.$slots, `${f.t}-option-${e.key}`, { col: e }, () => [
|
|
3418
|
-
|
|
3425
|
+
Te(be(f.data[e.key] ?? "-"), 1)
|
|
3419
3426
|
], !0)
|
|
3420
|
-
], 12,
|
|
3427
|
+
], 12, sa))), 128))
|
|
3421
3428
|
]));
|
|
3422
3429
|
}
|
|
3423
|
-
}),
|
|
3424
|
-
let
|
|
3425
|
-
const
|
|
3430
|
+
}), da = /* @__PURE__ */ Xe(ia, [["__scopeId", "data-v-c0ac6b77"]]), fa = Object.freeze({}), At = [ea, bt, ra, da];
|
|
3431
|
+
let $t = {};
|
|
3432
|
+
const _a = {
|
|
3426
3433
|
install: (f, i = {}) => {
|
|
3427
|
-
|
|
3434
|
+
$t = Object.freeze({ ...fa, ...i }), At.forEach((o) => {
|
|
3428
3435
|
f.component(o.name, o);
|
|
3429
|
-
}), f.provide("options",
|
|
3436
|
+
}), f.provide("options", $t), f.config.globalProperties.$openModal = wt;
|
|
3430
3437
|
}
|
|
3431
|
-
},
|
|
3438
|
+
}, ca = (f) => ({ dialog: Ut, drawer: Rt })[f] || null, wt = (f = {}, i = "dialog") => {
|
|
3432
3439
|
if (typeof document > "u") return () => {
|
|
3433
3440
|
};
|
|
3434
3441
|
const o = document.createElement("div");
|
|
3435
3442
|
let t = () => {
|
|
3436
3443
|
};
|
|
3437
|
-
const e =
|
|
3444
|
+
const e = ca(i);
|
|
3438
3445
|
if (!e) return () => {
|
|
3439
3446
|
};
|
|
3440
|
-
const d =
|
|
3447
|
+
const d = le(!0), k = Qt({
|
|
3441
3448
|
setup() {
|
|
3442
3449
|
return t = () => {
|
|
3443
3450
|
d.value = !1, setTimeout(() => {
|
|
3444
3451
|
k.unmount(), o.remove();
|
|
3445
3452
|
}, 300);
|
|
3446
3453
|
}, () => {
|
|
3447
|
-
var
|
|
3448
|
-
return
|
|
3454
|
+
var T, V, D;
|
|
3455
|
+
return Ae(e, {
|
|
3449
3456
|
modelValue: d.value,
|
|
3450
3457
|
"onUpdate:modelValue": (w) => d.value = w,
|
|
3451
3458
|
appendToBody: !0,
|
|
@@ -3456,19 +3463,19 @@ const Ea = {
|
|
|
3456
3463
|
"close-on-click-modal": !1,
|
|
3457
3464
|
...f
|
|
3458
3465
|
}, {
|
|
3459
|
-
default: (
|
|
3466
|
+
default: (T = f.slots) == null ? void 0 : T.default,
|
|
3460
3467
|
header: (V = f.slots) == null ? void 0 : V.header,
|
|
3461
3468
|
footer: (D = f.slots) == null ? void 0 : D.footer
|
|
3462
3469
|
});
|
|
3463
3470
|
};
|
|
3464
3471
|
},
|
|
3465
3472
|
mounted: () => {
|
|
3466
|
-
|
|
3473
|
+
mt();
|
|
3467
3474
|
}
|
|
3468
3475
|
});
|
|
3469
|
-
return
|
|
3470
|
-
k.component(
|
|
3471
|
-
}), k.provide("options",
|
|
3476
|
+
return At.forEach((T) => {
|
|
3477
|
+
k.component(T.name, T);
|
|
3478
|
+
}), k.provide("options", $t), k.use(Yt, { locale: ol }), document.body.appendChild(o), k.mount(o), t;
|
|
3472
3479
|
};
|
|
3473
3480
|
function It(f, i = window.innerWidth) {
|
|
3474
3481
|
if (typeof f == "number")
|
|
@@ -3486,13 +3493,13 @@ function It(f, i = window.innerWidth) {
|
|
|
3486
3493
|
return i * parseFloat(f) / 100;
|
|
3487
3494
|
}
|
|
3488
3495
|
if (f.startsWith("calc(") && f.endsWith(")")) {
|
|
3489
|
-
let d = function(
|
|
3490
|
-
if (/[0-9+\-*/().\s]+$/.test(
|
|
3491
|
-
return new Function("return " +
|
|
3496
|
+
let d = function(T) {
|
|
3497
|
+
if (/[0-9+\-*/().\s]+$/.test(T))
|
|
3498
|
+
return new Function("return " + T)();
|
|
3492
3499
|
throw new Error("Invalid calc expression");
|
|
3493
3500
|
};
|
|
3494
3501
|
const e = f.slice(5, -1).trim();
|
|
3495
|
-
return d(e.replace(/([0-9.]+)([a-z%]+)/g, (
|
|
3502
|
+
return d(e.replace(/([0-9.]+)([a-z%]+)/g, (T, V, D) => It(V + D, i)));
|
|
3496
3503
|
}
|
|
3497
3504
|
throw new Error("Unsupported unit in value: " + f);
|
|
3498
3505
|
}
|
|
@@ -3502,25 +3509,25 @@ const xe = (...f) => {
|
|
|
3502
3509
|
}), t);
|
|
3503
3510
|
return f.forEach((t = {}) => o(i, t)), i;
|
|
3504
3511
|
};
|
|
3505
|
-
function
|
|
3512
|
+
function qe(f, i = (o, t) => i(o, t)) {
|
|
3506
3513
|
const o = {};
|
|
3507
3514
|
for (const t in f)
|
|
3508
3515
|
f.hasOwnProperty(t) && i(t, f[t]) && (o[t] = f[t]);
|
|
3509
3516
|
return o;
|
|
3510
3517
|
}
|
|
3511
|
-
function
|
|
3518
|
+
function ma(f, i, o = "value", t = "label", e = "children") {
|
|
3512
3519
|
for (const d of f) {
|
|
3513
3520
|
if (d[o] === i)
|
|
3514
3521
|
return d[t];
|
|
3515
3522
|
if (d[e] && d[e].length > 0) {
|
|
3516
|
-
const k =
|
|
3523
|
+
const k = ma(d[e], i, o, t, e);
|
|
3517
3524
|
if (k)
|
|
3518
3525
|
return k;
|
|
3519
3526
|
}
|
|
3520
3527
|
}
|
|
3521
3528
|
return null;
|
|
3522
3529
|
}
|
|
3523
|
-
function
|
|
3530
|
+
function Et(f) {
|
|
3524
3531
|
if (!f || isNaN(f)) return "零";
|
|
3525
3532
|
const i = ["角", "分"], o = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], t = [
|
|
3526
3533
|
["元", "万", "亿"],
|
|
@@ -3532,14 +3539,14 @@ function wt(f) {
|
|
|
3532
3539
|
d += (o[Math.floor(f * 10 * Math.pow(10, k)) % 10] + i[k]).replace(/零./, "");
|
|
3533
3540
|
d = d || "整", f = Math.floor(f);
|
|
3534
3541
|
for (let k = 0; k < t[0].length && f > 0; k++) {
|
|
3535
|
-
let
|
|
3542
|
+
let T = "";
|
|
3536
3543
|
for (let V = 0; V < t[1].length && f > 0; V++)
|
|
3537
|
-
|
|
3538
|
-
d =
|
|
3544
|
+
T = o[f % 10] + t[1][V] + T, f = Math.floor(f / 10);
|
|
3545
|
+
d = T.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][k] + d;
|
|
3539
3546
|
}
|
|
3540
3547
|
return e + d.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
3541
3548
|
}
|
|
3542
|
-
function
|
|
3549
|
+
function pa(f) {
|
|
3543
3550
|
if (typeof f != "number" || isNaN(f) || !isFinite(f))
|
|
3544
3551
|
return "0.00";
|
|
3545
3552
|
const i = f.toFixed(2), [o, t] = i.split(".");
|
|
@@ -3573,15 +3580,15 @@ const ge = {
|
|
|
3573
3580
|
PASSWORD: "password",
|
|
3574
3581
|
TEXTAREA: "textarea",
|
|
3575
3582
|
TEL: "tel"
|
|
3576
|
-
},
|
|
3577
|
-
|
|
3583
|
+
}, mt = () => {
|
|
3584
|
+
tt(() => {
|
|
3578
3585
|
const f = document.querySelector(".el-dialog");
|
|
3579
3586
|
if (!f || f.querySelector(".dialog-resize-handle"))
|
|
3580
3587
|
return;
|
|
3581
|
-
const i =
|
|
3582
|
-
f.appendChild(i),
|
|
3588
|
+
const i = va();
|
|
3589
|
+
f.appendChild(i), ha(f), ya(f, i);
|
|
3583
3590
|
});
|
|
3584
|
-
},
|
|
3591
|
+
}, va = () => {
|
|
3585
3592
|
const f = document.createElement("div");
|
|
3586
3593
|
return Object.assign(f.style, {
|
|
3587
3594
|
position: "absolute",
|
|
@@ -3593,7 +3600,7 @@ const ge = {
|
|
|
3593
3600
|
cursor: "nwse-resize",
|
|
3594
3601
|
zIndex: "999999999999"
|
|
3595
3602
|
}), f.className = "dialog-resize-handle", f;
|
|
3596
|
-
},
|
|
3603
|
+
}, ha = (f) => {
|
|
3597
3604
|
Object.assign(f.style, {
|
|
3598
3605
|
transition: "none",
|
|
3599
3606
|
minWidth: "300px",
|
|
@@ -3601,28 +3608,28 @@ const ge = {
|
|
|
3601
3608
|
resize: "none"
|
|
3602
3609
|
// 防止与原生resize冲突
|
|
3603
3610
|
});
|
|
3604
|
-
},
|
|
3611
|
+
}, ya = (f, i) => {
|
|
3605
3612
|
let o = !1, t, e, d, k;
|
|
3606
|
-
const
|
|
3613
|
+
const T = (w) => {
|
|
3607
3614
|
w.preventDefault(), o = !0, t = w.clientX, e = w.clientY, d = parseInt(document.defaultView.getComputedStyle(f).width), k = parseInt(document.defaultView.getComputedStyle(f).height), document.addEventListener("mousemove", V), document.addEventListener("mouseup", D);
|
|
3608
3615
|
}, V = (w) => {
|
|
3609
3616
|
if (!o) return;
|
|
3610
|
-
const
|
|
3611
|
-
f.style.width = `${
|
|
3617
|
+
const z = Math.max(300, d + w.clientX - t), ee = Math.max(200, k + w.clientY - e);
|
|
3618
|
+
f.style.width = `${z}px`, f.style.height = `${ee}px`;
|
|
3612
3619
|
}, D = () => {
|
|
3613
3620
|
o = !1, document.removeEventListener("mousemove", V), document.removeEventListener("mouseup", D);
|
|
3614
3621
|
};
|
|
3615
|
-
i.addEventListener("mousedown",
|
|
3622
|
+
i.addEventListener("mousedown", T);
|
|
3616
3623
|
};
|
|
3617
3624
|
export {
|
|
3618
3625
|
ge as CT,
|
|
3619
|
-
|
|
3626
|
+
mt as bindResize,
|
|
3620
3627
|
It as convertToPx,
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3628
|
+
_a as default,
|
|
3629
|
+
qe as filterObject,
|
|
3630
|
+
ma as findTreeLabelByValue,
|
|
3631
|
+
pa as formatAmount,
|
|
3625
3632
|
xe as mergeObjects,
|
|
3626
|
-
|
|
3627
|
-
|
|
3633
|
+
Et as moneyToChinese,
|
|
3634
|
+
wt as openModal
|
|
3628
3635
|
};
|