vue-2024-ui 0.2.56 → 0.2.57
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 +891 -848
- package/dist/src/components/index.d.ts +1 -0
- 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 { ref as re, useModel as
|
|
3
|
-
import { Plus as
|
|
4
|
-
import
|
|
5
|
-
import { Dexie as
|
|
6
|
-
var
|
|
1
|
+
import jt, { ElForm as wt, ElButtonGroup as kt, ElButton as Ye, ElPopover as Tt, ElIcon as Ht, ElMessage as lt, ElMessageBox as Wt, ElDrawer as vl, ElDialog as pl } from "element-plus";
|
|
2
|
+
import { ref as re, useModel as at, nextTick as ht, onMounted as yt, computed as Qe, resolveComponent as N, openBlock as p, createElementBlock as F, Fragment as ae, createElementVNode as Z, createBlock as O, createCommentVNode as be, unref as R, mergeProps as L, withCtx as $, renderSlot as C, renderList as G, createTextVNode as Le, toDisplayString as Ce, createSlots as ge, createVNode as se, normalizeStyle as Re, normalizeProps as Et, mergeModels as rt, useSlots as Gt, inject as qt, withModifiers as it, resolveDynamicComponent as We, guardReactiveProps as ml, Transition as hl, withDirectives as yl, vShow as gl, h as ke, useAttrs as Mt, onUnmounted as bl, onBeforeUnmount as $l, normalizeClass as Xt, watchEffect as wl, onBeforeMount as kl, watch as Qt, createApp as Zt } from "vue";
|
|
3
|
+
import { Plus as _l, ZoomIn as Cl, Delete as Jt, Search as Sl, Refresh as Kt, More as Ml, CircleCheckFilled as xl, CircleCheck as el, Minus as Tl, Switch as Vl, FullScreen as El, InfoFilled as tl, Download as ll, DocumentCopy as Dl, Setting as Il, CirclePlus as Ol, Edit as ql, View as Al } from "@element-plus/icons-vue";
|
|
4
|
+
import al from "sortablejs";
|
|
5
|
+
import { Dexie as zl } from "dexie";
|
|
6
|
+
var rl = {
|
|
7
7
|
name: "zh-cn",
|
|
8
8
|
el: {
|
|
9
9
|
breadcrumb: { label: "面包屑" },
|
|
@@ -178,39 +178,39 @@ var tl = {
|
|
|
178
178
|
indicator: "幻灯片切换至索引 {index}"
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
},
|
|
182
|
-
function
|
|
181
|
+
}, Ll = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
182
|
+
function nl(r) {
|
|
183
183
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
184
184
|
}
|
|
185
|
-
var
|
|
185
|
+
var ol = { exports: {} };
|
|
186
186
|
(function(r, s) {
|
|
187
187
|
(function(t, l) {
|
|
188
188
|
r.exports = l();
|
|
189
|
-
})(
|
|
190
|
-
var t = 1e3, l = 6e4, n = 36e5, e = "millisecond", h = "second", f = "minute", S = "hour", c = "day", v = "week", o = "month", d = "quarter", g = "year",
|
|
189
|
+
})(Ll, function() {
|
|
190
|
+
var t = 1e3, l = 6e4, n = 36e5, e = "millisecond", h = "second", f = "minute", S = "hour", c = "day", v = "week", o = "month", d = "quarter", g = "year", J = "date", x = "Invalid Date", U = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, z = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, X = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
|
|
191
191
|
var b = ["th", "st", "nd", "rd"], i = w % 100;
|
|
192
192
|
return "[" + w + (b[(i - 20) % 10] || b[i] || b[0]) + "]";
|
|
193
193
|
} }, ee = function(w, b, i) {
|
|
194
|
-
var
|
|
195
|
-
return !
|
|
194
|
+
var I = String(w);
|
|
195
|
+
return !I || I.length >= b ? w : "" + Array(b + 1 - I.length).join(i) + w;
|
|
196
196
|
}, oe = { s: ee, z: function(w) {
|
|
197
|
-
var b = -w.utcOffset(), i = Math.abs(b),
|
|
198
|
-
return (b <= 0 ? "+" : "-") + ee(
|
|
197
|
+
var b = -w.utcOffset(), i = Math.abs(b), I = Math.floor(i / 60), _ = i % 60;
|
|
198
|
+
return (b <= 0 ? "+" : "-") + ee(I, 2, "0") + ":" + ee(_, 2, "0");
|
|
199
199
|
}, m: function w(b, i) {
|
|
200
200
|
if (b.date() < i.date()) return -w(i, b);
|
|
201
|
-
var
|
|
202
|
-
return +(-(
|
|
201
|
+
var I = 12 * (i.year() - b.year()) + (i.month() - b.month()), _ = b.clone().add(I, o), q = i - _ < 0, V = b.clone().add(I + (q ? -1 : 1), o);
|
|
202
|
+
return +(-(I + (i - _) / (q ? _ - V : V - _)) || 0);
|
|
203
203
|
}, a: function(w) {
|
|
204
204
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
|
205
205
|
}, p: function(w) {
|
|
206
|
-
return { M: o, y: g, w: v, d: c, D:
|
|
206
|
+
return { M: o, y: g, w: v, d: c, D: J, h: S, m: f, s: h, ms: e, Q: d }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
207
207
|
}, u: function(w) {
|
|
208
208
|
return w === void 0;
|
|
209
209
|
} }, ie = "en", he = {};
|
|
210
|
-
he[ie] =
|
|
210
|
+
he[ie] = X;
|
|
211
211
|
var we = "$isDayjsObject", Ve = function(w) {
|
|
212
212
|
return w instanceof Te || !(!w || !w[we]);
|
|
213
|
-
}, xe = function w(b, i,
|
|
213
|
+
}, xe = function w(b, i, I) {
|
|
214
214
|
var _;
|
|
215
215
|
if (!b) return ie;
|
|
216
216
|
if (typeof b == "string") {
|
|
@@ -222,7 +222,7 @@ var al = { exports: {} };
|
|
|
222
222
|
var Q = b.name;
|
|
223
223
|
he[Q] = b, _ = Q;
|
|
224
224
|
}
|
|
225
|
-
return !
|
|
225
|
+
return !I && _ && (ie = _), _ || !I && ie;
|
|
226
226
|
}, te = function(w, b) {
|
|
227
227
|
if (Ve(w)) return w.clone();
|
|
228
228
|
var i = typeof b == "object" ? b : {};
|
|
@@ -237,13 +237,13 @@ var al = { exports: {} };
|
|
|
237
237
|
}
|
|
238
238
|
var b = w.prototype;
|
|
239
239
|
return b.parse = function(i) {
|
|
240
|
-
this.$d = function(
|
|
241
|
-
var _ =
|
|
240
|
+
this.$d = function(I) {
|
|
241
|
+
var _ = I.date, q = I.utc;
|
|
242
242
|
if (_ === null) return /* @__PURE__ */ new Date(NaN);
|
|
243
243
|
if (ue.u(_)) return /* @__PURE__ */ new Date();
|
|
244
244
|
if (_ instanceof Date) return new Date(_);
|
|
245
245
|
if (typeof _ == "string" && !/Z$/i.test(_)) {
|
|
246
|
-
var V = _.match(
|
|
246
|
+
var V = _.match(U);
|
|
247
247
|
if (V) {
|
|
248
248
|
var Q = V[2] - 1 || 0, ne = (V[7] || "0").substring(0, 3);
|
|
249
249
|
return q ? new Date(Date.UTC(V[1], Q, V[3] || 1, V[4] || 0, V[5] || 0, V[6] || 0, ne)) : new Date(V[1], Q, V[3] || 1, V[4] || 0, V[5] || 0, V[6] || 0, ne);
|
|
@@ -258,36 +258,36 @@ var al = { exports: {} };
|
|
|
258
258
|
return ue;
|
|
259
259
|
}, b.isValid = function() {
|
|
260
260
|
return this.$d.toString() !== x;
|
|
261
|
-
}, b.isSame = function(i,
|
|
261
|
+
}, b.isSame = function(i, I) {
|
|
262
262
|
var _ = te(i);
|
|
263
|
-
return this.startOf(
|
|
264
|
-
}, b.isAfter = function(i,
|
|
265
|
-
return te(i) < this.startOf(
|
|
266
|
-
}, b.isBefore = function(i,
|
|
267
|
-
return this.endOf(
|
|
268
|
-
}, b.$g = function(i,
|
|
269
|
-
return ue.u(i) ? this[
|
|
263
|
+
return this.startOf(I) <= _ && _ <= this.endOf(I);
|
|
264
|
+
}, b.isAfter = function(i, I) {
|
|
265
|
+
return te(i) < this.startOf(I);
|
|
266
|
+
}, b.isBefore = function(i, I) {
|
|
267
|
+
return this.endOf(I) < te(i);
|
|
268
|
+
}, b.$g = function(i, I, _) {
|
|
269
|
+
return ue.u(i) ? this[I] : this.set(_, i);
|
|
270
270
|
}, b.unix = function() {
|
|
271
271
|
return Math.floor(this.valueOf() / 1e3);
|
|
272
272
|
}, b.valueOf = function() {
|
|
273
273
|
return this.$d.getTime();
|
|
274
|
-
}, b.startOf = function(i,
|
|
275
|
-
var _ = this, q = !!ue.u(
|
|
274
|
+
}, b.startOf = function(i, I) {
|
|
275
|
+
var _ = this, q = !!ue.u(I) || I, V = ue.p(i), Q = function(Ae, Se) {
|
|
276
276
|
var A = ue.w(_.$u ? Date.UTC(_.$y, Se, Ae) : new Date(_.$y, Se, Ae), _);
|
|
277
277
|
return q ? A : A.endOf(c);
|
|
278
278
|
}, ne = function(Ae, Se) {
|
|
279
279
|
return ue.w(_.toDate()[Ae].apply(_.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Se)), _);
|
|
280
|
-
},
|
|
280
|
+
}, ve = this.$W, P = this.$M, H = this.$D, Ee = "set" + (this.$u ? "UTC" : "");
|
|
281
281
|
switch (V) {
|
|
282
282
|
case g:
|
|
283
283
|
return q ? Q(1, 0) : Q(31, 11);
|
|
284
284
|
case o:
|
|
285
285
|
return q ? Q(1, P) : Q(0, P + 1);
|
|
286
286
|
case v:
|
|
287
|
-
var pe = this.$locale().weekStart || 0,
|
|
288
|
-
return Q(q ? H -
|
|
287
|
+
var pe = this.$locale().weekStart || 0, Ue = (ve < pe ? ve + 7 : ve) - pe;
|
|
288
|
+
return Q(q ? H - Ue : H + (6 - Ue), P);
|
|
289
289
|
case c:
|
|
290
|
-
case
|
|
290
|
+
case J:
|
|
291
291
|
return ne(Ee + "Hours", 0);
|
|
292
292
|
case S:
|
|
293
293
|
return ne(Ee + "Minutes", 1);
|
|
@@ -300,21 +300,21 @@ var al = { exports: {} };
|
|
|
300
300
|
}
|
|
301
301
|
}, b.endOf = function(i) {
|
|
302
302
|
return this.startOf(i, !1);
|
|
303
|
-
}, b.$set = function(i,
|
|
304
|
-
var _, q = ue.p(i), V = "set" + (this.$u ? "UTC" : ""), Q = (_ = {}, _[c] = V + "Date", _[
|
|
303
|
+
}, b.$set = function(i, I) {
|
|
304
|
+
var _, q = ue.p(i), V = "set" + (this.$u ? "UTC" : ""), Q = (_ = {}, _[c] = V + "Date", _[J] = V + "Date", _[o] = V + "Month", _[g] = V + "FullYear", _[S] = V + "Hours", _[f] = V + "Minutes", _[h] = V + "Seconds", _[e] = V + "Milliseconds", _)[q], ne = q === c ? this.$D + (I - this.$W) : I;
|
|
305
305
|
if (q === o || q === g) {
|
|
306
|
-
var
|
|
307
|
-
|
|
306
|
+
var ve = this.clone().set(J, 1);
|
|
307
|
+
ve.$d[Q](ne), ve.init(), this.$d = ve.set(J, Math.min(this.$D, ve.daysInMonth())).$d;
|
|
308
308
|
} else Q && this.$d[Q](ne);
|
|
309
309
|
return this.init(), this;
|
|
310
|
-
}, b.set = function(i,
|
|
311
|
-
return this.clone().$set(i,
|
|
310
|
+
}, b.set = function(i, I) {
|
|
311
|
+
return this.clone().$set(i, I);
|
|
312
312
|
}, b.get = function(i) {
|
|
313
313
|
return this[ue.p(i)]();
|
|
314
|
-
}, b.add = function(i,
|
|
314
|
+
}, b.add = function(i, I) {
|
|
315
315
|
var _, q = this;
|
|
316
316
|
i = Number(i);
|
|
317
|
-
var V = ue.p(
|
|
317
|
+
var V = ue.p(I), Q = function(P) {
|
|
318
318
|
var H = te(q);
|
|
319
319
|
return ue.w(H.date(H.date() + Math.round(P * i)), q);
|
|
320
320
|
};
|
|
@@ -322,56 +322,56 @@ var al = { exports: {} };
|
|
|
322
322
|
if (V === g) return this.set(g, this.$y + i);
|
|
323
323
|
if (V === c) return Q(1);
|
|
324
324
|
if (V === v) return Q(7);
|
|
325
|
-
var ne = (_ = {}, _[f] = l, _[S] = n, _[h] = t, _)[V] || 1,
|
|
326
|
-
return ue.w(
|
|
327
|
-
}, b.subtract = function(i,
|
|
328
|
-
return this.add(-1 * i,
|
|
325
|
+
var ne = (_ = {}, _[f] = l, _[S] = n, _[h] = t, _)[V] || 1, ve = this.$d.getTime() + i * ne;
|
|
326
|
+
return ue.w(ve, this);
|
|
327
|
+
}, b.subtract = function(i, I) {
|
|
328
|
+
return this.add(-1 * i, I);
|
|
329
329
|
}, b.format = function(i) {
|
|
330
|
-
var
|
|
330
|
+
var I = this, _ = this.$locale();
|
|
331
331
|
if (!this.isValid()) return _.invalidDate || x;
|
|
332
|
-
var q = i || "YYYY-MM-DDTHH:mm:ssZ", V = ue.z(this), Q = this.$H, ne = this.$m,
|
|
333
|
-
return Se && (Se[A] || Se(
|
|
334
|
-
},
|
|
332
|
+
var q = i || "YYYY-MM-DDTHH:mm:ssZ", V = ue.z(this), Q = this.$H, ne = this.$m, ve = this.$M, P = _.weekdays, H = _.months, Ee = _.meridiem, pe = function(Se, A, M, j) {
|
|
333
|
+
return Se && (Se[A] || Se(I, q)) || M[A].slice(0, j);
|
|
334
|
+
}, Ue = function(Se) {
|
|
335
335
|
return ue.s(Q % 12 || 12, Se, "0");
|
|
336
336
|
}, Ae = Ee || function(Se, A, M) {
|
|
337
|
-
var
|
|
338
|
-
return M ?
|
|
337
|
+
var j = Se < 12 ? "AM" : "PM";
|
|
338
|
+
return M ? j.toLowerCase() : j;
|
|
339
339
|
};
|
|
340
340
|
return q.replace(z, function(Se, A) {
|
|
341
341
|
return A || function(M) {
|
|
342
342
|
switch (M) {
|
|
343
343
|
case "YY":
|
|
344
|
-
return String(
|
|
344
|
+
return String(I.$y).slice(-2);
|
|
345
345
|
case "YYYY":
|
|
346
|
-
return ue.s(
|
|
346
|
+
return ue.s(I.$y, 4, "0");
|
|
347
347
|
case "M":
|
|
348
|
-
return
|
|
348
|
+
return ve + 1;
|
|
349
349
|
case "MM":
|
|
350
|
-
return ue.s(
|
|
350
|
+
return ue.s(ve + 1, 2, "0");
|
|
351
351
|
case "MMM":
|
|
352
|
-
return pe(_.monthsShort,
|
|
352
|
+
return pe(_.monthsShort, ve, H, 3);
|
|
353
353
|
case "MMMM":
|
|
354
|
-
return pe(H,
|
|
354
|
+
return pe(H, ve);
|
|
355
355
|
case "D":
|
|
356
|
-
return
|
|
356
|
+
return I.$D;
|
|
357
357
|
case "DD":
|
|
358
|
-
return ue.s(
|
|
358
|
+
return ue.s(I.$D, 2, "0");
|
|
359
359
|
case "d":
|
|
360
|
-
return String(
|
|
360
|
+
return String(I.$W);
|
|
361
361
|
case "dd":
|
|
362
|
-
return pe(_.weekdaysMin,
|
|
362
|
+
return pe(_.weekdaysMin, I.$W, P, 2);
|
|
363
363
|
case "ddd":
|
|
364
|
-
return pe(_.weekdaysShort,
|
|
364
|
+
return pe(_.weekdaysShort, I.$W, P, 3);
|
|
365
365
|
case "dddd":
|
|
366
|
-
return P[
|
|
366
|
+
return P[I.$W];
|
|
367
367
|
case "H":
|
|
368
368
|
return String(Q);
|
|
369
369
|
case "HH":
|
|
370
370
|
return ue.s(Q, 2, "0");
|
|
371
371
|
case "h":
|
|
372
|
-
return
|
|
372
|
+
return Ue(1);
|
|
373
373
|
case "hh":
|
|
374
|
-
return
|
|
374
|
+
return Ue(2);
|
|
375
375
|
case "a":
|
|
376
376
|
return Ae(Q, ne, !0);
|
|
377
377
|
case "A":
|
|
@@ -381,11 +381,11 @@ var al = { exports: {} };
|
|
|
381
381
|
case "mm":
|
|
382
382
|
return ue.s(ne, 2, "0");
|
|
383
383
|
case "s":
|
|
384
|
-
return String(
|
|
384
|
+
return String(I.$s);
|
|
385
385
|
case "ss":
|
|
386
|
-
return ue.s(
|
|
386
|
+
return ue.s(I.$s, 2, "0");
|
|
387
387
|
case "SSS":
|
|
388
|
-
return ue.s(
|
|
388
|
+
return ue.s(I.$ms, 3, "0");
|
|
389
389
|
case "Z":
|
|
390
390
|
return V;
|
|
391
391
|
}
|
|
@@ -394,8 +394,8 @@ var al = { exports: {} };
|
|
|
394
394
|
});
|
|
395
395
|
}, b.utcOffset = function() {
|
|
396
396
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
397
|
-
}, b.diff = function(i,
|
|
398
|
-
var q, V = this, Q = ue.p(
|
|
397
|
+
}, b.diff = function(i, I, _) {
|
|
398
|
+
var q, V = this, Q = ue.p(I), ne = te(i), ve = (ne.utcOffset() - this.utcOffset()) * l, P = this - ne, H = function() {
|
|
399
399
|
return ue.m(V, ne);
|
|
400
400
|
};
|
|
401
401
|
switch (Q) {
|
|
@@ -409,10 +409,10 @@ var al = { exports: {} };
|
|
|
409
409
|
q = H() / 3;
|
|
410
410
|
break;
|
|
411
411
|
case v:
|
|
412
|
-
q = (P -
|
|
412
|
+
q = (P - ve) / 6048e5;
|
|
413
413
|
break;
|
|
414
414
|
case c:
|
|
415
|
-
q = (P -
|
|
415
|
+
q = (P - ve) / 864e5;
|
|
416
416
|
break;
|
|
417
417
|
case S:
|
|
418
418
|
q = P / n;
|
|
@@ -431,9 +431,9 @@ var al = { exports: {} };
|
|
|
431
431
|
return this.endOf(o).$D;
|
|
432
432
|
}, b.$locale = function() {
|
|
433
433
|
return he[this.$L];
|
|
434
|
-
}, b.locale = function(i,
|
|
434
|
+
}, b.locale = function(i, I) {
|
|
435
435
|
if (!i) return this.$L;
|
|
436
|
-
var _ = this.clone(), q = xe(i,
|
|
436
|
+
var _ = this.clone(), q = xe(i, I, !0);
|
|
437
437
|
return q && (_.$L = q), _;
|
|
438
438
|
}, b.clone = function() {
|
|
439
439
|
return ue.w(this.$d, this);
|
|
@@ -447,7 +447,7 @@ var al = { exports: {} };
|
|
|
447
447
|
return this.$d.toUTCString();
|
|
448
448
|
}, w;
|
|
449
449
|
}(), T = Te.prototype;
|
|
450
|
-
return te.prototype = T, [["$ms", e], ["$s", h], ["$m", f], ["$H", S], ["$W", c], ["$M", o], ["$y", g], ["$D",
|
|
450
|
+
return te.prototype = T, [["$ms", e], ["$s", h], ["$m", f], ["$H", S], ["$W", c], ["$M", o], ["$y", g], ["$D", J]].forEach(function(w) {
|
|
451
451
|
T[w[1]] = function(b) {
|
|
452
452
|
return this.$g(b, w[0], w[1]);
|
|
453
453
|
};
|
|
@@ -457,38 +457,38 @@ var al = { exports: {} };
|
|
|
457
457
|
return te(1e3 * w);
|
|
458
458
|
}, te.en = he[ie], te.Ls = he, te.p = {}, te;
|
|
459
459
|
});
|
|
460
|
-
})(
|
|
461
|
-
var
|
|
462
|
-
const Vt = /* @__PURE__ */
|
|
460
|
+
})(ol);
|
|
461
|
+
var Ul = ol.exports;
|
|
462
|
+
const Vt = /* @__PURE__ */ nl(Ul), Ke = (r, s) => {
|
|
463
463
|
const t = r.__vccOpts || r;
|
|
464
464
|
for (const [l, n] of s)
|
|
465
465
|
t[l] = n;
|
|
466
466
|
return t;
|
|
467
|
-
},
|
|
467
|
+
}, Fl = {
|
|
468
468
|
style: { display: "flex", width: "100%" },
|
|
469
469
|
class: "g-ctrl-container"
|
|
470
|
-
},
|
|
470
|
+
}, Yl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, Rl = ["innerHTML"], Hl = ["innerHTML"], Bl = ["title"], Pl = ["innerHTML"], Nl = ["innerHTML"], jl = ["innerHTML"], Wl = ["innerHTML"], Gl = ["innerHTML"], Xl = ["innerHTML"], Ql = ["innerHTML"], Zl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
471
471
|
__name: "g-ctrl",
|
|
472
|
-
props: /* @__PURE__ */
|
|
472
|
+
props: /* @__PURE__ */ rt(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
473
473
|
modelValue: { required: !0 },
|
|
474
474
|
modelModifiers: {}
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:modelValue"],
|
|
477
477
|
setup(r) {
|
|
478
|
-
var b, i,
|
|
479
|
-
const s = r, t = re(s.item || {}), l =
|
|
480
|
-
!((q = e.value) != null && q.startsWith("text")) && !((V = e.value) != null && V.startsWith("link")) && !((Q = e.value) != null && Q.startsWith("tag")) && !((ne = e.value) != null && ne.startsWith("div")) && !((
|
|
481
|
-
const g = re({ display: "flex", flex: 1 }),
|
|
482
|
-
g.value = { ...g.value, justifyContent:
|
|
483
|
-
const
|
|
484
|
-
const A =
|
|
485
|
-
return M.filter((
|
|
478
|
+
var b, i, I, _, q, V, Q, ne, ve, P, H, Ee, pe, Ue, Ae, Se;
|
|
479
|
+
const s = r, t = re(s.item || {}), l = at(r, "modelValue"), n = re(s.ctrlKey), e = re(s.ctrlType), h = re(s.model), f = re([]), S = re([]), c = re(!1), v = re(!1), o = re(0), d = re((i = (b = h == null ? void 0 : h.value) == null ? void 0 : b.form) != null && i["default-placeholder"] ? (_ = (I = h == null ? void 0 : h.value) == null ? void 0 : I[n == null ? void 0 : n.value]) == null ? void 0 : _.label : "");
|
|
480
|
+
!((q = e.value) != null && q.startsWith("text")) && !((V = e.value) != null && V.startsWith("link")) && !((Q = e.value) != null && Q.startsWith("tag")) && !((ne = e.value) != null && ne.startsWith("div")) && !((ve = e.value) != null && ve.startsWith("span")) && !((P = e.value) != null && P.startsWith("avatar")) && ((H = t.value) != null && H.style || (t.value.style = { width: ((pe = (Ee = t.value) == null ? void 0 : Ee.style) == null ? void 0 : pe.width) || "100%" }));
|
|
481
|
+
const g = re({ display: "flex", flex: 1 }), J = s.t === "t" ? "center" : "flex-start", x = ((Ue = t.value) == null ? void 0 : Ue.style) || {};
|
|
482
|
+
g.value = { ...g.value, justifyContent: J, ...x };
|
|
483
|
+
const U = () => {
|
|
484
|
+
const A = Gt(), M = Object.keys(A), j = `${s.t}-${n.value}-`;
|
|
485
|
+
return M.filter((Oe) => Oe.startsWith(j)).map((Oe) => Oe.replace(j, ""));
|
|
486
486
|
}, z = re({
|
|
487
487
|
multiple: !1,
|
|
488
488
|
"show-file-list": !1,
|
|
489
489
|
"file-list": [],
|
|
490
490
|
showDel: (Ae = t.value) != null && Ae.showDel ? (Se = t.value) == null ? void 0 : Se.showDel : s.t !== "t"
|
|
491
|
-
}),
|
|
491
|
+
}), X = re(t.value.innerHtml), ee = (A) => [
|
|
492
492
|
"year",
|
|
493
493
|
"years",
|
|
494
494
|
"month",
|
|
@@ -528,19 +528,19 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
528
528
|
}), we = async (A = "options") => {
|
|
529
529
|
var M;
|
|
530
530
|
try {
|
|
531
|
-
const
|
|
532
|
-
if (typeof
|
|
533
|
-
S.value = [{ label:
|
|
531
|
+
const j = await ((M = t.value) == null ? void 0 : M.getDicts(s.formInfo));
|
|
532
|
+
if (typeof j == "string")
|
|
533
|
+
S.value = [{ label: j, value: l.value }];
|
|
534
534
|
else {
|
|
535
|
-
const Me =
|
|
536
|
-
...
|
|
537
|
-
value:
|
|
538
|
-
label:
|
|
535
|
+
const Me = j == null ? void 0 : j.map((Ie, Oe) => ({
|
|
536
|
+
...Ie,
|
|
537
|
+
value: Ie.value ?? Ie.label ?? Oe,
|
|
538
|
+
label: Ie.label || "未知选项"
|
|
539
539
|
}));
|
|
540
540
|
S.value = Me || [];
|
|
541
541
|
}
|
|
542
|
-
} catch (
|
|
543
|
-
throw console.error("获取选项失败:",
|
|
542
|
+
} catch (j) {
|
|
543
|
+
throw console.error("获取选项失败:", j), j;
|
|
544
544
|
}
|
|
545
545
|
}, Ve = () => {
|
|
546
546
|
var A, M;
|
|
@@ -550,24 +550,24 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
550
550
|
}, te = (A) => {
|
|
551
551
|
var M;
|
|
552
552
|
if (t.value["file-list"] && t.value["file-list"].length > 0) {
|
|
553
|
-
const
|
|
553
|
+
const j = t.value["file-list"].findIndex(
|
|
554
554
|
(Me) => Me.url === A.url || Me.uid === A.uid || A.raw && Me.raw && Me.raw.uid === A.raw.uid
|
|
555
555
|
);
|
|
556
|
-
o.value =
|
|
556
|
+
o.value = j >= 0 ? j : 0;
|
|
557
557
|
} else {
|
|
558
|
-
const
|
|
558
|
+
const j = A.url || ((M = A.raw) == null ? void 0 : M.url), Me = w.value.indexOf(j);
|
|
559
559
|
o.value = Me >= 0 ? Me : 0;
|
|
560
560
|
}
|
|
561
561
|
c.value = !0;
|
|
562
562
|
}, ue = (A) => {
|
|
563
563
|
if (A.preventDefault(), A.stopPropagation(), t.value["file-list"] && t.value["file-list"].length > 0) {
|
|
564
|
-
const M = l.value,
|
|
564
|
+
const M = l.value, j = t.value["file-list"].findIndex(
|
|
565
565
|
(Me) => {
|
|
566
|
-
var
|
|
567
|
-
return Me.url === M || ((
|
|
566
|
+
var Ie;
|
|
567
|
+
return Me.url === M || ((Ie = Me.raw) == null ? void 0 : Ie.url) === M;
|
|
568
568
|
}
|
|
569
569
|
);
|
|
570
|
-
o.value =
|
|
570
|
+
o.value = j >= 0 ? j : 0;
|
|
571
571
|
} else
|
|
572
572
|
o.value = 0;
|
|
573
573
|
c.value = !0;
|
|
@@ -576,20 +576,20 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
576
576
|
l.value = "";
|
|
577
577
|
return;
|
|
578
578
|
}
|
|
579
|
-
let
|
|
580
|
-
if (
|
|
581
|
-
const
|
|
582
|
-
|
|
579
|
+
let j = A.replace(/[^-\d.]/g, "");
|
|
580
|
+
if (j.includes("-") && (j.startsWith("-") ? j = "-" + j.substring(1).replace(/-/g, "") : j = j.replace(/-/g, "")), (j.match(/\./g) || []).length > 1) {
|
|
581
|
+
const Oe = j.indexOf(".");
|
|
582
|
+
j = j.substring(0, Oe + 1) + j.substring(Oe + 1).replace(/\./g, "");
|
|
583
583
|
}
|
|
584
|
-
if (
|
|
585
|
-
const [
|
|
586
|
-
Ge.length > M && (
|
|
584
|
+
if (j = j.replace(/^-\./, "-0."), j = j.replace(/^\./, "0."), j = j.replace(/^-0+(\d)/, "-$1"), j = j.replace(/^0+(\d)/, "$1"), (j === "-" || j === "" || j === ".") && (j = "0"), M >= 0 && j.includes(".")) {
|
|
585
|
+
const [Oe, Ge] = j.split(".");
|
|
586
|
+
Ge.length > M && (j = Oe + "." + Ge.substring(0, M));
|
|
587
587
|
}
|
|
588
|
-
l.value =
|
|
588
|
+
l.value = j;
|
|
589
589
|
};
|
|
590
590
|
yt(async () => {
|
|
591
|
-
var
|
|
592
|
-
t.value && t.value["remote-method"] && (ie.value["remote-method"] = he), (Me = (
|
|
591
|
+
var j, Me, Ie, Oe, Ge;
|
|
592
|
+
t.value && t.value["remote-method"] && (ie.value["remote-method"] = he), (Me = (j = h.value[n.value]) == null ? void 0 : j.options) != null && Me.length && (S.value = h.value[n.value].options);
|
|
593
593
|
const A = (He, Pe = "options", Ne = h.value[n.value]) => {
|
|
594
594
|
typeof t.value.getDicts == "function" && we(Pe).catch((a) => {
|
|
595
595
|
console.error(`Failed to load ${Pe} for ${He}:`, a);
|
|
@@ -627,18 +627,18 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
627
627
|
(a = (Ne = h.value) == null ? void 0 : Ne.table) == null || a.load();
|
|
628
628
|
});
|
|
629
629
|
}
|
|
630
|
-
e.value == "image" && (t.value.width && ((
|
|
630
|
+
e.value == "image" && (t.value.width && ((Ie = Te.value) != null && Ie.$el) && Te.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && ((Oe = Te.value) != null && Oe.$el) && Te.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((Ge = Te.value) != null && Ge.$el) && Te.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
|
|
631
631
|
});
|
|
632
632
|
const w = Qe(() => {
|
|
633
633
|
var A;
|
|
634
634
|
return t.value["file-list"] && t.value["file-list"].length ? (A = t.value["file-list"]) == null ? void 0 : A.map((M) => M == null ? void 0 : M.url) : [l.value];
|
|
635
635
|
});
|
|
636
636
|
return (A, M) => {
|
|
637
|
-
var et,
|
|
638
|
-
const
|
|
639
|
-
return
|
|
640
|
-
|
|
641
|
-
c.value ? (
|
|
637
|
+
var et, ct, W, tt, ft, vt, bt, Lt, Ut, Ft, Yt, Rt;
|
|
638
|
+
const j = N("el-image-viewer"), Me = N("el-radio"), Ie = N("el-radio-group"), Oe = N("el-radio-button"), Ge = N("el-checkbox"), He = N("el-checkbox-group"), Pe = N("el-checkbox-button"), Ne = N("g-select-option"), a = N("el-option"), u = N("el-select"), m = N("el-tree-select"), k = N("el-time-picker"), D = N("el-time-select"), B = N("el-date-picker"), Y = N("el-color-picker"), $e = N("el-rate"), qe = N("el-slider"), De = N("el-switch"), Fe = N("el-transfer"), Be = N("el-cascader"), je = N("el-icon"), ut = N("el-image"), dt = N("el-tooltip"), gt = N("el-upload"), K = N("el-autocomplete"), me = N("el-input-number"), E = N("el-input-tag"), le = N("el-input"), de = N("el-link"), st = N("el-text"), nt = N("el-avatar"), Je = N("el-tag");
|
|
639
|
+
return p(), F(ae, null, [
|
|
640
|
+
Z("div", null, [
|
|
641
|
+
c.value ? (p(), O(j, {
|
|
642
642
|
key: 0,
|
|
643
643
|
teleported: !0,
|
|
644
644
|
"initial-index": o.value,
|
|
@@ -646,8 +646,8 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
646
646
|
onClose: M[0] || (M[0] = (y) => c.value = !1)
|
|
647
647
|
}, null, 8, ["initial-index", "url-list"])) : be("", !0)
|
|
648
648
|
]),
|
|
649
|
-
|
|
650
|
-
e.value == R(_e).RADIO ? (
|
|
649
|
+
Z("div", Fl, [
|
|
650
|
+
e.value == R(_e).RADIO ? (p(), O(Ie, L({
|
|
651
651
|
key: 0,
|
|
652
652
|
modelValue: l.value,
|
|
653
653
|
"onUpdate:modelValue": M[1] || (M[1] = (y) => l.value = y),
|
|
@@ -655,7 +655,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
655
655
|
}, t.value), {
|
|
656
656
|
default: $(() => [
|
|
657
657
|
C(A.$slots, `${s.t}-${n.value}`, { data: t.value }, () => [
|
|
658
|
-
(
|
|
658
|
+
(p(!0), F(ae, null, G(S.value, (y) => (p(), O(Me, L({ ref_for: !0 }, y), {
|
|
659
659
|
default: $(() => [
|
|
660
660
|
C(A.$slots, `${s.t}-${n.value}-options`, { option: y }, void 0, !0)
|
|
661
661
|
]),
|
|
@@ -664,7 +664,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
664
664
|
], !0)
|
|
665
665
|
]),
|
|
666
666
|
_: 3
|
|
667
|
-
}, 16, ["modelValue", "disabled"])) : e.value == R(_e).RADIOBUTTON ? (
|
|
667
|
+
}, 16, ["modelValue", "disabled"])) : e.value == R(_e).RADIOBUTTON ? (p(), O(Ie, L({
|
|
668
668
|
key: 1,
|
|
669
669
|
modelValue: l.value,
|
|
670
670
|
"onUpdate:modelValue": M[2] || (M[2] = (y) => l.value = y),
|
|
@@ -672,7 +672,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
672
672
|
}, t.value), {
|
|
673
673
|
default: $(() => [
|
|
674
674
|
C(A.$slots, `${s.t}-${n.value}`, { data: t.value }, () => [
|
|
675
|
-
(
|
|
675
|
+
(p(!0), F(ae, null, G(S.value, (y) => (p(), O(Oe, L({ ref_for: !0 }, y), {
|
|
676
676
|
default: $(() => [
|
|
677
677
|
C(A.$slots, `${s.t}-${n.value}-options`, { option: y }, void 0, !0)
|
|
678
678
|
]),
|
|
@@ -681,7 +681,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
681
681
|
], !0)
|
|
682
682
|
]),
|
|
683
683
|
_: 3
|
|
684
|
-
}, 16, ["modelValue", "disabled"])) : e.value == R(_e).CHECKBOX ? (
|
|
684
|
+
}, 16, ["modelValue", "disabled"])) : e.value == R(_e).CHECKBOX ? (p(), O(Ge, L({
|
|
685
685
|
key: 2,
|
|
686
686
|
modelValue: l.value,
|
|
687
687
|
"onUpdate:modelValue": M[3] || (M[3] = (y) => l.value = y),
|
|
@@ -689,11 +689,11 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
689
689
|
}, t.value), {
|
|
690
690
|
default: $(() => [
|
|
691
691
|
C(A.$slots, `${s.t}-${n.value}`, { data: t.value }, () => [
|
|
692
|
-
M[
|
|
692
|
+
M[30] || (M[30] = Le(Ce(" "), -1))
|
|
693
693
|
], !0)
|
|
694
694
|
]),
|
|
695
695
|
_: 3
|
|
696
|
-
}, 16, ["modelValue", "disabled"])) : e.value == R(_e).CHECKBOXGROUP ? (
|
|
696
|
+
}, 16, ["modelValue", "disabled"])) : e.value == R(_e).CHECKBOXGROUP ? (p(), O(He, L({
|
|
697
697
|
key: 3,
|
|
698
698
|
modelValue: l.value,
|
|
699
699
|
"onUpdate:modelValue": M[4] || (M[4] = (y) => l.value = y),
|
|
@@ -701,10 +701,10 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
701
701
|
}, t.value), {
|
|
702
702
|
default: $(() => [
|
|
703
703
|
C(A.$slots, `${s.t}-${n.value}`, { data: t.value }, () => [
|
|
704
|
-
(
|
|
704
|
+
(p(!0), F(ae, null, G(S.value, (y) => (p(), O(Ge, L({ ref_for: !0 }, y), {
|
|
705
705
|
default: $(() => [
|
|
706
706
|
C(A.$slots, `${s.t}-${n.value}-options`, { option: y }, () => [
|
|
707
|
-
|
|
707
|
+
Le(Ce(y.label), 1)
|
|
708
708
|
], !0)
|
|
709
709
|
]),
|
|
710
710
|
_: 2
|
|
@@ -712,7 +712,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
712
712
|
], !0)
|
|
713
713
|
]),
|
|
714
714
|
_: 3
|
|
715
|
-
}, 16, ["modelValue", "disabled"])) : e.value == R(_e).CHECKBOXGROUPBUTTON ? (
|
|
715
|
+
}, 16, ["modelValue", "disabled"])) : e.value == R(_e).CHECKBOXGROUPBUTTON ? (p(), O(He, L({
|
|
716
716
|
key: 4,
|
|
717
717
|
modelValue: l.value,
|
|
718
718
|
"onUpdate:modelValue": M[5] || (M[5] = (y) => l.value = y),
|
|
@@ -720,7 +720,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
720
720
|
}, R(Ze)(t.value, (y) => y != "type")), {
|
|
721
721
|
default: $(() => [
|
|
722
722
|
C(A.$slots, `${s.t}-${n.value}`, { data: t.value }, () => [
|
|
723
|
-
(
|
|
723
|
+
(p(!0), F(ae, null, G(S.value, (y) => (p(), O(Pe, L({ ref_for: !0 }, y), {
|
|
724
724
|
default: $(() => [
|
|
725
725
|
C(A.$slots, `${s.t}-${n.value}-options`, { option: y }, void 0, !0)
|
|
726
726
|
]),
|
|
@@ -729,7 +729,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
729
729
|
], !0)
|
|
730
730
|
]),
|
|
731
731
|
_: 3
|
|
732
|
-
}, 16, ["modelValue", "disabled"])) : e.value === R(_e).SELECT ? (
|
|
732
|
+
}, 16, ["modelValue", "disabled"])) : e.value === R(_e).SELECT ? (p(), O(u, L({
|
|
733
733
|
key: 5,
|
|
734
734
|
modelValue: l.value,
|
|
735
735
|
"onUpdate:modelValue": M[6] || (M[6] = (y) => l.value = y),
|
|
@@ -747,18 +747,18 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
747
747
|
key: 0,
|
|
748
748
|
options: S.value
|
|
749
749
|
}, () => [
|
|
750
|
-
(
|
|
750
|
+
(p(!0), F(ae, null, G(S.value, (ce) => (p(), F(ae, {
|
|
751
751
|
key: ce.value
|
|
752
752
|
}, [
|
|
753
|
-
se(a,
|
|
754
|
-
onClick: (
|
|
753
|
+
se(a, L({ ref_for: !0 }, R(Ze)(ce, (fe) => fe != "children"), {
|
|
754
|
+
onClick: (fe) => {
|
|
755
755
|
ie.value.change && ie.value.change(ce), Ve();
|
|
756
756
|
}
|
|
757
757
|
}), {
|
|
758
758
|
default: $(() => {
|
|
759
|
-
var
|
|
759
|
+
var fe;
|
|
760
760
|
return [
|
|
761
|
-
(
|
|
761
|
+
(fe = t.value) != null && fe.columns ? C(A.$slots, `${s.t}-${n.value}-options`, {
|
|
762
762
|
key: 0,
|
|
763
763
|
option: ce
|
|
764
764
|
}, () => {
|
|
@@ -769,7 +769,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
769
769
|
data: ce,
|
|
770
770
|
t: s.t
|
|
771
771
|
}, ge({ _: 2 }, [
|
|
772
|
-
|
|
772
|
+
G(A.$slots, (pt, xt) => ({
|
|
773
773
|
name: xt,
|
|
774
774
|
fn: $(($t) => [
|
|
775
775
|
C(A.$slots, xt, {
|
|
@@ -786,12 +786,12 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
786
786
|
}),
|
|
787
787
|
_: 2
|
|
788
788
|
}, 1040, ["onClick"]),
|
|
789
|
-
ce.children && ce.children.length ? (
|
|
789
|
+
ce.children && ce.children.length ? (p(!0), F(ae, { key: 0 }, G(ce.children, (fe) => (p(), O(a, L({
|
|
790
790
|
style: { "margin-left": "20px" },
|
|
791
|
-
key:
|
|
792
|
-
}, { ref_for: !0 }, R(Ze)(
|
|
791
|
+
key: fe.value
|
|
792
|
+
}, { ref_for: !0 }, R(Ze)(fe, (Xe) => Xe != "children"), {
|
|
793
793
|
onClick: (Xe) => {
|
|
794
|
-
ie.value.change && ie.value.change(
|
|
794
|
+
ie.value.change && ie.value.change(fe), Ve();
|
|
795
795
|
}
|
|
796
796
|
}), {
|
|
797
797
|
default: $(() => {
|
|
@@ -799,21 +799,21 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
799
799
|
return [
|
|
800
800
|
(Xe = t.value) != null && Xe.columns ? C(A.$slots, `${s.t}-${n.value}-options`, {
|
|
801
801
|
key: 0,
|
|
802
|
-
option:
|
|
802
|
+
option: fe
|
|
803
803
|
}, () => {
|
|
804
804
|
var pt;
|
|
805
805
|
return [
|
|
806
806
|
se(Ne, {
|
|
807
807
|
columns: (pt = t.value) == null ? void 0 : pt.columns,
|
|
808
|
-
data:
|
|
808
|
+
data: fe,
|
|
809
809
|
t: s.t
|
|
810
810
|
}, ge({ _: 2 }, [
|
|
811
|
-
|
|
811
|
+
G(A.$slots, (xt, $t) => ({
|
|
812
812
|
name: $t,
|
|
813
|
-
fn: $((
|
|
813
|
+
fn: $((fl) => [
|
|
814
814
|
C(A.$slots, $t, {
|
|
815
|
-
option:
|
|
816
|
-
data:
|
|
815
|
+
option: fe,
|
|
816
|
+
data: fl,
|
|
817
817
|
form: r.formInfo
|
|
818
818
|
}, void 0, !0)
|
|
819
819
|
])
|
|
@@ -841,10 +841,10 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
841
841
|
title: !0,
|
|
842
842
|
t: s.t
|
|
843
843
|
}, ge({ _: 2 }, [
|
|
844
|
-
|
|
845
|
-
name:
|
|
844
|
+
G(A.$slots, (ce, fe) => ({
|
|
845
|
+
name: fe,
|
|
846
846
|
fn: $((Xe) => [
|
|
847
|
-
C(A.$slots,
|
|
847
|
+
C(A.$slots, fe, { data: Xe }, void 0, !0)
|
|
848
848
|
])
|
|
849
849
|
}))
|
|
850
850
|
]), 1032, ["columns", "t"])
|
|
@@ -852,32 +852,32 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
852
852
|
}),
|
|
853
853
|
key: "0"
|
|
854
854
|
} : void 0,
|
|
855
|
-
|
|
855
|
+
G(U(), (y) => ({
|
|
856
856
|
name: y,
|
|
857
857
|
fn: $((ce) => [
|
|
858
858
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { form: r.formInfo }, void 0, !0)
|
|
859
859
|
])
|
|
860
860
|
}))
|
|
861
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == R(_e).TREESELECT ? (
|
|
861
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == R(_e).TREESELECT ? (p(), O(m, L({
|
|
862
862
|
key: 6,
|
|
863
863
|
modelValue: l.value,
|
|
864
864
|
"onUpdate:modelValue": M[8] || (M[8] = (y) => l.value = y),
|
|
865
865
|
placeholder: d.value,
|
|
866
866
|
disabled: h.value[n.value].disabled
|
|
867
867
|
}, t.value, { data: f.value }), ge({ _: 2 }, [
|
|
868
|
-
|
|
868
|
+
G(U(), (y) => ({
|
|
869
869
|
name: y,
|
|
870
870
|
fn: $((ce) => [
|
|
871
871
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
|
|
872
872
|
])
|
|
873
873
|
}))
|
|
874
|
-
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value == R(_e).TIME ? (
|
|
874
|
+
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value == R(_e).TIME ? (p(), O(k, L({
|
|
875
875
|
key: 7,
|
|
876
876
|
modelValue: l.value,
|
|
877
877
|
"onUpdate:modelValue": M[9] || (M[9] = (y) => l.value = y),
|
|
878
878
|
"arrow-control": "",
|
|
879
879
|
disabled: h.value[n.value].disabled
|
|
880
|
-
}, t.value, { placeholder: d.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : e.value == R(_e).TIMESELECT ? (
|
|
880
|
+
}, t.value, { placeholder: d.value }), null, 16, ["modelValue", "disabled", "placeholder"])) : e.value == R(_e).TIMESELECT ? (p(), O(D, L({
|
|
881
881
|
key: 8,
|
|
882
882
|
modelValue: l.value,
|
|
883
883
|
"onUpdate:modelValue": M[10] || (M[10] = (y) => l.value = y),
|
|
@@ -886,7 +886,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
886
886
|
end: "23:30",
|
|
887
887
|
placeholder: d.value,
|
|
888
888
|
disabled: h.value[n.value].disabled
|
|
889
|
-
}, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) : ee(e.value) ? (
|
|
889
|
+
}, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) : ee(e.value) ? (p(), O(B, L({
|
|
890
890
|
key: 9,
|
|
891
891
|
modelValue: l.value,
|
|
892
892
|
"onUpdate:modelValue": M[11] || (M[11] = (y) => l.value = y),
|
|
@@ -895,62 +895,62 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
895
895
|
"value-format": oe(e.value),
|
|
896
896
|
disabled: h.value[n.value].disabled
|
|
897
897
|
}, t.value), ge({ _: 2 }, [
|
|
898
|
-
|
|
898
|
+
G(U(), (y) => ({
|
|
899
899
|
name: y,
|
|
900
900
|
fn: $((ce) => [
|
|
901
901
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
|
|
902
902
|
])
|
|
903
903
|
}))
|
|
904
|
-
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value == R(_e).COLOR ? (
|
|
904
|
+
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value == R(_e).COLOR ? (p(), O(Y, L({
|
|
905
905
|
key: 10,
|
|
906
906
|
modelValue: l.value,
|
|
907
907
|
"onUpdate:modelValue": M[12] || (M[12] = (y) => l.value = y)
|
|
908
|
-
}, t.value), null, 16, ["modelValue"])) : e.value == R(_e).RATE ? (
|
|
908
|
+
}, t.value), null, 16, ["modelValue"])) : e.value == R(_e).RATE ? (p(), O($e, L({
|
|
909
909
|
key: 11,
|
|
910
910
|
modelValue: l.value,
|
|
911
911
|
"onUpdate:modelValue": M[13] || (M[13] = (y) => l.value = y),
|
|
912
912
|
disabled: h.value[n.value].disabled
|
|
913
|
-
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == R(_e).SLIDER ? (
|
|
913
|
+
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == R(_e).SLIDER ? (p(), O(qe, L({
|
|
914
914
|
key: 12,
|
|
915
915
|
modelValue: l.value,
|
|
916
916
|
"onUpdate:modelValue": M[14] || (M[14] = (y) => l.value = y),
|
|
917
917
|
disabled: h.value[n.value].disabled
|
|
918
|
-
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == R(_e).SWITCH ? (
|
|
918
|
+
}, t.value), null, 16, ["modelValue", "disabled"])) : e.value == R(_e).SWITCH ? (p(), O(De, L({
|
|
919
919
|
key: 13,
|
|
920
920
|
modelValue: l.value,
|
|
921
921
|
"onUpdate:modelValue": M[15] || (M[15] = (y) => l.value = y),
|
|
922
922
|
inlinePrompt: !0,
|
|
923
923
|
disabled: h.value[n.value].disabled
|
|
924
924
|
}, t.value), ge({ _: 2 }, [
|
|
925
|
-
|
|
925
|
+
G(U(), (y) => ({
|
|
926
926
|
name: y,
|
|
927
927
|
fn: $((ce) => [
|
|
928
928
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
|
|
929
929
|
])
|
|
930
930
|
}))
|
|
931
|
-
]), 1040, ["modelValue", "disabled"])) : e.value == R(_e).TRANSFER ? (
|
|
931
|
+
]), 1040, ["modelValue", "disabled"])) : e.value == R(_e).TRANSFER ? (p(), O(Fe, L({
|
|
932
932
|
key: 14,
|
|
933
933
|
modelValue: l.value,
|
|
934
934
|
"onUpdate:modelValue": M[16] || (M[16] = (y) => l.value = y)
|
|
935
935
|
}, t.value), ge({ _: 2 }, [
|
|
936
|
-
|
|
936
|
+
G(U(), (y) => ({
|
|
937
937
|
name: y,
|
|
938
938
|
fn: $((ce) => [
|
|
939
939
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
|
|
940
940
|
])
|
|
941
941
|
}))
|
|
942
|
-
]), 1040, ["modelValue"])) : e.value == R(_e).CASCADER ? (
|
|
942
|
+
]), 1040, ["modelValue"])) : e.value == R(_e).CASCADER ? (p(), O(Be, L({
|
|
943
943
|
key: 15,
|
|
944
944
|
modelValue: l.value,
|
|
945
945
|
"onUpdate:modelValue": M[17] || (M[17] = (y) => l.value = y)
|
|
946
946
|
}, t.value, { options: S.value }), ge({ _: 2 }, [
|
|
947
|
-
|
|
947
|
+
G(U(), (y) => ({
|
|
948
948
|
name: y,
|
|
949
949
|
fn: $((ce) => [
|
|
950
950
|
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: ce }, void 0, !0)
|
|
951
951
|
])
|
|
952
952
|
}))
|
|
953
|
-
]), 1040, ["modelValue", "options"])) : e.value == R(_e).IMAGE ? (
|
|
953
|
+
]), 1040, ["modelValue", "options"])) : e.value == R(_e).IMAGE ? (p(), O(gt, L({
|
|
954
954
|
key: 16,
|
|
955
955
|
"file-list": t.value["file-list"],
|
|
956
956
|
"onUpdate:fileList": M[21] || (M[21] = (y) => t.value["file-list"] = y),
|
|
@@ -964,42 +964,42 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
964
964
|
default: $(() => {
|
|
965
965
|
var y, ce;
|
|
966
966
|
return [
|
|
967
|
-
!l.value || ((y = t.value) == null ? void 0 : y.multiple) === !0 ? (
|
|
967
|
+
!l.value || ((y = t.value) == null ? void 0 : y.multiple) === !0 ? (p(), O(je, { key: 0 }, {
|
|
968
968
|
default: $(() => [
|
|
969
|
-
se(R(
|
|
969
|
+
se(R(_l))
|
|
970
970
|
]),
|
|
971
971
|
_: 1
|
|
972
|
-
})) : (
|
|
972
|
+
})) : (p(), F("div", {
|
|
973
973
|
key: 1,
|
|
974
|
-
onClick: M[20] || (M[20] = (
|
|
974
|
+
onClick: M[20] || (M[20] = (fe) => fe.stopPropagation()),
|
|
975
975
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
976
976
|
}, [
|
|
977
|
-
|
|
978
|
-
se(
|
|
977
|
+
Z("div", Yl, [
|
|
978
|
+
se(ut, L({
|
|
979
979
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
980
980
|
src: l.value
|
|
981
981
|
}, { fit: "cover", lazy: !0, ...(ce = t.value) == null ? void 0 : ce.img }), ge({ _: 2 }, [
|
|
982
|
-
|
|
983
|
-
name:
|
|
982
|
+
G(U(), (fe, Xe) => ({
|
|
983
|
+
name: fe,
|
|
984
984
|
fn: $((pt) => [
|
|
985
|
-
C(A.$slots, `${s.t}-${n.value}-${
|
|
985
|
+
C(A.$slots, `${s.t}-${n.value}-${fe}`, { data: pt }, void 0, !0)
|
|
986
986
|
])
|
|
987
987
|
}))
|
|
988
988
|
]), 1040, ["src"])
|
|
989
989
|
]),
|
|
990
|
-
|
|
990
|
+
Z("div", {
|
|
991
991
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "absolute", "align-items": "center", "justify-content": "center" },
|
|
992
|
-
onMouseenter: M[18] || (M[18] = (
|
|
993
|
-
onMouseleave: M[19] || (M[19] = (
|
|
992
|
+
onMouseenter: M[18] || (M[18] = (fe) => v.value = !0),
|
|
993
|
+
onMouseleave: M[19] || (M[19] = (fe) => v.value = !1),
|
|
994
994
|
class: "up-view"
|
|
995
995
|
}, [
|
|
996
|
-
v.value ? (
|
|
996
|
+
v.value ? (p(), O(dt, {
|
|
997
997
|
key: 0,
|
|
998
998
|
content: "查看大图",
|
|
999
999
|
placement: "top"
|
|
1000
1000
|
}, {
|
|
1001
1001
|
default: $(() => [
|
|
1002
|
-
se(R(
|
|
1002
|
+
se(R(Cl), {
|
|
1003
1003
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
1004
1004
|
color: "white",
|
|
1005
1005
|
onClick: ue
|
|
@@ -1007,13 +1007,13 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1007
1007
|
]),
|
|
1008
1008
|
_: 1
|
|
1009
1009
|
})) : be("", !0),
|
|
1010
|
-
z.value.showDel && v.value ? (
|
|
1010
|
+
z.value.showDel && v.value ? (p(), O(dt, {
|
|
1011
1011
|
key: 1,
|
|
1012
1012
|
content: "删除",
|
|
1013
1013
|
placement: "top"
|
|
1014
1014
|
}, {
|
|
1015
1015
|
default: $(() => [
|
|
1016
|
-
se(R(
|
|
1016
|
+
se(R(Jt), {
|
|
1017
1017
|
style: { width: "1.5em", height: "1.5em" },
|
|
1018
1018
|
color: "white",
|
|
1019
1019
|
onClick: xe
|
|
@@ -1027,103 +1027,145 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1027
1027
|
}),
|
|
1028
1028
|
_: 2
|
|
1029
1029
|
}, [
|
|
1030
|
-
|
|
1030
|
+
G(U(), (y, ce) => ({
|
|
1031
1031
|
name: y,
|
|
1032
|
-
fn: $((
|
|
1033
|
-
C(A.$slots, `${s.t}-${n.value}-${y}`, { data:
|
|
1032
|
+
fn: $((fe) => [
|
|
1033
|
+
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
|
|
1034
1034
|
])
|
|
1035
1035
|
}))
|
|
1036
|
-
]), 1040, ["file-list"])) : e.value == R(_e).AUTOCOMPLETE ? (
|
|
1036
|
+
]), 1040, ["file-list"])) : e.value == R(_e).AUTOCOMPLETE ? (p(), O(K, L({
|
|
1037
1037
|
key: 17,
|
|
1038
1038
|
modelValue: l.value,
|
|
1039
1039
|
"onUpdate:modelValue": M[22] || (M[22] = (y) => l.value = y)
|
|
1040
1040
|
}, t.value, { placeholder: d.value }), ge({ _: 2 }, [
|
|
1041
|
-
|
|
1041
|
+
G(U(), (y, ce) => ({
|
|
1042
1042
|
name: y,
|
|
1043
|
-
fn: $((
|
|
1044
|
-
C(A.$slots, `${s.t}-${n.value}-${y}`, { data:
|
|
1043
|
+
fn: $((fe) => [
|
|
1044
|
+
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
|
|
1045
1045
|
])
|
|
1046
1046
|
}))
|
|
1047
|
-
]), 1040, ["modelValue", "placeholder"])) : e.value == R(_e).INPUTNUMBER ? (
|
|
1047
|
+
]), 1040, ["modelValue", "placeholder"])) : e.value == R(_e).INPUTNUMBER ? (p(), O(me, L({
|
|
1048
1048
|
key: 18,
|
|
1049
1049
|
modelValue: l.value,
|
|
1050
1050
|
"onUpdate:modelValue": M[23] || (M[23] = (y) => l.value = y),
|
|
1051
|
-
min: 0,
|
|
1052
|
-
max: 1e8,
|
|
1053
1051
|
placeholder: d.value,
|
|
1054
1052
|
disabled: h.value[n.value].disabled
|
|
1055
1053
|
}, t.value), ge({ _: 2 }, [
|
|
1056
|
-
|
|
1054
|
+
G(U(), (y, ce) => ({
|
|
1057
1055
|
name: y,
|
|
1058
|
-
fn: $((
|
|
1059
|
-
C(A.$slots, `${s.t}-${n.value}-${y}`, {
|
|
1056
|
+
fn: $((fe) => [
|
|
1057
|
+
C(A.$slots, `${s.t}-${n.value}-${y}`, {
|
|
1058
|
+
data: fe,
|
|
1059
|
+
form: r.formInfo
|
|
1060
|
+
}, void 0, !0)
|
|
1060
1061
|
])
|
|
1061
1062
|
}))
|
|
1062
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value ==
|
|
1063
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == "input-tag" ? (p(), O(E, L({
|
|
1063
1064
|
key: 19,
|
|
1065
|
+
modelValue: l.value,
|
|
1066
|
+
"onUpdate:modelValue": M[24] || (M[24] = (y) => l.value = y),
|
|
1067
|
+
placeholder: d.value,
|
|
1068
|
+
disabled: h.value[n.value].disabled,
|
|
1069
|
+
draggable: ""
|
|
1070
|
+
}, t.value), ge({ _: 2 }, [
|
|
1071
|
+
(ct = t.value) != null && ct.suffix ? {
|
|
1072
|
+
name: "suffix",
|
|
1073
|
+
fn: $(() => {
|
|
1074
|
+
var y;
|
|
1075
|
+
return [
|
|
1076
|
+
Z("div", {
|
|
1077
|
+
innerHTML: ((y = t.value) == null ? void 0 : y.suffix) || ""
|
|
1078
|
+
}, null, 8, Rl)
|
|
1079
|
+
];
|
|
1080
|
+
}),
|
|
1081
|
+
key: "0"
|
|
1082
|
+
} : void 0,
|
|
1083
|
+
(W = t.value) != null && W.prefix ? {
|
|
1084
|
+
name: "prefix",
|
|
1085
|
+
fn: $(() => {
|
|
1086
|
+
var y;
|
|
1087
|
+
return [
|
|
1088
|
+
Z("div", {
|
|
1089
|
+
innerHTML: ((y = t.value) == null ? void 0 : y.prefix) || ""
|
|
1090
|
+
}, null, 8, Hl)
|
|
1091
|
+
];
|
|
1092
|
+
}),
|
|
1093
|
+
key: "1"
|
|
1094
|
+
} : void 0,
|
|
1095
|
+
G(U(), (y, ce) => ({
|
|
1096
|
+
name: y,
|
|
1097
|
+
fn: $((fe) => [
|
|
1098
|
+
C(A.$slots, `${s.t}-${n.value}-${y}`, {
|
|
1099
|
+
data: fe,
|
|
1100
|
+
form: r.formInfo
|
|
1101
|
+
}, void 0, !0)
|
|
1102
|
+
])
|
|
1103
|
+
}))
|
|
1104
|
+
]), 1040, ["modelValue", "placeholder", "disabled"])) : e.value == R(_e).MONEY ? (p(), F("div", {
|
|
1105
|
+
key: 20,
|
|
1064
1106
|
style: Re([{ position: "relative" }, g.value])
|
|
1065
1107
|
}, [
|
|
1066
|
-
se(
|
|
1108
|
+
se(le, L({
|
|
1067
1109
|
modelValue: l.value,
|
|
1068
|
-
"onUpdate:modelValue": M[
|
|
1110
|
+
"onUpdate:modelValue": M[25] || (M[25] = (y) => l.value = y),
|
|
1069
1111
|
placeholder: d.value,
|
|
1070
1112
|
type: "number",
|
|
1071
|
-
onInput: M[
|
|
1113
|
+
onInput: M[26] || (M[26] = (y) => T(y, 2)),
|
|
1072
1114
|
maxlength: ((tt = t.value) == null ? void 0 : tt.max) || 25
|
|
1073
1115
|
}, { ...t.value, type: e.value }), ge({
|
|
1074
1116
|
suffix: $(() => [
|
|
1075
|
-
|
|
1076
|
-
title: R(
|
|
1117
|
+
Z("div", {
|
|
1118
|
+
title: R(Ot)(l.value),
|
|
1077
1119
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1078
|
-
}, Ce(R(
|
|
1120
|
+
}, Ce(R(Ot)(l.value)), 9, Bl)
|
|
1079
1121
|
]),
|
|
1080
1122
|
_: 2
|
|
1081
1123
|
}, [
|
|
1082
|
-
|
|
1124
|
+
G(U(), (y, ce) => ({
|
|
1083
1125
|
name: y,
|
|
1084
|
-
fn: $((
|
|
1085
|
-
C(A.$slots, `${s.t}-${n.value}-${y}`, { data:
|
|
1126
|
+
fn: $((fe) => [
|
|
1127
|
+
C(A.$slots, `${s.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
|
|
1086
1128
|
])
|
|
1087
1129
|
}))
|
|
1088
1130
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
1089
|
-
], 4)) : (
|
|
1090
|
-
key:
|
|
1131
|
+
], 4)) : (ft = e.value) != null && ft.startsWith("link") ? (p(), F("div", {
|
|
1132
|
+
key: 21,
|
|
1091
1133
|
style: Re(g.value)
|
|
1092
1134
|
}, [
|
|
1093
|
-
se(
|
|
1135
|
+
se(de, L(t.value, {
|
|
1094
1136
|
type: e.value.replace("link-", ""),
|
|
1095
|
-
innerHTML:
|
|
1137
|
+
innerHTML: X.value || l.value
|
|
1096
1138
|
}), null, 16, ["type", "innerHTML"])
|
|
1097
|
-
], 4)) : e.value != "textarea" && ((
|
|
1098
|
-
key:
|
|
1139
|
+
], 4)) : e.value != "textarea" && ((vt = e.value) != null && vt.startsWith("text")) ? (p(), F("div", {
|
|
1140
|
+
key: 22,
|
|
1099
1141
|
style: Re(g.value)
|
|
1100
1142
|
}, [
|
|
1101
|
-
se(
|
|
1143
|
+
se(st, L(t.value, {
|
|
1102
1144
|
type: e.value.replace("text-", ""),
|
|
1103
|
-
innerHTML:
|
|
1145
|
+
innerHTML: X.value || l.value
|
|
1104
1146
|
}), null, 16, ["type", "innerHTML"])
|
|
1105
|
-
], 4)) : e.value == "avatar" ? (
|
|
1106
|
-
key:
|
|
1147
|
+
], 4)) : e.value == "avatar" ? (p(), F("div", {
|
|
1148
|
+
key: 23,
|
|
1107
1149
|
style: Re(g.value)
|
|
1108
1150
|
}, [
|
|
1109
|
-
|
|
1151
|
+
X.value ? (p(), O(nt, Et(L({ key: 0 }, t.value)), {
|
|
1110
1152
|
default: $(() => [
|
|
1111
|
-
|
|
1153
|
+
Z("div", { innerHTML: X.value }, null, 8, Pl)
|
|
1112
1154
|
]),
|
|
1113
1155
|
_: 1
|
|
1114
|
-
}, 16)) : (
|
|
1115
|
-
], 4)) : (
|
|
1116
|
-
key:
|
|
1156
|
+
}, 16)) : (p(), O(nt, Et(L({ key: 1 }, t.value)), null, 16))
|
|
1157
|
+
], 4)) : (bt = e.value) != null && bt.startsWith("tag") ? (p(), F("div", {
|
|
1158
|
+
key: 24,
|
|
1117
1159
|
style: Re(g.value)
|
|
1118
1160
|
}, [
|
|
1119
|
-
Array.isArray(
|
|
1120
|
-
typeof y == "object" ? (
|
|
1161
|
+
Array.isArray(X.value) && X.value.length > 0 ? (p(!0), F(ae, { key: 0 }, G(X.value, (y, ce) => (p(), F(ae, { key: ce }, [
|
|
1162
|
+
typeof y == "object" ? (p(), O(Je, L({
|
|
1121
1163
|
key: 0,
|
|
1122
1164
|
"disable-transitions": ""
|
|
1123
1165
|
}, { ref_for: !0 }, y, {
|
|
1124
1166
|
innerHTML: y == null ? void 0 : y.value,
|
|
1125
1167
|
style: { "margin-right": "3px" }
|
|
1126
|
-
}), null, 16, ["innerHTML"])) : (
|
|
1168
|
+
}), null, 16, ["innerHTML"])) : (p(), O(Je, L({
|
|
1127
1169
|
key: 1,
|
|
1128
1170
|
"disable-transitions": ""
|
|
1129
1171
|
}, { ref_for: !0 }, t.value, {
|
|
@@ -1131,88 +1173,88 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1131
1173
|
innerHTML: y,
|
|
1132
1174
|
style: { "margin-right": "3px" }
|
|
1133
1175
|
}), null, 16, ["type", "innerHTML"]))
|
|
1134
|
-
], 64))), 128)) : (
|
|
1176
|
+
], 64))), 128)) : (p(), O(Je, L({
|
|
1135
1177
|
key: 1,
|
|
1136
1178
|
"disable-transitions": ""
|
|
1137
1179
|
}, t.value, {
|
|
1138
1180
|
type: e.value.replace("tag-", ""),
|
|
1139
|
-
innerHTML:
|
|
1181
|
+
innerHTML: X.value || l.value
|
|
1140
1182
|
}), null, 16, ["type", "innerHTML"]))
|
|
1141
|
-
], 4)) : e.value == "div" ? (
|
|
1142
|
-
innerHTML:
|
|
1183
|
+
], 4)) : e.value == "div" ? (p(), F("div", L({ key: 25 }, t.value, {
|
|
1184
|
+
innerHTML: X.value || l.value,
|
|
1143
1185
|
style: g.value
|
|
1144
|
-
}), null, 16,
|
|
1145
|
-
innerHTML:
|
|
1186
|
+
}), null, 16, Nl)) : e.value == "span" ? (p(), F("span", L({ key: 26 }, t.value, {
|
|
1187
|
+
innerHTML: X.value || l.value,
|
|
1146
1188
|
style: g.value
|
|
1147
|
-
}), null, 16,
|
|
1148
|
-
key:
|
|
1189
|
+
}), null, 16, jl)) : (p(), O(le, L({
|
|
1190
|
+
key: 27,
|
|
1149
1191
|
modelValue: l.value,
|
|
1150
|
-
"onUpdate:modelValue": M[
|
|
1192
|
+
"onUpdate:modelValue": M[27] || (M[27] = (y) => l.value = y),
|
|
1151
1193
|
placeholder: d.value,
|
|
1152
|
-
maxlength: ((
|
|
1194
|
+
maxlength: ((Lt = t.value) == null ? void 0 : Lt.max) || 25,
|
|
1153
1195
|
clearable: !0,
|
|
1154
|
-
onInput: M[
|
|
1196
|
+
onInput: M[28] || (M[28] = (y) => {
|
|
1155
1197
|
var ce;
|
|
1156
1198
|
return e.value == R(_e).NUMBER ? T(y, ((ce = t.value) == null ? void 0 : ce.precision) || 2) : y;
|
|
1157
1199
|
}),
|
|
1158
|
-
onClear: M[
|
|
1200
|
+
onClear: M[29] || (M[29] = () => {
|
|
1159
1201
|
s.t == "q" && h.value.table.load();
|
|
1160
1202
|
}),
|
|
1161
1203
|
disabled: h.value[n.value].disabled
|
|
1162
1204
|
}, { ...R(Ze)(t.value, (y) => !["suffix", "prefix", "append", "prepend"].includes(y)), type: e.value }), ge({ _: 2 }, [
|
|
1163
|
-
(
|
|
1205
|
+
(Ut = t.value) != null && Ut.suffix ? {
|
|
1164
1206
|
name: "suffix",
|
|
1165
1207
|
fn: $(() => {
|
|
1166
1208
|
var y;
|
|
1167
1209
|
return [
|
|
1168
|
-
|
|
1210
|
+
Z("div", {
|
|
1169
1211
|
innerHTML: ((y = t.value) == null ? void 0 : y.suffix) || ""
|
|
1170
|
-
}, null, 8,
|
|
1212
|
+
}, null, 8, Wl)
|
|
1171
1213
|
];
|
|
1172
1214
|
}),
|
|
1173
1215
|
key: "0"
|
|
1174
1216
|
} : void 0,
|
|
1175
|
-
(
|
|
1217
|
+
(Ft = t.value) != null && Ft.prefix ? {
|
|
1176
1218
|
name: "prefix",
|
|
1177
1219
|
fn: $(() => {
|
|
1178
1220
|
var y;
|
|
1179
1221
|
return [
|
|
1180
|
-
|
|
1222
|
+
Z("div", {
|
|
1181
1223
|
innerHTML: ((y = t.value) == null ? void 0 : y.prefix) || ""
|
|
1182
|
-
}, null, 8,
|
|
1224
|
+
}, null, 8, Gl)
|
|
1183
1225
|
];
|
|
1184
1226
|
}),
|
|
1185
1227
|
key: "1"
|
|
1186
1228
|
} : void 0,
|
|
1187
|
-
(
|
|
1229
|
+
(Yt = t.value) != null && Yt.append ? {
|
|
1188
1230
|
name: "append",
|
|
1189
1231
|
fn: $(() => {
|
|
1190
1232
|
var y;
|
|
1191
1233
|
return [
|
|
1192
|
-
|
|
1234
|
+
Z("div", {
|
|
1193
1235
|
innerHTML: ((y = t.value) == null ? void 0 : y.append) || ""
|
|
1194
|
-
}, null, 8,
|
|
1236
|
+
}, null, 8, Xl)
|
|
1195
1237
|
];
|
|
1196
1238
|
}),
|
|
1197
1239
|
key: "2"
|
|
1198
1240
|
} : void 0,
|
|
1199
|
-
(
|
|
1241
|
+
(Rt = t.value) != null && Rt.prepend ? {
|
|
1200
1242
|
name: "prepend",
|
|
1201
1243
|
fn: $(() => {
|
|
1202
1244
|
var y;
|
|
1203
1245
|
return [
|
|
1204
|
-
|
|
1246
|
+
Z("div", {
|
|
1205
1247
|
innerHTML: ((y = t.value) == null ? void 0 : y.prepend) || ""
|
|
1206
|
-
}, null, 8,
|
|
1248
|
+
}, null, 8, Ql)
|
|
1207
1249
|
];
|
|
1208
1250
|
}),
|
|
1209
1251
|
key: "3"
|
|
1210
1252
|
} : void 0,
|
|
1211
|
-
|
|
1253
|
+
G(U(), (y, ce) => ({
|
|
1212
1254
|
name: y,
|
|
1213
|
-
fn: $((
|
|
1255
|
+
fn: $((fe) => [
|
|
1214
1256
|
C(A.$slots, `${s.t}-${n.value}-${y}`, {
|
|
1215
|
-
data:
|
|
1257
|
+
data: fe,
|
|
1216
1258
|
form: r.formInfo
|
|
1217
1259
|
}, void 0, !0)
|
|
1218
1260
|
])
|
|
@@ -1222,9 +1264,9 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1222
1264
|
], 64);
|
|
1223
1265
|
};
|
|
1224
1266
|
}
|
|
1225
|
-
}), Ct = /* @__PURE__ */
|
|
1267
|
+
}), Ct = /* @__PURE__ */ Ke(Zl, [["__scopeId", "data-v-9f557353"]]), Bt = {
|
|
1226
1268
|
__name: "g-query-item",
|
|
1227
|
-
props: /* @__PURE__ */
|
|
1269
|
+
props: /* @__PURE__ */ rt(["more"], {
|
|
1228
1270
|
modelValue: { required: !0 },
|
|
1229
1271
|
modelModifiers: {},
|
|
1230
1272
|
info: { required: !0 },
|
|
@@ -1232,25 +1274,25 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1232
1274
|
}),
|
|
1233
1275
|
emits: ["update:modelValue", "update:info"],
|
|
1234
1276
|
setup(r) {
|
|
1235
|
-
const s =
|
|
1277
|
+
const s = at(r, "modelValue"), t = r, l = at(r, "info"), n = (S) => {
|
|
1236
1278
|
let c = Object.entries(s.value).filter((o) => {
|
|
1237
1279
|
var d;
|
|
1238
1280
|
return typeof o[1].search == "function" ? o[1].search && ((d = o[1].search(l.value, s.value.table)) == null ? void 0 : d.more) === S : o[1].search && o[1].search.more === S;
|
|
1239
1281
|
}).map((o) => [o[0], o[1]]);
|
|
1240
1282
|
c.sort((o, d) => {
|
|
1241
|
-
const g = (
|
|
1283
|
+
const g = (X) => {
|
|
1242
1284
|
var ee;
|
|
1243
1285
|
try {
|
|
1244
|
-
if (typeof
|
|
1245
|
-
const oe =
|
|
1286
|
+
if (typeof X[1].search == "function") {
|
|
1287
|
+
const oe = X[1].search(l.value, s.value.table);
|
|
1246
1288
|
return (oe == null ? void 0 : oe.sort) ?? 0;
|
|
1247
1289
|
} else
|
|
1248
|
-
return ((ee =
|
|
1290
|
+
return ((ee = X[1].search) == null ? void 0 : ee.sort) ?? 0;
|
|
1249
1291
|
} catch (oe) {
|
|
1250
|
-
return console.warn(`获取 ${
|
|
1292
|
+
return console.warn(`获取 ${X[0]} 的sort值时出错:`, oe), 0;
|
|
1251
1293
|
}
|
|
1252
|
-
},
|
|
1253
|
-
return
|
|
1294
|
+
}, J = g(o), x = g(d), U = Number(J) || 0, z = Number(x) || 0;
|
|
1295
|
+
return U - z;
|
|
1254
1296
|
});
|
|
1255
1297
|
let v = Object.fromEntries(c);
|
|
1256
1298
|
return Qe(() => v).value;
|
|
@@ -1264,14 +1306,14 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1264
1306
|
return isNaN(v) || (v += "px"), v;
|
|
1265
1307
|
};
|
|
1266
1308
|
return (S, c) => {
|
|
1267
|
-
const v =
|
|
1268
|
-
return
|
|
1309
|
+
const v = N("el-form-item");
|
|
1310
|
+
return p(!0), F(ae, null, G(n(t.more), (o, d) => C(S.$slots, `q-${d}`, {
|
|
1269
1311
|
key: d,
|
|
1270
1312
|
item: o,
|
|
1271
1313
|
queryModel: l.value,
|
|
1272
1314
|
model: s.value
|
|
1273
1315
|
}, () => [
|
|
1274
|
-
se(v,
|
|
1316
|
+
se(v, L({
|
|
1275
1317
|
label: o.label,
|
|
1276
1318
|
style: { width: f(o) }
|
|
1277
1319
|
}, { ref_for: !0 }, { ...s.value.queryItems, ...e(o) }), {
|
|
@@ -1292,11 +1334,11 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1292
1334
|
t: "q",
|
|
1293
1335
|
formInfo: l.value
|
|
1294
1336
|
}, ge({ _: 2 }, [
|
|
1295
|
-
|
|
1337
|
+
G(Object.keys(S.$slots), (g) => ({
|
|
1296
1338
|
name: g,
|
|
1297
|
-
fn: $((
|
|
1339
|
+
fn: $((J) => [
|
|
1298
1340
|
C(S.$slots, g, {
|
|
1299
|
-
data:
|
|
1341
|
+
data: J,
|
|
1300
1342
|
item: o,
|
|
1301
1343
|
model: s.value
|
|
1302
1344
|
})
|
|
@@ -1309,10 +1351,10 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1309
1351
|
])), 128);
|
|
1310
1352
|
};
|
|
1311
1353
|
}
|
|
1312
|
-
},
|
|
1354
|
+
}, Jl = {
|
|
1313
1355
|
key: 0,
|
|
1314
1356
|
class: "outer"
|
|
1315
|
-
},
|
|
1357
|
+
}, Kl = { class: "inner" }, ea = {
|
|
1316
1358
|
__name: "g-query",
|
|
1317
1359
|
props: {
|
|
1318
1360
|
modelValue: { required: !0 },
|
|
@@ -1320,9 +1362,9 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1320
1362
|
info: { required: !0 },
|
|
1321
1363
|
infoModifiers: {}
|
|
1322
1364
|
},
|
|
1323
|
-
emits: /* @__PURE__ */
|
|
1365
|
+
emits: /* @__PURE__ */ rt(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1324
1366
|
setup(r, { emit: s }) {
|
|
1325
|
-
const t =
|
|
1367
|
+
const t = at(r, "modelValue"), l = s, n = qt("options"), e = re(!1), h = at(r, "info"), f = {
|
|
1326
1368
|
hidden: !1,
|
|
1327
1369
|
type: "hidden",
|
|
1328
1370
|
labelWidth: 100,
|
|
@@ -1339,7 +1381,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1339
1381
|
hidden: !0,
|
|
1340
1382
|
type: "primary",
|
|
1341
1383
|
label: "更多",
|
|
1342
|
-
icon: () => ke(
|
|
1384
|
+
icon: () => ke(Ml),
|
|
1343
1385
|
click: () => {
|
|
1344
1386
|
e.value = !e.value;
|
|
1345
1387
|
}
|
|
@@ -1349,7 +1391,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1349
1391
|
type: "primary",
|
|
1350
1392
|
hidden: !1,
|
|
1351
1393
|
plain: !1,
|
|
1352
|
-
icon: () => ke(
|
|
1394
|
+
icon: () => ke(Kt),
|
|
1353
1395
|
click: () => {
|
|
1354
1396
|
l("reset", h.value);
|
|
1355
1397
|
}
|
|
@@ -1358,7 +1400,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1358
1400
|
hidden: !1,
|
|
1359
1401
|
type: "primary",
|
|
1360
1402
|
label: "查询",
|
|
1361
|
-
icon: () => ke(
|
|
1403
|
+
icon: () => ke(Sl),
|
|
1362
1404
|
click: () => {
|
|
1363
1405
|
l("query", h.value), e.value = !1;
|
|
1364
1406
|
}
|
|
@@ -1406,24 +1448,24 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1406
1448
|
}
|
|
1407
1449
|
};
|
|
1408
1450
|
t.value.queryItems = ze(c, n == null ? void 0 : n.queryItems, t.value.queryItems);
|
|
1409
|
-
const v = (x,
|
|
1410
|
-
const z = Object.keys(x.slots).filter((
|
|
1451
|
+
const v = (x, U) => {
|
|
1452
|
+
const z = Object.keys(x.slots).filter((X) => X !== "default").reduce((X, ee) => (X[ee] = (oe) => x.slots[ee]({
|
|
1411
1453
|
model: t.value
|
|
1412
1454
|
// 传递当前模型数据
|
|
1413
|
-
}),
|
|
1414
|
-
return ke(
|
|
1455
|
+
}), X), {});
|
|
1456
|
+
return ke(Bt, {
|
|
1415
1457
|
modelValue: t.value,
|
|
1416
|
-
"onUpdate:modelValue": (
|
|
1458
|
+
"onUpdate:modelValue": (X) => t.value = X,
|
|
1417
1459
|
info: h.value,
|
|
1418
|
-
"onUpdate:info": (
|
|
1419
|
-
more:
|
|
1460
|
+
"onUpdate:info": (X) => h.value = X,
|
|
1461
|
+
more: U
|
|
1420
1462
|
}, z);
|
|
1421
|
-
}, o =
|
|
1422
|
-
var z,
|
|
1463
|
+
}, o = Gt(), d = () => {
|
|
1464
|
+
var z, X, ee, oe, ie, he, we, Ve, xe;
|
|
1423
1465
|
const x = [
|
|
1424
1466
|
{
|
|
1425
1467
|
key: "query",
|
|
1426
|
-
hidden: (ee = (
|
|
1468
|
+
hidden: (ee = (X = (z = t.value) == null ? void 0 : z.query) == null ? void 0 : X.query) == null ? void 0 : ee.hidden,
|
|
1427
1469
|
component: Ye,
|
|
1428
1470
|
props: {
|
|
1429
1471
|
...t.value.query.query,
|
|
@@ -1466,51 +1508,51 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1466
1508
|
}, g = Qe(() => ({
|
|
1467
1509
|
diplay: "flex",
|
|
1468
1510
|
flexDirection: t.value.query.container.mode === "row" ? "row" : "column"
|
|
1469
|
-
})),
|
|
1511
|
+
})), J = () => {
|
|
1470
1512
|
alert("查询设置,正在开发中......");
|
|
1471
1513
|
};
|
|
1472
|
-
return (x,
|
|
1473
|
-
var ee, oe, ie, he, we, Ve, xe, te, ue, Te, T, w, b, i,
|
|
1474
|
-
const z =
|
|
1475
|
-
return
|
|
1476
|
-
|
|
1514
|
+
return (x, U) => {
|
|
1515
|
+
var ee, oe, ie, he, we, Ve, xe, te, ue, Te, T, w, b, i, I, _, q;
|
|
1516
|
+
const z = N("el-form-item"), X = N("el-drawer");
|
|
1517
|
+
return p(), F(ae, null, [
|
|
1518
|
+
Z("div", {
|
|
1477
1519
|
class: "g-query-container",
|
|
1478
1520
|
style: Re({ ...g.value, ...((oe = (ee = t.value.query) == null ? void 0 : ee.container) == null ? void 0 : oe.style) || {} }),
|
|
1479
|
-
onDblclick:
|
|
1521
|
+
onDblclick: J
|
|
1480
1522
|
}, [
|
|
1481
|
-
se(R(wt),
|
|
1482
|
-
onSubmit:
|
|
1523
|
+
se(R(wt), L({
|
|
1524
|
+
onSubmit: U[0] || (U[0] = it(() => {
|
|
1483
1525
|
}, ["prevent"]))
|
|
1484
1526
|
}, R(Ze)(t.value.query, (V) => !["query", "more", "reset", "btns"].includes(V))), {
|
|
1485
1527
|
default: $(() => {
|
|
1486
1528
|
var V, Q;
|
|
1487
1529
|
return [
|
|
1488
|
-
(
|
|
1489
|
-
((Q = (V = t.value.query) == null ? void 0 : V.container) == null ? void 0 : Q.inline) === !0 ? (
|
|
1530
|
+
(p(), O(We(v({ slots: x.$slots }, void 0)))),
|
|
1531
|
+
((Q = (V = t.value.query) == null ? void 0 : V.container) == null ? void 0 : Q.inline) === !0 ? (p(), O(z, { key: 0 }, {
|
|
1490
1532
|
default: $(() => {
|
|
1491
|
-
var ne,
|
|
1533
|
+
var ne, ve, P, H, Ee;
|
|
1492
1534
|
return [
|
|
1493
|
-
|
|
1494
|
-
style: Re((
|
|
1535
|
+
Z("div", {
|
|
1536
|
+
style: Re((ve = (ne = t.value.query) == null ? void 0 : ne.btns) == null ? void 0 : ve.style)
|
|
1495
1537
|
}, [
|
|
1496
|
-
t.value.query.group ? (
|
|
1538
|
+
t.value.query.group ? (p(), O(R(kt), { key: 0 }, {
|
|
1497
1539
|
default: $(() => [
|
|
1498
|
-
(
|
|
1499
|
-
(
|
|
1540
|
+
(p(!0), F(ae, null, G(d(), (pe) => C(x.$slots, pe.props.slot, {}, () => [
|
|
1541
|
+
(p(), O(We(pe)))
|
|
1500
1542
|
], !0)), 256)),
|
|
1501
1543
|
C(x.$slots, "q-btns", {}, void 0, !0)
|
|
1502
1544
|
]),
|
|
1503
1545
|
_: 3
|
|
1504
|
-
})) : (
|
|
1505
|
-
(Ee = (H = (P = t.value) == null ? void 0 : P.query) == null ? void 0 : H.btns) != null && Ee.group ? (
|
|
1546
|
+
})) : (p(), F(ae, { key: 1 }, [
|
|
1547
|
+
(Ee = (H = (P = t.value) == null ? void 0 : P.query) == null ? void 0 : H.btns) != null && Ee.group ? (p(), O(R(kt), { key: 0 }, {
|
|
1506
1548
|
default: $(() => [
|
|
1507
|
-
(
|
|
1508
|
-
(
|
|
1549
|
+
(p(!0), F(ae, null, G(d(), (pe) => C(x.$slots, pe.props.slot, {}, () => [
|
|
1550
|
+
(p(), O(We(pe)))
|
|
1509
1551
|
], !0)), 256))
|
|
1510
1552
|
]),
|
|
1511
1553
|
_: 3
|
|
1512
|
-
})) : (
|
|
1513
|
-
(
|
|
1554
|
+
})) : (p(!0), F(ae, { key: 1 }, G(d(), (pe) => C(x.$slots, pe.props.slot, {}, () => [
|
|
1555
|
+
(p(), O(We(pe)))
|
|
1514
1556
|
], !0)), 256)),
|
|
1515
1557
|
C(x.$slots, "q-btns", {}, void 0, !0)
|
|
1516
1558
|
], 64))
|
|
@@ -1523,56 +1565,56 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1523
1565
|
}),
|
|
1524
1566
|
_: 3
|
|
1525
1567
|
}, 16),
|
|
1526
|
-
((we = (he = (ie = t.value) == null ? void 0 : ie.query) == null ? void 0 : he.container) == null ? void 0 : we.inline) === !1 ? (
|
|
1568
|
+
((we = (he = (ie = t.value) == null ? void 0 : ie.query) == null ? void 0 : he.container) == null ? void 0 : we.inline) === !1 ? (p(), F("div", {
|
|
1527
1569
|
key: 0,
|
|
1528
1570
|
style: Re((xe = (Ve = t.value.query) == null ? void 0 : Ve.btns) == null ? void 0 : xe.style)
|
|
1529
1571
|
}, [
|
|
1530
|
-
t.value.query.group ? (
|
|
1572
|
+
t.value.query.group ? (p(), O(R(kt), { key: 0 }, {
|
|
1531
1573
|
default: $(() => [
|
|
1532
|
-
(
|
|
1533
|
-
(
|
|
1574
|
+
(p(!0), F(ae, null, G(d(), (V) => C(x.$slots, V.props.slot, {}, () => [
|
|
1575
|
+
(p(), O(We(V)))
|
|
1534
1576
|
], !0)), 256)),
|
|
1535
1577
|
C(x.$slots, "q-btns", {}, void 0, !0)
|
|
1536
1578
|
]),
|
|
1537
1579
|
_: 3
|
|
1538
|
-
})) : (
|
|
1539
|
-
(ue = (te = t.value.query) == null ? void 0 : te.btns) != null && ue.group ? (
|
|
1580
|
+
})) : (p(), F(ae, { key: 1 }, [
|
|
1581
|
+
(ue = (te = t.value.query) == null ? void 0 : te.btns) != null && ue.group ? (p(), O(R(kt), { key: 0 }, {
|
|
1540
1582
|
default: $(() => [
|
|
1541
|
-
(
|
|
1542
|
-
(
|
|
1583
|
+
(p(!0), F(ae, null, G(d(), (V) => C(x.$slots, V.props.slot, {}, () => [
|
|
1584
|
+
(p(), O(We(V)))
|
|
1543
1585
|
], !0)), 256))
|
|
1544
1586
|
]),
|
|
1545
1587
|
_: 3
|
|
1546
|
-
})) : (
|
|
1547
|
-
(
|
|
1588
|
+
})) : (p(!0), F(ae, { key: 1 }, G(d(), (V) => C(x.$slots, V.props.slot, {}, () => [
|
|
1589
|
+
(p(), O(We(V)))
|
|
1548
1590
|
], !0)), 256)),
|
|
1549
1591
|
C(x.$slots, "q-btns", {}, void 0, !0)
|
|
1550
1592
|
], 64))
|
|
1551
1593
|
], 4)) : be("", !0)
|
|
1552
1594
|
], 36),
|
|
1553
|
-
e.value && !((w = (T = (Te = t.value) == null ? void 0 : Te.query) == null ? void 0 : T.more) != null && w.hidden) && t.value.query.more.mode == 2 ? (
|
|
1595
|
+
e.value && !((w = (T = (Te = t.value) == null ? void 0 : Te.query) == null ? void 0 : T.more) != null && w.hidden) && t.value.query.more.mode == 2 ? (p(), O(X, L({
|
|
1554
1596
|
key: 0,
|
|
1555
1597
|
modelValue: e.value,
|
|
1556
|
-
"onUpdate:modelValue":
|
|
1598
|
+
"onUpdate:modelValue": U[6] || (U[6] = (V) => e.value = V),
|
|
1557
1599
|
title: "更多查询",
|
|
1558
1600
|
"show-close": !1
|
|
1559
1601
|
}, t.value.query.more.dialog), ge({
|
|
1560
1602
|
default: $(() => [
|
|
1561
|
-
se(R(wt),
|
|
1562
|
-
onSubmit:
|
|
1603
|
+
se(R(wt), L({
|
|
1604
|
+
onSubmit: U[3] || (U[3] = it(() => {
|
|
1563
1605
|
}, ["prevent"]))
|
|
1564
1606
|
}, R(Ze)(t.value.query, (V) => !["query", "more", "reset"].includes(V)), { style: { width: "98%" } }), {
|
|
1565
1607
|
default: $(() => [
|
|
1566
|
-
se(
|
|
1608
|
+
se(Bt, {
|
|
1567
1609
|
modelValue: t.value,
|
|
1568
|
-
"onUpdate:modelValue":
|
|
1610
|
+
"onUpdate:modelValue": U[1] || (U[1] = (V) => t.value = V),
|
|
1569
1611
|
info: h.value,
|
|
1570
|
-
"onUpdate:info":
|
|
1612
|
+
"onUpdate:info": U[2] || (U[2] = (V) => h.value = V),
|
|
1571
1613
|
more: !0
|
|
1572
1614
|
}, ge({ _: 2 }, [
|
|
1573
|
-
|
|
1615
|
+
G(x.$slots, (V, Q, ne) => ({
|
|
1574
1616
|
name: Q,
|
|
1575
|
-
fn: $((
|
|
1617
|
+
fn: $((ve) => [
|
|
1576
1618
|
C(x.$slots, Q, { model: t.value }, void 0, !0)
|
|
1577
1619
|
])
|
|
1578
1620
|
}))
|
|
@@ -1583,23 +1625,23 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1583
1625
|
]),
|
|
1584
1626
|
_: 2
|
|
1585
1627
|
}, [
|
|
1586
|
-
(q = (_ = (
|
|
1628
|
+
(q = (_ = (I = (i = (b = t.value) == null ? void 0 : b.query) == null ? void 0 : i.more) == null ? void 0 : I.dialog) == null ? void 0 : _.footer) != null && q.hidden ? void 0 : {
|
|
1587
1629
|
name: "footer",
|
|
1588
1630
|
fn: $(() => [
|
|
1589
|
-
|
|
1590
|
-
se(R(Ye),
|
|
1591
|
-
onClick:
|
|
1631
|
+
Z("div", Et(ml(t.value.query.more.dialog.footer)), [
|
|
1632
|
+
se(R(Ye), L(t.value.query.query, {
|
|
1633
|
+
onClick: U[4] || (U[4] = (V) => t.value.query.query.click())
|
|
1592
1634
|
}), {
|
|
1593
1635
|
default: $(() => [
|
|
1594
|
-
|
|
1636
|
+
Le(Ce(t.value.query.query.label), 1)
|
|
1595
1637
|
]),
|
|
1596
1638
|
_: 1
|
|
1597
1639
|
}, 16),
|
|
1598
|
-
se(R(Ye),
|
|
1599
|
-
onClick:
|
|
1640
|
+
se(R(Ye), L(t.value.query.reset, {
|
|
1641
|
+
onClick: U[5] || (U[5] = (V) => t.value.query.reset.click())
|
|
1600
1642
|
}), {
|
|
1601
1643
|
default: $(() => [
|
|
1602
|
-
|
|
1644
|
+
Le(Ce(t.value.query.reset.label), 1)
|
|
1603
1645
|
]),
|
|
1604
1646
|
_: 1
|
|
1605
1647
|
}, 16)
|
|
@@ -1608,7 +1650,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1608
1650
|
key: "0"
|
|
1609
1651
|
}
|
|
1610
1652
|
]), 1040, ["modelValue"])) : be("", !0),
|
|
1611
|
-
se(
|
|
1653
|
+
se(hl, {
|
|
1612
1654
|
duration: 300,
|
|
1613
1655
|
name: "nested",
|
|
1614
1656
|
style: { padding: "10px" }
|
|
@@ -1616,19 +1658,19 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1616
1658
|
default: $(() => {
|
|
1617
1659
|
var V, Q, ne;
|
|
1618
1660
|
return [
|
|
1619
|
-
e.value && !((ne = (Q = (V = t.value) == null ? void 0 : V.query) == null ? void 0 : Q.more) != null && ne.hidden) && t.value.query.more.mode == 1 ? (
|
|
1620
|
-
|
|
1621
|
-
t.value.query.more.mode == 1 ?
|
|
1661
|
+
e.value && !((ne = (Q = (V = t.value) == null ? void 0 : V.query) == null ? void 0 : Q.more) != null && ne.hidden) && t.value.query.more.mode == 1 ? (p(), F("div", Jl, [
|
|
1662
|
+
Z("div", Kl, [
|
|
1663
|
+
t.value.query.more.mode == 1 ? yl((p(), O(R(wt), L({
|
|
1622
1664
|
key: 0,
|
|
1623
|
-
onSubmit:
|
|
1665
|
+
onSubmit: U[7] || (U[7] = it(() => {
|
|
1624
1666
|
}, ["prevent"]))
|
|
1625
|
-
}, R(Ze)(t.value.query, (
|
|
1667
|
+
}, R(Ze)(t.value.query, (ve) => !["query", "more", "reset"].includes(ve))), {
|
|
1626
1668
|
default: $(() => [
|
|
1627
|
-
(
|
|
1669
|
+
(p(), O(We(v({ slots: x.$slots }, !0))))
|
|
1628
1670
|
]),
|
|
1629
1671
|
_: 1
|
|
1630
1672
|
}, 16)), [
|
|
1631
|
-
[
|
|
1673
|
+
[gl, e.value]
|
|
1632
1674
|
]) : be("", !0)
|
|
1633
1675
|
])
|
|
1634
1676
|
])) : be("", !0)
|
|
@@ -1639,7 +1681,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1639
1681
|
], 64);
|
|
1640
1682
|
};
|
|
1641
1683
|
}
|
|
1642
|
-
},
|
|
1684
|
+
}, ta = /* @__PURE__ */ Ke(ea, [["__scopeId", "data-v-fbc339ad"]]), ul = {
|
|
1643
1685
|
inline: !0,
|
|
1644
1686
|
type: "hidden",
|
|
1645
1687
|
"scroll-to-error": !0,
|
|
@@ -1670,7 +1712,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1670
1712
|
label: "提交",
|
|
1671
1713
|
plain: !0,
|
|
1672
1714
|
hidden: !1,
|
|
1673
|
-
icon: () => ke(
|
|
1715
|
+
icon: () => ke(el)
|
|
1674
1716
|
},
|
|
1675
1717
|
//保存并提交按钮属性
|
|
1676
1718
|
saveSubmit: {
|
|
@@ -1679,7 +1721,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1679
1721
|
label: "保存提交",
|
|
1680
1722
|
plain: !0,
|
|
1681
1723
|
hidden: !0,
|
|
1682
|
-
icon: () => ke(
|
|
1724
|
+
icon: () => ke(xl)
|
|
1683
1725
|
},
|
|
1684
1726
|
//表单重置按钮属性
|
|
1685
1727
|
reset: {
|
|
@@ -1687,28 +1729,28 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1687
1729
|
label: "重置",
|
|
1688
1730
|
hidden: !0,
|
|
1689
1731
|
plain: !0,
|
|
1690
|
-
icon: () => ke(
|
|
1732
|
+
icon: () => ke(Kt)
|
|
1691
1733
|
},
|
|
1692
1734
|
slots: {},
|
|
1693
1735
|
tabs: {
|
|
1694
1736
|
type: "card",
|
|
1695
1737
|
editable: !1
|
|
1696
1738
|
}
|
|
1697
|
-
},
|
|
1739
|
+
}, la = { class: "g-form-container" }, aa = /* @__PURE__ */ Object.assign({
|
|
1698
1740
|
name: "g-form",
|
|
1699
1741
|
inheritAttrs: !1
|
|
1700
1742
|
}, {
|
|
1701
1743
|
__name: "g-form",
|
|
1702
|
-
props: /* @__PURE__ */
|
|
1744
|
+
props: /* @__PURE__ */ rt(["editForm", "flag"], {
|
|
1703
1745
|
modelValue: { required: !0 },
|
|
1704
1746
|
modelModifiers: {}
|
|
1705
1747
|
}),
|
|
1706
|
-
emits: /* @__PURE__ */
|
|
1748
|
+
emits: /* @__PURE__ */ rt(["submit", "reset"], ["update:modelValue"]),
|
|
1707
1749
|
setup(r, { expose: s, emit: t }) {
|
|
1708
1750
|
var we, Ve, xe, te, ue, Te;
|
|
1709
|
-
const l =
|
|
1751
|
+
const l = at(r, "modelValue"), n = t, e = re(null), h = qt("options"), f = re({}), S = re(""), c = r;
|
|
1710
1752
|
l.value.form = ze(
|
|
1711
|
-
|
|
1753
|
+
ul,
|
|
1712
1754
|
h == null ? void 0 : h.form,
|
|
1713
1755
|
(we = l.value) == null ? void 0 : we.form
|
|
1714
1756
|
), l.value.form.style = ze(
|
|
@@ -1719,12 +1761,12 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1719
1761
|
let i = 5;
|
|
1720
1762
|
for (; i > 0; ) {
|
|
1721
1763
|
if (await ht(), e.value) {
|
|
1722
|
-
e.value.validate((
|
|
1723
|
-
|
|
1764
|
+
e.value.validate((I, _) => {
|
|
1765
|
+
I ? n("submit", T, w, b) : console.error("表单验证不通过!", _);
|
|
1724
1766
|
});
|
|
1725
1767
|
return;
|
|
1726
1768
|
}
|
|
1727
|
-
i--, await new Promise((
|
|
1769
|
+
i--, await new Promise((I) => setTimeout(I, 50));
|
|
1728
1770
|
}
|
|
1729
1771
|
console.error("表单实例获取失败,请检查组件状态");
|
|
1730
1772
|
}, o = async (T, w) => {
|
|
@@ -1764,7 +1806,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1764
1806
|
(Te = h == null ? void 0 : h.form) == null ? void 0 : Te.cols,
|
|
1765
1807
|
l.value.form.cols
|
|
1766
1808
|
);
|
|
1767
|
-
const
|
|
1809
|
+
const J = (T) => {
|
|
1768
1810
|
let w = [];
|
|
1769
1811
|
if (T.rules)
|
|
1770
1812
|
w = T.rules;
|
|
@@ -1783,14 +1825,14 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1783
1825
|
message: `${i.label}不能为空!`,
|
|
1784
1826
|
trigger: "blur"
|
|
1785
1827
|
}), i.max !== void 0 && i.max !== null && i.max !== "" && (i.min === void 0 || i.min === null || i.min === "") && w.push({
|
|
1786
|
-
validator: (
|
|
1828
|
+
validator: (I, _, q) => {
|
|
1787
1829
|
if (_ == null || _ === "") return q();
|
|
1788
1830
|
i.type !== "number" && i.type !== "input-number" ? ((_ == null ? void 0 : _.toString()) || "").length > Number(i.max) ? q(
|
|
1789
1831
|
new Error(`${i.label}长度不能超过${i.max}个字符!`)
|
|
1790
1832
|
) : q() : Number(_) > Number(i.max) ? q(new Error(`${i.label}不能大于${i.max}!`)) : q();
|
|
1791
1833
|
}
|
|
1792
1834
|
}), i.min !== void 0 && i.min !== null && i.min !== "" && (i.max === void 0 || i.max === null || i.max === "") && w.push({
|
|
1793
|
-
validator: (
|
|
1835
|
+
validator: (I, _, q) => {
|
|
1794
1836
|
if (_ == null || _ === "") return q();
|
|
1795
1837
|
i.type !== "number" && i.type !== "input-number" ? Number(i.min) < 1 ? q(
|
|
1796
1838
|
new Error(
|
|
@@ -1803,7 +1845,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1803
1845
|
) : q() : Number(_) < Number(i.min) ? q(new Error(`${i.label}不能小于${i.min}!`)) : q();
|
|
1804
1846
|
}
|
|
1805
1847
|
}), i.min !== void 0 && i.min !== null && i.min !== "" && i.max !== void 0 && i.max !== null && i.max !== "" && w.push({
|
|
1806
|
-
validator: (
|
|
1848
|
+
validator: (I, _, q) => {
|
|
1807
1849
|
if (_ == null || _ === "") return q();
|
|
1808
1850
|
const V = Number(i.min), Q = Number(i.max);
|
|
1809
1851
|
i.type !== "number" && i.type !== "input-number" ? Number(i.min) < 1 ? q(
|
|
@@ -1820,13 +1862,13 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1820
1862
|
pattern: i == null ? void 0 : i.pattern,
|
|
1821
1863
|
message: (i == null ? void 0 : i.message) || "格式不正确!"
|
|
1822
1864
|
}), i.validate && w.push({
|
|
1823
|
-
validator: (
|
|
1865
|
+
validator: (I, _, q) => i.validate(I, _, q)
|
|
1824
1866
|
});
|
|
1825
1867
|
}
|
|
1826
1868
|
return w;
|
|
1827
1869
|
}, x = (T, w = !1) => {
|
|
1828
|
-
var
|
|
1829
|
-
const b = w ? T : T == null ? void 0 : T.item, i = typeof (b == null ? void 0 : b.editor) == "function" ? b.editor(f.value, (
|
|
1870
|
+
var I, _, q, V, Q;
|
|
1871
|
+
const b = w ? T : T == null ? void 0 : T.item, i = typeof (b == null ? void 0 : b.editor) == "function" ? b.editor(f.value, (I = l.value.form) == null ? void 0 : I.modalState) : (b == null ? void 0 : b.editor) || {};
|
|
1830
1872
|
if (((_ = l.value.form) == null ? void 0 : _.modalState) === "edit") {
|
|
1831
1873
|
const ne = typeof (b == null ? void 0 : b.editor) == "object" ? (q = b.editor) == null ? void 0 : q.ep : typeof (b == null ? void 0 : b.editor) == "function" ? i == null ? void 0 : i.ep : {};
|
|
1832
1874
|
return { ...i, ...ne };
|
|
@@ -1836,19 +1878,19 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1836
1878
|
return { ...i, ...ne };
|
|
1837
1879
|
}
|
|
1838
1880
|
return i;
|
|
1839
|
-
},
|
|
1840
|
-
var b, i,
|
|
1881
|
+
}, U = (T) => {
|
|
1882
|
+
var b, i, I, _, q;
|
|
1841
1883
|
const w = typeof T.editor == "function" ? T.editor(f.value, (b = l.value.form) == null ? void 0 : b.modalState) : T.editor;
|
|
1842
|
-
return ((i = l.value.form) == null ? void 0 : i.modalState) === "edit" ? ((
|
|
1884
|
+
return ((i = l.value.form) == null ? void 0 : i.modalState) === "edit" ? ((I = w == null ? void 0 : w.ep) == null ? void 0 : I.type) ?? (w == null ? void 0 : w.type) ?? T.type : ((_ = l.value.form) == null ? void 0 : _.modalState) === "add" ? ((q = w == null ? void 0 : w.ap) == null ? void 0 : q.type) ?? (w == null ? void 0 : w.type) ?? T.type : (w == null ? void 0 : w.type) ?? T.type;
|
|
1843
1885
|
};
|
|
1844
1886
|
yt(() => {
|
|
1845
1887
|
z(), c != null && c.editForm ? f.value = c.editForm : f.value = ee.value;
|
|
1846
|
-
}),
|
|
1888
|
+
}), bl(() => {
|
|
1847
1889
|
e.value = null;
|
|
1848
1890
|
});
|
|
1849
1891
|
const z = () => {
|
|
1850
1892
|
S.value = Math.random().toString(36).substring(2);
|
|
1851
|
-
for (const [T, w] of Object.entries(
|
|
1893
|
+
for (const [T, w] of Object.entries(X.value))
|
|
1852
1894
|
l.value[T].formItem = {
|
|
1853
1895
|
...l.value[T].formItem,
|
|
1854
1896
|
...w.formItem
|
|
@@ -1856,12 +1898,12 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1856
1898
|
...l.value[T].formItem.style,
|
|
1857
1899
|
...w.formItem.style
|
|
1858
1900
|
};
|
|
1859
|
-
},
|
|
1901
|
+
}, X = Qe(
|
|
1860
1902
|
() => Object.fromEntries(
|
|
1861
1903
|
Object.entries(l.value).filter((T) => T[1].type != "hidden").filter((T) => T[1].hidden !== !0).filter((T) => T[1].edit !== !1).filter((T) => T[1].editor !== !1).filter((T) => T[1].type !== "control").filter((T) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(T[0])).filter((T) => {
|
|
1862
|
-
var b, i,
|
|
1904
|
+
var b, i, I;
|
|
1863
1905
|
const w = typeof T[1].editor == "function" ? T[1].editor(f.value, (b = l.value.form) == null ? void 0 : b.modalState) : T[1].editor;
|
|
1864
|
-
return l.value.form.modalState === "edit" ? ((i = w == null ? void 0 : w.ep) == null ? void 0 : i.editor) !== !1 : l.value.form.modalState === "add" ? ((
|
|
1906
|
+
return l.value.form.modalState === "edit" ? ((i = w == null ? void 0 : w.ep) == null ? void 0 : i.editor) !== !1 : l.value.form.modalState === "add" ? ((I = w == null ? void 0 : w.ap) == null ? void 0 : I.editor) !== !1 : !0;
|
|
1865
1907
|
}).map((T) => [T[0], T[1]])
|
|
1866
1908
|
)
|
|
1867
1909
|
), ee = Qe(
|
|
@@ -1870,7 +1912,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1870
1912
|
)
|
|
1871
1913
|
), oe = Qe(() => {
|
|
1872
1914
|
const T = /* @__PURE__ */ new Map();
|
|
1873
|
-
return Object.entries(
|
|
1915
|
+
return Object.entries(X.value).forEach(([w, b]) => {
|
|
1874
1916
|
if (b.groupName) {
|
|
1875
1917
|
const i = b.groupName;
|
|
1876
1918
|
T.has(i) || T.set(i, {
|
|
@@ -1929,10 +1971,10 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1929
1971
|
reset: o,
|
|
1930
1972
|
formData: f
|
|
1931
1973
|
}), (T, w) => {
|
|
1932
|
-
var Q, ne,
|
|
1933
|
-
const b =
|
|
1934
|
-
return
|
|
1935
|
-
se(q,
|
|
1974
|
+
var Q, ne, ve;
|
|
1975
|
+
const b = N("el-form-item"), i = N("el-col"), I = N("el-tab-pane"), _ = N("el-tabs"), q = N("el-form"), V = N("el-button");
|
|
1976
|
+
return p(), F("div", la, [
|
|
1977
|
+
se(q, L(
|
|
1936
1978
|
{
|
|
1937
1979
|
ref_key: "gform",
|
|
1938
1980
|
ref: e,
|
|
@@ -1951,32 +1993,32 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1951
1993
|
), {
|
|
1952
1994
|
default: $(() => [
|
|
1953
1995
|
oe.value.length > 0 ? C(T.$slots, "default", { key: 0 }, () => [
|
|
1954
|
-
se(_,
|
|
1996
|
+
se(_, L({
|
|
1955
1997
|
class: "demo-tabs",
|
|
1956
1998
|
modelValue: oe.value[0].groupName,
|
|
1957
1999
|
"onUpdate:modelValue": w[0] || (w[0] = (P) => oe.value[0].groupName = P),
|
|
1958
2000
|
style: { width: "100%" }
|
|
1959
2001
|
}, l.value.form.tabs), {
|
|
1960
2002
|
default: $(() => [
|
|
1961
|
-
(
|
|
2003
|
+
(p(!0), F(ae, null, G(oe.value, (P) => (p(), O(I, L({
|
|
1962
2004
|
key: P.groupName,
|
|
1963
2005
|
label: P.groupName,
|
|
1964
2006
|
name: P.groupName,
|
|
1965
2007
|
style: { width: "100%", display: "flex", "flex-wrap": "wrap" }
|
|
1966
2008
|
}, { ref_for: !0 }, P.tabPane), {
|
|
1967
2009
|
default: $(() => [
|
|
1968
|
-
(
|
|
2010
|
+
(p(!0), F(ae, null, G(P.items, (H, Ee) => (p(), O(i, L({ ref_for: !0 }, { ...l.value.form.cols, ...H == null ? void 0 : H.item.col }, {
|
|
1969
2011
|
key: H.key,
|
|
1970
2012
|
style: { width: "100%" }
|
|
1971
2013
|
}), {
|
|
1972
2014
|
default: $(() => {
|
|
1973
|
-
var pe,
|
|
2015
|
+
var pe, Ue;
|
|
1974
2016
|
return [
|
|
1975
|
-
se(b,
|
|
2017
|
+
se(b, L({
|
|
1976
2018
|
label: H == null ? void 0 : H.item.label,
|
|
1977
2019
|
prop: H.key,
|
|
1978
|
-
rules:
|
|
1979
|
-
}, { ref_for: !0 }, { ...(pe = l.value) == null ? void 0 : pe.formItems, ...(
|
|
2020
|
+
rules: J(H == null ? void 0 : H.item)
|
|
2021
|
+
}, { ref_for: !0 }, { ...(pe = l.value) == null ? void 0 : pe.formItems, ...(Ue = H == null ? void 0 : H.item) == null ? void 0 : Ue.formItem }, { style: { width: "100%" } }), {
|
|
1980
2022
|
default: $(() => [
|
|
1981
2023
|
C(T.$slots, "f-" + H.key, {
|
|
1982
2024
|
item: H == null ? void 0 : H.item,
|
|
@@ -1984,19 +2026,19 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
1984
2026
|
model: l.value,
|
|
1985
2027
|
form: f.value
|
|
1986
2028
|
}, () => [
|
|
1987
|
-
(
|
|
2029
|
+
(p(), O(Ct, {
|
|
1988
2030
|
modelValue: f.value[H.key],
|
|
1989
2031
|
"onUpdate:modelValue": (Ae) => f.value[H.key] = Ae,
|
|
1990
2032
|
item: x(H),
|
|
1991
2033
|
ctrlKey: H.key,
|
|
1992
|
-
ctrlType:
|
|
2034
|
+
ctrlType: U(H == null ? void 0 : H.item),
|
|
1993
2035
|
model: l.value,
|
|
1994
2036
|
key: `${H.key}-${S.value}`,
|
|
1995
2037
|
class: "g-ctrl-container",
|
|
1996
2038
|
t: "f",
|
|
1997
2039
|
formInfo: f.value
|
|
1998
2040
|
}, ge({ _: 2 }, [
|
|
1999
|
-
|
|
2041
|
+
G(T.$slots, (Ae, Se) => ({
|
|
2000
2042
|
name: Se,
|
|
2001
2043
|
fn: $((A) => [
|
|
2002
2044
|
C(T.$slots, Se, {
|
|
@@ -2022,17 +2064,17 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
2022
2064
|
_: 3
|
|
2023
2065
|
}, 16, ["modelValue"])
|
|
2024
2066
|
], !0) : C(T.$slots, "default", { key: 1 }, () => [
|
|
2025
|
-
(
|
|
2067
|
+
(p(!0), F(ae, null, G(X.value, (P, H) => (p(), O(i, L({ ref_for: !0 }, { ...l.value.form.cols, ...P.col }, {
|
|
2026
2068
|
key: H,
|
|
2027
2069
|
style: { width: "100%" }
|
|
2028
2070
|
}), {
|
|
2029
2071
|
default: $(() => {
|
|
2030
2072
|
var Ee;
|
|
2031
2073
|
return [
|
|
2032
|
-
se(b,
|
|
2074
|
+
se(b, L({
|
|
2033
2075
|
label: P.label,
|
|
2034
2076
|
prop: H,
|
|
2035
|
-
rules:
|
|
2077
|
+
rules: J(P)
|
|
2036
2078
|
}, { ref_for: !0 }, { ...(Ee = l.value) == null ? void 0 : Ee.formItems, ...P == null ? void 0 : P.formItem }, { style: { width: "100%" } }), {
|
|
2037
2079
|
label: $((pe) => [
|
|
2038
2080
|
C(T.$slots, `f-${H}-label`, {
|
|
@@ -2040,7 +2082,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
2040
2082
|
item: P,
|
|
2041
2083
|
model: l.value
|
|
2042
2084
|
}, () => [
|
|
2043
|
-
|
|
2085
|
+
Le(Ce(P.label), 1)
|
|
2044
2086
|
], !0)
|
|
2045
2087
|
]),
|
|
2046
2088
|
default: $(() => [
|
|
@@ -2050,22 +2092,22 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
2050
2092
|
model: l.value,
|
|
2051
2093
|
form: f.value
|
|
2052
2094
|
}, () => [
|
|
2053
|
-
(
|
|
2095
|
+
(p(), O(Ct, {
|
|
2054
2096
|
modelValue: f.value[H],
|
|
2055
2097
|
"onUpdate:modelValue": (pe) => f.value[H] = pe,
|
|
2056
2098
|
item: x(P, !0),
|
|
2057
2099
|
ctrlKey: H,
|
|
2058
|
-
ctrlType:
|
|
2100
|
+
ctrlType: U(P),
|
|
2059
2101
|
key: `${H}-${S.value}`,
|
|
2060
2102
|
model: l.value,
|
|
2061
2103
|
class: "g-ctrl-container",
|
|
2062
2104
|
t: "f",
|
|
2063
2105
|
formInfo: f.value
|
|
2064
2106
|
}, ge({ _: 2 }, [
|
|
2065
|
-
|
|
2066
|
-
name:
|
|
2107
|
+
G(T.$slots, (pe, Ue) => ({
|
|
2108
|
+
name: Ue,
|
|
2067
2109
|
fn: $((Ae) => [
|
|
2068
|
-
C(T.$slots,
|
|
2110
|
+
C(T.$slots, Ue, {
|
|
2069
2111
|
data: Ae,
|
|
2070
2112
|
item: P,
|
|
2071
2113
|
model: l.value
|
|
@@ -2085,24 +2127,24 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
2085
2127
|
]),
|
|
2086
2128
|
_: 3
|
|
2087
2129
|
}, 16, ["model"]),
|
|
2088
|
-
(
|
|
2089
|
-
|
|
2130
|
+
(ve = (ne = (Q = l.value) == null ? void 0 : Q.form) == null ? void 0 : ne.footer) != null && ve.hidden ? be("", !0) : C(T.$slots, "f-footer", { key: 0 }, () => [
|
|
2131
|
+
Z("div", {
|
|
2090
2132
|
style: Re(l.value.form.footer.style)
|
|
2091
2133
|
}, [
|
|
2092
2134
|
C(T.$slots, "f-footer-left", {}, void 0, !0),
|
|
2093
|
-
(
|
|
2135
|
+
(p(!0), F(ae, null, G(he.value, (P) => (p(), F(ae, null, [
|
|
2094
2136
|
C(T.$slots, P.name + "-left", {}, void 0, !0),
|
|
2095
2137
|
C(T.$slots, P.name, {}, () => {
|
|
2096
2138
|
var H;
|
|
2097
2139
|
return [
|
|
2098
|
-
(H = P == null ? void 0 : P.info) != null && H.hidden ? be("", !0) : (
|
|
2140
|
+
(H = P == null ? void 0 : P.info) != null && H.hidden ? be("", !0) : (p(), O(V, L({
|
|
2099
2141
|
key: 0,
|
|
2100
2142
|
ref_for: !0
|
|
2101
2143
|
}, P.info, {
|
|
2102
2144
|
onClick: it((Ee) => P.click(f.value, l.value, P.flag), ["stop"])
|
|
2103
2145
|
}), {
|
|
2104
2146
|
default: $(() => [
|
|
2105
|
-
|
|
2147
|
+
Le(Ce(P == null ? void 0 : P.label), 1)
|
|
2106
2148
|
]),
|
|
2107
2149
|
_: 2
|
|
2108
2150
|
}, 1040, ["onClick"]))
|
|
@@ -2116,7 +2158,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
2116
2158
|
]);
|
|
2117
2159
|
};
|
|
2118
2160
|
}
|
|
2119
|
-
}),
|
|
2161
|
+
}), sl = /* @__PURE__ */ Ke(aa, [["__scopeId", "data-v-3b3ffd4d"]]), ra = { class: "dialog-extend-container" }, na = { key: 1 }, oa = { class: "header-btn-group" }, ua = /* @__PURE__ */ Object.assign({
|
|
2120
2162
|
name: "g-model",
|
|
2121
2163
|
inheritAttrs: !1
|
|
2122
2164
|
}, {
|
|
@@ -2141,9 +2183,9 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
2141
2183
|
maximize: { type: Boolean, default: !1 },
|
|
2142
2184
|
minimize: { type: Boolean, default: !1 },
|
|
2143
2185
|
// 图标配置
|
|
2144
|
-
maxIcon: { type: Object, default: () =>
|
|
2145
|
-
resizeIcon: { type: Object, default: () =>
|
|
2146
|
-
minIcon: { type: Object, default: () =>
|
|
2186
|
+
maxIcon: { type: Object, default: () => El },
|
|
2187
|
+
resizeIcon: { type: Object, default: () => Vl },
|
|
2188
|
+
minIcon: { type: Object, default: () => Tl },
|
|
2147
2189
|
draggable: { type: Boolean, default: !0 }
|
|
2148
2190
|
},
|
|
2149
2191
|
emits: [
|
|
@@ -2185,30 +2227,30 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
2185
2227
|
function g() {
|
|
2186
2228
|
e("opened");
|
|
2187
2229
|
}
|
|
2188
|
-
function
|
|
2230
|
+
function J() {
|
|
2189
2231
|
e("close");
|
|
2190
2232
|
}
|
|
2191
2233
|
function x() {
|
|
2192
2234
|
e("closed");
|
|
2193
2235
|
}
|
|
2194
|
-
function
|
|
2236
|
+
function U() {
|
|
2195
2237
|
v.value = !v.value, v.value ? e("maximize") : e("restore");
|
|
2196
2238
|
}
|
|
2197
2239
|
function z() {
|
|
2198
2240
|
o.value = !0, e("minimize");
|
|
2199
2241
|
}
|
|
2200
|
-
function
|
|
2242
|
+
function X() {
|
|
2201
2243
|
o.value = !1;
|
|
2202
2244
|
}
|
|
2203
2245
|
return s({
|
|
2204
2246
|
handleClose: () => c.value.handleClose()
|
|
2205
|
-
}), (ee, oe) => (
|
|
2206
|
-
o.value ? (
|
|
2247
|
+
}), (ee, oe) => (p(), F("div", ra, [
|
|
2248
|
+
o.value ? (p(), F("div", {
|
|
2207
2249
|
key: 0,
|
|
2208
2250
|
class: "minimize-ball",
|
|
2209
|
-
onClick:
|
|
2210
|
-
}, Ce(r.title), 1)) : (
|
|
2211
|
-
(
|
|
2251
|
+
onClick: X
|
|
2252
|
+
}, Ce(r.title), 1)) : (p(), F("div", na, [
|
|
2253
|
+
(p(), O(We(h.value), L({
|
|
2212
2254
|
ref_key: "dialogExtend",
|
|
2213
2255
|
ref: c,
|
|
2214
2256
|
modelValue: S.value,
|
|
@@ -2217,7 +2259,7 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
2217
2259
|
class: { "dialog-maximize": v.value },
|
|
2218
2260
|
onOpen: d,
|
|
2219
2261
|
onOpened: g,
|
|
2220
|
-
onClose:
|
|
2262
|
+
onClose: J,
|
|
2221
2263
|
onClosed: x,
|
|
2222
2264
|
draggable: ""
|
|
2223
2265
|
}, f.value), ge({
|
|
@@ -2226,32 +2268,32 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
2226
2268
|
titleClass: ie,
|
|
2227
2269
|
closeIconClass: he
|
|
2228
2270
|
}, () => [
|
|
2229
|
-
|
|
2271
|
+
Z("div", {
|
|
2230
2272
|
class: "custom-header",
|
|
2231
|
-
onDblclick: oe[0] || (oe[0] = (we) => r.maximize &&
|
|
2273
|
+
onDblclick: oe[0] || (oe[0] = (we) => r.maximize && U),
|
|
2232
2274
|
style: Re({ paddingRight: h.value === "el-dialog" ? "40px" : "0px" })
|
|
2233
2275
|
}, [
|
|
2234
2276
|
C(ee.$slots, "title", {}, () => [
|
|
2235
|
-
|
|
2277
|
+
Z("span", null, Ce(r.title), 1)
|
|
2236
2278
|
], !0),
|
|
2237
|
-
|
|
2238
|
-
r.minimize ? (
|
|
2279
|
+
Z("div", oa, [
|
|
2280
|
+
r.minimize ? (p(), O(R(Ht), {
|
|
2239
2281
|
key: 0,
|
|
2240
2282
|
class: "btn-icon",
|
|
2241
2283
|
onClick: it(z, ["stop"])
|
|
2242
2284
|
}, {
|
|
2243
2285
|
default: $(() => [
|
|
2244
|
-
(
|
|
2286
|
+
(p(), O(We(r.minIcon)))
|
|
2245
2287
|
]),
|
|
2246
2288
|
_: 1
|
|
2247
2289
|
})) : be("", !0),
|
|
2248
|
-
r.maximize ? (
|
|
2290
|
+
r.maximize ? (p(), O(R(Ht), {
|
|
2249
2291
|
key: 1,
|
|
2250
2292
|
class: "btn-icon",
|
|
2251
|
-
onClick: it(
|
|
2293
|
+
onClick: it(U, ["stop"])
|
|
2252
2294
|
}, {
|
|
2253
2295
|
default: $(() => [
|
|
2254
|
-
(
|
|
2296
|
+
(p(), O(We(v.value ? r.resizeIcon : r.maxIcon)))
|
|
2255
2297
|
]),
|
|
2256
2298
|
_: 1
|
|
2257
2299
|
})) : be("", !0)
|
|
@@ -2282,10 +2324,10 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
2282
2324
|
]))
|
|
2283
2325
|
]));
|
|
2284
2326
|
}
|
|
2285
|
-
}), At = /* @__PURE__ */
|
|
2327
|
+
}), At = /* @__PURE__ */ Ke(ua, [["__scopeId", "data-v-ae995f57"]]), sa = { style: { padding: "15px", "box-sizing": "border-box" } }, ia = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, da = { style: { display: "flex", flex: "1", "align-items": "center" } }, ca = {
|
|
2286
2328
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2287
2329
|
id: "excelSortEl"
|
|
2288
|
-
},
|
|
2330
|
+
}, fa = ["textContent"], va = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, pa = {
|
|
2289
2331
|
__name: "check-excel-item",
|
|
2290
2332
|
props: {
|
|
2291
2333
|
items: Array,
|
|
@@ -2316,32 +2358,32 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
2316
2358
|
});
|
|
2317
2359
|
};
|
|
2318
2360
|
return yt(() => {
|
|
2319
|
-
const S = new
|
|
2361
|
+
const S = new al(document.getElementById("excelSortEl"), {
|
|
2320
2362
|
animation: 150,
|
|
2321
2363
|
onEnd: () => {
|
|
2322
2364
|
S.toArray();
|
|
2323
2365
|
}
|
|
2324
2366
|
}), c = S;
|
|
2325
|
-
|
|
2367
|
+
$l(() => {
|
|
2326
2368
|
c && c.destroy();
|
|
2327
2369
|
});
|
|
2328
2370
|
}), (S, c) => {
|
|
2329
|
-
const v =
|
|
2330
|
-
return
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2371
|
+
const v = N("el-divider"), o = N("el-icon"), d = N("el-text"), g = N("el-checkbox"), J = N("el-button");
|
|
2372
|
+
return p(), F("div", sa, [
|
|
2373
|
+
Z("div", null, [
|
|
2374
|
+
Z("div", ia, [
|
|
2375
|
+
Z("div", da, [
|
|
2376
|
+
Z("a", {
|
|
2335
2377
|
onClick: e,
|
|
2336
2378
|
style: { cursor: "pointer" }
|
|
2337
2379
|
}, "全选"),
|
|
2338
2380
|
se(v, { direction: "vertical" }),
|
|
2339
|
-
|
|
2381
|
+
Z("a", {
|
|
2340
2382
|
onClick: h,
|
|
2341
2383
|
style: { cursor: "pointer" }
|
|
2342
2384
|
}, "全不选")
|
|
2343
2385
|
]),
|
|
2344
|
-
|
|
2386
|
+
Z("div", null, [
|
|
2345
2387
|
se(d, {
|
|
2346
2388
|
title: "拖动列标题可以改变表格列的生成顺序 !",
|
|
2347
2389
|
type: "warning"
|
|
@@ -2349,46 +2391,46 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
2349
2391
|
default: $(() => [
|
|
2350
2392
|
se(o, { size: "16" }, {
|
|
2351
2393
|
default: $(() => [
|
|
2352
|
-
se(R(
|
|
2394
|
+
se(R(tl))
|
|
2353
2395
|
]),
|
|
2354
2396
|
_: 1
|
|
2355
2397
|
}),
|
|
2356
|
-
c[0] || (c[0] =
|
|
2398
|
+
c[0] || (c[0] = Le(" 拖动列标题可以改变表格列的生成顺序 ! ", -1))
|
|
2357
2399
|
]),
|
|
2358
2400
|
_: 1
|
|
2359
2401
|
})
|
|
2360
2402
|
])
|
|
2361
2403
|
]),
|
|
2362
|
-
c[1] || (c[1] =
|
|
2363
|
-
|
|
2364
|
-
(
|
|
2404
|
+
c[1] || (c[1] = Z("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2405
|
+
Z("div", ca, [
|
|
2406
|
+
(p(!0), F(ae, null, G(n.value, (x) => (p(), O(g, {
|
|
2365
2407
|
class: "check-box-hover",
|
|
2366
2408
|
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" },
|
|
2367
2409
|
"data-id": x.key,
|
|
2368
2410
|
modelValue: x.value,
|
|
2369
|
-
"onUpdate:modelValue": (
|
|
2411
|
+
"onUpdate:modelValue": (U) => x.value = U,
|
|
2370
2412
|
key: x.key,
|
|
2371
2413
|
title: x.label
|
|
2372
2414
|
}, {
|
|
2373
2415
|
default: $(() => [
|
|
2374
|
-
|
|
2416
|
+
Z("span", {
|
|
2375
2417
|
textContent: Ce(x.label),
|
|
2376
2418
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2377
|
-
}, null, 8,
|
|
2419
|
+
}, null, 8, fa)
|
|
2378
2420
|
]),
|
|
2379
2421
|
_: 2
|
|
2380
2422
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2381
2423
|
])
|
|
2382
2424
|
]),
|
|
2383
|
-
|
|
2384
|
-
se(
|
|
2425
|
+
Z("div", va, [
|
|
2426
|
+
se(J, {
|
|
2385
2427
|
type: "primary",
|
|
2386
2428
|
onClick: f,
|
|
2387
|
-
icon: R(
|
|
2429
|
+
icon: R(ll),
|
|
2388
2430
|
disabled: n.value.filter((x) => x.value).length < 1
|
|
2389
2431
|
}, {
|
|
2390
2432
|
default: $(() => [
|
|
2391
|
-
|
|
2433
|
+
Le(Ce(t.commitText), 1)
|
|
2392
2434
|
]),
|
|
2393
2435
|
_: 1
|
|
2394
2436
|
}, 8, ["icon", "disabled"])
|
|
@@ -2396,8 +2438,8 @@ const Vt = /* @__PURE__ */ ll(Al), Je = (r, s) => {
|
|
|
2396
2438
|
]);
|
|
2397
2439
|
};
|
|
2398
2440
|
}
|
|
2399
|
-
},
|
|
2400
|
-
ye.version(
|
|
2441
|
+
}, ma = /* @__PURE__ */ Ke(pa, [["__scopeId", "data-v-13575747"]]), ha = "vue-gyc-ui", ya = 1, ye = new zl(ha);
|
|
2442
|
+
ye.version(ya).stores({
|
|
2401
2443
|
// 记录表格项设置信息
|
|
2402
2444
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2403
2445
|
// 记录表格分页条数
|
|
@@ -2407,7 +2449,7 @@ ye.version(fa).stores({
|
|
|
2407
2449
|
// 记录表格列显示状态
|
|
2408
2450
|
tableColsState: "++id,[page+key], page, key"
|
|
2409
2451
|
});
|
|
2410
|
-
const
|
|
2452
|
+
const ot = (r, s) => {
|
|
2411
2453
|
if (!r || typeof r != "string")
|
|
2412
2454
|
throw new Error("page参数必须是非空字符串");
|
|
2413
2455
|
};
|
|
@@ -2419,8 +2461,8 @@ async function _t(r, s, t) {
|
|
|
2419
2461
|
throw console.error(`处理表格列状态时出错 (page: ${r}, key: ${s}, state: ${t}):`, l), l;
|
|
2420
2462
|
}
|
|
2421
2463
|
}
|
|
2422
|
-
async function
|
|
2423
|
-
|
|
2464
|
+
async function ga(r, s, t) {
|
|
2465
|
+
ot(r);
|
|
2424
2466
|
try {
|
|
2425
2467
|
const l = await ye.tableWidths.where({ page: r, key: s }).first();
|
|
2426
2468
|
return l ? (await ye.tableWidths.put({ ...l, width: t }), "update success") : (await ye.tableWidths.add({ page: r, key: s, width: t }), "add success");
|
|
@@ -2428,16 +2470,16 @@ async function va(r, s, t) {
|
|
|
2428
2470
|
throw console.error(`保存表格项设置信息时出错 (page: ${r}, key: ${s}):`, l), l;
|
|
2429
2471
|
}
|
|
2430
2472
|
}
|
|
2431
|
-
async function
|
|
2432
|
-
|
|
2473
|
+
async function ba(r) {
|
|
2474
|
+
ot(r);
|
|
2433
2475
|
try {
|
|
2434
2476
|
return await ye.tableWidths.where({ page: r }).toArray();
|
|
2435
2477
|
} catch (s) {
|
|
2436
2478
|
throw console.error(`获取表格项设置信息时出错 (page: ${r}):`, s), s;
|
|
2437
2479
|
}
|
|
2438
2480
|
}
|
|
2439
|
-
async function
|
|
2440
|
-
|
|
2481
|
+
async function $a(r) {
|
|
2482
|
+
ot(r);
|
|
2441
2483
|
try {
|
|
2442
2484
|
const s = await ye.tableColsState.where({ page: r }).toArray();
|
|
2443
2485
|
return !s || s.length === 0 ? [] : s[0].keys;
|
|
@@ -2445,8 +2487,8 @@ async function ma(r) {
|
|
|
2445
2487
|
throw console.error(`获取表格列状态时出错 (page: ${r}):`, s), s;
|
|
2446
2488
|
}
|
|
2447
2489
|
}
|
|
2448
|
-
async function
|
|
2449
|
-
|
|
2490
|
+
async function wa(r) {
|
|
2491
|
+
ot(r);
|
|
2450
2492
|
try {
|
|
2451
2493
|
return await ye.transaction("rw", ye.tableWidths, ye.pageInfo, ye.sorts, ye.tableColsState, async () => {
|
|
2452
2494
|
await Promise.all([
|
|
@@ -2460,8 +2502,8 @@ async function ha(r) {
|
|
|
2460
2502
|
throw console.error(`删除页面"${r}"的表格设置信息时出错:`, s), s;
|
|
2461
2503
|
}
|
|
2462
2504
|
}
|
|
2463
|
-
async function
|
|
2464
|
-
|
|
2505
|
+
async function ka({ page: r, size: s }) {
|
|
2506
|
+
ot(r);
|
|
2465
2507
|
try {
|
|
2466
2508
|
const t = await ye.pageInfo.where({ page: r }).first();
|
|
2467
2509
|
return t ? (await ye.pageInfo.put({ ...t, size: s }), "update success") : (await ye.pageInfo.add({ page: r, size: s }), "add success");
|
|
@@ -2469,8 +2511,8 @@ async function ya({ page: r, size: s }) {
|
|
|
2469
2511
|
throw console.error(`保存分页条数时出错 (page: ${r}):`, t), t;
|
|
2470
2512
|
}
|
|
2471
2513
|
}
|
|
2472
|
-
async function
|
|
2473
|
-
|
|
2514
|
+
async function _a(r) {
|
|
2515
|
+
ot(r);
|
|
2474
2516
|
try {
|
|
2475
2517
|
const s = await ye.pageInfo.where({ page: r }).first();
|
|
2476
2518
|
return (s == null ? void 0 : s.size) || 20;
|
|
@@ -2478,8 +2520,8 @@ async function ga(r) {
|
|
|
2478
2520
|
throw console.error(`获取分页条数时出错 (page: ${r}):`, s), s;
|
|
2479
2521
|
}
|
|
2480
2522
|
}
|
|
2481
|
-
async function
|
|
2482
|
-
|
|
2523
|
+
async function Ca(r, s) {
|
|
2524
|
+
ot(r);
|
|
2483
2525
|
try {
|
|
2484
2526
|
const t = await ye.sorts.where({ page: r }).first();
|
|
2485
2527
|
return t ? (await ye.sorts.put({ ...t, keys: s }), "update success") : (await ye.sorts.add({ page: r, keys: s }), "add success");
|
|
@@ -2487,8 +2529,8 @@ async function ba(r, s) {
|
|
|
2487
2529
|
throw console.error(`保存表格字段顺序时出错 (page: ${r}):`, t), t;
|
|
2488
2530
|
}
|
|
2489
2531
|
}
|
|
2490
|
-
async function
|
|
2491
|
-
|
|
2532
|
+
async function Sa(r) {
|
|
2533
|
+
ot(r);
|
|
2492
2534
|
try {
|
|
2493
2535
|
const s = await ye.sorts.where({ page: r }).first();
|
|
2494
2536
|
return (s == null ? void 0 : s.keys) || [];
|
|
@@ -2496,15 +2538,15 @@ async function $a(r) {
|
|
|
2496
2538
|
throw console.error(`获取表格字段顺序时出错 (page: ${r}):`, s), s;
|
|
2497
2539
|
}
|
|
2498
2540
|
}
|
|
2499
|
-
const
|
|
2541
|
+
const Ma = { style: { padding: "15px", "box-sizing": "border-box" } }, xa = { style: { display: "flex", "align-items": "center", height: "30px" } }, Ta = {
|
|
2500
2542
|
style: { display: "flex", flex: "1", "align-items": "center" },
|
|
2501
2543
|
class: "allcheck"
|
|
2502
|
-
},
|
|
2544
|
+
}, Va = {
|
|
2503
2545
|
id: "cols",
|
|
2504
2546
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2505
|
-
},
|
|
2547
|
+
}, Ea = ["textContent"], Da = {
|
|
2506
2548
|
__name: "columns-setting",
|
|
2507
|
-
props: /* @__PURE__ */
|
|
2549
|
+
props: /* @__PURE__ */ rt({
|
|
2508
2550
|
tuid: {
|
|
2509
2551
|
type: String,
|
|
2510
2552
|
required: !0
|
|
@@ -2513,27 +2555,27 @@ const wa = { style: { padding: "15px", "box-sizing": "border-box" } }, ka = { st
|
|
|
2513
2555
|
modelValue: { required: !0 },
|
|
2514
2556
|
modelModifiers: {}
|
|
2515
2557
|
}),
|
|
2516
|
-
emits: /* @__PURE__ */
|
|
2558
|
+
emits: /* @__PURE__ */ rt(["setting-drag-end", "select-all"], ["update:modelValue"]),
|
|
2517
2559
|
setup(r, { emit: s }) {
|
|
2518
2560
|
const t = r, l = s;
|
|
2519
2561
|
let n = re([]);
|
|
2520
|
-
const e =
|
|
2562
|
+
const e = at(r, "modelValue"), h = async (o, d) => {
|
|
2521
2563
|
o ? (e.value[d].showCol = !0, await _t(t.tuid, d, "del")) : (e.value[d].showCol = !1, await _t(t.tuid, d, "add"));
|
|
2522
2564
|
}, f = () => {
|
|
2523
2565
|
const o = document.getElementById("cols");
|
|
2524
2566
|
if (o) {
|
|
2525
|
-
let d =
|
|
2567
|
+
let d = al.create(o, {
|
|
2526
2568
|
animation: 150,
|
|
2527
2569
|
filter: ".filtered",
|
|
2528
2570
|
sort: !0,
|
|
2529
2571
|
onEnd: async () => {
|
|
2530
2572
|
let g = d.toArray();
|
|
2531
2573
|
try {
|
|
2532
|
-
|
|
2574
|
+
Ca(t.tuid, g).then((J) => {
|
|
2533
2575
|
l("setting-drag-end");
|
|
2534
2576
|
});
|
|
2535
|
-
} catch (
|
|
2536
|
-
console.error("列排序保存信息时出错:",
|
|
2577
|
+
} catch (J) {
|
|
2578
|
+
console.error("列排序保存信息时出错:", J), lt({
|
|
2537
2579
|
type: "error",
|
|
2538
2580
|
message: "列排序保存信息失败!"
|
|
2539
2581
|
});
|
|
@@ -2549,7 +2591,7 @@ const wa = { style: { padding: "15px", "box-sizing": "border-box" } }, ka = { st
|
|
|
2549
2591
|
l("select-all");
|
|
2550
2592
|
});
|
|
2551
2593
|
} catch (o) {
|
|
2552
|
-
console.error("全选列保存信息时出错:", o),
|
|
2594
|
+
console.error("全选列保存信息时出错:", o), lt({
|
|
2553
2595
|
type: "error",
|
|
2554
2596
|
message: "全选列保存信息失败!"
|
|
2555
2597
|
});
|
|
@@ -2563,21 +2605,21 @@ const wa = { style: { padding: "15px", "box-sizing": "border-box" } }, ka = { st
|
|
|
2563
2605
|
l("select-all");
|
|
2564
2606
|
});
|
|
2565
2607
|
} catch (o) {
|
|
2566
|
-
console.error("清除列保存信息时出错:", o),
|
|
2608
|
+
console.error("清除列保存信息时出错:", o), lt({
|
|
2567
2609
|
type: "error",
|
|
2568
2610
|
message: "清除列保存信息失败!"
|
|
2569
2611
|
});
|
|
2570
2612
|
}
|
|
2571
2613
|
}, v = () => {
|
|
2572
|
-
|
|
2614
|
+
Wt.confirm("确定要复位吗?", "提示", {
|
|
2573
2615
|
confirmButtonText: "确定",
|
|
2574
2616
|
cancelButtonText: "取消",
|
|
2575
2617
|
type: "warning"
|
|
2576
2618
|
}).then(() => {
|
|
2577
|
-
|
|
2619
|
+
wa(t.tuid).then((o) => {
|
|
2578
2620
|
window.location.reload();
|
|
2579
2621
|
}).catch((o) => {
|
|
2580
|
-
console.error("复位操作出错:", o),
|
|
2622
|
+
console.error("复位操作出错:", o), lt({
|
|
2581
2623
|
type: "info",
|
|
2582
2624
|
message: "复位失败!"
|
|
2583
2625
|
});
|
|
@@ -2594,37 +2636,37 @@ const wa = { style: { padding: "15px", "box-sizing": "border-box" } }, ka = { st
|
|
|
2594
2636
|
width: d == null ? void 0 : d.width
|
|
2595
2637
|
})).sort((o, d) => o.sort - d.sort), f();
|
|
2596
2638
|
}), (o, d) => {
|
|
2597
|
-
const g =
|
|
2598
|
-
return
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2639
|
+
const g = N("el-divider"), J = N("el-icon"), x = N("el-text"), U = N("el-checkbox");
|
|
2640
|
+
return p(), F("div", Ma, [
|
|
2641
|
+
Z("div", xa, [
|
|
2642
|
+
Z("div", Ta, [
|
|
2643
|
+
Z("a", { onClick: S }, "全选"),
|
|
2602
2644
|
se(g, { direction: "vertical" }),
|
|
2603
|
-
|
|
2645
|
+
Z("a", { onClick: c }, "全不选"),
|
|
2604
2646
|
se(g, { direction: "vertical" }),
|
|
2605
|
-
|
|
2647
|
+
Z("a", { onClick: v }, "复位")
|
|
2606
2648
|
]),
|
|
2607
2649
|
se(x, { type: "warning" }, {
|
|
2608
2650
|
default: $(() => [
|
|
2609
|
-
se(
|
|
2651
|
+
se(J, { size: "16" }, {
|
|
2610
2652
|
default: $(() => [
|
|
2611
|
-
se(R(
|
|
2653
|
+
se(R(tl))
|
|
2612
2654
|
]),
|
|
2613
2655
|
_: 1
|
|
2614
2656
|
}),
|
|
2615
|
-
d[0] || (d[0] =
|
|
2657
|
+
d[0] || (d[0] = Le(" 拖动表格列标题可以改变表格列显示顺序 !", -1))
|
|
2616
2658
|
]),
|
|
2617
2659
|
_: 1
|
|
2618
2660
|
})
|
|
2619
2661
|
]),
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
(
|
|
2662
|
+
Z("div", null, [
|
|
2663
|
+
Z("div", Va, [
|
|
2664
|
+
(p(!0), F(ae, null, G(R(n), (z) => (p(), O(U, {
|
|
2623
2665
|
modelValue: z.showCol,
|
|
2624
|
-
"onUpdate:modelValue": (
|
|
2666
|
+
"onUpdate:modelValue": (X) => z.showCol = X,
|
|
2625
2667
|
"data-id": z.value,
|
|
2626
|
-
class:
|
|
2627
|
-
onChange: (
|
|
2668
|
+
class: Xt(["check-box-hover", z.value == "control" ? "filtered" : ""]),
|
|
2669
|
+
onChange: (X) => h(X, z.value),
|
|
2628
2670
|
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" },
|
|
2629
2671
|
value: z.value,
|
|
2630
2672
|
title: z.label,
|
|
@@ -2632,10 +2674,10 @@ const wa = { style: { padding: "15px", "box-sizing": "border-box" } }, ka = { st
|
|
|
2632
2674
|
key: z.value
|
|
2633
2675
|
}, {
|
|
2634
2676
|
default: $(() => [
|
|
2635
|
-
|
|
2677
|
+
Z("span", {
|
|
2636
2678
|
textContent: Ce(z.label),
|
|
2637
2679
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2638
|
-
}, null, 8,
|
|
2680
|
+
}, null, 8, Ea)
|
|
2639
2681
|
]),
|
|
2640
2682
|
_: 2
|
|
2641
2683
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2644,7 +2686,7 @@ const wa = { style: { padding: "15px", "box-sizing": "border-box" } }, ka = { st
|
|
|
2644
2686
|
]);
|
|
2645
2687
|
};
|
|
2646
2688
|
}
|
|
2647
|
-
},
|
|
2689
|
+
}, Ia = /* @__PURE__ */ Ke(Da, [["__scopeId", "data-v-11d261e3"]]), Oa = { class: "title" }, qa = { class: "content" }, Aa = {
|
|
2648
2690
|
__name: "g-cell-toopTip",
|
|
2649
2691
|
props: {
|
|
2650
2692
|
content: {
|
|
@@ -2658,27 +2700,27 @@ const wa = { style: { padding: "15px", "box-sizing": "border-box" } }, ka = { st
|
|
|
2658
2700
|
},
|
|
2659
2701
|
setup(r) {
|
|
2660
2702
|
const s = r, t = () => {
|
|
2661
|
-
s.content ? (navigator.clipboard.writeText(s.content),
|
|
2703
|
+
s.content ? (navigator.clipboard.writeText(s.content), lt.success("复制成功")) : lt.warning("没有内容可复制");
|
|
2662
2704
|
};
|
|
2663
|
-
return (l, n) => (
|
|
2705
|
+
return (l, n) => (p(), F("div", {
|
|
2664
2706
|
class: "g-cell-toopTip",
|
|
2665
2707
|
style: Re({ width: s.column.width + "px" })
|
|
2666
2708
|
}, [
|
|
2667
|
-
|
|
2668
|
-
n[0] || (n[0] =
|
|
2669
|
-
|
|
2709
|
+
Z("div", Oa, [
|
|
2710
|
+
n[0] || (n[0] = Z("span", { class: "title-text" }, "内容", -1)),
|
|
2711
|
+
Z("span", {
|
|
2670
2712
|
class: "copy-btn",
|
|
2671
2713
|
onClick: t,
|
|
2672
2714
|
title: "复制内容"
|
|
2673
2715
|
}, [
|
|
2674
|
-
se(R(
|
|
2716
|
+
se(R(Dl))
|
|
2675
2717
|
])
|
|
2676
2718
|
]),
|
|
2677
|
-
|
|
2719
|
+
Z("div", qa, Ce(s.content), 1)
|
|
2678
2720
|
], 4));
|
|
2679
2721
|
}
|
|
2680
|
-
},
|
|
2681
|
-
var
|
|
2722
|
+
}, za = /* @__PURE__ */ Ke(Aa, [["__scopeId", "data-v-f28912da"]]);
|
|
2723
|
+
var il = { exports: {} }, dl = { exports: {} };
|
|
2682
2724
|
(function() {
|
|
2683
2725
|
var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = {
|
|
2684
2726
|
// Bit-wise rotation left
|
|
@@ -2742,9 +2784,9 @@ var ol = { exports: {} }, ul = { exports: {} };
|
|
|
2742
2784
|
return l;
|
|
2743
2785
|
}
|
|
2744
2786
|
};
|
|
2745
|
-
|
|
2787
|
+
dl.exports = s;
|
|
2746
2788
|
})();
|
|
2747
|
-
var
|
|
2789
|
+
var La = dl.exports, Dt = {
|
|
2748
2790
|
// UTF-8 encoding
|
|
2749
2791
|
utf8: {
|
|
2750
2792
|
// Convert a string to a byte array
|
|
@@ -2771,31 +2813,31 @@ var Oa = ul.exports, Dt = {
|
|
|
2771
2813
|
return s.join("");
|
|
2772
2814
|
}
|
|
2773
2815
|
}
|
|
2774
|
-
},
|
|
2816
|
+
}, Pt = Dt;
|
|
2775
2817
|
/*!
|
|
2776
2818
|
* Determine if an object is a Buffer
|
|
2777
2819
|
*
|
|
2778
2820
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
2779
2821
|
* @license MIT
|
|
2780
2822
|
*/
|
|
2781
|
-
var
|
|
2782
|
-
return r != null && (
|
|
2823
|
+
var Ua = function(r) {
|
|
2824
|
+
return r != null && (cl(r) || Fa(r) || !!r._isBuffer);
|
|
2783
2825
|
};
|
|
2784
|
-
function
|
|
2826
|
+
function cl(r) {
|
|
2785
2827
|
return !!r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
|
|
2786
2828
|
}
|
|
2787
|
-
function
|
|
2788
|
-
return typeof r.readFloatLE == "function" && typeof r.slice == "function" &&
|
|
2829
|
+
function Fa(r) {
|
|
2830
|
+
return typeof r.readFloatLE == "function" && typeof r.slice == "function" && cl(r.slice(0, 0));
|
|
2789
2831
|
}
|
|
2790
2832
|
(function() {
|
|
2791
|
-
var r =
|
|
2833
|
+
var r = La, s = Pt.utf8, t = Ua, l = Pt.bin, n = function(e, h) {
|
|
2792
2834
|
e.constructor == String ? h && h.encoding === "binary" ? e = l.stringToBytes(e) : e = s.stringToBytes(e) : t(e) ? e = Array.prototype.slice.call(e, 0) : !Array.isArray(e) && e.constructor !== Uint8Array && (e = e.toString());
|
|
2793
2835
|
for (var f = r.bytesToWords(e), S = e.length * 8, c = 1732584193, v = -271733879, o = -1732584194, d = 271733878, g = 0; g < f.length; g++)
|
|
2794
2836
|
f[g] = (f[g] << 8 | f[g] >>> 24) & 16711935 | (f[g] << 24 | f[g] >>> 8) & 4278255360;
|
|
2795
2837
|
f[S >>> 5] |= 128 << S % 32, f[(S + 64 >>> 9 << 4) + 14] = S;
|
|
2796
|
-
for (var
|
|
2797
|
-
var
|
|
2798
|
-
c =
|
|
2838
|
+
for (var J = n._ff, x = n._gg, U = n._hh, z = n._ii, g = 0; g < f.length; g += 16) {
|
|
2839
|
+
var X = c, ee = v, oe = o, ie = d;
|
|
2840
|
+
c = J(c, v, o, d, f[g + 0], 7, -680876936), d = J(d, c, v, o, f[g + 1], 12, -389564586), o = J(o, d, c, v, f[g + 2], 17, 606105819), v = J(v, o, d, c, f[g + 3], 22, -1044525330), c = J(c, v, o, d, f[g + 4], 7, -176418897), d = J(d, c, v, o, f[g + 5], 12, 1200080426), o = J(o, d, c, v, f[g + 6], 17, -1473231341), v = J(v, o, d, c, f[g + 7], 22, -45705983), c = J(c, v, o, d, f[g + 8], 7, 1770035416), d = J(d, c, v, o, f[g + 9], 12, -1958414417), o = J(o, d, c, v, f[g + 10], 17, -42063), v = J(v, o, d, c, f[g + 11], 22, -1990404162), c = J(c, v, o, d, f[g + 12], 7, 1804603682), d = J(d, c, v, o, f[g + 13], 12, -40341101), o = J(o, d, c, v, f[g + 14], 17, -1502002290), v = J(v, o, d, c, f[g + 15], 22, 1236535329), c = x(c, v, o, d, f[g + 1], 5, -165796510), d = x(d, c, v, o, f[g + 6], 9, -1069501632), o = x(o, d, c, v, f[g + 11], 14, 643717713), v = x(v, o, d, c, f[g + 0], 20, -373897302), c = x(c, v, o, d, f[g + 5], 5, -701558691), d = x(d, c, v, o, f[g + 10], 9, 38016083), o = x(o, d, c, v, f[g + 15], 14, -660478335), v = x(v, o, d, c, f[g + 4], 20, -405537848), c = x(c, v, o, d, f[g + 9], 5, 568446438), d = x(d, c, v, o, f[g + 14], 9, -1019803690), o = x(o, d, c, v, f[g + 3], 14, -187363961), v = x(v, o, d, c, f[g + 8], 20, 1163531501), c = x(c, v, o, d, f[g + 13], 5, -1444681467), d = x(d, c, v, o, f[g + 2], 9, -51403784), o = x(o, d, c, v, f[g + 7], 14, 1735328473), v = x(v, o, d, c, f[g + 12], 20, -1926607734), c = U(c, v, o, d, f[g + 5], 4, -378558), d = U(d, c, v, o, f[g + 8], 11, -2022574463), o = U(o, d, c, v, f[g + 11], 16, 1839030562), v = U(v, o, d, c, f[g + 14], 23, -35309556), c = U(c, v, o, d, f[g + 1], 4, -1530992060), d = U(d, c, v, o, f[g + 4], 11, 1272893353), o = U(o, d, c, v, f[g + 7], 16, -155497632), v = U(v, o, d, c, f[g + 10], 23, -1094730640), c = U(c, v, o, d, f[g + 13], 4, 681279174), d = U(d, c, v, o, f[g + 0], 11, -358537222), o = U(o, d, c, v, f[g + 3], 16, -722521979), v = U(v, o, d, c, f[g + 6], 23, 76029189), c = U(c, v, o, d, f[g + 9], 4, -640364487), d = U(d, c, v, o, f[g + 12], 11, -421815835), o = U(o, d, c, v, f[g + 15], 16, 530742520), v = U(v, o, d, c, f[g + 2], 23, -995338651), c = z(c, v, o, d, f[g + 0], 6, -198630844), d = z(d, c, v, o, f[g + 7], 10, 1126891415), o = z(o, d, c, v, f[g + 14], 15, -1416354905), v = z(v, o, d, c, f[g + 5], 21, -57434055), c = z(c, v, o, d, f[g + 12], 6, 1700485571), d = z(d, c, v, o, f[g + 3], 10, -1894986606), o = z(o, d, c, v, f[g + 10], 15, -1051523), v = z(v, o, d, c, f[g + 1], 21, -2054922799), c = z(c, v, o, d, f[g + 8], 6, 1873313359), d = z(d, c, v, o, f[g + 15], 10, -30611744), o = z(o, d, c, v, f[g + 6], 15, -1560198380), v = z(v, o, d, c, f[g + 13], 21, 1309151649), c = z(c, v, o, d, f[g + 4], 6, -145523070), d = z(d, c, v, o, f[g + 11], 10, -1120210379), o = z(o, d, c, v, f[g + 2], 15, 718787259), v = z(v, o, d, c, f[g + 9], 21, -343485551), c = c + X >>> 0, v = v + ee >>> 0, o = o + oe >>> 0, d = d + ie >>> 0;
|
|
2799
2841
|
}
|
|
2800
2842
|
return r.endian([c, v, o, d]);
|
|
2801
2843
|
};
|
|
@@ -2811,18 +2853,18 @@ function qa(r) {
|
|
|
2811
2853
|
}, n._ii = function(e, h, f, S, c, v, o) {
|
|
2812
2854
|
var d = e + (f ^ (h | ~S)) + (c >>> 0) + o;
|
|
2813
2855
|
return (d << v | d >>> 32 - v) + h;
|
|
2814
|
-
}, n._blocksize = 16, n._digestsize = 16,
|
|
2856
|
+
}, n._blocksize = 16, n._digestsize = 16, il.exports = function(e, h) {
|
|
2815
2857
|
if (e == null)
|
|
2816
2858
|
throw new Error("Illegal argument " + e);
|
|
2817
2859
|
var f = r.wordsToBytes(n(e, h));
|
|
2818
2860
|
return h && h.asBytes ? f : h && h.asString ? l.bytesToString(f) : r.bytesToHex(f);
|
|
2819
2861
|
};
|
|
2820
2862
|
})();
|
|
2821
|
-
var
|
|
2822
|
-
const
|
|
2863
|
+
var Ya = il.exports;
|
|
2864
|
+
const Ra = /* @__PURE__ */ nl(Ya), Ha = { class: "g-table-container" }, Ba = {
|
|
2823
2865
|
key: 0,
|
|
2824
2866
|
class: "table-query-container"
|
|
2825
|
-
},
|
|
2867
|
+
}, Pa = { class: "table-container" }, Na = ["innerHTML"], ja = /* @__PURE__ */ Object.assign({
|
|
2826
2868
|
name: "g-table",
|
|
2827
2869
|
inheritAttrs: !1
|
|
2828
2870
|
}, {
|
|
@@ -2831,7 +2873,7 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
2831
2873
|
modelValue: { required: !0 },
|
|
2832
2874
|
modelModifiers: {}
|
|
2833
2875
|
},
|
|
2834
|
-
emits: /* @__PURE__ */
|
|
2876
|
+
emits: /* @__PURE__ */ rt([
|
|
2835
2877
|
"load",
|
|
2836
2878
|
"open",
|
|
2837
2879
|
"delete",
|
|
@@ -2841,16 +2883,16 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
2841
2883
|
"row-save"
|
|
2842
2884
|
], ["update:modelValue"]),
|
|
2843
2885
|
setup(r, { expose: s, emit: t }) {
|
|
2844
|
-
var Me,
|
|
2845
|
-
const l = re(""), n = t, e =
|
|
2886
|
+
var Me, Ie, Oe, Ge, He, Pe, Ne;
|
|
2887
|
+
const l = re(""), n = t, e = at(r, "modelValue"), h = qt("options"), f = re({}), S = Object.entries(e.value).filter(([a, u]) => (u == null ? void 0 : u.search) !== void 0).map(([a, u]) => {
|
|
2846
2888
|
var k;
|
|
2847
|
-
let
|
|
2889
|
+
let m;
|
|
2848
2890
|
if (typeof u.search == "function") {
|
|
2849
2891
|
const D = u.search(f.value);
|
|
2850
|
-
|
|
2892
|
+
m = (D == null ? void 0 : D.value) ?? u.value;
|
|
2851
2893
|
} else
|
|
2852
|
-
|
|
2853
|
-
return [a,
|
|
2894
|
+
m = ((k = u.search) == null ? void 0 : k.value) ?? u.value;
|
|
2895
|
+
return [a, m];
|
|
2854
2896
|
});
|
|
2855
2897
|
f.value = Object.fromEntries(S);
|
|
2856
2898
|
const c = re(!1), v = [
|
|
@@ -2882,7 +2924,7 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
2882
2924
|
"filter-multiple",
|
|
2883
2925
|
"filter-method",
|
|
2884
2926
|
"filtered-value"
|
|
2885
|
-
], o = re([]), d = Mt(), g = re({}),
|
|
2927
|
+
], o = re([]), d = Mt(), g = re({}), J = re([]), x = re(null), U = re(""), z = re("/"), X = re({
|
|
2886
2928
|
autoWatch: !1,
|
|
2887
2929
|
data: [],
|
|
2888
2930
|
border: !0,
|
|
@@ -2891,35 +2933,35 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
2891
2933
|
fit: !1,
|
|
2892
2934
|
type: "hidden",
|
|
2893
2935
|
load: async () => {
|
|
2894
|
-
e.value.table.page.pageSize = await
|
|
2936
|
+
e.value.table.page.pageSize = await _a(z.value);
|
|
2895
2937
|
let { currentPage: a, pageSize: u } = e.value.table.page;
|
|
2896
2938
|
try {
|
|
2897
2939
|
n(
|
|
2898
2940
|
"load",
|
|
2899
2941
|
{ currentPage: a, pageSize: u, ...f.value },
|
|
2900
|
-
(
|
|
2942
|
+
(m = [], k = 0, { fields: D = [], sums: B = {} } = {}) => {
|
|
2901
2943
|
var Y;
|
|
2902
|
-
if (!Array.isArray(
|
|
2903
|
-
console.error("从 load 事件回调中接收到的数据不是数组格式。"),
|
|
2944
|
+
if (!Array.isArray(m)) {
|
|
2945
|
+
console.error("从 load 事件回调中接收到的数据不是数组格式。"), lt.error("数据加载失败,请检查数据格式。");
|
|
2904
2946
|
return;
|
|
2905
2947
|
}
|
|
2906
2948
|
if (typeof k != "number") {
|
|
2907
|
-
console.error("从 load 事件回调中接收到的 total 不是数字格式。"),
|
|
2949
|
+
console.error("从 load 事件回调中接收到的 total 不是数字格式。"), lt.error("数据加载失败,请检查数据格式。");
|
|
2908
2950
|
return;
|
|
2909
2951
|
}
|
|
2910
|
-
e.value.table.data =
|
|
2952
|
+
e.value.table.data = m, ((Y = e.value.control) == null ? void 0 : Y.add(x.value, e).inline) === !0 && e.value.table.data.unshift(x.value), e.value.table.page.total = k, J.value = D, g.value = B, Ae(), U.value = Math.random().toString(36).substring(2);
|
|
2911
2953
|
},
|
|
2912
2954
|
x.value
|
|
2913
2955
|
);
|
|
2914
|
-
} catch (
|
|
2915
|
-
console.error("触发 load 事件时出现错误:",
|
|
2956
|
+
} catch (m) {
|
|
2957
|
+
console.error("触发 load 事件时出现错误:", m), lt.error("数据加载时出现错误,请稍后重试。");
|
|
2916
2958
|
}
|
|
2917
2959
|
},
|
|
2918
|
-
onHeaderDragend: (a, u,
|
|
2919
|
-
|
|
2960
|
+
onHeaderDragend: (a, u, m) => {
|
|
2961
|
+
ga(z.value, m.property, a);
|
|
2920
2962
|
},
|
|
2921
|
-
onRowDblclick: (a, u,
|
|
2922
|
-
e.value.table.dblclickType == "edit" ? T(a, u,
|
|
2963
|
+
onRowDblclick: (a, u, m) => {
|
|
2964
|
+
e.value.table.dblclickType == "edit" ? T(a, u, m, e) : e.value.table.dblclickType == "view" ? b(a, u, m, e) : e.value.table.dblclickType == "delete" ? w(a, u, m, e) : e.value.table.dblclickType(a, u, m, e);
|
|
2923
2965
|
},
|
|
2924
2966
|
style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
|
|
2925
2967
|
page: {
|
|
@@ -2939,18 +2981,18 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
2939
2981
|
e.value.table.page.currentPage = a, e.value.table.load();
|
|
2940
2982
|
},
|
|
2941
2983
|
onSizeChange: (a) => {
|
|
2942
|
-
|
|
2984
|
+
ka({ page: z.value, size: a }).then(() => {
|
|
2943
2985
|
e.value.table.page.pageSize = a, e.value.table.load();
|
|
2944
2986
|
});
|
|
2945
2987
|
}
|
|
2946
2988
|
},
|
|
2947
2989
|
dblclickType: "edit",
|
|
2948
|
-
"summary-method": ({ columns: a, data: u },
|
|
2949
|
-
onSortChange: ({ column: a, prop: u, order:
|
|
2990
|
+
"summary-method": ({ columns: a, data: u }, m) => m,
|
|
2991
|
+
onSortChange: ({ column: a, prop: u, order: m }, k) => {
|
|
2950
2992
|
}
|
|
2951
2993
|
});
|
|
2952
2994
|
e.value.table = ze(
|
|
2953
|
-
|
|
2995
|
+
X.value,
|
|
2954
2996
|
h == null ? void 0 : h.table,
|
|
2955
2997
|
e.value.table,
|
|
2956
2998
|
d
|
|
@@ -2963,38 +3005,38 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
2963
3005
|
"min-width": 100,
|
|
2964
3006
|
width: 160,
|
|
2965
3007
|
fixed: "right",
|
|
2966
|
-
style: { ...(
|
|
3008
|
+
style: { ...(Ie = (Me = e.value) == null ? void 0 : Me.control) == null ? void 0 : Ie.style },
|
|
2967
3009
|
validate: async (a) => await !0,
|
|
2968
|
-
view: (a, u,
|
|
3010
|
+
view: (a, u, m, k) => ({
|
|
2969
3011
|
label: "查看",
|
|
2970
3012
|
text: !0,
|
|
2971
3013
|
type: "success",
|
|
2972
3014
|
mode: "dialog",
|
|
2973
|
-
icon: () => ke(
|
|
3015
|
+
icon: () => ke(Al),
|
|
2974
3016
|
auth: () => {
|
|
2975
3017
|
var D;
|
|
2976
|
-
return !(((D = k == null ? void 0 : k.control) == null ? void 0 : D.add(a, k).inline) === !0 &&
|
|
3018
|
+
return !(((D = k == null ? void 0 : k.control) == null ? void 0 : D.add(a, k).inline) === !0 && m === 0);
|
|
2977
3019
|
}
|
|
2978
3020
|
}),
|
|
2979
|
-
edit: (a, u,
|
|
3021
|
+
edit: (a, u, m, k) => ({
|
|
2980
3022
|
label: "编辑",
|
|
2981
3023
|
text: !0,
|
|
2982
3024
|
type: "primary",
|
|
2983
3025
|
mode: "dialog",
|
|
2984
|
-
icon: () => ke(
|
|
3026
|
+
icon: () => ke(ql),
|
|
2985
3027
|
auth: () => {
|
|
2986
3028
|
var D;
|
|
2987
3029
|
return ((D = k == null ? void 0 : k.control) == null ? void 0 : D.add(a, k).inline) !== !0;
|
|
2988
3030
|
}
|
|
2989
3031
|
}),
|
|
2990
|
-
delete: (a, u,
|
|
3032
|
+
delete: (a, u, m, k) => ({
|
|
2991
3033
|
text: !0,
|
|
2992
3034
|
label: "删除",
|
|
2993
3035
|
type: "danger",
|
|
2994
|
-
icon: () => ke(
|
|
3036
|
+
icon: () => ke(Jt),
|
|
2995
3037
|
auth: () => {
|
|
2996
3038
|
var D;
|
|
2997
|
-
return !(((D = k.control) == null ? void 0 : D.add(a, k).inline) === !0 &&
|
|
3039
|
+
return !(((D = k.control) == null ? void 0 : D.add(a, k).inline) === !0 && m === 0);
|
|
2998
3040
|
},
|
|
2999
3041
|
dialog: {
|
|
3000
3042
|
message: "此操作将永久删除该文件, 是否继续?",
|
|
@@ -3006,13 +3048,13 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3006
3048
|
}
|
|
3007
3049
|
}
|
|
3008
3050
|
}),
|
|
3009
|
-
save: (a, u,
|
|
3051
|
+
save: (a, u, m, k) => {
|
|
3010
3052
|
var D, B;
|
|
3011
3053
|
return {
|
|
3012
|
-
label: ((D = k.control) == null ? void 0 : D.add(a, k).inline) !== !0 ? "保存" :
|
|
3054
|
+
label: ((D = k.control) == null ? void 0 : D.add(a, k).inline) !== !0 ? "保存" : m === 0 ? "新增" : "保存",
|
|
3013
3055
|
text: !0,
|
|
3014
|
-
icon: () => ke(
|
|
3015
|
-
type: ((B = k.control) == null ? void 0 : B.add(a, k).inline) !== !0 ||
|
|
3056
|
+
icon: () => ke(el),
|
|
3057
|
+
type: ((B = k.control) == null ? void 0 : B.add(a, k).inline) !== !0 || m === 0 ? "primary" : "success",
|
|
3016
3058
|
sort: -1,
|
|
3017
3059
|
auth: () => {
|
|
3018
3060
|
var Y;
|
|
@@ -3026,7 +3068,7 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3026
3068
|
type: "primary",
|
|
3027
3069
|
mode: "dialog",
|
|
3028
3070
|
inline: !1,
|
|
3029
|
-
icon: () => ke(
|
|
3071
|
+
icon: () => ke(Ol),
|
|
3030
3072
|
auth: () => !0
|
|
3031
3073
|
}),
|
|
3032
3074
|
download: (a, u) => ({
|
|
@@ -3034,7 +3076,7 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3034
3076
|
text: !1,
|
|
3035
3077
|
type: "primary",
|
|
3036
3078
|
mode: "dialog",
|
|
3037
|
-
icon: () => ke(
|
|
3079
|
+
icon: () => ke(ll),
|
|
3038
3080
|
excelLabel: "下载EXCEL",
|
|
3039
3081
|
auth: () => !0
|
|
3040
3082
|
}),
|
|
@@ -3043,20 +3085,20 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3043
3085
|
text: !1,
|
|
3044
3086
|
type: "primary",
|
|
3045
3087
|
mode: "dialog",
|
|
3046
|
-
icon: () => ke(
|
|
3088
|
+
icon: () => ke(Il),
|
|
3047
3089
|
auth: () => !0
|
|
3048
3090
|
}),
|
|
3049
|
-
dropdown: (a, u,
|
|
3091
|
+
dropdown: (a, u, m, k) => ({
|
|
3050
3092
|
label: "编辑",
|
|
3051
3093
|
operate: "edit",
|
|
3052
3094
|
"split-button": !0,
|
|
3053
3095
|
type: "primary",
|
|
3054
3096
|
size: "small",
|
|
3055
|
-
auth: () => !(k.control.add(a, k).inline === !0 &&
|
|
3097
|
+
auth: () => !(k.control.add(a, k).inline === !0 && m == 0),
|
|
3056
3098
|
onClick: () => {
|
|
3057
3099
|
var B;
|
|
3058
|
-
let D = (B = ie(a, u,
|
|
3059
|
-
D === "edit" ? T(a, u,
|
|
3100
|
+
let D = (B = ie(a, u, m, k)) == null ? void 0 : B.operate;
|
|
3101
|
+
D === "edit" ? T(a, u, m, k) : D === "delete" ? w(a, u, m, k) : D === "view" && b(a, u, m, k);
|
|
3060
3102
|
},
|
|
3061
3103
|
"button-props": { round: !0, plain: !0 }
|
|
3062
3104
|
})
|
|
@@ -3064,42 +3106,42 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3064
3106
|
e.value.control = ze(
|
|
3065
3107
|
ee,
|
|
3066
3108
|
h == null ? void 0 : h.control,
|
|
3067
|
-
(
|
|
3109
|
+
(Oe = e.value) == null ? void 0 : Oe.control
|
|
3068
3110
|
);
|
|
3069
3111
|
const oe = (a, u = !0) => {
|
|
3070
|
-
const
|
|
3071
|
-
var Be, je,
|
|
3112
|
+
const m = e.value.control[a], k = u ? (D, B, Y, $e) => {
|
|
3113
|
+
var Be, je, ut;
|
|
3072
3114
|
if (!D || !B || Y == null)
|
|
3073
3115
|
return console.warn(`merge${a.charAt(0).toUpperCase() + a.slice(1)}: 缺少必要的参数(row, column或index)`), {};
|
|
3074
|
-
const qe = ((Be = ee[a]) == null ? void 0 : Be.call(ee, D, B, Y, $e)) || {}, De = ((
|
|
3116
|
+
const qe = ((Be = ee[a]) == null ? void 0 : Be.call(ee, D, B, Y, $e)) || {}, De = ((ut = (je = h == null ? void 0 : h.control) == null ? void 0 : je[a]) == null ? void 0 : ut.call(je, D, B, Y, $e)) || {}, Fe = (m == null ? void 0 : m(D, B, Y, $e)) || {};
|
|
3075
3117
|
return ze(qe, De, Fe) || {};
|
|
3076
3118
|
} : (D, B) => {
|
|
3077
3119
|
var De, Fe, Be;
|
|
3078
|
-
const Y = ((De = ee[a]) == null ? void 0 : De.call(ee, D, B)) || {}, $e = ((Be = (Fe = h == null ? void 0 : h.control) == null ? void 0 : Fe[a]) == null ? void 0 : Be.call(Fe, D, B)) || {}, qe = (
|
|
3120
|
+
const Y = ((De = ee[a]) == null ? void 0 : De.call(ee, D, B)) || {}, $e = ((Be = (Fe = h == null ? void 0 : h.control) == null ? void 0 : Fe[a]) == null ? void 0 : Be.call(Fe, D, B)) || {}, qe = (m == null ? void 0 : m(D, B)) || {};
|
|
3079
3121
|
return ze(Y, $e, qe) || {};
|
|
3080
3122
|
};
|
|
3081
3123
|
e.value.control[a] = k;
|
|
3082
3124
|
};
|
|
3083
3125
|
oe("edit"), oe("delete"), oe("view"), oe("save"), oe("add", !1), oe("download", !1), oe("setting", !1);
|
|
3084
|
-
const ie = (a, u,
|
|
3126
|
+
const ie = (a, u, m, k) => {
|
|
3085
3127
|
var $e, qe, De, Fe, Be, je;
|
|
3086
|
-
if (!a || !u ||
|
|
3128
|
+
if (!a || !u || m == null)
|
|
3087
3129
|
return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
|
|
3088
|
-
const D = (($e = ee.dropdown) == null ? void 0 : $e.call(ee, a, u,
|
|
3130
|
+
const D = (($e = ee.dropdown) == null ? void 0 : $e.call(ee, a, u, m, k)) || {}, B = ((De = (qe = h == null ? void 0 : h.control) == null ? void 0 : qe.dropdown) == null ? void 0 : De.call(qe, a, u, m, k)) || {}, Y = ((je = (Be = (Fe = e.value) == null ? void 0 : Fe.control) == null ? void 0 : Be.dropdown) == null ? void 0 : je.call(Be, a, u, m, k)) || {};
|
|
3089
3131
|
return ze(D, B, Y) || {};
|
|
3090
3132
|
}, he = {
|
|
3091
3133
|
type: "hidden",
|
|
3092
3134
|
"min-width": 100,
|
|
3093
3135
|
align: "center",
|
|
3094
|
-
formatter: (a, u,
|
|
3095
|
-
"tooltip-formatter": ({ row: a, column: u, cellValue:
|
|
3136
|
+
formatter: (a, u, m, k) => m,
|
|
3137
|
+
"tooltip-formatter": ({ row: a, column: u, cellValue: m }) => ke(za, { content: m, column: u })
|
|
3096
3138
|
};
|
|
3097
3139
|
e.value.tableColumns = ze(
|
|
3098
3140
|
he,
|
|
3099
3141
|
h == null ? void 0 : h.tableColumns,
|
|
3100
3142
|
(Ge = e.value) == null ? void 0 : Ge.tableColumns
|
|
3101
3143
|
), e.value.form = ze(
|
|
3102
|
-
|
|
3144
|
+
ul,
|
|
3103
3145
|
h == null ? void 0 : h.form,
|
|
3104
3146
|
(He = e.value) == null ? void 0 : He.form
|
|
3105
3147
|
);
|
|
@@ -3133,29 +3175,29 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3133
3175
|
(Ne = e.value) == null ? void 0 : Ne.dialog
|
|
3134
3176
|
);
|
|
3135
3177
|
const xe = (a, u) => {
|
|
3136
|
-
let
|
|
3137
|
-
if (a.precision && !isNaN(parseFloat(u)) && (typeof a.precision == "number" ?
|
|
3138
|
-
parseFloat(
|
|
3178
|
+
let m = u;
|
|
3179
|
+
if (a.precision && !isNaN(parseFloat(u)) && (typeof a.precision == "number" ? m = parseFloat(m).toFixed(a.precision) : typeof a.precision == "object" && a.precision.num && (a.precision.pad ? m = parseFloat(m).toFixed(a.precision.num) : m = parseFloat(
|
|
3180
|
+
parseFloat(m).toFixed(a.precision.num)
|
|
3139
3181
|
).toString())), ["date", "datetime", "time", "time-select"].includes(a.type) && Vt(u).isValid()) {
|
|
3140
3182
|
const D = {
|
|
3141
3183
|
date: "YYYY-MM-DD",
|
|
3142
3184
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
3143
3185
|
time: "HH:mm:ss"
|
|
3144
3186
|
};
|
|
3145
|
-
|
|
3187
|
+
m = a.format ? Vt(m).format(a.format) : Vt(m).format(D[a.type]);
|
|
3146
3188
|
}
|
|
3147
|
-
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130,
|
|
3148
|
-
parseFloat(
|
|
3149
|
-
)}">${
|
|
3189
|
+
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, m = `<span title="${Ot(
|
|
3190
|
+
parseFloat(m)
|
|
3191
|
+
)}">${ir(parseFloat(m), (a == null ? void 0 : a.precision) || 2, (a == null ? void 0 : a.removeZero) || !1)}</span>`), a.prefix && m && (m = `<span>${a.prefix}${m}</span>`), a.suffix && m && (m = `${m}<span>${a.suffix}</span>`), m;
|
|
3150
3192
|
}, te = (a) => {
|
|
3151
3193
|
f.value = Object.fromEntries(S), e.value.table.load();
|
|
3152
3194
|
}, ue = (a) => {
|
|
3153
3195
|
f.value = a, e.value.table.load();
|
|
3154
3196
|
}, Te = async (a = x.value, u) => {
|
|
3155
|
-
var
|
|
3197
|
+
var m, k;
|
|
3156
3198
|
e.value.form.modalState = "add", l.value = "add";
|
|
3157
3199
|
try {
|
|
3158
|
-
if (!await ((
|
|
3200
|
+
if (!await ((m = e.value.control) == null ? void 0 : m.validate("add", { row: x.value, m: u }))) return;
|
|
3159
3201
|
} catch (D) {
|
|
3160
3202
|
console.error("验证失败:", D);
|
|
3161
3203
|
return;
|
|
@@ -3163,91 +3205,91 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3163
3205
|
(k = e.value.control.add(x.value, u)) != null && k.click ? e.value.control.add(x.value, u).click(x.value, u) : e.value.control.add(x.value, u).inline === !0 ? (e.value.table.data.unshift({ ...x.value }), n("open", "row-add", { row: x.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add(x.value, u).mode, e.value.dialog.title = e.value.control.add(x.value, u).title || e.value.control.add(x.value, u).label || "新增", Object.keys(x.value).forEach((D) => {
|
|
3164
3206
|
e.value[D] && (e.value[D].value = x.value[D]);
|
|
3165
3207
|
}), c.value = !0, n("open", "add", { row: x.value, m: u }), mt());
|
|
3166
|
-
}, T = async (a, u,
|
|
3208
|
+
}, T = async (a, u, m, k) => {
|
|
3167
3209
|
var D, B;
|
|
3168
3210
|
e.value.form.modalState = "edit", l.value = "edit";
|
|
3169
3211
|
try {
|
|
3170
|
-
if (!await ((D = e.value.control) == null ? void 0 : D.validate("edit", { row: a, column: u, index:
|
|
3212
|
+
if (!await ((D = e.value.control) == null ? void 0 : D.validate("edit", { row: a, column: u, index: m, m: k }))) return;
|
|
3171
3213
|
} catch (Y) {
|
|
3172
3214
|
console.error("验证失败:", Y);
|
|
3173
3215
|
return;
|
|
3174
3216
|
}
|
|
3175
|
-
(B = e.value.control.edit(a, u,
|
|
3217
|
+
(B = e.value.control.edit(a, u, m, k)) != null && B.click ? e.value.control.edit(a, u, m, k).click(a, u, m, k) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit(a, u, m, k).mode, e.value.dialog.title = e.value.control.edit(a, u, m, k).title || e.value.control.edit(a, u, m, k).label || "编辑", Object.keys(a).forEach((Y) => {
|
|
3176
3218
|
e.value[Y] && (e.value[Y].value = a[Y]);
|
|
3177
|
-
}), c.value = !0, n("open", "edit", { m: k, row: a, column: u, index:
|
|
3178
|
-
}, w = async (a, u,
|
|
3219
|
+
}), c.value = !0, n("open", "edit", { m: k, row: a, column: u, index: m }), mt());
|
|
3220
|
+
}, w = async (a, u, m, k) => {
|
|
3179
3221
|
var D, B;
|
|
3180
3222
|
try {
|
|
3181
|
-
if (!await ((D = e.value.control) == null ? void 0 : D.validate("delete", { row: a, column: u, index:
|
|
3223
|
+
if (!await ((D = e.value.control) == null ? void 0 : D.validate("delete", { row: a, column: u, index: m, m: k }))) return;
|
|
3182
3224
|
} catch (Y) {
|
|
3183
3225
|
console.error("验证失败:", Y);
|
|
3184
3226
|
return;
|
|
3185
3227
|
}
|
|
3186
|
-
if ((B = e.value.control.delete(a, u,
|
|
3187
|
-
e.value.control.delete(a, u,
|
|
3228
|
+
if ((B = e.value.control.delete(a, u, m, k)) != null && B.click)
|
|
3229
|
+
e.value.control.delete(a, u, m, k).click(a, u, m, k);
|
|
3188
3230
|
else {
|
|
3189
|
-
let { message: Y, title: $e, options: qe } = e.value.control.delete(a, u,
|
|
3190
|
-
|
|
3231
|
+
let { message: Y, title: $e, options: qe } = e.value.control.delete(a, u, m, k).dialog;
|
|
3232
|
+
Wt.confirm(Y, $e, qe).then(() => {
|
|
3191
3233
|
n(
|
|
3192
3234
|
"delete",
|
|
3193
|
-
{ row: a, column: u, index:
|
|
3235
|
+
{ row: a, column: u, index: m, m: k },
|
|
3194
3236
|
(De = !0, Fe = !1) => {
|
|
3195
|
-
De && (e.value.table.data.splice(
|
|
3237
|
+
De && (e.value.table.data.splice(m, 1), e.value.table.page.total--), Fe && e.value.table.load();
|
|
3196
3238
|
}
|
|
3197
3239
|
);
|
|
3198
3240
|
}).catch(() => {
|
|
3199
3241
|
});
|
|
3200
3242
|
}
|
|
3201
|
-
}, b = async (a, u,
|
|
3243
|
+
}, b = async (a, u, m, k) => {
|
|
3202
3244
|
var D, B;
|
|
3203
3245
|
e.value.form.modalState = void 0, l.value = "view";
|
|
3204
3246
|
try {
|
|
3205
|
-
if (!await ((D = e.value.control) == null ? void 0 : D.validate("view", { row: a, column: u, index:
|
|
3247
|
+
if (!await ((D = e.value.control) == null ? void 0 : D.validate("view", { row: a, column: u, index: m, m: k }))) return;
|
|
3206
3248
|
} catch (Y) {
|
|
3207
3249
|
console.error("验证失败:", Y);
|
|
3208
3250
|
return;
|
|
3209
3251
|
}
|
|
3210
|
-
(B = e.value.control.view(a, u,
|
|
3252
|
+
(B = e.value.control.view(a, u, m, k)) != null && B.click ? e.value.control.view(a, u, m, k).click(a, u, m, k) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view(a, u, m, k).mode, e.value.dialog.title = e.value.control.view(a, u, m, k).title || e.value.control.view(a, u, m, k).label || "查看", Object.keys(a).forEach((Y) => {
|
|
3211
3253
|
e.value[Y] && (e.value[Y].value = a[Y]);
|
|
3212
|
-
}), c.value = !0, n("open", "view", { m: k, row: a, column: u, index:
|
|
3254
|
+
}), c.value = !0, n("open", "view", { m: k, row: a, column: u, index: m }), mt());
|
|
3213
3255
|
}, i = (a, u = x.value) => {
|
|
3214
3256
|
Object.assign(a, u);
|
|
3215
|
-
},
|
|
3216
|
-
const D = e.value.control.save(a, u,
|
|
3217
|
-
D != null && D.click ? D.click(a, u,
|
|
3257
|
+
}, I = (a, u, m, k) => {
|
|
3258
|
+
const D = e.value.control.save(a, u, m, k);
|
|
3259
|
+
D != null && D.click ? D.click(a, u, m, k) : n(
|
|
3218
3260
|
"row-save",
|
|
3219
|
-
{ row: a, column: u, index:
|
|
3261
|
+
{ row: a, column: u, index: m, data: e.value.table.data },
|
|
3220
3262
|
async (B = !0, Y = !0) => {
|
|
3221
|
-
if (B && e.value.table.load(), Y &&
|
|
3263
|
+
if (B && e.value.table.load(), Y && m === 0) {
|
|
3222
3264
|
const $e = Object.entries(e.value).filter(
|
|
3223
3265
|
([qe, De]) => De.type !== "control" && De.type !== "hidden"
|
|
3224
3266
|
// && val.editor !== false
|
|
3225
3267
|
);
|
|
3226
3268
|
x.value = Object.fromEntries(
|
|
3227
3269
|
$e.map(([qe, De]) => [qe, De.value])
|
|
3228
|
-
), e.value.table.data[
|
|
3270
|
+
), e.value.table.data[m] = { ...x.value };
|
|
3229
3271
|
}
|
|
3230
3272
|
}
|
|
3231
3273
|
);
|
|
3232
|
-
}, _ =
|
|
3274
|
+
}, _ = dr((a, u, m) => {
|
|
3233
3275
|
n("submit", e.value.form.modalState, a, u, (k) => {
|
|
3234
|
-
k && (
|
|
3276
|
+
k && (m === 1 && (c.value = !1), i(a), u.table.load());
|
|
3235
3277
|
});
|
|
3236
3278
|
}, 300), q = (a, u) => {
|
|
3237
3279
|
i(a), n("reset", a, u);
|
|
3238
|
-
}, V = (a, u,
|
|
3280
|
+
}, V = (a, u, m) => {
|
|
3239
3281
|
var k;
|
|
3240
3282
|
if ((k = u.control.download(a, u)) != null && k.click)
|
|
3241
|
-
u.control.download(a, u).click(a, u,
|
|
3283
|
+
u.control.download(a, u).click(a, u, m);
|
|
3242
3284
|
else {
|
|
3243
|
-
let D =
|
|
3285
|
+
let D = It(
|
|
3244
3286
|
{
|
|
3245
3287
|
title: u.control.download(a, u).title || u.control.download(a, u).label || "下载",
|
|
3246
3288
|
size: u.control.download(a, u).size || 480,
|
|
3247
3289
|
width: u.control.download(a, u).width || 600,
|
|
3248
3290
|
slots: {
|
|
3249
|
-
default: () => ke(
|
|
3250
|
-
items:
|
|
3291
|
+
default: () => ke(ma, {
|
|
3292
|
+
items: m,
|
|
3251
3293
|
commitText: u.control.download(a, u).excelLabel,
|
|
3252
3294
|
onExcel: (B, Y) => {
|
|
3253
3295
|
n("download", B, f.value, Y), D();
|
|
@@ -3259,14 +3301,14 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3259
3301
|
);
|
|
3260
3302
|
}
|
|
3261
3303
|
}, Q = (a, u) => {
|
|
3262
|
-
var
|
|
3263
|
-
(
|
|
3304
|
+
var m;
|
|
3305
|
+
(m = u.control.setting(a, u)) != null && m.click ? u.control.setting(a, u).click(a, u) : It(
|
|
3264
3306
|
{
|
|
3265
3307
|
title: u.control.setting(a, u).title || u.control.setting(a, u).label || "设置",
|
|
3266
3308
|
size: u.control.setting(a, u).size || 470,
|
|
3267
3309
|
width: u.control.setting(a, u).width || 600,
|
|
3268
3310
|
slots: {
|
|
3269
|
-
default: () => ke(
|
|
3311
|
+
default: () => ke(Ia, {
|
|
3270
3312
|
modelValue: u,
|
|
3271
3313
|
tuid: z.value,
|
|
3272
3314
|
onSettingDragEnd: async () => {
|
|
@@ -3280,37 +3322,37 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3280
3322
|
},
|
|
3281
3323
|
u.control.setting(a, u).mode
|
|
3282
3324
|
);
|
|
3283
|
-
}, ne = e.value.control,
|
|
3325
|
+
}, ne = e.value.control, ve = {
|
|
3284
3326
|
add: Te,
|
|
3285
3327
|
download: V,
|
|
3286
3328
|
setting: Q,
|
|
3287
3329
|
view: b,
|
|
3288
3330
|
edit: T,
|
|
3289
3331
|
delete: w,
|
|
3290
|
-
save:
|
|
3291
|
-
}, P = (a, u,
|
|
3292
|
-
const Y = ne == null ? void 0 : ne[B](u,
|
|
3332
|
+
save: I
|
|
3333
|
+
}, P = (a, u, m, k, D) => a.filter((B) => ve[B]).map((B) => {
|
|
3334
|
+
const Y = ne == null ? void 0 : ne[B](u, m, k, D);
|
|
3293
3335
|
return {
|
|
3294
3336
|
name: `control-${B}`,
|
|
3295
3337
|
attr: Y,
|
|
3296
|
-
func:
|
|
3338
|
+
func: ve[B],
|
|
3297
3339
|
label: Y == null ? void 0 : Y.label,
|
|
3298
3340
|
sort: (Y == null ? void 0 : Y.sort) || 0,
|
|
3299
3341
|
groupName: (Y == null ? void 0 : Y.groupName) || "default"
|
|
3300
3342
|
};
|
|
3301
|
-
}).sort((B, Y) => B.sort - Y.sort), H = (a, u,
|
|
3343
|
+
}).sort((B, Y) => B.sort - Y.sort), H = (a, u, m, k, D) => P(a, u, m, k, D).reduce((B, Y) => {
|
|
3302
3344
|
const $e = Y.groupName || "default";
|
|
3303
3345
|
return B[$e] || (B[$e] = []), B[$e].push(Y), B;
|
|
3304
3346
|
}, {}), Ee = Qe(() => Object.fromEntries(
|
|
3305
3347
|
Object.entries(e.value).filter(
|
|
3306
3348
|
([a, u]) => u.type !== "hidden" && u.hidden !== !0 && u.visible !== !1 && u.showCol !== !1
|
|
3307
3349
|
).map(([a, u]) => (u.sort = typeof u.sort == "number" ? u.sort : 0, [a, u])).sort((a, u) => a[1].sort - u[1].sort)
|
|
3308
|
-
)), pe = re({}),
|
|
3309
|
-
const
|
|
3350
|
+
)), pe = re({}), Ue = (a, u) => {
|
|
3351
|
+
const m = (k, D) => {
|
|
3310
3352
|
for (const B of k) {
|
|
3311
3353
|
if (B.value == D) return B.label;
|
|
3312
3354
|
if (B.children) {
|
|
3313
|
-
const Y =
|
|
3355
|
+
const Y = m(B.children, D);
|
|
3314
3356
|
if (Y) return Y;
|
|
3315
3357
|
}
|
|
3316
3358
|
}
|
|
@@ -3318,35 +3360,35 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3318
3360
|
};
|
|
3319
3361
|
if (a.getDicts) {
|
|
3320
3362
|
const k = u.toString();
|
|
3321
|
-
return pe.value[k] ? (a.options = pe.value[k], a.formatter || (a.formatter = (D, B, Y, $e) => a.options &&
|
|
3322
|
-
pe.value[k] = D, a.options = D, a.formatter || (a.formatter = (B, Y, $e, qe) => a.options &&
|
|
3363
|
+
return pe.value[k] ? (a.options = pe.value[k], a.formatter || (a.formatter = (D, B, Y, $e) => a.options && m(a.options, Y) || Y), Promise.resolve()) : a.getDicts(e.value.table.data).then((D) => {
|
|
3364
|
+
pe.value[k] = D, a.options = D, a.formatter || (a.formatter = (B, Y, $e, qe) => a.options && m(a.options, $e) || $e);
|
|
3323
3365
|
});
|
|
3324
3366
|
}
|
|
3325
3367
|
return Promise.resolve();
|
|
3326
3368
|
}, Ae = async () => {
|
|
3327
3369
|
try {
|
|
3328
|
-
const u = Object.keys(e.value).filter((
|
|
3329
|
-
(
|
|
3370
|
+
const u = Object.keys(e.value).filter((m) => e.value[m].getDicts).map(
|
|
3371
|
+
(m) => Ue(e.value[m], m)
|
|
3330
3372
|
);
|
|
3331
3373
|
await Promise.all(u);
|
|
3332
3374
|
} catch (a) {
|
|
3333
3375
|
console.error("字典加载过程中发生错误:", a);
|
|
3334
3376
|
}
|
|
3335
|
-
}, Se = (a, u,
|
|
3377
|
+
}, Se = (a, u, m, k) => {
|
|
3336
3378
|
var D, B;
|
|
3337
|
-
return a.table ? (D = a.table(u,
|
|
3379
|
+
return a.table ? (D = a.table(u, m, k)) != null && D.auth ? (B = a.table(u, m, k)) == null ? void 0 : B.auth(u, m, k) : !0 : !1;
|
|
3338
3380
|
}, A = () => {
|
|
3339
3381
|
c.value = !1;
|
|
3340
3382
|
};
|
|
3341
|
-
|
|
3383
|
+
wl(() => {
|
|
3342
3384
|
e.value.table.autoWatch && e.value.table.load();
|
|
3343
3385
|
});
|
|
3344
3386
|
const M = async () => {
|
|
3345
3387
|
try {
|
|
3346
|
-
const [a, u,
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3388
|
+
const [a, u, m] = await Promise.all([
|
|
3389
|
+
ba(z.value),
|
|
3390
|
+
Sa(z.value),
|
|
3391
|
+
$a(z.value)
|
|
3350
3392
|
]);
|
|
3351
3393
|
a && Array.isArray(a) && a.forEach((k) => {
|
|
3352
3394
|
const D = e.value[k.key];
|
|
@@ -3354,7 +3396,7 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3354
3396
|
}), u && Array.isArray(u) && u.forEach((k, D) => {
|
|
3355
3397
|
const B = e.value[k];
|
|
3356
3398
|
B && (B.sort = D);
|
|
3357
|
-
}),
|
|
3399
|
+
}), m && Array.isArray(m) && m.length > 0 ? m.forEach((k) => {
|
|
3358
3400
|
const D = e.value[k];
|
|
3359
3401
|
D && (D.showCol = !1);
|
|
3360
3402
|
}) : Object.keys(e.value).filter((k) => e.value[k].type !== "control").forEach((k) => {
|
|
@@ -3365,51 +3407,51 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3365
3407
|
e.value[u].showCol === void 0 && (e.value[u].showCol = !0);
|
|
3366
3408
|
});
|
|
3367
3409
|
}
|
|
3368
|
-
},
|
|
3369
|
-
return
|
|
3370
|
-
z.value =
|
|
3410
|
+
}, j = () => Ra(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
|
|
3411
|
+
return kl(() => {
|
|
3412
|
+
z.value = j();
|
|
3371
3413
|
}), yt(async () => {
|
|
3372
3414
|
try {
|
|
3373
3415
|
o.value = Object.entries(e.value).filter(
|
|
3374
|
-
([u,
|
|
3375
|
-
).map(([u,
|
|
3416
|
+
([u, m]) => m.type !== "hidden" && m.type !== "control" && m.visible !== !1
|
|
3417
|
+
).map(([u, m]) => ({
|
|
3376
3418
|
key: u || "",
|
|
3377
|
-
label:
|
|
3419
|
+
label: m.label,
|
|
3378
3420
|
value: !0
|
|
3379
3421
|
})), await ht();
|
|
3380
3422
|
const a = Object.entries(e.value).filter(
|
|
3381
|
-
([u,
|
|
3423
|
+
([u, m]) => m.type !== "control" && m.type !== "hidden"
|
|
3382
3424
|
);
|
|
3383
3425
|
x.value = Object.fromEntries(
|
|
3384
|
-
a.map(([u,
|
|
3426
|
+
a.map(([u, m]) => [u, m.value])
|
|
3385
3427
|
), await M(), e.value.table.autoWatch || e.value.table.load();
|
|
3386
3428
|
} catch (a) {
|
|
3387
3429
|
console.error("Error during component initialization:", a), e.value.table.autoWatch || e.value.table.load();
|
|
3388
3430
|
}
|
|
3389
|
-
}), s({ addRow: Te, editRow: T, deleteRow: w, readForm: b, saveRowData:
|
|
3390
|
-
var De, Fe, Be, je,
|
|
3391
|
-
const
|
|
3392
|
-
return
|
|
3393
|
-
c.value ? (
|
|
3431
|
+
}), s({ addRow: Te, editRow: T, deleteRow: w, readForm: b, saveRowData: I, closeDialog: A, formData: x }), (a, u) => {
|
|
3432
|
+
var De, Fe, Be, je, ut, dt, gt;
|
|
3433
|
+
const m = N("el-button-group"), k = N("el-dropdown-item"), D = N("el-dropdown-menu"), B = N("el-dropdown"), Y = N("el-table-column"), $e = N("el-table"), qe = N("el-pagination");
|
|
3434
|
+
return p(), F(ae, null, [
|
|
3435
|
+
c.value ? (p(), O(At, L({
|
|
3394
3436
|
key: 0,
|
|
3395
3437
|
modelValue: c.value,
|
|
3396
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
3438
|
+
"onUpdate:modelValue": u[2] || (u[2] = (K) => c.value = K)
|
|
3397
3439
|
}, e.value.dialog, {
|
|
3398
3440
|
type: e.value.dialog.mode
|
|
3399
3441
|
}), ge({
|
|
3400
3442
|
default: $(() => [
|
|
3401
|
-
c.value ? (
|
|
3443
|
+
c.value ? (p(), O(We(sl), {
|
|
3402
3444
|
key: 0,
|
|
3403
3445
|
modelValue: e.value,
|
|
3404
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
3405
|
-
onSubmit: u[1] || (u[1] = (
|
|
3446
|
+
"onUpdate:modelValue": u[0] || (u[0] = (K) => e.value = K),
|
|
3447
|
+
onSubmit: u[1] || (u[1] = (K, me, E) => R(_)(K, me, E)),
|
|
3406
3448
|
onReset: q,
|
|
3407
3449
|
flag: l.value
|
|
3408
3450
|
}, ge({ _: 2 }, [
|
|
3409
|
-
|
|
3451
|
+
G(a.$slots, (K, me, E) => ({
|
|
3410
3452
|
name: me,
|
|
3411
|
-
fn: $((
|
|
3412
|
-
C(a.$slots, me, { model:
|
|
3453
|
+
fn: $((le) => [
|
|
3454
|
+
C(a.$slots, me, { model: le }, void 0, !0)
|
|
3413
3455
|
])
|
|
3414
3456
|
}))
|
|
3415
3457
|
]), 1064, ["modelValue", "flag"])) : be("", !0)
|
|
@@ -3418,9 +3460,9 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3418
3460
|
}, [
|
|
3419
3461
|
a.$slots.header ? {
|
|
3420
3462
|
name: "header",
|
|
3421
|
-
fn: $(({ titleClass:
|
|
3463
|
+
fn: $(({ titleClass: K, closeIconClass: me }) => [
|
|
3422
3464
|
C(a.$slots, "header", {
|
|
3423
|
-
titleClass:
|
|
3465
|
+
titleClass: K,
|
|
3424
3466
|
closeIconClass: me
|
|
3425
3467
|
}, void 0, !0)
|
|
3426
3468
|
]),
|
|
@@ -3448,61 +3490,61 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3448
3490
|
key: "3"
|
|
3449
3491
|
} : void 0
|
|
3450
3492
|
]), 1040, ["modelValue", "type"])) : be("", !0),
|
|
3451
|
-
|
|
3452
|
-
((je = (Be = e.value) == null ? void 0 : Be.query) == null ? void 0 : je.hidden) != !0 ? (
|
|
3493
|
+
Z("div", Ha, [
|
|
3494
|
+
((je = (Be = e.value) == null ? void 0 : Be.query) == null ? void 0 : je.hidden) != !0 ? (p(), F("div", Ba, [
|
|
3453
3495
|
C(a.$slots, "query", {}, () => [
|
|
3454
|
-
se(
|
|
3496
|
+
se(ta, {
|
|
3455
3497
|
modelValue: e.value,
|
|
3456
|
-
"onUpdate:modelValue": u[3] || (u[3] = (
|
|
3498
|
+
"onUpdate:modelValue": u[3] || (u[3] = (K) => e.value = K),
|
|
3457
3499
|
info: f.value,
|
|
3458
|
-
"onUpdate:info": u[4] || (u[4] = (
|
|
3500
|
+
"onUpdate:info": u[4] || (u[4] = (K) => f.value = K),
|
|
3459
3501
|
onQuery: ue,
|
|
3460
3502
|
onReset: te
|
|
3461
3503
|
}, ge({
|
|
3462
3504
|
"q-btns": $(() => [
|
|
3463
3505
|
C(a.$slots, "q-btns", {}, () => [
|
|
3464
|
-
(
|
|
3465
|
-
me == "default" ? (
|
|
3506
|
+
(p(!0), F(ae, null, G(H(["add", "download", "setting"], x.value, e.value), (K, me) => (p(), F(ae, null, [
|
|
3507
|
+
me == "default" ? (p(!0), F(ae, { key: 0 }, G(K, (E) => (p(), F(ae, null, [
|
|
3466
3508
|
C(a.$slots, E.name + "-left", {}, void 0, !0),
|
|
3467
3509
|
(E.name === "control-add" ? E.attr.auth() && E.attr.inline === !1 : E.attr.auth()) ? C(a.$slots, E.name, { key: 0 }, () => [
|
|
3468
|
-
E.label ? (
|
|
3510
|
+
E.label ? (p(), O(R(Ye), L({
|
|
3469
3511
|
key: 0,
|
|
3470
3512
|
title: E.label
|
|
3471
3513
|
}, { ref_for: !0 }, E.attr, {
|
|
3472
|
-
onClick: (
|
|
3514
|
+
onClick: (le) => E.func(x.value, e.value, o.value)
|
|
3473
3515
|
}), {
|
|
3474
3516
|
default: $(() => [
|
|
3475
|
-
|
|
3517
|
+
Le(Ce(E.label), 1)
|
|
3476
3518
|
]),
|
|
3477
3519
|
_: 2
|
|
3478
|
-
}, 1040, ["title", "onClick"])) : (
|
|
3520
|
+
}, 1040, ["title", "onClick"])) : (p(), O(R(Ye), L({
|
|
3479
3521
|
key: 1,
|
|
3480
3522
|
title: E.label
|
|
3481
3523
|
}, { ref_for: !0 }, E.attr, {
|
|
3482
|
-
onClick: (
|
|
3524
|
+
onClick: (le) => E.func(x.value, e.value, o.value)
|
|
3483
3525
|
}), null, 16, ["title", "onClick"]))
|
|
3484
3526
|
], !0) : be("", !0),
|
|
3485
3527
|
C(a.$slots, E.name + "-right", {}, void 0, !0)
|
|
3486
|
-
], 64))), 256)) : (
|
|
3528
|
+
], 64))), 256)) : (p(), O(m, { key: 1 }, {
|
|
3487
3529
|
default: $(() => [
|
|
3488
|
-
(
|
|
3530
|
+
(p(!0), F(ae, null, G(K, (E) => (p(), F(ae, null, [
|
|
3489
3531
|
C(a.$slots, E.name + "-left", {}, void 0, !0),
|
|
3490
3532
|
(E.name === "control-add" ? E.attr.auth() && E.attr.inline === !1 : E.attr.auth()) ? C(a.$slots, E.name, { key: 0 }, () => [
|
|
3491
|
-
E.label ? (
|
|
3533
|
+
E.label ? (p(), O(R(Ye), L({
|
|
3492
3534
|
key: 0,
|
|
3493
3535
|
title: E.label
|
|
3494
3536
|
}, { ref_for: !0 }, E.attr, {
|
|
3495
|
-
onClick: (
|
|
3537
|
+
onClick: (le) => E.func(x.value, e.value, o.value)
|
|
3496
3538
|
}), {
|
|
3497
3539
|
default: $(() => [
|
|
3498
|
-
|
|
3540
|
+
Le(Ce(E.label), 1)
|
|
3499
3541
|
]),
|
|
3500
3542
|
_: 2
|
|
3501
|
-
}, 1040, ["title", "onClick"])) : (
|
|
3543
|
+
}, 1040, ["title", "onClick"])) : (p(), O(R(Ye), L({
|
|
3502
3544
|
key: 1,
|
|
3503
3545
|
title: E.label
|
|
3504
3546
|
}, { ref_for: !0 }, E.attr, {
|
|
3505
|
-
onClick: (
|
|
3547
|
+
onClick: (le) => E.func(x.value, e.value, o.value)
|
|
3506
3548
|
}), null, 16, ["title", "onClick"]))
|
|
3507
3549
|
], !0) : be("", !0),
|
|
3508
3550
|
C(a.$slots, E.name + "-right", {}, void 0, !0)
|
|
@@ -3515,9 +3557,9 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3515
3557
|
]),
|
|
3516
3558
|
_: 2
|
|
3517
3559
|
}, [
|
|
3518
|
-
|
|
3560
|
+
G(a.$slots, (K, me, E) => ({
|
|
3519
3561
|
name: me,
|
|
3520
|
-
fn: $((
|
|
3562
|
+
fn: $((le) => [
|
|
3521
3563
|
C(a.$slots, me, { model: e.value }, void 0, !0)
|
|
3522
3564
|
])
|
|
3523
3565
|
}))
|
|
@@ -3528,18 +3570,18 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3528
3570
|
model: e.value,
|
|
3529
3571
|
queryInfo: f.value
|
|
3530
3572
|
}, void 0, !0),
|
|
3531
|
-
|
|
3532
|
-
se($e,
|
|
3573
|
+
Z("div", Pa, [
|
|
3574
|
+
se($e, L({
|
|
3533
3575
|
...a.$attrs,
|
|
3534
3576
|
...R(Ze)(
|
|
3535
3577
|
e.value.table,
|
|
3536
|
-
(
|
|
3578
|
+
(K) => !["dblclickType", "page"].includes(K)
|
|
3537
3579
|
)
|
|
3538
3580
|
}, {
|
|
3539
|
-
"summary-method": (
|
|
3540
|
-
onSortChange: u[5] || (u[5] = (
|
|
3581
|
+
"summary-method": (K) => e.value.table["summary-method"](K, { fields: J.value, sums: g.value }),
|
|
3582
|
+
onSortChange: u[5] || (u[5] = (K) => {
|
|
3541
3583
|
var me, E;
|
|
3542
|
-
e.value.table.onSortChange(
|
|
3584
|
+
e.value.table.onSortChange(K, f.value), ((me = K == null ? void 0 : K.column) == null ? void 0 : me.sortable) === "custom" && ((E = e.value.table) == null || E.load());
|
|
3543
3585
|
})
|
|
3544
3586
|
}), {
|
|
3545
3587
|
append: $(() => [
|
|
@@ -3550,24 +3592,24 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3550
3592
|
]),
|
|
3551
3593
|
default: $(() => [
|
|
3552
3594
|
C(a.$slots, "default", {}, () => [
|
|
3553
|
-
(
|
|
3595
|
+
(p(!0), F(ae, null, G(Ee.value, (K, me) => (p(), O(Y, L({
|
|
3554
3596
|
prop: me,
|
|
3555
3597
|
key: me
|
|
3556
3598
|
}, { ref_for: !0 }, {
|
|
3557
3599
|
...e.value.tableColumns,
|
|
3558
|
-
...R(Ze)(
|
|
3600
|
+
...R(Ze)(K, (E) => v.includes(E))
|
|
3559
3601
|
}), ge({
|
|
3560
|
-
header: $(({ column: E, $index:
|
|
3602
|
+
header: $(({ column: E, $index: le }) => [
|
|
3561
3603
|
me == "control" ? C(a.$slots, `${me}-header`, {
|
|
3562
3604
|
key: 0,
|
|
3563
3605
|
column: E,
|
|
3564
|
-
index:
|
|
3606
|
+
index: le
|
|
3565
3607
|
}, () => [
|
|
3566
|
-
|
|
3608
|
+
Z("span", null, Ce(E.label), 1)
|
|
3567
3609
|
], !0) : C(a.$slots, `${me}-header`, {
|
|
3568
3610
|
key: 1,
|
|
3569
3611
|
column: E,
|
|
3570
|
-
index:
|
|
3612
|
+
index: le
|
|
3571
3613
|
}, void 0, !0)
|
|
3572
3614
|
]),
|
|
3573
3615
|
"filter-icon": $((E) => [
|
|
@@ -3575,113 +3617,113 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3575
3617
|
]),
|
|
3576
3618
|
_: 2
|
|
3577
3619
|
}, [
|
|
3578
|
-
|
|
3620
|
+
K.type === "expand" ? {
|
|
3579
3621
|
name: "default",
|
|
3580
|
-
fn: $(({ row: E, column:
|
|
3622
|
+
fn: $(({ row: E, column: le, $index: de }) => [
|
|
3581
3623
|
C(a.$slots, `${me}`, {
|
|
3582
3624
|
row: E,
|
|
3583
|
-
column:
|
|
3625
|
+
column: le,
|
|
3584
3626
|
index: de
|
|
3585
3627
|
}, void 0, !0)
|
|
3586
3628
|
]),
|
|
3587
3629
|
key: "0"
|
|
3588
|
-
} :
|
|
3630
|
+
} : K.type == "control" ? {
|
|
3589
3631
|
name: "default",
|
|
3590
|
-
fn: $(({ row: E, column:
|
|
3591
|
-
var
|
|
3632
|
+
fn: $(({ row: E, column: le, $index: de }) => {
|
|
3633
|
+
var st, nt;
|
|
3592
3634
|
return [
|
|
3593
|
-
|
|
3594
|
-
class:
|
|
3595
|
-
style: Re((
|
|
3635
|
+
Z("div", {
|
|
3636
|
+
class: Xt(["control", (st = e.value.control) == null ? void 0 : st.class]),
|
|
3637
|
+
style: Re((nt = e.value.control) == null ? void 0 : nt.style)
|
|
3596
3638
|
}, [
|
|
3597
3639
|
C(a.$slots, "control", {}, () => [
|
|
3598
3640
|
C(a.$slots, "control-left", {
|
|
3599
3641
|
row: E,
|
|
3600
|
-
column:
|
|
3642
|
+
column: le,
|
|
3601
3643
|
index: de
|
|
3602
3644
|
}, void 0, !0),
|
|
3603
|
-
(
|
|
3645
|
+
(p(!0), F(ae, null, G(H(["view", "edit", "delete", "save"], E, le, de, e.value), (Je, et) => {
|
|
3604
3646
|
var ct;
|
|
3605
|
-
return
|
|
3606
|
-
|
|
3647
|
+
return p(), F(ae, null, [
|
|
3648
|
+
et == "default" ? (p(!0), F(ae, { key: 0 }, G(Je, (W) => (p(), F(ae, null, [
|
|
3607
3649
|
C(a.$slots, W.name + "-left", {
|
|
3608
3650
|
row: E,
|
|
3609
|
-
column:
|
|
3651
|
+
column: le,
|
|
3610
3652
|
index: de
|
|
3611
3653
|
}, void 0, !0),
|
|
3612
3654
|
W.attr.auth() ? C(a.$slots, W.name, {
|
|
3613
3655
|
key: 0,
|
|
3614
3656
|
row: E,
|
|
3615
|
-
column:
|
|
3657
|
+
column: le,
|
|
3616
3658
|
index: de
|
|
3617
3659
|
}, () => [
|
|
3618
|
-
W.label ? (
|
|
3660
|
+
W.label ? (p(), O(R(Ye), L({
|
|
3619
3661
|
key: 0,
|
|
3620
3662
|
title: W.label
|
|
3621
3663
|
}, { ref_for: !0 }, W.attr, {
|
|
3622
|
-
onClick: (
|
|
3664
|
+
onClick: (tt) => W.func(E, le, de, e.value)
|
|
3623
3665
|
}), {
|
|
3624
3666
|
default: $(() => [
|
|
3625
|
-
|
|
3667
|
+
Le(Ce(W.label), 1)
|
|
3626
3668
|
]),
|
|
3627
3669
|
_: 2
|
|
3628
|
-
}, 1040, ["title", "onClick"])) : (
|
|
3670
|
+
}, 1040, ["title", "onClick"])) : (p(), O(R(Ye), L({
|
|
3629
3671
|
key: 1,
|
|
3630
3672
|
title: W.label
|
|
3631
3673
|
}, { ref_for: !0 }, W.attr, {
|
|
3632
|
-
onClick: (
|
|
3674
|
+
onClick: (tt) => W.func(E, le, de, e.value)
|
|
3633
3675
|
}), null, 16, ["title", "onClick"]))
|
|
3634
3676
|
], !0) : be("", !0),
|
|
3635
3677
|
C(a.$slots, W.name + "-right", {
|
|
3636
3678
|
row: E,
|
|
3637
|
-
column:
|
|
3679
|
+
column: le,
|
|
3638
3680
|
index: de
|
|
3639
3681
|
}, void 0, !0)
|
|
3640
|
-
], 64))), 256)) :
|
|
3682
|
+
], 64))), 256)) : et != null && et.startsWith("dropdown") && ((ct = ie(E, le, de, e.value)) != null && ct.auth()) ? (p(), O(B, L({
|
|
3641
3683
|
key: 1,
|
|
3642
3684
|
ref_for: !0
|
|
3643
|
-
}, ie(E,
|
|
3685
|
+
}, ie(E, le, de, e.value)), {
|
|
3644
3686
|
dropdown: $(() => [
|
|
3645
3687
|
se(D, null, {
|
|
3646
3688
|
default: $(() => [
|
|
3647
|
-
(
|
|
3648
|
-
var
|
|
3649
|
-
return
|
|
3689
|
+
(p(!0), F(ae, null, G(Je, (W) => {
|
|
3690
|
+
var tt, ft, vt;
|
|
3691
|
+
return p(), F(ae, null, [
|
|
3650
3692
|
a.$slots[W.name + "-left"] ? C(a.$slots, W.name + "-left", {
|
|
3651
3693
|
key: 0,
|
|
3652
3694
|
row: E,
|
|
3653
|
-
column:
|
|
3695
|
+
column: le,
|
|
3654
3696
|
index: de
|
|
3655
3697
|
}, void 0, !0) : be("", !0),
|
|
3656
|
-
W.attr.auth() ? (
|
|
3698
|
+
W.attr.auth() ? (p(), O(k, L({
|
|
3657
3699
|
key: 1,
|
|
3658
3700
|
ref_for: !0
|
|
3659
3701
|
}, {
|
|
3660
|
-
command: (
|
|
3702
|
+
command: (tt = W == null ? void 0 : W.attr) == null ? void 0 : tt.command,
|
|
3661
3703
|
divided: (ft = W == null ? void 0 : W.attr) == null ? void 0 : ft.divided,
|
|
3662
3704
|
disabled: (vt = W == null ? void 0 : W.attr) == null ? void 0 : vt.disabled
|
|
3663
3705
|
}), {
|
|
3664
3706
|
default: $(() => [
|
|
3665
3707
|
C(a.$slots, W.name, {
|
|
3666
3708
|
row: E,
|
|
3667
|
-
column:
|
|
3709
|
+
column: le,
|
|
3668
3710
|
index: de
|
|
3669
3711
|
}, () => [
|
|
3670
|
-
W.label ? (
|
|
3712
|
+
W.label ? (p(), O(R(Ye), L({
|
|
3671
3713
|
key: 0,
|
|
3672
3714
|
title: W.label
|
|
3673
3715
|
}, { ref_for: !0 }, W.attr, {
|
|
3674
|
-
onClick: (bt) => W.func(E,
|
|
3716
|
+
onClick: (bt) => W.func(E, le, de, e.value)
|
|
3675
3717
|
}), {
|
|
3676
3718
|
default: $(() => [
|
|
3677
|
-
|
|
3719
|
+
Le(Ce(W.label), 1)
|
|
3678
3720
|
]),
|
|
3679
3721
|
_: 2
|
|
3680
|
-
}, 1040, ["title", "onClick"])) : (
|
|
3722
|
+
}, 1040, ["title", "onClick"])) : (p(), O(R(Ye), L({
|
|
3681
3723
|
key: 1,
|
|
3682
3724
|
title: W.label
|
|
3683
3725
|
}, { ref_for: !0 }, W.attr, {
|
|
3684
|
-
onClick: (bt) => W.func(E,
|
|
3726
|
+
onClick: (bt) => W.func(E, le, de, e.value)
|
|
3685
3727
|
}), null, 16, ["title", "onClick"]))
|
|
3686
3728
|
], !0)
|
|
3687
3729
|
]),
|
|
@@ -3690,7 +3732,7 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3690
3732
|
a.$slots[W.name + "-right"] ? C(a.$slots, W.name + "-right", {
|
|
3691
3733
|
key: 2,
|
|
3692
3734
|
row: E,
|
|
3693
|
-
column:
|
|
3735
|
+
column: le,
|
|
3694
3736
|
index: de
|
|
3695
3737
|
}, void 0, !0) : be("", !0)
|
|
3696
3738
|
], 64);
|
|
@@ -3702,44 +3744,44 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3702
3744
|
default: $(() => {
|
|
3703
3745
|
var W;
|
|
3704
3746
|
return [
|
|
3705
|
-
|
|
3747
|
+
Le(Ce((W = ie(E, le, de, e.value)) == null ? void 0 : W.label) + " ", 1)
|
|
3706
3748
|
];
|
|
3707
3749
|
}),
|
|
3708
3750
|
_: 2
|
|
3709
|
-
}, 1040)) : (
|
|
3751
|
+
}, 1040)) : (p(), O(m, { key: 2 }, {
|
|
3710
3752
|
default: $(() => [
|
|
3711
|
-
(
|
|
3753
|
+
(p(!0), F(ae, null, G(Je, (W) => (p(), F(ae, null, [
|
|
3712
3754
|
C(a.$slots, W.name + "-left", {
|
|
3713
3755
|
row: E,
|
|
3714
|
-
column:
|
|
3756
|
+
column: le,
|
|
3715
3757
|
index: de
|
|
3716
3758
|
}, void 0, !0),
|
|
3717
3759
|
W.attr.auth() ? C(a.$slots, W.name, {
|
|
3718
3760
|
key: 0,
|
|
3719
3761
|
row: E,
|
|
3720
|
-
column:
|
|
3762
|
+
column: le,
|
|
3721
3763
|
index: de
|
|
3722
3764
|
}, () => [
|
|
3723
|
-
W.label ? (
|
|
3765
|
+
W.label ? (p(), O(R(Ye), L({
|
|
3724
3766
|
key: 0,
|
|
3725
3767
|
title: W.label
|
|
3726
3768
|
}, { ref_for: !0 }, W.attr, {
|
|
3727
|
-
onClick: (
|
|
3769
|
+
onClick: (tt) => W.func(E, le, de, e.value)
|
|
3728
3770
|
}), {
|
|
3729
3771
|
default: $(() => [
|
|
3730
|
-
|
|
3772
|
+
Le(Ce(W.label), 1)
|
|
3731
3773
|
]),
|
|
3732
3774
|
_: 2
|
|
3733
|
-
}, 1040, ["title", "onClick"])) : (
|
|
3775
|
+
}, 1040, ["title", "onClick"])) : (p(), O(R(Ye), L({
|
|
3734
3776
|
key: 1,
|
|
3735
3777
|
title: W.label
|
|
3736
3778
|
}, { ref_for: !0 }, W.attr, {
|
|
3737
|
-
onClick: (
|
|
3779
|
+
onClick: (tt) => W.func(E, le, de, e.value)
|
|
3738
3780
|
}), null, 16, ["title", "onClick"]))
|
|
3739
3781
|
], !0) : be("", !0),
|
|
3740
3782
|
C(a.$slots, W.name + "-right", {
|
|
3741
3783
|
row: E,
|
|
3742
|
-
column:
|
|
3784
|
+
column: le,
|
|
3743
3785
|
index: de
|
|
3744
3786
|
}, void 0, !0)
|
|
3745
3787
|
], 64))), 256))
|
|
@@ -3750,7 +3792,7 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3750
3792
|
}), 256)),
|
|
3751
3793
|
C(a.$slots, "control-right", {
|
|
3752
3794
|
row: E,
|
|
3753
|
-
column:
|
|
3795
|
+
column: le,
|
|
3754
3796
|
index: de
|
|
3755
3797
|
}, void 0, !0)
|
|
3756
3798
|
], !0)
|
|
@@ -3758,35 +3800,35 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3758
3800
|
];
|
|
3759
3801
|
}),
|
|
3760
3802
|
key: "1"
|
|
3761
|
-
} :
|
|
3803
|
+
} : K.type != "selection" && K.type != "index" ? {
|
|
3762
3804
|
name: "default",
|
|
3763
|
-
fn: $(({ row: E, column:
|
|
3764
|
-
Se(
|
|
3805
|
+
fn: $(({ row: E, column: le, $index: de }) => [
|
|
3806
|
+
Se(K, E, le, de) && de != -1 ? C(a.$slots, `${me}`, {
|
|
3765
3807
|
key: 0,
|
|
3766
3808
|
row: E,
|
|
3767
|
-
column:
|
|
3809
|
+
column: le,
|
|
3768
3810
|
index: de
|
|
3769
3811
|
}, () => {
|
|
3770
|
-
var
|
|
3812
|
+
var st;
|
|
3771
3813
|
return [
|
|
3772
|
-
(
|
|
3814
|
+
(p(), O(Ct, {
|
|
3773
3815
|
modelValue: E[me],
|
|
3774
|
-
"onUpdate:modelValue": (
|
|
3775
|
-
item:
|
|
3816
|
+
"onUpdate:modelValue": (nt) => E[me] = nt,
|
|
3817
|
+
item: K == null ? void 0 : K.table(E, le, de),
|
|
3776
3818
|
ctrlKey: me,
|
|
3777
|
-
key: `${me}-${de} -${
|
|
3778
|
-
ctrlType: (
|
|
3819
|
+
key: `${me}-${de} -${U.value}`,
|
|
3820
|
+
ctrlType: (st = K.table(E, le, de)) != null && st.type ? K.table(E, le, de).type : K.type,
|
|
3779
3821
|
model: e.value,
|
|
3780
3822
|
class: "g-ctrl-container",
|
|
3781
3823
|
t: "t",
|
|
3782
3824
|
formInfo: E
|
|
3783
3825
|
}, ge({ _: 2 }, [
|
|
3784
|
-
|
|
3785
|
-
name:
|
|
3786
|
-
fn: $((
|
|
3787
|
-
C(a.$slots,
|
|
3788
|
-
data:
|
|
3789
|
-
item:
|
|
3826
|
+
G(a.$slots, (nt, Je) => ({
|
|
3827
|
+
name: Je,
|
|
3828
|
+
fn: $((et) => [
|
|
3829
|
+
C(a.$slots, Je, {
|
|
3830
|
+
data: et,
|
|
3831
|
+
item: K,
|
|
3790
3832
|
model: e.value
|
|
3791
3833
|
}, void 0, !0)
|
|
3792
3834
|
])
|
|
@@ -3796,16 +3838,16 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3796
3838
|
}, !0) : C(a.$slots, `${me}`, {
|
|
3797
3839
|
key: 1,
|
|
3798
3840
|
row: E,
|
|
3799
|
-
column:
|
|
3841
|
+
column: le,
|
|
3800
3842
|
index: de
|
|
3801
3843
|
}, () => [
|
|
3802
|
-
|
|
3803
|
-
style: Re([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" },
|
|
3844
|
+
Z("div", {
|
|
3845
|
+
style: Re([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, K == null ? void 0 : K.style]),
|
|
3804
3846
|
innerHTML: xe(
|
|
3805
|
-
|
|
3806
|
-
|
|
3847
|
+
K,
|
|
3848
|
+
le.formatter(E, le, E[me], de)
|
|
3807
3849
|
)
|
|
3808
|
-
}, null, 12,
|
|
3850
|
+
}, null, 12, Na)
|
|
3809
3851
|
], !0)
|
|
3810
3852
|
]),
|
|
3811
3853
|
key: "2"
|
|
@@ -3815,12 +3857,12 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3815
3857
|
]),
|
|
3816
3858
|
_: 3
|
|
3817
3859
|
}, 16, ["summary-method"]),
|
|
3818
|
-
(gt = (dt = (
|
|
3819
|
-
se(qe,
|
|
3860
|
+
(gt = (dt = (ut = e.value) == null ? void 0 : ut.table) == null ? void 0 : dt.page) != null && gt.hidden ? be("", !0) : C(a.$slots, "page", { key: 0 }, () => [
|
|
3861
|
+
se(qe, L({
|
|
3820
3862
|
"page-size": e.value.table.page.pageSize,
|
|
3821
|
-
"onUpdate:pageSize": u[6] || (u[6] = (
|
|
3863
|
+
"onUpdate:pageSize": u[6] || (u[6] = (K) => e.value.table.page.pageSize = K),
|
|
3822
3864
|
"current-page": e.value.table.page.currentPage,
|
|
3823
|
-
"onUpdate:currentPage": u[7] || (u[7] = (
|
|
3865
|
+
"onUpdate:currentPage": u[7] || (u[7] = (K) => e.value.table.page.currentPage = K)
|
|
3824
3866
|
}, e.value.table.page), {
|
|
3825
3867
|
default: $(() => [
|
|
3826
3868
|
C(a.$slots, "table-page", {}, void 0, !0)
|
|
@@ -3833,7 +3875,7 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3833
3875
|
], 64);
|
|
3834
3876
|
};
|
|
3835
3877
|
}
|
|
3836
|
-
}),
|
|
3878
|
+
}), Wa = /* @__PURE__ */ Ke(ja, [["__scopeId", "data-v-bed4a5d4"]]), Ga = { class: "g-tree-table" }, Xa = { class: "g-tree-container" }, Qa = { class: "g-tree-table-container" }, Za = /* @__PURE__ */ Object.assign({
|
|
3837
3879
|
name: "g-tree-table",
|
|
3838
3880
|
inheritAttrs: !1
|
|
3839
3881
|
}, {
|
|
@@ -3842,40 +3884,40 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3842
3884
|
modelValue: { required: !0 },
|
|
3843
3885
|
modelModifiers: {}
|
|
3844
3886
|
},
|
|
3845
|
-
emits: /* @__PURE__ */
|
|
3887
|
+
emits: /* @__PURE__ */ rt(["load"], ["update:modelValue"]),
|
|
3846
3888
|
setup(r, { emit: s }) {
|
|
3847
|
-
var g,
|
|
3848
|
-
const t = s, l =
|
|
3849
|
-
typeof ((g = n == null ? void 0 : n.tree) == null ? void 0 : g.width) == "number" ? `${n.tree.width}px` : ((
|
|
3850
|
-
), h = re(((x = n == null ? void 0 : n.tree) == null ? void 0 : x.search) === void 0 ? !0 : (
|
|
3889
|
+
var g, J, x, U;
|
|
3890
|
+
const t = s, l = at(r, "modelValue"), n = Mt(), e = re(
|
|
3891
|
+
typeof ((g = n == null ? void 0 : n.tree) == null ? void 0 : g.width) == "number" ? `${n.tree.width}px` : ((J = n == null ? void 0 : n.tree) == null ? void 0 : J.width) || "180px"
|
|
3892
|
+
), h = re(((x = n == null ? void 0 : n.tree) == null ? void 0 : x.search) === void 0 ? !0 : (U = n == null ? void 0 : n.tree) == null ? void 0 : U.search), f = re({}), S = re(""), c = re(null), v = (z, X) => {
|
|
3851
3893
|
var oe, ie;
|
|
3852
3894
|
if (!z) return !0;
|
|
3853
3895
|
const ee = ((ie = (oe = n.tree) == null ? void 0 : oe.props) == null ? void 0 : ie.label) || "label";
|
|
3854
|
-
return
|
|
3855
|
-
}, o = (z,
|
|
3856
|
-
t("load", f.value, z,
|
|
3896
|
+
return X[ee].includes(z);
|
|
3897
|
+
}, o = (z, X) => {
|
|
3898
|
+
t("load", f.value, z, X);
|
|
3857
3899
|
}, d = (z) => {
|
|
3858
3900
|
f.value = z, l.value.table.load();
|
|
3859
3901
|
};
|
|
3860
|
-
return
|
|
3902
|
+
return Qt(S, (z) => {
|
|
3861
3903
|
c.value.filter(z);
|
|
3862
|
-
}), (z,
|
|
3863
|
-
const ee =
|
|
3864
|
-
return
|
|
3865
|
-
|
|
3904
|
+
}), (z, X) => {
|
|
3905
|
+
const ee = N("el-input"), oe = N("el-tree"), ie = N("g-table");
|
|
3906
|
+
return p(), F("div", Ga, [
|
|
3907
|
+
Z("div", {
|
|
3866
3908
|
class: "g-tree-left",
|
|
3867
3909
|
style: Re({ width: e.value })
|
|
3868
3910
|
}, [
|
|
3869
|
-
h.value ? (
|
|
3911
|
+
h.value ? (p(), O(ee, {
|
|
3870
3912
|
key: 0,
|
|
3871
3913
|
modelValue: S.value,
|
|
3872
|
-
"onUpdate:modelValue":
|
|
3914
|
+
"onUpdate:modelValue": X[0] || (X[0] = (he) => S.value = he),
|
|
3873
3915
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
3874
3916
|
placeholder: "输入节点查询",
|
|
3875
3917
|
clearable: ""
|
|
3876
3918
|
}, null, 8, ["modelValue"])) : be("", !0),
|
|
3877
|
-
|
|
3878
|
-
se(oe,
|
|
3919
|
+
Z("div", Xa, [
|
|
3920
|
+
se(oe, L({
|
|
3879
3921
|
style: { width: e.value },
|
|
3880
3922
|
"filter-node-method": v,
|
|
3881
3923
|
"expand-on-click-node": !1,
|
|
@@ -3888,12 +3930,12 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3888
3930
|
node: he,
|
|
3889
3931
|
data: we
|
|
3890
3932
|
}, () => [
|
|
3891
|
-
|
|
3933
|
+
Z("span", null, Ce(he.label), 1)
|
|
3892
3934
|
], !0)
|
|
3893
3935
|
]),
|
|
3894
3936
|
_: 2
|
|
3895
3937
|
}, [
|
|
3896
|
-
|
|
3938
|
+
G(z.$slots, (he, we, Ve) => ({
|
|
3897
3939
|
name: we,
|
|
3898
3940
|
fn: $((xe) => [
|
|
3899
3941
|
C(z.$slots, we, { data: xe }, void 0, !0)
|
|
@@ -3902,12 +3944,12 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3902
3944
|
]), 1040, ["style"])
|
|
3903
3945
|
])
|
|
3904
3946
|
], 4),
|
|
3905
|
-
|
|
3906
|
-
se(ie,
|
|
3947
|
+
Z("div", Qa, [
|
|
3948
|
+
se(ie, L({
|
|
3907
3949
|
modelValue: l.value,
|
|
3908
|
-
"onUpdate:modelValue":
|
|
3950
|
+
"onUpdate:modelValue": X[1] || (X[1] = (he) => l.value = he)
|
|
3909
3951
|
}, z.$attrs, { onLoad: o }), ge({ _: 2 }, [
|
|
3910
|
-
|
|
3952
|
+
G(z.$slots, (he, we, Ve) => ({
|
|
3911
3953
|
name: we,
|
|
3912
3954
|
fn: $((xe) => [
|
|
3913
3955
|
C(z.$slots, we, { data: xe }, void 0, !0)
|
|
@@ -3918,14 +3960,14 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3918
3960
|
]);
|
|
3919
3961
|
};
|
|
3920
3962
|
}
|
|
3921
|
-
}),
|
|
3963
|
+
}), Ja = /* @__PURE__ */ Ke(Za, [["__scopeId", "data-v-c888e4fc"]]), Ka = {
|
|
3922
3964
|
key: 0,
|
|
3923
3965
|
class: "op-group"
|
|
3924
|
-
},
|
|
3966
|
+
}, er = {
|
|
3925
3967
|
key: 1,
|
|
3926
3968
|
class: "op-items",
|
|
3927
3969
|
style: { width: "100%", height: "100%" }
|
|
3928
|
-
},
|
|
3970
|
+
}, tr = ["title"], Nt = "100px", lr = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
3929
3971
|
__name: "g-select-option",
|
|
3930
3972
|
props: {
|
|
3931
3973
|
columns: {
|
|
@@ -3947,45 +3989,45 @@ const za = /* @__PURE__ */ ll(Aa), Ua = { class: "g-table-container" }, La = {
|
|
|
3947
3989
|
},
|
|
3948
3990
|
setup(r) {
|
|
3949
3991
|
const s = r;
|
|
3950
|
-
return (t, l) => s.title ? (
|
|
3951
|
-
(
|
|
3952
|
-
style: Re({ width: (n == null ? void 0 : n.width) ||
|
|
3992
|
+
return (t, l) => s.title ? (p(), F("div", Ka, [
|
|
3993
|
+
(p(!0), F(ae, null, G(s.columns, (n) => (p(), F("span", {
|
|
3994
|
+
style: Re({ width: (n == null ? void 0 : n.width) || Nt, ...n == null ? void 0 : n.titleStyle, textAlign: (n == null ? void 0 : n.align) || "center" }),
|
|
3953
3995
|
key: n.key
|
|
3954
3996
|
}, [
|
|
3955
3997
|
C(t.$slots, `${r.t}-title-${n.key}`, { col: n }, () => [
|
|
3956
|
-
|
|
3998
|
+
Le(Ce(n.label), 1)
|
|
3957
3999
|
], !0)
|
|
3958
4000
|
], 4))), 128))
|
|
3959
|
-
])) : (
|
|
3960
|
-
(
|
|
3961
|
-
style: Re({ width: (n == null ? void 0 : n.width) ||
|
|
4001
|
+
])) : (p(), F("div", er, [
|
|
4002
|
+
(p(!0), F(ae, null, G(s.columns, (n) => (p(), F("span", {
|
|
4003
|
+
style: Re({ width: (n == null ? void 0 : n.width) || Nt, textAlign: (n == null ? void 0 : n.align) || "center", ...n == null ? void 0 : n.style }),
|
|
3962
4004
|
key: n.key,
|
|
3963
4005
|
title: r.data[n.key]
|
|
3964
4006
|
}, [
|
|
3965
4007
|
C(t.$slots, `${r.t}-option-${n.key}`, { col: n }, () => [
|
|
3966
|
-
|
|
4008
|
+
Le(Ce(r.data[n.key] ?? "-"), 1)
|
|
3967
4009
|
], !0)
|
|
3968
|
-
], 12,
|
|
4010
|
+
], 12, tr))), 128))
|
|
3969
4011
|
]));
|
|
3970
4012
|
}
|
|
3971
|
-
}),
|
|
4013
|
+
}), ar = /* @__PURE__ */ Ke(lr, [["__scopeId", "data-v-c0ac6b77"]]), rr = Object.freeze({}), zt = [Wa, sl, Ja, ar, At];
|
|
3972
4014
|
let St = {};
|
|
3973
|
-
const
|
|
4015
|
+
const br = {
|
|
3974
4016
|
install: (r, s = {}) => {
|
|
3975
|
-
St = Object.freeze({ ...
|
|
4017
|
+
St = Object.freeze({ ...rr, ...s }), zt.forEach((t) => {
|
|
3976
4018
|
r.component(t.name, t);
|
|
3977
|
-
}), r.provide("options", St), r.config.globalProperties.$openModal =
|
|
4019
|
+
}), r.provide("options", St), r.config.globalProperties.$openModal = It, r.config.globalProperties.$open = or;
|
|
3978
4020
|
}
|
|
3979
|
-
},
|
|
4021
|
+
}, nr = (r) => ({ dialog: pl, drawer: vl })[r] || null, It = (r = {}, s = "dialog") => {
|
|
3980
4022
|
if (typeof document > "u") return () => {
|
|
3981
4023
|
};
|
|
3982
4024
|
const t = document.createElement("div");
|
|
3983
4025
|
let l = () => {
|
|
3984
4026
|
};
|
|
3985
|
-
const n =
|
|
4027
|
+
const n = nr(s);
|
|
3986
4028
|
if (!n) return () => {
|
|
3987
4029
|
};
|
|
3988
|
-
const e = re(!0), h =
|
|
4030
|
+
const e = re(!0), h = Zt({
|
|
3989
4031
|
setup() {
|
|
3990
4032
|
return l = () => {
|
|
3991
4033
|
e.value = !1, setTimeout(() => {
|
|
@@ -4016,20 +4058,20 @@ const pr = {
|
|
|
4016
4058
|
});
|
|
4017
4059
|
return zt.forEach((f) => {
|
|
4018
4060
|
h.component(f.name, f);
|
|
4019
|
-
}), h.provide("options", St), h.use(
|
|
4020
|
-
},
|
|
4061
|
+
}), h.provide("options", St), h.use(jt, { locale: rl }), document.body.appendChild(t), h.mount(t), l;
|
|
4062
|
+
}, or = (r = {}) => {
|
|
4021
4063
|
if (typeof document > "u") return () => {
|
|
4022
4064
|
};
|
|
4023
4065
|
const s = document.createElement("div");
|
|
4024
4066
|
let t = () => {
|
|
4025
4067
|
};
|
|
4026
|
-
const l = re(!0), n =
|
|
4068
|
+
const l = re(!0), n = Zt({
|
|
4027
4069
|
setup() {
|
|
4028
4070
|
t = () => {
|
|
4029
4071
|
l.value = !1, setTimeout(() => {
|
|
4030
4072
|
n.unmount(), s.remove();
|
|
4031
4073
|
}, 300);
|
|
4032
|
-
},
|
|
4074
|
+
}, Qt(l, (S) => {
|
|
4033
4075
|
S || setTimeout(() => {
|
|
4034
4076
|
n.unmount(), s.remove();
|
|
4035
4077
|
}, 300);
|
|
@@ -4048,9 +4090,9 @@ const pr = {
|
|
|
4048
4090
|
});
|
|
4049
4091
|
return zt.forEach((e) => {
|
|
4050
4092
|
n.component(e.name, e);
|
|
4051
|
-
}), n.provide("options", St), n.use(
|
|
4093
|
+
}), n.provide("options", St), n.use(jt, { locale: rl }), document.body.appendChild(s), n.mount(s), t;
|
|
4052
4094
|
};
|
|
4053
|
-
function
|
|
4095
|
+
function ur(r, s = window.innerWidth) {
|
|
4054
4096
|
if (typeof r == "number")
|
|
4055
4097
|
return r;
|
|
4056
4098
|
if (r.endsWith("px"))
|
|
@@ -4072,7 +4114,7 @@ function lr(r, s = window.innerWidth) {
|
|
|
4072
4114
|
throw new Error("Invalid calc expression");
|
|
4073
4115
|
};
|
|
4074
4116
|
const n = r.slice(5, -1).trim();
|
|
4075
|
-
return e(n.replace(/([0-9.]+)([a-z%]+)/g, (f, S, c) =>
|
|
4117
|
+
return e(n.replace(/([0-9.]+)([a-z%]+)/g, (f, S, c) => ur(S + c, s)));
|
|
4076
4118
|
}
|
|
4077
4119
|
throw new Error("Unsupported unit in value: " + r);
|
|
4078
4120
|
}
|
|
@@ -4088,19 +4130,19 @@ function Ze(r, s = (t, l) => l != null) {
|
|
|
4088
4130
|
r.hasOwnProperty(l) && s(l, r[l]) && (t[l] = r[l]);
|
|
4089
4131
|
return t;
|
|
4090
4132
|
}
|
|
4091
|
-
function
|
|
4133
|
+
function sr(r, s, t = "value", l = "label", n = "children") {
|
|
4092
4134
|
for (const e of r) {
|
|
4093
4135
|
if (e[t] === s)
|
|
4094
4136
|
return e[l];
|
|
4095
4137
|
if (e[n] && e[n].length > 0) {
|
|
4096
|
-
const h =
|
|
4138
|
+
const h = sr(e[n], s, t, l, n);
|
|
4097
4139
|
if (h)
|
|
4098
4140
|
return h;
|
|
4099
4141
|
}
|
|
4100
4142
|
}
|
|
4101
4143
|
return null;
|
|
4102
4144
|
}
|
|
4103
|
-
function
|
|
4145
|
+
function Ot(r) {
|
|
4104
4146
|
if (!r || isNaN(r)) return "零";
|
|
4105
4147
|
const s = ["角", "分"], t = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], l = [
|
|
4106
4148
|
["元", "万", "亿"],
|
|
@@ -4119,7 +4161,7 @@ function It(r) {
|
|
|
4119
4161
|
}
|
|
4120
4162
|
return n + e.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
4121
4163
|
}
|
|
4122
|
-
function
|
|
4164
|
+
function ir(r, s = 2, t = !1) {
|
|
4123
4165
|
let l = Number(r);
|
|
4124
4166
|
if (isNaN(l) || !isFinite(l))
|
|
4125
4167
|
return "0.00";
|
|
@@ -4130,7 +4172,7 @@ function rr(r, s = 2, t = !1) {
|
|
|
4130
4172
|
const [h, f] = e.split("."), S = h.replace(/\B(?=(\d{3})+(?!\d))/g, ","), c = f ? `${S}.${f}` : S;
|
|
4131
4173
|
return n ? `-${c}` : c;
|
|
4132
4174
|
}
|
|
4133
|
-
function
|
|
4175
|
+
function dr(r, s) {
|
|
4134
4176
|
let t = null;
|
|
4135
4177
|
return function(...l) {
|
|
4136
4178
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
@@ -4138,7 +4180,7 @@ function nr(r, s) {
|
|
|
4138
4180
|
}, s);
|
|
4139
4181
|
};
|
|
4140
4182
|
}
|
|
4141
|
-
function
|
|
4183
|
+
function $r(r, s) {
|
|
4142
4184
|
let t = null;
|
|
4143
4185
|
return function(...l) {
|
|
4144
4186
|
t || (t = setTimeout(() => {
|
|
@@ -4173,16 +4215,17 @@ const _e = {
|
|
|
4173
4215
|
EMAIL: "email",
|
|
4174
4216
|
PASSWORD: "password",
|
|
4175
4217
|
TEXTAREA: "textarea",
|
|
4176
|
-
TEL: "tel"
|
|
4218
|
+
TEL: "tel",
|
|
4219
|
+
INPUTTAG: "input-tag"
|
|
4177
4220
|
}, mt = () => {
|
|
4178
4221
|
ht(() => {
|
|
4179
4222
|
const r = document.querySelector(".el-dialog");
|
|
4180
4223
|
if (!r || r.querySelector(".dialog-resize-handle"))
|
|
4181
4224
|
return;
|
|
4182
|
-
const s =
|
|
4183
|
-
r.appendChild(s),
|
|
4225
|
+
const s = cr();
|
|
4226
|
+
r.appendChild(s), fr(r), vr(r, s);
|
|
4184
4227
|
});
|
|
4185
|
-
},
|
|
4228
|
+
}, cr = () => {
|
|
4186
4229
|
const r = document.createElement("div");
|
|
4187
4230
|
return Object.assign(r.style, {
|
|
4188
4231
|
position: "absolute",
|
|
@@ -4194,7 +4237,7 @@ const _e = {
|
|
|
4194
4237
|
cursor: "nwse-resize",
|
|
4195
4238
|
zIndex: "999999999999"
|
|
4196
4239
|
}), r.className = "dialog-resize-handle", r;
|
|
4197
|
-
},
|
|
4240
|
+
}, fr = (r) => {
|
|
4198
4241
|
Object.assign(r.style, {
|
|
4199
4242
|
transition: "none",
|
|
4200
4243
|
minWidth: "300px",
|
|
@@ -4202,7 +4245,7 @@ const _e = {
|
|
|
4202
4245
|
resize: "none"
|
|
4203
4246
|
// 防止与原生resize冲突
|
|
4204
4247
|
});
|
|
4205
|
-
},
|
|
4248
|
+
}, vr = (r, s) => {
|
|
4206
4249
|
let t = !1, l, n, e, h;
|
|
4207
4250
|
const f = (v) => {
|
|
4208
4251
|
v.preventDefault(), t = !0, l = v.clientX, n = v.clientY, e = parseInt(document.defaultView.getComputedStyle(r).width), h = parseInt(document.defaultView.getComputedStyle(r).height), document.addEventListener("mousemove", S), document.addEventListener("mouseup", c);
|
|
@@ -4218,15 +4261,15 @@ const _e = {
|
|
|
4218
4261
|
export {
|
|
4219
4262
|
_e as CT,
|
|
4220
4263
|
mt as bindResize,
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4264
|
+
ur as convertToPx,
|
|
4265
|
+
dr as debounce,
|
|
4266
|
+
br as default,
|
|
4224
4267
|
Ze as filterObject,
|
|
4225
|
-
|
|
4226
|
-
|
|
4268
|
+
sr as findTreeLabelByValue,
|
|
4269
|
+
ir as formatAmount,
|
|
4227
4270
|
ze as mergeObjects,
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4271
|
+
Ot as moneyToChinese,
|
|
4272
|
+
or as open,
|
|
4273
|
+
It as openModal,
|
|
4274
|
+
$r as throttle
|
|
4232
4275
|
};
|